How to use “Share image using” sharing Intent to share images in android?

Bitmap icon = mBitmap; Intent share = new Intent(Intent. ACTION_SEND); share. SetType("image/jpg"); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); icon.

Compress(Bitmap.CompressFormat. JPEG, 100, bytes); File f = new File(Environment. GetExternalStorageDirectory() + File.

Separator + "temporary_file. Jpg"); try { f.createNewFile(); FileOutputStream fo = new FileOutputStream(f); fo. Write(bytes.toByteArray()); } catch (IOException e) { e.printStackTrace(); } e.

PutExtra(Intent. EXTRA_STREAM, Uri. Parse("file:///sdcard/temporary_file.

Jpg")); startActivity(Intent. CreateChooser(share, "Share Image")).

Button shareButton = (Button) findViewById(R.id. Intent sharingIntent = new Intent(Intent. Uri screenshotUri = Uri.

Button shareButton = (Button) findViewById(R.id. Intent sharingIntent = new Intent(Intent. Uri screenshotUri = Uri.

InputStream stream = getContentResolver().

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions