This is easily achieved by forwarding your results.Īnd if we wanted to get the result from Activity C passed by to A, for the scenario I have described above. For example, I earn 10 points on screen A, I click through to screen B to check my points balance to see if I have enough points to buy a new weapon? Yay, I do! So I click through to Screen C to buy a fancy new sword, which I would like to use back in Screen A. It will start the second Activity and the entered text will be passed to the second activity using an intent. User can enter any text in the EditText and click on the Button. The first one will have one EditText and one Button. 3.Use putExtra(String name, Parcelable value) to. Android Studio Project setup: This project will hold two Activities. This is easy enough when you are just passing information back and forth between two screens (activities), but needs a slight tweak if you need to pass data between more than 2 activities. Let us consider a simple class User 2.Make your class implement Parcelable. First, bind the RadioGroup: RadioGroup rg (RadioGroup) findViewById (R.id.radioGroup1) Then get the position of the button that was checked: int checked rg.getCheckedRadioButtonId () Then create the intent of your next activity: Intent intent new Intent (this,nextActivity. And as you move from screen to screen in your app, you may need to share information between the various activities e.g the username, current score etc. Android applications are made up of one or more activities. I am trying to add a new activity to my project on Android Studio, but it seems doesnt work.