Hi I think in your notepadv3 solution in editnote.java check for " onSavedInstanceState() "
ie.. when you change the phone mode it will call the onDestroy() of current Activity and again calls the "onCreate() " so in your activity it will check mRowId value from bundle then it will cause exception to solve this, you must put the same value in onSavedinstanceState() because before onDestroy , onSavedinstanceState() will be called ==================code----------------- @Override protected void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putLong(NotesDbAdapter.KEY_ROWID, mRowId); } -------------------------------------------------------------------- i think it will solve you problem On Tue, Feb 24, 2009 at 7:00 AM, SurtaX <garylo....@gmail.com> wrote: > > Looking at the sample Notepadv3 Solution project. (In Portrait Mode) > When you press menu --> Add Note --> Change orientation to landscape, > will produce > > "Sorry! The application com.android.demo.notepad3(process > com.android.demo.notepad3) has stopped unexpectedly. Please try > again." > > Any ideas why it is doing this? And propose a fix? > > > > -- Dilli Rao. M ARIJASOFT +91 - 9703073540 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---