txt_pathShow = (TextView) findViewById(R.id.txt_path);
btn_video = (Button) findViewById(R.id.btn_video);
btn_video.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
myFileIntent = new Intent(Intent.ACTION_GET_CONTENT);
myFileIntent.setType("video/*");
startActivityForResult(myFileIntent, 10);
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
switch (requestCode){
case 10:
if (resultCode==RESULT_OK){
String path = data.getData().getPath();
txt_pathShow.setText(path);
}
break;
}
}
Currently it recovers the route in this format: documents/images/image:62. but I would like it to recover me in this other way: /documentos/images/foto.jpg