Get absolute path to a file create by openFileOutput method in Android
can you tell me what the full path of开发者_如何学运维 my xml file, which is created through the following method:
fileos = openFileOutput("new.xml", MODE_PRIVATE);
Thank you for your help.
Even better, Android will tell you that by itself. :-) Use the following code:
getFileStreamPath("new.xml");
The SDK says:
Returns the absolute path on the filesystem where a file created with openFileOutput(String, int) is stored.
精彩评论