Hi All,
We have developped an interface board on a PIC microcontroller that uses the ADB interface to communicate with any android device. My problem is that with the USB connection, the mass usb storage is enabeled by default and we do not have access to the device memory, other than the DirInternal. Normally, this would be ok, but when I try to update the application from an FTP site, I get Package parsing error. This was traced back to the fact that I can't store application.apk and launch an update from the internal memory. Changing the storage to external fixed this. Which bring me back to the original problem, I need to turn (unmount) the USB storage to be able to save my updated application to external memory. I have found these two possibilities to turn off the storage:
MountService.setUsbMassStorageEnabled(false); or
StorageManager.disableUsbMassStorage();
But they are sytem accessible services and I would need to use the reflection library to use them. Can anyone help with the coding of this.
Thanks,
Mike
We have developped an interface board on a PIC microcontroller that uses the ADB interface to communicate with any android device. My problem is that with the USB connection, the mass usb storage is enabeled by default and we do not have access to the device memory, other than the DirInternal. Normally, this would be ok, but when I try to update the application from an FTP site, I get Package parsing error. This was traced back to the fact that I can't store application.apk and launch an update from the internal memory. Changing the storage to external fixed this. Which bring me back to the original problem, I need to turn (unmount) the USB storage to be able to save my updated application to external memory. I have found these two possibilities to turn off the storage:
MountService.setUsbMassStorageEnabled(false); or
StorageManager.disableUsbMassStorage();
But they are sytem accessible services and I would need to use the reflection library to use them. Can anyone help with the coding of this.
Thanks,
Mike