Android doesn't connect to MS SQL database, but Java console does...? - java

I am developping an Android app with a sql server, when we try to get records out of the database, we can view them in the java console.
However, when we test our app on Android, the connection is null and we do not see any records?
We're using JTDS 1.2.5 to connect with the database. On Android we receive a SQL-exception when the app attemps a 'getConnection()'

Could you please write the stack trace?
It could be very useful in order to solve the problem.
Without seeying it I can suppose that maybe you've incorrectly loaded the SQL JDBC driver and for this reason the program is unable to load the class.

Related

How to connect to a Google Cloud SQL database using Java

I am in the process of making my database cloud based, however I'm having trouble connecting to it. I have followed this
https://cloud.google.com/sql/docs/mysql/connect-app-engine-standard#java
I think the problem is I am having problems setting up HikariCP in my Java project. As I keep getting the error:
java.lang.NoClassDefFoundError: Could not initialize class com.zaxxer.hikari.HikariConfig
So if anyone has any solutions, either fixing the problem above, or a new way about it I would be very grateful.
Based on the github for Java or the MySQL/Postgres JDBC and R2DBC drivers which allows the user with proper permission to connect to a Cloud SQL database.

Connect Android App with a Firebird Database

I use Android Studio to program an application which allows you to access a Firebird database
I already read that it is not recommended to connect the app directly with the database. Therefore I would highly appreciate if someone could provide a step-by-step instruction on how to establish a connection between a Firebird database and an android application.

SQL connection works in normal Java but not Android

The title kind of says the most of it but I want to connect to SQL using my Android app that I have in development so I made a sample set of code just to test the concept without using android and it worked. When I tried to use it on Android it doesn't work (connection error) is there a permission I need to request in my manifest? Any help is greatly appreciated.
You can not establish JDBC connections to remote database in android either you should use SQLite DB on device or write socket based interface between your device and hosted machine or the most appropriate way of doing this is using REST webservices.

Configuring Informix database for JDBC Connection

I'm writing my first android app via Eclipse. I am trying to make a connection to my informix database. I have installed informix's client-side drivers on my system and the program picks them up when I run the Class.forName() method. However, my connection URL fails everytime. I have looked at many examples online as well as read much of IBM's documentation on this. I'm convinced there is some type of driver I need to install on my server??
Any insight would be great, thanks!

Android connectivity with sql database

I'm new to android technology. Can anyone, please, suggest me some proven idea to connect an android application from my laptop to a remote sql database server (without using php). I got connected from my java file to the database. But the output is displayed in the console part. How to get it displayed on the android screen?
For using webservies in Android you will require Ksoap Library.

Categories