[Q] Live Wallpaper Backgroud - Android Software Development

I am pretty new into android development and have a couple questions I'm sure you guys can answer pretty quickly but have so far not been able to figure out. How do I have a set background in a live wallpaper besides just creating something from canvas, I have it already loaded in the hdpi I just need to figure out how to call it. Also, is it possible to have something appear enlarge a little bit in the center of the screen then fall off the screen? I'm trying to create a time lapse of a tree where it goes through all the weather changes. Any sites you could link me too or answers you would have would be greatly appreciated. Thanks for anything you guys are able to do.

Can you be more specific? When you say background are you talking about an image file you've added as a drawable?
If you use the drawBitmap method you can draw images anywhere on a canvas.
This is roughly how I do it on my Live Wallpapers.
Code:
Bitmap background = BitmapFactory.decodeResource(getResources(), R.drawable.background);
c.drawBitmap(background, 0, 0, null);
That will draw the bitmap at the upper left most position on your canvas.
If you want your live wallpaper to slide left and right as you swipe between home screens you need to adjust the x position based on the offset. Look at the cube live wallpaper source code for more information on how to get the offset value.

What I have is a picture loaded in the hdpi file that I want to use as my background, the thing with the cube is it shows you how to draw a picture but not add one into it. I want to load in the photo and then have objects enlarge and drop down around the center of this picture. The design I'm going for is a time lapse of a tree. I was told surfaceView can set your background but I'm not sure if that's the case or not. Thanks for the reply though I appreciate it.

bearcatext said:
the thing with the cube is it shows you how to draw a picture but not add one into it.
Click to expand...
Click to collapse
It works exactly the same but instead of using c.drawLine() you use c.drawBitmap()

That makes a lot of sense thanks, and for the leaves falling would you just set the coordinates to somewhere in the middle then? Also, is there a way to have an image change color mid-screen so it looks like fall is hitting? Thanks for all your help again though.

Related

Portrait Background

Hey guys I downloaded a theme to my phone but i do not like the portrait picture. How do i just change that picture to something else? Thanks!
SEARCH/READ THE USER'S MANUAL!!!! But, if you hold your stylus down on the picture you want as a background, you'll see the little circle things, then a list of options, like right clicking on a mouse, select set as desktop background. Then select how washed out you want it, and select ok. There, that was your freebie. Use Wiki and search the forum from now on.
no i want to change just the portrait picture. only when i slide my slider. i know how to do that. i remember seeing a deal about that now i cant find it.
I'm pretty sure there's no way to change JUST the portait picture. You mean like having 2 seperate desktop pitures with one to display in landscape, and the other in portrait, right?
Yeah. But I found a way of doing. Just a little more work than I intended. Thanks!
HEY! this is give and take here... So spill the beans, how did you do it?
Yeah! this I gotta know about. You may have found a secret no one knows. The other question is: how can you re-size a pic so that when it is used as a desktop background, it only uses a portion of the screen and doesn't obscure say the whole "black theme" in use?
I'll let you guys know as soon as i get it done. Haven't even tried yet. Been playing around with different ROMs to see which I like better. So far I'm diggin the Touch-It Light.
--slLy-Dee
if you want to change picure ionly in portrait mode, bud not landscape, you must force edit the Theme you want.... or, ... maybe if it is multiple images theme, just replace one of them, but most are 1 file, .... in that case you have no chance without any program..
Google search for ThemeGenCE. It works like a charm and allows one to change the portrait (slide closed) and landscape (slide open) to different pics. it will also change almost all of the colors. I'll try to post a screen shot of the Halo3 theme I built with it. I've built about 12 different .tsk files with it so far and all of them turned out pretty well. It will also let you import an existing theme and modify it. I used the black touch skin and applied my own pics.
It automatically resizes pics to fit the screen...
Yeah. That's what I was gonna play with but never had the chance. I forgot what the prog was that's why I never bothered. Thanks!!
the gloss from WM6 doesn't show up when you make a theme using ThemeGenCE?
The gloss???
wow thats nice....this will work with the wing correct???
Yes... I'm currently running it on a wing. I'm having some issues getting the color fades on the start bar to work. It has to do with the WM5 tab but the descriptions are a bit cryptic as to what fields they actually represent. So I built one with a LOT of really out there colors to see what field effects what part of the screen. If you don't use the stuff on the WM5 tab then it will just be solid colors. The Halo3 one wound up just being green instead of the orange/green fade at the top. That screenshot is from the previewer in the program not what actually wound up on the phone.
senzamike said:
Yes... I'm currently running it on a wing. I'm having some issues getting the color fades on the start bar to work. It has to do with the WM5 tab but the descriptions are a bit cryptic as to what fields they actually represent. So I built one with a LOT of really out there colors to see what field effects what part of the screen. If you don't use the stuff on the WM5 tab then it will just be solid colors. The Halo3 one wound up just being green instead of the orange/green fade at the top. That screenshot is from the previewer in the program not what actually wound up on the phone.
Click to expand...
Click to collapse
Probably a stupid question but what were the size image options you put in? In the options it asks about the size of the screen & the size of the start menu

Wallpaper Size

I have been creating a few VW style wallpapers for a while in 480 x 800 as jpeg's.
When I assign it as the today/lock screen it is not centralised. As when I press start the image moves up. If you understand? I'll try and get some screenshots.
I have an Image of a BBS alloy before and I'm sure that this didn't do the same. I was pretty sure the resolution was 480 x 800. Is this correct?
Hoping somebody that creates themes/wallpapers could help me out.
I'm using photoshop CS3.
Thanks,
Al.
A.Calamita said:
I have been creating a few VW style wallpapers for a while in 480 x 800 as jpeg's.
When I assign it as the today/lock screen it is not centralised. As when I press start the image moves up. If you understand? I'll try and get some screenshots.
I have an Image of a BBS alloy before and I'm sure that this didn't do the same. I was pretty sure the resolution was 480 x 800. Is this correct?
Hoping somebody that creates themes/wallpapers could help me out.
I'm using photoshop CS3.
Thanks,
Al.
Click to expand...
Click to collapse
I think the image you see when you go into the start menu, is the 'lock screen' wallpaper, so i think it displays this between the top and bottom bars... so if you're using CHT or another app to make your wallpapers fullscreen (i.e. cover the top and bottom bars) it'll look weird.
I had the same issue..... i think
yup 480*800 is correct...
Yeah, I was pretty sure on the resolution. But yes. It does cut out the top and bottom where the black bars are. Is there a way to stop it doing this?
What is CHT? I'm not using that to make them fullscreen I don't think.
Its just when I make the wallpapers because I crop most of the image and line it up with the bottom of the picture for a good "look" It most likley cuts it off on the today screen. Which cuts some of the detail out sometimes. So I have to make sure that it is far enough up the screen. I suppose I could get the resolution between the two bars. Although when you get the lock screen there would be two gaps.
Is there a way to have a different lock screen?
A reg key pointing to the image?
Thanks,
Al.
when i used to be a WM user, this is what i figured out about WM6.5(.x) behavior.
the HD2 has a 480x800 screen. WM6.5 can be set to have a wallpaper (***cough***iPhoneSux***cough). WM6.5 can also be set to have transparent "top" and "bottom" bars.
now, things start to get a little confusing.
1. ideally, we would like to see the ENTIRE wallpaper on the lockscreen and homescreen, with the status/notification icons overlaid.
2. similarly, we would like to see the ENTIRE wallpaper behind the start menu. if transparent "top" and "bottom" bars are used, we would like them to be transparent when the rest of the wallpaper is visible as just described in the scenarios.
3. however, we would like the transparency to go away when an application is running in the foreground (being able to see thin strips of the wallpaper when an application covers the rest of the screen looks silly i guess).
it turns out that WM6.5 ALMOST covers all those requirements. it sort of fails on the homescreen (where it matters most!). now, things get complicated on the homescreen also. there may be:
a. NO homescreen plugin OR...
b. the native "titanium" homescreen OR...
c. HTC's "sense" homescreen (also called touchflo, manila, etc)
now, simply using a 480x800 file yields the following results...
i think i remember that (a) fails, but most of us have SOME homescreen plugin. i think i remember that (c) also fails because "sense" seems to take over the responsibility to draw a wallpaper in its background.
i have been a loyal HTC "sense" user as long as i was using WM. i always had CHT installed as well (Cookie's Home Tab, a plugin to enhance HTC's "sense" homescreen by adding many more options). i believe CHT1.8.5 and later added a new style of wallpapers and the ability to skin" the "top" and "bottom" bars with corresponding strips of the wallpaper. this meant i could just feed it a 480x800 image and it would do the necessary clipping/cropping/skinning to achieve the effect of a seamless wallpaper, whether on the lockscreen or homescreen or when viewing the start menu. a side effect was that my "top" and "bottom" bars were always skinned, even with an application in the foreground, but such is life!
i hope that helps...

Pinch Zoom Transformations

