No worries: http://code.google.com/p/android/issues/detail?id=2726
Cheers, Steve 2009/5/21 Raphael <r...@android.com>: > > Can you file a bug at b.android.com with the zip file and your steps below? > Thanks in advance. > R/ > > On Mon, May 18, 2009 at 3:46 PM, Steve Smith <tarkast...@gmail.com> wrote: >> Hi, >> >> I've recreated this with a clean project. To reproduce: >> >> * android create project -k net.haltcondition.ex.Hello -a Hello -t 2 -p hello >> * ant install >> * <App runs OK> >> * mkdir res/drawable >> * cp /tmp/androidmarker.png res/drawable >> * ant reinstall >> * <App fails with exceptions in log> >> >> I've attached the resulting project. >> >> Cheers, >> Steve >> >> >> 2009/5/19 Steve Smith <tarkast...@gmail.com>: >>> Hi, >>> >>> The file is res/drawable/androidmarker.png (taken from a tutorial). >>> I'm not referring to it at all; I'm merely placing it in the drawable >>> directory. Removing it removes the error. >>> >>> Thanks, >>> Steve >>> >>> 2009/5/19 Raphael <r...@android.com>: >>>> >>>> What is the name of the png you are adding and where and how are you >>>> referring it to? >>>> >>>> R/ >>>> >>>> On Sat, May 16, 2009 at 11:28 PM, Steve Smith <tarkast...@gmail.com> wrote: >>>>> >>>>> Hi, >>>>> >>>>> I'm seeing an odd error when adding a PNG file to the res/drawable >>>>> directory in an otherwise working app: >>>>> >>>>> I/ActivityManager( 565): Start proc net.haltcondition.android.ex for >>>>> activity net.haltcondition.android.ex/.ThreadedXmlList: pid=1237 >>>>> uid=10018 gids={3003} >>>>> W/ResourceType( 1237): Bad XML block: header size 18254 or total size >>>>> 169478669 is larger than data size 635 >>>>> D/AndroidRuntime( 1237): Shutting down VM >>>>> W/dalvikvm( 1237): threadid=3: thread exiting with uncaught exception >>>>> (group=0x4000fe70) >>>>> E/AndroidRuntime( 1237): Uncaught handler: thread main exiting due to >>>>> uncaught exception >>>>> E/AndroidRuntime( 1237): java.lang.RuntimeException: Unable to start >>>>> activity ComponentInfo{net.haltcondition.android.ex/ >>>>> net.haltcondition.android.ex.ThreadedXmlList}: >>>>> android.content.res.Resources$NotFoundException: File res/drawable/ >>>>> androidmarker.png from xml type layout resource ID #0x7f020000 >>>>> E/AndroidRuntime( 1237): at >>>>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java: >>>>> 2268) >>>>> E/AndroidRuntime( 1237): at >>>>> android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: >>>>> 2284) >>>>> E/AndroidRuntime( 1237): at android.app.ActivityThread.access$1800 >>>>> (ActivityThread.java:112) >>>>> E/AndroidRuntime( 1237): at >>>>> android.app.ActivityThread$H.handleMessage >>>>> (ActivityThread.java:1692) >>>>> E/AndroidRuntime( 1237): at android.os.Handler.dispatchMessage >>>>> (Handler.java:99) >>>>> E/AndroidRuntime( 1237): at android.os.Looper.loop(Looper.java:123) >>>>> E/AndroidRuntime( 1237): at android.app.ActivityThread.main >>>>> (ActivityThread.java:3948) >>>>> E/AndroidRuntime( 1237): at java.lang.reflect.Method.invokeNative >>>>> (Native Method) >>>>> E/AndroidRuntime( 1237): at java.lang.reflect.Method.invoke >>>>> (Method.java:521) >>>>> E/AndroidRuntime( 1237): at com.android.internal.os.ZygoteInit >>>>> $MethodAndArgsCaller.run(ZygoteInit.java:782) >>>>> E/AndroidRuntime( 1237): at com.android.internal.os.ZygoteInit.main >>>>> (ZygoteInit.java:540) >>>>> E/AndroidRuntime( 1237): at dalvik.system.NativeStart.main(Native >>>>> Method) >>>>> E/AndroidRuntime( 1237): Caused by: android.content.res.Resources >>>>> $NotFoundException: File res/drawable/androidmarker.png from xml type >>>>> layout resource ID #0x7f020000 >>>>> E/AndroidRuntime( 1237): at >>>>> android.content.res.Resources.loadXmlResourceParser(Resources.java: >>>>> 1843) >>>>> E/AndroidRuntime( 1237): at >>>>> android.content.res.Resources.loadXmlResourceParser(Resources.java: >>>>> 1798) >>>>> E/AndroidRuntime( 1237): at android.content.res.Resources.getLayout >>>>> (Resources.java:685) >>>>> E/AndroidRuntime( 1237): at android.view.LayoutInflater.inflate >>>>> (LayoutInflater.java:318) >>>>> E/AndroidRuntime( 1237): at androidview.LayoutInflater.inflate >>>>> (LayoutInflater.java:276) >>>>> E/AndroidRuntime( 1237): at >>>>> com.android.internal.policy.impl.PhoneWindow.setContentView >>>>> (PhoneWindow.java:309) >>>>> E/AndroidRuntime( 1237): at android.app.Activity.setContentView >>>>> (Activity.java:1626) >>>>> E/AndroidRuntime( 1237): at >>>>> net.haltcondition.android.ex.ThreadedXmlList.onCreate >>>>> (ThreadedXmlList.java:34) >>>>> E/AndroidRuntime( 1237): at >>>>> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: >>>>> 1123) >>>>> E/AndroidRuntime( 1237): at >>>>> android.app.ActivityThread.performLaunchActivity(ActivityThread.java: >>>>> 2231) >>>>> E/AndroidRuntime( 1237): ... 11 more >>>>> E/AndroidRuntime( 1237): Caused by: java.io.FileNotFoundException: >>>>> Corrupt XML binary file >>>>> E/AndroidRuntime( 1237): at >>>>> android.content.res.AssetManager.openXmlAssetNative(Native Method) >>>>> E/AndroidRuntime( 1237): at >>>>> android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java: >>>>> 471) >>>>> E/AndroidRuntime( 1237): at >>>>> android.content.res.Resources.loadXmlResourceParser(Resources.java: >>>>> 1825) >>>>> E/AndroidRuntime( 1237): ... 20 more >>>>> >>>>> No other changes have been made to the app; removing the file makes >>>>> the problem go away. This is on 1.5_r1. >>>>> >>>>> Any suggestions on what I'm missing here? >>>>> >>>>> Thanks, >>>>> Steve >>>>> >>>>> > >>>>> >>>> >>>> >> >>>> >>> >> >> > >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---