I have an application that starts Activity
with extras. I would like to see what extras are inside Intent. Both applications (calling and called) are not written by me.
Send the data first:
Intent i = new Intent(YourActivity.class);
i.putExtra("parameter", yourData)
startActivity(i);
To get the data :
Intent i = getIntent();
String data = i.getStringExtra("parameter"); //you can do for integer, etc
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.