How to display Android database data in a ListView?

How do I access a MySQL database formed by a Django website through Android?

  • I have a Django based website.While developing the site it formed its own MySQL database. Now I am developing an Android app which will access those external database and tables and display data in the app by reading from these tables.How do I go about this? Does Django formed MySQL databases behave exactly like other normal exposed MySQL databases? I want to use web services(PHP scripts) for this.Will that work? Databases should return JSON data from databases and I will parse them in my android application.

  • Answer:

    You want to expose JSON APIs from your django app itself I think. Look into using Django-rest-framework or tastypie and see if they meet your needs.

Sumit Chachra at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.