android - BroadCast Receiver not launching on BOOT_COMPLETET event -


i trying launch broadcastreceiver-class "simchangereceiver" after system boot-up. therefore, class listening intent.action.boot_completed event.

public class simchangereceiver extends broadcastreceiver {     @override     public void onreceive(context context, intent intent) {         if("android.intent.action.boot_completed".equals(intent.getaction())){             ... ... 

after bootup, logcat comes entry:

06-04 20:09:08.070: v/otastartupreceiver(399): onreceive: intent action=android.intent.action.boot_completed  motaspmode=-1 

however, "simchangereceiver" class never entered.

an extract of manifest file:

    <uses-permission android:name="android.permission.read_phone_state" />          <receiver android:name=".simchange.simchangereceiver" >         <intent-filter android:priority="999" >             <action android:name="android.intent.action.boot_completed" />         </intent-filter>     </receiver> 

i think have problem since application runs on android 4.0.2 system. i'm not sure ... there known problem since version 4.x.x? before tested on 2.x.x version.

does see didn't see?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -