Hi,

I've met a very strange issue that my app will crash if user first switch to
landscape, then back to portrait. I found that Activity.setContentView()
will throw an inflate exception. It said:

android.view.InflateException: Binary XML file line #29: Error inflating
class <unknown>

This crash will happens on Android 1.6/2.1/2.1-update1, but doesn't happen
in 2.2 Froyo. In Froyo, everything works fine.

If the XML I used is invalid, it should happens every time when I try to
inflate. But why it's okay on the first time of running and switching to
landscape?

This also only happens on some devices. For example, there two HTC G1 with
same software installed on it and has the same configuration, one has this
issue and the other one works fine.

Could someone help me? I really don't know how to start to solve this issue?
Thanks very much!

Alex

-- 
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

Reply via email to