Passing Argument to an Intent
Category: Android-Java
Sub-Category:
Creator: Jan-Maurice Dahlmanns
Created: 2020-07-25 18:15:28
Modified: 2024-11-17 00:15:25
Views: 786
Caution: I do not guarantee the reliability of the information given here, the code described on this page is executed at your own risk and in the event of damage or other unforeseeable consequences I am in no way responsible or liable.
Passing the parameter
Intent intent= new Intent(mContext,Activity.class);
intent.putExtra("test","value"));
Get value
Intent intent=getIntent();
msg_textview.setText(intent.getStringExtra("test"));