Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I retrieve a picasa photo from a built-in gallery?

I want to retrieve the photos from built-in Android gallery calling ACTION_PICK Intent. I have a problem with Picasa's images. I have used the code to this link, but it don't work (the File object don't exist). Any idea, please.

like image 526
Michel Foucault Avatar asked Jan 09 '12 22:01

Michel Foucault


People also ask

How do I get my old photos from Picasa?

After Picasa retired, its Web Albums are no longer available. But if you want to find old Picasa photos in Web Album, recover from Google Photos. Simply log in to your Google Photos and view the album archives. You will find your old Picasa photos but their tags, comments, and captions might be missing.

Where are my Picasa photos stored?

Picasa stores data about pictures in 3 locations: the photo files themselves, inside . picasa. ini files, and in the Picasa database. In the photo files themselves: if there exists standards how to put the data in the photo file (.

Where did Picasa albums go?

Picasa Web Albums. Each Google account has a web album attached to it. You can get to it via Picasa Web Albums or via the albums in your Google+, as they are the same photos and albums.


1 Answers

ACTIVITYRESULT_CHOOSEPICTURE is the int you use when calling startActivity(intent, requestCode);

public void onActivityResult(int requestCode, int resultCode, Intent data) {
  if(requestCode == ACTIVITYRESULT_CHOOSEPICTURE) {
    BitmapFactory.Options options = new BitmapFactory.Options();
    final InputStream is = context.getContentResolver().openInputStream(intent.getData());
    final Bitmap bitmap = BitmapFactory.decodeStream(is, null, options);
    is.close();
  }
}
like image 62
Jeremy Edwards Avatar answered Sep 28 '22 14:09

Jeremy Edwards