[android-developers] Device is attached with usb or not
Hello All, I want to create a app, i am creating naveen folder in sdcard , i want when user attached with USB cable and dragging file in Root sdcard then that moment i want to read device is connected with usb . means i want to create a service in app that look for usb attachment check , if attached and drag a file in sdcard then auto move in / sdcard/naveen . How to handle usb is connected or not android code regards , Nav -- 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
Re: [android-developers] Device is attached with usb or not
On Wed, Nov 16, 2011 at 6:35 AM, Naveen kumarnaveen.si...@gmail.com wrote: Hello All, I want to create a app, i am creating naveen folder in sdcard , i want when user attached with USB cable and dragging file in Root sdcard then that moment i want to read device is connected with usb . means i want to create a service in app that look for usb attachment check , if attached and drag a file in sdcard then auto move in / sdcard/naveen . I assume that you're saying that you want the user to be able to transfer files between their computer and the device using your app? This isn't going to work, first of all you don't have that kind of access to the hardware, and second of all, it already exists: it's called mounting the drive... How to handle usb is connected or not android code The windows / linux / mac / ... side? kris -- 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
Re: [android-developers] Device is attached with usb or not
Thanks all i resolved this issue, On Wed, Nov 16, 2011 at 6:34 PM, Kristopher Micinski krismicin...@gmail.com wrote: On Wed, Nov 16, 2011 at 6:35 AM, Naveen kumarnaveen.si...@gmail.com wrote: Hello All, I want to create a app, i am creating naveen folder in sdcard , i want when user attached with USB cable and dragging file in Root sdcard then that moment i want to read device is connected with usb . means i want to create a service in app that look for usb attachment check , if attached and drag a file in sdcard then auto move in / sdcard/naveen . I assume that you're saying that you want the user to be able to transfer files between their computer and the device using your app? This isn't going to work, first of all you don't have that kind of access to the hardware, and second of all, it already exists: it's called mounting the drive... How to handle usb is connected or not android code The windows / linux / mac / ... side? kris -- 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 -- 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