I have searched all over the net and tried all the code But I am not getting a proper way to transfer my image from one activity to another activity. here is my Activity A:
Intent intent = new Intent(getApplicationContext(),Greeting.class); //Greeting is Activity 2
intent.putExtra("editvalue", edit.getText().toString());
intent.putExtra("path", ImageURI.toString()); //Got uri in the form of file:///storage/emulated/0/zedge/wallpaper/Incredible_quotes-wallpaper-10355947.jpg
startActivity(intent);
Here is how I retrieve my image in Activity 2:
Uri u=Uri.parse(intent.getStringExtra("path"));
Log.d("TAGGG222",u.toString()); //printing the sane URI as above.
imageview.setImageURI(u);
I am missing something and please if possible guide me with the correct way? Thank you