get extras from intent 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");
Example 3: activity get extras
Intent intent = getIntent();