Files ==> ==>
As I'm showing in this picture flow, my image(960-Minimalism.jpg) is inside internal phone storage and I'm trying to get it's path for further use through File class.
What I have tried yet
1st:
String filePath = MainActivity.this.getFilesDir().getAbsolutePath();
File file = new File(filePath, "960-Minimalism.jpg");
2nd:
File file = new File(Environment.getExternalStorageDirectory()+ "/Android/data/"+ getApplicationContext().getPackageName()
+ "/Files/"+"960-Minimalism.jpg");
The extreme hard code way:
File file = new File("/data/data/com.example.net/files/","960-Minimalism.jpg")
Exception here same as 1st..
I know I'm missing something or doing something wrong here but unable to find out till now.
Any Idea..
EDIT
Please don't think I have three problems . The above are my tried solutions which not worked. But problem is one that I want to fetch the image path which is in my internal storage memory. That's why I deleted my exceptions here.