Custom Image Display with intent
<p>I have an image in my local SDCard which I open using the code below. My problem is that some default options like sharing comes with the intent viewer (which i don't want). e.g. share with dropbox, bluetooth etc.</p>

<p>Please help....</p>

<pre><code>void displayFile(String filepath){
       File f  = new File(filepath);
       Uri path = Uri.fromFile(f); 
       Intent intent = new Intent(Intent.ACTION_VIEW);  
       intent.setDataAndType(path, mimeTypeFromExtension);  
       intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
       startActivity(intent);
}
</code></pre>
