Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/184.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android:StreetView意图导致ActivityNotFoundException_Android_Google Maps_Android Intent_Google Api_Google Street View - Fatal编程技术网

Android:StreetView意图导致ActivityNotFoundException

Android:StreetView意图导致ActivityNotFoundException,android,google-maps,android-intent,google-api,google-street-view,Android,Google Maps,Android Intent,Google Api,Google Street View,我正在尝试将streeview添加到我的android应用程序中,但我一直遇到以下异常 01-06 18:35:35.810: E/AndroidRuntime(2497): FATAL EXCEPTION: main 01-06 18:35:35.810: E/AndroidRuntime(2497): java.lang.RuntimeException: Unable to start activity ComponentInfo{glasgo.activities/glasgo.acti

我正在尝试将streeview添加到我的android应用程序中,但我一直遇到以下异常

01-06 18:35:35.810: E/AndroidRuntime(2497): FATAL EXCEPTION: main
01-06 18:35:35.810: E/AndroidRuntime(2497): java.lang.RuntimeException: Unable to start activity ComponentInfo{glasgo.activities/glasgo.activities.specific_event_activity$MapTab}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=google.streetview:cbll=55867650,-4257630&cbp=1,180,,0,1.0 }
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1768)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.ActivityThread.startActivityNow(ActivityThread.java:1598)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:654)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.widget.TabHost.setCurrentTab(TabHost.java:326)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:132)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:455)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.view.View.performClick(View.java:2502)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.view.View$PerformClick.run(View.java:9108)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.os.Handler.handleCallback(Handler.java:587)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.os.Handler.dispatchMessage(Handler.java:92)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.os.Looper.loop(Looper.java:130)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.ActivityThread.main(ActivityThread.java:3835)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at java.lang.reflect.Method.invokeNative(Native Method)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at java.lang.reflect.Method.invoke(Method.java:507)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at dalvik.system.NativeStart.main(Native Method)
01-06 18:35:35.810: E/AndroidRuntime(2497): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=google.streetview:cbll=55867650,-4257630&cbp=1,180,,0,1.0 }
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1409)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.Activity.startActivityFromChild(Activity.java:3067)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.Activity.startActivityForResult(Activity.java:2847)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.Activity.startActivity(Activity.java:2933)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at glasgo.activities.specific_event_activity$MapTab.onCreate(specific_event_activity.java:169)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-06 18:35:35.810: E/AndroidRuntime(2497):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722)
我正在使用GreenDroid库,我的地图视图位于GreenDroid使用其选项卡所需的静态类中

    public static class MapTab extends MapActivity {
    private MapController controller;
    private MapView mapView; 

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        // code to get a map with zoom controls and double tap support
        setContentView(R.layout.map_with_zomm_and_tap);
        mapView = (MapView) findViewById(R.id.mapview);
        controller = mapView.getController();
        // some other code which runs fine

        Intent streetViewIntent = new Intent(Intent.ACTION_VIEW, Uri.parse 
                     ("google.streetview:cbll=55867650,-4257630&cbp=1,180,,0,1.0")); 
        startActivity(streetViewIntent); 
        }
我目前正试图让它显示街景,然后我将创建一个按钮,在街景和普通地图视图之间切换

我有一个映射键,能够在我添加的清单中显示应用程序中的普通映射视图 使用android库:name=“com.google.android.maps”


任何帮助都将不胜感激。

结果表明,这是由于设备或模拟器上未安装街景。

那么,您如何检查设备/模拟器上是否有街景应用程序?