|
Karthe posted:Is a ContentProvider necessary when I'm just working with internal SQLite databases? I'm learning about them now and am left wondering if implementing one would be overkill; all I want to do is move database queries into a separate thread so the app won't hang. Right now I'm only querying static databases, though I will eventually implement another database that will be populated with user-generated content produced from within the app. I want to handle all of the database-related stuff in a database helper class, but everything I've read about introducing threading into the process points me to implementing a CP. Nothing wrong with just calling rawQuery on a SQLiteDatabase object until you start to have more complex queries. The CommonsWare library is ace for asynchronous SQLite queries, but you may not actually need it.
|
# ¿ Feb 26, 2013 05:07 |
|
|
# ¿ Apr 28, 2024 00:57 |
|
Claeaus posted:I've started looking into AsyncTask and planning on implementing it in my project. However, I would prefer if I could keep them separate from the rest of the code as I've got quite a nice MVC thing going on. Awhile ago on a project in school, one of my classmates did something like this: code:
|
# ¿ Aug 20, 2013 18:28 |
|
Glimm posted:Looks like 4.4 KitKat has been announced, no SDK updates yet though: Boy, isn't it great that there's gonna be another new Android version? 4.3's been out for like a whole month or something!
|
# ¿ Sep 3, 2013 21:49 |
|
TheReverend posted:I'm haveing an issue with an Exception Since nobody is answering you - my bet is that when you rotate your device, the activity is destroyed and relocated, and whatever populates the popupWindow is retaining the Context to the previous instance of the activity. Set your activity to handle rotation by adding android:configChanges="orientation" to its activity declaration in the Manifest and by implementing OnConfigurationChanged() in your activity. Or just have your activity pass along a new Context when it's recreated.
|
# ¿ Sep 22, 2013 04:47 |
|
Yay, WebView will be less unusably bad now I anxiously await 2015 when 4.4 makes up 40% of the market
|
# ¿ Oct 31, 2013 21:32 |
|
Why not pass the text as an extra to the new activity?
|
# ¿ Nov 27, 2013 21:38 |
|
|
# ¿ Apr 28, 2024 00:57 |
|
Tunga posted:I guess you could check the Google accounts on the device against a hardcoded whitelist. Alternately, add your device's serial number to a string array in resources and check against that. code:
|
# ¿ Dec 26, 2013 20:58 |