Force scan files after taking photo

前端 未结 4 1386
星月不相逢
星月不相逢 2020-12-03 09:34

on api level 4 (android 1.6), after taking photo using:

Intent intent = new Intent(\"android.media.action.IMAGE_CAPTURE\");
File photo = new File(Environment         


        
4条回答
  •  情书的邮戳
    2020-12-03 10:02

    after taking picture try calling insert() function of ContentResolver passing the information about the picture.

    public final Uri insert (Uri url, ContentValues values)
    

    It will actually add the picture to the database and create picture's thumbnail image for you. It will also be added to the thumbnail database. Hope this helps!

提交回复
热议问题