**** BEGIN LOGGING AT Fri May 08 02:59:57 2009 May 08 05:19:51 * jasta scratches his head May 08 05:20:16 trying to add shortcut support to my app and everytime i click on a shortcut ive made it says "Application is not installed on your phone." May 08 05:21:04 i was getting an exception in logcat saying i needed to export the activity but i reorged adn now no longer specify the class directly, but rather expect the intent-filter to work it out. maybe i'm not doing something right, hmm. May 08 05:24:20 doh, figured it out. my filter was using cryptic message when it meant to say the intent wasnt resolved May 08 06:36:05 Good Morning..!! May 08 06:44:46 anybody used google app engine auth on an android app? May 08 06:46:03 nm http://code.google.com/apis/accounts/docs/AuthForWebApps.html May 08 10:56:35 can somebody tell me if I am using the sensors correctly? I updated my app to 1.5 and i had to change the sensor code May 08 10:57:19 my application is an object that "extends Activity implements SensorEventListener" May 08 10:57:44 then in the constuctor I create a sensor manager object by sm = (SensorManager) getSystemService(SENSOR_SERVICE); May 08 10:58:04 then I register a listener by "sm = (SensorManager) getSystemService(SENSOR_SERVICE);" May 08 10:58:18 err.. sorry sm.registerListener(this, sm.getDefaultSensor(Sensor.TYPE_ORIENTATION), SensorManager.SENSOR_DELAY_FASTEST); May 08 10:58:42 then I respond to events in my sensorvaluechanged method. May 08 11:17:30 it crashes on the constructor May 08 11:17:45 on the sm = (SensorManager) getSystemService(SENSOR_SERVICE); May 08 11:17:56 do you have permissions? May 08 11:18:01 i think you might need a permission for sensor May 08 11:20:59 how can I check if I have permission? on my manifest? May 08 11:21:21 it crashed on the real device, I am now using it with the emulator May 08 11:22:28 and it crashes with the emulator too. the emulator doesnt ask for permissions to install an application May 08 11:36:01 blau-mikeDG: are you available ? May 08 11:36:56 Have you worked with Sqlite queries and could tell me why this command: http://paste.pocoo.org/show/97TJnU8xxjC8OScDG8K9/ only creates one table but not the other ones. May 08 11:39:58 maybe you're only allowed one command per submission or something? May 08 11:40:45 yeah this came up a few weeks ago May 08 11:41:04 try having 3 separate strings, each holding one create statement May 08 11:43:53 hmm ok. I have tried that right now but again only one got created. :( Now I have: http://paste.pocoo.org/show/DOEyq4E4gVi60rxfEg4E/ - Three times I am executing the SQL: http://paste.pocoo.org/show/UExrz9uqFSsQVfPlGSls/ May 08 11:44:00 strange :( May 08 12:32:03 anybody know how jf(or other modders) get the adp market to see protected apps? May 08 13:01:09 they probably just change the build fingerprint or something May 08 13:01:24 i dunno how it works but they can mod the market app to make it report it's a g1 i guess May 08 13:50:37 hi everyone... anyone used simpull physics on android? May 08 13:56:19 ezome: what do you mean? May 08 13:58:54 it works quite well but i didn't find a way to define some kind of bounding box where the calculations take place. some kind of screen area that contains all objects May 08 13:59:54 adding fixed rectangles at the edges didnt work... my objects collide with each other but skip the screen borders May 08 14:03:05 <[cliff]> hi all May 08 14:03:31 <[cliff]> is it possible to clear the history stack somehow? given this activity navigation: A -> B -> C May 08 14:03:33 <[cliff]> when C opens May 08 14:03:39 <[cliff]> I'd like to clean up A and B May 08 14:03:43 <[cliff]> is this possible at all? May 08 14:03:56 you can finish() A and B May 08 14:03:57 <[cliff]> I'm setting these flags: Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TOP May 08 14:04:00 <[cliff]> but no dice May 08 14:04:25 <[cliff]> zhobbs I don't want to do that because from B you should be able to get to A May 08 14:04:32 <[cliff]> to be more specific, C is a login dialog May 08 14:04:41 <[cliff]> A, B are regular app screens May 08 14:04:48 <[cliff]> so when the login activity is displayed May 08 14:04:50 guess I don't understand what you want the result to be from the user's perspective May 08 14:04:55 <[cliff]> the user should not be able to go back May 08 14:05:03 <[cliff]> because it can be that his session has expired May 08 14:05:22 <[cliff]> or if the user logs out of the app May 08 14:05:33 <[cliff]> it makes little sense to keep A and B around May 08 14:05:51 so what should happen if they go back from C? May 08 14:06:07 <[cliff]> exit to the home screen May 08 14:08:38 and A or B can launch C? May 08 14:08:51 <[cliff]> no, only B May 08 14:09:21 I would just startActivityForResult when starting C, and if result is bad then finish() May 08 14:09:44 <[cliff]> here's the concrete flow: My app main activity -> Preferences option -> Preferences activity -> logout option -> Login dialog (clears history stack) May 08 14:53:23 anyone have any tips for improving efficiency when working with larger cursors? or ways to avoid working with large cursor? May 08 15:23:02 zhobbs, depending on your application, you can break it up into sections but using "offset" and "limit". Though I'd have to check to see if "offset" is supported by the sql implementation May 08 15:23:25 zhobbs, for example, select * from blah offset 0 limit 10 for the first page May 08 15:23:43 BlindOracle: yeah...I'm thinking about using offset and limit and just keeping x amounts of buffer on each side.. May 08 15:23:46 and then, select * from blah offset 10 limit 10 for the next - so on and so on May 08 15:24:17 zhobbs, it also helps to only select the columns you require - so * is bad May 08 15:25:22 also, if the initial query is complicated (ie, multiple joins), does that slow down moving/getting from the Cursor? or just the initial population? May 08 15:25:43 zhobbs, and make sure to check out a query plan and see if indexes may help - obviously linearly advancing through a table an index isn't going to help May 08 15:26:02 zhobbs, just initial population May 08 15:26:28 joins do use more memory so it will place additional memory pressure on other applications. May 08 15:26:39 zhobbs, and so does sorting May 08 15:27:53 zhobbs, how many joins are you doing? May 08 15:27:56 any idea if moveToNext() is more efficient than moteToPosition()? May 08 15:27:59 3 tables May 08 15:28:28 zhobbs, for embedded, you likely don't want to do more than three or four May 08 15:28:45 T1 left outer join T2 left out join T3 May 08 15:28:49 zhobbs, and *wild guess* is that moveToNext is more effecient based on assumptions of how I would implement it May 08 15:29:08 ok...doing some profiling to see what helps where... May 08 15:29:45 zhobbs, and if you don't know how to look/generate at a query plan, let me know. May 08 15:30:10 I'm not using indexes either...didn't even think about it with SQLite May 08 15:31:49 zhobbs, indexes can make HUGE improvements on performance, especially on embedded systems, but it largely depends on your queries May 08 15:32:08 ok, going to alter the tables and compare the times May 08 15:32:31 zhobbs, as I said above, linearly advancing through an entire list isn't going to help May 08 15:33:18 zhobbs, how long are your queries taking? May 08 15:33:50 only 500 ms...but it's possible that some systems could have 5x as many records May 08 15:34:04 400-500 ms May 08 15:34:23 zhobbs, record count doesn't nessesarily translate linearly. May 08 15:34:29 gotcha May 08 15:35:08 there's a lot of overhead up front to simply parse the query, generate a query plan, and start executing May 08 15:35:10 are the developers of sipdroid here? May 08 15:36:00 BlindOracle: hmm, looks like SQLite automatically creates indexes on primary keys, so I am using index May 08 15:36:09 zhobbs, and I *think* data providers also open/close constantly May 08 15:36:22 zhobbs, ya, that's typically how PKs are enforced May 08 15:37:46 BlindOracle: thanks for the info btw May 08 15:37:57 zhobbs, no problem...was taking a break May 08 15:38:48 zhobbs, http://sqlite.org/lang_explain.html <--- is your friend for query optimization May 08 15:39:26 cool, thanks May 08 15:39:37 zhobbs, ;) May 08 15:39:39 speaking of sqlite, anyone here care about what looks like a bug with passing the string formater to rawQuery? May 08 15:39:51 I have a standalone program I"m about to drop into postbin... pretty simple case May 08 15:41:15 soreachilles, bug with rawQuery or string formatter? May 08 15:41:44 so I dont' want to claim bug, but it sure looks like it to me.. with rawQuery May 08 15:42:10 soreachilles, sure...what the heck :) May 08 15:42:25 so I'll post my app, but briefly.. May 08 15:42:42 sqlite has date functions where you can go , strftime('%d', 'now') May 08 15:42:49 if you pass that thru rawquery, you get 0 May 08 15:42:59 if you just paste that in sqlite cmd prompt, you get today's day of month May 08 15:43:13 i think rawquery is trying to do something with the %d -- just a guess May 08 15:43:43 or maybe there's a way to escape the %d so it passes it through, but like %Y %m etc go thru fine to sqlite May 08 15:45:38 soreachilles, are you sure string formatter doesn't chew on escape sequences? May 08 15:45:55 I'm passing a string literal through to rawQuery May 08 15:45:58 err, c-style string formatting May 08 15:46:08 yeah that's what I think is happening somewhere down the rawQuery path May 08 15:46:27 * BlindOracle is looking up rawQuery docs May 08 15:47:43 if you do, rawQuery("select strftime('%d', 'now')", null) it seems to chew on the %d somewhere down there May 08 15:47:57 here's the test app May 08 15:47:59 http://pastebin.com/m738386af May 08 15:48:22 soreachilles, rawQuery allows for the use of selection args May 08 15:48:30 using ? May 08 15:48:33 soreachilles, I bet its trying to substitute May 08 15:48:33 not %d May 08 15:48:37 me too May 08 15:48:40 that's the bug May 08 15:48:59 I'm guessing anyway, maybe it's me, maybe there's some meta-way to escape %d's in strings in android in general.. dunno May 08 15:52:17 hi May 08 15:52:59 is it possible to hook to the onclick event of a dialogpreference ? May 08 15:53:18 soreachilles: fyi, I use strftime('%s', current_timestamp) and it's working for me May 08 15:53:19 soreachilles, try this: select strftime("%"||"d", 'now') ; May 08 15:53:47 interesting....so it's the "now" that was hosing it? May 08 15:54:44 now should be fine May 08 15:54:50 hang on what's %||D ? heh May 08 15:55:06 oic May 08 15:55:14 soreachilles, it concats the two strings at the SQL layer May 08 15:55:31 yeah I had to pull out some old braincells for that May 08 15:55:35 so I was hoping it would get through the rawQuery call and pass literally May 08 15:55:52 nope May 08 15:56:02 lemme see what that's doing, one sec May 08 15:56:23 yeah that doesn't even work on the sqlite3 cmd line app May 08 15:56:43 I can work around this, by selecting the whole julianday out of sqlite and parsing it myself, but it'd be nice if %d worked thru rawquery .. May 08 15:56:44 soreachilles, oh really...I just tried it here on the command line - must be a version diff May 08 15:56:55 wait I tried it different May 08 15:57:11 ah ok your way did work, trying from code.. May 08 15:58:05 This also works here. So depending on what's being chomped; select strftime('%'||'d', 'n'||'ow') ; May 08 15:58:06 but that string will just get concat'd before it gets to rawquery.. May 08 15:58:28 soreachilles, java concats with ||? May 08 15:58:42 oic rawquery won't touch the || May 08 15:58:45 hopefully May 08 15:59:10 exactly - I'm hoping to pass the || and the two strings so the sql layer has to concat and execute, which is what you wanted anyways May 08 16:01:50 also could try rawQuery("select strftime(?, ?)", new String[] {"%d", "now"}) May 08 16:02:34 sql concat'ing didn't work thru rawquery, but I dunno why not... sure seems like it should hvae May 08 16:02:42 select strftime('%'||'d', 'now') as dom May 08 16:03:07 anything wrong with that? (zhobbs, I'll try that in a sec) May 08 16:05:27 soreachilles, seems reasonable May 08 16:06:12 soreachilles, what is the result you get back from sqllite? May 08 16:06:17 08 May 08 16:06:32 soreachilles, in your app I mean May 08 16:06:36 zhobbs's way no workie either May 08 16:06:37 the bad result May 08 16:06:39 in my app, 0 May 08 16:06:51 the column index is found, but the value is always 0 May 08 16:06:59 but the other %'s tings work. like %Y for year, etc May 08 16:08:00 soreachilles, try using zhobbs suggestion but using the concat trick for the string args May 08 16:09:00 soreachilles, something like: String[] { "'%'||'d'", "'n'||'ow'" } May 08 16:09:24 the zhobbs trick isn't working yet for %Y --- so I'm trying to figure that out first... May 08 16:09:42 soreachilles, oh, I thought it was working May 08 16:10:17 not %Y ... %Y works in a string sent to rawQuery tho May 08 16:10:33 String s = "select strftime('%Y', 'now') as dom"; rawQuery(s, null) is ok May 08 16:10:48 hey all. I was wondering if there's an attribute for an EditText which displays a greyed out text when the EditText is empty. Or should I construct it myself? May 08 16:10:51 did you try the following literal, "select strftime( "'%'||'d'", "'n'||'ow'" )"? May 08 16:11:05 aVirulence: android:hint May 08 16:11:06 no, i didn't try to munge now.. lemme try May 08 16:12:49 "select strftime( \"'%'||'d'\", \"'n'||'ow'\" ) as dom" = 0 thru rawQuery May 08 16:12:50 zhobbs: Thanks! :-) May 08 16:13:38 i can work around this by just getting the date as a julianday and converting to a calendar in java ... so i'm not completly stuck..it's just annoying .. May 08 16:13:58 soreachilles, has one more idea....looking up info now May 08 16:14:07 i'm not actually trying to use 'now' in my real code, it's just the easiest way to get a date May 08 16:20:04 man the sqlite website sucks May 08 16:20:11 heh May 08 16:20:28 I'm so familiar with it.. hacked on it a lot May 08 16:21:18 you would think find a list of supported, built-in functions would be easy May 08 16:21:36 i really wonder why rawQuery("select strftime( '%' || 'd', 'now')") wouldn't work... bizzaro May 08 16:21:58 it works from sqlite3 prompt May 08 16:22:06 soreachilles, here's the last idea I was trying to find. May 08 16:22:38 soreachilles, many sql dialects support the use of "chr()", allowing you to convert an ordinal value into a character value. May 08 16:23:27 soreachilles, so if you can get it to take something like chr(37) vs '%', it may work May 08 16:23:44 chr(37) = '%' May 08 16:24:19 rawQuery("select strftime( chr(37) || 'd', 'now')") May 08 16:24:30 yeah.... I'm not too worried about working around it actually... as I can just get the julianday into java, I already have routiene for all that crap.. it was more a concern about rawQuery not seeming to work with %d 's May 08 16:24:32 but I can't find support for chr or even a support function list May 08 16:26:34 yeah I was going to go down the road of using the built in functions.. May 08 16:26:50 soreachilles, have you even found a list of builtins? May 08 16:26:58 http://sqlite.org/lang_corefunc.html May 08 16:27:10 thank you May 08 16:27:14 np May 08 16:28:00 but to me.. your trick of % || d sure shoulda workd May 08 16:32:48 soreachilles, lol: select strftime( (select substr('%Y', 1, 1)) || 'd', 'now') as dom ; May 08 16:32:54 lol May 08 16:32:55 y May 08 16:33:04 I'm doig that with replace(x,y,z) May 08 16:33:14 no go? May 08 16:33:26 except I'm going to remove a char between the % and the d May 08 16:33:29 hang on.. stillworking it out :) May 08 16:33:35 is there a way to stop an activity from rotating that actually works? setting android:screenOrientation="portrait" in the manifest seems to do nothing May 08 16:33:36 soreachilles, ya, that makes me think the '%' handling in general in the bug May 08 16:33:52 or I could replace a '&' with an '%' May 08 16:33:59 going to try that hack.. May 08 16:34:46 Anyone know if it's possible to develop stand alone c libraries for android May 08 16:34:53 lol works in sqlite May 08 16:34:55 soreachilles, I used '%Y' because you said earlier that it actually worked. Which makes me thing its successfully being passed as a literal. May 08 16:35:18 soreachilles, and then SQL will reduce it to a '%' for the query May 08 16:35:19 yeah i know.. it does work... but the thing with %Y is I don't think the printf family knows about it.. but %d... May 08 16:35:23 and the concatted May 08 16:35:35 this works in sqlite prompt May 08 16:35:36 select strftime( replace('&d', '&', '%'), 'now'); May 08 16:35:42 ModusTolensUnite, yes, its possible May 08 16:35:49 ModusTolensUnite, though not officially supported May 08 16:36:35 f me, doesn't work from java! May 08 16:36:36 soreachilles, I'm assuming that replace doesn't work. I'm assuming the sole '%' will still be chewed up May 08 16:36:51 soreachilles, did the '%Y' work from java? May 08 16:37:05 yes! May 08 16:37:10 wtf May 08 16:37:19 select strftime( replace('&Y', '&', '%'), 'now') as dom" May 08 16:37:20 works from java May 08 16:37:39 lol...cool May 08 16:37:49 soreachilles, you now have a work around in SQL? May 08 16:37:52 BlindOracle, could you push me in the direction, or give some loose explanation as to how, say if i wanted a fast unrar algorithm? Is it simply a process of compiling against the android compiler/libs and then placing it on the phone? May 08 16:37:54 select strftime( replace('&d', '&', '%'), 'now') as dom"; May 08 16:37:56 doesn't!! May 08 16:38:29 ModusTolensUnite, do some searches. There are several articles and even some sites dedicated to C/C++ development on Android May 08 16:38:32 is this really an android thing? could it be that android has a different/weirder sqlite linked in than what is being used by sqlite3 command prompt? May 08 16:38:40 ModusTolensUnite, I don't have a link handy May 08 16:39:33 soreachilles, the rawQuery is an Android layer which sits on top of SQLite - I'm assuming its an Android bug in that layer May 08 16:39:40 BlindOracle okay thanks May 08 16:39:58 if it is an android bug it's really friggen weird... it'd be to be replacing "d"s or something May 08 16:40:03 ModusTolensUnite, let me check to see if I have anything bookmarked May 08 16:40:11 cheers May 08 16:41:00 ModusTolensUnite, compiler: http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite May 08 16:42:58 ModusTolensUnite, that's the only link I think have... May 08 16:43:09 ModusTolensUnite, and I forget which compiler you actually need to download May 08 16:44:10 BlindOracle i'll check the android developers site, there's probably somthing for the official kernal stuff they do there. Thanks May 08 16:47:06 lol May 08 16:47:09 well.... May 08 16:47:45 if I s = db.compileStatement(select strftime( replace('&d', '&', '%'), 'now') as dom); May 08 16:47:54 s.simpleQueryForLong() May 08 16:48:01 that works.. I can get the %d back May 08 16:48:15 might be able to get rid of the replace cruft too May 08 16:48:29 soreachilles, I assumed - I think rawQuery is the problem. May 08 16:48:33 y May 08 16:48:47 soreachilles, do file a bug report on that May 08 16:48:53 k May 08 16:49:29 hmm, how can I have two widgets of which the height is set to wrap_content. In the middle of the two is a widget that I want to expand as far as possible. However, if I use fill_parent, it pushes the third widget off the screen. How can I solve this? May 08 16:49:51 without the first 'how can' May 08 16:49:53 oops May 08 16:53:29 Is there an android package that does htmlentities encoding? specifically convert spaces in the url into %20? May 08 16:54:24 skyred: like this? http://developer.android.com/reference/java/net/URLEncoder.html May 08 16:56:11 aVirulence, I think that will solve my current problems. But is there a more generic htmlentities package which does more jobs? May 08 16:56:17 soreachilles, you might have found a bug in sqlite. I'd still report it against Android first and let it trickle down from there as I don't know if they've customized sqlite much May 08 16:56:18 aVirulence, thanks May 08 16:56:29 skyred: I don't know, I just did a quick Google search ;-) May 08 16:56:43 the line works in sqlite3 shell tho May 08 16:56:46 soreachilles, I was looking at the android code - looks like it may be a straight pass-through May 08 16:57:12 yeah that's why i was curious if the ver of sqlite in android is diff than the command prompt version May 08 16:57:18 soreachilles, but now necessarily the same code paths May 08 16:57:40 you can reference that program I wrote.. it shows the problem May 08 16:57:54 http://pastebin.com/m738386af May 08 16:58:25 i'm now trying to cast my real query in terms of .query.... ugh May 08 16:59:40 soreachilles, btw, are you creating/maintaining multiple tables in your helper? May 08 16:59:47 in my real code, I am May 08 16:59:51 in that sample I posted, I'm not.. May 08 17:00:26 soreachilles, let me point you at something. All the sample code is geared toward single tables and it can leave you and your users completed screwed if your follow their example May 08 17:01:00 ok :) May 08 17:01:40 soreachilles, http://code.google.com/p/android/issues/detail?id=1732 May 08 17:02:35 its an iterative thing as I worked through the issue - but if you don't follow the example, you can wind up with a partially created database or a partially versioned database (some tables v1, others v2, etc) May 08 17:02:56 lovely May 08 17:04:05 the required semantics are subtle but important May 08 17:07:04 I don't like the sql wrappers May 08 17:07:13 I just want execSQL and rawQuery May 08 17:08:19 I like the idea of the helper and it does help in schema versioning - but only if implemented properly May 08 17:08:33 i want hibernate->sqlite :) May 08 17:08:33 *schema versioning and maintenance May 08 17:08:39 sql, boooo May 08 17:08:57 ok took hours to figure out my bug, and 10 secs to fix... sigh May 08 17:08:58 * BlindOracle is in love with sqlalchemy, but its python May 08 17:09:09 i just select out the julian day and do julianday -> cal in java May 08 17:09:28 err -the- bug, not -my- bug ;) May 08 17:09:34 :) May 08 17:09:43 yacc, debugging often takes longer than coding time May 08 17:09:54 not yacc... ya May 08 17:10:06 that was a pita May 08 17:10:10 all my dates coming back on day 0 May 08 17:10:12 heh May 08 17:10:27 traced thru all the code putting stuff in and taking stuff out May 08 17:10:41 tested the sql in the sqlite command prompt May 08 17:11:08 now to see imax star trek :) May 08 17:11:11 soreachilles, I Log.d the hell out of my apps during development ;) May 08 17:11:16 BlindOracle, that's a really briliant insight, at least if you've started software developing in the last 6 months ;) May 08 17:11:46 yacc, its actually an industry fact May 08 17:12:40 blindoracle did you file a bug report on this rawQuery thing? May 08 17:12:56 BlindOracle, yeah, that's why it's brilliant insight, but only if you are a newbie :) If not, it's old news. May 08 17:12:58 and sorry for constantly pinging ya... I tend to use the word "ya", which accidentally gets expanded to your nick a lot...sorry May 08 17:13:12 yacc, oh ya...misunderstood what you meant May 08 17:14:09 BlindOracle, well, you'll need to live with a cynic comment from me. Furthermore, after almost two decades, I'm used to get pinged wrongly, every time somebody wants to write a parser for something in something ;) May 08 17:14:27 lol May 08 17:14:43 I can see that May 08 17:15:22 yacc, unix guy from way back? May 08 17:15:57 Well, I've read Unix books in highschool. May 08 17:16:47 When others where hunting girls ;) May 08 17:16:56 they had the better idea.. May 08 17:17:00 :) May 08 17:17:04 Actually, I think the Aho book was before the Unix books ;) May 08 17:17:32 lalr1 < chix heh May 08 17:17:33 yacc, I didn't follow the reference May 08 17:17:40 soreachilles, well that depends ;) May 08 17:17:43 heh May 08 17:17:52 BlindOracle, Aho's Dragon book on compiler building ;) May 08 17:18:03 oh, I didn't remember the author's name May 08 17:18:21 BlindOracle, Aho happens to be the first author, guess it's alphabetical or so, ... May 08 17:18:45 soreachilles, it depends strongly what your optimization function is ;) May 08 17:19:16 I've wanted to buy that book but I'm too cheap - last time I looked it was something like $60-$70 - or was the the ASN.1 book... May 08 17:19:33 so, does anyone know how I can set a widget to expand, but not push a second widget off the screen? May 08 17:20:07 aVirulence, the relative layout should do that May 08 17:20:43 yacc, at any rate, I've haven't actually seen the dragon book in a decade - last I borrowed a copy ;) May 08 17:20:48 BlindOracle: okay, thanks May 08 17:21:18 it's not exactly light reading... May 08 17:21:56 BlindOracle, I've got the problem that I read it first in a two volume German translation, so I never remember the English name ;) May 08 17:22:10 ya...but good stuff....its amazing how many other "references" actually reference that book and Knuth May 08 17:22:15 BlindOracle, and no the book is not cheap at best ;) May 08 17:22:47 yacc, so what's the German name? May 08 17:23:08 "Compilerbau" => "building compilers" if you want so ;) May 08 17:23:44 compilerbau means building compilers? hmmm...that must have been a recent addition to the German lang May 08 17:24:05 or is an adopted slang or something? May 08 17:24:47 Drachen Buch May 08 17:24:57 literal May 08 17:25:09 I didn't know it had another name :) May 08 17:25:58 ook going to do the bug report thing on rawQuery May 08 17:26:30 soreachilles, okay....interesting find...thanks for sharing May 08 17:34:20 BlindOracle, nope, it's two words, ... May 08 17:34:54 yacc, "Compilerbua" is two words in German? May 08 17:35:05 BlindOracle, Compiler means Compiler, although I'm not sure if they used the germanized Kompiler, I admit, and bau means building. May 08 17:35:43 yacc, I know nothing about the German language - though I am of German descent May 08 17:35:46 BlindOracle, in German you can concat words to build more complex words ;) May 08 17:36:02 oh ok...didn't know that May 08 17:36:24 E.g. "Sonnenbrille" => "sun glasses" ;) May 08 17:37:25 BlindOracle: could you please take a look at this and tell me what I'm missing? This is truncating the above EditText on the top and the Button on the bottom May 08 17:37:28 http://www.pastie.org/472376 May 08 17:38:03 has anyone written test for services? May 08 17:39:29 man, AsyncTask rules May 08 17:41:27 aVirulence, I always do a lot of trail and error, but try adding some paddying, and if all else fails, try using a linear layout with weights - some some combination of linear/relative May 08 17:42:01 BlindOracle, okay I'll try ;-) I was trying the GUI editor, but didn't get far with that May 08 17:42:36 aVirulence, I tried that too - was faster for me to code it manually May 08 17:43:52 aVirulence, your edittext has "fill_parent" for both height and width May 08 17:44:17 aVirulence, that tells it to fill the parent - which is the entire layout May 08 17:45:08 yes, but if I set it to wrap_content, it gets too small and I don't want to use an absolute value May 08 17:45:46 aVirulence, you need to use a combination of relative/linear layouts May 08 17:46:18 with linear you can provide a weighted value May 08 17:46:26 * BlindOracle is looking at some of his layouts May 08 17:47:13 aVirulence, are you trying to half and half the screen or something? May 08 17:47:42 no, the button should be on the bottom of the screen and the edittext should fill the rest May 08 17:48:11 aVirulence, okay, then you need a linear layout with weights to reflect the proportions you desire May 08 17:48:21 so, if I'm using a ServiceTestCase, how do I know when the service has stopped after I call startService(intent)? May 08 17:48:32 so that I can test the results May 08 17:49:43 aVirulence, linear supports a cool attribute called, "weightSum". So if you want the textedit to take up say 4/5 of the screen, you can set "weightSum" to "5", weight the textedit at 4 and the button on the bottom with get 1/5th May 08 17:50:36 BlindOracle: I've got it! Thanks a lot May 08 17:50:58 aVirulence, layouts took me a way to get something usable... May 08 17:51:29 BlindOracle: yeah, I've had some problems with them before.. they're ok if you don't want to do anything fancy ;-) May 08 17:54:51 URLEncoder.encode(s, "UTF-8") encode spaces into '+', is there a way to tell URLEncoder to encode spaces into '%20'? May 08 17:56:20 skyred, doesn't UrlEncodedFormEntity do that? May 08 17:57:49 * skyred is reading docs May 08 17:58:04 ok sql bug entry created.. May 08 17:58:50 skyred: tried Uri.encode(s) ? May 08 17:58:57 soreachilles, well good luck on your project May 08 17:59:34 heh thanks for the cool ideas in fixing that -- i'm surprised one of those didn't do it... May 08 17:59:54 soreachilles, me too - I'd like to know that the fix is May 08 18:00:29 for me the fix was to just work with julianday and calendar in java, instead of trying to push a sqlite strfdate function thru rawquery :) May 08 18:03:31 joakime, thanks. trying May 08 18:03:39 skyred: http://developer.android.com/reference/android/net/Uri.html#encode(java.lang.String) May 08 18:04:41 blindoracle: it may have worked to shove everything into a .query call (.compileStatement worked), but I just didnt have the patience to munge my sql into the buckets .query wanted... May 08 18:05:10 star trek awaits, adios May 08 18:07:39 joakime, Uri.encode(s) convert spaces into '%20', but also convert '/' into %2F which makes the URL not readable. Am I doing right the thing? May 08 18:08:06 skyred: you might want to just build a Uri and then toString() it then. May 08 18:08:15 taking a string and making it encoded will encode all characters. May 08 18:08:26 skyred: you could also use Uri.encode(s, "/") to exclude certain characters May 08 18:08:36 in that example, you'd exclude the "/" from being encoded. May 08 18:10:37 joakime, Uri.encode(s, "/") does the trick!, thats a lot. what does Uri stand for anyway? May 08 18:10:50 soreachilles, have fun May 08 18:10:59 skyred: universal resource identifier. (i think) May 08 18:11:16 skyred: think of it as URL version 2.0 (at least in code) May 08 18:12:27 joakime, cool! thanks for the info May 08 18:13:11 skyred: the dirty details -> http://tools.ietf.org/html/rfc2396 May 08 18:23:11 how do I setup a TextView to marquee? can't get it to work.. May 08 18:24:06 setting singleLine, horizontallyScroll, and ellipsize to marquee May 08 18:25:05 all you have to do is use ellipsize=marquee May 08 18:25:39 singleLine is not mandatory May 08 18:25:46 Home uses marquee with maxLines=2 for instance May 08 18:25:56 text.setEllipsize(TruncateAt.MARQUEE); May 08 18:26:34 ah May 08 18:26:37 you're doing it from code May 08 18:26:41 yeah May 08 18:26:49 then you also need setHorizontalFadingEdgeEnabled(true); May 08 18:32:37 it should just start scolling automatically right? May 08 18:33:06 no May 08 18:33:12 it will start when the view is either selected or focused May 08 18:33:19 oh, doh May 08 18:33:22 ok May 08 18:33:43 any idea how to "reset" the scrolling to where it should be on a TextView? May 08 18:33:52 ? May 08 18:33:57 <_Auron|G1_> ugh May 08 18:34:24 I have a scroller widget that extends TextView...but when I change the text I need to reset the scroll to be where it *should* be based on the gravity May 08 18:35:00 scrollTo(0, 0)? May 08 18:35:09 oh wait that won't work May 08 18:35:18 well May 08 18:35:22 just use the marquee May 08 18:35:51 I want it to scroll all the time though May 08 18:35:55 (when visibile) May 08 18:35:55 so? May 08 18:36:00 just set the repeat count to infinite May 08 18:36:09 and setSelected(true) on the TextView May 08 18:36:13 oh May 08 18:36:17 that's simple :) May 08 18:47:02 hmm, TextView doesn't fix the gravity after you setText() either May 08 18:49:00 so is there a solution to stream mp3 with 1.5 (AudioTrack?) or is it still not really feasible May 08 18:49:36 famast: no solution as far as I know :( May 08 18:49:47 bah! May 08 18:49:57 well its a start May 08 18:51:27 famast: yep... May 08 18:51:41 they just need to expose the native mp3 decoding to us May 08 18:52:52 any 8 bit synths out yet? :) May 08 18:53:27 anyone play with speech recognition? May 08 18:54:43 i can't May 08 18:54:49 at least not w/ voice search May 08 18:55:01 y May 08 18:55:02 because the opencore in git is not synced with the released opencore in ADP1 1.5 images May 08 18:55:09 and the libspeech.so depends on the new opencore May 08 18:55:20 you have a custom build? May 08 18:55:23 yup May 08 18:57:52 is it possible to open a editTextPreference from code? May 08 19:01:51 romainguy_: any hints on the TextView thing? basically, anyway to make it forget it's scroll state and recalculate where to put the text? May 08 19:05:27 romainguy_, I don't know if you had much to do with it, but I've seen you mention it a lot, so I just wanted to say that I'm really digging AsyncTask :) so much nicer than Threads and Handlers May 08 19:12:35 KNY: (a) he wrote it, and (b) it totally rules :) May 08 19:13:09 ctate, I thought he had something to do with it :) May 08 19:15:04 I just wish that it had been in there since 1.0 May 08 19:35:39 is there a way to fix su request? May 08 19:35:52 it was fine yesterday now it hangs May 08 19:36:26 can i add an app manually or something? May 08 19:36:45 * zhobbs is lost May 08 19:36:50 is there an "optimal" data type to use for integers? i mean on an x86 for example, 32-bit and 64-bit are more optimal than a 16-bit number. do similar things even apply for Java/VM? May 08 19:38:26 I would think it's the job of the VM to decide what an int is best for the current system, and you can check Integer.MAX_VALUE May 08 19:38:30 wait im in the wrong channel arent i May 08 19:39:50 Miles: 'fraid so :) May 08 19:40:12 silverblade: the Java language is more tightly defined. 'int' is 32 bits, 'long' is 64,. May 08 19:40:24 i don't usually irc on here >.> May 08 19:40:35 ctate: interesting May 08 19:44:51 what ctate said. May 08 19:45:01 java also has the 'helpful' step of making nothing unsigned :\ May 08 19:45:12 which is pretty rad except for when you want an IP octet or two May 08 19:45:26 damn it vol now i want to smash things again thank you SO much for reminding me about the unsigned lack May 08 19:45:37 ask me about how to copy a file in java. May 08 19:45:55 that's easy, actually May 08 19:46:05 android.os.FileUtils.copyFile(...) May 08 19:46:07 ;) May 08 19:46:08 wait wha May 08 19:46:15 * vol does a doubletake May 08 19:46:26 not public May 08 19:46:34 sorry. May 08 19:46:34 ctate / vol - ah, cool. that should do nicely. was trying to work out how to do some math avoiding FP operations ;) May 08 19:46:36 !@%()*& May 08 19:46:37 WHY NOT May 08 19:46:50 two words: May 08 19:46:52 edge cases. May 08 19:46:57 ffs ._. May 08 19:47:18 that said, the implementation is quite short May 08 19:47:33 16 bit file operations \o/ May 08 19:47:39 May 08 19:47:54 http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/os/FileUtils.java;h=51dfb5b30c96ee673473a2a727c699a16daae4ca;hb=cupcake May 08 19:48:36 that copies a File to another File, going through a routine that copies an InputStream to a File May 08 19:49:12 ctate: oh, I'm sure it is. May 08 19:49:17 it's just such a pain to have to do it myself May 08 19:49:27 at least the code is there and eminently gankable May 08 19:49:35 but i hear you. May 08 19:50:04 ctate: potentially a silly question, are you / other people in here actually working on Android itself? or from Google at all? (just curious) May 08 19:50:58 silverblade: i'm a framework engineer on Android at Google, as is romainguy. SanMehat is a kernel-type guy on Android at Google. morrildl is also an official type, xavd, some others who lurk. May 08 19:51:13 jbq is too; he's been quite active here on IRC but is on vacation. May 08 19:51:34 not everyone with ops is a googler though, so beware :) May 08 19:51:36 Cool... May 08 19:51:40 Yeah thats why i asked ;) May 08 19:51:57 Wasnt sure if a) it was a "fan-made" channel, or b) entirely opped by Googlers May 08 19:52:01 I am not a googler May 08 19:52:07 I'm just a loud jackass (main requirement for ops) May 08 19:53:02 So you're on here at work, I guess? May 08 19:53:04 * zhobbs secretly has ops May 08 19:53:09 silverblade: yes May 08 19:53:24 (shh) May 08 19:53:25 Is this one of those things you forget about when you go home for the day? May 08 19:53:40 ? May 08 19:53:42 silverblade: they don't go home May 08 19:53:44 Sorry, badly phrased. May 08 19:53:46 ha ha ha May 08 19:53:47 rofl May 08 19:54:05 it's typically something i pay attention to while i'm waiting for a compile :) May 08 19:54:06 I mean like, most jobs you'd finish your shift, go home, and then not think about anything work-related... May 08 19:54:17 Like I do anyway May 08 19:54:22 silverblade: I need that job... May 08 19:54:31 its a state of mind ;) May 08 19:54:39 i do a fair amount of thinking about work even when i'm home or whatever; i just don't usually do any coding from there May 08 19:54:43 (partitioned brain??) May 08 19:54:53 except on vacation, when part of the point is to avoid work-stuff entirely May 08 19:55:05 heh May 08 19:56:02 Again, just curious, because working on something nice is something I find interesting/enjoy. But the language we use at work is really awful, the technology isnt really that inspiring to work with. May 08 19:56:44 MUMPS! May 08 19:56:57 So like, if I were working on something I thought was cool, as part of my job, I'd probably end up working on it at home May 08 19:57:04 * ctate is trying to think of really awful languages that people get paid to program in May 08 19:57:16 VBScript May 08 19:57:20 silverblade: note that it has gone unsaid just now much time i spend AT home... May 08 19:57:20 MUMPS May 08 19:57:23 COBOL is the worst language ive experienced, I think... May 08 19:57:28 cobol is so passe May 08 19:57:37 vol: those were the two i thought of, yeah. COBOL has issues but it isn't in the same league as MUMPS. May 08 19:57:39 damn, you already said mumps May 08 19:57:39 Anyway this... thing... we use at work... May 08 19:57:46 frankly I'm amazed mumps exists May 08 19:57:48 its a hacked-up version of BASIC. May 08 19:58:00 with proprietary language constructs, weird magic variables... May 08 19:58:05 ooh, custom-rolled language thingy? ha ha ha ha ha you poor fool. May 08 19:58:17 (sorry) May 08 19:58:28 did the CTO write it so you're stuck with it forever? May 08 19:58:51 it was an implementation of another BASIC implementation, which got extended and customised etc. May 08 19:59:33 literally ALL of our software uses it, it has expensive licencing and the editor enforces certain syntax layout May 08 20:00:12 So yeah, not something Id voluntarily work in. May 08 20:01:25 silverblade: make a business case for migrating away from it May 08 20:01:30 So anyway, I know GCJ isnt suitable for Android development, but is it appropriate for testing code before integrating it with an app? Like an isolated routine that works something out and such. There any major differences in how this is handled when building Android apps? May 08 20:01:44 vol: lol. it will never happen. we have our own in-house programmers working on the interpreter May 08 20:01:57 explain that it's the year 2009 and you're still casting horseshoes by hand. May 08 20:02:11 some of the code written in the language dates back to 1980s May 08 20:02:12 I'm absolutely serious. It will work if you show dollar signs May 08 20:02:42 explain that the alternative is a slow, painful death, where the company never expands far past its current size, and anyone with half a brain runs screaming from the interview May 08 20:02:49 lol May 08 20:03:11 ask them how they would feel about writing things in, say, pascal, because that was a pretty awesome language 20 years ago too May 08 20:03:16 well, there is a plus side. since the language is proprietary, once you learn it you're not likely to be let go of easily. May 08 20:03:32 we had some redundancies, none of the developers were affected. May 08 20:04:05 :@ May 08 20:04:32 you realize this is a DailyWTF entry here we're talking about, right? May 08 20:04:50 okay, think of things this way: May 08 20:05:06 becoming an experienced Android developer is your ticket to a better job! May 08 20:06:43 Perhaps. But I like tinkering around with things and making gadgets do stuff. And I have wanted for years to be able to make mobile apps. May 08 20:06:56 oh sure May 08 20:07:07 The past 2 phones I had seriously lacked API/SDK support May 08 20:07:11 but you could also have a paying job that will not eventually cause your brain to ooze out your ears May 08 20:07:18 True... May 08 20:08:08 I've managed to learn C/C++ in my spare time, and then PHP and more recently Ruby... Hoping to pick up Java. No job I have been in yet has actually used these skills at all. May 08 20:08:23 Aside from a small C program i wrote to test a... wait for it... DOT MATRIX PRINTER. May 08 20:09:06 for your current job? May 08 20:09:11 yep. May 08 20:09:30 I mean I'll admit that when I went to a u-store-it place a few years ago, I was kind of blown away that they were using an apple IIe to control their gate May 08 20:09:39 lol May 08 20:09:42 zomg May 08 20:09:58 my reaction was somewhere between "this is awesome" and "are you shitting me?" May 08 20:10:00 * morrildl sighs May 08 20:10:15 but yeah, I don't think they really have a full time staff developing for them May 08 20:11:47 silverblade: seriously, as cool as it is to have "job security" bear in mind that you're basically gaining an absolute total of 0 useful skills from your job and you're learning to loath it May 08 20:12:40 your resume is going to have a 3 year spot on it that says "I make poor decisions that result in learning no useful skills, do not hire me" May 08 20:13:28 btw. can anybody tell me whether the android devs want patches that fix up android components for compliation with libcs other than bionic? May 08 20:13:38 i have most of the core running within openwrt (using eglibc) May 08 20:14:13 hmm, i dont think it is going to be THAT bad. i mean, the actual role im in usually involves digging around in already-written code, to debug it, report issues to the actual development team and provide the occasional test case etc. May 08 20:14:29 nbd: hm, interesting question. May 08 20:14:33 nbd: probably should consult the android-porting and android-platform lists May 08 20:14:42 will do May 08 20:14:47 thanks though! May 08 20:15:00 my goal is to get the entire android system running as openwrt packages on top of an openwrt system ;) May 08 20:15:18 well, 'entire' meaning anything that isn't made redundant by openwrt components May 08 20:15:30 Im hoping to use it as a step towards doing an actual development job, since i started out doing tech support (monkey work, 1st line hardware support), then moved to this software support job which has a wide range of stuff and requires UNIX/Linux experience May 08 20:15:43 nbd: neat May 08 20:16:02 nbd: openwrt? possibly a strange question but does that actually run on anything apart from routers? May 08 20:16:15 silverblade: openwrt is expanding way beyond routers May 08 20:16:24 silverblade: it can run the openmoko software stack faster than their own system May 08 20:16:26 nbd: yeah, was wondering if openwrt is often run on devices with a display May 08 20:16:26 silverblade: this is pretty much entirely useless for your resume May 08 20:16:29 silverblade: it can also run sugar on the olpc laptop May 08 20:16:38 "Yeah, uh, I did this in a proprietary language that's an offshoot of basic." May 08 20:16:44 "....... thank you for your time, we'll be in touch." May 08 20:17:16 your best bet would probably be to lie and say that it was all done in C May 08 20:17:55 vol: Well, I do barely any dev work in the language, its mostly going through other peoples code. The interview for the job was pretty rigorous... They gave me some paper with examples of code in various langauges and i had to answer questions, some were like "identify the problems in this routine" and "suggest how this can be done better" May 08 20:18:38 anyway, i'll worry about my next job when it gets to that stage May 08 20:19:12 well, good luck with it. In the meanwhile, develop some android apps yourself to sell on the market. May 08 20:19:13 nbd: cool. just wondered, as i have it on my wrt54g ;) May 08 20:20:43 vol: during my spare time im trying to pick up more useful/modern technologies, I know XHTML/CSS/PHP fairly well for example, learning Ruby still and have toyed around with Rails May 08 20:21:10 My interests seem to be split between web-based GUIs for stuff, and audio/DSP stuff May 08 20:21:29 learning javascript pretty well can land you a half-decent job doing ajax, but then you'll be doing a job involving javascript and ajax. May 08 20:22:06 i know a bit of javascript, mostly its just a case of me finding code snippets, extracting what i need from them and throwing the rest away, etc. May 08 20:22:21 havent got any books on it for example May 08 20:22:38 I had to learn javascript pretty intimately for my last job May 08 20:23:01 I ended up spending 6 months writing an ajax application from scratch to replace a god-awful POST based system May 08 20:23:13 as in, HTTP method? May 08 20:23:16 yeah May 08 20:23:21 fun May 08 20:23:25 t May 08 20:23:28 as in "Lets send you 60k of webpage to serve up another 1k of content" May 08 20:26:51 anyone here doing opengl es on android? May 08 20:27:27 is there a way to detect programatically a rooted phone? May 08 20:30:58 Just reading the wikipedia article about Android. I like how the criticism section mentions the Linux kernel is used, but that other parts of standard Linux are missing... I wonder if people who think this are expecting an X server or something? ;) May 08 20:38:30 silverblade, haven't people gotten an x server running anyway? May 08 20:38:34 no idea May 08 20:38:37 im still a newbie to all this May 08 20:38:53 I'm pretty sure people have May 08 20:39:17 if it doesn't run apache, it's useless! May 08 20:40:07 and is it possible to build non-java apps? May 08 20:42:07 yes, you can run native code though it's not recommended at all May 08 20:42:23 Rexxars, people have apache on it too, IIRC :) May 08 20:44:01 KNY: so i have heard. is it awkward to do? and difficult for other people to install such apps? would i even benefit from any performance improvements? May 08 20:44:40 silverblade, I have no idea. I've never done it, I just know it's possible May 08 20:44:52 installation is the same as a normal app May 08 20:45:22 you still need a java app for the UI but you can have native code for the backend, as I understand it May 08 20:45:25 silverblade, native code can be 400x, and lots more, faster than dalvik May 08 20:45:49 400x? May 08 20:45:50 oh excellent May 08 20:46:20 according to some benchmarks I found. someone was comparing native vs dalkiv vs a couple jres May 08 20:46:53 they may not accurately reflect current dalkvik vm, but there was huge difference in performance vs native May 08 20:47:02 sure May 08 20:47:07 i just want sure if it were prohibited. May 08 20:47:08 but 400x seems really weird to me :) May 08 20:47:16 which, to be fair, makes sense if it were. May 08 20:47:21 silverblade: using native code is currently not suppored May 08 20:47:25 and others have stepped forward with comments like image processing is impossible in dalvik (performacne wise) but natvie was super fast May 08 20:47:31 if only because none of the native APIs are set in stone or public May 08 20:47:44 but the bottom line is, its not officially supported May 08 20:47:48 romainguy_: hmm, is there an efficient way to add a shadow layer to a bitmap? i want the shadow layer to be a single color behind a square bitmap, but if i add the shadow layer to the paint and drawBitmap it draws the shadow using pixels/colors from the bitmap May 08 20:48:07 should i make a paint with a composite shader and just draw a rect maybe? May 08 20:48:14 romainguy: i just want to do some math. May 08 20:48:31 BlindOracle: yeah im looking to do audio processing May 08 20:48:35 right now i have it working by just making a separate paint and drawing a rect before i draw the image over it, but i suspect this is inefficient. May 08 20:48:40 jasta: did you set the shadow color to 0xFF000000? May 08 20:48:51 silverblade: it's not supported, but I think some people have included native compiled code into apk's and use it May 08 20:49:07 that graphics demo a while back used it, as I understand it May 08 20:49:10 silverblade, you'll need to do some testing. If dalvik is "fast enough", by all means make your life simple and do that May 08 20:49:13 romainguy_: yes. May 08 20:49:14 Neocore? something like that May 08 20:49:18 BlindOracle: i intend to :) May 08 20:49:33 well, i used 0xff111111, but that should be equivalent May 08 20:49:47 I already realise floating point DSP is going to be a no-go... so im figuring out integer DSP, which is fun. May 08 20:55:28 yeah, native code is a bit of a pain but it is quite possible ;) May 08 20:55:46 thats great news May 08 20:55:54 the possible part, not the pain May 08 20:56:48 I have a bitmap object won't display on ImageView, could anyone offer some debugging tips? May 08 21:00:55 invalidate the view May 08 21:01:22 is there example on testing service? May 08 21:17:44 <_Auron_> openGL|ES supports orthographical projection for displaying 2d (well, geared toward anyhow) using openGL hardware, right? May 08 21:19:26 I believe so May 08 21:21:46 romainguy_: *poke* :) May 08 21:27:18 argh, eclipse claims one of my classes can't be found.. it worked fine before I restarted eclipse May 08 21:27:40 it's right there! how can you not find it! arghhh May 08 21:30:17 <_Auron_> ah crap. May 08 21:30:30 <_Auron_> the code sample I'm looking at uses GLSurfaceView, which is new in 1.5 May 08 21:31:03 <_Auron_> wait no May 08 21:32:49 are there examples on using the MockContext for testing? May 08 21:42:43 romainguy_: so someone was telling me in the chat taht i should keep my own state of the service, is that so? May 08 21:42:54 probably May 08 21:43:22 chouman82: it was me. May 08 21:43:40 oh ok May 08 21:43:41 haha May 08 21:43:55 so i should keep the state my sevice is in? May 08 21:44:05 i am trying to write a test for my service May 08 21:45:05 yes. May 08 21:45:28 what exactly are you trying to do May 08 21:45:39 android's sense of state for your service is not helpful for most problems. android merely knows whether the service is between onCreate and onDestroy, not whether its performing work. May 08 21:46:06 so i have a service that runs and goes to server and check for update and then insert into the database the updates. May 08 21:46:20 i am trying to write a functional test for the service May 08 21:46:43 and at the end of the service i am going to check the database to see if things gotten inserted properly May 08 21:48:43 i recommend using either a callback mechanism or a broadcast intent. generally, i recommend the former but it seems that many people are confused by the complexity of this approach. May 08 21:56:14 if i have an alternate dialer implementation, how could i have it not handle emergency numbers? dialing emergency numbers isn't supported, right? May 08 22:17:22 anyone knows the difference between the AndroidTestRunner and InstrumentationTestRunner? May 08 22:19:01 Hi guys May 08 22:19:47 Anyone having problems on displaying layouts on the editor after having upgraded to 1.5 SDK? May 08 22:21:47 I've also updated the Eclipse Plugin accordingly May 08 22:27:18 never mind, had not uninstalled the editor plugin! May 08 22:27:25 :) now it is working, thanks. May 08 22:34:19 How do i uninstall using adb? whenever i try i get a failure May 08 22:35:31 adb uninstall package, wher epackage is the name declared in the AndroidManifest.xml file of the package you want to remove May 08 22:35:39 if it fails, see adb logcat May 08 22:35:39 it's adb uninstall packagename May 08 22:35:40 not filename May 08 22:35:58 so e.g. adb uninstall com.silverblade.MySpiffyProject May 08 22:36:00 or whatever May 08 22:36:10 ahhh May 08 22:36:28 and logcat... i have been affected by the internet and read it as "longcat"... May 08 22:36:34 see also: lolcat May 08 22:36:53 indeed May 08 22:37:07 (yes, adb lolcat is accepted as a synonym) May 08 22:37:22 rofl! May 08 22:38:05 nice touch May 08 23:01:08 ok im having trouble with AudioTrack, how do i actually get it to make noise? ive got a .play there, and a .write with 16K of data. May 08 23:01:20 ive also set the volume to max May 08 23:23:52 did the number spinner control used in date pickers make it into cupcake/1.5? May 08 23:24:04 where you can hold the +/- buttons and adjust the values quickly May 08 23:25:01 hmm, why doesn't a scrollview fill the parent when you set fill_parent May 08 23:26:14 hmm, looks like NumberPicker is still an internal widget May 08 23:26:20 weak :-/ May 08 23:31:03 KNY: you can still copy the code+assets yourself May 08 23:31:31 jsharkey, that's hardly a solution May 08 23:32:08 oooookay so what is a better solution? May 08 23:32:24 woohoo noise... May 08 23:33:28 jsharkey, have Google expose a UI component that is a basic element in pretty much every UI framework that I can think of May 08 23:34:07 with the coming OSK it should be less of a problem, but it's still an annoyance May 08 23:35:12 KNY: Google doesn't own the UI elements--anyone can submit a patch that cleans it up and un-@hides it May 08 23:35:45 even you :) May 08 23:36:07 lies! May 08 23:36:38 also, i want swing to have an efficient ListView :P May 08 23:36:58 each toolkit has its features and detractors May 09 00:48:02 anyone use intellij for android dev? i'm still on ver7 and the android plugin doesn't seem to work, or at least the commands it's passing to aapt are wrong... May 09 01:17:33 is there any way to limit what keys show up on the OSK? May 09 01:47:03 And already, the signedness of java bites me in the ass. May 09 01:47:12 heh May 09 01:47:19 overflow something? May 09 01:47:50 nah, trying to read raw bytes from a file May 09 01:48:15 found some web pages suggesting to just cast to int and do & 0xFF May 09 01:48:20 worked a treat. May 09 01:48:24 yeah.. having uint would be nie May 09 01:48:25 nice May 09 01:51:03 just messing around making something that reads info from old Amiga MOD files May 09 01:53:10 lol May 09 01:53:17 i have an amiga kicking around here somewhere May 09 01:53:23 amiga 500 with a spirit board.. May 09 01:55:00 some of those red-alert crack screens had great music May 09 02:23:40 what's the proper way to set a text shadow in a TextView? I tried setting shadow color to black and shadow dx and dy to various values (from 1.2 to 10) with no discernible effect May 09 02:27:08 how can i added spanned (styled) text into a listview ? May 09 02:56:24 my text is in a string, not a resource file. how can i style it in code, then show it? **** ENDING LOGGING AT Sat May 09 02:59:57 2009