"Optimizing" Nexus Live Wallpaper v0.3 2/10 - G1 Android Development

First, sorry if this is in the wrong section...
...the only stock Live Wallpaper I like is the Nexus, the only thing I hate about it is that it significant lags my G1. So I dug into the LiveWallpapers.apk and made a change so that there are fewer "cells" that fly across the screen. My theory, less "cells" = less processing. Swiping through home screens is a little smoother, and so is opening/closing the app drawer.
What I need help with, is, is it possible to disable the wallpaper following your home screen when you swipe across it? The cells tend to lag when swiping, and for this particular Live Wallpaper, I don't think it's necessary for the wallpaper to follow your swipes.
Here is my .apk. Rename to LiveWallpapers.apk then push to your phone. I pushed it to /data/app_s. It might be different on other ROMs though.(I also zipaligned it, not sure if that will help much either).
v0.3
http://www.mediafire.com/file/hyzwid2rmio/LiveWallpapers-v0.3.apk
Changelog:
- v0.1 -
- Reduced amount of cells in "Nexus" LWP.
- v.0.2
- Reduced the amount of cells even more "Nexus" LWP.
- Cut the length of cell trails in half "Nexus" LWP.
- Increased delay between a cell going offscreen and restarting "Nexus" LWP.
- v.0.3
- Bumped up the amount of cells a tad in the "Nexus" LWP.
- Optimized resolution to better fit screen in Grass LWP.
- Optimized ALL images in LiveWallpaper.apk.
- Resized thumbnails to a smaller size.
- Resized wallpaper for "Water" LWP from 1024x1024 to 640x480
- Made the leaves a tad smaller in the "Water" LWP.
- Reduced the amount of leaves on the screen in the "Water" LWP.

Which dir do you push it to? Ill be the guinea pig because thats the only thing i hate about my WG OpenEclair 2.1 Beta right now. Other then that, everything is gravy but as soon as you put the Nexus live wallpaper on and try to touch the screen or complete any task, it lags miserably.

just pushed it and it really does run smoother. i really dont mind the missing cells moving around. thanks

oreoOozZz said:
Which dir do you push it to? Ill be the guinea pig because thats the only thing i hate about my WG OpenEclair 2.1 Beta right now. Other then that, everything is gravy but as soon as you put the Nexus live wallpaper on and try to touch the screen or complete any task, it lags miserably.
Click to expand...
Click to collapse
data/app_s

I guess it's a little better. Maybe even less cells moving around would be okay.

xaisomboun said:
data/app_s
Click to expand...
Click to collapse
Thanks.
tee aiy emm said:
I guess it's a little better. Maybe even less cells moving around would be okay.
Click to expand...
Click to collapse
x2.

tee aiy emm said:
I guess it's a little better. Maybe even less cells moving around would be okay.
Click to expand...
Click to collapse
Done, try it out.

I see that other people are getting it pushed just fine. But I am noticing that when I tried to push it it's like it uninstalled all of the live wallpapers and didn't replace any. Any guidance?

care to post screen shots?

It doesnt actually replace any wallpapers. It's just a small tweak the reduces the amount of, lets say, action on the screen. The cells I'm referring to are the colored squares that fly across the screen in the Nexus Live Wallpaper.

How to Push?
ummm yeah how do you push onto g1 again?

ultra spikey said:
It doesnt actually replace any wallpapers. It's just a small tweak the reduces the amount of, lets say, action on the screen. The cells I'm referring to are the colored squares that fly across the screen in the Nexus Live Wallpaper.
Click to expand...
Click to collapse
Hey Spikey,
I'm away from my pc, but shouldn't I be able to use Root Explorer, mount /data/app_s as RW and copy/replace LiveWallpaper.apk with your updated one?
I'll probably do a nand backup and give it a go for the heck of it.

just playing with it:

QTeknology said:
just playing with it:
Click to expand...
Click to collapse
May I ask which LWP is that cause I never seen that one.
Edit: I see it now, thought it looked different though.This and galaxy have less action than the other ones.

If anyone cares, I was successfully able to mount my /system/app directory as RW with Root Explorer and copy Spikey's LiveWallpapers.apk in. It's working fine and I think it does cut down quite a bit of lag. Thanks Spikey.
QTeknology said:
just playing with it:
Click to expand...
Click to collapse
I've never seen a moon before...does it randomly appear?

ryan75 said:
If anyone cares, I was successfully able to mount my /system/app directory as RW with Root Explorer and copy Spikey's LiveWallpapers.apk in. It's working fine and I think it does cut down quite a bit of lag. Thanks Spikey.
I've never seen a moon before...does it randomly appear?
Click to expand...
Click to collapse
The time of day may be the reason for the moon but its 11pm here and I dont see it yet.

There's no artwork for a moon, he added that. Looks nice.
I'll look at the code and see if there's a way to make the nexus paper (actually, all of them) static.

I started to modify livewallpapers.apk
Resize a 512x1024px night.jpg in a fastest 320x480px (g1/g2 size)
then I edited the script grass.rs
at the last I simply added a full moon as background with photoshop cs4.
my apk is 200kb less now =)

QTeknology said:
I started to modify livewallpapers.apk then I resize a 512x1024 night.jpg in a fastest 320x480 (g1/g2 size) than I edited the script and at the last, I added a full moon as background.
my apk is 200kb less now =)
Click to expand...
Click to collapse
I know I got lazy when I worked on those live wallpapers and just left the artwork that size.
I think the artwork actually has to be tall (width at 320 is fine) because it scrolls through the png as the day goes by, it gets gradually darker.
The only one I did any work on was the nexus one to get the "cells" to align correctly to the pyramids. Then I did a revision to fix a problem where the touch registered at the wrong spot, and that was the extent of my work there.
I hope we can figure out a way to get those to run fast.

A little OT
talking about resize, I resized the nexus bootanimation to a 320H px
It's 1mb less now =)
http://www.4shared.com/file/209839184/77065e54/bootanimation_nexus.html

Related

[UPDATED] An opengl ES 2.0 livewallpaper - Space Chase

Hello world,
here's a demo i wrote to test the opengl es 2.0 ndk code.
i plan to make it a real wallpaper with options, but if you want to test it, here's the apk
--EDIT
apk updated to the beta version.
i'm gonna sell this on the market, but i give a free beta to xda members
just a quick view of the features :
-adjust star speed, size, density, rotation
-double tap to engage hyperspace
-single tap to fire
-auto fire mode
-change craft after each hyperspace
- 8 crafts so far (x-wing,y-wing,tie-fighter,tie-advanced,tie-bomber,tie-vader,millenium falcon,tyridium shuttle)
-auto hyperspace after 25 laser shots
-customizable laser color
and maybe a few more, it's late and i don't remember everything.
Oh i forgot to mention, it's almost all native code, using glsl shaders, so it should be verry cool with the cpu (but not the gpu )
unixseb said:
Hello world,
here's a demo i wrote to test the opengl es 2.0 ndk code.
i plan to make it a real wallpaper with options, but if you want to test it, here's the apk
Click to expand...
Click to collapse
Wow. Well done man. Looking great, can't wait to see the end result. Keep on keeping on.
That's pretty awesome. Looks like Star Wars hyperspace. Just missing a tilting Millennium Falcon in the foreground.
Just missing a tilting Millennium Falcon in the foreground.
Click to expand...
Click to collapse
i was planning a X-wing
Will we get to see a random transition in and out of hyperspace?
Works pretty well, there are some stutters when switching orientation
Seriously good job. My stomach started to turn after a few seconds, but that kind of stuff always gets me a bit sick to my stomach and really means you did some fantastic work.
Impressive. Swiping is still very fluid. It needs slowing down and probably other options but I expect you have those in mind. Can't wait to see a 'finished' version
This is gonna be great im going to keep an eye on this!
Nice. So glad I went for Droid instead of the TP2 I wanted.
Sweet i can't wait
Oh my god!! It`s incredible... Keep on going man.
I want to see this in my homescreen all the time under my icons and widgets!
It`s amazing...
I forgot to mention that the apk contains an activity and à live wallpaper, you can already have it behind your icons
Thankyou guy. Simply I have not search in the live wallpapers picker. It`s
awesome to see this in the desktop without slowing down so much. Keep the
good work.
Thank`s for all.
Nice one. The ability to set the speed would be nice.
Shows 0% cpu usage with SeePU, vmstat shows an average 22% user-cpu usage, 0% in sleep mode.
well, i worked a bit on this one and it became something
i've updated the attached apk to the first post.
i will sell this on the market but i give xda members a free beta.
the craft tilting is a bit too nervous so far, and it lacks a few setting, but it is close from it final version.
just let me know if you like it
remove spaceship
hey, i think u did a great job with that wallpaper, i just have a little suggestion, is it possible to add the option to remove the spaceship? keep it up!
yes, it is already in the full version
uff..got FC...and loop at reboot.
Maybe because of my test2&mods...
Nevermind,nandroid..
Edit: sorry, it wasn´t your livewallpaper that caused the trouble, but I put Wysie´s mod and TA Pro new patch together, this caused the loop!
Edit: Awesome Livewallpaper!!!
Wow, this actually works and looks great on the Droid. Very smooth.

