**** BEGIN LOGGING AT Fri Nov 21 02:59:57 2008 Nov 21 10:18:34 hi to all Nov 21 16:12:13 Good morning #android-dev. Nov 21 16:13:05 Good morning Nov 21 16:37:00 hey all... when I create my own text view it seems to get a different font that the text views in my activity layout.. Nov 21 16:37:11 how do I make them the same? Nov 21 17:01:11 Was it intentional to make ExpandableListView not update the group count on notifyDatasetChanged Nov 21 17:03:08 famast: I doubt it. File a bug. Nov 21 19:06:42 romainguy_: hmm, i ran into an interesting snag with my approach to track and wrap cursors that my provider hands out Nov 21 19:06:46 to support the database changing Nov 21 19:07:29 in particular, you can't trigger content or datasetobservers from any thread other than the UI thread when a cursor is being used by a ListAdapter Nov 21 19:07:42 the adapter doesn't support this by using a handler or runOnUiThread Nov 21 19:08:27 this means, for instance, you could not close a cursor you sent to a list adapter from any other thread Nov 21 19:08:44 despite that cursors are otherwise thread safe i believe Nov 21 20:23:17 i worked around the issue above by creating a handler when i create my cursor wrapper, and making sure any operation that i call from another thread is run in it. Nov 21 20:32:44 and hooray, i got it working. an efficient way to download and load a sqlite3 database prepared externally Nov 21 20:33:01 with gracefully requerying any open cursors Nov 21 20:33:15 there is a brief window where queries can fail, but it is quite small Nov 21 20:41:02 nice Nov 21 20:41:20 now if only my externally-prepared sqlite db didn't cause my app to crash on the phone :( Nov 21 20:57:53 hmm? Nov 21 20:58:02 i tested all this using a sqlite3 db i made elsewhere Nov 21 20:58:15 but its somewhat tricky to get it loaded up Nov 21 21:07:03 Disconnect: http://code.google.com/p/android-random/source/browse/trunk/SqliteInjectionTest/src/org/devtcg/demo/sqliteinjection/Provider.java Nov 21 21:07:07 here's how i did it. Nov 21 21:07:20 ReplaceDbThread is where all the work is Nov 21 21:07:46 * Disconnect isn't doing actual downloads while the app is running, i'm just having issues with a db i copied in causing crashes in the dev but not in the emu Nov 21 21:09:41 oh, i haven't tested it on the device yet. i did not expect there to be differences Nov 21 21:09:44 Disconnect: whats the crash? Nov 21 21:10:50 E/AndroidRuntime(21406): android.database.sqlite.SQLiteException: error code 14 Nov 21 21:10:54 that said, i am copying in meta tables from the android database when i replace it with one created elsewhere. if youre seeing an exception raised regarding setLocale or anything like that then your problem is likely the one i saw and worked around earlier Nov 21 21:11:10 hmm, im gonna try deploying this code on the phone then Nov 21 21:11:59 reads work, thats an update (coincidentally of the same data, but it happens when I make changes as well) Nov 21 21:12:22 and new rows do the same thing. but all these things (and more, for just $19.99!..er, wait) all these things work fine on the emu Nov 21 21:12:27 identical db, identical perms, etc. Nov 21 21:14:16 hmm. Nov 21 21:14:38 i will try my code. i just need to tidy a few things Nov 21 21:15:02 i'm gonna argue with it on sun prolly. gotta run now (wif's birthday, bunch of stuff to do in b'more tonight) Nov 21 21:15:22 well ill let you know what i find Nov 21 21:15:46 cool deal Nov 21 21:15:59 i'll prolly post to the dev list once i get a simple test case running Nov 22 00:06:07 i dont think ive ever been able to successfully install an apk from the web :\ Nov 22 00:06:12 not sure what im doing wrong Nov 22 00:06:45 this most recent one i tried says it is replacing an app (it isnt), and then it says it requests no permissions (it does), then when i hit install it just says it was unsuccessful Nov 22 00:07:01 i just copied the apk from my project's bin/ folder that Eclipse produced Nov 22 01:51:17 Jasta: was it signed as Debug, or non-debug? Nov 22 01:53:38 i don't know... Nov 22 01:53:50 i didn't know there were two ways to sign an apk? Nov 22 01:54:42 well, there aren't really two ways, but it's common for devs to use two certificates. Nov 22 01:55:02 s/certificates/signatures/ Nov 22 02:23:30 I know default just running ant will generate a debug build Nov 22 02:23:48 I think you have to select release in eclipse...I haven't used it with android development yet **** ENDING LOGGING AT Sat Nov 22 02:59:56 2008