Android "Hello World" Problem...

Posted by Biranchi on Stack Overflow See other posts from Stack Overflow or by Biranchi
Published on 2010-04-06T19:31:56Z Indexed on 2010/04/06 19:33 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

Hi,

this is the code i have written

package com.android.helloandroid;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class HelloAndroid 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);
   }
}

And i am getting these errors

[2010-04-06 19:24:03 - Emulator] 2010-04-07 00:49:03.366 emulator[498:903] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.
[2010-04-06 19:34:42 - TestApp] emulator-5554 disconnected! Cancelling 'com.test.AndroidApp.TestAppActivity activity launch'!

I have the latest sdk and ADT installed.

What is the solution ????

Thanks

© Stack Overflow or respective owner

Related posts about android

Related posts about hello