how to share image through inten :     how to image share though intent

enter code here

 





Bundle intent = getIntent().getExtras();`
        cardView=(CardView)findViewById(R.id.card);
        final String quary = intent.getString("Query1");

        db = new DataBaseHelper(Image.this);

        Cursor c = db.getData(quary);
        if (c.getCount() != 0) {
            c.moveToFirst();
            do {

                image = c.getString(5);
                title=c.getString(3);

            } while (c.moveToNext());
        }

        txt.setText(title);
        img.setImageDrawable(getResources().getDrawable(getResources().getIdentifier(image, "drawable", getPackageName())));
