Answer the question
In order to leave comments, you need to log in
How to open a file in another application on android?
I need to solve this problem: I want to be able to transfer any file from my application to another application that can open it. For example, open a photo in the gallery. How to do it?
Tried like this:
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.fromFile(dir));
intent.setType("*/*");
startActivity(intent);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question