m-cakir / radio-player

Android radio player example with ExoPlayer
122 stars 50 forks source link

Play automatically when you open the app #13

Closed Mouadabdelghafouraitali closed 5 years ago

Mouadabdelghafouraitali commented 5 years ago

thank you for this project ,can you please tell me how i can make it play automatically when i open the app ,i have tried to call radioManager.playOrPause(); method in onCreatebut i get this error

Attempt to invoke virtual method 'void com.mcakir.radio.player.RadioService.playOrPause()' on a null object reference