**** BEGIN LOGGING AT Thu Apr 19 02:59:59 2012 Apr 19 03:12:36 yet, no snakes tonight :) Apr 19 03:12:39 *yey Apr 19 03:12:43 damn it colloquy! Apr 19 03:13:36 beep beeb boop beep Apr 19 03:13:41 hello all Apr 19 03:13:53 is this an andriod help or is it discussion channel? Apr 19 03:14:51 what kinda view do i need for a camera? Apr 19 03:14:59 i tried layoutView Apr 19 03:15:08 SurfaceView Apr 19 03:15:14 VideoView Apr 19 03:15:15 peptic justice, i love it http://www.osnews.com/story/25842/Seattle_Rex_vs_Apple_the_verdict_is_in Apr 19 03:15:19 *poetic :) Apr 19 03:15:26 But it never works Apr 19 03:15:38 but everything works when i comment out the view code Apr 19 03:15:42 i'm so confused Apr 19 03:16:55 hello Apr 19 03:17:07 i'm going to root channel Apr 19 03:17:43 hmm, ctate are you still there ? Apr 19 03:18:07 ctate? Apr 19 03:18:10 who is ctate? Apr 19 03:18:14 is guru? Apr 19 03:18:19 I need a guru Apr 19 03:18:29 You need to calm down Apr 19 03:18:48 calmchess: you probably just scared him away :| Apr 19 03:19:10 bine Apr 19 03:19:13 seta fute Apr 19 03:19:21 i wait for my answer to be answered Apr 19 03:19:31 Answers don't tend to get answered. Apr 19 03:19:43 question Apr 19 03:19:47 whatever Apr 19 03:19:59 use abstract thinking Apr 19 03:20:18 I don't think it difficult for you otherwise you wouldn't be here Apr 19 03:20:29 I just need to get this camera to work Apr 19 03:20:34 this book I got is junk Apr 19 03:20:47 told me to use a CameraLayoutView Apr 19 03:20:54 http://code.google.com/p/openmobster/wiki/CameraTutorial Apr 19 03:20:56 but there is no such thing Apr 19 03:20:58 junk Apr 19 03:20:59 hmmmm Apr 19 03:21:03 tutorial! Apr 19 03:21:09 fine Apr 19 03:21:11 CameraLayoutview is probably a view it creates Apr 19 03:21:18 literally took 3 seconds to google that Apr 19 03:21:37 I hate googleing so much junk to sift through Apr 19 03:21:42 thats why I like mobile Apr 19 03:21:55 they can't put a bunch of useless crap on screen Apr 19 03:21:58 no room for it Apr 19 03:22:01 they limited Apr 19 03:22:03 it good Apr 19 03:22:06 thanks for the link Apr 19 03:23:12 I see Apr 19 03:23:18 thats it I'm throwing this book away Apr 19 03:23:20 it junk Apr 19 03:23:22 i swear Apr 19 03:23:27 not a good refrence Apr 19 03:23:33 I don't need all the filler Apr 19 03:23:38 just show me the code! Apr 19 03:23:56 thanks again gonna go give this a try Apr 19 03:24:29 I feel so stupid Apr 19 03:24:35 the solution is so easy Apr 19 03:24:38 :( Apr 19 03:26:48 wall-of-text Apr 19 03:27:04 Indeed Apr 19 03:33:41 aww Apr 19 03:33:43 http://www.google.com/hostednews/ap/article/ALeqM5ixPkPti7yiDpPDsNbeSFOtRrPmKQ?docId=2d14e822d03e4356b98345c82bc0893b Apr 19 03:36:20 whats this bull Apr 19 03:36:21 FrameLayout preview = (FrameLayout) ViewHelper.findViewById(this, "preview"); Apr 19 03:36:26 it makes no sense Apr 19 03:36:28 it doesn't work Apr 19 03:36:36 ViewHelper doesn't imprt Apr 19 03:36:39 import Apr 19 03:36:55 it would seem ViewHelper is holding onto a root view? Apr 19 03:37:01 ViewHelper isn't refrenced anywhere Apr 19 03:37:01 Dunno, would have to look at the code for ViewHelper Apr 19 03:37:15 this is like this book Apr 19 03:37:18 out of date Apr 19 03:37:26 i gotta buy a new book 3 times per year Apr 19 03:37:29 :( Apr 19 03:37:34 I figure it out i guess Apr 19 03:37:39 whatever Apr 19 03:38:03 this dude is my hero http://www.komonews.com/news/local/KATU-147866735.html Apr 19 03:38:11 Anyone hear much about this book? Apparently its written by one of the core developers of android, think I might give it a shot: http://www.amazon.com/Professional-Android-4-Application-Development/dp/1118102274/ref=tmm_pap_title_0 Apr 19 03:38:40 jonn: probably not , since it isn't out yet :D Apr 19 03:38:52 looks like the kindle edition is out (?) Apr 19 03:39:03 it looks like it is Apr 19 03:39:30 oh wait, i had to read the story a little further. but still, haha Apr 19 03:40:30 yeah, he's still my hero Apr 19 03:40:53 I need to remember to log into commonsware and download the newest versions before my 1 year sub expires Apr 19 03:41:34 yeah, i didn't renew mine Apr 19 03:44:06 jonn: you been to the bookstore lately? that thing is a monster book (well the 3rd edition was). 864 pages! Apr 19 03:46:19 I want to write some log to files on sd card, researching http://code.google.com/p/android-logging-log4j/, has anyone succeed with this? Apr 19 03:46:29 louielouie: had did you see it? the 3e isn't released Apr 19 03:46:33 hehe Apr 19 03:50:22 maybe it was the 2nd ed i saw? it was big. but yea i have it and it covers a lot of material Apr 19 03:50:48 2nd ed had 575 pages, which is still huge :) Apr 19 03:56:07 Has anyone tried loging to file (on sdcard)? Apr 19 03:57:15 nope, never Apr 19 04:10:49 yeah Apr 19 04:14:35 just write to a file Apr 19 04:17:55 JakeWharton i'll write you to a file D: Apr 19 04:18:04 echo "JakeWharton" > file Apr 19 04:18:38 Is it possible to set the abbreviated text that should be displayed on an actionbar tab? Apr 19 04:19:06 no Apr 19 04:19:39 just keep it short Apr 19 04:19:47 Since I removed a 5th tab, android in portraid mode has gotten too smart and is alleviating scrolling by calling me messages tab 'mess...' Apr 19 04:20:07 I'd like to keep it to 'messages' when in landscape, so I guess I'll just rename it manually Apr 19 04:20:36 you could also create a strings.xml file in values-port and values-land Apr 19 04:20:38 use strings.xm Apr 19 04:20:39 yeah Apr 19 04:20:53 ooh Apr 19 04:21:08 don't use values-port though Apr 19 04:21:10 just values Apr 19 04:25:23 JakeWharton can I easily make use of the ABS Spinner in my activities on pre-HC? Apr 19 04:25:35 you should be able to Apr 19 04:25:39 because the actionbar drop downs look great Apr 19 04:25:44 spinners look ugly as fuck Apr 19 04:26:00 just values? so I'd want 1 strings.xml or? I'm not sure where the differentiation for orientation would be applied Apr 19 04:26:11 values/strings.xml Apr 19 04:26:12 va Apr 19 04:26:16 values-land/strings.xml Apr 19 04:26:18 he meant make two, one values and one in values-land Apr 19 04:26:24 ah Apr 19 04:26:26 which makes more sense than using values-port Apr 19 04:26:33 Yeah. Apr 19 04:26:50 t0mless: I added a two-arg constructor with 4.0.2 Apr 19 04:26:56 so you can include it in layout XMLs Apr 19 04:27:02 Tits Apr 19 04:27:14 I'll have to try that Apr 19 04:27:30 someone was having an issue with ABS earlier when you were offline Apr 19 04:27:49 some NPE on 2.3 but works on 4.0 Apr 19 04:27:56 after updating to 4.0.2 Apr 19 04:28:35 I pointed him to github issue tracker Apr 19 04:29:49 4.0 is so overrated Apr 19 04:29:54 im still using cupcake Apr 19 04:30:07 Custom rom on your nexus? Apr 19 04:30:24 :) Apr 19 04:46:39 how many devices support the google android backup service? http://code.google.com/android/backup/index.html Apr 19 04:46:54 * t0mless pokes ctate ^ Apr 19 04:58:16 t0mless, I imagine all the cts devices do? Apr 19 04:58:28 this channel rocks, i type questions, then delete most of them cause i figured out what i need to do next, thanks for letting me type it out! Apr 19 05:03:23 hello! Apr 19 05:04:00 hello Apr 19 05:04:26 anyone know why the eclipse plugin won't display an options to install for https://dl-ssl.google.com/android/eclipse/ ? Apr 19 05:04:39 i do not Apr 19 05:05:27 i do wonder if someone can help me with ndk-gdb. it says the android platform won't support thread debugging, but i'm using 2.3, and all the docs say that should work Apr 19 05:05:55 thesheff17 someone was having that issue earlier Apr 19 05:06:11 I stopped using Eclipse months ago though Apr 19 05:06:31 Tomasu, yea I have done this before but this time it isn't working Apr 19 05:06:36 maybe I should ditch eclipse as well Apr 19 05:06:49 pfn do you remember where on a.d.c the CTS device requirements were posted? Apr 19 05:06:58 * Tomasu hasn't used eclipse much, find it gets in the way Apr 19 05:09:31 nvm, found it Apr 19 05:16:19 has no mention of backup in there Apr 19 05:35:17 hello all Apr 19 05:46:12 http://imgur.com/gallery/YsWA9 Apr 19 05:50:46 http://i.qkme.me/35fnk4.jpg Apr 19 05:51:35 soundcloud isn't working Apr 19 05:51:37 oh noes Apr 19 05:52:32 neither is google music Apr 19 05:55:23 Pedobear says, "On a scale of 1 to 10 ... how old are you?" Apr 19 06:06:41 timezones suck Apr 19 06:06:59 or rather, other people not being awake when i need them.. sucks Apr 19 06:08:06 timezones suck too though Apr 19 06:08:25 china has the right idea! Apr 19 06:09:28 How can I make the emulator turn landscape? heh Apr 19 06:10:16 vadi2: http://developer.android.com/guide/developing/tools/emulator.html#KeyMapping Apr 19 06:10:27 ctrl+f11 Apr 19 06:10:32 aha thanks Apr 19 06:12:31 any maven-using android developers around? Apr 19 06:12:44 pretty sure I could ask that during peak hours and get no response Apr 19 06:12:59 (haha!) Apr 19 06:15:25 though I may have answered my own question Apr 19 06:15:28 google for the win Apr 19 06:18:23 JakeWharton: i backlogged it :| Apr 19 06:18:36 planning on learning tonight or tomorrow Apr 19 06:18:55 it's intimidating at first Apr 19 06:18:59 now I swear by it Apr 19 06:19:14 maven Apr 19 06:19:17 :-( Apr 19 06:19:17 but once you learn something, you also learn to push the boundaries of what it can Apr 19 06:19:18 i'm somewhat familiar with gnu make Apr 19 06:19:25 so i wonder how much worse anything could be Apr 19 06:19:28 haha Apr 19 06:19:36 I prefer maven because I don't have to tell it how to do its job Apr 19 06:19:40 unlike ant Apr 19 06:20:18 maven would have been next on my list, but I bumped it because I got a feature request (somewhat of a bugfix, but more of a feature request) from a potential user Apr 19 06:20:31 only a potential user? Apr 19 06:20:42 his feature request is something that other users will need Apr 19 06:21:01 reposition the text. he says the text is overlapping his call answer button Apr 19 06:21:20 going to make a slider that shows it live Apr 19 06:21:29 readme: bug fixed Apr 19 06:21:33 \o/ Apr 19 06:22:13 i'll clean up the method more but I set the hour and minute then for my thisWeek and dayAfterTomorrow I get my instance then set hour/minute to 0 to ensure its the earliest Apr 19 06:23:27 I need some new programming music Apr 19 06:23:40 I need a music player that can aggregate music sources Apr 19 06:23:41 JakeWharton: how about a ferret instead ? http://i.imgur.com/ZQPW0.jpg Apr 19 06:24:34 JakeWharton: songza has a playlist category for coding Apr 19 06:26:02 something with my audio is jacked Apr 19 06:26:05 (pun intended) Apr 19 06:26:21 neither sound cloud, spotify, nor Google Music will play anything Apr 19 06:26:40 JakeWharton: maybe your square reader killed the jack ! Apr 19 06:26:45 i need new headphones Apr 19 06:26:48 duh duh duh duh ! Apr 19 06:26:51 g00s: damn you Apr 19 06:26:52 because i broke the ones that reached my computer Apr 19 06:26:56 now i need to try it on a laptop Apr 19 06:26:57 so now I am just listening on my device Apr 19 06:31:48 same Apr 19 06:31:54 soundclound mobile client Apr 19 06:32:01 they have an interesting view pager indicator Apr 19 06:36:46 3 of the top links on news.ycombinator are about for profit space exploration \o/ Apr 19 06:40:50 this was an interesting story http://news.ycombinator.com/item?id=3857903 Apr 19 06:41:09 btw readme , i take regular trips to space - no ship required Apr 19 06:41:51 http://groklaw.net/ this is all pretty fascinating Apr 19 06:43:46 the oracle vs google thing has been going on so long now; tell me when they reach a verdict :) Apr 19 06:44:09 it's day 3? :p Apr 19 06:44:28 the verdict is: big win for the lawyers! Apr 19 06:45:17 wabz: 3 days too long :D Apr 19 06:45:19 reading this is good fun because it's interesting to see them forced to use words/explanations that the average juror can understand Apr 19 06:45:58 g00s: i don't do drugs Apr 19 06:46:04 well i have to admit, both sides do say things once in a while that are pretty fascinating - sheds light on other things Apr 19 06:46:17 readme: i don't do drugs; i get high from running ! Apr 19 06:46:25 like JakeWharton does in the morning XD Apr 19 06:46:40 yes Apr 19 06:46:42 that's what i do Apr 19 06:46:43 exactly Apr 19 06:46:44 yep Apr 19 06:46:45 right on Apr 19 06:46:47 backlogged it Apr 19 06:47:24 i've got a whole system of organization I'm working on Apr 19 06:47:36 got a todo list I use for everything I do on my computer.. it's a text file. Apr 19 06:47:50 got a bookmark category for interesting things that I don't want to read at the moment Apr 19 06:48:08 need to write some code to parse that and figure out whether I really want to read the articles programmatically Apr 19 06:48:34 readme: you've seen gina trapani's todo.txt stuff? Apr 19 06:48:43 i havent Apr 19 06:48:55 if you have a link i will add it to my bookmark category of things I may or may not read later Apr 19 06:48:58 ;P Apr 19 06:49:14 todotxt.com, as it happens :) Apr 19 06:49:39 haha Apr 19 06:49:54 readmetxt.com :D Apr 19 06:50:30 Leeds: awesome. I was thinking of doing something like this but looks like she beat me to it Apr 19 06:50:49 she's been working on it for a while Apr 19 06:54:09 bah Apr 19 06:54:17 i hate when you find shit online and they don't have it in your size Apr 19 06:54:37 g00s: running is off. new goal: become an XXL-sized individual Apr 19 06:54:45 they get all the good apparel Apr 19 06:54:54 someone brought up the other day that it's absurd that websites don't have a filter by size option Apr 19 06:55:06 when that is the most important criteria Apr 19 06:55:30 i like gina already, she's a fan of Starbuck and BSG in general Apr 19 06:56:07 good hunting Apr 19 06:56:55 JakeWharton: does the gf approve of your XXL ambitions :) Apr 19 06:57:16 she will when she see's all this DOPE ASS SWAG i'm wearing Apr 19 06:57:40 http://xkcd.com/37/ Apr 19 06:58:12 who? Apr 19 06:59:05 readme: actually, there are some great innovations coming in that area (fitting) Apr 19 06:59:45 i was reading about 6 mod ago about that scanner you get into that takes a 3d scan of your body, and with that you would theoretically be able to virtually try/fit clothing Apr 19 07:00:01 also, aspics has a scanner at their NY show store, but its just for feet Apr 19 07:00:16 it tells you which model is best, after some pronation parameters, etc Apr 19 07:00:23 asos.com is probably one of the best clothes shopping sites Apr 19 07:00:38 cool Apr 19 07:00:56 hipster shit? Apr 19 07:01:01 because i live in SF now... Apr 19 07:01:03 need to stock up Apr 19 07:01:09 UGG boots ! Apr 19 07:04:27 http://us.asos.com/Delusion/Delusion-Ominous-T-Shirt/Prod/pgeproduct.aspx?iid=1915235 Apr 19 07:04:30 WHAAAAAAAAAAAAAAAAT Apr 19 07:05:18 does anyone have experience with ndk-gdb? Apr 19 07:06:46 DAT SHIRT Apr 19 07:07:06 JakeWharton: XXL not available :( Apr 19 07:07:20 damn Apr 19 07:07:37 wtf is that shirt Apr 19 07:07:56 JakeWharton: its on sale … get it ! Apr 19 07:07:57 GET IT ! Apr 19 07:08:13 tattoo included Apr 19 07:08:27 i'd need a tattoo on my eyeball Apr 19 07:08:45 Tattoo sleeves* Apr 19 07:09:36 * g00s would have fun being a metahipster Apr 19 07:11:39 this looks dope: http://www.jumpinjammerz.com/leopard+skin+-+dsh/product-1120-pajamas/ Apr 19 07:11:50 i can't believe crap people are peddling for > $50 Apr 19 07:12:17 * g00s is laughing his ass off Apr 19 07:12:45 i can't believe thats $50 Apr 19 07:13:00 i could get that for like 25 rupees in india.. well if someone had the balls to make it over there Apr 19 07:13:59 JakeWharton: you also need one of these http://29.media.tumblr.com/tumblr_lo0s1ctlti1qbw3qfo1_400.jpg Apr 19 07:14:11 bought Apr 19 07:14:40 g00s: the best hipster bike gangs ever in boston Apr 19 07:14:48 I've seen people ride bikes way crazier than that Apr 19 07:14:55 like one with a wheel on the top that spins the wheel on the bottom Apr 19 07:15:26 that one is a better design, though. Apr 19 07:15:41 it could be more hipster if they made it single speed Apr 19 07:15:49 so this is level 98 Apr 19 07:16:16 there is no shifter Apr 19 07:16:18 found two things I like on that site Apr 19 07:16:20 not bad Apr 19 07:16:24 I wonder why they left the deraileur on Apr 19 07:16:27 maybe for extra clearance Apr 19 07:18:40 wow Apr 19 07:18:45 asos has a badass checkout form Apr 19 07:20:00 i would show you, but I don't have an image editor to blur out my info Apr 19 07:20:23 JakeWharton: did you just get these ? http://www.asos.com/Henrik-Vibskov/Henrik-Vibskov-Asymetric-Fly-Tapered-Trousers/Prod/pgeproduct.aspx?iid=1920826&cid=6993&sh=0&pge=0&pgesize=20&sort=-1&clr=Brown Apr 19 07:22:11 yep Apr 19 07:22:13 and in green Apr 19 07:24:07 does anyone know where I can find information of how to support "fake dual touch"-devices (modded Xperia X8 for instance). Some users complain that multi touch doesn't work in my application but it works in other applications. I tried to make a version to access MotionEvent.getPointerCount() etc with reflection, but that didn't seem to help. Apr 19 07:24:52 just restrict them using the manifest Apr 19 07:25:29 ali__: ah, yes that would be an option. but I really want to do everything for my users :) Apr 19 07:26:16 I don't get the point of doing that Apr 19 07:26:22 how is the multitouch faked, then? Apr 19 07:26:32 if the device doesn't support it then you cant really do anything about it Apr 19 07:26:39 alankila: I guess that is what I am asking about, if someone has done this Apr 19 07:26:51 they might give you a bad rating Apr 19 07:27:18 ali__: true true Apr 19 07:27:54 hii Apr 19 07:28:13 can one change the time for a long click on a view? Apr 19 07:32:53 preferenceactivity y u no find my fragment Apr 19 07:33:07 ali__: that is indeed what I should do, thanks Apr 19 07:33:40 dannyD_: nope Apr 19 07:34:02 dannyD_: unless you write something custom Apr 19 07:34:19 ali__: mm to bad.. have to done so? Apr 19 07:35:00 dannyD_: but in general you should not mess with such things because the user is used to the general timing of a long press and if you change it the experience changes Apr 19 07:35:09 in my opinion its a bad idea Apr 19 07:35:27 ali__: i i agree with you Apr 19 07:35:38 but this time i need to..:D Apr 19 07:35:58 if i return false..then the event will not fire right.. Apr 19 07:36:00 hmmm Apr 19 07:36:13 create a custom button and check if it received the action down event Apr 19 07:36:27 keep count of the time Apr 19 07:36:33 if action up is received reset it Apr 19 07:36:44 shouldn't be to difficult Apr 19 07:38:34 ali__: your right.. less work..i guess.. :-/ so close...yet so far.. Apr 19 07:42:04 it looks insanely easy to simply copy the latest View source code and change line 13539 Apr 19 07:42:14 but I think changing this value is a really bad idea Apr 19 07:42:20 you're breaking the pattern that users have with all their other apps Apr 19 07:42:30 your app will feel alien to them Apr 19 07:53:34 hello h00s Apr 19 07:54:18 hi g00s Apr 19 07:54:27 hello :) Apr 19 07:54:36 what you doing? Apr 19 07:54:50 reading about the python tertiary operator Apr 19 07:55:08 *ternary Apr 19 07:55:53 so I just used the new preference apis with preferencefragment for the first time Apr 19 07:55:58 and I am thinking, I don't really need headers. Apr 19 07:56:21 is there a way to do this so that I don't have to change the code back to headers later? I'd just like one simple preference screen, somewhat like the old style, except using fragments Apr 19 07:57:02 I suppose I can just default to this one preference screen Apr 19 07:57:06 and show the fragment Apr 19 07:59:16 hello, can u recommend a book to learn java basics especially for android? i'm not interested in java swing and all of JVM stuff with standard library, just the basics to grasp of a language Apr 19 07:59:45 umren: either thinking in java, or head first java Apr 19 08:00:39 Android professional edition 2 by retro meir Apr 19 08:01:08 ali__: that doesn't teach java :| Apr 19 08:01:27 you can just learn it while you learn android Apr 19 08:01:32 its not that hard Apr 19 08:03:38 umren, you want a book or you are also video tutorials right? Apr 19 08:04:59 ali__, I think, for a beginer is this hard. umren you are a dev beginer? Apr 19 08:05:18 well, i know some php, javascript ;) Apr 19 08:05:40 ahh, done loging to sdcard :) Apr 19 08:06:23 http://www.youtube.com/playlist?list=PL2F07DBCDCC01493A&feature=plcp < vodeo tutorial for android coding Apr 19 08:06:59 I'm mainly work with .NET, and started java when I started android a few months ago Apr 19 08:07:11 not so hard, I think Apr 19 08:09:28 Where am I supposed to call PreferenceActivity's startWithFragment from? Apr 19 08:09:32 Doing it in onCreate causes a loop Apr 19 08:10:08 click http://developer.android.com Dev Guide and start reading. Apr 19 08:10:16 @ umren Apr 19 08:11:24 okay ;) Apr 19 08:11:59 or show this video tutorials http://www.youtube.com/playlist?list=PL2F07DBCDCC01493A&feature=plcp Apr 19 08:12:34 umren, you have downloading the android sdk? Apr 19 08:13:46 no, i got everything installed and working Apr 19 08:18:46 haha, putting it in onBuildHeaders works Apr 19 08:18:52 but, I don't know how risky this is Apr 19 08:24:06 nah, that didn't work Apr 19 08:24:16 basically, I only have one preference header at the moment so it's pointless to display it. Apr 19 08:24:33 I'd like to skip directly to the PreferenceFragment that I show when I click that header instead of showing the headers Apr 19 08:28:12 f' yeah Apr 19 08:28:19 good old setContentView took care of it for me. Apr 19 08:28:29 solved \o/ Apr 19 08:34:10 hi Apr 19 08:34:36 i am new to android programming anyone have any good tutorials on how to use tabs' Apr 19 08:35:12 i have looked at the doc on the google tutorial views but they still dont unstand all of the conetent Apr 19 08:35:25 any help on links or documents Apr 19 08:35:26 pleawse Apr 19 08:36:09 whatever you do, don't use TabActivityt Apr 19 08:36:19 oh Apr 19 08:36:25 it's deprecated and ugly Apr 19 08:36:26 thats what i have been doing Apr 19 08:36:37 any other ways Apr 19 08:36:52 thats what they have on the devdoc on google sdk Apr 19 08:37:08 if you read it more carefully it says it is deprecated Apr 19 08:37:15 can you recommend another method Apr 19 08:37:21 you're seriously better off just using buttons Apr 19 08:37:27 or using ActionBar tabs Apr 19 08:37:40 SimonVT said you can just use TabWidget Apr 19 08:37:54 i used TabHost + TabWidget Apr 19 08:37:58 look for actionbarsherlock if u wanna use your app on 2.x devices Apr 19 08:38:38 i am totally new to android programming and justr nned to find a good start point Apr 19 08:38:42 g00s: makes ense Apr 19 08:38:58 actionbarsherlock uses the compatibility package doesn't it? Apr 19 08:39:11 the dev doc on android sdk by google is confusing for me Apr 19 08:39:19 So should be compatible even down to API level 4 Apr 19 08:39:30 yep Apr 19 08:39:48 androidrookie: did you extend TabActivity or FragmentActivity Apr 19 08:39:58 yes Apr 19 08:40:03 i use actionbarsherlock for tabs and spinners. in android 3.0+ it uses native actionbar Apr 19 08:40:09 Is it this, or is it that? -Yes Apr 19 08:40:09 Mikellip: yes but ABS is actually desgin to support API level 7 and greater Apr 19 08:40:20 cyrilmottier: ah ok Apr 19 08:40:34 i had follow the tutorial on the site but when i test it it gave me erros Apr 19 08:40:46 androidrookie: did you extend TabActivity, or FragmentActivity? Apr 19 08:40:59 TabActivity Apr 19 08:41:24 androidrookie: learn about fragments and the compatibility package from start (http://developer.android.com/sdk/compatibility-library.html) Apr 19 08:41:36 i find this astonishing, because even on the TabActivity page it tells you to extend FragmentActivity Apr 19 08:41:40 http://developer.android.com/reference/android/app/TabActivity.html Apr 19 08:42:12 please follow the instructions on that page on how to extend FragmentActivity and implement a tabbed ui Apr 19 08:42:33 ok thanks i will try that Apr 19 08:43:12 androiddrookie: if you use actionbarsherlock your app extends sherlockfragmentactivit and works down to api4 Apr 19 08:43:27 you get tabs : actionbar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); Apr 19 08:43:45 and actionbar.addTab() Apr 19 08:46:41 or do this ^^ Apr 19 08:47:09 how can i show a dialogfragment in a mapactivity? Apr 19 08:47:26 hehe Apr 19 08:47:51 its amazing how google neglects the maps api Apr 19 08:47:53 storkme: you can't if you are using the support package Apr 19 08:48:40 Hello. I'm doing a Camera filter application and I'm having trouble figuring out the best strategy to do this. I have a prototype that uses setPreviewCallbackWithBuffer() (with a single buffer) and in onPreviewFrame() copies data to a second buffer and pokes a secondary thread to do the filtering and drawing. Apr 19 08:48:56 luis: instaclone? :) Apr 19 08:49:10 Heh, no. Apr 19 08:49:16 A real-time filter. Apr 19 08:49:41 it's kinda funny Apr 19 08:50:27 Anyway, I'm guessing that the built-in camera application would be a good place to look for inspiration but I'm having trouble finding its source code. Any tips? Apr 19 08:53:22 hmm Apr 19 08:53:37 i've got a linear layout with 2 images and a EditText in the middle Apr 19 08:54:04 How can I set it so that it shows the two images Apr 19 08:54:12 and the EditText fills the space between the two image Apr 19 08:54:52 because I either get that the last image will "fallout of frame" or that the EditText will be invisible/extremely narrow Apr 19 08:55:14 Or should I use a different layout than LinearLayout? Apr 19 08:56:46 set each image to wrap_content, set the EditText to 0dp and layout_weight="1" Apr 19 08:57:03 use these settings on either width or height, depending on whether your layout orientation is horizontal or vertical Apr 19 08:57:45 https://aws.amazon.com/marketplace/ Apr 19 08:59:30 http://news.ycombinator.com/item?id=3861741 Apr 19 08:59:58 hmm the EditText is still very narrow readme... Apr 19 09:00:02 waaat g00s Apr 19 09:00:07 alowaniak: you may have done it wrong? Apr 19 09:00:09 show me code Apr 19 09:00:16 that amazon market place seems a very cool idea Apr 19 09:01:32 rendar: how are you not ordering your free sony xperia right now!? Apr 19 09:01:46 free loaner? Apr 19 09:02:07 Leeds: if I told you you could have a free hooker for 30 days, you wouldn't be complaining. Apr 19 09:02:13 why is this any different Apr 19 09:02:23 readme: lol Apr 19 09:02:25 hello, has someone managed to get opengl 2.0 working in the emulator? (same question one more time). the configurationInfo.getGlEsVersion(); returns 0.. Apr 19 09:02:26 because you've got to send it back? Apr 19 09:02:30 lol Apr 19 09:02:48 readme http://pastebin.com/QkbBxR6E Apr 19 09:03:49 alowaniak: looks like it should fill the space between the two ImageViews horizontally Apr 19 09:03:52 what is the actual result? Apr 19 09:03:58 where can you get a free sony xperia?(the free hooker too...;)) Apr 19 09:04:00 the EditText is really narrow Apr 19 09:04:06 narrow vertically? Apr 19 09:04:09 ye Apr 19 09:04:11 no Apr 19 09:04:13 horizontally Apr 19 09:04:15 it's horizontal Apr 19 09:04:22 how narrow? Apr 19 09:04:31 wll like only allows one letter really Apr 19 09:04:37 so space next to image to the right Apr 19 09:04:41 is empty Apr 19 09:04:50 thegrinch1: http://developer.sonymobile.com/cws/devworld/technology/borrowaphone Apr 19 09:04:50 does the outer LinearLayout fill its parent? Apr 19 09:05:09 has match_parent Apr 19 09:06:10 but with fill_parent i get same result Apr 19 09:06:29 alowaniak: i just pasted it in my layout editor Apr 19 09:06:31 and it isn't narrow Apr 19 09:06:32 erm... match_parent and fill_parent are the same thing Apr 19 09:06:39 something you're doing that I'm not Apr 19 09:06:50 well ye the layout editor doesn't show it narrow to me neither Apr 19 09:06:57 Leeds: but he could have been inflating that layout and then putting it somewhere.. that's what I was asking about Apr 19 09:06:58 it's an actionbarview btw Apr 19 09:07:08 (actionsherlock for that matter) Apr 19 09:07:16 readme: just a general comment :) Apr 19 09:07:40 alowaniak: i have no idea. Using the width/height="0dp" and then layout_weight="1" is pretty common Apr 19 09:07:52 so idunno, mayb it's indeed the outer layout that it gets inflated in that's restricting it somehow..? but if i set layout to xdp or ems to x then it does get x wide Apr 19 09:08:24 I think it is being inflated and then put somwhere with a fixed and small size Apr 19 09:08:56 fuck, i need a cheap but comfy & healthy chair. this medicine ball is hurting my ass Apr 19 09:08:59 hi.. is it dangerous to use the android phone as a usb stick to start an ubuntu installation on a computer? will it skrew my phone up? Apr 19 09:09:26 like a pendrive.. Apr 19 09:11:51 no right?! Apr 19 09:13:31 I think it's better to ask that @ #android? Apr 19 09:14:20 alowaniak: mmm yes maybe..but i think the cool people are here ;-) Apr 19 09:14:43 yes, the cool people are the ones who don't ask lame questions in the app dev channel Apr 19 09:15:18 what is a app? Apr 19 09:15:29 xD Apr 19 09:15:33 Hi |Marco| Apr 19 09:15:34 MarcAurelio: a piece of software delivered in an apk Apr 19 09:15:40 <|Marco|> ronnier: hello Apr 19 09:16:02 What did the scan result into? Apr 19 09:17:25 <|Marco|> hold on, be right back Apr 19 09:19:21 Do you now the BT Address of the device? Apr 19 09:19:27 hi all Apr 19 09:20:01 It is not the best of my sources (just a quick test activity); probably you could use it to test the scan and connectivity? Apr 19 09:20:59 an app are bits in a machine :D Apr 19 09:27:55 <|Marco|> ronnier: yes, I know that mac address it has Apr 19 09:28:01 Are there any code snippits for dealing with onOffsetsChanged() for Live wallpapers? I'm settingmy camera position and orientation from xOffset and it works great until someone with a wrapping homescreen goes from screen 5 wrapped around to screen 1 which means the offset jumps from 1 to 0 instantly Apr 19 09:28:33 so the camera jumps from far right to far left instantly too Apr 19 09:28:59 Just out of curiosity: what kind of IDE are you using for your android development? Eclipse? Apr 19 09:29:11 <|Marco|> me ? Apr 19 09:29:12 IntelliJ IDEA Apr 19 09:29:41 vim Apr 19 09:29:42 |Marco|: Yes, ;-) I could export you my test project? If interrested? Apr 19 09:30:06 Nice vim ;-) Apr 19 09:30:18 yeah, nice Apr 19 09:30:39 ronnier: using eclipse but waiting on intellij to fix two bugs I filed. both are being worked on :) Apr 19 09:30:47 once they are fixed I will attempt to switch again.. Apr 19 09:31:03 @readme: which bugs? Apr 19 09:31:27 IntelliJ have not used it, what makes this a positive IDE to use? Apr 19 09:31:46 <|Marco|> ronnier: I'm usin eclipse Apr 19 09:31:54 hoangtran: http://youtrack.jetbrains.com/issues?q=by%3A+tdignan Apr 19 09:31:58 good refactoring Apr 19 09:32:11 and it looks good :D Apr 19 09:32:37 I am not negative about the eclipse refactoring also.. Apr 19 09:32:51 |Marco|: Did the scan result in anything? Apr 19 09:33:08 good navigation Apr 19 09:33:13 ronnier: apparently it's got a lot of nice features, but when i tried it on Linux Mint I ran into too many fundamental issues with the UI that I couldn't use it for now. Apr 19 09:33:17 good navigation functions Apr 19 09:33:39 <|Marco|> okay, what I ment with 'scan' was running adb logcat and grep'ing for Bluetooth Apr 19 09:33:49 @readme: seems minor bugs though Apr 19 09:33:50 * ronnier curious: what kind of navigation? Apr 19 09:34:33 hoangtran: minor? they were blockers Apr 19 09:34:39 hoangtran: i couldn't click the file menu! Apr 19 09:34:40 to definition/to base class, to symbol usage, to class/file/symbol, ... Apr 19 09:34:47 or any of the menus in the top nav bar Apr 19 09:34:50 they just *didn't work* Apr 19 09:35:11 I also tried it on 5 different jdk versions to make sure everything was set up right. Apr 19 09:35:45 @readme: so I'm lucky not seeing them, I'm on WindowsXP/7 Apr 19 09:36:03 hoangtran: yeah, I am fairly certain the bugs are only when you run it on linux mint 12 or a similar linux distro Apr 19 09:36:09 they are working on it Apr 19 09:36:14 so I look forward to trying it soon Apr 19 09:36:50 |Marco|: just exported my test project, maybe it could help you connect? Apr 19 09:37:06 <|Marco|> ronnier: yes please :) Apr 19 09:37:43 and the one I met is: press Run when the emulator is not open yet, it will open the emulator but stop then (not putting the apk into the emulator & run it) Apr 19 09:38:40 ah Apr 19 09:38:43 that's a painful one Apr 19 09:38:55 i also found a minor bug in eclipse adt today Apr 19 09:38:58 very minor Apr 19 09:39:06 yes, pain Apr 19 09:39:29 ever since I started taking omega 3 supplements i have been finding bugs in all sorts of software I use Apr 19 09:40:14 it's OK to update an adapter outside of the main thread and call it's notify method, right? Apr 19 09:40:22 (that's why it's separate?) Apr 19 09:40:33 and sometimes, it change the project.properties file, the android target value (ex.: from 7 to 8) Apr 19 09:41:04 from 7 to 8 Apr 19 09:42:02 vadi2: notifyDataSetChanged needs to be called from the UI thread Apr 19 09:42:23 Ah does it. Okay. But clearing and adding to the adapter is ok? Apr 19 09:42:57 yeah, I'm fairly sure it's OK Apr 19 09:43:01 but I am a bit rusty on this Apr 19 09:43:09 hm Apr 19 09:43:36 how can I tell what can I and cannot call in the UI thread? Apr 19 09:43:42 The docs don't mention anything special Apr 19 09:44:02 or rather, the other way around, from not the UI thread Apr 19 09:44:38 hm, I might even be wrong Apr 19 09:44:45 let me look at the src of that Apr 19 09:45:05 hi i've got a fragment lifecycle related question… in my activity i'm switching between 2 fragments using FragmentTranscation.replace() in an ActionBar.TabListener.onTabSelected() method. i'm not creating new fragment instances on every switch but using those which i've created once in an initialization routine. now, i've noticed that the fragments always get onCreate/onDestroy callbacks although they aren't instantiated afresh on every switch Apr 19 09:46:45 vadi2: well, notifyDataSetChanged is a delegate to notifyChange of DataSetObservable which is a delegate to onChanged of each DataSetObserver Apr 19 09:46:59 so if those onChange touch views directly, then you need to call notifyDataSetChanged from the UI thread. Apr 19 09:47:26 as far as will it be OK to not also make your updates to the list on the UI thread, that depends on what your other code is doing. Apr 19 09:48:43 "Developers in 38 countries around the world can now submit Metro-style apps for Windows 8 to Microsoft's Windows Store." Apr 19 09:49:05 looks like MS also rolled out trial apps; we've been wanting this shit on the android market forever Apr 19 09:49:16 in my code I am clearing and refilling the data source in a background thread and calling notifyDataSetChanged on the UI thread Apr 19 09:49:23 and this code works and is well tested Apr 19 09:49:30 but it doesn't mean it's necessarily correct. Apr 19 09:49:45 "Microsoft will initially take a 30 percent cut of sales, dropping to 20 percent if an app racks up more than $25,000 in sales." Apr 19 09:50:01 metrosexual? Apr 19 09:50:40 * readme would love to hit 25k in sales. Apr 19 09:50:47 Only need to sell 25k apps to do that =o Apr 19 09:52:17 i wonder: how do i have to escape html snippets that i put in strings.xml Apr 19 09:56:50 you can probably use cdata Apr 19 09:56:54 http://www.w3schools.com/xml/xml_cdata.asp Apr 19 09:58:35 readme: ok, taking a look. thanks :D Apr 19 09:58:52 but maybe there's even a different solution... Apr 19 09:59:08 can an android project that is built as library have its own set of assets? Apr 19 09:59:10 tapas: I've done it in two different ways in different apps - at least Apr 19 09:59:34 one has a string with xml-type escapes, < > everywhere... Apr 19 09:59:57 yeah, that's what i was thinking about doing.. Apr 19 10:00:08 CDATA sounds more promising though : Apr 19 10:00:08 that gets loaded into a webview... Apr 19 10:00:12 :D Apr 19 10:00:37 alternatively, depending on how complex your snippets are - you can actually just use things like foo in a regular string Apr 19 10:02:00 i tried
but it was just ignored :D Apr 19 10:03:04 cdata is just fine for my purposes.. thanks for the hints.. Apr 19 10:03:14 * readme nap tiem Apr 19 10:03:17 br doesn't work, but \n probably does Apr 19 10:05:04 morning Apr 19 10:06:50 hey Apr 19 10:07:24 what's new? Apr 19 10:08:14 mid-week dip in downloads :( Apr 19 10:08:43 yeh, as usual. Saturday's the best! Apr 19 10:09:35 yeah sat and sun are pretty good Apr 19 10:09:52 i got a nice peak over easter as well Apr 19 10:10:15 2 player reactor right? Apr 19 10:10:23 yep Apr 19 10:11:47 do you market that app at all? Apr 19 10:11:52 promote* Apr 19 10:12:09 no, not really. it's running on its own now Apr 19 10:12:17 nice Apr 19 10:12:31 though it's ranking is dropping in most markets, have to do something Apr 19 10:12:36 maybe publish an update Apr 19 10:12:45 there are a few of the old school apps that are properly engrained into the top 10 lists now Apr 19 10:13:27 yeah, being an early adopter really paid off Apr 19 10:14:28 probably have no luck with any new games, should i ever finish them :) Apr 19 10:14:37 guys anybody have idea why htc take so much time to upgrade soft. for older version of phones too? seems like business idea rather then technical problem Apr 19 10:15:33 i guess they don't see the value Apr 19 10:16:35 I'd say it's down to Sense and carrier stuff, mainly - they need to keep their own stuff ported to multiple devices, multiple OS versions Apr 19 10:18:18 guy what do you prefer for your app: paid or free+add, which kind do you think give more money? Apr 19 10:19:00 i do both Apr 19 10:19:03 * g00s == Leeds Apr 19 10:19:12 I don't do ads out of personal principle Apr 19 10:19:12 revenue for me is about 50/50 Apr 19 10:19:30 my ethics are still stronger than my greediness Apr 19 10:19:33 * Ge0rG doesnt do ads because he hates them as a user Apr 19 10:19:41 morning, all Apr 19 10:19:43 same Apr 19 10:19:45 anyone got any insight on http://code.google.com/p/android/issues/detail?id=25563 ? Apr 19 10:19:47 * sam same Apr 19 10:19:54 * g00s hates adds too, and they just look like shit on mobile devices Apr 19 10:20:04 oh, and they eat bandwidth Apr 19 10:20:14 and spy on you! Apr 19 10:20:15 yeah i know. interestingly i've never received a complaint about the ads Apr 19 10:20:15 g00s: and sometimes steal personal info Apr 19 10:20:19 and battery Apr 19 10:20:24 I do ads, and I've made many cents with them Apr 19 10:20:26 and your mom! Apr 19 10:20:31 * hashbang is rooted and AdAway'ed. Apr 19 10:20:31 :O Apr 19 10:20:56 * hashbang also buys a fair share of apps, when a paid version is available. Apr 19 10:21:00 however, ads are only worth it if you have tons of users Apr 19 10:21:26 yeah. make a fart app with ads, and get rich :< Apr 19 10:21:28 "i moved all 384 apps i had to SD" Apr 19 10:21:30 like, 1k active users / day minimum Apr 19 10:21:32 i'd still rather not put up ads, and make a paid version Apr 19 10:21:58 Leeds: it doesn't need that many to be moved to trigger it. 30-50-ish seems to do. Apr 19 10:22:03 ads seems to work best on the less tech savvy users like the people who download ghost radar, joke apps, fart and soundboard types Apr 19 10:22:21 hashbang: yeah, but... 384 apps moved to SD? that's pretty extreme Apr 19 10:22:32 Leeds: yeah, that's asking for trouble. Apr 19 10:22:37 Leeds: personally, I just move big games. Apr 19 10:22:46 Leeds: but even with that, I've been bitten. Apr 19 10:23:05 Leeds: the abnormal restarts also corrupted my SGS2's internal 16GB /sdcard too. Apr 19 10:23:15 deweylewie: they also work well for smaller apps which don't cross the usefulness threshold for paying... there's a massive psychological bump from $0 to $1 Apr 19 10:23:33 but with paid, you get cash once, with ad, it lasts for sometimes Apr 19 10:23:51 deweylewie: Leeds: also, apps that don't have any additional functionality in the paid version, other than 'no ads' Apr 19 10:23:55 hashbang: there are apps which shouldn't be moved Apr 19 10:24:24 Leeds: I never force anything, and I only use the native Android 'move to SD' button in the application management settings Apr 19 10:24:43 Leeds: is there a way to tell what apps shouldn't be moved? Apr 19 10:24:52 also you could look into offerwalls such as tapjoy, to unlock some features from your "pro" version. no ads for example Apr 19 10:24:57 hashbang: not easily for users Apr 19 10:25:03 Leeds: exactly. Oops. Apr 19 10:25:19 Leeds: obviously apps which use widgets are out. Apr 19 10:25:21 hashbang: anything with a widget, anything which runs in the background or responds to broadcasts, possibly anything which runs at boot Apr 19 10:25:44 Leeds: A few games autostart at boot - I don't move them any more. Apr 19 10:26:01 autostart at boot? isn't that a bad idea? Apr 19 10:26:07 Leeds: Zynga's stuff and the new version of Asphalt are such. Apr 19 10:26:11 that's also a separate issue - games and other 'foreground' apps which run services for some reason Apr 19 10:26:29 RobinB: plenty of apps which legitimately run at root Apr 19 10:26:31 er, boot :) Apr 19 10:26:45 yeah, i mean games Apr 19 10:27:20 Leeds: I do wonder if some of the apps that autostart are merely set that way because the dev wants them to "startup" quickly when the user "starts" them. Apr 19 10:27:27 any idea how i can remove a window title when i'm using theme=Theme.Dialog ? Apr 19 10:28:19 hashbang: I suspect it's more things that want to be able to do "play me!" notifications, or do silent content updates - things like that Apr 19 10:28:25 Leeds: what about the other two conditions you described: "anything which runs in the background or responds to broadcasts". How could one check for those? Apr 19 10:28:41 hashbang: as a user - you can't, really Apr 19 10:28:59 Leeds: the updates thing could be tied to change of 3G/WiFi status. If there's no network, you can't update anyway, after all... :-) Apr 19 10:29:28 there are much better ways of doing it, of course... but we all know that most developers (like us) are lazy :) Apr 19 10:29:37 Leeds: what broadcasts were you thinking of, specifically? The Autostarts app shows most (all), I think. Apr 19 10:29:55 hashbang I think using a broadcastreceiver means you need START_AT_BOOT permission Apr 19 10:30:37 things like network connectivity changes - I wrote a tiny app once which was meant to log into a wifi network which needed you to submit a web form to use it - it watched for wifi to come up, looked to see if it was that network, and submitted the form Apr 19 10:30:50 deweylewie: false - you only need that to run at boot time :) Apr 19 10:31:06 oh thanks Leeds I wasnt sure Apr 19 10:31:39 just an example... anyway, /me afk Apr 19 10:33:42 (FYI, games I have which autostart after startup are: Slice It!, Asphalt 6, Scramble Free, Words Free. Other big apps which autostart are: Photoshop Express, Crackle, Hotmail, OfficrSuite, Kaspersky, Skype.) Apr 19 10:34:56 lots of big apps have quite unreasonable permissions Apr 19 10:35:09 especially games Apr 19 10:36:23 somebody could probably start a business, giving you a really good description of how an app *really* uses permissions Apr 19 10:36:32 a db of these Apr 19 10:36:48 someone made a big list trying to explain what each permission is used for Apr 19 10:37:00 on one of the forums, androidforums.com I think Apr 19 10:37:05 but how a dev rurally uses it, is another matter Apr 19 10:37:09 *really Apr 19 10:37:17 hmm i've got a EditText and when focused it has this blue bar under it Apr 19 10:37:23 anyway to change it to a different color? Apr 19 10:37:26 yeah but you can't know unless you decompile Apr 19 10:37:38 well, there would be some reversing, yeah Apr 19 10:37:52 and even then you don't know what they do with your info if they are sending it to a web server Apr 19 10:38:25 i think the permission system on android is broken Apr 19 10:38:39 oh well ! Apr 19 10:38:46 but accepting market permissions is probably just a no-thought inconvenience for the general user population Apr 19 10:39:22 optional permission would be nice Apr 19 10:39:32 once they are decided that they want to try the app, having to read and then accept permissions isnt a big deal, the desire to get the app overcomes any hesitation because it might be taking their info Apr 19 10:41:38 I'm not sure how it can be improved. It should work very well in theory Apr 19 10:42:47 you are told exactly what an app can do with your phone, if you don't like that then don't download it. The problem is that people will still download it Apr 19 10:44:31 its just like putting health info in McDonalds burgers, nobody that wants a burger reads the salt/fat/sugar content Apr 19 10:44:58 Can I use a checkbox to manage wich methods should be included in the oncreate method? Like if button 1 is checked then include method1(); ? Apr 19 10:45:30 O.o Apr 19 10:46:16 readme: java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Apr 19 10:46:31 readme: well... that's silly, the app freezes while it's updating. I wanted to thread it off :( Apr 19 10:47:03 vadi2: do a post Apr 19 10:49:09 I'll read up on how that works. Right now I refreshed the adapter for a new thread + used onUiThread to call the notify Apr 19 10:50:36 deweylewie: McAfee tells you what host names an app communicates with. I don't know whether that's done on the fly locally, or upstream at McAfee's R&D by running apps in sandboxes, but it's pretty cool. Apr 19 10:50:45 deweylewie: until apps start obfuscating, anyway. Apr 19 10:51:44 deweylewie: Blackberry's permission model is nice; for every permission required by every app, the user can accept always, deny always, or ask every time. Apr 19 10:52:34 I think theres an android app that can deny permissions too? It sounds pretty useful Apr 19 10:53:06 deweylewie: LBE Privacy Guard Apr 19 10:53:15 deweylewie: it's closed source and needs root, though. Apr 19 10:53:22 Hi, I'm trying to set a LinearLayout at the bottom, inside another LinearLayout which is with CENTER properties. I don't get it, when I set it as BOTTOM, it comes under (not bottom) my main LinearLayout (the center one). What could I do? Apr 19 10:53:31 Sorry, I'm starting with Android Apr 19 10:53:38 ali__: did you mean a post for the adapter updating, or notification? Apr 19 10:54:13 http://whispersys.com/permissions.html looks interesting, too Apr 19 10:54:15 i've got a EditText and when focused it has this blue bar under it; (how) can I change the color of this bar? Apr 19 10:54:21 oh yeah LBE I've heard of but there even seems distruct with that since its Chinese and needs every permission available too Apr 19 10:55:02 deweylewie: I used it for a bit, and gently reversed it. Apart from phoning home for updates to itself and a per-app whitelist, it looked OK. Apr 19 10:55:27 oh ok Apr 19 10:55:37 deweylewie: but my device ended up getting a bit unstable, and I wasn't sure whether LBE was to blame. Apr 19 10:55:54 deweylewie: it was a mere HTC Hero though, and it got a bit pokey by the end of 2011. :-) Apr 19 10:56:59 I still have a 600mhz 2.1 device running the old market :D Apr 19 10:58:25 <[deXter]> Hey all, what's a good book these days for ICS development? Apr 19 10:59:32 [deXter]: i would probably wait for reto's 3e Apr 19 10:59:56 g00s: I've got Reto Meier's 2e, and it looks pretty good from a browse Apr 19 11:00:38 the only other one /might be/ programming android (oreilly - think the rest suck Apr 19 11:00:58 and i have seen all of the rest :) Apr 19 11:00:58 <[deXter]> Hmm Apr 19 11:01:55 <[deXter]> Does reto meier have an early access program? : Apr 19 11:01:56 <[deXter]> :P Apr 19 11:02:05 i dunno Apr 19 11:02:10 its due soon Apr 19 11:02:32 actually, i think its lame reto isn't on this channel Apr 19 11:02:38 since he's developer relations :| Apr 19 11:02:43 g00s: he hangs out on Google+... Apr 19 11:02:49 g+ sucks Apr 19 11:02:54 :D Apr 19 11:03:07 irc ftw ! Apr 19 11:07:38 hey guys how is everyone. What is an ideal way to making a file explorer that would check both the memory card and physical locations on the phone? Apr 19 11:08:34 A Google employee made something called DiskUsage Apr 19 11:08:46 I think it was open source Apr 19 11:09:08 which inspects internal and extrenal storage Apr 19 11:09:21 deweylewie: do you have a link or anything? Apr 19 11:09:30 not to hand but it was on the market Apr 19 11:09:35 "DiskUsage" Apr 19 11:10:31 let me take a look Apr 19 11:11:01 deweylewie: nope that isnt coming up on the app store Apr 19 11:11:38 try google search Apr 19 11:12:43 eagles0513875_: https://play.google.com/store/apps/details?id=com.google.android.diskusage Apr 19 11:13:31 ty hashbang Apr 19 11:13:47 presumably that's the one deweylewie was thinking of Apr 19 11:13:59 that is actually not what i am after though Apr 19 11:14:11 when i say file explorer i mean one that lists all the files not how much space each is taking up Apr 19 11:17:35 Hi, I'm trying to set a LinearLayout at the bottom, inside a LinearLayout which is set in center. But it doesn't go to the bottow. What could I do? Apr 19 11:18:06 i want it to display a list of files in this app but then i will have to tweak it to where it lists files that the application can open the file formats that this particular project supports Apr 19 11:19:33 yeah hashbang thats the one Apr 19 11:19:42 g00s, so Oreilly's uprank is (partly) because you haven't read it yet, right? :p Apr 19 11:27:15 hi Apr 19 11:29:52 hey Apr 19 11:34:18 we used to be able to browse /data/app Apr 19 11:34:20 is that gone? Apr 19 11:36:47 <`z> mikedg, without root, yes Apr 19 11:37:02 <`z> on my gnex, if i don't give ES file explorer root, i can't see /data Apr 19 11:37:05 <`z> anything in /data* Apr 19 11:37:14 <`z> same with a stock phone with astro Apr 19 11:37:30 but it used to be the opposite :/ Apr 19 11:37:33 <`z> yep Apr 19 11:37:34 <`z> :| Apr 19 11:37:40 wonder if you just cant list, but you can get files still maybe? Apr 19 11:38:07 any chance you could try? Apr 19 11:38:26 i dont have root on my phones, so i cant actually see the file names, and dont have time to write a test Apr 19 11:38:39 so how would i know what to pull :) Apr 19 11:39:36 <`z> o.o Apr 19 11:39:52 <`z> mikedg, how about Apr 19 11:39:53 <`z> adb shell Apr 19 11:39:56 <`z> cd /data Apr 19 11:39:57 <`z> ls Apr 19 11:39:58 if you have root, just go in there and see a file, then try doing adb pull abnlbalba Apr 19 11:40:10 yeah thats what ive been trying Apr 19 11:52:23 hello Apr 19 11:52:39 Is is possible to have android.nfc.action.NDEF_DISCOVERED in a IntentService in my manifest ? Because i tested and it's don't work Apr 19 12:08:12 nobody ? Apr 19 12:42:47 if I wanna set a HEIGHT of something, how can I write "fill_parent" minus some % ? for example, the fill_parent - 20% Apr 19 12:43:20 RafaFirenze: sounds like you want layout weights Apr 19 12:46:23 [wongk] yes Apr 19 12:46:34 sorry I'm starting with Android :) Apr 19 12:46:44 sorry for what? Apr 19 12:47:25 :) Apr 19 12:52:41 I'm newbie Apr 19 13:05:29 hmm i've got a collapsible action vie Apr 19 13:05:31 view* Apr 19 13:05:41 and I want to collapse it when clicked on an button in it Apr 19 13:05:53 how can I get the MenuItem to collapse it from within the view? Apr 19 13:07:12 afternoon all :) Apr 19 13:10:57 is there a way to add some text to google play link, that is sent to app when it's installed? Apr 19 13:13:18 huh? Apr 19 13:13:55 miha: google play supports sending advertising campaign info to the app on first run, look up the google ads stuff Apr 19 13:14:48 + Apr 19 13:17:05 I am looking to pick up android development and was just wondering what a good model for a dev phone is? Apr 19 13:17:23 pick up a galaxy nexus or a nexus s Apr 19 13:17:40 I dont really want to spend £500 on a Galaxy Nexus and I am just looking for something low/mid end Apr 19 13:17:50 you can get a nexus s for cheap I would imagine Apr 19 13:17:58 alternately, pick up a phone that has rooting instructions on the CM wiki Apr 19 13:18:02 huawei!! xD Apr 19 13:18:09 kawaii!!!!!! ^^;; Apr 19 13:18:12 hehe Apr 19 13:18:17 look for something used on the fleabay Apr 19 13:18:17 how are HTC phones for dev? Apr 19 13:18:26 I don't know, they're phones. Apr 19 13:18:28 decent Apr 19 13:18:29 lov: i'm developing some sort of 'feed viewer'. i wonder if it's possible to download viewer and subscribe to some feed by one QR code Apr 19 13:18:37 nexus one also holds up well Apr 19 13:19:05 miha: not really. You can point the user to the google play location, and provide campaign info. Your app will get a broadcast with that campaign info, once, when it's started for the first time. Apr 19 13:19:15 technically you could listen for that and add the feed Apr 19 13:19:21 but it's kind of hacky and not really guaranteed Apr 19 13:20:26 fail to connect to camera service Apr 19 13:20:32 what can it possibly mean Apr 19 13:20:35 I'm a noob Apr 19 13:20:46 tried googling? Apr 19 13:20:47 lov: well i'd hate to hack and compile custom .apk for each feed Apr 19 13:20:50 I love android but its way more difficult than other languages Apr 19 13:21:09 android no language :D Apr 19 13:21:17 RobinB if I had tried googling I wouldn't help others Apr 19 13:21:30 and java not much more difficult. just not the same :D Apr 19 13:21:36 sfiku its actually a version of java that orcle is scared of Apr 19 13:21:50 miha: consider having the most common feeds as options the user can select on start. Apr 19 13:21:55 they suing google because they afraid android will become more popular than regular java Apr 19 13:22:09 calmchess: please stop talking if you don't know what you're talking about :> Apr 19 13:22:10 they want android compatible with reg java Apr 19 13:22:20 this is truth Apr 19 13:22:24 anyway Apr 19 13:22:24 really? Apr 19 13:22:29 hmm i've got a collapsible action view, is there a way to collapse it in the actionview? Apr 19 13:22:31 I didn't know you worked for oracle/google/etc Apr 19 13:22:37 whats the permission string for camera in the manifest Apr 19 13:22:38 and had an idea what the actual justifications were for the lawsuit Apr 19 13:22:42 outside of random blogs Apr 19 13:22:52 lov begon Apr 19 13:23:00 i don't have time for ur nonsense Apr 19 13:23:11 lov: yeah, still i'd be highly desirable for feed owner to just post one qr code on his/her page Apr 19 13:23:46 miha: that's reasonable. You could always just support rss uris in your manifest, or use an intent to launch a qrcode reader, and use that result Apr 19 13:24:09 hmm Apr 19 13:24:14 anyhoo, sfiku, android uses DalvikVM, which is a variant of the JavaVM Apr 19 13:24:20 any1 worked with ActionbarSherlock? Apr 19 13:24:28 you're supposed to write your code in bog standard Java, and the bytecode gets transformed into dalvik Apr 19 13:24:47 you're probably confusing the API with the language itself Apr 19 13:24:49 so andriod didn't create packages in java for use on their phones? Apr 19 13:24:54 [lov] yeah. for me its just java. if i'm able to code some java ill do it with android :D Apr 19 13:25:00 lov: right now i use custom url protocol for my app. but that doesnt work if my app is not installed. i just wish i could pass that to google play install... Apr 19 13:25:13 calmchess: yes? That's not what the lawsuit is about. Apr 19 13:25:14 google didn't write a work around to bypass orcle copyright agreements Apr 19 13:25:26 yes it is Apr 19 13:25:31 no, it's not. Apr 19 13:25:32 u work for google? Apr 19 13:25:38 so CNN lied? Apr 19 13:25:41 google used legal trickery to make dalvik and technically not be java Apr 19 13:25:43 gahahaha Apr 19 13:25:46 CNN fools? Apr 19 13:25:48 are you really getting your info from CNN about this? Apr 19 13:25:50 really? Apr 19 13:25:57 yes Apr 19 13:25:59 christ not even a tech blog Apr 19 13:26:06 you're getting it from a MMM Apr 19 13:26:16 this just in: SCARY HACKERS ON THE INTERNETS????? Apr 19 13:26:23 Five tips to keep your pets safe from internet predators! Apr 19 13:26:28 I admit CNN full of it sometimes Apr 19 13:26:46 I reprimanded CNN for calling malicious users/script kiddies hackers Apr 19 13:26:57 they need to wath their mouths Apr 19 13:27:04 that word is reserved Apr 19 13:27:13 look. Google made an end run around java's licensing by making dalvik and converting java bytecode to dalvik. Sun was totally OK with that, but then Oracle bought them and was all like Apr 19 13:27:17 Sue ALL the developers! Apr 19 13:27:22 anyway whats the camera string for my manifest? Apr 19 13:27:37 right lov Apr 19 13:27:43 http://developer.android.com/reference/android/Manifest.permission.html Apr 19 13:27:44 look it up Apr 19 13:28:35 like I was saying ..... in layman terms google rewrote part of java mobile code (dalvik) to bypass copyrights Apr 19 13:28:39 not to worry though Apr 19 13:28:46 they say this will be in court for years Apr 19 13:28:55 all the way up to the supreme court Apr 19 13:28:58 cool story bro Apr 19 13:29:00 i gonna keep dev java Apr 19 13:29:03 thanks for reposting a repost of a repost of a repost Apr 19 13:31:14 hmm i've got a collapsible action view, is there a way to collapse it (get the actionview's menu item) in the actionview? Apr 19 13:34:52 great Apr 19 13:35:03 we fix 1 thing and something else breaks Apr 19 13:35:09 first my book is junk Apr 19 13:35:20 then manifest Apr 19 13:35:31 now i can't set camera parameters Apr 19 13:35:40 just 1 time it will work the first time Apr 19 13:35:43 i swear Apr 19 13:35:53 I want to get to the meat of my project Apr 19 13:35:58 this stubbing classes sucks Apr 19 13:36:01 mama mama Apr 19 13:36:06 calmchess: Apr 19 13:36:08 http://developer.android.com/reference/android/hardware/Camera.html Apr 19 13:36:11 consider reading the actual docs Apr 19 13:36:36 developer is great for reading the details but it gives like zero code examples Apr 19 13:36:56 there's a reason for that Apr 19 13:37:01 RTFM Apr 19 13:37:27 well I get how it works but I need to make it work Apr 19 13:37:33 nevermind Apr 19 13:37:43 I tend to worry about logic Apr 19 13:37:54 and forget "how some of this stuff works" Apr 19 13:37:59 u know Apr 19 13:38:01 oh well Apr 19 13:38:04 i'll press on Apr 19 13:39:18 wouldn't you know Apr 19 13:39:35 i took that parameter crap outta there and it works Apr 19 13:39:41 i need to learn parameters Apr 19 13:39:48 now is the time to read the docs! Apr 19 13:39:52 after it works! Apr 19 13:40:05 Thunderbolt away! Apr 19 13:40:36 u were a great help lov Apr 19 13:40:44 well done. also, try to say more, but talk less. ;) Apr 19 13:40:44 U my only friend Apr 19 13:41:16 RobinB are you giving me advice? Apr 19 13:41:19 ./sign RobinB Apr 19 13:41:32 ./sign-off more like it Apr 19 13:41:46 RobinB is disrespectful Apr 19 13:41:59 I'm frustrated... does anyone help me ? I want to set 2 buttons at the bottom of the screen, and after that, working in the rest of the screen for the application, but it comes imposible! Apr 19 13:42:03 no way. i complimented you and gave you constructive criticism. if you can't take it, that's too bad Apr 19 13:42:08 I suspect RobinB is a UBER Developer Apr 19 13:42:24 BAD RobinB Apr 19 13:42:35 I shoot u with BB gun Apr 19 13:42:41 right in the buttocks Apr 19 13:42:47 call you forest gump Apr 19 13:43:16 I'm gonna go work on my app that ain't worth a dime Apr 19 13:43:20 i gonna give it away Apr 19 13:43:36 gotta put some controls on this thing Apr 19 13:43:38 now! Apr 19 13:43:48 why buttons on the bottom RafaFirenze ? Apr 19 13:44:09 looks like ios app? :D Apr 19 13:44:31 objective-C is a great language Apr 19 13:44:49 no one complains about objectivec Apr 19 13:44:58 what in the world is going on in here Apr 19 13:45:10 IOS devices are good too Apr 19 13:45:12 RafaFirenze: what's the problem? I imagine you could create a separate view for the "rest of the screen". Apr 19 13:45:15 i have an ipod touch Apr 19 13:45:52 I have an HTC Thunderbolt Android Phone on verizon network Apr 19 13:45:55 it good Apr 19 13:46:21 RafaFirenze: that requires a RelativeLayout, but first consider why you want your buttons at the bottom of the screen instead of the bottom of your layout content Apr 19 13:46:46 I mean Apr 19 13:46:59 I support technology no matter who stamps their name on it. Apr 19 13:47:06 u all should follow that example Apr 19 13:47:18 all this who better crap makes me crazy/mad/insane Apr 19 13:47:25 I'm working in all the screen, but I want buttons down "Back" and "Next", do you understand? sfiku RobinB wongk Apr 19 13:47:45 when I grew up I didn't want a specific company.....any video game/computer system would do Apr 19 13:47:46 so, thouse buttons at the bottom of the screen Apr 19 13:47:47 RafaFirenze: back and next should be swipes Apr 19 13:47:52 maybe? Apr 19 13:48:00 it use to be about technology not who is better Apr 19 13:48:02 :( Apr 19 13:48:10 RafaFirenze: i understand what you want, i do not understand why you want it Apr 19 13:48:22 I miss the 80's when I was oblivious to who is ahead! Apr 19 13:48:39 mmmm it doesn't matter, I will link my buttons to something... maybe another activity or whatever Apr 19 13:48:39 my first computer had a 100-300 baud modem! Apr 19 13:48:44 RafaFirenze: maybe you should read design guidelines Apr 19 13:49:06 Rafa: look up layouts as well Apr 19 13:49:22 especially relative layouts, http://developer.android.com/resources/tutorials/views/hello-relativelayout.html Apr 19 13:49:27 I'll be back to rant later Apr 19 13:49:36 I have battlefield 3 to play Apr 19 13:49:41 semper fi time to die! Apr 19 13:49:51 [sfiku] I have to, but I've read a lot and I don't find anything, Im gonna check what RobinB said :) Apr 19 13:49:56 thanks RobinB Apr 19 13:50:12 i dont think any android app needs back and next buttons. did you ever saw any next and back buttons in another android app? Apr 19 13:50:53 it is a desktop paradigm Apr 19 13:51:03 check layouts, but check your app design to get a native feeling Apr 19 13:51:30 however i can think of 2 apps that have back and next buttons, both written my google Apr 19 13:51:56 which? Apr 19 13:52:01 gmail and mail Apr 19 13:52:17 not mine Apr 19 13:52:29 i got swipe to get the next mail Apr 19 13:52:37 they have that as well Apr 19 13:53:16 actually gmail doesn't seem to have that, unless it's a configration option Apr 19 13:53:37 i hate that anyway, it makes horizontal scrolling difficult Apr 19 13:53:43 i turn it off in K-9 Apr 19 13:53:49 cant find that buttons :) Apr 19 13:53:51 i like swipe Apr 19 13:54:14 just hate it in 2.x google reader when feeds got big pictures Apr 19 13:54:39 google maps directions have a previous and next arrow, but i guess that's quite a specific example Apr 19 13:54:49 and it's not quite the same as "back" Apr 19 13:55:27 cant find them either. my maps app got search route marker and layers Apr 19 13:55:45 well, if you click on a specific point of a route Apr 19 13:56:07 on the bottom, there's < and > Apr 19 13:56:14 anyhow, not sure if that applies. Apr 19 13:57:17 cant find em :D but thats not the problem :) Apr 19 13:58:45 just think i would be better to implement google design guidelines to make apps more like "android-feeling Apr 19 13:58:47 :) Apr 19 13:59:05 yeh Apr 19 13:59:12 JAM Apr 19 13:59:16 its impressive how much apps implement an back button on the top left corner :) Apr 19 13:59:40 good ol' iphone ports Apr 19 13:59:54 "but we need a consistent interface across platforms" Apr 19 14:00:10 sure Apr 19 14:00:17 :D Apr 19 14:00:50 for me its like "i dont know about android but lets do it" :D so ima back at work. have a nice day ^ Apr 19 14:01:08 because when i put down my android and pick up my iphone, i want them to look exactly the same... Apr 19 14:01:12 very common use case Apr 19 14:02:29 stupid use case. android is android has android feeling. iphone is iphone has iphone feeling. dont matter which u prefer Apr 19 14:02:46 :P Apr 19 14:03:12 want some I/O tickets? code fast! http://code.google.com/codejam/contest/dashboard?c=1656485 Apr 19 14:03:24 RobinB: for all those people who use androids and iphones on a daily basis :p Apr 19 14:03:27 oh, snap Apr 19 14:03:42 i've got a collapsible action view, is there a way to collapse it (get the actionview's menu item) in the actionview? Apr 19 14:03:55 u can make your apps look the same but vary your "menu" Apr 19 14:04:11 2 or 3 last projects at work wanted to add the stupid back button n the top corner Apr 19 14:04:24 I managed to get one of them change their mind Apr 19 14:04:43 it's just retarded and waste of UI space :E Apr 19 14:04:48 yeah.. atleast i got my projects to get rid of that Apr 19 14:05:14 Are there any active channels on freenode for debugging hard drives? Apr 19 14:05:38 My exteranl shows up in Disk Management but not in Windows Explorer. Apr 19 14:06:20 partition it? Apr 19 14:06:37 It has data that I would desperately like to NOT repartition over. Apr 19 14:06:42 Do you have to put your values/.xml files in the AndroidManifest.xml ? Apr 19 14:07:07 i got nothin, then Apr 19 14:07:13 john_doe_jr: no Apr 19 14:08:19 JakeWharton: using ABS 4.0.1, got an activity that has theme=Theme.Sherlock.Dialog, it appears on an ICS device *and* a 2.3.5 device as a Holo style dialog -- is this expected behaviour? It looks a bit odd since the rest of my apps dialogs use the native dialog style Apr 19 14:08:39 Is there a way to get it's MenuItem inside of an action view...? Or do I need to make a callback to the Activity which saves the MenuItem in the onCreateOptionsMenu and then gives it...? Apr 19 14:09:54 evancharlton: i seem to be unable to compete, is there some restriction? Apr 19 14:10:50 RobinB: you have to register, that's about all I know. Apr 19 14:10:56 evancharlton: neither can I, not fair Apr 19 14:11:04 you have to sign in Apr 19 14:11:07 https://code.google.com/codejam/contest/registration?t=1654485 Apr 19 14:11:31 "Google is not affiliated with the contents of Google AJAX API Playground" :P Apr 19 14:11:49 ah, now it works. Apr 19 14:11:54 well, lets get cracking Apr 19 14:12:01 :) Apr 19 14:12:17 good practice for the codejam proper Apr 19 14:13:53 evancharlton: where do the IO tickets come into play, out of curiosity? Apr 19 14:14:18 wongk: "Sprint to Google I/O 2012 - The top 100 contestants will win a chance to buy a Google I/O ticket." Apr 19 14:14:24 you can win a chance to buy. heh Apr 19 14:14:31 hah Apr 19 14:16:36 who the most popular android refrence book writer? Apr 19 14:16:56 calmchess: javadoc Apr 19 14:17:07 hah Apr 19 14:17:39 hay all is this the correct place to ask about android ndk ? Apr 19 14:17:49 for the love of god Apr 19 14:17:56 :) Apr 19 14:18:22 the_dime_bar: sure, though there tends to be less people who can answer your question =] Apr 19 14:18:26 wondering if anyone has used std::ofstream on android Apr 19 14:18:49 wongk: :) Apr 19 14:18:54 not one 5 star on amazon Apr 19 14:18:56 the_dime_bar: You can ask, but don't expect a lot of love for the NDK. Even I, who use it a lot, sort of hate it. Apr 19 14:19:09 i gonna continue to use my giant book Apr 19 14:19:13 called the internet Apr 19 14:19:24 this book I have is getting burned though Apr 19 14:19:32 never again will it mislead a noob Apr 19 14:19:47 never Apr 19 14:20:06 this room is my book! Apr 19 14:20:19 the_dime_bar: As for ofstream, you will still need to use JNI for file locations. Apr 19 14:20:57 [RobinB] it was awesome, thank you ! Apr 19 14:22:41 Jonathan_Eyre: I am using JNI - what do you mean by use file location ? so i have std::ifstream in_file(file_path.c_str(), std::ios::binary); std::ofstream out_file(dest.c_str(), std::ios::binary); out_file << in_file.rdbuf(); Apr 19 14:22:55 it does create my image Apr 19 14:23:21 but i cant see it via my gallery app Apr 19 14:24:13 if i adb shell i can see the image in my sdcard folder Apr 19 14:24:41 the_dime_bar: have you added it to the media index? Apr 19 14:24:57 Leeds: ??? Apr 19 14:25:03 Leeds: no ? Apr 19 14:25:04 :) Apr 19 14:25:46 https://play.google.com/store/apps/details?id=com.addz.mediascanner Apr 19 14:27:43 wongk: please tell me theres an ndk way http://developer.android.com/reference/android/media/MediaScannerConnection.html Apr 19 14:28:02 no clue Apr 19 14:28:06 :) Apr 19 14:28:12 wheres that cliff gone Apr 19 14:31:11 i try to register a View.OnTouchListener on a layout, so i can detect swiping motions on the whole screen Apr 19 14:31:17 this seems to be ignored.. Apr 19 14:33:28 tapas: is something inside the layout consuming the touch event(s) Apr 19 14:37:50 how do i do this code jam IO thing Apr 19 14:37:58 Contestants must sign in to download inputs and submit. Apr 19 14:38:00 i am signed in... Apr 19 14:39:51 Leeds: aah, good point.. Apr 19 14:39:56 Leeds: will take a look Apr 19 14:40:01 evancharlton: done! Now I hope my large submissions are right :D Apr 19 14:40:56 those were much easier than the qualification round of the codejam Apr 19 14:41:42 is there any way to find out the correct a-small numbers for the codejam? Apr 19 14:41:55 my numbers seem right but i haven't looked at every case Apr 19 14:44:50 not normally Apr 19 14:45:06 if you submit the wrong small dataset, it'll only give you INCORRECT Apr 19 14:45:29 canadiancow: you need to register, too, apparently. Apr 19 14:45:36 yea i found it Apr 19 14:45:38 it wasnt obvious Apr 19 14:45:42 no, it wasnt Apr 19 14:45:47 i was very confused as well Apr 19 14:45:54 the problems are really easy Apr 19 14:46:00 better be quick! Apr 19 14:46:37 i've never done one of these Apr 19 14:46:42 maybe my formatting is incorrect? Apr 19 14:46:47 i just have 100 lines in the format they request... Apr 19 14:46:58 they don't care about my Main.java right? Apr 19 14:48:20 they don't care about your source code Apr 19 14:48:27 the output formatting is quite strickt Apr 19 14:48:38 make sure your cases don't start with CASE #0, for example Apr 19 14:49:27 the input files change after each wrong submission, don't use the same twice Apr 19 14:50:54 oh the input files change. Apr 19 14:50:56 damn it Apr 19 14:50:57 doe sit seem wrong to delegate my submission to someone on my team? ;) Apr 19 14:51:14 for the ticket, you mean? :) Apr 19 14:51:23 i don't think i will be able to go myself Apr 19 14:51:56 im just messing around, i wouldn't be able to attend Apr 19 14:53:44 i seem to be 32nd Apr 19 14:54:51 i lose :( Apr 19 14:57:10 wow im 56th in the contest, assuming i, and everyone ahead of me, got it right Apr 19 14:57:58 canadiancow|work que contest? Apr 19 14:58:09 Sprint to Google I/O 2012 Apr 19 14:58:43 is 0 2 0 0 impossible or 0? Apr 19 14:59:46 0 Apr 19 15:00:12 well this is frustrating Apr 19 15:00:17 my numbers all seem to be correct Apr 19 15:00:28 and my formatting appears correct, but i'm not absolutely sure Apr 19 15:00:36 should always start with Case #1: y right? Apr 19 15:00:39 yes Apr 19 15:00:41 yeah Apr 19 15:01:10 yea they were...easy Apr 19 15:01:12 to say the least Apr 19 15:01:45 yes Apr 19 15:01:51 which one did you do? Apr 19 15:01:53 both Apr 19 15:01:57 Rockmaninoff, you just get a time penalty if you submit it wrong Apr 19 15:01:58 so you can try it Apr 19 15:02:02 mikedg i did both Apr 19 15:02:13 canadiancow|work: i've submitted two "correct" (in my mind) answers, and they both said incorrect Apr 19 15:02:18 i guess i just go down each case and verify... Apr 19 15:02:25 maybe i'm misreading the problem but i don't see how Apr 19 15:02:36 seems very straightforward Apr 19 15:02:43 but i've never done a code jam Apr 19 15:02:46 it is Apr 19 15:02:54 but sometimes the devil is in the edge cases Apr 19 15:03:13 like in the second one, don't have the same string twice in the results Apr 19 15:04:11 Rockmaninoff just a hint: these are jokes Apr 19 15:04:12 the first problem can be solved in like 3 lines, + some i/o Apr 19 15:04:18 theres a good chance you're over-analyzing them Apr 19 15:04:23 RobinB: exactly Apr 19 15:04:35 even the second problem Apr 19 15:04:36 yeah my actual logic is 5 lines for the first problem Apr 19 15:04:37 they try to confuse you with wording Apr 19 15:04:58 can anyone verify my results? maybe via pm? Apr 19 15:05:05 shoot me a pm Apr 19 15:05:11 actually Apr 19 15:05:15 just incredibly frustrating to not know which cases are incorrect Apr 19 15:05:19 this probably violates some rules Apr 19 15:05:25 am i allowed to help you? :S Apr 19 15:05:25 yeah most likely =\ Apr 19 15:05:31 i have no idea Apr 19 15:05:33 dunno Apr 19 15:05:48 i'm sure other devs are roping in their coworkers... Apr 19 15:06:11 honestly i would fire a dev who couldnt do these :P Apr 19 15:06:17 eheh Apr 19 15:06:25 hahah Apr 19 15:06:38 mikedg did you do it? Apr 19 15:06:59 there are still at least 30 slots left for the taking Apr 19 15:07:00 i gave up Apr 19 15:07:05 i dont believe you Apr 19 15:07:06 oh really? Apr 19 15:07:09 i thought it was over Apr 19 15:07:11 really i gave up Apr 19 15:07:12 no Apr 19 15:07:16 you can get 60 points Apr 19 15:07:19 71st has 40 points Apr 19 15:07:23 top 100 win, right? Apr 19 15:07:33 well i submitted 2 wrong answers for first Apr 19 15:07:36 and 1 for second Apr 19 15:07:39 that gives you a TIME penalty Apr 19 15:07:40 so goodbye Apr 19 15:07:41 not a score penalty Apr 19 15:07:47 what the fuck are the poitns for? Apr 19 15:07:52 i thought points were time Apr 19 15:07:56 no Apr 19 15:08:05 if you get everything right, it's 60 points Apr 19 15:08:13 how can you get anything wrong? Apr 19 15:08:15 and the first 100 people to do that, based on their time, win Apr 19 15:08:15 so GO GO GO Apr 19 15:08:24 i thought you cant submit wrong things Apr 19 15:08:41 maybe, but then you dont get points Apr 19 15:09:01 you get points for a correct answer, otherwise you don't get points Apr 19 15:09:16 damn you htc Apr 19 15:09:17 damn you Apr 19 15:09:22 mikedg what username are you using Apr 19 15:09:30 vinblau Apr 19 15:09:43 User vinblau not found. Apr 19 15:10:01 he's trying to h4x0r you! Apr 19 15:10:05 https://dl.htcdev.com/sdk/download/htc_opensense_sdk_for_phones.zip Apr 19 15:10:08 im trying to add him as a friend :( Apr 19 15:10:14 :P Apr 19 15:11:03 canadiancow|work what do u win Apr 19 15:11:09 a chance to buy an IO ticket Apr 19 15:11:29 if i win, can i transfer it? Apr 19 15:11:29 lmao Apr 19 15:11:45 to me? Apr 19 15:11:46 yes Apr 19 15:11:57 can someone explain why "1 2 0 0" is _not_ "0"? Apr 19 15:12:14 because its "1 2 0 0" Apr 19 15:12:24 it's -1 Apr 19 15:12:26 wait Apr 19 15:12:32 i forget the format already Apr 19 15:12:33 it's 0... Apr 19 15:12:37 why do you think its not 0 Apr 19 15:12:49 apparently the "correct" answer is 1 Apr 19 15:12:51 yea isn't that 0? Apr 19 15:12:55 asdfjkasdfjkjklasd Apr 19 15:13:02 well thats why i lost if thats the case Apr 19 15:13:11 who said the correct answer is 1 Apr 19 15:13:20 the correct answer is onions Apr 19 15:13:40 oh it is 1 Apr 19 15:13:42 42 Apr 19 15:13:45 canadiancow|work: why? Apr 19 15:13:48 69 Apr 19 15:13:53 so theres one of each in stock, and you want to buy 0? Apr 19 15:13:55 doesn't that mean 2 designs, with 1 available of each Apr 19 15:14:02 and you want to buy 0 of the first design, and 0 of the second design Apr 19 15:14:05 so...0 Apr 19 15:14:06 hmm Apr 19 15:14:12 my output says 1 Apr 19 15:14:12 lol Apr 19 15:14:21 but that doesn't make sense!!! Apr 19 15:14:30 cheaters! i'm telling! Apr 19 15:14:30 it's only fitting for google to fuck this up too Apr 19 15:14:44 canadiancow|work: fire yourself! Apr 19 15:14:49 lol Apr 19 15:14:52 http://www.kegworks.com/brew-cave-walk-in-beer-cooler-kegerator-1080-p175669 Apr 19 15:15:02 i agree that should be 0 Apr 19 15:15:08 WTFFFF Apr 19 15:15:10 i think 0 might be one edge case you have to handle Apr 19 15:15:22 but they cant really change this now Apr 19 15:15:23 my output also says 1. heh Apr 19 15:15:24 anyone know why my custom background drawable would be leaking into my EditText/TextView? I've tried setting the drawable as a background on a separate view and then adding the EditText inside it and setting the background directly on the EditText with identical results. For the most part it works, but sometimes when I click inside the EditText, the custom border that I'm drawing appears duplicated, once in the right place, a Apr 19 15:15:24 nd once right below and to the right of the text in the EditText Apr 19 15:15:33 it's a very bizarre type of bug Apr 19 15:15:35 am i supposed to close/reopen a cursor when onPause/onResume gets called? or just open it in onCreate and close in onDestroy? Apr 19 15:16:18 Bonkers: That might be a better question for stackoverflow Apr 19 15:16:22 Bonkers: screenshot? Apr 19 15:16:28 also, hierarchyviewer Apr 19 15:16:38 Rockmaninoff, submit that as a question Apr 19 15:16:41 you're absolutely right Apr 19 15:16:44 thanks, I'll check hierarchy viewer, and grab a shot Apr 19 15:16:59 canadiancow|work: where do i submit that? Apr 19 15:17:08 "Ask a question" link :P Apr 19 15:17:33 right on Apr 19 15:17:44 yea in my small set, i had an input like that Apr 19 15:17:46 where it was all 0's Apr 19 15:17:50 and my output was > 0 Apr 19 15:17:53 and it was marked correct Apr 19 15:18:04 so they cnat go change this now, because i would have seen the problem, fixed it, and resubmitted Apr 19 15:18:13 but at the same time, yours is correct, and is being marked wrong Apr 19 15:18:19 yeah, mine too bitches Apr 19 15:18:27 so i get a free ticket right Apr 19 15:18:55 this is guaranteed what's causing the HUGE disparity between problem A and B in terms of correct submissions Apr 19 15:19:01 44% correct vs. 85% Apr 19 15:19:13 this is retarded Apr 19 15:19:15 haha, the stupid win again! Apr 19 15:19:23 * RobinB high-fives canadiancow|work Apr 19 15:19:45 i mean i could fix mine by "if all K are 0, output 0" Apr 19 15:19:59 yeah Apr 19 15:20:02 also, getting in the top100 doesn't get you an io ticket, it just gets you a "chance to buy one" Apr 19 15:20:02 but you didnt do it Apr 19 15:20:05 but i submitted based on it saying "yours is right" Apr 19 15:20:13 because it said mine was right! Apr 19 15:20:19 Rockmaninoff: hah, you win the opportunity to purchase a ticket :P Apr 19 15:20:28 wongk: i wish... Apr 19 15:20:37 not that many people participated so maybe they will give everyone the chance to buy it Apr 19 15:20:43 and then io will be even more crowded Apr 19 15:20:46 there are still open spots Apr 19 15:20:46 and we can bitch about google again Apr 19 15:20:49 win for everyone Apr 19 15:21:07 evancharlton, hierarchyviewer looks great, here are some shots http://imgur.com/a/ywE6D Apr 19 15:21:22 im pretty sure the points go into the score, canadiancow|work you dont know what you are talking about, you missed the edge case Apr 19 15:21:50 what points? Apr 19 15:22:03 ya canadiancow|work i should fire YOU :P Apr 19 15:22:28 dont fire him Apr 19 15:22:32 hes going to fix draw something Apr 19 15:22:36 Rockmaninoff: we know how to solve a problem to what they want, not what is correct. and that's what counts ;P Apr 19 15:22:43 lolol Apr 19 15:23:01 the picture with the swing on the tree comes to mind :) Apr 19 15:23:23 this is tarded Apr 19 15:23:41 lol Apr 19 15:23:57 why dont they just close the contest when they have 100 winners Apr 19 15:24:00 ive never understood that Apr 19 15:24:09 even though we dont know if we won, they sure do Apr 19 15:24:17 i dont want to wait 3.5 hours Apr 19 15:24:38 they said 24 hours Apr 19 15:24:53 Bonkers: nice screenshots, you are clearly well onto your way to the next $1 billion dollar app Apr 19 15:25:28 haha, don't be so mean. :> Apr 19 15:25:39 im still bitter about code jam Apr 19 15:25:42 it wouldnt let me register Apr 19 15:26:00 hey guys i posted my code but am gettings erros can you please check it and help me out?http://stackoverflow.com/questions/10231309/android-button-onclick Apr 19 15:26:40 Google Developers11:02 AM (edited) Apr 19 15:26:40 A reminder: discussing problems or solutions before the contest ends is against the rules, so to be fair we'll be deleting comments here that violate this rule. Thanks for helping observe this rule. Apr 19 15:26:41 lol Apr 19 15:26:43 whoops Apr 19 15:26:46 BUT WE FOUND A BUG Apr 19 15:26:48 pragma-, hehehe, thankyou, I'm actually writing a crossplatform framework and that's the demo app... Apr 19 15:27:18 anyone please help? Apr 19 15:27:28 ineed corrective critism Apr 19 15:27:45 hasn't the answer been given ? Apr 19 15:28:00 not when i checked last Apr 19 15:28:07 wargon: my corrective criticism: give people more than 1 minutes to respond Apr 19 15:28:10 canadiancow|work: I'm Mike.dg apparently Apr 19 15:28:26 lol Apr 19 15:28:39 alright wongk Apr 19 15:28:42 you're in 185th! Apr 19 15:28:47 gogogo Apr 19 15:28:49 mikedg! Apr 19 15:28:52 pragma-, https://github.com/mschulkind/cordova-true-native-ios#readme that's what it's going to look like Apr 19 15:28:57 186 now :( Apr 19 15:29:01 everyone else: whats your username? im canadiancow Apr 19 15:29:04 there isnt even a 184 and 185th :( Apr 19 15:29:18 i still don't understand how someone did this in 38 seconds Apr 19 15:29:28 i dont think i could do that if i had the app written already Apr 19 15:29:38 they were probably using vim Apr 19 15:29:40 actually yea Apr 19 15:29:44 38 seconds? Apr 19 15:29:58 I'm RobinB Apr 19 15:29:59 fucking clicking the "choose file" buttons twice Apr 19 15:29:59 * mikedg hopes for 86 cheaters Apr 19 15:29:59 heh Apr 19 15:30:02 and then im in Apr 19 15:30:12 mikedg you have to successfully complete at least one of them Apr 19 15:30:20 oh RobinB you beat me Apr 19 15:30:25 totally did! :P Apr 19 15:30:27 although to be fair, i probably started after you finished! Apr 19 15:30:49 wargon: refresh your page Apr 19 15:30:53 started 16:12, it's now 17:30 Apr 19 15:31:04 what's happening in the court? Apr 19 15:31:09 brb doing problem 2 Apr 19 15:32:03 they really fucked this up Apr 19 15:32:08 wong im seeing the corrections but do i change the public voice part? Apr 19 15:32:11 there are going to be angry people regardless of what they do Apr 19 15:32:15 i dont mean to come off noobish but i am Apr 19 15:32:43 wargon: "public voice part"? Apr 19 15:32:51 ell oh freaking ell, in problem 2 you can have an EVEN number of digits, but an ODD number of numbers in S Apr 19 15:32:54 so dumb Apr 19 15:33:06 canadiancow: make another contest with 100 tickets. only solution, really Apr 19 15:33:07 wargon: you mean public void? Apr 19 15:33:13 yes Apr 19 15:33:15 typo Apr 19 15:33:15 exclude everyone who got into the top100 this time Apr 19 15:33:50 wargon: do you know java and/or general programming concepts? Apr 19 15:33:57 general Apr 19 15:34:12 why would you change "public void"? Apr 19 15:34:23 youve writtin private void Apr 19 15:34:47 Rockmaninoff: i don't see how that makes a difference Apr 19 15:35:01 doesn't, just in parsing :) Apr 19 15:35:04 index out of bounds exception etc Apr 19 15:35:09 wargon: do you think the method would be properly implementing the interface if you made that change? Apr 19 15:35:26 overriding, rather Apr 19 15:35:42 mikedg GO FASTER Apr 19 15:35:49 im not sure Apr 19 15:35:49 general rule: subclasses can allow more, never less... you can change protected to public in subclass, not other way around Apr 19 15:36:03 * miha n00b Apr 19 15:36:16 everyone starts off as a noob Apr 19 15:36:37 * miha forevern00b Apr 19 15:36:38 I have never been a noob Apr 19 15:36:50 just were born to program huh Apr 19 15:37:30 he was born with his fingers on asdf and jkl; Apr 19 15:38:07 ^^ Apr 19 15:38:07 http://en.wikipedia.org/wiki/I_know_that_I_know_nothing Apr 19 15:38:29 Only russians are born to program. Apr 19 15:38:36 now that im reading it more, trying to figure out if their thing made sense, i feel stupider :/ Apr 19 15:39:32 lol Apr 19 15:39:35 mikedg one slot left Apr 19 15:39:42 oh wait no Apr 19 15:39:45 im 100% i cant get 60 points Apr 19 15:39:46 penalty time Apr 19 15:39:50 you can Apr 19 15:39:59 how, it doesnt make sense at all Apr 19 15:40:07 BECAUSE THE PENALTY IS TIME Apr 19 15:40:10 look at the guy in 100th Apr 19 15:40:14 his time is over 2 hours Apr 19 15:40:19 he has 10 wrong tries Apr 19 15:40:20 but 60 points Apr 19 15:40:26 the wrong tries gave him penalty TIME Apr 19 15:40:26 i give up Apr 19 15:40:44 i dont understand it, and i dont want to Apr 19 15:40:55 just accept you can still win Apr 19 15:40:55 :( Apr 19 15:41:01 ranking = highest score. if scores equal, ranking = shortest time Apr 19 15:41:10 "Welcome to Code Jam's spint to Google I/O" Apr 19 15:41:11 woops Apr 19 15:41:18 whats the answer for 2 3 2 2 1 Apr 19 15:41:32 5? Apr 19 15:41:39 not allowed to tell you, but it might be 6 Apr 19 15:41:56 wait wtf Apr 19 15:41:59 6? Apr 19 15:42:01 i dunno man Apr 19 15:42:02 is google's OWN sample incorrect for B? Apr 19 15:42:05 * RobinB checks code Apr 19 15:42:07 it seems wrong to compete if i have no desire to purchase a ticket Apr 19 15:42:08 2 88989726572 Apr 19 15:42:17 why is that wrong? Apr 19 15:42:24 shouldn't those yield 88, 98, 97, 26, 57, 2? Apr 19 15:42:34 ah should be 5. Apr 19 15:42:36 or can it be indexed from any position? Apr 19 15:42:42 "These tickets will be non-transferable and can be used only by you--so please compete only if you intend to attend, since that means another lucky developer will get a shot at tickets" Apr 19 15:42:47 no wait, 6 is correct Apr 19 15:42:48 88, 89, 98, 89, ... Apr 19 15:42:55 wongk oh shit Apr 19 15:42:56 lol Apr 19 15:42:57 and they say that 72 and 89 are repeated... Apr 19 15:43:05 sorted please Apr 19 15:43:23 doesn't make sense Apr 19 15:43:24 88 + 89 = 889 Apr 19 15:43:25 mikedg: answer is 6 Apr 19 15:43:49 canadiancow|work: wut Apr 19 15:44:01 READ IT Apr 19 15:44:04 nvm nvm Apr 19 15:44:14 if the two identifiers are 88 and 89, the string is 889 Apr 19 15:44:33 Rockmaninoff: "88" doesn't appear twice in that string Apr 19 15:44:43 nvm nvm nvm nvm Apr 19 15:44:48 hahaha Apr 19 15:44:49 i get it, it isn't in every K increments Apr 19 15:44:49 yea mikedg yours is 6. my progam is already better than me Apr 19 15:45:03 wongk where did you get that quote from Apr 19 15:45:21 canadiancow|work: the registration page Apr 19 15:45:35 not twice in the string Apr 19 15:45:47 twice when you split it up into x - n strings Apr 19 15:46:39 golly, turns out, there's no difference :) Apr 19 15:46:46 however, i did it the same way you said, mike Apr 19 15:46:58 throw in some caching, and voila Apr 19 15:47:16 YEAH BUDDY problem B correct first try Apr 19 15:47:29 sweet! Apr 19 15:47:33 me too :P Apr 19 15:47:35 now the big one Apr 19 15:48:26 eh Apr 19 15:48:28 big one same thing Apr 19 15:48:30 took 10 seconds Apr 19 15:48:37 now not sure what to do about this issue withi Problem A... Apr 19 15:48:47 i have to like Apr 19 15:48:52 make my Problem A code _incorrect_ in order to answer it Apr 19 15:48:57 but i don't know which edge case to do... Apr 19 15:48:58 solve it in the stupid way! Apr 19 15:49:11 if they're all 0, return 0 Apr 19 15:49:14 yeah, seems they have their solution formula Apr 19 15:49:33 canadiancow|work: ...that doesn't work though Apr 19 15:49:36 remember the edge case? Apr 19 15:49:36 canadiancow, wouldn't that be wrong? Apr 19 15:49:40 1 3 0 0 0 gives me 2, btw Apr 19 15:49:41 1 2 0 0 would be 0, but they want 1 Apr 19 15:49:45 thats what im saying Apr 19 15:49:45 WEATjaswerlkj;sdkjlh; Apr 19 15:49:47 WHAT. Apr 19 15:49:48 remove that edge case Apr 19 15:49:52 RobinB: that makes NO sense Apr 19 15:50:01 yea RobinB same :P Apr 19 15:50:08 Does anyone know of any good articles for getting a device to detect if it has moved in a linear fasion? I'd like to detect how far my device has moved relative to where it started without GPS Apr 19 15:50:10 4 1 2 3 4 9 gives me 8 Apr 19 15:50:17 if you use the magic formula, and (wrongly) ignore the edge case, then you're golden Apr 19 15:50:18 none of the corrections help on the site Apr 19 15:50:21 i dont get them... Apr 19 15:50:24 mikedg: that should be -1 Apr 19 15:50:36 mikedg that should be -1 Apr 19 15:50:46 wait Apr 19 15:50:48 can't get 9 figures when there's only 4 packs Apr 19 15:50:55 am i reading that backwards Apr 19 15:51:01 L=4 Apr 19 15:51:06 isnt the second number the number of types? Apr 19 15:51:10 no wait, somethings messed up Apr 19 15:51:15 yeah Apr 19 15:51:22 i just made that up... i wanted to see what your crap gave as answers Apr 19 15:51:29 thats invalid Apr 19 15:51:29 kickban!!! Apr 19 15:51:34 ^^ Apr 19 15:51:48 no this is what doesn't make sense to me Apr 19 15:51:54 "0 2 0 0" == 0 Apr 19 15:51:57 "1 2 0 0" == 1 Apr 19 15:51:59 so why isnt the answer just M * L Apr 19 15:52:02 mikedg: Case #1: 2 Apr 19 15:52:02 so i don't know how to create that edge case Apr 19 15:52:20 mikedg, that's... buying everything Apr 19 15:52:28 you wnat to know the MINIMUM you need to buy to guarantee it Apr 19 15:52:46 minimum in worst case makes no sense Apr 19 15:52:59 yes it does Apr 19 15:53:01 yes it does o.O Apr 19 15:53:05 lol Apr 19 15:53:05 no it doesnt Apr 19 15:53:34 mikedg: it's close though :P Apr 19 15:53:59 (and yes, it does) Apr 19 15:54:24 no it doesnt, how is it the worst case if you can minimize something Apr 19 15:54:40 well there are exactly L packs of each type, and there are M types Apr 19 15:54:45 you can buy M*L and guarantee you get what you want Apr 19 15:54:51 i can buy less than M*L and guarantee the same thing Apr 19 15:54:53 but you don't need to buy all to get your required number of figures Apr 19 15:54:55 evern in worst case Apr 19 15:54:57 why would you spend more money hten you need to Apr 19 15:54:58 *even Apr 19 15:56:12 oh I know M*L isn't it Apr 19 15:56:19 but the point is minimum in worst case makes no sense Apr 19 15:56:43 why not? Apr 19 15:56:52 minimum guaranteed worst case Apr 19 15:56:56 you're thinking of worst case in the context of algorithmic complexity, in which case there is only one Apr 19 15:57:14 case <- singular Apr 19 15:57:44 the wording is a bit awkward Apr 19 15:57:47 why not throw in minimum and maximum numbers in the worst case Apr 19 15:57:54 the whole shitty thing was awkward Apr 19 15:57:59 :P Apr 19 15:58:11 http://www.buzzfeed.com/expresident/animals-with-stuffed-versions-of-themselves Apr 19 15:58:12 awesome Apr 19 15:58:54 doesn't add up Apr 19 15:58:56 ^^ Apr 19 15:58:57 i disgee with #2 :P Apr 19 15:59:38 yeah wtf is #2 Apr 19 16:00:27 you should see what my last dog did to a stuffed version of himself! ... or maybe you shouldn't :P Apr 19 16:00:29 I have created 2 folders for language choosing. values-en and values-es. I set 2 buttons with "spanish" and "english". What should they call for changing the language ? Apr 19 16:00:53 wongk, how so? Apr 19 16:00:55 i got it Apr 19 16:01:11 canadiancow|work: wrong context Apr 19 16:01:30 canadiancow|work: he fucked it Apr 19 16:01:47 RafaFirenze: Why do you want to change the language, let android do that Apr 19 16:02:29 RafaFirenze: it depends on the global locale set on the device Apr 19 16:02:35 I'm writting all the strings Apr 19 16:02:39 * wongk <-- lunch Apr 19 16:02:44 but for example I live in Italy and I'm spanish Apr 19 16:02:55 set your phone language to spanish, then it'll be in spanish Apr 19 16:03:01 you can change it manually if you have to Apr 19 16:03:03 all you need to do is write the strings... if the user has their phone set to run in Spanish, they'll get Spanish strings, if they're set to run in English, English strings Apr 19 16:03:18 RafaFirenze: try something along the lines of Locale.setDefault(locale); Apr 19 16:03:24 might need to google for some example code Apr 19 16:03:32 works for me Apr 19 16:03:59 im gonna check the extra code, thanks Apr 19 16:04:26 RobinB: main problem with that is that if your UI is already initialised, you need to reinitialise it to get it into the new language Apr 19 16:04:31 I think... Apr 19 16:04:38 yeah, i remember it was quite messy Apr 19 16:05:11 also there was some weird scaling bug if you used the automatic compatibility scaling from android 2.2 Apr 19 16:08:29 meh. I just got a user request to make available my app for the blackberry playbook. do they have some separate magic BB market? Apr 19 16:08:34 3 5 2 2 2 2 1 so is minimum worst case saying that this is 13 and not 14? Apr 19 16:09:14 no, 14. Apr 19 16:09:25 so minimum is completely worthless Apr 19 16:09:31 no it's not Apr 19 16:09:40 what case does minimum make a different Apr 19 16:09:43 ce Apr 19 16:09:44 Ge0rG: yes, they do Apr 19 16:09:53 well, 15 is also a worst case Apr 19 16:09:57 but not the minimum worst case Apr 19 16:10:28 15 is a stupid case Apr 19 16:10:34 if you'd successfully published it on their market a few weeks ago, BB would have given you a free tablet - from their vast stock of unsold playbooks Apr 19 16:10:34 haha Apr 19 16:10:35 you're a stupid case Apr 19 16:10:46 outside of buying them and never opening them until you got home Apr 19 16:10:54 Leeds: that's right Apr 19 16:11:11 Leeds: right now every 100th submission gets an invitation to their blackberry jam in may Apr 19 16:11:19 sounds crap, but it involves a free ticket to florida Apr 19 16:11:20 Leeds: I heard of their program, and one of my apps was even submitted there. I just didn't care enough ;) Apr 19 16:11:22 I decided in the end that it wasn't worth my time getting their tools running on my Linux machine and gave up Apr 19 16:11:32 omfg Apr 19 16:11:35 they FIXED the glitch Apr 19 16:11:43 so how is minimum worst case any different from guarantee you have enough of each Apr 19 16:11:47 Leeds: you don't need any tools on your machine, there's a browser only tool that converts everything Apr 19 16:11:49 so ALL of the work i've been doing to work AROUND the edge case Apr 19 16:11:51 asdfljksadfjjkl;fa Apr 19 16:12:09 mikedg: that's the same Apr 19 16:12:15 RobinB: wanted to get the emulator up so I could actually see my app running... the conversion tools were fine, because they're java Apr 19 16:12:15 but in proper lingo :) Apr 19 16:12:26 meh, i didn't bother :) Apr 19 16:12:44 i just let their content control team do the job :) Apr 19 16:12:56 it was a pretty desperate move for them Apr 19 16:13:08 hi, try to install ADT on windows xp 32 bit with eclipse indigo, install not well "registry dispatcher error" andafter restart nothing is available and the sdk manager only says "the chosen operation is not currentyl available" Apr 19 16:13:24 made it clear they had a disastrous lack of apps + lots of spare inventory Apr 19 16:13:31 Leeds: google did the same in the beginning though Apr 19 16:13:34 its a fresh indigo Apr 19 16:13:34 RobinB: ty for the help Apr 19 16:13:39 and canadiancow|work Apr 19 16:13:40 although they didn't announce it beforehand Apr 19 16:13:47 maybe the fact that i asked a question will give me some leniency Apr 19 16:13:54 RobinB: they never offered free hardware for *every* successful submission Apr 19 16:13:59 wut Apr 19 16:14:03 Rockmaninoff what's your username? Apr 19 16:14:07 Leeds: true - not quite the same. Apr 19 16:14:10 should be same as mine here... Apr 19 16:14:10 rim is giving devices out for complete shit Apr 19 16:14:14 i doubt i'm in top 200 even Apr 19 16:14:14 google did it to deserving devs Apr 19 16:14:19 took me friggin' 8 tries Apr 19 16:14:20 HTC did it too Apr 19 16:14:24 they gave hardware at events, and at devs with *successful* apps Apr 19 16:14:24 for even less Apr 19 16:14:28 cool Rockmaninoff, 124 :) Apr 19 16:14:36 first 3 attempts, correct except for the errors on THEIR end Apr 19 16:14:41 although with penalties, that could increase Apr 19 16:14:45 next 4 attempts were trying to fix the error that THEY caused Apr 19 16:14:47 Nokia gave me a Lumia for... well, for the fun of it, I think. I sold it Apr 19 16:14:53 then finally out of desperation i tried the original solution Apr 19 16:14:55 and it worked Apr 19 16:14:59 well you're close enough that i think you might make it, but if not, bad shit will happen Apr 19 16:15:08 but if the tickets are non transferrable, i feel bad Apr 19 16:15:10 so, gg Google, thanks for not answering the question i posted :( Apr 19 16:15:11 becuase im not going to buy one Apr 19 16:15:11 nbd nbd Apr 19 16:15:14 Oh, sweet, i didn't get a lumia Apr 19 16:15:21 lol canadiancow|work you're not getting one and you're in top 100? Apr 19 16:15:23 Leeds: any idea why they gave it to you? Apr 19 16:15:42 Rockmaninoff: same here :/ Apr 19 16:15:58 maybe i should write google and tell them to give it to the 101st instead Apr 19 16:16:11 RobinB: yeah, went to a developer event, they had a couple to give away, asked people to tweet them a reason why they should get... I said something like "I haven't had a Nokia for years, and I'm willing to be proved wrong about WP" :) Apr 19 16:16:17 I wasn't proved wrong. Apr 19 16:16:55 heh Apr 19 16:17:21 Rockmaninoff, i already have a ticket (sort of) Apr 19 16:17:23 was that in hongkong? Apr 19 16:17:28 my boss has one that he's trying to transfer to me Apr 19 16:17:41 *to me Apr 19 16:17:45 also, my gnex was stolen 2 days later (in China), so I sold it to partly fund a replacement Apr 19 16:17:49 well i'm off to lunch, ty for the help Apr 19 16:17:52 JakeWharton lol Apr 19 16:17:55 * Rockmaninoff fingers crossed etc Apr 19 16:17:58 you should have done the code jam :( Apr 19 16:18:02 so we can jam at io Apr 19 16:18:16 RobinB: yeah, in HK... there was a week-long social media groupwank thing going on, and the developer event was like a fringe thing Apr 19 16:18:19 when is io again? Apr 19 16:18:26 no Apr 19 16:18:33 cause JakeWharton would have gotten it wrong/right Apr 19 16:19:00 lol Apr 19 16:20:03 15:08 < storkme> JakeWharton: using ABS 4.0.1, got an activity that has Apr 19 16:20:03 theme=Theme.Sherlock.Dialog, it appears on an ICS device *and* Apr 19 16:20:06 a 2.3.5 device as a Holo style dialog -- is this expected Apr 19 16:20:09 behaviour? It looks a bit odd since the rest of my apps Apr 19 16:20:11 dialogs use the native dialog style Apr 19 16:20:17 okay that didn't work how I'd planned :/ sorry Apr 19 16:20:24 5-line paste alert! :) Apr 19 16:20:33 * lov glares Apr 19 16:20:35 * storkme kicks irssi Apr 19 16:20:36 storkme: yes that's how the theme works Apr 19 16:20:43 * Leeds kicks storkme Apr 19 16:20:50 "Do you guys know what this means? This means that the 100 people that will get GoogleIO tickets are actually WORSE programmers than the rest of us? They didn't handle their edge cases properly." Apr 19 16:21:00 storkme: if you want AlertDialog to be themed like Holo you'd have to do it yourself Apr 19 16:21:09 it was deemed out of scope for ABS Apr 19 16:21:20 mikedg: at least they kept the number of bitter and cynical programmers low Apr 19 16:21:23 hey JakeWharton, do you want to be me at IO? Apr 19 16:21:23 :D Apr 19 16:21:24 :P Apr 19 16:21:28 fair enough, thanks JakeWharton Apr 19 16:21:39 canadiancow|work: yes Apr 19 16:21:46 you must moo Apr 19 16:21:47 i should start a bidding war between lov, JakeWharton, and mikedg Apr 19 16:21:48 I already like hockey Apr 19 16:21:51 everyone loved that last year Apr 19 16:21:57 canadiancow|work went around moo'ing Apr 19 16:21:57 halfway canadian Apr 19 16:22:09 i own the Penguins Apr 19 16:22:10 meh, an event full of wannabes who are just there for the freebies :) It's below me! (also, it's half-way around the world for me, and expensive) Apr 19 16:22:21 maybe I'll use the panel theme then Apr 19 16:22:24 im not a wannabe Apr 19 16:23:09 canadiancow|work: no, you're a cow Apr 19 16:25:16 [RobinB] again, it worked. thanks again :) Apr 19 16:26:10 any one here know his way with bluetooth? I'm wondering if I can use HFP (hands free protocol) to transfer binary data to android Apr 19 16:27:29 RafaFirenze, you're welcome. Apr 19 16:27:39 sasson: isn't there another protocol for that...? Apr 19 16:30:19 moonlightcheese, as a H/W developer, if you want to BT connect to iphone without having apples extra hardware layer, you must use HFP, I'm wondering if I can use it to transfer data, and as android is the main platrform I'm developing to, I'm wondering how it can be done? Apr 19 16:31:02 sasson: idk, i messed with SPP quite a bit but i don't think i can help you. Apr 19 16:32:29 SPP is great, too bad apple want's extra $$$ for me use it Apr 19 16:32:35 wants Apr 19 16:33:18 If i use the visualizer to fft transform some audio and all i want is the frequency spectrum, can i ignoe the Im part of the FFT data and only plot the real part? Apr 19 16:38:01 is today be nice to canadiancow|work day :p Apr 19 16:38:06 sasson: on Android, it's free, but every manufacturer seems to break it. Apr 19 16:38:59 i havent won yet though :P Apr 19 16:39:16 canadiancow|work: you're a winner to us! Apr 19 16:39:19 ;) Apr 19 16:40:00 canadiancow|work: question is will you ever :p Apr 19 16:40:03 hey wongk Apr 19 16:40:13 ello Apr 19 16:40:40 wongk: :D my initial android project was added to libreoffice core in an experimental directory on master branch :D Apr 19 16:40:46 ready to proceed to the next phase :) Apr 19 16:41:06 what was your project again? :P Apr 19 16:41:33 moonlightcheese, android is great, but as I want to talk to both android and ios, I need to use HFP to manage my connections, so I wonder I to use it with android Apr 19 16:41:43 starting off now to do a file explorer for libreoffice where it searches the phone as well as memory card and lists files that are in formats that are compatible and supported by libreoffice Apr 19 16:41:53 eagles0513875, i think so Apr 19 16:42:03 its unlikely (but not impossible) to get the small, but not the ibg Apr 19 16:42:05 ah yes, yes Apr 19 16:42:06 and im ranked 56 Apr 19 16:42:10 canadiancow|work: i hope so for your sake Apr 19 16:42:15 hey guys is it possible to generate a string containing html/javascript and pass that to a webview? Apr 19 16:42:19 i need it to be dynamic Apr 19 16:42:20 well i dont care so much for me - i have a ticket Apr 19 16:42:28 sasson: k. Apr 19 16:43:29 unless theres another way i can ultise a webview, what i have is a static image in mycode and then i need to plot pins on the map which come from an xml feed i grab - any ideas? Apr 19 16:43:45 and im using webview because it needs zoom/pan/select and that works nice Apr 19 16:46:20 * aLeSD loves fragments Apr 19 16:47:32 https://twitter.com/#!/htcdev/status/193015363800281089 Apr 19 16:47:40 finally some confirmation Apr 19 16:48:05 i wish twitter would get out of my life :P Apr 19 16:48:13 canadiancow|work: so are you getting fired? Apr 19 16:48:24 why would i get fired? Apr 19 16:48:34 cause you got the code jam question wrong Apr 19 16:48:48 ok 1. tell me it's wrong, and i can figure out why in 30 seconds Apr 19 16:48:57 2. i was referring more to the people who were like "wut is this i dont even" Apr 19 16:49:16 yeahyeah Apr 19 16:49:19 so no one knows if i can pass a string to webview? could i write my own files to a tmp area and read them, that would work yeh? Apr 19 16:49:29 sure you can pass a string to webview Apr 19 16:49:31 i do it all the time Apr 19 16:50:07 ie pass some html and java script as a string that it reads? Apr 19 16:50:14 parses as a page Apr 19 16:51:38 mikedg? Apr 19 16:52:30 i wonder if http://developer.android.com/reference/android/webkit/WebView.html#loadData(java.lang.String, java.lang.String, java.lang.String) is relevant Apr 19 16:52:35 Hi - I'm working on building AOSP. I added a package to ROOT/build/target/product/generic.mk and it worked fine (APK was built and put into images). However, now I've removed that package, rerun make, and I'm still seeing that application showing up on the phone. Apr 19 16:52:43 Do I have to run a complete make clean to stop this? Apr 19 16:52:59 Can I just go into out and delete the intermediates folder and re-run make? Apr 19 16:53:00 wongk! Apr 19 16:53:06 thats it Apr 19 16:53:10 thanks so much Apr 19 16:53:14 this is gonna save my life Apr 19 16:53:18 and it only took me 10 seconds to find it using google Apr 19 16:53:21 thats an amazing feature theyve implemented Apr 19 16:53:24 gaz`: yeah thats it Apr 19 16:53:28 its been there forever i thought Apr 19 16:53:30 i googled for ages last night but id had a few beers Apr 19 16:53:34 maybe was inefficient Apr 19 16:53:41 dont google yourself when youve had something to drink Apr 19 16:53:48 mikedg prob has i just mean im impressed it was considered Apr 19 16:53:54 hehe Apr 19 16:54:11 for your future reference: "webview android" was my search stirng Apr 19 16:54:17 e.g. is there any 'clean' that would work on a single application Apr 19 16:54:25 what do you mean? Apr 19 16:54:30 ant clean? Apr 19 16:54:43 oh nevermind Apr 19 16:54:49 your comments were so fucking far apart Apr 19 16:54:52 wongk oh yeh thats pretty simple, and right there Apr 19 16:54:59 mikedg: pwnd Apr 19 16:55:00 i figured it would need to be a hack and not so easy Apr 19 16:55:36 seems like the #1 use case of the control to me :P Apr 19 16:55:44 nah Apr 19 16:55:47 blatently isnt tho is it Apr 19 16:55:54 number oen use is loading local files or remote files Apr 19 16:56:06 passing a string is a luxury feature :) Apr 19 16:56:10 what gives you that idea? Apr 19 16:56:29 just what id expect Apr 19 16:56:37 hmmm... Apr 19 16:56:47 how do i properly intercept a touch event in a fragment? Apr 19 16:56:56 i've never used a webview for anything other than loading data i pass it Apr 19 16:57:20 overriding onTouchEvent doesn't seem to work... Apr 19 16:58:30 You do it on the view, moonlightcheese Apr 19 16:59:08 i tried setOnTouchListener on the ViewFlipper but that didn't work either :/ Apr 19 16:59:32 Then something else is consuming the event Apr 19 16:59:49 Maybe it's the viewflipper that does it Apr 19 17:00:05 mViewFlipper.setOnTouchListener(swipeListener); Apr 19 17:01:55 There's nothing special about doing it in a fragment Apr 19 17:03:00 well i had it working in another application by overriding onTouchEvent, but that's not available in a fragment. Apr 19 17:03:16 the other application didn't employ fragments. Apr 19 17:04:44 anyone familiar with the Zenithink C91 tablet? Apr 19 17:05:10 public void onClick(View v) { Apr 19 17:05:10 if (myLocationButton.isClickable()) { Apr 19 17:05:10 mapController.animateTo(myLocationGeoPoint); Apr 19 17:05:10 mapController.setZoom(17); Apr 19 17:05:10 Apr 19 17:05:11 } Apr 19 17:05:22 Sorry about that. Apr 19 17:05:40 that was bad and you should feel bad. Apr 19 17:05:41 has anyone developed for at&t's sony tablet with dual 5"? do you have to do anything special to manage the two screens or can i just use one single canvas Apr 19 17:05:57 But I don't! Apr 19 17:05:57 lol Apr 19 17:06:08 dual 5"? Apr 19 17:06:57 it flips out with two 5.5 inch touchscreens Apr 19 17:07:30 that sounds redonkulous! Apr 19 17:07:51 huh... well it works. i can receive the onDown event, but not over the buttons. Apr 19 17:08:09 sony is always doing weird shit Apr 19 17:08:33 and it doesn't register an onFling at all. Apr 19 17:08:53 how do i get this thing to consume the event over the buttons if it's a swipe? Apr 19 17:10:00 I want to add an onClick listener to a Button; so when I press it, it animatesTo user location. However, if there is no user location and the button is pressed, it crashes due to user location = null. How do I make it run ONLY when it is not equal to null? I have tried ' if (myLocationButton.isClickable() && myLocationGeoPoint != null) { mapController.animateTo(myLocationGeoPoint) mapController.setZoom(17); ' - However, it refuses to pick up the listen Apr 19 17:10:01 moonlightcheese: You have to return true to consume the event Apr 19 17:10:15 If you don't return true in onDown, you're saying you don't want to consume it Apr 19 17:10:26 right, it returns false. Apr 19 17:11:01 so here's what i have: a view flipper filled with pages of 28 buttons per page. Apr 19 17:11:13 with a text title at the top of each. Apr 19 17:11:30 i need to consume flings to switch pages, but still have the buttons work. Apr 19 17:11:41 ? Apr 19 17:12:00 You should probably subclass viewflipper then Apr 19 17:12:18 That gives you access to onInterceptTouchEvent Apr 19 17:12:19 wow really... Apr 19 17:12:28 Then just return true when a fling is on progress Apr 19 17:12:42 And handle it in onTouchEvent Apr 19 17:14:08 Hi people. I get this runtime exception for my app, after having upgraded from 2.x to 4.x: http://paste.lisp.org/display/129042 Apr 19 17:14:15 How should I go by debugging it? Apr 19 17:15:53 never seen "(Unknown Source)" Apr 19 17:16:00 a debugger Apr 19 17:16:15 unknown source is odd Apr 19 17:17:19 FWIW, I also started using proguard. Hm. I should probably disable it and see if the problem is gone ? Apr 19 17:17:32 I mean besides upgrading to 4.x I also started using ProGuard Apr 19 17:17:56 i assume you don't use it on debug builds Apr 19 17:18:29 this is a release build Apr 19 17:19:08 O.o Apr 19 17:19:27 mikedg RobinB Rockmaninoff you all see google's response? Apr 19 17:19:37 "4 of our problem writers have independently made the same bug in their solutions" Apr 19 17:19:38 ah, no Apr 19 17:19:44 lol Apr 19 17:19:50 hah! Apr 19 17:20:05 that's classic Apr 19 17:20:07 i made the mistake because i was under a time constraint, and google said i was right so i had no need to further check Apr 19 17:20:10 what's their excuse? :P Apr 19 17:20:30 so are they going to redo the whole damn thing? Apr 19 17:20:46 least unfair manner possible Apr 19 17:20:48 possibly Apr 19 17:20:55 or only rank problem B Apr 19 17:21:07 good thing i did that first Apr 19 17:21:09 the problem with only B is that if you spent an hour pulling your hair out for A Apr 19 17:21:13 you're an hour behind Apr 19 17:21:19 true, just occured to me too Apr 19 17:21:28 redoing is bad because people cant just take time off work every day for this shit Apr 19 17:21:30 * RobinB gets some popcorn Apr 19 17:21:33 there is no good solution Apr 19 17:21:42 the "best" is redoing the whole thing Apr 19 17:21:49 well, there doesn't need to be a good solution Apr 19 17:21:52 or depending on how many people get 60 points, offer them all tickets Apr 19 17:21:56 just a minimal worst case Apr 19 17:21:56 haha Apr 19 17:22:15 although no, because there are people who did it "right" but it was marked wrong Apr 19 17:22:20 i dunno Apr 19 17:22:27 yeah, i'd go for "do it again, but still offer everyone here the 100 tickets" Apr 19 17:22:43 there are only 265 entrants? Apr 19 17:22:50 beep beep boop beep Apr 19 17:22:51 hmm Apr 19 17:22:54 can someone tell me what i'm doing wrong with gesture detection? i can receive an onDown event but not onFling events. http://pastebin.com/KTmY3uuK Apr 19 17:23:15 canadiancow|work: true, didn't see that. then they could just offer everyone a ticket Apr 19 17:23:21 well the analogy for the fling is something like Apr 19 17:23:22 i'd be tempted to do top 100 and everyone who gets full points on B Apr 19 17:23:35 imagine you just picked a booger Apr 19 17:23:40 and you want to get rid of it Apr 19 17:23:53 now turn the objective into code Apr 19 17:24:02 and you will have your fling method Apr 19 17:24:10 that was incredibly helpful. Apr 19 17:24:40 well you the one eating cheese by the moonlight Apr 19 17:24:55 i'd call you vampire but I don't think there is a blood cheese Apr 19 17:24:55 oh. Apr 19 17:25:06 blood sasauge but not cheese Apr 19 17:25:10 anyway Apr 19 17:25:13 wut. Apr 19 17:25:25 I'm building a super duper android program/app Apr 19 17:25:30 its gonna go viral Apr 19 17:25:37 hmmmmm Apr 19 17:25:42 <3 ignore Apr 19 17:25:44 is wut and english word? Apr 19 17:25:46 calmchess = mikedg. Apr 19 17:26:09 enough bull shit Apr 19 17:26:14 i'm gonna lurk awhile Apr 19 17:26:20 love u dev guys Apr 19 17:26:20 evancharlton Apr 19 17:26:27 just trying to distract u Apr 19 17:26:37 not trying to be a troll all the time Apr 19 17:26:39 bbl Apr 19 17:26:41 wongk: email me ur address create of beers coming your way.... ok i had to go into java and come back again (MOAN!! why cant it all be native:) Apr 19 17:26:42 ctate Apr 19 17:26:44 lov? Apr 19 17:27:11 que? Apr 19 17:27:13 the_dime_bar: what did i do? i forget :P Apr 19 17:27:17 oh this guy Apr 19 17:27:42 you forgot "is shitty" ;) Apr 19 17:27:42 cheers Apr 19 17:27:58 wongk: android.media.MediaScannerConnection Apr 19 17:28:02 thanks lov <3 Apr 19 17:28:06 friend of mine just finished the contest Apr 19 17:28:09 I scrotum you too Apr 19 17:28:13 163 Apr 19 17:28:17 ah Apr 19 17:28:21 you talking about the io contest? Apr 19 17:28:24 yea Apr 19 17:28:25 i think u told me to look at that Apr 19 17:28:27 what a joke that was Apr 19 17:28:29 shit's hitting the fan lov Apr 19 17:28:30 haha Apr 19 17:28:32 they fucked it up so bad Apr 19 17:28:34 whoops our answer parser doesn't work Apr 19 17:28:40 turns out the shittiest devs who didn't do corner cases are going! :D Apr 19 17:28:47 haha Apr 19 17:28:48 * lov is over it Apr 19 17:28:49 that includes me Apr 19 17:28:53 * RobinB 2 Apr 19 17:28:58 :D Apr 19 17:29:05 but under pressure, im depending on feedback from the site Apr 19 17:29:18 if it says "you're wrong" i go and look at stuff more carefully Apr 19 17:29:21 because time is a constraint Apr 19 17:30:43 doesn't matter, answer correct Apr 19 17:30:49 dm,ac Apr 19 17:34:10 canadiancow|work: yeah saw those questions Apr 19 17:34:13 i asked the first question! Apr 19 17:34:17 that means i should get in for free Apr 19 17:34:25 or at least get an opp. to get a ticket. Apr 19 17:34:38 and yes, i am firmly in the camp of spending an hour tearing my hair out over Problem A before moving onto Problem B Apr 19 17:34:43 B took maybe 5 minutes Apr 19 17:35:15 the worst part is that i have EIGHT wrong tries for Problem A Apr 19 17:36:02 since i submitted actual correct answers 4 times, then figured out there was an edge case that Google was improperly handling, then solved that edge case, then submitted another 4 times after they had fixed the error but not responded to the question, then lucked out by randomly submitted the original code Apr 19 17:36:03 blurgh Apr 19 17:36:05 is there a quiz? Apr 19 17:36:08 hmmm... anyone? Apr 19 17:36:27 can someone tell me what i'm doing wrong with gesture detection? i can receive an onDown event but not onFling events. http://pastebin.com/KTmY3uuK Apr 19 17:37:02 Rockmaninoff: they actually fixed the question?? Apr 19 17:38:02 oh Rockmaninoff they fixed the error? Apr 19 17:38:30 they should have just removed all the cases with only zeros Apr 19 17:38:41 RobinB canadiancow|work yeah they fixed it Apr 19 17:38:43 so, are the Zenithink tablets any good? Apr 19 17:38:49 while i was trying to unfix it :P Apr 19 17:38:54 (for developers to test on I mean) Apr 19 17:38:57 not confusing at all Apr 19 17:39:00 so i just got desperate and tried it with "working" code Apr 19 17:39:03 and voila Apr 19 17:39:05 Hiraghm: never heard of those Apr 19 17:39:15 I've seen/read some good reviews Apr 19 17:39:21 and there are a lot of them on ebay right now Apr 19 17:40:01 the 7" can be had for as low as $120 US... capacitive, 1 ghz, 1gb, cortex a9 cpu, same gpu as Galaxy SII, 8 gb internal, microSD... Apr 19 17:40:37 7" is 800 x 480, 10" is 1024 x 600, and 5 point gesture for both Apr 19 17:40:55 what's bugging me, is I want the screen resolution of the 10", but the price of the 7" :D Apr 19 17:41:47 1024x600 isn't common in androids though, or is it? Apr 19 17:41:55 Hiraghm: look into the Eken A90 or Visture V3 Apr 19 17:42:38 Hiraghm: V3 is the same chassis but with double the internal storage, 10 point multitouch, bigger battery and aluminium back Apr 19 17:42:43 I've heard of the Eken... Apr 19 17:42:43 " We've made a mistake in problem A. The correct output is 0, but it is being judged as wrong because 4 of our problem writers have independently made the same bug in their solutions. We would like to apologize for the confusion this has caused. We will send an email to all participants shortly, announcing our plan to resolve this issue in the least unfair manner possible. We take a lot of precautions to prevent mistakes like this, but we have messed up Apr 19 17:42:43 this time." Apr 19 17:42:44 lololol Apr 19 17:42:56 hashbang, but how much price? Apr 19 17:43:13 mikedg: that dude asked after me Apr 19 17:43:17 mikedg: yeah, you're late to the discussion :) Apr 19 17:43:19 Robin, I don't think it is. Oh, yeah these tablets also come with ICS. Apr 19 17:43:19 where's the quiz` Apr 19 17:43:20 they better recognize. Apr 19 17:43:20 i got the same answer Apr 19 17:43:24 s/`/?/ Apr 19 17:43:34 Ge0rG: what quiz? Apr 19 17:43:45 Ge0rG: http://code.google.com/codejam/contest/1656485/dashboard#s=p1 Apr 19 17:44:02 Hiraghm: between £140 and £220 in the UK Apr 19 17:44:12 "You are not eligible to compete in this contest." Awww... Apr 19 17:44:19 need to register Apr 19 17:44:20 sec Apr 19 17:44:37 ouch. that'll probably be between $200,000 and $5 million in U.S. monopoly money :( Apr 19 17:44:40 https://code.google.com/codejam/contest/registration?t=1654485 Apr 19 17:45:23 Hiraghm: tech is usually priced at £1 for US$1, regardless of the official exchange rate... :-( Apr 19 17:45:23 thanks Apr 19 17:45:30 oh yeah, the 7" tablet is unlocked Apr 19 17:45:43 (dunno bout the 10 inch) Apr 19 17:46:44 my 7" tablet is unlocked Apr 19 17:48:22 my 7" tablet didn't even come with a lock! =/ Apr 19 17:49:01 Wow +Google Developers catching some major flak :( Apr 19 17:49:05 poor guys Apr 19 17:49:10 8===============================================================================================================================D <- my 7 inch tablet Apr 19 17:49:17 =\ Apr 19 17:49:27 23 points on a 72dpi screen for exactness Apr 19 17:50:24 hello! does anyone have experience using ndk-gdb? Apr 19 17:55:50 Rockmaninoff: where? Apr 19 17:55:57 Google+ post Apr 19 17:56:11 https://plus.google.com/u/0/111395306401981598462/posts/LmdU3TvNVrs Apr 19 17:56:51 whatevs, water under the bridge etc. Apr 19 17:56:56 still hoping there's some way i get a ticket Apr 19 17:57:08 wow the problems were posted as practice problems last night? Apr 19 17:57:09 wtf Apr 19 17:57:24 yeah it gets worse Apr 19 17:57:28 and worse Apr 19 17:57:31 yup Apr 19 17:57:36 so like, i get it now Apr 19 17:57:52 them having an incorrect validator is the minimum worst case scenarion because i can't win Apr 19 17:57:58 haha Apr 19 17:57:59 lololol Apr 19 17:58:13 them having an incorrect validator and posting theproblems a day before is the maximum amirite Apr 19 17:58:21 still < 300 total entrants Apr 19 17:58:28 i don't see it getting much higher than it is now in the next hour Apr 19 17:58:36 Google has a heart! maybe they'll let everyone in Apr 19 17:58:42 but 300 is 3*100 Apr 19 17:58:46 they should just give it to everyone who entered, not everyone is even going to take a ticket Apr 19 17:58:58 that's some brillian math right there canadiancow Apr 19 17:59:01 t Apr 19 17:59:02 but i need something else to bitch about so let all 300 in and i can bitch about overcrowding Apr 19 17:59:04 like last year Apr 19 17:59:13 lol Apr 19 17:59:22 this is why you should pre-register for sessions Apr 19 17:59:26 so that they can allocate space properly Apr 19 17:59:48 is a galaxy note hdpi or xhdpi, im thinking hdpi Apr 19 17:59:51 i'm still most bitter about the fact that they fixed the validator and then didn't respond to my question :( Apr 19 17:59:51 but dont have one in front of me Apr 19 17:59:54 hdpi Apr 19 17:59:55 so i used up 4 extra submissions Apr 19 18:00:12 lol Apr 19 18:00:22 I'll tell them you can have my invite, Rockmaninoff Apr 19 18:00:26 lololol Apr 19 18:00:28 tyvm Apr 19 18:00:30 i want your invite Apr 19 18:00:38 im more gangster than him Apr 19 18:00:43 i wonder if the solver for the big dataset uses the old or the new algorithm Apr 19 18:00:58 oooh actually RobinB that's an interesting point Apr 19 18:00:58 it just returns correct now regardless Apr 19 18:01:05 they should just use the "correct" solver on all choices Apr 19 18:01:08 that might just solve everything Apr 19 18:01:19 the early dudes who didn't handle edge cases get screwed though :-\ Apr 19 18:01:25 thats not fair Apr 19 18:01:39 becuase it told me i was correct Apr 19 18:01:40 like canadiancow|work ಠ_ಠ Apr 19 18:01:41 :P Apr 19 18:01:51 huh? Apr 19 18:01:52 if it had said i was incorrect, i would have taken the penalty, fixed it, and resubmitted Apr 19 18:01:54 codejam is over already? Apr 19 18:01:58 i think the only fair thing to do is to cancel IO completely ;) Apr 19 18:01:58 true story Apr 19 18:02:03 pfn: no, still one hour left i think Apr 19 18:02:04 codejam was over before it started Apr 19 18:02:06 pfn: codejam broken Apr 19 18:02:10 damn Apr 19 18:02:14 I didn't even know it's going on Apr 19 18:02:21 it's still running for an hour Apr 19 18:02:34 we had some amazing programmers submit answers in 30 seconds Apr 19 18:02:37 might make sense to take part if you want to buy an io ticket Apr 19 18:02:50 mikedg: doesn't that just mean "30 seconds from the first time they clicked 'Solve'"? Apr 19 18:03:04 that seems relatively normal provided you know the procedure Apr 19 18:03:08 i was submitting answers in 20 seconds Apr 19 18:03:12 it means 30 sec from the start of the contest Apr 19 18:03:16 oh for srs Apr 19 18:03:29 i guess the practice problem information has to be real then Apr 19 18:03:34 i was skeptical about that Apr 19 18:03:44 yeah Apr 19 18:03:55 such a mess :) Apr 19 18:04:47 meh, i'll take top 150 given it was my first code jam and all the lols about Problem A Apr 19 18:05:30 the "real" codejams are a bit harder, normally Apr 19 18:05:32 same format though Apr 19 18:06:12 ah Apr 19 18:06:18 here are the problems from last weeks qualification round: http://code.google.com/codejam/contest/1460488/dashboard Apr 19 18:06:22 i should try to get a template of some sort then Apr 19 18:06:29 yeah Apr 19 18:06:41 i reused my files Apr 19 18:06:56 Does public boolean preScale(float sx, float sy, float px, float py) using px and py as the origin/starting point from which to scale? Apr 19 18:07:02 yeah, i made a template for myself from the samples Apr 19 18:07:04 its just a couple lines with python anyway, but it avoids me having silly stuff like "Case #0:" and such Apr 19 18:07:08 java io using scanners and a loop Apr 19 18:07:12 and prints Apr 19 18:07:47 BufferedReader all up in this Apr 19 18:08:03 data = map(int, f.readline().split()) ^^ Apr 19 18:08:24 i just do a bunch of next...() on the scanner Apr 19 18:08:31 i reused mine from last year's code jam Apr 19 18:08:35 since it wouldnt let me fucking register this year Apr 19 18:08:38 i jammed your mom Apr 19 18:08:43 RobinB: but for Problem B you didn't want a String for the second one? :P Apr 19 18:08:44 full of cod Apr 19 18:08:56 Rockmaninoff: yeah, yeah :) Apr 19 18:09:23 Rockmaninoff i used a string for it Apr 19 18:09:27 then just substring'd my way through Apr 19 18:09:32 i used arrays of chars Apr 19 18:11:18 dammit meetings all morning, can't do code jam Apr 19 18:11:42 just do it secretly on your phone Apr 19 18:11:46 under the table Apr 19 18:12:06 questions are so simple, it's like a 10 line solution Apr 19 18:12:25 protip: just ignore any edge cases Apr 19 18:12:42 google does it too! :D Apr 19 18:13:00 haha Apr 19 18:13:21 just keep your stuff beta, everyone will understand Apr 19 18:18:16 jesus, it took long enough http://www.h-online.com/security/news/item/Universal-IPSec-VPN-client-for-Android-4-0-1543230.html Apr 19 18:18:38 "Florian Mueller Outs Himself As Oracle Employee" <-- i thought this was an onion article Apr 19 18:19:14 guys, can i run a android game on eclipse? Apr 19 18:19:34 what Apr 19 18:19:35 ...no Apr 19 18:19:47 eclipse is an IDE, not an android emulator Apr 19 18:20:02 you can run a android game in the android simulator Apr 19 18:20:11 emulator* Apr 19 18:20:15 which isn't eclipse, though Apr 19 18:20:32 holy shit, Nokia post a net loss of EUR 929 million Apr 19 18:20:38 oh yes emulator thanks canadiancow|work Apr 19 18:20:39 Heh, is there a log file with build results? My comsone's got about a billion output messages dumped into it from the build process and it only scrolls back so far Apr 19 18:20:49 console even Apr 19 18:27:43 is emulator and avd same Apr 19 18:28:49 yes Apr 19 18:29:09 devish: are you a developer? If so, start at d.android.com Apr 19 18:29:50 thanks lov Apr 19 18:30:59 I've opened a Socket to a webserver running a custom cgi. I have posted data successfully*, but when I try to read the output from the server with read(byte[],0,length), it hangs. Do you know why this would be? Apr 19 18:32:06 how do you know it hangs Apr 19 18:32:18 how's it hanging Apr 19 18:32:20 Debug before prints, not so much afterwards. Apr 19 18:32:47 And then I eventually get the "I'm bored, application closing." message; Apr 19 18:36:45 FUCK THE NDK Apr 19 18:37:06 FUCK THE GOOGLE Apr 19 18:37:18 it's a big anti mike dg at google io conspiracy Apr 19 18:37:22 :( Apr 19 18:37:23 <3 Apr 19 18:37:25 (_O_) Apr 19 18:37:37 it's all because marissa mayer is my ex-wife Apr 19 18:37:38 i should have a bidding war between JakeWharton mikedg and lov if i get a second ticket Apr 19 18:37:40 i'm now blacklisted Apr 19 18:37:53 i'm not bidding Apr 19 18:37:59 but i will allow you the privilege of giving me a ticket Apr 19 18:38:03 :D Apr 19 18:38:04 What's the "gotcha" that is always present when someone sticks an asterisk by a phrase? -> I have posted data successfully*, Apr 19 18:38:28 JakeWharton, best you're going to get is the ability to reimburse me the $900 Apr 19 18:38:36 LycaonX: it's called a subdiddle Apr 19 18:38:45 I think I could do that Apr 19 18:38:52 plus a beer Apr 19 18:39:02 i'll do one better, jake will reimburse you + i'll give you a g1 for your ticket Apr 19 18:39:08 a g1... Apr 19 18:39:21 they didn't make those in canada Apr 19 18:39:28 wont even know until google decides what to do with the stupid problem A fuckup Apr 19 18:39:32 this is a collector's item, like a first run caddilac convertable Apr 19 18:40:17 canadiancow: Drakonite does a lot of work with the ndk; he may have some clues Apr 19 18:40:29 every time i look at jni, i want to barf Apr 19 18:40:39 well this is more that someone who is not an android devloper (said so himself) setup this nasty project structure Apr 19 18:40:39 :P Apr 19 18:41:10 ignorance trumps convention, i love it ! Apr 19 18:42:22 zynga poker just became the top grossing app in the play store Apr 19 18:42:27 i dont even... Apr 19 18:42:36 poke her? i hardly know her Apr 19 18:42:54 +1 Apr 19 18:43:13 just have some drinks firsyt Apr 19 18:45:05 15 minutes! Apr 19 18:45:19 shhh Apr 19 18:45:35 i'm expecting we'll learn what google intends to do today, right? Apr 19 18:45:42 in 15 minutes, i'll get off in 2 hours! Apr 19 18:46:15 apparently the card order in zynga poker is not random, but it uses predefined decks to increase tension and drama in the game Apr 19 18:46:42 RobinB: ...so it's solvable? Apr 19 18:46:55 i don't know this for a fact though, read it in an iama while ago from a former zynga employee Apr 19 18:47:05 guess not, there's still a large number of sets Apr 19 18:47:08 RobinB, i dont think that's true Apr 19 18:47:27 it did sound convincing, but i dunno Apr 19 18:47:49 which are more popular with users, 7" or 10" android tablets? anyone have any stats? Apr 19 18:47:50 you can't play for money on zynga poker right? i mean, you can never get money out? Apr 19 18:47:59 correct Apr 19 18:48:13 the ladies think 10" is too big Apr 19 18:48:20 yeah. so it probably isn't constrained by some gambling laws about randomness Apr 19 18:48:41 see, im tempted to go check on that Apr 19 18:48:47 but if i find out you're right, i cant say anything Apr 19 18:48:48 i'll dig up the link Apr 19 18:48:57 i dont need a link Apr 19 18:49:00 canadiancow|work: send me the code and ill do the analysis Apr 19 18:49:02 im sitting 10 feet from the poker team Apr 19 18:49:07 oh, really? :) Apr 19 18:49:12 woops! Apr 19 18:49:19 you work for zynga? Apr 19 18:49:22 yes Apr 19 18:49:30 LycaonX: The successfully* in this case means that just becuase the write function succeeded, it in no way implys any level of actual success in contacting a webserver at the other end of the Socket. Apr 19 18:49:30 He owns Zynga Apr 19 18:49:43 canadiancow|work = Mr. Scott Z. Ynga Apr 19 18:49:51 nice. do they monitor irc? :) Apr 19 18:50:01 followup question: do you like it there? Apr 19 18:50:06 they steal your ideas when you ask for advice ;) Apr 19 18:50:32 Dudes, is there any way to style a spinner's drop-down appearance separate from its pop-up appearance? I'm using a custom adapter, and when I add padding to each of the views, it subsequently adds padding to the drop-down spinner control itself, which I don't want. Any thoughts or ideas? Apr 19 18:50:58 RobinB, yes Apr 19 18:51:04 but im in a remote studio, so the culture here is different Apr 19 18:51:07 and i have not yet been to the SF office Apr 19 18:51:13 so i cant comment on what it's like to work there Apr 19 18:51:24 but i do what i love and i love what i do Apr 19 18:51:25 is it possible to detect the speed at which my device is moving using the accelerometer? Apr 19 18:51:30 fascinating! Apr 19 18:51:37 is the lowest u can zoom out using webView.setInitialScale() 25 ? Apr 19 18:51:41 cant seemto go lower than 25 Apr 19 18:51:43 do you work on a particular game, or is that nda'd? Apr 19 18:51:49 i won a free laptop from Zynga when they visited my college Apr 19 18:51:53 i worked on scramble with friends (android) Apr 19 18:52:00 and hanging with friends (android) Apr 19 18:52:09 now ive gone down a layer in our stack though, so my hands are in many games ;) Apr 19 18:52:26 scramble with friends? Apr 19 18:52:26 a demotion?! ;) Apr 19 18:52:29 cool Apr 19 18:52:32 dont you mean scrabble? Apr 19 18:52:41 he also worked on spooning with friends, the sexy app! Apr 19 18:52:42 no Apr 19 18:52:50 i think i know what i worked on, tyvm Apr 19 18:52:51 lol Apr 19 18:52:53 its actually called scramble? lol Apr 19 18:53:07 https://play.google.com/store/apps/details?id=com.zynga.scramble Apr 19 18:53:21 hmm... interesting Apr 19 18:54:31 Rockmaninoff, how did you win the laptop? Apr 19 18:54:43 Zynga dudes did a presentation at school Apr 19 18:54:47 passed around a bag of poker chips Apr 19 18:54:51 i pulled out the one that was a different color Apr 19 18:54:56 got an HP netbook, which i sold :3 Apr 19 18:55:00 heh Apr 19 18:55:05 sent him my resume, didn't hear back but that's k Apr 19 18:55:10 i found a good company Apr 19 18:55:21 also Facebook recruited me but they were a bit...intense Apr 19 18:55:25 where do you work? Apr 19 18:55:31 i work at a shop called WillowTree Apps Apr 19 18:55:41 sounds like a consulting ocmpany Apr 19 18:55:45 yup Apr 19 18:55:52 so I guess I totally missed out on codejam Apr 19 18:55:54 sumbitch Apr 19 18:55:57 pfn: we told you! Apr 19 18:55:59 there's still 5 minutes though Apr 19 18:56:03 haha Apr 19 18:56:08 no, I'm not eligible or something Apr 19 18:56:15 it won't let me download the inputs Apr 19 18:56:15 register! Apr 19 18:56:19 I registered Apr 19 18:56:22 but I guess it's too late Apr 19 18:56:30 yeah it only lasts 3.5 hours Apr 19 18:56:35 get back to work Apr 19 18:56:40 https://code.google.com/codejam/contest/registration?t=1654485 <- this? Apr 19 18:56:46 it's a separate registration Apr 19 18:56:49 yeah, I did that Apr 19 18:56:54 oh ok Apr 19 18:56:56 Anybody? Is there a way to separately style the spinner drop-down and the pop-up? Apr 19 18:57:00 I mean, like 5 minutes ago Apr 19 18:57:01 well, i guess it's indeed to late then Apr 19 18:57:36 damnit, there goes any hope of getting io tickets Apr 19 18:57:55 is there a reliable way of understanding when your app gets dismissed by the user? I'm preferably looking for something other than an onPause callback in my Activities Apr 19 18:58:07 given that they screwed up the questions, there's a minor chance they'll rerun it Apr 19 18:58:07 seanoshea, onPause is *the* reliable way Apr 19 18:58:17 how'd the screw the pooch? Apr 19 18:58:31 Is there a known reason why I couldn't connect to an https IP address with a Socket? (https://192.168.1.6) Apr 19 18:58:34 wrong results for an edge case Apr 19 18:58:38 seanoshea: pop up a dialog in onpause and ask the user what they did Apr 19 18:58:57 they had 4 question testers, and all 4 forgot to check for the edge case Apr 19 18:59:06 seanoshea, No, there isn't. Apr 19 18:59:08 i posted this last night; maybe someone will find it useful http://news.ycombinator.com/item?id=3861741 Apr 19 18:59:12 pfn - ok. But if I use onPause, I have to keep track of whether the activity which is being paused is being paused as a result of the application being dismissed Apr 19 18:59:17 i hear they were going to randomly take 200 tickets away from people who already paid and then give them to every participatant Apr 19 18:59:22 40 seconds! Apr 19 18:59:36 mikedg ? Apr 19 18:59:46 lolol mikedg no way they do that Apr 19 18:59:49 seanoshea, same thing Apr 19 19:00:02 seanoshea, onStop is a little more reliable in doing that Apr 19 19:00:10 onStop activates 1-2 seconds after onPause Apr 19 19:00:28 onPause always fires if it's not topmost Apr 19 19:00:34 there was simple formulaic solution to the question (like packets*(figures-1) + biggest entry) but it gave out wrong answers for the edge case. they used that formula to check answers though :) Apr 19 19:00:39 what are you doing that requires this much thought? Apr 19 19:01:29 pen - but I'd have to override every one of my activities onStop methods and check in each of them to see whether this activity is the last activity on the stack? Apr 19 19:01:33 im 54th :D Apr 19 19:01:37 WINNER WINNER Apr 19 19:01:37 make a baseActivity Apr 19 19:01:39 I'm in 1st Apr 19 19:01:42 canadiancow|work: nice Apr 19 19:01:50 they just fucked up on the ranking too Apr 19 19:01:52 135 at the end Apr 19 19:01:56 they need to hire better developers Apr 19 19:01:59 lol Apr 19 19:02:05 http://i.imgur.com/2KsWx.png Apr 19 19:02:08 they obviously have a subtraction from 0 error Apr 19 19:02:31 mikedg - I have one already. Was just looking for a more graceful solution than adding logic to a base activity Apr 19 19:03:02 would have thought that android would provide a onStop or an onPause callbacks in the application class instead of having to do it on a activity-by-activity basis Apr 19 19:03:23 nope Apr 19 19:03:26 seanoshea, because there's no such thing as application onStop Apr 19 19:03:35 there's no need to model it Apr 19 19:03:52 pfn - ok Apr 19 19:03:52 heh, I totally don't understand what Q1 is asking Apr 19 19:04:08 how can sum(K1:KM) > L? Apr 19 19:04:12 yeah, the obscure formulation is the biggest challenge of this question Apr 19 19:04:23 because L = total packages Apr 19 19:04:35 no Apr 19 19:04:38 how can you possibly buy K1+K2+K3 packages Apr 19 19:04:38 nah, it means there are L of each Ki Apr 19 19:04:41 L is the total packages of each type Apr 19 19:04:42 yea Apr 19 19:04:47 oh Apr 19 19:04:48 there are L*M total Apr 19 19:04:51 it's L*M Apr 19 19:04:53 misread that Apr 19 19:06:11 * pfn grumbles Apr 19 19:06:20 oh well, doesn't matter Apr 19 19:06:24 no chance Apr 19 19:06:49 and dont forget to take into account minimum worst case scenario :/ Apr 19 19:07:13 I mean the questions don't matter because I cannot compete to answer them Apr 19 19:07:16 YOU GET AN I/O TICKET! YOU GET AN I/O TICKET!! /oprah Apr 19 19:07:22 Bees! Apr 19 19:07:26 TREES! Apr 19 19:07:40 the girl crying in the bees .gif is always the part that gets me Apr 19 19:07:40 RuntimeException: native typeface cannot be made Apr 19 19:07:42 uh...wut Apr 19 19:07:55 i got that a few times Apr 19 19:07:57 i forget why Apr 19 19:08:05 huh Apr 19 19:08:10 hello, i need to work on the bitmap displayed in an image view so i use the follwing : Bitmap bmap = ( (BitmapDrawable)mImage.getDrawable() ).getBitmap(); now in order to get it in ARGB_8888, i have to do change the call to this : Bitmap bmap = ( (BitmapDrawable)mImage.getDrawable() ).getBitmap().copy(Bitmap.Config.ARGB_8888,true); Apr 19 19:08:18 weird, now it's giving me a button to solve X small/large now Apr 19 19:08:20 I thought it's over Apr 19 19:08:21 right? or is there some other method without using the copy() ? Apr 19 19:08:26 do it pfn Apr 19 19:08:27 oh Apr 19 19:08:29 open for practice Apr 19 19:08:31 sumbitch Apr 19 19:08:33 bahaha Apr 19 19:08:36 worthless Apr 19 19:08:36 yeah sumbitcccch Apr 19 19:08:38 one final laugh they're having at your expense Apr 19 19:08:40 anyone here using SSL to connect to freenode? Apr 19 19:08:52 I'm sure there are many Apr 19 19:09:01 so only 287 people entered eh Apr 19 19:09:15 and some of them don't even want tix? Apr 19 19:09:17 oh wait no Apr 19 19:09:21 they just wanted the challenge? Apr 19 19:09:22 yeah, and 180 got all 60 points Apr 19 19:09:22 only 287 scored points Apr 19 19:09:39 lame, they need to redo this shiznit Apr 19 19:09:40 id like to buy one and give it to one of my many friends Apr 19 19:09:54 specifically lov JakeWharton mikedg Apr 19 19:09:55 canadiancow|work: non-transferable! Apr 19 19:09:56 :P Apr 19 19:10:03 but my other ticket is transferrable ;) Apr 19 19:10:06 oic Apr 19 19:10:07 ya Apr 19 19:10:10 that probably works then Apr 19 19:10:19 the problem is zynga paid for it Apr 19 19:10:25 canadiancow|work: ive heard people having trouble transferring already Apr 19 19:10:27 and im not sure if im going to be allowed to transfer that ticket outside the company Apr 19 19:10:30 i forget where though Apr 19 19:10:32 yea i still dont have my ticket Apr 19 19:10:35 i wouldnt risk the 900$ Apr 19 19:10:35 we emailed google Apr 19 19:10:37 ah Apr 19 19:10:43 iirc the "rules" about transferring were unnecessarily strict Apr 19 19:10:44 mikedg could you pass as a Scott? Apr 19 19:10:45 :P Apr 19 19:10:48 hahaha Apr 19 19:10:55 i couuld Apr 19 19:10:56 Rockmaninoff: unnecessarily? Apr 19 19:10:58 Insanity Wolf: Change name for Google I/O Apr 19 19:11:00 i'm much more scott-ish Apr 19 19:11:05 i'll wear a kilt and everything Apr 19 19:11:06 I wish it was "no transfers, period" Apr 19 19:11:09 but oh well Apr 19 19:11:09 evancharlton: that was incorrect wording Apr 19 19:11:19 evancharlton: you going to IO? Apr 19 19:11:20 we cant get any swag if we go as scott :( Apr 19 19:11:26 evancharlton, that cant work Apr 19 19:11:29 mdwright: doubtful Apr 19 19:11:30 zynga bought like 10 for employees Apr 19 19:11:33 they were strict, but more that they explicitly said "REALLY DO NOT transfer tickets unless you absolutely have to" Apr 19 19:11:34 Knowledge is the best swag Apr 19 19:11:37 and what happens if a last minute thing comes up and i cant go Apr 19 19:11:39 ticket just dies? Apr 19 19:11:40 canadiancow|work: too bad Apr 19 19:11:50 blah. I've wasted the whole afternoon comparing Eken T10 against Zemithink ZT282 C91 :( Apr 19 19:11:51 it goes back into the pool and someone else can buy it last-minute Apr 19 19:11:54 i understand where you're coming from Apr 19 19:12:00 JakeWharton Apr 19 19:12:01 oh so allow refunds then? Apr 19 19:12:03 the guy from ABS? Apr 19 19:12:13 canadiancow|work: sure. If you can't go, all you get is a refund Apr 19 19:12:19 chups, no, just unfortunately same name Apr 19 19:12:20 ;-) Apr 19 19:12:21 (note: this is purely my opinion) Apr 19 19:12:26 :c Apr 19 19:12:32 evancharlton that's fine with me Apr 19 19:12:32 chups, that depends on whether you're reporting a bug or not Apr 19 19:12:34 Is there any network overhead to using an Socket? Like, is there any header information being exchanged on the socket without express commands? Apr 19 19:12:36 but right now it's "no refunds" Apr 19 19:12:38 :)) Apr 19 19:12:40 hahaha Apr 19 19:12:43 you got me Apr 19 19:12:45 I suspect that my signal is not 100% clean. Apr 19 19:13:01 Jonathan_Eyre: Socket communication, or WebSocket communication? Apr 19 19:13:21 Socket, through TLS; Apr 19 19:14:04 SSLContext -> SocketFactory -> Socket Apr 19 19:14:04 i'm trying to configure roboguice, maven, robotium and abs Apr 19 19:14:12 hey JakeWharton Apr 19 19:14:16 thanks for ABS :) Apr 19 19:14:21 Jonathan_Eyre, of course there's overhead Apr 19 19:14:25 everything has overhead Apr 19 19:14:27 you're welcome Apr 19 19:14:38 chups: the GitHub Gaug.es app has all of those except Robotium Apr 19 19:14:39 unless you're sending individual bits over layer1 Apr 19 19:14:41 and it's open source Apr 19 19:14:41 canadiancow|work: what's going on right now is irrelevant because we're discussing a theoretical change to the policy. Apr 19 19:15:14 yup, everything's working fine, except for robotium Apr 19 19:15:15 haha Apr 19 19:15:19 no need to fuss over it Apr 19 19:15:22 Google I/O is irrelephant, Big Android BBQ FTW Apr 19 19:15:27 i was just inspecting the matter Apr 19 19:15:36 and then i saw your name on the irc Apr 19 19:15:54 I suppose that there is MAC and IP information overhead, but I would spceifically like to know exactly what sort of header text, if any, is being sent to the server. Apr 19 19:16:07 how to start the android emulator in windows Apr 19 19:16:30 evancharlton: are you a Googler? Apr 19 19:16:39 devish: There's a little green "play" icon in eclipse that fires it up for you. Apr 19 19:16:41 the tutorial asks me to click 'emulator.exe but this opens a command prompt for few seconds only Apr 19 19:17:00 i want to run a apk file Apr 19 19:17:07 devish: nothing happens after that? do you have an AVD set up through the AVD manager? Apr 19 19:17:21 devish: Just make sure you have the SDK/Java Run-time/AVD ALL up to date first. Apr 19 19:17:24 so the tut asks me to run emulator then adb install xyz.apk Apr 19 19:18:27 yes avd is there i have made 2 new configuratrion in it too, should i left it open Apr 19 19:18:36 well no, but you need to launch the AVD Apr 19 19:18:39 avd does not asks me anything Apr 19 19:18:42 Anyone know if it's possible to setSpan() with colour some actionbar menuitem text? It doesn't seem to work Apr 19 19:18:44 there should be an option from the AVD manager to launch it Apr 19 19:19:09 but i haven't worked in windows android for a while Apr 19 19:19:11 yes it launches but how its going to map Apr 19 19:19:25 so just push the home button and it'll take you back to the home screen? Apr 19 19:19:43 Rockmaninoff: I work for Google, but I'm not here in any sort of official capacity. Apr 19 19:19:50 haha IANAL Apr 19 19:20:02 just making it clear :) Apr 19 19:20:03 answer ALL of our questions Apr 19 19:20:08 j/k Apr 19 19:20:13 Rockmaninoff: evancharlton is THE Googler. At least imo. Apr 19 19:20:30 oh thank you SO very much. Apr 19 19:20:54 Is there a way to check if a file is a compatible audio file in API10? API14 seems to have a way using MediaMetadataRetriever. Apr 19 19:20:57 ITT we discuss Google celebrities Apr 19 19:21:22 ctate, i <3 u Apr 19 19:21:24 I read Google Enquirer for all my Google celebrity news. Apr 19 19:21:43 evancharlton, I was always under the assumption that you're some knowledgeable 3rd party Apr 19 19:21:57 pfn: I'm flattered :) Apr 19 19:21:58 command to start a apk file is adb install xyz.apk, right? Apr 19 19:22:08 devish: start or install? Apr 19 19:22:17 devish: if you want to start it, you need to use adb shell am start Apr 19 19:22:20 devish: you probably already have it installed Apr 19 19:22:25 check the app drawer Apr 19 19:22:34 i don't work for google, but i am good at acting in an unofficial capacity Apr 19 19:22:45 devish: it installes it Apr 19 19:23:28 evancharlton: how many people "asked a question" about Problem A? Apr 19 19:23:45 i.e., through the official Code Jam page Apr 19 19:23:58 I work for Jake Wharton and I'm here on an official capacity Apr 19 19:24:32 JakeWharton: are you still thinking about doing that uber-image-ListView loading thing? Apr 19 19:24:40 Rockmaninoff: i have AVD manager only which gives me option to new edit start and after start launch but then nothing Apr 19 19:24:41 yeah Apr 19 19:24:42 already Apr 19 19:24:42 i work for my dog, Jake, who is the invisible hand behind a lot that goes on in the mobile world Apr 19 19:24:43 started Apr 19 19:25:00 JakeWharton: nice, excited to hear about that; what did AndroidQuery not solve that you want? Apr 19 19:25:01 I work Apr 19 19:25:03 that was not me pressing enter gratuitously but rather Colloquy trolling my enter key Apr 19 19:25:04 ..... technically. Apr 19 19:25:21 it's too bloated and monolithic for my tastes Apr 19 19:25:27 plus it lacked a feature I wanted which escapes me now Apr 19 19:25:30 true story Apr 19 19:25:45 it's an awesome lib for sure, just not for me Apr 19 19:25:49 the Twitter/Facebook auth is really nice but it doesn't have a _direction_ Apr 19 19:26:03 it just kind of does everything Apr 19 19:27:20 i dont like libraries that 'do everything' Apr 19 19:27:32 it just means it does nothing well Apr 19 19:27:45 g00s: Maven Apr 19 19:28:14 * g00s looks at JakeWharton Apr 19 19:28:19 maven isn't a library Apr 19 19:28:23 i'm saying Apr 19 19:28:28 ABS doesn't do everything Apr 19 19:28:33 in fact, it only does one thing Apr 19 19:28:33 if people make awesome libraries that are small and do what they're supposed to do well Apr 19 19:28:37 use Maven and problem solved Apr 19 19:28:40 it's just not small :-/ Apr 19 19:28:42 JakeWharton: that is good :) Apr 19 19:29:15 i'm curious when the iosched 2012 code will be available Apr 19 19:29:23 i didn't really see any activity in the repo Apr 19 19:29:25 * Jug6ernaut <3's abs Apr 19 19:29:26 usually it's a week after the conference Apr 19 19:29:32 g00s: maybe it will all be in html5 and phonegap Apr 19 19:29:50 i'm hoping it uses the new Maps API we've all been (not) hearing about Apr 19 19:29:51 iosched? Apr 19 19:29:56 * TachyonDevWork snickers Apr 19 19:30:07 google i/o schedule app Apr 19 19:30:07 http://code.google.com/p/iosched/ Apr 19 19:30:07 maybe iosched will use abs this year, that would be awesome Apr 19 19:30:13 hah Apr 19 19:30:16 it would make sense Apr 19 19:30:26 JakeWharton: i think they would have to give you a 200k job then Apr 19 19:30:32 ahh thx JakeWharton Apr 19 19:30:40 They could try to... Apr 19 19:30:52 JakeWharton, that implies you wouldn't take it? Apr 19 19:31:00 lol Apr 19 19:31:03 Probably not Apr 19 19:31:04 500k then were talking Apr 19 19:31:05 JakeWharton: can we try to? :P Apr 19 19:31:08 Square is that good eh? Apr 19 19:31:14 Square is awesome Apr 19 19:31:19 I gots $5. Apr 19 19:31:27 You have the job if you want it. Apr 19 19:31:30 their speaker last year at AnDevCon was really good, lots of pretty awesome tricks Apr 19 19:31:42 Indeed. Eric Burke Apr 19 19:31:47 and I was there too Apr 19 19:32:10 is he still at Square? Apr 19 19:32:15 ...4square? square...enix?...2^2? Apr 19 19:32:24 just Square Apr 19 19:32:28 squareinc Apr 19 19:32:40 Rockmaninoff: yes, he's here Apr 19 19:32:40 Oval Apr 19 19:32:51 * Jug6ernaut must be retarded Apr 19 19:32:57 ive never heard of squar inc :\ Apr 19 19:33:07 they made some app Apr 19 19:33:17 Jug6ernaut: http://squareup.com Apr 19 19:33:18 it does some stuff Apr 19 19:33:29 hello, i need help on c2dm ? Apr 19 19:33:29 also, everyone in here: http://squareup.com/jobs Apr 19 19:33:33 :) Apr 19 19:33:41 where in soma are they? Apr 19 19:33:41 JakeWharton: no recruiting here! Apr 19 19:33:50 oh noes Apr 19 19:33:54 * JakeWharton heads for the hills Apr 19 19:33:57 if it's like across the street from caltrain, I'd consider it Apr 19 19:34:01 pfn: 5th and market Apr 19 19:34:05 5th and market Apr 19 19:34:06 that's not soma Apr 19 19:34:08 yeah Apr 19 19:34:10 ahhh Apr 19 19:34:12 take it to /msg, folks :) Apr 19 19:34:15 JakeWharton: ive been banned for recruiting in here Apr 19 19:34:19 :P Apr 19 19:34:19 yeah um Apr 19 19:34:29 i am a big fan of ABS but seriously :) Apr 19 19:34:33 xD Apr 19 19:34:33 anyone helping me out with android c2dm? Apr 19 19:34:40 if square did some scala, that'd be interesting... Apr 19 19:34:42 * pfn shrugs Apr 19 19:35:17 does any company do Scala on Android? Apr 19 19:35:21 hehe Apr 19 19:35:25 bump Apr 19 19:35:30 pfn, and....... Apr 19 19:35:33 I don't know Apr 19 19:35:35 but they came to mind Apr 19 19:35:40 i wouldn't limit myself in that way Apr 19 19:35:44 as for android Apr 19 19:35:50 I didn't say I only want to work on android Apr 19 19:35:53 :) Apr 19 19:35:58 square has a hug backend payments platform Apr 19 19:36:16 a hug platform sounds delightful Apr 19 19:36:17 s/hug/huge Apr 19 19:36:18 aww Apr 19 19:36:21 he wants to steal a fraction of a penny from ever transaction Apr 19 19:36:27 something like Apr 19 19:36:28 snugglefactorydev.com Apr 19 19:36:29 :o Apr 19 19:36:35 except do it off by one decimal place Apr 19 19:36:36 and oops it Apr 19 19:36:38 stealing is bad Apr 19 19:36:39 lol Apr 19 19:36:46 hmm how do i make a webview of googlemaps how my own location Apr 19 19:36:55 wait there's a hug library for android? Apr 19 19:36:59 :3 Apr 19 19:37:03 gaz`, get your location, then pass it to the webview Apr 19 19:37:03 use a mapview not a webview? Apr 19 19:37:04 the ol superman 3 gag Apr 19 19:37:08 Action Hug Sherlock Apr 19 19:37:14 c2dm help please :) Apr 19 19:37:16 TachyonDevWork, and then rolled into office space Apr 19 19:37:20 hehe Apr 19 19:37:24 himansudas, pay for help, or be specific with questions Apr 19 19:37:25 pfn: indeed Apr 19 19:37:25 himansudas ask ur question already :\ Apr 19 19:37:52 ctate: pm, about the zebralight ? Apr 19 19:38:19 I guess square uses jruby, that's kinda interesting Apr 19 19:38:36 i would hate to dive into a huge ruby code base though Apr 19 19:38:47 not a huge fan of ruby, but it's better than working in java Apr 19 19:38:53 that's what she said. Apr 19 19:38:53 just about anything is better than working in java Apr 19 19:38:58 COBOL? Apr 19 19:39:03 Oh sir Apr 19 19:39:09 oh well, i love dynamic languages, but sometimes they make it really hard to comprehend wth is going on in large systems Apr 19 19:39:09 you are begging to look at VB6 Apr 19 19:39:09 JakeWharton, it's about the same as working in java :p Apr 19 19:39:16 while using VSS as your SCM Apr 19 19:39:33 trying to implement sample app from this link http://mylifewithandroid.blogspot.in/2010/10/push-service-from-google.html i m stuck with the authentication part Apr 19 19:40:50 g00s: what about them? Apr 19 19:40:50 g00s, and yeah, you're right, I'm actually tired of dynamic languages Apr 19 19:41:01 i filed away your recs for consideration; haven't done anything yet Apr 19 19:41:04 I can't wait to get away from working with a dynamic language at $dayjob Apr 19 19:41:49 himansudas: http://developer.android.com/search.html#q=c2dm&t=0 Apr 19 19:41:53 ctate: just based on our discussion; i hope you don't get something you'll be dissapointed with. the incan folks love the cri leds, but they are fairly wimpy. if you are just worried about a blue tint, you will be fine with neutral, and it will be much more efficient to boot Apr 19 19:42:05 (i hope i didn't stear you in the wrong direction) Apr 19 19:42:21 * pfn still pets his fenix p2d Apr 19 19:42:25 hehe Apr 19 19:42:32 er, pd30 Apr 19 19:42:35 wrong model, I forget Apr 19 19:42:35 heh Apr 19 19:42:47 I'd like to style a table_layout..I don't see it in the @android:style …how would I do that? Apr 19 19:44:01 ctate: if you are using it for indoors, cri is great; outdoors - like hiking, get a brighter neutral imho :) thats all. Apr 19 19:44:14 * g00s goes back to work Apr 19 19:45:12 g00s works over rated :P Apr 19 19:45:22 hehe Apr 19 19:45:51 at least @ what i get paid xD Apr 19 19:46:08 * Jug6ernaut doesnt know why he used "at" and "@" in the same sentence xD Apr 19 19:48:47 Jug6ernaut: either way, you have to press 2 keys ;) Apr 19 19:49:29 informit is having an earth day sale; i think 1 book is 40% off and 2 are 50% off, fyi Apr 19 19:51:10 it's earth day? Apr 19 19:51:18 it's national high-five day Apr 19 19:51:28 * wongk high fives Rockmaninoff Apr 19 19:51:34 * Rockmaninoff high fives the Earth Apr 19 19:51:53 g00s yea i know lol Apr 19 19:52:13 i think of that every time i press "@" lol Apr 19 19:52:41 john_doe_jr: what exactly do you mean? you could just add attributes to your styles.xml Apr 19 19:52:51 then say style="@style/MyTableLayout" Apr 19 19:54:22 Rockmaninoff: how would I code that in my styles.xml …..