The situation is this. I have an application written in vb.net. This or two parts are included. On a PC and in a second hand, on the Windows Mobile 6 device. The desktop program transmits a SQL Server compact database using Activis Sync via USBS and transfers it from the device in hand. Probably we would like to check to make Android handheld devices supported by this application. Now I know that I can use SQLite with the net. I know that I can use ADB to push and drag the device to more data.
What should I know that I am not able to remember anything till I do SDB
instead of doing it directly to ADB or API directly from ABI and I have no other way Can I copy more to the device?
Thank you in anticipation
There is no direct API for this. We have a similar scenario, where the user syncs content (i.e. the database too) from the desktop client (in our case, Java swing based), which is used ADB manually and is working fine till now.
Our Java client, we will call:
Private static final string ADB_PUSH = "\" "+ Utility.getWorkDir () + File.Sseparator +" adb \ " -s% s push \ "% S \"% s "; / ** * File path of source file (on PC) via ADB * @PRAM Device ID via serial number * ADB * @PRAM A file through PDF * destination of destination (on device) * path / public static * Zero push (string device id, string to, string to) {try string string; Cmd = string.format (ADB_PUSH, deviceId, from, to); System.out.println ("ADB push:" + CMD); Process P = RuntimeGreat Time (). Exec (CMD); InputStream = p.getInputStream (); InputStreamReader isr = New InputStreamReader (is); Buffed reader br = new buffed reader (ISR); String line; While ((line = br.readline ())! = Null {System.out.println ("adb:" + line);}} grip (IOException e) {System.out.println (e);}}
Comments
Post a Comment