android app requested - location

noamso

New Member
when installed, app should ask for permission to use "Location", and "Internet connection" only.
app must work in the background while active, with notification icon.
app screen must look nice! .....
app has 5 functions:

1 LOGIN
two inputs on screen for the user: SITEURL, DRIVERIDN
app goes to http://SITEURL/driver.asp?action=login&driveridn=DRIVERIDN
server returns one string DRIVERID (for example "8971". if error, returns "E")
store this in memory and don't ask again in next app launch, unless user choose to logout..

2 NEXTORDER
after user is logged in (has DRIVERIDN) app goes to
http://SITEURL/driver.asp?driverid=DRIVERID&action=nextorder
server returns ORDERID,ORDERDESCRIPTION (for example "105,line 50 - tel aviv - lod - jerusalem")
show this on screen with one button below: BEGIN

3 BEGINRIDE
app goes to http://SITEURL/driver.asp?driverid=DRIVERID&orderid=ORDERID&action=beginride
server returns "OK" (if error, returns "E")
app shows "RIDE IN PROGRESS" on screen, with one button below: "FINISHED"

4 MYLOCATION
after ride has began, every 1 minute app gets device's GPS location and goes to
http://SITEURL/driver.asp?driverid=DRIVERID&orderid=ORDERID&action=mylocation&lat=LAT&lon=LON
server returns "OK" (if error, returns "E")

5 ENDRIDE
when drivers clicks "FINISHED", app goes to
http://SITEURL/driver.asp?driverid=DRIVERID&orderid=ORDERID&action=endride
server returns "OK" (if error, returns "E")

* when server returns error, the message should be shown on the device (first char is "E" so show from the second char on..)
 
Top