android - 我开始 Activity 后,应用程序即被终止

我的应用程序在某些设备上运行良好,但是当我在其他设备上加载该应用程序时,它会打开,但是当我开始一个 Activity (也需要screenOrientation="portrait")时,它就会终止。任何想法?

02-06 11:47:52.390 D/SensorManager(19387): unregisterListener::  Listener= android.view.OrientationEventListener$SensorEventListenerImpl@41fa8a60
02-06 11:47:52.390 D/Sensors (19387): Remain listener = Sending .. normal delay 200ms
02-06 11:47:52.390 I/Sensors (19387): sendDelay --- 200000000
02-06 11:47:52.390 D/SensorManager(19387): JNI - sendDelay
02-06 11:47:52.390 I/SensorManager(19387): Set normal delay = true
02-06 11:47:52.545 D/dalvikvm(19387): GC_CONCURRENT freed 288K, 9% free 13814K/15175K, paused 12ms+2ms, total 29ms
02-06 11:47:52.575 D/SensorManager(19387): registerListener :: handle = 0  name= LSM330DLC 3-axis Accelerometer delay= 200000 Listener= android.view.OrientationEventListener$SensorEventListenerImpl@41e23990
02-06 11:47:52.670 W/IInputConnectionWrapper(19387): getSelectedText on inactive InputConnection
02-06 11:47:52.755 W/IInputConnectionWrapper(19387): setComposingText on inactive InputConnection
02-06 11:47:52.755 W/IInputConnectionWrapper(19387): getExtractedText on inactive Input
Connection
02-06 11:47:52.830 W/IInputConnectionWrapper(19387): finishComposingText on inactive InputConnection
02-06 11:47:52.955 D/dalvikvm(19387): GC_CONCURRENT freed 361K, 9% free 13938K/15175K, paused 2ms+13ms, total 32ms
02-06 11:47:54.450 D/SensorManager(19387): unregisterListener::  Listener= android.view.OrientationEventListener$SensorEventListenerImpl@41e23990
02-06 11:47:54.450 D/Sensors (19387): Remain listener = Sending .. normal delay 200ms
02-06 11:47:54.450 I/Sensors (19387): sendDelay --- 200000000
02-06 11:47:54.450 D/SensorManager(19387): JNI - sendDelay
02-06 11:47:54.450 I/SensorManager(19387): Set normal delay = true
02-06 11:47:54.720 W/IInputConnectionWrapper(19387): showStatusIcon on inactive InputConnection

最佳答案

您的screenOrientation信息在哪里设置?
如果您以编程方式进行设置,则可能会出现问题。您可以在标签中设置Android Manifest文件。

https://stackoverflow.com/questions/14937125/

相关文章:

c++ - 编译器错误 : Undefined symbols for architecture x

iphone - NSInvalidArgumentException与UITableView吗?

compilation - 安装MPFR(3.1.0)时出错

jquery - Eclipse不了解jQuery

apache - htaccess 将所有页面重定向到单个页面

ruby-on-rails - Rails ActionView::Template::Error:

ios - iOS静态库取决于其他静态库

compiler-errors - 收到此错误LNK2019,不知道为什么

python - AttributeError : 'int' object has no attr

c++ - 数组下标错误的类型 'int[int]'无效