# Saturday, December 03, 2011
« Review Notes of Sams Teach Yourself Andr... | Main | Review Notes of Sams Teach Yourself Andr... »

Here’s the skivvy on the review. Since, I made the commitment to read this Droid book, I’m going to provide review notes for each hour of the book immediately after I complete that section of the book. In theory you’ll see 24 separate posts over the next few days containing my personal notes on my experience with the book.

Hour 6 Review Notes

Promising hour (or chapter depending on how you view the book) going to create an Android Trivia Game, but first a moment from my sponsor – LUNCH!!  brb

I’m up to page 117 and got the prototype built consisting of screens, not much on them but the framework of an application is there based on the game of ‘Been There, Done That!’

Wrote some *real* code for the final exercise.

 

DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
        Date date = new Date();
        String currentDate = dateFormat.format(date);
       
        SharedPreferences settings = getSharedPreferences(GAME_PREFERENCES, MODE_PRIVATE);       
        Log.i(TAG,"Last Launched QuizSplashActivity: " + settings.getString("lastLaunch", currentDate) );         
        SharedPreferences.Editor prefEditor = settings.edit();
        prefEditor.putString("lastLaunch", currentDate);
        prefEditor.commit();

 

 

All comments require the approval of the site owner before being displayed.
OpenID
Please login with either your OpenID above, or your details below.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, strike) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview