Start service always this way:
context.startService(new Intent(MusicService.ACTION_PAUSE, null, context, MusicService.class));
Start service always this way:
context.startService(new Intent(MusicService.ACTION_PAUSE, null, context, MusicService.class));
If you have an EditText on your Activity layout, you might encounter on real devices, that the soft keyboard annoyingly shows up.
The easiest solution to hide it, is to set soft input mode in Activity.onCreate method:
this.getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);