**** BEGIN LOGGING AT Mon Dec 08 02:59:57 2008 Dec 08 03:49:45 argh, java 5 doesnt have a blocking LIFO queue? Dec 08 04:01:09 A LIFO is a stack, not a queue. :) Dec 08 04:03:14 whatever, does it exist? Dec 08 04:06:28 hey yall Dec 08 04:08:27 jasta: Stack Dec 08 04:08:31 push and pop Dec 08 04:08:34 and peek Dec 08 04:11:48 ismarc: uhm, no. i need an unbounded blocking implementation, specifically one which inserts at the head and blocks to take from the head if empty. Dec 08 04:12:10 i guess i will just implement it myself though. lame. Dec 08 04:18:09 jasta: What about PriorityBlockingQueue? Dec 08 04:18:30 Never used that one, but it may work for what you want Dec 08 04:20:36 jham: this is for sorted inserts. Dec 08 04:20:49 whoaaa, jham, what's up? Dec 08 04:20:52 which i suppose you could hack in some kludgy way to always sort inserted entries at the front Dec 08 04:21:09 instead i have elected to abuse the MessageQueue of Handler to do it. Dec 08 04:21:17 fits nice enough in with my design anyway Dec 08 04:21:33 ive just a handler that runs its own looper for this Dec 08 04:21:43 err, ive just got a thread* Dec 08 04:26:16 jbq_: Howdy Dec 08 04:26:50 * jasta casually reads some wikipedia entries to get ready for his interview tomorrow Dec 08 04:27:06 jasta: I am surprised that java.util.concurrent doesn't have a BlockingArrayStack or something like that Dec 08 04:27:20 jham: so am i. java 6 has it, as LinkedBlockingDeque Dec 08 04:28:00 Ahh, we don't have the things that java 6 added in Android Dec 08 04:28:09 i know, thats why i asked about java 5 ;) Dec 08 04:32:29 jham: actually i think abusing the Handler is gonna work just fine. this is a performance critical path but looking at the MessageQueue/Handler code, i don't think that it's going to get in my way at all Dec 08 04:32:33 seems quite tidy Dec 08 04:36:17 * andyross wakes up. Why not just write your own? A synchronized stack like that isn't more than 5-6 lines of code. Wait when size is zero, signal when size is incremented (or optimized: signal only when size is incremented from zero) Dec 08 04:40:08 java.util.concurrent also does have counting semaphores Dec 08 04:41:12 hehe, well, i'm already done with this code :) Dec 08 04:41:15 using a Looper Dec 08 04:41:33 quite a bit more flexible this way too, considering MessageQueue has so many features Dec 08 04:51:29 hi all Dec 08 04:52:21 determinate ProgressDialods have a progress-bar, right ? Dec 08 04:52:34 (up to now I've always been using indeterminate ^^) Dec 08 04:52:55 last i checked, indeterminate ProgressDialogs were not implemented properly Dec 08 04:53:03 err, determinate* Dec 08 04:53:24 they were implemented the same as indeterminate ones. perhaps this has changed in 1.0, though. Dec 08 04:53:25 aw ok, I was just wondering why it looked just the same ^^ Dec 08 04:53:36 nope seems not Dec 08 04:53:43 final ProgressDialog pd = ProgressDialog.show(this, "Please wait", "Loading contacts...", false); // TODO i18n Dec 08 04:53:54 setMessage *YAY* Dec 08 05:13:05 hey is there a compass app for android? Dec 08 05:14:24 One up today. Dec 08 05:15:35 wow Dec 08 05:15:40 what are the odds Dec 08 05:18:45 If you grab Spare Parts it lets you enable a compass in the built-in maps application too Dec 08 05:19:37 what is spare parts Dec 08 05:19:53 is it in the market? Dec 08 05:20:13 wow i never thought about this lol Dec 08 05:20:38 "Jay Dec 08 05:20:38 You dont understand the value of this app for a muslim... thanx bro" Dec 08 05:20:38 5 stars Dec 08 05:21:00 I don't see "Spare Parts" in the market. Dec 08 05:26:00 infobot: spare parts Dec 08 05:27:49 i didnt see it in market either Dec 08 05:27:58 i googled and people are saying it was removed Dec 08 06:09:25 why was it removed? Dec 08 06:11:10 I didn't see an explanation or much discussion at all of it. Just a bunch of lists of applications that would be available in the market at launch, which included this one. Dec 08 09:29:10 what was removed? Dec 08 09:29:18 oh Dec 08 12:48:32 wtf 12-08 07:48:00.642: WARN/SQLiteDirectCursorDriver(274): Found SQL string that ends in ; -- SELECT last_insert_rowid(); Dec 08 13:23:53 blau-MikeDG, I think that's because you can't chain commands like that Dec 08 13:24:11 you have to run separate db.execSQL(...) calls to do that Dec 08 13:24:18 kny, i do that Dec 08 13:24:26 at least i think so, lemme double chekck Dec 08 13:25:27 Cursor lastInsert = db.rawQuery("SELECT last_insert_rowid();", null); Dec 08 13:25:48 oh duh, just take the ; out right? Dec 08 13:26:07 ive had no problems though Dec 08 15:06:39 anyone play aorund with sending sms to emails? Dec 08 15:06:46 i dont know how those gateways work? Dec 08 15:06:50 i think i did Dec 08 15:06:57 its been awhile though Dec 08 15:06:58 programatically? Dec 08 15:07:01 yea Dec 08 15:07:14 hmm Dec 08 15:08:13 are you having issues with it? Dec 08 15:09:12 i tried once a few weeks ago and it failed Dec 08 15:09:18 im gonna look into it again Dec 08 15:09:28 and try it on an actual device that may have been my issue Dec 08 15:10:11 do you remember if htis was what you used SmsManager sm = SmsManager.getDefault(); Dec 08 15:10:11 sm.sendTextMessage(number, null, message, pendingSmsResultIntent, pendingSmsResultIntent); Dec 08 15:11:30 12-08 10:11:14.020: ERROR/AndroidRuntime(2981): Caused by: java.lang.StringIndexOutOfBoundsException Dec 08 15:11:30 i got tyring that with an email address as number Dec 08 15:16:41 so yeah im still having issues Dec 08 15:19:36 couldnt find anything in in the android developer groups either Dec 08 15:28:16 hm, i wrote an sms app for the old m5 sdk.... i'm sure the apis changed a bit though Dec 08 15:36:33 doh already 2 sms backup extractor apps in the market Dec 08 15:36:40 guess i can stop developing that Dec 08 15:48:14 make one that works :) Dec 08 15:48:53 disc: wanna test mine? Dec 08 15:49:02 check to see if I have the same issue with incorrect names? Dec 08 15:49:13 sure as long as it doesn't request internet perms :) Dec 08 15:49:22 it doesnt... yet :) Dec 08 15:49:34 heh Dec 08 15:50:25 do you have the sdk installed so you can just do an adb install? Dec 08 15:51:07 or do i need to host the apk for donwloaad somewhere? Dec 08 15:57:50 i have sdk Dec 08 15:58:51 ok, can i email you the apk? Dec 08 16:00:04 sure. Dec 08 16:07:24 needs to list from, from#, to, to#, senttime,sentdate,rcpttime (if its got a confirmation),msg but it looks correct Dec 08 16:08:30 i have one that basically dumps the entire tables sms content provider Dec 08 16:08:38 which provides all that info but not in a pretty format Dec 08 16:09:01 the source is a complete mess right now :) but id be willing to share it if you wanna play yourself Dec 08 16:10:32 maybe ill just send some helpful pointers to the txtract guy for how to find the correct names Dec 08 16:11:14 i asked if it was open source though Dec 08 16:42:58 ugh.. #android is #android again :( Dec 08 16:43:00 does anyone know what's up with TextViews and NL and CR chars? I get a strange symbol every time I wanna display a string containing a CR :( Dec 08 16:43:14 tauno: hahaha Dec 08 16:44:23 hey andy Dec 08 16:46:46 btw.. romainguy is on vacation or something? Dec 08 16:47:06 he's not going to be around for a while. Dec 08 16:47:24 Is this the right place for idiots like myself trying to get the code for their apps to, like, behave on Android? Dec 08 16:47:31 jbq_, you are kidding, right? :) Dec 08 16:47:55 tauno: no, I'm serious. you might only see him very occasionally until next month. Dec 08 16:50:22 tauno: they locked him in a room with a cat5 hookup, a laptop and a month's supply of cheetos. Dec 08 16:51:57 phew.. so next month he's back? great.. I mean.. he's the alpha and the omega of everything thats related to UI in Android as I understood.. and if he's gone.. Dec 08 16:52:26 tauno: you can always write command-line apps... Dec 08 16:53:28 tauno: he just may be in a month long coding binge... who knows :) Dec 08 16:54:01 true true :P Dec 08 17:01:23 as for TextViews and CR chars - seems the only option is to check and remove \r from every string that I want to display in a TextView :/ Dec 08 17:07:07 most apps handle newlines as \r\n combos (Windows land at least).. and most of the text that I want to display comes from apps from windows land :( Dec 08 17:08:53 tauno_: I'm sure we'll accept contributions to improve that in the framework. Dec 08 17:13:29 jbq_, I'm sure that you know that I know that :) but thank for the reminder :) Dec 08 17:13:37 ;-) Dec 08 17:27:40 i want to be the temporary romain guy Dec 08 17:27:43 ! Dec 08 17:27:45 i can do it Dec 08 17:27:53 huh? Dec 08 17:28:06 phew.. so next month he's back? great.. I mean.. he's the alpha and the omega of everything thats related to UI in Android as I understood.. and if he's gone.. Dec 08 17:28:45 ah Dec 08 17:28:51 im sure he'll still pop around irc Dec 08 17:30:17 i like ui stuff Dec 08 17:30:23 blau-MikeDG: If you want to be romain then tell me how to identify missed calls. :-) Dec 08 17:30:49 anno: i know how :P Dec 08 17:30:56 well mostly Dec 08 17:31:06 i havent been able to determine between missed and declined Dec 08 17:31:15 * michaelnovakjr thinks he's quickly learning Dec 08 17:31:42 what are you trying to do with missed calls? Dec 08 17:31:59 blau-MikeDG: How do you do it? :-) I'd like to get that freakin LED blinking if I miss a call Dec 08 17:32:17 declined is where you press end call b4 answering an incoming call? Dec 08 17:32:17 And I got everything setup except the identification of the missed calls :P Dec 08 17:32:28 jsharkey correct Dec 08 17:32:35 http://www.getafreelancer.com/projects/Java/Android-missed-call-alert.html angry i missed that Dec 08 17:32:43 so wouldn't you remember clicking that button :) Dec 08 17:32:50 anno: have you looked into phonestatelistener Dec 08 17:33:14 I have looke into it but havent found a state for missed calls :/ Dec 08 17:33:34 a call goes from ringing to idle if it wasnt answered Dec 08 17:33:39 track the last state Dec 08 17:33:43 in your listener Dec 08 17:34:01 if its answered it goes from ringing to off hook Dec 08 17:34:17 i gotta go throuhg my notes for what happens when you are on a call and dont answer a second call Dec 08 17:34:29 ahhh I have to look at it again Dec 08 17:34:31 you can thank me with money please thanks or a msi wind Dec 08 17:34:36 blau-MikeDG: well, manually ending a call will also go from ringing to idle Dec 08 17:34:43 :) Dec 08 17:34:53 see im sure they have an internal state diagram for stuff like that Dec 08 17:34:58 jasta: declining? just ending an active call doesnt Dec 08 17:35:07 blau-MikeDG: yes, declining a call Dec 08 17:35:08 but only the code was apache'ed :/ Dec 08 17:35:37 i mentioned i havent been able to determine between missed and declined Dec 08 17:35:43 (because I missed such a lot of calls and never got my attention to that since nothing is blinking. :) ) Dec 08 17:37:01 jasta: any tips then Dec 08 17:37:32 anno: if its for your use, i think my solution will be good enough Dec 08 17:38:09 if you wanted to dump it to the market, maybe not Dec 08 17:39:04 blau-MikeDG: at the moment it is just for my personal use Dec 08 17:39:22 because it is so annoying to be identified for everything except simple calls Dec 08 17:39:31 anno: how are you going to capture when someone actually checks the phones Dec 08 17:39:48 like ok you missed the first call, but now you turned your phone on and noticed it Dec 08 17:39:58 so turn the blinky off Dec 08 17:40:03 Well yeah I have to think about it. Dec 08 17:40:10 thats been an issue of mine Dec 08 17:40:29 I will let you know if I got to a solution. Dec 08 17:40:32 thanks Dec 08 17:40:40 cause i have repeating notifications for sms messages Dec 08 17:40:53 right now im just checking to see if they are marked as read, but i dont like it Dec 08 17:41:45 I think we could do much more with the LED. :-) (ok not for the normal user but for the advanced user that likes to differniate between different things like sms, voicemail, call etc) Dec 08 17:42:05 i wish the trackball lit up Dec 08 17:42:10 the old sidekicks did that Dec 08 17:42:17 or more LEDs Dec 08 17:42:20 :) Dec 08 17:43:43 are you just using Notifcation for the light? Dec 08 17:47:47 For the missed calls I just like to blink the LED with blue color. (nothing special) Dec 08 18:08:25 blau-MikeDG: Yeah I have what you said now. Blinking when missed and declined :) Dec 08 18:09:18 but thats ok for my personal usage at the moment. I'm thinking now about having some possibility to differentiate between them. Dec 08 18:09:34 There is no possibility to track the decline button? Dec 08 18:10:48 ive looked, nothing i found indicates that its trackable Dec 08 18:11:45 perhaps in the broadcasts section? Dec 08 18:11:54 I'm going through them once again. Dec 08 18:12:39 grr you have ACTION_CALL_BUTTON Dec 08 18:12:42 take a look i may have missed it Dec 08 18:12:49 but not the other one :/ Dec 08 18:15:53 well no nothing in the broadcasts section. Dec 08 18:20:42 :( Dec 08 18:23:07 But there must be a possibility :). In the groups joshi stated that Google uses some hidden API for that. Dec 08 18:23:35 http://groups.google.com/group/android-developers/browse_thread/thread/ea673a2567100008/3d84d8ea529f14f3?lnk=gst&q=missed+calls#3d84d8ea529f14f3 Dec 08 18:24:06 http://code.google.com/android/reference/android/provider/CallLog.Calls.html#MISSED_TYPE <- this one could help us Dec 08 18:24:40 Yeah it helps us Dec 08 18:25:19 comparing the time of the incoming call with the time of the latest missed call could do it Dec 08 18:35:06 hmm my repeating alerts are almost perfect! Dec 08 18:36:11 using the call logs? Dec 08 18:36:42 I didn't know about this channel. Sounds like something I'm more interested in paying attention to than #android Dec 08 18:36:45 great Dec 08 18:37:12 * DarkriftX joins the join crowd Dec 08 18:37:27 now look what you did Dec 08 18:37:49 hehe, 73 people, just like the old #android Dec 08 18:37:56 yea Dec 08 18:38:26 i agree slightly that this one should be kept chat free so hopefully ignoring those who ask questions non dev related will make them leave Dec 08 18:38:36 but not mentioning it in the main channel isnt a good idea Dec 08 18:38:42 put it in the topic Dec 08 18:38:48 * DarkriftX parts for lack of need to be in here Dec 08 18:39:07 i don't think it should be listed because look at what happened to #android Dec 08 18:39:58 i like my smaller chan on efnet Dec 08 18:40:03 its about the same as this one, 70 or so Dec 08 19:00:28 why are notification fields all public? Dec 08 19:02:43 blau-MikeDG: so you can set them Dec 08 19:39:18 any ideas 12-08 14:37:53.252: ERROR/AndroidRuntime(4271): java.lang.RuntimeException: WakeLock under-locked dgAlert Dec 08 19:40:51 How do I get the int coloumns out of a Content Provider with a managedQuery? (I'd like to get this column as well http://code.google.com/android/reference/android/provider/CallLog.Calls.html#MISSED_TYPE besides the String columns) Dec 08 19:41:12 .getint? Dec 08 19:41:36 MISSED_TYPE is an int Dec 08 19:42:03 Well ok getString Dec 08 19:42:10 Should do it Dec 08 19:42:38 there's a getInt method, which returns the data as an int Dec 08 19:44:58 Well yeah but I cant press an int inside a String array Dec 08 19:46:03 that is true :) Dec 08 19:46:48 any of you 1337 devs want to help a total newb port a guitar tuner? Dec 08 19:47:31 why are you tyring to pass an int inside a strin garray? Dec 08 19:48:08 Well if I want to do a managedQuery to access the ContentProvider I need to set the columns I want to get out of the provider right? Dec 08 19:48:13 d0netsFN: you are still on that? Dec 08 19:48:19 yeah but the columns names are just strings Dec 08 19:48:32 well Dec 08 19:48:33 Whats the column name for missed calls Dec 08 19:48:40 i got into finals and the end of the semester Dec 08 19:48:46 so i havent really been "on it" Dec 08 19:48:59 (http://code.google.com/android/reference/android/provider/CallLog.Calls.html#MISSED_TYPE) Dec 08 19:49:03 youre doing something like .query(someUri, new String[] {"col1", "col2"}, null,null,null) right? Dec 08 19:49:29 right Dec 08 19:49:45 Just look into the CallLogs.Calls provider Dec 08 19:50:12 (perhaps I'm totally confused right now but I cant get the column name for the MISSED_CALLS) Dec 08 19:50:36 how do you know that column is there Dec 08 19:50:39 anyway Dec 08 19:50:44 make the string array null Dec 08 19:50:59 then do a loop through the cursor.getColumnNames Dec 08 19:51:13 if you are stuck on ContentProviders check out the api demo code Dec 08 19:51:22 blau-MikeDG: i don't think that is necessary Dec 08 19:51:34 thatll get oyou the name Dec 08 21:48:47 My LEDs are blinking now reliable when I miss a call. :-) Dec 08 21:49:14 (pretty reliable I would say 99%) Dec 08 21:50:09 default functionality? Dec 08 21:50:31 default you get no blinking for missed calls Dec 08 21:50:38 just for sms,email, voicemail Dec 08 21:51:17 I just wrote a little service for myself that lets the LED blink if I miss a call. Dec 08 21:51:52 requires root? Dec 08 21:52:17 no Dec 08 21:56:26 anno^da, me like. you gonna put it on the market, make it do more? Dec 08 21:56:36 especially, customizable? Dec 08 22:00:04 anno^da, Reminds me of my Treo. Dec 08 22:00:10 Would be nice to have that again. Dec 08 22:04:43 kirberich: At the moment it is pretty simple. Just doing the call notification. :) Dec 08 22:05:03 I will test it a bit more but let me later upload the apk Dec 08 22:05:17 anno^da, on my current cell phone the most annoying thing is that entirely useless led Dec 08 22:05:21 it blinks all the time Dec 08 22:05:25 :) Dec 08 22:05:30 Yeah I know that. Dec 08 22:05:32 when I get a call or a sms it blinks quicker for like 10 seconds Dec 08 22:05:35 then it blinks normally again Dec 08 22:05:39 it's just entirely stupid Dec 08 22:05:48 At the moment I have a different colour for missed calls. Dec 08 22:06:01 so it would be really cool to have an option to configure that stuff Dec 08 22:06:07 yeah I know that Dec 08 22:06:14 kirberich, If it blinked faster continuously when you had a missed call that would be like the treo. Dec 08 22:06:31 It'd actually be really cool to have different color periodic blinks depending on wireless service type. Dec 08 22:06:38 Well the blinking time and the colour is no problem. Dec 08 22:06:47 or display the sms binary encoded. Dec 08 22:06:50 edge/3g/wifi Dec 08 22:06:57 kirberich, let's not get carried away Dec 08 22:07:00 sorry ;) Dec 08 22:07:29 anyway, if you want some help, I'm still looking for a simple app to get my hands dirty Dec 08 22:07:47 kirberich: blackberry?? Dec 08 22:08:06 unix_lappy, sony ericsson k610i Dec 08 22:43:44 So if someone wants to test the little service for the blinking LED on missed calls drop me a query message. The app is pretty small and was written just for my testing and to get that notification. Dec 08 23:05:36 anno^da: kewl; would be nice if it were part of base platform. ;) Dec 08 23:05:50 * grey- is hoping adp1 firmwarez can be flashed onto a rooted g1. Dec 08 23:07:17 oh wait! Dec 08 23:07:17 http://androidcommunity.com/turn-your-regular-t-mobile-g1-into-a-developers-edition-20081208/ Dec 08 23:07:21 did someone alread do it? Dec 08 23:07:25 I did it Dec 08 23:07:43 it works pretty nice I have the skating Androids running ;) Dec 08 23:08:01 nice anyone tried it? Dec 08 23:08:04 eheh, sweeet! Dec 08 23:10:17 ah just a bootloader. Dec 08 23:10:22 but means can reflash with whatever, right? Dec 08 23:13:38 right Dec 08 23:17:08 schweet. Dec 09 00:03:26 anno^da, you flashed a standard G1 with the developer image? Dec 09 00:11:10 Well in fact I have installed the custom SPL Dec 09 00:11:22 what's SPL? Dec 09 00:11:34 which enables us to run unsigned builts Dec 09 00:11:40 second program loader Dec 09 00:11:54 it replaces the tri color boot loader Dec 09 00:11:58 is there documentation for that anywhere? Dec 09 00:12:10 yeah Dec 09 00:12:12 wait a sec Dec 09 00:13:57 gambler: http://forum.xda-developers.com/showthread.php?t=455860 Dec 09 00:14:13 cygwin cannot build android? Dec 09 00:14:18 under windows? Dec 09 01:32:24 Hey guys, a few of us over on #android are working on an Android FAQ... figured I'd let you guys know about it. (It's not really developer focused, but does touch on some dev issues... Feel free to register and add content. Dec 09 01:32:40 http://android-dls.com/wiki/index.php?title=Android_FAQ Dec 09 01:33:06 General feedback would be cool also. **** ENDING LOGGING AT Tue Dec 09 02:59:57 2008