Passing Argument to an Intent

ID - _BUGFISH - E#16
^Top
<< Back
Mobile-Menu










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

Currently 0 Upvotes!

captcha image
System - 2024-11-05 18:29:02
Commenting System Initialized! Have a very nice day!

Switches: 0 | Arrivals: 10 | Visits: 10
This Website is using Session Cookies for Site Functionality.