Registration with Gmail / Facebook credentials in an Android app - java

I have an android app which is having a registration page. In that I want to integrate with Gmail and Facebook separately .So that user dont have to register themselves with new credentials .They can use Gmail or Facebook login id and password to login themselves.
As I am new to Android .kindly give some solution Step wise .Thanks in advance

Here is the very easy way to integrate facebook SDKs with android code.
Official facebook integration document
Easy facebook integration.
How to integrate Facebook in my android application?

I think you want to like a Single SignOn for Facebook you have to use Facebook android sdk that is available at facebook developer site for android for Google Account authentication you should follow this

Related

Does android studio have any authentication function?

i'm new to android studio, and i dont know much about it. My question here is do android provide any authentication method like aspx / php (laravel) that check if a user stay logged in and etc.
From what i learnt so far, i have to sign in to my app by receiving json/xml data from my web service, so my app just display the next screen after the id/password is correct? Is there any more security issue that i need to worried about? Aspx authentication do authenticate on every page even after your first login. But after some research i dont see android studio have this kind of authentication. Am i missing something?
You can use Firebase Authentication for sign-in methods and user management.
You can add Firebase to Android Studio in Tools > Firebase.
No there is no default function in android that does what you want, you have to add a new sdk to handle this issue. You Can Use Firebase as Aviad Nemet said. Or you save in the shared preferences that you user is authenticated after login success. Saving in the Shared Preferences is safe.

Authenticate users in Java AppEngine Application with Firebase

First I build an AppEngine with java, that uses the Google Sign-In library:
https://cloud.google.com/appengine/docs/standard/java/users/
But now we want to also have an android app and switch from Google Sign-In to Firebase (because it integrates way better with android).
Unfortunately, I found no java sdk for firebase that would replace the Google Sign-In probably.
What is the best way, to add firebase authentication to a java AppEngine application?
Java has REST capabilities. Use Firebase Auth REST API.

Google Plus Integration in android app

I am using Google+ in my app. And I can share content using following code
Intent shareIntent = new PlusShare.Builder(ViewGooglePlus.this)
.setText("Android Testing for Google+")
.setType("text/plain")
.setContentUrl(
Uri.parse("http://androidsolution4u.blogspot.in/"))
.getIntent()
.setPackage("com.google.android.apps.plus");
startActivityForResult(shareIntent, 0);
but it works only when official Google+ client is installed on device.
I want to share content whether official Google+ client is installed in device or not.
I found here that it is possible using this library but don't know how to use it ?
Is it possible? Anybody have an idea? If yes, how can it be done?
You cant share to Google+ if the application is not installed in the device. You can use Google App Engine and Google+ APIs to share the content.
https://code.google.com/p/google-api-java-client/wiki/APIs#Google+_API
One such example can be found here on Git.
https://github.com/imellon/Google-Plus-Android-Sample
I think you should go for OAuth Authentication of Google Plus. This will provide explicit Authentication then Intent based.
In this mechanism, you are creating one WebView and open link of Google login page. When user is login successful, google return an Token, which you can use in your application to work with its different application like Maps, Location, Google+ etc.
Here is link which have demo application.
You need to register yourself with Google Console and put two important information clientId and clientSecrets.
GOOGLE_PLUS("client id","client secret","https://accounts.google.com/o/oauth2/token","https://accounts.google.com/o/oauth2/auth",BearerToken.authorizationHeaderAccessMethod(),PlusScopes.PLUS_ME,"http://localhost","plus","https://www.googleapis.com/plus/v1/people/me/activities/public")

User authentication through Google plus in android app

I am working with Android app.
User authentication in app with three way.
First is simple authentication done with query.
Second with Facebook. It also done.
I am working on Google plus authentication. but I am not able find the proper document as provide in facebook app.
Can any one guide me for google plus authentication?
You might want to take a look at "Google Play Services" in the Android SDK (released on 09/26).
Google Play services is a platform delivered by the Google Play Store
that offers integration with Google products, such as Google+ into
Android apps. The Google Play services framework consists of a
services component that runs on the device and a thin client library
that you package with your app.
The following components are included in Google Play services v1 and corresponding client APIs are included in the client library:
OAuth 2.0 authentication
Google+ sign-in
Google +1 button
Here's the link to it on on Googles Developer site:
https://developers.google.com/android/google-play-services/index
To add onto what chrkad suggested, there are also the Google+ mobile APIs:
https://developers.google.com/+/mobile/
and for Android, specifically:
https://developers.google.com/+/mobile/android/
These services will enable you to get the plus.me scope for a given account which you could then use for authentication and user credentials. Using a conventional OAUTH2 flow, you could do this now, it will be easier once the APIs are released.

Facebook Login in Google App Engine Application (Java)

Currently, users of my appengine application can use their gmail account to login to the site. I want to allow users to login using their facebook account. How to do this?
Woops, I did not read your post right, I think this is what you mean?
is this what you want ?
Google app engine: create a facebook app

Categories

Resources