Take a look at this info here:

http://developer.android.com/about/versions/android-3.1.html#launchcontrols 
(if the link doesn't take you directly to this section, search for 
'stopped' on that page.) 

Add this flag to your intent to override this behavior:
Intent.FLAG_INCLUDE_STOPPED_PACKAGES<http://developer.android.com/reference/android/content/Intent.html#FLAG_INCLUDE_STOPPED_PACKAGES>
 


On Friday, July 13, 2012 9:29:01 AM UTC-4, Live Happy wrote:
>
> so can u  please explain to  me how the whatsup work when the 
> BroadcastReceivers will not work till u launch an activity!!
>
> On Fri, Jul 13, 2012 at 1:39 PM, Mark Murphy  wrote:
>
>> On Android 3.1+, something has to manually run one of your components
>> (e.g., user launches an activity) before manifest-registered
>> BroadcastReceivers will work.
>>
>> On Thu, Jul 12, 2012 at 5:02 AM, Live Happy  wrote:
>> > i have  a service with separate processes in  my application run from
>> > Broadcast receive after boot completed i tested the code in android 
>> 2.3.3
>> > and all is work fine but when i tested on ICS 4.0.3 even the processes 
>> exist
>> > in the applications runing  but its not write the throw  logs  in the
>> > receiver class and n the service class  is there any help with that 
>> please
>> >
>> >  <service android:name=".Services.MyServices"
>> >             android:process=":my_process"
>> >             android:label="MyServices">
>> > <intent-filter>
>> >        <action
>> >        android:name = ".Services.MyServices">
>> >        </action>
>> >        </intent-filter>
>> >        </service>
>> >        <receiver android:name="com.tele.Services.MyReceiver"
>> >               android:enabled="true"
>> >             
>>  android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
>> >             <intent-filter>
>> >                 <action
>> > android:name="android.intent.action.BOOT_COMPLETED"/>
>> >                   <category 
>> android:name="android.intent.category.DEFAULT"
>> > />
>> >             </intent-filter>
>> >         </receiver>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Android Developers" group.
>> > To post to this group, send email to 
>> android-developers@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > android-developers+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> Android Training in NYC: http://marakana.com/training/android/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to