[Live Wallpaper] 3D Active Blocks **updated 5/22/11 **.

This is my first android active opengl 3D wallpaper. Its tilt sensitive and when you touch the wallpaper it causes a ripple effect in the blocks. I have some options to remove the random z axis movement and two different block textures.
I’ve only tested it on my nexus one, and I’m looking for feedback(ideas) and how it runs on other active wallpaper enabled devices.
Thank for trying it out.
Video preview http://www.youtube.com/watch?v=ttkBMfPyrXQ
Version update 3.2.3
Added grid rebuild effect when wallpaper comes back in view. Can also be disabled in settings.
Reduced app size, project cleanup and changed some textures to jpgs.
Version update 3.2.2
More work on gallery image selection and the image is now better aligned with texture.
More work on movement code, hoping this corrects the grid position errors
Version update 3.2.1
Rebuilt with target OS 2.1 and lowered texture size to help reduce FC's.
Latest version 3.2.
- Added gallery image clipping, to better size image to grid.
- Uploaded app to market.
Features and effects for version 3.1
- Sticky finger effect (item can stick to your finger and fall back down)
- Disable accelerometer option, saves on battery
- Optimized touch selection.
- Made changes to gallery image loading. Reduced memory footprint and better scaling. (still in work)
- Homescreen page position now tilts the grid.
- Worked on landscape mode. (still in work)
- New preference settings.
**Note It can now be downloaded from the market, just seach for "activeblocks" or use the below link.
market download link http://market.android.com/details?id=com.nibblertech.activeblocks&feature=search_result
Why it asks permissions for Storage and Phone calls?
I have installed it on my HTC Desire and it seems to be working fine.
obvious question is... how's the batterly life since it uses the sensors?
tsouza said:
Why it asks permissions for Storage and Phone calls?
Click to expand...
Click to collapse
I'm looking into why its wanting those permissions, because the only one I use is ACCESS_SURFACE_FLINGER for object selection screen buffer writing.
Also I'm working on custom texture selection, which gives you the abillity to use any picture for the textures.
As for battery life, my wallpaper stops running when its not in view so that should help battery life.
Version 3 updated, many new features and effects, see first post for details.
Added video preview see first post for link.
Looks very nice.
cool idea, but it needs higher quality images to start. maybe some additional settings to tweak the users experience?
Looks cool. going to give it a try.
How to remove this??????
for my dext it's tooooo heavy
can't find any way.. hmmm
edit.
es file xplorer can't find it but standard app remover yes... sorry (however nice app )
So I downloaded the app for my HTC Desire and sent it to me through mail. I installed the app and it said that it was installed. But I can't seem to find the app anywhere in my app list, anyone knows why?
I tried this out, it seems to be pretty cool, but on the Droid X it seems to tile images. Maybe it is set to work with a certain pixel size image and tiles them if they are over that size?
You can remove this when you go to settings --> Aplications --> Manage applications --> All
it should be in that list
thomasedridge said:
So I downloaded the app for my HTC Desire and sent it to me through mail. I installed the app and it said that it was installed. But I can't seem to find the app anywhere in my app list, anyone knows why?
Click to expand...
Click to collapse
It's a live wallpaper, not an app. You set it as a wallpaper. That's why the thread starts with [Live Wallpaper]
Hehe.
Very cool. Woul love to pick an album, rather than just a single picture from my gallery. Perhaps picking a set number of pics would be ok, also.
lwp
I have never had a problem installing apps before, some reason with this i get an error saying that no app can be found to install it. Any ideas?
im a noob to all of this.. what steps need to be taken to get this onto your device? galexy s, vibrant to be exact
Its a cool live wallpaper its just makes my nexus choppy as hell, also I dont like the fact when you restart your phone and have a custom image the screen comes back on all white. Otherwise its pretty damn cool.
Very nice concept mate, works flawlessly on my SGS