Hey everyone!
I have been trying to get pinch zoom working in a SurfaceView, and I can get it to detect if a pinch is happening and all, but here is my dilemma.
I am using canvas to draw a grid to the background. The grid is a 2d array of Rect objects, so as I pinch, I change the size of the Rects. My problem is getting it to zoom into the correct area of the grid.
So, my question is how to do the correct transformation on something like this? Is there a way to put an ImageView into the canvas and draw to that? I will post the relevant code when I get home from work later today, but I figured I would post this just to see if anyone had done something similar.
Thanks in advance!

[Q] Confused on setting wallpapers

Honestly, I'm not really sure why this has to be so difficult. There seems to be a million different ways to set a scrolling wallpaper.
First let me tell my setup. I'm using Nova Launcher and I force it to remain in landscape mode, so when I'm on my home screen it won't rotate. This should make setting my wallpaper easier. I just need wallpaper for landscape.
I basically want to get a wallpaper that's 5300x1600 and I want it to be DOT-BY-DOT on my background. In theory this wallpaper should never have to be cropped since the resolution is basically 2 nexus 10 screens side by side. The number of pages I have on my homescreen should simply only determine how far the wallpaper shifts each time I move to another page. Less pages means greater shift.
However, no matter how I set the wallpaper, it always seems to crop completely randomly and wrong. For example, the Nova wallpaper setter has a strange cropping indicator (looks like a fat cross) that makes no sense, and the background ends up looking huge (cropped too much) and doesn't shift much when I move to the left and right through screens.
Can anyone help me find the perfect way to setup my scrolling wallpaper? Thanks.
i dont know about scrolling...but you can use simple image wallpaper to use a static image without cropping and it sets it as a live wallpaper even though its not but works perfectly
You may have to use this:
https://play.google.com/store/apps/details?id=org.tamanegi.wallpaper.multipicture
I've had TONS of trouble with using the Gallery to set my wallpaper due to cropping. On the other hand, I THINK QuickPic worked well but its been years since I've used that. Well, A year.
Android.Addiction said:
Honestly, I'm not really sure why this has to be so difficult. There seems to be a million different ways to set a scrolling wallpaper.
First let me tell my setup. I'm using Nova Launcher and I force it to remain in landscape mode, so when I'm on my home screen it won't rotate. This should make setting my wallpaper easier. I just need wallpaper for landscape.
I basically want to get a wallpaper that's 5300x1600 and I want it to be DOT-BY-DOT on my background. In theory this wallpaper should never have to be cropped since the resolution is basically 2 nexus 10 screens side by side. The number of pages I have on my homescreen should simply only determine how far the wallpaper shifts each time I move to another page. Less pages means greater shift.
However, no matter how I set the wallpaper, it always seems to crop completely randomly and wrong. For example, the Nova wallpaper setter has a strange cropping indicator (looks like a fat cross) that makes no sense, and the background ends up looking huge (cropped too much) and doesn't shift much when I move to the left and right through screens.
Can anyone help me find the perfect way to setup my scrolling wallpaper? Thanks.
Click to expand...
Click to collapse
Use nova launcher, edit this wallpaper you got with paint, change the resolution to 2560x1600. Set this wallpaper with nova and it will be DOT-BY-DOT on your background. You can't do it with 5300x1600.
The fat cross is for the landscape preview (the horizontal bar of the cross) and the portrait preview (the vertical one).
I'm using Nova and I look for wallpapers that are around 4000x2000 so that when I crop, it fits around the tablet's resolution without losing quality.
Basically the highlighted portions in the cross will be the background of the primary home screen. It'll shift left and right as you scroll. It's not at all complicated, not even from Gallery. It's quite easy to operate.
Sent from my Nexus 10

[SOLVED!] [NST/G] How to get rid of default wallpaper?

I'm working on setting up a second NST and this time I want to arrange the launcher a little differently. I'm using ADW EX 1.3.3.9 and it seems to have picked up a default wallpaper from somewhere on the device (screenshot below). I can't find any way in ADW to do anything with wallpaper and I can't locate the image that's being used anywhere on the device. I don't want any wallpaper at all.
Can anyone point me in the right direction?
Edit: That was almost too easy...once I found the right ancient app. Then I created a 800x600 white png file and chose it for wallpaper. Magically it replaced the mysterious "n" image! I've attached a copy of the useful app
I have a simple (and boring) app for setting wallpaper.
You get a choice of black, white or aqua.
Note that wallpaper is usually larger than the screen size due to panning.
The only way to find out how large is to ask the system.
Code:
WallpaperManager manager = WallpaperManager.getInstance(this);
int width = manager.getDesiredMinimumWidth();
int height = manager.getDesiredMinimumHeight();
Wallpaper-1.0.apk is in the signature.

Categories

Resources