单声道为Android的onPause事件不会触发的Galaxy Nexus [英] Mono for Android OnPause event not triggering on Galaxy Nexus

查看:222
本文介绍了单声道为Android的onPause事件不会触发的Galaxy Nexus的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我把我的第一个单声道的Andr​​oid项目(针对API 8级,最小的Andr​​oid 2.2),并将其部署到HTC不可思议[1]运行2.3.4。一切都在我的主要活动,伟大的工作和断点的OnCreate 的OnStart OnResume 的onPause 调用OnStop 作为Xamarin的的活动的生命周期教程

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.

在不改变任何项目设置,我换运行4.0.2三星的Galaxy Nexus和部署相同的应用程序。它呼吁的OnCreate 就好了,但从来没有引发任何其他事件,当我从应用程序切换了。

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.

我如何得到这些活动事件冰淇淋三明治(ICS)的Galaxy Nexus的?

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

推荐答案

当运行在Galaxy Nexus的首次部署,你会看到它部署armeabi-V7A - 40202组件。出于某种原因,停留在我的头,当这个问题开始刁难。

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.

如果你去项目属性,在支持的架构检查armeabi-V7A框,这些事件将开始被预期引发的。

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.

这篇关于单声道为Android的onPause事件不会触发的Galaxy Nexus的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