Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django server side app (maybe a micro blog) and android app client - how to communicate

I am trying to write a Django microblogging server and have a 1) web interface and an 2) android app client

For the android app client, how do I communicate with the Django server? Is there a way to pass ask for an entire class data (say the Class Microblog objects or the Class BlogUser objects) themselves from the django powered server and then just print/display those objects in the android app?

like image 380
dowjones123 Avatar asked Nov 02 '22 01:11

dowjones123


1 Answers

You can pass objects to mobile client using serialization, there is django documentation: https://docs.djangoproject.com/en/dev/topics/serialization/.

I recommend you to communicate with mobile clients using JSON format.

About client side: http://osamashabrez.com/client-server-communication-android-json/

like image 63
Eugene Soldatov Avatar answered Nov 12 '22 12:11

Eugene Soldatov