**** BEGIN LOGGING AT Sat Dec 27 02:59:57 2008 Dec 27 03:10:49 hi. is it normal that the screen does not lock (does not ask to press menu to unlock) in either release-1.0 or cupcake? Dec 27 03:10:59 it does seem to lock fine using the SDK 1.0r2 system image Dec 27 03:11:08 (I also rm -Rf ~/.android between any emulator runs) Dec 27 03:46:57 uh Dec 27 03:47:02 I searched the market Dec 27 03:47:06 and found 0 fart apps Dec 27 03:47:12 how is Android going to survive? Dec 27 05:44:16 anyone here know how broadcast intents are resolved? what is the most efficient way to set up an alarm receiver for a broadcast intent that i will fire within the same class? Dec 27 05:45:11 i am implementing a keep alive alarm, and i want to make sure that i dont have some resolution overhead when im firing this broadcast intent (as i am doing it every 25 minutes forever) Dec 27 05:45:31 is it a lot of code Dec 27 05:45:41 not particularly? Dec 27 05:47:02 i'd just have the alarm call the receiver and run the code there Dec 27 05:48:09 i'm actually messing with alarms this weekend Dec 27 05:48:15 thats what it does, but if you think about it the alarm has to resolve the intent to my receiver somehow. is there any way i can assist it to be as efficient as possible? Dec 27 05:48:32 hm Dec 27 05:48:33 for instance, does explicitly setting the class on the broadcast intent do anything? Dec 27 05:49:22 it has to resolve the class as well no? Dec 27 05:49:37 this intent truly is not meant to be a broadcast. that is, there is no reason why it should resolve generically. it is useful only within the context that fires and receives it. Dec 27 05:50:08 true Dec 27 05:50:15 and since it fires often, i want to make sure i'm not taking an expensive path each time it fires Dec 27 05:50:35 i guess the only way to know for sure would be to dig into the code. i fear this is very complex code though :) Dec 27 05:50:45 :) i'd say Dec 27 05:51:02 this is your stuff now :) Dec 27 05:51:35 actually i bet there is expensive overhead but i bet it can't be avoided. Dec 27 05:51:47 because i have to communicate with the AlarmManager service and do everything over IPC Dec 27 05:51:54 yea Dec 27 05:52:01 for the mail app? Dec 27 05:53:03 ultimately, yes. Dec 27 05:53:19 right now im just putting all this logic together properly in my TestKeepAlive module Dec 27 05:53:32 then ill move it back into the email app (my first attempt was suboptimal, so i broke it out to experiment) Dec 27 05:53:57 nice Dec 27 05:54:06 i put my att sim in the devphone Dec 27 05:54:11 picked up att right away Dec 27 05:54:19 i'm in ct so no tmo service Dec 27 05:55:23 RSSReader is sort of usable now :0 Dec 27 05:56:03 need to make it better, but it builds Dec 27 05:56:06 and runs Dec 27 06:19:19 sweet, i think i got it working just like i want :) Dec 27 06:21:44 just committed if youre interested Dec 27 06:37:17 jasta: when you set a component name explicitly on an intent, you basically bypass the intent resolution Dec 27 06:37:48 are you sure? and does that work for broadcast intents? Dec 27 06:37:54 yes Dec 27 06:38:12 you don't need to worry about overheads when doing explicit intents Dec 27 11:06:02 New at java, so apologies.. I'm writing an application that is (so I'm told) something like the delicious library application for OSX. I'm wondering if i should store all assets in a contentprovider Dec 27 11:06:20 or is this aimed at system utilities rather than third party applications. Dec 27 11:06:48 hmm? Dec 27 11:07:35 static resources need not go in a contentprovider. the packagemanager is capable of extracting them. Dec 27 11:07:55 I dont think that things that people own are static. Dec 27 11:08:07 not sure exactly what your question is though Dec 27 11:08:55 I have a bunch of "things" that people own, is this content worth putting in a content provider, or is that reserved for system applications ? Dec 27 11:09:16 nothing is reserved for system applications... Dec 27 11:09:27 ok Dec 27 11:09:50 a contentprovider is a component designed to share data using a particular paradigm/api, thats all. Dec 27 11:09:51 is this the right use of a contentprovider then ? Dec 27 11:10:23 if the contentresolver api looks like something that makes sense for your data, and you wish to share it, then by all means use it Dec 27 18:59:02 somebody fancy trying a different ril implementation on their unlocked g1? Dec 27 19:39:39 id like to install debian on the t-mobile G1, anyone knows a www or guide to follow the steps? i was going to follow steps described on saurik's method ( http://www.saurik.com/id/10) but i see it a bit outdated (tested on rc19) Dec 27 19:41:13 this is the dev channel :) Dec 27 19:41:20 wrong plac Dec 27 19:41:22 e Dec 27 19:43:07 its that there isnt an android-hack channel and i thought this is a piece of work a bit advanced for just regular android users Dec 27 19:44:01 :) i know but this isnt android-hack its android-dev Dec 27 19:46:08 ok, ill remember to just write code lines here when asking for help Dec 27 19:51:46 michaelnovakjr_: so does cupcake or release-1.0 lock screen on your emulators? Dec 27 19:52:02 i don't use the emulator anymore :) Dec 27 19:52:36 what do you mean by lock screen? Dec 27 19:52:55 what has this changed to: Dec 27 19:52:58 i tried android.intent.action.DATA_SMS_RECEIVED as well Dec 27 19:53:12 i don't see either documented, but see them used in numerous examples online Dec 27 19:53:15 when you press hangup, it closes the screen and should lock it (any key pressed other than menu should display a popup with time and press menu to unlock) Dec 27 19:53:32 for me neither cupcake nor release-1.0 lock the screen anymore (tho emulator from 1.0r2 sdk DOES) Dec 27 19:53:40 anything I press it just opens the screen Dec 27 19:53:54 wooli: check the android source Dec 27 19:54:02 which is similar to a bug I am trying to hunt down on my dev g1 which also does not lock screen (for 4 days now) Dec 27 19:55:06 d1zzy: i'm still running the stock release on my adp Dec 27 19:55:36 adp? Dec 27 19:55:41 android dev phone Dec 27 19:55:47 ok Dec 27 19:55:48 I too Dec 27 19:56:14 i <3 it Dec 27 19:56:18 but when I noticed that both git versions seem to experiment what my stock dev g1 does I thought maybe I should investigate their cause for this and maybe find the stock g1 cause Dec 27 19:56:33 i dont have a lock issue Dec 27 19:57:28 * d1zzy is working on the improved alarm clock Dec 27 19:57:40 I just finished adding the new option to alarm settings Dec 27 19:57:58 now I need to make the alarm ringing popup display it... Dec 27 19:58:47 :) Dec 27 19:59:05 michaelnovakjr: i don't have 2GB left for the code. Dec 27 19:59:09 this is frustrating Dec 27 19:59:20 heh Dec 27 19:59:22 i can install it on my other workstation Dec 27 20:01:47 but... my other workstation is windows and git support for windows is crappy (though, i haven't evaluated git in a while) Dec 27 20:02:37 is there a SVN or hg mirror somewhere? Dec 27 20:04:32 not that i know of Dec 27 20:04:35 use a vm Dec 27 20:06:06 i might just do that... and if this code is not in there, i'm going to be so pissed Dec 27 20:06:10 heh Dec 27 20:06:29 it is Dec 27 20:07:30 why isn't it documented Dec 27 20:08:43 i don't even care about SMS_RECEIVED... i just want to know what the action is being called when the phone rings. Dec 27 20:09:18 wooli: no one said developing software was easy :) Dec 27 20:09:27 its horrible :P Dec 27 20:09:28 michaelnovakjr_: that's why you document Dec 27 20:09:39 to make it easier Dec 27 20:09:50 wooli: they give you the source :) Dec 27 20:10:00 2GB of it Dec 27 20:10:02 i haven't had any issues :) Dec 27 20:10:19 lucky you Dec 27 20:10:28 answers don't always jump out and say here i am! Dec 27 20:11:07 and now my ubuntu vm won't download from us.archive.ubuntu.com Dec 27 20:11:16 heh... bad day Dec 27 20:11:33 oohh... there it goes Dec 27 20:17:53 i have a feeling that i'm going to go through all of this effort and i'm not going to be able to do what i want to do, because i'm not going to be able to get my action in soon enough due to security issues Dec 27 20:22:22 you need patience Dec 27 20:22:36 trust me, if what you were doing was so easy 10 people would have done it already Dec 27 20:22:39 michaelnovakjr_: yes, i do Dec 27 20:22:54 if you want something easy the tip calculator idea seems pretty popular :) Dec 27 20:23:05 heh Dec 27 20:24:02 * michaelnovakjr_ goes back to coding Dec 27 20:34:39 yawn Dec 27 20:34:42 morning mike Dec 27 20:34:53 morning Dec 27 20:35:00 what's up Dec 27 20:35:53 not much Dec 27 20:36:00 hey i was thinking about the logcat viewer on the phone last night... Dec 27 20:36:30 we should add a few niceties like an option in the menu to toggle the autoscrolling, and when we convert it to ListView we should make it filterable Dec 27 20:36:37 yea Dec 27 20:36:42 likewise there should be a settings panel that should let you apply permanent filters Dec 27 20:36:45 and also switch the saving to the sdcard Dec 27 20:36:51 i noticed that after i committed it Dec 27 20:37:10 theres a lot you could do with this to make it a useful tool Dec 27 20:37:18 i was actually using it to spy on my keep alive service from bed last night :) Dec 27 20:37:18 definitely Dec 27 20:37:23 :) Dec 27 20:37:47 btw, have you played the Scrambled Net game? i thought it looked stupid from the description but i like it :) Dec 27 20:38:01 on anything but master or expert difficulty its way too easy though. Dec 27 20:38:38 i'll have to check it out Dec 27 20:43:06 jasta, keep alive was working last night? Dec 27 20:43:23 yeah, it is working now Dec 27 20:43:50 sweet Dec 27 20:44:06 im just tweaking it to find the most optimal configuration Dec 27 20:44:15 nice Dec 27 20:50:16 im gonna blog about this today when i get it all figured out Dec 27 20:50:24 i think this is probably a pretty useful topic to explore publicly Dec 27 20:51:14 jasta, where do you blog? Dec 27 20:51:26 devtcg.org Dec 27 20:53:44 michaelnovakjr_: it basically just holds open an echo service connection. every so often it will send a timestamp keep alive Dec 27 20:53:48 so you can actually chat with it via nc :) Dec 27 20:53:56 its amazing to visualize just how slow EDGE is ;) Dec 27 20:54:10 :) Dec 27 20:54:12 it sometimes takes 20 seconds for my packet to echo back to me Dec 27 20:54:13 that's awesome Dec 27 20:54:22 damn Dec 27 20:55:47 it also attempts to reconnect sensibly Dec 27 20:56:07 using the connectivity manager for hints as well Dec 27 20:56:15 so its really a complete drop-in example of how to make a persistent tcp connection Dec 27 20:56:59 sweet, i could certainly use something like that Dec 27 20:57:25 nc is kind of pissing me off for these tests though Dec 27 20:58:10 when the cell network gets disconnected, nc doesn't detect this and shut the connection down (since its not sending naything) Dec 27 20:58:15 and its not an orderly shutdown Dec 27 20:58:33 but since nc can only accept 1 connection at a time the client side fails to reconnect until several minutes later when nc figures it out Dec 27 20:58:33 can you override it? Dec 27 20:58:54 i had always thought nc had an option to accept multiple incoming connections Dec 27 20:58:57 but apparently not Dec 27 21:00:49 that sucks Dec 27 21:01:08 by the way, i have learned that Android reports connection refused as "The connection was reset". that is maddening ;) Dec 27 21:03:20 haha Dec 27 21:03:31 that's not right :) Dec 27 21:03:38 wow! I finished adding a message string to alarm clock Dec 27 21:03:39 neat, ubuntu has an alternative netcat package, netcat-openbsd, which includes the options i need. Dec 27 21:03:57 * d1zzy 's first android hack Dec 27 21:06:40 :O Dec 27 21:06:45 pics or didnt happen Dec 27 21:07:08 I can provide the apk Dec 27 21:07:21 or the diff against release-1.0 Dec 27 21:07:37 next things on my improve alarm clock todo: Dec 27 21:08:00 1. add alarm clock wide settings page with posibility to set snooze time, ring time before snooze (if not clicked on snooze), etc Dec 27 21:08:17 2. have the functionality (and setting) to support incremental ringing Dec 27 21:08:31 how about make it snooze depending on the velocity Dec 27 21:08:38 not having incremental ringing is dumb cause when it sdtarts ringing at work it scares everyone Dec 27 21:08:45 measure how hard i throw my phone off the night stand and dynamically adjust snooze time accordingly Dec 27 21:08:55 jasta++ Dec 27 21:09:06 yea or the amount of impact Dec 27 21:09:19 well I doubt either the GPS or the cell location is that sensitive to measure veolocity Dec 27 21:09:23 it can measure acceleration tho Dec 27 21:09:26 using the meter Dec 27 21:09:37 i was joking of course, dont really do that Dec 27 21:09:43 why not, sounds like a nice idea Dec 27 21:09:56 reading the accelometer should be easy enough Dec 27 21:09:58 hey btw, im really disappointed that sergey did not present his app on the market yet. Dec 27 21:10:03 :') imagine all these stupid people really throwing their g1's Dec 27 21:10:09 he claimed he wrote an app that measures how high you throw your phone and catch it Dec 27 21:10:11 returning it to the stores Dec 27 21:10:12 xD Dec 27 21:10:15 if you combined that with global high scores, oh man! Dec 27 21:10:18 Falcon4ever: kick ass Dec 27 21:10:20 oh lol jasta Dec 27 21:10:38 i promise you that the high score would ultimately be held by some guy who throws his phone off a tall building Dec 27 21:10:48 hehe Dec 27 21:11:00 however, the scoring would have to be sent real-time as the phone is int he air Dec 27 21:11:14 cant wait for a landing that may never come :) Dec 27 21:11:14 btw, supporting arbitrary media files for ringing should be easy enough or is more complex? I'venoticed that even call ringing does not support to select arbitrary media files Dec 27 21:11:30 d1zzy: yes it does, just install Rings Extended Dec 27 21:11:38 hmm Dec 27 21:11:46 they guy from will it blend didnt yet tried out the g1 Dec 27 21:11:57 jasta: ok, lets see if that changes ring selection for alarms too Dec 27 21:12:03 d1zzy: it does Dec 27 21:12:13 it changes every place that ringtones are chosen Dec 27 21:14:41 interesting that the SDK provides a way to alter android builtin features Dec 27 21:14:45 very flexible Dec 27 21:21:21 jasta: indeed. works great. greast idea! Dec 27 21:21:25 great* Dec 27 22:43:19 is there a intent filter for right before the phone rings? Dec 27 22:43:42 so on INCOMING_CALL, but before the phone actually rings Dec 27 22:43:51 look at the source!! Dec 27 22:44:30 michaelnovakjr_: i don't know what to look for... i'm in Telephony.java Dec 27 22:44:50 michaelnovakjr_: you're right that i am inpatient Dec 27 22:45:56 also, the git repos seems to differ from the released SDK Dec 27 22:46:03 which is expected, i guess Dec 27 22:46:10 Dec 27 22:46:12 Dec 27 22:46:22 that wasnt hard :) Dec 27 22:47:00 that's permission Dec 27 22:47:10 oh you want intents Dec 27 22:47:16 yeah Dec 27 22:48:31 android.intent.action.NEW_OUTGOING_CALL Dec 27 22:48:35 incoming Dec 27 22:48:54 thanks for your help, btw Dec 27 22:49:55 ahh... it does not seem possible yet Dec 27 22:50:03 it says TODO: in the code Dec 27 22:50:25 that's probably why this app doesn't already exist Dec 27 22:50:26 i found it Dec 27 22:50:42 ? Dec 27 22:50:42 you can listen for PHONE_STATE_CHANGED Dec 27 22:53:16 nope you need permissions i know you can't get Dec 27 22:53:53 the incoming listeners are internel Dec 27 22:53:57 internal* Dec 27 22:54:16 you need a certain uid to access the classes Dec 27 22:54:27 and also to build with the source :) Dec 27 23:16:38 I'm debugging code where I call finish() first, then check something while finishing, then setResult(RESULT_CANCELED) accordingly. It seems the old result code instead of the new arrives in the parent activity that waits for it. Is it necessary to do setResult() first and then finish()? How could I bypass this? Dec 28 00:13:36 is there something inherently wrong with spawning a new thread from a TimerTask ? Dec 28 02:32:39 i'm having a noob moment, i think.. how does one populate a listview to a static array? ive tried creating an array resource and passing @array/myListEntries, but it doesn't work for some reason Dec 28 02:33:10 it says "unknown value for gettextarray(0) => Easy" Dec 28 02:33:21 where easy is the first element in my array Dec 28 02:38:58 SimpleCursorAdapter? **** ENDING LOGGING AT Sun Dec 28 02:59:57 2008