**** BEGIN LOGGING AT Tue Apr 08 02:59:56 2008 Apr 08 03:00:54 michaelnovakjr: even with blocking out all that code for the contacts, my app stil lwont run Apr 08 03:01:33 hmmm, did your log output change at all? Apr 08 03:03:01 it seems to be going crazy now, I'm going to do some more testing Apr 08 03:03:13 sudoer: are you doing any network accesses? Apr 08 03:03:43 yes, there is some network access involved, but that is running in its own thread via services, so not sure why my app would get affected Apr 08 03:04:16 activity not responding happens when the system adds an event to your app's event queue, and you don't clear it within 5 seconds Apr 08 03:04:33 I'm getting repeats of this error: W/ActivityManager( 859): Timeout of broadcast BroadcastRecord{401ae348 android.intent.action.PHONE_STATE} Apr 08 03:04:33 so, something is blocking for longer than 5 seconds Apr 08 03:04:33 W/ActivityManager( 859): Receiver during timeout: ResolveInfo{401ae1a0 com.sanbit.android.mystats.CallPopupIntentReceiver p=0 o=0 m=10000} Apr 08 03:04:57 but the only thing that intentreceiver does is run this line: Log.d(LOG, "Starting app..."); Apr 08 03:05:26 isn't it Log.d("LOG", "Starting app..."); ? Apr 08 03:05:36 unless that's a variable Apr 08 03:05:48 yes, private static final String LOG = "callPopupIntentReceiver"; Apr 08 03:12:28 neat Apr 08 03:12:33 that's an error from the Dalvik optimizer Apr 08 03:12:54 did I miss anything? my connection was lost again Apr 08 03:13:28 jtoy: are you using third-party libraries? Apr 08 03:13:32 like, including a jar? Apr 08 03:13:37 I dont get any errors when i disable the network code, but my app still freezes Apr 08 03:13:48 no, all the code is in the android sdk Apr 08 03:14:22 what is the signature of the function you are calling? Apr 08 03:14:27 the one that hangs Apr 08 03:15:12 umm, I don't se in the logs where is says the function, let me past it, hold on a sec Apr 08 03:15:53 see if 'adb bugreport' gives you any additional info Apr 08 03:17:03 wow, adb bugreport prints out a lot of stuff Apr 08 03:17:16 here is the adb logcat: http://pastie.org/176994 Apr 08 03:18:31 iwpta "adb lolcat" Apr 08 03:23:06 logcat is log Apr 08 03:23:59 the logfile doesnt show me anything thing helpful :( Apr 08 03:24:29 what is the name of the default window background? (grey with lines) Apr 08 03:25:41 and my cpu goes to 100% when my app doesnt load Apr 08 03:29:05 what the hell is a Matrix. how flexible is this system for animations? Apr 08 03:29:35 jtoy: was that adb logcat, or adb bugreport? Apr 08 03:29:46 adb logcat Apr 08 03:29:53 wow Apr 08 03:30:08 and you say this happens only on one computer? Apr 08 03:30:33 yes, but i have ran a wipe data Apr 08 03:30:54 so i dont know how to fix this at all since I need to code and test on my own computer Apr 08 03:33:31 it just started happening all of a sudden yesterday, so i've been writing code, but am not able to test it Apr 08 03:37:09 so the same code runs on a different computer? Apr 08 03:37:20 yes Apr 08 03:37:35 are you loading classes explicitly? Apr 08 03:37:39 jasta, a matrix (from linear algebra) is a linear mapping of a function. you can use it in graphics to map one point to another, for the entire coordinate space. Ex. I could use a matrix to move an image left, or to rotate it Apr 08 03:38:03 mickrobk: uhm. Apr 08 03:38:06 seriously? :) Apr 08 03:38:09 morrildl: what do you mean? i import classes, and I also do startService(this,ClassName); Apr 08 03:38:26 jtoy: I mean loading a class by name via Class Apr 08 03:38:33 reflection basically Apr 08 03:38:43 no, I am currently not using any reflection Apr 08 03:39:07 fire up 'adb shell' and then 'cd /data/app' Apr 08 03:39:12 jasta: how's the scrolling performance on that album listview? Apr 08 03:39:13 and do 'ls' and see what's in there Apr 08 03:39:29 zhobbs: not great. Apr 08 03:39:37 same here Apr 08 03:39:45 you have a music player also? Apr 08 03:40:03 jasta: before u draw on a canvas, try doing canvas.translate(50,50), that changes the matrix of the canvas so that everything u draw on it will be moved down and right 50px Apr 08 03:40:29 jasta: yeah..for tunewiki.com Apr 08 03:40:36 mickrobk: that's not at all what i was asking about :) Apr 08 03:40:43 morrildl: ApiDemos.apk and mystats.apk Apr 08 03:41:12 try doing 'rm mystats.apk' and then reinstalling Apr 08 03:41:33 specifically, how would I change colors in the matrix? what is the structure here? Apr 08 03:41:45 (not that I think that will help since you already did a -wipe-data) Apr 08 03:41:55 wtf, that fixed it Apr 08 03:42:14 er, neat Apr 08 03:42:15 doesn't -wipe-data clean out the emulator? Apr 08 03:42:21 It is supposed to :) Apr 08 03:42:27 which SDK version? Apr 08 03:42:29 morrildl: rthanks Apr 08 03:42:33 m5, the latest one Apr 08 03:42:36 okay Apr 08 03:42:42 damn, now I wish I'd had you keep that .apk Apr 08 03:42:54 that error was basically saying you had a corrupt apk Apr 08 03:42:58 morrildl: I'm sure its happen again :) thanks though! Apr 08 03:43:08 but in some insidious way that I've never seen before Apr 08 03:43:13 ha ha, np Apr 08 03:43:16 happy hacking Apr 08 03:44:38 jasta: what the hell is a Matrix. how flexible is this system for animations? << ? Apr 08 03:45:08 i thought animations relied on a Matrix Apr 08 03:45:16 They do Apr 08 03:45:21 Actually they rely on a Transformation Apr 08 03:45:27 which is a Matrix + stuff Apr 08 03:45:27 romainguy: how do I interact with this? how could i, say, animation with a shader? Apr 08 03:45:37 romainguy: just one? Apr 08 03:45:48 morrildl: as a matter of fact, yes :) Apr 08 03:45:48 animate* Apr 08 03:45:55 just create an AlphaAnimation that will give you a number between 0 and 1 Apr 08 03:46:02 then use that to modify your shader Apr 08 03:46:09 that's what progress bar does in indeterminate mode Apr 08 03:46:42 romainguy: how's that work? obviously you can merge say a rotation and a translation into a single matrix, but if you apply that one matrix over and over again you aren't necessarily going to converge your animation to a useful end state Apr 08 03:46:43 so I don't need to futz with the Matrix at all for that? Apr 08 03:46:59 jasta: not at all Apr 08 03:47:05 ahh, ok then :) Apr 08 03:47:07 the Matrix is just for 2d and 3d transformations Apr 08 03:47:18 why an AlphaAnimation though? Apr 08 03:47:27 morrildl: the matrix is supposed to be clobbered on every frame of every animated child Apr 08 03:47:39 jasta: becase it simply interpolate a number between X and Y Apr 08 03:47:41 romainguy: oh Apr 08 03:47:44 and that's the basis of all animations Apr 08 03:47:48 romainguy: oh, ok. Apr 08 03:47:56 romainguy: you meant one matrix allocation in memory Apr 08 03:47:58 you could create your own custom animation Apr 08 03:48:03 but alphaanimation is there so... Apr 08 03:48:11 morrildl: yes, just teasing you back :) Apr 08 03:48:18 romainguy: ahh :) Apr 08 03:51:16 @thattalldude glad to follow you. happy tweeting! Apr 08 04:01:16 oh oh Apr 08 04:01:23 my bad! Apr 08 04:02:20 R isn't generating....... Apr 08 04:02:33 I deleted it to force it to regen and it's not happening Apr 08 04:02:44 project -> clean Apr 08 04:03:17 not working Apr 08 04:03:31 Press F5 on the project. Apr 08 04:03:52 If it still isn't working: check the problems list for a resource error. Apr 08 04:04:49 yeah I did that the other day Apr 08 04:04:58 I started harassing Xav about it Apr 08 04:05:11 turned out I had another stupid error earlier in y project that was canceling the build before it even ran aapt Apr 08 04:05:13 hehehe Apr 08 04:05:33 doh, was an error in the manifest :( Apr 08 04:24:25 neat, my animation works. Apr 08 04:24:39 zhobbs: i think youre gonna like this effect i've just accomplished :) Apr 08 04:27:16 jasta: lemme see Apr 08 04:27:28 not in a position to show it just yet. soon :) Apr 08 04:27:40 i'm finishing up another part of my app so i can record a video of the whole thing :) Apr 08 04:28:15 soon is right...we have 1 week + 2 1/2 hours Apr 08 04:28:20 hehe ;) Apr 08 04:28:44 i am seriously going to be working like 6 hours every night until then :) Apr 08 04:28:49 and i didnt even procrastinate! Apr 08 04:29:25 there was a thread on the mailing list about how many hours everyone put into their projects, was pretty surprised Apr 08 04:29:33 lots of people claiming 300-500 Apr 08 04:29:37 link? Apr 08 04:29:40 Sometimes trolls are too easy to predict Apr 08 04:29:51 i would suppose i put in about 2 hours avg per day for 3 months. Apr 08 04:30:11 http://groups.google.com/group/android-challenge/browse_thread/thread/53ec4021cf97cd1c Apr 08 04:30:49 yeah that's a lot of hours Apr 08 04:30:58 so i guess my number would be about 180. Apr 08 04:30:59 I couldn't even estimate...2 ADC projects + helloandroid.com Apr 08 04:31:09 but this was my full time job Apr 08 04:31:15 I wonder at which point the man-hours spent by people developing apps *for* android surpasses the man-hours spent developing Android itself Apr 08 04:31:16 really? not me. Apr 08 04:31:33 morrildl: With any luck, soon. Apr 08 04:31:37 jasta: indeed :) Apr 08 04:31:42 one of those unknowable statistics tho Apr 08 04:31:47 probably already happened Apr 08 04:32:03 zhobbs: check this out Apr 08 04:32:18 zhobbs: hmmm.... it's possible that it has. Hard to tell though Apr 08 04:32:35 $ perl -lwe 'my $c = 0; while (<>) { s/\S//g; $c += length; }; print $c;' $(find libsyncml-java/ five-music/ five-client/ five-server/ -name "*.[ch]" -or -name "*.java" -or -name "*.xml" | grep -v Base64.java) Apr 08 04:32:39 73421 Apr 08 04:33:06 number of non-space characters in my source :) Apr 08 04:33:24 what's the Base64.java thrown in there? Apr 08 04:33:31 zhobbs: I didn't write Base64.java ;) Apr 08 04:33:35 hahahahahaha Apr 08 04:33:42 hahaa....that's great Apr 08 04:33:47 you could have taken credit :) Apr 08 04:33:51 oh goodness Apr 08 04:33:52 that would be unfair :) Apr 08 04:34:22 that, btw, was run after mvn clean, so there should be no autogenerated crud :) Apr 08 04:34:40 15927 lines, but I [heart] whitespace. Apr 08 04:35:03 you exclude R.java? and aidl generate java files? :) Apr 08 04:35:05 my project is absolutely huge, anyway. i suspect by the time it releases to handsets it will be 3 times this since. Apr 08 04:35:13 zhobbs: my clean targets delete them, so yes. Apr 08 04:35:19 ahh Apr 08 04:35:37 hmm Apr 08 04:35:46 this size*, i meant. Apr 08 04:35:52 * morrildl had been expecting a "Google App Engine + Android == Crazy Delicious" post by now Apr 08 04:36:27 i am going to start a new campaign to murder anyone using pseudomathematic gibberish. Apr 08 04:36:33 * jasta glares at morrildl Apr 08 04:37:01 wow, I thought you just had it in for using pseudocode to mark up real life Apr 08 04:37:17 no, in fact, that is less annoying by contrast :) Apr 08 04:37:20 jasta Apr 08 04:37:57 the this + that = whatever bugs me because the verb "to be" is fundamentally incompatible with "equals", and in fact differs from langauge to language. Apr 08 04:38:05 sounds good jasta :P Apr 08 04:38:14 i just discovered Google App Engine myself Apr 08 04:38:18 jaiku is moving to it first Apr 08 04:39:13 cool, I didn't know that Apr 08 04:39:58 As a former GE-er, I do have to say that the GAE logo looks like a GE-90 Apr 08 04:40:20 you're not talking about GE Aerospace engines are you? Apr 08 04:40:50 heh Apr 08 04:40:56 GE-90 is a commodity engine for widebody aircraft Apr 08 04:40:56 No, that's Lockheed Martin now Apr 08 04:41:04 right Apr 08 04:41:21 the logo for Google App Engine looks like a GE-90 in nacelle with fins welded on Apr 08 04:41:39 HAHAHA Apr 08 04:41:44 yes Apr 08 04:42:18 i totally love the logo! Apr 08 04:42:45 that's a very exciting project, actually Apr 08 04:47:39 jasta: what, the GE-90? Apr 08 04:47:48 uhh, no Apr 08 04:47:52 Google App Engine Apr 08 04:47:57 re Apr 08 04:48:05 oh, right :) Apr 08 04:52:57 woah Google App Engine Apr 08 04:53:10 totally missed it.. my day starts late anyways Apr 08 04:54:08 was looking at amazon for hosting my mobile search engine Apr 08 04:54:16 now may be google app engine.. lets see Apr 08 04:58:00 python, what?? Apr 08 04:58:08 muthu: It only launched less than an hour ago, so you aren't late :) Apr 08 04:58:23 hmmm python :) Apr 08 04:58:38 morrildl: yeah techcrunch was breaking news yesterday Apr 08 04:58:54 mmmmmmmmmm, pyyyyyyyyython Apr 08 04:59:02 haha Apr 08 04:59:09 when you support java? Apr 08 04:59:23 doh! python... Apr 08 04:59:26 people complain that Android is in Java Apr 08 04:59:35 and now people will complain that GAE is in Python Apr 08 04:59:39 Sorry sorry -- for Jasta's benefit: mmmmmmmmmmmmm pyyyyyyyyython Apr 08 04:59:39 you can't please everyone Apr 08 04:59:43 ok, when PHP? Apr 08 04:59:44 people should start just learning stuff :)) Apr 08 04:59:59 yes, sometimes I think that is our greatest contribution: we force developers to learn new stuff to use our crap ;) Apr 08 05:00:11 lol Apr 08 05:00:17 i was all for learning new languages Apr 08 05:00:30 but lately i'm wise enough to stick with what i know already Apr 08 05:01:39 whenever I start to get cranky about kids these days and their fancypants new toys, I know it's time to learn a new language Apr 08 05:01:54 next up is Scala once I have some time :P Apr 08 05:02:01 morrildl: Guido must be happy about GAE :) Apr 08 05:02:06 I know Apr 08 05:02:18 scala on android would be awesome Apr 08 05:02:24 i'm going to wait until you support PHP Apr 08 05:02:27 jtoy: it works already Apr 08 05:02:43 and Java on GAE Apr 08 05:02:46 jtoy: yeah, we've been working with....... ugh, I can never remember his name Apr 08 05:02:46 right, but i wouldnt want to build my app for the contest in it quite yet Apr 08 05:03:07 morrildl: Martin Odersky? Apr 08 05:03:13 romainguy: yes Apr 08 05:03:25 I should just call him Mr. O, that's all I can ever remember Apr 08 05:03:37 cool, i wonder if anyone will actually submit an app built wth scala, the binaries are huge Apr 08 05:03:40 morrildl: I jut remember the name from Dick's podcast :) Apr 08 05:03:53 jtoy: we would have no way of knowing :) Apr 08 05:14:49 well, bedtime Apr 08 05:14:50 night all Apr 08 05:19:10 good night morrildl Apr 08 05:25:45 appengine.google.com is creating quite a stir Apr 08 05:42:55 donomo: how so? Apr 08 05:44:07 muthu: because its packed with awesomeness Apr 08 05:44:42 donomo: :) Apr 08 05:44:56 nice name Apr 08 05:45:45 nothing special imho Apr 08 05:45:45 just a python-based hosting platform Apr 08 05:45:45 every high school kid runs one of these out of his basement Apr 08 05:45:45 well Apr 08 05:45:45 with clustering and all that Apr 08 05:45:46 that's it Apr 08 05:46:03 a document-style (not relation) data store Apr 08 05:46:10 s/relation/relational/ Apr 08 05:46:10 donomo meant: a document-style (not relational) data store Apr 08 05:49:05 nothing revolutionary about that Apr 08 05:49:05 it's more like being able to use google's distributed acrhitecture Apr 08 05:49:05 which i fancy not a lot of people do Apr 08 05:49:05 at least fly by the night .com operations Apr 08 05:49:05 not even small businesses Apr 08 05:49:24 but realistically, who has compute farms lying around? :) Apr 08 05:49:29 google, and a few others Apr 08 05:49:51 and the architecture has proven to be quite scalable :) Apr 08 05:51:06 yeah i love the KISS commodity (free) stuff concept Apr 08 05:51:06 "throw hardware/resources at the problem to make it go away" Apr 08 05:57:45 Predict your winners here: http://groups.google.com/group/android-challenge/t/9687dfffb684f06d Apr 08 05:57:57 have some fun, will ya ;) Apr 08 05:58:18 lol Apr 08 05:58:33 jasta: you've been named! Apr 08 05:59:22 i like your prediction :) Apr 08 05:59:39 i know, you'll love it ;) Apr 08 05:59:39 45 to go muthu :) Apr 08 05:59:49 hope others will fill in Apr 08 06:00:05 f00f: go ahead and list yours Apr 08 06:00:10 will be interesting to watch Apr 08 06:01:25 you make it sound as if jasta will win, regardless of the app he submits :P Apr 08 06:01:25 you're only working on the media player right? :) Apr 08 06:01:39 yeah its a biased list Apr 08 06:02:04 tbh, i only focus on mine, i haven't kept up much with others Apr 08 06:02:28 i had too much of free time, lol Apr 08 06:03:09 you know what's funny Apr 08 06:03:09 only a few of us in here talk Apr 08 06:03:09 lots of lurkers Apr 08 06:03:09 i wouldn't be surprised if more lurkers win than us active users Apr 08 06:03:29 lurkers are actually coding instead of talking Apr 08 06:03:44 so yup, will not be surprising if they win Apr 08 06:04:15 i can confirm that i had spend more than 50% of time, chatting, tweeting etc., than coding Apr 08 06:05:56 hahaha Apr 08 06:06:12 i have relatively few commits in SVN but lots of code changes Apr 08 06:06:47 you don't commit atleast once a day? Apr 08 06:07:21 Total Line Count: 5087 Apr 08 06:07:21 Total Files Processed: 24 Apr 08 06:07:50 size should not matter, i guess Apr 08 06:08:03 i'll be very interested in the winners Apr 08 06:08:13 see who wins, and how google is judging Apr 08 06:09:00 i think commits are important Apr 08 06:09:07 it makes reverting changes easier Apr 08 06:09:25 no, i commit every few days Apr 08 06:09:25 i try to do every day Apr 08 06:09:25 but sometimes i have not finished Apr 08 06:09:25 and i have a tester Apr 08 06:09:25 so i dont want to give incomplete code Apr 08 06:09:47 michael: agree commits are important Apr 08 06:10:01 i commit when i have something working Apr 08 06:10:03 f00f: you have a tester? wow! Apr 08 06:10:17 i can say i have 50 revisions in SVN Apr 08 06:10:34 how long have you been working on it? Apr 08 06:11:25 50 diff version of the app :D Apr 08 06:11:37 no not me Apr 08 06:11:38 i code Apr 08 06:12:01 but i make it easy for others to test live SVN code Apr 08 06:12:01 i know you are not a tester, but you have a tester for your app? Apr 08 06:12:20 yeah, nothing official Apr 08 06:12:28 f00f: is it open? Apr 08 06:13:09 just people that are part of the team, reviewing the app, and doing content Apr 08 06:13:09 reading this android-challenge forum is so exciting Apr 08 06:13:09 to find out what people are worried/concerned about Apr 08 06:13:21 muthu: closed-source unfortunately Apr 08 06:13:37 ok Apr 08 06:13:44 you could say it's half of google maps with a twist Apr 08 06:13:58 what's the twist? Apr 08 06:14:19 everyone doing LBS.. that i know Apr 08 06:15:42 let's just say... Apr 08 06:15:42 we are using GTFS :) Apr 08 06:15:50 GTFS? Apr 08 06:16:04 give me a rough idea Apr 08 06:16:21 http://code.google.com/transit/spec/transit_feed_specification.html Apr 08 06:16:41 ok.. got it Apr 08 06:17:04 looks like i need to list your name :)) Apr 08 06:17:26 there i've said too much already Apr 08 06:17:41 lol, don't worry Apr 08 06:17:51 you've said nothing Apr 08 06:18:15 my app is more of a showcase of what we can do Apr 08 06:18:21 oops, made 800dip instead of 80.. and my button is sooooo wide! Apr 08 06:18:40 i'm getting an idea Apr 08 06:18:47 so you are taking the feeds, and mapping it Apr 08 06:19:43 as in, one example of LBS Apr 08 06:19:43 not just a google maps/navigator clone Apr 08 06:19:43 since i figured Apr 08 06:19:43 there is already a Maps application bundled with Android Apr 08 06:19:44 that does directions, etc. Apr 08 06:19:46 no need to duplicate Apr 08 06:19:48 i've also got some GTalk functionality, but i wonder if the judges will even have GTalk accounts to test with Apr 08 06:19:50 plus it makes everything sluggish Apr 08 06:19:52 eg. sharing your location with your contacts Apr 08 06:19:54 hehe Apr 08 06:20:10 muthu: i'd love to elaborate once we are closer to next week :) Apr 08 06:20:17 the judges will not create GTalk accounts Apr 08 06:20:31 f00f: yeah i would love to hear Apr 08 06:21:07 or may be they will.. i remember dan explaining the judges can create gtalk accounts if they need to Apr 08 06:21:39 i know, i'm secretive :X Apr 08 06:22:08 well regardless, it's a small part of my app.. just sharing your location and seeing others' locations on the map Apr 08 06:22:24 its like elimatta Apr 08 06:22:28 location based blogging Apr 08 06:22:51 f00f: yes, LBS is a good place to be Apr 08 06:23:06 nothing special really Apr 08 06:23:26 muthu: yeah, but a LOT of players in this arena right now Apr 08 06:23:32 yes Apr 08 06:23:55 elimatta, rummble, myloki, friendfinder, routefinder, taxifinder... ;) Apr 08 06:24:17 cellfinder, dogfinder.. wifefinder.. lol Apr 08 06:24:24 among the public ones :) Apr 08 06:24:43 there's a huge demand Apr 08 06:25:01 who ever fills in first, will be the lucky one Apr 08 06:25:55 well i think there can be different types of LBS apps Apr 08 06:25:58 some generic, some specialized Apr 08 06:26:33 yes, most of them would be specialized Apr 08 06:26:48 based on location, you want to do specific things Apr 08 06:27:35 right Apr 08 06:28:33 morning davidw Apr 08 06:29:44 ok time to start coding again Apr 08 06:30:23 'morning Apr 08 06:31:17 top of the mornin' to ya Apr 08 06:31:59 david how's your app humming? Apr 08 07:22:36 muthu, ok Apr 08 07:22:47 Hecl works well enough that I'm actually doing a second app, for a client, with it Apr 08 07:23:52 wow, cool. Apr 08 07:24:17 what's your thought on python for GAE? Apr 08 07:28:14 sucks that its only python Apr 08 07:34:05 i was wondering how you would save an image to database... Apr 08 07:35:03 I am trying to make a simple photo taking application, that takes pictures, shows in a gallery right in the bottom.. kinda confused Apr 08 07:38:52 jtoy: python only is a big constraint.. hope they become language neutral real soon. Apr 08 07:39:23 blackbird: look in the content provider docs Apr 08 07:39:47 it almost gives me an excuse to program in python again Apr 08 07:40:11 heh Apr 08 07:41:37 i am assuming the worst case scenario during juding Apr 08 07:41:37 -- that my server is down Apr 08 07:41:37 so going to great pains to pre-load data Apr 08 07:43:58 f00f: preloading the data is the smart choice Apr 08 07:44:47 you think i should do it as a failover, or just use it as default? Apr 08 07:45:18 muthu, i tried saving to the default MediaStore.Images.Media file, the problem is that it tries by default to save at /data/images/ which doesn't exist Apr 08 07:45:38 blackbird: haven't tried saving images myself Apr 08 07:46:32 muthu, I hadn't done it in a while, forgot that I had made the folder in my old installation, wasted considerable time Apr 08 08:06:27 where are the docs that go over building a gui programatically? Apr 08 08:06:48 i cant find the official docs that talk about this, I only need this for one part of the app Apr 08 08:11:21 python's a nice language Apr 08 08:11:28 but I use ruby these days Apr 08 08:38:44 is it possible to "reverse" progressbars, like they went from right to left? Apr 08 09:07:11 can we use third party packages that use java.io in android? Apr 08 09:13:47 yes Apr 08 09:14:16 Hai-Fai: yes, but due to ProgressBar having certain things being hardcoded it would take a bit of work. Apr 08 09:16:00 so android supports the full java jdk/jre? Apr 08 09:16:33 no, but a very large portion of it. Apr 08 09:16:53 Android uses Harmony, and its limitations are closedly related to it. Apr 08 09:18:31 is there a list of supported packages? or do we just have to try it? :P Apr 08 09:18:38 yes, there is. Apr 08 09:19:03 see Android's documentation; if you find documentation for the class you're looking for, Android supports it. Apr 08 09:24:29 okay I wasn't sure if all supported packages were listed Apr 08 09:25:05 jasta: is color also hardcoded into progressbar? would be nice feature to change it.. Apr 08 09:25:32 Hai-Fai: no. the progress bar is made up of a stretching, tileable bitmaps. Apr 08 09:25:37 the horizontal one anyway. Apr 08 09:25:48 you could change it easily Apr 08 09:27:19 oh okay, just haven't found it, but thanks Apr 08 09:28:21 do you know where you're looking? Apr 08 09:28:36 it won't be readily apparent in the docs ;) Apr 08 09:29:58 well I've tried through methods, but haven't seen any "setColor" or whatever Apr 08 09:30:57 you won't, either. Apr 08 09:31:03 since as i said, they are bitmaps. Apr 08 09:31:25 can you override CursorAdaptor's getView like you can di with ArrayAdaptor? the docs dont say so Apr 08 09:31:36 Hai-Fai: http://devtcg.blogspot.com/2008/03/tool-to-read-android-binary-xml-files.html -- download the tarball Apr 08 09:31:49 look in framework-res/res/drawable/progress* Apr 08 09:32:14 jtoy: Yes, though you should probably use SimpleCursorAdapter and a ViewBinder. Apr 08 09:32:17 damn am I tired Apr 08 09:33:25 ok, I have not use ViewBinder before Apr 08 09:34:23 then that is almost certainly what you are looking for Apr 08 09:35:49 do you guys know of any example code for ViewBinder, I cant find any Apr 08 09:35:52 hm okay, have to spend some time on that Apr 08 09:35:56 thank jasta Apr 08 09:36:14 thanks.. Apr 08 09:36:45 jtoy: It's very simple. Just read the API changes from M3 to M5 for a brief description Apr 08 09:42:06 blah, I guess im retarted, I'm still not sure how to use it Apr 08 09:42:34 hehe Apr 08 09:44:27 hm about those bitmaps, I'm not sure, but it's possible to use android's xy thing to change color or whatever? maybe with paint? Apr 08 09:44:57 your heads in the wrong area; the only way you're gonna get it to work is with a bitmap. Apr 08 09:45:21 I'm telling you: the progressbar is hardcoded to use a layer list drawable. anything else will require you re-invent everything :) Apr 08 09:45:29 k Apr 08 09:45:43 the layout files i pointed you to will help you replace those bitmaps Apr 08 09:45:49 so I have to draw with "paint program xy [photoshop]" a new bitmap? Apr 08 09:46:02 I think I'm a retard also :D Apr 08 09:46:05 if you want Apr 08 09:46:20 so there's another way? Apr 08 09:46:28 i'm sorry, i'm tired. Apr 08 09:46:33 no problem Apr 08 09:46:43 just trust me; you don't want to mess with this unless you really know what you're doing. Apr 08 09:46:52 okay Apr 08 09:47:17 i have discovered all this by reverse engineering the layout XML files and studying them, and also decompiling ProgressBar.class itself. Apr 08 09:47:30 unless you want to go through that much trouble, i suggest you just drop it :) Apr 08 09:48:01 that said, i do understand how it works now, and would be capable of replacing its visuals. Apr 08 09:48:37 okay Apr 08 09:48:39 shame Apr 08 09:48:59 hai-fai: if you need to replace the bar image, create a drawable Apr 08 09:49:15 and then follow the progress bar example that jasta had shown you Apr 08 09:49:23 no, not just a drawable; use a layer list background with bitmaps only. if you don't, you will be surprised. Apr 08 09:49:31 =) Apr 08 09:49:53 ok, yes use a layer list background with bitmaps only!! :) Apr 08 09:49:56 well have to focus on that later, thanks to pointing me to right direction Apr 08 09:50:12 trust me; it is hardcoded to work well only with a layer list background with bitmaps. Apr 08 09:50:13 g2g now, bye Apr 08 09:50:29 anything else will require you entirely re-implement the way it draws. Apr 08 09:50:59 you can override the draw() if you want Apr 08 09:51:26 yeah, but that is kind of what i meant by reimplemting it yourself :) Apr 08 09:51:34 yup Apr 08 09:51:39 you could use a level list drawable as well, but it would be painful. Apr 08 09:52:12 yeah i'm just going with the defaults wherever possible Apr 08 09:52:23 no point in tinkering with a changing sdk Apr 08 09:53:11 you know, the more i learn about androids UI toolkit, the more i am amazed. it's more sophisticated than most toolkits i've encountered even for the desktop. Apr 08 09:53:34 i started looking at designing my own progress bar visuals until i realized i could do something even cooler with less work Apr 08 09:53:49 cool! Apr 08 09:54:10 i like the way you customize with xml Apr 08 09:54:19 if only its open and documented.. Apr 08 09:54:21 i basically made a ProgressTextView, that paints the text in a TextView like it was transparent through to a progress bar Apr 08 09:54:36 muthu: well, i did my part to make it more open :P Apr 08 09:54:47 jasta that helped :) Apr 08 09:55:05 huh, jasta could you show me a small sample? Apr 08 09:55:29 jtoy: of what? Apr 08 09:55:44 of ViewBinder Apr 08 09:56:43 sure Apr 08 09:56:51 i'll spoon feed you :) Apr 08 09:57:36 SimpleCursorAdapter adapter = new SimpleCursorAdapter(..., new String[] { "title" }, new int[] { R.id.title }); Apr 08 09:57:47 adpater.setViewBinder(new SimpleCursorAdapter.ViewBinder() { Apr 08 09:57:58 public boolean setViewValue(View v, Cusror c, int col) { Apr 08 09:58:31 TextView tv = (TextView)v; Apr 08 09:58:43 String title = c.getString(col); Apr 08 09:59:03 if (title.equals("") == true) { tv.setText("(No Title)"); } Apr 08 09:59:09 else { tv.setText(title); } Apr 08 09:59:21 return true; // indicate that you set the text Apr 08 09:59:22 } Apr 08 09:59:22 } Apr 08 09:59:24 ); Apr 08 09:59:49 May 6.. woah Apr 08 10:00:04 taht is a practical example demonstrating both why and how to use a viewbinder Apr 08 10:00:10 muthu: i'm skeptical... Apr 08 10:00:19 it will happen Apr 08 10:00:28 Google is pushing hard Apr 08 10:00:33 they have a lot to prove Apr 08 10:00:55 right, but this is just a rumor Apr 08 10:01:23 although, do note that the date May 6th is significant because it is 1 day after the ADC specifies qualifying prize winners. Apr 08 10:01:33 yeah! Apr 08 10:01:41 its happening.. i'm so excited Apr 08 10:02:16 i would love to see a device before june Apr 08 10:02:36 i really don't think you're gonna see a commercially available device so soon. that would not make any sense. Apr 08 10:02:51 the rumor is just about the unveiling of details about the device that will eventually hit Apr 08 10:02:56 not commerical, but a developers device at the least Apr 08 10:03:05 perhaps we will see that, y es. Apr 08 10:03:14 phase 2 requires a device Apr 08 10:03:25 i actually suspect that Google is or has considered offering all of the winners a prototype handset Apr 08 10:03:38 that just makes sense, really Apr 08 10:03:41 yeah, why not Apr 08 10:03:44 they will for sure Apr 08 10:03:52 don't get your hopes up :) Apr 08 10:04:16 you are the insider, so i'll blindly believe you :-D Apr 08 10:04:27 i am? Apr 08 10:04:32 (jasta, secretly works for google) Apr 08 10:04:37 lol Apr 08 10:04:58 if i worked for Google, i wouldn't be pouring all my time into a contest i was ineligible to win :) Apr 08 10:05:15 that's the trick you are playing Apr 08 10:05:20 so we can't find out Apr 08 10:05:22 hehe Apr 08 10:10:34 yay, got my streaming hack working. Apr 08 10:12:56 undercover google agent Apr 08 10:14:01 hehe, i wanted to make sure the judges knew why my app stutters twice every time you play a song: Apr 08 10:14:05 D/PlaylistService( 843): Engaging streaming hack (THIS IS NECESSARY DUE TO ANDROID BUGS!) Apr 08 10:15:05 jasta: one question about your code, why do you create a second SimpleCuroAdapter shouldnt you bind to the one you already created? Apr 08 10:15:17 jtoy: what? Apr 08 10:15:27 when did i create a second cursor adapter? Apr 08 10:16:03 SimpleCursorAdapter adapter = new SimpleCursorAdapter(..., new String[] { "title" }, new int[] { R.id.title }); Apr 08 10:16:12 adpater.setViewBinder(new SimpleCursorAdapter.ViewBinder() { Apr 08 10:16:18 oh I see, duh, sorry Apr 08 10:16:24 sorry,i've been coding all day Apr 08 10:16:24 yes, i see that i'm creating 1. Apr 08 10:17:04 yes, I see, thank you for spoon feeding :) Apr 08 10:17:30 you only get one :) Apr 08 10:18:04 hehe Apr 08 10:20:02 i'm practically going to have to throw this entire PlaylistService out once they fix all these MediaPlayer issues Apr 08 10:20:10 it's 600 lines and i bet 300 of that is wokring around bugs Apr 08 10:24:54 painful indeed Apr 08 10:27:30 jasta, I would hope that handsets would go to more than winners as a sort of consolation prize, at some point in the future Apr 08 10:27:49 I doubt that anyone will get one before actual phones ship though Apr 08 10:28:02 davidw: honestly, i doubt that as well Apr 08 10:28:10 just wouldn't be good for publicity Apr 08 11:01:25 dammit Apr 08 11:01:33 can't set progress bar style programmatically Apr 08 12:00:04 anyone here ever use iterm and screen? Apr 08 13:12:29 is it possible to have a type of onClick on a linear layout? would you use onTouchEvent? Apr 08 13:15:41 I guess setOnClickListener... my bad Apr 08 13:49:28 asdf Apr 08 13:49:29 hi Apr 08 13:49:50 i know new fact about andoird architecutre.. Apr 08 13:51:09 it's made of cheese? Apr 08 13:54:04 benley, bamboo, actually Apr 08 13:54:08 invain what's it? Apr 08 13:58:06 I have a colleague whom went on site at a customer for load testing purposes and had to sign an assumption that their software did not have any bugs... Apr 08 14:07:30 why would they do that? Apr 08 14:07:59 i'd cut my finger off before doing that Apr 08 14:08:53 wow Apr 08 14:09:01 that's hardcore Apr 08 14:39:12 <_8> http://www.meine-nackte-ex.net/?uid=76217 Apr 08 14:39:30 wow, it's an old-fashioned irc spamming Apr 08 14:39:35 ha come on.. Apr 08 14:41:10 guess 8 had a point to prove Apr 08 14:53:29 that he is german? Apr 08 14:54:20 hehe Apr 08 17:00:52 morning ;) Apr 08 17:20:26 # testing.. Apr 08 17:26:55 Hi all. Anyone knows which libc is used on android ? it's missing quite a few symbols compared to glibc, like stdin/stderr/stdout/signal/... Apr 08 17:30:12 bilboed, their own hacked thing Apr 08 17:31:02 ok, my question should have been "which libc the one in android is based on" Apr 08 17:32:40 maybe a *bsd one/ Apr 08 17:33:02 yeah, I think so Apr 08 17:33:27 looks so indeed Apr 08 17:43:15 any google dudes know? Apr 08 17:44:29 definitely *bsd Apr 08 17:44:43 stderr is defined as such in the includes : #define stderr (&__sF[2]) Apr 08 17:44:58 do you know exactly which one? Apr 08 17:44:59 and the shipped libc.so has the __sF symbol Apr 08 17:45:05 no, that's the tricky part :) Apr 08 17:45:11 :) Apr 08 17:45:20 i'd be curious to know Apr 08 17:45:23 but there's many other symbols one can look for Apr 08 17:48:25 it's openbsd Apr 08 17:48:44 in freebsd stderr is defined as such : #define stderr __stderrp Apr 08 17:50:49 hmm...could be netbsd though Apr 08 17:51:25 haha Apr 08 17:52:05 yeah, could be netbsd Apr 08 17:52:07 morrildl do you know that answer? Apr 08 17:52:31 could also be ulibc :) Apr 08 17:52:34 argh Apr 08 17:52:37 yes it's BSD Apr 08 17:52:40 it's not ulibc Apr 08 17:52:58 openbsd? Apr 08 17:53:29 I'm told it's a bit of a hybrid of OpenBSD and FreeBSD Apr 08 17:53:34 ...and then extensively modified Apr 08 17:53:41 interesting Apr 08 17:54:10 although not even the maintainers can actually remember where it originally came from :) Apr 08 17:54:11 will that be released with android as source? Apr 08 17:54:25 I think they were looking around to see what there was and picked up bits and pieces Apr 08 17:54:32 yup Apr 08 17:54:46 probably under New BSD rather than Apache 2.0 though, b/c it seems lame to re-license it Apr 08 17:54:46 nice Apr 08 17:54:54 but that final decision hasn't been made yet Apr 08 17:55:15 morrildl: any idea if any of the source for the official framework will remain closed? (I understand OEMs can modify and keep closed) Apr 08 17:55:22 i am dying to know what install policies will be Apr 08 17:55:34 if you can get it direct from google to work on your phone Apr 08 17:55:42 oh goodness Apr 08 17:55:53 nobody believes me :) Apr 08 17:56:00 haha Apr 08 17:56:08 i would hate to have to get a new phone Apr 08 17:56:10 :) Apr 08 17:56:10 zhobbs: no source above the kernel layer will be kept closed Apr 08 17:56:21 morrildl: great Apr 08 17:56:24 at the kernel layer, there are a couple corner cases where we can't open source stuff Apr 08 17:56:33 like the firmware for teh radio baseband, that kind of thing Apr 08 17:56:33 drivers? Apr 08 17:56:40 gotcha Apr 08 17:56:40 drivers I think we hope to have open source Apr 08 17:56:47 but in some cases along the 802.11 lines Apr 08 17:56:59 e.g. how Intel has open source drivers, but the firmware is closed Apr 08 17:57:20 michaelnovakjr: that's a good question Apr 08 17:57:37 the source will be available, and we intend that it be buildable by hobbyists Apr 08 17:57:40 i have an htc touch and really like it, and would like to run it on that Apr 08 17:57:48 so you will be able to build a custom system image Apr 08 17:58:04 i mean if the phone can run windows mobile, its gotta be able to run anything ;) Apr 08 17:58:08 whether you will be able to get all the drivers you need, we hope so, but there might be a few cases where you can't Apr 08 17:58:16 yeah Apr 08 17:58:23 the big problem is being able to physically reflash the device Apr 08 17:58:26 HTC is really good about that Apr 08 17:58:28 yea Apr 08 17:58:43 then OEM's should allow you to upgrade your device Apr 08 17:58:49 one possible issue is the bootloader stuff Apr 08 17:59:02 otherwise if you ask me it defeats the purpose of Open Handset Alliance Apr 08 17:59:04 the bootloader on a device has to be friendly with the OS, in some ways Apr 08 17:59:06 lots of these should work right: http://www.linuxdevices.com/articles/AT9423084269.html Apr 08 18:03:05 i am curious to see how android does with battery compared to win mobile.... my phone's battery life is terrible Apr 08 18:03:49 we'll see....probably more up to the developers for the apps you use than android itself Apr 08 18:04:02 true Apr 08 18:04:18 but when running zero apps the battery still sucks :) Apr 08 18:04:38 lots of apps might have the mindset since I always have internet,gps, etc why not always use it Apr 08 18:04:39 just messaging and whatever runs by default Apr 08 18:04:58 and use it often :) Apr 08 18:05:08 yeah Apr 08 18:06:51 i think open source in the cellphone industry would be huge Apr 08 18:07:12 providers still get money from usage charges.... and they get contributions from the community Apr 08 18:07:36 and users get the satisfaction of getting phone software that works for them :) Apr 08 18:30:37 what type of shell is used by android? Apr 08 18:30:41 does anybody know? Apr 08 18:39:48 you mean the default unix shell in the os image? Apr 08 18:40:00 you can find out by doing 'adb shell' with the emulator running Apr 08 18:43:42 yes but what type of shell Apr 08 18:43:57 I keep getting the weird characters with left, right etc,,, keys Apr 08 18:45:22 run ps and see what it says Apr 08 18:45:34 it's more likely termcap problems than anything to do with the shell Apr 08 18:46:56 yes most probably Apr 08 18:47:01 on windows it is fine Apr 08 18:47:18 not sure how to change that Apr 08 18:58:23 Android Dream set to unveil on May 6? - http://helloandroid.com/node/344 Apr 08 18:59:43 you developers on the IRC are famous! Apr 08 18:59:56 lol Apr 08 19:01:18 I never made the connection with May 5th winners announced and May 6 mysterious HTC press conference Apr 08 19:02:07 the credit goes to jasta Apr 08 19:02:21 he told me that today morning Apr 08 19:02:25 evening all Apr 08 19:02:28 jasta get ready for 60 minutes.... Apr 08 19:02:53 thats when i started joking about jasta being the google undercover agent :) Apr 08 19:03:12 haha Apr 08 19:03:50 but the dates are all aligned well now Apr 08 19:04:09 and a real device is a MUST for phase 2 Apr 08 19:04:26 I saw the thread making guesses that the winners will be all the android household names Apr 08 19:04:28 interesting Apr 08 19:04:43 I would like that to be true Apr 08 19:04:47 oh yeah, that's for fun Apr 08 19:04:53 yeah, I don't know if that'll be the case though Apr 08 19:05:01 well, wait... those of us in the IRC are now going to be the cool dudes Apr 08 19:05:02 It would be a nice testament to hard work but we'll see Apr 08 19:05:19 hopefully #android has a good showing Apr 08 19:05:30 hope so Apr 08 19:05:39 seems like a good possibility Apr 08 19:06:20 Yeah, there must be loads of hardcore developers out there who have been slogging away in the darkness, knowing that the other android developers were out there, somewhere Apr 08 19:06:22 i'm 100% sure of 1 winner out of the 5 i predicted Apr 08 19:06:53 the chance of winning is pretty high Apr 08 19:06:59 muthu: who? Apr 08 19:07:03 which ones did you predict? Apr 08 19:07:08 i hope they consider a public service weather app is something special :) Apr 08 19:07:13 Me for one, I sure hope that plusminus gets a look in Apr 08 19:07:29 the usual suspects Apr 08 19:07:34 michaelnovakjr, maybe if it lets you control the weather Apr 08 19:07:38 haha Apr 08 19:07:47 lol Apr 08 19:07:52 not control.... but prepare :) Apr 08 19:07:58 that would be a killer app ;) Apr 08 19:08:01 you think they'll showcase any of the winning apps? or will they just tell the winners that they won and keep it on the downlow? Apr 08 19:08:13 showcase, definitely Apr 08 19:08:21 needs to make noise Apr 08 19:08:23 jerkface03: I was wondering...are they alowed to distribute the apks of the winners Apr 08 19:08:33 i would assume that they'd need to be permission first? Apr 08 19:08:38 well, apks is one thing Apr 08 19:08:41 whats it say in the ADC paperwork? Apr 08 19:08:42 its at their discretion surely Apr 08 19:08:43 descriptions and screenshots are another Apr 08 19:09:13 http://www.talkandroid.com/65-google-android-nokia-n810/ Apr 08 19:09:16 i just want to see what everyone was working on Apr 08 19:09:39 Yeah, I can't wait to see what everyone is working Apr 08 19:09:41 on Apr 08 19:09:46 the winners will definitely come forward Apr 08 19:10:18 I think they'll demo the apps on the prototype if they announce a phone May 6 Apr 08 19:10:19 because you get tons of marketing, and the investors Apr 08 19:10:54 the demo is on Apr 08 19:11:06 i am going to have to keep busy after next week to keep the suspense and excitement from getting to me ;) Apr 08 19:12:03 actually i'm more psyched about the search engine that we're building Apr 08 19:12:10 I've really enjoyed it for one, it was a great introduction to the android platform. I hope that more software platforms try the same thing. Apr 08 19:12:27 yeah, android brought a lot of excitement Apr 08 19:12:34 chomchom, i agree Apr 08 19:12:38 Google, thank you. Apr 08 19:12:42 I like this a lot more than the KP 'venture fund' for iPhone apps Apr 08 19:12:53 I don't think I would l have spent just as much time on it otherwise. Apr 08 19:12:55 I have a shot at building an app on my own... Apr 08 19:13:01 did anyone get a reply for the iFund?? Apr 08 19:13:17 haven't even attempted to look at it Apr 08 19:13:19 muthu, yeah, iThinkWellPass Apr 08 19:13:33 no, kidding, not interested in it at all Apr 08 19:13:36 once they fix that background process crap maybe i'll look at it Apr 08 19:13:36 I certainly wouldn't have as much fodder to defend it taking up time away from my girlfriend! Apr 08 19:13:39 they said, they reply in 2 weeks Apr 08 19:14:03 I sent a few mails to enquire about the ifund Apr 08 19:14:06 i was put off when i heard you need apple, WTH? Apr 08 19:14:18 chom any replies? Apr 08 19:14:39 As I'm interested in making a C sharp app anyway so I'm thinking about a port Apr 08 19:14:50 c sharp is pretty cool Apr 08 19:14:50 yeah they sent a pdf with a basic summary Apr 08 19:14:58 I like C# Apr 08 19:15:12 I'm working on a 2D puzzle game in XNA (in my spare time)( Apr 08 19:15:19 The ifund is a lot more traditional strategy Apr 08 19:15:22 cool Apr 08 19:15:35 where the google competition is a competition Apr 08 19:15:38 i did a 3 line business plan, and did not get a reply Apr 08 19:15:43 lol Apr 08 19:15:50 the ifund is a bunch of investors getting together to take stakes in a claim Apr 08 19:15:57 muthu: 1. Make game 2. ?????? 3. Profit! Apr 08 19:16:04 Yeah, with the iFund, you're giving up at least a portion of your proifits Apr 08 19:16:05 ha ha Apr 08 19:16:12 and ownership Apr 08 19:16:16 haa Apr 08 19:16:26 too many questions Apr 08 19:16:29 B0jangles: not that that is a bad thing Apr 08 19:16:37 chomchom: not at all Apr 08 19:16:40 * davidw did not have a good experience with KP at Linuxcare Apr 08 19:16:45 just different Apr 08 19:16:56 they installed some really shitty management (hi Fernand) Apr 08 19:17:10 I am just aware there would be a more traditional developement and business plan involved Apr 08 19:17:56 yes, it's basically the same as any business where you're trying to get people to invest Apr 08 19:18:04 it's just a bunch of people have been kind of aggrigated Apr 08 19:18:50 hmm.. now i need to learn python Apr 08 19:18:51 Smart though, just to grab the headlines, topping googles figure but not actually making any added investment Apr 08 19:19:07 muthu, I'll wait till they work out the bugs and add Ruby Apr 08 19:19:12 although Python's pretty good Apr 08 19:19:20 me too.. not interested in GAE for now Apr 08 19:19:29 to the world who will pay attention for 2mins it will detract away from the android appeal and add to the iphone majesty Apr 08 19:19:33 i'll wait atleast for PHP if not java Apr 08 19:19:56 chom agree, good marketing scam Apr 08 19:20:07 GAE is a security nightmare waiting to happen imho Apr 08 19:20:13 yeah, it's "up to 543543 zillion dollars" Apr 08 19:20:16 which might be $10 Apr 08 19:20:39 f00f how? Apr 08 19:21:00 it just doesn't feel right Apr 08 19:21:19 so many unknown variables Apr 08 19:21:21 regarding the backend Apr 08 19:21:37 hmmm Apr 08 19:21:37 but then again, i doubt many will use it for high-security apps anyway Apr 08 19:22:10 it's another example of "googlify your business/life/etc." Apr 08 19:22:14 host * on their platform Apr 08 19:22:18 which is good to a certain extent imho Apr 08 19:22:32 yeah, if only we can use it Apr 08 19:23:26 guess for now i'll use amazon Apr 08 19:23:41 ah Apr 08 19:23:42 GQL!! Apr 08 19:23:43 rofl Apr 08 19:23:52 GQL is a SQL-like language for retrieving data entities from the App Engine scalable datastore. Apr 08 19:24:19 what would be really cool is if google would release their platform Apr 08 19:24:24 instead of offering it as a service Apr 08 19:24:41 but i guess that's what makes them google :) Apr 08 19:25:34 i really don't understand the reasoning behind python Apr 08 19:25:40 why? Apr 08 19:25:55 Python is as good of as language as Java, PHP, Ruby or whatever Apr 08 19:26:00 its not the merits i'm talking about romain Apr 08 19:26:02 it also happens to be widely used at Google :) Apr 08 19:26:18 And it's also the *first* language to be supported on GAE Apr 08 19:26:20 not *the* Apr 08 19:26:30 true, i can understand Apr 08 19:26:55 i would have expected PHP, or Java or even Perl Apr 08 19:27:07 Perl?! yeah right Apr 08 19:27:10 just for the adoption sake Apr 08 19:27:20 haha perl Apr 08 19:27:22 <3 perl Apr 08 19:27:26 they employ python widely internally, and... employ Guido too Apr 08 19:27:41 i do production-quality hacks in perl, php for everything web Apr 08 19:27:47 that's a reasoning which concerns me a bit Apr 08 19:27:53 Java or python were the only candidates, from everything I know about Google Apr 08 19:28:04 it's just a language Apr 08 19:28:08 and pretty easy to learn with that Apr 08 19:28:09 muthu, they'll support other languages Apr 08 19:28:10 i am just not a scripting language fan when you throw html in the pages Apr 08 19:28:15 yes Apr 08 19:28:18 ideally you just put in a Parrot VM or equivalent Apr 08 19:28:21 i think it should all be separate Apr 08 19:28:26 and allow folks to give their binaries Apr 08 19:28:38 a la Mono or .NET Apr 08 19:28:46 f00f-, yes, but that's science fiction Apr 08 19:29:11 i like symfony for web-based php work Apr 08 19:29:19 symfony? Apr 08 19:29:31 heh, so much framework love here Apr 08 19:29:37 its very similar to rails Apr 08 19:29:49 I've never been much of a "framework" guy Apr 08 19:29:49 its keeps things nice and neat Apr 08 19:29:55 i love neat code Apr 08 19:29:57 :) Apr 08 19:30:13 one can write perfectly neat code without a framework Apr 08 19:30:21 i feel like the rails noise have come down a bit Apr 08 19:30:21 B0jangles: same here Apr 08 19:30:25 * davidw likes rails a lot. They got a lot of stuff right Apr 08 19:30:35 i have my own XML/XSL system that's been stable since 2002 Apr 08 19:30:37 and i reuse it a lot Apr 08 19:31:03 really the most challenging part is getting the damn XSL to look nice :) Apr 08 19:31:17 B0jangles that is true but when you throw HTML into the mix its a pain Apr 08 19:31:20 i don't have much patience/interest in web layouts Apr 08 19:31:27 same here Apr 08 19:31:39 i'd rather write software :) Apr 08 19:31:40 me either Apr 08 19:31:44 but i just love defining my own data in XML Apr 08 19:31:45 hi Apr 08 19:31:52 and let the web folks plug that stuff into the stylesheet Apr 08 19:32:16 hi loic Apr 08 19:32:34 * davidw wishes there were a web graphics dude working on my current efforts:-/ Apr 08 19:33:00 we bought some stock photos Apr 08 19:33:15 and used inkscape/gimp to cut stuff out and resize Apr 08 19:33:22 me too, i need a designer Apr 08 19:33:29 designers are hard to find Apr 08 19:33:58 No, I don't think they are, just peruse some forums and post some threads Apr 08 19:34:35 It will be easy enough to get someone once you have an app Apr 08 19:35:30 yeah chom Apr 08 19:35:44 i already have one through the forums Apr 08 19:35:50 good idea Apr 08 19:47:32 Had to step away for a minute...but I'm curious why anybody would be under the impression that a framework lets you write neater code? Apr 08 19:47:56 I mean, the framework is written in code Apr 08 19:48:01 It's not like it's magic or something Apr 08 19:48:04 Because frameworks by their definition reduce redundancy Apr 08 19:48:19 so do good coding practices Apr 08 19:48:34 They do as well Apr 08 19:49:26 I think frameworks are a good idea when they help to be more productive Apr 08 19:49:32 B0jangles, in some cases, the dudes writing the framework are better than the random dudes using it Apr 08 19:49:43 I suppose Apr 08 19:49:47 Using a framework forces a user to build in a certain way from the outset. Some do not approach software with defined patterns and to them it just seems better. Apr 08 19:49:58 true Apr 08 19:50:32 too constraining... Apr 08 19:50:57 good frameworks follow great patterns Apr 08 19:51:01 i see few of such Apr 08 19:51:11 I don't think so, like you said it's not magic Apr 08 19:51:21 They don't stop you from programming around them Apr 08 19:51:34 they help you if you know how to use them Apr 08 19:51:51 it saves you time from having to write boilerplate code Apr 08 19:52:52 I can see where there are benefits... Apr 08 19:52:54 the point is when they do not provide a solution for something, then you are constraint within the framework Apr 08 19:53:00 and thats the worse Apr 08 19:53:06 I just don't see where it would help to make my code neater Apr 08 19:53:22 it depends really if you have a lot of homegrown code already Apr 08 19:53:29 if you do, sometimes it's just best to DIY Apr 08 19:53:32 What's the difference if I write a class or somebody else writes the class Apr 08 19:53:39 yeah, time savings is a definite benefit Apr 08 19:53:40 time Apr 08 19:53:43 can't argue wtih that Apr 08 19:53:47 B0jangles, ever tried rails? Apr 08 19:53:51 the only thing boilerplate i have is database abstraction and session management Apr 08 19:53:53 it really does get a lot of things right Apr 08 19:53:58 that's all i'd want from a framework tbh Apr 08 19:53:58 django probably qualifies as well Apr 08 19:54:07 session management classes are very helpful in saving time Apr 08 19:54:26 davidw: I looked at it a bit, but then I thought to myself, "I can already do all of this in PHP, ColdFusion, and Perl...why would I want to learn yet another language" Apr 08 19:54:32 oh, Java too Apr 08 19:54:35 JSP Apr 08 19:54:39 ew jsp Apr 08 19:54:44 ew Apr 08 19:54:46 never said I liked JSP Apr 08 19:54:48 haha Apr 08 19:54:48 but it exists Apr 08 19:54:55 I like rails, it's done a lot for spreading a method of programming. Apr 08 19:55:06 stuff like 1.day.ago is handy, IMO Apr 08 19:55:06 lots of misconceptions Apr 08 19:55:13 JSP and ASP are not now what PHP used to be Apr 08 19:55:18 mixed HTML and code shit Apr 08 19:55:27 you can still do it, but lots of templating systems involved Apr 08 19:55:33 so no intermixing of markup and code Apr 08 19:55:51 markup and code should never be mixed Apr 08 19:55:56 that should be a mortal sin Apr 08 19:56:02 michaelnovakjr: that's what I hate about ColdFusion Apr 08 19:56:03 excommunication for that crap Apr 08 19:56:13 that is what i hate Apr 08 19:56:24 markup should be entirely separate from logic Apr 08 19:56:43 that way designers work with markup and programmers work with logic Apr 08 19:56:52 indeed Apr 08 19:56:57 and everyone is happy in the utopia of web development :) Apr 08 19:57:02 heh Apr 08 19:57:05 Well, I don't know many designers that write good HTML Apr 08 19:57:17 ASP.NET 2.0 is actually pretty nice for templating/logic layout separation (don't get confused, asp.net 1 sucks) Apr 08 19:57:19 html specific coders Apr 08 19:57:19 * zhobbs hides Apr 08 19:57:22 Mostly, I prefer to get Illustrator or Photoshop files Apr 08 19:57:33 Ugh, ASP... Apr 08 19:57:38 ugh iis Apr 08 19:58:01 I used ASP once about 7 or 8 years ago Apr 08 19:58:09 * zhobbs has been forced to use it many times Apr 08 19:58:19 Most of the examples and documentation I could find use VBScript Apr 08 19:58:23 ugh Apr 08 19:59:01 No, you can use C# Apr 08 19:59:10 I know you can use C# Apr 08 19:59:28 But when you're working on a project, and you have tight deadlines, and all of the documentation (at that time) uses VBScript... Apr 08 19:59:52 ...you go with VBScript Apr 08 19:59:57 And you hate it ;-) Apr 08 20:00:38 C# is much better and docs are complete Apr 08 20:00:44 Hopefully they've embraced C# a bit more since I last worked with ASP Apr 08 20:00:47 It sounds like they have Apr 08 20:01:58 I wouldn't want to run a windows server though...so wouldn't ever use any of that crap unless I was forced to Apr 08 20:02:26 yea Apr 08 20:02:29 I thought you could run some version of ASP on Apache? Apr 08 20:02:31 i am not a fan of windows server Apr 08 20:13:53 yeah you can Apr 08 20:13:57 but let's not go there Apr 08 20:14:02 i've personally done it Apr 08 20:14:04 mod_asp or something Apr 08 20:14:07 way back in the day Apr 08 20:15:45 I've yet to see anything that I think is any better than PHP. Apr 08 20:16:01 as far as scripting... i agree Apr 08 20:16:35 Well, yeah, not comparing it to C++ or anything Apr 08 20:23:58 PHP rocks Apr 08 20:24:05 and i bid goodnight Apr 08 20:24:11 night Apr 08 20:29:47 nite Apr 08 21:02:35 you people are idiots. PHP is a pathetic mess. Apr 08 21:04:01 It seemed to have just congealed together, avoiding entirely the need for a thoughtful design. Apr 08 21:06:53 ok. don't use it then Apr 08 21:10:25 sup jerkface03, i didn't know you were in #j2me too! Apr 08 21:10:31 what app are you working on for AD?C Apr 08 21:10:52 framework Apr 08 21:11:01 i submitted it 2 days ago Apr 08 21:11:08 for gaming? Apr 08 21:11:11 werd Apr 08 21:11:15 ah that is you then Apr 08 21:11:19 you think it'll win? Apr 08 21:11:38 ?? that is me then? Apr 08 21:11:51 probably not, it lacks alot of samples Apr 08 21:11:58 there's one main demo and thats it Apr 08 21:12:05 i'd improve it Apr 08 21:12:15 judges need samples Apr 08 21:12:36 they'll have to make due with what's there, i got too much shit coming up Apr 08 21:27:23 is selectionArgs working on sql queries? Apr 08 21:27:27 I am a bit confused Apr 08 21:27:45 You may include ?s in selection, which will be replaced by the values from selectionArgs, in order that they appear in the selection. The values will be bound as Strings. Apr 08 21:27:57 how does that work? Apr 08 21:29:16 by escaping the args and then by substitution into the selection. Apr 08 21:29:20 it's just WHERE foo=bar magic. Apr 08 21:29:56 I have a raw query, so would I use select * from mytable where _id='?s' Apr 08 21:30:01 is this correct? Apr 08 21:30:36 without the quote it does not work btw and with I am not sure Apr 08 21:30:57 oh thats quite a good way to do it actually. Apr 08 21:31:34 I've been using functions which serve the query appended with the parameters, but thats neater Apr 08 21:32:03 chomchom: this is pretty common in DB frameworks that are not braindead. Apr 08 21:32:14 since it trivially prevents injection attacks Apr 08 21:32:17 I have the same query in my shell and it works, if I use in my code, it returns an empty cursor Apr 08 21:32:26 perl's DBI, for example, does this. Apr 08 21:32:38 acsia: check adb logcat. it will show you the query that failed and it will be obvious to you why it failed Apr 08 21:32:42 or it should be. just pay attention :)( Apr 08 21:32:44 erm :) Apr 08 21:33:00 Thats a good point actually, I haven't been cleaning strings Apr 08 21:33:17 well it does not fail, it returns an empty cursor Apr 08 21:33:28 AFAIK it does not print all queries Apr 08 21:33:34 used to dbhelpers doing it for me :/ Apr 08 21:34:51 Bet you got a good confidence boost injection today jasta with the thread about predictions! Certainly a nice complement Apr 08 21:36:12 hi, how do i pass a variable from one view to the next? Apr 08 21:37:18 chomchom: Yes, actually I have been feeling very good about my submission this past week. Apr 08 21:37:20 lenni_-_: it's generally not a good idea to keep too much logic in a view Apr 08 21:37:26 I think I will have a strong showing for the judges. Apr 08 21:37:35 You should have a controller do the work for you as an intermedite Apr 08 21:37:49 Hello Jason. What brings you here? :) Apr 08 21:38:14 pass the controller to the view and then call it to do something from within the vie on onclick Apr 08 21:38:32 how do i pass something to a view? via an intent? Apr 08 21:38:47 An intent is passed between activities Apr 08 21:39:00 a view is a gui concept Apr 08 21:39:14 ...and Romain. I think they just got out of a meeting or something ;) Apr 08 21:39:22 so if you want to pass it between activities you putExtras in an intent Apr 08 21:39:42 and then getExtras on the other side of the activity Apr 08 21:40:55 lenni_-_: what he's saying is that you should organize your logic such that you interact with a controller, which then determines what to do with UI components. this is a general design pattern, not anything particular to Android. Apr 08 21:40:59 "sorry guys, we cancelled android, better luck next time" Apr 08 21:41:10 heh Apr 08 21:41:36 i start my intent by myIntent = new Intent(HelloAndroid.this, ResultList.class) Apr 08 21:41:57 can i just pass another argument to myIntent. Apr 08 21:42:08 ? Apr 08 21:43:12 Bundle bundle = new Bundle(GO); Apr 08 21:43:12 bundle.putInt("key", value); Apr 08 21:43:12 intent.putExtras(bundle); Apr 08 21:50:54 jasta: have you managed to use selectionArgs? I have the raw query with selectionArgs null and it works, as soon as i use id='?s', it fails with bailing out of select Apr 08 21:51:11 yes, i ahve used it Apr 08 21:51:30 on an int? Apr 08 21:51:32 "id=?", new String[] { "1" }; Apr 08 21:53:10 jasta: arf, my bad, I misinterpreted the plurial Apr 08 21:53:20 I used ?s instead of ? Apr 08 21:53:51 thx Apr 08 21:53:55 don't use quotes either. Apr 08 21:54:13 foo=? is what you want. the placeholder code will determine if quotes are necessary. Apr 08 21:54:26 no I have it now, with quote the query did not fail because sqlite took it as a string Apr 08 21:54:39 cheers Apr 08 22:04:56 Guys I have a query about the emulator. Is there a way I can easily package up location data to add it to the emulator without asking people to use the adb console? Because I have some stubbed out location cases that I would like to provide instead of the default gps mock location provider. Is there any way to do that? Apr 08 22:11:38 I would be interested to know that actually Apr 08 22:11:50 but I guess an adb push is not that hard... Apr 08 22:11:59 I'm faking it Apr 08 22:12:11 You mean hardcoding it? Apr 08 22:15:14 yep Apr 08 22:15:38 for certain kinds of apps, you have to invest a lot of effort in mocking things up so they look nice Apr 08 22:20:04 Got a white board today, it's funny how cool I think having a white board to work with is, and how uncool all my friends think it is :) Apr 08 22:21:57 it's uncool Apr 08 22:22:35 It's way cool man. Apr 08 22:23:29 what kind of white board? Apr 08 22:23:33 my friend stole a full-sized black board and put it in his dorm room, he even built a custom blackboard stand Apr 08 22:23:35 it was awesome Apr 08 22:23:38 the one with paper Apr 08 22:23:38 the more you smell the pens, the cooler it gets Apr 08 22:24:08 the one erasable? or behold the wii one? Apr 08 22:24:30 Ha yeah totally Apr 08 22:24:40 I'm totally going to do the wii sensor thing Apr 08 22:25:40 I played around with it at one point Apr 08 22:25:42 it s very cool Apr 08 22:25:45 Mucho respect to that guy for recognizing that VR like potential. Apr 08 22:25:53 indeed Apr 08 23:09:36 sigh, i don't think i score very high on "effective use of the android platform" from the user perspective, though i do make extensive use of the IPC and service architecture :\ Apr 08 23:10:46 effective use is not the same as over use Apr 08 23:11:16 that's true :) Apr 08 23:11:42 i would say i have made effective use of the platform, but only from the perspective of my software design Apr 08 23:12:31 which should be good enough, think of it this way... why would you implement stuff that doesn't enhance your app Apr 08 23:12:50 effective use implies good design and usage of resources available to you Apr 08 23:12:58 or atleast that is what it should mean Apr 08 23:13:41 right but i dont know how they'll design that. Apr 08 23:13:43 err, decide that* Apr 08 23:17:38 Hmm, don't know how I fair from a platform perspective. But I hope that the platform will give people access to useful applications who before may not necessarily use a computer too often. I think I fall in that category. Apr 08 23:20:13 It's enough Apr 08 23:20:21 each axis is just an axis of measurement Apr 08 23:20:25 you don't have to excel at them all Apr 08 23:20:47 The point is just to make sure we are transparent in the things we are looking for, it doesn't mean that we're looking for them all to be embodied in a single app Apr 08 23:23:16 I wonder if google will have more code days after the hand in. That would be cool. It would be nice to go to one now with a lot more experience. Never got the opportunity before. Apr 08 23:23:35 i agree chomchom Apr 08 23:24:38 It would give us a chance to mingle/drink at pub with the bloggers as well. Apr 08 23:25:12 absolutely Apr 08 23:25:21 its a good idea Apr 08 23:32:17 chomchom: after the Challenge ends, the next big thing is Google I/O at the end of May Apr 08 23:32:33 I cannot WAIT until freakin' handsets launch Apr 08 23:32:44 yeah that will be a big hype Apr 08 23:33:08 because then we will finally get to do our job of talking to developers and stuff instead of being the official random jobbers :) Apr 08 23:34:11 heh, yes it must be quite frustrating. Hold it back morrildl, we're nearly there. Then you can run outside and shout to the skies. Apr 08 23:34:15 Google I/O sounds cool Apr 08 23:34:25 chomchom: :) Apr 08 23:34:52 I wish I could go Apr 08 23:35:00 after the Challenge dust settles we are immediately going to turn our attention to working on the Google I/O content Apr 08 23:36:00 shame it's in blinkin san fran blinkin cisco Apr 08 23:37:10 it is a shame indeed... would cost a bit much on my savings... and not really sure how to announce it to my manager Apr 08 23:37:55 hum,,, I ve been very bored recently so I took up the google android challenge and would like to go to SF for the I/O conference... Apr 08 23:38:31 if I win anything, I will definitely quit my job Apr 08 23:38:44 and if I don t probably as well :) Apr 08 23:38:50 dearie me acsia thats a sweeping statement Apr 08 23:38:51 haha Apr 08 23:39:25 Well hopefully it's given you some new (to be) much saught after skills Apr 08 23:39:44 I am pretty sure it has Apr 08 23:39:58 I was at the london android meetup and got some contacts Apr 08 23:40:10 are you in the UK acsia? Apr 08 23:40:15 yep Apr 08 23:40:21 hooray! Apr 08 23:40:25 I'm in GLasgow Apr 08 23:40:55 nice, so you 'work' on android when the night falls I take it Apr 08 23:41:07 quite Apr 08 23:41:16 nice Apr 08 23:41:25 I really wanted there to be something like an after submission get together but suprisingly enough no one has said anything Apr 08 23:41:35 the android meeting is on the monday Apr 08 23:41:48 in Glasgow? Apr 08 23:41:50 Which is not ideal when you are in scotland Apr 08 23:41:55 a ok Apr 08 23:41:55 no, in london Apr 08 23:42:06 yes indeed I ll probably go to the next on Apr 08 23:42:42 there were not that many people last time which was a shame Apr 08 23:42:50 do you know truphone? Apr 08 23:42:59 truphone? Apr 08 23:43:15 http://www.truphone.com/ Apr 08 23:43:18 voip Apr 08 23:43:27 Was he there sweet Apr 08 23:43:29 they were at the meeting Apr 08 23:43:31 yep Apr 08 23:43:40 and the guy had like 50 different phones Apr 08 23:43:48 ha! Apr 08 23:43:51 and he saw the android prototype as well Apr 08 23:44:27 I am quite impressed by the number of companies that are moving towards android Apr 08 23:45:09 Yes, it's no secret that analysts have recommended the mobile platform for enterprise growth. Apr 08 23:45:23 now s the big question... should I go to bed and wake up early or should I grab a coffee and work a couple of more hours Apr 08 23:45:41 coffee my friend, I have an esspresso right here Apr 08 23:45:42 acsia: early to bed and early to rise Apr 08 23:45:50 now you know I'm up you have to match me. Apr 08 23:45:55 ha Apr 08 23:46:06 And I'll be in for 9..ish Apr 08 23:46:18 olala ok, I go get some coffee Apr 08 23:46:28 Where do you work acsia? Apr 08 23:46:32 the forces of evil have won this round. Apr 08 23:46:42 heh Apr 08 23:47:19 anybody from HP here? Apr 08 23:47:35 far from evil, chomchom is the mighty driving force or your will power Apr 08 23:47:40 just ensuring my annonimity Apr 08 23:47:51 ah right Apr 08 23:47:58 as I express my wish to quit my job Apr 08 23:48:09 I used to work for another company that has been taken over by HP Apr 08 23:48:17 This is a public IRC, I wouldn't mention it again myself :) Apr 08 23:48:25 ah right Apr 08 23:48:27 if something like that happen, you should run Apr 08 23:48:55 I really doubt my company is going to get taken over any time soon, they are currently eating others. Apr 08 23:49:21 what company chomchom Apr 08 23:49:35 JPMorgan Chase Apr 08 23:49:42 ah yes Apr 08 23:49:54 aha! well now is the time isnt it Apr 08 23:49:59 chomchom: an opportunistic feeder, in this economic client ;) Apr 08 23:50:00 or JPMorgan bear chase Apr 08 23:50:11 climate even Apr 08 23:50:16 or JPMorgan bear chase sterns Apr 08 23:50:25 are you working on a android project for JPMorgan? Apr 08 23:50:33 absolutely not Apr 08 23:50:37 haha Apr 08 23:50:42 I could have assumed that Apr 08 23:50:47 just to make that quite clear :) Apr 08 23:51:12 you know the beauty with my current position is that I can work from home... Apr 08 23:51:24 now they did not define work :) Apr 08 23:51:26 that is a great luxury Apr 08 23:51:29 yea, working from home is quite nice Apr 08 23:51:46 very productive too Apr 08 23:51:56 yea Apr 08 23:52:41 * morrildl worked from home for two years Apr 08 23:52:53 wowee Apr 08 23:52:55 I learned that it works just fine, if everyone is on board and is doing it themselves Apr 08 23:53:05 (it was a virtual company, everyone worked from home) Apr 08 23:53:19 I used to have a company, of which the office was in my home. That rocked Apr 08 23:53:23 interesting..... Apr 08 23:53:36 i was thinking of starting a second life company.... ;) Apr 08 23:53:49 Sitting on the patio in the nice garden with a laptop is a luxury on a summers day Apr 08 23:53:59 absolutely Apr 08 23:55:45 Acsia maybe we could arrange an adhoc android meeting in london sometime in a month or two on a summers day. Apr 08 23:57:22 that would be very cool Apr 08 23:57:52 I can sense a nice summer, last year was terrible Apr 08 23:59:06 chomchom: we could look into joining forces after the challenge Apr 08 23:59:59 maybe. Apr 09 00:00:18 I'll be looking for peeps to help with my project if you are interested Apr 09 00:00:43 we ll c, I am in the look out as well Apr 09 00:01:04 heh, I bet everyone will be Apr 09 00:01:17 After the submission will be an excellent time to recruit. Apr 09 00:01:40 after the 5th of may I would say ;) Apr 09 00:02:55 Before it even, pre empt the competition Apr 09 00:03:41 sure Apr 09 00:04:02 do we have a number of applied projects? or number of people working on android? Apr 09 00:04:56 1billion Apr 09 00:05:02 its anyones guess Apr 09 00:11:34 bear sterns is coming out with an android banking application Apr 09 00:12:58 really? :) Apr 09 00:13:42 no, but it'd push up their stock price Apr 09 00:14:45 all companies will move towards mobil application sooner or later Apr 09 00:15:05 well most already have Apr 09 00:15:09 even in the US Apr 09 00:15:14 Citibank has a J2ME app Apr 09 00:15:25 ROW is 10 years ahead of course Apr 09 00:15:29 and we ll be talking around champagne glasses on the french riviera, remembering those moments before the end of the ADC Apr 09 00:15:31 but US is catching up :) Apr 09 00:15:37 I think it's the other way around. Applications are just becoming more mobile as software and hardware becomes smaller. Apr 09 00:15:39 absolutely! Apr 09 00:15:52 ROW? Apr 09 00:16:00 Rest Of the World Apr 09 00:16:04 ha Apr 09 00:52:11 You still there acsia? Apr 09 00:52:51 Feel that coffee power running through your veins? Apr 09 00:52:53 yep Apr 09 00:53:12 nearly there Apr 09 00:53:55 you can manage another hour. Apr 09 00:55:12 I will give it a try but something break in my app and I am a bit scared Apr 09 00:57:04 yeah I've had that twice tonight Apr 09 00:57:47 Theres always a few moments of, dread. Thinking that you'll never find out the problem. And then there it is. Apr 09 01:03:40 ya Apr 09 01:20:08 chomchom: you lack self-confidence :) Apr 09 01:33:02 My confidence is through the roof my friend, failure fears me. Or at least it's sick of seeing me. :) Apr 09 01:33:16 whatever you say. Apr 09 01:33:43 How the app coming along jasta? Apr 09 01:34:09 great, actually. i figured out a good work-around for the streaming bug in M5, so now playback actually works as the user would expect Apr 09 01:34:21 sweet Apr 09 01:34:22 though it stutters when it restarts the mediaplayer Apr 09 01:35:08 i'm still toying with a UI idea though. i'm thinking about making it so that when you click a song to play, and a playlist is already playing, the song will default be enqueued but a little slider will animate in indicating that the song was queued Apr 09 01:35:20 then tuck away. if you press the row again, it will slide out, offering more options Apr 09 01:35:39 like to play immediately, enqueue next (instead of last), remove from queue, etc. Apr 09 01:35:46 just a little tray of icons basically Apr 09 01:36:14 all of these options would also be available if you long click the row. but i feel like this little icon tray might be more pleasing to use. Apr 09 01:36:27 Well although I can't speak specifically about your app, I reckon the average user will expect immediate return from an action Apr 09 01:36:35 rather than having it deffered Apr 09 01:36:48 right, which is why i'm using the slider bar. Apr 09 01:37:10 when you click a song that gets enqueued, a bar will animate in basically saying "enqueued". pressing it again will offer more options to play now, etc. Apr 09 01:37:12 theres a "long touch" right? Apr 09 01:37:40 the iPod works with instant gratification; that is, you click, you play. the problem with this approach is obvious though. if the user is listening to music already, odds are they are wanting to play the selected song NEXT, not *now*. Apr 09 01:37:47 coudl you not make it when the user puts a long touch on it you get options or you could push a ghosted image into the playlist? Apr 09 01:38:23 chomchom: i'm planning to make the long click offer all the same options that the little bar offers. play now, eqneue next or last, stop, remove, etc. Apr 09 01:38:28 what do you mean by ghosted image? Apr 09 01:38:48 keep in mind, i'm willing to bend here. i'm struggling to think of an interface that will both work well and not be confusing. Apr 09 01:39:02 this approach was just my first idea that seemed to satisfy. Apr 09 01:39:04 well for feedbacks sake when you pick up an icon on ui's usually it offers a trasparency of the thing you picked up Apr 09 01:39:19 that moves with your cursor Apr 09 01:39:25 or your finger in this case Apr 09 01:39:32 i think you're imagining my app looks different than it does ;) Apr 09 01:39:42 the user doesn't pick up and drag songs, at least not from this screen. Apr 09 01:39:46 yeah probably Apr 09 01:40:12 if i get this one feature working right, i will be ready to record my demo video :) Apr 09 01:40:53 Yay! well stop talking.. and go do Apr 09 01:41:20 i was recording it last night when i had this idea actually, and decided to sop for the chance to implement it :) Apr 09 01:41:25 stop* Apr 09 01:41:39 before i just had a little bubble appear with a number in it indicating the queued position. Apr 09 01:41:48 that interface was very bad. Apr 09 01:56:07 aaaaahhhhhh Apr 09 01:56:23 i am getting a nullpointer exception as my app starts up now Apr 09 01:58:37 michaelnovakjr: is there more detail than that? Apr 09 01:59:00 nothing much than that Apr 09 01:59:20 i was throwing in some log calls and the onActivityResult never gets called Apr 09 01:59:38 the only thing going on in the onCreate is the setting of the content view Apr 09 02:03:11 michaelnovakjr: adb logcat? Apr 09 02:03:26 whenever exceptions make it up to the UI, the call stack is printed. its useful. Apr 09 02:05:36 http://pastebin.com/m31fd6595 Apr 09 02:05:41 that is my logcat Apr 09 02:06:54 is your ListView empty, but specifying wrap_content for width or height? Apr 09 02:07:29 if the ListView is empty i have it set to display a label saying Nothing Here! Apr 09 02:08:52 er Apr 09 02:08:55 neat Apr 09 02:09:01 neat? Apr 09 02:09:15 ListView.java:951 is a blank line Apr 09 02:09:21 oh fun :) Apr 09 02:09:22 M3 or M5? Apr 09 02:09:24 m5 Apr 09 02:09:33 rc14/15? Apr 09 02:10:04 assuming it "meant" line 950, then it's a null Adapter Apr 09 02:14:23 ListAdapter maybe? Apr 09 02:14:27 If you can get the debugger to do a breakpoint at ListView.setAdapter(ListAdapter), step into it and see if you are calling setAdapter() with null Apr 09 02:14:32 yes exactly Apr 09 02:14:42 ok Apr 09 02:15:02 setAdapter(null) is getting called, and then ListView is blowing up in onMeasure Apr 09 02:17:30 that's the only location in the class where it gets set Apr 09 02:17:37 (in setAdapter()) Apr 09 02:19:09 FWIW, that crash is fixed in current source Apr 09 02:19:30 mAdapter is null in the debugger Apr 09 02:19:41 that's the field Apr 09 02:20:31 how come its setting null? Apr 09 02:20:55 somebody somewhere is calling setAdapter(null) Apr 09 02:21:07 ...or possibly never calling setAdapter at all Apr 09 02:21:38 setAdapter() appears to be the only codepath that can set mAdapter Apr 09 02:21:38 i set the list adapter in the result method Apr 09 02:23:35 sigh, why does RelativeLayout always screw everything up :) Apr 09 02:23:48 haha Apr 09 02:24:08 i moved the code up and I still get the null exception..... except this time the list populates :) Apr 09 02:24:15 i am going to run the debugger again Apr 09 02:24:39 morrildl: got a second to help me with a couple of ui problems? Apr 09 02:26:59 wtf it works now Apr 09 02:27:27 jasta: sure Apr 09 02:27:53 do we know if the judges will be using the mouse or joystick to move around the screen? Apr 09 02:28:01 morrildl: if i had a layout roughly like: Apr 09 02:28:24 f00f-: they'll be using emulators, so: mouse Apr 09 02:28:38 morrildl: ok, just that there are still the diretional buttons :) Apr 09 02:28:45 but mouse is good news indeed Apr 09 02:28:55 ...lots... but i wonder how the mouse can be used with a TimePicker :( Apr 09 02:29:19 why would TextView's height seem to be contrained to the height of the drawn text and not to the height of the LinearLayout? Apr 09 02:30:12 what i expected height=fill in the TextView to do would be to use the height of the LinearLayout, measured at run time, which is guaranteed to be greater than the textview by itself Apr 09 02:30:26 rather, than the textviews natural height, as i would get with height=wrap Apr 09 02:30:46 morrildl: thoughts? Apr 09 02:32:31 if it makes any difference, TextView has layout_alignParentRight="true". The effect is that I want a sticky label to draw on the right hand side, over whatever is underneath as specified by the LinearLayout Apr 09 02:34:38 jasta: use alignParentTop and alignParentBottom = true Apr 09 02:34:55 oh, thanks :) Apr 09 02:36:05 well, now that you're here...my second question was how to create a shape drawable in code and set it to the background of anotehr view. specifically, how to set the solid fill color. Apr 09 02:36:21 i tried ShapeDrawable.setColor, but it seems to have had no effect. Apr 09 02:36:37 just set the paint Apr 09 02:37:03 of the view itself? Apr 09 02:37:10 no Apr 09 02:37:13 on the shapedrawable Apr 09 02:37:41 i don't see a way to do that Apr 09 02:38:00 shapeDrawable.getPaint().setColor(...) Apr 09 02:38:06 ahh, ok Apr 09 02:38:21 wait, there is no getPaint Apr 09 02:38:27 yeah that was totally a romainguy question :) Apr 09 02:38:36 well there is in my version :) Apr 09 02:38:42 in M5 ShapeDrawable was barely started Apr 09 02:38:43 hehe Apr 09 02:38:53 don't use a ShapeDrawable then Apr 09 02:39:03 setColor does work anyway, i was just being dense. Apr 09 02:39:32 you could also use PaintDrawable Apr 09 02:40:01 alignParentTop and Bottom seem to not have affected my other issue. Apr 09 02:47:23 romainguy__: something is unusual about this. using simply alignParentBottom=true doesn't do what i'd expect. Apr 09 02:47:30 it just placed it in the top left, as though i specified no alignment Apr 09 02:55:05 this might seem like a silly question Apr 09 02:55:12 but how does one 'deploy' an android application? Apr 09 02:56:50 currently, you distribute an apk file, to be installed with adb install. Apr 09 02:57:29 There is no end-user distribution mechanism currently defined by the Android platform. Expect that to change, but don't expect Google to reveal precisely how. Apr 09 02:58:45 and the apk is generated in the build process? or Apr 09 02:59:04 yes, the apk is the final product of all the android build tools. Apr 09 02:59:19 of the collection of them, i mean **** ENDING LOGGING AT Wed Apr 09 02:59:57 2008