How can I detect (on the phone) when it is connected w/ a desktop machine with USB ? I need to sync up some data w/ a desktop, whenever the phone is connected to it. I looked through the APIs and looked through the forum, I didn't find anything on how to do it . Is there a sensor or some kind of event to listen to ?
It clearly can be done, as on my HTC Magic, the HTC sync software (to sync up contacts w/ Outlook) already does it (e.g. pops a notification on the phone that sync can be started). Any tips of what I should be looking for ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---