Ich bekomme unter Fehler, wenn ich versuche, native Google Maps App zu starten.strikte Richtlinienverletzung auf integrierte Google-Apps
ich diesen Code auf, klicken Sie auf Linearlayout ausführen
Uri gmmIntentUri = Uri.parse(geoInfo);
Intent mapIntent = new Intent(Intent.ACTION_VIEW, gmmIntentUri);
mapIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mapIntent.setPackage("com.google.android.apps.maps");
if (mapIntent.resolveActivity(context.getPackageManager()) != null) {
context.startActivity(mapIntent);
}
--error ich
04-02 02:29:52.572 24137-24137/com.google.android.apps.maps D/StrictMode﹕ StrictMode policy violation; ~duration=184 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=31 violation=2
at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1137)
at libcore.io.BlockGuardOs.fstat(BlockGuardOs.java:132)
at libcore.io.IoBridge.open(IoBridge.java:445)
at java.io.FileInputStream.<init>(FileInputStream.java:76)
at android.app.ContextImpl.openFileInput(ContextImpl.java:961)
at android.content.ContextWrapper.openFileInput(ContextWrapper.java:176)
at com.google.android.apps.gmm.shared.c.h.a(PG:149)
at com.google.android.apps.gmm.shared.net.a.b.a(PG:587)
at com.google.android.apps.gmm.map.n.f.a(PG:323)
at com.google.android.apps.gmm.base.app.d.<init>(PG:540)
at com.google.android.apps.gmm.base.app.GoogleMapsApplication.onCreate(PG:84)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4553)
at android.app.ActivityThread.access$1500(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
Wie das ich lösen?
danke ... aus irgendeinem Grund startet es die Karten-App manchmal nicht. Die App friert einfach ein. – GJain
@ user2384694: Wenn Sie in der Lage sind, einen reproduzierbaren Testfall zu erstellen, könnten Sie versuchen, einen Fehlerbericht mit dem Google Maps-Team einzureichen. – CommonsWare