How to show activity of stock panorama with overlay of interface elements?

I successfully display a spherical image using the Google Panorama API

I use the same code as most tutorials:

@Override
    public void onConnected(Bundle bundle){
        Panorama.PanoramaApi.loadPanoramaInfo(GOOGLE_CLIENT,Uri.parse(url)).setResultCallback(
                new ResultCallback<PanoramaApi.PanoramaResult>(){
                    @Override
                    public void onResult(PanoramaApi.PanoramaResult result){
                        if (result.getStatus().isSuccess()){
                            Intent intent = result.getViewerIntent();
                            if (intent != null){
                                startActivity(intent);
                            }
                        }
                    }
                });
    }

In fact, I have not only one sphere, but also 5. I would like to be able to switch between images by clicking on menu items superimposed on top of the images.

Since the actual activity showing the scope is not determined by me, but begins with the intent obtained from the success callback, I have no idea how I can achieve this, and the API does not seem to offer much more features.

I think I can’t even show the dialogue on top of the sphere.

Do I have any ideas for me? I would be very grateful

. SO post.

-1
1

: API Google - Google VR - 360 Β° , , .

. API - , , VR API, , . : , Google Panorama API Google Play, .

PS: , PanoramaGL OpenPanodroid. , , Google.

+1

Source: https://habr.com/ru/post/1569363/


All Articles