File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes JDBC in android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "JDBC in android" Watch "JDBC in android" New topic
Author

JDBC in android

Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
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
Rancher

Joined: Sep 21, 2011
Posts: 2408
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

Joined: Jan 30, 2010
Posts: 252
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

Joined: May 22, 2012
Posts: 4
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

Joined: Jun 21, 2012
Posts: 16
Here you will get usage of JDBC in android.........
social.msdn.microsoft.com/Forums/en-US/sqldataaccess/thread/4799819a-27fd-4292-a3d8-f114207c20b2/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC in android