我的应用程序在某些设备上工作正常但是当我在其他设备上加载时它会打开但是当我启动一个活动(也需要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
答案 0 :(得分:0)
您的screenOriention信息集在哪里?
如果以编程方式设置,可能会出现问题。您可以在标签中设置AndroidManifest文件。