I understoo from docs that
As of Android 3.1 the Android system will by default exclude all
BroadcastReceiver from receiving Intents if the corresponding
application has never been started by the user or if the user
explicitly stopped the application via the Android menu (in Manage
Application).
Thus, I wonder how could I send send Broadcast to Receiver if my app have not been started yet.
I am going to take you literally, meaning that you want to send a broadcast
Intentto someBroadcastReceiverthat you wrote.If the sender and the
BroadcastReceiverare in the same app, there is no problem: if the sender is capable of running, it is capable of sending the broadcast. That’s because the user will have had to do something to run the sender, such as starting an activity.If the sender and the
BroadcastReceiverare in different apps, my understanding is that the sender can includeFLAG_INCLUDE_STOPPED_PACKAGESon theIntentand that will make sure that theBroadcastReceiverin the other app can receive the broadcast.