[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-18 Thread Nobu Games
What about showing an error message for making the user aware of that problem? Alternatively your app could also listen to ACTION_MEDIA_MOUNTED broadcasts. As soon as the external storage is available your app could perform pending write operations (or copy over files you temporarily stored in

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Terry
Thank you again, Mark. You say that No device that legitimately has the Google Play Store on it will ship with less than 1GB of external storage -- it's a requirement. This is getting interesting. I checked on a new HTC One V. There the Environment method getExternalStoragePublicDirectory()

Re: [android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Mark Murphy
On Sun, Jun 17, 2012 at 4:26 AM, Terry terb...@gmail.com wrote: I checked on a new HTC One V. There the Environment method getExternalStoragePublicDirectory() returns /mnt/sdcard, which cannot be used for anything. Trying to write there fails. The external memory is also reported as

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Chris Stratton
On Jun 16, 11:43 am, Mark Murphy mmur...@commonsware.com wrote: On Sat, Jun 16, 2012 at 11:33 AM, Terry terb...@gmail.com wrote: HOW do you get the preferred directory in internal storage? There is no preferred directory, insofar as the preferred directory concept implies that the user has

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Chris Stratton
On Jun 17, 4:26 am, Terry terb...@gmail.com wrote: I checked on a new HTC One V. There the Environment method getExternalStoragePublicDirectory() returns /mnt/sdcard, which cannot be used for anything. Trying to write there fails. The external memory is also reported as unmounted. There IS

Re: [android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Mark Murphy
On Sun, Jun 17, 2012 at 9:49 AM, Chris Stratton cs07...@gmail.com wrote: There is no preferred directory, insofar as the preferred directory concept implies that the user has access to the files, and they don't have access to internal storage except via your app (or except via rooting their

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Terry
You asked What happens if you try to download something (perhaps a PDF file) with the built in browser? Good question. WIth an SDcard inserted, I tried to download a free ebook. That went well. Then i removed the SDcard, and tried again. This time I was informed (by the built in web browser)

Re: [android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Mark Murphy
On Sun, Jun 17, 2012 at 10:23 AM, Terry terb...@gmail.com wrote: WIth an SDcard inserted, I tried to download a free ebook. That went well. And the file wound up where? /mnt/sdcard? You said that did not work (which cannot be used for anything. Trying to write there fails.) However, if I use

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Terry
Mark; You asked: And the file wound up where? /mnt/sdcard? You said that did not work (which cannot be used for anything. Trying to write there fails.) Sorry. I could have been a little clearer here. Yes, when the SDcard was inserted in the device, the downloaded file was saved on the sdcard

Re: [android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Mark Murphy
On Sun, Jun 17, 2012 at 10:43 AM, Terry terb...@gmail.com wrote: You asked: And the file wound up where? /mnt/sdcard? You said that did not work (which cannot be used for anything. Trying to write there fails.) Sorry. I could have been a little clearer here. Yes, when the SDcard was

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Chris Stratton
On Jun 17, 10:23 am, Terry terb...@gmail.com wrote: You asked What happens if you try to download something (perhaps a PDF file) with the built in browser? Good question. WIth an SDcard inserted, I tried to download a free ebook. That went well. Then i removed the SDcard, and tried

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Terry
Chris; No, the HTC One V is sold WITHOUT an SDcard. Regards, Terry On 17 Jun, 18:09, Chris Stratton cs07...@gmail.com wrote: On Jun 17, 10:23 am, Terry terb...@gmail.com wrote: You asked What happens if you try to download something (perhaps a PDF file) with the built in browser?

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Terry
And that is why I do NOT understand when Mark is saying hat means your device is behaving within normal parameters. Terry On 17 Jun, 18:09, Chris Stratton cs07...@gmail.com wrote: On Jun 17, 10:23 am, Terry terb...@gmail.com wrote: You asked What happens if you try to download something

Re: [android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Mark Murphy
On Sun, Jun 17, 2012 at 12:51 PM, Terry terb...@gmail.com wrote: And that is why I do NOT understand when Mark is saying hat means your device is behaving within normal parameters. Ah, now we're getting somewhere. That's a flaw in the distribution of this device -- whether that is HTC's issue,

Re: [android-developers] Re: Where to save data on devices without an sdcard?

2012-06-17 Thread Kostya Vasilyev
To give this discussion a bit more context: Various manufacturers (primarily HTC and Samsung) have been creating devices that have this additional memory partition (on top of the memory card and the internal storage), which can't be found using Android framework API, for the past two years or so.

[android-developers] Re: Where to save data on devices without an sdcard?

2012-06-16 Thread Terry
Thank you, Mark. Even if a new device is sold without an sdcard, we would still like our apps to work. So; if a device does not have an sdcard, WHERE would you recommend to store data (e.g. picture files)? HOW do you get the preferred directory in internal storage? Regards, Terry On 16 Jun,

Re: [android-developers] Re: Where to save data on devices without an sdcard?

2012-06-16 Thread Mark Murphy
On Sat, Jun 16, 2012 at 11:33 AM, Terry terb...@gmail.com wrote: Even if a new device is sold without an sdcard, we would still like our apps to work. No device that legitimately has the Google Play Store on it will ship with less than 1GB of external storage -- it's a requirement. So; if a