Skip to main content

Boot up Broadcast Issue?



My Application is working fine with other devices, however the BOOT broadcast is doesn't working at all in Samsung ACE.





Any workaround for this?





Manifest File







<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="a.b.c" android:versionCode="1" android:versionName="1.0.0" >



<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />



<application android:icon="@drawable/ic_launcher"

android:label="@string/app_name">



<receiver android:name=".BootupReceiver">

<intent-filter>

<action android:name="android.intent.action.BOOT_COMPLETED" />

</intent-filter>

</receiver>

</application>

</manifest>







Java Class







package a.b.c;



import android.content.BroadcastReceiver;

import android.content.Context;

import android.content.Intent;

import android.util.Log;



public class BootupReceiver extends BroadcastReceiver {



public BootupReceiver() {

}



public void onReceive(Context context, Intent intent) {



Log.d("abc", "--------> BootupReceiver onReceive");

}



}




Comments

Popular posts from this blog

Slow Android emulator

I have a 2.67 GHz Celeron processor, 1.21 GB of RAM on a x86 Windows XP Professional machine. My understanding is that the Android emulator should start fairly quickly on such a machine, but for me it does not. I have followed all instructions in setting up the IDE, SDKs, JDKs and such and have had some success in staring the emulator quickly but is very particulary. How can I, if possible, fix this problem?