I have a boot_completed broadcast in my app, but it isn't working. The app is not installed on the SD card.
Android manfest.xml
<receiver android:name="BootReceiver"
android:enabled="true"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
Bootreceiver.java
package nl.bicknos.TWPD;
import android.content.BroadcastReceiver; import android.content.Context;
import android.content.Intent;
public class BootReceiver extends BroadcastReceiver{
@Override public void onReceive(Context context, Intent intent) {
Toast.makeText(this, "Gestart", Toast.LENGTH_SHORT).show();} }
I've search and the solutions I found there didn't work