Mono for Android OnPause event not triggering on Galaxy Nexus

家住魔仙堡 提交于 2019-12-10 18:31:00

问题


I put together my first Mono for Android project (targeting API level 8, minimum Android 2.2) and deployed it to an HTC Incredible [1] running 2.3.4. Everything worked great and breakpoints in my main activities OnCreate, OnStart, OnResume, OnPause, and OnStop all triggered as described on Xamarin's Activity Lifecycle tutorial.

Without changing any project settings, I swapped for a Samsung Galaxy Nexus running 4.0.2 and deployed the same app. It called OnCreate just fine, but never triggered any of the other events when I switched away from the app.

How do I get these activity events to trigger in Ice Cream Sandwich (ICS) on the Galaxy Nexus?


回答1:


While running the first deployment on a Galaxy Nexus, you will see it deploying the "armeabi-v7a - 40202" assemblies. For some reason that stuck in my head when this issue started making things difficult.

If you go to the project properties and check the box for "armeabi-v7a" under "Supported architectures", these events will start being triggered as expected.



来源:https://stackoverflow.com/questions/10757138/mono-for-android-onpause-event-not-triggering-on-galaxy-nexus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!