android - Is there a way to load a panoramic photosphere in an ImageView? -


i know there galleries sphereshare.net open , share panoramic photos in form of spheres. but, should way load sphere in app?

you must use panoramaclient (which part of google play services) open photosphere photos.

an example of how can found on this android developer blog post:

// listener called information given panorama. onpanoramainfoloadedlistener infoloadedlistener =   new onpanoramainfoloadedlistener() {     @override     public void onpanoramainfoloaded(connectionresult result,                                      intent viewerintent) {         if (result.issuccess()) {             // if intent not null, image can shown             // panorama.             if (viewerintent != null) {                 // use given intent start panorama viewer.                 startactivity(viewerintent);             }         }          // if viewerintent null, image not viewable panorama.     } };  // create client instance , connect it. panoramaclient client = ... ...  // once connected client, initiate asynchronous check on whether // image viewable panorama. client.loadpanoramainfo(infoloadedlistener, panoramauri); 

Comments