How to pick a file from absolute path instead of gallery in Android
I am referring to this example for wifi direct
The code to select a file from gallery is
protected static final int CHOOSE_FILE_RESULT_CODE = 20;
Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
intent.setType("image/*");
startActivityForResult(intent, CHOOSE_FILE_RESULT_CODE);
Instead of this, I want to pick an image from absolute path like this
File f = new File(Environment.getExternalStorageDirectory() + "/test/testimage.jpg");
How can such an image be picked and submitted to intent in android?