240 dpi Contacts(Dialer), Touchwiz Calculator and S Planner (Request)

Anyone can try to mod Contacts(Dialer), Touchwiz Calculator and S Planner and even Wall Paper changer to work with 240 dpi or even less dpi on Note?
I second this...
Im using 3rd party dialer, but i wish i can have those native apps in the lower density.
Sent from my GT-N7000 using XDA App
I would love it !!!
danilos2k said:
I would love it !!!
Click to expand...
Click to collapse
I followed your advice given on Androidiani and 240 dpi are looking lovely.
danilos2k said:
I would love it !!!
Click to expand...
Click to collapse
+1
I would like to see this, too! Would be very nice!
i would love to have automn dialer ....have a look..
http://forum.xda-developers.com/showpost.php?p=19927125&postcount=6
i want this too, ive gone below 240 but 240 seems to be the sweetspot before the battery icon starts to blur. i also use 3rd party dialer i use angel dialer so i never see a problem. but it would be nice to have the native dialer work.
Does S Memo work for any of you when you use anything other than 320dpi? I get thick lines running across my notepad with anything other than 320.
edit: I just found the modded s-memo thread. Now all I need is the rest!
maybe a weird question, but why less dpi?
What changes are needed, just apps?
OpenMinded said:
maybe a weird question, but why less dpi?
What changes are needed, just apps?
Click to expand...
Click to collapse
If you tell the phone that the screen has 240dpi instead of 320, then it starts drawing things smaller. For instance, 12pt fonts are used instead of 16pt, or the icons become 30x30 instead of 50x50.
As the phone uses the pixel density information to calculate how many pixels should a quarter-inch-wide icon should be, coding in a lower dpi value makes all the drawn elements smaller, giving you more room. This way, you can have smaller text and have more on our gargantuan screen.
Most apps deal with this change nicely, as there are devices out there that actually have 240dpi density. A number of apps (google market) need your pixel density to be one of the supported ones (180,240,320) and other arbitrary values break certain app updates. And some apps (mostly samsung-specific ones) have hard-coded scaling factors that break the app when you change your density setting.
All in all, decrease the density value => have everything rendered/drawn smaller => more screen real estate, the caveat being a small number of apps not supporting scaling at all.
awesome explanation, I 'hit the button' .
Thanks.
To be honest I am happy with the space and prefer the 'no hassle' approach .
So apps that do not support scaling would simply not be in fullscreen mode?
OpenMinded said:
awesome explanation, I 'hit the button' .
Thanks.
To be honest I am happy with the space and prefer the 'no hassle' approach .
So apps that do not support scaling would simply not be in fullscreen mode?
Click to expand...
Click to collapse
It would make sense for the unsupported apps to simply be smaller than fullscreen, and it certainly is the case with samsung's touchwiz dialer, where it sits close to the upper left and has unused room on the right and bottom (contact list, call log and favorites tabs of the phone app scale nicely though).
On the stock launcher (touchwiz, samsung, surprising?), the dock is still at the very bottom of the screen, but there is unused/unusable space between the dock and where your app icons sit. third-party launchers (I tried adw ex) have no problem dealing with scaling.
For the s-memo app, it gets funkier, as the background drawing part of the code seems to have some weird hard-coded scaling, and when you increase your density, the memo-drawing area both shrinks (like the dialer) and also has thick black horizontal lines on it. Looks like an aliasing effect.
So it depends on how the various bits and pieces of the UI elements are coded in each app. If they coded it with multiple densities and scales in mind, it works like a charm. If they ignored it, it depends on where the reference/anchor points of UI elements are, as things can all get scaled and shrunk towards the upper left, or some things may stay at the bottom while others shrink towards the top. If the coders dropped the ball completely (s-memo), things get very ugly.
Hope this thread won't be ignored... Looking forward to some kind fella who would probably get this working
stephenjason89 said:
Hope this thread won't be ignored... Looking forward to some kind fella who would probably get this working
Click to expand...
Click to collapse
Would be very, very nice!
up for this
ignored for a long time
KL7 and beyond dialer is especially dreadful at 240 dpi, since the call button is effectively hidden
I'm going to attempt to follow this tutorial myself:
http://forum.xda-developers.com/showthread.php?t=863519
crysalis786 said:
I'm going to attempt to follow this tutorial myself:
http://forum.xda-developers.com/showthread.php?t=863519
Click to expand...
Click to collapse
Please share if you have succeeded.
Many thanks!

