title: How to find the file passed to a Delphi app on Android?
body: <p>We must write an Android app who knows how to open .xyz files.</p>
  
  <p>However when we assign the .xyz files to our application, and after that we tap on an .xyz file in the Android's File Explorer, the application is properly started but the program doesn't see the file name as a parameter.</p>
  
  <p>The code </p>
  
  <pre><code>  ShowMessage(ParamStr(0)); //for debug...
    ShowMessage(ParamStr(1));
  </code></pre>
  
  <p>Instead of showing in message boxes the application's full path and after this the full path of the tapped (clicked) file name it shows two empty strings.</p>
  
  <p><strong>How can we get the full path of the tapped (clicked) file?</strong></p>
  
  <p><em>UPDATE:</em> </p>
  
  <p>(A part of) The manifest looks like this:</p>
  
  <pre><code>    &lt;activity android:name="com.embarcadero.firemonkey.FMXNativeActivity"
              android:label="MMBook"
              android:configChanges="orientation|keyboardHidden"&gt;
          &lt;!-- Tell NativeActivity the name of our .so --&gt;
          &lt;meta-data android:name="android.app.lib_name"
              android:value="MMBook" /&gt;
          &lt;intent-filter&gt;  
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt; 
          &lt;intent-filter&gt;
              &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=".*\\.mma" android:mimeType="*/*"  /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>