[mono-android] Android application crashing on device

Amitabh Mishra amitabhm at techmaster.in
Thu Dec 8 06:32:15 EST 2011


Hey,

We have purchased mono for android (windows).


We have build the android application in *release version*, and installed
the application on device using *adb install command*,

After installation, when we run the application, we are getting the
following error on device (android version 2.2).

*The application has stopped unexpectedly. Please try again.*

Please find attached logcat file and sample application for your refrence.

Sample application is running fine in the emulator, but on device, it is
crashing.


Please help.

   Best Regards, Amitabh Mishra
  Software Engineering Trainee
 *HandPhone:* +91-80 100 63593 *Email:*
amitabhm at techmaster.in<pankaj at techmaster.in>
*Website:* www.techmaster.in [image: Techmaster] <http://www.techmaster.in/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20111208/e5094851/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 5915 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monodroid/attachments/20111208/e5094851/attachment-0001.png 
-------------- next part --------------
I/ActivityManager(  128): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=DeviceTest.DeviceTest/devicetest.Activity1 } from pid 249I/Launcher(  249): onPause()I/ActivityManager(  128): Start proc DeviceTest.DeviceTest for activity DeviceTest.DeviceTest/devicetest.Activity1: pid=4936 uid=10115 gids={3003}I/Launcher(  249): onWindowFocusChanged(false)D/Launcher(  249): It's image wallpaper. suggestDesiredDimensions(-1,-1)I/ActivityThread( 4936): Pub DeviceTest.DeviceTest.__mono_init__: mono.MonoRuntimeProviderD/AndroidRuntime( 4936): Shutting down VMW/dalvikvm( 4936): threadid=1: thread exiting with uncaught exception (group=0x40015578)E/AndroidRuntime( 4936): FATAL EXCEPTION: mainE/AndroidRuntime( 4936): java.lang.RuntimeException: Unable to get provider mono.MonoRuntimeProvider: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8!E/AndroidRuntime( 4936): 	at android.app.ActivityThread.installProvider(ActivityThread.java:3561)E/AndroidRuntime( 4936): 	at android.app.ActivityThread.installContentProviders(ActivityThread.java:3313)E/AndroidRuntime( 4936): 	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3269)E/AndroidRuntime( 4936): 	at android.app.ActivityThread.access$2200(ActivityThread.java:117)E/AndroidRuntime( 4936): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:973)E/AndroidRuntime( 4936): 	at android.os.Handler.dispatchMessage(Handler.java:99)E/AndroidRuntime( 4936): 	at android.os.Looper.loop(Looper.java:123)E/AndroidRuntime( 4936): 	at android.app.ActivityThread.main(ActivityThread.java:3687)E/AndroidRuntime( 4936): 	at java.lang.reflect.Method.invokeNative(Native Method)E/AndroidRuntime( 4936): 	at java.lang.reflect.Method.invoke(Method.java:507)E/AndroidRuntime( 4936): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)E/AndroidRuntime( 4936): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)E/AndroidRuntime( 4936): 	at dalvik.system.NativeStart.main(Native Method)E/AndroidRuntime( 4936): Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8!E/AndroidRuntime( 4936): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:30)E/AndroidRuntime( 4936): 	at android.app.ActivityThread.installProvider(ActivityThread.java:3558)E/AndroidRuntime( 4936): 	... 12 moreE/AndroidRuntime( 4936): Caused by: android.content.pm.PackageManager$NameNotFoundException: Mono.Android.DebugRuntimeE/AndroidRuntime( 4936): 	at android.app.ContextImpl$ApplicationPackageManager.getApplicationInfo(ContextImpl.java:2020)E/AndroidRuntime( 4936): 	at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:21)E/AndroidRuntime( 4936): 	... 13 moreE/        (  128): Dumpstate > /data/log/dumpstate_app_errorW/ActivityManager(  128):   Force finishing activity DeviceTest.DeviceTest/devicetest.Activity1I/dumpstate( 4944): beginW/ActivityManager(  128): Activity pause timeout for HistoryRecord{40a4fbc8 DeviceTest.DeviceTest/devicetest.Activity1}W/PowerManagerService(  128): Timer 0x3->0x3|0x3I/StatusBarPolicy(  217): onSignalStrengthsChangedD/VoldCmdListener(   75): asec listD/BatteryService(  128): update startD/BatteryService(  128): updateBattery level:93 scale:100 status:2 health:2 present:true voltage: 4178 temperature: 340 technology: Li-ion AC powered:false USB powered:true icon:17302213I/dumpstate( 4944): doneD/dalvikvm(  128): GC_EXTERNAL_ALLOC freed 1594K, 40% free 7347K/12167K, external 9355K/9527K, paused 74msI/Launcher(  249): onResume(). mIsNewIntent : falseE/        (  249): onResume() check 0E/        (  249): onResume() check 1E/Launcher(  249): setWindowOpaque()I/StatusBarPolicy(  217): BAT. S:2 H:2E/        (  249): onResume() check 2, mRestoring : falseE/        (  249): onResume() check 3E/        (  249): onResume() check 4E/        (  249): onResume() check 5I/Launcher(  249): onResume() endedI/StatusBarPolicy(  217): onSignalStrengthsChangedI/StatusBarPolicy(  217): onSignalStrengthsChangedI/InputReader(  128): dispatchTouch::touch event's action is 0I/InputDispatcher(  128): Delivering touch to current input target: action: 0, channel '4055fb48 Sorry! (server)'I/InputReader(  128): dispatchTouch::touch event's action is 1I/InputDispatcher(  128): Delivering touch to current input target: action: 1, channel '4055fb48 Sorry! (server)'I/Launcher(  249): onWindowFocusChanged(true)D/Launcher(  249): It's image wallpaper. suggestDesiredDimensions(-1,-1)E/Launcher(  249): setWindowOpaque()I/Process ( 4936): Sending signal. PID: 4936 SIG: 9W/InputManagerService(  128): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy at 4093e788I/ActivityManager(  128): Process DeviceTest.DeviceTest (pid 4936) has died.I/StatusBarPolicy(  217): onSignalStrengthsChangedD/BatteryService(  128): update startD/BatteryService(  128): updateBattery level:93 scale:100 status:2 health:2 present:true voltage: 4180 temperature: 340 technology: Li-ion AC powered:false USB powered:true icon:17302213I/StatusBarPolicy(  217): BAT. S:2 H:2W/PowerManagerService(  128): Timer 0x3->0x3|0x0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SampleApplication.zip
Type: application/octet-stream
Size: 564627 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/monodroid/attachments/20111208/e5094851/attachment-0001.obj 


More information about the Monodroid mailing list