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. Unbale to opem IM app.

On cupcake builds we are unable to open IM app from main menu.
When we open the app, it gets closed immediately and adb logs show the
following error.

01-07 03:28:15.939 E/ImApp ( 3147): [IM.FrontDoorPlugin] no plugins
found! bail...
01-07 03:28:16.139 E/IM ( 3147): Ignore bad IM frontdoor plugin:
ResolveInfo{43780a30 p=0 o=0
m=0x108000}. No providers found
01-07 03:28:16.139 E/IM ( 3147): [onCreate] load plugin failed, no
plugin found!

It is trying to load some thirdpartyplugins in packages/apps/IM/src/
com/android/im/app/ file.
Here it is getting plugins count zero and after that the app gets

Can any one suggest what can be wrong?
Do we need some thirdpartyplugins for this to work?
Any pointers will be very very helpful.

Thanks In advance,


2. Identifying HSDPA usage

Is is possible to find out if HSDPA is used by the phone?

telephonyManager.getNetworkType() only returns UMTS which seems to
include HSDPA. Since HSDPA is based on UMTS there is nothing wrong
with that:However, there is a significant bandwidth difference between
UMTS and HSDPA. HSDPA is actually something like 3.5G.

Any idea how a HSDPA connection could be identified?

3. Receiving Changes to the Phone state

4. G1 calendar sync not working

5. File download help

6. PAN services

7. Calendar Content Provider