Need Help for an Android Application in Eclipse

  • Replies:2
Amet Ismaili
  • Forum posts: 1

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:

Reply
Ashish Tripathi
  • Forum posts: 211

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.

Reply
NITHIN CHANDRAN
  • Forum posts: 1

Jan 9, 2014, 11:54:02 AM via Website

Using sql database will be more better and standard.

Reply