I used this code to create a connection to SQL Server.
String connectionUrl = \"jdbc:sqlserver://IP:1433;\" +
\"databaseName=db;user=db;password=pwd\
Check out this Microsoft JDBC Blog post:
for resolve SSL problems with SQLServer (specially for android clients:JDBC driver can not be used effectively in the Android OS on unfortunately) try to using jDTS:
jTDSis an open source 100% pure Java (type 4) JDBC 3.0 driver for Microsoft SQL Server (6.5, 7, 2000, 2005, 2008 and 2012)