Get uri from image in Android
问题 I am trying to get the Path from an image to send it later to a server. The problem is when I try to get it, my code doesn't work (you will see there is an extra } . That is because the code from the OnCreate ends and then I worte the other functions): enviar.setOnClickListener(new View.OnClickListener() { String datos=""; //Bundle extras=getIntent().getExtras(); @Override public void onClick(View view) { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*");