public class RadioGroup extends Activity {
/** Called when the activity is first created. */
private RadioGroup rg = null;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
rg = (RadioGroup)findViewById(R.id.radioGroup1);//这句出错
}
}
/** Called when the activity is first created. */
private RadioGroup rg = null;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
rg = (RadioGroup)findViewById(R.id.radioGroup1);//这句出错
}
}
解决方案 »
- 求助:android与pc通讯,android端一直出现“unfortunately,**has stopped”。
- objectc的编译程序
- qq阅读中的那种翻页效果怎么弄出来的啊?
- 救急。。。。。
- 新手求助:如何进入系统的通讯记录页面
- phonegap加载本地的html,只能加载assets下的吗?其他位置的怎么加载?
- 关于Android Browser和Webit
- 请问下android中final的使用
- http请求采用HttpURLConnection的GET方式,返回乱码
- 在android编程的学习中,遇到一点关于Socket编程上的问题
- 安装SDK报错.....
- Not allowed to start service Intent{}withoutpermission android.permission.BIND_W
RadioGroup被你定义成个Activity类了,不是android.widget.RadioGroup控件鸟