I want to keep my app required files inside a directory under internal storage. in the previous stage i used externalStorageDirectory to store my data. now i am using the below code to refer my external directory
Environment.getExternalStorageDirectory()+"/mydirectory";
I need an equivalant code to refer my directory in the internal directory, can anybody help me...thanks,
Solution:
getFilesDir()+"/mydirectory";
thanks for all of your suggestion and help.
Use
getFilesDir()
for that.From the docs:
To answer your comment, I'll quote the docs docs:
This one i m using in one of my application and which creates the directory in external if it is mounted or not exists it will create in internal storage
You can use this: