Re: [android-developers] getInstalledPackages(PackageManager.GET_ACTIVITIES) - PackageManager has died!?
On Wed, Apr 25, 2012 at 1:12 AM, 3c ccouno...@gmail.com wrote: Here is a crash report I received today while my app runs: pm.getInstalledPackages(PackageManager.GET_ACTIVITIES); Can someone tell me how to resolve this? My interpretation of the crash is that either: -- The user has too many applications installed, such that the list of installed packages with the activity data exceeds 1MB, or -- The user is running some flawed firmware I do not see how you can recover from either scenario. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] getInstalledPackages(PackageManager.GET_ACTIVITIES) - PackageManager has died!?
Well, I reverted the call to getInstalledPackages(0); Then manually retrieved the activity I was interested in, as I knew in advance which one to look for. A flawed firmware why not, but just exceeding 1MB of activity data seems unreasonable? My kids have installed 300+ games on their tablets and there's still like 70% free space! Though not such issue on those tablets. So 1MB of activity data would mean how many apps installed, any rough idea? Thanks for your prompt reply. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] getInstalledPackages(PackageManager.GET_ACTIVITIES) - PackageManager has died!?
On Wed, Apr 25, 2012 at 3:06 PM, 3c ccouno...@gmail.com wrote: A flawed firmware why not, but just exceeding 1MB of activity data seems unreasonable? My kids have installed 300+ games on their tablets and there's still like 70% free space! Though not such issue on those tablets. So 1MB of activity data would mean how many apps installed, any rough idea? Beats me. I have never tried counting bytes of getInstalledPackages() output. The 1MB limit is a known barrier on IPC transactions. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] getInstalledPackages(PackageManager.GET_ACTIVITIES) - PackageManager has died!?
Why are you doing this? This is a terrible way to find out about an activity. What are you actually trying to do? Usually people use PackageManager.getIntentActivities() to get the set of activities they are interested in. On Wed, Apr 25, 2012 at 12:06 PM, 3c ccouno...@gmail.com wrote: Well, I reverted the call to getInstalledPackages(0); Then manually retrieved the activity I was interested in, as I knew in advance which one to look for. A flawed firmware why not, but just exceeding 1MB of activity data seems unreasonable? My kids have installed 300+ games on their tablets and there's still like 70% free space! Though not such issue on those tablets. So 1MB of activity data would mean how many apps installed, any rough idea? Thanks for your prompt reply. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
RE: [android-developers] getInstalledPackages(PackageManager.GET_ACTIVITIES) - PackageManager has died!?
Why am I doing what ? getInstalledPackages(0), because I'm interested in specific package names with a predefined prefix, those may include a specific activity to configure the package. All the packages I'm looking for are app extension that I develop myself. So using getIntentActivities() is of no interest in this situation. In other words I'm searching for packages with predefined named (eg prefix.name) and then out of those I need to know which one have an activity named settings. Now the getInstalledPackages(PackageManager.GET_ACTIVITIES) is a valid API call, and nothing in the documentation says not to use it, but nevertheless it doesn't seem to be a good idea. Some users got FCs while others didn't get any results out of it. From: android-developers@googlegroups.com [mailto:android-developers@googlegroups.com] On Behalf Of Dianne Hackborn Sent: mercredi 25 avril 2012 23:24 To: android-developers@googlegroups.com Subject: Re: [android-developers] getInstalledPackages(PackageManager.GET_ACTIVITIES) - PackageManager has died!? Why are you doing this? This is a terrible way to find out about an activity. What are you actually trying to do? Usually people use PackageManager.getIntentActivities() to get the set of activities they are interested in. -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en