yashsingh1/xdaforums huggingface dataset:
[G1 Q&A, Help & Troubleshooting] brummiesteven:
Right a quick question about Android Developing.

I'm a 1st year Computer Science Student, learning java. I would like to eventually be able to code for android.

Obviously android apps are coded in java so am I right that being able to use java would mean you would be able to code for android? Asside from slight differences, coding for the touchscreen etc.

For example, here is a basic Prime Number Calculator:

public static void main(String[] args) {
for (;;) {
InputFrame theInputFrame = new InputFrame();
int seqlength = theInputFrame.getInt("Length of Sequence");

int[] notcrossed = new int[seqlength];

for (int i = 0; i < seqlength; i++) {
notcrossed[i] = i + 1;

}

for (int i = 2; i < seqlength; i++) {
int times = 1;
while (i + ((i * times) - 1) <= seqlength - 1) {
notcrossed[i + ((i * times) - 1)] = 0;
times = times + 1;
}

}

// System.out.print("Prime numbers between 2 and " + seqlength + " are: ");

for (int i = 1; i < seqlength; i++) {

int primenumbers[] = new int[seqlength];

if (notcrossed[i] == 0) {
} else {
primenumbers[i - 1] = notcrossed[i];
System.out.print(primenumbers[i - 1] + " ");
}

}

System.out.println("");

}

}

Would I be right in assuming that android would understand this code? Of course with tweaks to make things display on screen, input numbers etc?
[G1 Q&A, Help & Troubleshooting] lbcoder:
Java is Java is Java... more or less. Perhaps more less than more ;)

Some classes you know may not exist on Android, and Android has some classes you may not be aware of. System.out.println won't do anything on android, instead, you would use Log.d("label","value") -- debug message, or Log.e() for error message. Simple dumb stuff like that.

The biggest difference that you will find is that UI stuff is typically written in XML rather than directly in Java. The various integrated widgets already handle the touchscreen events, so if you stick with them, there is nothing much you need to manage -- just some simple things, like linking a button widget to a click listener via the widget's setOnClickListener() method. A click listener is essentially just a runnable that runs in the display thread (so that it can directly affect what is showing on the screen). Also you need to read up on linking your classes with the appropriate XML screen layout file.

There's a TON of useful starting info located here: http://developer.android.com/guide/topics/fundamentals.html

Read ALL of that stuff... five times. And try out all their idiot programs. They seem simplistic, but they will help you get a feel of the platform.
[G1 Q&A, Help & Troubleshooting] scottgarza:
Before getting start with Android, know the basic things needed for learning Android programming and app development. Basically Java plays an important role in Android app development.

I would also suggest you to get the help from online experts where they would surely help you out in learning Android programming ans app development from scratch.

I found one such tutorial @ learnsauce seems to be interesting where they not only help in learning Android programming but also in learning Android app development.
[Nexus One Themes and Apps] hks18psigst:
was just thinking... once we get cracking on nexus development.. are ppl going to be able to design there own live wallpapers? would be sort of aweSOME!!!!
[Nexus One Themes and Apps] xManMythLegend:
Depend what type of file they are.

Its obviously more than a picture or animated file.

My buddies first reply was "how very ..java scriptish"
[Nexus One Themes and Apps] ccunningham83:
I can't wait to see people create their own. I know it will be out of my current range of knowledge to do it myself. My friend suggested someone needs to make a Matrix like live wallpaper.
[Nexus One Themes and Apps] Carloswithac:
Bouncing boobies ftw!?
[Nexus One Themes and Apps] stewart1988:
And as you swipe to the next screen they jiggle to the way you swiped lol. :p
[Nexus One Themes and Apps] velazcod:
i would pay for this!!!
[Nexus One Themes and Apps] velazcod:
http://www.youtube.com/watch?v=zKO-tZGuFDg
[Nexus One Themes and Apps] RussianSolja:
Aint these live wallpapers .GIF files?
[Nexus One Themes and Apps] seraph1024:
Going thru the LiveWallpapers.apk right now. Interesting.... This is not something you can just replace. They are not GIF images. They are actually regular png/jpg with combo of some other code. I have not been programing for a while. I have to sit and figure out the actual logic behind them etc. I can tell you this came out of galaxy live wallpaper:
[Nexus One Themes and Apps] shawncplus:
The live wallpapers are evidently built using Processing(processing.org).

