Android和QUOT;的Hello World"问题 [英] Android "Hello World" issue
本文介绍了Android和QUOT;的Hello World"问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是code我写
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);
}
}
和我得到这些错误
[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'!
我有最新的SDK和ADT安装。
I have the latest sdk and ADT installed.
如何解决????
感谢
推荐答案
在Mac上我相信运行仿真器时,会出现NSQuickdraw警告。然而,它没有报错了仿真器。我碰到这个警告机器几个月,它已经不是一个问题。断开错误通常是连接到仿真器,我相信超时问题,但没有得到与第一警告分心。
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.
这篇关于Android和QUOT;的Hello World"问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文