need reference page for how to write a png from res/drawable to background as wallpaper

by Spooky » Fri, 20 May 2011 09:53:23 GMT


Sponsored Links
 I've been trying to find a reference and/or example page
explaining how to write a png image file from res/drawable
to the background as wallpaper for about the last five days
now ... I give up...time to ask for help finding either or
both of the above....  I've seen all kinds of references to
unrelated sties, but I just can't find the right page.

Can someone please point me in the right direction?

Thanks,
   --jim

-- 



Re: need reference page for how to write a png from res/drawable to background as wallpaper

by Saurav » Fri, 20 May 2011 12:26:31 GMT


 You mean wallpaper for phone home screen?




Regards,
Saurav Mukherjee.






-- 


Sponsored Links


Re: need reference page for how to write a png from res/drawable to background as wallpaper

by Spooky » Fri, 20 May 2011 12:54:40 GMT


 


Ok, here's a chance for me to possibly clear up my own confusion.
I've
been under the impressions that A) the home screen is THE screen
that you get when you press the HOME button, and that the rest are
other screens, and B) that ALL of the phone's screens are Home
screens.......

I'm talking about wallpaper that you load on the backgrounds of the
seven screens.

I'm working on a photography app, and I want the user to be able,
if they want to do so, to load any of my photos (which, before the
app is built, are in res/drawable) on their Home screen/screens.

I've been looking every day until my eyes start screaming, and after
that, I've kept looking until my eyes go totally blurry for the rest
of
the day (and beyond, sometimes) for just under a week, and have
gotten lots and lots of unrelated pages, but nothing relevant so far.

Later,
   --jim

-- 



Re: Re: need reference page for how to write a png from res/drawable to background as wallpaper

by Saurav » Fri, 20 May 2011 14:05:32 GMT


 I am guessing this is what u want,

WallpaperManager manager = WallpaperManager.getInstance(this);
try {
manager.setResource(R.drawable.wallpaper);
 } catch (IOException e) {
e.printStackTrace();
}

U need to add SET_WALLPAPER permissions in ur manifest file.

Hope this helps.


Regards,
Saurav Mukherjee.








-- 



Re: need reference page for how to write a png from res/drawable to background as wallpaper

by Spooky » Fri, 20 May 2011 17:39:08 GMT


 



Looks like exactly what I need.  Thanks!   I also have something
far more likely to get better search results (for a reference page),
too---so thanks for that, as well!

Later,
   --jim

-- 



Other Threads

1. Apps silently close due to low memory (in remote Content Providers)

The system raises the level of the process(es) hosting content providers you
are using to the same level as yours; so if your app is in the foreground
when this happens, it means that there is just so little memory available in
the system that it can't even keep all of the foreground processes going,
and aside from simply not using that provider there is little you can do.
 (You can be sure to not keep open access on providers, if you are keeping
them open for a long time, so the system has some other process to kill that
you don't need right then.)

If this is happening while you are in the background running a service...
 well, getting killed while in the background is something that will happen,
and the more sessions you have with providers the more likely it is to
happen since this causes more memory pressure.  Again, only keep providers
open while you need them, and accept you will have your service killed at
some points, with or without it using providers.

On 1.6 you can use "adb shell dumpsys activity" to see a list of all of the
running processes, what level they are at, and why this is, which can help
track down for example why a lot of processes may be in the foreground.
 This is the second to last pocess list, with the oom_adj levels.




> 

2. HTC Hero Sprint - CDM

Misi numpang spacenya Mod.

allow RR,

as subject 100% baru dan sudah terinject smart, pembukaan 5jt (nego), kl mau 
nanya2 bisa contact langsung ke empunya di 0815.1037.7899 or 021.30077899

trims

*hanya bantuin jual punya temen :P

::: sent from dreamdroid powered by flashkomsel :::
--~--~---------~--~----~------------~-------~--~----~
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

3. Enabling Wifi on Beagle Board

4. ContactsContract

5. wtc : white magic :-)

6. Dua Games Android yang Unik : What's The Doodle & SpecTre

7. Tanya SPL Engineering yang oke