**** BEGIN LOGGING AT Mon Feb 27 02:59:58 2012 Feb 27 03:00:07 When to create a "new activity" as a logical centre around which you associate fragments Feb 27 03:01:11 well that's the largely subjective part that you just have to figure out for your app Feb 27 03:01:16 well paradoxx, you want to use a fragment for "everything" Feb 27 03:01:22 activities should only hold fragments Feb 27 03:01:26 if you dont want duplicate code everywhere Feb 27 03:01:36 personally, i would use a new activity when EVERY fragment is being replaced Feb 27 03:01:47 so if youve got a list on the left that displays different stuff on the right, id have that all in one activity Feb 27 03:01:56 but if one options launches a completely enw screen, id probably use a new activity Feb 27 03:01:57 but thats me Feb 27 03:02:37 kk Feb 27 03:03:02 Thanks canadiancow and JakeWharton, that helps alot Feb 27 03:03:16 ive debated though Feb 27 03:03:23 on a phone, its usually one fragment per activity Feb 27 03:03:30 and im still not sure whether i want separate activities for everything Feb 27 03:03:32 or one activity Feb 27 03:03:34 for the whole app Feb 27 03:03:48 but due to me need a preferenceactivity on < 3.0, i definitely need multiple activities Feb 27 03:05:49 you're also canadian Feb 27 03:06:06 not sure how that's relevant Feb 27 03:06:16 canadiancow, fix mah bugs Feb 27 03:06:32 yo Feb 27 03:06:36 this is your full-time job now Feb 27 03:06:42 dunno if i can jsutify it anymore Feb 27 03:07:58 not for another 7 days Feb 27 03:13:06 whats a reasonable compensation (salary + bonus + stock + stuff like that) for a young android dev Feb 27 03:13:32 2 bucks and a sammich. Feb 27 03:13:34 living where? Feb 27 03:13:44 dunno...name a place Feb 27 03:14:05 russia Feb 27 03:14:08 SF jobs tend to pay higher because cost of living there is through the fucking roof Feb 27 03:14:13 in northern US, $60k. In sourthern US, $55k Feb 27 03:14:13 ok name a place and a number that you know the answer to Feb 27 03:14:18 o.O Feb 27 03:14:26 my starting SALARY was higher than that Feb 27 03:14:30 right out of school Feb 27 03:14:37 yeah but that's fake money Feb 27 03:14:37 hey, gotta earn it Feb 27 03:14:41 that seems surprisingly low Feb 27 03:14:55 if i got an offer like that, i would laugh Feb 27 03:14:57 like actually Feb 27 03:15:00 if everything works out, my starting salary will be $105k... and that's without bonus :D Feb 27 03:15:07 I was working as a math teacher 2 years ago... my salary was half that QubeZ Feb 27 03:15:13 o.O Feb 27 03:15:15 holy crap Feb 27 03:15:18 in ontario, teachers can make six figs Feb 27 03:15:24 they START at like 50k Feb 27 03:15:26 teachers get it pretty bad here in .au too I think Feb 27 03:15:33 well seems like a good starting salary Feb 27 03:15:37 i mean you should earn your salary Feb 27 03:15:41 prove your worth Feb 27 03:15:46 p_l, so where is that? Feb 27 03:16:09 QubeZ, thats true. and that seems to be happening for me. "oh scott's good. let's give him more" Feb 27 03:16:12 canadiancow: when you say "young android dev" do you mean junior, or just "young"? Feb 27 03:16:19 im 23 Feb 27 03:16:20 i mean me Feb 27 03:16:53 well you have alot of experience though right? Feb 27 03:16:57 so young != inexperienced Feb 27 03:16:58 i guess Feb 27 03:17:01 ~2 years Feb 27 03:17:05 of android Feb 27 03:17:10 maybe more now Feb 27 03:17:13 2.5 Feb 27 03:17:21 donut wasnt out when i started Feb 27 03:17:24 that's about as much as anyone could ask for something as new as android :p Feb 27 03:17:32 depends on your responsibility to the company too... are you like lead on a project or just writing XML's for an app... makes a big diff Feb 27 03:17:37 but theres also something to be said for "industry experience" Feb 27 03:17:56 I think it depends on a lot more than just "android experience" too Feb 27 03:17:57 and yea, a project lead might need "basic" technical, but great people skills Feb 27 03:19:31 well.. [22:14:13] in northern US, $60k. In sourthern US, $55k Feb 27 03:19:35 that makes me feel pretty good Feb 27 03:19:40 but depressed about the indsutry in general Feb 27 03:19:48 canadiancow: its not a matter of what you're worth.. its what you can get. I mean, just recently I thought my job fair wage was like $70k. I told them I want $90k when I was going full-time and they just said yes. So... Feb 27 03:19:59 heh Feb 27 03:20:00 lol Feb 27 03:20:00 canadiancow: Dublin... but you can guess the company ;) Feb 27 03:20:14 whats a month rent in dublin? Feb 27 03:20:18 i dont care so much about the company :P Feb 27 03:20:26 $0, because no fucking one should be living in Dublin Feb 27 03:21:01 canadiancow: nice, fully furnished apartment in Dublin 4... went around €1100/month, with utilities and such included Feb 27 03:21:26 ok thats like a little more than im paying, but i have to pay utilities Feb 27 03:21:29 and mine wasnt furnished Feb 27 03:21:50 what kidn of experience do you have? Feb 27 03:21:54 but that was for a single... if you got family with you, you'd need bigger Feb 27 03:22:00 nah i have a one bedroom Feb 27 03:22:02 canadiancow: I'm trying to graduate this year ;) Feb 27 03:22:12 oh Feb 27 03:22:20 that seems pretty decent then :) Feb 27 03:22:21 as for experience... I've got eclectic selection of skills centered around unix Feb 27 03:22:51 and Google SRE apparently likes that Feb 27 03:23:45 i have quite a few friends making ~$60k Feb 27 03:23:51 with negligible bonuses/stock Feb 27 03:24:09 one guy in san diego is making 75 but i have no idea what other comp he gets Feb 27 03:24:29 if you're 23 that's not too bad anyway Feb 27 03:24:34 got a degree? Feb 27 03:24:40 computer engineering Feb 27 03:25:27 I started on 40k after uni which was decent then, averaged about 16%/year increase since then Feb 27 03:25:43 16% seems very high but includes one job change/promotions Feb 27 03:26:04 straight out of High School I had the wage most people expect in Poland after studies Feb 27 03:26:11 16% is a LOT, I get like 3-5% increase a year Feb 27 03:26:13 but I was veeery lucky Feb 27 03:26:31 lol Feb 27 03:26:33 3-5% is kinda standard yeah, and that's what you'll get if you don't change jobs or push for promotions or ask :p Feb 27 03:26:59 ive had 18% since i started working may 1st last year Feb 27 03:27:19 I've noticed that since putting "android dev" and "iphone dev" on skills on linkedin I get recruiters approaching me at least once a week now too Feb 27 03:27:25 lol Feb 27 03:27:33 recruiters i get are stupid Feb 27 03:27:40 yeah they're pretty annoying Feb 27 03:27:42 WE ARE A CONSULTING FIRM. ONE OF OUR CLIENTS IS A BANK Feb 27 03:27:50 but I also got a couple of people from amazon Feb 27 03:27:51 THEY WANT SOMEONE FOR iOS, ANDROID, AND BB DEV Feb 27 03:27:55 yea amazon emailed me Feb 27 03:27:59 then they found out i was just out of school Feb 27 03:27:59 for some reason they're coming to sydney to do a recruiting event?? Feb 27 03:28:02 and i havent heard back :( Feb 27 03:28:44 I started talking to the amazon people then remembered how crazy the US political and healthcare system is :p Feb 27 03:29:17 canadiancow: try getting emailed by Google before you graduate High School, and feel the consternation coming from the email after they read the CV stating that :D Feb 27 03:29:46 wabz: hahaha Feb 27 03:29:52 lolol Feb 27 03:30:09 * p_l avoids USA on the basis that he might have... interesting border crossing Feb 27 03:31:39 WOOT Feb 27 03:31:45 i got accepted to the google tv dev sesssion Feb 27 03:31:52 i still find it ironic that theyre doing one in toronto Feb 27 03:31:56 considering its not available in canada Feb 27 03:32:05 :D Feb 27 03:32:53 * p_l personally would like to know why they couldn't more easily support paid apps from outside a select list of countries Feb 27 03:33:43 theres actually a lot of legal shit there Feb 27 03:33:51 apple had the advantage that they have a retail presence everywhere Feb 27 03:33:54 so theyd alreday done the paperwork Feb 27 03:33:55 canadiancow: yes, but I have seen it avoided Feb 27 03:34:06 i agree it needs work Feb 27 03:34:24 canadiancow: also, Apple actually didn't have retail presence outside of AppStore in most countries Feb 27 03:34:35 iTunes' reach is actually *very* limited Feb 27 03:35:01 correct Feb 27 03:35:14 the "Apple Stores" in many countries are franchises, run by unrelated companies Feb 27 03:35:20 Bingo. Feb 27 03:35:26 Well, look at their global marketshare Feb 27 03:35:34 Blackberry is bigger than Apple globally Feb 27 03:36:07 canadiancow: btw, interesting method I have seen is paying devs by a charge card registered in USA Feb 27 03:36:20 Apple has been doing that? Feb 27 03:36:38 no, not Apple, but some of the freelancing/outsourcing middlemen Feb 27 03:36:42 Ahh Feb 27 03:36:52 Yeah, that's how most small-mid sized comopanies in the US do it. Feb 27 03:37:34 We pay our reps and vendors with a CC, then pay that off at the end of the month Feb 27 03:37:37 (that's the other option besides cheques that are impossible to cash, and PayPal. SWIFT transfers are rare) Feb 27 03:37:43 Mostly just to earn free flights with the credit card Feb 27 03:37:53 <_Lewellyn> CanAm: blackberry may be bigger than apple, but that doesn't stop people from saying the company won't last 6 more months :/ Feb 27 03:38:07 Very true, _Lewellyn Feb 27 03:38:21 <_Lewellyn> (and it's now relevant to this channel!) ;) Feb 27 03:38:22 I don't know though, they've done some MAJOR restructuring and their new CEO is pretty on the ball. Feb 27 03:38:23 _Lewellyn: ... 6 months? that's crazily early... Feb 27 03:38:47 take it from someone who, until a month ago, lived in RIM hometown Feb 27 03:38:49 its not doing well Feb 27 03:38:54 <_Lewellyn> p_l: apparently os 2.0 is crap because they didn't provide a hardware bump and *because* it can run android apps Feb 27 03:38:58 They're doing much better Feb 27 03:39:01 this month over last Feb 27 03:39:13 I think windows phone 8 has potential to take RIM share (and a lot more) Feb 27 03:39:18 <_Lewellyn> CanAm: it's gonna be bumpy till the BB10 phones are out Feb 27 03:39:23 Yes, very Feb 27 03:39:29 if anyone can take market share of mobile now, it's microsoft Feb 27 03:39:29 Also OS 2.0 is pretty fantastic Feb 27 03:39:44 <_Lewellyn> they could have pulled a microsoft and said "screw you" to the existing dev base and just moved on to the new platform Feb 27 03:40:04 <_Lewellyn> CanAm: yeah. the android player's nice and the email is amazingly not-suck for a version 1.0 mail client Feb 27 03:40:10 Yup Feb 27 03:40:16 It's just too bad it's so late. Feb 27 03:40:23 That said, I love my Playbook. Feb 27 03:40:44 <_Lewellyn> yeah. they DID keep their promise of february, though. and it didn't ship on the 29th ;) Feb 27 03:40:44 Hey. I have this simple application here, I just want two tabs, each one being a listfragment and showing some data. I have this code, it compiles, and logcat isn't complaining about anything but I the data isn't being shown. Any idea? http://paste.pocoo.org/show/557317/ Feb 27 03:41:02 Telling you, Heins is going to turn it around. Feb 27 03:41:06 but the data* Feb 27 03:41:28 <_Lewellyn> CanAm: i think alec saunders is the key to rim atm. he's got a very social presence and he knows the qnx guts well. Feb 27 03:41:38 _Lewellyn: eh... Windows Mobile was getting pretty screwed and IMHO needed a reboot Feb 27 03:41:43 Basilie and Laziardis or whatever their names are were toxic to RIM. Having a vacant CEO spot would have been better than them Feb 27 03:41:49 Damn, I should rephrase it. Feb 27 03:42:06 also from what I noticed, newer software for WinMo was already done in halfway-portable to WinPhone method Feb 27 03:42:15 <_Lewellyn> p_l: "screw you" isn't the proper thing to tell your existing userbase and devs, though. most winmo devs i know didn't even investigate winphone 7, and most users i know moved away too. Feb 27 03:42:25 Agreed, _Lewellyn Feb 27 03:42:35 _Lewellyn: True Feb 27 03:42:42 the problem with developing for wp7 is that there just arent any users Feb 27 03:42:49 i actually think its a decent device Feb 27 03:42:53 <_Lewellyn> only reason i have a winmo phone still is because i'm waiting for bb10 Feb 27 03:43:09 Though frankly speaking, *none* of the competitors, except maybe BB, fit where Windows Mobile still ruled, well Android is getting there Feb 27 03:43:10 You know, I lived in San Jose for years and knew a lot of MS employess, and not a single one had a windows phone. Feb 27 03:43:20 what did they have Feb 27 03:43:25 <_Lewellyn> android doesn't run some of the apps i need and the companies moved all their winmo development to blackberry Feb 27 03:43:28 Typically a BB or android Feb 27 03:43:44 id have android Feb 27 03:43:45 a few iPhones too Feb 27 03:43:52 but if i was at MS, id be writing a windows live messenger client for android :P Feb 27 03:43:53 heh Feb 27 03:43:55 or something like that Feb 27 03:43:56 <_Lewellyn> CanAm: winmo's core userbase was companies who needed company/industry-specific apps Feb 27 03:44:15 early Macbooks were bought a lot at Microsoft, running Vista :) Feb 27 03:44:26 They made great stable windows machines Feb 27 03:44:31 my personal laptop is a macbook pro Feb 27 03:44:33 running win7 Feb 27 03:44:58 CanAm: yeah, EFI made them a nice quick deployment platform for Vista Feb 27 03:45:04 <_Lewellyn> and how microsoft pretty much told those users "sure, you have thousands of devices but you can't get more and you can't run your apps on the new ones!" pretty much eliminated the chance of winphone 7 catching on in the enterprise. Feb 27 03:45:43 Everyone ignored me, haha Feb 27 03:45:51 <_Lewellyn> they inadvertently helped android a lot Feb 27 03:45:52 Sorry hstefan :( Feb 27 03:45:58 <_Lewellyn> hstefan: i didn't. i just don't have an answer :/ Feb 27 03:46:04 I'd help but don't know your answer :( Feb 27 03:46:08 <_Lewellyn> hstefan: and you didn't rephrase it :) Feb 27 03:46:50 How would you guys rate the "beginning java for dummies" book? Feb 27 03:46:51 <_Lewellyn> CanAm: btw, if you have a playbook and you sit here, why aren't you also in #playbook-dev? :) Feb 27 03:46:53 I didn't even see your question Feb 27 03:47:02 oh, let me rephrase it. Feb 27 03:47:18 Good question haha. I'm JUST getting into any sort of development and want to start with android. Feb 27 03:47:39 <_Lewellyn> CanAm: android's a great choice if you have a playbook. we've had lots of android talk lately for some reason ;) Feb 27 03:47:44 you can convert your android apps to playbook pretty easy Feb 27 03:48:03 Yup, converted a few apks to bar Feb 27 03:48:18 Still waiting on my app to get approved for my free playbook actually Feb 27 03:48:28 <_Lewellyn> rim's android plugin thing is the least painful part of devving for android, i swear. "Right-click, BlackBerry, Release to App World" can't get easier than that. why can't google do that? :/ Feb 27 03:48:33 Yeah, I have 5 more days to write somethign and submit it haha Feb 27 03:48:39 Well, I have an app with two action bar tabs, whenenever I change the tab, it should display a ListFragment with some data inside. I have this code http://paste.pocoo.org/show/557316/ and I can't find why anything is being shown. Feb 27 03:48:47 *something Feb 27 03:48:53 <_Lewellyn> CanAm: you've seen the stuff that's gotten approved :( Feb 27 03:49:16 Haha "THIS APP TELLS YOU WHAT YOUR CAR'S ENGINE SIZE IS!" Feb 27 03:49:19 sounds... useful Feb 27 03:49:20 hahaha Feb 27 03:49:32 <_Lewellyn> CanAm: or "Can You Run .apk?" and it only installs on 2.0 Feb 27 03:50:05 Better now? haha Feb 27 03:50:18 <_Lewellyn> hstefan: waiting for it to load Feb 27 03:50:24 Haha Feb 27 03:50:57 That said, the playbook is slowly gaining steam, and it was a smart idea to include some android vmware on OS 2 Feb 27 03:51:13 they just need to include bluetooth api functionality now Feb 27 03:51:18 ... and camera Feb 27 03:51:39 I should make an AARP app for the playbook Feb 27 03:51:51 lol Feb 27 03:52:02 So, anyone? Beginning Java for Dummies any good? Feb 27 03:52:06 To what, look up your AARP card? Feb 27 03:52:11 slowly gaining steam? :) Feb 27 03:52:17 I just applied to be a Nook developer Feb 27 03:52:19 <_Lewellyn> CanAm: yeah. my only real complaint about android on playbook is that sound is wonky at times. Feb 27 03:52:21 the only people use playbooks are the elderly Feb 27 03:52:23 thought they could use it Feb 27 03:52:34 The application asks what my business plan was on the website Feb 27 03:52:37 I actually use a web form to look up AARP cards all the time at work Feb 27 03:52:41 And the Canadian and US governments, too. Feb 27 03:52:45 <_Lewellyn> JakeWharton: apparently over 75% of playbook owners are males between the ages of 30-50 Feb 27 03:52:51 because we off AARP Auto insurane, but we need the member # to even quote it Feb 27 03:53:02 <_Lewellyn> (also, i canceled my aarp) Feb 27 03:53:02 haha awesome Feb 27 03:53:11 i really need to leave svn... so damn frustrating Feb 27 03:53:12 s/off/offer Feb 27 03:53:17 SVN?!? Feb 27 03:53:23 The Playbook is the only tablet allowed for use by the US government. Feb 27 03:53:37 sucks to work for them then Feb 27 03:53:38 In an occupational capacity, that is. Feb 27 03:53:47 are their desktops ENIACs too? Feb 27 03:54:17 <_Lewellyn> yeah. that silly fips requirement ;) Feb 27 03:54:21 the government also uses a shitload of blackberries Feb 27 03:54:26 Bingo Feb 27 03:54:29 because... they're secure Feb 27 03:54:34 Indeed Feb 27 03:54:43 so is a brick Feb 27 03:54:45 no functionality Feb 27 03:54:48 can't get much more secure than that Feb 27 03:54:53 Jake, please take your pedantry elsewhere. Feb 27 03:54:58 ok Feb 27 03:55:02 <_Lewellyn> hstefan: tbh, i've had weirdness with that support jar myself :/ Feb 27 03:55:05 Wow, it worked. Feb 27 03:55:24 just kidding! Feb 27 03:55:25 playbook sucks Feb 27 03:55:43 Oh, okay Feb 27 03:55:47 Thanks for chiming in Feb 27 03:56:06 It was my pleasure Feb 27 03:56:09 Is there something I can enable that'll log all of the activity's calls? like the onCreate, onPause and etc without me putting statements everywhere Feb 27 03:56:13 CanAm: Having seen a bit of BB security, I was dubious... though I guess they might have updated it recently Feb 27 03:56:19 <_Lewellyn> i was actually hoping that rim would be expediting approval of android apps. that doesn't seem to be the case though. Feb 27 03:56:44 _Lewellyn: you mean the support library? We can blame JakeWharton too, I'm using his ABS, haha. But I think that's not the case, it's probably my fault, since I'm newbie to android development. Feb 27 03:56:50 I've heard they're approving like 6,000 a week or something Feb 27 03:57:17 <_Lewellyn> CanAm: mine's been idle since valentines' day :( Feb 27 03:57:24 hstefan, considering there are apps using the library with multi-million install bases using similar techniques I'm pretty sure it's something you're doing Feb 27 03:57:45 Ouch Feb 27 03:57:52 That wasn't an insult Feb 27 03:57:53 JakeWharton: yes, that was a joke :) Feb 27 03:58:12 I'm just saying, despite having modified the sources (barely) it shouldn't be the cause of the problems Feb 27 03:58:22 _Lewellyn: Should be soon, cross your fingers Feb 27 03:58:24 Yeah Feb 27 03:58:37 why do people use a lot of examples with .icycle or .snowball ? this joke is totally over my head…. Feb 27 03:58:57 <_Lewellyn> CanAm: "Status: Waiting on Test House" yes. :/ alec said they hope to be caught up tomorrow. dunno if that's just the devices or also approvals. Feb 27 03:59:32 As long as you're submitted before the deadline, you should get your free tablet. Feb 27 03:59:57 <_Lewellyn> i was hoping that my app would be there for launch day. i'm atm less concerned about more free playbooks. Feb 27 04:00:01 Anyway, JakeWharton, I think you have no reason to be rude and unfortunately, you just sounded like that. Feb 27 04:00:23 well there's only so much inflection you can infer from about 200 characters without styling Feb 27 04:00:28 Yeah, I understand that. Here's hoping they deliver on being caught up. Feb 27 04:00:53 for some reason, everything sounds more hostile on the internet Feb 27 04:01:07 <_Lewellyn> anyhow, i gotta wander off and submit more apps to app world. then i get to try to figure out how to compile cocos2d-x stuff for android and maybe get them into the market. Feb 27 04:01:07 it's the anonymity Feb 27 04:01:14 Oh, if you didn't mean it I'm sorry for the rant, haha Feb 27 04:01:17 hstefan where are your tab listener classes? Feb 27 04:01:17 Good luck! Feb 27 04:02:09 http://paste.pocoo.org/show/557317/ line 98 Feb 27 04:02:17 hstefan, a lot of people take issue with the fact that i've tweaked the official support library but it's been thoroughly tested and deployed and any bugs which are present are likely in the official support lib too Feb 27 04:02:24 that's what I was trying to convey Feb 27 04:02:51 JakeWharton: yeah, I just misunderstood, my bad. Feb 27 04:03:40 thankfully once i ship the next major version that will no longer be a concern Feb 27 04:03:52 hi all - my first message didn't go through. But to clarify what just posted, I see in tutorials and examples things such as protected void onCreate(Bundle snowball) - whats with the snowball? :) Feb 27 04:03:55 hstefan you're not commiting your fragment transaction Feb 27 04:04:07 you need to add ft.commit(); Feb 27 04:04:28 to your onTabSelected and onTabUnselected Feb 27 04:04:30 winegoddess, it's just a variable name which in that case brings in the saved state of the app Feb 27 04:04:45 you can name it whatever you want Feb 27 04:04:45 the normal for that method is usually savedInstanceState though Feb 27 04:04:47 t0mless: I was just following the doc "Caution: You must not call commit() for the fragment transaction in each of these callbacks—the system calls it for you and it may throw an exception if you call it yourself. You also cannot add these fragment transactions to the back stack." Feb 27 04:04:56 that's for the native callbacks Feb 27 04:05:22 i think the support lib you have to commit yourself Feb 27 04:05:38 hmm, let me try that Feb 27 04:05:59 JakeWharton: thanks. I'm just wondering what the story is - i feel like i am missing out on a big mystery of the snowball and icicle... Feb 27 04:06:50 never seen it myself Feb 27 04:06:53 so no idea Feb 27 04:07:23 Ok, I'll commit suicide. Feb 27 04:07:38 I've been stuck on this issue for hours. Feb 27 04:07:51 It worked just by adding the simple "commit". Feb 27 04:08:11 where is that caution note Feb 27 04:08:18 in the official docs Feb 27 04:08:39 for what? I don't see it Feb 27 04:08:41 t0mless: here http://developer.android.com/guide/topics/ui/actionbar.html#Tabs Feb 27 04:09:11 ah, I was looking in the reference Feb 27 04:09:35 Ok, I can finally begin! Feb 27 04:16:40 SimonVT, around? Feb 27 04:21:13 3 more days to delete your google web history. you might want to get rid of all those searches for unicorn sex before the privacy policy changes on thursday. http://news.yahoo.com/delete-google-history-225454916.html Feb 27 04:21:59 lol Feb 27 04:22:04 * p_l had *nothing* there Feb 27 04:22:12 I disabled that a long time ago Feb 27 04:22:38 as did i Feb 27 04:22:40 i was sad Feb 27 04:22:41 i think there are a lot of people who are unaware of that... Feb 27 04:22:48 i can only imagine what awesome things I searched for when drunk Feb 27 04:22:54 heh Feb 27 04:23:45 ... apparently it wasn't even enabled, but following the tip actually signs you in to that Feb 27 04:23:56 that is, web history is by default disabled -_-; Feb 27 04:24:08 * p_l left it at "paused" Feb 27 04:24:23 JakeWharton, fix ABS Feb 27 04:24:26 my icons are stupid Feb 27 04:24:31 and theyre in the actionbar Feb 27 04:24:33 therefore it's your fault Feb 27 04:24:40 I AM SAD Feb 27 04:24:44 AND SORRY Feb 27 04:25:00 canadiancow made JakeWharton sad... Feb 27 04:25:48 its ok Feb 27 04:25:54 he and i have a special relationship like that Feb 27 04:25:59 * p_l had to stop himself from writing quips based on nicks Feb 27 04:26:29 someone backport the dropdown version of Spinner Feb 27 04:26:39 i'll pay Feb 27 04:26:45 does that not work pre-HC? Feb 27 04:26:48 no Feb 27 04:26:49 fuck man Feb 27 04:26:53 i already wrote ListPopupWindow Feb 27 04:26:57 all you have to do is write the Spinner part Feb 27 04:26:59 * canadiancow pulls out his nexus one Feb 27 04:27:36 it's getting to the point where i'm running out of time to do all of this Feb 27 04:27:54 you are being paid Feb 27 04:28:00 if you can beat my zynga comp package, i will come work for you Feb 27 04:28:38 now i have to figure out why (1) transport canada sent me mail to my old address, and (2) it wasn't forwarded Feb 27 04:30:01 i don't need you to work for me Feb 27 04:30:06 i need you to contribute to open source Feb 27 04:30:07 canadiancow: wow, you could get it forwarded? Feb 27 04:30:15 mail forwarding? Feb 27 04:30:18 * p_l has no idea how to get Royal Mail to forward his mail Feb 27 04:30:21 im paying canada post like $12/month for that Feb 27 04:30:25 but it doesnt seem to work that well :P Feb 27 04:30:39 lol Feb 27 04:30:39 which got annoying because damned taxslips came at the old address... Feb 27 04:30:44 mail forwarding is free in US Feb 27 04:30:49 for a year I think Feb 27 04:30:55 like if they put my middle name on the letter, it doesnt get forwarded Feb 27 04:31:01 i put "SCOTT KENNEDY" as a forwarding name Feb 27 04:31:04 i probably needed all variations Feb 27 04:31:07 "KENNEDY, SCOTT" Feb 27 04:31:11 "MISTER SCOTT KENNEDY" Feb 27 04:31:12 etc Feb 27 04:31:31 CURRENT RESIDENT Feb 27 04:31:34 "CANADIAN COW" Feb 27 04:31:42 lol Feb 27 04:32:00 to change my address with transport canada, i have to get an access key mailed to the address they ahve on file Feb 27 04:33:08 the really fucked up part is that my "government of canada' online id already wnet through this process Feb 27 04:33:14 my tax dollars at work... Feb 27 04:33:28 fuck that reminds me I still have to do my taxes Feb 27 04:34:33 so is it normal for a bank to (try to) refuse a cheque which doesn't have my middle name on it? Feb 27 04:34:35 can you trigger a layout in hierarchy viewer? Feb 27 04:34:55 canadiancow: ... try to change the fscking address with HMRC Feb 27 04:34:56 Leeds: no Feb 27 04:35:04 I have no idea how the fuck do they "verify" it Feb 27 04:35:07 lol Feb 27 04:35:22 Leeds: once i got a cheque that had my address on it Feb 27 04:35:23 and then your tax forms go to other side of the city Feb 27 04:35:26 except it wasnt the addres my bank had on file Feb 27 04:35:28 that caused issues Feb 27 04:35:28 pretty sure I've deposited a check made out to my brother into my account before Feb 27 04:36:19 I get paid by a hand-written cheque... I've had my bank try to refuse it a couple of times - note that I've had a cheque for almost exactly the same amount, from the same source - which is an account at the same bank - every month for years Feb 27 04:36:28 heh Feb 27 04:36:34 i liked working for the federal government Feb 27 04:36:39 because banks never refused the cheques Feb 27 04:36:42 they say it doesn't match the name on my ID Feb 27 04:36:51 yea, my checks are hand witten at the moment too Feb 27 04:37:11 he always puts Tom instead of Thomas Feb 27 04:37:17 but never been an issue for me Feb 27 04:37:29 half the time I just deposit it at the atm Feb 27 04:37:48 wow Feb 27 04:37:54 hierarchy viewer is killing me Feb 27 04:38:05 my boss doesn't even know what my middle name is... I do it at the counter, because I can do an instant transfer - no processing or clearing time, since it's from the same bank Feb 27 04:38:05 i guess loading the hierarchy causes a layout Feb 27 04:38:15 which removes the ability to debug this bug Feb 27 04:38:19 because it fixes it Feb 27 04:38:40 lol what? calling requestLayout() fixes the bug? Feb 27 04:38:42 yes Feb 27 04:38:46 which bug? Feb 27 04:38:48 i have a view that doesn't appear on the screen Feb 27 04:39:08 https://github.com/JakeWharton/ActionBarSherlock/issues/272 Feb 27 04:39:08 but when you run hirarchy viewer it suddenly appears? Feb 27 04:39:19 the view is marked as visible Feb 27 04:39:26 but it doesn't show up on the screen on 2.1 only Feb 27 04:39:30 until a layout is requested Feb 27 04:39:46 Leeds: half of the government forms in use probably don't know my middle name Feb 27 04:39:54 odd that it happens for only that view Feb 27 04:40:09 ... okay, seems I put it in with HMRC, and might have given it to university, who registered me for voting... Feb 27 04:40:16 and only 2.1 Feb 27 04:40:21 works great on 2.2+ Feb 27 04:40:22 but this is UK, no agency shares data with others -_-; Feb 27 04:41:04 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) { requestLayout(); } Feb 27 04:41:05 fixed! Feb 27 04:41:18 it's so bad you need to do that :S Feb 27 04:41:26 haha i'm not Feb 27 04:41:28 p_l: it can be quite nice here when agencies don't share - the fact I paid my taxes when I was technically without a work visa - made the tax people happy, and they apparently didn't mention it to the immigration people... Feb 27 04:41:35 ...but it would fix it Feb 27 04:41:55 HOLY BITCH Feb 27 04:41:59 are you using the test zip? Feb 27 04:42:00 my actionbar spinner looks like ass on 2.3 Feb 27 04:42:02 JakeWharton :( Feb 27 04:42:10 i don't care Feb 27 04:42:10 you fix it Feb 27 04:42:13 t0mless, yes Feb 27 04:42:33 it's just fragment state pager + action item + split action bar Feb 27 04:42:47 hrm... wonder if you make a new test project if it does the same thing Feb 27 04:43:48 it's just a pager with action options in the fragment? Feb 27 04:44:08 and split action bar Feb 27 04:44:09 yes Feb 27 04:44:31 * t0mless opens TestProject in IDEA Feb 27 04:44:38 the problem is probably in com.actionbarsherlock.internal.widget.ActionBarContainer's onMeasure or onLayout... Feb 27 04:44:44 Good Through Date 02/25/2012 Feb 27 04:44:47 or it has to do with what it looks for in those two methods Feb 27 04:44:51 thank you, honda, for the most useless information ever Feb 27 04:45:31 wtf are you babbling about cow? Feb 27 04:46:12 my car Feb 27 04:46:13 the financing Feb 27 04:46:15 has a payoff quote Feb 27 04:46:19 that is good through yesterday Feb 27 04:46:38 so if i pay it off by yesterday, i know how much itwill cost Feb 27 04:46:43 lol Feb 27 04:46:53 Indeed, quite useless Feb 27 04:47:53 so are you going to have payinged it off yesterday? Feb 27 04:58:41 t0mless, can you reproduce? Feb 27 04:59:05 or are you not looking Feb 27 05:06:24 working on it Feb 27 05:07:01 i've been stepping through code for about 45 min already Feb 27 05:07:07 making a new view pager test app from scratch...does SherlockFragment.onCreateOptionsMenu not use the Menu/MenuInflater from com.sherlock? Feb 27 05:07:08 it's probably something so obvious Feb 27 05:07:17 uh Feb 27 05:07:22 it should Feb 27 05:07:22 er Feb 27 05:07:27 com.youknowwhatImean Feb 27 05:07:38 giving me an error when trying to override Feb 27 05:08:02 fuck Feb 27 05:08:10 because IDEA put void instead of boolean Feb 27 05:08:25 nah both are com.abs.view Feb 27 05:08:54 i should change the package name to io.abs.* Feb 27 05:12:32 wtf Feb 27 05:12:39 why is it not just letting me override this shit Feb 27 05:15:11 keeps saying it's not overriding from super class Feb 27 05:15:23 using SherlockFragment Feb 27 05:15:38 public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) Feb 27 05:15:48 Yup Feb 27 05:15:48 with com.abs.view.* imports Feb 27 05:16:30 Yup Feb 27 05:16:40 must be something with project setup Feb 27 05:16:57 yeah I'm not sure what else to tell ya Feb 27 05:17:47 hrm... looks like the support-lib didn't have the library as a dependcy Feb 27 05:18:03 oh really? Feb 27 05:18:12 in my idea setup Feb 27 05:18:37 I had it set up backwards for this project Feb 27 05:18:39 ah Feb 27 05:18:46 I need to get maven set up -_- Feb 27 05:19:14 it has provided scope in the pom Feb 27 05:19:14 i should change that Feb 27 05:20:18 i've stepped through menu invalidation up until BaseMenuPresenter#updateMenuView Feb 27 05:20:22 looks good so far Feb 27 05:20:29 now shit gets crazy Feb 27 05:23:08 it seems I also have to include the support library jar seperately, even though it's added as a dependency to support-lib Feb 27 05:23:11 JakeWharton: I remember stepping through that Feb 27 05:23:13 JakeWharton: I gave up. Feb 27 05:23:25 t0mless, even with maven? Feb 27 05:23:43 dunno, I just installed maven like an hour ago, still reading docs Feb 27 05:23:53 its slightly confusing... Feb 27 05:23:56 shit Feb 27 05:24:00 just broke Jenkins Feb 27 05:35:17 hrm Feb 27 05:35:25 indeed it does not show up on first fragment Feb 27 05:35:38 but if I page it will Feb 27 05:37:04 yeah Feb 27 05:37:14 now restart app Feb 27 05:37:17 and open hierarchy viewwer Feb 27 05:37:21 and get the layout of the app Feb 27 05:37:25 it'll show up too Feb 27 05:38:37 does hierarchy viewer not show up in ddms when it's run seperate? Feb 27 05:39:03 oh wait, it wasn't part of ddms in eclipse huh, it was it's own thing Feb 27 05:39:14 yeah it has its own workspace or whatever they're called Feb 27 05:39:21 perspective Feb 27 05:39:26 that one Feb 27 05:39:53 that's why it didn't work from command line Feb 27 05:39:58 I don't know how to spell hierarchy Feb 27 05:40:36 well shit fuck jesus Feb 27 05:41:40 hi Feb 27 05:41:44 :P Feb 27 05:41:47 that's what i do haha Feb 27 05:42:01 doesn't work on windoze Feb 27 05:42:06 ah Feb 27 05:42:21 unless I was in the tools dir Feb 27 05:42:35 but since I added it to my path I don't has to be Feb 27 05:43:50 it's got to be something with the compat fragment and onOptionsCreateMenu on 2.1... buuuuuuuuuut Feb 27 05:44:27 i think it has to do with View or ViewGroup Feb 27 05:44:38 something not causing a layout to get triggered Feb 27 05:44:43 or maybe viewpager doesn't check for hasOptionsMenu until it's paged... no that wouldn't explain the appearance after getting the layout Feb 27 05:45:18 a call to hasOptionsMenu will synchronously perform a menu invalidation Feb 27 05:45:21 layout is being triggered before options menu is built... Feb 27 05:45:52 so it sees it as null and so leaves it alone Feb 27 05:46:04 * t0mless is just making stuff up Feb 27 05:46:37 i need to rent-a-googler Feb 27 05:46:43 for like an hour Feb 27 05:47:10 romainguy works on the UI... Feb 27 05:47:14 * t0mless pokes romainguy Feb 27 05:47:23 it's such a specific thing Feb 27 05:47:34 i should try to boil it into as small of a reproducible test case as possible Feb 27 05:47:41 there's so much interaction going on Feb 27 05:47:52 is it only with a view pager? Feb 27 05:48:03 or what if we just just a fragment with an options menu Feb 27 05:48:09 i think you could probably get it to happen without Feb 27 05:48:24 easy way to figure that out Feb 27 05:48:36 fragments: you make the space for the fragment in the xml, then you make your activity class, which loads the xml, and the xml in turn loads my fragment code, which in turn would load the layout xml to display? Feb 27 05:48:49 correct Feb 27 05:48:58 okay Feb 27 05:49:00 if you do it that way Feb 27 05:49:12 if you just specify fragment with no class it is just an empty container Feb 27 05:49:16 and you can put your own fragment in it Feb 27 05:49:26 but your way is smarter :) Feb 27 05:49:43 vadi2, look at the shakespere sample in the API Demos Feb 27 05:50:00 That's where I've deduced this from. Very helpful example Feb 27 05:50:18 i think so as well Feb 27 05:51:40 do I have to specify android.support.v4.app.Fragment in xml? Feb 27 05:51:51 so much to type -_- Feb 27 05:52:17 oh wait Feb 27 05:52:19 Feb 27 05:52:20 you just use fragmetn Feb 27 05:52:21 dur Feb 27 05:52:27 *headslap* Feb 27 05:52:38 or and then just attach to R.id.my_fragment :) Feb 27 05:53:04 is there an easy way to see the diff for one file between two tags? Feb 27 05:53:28 wait, may have gleaned it Feb 27 05:53:32 was changing it from android.support.v4.view.ViewPager Feb 27 05:53:57 and tried just changing the end part and was wondering why it wasn't working, but now I remember how fragments actually work Feb 27 05:54:51 and just ignore the fact that I was just talking about it... <.< Feb 27 05:55:55 it would seem if I just put a static fragment as the content Feb 27 05:55:59 it loads the menu fine Feb 27 05:57:08 seems like it's something where viewpager initalizes the first fragment Feb 27 05:58:07 I also don't have split action bar enabled... Feb 27 05:58:19 it happens without split action bar too? Feb 27 05:58:22 yup Feb 27 05:58:33 only with the viewpager Feb 27 05:59:47 and only with 2.1 Feb 27 06:00:02 not much changed between 2.1 and 2.2 in View or ViewGroup Feb 27 06:00:07 only tried it on 2.1, let me load a 2.2 Feb 27 06:01:29 huh... accidently found the "Bring up the source code for this" key combo in intellij Feb 27 06:04:24 does not happen with 2.2 Feb 27 06:04:31 with or without the viewpager Feb 27 06:04:44 oh except I didn't put the view pager back Feb 27 06:05:09 it works with viewpager Feb 27 06:05:25 as well, i mean Feb 27 06:06:50 onMeasure is never being called for ActionMenuView Feb 27 06:07:49 but it is called on 2.2 Feb 27 06:07:56 so there's a starting point Feb 27 06:08:10 I can also drag the page as far as I can to the left and back again and let go and it still doesn't invalidate the menu Feb 27 06:08:19 only once I page and let go Feb 27 06:08:42 yeah, then ViewPager will load the third fragment which triggers a full invalidation Feb 27 06:08:49 also same behavior with FragmentPagerAdapter and FragmentStatePagerAdapter Feb 27 06:09:39 i need multi-device logcat Feb 27 06:09:56 use two console windows? Feb 27 06:10:37 jake@thehydra:~/Dropbox/Projects/ActionBarSherlock$ adb logcat Feb 27 06:10:37 - waiting for device - Feb 27 06:10:37 error: more than one device and emulator Feb 27 06:10:48 -s emulator-555# Feb 27 06:11:17 for some reason all my emulators are detected as devices now Feb 27 06:11:24 so adb -e is useless Feb 27 06:11:50 ZOMG Feb 27 06:12:35 where has this been all my life Feb 27 06:12:39 lol Feb 27 06:12:48 it's always been there Feb 27 06:13:25 so you would disconnect all your other devices before using adb to push new apk?? Feb 27 06:13:39 i don't use the CLI for that Feb 27 06:13:47 ahh Feb 27 06:13:58 I've been building from CL with ant Feb 27 06:14:27 because IDEA kept locking up when trying to package resources Feb 27 06:15:28 all I had to do was add a launch target to build.xml to allow me to launch the activity with the LAUNCHER/MAIN cat/action in manifest after it installs Feb 27 06:15:37 then I can provide the device as an argument Feb 27 06:15:54 and ant is less confusing than maven -_- Feb 27 06:16:37 in some aspects I suppose Feb 27 06:17:03 I just don't like it because it's not really a build system as much as a scripting environment that uses XML Feb 27 06:17:18 I could probably write a much more terse version in python if I didn't use maven Feb 27 06:17:42 Are there performance benefits to having SQL queries threaded? I'm populating an itemized map overlay and getting crashes when threading the update. Feb 27 06:18:12 use... what's it called... transactions Feb 27 06:18:28 but any heavy DB stuff should be done on another thread Feb 27 06:18:50 oooo Feb 27 06:19:00 ***BlackBerry App World Notification - File Release Approved *** Feb 27 06:19:10 free playbook for me! Feb 27 06:19:20 Well I would prefer it to be threaded incase the DB becomes quite large, but i can't seem to get it working if its in an AsyncTask Feb 27 06:19:43 Same code works outside of a thread Feb 27 06:19:58 what's the error? Feb 27 06:20:02 and let's see the task Feb 27 06:20:09 so i'm confident in the code itself, but perhaps that's just a matter of "order of operations" Feb 27 06:20:49 getting an array index out of bounds Feb 27 06:21:08 I'm wondering if the problem is the overlay being added to the mapview in the thread, prior to adding the items Feb 27 06:21:27 maybe switching it around, only adding the overlay after calling populate() Feb 27 06:21:43 t0mless, it has something to do with ActionBarContainer not re-measuring its children Feb 27 06:21:59 or rather, ActionBarView being made visible not causing itself to be measured Feb 27 06:23:20 after 2.2's invalidation ActionMenuView and ActionBarContainer both get remeasured Feb 27 06:23:22 somehow Feb 27 06:23:25 on 2.1 neither does Feb 27 06:24:49 I need two PCs to step through these at the same time Feb 27 06:26:14 time to load a VM? Feb 27 06:27:10 I only have the ICS source downloaded Feb 27 06:31:34 brain. hurts. Feb 27 06:47:09 t0mless, http://stackoverflow.com/q/5027125/132047 Feb 27 06:48:52 ha Feb 27 06:48:54 that fixes it Feb 27 06:49:14 t0mless, you didn't repo sync? Feb 27 06:49:15 wtf is going on here Feb 27 06:49:51 something must've changed between 2.1 and 2.2 with drawing and measuring Feb 27 06:54:05 how much longer til you're in sf? Feb 27 06:56:01 I'll be there Friday Feb 27 06:57:37 cool, so soon Feb 27 06:57:58 good luck in the new town Feb 27 06:58:07 thanks Feb 27 06:58:17 loading the truck tomorrow Feb 27 06:58:24 then 4 day roadtrip Feb 27 06:58:28 should be fun Feb 27 06:58:36 ouch from where? Feb 27 06:58:50 Pittsburgh, PA Feb 27 06:59:01 by yourself? Feb 27 06:59:14 my dad is coming along and then flying back Feb 27 06:59:20 ah, good Feb 27 06:59:46 I don't like driving more than 3-4 hours, but then I'm a wimpy train-using European :) Feb 27 06:59:52 haha Feb 27 06:59:55 4 days is a lot of driving Feb 27 06:59:58 i can do about 6 maybe 7 at a time Feb 27 07:00:31 but with him hopefully we can just do like 10-14 a day Feb 27 07:00:38 maybe less Feb 27 07:00:46 I can barely stand driving to Vegas, and that's about 12 hours from here Feb 27 07:01:40 how many miles is the trip Feb 27 07:02:02 12 hours a day is only like 2800 milea Feb 27 07:02:23 i think it's about 2750 Feb 27 07:02:42 right on the money, heh Feb 27 07:10:14 akjsdflhadsf Feb 27 07:10:28 the framework is killing me Feb 27 07:10:31 nite Feb 27 07:10:35 see ya Feb 27 07:12:26 overriding onSizeChanged fixes it? Feb 27 07:13:11 guess I should read the whole thing Feb 27 07:13:12 :p Feb 27 07:13:17 not that part Feb 27 07:13:26 tragically Feb 27 07:13:37 calling requestlayout on the first call to ondraw Feb 27 07:13:43 but that's a hella-hack Feb 27 07:13:51 agreed Feb 27 07:13:52 i'm trying to figure out what causes the re-measurment by the framework Feb 27 07:14:36 i have no idea where it occurs though Feb 27 07:15:15 something changed between 2.1 and 2.2 though Feb 27 07:15:29 i should diff the entire framework tree and try grepping that Feb 27 07:19:14 big diff Feb 27 07:23:34 grepping onMeasure, onLayout, and requestLayout didn't yield much Feb 27 07:23:53 :-/ Feb 27 07:24:27 well, it's probably not the callbacks that were modified as much as the actual mesuring Feb 27 07:24:40 what if you grep measure( and layout( Feb 27 07:24:45 I forget the args Feb 27 07:24:57 I think measure takes a MeasureSpec Feb 27 07:28:44 what the shit Feb 27 07:28:52 when did shirt.woot prices go from 10 to 12 Feb 27 07:29:26 not sure Feb 27 07:29:30 noticed that recently too Feb 27 07:29:40 and neither measure nor layout has anything interested either Feb 27 07:30:33 hmm Feb 27 07:30:33 wait Feb 27 07:31:14 ViewRoot got a forceLayout that dispatches forceLayout to its children Feb 27 07:32:15 That could be the issue... but... why does it not have an issue if the fragment is just in the base content Feb 27 07:32:18 and only in a pager? Feb 27 07:33:06 i assume because a pager's items get added a bit later in the rendering due to its asynchronous nature Feb 27 07:33:31 but wouldn't the pager request a layout then? Feb 27 07:33:50 of itself it does Feb 27 07:34:31 so then what makes the pager invalidate the menu on 2.2 and not on 2.1 Feb 27 07:34:47 I can't imagine it's the ViewRoot Feb 27 07:35:29 because the pager causes the menu invalidation much later in the rendering which causes the menu view to be added very late, after the initial measurement Feb 27 07:35:45 so something changed between these two versions which allows that late addition to properly trigger a remeasurement Feb 27 07:36:15 at least that's my current best guess Feb 27 07:36:31 I can agree with that Feb 27 07:37:52 hmmm Feb 27 07:37:53 https://github.com/android/platform_frameworks_base/commit/cdb86673a78b021f2ba46c48c1a6e7639d013551 Feb 27 07:38:29 * JakeWharton pokes romainguy Feb 27 07:38:46 i can't imagine that fixes it Feb 27 07:38:54 but that's the only thing related to layout that I can find Feb 27 07:39:58 I wonder what that bug description is Feb 27 07:41:38 and how the hell would I fix that? Feb 27 07:42:45 aside from the hack? Feb 27 07:43:10 JakeWharton: what's up ? Feb 27 07:43:37 trying to chase down a funny bug Feb 27 07:43:58 somehow between 2.1 and 2.2 the way that views are measured changed Feb 27 07:44:07 romainguy, re: linked commit, that was added between 2.1 and 2.2. I'm having a problem where a view is added to the hierarchy but isn't being displayed Feb 27 07:44:20 simply opening in hierarchy viewer seems to cause it to be displayed Feb 27 07:44:31 hierarchyviewer calls requestLayout() on every view Feb 27 07:45:05 on 2.2 the view gets an onMeasure but on 2.1 it never happens Feb 27 07:45:12 the stuff is hard to trace Feb 27 07:45:17 then a bug was fixed in 2.2 Feb 27 07:45:31 that or you are not calling requestLayout() when you should Feb 27 07:45:45 well it's platform code backported and it works perfect on 2.2+ Feb 27 07:46:14 I wonder if it does it without action bar.... Feb 27 07:46:17 i was just curious what the description of that bug #2519590 was Feb 27 07:46:50 well, I guess it wouldn't because the fragment would get added much before onCreateOptionsMenu would ever get called without the action bar Feb 27 07:46:53 I can fix the bug by calling requestLayout on the first call to onDraw (for <2.1) but that seems soooo hacky Feb 27 07:46:56 from the diff it seems like windows were not relayouting their content properly when they changed size Feb 27 07:47:24 it was more to just confirm that it was a bug rather than a serious fix Feb 27 07:47:38 uh? Feb 27 07:47:57 if there's a commit with a bug id, then the commit is a bug fix Feb 27 07:48:07 what if you add something to invalidate the menu into SherlockFragment if hasOptionsMenu is true? Feb 27 07:48:24 into SherlockFragment.onLayout() * Feb 27 07:49:10 except we really only need it to be called on first load of the first fragment in the viewpager... Feb 27 07:49:15 I can't see the window laying out its content without having first receiving that resize callback though Feb 27 07:49:17 and only on 2.1.... Feb 27 07:49:32 so that can't be the fix that is causing the different behavior Feb 27 07:49:40 JakeWharton: probably not Feb 27 07:49:49 ViewRoot has the notion of "first layout" Feb 27 07:52:35 I'm seeing that now Feb 27 07:52:45 So it does an initial layout before attached to the window manager Feb 27 07:52:58 hmm... wonder why I get 404'd when I try to switch to master branch Feb 27 07:53:11 t0mless, it was moved to ViewRootImpl Feb 27 07:53:12 .java Feb 27 07:53:17 ahh Feb 27 07:53:53 I had tried to move to master branch from frameworks_base and got 404'd too Feb 27 07:53:58 but worked the second time Feb 27 07:55:14 is the support lib on github? Feb 27 07:55:52 no Feb 27 08:01:14 i just found something dianne would hate Feb 27 08:01:35 public InputMethodCallback(ViewRootImpl viewAncestor) { Feb 27 08:01:35 mViewAncestor = new WeakReference(viewAncestor); Feb 27 08:01:35 } Feb 27 08:02:51 alright t0mless, i'm narrowing this down pretty quickly Feb 27 08:03:23 i'm looking at viewpager in the support library to see just when and what it calls when adding a fragment Feb 27 08:04:43 setHasMenu is what triggers invalidation Feb 27 08:05:35 I'm thinking that I just need to listen to events very high up in the view hierarchy and manually trigger a layout on 2.1 when the ViewRootImpl normally would Feb 27 08:05:55 I just have to figure out when IWindow.Stub#resized is called Feb 27 08:07:50 JakeWharton: what's your issue exactly? Feb 27 08:08:53 well, when using fragments in a viewpager with a backported ICS action bar the ActionMenuView doesn't get drawn on 2.1 when the pager loads the first two fragments Feb 27 08:09:16 and it somehow boils down to that second onMeasure not being called Feb 27 08:10:13 but with a simple requestLayout (like with hierarchy viewer) they show right up Feb 27 08:10:49 so everything is technically working, it's just something isn't calling that second layout pass on 2.1 that was added in 2.2. that's what led me to that commit from you Feb 27 08:11:57 why are you talking about a second layout pass? Feb 27 08:12:21 Good Morning Feb 27 08:15:03 I have logging statements in my onMeasure inside ActionBarContainer which are called a second time on 2.2+ Feb 27 08:23:53 even after heirarchy viewer makes the view visable, it's mMeasuredWidth and Height are 0 for the ActionMenuView Feb 27 08:25:59 are you getting that from Log statements or the properties view in hierarchy viewer? Feb 27 08:26:19 in heirachyViewer Feb 27 08:27:17 ahh, but if I load the Hierachy a second time it gets the right properties Feb 27 08:50:23 night Feb 27 08:50:32 t0mless, i fixed it :P Feb 27 08:50:37 o rly? Feb 27 08:52:48 yarly Feb 27 08:53:25 with the idea from like 2 hours ago Feb 27 08:53:27 :p Feb 27 08:55:23 Does anyone know why I might be getting a NetworkOnMainThreadException on a line of code that's reading the HttpResponse's getEntity().getContent() with a Scanner? The HttpRequest#execute is being called on a thread... Feb 27 08:56:00 in onPostExecute? Feb 27 08:56:08 yeah Feb 27 08:56:13 that's on UI thread Feb 27 08:56:16 on post execute is UI thread Feb 27 08:56:35 but the reading the response's content with a scanner isn't network activity? Feb 27 08:56:38 or is it? Feb 27 08:57:09 i thought the HttpRequest#execute was the only code that was defined as "network activity" Feb 27 08:57:47 you read the response in doInBackground and pass it to onPostExecute Feb 27 08:58:42 oh, this whole time i thought once execute was done, the http request was done... Feb 27 09:00:16 any way to have the Hardware acceleration flag to false from 2.1 and up, seeing as 2.1 does not support that flag? Feb 27 09:00:45 when Hardware is forced on ICS it changes all our web views to white Feb 27 09:00:55 Blou_Aap: just use targetSdk=14 and then you can use it Feb 27 09:01:04 but my app is 2.1 Feb 27 09:01:20 sdk 2.1 Feb 27 09:01:38 you can still use targetSdk=14 Feb 27 09:01:42 targetSdk just sets what you compile it against Feb 27 09:01:42 and support 2.1 Feb 27 09:01:55 Blou_Aap: you can set a flag on your view: http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_HARDWARE_ACCELERATED Feb 27 09:02:01 er off Feb 27 09:02:08 do it in xml though Feb 27 09:02:20 because unkown xml attributes just get ignored Feb 27 09:02:37 so romainguy , can I use SDK 14 and my app will still support 2.1 ? Feb 27 09:02:46 yes you can Feb 27 09:02:50 as long as minSdk=7 or lower Feb 27 09:02:52 oh my… lol Feb 27 09:02:57 never knew that Feb 27 09:02:59 hurr durr Feb 27 09:03:35 ok, bedtime for this guy Feb 27 09:03:38 MUST I use 14 or is 15 ask fine? Feb 27 09:03:46 also* Feb 27 09:03:54 you can use 15 if you want Feb 27 09:04:09 but if you're trying to support 2.1 14 and 15 are pretty much the same Feb 27 09:04:19 since you're not going to use any of the API calls for 15 Feb 27 09:04:29 you just need 14 to get the hardwareAccelerated xml flag Feb 27 09:05:04 thank you romainguy , thank you too t0mless Feb 27 09:05:16 but if you set 15 just make sure you check Build.SDK_INT ? I think is the value Feb 27 09:05:32 before using any higher API method calls Feb 27 09:06:07 why must I do that ? Feb 27 09:06:13 oh nvm Feb 27 09:06:17 i know why Feb 27 09:06:18 ... Feb 27 09:06:51 because if you try to call a method introduced in API9 on 2.1, it's going to explode Feb 27 09:06:55 but yea Feb 27 09:06:59 ok, bedtime for reals Feb 27 09:07:13 gn and fanks! Feb 27 09:14:38 i've got a 'start service' button in my activity that launches a startService(), but when i exit the activity the service doesn't always keep running. Is there a way to do this in a bit more of a stable fashion? Feb 27 09:14:57 that is a "stable" fasion Feb 27 09:15:11 check what your service is doing which finishes it too soon Feb 27 09:18:20 i kinda get the feeling that the activity finish() reapes the service Feb 27 09:19:05 nop Feb 27 09:19:10 that's only for bound services Feb 27 09:20:15 rightio, i'll do some more debug then :) Feb 27 09:20:36 make sure you start another thread for a service, otherwise it'll run on your main thread Feb 27 09:22:10 ahh ... perhaps that's the problem, i assumed a startService would spawn a new thread Feb 27 09:24:17 Hey guys, when i start an AsyncTask in an Activity with .execute() - hows it with the memory leaking? does the thread run forever or does it get closed when i finish the Activity? Feb 27 09:25:10 kazoooka: it'll run until it is done Feb 27 09:25:21 kazoooka: then the thread will finish, leaving only the asynctask instance Feb 27 09:25:31 which will get cleaned up if the activity disappears Feb 27 09:26:01 kazoooka: ie, you shouldn't use asynctask for background tasks which will run indefinitely Feb 27 09:30:05 p500 ROM ?? Feb 27 09:30:27 #android-root Feb 27 09:36:21 hmm... so samsung are claiming the galaxy note tablet 10.1 special pen edition tablet does windowed apps... Feb 27 09:49:05 lame Feb 27 09:53:37 * Edyiot p500 ? ROMs ? anyone ? :P Feb 27 09:55:10 Edyiot: #android-root for rom talk I believe Feb 27 10:12:58 lol, do you work for a large known company @ OxDeadC0de ? Feb 27 10:13:34 has anyone got any problems with the newly released Eclipse 3.7.2 and the Android plugin ? Feb 27 10:14:59 no ;( Feb 27 10:15:56 dont worry be happy then you have no restrictions on your genius Feb 27 10:16:03 to use Feb 27 10:16:21 * Crypticode just likes the nick Feb 27 10:16:29 so as 0xDEADBEEF Feb 27 10:16:34 ^^ i dont like to eat Feb 27 10:16:48 :D. thank you. what about 0xBAADF00D :P Feb 27 10:17:14 feeddeadbeef Feb 27 10:18:29 lol. The ndk is giving me deadbeef.. ><. seems the build/tools scripts are broken or I'm doing it wrong again.. Feb 27 10:19:23 i vote for the second choice. :) Feb 27 10:20:58 I do too, but all I'm doing is build/tools/rebuild-all-prebuilt.sh ./src/ --verbose , and it gives some error about missing '))' in gen-platforms.sh line 385 Feb 27 10:22:12 after using the build/tools/download-toolchain-sources.sh ./src Feb 27 10:23:52 hiya Feb 27 10:24:43 I am having problem with the adb backup, its giving me an error - "adb: unable to connect for backup" - i dont know how to fix it Feb 27 10:25:49 sup, got a small question i wasn't able to answer by myself yet: Is it possible to start (and interact with) another process out of an application? Feb 27 10:25:59 The Process() class doesn't seem to do what i want Feb 27 10:26:42 kamaze: you shouldn't directly Feb 27 10:27:08 kamaze: but you can specify, through process groups, which application processes should share a process Feb 27 10:27:11 and which shouldn't Feb 27 10:27:36 *in the manifest Feb 27 10:28:17 MDijkstra: so, putting a certain program functionality (to be precise, some authentication / x.509 stuff) into a own service-binary to be invoked out of the app is not possible? Feb 27 10:29:05 kamaze: rtfm about android ipc Feb 27 10:29:40 uh, 850k device activations per day now Feb 27 10:29:52 not bad Feb 27 10:29:57 ? Feb 27 10:30:20 smknight_: duh, didn't think about searching for ipc instead of processes yet :) Feb 27 10:30:20 Crypticode: http://goo.gl/JH1wC Feb 27 10:31:23 I am having problem with the adb backup, its giving me an error - "adb: unable to connect for backup" --- plz help :D Feb 27 10:31:44 im angry, both of my purchased apps where not downloaded in time so i canceled the buy after 13 minutes and the small amount of 70 cent and such is still not reclaimed Feb 27 10:31:52 kamaze: yes, it is, but you don't understand how android works Feb 27 10:32:17 you're looking at it as if you're coding a standard linux API Feb 27 10:32:23 *app Feb 27 10:32:32 which is not, in general, how android works Feb 27 10:32:48 android is special. Feb 27 10:32:52 -.- Feb 27 10:33:02 MDijkstra I am having problem with the adb backup, its giving me an error - "adb: unable to connect for backup" --- plz dude, i really need help on this shit Feb 27 10:33:07 it's different, and usually for good reason Feb 27 10:33:19 mursalat: not the channel for it, try #android or #android-root Feb 27 10:33:20 i would also code more in linux api's rather than to redistribute an app with every new release of android Feb 27 10:33:25 when i inflate a layout using the inflater, will in ot be able to look up a view by id? Feb 27 10:33:49 tapas: you can findViewById inside an inflated layout Feb 27 10:33:50 tapas: Sure, just findViewById on the returned View Feb 27 10:33:57 MDijkstra: I'm not an android developer, I'm just creating a library/service program which should be easy to use on android as well, thats why i ask. Feb 27 10:34:04 but thanks Feb 27 10:34:15 kamaze: right, have a look at the android application fundamentals Feb 27 10:34:27 ^^ where ? Feb 27 10:34:29 :D Feb 27 10:34:29 SimonVT: ah ok.. that was the piece i was missing Feb 27 10:34:30 http://developer.android.com/guide/topics/fundamentals.html Feb 27 10:34:40 thanks for the pointer Feb 27 10:36:38 tapas: Activity.findViewById(...) only searches the activitys current content. If you had added the inflated layout, it would be able to find it as well Feb 27 10:37:29 SimonVT: yeah this was in the context of a BaseAdapter for a ListView.. Feb 27 10:37:38 Ah :) Feb 27 10:37:46 SimonVT: so yes, i had to inflate first and then use findViewById on the inflated view Feb 27 10:46:55 Can someone tell me the maximum size or percentage the PiP feature takes from the screen in the google tv environment please? Feb 27 11:04:33 let's say i have a relative layout. align_parentLeft is an ImageView, rightOf the image view is a text view and at parentRight is another imageview.. Feb 27 11:04:54 now if the text in the textview is long it leaks into the right image view Feb 27 11:05:10 i wonder if one can enforce views to not overlap in a relative layout Feb 27 11:07:34 If that's all you got, there's no real point in relativelayout :p Feb 27 11:07:46 Anyway, maybe leftOf on the right imageview? Feb 27 11:07:49 Not sure Feb 27 11:08:03 s/on// Feb 27 11:08:41 850k android devices activated every day, notbad.jpg Feb 27 11:09:43 and still much more children and adults dont have anything to eat or drink, too Feb 27 11:09:48 hey, nice numbers Feb 27 11:15:21 SimonVT: well, the left image view and the textview are both aligned to the left.. and the right image view is aligned to the right.. i did not know how to solve that with e.g. a linearLayout Feb 27 11:16:15 tapas: They are on the same horizontal line, right? Then just apply a weight to the textview Feb 27 11:16:39 is there a ready SDK available for me to render a PDF page by page horizontally instead of Vertical Feb 27 11:20:33 Am trying to implement a simple content provider to receive URI's.. But I keep getting android.content.ActivityNotFoundExceptions .. Is the problem likely my intent filters or somewhere else? Feb 27 11:21:10 SimonVT: but weights were more about how much space they take right? so i would give the left and ight images a weight of 0 respectively. the textview in the middle 1 Feb 27 11:21:27 but then how to make the textview leftaligned.. i guess that's a property? Feb 27 11:21:43 yea Feb 27 11:21:48 It's left-aligned by default Feb 27 11:22:08 top-left aligned Feb 27 11:22:12 SimonVT: ok, cool Feb 27 11:22:17 SimonVT: thanks. will try that Feb 27 11:23:02 Oh ActionBarSherlock… What is going on with SherlockPreferencesActivity? Feb 27 11:24:19 Trying to "requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS)", but I'm getting a RuntimeException that requestFeature() must be called before adding content Feb 27 11:24:41 The RequestWindowFeature call is before setContentView... Feb 27 11:25:30 do it before "super" cll Feb 27 11:25:32 *call Feb 27 11:27:24 I think that did it, Thanks! Feb 27 11:28:33 Is that something standard that I've been missing all these years? Feb 27 11:28:48 as in it should always be called before super, or just when using ABS? Feb 27 11:28:57 PreferenceActivity calls setContentView in onCreate Feb 27 11:29:35 Good call, I hadn't gotten to the point of pulling up PreferenceActivity source yet Feb 27 11:43:48 hi group, android google maps api have offline maps tool? exist a article about this on the web? thenks Feb 27 12:01:58 SimonVT: actually i followed through with your suggestion.. ut the TextView even though i set center_vertical on it is not centered vertically.. paste coming up in a minute Feb 27 12:02:29 http://pastesite.com/32146 Feb 27 12:03:00 i was now thinking about using another nested layout to get the string centered vertically Feb 27 12:04:05 gracity centers the textviews content. If the textview itself is not centered, well.. :p Feb 27 12:04:16 gravity* Feb 27 12:04:31 Just try and move gravity="center_vertical" so the linearlayout Feb 27 12:05:07 Also, no need to set a weight on the imageviews, it defaults to 0 Feb 27 12:05:13 And set the textviews width to 0dp Feb 27 12:05:39 ok Feb 27 12:07:47 SimonVT: actually adding layout_gravity to the individual elements did the trick.. Feb 27 12:08:49 i'm starting to like the android system somewaht : Feb 27 12:09:54 Yeah, the result should be the same Feb 27 12:11:25 I suppose a relativelayout would be more suited for this tho, rather than nesting linearlayouts. But they take a bit longer to figure out, and at least it works now Feb 27 12:11:55 (nesting linearlayouts, especially with weights, is expensive) Feb 27 12:13:16 so what's the deal with expandable list view group indicators? I can find out almost no information about how they are positioned Feb 27 12:15:13 scratch that, I am in fact an idiot. Feb 27 12:16:06 Not gonna argue with you there :p Feb 27 12:16:17 ... thanks :< Feb 27 12:19:04 how many headaches does it take me until i could run an simple opengl es trinagle say rotating on my android display ? could someone tell me more in dept which stuff i need to install and in which order, please ? Feb 27 12:19:21 i really don't like how the list indicators are just drawn on top of the child views, with no sensible way of figuring out how to work around this drawable being dropped on top of your views Feb 27 12:23:59 Mental Feb 27 12:24:03 Collapsion Feb 27 12:24:25 oh no Feb 27 12:27:19 could i also run "normal" linux programs on my rooted android instead of the need of installing eclipse+plugins and all, when all i need is to display buttons and network access ? Feb 27 12:27:26 theoretically nothing else from the phone, sound perhaps too Feb 27 12:27:35 but i dont need or want all the app building toolchain or be bound to write in java Feb 27 12:27:44 should i throw my phone away rather ? Feb 27 12:27:44 NDK is your friend Feb 27 12:28:28 not yet Feb 27 12:29:03 Crypticode: The APIs on Android are nothing like glibc+glib+stuff-on-normal-Linux-distro. You would basically need to roll your own distro, writing a number of adapter modules. Feb 27 12:29:15 does anyone here have experience with wifi-direct Feb 27 12:29:19 Using Android's APIs would definitely be less work. Feb 27 12:29:27 okay Feb 27 12:30:00 but i dont really like the idea of installing hundrets of megabytes of toolchains i theoretically want to use one-time Feb 27 12:30:04 There is a Linux kernel, and a basic libc, but nothing like what you know as the normal Linux userland. Feb 27 12:30:15 until my rotating triangle with network access works Feb 27 12:30:25 but as i read i _have_ to write in java ? Feb 27 12:30:46 but some app orking with sdl too... ? Feb 27 12:31:03 Most of the APIs are Java APIs. Feb 27 12:31:05 p<'s w>o Feb 27 12:31:56 how long could it take if im not dump until i could see a gl triangle and being able to tcp/ip Feb 27 12:32:16 i've downloaded android sdk and eclipse but there i am stuck Feb 27 12:32:47 hey guys im getting this issue with the ADT plugin any ideas what im missing Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 16.0.1.v201112150204-238534 (com.android.ide.eclipse.adt.feature.group 16.0.1.v201112150204-238534) Missing requirement: Android Development Tools 16.0.1.v201112150204-238534 (com.android.ide.eclipse.adt.feat Feb 27 12:32:59 ON my phone and not just the emulator Feb 27 12:33:18 org.eclipse.wst.sse.core 0.0.0' but it could not be found thats the rest of the message Feb 27 12:33:18 such error message really make my decision in not using all this tools Feb 27 12:33:22 damned Feb 27 12:33:54 i can calculate i have a thing with an cpu and display, yeay sounds like C64 Feb 27 12:34:06 Crypticode, get over it Feb 27 12:34:07 but it takes ages until i could see a hellow world on that device Feb 27 12:34:19 stop blaming your incompetence on the toolkit Feb 27 12:34:22 i already have installed frodoc64, i guess i stick to that Feb 27 12:34:37 eagles0513875_, that's wierd Feb 27 12:34:45 eagles0513875_, are you upgrading or doing a clean install? Feb 27 12:34:46 Mavrik: i know this is a clean install of kubuntu 11.10 Feb 27 12:34:47 32bit Feb 27 12:34:53 clean install of the tools etc Feb 27 12:34:57 did you install eclipse from repos? Feb 27 12:35:06 yes Feb 27 12:35:17 and its the same version as is on the eclipse site Feb 27 12:35:18 indigo Feb 27 12:35:23 eagles0513875_, I've found those packages to be pretty broken and had constant trouble updating them Feb 27 12:35:34 eagles0513875_, (with similar messages as youo) Feb 27 12:35:42 bah ok Feb 27 12:35:45 will purge and download Feb 27 12:35:48 at least download first Feb 27 12:35:50 I suggest you grab Eclipse for Java development from eclipse.org Feb 27 12:35:55 you are right with that assumption of me complaining Feb 27 12:35:56 and put it somewhere user-writable Feb 27 12:36:05 Mavrik: read my mind Feb 27 12:36:07 (putting it into /opt caused problems for me on some versions) Feb 27 12:36:20 Mavrik: download to my home directories download folder Feb 27 12:36:23 then use sudo dpkg -i Feb 27 12:36:23 :D Feb 27 12:36:31 you just unpack it Feb 27 12:36:35 of course never anyone decided that users of devices should no longer be able to start programming those themselve cause of world money econonmy Feb 27 12:36:36 it's not a deb :) Feb 27 12:36:47 Crypticode, by nokia N900, stop whining Feb 27 12:36:51 *buy Feb 27 12:36:55 actually just need to extract it :D Feb 27 12:37:04 mhm Feb 27 12:38:25 arr, i install monkeyisland on my phone now and then puck myself off playing it the tenth time Feb 27 12:38:59 Mavrik: will keep ya posted :D Feb 27 12:40:18 hi there... Feb 27 12:40:31 anyone knowing the official google apis channel? Feb 27 12:40:32 die too Feb 27 12:42:42 Anyone here tried the black panther custom rom ? Feb 27 12:43:22 shroomyreader, those questions are usually better answered on #android (or #android-root) Feb 27 12:43:30 farmer-duck, google apis channel? Feb 27 12:43:31 legal estou vendo que vc já criou com estilo Feb 27 12:43:37 thanks Feb 27 12:43:38 sorry Feb 27 12:43:39 =/ Feb 27 12:44:00 yea... need to ask those devs a few questions Feb 27 12:44:33 maybe someone here can answer them, but I am pretty sure they can't Feb 27 12:45:39 Need to develop a healthcare android app, with mostly the use of Google stuff based on the easy maintainance after delivery... Feb 27 12:46:27 but I need some functionality from plus to be available in the plus api and some from the calendar Feb 27 12:46:40 although I know they won't fix that for me, Feb 27 12:46:54 but is they can give me a possible release date Feb 27 12:47:05 or a we won't fix that at all Feb 27 12:47:20 then I'll need to look into other options ;) Feb 27 12:47:28 so Mavrik Feb 27 12:47:31 hi guys. I just uploaded new version of my app on Market (this one, if it does matter: http://goo.gl/4VfVw ), new version is 0.03, but on the market I still see 0.02 only. And: if i use browser, then nothing is updated except "what's new" section, but if I use Market application on Android phone, then i see updated description and screenshots, but anyway old version 0.02. what can be wrong? Feb 27 12:47:34 anything?;) Feb 27 12:47:48 in my "developer console" i see that active version is 0.03 Feb 27 12:48:17 farmer-duck, calendar, contacts, etc. APIs that are part of Android are described and documented on d.android.com Feb 27 12:48:27 for plus APIs you'll need to check general API docs Feb 27 12:48:36 and I doubt you have a dedicated channel on freenode Feb 27 12:49:04 :) waiting for eclipse to load up Mavrik : Feb 27 12:49:06 moment of truth now Feb 27 12:49:11 yeah, I am familiar with the dev site and the stuff which is there:) Feb 27 12:49:43 but I know the are still developing the plusapi and plus.google.com Feb 27 12:49:44 dfrank: It takes a while for the new version to propagate Feb 27 12:50:50 hey SimonVT, how's it propagating? :) Feb 27 12:50:59 blargh :p Feb 27 12:51:13 SimonVT: ok, thanks. I just needed to make sure that all is ok ) Feb 27 12:51:14 hehe Feb 27 12:51:22 I have to figure out this unit testing thing Feb 27 12:51:58 isnt there a working windows emulator for android too ? Feb 27 12:52:53 there always has been a windows emulator Feb 27 13:00:03 Hey, so I'm having a slight problem with a content view. I have a login activity which uses an intent to pass the username and password to the next activity, which is the activity I'm having problems with. In the onCreate(bundle) method I call super.onCreate(bundle) and right after that I call setContentView to a view I've defined. It's a simple indeterminate progress bar. But instead of switching to this first view, the UI hangs Feb 27 13:00:06 http://pastebin.com/vQbTzxxU Feb 27 13:00:43 My code there. I know it's probably a bit messy, but I'm new to Android programming, so some of the things I'm doing might not be the proper way to do it. Feb 27 13:02:31 Moopz: your issue is the final while() Feb 27 13:02:53 you can't do while (blah blah) { Thread.sleep(...); } on the ui thread Feb 27 13:02:57 Mavrik: think its working Feb 27 13:03:06 ya its working Feb 27 13:03:13 you must return, and make your other threads, when they are ready, trigger events that cause activity in the UI thread Feb 27 13:04:13 Not sure how I'm supposed to get the second content view to wait to be sat until it's done loading? Feb 27 13:04:29 Moopz: also learn about AsyncTask. Feb 27 13:04:50 don't construc Threads or Runnables by default, check first if AsyncTask is the more convenient abstraction Feb 27 13:04:59 I tried AsyncTask and it made my app hang. Feb 27 13:05:16 you probably did not use it correctly. Feb 27 13:05:16 Might have used it wrong. Feb 27 13:07:32 My problem with that is, I need 2 threads for networking, as I need non-blocking IO. I cannot create a new socket in the UI thread because it won't let me so how would I go about making something that 2 AsyncTasks can read, without it being declared in the UI thread? Also, how would you suggest I circumvent the while loop? Feb 27 13:08:31 I don't see an actual question in there, truly. You can easily do 'foo = new SomeTask()' to make a new instance, and defer all work into the foo's doInBackground that deals with sockets, so that answers the first part of the question. Feb 27 13:09:00 I already told you that you can't do the while, you must return, whatever you think you need to do this is what you must do instead. You will trigger events (perhaps on asyncTask's onPostExecute()) to cause the UI to do different things. Feb 27 13:10:50 every view also has a method called postDelayed() that anybody can call, this is another way to schedule work to happen on UI thread from anywhere Feb 27 13:10:50 Yeah but in order to define my input and output streams, both need access to the socket, otherwise I need to make 2 sockets, which is stupid. Since I need 2 AsyncTasks, one for input, one for output, how would I declare the socket? I cannot declare the socket in the UI thread due to Android rules about networking in the main task. Feb 27 13:11:02 and there was even runOnUiThread() somewhere, maybe that was Activity Feb 27 13:11:07 ")£$&£*(& Feb 27 13:11:14 lol Feb 27 13:11:14 sry Feb 27 13:12:14 Moopz: well, you could also use asynchronous IO, I guess. Or you can ignore asynctasks and just use Threads. You can create a Thread which sets up the sockets and launches 2 more threads if that is what android requires -- I am not convinced it does, but maybe it does -- ... Feb 27 13:12:49 Which is the solution I've done. I did a thread which launched 2 other threads. Feb 27 13:13:54 But for the loop thing, I'm not sure I'm following you. Return from where? And how do I trigger those events? Feb 27 13:14:46 you just don't do the while loop. You write } instead and delete the remaining code. Feb 27 13:14:51 that's what I mean by return. Feb 27 13:15:18 you can't sleep on the ui thread, it's just not allowed if you want anything to happen on the screen. The UI thread is required by android to actually update the display. Feb 27 13:15:31 How would I get to call the new ContentView then? I cannot do it from the threads so. Feb 27 13:15:40 of course you can. Feb 27 13:15:53 android provides numerous ways to schedule work to happen on the ui thread Feb 27 13:15:54 Pretty sure I got an error last time. Feb 27 13:16:01 there's runOnUiThread() & every view has postDelayed() Feb 27 13:16:19 and onPostExecute in ASyncTask Feb 27 13:16:28 yes, asynctasks are lovely if you know how to use them Feb 27 13:17:29 So would I be able to do runOnUiThread(setContentView(yadadya))? Feb 27 13:17:45 no, that's not the way it works Feb 27 13:17:51 check out the signature of the method Feb 27 13:18:11 It's a Runnable. Feb 27 13:18:45 yes! So you do runOnUiThread(new Runnable() { @Override public void run() { setContentView(bla bla); }); Feb 27 13:19:09 (can't wait java to grow single-abstract-method lambda syntax) Feb 27 13:19:40 Alright, will try. Thanks for being patient. :D Feb 27 13:24:47 alankila: good luck with that Feb 27 13:25:08 switch statements in strings took what like, 10 years? Feb 27 13:25:45 nah it was nearly in jdk7, it's just that some stupid folks resisted it for some reason that was not quite clear to me Feb 27 13:26:03 maybe they wanted lambdas to be done entirely differently, don't know Feb 27 13:26:48 roll on jdk 8 in another 5 years or so :3 Feb 27 13:27:11 design by committee problem Feb 27 13:27:30 lol im glad google dropped the main oracle java jdk and jre and went to open jdk :) Feb 27 13:27:36 smart move on their part Feb 27 13:27:54 google did what' Feb 27 13:27:55 ? Feb 27 13:28:05 openjdk is as for now still completely useless for any usage Feb 27 13:28:13 openjdk is even rejected by ics build system Feb 27 13:28:27 or did that change sometime? Feb 27 13:32:14 what would be a good way to share data within my app? I have several activities (well, two: "main interface" and "upload history"). i want to have a queue of jobs (files to upload) and if the user selects the "history" option in the menu, take him to the "history" activity - but the problem is... how do I pass data to History since you can't pass java objects? Feb 27 13:32:46 I need a little advice. I'm still new to Java and Android, and I'm currently trying to pull out some strings and integers from a SQLite database. Problem is, I don't know where to put it. I'm used to working with arrays in PHP. Googling for java arrays, gives me all kind of lists and maps to use. But how do I know which is the right one? Feb 27 13:32:49 is a ContentProvider overkill for this? the only other way I can think of is using static properties all over the place Feb 27 13:32:49 hjf, well you have to store history somewhere Feb 27 13:33:02 why not just read it from that storage? Feb 27 13:33:30 Repox, List fooList = new ArrayList(); // for example. You can also use LinkedList, depending on what you wanna do this might be better, but ArrayList is far more common Feb 27 13:33:35 Mavrik: because i need to notify the history screen of when a user has queued a new file so it can refresh Feb 27 13:33:58 you can't have two activities active at same time anyway Feb 27 13:34:06 just read data in onResume() Feb 27 13:34:10 Repox, the concept is that List is just an interface, and ArrayList is one of the implementations. You can use any implementation that satisfies a given interface. Feb 27 13:34:38 and you can declare variables to be types of either classes or interfaces. Interfaces give you more flexibility and sometimes clarity. Feb 27 13:34:40 dang`r`us: Thank you, I'll look into that. I'm hoping to be able to use it in a ListView when I'm done pulling it out from the database. Feb 27 13:35:09 hjf: You can use a content provider, or you can use a Service. Feb 27 13:35:19 hjf: A ContentProvider may actually be the best solution. Feb 27 13:35:22 Mavrik: yes... BUT i'd also like History to have an interface like a web browser's download history: downloaded files are "just there", but downloading files have a progress bar. and that needs to be updated constantly Feb 27 13:35:46 hjf: you can of course have singletons, etc. Your activities (by default) live in the same process. Feb 27 13:35:54 well, you won't be able to do that with just activities then Feb 27 13:36:06 uh Feb 27 13:36:14 if you want anything to happen in background over several activities you'll need a service Feb 27 13:36:22 not necessarily Feb 27 13:36:24 and then you can use onBind() and IBinder to pass data Feb 27 13:36:27 though a Service is usually the smartest way to do this. Feb 27 13:36:33 lov, not necessarily true Feb 27 13:36:44 but usually the least headachy way to do it :) Feb 27 13:36:44 I have a service that uploads the file and notifies to a Stausbar message Feb 27 13:36:51 status bar* Feb 27 13:37:05 hjf: bind to the activity and/or have it send callbacks/broadcast intents. Feb 27 13:37:06 bind on it then and pass data over a Binder :) Feb 27 13:37:13 er Feb 27 13:37:15 bind to the service Feb 27 13:38:13 how? the service is fired from the main activity screen... how do i tell the history screen about the service? Feb 27 13:38:32 .... Feb 27 13:38:36 bind to the service in your history activity. Feb 27 13:38:44 * alankila thinks java is awesome for offering rich choice about the fundamental datatypes Feb 27 13:38:54 alternately, like you considered, use a contentprovider. Feb 27 13:38:59 wait Feb 27 13:39:13 hjf: http://developer.android.com/guide/topics/fundamentals/bound-services.html Feb 27 13:39:16 I mean, the utilities like linkedhashmap or treemap. <3 Feb 27 13:39:22 You DO know that you can bind to services, yes? Feb 27 13:39:40 hate having to kludge this functionality with additional bookkeeping datastructures when it isn't there Feb 27 13:39:42 lov: well.. i know you can bind to services from the activity that called it Feb 27 13:39:53 meh my brain is full of fuck, if i have a time in milisecs, how can i get the 10th of a second fastest? e.g. 3987 -> 9 :/ Feb 27 13:40:01 hjf: services aren't tied to one activity. Feb 27 13:40:10 holde (x/10) %10 Feb 27 13:40:11 hjf: multiple activities can bind to the same activity Feb 27 13:40:18 er Feb 27 13:40:20 *same service Feb 27 13:40:21 ;) Feb 27 13:40:23 hjf: multiple activities can bind to the same service Feb 27 13:40:25 sorry that would be / 100 Feb 27 13:40:54 wow Feb 27 13:40:55 thanks Feb 27 13:41:03 i'm retarded Feb 27 13:42:45 lov: hmm i see it now. I was using an IntentService actually Feb 27 13:44:41 hjf: and that's fine, you can keep using it. Feb 27 13:47:36 hello Feb 27 13:48:24 hi Feb 27 13:48:33 tykim83: hi Feb 27 13:49:09 huh, quite a crowd here Feb 27 13:49:13 hehe :D Feb 27 13:49:17 hey duo_ :) Feb 27 13:49:27 anybody willing to give some tips on app design? Feb 27 13:49:54 im just as green as u are and im taking up the UI creation for the libreoffice android port :( so i am not much help Feb 27 13:49:56 i have the general idea, just need to verify it with someone more expirienced Feb 27 13:50:39 do u know any websiste with some basic tutorial or something to start? Feb 27 13:51:13 tykim83: There is no such word "u" Feb 27 13:51:30 you sorry Feb 27 13:51:40 tykim83: i think developer.android.com is a good place to start ;] Feb 27 13:52:23 ya installing the sdk is a good place and the eclipse plugin :) Feb 27 13:52:43 i ust be doing something stupid here: http://pastesite.com/32151 Feb 27 13:52:56 ah, i would recommend intelliJ as IDE, in my opinion it's much better Feb 27 13:52:57 this view gets inflated and returned in a BaseAdapter.. Feb 27 13:53:14 tapas: cool story bro. Feb 27 13:53:18 but it does something very weird.. Feb 27 13:53:43 duo_: you dont have the ADT plug available for it like you doo in eclipse Feb 27 13:53:45 the yellow frame height extends over the whole screen Feb 27 13:54:13 tapas: use hierarchyviewer Feb 27 13:54:14 eagles0513875_: you dont have to have one :P intelliJ already has a lot of android dev tools built in. Feb 27 13:54:20 lov: ok Feb 27 13:54:25 might have to look at that but im used to eclipse Feb 27 13:54:33 duo_: is it available for linux Feb 27 13:54:59 only thing it does not have is visual designer. BUT it can previev layouts, you just need to type xml yourself.. it has autocompletion for xml though.. i reeally recommend it Feb 27 13:55:06 eagles0513875_: yes, it is Feb 27 13:55:09 The wifi support sucks on android Feb 27 13:55:19 Agreed. IntelliJ IDEA is so much better than Eclipse it's not even funny Feb 27 13:55:52 duo_: will take a look at it Feb 27 13:55:55 ok, so about my question, heheh, mayb e i'll just describe what i need and what i think i should do Feb 27 13:55:58 oh wel. i think it's time to reboot the mac ;D 02:55:24 E/hierarchyviewer: Unable to debug device 80A354043040743694 Feb 27 13:56:00 how come google doesnt release the ADT for it Feb 27 13:56:10 what for intellij ? Feb 27 13:56:11 lov: thanks, i read the docs on bound services and it's starting to make a lot more sense now. Feb 27 13:56:34 shroomyreader: http://www.jetbrains.com/idea/ Feb 27 13:56:57 ...? Feb 27 13:56:57 hmm, eclipse still works fine though.. weird.. Feb 27 13:57:08 I know intellij I use it Feb 27 13:57:13 And its indeed better than eclipse Feb 27 13:57:18 but thats just because eclipse sucks Feb 27 13:57:32 i need to make an app that will pull a bunch of items from server through xml-rpc. should i do it like this: ListFragment starts a service that pulls the stuff into contentprovider, and then from contentprovider into the list through CursorLoader. how does it sound? Feb 27 13:57:38 Check the demos to the right in on this page: http://www.jetbrains.com/idea/documentation/index.jsp Feb 27 13:57:47 it should explain why it's better than anything else Feb 27 13:57:53 at least it intellij supports eclipse interoperability Feb 27 13:58:23 is there a free working windows emuluator ? Feb 27 13:58:30 hmm, the hierarchyviewer simply doesn't seem to work.. ok, i need to use more logic then ;D Feb 27 13:58:34 going back to visual studio Feb 27 13:58:37 Crypticode: huh? Feb 27 13:58:48 Crypticode: http://developer.android.com/sdk/index.html Feb 27 13:58:58 Crypticode: download the api level you want, make sure you get the emulator instance. Feb 27 13:59:06 just want my simple opengl program to show up Feb 27 13:59:15 see also http://developer.android.com/guide/developing/devices/emulator.html Feb 27 13:59:24 on my phone at first, network access too Feb 27 13:59:26 you can, of course, develop on device. Feb 27 13:59:33 I'm a bit dissapointed in the emulator Feb 27 13:59:48 shroomyreader: and we're all a bit disappointed in you. Feb 27 13:59:51 I'm looking for docs about communication and sync between android and desktop Linux OS. Is there something usefull to read? Feb 27 13:59:59 chill now lov Feb 27 14:00:07 Atlantic777: you may or may not be able to use the ADK. Feb 27 14:00:19 * Crypticode just saw there are vnc clients for andoird too if that helps Feb 27 14:00:38 develop on the phone with gcc ? Feb 27 14:00:55 oh it only works with the emulator? Feb 27 14:00:56 can i just compile using SDL and/or glfw and run that on rooted device ? Feb 27 14:01:15 I'm using Feb 27 14:01:17 uri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, image); Feb 27 14:01:26 to create a uri to create an output stream to store an image Feb 27 14:01:32 but the image doesn't show up in the gallery Feb 27 14:01:44 is it as simple as adding "images/" somewhere to get that working? Feb 27 14:02:44 lov: ok, but how the data is storred? (contacts, messages, calendar etc) It has to be hackable. :D Feb 27 14:03:22 Atlantic777: that's an open ended question. Feb 27 14:03:37 Atlantic777: there are a lot of different ways data can be stored on your local device, some of which may be implementation specific. Feb 27 14:03:50 Atlantic777: I strongly recommend using the public api methods to get/set it. Feb 27 14:04:21 Crypticode: have you even been to d.android.com yet? Feb 27 14:04:33 nop Feb 27 14:04:38 well gee Feb 27 14:04:45 maybe you should do 5 seconds of research before asking us for help? Feb 27 14:04:51 anyway, you might be interested in http://developer.android.com/sdk/ndk/index.html Feb 27 14:04:59 is it worth a try to shorten my battery lifetime ? Feb 27 14:05:07 ... Feb 27 14:05:25 ... Feb 27 14:05:33 I don't even know what you asked. Feb 27 14:05:37 or why you're asking Feb 27 14:05:38 Troll is trolly Feb 27 14:05:42 but then you would have been bored Feb 27 14:06:13 :> Feb 27 14:06:20 Troll is gone. Feb 27 14:13:03 hmm, after using the hierrchy viewer i'm not smarter than before except for the fact that it's the linear layout taking up all the space.. Feb 27 14:14:06 oh ok, i got it. sorry for the noise Feb 27 14:15:40 XmlPullParser.setInput javadoc mention a dectect-encoding feature that must be activated to work... but the link: http://xmlpull.org/v1/doc/features.html#detect-encoding doesn't mention encoding at all.. how do I enable this feature to the xml pull parser Feb 27 14:19:24 it is safe to pass String variables through Intent's putExtra(), right? Feb 27 14:19:58 safe? Feb 27 14:20:01 t432, I've done that, but I don't know how safe it is... I mean, it's as safe as calling a method ... what is your concern? Feb 27 14:20:31 t432: what exactly are you asking? Feb 27 14:21:08 good morning, lov Feb 27 14:21:25 Hi Feb 27 14:21:27 * Esox is new here Feb 27 14:22:46 DammitJim: Well.. I came across an article that describes the Parceable Interface - not sure when to use which.. Feb 27 14:23:20 Looking for some feedback on a game I made. Not sure if it's allowed to post the link here, so please PM for market link if you're up to giving some feedback Feb 27 14:23:22 http://developer.android.com/reference/android/os/Parcelable.html Feb 27 14:24:21 again, the question, is what do you need to do Feb 27 14:24:38 not sure why you wouldn't be allowed to post the link Feb 27 14:24:52 I need to pass a couple of String Variable from one activity to another... Feb 27 14:24:53 (hint: post it anyway, see what happens! walk on the wild side!) Feb 27 14:24:56 Please don't advertise Feb 27 14:24:56 hey guys for android development is it necessary to have ones device rooted? Feb 27 14:25:03 Don't want to get kickbanned on my first visit here :P Feb 27 14:25:10 no one is looking Feb 27 14:25:12 dooo eeeeet Feb 27 14:25:17 eagles0513875, no Feb 27 14:25:18 https://market.android.com/details?id=com.rickboerebach.android.binarysudoku Feb 27 14:25:26 Feedback is welcome! :) Feb 27 14:25:35 will check it out on my lunch break Feb 27 14:25:36 eagles0513875, just make sure you enable Development in Applications Feb 27 14:25:47 eagles0513875: no, unless you have one of the (now) rare devices which don't allow usb debug / out of market apps. There were some on AT&T when it first went to android. Feb 27 14:25:48 Thanks storkme :) Feb 27 14:25:48 DammitJim: :D ok Feb 27 14:26:20 t432, I'm pretty sure you can just use putExtra... it is simple and pretty reliable Feb 27 14:26:34 /k storkme >:( Feb 27 14:26:42 DammitJim: ok :) Feb 27 14:26:42 Esox: thanks for asking first, anyway. Feb 27 14:26:46 I honestly have only used Parcelable when I'm trying to pass data between a service and an activity, but that's just me... please someone correct me Feb 27 14:26:58 i am a bad influence Feb 27 14:26:59 :) Feb 27 14:27:15 t432: yes, it is "safe" to pass strings via intents. Feb 27 14:27:33 t432: bear in mind that you'll be making copies of the string, so you won't actually have the same references, but since Strings are immutable this shouldn't be a concern. Feb 27 14:27:50 lov: ok Feb 27 14:28:32 what is the advantage of rooting ones device DammitJim Feb 27 14:28:43 lov, feedback on my game is welcome btw ;) Feb 27 14:28:48 eagles0513875, you can ask that @ #android-root Feb 27 14:28:56 Just reached 5K downloads today Feb 27 14:29:07 Uploaded about a month ago Feb 27 14:29:30 lov, what do you think is the best way to contact Reto Meier? I posted a question to the google development android forum on Thursday, but haven't gotten a response Feb 27 14:30:47 Got reviewed on xda-developers too Feb 27 14:30:52 DammitJim: probably email. Feb 27 14:31:08 DammitJim: maybe Google+? Feb 27 14:31:59 man, I know this is off topic, but do you guys have a personal google+ account vs a professional? I'm afraid he is going to hunt me down Feb 27 14:34:04 and kill you? Good lord. Feb 27 14:34:19 DammitJim: the google policy is that there are no fake G+ accounts, and they're terminated mercilessly. Feb 27 14:34:29 DammitJim: you can always send a post to him and only him, of course. Feb 27 14:34:55 lov: I'm subclassing the "Application Class" to save the network data e.g. Socket to make the connection available to multiple Activities. I have a standard java setters/getters..my concern is that when the application goes to the background e.g. phone call the state may be lost. If true is there a way to prevent this? Feb 27 14:35:37 t432: A) use a service for this, don't subclass Application Feb 27 14:35:47 B) maybe the service should be a foreground service Feb 27 14:36:17 I see... Feb 27 14:36:19 I emailed him Feb 27 14:36:40 let's see what he says... if he gets mad, I'll tell him you sent me to him :D You guys are buddies anyway, aren' you? Feb 27 14:36:51 what exactly are you telling him? Feb 27 14:37:00 "Fuck you I hope you get computer aids" won't get a response Feb 27 14:37:26 My question about submitting a latitude longitude to getLocationFromName and returning different coordinates Feb 27 14:37:38 oh. Why would he be mad? Feb 27 14:37:48 I also sent him a link to my posting in android-platform Google Group Feb 27 14:37:58 also, did you verify with the iOS/web developers that they aren't doing some sort of pre-processing? Feb 27 14:38:02 I don't know... God knows how many emails about android he gets? Feb 27 14:38:13 I'm 99% certain that you're just snapping to the closest location on a road from the lat/lon you give Feb 27 14:38:26 did you actually make a test case with multiple platforms to verify this behavior? Feb 27 14:38:45 Anyone here who played around with the 4.0 design yet? Feb 27 14:38:45 lov, I did verify that and they showed me it's all done automatically (basically... it checks before submitting), so the validation is done automatically Feb 27 14:38:52 DammitJim: perhaps he has a twitter account... Feb 27 14:39:03 t432, he does, but I don't Feb 27 14:39:11 lov, I did create a test case Feb 27 14:39:16 http://groups.google.com/group/android-platform/browse_thread/thread/0b4a8772247bed78 Feb 27 14:39:24 that's the snippet of the test Feb 27 14:39:28 Its real easy to get one. Feb 27 14:39:57 t432, It's all good... he has a Google+ account and I just emailed him Feb 27 14:40:35 Anyone here going to mdevcon 2012 (http://mdevcon.com/)? Feb 27 14:40:52 DammitJim: what I meant was actually create a project using JUnit or something Feb 27 14:41:02 basically create something that can be compiled and run and verified against Feb 27 14:41:11 oh Feb 27 14:41:40 I would have emphasized that the issue isn't so much that you're getting different results as it is that you're getting different behavior between iOS and Android. Feb 27 14:42:04 lov, how's the perforce going? Feb 27 14:42:07 good point, lov 'cause iOS also uses Google's API, right? Feb 27 14:42:32 canadiancow|work: I hear he's enjoying it Feb 27 14:42:53 canadiancow|work: You use G+. Feb 27 14:43:02 thats why i ask :P Feb 27 14:43:05 lov, which country are you from? Feb 27 14:43:20 DammitJim: the point is that the Geocoder is basically sending the location to the server, which is returning information. It does little/no processing on its own Feb 27 14:43:40 DammitJim: meaning that the behavior for iOS and Android should be essentially the same, since the only thing that is platform depending is a little bit of post-processing of the results. Feb 27 14:43:56 DammitJim: meaning that it's possible that their SERVER gives different results depending on what platform it is being used for Feb 27 14:43:59 I agree, lov... I'll add that Feb 27 14:44:01 DammitJim: which is BAD. Feb 27 14:44:09 (unless they're doing this for some licensing reasons or w/e) Feb 27 14:44:13 Esox: USA Feb 27 14:44:24 canadiancow|work: then you know exactly how it is going. Feb 27 14:44:30 Nice Feb 27 14:44:31 hey, another question (nevermind previous one ;p) do i need contentprovider if i only need to store data inside my application? can i just use my databaseHelper inside service? Feb 27 14:44:32 :P Feb 27 14:45:02 hey guys, I'm writting an ap right now. I want to put admod into it, meaning I have to use the api 14, not api 8. I'm not writting this for tablets, will I run into any issues? Feb 27 14:45:04 duo_: you can probably just use a databasehelper. the content provider is meant for simplifying access. Feb 27 14:45:13 L4nce0 Feb 27 14:45:22 Where does it say you need 14? Feb 27 14:45:59 Esox: the api that you compile against doesn't determine the minimum platform you can run on. Feb 27 14:46:01 Content providers can help provide a simpler API though Feb 27 14:46:02 er Feb 27 14:46:02 L4nce0: ^^ Feb 27 14:46:06 solution in google, I get an error when I plug in the admod xml into the manifest. one sec~ Feb 27 14:46:30 L4nce0: download the API 14, use that as your build target. You can keep your minSdk and targetSdk levels in your manifest the same. Feb 27 14:46:31 error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation| Feb 27 14:46:31 screenLayout|uiMode|screenSize|smallestScreenSize'). Feb 27 14:46:35 yeah yeah yeah Feb 27 14:46:39 I wrote an app that just uses the DB, it's kinda dirty right now. And next update I'll probably start reworking it to use the providers Feb 27 14:46:41 ah okay Feb 27 14:46:46 L4nce0: the api that you compile with doesn't affect the minSdk and targetSdk that you set. Feb 27 14:47:01 lov, then whats the point? Feb 27 14:47:21 [15:45] Esox: the api that you compile against doesn't determine the minimum platform you can run on. Feb 27 14:47:24 hm, ok, thanks, i'll try without contentprovider first then. Feb 27 14:47:25 That was exactly my point Feb 27 14:48:29 I think I get it. So I'm just compiling it with new libraries, but since I only added admob, and included it's library, it doesn't effect the rest, ja? Feb 27 14:49:01 Yes Feb 27 14:49:15 L4nce0: the sdk targets that you download are just jars that you're compiling against. Feb 27 14:49:21 L4nce0: you need newer ones to link against newer apis Feb 27 14:57:19 can i somehow get logcat to display the "... 20 more" entries from crashes? Feb 27 14:57:42 They're there, above the caused by line Feb 27 14:59:53 holde: if your stacks are truncated, it is because the jvm truncated them before it emitted them to the logs. Feb 27 15:03:42 Is there any way to have a global onPause method for an app? Feb 27 15:04:41 sure, just make a subclass from activity and use that as a superclass for the rest Feb 27 15:06:35 Snuffel: what? Feb 27 15:07:48 canadiancow|work: what? It's a reasonable approach. Feb 27 15:07:57 I guess I want something like onDestroy but for when the app goes out of view Feb 27 15:08:17 No matter what view is active, they all need to call the same onPause stuff Feb 27 15:08:18 thoradam: I'd strongly recommend reading the Activity lifecycle docs closely. they describe exactly what happens when. Feb 27 15:08:27 thoradam: .... right. See what Snuffel said. Feb 27 15:08:34 subclass Activity, have your activities be subclasses of that. Feb 27 15:08:43 sorry, my question was for thoradam, not Snuffel Feb 27 15:08:49 but has since been answered Feb 27 15:08:53 Esox: I just took a look, pretty neat. Feb 27 15:08:56 Yeah I'll try that, thanks Feb 27 15:09:06 Thanks :) Feb 27 15:09:08 Esox: I like the clean design. There are a couple of minor UI flaws. You should also take a look at the ActionBar. Feb 27 15:09:21 Yeah, currently working on a new design Feb 27 15:09:25 With a designer Feb 27 15:09:44 I'd recommend some tutorial levels to get users up to speed; I had to reread the rules before I realized what mistake I made. Feb 27 15:13:15 hm, i wonder: where do i find a list of fonts included with the android platform i target? Feb 27 15:13:37 lov, yeah, added that to my todo list already. heard that suggestion a few times Feb 27 15:13:41 Can I run MyLocationOverlay at a service? Feb 27 15:14:06 I'm developing a tracker service. Feb 27 15:14:30 And GoogleMaps have positions enhacements, like Wi-Fi, antenna, etc Feb 27 15:15:00 lov thanks. Feb 27 15:15:31 thanks for the rating/comment btw lov/vol :) Feb 27 15:17:04 how can I transform a uri pointing to a local file on external storage (content:// ..) to a path that ExifInterface can handle? Feb 27 15:17:47 lfamorim: you can't run the overlay as a service, but you can have the overlay get information from a service. Feb 27 15:18:00 lfamorim: register your overlay with the service for callbacks or something Feb 27 15:18:07 lfamorim: just make sure to deregister it when it's no longer visible! Feb 27 15:19:27 Bah.. I need to parse xml that may or may not have invalid characters (like &) in it.. What do I do? :| Feb 27 15:19:40 Esox: I'm also not sure that OpenFeint adds anything except the need for an Internet permission and size :P Feb 27 15:19:54 Esox: that said, I'm of the opinion that people just jam in openfeint whether it makes sense or not. Feb 27 15:20:27 Ah I added it for whoever wants it Feb 27 15:20:31 It's desabled by default Feb 27 15:21:10 lov Feb 27 15:21:11 http://imgur.com/KcKq3 Feb 27 15:21:19 This is concept art for a future update Feb 27 15:21:34 right, I just don't think it's necessary at all. Then again, I think that comparing sudoku speeds is like comparing minesweeper times :P Feb 27 15:22:45 Esox: the shape of the 1/0 buttons reminds me of testicles :P Feb 27 15:22:54 LOL Feb 27 15:23:07 I'd just remove the clear button altogether and make it a menu option of some kind Feb 27 15:23:18 hmm... that binary sodoku can't be solved... Feb 27 15:23:22 I'm not sure what that pause button peek image is Feb 27 15:23:42 Why can't someone friggin' support a simple format for GPS logging, seriously Feb 27 15:23:58 Everyone is using KML or GPX. Why not just a binary serialization of the lat, lon, alt, and time? Feb 27 15:24:10 lov, my 'designer' made this Feb 27 15:24:13 I want to make this, but my god I don't want to install eclipse :p Feb 27 15:24:15 where's that xkcd about standardized formats? Feb 27 15:24:15 Based on suggestions Feb 27 15:24:25 JNZ: you can communiate with the emulator via telnet. Feb 27 15:24:42 JNZ: There are really only three formats Feb 27 15:24:45 lov: I have it working in NetBeans, but the emulator hangs and won't play nice. It's very very slow. Feb 27 15:24:58 well, I can't help you with netbeans, sorry. Feb 27 15:25:01 lov: Frankly, I'd just rather do this in C and not Java :;p Feb 27 15:25:08 oh pah. Feb 27 15:25:11 GPX, KML and TCX, right? All of them supports more than just the coordinates. THey have timestamps, labels, prescicion information etc. Feb 27 15:25:20 loke: That's the problem. Feb 27 15:25:20 http://developer.android.com/sdk/ndk/index.html Feb 27 15:25:23 take this link and never bother us again :P Feb 27 15:25:32 Oh why so mean. Feb 27 15:25:40 sorry Feb 27 15:25:47 Just because I don't want to sit down and learn Java, you gotta get all mad :p Feb 27 15:25:55 u mad? Feb 27 15:25:56 lov, you have an example? Feb 27 15:25:59 alright, alright, you're right. Feb 27 15:26:03 I'm being the jerk here. Feb 27 15:26:05 jnz: why is it a problem? The formats are quite straightforward, xml-based. Feb 27 15:26:06 lol Feb 27 15:26:20 lov: At least I didn't come in saying "JAVA SUCKS OMG" or something. Feb 27 15:26:24 at least@ Feb 27 15:30:59 Meh. I might just go buy a GPS receiver and an arduino :p Feb 27 15:31:27 JNZ: Instead of parsing a TCX file, which is so trivial you can do it in 10 lines of code...? Feb 27 15:31:52 I don't think you're seeing my point. Feb 27 15:31:59 There's TOO MUCH DATA in the XML formatted stuff. Feb 27 15:32:04 JNZ: so? Feb 27 15:32:16 I don't care about tags, orientation, etc. I just care about the latitude, longitude, altitude, pressure, and time. Feb 27 15:32:18 JNZ: juts filter it out. That's one single selector in XPath Feb 27 15:32:30 loke: I need to log like 20 days of data. Feb 27 15:32:31 One line of code to get rid of it Feb 27 15:32:40 when I have forced hardware acceleration on in debug setting, my WebViews display everything rendered in white, I add android:hardwareAccelerated="false" to the Manifest, but still it renders in white Feb 27 15:32:49 until i switch it off in debug settings Feb 27 15:33:27 any other way around this problem, incase some users somehow forced the HW forced mode in debug settings? Feb 27 15:33:33 loke: And I really hate parsing XML and I don't want to learn Java. Feb 27 15:33:47 So my options are C or C++ or using C# and paying $200 for monodroid or whatever. Feb 27 15:34:27 JNZ: Man, that was the most lazy thing I've heard in quite some time. Feb 27 15:34:33 Please, don't waste any more of my time. Feb 27 15:34:42 I don't want to learn Java and thus I'm lazy. Feb 27 15:34:47 Yes Feb 27 15:34:59 I have no reason other than for this particular project, to learn Java. Feb 27 15:35:19 JNZ: might find a nice dev to write the code for yolol Feb 27 15:35:36 It's cheaper, that's for sure. Feb 27 15:35:56 thing is im total noob to droid dev but not java sadly : Feb 27 15:36:00 :( Feb 27 15:36:37 I do a lot of weird low level stuff, that's about it. Feb 27 15:37:02 JNZ: this might help you at least with java code that you could adapt to suite your needs http://www.seas.gwu.edu/~simhaweb/java/xml/xml.html Feb 27 15:37:38 eagles0513875_: Well, the _primary_ complaint with the XML stuff is that it's just a lot of text. Feb 27 15:37:45 Most of it is not data, but format overhead. Feb 27 15:38:02 I'm going to also need to process this data at some point, and that's going to be in a huge volume. Feb 27 15:38:07 So I want it small and quickly parsable. Feb 27 15:38:35 XML is cool for some stuff, don't get me wrong. But in this case it's problematic. Feb 27 15:38:51 JNZ: what exactly is the goal of this projec Feb 27 15:40:35 I'm making high resolution terrain models and monitoring a couple of things in the environment for studying sound in mountainous areas, it's two projects really Feb 27 15:41:01 what kind of data are you wanting to store and eventually analize Feb 27 15:41:03 analyze Feb 27 15:41:19 All of it. The environment stuff is already done. But I wanted a quick solution for the GPS stuff. Feb 27 15:41:31 So all I need is air pressure, location, and time. Feb 27 15:41:37 From the android device Feb 27 15:41:48 JNZ: if you already know C#, you practically know Java. Feb 27 15:41:49 well im as green as it comes when to android dev Feb 27 15:41:54 C# is just Java with the benefit of 10 years hindsight Feb 27 15:42:00 exactly syntax of C# is exactly the same Feb 27 15:42:04 anyhoo Feb 27 15:42:24 JNZ: What exactly are you trying to do? Are you trying to use the emulator to verify your behavior? Have you considered using a Mock Location Provider? Feb 27 15:42:24 lov: It's a matter of learning Java, the Android SDK, a new system, and a new environment. Feb 27 15:42:34 I don't want to use an emulator at all really. Feb 27 15:42:53 I want an application on my phone that throws the position into a file ten times per second Feb 27 15:43:24 Maybe even configurable (milliseconds of delay) Feb 27 15:43:26 do you think an arm based phone can keep up with the amount of data though? Feb 27 15:43:32 Yes. Feb 27 15:43:40 eagles0513875_: uh.... Feb 27 15:43:46 eagles0513875_: are you from 1995? :P Feb 27 15:43:50 lol Feb 27 15:44:09 JNZ: the GPS location data comes at most once a second, no matter what you request. Feb 27 15:44:09 lov: i have an htc desire hd and thats single core i see my friends htc sensation and it seems way more performant then mine Feb 27 15:44:22 eagles0513875_: .... ok, awesome story. Feb 27 15:44:24 lov: That's annoying. Feb 27 15:44:42 But it shouldn't be too bad. Feb 27 15:44:55 I'll have to cross reference and interpolate the data is all. Feb 27 15:45:14 Which will add overhead but it's cheaper than buying a real-time tracking system. Feb 27 15:45:31 JNZ: it's basically a hardware limitation. If you use the adk and use your own tracker hardware, you could certainly do faster. Feb 27 15:45:44 JNZ: I've certainly never seen it come faster than once a second from the baseband Feb 27 15:46:34 Depends on what kind of GPS system you're using really. Feb 27 15:46:38 anyhoo, what exactly are you going to be running this on? Some custom beagleboard? Feb 27 15:46:49 A phone. Feb 27 15:47:07 lov: ^ hence why my comment if it will keep up Feb 27 15:47:27 The data logging thing for the GPS can be done on my persons. The other thing is a custom system. Feb 27 15:47:35 how can i download and sync apps to an htc phone ?? Feb 27 15:47:35 Which monitors the environment continuously. Feb 27 15:50:06 Orangevapor: http://developer.android.com/guide/developing/device.html http://developer.android.com/guide/developing/building/building-eclipse.html Feb 27 15:50:27 Orangevapor: if you're not doing app development, please go to #android-root Feb 27 15:53:03 anyone ever encountered: "Can't convert to dimension: type=0xXX"? google isn't very useful :( Feb 27 15:53:16 I'm trying to get an ImageView to properly support exif rotation data Feb 27 15:53:28 but it completely ignores whatever I put in the matrix passed to setImageMatrix Feb 27 15:54:27 what's the deal again with cameras? All devices < eclair are guaranteed to have one? Feb 27 15:55:37 or rather, how can i check if a camera is available on 1.6 Feb 27 15:57:11 osxorgate: PackageManager#hasSystemFeature(PackageManager.FEATURE_WHATEVER) Feb 27 15:57:20 probably like that Feb 27 15:57:32 canadiancow yeh i found that but it's api version 5 Feb 27 15:57:44 if you want some real advice, drop 1.6 :P Feb 27 15:57:48 but i recall something like all devices used to have to have cam Feb 27 15:57:56 yeh contemplating that ;0 Feb 27 15:57:57 osxorgate, it's possible Feb 27 15:58:05 1.6 is like...0% of users Feb 27 15:58:31 0.6+1.0 in fact Feb 27 15:58:45 on your app? Feb 27 15:58:57 according to d.android.com Feb 27 15:59:05 i can tell you that both my personal app and my work apps show people are running much higher versions than d.android.com says Feb 27 15:59:12 if d.android says 10%, i find its more like 5 Feb 27 15:59:22 hm good point lemme check my own dashboard Feb 27 16:00:20 then again if you don't include all versions, your stats will differ Feb 27 16:00:38 1.4% on 1.6 it says Feb 27 16:01:45 i guess i can check if it's eclair and otherwise use the trick on d.a.c and do Camera.open() Feb 27 16:01:46 we supported 2.1+ Feb 27 16:01:54 so in theory, our 2.1 numbers would be higher Feb 27 16:02:01 but they were much loer Feb 27 16:11:50 I have a 2-step login: first select a user name from a listview and then enter a pincode. I guess it makes sense to run both views in a single Activity, but what widget is generally proposed for this? Atm I use a viewflipper and it does what I want (after overriding the back button handler), but is this the best way to do it or is there a more suitable widget for this? Feb 27 16:18:06 SimonVT that ant stuff for a .paid is working quite well :) Feb 27 16:18:09 i tweaked it a bit Feb 27 16:18:14 yay ^_^ Feb 27 16:19:05 http://pastebin.com/L82JCYqV Feb 27 16:19:18 that should support com.whatever.package.R.id.something Feb 27 16:19:38 i had to add an import my.base.package.R; to a class in my.base.package Feb 27 16:19:57 also had to change something in a provider since you cant have two apps with same provider authority Feb 27 16:20:26 Yeah, I moved everything out of the base package to get around that Feb 27 16:21:18 not really an option for us Feb 27 16:21:21 As well as use another ant target for filling out authorities based on a properties file Feb 27 16:21:21 i mean i guess it is Feb 27 16:51:07 how do you open your own app from a website? Feb 27 16:51:16 I read that url schemes weren't encouraged Feb 27 16:51:29 you have to use intents. but you can't really do that from a website Feb 27 16:51:54 how do the existing youtube and maps.google ones work? Feb 27 16:52:01 do you supply a regex for matching URLs? Feb 27 16:52:04 yes Feb 27 16:52:18 in your you specify the host/path/scheme Feb 27 16:52:34 neato Feb 27 16:52:47 the youtube one probably looks something like Feb 27 16:53:21 so when the device goes to that URL the app opens instead? Feb 27 16:53:27 (side note: I wish they'd respond to their mobile format, http://youtu.be as well) Feb 27 16:53:28 (if installed, of course) Feb 27 16:53:39 poppiez: well it asks the user if they want to use Browser or YouTube to open the URL Feb 27 16:55:08 evancharlton: but that's the other way around. what if I want to redirect a user to my app directly like on iOS? Feb 27 16:55:22 just redirect to whatever:// and the app will launch Feb 27 16:55:34 evancharlton, are you using the built-in browser or chrome? Feb 27 16:55:48 I noticed that chrome doesn't fire off intents on redirects whereas the built-in browser did Feb 27 16:56:42 chrome might not be asking packagemanager "Who can handle this?" like the built in browser does Feb 27 16:56:54 yeah that's what I assume Feb 27 16:57:01 I keep meaning to file a bug but I'm sure someone already has Feb 27 16:57:06 I'm trying to get a device back from the MonkeyRunner.waitForConnection(). I already have an emulator running, but the monkeyrunner prompt seems to be waiting forever. Any ideas why it wouldn't connect to the emulator? Feb 27 16:57:37 JakeWharton: yeah I've noticed that, too. Please file a bug at http://crbug.com/ Feb 27 16:58:56 poppiez: well, for that you'll need to create a URL that the browser won't handle. Typically this is done via a custom scheme. The convention is to prefix your scheme with "vnd." So you could use something like vnd.poppiez://my-app Feb 27 16:59:25 and then set your to be e.g. Feb 27 16:59:26 so rumours about the samsung galaxy s III are a 460dpi screen Feb 27 16:59:27 nice Feb 27 16:59:46 evancharlton: wouldn't it be vnd.myapp://? Feb 27 16:59:52 canadiancow|work: Integer.MAX_VALUE dpi Feb 27 16:59:58 I find it difficult to believe that there is actual value to 460 dpi if that's really 460 as in 460 rgb pixels per inch Feb 27 16:59:59 lol Feb 27 17:00:00 poppiez: does it matter? Feb 27 17:00:05 evancharlton: no :) Feb 27 17:00:11 im calling this a false rumour Feb 27 17:00:17 android has no support for sxhdpi Feb 27 17:00:26 and not just something like 460 dots, never mind which color Feb 27 17:00:32 evancharlton: thx a lot :) Feb 27 17:00:32 or would it just be xxhdpi Feb 27 17:00:34 poppiez: I'd use the first so that you can reuse the scheme for other apps you make without polluting the global namespace but in practice it doesn't matter Feb 27 17:03:16 hmm, actually, super-high dpi might be interesting if it means you can just disable expensive things like antialiasing or anisotropic filtering Feb 27 17:03:58 canadiancow|work: and then xxxhdpi for devices that ship with MiKandi Feb 27 17:04:06 :D Feb 27 17:04:28 I pulled the framework-res.apk and i'm trying to edit the status bar, but there is no status_bar.xml in layout :/ Feb 27 17:04:41 I also classouted classes.dex and there's no statusbar folder. Feb 27 17:04:43 Anyone know what's going on? Feb 27 17:05:47 muffunz: try #android-root, pretty much app-dev only here not rom mods Feb 27 17:06:08 muffunz: please go to #android-root Feb 27 17:07:22 evancharlton: good point. thx a lot! Feb 27 17:08:50 hi everyone. I wanna start developing on Android. Can someone recommend a page with good tutorials? Feb 27 17:09:10 d.android.com? Feb 27 17:09:38 well that's quite basic stuff Feb 27 17:10:02 you did ask for tutorials... have you run through all the stuff on the resources tab? Feb 27 17:11:01 err no. just the tutorials. will take a deeper look Feb 27 17:13:01 I remember stumbling across a page that had loads of coding tutorials for like every platform. just can't remember the name. they had nicely explained example projects... Feb 27 17:13:52 evancharlton, http://crbug.com/115897 Feb 27 17:16:07 bah Feb 27 17:16:17 change something last minute and forgot to reread Feb 27 17:17:43 curse you google code bug tracker for not letting me edi Feb 27 17:17:43 t Feb 27 17:19:10 JakeWharton fix my bug Feb 27 17:19:17 i did Feb 27 17:19:47 ok thanks Feb 27 17:19:52 fixed, pushed, released, partied like it's 1999 Feb 27 17:20:25 can someone point me to a good tutorial to link a program to an external db? mysql preferably. I want to learn how to build a program that pulls all its data from an external db, not local sqlite Feb 27 17:20:43 that's not an easy task Feb 27 17:21:09 really? but is it a hard task or somewhere in between? Feb 27 17:22:01 i see all these apps like careerbuilder and apartments.com and I'm sure that is what they are doing, right? Feb 27 17:22:17 short version? set up a webserver, develop an API around the data you want, write a local consumer of that API, implement some sort of authentication between the two Feb 27 17:22:22 they are talking to a web service/API Feb 27 17:22:23 Poohba: Most people probably use a rest or other web api to pull individual transactions Feb 27 17:22:34 plus a local cache, normally Feb 27 17:22:36 they have a part that gets your location and then from that it allows you to search for jobs in ur current location but it has to talk to an external db right? Feb 27 17:22:48 it talks to their web service Feb 27 17:23:00 when you say "external DB" you mean a server on the interwebs, right? Feb 27 17:23:17 Leeds: yes Feb 27 17:23:18 it just says "hey give me everything around 43.234545, 23.554323" and gets a list back in JSON or something Feb 27 17:23:30 outerweb Feb 27 17:23:36 ok. so I need to create an API Feb 27 17:24:16 ok. i get the idea. Feb 27 17:24:38 Poohba: is this YOUR database/server? Or are you going to be referencing one that you don't control? Feb 27 17:24:43 now, do you guys know of any starting block examples? Feb 27 17:24:46 if you don't control the server, then you're limited to what's actually exposed. Feb 27 17:24:49 christ Feb 27 17:24:52 lov: it will be my own db/server Feb 27 17:25:07 do a google search for "webservice" or something :| Feb 27 17:25:11 Alrighty, I'm new to android development, wanting to create an app that allows you to connect to the phone via browser, so it'll need a built in webserver of some sort. The google's lead me to i-jetty, is that something people have had good experiences with? Feb 27 17:25:25 i've been looking on android development site but not finding what i'm looking for Feb 27 17:25:36 Poohba: that's because what you want isn't android specific Feb 27 17:26:01 you want to A) create a webservice on your internet based server somewhere that will transform requests into responses with reasonable, useful data. Feb 27 17:26:04 A is not Android specific. Feb 27 17:26:14 but i was looking for external db access. i kept finding things like sqlitedb and I can do that and have done that for other tests but that doesn't help me here Feb 27 17:26:16 B) Have your app query this server and provide it with requests, then parse the responses Feb 27 17:26:21 B is really kind of a general thing Feb 27 17:26:26 ok, so. Feb 27 17:26:32 do you understand what we have been saying, AT ALL? Feb 27 17:26:40 lov: yes Feb 27 17:26:42 i've got it Feb 27 17:26:47 Poohba: what do you mean external db access? On a server or on an SD card? Feb 27 17:26:47 Poohba: that's the thing, you're *not* looking for 'external DB access' - you're looking for running a web service/API, and accessing it from Android Feb 27 17:26:49 you can, technically query the DB via the interwebs directly but this is horribly insecure and a recipe for pain and failure. Feb 27 17:27:01 ^+! Feb 27 17:27:04 1* Feb 27 17:27:12 generally this involves exposing the DB's service on a public port Feb 27 17:27:23 this is guaranteed to get attacked by script kiddies repeatedly until it yields a login. Feb 27 17:27:24 Leeds: yes, that is why i wasn't able to find anything before. so now i know better what to look for. Feb 27 17:27:31 please, please, PLEASE do not do this. Feb 27 17:27:33 Poohba: good stuff :) Feb 27 17:27:40 use a webservice that interfaces with your database. Feb 27 17:27:56 have a webserver (rails or something) act as a proxy (and all that fancy stuff) for your data Feb 27 17:28:06 lov: i was hoping i could easily turn a php script into a program. i see that isn't the case Feb 27 17:28:22 I don't even know how to respond to that. Feb 27 17:28:35 Poohba: learn what you're even doing first. Feb 27 17:28:40 I don't nesisarily need a webserver, but perhaps xmpp? I'm needing to somehow send a continual stream of data to the android device, both ways Feb 27 17:28:43 with tears Feb 27 17:28:47 figure out what the PHP actually DOES and HOW. Feb 27 17:28:49 lov: Remind me to never get on your bad side ;) Feb 27 17:28:51 PHP script rather Feb 27 17:29:01 Poohba: we will not help you copy/paste your way to victory. Feb 27 17:29:09 csaunders: easy, just don't talk :p Feb 27 17:29:13 ha Feb 27 17:29:14 aarobc_work: this will kill the hell out of your battery Feb 27 17:29:15 didn't expect that Feb 27 17:29:17 SimonVT: heh Feb 27 17:29:21 lol, did somebody make php that runs on android? that'd be hillarious Feb 27 17:29:36 m i a man or a muppettttt Feb 27 17:29:39 aarobc_work: let's hope not ;) Feb 27 17:29:43 Poohba: it sounds an awful lot like you've found a couple scripts and tutorials about php and mysql, and you don't actually know what they do. Feb 27 17:29:54 csaunders: doesnt matter, will be connected to huge external lithium pack Feb 27 17:30:00 you first need to figure out what PHP and MYSQL ARE and what they DO and how they work. Feb 27 17:30:05 aarobc_work: nifty. Feb 27 17:30:09 THEN worry about webservices. Feb 27 17:30:24 You could perhaps use XMPP, or perhaps some kind of push service Feb 27 17:30:27 csaunders: but I'm still not sure what the best protocols and methods to use Feb 27 17:30:31 there was an android app something or other that I was using before that would allow you to point to a script and build your program using java. i forget what that was because I haven't used or seen it in a few months but that was what I was going on Feb 27 17:30:43 >_< Feb 27 17:30:46 Poohba: that sounds terrifying Feb 27 17:30:49 I was trying to instead of use that program to build my program, build it from scratch the right way Feb 27 17:30:57 csaunders: isnt the push service somewhat delayed? this has to be nearly instant. Feb 27 17:31:04 hmmm Feb 27 17:31:07 Poohba: learn java, learn programming. Then worry about webservers. Feb 27 17:31:20 Poohba: try Unity Feb 27 17:31:20 Well... you'll probably want longpolling or something Feb 27 17:31:23 its so easy to build shit Feb 27 17:31:27 drag and mothafuckin drop Feb 27 17:31:57 They call it Rapid Application Dragondrop Feb 27 17:32:05 aarobc_work: I would say perhaps just a raw socket though, you could exhaust your available connections pretty easily :/ Feb 27 17:32:41 or... rather you could have a problem with several concurrent connections Feb 27 17:32:49 csaunders: indeed, for the requirements that's probably the easiest solution Feb 27 17:33:24 what i was using was a service by google I think but they shut it down. i can't remember. but i have enough to go on for now. Feb 27 17:33:28 thanks all Feb 27 17:33:34 app inventor Feb 27 17:33:43 aarobc_work: a socket would probably give you the most flexibility since you can do whatever. But if there's an easy to use XMPP library for android that could work Feb 27 17:33:51 just send your data as JSON or something Feb 27 17:33:52 yes Feb 27 17:33:57 that's it. App inventor Feb 27 17:34:02 Poohba: it was pretty shitty Feb 27 17:34:30 that allowed you to use my php script to connect to my db and provide the data needed. Feb 27 17:34:33 Indeed, thanks for the ideas, at least I have some places to start from now Feb 27 17:34:58 You could integrate into some google services stuff like fusion tables or something Feb 27 17:42:36 ZOMG Feb 27 17:42:36 http://androidspin.com/2012/02/27/jelly-bean-spotted-in-android-booth-at-mwc-literally/ Feb 27 17:43:06 Feb 27 17:43:12 lol Feb 27 17:43:41 * Jug6ernaut laughs at android fragmentation claims Feb 27 17:43:49 as they only come from iLame ppl Feb 27 17:44:10 Jug6ernaut, i was like you once Feb 27 17:44:20 but we have hit several isuses that only occur on moto devices Feb 27 17:44:23 or only on samsung Feb 27 17:44:29 etc Feb 27 17:44:29 that's not Android fragmentation Feb 27 17:44:32 that's OEM bastardization Feb 27 17:44:37 ^^^ Feb 27 17:44:42 what is android fragmentation? Feb 27 17:44:51 os differences problems Feb 27 17:44:53 android.app.Fragment Feb 27 17:44:56 FRAGMENTATION!!! Feb 27 17:45:08 from a developer perspective though, its jsut as bad, if not worse Feb 27 17:45:16 i would say worse Feb 27 17:45:21 supporting Android 2.1 - 4.0.3 is easy Feb 27 17:45:24 yes Feb 27 17:45:25 it is Feb 27 17:45:30 but thats not what i read "fragmentation" as Feb 27 17:45:32 supporting 2.1 - 4.0.3 with 4 OEMs making their own changes to the OS Feb 27 17:45:35 ...not easy Feb 27 17:45:51 no but the mainstream media seems only concerned about what version you're running Feb 27 17:46:19 well thats a different issue Feb 27 17:46:28 "i just bought a device running 2.2 that will never see an upgrade" Feb 27 17:46:40 go to a store and buy two devices running ICS Feb 27 17:46:41 you cant Feb 27 17:46:45 go buy ten running GB Feb 27 17:46:46 easy Feb 27 17:46:57 you can probably find a bunch running froyo Feb 27 17:47:03 it feels weird even saying froyo Feb 27 17:47:04 well that's the OEM bastardization issue yet again Feb 27 17:47:11 sure Feb 27 17:47:16 if they weren't spending 4 months to customize it, they'd have a bunch of phones out Feb 27 17:47:17 but from a consumer standpoint, who cares? Feb 27 17:47:18 and upgrades as well Feb 27 17:47:22 nobody does Feb 27 17:47:31 in fact, most consumers don't care about what version their running Feb 27 17:47:31 all they know is they cant buy the latest Feb 27 17:47:39 i don't think most know that Feb 27 17:48:08 my GFs dad is running Android 1.6 on his and he wonders why he can't play Trivalist for about two seconds and then picks up another game and never thinks about it again Feb 27 17:48:17 My brother has an Android phone - he does three things: makes calls, browses the web, and uses the Facebook app Feb 27 17:48:17 he doesn't care about Froyo, GB, or ICS Feb 27 17:48:30 Oh, and sends SMS messages Feb 27 17:49:06 anyway Feb 27 17:49:12 as a dev, i can deal with there being devices running 2.1 Feb 27 17:49:17 but the moto issues Feb 27 17:49:19 the samsung issues Feb 27 17:49:27 in opengl, I can make a texture of a given size with glTexImage2d, specifying the width, height, and NULL for the data pointer... that is, making a texture of a given size without giving it data yet. I can't seem to find a way to do this in android, as you must necessarily pass a Bitmap to textImage2d... anyone know if this is possible? Feb 27 17:49:29 yea :| Feb 27 17:49:31 i have not seen ANY samsung device that adheres to the CDD in TelephonyManager Feb 27 17:49:36 it does not adhere to the api Feb 27 17:49:39 it is actually broken Feb 27 17:49:42 texImage2d* Feb 27 17:49:49 cdd? Feb 27 17:49:59 compatibility device document? Feb 27 17:50:00 People never say Windows is fragmented, even though people go through DLL hell etc. Feb 27 17:50:00 i dunno Feb 27 17:50:08 lol Feb 27 17:50:08 Ologn, browsers too Feb 27 17:50:10 it says "you must adhere to public apis" Feb 27 17:50:13 if you want the market Feb 27 18:02:45 any idea what would make my datacenter call me two months in a row asking me if im "satisfied" Feb 27 18:03:30 a string of customer defections Feb 27 18:06:06 canadiancow|work: loneliness Feb 27 18:10:51 lov: i like your answer Feb 27 18:10:54 mikedg: yours is creepy Feb 27 18:11:06 thanks, i try Feb 27 18:11:09 i dont know why they bother though Feb 27 18:11:11 like Feb 27 18:11:16 you want to make sure i stya, give me 10% off Feb 27 18:11:17 or somtehing Feb 27 18:11:28 i have a custom view - is there a way to 'overdraw' a canvas, means using the old canvas as somekind of background? Feb 27 18:12:10 half buffering Feb 27 18:12:28 anyone knows what's the best (if any) method of delivering youtube video stream to opengl quad? Feb 27 18:12:49 we're going streaking up through the quad and into the gymnasium Feb 27 18:12:53 Feb 27 18:13:05 what Feb 27 18:13:41 my bachelor party http://east.paxsite.com/ lol Feb 27 18:13:42 i latched onto a word from a question Feb 27 18:13:48 fashioned an appropriate response Feb 27 18:14:38 the_ellipse: draw into a bitmap, save the bitmap ref, draw the bitmap onto your canvas. next time your draw method gets called, draw the bitmap first. Feb 27 18:14:56 JakeWharton lol i guess? Feb 27 18:15:02 mhh sounds good, i'll try lov Feb 27 18:15:22 the_ellipse: I'm not sure if you're allowed to just draw into dirty buffers directly w/o cleaning them Feb 27 18:15:36 Hi guys Feb 27 18:15:43 lov: i do not remember either, theres porbably some flag Feb 27 18:15:55 it's easy if you are ogling Feb 27 18:16:23 how can i get to icons of apps.. i found this Drawable icon = pm.getApplicationIcon(app); Feb 27 18:17:16 with that i get BitmapDrawable.. how to send it to a file.. like an image.. Feb 27 18:18:07 are you pirting icons? Feb 27 18:20:42 I'm trying to make my own ActionBar, designed for 2.2 devices, based on layouts, but I don't understand layouts very well... I'm trying to make it with an app icon on the left, followed by app name and two icon buttons (I'm usin ImageView for now). Here is my layout: http://pastebin.com/sc4idqmh and here is what I get: http://imageshack.us/photo/my-images/706/layoutzo.jpg/ The goal is to Feb 27 18:20:42 move the search icon to the right side, I algo tried with layout_gravity="right" on the icon, but it doesn't work. Feb 27 18:21:05 Sepho: have you looked into ActionBarSherlock? Feb 27 18:21:45 Sherlock? Feb 27 18:22:08 Yes, Holmes? Feb 27 18:22:11 so, no can do on getting youtube vids (i CAN specify which codec are those vids embeddded on particular channel) as textures? Feb 27 18:22:22 x'D Feb 27 18:22:44 Sepho: ActionBarSherlock is an ActionBar compatability layer Feb 27 18:22:50 it's probably exactly what you need :> Feb 27 18:23:00 JakeWharton: you need to super impose Robert Downey Jr's face over Android for your ABS logo Feb 27 18:23:00 Sepho, http://actionbarsherlock.com Feb 27 18:24:07 lov I was trying to do it by my own. I think for my purpose it shouldn't be too much complicated, it's just 3 icons and one textview, to learn how layouts works Feb 27 18:25:15 but the fucking layout resist me >< Feb 27 18:25:32 Sepho: you need to import the Borg Libray Feb 27 18:25:39 s/Libray/Library/ Feb 27 18:26:53 importing is futile Feb 27 18:27:20 but what's wrong with my layout? Why the search icon is still showing next to the textview? Feb 27 18:27:55 Why it's there? Cus you put it there? ;/ Feb 27 18:28:26 SimonVT I mean, why it's not showing on the right? I'm gettin crazy with layouts! Feb 27 18:28:36 Well you have a Linear Layout Feb 27 18:28:59 Linear layouts pack items as you fill them in, you probably want a Relative Layout and use alignParentRight Feb 27 18:39:34 Does anyone know how I can override a downloaded file? (question in depth: http://stackoverflow.com/questions/9469376/download-file-and-override-old-file/9469589#9469589) Feb 27 18:40:30 Ohh, override sounded confusing, you want to overwrite it? Feb 27 18:40:42 Yes. :) Feb 27 18:40:58 w mode for opening should Overwrite it Feb 27 18:41:28 but ah.. the File Object doesnt provide a mode Feb 27 18:41:59 Yes. Feb 27 18:42:28 I tried deleting it, but dont work as intended. (See StackoverFlow) Feb 27 18:43:12 Any ideas? Feb 27 18:43:25 hang on brohan Feb 27 18:45:54 a FileWriter should do the trick.. Feb 27 18:46:13 I just made a file, made a PrintWriter which wraps around a FileWriter, and I was able to obliterate a file and replace its contents Feb 27 18:47:12 holy cow! lov, so I poked the guys doing location stuff and they came clean and told me they are using this instead: http://maps.google.com/maps/geo?q=orlando,%20fl Feb 27 18:47:27 they don't use the stuff suggested in iOS for example Feb 27 18:47:46 DrPenguin: will try it. hold on. Feb 27 18:47:55 TO WHAT? Feb 27 18:49:47 DammitJim, that's because geolocation API doesn't work in iOS :) Feb 27 18:51:07 Mavrik, geolocation API isn't working in Android for my needs so I guess I'll have to do the same to be consistent Feb 27 18:51:28 mhm Feb 27 18:51:50 hold on Feb 27 18:51:51 brb Feb 27 18:55:25 oh fuck yeah Feb 27 18:55:29 JakeWharton: I fixed my bug Feb 27 19:03:27 has anyone tried out adt 17 yet? Feb 27 19:05:47 is there an eclispe for download that's already android ready ? Feb 27 19:06:24 socket: no, just get the platform runtime, add jdt + adt Feb 27 19:06:50 thanks Feb 27 19:07:11 interesting http://www.theverge.com/2012/2/27/2827692/google-building-firewall-between-android-and-motorola-after Feb 27 19:07:27 i want nfc :( Feb 27 19:07:55 "Rubin also demurred when asked if Motorola would still ship phones with custom skins and older versions of Android, saying it was up to Motorola's team." Feb 27 19:07:58 Nebraska Fried Chicken is overrated. Feb 27 19:08:08 https://market.android.com/details?id=com.fdp.rollajoint Feb 27 19:08:10 for serious? Feb 27 19:08:14 AND IT'S $2 Feb 27 19:08:30 I want a checkbox for hide-all-drug-apps-from-market Feb 27 19:08:42 Worth every penny Feb 27 19:08:49 there's also a crack one Feb 27 19:08:56 makes me sad for humanity Feb 27 19:09:15 They need a picture of Android baked Feb 27 19:16:38 Do anybody know why I get this crash? http://pastebin.com/YY941DcP Feb 27 19:17:55 canadiancow|work: damn -- I lolz'd so hard! Feb 27 19:18:06 wondering if safe to tweet it :/ Feb 27 19:18:10 that aint a crash Kake_Fisk, post your stack trace not your code Feb 27 19:18:38 It crashes because level.objPlayer is null Feb 27 19:18:42 I stated it in my code :) Feb 27 19:19:07 Did I not say post your stack trace, not your coe? Feb 27 19:19:11 s/coe/code/, seriously Feb 27 19:19:39 wtf I install this custom rom 4.0.3 and it doesn't have wifi direct Feb 27 19:19:48 I just saw what was wrong now. I never called addPlayer Feb 27 19:20:11 But I'm not sure where to find the stack trace anyways :S Feb 27 19:20:32 Kake_Fisk: from console, adb logcat Feb 27 19:20:50 Anyone her have 4.0.3 ? Feb 27 19:21:01 I have logcat open, is that the stacktrace? Feb 27 19:21:16 JakeWharton: gogo Feb 27 19:21:34 shroomyreader: I do.. but just because you have a 4.0.3 rom doesnt mean you will have a certain feature.. my rom doesnt support Face lock, for example Feb 27 19:21:59 it doesn't? Feb 27 19:22:15 but android 4.0.3 supports wifi direct Feb 27 19:22:22 so every version has to contain it no ? Feb 27 19:22:25 pfn: no it doesnt, but my phone doesnt have a front facing camera, which could be why its not in it Feb 27 19:22:40 shroomyreader: why does it have to? Feb 27 19:22:56 Oh by the wya, my Rom has wifi direct Feb 27 19:23:26 if google releases android 4.0.3 and when they say they support wifi direct Feb 27 19:23:31 all apps will count on it Feb 27 19:23:40 why wouldn't they support it ? Feb 27 19:23:48 what rom do you have ? Feb 27 19:24:55 shroomyreader: does your device support Wifi Direct? Feb 27 19:25:17 all wifi support it Feb 27 19:25:23 I'm pretty sure it does Feb 27 19:25:29 but I have an htc desire hd Feb 27 19:25:37 so I have to wait for the official rom Feb 27 19:26:07 Well prove that it does.. from what I am reading, it could be a possibility your device doesnt support it Feb 27 19:26:08 DrPenguin, oh, bummer for you then :p Feb 27 19:26:31 wifi direct is designed to run on current hardware Feb 27 19:26:33 pfn: nah its no biggie, I was hoping though that my Xoom would get it so I could test it out, but I dont see the option in it Feb 27 19:26:35 its purely software Feb 27 19:26:44 what do you have penguin ? Feb 27 19:26:50 shroomyreader: dude, prove that your device supports it, or quit yapping about it Feb 27 19:27:06 how the fuck can I prove that Feb 27 19:27:10 read the white paper I guess Feb 27 19:27:24 all wifi certified devices support it Feb 27 19:27:33 shroomyreader: also, this channel is not customer support for custom roms Feb 27 19:27:46 try #android-root Feb 27 19:27:56 oh shit I though I wasn in root Feb 27 19:27:58 god damnit Feb 27 19:27:58 sry Feb 27 19:28:00 http://www.engadget.com/2012/02/27/atandt-app-developers-pay-for-data/ Feb 27 19:28:04 ... Feb 27 19:28:08 heh, saw that Feb 27 19:28:30 did u say "wtf" like i did? Feb 27 19:28:43 i read a story last week where carriers where some carrier asked google to reign in the platform's data usage Feb 27 19:28:52 ... WTF? Feb 27 19:28:53 that made sense Feb 27 19:28:56 AT&T Feb 27 19:28:59 Wifi-direct needs firmware to support AP mode; since most phones can do that for connection sharing it should just be a supplicant-layer change, it's basically a wrapper on ap mode Feb 27 19:29:06 i thought they were in asia, hold on Feb 27 19:29:24 Did I read that right? is it saying that it will allow Devs (like us) to pay for peoples data usage of our apps? Feb 27 19:29:24 WRF?! Feb 27 19:29:26 WTF?! Feb 27 19:29:26 I have a MediaPlayer that loads a stream. I have users saying that nothing plays but it works for me on my phone and in all the emulators. Any ideas why it's not working for them> Feb 27 19:29:26 but older driver/firmware pairs like the d1 that can't speak host mode won't likely be able to do it. Feb 27 19:29:27 ? Feb 27 19:29:43 http://www.reuters.com/article/2012/01/27/us-docomo-idUSTRE80Q1YU20120127 Feb 27 19:29:48 Jug6ernaut: Hmm... looks like telcos trying to keep themselves away from being a dumb pipe Feb 27 19:30:57 DrPenguin as im reading it would be a "With this app it will not apply to your data usage" and he dev would pay a premium to say that Feb 27 19:31:10 tho Feb 27 19:31:16 idk who would want to do that(devs) Feb 27 19:31:37 SimonVT, that's the route I was going to take :) Feb 27 19:31:52 You were just slower :p Feb 27 19:31:55 Jug6ernaut: a developer would be taking a *huge* risk if they did that Feb 27 19:32:03 that's my favorite trick Feb 27 19:32:12 doesn't work using styles unfortunately Feb 27 19:32:25 but since the inflater is just a pull parser it should have no problems on any platform Feb 27 19:32:31 Yea, it's rather nice Feb 27 19:32:51 csaunders depends on the terms with att, again as i read it idk what dev would want to do that Feb 27 19:32:54 Jug6ernaut: so.. this is meant for people who have a cheapo dataplan so they can still enjoy data apps? Feb 27 19:32:54 makes no sense to me Feb 27 19:33:05 DrPenguin i guess Feb 27 19:33:11 seriously wtf Feb 27 19:33:16 idk how it would ever be cost effective Feb 27 19:33:24 I wouldnt pay extra cash for people to use my apps cause they are cheapskates Feb 27 19:33:31 lol Feb 27 19:33:35 * Jug6ernaut agrees Feb 27 19:34:00 you'd find people willing to pay Feb 27 19:34:10 lov: yeah, idiots Feb 27 19:34:15 I mean developers Feb 27 19:34:27 ll Feb 27 19:34:29 Pandora pays $100k/yr to not count against users data limits, leverages this for new customers Feb 27 19:34:33 something like that Feb 27 19:34:45 uuidof Feb 27 19:34:51 I dont understand that Feb 27 19:35:00 If your using data, then it should go against your data allotment Feb 27 19:35:11 no wonder People with unlimited plans are being discriminated against on ATT Feb 27 19:35:34 well, it's rent seeking pure and simple Feb 27 19:35:53 * Jug6ernaut hates att Feb 27 19:35:55 DrPenguin: It's ATT trying to establish a B2B relationship. It can make it easier for some companies to sell their product (such as Pandora or Grooveshark) Feb 27 19:35:55 just saying Feb 27 19:35:57 argh!! I'm gettin crazy with layouts!! http://imageshack.us/photo/my-images/864/layouto.jpg/ I want to align the last two icons (second home icon, and search icon) to the right of the layout, but I cant...! Here is my layout: http://pastebin.com/hG7tuaSN Any idea for a newbie?? :( Feb 27 19:36:13 lov I'm a mess Feb 27 19:36:19 sepho: code. Feb 27 19:36:20 Does anyone have a suggestion on booting an emulator without a lockscreen - I'd like to automate some testing with MonkeyRunner, but the lockscreen gets in the way. Feb 27 19:36:27 Sepho: did you not listen to me before when I told you you need a Relative Layout? Feb 27 19:36:30 Sepho: layout_weight Feb 27 19:36:30 Sepho: Put a weight on the textview Feb 27 19:36:35 Dragonene I tried Feb 27 19:36:41 sorry, DrPenguin* Feb 27 19:37:14 If you want more control over where widgets fall into a layout, linear layout is not the layout to use Feb 27 19:37:45 windows xp :p Feb 27 19:38:10 everythingWorks it's kde with xp theme Feb 27 19:38:29 lol, never saw something like that ;) Feb 27 19:38:42 why you don't use windows then? Feb 27 19:38:52 I dont even wanna ask why about that Feb 27 19:39:05 DrPenguin I tried to set aligment to right with a relativelayout but I can't use layout_toLeftOF over an ImageViews Feb 27 19:39:16 Sepho: ? Feb 27 19:39:41 I would use a unix system if 1) Adobe gets their products out for linux 2) Visual studio will work on linux Feb 27 19:39:50 both of those will probably never happen but i need they for daily use :/ Feb 27 19:40:15 everythingWorks it's a joke, I would never do that outrage :P Feb 27 19:40:41 wow.. what a joke. Mine wasnt a joke :p Feb 27 19:40:57 Sepho: why cant you use layout_toLeftOf for @id/home? Feb 27 19:41:10 toParentRight ;)? Feb 27 19:41:31 or something like that. Didnt use the standard layout things for a long time :P Feb 27 19:42:07 DrPenguin if I use it, then eclipse marks the android:id propety as an error, it only happens when I put layout_toLeftOf and if I delete that line, the error persists. I think it's a kind of eclipse bug or something like that Feb 27 19:42:17 then your doing something wrong Feb 27 19:42:34 everythingWorks I did, but the icons overlaps each other Feb 27 19:42:57 overlapped. Feb 27 19:43:16 sepho: You shouldnt use it for ALL views. Only for the most-right. Feb 27 19:43:33 The others which are to the left of the most-right one get toLeftOf as penguin said :) Feb 27 19:44:58 look, this code shows an error to me: http://pastebin.com/TkqB6fK7 Feb 27 19:45:12 using relativeLayout and that properties Feb 27 19:46:06 whats the error Feb 27 19:46:34 Sepho: it should be @+id/home and @+id/search Feb 27 19:46:41 not +@id/home and +@id/search Feb 27 19:46:49 romainguy_: I was wondering if that had something to do with it Feb 27 19:47:20 shit Feb 27 19:47:27 ^_^U Feb 27 19:48:24 arg, solved! Feb 27 19:48:39 thanks DrPenguin, romainguy_ everythingWorks Feb 27 19:48:54 and sorry for my english =( Feb 27 19:49:08 =) Feb 27 19:50:21 What do you think, how widespread will nfc be in the future? Feb 27 19:50:32 I really really like the technology but which it would be more commonly used. Feb 27 19:50:50 considering how technology is thesedays, people wont bat an eye at it until the Almighty Apple uses it Feb 27 19:50:59 then people will be like OMGWEHAZNFC Feb 27 19:51:30 canadiancow|work, backport that Spinner yet? Feb 27 19:52:12 JakeWharton: github is officially making things difficult for me, telling me not to use the api to do X when that specific function was designed to do X Feb 27 19:52:26 but, meh Feb 27 19:52:26 v3 api? Feb 27 19:52:28 yes Feb 27 19:52:32 specifically Authorizations Feb 27 19:53:10 I'm using it with AccountManager to authenticate users, allowing revokation of the authorization from either GitHub or Android's Account settings Feb 27 19:53:11 you said you just made an account manager to consume their oauth right? Feb 27 19:53:31 yeah, that makes sense Feb 27 19:53:52 their oauth doesn't provide a mobile flow, so it makes for an ugly login process when I do it the "correct" way Feb 27 19:55:15 so, I was told not to use the Authorization API to create new tokens, when there is a function to do just that documented Feb 27 19:55:19 * EddieRingle shrugs Feb 27 19:56:18 told by them? Feb 27 19:56:24 I emailed support Feb 27 19:56:45 asking them if it was possible to supply parameters for the app object along with the authorization creation request Feb 27 19:58:41 SimonVT, this looks good I think Feb 27 19:58:48 are you using any action providers or action views? Feb 27 19:58:53 Nope :F Feb 27 19:59:04 we'll let canadiancow|work test that Feb 27 19:59:14 Yeah Feb 27 19:59:16 If it breaks, he can fix it Feb 27 19:59:17 :P Feb 27 19:59:20 agreed Feb 27 19:59:36 That's why I left the old code in, cus I hadn't tested it on e.g. the samples Feb 27 19:59:54 I tried them all Feb 27 20:00:01 ...then I realized they do everything through code Feb 27 20:00:06 haha Feb 27 20:00:11 Good point Feb 27 20:02:13 first day away from the job, coworkers already screwing things up Feb 27 20:02:20 do you guys work for companies or mainly develop/publish your own apps? Feb 27 20:03:09 i say never push to master, only dev Feb 27 20:03:20 not only do they push to master, but they push the same changes in new commits to dev as well Feb 27 20:03:25 JakeWharton wut Feb 27 20:03:26 so they won't be able to be merged Feb 27 20:03:31 idiots Feb 27 20:03:48 canadiancow|work, you use action providers and all that voodoo right? Feb 27 20:03:50 from XML? Feb 27 20:04:05 instructions are no substitute for competence Feb 27 20:04:29 I suppose Feb 27 20:04:30 no Feb 27 20:04:32 i do not Feb 27 20:04:46 looks like a menu inflation sample is in order then Feb 27 20:04:56 also.. it is not your problem anymore ;-) Feb 27 20:05:39 devtekbeta: i work for Steve Jobs Feb 27 20:05:40 yeah that too Feb 27 20:05:40 i had a friend say that it's good news because then i can charge them 5x what I made as an employee to do consulting in 3 months when it needs fixed haha Feb 27 20:05:53 in ActionBarTabNavigation and ActionBarTabPager in the Support4Demos package that comes with sherlock, the tabs are build programmatically. Is there a way to do it in XML? Feb 27 20:06:07 built* Feb 27 20:06:08 an insurance agent in the area wants to connect on linkedIn … w t f Feb 27 20:06:32 g00s, the guy I buy knock-off hockey jerseys from illegally in Hong Kong tried to connect on LinkedIn last month :P Feb 27 20:06:43 haha Feb 27 20:07:00 I mean, I guess we're business partners in a way... Feb 27 20:07:12 i actually prune my network for the right kinds of connections and people Feb 27 20:07:15 partners in crime Feb 27 20:07:19 this prostitute i used to frequent when i lived in Nebraska tried to connect on linked in last week Feb 27 20:07:19 i don't go for numbers Feb 27 20:07:29 mikedg: just one ? Feb 27 20:07:37 i bet all of your connections are prostututes Feb 27 20:07:41 *prostitutes Feb 27 20:07:51 LinkedIn connections are about as valuable to me as BitCoins Feb 27 20:08:21 i had my title as Master Android Developer on linked in for a long time Feb 27 20:08:31 and recruiters still contacted me Feb 27 20:08:33 right now I'm a 'Code Monkey' at my old job Feb 27 20:08:44 the owner told my boss to tell me to change it for 6 months Feb 27 20:08:53 he never asked me because he thought it was funny Feb 27 20:08:59 only told me about it on Friday when i was leaving Feb 27 20:09:12 i was told to change my title too Feb 27 20:09:17 that's the problem with social networks. people try to increase their number of friends without regard for quality. there needs to be a scoring algorithm Feb 27 20:09:24 mikedg: I changed my title to Level 75 Blue Mage (from Final Fantasy XI) for a bit Feb 27 20:09:25 cause our titles here are so fucking confusing Feb 27 20:09:30 readme, you mean like Klout Feb 27 20:09:33 Klout + LinkedIn Feb 27 20:09:40 most useless team up ever! Feb 27 20:09:43 it would be amazing Feb 27 20:09:50 i've heard of klout, I don't know how good it is Feb 27 20:10:00 my scoring algorithm would measure things other than shallow popularity Feb 27 20:10:03 i am executive master android coding ninja operative specialist Feb 27 20:10:03 an arbitrary scoring system based on nothing paried with a social network of absolute zero relevance Feb 27 20:10:15 valuation: $200b Feb 27 20:10:20 as a consulant level 2 i was a senior developer, as a senior consultant i'm a tech lead, a ux guy at level 2 is a ux guy, and a ux guy as a senior consultant is a senior ux guy Feb 27 20:10:27 i love klout Feb 27 20:10:30 it would include an IQ test, strength test, run, personality quiz, criminal record, academic acheivements, work history... Feb 27 20:10:30 im a 53 Feb 27 20:10:34 out of 1000? Feb 27 20:10:40 or 54? Feb 27 20:10:42 :) Feb 27 20:10:49 53/klout Feb 27 20:11:04 I'll trade you 10 Klout for 10 LinkedIn connections Feb 27 20:11:11 oh bah Feb 27 20:11:17 my klout dropped 1 in the past day Feb 27 20:11:22 im going to tweet it Feb 27 20:11:45 I'm going to like it, reshare on G+, retweet, and start a LinkedIn group about it Feb 27 20:11:56 then youll have like a million klouts Feb 27 20:12:02 guys. im trying to make a simple webview, if i leave line 19 commented, it works fine, but with the address bar, if i uncomment, nothing happends, the screen keeps blank, and no error, ideas? Feb 27 20:12:10 i gave my friend 10 klout by +1'ing all his gplus posts and resharing one Feb 27 20:12:11 http://pastebin.com/EFyg3b3r Feb 27 20:12:11 lol Feb 27 20:12:15 he had like 2 posts Feb 27 20:12:17 my source http://pastebin.com/EFyg3b3r Feb 27 20:18:54 so here's the scenario (this has been discussed here before and t0mless helped resolve an issue)..an activity of mine (System Monitor) binds to the Connection service and fires up an asynctask which (through an SSH connection to a remote server) fetches the output of a command executed on the server, returns it and plots it on a graph; FOREVER Feb 27 20:19:47 Sicp: consider not using an asynctask at all, here. Feb 27 20:19:58 Sicp: nothing is forever ;) Feb 27 20:19:59 I was told so Feb 27 20:20:01 Sicp: for something this long, especially where all the meat is going to be in a Service, use callbacks. Feb 27 20:20:11 this is the code, http://pastebin.com/fXjrEfxK Feb 27 20:20:19 send a message to your bound service saying "Do this command, callback when done", then display a dialog. Feb 27 20:20:47 you're not so good at sicp are you? ;-) Feb 27 20:20:58 I'm not Feb 27 20:21:04 what happens here is that line 68 is practically the only line where I can get (only 1) output from the server and get the point plotted Feb 27 20:21:13 otherwise, I get that conn is null Feb 27 20:21:21 tl;dr Feb 27 20:22:09 or if I try to send "sendAndReceive()" more than once on line 68, it throttles and crashes of course (because usually (below you see lines commented out representing the old code) I used to set the thread to wait 1500 before the next iteration Feb 27 20:22:22 ) Feb 27 20:22:37 but I take good care of my parenthesis ;) Feb 27 20:23:00 if conn is null, wait for it to not be null Feb 27 20:23:01 Thread.sleep() = bad. Feb 27 20:23:18 this is what my SICP days have surmounted to, pfn, https://github.com/Odaym/Rachat Feb 27 20:23:49 I tried to do "while (conn != null)" inside the asyncTask's doInBackground() (meaning right before the command is issued) and it just never runs Feb 27 20:24:00 because the asynctask is always beating the onServiceConnected() Feb 27 20:24:04 synchronize Feb 27 20:24:08 arrives empty-handed Feb 27 20:24:10 learn to synchronize Feb 27 20:24:16 or launch the asynctask onServiceConnected Feb 27 20:24:22 but I have "synchronize" in the proto's of both of them Feb 27 20:24:41 Do any of you sell on market? Feb 27 20:24:51 I mean, in the sendAndReceive() prototype Feb 27 20:24:58 not in your paste Feb 27 20:25:06 line 83 Feb 27 20:25:06 im really growing to love lint Feb 27 20:25:09 Kake_Fisk, what? you mean I can sell on the market Feb 27 20:25:15 canadiancow|work: Using the new lint? Feb 27 20:25:19 yea Feb 27 20:25:23 SimonVT, and where i it synchronizing against... Feb 27 20:25:26 I should update mine Feb 27 20:25:29 we had two cases where we had something as 1px tall Feb 27 20:25:32 Nono, do any of you guys develop games/apps and sell it on android marketplace? Feb 27 20:25:33 but we really wanted 1dp Feb 27 20:25:37 Sicp, take a read through java concurrency in practice Feb 27 20:25:39 pfn, eh? :p Feb 27 20:25:49 s/SimonVT/Sicp Feb 27 20:25:51 ok Feb 27 20:25:53 ^_^ Feb 27 20:25:57 i still don't know the difference between sp/px/dip Feb 27 20:26:06 -.- Feb 27 20:26:09 i mean i know what they stand for but not the differences. Feb 27 20:26:13 SimonVT, you typed right before I hit tab, so you ended up being the next complete, damnit race conditions Feb 27 20:26:22 moonlightcheese: its pretty important Feb 27 20:26:25 human race condition Feb 27 20:26:32 moonlightcheese: You should probably look it up :P Feb 27 20:26:38 it hasn't mattered to me so far. Feb 27 20:26:40 sp is for font Feb 27 20:26:40 px is for crappy third-party developers that companies like NBC hire to write their apps Feb 27 20:26:40 dp is for everyone else Feb 27 20:26:54 yea Feb 27 20:26:58 pretty much use dp everywhere Feb 27 20:26:59 android:textSize is in sp Feb 27 20:27:01 everything else is dp Feb 27 20:27:14 cool, so i've been doing it right. Feb 27 20:27:25 you should still understand WHY Feb 27 20:27:32 how many pixels are there in one dp on a galaxy nexus (xhdpi) ? Feb 27 20:27:40 damned if I know nor care Feb 27 20:28:14 2 Feb 27 20:28:22 well Feb 27 20:28:23 4 Feb 27 20:28:28 since it's a square :) Feb 27 20:28:39 you're a square Feb 27 20:28:43 in a week Feb 27 20:29:14 * g00s is an obtouse square Feb 27 20:29:17 SimonVT, action provider sample uses menu XML Feb 27 20:29:18 *obtuse Feb 27 20:29:22 works good Feb 27 20:29:23 well Feb 27 20:29:25 english speak me good Feb 27 20:29:28 yay \o/ Feb 27 20:29:38 i didnt notice they fixed a bug in r17 already Feb 27 20:29:39 http://tools.android.com/download/issue25948.zip?attredirects=0&d=1 Feb 27 20:29:45 it's a patch to preview 1 Feb 27 20:29:56 link to a .zip Feb 27 20:29:57 where the hell is adt 17 anyhow Feb 27 20:29:57 DIAF Feb 27 20:30:09 at Google Feb 27 20:30:13 being developed Feb 27 20:30:30 hi, i'm looking for a guide for using a quickcontactbadge into a listview Feb 27 20:31:18 if i have a custom listview with the textviews for name, phone & mail, how to attach a quickcontactbadge for making the contact to be memorized with one touch? Feb 27 20:31:38 g00s adt 17 is in that zip, but you need tools and platform tools as well Feb 27 20:31:46 http://tools.android.com/download/adt-17-preview Feb 27 20:32:27 canadiancow|work: thanks. hm, i'm interested to see their new proguard config Feb 27 20:32:42 its not that different Feb 27 20:32:44 its still fucking stupid Feb 27 20:32:51 they need to s/class/!abstract class/ Feb 27 20:33:00 there is NO reaosn not to obfuscate my base activity Feb 27 20:34:43 k, this adt preview is just from a few days ago; probably be a while before a real relase Feb 27 20:35:36 Is there a way around the emulator not supporting wifi ? Feb 27 20:35:51 in a windows environment which ide is better? eclipse or intellj? Feb 27 20:35:52 canadiancow|work: Did they fix library project unused resources? Feb 27 20:35:56 I don't even know where to look in http://jcip.net/ Feb 27 20:36:02 SimonVT they said they did :( Feb 27 20:36:03 Loman: Personal preference Feb 27 20:36:22 nor do I think that this addresses my problem Feb 27 20:36:23 * Jug6ernaut has never even heard of intellj Feb 27 20:36:36 i say eclipse, just bc its offically supported Feb 27 20:36:47 Intellij sorry Feb 27 20:36:49 I say intellij, just because I like it Feb 27 20:36:56 lol Feb 27 20:36:59 if you have not tried both .. you dont know Feb 27 20:37:04 thats why I say intellij Feb 27 20:37:09 SimonVT how good of support does it have for android? Feb 27 20:37:17 very good and its free Feb 27 20:37:31 (so is eclipse, free that is) Feb 27 20:37:31 you have now Feb 27 20:37:31 gogogo Feb 27 20:37:33 "decently good" Feb 27 20:37:38 Jug6ernaut: If you're the kind of person who uses the layout drag'n'drop shit, then it has bad support :P Feb 27 20:37:41 I have tried eclipse a long time ago and was like meh Feb 27 20:37:52 drag n drop? Feb 27 20:38:05 Dunno what it's called Feb 27 20:38:14 IntelliJ is missing enough integrated tools from ADT to be annoying Feb 27 20:38:29 on the other hand, working daily with IntelliJ and Eclipse I don't notice much difference between them Feb 27 20:38:34 don't get the IDE wars really :P Feb 27 20:38:41 VS ftw Feb 27 20:38:46 ^ Feb 27 20:38:56 Notepad ftw Feb 27 20:38:57 Mavrik: +1 Feb 27 20:39:04 To the last thing Feb 27 20:39:11 I miss no integrated tools :P Feb 27 20:39:12 JakeWharton if Notepad is good Notepad++ is better :D Feb 27 20:39:18 negative Feb 27 20:39:21 yeah.. try both and even use both Feb 27 20:39:26 romainguy: ken rockwell says "Modern exposure technique is optimizing the exposure compensation as needed, not setting exposure manually." … is this for real? its what i've been doing up until now but just bought 3 books on exposure that contradict this advice. what do the pros do :P Feb 27 20:39:45 Guys i want to create map view and I did but map do not load(the map titles) I got the key and put it inside of layout and I have use library in manifest. What could be wrong? BTw I am using PC internet through USB(not sure if this could be problem)) Feb 27 20:39:45 notepad++ was decent, programmer's notepad was better. Feb 27 20:39:58 Real programmers use butterflies Feb 27 20:40:11 ctrl=meta-butterfly Feb 27 20:40:11 in solviot russia butterflies use u Feb 27 20:40:36 implying he is a real programmer Feb 27 20:40:47 http://sourceforge.net/projects/butterflyxml/ Feb 27 20:40:48 * Jug6ernaut is a fake programmer Feb 27 20:40:57 JakeWharton just copies other peoples code and puts it in a library Feb 27 20:40:58 * Jug6ernaut comes in here for no reason at all Feb 27 20:40:58 easymode Feb 27 20:41:25 i google tutorials, copy/paste, release as a library Feb 27 20:41:31 step 3: profit Feb 27 20:42:29 real men don't google, real men just ask on StackOverflow and copy/paste Feb 27 20:42:40 haha Feb 27 20:42:41 yeah or in here Feb 27 20:42:57 and if someone answers without providing code samples you DOWNVOTE THE SHIT OUT OF THEM Feb 27 20:43:10 * Jug6ernaut has never stackedoverflowed Feb 27 20:43:32 time to load up the van Feb 27 20:43:39 bye Feb 27 20:43:43 van :o Feb 27 20:43:47 * Jug6ernaut kills van Feb 27 20:44:55 JakeWharton, safe trip! Feb 27 20:45:43 canadiancow|work: Is there a ignoreActionBarSherlock flag? :p Feb 27 20:46:03 lol Feb 27 20:46:32 Hello. I have a application project and android project. Can I set some Ant build property in application project's ant.properties and use it during library build? Feb 27 20:46:46 Blackhex, nope Feb 27 20:46:52 is @SuppressLint going to fuck up on tools/adt 16? Feb 27 20:46:53 the properties aren't shared Feb 27 20:47:05 canadiancow|work, I imagine yes Feb 27 20:47:16 canadiancow|work, unless you're including some jar that defines it, then it's ok Feb 27 20:47:23 pfn: any workaround? for example call class method from application package in library package? Feb 27 20:47:25 canadiancow|work: Seems kinda useless that it includes library projects at all Feb 27 20:47:41 Blackhex, what exactly are you trying to do? Feb 27 20:47:48 somethign I could forgot? I got Google Maps Api key and I did put uses library into manifest Feb 27 20:48:28 SimonVT: not necessarily Feb 27 20:49:32 I have to develop two identical applications with one for one laguage other for other language and they need to have different package (to be in market together). I have create library project that is configured in its ant propertry to be compiled for language 1 or language 2. Now I wan to set used language in applications ant.properties. Feb 27 20:49:50 canadiancow|work: If I wanted to fix lint issues in a library project, I would run lint on it. Not really interested in what kind of issues they introduce when checking my own project Feb 27 20:50:02 Blackhex, saywhat Feb 27 20:50:11 Blackhex, why aren't you using the builtin localization support? Feb 27 20:50:35 SimonVT: so what if your lib project has minSdkVersion=8 and yours has 7 Feb 27 20:50:47 you dont think it should analzye the lib project for unprotected use around api8 calls? Feb 27 20:50:51 Stop using logic Feb 27 20:50:51 Blackhex: Sorry, for mistakes, I'm typing so quickly. I do, but I need to force one language in one application and second languaghe in other. Feb 27 20:51:18 pfn: So I need to configure library to fore one or other. Feb 27 20:51:23 At least give me a flag to activate then :p Feb 27 20:51:24 s/fore/force Feb 27 20:51:30 Blackhex, that's terrible, why Feb 27 20:51:59 pfn: it is but that's a marketing policy Feb 27 20:52:36 pfn: but the problem could be generalized to building cusomized library configured from application build scripts Feb 27 20:52:40 Blackhex, personally, I would look at the package name in the library project, and use that to determine which language to load Feb 27 20:53:12 at runtime Feb 27 20:54:22 pfn: hmm that's interesting idea, it'would work for this particular reason but I'd like to configure logging level, enable/disable some features based on build time conditions too. Feb 27 20:54:33 s/reason/case Feb 27 20:56:15 create a properties file that you load and handle at runtime Feb 27 20:56:19 pfn: But how can you check application pacakge in library if it has different package name? If this is possible, thent it is possible to call some method form application package so I can configure that class and just call some of its mehtod? Feb 27 20:56:25 ok when I start map activity I get Handling network change notification:NOT_CONNECTED in the log Feb 27 20:56:34 Blackhex, just call the package manager and get your own package name Feb 27 20:56:37 so could it be that my app just wont connect Feb 27 20:57:00 Blackhex, depending on what the package manager's response is, you enable/disable certain behaviors Feb 27 20:57:11 Blackhex, if you want to do something compile time, load a properties file from an asset Feb 27 20:57:25 Blackhex, and generate the properties file into the asset directory with the build process Feb 27 20:57:52 pfn: yeah that is probably the best solution, thank you Feb 27 20:58:21 * pfn hates conditional compilation in java stuff Feb 27 20:59:04 pfn: yeah me too, I spent two days trying to achieve something in ant which is really easy in for example cmake Feb 27 20:59:29 cmake? Feb 27 21:00:44 * pfn is switching over to using sbt to build now Feb 27 21:01:27 pfn: build system mostly targetted to c++ projects but i'm somethimes using it also with android Feb 27 21:01:49 * g00s hasn't heard about cmake in a while Feb 27 21:01:49 do I manually create an aidl file? Feb 27 21:01:56 siyes Feb 27 21:01:58 Sicp, yes Feb 27 21:02:02 Sicp: open up a hex editor ... Feb 27 21:02:04 * pfn has never heard of cmake Feb 27 21:02:12 imake, gmake and pmake, sure Feb 27 21:02:42 pfn: iirc KDE is using it as primary build system Feb 27 21:03:26 I really dig maven, but it doesn't cross lang's very well/at all Feb 27 21:07:35 gutano, maven's pretty much java-only Feb 27 21:07:46 fuck adreno profiler doesn twork with tools r17 T_T Feb 27 21:07:54 are you agree'ing or summarizing? I said that Feb 27 21:08:52 the android maven plugin works fine for ndk builds Feb 27 21:09:01 clarifying Feb 27 21:09:06 what are you looking for gutano Feb 27 21:09:16 Is it correct to do HttpResponse#getEntity().getContent() on a background thread with HttpClient#execute(httpRequest)? Or is it not necessary? I randomly get NetworkOnMainThreadExceptions, but not reliably Feb 27 21:09:18 * pfn never got into using maven Feb 27 21:09:20 nothing, ppl where talking about favored build systems Feb 27 21:09:37 grantland, correct to do in the background, not anywhere else Feb 27 21:09:57 pfn: thanks, weird that it doesn't throw the exception all the time... Feb 27 21:09:59 grantland, look at the callstack and you see the offender Feb 27 21:10:08 maven is very much jvm based Feb 27 21:10:16 but it can do other stuff quite easily too Feb 27 21:10:25 there are LOTS of plugin Feb 27 21:10:26 * pfn has been enjoying sbt Feb 27 21:10:38 kind of Feb 27 21:10:42 now that I figured that sumbitch out Feb 27 21:10:42 syntax is a mess Feb 27 21:10:44 as long as you dont call it simple build tool ;-) Feb 27 21:10:53 I've written a few plugins for work, custom packaging/whatnot... I know it well, so I found it very easy when I started using for android dev (maven-android-pluign) Feb 27 21:11:01 simpligility, but but but that's what sbt stands for Feb 27 21:11:02 ;-) Feb 27 21:11:07 JakeWharton Feb 27 21:11:16 get back to packing your van ;-) Feb 27 21:11:23 yes yes.. it used too ;-) Feb 27 21:11:29 but that aint true no more Feb 27 21:11:48 simple and build is often an oxymoron Feb 27 21:11:59 play 2.0 uses sbt so i'm being forced to learn it Feb 27 21:12:08 JakeWharton, the syntax becomes pretty understandable once you know wtf is going on Feb 27 21:12:18 JakeWharton, because it's effectively purely scala syntax Feb 27 21:12:23 yeah Feb 27 21:12:26 which i don't like Feb 27 21:12:31 and it uses ivy underneath Feb 27 21:12:45 scala has uses but it's a bit too far off the deep end for my taste Feb 27 21:12:51 plus lots of overloads for definining dependencies, ++=, +=, := <<= <+= and <++= Feb 27 21:12:54 too much emphasis on being overly terse Feb 27 21:13:02 that's not true at all Feb 27 21:13:04 not in the framework code Feb 27 21:13:16 3rd party libraries and users are a different matter Feb 27 21:13:31 well, as I said, i'm only basing this on my exposure via Play 2.0 Feb 27 21:13:53 I'm no authority by any means Feb 27 21:14:03 http://www.theverge.com/2012/2/27/2827591/google-to-double-down-on-android-tablets-in-2012-says-andy-rubin Feb 27 21:14:20 https://github.com/pfn/android-sdk-plugin Feb 27 21:14:23 ^^ my android plugin for sbt Feb 27 21:14:25 whoop Feb 27 21:14:41 help please some one Feb 27 21:14:42 looks good btw ;-) Feb 27 21:14:43 CC net/ipv4/netfilter/arpt_mangle.o Feb 27 21:14:43 /var/lib/jenkins/jobs/cm9/workspace/kernel/samsung/p1/net/ipv4/netfilter/arpt_mangle.c:91: internal compiler error: Segmentation fault Feb 27 21:14:43 Please submit a full bug report, Feb 27 21:14:43 with preprocessed source if appropriate. Feb 27 21:14:43 See for instructions. Feb 27 21:14:45 make[4]: *** [net/ipv4/netfilter/arpt_mangle.o] Error 1 Feb 27 21:14:51 The educated consumer realizes it now that they're either picking the Apple ecosystem or the Microsoft ecosystem or the Google ecosystem Feb 27 21:14:58 "i want a samsung" Feb 27 21:15:01 not "i want an android" Feb 27 21:15:11 the educated consumer Feb 27 21:15:15 this is building a kernel for the samsung galaxy tab 7" Feb 27 21:15:15 not the idiot consumer Feb 27 21:15:20 I think I read that article earlier Feb 27 21:15:34 spanner3003, your compiler crashed, get another one Feb 27 21:15:34 so much news these past two days they all blur Feb 27 21:15:59 also, a pastebin Feb 27 21:16:00 toomuch news coming out of mwc which I don't give a shit about Feb 27 21:16:05 that too Feb 27 21:16:09 where's the IO registration infoz Feb 27 21:16:11 lol pff Feb 27 21:16:13 I want IO tickets Feb 27 21:16:19 so im trying to save a canvas as bitmap and draw the bitmap on the next ondraw call so i have the old canvas as background Feb 27 21:16:24 JakeWharton: there has been a lot of news? i must have missed everything then :P Feb 27 21:16:25 but it seems to be black all the time Feb 27 21:16:35 pfn, consumers are not educated though Feb 27 21:16:39 JakeWharton: i hope you are not irc'ing and driving the van :D Feb 27 21:16:40 are you writing/drawing the right canvas Feb 27 21:16:47 saying the "educate consumer" is like saying the "iphone owning apple-hating android fanboy" Feb 27 21:16:49 canadiancow|work, that's why it's qualified as the "educated consumer" Feb 27 21:16:50 i had that problem once Feb 27 21:16:52 rather than "consumers" Feb 27 21:16:53 g00s, if an iPhone can now multitask, so can I! Feb 27 21:17:00 hehe Feb 27 21:17:10 JakeWharton, yeah, be safe on that long ass drive Feb 27 21:17:23 thanks. heading out tomorrow. just packing everything into the van today Feb 27 21:17:32 storkme: the ondraw gives me a canvas - and iam creating a new one with a blank bitmap - then i draw the same on both canvases Feb 27 21:17:54 which i should get back to... Feb 27 21:18:22 simpligility, you try out the plugin yet? Feb 27 21:19:21 pfn ... nope.. not doing any android and scala stuff .. no time.. too busy working on the android maven plugin and other stuff Feb 27 21:19:39 nexus book, training, .. Feb 27 21:19:39 simpligility, I see, well, the plugin works with plain java android projects, too Feb 27 21:19:45 nexus book? Feb 27 21:20:11 ekh, got fucky trying to implement this, http://stackoverflow.com/questions/2026393/service-call-backs-to-activity-in-android Feb 27 21:20:13 http://sonatype.com/index.php/Support/Books/Repository-Management-with-Nexus Feb 27 21:20:37 not the phone .. Feb 27 21:20:38 I see Feb 27 21:21:01 yeah, I've seen references to sonatype nexus a bit Feb 27 21:21:11 no idea wtf it's all about Feb 27 21:21:28 if you use a build system with depenedency management Feb 27 21:21:35 (like any that does not suck) Feb 27 21:21:40 you should use a repo manager Feb 27 21:21:53 better performance, ability to host artifacts and so on Feb 27 21:22:01 and dead easy to use Feb 27 21:22:17 "Rubin said that the biggest problem for Android on tablets is "there's no organized way for consumers to recognize it as a viable platform," … i'm not sure what rubin meant by this. rubin has a way of spinning and doublespeak Feb 27 21:22:58 pfn, the compiler is in the pc or the software? Feb 27 21:23:00 simpligility, I've never liked using maven... so sbt is my first real exposure to anything with managed dependencies Feb 27 21:23:04 spanner3003, pc Feb 27 21:23:10 ok pff Feb 27 21:23:26 np ... maven is opinionated .. Feb 27 21:23:31 and it's a new build Feb 27 21:23:54 it uses ivy internally afaik Feb 27 21:24:13 wut Feb 27 21:24:13 the only thing that sucks about maven is the use of XML (though I understand why they use it) Feb 27 21:24:22 maven uses ivy ? Feb 27 21:24:22 i built it specaly for building android stuff Feb 27 21:24:27 sbt uses ivy Feb 27 21:24:36 ah, ok Feb 27 21:24:52 ivy2 is compatible with maven and vice versa Feb 27 21:24:56 i thought that was hard to swallow given ivy's support for maven came later on :D Feb 27 21:25:08 if maven hasn't already, it could replace its own dependency management with ivy Feb 27 21:25:41 is there something special I should do with a JSON response where I only need 2 elements out of the whole response body like discard the data I don't need? Feb 27 21:25:45 i thought ivy's configuration rules in xml were fucking weird. powerful, but weird Feb 27 21:25:52 * g00s hates xml Feb 27 21:25:59 i hate it as well Feb 27 21:26:02 g00s, they're the same as maven's, I thought Feb 27 21:26:02 g00s, +1 Feb 27 21:26:12 Maven uses the open aether library for dep mgt Feb 27 21:26:14 i don't know how people use ant Feb 27 21:26:15 since 3.x Feb 27 21:26:20 I like ant :p Feb 27 21:26:31 other than the bastardized xml aspect Feb 27 21:26:36 what else is ther? Feb 27 21:26:53 * pfn isn't a fan of dependency management in general Feb 27 21:27:00 ha Feb 27 21:27:11 http://www.eclipse.org/aether/ Feb 27 21:27:24 seeking out and finding dependencies on the internet and verifying they're the correct versions is just so much fun Feb 27 21:27:26 pfn ... so you like to be the dependency manager by hand Feb 27 21:27:32 DammitJim: hm, you could parse it and only add those properties you need? Feb 27 21:27:33 simpligility, pretty much Feb 27 21:27:42 But you need to scan through the whole string nevertheless? Feb 27 21:27:52 JakeWharton, there's really no authority on the public maven repos either Feb 27 21:28:14 once you have done that for a big project with lots of undeocumented transitive depenedencies and e.g. spring ioc and dynamic loading of shit you will change your mind Feb 27 21:28:22 except that they're read only, signed by with GPG keys, and come with hashes to check binaries Feb 27 21:28:30 I have written plenty of apps using hibernate, jpa, spring, etc. Feb 27 21:28:35 and I've managed all the dependencies by hand Feb 27 21:28:42 aspic, yeah, I guess regardless I have to receive the whole JSON Object... no way of getting around that Feb 27 21:28:43 thanks Feb 27 21:28:43 even wrote crap using websphere as a dependency Feb 27 21:28:46 as long as you do it alone Feb 27 21:28:49 do you also use an abacus instead of a calculator? Feb 27 21:29:00 simpligility, not really, dependencies get checked in as build prereqs Feb 27 21:29:00 hahah Feb 27 21:29:05 ouch Feb 27 21:29:21 see.. you need a repo manager Feb 27 21:29:27 to be honest, i don't care what people use, as long as they get shit done Feb 27 21:29:27 simpligility, that might be it Feb 27 21:29:33 how do i stop the gui in xubuntu? Feb 27 21:29:35 because any build must be absolutely reproducible Feb 27 21:29:44 from in tty1 Feb 27 21:29:45 and using a dependency manager does not jive with that Feb 27 21:29:52 not true at all Feb 27 21:30:10 up until repos go away Feb 27 21:30:19 if you lock down your dependencies it is completely reproducible Feb 27 21:30:20 hahaha Feb 27 21:30:23 now if you host your own repo in-house Feb 27 21:30:23 like I said Feb 27 21:30:29 ... Feb 27 21:30:32 you got it Feb 27 21:30:35 seems like more work to also host the repo Feb 27 21:30:38 I'd rather check in my deps Feb 27 21:30:44 so much time is wasted on projects figuring out shit like dependencies and pre-3.0 action bars (for a close-to-home example) that the app suffers because they lose so much time Feb 27 21:30:44 it's ridiculous Feb 27 21:30:46 up to you Feb 27 21:30:52 choose your own pain ;-) Feb 27 21:31:10 and then there's the fact for deps that don't exist in public repos Feb 27 21:31:12 i have a custom view - is there a way to 'overdraw' a canvas, means using the old canvas as somekind of background? (in ondraw) Feb 27 21:31:14 still need to manage them myself anyway Feb 27 21:31:19 no.. Feb 27 21:31:20 or host my own repo again Feb 27 21:31:23 you upload them to your repo Feb 27 21:31:26 hahahah Feb 27 21:31:29 yeah, I don't want to setup my own repo Feb 27 21:31:29 you are getting it Feb 27 21:31:44 right, I understand the logic, I just don't like the end conclusion Feb 27 21:31:45 I run one on my dev machine even Feb 27 21:31:53 simplification? Feb 27 21:31:59 and the end conclusion is always "host your own repo" Feb 27 21:32:00 cool stuff. http://www.gizmag.com/mobile-phone-bacteria-scanner/21602/ Feb 27 21:32:07 for testing deployments and so on Feb 27 21:32:16 JakeWharton, it isn't simplification to run a new repo Feb 27 21:32:22 a repo is just a filesystem Feb 27 21:32:34 I host my own on a webserver, reference via URL Feb 27 21:32:39 took two seconds to setup the subdomain Feb 27 21:32:48 hosting your own repo server beats checkins to the svn for storage and lots of other reasons Feb 27 21:32:55 sure I don't get fancy nexus management but I don't need it Feb 27 21:33:08 nexus oss is free btw Feb 27 21:33:20 yeah I know, I'm trying to move all my crap to central Feb 27 21:33:22 and does all you would need Feb 27 21:33:31 thats even better and for free Feb 27 21:33:48 once we get resources in .jars i'll be 100% off my own repo Feb 27 21:33:54 yeah Feb 27 21:34:06 xavier confirmed on the adt dev list that it wont make it for r17 Feb 27 21:34:10 sucks Feb 27 21:34:31 resources in jars seems like a pita to handle Feb 27 21:34:56 it depends Feb 27 21:35:02 its better to put them in tupperware Feb 27 21:35:08 for just simple use with some restrictions it would be easy Feb 27 21:35:15 haha Feb 27 21:35:16 well, I suppose pngcrunch already dumps stuff in bin/res Feb 27 21:35:26 but it's a pita when you go to proguard Feb 27 21:35:37 proguard is always a PITA Feb 27 21:35:38 you'll need to unpack the jar into something like bin/jars bin/res Feb 27 21:35:52 because proguard will start bitching like crazy when it comes time to deal with the resources in jars Feb 27 21:36:09 * pfn wonder's how jberkel/android-plugin does apklibs Feb 27 21:36:20 very easily Feb 27 21:36:43 sounds like proguard is broken Feb 27 21:36:59 I think apkbuilder also complained Feb 27 21:37:02 why make depmanagement shittier Feb 27 21:37:26 works flawlessly from where i'm standing Feb 27 21:38:12 I guess it isn't terrible to implement, though, unpack the apklib into bin/{jars,res} all .class into jars, everything else into res Feb 27 21:38:16 and then just compile Feb 27 21:38:21 yep Feb 27 21:38:27 doesn't really solve collisions, though Feb 27 21:38:41 btw.. xavier is talking about automatically handling manifest and stuff as well as collissions Feb 27 21:38:55 imho that is overkill and could just be done later Feb 27 21:41:29 ok lets try the other way round: how can i put some bitmaps together to one? Feb 27 21:41:37 hey guys, i'm running into an issue with my AsyncTask not always firing... it's essentially the same problem listed here: http://stackoverflow.com/questions/4080808/asynctask-doinbackground-does-not-run Feb 27 21:41:57 does their explanation/solution make sense and seem reasonable? i'm not sure what else to do Feb 27 21:42:34 or if anyone else has experience with AsyncTask's doInBackground() not firing and how you handled it, would love to hear your stories... Feb 27 21:43:11 what api level Feb 27 21:43:17 api14+ made asynctasks run serially Feb 27 21:43:27 API level 8 Feb 27 21:43:30 so if you fire 1 and it doesn't stop, 2 will not run Feb 27 21:43:32 drezel: my guess is that the executor used to run out of asynctasks has run out of free threads Feb 27 21:43:50 default executor has 128 or 256 threads Feb 27 21:43:54 and yes, in the worst case it's fully serial, thanks to google chickening out on the concept of what async means :-p Feb 27 21:43:57 it's unlikely that one would run out Feb 27 21:44:02 nah, the default had 5 Feb 27 21:44:04 I looked Feb 27 21:44:09 alankila, no, it /starts/ at 5 Feb 27 21:44:13 and grows to 128 or 256 Feb 27 21:44:21 look again :p Feb 27 21:44:25 oh, really? I thought it was capped. Hmm. Feb 27 21:44:31 yeah, capped at 128 or 256 Feb 27 21:44:33 well that is plain dangerous Feb 27 21:44:35 alankila: we "chickened out" because too many app developers were misusing AsyncTask Feb 27 21:44:35 I forget the number Feb 27 21:44:49 and when dual core devices appeared, new bugs also appeared Feb 27 21:45:01 too many people don't understand threading :p Feb 27 21:45:13 and it's still asynchronous wrt the UI thread Feb 27 21:45:19 which was the only original goal Feb 27 21:45:20 the default is serial Feb 27 21:45:28 I'm not going to look again though. I should get a pre-hc source first, way too much bother. Unless the old executor is preserved on AsyncTask definition Feb 27 21:45:29 you can still executeOnExecutor(THREAD_POOL_EXECUTOR,...) Feb 27 21:45:44 alankila, git checkout android-2.3_r1 Feb 27 21:45:48 :p Feb 27 21:46:11 asynctask: exhibit A on java's obtuseness with concurrency Feb 27 21:46:26 yes, maximum pool size does say 128 on the thread pool executor Feb 27 21:46:32 that is an astonishing number Feb 27 21:46:34 so I'm guessing I'm using AsyncTask incorrectly then? I'll be migrating to a regular thread like the SO post suggests Feb 27 21:46:42 [galaxy s3] will have a 4.8-inch 1080p 16:9 screen :o Feb 27 21:47:02 alankila: it was bumped up because of how apps were using asynctask Feb 27 21:47:08 128 threads are fairly likely to go OOM on android's constrained environment if you do even little bit of work in them. :-/ Feb 27 21:47:50 * alankila normally tunes thread counts *way* down to avoid OOM & swamping the CPU with tons of tasks when I have reason to believe they are going to be even mildly cpu-bound Feb 27 21:47:51 well, at 128 threads, that's only 1.2mb in stack Feb 27 21:48:07 assuming a 10k stack Feb 27 21:48:10 alankila: but that's because you understand threads :) Feb 27 21:48:16 the stack alone is significant, but I'm more worried about the objects threads create to do their work Feb 27 21:48:28 i don't think i ever have more then 3-4 threads going at a time on android Feb 27 21:48:34 maybe 5 Feb 27 21:48:39 so having 128 threads alone and doing some work isn't gonna cause an OOME... Feb 27 21:48:40 I'm having trouble with dex. After adding android-support-v4.jar to the project, I'm getting "No expanded opcode for 2fec425d ModernAsyncTask.java:89@0003: invoke-virtual ?(java method signature)" Feb 27 21:48:45 a typical android app has easily 12 threads Feb 27 21:48:58 (just because of what the system creates) Feb 27 21:49:00 wyvern`: using proguard ? Feb 27 21:49:05 wyvern`, you're proguarding Feb 27 21:49:10 wyvern`, turn down the optimization passes Feb 27 21:49:13 I see Feb 27 21:49:23 yeah, i use 1 which is default Feb 27 21:49:32 I thought 5 was default... Feb 27 21:49:34 when I created the project it gave it 5 Feb 27 21:49:48 yeah, 5 is way too optimistic Feb 27 21:49:51 Does anyone know why my file download method throw a FileNotFoundException on Android > 2.3 ? Feb 27 21:49:59 Simple urlConnection Feb 27 21:50:02 2 passes is about the most you can go on any complexish android app before dex will complain Feb 27 21:50:10 I do agree that 1-threaded executor was actually a good call Feb 27 21:50:13 Leandros: it cannot find the file Feb 27 21:50:14 pfn: good to know Feb 27 21:50:20 and yeah, the sdk generates -optimizationpasses 5 by default Feb 27 21:50:23 much better than the possibility of having 128 threads running because you do something stupid with them Feb 27 21:50:32 still fails with 2 passes Feb 27 21:50:39 alankila, better to just turn down the max thread count Feb 27 21:50:42 i'm assuming that the -optimizationpasses 2 is what i should be tweaking in proguard.cfg ? Feb 27 21:50:43 wabz: Sure, but the file exists and can be found from e.g android 2.2 Feb 27 21:50:47 alankila, set a reasonable limit of ~20 is fine Feb 27 21:50:52 alankila, anduse an unbounded queue Feb 27 21:50:57 wyvern`, yes Feb 27 21:51:05 wyvern`, set 1 pass then, or even -dontoptimize Feb 27 21:51:23 pfn: by default, proguard itself just does 1. i donnu why they have 5 in the android cfg Feb 27 21:51:44 g00s, yeah, someone got a bit overzealous at trying to reduce final apk size Feb 27 21:51:45 i just comment it out, and everything works fine :P Feb 27 21:52:25 argh. still failing even with -dontoptimize Feb 27 21:52:32 proguard should stop optimizing after it can't anymore, so its like saying "try a maximum of 5 passes" Feb 27 21:53:00 proguard is such a pita Feb 27 21:53:04 * alankila still thinks the more appropriate name for proguard is winguard, as you can only lose with it, it seems... Feb 27 21:53:26 after being featured in the market, went from ~10dls/day to >2,000 (esp after being put in the top huge spot thing) and #170 in the category to #1 :p Feb 27 21:53:38 almost as good as being featured in itunes ;) Feb 27 21:53:53 wyvern`, pastebin ant output? Feb 27 21:53:59 wyvern`, try my sbt plugin instead? ;-) Feb 27 21:54:04 wabz: what app? Feb 27 21:54:14 congrats wabz Feb 27 21:54:47 this one https://market.android.com/details?id=com.yahoo.mobile.client.android.y7food Feb 27 21:54:50 pfn: http://pastie.org/3475302 Feb 27 21:55:06 probably can only install if you're in .au Feb 27 21:55:15 wyvern`, oh, you're not proguarding... Feb 27 21:55:25 * wyvern` shrugs -- default ant setup, haven't mucked with it Feb 27 21:55:25 wyvern`, what target sdk? Feb 27 21:55:28 10 Feb 27 21:55:32 (2.3.3) Feb 27 21:55:38 152 sources? good lord, heh Feb 27 21:55:55 not that big... Feb 27 21:56:09 yeah, it's java where every fricking thing has to go in a new file Feb 27 21:56:28 wyvern`, no idea what's going on, make sure you're on the latest sdk? Feb 27 21:56:38 yeah i'm on the latest, just double checked Feb 27 21:56:45 the sdk manager thing had no updates Feb 27 21:57:48 wyvern`, unzip android-support-v4.jar rm ModernAsyncTask*.class ;-) Feb 27 21:57:54 heh Feb 27 21:58:30 i already have a bunch of other jars that i'm using; seems weird that this one would trip it up Feb 27 21:59:49 wyvern`, how many jars? Feb 27 22:00:04 21 including android-support Feb 27 22:00:04 wyvern`, dx has a problem generating lots of output Feb 27 22:00:15 wyvern`, yeah, in that case, you might want to enable proguard Feb 27 22:00:26 i see. 9m of .jars is too much for dx? Feb 27 22:00:40 yeah, that's too much Feb 27 22:00:50 echo "proguard.config=proguard.cfg" >> ant.properties Feb 27 22:00:53 ant release Feb 27 22:01:16 assuming 9mb of classes Feb 27 22:02:02 bleh; a million warnings :/ Feb 27 22:02:10 oh well, at least that's more useful than cryptic dx failures Feb 27 22:03:46 wyvern`, does it build at least? pastebin if it doesn't Feb 27 22:05:03 http://pastie.org/private/g8fat3esecvyrsjaklimpg Feb 27 22:05:27 plenty of harmless complaints like refernces to javax.servlet.Filter from library classes Feb 27 22:05:44 and commons logging stuff Feb 27 22:05:51 it halts the build though. Feb 27 22:06:50 proguard halting the build always confuses me when it doesn't explicitly spit out any "errors" Feb 27 22:07:09 I added -dontskipnonpubliclibraryclassmembers but it didn't help Feb 27 22:07:43 you might want to try -libraryjars /path/to/jvm/rt.jar Feb 27 22:07:46 dunno if that'll help Feb 27 22:07:53 assuming a java6 jar Feb 27 22:09:24 there are a bunch of apps like proguard, maybe better. i wonder about this one http://www.yworks.com/en/products_yguard_about.html Feb 27 22:09:27 Hi, I have an Android project which uses an Android library project in the same workspace in Eclipse. The project uses a class from the library and I get no errors when I build the project. The problem is when I Ctrl-F11 - when the app runs on my phone it sais the class from the library is missing. Any idea why? Feb 27 22:10:19 aleb, throw the library in libs Feb 27 22:10:41 rt.jar? Feb 27 22:10:45 oh, sorry. Feb 27 22:11:16 how the fuck can the kindle version of 'the road less traveled' be $16, when the paperback is $10 and the book is like over 25 years old. Feb 27 22:11:18 wyvern`, yeah, include the jre6 runtime, it /might/ help get past all these warnings, wild guess Feb 27 22:11:27 g00s, yeah, I hate ebooks for precisely this reason Feb 27 22:11:34 they rip off the consumer simply because it's a new medium Feb 27 22:11:40 g00s: convenience fee Feb 27 22:11:42 ebooks used to have the right price :( Feb 27 22:11:42 the fact that you don't even really /own/ the copy your purchase makes it worse Feb 27 22:11:50 pfn, but I have no zip... is this the only solution, to throw the library in libs/ ? Feb 27 22:12:01 aleb, how are you including this library? Feb 27 22:12:02 aleb, yes Feb 27 22:12:50 pfn, project > properties > Android > Libraries > Add > my_library Feb 27 22:13:44 Tiny question: Why can the same file / webspace allow a GET request on android > 2.3 but not on Android higher than 2.3? Feb 27 22:13:51 aleb, yeah, my_library needs to go in libs/ Feb 27 22:14:01 Leandros, networkonmainthreadexception Feb 27 22:14:04 meanwhile, i'm still waiting to hear back from elseview how how they managaged to completely fuck up the kindle conversion of 'perfect exposure' - even gaving spelling mistakes in the TOC Feb 27 22:14:24 jesus, plenty of spelling mistakes myself Feb 27 22:14:37 pfn: Use a Thread, I get a FileNotFoundException on e.g Android 4. But not at e.g 2.2 :D Feb 27 22:14:45 g00s: a lot of the early books were OCR'd Feb 27 22:14:46 and use the SAME app. Feb 27 22:14:48 and had tons of mistakes Feb 27 22:14:59 romainguy_: ah, that would explain it Feb 27 22:15:09 Leandros: I think you messed up your greater-than/less-than symbols Feb 27 22:15:23 I remember reading a fantasy book in which the name of the world was never spelled the same way twice Feb 27 22:15:28 it was kind of annoying :) Feb 27 22:15:32 hehe Feb 27 22:15:58 evancharlton: possible :D It dont work on Android higher (!) than 2.3. But work on 2.3 and lower ... Feb 27 22:16:08 anyone here ever installed android market in the emulator? I got it installed but can't add my google account "Can't establish a reliable data connection to the server" Feb 27 22:16:13 Leandros, so fix the filenotfoundexception Feb 27 22:16:53 pfn: How, if I constantly get a 405 - Method not allowed response. Feb 27 22:17:04 Leandros: paste some source? Feb 27 22:17:06 I can open a browser and surf the web. not sure why I'm getting that err Feb 27 22:17:09 Leandros: and some logcat Feb 27 22:17:20 Leandros, uh, so fix the 405 error Feb 27 22:18:19 evancharlton: pfn: http://pastebin.com/ZdJVLHaf Feb 27 22:18:25 code and logcat Feb 27 22:19:42 Respone on Android 2.2: 200 - OK | Respone on 4.0: 405 - Method not allowed Feb 27 22:19:50 Leandros, urlConnection.setDoOutput <= do not set Feb 27 22:20:00 evancharlton: p.s. ilu Feb 27 22:20:18 Hey. How can I get the URI from an SQLDatabse? I think I need that to use a cursorloader. Feb 27 22:20:44 pfn: Thanks! Thanks a lot. Works. :) Feb 27 22:21:24 One small line. Feb 27 22:21:30 So easy :D Feb 27 22:24:07 ericrichardson: haha sup dude Feb 27 22:24:26 Andy Rubin talks about building a firewall between Android and Motorola and people act like that's a good thing...but hotdamn, I want Motorola to stop shitting up UIs, locking bootloaders, and waiting a year to put ICS onto phones. Feb 27 22:24:32 hstefan: what? Feb 27 22:24:36 Castlevania live: http://de.twitch.tv/q00p88 OLDSCHOOL :P Feb 27 22:24:53 it's a good thing for google Feb 27 22:25:02 google bought them for their patent portfolio Feb 27 22:25:23 That doesn't mean Google can't...nudge them in a more MalRD-friendly direction! Feb 27 22:25:28 evancharlton: Actually not a whole lot. Bout to have post-launch brews. Always a good time. Feb 27 22:25:54 MalRD: well, they have to be very careful not to piss off samsung/htc/etc Feb 27 22:26:51 evancharlton: I'm trying this tutorial http://developer.android.com/reference/android/app/LoaderManager.html but I don't know how can I get the URI, since I'm using a SQLite DB. The reference to that URI is on the "onCreateLoader" method of the tutorial. Feb 27 22:27:00 trying to follow* Feb 27 22:31:12 hstefan: you skipped the one that's about how to use contentproviders Feb 27 22:36:33 pfn, I found what caused the problem, it's the fact that I had on the file system /myproject/src and then /myproject/mylibrary/src, and Eclipse does not like this.. Feb 27 22:36:47 pfn, thanks Feb 27 22:41:16 indeed, working with eclipse's preconceived notion of projects is very painful Feb 27 22:44:09 pfn, I'm a bit of a noob and only get Eclipse to work by trial-and-error. Is there anything that even outlines its philosophy? Feb 27 22:46:33 freecandy: I think this is the most recent graphic that accurately describes eclipse's design philosophy: http://infomagination.typepad.com/.a/6a00e554eecbdf88330120a6994f93970c-500wi Feb 27 22:47:09 that's mean Feb 27 22:47:23 freecandy, no, other than just using and getting used to it, I think Feb 27 22:47:29 eclipse is workspace and project oriented Feb 27 22:47:33 which most IDEs seem to be Feb 27 22:49:15 evancharlton: lol, very accurate Feb 27 22:49:32 Megaman live: http://de.twitch.tv/q00p88 OLDSCHOOL :P Feb 27 22:50:16 DooMMasteR: any reason you keep spamming that? Feb 27 22:50:29 because Megaman is fun Feb 27 22:50:43 evancharlton: there seems to be some order in that bowl of spaghetti; its too much of a complement to eclipse Feb 27 22:52:51 Megaman is a lot more fun to play than watch :\ Feb 27 22:54:14 what could be the problem if the tablerows stretch over the whole width of the screen but the content only fills about 2/3 Feb 27 22:54:32 doesnt matter if 1 or 2 columns and if spanned or not :( Feb 27 22:54:49 DooMMasteR: great; please take it to #megaman Feb 27 22:56:32 when i add a 3rd column it fills the remaining 1/3 Feb 27 22:56:44 but i never use a 3rd :( Feb 27 22:57:17 g00s, compliment Feb 27 22:57:46 canadiancow|work, I added a package-resources-options to my sbt plugin to handle that --rename-manifest-package option you wanted, heh Feb 27 22:57:58 cool Feb 27 22:58:02 but SimonVT already helped me out :) Feb 27 22:58:29 * g00s rechecks 'check spelling as you type' in colloquy Feb 27 22:58:32 :/ Feb 27 22:58:57 g00s, well, complement is a word as well, it has a different meaning Feb 27 22:59:17 like red wine is a complement to eating steak Feb 27 22:59:29 i type to quickly on irc, make stupid mistakes Feb 27 22:59:32 *too Feb 27 22:59:33 gahhh Feb 27 23:01:18 canadiancow|work, you should try out sbt, it's more fun than using ant ;-) Feb 27 23:03:20 pfn: I can honestly say I've never referred to a build system as "fun" Feb 27 23:03:41 yeah, well... Feb 27 23:03:48 weird. i perform a query in my app and get zero results. same query to the letter in sqlite3 returns 9 records. Feb 27 23:04:24 There's some application on this phone that's using insane amounts of data. Feb 27 23:05:17 200+mb without me touching the device and nothing obvious running...hm. Feb 27 23:05:30 MalRD, nothing showing up under data usage? Feb 27 23:11:52 what... the fuck. Feb 27 23:12:22 Greetings Feb 27 23:12:39 Anyone have any good guesses when I/O tickets will go on sale? Feb 27 23:13:00 August 1st ! Feb 27 23:13:38 * pfn wants IO tickets, I'll even pay for them this year Feb 27 23:13:39 heh Feb 27 23:15:13 pfn me too Feb 27 23:20:22 hello Feb 27 23:20:23 can someone refer me to the code where telephony.db is created from apns-conf.xml ? Feb 27 23:26:37 nniranjan: TelephonyProvider.java Feb 27 23:26:37 pfn: The only data usage I see is the manager and the Verizon one. Neither of those give usage on an application level...and the Verizon usage thing just went up another 200mb. Feb 27 23:28:34 hm, the eos 1dx is going for $6800 usd (body only) Feb 27 23:28:54 evancharlton: Thank you very much. Let me check. Feb 27 23:32:10 g00s: seems about right Feb 27 23:32:16 it's cheaper than an M9 :) Feb 27 23:33:09 Hey, does anyone know a good website/blog for video tutorials? Feb 27 23:34:44 youtube has quite a few android tutorials Feb 27 23:37:49 romainguy_, leica is for crazy people Feb 27 23:37:58 people that want to snap crystal clear snapshots Feb 27 23:38:02 ... Feb 27 23:38:15 i.e. if you're a rich japanese tourist, that's what you wanna be slinging 'round your neck Feb 27 23:39:54 so, is an eos 1dx comparable to a 35mm 1v yet? Feb 27 23:39:57 romainguy_: i hope to buy my first dslr soon; i'm just not sure which (canon/nikon) because of the lock-in to their lens systems Feb 27 23:40:13 g00s, if you have friends that got cameras, then go with what they got Feb 27 23:40:15 so you can borrow their shit Feb 27 23:40:26 like my 70-200L and 17-35L are both on like permaloan to my friend Feb 27 23:40:29 ... Feb 27 23:41:44 pfn: I have a Leica :p Feb 27 23:42:01 romainguy_, yeah, well... point made :) Feb 27 23:46:14 I've got a fellow developer who's looking for design patterns related to multithreaded httprequests. He's raising an event if his request returns a 401 code (to prompt the user for credentials), but since his httprequests are asynchronous, he's raising the event multiple times. Feb 27 23:46:31 This seems like a pretty common thing, so I'm wondering if there's somewhere I can point him Feb 27 23:47:02 set a flag indicating whether it's been prompted Feb 27 23:47:32 He's under the impression that there's a more...graceful way. Feb 27 23:47:36 nniranjan, it's in TelephonyProvider Feb 27 23:48:14 if (!prompted) promptForAuth; prompted = true Feb 27 23:48:25 seems quite graceful... Feb 27 23:49:15 is it possible to create a bitmap from a canvas? Feb 27 23:49:21 I know, I know... Feb 27 23:49:43 MalRD, depends on what his definition of graceful is... Feb 27 23:50:48 It's snowing like a sonofabitch -_- Feb 27 23:51:04 http://video.dot.ca.gov/asx/d3-jct80-267.asx Feb 27 23:51:08 t0mless: awesome, where ! Feb 27 23:51:23 California :) Feb 27 23:51:28 northern Feb 27 23:52:12 MalRD: I use to be under the impression that there is a better way to code something fairly frequently Feb 27 23:52:37 t0mless, is it? awesome Feb 27 23:52:44 I've been waiting to go to tahoe again Feb 27 23:52:53 pfn xroberx: His beef is that he shouldn't have to pause things manually. Feb 27 23:53:03 MalRD, pause what things Feb 27 23:53:12 hello Feb 27 23:53:26 His asynch webrequests. Feb 27 23:53:38 MalRD, what's to pause, if (authorized) makeWebRequest Feb 27 23:53:41 pfn just don't try to come today because chain control is up everywhere Feb 27 23:53:48 crazy traffic Feb 27 23:53:52 if (!authorized && !prompted) promptForAuth Feb 27 23:53:57 though it looks like it's started moving a bit better Feb 27 23:53:58 t0mless, awd + M+S tires Feb 27 23:54:10 t0mless, where are you again? Feb 27 23:54:19 Jug6ernaut: not really, a canvas is just an abstract thing onto which you can draw. Feb 27 23:54:23 oh, yea, you can get through, but it's backed up like a sonofabitch Feb 27 23:54:25 pfn Truckee Feb 27 23:54:26 I am using the answer to this post, http://stackoverflow.com/questions/3434525/android-log-into-website-and-preserve-session-cookie-using-defaulthttpclient and the line that says EntityUtils.consume(response.getEntity()); is giving me an error in eclipse, it is saying that there is no static consume method for EntityUtils but I looked it up and there definitely is Feb 27 23:54:32 Jug6ernaut: you can create a bitmap, draw into the bitmap, and then draw the bitmap onto your canvas. Feb 27 23:54:33 t0mless, damn, you're smack in the middle of it all Feb 27 23:54:37 Yup Feb 27 23:54:38 t0mless, how many days do you get to ski a year? Feb 27 23:54:44 lol, I don't ski Feb 27 23:54:49 shit is too expensive Feb 27 23:54:50 wtf are you doing in truckee then Feb 27 23:54:55 and buy a season pass Feb 27 23:54:56 it's where I was born Feb 27 23:54:58 it becomes more reasonable then Feb 27 23:55:05 and they have locals pricing, too Feb 27 23:55:05 i'm desperate :( Feb 27 23:55:07 for that matter Feb 27 23:55:09 prease herp me Feb 27 23:55:20 I can get free passes for a few days Feb 27 23:55:25 but the gear is all expensive Feb 27 23:55:29 rent Feb 27 23:55:37 but I guess renting in the area is pretty expensive Feb 27 23:55:44 Super Feb 27 23:55:45 sportsbasement here is $30/2-day rental Feb 27 23:55:53 so rent here, and drive up to tahoe Feb 27 23:55:55 great deal Feb 27 23:56:10 it's a bit more expensive if you want to rent a demo, but still, that's so cheap compared to on-mountain pricing Feb 27 23:56:13 if you go to like donner ski ranch or sierra at tahoe it can be cheap Feb 27 23:56:20 $40 + boots/bindings for 2-days Feb 27 23:56:35 I've only gone to northstar so far this season Feb 27 23:56:40 Does this conversation have something to do with an Android-themed ski vacation? Feb 27 23:56:40 pfn: He's downloading information in multiple asynch requests, so I *think* he thinks there might be a design pattern that would automatically block any request after the first event is raised until the credientials are entered. Then, those creds are shared among the requests. Feb 27 23:56:43 I just take a <$2 sled and sled down my street :) Feb 27 23:56:44 since they're the only ones that have had decent conditions Feb 27 23:56:47 Or can I tune out? Feb 27 23:56:59 my buddy works at northstar <.< Feb 27 23:57:10 t0mless, don't you get the hookup? :p Feb 27 23:57:11 I know a bunch of people who work there actually Feb 27 23:57:36 just never got into it when I was growing up Feb 27 23:58:13 4 kids = too expensive to do ski stuff Feb 27 23:58:23 I am one of 4, not that I have 4 kids Feb 27 23:58:43 Someone with a Lamborgihini gave me advice once. "If you want one of these cars, don't have kids." Feb 27 23:58:53 I'll never forget those words. I wonder if he's right... Feb 27 23:58:57 lol Feb 27 23:59:07 I better get back to work <.< Feb 28 00:00:01 t0mless, work? in truckee? tech-related? how'd that happen Feb 28 00:01:03 Remote-control? Feb 28 00:01:54 devtekbeta: ok cool thanks, I will see what I can find :) Feb 28 00:12:34 Hey y'all. What would cause a gestureListener's onTouchEvent(ev) to return false? Feb 28 00:13:26 it returns false if the event is unhandled Feb 28 00:14:02 Well, this is strange. For 3 of my 4 tabs, I'm able to flip between them in onFling(). Feb 28 00:14:10 But for one of them, that event returns false, an onFling is never invoked. Feb 28 00:15:37 In the 1 that isn't being handled by onFling, there's a ListView control... could that control somehow be handling the event? Feb 28 00:17:49 It seems to me that the ListView could be overriding my onFling event, since flinging obviously happens on a ListView. Feb 28 00:18:08 Hi, how can I detect a double tap in a GridView element? The listener passed to setOnItemClickListener is not receiving the double tap events. Feb 28 00:19:35 Is that possible, or am I crazy / insane / awesome? Feb 28 00:19:42 lov thanks Feb 28 01:18:33 i swear half the 32 bit software i have is made by google Feb 28 01:18:42 I've been using the Android tutorials on the Android Developer website for OpenGL ES 2.0, but for some reason, after I start the emulator, it tells me that the emulator has stopped working. Can anyone help me debug this? Feb 28 01:19:51 It also opens up LogCat in Eclipse. Feb 28 01:20:14 Isn't it that OpenGL ES 2.0 is not supported by the emulator yet? Feb 28 01:20:30 Oh, is that true? That's unfortunate... Feb 28 01:20:32 Logcat should give you details hinting to it. Feb 28 01:20:58 https://developer.android.com/resources/tutorials/opengl/opengl-es20.html Feb 28 01:21:00 "Caution: OpenGL ES 2.0 is currently not supported by the Android Emulator." Feb 28 01:21:15 So have you _really_ read the website? ;) Feb 28 01:21:20 Oh, well I tried OpenGL ES 1.0 too. Feb 28 01:21:22 kakazza: I think that's not really updated Feb 28 01:21:24 That didn't work as well. Feb 28 01:21:36 ES1.0 is *guaranteed* to be supported by the included software rasterizer Feb 28 01:21:37 p_l: Is it? Does it work now? Feb 28 01:21:48 We're talking 2.0 now. Feb 28 01:21:58 I'm also using Android 4.0.3 to develop... Feb 28 01:22:11 kakazza: I didn't get it to work, but there is support for hw gpu acceleration in emulator... just not necessarily stable Feb 28 01:22:13 I never tried again on the emulator with my Open GL ES 2.0 projects, so I took that for granted. Feb 28 01:22:36 You get less headache when using a device, though. Feb 28 01:22:42 Eh... Are there any other ways of graphics other than OpenGL? Feb 28 01:22:51 yeah, you can use the canvas. Feb 28 01:23:02 but that's mostly for low-performance 2d stuff. Feb 28 01:23:05 you don't need opengl to do graphics Feb 28 01:23:09 Okay. That's good enough. Feb 28 01:23:21 Does it support 2d image rotation? Feb 28 01:23:37 i dont recall, but there are engines written on top of it that definitely do if you search around. Feb 28 01:23:39 Like if I want to tilt a pencil to the right or something. Feb 28 01:24:08 Okay, thanks. Feb 28 01:24:23 2d image rotation is... 2d Feb 28 01:24:24 http://www.andengine.org/blog/ you might wanna try this Feb 28 01:24:31 2d game lib on top of opengl Feb 28 01:28:20 which is the best way to implement multitouch buttons? Feb 28 01:34:02 i have an activity with a listview. how can I have the items on the list update whenever I update the data? Feb 28 01:34:43 right now I have "Thing" and "QueueOfThings". and an arrayadapter for queueofthings Feb 28 01:36:01 i'd like to be able to do something like "thinginstance.setProgress(20)" and have that value reflected in , say, a progressbar (or text field, whatever) on the list view Feb 28 01:39:36 when using smsManager.sendDataMessage how do I know what the destination port is? Also, can i use Uri.parse("tel:5555555555") for the dest address? Feb 28 01:42:30 hjf, notifyDataSetChanged on your adapter Feb 28 01:45:11 pfn: i tried that, but the view isn't refreshed with the new data Feb 28 01:45:30 hjf, then you didn't notifyDataSetChanged on your listview's adapter Feb 28 01:47:07 pfn: what i have is this: Feb 28 01:47:08 adapter= new UploadQueueAdapter(HistorialActivity.this,mService.getQueue()); Feb 28 01:47:11 lv.setAdapter(adapter); Feb 28 01:47:34 UploadQueueAdapter extends ArrayAdapter Feb 28 01:47:59 so? Feb 28 01:48:34 suppose i do mservice.getqueue().itemat(i).setname("something"); Feb 28 01:48:45 and then notifyDataSetChanged(); Feb 28 01:48:51 the view isn't refreshed Feb 28 01:49:14 then you aren't calling notifyDataSetChanged on the right object Feb 28 01:50:46 strange Feb 28 01:56:11 How can I (recursively) copy an entire directory to an SD card? Feb 28 01:59:47 use the File class Feb 28 02:00:06 it represents files and directories Feb 28 02:04:57 hjf depends on how you set your adapter up Feb 28 02:05:04 if it has a content observer or not Feb 28 02:05:42 or if you just made your adapter with the current data in the DB or service then update the db/service there is no way the adapter knows Feb 28 02:05:50 so you have to add it to the adapter Feb 28 02:05:56 or register a content observer Feb 28 02:08:40 t0mless: there's a service that's updating the objects with new data. the listview is in another activity: if i load that activity screen, it refreshes on load. but it's not refreshed while it's being displayed Feb 28 02:09:13 because you don't have a content observer Feb 28 02:09:20 so you tell the adapter the data set changed Feb 28 02:09:26 it looks at it's data and displays what it has Feb 28 02:09:31 you haven't passed it any new data Feb 28 02:09:44 t0mless: well, on creation i gave it a List Feb 28 02:09:49 if you aren't notifying data set changed, then it won't update Feb 28 02:09:51 right Feb 28 02:09:59 that's all it boils down to Feb 28 02:10:01 so on creation it gets that list Feb 28 02:10:01 which i assume is a list of references Feb 28 02:10:14 it's a list of data Feb 28 02:10:18 that it keeps locally Feb 28 02:10:31 if i update that something else, and then tell the adapter to refresh, it will re-read the list? Feb 28 02:10:37 no Feb 28 02:11:21 the adapter doesn't read the list Feb 28 02:11:29 and also, extend baseadapter, not arrayadapter Feb 28 02:11:30 http://pastebin.com/UHq2QhNi Feb 28 02:11:37 when you pass it the list in the constructor Feb 28 02:11:40 it keeps a local copy Feb 28 02:11:47 it doesn't reference the list directly Feb 28 02:12:11 so you either need to register a content observer Feb 28 02:12:19 or trigger your adapter to update it's list Feb 28 02:13:44 i don't understand, why does it keep a local copy? Feb 28 02:13:52 because that's how arrayadapter works Feb 28 02:13:56 ah Feb 28 02:14:07 if you want to mutate arrayadapter, then use the methods on arrayadapter Feb 28 02:14:11 not your list Feb 28 02:14:43 should i use listadapter? Feb 28 02:14:53 i'm using arrayadapter for...copypaste reasons Feb 28 02:14:54 use baseadapter Feb 28 02:14:56 are there any restrictions that would prevent an android app that would be a vm that runs a local linux kernel and allows a local shell with all the bin-utils Feb 28 02:15:00 and yeah, don't copypaste Feb 28 02:15:21 e1f, 1, running a vm isn't easy Feb 28 02:15:37 pfn: but it's not impossible Feb 28 02:15:45 e1f, just about impossible Feb 28 02:15:49 pfn: don't copypaste? what are you going to tell me next? don't use GOTO? sheesh Feb 28 02:15:51 e1f, unless you can write your own hypervisor Feb 28 02:16:30 a local shell is easy... all the binutils is rather difficult as well Feb 28 02:16:34 pfn: ok, then just an app that's a local shell 80x25 console that single tasks ls, or vi or emacs Feb 28 02:16:35 e1f, look at terminal ide Feb 28 02:16:46 in market Feb 28 02:17:14 <_|_> uhmm serious question here Feb 28 02:17:21 i want to run console emacs locally Feb 28 02:17:35 so i was thinking of a ways to do it Feb 28 02:17:37 <_|_> why is it when i search 'porn' on windows 7 via start menu Mediascanner.java comes up (which is part of android) ? Feb 28 02:17:56 _|_, why don't you look at it and see Feb 28 02:18:06 <_|_> eg open with eclipse? Feb 28 02:18:21 what else Feb 28 02:18:34 <_|_> netbeans Feb 28 02:19:03 open with whatever you want Feb 28 02:19:39 the better question is why don't you know where your porn is? Feb 28 02:19:54 did you misplace it somehow? Feb 28 02:20:02 <_|_> lmfao no . Feb 28 02:20:12 <_|_> and rofl. The media scanner has 'porn groove' wtf? Feb 28 02:20:31 <_|_> private static final String PODCAST_DIR = "/podcasts/"; Feb 28 02:20:31 <_|_> private static final String[] ID3_GENRES = { Feb 28 02:20:36 <_|_> then "Porn Groove" Feb 28 02:20:39 <_|_> and others Feb 28 02:20:45 so it's an id3 genre Feb 28 02:20:54 haha Feb 28 02:20:55 nice Feb 28 02:21:07 I'm going to make all my ringtones be the Porn Groove Genere Feb 28 02:21:12 <_|_> lol Feb 28 02:21:29 "// The following genres are Winamp extensions" Feb 28 02:21:32 boom chika bow wow? Feb 28 02:21:37 You can blame Winamp for that Feb 28 02:22:12 Negerpunk Feb 28 02:26:50 how do I start the SMS (or GVoice) app with multiple phone numbers prefilled? Feb 28 02:27:57 SEND intent with an array of recipients in the intent extras Feb 28 02:30:24 t0mless, do you know what the key should be for the extra? Feb 28 02:30:36 recepients I think? Feb 28 02:33:32 t0mless, would that work for google voice as well? Feb 28 02:33:45 EXTRA_PHONE_NUMBER maybe Feb 28 02:34:31 http://developer.android.com/reference/android/content/Intent.html#ACTION_SEND Feb 28 02:34:53 you could look up the source for the messaging app Feb 28 02:34:58 see what it uses Feb 28 02:35:11 google voice probably uses something similar Feb 28 02:35:22 t0mless, ok thanks! Feb 28 02:42:37 the my apps on the market app needs the "What's new" information in the update page Feb 28 02:43:04 I like reading the changelogs that are posted but I have to open each app's details view Feb 28 02:43:37 romainguy ^ fix that! Feb 28 02:43:52 no I won't Feb 28 02:44:33 booooo Feb 28 02:45:10 I'll let you stay in the guest bedroom so you can come take pretty pictures of all the new snow we got today in Tahoe! Feb 28 02:46:09 romainguy_: is not your google droid to do your bidding, he's a living breathing human being who dese-- ooooooooo shiny ~runs after~ Feb 28 02:46:28 lol Feb 28 02:46:45 I just like complaining :) Feb 28 02:46:55 romainguy_, I got another email asking honeybar to enable a kiosk mode thing... I wish ics would still allow killing the systemui or having a message that could be sent to systemui to allow it to hide... Feb 28 02:47:05 t0mless: hey man, thanks for recommending ActionBarSherlock the other day, I recently started changing my app over to using a Tabbed Fragment system and it looks fantastic Feb 28 02:47:13 * pfn ponders digging through systemui code to see if there's some backdoor way of hiding it Feb 28 02:47:22 pfn: if you're doing a kiosk, just modify the framework Feb 28 02:48:10 romainguy_, yeah, that's a terrible answer for small volume people with end-user devices Feb 28 02:48:49 pfn: Android is not designed to be run in kiosk mode at this time Feb 28 02:49:27 romainguy_, so I've gathered... Feb 28 02:49:31 pfn: Maybe it would be worthwhile for you to look into what Motorola did for its Xoom. It had a kiosk mode type thing, atleast ones sold at best buy Feb 28 02:49:36 I hope the next version changes this Feb 28 02:49:55 put tape over the buttons Feb 28 02:50:00 +1 Feb 28 02:50:02 jeppy, that's not a solution Feb 28 02:50:13 pfn: make it clear tape Feb 28 02:50:45 pfn: sure it is. Feb 28 02:52:00 there are another way to implement multitouch than a custom view? (i new press 2 buttons at once) Feb 28 02:52:10 s/new/need Feb 28 02:55:29 you cant hide the buttons in ICS? Feb 28 02:55:34 i do it on my phone Feb 28 02:58:57 canadiancow|work, not on a tablet Feb 28 02:59:07 oh Feb 28 02:59:10 * canadiancow|work should test that Feb 28 02:59:24 id tend to agree with romainguy though in this case Feb 28 02:59:27 put CM9 on it Feb 28 02:59:30 modify the fw **** ENDING LOGGING AT Tue Feb 28 02:59:59 2012