How to access SD Card from .NET program on a PC

P Patrick Cromie 3 years 6 months ago
6 1 0

Hello all,
We have been running into a few hiccups that I was hoping someone would be able to help us with. We are developing an inventory application on a TC8000 device that requires a SQLITE file to be loaded onto the device from a back office server(Windows 7) and we are having problems figuring out a way to send the file to the device via USB. But first, let me set the stage a bit. The owner of the company needs to have a device at every location and not all locations have wireless AP's. With this being said, we need to find a way to connect the device via USB as wireless is not an option that we have. When we attach the device to the computer, it shows up as a Media Device which means we can not assign it a drive letter and transfer the file within our .NET program. I have done some reading and Android has disabled support as a Mass Storage device in 4.0 apparently. While stumbling through the Profile Manager, I saw a USB section to it and a checkbox for UsbUMSAccessDeviceStorageUsage. Is this something that we can use in order to get the SD card to look like a Mass Storage device? Thank you in advance for any help that you can provide.

Please Register or Login to post a reply

1 Replies

Y Yanis Dalabiras

Hi Patrick, I can't speak authoritatively as I do not have a device to test with but the docs for USB imply to me that the device has to first support any functionality being exposed from the USB profile manager.  Did you try it? The characteristic would look something like this:

Since you have to connect the devices to a PC anyway, would it not be easier to use adb?  adb push myfile /storage/sdcardlocation?  I'm not sure which location is the SD card as it can vary between devices but you should be able to push files that way.

CONTACT
Can’t find what you’re looking for?