Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old July 8th, 2010, 03:18 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jul 2010
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Hello Android stops running on Eclipse . can not display App on Emulator.

Hi

I setup Hello Android sample app on my Eclipse ( Windows XP). ADT got installed correctly. All post installation config also looks good. I setup HelloAndroid project.

I run first time . It was successfully run and connected to emulator , produced desied message on emulator.

What happened , when i tried to run same program again it stopped working at console trace ( see below console trace). I tried to reset Adb from debug view. Also tried to kill Adb from command line. I completely exited from Eclipse and restarted. At last completely rebooted PC but no luck.
I never changed my code a bit after running successfully first time.

Hello Android stops at following message.

Any help is highly appreciated.

Thanks
Shodhan

[2010-07-08 16:08:59 - HelloAndroid] Starting activity com.example.helloandroid.HelloAndroid on device
[2010-07-08 16:09:02 - HelloAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloandroid/.HelloAndroid }

shodhanshah is offline  
Reply With Quote
sponsored links
Old July 9th, 2010, 02:29 PM   #2 (permalink)
cp1
Member
 
Join Date: Apr 2010
Posts: 375
 
Device(s):
Carrier: Not Provided

Thanks: 13
Thanked 35 Times in 30 Posts
Default

What happened on the emulator when you ran it? Was it already booted and unlocked?
cp1 is offline  
Reply With Quote
Old July 10th, 2010, 12:23 PM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Jul 2010
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found what happened. Everything was fine however emulator was on home screen and application was running in background . I switched to application screen and found that app was running fine. I spent 2 days on this silly issue. I found on net that lots of people complain about same issue. Seems like most of them are good but donot realize that they have to switch to application mode on emulator.
shodhanshah is offline  
Reply With Quote
Old August 23rd, 2010, 01:48 AM   #4 (permalink)
New Member
 
Join Date: Aug 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

@shodhanshah - Now everytime u run in eclipse, its display result? Application screen, you have mentioned, is eclipse or something else?

Quote:
Originally Posted by shodhanshah View Post
I found what happened. Everything was fine however emulator was on home screen and application was running in background . I switched to application screen and found that app was running fine. I spent 2 days on this silly issue. I found on net that lots of people complain about same issue. Seems like most of them are good but donot realize that they have to switch to application mode on emulator.
mayur2684 is offline  
Reply With Quote
Old September 6th, 2010, 08:50 AM   #5 (permalink)
New Member
 
Join Date: Sep 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default How to switch to app mode on emulator?

hey..hi

I am new to android and I am getting this same problem as u had got.

Can u please help me on resolving it?

How did u switch to app mode on emulator?

thanks in advance.
ankita is offline  
Reply With Quote
Old October 12th, 2010, 01:09 AM   #6 (permalink)
New Member
 
Join Date: Oct 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Wink work around way

There is one work around way to achieve this.
if you want to see the application,
--> When the phone is locked then, simply press the "Menu" button on the phone keyboard.
--> When the phone is unlocked then, press "Home" button and look at one triangle slider in the bottom of the screen. Pressing that will launch all the applications, your application also will be residing in the bottom. Just double click your application and it will run the program !!
iammilind is offline  
Reply With Quote
The Following User Says Thank You to iammilind For This Useful Post:
jktittalom (July 4th, 2011)
Old November 14th, 2010, 08:30 PM   #7 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default How to switch to app mode on emulator from ANDROID screen?

Hi, I am new to Developing.
I had the same issue as you and my emulator just stays stuck on the ANDROID screen. Restarting Eclipse and the emulator did not help.

During this issue, the console will read:

[2010-11-14 20:23:02 - HelloAndroid] Starting activity com.example.helloandroid.HelloAndroid on device emulator-5554
[2010-11-14 20:23:03 - HelloAndroid] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.helloandroid/.HelloAndroid }
[2010-11-14 20:23:03 - HelloAndroid] ActivityManager: java.lang.NullPointerException

Other times this issue is present, the console reads the same above except without the NullPointerException line.

Any help is greatly appreciated, thanks!
kevin_n is offline  
Reply With Quote
Old April 19th, 2011, 06:38 AM   #8 (permalink)
New Member
 
Join Date: Apr 2011
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am new to android .
i got stuck near

