This assignment should be done individually.
This assignment is a bit harder than the last one.
During class on 1/31/2011, each student will show me their working demo and will receive a grade and feedback immediately.
Read The Busy Coder's Guide to Android Development, Chapter 21: Dealing with Threads
-
Create an application that utilizes multiple threads of execution
This can be a simple application (as in the textbook) that does something long running in a separate thread while the
GUI remains responsive
Read The Busy Coder's Guide to Android Development, Chapter 29: Communicating via the Internet
Read Android Programming Tutorials, Chapter 15: Raising (Something Like) a Tweet
Create an application that uses
HTTP GET and
HTTP POST via the
Apache HttpClient to retrieve and send information to and from the internet. Something like a simple Twitter client would be great.
You will have to parse JSON here to get reasonable results. This is in the book, too.
NOTE: If you're getting “
HTTP Bad Request”, check that you don't have superfluous whitespace in your username (using the <tab> key may do this), and that you're
not sending the same tweet twice in a row. The same text twice in a row generates a Bad Request, to prevent flooding the server.