Need Help for an Android Application in Eclipse

  • Replies:2
  • OpenNot stickiedUnanswered

Dec 25, 2013 5:57:01 PM via Website

I'm trying to make an android application which will get the id, name and surname from one activity and show them in gridview(or whatever) in another activity can somebody help me with this i'm working in eclipse btw.

It needs to look something like this:

Dec 27, 2013 8:03:11 AM via Website

Ok you can do it through intent.

You are getting input from user in one activity and pass it to another activity.

Bind all your values like

Intent intent = new Intent(youractivityname.this, anotheractivity.class);
intent.put("id",id);
intent.put("name",name);
intent.put("address",address);
startActivity(intent);


In another activity you can retrieve the values like

String id = getIntent().getExtras().getString("id");

And show it on your grid.

Enjoy

Still Issues Share.

Trending stories from our news section