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
- The layout file: Use LinearLayout (not RelativeLayout)
android:orientation="vertical"
- The code behing the Send button must make an Intent object, add extras (data) to the intent, and finally call startActivity(...)
Program the second activity (show) activity
- The code behind the Back button should call the method finish() [from the Acivity class] to get back to the first Activity