android - How to create folder in internal storage with I add more bitmaps inside the folder? -
i want create folder in internal storage number of images inside folder. can do?
to create folder inside internal storage use getfilesdirectory();
consider example:
for creating folder named myfolder in external storage:
file myfolder = new file(environment.getexternalstoragedirectory()+"/myfolder"); if(!myfolder.isexists) myfolder.mkdirs();
for creating same in internal storage use:
file myfolder = new file(context.**getfilesdirectory()**+"/myfolder"); if(!myfolder.isexists) myfolder.mkdirs();
now can add files folder wish! refer myfolder folder object.
hopes clear..
Comments
Post a Comment