Connect to a remote database…online database

后端 未结 4 1011
南方客
南方客 2020-12-15 13:03

I\'ve been looking for a week now... I need some help connecting to a remote database... I want my app to get data out of the database and update the database... I\'ve tried

4条回答
  •  我在风中等你
    2020-12-15 13:17

    Easiest way to connect a Mobile (ANDROID, iPhone, Symbian, WP7, you name it) device to a Data Base is to write a HTTP based proxy for your database.

    This is:

    ANDROID -> HTTP -> APPLICATION SERVER -> DATABASE
    

    And then the other way around to get results:

    DATABASE -> APPLICATION SERVER -> HTTP -> ANDROID
    

    In this scenario, you will write a HTTP based application in your favorite language (PHP, Python, Perl, Java, .NET) and deploy it in your favorite Application Server (Apache, Tomcat, IIS) and, in that application you will publish URLs your Android app will access to send/retrieve data to your database.

提交回复
热议问题