ContentUris support when using expansion files in Android app

  • Hi,

    What is the correct way to link to assets contained in an uncompressed Android expansion file

    I have videos, hotspot icons and panorama tiles in the expansion file but only the videos work. When using a regular website instead of a krpano app assets have no problem loading in the way I'm trying to use them with krpano.

    I have made the following changes:


    video sample:

    from:

    <scene name="pano1234"
    ...
    scenevideourl="%FIRSTXML%/pano1234/video.mp4"
    ...
    >

    to:
    <scene name="pano1234"
    ...
    scenevideourl="content://com.domain.myapp/main_expansion/video.mp4"
    ...
    >

    and in the case of the hotspot:
    from:
    <style name="icon"
    ...
    url="%FIRSTXML%/spots/spot.png"
    ...
    />

    to:

    <style name="icon"
    ...
    url="content://com.domain.myapp/main_expansion/spot.png"
    ...
    />


    I'm using cordova 7.1
    android 6 to 8
    and this plugin: https://github.com/agamemnus/cordova-plugin-xapkreader

    Thanks in advance :)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!