Wednesday, 30 January 2013

Remove Extraneous Code from LunchList | Android Tutorial pdf

Remove Extraneous Code from LunchList

With our menu and thread samples behind us, we can get rid of our options menu and simplify the code. Get rid of the following items from your implementation of LunchList:
=> The isActive and progress data members
=> The call to requestWindowFeature() in onCreate()
=> The implementations of onPause(), onResume(), onCreateOptionsMenu(), and onOptionsItemSelected()
=> The startWork() and doSomeLongWork() methods, along with the longTask Runnable

No comments: