Hello,
I am new to Android studio and trying to Build my very 1st Android app on Andoid Studio and trying to connect to MS SQL Server (remote server) database but below is the error am getting when running the app on Android phone :"I/O Error: DB Server Closed Connection."
My Connection string is :
String ConnectionURL= "jdbc:jtds:sqlserver://"+ ip + ":"+ port+ "/"+ db_name+";TDS=8.0;trustServerCertificate=true;user="+uname+";password="+pass+";";
Can you please help me what could be wrong !!!!
Screenshot of app is attached.
Related
Hi all,
I've been trying to connect to a chat room using a web base java chat...thing
i keep getting this message. i have updated to the news java software too.
thanks in advance for any help
regards,
[20:18] Connecting...
[20:19] Unable to connect : java.net.NoRouteToHostException : No route to host: connect
[20:19] Connecting...
[20:19] Unable to connect : java.net.NoRouteToHostException : No route to host: connect
anyone please?
When I try to connect with WIFI PPPOE or PPPoE for Android they close and say disconected. In fact PPPoE pop up message
Code:
/data/data/com.eagle.alicepppoe/ppd: You need to create the /dev/ppp device node by executing the following command as root :
mknod /dev/ppp c 108 0
Couldn't open the /dev/ppp device : No such file or directory
Does anybody know how to connect to wifi network using PPPoE
Hint: Can't edit router settings because of ISP :S
Anybody?
Sent from my HD2 using Tapatalk
hi, when I am trying to use putty it shows a message : network error: connection timed out. I saw my phone's ip address using adb, and it shows:
*daemon not running. starting it now on port 5037*
*daemon started successfully*
after it, my ip.
What can I do? I tried to change the port on both programs and it didn't work.
lucascastro said:
hi, when I am trying to use putty it shows a message : network error: connection timed out. I saw my phone's ip address using adb, and it shows:
*daemon not running. starting it now on port 5037*
*daemon started successfully*
after it, my ip.
What can I do? I tried to change the port on both programs and it didn't work.
Click to expand...
Click to collapse
Hi,
Did you download PuTTY.exe or PuTTYtel.exe? You need the PuTTYtel.exe file. Feel free to PM me if you need more help to get rooted.
Good luck!
lucascastro said:
hi, when I am trying to use putty it shows a message : network error: connection timed out. I saw my phone's ip address using adb, and it shows:
*daemon not running. starting it now on port 5037*
*daemon started successfully*
after it, my ip.
What can I do? I tried to change the port on both programs and it didn't work.
Click to expand...
Click to collapse
i would try googleing for the Moto X Toolkit and use that to Root your device with Rockmymoto it is about as automated as it can get.
I have downloaded jtds-1.2.7.jar and import into Android Studio. But it come out error ,ClassNotFound:net.sourceforge.jtds.jdbc.Driver..
Android studio setting image: i.stack.imgur.com/xbaRa.png
Hi,
I'm trying to implement a backgroundTask in an Universal Windows App (Windows phone runtime 8.1) and I need to do a consult in the database of the App in order to connect to my webservice on the cloud. The foreground of App uses sqlite-net nuget package without problems. But when I add it on the Windows runtime class (backgroungTask) generate 24 errors on the class Sqlite.cs. I have searched more information About this, and I have found other package that is better (because It is compatible with xamarin) that is called: sqlite.Net PCL 3.0.5 So I have installed it in my backgroundTask Project and I get an error that is the following:
Code:
Error 6 Windows Runtime type 'Windows.Foundation.Point' was found in multiple referenced winmd files. Please remove either 'C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1\ExtensionSDKs\Microsoft.VCLibs\12.0\References\CommonConfiguration\neutral\platform.winmd' or 'C:\Program Files (x86)\Windows Kits\8.1\References\CommonConfiguration\Neutral\Windows.winmd' from the list of referenced files.
I don't know what I can do with this error. Could you help me to use sqlite in my background task?
Thank you!!
Hi again,
I have got to solve the error that I have comment because the sqlite.net pcl doesn't need vclibs12 so I delete this and then I get 24 errors. All are of one kind error, DateTime. It returns the next message:
Code:
Error 9 Method 'Tarea.UnixToDateTime(System.Int64)' returns 'System.DateTime', which is not a valid Windows Runtime type. Methods exposed to Windows Runtime must return only Windows Runtime types.
Then, the information that I have on this format, how could I get them? Or Have I change all code and the database with other type?
Thank you again!
A DateTime is just a 64-bit number underneath, with a little metadata about time zones and such. You should be able to either create a C++/CX struct for it, or just pass the int64_t and re-build the datetime on the other side.
GoodDayToDie said:
A DateTime is just a 64-bit number underneath, with a little metadata about time zones and such. You should be able to either create a C++/CX struct for it, or just pass the int64_t and re-build the datetime on the other side.
Click to expand...
Click to collapse
Hi goodDaytoDie!
Thank you by your ideas, I have changed the type of data of the Database to int64 and I have calculated the date with DateTimeOffset (this works on backgroundTask). In addition, I didn't know this type of data, but I like it because it allows get the date on different time zones without making nothing.
Thanks!!:good: