Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>by design other applications cannot access your resources. its the same the otherway.</p> <p>so you have two options.</p> <p><strong>Easyway:</strong></p> <p><strong>copy your resource (manualy)</strong> to the sdcard and then sent the uri</p> <p>this is how your URI might look </p> <pre><code>Uri.parse(Environment.getExternalStorageDirectory() + "/android/com.my.app/.cache/foo.jpg"); </code></pre> <p><code>Environment.getExternalStorageDirectory()</code> abstracts hard coding or mount the <code>.cache</code> will be a hidden folder and if you don't want your temp image to show up in gallery images then you need to create a <a href="https://stackoverflow.com/questions/4110774/avoid-images-to-be-processed-by-the-thumbnail-service">.nomedia</a> empty file in the <code>.cache</code> folder</p> <p>you might need to add the sdcard permission</p> <pre><code>&lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; </code></pre> <p><strong>the Hardway:</strong></p> <p>your need to implement a <a href="http://code.google.com/p/rowanandroid/source/browse/trunk/Rowan/src/rowan/application/quickaccess/FileContentProvider.java?spec=svn6&amp;r=6" rel="nofollow noreferrer">FileContentProvider</a> using a <a href="http://developer.android.com/guide/topics/providers/content-providers.html" rel="nofollow noreferrer">ContentProvider</a> </p> <p>supply you custom URI and supply your file from your FileContentProvider.Open, you may need to implement <code>mime</code> and other methods aswell for this</p> <p><strong>UPDATE</strong> you may also need to register your content provider in the manifest. <a href="https://stackoverflow.com/questions/5129038/android-open-pdf-in-external-application/5442250#5442250">Android - open pdf in external application</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload