[android-developers] Re: Communication over USB with Program on Computer

2009-09-14 Thread Chris Stratton

Read up on ADB port forwarding.

You could also I suppose drive the adb shell to do things or talk to
stdin/stdout of a program running under it, I think some of the tools
may actually get their data that way, but the port forwards sound like
a better concept in general.

On Sep 14, 8:52 am, Patrick Boos patrickboo...@gmail.com wrote:
 Goal: Send Data from the phone to the computer (and the other way)
 using only the USB cable. We need this to synchronize data between the
 a program on the android phone and a program on the computer. Over
 Wifi is not an option. It has to work over the USB cable.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Communication over USB with Program on Computer

2009-09-14 Thread Roman ( T-Mobile USA)

When you connect the USB cable make sure that you act on the intent
ACTION_UMS_CONNECTED when you mount the USB storage.

After receiving the event you could tell the desktop application to
send/copy files from the desktop to the sdcard of the device. The
other way is not supported which means you can not mount any external
storage device to your device (as long as you are not changing the
framework/platform) behavior (this communication is only half duplex!)

To make it more flexible you would have to introduce IP connectivity
over USB (platform/framework changes required).
--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Sep 14, 5:52 am, Patrick Boos patrickboo...@gmail.com wrote:
 Goal: Send Data from the phone to the computer (and the other way)
 using only the USB cable. We need this to synchronize data between the
 a program on the android phone and a program on the computer. Over
 Wifi is not an option. It has to work over the USB cable.

 We need this for a university project and would be glad if anyone
 could enlighten us on this matter.

 Thank you already for the help.

 Greetings
 Patrick Boos
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[Fwd: [android-developers] Re: Communication over USB with Program on Computer]

2009-09-14 Thread Pedro Fernandes
 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---

---BeginMessage---

Read up on ADB port forwarding.

You could also I suppose drive the adb shell to do things or talk to
stdin/stdout of a program running under it, I think some of the tools
may actually get their data that way, but the port forwards sound like
a better concept in general.

On Sep 14, 8:52 am, Patrick Boos patrickboo...@gmail.com wrote:
 Goal: Send Data from the phone to the computer (and the other way)
 using only the USB cable. We need this to synchronize data between the
 a program on the android phone and a program on the computer. Over
 Wifi is not an option. It has to work over the USB cable.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---

---End Message---


[Fwd: [android-developers] Re: Communication over USB with Program on Computer]

2009-09-14 Thread Pedro Fernandes
 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---

---BeginMessage---

When you connect the USB cable make sure that you act on the intent
ACTION_UMS_CONNECTED when you mount the USB storage.

After receiving the event you could tell the desktop application to
send/copy files from the desktop to the sdcard of the device. The
other way is not supported which means you can not mount any external
storage device to your device (as long as you are not changing the
framework/platform) behavior (this communication is only half duplex!)

To make it more flexible you would have to introduce IP connectivity
over USB (platform/framework changes required).
--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.


On Sep 14, 5:52 am, Patrick Boos patrickboo...@gmail.com wrote:
 Goal: Send Data from the phone to the computer (and the other way)
 using only the USB cable. We need this to synchronize data between the
 a program on the android phone and a program on the computer. Over
 Wifi is not an option. It has to work over the USB cable.

 We need this for a university project and would be glad if anyone
 could enlighten us on this matter.

 Thank you already for the help.

 Greetings
 Patrick Boos
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---

---End Message---