maloletov Posted December 1, 2018 Share Posted December 1, 2018 I use the player in the car. For some time the player stopped remembering the position of the track after turning off the device. The track player itself remembers, but the position is not. How does track position memory work? Everything works fine on the phone. I use Poweramp Music Player V3 alpha-build-702, Andriod 5.1.1 Link to comment https://forum.powerampapp.com/topic/15623-pa-does-not-remember-the-position-of-the-track-when-turn-it-off/ Share on other sites More sharing options...
andrewilley Posted December 1, 2018 Share Posted December 1, 2018 Probably your device is just cutting power rather than allowing PA to shut down neatly. Try exiting PA before you turn off the power to see if this is the case. Andre Link to comment https://forum.powerampapp.com/topic/15623-pa-does-not-remember-the-position-of-the-track-when-turn-it-off/#findComment-64670 Share on other sites More sharing options...
maxmp Posted December 1, 2018 Share Posted December 1, 2018 Position is stored on pause (obviously). If player is killed while playing position will be lost. Link to comment https://forum.powerampapp.com/topic/15623-pa-does-not-remember-the-position-of-the-track-when-turn-it-off/#findComment-64674 Share on other sites More sharing options...
maloletov Posted December 2, 2018 Author Share Posted December 2, 2018 Thanks for the quick response! Conducted an experiment: Put the player on pause, close PA, turn-off device, turn-on device and start PA. Position is resume. How to close PA correctly when shutting down the system? Now when I turn off the device the intent "com.device.poweroff" is sent: final static String PowerOff = "com.device.poweroff"; Intent POff = new Intent(Settings.PowerOff); context.sendBroadcast(POff); Theoretically, all applications should complete correctly, because the power does not disappear, device is turned off by a can-bus signal. Link to comment https://forum.powerampapp.com/topic/15623-pa-does-not-remember-the-position-of-the-track-when-turn-it-off/#findComment-64743 Share on other sites More sharing options...
andrewilley Posted December 2, 2018 Share Posted December 2, 2018 3 hours ago, maloletov said: How to close PA correctly when shutting down the system? As you've said yourself, just pausing playback before you turn the power off should be sufficient. Andre Link to comment https://forum.powerampapp.com/topic/15623-pa-does-not-remember-the-position-of-the-track-when-turn-it-off/#findComment-64768 Share on other sites More sharing options...
maloletov Posted December 2, 2018 Author Share Posted December 2, 2018 That's right. PA itself can pause when you turn off Android? Оr before shutting down the system, it is imperative that it pause the command via the API? Link to comment https://forum.powerampapp.com/topic/15623-pa-does-not-remember-the-position-of-the-track-when-turn-it-off/#findComment-64772 Share on other sites More sharing options...
maxmp Posted December 2, 2018 Share Posted December 2, 2018 Poweramp does indeed tries to receive shutdown broadcast and pause itself, though it obviously doesn’t work on your device for some reason. Link to comment https://forum.powerampapp.com/topic/15623-pa-does-not-remember-the-position-of-the-track-when-turn-it-off/#findComment-64775 Share on other sites More sharing options...
maloletov Posted December 2, 2018 Author Share Posted December 2, 2018 3 minutes ago, maxmp said: Poweramp does indeed tries to receive shutdown broadcast and pause itself, though it obviously doesn’t work on your device for some reason. Made in China ((. What broadcast message pauses the player? I found broadcast "com.device.poweroff" and "android.intent.action.ACTION_SHUTDOWN" I suspect that they are not sent to the system on this firmware. Maybe I can send it forcibly through my service, fix chinese programmers. Sorry for the stupid questions, all my life I have written programs for windows and on android just starting Link to comment https://forum.powerampapp.com/topic/15623-pa-does-not-remember-the-position-of-the-track-when-turn-it-off/#findComment-64777 Share on other sites More sharing options...
maloletov Posted December 5, 2018 Author Share Posted December 5, 2018 I also saw a problem on the car device: if you pause the PA, do not close the player and turn off the car device, the position will be lost. If you pause, close the PA, turn off the car device, then the position will be restored at startup. Is this a car device problem or does the player remember the position when it is turned off and not during a pause? Link to comment https://forum.powerampapp.com/topic/15623-pa-does-not-remember-the-position-of-the-track-when-turn-it-off/#findComment-64986 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.