Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 9
    Because it takes too long to load an SQLite database, considering that this is on the critical path to showing the user the app's UI. I have not actually timed it, so I'm happy to be corrected, but surely loading and opening a database file won't be fast? Commented Nov 26, 2012 at 22:10
  • 5
    Thank you so much for providing a solution a newbie can cut and paste into their app and use right away! @Tom As far as speed goes it takes about seven seconds to store 1000 pairs, but you can do it in an AsyncTask. However, you need to add a finally { cursor.close() } or it will crash from memory leak while doing this. Commented May 4, 2013 at 11:46
  • 3
    I came across this and while it seems neat I'm hesitant to try utilizing this on Google Glass, which is the device I'm working on/with lately. Commented Oct 31, 2014 at 18:04