Serviceのバインドについてです。
以下のようにサービスをonCreateで呼びます。
(HogeHogeService.classはバインド用のサービスクラスを作りました。)
Intent intent = new Intent(this, HogeHogeService.class);
bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
さらに
onResumeで全く同じように呼びました。
Intent intent = new Intent(this, HogeHogeService.class);
bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
質問
通常通りバインドしているのですが、これは問題ないのでしょうか。
複数のサービスが生成されてしまうこともあるのでしょうか。
よろしくお願い致します。
logには以下のようなものがでます。
Timeline: Timeline: Activity_idle id: android.os.BinderProxy@3d295981 time:415058
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/20 11:12