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
Post a Comment