I would like to save a picture in Internal Storage of my app, to make it private. So I did a little research and saw 2 ways to get the directory.
1.With getDir :
File dir = getDir(Environment.DIRECTORY_PICTURES, Context.MODE_PRIVATE);
2.With getFilesDir :
File dir = getFilesDir();
Which is best ? Which returns the location in Internal Storage ?
The way of writing files depends on the way you get your dir ? I am a bit lost since there are many ways to write files in Android.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…