View Single Post
  #12   Spotlight this post!  
Unread 03-01-2014, 12:46
nathanwalters nathanwalters is offline
Registered User
FRC #0111 (WildStang)
Team Role: Alumni
 
Join Date: Dec 2011
Rookie Year: 2011
Location: United States
Posts: 75
nathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud ofnathanwalters has much to be proud of
Re: Bluetooth at competitions

Quote:
Originally Posted by stinglikeabee View Post
I'm not sure what version of Android you're using, but I can hot swap flash and SD storage on my phone (HTC One, Android 4.3) with an OTG cable using the ES File Explorer.
I'm running a CyanogenMod 10.1 nightly build on a Motorola Xoom. Some file explorers may be able to support that; that's not really of any concern to me as I need to do all writing to the drive programmatically from my app. The problem was that the contents of the files I was writing to were not successfully being written out to the external storage if I didn't first unmount the drive from Settings->Storage->Unmount USB storage. It appears that the Android system buffers some external storage file operations, and those buffers aren't synced to the physical device until it is properly unmounted; at least, that's the only explanation I can think of for the behavior I was seeing. This problem was called by executing the shell command "sync; sync" immediately after writing my data to the flash drive. Thank God for SuperSU!

So much for waiting to write up a full explanation