java - Embedded Web Service on Android device -
i program webservice embedded on android device (not client part).
i've been evaluating restlet framework (restlet) don't know if go on right way.
what think? framework viable goal?
any suggestion welcome!
thank much!
regards.
should check whether restlet compliant android, not server side code, client side code (respectively).
means example every jar restlet framework depends on has contain code compliant android.
alternative approach run simple http server on device, example following nano http server read about.
interesting project should check jetty android give support servlet api well.
yes, have spend time on developing mapping requests , building resource handling logic, task not difficult:
a. have android code json processing -
example, here
b. using java url object can analyze url of request , understand resource should handle (i.e - add resource collection, fetch collections, etc).
c. after performing crud operation (i.e - store resource in sqlite table), can send response, , once again, composing json if needed easy.
Comments
Post a Comment