can't save stuff on external SD drive ...

Bug #1157396 reported by Oz123 on 2013-03-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tomdroid
Fix Released
Wishlist
Unassigned

Bug Description

I have a sony xperia e with an external SD card. This card is mouted on:

     /mnt/ext_card

I am not able to save stuff on it.

I tried saving on:

     /mnt/ext_card/tomdroid

or

   /../mnt/ext_card/tomdroid

However, tomdroid always expect the directory to be under mount.

It would be nice to be able to save stuff on the miniSD card.

Thanks,
Oz

Hi! The notes should per default go to your external sd card. If this is not the case, we unfortunately can't change it easily as it is done by Android code.

We do this: Environment.getExternalStorageDirectory() + "/" + locationUri + "/"

where locatoinUri is the string you enter in the text field. if your device does not return the sdcard with Environment.getExternalStorageDirectory() but another storage location, you might have to change this in your Android system.

Sorry for that,
Stefan

Changed in tomdroid:
status: New → Incomplete
Oz123 (nahumoz) wrote :

Hi Stefan,

Unfortunately, I can't find how to change this in my Sony XPERIA E.

But why is it really necessary to to do: Environment.getExternalStorageDirectory() for all case?

Do this this is a field to fill in the recommended path, but don't force it. Please.

I don't want to set up a whole development environment just to change one line of code.
I beg you ... don't do this as default, what if I don't want at all to save stuff on the external card?

Oz123 (nahumoz) wrote :

So, just a little bit more info. A really good way to save stuff properly can be see in gnucash for android. You can really browse and find the path you want to share. Good work, easy to choose, not confusing the user with feeling paths manually.
I bet there is a directory chooser dialog for android. Should not be so hard to implement.

bugmenot (bugmenot2345234532) wrote :

And I am not able to specify a custom directory. It forces me to save to SDCard. I WANT TO SPECIFY MY OWN DIRECTORY!!

Since there is no progress in this for like 9 Months, I dont think they will ever change this. Lol seriously...hardcoded directories...ahahahah fail

Olivier Bilodeau (plaxx) wrote :

Nice trollin' friend.

At the beginning when I first wrote this thing it made little sense to allow messing around. There was only one real android device: dev phone one. Devices all had sdcard in /mnt/sdcard/ and it felt like they will always do.

At that time it was simpler to decide for the user. But now, things are more complicated and I agree that flexibility should be added to support more devices and workflows.

Anyone willing to tackle this task should do so and I'm pretty sure that it will get merged if done properly (aka user-friendly way). Looks like gnucash for android would be a good place to look for inspiration (full disclosure: I haven't checked).

Changed in tomdroid:
milestone: none → 0.7.5
assignee: nobody → Stefan Hammer (j-4)
importance: Undecided → Wishlist
status: Incomplete → Fix Committed
Changed in tomdroid:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers