Joh*_*y19 7 android location unmarshalling parcel fusedlocationproviderapi
在我的服务中,我已将FusedLocation请求位置设置为将位置发送到静态BroadcastReceiver
public static class LocationReceiver extends BroadcastReceiver {
private String TAG = this.getClass().getSimpleName();
private LocationResult mLocationResult;
@Override
public void onReceive(final Context context, Intent intent) {
try {
Log.d("Test", "has result = " + LocationResult.hasResult(intent));
...
Run Code Online (Sandbox Code Playgroud)
在我们的崩溃报告中,我们有许多Anroid 4.4.2用户(但不是所有用户而不是所有时间......),其中LocationResult.hasResult(intent); 抛出一个
java.lang.RuntimeException:parcel android.os.Parcel@2ea0e34c:在android.os.Parcel.readArrayMapInternal(Parcel.java)的android.os.Parcel.readValue(Parcel.java:2080)的偏移248处解组未知类型代码7274595 :2314)在android.os.Bundle.unparcel(Bundle.java:249)的android.os.Bundle.containsKey(Bundle.java:299)在android.content.Intent.hasExtra(Intent.java:4443)的com .google.android.gms.location.LocationResult.hasResult(未知来源)
我没有任何4.4.2设备,在模拟器上我无法重现/不知道如何重现或是什么原因引起的?
有人已经看过了吗?我应该试试吗?
| 归档时间: |
|
| 查看次数: |
364 次 |
| 最近记录: |