Homework 2
User Profile Creator
The application will have 2 activities: MainActivity and DetailsActivity.
- On MainActivity, the values of the User Profile are shown. (1 pts)
- Person's name
- Person's job position
- A Picture of the person (ImageView)
MainActivity also includes 2 buttons:
- Take Picture - Clicking this will start a Camera app to take a picture (1 pts)
- Use Intents
- You can use the simpler version of image capture that only returns the thumbnail, not a full size image! See here
- Enter Details - Clicking this will open the DetailsActivity (1 pts)
- Take Picture - Clicking this will start a Camera app to take a picture (1 pts)
- In DetailsActivity, the user can enter the above-mentioned text details. (1 pts)
- For name, use EditText
- For position, use a Spinner!
- Once all necessary information is present, when the user presses the Save button in DetailsActivity, the user is returned to MainActivity.
- When the user returns to MainActivity after taking a picture / entering details, MainActivity updates the View objects using onActivityResult() (1 pts)
- Remember your flow between MainActivity to Camera / DetailsActivity should be with StartActivityForResult().