**** BEGIN LOGGING AT Sat Mar 08 10:59:56 2008 Mar 08 16:18:02 Woo yeah! Go Android! Hi Everybody! Mar 08 16:20:44 I bet the Iphone SDK has featured in conversation quite a bit in the past few days. It's really good news! We're going to see a whole lot of attention on mobile apps in the next year or two. Pretty exciting stuff. Mar 08 16:43:10 hi chomchom Mar 08 16:45:21 hello, Maybe the admins could set the IRC topic to be an Android blog post by someone in the community every day. That would be a bit more interesting, or even an interesting forum post. Mar 08 16:56:58 discuss :D Mar 08 16:59:28 It would also give people who might not be crawling blogs and rss feeds everyday some exposure to new sources of android info. Mar 08 17:16:10 chomchom, talk with morrildl about it Mar 08 19:14:57 I'm trying to run the vanilla junit tests in m5, I see there is a bug listed in the tracker but is there a workaround? Mar 08 19:15:47 via eclipse Mar 08 20:05:52 (* looks at topic *) 0_0 Mar 08 20:06:39 Gaa...why even open that door? Mar 08 20:59:29 So... anyone play around with the iPhone SDK? Mar 08 21:06:52 any word on when the reverse geocoder will actually work? Mar 08 21:27:20 hrm Mar 08 21:27:26 hrm hrm hrm hrm hrm hrm hrm Mar 08 21:27:56 (* ponder *) Mar 08 21:35:22 I miss getResourceAsStream Mar 08 21:35:54 0_o Mar 08 21:36:39 Android seems to want to keep Resource access to itsefl. Mar 08 21:45:24 yes... that's annoying Mar 08 21:55:48 Maybe they want to isolate access to it because they're not sure what the final format will be. Mar 08 22:10:36 *hah* Mar 08 22:10:53 ZipFile works with the apk file itself Mar 08 22:11:05 now... I need a way to be sure of the name Mar 08 22:11:54 Why are you delving into the apk file so intently? Mar 08 22:13:35 I want to be able to update it dynamically, without all the BS of going through compiling the resources Mar 08 22:15:26 :) Mar 08 22:16:00 Same here, but I don't think it's in the 'Android Plan'. Mar 08 22:16:30 I suspect you'll get lots of 'not recommend' comments. Mar 08 22:16:50 why do you need that? Mar 08 22:17:13 chaosvoyager: Well, the implications of applications being able to modify .apk can be scary Mar 08 22:17:14 Eh, you mean for dynamically updating the resources and layout? Mar 08 22:17:40 romainguy, not modify, just read Mar 08 22:17:49 ah ok Mar 08 22:17:57 I suppose ZipFile should be enough then Mar 08 22:18:01 I can understand not modifying them just fine Mar 08 22:18:02 an .apk is just a zip Mar 08 22:18:28 is it?! like a jar. I never even knew that. Mar 08 22:18:29 romainguy, know how to get, say, /data/Foo.apk out of the Context or Activity or whatever? argv[0] as it were... Mar 08 22:18:34 chomchom, yeah Mar 08 22:18:41 davidw: ah ok I see Mar 08 22:18:49 davidw: I guess you don't for know :)) Mar 08 22:18:52 now Mar 08 22:18:57 davidw: What did you mean by 'update it dynamically' then? Mar 08 22:19:26 I just mean that the user, on their computer, can add stuff to the .apk as if it were a .zip file without also doing the compile step Mar 08 22:20:00 Ah. Mar 08 22:20:10 I could put a .zip in the .zip and play with that, but that's ugly Mar 08 22:20:18 Imean a .zip in /res/raw Mar 08 22:23:51 I hate to be a party pooper, but you still need to compile the actual resources into a binary format, don't you? Mar 08 22:25:45 it doesn't touch the stuff in raw Mar 08 22:26:00 Ah. Mar 08 22:28:53 Are you doing this to speed up development, or to provide a runtime feature to the end user? Mar 08 22:31:56 ease of development for the end user Mar 08 22:31:58 it's for Hecl Mar 08 22:32:13 I already have a java thing that generates a new .apk more or less automatically Mar 08 22:32:27 :O Mar 08 22:32:34 Hecl? ROCK! Mar 08 22:37:04 So have you aiming to have the equivalent of a CI android build? Mar 08 22:38:08 ? Mar 08 22:41:36 davidw: Sorry maybe I didn't get you but if you have a script written in Hecl updating your deployed package you'll get instant feedback, I guess it will just be for raw stuff though. Mar 08 22:42:28 it can't updated the deployed package Mar 08 22:42:28 I've never saw a Hecl app before, just wonder what you are up to with it. Mar 08 22:42:44 well, making it possible to write Android apps with it Mar 08 22:43:48 What advantages would Hecl offer? Apart from a little independence from the android platform? Mar 08 22:46:46 quicker and easier to develop with compared to Java Mar 08 22:46:52 it's dynamic, too Mar 08 22:47:06 meaning you can download scripts or create new ones on the fly Mar 08 22:47:52 sort of the same reason people use ruby or python or php or whatever instead of Java Mar 08 22:49:04 hecl will be cool, write up little scripts on your phone Mar 08 22:49:27 well, or beforehand... actually writing them on the phone might be painful Mar 08 22:49:34 i bet someone will port Perl and Python :) Mar 08 22:49:45 and write robust bindings for them Mar 08 22:49:50 yeah, when the source comes out, all that stuff will too Mar 08 22:55:56 String filename = this.getPackageManager().getApplicationInfo("org.hecl.android", 0).sourceDir; Mar 08 22:56:01 he shoots, he scores:-) Mar 08 22:56:30 How do I specify which intent listener takes precedence in responding to a broadcast? Mar 08 22:56:51 chaosvoyager: I think with broadcasted ones they all get it Mar 08 22:57:25 chaosvoyager: with startActivity(Intent) I think the user will be prompted if there are mutliple actions avalable Mar 08 22:58:13 Really? Mar 08 22:58:19 i sort of doubt that Mar 08 22:58:29 perhaps prompted at the time of install Mar 08 22:58:44 that would make sense Mar 08 22:59:35 jasta: I've seen the "Multiple actions available" dialog in a google demo video Mar 08 22:59:55 really? where? Mar 08 23:00:20 at that show in barcelona I think Mar 08 23:00:23 lemme look Mar 08 23:01:48 so... it's not possible to install new apps via the web yet is it Mar 08 23:01:55 hrm hrm hrm Mar 08 23:01:56 not yet Mar 08 23:02:16 yeah, webkit doesn't seem to want to handle any filetypes Mar 08 23:06:15 jasta: 3rd video about 30 secs there is a dialog "Intent availability..", can't tell if that's part of the app or standard: http://www.helloandroid.com/node/255 Mar 08 23:06:34 how about PackageManager installPackage ? Mar 08 23:06:37 tried that guys? Mar 08 23:06:45 I did with M3, doesn't work very well Mar 08 23:06:59 doesn't work at all unless you install the app into /system/app Mar 08 23:07:07 oh... well that's useless Mar 08 23:07:24 new packages are installed by simply placing them in /data/app. they're using inotify on that directory. Mar 08 23:08:04 I'm curious about doing it programmatically, giving, of course, the user the chance to say yes or no Mar 08 23:08:12 not really a necessity at this point... just curious Mar 08 23:09:52 I'm planning on creating a PackageManager app after the challenge Mar 08 23:10:20 one that will interface with hello android's applications section (going to have to totally rework that also) Mar 08 23:11:02 or maybe someone will make a good one for the challenge and I'll just use that Mar 08 23:11:18 i have that goal as well Mar 08 23:11:36 perhaps we should do it jointly? Mar 08 23:11:45 Google should have had that goal to begin with. Mar 08 23:11:49 yeah, definitely Mar 08 23:12:06 jasta: yeah we should collaborate Mar 08 23:12:28 the apple store thing for iphone apps isn't a bad thing Mar 08 23:12:56 for the end user, something like that is a lot less stressful than looking at some shoddy junky site for shoddy junky apps Mar 08 23:13:14 davidw: is that on the computer or on the phone? Mar 08 23:13:53 solves Android's security problem nicely as well. if most folks get all their apps from a single set of mirrored repositories, there is no need to consider if you trust each app. Mar 08 23:13:57 you need only trust the repository. Mar 08 23:15:55 Is there a simple Android GTalk example somewhere? Mar 08 23:16:05 other than in the apidemos? Mar 08 23:17:13 i think there's a gtalk program on davanum's blog Mar 08 23:17:37 http://davanum.wordpress.com/2007/11/23/totally-unofficial-android-gtalk-client-sendreceive-xmpp-messages/ Mar 08 23:17:49 it's for M3 so you're need to change some stuff Mar 08 23:17:53 you'll* Mar 08 23:18:02 Hecl has some gtalk stuff too:-> Mar 08 23:18:03 Yeah, it was the first thing up on a search. Mar 08 23:18:15 er, the blog that is. Mar 08 23:19:07 http://journal.dedasys.com/articles/2008/02/10/seathreepo-android-translator Mar 08 23:19:24 you could play with updating that if you feel like playing with the code:-) Mar 08 23:19:45 davidw: do you have a site with the hecl stuff? Mar 08 23:20:00 www.hecl.org - the code is all in subversion Mar 08 23:21:15 sleep time for me...later Mar 08 23:21:27 cya Mar 08 23:21:32 goodnight Mar 08 23:33:02 davidw: that translator thing would be really great if you paired it with a powerful OCR tool Mar 08 23:33:14 so you could snap a picture of something you can't read and have it translate for you Mar 08 23:41:21 yeah, we need OCR for the camera Mar 08 23:42:42 looks like all the ocr java libs are commercial Mar 08 23:42:56 there's a GNU OCR tool but i do not know how good it is. Mar 08 23:43:24 it would be easy to use in Android Mar 08 23:43:42 zhobbs: Remember, we are not actually limited to native Java code :) Mar 08 23:43:54 that's true Mar 08 23:44:00 after april 14 Mar 08 23:44:36 I'm tired of the emulator...I need a phone! Mar 08 23:45:07 and then you'll just get tired of your phone Mar 08 23:45:08 and want a real android Mar 08 23:45:28 that would be nice because I'm hungry Mar 08 23:45:43 it could whip something up in the kitchen Mar 08 23:46:25 i thought you wanted to eat it Mar 08 23:46:48 heh Mar 08 23:48:33 looks like tesseract is a pretty good open source ocr Mar 08 23:49:07 google looks like they contribute to it a lot Mar 08 23:49:34 interesting Mar 08 23:56:26 zhobbs: that would really be a very useful project. Mar 08 23:56:34 especially for folks traveling around Europ Mar 08 23:56:34 e Mar 08 23:56:47 combine it with babelfish Mar 09 00:09:59 re' Mar 09 00:37:36 Isn't Google adding OCR to its image indexing? Mar 09 00:48:17 davidw: that translator thing would be really great if you paired it with a powerful OCR tool Mar 09 00:48:17 so you could snap a picture of something you can't read and have it translate for you Mar 09 00:48:20 ^ thats my project Mar 09 00:49:36 "Photo Based Optical Character Recognition and Translation on Mobile\ Devices" Mar 09 00:50:47 What's up, folk? Mar 09 00:51:06 nought but the rent Mar 09 00:51:14 chomchom: Hmm, indeed. Mar 09 00:52:18 morrildl: I was saying earlier maybe the admins could set the IRC topic to be an Android blog post by someone in the community every day. That would be a bit more interesting, or even an interesting forum post. Mar 09 00:52:22 * duey is stabbing latex Mar 09 00:52:35 chomchom: Hmm, very interesting idea Mar 09 00:52:38 It would also give people who might not be crawling blogs and rss feeds everyday some exposure to new sources of android info. Mar 09 00:53:07 As it happens, I was just reading my blog subscriptions Mar 09 00:53:37 Let's start with... Mar 09 00:54:14 lol Mar 09 00:54:20 lol Mar 09 00:54:34 inventive. Mar 09 00:54:40 We'll start off "light" :) Mar 09 00:54:51 first 3 posts on that are iphone Mar 09 00:54:56 and I'll add some interesting specific posts in the future Mar 09 00:55:07 duey: indeed. But it's news, and it's relevant Mar 09 00:55:12 we got nothing to hide :) Mar 09 00:55:13 true Mar 09 00:55:27 If iPhone kicks our ass, we have no one to blame but ourselves ;) Mar 09 00:55:38 well... Mar 09 00:55:45 yeah, that will be pretty good. We've had the address of the SDK for months now. Mar 09 00:56:12 chomchom: heh, yeah I'm guessing you guys can probably recite it by memory now Mar 09 00:56:43 duey: I do have to ask: latex? Mar 09 00:56:55 honours proposals Mar 09 00:57:12 trying to perform the basic task of centering text Mar 09 00:57:21 ohhhh Mar 09 00:57:21 yet it creates a new page Mar 09 00:57:23 THAT latex Mar 09 00:57:30 You have my condolences Mar 09 00:57:51 latex is one of those things that is at once delightful and infuriating Mar 09 00:58:34 yeah Mar 09 00:58:55 totoally awesome and totally awful at the same time Mar 09 00:59:00 very unique! Mar 09 00:59:21 :) Mar 09 01:01:36 * morrildl wishes planetandroid would syndicate HIS feed faster ;) Mar 09 01:03:30 oh, there it is. Yay! Now I get to be internet-famous for the next 170 nanoseconds Mar 09 01:05:17 haha Mar 09 01:12:18 I've heard there are people who won't take you seriously if you don't use TeX. Mar 09 01:12:31 we can use word/tex Mar 09 01:12:47 but they said word slows down at 50 pages Mar 09 01:13:01 titlepage is done :D Mar 09 01:13:02 I'm talking about other academics. Mar 09 01:13:11 yeah Mar 09 01:13:17 Geesh, slows down at fifty :P Mar 09 01:13:44 tex does a good job at formatting nicely Mar 09 01:17:12 duey: I think you should do the OCR and translation on a server if possible. It would be faster, have better libraries available, and wouldn't kill the battery as quickly. Not only that, but you'd have a service other devices besides Android could use. Mar 09 01:17:27 doing both Mar 09 01:17:51 Cool. Mar 09 01:18:09 there are a few technical issues to sort out Mar 09 01:18:15 initial versions are server based Mar 09 01:18:27 there is also an issue with camera quality Mar 09 01:19:14 its my honours project - so ultimately I have to create my own ocr lib Mar 09 01:19:21 which works better on photos Mar 09 01:19:33 tesseract for example doesn't work on photos Mar 09 01:19:47 and requires high dpi images (200+) Mar 09 01:19:56 0_o Mar 09 01:19:59 geesh. Mar 09 01:20:22 so you have to take a more generalised feature based approach Mar 09 01:20:53 wow Mar 09 01:20:56 and of cource pre processing on the images Mar 09 01:21:01 to remove crap Mar 09 01:21:08 are you saying that you are OCR-ing images and translating them to TeX? Mar 09 01:21:16 no Mar 09 01:21:28 Photo Based Optical Character Recognition and Translation on Mobile Devices Mar 09 01:21:34 ahh Mar 09 01:21:39 still, very cool :) Mar 09 01:21:42 hmm Mar 09 01:21:45 yeah Mar 09 01:21:49 I want your library, then we could use it with WikiNotes Mar 09 01:21:59 haha Mar 09 01:22:04 we will see Mar 09 01:22:07 I'm serious though Mar 09 01:22:10 OCR in a doc Mar 09 01:22:13 store it Mar 09 01:22:14 yeah Mar 09 01:22:17 There's no reason it COULDN'T be applied to TeX eventually. Mar 09 01:22:18 link to it Mar 09 01:22:19 etc. Mar 09 01:22:24 heh Mar 09 01:22:35 wiki is like the retarded inbred fourth cousin of TeX Mar 09 01:22:41 haha Mar 09 01:23:00 at least, as publication standards go Mar 09 01:23:14 I envision a day when computers will replace TAs as our main source of college grading :P Mar 09 01:23:23 im doing a course at uni where we have to write wiki articles Mar 09 01:24:13 morrildl, depending on how good it is i will open source it Mar 09 01:31:04 duey: very cool Mar 09 01:31:28 got awhile to go Mar 09 01:31:41 working project required in august so.. Mar 09 01:31:45 busy few months! Mar 09 01:32:56 (* throws some Salvador Dali paintings into a facial recognition engine *) Mar 09 01:33:56 someone should make a "Smile" app whichs takes a pic when someone smiles Mar 09 01:33:59 like those cameras Mar 09 01:53:22 there are a lot of peeps on this challen who never seem to say anything :) Mar 09 01:53:33 ^challen^channel Mar 09 01:53:55 that's not unlike other irc channels Mar 09 01:54:04 Indeed not Mar 09 01:54:14 But I do wonder what they are up to Mar 09 01:54:15 They're busy coding :) Mar 09 01:54:26 chaosvoyager: haha, they must be Mar 09 01:54:36 whois some of them. i bet theyre in LOTS of channels ;) Mar 09 01:54:40 They are probably absorbing info like a sponge, judging the rest of us ;) Mar 09 01:56:36 It's like a submarine. Mar 09 01:56:59 O RLY Mar 09 01:57:05 morrildl: is there some way to combine multiple apks into a single distributable package? Mar 09 01:57:27 jasta: you may certainly have as many Services/Activities/ContentProviders/etc. in a single apk as you like Mar 09 01:57:37 morrildl: Yes, but I still want multiple apks. Mar 09 01:57:46 if you are asking if there is a tool to physically merge 2 .apk files, I don't believe there is currently Mar 09 01:58:02 I am more interested in a way to install multiple in a series. Mar 09 01:58:07 hmm Mar 09 01:58:34 the package manager does not currently have a notion of dependencies, because we think it's too early to presume we know how that should work Mar 09 01:58:36 I have split my project into multiple apks because I intend to have an engine and user interface components that utilize the engine. The relationship is such that the engine is generalized and can serve lots of different sorts of applications. Mar 09 01:58:41 Not unlike, for example, your gtalkservice apk. Mar 09 01:58:48 fair enough Mar 09 01:59:12 so, you can install 2 apks into the same user ID Mar 09 01:59:22 so the engine, for example, is just a simple Activity to manage stuff, and a robust ContentProvider and set of services. Mar 09 01:59:33 they don't need to be the same user ID, in fact, I don't want them to be. Mar 09 01:59:47 okay Mar 09 01:59:49 i just want them to not have to be installed separately by the user for my distribution. Mar 09 01:59:58 interesting point Mar 09 02:00:08 anyway no, I don't think that's currently possible Mar 09 02:00:16 that would make a great feature request tho Mar 09 02:00:31 This is not unlike the way Google manages their own stuff. It is clear that you split logical services and content providers from the things that might use them. Mar 09 02:00:36 yup Mar 09 02:00:46 our advantage is that so far we can just include them all in the system image :) Mar 09 02:00:59 I actually really like this idea Mar 09 02:01:01 The idea here is that someone might make a type of application using my engine that I have not. In fact, I plan on it. I am implementing only the music portion myself. Mar 09 02:01:10 the lack of dependencies in the package manager has been bugging me Mar 09 02:01:32 yeah Mar 09 02:01:35 makes perfect sense Mar 09 02:01:37 However, for my music portion, I want to be able to optionally distribute it *with* the engine. Since I wrote both. Mar 09 02:01:45 that's exactly how we want people to use the system Mar 09 02:02:40 yes, i assumed as much and this is why i split them up early on. Mar 09 02:03:34 also, i wanted to enforce this strong separation in my code. I can't "cheat" and use functionality not available to other developers using my engine. Mar 09 02:03:48 since they are two separate apks, with different user ids. Mar 09 02:04:04 That's the thing that bugs me the most about Android's current state: You can't seem to use it in the way it was intended. Mar 09 02:04:27 chaosvoyager: How so? I have demonstrated precisely that. Mar 09 02:04:47 The only thing that is lacking is a sufficiently clever package manager to understand how to install this stuff and potentially resolve dependencies. Mar 09 02:04:49 You demonstrated that it wasn't possible and the feature is missing. Mar 09 02:04:55 chaosvoyager: No I didn't. Mar 09 02:04:58 Exactly. Mar 09 02:05:11 I demonstrated that it requires adb install to run twice, not once. That's a pretty small deficiency in the grand scheme of this design. Mar 09 02:05:12 well, there's a lack of dependencies, to be sure Mar 09 02:05:38 you can still ship 2 apks, you just have to tell your users to install them both, which is a slight increase in your support burden Mar 09 02:06:07 morrildl: btw, this is how i will be doing it for the ADC. so hopefully judges will not scoff at my correct utilization of the platform :) Mar 09 02:06:51 hmm Mar 09 02:07:06 hmm is right ;) Mar 09 02:07:13 I cannot see how that can be considered a small deficiency. Mar 09 02:07:30 chaosvoyager: Because it is not built into the design. It is simply a missing feature. Mar 09 02:07:50 If the deficiency were fundamental to the way Android is expected to work, then I would call it significant. Mar 09 02:08:04 for the ADC you may want to merge them. I'm not yet sure you want to Mar 09 02:08:04 doh, sorry Mar 09 02:08:06 Instead of a small oversight that can be easily remedied with some careful consideration. Mar 09 02:08:18 morrildl: What? Mar 09 02:08:19 I'm not yet sure that they will be able to "grok" a dependency in APKs Mar 09 02:08:47 I think my application sort of destroys a lot of simple assumptions the judges want to make. Mar 09 02:08:54 So in other words: in your supporting doc, explain what it is you've provided. But for the apk itself, it's probably best to merge them Mar 09 02:09:02 Because it is not trivial, like Google assumed ;) Mar 09 02:09:04 jasta: yeah -- so also email me directly about it once you have submitted it Mar 09 02:09:35 Noted. Mar 09 02:09:39 and I will make sure we ourselves do what we can to make sure it gets reviewed correctly Mar 09 02:09:46 (which, BTW, goes for anyone else listening to ;)) Mar 09 02:09:55 chaosvoyager: What specifically are you referring to? Mar 09 02:10:14 morrildl: I appreciate that attention. I am making a note of it in my calendar ;) Mar 09 02:10:16 chaosvoyager: is the deficiency that you can't merge APKs, or that there is no dependency-trakcing? Mar 09 02:12:33 jasta: np Mar 09 02:15:49 Whatever allows you to deploy a complete application in the simplest manner possible. I don't know if merging APKs, traditional dependency checking, or even just an install script, are the right solutions, but some kind of whole application management is needed. Mar 09 02:16:13 chaosvoyager: well, you can always just include everything in a single apk, too Mar 09 02:16:35 also, we don't know which is the right solution either, yet :) Mar 09 02:16:43 hey romain Mar 09 02:16:49 Unless you don't have rights to distribute one of the dependents. Mar 09 02:17:01 which is why we've chosen to start modestly, and figure out what the right thing is later once we see how people are using it Mar 09 02:17:07 morrildl: fair enough. Mar 09 02:17:18 It's definitely a missing feature Mar 09 02:17:28 we just aren't sure what the right solution is yet Mar 09 02:17:51 what's up, romainguy_? Mar 09 02:19:09 But it would be far less frustrating if these portions of Android were open so these feature experiments could be tested as opposed to just proposed. Mar 09 02:19:36 Thats all. Mar 09 02:21:38 Hey, does anyone know if Android is in any way related to Hiker beyond them both being the results of Palm imploding? Mar 09 02:22:12 what is Hiker? Mar 09 02:22:48 http://www.hikerproject.org/ Mar 09 02:23:13 Happened upon it while searching for info on OpenBind. Mar 09 02:23:23 huh Mar 09 02:23:28 never seen that before Mar 09 02:23:44 poor palm :o( Mar 09 02:23:55 palm is useless :) Mar 09 02:24:28 They refer to ACCESS, so I'd say your hypothesis about the relationship to Palm is a reasonable one Mar 09 02:24:30 Schrew Palm, they mismanaged themselves inot oblivion, taking a lot of good code with them. Mar 09 02:24:55 It's the framework similarities that intrigue me. Mar 09 02:27:11 A lot of proprietary blue in their layer cake though Mar 09 02:27:34 heh, though I suppose right now all of the Android layer cake would be in that blue :) Mar 09 02:30:11 Eh, mostly application things so I.... (* squint *) WTF...HotSync is a trademark?!? Mar 09 02:30:32 That doesn't surprise me, but it makes talking about it a lot more difficult now. Mar 09 02:30:39 wow Mar 09 02:30:55 use a hyphen, I guess? :) Mar 09 02:31:07 "I hot-synced this and that using HotSync(TM) Technology" Mar 09 02:31:22 *sigh* Mar 09 02:35:46 Trademarks are powerful little glyphs. It was a trademark suit that prevented MS from extending Java and netting Sun 2bil in damages. That's why I'm using trademarks to protect my code, not copyright. I'd use patents, but they're just too damn expensive, and I'm really just concerned about maintaining compatibility. Mar 09 02:36:18 chaosvoyager: interesting Mar 09 02:37:06 Regrettably, I had to study this shit to safely develop software. Mar 09 02:37:52 * morrildl once summarized open source licenses as "ALL YOUR BASE" Mar 09 02:38:51 GNU General Public License: ALL YOUR SOURCE ARE BELONG TO EVERYONE Mar 09 02:38:52 What REALLY pisses me off is that you have to remain ignorant of certain source and patents if you're developing similar tech, because if you DO know of them, then the court can find you doubly liable, and even of willfully infringment. >_< Mar 09 02:38:57 So, when is the Seattle code day? Mar 09 02:39:01 I'm feeling left out :) Mar 09 02:39:04 morrildl: heh. Mar 09 02:39:15 GNU Lesser General Public License: ALL OUR SOURCE ARE BELONG TO EVERYONE Mar 09 02:39:27 Mozilla PL: ALL OUR SOURCE ARE BELONG TO US Mar 09 02:39:39 BSD/MIT: ALL OUR SOURCE ARE BELONG TO YOU Mar 09 02:39:55 Microsoft End User License Agreement (EULA): YOU HAVE NO CHANCE TO DECIDE MAKE YOUR PAYMENT Mar 09 02:40:10 AT&T/SCO Unix license: ALL YOUR SOURCE ARE BELONG TO US Mar 09 02:40:45 my only question is: who set us up the bomb? Mar 09 02:40:50 jasta: yeah I am sad we coudln't do Seattle in the last round :( Mar 09 02:41:01 morrildl: the "round" is already over? Mar 09 02:41:05 Seattle is my third-favorite city after San Francisco and Boston Mar 09 02:41:09 Elua needs to be made a video game heroine or villianess :P Mar 09 02:41:14 well, since we haven't done anything in a while, I'd say so :) Mar 09 02:41:22 morrildl: San Francisco is stupid. Boston is stupid. Come to Seattle :) Mar 09 02:41:28 hahahaha Mar 09 02:41:48 Come to Seattle, we're closer to Canada. Mar 09 02:41:52 seattle is stupid too Mar 09 02:41:54 come to new zealand Mar 09 02:41:57 I used to like the Seattle track in Gran Turismo Mar 09 02:42:00 have a holiday Mar 09 02:42:03 then I went there Mar 09 02:42:16 duey: Hell yes! Mar 09 02:42:21 and I was like, "holy cow I can actually kind of find my way around the city from the Gran Turismo track" Mar 09 02:42:51 duey: I have a friend I lost touch with who was trying to gain citizenship there. It's really a pretty awesome place. Mar 09 02:42:52 Seattle is great. We've got grit. Mar 09 02:43:19 chaosvoyager, it has its downsides Mar 09 02:43:31 like being in the middle of no where Mar 09 02:43:32 Sheep? Mar 09 02:44:07 the sheep are gooood Mar 09 02:44:07 :P Mar 09 02:46:01 ...hey, how is Google going to prevent a non-Android phone from using the Android logo? I can forsee some rather nasty companies doing just that. Mar 09 02:46:05 hey morrildl :) Mar 09 02:46:34 chaosvoyager: well, Android is a trademark. I haven't asked the lawyers about it but I assume we'll want to protect it Mar 09 02:46:36 chaosvoyager, they would have to attribute the logo Mar 09 02:46:50 the green bug droid is creative-commons-ed though Mar 09 02:47:43 the official Android logo is the word "android" in the futuristic font Mar 09 02:47:53 lol Mar 09 02:47:56 ...and that is not CC-licensed Mar 09 02:48:09 duey: ? Mar 09 02:48:10 that logo sucks too ;) Mar 09 02:48:16 it's all about the little green guy Mar 09 02:48:26 the logo is awesome Mar 09 02:48:31 the little green guy is definitely more fun than the text logo :) Mar 09 02:48:36 that's why he's CC-ed Mar 09 02:49:09 damn Mar 09 02:49:17 Hmm, CC is copyright, which is treated very differently than trademarks. I'm not actually sure if you can release the art CC while protecting its value as a trademark. Mar 09 02:49:46 chaosvoyager, they could just wipe said company of the internets Mar 09 02:49:54 off Mar 09 02:50:11 and off the Google maps :P Mar 09 02:50:14 ya Mar 09 02:51:04 and then any phone calls on gphones to said company gets "disconnected" Mar 09 02:51:21 who needs lawyers? Mar 09 02:51:23 ;) Mar 09 02:52:44 Heh, on a more seriousness note though, I don't see how there's any way to avoid patent infringement when developing software. The only thing keeping me safe is that I'm not a big enough target. Mar 09 02:54:08 And that won't even matter if there's a larger company thats infringing as well, and the patent holder wants to target me first to set a precident. Mar 09 02:56:18 chaosvoyager: yeah, the software patent situation is messy Mar 09 02:56:55 morrildl: beautifully understated. Mar 09 02:57:23 :) Mar 09 02:57:35 in that case then... my work here is finished :) Mar 09 02:57:38 ...for today Mar 09 02:57:43 see you guys later Mar 09 02:57:47 later Mar 09 02:57:58 ta. Mar 09 02:59:05 yea speaking of patents, i noticed some Android app that can recognize and interpret bar codes using the phone's camera. Did a search for patents and there's already one filed for that idea. sucks Mar 09 03:00:42 lol Mar 09 03:01:07 There's probably one for the general pattern matching algorithm used for it, along with other forms of optical recognition, but I'll be damned if I search for that and open myself up to more liability. Mar 09 03:01:44 well i guess it really depends on if the company that holds the patent is a patent troll Mar 09 03:01:59 Yes. Mar 09 03:02:26 Thank Ted SCO didn't have any applicable patents. Mar 09 03:03:21 lol Mar 09 03:04:40 You can't embed Flash objects in HTML anymore because there is a patent. That's why you have to use Javascript or click once to activate. Mar 09 03:06:57 sheesh Mar 09 03:06:59 You can do it if you don't call it HTML though. (* twitch *) Mar 09 03:07:21 Some shithead made 500mil from that. Mar 09 03:08:33 That's why I just ignore the laws and politics, damn the torpedos, and just code. I'd go mad if I didn't. Mar 09 03:15:40 doesn't seem to me that you ignore these things at all. Mar 09 03:16:00 seems like you read up on them diligently :) Mar 09 03:26:12 patent laws are getting a bit ridiculous Mar 09 03:26:35 im surprised i don't have to pay a royalty for my use of my legs to walk Mar 09 03:26:43 im sure somebody would of patented that idea Mar 09 03:26:45 Yeah, I only started ignoring these things after I snapped. Mar 09 03:53:02 jasta: you figure out activitygroup? Mar 09 03:58:55 zhobbs: no, i gave up when i realized you'd have to manage your own activity history, which is super lame. Mar 09 03:59:42 hey im just starting to read all the documentation on the android sdk Mar 09 04:00:03 i had a quick question, is the android going to support built in gps Mar 09 04:00:13 pyronik: yeah Mar 09 04:00:14 or should i say any of the phones coming out are they going to have it Mar 09 04:00:19 ok awesome Mar 09 04:00:23 oh, no not all phones will have it Mar 09 04:00:52 im thinking about making some kind of lojack service that would run as a background thing Mar 09 04:00:52 you'll be able to get a location either way, just not as accurate without gps Mar 09 04:00:59 zhobbs: I suspect every Android phone will support at least Google's My Location system. Mar 09 04:01:22 All that is required is that the manufacturers cooperate and produce chips that allow Android to read radio metrics. Mar 09 04:01:34 pyronik: http://www.helloandroid.com/node/159 Mar 09 04:01:53 jasta: yeah, I assume there will be a location provider for the My Location thing Mar 09 04:02:25 ohh ok thanks zhobbs Mar 09 04:02:53 how big is it of a leap from a php devoloper to learn java and work with this SDK Mar 09 04:03:24 pyronik: probably not too bad if you understand OO principles Mar 09 04:03:36 for the most part Mar 09 04:03:39 Hmm, anyone use AlarmManager to launch an intent, and get it to pass values correctly in the Extras bundle? Mar 09 04:03:48 i dont understand the concept of extending a class yet Mar 09 04:03:50 It depends on how competent you are as a developer in general. pyronik, would you say you are a competent developer? Mar 09 04:04:11 ive tried to develope 1 actual project, it worked so i guess so Mar 09 04:04:20 pyronik: yeah, you'll need to understand the concept of extending classes Mar 09 04:04:20 The answer is no. Mar 09 04:04:32 pick up a java book Mar 09 04:04:44 will do Mar 09 04:05:01 extending classes does that just add more functions to a class Mar 09 04:05:13 pyronik: Pick up a Java book. Mar 09 04:05:17 ok Mar 09 04:06:06 thanks guys Mar 09 04:06:06 but actually, java is pretty easy to program in... Mar 09 04:06:18 pyronik: here's a nice link to get you started Mar 09 04:06:19 http://java.sun.com/docs/books/tutorial/java/concepts/index.html Mar 09 04:06:48 Yes actually, Sun's online Java tutorial is quite good. Mar 09 04:08:03 ~[ dragor43 ]~ thanks Mar 09 04:08:25 pyronik: I recommend reading instead of skimming. Mar 09 04:09:29 jasta: not sure how much you looked at activity group, but how do I know when a child activity is destroyed? Mar 09 04:09:42 zhobbs: as with finish()? Mar 09 04:09:48 yeah Mar 09 04:10:53 I see LocalActivityManager.dispatchDestroy() Mar 09 04:11:03 that's for you to destroy your activities though Mar 09 04:11:55 honestly i don't know. the only handle you'd have to find that out is the Window? Mar 09 04:12:22 ok, I'll keep looking Mar 09 04:14:46 damn ListView @!# Mar 09 04:14:53 yeah.. crap.. the data in the extras bundle must get lost when AlarmManager launches an intent Mar 09 04:17:22 romainguy[: why is this thing so damn complex? :) Mar 09 04:17:34 because it does a lot of things for you guys Mar 09 04:17:51 most importantly because it's efficient with very large sets of data Mar 09 04:22:48 well i certainly have noticed that Mar 09 04:23:48 and it gives you (almost) total freedom over what it contains Mar 09 04:23:57 so it makes no assumption about the nature and dimension of the items Mar 09 04:24:24 it makes some assumptions ;) Mar 09 04:24:30 like what? Mar 09 04:25:05 how does it calculate the position and size of the scroll bar without scanning every item in the list? Mar 09 04:25:14 well it does not scan the list Mar 09 04:25:17 i know. Mar 09 04:25:38 instead, it assumes that each item is approximately related to the size of items previously observed, right? Mar 09 04:25:50 depends on how you see it Mar 09 04:26:02 if you had 2 huge items and one very small one, the scroll bar would draw very strangely. Mar 09 04:26:10 yeah it changes size Mar 09 04:26:12 so, listview must be assuming something ;P Mar 09 04:26:19 no it does not Mar 09 04:26:31 it just reports scroll values based solely on the number of items Mar 09 04:26:48 contrary to scrollview for instance which bases these values on pixels Mar 09 04:26:55 really? Mar 09 04:26:59 yeah Mar 09 04:27:34 for a ListView: scrollExtent=number of children on screen, scrollOffset=firstVisiblePosition, scrollRange=number of items in adapter Mar 09 04:27:48 it's the first value that causes the scrollbars to act like a "snake" and change size from time to time Mar 09 04:27:58 it sucks but I hadn't have time to find a better solution y et Mar 09 04:29:13 i really enjoy working with android services :) Mar 09 04:29:17 this stuff is great Mar 09 04:29:33 glad to hear that :) Mar 09 04:29:50 the UI is pleasant too. Mar 09 04:29:59 the component that i despise is content providers. Mar 09 04:30:18 how come? Mar 09 04:30:27 (I never wrote one so I don't know how it is to use them) Mar 09 04:30:34 i can't say that it's a bad design, it's just lame to code for. hard to gracefully factor your code, seems very redundant. Mar 09 04:31:16 what do I do to display a Window object? Mar 09 04:31:32 also, it's a strange model to have to create a separate content uri and handle it in 3 separate places for each type of adaptation your data can have. Mar 09 04:31:46 zhobbs: You just access it's view with getDecorView or something, and you display that View with a FrameLayout. Mar 09 04:31:59 Oh, I see Mar 09 04:32:16 zhobbs: what are you trying to do? Mar 09 04:32:36 romainguy[: use ActivityGroup as a hack to enable animations between activities Mar 09 04:32:47 ouch Mar 09 04:32:58 you're being impatient :) Mar 09 04:33:02 hackbod suggested it, actually Mar 09 04:33:06 I know Mar 09 04:33:21 she said activity animations will be supported though Mar 09 04:33:24 she said that they "hope" to get this done by 1.0. that doesn't inspire me with confidence ;) Mar 09 04:33:30 yeah Mar 09 04:33:33 i assume 1.0 means phone release. Mar 09 04:37:55 hmmm...this seems like it might be a bad idea...I gotta manage all the menu and key stuff for the activities Mar 09 04:39:06 see :P **** BEGIN LOGGING AT Sun Mar 09 04:41:09 2008 Mar 09 04:42:01 great, now I get an error everytime I type a "." Mar 09 04:42:20 not just one error, 6 error windows Mar 09 04:55:44 hmm...I could just animate the views when the activity first starts...didn't think about that Mar 09 04:56:07 zhobbs: you can use a LayoutAnimation to do that easily Mar 09 04:58:22 kinda wanted to do that 3d animation in the apidemos, but couldn't really do that I guess Mar 09 05:01:48 zhobbs: why couldn't you? Mar 09 05:02:25 the new activity wouldn't know what the old activity looks like to use in the transition Mar 09 05:03:37 ah between activities Mar 09 05:03:41 sorry, tired tonight :)) Mar 09 05:04:06 :) Mar 09 05:32:23 man i am just plowing through code tonight :) Mar 09 05:32:37 the girlfriend is visiting her dad ;) Mar 09 05:35:37 :( Mar 09 05:35:43 im writing stupid proposal Mar 09 05:48:23 i am unfortunately writing way too much code without testing :) Mar 09 05:48:47 haven't done a test run in hours and hours :) Mar 09 06:06:38 well...i suppose it's ready to test now ;P Mar 09 06:08:47 oh jeez Mar 09 06:08:53 svn diff | wc -l reports 1100 :) Mar 09 06:09:25 just tonight? Mar 09 06:09:29 yeah Mar 09 06:09:40 but svn diff is in unidiff mode of course Mar 09 06:13:36 i fully implemented the second major service that my engine provides Mar 09 06:13:48 the content delivery and cache management service Mar 09 06:14:47 it was all dummy code before Mar 09 06:16:55 my project broke 10K loc this weekend :) Mar 09 07:16:32 romainguy: where's the left padding come from when you're using android.R.layout.simple_list_item_1? The TextView itself doesn't have any padding left Mar 09 07:16:59 it does Mar 09 07:17:04 from the XML file: Mar 09 07:17:04 android:paddingLeft="27dip" Mar 09 07:18:08 hmmm, the one in the jar doesn't seem to have that Mar 09 07:18:16 well it does Mar 09 07:18:45 what's the paddingTop/Bottom? Mar 09 07:18:49 none Mar 09 07:20:33 k, thanks... Mar 09 07:21:26 guess we're looking at the wrong xml files with this axml2xml Mar 09 07:24:50 If I use a simple built in adapter and say to use android.R.layout.simple_list_item_1 the list items look like they do in the api demos, etc Mar 09 07:25:15 but if I create a custom adapter to do "TextView txt = (TextView) vi.inflate(android.R.layout.simple_list_item_1, null, null);" I don't get the top/bottom padding Mar 09 07:29:19 lol! i just looked around for the growl-notification and the class is called Toast! Mar 09 07:29:22 because it pops up! Mar 09 07:29:34 oh google, as long as you make silly jokes you'll have my heart Mar 09 07:29:44 thedaniel`: that's why they call it toast....I never realized Mar 09 07:31:10 zhobbs: maybe you have a toaster oven instead of a pop up toaster Mar 09 07:31:23 ahhh, that's it Mar 09 07:34:30 romainguy: hmm...looks like that android.R.simple_list_item_1 will only render correctly when stuck in a ViewGroup (linearlayout in mine) Mar 09 07:36:36 uh? Mar 09 07:36:45 how could it be in something else than a ViewGroup> Mar 09 07:36:45 ? Mar 09 07:36:55 aaah Mar 09 07:37:00 I see your problem Mar 09 07:37:01 well, I was just returning the TextView itself Mar 09 07:37:14 vi.inflate(android.R.layout.simple_list_item_1, null, null); << you should pass the parent and false Mar 09 07:37:21 otherwise it won't create the layout params Mar 09 07:37:38 in particular the custom height Mar 09 07:38:26 Ahh, I see Mar 09 08:29:39 romainguy: I know you probably don't have a lot of spare dev time, but have you looked at the iPhone SDK at all? Mar 09 08:33:22 chaosvoyager: I'd rather not try it until I know for sure I can Mar 09 08:33:41 (be back in 1 minute) Mar 09 08:35:54 romainguy____: you mean you're not sure if apple allows you to or if google allows you to? Mar 09 08:36:54 zhobbs: it's not a question of being allowed Mar 09 08:36:56 zhobbs: it's about patents, etc. Mar 09 08:38:08 what's that... the two finger interface stuff? Mar 09 08:38:54 Hi, I am new to android... Mar 09 08:38:59 hello Mar 09 08:39:21 Can anyone help me in finding the way to get the boundary (latitude min/max, longitude min/max) on google map running in android application? Mar 09 08:39:39 davidw: or anything else they can have patents on :) Mar 09 08:40:49 niket: I think MapView.getLatitudeSpan() Mar 09 08:41:06 ok...let me check that Mar 09 08:42:39 so it returns int value....what would be value of max and min long/lat of map display area Mar 09 08:42:59 I am looking for 4 values Mar 09 08:43:28 that is probably the whole span accross the screen, so mapCenter + span/2 would give you an edge of the screen right? Mar 09 08:51:44 yeah I think so ....so what would be the exact call...min longitude= mapview.getCenterPoint()-mapview.getlongitudeSpan()/2, max longitude= mapview.getCenterPoint()+mapview.getlongitudeSpan()/2 Mar 09 08:51:49 can u conirm me? Mar 09 08:52:34 min latitude= mapview.getCenterPoint()-mapview.getlatitudeSpan()/2, max latitude= mapview.getCenterPoint()+mapview.getlatitudeSpan()/2 Mar 09 08:52:53 zhobbs,can u confirm me this also? Mar 09 08:53:13 it makes sense to me, you'd just have to try it Mar 09 08:53:24 thanks zhobbs Mar 09 09:23:29 Does anyone know if INSERT OR REPLACE in SQLite3 will re-use the same PRIMARY KEY when the REPLACE occurs? Mar 09 09:24:02 The documentation simply says that it invokes a DELETE then INSERT on conflict, not that it tries to re-use the same value for the PRIMARY KEY. Mar 09 10:01:31 damn, just lost an hour Mar 09 10:30:28 romainguy: you can't still be up? Mar 09 10:30:59 I am actually Mar 09 10:31:03 wow :) Mar 09 10:31:05 just like me hehe Mar 09 10:31:05 I forgot about this @!# daylight saving Mar 09 10:31:12 bullshit Mar 09 10:31:14 just noticed it's 3:30 Mar 09 10:31:39 i'm so tired but i just can't stop coding Mar 09 10:31:47 i feel like an f'n machine right now Mar 09 10:31:59 i've churned out almost 2000 lines today alone (Saturday) Mar 09 10:32:10 writing tons of code is pretty easy :) Mar 09 10:32:27 it's not that easy, i've been doing it all day :) Mar 09 10:32:39 it's still pretty easy to just crank out tons of code :p Mar 09 10:32:44 i fully implemented my content delivery and caching service both in Android and on the C server Mar 09 10:32:51 and implemented a robust test activity in the music player Mar 09 10:33:11 yeah well, tonight it took me several hours to write a few dozen lines of code Mar 09 10:33:19 but that saved 5 frames per second on several animations Mar 09 10:33:23 :p Mar 09 10:33:42 optimization is very unlike what i'm doing :) Mar 09 10:34:09 in fact, i will need to go back through at least two major parts of this system and partially redesign them at some point Mar 09 10:34:20 I'm still using XML for communication even, not WbXML yet :) Mar 09 10:34:29 also I now know how much time it takes for our view hierarchy between a call to invalidate() and the execution of onDraw() Mar 09 10:35:09 (on a specific piece of hardware) Mar 09 10:35:11 i am so flippin tired :\ Mar 09 10:35:19 yeah me too Mar 09 10:35:24 that's why I'm going to bed Mar 09 10:35:30 not me yet :) Mar 09 10:35:46 i am waiting until i encounter one of those cases that makes me just sit back and say "Fuck." ;) Mar 09 10:36:08 you know, the type of gotcha that causes you to just give up for the night Mar 09 10:36:39 yep Mar 09 10:36:46 I had one of those tonight Mar 09 10:37:05 but it made me work on this optimization instead of giving up totally ^^ Mar 09 10:37:10 heh Mar 09 10:37:20 I haven't done what I was set to do though :)) Mar 09 10:37:30 i have barely tested large portions of this code i just wrote so i'm thinking i'll hit it soon :) Mar 09 10:38:27 hopefully this will help me test that my system degrades gracefully hehe Mar 09 10:46:27 romainguy: hmm, found something kind of weird Mar 09 10:46:40 what? Mar 09 10:46:46 if you specify a