harsha vardhan harsha vardhan - 1 year ago 76
Android Question

Change the data in TextView for every different parameter passed in Intent

I have a

containing 7 tabs and have 10 items(listView) in each tab. It is highly impossible to create 70
s to handle request from each item.So can anyone provide the best way to handle them like one intent for each tab (i.e. for 10 items) but with different data. Just the data in

Answer Source

You can pass data using intent will launching it.

Add data like this

    Intent intent = new Intent(current.this, AndroidTabRestaurantDescSearchListView.class);

Reterive like this.

String data = getIntent().getExtras().getString("keyName");

Look here how to pass data using intents.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download