Android Question Exo player in service

Discussion in 'Android Questions' started by megzz, Mar 11, 2018.

  1. megzz

    megzz Member Licensed User

    Hello
    I have added exoplayer to service and i have added file with activity to it. The problem is when i close the app , both service and app closes but what i want to do is keep the service running (im building a notification player) and make sound resume playing.
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    I haven't checked your code.

    You should play from the service and call Service.StartForeground to keep the service running.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice