views:

452

answers:

3

Hi,

this is the code i have written

package com.test.AndroidApp;

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


public class TestAppActivity 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

+1  A: 

It should work though this bug

nubm
+1  A: 

The NSQuickdraw warning occurs on emulators running on Macs I believe. However it does not error out the emulator. I've run a machine with this warning for months and it hasn't been a problem. The disconnect error is usually a timeout issue connecting to the emulator I believe, but don't get to distracted with the first warning.

jqpubliq
A: 

Hi..

Itz just the warning..goto window->Andriod SDK and AVD Manager.Click on the Virtual device.Click on the start button.The emulator will start to load.Wait until you get to see the home page on the emulator.It will take a minute or so.After try to run the program.it should work.

Cheers Sandy

Sandeep