2011-04-19 16:33:35 - secondandroid] Android Launch!
[2011-04-19 16:33:35 - secondandroid] adb is running normally.
[2011-04-19 16:33:35 - secondandroid] Performing org.android.samples.secondapp activity launch
[2011-04-19 16:33:35 - secondandroid] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'AVD2.31'
[2011-04-19 16:33:35 - secondandroid] Uploading secondandroid.apk onto device 'emulator-5554'
[2011-04-19 16:33:35 - secondandroid] Installing secondandroid.apk...
[2011-04-19 16:33:40 - secondandroid] Success!
[2011-04-19 16:33:40 - secondandroid] Starting activity org.android.samples.secondapp on device emulator-5554

it is stuck here
and i think activity manager is not displayed
here
and application not displayed on emulator.It shows home screen.

Can any one help????
thanks
yogu2912 is offline  
Reply With Quote
Old May 4th, 2011, 10:24 AM   #9 (permalink)
New Member
 
Join Date: May 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Unlock the phone

For example on samsung epic you had to slide the lock button over.

May I be not the first to state that this is one of the many many annoyances I have with android, as a veteran programmer with three years experience developing for iPhone. It's dumb problems like these which prevent people from wanting to develop for the thing. There shouldn't be research involved in starting a simple project. Lengthy Hello World tutorial, give me a break.
joelteply is offline  
Reply With Quote
Old May 18th, 2011, 10:54 AM   #10 (permalink)
New Member
 
Join Date: May 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you get this resolved? I just started on Android and facing this issue.
sanjuandroid20 is offline  
Reply With Quote
sponsored links
Old May 30th, 2011, 02:12 PM   #11 (permalink)
New Member
 
Join Date: May 2011
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm having the same problem where the "Hello Android" message never shows up. I had the locked screen issue and when I pressed Menu, it only unlocked the phone emulator and the message still did not display. I also tried sliding the unlock button but it had the same effect. I tried clearing user data and then running it again but it only fixed the locked screen issue and the "Hello Android" message never showed up. I tried the tutorial using the programming method and then the XML method for displaying the text but both have the same result where it never shows up.
benjos is offline  
Reply With Quote
Old July 14th, 2011, 12:01 PM   #12 (permalink)
New Member
 
Join Date: Jul 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Getting in application mode

In order to get into application mode (so that you see the app running) simple press F2 (or PageUp) which is the Menu button for the emulator. (for other buttons look in: Android Emulator | Android Developers)

Quote:
Originally Posted by shodhanshah View Post
I found what happened. Everything was fine however emulator was on home screen and application was running in background . I switched to application screen and found that app was running fine. I spent 2 days on this silly issue. I found on net that lots of people complain about same issue. Seems like most of them are good but donot realize that they have to switch to application mode on emulator.
vagosmar is offline  
Reply With Quote
Old July 14th, 2011, 04:16 PM   #13 (permalink)
New Member
 
Join Date: May 2011
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by vagosmar View Post
In order to get into application mode (so that you see the app running) simple press F2 (or PageUp) which is the Menu button for the emulator. (for other buttons look in: Android Emulator | Android Developers)
I already tried clicking the Menu button that but it doesn't fix the problem.

The only time the program runs is when I had my Android phone plugged into the computer with the USB and ran the program in Eclipse.

I think there is a bug with the developer programs in 64-bit. I'm using Windows 7 64-bit and Java 64-bit.
benjos is offline  
Reply With Quote
Old September 3rd, 2011, 05:19 AM   #14 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

Hi

I got the same problem as everybody else; Tried the F2 button when the emulator stops responding.

I get a pop up message saying that the process has stopped responding and whether I want to wait or force quit. Meanwhile, the background of emulator is no longer the HOME display rather it has changed to show the "hello world" message.

Problem is that even if i choose "wait" as reply to the popup, the pop up message still remains as is..

Can someone help me out? I got a final year project based on android apps and with all this, I am being thoroughly tempted to just drop it all
darshana is offline  
Reply With Quote
Old March 19th, 2013, 12:32 PM   #15 (permalink)
New Member
 
Join Date: Mar 2013
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Using my Samsung Galaxy Note 2 with Eclipse I was able to get the button and text field running. The last console message was ...

ActivityManager: Starting: Intent ... etc

and when the Android screen appeared I pressed F2 and the rest of the elements appeared as they should. I am also running 64 bit. So it seems to work properly. I even saw the settings open on the screen when I opened Settings on my phone.

I did turn on Developer options in Settings on the phone.

I was also able to run this in an AVD.
foton is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
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 03:20 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.