How could you pass data between activities without Intent?

How could you pass data between activities without Intent?
Answer
This example demonstrate about How to send data from one activity to another in Android without intent. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to
res/layout/activity_main.xml.

Sr.No

Method & description

6

getSource() This method gets the source of the event
 

Tìm kiếm

Back
Top