**** BEGIN LOGGING AT Tue Nov 04 02:59:57 2008 Nov 04 03:03:53 "I especially like the sprintf("%s", $string)" bahaha Nov 04 03:56:36 BHSPitMonkey: sprintf($string) would be a massively bad idea Nov 04 03:56:51 since the string could have embedded format strings Nov 04 03:57:13 er Nov 04 03:57:19 puts? Nov 04 03:57:25 or strcpy? Nov 04 03:57:35 instead of printf or sprintf? Nov 04 04:34:59 help what do I need to do to read my string in this handler? http://pastebin.com/m365c8226 Nov 04 05:17:01 I'm just finally starting to explore things outside the core OS. Is there an opensource barcode library that folks are using? Nov 04 05:17:35 zxing Nov 04 05:19:22 Excellent. I last looked at zxing 6 months ago. Is there android app sample code in the dist these days? Nov 04 05:19:35 ooh. indeed. Nov 04 05:20:28 Thanks, ttuttle Nov 04 05:21:17 obra: If you just want to call the Barcode Scanner, I've got code to do it. Nov 04 05:22:03 ttuttle: I just want to knock myself up a trivial amazon wishlist app. it's a barcode call and an http POST Nov 04 05:22:18 obra: ah Nov 04 05:22:31 obra: You could probably get away with calling the Barcode Scanner app. Lemme grab the code. Nov 04 05:22:46 ttuttle: thanks. Nov 04 05:23:26 So you create an intent with action "com.android.barcodes.SCAN", set the extra "SCAN_MODE" to "PRODUCT_MODE". Nov 04 05:23:42 It will return the barcode in a string extra called "SCAN_RESULT". Nov 04 05:23:44 * obra nods Nov 04 05:23:50 That seems nicely straightforward Nov 04 05:23:56 obra: yeah, it's wonderful Nov 04 05:24:01 * ttuttle <3 Android. Nov 04 05:24:10 I will admit to not finding java nearly as frustrating as I thought. Nov 04 05:24:17 Though I do really miss dynamic dispatch ;) Nov 04 05:24:31 It's also been a decade since I last did any work in Java Nov 04 05:24:58 Yeah. I find programming in Java is always a little painful, 'cause the syntax is verbose, but that programming for Java *on Android* isn't quite as painful. Nov 04 05:25:00 It also helps that people keep encouraging me to press on Nov 04 05:25:22 I need to shave the yak around submitting patches back through git to gerritt Nov 04 05:27:54 ttuttle: Do I want to be working with zxing from svn or the packaged 1.1 distribution? Nov 04 05:28:04 Not sure. Nov 04 05:28:11 I'd just call Barcode Scanner if it was me. Nov 04 05:28:25 * obra nods Nov 04 05:28:51 I'm actually working on an app that scans barcodes, and that's what I do. Nov 04 05:29:27 Understood. I appreciate the advice. Nov 04 05:42:09 anyone have advice to listen to keys activity wide? Nov 04 05:48:30 mocsrox: we're doing it in K-9. Have a look at MessageView.java, iirc Nov 04 05:48:37 http://code.google.com/p/k9mail Nov 04 05:49:08 * obra wanders off to sleep Nov 04 05:49:15 obra: cool thx Nov 04 06:18:08 *pew pew pew* I'm an robot Nov 04 13:51:35 boo, andyross isn't here to answer him Nov 04 13:51:57 romainguy: nothing so elegant or so useful as using 3d hardware. Nov 04 13:52:56 we really just don't want to have to rewrite our UI once again and have a seperate codebase specifically for java code, especially since that would be a pretty large undertaking atm, and this is about the only java product we may do anything with. Nov 04 13:53:24 doubly especially since we do somewhat specialized graphics rendering Nov 04 13:53:49 which while we could do it in android's graphics would probably require much too much time to redo and get right Nov 04 13:54:15 so, we're basically trying to copy the image that the shared library creates, and blit it to a bitmap to be drawn onto a canvas Nov 04 13:54:52 unfortunately, I'm running into some issues using 565, though I'll have to do a bit more experimentation to give you a better answer. Nov 04 14:12:49 * ttuttle voted =D Nov 04 14:14:53 I voted for kodos Nov 04 14:15:02 Argh, cannot inflate view Nov 04 14:15:06 what little effing detail did I miss here Nov 04 14:15:14 I have a constructor for context, and context,attributeset Nov 04 14:15:33 the xml element has the correct path and name Nov 04 14:19:04 http://pastebin.com/m2e0c9e0 Nov 04 14:19:12 http://pastebin.com/m554dddb6 Nov 04 14:19:16 what is wrong here Nov 04 14:19:24 what have I done wrong that makes it unable to inflate Nov 04 14:19:38 it is too early to tear at my hair for piddly mistakes : ( Nov 04 14:22:38 sigh, non-public constructors Nov 04 14:22:41 it's always the dumbest things Nov 04 14:27:17 Yeah, anyway Nov 04 14:27:22 it looks like 565 doesn't even do anything Nov 04 14:27:28 it just takes 8888 regardless Nov 04 14:27:36 maybe it's storing it as 565 internally? Nov 04 14:28:19 which is nice and all but I would very strongly prefer passing 565 : ( Nov 04 14:35:09 I have my eclipse android app referencing some class files in another project in the same eclipse workspace... howeer, when I start the app android cannot find the referenced class files.. Nov 04 14:35:14 any ideas on how to solve that? Nov 04 14:35:54 you're going to have to package those class files in your apk Nov 04 14:36:00 is it possible to just copy them into your project? Nov 04 14:36:45 possible, but not very convenient Nov 04 14:37:08 previously the extenral library was in a .jar, which worked Nov 04 14:37:36 but now there are bugs in the external lib... so I wanted to bring that into eclipse and fix the issues Nov 04 14:37:37 however, getting eclipse to produce a jar on each build seems to be a bit pain in the ass Nov 04 14:37:55 hmm. Wait for someone else, they might have a better solution Nov 04 15:47:49 is there a way to turn on ssl debugging in the emulator? Nov 04 15:48:01 with java I would do -Djavax.net.debug=ssl,handshake Nov 04 15:48:09 and I get tonnes of debug info on the handshake Nov 04 15:53:49 Argh, looks like there's no way to create a bitmap outside of using 8888. Nov 04 15:54:45 duncanfoo, same thing. System.setProperty("javax.net.debug","all"); Nov 04 15:55:13 gambler: can I set -D within eclipse? or do I need to set that before creating my SSL context? Nov 04 15:56:24 duncanfoo, I dont know Ive never tried to set a property any other way than that Nov 04 15:56:56 ok, that's cool. one thing I noticed is that the initialziation of the SSL stuff takes *forever* in the emulator :( Nov 04 15:57:46 I just tried setting the property before creating the context, and it doesnt do anything Nov 04 16:01:26 am I setting it at the wrong place? Nov 04 16:01:41 I doubt it. what do you want it to do Nov 04 16:02:24 SSL works, I can verify that. Just write your code outside the emulator and then call into your class Nov 04 16:02:29 if your having problems debugging it Nov 04 16:03:05 my android app won't connect with an existing server. outside of android the code works. inside of android things are very different Nov 04 16:03:15 because JKS doesn't work Nov 04 16:03:24 PKCS#12 doesn't work correctly (its missing lots of stuff) Nov 04 16:03:29 so I'm having to use BKS certs Nov 04 16:03:56 and for some reason the app in the emulator will not connect... so I want to know more information about the handskae inside the emulator Nov 04 16:04:07 I see what is going on on the server side... and it looks like the client is rejecting stuff Nov 04 16:04:09 so I want to find out why Nov 04 16:10:17 duncanfoo, ive tested both jks and bks keystores...as you know the certs are the same Nov 04 16:10:38 gambler: I'm not debating whether it works or not :) I' Nov 04 16:10:58 I'm sure it does... but in my case it does not :) so unless I can somehow turn on debug handshaking it makes it very hard to find out what is going wrong :) Nov 04 16:11:43 duncanfoo, are you running it as a listener or client? Nov 04 16:11:56 gambler: android is a client Nov 04 16:12:28 duncanfoo, ok if you say so. why not just debug the handshake from the server then Nov 04 16:12:45 I've done that. the client drops the connection. Nov 04 16:12:56 what was your error msg Nov 04 16:13:18 hurry im about to go to sleep :p Nov 04 16:13:50 there is no error message. the getHandshakeStatus() returns NOT_HANDSHAKING after a few NEED_WRAP, NEED_UNWRAP, etc. ideally I want to turn on javax.net.debug :) Nov 04 16:16:26 ok if System.setProperty() doesnt help you I dont know what will. catch me tommorow if your still having probs. gl Nov 04 16:16:44 ok, thanks :) I'll try to figure it out. Nov 04 16:17:24 * gambler sleep Nov 04 17:11:30 does anyone know if setting javax.net.debug on an android SSL app is supposed to work/ Nov 04 18:08:28 so I try to establish a connection to a port on my localhost (10.0.2.2) upon which nothing is running Nov 04 18:08:39 and it takes 2:30 to get a connection refused... Nov 04 18:08:46 is that expected? :) Nov 04 18:28:21 any significant perf difference from System.currentTimeMillis and SystemClock.uptimeMillis on android? Nov 04 18:29:37 mocsrox: those are used for different things Nov 04 18:30:11 System.nanoTime() would be a better comparison. Nov 04 18:30:18 fadden: sorry let me be more specific, basically im interested in say the delta Nov 04 18:30:27 e.g. time elapsed Nov 04 18:30:32 If you want delta time, do not use System.currentTimeMillis. Nov 04 18:31:01 Use System.nanoTime() if you want to be portable, or one of the SystemClock calls if you don't. Nov 04 18:31:33 fadden: portable in a sense of running outside of android? Nov 04 18:31:38 Yes. Nov 04 18:31:53 cool beans, thx Nov 04 18:32:05 Also there's uptimeMillis vs. elapsedRealtime; the difference is that the latter keeps count when the phone is asleep. Nov 04 18:32:19 ah gotcha Nov 04 21:04:35 has anyone created a rdesktop rdpv5 app for android Nov 04 21:04:43 not vnc, rdp Nov 04 21:04:46 .-P **** ENDING LOGGING AT Wed Nov 05 02:59:57 2008