Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
NateJ_Wave's avatar
NateJ_Wave
Explorer
2 years ago

Opening the Quest Files app from within my app

We have written Java code that correctly inserts jpgs into the Quet media gallery. The code is very much what you would do in any Android app,

 

 

public void run()
{
				Bitmap bitmap = BitmapFactory.decodeFile(location);
				MediaStore.Images.Media.insertImage(getContentResolver(), bitmap, title, description);
}

 

 

If you then manually go into the Files app you then will see the new image under Recents.

However, that requires the user to do a few steps - pressing the Oculus menu button on their controller, finding the Files app, etc. We would like to be able to open the Files app automatically.

Something like this brings up a blank or unusable Files app that appears to be different than one which the user can access:

 

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setType("image/*");
startActivity(intent);

 

What is the best way to open the correct Files app on a Quest? We are specifically using a Quest 3 with the latest updates.

No RepliesBe the first to reply