I just started getting this too, except I am on a real device. This
same application worked perfectly fine yesterday. The only thing I
changed today was I set a button visibility to gone in my layout file.
If I remove this button, I remove the error. Seems to be a bug with a
Button being set to android:visibility="gone". I'd check to see if you
have anything like this.

On Jun 17, 8:17 am, johnjj <[email protected]> wrote:
> Hi There,
>
> my application crashes when I switch the Android Emulator to landscape
> mode. But when I start the application, everything works fine, until I
> switch to portrait mode again.
>
> The error only occurs when I switch from one mode to another. When I
> debug my app while switching to the other mode everything works fine
> until my program counter jumps out of the onCreate() function.
>
> this is an error message i picked out:
> java.lang.RuntimeException: Unable to start activity ComponentInfo
> {com.prog.drink/com.prog.drink.App}:
> java.lang.IllegalArgumentException: Wrong state class -- expecting
> View State
>
> Any idea what I could have done wrong in my app?
>
> Thanks a lot,
> Johannes
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to