Hello World Program - Java for Android App Development

Hello Forum !!
I am a complete newbie. I have a brand new Linux distrobution desktop and I am looking to do app development and testing for android.
I will describe my system now. I am using Ubuntu with Red Hat as a VM. On Red Hat, I have eclipse installed. I have all the Android ADT and SDK components installed as well. I have customized the various parts to ensure that I can communicate with the device I am using. The device I am using is plugged in via USB port. It is a Samsung Galaxy Note 2, running android.
So, how do I write and run a simple, "Hello World" style program now?

Xarzu said:
Hello Forum !!
I am a complete newbie. I have a brand new Linux distrobution desktop and I am looking to do app development and testing for android.
I will describe my system now. I am using Ubuntu with Red Hat as a VM. On Red Hat, I have eclipse installed. I have all the Android ADT and SDK components installed as well. I have customized the various parts to ensure that I can communicate with the device I am using. The device I am using is plugged in via USB port. It is a Samsung Galaxy Note 2, running android.
So, how do I write and run a simple, "Hello World" style program now?
Click to expand...
Click to collapse
You have everything in the source: developers.android.com Enjoy

When you created a new project on it's default settings, the hello world program is already included.

Related

HOWTO start MIDP Application development - some questions ..

Hey guys,
Currently I am Java programmer (applications and applets for PCs), but I want to try something new, and so I am instersted in developing apps for cellphones. Hope you can answer my questions:
1) MIDP 2.0 does support animated gifs and allows me to access the phones memory (for loading files) when the phone supports this, right? Whats the name of the API that allows me to access the phones memory?
2) Whats the best free development platform for MIDP 2.0 at the moment? Currently I use Eclipse, but I guess I need something else for mobile development.
3) Are there any websites with tutorials that give me a lil introduction to MIDP? Any links are welcome.
Just started to look at this myself, though not fully understanding it yet, managed to get a MIDP helloworld class compiled and .jar created just using javac / command line so far, but haven't managed to get it working on the device yet, need to look into preverifying so i'm told.
2) J2ME toolkit perhaps, free with registration on java.sun.com, explanation of it is in the link in reply (3), might be worth a look first to see if it's what you're after.
3) http://www.codeguru.com/Cpp/W-P/ce/networking/article.php/c7911/
If anyone has any further info, please respond.
http://today.java.net/pub/a/today/2005/02/09/j2me1.html?page=2
works

Google's Android on Magician !

