<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 3rd party music player skip and random pause in XPERIA archive</title>
    <link>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241238#M391313</link>
    <description>&lt;P&gt;After some scrabling around deactivating bits of code I think I've got to the root cause of the issue, I'm still not sure why it was working until I activated with Googles servers, but I do know where the problem is, I've just got to do a bit more digging to sort it out.&lt;/P&gt;&lt;P&gt;One of the problems was around passing an empty bitmap to the remoteview controller when setting the lockscreen controls, the other was cuased by acessing the network to download album art. As I say, I still haven't fully sorted the problem, but at least I know where to look now.&lt;/P&gt;&lt;P&gt;Thanks everyone for your help and patience while I &lt;A target="_blank" href="http://en.wikipedia.org/wiki/Rubber_duck_debugging" rel="nofollow noopener noreferrer"&gt;rubber ducked&lt;/A&gt;&amp;nbsp;to you.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jul 2014 14:05:33 GMT</pubDate>
    <dc:creator>wizlon</dc:creator>
    <dc:date>2014-07-01T14:05:33Z</dc:date>
    <item>
      <title>3rd party music player skip and random pause</title>
      <link>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241231#M391306</link>
      <description>&lt;P&gt;I am an app developer of a music app called "Car Music", which is available in the Google Play store (I won't provide links as I don't want to look like I'm advertising) and I'm having a problem with my app on my newly purchased Xperia Z2.&lt;/P&gt;&lt;P&gt;I will first start by saying that I haven't had this problem on any other handset I've used which includes a Samsung Galaxy Note II, Asus Nexus 7, HTC Nexus One, Samsung Ace 2 and a Kindle Fire HDX. &amp;nbsp;Which leads me to either believe it's a problem with the Android build on the Sony phone or another app running on the Sony phone.&lt;/P&gt;&lt;P&gt;Ok, down to the problem. When my app is playing music and the screen is on, everything is fine. But when I turn the screen off, things start going strange, the music pauses randomly, the music skips randomly, the music stops before the end of the track (usually by about 2-3 seconds) and then moves onto the next track, new tracks sometimes start 1-2 seconds into the track and lastly sometimes the current track will finish and the next track won't start until I wake the device. All of this happens seemingly randomly, but always when the screen is off (actually, this isn't necessarily true as I have had my app skip, but I have also heard this happen in the walkman and the google music app).&lt;/P&gt;&lt;P&gt;Does anyone know if this is a problem with the phone, the android version, any other software on the phone, or does my app have a genuine bug? If no-one can supply an answer here then I will try the question over on StackOverflow, supplying more technical details.&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:30:29 GMT</pubDate>
      <guid>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241231#M391306</guid>
      <dc:creator>wizlon</dc:creator>
      <dc:date>2014-06-24T14:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd party music player skip and random pause</title>
      <link>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241232#M391307</link>
      <description>&lt;P&gt;Hi and welcome to the community! Since you're new please be sure that you have checked out our &lt;A href="https://community.sony.co.uk/t5/Welcome/Discussion-guidelines/m-p/349678#U349678" target="_blank"&gt;Discussion guidelines.&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This could be tricky to narrow down, however we will start with the easy ones. Do you have Stamina Mode turned on?&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.sony.co.uk/legacyfs/online/9545iB2643AF3271BEB3B/image-size/small?v=mpbl-1&amp;amp;px=-1" border="0" alt="sony_logo126x24.gif" title="sony_logo126x24.gif" width="68" height="13" align="center" /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;EM&gt;&lt;SPAN style="color: #000000;"&gt;What are your thoughts about this forum?&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;EM&gt;&lt;SPAN style="color: #000000;"&gt;Let us know by doing this short&lt;/SPAN&gt; &lt;/EM&gt;&lt;EM&gt;&lt;A href="http://surveys.opinion-8.com/SE/SF/en" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;survey&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 01:23:34 GMT</pubDate>
      <guid>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241232#M391307</guid>
      <dc:creator>Sam</dc:creator>
      <dc:date>2014-06-25T01:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd party music player skip and random pause</title>
      <link>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241233#M391308</link>
      <description>&lt;P&gt;Hi Sam, thanks for your assistance.&lt;/P&gt;&lt;P&gt;No, I have not got stamina&amp;nbsp;mode enabled.&lt;/P&gt;&lt;P&gt;I have low battery&amp;nbsp;mode on (although the battery was fine when I was encountering the problem and therefore this mode shouldn't have been active) and I have location based Wifi on.&lt;/P&gt;&lt;P&gt;As suggested by someone elsewhere on the forum, I disabled the walkman app from the applications list, which has made things a tiny bit better (less skipping).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main problem i'm seeing now is that after a few tracks of it working fine I'm getting an issue where there is a cut off before the end of the track, but the time the audio isn't playing is offset by the time until the next track starts. It's almost like the audio manager is muting the music at "track time" - 2 seconds, retaining&amp;nbsp;the playback state and then unmuting the track when the next track starts.&lt;/P&gt;&lt;P&gt;I'm going to disable any sort of sound enchancement mode and test&amp;nbsp;this again, but it really sounds like there is a bug somwhere in the Sony mediaplayer implementation, probably caused by changes to the code for the Sony sound enhancements.&lt;/P&gt;&lt;P&gt;EDIT: I have disabled all&amp;nbsp;Sony related settings&amp;nbsp;I can see regarding sound and power management. One baffling problem which persists is that at the end of a track the next track sometimes won't start until the screen is turned on. I'm planning on putting a bunch of logging into my app to see what is happening, but until then, any ideas?&lt;/P&gt;&lt;P&gt;Edit 2: It seems that the longer I listen using my app, the bigger the gap between the audio cutting out and the next track starting. But again, it seems very intermittent.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2014 09:30:08 GMT</pubDate>
      <guid>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241233#M391308</guid>
      <dc:creator>wizlon</dc:creator>
      <dc:date>2014-06-25T09:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd party music player skip and random pause</title>
      <link>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241234#M391309</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'm sorry to say but have just gone through anything I would have normally advised to troublehsoot this and my application development skills are quite limited so I am not going to be able to offer much further insight on this. I have used a large number of third party media players before without encountering this problem so it must just be a case of something conflicting with the Walkman/Sound Effects process.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.sony.co.uk/legacyfs/online/9545iB2643AF3271BEB3B/image-size/small?v=mpbl-1&amp;amp;px=-1" border="0" alt="sony_logo126x24.gif" title="sony_logo126x24.gif" width="68" height="13" align="center" /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;EM&gt;&lt;SPAN style="color: #000000;"&gt;What are your thoughts about this forum?&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;EM&gt;&lt;SPAN style="color: #000000;"&gt;Let us know by doing this short&lt;/SPAN&gt; &lt;/EM&gt;&lt;EM&gt;&lt;A href="http://surveys.opinion-8.com/SE/SF/en" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;survey&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 00:39:49 GMT</pubDate>
      <guid>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241234#M391309</guid>
      <dc:creator>Sam</dc:creator>
      <dc:date>2014-06-26T00:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd party music player skip and random pause</title>
      <link>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241235#M391310</link>
      <description>&lt;P&gt;Would you be able to give my application a test (a free version is available) I just need to now if this is something wrong my my app or my phone.&lt;/P&gt;&lt;P&gt;Would it be worth doing a system reset? Would that help in any way?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I decided to go crazy and perform a Factory Reset so see if that would help in any way and to see if the problem is stock or caused by an application. After performing the reset I installed my app from SD without chaning any settings or linking any accounts or downloading any other applications. After around an hour of listening I haven't come accross any problems with playback, everything is working as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This afternoon I'm planning on connecting up my Google account and performing Sony app updates to see if the problem rears it's head again. Fingers crossed it was just a crossed wire (?) with the previous install, perhaps caused by updating from a previous verison of Android.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So, after everything was working just great, I decided to finish setting up my phone with all my accounts. And wouldn't you know it, after setting up my Google account, the problem resurfaced. I set up my account, updated the google play service, turned on Google now and the music started&amp;nbsp;stopping before the end of the track again. I tried uninstalling the update to google play service: nothing. I then turned off google now: nothing. I then disconnected my account: nothing. The problem still remains. I decided to reboot my phone to see if the problem goes away. We'll see soon perhaps... nope. Still problems. I'm going to uninstall updates one by one to see if the problems go away. To me it seems like a a conflict with a Google component.... but which one?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit 3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I know you're bursting to know my results so here we go. After multiple restores and tests it seems like the problem lies with Google somewhere, every time I had things working great after a restore, but as soon as I connected my account and started downloading new software and connecting to google plus and now, things went wrong. I'd love to know what is happening, but I'm spent.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 09:11:34 GMT</pubDate>
      <guid>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241235#M391310</guid>
      <dc:creator>wizlon</dc:creator>
      <dc:date>2014-06-26T09:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd party music player skip and random pause</title>
      <link>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241236#M391311</link>
      <description>&lt;P&gt;That is certainly a strange one, however with you having narrowed it down to Google Service conflict I would also expect to see the same error on other Android devices running the same Android version. Have you been able to test that at all?&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.sony.co.uk/legacyfs/online/9545iB2643AF3271BEB3B/image-size/small?v=mpbl-1&amp;amp;px=-1" border="0" alt="sony_logo126x24.gif" title="sony_logo126x24.gif" width="68" height="13" align="center" /&gt;&lt;BR /&gt;&lt;EM&gt;&lt;EM&gt;&lt;SPAN style="color: #000000;"&gt;What are your thoughts about this forum?&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;EM&gt;&lt;SPAN style="color: #000000;"&gt;Let us know by doing this short&lt;/SPAN&gt; &lt;/EM&gt;&lt;EM&gt;&lt;A href="http://surveys.opinion-8.com/SE/SF/en" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;SPAN style="color: #0000ff;"&gt;survey&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 23:53:29 GMT</pubDate>
      <guid>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241236#M391311</guid>
      <dc:creator>Sam</dc:creator>
      <dc:date>2014-06-26T23:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd party music player skip and random pause</title>
      <link>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241237#M391312</link>
      <description>&lt;P&gt;I'm a programmer but I've not steped into Android yet.&amp;nbsp;But from waht I can tell, the issue is&amp;nbsp;most likely lies with some of your code and Google framework. My suggestion is to go to XDA forum(if you haven't already) and post your&amp;nbsp;questions&amp;nbsp;there. The developers there are always wiling to help out and you would get faster &amp;amp; better results rather than stack overflow. Some of them would even be willing to go thru your code if you don't mind sharing them.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2014 02:48:33 GMT</pubDate>
      <guid>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241237#M391312</guid>
      <dc:creator>Zann_H</dc:creator>
      <dc:date>2014-06-27T02:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd party music player skip and random pause</title>
      <link>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241238#M391313</link>
      <description>&lt;P&gt;After some scrabling around deactivating bits of code I think I've got to the root cause of the issue, I'm still not sure why it was working until I activated with Googles servers, but I do know where the problem is, I've just got to do a bit more digging to sort it out.&lt;/P&gt;&lt;P&gt;One of the problems was around passing an empty bitmap to the remoteview controller when setting the lockscreen controls, the other was cuased by acessing the network to download album art. As I say, I still haven't fully sorted the problem, but at least I know where to look now.&lt;/P&gt;&lt;P&gt;Thanks everyone for your help and patience while I &lt;A target="_blank" href="http://en.wikipedia.org/wiki/Rubber_duck_debugging" rel="nofollow noopener noreferrer"&gt;rubber ducked&lt;/A&gt;&amp;nbsp;to you.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2014 14:05:33 GMT</pubDate>
      <guid>https://community.sony.rs/t5/xperia-archive/3rd-party-music-player-skip-and-random-pause/m-p/3241238#M391313</guid>
      <dc:creator>wizlon</dc:creator>
      <dc:date>2014-07-01T14:05:33Z</dc:date>
    </item>
  </channel>
</rss>

