i want to bypass Intent.ACTION_PICK to do so i need to insert content uri but i have string with url.
i need to convert this format :
/mnt/sdcard/Movies/Your_voice/Your_voice080513_141510.mp4
to uri format :
content://media/external/video/media/2308
i find this :
How to convert a file:// uri into content:// uri?
and this to image Convert file uri to content uri
update :
I have a method that send file, this method gets content uri.
so to use this method i'm using intent because the output is content uri.
i'm using this intent :
Intent intent = new Intent(Intent.ACTION_PICK);
intent.setType("video/*");
startActivityForResult(intent, RESULT_PICK_IMAGE_CROP);
this intent open folder, the user pick folder and after video file
my previous Q : intent ACTION_PICK in specific folder
the problem is that i need just specific folder , but i red here
Using Intent.ACTION_PICK for specific path
this is not possible.
so i try to convert The path that I have to content url