3
I have a listview and in it I put all the users of the bank, I use a adapterView to get the position and the id, but I do not know how I will open a new screen for the advanced options for each user.
follows 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();
}
});
}
You would have to link some identifier attribute in the item to pick it up, or I can do everything with Json?
Is he in a local bank? Or comes from a webservice?
– Thiago Luiz Domacoski
comes from a webservice on apache
– Felipe Duarte
So, I think you will have to pass this user ID to and there (through another request) pick up the server data through the ID.
– Thiago Luiz Domacoski