Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 2    Views: 50

miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
10/09/15 04:53 AM (8 years ago)

CP Stream back button

Smug found the way to CP Stream stop playing on back button here: http://www.buzztouch.com/forum/thread.php?tid=FCC30D28B83DCEEF3D910B7&currentPage=1 I added in CP_stream.java in 'onPause' method: stopMyPlayService(); Now it works fine, but with one trouble: when phone starts screensaver, music also stops. How can I make it still playing if phone sleeps?
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
10/09/15 03:40 PM (8 years ago)
does onPause get called when the screensaver shows? check the logcat to see what the app is doing
 
miku
Aspiring developer
Profile
Posts: 405
Reg: Feb 20, 2014
zagorje ob savi
10,600
like
10/10/15 02:00 AM (8 years ago)
Looks like onPause is called. Here is logcat: https://www.dropbox.com/s/i6trhm89u734bqm/catlog111.log?dl=0
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.