Monday, February 17, 2014

android phone pictures into albums


Trying to save a picture to your phone photo album,
Online examples are as follows:

MediaStore.Images.Media.insertImage (getContentResolver (), bitmap, "qrPic", "");
sendBroadcast (new Intent (Intent.ACTION_MEDIA_MOUNTED, Uri.parse ("file :/ /" + Environment.getExternalStorageDirectory ())));


Saved to the phone is the size of 0 empty picture.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
This is the scanning process, the picture is written locally, and then call this.
Reply:
cited a floor weixuejun891229 reply:
This is the scanning process, the picture is written locally, and then call this.



How to save the image to your local Yeah, it is saved to the phone album, online search did not go there
Reply:
Search for a day, and still can not find how to do
Reply:
First look, opinions reserved
Reply:
Now save a picture to the sd card, and the next dicm the root directory, but how is an empty album that, does anyone know the reason that
Reply:
reference to the second floor jnkaixin2009 reply:
Quote: references to a floor weixuejun891229 reply:

This is the scanning process, the picture is written locally, and then call this.



How to save the image to your local Yeah, it is saved to the phone album, online search did not go there


The picture is written by flow SD card, and then call the Uri uri = Uri.parse ("file :/ /" + path) ;/ / path of the image path
context.sendBroadcast (new Intent (Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, uri));
So you can see in the gallery inside it
Reply:
Xie



reference to the 6th floor weixuejun891229 reply:
Quote: references to the second floor jnkaixin2009 reply:

Quote: references to a floor weixuejun891229 reply:

This is the scanning process, the picture is written locally, and then call this.



How to save the image to your local Yeah, it is saved to the phone album, online search did not go there


The picture is written by flow SD card, and then call the Uri uri = Uri.parse ("file :/ /" + path) ;/ / path of the image path
context.sendBroadcast (new Intent (Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, uri));
So you can see in the gallery inside it

No comments:

Post a Comment