[android-developers] How to get the state of checkbox in a onListItemClick in Listactivity?

2010-10-21 Thread LiangLiang Wu
f my list has 10 items.. the onclick listener is fired only for the 10th item. How to get the state of checkbox in a onListItemClick in Listactivity? I have a class OnItemClickListener like this: private class OnItemClickListener implements OnClickListener { private int mPosition;

[android-developers] I need you:an error when call a extends ListActivity class at setContentView(R.layout.setting_time);

2010-10-14 Thread LiangLiang Wu
Hi guys I need your help, and i search for a whole day on the net,but. from my main class, I want to load SettingTimeWheel.class use intent: Intent settingpage = new Intent(this,SettingTimeWheel.class); startActivityForResult(settingpage, 0); SettingTimeWheel is a extends ListActivity