App Crashes on Android Devices with External SD Memory

Hi everyone,

I’ve had a few reports from Android users that my app crashes straight after the default.png is shown (so before the app actually starts running properly).

The one thing all these users have in common is that they have an external SD card being used for extra storage space.

Is this likely to cause a problem? I’m saving my app’s database file to the documents directory the first time the app runs and the crash happens around that point. I can’t recreate the crash but I don’t have a device with external SD memory.

Should my database be saved somewhere different (path to the SD card) or should all this be handled by Corona / the device…

Any ideas would be greatly appreciated.

Thanks,

Ian [import]uid: 123492 topic_id: 35394 reply_id: 335394[/import]

Sorry - I should add that thousands of other Android users have installed and are running the app no problem at all and I’ve tested thoroughly on several Android devices with no problems either. Thanks. [import]uid: 123492 topic_id: 35394 reply_id: 140638[/import]

Corona actually doesn’t provide access to external storage on Android. All of the directories we provide (ie: Documents, Temporary, and Caches) reside in internal storage. The Resources directory actually points to the APK’s internal assets directory, which shouldn’t be a problem either.

Do you know what the specific error is?
If your app is distributed via Google Play, then they should be able to provide you the exception message.
[import]uid: 32256 topic_id: 35394 reply_id: 140684[/import]

Sorry - I should add that thousands of other Android users have installed and are running the app no problem at all and I’ve tested thoroughly on several Android devices with no problems either. Thanks. [import]uid: 123492 topic_id: 35394 reply_id: 140638[/import]

Corona actually doesn’t provide access to external storage on Android. All of the directories we provide (ie: Documents, Temporary, and Caches) reside in internal storage. The Resources directory actually points to the APK’s internal assets directory, which shouldn’t be a problem either.

Do you know what the specific error is?
If your app is distributed via Google Play, then they should be able to provide you the exception message.
[import]uid: 32256 topic_id: 35394 reply_id: 140684[/import]

Hi,

Sorry for posting here!
I’m developing an app that basically lets user download catalogs. The problem is each catalog rounds 1Gb and my Android device has got 2Gb of internal storage and 16Gb of nand flash storage.
Is it possible to download each catalog to the nand flash storage?

I’d appreciate so much any help!

Alberto. [import]uid: 44013 topic_id: 35394 reply_id: 142889[/import]

Unfortunately, Corona does not currently provide access to external storage. This is because we haven’t decided on how to create a cross-platform API for it considering that iOS (and in the future Mac store apps) are sandboxed.

There isn’t much demand for this feature either…
http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/filters/top

I’m sorry, but I don’t think there is a way to achieve what you want with Corona at the moment.
[import]uid: 32256 topic_id: 35394 reply_id: 142931[/import]

Thanks Joshua!
I think is very important developers can copy files to external storage because now, in Android, we are limited, for example, to 2Gb of internal storage.
If I could copy the downloaded files to another directory at external storage, I could release my app. [import]uid: 44013 topic_id: 35394 reply_id: 143196[/import]

Hi,

Sorry for posting here!
I’m developing an app that basically lets user download catalogs. The problem is each catalog rounds 1Gb and my Android device has got 2Gb of internal storage and 16Gb of nand flash storage.
Is it possible to download each catalog to the nand flash storage?

I’d appreciate so much any help!

Alberto. [import]uid: 44013 topic_id: 35394 reply_id: 142889[/import]

Unfortunately, Corona does not currently provide access to external storage. This is because we haven’t decided on how to create a cross-platform API for it considering that iOS (and in the future Mac store apps) are sandboxed.

There isn’t much demand for this feature either…
http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/filters/top

I’m sorry, but I don’t think there is a way to achieve what you want with Corona at the moment.
[import]uid: 32256 topic_id: 35394 reply_id: 142931[/import]

Thanks Joshua!
I think is very important developers can copy files to external storage because now, in Android, we are limited, for example, to 2Gb of internal storage.
If I could copy the downloaded files to another directory at external storage, I could release my app. [import]uid: 44013 topic_id: 35394 reply_id: 143196[/import]

Hi,

Sorry for posting here!
I’m developing an app that basically lets user download catalogs. The problem is each catalog rounds 1Gb and my Android device has got 2Gb of internal storage and 16Gb of nand flash storage.
Is it possible to download each catalog to the nand flash storage?

I’d appreciate so much any help!

Alberto. [import]uid: 44013 topic_id: 35394 reply_id: 142889[/import]

Unfortunately, Corona does not currently provide access to external storage. This is because we haven’t decided on how to create a cross-platform API for it considering that iOS (and in the future Mac store apps) are sandboxed.

There isn’t much demand for this feature either…
http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/filters/top

I’m sorry, but I don’t think there is a way to achieve what you want with Corona at the moment.
[import]uid: 32256 topic_id: 35394 reply_id: 142931[/import]

Thanks Joshua!
I think is very important developers can copy files to external storage because now, in Android, we are limited, for example, to 2Gb of internal storage.
If I could copy the downloaded files to another directory at external storage, I could release my app. [import]uid: 44013 topic_id: 35394 reply_id: 143196[/import]

Hi,

Sorry for posting here!
I’m developing an app that basically lets user download catalogs. The problem is each catalog rounds 1Gb and my Android device has got 2Gb of internal storage and 16Gb of nand flash storage.
Is it possible to download each catalog to the nand flash storage?

I’d appreciate so much any help!

Alberto. [import]uid: 44013 topic_id: 35394 reply_id: 142889[/import]

Unfortunately, Corona does not currently provide access to external storage. This is because we haven’t decided on how to create a cross-platform API for it considering that iOS (and in the future Mac store apps) are sandboxed.

There isn’t much demand for this feature either…
http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/filters/top

I’m sorry, but I don’t think there is a way to achieve what you want with Corona at the moment.
[import]uid: 32256 topic_id: 35394 reply_id: 142931[/import]

Thanks Joshua!
I think is very important developers can copy files to external storage because now, in Android, we are limited, for example, to 2Gb of internal storage.
If I could copy the downloaded files to another directory at external storage, I could release my app. [import]uid: 44013 topic_id: 35394 reply_id: 143196[/import]