Greetings! I am trying to connect my android application to a MySQL database. The app serves as a tool for lawyers providing them features such as:

  • a calendar wherein they can add and view events
    -an agenda list wherein they can see a list of their agendas
    -a notification list wherein they can see notifications that they receive on the system
    -a case list wherein they can see their list of cases

I have created a case management system coded in php where most of the main functions are located. The system, however, is not a web application meaning it only uses the local network of the firm. So what ever is done on the system (i.e. adding new cases, creating new events on the calendar, etc) will reflect on the mobile application. The android app will not utilise the Internet. My question is: what would be the best way to connect the android app to the database Ive created on phpmyadmin since both the system and the app will just be on the localhost of the firm? What would be the easiest way to accomplish this task?


2 Months
Discussion Span
Last Post by pty

To cut a long story short, you don't want to connect to the database directly, you want to build an API that sits in-between. Let the API service talk to the database and communicate with the API via HTTP calls or some other protocol.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.