Try this snippet.
If its wat u need go ahead..
otherwise post back with wat u require apart from this.
Intent temp = new Intent(Intent.ACTION_SEND);
temp.setType("image/jpeg");
temp.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
temp.putExtra(Intent.EXTRA_STREAM, imageURI);
temp.setComponent(new ComponentName(
"com.google.android.apps.uploader",
"com.google.android.apps.uploader.picasa.PicasaUploadActivity"));
startActivityForResult(temp, 0);
since i did this long time ago, i sont remember the exact permissions
required...
<uses-permission android:name="android.permission.GET_ACCOUNTS"></
uses-permission>
<uses-permission
android:name="com.google.android.googleapps.permission.GOOGLE_AUTH"></uses-permission>
but its either both or one of the above...
On Wed, Sep 23, 2009 at 6:13 PM, Aniruddh Bajirao <[email protected]>wrote:
> If you want to get album data and upload pictures to Picasa, you may find
> the picasaUploadActivity intent useful. It will use the same authenticated
> token as the phone itself and upload to the associated Picasa account. And
> you just pass it the content uri for the image.
> However the source for the uploader is not available. So u can use the
> intent but not change its source.
>
> On Sep 23, 2009 6:30 AM, "Raman" <[email protected]> wrote:
>
>
> Hi All,
>
> I have a problem statement. I thought I would easily find the solution
> of this considering that this should be so common. But, going through
> the pages I found that probably not many programmers have done this
> before.
>
> I want to use Picasa Web Albums Data API with Android. Can anyone tell
> me how to do that.
>
> I know how to use Picasa Web Albums Data API with a normal PC
> application JAVA code.
> And also, I know how to write code for Android Applications.
> But, combining the two is something new. First, I did not know which
> group should I choose to post this. Now, I am doing it on both the
> groups.
> Please help me resolve this issue.
>
> Thanks
> - Raman
>
>
> >
>
--
Regards,
Sujay
Samuel Goldwyn<http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
- "I'm willing to admit that I may not always be right, but I am never
wrong."
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---