Source: http://www.curious-creature.org/2010/01/07/nexus-one-live-wallpapers/
[Nexus One Themes and Apps] hks18psigst:
nice find.. hope some ppl start developing these
[Nexus One Themes and Apps] brandenk:
There is already a bounty started for the first person to make Live Wallpapers for the community

http://alldroid.org/viewtopic.php?f=247&t=1283
[Nexus One Themes and Apps] coolbho3000:
From the Android IRC, think SDK for Live Wallpapers will be released very soon... likely with 2.1 SDK.
[Nexus One Themes and Apps] kozm0naut:
Processing

Processing is an artistically-inclined language built on Java that's relatively easy to use, and reminds me of coding flash animation. If this is written using Processing, the language is already available at http://www.processing.org.
[Nexus One Themes and Apps] DarkLord7854:
+1 to a Matrix wallpaper, and pressing it would have a ripple effect lighting up letters
[Nexus One Themes and Apps] bougelahi:
http://androidandme.com/2010/01/news/google-to-offer-sdk-for-android-live-wallpapers/

just wait for the confirmed new sdk...kinda pointless making a bounty for this with the sdk release confirmed
[Nexus One Themes and Apps] carnegie0107:
+1 for both those ideas. If that wallpaper existed, I would be downloading it this moment and would love it forever.
[Nexus One Themes and Apps] Mi|enko:
Anyone know the location of the live wallpapers? I'd like to remove the ones I don't use. . . but, I guess, if they're part of the app, that might be a problem.

Pulled the apk. Think I just answered my own question. :-\
[Nexus One Themes and Apps] hks18psigst:
think /system/app/livewallpaper.apk .odex..

dont think you can just delete one but not sure
[Nexus One Themes and Apps] wootroot:
http://droidninja.com/?p=5341

"There are currently 10 live wallpapers to choose from and that number will be greatly expanding soon. Google will be releasing a SDK that will allow developers to code their own wallpapers, according to Android Engineer Romain Guy."
[Nexus One Themes and Apps] misc2020:
Live wallpaper edited!

So I read somewhere that the .apk files can be opened with winrar and decided to open 'LiveWallpapers.apk'. Inside the file are the raw JPG files used to generate the visuals, these can be edited easily in photoshop. I edited the pond one (water background) to show some under water stones instead, once I re-compressed the .apk and replaced the one in 'system\apps\' with the new .apk, it now ripples that image!

Not a totally new wallpaper, but a customisation none the less :-).
[Nexus One Themes and Apps] djnutz:
Would you post that for us? Would like to see it. Then hopping on the computer and going yo get NY Photoshop on lol.
[Nexus One Themes and Apps] carnegie0107:
NICE find!! I'm totally going to mess with this. I'm already getting some cool ideas.
[Nexus One Themes and Apps] tommy96814:
where is livewalllpaper.apk located?
[Nexus One Themes and Apps] Ryanmo5:
system/app
[Nexus One Themes and Apps] misc2020:
Attached is a zip containing my edited .apk file, hope it's useful :)
[Nexus One Themes and Apps] Eclair~:
Wow, that is quite easy to edit.
[Nexus One Themes and Apps] bfspider:
I'm no expert on the android SDK here, but...

The Android 2.1 sdk is out today. Live Wallpapers got some API callouts and what not. Hopfully this will help in the making of some wall paper.
[Nexus One Themes and Apps] da-slicksta:
I have replaced apk with yours and the water wallpaper is not in the list...i replaced with the original and its still missing..any help
[Nexus One Themes and Apps] kron2:
looked in the Android 2.1 sdk there is a test live wallpaper to play with .i put it together with eclipse.i am going to play with the source more.the apk is in the zip just install it to your phone
[Nexus One Themes and Apps] MontAlbert:
nice. thanks mate- cant wait to have a crack at this tonight when i get home... i have some great ideas for themes etc.....now i just need my nexus one.... c'mon fedex!
[Nexus One Themes and Apps] andymck:
Somebody on that other forum (eng........) mentioned that a live wallpaper with the background being a live feed from the camera would be cool. I agree that the battery wouldn't last long but it would be a cool demo to show off. Haven't got a clue if its possible but just throwing it out there.......
[Nexus One Themes and Apps] dazzawright:
Looks like someone already got a new live wallpaper uploaded in the market. Has anyone tried it yet?
[Nexus One Themes and Apps] RonnieFoxxx:
Just downloaded. Very 8 bit chic. does not scroll though. I kind of like it.:D
[Nexus One Themes and Apps] dazzawright:
Maybe I'll try it. I was put off because it needs network access.
[Nexus One Themes and Apps] hks18psigst:
What's it called I can't find it. ..
[Nexus One Themes and Apps] NPS_CA:
Camera Live Wallpaper appeared in the market ... I think the Dev is guessing at how to get it to work... Seems he's trying to build without any N1 hardware..
[Nexus One Themes and Apps] dazzawright:
Conway - live wallpaper, it's second in the "just in" view.
[Nexus One Themes and Apps] hks18psigst:
Oh thanks there's a mood one also. . Doesn't seem like its worth 1.60 from

