• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps hello world app. doesn't work

Hi I am new to android. Pls help me on this. I started with hello world.

I didn't get any result. I took the example fro following link

Hello, World | Android Developers

when I run the project in Eclipse I didn't get any result pls help me on this. I am able to see the text in design mode in eclipse. any suggestion or any comment really helpful to me.
 
Sorry, but just to check have you done the following?

To create an AVD:

In Eclipse, select Window > Android SDK and AVD Manager.
Select Virtual Devices in the left panel.
Click New....
The Create New AVD dialog appears.
Type the name of the AVD, such as "my_avd".
Choose a target.
The target is the platform (that is, the version of the Android SDK, such as 2.3.3) you want to run on the emulator. For this tutorial, choose the latest platform that you have installed and ignore the rest of the fields.
Click Create AVD.
 
Hi dude,
Thanks a lot for ur replay. I did the same thing wt u suggested. but no diff. when i run the project console showing the following:
[2011-12-17 05:41:50 - HelloAndroid] ------------------------------
[2011-12-17 05:41:50 - HelloAndroid] Android Launch!
[2011-12-17 05:41:50 - HelloAndroid] adb is running normally.
[2011-12-17 05:41:50 - HelloAndroid] Performing com.example.helloandroid.HelloAndroidActivity activity launch
[2011-12-17 05:41:50 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2011-12-17 05:41:50 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
[2011-12-17 05:42:14 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2011-12-17 05:42:14 - HelloAndroid] New emulator found: emulator-5554
[2011-12-17 05:42:14 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
 
the same problem happened to me also..
see here written ``Waiting for HOME ('android.process.acore') to be launched...``
so wait for some more time to get the Home page, on my machine it took around
12- 13 mints to see the `hello world` on screen.
 
Hello,

I'm following the same tutorial but when I run the application the avd emulator starts up but doesn't show the app.

[2011-12-24 13:43:50 - HelloAndroid] ------------------------------
[2011-12-24 13:43:50 - HelloAndroid] Android Launch!
[2011-12-24 13:43:50 - HelloAndroid] adb is running normally.
[2011-12-24 13:43:50 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2011-12-24 13:43:50 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2011-12-24 13:43:50 - HelloAndroid] Launching a new emulator with Virtual Device 'my_avd'
[2011-12-24 13:44:08 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error

Any suggestion? Thanks
 
I had the same problem. You need to do a complete reinstallation of SDK as that is what i did. Another thing you can do is to increase your ADB connection timeout under settings. Provide us with logcat, please. Try to find what is happening there.

Also not doing selfish promotion but I have done a tutorial that covers all of this at my site which I cannot post due to being a new member but you can Google my username and get to it.
 
Hi,
I'm Bob. I tried to post here with no images or links in my post but the system seemed to think there were such in the post. It said to introduce myself first to get past this limitation. What a pain in the..........
 
Everything seems to work except the actual program. The emulator shows up and I get the following in the console:

[2012-01-15 20:24:39 - HelloAndroid] ------------------------------
[2012-01-15 20:24:39 - HelloAndroid] Android Launch!
[2012-01-15 20:24:39 - HelloAndroid] adb is running normally.
[2012-01-15 20:24:39 - HelloAndroid] Performing com.example.helloandroid.HelloAndroid activity launch
[2012-01-15 20:24:39 - HelloAndroid] Automatic Target Mode: launching new emulator with compatible AVD 'Phone1'
[2012-01-15 20:24:39 - HelloAndroid] Launching a new emulator with Virtual Device 'Phone1'
[2012-01-15 20:25:01 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
[2012-01-15 20:25:01 - Emulator] emulator: emulator window was out of view and was recentered
[2012-01-15 20:25:01 - Emulator]
[2012-01-15 20:25:01 - HelloAndroid] New emulator found: emulator-5554
[2012-01-15 20:25:01 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
[2012-01-15 20:26:35 - HelloAndroid] HOME is up on device 'emulator-5554'
[2012-01-15 20:26:35 - HelloAndroid] Uploading HelloAndroid.apk onto device 'emulator-5554'
[2012-01-15 20:26:36 - HelloAndroid] Installing HelloAndroid.apk...
[2012-01-15 20:27:42 - HelloAndroid] Success!
[2012-01-15 20:27:42 - HelloAndroid] Starting activity com.example.helloandroid.HelloAndroid on device emulator-5554
[2012-01-15 20:27:44 - HelloAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloandroid/.HelloAndroid }

I know it says to be patient but after 20 minutes, still nothing. The emulator/phone shows that it is locked. Could this have anything to do with it?

Thanks
Bob
 
forexbob: "The emulator/phone shows that it is locked. Could this have anything to do with it?"

My guess is that you might have gotten this resolved by now, but as there is no further reply to Bob's question above:

The emulator/phone must be unlocked for the app to execute.
 
Hi

I am getting the below error and I am not able to run my Android programs in the emulator.

Android Launch!
[2012-02-06 06:35:54 - helloWorld] adb is running normally.
[2012-02-06 06:35:54 - helloWorld] Performing com.and.hw.HelloWorldActivity activity launch
[2012-02-06 06:35:54 - helloWorld] Automatic Target Mode: launching new emulator with compatible AVD 'my_avd'
[2012-02-06 06:35:54 - helloWorld] Launching a new emulator with Virtual Device 'my_avd'​
[2012-02-06 06:35:58 - Emulator] emulator: WARNING: Unable to create sensors port: Unknown error
 
hi guys,
I had the same error while I was working with a new App which used SQLite.
Anyways, the issue was that even after you close your Eclipse and Emulator.. in Task Manager the process adb.exe or abd.exe*32 was still running.
Steps:
1. Close eclipse and emulator.
2. Kill the process adb.exe or abd.exe*32.
3. Start your eclipse, clean build your app once and its almost like new.
Happy coding Njoy
 
Back
Top Bottom