Frage

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?

War es hilfreich?

Lösung

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/

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top