How to send an image from a database via mail

馋奶兔 提交于 2019-12-04 16:50:52
chikka.anddev
  1. Store that bitmap on your filesystem
  2. Then use following code to attach that file to your email:

    File F = new File("/path/to/your/file.png");
    Uri U = Uri.fromFile(F);
    Intent i = new Intent(Intent.ACTION_SEND);
    i.setType("image/png");
    i.putExtra(Intent.EXTRA_STREAM, U);
    startActivity(Intent.createChooser(i,"Email:"));
    
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!