How to get from a MySql server to an Android app?

前端 未结 4 831
情书的邮戳
情书的邮戳 2020-12-01 03:56

I have a MySql database with some sports results in it. I want to write an Android application to display these data on mobile phones.

I´ve searched on the internet

4条回答
  •  臣服心动
    2020-12-01 04:38

    There are many approaches to this, but I would use an SOA.

    Your mobile application will need to follow a typical service-oriented architecture (SOA) and will need three distinct elements: an external database; a web-service; and a mobile web-service client.

    You will need to create a web-service using something like Java EE that receives a request from the locally installed android application, and responds with the required data from the external MySql database.

    I am using the KSOAP for android libraries to do this, but should ideally be using REST.

提交回复
热议问题