Connecting to an external mySQL database and binding data

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Connecting to an external mySQL database and binding data

Postby cd_gary » Wed Jan 19, 2011 7:40 am

I have an external mysql database and I'm trying to find information as to how to connect to it via my android app and bind data from one of my tables in the database with a view object. I can't find anything on the web. Any help would be greatly appreciated. Given the localhost (LOCALHOST), root (ROOT), password (PASSWORD), database name (GUESTS).

My query would be:

Syntax: [ Download ] [ Hide ]
Using sql Syntax Highlighting
  1. SELECT firstName FROM Names;
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


How do you do this???
cd_gary
Freshman
Freshman
 
Posts: 3
Joined: Sat Jan 01, 2011 2:54 am

Top

Re: Connecting to an external mySQL database and binding dat

Postby liradev » Tue Feb 15, 2011 4:45 pm

I haven't set up a DB connection for an android app. But in general Java Development you need to download a connector and integrate it in your Project.

Search for "MySQL DB Connector" and you will find some. Research how to include it in your project and then you can set up your SQL Statements to a DB.

Cheers,
liradev
liradev
Junior Developer
Junior Developer
 
Posts: 13
Joined: Tue Feb 15, 2011 2:38 pm

Re: Connecting to an external mySQL database and binding dat

Postby simondid » Thu Feb 24, 2011 12:29 am

have alsov been traying to find a why to due this but it's hard realy hard
simondid
Developer
Developer
 
Posts: 34
Joined: Mon Jan 31, 2011 3:45 pm

Re: Connecting to an external mySQL database and binding dat

Postby ismail12 » Thu Mar 10, 2011 10:43 am

Hello,

Below Link useful resource for how to connect db in android

http://www.helloandroid.com/tutorials/c ... l-database
ismail12
Freshman
Freshman
 
Posts: 3
Joined: Thu Mar 10, 2011 10:24 am

Top

Return to General

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests