Hello I'm new to android studio I have built an app when you take a photo from the camera app see it in an ImageView and share it
I have made a share button:
case R.id.shrbtn:
startshare();
break;
the share button go to this method to start sharing the photo I have added internet permission and the button don't do anything:
private void startshare() {
Bitmap bmp=viewToBitmap(Image,Image.getWidth(),Image.getHeight());
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("image/*");
Uri phototUri = Uri.parse(String.valueOf(Bitmap.createBitmap(bmp)));
shareIntent.setData(phototUri);
shareIntent.putExtra(shareIntent.EXTRA_STREAM,phototUri);
startActivity(Intent.createChooser(shareIntent, "Share Via"));
}
can anyone tell me what is missing?