Not every device will have "com.google.android.apps.uploader" so be careful...
Hi, I am looking samples to upload a selected picture from my device > to Picasa Album. Is there any way? > http://lmgtfy.com/?q=android+tutorial+upload+to+picasa Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, May 17, 2012 at 2:32 AM, Lex Luthor <[email protected]> wrote: > Hi, I am looking samples to upload a selected picture from my device > to Picasa Album. Is there any way? > I tried this snippet: > Intent temp = new Intent(Intent.ACTION_SEND); > temp.setType("image/png"); > temp.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); > temp.putExtra(Intent.EXTRA_STREAM, fileUri); > temp.setComponent(new ComponentName( > "com.google.android.apps.uploader", > > "com.google.android.apps.uploader.clients.picasa.PicasaSettingsActivity")); > try { > startActivity(temp); > } catch (android.content.ActivityNotFoundException ex) > { > Log.d(TAG, "Errore upload Picasa"); > } > which works, but in this way I can't insert a comment (only a legendy > that will be displayed above the pic), while to insert a comment I > have to do it manually from browser (after upload). > I'd like to know if there's a way to get the image URL after uploading > it. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

