PackageManager. get size of an installed package?

by Dianne Hackborn » Sat, 14 Mar 2009 02:58:50 GMT

Sponsored Links
 Sorry there is not currently a public API to do this.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


Other Threads

1. Error in build.xml using hudson

Hello all,

I am building app using hudson, but it throws me an error :

*Smartphone/Project1/android/project1/build.xml:49: taskdef class cannot be found*


Can any one tell me how to solve this error?



2. VideoView Problems

I have a video view embedded in a somewhat complex UI.  As part of the
look, the container of the videoview tends to animate in and out from
the sides (but the video isn't visible during the animation).  To save
some memory when the video container isn't visible, I'm trying to
unref that subtree of the view hierarchy.

Attempt #1:
Unref the entire subtree and inflate later when I need it.
VideoView works fine the first time, but after I unref and re-inflate
it fails to ever call the onPrepare() listener to trigger well timed

Attempt #2:
Preserve the VideoView between unrefs, manually adding adding it after
each inflate and remove it from its parent before unrefing the subtree
of view surrounding it.
Works the first time, but will only render a black screen after I add
the view back on the second pass.

Suggestions on how to fix either problem, or alternatives?

(Let me preempt comments on using Activities.  The basic Activity
structure didn't fit the design, and I've heard horror stories about
ActivityGroups, so we didn't do that at first.  By and large it what
we have works. Even if ActivityGroups are the right solution, I need a
quicker fix in the short term.)


3. Which device(s) is/are XHDPI?

4. Unexpected behavior with animated views / layouts

5. Streaming data from file to audio mixer

6. How to manage creating own thumbnails on Android 1.6?

7. Fwd: FW: Employee Referral invited for ( PL/SQL Developer's) Saturday's walk-in 05 March 2011