Je n'atteins jamais BootReceiver ?? Dans mon manifeste j'ai:Je ne peux pas démarrer mon récepteur
<receiver android:name=".app.service.receiver.BootReceiver" android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>
<service android:name=".app.service.Process">
<intent-filter>
<action android:name=".app.service.Process" />
</intent-filter>
</service>
à mon BootReceiver J'ai:
package cc.com.app.service.receiver;
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) {
Intent serviceIntent = new Intent();
serviceIntent.setAction("cc.com.service.Process");
context.startService(serviceIntent);
}
}
Quelle version android utilisez-vous? Si vous êtes sur 3.1+, vous pouvez vérifier ceci: http://commonsware.com/blog/2011/07/05/boot-completed-regression.html –