intent.putextra android code example
Example 1: intent android
Intent intent = new Intent(MainActivity.this,Activity.class);
Example 2: activity get extras
String id = intent.getStringExtra("id");
String name = intent.getStringExtra("name");
Intent intent = new Intent(MainActivity.this,Activity.class);
String id = intent.getStringExtra("id");
String name = intent.getStringExtra("name");