How can i find out if my app is installed on SD card
<p>I would like something do something like:</p>

<pre><code>val cacheDir = if (installedOnSD)
   {
   getContext.getExternalCacheDir
   }
else
   {
   getContext.getCacheDir
   }
</code></pre>

<p>and I am a bit at a loss for the <strong>installedOnSD</strong> part. Can anybody point me to the right direction?</p>

<p>PS: Pseudo-Code sample in Scala, just for the fun of it.</p>
