How to open file using Intents programatically?
<p>I have following code for opening files programatically:</p>

<pre><code>    Uri path = Uri.fromFile(file);
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(path, type);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
</code></pre>

<p>But now I need to set MIME-type of file, and it isn't universal method for all files. Is there any mean for opening file through Intent without defining type? </p>
