tigerhawkvok / android-userinterface

Common code for hooking into php-userhandler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

android-userinterface

This library is designed to provide hooks to log in and register devices via the php-userhandler endpoint.

Instancing

You can instance the userhandler object like so:

Userhandler u = new Userhander(getApplicationContext(),ENDPOINT_URI_STRING);

OR not declare the endpint until later

Userhandler u = new Userhandler(getApplicationContext());
u.setEndpoint(ENDPOINT_URI_STRING);

Creating a new user

Creating a new user also registers this device to the server.

u.registerNewUser(FIRST_NAME,LAST_NAME,USER_HANDLE,USER_PASSWORD,INT_USER_PHONE);

Registering device with an existing user

u.registerNewDevice();

Verifying a user's phone

The registered phone may be sent a text message during setup to confirm it. Calling

u.verifyPhone();

Will overlay a popupWindow and handle the processing

About

Common code for hooking into php-userhandler

License:GNU General Public License v3.0


Languages

Language:Java 100.0%