这种情况下,一般都是在Aty1的create里报了异常。你没有把那个代码贴出来
解决方案 »
- (Android) Eclipse "launching delegate" 停在 27%...
- android proguard混淆 proguard.cfg文件配置
- android matrix 前乘和后乘对图片的影响,欢迎讨论
- 这是什么错误?怎么解决?晕死了!!!
- android 3d游戏开发如何?
- 新建联系人中按menu选择新建联系人,这个功能有必要吗?
- PC 怎么直接控制 ANDROID 读取联系人,发短信?
- 如何在eclipse中新建一个android类
- 可不可以用某个物理按键来控制一个android应用程序界面的有和无?
- 请问android里如何判断扫描到的蓝牙设备是不是蓝牙耳机啊?
- 安卓平台基于SIP协议实现注册,聊天功能
- 大家的android环境都是怎么下载配置的?官网链接老断,下不了包呀!!
package com.example.hello;import android.app.Activity;
import android.os.Bundle;public class Aty1 extends Activity {@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.aty1);
}
}这是Aty1.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="aty1"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
package com.example.hello;import android.app.Activity;
import android.os.Bundle;public class Aty1 extends Activity {@Override
protected void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
setContentView(R.layout.aty1);
}
}这是Aty1.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" > <TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="aty1"
android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>