I'm programming an Android application which synces pictures to Google Picasa. The problem is that whenever a user wants to upload a picture to his account, but doesn't have the profile created just yet, I get an error about "Unknown user.".
When a visit google picasa web I get the following picture asking me to create a profile:
Then I have to create a profile in order to be able to upload pictures from an Android phone. But the problem is that I don't want this step to be done by every user manually, which isn't a very good user experience, so I'm asking you if there's a way to automatically create a profile.
So I would present a new Activity to a user saying if we wants to create a profile and if he clicks yes, I would automatically send a GET request to do it. My question is the following: is there any such URI that I can use that would automatically create Google Profile when requested.
I found a link like this, but clicking on it sends me to Google+ page where additional stuff is needed.
https://profiles.google.com/me/createprofile/
The developer's guide doesn't say nothing about this problem: http://code.google.com/apis/picasaweb/docs/2.0/developers_guide_protocol.html#CreatingAccount
I guess the other option would be to get the html+javascript+css code of the webpage presented on the picture and showing that in a WebView. The problem is that I can't just use some URL within the WebView, because I also have an OAuth token already and don't want the user to relogin just to create their profile.
Why don't you use Google Sync. Your user already has a Google Account (from market). You could just ask for permission to use his account. Then you can use anything that needs Google account
Related
How to use google profile picture in another android application without google login?
I want, when user install my application and open it, then automatic show his/her google profile picture. Then click his/her picture and login with his/her google account. how can i do this?
Thanks in advance.
I'm expecting that you can't (or at least shouldn't) be trying to get the profile image from another app for a Google account. One thing to consider is that if there are multiple users on the same device how can you know which picture is the correct one?
The documentation for Google sign-in shows step-by-step how to add it in:
https://developers.google.com/identity/sign-in/android/sign-in
Which starts with a Google sign-in button
followed by an account chooser which will have the user's profile picture for each account available on the device, and allows the user to enter a new account not even registered on that device.
I want to allow users to share image from my app on Facebook. Say I already have an image (i.e. file path). How do I go about letting a user share it on Facebook? Basically I want the user to agree once. Then from there on, whenever the user takes a certain action in my app, share a particular image on Facebook on behave of the user. Notice that the image is to be shared automatically without the user having to take action each time; so the Facebook sharing is incidental to some other action in my app. I am looking at the Facebook documentations. It is not clear which path to take to accomplish what I need. So thanks for any guidance.
Again, the user agrees once and goes on her merry way. Then the app, each time a user takes a certain action, share an image on Facebook.
UPDATE
Here is the path I have identified for sharing a photo on behalf of a user
Setting up your app to use Open Graph
Creating an Open Graph Story
Posting with API calls
The problem with this approach is that, at least in the sample project, the user has to click on Share each time. But I don't want the user to have to click on share each time. I want them to give me permission once. And then from there the app shares for them automatically.
Trial and error is expensive here as it is a lot to implement just to see if it were what I was looking to do: Which is why I am asking here, hoping someone here has done this in the past and don't mind sharing their experience.
You should ask the user for the publish_actions permission, and then use Request.newUploadPhotoRequest to publish a photo. https://developers.facebook.com/docs/reference/android/current/class/Request/#newUploadPhotoRequest
You need uses-permission Facebook, try this; https://developers.facebook.com/docs/android/getting-started
After you do this, you need to take method onClick and send the picture directly for facebook, but for this, is necessary the login of user's.
If there is some sdk (let's assume facebook here) that is implemented in multiple apps.
Now facebook asks a login one time from the user (the first time user uses fcbk app/sk on device). Once logged in, if any app (in same device) tries to access the sdk again, it does not ask user to login again (but just the permissions).
How does Facebook/Google know that user is already logged in that device once? Do they store Mac address of device. Do they have some universal sharedprefs? Do they have db/file on local sdcard.
I want to create similar functionality for my app. Any help would be awesome.
The implementation is both simple and complicated, but generally it centers around registering an account with the AccountManager (http://developer.android.com/reference/android/accounts/AccountManager.html) which then handles authentication requests coming from other apps.
Here is a step-by-step that should still be current enough to get you started:
http://www.finalconcept.com.au/article/view/android-account-manager-step-by-step-2
I want to upload pics to G+ and Pintrest without user intervention in background without using INTENT or any kind of user interaction.
I have found the api's for Facebook and twitter.
For G+ i found those API's to be read only. Are there any such available for G+ and Pintrest?
Any help will be appreciated.
Google+ already supports uploads of photos for auto backup if enabled, for Pinterest you will have to check out their API documentation about uploading photo's. further more you might want to investigate if users truly want to upload there photo's with out user interaction.
BTW facebook also uploads all photo's taken on the device if this option is enabled, same Google+
Check Android Pin It SDK given by Pinterest.
Regarding G+, you won't be able upload anything from Android app because currently API is only READ ONLY. Yes you can integrate Share plugin which would help user to share rich content from app into the Google+ stream, including links, photos and location.
I'm creating an app which will upload pictures from a particular folder of the SDCard.
Now using the dropbox feature I want to upload it. But I don't want my user to get the Login Screen.
What I want is the Code will have a Dropbox ID and Password written and the Api should use that an proceed.
I have gone through Dropbox Developer Blog. But I'm kinda a newbie in it. Hence I have no idea what it really wants me to do with oAuth.
Any example to other sites will work. Or some sought of tutorial.
If its not possible then I need to rethink my process flow.
Thank You
That's not possible.
The user always has to accept that his account will be linked with your app.
The App ID is just required in to link the account with the right app.
Its not possible to that.
but there is not a big Deal if your user getting this login page ones. you can able to save that linked account info in perf.