android - write private file to internal storage -


i trying write files on internal storage.

i saw thefileoutputstream fos = openfileoutput(filename, context.mode_private); on data storage , understood file private application.

but problem can open file without path, first opened new directory file file.mkdir(), now, how write file private ?

i saw thefileoutputstream fos = openfileoutput(filename, context.mode_private); on data storage , understood file private application.

correct. private default.

but problem can open file without path, first opened new directory file file.mkdir(), now, how write file private ?

your files create in subdirectories off of in getfilesdir() private default -- not have special make them private.


Comments