1

Can i call bindService without calling startService? If so, does it also call my onCreate method in my Service?

  public static void bindMusicService(Context c){
        /*mediaPlayerServiceIntent binds our connection to the MediaPlayerService. */
        mediaPlayerServiceIntent = new Intent(c, MediaPlayerService.class);
        c.bindService(mediaPlayerServiceIntent, serviceConnection, Context.BIND_AUTO_CREATE);
        mServiceIsBound = true;
        Log.i("Main","Service is bound!");
    }
Vince VD
  • 1,506
  • 17
  • 38
  • 1
    Possible duplicate of [Android Service can be bind without start?](https://stackoverflow.com/questions/5819368/android-service-can-be-bind-without-start) – Anupam Jul 02 '19 at 05:07

0 Answers0