• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

error message while clicking on checkdata on android emulator

public class CheckData extends ListActivity {
TextView selection;
public int idToModify;
DataManipulator dm;

List<String[]> names1 =null ;
String[] stg1;
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.check);
dm = new DataManipulator(this);
names1 = dm.selectAll();

stg1=new String[names1.size()];

String stg;

for (String[] name : names1) {stg = name[1];
}

ArrayAdapter<String> adapter = new ArrayAdapter<String>(
this,android.R.layout.simple_list_item_1,stg1);
this.setListAdapter(adapter);
selection=(TextView)findViewById(R.id.selection);

}

public void onListItemClick(ListView parent, View v, int position, long id) {
selection.setText(stg1[position]);
}
}
i added an activity in androidmanifest.xml as
<activity android:name=".CheckData"></activity>

when i was clicking checkdata on android emulator it should show the stored data which i stored but i cannot acces data by this button...
any one help me
 
Hello and welcome to the forums... thanks for joining! :)

I do not know what it is you are trying to do... it looks liek a development type of question and, as such, I am unable to help.

If it is development related, you would get a better answer by posting in Android Development - Android Forums (as other devs hang out in there).

Hope you find this place useful... shout out to one of us guides if you need any help navigating the forums :D
 
Back
Top Bottom