Aw: Re: PackageManage: Couldn't copy package file to temp file.

by Matthias » Fri, 20 May 2011 20:13:20 GMT


Sponsored Links
 I see this happening with rooted G1s, was your phone rooted by any chance?

In any case, I can install packages via adb and Eclipse, but not using the 
'pm' command on the device.

-- 



Other Threads

1. SOLD WTS: HTC Legend 2,5jt

As subject.  
Thanks
@jakontil
www.jeruknipis.com/forum
ris...@naekgenteng.com

-- 
"Indonesian Android Community [id-android]" 

2. Memory leaks in activities and views

We found there are very {*filter*} memory and resource leaks in activities
and views that we don't know how to handle. I have test app that
basically starts activity A, that immediately starts activity B and B
starts A and so forth in infinite loop. Each activity displays its own
bitmap in image view. After X cycles JVM runs out of memory. There are
no static or any other references to bitmaps or views or anything
else.

It seems that when one activity launches another a new instance of
that activity is created (constractor is called, then onCreate, then
onResume, the launching activity is paused and its onPause is called).
onDestroy is almost never called. When new instance is created old one
probably still holds references to view and bitmap so they are not
freed.

The only way we found to prevent JVM from running out of memory is to
do ALL this from onPause and onDestroy:

1. Get image view drawable and set its callback to null.

2. Set image view background drawable to null.

3. Set ANOTHER view to activity (probably this removes activity
reference from the image view).

4. Get the bitmap, call its recycle() method, set its handle to null
and then run GC with System.gc().

If ALL these steps are executed JVM flips these image activities
infinitely without running out of memory. Obviously, it is very hard
to implement this solution when you have complex view with zillion of
different images and more then a dozen of activities.

What's the best and proper solution to aforementioned problem?

-- 

3. android.database.StaleDataException: Access closed cursor

4. HTC Incredible suffering a reset while service running.

5. Trouble with pendingIntent

6. recognizing gpio buttons in userspace

7. Fwd: Touchscreen support for 7 Inch LCD panel