Home Assignment 1
- Make sure your application takes care of lifecycle changes & user state
- search results must not be lost e.g. when switching phone orientation
- Empty inputs, missing permissions should not make the app crash!
- if you fail to meet this requirement you will receive a penalty of -3 pts
- Have an activity with design such as in figure A, presenting a list of the phones contacts (using content provider, CursorAdapter) ( 6 pts)
- Content Providers with an example of getting contacts were discussed in lecture 4
- Selecting one contact opens up their details in a new activity and provides means for sending e-mails, including EditTexts to capture a title and body for the e-mail ( 3 pts)
- Details: Full name, phone no., email
- Pressing the send e-mail button will forward an intent to send an e-mail, passing along relevant information (the recipient's e-mail, e-mail title, body) ( 3 pts)
- After hitting "send" in the e-mail app, the user is returned to the contact list, and a message next to the chosen contact appears indicating that an e-mail was composed for them (up to you how to display the message exactly).
- The app should also have an action bar with working search functionality (search contact by name). ( 3 pts)
- Use SearchView