Improve GTA graphics + Mods

For those interested:
http://forum.xda-developers.com/showthread.php?t=1399258
http://www.droidgamers.com/index.ph...ics-in-grand-theft-auto-iii-with-a-few-tweaks
http://www.androidnext.de/howto/gta-3-bessere-grafik-dank-fan-patch/
Among the listed improvements, I saw steam rise from the vents where your first safe house is located when this this was added (not sure it was there before though).
This will also affect the resolution which won't change much, just the button layout which you can also adjust in the option menu.
I've also encountered slowdowns during cutscenes and a bit of stutter but nothing major.
Also when I installed this, I had no original .set file located in the folder. So I just dragged it there anyway.
Lag Fix
A user gave me an advice on how to combat the lag when adding the file above or lagginess in general:
"When you have successfully installed the game. Plug your phone to the computer go in to the "audio" folder. Here you have to arange the files from biggest to smallest. Then delete all the files from "CHAT.nfx" down to "END.nfx". It's a totall of 11 files. What this does is that it delete all the radio channels but all the sound FX in the game will stay the same. I have tried it out and after I did it the game runs smoothly".
Car Mods
original article by XDA
http://www.xda-developers.com/android/gta-iii-android-mods-and-tutorials/
Enjoy! All credit goes to listed site and users!
erm tegra 2 users already get all those effects dont we ? I would much rather have a frame rate fix. I expected the game to atleast run at a constant 30fps on our hardware. I constantly notice the slowdowns... i guess maybe pc games have spoiled me but has anyone else been annoyed by it.
ps. i think first update in market renders this mod pointless
No we don't. Its still version 1.1. Try it first.!
Sent from my SGH-T959 using Tapatalk
looks like its working because I see lighting effects on cars and streetlights now. It doesn't look like the buildings have all the lighting effects as in the screenshot, but I have nothing to compare it to really. Thanks for the tip, very easy to do.
Only one problem though, when you're watching a cutscene or looking at the map the skip button is in the middle of the screen. No big deal though.
That's weird then, i definitely have all the effects pictured in the comparisons (flares from lights, rain, smoke etc.) I'm not sure what version you guys/i am using but i will post some pics tonight. Maybe this explains my poor 20-30fps performance.
I'm currently using the market version. Supposedly it's been ripped from the xpleria play.
maybe try go to options to restore controllers to default? iirc mine wasnt at the middle of the screen. I hope later there are some ways to improve the graphic texture, that would be nice
Looks better but new .set file messed up my on screen controls
midnightmach said:
Looks better but new .set file messed up my on screen controls
Click to expand...
Click to collapse
You can rearrange it on the controls settings.
I have GTA from the market and updated it yesterday - i tried this file, but did not notice any significant (I say it was the same) improvement over the standard .set file (only controls were messed up).
The game looks amazing with the file. Maybe you just didnt make note of what it looked like prior, cause mine looks way, way better.
Tried again - still nothing - and just in case I went through some comparison shots - rain effects, headlights and lightning effects were there for me even with the standard file... maybe I'm missing something.
Hey guys XDA added an article for those looking to add additional cars.
http://www.xda-developers.com/android/gta-iii-android-mods-and-tutorials/
Hey FYI, XDA member hacksteak25 made an app for changing the graphics settings in GTA III. It worked great on my TF.
You can grab it here:
http://forum.xda-developers.com/showthread.php?t=1417810
I got another one!
This RAM manager app makes GTA run like a dream, especially with all effects turned up:
http://forum.xda-developers.com/showthread.php?t=1305060
GTA for Android sure is turning out to be something great. It has me thinking of all the possibilities for PC game ports. I know it's probably a pipe dream, but my mind keeps circling back to Half Life 2 .
Thanks Phil. Finely, modding a game to add content, not to cracking it to make it work. Hats off to Rockstar.
GTA Mobile Modding Site
Hey all, there is now an entire website dedicated to modding the mobile version of GTA.
http://gta3mobilemodding.de.vu/
It's pretty light on content as of now, but it just went up 2 days ago.
Enjoy .

