package zlp.android.test.hello;import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;public class Hello extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// setContentView(R.layout.main);
TextView tv = new TextView(this);
tv.setText("Android helloWorld");
setContentView(tv);
}
}是不是protected改成public
import android.os.Bundle;
import android.widget.TextView;public class Hello extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// setContentView(R.layout.main);
TextView tv = new TextView(this);
tv.setText("Android helloWorld");
setContentView(tv);
}
}是不是protected改成public
解决方案 »
- 求助 使用webview加载google map api v3以后如何读取当前应用的数据库
- 使用ant为android自动打包的问题
- android的软件描述在那里写?
- andriod2.3 sensor问题
- 怎么修改android的项目路径
- 在线等——想转android开发,之前做.net麻烦高手推荐资料
- android中有没有类似于VC++中的MSChart控件?
- android游戏制作谁能给提供一套学习方案?
- Android网络加载图片时预先占位高度
- 在包“android”中找不到属性“compileSdkVersion”的资源标识符
- 请问如何自己写个日期选择插件?
- JNI编码中,对文件操作的问题
我android的SDK应该没问题吧 用的2.2
选定你的程序---run configurations--targets---选你的模拟器--apply --run