hmm - from what I can find on the 'net this is an Android 2.2 and earlier issue. my bad for testing on devices/emulators with 2.3 or newer...
the solutions seem to be: * use newer emulator/device (2.3 or higher) * move the file to /raw/ and adjust the code accordingly * disable compression in the build, in Visual Studio Project Properties Application tab there is a box for 'Leave the following resource extensions uncompressed:', add ".xml" (no quotes) there * if you are just testing, you could cut out a huge chunk of the SeedData.XML so that it is less than 1Mb (just be sure it remains valid XML - I suggest chopping half the records off the end) I'll look into this a bit further to see what the best option is to update the project on github, but for now perhaps one of those options will help you? sorry for the inconvenience. thanks craig On Wed, May 16, 2012 at 7:18 PM, gramlin <wilh...@erwe.se> wrote: > Thanks Craig, > it flies through compilation now. However when it is started in the > emulator > it hangs after the splash-screen. > I/mono-stdout( 453): MAIN Load SeedData.xml > D/MWC ( 453): MAIN Load SeedData.xml > D/asset ( 453): Data exceeds UNCOMPRESS_DATA_MAX (2093449 vs 1048576) > E/mono ( 453): > E/mono ( 453): Unhandled Exception: Java.IO.IOException: Exception of > type 'Java.IO.IOException' was thrown. > E/mono ( 453): at Android.Runtime.JNIEnv.CallIntMethod (IntPtr > jobject, IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00000] in > <filename unknown>:0 > E/mono ( 453): at Java.IO.InputStream.Read (System.Byte[] b, Int32 > offset, Int32 length) [0x00000] in <filename unknown>:0 > E/mono ( 453): at Android.Runtime.InputStreamInvoker.Read > (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in <filename > unknown>:0 > E/mono ( 453): at System.IO.StreamReader.ReadBuffer () [0x00000] in > <filename unknown>:0 > E/mono ( 453): at System.IO.StreamReader.Peek () [0x00000] in > <filename unknown>:0 > E/mono ( 453): at MWC.MWCApp.<OnCreate>m__D () [0x00000] in <filename > unknown>:0 > E/mono ( 453): at System.Threading.Thread.StartInternal () [0x00000] > in <filename unknown>:0 > E/mono ( 453): --- End of managed exception stack trace --- > E/mono ( 453): java.io.IOException > E/mono ( 453): at > android.content.res.AssetManager.readAsset(Native > Method) > E/mono ( 453): at > android.content.res.AssetManager.access$700(AssetManager.java:36) > E/mono ( 453): at android.content.res.AssetManager$AssetInputS > > > > -- > View this message in context: > http://mono-for-android.1047100.n5.nabble.com/Compiling-the-MWC-Droid-sample-tp5709729p5709797.html > Sent from the Mono for Android mailing list archive at Nabble.com. > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid > >
_______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid