Android应用程序会导致重启

时间:2011-11-20 15:28:23

标签: java android

退出我的应用程序时,会导致设备显示其初始启动动画并转到主屏幕。我觉得这与记忆有关。因为它只发生在用户从一个活动转到另一个活动并且像这样重复时

A - >乙

B - >甲

重复。

每次都会更改信息,并且在打开另一个信息时我将A和B设置为关闭。所以用户只能返回一个。但如果你重复这个过程大约20次。当你回来时它将进入家庭应用程序屏幕,然后如果你离开应用程序这样奇怪的行为。

通过查看logcat,它似乎重复了从A到B的次数以下的块。我不知道这是什么或为什么它运行了这么多次。

11-20 15:47:40.236: DEBUG/WifiStateTracker(1505): get mPhoneStateListener
11-20 15:47:41.087: DEBUG/SensorService(1505): enable: get sensor name = MPL accel
11-20 15:47:41.087: DEBUG/Sensors(1505): handle : 4 en: 1, v010.0 - Try to resolve lock issue
11-20 15:47:41.087: DEBUG/Sensors(1505): lock_status = 58
11-20 15:47:41.087: DEBUG/Sensors(1505): Andy: MPLSensor::enable: lock1
11-20 15:47:41.087: DEBUG/Sensors(1505): mEnabled = 0x10
11-20 15:47:41.087: DEBUG/Sensors(1505): set_power_states++: enabled_sensors: 16 dmp_started: 0
11-20 15:47:41.087: DEBUG/Sensors(1505): Before if statment: cs:0 rs:1 en_ped:0 da_ped:0 en_g:0 da_g:0
11-20 15:47:41.087: DEBUG/Sensors(1505): STOP timerirq_1
11-20 15:47:41.107: DEBUG/Sensors(1505): Starting DMP
11-20 15:47:41.127: INFO/(1505): mpu3050_resume: Resuming to 0070
11-20 15:47:41.127: DEBUG/Sensors(1505): Exit: Starting DMP
11-20 15:47:41.127: DEBUG/Sensors(1505): set_power_states--
11-20 15:47:41.127: DEBUG/Sensors(1505): Andy: MPLSensor::enable: unlock1
11-20 15:47:41.127: DEBUG/Sensors(1505): MPLSensor::enable--1
11-20 15:47:41.127: DEBUG/SensorService(1505): SensorDevice::activate--: handle = 0x4, enabled = 0x1
11-20 15:47:41.127: DEBUG/SensorService(1505): enable: sensor->activate return value = 0x0
11-20 15:47:41.127: DEBUG/SensorService(1505): enable: calling mActiveSensors.add(handle, rec) = (0x4, 0x7a40e8)
11-20 15:47:41.127: DEBUG/SensorService(1505): enable: mActiveConnections.indexOf(connection) = 0x0
11-20 15:47:41.127: DEBUG/SensorService(1505): pid=1505, uid=1000
11-20 15:47:41.127: DEBUG/SensorService(1505): disable: get sensor name = MPL accel
11-20 15:47:41.127: DEBUG/SensorService(1505): disable: sensor = 0x326a98
11-20 15:47:41.127: DEBUG/Sensors(1505): handle : 4 en: 0, v010.0 - Try to resolve lock issue
11-20 15:47:41.127: DEBUG/Sensors(1505): lock_status = 63
11-20 15:47:41.127: DEBUG/Sensors(1505): Andy: MPLSensor::enable: lock1
11-20 15:47:41.127: WARN/MPL-sup(1505): MLGetAKMComassStatus, gAKMCompassStatus = 0
11-20 15:47:41.127: DEBUG/Sensors(1505): mEnabled = 0x0
11-20 15:47:41.127: DEBUG/Sensors(1505): set_power_states++: enabled_sensors: 0 dmp_started: 1
11-20 15:47:41.127: DEBUG/Sensors(1505): Before if statment: cs:0 rs:0 en_ped:0 da_ped:0 en_g:0 da_g:0
11-20 15:47:41.127: DEBUG/Sensors(1505): Stopping DMP
11-20 15:47:41.127: INFO/(1505): mpu3050_suspend: suspending sensors to 0000
11-20 15:47:41.127: INFO/(1505): mpu3050_suspend: Will resume next to 0070
11-20 15:47:41.127: DEBUG/Sensors(1505): inside if(s_use_timerirq)
11-20 15:47:41.157: DEBUG/Sensors(1505): set_power_states--
11-20 15:47:41.157: DEBUG/Sensors(1505): Andy: MPLSensor::enable: unlock1
11-20 15:47:41.157: DEBUG/Sensors(1505): MPLSensor::enable--1
11-20 15:47:41.157: DEBUG/SensorService(1505): SensorDevice::activate--: handle = 0x4, enabled = 0x0
11-20 15:47:41.157: DEBUG/SensorService(1505): pid=1505, uid=1000
11-20 15:47:41.167: DEBUG/SensorService(1505): enable: get sensor name = MPL accel
11-20 15:47:41.167: DEBUG/Sensors(1505): handle : 4 en: 1, v010.0 - Try to resolve lock issue
11-20 15:47:41.167: DEBUG/Sensors(1505): lock_status = 58
11-20 15:47:41.167: DEBUG/Sensors(1505): Andy: MPLSensor::enable: lock1
11-20 15:47:41.167: DEBUG/Sensors(1505): mEnabled = 0x10
11-20 15:47:41.167: DEBUG/Sensors(1505): set_power_states++: enabled_sensors: 16 dmp_started: 0
11-20 15:47:41.167: DEBUG/Sensors(1505): Before if statment: cs:0 rs:1 en_ped:0 da_ped:0 en_g:0 da_g:0
11-20 15:47:41.167: DEBUG/Sensors(1505): STOP timerirq_1
11-20 15:47:41.187: DEBUG/Sensors(1505): Starting DMP
11-20 15:47:41.207: INFO/(1505): mpu3050_resume: Resuming to 0070

编辑: 关于DB的

的LogCat输出
11-20 17:47:44.779: DEBUG/Database(6695): dbopen(): path = /data/data/com.package.here/databases/db, flag = 2, file size = 78848
11-20 17:47:44.779: DEBUG/Database(6695): dbopen(): path = /data/data/com.package.here/databases/db, mode: wal, disk free size: 3792 M, handle: 0x3e6cb8
11-20 17:47:44.839: DEBUG/Database(6695): dbclose(): path = /data/data/com.package.here/databases/db, handle = 0x3e6cb8

0 个答案:

没有答案