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

Apps How much it takes to launch a simple "hello world"

robothito

Newbie
Feb 2, 2016
26
3
Hello.
I would appreciate some help.

After having all kinds of problems day before yesterday I started from 0.
I created another "first application" with the classic "hello world".
First it got all kinds of "rendering problems" but I pushed the refresh little button in the design window and got the "hello world message"
So I tried to run it (with a new device I made)
and NO ERRORS... it seems to be going fine
the message says "device connected emulator 5554"
The emulator phone appears with the huge "ANDROID" message
after a minute the main screen of the phone appears...

and that is it...

"Hello World" never appears... How long does it take to launch this simple "hello world" app??
Is it ever going to launch??
Do I need to do anything?

Well, I have work tomorrow so I am going to let the mac running all night to see if it finally appears but seriously how much does it take??

Thanks for any help, I really appreciate it
 
um, 1st I think it would be a good idea to let us know what you are doing?

Writing a program in 'C', 'Basic', '6502 machine code?', "WordPress?" ??

I know the result you mentioned, and the 1st time I did that, I had to punch holes in a piece of cardboard and feed that into a Card Reader, and then the Teletype Machine went clunk clunk and printed out a jumbled mess on a piece of paper tape....
 
Upvote 0
I am sorry... isnt this an Android Forum?? :eek:

I am running Android Studio and I am doing nothing on my own. I am just trying to run the project that Android Studio builds by default. Which should take seconds after all it is not my code or anything I did. I am just trying to run the thing that the builders of android put there .
 
Upvote 0
I am sorry... isnt this an Android Forum?? :eek:

I am running Android Studio and I am doing nothing on my own. I am just trying to run the project that Android Studio builds by default. Which should take seconds after all it is not my code or anything I did. I am just trying to run the thing that the builders of android put there .

You never once mentioned "Android Studio", so just how in the hell are we supposed to know that? PLUS you still have NOT told us what device you have in your hands that you are trying to use that app on???

Garbage In = Garbage Out

now that you have, I will back out, I have never seen that app.... and if you had said so in the first place, I never would have poked my nose in here in the 1st place...

You got to remember, none of us are PAID to help you, nor are we "Mind Readers"....
We just try to read what you tell us... and then from that, we try to diagnose what you are doing, versus what you get for a result.
 
Upvote 0
Okay...all moved! :)

I don't really use the Android Studio (I'm still hanging on to Eclipse ;)) and I never use a virtual device to test with--I always use a real target device, principally because the emulator via Eclipse used to be soooooo slooooowwwwww.

Anyway, hopefully someone else (our esteemed @LV426 perhaps?) might chime-in with some ideas for you.

Cheers and best of luck!
 
Upvote 0
The emulator will take a fair amount of time to start up, but really it shouldn't take all night to launch your app. Once you got past the Android boot up stage, your app should have been started. Btw, once the emulator's started, check that your app has been installed. Can you see it in the installed apps screen, like on a real phone?

It might have crashed, first thing to check is the Logcat output window in Android Studio. Do you see any runtime errors or exceptions?

And as @scary alien says, consider using a real device to test with. It's so much quicker than waiting for the emulator.

Android sample apps should work out of the box. But if your app didn't even show up on the emulator, and there was no "application crashed" dialog, I suspect you might have some build problems. Check the Gradle console - are there any errors? If you have UI layout issues it would cause problems. But Android Studio is usually pretty good at flagging up build errors and making you aware that something's not right.
 
Upvote 0
Click on File -> New and enter following info:
Application name: MyHelloWorld
Company Domain: robothito.com -> Next
Then, check Phone and Tablet, in drop down box, I generally select a Minimum SDK of API17 -> Blank Activity -> Next ( for now accept the defaults ) -> Finish

On action bar, click on Run -> Run 'App'
On the "Device Chooser" screen, click on the ... button, it will take you to a screen for creating an AVD
Click on "+ Create Virtual Device" (the button at lower left hand corner)
Select Nexus 4 (for now) and follow instructions to create your virtual android phone
Go back to Device Chooser screen and from its dropdown list for Android virtual device, select the AVD you have just created.
Make sure the Launch emulator button is on

On my laptop, it takes about 2-3 minutes for the AVD to pop up.

Hope that helps
 
Upvote 0
I would try to reinstall the whole thing. You may have some corrupt files in you build or accidentally deleted something useful.
Are you working off of a tutorial? If the tutorial is old then it wont work as well as you would think because some of them that are floating around for new users are too old and don't support Android studio that well.
 
  • Like
Reactions: scary alien
Upvote 0
I discover that it was a silly thing

When I try run the application the AVD starts and that is it. The application is not installed.(my situation before)
You have to push the run button again, and then the application is finally installed.

Thank you very much guys for the help,. it is very much appreciated.
I have now another problem , (I wrote another thread for that) and I would appreciate some help there please.

(Basically the problem is: when I run the app on a nexus S it runs but when I try to do it on a nexus 5 or 9 there are some problems with not enough memory... )

Thanks again!
 
  • Like
Reactions: HeavensSentSword
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones