**** BEGIN LOGGING AT Sat Jan 17 02:59:59 2015 Jan 17 03:00:46 zaion, like a virtual machine app? Jan 17 03:01:35 drinfernoo, yep... like virtualbox... but send the monitor to miracast monitor and read from bluetooth kbd mouse Jan 17 03:02:45 drinfernoo, you're from brazil? Jan 17 03:03:15 no US lol Jan 17 03:04:20 inferno in pt-br is equal to hell, i think you're brazilian Jan 17 03:04:33 that'd be cool, but as an option. I was actually wanting a windows virtual box on my phone last night Jan 17 03:05:11 drinfernoo, yep... i want make a app with this support for my university Jan 17 03:34:31 capella a new fox in town http://i.imgur.com/VyOsrnC.jpg Jan 17 03:49:32 Hi all I was wondering if I could get some help with a legacy android project that I migrated to android studio. I'm getting an error from dalvikvm that it cannot find a class - 'com.novoda.imageloader.core.LoaderSettings$SettingsBuilder', referenced from method com.earbits.earbitsradio.EarbitsApplication.onCreate, I appreciate any help and thanks in advance. Jan 17 03:52:02 This is my build script http://pastebin.com/auU88TcS and here is my error log http://pastebin.com/8wwRfNVb Jan 17 03:59:42 Has anybody compiled an android app using 32 bit linux for 5.0 lollipop? Jan 17 03:59:52 is there any easy way to make viewpager only swipe when near margin is touched? Jan 17 04:00:13 andredublin: was it from eclipse? Jan 17 04:01:00 lasserix: no android studio Jan 17 04:01:22 lasserix: v 1.0.2 Jan 17 04:04:16 exit Jan 17 04:09:24 Um, I plugged in my Android device and tried running my App but the device is not found (OSX) Jan 17 04:09:31 It was working...all week... Jan 17 04:09:36 Never had this problem... Jan 17 04:09:43 The hell... Jan 17 04:12:53 Question? Does Android Studio support 32 bit? Jan 17 04:15:37 Mr needy is back with a problem that's a real head scratcher. I have a piece of code in a function that reads a file line by line and initializes several variables based on the content. Here's the code in question: http://pastebin.com/Nnv8jsa0 Jan 17 04:17:11 The last line in the file is "latestver=13" or something along those lines. The code SHOULD initialize remotever(an int) with 13 Jan 17 04:18:03 However, it always initializes it with 0. What am I doing wrong? Jan 17 04:24:06 ArmitaageDS: whats the value of val.toString() ? Jan 17 04:24:26 you should use debugger and step through Jan 17 04:24:31 probably the case isn't being hit Jan 17 04:24:35 Just release my android app Jan 17 04:24:39 It should be "13" Jan 17 04:24:52 But obviously isn't Jan 17 04:24:57 since it is 0 Jan 17 04:25:01 I can't seem to think of an app that hasn't already been developed. Jan 17 04:25:02 :( Jan 17 04:25:04 i am guessing that line isn't being hit Jan 17 04:25:13 since 0 is default initialization for int Jan 17 04:25:44 RudyValencia: then make a new social phenonema and then make the app for it like suzkerberg did Jan 17 04:25:50 lol Jan 17 04:25:58 I don't have the money to buy a ton of servers Jan 17 04:26:08 start small Jan 17 04:26:11 then expand as the money comes Jan 17 04:26:33 readLine should read the line "latestver=13" as a string, right? Jan 17 04:26:45 I don't know what feature to use as the epicenter of my social app Jan 17 04:27:32 How about social services tied to public places? Jan 17 04:28:10 All of the other lines in the file are being read just fine, what makes this one so different? Jan 17 04:28:14 e.g. all people with the app in Denny's at Alameda/I-25 in Denver Jan 17 04:31:12 var = line.substring Jan 17 04:31:16 the second parameter is eclusive Jan 17 04:31:21 are you sure it should be i-1 Jan 17 04:31:35 maybe just i Jan 17 04:31:51 substring(incluseive start index, exclusive end index) Jan 17 04:32:47 but again, just step through with debugger Jan 17 04:34:03 I'll try with just i, thanks Jan 17 04:35:04 just use debugger Jan 17 04:35:08 set a break point step through Jan 17 04:35:12 you can verify whats going on in a second Jan 17 04:38:21 Thanks, it WAS the i, lol Jan 17 04:39:38 Pity that my current ide doesn't have break point support(that's the downside of developing on the go, no break points) Jan 17 04:40:21 Thanks again. Jan 17 04:48:30 np Jan 17 04:48:36 had the same thing happen to me the other day Jan 17 04:48:45 note also Jan 17 04:48:49 that it should matter here Jan 17 04:49:01 but substring doens't return a new string, the string it returns i backed by the array Jan 17 04:56:02 Hello, anyone whose done an android interview where they asked you to write some code during the interview, what kinds of code did they ask you to write? Jan 17 04:57:32 "While at prima facial the change of the operating system seemed innocuous, the operation system waxed virulent..." Jan 17 04:58:21 Anyone know of a javadoc editor that allows me to write javadov outside of the code file ? Jan 17 05:11:17 when I write a CursorAdapter for use with AutoCompleteTextView, do I need to override getFilter()? Jan 17 05:12:05 Hi friends, I'm having a fun problem. My pc's time went off when dual booting to ubuntu and windows. Now when I generate a keystore and sign my apps uploading to google play says "You uploaded an APK signed with a certificate that is not yet valid" Jan 17 05:12:13 Like its going to be valid in the future Jan 17 05:56:33 how to ensure that if an image is opened in webview then its in center, as of now its at top left Jan 17 05:57:03 make the webview the size of the image Jan 17 05:57:08 center the webview in its container Jan 17 05:57:30 i have a web view which has some text and images and i want when user clicks on image, the image opens up in center of screen Jan 17 05:57:58 and user should get ability to share or save image. Jan 17 05:58:55 Jan 17 05:59:16 this is what i use for webview as of now so that webview uses full screen space available to app Jan 17 05:59:28 now when user click on image i open up image url Jan 17 05:59:47 why not just grab the image from the webview and present it as an imageview Jan 17 06:00:11 otherwise i dont think you can do it unless you can inject something into the html of the page Jan 17 06:00:51 hmm, but how to fire an intent for image view from webview Jan 17 06:01:01 i can use javascript Jan 17 06:01:20 and make webappinterface Jan 17 06:01:58 by using addJavascriptInterface Jan 17 06:05:26 Hello, anyone whose done an android interview where they asked you to write some code during the interview, what kinds of code did they ask you to write? Jan 17 06:05:34 mostly java i think sometimes C++ Jan 17 06:10:30 well duh Jan 17 06:10:39 not language Jan 17 06:10:46 like are they going to ask me to write a content provider Jan 17 06:10:49 or an async list view Jan 17 06:10:53 DaVinci Code Jan 17 06:11:02 lolcode Jan 17 06:11:05 or something very simple like start a bound local service or something Jan 17 06:19:47 is viewholder something I should implement on every list, or mainly lists that have lots of elements? Jan 17 06:20:50 Doesn't hurt Jan 17 06:20:54 It's pretty easy Jan 17 06:23:26 just get into the habit of implementing it Jan 17 06:23:30 better yet use a custom class Jan 17 06:25:19 instead of making a new one for each adapter, you mean? Jan 17 06:26:30 no err for your views Jan 17 06:26:33 well if they are complicated Jan 17 06:27:00 gotcha Jan 17 06:33:49 anyone know why using a static hashmap in an enum where the KV pair is enumInstanceType.name.toLower and enumInstanceTap would throw an error? Jan 17 06:33:56 where enumInstanceType.name does not Jan 17 06:34:23 oops nevermind Jan 17 06:34:35 thats what i get for copy and pasting my own code Jan 17 06:43:11 it depends lasserix Jan 17 06:43:29 onsite i doubt they would ask you to make a content provider but as an offsite test maybe Jan 17 06:43:45 in my experience onsite tests tend to be more algorithmic or high level problem solving Jan 17 06:43:57 not -- create a weather app Jan 17 06:44:16 what does that mean in terms of android Jan 17 06:44:27 what is a high level algorithmic android code example? Jan 17 06:44:38 those are two different concepts Jan 17 06:44:51 but high level i would say is more like Jan 17 06:44:55 yeah i know Jan 17 06:44:59 but your answer makes no sense Jan 17 06:45:02 i was asking about android Jan 17 06:45:20 lasserix a good android interviewer would ask about concurrency in android Jan 17 06:45:24 oh, i would use aws or parse.com for the web services layer, and i would use picasso for the backend image loading etc Jan 17 06:45:43 g00s: so you mean like the coding test would involve doing async stuff or something? Jan 17 06:45:46 maybe g00s but they expect only one answer of which there are dozens now most of which they don't understand Jan 17 06:46:12 lasserix yeah, lots of async ;) Jan 17 06:46:16 i think async wuold come up in questions but i doubt it would part of a test but anything is fair game these days Jan 17 06:46:35 DroidFreelanceR: async is the perfect coding test Jan 17 06:46:48 you think coding test would have lots of async g00s? using asyntask or runnable or things like retrofit? Jan 17 06:46:57 its shows you understand diff betyween UI and bg threading, how to update the UI from bg, ui stuff etc Jan 17 06:46:58 no, I don't think so lasserix for a lot of reasons Jan 17 06:47:08 there are many many ways to do that tho Jan 17 06:47:16 how best depends ont he application Jan 17 06:47:25 lol, if somebody asked a question about a 3rd party library that would be a red flag Jan 17 06:47:34 what do you mean g00s? Jan 17 06:47:35 i dont really care about the reasons, i am asking what actual android coding does anyone know they would ask you to do in an on-site interview? Jan 17 06:47:58 fb and google maps are 3rd party apis and i get asked about that all the time! g00s Jan 17 06:48:02 DroidFreelanceR: you said "high level" and "algorithmic" which in android translates as? Jan 17 06:48:17 i alaready answered that lasserix scroll up Jan 17 06:48:30 this keyboard is worn out sigh Jan 17 06:48:56 coding tests i have seen are more algorithmic reverse a string, sort a list, low pass filter a dataset, etc Jan 17 06:48:58 no you ssaid the two have nothing to do with eachother, but i am asking about android and that was your answer. what do you mean by "algorithmic" in terms of android? Jan 17 06:49:04 yes that is not android stuff Jan 17 06:49:09 and i did answer lasserix Jan 17 06:49:10 i am asking about android coding Jan 17 06:49:31 you are kinda hopelessly trollish sometimes Jan 17 06:49:33 i said at a high level Jan 17 06:49:35 oh, i would use aws or parse.com for the web services layer, and i would use picasso for the backend image loading etc Jan 17 06:49:53 that is my high level answer to the typical android coding question Jan 17 06:49:57 did you read that this time or not? Jan 17 06:49:58 not question Jan 17 06:50:04 test, as in write code. Jan 17 06:50:17 as i've said 4 times now, noone IN PERSON has asked me to write android code Jan 17 06:50:21 did you read that? Jan 17 06:50:32 then you dont know the answer to the question Jan 17 06:50:51 possibly but maybe it's a question you won't get asked Jan 17 06:50:51 those are java interview coding tests Jan 17 06:51:02 i do get asked high level problem solving questions which i answered Jan 17 06:51:22 that's right and as i've said, also 4 times now, that if they WERE to ask that kind of android coding it would be an OUTSIDE the interview coding quiz Jan 17 06:51:49 no it wouldnt. i was speficially told it would be android. hence you have no idea Jan 17 06:51:56 you keep trying to say inside this 1 hour in person interview they want you to code async activities....I have never seen that Jan 17 06:52:00 please stop trolling my question, if you dont know the answer thats okay Jan 17 06:52:12 what's the question? what will you be asked? I don't know Jan 17 06:52:15 if you haven't seen it thats okay Jan 17 06:52:17 what have I been asked? I told you Jan 17 06:52:20 i was asking for people who have Jan 17 06:52:59 you've never seen async activities? Jan 17 06:53:09 sure i have Agamemnus Jan 17 06:53:20 noone's ever asked me to write one during an interview though Jan 17 06:53:59 i would Jan 17 06:54:05 and what about you Agamemnus ? your webview makes a lot of use of that? Jan 17 06:54:08 well, noone has Agamemnus Jan 17 06:54:18 If I were interviewing you Jan 17 06:54:23 they ask qustions ABOUT background tasks, but noone has ever asked me to write a background task Jan 17 06:54:30 well you probably can't afford me Agamemnus so Jan 17 06:54:33 ... I would tell you to write me a Google Play clone Jan 17 06:54:39 in 30 minutes Jan 17 06:54:39 heh Jan 17 06:54:42 yup Jan 17 06:54:48 you are the perennial cheapskate Jan 17 06:54:54 for $5 Jan 17 06:54:58 you're gonna be the next donald trump! I love you Jan 17 06:55:01 * DroidFreelanceR hugs Agamemnus Jan 17 06:55:04 you are too kind sir Jan 17 06:55:09 you're fired! Jan 17 06:55:13 get me my wig Jan 17 06:55:15 i would do it for half that just to be part of your organization Jan 17 06:55:16 it escaped again Jan 17 06:55:23 oh i'm so sorry sir Jan 17 06:55:27 * DroidFreelanceR spills coffee on Agamemnus Jan 17 06:55:32 woops oh woops Jan 17 06:55:37 * DroidFreelanceR spills more coffee Jan 17 06:55:38 security! Jan 17 06:55:45 *wigs come in* Jan 17 06:55:45 * DroidFreelanceR bends over to pick up the wig Jan 17 06:55:47 * DroidFreelanceR farts Jan 17 06:55:53 woops oh i'm soooo sorry Jan 17 06:55:53 The wig is sentient Jan 17 06:55:56 It can stab you Jan 17 06:56:04 * DroidFreelanceR pours coffee on the wig Jan 17 06:56:11 * Agamemnus 's wig stabs DroidFreelanceR Jan 17 06:56:20 ouch ouch i'm allergic to blonde Jan 17 06:56:24 (c3po imitation) Jan 17 06:56:37 or red or whatever you call that nasty stuff Jan 17 06:56:40 imitation fox hair Jan 17 06:56:40 C3PO would apologize at every turn Jan 17 06:56:43 and Jan 17 06:56:51 i did see woops above Jan 17 06:56:52 you're like anti-C3PO Jan 17 06:56:56 in what way? Jan 17 06:57:02 like i said Jan 17 06:57:05 does that mean i'm like r2 ? Jan 17 06:57:07 he's always apologetic Jan 17 06:57:09 I'll tell the interviewer I don't need no stinkin facebook , google maps, or asynctask Jan 17 06:57:20 me neither Jan 17 06:57:24 especially the maps Jan 17 06:57:29 it's all in my head RIGHT HERE Jan 17 06:57:39 yeah for you its pirating javascript games and shaking down children Agamemnus Jan 17 06:57:57 no facebook shmooz ? but how will they login?!?!?!? oh mY!! (c3po) Jan 17 06:58:42 you know I've never signed up for facebook once, and I make sure I never visit it Jan 17 06:58:56 stupid sheep Jan 17 06:59:20 stupid conforming anti-conformist Jan 17 06:59:29 :D Jan 17 06:59:45 I can smell bullhype from a mile away Jan 17 07:00:10 I have one that I check about once a month Jan 17 07:00:17 Works great that way Jan 17 07:00:41 I have self restraint though, plenty of people don't, and/or don't think they have a problem Jan 17 07:01:23 and I've been into computers since 1980 Jan 17 07:01:38 whoa tmi Jan 17 07:01:56 it will come and go like myspace Jan 17 07:02:40 Probably, but not in the forseeable future Jan 17 07:02:46 It's lasted much longer Jan 17 07:03:11 it will come and go like *everything Jan 17 07:04:09 you know after ICQ I avoided all the social networks, especially after discovering what you can do with subseven or bo2k Jan 17 07:08:45 yeah yeah Jan 17 07:08:51 but you're missing my point Jan 17 07:08:57 but thats ok plenty of people do Jan 17 07:09:40 so say something tahts worthy of a response besides you dont use facebook on your fliphone ;) Jan 17 07:10:57 fact is facebook login is de facto standard for mobile Jan 17 07:11:04 end of story Jan 17 07:11:11 never! Jan 17 07:11:27 and if it isn't fb, then they have a plethora of options including Jan 17 07:11:29 1) facebook Jan 17 07:11:33 2) their own login Jan 17 07:11:40 3) some other oauth shit Jan 17 07:11:48 4) twitter for srue Jan 17 07:12:04 so yeah they want to see, integrating with twitter and facebook Jan 17 07:12:14 a login should never expect the user to have another account anywhere Jan 17 07:12:29 The google account sign in is great. Especially for Andriod apps! Jan 17 07:12:33 see #2 shmooz Jan 17 07:12:38 and you are a fucking idiot Jan 17 07:12:53 If you really want social sign in, fb + google is perfect. Jan 17 07:12:53 of COURSE they have an account somewhere, how did they get to the fucking play store without one shmooz ? Jan 17 07:13:05 there are plenty places that force you to have nothing but facebook login Jan 17 07:13:06 I'm an old fart but you are being ridiculous here Jan 17 07:13:23 I didn't say that was ideal I said FB is de rigeur shmooz Jan 17 07:13:44 there are plenty of apps that want access to your camera /images/porn too shmooz Jan 17 07:13:48 what is your point exactly? Jan 17 07:15:45 I'm not in an argument with you, and I don't have a point for you, just that these mega corporations with their logins suck Jan 17 07:16:02 and they should all disappear Jan 17 07:16:41 centralized login shouldn't be owned by anyone Jan 17 07:16:44 ideally Jan 17 07:16:49 it isn't g00s Jan 17 07:16:52 shmooz: like Google? Jan 17 07:16:53 thats what the oauth stuff does Jan 17 07:17:06 so if you use open authentication you can do that too Jan 17 07:17:16 right now like i said there is 4 or 5 major ways of authenticating Jan 17 07:17:18 yiati: no I don't like google either Jan 17 07:17:32 shmooz is a bra burning freenoder Jan 17 07:17:33 shmooz you might like this when it comes out (note author) http://www.amazon.com/gp/product/0393244814 Jan 17 07:18:07 I will not release my app in the play store Jan 17 07:18:08 anyway forget the details some kind of third party integrations are part of many/most android aps Jan 17 07:18:12 especially admobs Jan 17 07:18:20 Agamemnus is an admobber right? Jan 17 07:18:27 shmooz another one being talked about is http://www.amazon.com/gp/product/0674368274 Jan 17 07:18:34 so yeah they could make you do admob ads laserix Jan 17 07:19:07 with spaceships that looks like http://ecx.images-amazon.com/images/I/71dAWNwZVbL._SL1500_.jpg Jan 17 07:19:16 see g00s knows what I'm talking about ;) Jan 17 07:19:58 lasserix i haven't interviewed much for android - what typically happens is (1) you may get a code interview question, but its general algorithms (2) android questions tend to be about corner cases in apis , or if there are multiple options why would you use X over Y (3) they may want to see some previous code Jan 17 07:20:19 i've said several times now that a non centralized login is usually part of most apps shmooz Jan 17 07:20:39 i agree with g00s Jan 17 07:21:00 what do you think about the corner case questions g00s and the "would you use x or y" questions in general and maybe in some specific cases? Jan 17 07:21:12 since that is something people frequently see Jan 17 07:21:32 'when would you use asynctask' (almost never, ha!) Jan 17 07:21:45 sure and what else g00s? Jan 17 07:22:15 since i was doing bluetooth i was asked if i knew some of the wierdness in thos apis Jan 17 07:23:05 When I switch AVD in landscape mode the apps don't really start using landscape layout. Any way to fix it? Jan 17 07:23:28 donniezazen rotate your monitor ;) Jan 17 07:23:50 g00s: I am on laptop. Jan 17 07:23:57 was just joking :) Jan 17 07:24:17 if you aren't handling configuration changes, it should work Jan 17 07:24:44 It's not a joke unless I see bazinga coming. lol Jan 17 07:25:19 If I open stock browser it should switch in landscape mode. Jan 17 07:25:23 which it doesn't do Jan 17 07:25:31 You could turn your laptop on its side Jan 17 07:26:21 * yiati just noticed g00s beat me too ^ Jan 17 07:27:56 donniezazen: You don't have Auto-rotate screen off in Accessibility features do you? Jan 17 07:28:41 btle or what weirdness g00s? Jan 17 07:28:48 like you said the qustions could be all over the map Jan 17 07:28:55 "and what about printing???" Jan 17 07:29:01 maybe I'll create a service that will anonymize logins , so you login through my service and it uses a fake temporary facebook account for you Jan 17 07:29:34 sounds like a plan shmooz Jan 17 07:29:45 openTorShmoozID ftw Jan 17 07:30:22 MyRubberDucky please Jan 17 07:30:31 really traking is pretty scary Jan 17 07:31:04 are you a fulltimer g00s? Jan 17 07:31:09 i mostly do contract stuff Jan 17 07:31:16 Make my Home Town on the FB account Harry Potter Blvd as well Jan 17 07:31:22 what i find most common about interviews is they want Jan 17 07:31:39 1) someone who has done exactly what they are doing for several years Jan 17 07:31:52 2) someone who has no life and just wants to code Jan 17 07:32:21 1 is difficult at best, so they usually opt for 2 Jan 17 07:32:35 a lot of these mobile jobs want you to know both android and iOS programming Jan 17 07:32:37 but if #1 is unique its unlikely they will find someone who has been doing exactly taht (oh yes, I've been doing Lyft for 12 years, rite?) but that is what it seems like Jan 17 07:32:46 yeah thats true and thats nuts shmooz Jan 17 07:32:52 its like being great at guitar and piano Jan 17 07:32:54 i play both Jan 17 07:33:00 bt i am hardly great at either Jan 17 07:33:05 and some ask for more experience than the life of the OS , lol Jan 17 07:33:06 if i was so great on one i would focus Jan 17 07:33:22 exactlly shmooz one guy on my last project claimed to have 8 years of android!!! Jan 17 07:33:23 nfw! Jan 17 07:33:33 he's smart Jan 17 07:33:33 but what could i say? oh hey, this guy...is a liar Jan 17 07:33:44 smart in what way shmooz ? Jan 17 07:34:00 he told them what they want to hear Jan 17 07:34:15 yes I have 50 years experience in android programming Jan 17 07:34:29 sure and how long can lying go on for? what if he can't code an activity in 2 weeks shmooz ? Jan 17 07:34:39 yiati: auto-rotate screen is enabled in Accessibility. Jan 17 07:34:41 they get what they deserve Jan 17 07:35:02 who knows shmooz Jan 17 07:35:15 on the last project the liar (8 years) had "sugoi" in the name of his company Jan 17 07:35:20 oh sugoi!!! sugoi!!! Jan 17 07:35:27 sugoi is a fucking japanese 101 word Jan 17 07:35:31 it means great Jan 17 07:35:34 if you're interview questions show you know nothing about the topic, the answers should be just as dumb Jan 17 07:35:43 s/you're/your Jan 17 07:35:51 and the cocksucking pm was all over the sugoi boy because he was a japanophile Jan 17 07:35:59 donniezazen: Dunno maybe try a different AVD Jan 17 07:36:04 meanwhile sugoi boi couldn't check in a line of fucking code Jan 17 07:36:23 mobile is a weird cross of software and odd lifestyles i think Jan 17 07:36:28 yiati: I seem to have problem in all AVDs Jan 17 07:36:34 lol Jan 17 07:37:15 the average age of a mobile dev is pretty low Jan 17 07:37:21 or young, i should say Jan 17 07:38:21 whats your point g00s? i dont agree neither you nor i are young Jan 17 07:38:28 the pm's are young and clueless tho Jan 17 07:38:30 oops, i take that back. i just found the report and i misinterpreted it Jan 17 07:38:46 i'm sure theres lots of old farts in mobile Jan 17 07:39:37 i almost shudder to ask what you think the age of an 'old fart' is Jan 17 07:40:25 25 Jan 17 07:40:40 how old are you ddd? Jan 17 07:40:44 44 Jan 17 07:40:49 I'm 45 Jan 17 07:40:51 gto Jan 17 07:40:54 gtfo Jan 17 07:41:13 and I will learn iOS and QNX programming after this Jan 17 07:41:19 qnx? Jan 17 07:41:21 thus why i shuddered to ask Jan 17 07:41:21 not dead yet Jan 17 07:41:23 isnt that like os9? Jan 17 07:41:26 or plan9? Jan 17 07:41:28 qnx? Jan 17 07:41:34 shit Jan 17 07:41:35 qnx is blackberry Jan 17 07:41:38 you guys are all washed up Jan 17 07:41:40 shmooz, yep. and don't plan to be for another 44 at least :) Jan 17 07:41:42 yeah i should learn WP or relearn iOS not sure what to do there Jan 17 07:41:45 bby lulz Jan 17 07:41:48 DroidFreelanceR, shit, please Jan 17 07:41:54 isnt that like QEMM386? Jan 17 07:42:01 qnx? Jan 17 07:42:15 shit you old farts used to fucking PAY for unix Jan 17 07:42:18 SCO Jan 17 07:42:21 xenix Jan 17 07:42:22 DroidFreelanceR: QNX has been around for a long time before BB bought them, and I used to run it a lot Jan 17 07:42:27 DroidFreelanceR: I can beat that Jan 17 07:42:31 I used to *work* for SCO Jan 17 07:42:34 wow Jan 17 07:42:38 in santa cruz leeds? Jan 17 07:42:41 do tell? :) Jan 17 07:42:43 nope, in the UK Jan 17 07:42:46 got love youth. think they're immortal, invulnerable, and better than the older crowd. yet, they use the tech *we* wrote or built to do what they're supposedly better than us at Jan 17 07:42:46 ah Jan 17 07:42:50 love it Jan 17 07:42:54 where in the UK leeds? Jan 17 07:42:55 hey maybe samsung buys BB - they denied it but wouldn't be surprised Jan 17 07:43:05 see Leeds remembers when *nix was payware!!! Jan 17 07:43:05 the insanity of it. hehe, oh well. youth is wasted on.. well, the young! Jan 17 07:43:11 was there for a couple of years after I graduated, before they imploded, then went to Sun for a few years... then emigrated and had a much easier life :) Jan 17 07:43:13 ddd: we are like freemasons ;) Jan 17 07:43:15 that's my boy Jan 17 07:43:23 shmooz, hehehe Jan 17 07:43:34 where did you emigrate too leeds? nice! where do you reside now? Jan 17 07:44:12 from the UK - SCO was in Watford, Sun ran a site there for a few years mostly to house ex-SCO engineers - to Hong Kong Jan 17 07:44:30 shmooz, kids. gotta love em. if for nothing else than the laugh factor ;) Jan 17 07:44:38 I still believe QNX will make a comeback and rule the future Jan 17 07:44:51 MCC FTW! Jan 17 07:45:23 the only thing it'd probably be able to run on these days would *be* a cell phone ;) Jan 17 07:45:55 *would* be Jan 17 07:46:06 true Jan 17 07:46:16 I still run Slackware... Jan 17 07:46:34 Leeds: that was my first flavor, and still my favorite Jan 17 07:46:39 now those were the days. Jan 17 07:47:08 I still have the first CD ever with linux on it from a bookstore that has slackware 0.8x on it Jan 17 07:47:16 they *are* the days... I installed it on my chromebook last week! Jan 17 07:47:22 not the current cuts. the old school cuts. when you had to hack on the floppy handler just to get the damned thing to install Jan 17 07:47:30 The Linux Bible ;) Jan 17 07:47:32 Leeds, nice Jan 17 07:47:33 shmooz: CD? CD???? if you weren't installing floppy sets... newbies... Jan 17 07:47:38 Walnut Creek! Jan 17 07:47:53 Leeds: actually I did use floppies at first Jan 17 07:48:03 89 in the original set Jan 17 07:48:19 on a 386SX 25Mhz laptop with 4MB ram Jan 17 07:48:30 god i miss those days Jan 17 07:48:45 I was downloading it in the Uni computer lab... I didn't have enough floppies - had to fill the 10 or 20 I had, take them back to my dorm room, install them, leave my PC on with the installer running, go download another set of floppies, install them... Jan 17 07:48:52 and then I bought a backpack single speed cd rom drive, and had to write my own device drivers to get it working Jan 17 07:49:01 Leeds, lol yeah sounds familiar :) Jan 17 07:49:28 damn, i may be old, but shit we had fun back then! Jan 17 07:49:44 people *earned* their stripes Jan 17 07:50:34 ok, really putting the icing on the cake. Who remembers TBAV, LOTRD, and Renegade? :) Jan 17 07:50:52 and then the CD came with the Ydgrassil Linux Bible man was I happy to install from CD Jan 17 07:50:53 do you guys remember wuarchive ? Jan 17 07:51:34 i do. Didn't they carry all of walnut creek, the orig MCC and the first cuts of like RH and deb? Jan 17 07:51:55 they had a lot. wuarchive.wustl.edu Jan 17 07:51:57 ddd: BBS games? never really did them, was more into fido messaging and usenet... Jan 17 07:52:19 I did a lot of BBS in the Commodore 64 days Jan 17 07:52:22 Leeds, did a lot of usenet Jan 17 07:52:45 shmooz, yeah. 1541 floppy drives stacked Jan 17 07:52:57 and then the Amiga came out and we started doing serious 3D graphics Jan 17 07:53:09 for you younger crowd thats a model not the number of drives Jan 17 07:53:12 man those 1541 were terrible. i had mine apart with a screwdriver handy to re-align the head Jan 17 07:53:17 the PC was still text only orange or green on black screens Jan 17 07:53:22 oh crap, what was amiga's OS? Jan 17 07:53:25 i forget the name Jan 17 07:53:42 funny thing... when I started at university, I was doing joint economics and CS - but technically I belonged to the school of economics... so they had an introduction to computing course for us - one week, the *marked* homework was "find someone asking a question on usenet and answer it" Jan 17 07:53:47 g00s, hah yeah they were Jan 17 07:53:52 From the point of view of a youngin', it's kind of overwhelming being taught by people who have slowly learned every detail about this new CS field over the past ~60 years, and being expected to get caught up with all of that, and still learn and apply new stuff all in 4 years for a BSCS. Not saying that's it's any harder these days, but I am saying you still have to earn you chops to make it through Jan 17 07:54:15 Gaz, who isn't here right now, is an Amiga nut Jan 17 07:54:42 yiati, i agree. it just seems like a crapload these days expect most of what we fought to learn, handed to them Jan 17 07:54:50 and get pissed when they have to too! Jan 17 07:54:51 i remember seeing the spinning ball amiga demo Jan 17 07:54:58 was like, omg Jan 17 07:55:03 hehe Jan 17 07:55:18 g00s, i actually had an altair believe it or not Jan 17 07:55:35 wow, I never touched one of those Jan 17 07:55:38 remember the build your own kits? Jan 17 07:55:45 ddd: I'm sure 20 years from now I will be able to say that same thing Jan 17 07:55:51 :) Jan 17 07:55:53 hehe Jan 17 07:56:28 shmooz, my dad got it for me. i was not of that time, but i got to play with one. Jan 17 07:57:19 well thats why there is a lot of old farts in mobile yiati Jan 17 07:57:28 oh well he left Jan 17 07:57:30 ok wtf. what the hell is killing chromium here Jan 17 07:57:44 but yeah you cant just start at php and go android Jan 17 07:57:46 I am *not* an old fart ! Jan 17 07:57:57 DroidFreelanceR: your behavior is not conducive to the desired environment Jan 17 07:57:58 how old are you capella ? Jan 17 07:58:18 heh - but I did have one of the first 3,000 Apple II's Jan 17 07:58:28 and a CP/M box w/8" drive Jan 17 07:58:35 wow Jan 17 07:58:45 H89?? Jan 17 07:58:47 mmmm, apple ][ Jan 17 07:58:59 i loved the subpixel graphics myself Jan 17 07:59:03 :-). . . Jan 17 07:59:21 I even had a Commodore ICON which noone still hasn't heard of Jan 17 07:59:26 yeah, yeah, we all had a CP/M box Jan 17 07:59:34 i didn't leeds Jan 17 07:59:43 shmooz, damn. i haven't heard of that one either and we're about the same age Jan 17 07:59:44 i wasn't wealthy enough Jan 17 07:59:49 it had a orange built in screen with a turtle the size of half a bowling ball Jan 17 07:59:52 was that the 64/128 cross over? Jan 17 07:59:53 http://en.wikipedia.org/wiki/Amstrad_PCW Jan 17 07:59:55 cpm + 2x 8" = $5k in 1970 ? Jan 17 07:59:58 thought that was the 64+ Jan 17 08:00:05 i had a lowly 6502 Jan 17 08:00:14 that i built a modem for and telnetted into MIT Jan 17 08:00:25 courtesy of RMS accounts Jan 17 08:00:30 and the Commodore ICON was the first commodore with the C Language instead of just BASIC Jan 17 08:00:44 ahhh Jan 17 08:00:45 Apply II w/casette storage :D ... graudated to the first 5M hard drive Jan 17 08:00:50 *Apple Jan 17 08:00:54 see? you *can* teach an old dog new tricks! Jan 17 08:00:58 yeah 300 baud right capella ? Jan 17 08:01:05 Yep! Jan 17 08:01:09 hehe Jan 17 08:01:09 hey don't knock the 300 baud! Jan 17 08:01:13 i dont Jan 17 08:01:17 i respect it Jan 17 08:01:21 I couldn't even find the Commodore Icon on google, let me try again Jan 17 08:01:26 I would so love to go back and give myself a 1TB hard drive Jan 17 08:01:27 todays kids dont know shit about bandwidth eheheh Jan 17 08:01:36 DroidFreelanceR, lol truth! Jan 17 08:01:43 no it is truth ddd Jan 17 08:01:49 they bloat all this xml Jan 17 08:01:50 nonsense Jan 17 08:01:52 * capella remembers mucking with those AT-code start strings Jan 17 08:01:54 i was agreeing Jan 17 08:01:57 i know Jan 17 08:02:02 they do know about bandwidth because they have it Jan 17 08:02:03 +++ATH Jan 17 08:02:05 capella, oh hell yeah. that was a nightmare Jan 17 08:02:10 0 Jan 17 08:02:14 stop it leeds! Jan 17 08:02:18 ouch Jan 17 08:02:21 ATH0 wasn't it? Jan 17 08:02:21 +++ Jan 17 08:02:24 ouch Jan 17 08:02:26 stop please Jan 17 08:02:30 hahaha Jan 17 08:02:42 now you're gonna run a zmodem string on me Jan 17 08:02:45 hey you started this painful trip down memory lane! Jan 17 08:02:50 no backin out now Jan 17 08:02:51 no i didnt Jan 17 08:02:59 and if i did i apologize Jan 17 08:03:06 yes you did with your old fart comment ;) Jan 17 08:03:08 i'm glad that we have some old farts here Jan 17 08:03:11 ok Jan 17 08:03:22 KERMIT! Jan 17 08:03:29 like i said old farts and mobile somehow are intertwwinded Jan 17 08:03:31 stop !!! Jan 17 08:03:33 kermit!! Jan 17 08:03:34 hehe Jan 17 08:03:36 columbia Jan 17 08:03:38 yeah it's like I'm lying, it never existed lol Jan 17 08:03:39 oh man Jan 17 08:03:43 not anywhere on google Jan 17 08:03:49 damn! Jan 17 08:03:50 yes kermit never existed Jan 17 08:03:53 woah Jan 17 08:03:56 ymodem! Jan 17 08:04:00 you guys rock Jan 17 08:04:07 we never talk about ymodem in here Jan 17 08:04:18 ;) Jan 17 08:04:26 it was always zmodem Jan 17 08:05:02 and people wonder why i love computers. those days formed every day afterwards Jan 17 08:05:05 successsful techs get to be oldsters by staying bleeding edge baby ! hence, mobile !!! Jan 17 08:05:05 love it Jan 17 08:05:24 well what about archie and gopher? Jan 17 08:05:34 no he didn't! he pulled out archie?? Jan 17 08:05:39 i did Jan 17 08:05:46 tell me your thoughts Jan 17 08:05:47 i'm impressed Jan 17 08:05:51 yes Jan 17 08:05:53 go on Jan 17 08:06:34 WAIS Jan 17 08:06:39 the fact that you know anything about it (or mcgill) is amazing Jan 17 08:07:22 i should pull out jughead on you but.. Jan 17 08:08:38 ok, obviously went too far. killed the chatter Jan 17 08:12:13 i think i had an 8" floppy disk at home Jan 17 08:12:19 ddd: have you played with MESS or other emulators you can go right back to those days Jan 17 08:12:42 shmooz lol, i have my c64 sitting *right here* Jan 17 08:12:59 g00s: does it still work ? Jan 17 08:13:06 i noticed i did some soldering to the main board Jan 17 08:13:08 heh Jan 17 08:13:15 hey all. Anyone know which specific versions of gcc the NDK uses? The docs generally say something like "4.8" ... but I want the sub version (4.8.x) since there are significant bugfixes and all that between versions Jan 17 08:13:23 back in those days the traces were like freaking huge Jan 17 08:13:38 shmooz i'd have to find the power supply. those damn things Jan 17 08:13:55 I was a master of spritemaster ;) Jan 17 08:13:56 i just have two words Jan 17 08:14:00 star raiders Jan 17 08:14:09 nuff sed Jan 17 08:14:18 no worries ddd was just afk chilling Jan 17 08:14:19 impossible mission Jan 17 08:14:50 someone here said they did a battlezone on anroid Jan 17 08:15:04 yeah i had battlezone Jan 17 08:15:06 i wwas like...whoa? bz? do you even rember that? Jan 17 08:15:08 I have a working TS-1000 that's so cool still :p Jan 17 08:15:11 and stellar 7 i think Jan 17 08:15:13 DroidFreelanceR: I have it on my MAME emulator on android Jan 17 08:15:22 one of my buds wrote the original sinistar but he's about 7 years older Jan 17 08:15:31 shmooz, sorry was trying to fix chromium. No haven't messed with mame or mess Jan 17 08:15:50 https://www.youtube.com/watch?v=XUn2ZcgS_Go Jan 17 08:15:56 canurabus: download it? Jan 17 08:16:03 kewl does it nee drewt shmooz ? i have mame32 on my deskttop but not android does it work with dpad etc? Jan 17 08:16:17 DroidFreelanceR: Star Wars (wireframe) is my favorite arcade game to play on my tablet though Jan 17 08:16:19 shmooz, i do mess around with a lot of mudconnect Jan 17 08:16:36 link shmooz ? Jan 17 08:16:50 DroidFreelanceR: yes it does, one sec Jan 17 08:17:39 well it's called Mame4Droid, get the newest version Jan 17 08:18:02 right on are there any mames that dont need root? i keep most of my devices unrooted Jan 17 08:18:07 or collections (even payware) Jan 17 08:18:16 Leeds, still doesn't tell me the version Jan 17 08:18:26 like i have a frogger from sega thats clean and good game but different sound track than original shmooz Jan 17 08:18:27 canurabus: gcc --version Jan 17 08:18:50 i learned a bit about the soundtrack from my wife who is jp and we play a lot of vid game music on the piano Jan 17 08:18:57 just give me galaga again. especially the 1987 arcade model. if you waited on the game without killing the last top corner guy for like 20 minutes they would eventually stop shooting at you but make the noise of shooting and if you killed the last guy *then*, they never shot at you again for the rest of the game Jan 17 08:19:04 hehe galaga Jan 17 08:19:10 see talking about Agamemnus shakedown Jan 17 08:19:17 $0.25 was a lot of money back then Jan 17 08:19:21 heh Jan 17 08:19:30 so it was $0.25 for 1 minute or 3 if ur lucky Jan 17 08:19:35 that's like $1.00 today Jan 17 08:19:37 i think Jan 17 08:19:41 what do you folks thing? Jan 17 08:19:44 think even? Jan 17 08:19:45 yeah I hate to admit I've spent thousands of dollars in quarters on those arcades Jan 17 08:19:49 bite me is what i think Jan 17 08:19:53 :) Jan 17 08:20:00 Leeds, still doesn't work. The gcc binary in the NDK only lists its version upto one subversion ie "4.8" Jan 17 08:20:00 but it was a LOT of dough right Jan 17 08:20:05 yeah yeah hehe Jan 17 08:20:06 if we had only invested *sigh* Jan 17 08:20:09 hahaha Jan 17 08:20:16 canurabus: strings? Jan 17 08:20:16 so todays games are cheap in retrospect right? Jan 17 08:20:40 hi Jan 17 08:20:43 I must admit I'd play the games I could get the most playtime out of Jan 17 08:20:52 ehh no not when they start you out at a buck Jan 17 08:21:02 Leeds, what would i even run strings on? Jan 17 08:21:11 canurabus: the gcc binary Jan 17 08:21:16 now it's a shakedown next level $4.99 please insert Jan 17 08:21:23 yep Jan 17 08:21:26 meh, it is what it is Jan 17 08:21:33 yeah Jan 17 08:21:36 sec Jan 17 08:21:37 wdo you know doodle in viber (draw app). I need to do similar effect when you choose the colors Jan 17 08:21:38 afraid to take my kids anywhere near a current arcade Jan 17 08:22:15 i'd lose my shirt inside of 10 minutes with 3 of them playing Jan 17 08:23:54 Leeds, nope, pretty much just outputs the same information as gcc -v Jan 17 08:23:57 you know, if kmail keeps falling over with only ~21K emails I'm either going back to mutt+gpg or just saying screw it and living in the browser for email Jan 17 08:24:11 sorry, actually meant that complaint for another channel Jan 17 08:24:22 maybe the version of gcc the NDK is customized from a given gcc base version? Jan 17 08:24:58 DroidFreelanceR: most of the games don't translate well on a tablet, but it's still great nostalgia, some work well with tablet like marble madness, star wars, gals panic Jan 17 08:25:18 shmooz: thats becasue they don't adapt it Jan 17 08:27:53 Hello, How can I put a filter (of ArrayAdapter) to run in another Thread? Jan 17 08:33:06 rihgt it dpends if they wanted a trackball or dual xy shmooz Jan 17 08:33:19 but that isnt any different from windows desktop so... Jan 17 08:33:50 mouse and keybd or whatever someone had a good arcade controller Jan 17 08:34:03 I love using tilt for marble madness, in the arcade you had to roll this big ball around Jan 17 08:34:32 yeah tilt is good for some games Jan 17 08:34:39 what bout tempest? Jan 17 08:34:51 tilts would be good tehre too Jan 17 08:35:08 yep, I got Tempest too, works ok Jan 17 08:35:20 I'm a fan of the wireframe games Jan 17 08:35:27 does it need root shmooz ? Jan 17 08:35:32 no Jan 17 08:35:42 link? Jan 17 08:35:53 https://play.google.com/store/apps/details?id=com.seleuco.mame4all&hl=en Jan 17 08:36:21 don't ask me for roms though, that's your responsibility to find the matching versions Jan 17 08:37:02 well you can pm me teh romz shmooz Jan 17 08:37:38 Hi, can I get some help you guys? Jan 17 08:38:42 what is your question soomsoom? Jan 17 08:40:03 DroidFreelanceR: HI. I have a Filter in ArrayAdapter, and its make the activiy to stuck, there is any way to make it run in another thread or in asynctask? Jan 17 08:40:43 yes soomsoom give that a try Jan 17 08:41:03 soomsoom: yeah Jan 17 08:41:05 of course Jan 17 08:41:07 DroidFreelanceR: I don't know how :) Jan 17 08:41:30 lasserix will tell you how soomsoom Jan 17 08:41:33 step by step Jan 17 08:41:45 DroidFreelanceR: OK :) Jan 17 08:41:55 lasserix: Sup? Jan 17 08:42:51 freelancerbob: hello Jan 17 08:43:29 soomsoom: you encaspulate the filtering in some method Jan 17 08:43:40 then put that method in an async task and return the result Jan 17 08:43:49 ha Jan 17 08:44:31 I have the method "public Filter getFilter()" Jan 17 08:44:31 performFiltering is already called in a thread Jan 17 08:44:56 In there i have the Filter name = new Filter() { Jan 17 08:45:09 its not good how I did this? Jan 17 08:46:30 lasserix: I just need to make AsyncTask that implements Filter? Jan 17 08:46:36 A Filter filters on a background thread by default Jan 17 08:47:13 SimonVT: I don't think so, because the Activity getting stuck when I use it Jan 17 08:47:57 You.. Don't think so? There's source code you can check to verify Jan 17 08:48:12 ok... Jan 17 08:48:33 soomsoom: something else is probably blocking it Jan 17 08:48:49 lasserix: maybe Jan 17 08:49:01 lasserix: Ok i will look for it, thanks : ) Jan 17 08:50:52 come n gone Jan 17 08:52:54 so for all you folks who are older ddd etc shmooz workign in mobile how do you deal with the brogrammers and daily scrums? Jan 17 08:53:33 Anyone know why reading from an inputstream would terminate after 100 lines (text)? Jan 17 08:54:03 paste yer code lasserix Jan 17 08:54:14 DroidFreelanceR: please stop trolling Jan 17 08:54:33 i'll stop after i start lasserix Jan 17 08:54:55 paste yer code if you want help lasserix Jan 17 09:00:46 Does chrome crash for anyone else when posting images to one of your apps in the Google Play dev portal? Jan 17 09:16:16 Bantalon: not sure about dev portal but Chrome has been crashing a lot lately. Jan 17 09:17:23 donniezazen: mac user? Jan 17 09:17:44 oh you are talking about desktop Jan 17 09:17:48 yeah Jan 17 09:18:02 Yeah, I am on Linux. No problem as far as I can tell. Jan 17 09:18:10 alright Jan 17 09:44:08 Yello, does anyone know how strict Android are with game services? Jan 17 09:44:32 If theya re as strict as apple are with game center? No app can use game services unless it's a fully fledged game or you can still use it if you've got a minigame in your app Jan 17 09:44:51 the app itself not being a game, but you still have a minigame in it and you want to use a small highscore for it etc? Jan 17 09:45:02 And are you able to use it to authenticate users for anything other than gaming? Jan 17 09:56:36 Guys have another question regarding game services - is it possible for users to spoof accounts in it as well? Jan 17 09:56:42 Or is it 100% real authentication? Jan 17 09:57:04 wondering if i should just go with creating my own account system or if game services works great enough for user auth? Jan 17 09:58:48 Also, what do you gain from linking iOS apps to your game services? can you use game services on iOS as well? Jan 17 09:59:46 Maybe it's best to just shift from using game center to using game services across all platforms? if that's possible? Jan 17 10:00:48 yes, appearantly: https://developers.google.com/games/services/ios/quickstart Jan 17 10:24:49 x29a: cool Jan 17 10:26:39 Is it possible to get the Google Play URL of an pap before it has been released? Jan 17 10:33:25 Bantalon: no clue, i just looked it up real quick, never used it Jan 17 10:35:39 x29a: np thanks Jan 17 10:36:05 when registering a new app for game services, does anyone know what you're supposed to fill in under Signing certificate fingerprint? Jan 17 10:36:16 says it's an SHA1 value Example: 21:45:BD:F6:98:B8:71:50:39:BD:0E:83:F2:06:9B:ED:43:5A:C2:1C ) Jan 17 10:36:30 do you have a cert? Jan 17 10:36:32 not sure if I should just fill in something randomly in there or it has to be something specific? Jan 17 10:36:39 x29a: not yet, i haven't built the app for android yet Jan 17 10:36:49 or you mean dev cert? Jan 17 10:36:55 you build onew with some cl google how to Jan 17 10:37:06 id do that first and if in that process there is a cert generated, use that fingerprint (hash) Jan 17 10:37:12 so i needto build the apk? Jan 17 10:37:38 does it not state in the howto? Jan 17 10:37:50 nein :/ Jan 17 10:37:58 it explains it like this: API requests are sent directly to Google from your clients' Android devices. Google verifies that each request originates from an Android application that matches the package name and SHA1 signing certificate fingerprint name listed below. Jan 17 10:38:33 but not sure how it works if i need to build the apk before the app is finished? Jan 17 10:38:39 because i can't finish the app without the game services Jan 17 10:38:47 or if you're supposed to build a temporary build and get the SHA1 somehow? Jan 17 10:39:59 Bantalon: did you follow this? especially step 2 and 4 Jan 17 10:40:00 https://developers.google.com/games/services/android/quickstart#step_2_set_up_the_game_in_the_dev_console Jan 17 10:41:08 x29a: ah, i'm trying to complete all of the quests for thea pp right no Jan 17 10:41:09 now* Jan 17 10:41:13 tried linking the app Jan 17 10:41:18 so I only need to do that once the app is fully finished? Jan 17 10:41:41 oh right, i do need to link the apps - i can't finish the "Testing" quest for example without linking an app Jan 17 10:41:44 so have no way of testing it Jan 17 10:42:17 4b are they referring to the keystore file? Jan 17 11:10:15 hi Jan 17 11:11:08 if I have a worker thread and it is adding values to an ArrayList which is used to fill a ListView in the UI thread Jan 17 11:11:24 is it sufficient to synchronize that access to that ArrayList? Jan 17 11:12:07 yes Jan 17 11:12:20 or you can just use one of the synchronized datastructures. Jan 17 11:12:23 depending on your access pattern Jan 17 11:14:16 with a synchronized datastructure does that guarantee both threads see the same data Jan 17 11:14:38 I am not an expert in multithreading by I understand there can be a problem that the two threads have different copies Jan 17 11:16:43 just use synchronized Jan 17 11:17:00 ChrisUK: can you just push the complete list? Jan 17 11:17:28 what do you mean lasserix, push the list? Jan 17 11:17:35 like pass the list in the message? Jan 17 11:17:39 worker thread fills list, passes to ui thread Jan 17 11:17:44 If you're ever going to remove items, don't just synchronize.. Only touch it on the ui thread Jan 17 11:17:45 via a message? Jan 17 11:17:53 ^^ Jan 17 11:18:35 lasserix, well this is a download list so it populates the list as more is downloaded Jan 17 11:18:37 looks better Jan 17 11:18:42 ah Jan 17 11:18:56 well you should probably push elements to ui thread and add them to a list there Jan 17 11:19:03 not push a list that is added too and then passed Jan 17 11:19:30 so you think sending a message to the UI thread with the data and letting it push it is better? Jan 17 11:19:42 no you are getting hung up on push Jan 17 11:19:50 your background task should download one thing Jan 17 11:19:54 and send that to the UI thread Jan 17 11:20:02 how would I send it Jan 17 11:20:03 whatever is going on in the UI thread can add it to the list and present it Jan 17 11:20:09 lots of ways Jan 17 11:20:15 but you can just subclass async task Jan 17 11:20:22 to give the result as the downloaded thing Jan 17 11:20:36 I am using messages to communicate with the thread and the main thread at the moment Jan 17 11:20:42 that's fine Jan 17 11:20:57 I think syncronize is the simplest solution Jan 17 11:21:09 but I am concerned about Memory Consistency errors Jan 17 11:21:12 you shouldn't really have a persistent list in a background thread Jan 17 11:21:16 that is shared by the UI thread Jan 17 11:21:25 for this Jan 17 11:21:53 why not? Jan 17 11:21:58 seems like a simple solution Jan 17 11:22:00 memory consistency errors Jan 17 11:22:07 yes that is what worries me Jan 17 11:22:08 lol Jan 17 11:22:10 the simplest solution is to have your background thread download a single item Jan 17 11:22:27 put it in the message, pass it to the ui thread, let whatever is running in ui thread add it to list or do whatever it needs to do with it Jan 17 11:22:38 ok that is what I thought infact Jan 17 11:22:40 I will do just that Jan 17 11:22:46 why does the background task have access to the entire list when its responsiblity is to download? Jan 17 11:23:02 *download single elements at a time Jan 17 11:23:29 or even a set of elements, it doesn't matter, but the list that the UI is using should probably only be in the ui thread execution context Jan 17 11:27:25 I did think about sending a message with the data Jan 17 11:27:46 but having the worker thread just share an ArrayList with the UI seemed the simplest as long as it was syncronized Jan 17 11:28:40 can you set an ArrayList to atomic? Jan 17 11:29:22 hey guys, how does android studio generate the layout previews ? is there any library for that ? Jan 17 11:52:10 Hello everyone could someone help with File I/O , i'm able to write data away to my file and read it back in. but the next time i do the same i cannot read the previous data, it seems to be getting removed. Anyone got a clue what i'm doing wrong ? Jan 17 12:08:15 hyrixo: how are you writing data? any code? pastebin.com Jan 17 12:10:01 x29a , http://pastebin.com/qsRtrwwT i think i might be reading wrong Jan 17 12:16:54 Or could it have to do with because i have a error from sendUserActionEvent() mView == null after the user presses the OK button from a alertbox . Jan 17 12:18:09 hy all Jan 17 12:18:24 yesterday I needed to go, so I couldn't wait for an answer Jan 17 12:18:48 what tools are the best for creating an Android game? Jan 17 12:19:19 it would be a 2D game, just like a cartoon Jan 17 12:20:30 I know the Unity well, but maybe there are better options Jan 17 12:33:11 Heeey Jan 17 12:33:57 I've a FrameLayout with an ImageView inside, but the navigation bar is covering the image Jan 17 12:33:58 https://gist.github.com/anonymous/d90c2630598265114b22 Jan 17 12:34:55 what can I do so that the image is as big as the available display space without taking into account the navigation and action bar (which I already hide)? Jan 17 12:40:30 Wixy , i'm a beginner but woudln't it be able to force that with layout_weight ? Jan 17 12:41:03 I can try, let me see Jan 17 12:43:36 nop, didn't help Jan 17 12:44:16 weight only works on the children of linear layout Jan 17 12:44:21 Hai, lasserix. Jan 17 12:44:29 yo TacticalJoke Jan 17 12:44:35 I'm thinking of moving to AS today, finally. :D Jan 17 12:44:51 hurrah Jan 17 12:44:55 Until they fully support JVM unit testing, I could just move all my to-be-tested code into a Java module. Jan 17 12:44:58 welcome to the world of tomorrow Jan 17 12:45:08 I downloaded it yesterday. It's way nicer now. :) Jan 17 12:45:11 Not laggy like before. Jan 17 12:48:24 lasserix, yeah, I changed the layout to linear in order to try with weight. do you have any other idea? Jan 17 12:48:37 it looks like an easy problem, but everything I tried didn't work Jan 17 12:49:30 i dont know what you are trying to do Jan 17 12:49:36 you want an image to take up the whole screen? Jan 17 12:49:44 that's right Jan 17 12:50:36 right now it's taking the whole screen, but the navigation bar is covering it Jan 17 12:54:41 How come i get a sendUserActionEvent() mView == null after the users presses a button on my alertdialog.builder ? Jan 17 12:55:49 http://pastebin.com/fyNEWGpr is my alertdialog code Jan 17 12:57:38 hyrixo: Samsung Galaxy S4? Jan 17 12:58:41 TacticalJoke, yes Jan 17 12:58:55 Wixy you need to hide that bar Jan 17 12:59:02 hyrixo: Know how I figured that out? :D Jan 17 12:59:13 Ye i read something about it aswell :p Jan 17 12:59:19 lasserix, I don't want to hide that bar, why would I? Jan 17 12:59:28 So it's just a LogCat message? Nothing is breaking or anything? Jan 17 12:59:34 hyrixo: does the alertdialog get automatically cancelled so you are cancelling it twice the second time iti s null? Jan 17 12:59:39 If it's just a LogCat message, I wouldn't pay much attention. I get weird stuff like that all the time with my Sonys. Jan 17 12:59:40 Wixy you just said you wanted to Jan 17 12:59:44 just once i believe Jan 17 13:00:03 Wixy you can use BitmapFactory to resize the bitmap of the imageview to be whatever size (ie, the size of the screen) Jan 17 13:00:07 and well i was wondering if it was ruining my FIle i/o, my file seems to be getting removed all the time Jan 17 13:00:11 no, I want the navigation bar to not cover the image view, that is, the imageview should take the whole sceen except the height of the navigation Jan 17 13:00:29 What file? Jan 17 13:01:08 a internal storage file Jan 17 13:01:45 I doubt that has anything to do with a LogCat message about "mView" being null in sendUserActionEvent(). Jan 17 13:01:59 Wixy: and it doesn't now? Jan 17 13:02:33 and as i said, if you can figure out what dimensions you want, you can manually resize it to be those dimensions with BItmapFactory Jan 17 13:02:56 right now: blue is the whole screen, red is the top of the navigation bar and black is the imageview http://i.imgur.com/CtOo5uu.png Jan 17 13:04:03 Well the file doesn't get removed but it's empty even tho he writes something Jan 17 13:04:16 hyrixo: What does your file-writing code look like? Jan 17 13:04:30 lasserix, this is what I want: http://i.imgur.com/DNa2QKk.png Jan 17 13:04:54 Wixy oh you can add a dummy view spacer Jan 17 13:04:59 that is the height of the navigation bar Jan 17 13:05:08 hmn, what height is it? Jan 17 13:05:11 TacticalJoke , http://pastebin.com/058wvrsm Jan 17 13:05:27 i dont know i dont even know if it is constant but you can determine it at run time Jan 17 13:05:41 I suppose it depends on many things. let me check Jan 17 13:06:19 hyrixo: That's not a safe way to write files. Jan 17 13:06:23 TacticalJoke , the second i read it after it gives the written data , but when i try it again the previous data is gone Jan 17 13:06:29 You should write to foo.tmp and then rename foo.tmp to foo. Jan 17 13:06:31 Then you get atomicity. Jan 17 13:07:05 whats that TacticalJoke? Jan 17 13:07:13 wouldn't i have to read everything in first and write everyhing out ? Jan 17 13:07:16 lasserix, alright, I'll add that height as a bottom margin. thanks Jan 17 13:07:42 yes thats what margins are for :) Jan 17 13:08:13 hyrixo: What I'm talking about might not be the cause of your issue, but it certainly could be. Jan 17 13:08:31 The problem is that when you say "openFileOutput", that file is, I think, blanked. Jan 17 13:08:56 If FileOutputStream.write throws then your file will be left blank. Jan 17 13:09:21 If, instead, you write to a temporary file (foo.tmp) and then rename (foo.tmp --> foo) then the worst-case scenario is that the temporary file is blanked. Jan 17 13:09:49 Why are you using raw files, anyway? If it's important data, you might be better using SQLite. Jan 17 13:09:54 So i should read all , write all basicly ? Jan 17 13:10:34 TacticalJoke: are you sure? that seems very wrong. Jan 17 13:10:46 lasserix: Yeah. Jan 17 13:10:49 reading from a file destroys its contents? Jan 17 13:10:55 No, writing to it does. Jan 17 13:12:11 This SQlite is for local data ? Jan 17 13:12:37 hyrixo: What is this data that you're saving? Jan 17 13:13:03 Just some local data the user can create itself when the app doesn't have this yet Jan 17 13:13:42 lasserix: Unless you choose to append, the contents of the file are removed. Jan 17 13:14:01 When opening the file for output. Jan 17 13:16:29 oh Jan 17 13:16:30 yeah Jan 17 13:18:40 hyrixo: How are you reading the data? I guess it's possible that the file's contents aren't being lost but you're not reading it correctly. Jan 17 13:19:41 TacticalJoke , http://pastebin.com/rcnMREwg Jan 17 13:22:36 Now i'm reading all the data first from the file, then i add my new data to the String and yet it's the same thing happening Jan 17 13:23:32 What do you mean by "reading all the data first from the file"? Jan 17 13:23:57 I read it all out from the file , then i add my new data to the read data and write it back away Jan 17 13:26:22 Oh now it does work with the new method Jan 17 13:52:03 Hi all Jan 17 14:00:11 Hmm. I wonder whether including 'android' anywhere in my package name is risky. Jan 17 14:00:21 I was thinking of using .android.. Jan 17 14:01:00 Would you folks risk that? Jan 17 14:01:57 Time to time AS Shift+Escape hides Project window and not Active Tool Window. Jan 17 14:32:26 Firefox changed their Search Bar thing. Jan 17 14:32:31 I think they should just remove it. Jan 17 14:51:40 i’m not using any xml or ui editors, all code. i’m using a code example that uses findViewById. is there a programmatic alternative to that? Jan 17 14:52:15 sorry for the poorly worded question, but i want to use this TextView messageText = (TextView)dialog.findViewById(android.R.id.message) when my AlertDialog is built programmatically Jan 17 14:54:11 hello Jan 17 14:54:15 hi Jan 17 14:55:07 ultra-: You're creating Views in Java code and then setting the view of an AlertDialog to the root of the Views you've created? Jan 17 14:55:56 if i want to have a textbox that is autocomplete and gets its data from a web service, what adapter is best to use? also do you guys know of any tutorials on doing this ? Jan 17 14:56:45 i’m just trying to get an instance of the AlertDialog’s title and message TextViews so I can center it… reading online it looks like I should just provide a new TextView, so i think i’ll just do that. Jan 17 14:57:33 I guess you can use AlertDialog.Builder.setView after instantiating the View yourself. Jan 17 14:57:40 Though it's not a good idea to avoid using XML files here. Jan 17 14:57:59 Just makes code harder to read and projects harder to maintain. Jan 17 14:59:04 that doesn’t bother me Jan 17 15:00:30 Why not? Jan 17 15:01:45 my interface is coded completely custom, including every graphic and gesture (it’s not a standard interface)… not even a single .png file besides the app icon… it’s doing it the hard way, but i need better control over everything and also it helps make it as similar as possible to the ipad version of the app Jan 17 15:01:53 so basically i’m used to doing everything the hard way Jan 17 15:03:19 also, i’m the only one who will ever work on it and it’s a hobby, it’s ok if things take a while Jan 17 15:05:14 ultra-: what is it ? Jan 17 15:06:10 http://www.sub-version.net Jan 17 15:06:34 a clip launching app for ableton live, i’m adding bitwig studio support and a freemium model now Jan 17 15:06:58 nice! Jan 17 15:07:04 I love ableton live Jan 17 15:08:01 wow you must be pretty good at this Jan 17 15:08:42 well i’ve been doing the back end python scripting for live for a long time Jan 17 15:08:53 and the app itself has been a lot of work Jan 17 15:09:12 wow so you are also a developer of live itself Jan 17 15:09:13 respect! Jan 17 15:09:25 oh, no i don’t work for ableton Jan 17 15:09:34 you can script live with python Jan 17 15:09:38 oh ok Jan 17 15:09:43 so this app communicates with my script Jan 17 15:10:02 lets you get into remapping hardware controls, too Jan 17 15:10:50 eventually this app will contextually remap your hardware depending on what you’re doing in live… so it uses the app when a touch interface is best, but it’ll remap your hardware so you can use hardware when it works best Jan 17 15:10:50 I'm no pro at ableton but I tinkered around in a amateur way a few times, never looked at the programming part Jan 17 15:11:04 sort of like push or mpc40, but with any combination of hardware controllers you want Jan 17 15:11:28 i’m no pro at ableton either… not a good musician Jan 17 15:12:47 if you ever get into scripting for live, let me know… there’s not a lot of info out there and no official support, but i’m always willing to help Jan 17 15:13:50 the hardest part is debugging since there’s no interface for it… i made a system to debug over MIDI to xcode’s console Jan 17 15:14:34 thanks for the offer, I'll see if I get around to it sometime Jan 17 15:16:24 Hello Jan 17 15:16:29 Hi Jan 17 15:17:54 I got Android Studio working on a Debian Wheezy Latest 32 bit Intel CPU. In addition, I got the aapt issued resolved as well. So, not only is it installed, but it compiles without issues. Jan 17 15:18:23 congrats! Jan 17 15:18:52 you got android studio running without issues? you deserve turing award Jan 17 15:18:53 Thanks Jan 17 15:19:22 if not a nobel prize Jan 17 15:19:23 I have an old IBM Thinkpad. Jan 17 15:19:44 there no nobel prize for math/it Jan 17 15:20:12 ok then a purple heart Jan 17 15:20:53 So if anybody ask about have issues with aapt on a 32 bit Linux, just use 17.0.0 sdk tool aapt version or recompile it. Jan 17 15:21:00 *having Jan 17 15:22:19 skibur: how much ram do you have on that thinkpad ? Jan 17 15:22:27 2 GB Jan 17 15:22:33 and it's smooth ? Jan 17 15:22:39 I had to upgrade Jan 17 15:22:41 yes Jan 17 15:23:06 shmooz: I'm running Android Studio right now. It's way faster than when I last tried it. Jan 17 15:23:10 In fact, I'm switching my project over today. Jan 17 15:23:13 with a 2.0 GHZ CPU, single core. :S lol Jan 17 15:23:20 skibur: which version of AS are you running ? Jan 17 15:23:30 Latest Jan 17 15:23:33 checking... Jan 17 15:23:37 bah, I'll try it next week Jan 17 15:23:45 AS 1.0.2 Jan 17 15:24:01 also 1.1 preview is out I think Jan 17 15:24:16 TacticalJoke: yeah I noticed your comments about it being faster Jan 17 15:24:58 I can't tell whether it's faster than Eclipse or not. Jan 17 15:25:03 I'm surprised to be saying that. Jan 17 15:25:15 Two months ago, it was slower than slow. Jan 17 15:25:30 ok need to jet Jan 17 15:25:36 have a good one Jan 17 15:26:09 I guess they optimized it recently Jan 17 15:26:20 In some ways, it feels faster than Eclipse. Hard to tell, though. Jan 17 15:27:01 still not fast enough Jan 17 15:27:06 neither of them Jan 17 15:27:22 I agree. Jan 17 15:27:27 Microsoft should take over android with Visual Studio lol Jan 17 15:27:42 they'd love to I be Jan 17 15:27:44 bet Jan 17 15:29:37 I remember before genymotion I was arguing here with people who were saying it was impossible to make an emulator that is faster Jan 17 15:30:02 and I swore I would write one myself but, I was just bluffing heh Jan 17 15:33:18 i just want gradle to compile faster Jan 17 15:36:28 I was quite a troll when I first came here Jan 17 15:36:33 I'm getting better Jan 17 15:37:23 i don’t mind Jan 17 15:37:55 I shall still replace android and iOS with my own mobile OS some day, some day I shall! Jan 17 15:38:15 a mix of openBSD and QNX Jan 17 15:39:01 iShmooz Jan 17 15:39:31 put it on the list with meegoblin Jan 17 15:40:28 call it windows mobile 5 Jan 17 15:40:35 no, 6 Jan 17 15:41:08 i used to code for that, i’d even write custom controls Jan 17 15:41:18 it felt like coding for a really little windows computer :/ Jan 17 15:41:20 real time and secure and stable Jan 17 15:41:58 i had this idea of coding the buttons so they could be used with a finger, i might have been the first ever to do that :} Jan 17 15:44:20 Overly attached IDE: "Are you sure you want to exit? :/" Jan 17 15:44:52 Nah, I just press Alt+F4 for fun. Jan 17 15:59:23 It would be nice if AS actually showed a progress bar for the stuff it downloads during the install.. Jan 17 15:59:30 "Downloading Android SDK Tools" doesn't tell me much. Jan 17 16:11:08 good morning all :) Jan 17 16:12:45 morning Jan 17 16:14:04 Looking at past comments: I find AS much fast than Eclipse. That was one of my biggest issues with Eclipse, too slow. Jan 17 16:14:23 But it's normal, it's a very generic IDE, and that add overhead. Jan 17 16:15:16 So for someone who uses many languages, it's a good compromise for sure. I only used it for Android, so I prefer something more specialized Jan 17 16:15:58 I had switched to IDEA just 3-4 months before AS came out, so I was very happy about it's announcement. Jan 17 16:27:15 hello? Jan 17 16:27:52 Can anyone see this message? Jan 17 16:27:57 yes Jan 17 16:29:03 Does anyone know how to get the AVD running fast? Jan 17 16:29:25 Any general tips? I'm running on linux so I might be able to use KVM Jan 17 16:30:16 Right now my solution is dual booting #! (The linux distro) and Android x86 Jan 17 16:30:37 Which is really obnoxious Jan 17 16:31:24 Not sure what you mean there MercuryDev , what's the link between AVD and rebooting your OS? Jan 17 16:31:54 You AVD should run in your emulator, inside your OS Jan 17 16:32:19 What I mean is right now I'm not using the AVD, I'm using Android x86 and dual booting because the AVD is slow Jan 17 16:32:47 My computer is rather slow and cannot run the AVD at any reasonable framerate Jan 17 16:33:01 Have your tried Genymotion? Jan 17 16:33:34 My box is slow too, I only use real devices to dev Jan 17 16:34:08 I have not, I might Jan 17 16:34:25 Unfortunately I do not own and cannot obtain a normal android device Jan 17 16:35:01 then I guess you have no choice but to try Genymotion :D Jan 17 16:35:25 My "linux box" is actually a chromebook C710 with the coreboot BIOS flashed and Linux installed Jan 17 16:36:16 The 16 GB SSD is quite fast as far as read/write, but it's too small and the processor is 1.1 GHz (at least it's dual core) Jan 17 16:38:24 Ok well thanks for the suggestion of genymotion, I have to go Jan 17 16:42:13 Adios! Jan 17 16:42:29 Also consider HAXM if you have an Intel CPU. Jan 17 16:55:30 is anybody else having problems with Logcat in AS? When it uses the app: filter it doesn't display any logs, I have to select "No Filters" to see anything and then I'm bombarded with Logs from every app Jan 17 16:58:26 hey guys, any studio developer here ? Jan 17 16:58:45 sigh :) Jan 17 17:08:03 MikeWallaceDev: are you a android Studio developer ? Jan 17 17:08:22 Just ask the question. Jan 17 17:08:48 Hello Jan 17 17:09:00 How can I sign an app in debug mode? Jan 17 17:09:03 TacticalJoke: what library does android studio use to preview and generate android layouts ? Jan 17 17:09:07 Any ideas? Jan 17 17:09:15 I build from command line Jan 17 17:27:28 so im building a wearable app, what should my configurations look like for mobile and wear. it says the default activity is not found Jan 17 17:31:48 anyone with some ndk knowleadge? Jan 17 17:36:51 In Android Studio, is there a way of setting Java 1.7 level throughout the project (in every module)? Jan 17 17:42:55 TacticalJoke, that's set in build.gradle Jan 17 17:43:08 AS has nothing to do with it. Jan 17 17:48:30 Can I set sourceCompatibility and targetCompatibility in the project's build.gradle? It's not liking me trying. Jan 17 17:49:22 pretty much everything can be set in Gradle. Your app can build using just Gradle, without AS. Jan 17 17:49:27 I'm trying to avoid setting it once per module. Jan 17 17:55:43 So is it possible to set it in the project's build.gradle? Jan 17 17:59:18 I don't know if this will help, but yesterday I was told about placeholders. You might want to look into that. Jan 17 18:00:23 Okay. Jan 17 18:00:36 One thing that I noticed about gradle yesterday is that it's very easy to use when you don't go outside the norm, but if you need to do something special then there is A LOT to learn. Jan 17 18:00:39 What do you folks do here? I'm using JDK 8. Do you just set it once per module? (Or do you use JDK 7?) Jan 17 18:00:51 One issue I'm having is that javac is giving a warning about language level. Jan 17 18:00:59 Yeah. Jan 17 18:01:38 I'm looking in my gradle.build and settings.gradle and I don't even see mention of the language Jan 17 18:01:49 Which JDK version are you using? Jan 17 18:02:19 javac -version javac 1.6.0_45 Jan 17 18:03:02 You should use at least 7. :D Jan 17 18:03:03 alternatives --display java Jan 17 18:03:03 java - status is manual. Jan 17 18:03:03 link currently points to /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71-2.5.3.3.fc20.x86_64/jre/bin/java Jan 17 18:03:05 For the diamond operator and stuff. Jan 17 18:03:23 I have a few alternatives, I keep switching :) Jan 17 18:03:28 Ah, okay. Jan 17 18:03:33 I could just use 7... Jan 17 18:03:40 ...but they're gonna stop supporting it in April. Jan 17 18:04:07 MikeWallaceDev, hrmf, Gradle is essentially a programming language that takes all the Java syntax Jan 17 18:04:17 actually, I'm kinda noticing that there is a discrepency there... Jan 17 18:04:22 so it's not that hard... it's just the people think they can hack through it without looking at the doc Jan 17 18:04:34 or they don't get what Gradle does and what AS does Jan 17 18:04:35 -version shows 1.6, alternatices shows 1.7.... Jan 17 18:05:01 Or maybe I should just use 7 until April when everyone starts getting upset that it's not supported anymore (whereupon someone will post on SO how to avoid all these weird error messages when using JDK 8). Jan 17 18:05:12 Mavrik, the doc is 60 chapters. It's not a man page :P Jan 17 18:05:21 Yeah, the documentation is crazy. Jan 17 18:05:26 MikeWallaceDev, huh? Jan 17 18:05:32 And even when you find what you're looking for it's just a casual mention within 20 paragraphs. Jan 17 18:05:38 exactly Jan 17 18:05:45 That's like saying "omg, I don't wanna read Android doc because it's 600 pages" Jan 17 18:05:48 but it's just a list of APIs. Jan 17 18:06:00 or, it expects you to understand the previous 20 chapters Jan 17 18:06:02 What DOES require better documentation is the Android plugin though. Jan 17 18:06:04 Right. lol Jan 17 18:06:38 I tried reading Gradle's documentation from start to finish months ago. I gave up after being bored to tears by a few chapters. Jan 17 18:07:01 So you read whole Android JavaDoc from start do finish too? Jan 17 18:07:06 I did the same thing TacticalJoke Jan 17 18:07:33 Analogies between Gradle and the Android API seem kinda odd. Jan 17 18:07:39 hehe Jan 17 18:08:54 Mavrik, Android is the platform that I am building for. I'm making Android apps. Gradle is just a build tool. So no, I don't want (or should have to) spend that much time reading it's docs. Jan 17 18:09:15 It has a huge learning curve when you come from Android Jan 17 18:09:29 I've got an odd Gradle problem. I moved some code from both my 'mobile' and 'wear' modules into a shared library module in AS. Mobile app has a dependency on 'com.google.android.gms:play-services:6.5.87', wear app depends on 'com.google.android.gms:play-services-wearable:+', and the new library depends on the same thing as the mobile app. Jan 17 18:09:29 And the documentation is just bad, from what I've seen. Jan 17 18:09:41 Consider dynamic dependencies: there's almost no documentation for the syntax. Jan 17 18:09:42 The docs are all written thinking that you will not be using Android. Jan 17 18:09:55 There's one casual mention of the + operator within tens of paragraphs. Jan 17 18:10:08 are you guys actually talking about gradle right now? Good Jan 17 18:10:32 From the Gradle to the grave. Jan 17 18:10:33 we're talking about the learning curve/docs Jan 17 18:10:39 hahaha :) Jan 17 18:10:48 MikeWallaceDev: That's like saying you shouldn't have to learn Java to build Android Jan 17 18:10:52 anyway, when I try to build it gives me "Error: more than one library with package name 'com.google.android.gms' You can temporarily disable this error with android.enforceUniquePackageName=false However, this is temporary and will be enforced in 1.0" Jan 17 18:10:59 *Android apps Jan 17 18:11:13 yep, same thing. Jan 17 18:11:22 MikeWallaceDev, I respectfully disagree Jan 17 18:11:38 Having a good build tool isn't optional for modern development. Jan 17 18:11:44 what was eclipse's build process? Jan 17 18:11:50 Ant, I think. Jan 17 18:11:50 I didn't say it wasn't good. Jan 17 18:11:55 Unless you used Maven or something. Jan 17 18:11:57 JavaDog, Ant Jan 17 18:12:06 If you can't learn at least one (whether it's Maven or Gradle) you have no business developing apps above toys. Jan 17 18:12:20 I said the learning curve is huge when you want to do something out of the box. Jan 17 18:12:24 It's not like it's frigging complicated. Jan 17 18:12:25 I never had to mess with Ant. Always just worked, which is why I didn't even know what it is. Gradle, on the other hand... Jan 17 18:12:48 know what it was called* would be a better way to word that Jan 17 18:13:01 JavaDog, Eclipse had it's own magic Jan 17 18:13:07 That could or could not be converted into Ant. Jan 17 18:13:16 Depending on lunar phase. Jan 17 18:13:33 Gradle likes the attention. Ant was a humble build system. Jan 17 18:13:40 Mavrik, you're starting to sound like you haven't actually tried to do anything out of the norm with Gradle. Jan 17 18:14:18 Can anyone tell me what to do about "more than one library with package name 'com.google.android.gms'"? Googling results in abandoned threads asking similar questions. Jan 17 18:14:24 So what would you folks recommend: use JDK 8 or JDK 7? If the former, what's the best way to set Java 1.7 level throughout a project? Jan 17 18:14:25 Well, I consider having a full CI setup with screenshot extraction, artifact upload, branding and NDK build a "norm" Jan 17 18:14:26 so I guess no. Jan 17 18:14:53 But if I sound like someone that doesn't tolerate people who don't learn to do their job and tools properly... you're right. Jan 17 18:15:05 Oh, and by the way, I've been developing for 30 years with projects under my belt made for AT&T, Sprint, US Army and The Montreal Stock Exchange. And I can build toys ;) Jan 17 18:15:14 JavaDog, something is pulling in dependencies it seems. Jan 17 18:15:33 MikeWallaceDev, and yet after all those years you still can't figure out a simple build system. Jan 17 18:15:34 Yes, the library I created shares a dependency with another project module. Dunno what to do about it though. Jan 17 18:15:45 JavaDog, you exclude it Jan 17 18:15:55 How's that? Jan 17 18:15:58 If I have an EditText and I use the .toString and .trim() and if the editText is blank will it return null? Jan 17 18:15:58 JavaDog, worst case they need different versions, but probably not... you're using Gradle right? Jan 17 18:15:58 And again, I never said that Gradle isn't a good tool, I said it has a big learning curve. Jan 17 18:16:22 Mavrik: Yeah, Gradle as packaged with AS Jan 17 18:16:27 drose379, IIRC EditText always returns at least an empty string Jan 17 18:16:44 so it would be better to do .equals("") Jan 17 18:16:45 ? Jan 17 18:16:53 .isEmpty Jan 17 18:17:18 The simplest way is to use EditText.length. Jan 17 18:17:24 There is no "isEmpty" method or anything like it. Jan 17 18:17:47 Oh, I figured he was doing EditText.getText (or whatever the method is) at some point Jan 17 18:17:48 JavaDog, compile('your dependency') { exclude group: 'group of dependency you awnt to exclude' module: 'module of dependency you want to exclude' } Jan 17 18:17:52 was referring to String.isEmpty Jan 17 18:17:59 JavaDog, that's the syntax in gradle Jan 17 18:18:04 see example here in readme: https://github.com/JakeWharton/double-espresso Jan 17 18:18:16 someEditText.getText().toString().isEmpty() vs someEditText.length() == 0 Jan 17 18:18:25 I usually exclude dependency from both and then include it explicitly with newest version myself Jan 17 18:18:48 TacticalJoke I will use the second one Jan 17 18:18:52 But he's probably already doing .getText.toString() somewhere Jan 17 18:19:02 Or maybe not. But if he is he could do that and it would be clear what he was checking for Jan 17 18:19:09 True. Jan 17 18:19:28 Ok I have 2 variables Jan 17 18:19:33 input1 and input 2 Jan 17 18:19:49 Mavrik: Thanks, I'll look into it some more Jan 17 18:19:50 Im trying to make a method that loops over them, and im doing int count = 1; Jan 17 18:20:11 while (count < 2) {if ("input"+count == 0) Jan 17 18:20:11 JavaDog, I just don't know by heart what the google play services definition is, you'll have to look that up :) Jan 17 18:20:26 drose379: You're trying to go through a string character by character? Jan 17 18:20:40 What do you mean? Jan 17 18:20:52 What do you mean by "loops over them"? Jan 17 18:21:06 Oh, I think I see. Jan 17 18:21:26 But for some reason I dont think the "input"+count will build a variable Jan 17 18:21:26 You can't really construct variable references dynamically like that. You'd have to use an array or something. Jan 17 18:21:39 hrmf Jan 17 18:21:40 Or just mention each variable. Jan 17 18:21:50 drose379, can you explain more high-level what you're trying to do? Build a string or what? Jan 17 18:22:13 Get the length of the EditText and if it is empty throw an error Jan 17 18:22:21 throw an exception I mean Jan 17 18:22:43 if (editText.length() == 0) { throw new BadUserException("Shame on you."); } Jan 17 18:22:55 ^^ Jan 17 18:22:57 If I store input1 and input2 in an array I could use a for loop to loop over them right Jan 17 18:23:03 Yeah. Jan 17 18:23:20 Thanks Jan 17 18:23:26 Why do you want to loop over those two? Jan 17 18:23:32 I mean -- what do they represent. Jan 17 18:24:25 they will represent the EditTexts, then inside the for I could do if (input.length() == 0) Jan 17 18:24:27 then throw Jan 17 18:25:35 drose379: Have you seen TextView.setError? Jan 17 18:25:38 It's made for cases like this. Jan 17 18:26:09 (EditText is a TextView subclass.) Jan 17 18:26:25 I have not, was going to practice Error handling with Exceptions. Do you think I should look into using .setError instead? Jan 17 18:26:27 Mavrik: I'm getting "Gradle DSL method not found: 'exclude()'". I have it set up like "dependencies { compile project(':myLib') { exclude group:'com.google.android', module:'gms' } }", is that right? Jan 17 18:26:50 Ah. I guess you could try exceptions first. :) Jan 17 18:26:52 For experience. Jan 17 18:27:09 Ok, gonna give this a shot Jan 17 18:27:27 Thank you for the help Jan 17 18:28:16 JavaDog, this is the example from one of my files: https://gist.github.com/izacus/76da2825558064f45b8e Jan 17 18:29:31 Aha, I see. Just formatting I think Jan 17 18:33:25 what is the best way to create a vector drawable from a png? Jan 17 18:33:47 So I have a Java module, and to make things work I have to say "sourceCompatibility = JavaVersion.VERSION_1_7" and "targetCompatibility = JavaVersion.VERSION_1_7". If I don't do this, my app doesn't deploy to my device. I get an error message. Jan 17 18:34:02 If I *do* set these, I get an "Assignment is not used" warning. Jan 17 18:34:06 For each. Jan 17 18:34:11 what's the error message? Jan 17 18:34:20 One sec. Jan 17 18:34:27 I don't have to set those variables Jan 17 18:34:38 I'm using JDK 8, though. Jan 17 18:34:42 Mavrik: Got it working, thanks. So you know, GPS is group:'com.google.android.gms', module:'play-services' Jan 17 18:34:48 ty Jan 17 18:34:50 Though I doubt anyone cares :p Jan 17 18:35:01 This: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000) Jan 17 18:35:17 It's getting confused about Java 8, basically. Jan 17 18:35:44 yeah... I'm wondering if it is a Java path problem? Jan 17 18:36:03 The path seems fine, from what I can see. Everything else works. Jan 17 18:36:19 Setting "sourceCompatibility = JavaVersion.VERSION_1_7" and "targetCompatibility = JavaVersion.VERSION_1_7" fixes this, but then I get a warning about an usused reference. Jan 17 18:36:22 I mean, I wonder if it is seeing conflicting paths somehow? Jan 17 18:36:22 unused* Jan 17 18:37:04 Hmm, I have only JDK 8 installed. Jan 17 18:37:11 I don't know what to do here. Use JDK 7? Jan 17 18:37:12 Do you have multiple................ that answers that. :D Jan 17 18:37:16 :D Jan 17 18:37:42 JDK 7 is not gonna be supported after April. Hmm. Jan 17 18:38:04 Unless you pay them money. (Sounds fun.) Jan 17 18:38:37 I'm using JDK 8 with AS with no problem Jan 17 18:38:41 "Yeah, we needed extended support. We keep getting this Ask toolbar showing up. Any ideas how to remove that?" Jan 17 18:38:54 JavaDog: You're not setting sourceCompatibility or whatever? Jan 17 18:39:05 where would it be set? I forget Jan 17 18:39:14 In the build.gradle for that module (e.g., 'app'). Jan 17 18:40:05 http://pastebin.com/B5j7VGbs Jan 17 18:40:10 You don't need java7 to set source/targetCompatibility to java7 Jan 17 18:40:27 Right. I have only JDK 8. Jan 17 18:40:35 Right, that's fine Jan 17 18:40:45 When was the diamond operator introduced? Jan 17 18:40:58 7. Jan 17 18:41:07 Ah okay. Maybe I'm using 7 then Jan 17 18:41:11 for some reason I thought that was 8 Jan 17 18:42:51 SimonVT: I have a Java module, which my Android module depends on. If my Java module doesn't set sourceCompatibility and targetCompatibility to JavaVersion.VERSION_1_7 I get an error ("com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)"). If I do, everything works but I get a warning ("Assignment is not used"). Jan 17 18:43:20 JavaDog: Ah, okay. Jan 17 18:43:26 So I need to create my own Exception class Jan 17 18:44:08 A class that Extends Exception Jan 17 18:44:30 drose379: You can, or just use one of the ones built into java that sounds similar enough to your error :p Jan 17 18:44:45 You should call it 'BadUserException', drose379. :D Jan 17 18:45:15 hahah, what methods does an exception class need? I just need it to be thrown and caught, and Ill do the error handling myself Jan 17 18:45:22 It doesn't need any. Jan 17 18:45:34 so just Class BadUserException extends Exception {} Jan 17 18:45:36 If setting it makes a difference, then it's obviously used Jan 17 18:45:39 Though it can be a good idea to define constructors such as TypeName(Throwable cause). Jan 17 18:46:06 SimonVT: Yah. Jan 17 18:46:08 SimonVT, how can I sign an android app in debug mode? Jan 17 18:46:14 In order to throw it I need to instantiate it first right? TacticalJoke Jan 17 18:46:25 Yeah, drose379. Jan 17 18:46:29 You're just throwing an instance of an object. Jan 17 18:47:02 Instead of creating my own? Where can I find the list of Java pre-built exceptions? Jan 17 18:47:23 I mean that throwing an exception is throwing an object. Jan 17 18:47:26 The usual pattern is "throw new MyVeryBadException()" Jan 17 18:47:32 But the stipulation is that the object has to be a Throwable. Jan 17 18:47:41 (Exception and RuntimeException are Throwables.) Jan 17 18:47:43 and 'new ClassName' creates an instance Jan 17 18:47:47 will it be throwable if I extend Exception Jan 17 18:48:43 Yep. Jan 17 18:48:49 Check out the class hierarchy. Jan 17 18:49:23 Ok, just created the new class Jan 17 18:49:30 Do you guys use AS? Jan 17 18:49:35 and . Jan 17 18:50:22 Why does this new Class have a lightning symbol rather then a "C" symbol Jan 17 18:50:41 You can probably guess. :) Jan 17 18:50:51 Because it's an... Jan 17 18:50:53 *music plays* Jan 17 18:51:03 .. :( Jan 17 18:51:04 Because it supports Flash? :D Jan 17 18:51:19 drose379: Because it's an _________. Jan 17 18:51:23 get it? Flash? Lightning bolt? Jan 17 18:51:32 Exception? No idea Jan 17 18:51:51 Cause its a sub-class? Jan 17 18:51:52 Yeah. Interfaces also show a different icon. Jan 17 18:52:02 Exceptions seem to have those icons. Jan 17 18:52:07 Oh, alright Jan 17 18:52:10 (I just switched to AS today, so this is all new to me too.) Jan 17 18:52:15 How you like it? Jan 17 18:52:20 Abstract classes look a little different too. Jan 17 18:52:21 It's all right. Jan 17 18:52:37 Way better than it used to be. (Used to be insanely slow.) Jan 17 18:52:57 At least on this computer. Jan 17 18:54:15 http://pastie.org/9837207 Jan 17 18:54:25 saying cannot resolve symbol emptyFieldException Jan 17 18:54:42 throw new EmptyFieldException(); Jan 17 18:54:56 I dont need to instantiate? Jan 17 18:55:06 "new EmptyFieldException()" is instantiating. Jan 17 18:55:20 You could also say "throw emptyFieldException;", but nobody does that. Jan 17 18:55:38 so I can get rid of the emptyFieldException part Jan 17 18:55:38 You should srsly learn Java one of these days. Jan 17 18:56:37 Now its saying Unhandled Exception Jan 17 18:56:47 But I DO handle it Jan 17 18:56:55 I call this method inside a try block Jan 17 18:57:02 and catch EmptyFieldException Jan 17 18:57:12 You're throwing it from another method? Jan 17 18:57:30 Im calling this method(the one that throws) from another method Jan 17 18:57:33 That method has to use a 'throws' clause. Jan 17 18:57:55 the one that has the try catch? Jan 17 18:58:11 The one that says "throw new EmptyFieldException();". Jan 17 18:58:32 try { function(); } catch Exception Jan 17 18:58:46 function() has the throw inside of it Jan 17 18:58:51 Ok, is that to tell the method that is calling it that it throws this exception? Jan 17 18:59:03 It's to tell the world, basicaly. Jan 17 18:59:05 basically* Jan 17 18:59:28 These are checked exceptions. They have to be announced. Some love checked exceptions; some hate them. Jan 17 18:59:44 By announced you mean use the throws clause? Jan 17 19:00:05 Yeah. Or with a catch. Jan 17 19:00:05 private void someMethod() throws MySpookyException { ... } Jan 17 19:00:07 I guess. Jan 17 19:00:22 (I guess that 'announced' doesn't make us much sense there.) Jan 17 19:00:43 ^ but doing what I just said means that you're delegating the responsibility of actually dealing with the exception to the caller of someMethod() Jan 17 19:02:24 I just dont understand why Im throwing EmptyFieldException Jan 17 19:02:30 when I named it emptyFieldException Jan 17 19:03:56 You're throwing an instance of EmptyFieldException. It doesn't matter what syntax you use. Jan 17 19:04:26 so I dont even need this line: Jan 17 19:04:34 /EmptyFieldException emptyFieldException = new EmptyFieldException(); Jan 17 19:04:38 Hmm, Android Studio doesn't warn about serialVersionUID by default. Jan 17 19:04:53 Yeah, you don't need that. And it's not common practice to do that. Jan 17 19:05:10 Got it,thank you Jan 17 19:05:16 Still gotta make sure the for loop I wrote works Jan 17 19:05:22 It's always "throw new WhateverException();". Concise. Jan 17 19:05:32 Right Jan 17 19:05:55 Just got my commit in so I'ma catch up on sleep. Later all :) Jan 17 19:06:21 Thanks for the help JavaDog Jan 17 19:06:54 haha ^ Jan 17 19:09:46 Leaving for a bit Jan 17 19:09:52 Thanks for the help TacticalJoke Jan 17 19:11:34 Hmm, I'm getting this Java-language-level problem only when I use a Java module. Jan 17 19:11:42 Otherwise, I don't have to change anything. Jan 17 19:17:09 They seem to have remove the ability to set the language level in Android Studio's GUI. Jan 17 19:17:11 IntelliJ has it. Jan 17 19:18:10 I guess I'll just use JDK 7. I probably won't need Java modules once they implement JVM unit testing properly, anyway. Jan 17 19:21:23 Hmm, here is a warning I'm getting now (when everything else is working fine): :core:compileTestJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7 Jan 17 19:21:42 Google doesn't show anything specific. Jan 17 19:25:02 Ugh. Going back to JDK 7. Jan 17 19:32:13 can I assume that canvas' drawPath is optimized, i.e. it wouldn't matter much (performance-wise) when 90% of the lines aren't actually visible on the screen? Jan 17 19:59:32 why is getSupportFragmentManager Jan 17 19:59:33 Red Jan 17 19:59:56 http://abcnews.go.com/Technology/wireStory/funding-boom-shows-power-tech-startups-raises-concerns-28263323 Jan 17 20:00:25 probably because your API level is set too low DragonPunch or you didnt include the supprot library? Jan 17 20:00:29 Funny. Android Studio auto-finds JDK 7. But not JDK 8. Jan 17 20:01:04 DroidFreelanceR: im calling it from a fragment Jan 17 20:01:22 are you trying to use retro-lambda TacticalJoke ? Jan 17 20:01:30 it doesn't matter where you call it from if it can't find the library... Jan 17 20:01:47 wow you're getting into fragments already eh DragonPunch ? I thought you just started adnroid a few days ago Jan 17 20:01:51 Nah. Just standard 1.7 stuff. Jan 17 20:02:24 There's no getSupportFragmentManager in Fragments Jan 17 20:03:26 no Jan 17 20:03:32 yeah normal FragmentManager worked Jan 17 20:04:03 yeah I always use the 4.x fragments not the supprot library fragments Jan 17 20:04:05 DroidFreelanceR: nah it's been like 1.5month now Jan 17 20:04:06 http://puu.sh/eExyv/ccd674fe18.png Jan 17 20:04:14 i made stuff like that Jan 17 20:04:20 i don't see any reason to support 2.2 devices Jan 17 20:04:50 yeah i've seen that before dragonpunch Jan 17 20:04:56 is that a tab pager? Jan 17 20:04:56 yeah right now Jan 17 20:05:08 yeah thats a tab pager w/ custom adapter Jan 17 20:05:22 right now, im doing the onClick for the listviews to show dialog fragments Jan 17 20:05:25 cutom list adapter you mean? Jan 17 20:05:28 yeah Jan 17 20:05:33 im trying to make custom dialog fragments now Jan 17 20:05:40 hopefully i get Jan 17 20:05:45 like Jan 17 20:05:51 why dialogfragments instead of a just a dialog? Jan 17 20:05:52 my custom dialog framgent that i want today Jan 17 20:06:20 did you ever get the web dev that you were wanting the other day? Jan 17 20:06:45 what one for that little 'challenge'? Jan 17 20:07:05 if so, yeah i got that done Jan 17 20:07:10 i dont know you asked me (hevvymetal) the other day if I could do some php database/webstuff DragonPunch Jan 17 20:07:13 i don't know what it was for Jan 17 20:07:17 i just said i dont do php Jan 17 20:07:17 ohh Jan 17 20:07:22 yeah i got it done Jan 17 20:07:36 oh ok did you do it yourself or find someone on #php or what? Jan 17 20:07:43 i had someone do it Jan 17 20:07:49 nice Jan 17 20:07:51 i was too busy on my android Jan 17 20:07:53 stuff Jan 17 20:08:01 is that related to this app or something else DragonPunch ? Jan 17 20:08:04 no Jan 17 20:08:08 totall unrelated Jan 17 20:08:10 gotcha Jan 17 20:08:11 just forget it exists. Jan 17 20:08:19 * DroidFreelanceR forgets it ever existed Jan 17 20:08:22 wut? Jan 17 20:08:42 atm, i need to finish the on click listeners for my Tab 1 to show custom dialog fragments. than i need to setup the networking to pull data off my server. Jan 17 20:08:43 so what does this android comic app do then DragonPunch is that what you're orking on mostly? Jan 17 20:08:55 its not comic Jan 17 20:09:03 its just a random image Jan 17 20:09:07 and random title i used Jan 17 20:09:16 and random data Jan 17 20:09:31 but it really be an NSA busting uber loytalty program right DragonPunch ? Jan 17 20:09:40 like every other android app these days Jan 17 20:09:41 fuck the nsa Jan 17 20:09:42 and fuck uber Jan 17 20:10:13 so someone was reading my resume and they asked me "what are incentives" Jan 17 20:10:18 i was like lol wut? Jan 17 20:10:23 what are incentives???? Jan 17 20:10:35 i hope he is not the one hiring people Jan 17 20:10:37 if I say an app does incentives what do you think it means? Jan 17 20:10:45 is it that much of a mystery? Jan 17 20:10:47 yes he was Jan 17 20:10:57 what compamy Jan 17 20:11:06 err i forget i talked to so many last week Jan 17 20:11:14 lol Jan 17 20:11:19 but how would you define an incentive DragonPunch ? Jan 17 20:11:27 a tip Jan 17 20:11:33 hrrrm ok Jan 17 20:11:35 close Jan 17 20:11:51 incentives are generic names for things like "coupons" Jan 17 20:11:56 ^ Jan 17 20:11:56 so groupon is an incentive program Jan 17 20:12:02 but it's not a tip to a waitress Jan 17 20:12:08 it's more like a discount or kickback Jan 17 20:12:15 royalty Jan 17 20:12:25 loyalty you mean Jan 17 20:12:35 ye Jan 17 20:12:53 but yeah i could rewrite that section to be more n00b Jan 17 20:13:06 well not every incentive is a loyalty but yeah loyalty programs usually do get you an incentive ultimately Jan 17 20:13:28 anyway i've been contacting by a shitload of these loyalty program people Jan 17 20:13:31 contacted Jan 17 20:13:36 2 in just 2 days Jan 17 20:13:48 and i worked on loyalty rewards things last year Jan 17 20:13:59 it's like all everyone wants to do these days is make yet another fucking coupon app for android Jan 17 20:14:28 i just find it tedious and boring but meh whatever pays the bills i guess Jan 17 20:15:18 but the loyalty program i was working on lsat year was for a headcase it was the most complex piece of crap in the world and there is no way the consumers or merchants would understand it and he absolutely refused to simplify it Jan 17 20:15:35 then he meets with an investor and the first thing the investor says is "you don't need all that shit" Jan 17 20:15:41 which is what i had been saying for 3 months Jan 17 20:15:42 lulz Jan 17 20:16:08 i don't understand why people who are developing mobile apps miss the simplicity part of it so much Jan 17 20:16:52 they think they can make apps that are as complex to use as desktop apps and that just isn't true in my experience Jan 17 20:22:00 Anyone know why .getWindow() method is not wokring Jan 17 20:23:03 You need to describe the issues you're having better Jan 17 20:23:08 its okay Jan 17 20:23:11 i got it fixed Jan 17 20:23:11 Or, you need to actually describe the issue you're having Jan 17 20:23:37 DroidFreelanceR: was the guy running the show a developer? Jan 17 20:26:48 i dont know DragonPunch nor was i talking to the guy running the show Jan 17 20:27:23 the other thing i hate is when people ask me "what do I usually charge?" Jan 17 20:27:42 which is a completely different question from "what will you charge us?" Jan 17 20:28:06 just because I "usually" charge a lot doesn't mean that I always charge the same amount Jan 17 20:28:17 obviously i charge as much as possible right? big companies can pay more than small companies Jan 17 20:28:24 so it's kind of idiotic to ask "what do you normally charge" right? Jan 17 20:28:51 and when it comes to quoting prices I think it's a whole game in itself Jan 17 20:28:55 we should get some MBA's in here Jan 17 20:31:53 What is currently the best book on the latest SDK version? Jan 17 20:32:23 I want to study some more into android development as i don't get how fragments work and all that new stuff Jan 17 20:32:48 fragements are not new ReScO Jan 17 20:33:22 DroidFreelanceR: they are for me ;) Jan 17 20:33:40 I started meddling with Android when fragments weren't around Jan 17 20:33:44 well maybe they are to you but you don't need a "new" book for fragments Jan 17 20:33:46 Never understood how they work Jan 17 20:34:19 And a lot has been deprecated and there are now way better methods to achieve goals over the hacky methods in some books Jan 17 20:34:40 http://www.amazon.com/Professional-Android-4-Application-Development/dp/1118102274 Jan 17 20:34:53 i have that book resco and it covers fragments Jan 17 20:34:58 it was published in 2012 Jan 17 20:35:08 I find Darcula way too dark. I'm using the light theme with a dark text editor Jan 17 20:35:09 . Jan 17 20:35:17 I'm looking for Lollipop books Jan 17 20:35:32 why resco? Jan 17 20:35:43 it's silly on 2 fronts but if you want to go find some :) Jan 17 20:36:08 Because of all the new API's maybe? Jan 17 20:36:16 the new camera API for instance Jan 17 20:36:32 Won't Lollipop books get out of date pretty quickly? Jan 17 20:36:59 there are too many java retards writing shitty docs Jan 17 20:37:04 TacticalJoke: history tells us there's at least one year Jan 17 20:37:20 ReScO: just code, and use it. Jan 17 20:37:26 you will understand it that way. Jan 17 20:37:28 http://www.appbrain.com/stats/top-android-sdk-versions Jan 17 20:37:29 reading and shit doesnt help Jan 17 20:37:31 ReScO: try orreily Jan 17 20:37:51 ReScO is targeting the 0.5% of the market that is running lollipop apparently Jan 17 20:38:29 what's in the new camera api resco? Jan 17 20:38:52 No, i'm trying to learn something that will eventually be installed on most devices Jan 17 20:38:59 why? Jan 17 20:39:10 Futureproofing myself Jan 17 20:39:24 that's fine if you don't want to make any apps in the present ReScO Jan 17 20:39:41 * ReScO sighs Jan 17 20:40:23 I don't think books are a good idea for a moving target such as Android. Jan 17 20:40:43 actually i do think books are helpful but they don't need to be on the latest version TacticalJoke Jan 17 20:41:05 books tend to organize things better than webpages do and then once you get android in general you can just browse web pages for up to date docs Jan 17 20:41:49 besdies ReScO all the 5.0 books were delayed because they are still trying to fix all the spellung and grammer errers that TacticalJoke found in them Jan 17 20:41:51 I think Android developers do need to be "on the latest version". Jan 17 20:42:14 on it in what way TacticalJoke ? Jan 17 20:42:22 you don't even have any apps on the play store yet Jan 17 20:42:52 so speaking of new stuff anyone written any apps for the ChromeCast stick? Jan 17 20:43:07 I didn't know you could write apps for the cast.....but I hear you can?? Jan 17 20:43:28 someone else also said that Roku has a java API but I never knew that java runs on roku...i thought it was some php type scripting thing Jan 17 20:43:38 are many folks doing Set top box apps in here? Jan 17 20:43:55 for instance 5.0 has a new "leanback API" for TV apps Jan 17 20:45:36 say for instance i want to execute a dd command via runtime.getruntime.execute method.. how do i capture the output and report it back to the app, say via a textbox? Jan 17 20:45:38 any ideas Jan 17 20:52:05 putting "runtime.getruntime.execute" into google returns a few answers Jan 17 20:56:08 hi Jan 17 20:56:16 hey Jan 17 20:56:52 I've added some action item, but when I press them, I don't get the "default style" of a button being pressed, why? Jan 17 20:57:40 what kind of control are you using for your button? Jan 17 20:58:37 what do you mean by kind of control? Jan 17 20:58:46 http://www.appbrain.com/stats/top-android-phones Jan 17 21:00:13 MyWay, http://developer.android.com/guide/topics/ui/controls/button.html Jan 17 21:00:34 it is an item of the actionbar Jan 17 21:01:02 i dont think actionbar items get anims but not sure Jan 17 21:01:13 oh :D Jan 17 21:02:37 you get a light grey square when you press them, DroidFreelanceR Jan 17 21:02:50 yeah, there's a minimal animation Jan 17 21:02:52 in my case I don't get anything, like if it's not pressed at all Jan 17 21:03:11 what does your look like? Jan 17 21:03:14 You probably messed up your theme Jan 17 21:03:32 SimonVT, yep... Jan 17 21:03:53 http://pastebin.com/Sa4autUJ Jan 17 21:04:54 you don't need clickable , maybe that's screwing it up? Jan 17 21:05:04 same without it Jan 17 21:05:31 then I would look in your theme like SimonVT says. Jan 17 21:05:42 or... SimonVT says: look in your theme. Jan 17 21:05:46 http://pastebin.com/rUH9dEXr Jan 17 21:06:01 here is my styles.xml Jan 17 21:06:46 yep, you're playing with your theme. Thars yer problum. Jan 17 21:08:00 Looks fine, but try without it Jan 17 21:08:26 it's true, disabling it I get the grey square, but why? Jan 17 21:08:29 no love for my Simon says joke? Tough room. Jan 17 21:08:58 be careful with that MikeWallaceDev Jan 17 21:09:12 simon can sez kb around here Jan 17 21:09:41 who are the ops on the chan btw besides SimonVT ? Jan 17 21:09:48 someone must own this chan..is it SimonVT ? Jan 17 21:10:19 you must be from the kim-1 era MikeWallaceDev :) Jan 17 21:10:29 i dont think most people ever had that early video game Jan 17 21:11:51 what's a kim-1? (I'm probably of an era before that...) Jan 17 21:13:28 My first keyboard only had two keys. 0 and 1. Jan 17 21:13:32 http://en.wikipedia.org/wiki/KIM-1 Jan 17 21:14:12 Holy shit!! something older me! Jan 17 21:14:19 I Jan 17 21:14:29 TacticalJoke will grammer your ass Jan 17 21:14:41 "Holy shit!! something older than I [am]" Jan 17 21:15:29 DroidFreelanceR: Do you have a diagnosed mental illness? Jan 17 21:15:47 no what about yourself TacticalJoke ? Jan 17 21:16:56 Right, stop it, both of you Jan 17 21:17:29 SimonVT: The only thing I've said to him in weeks. Jan 17 21:17:38 I had him on ignore but he's changed name. Sigh. Jan 17 21:18:06 Keep ignoring him, please :) Jan 17 21:20:19 http://upload.wikimedia.org/wikipedia/commons/9/99/OriginalSimon.jpg Jan 17 21:20:29 you could totally do that with a KIM-1 or arduino today Jan 17 21:22:31 nice Jan 17 21:23:08 Simon debuted in 1978 at the cost of $24.95 (equivalent to $90 in 2015) and became one of the top selling toys that Christmas.[2] Jan 17 21:23:13 wow that's pretty expensive Jan 17 21:23:29 see that's what i was going to say yesterday re the "shakedown" on games in the playstore Jan 17 21:23:36 back then $0.25 was a lot of money Jan 17 21:23:41 for 1-3 minutes of play time Jan 17 21:23:50 so relatively, even the play store shakedowns are pretty good deals Jan 17 21:23:58 i Jan 17 21:24:10 'd say $.25 back then is like $.99 now Jan 17 21:24:20 and no way are people paying $1/game Jan 17 21:25:23 of course the flip side is if you shelled out $25 for a game you owned it forever Jan 17 21:36:27 Hello Jan 17 21:36:44 Morning!! Jan 17 21:37:41 I want to ListView but it has bugged Jan 17 21:37:47 this Source file Jan 17 21:37:48 https://www.dropbox.com/s/rsapufusiymzl4l/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202015-01-18%206.34.09.png?dl=0 Jan 17 21:38:23 List style is writting Xml file Jan 17 21:39:50 I can't view that in my browser. Jan 17 21:39:56 Use http://imgur.com/ or something. Jan 17 21:40:11 yeah, me too Jan 17 21:40:46 If it's code, though, use http://pastebin.com/ . Jan 17 21:41:11 actually, I use uppix.com for temp images (like screenshots) Jan 17 21:41:49 I use Cairo dock, it has this AWESOME extension called Drop to Share. Whatever you drop, it sends it to the correct sharing site. Jan 17 21:43:00 Hi, i'm very new to android dev, i'd like to know if i can develop an entire Android app using C/C++? Jan 17 21:43:38 Just write code. Jan 17 21:43:44 Nothing beats it. Jan 17 21:43:46 Tbh. Jan 17 21:43:56 sorry Jan 17 21:43:57 http://pastebin.com/kKcUNv6Y Jan 17 21:44:05 please check it? Jan 17 21:45:01 For one thing, you shouldn't use wrap_content for a ListView. Jan 17 21:45:57 licksjp, your layout is not being used at all, since you create a new ListView and then set it with SetContent Jan 17 21:46:47 where is this code located? Jan 17 21:47:29 Japan Jan 17 21:47:47 I...... Jan 17 21:47:54 In what function? :) Jan 17 21:48:00 haha Jan 17 21:48:15 In the method Jan 17 21:48:24 I tried. Jan 17 21:48:44 you can do a whole app in c/c++ and some people do soulisson Jan 17 21:49:57 Hi. If I reply to a bad review I got in English, will the user see it in English or translated? Jan 17 21:50:13 function is entryed android app list Jan 17 21:50:26 great question panda81 , I always figured that it would be translated. I hope so :D Jan 17 21:50:42 err why would they see it at all? Jan 17 21:50:49 getting on the listview Jan 17 21:51:00 wouldn't the english comments only be visible on the english website? Jan 17 21:51:12 it is a good question tho re l10n and i8n Jan 17 21:51:14 Haha, did you try it outside Japan Jan 17 21:51:40 DroidFreelanceR: The user wrote "Gówno do potęgi" and Google Play dev console translated it to English for me Jan 17 21:51:54 i havent done any localized versions but thinking about maybe getting into japanese since my wife is jp Jan 17 21:52:08 oh whats the app panda81 and i'll tell you if it shows up here in the USA Jan 17 21:52:20 I've added an item to the actionbar with this icon: http://pastebin.com/hh2pt7MP but now how can I get the light grey square, when the item is pressed? Jan 17 21:53:09 DroidFreelanceR: https://play.google.com/store/apps/details?id=com.visitvr.cardboard Jan 17 21:53:10 Didn't we answer that earlier MyWay ? Jan 17 21:53:12 Gwno do potegi comes out as "shit to the power!" on google translate Jan 17 21:53:18 wth does that mean? Jan 17 21:53:25 what did they really mean panda81 ? Jan 17 21:53:30 no mike, this time it's not due to the custom style, it's a different thing Jan 17 21:53:33 don't know DroidFreelanceR but it doesn't look good :D Jan 17 21:54:04 hahah MikeWallaceDev i had one time a CC got rejected back in the 90s Jan 17 21:54:04 DroidFreelanceR: the dev console auto translates it to "Shit to the power" Jan 17 21:54:11 on some app i had Jan 17 21:54:23 and they used the name "Boraccho Poranga" Jan 17 21:54:36 so i was going around the block with the CC companies and yadda yadda Jan 17 21:54:44 it's not a valid card yadda Jan 17 21:54:58 it ends up that "Boraccho Poranga" meant Drunken Penis in Italian Jan 17 21:55:01 lulz Jan 17 21:55:09 :D Jan 17 21:55:13 so it was some obvious fraud there Jan 17 21:55:27 and meanwhile the CC proccesors were trying to contact this person Jan 17 21:55:33 "We're looking for Mr Poranga" Jan 17 21:56:08 so wth does shit to the power even mean panda81 even in teh original language? Jan 17 21:56:14 DroidFreelanceR: oh you already translated it. Right I dont know what that person means. It's purely swearing without any feedback. Jan 17 21:56:15 shit^n? Jan 17 21:56:33 i think it probably means shit to some exponential power Jan 17 21:56:37 but it is vague Jan 17 21:57:00 haha maybe this app bricked his phone Jan 17 21:57:03 maybe it's a competitor panda81 Jan 17 21:57:19 really how can an app brick a phone? does yours need rewt panda81 ? Jan 17 21:57:30 hahaha shit^n !!! :D Jan 17 21:57:47 that's my read MikeWallaceDev :) Jan 17 21:57:48 DroidFreelanceR: hehe possibly. Nah I was joking on bricking. I know it doesn't Jan 17 22:00:20 panda81 i dont see those comments on https://play.google.com/store/apps/details?id=com.visitvr.cardboard Jan 17 22:00:31 but google seems hell bent on hiding reviews too so i dunno Jan 17 22:00:37 i just dont see it anyway Jan 17 22:00:42 maybe others do Jan 17 22:01:18 i dont get a list of reveiws anymore just < and > Jan 17 22:03:43 oh interesting. yeah very inconsistent. Since it's a new app, that user is the only 1 star rating. I see the 1 star on phone, but no actual "shit^n". Does Google censor Jan 17 22:04:54 and on my desktop following that link, dont see the 1 star rating yet. Jan 17 22:13:23 I asked this earlier, but... Is anyone else having problems with LogCat in AS? I don't see any logs when it uses the default "app:" filter... Jan 17 22:14:07 MikeWallaceDev, it depends on the phone connected Jan 17 22:14:26 Nexus 10, and Galaxy Nexus, both do it Jan 17 22:15:13 I've had issues with mostly Samsung stuff, Nexus 5/9 work well Jan 17 22:15:25 no idea on what exactly it depends on though :/ Jan 17 22:15:37 hmm, both are Samsung though Jan 17 22:15:58 I don't know if that is the cause though... because adb logcat does work Jan 17 22:16:59 Mavrik: uh, it's probably significant to mention if you're talking about touchwiz samsung or nexus samsung Jan 17 22:17:09 I doubt it's a hardware issue :p Jan 17 22:17:40 I think it's an AS issue Jan 17 22:18:01 since app: is not a logcat functionality. Jan 17 22:18:14 yeah Jan 17 22:18:27 It's an issue that's connected somehow with how devices format their logcat Jan 17 22:18:46 I need to check out pidcat one of these days Jan 17 22:18:52 I have same problems with e.g. pidcat: doesn't work on Nexus 7 2012 because it formats logcat slightly differently Jan 17 22:19:20 also, Samsungs (touchwiz samsungs that is) tend to send logcats in bursts every few seconds, which makes them annoying to use Jan 17 22:19:42 blech Jan 17 22:19:48 that sounds horrible Jan 17 22:33:28 hi guys, is it possible to get a SHA1 hash code from the keystore file? Jan 17 22:33:47 is that what you need for the play store when it asks for a signing certificate identifier SHA1? Jan 17 22:33:57 or do you have to check through a different identifier somewhere? Jan 17 22:34:21 Bantalon, keytool Jan 17 22:35:11 pfn: how do i generateit? Jan 17 22:36:42 That's your answer Jan 17 22:37:33 cheers Jan 17 22:40:17 also do you really HAVE to have achievements in order to use game services? Jan 17 22:40:24 is there no way to use it solely for leaderboards and highscores functionality? Jan 17 22:40:34 my game pretty much has no features but i'd love ot implement it for the sake of the highscore Jan 17 22:40:44 don't know if i have to come up with ones now that don't make any sense or Jan 17 22:40:49 have to add new gameplay to the game or somethign? Jan 17 22:46:53 Let's try again, lol Jan 17 22:47:01 What books do you guys suggest? Jan 17 22:47:20 With recent stuff in it, no outdated stuff Jan 17 22:47:51 I haven't bought a book in a while, so I'm out. Jan 17 22:49:32 MikeWallaceDev: i like having paper instead of having to alt-tab all the time.. Jan 17 22:51:00 me too Jan 17 22:51:20 ReScO: I haven't read any Android books for a while, but I think the big nerd ranch one may be decent and relatively recent Jan 17 22:51:23 I doubt there's anything up to date. Jan 17 22:51:26 Android 5 is pretty new Jan 17 22:51:28 but I haven't bought an Android book in a few yearts Jan 17 22:52:54 eh, maybe that book is aging. reviews could probably make it clear enough. Jan 17 22:54:00 you could print out the commonsware book and stack overflow answers. that's only several thousand sheets worth of info. Jan 17 22:55:21 hello Jan 17 22:55:22 probably more productive to get a second monitor Jan 17 22:55:45 ReScO: what do you define as "outdated"? a large chunk of it is likely still relevant. Jan 17 22:56:28 groxx: At least KitKat Jan 17 22:56:39 anyone experienced with ndk? Jan 17 22:56:41 > 4.2 Jan 17 22:57:19 ReScO: makes sense. I'll keep an eye out, but unfortunately I don't know any. Jan 17 22:57:45 there are topical ones, like security and porting that are semi-recent and good afaik Jan 17 22:57:55 but dunno about general dev Jan 17 23:07:03 there are no good books Jan 17 23:07:13 publishing cycles make all books outdated Jan 17 23:07:23 invest in a second monitor Jan 17 23:07:32 more effective than buying books Jan 17 23:08:17 lol Jan 17 23:08:40 Best monitor under 120$? Jan 17 23:08:47 Asus? Jan 17 23:10:23 The new Memory Monitor is pretty good. Jan 17 23:22:15 that joke wasn’t so tactical Jan 17 23:39:41 hello internets Jan 17 23:40:11 pfn, yeah I was just reading an android book last night and feeling unsatisfied Jan 17 23:40:15 it's for 4.0 Jan 17 23:40:25 which Jan 17 23:40:38 i just have 1 big monitor instead of 2x monitors Jan 17 23:40:41 mine is a 30" Jan 17 23:40:49 APress for Android 4 I believe it was called Jan 17 23:41:02 everybody has 30" on the Internet.... Jan 17 23:41:09 lol Jan 17 23:41:25 yes well this is just 30" diagonal Jan 17 23:41:28 Android 4 is not good? Jan 17 23:41:31 I have it here Jan 17 23:41:38 it's not that it's bad Jan 17 23:41:53 i just hate lots of small montors Jan 17 23:42:02 id rather have one big one Jan 17 23:42:18 i've been searching through it looking for Loader framework combined with autocompletetextview Jan 17 23:42:31 i still can't get mine to work, and I didn't find it in the book yet (started by reading the ACTV section) Jan 17 23:43:46 actv? Jan 17 23:43:56 autocompletetextview Jan 17 23:44:11 the dev site (http://developer.android.com/training/in-app-billing/list-iab-products.html#QueryDetails) says use a List, but i get a compiler error saying List cannot be instantiated… i’ve imported java.util.List… is there a differnet import i should do? Jan 17 23:44:30 List is an interface. It cannot be instantiated. Jan 17 23:44:43 yes, why does the example on the dev site instantiate it? Jan 17 23:45:07 where are you instantiating it, ultra-? Jan 17 23:45:11 Oh, it must be some other List. Jan 17 23:45:20 in a method Jan 17 23:47:13 the only dev site reference i get for List is the same thing, java.util.List Jan 17 23:47:53 List additionalSkuList = new List(); Jan 17 23:47:53 additionalSkuList.add(SKU_APPLE); Jan 17 23:48:05 yep Jan 17 23:48:19 List additionalSkuList = new List() gives a compiler error Jan 17 23:48:36 learn2java Jan 17 23:48:43 i am learning2java Jan 17 23:48:52 The List on that page is not java.util.List. Jan 17 23:49:09 i tried to google “android list” and only came up with java.util.List Jan 17 23:50:01 i think you need List additionalSkuList = new ArrayList(); ultra Jan 17 23:50:11 and even that is pretty gimpy given generics availability Jan 17 23:50:18 hard to know what they really wanted Jan 17 23:50:41 It seems to be this: http://developer.android.com/google/play/billing/index.html Jan 17 23:53:01 DroidFreelanceR: that did it, thank you Jan 17 23:53:58 ultra-: That doesn't make sense. Jan 17 23:54:05 not to me Jan 17 23:56:26 glad to hear that worked for you ultra- Jan 17 23:56:55 it’s working with my test SKU, i wish i could test real world skus Jan 17 23:57:23 uh Jan 17 23:57:29 so get ye to CVS? Jan 17 23:57:37 scan some skus?? Jan 17 23:57:55 the pharmacy? Jan 17 23:58:00 yeah Jan 17 23:58:00 this is for my app’s in app purchase Jan 17 23:58:17 so whats a real world sku to your app? Jan 17 23:58:33 it doesn’t exist until i upload the new version of the app Jan 17 23:58:39 the old version doesn’t have IAP’s in it Jan 17 23:58:43 i’m switching to a freemium model Jan 17 23:58:59 err upc i mean Jan 17 23:59:11 no your in app purchase has an associated SKU Jan 17 23:59:42 and? Jan 18 00:00:14 its working with my test SKU, i wish i could test real world skus Jan 18 00:00:30 thats good if it works try a real one and refund yourself :) Jan 18 00:00:50 i will eventually, i’m not yet ready to upload the new .apk Jan 18 00:01:51 cool Jan 18 00:04:04 hilarious , 'Where is the code located?' - 'Japan.' Jan 18 00:04:21 what do you mean shmooz ? link? Jan 18 00:05:07 DroidFreelanceR: scroll up Jan 18 00:05:11 where is this code located? Jan 18 00:05:12 * Mso150 has quit (Ping timeout: 272 seconds) Jan 18 00:05:12 Japan Jan 18 00:05:25 lol Jan 18 00:05:30 True SmartAssery Jan 18 00:05:40 shmooz, sorry, what code? Jan 18 00:05:54 >_>... Jan 18 00:05:58 shmooz: Morning!! Jan 18 00:06:01 this is a difficult thing we're doing Jan 18 00:06:06 oh, that! Yes :D HAHAHAHA Jan 18 00:06:13 yep I just woke up and started reading what I missed out on Jan 18 00:06:31 shmooz, thank you for doing that so I don't have to :) Jan 18 00:06:40 well that wasnt enough context or cynicism for me so i ignored it shmooz Jan 18 00:06:44 then I asked when in his code, he answered 'in a method' that was the end of that conversation :D Jan 18 00:07:25 we need an #android-halp for students and n00bs like TJ Jan 18 00:07:32 sorta like #android-root++ Jan 18 00:07:41 not quite a coder but on their way Jan 18 00:08:39 anyone distroing their apps in japan? curious Jan 18 00:08:47 yeah, we mentioned that a few times DroidFreelanceR Jan 18 00:09:08 mentioned what a few times MikeWallaceDev ? maybe i missed it Jan 18 00:09:12 but, then again, we don't mind noob questions, as long as they are relevant and that they searched first Jan 18 00:09:27 DroidFreelanceR, that we need a noob # Jan 18 00:09:59 maybe TacticalJoke can be an op there Jan 18 00:10:16 DroidFreelanceR can be OP for android-defocus Jan 18 00:10:22 seriously Jan 18 00:10:39 and great rejoice was had Jan 18 00:10:45 haha \o/ Jan 18 00:11:08 Can't be bothered dealing with him anymore Jan 18 00:11:20 now we wait to see how long it takes him to change his nick Jan 18 00:11:37 did he do something bad? I might have missed it... Jan 18 00:11:48 * hesperaux doesn't recognize the guy Jan 18 00:11:57 it's HevvyMetal Jan 18 00:12:13 * hesperaux shrugs. oh well Jan 18 00:12:29 * hesperaux is made sad by autocomplete text views and loaders Jan 18 00:12:48 yeah, I didn't see him do anything wrong either? What did he do? Jan 18 00:13:08 hesperaux: do your custom autocomplete , it's easier Jan 18 00:13:20 Keeps harassing TacticalJoke Jan 18 00:13:23 I can get the ACTV to work if I hand the adapter a working cursor. I just can't get it to work using loaders that swapCursor Jan 18 00:13:36 I think something isn't being fired/caught, but I don't know what it is cuz the API is so confusing Jan 18 00:13:42 oh! It was a jab? I thought he was serious :D Jan 18 00:13:49 hesperaux, don't bother using a loader Jan 18 00:13:59 I'm getting to that point, pfn... Jan 18 00:14:02 he talks too much I guess Jan 18 00:14:10 Can someone tell me The Right Way (TM) to do this? =S Jan 18 00:14:21 shmooz: the quantity is not the problem, quality is Jan 18 00:14:58 MikeWallaceDev, i think I made the same mistake; but apparently it would be more obvious if we were familiar with the guy's antics Jan 18 00:16:41 shmooz, you're suggesting I extend AutoCompleteTextView? Would I have it run asynctasks to get cursors? What would be the design there? Jan 18 00:18:32 Damn, I have been making and using very similar APKs and only now realize that the output filename is identical for all the APKs. (they're modules for my app) Jan 18 00:19:38 Hi, sorry to bug with total noob questions, but i'm trying to start up the hello world from the docs tutorial and encountering a black screen and.. Jan 18 00:19:49 pfn, can you make an alternative suggestion to the Loader API? I didn't wanna do a content provider cuz it seems silly to create URIs for in-app data handling Jan 18 00:19:51 W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa6918980, error=EGL_SUCCESS Jan 18 00:20:09 was wondering what am i doing wrong. found some results on goog but nothing that seems to help. Jan 18 00:20:10 vintik, well, I can tell you that I get that error all the time in my emulator output but mine still works Jan 18 00:20:33 it's laggy though. Have you tried toggling gpu acceleration for the emulator? Jan 18 00:21:06 Yes it's toggled and i have 1.5gb of ram allocated. Jan 18 00:21:30 been watching a black screen for 15 min. i have a guess that maybe my activity just isnt starting up Jan 18 00:21:35 i meant have you tried disabling the gpu accel Jan 18 00:21:41 but i dont really know how to go about confirming that yet. ah let me try that. Jan 18 00:21:54 you'd see the android home screen before you see your app Jan 18 00:22:37 one way you could confirm is to put a Log.d("MyApp", "Activity started") in onCreate(). You'll see the logcat if it is running under the black screen Jan 18 00:22:46 not seeing anything at all, android home or app Jan 18 00:22:53 just black screen. Jan 18 00:23:30 i do get a `session 'app' running` though. Jan 18 00:24:49 Hey guys, I'm seeing some permissions on my app's Google Play page that I don't require on my AndroidManifest file. Is it possible that some library is requiring those? If so, how do I check which libraries are doing it? I'm using Android Studio, btw. Jan 18 00:26:34 Hello, is there any way to get the coordinates and set a marker in google maps given the name of a city for example? Jan 18 00:27:24 hesperaux: you just use if(listItem[i].contains(searchTerm)... Jan 18 00:27:48 I owe you a huge thanks, SimonVT. (As does the entire channel. :D) Jan 18 00:28:25 hesperaux, any async method of getting the cursor Jan 18 00:28:39 renanferrari, I don't see how that can happen... (AKA pics or GTFO :D ) Jan 18 00:28:47 pfn, and then just cram that into the adapter and be done? I think that might just be worth it. Jan 18 00:28:57 worth it? Jan 18 00:29:08 worth scrapping a bunch of loader code Jan 18 00:29:11 it's like 1/10 the work of using a loader Jan 18 00:29:15 yep lol Jan 18 00:31:00 Does filtering the suggestions in the ACTV happen at the cursor level or the query level? Jan 18 00:32:07 @MikeWallaceDev There you go: http://cl.ly/image/1U2d2b0R0Z23 and http://cl.ly/image/2x3W3V2P3B1f Where are Photos/Media/Files and Device ID permissions coming from? Jan 18 00:34:24 So I switched to Android Studio. There were basically no issues at all. (I started from a blank project and manually copied everything over.) Jan 18 00:34:44 TacticalJoke: doesn't import work ? Jan 18 00:34:52 I heard it does, but I decided not to risk it. Jan 18 00:34:57 wow, that's a good one renanferrari ... I'm wondering is READ_SMS also enables reading from the SDCARD? Jan 18 00:36:15 It took only about 30 minutes to set up my (fairly large) project. Jan 18 00:36:46 Actually, it's more like "not small but not huge project". Jan 18 00:37:04 MikeWallaceDev: I'm pretty sure those permissions are defined somewhere else in the project. Just can't figure out where. Jan 18 00:37:39 I don't know... :/ Jan 18 00:38:03 are you linking in any shared projects? Jan 18 00:38:36 renanferrari: check your dependencies, they might add it Jan 18 00:39:46 Am I wrong in thinking that dependencies don't (can't) add permissions, that you have to add the permission yourself in the manifest? Jan 18 00:40:05 You are wrong, yes. Jan 18 00:40:19 aar's contain manifests Jan 18 00:40:23 SimonVT: I've checked my local depedencies already. How do I check the libraries I'm importing through Gradle? Jan 18 00:40:46 Look at the merged manifest in the build/ folder of the app Jan 18 00:41:02 oh aars have manifests, I didn't know that. Thanks SimonVT Jan 18 00:41:10 Isn't the aar exploded in build/ as well? Jan 18 00:41:17 TacticalJoke: earlier version importing waskinda screwy but lately it works fine Jan 18 00:41:37 Yeah. But the merged manifest has comments where things come from. Jan 18 00:41:52 Usually find that easier than poking around in all deps Jan 18 00:42:04 That's cool. I guess I didn't mind doing it manually also because that can be instructive. Jan 18 00:42:40 Ah cool Jan 18 00:42:53 Don't think I've ever looked in it Jan 18 00:42:55 hehe sure sure the glass is half full of whisky i guess ;p Jan 18 00:44:01 The Darcula code editor theme makes code seem edible. Almost everything is cookie coloured. Jan 18 00:44:47 JakeWharton: Yep, those permissions were on the merged manifest. Thanks! Now how do I check which libraries are actually merging it? Jan 18 00:45:29 renanferrari: it should have comments. Doesn't it? Jan 18 00:45:53 TacticalJoke, I love a theme called SeaGrape, it's dark, but the colors are better than Darcula Jan 18 00:45:57 TacticalJoke, https://plus.google.com/u/0/+MikeWallaceDev/posts/6rU5KEdXESr Jan 18 00:46:13 TacticalJoke: http://www.ideacolorthemes.org/home/ Jan 18 00:46:42 That's where I got SeaGrape lasserix :D Jan 18 00:46:53 Yeah, I tried Wombat earlier (that's what I was using in Eclipse), but I prefer Darcula. SeaGrape looks really nice; might try it. Jan 18 00:48:13 JakeWharton: I was expecting it to have some comments, but it doesn't. :/ Jan 18 00:49:32 JakeWharton: Just to be sure, I'm looking at /app/build/intermediates/manifests/full/release/AndroidManifest.xml Jan 18 00:50:53 Ok, just found out this file: app/build/outputs/apk/manifest-merger-release-report.txt It has everything I wanna know. Jan 18 00:51:02 Thanks JakeWharton and SimonVT :) Jan 18 01:12:50 * jab416171 jabs MikeWallaceDev Jan 18 01:29:44 okay still cant load the emulator (black screen), found an error that looks pretty bad though at the start of the logcat: E/logwrapper﹕ executing /system/bin/e2fsck failed: No such file or directory Jan 18 01:43:43 Help! How to compile program with volley lib using ant ? Jan 18 01:57:08 is there a way to interrogate layout design of apps like the Google+ app? Jan 18 02:05:46 I have a relative layout with a TOP MIDDLE1 MIDDLE2 BOTTOM where MIDDLE1,2 have above/below respectively to TOP/BOTTOM. I add a view to MIDDLE2 (it has match parent, wrap content and the view I add has match parent, wrap content) but it doesn't "fit" MIDDLE2 between TOP and BOTTOM if middle 2 with the added view has more height. Anyone know how to resolve this? Jan 18 02:06:06 what the hell is a jab? Jan 18 02:07:26 a punch Jan 18 02:07:34 jab from the left Jan 18 02:07:53 "jab416171 jabs MikeWallaceDev " Jan 18 02:08:39 lasserix, I can't understand your problem... Jan 18 02:08:58 MikeWallaceDev, you said "jab" which highlighted me Jan 18 02:09:14 so I jabbed you back Jan 18 02:10:00 you have four views. And they layout the way you want. But when you add a view inside MIDDLE2 it doesn't display correctly? Jan 18 02:10:13 ah, ok, sorry jab416171 Jan 18 02:10:29 no worries Jan 18 02:11:01 MikeWallaceDev: yeah Jan 18 02:11:23 how does it not display correctly? Jan 18 02:11:25 so middle2 with the added view extends into BOTTOM (under bottom) Jan 18 02:11:35 instead of staying above it Jan 18 02:11:59 M2 overlaps over B ? Jan 18 02:12:04 under Jan 18 02:12:15 but same thing yeah, its not staying above it Jan 18 02:12:36 add the same above/below attributes as you did to M1 and M2 Jan 18 02:13:11 that doesn't work since children of M2 are not in children in the same level as M2 so they can't be above BOTTOM Jan 18 02:13:28 between M2 and B Jan 18 02:13:57 ? Jan 18 02:14:46 do you specify that M2 is above B ? Jan 18 02:15:00 yes Jan 18 02:15:24 oh. ok, then pastebin me baby! Jan 18 02:16:26 Q: For android development, does my graphics card matter much? Jan 18 02:16:27 ? Jan 18 02:16:32 pastebin what? Jan 18 02:16:38 akanster: not at all Jan 18 02:17:00 Thanks Leeds Jan 18 02:18:41 your layout.xml Jan 18 02:21:42 http://pastebin.com/TqFyUcwe Jan 18 02:22:25 ok, looking Jan 18 02:23:47 it is as i explain Jan 18 02:24:04 listview has a height of match_parent Jan 18 02:26:04 that doesn't matter Jan 18 02:26:19 thats middlea Jan 18 02:26:21 er middle1 Jan 18 02:28:43 gimme a sec Jan 18 02:29:09 ill just constaint the height of the thing that is too large with dimen Jan 18 02:29:12 not that it makes me happy to do Jan 18 02:29:18 cause i dont know why wrap content and above Jan 18 02:29:23 is not working as it should but that's life i guess Jan 18 02:29:34 It'll work.. Jan 18 02:30:34 what? Jan 18 02:37:36 as far as I am concerned, I got it working... Jan 18 02:38:19 wow this looks good https://www.coursera.org/course/posaconcurrency Jan 18 02:38:30 with application to android Jan 18 02:39:51 lasserix, http://pastebin.com/zwwT386j Jan 18 02:40:16 oh, but I think that I moved two items around. Jan 18 02:40:43 They appear in the order that they are declared, I don't think that is what you wanted to do Jan 18 02:51:49 it was removed Jan 18 02:51:57 i want the 2 above 1 Jan 18 02:52:02 when a user clicks a list in 1 Jan 18 02:52:08 the view gets added to 2 Jan 18 02:52:12 but that shouldn't change the problem Jan 18 02:53:27 the ordering doesn't really matter Jan 18 02:56:25 but thanks for the help **** ENDING LOGGING AT Sun Jan 18 02:59:59 2015