Greetings,
Android is killing (putting to sleep) my radio streaming app.
Originally, I placed all of the app code in the main module. It works fine for long periods of time only if I stay in the app. If I exit the app or turn the phone screen off, Android was killing it after about 3 or 4 minutes as it was streaming the music.
Steps I took to stop the problem:
I moved the coding that starts the music streaming to the starter module which I thought is never killed by Android. I guessed wrong. After about 5 minutes the music stopped. I went online and they told me to to to the App power management of the phone's settings and in Apps that won't be put to sleep I added the streaming app. Pow, Android ignored my request not to put it to sleep after about 10 minutes. I went through the forum to see what other people were doing to stop the app from being killed and they were using lock.PartialLock in their Service_Create. Again Android ignored that command. It was killed after about 25 minutes. ?
Can you tell me what all of you doing to your streaming apps so Android leaves them alone?
Thanks.
Android is killing (putting to sleep) my radio streaming app.
Originally, I placed all of the app code in the main module. It works fine for long periods of time only if I stay in the app. If I exit the app or turn the phone screen off, Android was killing it after about 3 or 4 minutes as it was streaming the music.
Steps I took to stop the problem:
I moved the coding that starts the music streaming to the starter module which I thought is never killed by Android. I guessed wrong. After about 5 minutes the music stopped. I went online and they told me to to to the App power management of the phone's settings and in Apps that won't be put to sleep I added the streaming app. Pow, Android ignored my request not to put it to sleep after about 10 minutes. I went through the forum to see what other people were doing to stop the app from being killed and they were using lock.PartialLock in their Service_Create. Again Android ignored that command. It was killed after about 25 minutes. ?
Can you tell me what all of you doing to your streaming apps so Android leaves them alone?
Thanks.