Good evening everyone. I have been teaching myself on app development thus far and it's been rewarding. I have a bit of a question which in my opinion is basic...very basic. I have developed a project to the login screen phase working with java in android studio 4.2.now, my questions are;
On the login screen activity class, is it possible to have 2 methods implemented for both email&password login and social media login? My aim is to have one screen(login screen) that handles this activity with a firebase backend, and keeps the user logged in until such a time that the user logs out.
Can someone please recommend a reference that can aid my developing this page successfully?(i have scoured YouTube but i find only materials that talk either one (email&password authentication using firebase) or the other (social log on topics). Which prompted me to ask the first question.
Which is also based off of question 1; if i can have 2 methods implemented do i still have to "Override" before i can implement another method?
I really will appreciate any help offered.
Thank you
Firebase UI sounds like a good candidate for your problem because it handles multiple providers (email, socials, google and phone) so that you don't handle that yourself.
Firebase UI aims to eliminate boilerplate code and promote best practices both user experience and security when Authenticating.
Related
About me
I am a quite a starter but I have worked with Android Studio before; creating simple data scraping apps and more. Bu I was bashed on here once for just asking for answers without trying, that is why I am giving much as effort to make clean as possible. I am not looking for just answers, I was hoping to learn something building this app. Sorry for my terrible English and also thanks in advance!
Infinite Campus
If you haven't heard of Infinite Campus, it is a grading website which students and teachers use. The website is generally great; it gives a lots of informations and it is clean. Besides the website, they also have an app. But the app is terrible. Reason is:
It is Slow: refreshing the data takes too much time.
Less information: for some reason it has less information; like GPA and more.
On Android it just looks terrible
And I decided to create my own app, and hoping to learn new things in the process.
My App
I want my personal App same as Infinite Campus App.
The app is fairly simple, it is only does two things:
Log in
Scrape Data and Display.
The site is: Here
Problem/Question
I do not know where to start.
Do you guys have any good tutorials?
What do I need to learn?
Is the site good for such a thing?
Yes, you can create an Application like that but first, you need to understand your requirements and what are the technologies you are going to use like.
1.) In your Campus App you want to enable the login functionality for that you must have some database where you can store the user information like email and password for this Firebase comes handy with Real-time Database.
2.) you want to store the student's score or test mark for this Again you need to design a database where you can store it so Real-time database from firebase again helps in easy to use integrate.
3.) Next process involves making the UI in android which can be referenced in java where you can implement your business logic.
Useful links you may want to get started
firebase login
realtime database
Using recyclerview for list type things
for displaying drawer menus
I'm a newbie android developer and we have a website that sells some stuff (using a payment gateway), you can also login on the site using credentials, facebook, or google+ login. Now we have a need for an android and iOS app. What is the best approach to port the site functionalities to Android or iOS app? What are the issues I need to consider when I choose one approach? What would be the best approach: native, hybrid (phonegap, xamarine etc.) or using wrapped (using webview as far as I know)? I'm especially interested in the user login part (because I want the user to be able to login to his account if it exists and if not to create it using the website API endpoint - this is how I imagine it), how to solve that when choosing between these approaches? Any suggestions (answers, comments, links, books) would be helpful.
Thanks
My sugestion is to do native, always can reach more performance in multi thread ,high concurrency transactions and heavy applications.
For android, you can build from source an application, and export the html/css content to the smartphone using android.webkit.WebView. Take a look:
https://developer.android.com/reference/android/webkit/WebView.html
I think is a excellent solution for your problem.
I preface this with the fact I am a Java newbie. If one has a working web app in Java using Google App Engine, and one is looking for a simple tutorial for how to add Google Wallet to accomplish a pay-per-use requirement of that web site, does anyone have a reference for a very easy to understand tutorial, book, sample, etc.? What Google provides seems to be a jumble.
If it matters, here is a basic outline of what my web app currently does: User enters a little bit of basic data, chooses from some options, hits "submit", and a whole bunch of calculations happen, with a printout of the result. I would like a tutorial or any direction on how to have Google Wallet popup at the point of "submit" and the calculations happen when that process is complete. Nothing fancy.
Thank you in advance. ANY direction is appreciated. I do not need my hand held (although I won't refuse that), just need a good place to visit to get those hands dirty without slamming my head on the desk in utter confusion.
You probably want the Google Wallet for digital goods API.
https://developers.google.com/commerce/wallet/digital/docs/tutorial
On submit you initiate the purchase flow. Then on the success callback you do whatever calculations you need.
I am working on a requirement in which I have to create new registration module for creating a new account on google. I plan to used google app engine with Java environment.
Now I have no idea for meet this requirement.
Can you advise me to create this module.
And I have another one question, does Google APP (Free Edition) use SSO or not?
To my understanding Gae does use sine sign on
I would suggest you to take a look at documentation on GAE here
And a small article written for authentication by me here
When user is redirected to Google login screen, and he does not have an ID, he can create one ( I would first suggest you to work on part where user is forwarded to login screen and is asked to login, you will understand what I mean)
As far SSO, there are discussions here and here which do suggest it can work with proper configuration. Hope this helps
I am struggling from couple of days, to add facebook login to web app using java facebook api, since my web application is java/j2ee application. I went through few blogs, since facebook doesnt have provide the official java library.
I went through this blog and code and tried to make a prototype, but its not working, i could say i spent lot of time debugging the code and removing the errors which I got instead of testing the code.
Logging in with Facebook Java API
Facebook Java api example to publish on Wall
I also took a look at the facebook javascript login button which is quite simple and easy go, but I have couple of clarifications to be made her.
When the user logins I want to retrieve his email_id,profile_picture and also his name, rest of the things I will ask user to fill it up.
My questions are here
How do I retrieve the profile_picture of the user?
A user should be able to see the name and picture of the users who all are logged in
use facebook login,so should be save the picture in the database or I can get it dynamically?
How do I manage the database, suppose the user A visits my site and clicks on fb login for the first and the same user A visits my site for the site and clicks the fb login button, how should I managing the user sessions?
Kindly help me
thanks in advance
Well, I think the best you can try to do, and I offer my help to do it, is "convert" the php sdk classes (base-facebook.php and facebook.php) into java classes. After that it will be easy to answer your questions. By the way, if you gonna do some server-side processing, why not using php instead of java-ee?