Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Monsieur_D's avatar
Monsieur_D
Honored Guest
7 years ago

Oculus Go file association

I want to open all files of my type (.xxx) with my application. It's a renamed zip file.

For that I have tried a lot of thing in my AndroidManifest.xml file. For now, I have all these intent filters in the "com.unity3d.player.UnityPlayerActivity" activity :
      <intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
<data android:host="*" />
<data android:pathPattern=".*\\.xxx" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="file" />
<data android:host="*" />
<data android:pathPattern=".*\\.xxx" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/x-compressed" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/x-zip-compressed" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/zip" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="multipart/x-zip" />
</intent-filter>
I have tried to download a .xxx file with the oculus browser and then click on it on the right panel. Nothing happened ...
I also tried with a zip file. Nothing happened ...

What am I doing wrong ?
Thanks in advance.

Unity 2018.3.9f1
Oculus SDK 1.31

1 Reply

Replies have been turned off for this discussion
  • I want to do exactly the same, have you got a solution since you open the thread ?