I have an App(A) in Android device and a C++ program(B) in PC. I want to connect A to B to share datas from A to B. How can I do that? Thanks.
Asked
Active
Viewed 194 times
0
-
Via some kind of Internet service – Pein Nov 22 '16 at 08:55
-
I want to share via USB cable. – Phong Nguyenqui Nov 22 '16 at 09:00
-
you can use ADB to read-write data (files?) to-from Android device – Vladyslav Matviienko Nov 22 '16 at 09:04
-
thank @Vlad Matvienko, but i have files in folder app, i want to share these files to my App in Window only . – Phong Nguyenqui Nov 22 '16 at 09:26
1 Answers
0
If I understand correctly then you want to transfer data from Andriod to PC application. If you want this then you can do it using socket. You can send or receive data using socket communication between Andriod and PC devices or some other device.
One of such example you can found in below links
how to Send string from Android to PC over wifi
https://github.com/codepath/android_guides/wiki/Sending-and-Receiving-Data-with-Sockets
-
Oh, thank you, the thing i want is the program in PC can access private data of Aplication in Android. – Phong Nguyenqui Nov 22 '16 at 09:36