I have two android applications created via android studio. From application1, I try to send a picture to application2 and view it.
For this, from app1 one I passed the image via intent to application2 as follows:
Intent imgIntent = new Intent();
imgIntent .setAction(Intent.ACTION_SEND);
Uri uriToImage = Uri.parse("android.resource://com.example.appname/" + R.drawable.pic_png);
imgIntent .putExtra(Intent.EXTRA_STREAM, uriToImage);
imgIntent .setType("image/*");//image/jpeg
startActivityForResult(imgIntent , REQUEST_CODE);
How can I view the image sent via intent in application2 ? If we send a text, we can get it as:
getIntent().getExtras().getString("textvalue");
I am a newbie in android platform. Please help me.Thanks in advance...