**** BEGIN LOGGING AT Thu Nov 15 02:59:57 2007 Nov 15 03:21:38 sweet Nov 15 03:21:48 i basically have an interactive ls and cd :) Nov 15 03:21:49 jasta: success? Nov 15 03:23:32 I'm not really sure about this Intent.putExtra thing, though. I'd ideally like to pass a File object but it says I can't do that for some reason. Nov 15 03:24:02 clipboard Nov 15 03:24:19 ? Nov 15 03:24:37 joke Nov 15 03:43:20 Has anyone managed to get SQLite createDatabase working? Nov 15 03:50:19 Wow, packed already Nov 15 03:50:20 ;) Nov 15 03:51:43 yup :) Nov 15 03:52:16 g'day billsb Nov 15 03:54:33 Man, java is tough for a hardcore c# guy. Never touched java before, but it's obvious where the "inspiration" for c# came from :) Nov 15 03:55:08 well dont get any ideas Nov 15 03:56:54 so far, the only thing I am missing is unsigned types... otherwise, it's just minor syntax differences and class properties differences Nov 15 03:57:42 kind of cool that methods are virtual by default Nov 15 03:59:39 LOL, isnt java a little easier than C# Nov 15 03:59:54 ya Nov 15 04:00:15 * billsb is a ruby programmer Nov 15 04:00:16 ;) Nov 15 04:00:50 time will tell... but I feel pretty comfortable with java considering i've never touched it before Nov 15 04:01:04 i learned C# in like.. 2 days after I already knew java Nov 15 04:01:07 they're that similar.. Nov 15 04:01:24 C# seems to unnecessarily complicate a few things though whcih I'm not a fan of Nov 15 04:02:11 Do you think most development will revolve around java using android or will linux folks prefer to use C? Nov 15 04:02:11 any roadblocks I should look out for d03boy? Nov 15 04:02:47 ad0le, not really.. most things are similar once you get over the lack of Properties Nov 15 04:03:20 how do you deal with a lack of unsigned int types? Nov 15 04:03:32 what are you trying to do? Nov 15 04:03:44 oh static typing Nov 15 04:04:02 I was trying to port a NES emulation engine Nov 15 04:04:26 had to replace all the UINT to LONG in java Nov 15 04:06:17 another thing I havent seen in the adroid libs is support for accelerometers. Nov 15 04:06:18 well there you go Nov 15 04:07:12 there is no call back for screen orientation for an activity, which I would assume existed if support was planned Nov 15 04:09:02 I used acceleromters on Japanese phones for games it sucked big time Nov 15 04:11:23 its just a glorified mouse... problem is reading the input from a thread in realtime Nov 15 04:12:38 billsb, no it wont matter Nov 15 04:13:16 I guess it depends on what your developing Nov 15 04:13:17 C is unacceptable anyways Nov 15 04:13:23 it doesnt fit the design requirements Nov 15 04:13:30 K Nov 15 04:14:06 * billsb wonders if maemo is dead now Nov 15 04:20:26 I don't think Nokia will hop on board (opinion obviously).. so, maemo probably safe for the time being Nov 15 04:23:10 until android dominates the market Nov 15 04:23:14 in which case they are free to join Nov 15 04:23:23 heh Nov 15 04:23:41 * billsb hopes you can get the Japanese phone makers on board Nov 15 04:23:50 That would really suprise me if you can Nov 15 04:24:19 whats to keep Nokia from impelmenting android VM into thier linux distro?? Nov 15 04:24:48 whats teh problem with that? Nov 15 04:25:25 nothing at all... its a bonus for any of the already "linux" phones. Like the NEO Nov 15 04:25:42 just havent heard anything about either of those guys yet Nov 15 04:25:52 maemo or neo Nov 15 04:26:02 Zareus either Nov 15 04:26:26 well Nov 15 04:26:34 motorola, samsung and LG are cool Nov 15 04:27:57 billsb, my "it wont matter" was in reference to linux folks preferring to use C Nov 15 04:28:24 Yeah, so you mean if they want, they can. Nov 15 04:28:50 Wont that mean that the C has to be compiled for the architecture of the phone Nov 15 04:28:50 sure they can tinker all they want on their own phones Nov 15 04:28:59 there wont be any way to distribute them Nov 15 04:29:09 No, ok. Nov 15 04:29:52 id rather C not be available to mainstream developers for distribution Nov 15 04:30:07 they (in general) have already proven they cant handle it Nov 15 04:30:14 K Nov 15 04:30:21 lol Nov 15 04:30:26 i like your style Nov 15 04:30:28 imho Nov 15 04:30:45 Im just so glad for this project as WURFL and building sites for mobile is a major PITA Nov 15 04:31:11 d03boy, who? billsb? Nov 15 04:31:53 you Nov 15 04:32:20 oh Nov 15 04:32:49 i can't wait to see source for the whole platform :( Nov 15 04:34:26 thanks i guess Nov 15 04:38:19 * billsb wonders Is google in need of engineers to work on android Nov 15 04:39:37 i hope once the SDK is open sourced google will work with the community Nov 15 04:57:29 any1 have luck with http://groups.google.com/group/android-developers/msg/3d68334a74a9bab2?dmode=source ? Nov 15 05:11:47 Howdy folks. Can anyone help me out with the button listeners? Nov 15 05:12:08 I'm doing it just like in the examples on the Android site, but it doesn't seem to actually be working, and I'm not clear on what I'm doing wrong. Nov 15 05:12:50 http://sial.org/pbot/28636 is where I pasted my code. Nov 15 05:15:30 Anyone alive? :) Nov 15 05:16:55 one mom Nov 15 05:19:01 ok weird Nov 15 05:19:04 looks good actually Nov 15 05:20:54 Yeah, I didn't see anything I was doing immediately wrong... Nov 15 05:21:29 Here's my errors: http://sial.org/pbot/28637 Nov 15 05:21:33 (Its not pretty... sorry) Nov 15 05:23:34 ooh wait I thought you had runtime errors Nov 15 05:24:09 No, I'm not even getting to that point. Nov 15 05:24:54 have you read the error ? ;) Nov 15 05:25:05 Yes, but I don't understand it.. Nov 15 05:25:45 And i'm not sure why it wouldn't be applicable... Nov 15 05:25:47 remove the current import Nov 15 05:25:50 and import Nov 15 05:25:50 import android.view.View.OnClickListener; Nov 15 05:25:55 import android.content.DialogInterface.OnClickListener; remove that one Nov 15 05:26:04 ok. Nov 15 05:26:14 you are pulling the wrong OnClickListener Nov 15 05:26:23 Doh. Nov 15 05:26:37 I looked on the android page to see if there was a different one and apparntly I missed it. Nov 15 05:26:42 I'm still getting used to java, eclipse, and android. =p Nov 15 05:26:48 that is ok ;) Nov 15 05:26:59 I haven't done Java for the past year Nov 15 05:27:14 Hrm, that fixed the first error... Nov 15 05:27:29 I dived into android a bit earlier this week, platform looks really awesome (I developer (professionaly) for pocketpc/smartphones and palm) Nov 15 05:27:41 what is the other error Nov 15 05:28:14 The type new View.OnClickListener(){} must implement the inherited abstract method View.OnClickListener.onClick(View) Nov 15 05:28:17 Is the first oen. Nov 15 05:28:17 one. Nov 15 05:28:37 The second one is "View can not be resolved to a type" Nov 15 05:28:54 ah ok Nov 15 05:29:19 import android.view.View; Nov 15 05:29:20 synap: Nice. I'm mostly a perl guy. I run the server for a couple pocketpc/smartphone/palm developers. :) Nov 15 05:29:31 also, in eclipse you can auto import Nov 15 05:29:35 Bah... that was it? Nov 15 05:29:38 how do I auto import? Nov 15 05:29:40 using the symbol in front of the error line Nov 15 05:29:47 you click on it, it'll give a set of options Nov 15 05:29:55 so you can select the right import Nov 15 05:30:07 ah, ok. Nov 15 05:30:52 anyway, you'll learn by playing with it Nov 15 05:30:56 Hrm.. it doesnt give me an option to import. Nov 15 05:30:58 i'm definitely learning. Nov 15 05:31:05 hmms Nov 15 05:31:08 Heh... now when I click my search button, my app closes. Not sure why. :) Nov 15 05:31:18 Thats ok, i've moved past my current hurdle. I'll play some more. Nov 15 05:31:32 finish(); Nov 15 05:31:33 that is why Nov 15 05:31:40 Oh. woops. Nov 15 05:31:40 public void onClick(View main) Nov 15 05:31:40 { Nov 15 05:31:40 // To send a result, simply call setResult() before your Nov 15 05:31:40 // activity is finished. Nov 15 05:31:40 setResult(RESULT_OK, "Corky!"); Nov 15 05:31:40 finish(); Nov 15 05:31:42 } Nov 15 05:31:44 Nov 15 05:31:45 Teach me to cut and paste from the doc. Nov 15 05:31:47 the handler is all about quiting the app Nov 15 05:32:33 When you setResult, what exactly does that set a result for? Nov 15 05:32:54 I think the application quit status Nov 15 05:33:08 so applications launching other applications can get notification of whatever happened Nov 15 05:33:19 I assume something like this Nov 15 05:33:24 to be sure, read the api docs Nov 15 05:33:27 Ok. So now I need to figure out how to do something, then get it to a screen. :) Nov 15 05:33:43 Not bad for an hour and minimal java knowledge. ;) Nov 15 05:33:49 indeed Nov 15 05:34:02 well it's really a fun platform to play with android Nov 15 05:34:05 I have high hopes for it Nov 15 05:34:21 I developer for many platforms, and most of them are really not that fun to work with Nov 15 05:34:30 I'm mostly a perl geek. Nov 15 05:34:40 Its kind of cool to see something running on an emulator. Nov 15 05:34:40 I don't know perl ;( Nov 15 05:34:49 Its easy to pick up, hard to get really good at. ;) Nov 15 05:34:51 imho Nov 15 05:34:59 yeah so I've heard Nov 15 05:35:07 I started out as a server admin though, so I never picked up any "real" programming languages. Nov 15 05:35:15 I know just enough C to be dangerous. Nov 15 05:35:19 a language is real when you can write programs it Nov 15 05:35:36 Yeah, I know. All my comp sci geeks friends tease me about not knowing rael languages though. ;) Nov 15 05:35:40 *rael Nov 15 05:35:42 *real... sheesh Nov 15 05:36:06 your comp sci geek friends shouldn't be ego-tripping themself ;) Nov 15 05:36:39 the last thing that gets 'status' or 'respect' from me is how many real computer languages you know ;) Nov 15 05:36:52 Its all good. I tell them to go figure out how to make a web app in C. ;) Nov 15 05:37:04 Its all in good fun. Nov 15 05:37:12 besides, C really isn't a great choice for writing applications Nov 15 05:37:19 neither is C++ Nov 15 05:37:33 in my opinion that is ;) Nov 15 05:37:34 The client programmer at work was thrilled when he told me yesterday "I'm glad I'm not a server admin". I tell him at least 3 times a week "I'm glad I'm not a client developer" :) Nov 15 05:37:42 hehehe Nov 15 05:37:58 I like writing software ;) Nov 15 05:38:03 So you've played around with android a bit? Nov 15 05:38:12 yeah just a bit, plan to play around with it more Nov 15 05:38:18 don't have a lot of spare time Nov 15 05:38:22 Is there a way to read external files? Or does everythign have to be packed with the ... what is it? .ask? Nov 15 05:38:25 and when I have spare time I prefer to do other things Nov 15 05:38:28 I can't remember the extension. Nov 15 05:38:34 synap: I hear you. Nov 15 05:38:38 no idea, I think you can read external files Nov 15 05:38:51 Ok. Was just curious if you knew offhand. I'll play with it some more. Nov 15 05:39:13 (I am a company owner, so there goes all free time ;), traded for different kinds of free(dom) tho ;) Nov 15 05:39:26 Hehe Nov 15 05:39:36 I'm not the owner of a company. I'm just a plebe. Nov 15 05:39:42 a what ? Nov 15 05:39:46 heh Nov 15 05:39:52 English is not my native language ;) Nov 15 05:40:10 Ahh, ok. Nov 15 05:40:14 plebian: 1533 (n.), 1566 (adj.), from L. plebius "of the common people," from plebes "the common people" Nov 15 05:40:31 You're doing pretty well. I wouldn't have known had you not told me. Nov 15 05:40:39 ah, that way, actually the Dutch word is plebs so that is quite close. Nov 15 05:40:43 Hehe Nov 15 05:40:57 Anyways, i'm off to bed. Thanks very much for the help. Nov 15 05:40:59 Anyway, I am planning to get up early today. Want to get a lot of work done Nov 15 05:41:09 Hehe, same here. I'm in the states, so its already past my bedtime. Nov 15 05:41:11 it's 06:41 in the morning here ;) Nov 15 05:41:11 Take care! Nov 15 05:41:16 Cheers, take care Nov 15 05:41:17 np for helping Nov 15 06:00:18 * rwhitby announces that www.android-internals.org is up and running. Nov 15 06:02:48 * CM takes a look Nov 15 06:03:57 rwhitby: Their android logo and text is probably trademarked, but one could make something similar :) Nov 15 06:11:20 rwhitby: nice doorbell logo Nov 15 06:11:56 I was looking for a picture of the internals of a really old phone. Nov 15 06:12:05 if anyone has one, please let me know. Nov 15 06:12:09 oh Nov 15 06:12:14 how old is really old Nov 15 06:13:09 rwhitby: http://ca.geocities.com/mstudi@rogers.com/retro.html (second image down) Nov 15 06:14:08 do you have rights to that image? Nov 15 06:14:26 rwhitby: i just found it in a google image search. ask the page owner :) Nov 15 06:15:06 his email address is not too hard to find :) Nov 15 06:19:29 don-o: you started playing around with android at all yet? Nov 15 06:20:25 maybe we do need to start an android.pdx group ;~) Nov 15 06:39:59 rwhitby: I was thinking something along this line (But not done in paint, and not stealing the official logo) http://www.acc.umu.se/~cm/android_robot_internals_example.png Nov 15 06:41:18 I was thinking something with doors in the chest opened up Nov 15 06:41:48 rwhitby: Yes, and you see the internals. Just couldn't draw that here ;) Nov 15 06:44:27 tlockney: ive been playing with it a bit. Nov 15 06:44:48 tlockney: reading mostly. i want to come up with a good (and quick) multi-user app idea Nov 15 06:53:31 don-o: I hear ya... my problem is too many ideas ;~) Nov 15 07:41:21 Hi, Can anybody tell me what easyeclipse java distribution and version to use for playing with android? Here is the url for the download page. Nov 15 07:43:50 xcess: I think that can be found in the android docs; http://code.google.com/android/intro/installing.html Nov 15 07:44:25 if you specifically want to use easyeclipse, I believe any of the distributions for java should work Nov 15 07:45:12 you just need an eclipse install that includes the JDT (java development tools), which should be part of all of those Nov 15 07:46:06 tlockney, is there any better alternative to easyeclipse? Nov 15 07:46:15 but really you could just use a basic eclipse install, you don't need all the extra stuff easyeclipse installs Nov 15 07:46:43 hello people Nov 15 07:51:22 xcess: I agree with tlockney, install the Sun SDK 1.6 and the standard eclipse :) Nov 15 07:55:14 thanks a lot everybody Nov 15 08:34:00 Wow lots of people, so are Android apps coded in Java? Nov 15 08:35:27 Bacta, yes Nov 15 08:35:38 see website for details Nov 15 08:40:54 <[AD]Turbo> hi there Nov 15 08:41:07 [AD]Turbo, hi :) Nov 15 08:43:52 <[AD]Turbo> ciao jeddy3 Nov 15 09:13:28 'morning Nov 15 09:13:34 from snowy Innsbruck...BRRRR Nov 15 09:13:54 morning Nov 15 09:14:06 from snowy olpe:) Nov 15 09:52:45 good morning Nov 15 09:52:53 good morning Nov 15 10:49:36 so...how long before we can try andoid on neo1973? ;) Nov 15 10:50:39 hehe Nov 15 11:04:39 i'm starting to understand android, yay Nov 15 11:09:24 Lede: then write an article :) Nov 15 11:13:40 I'm waiting for job ads to start coming out Nov 15 11:13:49 "seeking android developer with minimum 2 years experience" Nov 15 11:15:06 meus: sure Nov 15 11:15:25 davidw: haha :) Nov 15 11:39:48 i cannot create an Android project in Eclipse, i get a blank error message Nov 15 11:40:28 illustir, fill out all fields correctly Nov 15 11:40:50 do you have the package field filled out in "package style" like com.mypackage.bla Nov 15 11:41:52 ah it was not very clear that those were compulsory fields or what to put there Nov 15 11:41:57 but now it works, thanks! Nov 15 11:42:08 yw Nov 15 12:13:14 So.... has anyone ported doom to it yet? [Oblig.] Nov 15 12:13:44 BenO: Didn't you see the quake demo in the youtube videos? Nov 15 12:13:58 But seriously, what do people think of the SDK/architecture? Nov 15 12:14:16 CM, Yeah, but the quote is 'can it play Doom' ;) Nov 15 12:14:41 Hehe, ok. I'll imagine a beowulf cluster instead.. :P Nov 15 12:14:49 Or am I too old, and has it become 'Can it play Quake?'... Nov 15 12:15:11 I think so, when even your phone is fast enough to run it Nov 15 12:16:09 The way that the individual applications have been made to be developed in that fragmented 'federation' of components intrigues me. Has anyone played with how the security permissions/datastore parts work? Nov 15 12:17:50 * BenO is planning on developing a CalDAV client for a datastore as a first step Nov 15 12:21:57 BenO: I'd say it's unusually quiet here right now Nov 15 12:22:40 So it's not just the prize money for good ideas that is keeping everyone tightlipped? ;) Nov 15 12:23:14 tbh, if I get an application I want on a OS that's free on hardware I choose, I'll be happy. If I have to write that app myself, so be it :) Nov 15 12:25:35 BenO: Write it for OpenMoko maybe? ;) Nov 15 12:26:37 I did consider it, but I think it was the price of the dev kit that put me off.... and the fact that at the time, the software stacks dealing with the phone parts (GSM,etc) weren't ready Nov 15 12:27:49 Not that the phone stacks for Android functions any better to my knowledge. I've only seen the emulator, and I know that doesn't make phonecalls :) Nov 15 12:28:40 Anyone know what state the Android basic phone drivers are in? Voice, data, etc? Nov 15 12:32:44 I don't think we'll know that for quite a while Nov 15 12:33:19 BenO: You mean the price of the phone? The "dev kit" is free, but not as slick and easy to use as Androids Nov 15 12:33:28 I really like the Eclipse plugin Nov 15 12:34:01 I think the prize money is going to hinder the free flowing of open source applications for the Android platform. Nov 15 12:35:50 rwhitby, That's my fear as well. Too many greedy people.... They should have said they were going to have an event/t-shirts to celebrate devs. Nov 15 12:36:30 IMO Quite a few OS conferences/meetings function due to the provision of free food :) Nov 15 12:37:06 CM, I mean the hardware kit. I was also put off by the fact that the actual hardware may change before the consumer release Nov 15 12:37:28 CM, But I did look long and hard at OpenMoko, but that was some months back Nov 15 12:38:33 i don't think the prize will hinder the open source development for android Nov 15 12:38:36 BenO: the hardware *will* change before the consumer release Nov 15 12:38:41 The Eclipse plugin is very flash, isn't it :) Makes getting going with a newish platform that much easier. Nov 15 12:38:43 but I think it being closed for now will Nov 15 12:39:16 BenO: the emulator you mean ? Nov 15 12:40:23 I wonder whether Java developers are open source types in general. For example, in general, developers for the Win32 platform are not open sourcers - they seem to do freeware and shareware but not share the source. Nov 15 12:40:51 gpolo, The whole deal. The way that a lot of boilerplate work is done for you, the application packaging seems to be easy, and the emulator being able to be easily summoned by Eclipse Nov 15 12:40:58 most people on win32 doesn't really care about that anyway, rwhitby Nov 15 12:41:13 rwhitby: well, you probably have to segment it a bit more, server/client devs will behave differently Nov 15 12:41:16 BenO: it just executs tools/emulator for you Nov 15 12:41:21 executes* Nov 15 12:41:25 gpolo: that's exactly what I mean. Nov 15 12:42:29 gpolo, I know, but it means that the learning curve for a newbie is that much more gentle. It is not completely necessary to learn how to correctly use those tools to get started with application building Nov 15 12:42:40 right Nov 15 12:43:04 the android api seems good indeed Nov 15 12:43:10 why is it that people developing on win32 in general don't care about open source? There are plenty of open source development tools for win32 (cygwin, etc), but the people who use them don't seem to ever want to share their own source. Quite different from the crowd that develops on Linux. Nov 15 12:43:13 i just dislike it being java Nov 15 12:43:22 gpolo, Agreed :) Nov 15 12:43:53 rwhitby: win32 forces you to make so many embarassing hacks maybe? Nov 15 12:44:02 rwhitby: I dunno - I've been in both camps Nov 15 12:44:03 makes sense Nov 15 12:44:05 win32 api is so ugly Nov 15 12:44:26 rwhitby: and maybe it's the state of the ecosystem... more open source generates more open source Nov 15 12:44:34 rwhitby: closed source makes everything more closed Nov 15 12:44:35 rwhitby, Maybe Win32 people work with systems and organisations that actually put value in things remaining secret and so that attitude bleeds over? Nov 15 12:44:58 but all that is not really in the scope of these prizes Nov 15 12:45:13 BenO: perhaps you're right. Nov 15 12:45:22 actually I believe it enforces the apps being closed-source Nov 15 12:45:46 gpolo: why? Nov 15 12:46:15 rwhitby: my philosophy... Monkey See, Monkey Do Nov 15 12:46:32 rwhitby: from what I've read from the faq, it looks like that Nov 15 12:47:00 gpolo: you're saying that the competition rules require entries to be closed source? Nov 15 12:47:07 no Nov 15 12:47:12 i said they seem to enforce Nov 15 12:47:29 in what way? Nov 15 12:47:42 you can use any license for the app Nov 15 12:48:02 In the spirit of Win32 developing, first one to make Clippy wins! 'It looks like you are trying to make a phone call...' Nov 15 12:48:19 gpolo, Really? I haven't checked..... a bit dissapointing then Nov 15 12:48:38 "Developers retain all intellectual property and other rights to their applications while granting Google a license to evaluate and test the application for purposes of the Challenge as well as a license to display the application to promote the Android platform." Nov 15 12:48:57 the Terms and Conditions aren't available yet Nov 15 12:49:04 Ah buggrit... Nov 15 12:49:05 gpolo: I don't believe that clause affects open or closed sourceness of the entry. Nov 15 12:49:14 it doesnt affect Nov 15 12:49:20 but it doesnt encourage open source either Nov 15 12:49:27 it is up to you to decide Nov 15 12:49:49 ah, ok. You're saying that there is no incentive in the competition rules for an entry to be open source. Nov 15 12:49:57 exactly Nov 15 12:50:06 I fully agree with that statement. Nov 15 12:50:10 in fact I believe many small companies are really interested in winning 300k Nov 15 12:50:17 and will keep it closed source Nov 15 12:50:19 and sell later Nov 15 12:50:21 and win even more Nov 15 12:50:26 that's exactly the point I started with :-) Nov 15 12:50:42 ah ;) Nov 15 12:50:42 gpolo: hey, that 300k is much easier to attain than the various research grants out there :) Nov 15 12:50:59 "I think the prize money is going to hinder the free flowing of open source applications for the Android platform." Nov 15 12:51:02 Especially if they block access to the individual components of their app, like the 'facebook friends' store or something Nov 15 12:51:18 as a way for them to profit from that connection Nov 15 12:51:40 Stephmw: sure thing Nov 15 12:51:58 gpolo: I also think the prize money is driving all the "me too" forums (or maybe that's just for the adsense revenue) Nov 15 12:52:18 me too going to participate ? Nov 15 12:52:53 "me too" create a forum so I can get lots of developers on it and get ideas for prize money worthy entries. Nov 15 12:53:02 ah Nov 15 12:53:24 no, on second thought I think it's just the adsense revenue driving that. Nov 15 12:53:31 rwhitby: the discussion group is getting spammed with those types of forums Nov 15 12:53:43 Lede: that's exactly what I mean. Nov 15 12:54:03 i haven't look at dicussion group yet Nov 15 12:54:06 looked* Nov 15 12:55:10 * rwhitby created www.android-internals.org for the free flowing on information without advertising or pressure to win prize money, and I'm letting people find it by word of mouth rather than spamming developer discussion groups. (although I guess I've just spammed this IRC channel, haven't I :-) Nov 15 12:55:38 yes, twice Nov 15 12:56:10 hahaha Nov 15 12:56:12 gpolo: you're not missing anything. and the google developer advocates here assured me that any announcements will go to the official google blog, so you won't miss them if you just subscribe to that. Nov 15 12:56:17 Hmm I think I would like to replace the disparate messaging routes with a single app, one that picks a route based on your targets contact details - email, sms, or even irc perhaps.... Nov 15 12:56:18 Lede: touche :-) Nov 15 12:56:35 that 2nd time was useful - I hadn't seen the first :) Nov 15 12:56:41 bit sluggish Nov 15 12:56:47 lots of redirections Nov 15 12:57:06 Stephmw: Guess you missed the "spamming" in #openmoko too then ;) Nov 15 12:57:25 Would be nice to try android on the Neo Nov 15 12:57:29 what about dalvik domains ? Nov 15 12:57:35 no one going to register ? Nov 15 12:57:47 CM: yeah, I did :( Nov 15 12:58:00 CM: I'm looking forward to playing with it on Xora's C860 :) Nov 15 12:58:50 CM: damn, you've seen right through my nefarious plans ;-) Nov 15 12:59:00 Hehe Nov 15 12:59:14 Now I'll never win that prize money or get rich from adsense! Nov 15 12:59:34 rwhitby: i've got a language to add to your DalvikVM languages page Nov 15 12:59:41 bengl: please do Nov 15 12:59:53 once i finishing testing it, etc. Nov 15 13:00:01 (brainfuck) Nov 15 13:00:06 (BTW, it's "our" DalvikVM languages page, not mine) Nov 15 13:01:17 hmmm, nice summary, http://www.javalobby.org/nl/archive/jlnews_20071113o.html Nov 15 13:05:07 Stephmw: yeah, good article. Nov 15 13:06:18 it should be possible to use jython Nov 15 13:06:25 rwhitby: so as I was saying in #OM, the google guy at FOM really just spoke from the spec sheet and did his 8min demo (good PR, bad programming example) Nov 15 13:06:36 since it can create java bytecode and dx converts that to dalvik's bytecode Nov 15 13:07:02 rwhitby: only one thing came out that wasn't clear elsewhere: MIDP+etc is expected to be provided by 3rd parties (OEM/Operator) Nov 15 13:08:22 night all Nov 15 13:08:42 cheerio Nov 15 13:09:40 Just read that javalobby article.... that guy is definitely too far into java. He lists SOAP as a possible inter-process communication method. I know Java people love their overkill, but seriously... Nov 15 13:16:56 ehhehe Nov 15 13:18:52 "When your favourite tool is a bludgeoning heavyweight hammer, every problem starts to look like a nail" .... bloody devs using SOAP for everything... grumble grumble Nov 15 13:20:09 * ledil is still waiting for a python sdk ;) Nov 15 13:21:22 are there plans for it then? Nov 15 13:21:39 BenO: fair point Nov 15 13:21:47 BenO: how's the rest of the article? Nov 15 13:22:02 very very unlikely to have a python sdk Nov 15 13:22:17 first because dalvik is not open source yet Nov 15 13:22:33 second it is not secure for a cell phone Nov 15 13:22:43 and because people spend too much time with their 'jibbah jabbah' rather than working on it? Nov 15 13:22:46 why should python not be secure ? Nov 15 13:22:49 someone would have to come up with a sandboxed python Nov 15 13:23:23 Stephmw, pretty fair, but I have not looked at Android in detail yet to make much of a comment. I am currently working with a few systems that irritate me where, well, lets just say SOAP is used when it's not needed :) Nov 15 13:24:01 * Stephmw throws a 15MB xml file to describe a bitmap BenO's way Nov 15 13:24:13 yeah, but that doesn;t include students... they need soap , lots of it too Nov 15 13:24:28 I see the problem with a java sdk that you must invest to much time to create software. Ive spend some years to code programs for symbian and after they have introducted python for S60 I need only the half time to code a program. Nov 15 13:24:42 So I see a big advantage also for google to release a python sdk, to make development faster! Nov 15 13:24:56 java is tooooo verbose Nov 15 13:25:07 thats the point Nov 15 13:25:25 and that is also the point that I will not start coding until ive seen a python sdk ;) Nov 15 13:25:29 i would like to see python being used there Nov 15 13:25:32 but it is unlikely for now Nov 15 13:25:45 Stephmw: I heard some guys here at Volvo complain over their Simplified Chinese car instruction books being 10 gb xml-files that are converted to pdf files before going to print... Nov 15 13:25:50 like I said earlier, you could give a try to jython Nov 15 13:25:53 Stephmw, One of the complete SOAP calls is to get a list of files per object! There is a RESTful way to get it, but the response doesn't include file size :( Nov 15 13:25:59 and let dx convert the bytecode to dalvik Nov 15 13:26:30 but you wouldn't be using all the "special" features that android's api gives you Nov 15 13:26:45 yes Nov 15 13:26:56 and python will run arbitrary code Nov 15 13:26:57 ooh, did someone just update sqlite Nov 15 13:27:12 ScaredyCat: hrw did, in oe Nov 15 13:27:13 that is why it would be good (required) to have a sandboxed python Nov 15 13:27:19 ScaredyCat, In android or in general Nov 15 13:27:28 oh crap, wrong channel Nov 15 13:27:29 sorry Nov 15 13:27:31 ;) Nov 15 13:27:40 gpolo lets start a petition :) Nov 15 13:27:46 doesn;t help when eveyone is in both! Nov 15 13:27:59 i remember someone doing a secure python Nov 15 13:28:00 some time ago Nov 15 13:28:14 guido gave up on the idea Nov 15 13:28:20 it wasnt guido that was doing Nov 15 13:28:24 i think it was bret cannon ? Nov 15 13:28:29 the best languages for sandboxes are Java and Tcl Nov 15 13:28:45 someone could fork python Nov 15 13:28:50 :) Nov 15 13:28:51 and start a special one Nov 15 13:29:18 gpolo, Hmm secure python... I know of a i386 emu writeen in java, if we stick linux on top of that and put a python stack in there... that might just work! ;) Nov 15 13:29:21 I dont see any problems, just modify pypy :) Nov 15 13:29:53 I don't see why the python people don't just buckle down and work on jython Nov 15 13:29:56 BenO: the only problem is that it will be much slower Nov 15 13:30:18 no one chooses python because it's the fastest thing out there Nov 15 13:30:32 yes, but it if gets so slow to the point of being unusable Nov 15 13:30:33 it is bad Nov 15 13:30:34 gpolo, I was joking! It would be cripplingly slow on a handheld :) Nov 15 13:30:40 yeh ;) Nov 15 13:30:49 Thats if there is enough memory for it to get to that point anyway Nov 15 13:30:54 heh, true Nov 15 13:31:27 Hecl runs fine on mobiles and it is certainly no speed daemon Nov 15 13:31:40 "more coding, less wanking" ;-) Nov 15 13:31:52 davidw, people don't work on jython because it has a silly name IMO ;) Plus, it's like, hard work or something [yes, I am in a tired and flippant mood... scuse me] Nov 15 13:32:15 davidw, "more coding, less wanking" - motto of Google perhaps? Nov 15 13:32:30 do no evil Nov 15 13:32:41 i forgot it actually Nov 15 13:32:47 So have they :0 Nov 15 13:32:54 * BenO ducks Nov 15 13:39:01 heh Nov 15 13:39:12 according to wikipedia it is "Don't be evil" Nov 15 13:39:48 well, some people claim it is "Don't look evil" Nov 15 13:40:06 ;) Nov 15 13:41:59 "evil" is relative Nov 15 13:45:23 you know what, though. Programming apps like these is a PITA. If carriers ever start making flat rates commonplace, web apps are going to take over, just like they are for desktop apps in some areas Nov 15 13:49:33 more "give away enough free shit so people don't notice how truely evil you are" Nov 15 13:50:15 companies are usually not really good or evil, just kind of stupid and lumbering Nov 15 13:51:16 oh, this is cool...that guy Bartek is interested in porting microemulator to android Nov 15 13:51:49 davidw: woo! that'd make 2 j2me environments :) Nov 15 14:55:14 So can anyone point me towards any resources that show how to read external files? Nov 15 14:55:49 Or is it even possible? Nov 15 14:55:52 Define external... external to the phone? or just flat files included with the app? Nov 15 14:56:15 external as in a flat file that is not part of the apps package. Nov 15 14:56:22 Say, a text file on a memory card, or something like that Nov 15 14:56:34 the app's package. Rather. Nov 15 14:57:53 Something like: http://code.google.com/android/devel/resources-i18n.html or http://code.google.com/android/devel/data/files.html ? Nov 15 14:58:17 Probably the second one reading your response Nov 15 14:59:30 Awesome, thank you. I'll go read. Nov 15 14:59:48 You could also more usefully create a http://code.google.com/android/devel/data/contentproviders.html to provide the data you need, or maybe that's not the kind of data interaction you are after? Nov 15 15:00:36 Well, I'm a server admin for an ebook software, and I was doing a precursory look into how hard it would be to get the software running on android. Nov 15 15:02:11 I'm guessing DRM will figure at some point? or can that be dispensed with? Nov 15 15:03:38 BenO: if content providers are involved, DRM will be a must for operators Nov 15 15:03:49 BenO: so..... yeah Nov 15 15:05:12 * BenO cries a little... Open Access ftw! Nov 15 15:10:45 BenO: for my software? DRM is required sadly. Bitch at publishers. :/ Nov 15 15:12:50 godzirra, I get to bitch about publishers all the time; I'm building an Open Access archive for Oxford University and publishers don't like it :) Nov 15 15:14:22 Hehe. Then we shall bitch about publishers together! Nov 15 15:14:35 And while I'm complaining, I'll bitch about IDPF. =p The open source standard that sucked. Nov 15 15:14:56 Hrm... is there a way to get a list of files in a location? Nov 15 15:15:06 nevermind Nov 15 15:15:09 api docs ftw. Nov 15 15:15:29 wait... actually fileList doesn't do what I thought it did. I think. Nov 15 15:15:53 * godzirra goes to be confused and read more. Nov 15 15:17:02 BenO: have you had to screw with IDPF at all yet? Nov 15 15:17:11 its the most awesome standard ever. Nov 15 15:17:16 its a zip file with xhtml and css in it =p Nov 15 15:17:22 Look! A new standard! Nov 15 15:17:45 * BenO feels a disturbance in the format force.... Nov 15 15:17:57 * BenO as if a million repository managers cried out in pain.... Nov 15 15:18:05 wdaawdaaaaaaaaaaaaawddwawdwdddddwwwaaaaa`test Nov 15 15:18:38 i think one just really cried out in pain Nov 15 15:18:39 godzirra, I have to contend with so many formats right now, I guess another new one can't kill me. Have you a url for IDPF? Nov 15 15:19:42 Lede, I think he was only running a test in case at some stage he had to cry out in pain :) Nov 15 15:19:48 www.idpf.org Nov 15 15:20:03 BenO: the best part is the "drm" Nov 15 15:20:25 Its a file, inside of the zip file. That contains the key that is used to undrm the files. Nov 15 15:21:08 Sorry, sidenote (as in, relative to android ;) question... can I pass options to the emulator from eclipse? Nov 15 15:21:20 That doesn't sound like the most robust drm system... Nov 15 15:21:39 godzirra, I'm fairly sure you can pass options of some sort to the emu Nov 15 15:21:42 You think? :) Nov 15 15:22:13 The only thing I can think of is that adobe did it to push "open source" while secretly making it crap in hopes that more ebook programs start using pdf. ;) Nov 15 15:22:40 BenO: do you know where I'd set that? I've used eclipse for a whole day and a half now :) Nov 15 15:23:53 http://code.google.com/android/reference/emulator.html#startup-options for the emu options Nov 15 15:24:27 http://code.google.com/android/intro/installing.html#developingwitheclipse and I guess you set them as you wish in the launch config Nov 15 15:25:01 (disclaimer: Im not on or near the computer with all the android stuff installed) Nov 15 15:25:06 *my computer Nov 15 15:27:04 I know where to find the otpons, was curious where to find them in eclipse. I'm reading now. Thanks for the info. :) Nov 15 15:27:19 Trying to find the launch config. ;) Nov 15 15:27:27 Oh. duh. I knew that. Nov 15 15:29:57 Hrm... i'm guessing you can't use a variable as part of an XML layout? (Sorry for all the questions) Nov 15 15:37:43 there is a drm directory at /system/data/drm btw Nov 15 15:38:15 Good to know. How do you find out the directory structure? I'm trying to figure out how to get a list of files from the sdcard? Nov 15 15:38:32 im running a shell Nov 15 15:39:29 you can browse the filesystem in the debugger aswell Nov 15 15:39:55 Hrm, how do you run a shell or browse in the debugger? Nov 15 15:40:01 in ddms that is Nov 15 15:40:08 there is a tool, adb Nov 15 15:40:19 you use it to install packages aswell Nov 15 15:40:46 I'm familiar with adb to install packages (sort of), didn't realize you could use it to connect to the emulator while it was running. Nov 15 15:41:06 just adb shell Nov 15 15:41:45 Got it. Nov 15 15:41:56 Thanks. Learning a lot. This is definitely a new area for me. Nov 15 15:42:30 if you run ddms you can browse it in the file explorer tab Nov 15 15:42:31 Now if I can get my file list working I'll be set. :) Nov 15 15:46:54 I'm not positive fileList() is what I need. It says it shows all private files associated with this context's application package... is there some way to get a list of all files in X directory? Nov 15 15:50:24 I think that you may be sandboxed in to your local files. See http://code.google.com/android/devel/security.html for more about file permissions etc Nov 15 15:52:03 uhm Nov 15 15:52:18 but an app I installed has the same user/group than the ones that comes built-in Nov 15 15:52:35 ah Nov 15 15:52:40 I guess I looked at the wrong place, now I see Nov 15 15:53:34 I think I've got it working... I just have to figure out how to get it to my screen now. It compiles fine but I get a runtime error. Nov 15 16:01:11 i just ran the NotesList application, any idea where i can find it on the emulated phone? Nov 15 16:01:49 Frederick[SE], what do you want to do? Nov 15 16:02:13 well, im just starting up with android, so i loaded one of the examples, the noteslist example Nov 15 16:02:17 and now i ran it in Eclipse Nov 15 16:02:36 it opened a window with the phone, the emulator and well, where's the noteslist application :S Nov 15 16:02:50 i just want to use the noteslist application on the emulated phone Nov 15 16:03:02 api demos Nov 15 16:03:05 is a button in the menu Nov 15 16:04:58 i have API Demo's under the Applications menu Nov 15 16:05:30 i open it, and my NotesList application isnt there :S Nov 15 16:06:03 you wrote your own app and want to start it via menu entry Nov 15 16:06:12 ? Nov 15 16:06:19 so you miss the menu entry for you app? Nov 15 16:06:35 yeah, i dont see any option to run it anywhere Nov 15 16:07:00 Frederick[SE], http://www.android-portal.com/2007/11/14/custom-menu-entries-on-the-android-os/ Nov 15 16:07:31 http://www.android-portal.com/wp-content/uploads/2007/11/android_menu.jpg Nov 15 16:07:34 like this? Nov 15 16:08:31 yeah, im missing that one Nov 15 16:08:40 is that your site? Nov 15 16:08:52 yap, currently just blogging Nov 15 16:09:10 adding a boad at the moment for problem disucssion Nov 15 16:09:14 adding a board at the moment for problem disucssion Nov 15 16:09:30 aaah ok, nice domain name you managed to register Nov 15 16:09:50 also androidportal.com :) Nov 15 16:10:12 * cutmasta was drunken some days ago and registered it Nov 15 16:11:05 i already have such a line in the Manifest.xml :( Nov 15 16:22:33 why is my android emulator displaying KITT-style red light? Nov 15 16:23:16 its booting Nov 15 16:23:18 :) Nov 15 16:23:50 ic Nov 15 16:24:03 cutmasta, i thought i make a mistake or something Nov 15 16:24:52 It's when it gets stuck with 3 red lights that you need to worry about ;) Nov 15 16:26:49 BenO, ok thanks Nov 15 16:27:03 :) Nov 15 16:27:10 I was joking! Nov 15 16:27:40 (Xbox360 getting stuck with 3 red lights is when you panic!) Nov 15 16:30:14 meh, i should get a newer pc Nov 15 16:30:43 how do I regenerate the R.java file ? Nov 15 16:30:47 without using eclipse plugin Nov 15 16:30:52 gpolo, theres a tool Nov 15 16:30:54 in the sdk Nov 15 16:30:57 which does it Nov 15 16:30:57 what is it ? Nov 15 16:31:07 but i recommend you to use the clipse plugin Nov 15 16:31:15 its easier in my opinion Nov 15 16:31:22 cause of debugging and son on Nov 15 16:31:27 use eclim :) Nov 15 16:31:35 you can just ddms to debug Nov 15 16:32:52 aapt seems to be the tool I was after Nov 15 16:51:34 hi all. what's the name of andriod's html+javascript engine? thanks in advance Nov 15 16:53:27 sgx___, i just know that the browser is something webkit based Nov 15 16:54:10 you can download its source Nov 15 17:00:40 bye all Nov 15 17:01:10 eclipse? bleagh... command line + emacs Nov 15 17:30:19 re Nov 15 17:58:30 thanks cutmasta Nov 15 17:58:55 daviddw: how do you refactor in emacs? Nov 15 17:59:07 sgx___, ? Nov 15 17:59:18 did i miss your lines ? Nov 15 17:59:24 I edit the code. Nov 15 18:00:09 cutmasta: about 2 hours you answer me a question about android's browser (based in web kit) Nov 15 18:00:56 sgx___, ah :) i c, sorry, i switched the pc in that time Nov 15 18:00:58 davidw: if you has to change a method signature you edit all the classes that reference that method? well in eclipse I simple rename it and the refactor do it automagically Nov 15 18:01:38 that's handy Nov 15 18:02:01 I work in a lot of languages though, where that kind of thing isn't always available... and I hate all the clutter that eclipse has Nov 15 18:02:20 plus, my fingers know *emacs* Nov 15 18:02:20 davidw: i 'm a fan of emacs too, but eclipse refactoring tools and the auto fixes of the code,... mmm... i don't touch emacs for java code anymore... Nov 15 18:02:56 davidw: yes i know what you mean Nov 15 18:02:57 plus I don't like how it hides project type stuff Nov 15 18:03:23 code editing is handy, but I don't like the automagic building kinds of things that leave people without a clue when they break, or you can't build things without the tool Nov 15 18:03:41 anyone have an idea why i dont see my applications on the emulated phone? Nov 15 18:04:05 i have imported one of the samples, ive ran it Nov 15 18:04:09 and there's nothing on the phone Nov 15 18:04:30 mmm... I don't think it hides nothing... you always have access to the project directory and you can generate ant task for building without knowing ant syntax... Nov 15 18:13:14 evening Nov 15 18:13:33 Frederick[SE]: that seems to be a common question, thsi might help: http://code.google.com/android/kb/troubleshooting.html#noapp Nov 15 18:13:48 ok, ill check it out :) Nov 15 18:21:10 hrmm... adb, thats new for me Nov 15 18:28:20 alright. time to code Nov 15 18:29:56 I can't figure out how eclipse works for debugging. :/ Nov 15 18:30:05 it has a "debug" button Nov 15 18:30:14 I've gotten to the point where I can run the debugger. Nov 15 18:30:15 then the screen will switch viws Nov 15 18:30:19 I just dont understand what to do from there. Nov 15 18:30:24 what are you trying to do? Nov 15 18:30:36 When I run my code, i'm getting a null pointer error Nov 15 18:30:39 and I'm not sure where or why. Nov 15 18:30:41 I'm trying to find that out. Nov 15 18:30:50 you can set a break point Nov 15 18:30:58 by double-clicking on the left side of the code window Nov 15 18:31:06 Right, I did that. Nov 15 18:31:17 did your program execute and break there? Nov 15 18:31:26 I'm not 100% sure. Nov 15 18:31:38 did the simulator come up? Nov 15 18:32:03 Yes, it did. And yes it did break there. Nov 15 18:32:05 *emulator Nov 15 18:32:36 alright, well in teh top-right corner there is a "Variables" window Nov 15 18:32:41 that is where you can get a lot of information Nov 15 18:32:50 by expanding "this" you will get more values Nov 15 18:33:01 Variables? I dont see that window? Nov 15 18:33:33 did you go into debug view? Nov 15 18:33:42 Yes. Nov 15 18:33:46 And my debug window is open Nov 15 18:33:57 Does it say "Variables"? Or am I looking for a symbol? Nov 15 18:33:57 Window > Show view > Variables Nov 15 18:34:12 Ah there we go. Nov 15 18:34:34 i believe you can tell eclipse to break when you hit an NPE Nov 15 18:34:40 if you want to step through the code, just use the "step over" or "step into" buttons Nov 15 18:34:56 Step over skips the next line? And step into executes teh next line? Nov 15 18:35:01 steve_k, never tried that Nov 15 18:35:10 Sorry for all the questions... I've never really used an IDE before. Nov 15 18:35:22 godzirra, if you have a line that jumps into a function, step over will just return that function, step into will go into that function Nov 15 18:35:29 Ahhh ok. Nov 15 18:36:19 I think I just need a good list example. Its killing me. Nov 15 18:39:43 in main.xml i have a TextView. how do i get programmatic access to that object to update its text field? Nov 15 18:41:27 getViewById? Nov 15 18:42:22 maybe not, thought i saw that somewhere :) Nov 15 18:47:36 don-o: ah, i think it is findViewById() Nov 15 18:53:07 Hrm. What is wrong with this: List items = new ArrayList(); String s = "Some string"; items.add(s); ? Nov 15 18:53:29 I'm trying to base part of the code i'm writing off of the notepad tutorial, but the items.add always fails. Nov 15 18:55:14 fails how? Nov 15 18:56:13 A runtime exception. Nov 15 18:56:34 one sec, let me get the exact error again Nov 15 18:57:25 An error has occured in the process of com.google.android.hello. java.lang.ClassCastException. Nov 15 18:57:45 you sure that is the line? Nov 15 18:57:57 you trying to use an ArrayAdapter? Nov 15 19:00:26 steve_k: thx Nov 15 19:08:22 do i necessarily need to do something with ADB in order to be able to run any application? Im following the Hello Android tutorial and when i start the application the emulator boots and simply nothing happens Nov 15 19:08:33 nothing of adb is mentioned in the tutorial either Nov 15 19:26:00 can eclipse be changed to edit XML directly? i cant stand its custom xml editor thingy Nov 15 19:26:26 don-o: try right clicking the file in the package tree and "open with" Nov 15 19:26:37 right click and open with text editor Nov 15 19:26:50 steve_k types fast! Nov 15 19:29:29 don-o: you can change the default file associations, too. go to window > preferences and then general > editors > file associations Nov 15 19:31:17 thanks al. Nov 15 19:31:19 all. Nov 15 19:31:21 much better Nov 15 19:32:07 hello folks Nov 15 19:32:34 is there already a gentoo ebuild for the SDK, to install it in a "managed" way ;-) ? Nov 15 19:33:41 Haven't heard anything about that yet Nov 15 19:36:01 I have been thinking that at some point in the not to distant futre my cell phone is going to need a firewall. I don't see any firewall capabilities in Andriod, and no low level access availalbe to build one. Does anyone see anything I am missing? Nov 15 19:36:31 Oh noes, your firewall == my free calling ends :( :P Nov 15 19:37:23 Exactly what I am concerned about. :-) Nov 15 19:37:54 Bad sport :P pay my ... um I mean ... your bill Nov 15 19:37:57 * Dralspire giggles Nov 15 19:38:10 the_guru_ga: the way the apps runs are secure enough Nov 15 19:38:25 the_guru_ga: they could use iptables (or whatever is currently used in linux) as a firewall Nov 15 19:38:56 Yeah, that was my initial thought. Nov 15 19:39:15 I think an app being secure is different than the network being secure. Nov 15 19:39:55 well, you could always extend the auth layer that the networks provide Nov 15 19:41:11 Dralspire: what do you mean by that? Nov 15 19:42:33 yay, i managed to fix my problems... apparantly i was using GNU java, not sun Java Nov 15 19:43:07 when you install eclipse in Ubuntu by default, there's a bug that makes eclipse use gnu java and Android doesnt like it Nov 15 19:43:26 it is a known bug (not really a bug) Nov 15 19:43:50 Frederick[SE]: http://code.google.com/android/RELEASENOTES.html Nov 15 19:44:18 well, not an android bug. Couldnt find any documentation from someone else who had reported it though Nov 15 19:45:00 aaaah... i guess i should read _all_ the documentation before proceeding i guess Nov 15 20:10:02 steve_k: that is hte line. And I am using ArrayAdapter. But the line it dies on is items.add(s); Nov 15 20:12:14 steve_k: I can paste the whole code if thats easier? Nov 15 20:26:59 <[AD]Turbo> hi all Nov 15 20:29:36 ciao Nov 15 20:30:06 hello Nov 15 20:30:22 what tools are being explored or used for automation and testing in the android environment? Nov 15 20:30:28 any links or ideas are very welcomed. Nov 15 20:31:20 you could hack Hecl to do script tests I guess Nov 15 20:33:10 it might be possible to script tests against the emulator UI itself, but that will be platform dependent Nov 15 20:37:29 Why the heck when I debug does it keep popping up windows saying things like it can't find looper.class? Nov 15 20:39:01 how is the transparent process list turned off? (upper right corner of the emulator) Nov 15 20:40:46 hey guys, im want to switch screens from my main screen to the options screen. i think i do this by startActivity(new Intent("foo"))? what is the startard for naming intents? Nov 15 20:41:51 godzirra: how are you constructing the adapter? Nov 15 20:43:34 Al2O3: good question. Nov 15 20:44:27 don-o: is that a 'there are none defined, or techniques being pursued?'... I'm talking at unit level, system and integration/GUI level. Nov 15 20:44:33 anything at any level at all? Nov 15 20:48:38 unit level should be possible by hooking in before the java class are converted to dex format Nov 15 20:48:49 system and integration/gui are another matter Nov 15 20:49:08 I wonder if Google already has something up their sleeve and if the community will come up with their own solution in the meantime Nov 15 20:49:57 as I was saying before, hooking into the emulator UI would allow for GUI testing, but someone(s) will need to dig in to figure out how to access the discrete elements Nov 15 20:50:31 anyway, lunchtime... more thoughts on that later :) Nov 15 20:51:03 i wanna change screen to edit the option for my program, what sort of Intent would i have? Nov 15 20:57:30 steve_k: I've actually changed to using a list adapter, since that seems to be the preferred way... i'm still failing though :) Nov 15 20:57:52 main.xml has a textview, how would i get access to that object? findViewById(R.layout.main) gives me null. Nov 15 20:58:28 probably because main is a layout and not a view. so the question is how do i get or define the id of the TextView Nov 15 20:58:55 godzirra: i did this the other day http://pastebin.com/m6429cfc2 Nov 15 20:59:56 probably similar to what you want... the strange part is that List does not have a toArray method that simply returns an array of strings... Nov 15 21:00:11 but i haven't done java for a while so i may be missing something obvious :) Nov 15 21:00:25 List is already an array-like class, no? Nov 15 21:02:09 steve_k: thats kind of silly. I'm new to java, so I've no idea :) Nov 15 21:02:32 yes, but the ArrayAdapter takes a T[] and not a List :) Nov 15 21:02:40 steve_k: i'm guessing I must have smoething wrong with my layout. thats the only thing I can think of, becaus eI copied your code line for line and still had a null exception error. Nov 15 21:02:56 godzirra: try commenting out the setContentView line Nov 15 21:03:11 if you want to have a custom layout for your LIstActiviry Nov 15 21:03:13 the answer to my earlier Q is will autogenerate (in eclipse anyways) an R.id.somename to be used with findViewById Nov 15 21:03:31 you need to have a ListView in the layout with an id of "@android:id/list" Nov 15 21:04:20 Yeah, I do. Nov 15 21:04:22 * godzirra ponders. Nov 15 21:04:25 I still dont know what I'm doing wrong. Nov 15 21:04:31 Let me just paste real quick. Nov 15 21:04:38 you guys know if it's possible to get/set widget elements using their 'xml attribute' names? Nov 15 21:05:52 davidw: use findViewById to get a ref to a view by the id Nov 15 21:06:12 steve_k, no, I was thinking of something else: Nov 15 21:06:15 http://pastebin.com/m302345f1 is my java, http://pastebin.com/m63db16a0 is my xml Nov 15 21:06:39 android:background setBackground(int) Nov 15 21:06:47 a lot of widget/view things have stuff like that Nov 15 21:07:16 it would be cool if I could do setAttribute("android:background", new Integer(0xff0000)); Nov 15 21:07:42 can't you just call setBackground() on the view returned by findViewById Nov 15 21:07:43 ? Nov 15 21:08:13 well... yeah... but it involves a lot of reflection in my case Nov 15 21:08:42 godzirra: that code does not work? Nov 15 21:10:04 steve_k: nope. Nov 15 21:10:37 java.lang.NullPointerException Nov 15 21:10:41 godzirra: what does your file_list layoutlook like? Nov 15 21:13:01 http://pastebin.com/m63db16a0 Nov 15 21:14:03 now I'm getting a java.lang.ClassException Nov 15 21:14:10 Sorry, ClassCastException Nov 15 21:18:16 dunno what could be wrong Nov 15 21:18:40 * godzirra sighs. Nov 15 21:18:49 I could tar the whole directory and put it somewhere if you want to look at it? Nov 15 21:18:55 I've been trying to get this working for like 3 hours now :/ Nov 15 21:19:06 there is more than that 1 class? Nov 15 21:19:45 Nope. Nov 15 21:19:50 Just that 1 class and a file_list.xml Nov 15 21:20:03 Is there maybe something hanging around in eclipse or something that isn't getting cleared or recompiled or something? Nov 15 21:20:50 This is killing me. ;p Nov 15 21:21:49 godzirra: try adding a breakpoint on the class cast exception Nov 15 21:23:04 go to the debug view, click the breakpoints tab in the upper right box, then then J! button Nov 15 21:23:22 add a breakpoint for ClassCastException then debug your app Nov 15 21:23:37 I don't see a breakpoitns tab? Nov 15 21:24:33 you in the debug perspective? Nov 15 21:24:38 Yes Nov 15 21:25:00 I've got debug, variables, outline, the code window, and console/tasks at teh bottom Nov 15 21:25:11 Window menu -> Show View -> Breakpoints Nov 15 21:25:17 Thank you Nov 15 21:26:53 Ok, anytime I debug, it keeps flipping back to my eclipse and saying "Source not found. The jar file android.jar ahs no source attachment. You can attach teh source by clicking..." Nov 15 21:27:10 well, that's cuz google has not release all the source yet :) Nov 15 21:27:19 So thats normal? Nov 15 21:28:19 I think it stopped at my breakpoint regardless, though I'm not sure what to do now... Nov 15 21:29:25 well, what line is causing the problem? is it your code or in android.jar? Nov 15 21:30:48 In my debug window it says: DalvikVM[localhost:8604] .. next line says Thread[<3> Main] (Suspended (exception ClassCastException)) .. Next it says ArrayAdapter.createViewFromResource(int, View int) line 179 Nov 15 21:31:01 So I think its saying its dying in ArrayAdapter? Nov 15 21:31:42 i guess so? hard to tell Nov 15 21:31:45 without seeing it Nov 15 21:33:40 steve_k: http://test.jomamma.com/Screenshot.png Nov 15 21:34:54 which file was your file_list again? Nov 15 21:35:08 file_list.xml Nov 15 21:35:28 Sorry, that was ran in the FileList project (which is a direct copy of my project I'm working on with 0 changes) Nov 15 21:35:33 But I get the same error on both. Nov 15 21:35:38 I created a new project to see if there was any issues.. Nov 15 21:35:44 this is my item.xml -> http://pastebin.com/m694a003c Nov 15 21:36:23 o god android is a pain in the arse to develop for Nov 15 21:36:24 steve_k: doesn't that break it? because you don't have a listview? Nov 15 21:36:53 well there are two views involved.. the main one and the one that makes up the items in the list view Nov 15 21:36:58 Crap. Nov 15 21:37:01 Hrm. Nov 15 21:37:02 one sec. Nov 15 21:37:12 if you are using a ListActivity Nov 15 21:37:28 and you don't explicitly call setContetnView( Nov 15 21:37:29 ) Nov 15 21:37:30 but there's only one in the code? Nov 15 21:37:32 it has a defaut one Nov 15 21:37:41 how does it know what to use where? Nov 15 21:37:54 well, the one that you specify as an agrument to the ArrayAdapter Nov 15 21:37:58 R.layout.item Nov 15 21:38:01 in my case Nov 15 21:38:06 is the one used for each list row Nov 15 21:39:39 How does it know to use the one for the list? Nov 15 21:40:01 if item doesn't have the list view in it? Nov 15 21:41:03 well, the list view contains the items, right? Nov 15 21:41:28 is there an activity/Intent like OpenFileDialog type thing that returns a file location? Nov 15 21:41:28 In theory? But your item.xml (which is what you have used in your code) doesn't contain a list view? Nov 15 21:42:24 godzirra: the LIstActivity finds the list view in the "main" content view, and then it is your job to set up how that list gets filled with data Nov 15 21:42:40 But you don't have a list view in your "main" content view...? Nov 15 21:42:47 Lets back up a second... Nov 15 21:42:50 you have item.xml Nov 15 21:43:09 item.xml definitely does -not- contain a listview. Nov 15 21:43:20 In your code, the only layout you refer to is item...? Nov 15 21:43:20 can anyone here me? Nov 15 21:43:25 erus`: Yes. I just don't know. :) Nov 15 21:43:35 steve_k: is that all correct so far? Nov 15 21:43:39 hm Nov 15 21:44:19 godzirra: there are two layouts in my code Nov 15 21:44:30 R.layout.main and R.layout.item Nov 15 21:45:02 Ahh, I missed the content view. Nov 15 21:45:33 but you told me to comment out the content view? Nov 15 21:45:52 godzirra: right -- if you comment it out, you get a default one from the ListActivity Nov 15 21:46:13 presumably that is just a layout with a single ListView in it Nov 15 21:46:16 Ah. Nov 15 21:46:16 ko. Nov 15 21:46:17 ok. Nov 15 21:46:18 let me paste my main.xml... Nov 15 21:46:24 I don't know why mine isn't working then. Nov 15 21:46:35 http://pastebin.com/m7d2a3aa0 Nov 15 21:48:07 Yeah, but if I'm not using that it shouldnt matter. ( Nov 15 21:48:08 :( Nov 15 21:48:12 This is frustrating. Nov 15 21:49:06 what was in your list_item? Nov 15 21:49:13 er file_list Nov 15 21:49:14 ? Nov 15 21:49:51 http://pastebin.com/m31f24d8 Nov 15 21:51:44 godzirra: can you simplify it to use what mine has? just a single TextView? Nov 15 22:02:07 i miss how to use ActivityGroup Nov 15 22:16:08 hi Nov 15 22:16:29 Is there anywhere we could find the openCORE from packet video ? Nov 15 22:29:13 morning Nov 15 22:32:06 rwhitby: good morning Nov 15 22:32:33 when you wake up i go to sleep >:3 Nov 15 22:34:43 so no one out there could tell me where the OpenCore source is located ? Nov 15 22:51:53 Anyone here know why this attribute won't work? android:background="@drawable/blue" Nov 15 22:52:06 No matter what I add it to in my XML file it throws errors at it. Nov 15 22:52:25 heck, I'm copying a demo layout file :) Nov 15 22:53:32 FunnyLookinHat, i also had this issue Nov 15 22:53:40 think the xml editor just shows an error Nov 15 22:53:49 you copied it from the example? Nov 15 22:53:55 Well, because it's showing the error Eclipse won't run it : ( Nov 15 22:54:00 yap Nov 15 22:54:07 Yup! from this one http://code.google.com/android/samples/ApiDemos/res/layout/relative_layout_2.html Nov 15 22:54:11 jap Nov 15 22:54:47 no idea why, i could also did not get it runninng Nov 15 22:55:04 go figure :) Nov 15 22:55:44 ;) Nov 15 22:58:23 Is there a way to run a program from within the android emulator without sending it to eclipse every time? Nov 15 22:59:35 FunnyLookinHat, Nov 15 22:59:36 yes Nov 15 22:59:41 add the programm to menu Nov 15 22:59:54 and start it from the menu Nov 15 23:00:07 as you do when you start the browser in it Nov 15 23:00:32 Ahh ok Nov 15 23:00:43 like this here: Nov 15 23:00:57 http://www.android-portal.com/2007/11/14/custom-menu-entries-on-the-android-os/ Nov 15 23:02:18 ah sweet thanks :) Nov 15 23:02:26 yw Nov 15 23:08:26 are all the sourecs of Android availabe? Nov 15 23:10:30 key2, afaik they will release it in the future Nov 15 23:11:52 bye all Nov 15 23:16:32 oh Nov 15 23:16:42 so everything is not published yet Nov 15 23:19:05 what you're working with is technically a pre-release Nov 15 23:19:31 Has anyone seen jasonchen in a few days? Nov 15 23:19:50 he's probably actually working today Nov 15 23:20:55 FunnyLookinHat: and they announced a day for the release ? Nov 15 23:21:13 FunnyLookinHat: cuz they basically published the kernel, the application, but not the library Nov 15 23:21:26 FunnyLookinHat: and that's the part I wanted to work on Nov 15 23:30:47 key2: it's very disappointing, i agree. Nov 15 23:31:09 They're giving some excuse that makes me wonder if this plan to open-source the platform came as an afterthought. Nov 15 23:31:59 jasta: the thing is that in the library part, for example the media part, like openCORE, it says that it can decode/encode video with codecs like h263 h264 or AMR... all of them are under patent Nov 15 23:32:08 jasta: so I wonder how they license that Nov 15 23:32:58 woohoo! basic hecl reflection working Nov 15 23:34:43 jasta: that's why I come to think that all this part won't be released... Nov 15 23:46:27 hrm Nov 15 23:46:48 setfocusedtextcolor seems to be acting oddly... Nov 15 23:47:39 so does settextcolor for that matter Nov 16 00:00:46 Anyone find an example set of code for acting on button actions (onClick)? Nov 16 00:05:02 wow, cool, langpop.com works in the browser... it's based on some intense javascript and the canvas tag Nov 16 00:23:01 alright, well if anyone's interested, i've got a brainfuck interpreter working nicely on android Nov 16 00:24:52 bengl: now develop an api that allows brainfuck apps to integrate within the java environment ;) Nov 16 00:26:40 * davidw has hecl calling Button methods Nov 16 00:31:33 i wonder how much entry level software engineers get padi at google Nov 16 00:32:33 nbd: you mean so it can access the android java api? Nov 16 00:33:56 cause that's insane Nov 16 00:34:17 bengl: i think that was his point :) Nov 16 00:34:53 :) Nov 16 00:38:13 whats wrong with "startActivity(new Intent(Intent.CALL_ACTION));" - i get no activity found to handle action Nov 16 00:41:48 steve_k: Still around? Nov 16 00:51:46 godzirra: ya Nov 16 00:51:47 any luck? Nov 16 00:57:22 answer to above: a call action needs a URI. new Intent(Intent.CALL_ACTION, new ContentURI("tel:503")) Nov 16 00:58:03 the thing i like about making calls from the emulator is that everyone is home :) Nov 16 00:59:07 steve_k: Nah, I was hoping you had some brilliant idea by the time I got home :) Nov 16 00:59:20 sadly, I've got nothing. Nov 16 00:59:27 haha nah, i had to go do the work i was supposed to be doing Nov 16 00:59:37 hehe Nov 16 01:00:23 I'm really at a loss as to what I'm doing wrong. Nov 16 01:01:20 did you simply the view you were using for the list items? Nov 16 01:02:40 I havent done anything yet. I'm booting my laptop up now. Nov 16 01:05:31 simplify it how? Nov 16 01:05:47 Its pretty simple now ;) Nov 16 01:05:59 The listviews each just have an id, a layout_width and a lyaout_height Nov 16 01:06:05 Well the one listview, and the one textview. Nov 16 01:07:50 godzirra: do you have an updated pastie? Nov 16 01:07:56 Nope. give me one second and I will. Nov 16 01:09:31 http://pastebin.com/m4cfbfed6 Nov 16 01:10:30 all 3 files are in that pastie, if it wasn't obvious :) Nov 16 01:11:27 setListAdapter(new ArrayAdapter(this, R.layout.main, s.toArray(strings))); Nov 16 01:11:33 wouldnt that be R.layout.filelist? Nov 16 01:12:37 Hmm... I'm not sure. Let me try that. (I'm pretty sure I've tried that before too. Nov 16 01:13:25 you don't want to use R.layout.main for the list item view Nov 16 01:13:31 that is the main view that contains the list Nov 16 01:13:45 That still gives me the error "An error has occured in process com.google.android.hello. java.lang.ClassException. " Nov 16 01:13:45 the view you pass to the array adapter should be simple, like a single textview Nov 16 01:13:54 a textview? Nov 16 01:13:57 I thought I needed a listview? Nov 16 01:14:10 Wait... Nov 16 01:14:12 do you know HTML? Nov 16 01:14:14 my main -is- a single text view. Nov 16 01:14:17 Yes. Nov 16 01:14:23 ok so imagine the main view as the html page Nov 16 01:14:34 it has a