^

Passing Argument to an Intent

Article 16 in Android-Java

2020-07-25 18:15:28 from admin
Passing Argument to an Intent
Android-Java / Hints
Last Review on: 2021-05-08 02:07:39 | Hits: 266

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"));

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.
Comment Section
Currently 0 Upvotes!
captcha image

System - 2021-01-01 19:30:08
We appreciate comments on our site!

This Website is using Session Cookies for Site Functionality and AWStats.
Radio