I have a listView and I put all users in the database, I use a adapterView to get the position and id, but I do not know how I will open a new screen for the advanced options for each user.
follow the code
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder()
.permitAll().build();
StrictMode.setThreadPolicy(policy);
setContentView(R.layout.list);
listView = (ListView) findViewById(R.id.listView1);
accessWebService();
listView.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
// When clicked, show a toast with the TextView text
Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
Toast.LENGTH_SHORT).show();
}
});
}
Would you have to link some identifier attribute in the item to get it, or can I do everything with Json?