the pics but who knows.. maybe
[Nexus One Themes and Apps] Jack Everyman:
There is a duck hunt live wallpaper now. Its stupid but I like it.
[Nexus One Themes and Apps] hks18psigst:
Digital rain in the market is a live wallpaper that is pretty damn close to the matrix idea
[Nexus One Themes and Apps] stewart1988:
Wanna upload some videos to show us without our Nexus Ones yet :)
[Nexus One Themes and Apps] hks18psigst:
At work with no camera around... tried to get a screen shot but came out yellowy/green guess its moving too fast for the screen shot app. . But I'll try to get a video up once I get off work if no one beats me to it
[Nexus One Themes and Apps] xtop:
this wallpaper has me very excited for the potential of these things :cool:
[Nexus One Themes and Apps] webgrafix:
I just installed "Digital Rain".... very cool!
[Nexus One Themes and Apps] hks18psigst:
hey! sorry not the best of quality cause i used my g1 to record it but here's that live wallpaper

http://www.youtube.com/watch?v=xkjayU7vIMI
[Nexus One Themes and Apps] RonnieFoxxx:
Why don't any of these live wallpapers seem to scroll like the original live wallpapers?:confused:
[Nexus One Themes and Apps] hks18psigst:
people are just developing them as easy as they can.. not getting deep into the work.. still new too people..
[Nexus One Themes and Apps] RonnieFoxxx:
Hrmmm. Wish I knew how.
[Nexus One Themes and Apps] hks18psigst:
i tried to make on just editing the colors of the nexus wallpaper i wanted all the colors to be whites and grey's and blacks but no luck couldn't even find the wallpaper
[Nexus One Themes and Apps] parrot5:
I *guessed* that the scrolling would be automatic if the background size is wider than 480 (or whatever the width of the screen is) :p
[Nexus One Themes and Apps] isjr:
I hope we will see some live wallpapers with something like Goku in the background powering up or maybe one where Goku and Vegeta both are on the screen and if you tap the screen they come together and hit each other like on Dragonball-z. :D
[Nexus One Themes and Apps] quahog_convo:
Wow, this is pretty awesome. I just downloaded the duck hunt and digital rain ones now.
[Nexus One Themes and Apps] InGeNeTiCs:
Ya, my wife would totally love that. ...wow...
[Nexus One Themes and Apps] usmc2k:
I like the starfield live wallpaper by discoversites.... worth $1
[Nexus One Themes and Apps] oldmanofskye:
I think that's what you have been waiting for:

Sorry, can't post a live link (due to restrictions), but you can check it out at androidandme-dot-com page.
[Nexus One Themes and Apps] iVisionX01:
Starfield Live Wallpaper!

This is hands down my favorite live wallpaper. Bring back memories lol.
[Nexus One Themes and Apps] melterx12:
cool, this reminds me of windows 98!
[Nexus One Themes and Apps] bug666:
It is pretty cool.
[Nexus One Themes and Apps] anstosa:
I absolutely love this. First truly unobtrusive live wallpaper. All the rest make the screen look too busy while not really doing anything. This one is simple, neat to watch, and not distracting. Job well done, I can't wait to see what other devs do with live wallpapers
[Nexus One Themes and Apps] Ssantos6981:
Really great!

I didn't even know live wallpapers started rolling out.

This is an excellent addition!
[Nexus One Themes and Apps] avocadopat:
thank you for your excellent work!

but will you make it more colorful? such as 4 colors of nexus logo :)
[Nexus One Themes and Apps] iVisionX01:
It's not mine but you can email the developer by looking at the app in the Market to get his email.
[Nexus One Themes and Apps] icon57:
not bad...but not my fav
[Nexus One Themes and Apps] sepffuzzball:
Pretty spiffy! I like it. Seems I'm changing my live wallpaper daily!
[Nexus One Themes and Apps] brandenk:
I finally have a wallpaper Im going to keep for a while! :D
[Nexus One Themes and Apps] slater87:
i was stuck on the polar clock... but this is just amazing, good job

im gonna keep it for a long while
[Nexus One Themes and Apps] stewart1988:
Thanks for this! Looks really cool!

But did get some lag when I add load of stars and speed lol :D
[Nexus One Themes and Apps] Digitalthug:
Anyone else think the leaves in the "Water" live wallpaper should react to the ripples?
[Nexus One Themes and Apps] isjr:
That would be sweet.
[Nexus One Themes and Apps] Amdathlonuk:
I've just mailed the DEV to ask if a colour wheel and a random colour colour is possible..

GOD I LOVE THIS PHONE! :D
[Nexus One Themes and Apps] ralexand:
Awesome! Great detail in that the starlines angle as you switch screen.
[Nexus One Themes and Apps] Amdathlonuk:
type 'live wallpaper' in the serch on market....

Good god, there's loads!!
[Nexus One Themes and Apps] slater87:
holy p00p there are... just searched it
[Nexus One Themes and Apps] djnutz:
Starfield live 3d is free and is totally ba dass lol. Love this.
[Nexus One Themes and Apps] Amdathlonuk:
He just replied to me that he's adding colours in the next version of Starfield!!

Bring it on..
[Nexus One Themes and Apps] markimar:
How did you get polar clock to work?
[Nexus One Themes and Apps] TaFFeR:
Hit settings after it FCs and click on Settings. Change the Color Palette to a non-dynamic one.
[Nexus One Themes and Apps] galaxys:
Yep, this is a very cool live wallpaper!
[Nexus One Themes and Apps] Artysm:
Nice. Run great on HTC Magic 32A
[Nexus One Themes and Apps] RussianSolja:
im confused.... i dont see a wallpaper.... how do i get this to work? or even see the picture?
[Nexus One Themes and Apps] iVisionX01:
Go into the Market Place and download the Barcode Scanner app. Then open it and scan that barcode and press open in browser. You should now be at the download page for the Starfield Live Wallpaper.
[Nexus One Themes and Apps] timothydonohue:
LOL, wut?

all you need to do is go to marketplace and search for live wallpaper. there are 2 starfields. 1 is free, and one is not. i am happy with the non-starburst free version :)
[Nexus One Themes and Apps] stewart1988:
Just noticed you can double tap on it!

I expected these to kill my battery but so far the battery lasting me all day unlike my iPhone! :)
[Nexus One Themes and Apps] TheRiver:
how can I make barcode like you ^_^
[Nexus One Themes and Apps] stewart1988:
http://qrcode.kaywa.com/
[Nexus One Themes and Apps] archboy69:
I current love the grass wallpaper and how the daylight changes with the time. It would be nice for instance if the stars twinkled at night or even maybe weather effects that sync with the weather. That would be really cool!

I wish I was a programmer or I would totally try and do it! :)
[Nexus One Themes and Apps] tee aiy emm:
whoa! shoot! didn't notice that! double tap for warp speed :D
[Nexus One Themes and Apps] DocRambone:
New version out, with stars background.
[Nexus One Themes and Apps] htcmagic:
A nice live wallpaper would be to look at a pond from the top and watch koi swimming in the water.
[Nexus One Themes and Apps] Beast84:
+1 for that! I was just thinking the same thing! I was looking at the Koi Pond app on my iTouch & it would be awesome to have that as a live wallpaper with similar options
[Nexus One Themes and Apps] Brainze:
I'd love to see a live wallpaper that is exactly like the Nexus boot screen. ;)
[Nexus One Themes and Apps] 51b8f7d9f56e53:
I wonder if live wallpapers can use other input methods than touch, e.g. accelerometer readings. A spring dog toy, the kind you might put in your car, would be a good example of a wallpaper using this. Shaking the phone would make the dog's head bounce back and forth.
[Nexus One Themes and Apps] chizu989:
They can - search the market for "live waterpaper" in addition to rippling when you touch it, you can create waves by tilting the handset, so it's obviously reading something from the accelerometers.
[Nexus One Themes and Apps] tmotech88:
i would have to say the live wallpapers are sweet! BUT what about video ringtones?????:)
[Nexus One Themes and Apps] ccunningham83:
Don't search much do you?

It's Called Vringo.
[Nexus One Themes and Apps] m00moo:
now that would be just lovely jubly :D
[Nexus One Themes and Apps] AndroidZ28:
Digital Clock

Am I the only one shocked that we have yet to see a standard digital clock live wallpaper?

