Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development

Application Development Dev Lounge for the Coder Folks



Reply
 
LinkBack Thread Tools
Old December 16th, 2011, 05:44 AM   #1 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 4
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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.

mails2prince is offline  
Reply With Quote
Sponsors
Old December 16th, 2011, 09:34 AM   #2 (permalink)
New Member
 
Join Date: Oct 2011
Posts: 11
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
gurpswu is offline  
Reply With Quote
Old December 16th, 2011, 06:16 PM   #3 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 4
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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...
mails2prince is offline  
Reply With Quote
Old December 19th, 2011, 06:09 PM   #4 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 1
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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.
DollyBansal is offline  
Last edited by DollyBansal; December 19th, 2011 at 06:14 PM.
Reply With Quote
Old December 24th, 2011, 07:21 AM   #5 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Shrike67 is offline  
Reply With Quote
Old December 27th, 2011, 05:55 PM   #6 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
techstacked is offline  
Reply With Quote
Old January 15th, 2012, 09:55 PM   #7 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 3
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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..........
forexbob is offline  
Reply With Quote
Old January 15th, 2012, 09:55 PM   #8 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 3
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default Now let's try the real post

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 is offline  
Reply With Quote
Old January 17th, 2012, 08:33 PM   #9 (permalink)
New Member
 
Join Date: Aug 2011
Posts: 11
 
Device(s): HTC Thunderbolt
Thanks: 2
Thanked 3 Times in 3 Posts
Default

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.
AccelArlene is offline  
Reply With Quote
The Following User Says Thank You to AccelArlene For This Useful Post:
forexbob (February 7th, 2012)
Old February 6th, 2012, 08:45 AM   #10 (permalink)
New Member
 
Join Date: Feb 2012
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
devamadhu is offline  
Reply With Quote
Sponsors
Old February 7th, 2012, 11:43 PM   #11 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 3
 
Device(s):
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I did finally figure out that it had to be unlocked, but thanks for taking the time to respond anyway.
Bob
forexbob is offline  
Reply With Quote
Old April 14th, 2012, 09:51 AM   #12 (permalink)
New Member
 
Join Date: Apr 2012
Posts: 1
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
javacrazzy is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 11:55 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo