layout upgrade causing crash

by Jayesh Salvi » Fri, 04 Sep 2009 11:40:12 GMT

Sponsored Links
In that app I am developing ( ), I updated the
layout file in the latest version - I changed the order of some Views and
changed a LinearLayout to RelativeLayout. I heard from users and also
verified myself that a regular upgrade from old version to the new version
causes a crash. The crash is because of a ClassCastException for a
LinearLayout. I do see this kind of error during development - what I do is,
I do a clean build and then upgrade and it solves the problem. But that
doesn't seem to be the case here.

Is this happening because the upgrade doesn't wipe out old layout files?

After searching for the issue, I came across the warning about unusually
deep and/or broad hierarchies ( ).
My layout is not much deeper (max depth 5), but it is wider (total elements
more than 30). Do you think that has anything to do with this? However note
that a clean install of the latest version doesn't cause any problem, only
the upgrade from previous version leads to the layout related crash.

Has anyone else faced problem like this?

Please let me know.



Other Threads

1. Ada masalah di market kah?

Dear all, barusan saya flash magic ke 3pei legend. Lancar tidakada masalah,
terkecuali waktu mau masuk market, katanya ndak bisa nyambung ke servernya.
ada masalahkan dgn market?atau mungkin ada kesalahan pada proses
flasnya..thx all

"Indonesian Android Community [id-android]" 

2. How can save an online image in my res folder in android?

Is it possible to save an online image to my res folder in android?
Please provide the relevant code.


3. Callback when SoftKeyboard goes away

4. register android.intent.action.SEND in Service

5. View not refreshing

6. Is it possible to send sms using adb tool

7. What is the maximum memory capacity