• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBC in android

 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Suppose I want to fetch records from remote database located somewhere on server.
And I want JDBC to use.Can we use JDBC ?

However I know that it is not standard way to go. We can use SOAP kind of webservice too. But somehow I want to use JDBC only.
Please help ?

Any tutorial will be a great help.
 
Tim Moores
Bartender
Posts: 2752
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JDBC does not exist for Android. You shouldn't use JDBC across the Internet anyway. I wouldn't use SOAP instead - REST should be the first approach these days.
 
Hardik Trivedi
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Moores wrote:JDBC does not exist for Android. You shouldn't use JDBC across the Internet anyway. I wouldn't use SOAP instead - REST should be the first approach these days.



I was also thinking the same. But when I googled I found few people who has done it.
Take a look at http://stackoverflow.com/questions/4447692/jdbc-connection-in-android

So now I am confuse.
 
Nicolas de Pomereu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest you to use Awake SQL, a virtual JDBC Driver that is supported on Android with a dedicated packaging. Awake SQL is Open Source (LGPL v2.1).

Disclaimer: I'm the author of Awake SQL.

Awake SQL allows you to code JDBC calls in Android. The JDBC calls are routed through HTTP and executed on the remote server. The result is sent back using JSON.
The database is not accessed directly: the JDBC calls are filtered by a (configurable) Servlet on the remote server.

Awake SQL supports all major Open Source and commercial databases.

More info at: www.awake-sql.org


 
Nick Johnson
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here you will get usage of JDBC in android.........
social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4799819a-27fd-4292-a3d8-f114207c20b2/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic