장치가 부팅을 완료했을 때 Service
이 시작되지 않는 이유를 알고 싶습니다. 장치가 부팅 될 때 Service
이 시작되지만, 응용 프로그램을 먼저 열어야하기 때문에 시작되지 않기를 바랍니다. 여기부팅시 서비스 시작이 올바르게 작동하지 않음
내 코드는 지금까지 있습니다 : BootService이
public class BootService extends BroadcastReceiver{
Intent intent;
@Override
public void onReceive(Context context, Intent intent2) {
intent = new Intent(context, MyService.class);
context.startService(intent);
}
}
http://stackoverflow.com/q/8531926/726863 –
http://www.vogella.com/articles/AndroidServices/#tutorial_ownservice –
나는 방송에 println 메소드를 넣어 내 특정 문제 –