Hello World doesn't work

by Naveen » Tue, 23 Nov 2010 14:54:48 GMT


Sponsored Links
 Hey folks,

Couple of days back, I read some articles about Android and from that
moment I fell in love with Android development :) I explored
"Developing Android apps" for the past few days and done the
following,

* Installed the latest Android SDK i.e., 2.2 version. Also updated all
the installed packages using "SDK manager"

* Installed Eclipse IDE for Java EE developers

* Installed Android plugin for Eclipse

* Created AVD and selected the target platform as Android SDK 2.2

* Written a new HelloWorld program with the below code,

package com.example.helloandroid;

import android.app.Activity;
import android.os.Bundle;

public class HelloAndroid extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

When I try to run the code "Hello World" is not printed in the
emulator. Just the text "Android" blinks in the middle of the device/
emulator.

The following is printed in the console when I ran the code


[2010-11-21 10:51:12 - HelloAndroid] ------------------------------
[2010-11-21 10:51:12 - HelloAndroid] Android Launch!
[2010-11-21 10:51:12 - HelloAndroid] adb is running normally.
[2010-11-21 10:51:12 - HelloAndroid] Performing
com.geek.HelloAndroid.HelloAndroid activity launch
[2010-11-21 10:51:12 - HelloAndroid] Automatic Target Mode: launching
new emulator with compatible AVD 'HelloAndroid'
[2010-11-21 10:51:12 - HelloAndroid] Launching a new emulator with
Virtual Device 'HelloAndroid'
[2010-11-21 10:51:27 - HelloAndroid] New emulator found: emulator-5554
[2010-11-21 10:51:27 - HelloAndroid] Waiting for HOME
('android.process.acore') to be launched...

Could you please let me know is there any issue with the code or the
procedure? It would be really helpful if you point some good basic
references for developing Android apps..

TIA.

Naveen Venkat

-- 



Re: Hello World doesn't work

by Kumar Bibek » Tue, 23 Nov 2010 15:13:59 GMT


 Wait for some time. Let it run. The first run of the emulator always takes
longer that you would expect. :)

Kumar Bibek
 http://techdroid.kbeanie.com 
 http://www.kbeanie.com 







-- 


Sponsored Links


Re: Hello World doesn't work

by A. Elk » Wed, 24 Nov 2010 05:30:49 GMT


 To expand on this:

The behavior the OP is seeing is the emulator starting up. During
startup, the text "Android" will blink. Even on a fast machine, it may
take several minutes for the emulator to load and start the program.
For this reason, you should leave the emulator running if possible
while you're working, or work with an actual device if you can.

If the application does not start after 10 minutes, then something is
wrong.





-- 



Other Threads

1. Training session - Android on Beagleboard

Hi all

Embinux and TI are jointly conducting a seminar on "Android on BeagleBoard"
on 25-July-2009.

For details and registration, please visit, 
http://www.embinux.com/beagle_embinux.html  
or 
http://www.pacemarketingsolutions.com/promos/texas/beagle/beagle.html


Thanks,
Embinux Team


--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Why webview.loadUrl() does not work on Emulator behind a http proxy but Browser does

Hi androiders,

I have a question about WebView class PROXY on Emulator regarding
HTTP.

I've written a test apk to load a URL with webview class. When running
it, it always got a "I/InetAddress(  799): Unknown host d.yimg.com,
throwing UnknownHostException." But the same url can be visited with
Browser on the same Emulator.

I think this is because in my program, the Http proxy isn't used. But
I've go through the open source browser code, I can't find any special
setting api it used.

Can any friend give me some advice?

Thanks
Jarod
--~--~---------~--~----~------------~-------~--~----~

3. How to integrate my application with Google map application

4. Set String Resource from Code

5. Fwd: Generate elevation charts with zoom feature like MyTracks and make canvas scroll

6. Cannot buy apps on market (HTC Magic)

7. flash(flv) related API available?