monodroid app not running on device

Posted by Anant under Mobile Development on 9/23/2013 | Points: 10 | Views : 2769 | Status : [Member] | Replies : 10
visual studio 2010 and mono for android

softwares to develop a mono droid apk.
Initially it create a project click the button, it can run successfuly on

emulator and i try to install it on android mobile (samsung galaxy y)for

that i search the (.apk file) in my project and it will locate it on

bin/debug/filname.apk.here in this bin folder i have 2 apk file

filename.apk and filename.signed.apk. I copied both apk file to my mobile

and try to install file name.apk but it failed to install and try to

install filename.signed.apk it will installed successfully, but when i try

to open it on mobile it will force close automatically.




Responses

Posted by: Bandi on: 9/23/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer these links once
http://stackoverflow.com/questions/7534646/cannot-run-helloworld-monodroid-application-on-my-device
http://stackoverflow.com/questions/8585622/mono-droid-deploy-select-device-not-working-for-emulators-is-there-an-alt

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 9/23/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer
http://mono-for-android.1047100.n5.nabble.com/problem-installing-apk-in-device-td5710772.html
http://mono-for-android.1047100.n5.nabble.com/deployment-problem-my-android-device-tab-is-not-enabling-in-select-device-window-td5713193.html

Testing Mono for Android Applications on an Android Device
http://mtgcsharpguy.blogspot.in/2011/11/testing-mono-for-android-applications.html

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anant on: 9/23/2013 [Member] Starter | Points: 25

Up
0
Down
thanks for your quick response but my problem is different. on emulator my application working fine and also vs 2010 create two .apk file 1 is EventRegistraionApp-Signed.apk and another is EventRegistraionApp-Signed.apk ,only EventRegistraionApp-Signed.apk installed and it also install successfully on device but it giving exception which is shown below:-



09-23 06:59:38.388: E/AndroidRuntime(863): FATAL EXCEPTION: main
09-23 06:59:38.388: E/AndroidRuntime(863): 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!
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.installProvider(ActivityThread.java:4882)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4485)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4425)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.access$1300(ActivityThread.java:141)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.os.Handler.dispatchMessage(Handler.java:99)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.os.Looper.loop(Looper.java:137)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.main(ActivityThread.java:5103)
09-23 06:59:38.388: E/AndroidRuntime(863): at java.lang.reflect.Method.invokeNative(Native Method)
09-23 06:59:38.388: E/AndroidRuntime(863): at java.lang.reflect.Method.invoke(Method.java:525)
09-23 06:59:38.388: E/AndroidRuntime(863): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
09-23 06:59:38.388: E/AndroidRuntime(863): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-23 06:59:38.388: E/AndroidRuntime(863): at dalvik.system.NativeStart.main(Native Method)
09-23 06:59:38.388: E/AndroidRuntime(863): Caused by: java.lang.RuntimeException: Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8!
09-23 06:59:38.388: E/AndroidRuntime(863): at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:30)
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ActivityThread.installProvider(ActivityThread.java:4879)
09-23 06:59:38.388: E/AndroidRuntime(863): ... 12 more
09-23 06:59:38.388: E/AndroidRuntime(863): Caused by: android.content.pm.PackageManager$NameNotFoundException: Mono.Android.DebugRuntime
09-23 06:59:38.388: E/AndroidRuntime(863): at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:226)
09-23 06:59:38.388: E/AndroidRuntime(863): at mono.MonoRuntimeProvider.attachInfo(MonoRuntimeProvider.java:21)
09-23 06:59:38.388: E/AndroidRuntime(863): ... 13 more

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 9/23/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Refer same error solution from this link
http://mono-for-android.1047100.n5.nabble.com/App-crashes-when-running-with-F5-debug-td4379917.html
http://stackoverflow.com/questions/10616549/unable-to-get-provider-mono-monoruntimeprovider

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anant on: 9/24/2013 [Member] Starter | Points: 25

Up
0
Down
Hi, chandu,

My problem is that after installation of apk to device it throwing exception of
Unable to find application Mono.Android.DebugRuntime or Mono.Android.Platform.ApiLevel_8! but on emulator it is working fine.your two links are not helping to solve my problem ,please help me more,thanks in advance

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 9/24/2013 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Yes :) The version that you have target in the application is higher than your device

Thank you for posting at Dotnetfunda
[Administrator]

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anant on: 9/25/2013 [Member] Starter | Points: 25

Up
0
Down
i am really thankful for this.

Is there any way to deploy the application to device not to emulator. I am using Evaluation version of Mono-Android.

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anant on: 9/25/2013 [Member] Starter | Points: 25

Up
0
Down
Can Evaluation version of Mono-Android deploy to device

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anant on: 10/8/2013 [Member] Starter | Points: 25

Up
0
Down
after connecting device using USB i deploy application in release mode .it is created 4 files 1 is program debug database,2 is Appname.apk file,3 is Appname-signed.apk & 4 is .dll file.according to u can now i installed Appname-signed.apk on device. i am using version monodroid 4.2.5

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anant on: 10/10/2013 [Member] Starter | Points: 25

Up
0
Down
thanks finally i solved problem lastly i created .keystore file and then finally appname-aligned.apk using keytool and successfully run my app on device.

Anant, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response