Hi all,
Just read an artice on the hack of Google's impressive Android mobile OS. Hackers have used files from the emulator and installed the OS on some Linux phones. I was just thinking that there was a post on this forum saying that Linux could be Installed on Magician. Also Android uses Linux's kernal. So why not give Android a try. Would be great to use the new Android on Magician.
Any clues on how to proceed with the Installation ?
Is it really? I listen about porting on only Linux-PDA but Magican isn't Linux-PDA.
Of course, Android can run on the Magician, BUT never forget that you need drivers for the device - even for Linux!
And that's the problem: if you don't have any information about the chipset etc you will need month or even years to develop them.
If you want to run Linux on the Magician, there is already a project which try to develop drivers for Linux. Last time I read from their progress Linux runs on the Magician with the possibility to use the phone (but no GPRS)...
Use the search if you are interested;-)
Melkor said:
If you want to run Linux on the Magician, there is already a project which try to develop drivers for Linux. Last time I read from their progress Linux runs on the Magician with the possibility to use the phone (but no GPRS)...
Use the search if you are interested;-)
Click to expand...
Click to collapse
It is http://www.handhelds.org/moin/moin.cgi/Magician , isn't it?
So If Linux can be installed, then Android can also be installed. Because it supports all Linux compatible devices according to the hack.
For the DRIVER part, pls check the official Android website-
http://code.google.com/android/
and let us know. Waiting for your reply...
Thanks!
Peoples - a hve WORKING linux on my HTC magician.
name is Angstorm with GUi OpenMoko.
Work - tochscreen,Sound,GSM,blootuth.
thet meens - drivers are exist and work
Can anybody say, where i can download Google's Androuid for ANY platform ?
I'm Find =) Android For Zaurus
it seems to me, For using rootfs on magician we mast change drivers in it
http://www.omegamoon.com/blog/static.php?page=ZaurusAndroid
As me say one man, it takes compiling magican's drivers using Google android SDK.
Some useful links
Буржуйский форум -> http://www.oesf.org/forum/index.php?showforum=158
ЗАУРУС -> http://www.omegamoon.com/blog/static.php?page=ZaurusAndroid
Cкрины -> http://androidzaurus.seesaa.net/article/75516785.html
Angstrom на Qtek s110 -> http://grigio.org/howto_openmoko_htc_magic...dual_boot_wince
Немного о портировании для OMAP -> http://elinux.org/Android_on_OMAP
Sory for my English =)
does anyone know how to actually download the Android platform? regardless of phone model or drivers? or is it just included in the SDK and you gotta compile it yourself? If I can somehow get my hands on a copy of the image I'll probably end up spending the next 3 weeks trying to flash it natively into the ROM
The Android sources can found on this page: http://code.google.com/p/android/downloads/list
It is only kernel. Without drivers.
Found a new article for search on "Android on HTC", got this:
Android Kernel Found, Android on HTC Kaiser imminent
It says, that the kernal works only on MSM7200A chipset for now.
Take a look, link: http://fandroid.net/content/android-kernel-found-android-htc-kaiser-imminent
what i cannot understand is:
if there is an working linux kernel (http://wiki.xda-developers.com/index.php?pagename=MagicianXanadux) than android should be executable also!?
All necessary driviers shold be available.
So why should it be impossible to have a running android on a Magician?
cheers
aitsch
p.s.: the Magician is a very fast device. maybe android is running well on it.
UPDATE: Google has released a new version of Android, v0.9
Any updates on running Andriod on Magician ?
I could run Linux (Openmoko) successfully.
yea! Android 1.0 it very good
we need this
linux can run on a magician and u can use phone on it but no sms and it's full of bug's
Hi all,
I have tried to download the angstrom linux and follow the instruction from this site http://linuxtogo.org/~ph5/magician/....
but I always had kernel panic when start booting the linux, after then I found out the unzipping wasn't successful there is an error occurred during unzipping.
Does anyone ever encounter the error when unzipping? your help would be much appreciated. thank you
wayne
Hi everybody,
are there any news on running android on magican. Did anybody manage to get it running?
w00t!
I for one cannot wait to boot winCE on my Magician! Id love to put ANDROID on it! from what it looks like they are only 80% done!
I have opie II running on magician (http://linuxtogo.org/~htcpxa/htcmagician/)
and it runs perfectly (except a little bug eith the menu).
And here is a list what works in linux (http://www.handhelds.org/moin/moin.cgi/Magician)so android should work
header2k said:
I have opie II running on magician (http://linuxtogo.org/~htcpxa/htcmagician/)
and it runs perfectly (except a little bug eith the menu).
And here is a list what works in linux (http://www.handhelds.org/moin/moin.cgi/Magician)so android should work
Click to expand...
Click to collapse
Interesting, I'll take a look! What are the bugs you personally notice?

[Q] python on android

Hi,
I want to install python on my samsung galaxy s running android eclair 2.1.
can any one help me in installing python on my mobile phone so that i can start the programming in my phone using python.
Thanks
This is the Windows Mobile development and Hacking forum... Please move to Android Section!

Install python on android

Hi,
I want to install python on my samsung galaxy s running android eclair 2.1.
can any one help me in installing python on my mobile phone so that i can start the programming in my phone using python.
Thanks
Start here:
h ttp://code.google.com/p/android-scripting/

Java SDK Version queried

Hello All
I've been in a bit if a tiz lately, I am very interested in developing for Android as well as BlackBerry.. The problem is that for the Android SDK I want to use I NEED to use JDK 7uxx.. However I still am pulling in money with BlackBerry for OS 7 and Below and that REQUIRES JDK 6uxx
I'm wondering if it possible to install BOTH SDK versions on the same machine and assign the correct version to the correct SDKs????
I would love your feedback and any suggestions onto how to do this if this is possible at all..
Thanky so much in advance
Sent from my BlackBerry 9320 using Tapatalk

Categories

Resources