Lectori salutem,
I’d like to implement a search in my application, my main data stucture, a ListOf(custom class) is in my main activity. Which is a json-ed object with over 2500 objects. The json file gets loaded/parsed on the startup of my application, this takes about 30 seconds. So passing the data in a .putextra is really not an option. The search dialog would take 30 seconds to even start searching, not to mention you’d have twice the memory usage.
So question is, what are my options here? Is there a way of passing the search query to my mail intent, and handle it there, so I can address the existing data structure?
It sounds like you would be best off using a SQLite database. You can even distribute a pre-populated database with your application to minimize load time.
You can get started here: http://developer.android.com/guide/topics/data/data-storage.html#db