**** BEGIN LOGGING AT Sun Jan 25 02:59:58 2009 Jan 25 03:00:03 there aren't any differences in the system calls, though Jan 25 03:00:09 let me verify that with a diff, hold on Jan 25 03:00:41 KNY: ... usb debugging is on? Jan 25 03:00:43 lol Jan 25 03:00:48 :) Jan 25 03:00:50 Gary|tp, haha yes Jan 25 03:01:09 Gary|tp, the weird thing is that it sees emulator(s) just fine Jan 25 03:04:51 this may be a silly question, but if my application is granted read/write permissions to an android content provider, am I also given direct read/write access to the database (so when a field in my database references a field in the android content provider, I can make triggers to handle deletions properly) Jan 25 03:05:42 KNY: did you do anything weird to the desktop lately? if you mount the sdcard, does it show up? Jan 25 03:05:55 is it a 2.0 usb port? Jan 25 03:06:11 Gary|tp, other than rebooting (which is odd for me), no. I can mount the sdcard and read/write. Yes, it's usb 2.0 Jan 25 03:06:24 hmm Jan 25 03:06:34 yeah, I'm stumped Jan 25 03:07:14 try unchecking and checking the usb debug box, reboot the phone? Jan 25 03:07:27 tried that, and that. Jan 25 03:07:39 and tried rebooting the PC (again) Jan 25 03:07:49 I'd say it was a PC problem if it wouldn't mount the sdcard, but since it will that's odd. Jan 25 03:07:57 hmm, there's an r2 of the SDK out now Jan 25 03:07:58 let me update Jan 25 03:08:14 shouldn't matter, nothing changed on the phone so old adb should still work Jan 25 03:08:24 (unless you're using some internal version lol) Jan 25 03:08:29 hmm didnt know about this channel... Jan 25 03:08:31 nope, stock RC30 Jan 25 03:09:40 r2 didn't change anything :-/ Jan 25 03:10:42 whats in the rules file? you do run ibex, right? /etc/udev/rules.d/ Jan 25 03:11:09 yeah, followed the instructions, but... SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" Jan 25 03:11:39 Same as mine :/ Jan 25 03:11:46 yeah Jan 25 03:11:52 that was the first thing I checked Jan 25 03:12:08 does it show up under adb devices? Jan 25 03:12:21 no, that's the problem Jan 25 03:12:26 but the emulator does Jan 25 03:13:19 hmm Jan 25 03:15:26 I... don't know :/. Jan 25 03:15:47 yeah, me neither Jan 25 03:15:50 sure sucks, though Jan 25 03:16:13 I really don't want to do a factory reset but I'll try it if I can't get this working Jan 25 03:16:44 if you do a factory reset, you really should switch to JFs mod :P Jan 25 03:16:59 yeah Jan 25 03:17:13 though I think I can sucker T-Mobile into letting me return this Jan 25 03:17:17 meaning I can buy an ADP1 Jan 25 03:17:21 haha Jan 25 03:17:29 and by "sucker" i mean I do have a somewhat valid reason Jan 25 03:17:45 if I open or close the screen with force and do it just right, the phone shuts odd Jan 25 03:17:46 off Jan 25 03:17:49 just, dies Jan 25 03:18:04 I can see that going well. "yeah hey, adb refuses to work on this phone, I'd like to return it", "uhh what's adb?" Jan 25 03:18:13 haha Jan 25 03:18:19 haha Jan 25 03:18:21 that would work quite a bit better Jan 25 03:18:51 but it's annoying because sometimes (like, multiple times a day) I pull the phone out of my pocket and it's been dead for god knows how long Jan 25 03:18:57 the battery isn't dead, just the phone is off Jan 25 03:19:01 hmm Jan 25 03:19:05 they'd probably just replace it Jan 25 03:19:14 unfortunately :( Jan 25 03:19:21 but there's no real reason to switch to ADP1 anyway? Jan 25 03:19:27 yeah, that's what I'm counting on Jan 25 03:19:49 and I'll tell them to note that if it still has the problem, I'll return the exchange in 14 days because it's obviously a design defect Jan 25 03:20:01 get a refund, buy an adp1 Jan 25 03:20:17 and there's a good reason: the adp1 has the sweet backplate Jan 25 03:20:18 haha Jan 25 03:20:25 I mean, the only difference is it's unlocked and a cool backplate. Not worth the $200+, and no warranty Jan 25 03:20:47 I mean even if you screw up your phone with root, as evil as it is t-mobile would replace it Jan 25 03:20:54 with ADP you're kinda screwed Jan 25 03:21:05 true Jan 25 03:21:23 well Jan 25 03:21:29 fastboot kinda makes that moot anyway. nvm lol. Jan 25 03:21:51 haha Jan 25 03:21:54 I suppose it's possible to destroy the bootloader, but you'd really have to TRY to do that. Jan 25 03:22:21 heh Jan 25 03:22:31 * KNY sighs Jan 25 03:22:34 stupid adb Jan 25 03:22:40 or stupid phone, I don't know which Jan 25 03:22:43 just get a G1, lol. Jan 25 03:22:50 oh, adb. Jan 25 03:22:53 haha Jan 25 03:23:01 I really don't know :/ Jan 25 03:23:02 yeah, upside-down p Jan 25 03:23:46 let me try the VM I used to use to do android dev... Jan 25 03:25:02 KNY: did you get any error messages in dmesg? Jan 25 03:25:12 tmzt, no Jan 25 03:25:53 tmzt, http://pastebin.ca/1317671 Jan 25 03:27:44 sde is your g1? Jan 25 03:27:56 why is it mounting the sd card? Jan 25 03:28:21 it's not mounted Jan 25 03:28:26 hey guys, I'm using setMultiChoiceItems with an AlertDialog Builder and I was wondering if there was anyway to get a reference to the actual ListView within the dialog after the dialog is created? Jan 25 03:28:29 dmesg -c and try again Jan 25 03:29:04 tmzt, http://pastebin.ca/1317672 Jan 25 03:29:42 that is goofy about sde Jan 25 03:30:35 same thing Jan 25 03:31:21 yep Jan 25 03:31:39 er, wait, I pasted the wrong one Jan 25 03:31:46 though the right one is the same, just with different timestamps Jan 25 03:32:17 http://pastebin.ca/1317675 Jan 25 03:32:19 there you go Jan 25 03:35:37 it's not asking you if you want to mount the card when you plug the usb? Jan 25 03:36:00 tmzt, it shows the thing in the notifications bar and if I drag it down, I can choose to mount it or not Jan 25 03:36:13 this dmesg is doing nothing other than just plugging it in Jan 25 03:36:28 it's not actually mounted, though Jan 25 03:36:49 it doesn't show up under fdisk Jan 25 03:38:33 don't mount it Jan 25 03:38:39 what does fdisk -l /dev/sde show? Jan 25 03:39:06 I haven't mounted it Jan 25 03:39:29 kny@kny-desktop:~$ sudo fdisk -l /dev/sde Jan 25 03:39:29 kny@kny-desktop:~$ Jan 25 03:40:04 what kernel/version of android are you using? Jan 25 03:40:30 the SDK? Jan 25 03:40:41 on the g1 Jan 25 03:40:44 the SDK is what's on the site... 1.0_r2 Jan 25 03:40:49 stock OTA RC30 Jan 25 03:41:03 it worked literally last night, but not today Jan 25 03:41:07 with updates to neither side Jan 25 03:41:55 lsusb by itself works, the device shows up there or not? Jan 25 03:42:43 Bus 002 Device 011: ID 0bb4:0c02 High Tech Computer Corp. Jan 25 03:44:36 what user are you running adb (the client) as? Jan 25 03:45:21 user, like I always have Jan 25 03:45:30 (not sudo/root) Jan 25 03:45:30 also ls -lh /dev/usbdevs.11_* Jan 25 03:45:39 also ls -lh /dev/usbdev2.11_* Jan 25 03:46:04 ls: cannot access /dev/usbdevs.11_*: No such file or directory Jan 25 03:46:21 crw-rw---- 1 root root 253, 19 2009-01-24 22:36 /dev/usbdev2.11_ep00 Jan 25 03:46:37 and that, but repeated for ep01, ep02, ep81, ep82 Jan 25 03:46:52 so you don't have the correct udev settings Jan 25 03:47:19 ? Jan 25 03:47:38 SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" Jan 25 03:47:53 hmmm. Jan 25 03:48:07 Just chmod to see if it's working with permissions changed. Jan 25 03:48:51 you mean chmod a+rx /etc/udev/rules.d/50-android.rules? Jan 25 03:48:52 I tried that Jan 25 03:49:04 SanMehat: should the usb storage device show up when not mounted in the pull-down on android? Jan 25 03:49:09 No. the device, siclly. Jan 25 03:50:12 tmzt: it will show up as a removable device with no media Jan 25 03:50:12 chmod 666 /dev/usbdev2.11_ep00 Jan 25 03:50:41 SanMehat: so shouldn't fdisk -l say "No media present"? Jan 25 03:50:55 ah, fdisk just ignores things, very annoying at times Jan 25 03:51:03 tmzt: that depends on fdisk i guess :) Jan 25 03:51:36 yeah, I usually use xxd Jan 25 03:51:53 CardinalFang, no change after the chmod Jan 25 03:52:08 chmod 666 /dev/usbdev* Jan 25 03:52:14 you only have one endpoint Jan 25 03:52:19 KNY, no change to "adb devices"? Jan 25 03:52:34 CardinalFang, tmzt, no change Jan 25 03:52:44 I did adb kill-server && adb devices Jan 25 03:52:49 I think you also need chmod -R 666 /dev/bus/usb to allow ioctl's Jan 25 03:53:53 tmzt, no change Jan 25 03:54:15 does adb server use a socket on the pc side? Jan 25 03:54:28 KNY, strace should tell you of ioctl and file operations. Jan 25 03:54:59 Sorry. My only tool is that hammer. Jan 25 03:55:07 CardinalFang, haha Jan 25 04:00:09 tmzt, was that question for me? Jan 25 04:00:52 if so, I'm pretty sure, yeah.. socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3 Jan 25 04:00:52 connect(3, {sa_family=AF_INET, sin_port=htons(5037), sin_addr=inet_addr("127.0.0.1")}, 16) = 0 Jan 25 04:03:53 is adb server running? Jan 25 04:04:02 nc 127.0.0.1 5037 Jan 25 04:06:10 yes, it's running Jan 25 04:06:24 well, it's running in that I don't get "Connection refused" Jan 25 04:09:42 I don't know the adb protocol Jan 25 04:10:55 I assumed it from strace Jan 25 04:11:10 and I get FAIL0012device offline (x) Jan 25 04:11:36 what does it write to the adb server to get the list of devices? Jan 25 04:11:56 "000c" and then "host:devices" Jan 25 04:12:37 000c as bytes or a string? Jan 25 04:13:31 the strace log says write(3, "000c", 4) Jan 25 04:13:34 so, string? Jan 25 04:14:27 yeah Jan 25 04:14:43 so it's 000chost:devices like that? Jan 25 04:15:11 try that on nc then Jan 25 04:15:49 I get back OKAY0000 Jan 25 04:16:02 which is what strace says it's trying to read Jan 25 04:16:22 strace won't tell you what your program is trying to read, only what it has read Jan 25 04:16:31 ah, okay Jan 25 04:16:32 sorry Jan 25 04:16:45 I mean it won't tell you what the program expects, it will tell you if it failed to read and why Jan 25 04:17:03 we need to strace the adb server though to see why it cannot access the usb device Jan 25 04:17:22 does adb launch the server if it's not running? Jan 25 04:17:23 so, when I do a delete on a table in a content provider, do I need to also need to do a contentResolver.notifyChange(uri, null) for every table that gets cascaded changes? Jan 25 04:17:42 strace -o adblog -ff adb devices Jan 25 04:17:45 or not just delete, but any modification Jan 25 04:17:49 or list or whatever the command is Jan 25 04:18:06 it's adb devices Jan 25 04:18:07 hold on Jan 25 04:19:36 tmzt, how long should I let this run? Jan 25 04:20:15 let it run Jan 25 04:20:23 ls |grep adb Jan 25 04:20:28 in another shell Jan 25 04:20:28 read(10, 0x8e5e6c4, 4080) = -1 EAGAIN (Resource temporarily unavailable) Jan 25 04:20:31 interesting line Jan 25 04:23:39 Yah. maybe. Jan 25 04:23:52 What is fd 10? Jan 25 04:24:07 KNY: you didn't use -0 ? Jan 25 04:24:08 (ls -l /dev/PID/fd/10 Jan 25 04:24:10 -o Jan 25 04:24:25 tmzt, I used -o, yes Jan 25 04:24:36 it made adblog.* files Jan 25 04:24:37 CardinalFang: /proc? Jan 25 04:24:37 4 of them Jan 25 04:24:58 tmzt, and I was tail-ing through one of them Jan 25 04:25:05 Yep. Sorry. Jan 25 04:26:47 CardinalFang, what did you want me to ls? Jan 25 04:27:12 ls -l /proc//fd/10 the same pid as the adblog file you tailed Jan 25 04:27:37 KNY, I wanted to know what fd read()ing caused EAGAIN. Jan 25 04:27:57 EAGAIN isn't an error, btw. It's probably just asych IO. Jan 25 04:27:59 ls: cannot access /proc/10329/fd/10: No such file or directory Jan 25 04:28:18 it must be the adb devices process which should have exited Jan 25 04:28:26 we need the pid of the adb server process Jan 25 04:28:32 grep fork adblog* Jan 25 04:28:57 tmzt, returns nothing Jan 25 04:30:39 SanMehat: how does adb fork the server process? Jan 25 04:31:38 clone()? Jan 25 04:32:17 tmzt: have you looked at the code? Jan 25 04:32:29 only to see what it did on device Jan 25 04:33:45 what .git is it? Jan 25 04:39:01 tmzt, I think it's in system/core/adb Jan 25 04:40:43 yeah, core.git Jan 25 04:42:10 ADB_TRACE=usb adb devices Jan 25 04:42:13 no strace Jan 25 04:43:16 * daemon not running. starting it now * Jan 25 04:43:16 ADB server didn't ACK Jan 25 04:43:16 * failed to start daemon * Jan 25 04:43:16 error: cannot connect to daemon Jan 25 04:43:56 if I empty out ADB_TRACE, it starts (or says it does) successfully Jan 25 04:47:04 grep "usb located" adblog* Jan 25 04:47:22 nothing Jan 25 04:49:31 it's not using libusb, it's doing everything directly with ioctl's in a very abstracted way (transports for instance) Jan 25 04:49:59 it's not even clear how to debug it if ADB_TRACE doesn't work, and the forked server cannot be started in foreground Jan 25 04:51:05 SanMehat: lsusb works as the same user, ADB_TRACE=usb causes the server process to fail (not ACK), do you have any ideas how to debug this? Jan 25 04:51:34 so, when I create a ContentProvider, and after an add/update/delete to a uri which may make modifications to other uri's via triggers, I also need to notify the observers associated with those other uris. My question is that if I just notify the base uri, will any listener on a specific row in a URI also get notified? Jan 25 04:59:17 tmzt, SanMehat, Gary|tp -- thanks for all your help, but I have to go to bed before I pass out. If you find anything else, /msg me or just highlight me and I'll see it in the morning. Thanks again! Jan 25 05:58:22 KNY: .... IS THE PHONE ON? Jan 25 05:58:32 Honestly, I dunno what's wrong. Jan 25 06:13:01 Have anyone thought of Android on iPhone ?? Jan 25 06:13:47 nope Jan 25 06:13:50 nobody has Jan 25 06:14:16 SanMehat, Was that suppose to mean a Sarcasm?? Jan 25 06:14:48 Newbie: why would you think such a thing? Jan 25 06:15:24 Newbie: it's not viable with the current input model. And those that have thought about it probably are working on something that warrants their effort. Jan 25 06:17:08 Hey ppl, but just think, there is a lot more iPhones there, so if Android can be brought out to that platform then it will be the greatest achievement, open source promotoers have faced in their entire life Jan 25 06:17:48 Is there a law that states, iPhone cannot boot Andriod or anyother OS for that matter ?? Jan 25 06:17:59 Greatest achievement? Sorry, but atm iPhone's OS and programs > Android. Jan 25 06:18:04 unix_infidel: why isn't it viable with the current input model, you mean lack of on-screen keyboard or something in the kernel? Jan 25 06:18:34 tmzt: I'm sure it would be pretty fun getting the radio to work, on top of OSK. Jan 25 06:18:55 but how is that specific to android? Jan 25 06:19:09 Ya know I'm a firm believer in the fact that a projects reasonableness to the outside world shouldnt stop a bunch of hackers from getting together and doing the impossible / unreasonable things that need doin' Jan 25 06:19:35 So if you feel like you have the sheer will to accomplish the "greatest achievment" in mobile history...more power to ya. Jan 25 06:20:01 Well, it's not. But it's still something that's not possible atm. Jan 25 06:20:26 Gary|tp, u mean it is not possible technically? or by law ?? Jan 25 06:20:41 project's* Jan 25 06:23:51 I believe it can be the next big thing as it will really take out the slow nature of UI of G1 .. Jan 25 06:24:32 Newbie: moving everything that isn't on gpu to gpu should help there shouldn't it? Jan 25 06:24:51 at least everything that should be Jan 25 06:28:02 tmzt, I dint get that .. Jan 25 06:28:27 what's slow about UI on the G1 Jan 25 06:29:02 tmzt, Ohh fine ... now i get it ! Jan 25 06:29:26 Is there any effort or even a possibility of extending Android on poular old phones?? Jan 25 06:29:50 Like for example the Moto razr v3i ?? Jan 25 06:29:52 yeah, what phones? Jan 25 06:30:00 not that one, too simple Jan 25 06:30:31 I knw it is painfully slow with its native software but why can't we think of an extremly tripped down version of Android ? Jan 25 06:30:47 *stripped Jan 25 06:31:04 the radio features run on the same core as the ui on that phone (from what I know, I haven't studied that particular phone) Jan 25 06:31:55 Oh ok .. but will it be very difficult ?? Jan 25 06:32:06 what do u think abt it ?? Jan 25 06:33:32 it would be very difficult, you would have to be able to build a complete real-time os with gsm stack as well as android, you really couldn't use the linux parts of android so you would have to replace them Jan 25 06:34:18 there are other phones with android ports in progress, but they are all smartphones (with seperate radio cores) Jan 25 06:36:31 tmzt, so its better to leave it .. :) ? Jan 25 06:47:51 tmzt: Newbie: moving everything that isn't on gpu to gpu should help there shouldn't it? << not necessarily actually Jan 25 06:47:56 what would help is a much faster memory bus Jan 25 06:52:54 romainguy: the sgx on the iPhone isn't a significant improvement for ui rendering speed? Jan 25 06:54:22 in the case of Android it would not make a huge difference Jan 25 06:54:45 I actually built a prototype (that was available in m5 I think, or maybe 0.9) of our UI rendered entirely in OpenGL Jan 25 06:55:03 it opens the door to a bunch of new issues that can actually defeat the gain you get by rendering on the GPU Jan 25 06:55:15 the most interesting thing about using the GPU is that you offload the CPU for background apps Jan 25 10:45:59 ppl i'm asking if using xml for screen design is better, also i want to know if any description for how UI Elements are related to each other and in which way, i checked http://code.google.com/android/devel/ui/glossary.html but this is only a glossary, and if any sample code for both xml and normal way of using and implementing GUI, any comment ? Jan 25 12:57:48 anyone any ideas why my ImageAdapter using the MediaStore isn't working: http://paste.ifies.org/284 Jan 25 12:58:14 when i try return the count of the cursor, it's null and when i pass a fake value the view works, but shows nothing Jan 25 13:18:05 maybe try moving your cursor instantiation above the g.setAdapter line? Jan 25 13:27:02 hrrm, nope - the cursor is instansiated, but still returns null on return cursor.getCount(); :| Jan 25 13:30:25 hrrm, i do keep seeing this in the catlog: 01-25 13:30:01.380: ERROR/mountd(30): KillProcessesWithOpenFiles /sdcard Jan 25 13:31:55 getCount returns an int though right, so it can't return null. do you mean that cursor itself is null? Jan 25 13:32:29 when i hover over, it says the cursor has been created Jan 25 13:33:00 so what is the exception you see ? Jan 25 13:34:25 hold on, need to reboot - the debugger won't shut up Jan 25 13:35:32 i usually try and work without a debugger. Jan 25 13:35:49 unfortunately i haven't figured out how to disable the eclipse debugger yet :( if i could, i would, it's not very helpful Jan 25 13:47:49 baahh - I had accidently removed the android.permission.MOUNT_UNMOUNT_FILESYSTEMS permission :| Jan 25 13:48:03 doh Jan 25 13:48:16 digitalspaghetti: have you used contact photos on your phone at all? Jan 25 13:48:22 i've added it back in now, and i'm not getting a NullPointerException error, but i'm still getting an empty result from the cursor Jan 25 13:48:31 i had sort of assumed they'd work, as they work fine on the emulator. but they don't appear on my actual phone :( Jan 25 13:48:34 TD: i have a couple of contacts with photos, but not really Jan 25 13:48:41 do they actually show up when they call you? Jan 25 13:48:48 i'm trying to get the users pictures from their DCIM folder Jan 25 13:48:50 TD: yea Jan 25 13:48:54 hrm Jan 25 13:49:01 there must be something about the way i'm setting them then. thanks Jan 25 13:49:57 digitalspaghetti: is there anything helpful in logcat? i guess not Jan 25 13:49:59 just going to double check .getCount actually returns 0 Jan 25 13:50:20 yeah, just whack a log statement in there Jan 25 13:50:34 hah! getCount returns 38 Jan 25 13:51:08 so that is working now, but nothing is showing in my gallery view now Jan 25 13:51:14 but at least it's the right track now Jan 25 13:51:24 maybe check that the if != null statement is being taken properly ... Jan 25 13:51:32 ie convertView != null Jan 25 14:05:05 ok, should have been == null Jan 25 14:06:06 hrrm, now it shows them but gives me a OutOfMemoryError :| Jan 25 14:06:12 http://paste.ifies.org/287 Jan 25 14:06:34 uh oh :) you're probably trying to load/decompress every image at full size from the sdcard Jan 25 14:06:42 yea, probably Jan 25 14:06:53 i probably want the thumbnail, not the full image Jan 25 14:12:48 right Jan 25 14:23:07 hrmm, when i do MediaStore.Images.Media._ID i get 38 back Jan 25 14:23:12 when i try MediaStore.Images.Thumbnails._ID I get 0 :( Jan 25 14:24:21 i guess it's looking for thumbnails that were pre-calculated by some other app Jan 25 14:24:32 isn't there a standard for storage of thumbnails ? Jan 25 14:28:57 ahh, that sucks Jan 25 14:29:30 it was a new Sd card i had put in, but i had copied over the files Jan 25 14:29:42 i needed to go into pictures and let it generate the thumbnails Jan 25 14:29:44 now it works Jan 25 14:30:34 there must be something i can do before the view loads to check that and if not generate them? Jan 25 14:31:59 maybe the pictures activity has a thumbnailer service? or you could generate them yourself (copy/paste the thumbnailer code). or if you're feeling adventurous contribute an improvement to the pictures app to make thumbnailing a service, if it's not already got one Jan 25 14:32:37 i should really grab the android source code Jan 25 14:32:43 you can browse it online Jan 25 14:32:49 that's what i do - android.git.kernel.org Jan 25 14:33:36 where;s the gitview? Jan 25 14:33:51 just showing empty just now Jan 25 14:34:00 must be down Jan 25 14:35:21 hmm Jan 25 14:35:24 http://android.git.kernel.org/ works for me Jan 25 14:35:27 shows me all the projects Jan 25 14:36:08 wierd, had to end up refreshing it like 20 times before gitview showed Jan 25 14:36:27 maybe it's load-balanced Jan 25 14:40:31 i'll check this out: http://android.git.kernel.org/?p=platform/packages/apps/Camera.git;a=blob;f=src/com/android/camera/ImageGallery2.java;h=c8abdaebe878944eb91e67c36d55e7bc3b5e4c17;hb=1d4c75065966c4f6f56900e31f655bfd1b334435 Jan 25 15:38:23 digitalspaghetti, ya, kernel.org is wonky lately. Jan 25 15:38:40 Use "android2.git..." Jan 25 16:19:49 anyone know how to get a reference to a ListView inside an AlertDialog that was created using setMultiChoiceItems? Jan 25 16:32:22 any ideas folks? Jan 25 16:32:24 http://www.anddev.org/viewtopic.php?p=17042 Jan 25 16:46:41 digitalspaghetti: not sure what you're asking, sorry ? Jan 25 16:46:50 the location of the full image? Jan 25 17:12:08 Gary|tp, haha, yes, the phone is on ;) Jan 25 18:21:25 When the "back" button on the phone is pressed, what event(s) does that trigger on the activity? Jan 25 18:26:38 oh nm, figured it out :-) Jan 25 18:27:10 I guess it goes all the way down to onDestroy(), which is what I expected. Jan 25 20:27:23 TD: yea - basically i need to make a multi-part post request Jan 25 20:27:39 the OAuth library uses HTTPClient4, so I can do the header stuff Jan 25 20:27:50 but i don't know how to pass the image in android as a parameter Jan 25 22:26:09 I have a question regarding CompareEverywhere ? Jan 25 22:26:33 any help would be appreciated Jan 25 22:32:36 android51, don't ask to ask. Just ask Jan 25 22:33:02 we can't answer questions you don't ask. Also, this might be better served in #android, depending on the question Jan 26 00:22:22 tmzt, Gary|tp, if I adb kill-server, then sudo adb devices, it sees the attached G1. Then any subsequent `adb devices` calls as a user work fine. Go figure. Jan 26 00:25:19 So, it's "working" now Jan 26 00:25:56 if it uses a local ip socket there are no user protections Jan 26 00:26:31 but the fact that adb server apparently has to run as root makes no sense if the permissions from yesterday are still in place Jan 26 00:30:51 yeah Jan 26 00:31:02 I have no clue what would have changed since yesterday Jan 26 00:31:06 but I'm psyched that it's working now Jan 26 00:31:30 is there no easy way of getting access to a ListView created in an AlertDialog Builder? Jan 26 01:05:23 kcoury: i was trying to figure that out yesterday but i gave up. Jan 26 01:05:38 hi all, I'm coding a downloading image file method. The code works for the downloading but the file downloaded is either corrupted or a sum of coloured lines. Jan 26 01:05:53 can you help me? Jan 26 01:08:47 kcoury: i ended up just having the ListView's callback store the selected index in a variable Jan 26 01:11:02 hi morgan Jan 26 01:11:10 can you see my code? Jan 26 01:19:14 morgan: yeah I'm still trying to figure something out. I'm using a multiple choice dialog but I want to use getCheckedItemPositions() and I have no access to the ListView to do that Jan 26 01:28:04 the code works if i only one byte each time Jan 26 01:28:12 i tested it now Jan 26 01:28:43 but the file creation is too slow in this way Jan 26 01:44:56 I accidentally the whole byte. Jan 26 01:46:54 hehe Jan 26 01:50:31 esses: what code? Jan 26 01:50:54 i paste it Jan 26 01:50:58 into pastebin Jan 26 01:51:02 okay? Jan 26 01:52:21 pastebin is good. what are you trying to do? Jan 26 01:53:39 to download a jpeg file, but I obtain a corrupted or strange image file Jan 26 01:53:42 http://pastebin.com/d262c5c6a Jan 26 01:54:14 I need to solve the problem because tomorrow i have to finish the app Jan 26 01:56:03 the code works only if i set the array data to 1 byte size Jan 26 01:57:40 your code looks reasonable, is the resulting image 100% garbage? Jan 26 01:58:34 have you tried logging some of the data as you download it? that might be a quick sanity check Jan 26 01:59:00 sometimes corrupted other times garbage Jan 26 02:00:46 your code looks just like the file() method here: http://www.eboga.org/java/open-source/httpclient-demo.html Jan 26 02:01:22 do you get the same results when you run outside of android? Jan 26 02:02:00 oh, Jan 26 02:02:11 outFile.write(b); Jan 26 02:02:14 that should be: Jan 26 02:02:19 outFile.write(b, 0, read); Jan 26 02:02:48 currently you are always writing 4k blocks even if you just read less then 4k Jan 26 02:07:13 :-) taht is the problem Jan 26 02:07:23 I'm tired very tired Jan 26 02:08:33 here is 3 o'clock Jan 26 02:10:04 yeah, it gets hard to spot the small things that late Jan 26 02:31:33 morgan do you know how to set the bitmapfactory options Jan 26 02:31:34 ? Jan 26 02:33:34 o = new BitmapFactory.Options() Jan 26 02:33:52 o.inDither = true Jan 26 02:33:55 okay Jan 26 02:33:58 thanks Jan 26 02:33:58 is that what you mean? Jan 26 02:34:01 yes Jan 26 02:34:03 ok **** ENDING LOGGING AT Mon Jan 26 02:59:57 2009