**** BEGIN LOGGING AT Wed Dec 24 02:59:57 2008 Dec 24 04:05:48 anyone got a good guess why android.graphics.Rect is public final, while android.graphics.RectF is just public ? Dec 24 04:05:58 I really wanted to subclass Rect ... Dec 24 05:33:34 does anyone have any funny links Dec 24 12:56:45 hello all Dec 24 12:57:10 how to debug system components? is there a kernel debugger i can attach to android emulator? Dec 24 13:06:57 * ubuntuk ooh no body here Dec 24 13:11:01 it's the 24th, whaddya expect ;) Dec 24 13:11:27 and as for kernel debugging, 'fraid I don't know. In theory at least, it should be feasible on the dev phone. Dec 24 13:17:22 thanks danderson i could find some articles on google groups but it is very difficult for me Dec 24 14:47:43 ubuntuk: there's no kernel debugger Dec 24 14:47:49 there's arm-eabi-gdb Dec 24 14:48:14 and gdbserver Dec 24 14:48:35 good start , thank you Dec 24 14:48:52 i will google it and see what u can do Dec 24 14:48:58 http://volmari.as/temp/gdbserver Dec 24 14:49:04 gdbserver wasn't shipped with source by accident Dec 24 14:49:08 it will be in cupcake Dec 24 14:49:16 but here is the copy that is supposed to be in there for now Dec 24 14:49:56 checking ... Dec 24 14:52:33 what is gdbserver? Dec 24 14:56:34 it's the part of gdb that actually does all the debugging Dec 24 14:56:43 you can use it as a stub, and use gdb to attach to it Dec 24 14:56:51 it's great for embedded devices w/o enough memory for gdb proper Dec 24 14:57:02 for example, the android emulator Dec 24 14:57:09 in this case, use arm-eabi-gdb Dec 24 15:08:42 cool Dec 24 15:11:22 great thanks to fadden for holding my hand and getting me started with this : ) Dec 24 15:11:53 :) Dec 24 15:12:21 now to dig into the forbidden internals of the mediaplayer and figure out a safe way to stop it from playing, if it already is Dec 24 15:15:32 vol thanks you made my day Dec 24 15:15:41 now i can debug android kernel Dec 24 15:15:45 ubuntuk: good luck Dec 24 15:15:52 do you have it working? Dec 24 15:16:10 not yet but the documents says i am on the right track Dec 24 15:16:19 ok Dec 24 15:16:20 it needs 3-4 hours to get it working Dec 24 15:16:37 I've never done kernel debugging before, so I don't think I can be much help Dec 24 15:17:16 i think this part is easy after installing the GNU debugger Dec 24 15:17:37 well then good luck Dec 24 15:17:45 just remember that you need to run gdbserver Dec 24 15:17:51 on the emulator/device Dec 24 15:17:57 and then use gdb to attach to it Dec 24 15:18:16 and you'll need to use adb to forward the port on the dev/emu Dec 24 15:18:26 so, on emu Dec 24 15:18:34 gdbserver :1234 --attach (some proc id) Dec 24 15:18:41 locally Dec 24 15:18:52 adb forward tcp:1234 tcp:1234 (one time only) Dec 24 15:19:04 then start arm-eabi-gdb as normal Dec 24 15:19:09 and target remote localhost:1234 to attach Dec 24 15:19:34 play with solib path stuff as normal Dec 24 15:20:07 i think android needs something like platform builder for windows mobile and KITL Dec 24 15:20:25 wuss Dec 24 15:20:27 the debugger connection done from UI Dec 24 15:20:36 WUSS! Dec 24 15:20:40 be glad you have a debugger Dec 24 15:20:44 for that matter, be glad this isn't symbian Dec 24 15:20:46 hhhhhhhhhh Dec 24 15:20:54 yes true Dec 24 15:21:10 all I hear from my officemate when he works on symbian is "fucking symbian" and "blyet! sukha!" Dec 24 15:22:10 is he working on platform level or application level? Dec 24 15:23:15 because it really differs Dec 24 15:24:57 I'm not sure Dec 24 15:25:05 all I know is that he ends up having crashes which he can't debug Dec 24 15:25:11 unless he's stepping through the debugger, and by guessing Dec 24 17:31:46 Hi. Do you have to have a sim card to use dev phone 1? Dec 24 17:33:58 no idea Dec 24 17:34:20 if you could you'd only be able to use wifi anyway :( Dec 24 17:35:51 yeah Dec 24 17:36:09 I plan to use it mainly for testing but I have an iPhone SIM I was gonna try to use for the initial setup Dec 24 17:36:45 yea, i didn't try it without one Dec 24 17:37:00 axi0m: ADP1 doesnt not require a SIM. Dec 24 17:37:12 thanks unix Dec 24 17:37:30 But can I do the first phase of setup without one? Dec 24 17:37:45 unix_lappy: do you have a devphone? Dec 24 17:40:26 axi0m: I dont think the ADP1 requires setup. I dont even think it comes with the closed source apps like GMail. Dec 24 17:40:54 it does Dec 24 17:40:58 it goes with GMail Dec 24 17:41:02 comes* Dec 24 17:41:11 you still go through the initial google account setup Dec 24 17:41:27 although the stock IM client only comes with Google Talk :) Dec 24 18:06:40 oh, will I need a sim for the initial google account part? Dec 24 18:07:24 couldn't tell you Dec 24 18:40:40 Got the dev phone working now. Dec 24 18:40:56 It did need a sim hope at&t doesn't get pissed Dec 24 18:45:02 axi0m: many people use iPhone SIMs in G1s. As long as you have an unlimited data plan it should be fine Dec 24 18:45:11 BlackBerry plans don't count for that though Dec 24 18:45:19 BBs use a different kind of data plan usually Dec 24 18:46:00 If GSM operators didn't want foreign phones on their networks, they probably would have picked CDMA. :) It's the converse they don't like: they don't want you taking your AT&T phone to someone else's turf. Dec 24 18:47:25 andyross: why's that? Dec 24 18:47:47 assuming you have a plan with the carrier. Dec 24 18:48:21 Damned if I know, honestly. But unlocking phones is a perennial hassle, on a technology base that was supposed to make it as easy as plugging in a SIM card. Dec 24 18:51:17 carriers take a loss on the subsidized phones Dec 24 18:51:35 they don't want you making them eat $200, for example, and then taking your cheap phone to a competitor Dec 24 18:51:39 hence why you sign a contract :) Dec 24 18:51:44 that's where the early-termination fees come from Dec 24 18:52:07 cancel early, and you have to pay them back their $175 or whatever ETF to cover their (presumed) loss on the handset Dec 24 18:52:15 of course that's the theory Dec 24 18:52:40 in practice they obviously prefer to still charge ETFs in their contracts even if the specific phone you buy isn't a smartphone and didn't actually make them lose $200 Dec 24 18:53:03 Personally I am pretty happy with the new trend toward pro-rating ETFs. That seems pretty fair to me Dec 24 19:08:51 Hi all, I implemented a custom ViewGroup but I can't see its child Views. Does anyone here know why? Dec 24 19:09:30 Show the code :) Dec 24 19:09:51 hold on :) Dec 24 19:10:56 http://pastebin.com/d21feb1fb Dec 24 19:11:06 Thanks for helping me Dec 24 19:11:35 you didn't implement onMeasure Dec 24 19:11:44 all the children have a width and height of 0 Dec 24 19:11:51 (you can use hierarchiviewer to debug that kind of stuff) Dec 24 19:11:57 oh. what should onMeasure do? Dec 24 19:12:16 hierarchiviewer.. hmm Dec 24 19:12:20 never heard of it Dec 24 19:12:22 find out the size of the viewgroup and its children Dec 24 19:12:25 it's in the SDK Dec 24 19:12:27 in tools/ Dec 24 19:12:32 (works with the emulator) Dec 24 19:12:42 for onMeasure, go look at the source code of FrameLayout for instance Dec 24 19:13:10 hmm.. ok i will check all that out Dec 24 19:13:17 thanks for the cues Dec 24 19:13:23 np Dec 24 19:14:27 my version of drawChild is sufficient? do I need to translate the canvas before calling a draw on a child? Dec 24 19:14:39 s/version/implementation/ Dec 24 19:14:46 you should NOT override drawChild() Dec 24 19:14:49 especially the way you did it Dec 24 19:14:53 you are drawing each child twice Dec 24 19:15:16 oh.. i thought it was protected so it need implementation Dec 24 19:15:30 a protected method doesn't mean it has to be implemented Dec 24 19:15:37 (that's what abstract is for) Dec 24 19:16:06 yes. but I am trying to implement a ViewGroup that allows dragging of its Views Dec 24 19:16:23 so I need to be able to redraw the Views when a drag occurs Dec 24 19:16:31 so? Dec 24 19:16:38 that's what invalidate() is for Dec 24 19:16:44 and the only way I see to do it is override drawChild Dec 24 19:16:48 (you can look at the source code of Home to see how we did it btw) Dec 24 19:16:52 has anyone bricked a dev phone yet? Dec 24 19:16:56 don't override drawChild() Dec 24 19:17:06 ok. source code of Home? Dec 24 19:17:16 the source code of the Home screen Dec 24 19:17:47 oh which package or git repo is that in? Dec 24 19:17:53 package/apps/Launcher Dec 24 19:17:57 thanks! Dec 24 19:30:32 yeah, and it can connect to edge, and make calls fine Dec 24 19:30:54 I just finished setting up the wifi, & installed Bonsai blast on it. Fun game :D Dec 24 19:32:32 Is anyone working on bringing a vnc client to Android? My friend has a windows mobile htc phone & he can vnc on his. Might be a cool project... Dec 24 20:32:13 anyone know how to register a receiver in a persistent manner? Dec 24 20:32:18 without doing so in the manifest Dec 24 21:33:21 hmm, i'm guessing not so much. Dec 24 21:33:28 whoops. Dec 24 22:18:12 anyone know how to register a receiver in a persistent manner? without doing so in the manifest Dec 24 22:59:49 hey guys.. i have the engineering bootloader installed.. when i goto it.. it flashes No Image File! then when i plug in usb, i get Serial0, i hit back and nothing.. it never goes to fastboot. Dec 24 22:59:53 any ideas? Dec 24 23:00:53 anyone? Dec 24 23:01:24 ph|ber: you see the skateboarding androids? Dec 24 23:01:38 yea Dec 24 23:01:43 it says serial0 Dec 24 23:01:49 oct 20 2008 Dec 24 23:02:12 i hit back, and it doesnt goto fastboot Dec 24 23:02:18 er say fastboot Dec 24 23:02:23 hmmm Dec 24 23:02:30 weird. Dec 24 23:02:34 yeah.. Dec 24 23:02:51 when it boots to fastboot, it flashes No image File! for like a second Dec 24 23:02:54 on a grey screen Dec 24 23:03:03 yeah that's normal. Dec 24 23:03:07 ok Dec 24 23:03:22 hmm Dec 24 23:03:28 [retesting] Dec 24 23:03:30 works for me... Dec 24 23:03:35 you're on a mac? Dec 24 23:03:38 im on osx 10.5.6 Dec 24 23:03:39 or have usb drivers installed? Dec 24 23:03:40 yeah Dec 24 23:03:43 huh. Dec 24 23:03:52 also.. i noticed. Dec 24 23:03:56 unplug/replug usb? Dec 24 23:04:01 when the phone is on.. Dec 24 23:04:01 hit back again? Dec 24 23:04:06 and plug in usb. Dec 24 23:04:16 i get no option to mount the phone.. nor does the adb work Dec 24 23:04:23 ohh Dec 24 23:04:28 maybe you have a bum usb port! Dec 24 23:04:32 which would suck. Dec 24 23:04:35 can you charge it? Dec 24 23:04:40 get this on syslog Dec 24 23:04:43 yeah its charging Dec 24 23:04:43 The IOUSBFamily was not able to enumerate a device. Dec 24 23:04:50 he IOUSBFamily is having trouble enumerating a USB device that has been plugged in. It will keep retrying. (Port 2 of hub @ location: 0x1a000000) Dec 24 23:04:51 hmmm. Dec 24 23:05:13 i did a wipe this morning.. thinking something was hung or something. Dec 24 23:05:14 no good Dec 24 23:05:17 tried a different usb port? Dec 24 23:05:20 yeah Dec 24 23:05:28 im on a mbp Dec 24 23:05:29 and other usb devices work ok on your mac? Dec 24 23:05:33 yeah. Dec 24 23:05:37 i have a card reader Dec 24 23:05:41 that works for the sdcard Dec 24 23:05:52 hmmm. Dec 24 23:06:11 that is disconcerting... Dec 24 23:06:16 i got hboot-0.95.3000 Dec 24 23:06:20 radio 1.22.12.29 Dec 24 23:06:24 cpld-4 Dec 24 23:06:34 drea100 pvt 32b Dec 24 23:06:37 yeah.. Dec 24 23:06:43 that all sounds normal. Dec 24 23:06:50 it sounds like some osx issue. Dec 24 23:06:53 have you rebooted your mac? Dec 24 23:07:00 i was thinking that.. Dec 24 23:07:07 there are occasions where I've run into similar things resolved by an osx reboot. ;-/ Dec 24 23:07:14 how can i re-install the usb drivers Dec 24 23:07:18 but I've also run into dead ports on macs. Dec 24 23:07:18 i just rebooted. Dec 24 23:07:22 [but usually just firewire] Dec 24 23:07:32 hmmm hehe I'm not sure about reinstalling osx usb drivers. Dec 24 23:07:37 it's pretty fundamental. ;) Dec 24 23:07:51 are you on 10.5.6? Dec 24 23:07:56 I am. Dec 24 23:08:25 hrm Dec 24 23:08:26 googling reveals.. Dec 24 23:08:27 "I ran into the same problem and solved it by quitting the MicrosoftMouseHelper process. This process was used by an old Microsoft Optical Trackball mouse I used to use, but it broke. Dec 24 23:08:31 To see if this process is running on your machine, start Activity Monitor (/Applications/Utilities), select "Active Processes" from the drop-down list at the top of the window, and look for it. Dec 24 23:08:35 To quit it, select it and press the Quit Process button." Dec 24 23:08:38 dunno if that applies to you though. Dec 24 23:09:30 i have no Microsoft shit running Dec 24 23:09:31 :> Dec 24 23:09:34 heh Dec 24 23:10:49 seems to be a common problem w/ osx. Dec 24 23:10:57 with various attempts at fixex. ;-/ Dec 24 23:10:57 hrm.. damnit Dec 24 23:11:07 not sure which applies to you. Dec 24 23:11:17 http://www.computeraudiophile.com/OS-X-10.5.6-24-88.2-USB-Problem-Resolved Dec 24 23:11:21 some people seem to think this helps: Try to delete AppleFPMemDriver.kext Dec 24 23:11:49 hrm.. Dec 24 23:11:49 but I dunno if that's adviseable. Dec 24 23:12:06 a lot of people suggesting such things appear to be on OSx86 sites. Dec 24 23:12:23 hrm. Dec 24 23:12:39 wonder if i need that? Dec 24 23:12:47 I'd imagine normally yes. Dec 24 23:13:02 a lot of these people mention ps/2 keyboards. Dec 24 23:13:09 I wouldn't want you deleting that and then having no keyboard. ;) Dec 24 23:14:38 looks like there are alot of problems with 10.5.6 and DFU mode on iphones Dec 24 23:14:47 gotta jet.. be back in an hour or so Dec 25 01:41:28 back Dec 25 01:56:01 grey-: you still here? Dec 25 01:57:22 haha, amazingly yes; got a late lunch and am back at the office for some reason. Dec 25 01:57:44 well.. i just went and tried to plug my g1 in my inlaws computer. Dec 25 01:57:51 and it didnt ask for usb storage either. Dec 25 01:57:54 still no joy? Dec 25 01:57:54 wow. Dec 25 01:57:57 that sucks. ;-/ Dec 25 01:58:04 heh.. yeah Dec 25 01:58:27 what firmware version are you on? Dec 25 01:58:30 mine is 1.0 Dec 25 01:58:49 and my build is 1.0 TC4-RC30 116143 Dec 25 01:59:38 wonder if its my usb cable.. Dec 25 01:59:41 is there a difference? Dec 25 01:59:43 in cables. Dec 25 02:01:27 i think i may go back down to rc29. Dec 25 02:14:35 it was my CABLE!! Dec 25 02:15:37 oh geeze! Dec 25 02:15:42 always something simple! Dec 25 02:16:15 and!! Dec 25 02:16:20 i freaking did a wipe!!! Dec 25 02:16:25 and i have 0 signal where i am Dec 25 02:16:33 i have to go like 7 miles down the road to get signal Dec 25 02:16:56 so im trying to activate it without a sim and signal Dec 25 02:17:21 ahhh. Dec 25 02:17:31 heh, good luck. :) Dec 25 02:20:14 haha.. got it! Dec 25 02:20:15 whoaho! Dec 25 02:20:17 that was easy Dec 25 02:54:27 hrm.. Dec 25 02:54:38 ok so how do i recover from a cupcake install. Dec 25 02:54:51 i used an update.zip but its stuck at the android boot screen **** ENDING LOGGING AT Thu Dec 25 02:59:57 2008