Exercise: Intents with data

In this exercise you must create two activities and make one activity "start" the other using and Intent. Furthermore data must be transported on the "back" of the Intent.

Program the first (input) activity

  1. The layout file: Use LinearLayout (not RelativeLayout)
    android:orientation="vertical"
  2. The code behing the Send button must make an Intent object, add extras (data) to the intent, and finally call startActivity(...)

Personal info

Program the second activity (show) activity

  1. The code behind the Back button should call the method finish() [from the Acivity class] to get back to the first Activity

personal info show