Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Can you remotely connected to a database with an android application?

I am seeing tutorials for created the database directly on the device, which is not what I'm looking for. I need to know if it's possible to connect remotely to a database (say MySQL) and preform operations such as insert, update, selected, and things of that sort. The only thing that has came to my mind would be the JDBC but I'm doing some research and no real positive feedback has been found. Any and all help will be appreciated. Thanks!

3 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    yes. use mysqlLITE and build a connection string which you store in the androidmanifest.xml file. cant remember exactly what else i did but this should get you started.

  • 1 decade ago

    Android should never directly connect to a database remotely. It should either use it's local database or connect to a database using the RESTful interface.

    REST can be done in many languages. Rest is making an Http/s call and getting results in (normally) XML (or JSON). In Java, you can run Tomcat. You'll need to write a servlet that connects to the database, runs the SQL, and writes out the results in XML. The android application can read the xml and do what it needs to do with it.

    You could also use Grails to make RESTful applications and they can be done pretty quickly.

    The database doesn't really matter in Java so using MySQL, Oracle XE, or Postgres can be done for free.

  • ?
    Lv 4
    4 years ago

    TeamViewer and LogMeIn is what i take advantage of. while i'd desire to assist a buddy or kinfolk member faraway from me i take advantage of TeamViewer yet wehn i'd desire to connect with my very own computers at homestead while away, i take advantage of LogMeIn (unfastened). i haven't got here across (or i haven't appeared greater reliable) the thank you to connect with my computers with out the would desire to comprehend the identity and password shown in the distant computing gadget.

Still have questions? Get your answers by asking now.