Side note: a 24 style live wallpaper clock would be awesome
[Nexus One Themes and Apps] geovass:
nice stuff coming up!!!
[Nexus One Themes and Apps] m00moo:
i've downloaded and installed the 2.1 SDK and have no idea on how to begin as im a total noobie. Although I am willing to try and learn like previous skills i've self learned in the past.

Theres no real guides atm about how to create the live wallpapers as its still pretty new stuff. The boot animation is located in a .zip file somewhere on the root. Inside contains some ordinary png files. So anybody willing to have a go at a live wallpaper of the bootup animation please do!
[Nexus One Themes and Apps] andymck:
+1 for this one :D
[Nexus One Themes and Apps] Celeborn_81:
By far the coolest live wallpaper yet is "Bezier - Live Wallpaper", absolutely stunning, imo the first user made wallpaper that rivals the default ones!
[Nexus One Themes and Apps] DMaverick50:
I'd like a good google live wallpaper. Maybe we need a contest to see who can create the most creative live wallpaper centered around the word 'google'. I see a lot of standard google wallpapers but most are just too abstract or too traditional. I'm still searching for a happy medium

Damn I wish I had the time and know-how!
[Nexus One Themes and Apps] unixseb:
just made mine,

you can find it on market searching for "earth live wallpaper".

hope you'll like it.
[Nexus One Themes and Apps] Tortri:
Do you plan on adding an option to disable the earth spinning when changing screens and also an english option as well?

Love the earth wallpaper, just don't like it spinning really fast when changing screens :-) Can't wait to see what you have in plan for updates on it.

Thanks

edit: nevermind i see you updated with languages :-)
[Nexus One Themes and Apps] DarkLord7854:
That'd be sweet if you had a nighttime version one, or if it changed day/night.

Earth at night is fantastic with the city lights
[Nexus One Themes and Apps] flak0:
Can you add different planets?

Another option would be to show the Sun in the background and the city lights in the night. Maybe the moon too?

Contact the Starfield 3D guy it seems he stopped updating his wallpaper. If you guys went Co-op on a live wallpaper it would be awesome. I can see your earth with his star field. Galaxies etc.

Question how did you make this, I am really trying to learn how to write these livewallpapers. Thanks
[Nexus One Themes and Apps] flak0:
+1 for coolest; however it does lag if the settings are set too high. Maybe when the .32 Kernel comes out and we have more memory it may help.
[Nexus One Themes and Apps] unixseb:
glad to see some of you like my wallpaper,

so i'll improve it !!

i already publish an english localized version,

i'll put an option to avoid spinning the globe when changing screens, ability to choose any texture (and maybe any 3d object in obj format), bitmap in the background, automatic night/day texture switching.

Don't fear to ask for improvments !! i like coding :)
[Nexus One Themes and Apps] slater87:
+1... love it, will most likely keep it for a while

wish there was something to randomly change the live wallpapers like every week or somethin like that
[Nexus One Themes and Apps] archboy69:
a live wallpaper with the android peeking out of the screen might be cool! :)
[Nexus One Themes and Apps] tallen3:
Love your wallpaper its getting better and better, how about a mini solar system with earth as the main planet and the moon and mars spinning in the background. I don't know how hard that would be but things are looking great so far I'd love to see the earth changing from day to night automatically. Keep up the great work.
[Nexus One Themes and Apps] SBS_:
Saw someone mentioning this in the comments at the market and they are quite correct, your globe is spinning in the wrong direction. Just thought you wanted to know :)

Great wallpaper though
[Nexus One Themes and Apps] unixseb:
I realized the earth is spinning the wrong way , i'll add an option that let you choose the spinning direction.
[Nexus One Themes and Apps] unixseb:
i realized the globe is spinning the wrong way. i'll add an option to chhose the spinning direction tonight.

Sorry but as i'm from france, i don't see the US comments :(
[Nexus One Themes and Apps] DarkLord7854:
Awesome! Love it!

Think it'd be possible to rotate the globe on it's Y axis as well, and maybe make it smaller/bigger... :D

Rated 5 stars
[Nexus One Themes and Apps] unixseb:
sorry for double posting, i didn't realized i was moderated ;)

to stop polluate this thread with just this wallpaper, i opened a dedicated one, feel free to post there.
[Nexus One Themes and Apps] summonkey:
Just a idea but it would be cool for a wallpaper that uses real data for star positions and make a live wallpaper that shows them at the correct time and is controlled by the compass.
[Nexus One Themes and Apps] z3ntn3l:
+1 for Android Robot! :)

Anyway, its very nice to see the developing/customizing is going forward!