Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make possible to move the app to SD Card #40

Open
jowouters opened this issue Jun 25, 2013 · 6 comments
Open

Make possible to move the app to SD Card #40

jowouters opened this issue Jun 25, 2013 · 6 comments
Labels

Comments

@jowouters
Copy link

It is currently no possible to move the application (248 KB + 2.45MB data) to SD Card. This limits the usage for low-end smart phones.

@swentel
Copy link
Owner

swentel commented Jun 25, 2013

Hmm interesting, will need to check out how that actually works, good suggestion!

@swentel
Copy link
Owner

swentel commented Jun 25, 2013

@jowouters
Copy link
Author

Yes it is :-) and I do not think there is a technical reason why this app should reside in main memory.

@swentel
Copy link
Owner

swentel commented Jun 25, 2013

From the docs

"The .apk file is saved to the external storage, but any application data (such as databases) is still saved on the internal device memory."

Will have to test how this behaves. The app itself is around 200kb - still, being able to move it is an option that should be available.

@jowouters
Copy link
Author

Since you are using SQLLite DB, you should be able to pass a path to external storage when the DB is created ( http://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#openDatabase(java.lang.String, android.database.sqlite.SQLiteDatabase.CursorFactory, int, android.database.DatabaseErrorHandler) )

It might be necessary to add extra logic to handle unavailable external storage (unmounting the SD Card or not having any external storage at all).

Mmmm, this is getting harder than initially expected :-/

@swentel
Copy link
Owner

swentel commented Apr 19, 2014

The ability to move the app has been added. The app will be much larger due to the Google Analytics library (which has an opt-out setting though). Looking into moving the db as well, but that's indeed a bit harder :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants