开发者

Android + SQL Server + jTDS

I'm trying to build an android app with connection to our SQL Server. I have downloaded the jTDS JDBC Driver. I have an jar file and have to copy it to my application's classpath. But where is that? I have copied to my workspace in the project directory where the file ".classpath" is. But it seems not to work.... everytime if I'm at the code where I load the class with

Class.forName("net.sourceforge.jtds.jdbc.Driver");

it says:

The source attachment does not contain the source for the file ClassLoader.class. You can change the source attachment by clicking Change Attachmend Source below"

Any ideas?开发者_StackOverflow I'm new to java AND android...


no need of that much of mess.
Simply for Mysql Server Data Access or any live server data access.

Make Use of Web Services

Its like prepare a dynamic page that have all the fetched data result from the server. Your android application need to hit that dyanamic page URL and then simply read the content from the streams and use them in your application.

Genrally large amount of data is expressed in xml format which is then parsed from the application See on google about SAXParser

In short its like a web page that will echo your server data after your app hit the url of that web page to read the data.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