Search code examples
androidphotosphere

How can I a load a Photosphere in my app?


I made this question two days ago, and ianhanniballake replied me with the right solution. Now, I am trying to follow this example.

Now, it's not loading the image.

I changed the line:

Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.pano1);

for the line:

Uri.parse("http://s24.postimg.org/d81cxh2sl/pano1.jpg".toString());

What can it be?


Solution

  • Looking at the Android SDK you cannot use a http resource for that URI:

    the URI of the panorama to load info about. May be a file:, content:, or android_resource: scheme.

    So you need to download the image first before you can process it. Check this link for a tutorial on this.