S
S
StreetRacer2017-03-05 15:14:12
Android
StreetRacer, 2017-03-05 15:14:12

How to open a file at the desired path in Android?

In general, there are two projects, the first path to the file is /data/data/com.project1.folder1/file.xml
It is necessary to open this file in the second application. How can I do that? found options only without specifying the path, i.e. only from the folder of the application itself open files.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Ne-Lexa, 2017-03-05
@NeLexa

If the other application is yours, try creating a file with Context.MODE_WORLD_WRITEABLE .
The main thing to remember is that it is deprecated and not recommended.
And for interaction look towards ContentProvider .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question