我有一个应用程序,其中加速度计/陀螺仪/线性加速度/纬度/经度读数被发送到服务器以跟踪用户。
当移动设备没有互联网连接时,我面临这个问题,数据保存在本地数据库中。但是,当设备进入网络时,数据与服务器同步。服务器收到读数后,用户的位置跟踪数据(加速度计/陀螺仪/线性加速度/纬度/经度读数)每 1 分钟通过电子邮件发送给用户。这个问题是在冰淇淋三明治之后面临的,即 ANDROID- 4及以上。此外,在 DDMS 上运行应用程序时出现此错误。请参阅下面的 logcat 文件。
11-29 11:37:37.336: D/Vold(81): Volume sdcard state changing 3 (Checking) -> 4 (Mounted)
11-29 11:37:37.347: E/VoldConnector(250): NDC Command {114 volume mount /storage/sdcard0} took too long (3737ms)
11-29 11:37:37.375: W/ShutdownThread(250): Result code 0 from MountService.shutdown
11-29 11:37:37.715: D/MountService(250): sendStorageIntent Intent { act=android.intent.action.MEDIA_UNSHARED dat=file:///storage/sdcard0 (has extras) }
11-29 11:37:37.730: I/PackageManager(250): Updating external media status from unmounted to unmounted
11-29 11:37:37.730: D/MountService(250): volume state changed for /storage/sdcard0 (shared -> unmounted)
11-29 11:37:37.734: D/MountService(250): sendStorageIntent Intent { act=android.intent.action.MEDIA_UNMOUNTED dat=file:///storage/sdcard0 (has extras) }
11-29 11:37:37.734: I/StorageNotification(336): Media {/storage/sdcard0} state changed from {shared} -> {unmounted}
11-29 11:37:37.738: D/VoldCmdListener(81): volume shared /storage/sdcard0 ums
11-29 11:37:37.765: D/MountService(250): volume state changed for /storage/sdcard0 (unmounted -> checking)
11-29 11:37:37.769: D/MountService(250): sendStorageIntent Intent { act=android.intent.action.MEDIA_CHECKING dat=file:///storage/sdcard0 (has extras) }
11-29 11:37:37.820: I/ActivityManager(250): Start proc android.process.media for broadcast com.android.providers.media/.MediaScannerReceiver: pid=24156 uid=10024 gids={1015, 1023, 1024, 1028, 2001, 3003, 3007}
11-29 11:37:37.820: D/MountService(250): volume state changed for /storage/sdcard0 (checking -> mounted)
11-29 11:37:37.824: I/PackageManager(250): Updating external media status from unmounted to mounted
11-29 11:37:37.832: D/MountService(250): sendStorageIntent Intent { act=android.intent.action.MEDIA_MOUNTED dat=file:///storage/sdcard0 (has extras) }
11-29 11:37:37.863: D/VoldCmdListener(81): asec list
11-29 11:37:37.894: I/StorageNotification(336): Media {/storage/sdcard0} state changed from {unmounted} -> {checking}
11-29 11:37:37.898: I/StorageNotification(336): Media {/storage/sdcard0} state changed from {checking} -> {mounted}
11-29 11:37:38.082: I/ShutdownThread(250): Performing low-level shutdown...
: E/(): Device disconnected