Search code examples
androidauthenticationaccountcreation

ANDROID - creating users/accounts for server/service login privileges


Hello everyone on here,

I have an application I am working on that requires the user to be able to login to an account in order to gain access to privileges and other services they would otherwise be denied. They will be able to use the basic app itself without login or creating an account but in order to talk to the server and have their data stored they will need to create an account.

So far Ive looked for the past couple of days and most threads here or other forums talk mostly about using the google account for doing things which is great for a simple app but the project I am working on is anything but simple :p

So.....can the wonderful people of stack overflow direct me to information regarding the process of creating a user account on the app that would correlate to one on a server that can talk to and login to a service that is hosted on that same server. That would be great....thanks


Solution

  • Step one: write a web app that manages users and accounts using your favorite server side language/framework.

    Step two: Expose some HTTP interface for Android clients (a simple form will probably do).

    Step three: Use HttpClient to talk to your webapp. For example, post username, password, user info to the form in step two.