Answer the question
In order to leave comments, you need to log in
How does authorization work in Android applications?
Please tell me how authorization works in applications for the Android OS.
Example: there is a site, the site has a certain number or some data that is available only after authorization on the site. I roughly understand that if without authorization you can simply parse this figure, but how to make the application authorized on the site, and this figure was available to the application.
Sample applications: Balance checkers in the online account, readers of sites where authorization is required to read articles.
Answer the question
In order to leave comments, you need to log in
First you need to learn how to log in to a particular site. Maybe it's enough to submit the login and password on the login page, get the cookie and use it. Or maybe there is another captcha, maybe in a webview, show the user the login page, and then use the cookie from there.
And actually how to do it on android is already the little things of implementation. Stuff like "how to send login and password by post" is googled as the first link to stackoverflows.
in this matter, the main thing is the authorization mechanism that the server supports. For example, all this can work over the oauth authorization protocol.
Then the application knows what data to ask the user and send to the server, get a response and show the user.
You can do this with built-in tools, ready-made third-party libraries, or rudely and brutally, as @itspers
described. In
more detail, I can only talk about Phonegap, but there it is no different from the web :) Except maybe oAuth itself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question