Wednesday, July 4, 2012

Re: [android-developers] TransactionTooLargeException exception calling queryIntentActivities()



On Tuesday, July 3, 2012 9:57:15 AM UTC-6, Mark Murphy (a Commons Guy) wrote:
Well, I'd at least consider adding MATCH_DEFAULT_ONLY on the
queryIntentActivities() call, if you are building a launcher-type app.

Beyond that, I'm not sure if by default you get everything in the GET_
series of flags -- if so, that might be the source of your woe, and
expressly listing the GET_ flags you really need might help.

Thanks, I'll try the GET_* flags -- there are quite a few bits of information I can possibly trim out that way. Do you know of a way to measure the difference in underlying IPC payload sizes?

Basically, TransactionTooLargeException means you're trying to
retrieve > 1MB (IIRC) from a foreign process. In this case, the user
has too many apps installed, presumably.

This is why I think Google needs to do the underlying work in batches or otherwise overcome the 1M limitation. This is happening on regular user devices.

Bryan

--
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

No comments:

Post a Comment