[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
If you're using a Mac, just eject the mounted drive from the G1 using the Finder. Simple. If you're using a PC, then get a Mac :) On Nov 5, 5:59 am, hyc <[EMAIL PROTECTED]> wrote: > Second that. Taking away the Settings option has made using the SDcard > extremely inconvenient. The only way to dismount now seems to be by > pulling the cable, which interferes with charging activity, if nothing > else. Removing the menu option has really hurt the usability of this > thing. > > On Nov 4, 1:34 pm, mitush <[EMAIL PROTECTED]> wrote: > > > *** also posted on T-mobile G1 forum *** > > I have received the update, so my "Use for USB Storage" was replaced > > by the notification. > > > But where is the option to unmount the USB disk, while G1 is still > > connected to the PC? I am writing a G1 app which writes to the sdcard > > and, when debugging/testing, I have to constantly cycle through open > > notifications-click-mount then look at the files on PC and then > > phisically disconnect-reconnect US. Before the update, it was just a > > single click both ways. If android developers read this, could you > > please give us an otion to unmount as well? > > > On Oct 31, 5:24 pm, blindfold <[EMAIL PROTECTED]> wrote: > > > > Thanks Jason! Great find! Seems that the user interface for > > > controlling this setting is now changing with later firmware, judging > > > from the discussion at > > > >http://forums.t-mobile.com/tmbl/board/message?board.id=Android3&threa... > > > > Regards > > > > On Oct 28, 12:27 am, Jason Proctor <[EMAIL PROTECTED]> wrote: > > > > > writing to /sdcard on my G1 failed until i turned off "act as USB > > > > disk" in the G1 preferences. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
Second that. Taking away the Settings option has made using the SDcard extremely inconvenient. The only way to dismount now seems to be by pulling the cable, which interferes with charging activity, if nothing else. Removing the menu option has really hurt the usability of this thing. On Nov 4, 1:34 pm, mitush <[EMAIL PROTECTED]> wrote: > *** also posted on T-mobile G1 forum *** > I have received the update, so my "Use for USB Storage" was replaced > by the notification. > > But where is the option to unmount the USB disk, while G1 is still > connected to the PC? I am writing a G1 app which writes to the sdcard > and, when debugging/testing, I have to constantly cycle through open > notifications-click-mount then look at the files on PC and then > phisically disconnect-reconnect US. Before the update, it was just a > single click both ways. If android developers read this, could you > please give us an otion to unmount as well? > > On Oct 31, 5:24 pm, blindfold <[EMAIL PROTECTED]> wrote: > > > Thanks Jason! Great find! Seems that the user interface for > > controlling this setting is now changing with later firmware, judging > > from the discussion at > > >http://forums.t-mobile.com/tmbl/board/message?board.id=Android3&threa... > > > Regards > > > On Oct 28, 12:27 am, Jason Proctor <[EMAIL PROTECTED]> wrote: > > > > writing to /sdcard on my G1 failed until i turned off "act as USB > > > disk" in the G1 preferences. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
*** also posted on T-mobile G1 forum *** I have received the update, so my "Use for USB Storage" was replaced by the notification. But where is the option to unmount the USB disk, while G1 is still connected to the PC? I am writing a G1 app which writes to the sdcard and, when debugging/testing, I have to constantly cycle through open notifications-click-mount then look at the files on PC and then phisically disconnect-reconnect US. Before the update, it was just a single click both ways. If android developers read this, could you please give us an otion to unmount as well? On Oct 31, 5:24 pm, blindfold <[EMAIL PROTECTED]> wrote: > Thanks Jason! Great find! Seems that the user interface for > controlling this setting is now changing with later firmware, judging > from the discussion at > > http://forums.t-mobile.com/tmbl/board/message?board.id=Android3&threa... > > Regards > > On Oct 28, 12:27 am, Jason Proctor <[EMAIL PROTECTED]> wrote: > > > writing to /sdcard on my G1 failed until i turned off "act as USB > > disk" in the G1 preferences. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
Thanks Jason! Great find! Seems that the user interface for controlling this setting is now changing with later firmware, judging from the discussion at http://forums.t-mobile.com/tmbl/board/message?board.id=Android3&thread.id=10705 Regards On Oct 28, 12:27 am, Jason Proctor <[EMAIL PROTECTED]> wrote: > writing to /sdcard on my G1 failed until i turned off "act as USB > disk" in the G1 preferences. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
You've mentioned turning off "act as USB disk" on G1. Did you mean "use for USB storage" under Settings->SD card or something else? On Oct 27, 6:27 pm, Jason Proctor <[EMAIL PROTECTED]> wrote: > writing to /sdcardon myG1failed until i turned off "act as USB > disk" in theG1preferences. > > >On Oct 25, 12:03 pm, blindfold <[EMAIL PROTECTED]> wrote: > >> Have others encountered problems writing to theSDcardof aG1? > >I've tried a small application that opens and writes text file into sd > >card (using plain Java File & FileWriter) and it works on emulator but > >fails onG1probably due to permission problem (query file.canWrite() > >returns false). And how about you? Which API do you use towritedata > >on SD? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
Hello all, I'm new to android development. I hope I could find some answer regarding sdcard. I'm trying to access a custom SQlite db file from my emulated SDCARD. The same db file can be access from the application databases folder but not from sdcard. In debug mode I have an "android.database.sqlite.SQLiteDiskIOException: disk I/O error" exception when trying to open database via : SQLiteDatabase.openDatabase("/sdcard/myDB.db", null, SQLiteDatabase.OPEN_READONLY); Could someone help me please ? I've look for this issue on the net but no succeed. Thanks. Thao --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
On Oct 28, 2:04 am, Jason Proctor <[EMAIL PROTECTED]> wrote: > you can use adb push and pull to copy stuff between the device and > the host machine. Wow, thanks! I was about to write "tried this already", but decided to check before I write and now it suddenly works! Actually it was my first approach, before those ideas with mass storage stuff I wrote above. I thought it didn't work because of tight security permissions, but now I see it didn't because of this concurrency issue and does work when I have this "act as USB disk" option turned off. Best Regards, Zigmar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
Hello David, On Oct 28, 1:56 am, David Given <[EMAIL PROTECTED]> wrote: > > Hi Jason! Thanks a lot for the tip - it did help. On other hand - I'm > > stuck. I was hoping to use sd card as a medium to transfer data > > between android app and usb host, but as it looks I can write either > > externally or internally but not both at the same time. I guess > > android developers had chosen not to implement fs synchronization, > > thus disabling concurrent writes. > > No phones can do this --- it's a filesystem limitation; FAT simply can't > cope with more than one concurrent user. Only really specialised > filesystems can do that, and most of them require additional hardware to > synchronise the different users. Thats not exactly true. FAT32 can do handle multiple concurrent readers/writes and that what it does all the time when you have fat- formatter partition on any modern multitasking OS. What is indeed correct, that no more than one FAT32 (and most others) filesystem can access underlaying storage simultaneously. What I don't sure, is how mass storage driver is implemented on android - if it uses hight level access via fs driver, there shouldn't be any problem writing both from external and internal processes as from fs driver's point of view those are just two local writers (somewhat similar to how NTFS server shares underlying single-user filesystem). On other hand, if mass storage driver shares a low-level storage access, and fs driver running on client side, there of course would be impossible to access local fs at the same time. > If you want to allow the PC and the phone to access the device > concurrently, you'll need to use a file system server on the phone and > proxy requests from the PC. JCIFS looks helpful here. I would be happy if I just had an access to USB from android app (the whole fs thing is just a workaround) but AFAIK I unfortunately don't. And without way to physically transfer data, FS server won't help me much. Best Regards, Zigmar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
Pavel Antokolsky aka Zigmar wrote: [...] > Hi Jason! Thanks a lot for the tip - it did help. On other hand - I'm > stuck. I was hoping to use sd card as a medium to transfer data > between android app and usb host, but as it looks I can write either > externally or internally but not both at the same time. I guess > android developers had chosen not to implement fs synchronization, > thus disabling concurrent writes. No phones can do this --- it's a filesystem limitation; FAT simply can't cope with more than one concurrent user. Only really specialised filesystems can do that, and most of them require additional hardware to synchronise the different users. If you want to allow the PC and the phone to access the device concurrently, you'll need to use a file system server on the phone and proxy requests from the PC. JCIFS looks helpful here. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ ⍎'⎕',∊N⍴⊂S←'←⎕←(3=T)⋎M⋏2=T←⊃+/(V⌽"⊂M),(V⊝"M),(V,⌽V)⌽"(V,V←1⎺1)⊝"⊂M)' │ --- Conway's Game Of Life, in one line of APL signature.asc Description: OpenPGP digital signature
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
On Oct 28, 1:27 am, Jason Proctor <[EMAIL PROTECTED]> wrote: > writingto /sdcard on myG1failed until i turned off "act as USB > disk" in theG1preferences. Hi Jason! Thanks a lot for the tip - it did help. On other hand - I'm stuck. I was hoping to use sd card as a medium to transfer data between android app and usb host, but as it looks I can write either externally or internally but not both at the same time. I guess android developers had chosen not to implement fs synchronization, thus disabling concurrent writes. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: Problems writing to SD card of physical T-Mobile G1?
On Oct 25, 12:03 pm, blindfold <[EMAIL PROTECTED]> wrote: > Have others encountered problems writing to theSDcardof aG1? I've tried a small application that opens and writes text file into sd card (using plain Java File & FileWriter) and it works on emulator but fails on G1 probably due to permission problem (query file.canWrite() returns false). And how about you? Which API do you use to write data on SD? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---