The broadcast receiver should call a service which will start the activity.
See the info below from the android developer site.
*Receiver Lifecycle*
*A BroadcastReceiver object is only valid for the duration of the call
to onReceive(Context,
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,
2 matches
Mail list logo