android studio send multiple data to activity

Solutions on MaxInterview for android studio send multiple data to activity by the best coders in the world

showing results for - "android studio send multiple data to activity"
Nicole
30 Oct 2019
12
2
3Intent requestLink = new Intent(Search.this, Results.class);
4requestLink.putExtra("Link1", sendLink1);
5requestLink.putExtra("Link2", sendLink2);
6startActivity(requestLink);
7
8//Second Activity 
9
10Bundle bundle=getIntent().getExtras();
11String Link1 =bundle.getString("Link1");
12String Link2 =bundle.getString("Link2");