Hi,
i want to make an application ,this application include that, when the phone
connected the network ,program will start automatically.
i used the below as broadcast receiver;
/*
public class ConnectivityReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Intent startupIntent= new Intent(context,networkDinleActivity.class);
startupIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(startupIntent);
}
*/
i used the below in the manifest.xml ;
/*
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
//is it true?
<receiver android:name=".ConnectivityReceiver">
<intent-filter>
<action android:name="android.net.wifi.STATE_CHANGE"/>// is it
true?if it wasn't,what is true?
</intent-filter>
</receiver>
*/
i have tried them but it didn't work.
what is wrong ?
thanks for advices...
Baran
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en