Creating Accounts in an Android App

1.3k Views Asked by At

I am wanting to make an android app that will have user accounts. The app is like a contact manager and messaging app in one. Each contact will have a Name, a Number, and a password. Basically, the user will select from a spinner menu the contact name. The user will then enter the message. When the send button is clicked, the user will be asked to enter the password required to send to that specific number. The contact details will need to be kept private.

I have done some Google searches, however this is the closest i have come to finding anything: Android App : Managing user account information without a server

I am new to Android programing so any help would be much appreciated.

P.S. Sorry if this is somewhat vague

2

There are 2 best solutions below

1
On

For your requirement.

Do as like this....

You need to maintain two types of users say Admin and users.

The person who installs the app in mobile and registered first will be the Admin to the app. And remaining are the users for the App.

Admin have the right to create users and he have the rights to do all the front end work.

And if you need maintain sessions do study about How to maintain sessions in Android using shared preference

This concept is very very important for your App. so be perfect in this!!!

2
On

There are two ways -

  1. Online Mode - Write some application in PHP, MYSQL for user account management,etc. and call the approrpate URL for user authentication and other actions. You can use LAMP or WAMP stack for the same. You will need to host this application on server (public hosti9ng service or into your organization's server) You may use Android's SMS APIs for sending the messages.

  2. Offline Mode - Use local local database (e.g. Sqllite) for user authentication, etc. But you will need to explicitly take actions to sync all the user accounts.

regards, dattatray.