I registered my application as a player.
<activity android:label="@string/app_name" android:screenOrientation="landscape" android:name=".MiniActivity" > <intent-filter > <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="content"/> <data android:scheme="file"/> <data android:mimeType="video/*"/> </intent-filter>
As I understand it, if you open the file in Windows Explorer, then the file path will be transferred to my program in the intent. And how to get it?