在我们的应用程序中,我们将pdf文件存储到内部存储中。现在我想要获取它的文件路径并需要存储到数据库中。请告诉我如何获取文件路径。 下面的代码:如何从android内部存储中获取文件的文件路径
public void storeIntoInternalMem(byte[] databytes, String name) {
try
{
FileOutputStream fileOuputStream = openFileOutput(name, MODE_PRIVATE);
fileOuputStream.write(databytes);
fileOuputStream.close();
} catch (IOException e)
{
e.printStackTrace();
}
}
http://stackoverflow.com/questions/17546718/android-getting-internal-storage-absolute-path 指该链接...... –