Getting content from opening associated file Android SDK <p>So, I am associating a particular file type with my app and I want to be able to make it so that when a file of that type is opened, the app opens and is able to retrieve the information from the file. How would I go about doing this? I know I can associate the file by using the following:</p> <pre><code>&lt;action android:name="android.intent.action.VIEW" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;data android:scheme="file" android:host="*" android:pathPattern=".*\\.shrt" android:mimeType="*/*" /&gt; </code></pre> <p>Of course the code is in the manifest file in an intent filter, but getting the text of the file is what is leaving me stuck. I couldn't find any article relating to the subject(only one, which had no solutions).</p>