Can I use some Python in the backend for an Android app? -


most of backend stuff in php handle json request , response flow of data android app backend.

i'd start writing python code handle features i'm going add in app. how can that? need install django or in backend? our webhost show "python support". i'm guessing couple of python classes , helper library files suffice.

but here's i'm conceptually stuck:

in android, on app, in user's side, suppose send queries backend function:

//pseudo code on android app getserverresponse() { url = " ??? "; jsondata = {somedata[a:b]}; response = senddata_andgetresponse(jsondata); // suppose function sens json data , expects server response. showresults(response);  //pseudo code on backend - backendprocessing.py  def processrequest():     # processing done here     response = "some_processed_data"     return response 

my problem is, , how integrate backend python code , client side android app code communicate each other. should url in android code pass data user backend? how link them?

do need specially setup third party python api handle calls android app @ backend? or can simple python functions , classes http request , responses coming in particular uri?

you can include url of backend server in android code. define variable url of backend server , use httppost method communication between backend , frontend. details here http://developer.android.com/reference/org/apache/http/client/methods/httppost.html

you can simple python functions , classes http request , responses coming in particular uri. third party python api not necessary.

you can use python based web frameworks django backend.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -