A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Mobile
»
Android
Author
simple hello world
Mika Haas
Greenhorn
Joined: May 24, 2010
Posts: 2
posted
May 25, 2010 23:57:06
0
Hye guys,
The eclipse was configured with ADT and I'm using Android 2.2
Why is my Hello World does not work?
import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloWorld extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText("Hello, Android"); setContentView(tv); } }
message on the console:
[05/26/2010 02:48:17 - androidMan] Waiting for HOME ('android.process.acore') to Be Launched ...
[26.05.2010 02:49:34 - androidMan] emulator-5554 disconnected! Cancelling 'com.HelloWorld launch activity'!
Pramod P Deore
Ranch Hand
Joined: Jul 15, 2008
Posts: 629
I like...
posted
May 26, 2010 00:00:12
0
Just Restart the emulator and eclipse.
Life is easy because we write the source code.....
Pramod P Deore
Ranch Hand
Joined: Jul 15, 2008
Posts: 629
I like...
posted
May 26, 2010 00:03:43
0
And Welcome to JavaRanch.
Monu Tripathi
Rancher
Joined: Oct 12, 2008
Posts: 1365
I like...
posted
May 26, 2010 02:50:27
0
Your device emulator did not boot up properly and it seems the connection between
adb
and the device was lost.
[
List of FAQs
] | [
Android FAQ
] | [
My Blog
] | [
Samuh Varta
]
Mika Haas
Greenhorn
Joined: May 24, 2010
Posts: 2
posted
May 26, 2010 06:49:00
0
Pramod P Deore wrote:
Just Restart the emulator and eclipse.
thanks guys.
resolved.
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: simple hello world
Similar Threads
Can't find the file I created
Why error in this code
Android newbie's problem
emulator window was out of view and was recentred
Connecting to local Web Service from Android emulator does not work
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter