p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional Android 2 Application Development (http://p2p.wrox.com/forumdisplay.php?f=547)
-   -   Chapter 6 To Do List (http://p2p.wrox.com/showthread.php?t=79004)

EricTapia April 14th, 2010 01:40 AM

Chapter 6 To Do List
 
book typos:

Code:

    @Override
    public void onSaveInstanceState(Bundle savedInstanceState) {
        ...
           
            super.onSaveInstanceState(saveInstanceState);
    }

its savedInstanceState


According to the book, the new code is suppose to save UI State.

If I click the "Add New Item" to get the text box to show. Then click home, when I return back to the app, the text box continues to show.

When I click the menu, I get the "Add New Item". Then I click the home button and start up the todo list app. After it loads, the "Add New Item" no longer shows. Should this be happening?

I also thought the items were persisting. It turns out if I use the settings application force stop and start up the app, the items no longer appear. Without using the force stop, it appears that items do persist. Which means the app does not killed by pressing the back. I do not recall how to kill and app. Can I be reminded?


All times are GMT -4. The time now is 06:46 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.