SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jan 2014
    Location
    Thailand
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to connect online database application in android

    Hello

    I'm newbie on mobile developer trying to develop android application with HTML5 , jquerymobile , php and mysql and then build android application in PHONEGAP cloud service.

    But i don't understand how to coding connect online database not in local is it possible?. So i don't know i'm going on the right way or not.
    Anyone help me?
    Thanks

  2. #2
    SitePoint Member
    Join Date
    Feb 2014
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use the MySQL JDBC drivers. Specify access details into the app and use normal code to query the database.

    The other option is to use web services to access, autheticate and excute control. You can write the webservice in PHP where it takes query from POST data and submits it to the database with the result written in JSON. The scirpt that you write will send the query where upon reply the JSON will be parsed and displayed.

  3. #3
    SitePoint Member
    Join Date
    Jan 2014
    Location
    Thailand
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi , midynamics
    Thanks for the answer and i think coding with JSON is my choice.
    Aaeonline


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •