以下のコードの場合、ご覧のとおり、1つnew Intent
はにbindService()
あり、もう1つはにありnew Intent
ますstartService()
。そして、最終的に2つのインテントがあるのだろうか?または、2つのインテントはまだOKですか?
bindService(new Intent(this, MusicPlayerService.class),
mPlaybackConnection, Context.BIND_AUTO_CREATE);
startService(new Intent(this, MusicPlayerService.class));