Bug? Content Chooser

gadgetmonster

Active Member
Licensed User
Longtime User
Hi,

I use the content chooser to allow users to pick an image. This works on most devices but I have someone with an HTC One X running Android 4.1 where the Chooser_Result doesn't always gets called. On the very odd occasion it does.

Now, on her phone she has dropbox and you can always pick up an image from dropbox - 100% of the time. Its the gallery that seems to be the problem.

I did a search on the forums and it appears several other people have experienced this but there has never been a resolution.

Anyone have any ideas?
 

yttrium

Active Member
Licensed User
Longtime User
This is probably something to do with how Sense-based ROMs handle background applications. Incredibly often, your activity will be killed while in the background because it's consuming too many resources - at least, that's how the system views it. This is not normal behavior and is really up to OEMs (HTC, specifically) to fix.

To explain the behavior that you see, when she restarted her device, it cleared all background applications so that your app had room. Gallery for Sense must be much more resource-hungry than Dropbox's image selection, which is what permits your app to either stay or be killed in the background - if more resources aren't needed (Dropbox) it's left alone and functions as intended. If they are (gallery) it's killed.
 
Top