Does bindService also call the onCreate method?

85 Views Asked by At

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!");
    }
0

There are 0 best solutions below