I\'m monitoring incoming SMSs.
My app is working perfectly with a BroadcastReceiver
. However it is working from an Activity and would like to keep the <
use this code and also mention the broadcast in Manifest also:
public class BootService extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
if(intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)){
Toast.makeText(context, "Boot Completed", Toast.LENGTH_SHORT).show();
//write code here
}
}
}