Wednesday, January 30, 2013

[android-developers] MediaPlayer getCurrentPosition and getDuration ANR on Samsung Galaxy SIII

I have a music app that received ANR reports from 2 users who both have Samsung Galaxy SIII devices (running Jellybean 4.1).  The app is locking up when calling the MediaPlayer.getCurrentPosition and MediaPlayer.getDuration methods.  Today I noticed that the Google Play Music app was updated with a bug fix for "Galaxy SIII freezing issues".
 
Is there any way to find out what Google did to fix their app because I suspect it's probably the same issue I'm experiencing in my app.
 
I suspect I'm going to have to run the calls to getCurrentPosition and getDuration in ASyncTasks to ensure the UI thread doesn't lock up, but it seems like there's a deeper issue causing these methods to lock up which is why I'm curious what Google did to fix their issue in the Play Music app.

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment