**** BEGIN LOGGING AT Thu May 22 02:59:58 2014 May 22 03:02:31 ** crickets ** May 22 03:04:52 what time is it... May 22 03:05:35 * p_l|backup is impressed by ARM May 22 03:05:40 "impressed" May 22 03:05:58 bounced ! May 22 03:06:48 p_l|backup what did you see ? May 22 03:07:03 pfn its netsplit time May 22 03:07:16 I see May 22 03:07:32 g00s: unholy marriage between UEFI and FDT May 22 03:08:15 uefi seems cool May 22 03:08:36 pfn hows vacation May 22 03:09:01 good, and too damn hot May 22 03:10:38 pfn know what the heat index is in that area ? May 22 03:10:40 uefi is pretty cool. OTOH, SBSA is probably going to have ACPI, because MS is not going to fuck around, so the mix of UEFI and FDT looks like propagating the brokeness of firmware :| May 22 03:14:30 dunno, what's heat index May 22 03:15:27 temp + humidity; like a discomfort index ala wind chill May 22 03:16:41 anyway, about 90s and 80% May 22 03:19:05 that seems oppressive :| May 22 03:19:35 it is May 22 03:19:44 going to Thailand on Saturday May 22 03:20:55 pfn finding good places to eat ? May 22 03:21:20 same place ping pong balls come from May 22 03:21:21 of course, but sanitary conditions are terrible May 22 03:23:20 pfn any android apps helping you plan your trip ? May 22 03:23:32 ratings, good places to stay, eat, etc May 22 03:24:07 No, I have little access, wifi here and there when I get a chance, I used some TripAdvisor for Thailand May 22 03:24:56 pfn any offline maps app ? May 22 03:25:30 Haven't really needed them for Vietnam May 22 03:25:47 I'll probably grab a Sim for my phone in Thailand May 22 03:25:59 hey guys, any way to export closed paths from Illustrator and read them into Path/Shape objects? May 22 03:26:06 no May 22 03:27:13 so basically, first write an editor to create paths and then import May 22 03:27:42 is there a vector editor for Android that'll do that? May 22 03:28:39 i think there is an svgView library May 22 03:28:51 maybe you can export that way May 22 03:28:56 don't get your hopes up May 22 03:28:56 hm May 22 03:29:05 can I fill svg shapes? May 22 03:29:21 ie use it as a shape in a drawable May 22 03:35:59 so, is the moto e actually available anywhere yet? May 22 03:39:54 They sell the Nokia x here, it's like $125 May 22 03:40:12 i've seen the 520/521 for $99 May 22 03:40:24 maybe even less May 22 03:40:44 ah, nokia X May 22 03:40:54 that doesn't have play services :( May 22 03:41:42 I would love to see a breakdown of sales of each WP handset... but given their average selling price is something like 120 Euros, I suspect the 520 massively outsells every other model May 22 03:43:49 520 is getting old; wonder when they update that May 22 03:55:39 Why does my sliding tab loads on first tab after sliding from third tab? May 22 03:55:52 But not from first tab to second tab? May 22 03:56:03 I need to disable this. Anyone know the fix? May 22 03:58:39 i think this sloth is taking a picture on a iPhone May 22 03:58:41 http://i.imgur.com/Ld3DCmw.jpg May 22 03:59:29 they're so cute :) May 22 04:00:12 :3 May 22 04:06:19 that is one gay asian May 22 04:06:38 gaysian. May 22 04:08:27 Anyone here know if there is an armhf ADT bundle? If not, it would be nice to see one come out. May 22 04:09:09 Or really a way to get the ADT bundle working properly on an armhf system. May 22 04:19:47 woot May 22 04:19:57 just published live wallpaper. May 22 04:20:01 been a while! May 22 04:21:04 last time: feb 28th 2012 lol May 22 04:24:23 XXCoder1 haven't seen you in a while :) May 22 04:24:33 been here whole time May 22 04:24:39 just wasnt keeping up with chats lol May 22 04:24:53 been busy with my cnc project May 22 04:25:02 and full time job lol May 22 04:25:09 sounds like fun (cnc) May 22 04:25:22 hope so. still waiting for parts lol May 22 04:25:50 anyway new wallpaper is called pixel art May 22 04:26:02 pixels that draw according to its rules and such May 22 04:26:10 makes pretty amazing pictures. May 22 04:27:14 https://dl.dropboxusercontent.com/u/53432577/Preview1.png May 22 04:27:48 it was born from failed project May 22 04:28:04 you probably remember me asking how to do strange stuff with graphics May 22 04:31:44 so May 22 04:31:52 what ya think of that lwp lol May 22 04:37:20 XXCoder1 nice :) May 22 04:37:28 yeah. thanks. May 22 04:37:50 I decided to price it $1.50 because of lot of work, but probably will be sold 2 or 3 times :P May 22 04:38:09 unless it becomes a big hit. hah May 22 04:38:20 would be funny if I got 500,000 buys :P May 22 04:41:01 XXCoder1 its a live wallpaper right? May 22 04:41:06 yeah May 22 04:41:14 no point on static pic :D May 22 04:41:15 Nilium knows all about getting rich from those :D May 22 04:42:02 pixel art is very quiet wallpaper May 22 04:42:19 node battle is full of action but easy to ignore May 22 04:42:28 and windy flowers... well its unique LOL May 22 04:43:40 I still dont know why I made last one. I like it even though its pretty far off my preferences. May 22 04:44:09 it was reused from my ancient screensaver, which was reborn from futzing around with flash May 22 04:45:15 https://lh5.ggpht.com/oTde_INPWtjrWHPKdm_HE1fAx2Y8OzKGrOBatpOCjpy2D105_Ux6-dB3Tr4h71GK8j0=h900 lots fun May 22 04:49:00 cheerful :) May 22 04:49:07 yeah May 22 04:49:19 it gets riciously cheerful with touch flowers May 22 04:49:38 it pops a flower where you touch, with random spin. it slowly fades out May 22 04:50:11 https://play.google.com/store/apps/details?id=rolf.livewallpaper.windyflowers&hl=en May 22 04:50:59 thats pretty nice ! May 22 04:51:10 yeah May 22 04:51:17 man May 22 04:51:29 "Simple and too cute!!!!" May 22 04:51:33 hehe May 22 04:51:44 it takes me back. it took me while to fogure how to fake wind with random and math May 22 04:51:56 * Nilium shanks g00s. May 22 04:52:06 I had to do it AGAIN for android since different systems means different responds May 22 04:59:59 http://zeroturnaround.com/rebellabs/java-tools-and-technologies-landscape-for-2014/ May 22 05:00:33 oh look May 22 05:00:36 fad website May 22 05:00:40 light gray on white May 22 05:00:43 fuk that May 22 05:02:07 I have no idea what you're complaining about there.. May 22 05:02:16 light gray text on white May 22 05:03:07 I see dark grey on off-white. May 22 05:04:19 gordon_ wwaait, eclipse there ... May 22 05:04:31 i thought eclipse is so bad ;P May 22 05:04:41 I use eclipse too May 22 05:04:59 dunno if alternatives is better worse or both at once May 22 05:06:00 IntelliJ is the best, end of story. May 22 05:06:04 Disagreeing means you're wrong. May 22 05:06:47 g00s: or corporation doesnt want to give money for intellij? May 22 05:06:49 You will agree with this sentance. May 22 05:07:00 *disagree May 22 05:08:06 slide 5 interesting May 22 05:08:57 actually they are all pretty interesint; thanks gordon_ May 22 05:09:35 np May 22 05:09:48 good to see 26% of linux users May 22 05:10:14 zomg 4.5% still using struts 1 May 22 05:14:28 How to get the height of a view in xml? May 22 05:14:42 take out your pixel meter May 22 05:14:44 jk May 22 05:15:58 i want to make my view fill the remaing space of height May 22 05:20:02 weight May 22 05:20:13 and match_parent May 22 05:28:23 hey folks having trouble with a boot loop May 22 05:28:26 would a factory reset help? May 22 05:28:48 arooni-mobile try #android-root May 22 05:32:19 g00s: https://lh6.googleusercontent.com/-iQsLkv3YYeA/U3lsTPATpkI/AAAAAAAANqU/hOWifB6HKYI/w881-h661-no/IMG_20140516_165630.jpg see the death stare? "i fucking hate you!!!" May 22 05:32:48 waait … why are they tied up :P May 22 05:34:01 local laws, was a camping ground -- they actually ripped that stake out of the ground chasing down some old golden retriever May 22 05:34:29 the owner went off his nut at us, said they were vicious and "you shouldn't have dogs like that" man it pissed me off - ever been to a dog park? lol May 22 05:35:42 bankai_au oh my ! May 22 05:36:18 well, i bought my first gun after the ordeal of an unattended camping neighbor's pittbull wanted into my camp May 22 05:36:30 don't lose your dogs ;) May 22 05:39:04 actually several dogs; camping neighbors having birthday and smoking weed oblivious to what their dogs were doing May 22 05:39:25 what's the law about gun use there? May 22 05:39:28 jackasses :) May 22 05:39:43 lots of laws; use a gun and you'll probably wind up in court May 22 05:40:38 but since i almost got attacked in my own tent, on all fours, with no weapons, i decided i'd deal with court if necessary May 22 05:40:50 if ever necessary ;) May 22 05:42:16 a few years ago, there was a big story here about 2 dogs barelling down the trail without their owner; the guy felt threatened for his life and shot them May 22 05:42:54 then realised it was really two kids? lol May 22 05:43:12 heh, no … killed those dogs i believe May 22 05:43:54 sad, stupid. May 22 05:44:29 My neighbor down the street has this 90lb-ish beast that runs into the garden after my 75 yrold mom ... I swear I'm gonna blast the varmint :) May 22 05:44:57 https://lh3.googleusercontent.com/-n7uzGSPatdo/U3z7HHUFaJI/AAAAAAAAceo/CphtwfxJcRs/w599-h456/BoCOJdJIQAEzod7.jpg May 22 05:44:57 heh - big stupid thing, barks and runs away ... he'll probably get nailed my a car first May 22 05:45:18 Syracuse in the country !!! May 22 05:45:24 gordon_ heh ! May 22 05:46:16 bankai_au when i was out trail running i got bit in the ass May 22 05:46:25 almost sent that dog to heaven too May 22 05:46:35 very violent aren't ya May 22 05:46:48 these idiots with pittbulls May 22 05:47:02 we have some funny laws regarding those dogs... May 22 05:47:58 actually 2 incidences with the same dog. first time it bit my ass becuase it got out of its collar pulling away from its owner, and got me. May 22 05:48:32 second time, i was at a 'Y' intersection in the trail, and ran one way, the owners were going the other way but the dog decided to run after me May 22 05:48:41 g00s, maybe you should change deodorant or something May 22 05:48:56 g00s: good to see you May 22 05:49:02 hey thepoosh May 22 05:49:13 was looking for you yesterday May 22 05:49:39 alex_PP maybe; i ran in the mountains a lot. i got to see all kinds of wonderful animals; the only ones i worried about were ratllesnakes and mad javelinas May 22 05:50:03 thepoosh oh i was watching a B-side movie called 'the machine' May 22 05:50:26 alex_PP and stupid dogs May 22 05:50:39 g00s: the one with Guy Pierce? May 22 05:50:51 kinda newish ? maybe May 22 05:50:56 pretty dark May 22 05:51:21 hmmm May 22 05:51:40 this one? May 22 05:51:41 http://www.imdb.com/title/tt2317225/ May 22 05:51:43 Hello new friends May 22 05:51:52 thepoosh yeah May 22 05:52:04 BigBawb XXCoder1 … some big people here ! May 22 05:52:53 ='D May 22 05:53:01 g00s: I was remebering this by mistake May 22 05:53:01 http://www.imdb.com/title/tt0268695/?ref_=nm_flmg_act_31 May 22 05:53:25 thepoosh hehe, looks campy May 22 05:53:52 I forgot the word "time" May 22 05:53:56 XD May 22 05:54:03 anyone here can help me May 22 05:54:08 with getting my phone unbricked May 22 05:54:09 arooni-mobile: ? May 22 05:54:12 oh May 22 05:54:14 no May 22 05:54:18 try #android May 22 05:54:19 :\ May 22 05:54:23 no one is answering May 22 05:54:30 :) May 22 05:54:46 arooni-mobile: try XDA May 22 05:55:12 bankai_au http://www.wired.com/2014/05/a-dog-tracking-gizmo-with-a-novel-new-networking-technology/ May 22 05:55:42 arooni-mobile yeah, this channel is about android, dogs, and Nilium's tooth drama May 22 05:55:47 g00s, did you see garmin bought an electric collar maker May 22 05:56:08 might be some gps dog gadgets in the near future May 22 05:56:09 alex_PP no, i remember they had a dog harness with an antenna May 22 05:58:03 https://buy.garmin.com/en-US/US/on-the-trail/pet-obedience/cOnTheTrail-cPetObedience-p1.html May 22 05:58:06 i really dislike these May 22 05:58:37 https://buy.garmin.com/en-US/US/on-the-trail/dog-tracking-training/astro-/prod89564.html May 22 05:58:40 this is cool though May 22 05:59:51 yeah, not a big fan of shock collars May 22 06:00:24 almost always a gentle way to train; unless your dog has behavior problems but shocking typically just makes that worse - time to go to animal behaviorist May 22 06:00:39 yeah 2nd thingy looks cool May 22 06:01:10 and! May 22 06:01:22 i dont like that antenna though May 22 06:01:30 forerunner 15!! May 22 06:01:35 working dogs, bird dogs - they often have no-snag collars May 22 06:01:40 GPS + ANT and not massive!!! May 22 06:01:41 https://buy.garmin.com/en-US/US/into-sports/running/forerunner-15/prod145621.html May 22 06:02:02 alex_PP oooh, a new one wow May 22 06:02:16 at least you'll know where they are stuck May 22 06:02:18 i must have ran over 10k miles in my old forerunner May 22 06:02:26 had that thing for yeaaars May 22 06:02:32 run about 3k miles / year May 22 06:03:34 kind of a weird bezel May 22 06:04:09 brb, coffee May 22 06:04:09 alex_PP do you think these are still useful though, i guess its lighter than a phone + runkeeper May 22 06:04:13 yup May 22 06:04:58 hahaha May 22 06:05:17 nice, I like running too May 22 06:06:34 i like single use devices May 22 06:06:43 don't like having a dead phone May 22 06:07:12 or even carrying a phone when i'm sweating like a beast May 22 06:07:19 yeah, its convenient to look at your wrist May 22 06:07:26 alex_PP maybe an android watch :D May 22 06:07:34 but, guess thats not single use May 22 06:08:15 nice to have it on your wrist, less stuff bouncing around May 22 06:08:32 yeah May 22 06:08:40 and they beep and stuff May 22 06:08:45 hehe May 22 06:08:48 that hard to hear from your pocket May 22 06:08:53 *that's May 22 06:09:50 one time i almost spend the night out in the mountains getting injured on a run; after that i wound up taking a small adventure racing pack with some minimal survival stuff May 22 06:10:17 can someohne help me iwth my android phone May 22 06:10:28 i also tended to run at night, so i had lighting gear, etc May 22 06:10:29 none of the other channels are responding May 22 06:10:39 arooni-mobile, /topic May 22 06:10:54 * alex_PP is a hypocrite May 22 06:11:04 arooni-mobile the problem is, if you we give help on that kind of stuff, others come for the same May 22 06:11:14 * g00s hypocrite too May 22 06:11:15 geez i know but i already tried the other channels May 22 06:11:22 and ive tried for the past hour May 22 06:11:49 may as well try random irc channels, plenty left to choose from May 22 06:11:56 ask in #iphonedev May 22 06:12:01 as good as here for that ;) May 22 06:13:22 alex_PP these are great btw; for photography as well as running / night stuff May 22 06:13:23 http://www.zebralight.com/H52w-AA-Headlamp-Neutral-White_p_120.html May 22 06:14:20 bankai_au might also like that since he does camping; but get the floody one ;) better for in-camp May 22 06:15:46 don't often use lights May 22 06:15:54 im stuck in a boot loop on the htc one m7 (att) after installing whatsapp plus and restartiing the phone in the middle of the install; anyways; i reflashed recovery (twrp) but it shows splash screen then goes back to boot loop; i can get cwm to flash however. also tried to do factory reset and clear cache/dalvik cache, as well flash boot.img (says (failed; remote not allowed)) May 22 06:15:55 if it's dark i'm asleep or drunk May 22 06:16:00 anywa ill just put that there May 22 06:22:09 alex_PP yeah those led lights are great for night light painting photography May 22 06:24:00 cool stuff http://www.amazon.com/Nightwatch-Painting-Light-Noel-Kerns/dp/1908211024 May 22 06:24:31 pretty easy to set up a few on very low (3 lumens, etc) and do long exposure May 22 06:24:39 get the milky way, stuff, etc May 22 06:34:50 a book with photos inside? May 22 06:38:37 yeah, this is another one - more technique http://www.amazon.com/Painting-Light-Photoshop-Techniques-Photographers/dp/1608955044 May 22 06:46:49 hey does clock work recovery 6.0.4.8 for htc one charge the battery when i'm not using the phone? May 22 06:47:03 read the topic, like you were told before May 22 06:47:17 geez May 22 06:47:21 its a simple yes or no May 22 06:47:32 it's a simple "has nothing to do with this channel" May 22 06:47:34 anyone mind helping me establish and login to an https connection and log the response? the tutorials I have found seem to be either outdated or simply wrong May 22 06:48:53 when you say "login", what do you mean? May 22 06:50:27 pass a username and password taken from edittextviews in the layout May 22 06:50:47 i believe as an httppost is what i want May 22 06:51:09 g00s: I find these expensive, given you can click “Images” in google search :) May 22 06:51:24 im attempting to port code from the OS that shall not be named May 22 06:51:30 Jesperhead: you 'believe'? you should probably find out first May 22 06:51:35 Jesperhead: BeOS??? May 22 06:51:41 lol May 22 06:51:58 bankai_au: I do not know objective c, but it appears to be a POST method May 22 06:54:39 do something like a httpclient, httppost and httpresponse May 22 06:55:20 in the obj C code, it passes a dictionary with the indices "userName" and "passWord". there is a command called "POST" with the URL (ending in .php) of the login May 22 06:55:25 or retrofit ... that can do posts May 22 06:55:34 unfamiliar with retrofit May 22 06:55:37 support lib? May 22 06:55:48 nuh, jake wharton lib May 22 06:55:56 LibJW haha May 22 06:56:03 *blink* May 22 06:58:18 someone earlier mentioned that i cant do any networking in UI threads May 22 06:58:31 wait nvm i figured that out May 22 06:59:40 I/O 2014 has a lot of android stuff about wearables and games May 22 06:59:55 well, i guess they pretty much talked about everything else by now May 22 07:02:08 i don't get the wearables thing, so it should be interesting May 22 07:02:33 a talk about the beginnings of Danger https://medium.com/tech-talk/d823af31f7c May 22 07:02:53 man, was the peanut the beginning of android ? May 22 07:04:00 people have deduced that the motorola round smartwatch will be US$249, and have got all excited May 22 07:04:29 can almost assume it'll be in the I/O gift box May 22 07:04:58 the only gift Google needs to give is a new permissions system :) May 22 07:10:15 hello May 22 07:10:38 :P hello May 22 07:10:45 I get this error when I build project in android studio 0.5.8 http://paste.ubuntu.com/7500454/ May 22 07:11:48 can someone please help me May 22 07:16:33 slani never saw that before May 22 07:16:55 seems like the linux guys always have the most problems XD May 22 07:18:44 private static String getCredentials(String userName, String password){ May 22 07:18:46 return Base64.encode((userName + ":" + password).getBytes()); May 22 07:18:47 } hrm why does this fail? May 22 07:18:56 ... ignore me and my fails May 22 07:19:09 :D May 22 07:19:13 http://pastebin.com/Xfm9Hshk May 22 07:20:05 are you sure you dont want to first base64 encode and then get the bytes? May 22 07:20:52 g00s: I asked google and some people had this problem in studio 0.3 and gradle 0.6 after update. May 22 07:21:12 slani those are ancient May 22 07:21:19 danijoo: like, encode from string? May 22 07:21:22 prehistoric even May 22 07:22:07 err tostring, nvm May 22 07:22:41 wtf. I made new project and get the same error. smoething must be wrong with update May 22 07:23:14 use as 0.5.8 , gradle 1.12, and gradle-plugin 0.10.2 May 22 07:54:39 How to touch EditText programmatically? May 22 07:56:24 With boxing gloves, usually. May 22 07:56:29 Besides that, your question is vague. May 22 07:57:53 MalekAlrwily: peformClick() May 22 07:58:09 testing... May 22 08:02:19 "touch" == "simulate UI action"? May 22 08:23:48 freaking SearchView... i have a contentprovider to show suggestions, when i click one i go to another activity. When i hit back i return to the first activity. The searchview's text is empty but the suggestions still show. What could be wrong? May 22 08:26:14 I want to have a day and night mode in my app, just like in Google Maps when the map gets dark at night. Does anybody have an idea or experience on how to approach this? I was working with the light sensor, but this doesn't get me any satisfying results.... May 22 08:30:21 the time? May 22 08:30:50 i'd say: let the user pick it themselves, or use some online service May 22 08:31:35 yeah, but google maps also enters night mode, when you drive through a tunnel May 22 08:32:07 whats wriong with the light sensor? May 22 08:34:03 can any body help me on this: http://stackoverflow.com/questions/23782532/how-i-can-show-the-navigational-bar-icon-on-the-left-of-my-customized-action-bar May 22 08:34:48 if i use the light sensor i have to use thresholds May 22 08:35:11 and the measured brightness is not how you (as a human) experience brightness May 22 08:35:14 hello, I have BaseAdapter for my GridView, for some reason getView gets called multiple times, something ~ 8, even if I have only 2 items in it, it calls ~8 times for position 0. Is that normal or I have some bug ? May 22 08:35:47 karakoram-II: why dont use you use the native methods to set a navigation drawer and app icon? May 22 08:35:56 vegetablesalad19: it probably does that to determine the sizes of the content May 22 08:36:24 vegetablesalad19: look at 'world of listview' on youtube, it's relevant and essential watching May 22 08:36:37 osxorgate, thanks May 22 08:40:20 danijo thanks for considering my help, I do not want to show the application icon on the action bar and the title text on center May 22 08:43:35 danijoo, Native mathods does not allowing me because I am using custom action bar as you can see in my question in stackoverflow May 22 08:44:06 hi, i've created my own theme in a library project (to reuse it) and the styles gets applied in the GUI designer but not in the running application. The library project works as i'm using several classes from it, also eclipse seems to find the styles. Anyone got an idea what's wrong? May 22 08:56:59 Hey guys, does the doInBackground(String... urls) for an extended AsyncTask class have to have the return type of String? May 22 08:57:15 you see I wish it to return a String array instead May 22 09:02:05 use the good old split xD May 22 09:05:04 Trekka12: AsyncTask is a generic, AsyncTask, the last one Result is the return type of doInBackground May 22 09:13:14 I am reading the native-activity code that uses app glue and I saw that the window object was destroyed when not visible/closed and recreated when the application get the focus back May 22 09:14:15 I guess it doesn't work like this only for the native-activity, but it's something of the Android application that happens even in the Java code. Anyway... May 22 09:15:30 my question is about the opengl es context creation. since it's an object that depends on the window, it has to be recreated everything the new Window instancing occurs and it leads to a problem: May 22 09:16:13 isn't it possible to keep the opengl context with the opengl objects of this context? May 22 09:17:04 I mean... isn't it possible to initialize the context once for the whole application life? May 22 09:18:18 because if I have to create new contexts every time it happens, I will need to recreate lots of opengl objects because they are dependents of the context May 22 09:25:32 Is it allowed to copy styles and drawable from API 19 folder and use them for API 10? I want to use AlertDialog and spinner styles. May 22 09:30:12 hey guys, I'm trying to write a build script with gradle .. can you chain dependant tasks and have them set or return values somehow? it's a long script so I'd like to break it apart May 22 09:32:47 WantToCode: Why wouldn't you be allowed? May 22 09:33:56 It was written in the themes.xml that you should not modify Holo themes, otherwise it wont pass CTS May 22 09:34:08 It is just for that particular file then? May 22 09:34:53 How is using AlertDialog and Spinner modifying the theme?! May 22 09:35:15 Have you tried changing the version to 10? May 22 09:35:41 WantToCode: maybe see HoloEverywhere? not sure if the appcompat lib has the same thing too May 22 09:36:21 I have minsdk 10 and I would like to to display the alert dialog and the spinner same in api 10 as it is in api 19 May 22 09:37:11 deleet: Thanks. I want to change only these two widgets, can I do that in HoloEverywhere? May 22 09:39:03 I believe you'll have to declare that with your theme but yes May 22 09:39:23 so, make new styles that are based on holoeverywhere and apply them to your widgets May 22 09:39:52 ok Thank you. May 22 09:43:28 ahh ok, thx rayo May 22 09:52:27 Morning May 22 09:52:32 morning May 22 09:52:42 What is the best way to add a colored circle to the interface? Canvas and just draw it? May 22 09:52:56 there is a library to that May 22 09:53:00 to do that * May 22 09:53:09 if u are thinking about putting a number in it May 22 09:53:12 like how facebook does it May 22 09:53:38 Kevel: well, maybe this might be an option in the future, for now definitely just empty circles and colored cirlces May 22 09:53:47 Do you know the name? May 22 09:55:51 can I toggle R.attr on the fly? May 22 09:56:51 platzhirsch: no idea May 22 09:57:01 platzhirsch: i need it also, just not right now May 22 09:57:23 Kevel: haha, that sounded a bit like trolling in retrospective May 22 09:59:31 platzhirsch: https://github.com/jgilfelt/android-viewbadger May 22 10:00:01 platzhirsch: hope that's what you're looking for :) May 22 10:00:08 Kevel: alright, thanks man ;) May 22 10:02:20 how do you guys debug ontouch events? May 22 10:02:37 the touch event cancels after the debug kicks in May 22 10:02:49 and i never get to see what happens when i drag my item to where i want to May 22 10:03:09 you mean when you hit a breakpoint? May 22 10:03:19 jvrodrigues: for visual feedback you can turn it on under dev settings on your device May 22 10:04:31 hey guys, how can I make a pulsing animation w/ ObjectAnimator? May 22 10:04:47 I can animate the property May 22 10:04:52 Kevel, thanks May 22 10:04:57 repatMode = infinite May 22 10:05:08 how do I chain it to reverse May 22 10:06:12 hmmm May 22 10:06:16 that isn't quite it May 22 10:06:21 its when i hit a breakpoint yes May 22 10:08:16 jvrodrigues: you can just drop the cancelled events if you want the dragging to continue maybe May 22 10:10:06 how would i go about to do that? May 22 10:16:09 jvrodrigues: intercept the toucheevent and return the value that causes it to stop being processed May 22 10:16:19 that may work, not sure though May 22 10:36:53 guys does get child at work with multiple view types? May 22 10:37:49 deleet: I downloaded and added HoloEverywhere Library. I have done the steps from the Github wiki, but the R file is not generated. In console there is whole list of error. regarding v7appcompat.Should I remove v7 support? May 22 10:59:32 i've created my own theme in a library project (to reuse it) and the styles gets applied in the GUI designer but not in the running application. The library project works as i'm using several classes from it, also eclipse seems to find the styles. Anyone got an idea what's wrong? May 22 11:04:51 rayo: setting your theme in the manifest? May 22 11:05:05 hey there. I'm trying to go through the training course on developer.android.com and I'm stuck at adding an item to the actionbar. no matter what option I specify for app:showAsAction, it'll always appear in the overflow menu May 22 11:05:06 any ideas? May 22 11:06:16 I should have enough room, but even the "always" option puts the item into the overflow menu... May 22 11:06:26 Kevel: yes with android:theme="@style/MyTheme" in the application tag. Do i have to specify the package or library where it's from? May 22 11:06:32 when i have a listview, how can i add content to the adapter above what's visible on the screen, without having the listview change what rows are visible? May 22 11:07:39 osxorgate: i would try to remember which element was visible on top and scroll position inside it, add the element and scroll back to that element May 22 11:11:52 anyone using a websocket library for Android? May 22 11:15:32 hm if i do setTheme(R.style.MyTheme); before setContentView(R.layout.myactivity); then it works but not if i only use it in the manifest file May 22 11:19:18 So, anyone here that could help me with my problem? May 22 11:22:35 nevermind, i extended the activity class and was setting a theme in there. Totally forgot about that and was wondering why my global theme was not working ... stupid me May 22 11:23:26 Chris92: using support lib? May 22 11:24:48 osxorgate: nope May 22 11:27:20 i got a quickquestion May 22 11:27:28 if i set the padding of a textView through code May 22 11:27:38 is it converted to dp or is it just regular pixels May 22 11:27:53 and if it is indeed regular pixels how can i convert them to dp May 22 11:27:54 what you enter is pixels May 22 11:28:27 use .getDimensionPixelSize(R.dimen.blah) May 22 11:29:14 osxorgate: I wanna target android 4.0 and up eventually, so I don't need the support lib as far as I understood. the actionbar works, just all the items appear in the overflow menu instead of as an icon next to it. May 22 11:29:32 chris what's the menu.xml like then May 22 11:30:34 I have added HoloEverywhere library and did the required steps from Github wiki. But now the R file is not being generated. On Project -> Clean, aapt.exe crashes. May 22 11:31:16 osxorgate: http://bpaste.net/show/EImPLhmeK42kfVUR8vxk/ May 22 11:32:21 the drawables exist, added them to the res folder already, so there shouldn't be a problem displaying them. May 22 11:33:03 Chris92: android:showAsAction="always" May 22 11:33:11 not app: May 22 11:33:23 i believe app: is related to the support lib May 22 11:33:56 osxorgate: I'll try that, hold on May 22 11:34:32 that worked! Thank you :) May 22 11:35:07 osxorgate: its related to your xml namespacing or something afaik May 22 11:35:23 you can set it to whatever you want as long as it matches May 22 11:35:24 what is the difference between getdimension and getdimensionpixelsize? May 22 11:35:27 and which one should i use? May 22 11:39:51 read the doc, it mentions what it does May 22 11:43:18 osxorgate: xmlns can be set to anything as long as its value is the android apk res one May 22 11:43:26 just tested by calling it ballsack May 22 11:43:36 layout was full of ballsacks and worked fine May 22 11:43:37 :p May 22 11:43:47 kevel: it matters not. he needed android:showAsAction May 22 11:44:54 got it May 22 11:44:56 what was he doing? using app? May 22 11:45:05 java docs are bugged in my android studio May 22 11:45:07 kevel: yep... May 22 11:45:13 but i did find the docs online May 22 11:45:16 another question though May 22 11:45:22 cause android studio told me to do so instead of android:showAsAction ^^ May 22 11:45:24 is there a way to reset formatting to match layout? May 22 11:45:29 I see in some of the studio stuff creates weird templates May 22 11:45:37 which can tend to through some new guys off May 22 11:45:48 atleast most of it is documented May 22 12:00:22 I'm importing some libraries with gradle(maven) and now I get a warning that there are multiple dex files defined. May 22 12:00:42 Is there a way I can exclude the dex file of that library that seems to throw the error? May 22 12:18:11 how can i unset the padding in a style? @null works but the editor gives me a warning that @null is not allowed May 22 12:18:44 rayo: set it to 0 then? May 22 12:19:40 then it's set to 0 not undefined, when i set it to 0 the padding defined by the 9patch gets ignored, it's only applied if i use @null May 22 12:22:28 rayo, don't know if it's supposed to be like that, but I haven't seen a warningless editor in a long time. i suggest you get used to it. May 22 12:24:02 Syzygy_: i already have lint warnings but this warning is on the same level as layout_width not set (always visible at the bottom in the editor) but it runs anyway May 22 12:24:40 yeah, same here. May 22 12:24:55 the layouts aren't displayed either+ May 22 12:27:15 i guess it's okay to set it to @null as it's working on the device May 22 12:27:51 yeah, in the layout editor there are even exceptions and "can't find class" errors May 22 12:27:58 but it works fine on the devices May 22 12:38:53 Does anyone know of a site that kind of gives a nice visual breakdown of different android layout.XML files? May 22 12:42:35 looks like my pixel art lwp is out now. May 22 12:42:47 probably easier to find if use pixelart lol May 22 12:44:39 probably not public yet May 22 12:56:02 I have a fragment which displays a listview, all ok so far. However when I want to show a dialog from the listview, it is shown in the original main activity, not the activity that loaded the fragment. May 22 12:56:06 What could be wrong? May 22 13:02:36 I'm importing some libraries with gradle(maven) and now I get a warning that there are multiple dex files defined. Is there a way I can exclude the dex file of that library that seems to throw the error? Or is there another way around this? May 22 13:03:41 http://stackoverflow.com/questions/23807630/dialog-shown-in-first-activity-not-the-one-that-created-the-fragment May 22 13:15:50 vinay Maneti here? May 22 13:16:34 Can somebody help me. I get this weird alertDialog box in API 10. Works good in API 19 May 22 13:16:35 http://puu.sh/8WtQE.png May 22 13:17:53 WantToCode, nothing wierd about it. May 22 13:18:00 that's a standard android 2.3 alertbox May 22 13:18:19 still hates how they reversed the ok/cancel buttons May 22 13:18:33 The textviews are black and there is extra radiobutton in the second spinner May 22 13:19:05 I have the default themes Theme.AppCompat.Light May 22 13:22:04 Anyone know what could cause this when compiling?.... May 22 13:22:26 CHK include/linux/version.h May 22 13:22:26 make[2]: *** [include/linux/version.h] Error 2 May 22 13:22:26 make[1]: *** [sub-make] Error 2 May 22 13:22:26 make[1]: Leaving directory `/home/nevol/kernel/samsung/msm8660-common' May 22 13:22:27 make: *** [/home/nevol/out/target/product/hercules/obj/KERNEL_OBJ/usr] Error 2 May 22 13:22:27 make: INTERNAL: Exiting with 13 jobserver tokens available; should be 12! May 22 13:24:06 it means a yet another level of make failed, iirc May 22 13:26:12 So is it on my end or theirs May 22 13:28:21 where does eglChooseConfig get its configs from? The result is wrong, and so my display is ending up with the wrong colors May 22 13:28:22 i have a navigation drawer from left and from right. if i put my phone into landscape mode, i can't use the right drawer because of the soft keys... anybody got an idea? :D May 22 13:29:28 yeah, don't have drawer on the right. May 22 13:30:00 thans May 22 13:30:03 *thanks May 22 13:30:47 or have an alternative way to trigger it. May 22 13:31:21 check if there are softkeys and move them further into the screen depending on that May 22 13:31:28 no May 22 13:31:30 that's terrible May 22 13:31:45 so are softkeys May 22 13:31:48 because you'll make drag / tap conflict with soft or hard buttons. May 22 13:31:57 making options unclickable for people May 22 13:31:58 don't t May 22 13:32:01 don't do that crap May 22 13:32:21 remember, if there are no hard buttons, chances are you get capacitive keys at same location May 22 13:32:48 Syzygy__, the point of having a good app is not to be an asshole to people that don't have your total preferences. May 22 13:33:24 yeah i know May 22 13:35:37 luckily i'm not a designer. May 22 13:36:00 using SearchView, how can i pass an extra value to the contentprovider's .query() uri? May 22 13:53:16 Anyone having experience with WebSocket libraries? May 22 13:54:53 I'm working on a project where I want to use an Android phone as a dedicated device for an application. I want to set it up so when it boots, it boots directly into the app, and when you turn it on it also goes straight to the app. Is there a way to do this? May 22 13:56:37 tkeith: you can make your app a launcher app and therefore will be called when the homebutton is pressed and also is the first app to run May 22 13:57:05 if i pull out my drawer, the rest of the screen darkens. according to google i'm the only one who has a problem with this? May 22 13:57:25 i'm calling invalidate on my getView method, however it's not invalidating some views May 22 13:57:33 should i call view.invalidate on another method? May 22 13:58:26 rayo: That sounds promising. All that's left to do then is to get rid of the lock screen, is there a way to do that? May 22 13:59:13 disable locking in settings? May 22 13:59:32 locking? May 22 13:59:35 you should also probably create a restricted account and disable settings. May 22 14:01:01 I don't see a way to disable locking -- only to disable security (passcode etc) May 22 14:01:05 Where can I get the source code of the builtin Android widgets like the "POwer control" widget? May 22 14:01:09 It still has slide-to-unlock or whatever May 22 14:02:20 tkeith: probably not, or at least i haven't found a way to do it. we had to modify the android source code and build our own image to disable the lockscreen altogether May 22 14:02:39 tkeith, screen lock -> none May 22 14:02:41 not slide. May 22 14:03:29 rayo: Ok, how complex is that to do? I have programming experience but not Android dev experience... is it something I could figure out or should I try to find someone? May 22 14:03:45 ffs. May 22 14:04:05 Mavrik: I'm turning on the phone now to see if I can find that option, maybe it's OS dependent? It's running CM7 right now May 22 14:04:16 doh May 22 14:04:25 why are you using obsolete builds May 22 14:04:48 Mavrik: The options are none, pattern, PIN, and password May 22 14:05:08 Mavrik: The device is a Droid Incredible -- I need to use something where I can buy lots of them for cheap May 22 14:05:16 well May 22 14:05:21 Mavrik: I think I can install CM9 on this though, would that have the option? May 22 14:05:27 I have no idea May 22 14:05:35 I'm testing this on kitkat May 22 14:05:42 don't really have anything older around atm May 22 14:05:55 Mavrik: Hmm ok, I'll try it out and see May 22 14:07:32 tkeith: remember to check what the behavior is after reboot, it could be that there's still the slide to unlock screen May 22 14:08:11 there isn't. May 22 14:08:46 also, as I said, use a restricted account so people won't be able to just circumvent everything by going into settings. May 22 14:08:53 How difficult is it to rebuild CM and get it running on a device? May 22 14:09:00 even though, that'll be hard on pre-4.2 tablets. May 22 14:09:16 Mavrik: This isn't to prevent malicious users getting around the system, it just has to prevent accidentally getting around it May 22 14:12:06 Can anyone help me build this rom for samsung hercules. Theres no way i can get it to compile! https://github.com/Cl3Kener/BlueLightning May 22 14:12:24 clevas: try #android May 22 14:12:25 clevas: read channel topic plz May 22 14:12:48 ok sorry May 22 14:21:31 guys i'm invalidating my view in the getviewmethod but after a while it stops calling the method and all the items in the view get the custom formatting i assigned them before the invalidate May 22 14:21:33 any ideas? May 22 14:21:47 shuold i not be invalidating view in the getView method but somewhere else? May 22 14:25:18 i'm going to reask the question May 22 14:25:25 what's the best way to remove custom formatting added in code May 22 14:25:39 i want some items on my listview to appear in a certain way and others in another May 22 14:25:49 i thought if i called invalidate the default layout would be used May 22 14:25:57 but that doesnt seem to be the case May 22 14:26:07 and it only randomly works May 22 14:26:40 ugh May 22 14:26:49 invalidate will just request view to be redrawn, it won't reset properties May 22 14:26:56 oh May 22 14:27:01 how can i reset properties then? May 22 14:27:11 without re-inflating the view May 22 14:27:36 do i have to do it by hand? May 22 14:27:41 yes. May 22 14:27:47 bummer May 22 14:27:58 is it a better overall code if i reinflate? May 22 14:28:08 i always thought inflating took so much memory May 22 14:40:25 Hi. I'm planning to create an app that has a tcpclient, constantly connected, sending and receiving data. I believe I should use a separate thread for this task, right? If so, what class should I be focusing? I'm a bit confused around AsyncTask, Thread, Handler... May 22 14:41:03 I've read that AsyncTask shouldnt be used for long lasting tasks, so I can exclude that one May 22 14:42:43 hydra__, if you need a thread, use a thread. May 22 14:42:44 :) May 22 14:43:14 that simple? May 22 14:43:24 yes May 22 14:43:35 AsyncTask is a (rather horrible) convenience API over threads May 22 14:43:41 how should that thread communicate, both directions, with UI thread? May 22 14:43:42 you also have Java Executors available if you need them May 22 14:43:46 is there a known issue with setError on an editText or am i just doing it wrong? May 22 14:43:53 hydra__, depends on your use case. May 22 14:44:03 i set a text it shows the error but the text itself is blank May 22 14:44:56 Mavrik: on the Thread, i'll be receiving data from a socket, parse it, and update UI based on that data. May 22 14:45:20 use a message bus. May 22 14:45:31 also make sure you don't leave the thread haging. May 22 14:45:34 *hanging May 22 14:46:42 ok, i'll read about Thread class then May 22 14:47:51 Mavrik: i've been doing some experiments with AsyncTask (and Java in general) and I ended up making this code inside AsyncTask. I'm not sure if its terrible bad. Would you mind checking? http://pastebin.com/d0ZxbXHE May 22 14:48:44 Mavrik: specially lines 29-36 May 22 14:49:50 hydra__: yo dawg i heard you liked asynchronous calls, so I put an async call in your async call. May 22 14:50:02 (hint: You don't need an async task for this) May 22 14:50:45 lol May 22 14:51:13 Somebody user the drag-sort-listview lib before? May 22 14:52:19 me May 22 14:57:22 Zharf: is it possible to do the drag-drop without an Imageview? to touch on? May 22 14:57:29 is there a way to remove the listview items dividers? May 22 14:57:39 they seem to stick there whatever it is i do May 22 14:58:00 jvrodrigues: it's just theming. Modify your themes iirc. May 22 14:58:37 jvrodrigues: android:divider="#00000000" and set divider height too May 22 14:59:05 android:divider="@color/white" May 22 14:59:06 android:dividerHeight="-2dp" those are in my listview properties May 22 15:00:29 jvrodrigues: http://stackoverflow.com/questions/1914477/how-to-remove-line-inbetween-two-listviews-in-android May 22 15:01:57 tried it, didn't work =( May 22 15:02:02 thus i'm asking here May 22 15:02:31 Tried it, works perfectly May 22 15:07:18 Is anyone aware of a camera module IC ( 5 megapixel or better) with raw rgb output that can handle more than two cameras? May 22 15:10:57 I'm using a TextView as a log, adding lots of Strings. I'd like the TextView to automatically scroll down to the last appended String. Googled for some time, and tried all the suggestions I've seen, but none of them works. So how's it done in 2014? May 22 15:11:13 FrancescoV, I think you need some view to grab on, does'nt have to be imageview May 22 15:11:30 mr_lou: put your textview in a scrollview, have your scrollview scroll after setting the text. May 22 15:11:46 FrancescoV, I'll check code though May 22 15:12:41 Zharf, found drag_start_mode which has a onLongPress, I will look for this May 22 15:13:14 it's been a year or so since I did anything with it -.- May 22 15:14:32 Zharf: thanks ;) Now I'm checking DragSortController, what the possibilities are with it May 22 15:18:05 FrancescoV, the code doesn't seem to require for it to be an imageview May 22 15:19:06 Zharf: idd, you just have to set the handle id May 22 15:33:52 hi there May 22 15:34:06 is there anyone who has a fair experience with uiautomator by any chance? :-P May 22 15:35:56 not fair May 22 15:35:58 just a little May 22 15:36:01 what problem do you havE? May 22 15:36:15 maybe I can help somehow May 22 15:37:25 ok buys May 22 15:37:27 mvp or mvvm ? May 22 15:37:33 *guys May 22 15:41:47 basically I have a RelativeLayout that contains a ScrollView.. but it looks like that the code is actually switching an ImageView to the ScrollView (I'm testing as a black box) May 22 15:42:16 the result being that if I look for the ScrollView I can't find it.. and if I travel through the hierarchy I see that there's an ImageView in place of the ScrollView May 22 15:42:35 but if I run the uiautomatorviewer and look at the hierarchy there, the ScrollView is actually there May 22 15:42:59 so I guess it's a problem with how the UI components get switched but I have no clue at what I might do differently May 22 15:43:31 I reported the issue at the bug tracker with the dump of the uiautomatorviewer and the code of a sample test case that fails: https://code.google.com/p/android/issues/detail?id=69931 May 22 15:45:47 I get an error that multiple dex files define the same thing (spring framework). Looking through my included libraries I find that it's only included once. gradle -q dependencies lists only android-support-v4 as included several times even though my gradle code specifically excludes them May 22 15:46:50 http://pastebin.com/qb4VF5bG here's the error and the gradle -q dependencies output May 22 15:48:05 facebook for example is included like that: compile project(path: ':Facebook', exclude: '*support-v4.jar') May 22 15:52:33 Quick question what takes more resources, inflating a view or changing the format of the items (setting them invisible and whatnot) and then changing them back (on the next getView call)? May 22 15:53:34 my experience with uiautomater is quite bad May 22 15:53:45 How to replace a view by an other view with the same feature May 22 15:53:52 it probably has different (old) hierarchy May 22 15:56:40 gordon_: yes, I suppose that's what's happening.. but is there any way to force a refresh of the hierarchy from the test code? May 22 15:56:52 lov, Thanks, but I tried that already too. May 22 15:56:53 dont know yet May 22 15:56:58 got too less exp with it May 22 15:57:05 but I will think about it over the weekend maybe May 22 15:57:20 what is the term for referencing other resources inside a resource called? May 22 15:57:26 lov, I've found many google results, that are all different. Would you mind pointing me to one that you would say 100% should work? May 22 15:57:35 e.g. @string/foobar May 22 15:59:59 mr_lou: putting a textview inside of a scrollview will do exactly that. I'm not really sure what the problem is that you're having, so I'm not sure how to solve your problem. May 22 16:01:59 I don't get it. On the UI Thread I start a new Thread which is used to start a service, inside the service I perform an AsyncHTTP Request, the result is used to perform Thread.sleep for a certain amount May 22 16:02:25 somehow it blocks the UI thread, although the Thread.sleep is performed inside the thread that was used to launch the service, at least I thought May 22 16:02:49 lov, I put my TextView inside a ScrollView at the moment. Then I append lots of strings to the Textview. It always stays at the top, no matter what I try inserting of various tips'n'tricks I've found online. Lemme pastebin the very simple code for you. May 22 16:03:23 platzhirsch, pastebin the code May 22 16:03:39 thepoosh: too much, but let me see what I can do May 22 16:03:44 mr_lou, have you tried setSelection? May 22 16:04:01 platzhirsch, just the code that calls the thread and the result handeling May 22 16:04:32 lov, http://pastebin.com/mM25mKfU May 22 16:05:18 thepoosh, No May 22 16:05:41 mr_lou, you are not scrolling the textview but the scrollview May 22 16:05:47 try scrolling there May 22 16:06:22 thepoosh, TextView is also being scrolled. See the print() method at the bottom. May 22 16:06:33 Error:(343, 21) cannot find symbol method build() May 22 16:06:45 mr_lou, that is exactly what I'm saying May 22 16:06:47 new NotificationCompat.Builder(context).build(); what could be wrong here? May 22 16:06:54 it should build just fine May 22 16:07:16 you should setSelection on the textview and scroll the scrollview May 22 16:07:34 thepoosh: maybe this is sufficient: http://pastebin.com/aWwKkRDu May 22 16:07:35 Syzygy__, are you obfuscating the code? May 22 16:08:44 barely, give me a second May 22 16:08:47 thepoosh: I just realize that probably the AsyncTask is what blocks everything May 22 16:09:04 platzhirsch, what is EventLoop? May 22 16:09:08 though I really don't see why it would block the UI being executed in a thread May 22 16:09:18 notification = new NotificationCompat.Builder(context).setSmallIcon(R.drawable.ic_launcher).setContentIntent(pendingIntent).setContentTitle(notificationTitle).setContentText(notificationMessage).setAutoCancel(true).setVibrate(new long[]{300, 300, 300, 300}).setOngoing(false).setOnlyAlertOnce(true).build() May 22 16:09:22 this is the whole line May 22 16:09:25 thepoosh: another thread I start soonish after these operations May 22 16:09:43 (this works because every method call returns a notification builder object. May 22 16:09:45 ) May 22 16:10:37 platzhirsch, what does the constructor look like May 22 16:10:38 ? May 22 16:10:49 mr_lou: have you considered getting the height of the textView and calling scrollTo with the y value of the height? May 22 16:11:12 thepoosh: public EventLoop(MyService service) { this.service = service; } May 22 16:11:52 thepoosh, I disconnected, did you say anything to that in the meantime? May 22 16:12:00 platzhirsch, all services run on the MainThread except IntentService May 22 16:12:22 lov, tv.scrollTo(0,tv.getHeight()); right? Tried just now. No difference. May 22 16:12:28 thepoosh: oh, I have to use IntentService instead of Service? May 22 16:12:57 I thought launching Service in a Thread moves the Thread to the launching Thread, but since the operation returns the run method terminates, so I guess you are right? May 22 16:13:11 no May 22 16:13:17 services run on the UI thread May 22 16:13:39 you need to either start a new thread or use an IntentService May 22 16:13:46 I would just spawn a new thread May 22 16:13:58 thepoosh: that's what I do, see the first part of my pastebin May 22 16:14:18 my Activity starts the ServiceLauncher Thread, and below it shows that in the run code the intent is started May 22 16:14:29 what is ServiceLauncher and how does the constructor look like? May 22 16:14:35 oh May 22 16:14:37 no no no May 22 16:14:44 it's a Runnable May 22 16:14:53 the thread needs to start from the service May 22 16:14:58 you cannot link to it May 22 16:15:02 oh May 22 16:15:13 so what I did was nonsensical? May 22 16:15:23 sort of May 22 16:15:34 why not AsynTask? May 22 16:15:39 *AsyncTask May 22 16:15:48 because I am running a MediaPlayer inside this May 22 16:16:02 and I want it to be active even if the application goes into background etc. May 22 16:18:07 but I don't clearly understand the side-effect of using startService inside a Thread launched from UI Thread May 22 16:22:36 that looks like a nice way to handle it http://stackoverflow.com/questions/8852308/how-do-i-start-a-service-in-a-new-thread May 22 16:27:05 platzhirsch, just make sure you can stop that thread at some point May 22 16:27:19 I have an error where multiple dex files define org/springframework/core/ErrorCoded; however the spring framework is only included once. May 22 16:27:31 so I don't see how it might be defined several times May 22 16:27:44 thepoosh: yeah, this is still a poor man's solution and I really don't see the point why one would use a service in the first place. Could just start it directly May 22 16:27:51 maybe an IntentService is really what I wan May 22 16:28:06 any idea what might cause this? May 22 16:28:54 the full error is: http://pastebin.com/qb4VF5bG May 22 16:29:39 lov, Wow, finally found something worked. If you're curious: https://groups.google.com/forum/#!topic/android-developers/Gjb2Lfgh13E May 22 16:30:03 lov, I find it very silly though, that I have to create a new thread for something as simple as this... May 22 16:30:18 lov, Kinda reminds of of vertical centering in web. May 22 16:30:30 thepoosh, ^ May 22 16:43:58 So apparently Google Play Services uses the players real name as their user name? So when a game is using multiplayer it displays the real names of both players? May 22 16:53:11 sometimes in the past, many services like google, facebook, xbox live and the playstation network decided that anonymity on the internet is for suckers, so they kind of got rid of it. May 22 16:53:42 there are still work arounds for most of that, but it's annoying May 22 16:57:05 ^^ May 22 16:57:12 sad but true May 22 17:07:14 are IntentServices started in the same way as Service? May 22 17:09:40 anyone have a good, convincing argument for using dagger in Android? I'm convinced, but I'm having trouble convincing my coworker May 22 17:10:14 shekibobo, pretty much anything dependency injection related May 22 17:10:21 there's TONS of resources for why that's useful May 22 17:11:43 o/ May 22 17:15:06 so IntentService launches a thread for every onHandle method invocation and dies right after the method has terminated May 22 17:15:23 very nice,.. not. and putting a Looper.loop at the end solves it, this seems wrong ^^ May 22 17:16:49 platzhirsch, http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/4.4.2_r1/android/app/IntentService.java/#64 May 22 17:17:15 I have tried enter a file onto emulate sdcard on Eclipse but get this error: Failed to push selection: Read-only file system. If I write ./adb remount it tell me remount succeeded but I get the same error after. My O.S is linux May 22 17:17:28 thepoosh: pointing me to the stopSelf method invocation? May 22 17:17:42 yep May 22 17:18:34 basically it shows that as observed the service is stopped? May 22 17:19:11 well, every message is (startActivity call) is handeled and then the service is "destroyed" May 22 17:19:20 though I am not sure what happens afterwards, supposedly if a new intent comes in the intentservice is revived again? May 22 17:21:09 so currently I run Looper.loop() at the end of the service. When leaving the activity I invoke stopActivity and apparently it kills the sevice, invoking onDestroy, though I am not sure if really everything is cleaned up afterwards May 22 17:22:08 I am still confused if this is really the right approach for my MediaPlayer Service which should keep running in the background. It works perfectly fine, it just has a feeling of wrongness on it May 22 17:22:20 platzhirsch, that's wrong May 22 17:22:35 and intent service is basically a job service May 22 17:23:31 like an AsyncTask May 22 17:23:38 pfn: so what would you suggest me to do May 22 17:24:18 guys how are your currrent installs to total installs ratio in playstore? May 22 17:24:45 meadhikari: about 1:2 May 22 17:24:51 or 1:2.25 May 22 17:25:03 i am getting 25% too May 22 17:25:29 any way to approach them and get feedback? May 22 17:25:33 depends heavily on the app kind i think May 22 17:27:30 hey, I have another question. is there a setting that let's me define the size of the drawable, e.g. when I use android:drawableLeft in a TextView? May 22 17:29:09 pfn: at least the intent service helps that it wraps the whole scope into this one service, which all gets destroyed on stopService() May 22 17:36:42 hello May 22 17:36:50 yello May 22 17:38:02 do you know how View's onRestoreInstanceState knows which Parcelable to use (so its the same that was created in onSaveInstanceState)? May 22 17:39:58 It uses the id May 22 17:41:11 what if view doesnt have an id May 22 17:43:12 Then its state isn't saved/restored May 22 17:44:29 ok thx May 22 17:45:07 i cant figure why on earth someone would use Parcelable May 22 17:45:11 JakeWharton: how does dagger make singletons with @Singleton? digging through the code and not really sure where to be looking May 22 17:46:33 are fragments removed when their containing view is destroyed? May 22 17:46:35 mrpyo: use otto May 22 17:47:36 can't I'm creating library that has to be consistent with the rest of android sdk May 22 18:04:07 I just got a "light blue" screen of doom May 22 18:04:33 death actually, but I can call it whatever I want! May 22 18:12:14 I have an open source app that Ive recently added in-app billing to. Is it safe to keep it open source, since the source code now has the RSA key in it? May 22 18:12:27 Im talking about the Base64-encoded RSA public key provided by Google Play Dev Console May 22 18:14:05 just hide the rsa key before publishing the code May 22 18:14:24 Isn't the public key public? May 22 18:14:39 I have no idea. May 22 18:14:52 And removing the key everytime I push the code will be a pain May 22 18:15:00 In general cryptography, there is no problem with people seeing your pubkey May 22 18:15:19 Read it from a file added to .gitignore then May 22 18:15:33 Oooh, good idea May 22 18:15:54 But if its harmless for others to see the key then theres no need May 22 18:16:09 So you are sure that its safe to have it public? May 22 18:16:18 no, not at all May 22 18:16:26 careful not to accidentally publish ur private key too :) May 22 18:16:37 Wait you arent sure? May 22 18:16:44 But I _think_ the public key is meant to be public May 22 18:16:50 The secret stuff is on your priv key May 22 18:17:06 I didnt even know I had a priv key May 22 18:17:40 public keys are generated from private keys iirc May 22 18:19:51 autrilla: yes May 22 18:43:30 hey guys. I have an application that receives h264 NAL units. Before I implement a caching service, does anyone know of anything that exists? May 22 19:13:25 Hi May 22 19:14:28 I have write an app in java for watch a ip camera and receive the sound, it work good, now i want to do the same for a tablet but i cant use all of the code because i have to be conform with the android framework, i see that there is "VideoView" for receive video streams but i have a question about it : May 22 19:15:20 Is it possible to set the "boundary" ? Because the ip camera doesn't use a standar boundary in the mjpeg stream, and we have to precise it (or the standard system doesn't reconise the mjpeg stream) May 22 19:15:57 isnt it just the views boundary? May 22 19:17:28 afaik android simply stretches the video to fill the videoView May 22 19:18:03 no, hum when i speak about "boundary" it's in the mjpeg stream protocol (it's a http protocol multipart/x) May 22 19:18:55 and in that http protocol, there is some "words" called as "boundary" who are repeated sometimes for say "the start of a part" May 22 19:19:19 http://en.code-bude.net/2013/01/02/wiki-motion-jpeg/ May 22 19:20:30 *sigh* there's nothing like being on a deadline for an App and dropping your G3 to the point it shuts off ever few seconds... May 22 19:20:56 I think samsung should have offered a low cost service to replace the glass. May 22 19:21:04 I've already spent $300 getting it fixed once May 22 19:24:08 petecouture genymotion has a sgs3 image May 22 19:24:27 hmm, past 2am now, probably time to call it a night May 22 19:24:38 too much beer May 22 19:24:40 Unfortunatly my laptop can't handle VM with all the other applciations open May 22 19:24:43 12:24 PM :D May 22 19:24:47 g00s: but thank you May 22 19:24:52 yw May 22 19:25:31 It's not standard procedure but I slapped the phone until it would boot. May 22 19:25:44 And now I set the screen timeout to 20 minutes May 22 19:25:57 it seems to be stable that way May 22 20:01:17 Once I download the Google Play Store support library from the SDK manager. How do I add the library to my project? May 22 20:01:23 I figured it would be automatic May 22 20:02:35 petecouture http://developer.android.com/tools/support-library/setup.html May 22 20:02:46 Ya I'm reading that now May 22 20:03:21 The one thing is it's asking me to edit the build.gradle file but I don't have an file named that May 22 20:03:43 uh oh, you're using eclipse May 22 20:03:51 nm May 22 20:03:58 Scrolling down is clearer May 22 20:04:03 Is that bad bankai? May 22 20:04:11 depends who you ask ;) May 22 20:04:22 I was at Google a year ago and they told me to use it May 22 20:04:52 how old is AS now, g00s ? May 22 20:05:09 hm, about a year. announced at I/O 2013 right ? May 22 20:05:28 a year ago, AS would was horrific May 22 20:05:37 so yeah, makes sense they said use eclipse ;0 May 22 20:05:51 Lol it was a Google TV event May 22 20:05:52 just remember its still a beta :) May 22 20:06:18 gmail was beta for 10 years May 22 20:06:41 i wish they would fix this 'disposed editor' internal error i keep getting May 22 20:06:55 i wish you'd stop using it and complaining about it May 22 20:07:04 lol May 22 20:07:09 ha May 22 20:07:16 lol May 22 20:08:02 i'm not convinced intellij with an older gradle plugin has less bugs May 22 20:08:33 i tried it for about 10 minutes May 22 20:08:42 oh well you gave it a good go May 22 20:08:46 :D May 22 20:09:36 hmm May 22 20:09:49 For some reason Eclipse won't let me import the project May 22 20:09:50 btw the disposed editor shows up in plain intellij too May 22 20:09:55 the GPS library project May 22 20:10:12 This isn't the first time Eclipse wouldn't let me import May 22 20:10:26 Anyone have a fond preference for any particular kind of model object graph, or should I just start parsing and persisting everything in SQL? May 22 20:10:57 shekibobo there are some ORMs here http://android-arsenal.com/ May 22 20:11:13 thanks May 22 20:11:14 or write your own ;) May 22 20:14:10 anyone feel good about ModelMapper? Looks pretty fun. May 22 20:14:28 3 stars doesn't instill much confidence, though May 22 20:17:37 Ah I figured it out. You have to create a new project from existing code May 22 20:17:57 You can't import with Android... May 22 20:18:31 I'm trying to do something crazy in an app: May 22 20:18:54 I want to programatically draw little pop up bubbles attached to various UI elements for a walkthrough May 22 20:19:06 and am having a hard time May 22 20:21:08 kurtisnelson i thought that was an "onboarding UX fail" May 22 20:21:15 kurtisnelson: have you looked into http://developer.android.com/reference/android/widget/PopupWindow.html May 22 20:21:37 The client insists on this, yes the UX is too complicated May 22 20:22:01 api 18 has https://developer.android.com/reference/android/view/ViewOverlay.html May 22 20:23:27 but maybe you want to see that devbytes video May 22 20:23:38 can't remember if they tell you how to do it May 22 20:23:43 yeah, that's the right concept except we have to go back to gingerbread May 22 20:24:00 popup window might do it May 22 20:24:17 i think you can only show one popupWindow at a time though May 22 20:24:33 yep that was the problem. May 22 20:24:45 (3 of us have been exploring this for the whole week) May 22 20:24:54 we've got a really really janky thing working May 22 20:25:07 you could always access the window directly too May 22 20:25:55 if we can get the X, Y coordinates of a view and then do that maybe? May 22 20:26:24 chat heads territory here May 22 20:26:29 yeah. you could either use a FrameLayout, and just manually place things, do it in the window. there's lots of options. May 22 20:27:17 https://github.com/amlcurran/ShowcaseView that library does some "crazy" stuff you might look into how they implement it May 22 20:27:56 we looked at showcase, tehy just really do transparent activities May 22 20:28:48 I've done similar things. it takes a little work and a little math. but very doable using basic stuff in android. May 22 20:30:07 yeah I think we might just need to try doing it at a lower level May 22 20:30:28 even placing things manually using a frame layout isn't that low level. and given what you said. i think that should be enough May 22 20:32:29 if not the next route would be the WindowManager: (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); May 22 20:32:36 you can use that to add/remove views to the window. May 22 20:39:52 I'm actually building that one right now May 22 20:41:54 what problems are you having with that? May 22 20:47:10 hadn't tried it before. May 22 20:47:14 so we will see how it does May 22 20:53:04 hiya, any experienced android game developers here? May 22 21:00:13 adding to the window works, now I just have to figure out how to get the screen-wide position of the view I am targeting May 22 21:00:21 I want to ask, how do I persist the main game object on phone calls/ screen rotation etc... May 22 21:00:38 a bundle isn't good enough? May 22 21:00:46 view.getLocationInWindow(); May 22 21:01:00 view.getLocationOnScreen(); May 22 21:01:08 one of those should work May 22 21:01:35 how did I not know about these. May 22 21:01:46 :D May 22 21:01:50 hm, just got the gmail update. nav drawer now has settings at the bottom there; i guess this continues the trend of removing settings, help, etc from overflow May 22 21:02:31 G+ is an abomination on following the UX guidelines now May 22 21:04:44 i like settings in the overflow :( May 22 21:05:13 in contrast, i like the new style :) May 22 21:05:45 hm, I'm always getting 0, 0 from both of those May 22 21:05:49 less unneccessary stuff -> better May 22 21:06:55 just updated, don't like it, too much scrolling to get there ... coz, you know, i go into settings 'all' the time lol May 22 21:07:02 viovu: i would save it in a singelton + persitent save onDestroy May 22 21:07:28 is that best practice? May 22 21:07:32 bankai_au: i never used the Help or about and settings like 2 in my lifetime. so.. May 22 21:07:54 viovu: you dont have many other options.. May 22 21:08:34 i.e no other May 22 21:08:49 I've seen some open source apps using the application class, but is there another way? May 22 21:09:04 thats the singelton i mentioned May 22 21:09:22 crashed it already - great update :S May 22 21:09:32 i wouldnt even save to persitent state. If the user is long enough out of your game to let android close it, better start at a safepoint/new level May 22 21:09:58 bankai_au crashed gmail ? May 22 21:10:20 ya May 22 21:10:31 i've notice it crashes a lot the first time i start it after update May 22 21:10:37 but then its ok May 22 21:10:39 heh May 22 21:10:39 Yip May 22 21:10:48 just gotta let it settle into its new environment May 22 21:11:00 For gmail i wondered that they didnt move the labelsettings out of overflow and made the refresh a single icon May 22 21:11:24 Why have a refresh icon when you have pull down to refresh? May 22 21:11:41 you have to be at the top to pull though right ? May 22 21:11:44 why have a refresh option when you have a pull down to refresh :p May 22 21:11:54 correct May 22 21:11:55 another question, I'm making a game where you click a bunch of letters and the engine has to check if the word exists, should I use a trie? May 22 21:12:28 viovu: you could also use some modified search suggestion May 22 21:12:39 but i thing i trie would be fine, too May 22 21:13:15 k cool, I haven't programmed a trie before, but I'm busy researching May 22 21:13:51 viovu: btw if you game state data is small enough to fit in a bundle, that would be the best way May 22 21:14:06 clicking letters and stuff sounds like it may fit May 22 21:14:15 what is small enough? May 22 21:14:25 smaller 1 Mb and deserializeable May 22 21:14:30 in strings, ints.. May 22 21:15:13 common bundle stuff May 22 21:20:10 k thanks May 22 21:20:36 1mb is too big for a bundle May 22 21:20:47 yeah but its afaik the limit gordon_ May 22 21:20:50 ups May 22 21:20:53 g00s: May 22 21:21:10 jaynewstrom: if getLocationOnScreen is returning 0,0 I'm probably doing it at the wrong spot in the lifecycle? May 22 21:21:14 onresume is where I have it May 22 21:21:23 everything over 1 meg will crash the app May 22 21:22:14 bundle is for transient state, SQLlite or JSON for permanent. May 22 21:22:44 you are mentioning JSON as safe-method together with SQLite. May 22 21:23:05 which are totally different things. You mean json to file? May 22 21:23:08 kurtisnelson: more than likely. it would be better if it was in a custom view and you could override onSizeChanged and do it there. or you could use viewTreeObserver to wait for it to be measured and all that good stuff May 22 21:23:48 the idea is we can attach this to any view without modifying that target, so I'll try the observer route May 22 21:25:21 kurtisnelson: ok. I use a helper method because there are two different apis depending on if you're on JellyBean above or not May 22 21:25:38 at least for the removeListener stuff May 22 21:26:10 kurtisnelson: http://pastebin.com/tvFsMXyj May 22 21:35:45 jaynewstrom: almost there, now I just have to figure out when it is the *final* onGlobalLayoutcall May 22 21:36:38 not sure how to do this … i need to characterize a library wrt the amount of garbage it generates 'per event'. there will be other things going on the the app that generates garbage too, i need to subtract that. basically, i'd like 'x allocations per event for classes in this library'. how would i go about doing that with the android tools? the device monitor seems useless / horrible May 22 21:36:57 kurtisnelson: do you move stuff after it's drawn? Generally when I use it I'm just able to grab the first "onGlabalLayout" and stop listening after that. May 22 21:37:07 jaynewstrom: good point May 22 21:37:17 hey g00s May 22 21:37:22 hey Napalm May 22 21:37:51 wow i feel old, just watched the house of commons talk about trains in my local area May 22 21:37:56 they are that bad May 22 21:38:06 the subject made its way to the house May 22 21:38:07 lol May 22 21:38:47 Napalm the ones that don't fit ? May 22 21:39:15 overcrowding during commute hours May 22 21:39:26 delays and cancellations May 22 21:39:29 that type of thing May 22 21:39:34 i, read like 2000 trailes were ordered but too big for the platforms May 22 21:39:49 not enough train cars on each train May 22 21:40:04 we call them 'cars; May 22 21:40:13 not trailers May 22 21:40:25 but i dont know about them being too big for platforms May 22 21:40:52 oh, france http://www.independent.co.uk/news/world/europe/french-rail-operator-orders-hundreds-of-new-trains-too-big-for-platforms-9412274.html May 22 21:41:09 one station transfers 38,000 people per day by train during commute May 22 21:41:13 nuts May 22 21:44:13 g00s: nice find, now thats a blunder! May 22 21:44:14 :) May 22 21:44:25 heh May 22 21:45:10 so i wonder how i could profile this library May 22 21:45:29 i need to put it in a test harness i guess, poke it, and measure the # of objects allocated May 22 21:45:43 jaynewstrom: yep, things work. May 22 21:45:59 now I just need to cut out window manager and do this in a proper fashion and we will be happy May 22 21:46:23 haha! yeah. there's always more than one way to solve a problem! May 22 21:47:23 g00s: which library? May 22 21:47:28 mqtt paho May 22 21:47:35 whaaa? May 22 21:47:49 maybe i should use a the oracle JVM and use their sane tools May 22 21:47:57 since that library is cross platform May 22 21:48:02 # should be consistent May 22 21:48:27 also I don't know why I haven't been hanging out in here, I'm already in all the freenode channels. May 22 21:48:36 hey guys. I have an application that receives h264 NAL units. Before I implement a caching service, does anyone know of anything that exists? May 22 21:49:31 hm, is jprofiler free ? May 22 21:49:51 oops, nope May 22 21:50:44 ac_slater: there's a bunch of LRU stuff floating around the internet May 22 21:50:58 and I know Volley has that stuff built in May 22 21:54:10 kurtisnelson: interesting. I'm pretty new to android. Never heard of LRU. This is an awesome start. Thanks mate. May 22 21:54:41 LRU is almost always the best choice for a caching algo, it's super simple yet effective May 22 21:56:49 awesome. May 22 21:57:30 the rates are fairly high and I'll probably be muxing into a container. So, LRUcache will be sideloaded into a container. Looks promising. Thanks again May 22 22:28:18 bankai_au gets funny around 2:30 http://digg.com/video/what-a-dog-sees May 22 22:28:46 <_cypha> anybody have any idea how I can draw a rectangle outline on opengl-es in android? I found the FullFrameRect class in google's grafika project on github which seems to draw a drawable with a texture like i'd like it do but I'm not sure how to change it so draw the outline only. I'm really new to opengl May 22 22:40:27 _cypha: hey, perhaps i can help.. what you want is to use glDrawArrays with GL_LINE_LOOP May 22 22:52:37 hi, what is easiest way to upload file via http post? May 22 22:52:47 Can't find much info in documentation May 22 22:53:38 marius: you simply need to format your multipart body and write it to the outputstream of a urlconnection May 22 22:54:55 Napalm: thanks, will have a look May 22 22:55:22 marius: http://www.codejava.net/java-se/networking/upload-files-by-sending-multipart-request-programmatically May 22 22:55:33 that kinda shows you what to do May 22 22:55:45 its not good code though May 22 22:56:23 he's missing the content-length header that is required for Cotnent-Transfer-Encoding: binary May 22 22:56:33 somehow I'm expecting 10-16 lines of code :/ May 22 22:57:57 and? thats all it is May 22 22:58:01 marius: http://tools.ietf.org/html/rfc2388 May 22 22:58:06 spec for it May 22 23:00:27 <_cypha> Napalm: do you happen to know of any code samples for the outline thing? May 22 23:02:14 _cypha: http://stackoverflow.com/questions/10178474/android-gles20-gldrawarraysgles20-gl-line-loop May 22 23:03:07 <_cypha> thx Napalm i'll give it a try :) May 22 23:25:02 Hello May 22 23:26:37 Is onRestoreInstanceState called for views that were created in the middle of activity lifetime? May 22 23:27:04 can be May 22 23:27:11 if in fragments or dialogs May 22 23:27:48 its underlying functionality is driven from http://developer.android.com/reference/android/view/Window.html#restoreHierarchyState%28android.os.Bundle%29 May 22 23:27:54 mrpyo: i think it just iterates over the view tree and any views with IDs get their state saved May 22 23:28:40 But lets say I have fragment, its inflated... May 22 23:28:59 And i create a view after button click May 22 23:29:21 Will onRestore... be called? May 22 23:29:41 Of this view? May 22 23:30:52 no, because the view never existed during restoration May 22 23:31:43 if you want dynamic view addition with logic so its saved after rotation and restored correctly you need to recreate the views during the parent restoration before the children get a chance to be "restored" May 22 23:32:09 Ok, I get it May 22 23:39:20 Is there a way to restore it manually though? May 22 23:49:39 yes May 22 23:49:41 and save it May 22 23:50:33 mrpyo: http://developer.android.com/reference/android/view/View.html#dispatchRestoreInstanceState%28android.util.SparseArray%3Candroid.os.Parcelable%3E%29 May 22 23:55:43 omg wow May 22 23:56:01 i just found an open source project that a is a complete vector tile map engine May 22 23:56:04 and its fucking good May 22 23:56:11 on par with Google Maps May 22 23:56:25 https://github.com/opensciencemap/vtm May 22 23:56:33 http://www.opensciencemap.org/ < apk link on page May 23 00:01:41 What's the recommended tool to run to indent my java code automatically? May 23 00:02:05 Also my android xml layouts, but I assume that would be a different tool May 23 00:12:14 Android studio? May 23 00:12:27 What's that? May 23 00:12:39 Google it May 23 00:13:07 What ide do You use? May 23 00:13:14 notepad May 23 00:15:06 why May 23 00:15:33 paralith: don't you mean .. 'why god, why??' May 23 00:15:34 lol May 23 00:15:41 Will the ide provide me any advantages I can't get by just using notepad or ed? May 23 00:15:45 Napalm: I was trying to be nice May 23 00:15:59 too nice, try better next time :D May 23 00:16:03 ok. May 23 00:16:04 You are trolling right? May 23 00:16:07 no May 23 00:16:08 * paralith clears throat May 23 00:16:15 :) May 23 00:16:16 NOTEPAD? May 23 00:16:18 * paralith falls over May 23 00:16:28 ofc he is, he' knows what an IDE is and replies with Notepad May 23 00:16:28 is that better? May 23 00:16:41 much May 23 00:16:44 :) May 23 00:17:11 I’ve seen a professional programmer go off on one of his employees who was using notepad May 23 00:17:13 it was gruesome May 23 00:17:56 I use a screen reader, that's part of the problem. I think eclipse has some accessibility support, but I haven't tried it yet. Not sure about android studio, maybe not May 23 00:18:42 debugging must take you a million years May 23 00:19:03 omg yes, there's nothing like gdb or pdb May 23 00:19:22 the use a real IDE!! May 23 00:19:23 Log.i("appname", "message");, install, logcat, read the output, repeat May 23 00:19:23 *then May 23 00:19:32 why don’t you use android studio? May 23 00:19:43 I don't think IntelliJ works with my screen reader. I'm 100% blind May 23 00:19:51 ohhhhhhh May 23 00:20:01 well now I just feel like a jerk. May 23 00:20:27 * paralith blames Napalm for this May 23 00:20:30 you're not, I'm just new to android dev May 23 00:21:18 Damn You just defined hell to me May 23 00:21:38 Debugging android in notepad being blind May 23 00:21:42 Most people would find unix ed a bigger hell than notepad, I use it every day May 23 00:29:03 tsp: you could try astyle May 23 00:29:17 Its linux cmd line tool May 23 00:29:29 But should work on windows May 23 00:29:31 thanks May 23 00:30:08 http://paulbakaus.com/tutorials/performance/the-illusion-of-motion/ < really good article May 23 00:30:44 I'm checking out eclipse, but when I set my sdk path I get this... error fragment. This Android SDK requires Android...update ADT to the latest version. May 23 00:31:02 I think the ... is supposed to be something, but even when I select all the text and copy it, it's still there. May 23 00:50:46 fukcing hell May 23 00:51:07 just purchased the new wolfenstein game.. 40.7GB download??! wtf? May 23 00:51:59 lol, 12 hour download predication drops to 1 hour.. love my net connection May 23 00:54:18 Heh, I hope you have fun May 23 01:16:40 I'm trying to get a scrollable list embedded in an activity May 23 01:17:02 do I need another activity to house the listview? May 23 01:17:30 all the googling suggests that but that makes sense if you want the list to be the whole screen.. I don't want it to be May 23 01:23:57 adymitruk: what? just add a listview to your layout May 23 01:25:08 I did.. just not familiar of how to use it directly without wrapping it in another activity, which all the tutorials have you do May 23 01:25:33 adymitruk: i've never seen one tutorial like that May 23 01:25:44 so you need a loader.. May 23 01:25:54 even for just a text line per item? May 23 01:27:38 no? May 23 01:27:59 where are you getting the text from? May 23 01:28:22 anything that might take a long time, ie) from disk or network then you should use a loader May 23 01:29:04 stevehanov.ca/blog/index.php?id=120 checkout that datastructure, never heard of it before May 23 01:29:34 no.. I'm adding the items via a text box above the list view via hitting an add button May 23 01:29:37 very simply May 23 01:29:50 loader seems overkill May 23 01:30:29 listfragment May 23 01:30:47 arrayadapter May 23 01:32:40 is it ok to ask UI questions here? May 23 01:33:27 developer.android.com guide shows an example in the ListView documentation where you need to extend a ListActivity May 23 01:33:38 How is eclipse able to remember my old deleted projects and workspaces? I am killing eclipse, removing (rm -rf /path/to/workspace) my workspace and trying to import a project, (android with existing code) but Eclipse says that a project with that name already exists? How does it know to re-create the workspace folder and the project names _after I delete them_ ?? May 23 01:34:19 deadmund, why are you not using Android Studio or IntelliJ CE? May 23 01:35:30 adymitruk: Because Eclipse is the Goolge recommended IDE May 23 01:35:47 deadmund: it isn't May 23 01:35:54 On this page: http://developer.android.com/tools/sdk/eclipse-adt.html They highly recommend it: "Developing in Eclipse with ADT is highly recommended and is the fastest way to get started" May 23 01:35:56 they switched at the last IO May 23 01:36:41 adymitruk: great, eclipse blows. What do they recommend now? Android Studio? May 23 01:36:51 yes May 23 01:36:56 get off of Eclipse May 23 01:37:04 thank fuck May 23 01:38:27 Downloading Android studio now. Eclipse works fine, most of the time. But it has the most confusing bugs. How could they possibly think it's a good idea to bury project names in some hidden folder somewhere so that eclipse NEVER forgets them. May 23 01:38:53 anyway, I was pissed when I came here. But, thinking about it, moving away from Eclipse will be great. May 23 01:39:22 adymitruk: thanks May 23 01:48:43 I just tried eclipse for the first time, and as a screen reader user, my window title is stuck at %trimmedwindow.label.eclipseSDK and tree views don't work properly. Hmm May 23 01:52:27 deadmund: good move May 23 01:55:30 tsp: Android Studio or IntelliJ CE May 23 01:55:48 I don't think either of them work with screen readers, but I'll try May 23 02:12:27 Android studio is out, the only thing accessible about it is the installer. May 23 02:23:10 How do I check to see whether an activity was launched by another activity? May 23 02:23:29 yaw: it always is May 23 02:23:46 yaw: what do you want to know? if it was launched for a specific reason? May 23 02:24:44 Napalm: my main activity checks to see whether or not a user is signed in already. if not it launches the SignInActivity May 23 02:25:20 after successfully signing in the user is redirected to the main activity, and the check happens again. it’s a bit expensive check May 23 02:25:35 then make it cheap May 23 02:25:47 what you should actually do May 23 02:26:00 is call startActivityForResult to your SignInActivity May 23 02:26:05 Napalm: it verifies username/token against remote database. that can’t be made cheaper May 23 02:26:09 it can May 23 02:26:15 as i was saying May 23 02:26:46 call the signinactivity with startActivityForResult and you don't! finish() the MainActivity May 23 02:27:09 the MainActivity will then get a call to its onActivityResult() method with the data from SignInAcitivty May 23 02:27:18 the SignInAcitivty May 23 02:27:28 can set its result with setResult(Intent); May 23 02:27:57 Napalm: the problem is the user could follow through to the SignUpActivity in case they don’t have an account already :/ May 23 02:27:58 now your MainActivity can find out from the result if the user signed in ok or failed, and if they signed in what all their details are May 23 02:28:06 yes May 23 02:28:08 yaw May 23 02:28:11 you can do that also May 23 02:28:24 you can start another activity from SignInActivity and have it forward its result back to MainAcitivty May 23 02:28:40 yaw: http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_FORWARD_RESULT May 23 02:28:55 ok? May 23 02:29:00 got it? May 23 02:29:14 Main -> SignIn -> SignUp -> SignIn -> Main, right? May 23 02:29:23 you launch the SignUp activity with that flag May 23 02:29:31 no need to go back to signin May 23 02:29:40 so its Main > SignIn > SignUp > Main May 23 02:30:27 wait, from SignIn > SignUp is a startActivityForResult too, no? May 23 02:31:05 pass, i think so, but try startActivity May 23 02:31:12 if they back out of SignIn or SignUp, Main will receive the cancel result and can finish() itself.. if you so want May 23 02:32:58 its startActivity May 23 02:33:01 yaw: ^ May 23 02:33:03 Napalm: Thanks :) Trying that out now May 23 02:33:55 you mean SignIn > SignUp, right? May 23 02:34:24 yes, but i'm now not sure May 23 02:34:26 try both May 23 02:34:34 one will work, the other wont May 23 02:34:50 im talkign about startActivityForResult, startActivity May 23 02:35:30 Ok May 23 02:36:50 you'll have to finish(); on SignIn May 23 02:36:55 to get the result back to Main May 23 02:37:01 but Main is not finished May 23 02:37:05 with me? May 23 02:37:16 not only is eclipse a terrible IDE, that org produces some nasty f'ing code May 23 02:40:23 Napalm: yes May 23 02:45:06 Hey all, I'm getting this error: [2014-05-22 19:50:30 - google-play-services_lib] Could not find google-play-services_lib.apk! May 23 02:45:19 Why would it be looking for the apk when it's a jar library? May 23 02:49:07 nm May 23 02:56:08 Hmm i know the difference in this project between linking a jar library vs including the project folder within the java source. But if I don't include the project folder I missing class references May 23 02:59:46 Sigh never mind I figured it out. Who the hell created the android eclipse ide? **** ENDING LOGGING AT Fri May 23 03:00:01 2014