Can android application have only broadcast recevier and service without activity ? If this is possible how can i invoke broadcast receiver ? Android system automatically in
public class FlashApkclass extends BroadcastReceiver{
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
}
}
In your manifest.xml file set your android:name as like
// register you broadcast receiver to list broadcast
and if you want to broadcast
broadcast.setAction(BROADCAST_ACTION);
sendBroadcast(broadcast);
where BROADCAST_ACTION is
public static String BROADCAST_ACTION = "com.example.android.APP_CLOUD_DELETE_APK";