Androidアプリケーションで、実行中のサービスの意図を保存すると. サービスを再開するにはどうすればよいですか? onStartCommand 関数を再度実行したい。
ありがとう
返品onStartCommand
するSTART_STICKY
。
public int onStartCommand(Intent intent, int flags, int startId){
super.onStartCommand(intent, flags, startId);
return START_STICKY;
}
ドキュメント リンク: http://developer.android.com/reference/android/app/Service.html