[APP][TESTERS NEEDED] Notch Battery Bar - Live Wallpaper

Use your notch as a battery bar in this live wallpaper.
I need someone to test this app on the Essential Phone. So if you install the trial version on the phone, adjust the size and post a picture(not a screenshot), I will give away pro version codes for the first 3 people.
Trial - Play store link
Paid - customizable - Play store link
Looks pretty awful, since it's designed for wide notches and we only got a "drop" of a notch...
Width: 200
Height: 150
Used settings:
Width: 220
Height: 160
After applying size adjustments to app, nothing happens.. all I see is the wallpaper, and the app wants me to change 5he wallpaper as well?
This is a very creative app; appreciate the ongoing work for this ?
Please give me code too.
210x155
I tried your app with a bunch of different settings to try to get one that works well with this phone.
width 170
height 129
Seems to work best for me.
One issue I have with it is the angle of the slope.
Is there any way you could simply make the highlighting properly follow the curve of the notch for this phone, rather than spread out (thicker) at the top and around the bend (bottom). FYI: I could never see the color band below the notch (as shown in your video for other phones).
Also, there should be a way to visualize any changes you make rather than going pixel by pixel to try to get to the perfect setting for your phone. --> Hit apply. --> Hit back. --> Hit preview. --> Realizing you have to change it again and again. --> Hit back. --> Hit edit. Change #s. --> Repeat.
Simply too many steps.
My guess is that the average user takes 10-15 tries to get to the correct-ish numbers for their specific device.
Suggestion:
I know it's a lot of work with so many phones, but maybe a submission key / option so you can begin to collect preset ranges that people are using for the most common phones.
Question:
Is there any way to implement this so that it overlays when you are using another app. Right now, it only shows on the home screen (wallpaper only).
Because of this, I can't use muzei
If you can do this, I'll happily buy it.
------
Feel free to PM a code if these suggestions are useful.
mazubo said:
After applying size adjustments to app, nothing happens.. all I see is the wallpaper, and the app wants me to change 5he wallpaper as well?
This is a very creative app; appreciate the ongoing work for this
Click to expand...
Click to collapse
You have to hit preview to see the changes.
Interesting app. I just previewed the trial. I need to play a bit with the sizing though. I'm a little disappointed this is a live wallpaper though. I'd like to use a different live wallpaper. Is there no way to use this as an overlay or something, even with root?
If you buy the app it let's you change the wallpaper
martinezs89 said:
If you buy the app it let's you change the wallpaper
Click to expand...
Click to collapse
But I don't think you can use 2 LIVE wallpapers at the same time.
gk1984 said:
Interesting app. I just previewed the trial. I need to play a bit with the sizing though. I'm a little disappointed this is a live wallpaper though. I'd like to use a different live wallpaper. Is there no way to use this as an overlay or something, even with root?
Click to expand...
Click to collapse
Yes, we cannot use 2 live wallpapers at the same time. And the wallpaper needs to be live otherwise it wont be able to update itself.

Categories

Resources