Out of memory exception on setting wallpaper

by Romain Guy » Fri, 13 Mar 2009 00:27:02 GMT


Sponsored Links
 getWallpaper() is not leaking. The default Home app is using it and
does not experience out of memory errors because of that.

I am more than willing to fix any existing memory leak in the
framework (and I did several times) or in the default apps (and I did
several times) but developers should really stop assuming that out of
memory errors are always caused by the framework. It is *very* easy
for an application to leak or simply to use too much memory.







-- 
Romain Guy
Android framework engineer
romain...@android.com

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. How to ues getRotationMatrix to translate the Sensor.TYPE_ACCELEROMETER values from device coordinate to world coordinate?

Thanks,but your result is the accurate rotation angles of axises.
I just want to know how to get the accelerometer values translated
into the world coordinate.
Any thoughts?






-- 

2. Port Based SMS Proble

Hello there,

we are using port based SMS now for some communication with our
Android software. the problem is now that we register for port X with
the system to receive broadcasts, but we receive broadcasts for ALL
ports.

<receiver android:name=".communication.sms.SmsBroadcastReceiver">
        <intent-filter>
                <action android:name="android.intent.action.DATA_SMS_RECEIVED" 
/>
                <data   android:scheme="sms" />
                <data   android:host="localhost" />
                <data   android:port="16677" />
        </intent-filter>
</receiver>

I believe this is a security issue. Right now we check programtically
if the SMS came to the right port, but I would ecpect that we didnt
get the notification in the first place.

I looked into the source for the comonent, which is responsible for
the broadcast and I can clearly see that it is a problem with Intent
matching. The intent is only matched by the action and not by the
sheme, host and port. If I just specify the host port and scheme, We
dont get the broadcast at all.

Maybe I can get some feedback from some experts in here.

Falko

3. Problem with image scrolling

4. how to do hide and activity when there is an activity on top redirecting me to home screen

5. Delete files from Phone memory(Internal)

6. mp4,gif,flash animated wallpaper for android 2.1 for HTC nexus one?

7. @Indosat Booth