[android-developers] Re: Out of memory exception on setting wallpaper

2009-03-15 Thread ursnavin
Hi , Thanks for the help . The problem is resolved . I had used a ContentResolver for listening to contacts updated and dint unregister them in the onDestroy() method . Now have included the code changes and it seems to work fine . Im still in a doubt if this was the real problem for the out of

[android-developers] Re: Out of memory exception on setting wallpaper

2009-03-12 Thread Romain Guy
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 re

[android-developers] Re: Out of memory exception on setting wallpaper

2009-03-12 Thread JP
Sounds like the Drawable remains attached to a View between rotations. See blog post: http://android-developers.blogspot.com/2009/01/avoiding-memory-leaks.html On Mar 12, 3:29 am, ursnavin wrote: > Hi , > > Im trying to develop a home application . Whenever there is a shift > between landscap

[android-developers] Re: Out of memory exception on setting wallpaper

2009-03-12 Thread Mark Murphy
ursnavin wrote: > Hey, > Thanks for the reply, > The getWallpaper() is the android frameworks getWallpaper() function. Oh. I don't know what to tell you, then. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~

[android-developers] Re: Out of memory exception on setting wallpaper

2009-03-12 Thread ursnavin
Hey, Thanks for the reply, The getWallpaper() is the android frameworks getWallpaper() function. On Mar 12, 3:56 pm, Mark Murphy wrote: > ursnavin wrote: > > Hi , > > > Im trying to develop a home application . Whenever there is a shift > > between landscape and potrait mode , im setting the wa

[android-developers] Re: Out of memory exception on setting wallpaper

2009-03-12 Thread ursnavin
Hey, the getWallpaper() is the frameworks getWallpaper() function.Everytime the xception occurs only inside this function.Is this a bug in android?? On Mar 12, 3:56 pm, Mark Murphy wrote: > ursnavin wrote: > > Hi , > > > Im trying to develop a home application . Whenever there is a shift > > b

[android-developers] Re: Out of memory exception on setting wallpaper

2009-03-12 Thread Mark Murphy
ursnavin wrote: > Hi , > > Im trying to develop a home application . Whenever there is a shift > between landscape and potrait mode , im setting the wallpaper onCreate > () function using the below code . > > getWindow().setBackgroundDrawable(getwallpaper()); > > > The code seems to work fine