**** BEGIN LOGGING AT Sun Jan 11 02:59:58 2015 Jan 11 03:01:03 some homework project i think Sindustry Jan 11 03:02:33 Sindustry: it's a reddit app... he was trying to decide what wording to use on his login dialog, including for failed logins, and whether it's worth having a separate UK-English localisation which is more polite than US-English Jan 11 03:02:58 I'd avoid all dialog Jan 11 03:03:07 For one, your app is that smaller Jan 11 03:03:26 2, the more words you use, the more it meanings or misunderstandings to be had Jan 11 03:03:36 s/it/in Jan 11 03:03:41 i suggest we stop spoon feeding this troll (tacticaljoke) about every last line in his wanna be applet Jan 11 03:04:12 HevvyMetal: And you're a fucking idiot who rambles about nothing for hours. Jan 11 03:04:17 And acts like he's about 12. Jan 11 03:04:25 KISS Keep It Stupid Simple Jan 11 03:04:28 In fact, it's embarrassing. Jan 11 03:04:37 lol Jan 11 03:04:56 i've been gone all day, look what i come back to Jan 11 03:05:18 Wow tacticaljoke. I'd consider that an embarrassing walmart customer response lol. Jan 11 03:05:51 Arrogrance breeds ignorance I like to say, and some old guy said along time ago Jan 11 03:06:07 insert missing space someone? Jan 11 03:07:18 what missing space? Jan 11 03:07:24 along :P Jan 11 03:09:19 Enter the insanity: Judgement and judging people is ignorant because to do so you say that something will be a certain way forever, but if you are aware enough in mentality/intelligence then you know that the only constant in life is change it's self, everything else is opinion suspect to perspective. Jan 11 03:10:21 so you're judge people who judge people? Jan 11 03:10:31 judging people* Jan 11 03:10:33 * JesusFreke ducks Jan 11 03:11:02 in any case, how about that Android programming y'all? :p Jan 11 03:11:07 Nope, I'm considering them. Judgements are final. My considerations change indefinitely Jan 11 03:12:04 You see, I'm what they call "Open minded" Jan 11 03:12:14 Sindustry: let's drop it :) Jan 11 03:12:29 g00s: I just walked to the kitchen to get some tea, and look what I come back to Jan 11 03:13:36 JesusFreke I've got a reputation for lecturing/preaching :P Jan 11 03:13:46 leave TacticalJoke alone guys, we know he is OCD and whatever, but it's all good Jan 11 03:14:16 He's not that OCD if he doesn't care about the meanings and definitions of words he Jan 11 03:15:49 no we're arguing about how much to feed and clothe the troll Jan 11 03:15:53 that's great Jan 11 03:16:33 HevvyMetal: what are you working on ? Jan 11 03:19:26 i'm working on finding my next project to work on shmooz Jan 11 03:19:28 what about you? Jan 11 03:19:49 I'm still working on Hello World Jan 11 03:20:09 What kind of projects do you like to work on HeavyMetal? Jan 11 03:20:15 hello world on android involves like 15 files so .... Jan 11 03:20:45 ones that pay a lot of money Jan 11 03:20:50 telecommute Jan 11 03:20:52 android Jan 11 03:20:57 HevvyMetal how long have you been developing for android ? Jan 11 03:21:03 3-4 years Jan 11 03:21:14 I currently have no projects, but I also don't have much experience in coding yet Jan 11 03:21:45 But I do have considerable experience in design theory and photoshop/illustrator :P Jan 11 03:21:45 well i have but the market has shifted a lot Jan 11 03:21:59 it used to be more contractor oriented (android) Jan 11 03:22:03 now it's more fulltimer oriented Jan 11 03:22:17 maintainer positions yeah Jan 11 03:22:27 well that too but not just that Jan 11 03:22:41 in the early days android was a flash in the pan now it's an industry standard Jan 11 03:22:49 which i think is more of the driver for full time Jan 11 03:23:06 i'm sure originally ios was more contract and same thing happened Jan 11 03:23:41 Basically like what happened to IT Jan 11 03:23:58 oversaturation of cheap coders brings down demand Jan 11 03:24:01 and pay especially Jan 11 03:24:57 I noticed it in graphics design too. The more people get into doing it, the harder it is to get new customers worth dealing with Jan 11 03:25:19 of course, its that way with anything having a low barrier to entry ;) Jan 11 03:25:29 When I first started with photoshop, I had no end of requests so I made it an every day job until I ran out of people to work for lol Jan 11 03:25:59 odesk Jan 11 03:26:03 yeah its crazy Jan 11 03:26:12 So I started looking for more and over the years eventually I was dealing with too many companies that would point out cheapo indian firms or something Jan 11 03:26:20 now i'm interviwing places they want an entire app as part of the interview its crazy Jan 11 03:26:45 you want to see what the latest ppl want as a "first step"? Jan 11 03:26:52 you guys tell me what you thik heh let me grab it Jan 11 03:26:58 Well having a portfolio is key Jan 11 03:27:16 i do have a portfolio sindustry Jan 11 03:27:18 I don't have an official one, but I have graphics saved almost all the way back from the 90s heh Jan 11 03:27:22 it's funny when you see them asking for more experience than the life of the language or OS itself Jan 11 03:27:25 and then they ignore that and want me to code som app for them Jan 11 03:27:34 i know shmooz one guy said he had 8 years of android Jan 11 03:27:36 um right Jan 11 03:27:57 well you should have an official one Jan 11 03:28:09 Only if I want to make it a career Jan 11 03:28:12 anyway these guys want an app that does mapping and notifications and background and all that shit Jan 11 03:28:13 And I don't, so I don't :P Jan 11 03:28:21 then what do you do for money Sindustry and why are you here? Jan 11 03:29:09 I do all kinds of things for money, but generally it's computer/software maintenance Jan 11 03:29:40 I've worked with androids for the past 4-5 years also. Not a coder, but I could easily go as far as to take your service if I wanted. Jan 11 03:30:09 If that gives you an idea hehe Jan 11 03:31:46 Also since I'm new here, I'd like to let you all know I'm generally very apathetic, if you keep that in mind, we'll have a great time lol Jan 11 03:32:27 Or rather, I'm one of those special people that feel life is as it should be. I take the good with the bad because I know them to be opinios and I just keep rolling :) Jan 11 03:33:33 As for what do I want to do for money, nothing. I want to create things that improve the world around me, the rest is just extra. Jan 11 03:34:04 Sindustry: so you want to learn android programming ? Jan 11 03:34:43 At some point yes. I'm currently in the process of acquiring a computer engineering degree and will be consequentialy taking programming classes also :P Jan 11 03:35:10 Besides, I've been a designer working with coders and programmers my whole life. Tired of telling myself I can't when I know I can and already have a decent base understanding lol Jan 11 03:36:04 Yeah, so this is #android-dev and not #the-philosophy-and-life-story-of-sindustry. Jan 11 03:36:42 I can kill it :0 Jan 11 03:37:09 take my service in what way sindustry? Jan 11 03:38:03 I prefer to collaborate to be honest Jan 11 03:38:14 Sindustry: have you started your engineering course yet ? Jan 11 03:38:35 I've completed 3 already along with a bunch of garbage credit classes Jan 11 03:39:02 C++ and electric circuits 1 starts in 10 days Jan 11 03:39:32 We did some very basic C in the first one Jan 11 03:40:06 Sindustry: start thinking about building a portfolio now Jan 11 03:40:33 I already have a line on a couple of jobs, but they are out of state and require a minimum of 4 years, even with my connections :( Jan 11 03:40:44 But that's definitely something I'm working to do Jan 11 03:41:40 It's more a I want to work on something while I'm not working and in college Jan 11 03:41:49 I basically fired myself when I got my grants lol Jan 11 03:42:13 I could be working hvac for $25/hr right now, but it's not the career I'm looking for Jan 11 03:43:18 Sindustry: you got 2 days to install your IDE and run your Hello World, or else! Jan 11 03:43:31 Really? Jan 11 03:43:44 and then a week to come up with your app idea Jan 11 03:43:52 yes, or we kick people from here for not being relevant Jan 11 03:44:06 Any advice on which IDE? Jan 11 03:44:22 Android Studio Jan 11 03:44:51 Lets see how fast I can do it rather? I have the time :) Jan 11 03:45:00 you should also try Eclipse Jan 11 03:45:11 what do you do in android shmooz? Jan 11 03:45:14 Er wait Jan 11 03:45:23 Does having the stand alone sdk help? Jan 11 03:45:23 eclipse-- Jan 11 03:45:39 Activity.getPreferences seems like a bad idea. I wonder why they thought to add it. Jan 11 03:45:56 Activity names should be free to change without data loss. Jan 11 03:46:11 HevvyMetal: I'm working on a Audio/Video player Jan 11 03:46:34 but that was my Hello World so Jan 11 03:46:47 * capella-s3 would like to make a channel bot to auto downvote Eclipse Jan 11 03:48:31 oh ok in your spare time or for a company or what shmoon_ ? Jan 11 03:48:50 capella-s3: you would rig the votes Jan 11 03:49:05 I'm not a huge fan of Eclipse, but I don't think IntelliJ is amazing either. :/ Jan 11 03:49:41 Ah, I've been using intelliJ for ~2yrs and it just seems so much easier Jan 11 03:50:15 TacticalJoke: same here, they are pretty much the same here, I'm still more used to Eclipse which runs a little smoother with 4GB ram limit Jan 11 03:50:37 but I know that pro's seem to prefer AS for more advanced reasons Jan 11 03:51:44 and AS is the future so I will recommend AS first Jan 11 03:51:44 Yeah, I get bad performance with AS on this 4GB-RAM laptop. I'm having to think of buying a new laptop just for Android development, which kinda sucks. Jan 11 03:52:24 I remember the days when 4GB RAM was amazing. :) Jan 11 03:52:58 I remember the days when 64k was amazing ;) Jan 11 03:53:24 how old are you shmooz? Jan 11 03:53:31 45 Jan 11 03:53:58 so your dad had a TRS-80 or what? Jan 11 03:54:33 no I had a Pet 32 Vic20 Commodore 64 Atari 400/800 Apple II+ Jan 11 03:54:45 I could go on Jan 11 03:55:14 yes Timex Sinclair TSR 80 Jan 11 03:55:17 geos for c64 was amazing Jan 11 03:55:37 for what it did, assembler had inline graphic preview Jan 11 03:56:02 i dont think we've come that far :( Jan 11 03:56:25 g00s: I did geos on a old 386 laptop with 4MB ram, never tried it on a C64 Jan 11 03:56:39 oh wow, i didn't know they did it for pc Jan 11 03:56:43 I'm working with 8gig, ssd and quad core, should be fine for me Jan 11 03:56:57 g00s: it's been around for PC since early 90's Jan 11 03:57:11 when you were 8? Jan 11 03:57:21 what did you thik about star raiders? Jan 11 03:58:07 I liked the cook game Jan 11 03:58:26 Even as a kid I thought it was bad Jan 11 04:00:02 Pressure Cooker Jan 11 04:00:13 8G ram should be fine until AS 1.1 Jan 11 04:01:04 I might actually upgrade ram soon >.> Jan 11 04:03:58 cook game? Jan 11 04:04:03 i'd like to run star raiders Jan 11 04:16:18 woo androirc got material Jan 11 04:16:59 nice Jan 11 04:17:49 indeed Jan 11 04:21:40 question Jan 11 04:22:04 I have a ListView, that I want to be replaced by a "nothing here" message if there's, you know, nothing there Jan 11 04:22:25 is there some sort of "replace view" method or something? Jan 11 04:22:57 its called an emptyview Jan 11 04:23:08 look at ListView.setEmptyView()or something Jan 11 04:26:30 TacticalJoke look, another one :) http://iolanguage.org/ Jan 11 04:29:40 It uses the Pascal assignment operator ( := ). I always liked the clarity of that. Jan 11 04:31:08 a tactical language would use <-- Jan 11 04:32:49 Probably. I kinda like that one. :) Jan 11 04:34:08 Ah, it's R that uses "<-". I had to google to remember. Jan 11 04:34:15 Knew I'd seen it before. Jan 11 04:35:23 hmm I guess I should use that setEmptyView, but I need it to show separate messages for separate situations Jan 11 04:36:03 one for Jan 11 04:36:11 Hmm. Could you update the text of the TextView (or whatever) that's set as the empty view? I've not tried doing that, but it sounds like it should work. Jan 11 04:36:32 welp, building google-chromium just maxed out my SSD Jan 11 04:36:48 'No audio files found on device' and another for 'No video..' and another for 'No matching search results ' for the autocomplete search Jan 11 04:38:16 poor dude :( http://www.washingtonpost.com/news/speaking-of-science/wp/2015/01/09/these-koalas-have-been-burnt-in-bushfires-and-they-need-mittens/ Jan 11 04:39:34 because my autocomplete search is custom and manipulates the single listview that also shows the files instead of popping up a new listview like the default autosearch Jan 11 04:40:23 "Japan’s sexual apathy is endangering the global economy" lol Jan 11 04:40:29 TacticalJoke: yeah I'll do it that way Jan 11 04:44:20 some of these new pcs from ces are nice, i'd ditch my mac if it wasn't for the software Jan 11 04:44:40 sketch, pixelmator are nice ;) Jan 11 04:44:46 hm, sketch is buggy though Jan 11 04:45:03 shmooz: The only thing to watch out for, I guess, is that it doesn't show "Nothing found" while it's searching. Though I guess you're taking care of that already. Jan 11 04:45:04 what softwae do you use on your mac? Jan 11 04:47:13 mostly open source stuff, but those 2 are mac specific. i also use Lr but that works on pc. only thing i'd like ot check out is Logic Pro X Jan 11 04:47:39 i spend 90% of my time in AS :| Jan 11 04:49:13 what's the latest ADT plugin for eclipse? Jan 11 04:49:21 those japanese just don't care what the tentacles do to them :-/ Jan 11 04:49:24 did they stop supporting it for 5.0+? it doesnt show up even tho it's installed Jan 11 04:49:27 capella check this out http://shop.oreilly.com/product/0636920032441.do Jan 11 04:49:50 oh, only 3 stars Jan 11 04:50:11 heheh - python is slowly creeping into my toolkit Jan 11 04:50:19 YetAnotherLanguage Jan 11 04:50:42 i don't really like using dynamically types languages for anything but toys now Jan 11 04:51:06 used to use more python. Leeds is a big python guy ;) Jan 11 04:51:10 does check for updates update the adt plugin or not? Jan 11 04:51:19 yes Jan 11 04:51:33 TacticalJoke: yes that's one of the situations Jan 11 04:51:47 Leeds has a big python what-now? Jan 11 04:52:05 Leeds does a fair bit of django Jan 11 04:52:17 well, with a python like his, I would too Jan 11 04:52:22 is 23.0.4.x the latst? Jan 11 04:52:27 'Sorry to inform you of this inconvenience but nothing was found.' Jan 11 04:52:28 harhar Jan 11 04:52:47 /snark ;) Jan 11 04:53:39 Stupid Chromium ate all my space ... kill it or maybe wait till tomorrow .... mmmmm .... Jan 11 04:53:51 is there an example of material type search where it obscures but does not move the elements around compared to the old fullscreen activity? especially that leaves the action bar alone Jan 11 04:54:53 shmooz: Hah. Jan 11 04:59:46 are there versions of the okhttp with javadoc and sources or is it always separte jars? Jan 11 05:12:53 newbie to dev. What site has the best info to start developing a simple texted-based app that asks for input then spits out canned answers for set input words and a generic reply for all other inputs? Jan 11 05:16:11 Nern: I guess there's the official training guide: https://developer.android.com/training/basics/firstapp/index.html It's okay but also not amazing. Jan 11 05:16:17 sounds like an early basic game I wrote Jan 11 05:16:22 er, BASIC Jan 11 05:16:29 Personally, I started with that (but got bored after about the first lesson) and then dived in. But the first lesson did help. :) Jan 11 05:16:48 weird error anyone seen this in eclips? VM Arguments: Jan 11 05:16:48 jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:D:\SDK\Android\android-sdk\platforms\android-21\android.jar Jan 11 05:16:48 java_command: com.example.squareapis.RetrofitGithubClient Jan 11 05:16:48 Launcher Type: SUN_STANDARD Jan 11 05:16:50 you: I'm feeling sad ... computer: tell me what it is you're feeling sad Jan 11 05:16:59 i dunno why it would be running retrofitgithubcleint? Jan 11 05:17:04 Yeah, I did something like that in QBASIC when I was starting out as a teen. :) Jan 11 05:17:10 you: grapse cost too much ... computer: tell me more Jan 11 05:17:52 What is your name? I'm not telling you! Hello, I'm not telling you! Jan 11 05:19:20 I'm surprised -- the guide has been updated for Android Studio. (Well, as far as I can see.) Jan 11 05:19:35 so i thought you had to import R but not anymore? weird Jan 11 05:20:33 I did do basic back in the day Jan 11 05:20:38 lol Jan 11 05:20:39 In what world? oh, eclipse? Jan 11 05:20:54 of course you have to import R Jan 11 05:20:58 tx TacticalJoke Jan 11 05:21:31 unless you want to always use the unqualified class name Jan 11 05:22:15 my app is for private use thus not so exciting Jan 11 05:22:23 "Linx impact assessment sensor helps identify sports concussions" ... could be helpful to measure which devs are banging their heads against the desk Jan 11 05:22:52 Nern: I think most of what you'll learn will come later, when you get down and dirty with Android. Jan 11 05:23:07 ok Jan 11 05:23:10 Right now, you probably just need the kick-start, which I think the guide can give you. Jan 11 05:23:19 * g00s hands Nern a impact assesment sensor Jan 11 05:25:07 "concusions in sports'... the latest PC attempt to castrate football Jan 11 05:26:33 JesusFreke think you can ride your unicycle with these on http://www.gizmag.com/powerbocking/12337/picture/87865/ Jan 11 05:26:42 I'm mixed on that. I like watching boxing, for example, but it's crazily dangerous. Jan 11 05:27:00 g00s: not without a seat extension :) Jan 11 05:27:04 hmmm, when I rotate the phone the empty view message disappears Jan 11 05:27:08 g00s: those things are great, but holy crap are they exhausting Jan 11 05:27:15 JesusFreke it would be quite a sight Jan 11 05:27:24 wow - now there's a concussion in the making :D Jan 11 05:27:24 I already remember that guy who fought Nigel Benn. He was young and fit (I think in his 20s) and in that fight he suffered brain damage, whereby he now can't live indepedently. Jan 11 05:27:42 I couldn't make it very far on them without getting exhasted Jan 11 05:27:47 shmooz: Do you have to call setEmptyView again? I can't remember. Jan 11 05:28:33 independently* Jan 11 05:29:41 what are different ways (and probably the best way) to implement a realtie chat solution in my android app? Jan 11 05:29:53 realtie ? Jan 11 05:30:00 oh realtime Jan 11 05:30:32 No more elastic ties. RealTies: for real adults. Jan 11 05:31:31 IRC, for a "Reality Chat" solution Jan 11 05:31:37 shmoon_: I'm not sure, but I think the answer depends on all kinds of factors (such as how many users you want to tolerate at one time). Jan 11 05:31:59 realtime* Jan 11 05:32:33 TacticalJoke: hm, what are the different options though Jan 11 05:32:37 Isn't there already some kind of real-time chat service you could use? Jan 11 05:32:40 Oh, I don't know. Jan 11 05:32:51 #qicr Jan 11 05:32:52 they made flexible displays now they need to make super durable and flexable soft displays Jan 11 05:32:53 so I can finally invent the punching bag that lets you load up any face you want Jan 11 05:33:00 so a realtime chat like whatsapp/snapchat is what I'm referring to Jan 11 05:33:05 shmooz: lol Jan 11 05:33:26 I like the idea of foldable displays. Tiny in your pocket but huge otherwise. Jan 11 05:33:30 Which sounds... weird. Jan 11 05:33:31 I'm looking into XMPP right now Jan 11 05:34:16 Did you unfold your smartphone in your pocket, or are you just pleased... Jan 11 05:34:51 TacticalJoke: I haven't done the fancy version yet, it's just the static message that says - Empty - for now Jan 11 05:35:08 Are you calling ListView.setEmptyView every time in Activity.onCreate? Jan 11 05:35:24 it disappears when I rotate but reappears if I type more unmatching characters in the search Jan 11 05:36:06 TacticalJoke: no I'm not doing that, I'm just setting list.setEmptyView(findViewById(R.id.empty_list_item)); once Jan 11 05:36:27 just after initializing the list Jan 11 05:36:48 As long as you're doing that whether savedInstanceState is null or not, it should be okay. Jan 11 05:37:38 but yes it is in onCreate Jan 11 05:42:38 well I did mess with onConfigurationChanged a lot for when it rotates Jan 11 05:42:49 not sure what is causing it Jan 11 05:43:46 everything else is preserved or adjusted when rotated, just the empty message is disappearing Jan 11 05:52:53 Weird. What are you doing in onConfigurationChange? Jan 11 05:54:20 TacticalJoke: when going to landscape ,I am rearranging the layouts, so that master/detail come side to side instead of on top of each other, and if video is playing , making the video fullscreen and stuff like that Jan 11 06:00:20 Is there anything you could post, shmooz? Jan 11 06:00:41 I've used ListView.setEmptyView before, and it worked without issue with rotations and so on. Jan 11 06:02:43 to change orientation of fragments, don't you just use a different layout for landscape? Jan 11 06:04:16 TacticalJoke: I'm not sure what to show you, you'd have a fit if you saw all my code Jan 11 06:04:30 drinfernoo: I'm avoiding using fragments so far Jan 11 06:04:42 why? Jan 11 06:04:58 uhm, too lazy to learn for starters Jan 11 06:05:23 but I saw some pro's here recommending against it Jan 11 06:05:37 Fragments aren't UI components Jan 11 06:05:42 and I figured it's simple enough to do without fragments Jan 11 06:05:43 They don't have orientation Jan 11 06:06:27 yes, JakeWharton influenced me to not even try them , I might in another app in the future Jan 11 06:07:13 shmooz: I've seen . Nothing can faze me. :D Jan 11 06:07:30 what's the problem with them, JakeWharton? Jan 11 06:07:50 More than I care to write on a phone Jan 11 06:08:29 lol Jan 11 06:10:18 TacticalJoke: I can send you the whole project dir if you like, but warning, my MainActivity is close to 4000 lines long, with a lot of commented code and no helpful comments Jan 11 06:10:53 because I tried a lot of stuff and commented it out and it should be cleaned up , but I like messy coding Jan 11 06:12:32 Could you do a private pastebin post of MainActivity.java? You could PM if you didn't want to share with everyone. Jan 11 06:13:19 TacticalJoke: ok Jan 11 06:14:52 wtf? pastebin changed their design ? it says need javascript and cookies Jan 11 06:15:40 duh I typed patebin.com argh Jan 11 06:16:14 i'm getting too old for this stuff Jan 11 06:16:43 My app sounds way more authoritative since changing from "Please enter a username." to "A username is required.". Jan 11 06:21:44 TacticalJoke: "Enter username or else" Jan 11 06:21:46 I would just say 'Enter username.' Jan 11 06:23:12 how can facebook force people to have their real names I don't get Jan 11 06:24:25 shmooz: there's awesome stories of people getting married and trying to change their name Jan 11 06:24:43 Facebook wants a copy of the marriage license or a scan of you passport with your new name Jan 11 06:25:07 I still never figured out how to restore my grid view position Jan 11 06:35:53 I love . Jan 11 06:35:55 So handy. Jan 11 06:39:03 Are there any famous devs in here? Jan 11 06:42:20 Nern: yes we have JakeWharton but if you want an autograph you'll have to pay me a fee first Jan 11 06:43:12 so an activity will run in the background until android kills it off right? but it can kill off services on low mem as well correct? Jan 11 06:43:41 JakeWharton: In OkHttp, is it sensible to pass null to Request.Builder.post? Basically, I need to send an HTTP POST with an empty body. Jan 11 06:43:57 as far as I know yes Jan 11 06:44:03 did you try? Jan 11 06:44:03 Okay. Thanks. Jan 11 06:44:06 Yeah, it works. Jan 11 06:52:42 lol shmooz Jan 11 06:53:46 the new Dell XPS 13 ultrabook looks sweet http://hothardware.com/news/intel-5th-gen-core-series-performance-preview-with-dells-gorgeous-xps-13 Jan 11 06:55:56 it's the same size as an 11 inch macbook air with a 13 inch screen Jan 11 07:03:01 Idk why I'm obsessed with finding different ways to find out if a point is on a line Jan 11 07:04:08 I think, if you're an OCD type, the key is to point your obsessions in a positive direction. :) Jan 11 07:04:13 AndreYonadam: is that for collision detection ? Jan 11 07:04:26 Lol Jan 11 07:04:30 shmooz: No Jan 11 07:04:42 Well I have an app. I need to detect if lines intersect Jan 11 07:04:54 I wrote a good algorithm, pretty long, to detect that Jan 11 07:05:22 however that relies on another method, inLine, which I also wrote and detects if a point is on a line Jan 11 07:06:09 AndreYonadam: there was some optimized way to do that using XOR, I remember from back in the day Jan 11 07:06:39 The thing is I first thought that it was a problem with floating point because it wouldn't compare, but it turned out that the pixels weren't exact themselves so I have to add some error margin. But regardless I'm finding new ways to do this. I've currently found 3 ways. Jan 11 07:06:59 I'm coding the third. The first way is simple. I'm going to post a question to SO so it can be discussed. I'll post my code there lol. Jan 11 07:08:08 Idk if they will like the question. Because its kind of a discussion question instead of a direct answer. Regardless, it would help people out there. Jan 11 07:08:47 shmooz: My first method compares the distance to see if ab = ac+ab Jan 11 07:09:01 That uses Math.sqrt and that's why it might be a bit inaccurate. Jan 11 07:09:20 The second method solves for the equation and plugs it in the equation to see the distance from the point to the line for that x value Jan 11 07:09:30 if it is 0 that means its touching the line which returns true Jan 11 07:09:51 I took into consideration vertical and horizontal lines. Jan 11 07:10:27 The third method compares slopes. I haven't done it yet. I'm going to finish it in a few. Jan 11 07:16:16 Should I give the user the choice between HTTP and HTTPS in my reddit client? Or should I just force HTTPS. Jan 11 07:16:27 (Obviously logins will use HTTPS regardless.) Jan 11 07:17:56 TacticalJoke: Is there any case where HTTPS would cause problems? Jan 11 07:18:43 No, it should be fine to use HTTPS for every request. Though HTTPS is slightly slower in general and more resource intensive. Jan 11 07:19:18 I'm not an expert, though, so I don't know the details. Jan 11 07:19:25 Yeah idk Jan 11 07:19:36 I would do whats better, but I don't know whats better. Jan 11 07:19:48 That's pretty much humanity summed up. :) Jan 11 07:20:03 Lol Jan 11 07:20:39 Maybe the people in #html would know? Jan 11 07:24:04 TacticalJoke just use https Jan 11 07:24:38 I would include the option to switch to http with a warning message Jan 11 07:25:12 hmmm .. why ? Jan 11 07:25:50 more options is better Jan 11 07:25:59 nooooooooooo ! Jan 11 07:26:54 shmooz work for the nsa ;) ? Jan 11 07:27:08 Tap on some settings option like 10 times Jan 11 07:27:16 "You are 5 taps from using HTTP" Jan 11 07:27:19 "You are 4 taps from using HTTP" Jan 11 07:27:26 lol jk Jan 11 07:27:29 g00s: the nsa only spies on encrypted content Jan 11 07:28:30 well, they ar eprobably saving it Jan 11 07:29:08 RMS has an NSA message on his e-mails to mailing lists. Jan 11 07:29:24 Something like telling them to go do something useful (I forgot). Jan 11 07:32:15 TacticalJoke: force https Jan 11 07:34:58 I might as well. Makes my life easy and respects people's privacy. Jan 11 07:35:11 OkHttp is also crazily fast with reddit, even with HTTPS on everything. Jan 11 07:35:27 in the early days of the internet it was common to post nsa and other keywords in every post to jam up their computers Jan 11 07:35:33 well if it's over spdy you only pay the tls cost once Jan 11 07:35:41 Ah, didn't know that. Jan 11 07:35:48 even if it isn't over spdy the connections are pooled so you only pay once per connection Jan 11 07:36:05 Yeah, that makes sense. Jan 11 07:36:06 you have to do very wrong things to make https inefficient Jan 11 07:36:06 none of you worked on building a realtime chat solution ? :D Just wonderinghow to go about doing it Jan 11 07:36:15 tls? Jan 11 07:36:23 which servers support spdy? Jan 11 07:36:48 you want a full list? Jan 11 07:36:52 that might take some time Jan 11 07:36:56 JakeWharton pastebin please Jan 11 07:37:11 Okay, it seems like "HTTPS everywhere" is the best way to go. :) Jan 11 07:38:59 I'm amazed at the speed, to be honest. I sometimes download comment listings of 200 comments so quickly that it doesn't look like there was a download. And my connection is only around 8Mbps down. Jan 11 07:39:16 It looks like I've implemented caching (and I haven't yet). Jan 11 07:39:30 "implemented"... Jan 11 07:39:36 it's two lines of code! turn it on already Jan 11 07:40:05 Oh, the issue is that, in some cases, I need to cache other stuff (such as whether a comment is collapsed). Jan 11 07:40:43 I was gonna use the same caching strategy for, for example, the onSaveInstanceState thing, so I'm gonna save collapsed states of comments. Jan 11 07:41:05 I'm assuming that OkHttp's caching wouldn't let me add stuff on top. Jan 11 07:41:11 no Jan 11 07:41:22 it's transparent to you Jan 11 07:41:34 K. Jan 11 07:42:02 but it should still be turned on Jan 11 07:42:44 Hmm, why? Jan 11 07:42:55 My idea was to implement caching myself (so that I can add that extra stuff). Jan 11 07:44:39 is your cache going to be written to disk? Jan 11 07:44:49 Yeah. Jan 11 07:45:18 Hmm, now that I think of it, I could use OkHttp's caching for basically everything and then do something else for UI state (such as whether a comment is collapsed). Jan 11 07:45:29 I probably don't care about whether a comment is collapsed outside of onSaveInstanceState. Jan 11 07:45:42 i would agree Jan 11 07:45:53 also the http layer caching is for all requests and responses (images, etc.) Jan 11 07:46:15 Oh, that's cool. Jan 11 07:46:23 This might be a dumb question, but why does it save requests? Jan 11 07:46:38 it doesn't Jan 11 07:46:42 it matches requests Jan 11 07:46:50 that's what I meant Jan 11 07:46:53 Ah, okay. Jan 11 07:47:03 And that interacts with Picasso, right? Jan 11 07:47:08 Or "interplays". Jan 11 07:47:22 you should be sharing the same OkHttpClient instance between Picasso and whatever else you are doing Jan 11 07:47:26 Right. Jan 11 07:47:41 otherwise you'll get two instances and they won't share a cache, thread pool, connection pool, etc. Jan 11 07:47:51 not terrible, but far from the optimal solution Jan 11 07:49:13 I'm really appreciative, BTW. These libraries (in my case, OkHttp and Picasso) are fantastic. Jan 11 07:49:57 glad they're useful Jan 11 08:03:25 yeah they're cool jakewharton Jan 11 08:03:38 it might be nice to have the samples buildable without the source... Jan 11 08:03:46 a sample project that used all the libraries would be cool Jan 11 08:03:52 and it can just include them with gradle Jan 11 08:04:02 right now it's kinda tedious to check out all 30 projects Jan 11 08:04:04 would that be slower? Jan 11 08:04:17 what be slower? Jan 11 08:04:25 Would what be slower? Jan 11 08:04:28 In the final app? Jan 11 08:04:33 nvm Jan 11 08:05:06 i'm trying to test out my gps app walking around the house doesn't even make it more 1 meter which is odd Jan 11 08:05:13 before it was bouncing around a lot and no its always the same Jan 11 08:06:57 so if you have just a very small app (one activity) what are the odds that that activity would be killed but it's service would not? Jan 11 08:07:20 it really only makes sense to have services when the app is a lot larger than the service would be correct? otherwise they'd have an equal chance of being killed off ? Jan 11 08:08:04 There is a sample that uses all the libraries Jan 11 08:08:14 Its called u2020 Jan 11 08:09:28 ah cool Jan 11 08:09:33 never saw that before thanks f2prateek_ Jan 11 08:11:14 that's an AS project I'm gueessing right f2prateek_ ? Jan 11 08:11:33 Its gradle based Jan 11 08:11:42 Not IDE specific Jan 11 08:11:56 right i can see that but is there a way to have it open up "properly" in AS? Jan 11 08:12:08 TacticalJoke: you got your app loading images with picasso ? Jan 11 08:12:10 or is it pretty much just a command line project? Jan 11 08:12:51 You should be able to open it as an AS project Jan 11 08:12:54 f2prateek_: Cool; I'll check it out. Jan 11 08:12:57 shmooz: Not yet. Jan 11 08:13:27 shmooz: Though I probably will soon. For thumbnails and for image links. Jan 11 08:14:09 TacticalJoke: I should show you my ImageLoader.java file too ;) Jan 11 08:16:34 right wondering if i need to just "open" it or "import" it do you know JakeWharton ? Jan 11 08:16:36 Is that for finding album art? Jan 11 08:16:39 i'll try open first and see how it goes Jan 11 08:17:10 TacticalJoke: no it's for loading any image , http://pastebin.com/qmau8hw4 Jan 11 08:18:32 TacticalJoke: I took and modified the LazyList example that was supposed to be efficient for remote loading with caching Jan 11 08:18:33 My eyes! Jan 11 08:18:59 hehe, that's mostly not my code so I'm not ashamed to paste it Jan 11 08:19:09 my code is much worse :P Jan 11 08:20:17 In this example of using a bound service: http://developer.android.com/guide/components/bound-services.html Android Studio is not letting me import the LocalBinder class correctly Jan 11 08:20:44 from the line: LocalBinder binder = (LocalBinder) service; Jan 11 08:22:00 shmooz: why don't you use an existing library? Jan 11 08:22:41 I want all the credit Jan 11 08:22:59 haven't used a single lib yet Jan 11 08:23:03 anyone know of an app that will rotate video that requires no extraneous permissions? Jan 11 08:23:34 i asked in android but they are discussing being bicurious or something so i figured i wouldn't bother them Jan 11 08:24:13 oddalot are you using your own binder? Jan 11 08:24:32 f2prateek_ when I open u2020 by browsing to the gradle file in AS I get CreateProcss error = 2 The System cannot find the file specific does that ring a bell jake wharton? Jan 11 08:24:32 shmooz: This is what I was talking about: http://stackoverflow.com/questions/27885252/best-method-to-use-for-to-see-if-a-point-is-on-a-line-given-three-pairs-of-coord Jan 11 08:24:35 localbinder is a class you define Jan 11 08:24:57 I might have to give in and use this one lib to allow users to stream shoutcast AAC streams though :( https://code.google.com/p/aacdecoder-android/ Jan 11 08:24:59 Binder and IBinder are the imports Jan 11 08:25:04 lasserix yes, in my Service I extend the Binder class Jan 11 08:25:41 just like from the example page I posted Jan 11 08:25:51 is there a webpage where i can find the latest guidelines for android development? i have the feeling that the official google documentation is old and mostly deprecated Jan 11 08:25:54 I literally copied their code, and it doesn't seem to work Jan 11 08:26:13 and have to pay some licencing fee to let my users stream AAC files ?? Jan 11 08:26:22 shmooz: I can understand not wanting someone else to write our project for us, but I think sometimes using a library is the best choice by far. Jan 11 08:26:49 And by using Android's API at all we're already using someone else's code. It's just a question of degree. Jan 11 08:27:46 seems like this is the culprit Jan 11 08:27:47 def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim() Jan 11 08:28:10 do you have git installed? Jan 11 08:28:26 TacticalJoke: that ugly code runs pretty smooth so far ;) I could finish this app in a month or two Jan 11 08:28:30 oddalot: you don't import LocalBinder Jan 11 08:28:35 just do def gitSha = Jan 11 08:28:40 'stub' Jan 11 08:28:43 make sure it is visible, though Jan 11 08:29:18 ktwo be more specific Jan 11 08:29:28 lasserix I didn't at first, but Android studio yells at me about LocalBinder not being imported Jan 11 08:29:55 it doesn't need to import it Jan 11 08:29:58 ok i'm not seeing how to change the build confing in as f2prateek_ ? and i don't see the resrouces either just the source Jan 11 08:29:59 it's a class you define Jan 11 08:30:19 i'll try that and see what else happens Jan 11 08:30:21 unless you made it package private or something and you can't see it from youra ctivity class? Jan 11 08:30:40 hmm maybe that's the problem Jan 11 08:30:50 lasserix, example: http://developer.android.com/guide/topics/ui/actionbar.html it tells a whole page of info and then when you use it, the build environment tells you its deprecated Jan 11 08:31:09 i also get an error that Date() is not defined f2prateek_ but i'l hack around that too Jan 11 08:31:25 i don't think i ever made it private, how would I of done that? Jan 11 08:31:29 ktwo here is UI in general http://www.google.com/design/spec/material-design/introduction.html Jan 11 08:31:46 oddalot can you post a code snippet this seemsunreasonably complicated for some reason Jan 11 08:32:07 ktwo otherwise those guides are as good as it gets Jan 11 08:32:15 but if you look in Jan 11 08:32:25 http://www.google.com/design/spec/layout/metrics-keylines.html Jan 11 08:32:32 yea thx maybe this site is more what i was searching for, wanted the latest guidelines Jan 11 08:32:35 there's a lot in the various subpages that should bee nough Jan 11 08:32:44 in the regular pages there are even screensots from froyo time Jan 11 08:32:49 hehe Jan 11 08:33:12 yeah, there is a weird mishmash of outdated stuff in the pure android docs Jan 11 08:33:23 the material spec is a bit ahead ;) Jan 11 08:34:10 split action bars O.o Jan 11 08:35:00 heh well it seemed to build then I got an ANR f2prateek_ heh Jan 11 08:35:53 actually a lot of this is out of date http://developer.android.com/guide/topics/ui/actionbar.html Jan 11 08:37:08 ActivityManager( 827): Process com.jakewharton.u2020.dev (pid 25676) (adj 15) has died. Jan 11 08:39:45 I was amazed that the guide I saw (at least the first one) had been updated for Android Studio. Jan 11 08:39:53 Hi, is this the right place to ask question reagrding the native framework? Jan 11 08:40:09 which guide tacticaljoke -- the android developer guide? Jan 11 08:41:17 lasserix: http://pastie.org/9825129 Jan 11 08:41:31 ah i think i found a problem Jan 11 08:41:53 oddalot is LocalBinder a nest class of the service? Jan 11 08:42:00 lightydo: I don't know whether any NDK people are in, but you might as well try to ask. Jan 11 08:42:04 or did you include it in the file but not as a nested class? Jan 11 08:43:22 try cleaning the project Jan 11 08:43:31 are the service and activity in the same package? Jan 11 08:43:44 Oh, no they aren't Jan 11 08:43:50 ok seems like its workin f2prateek_ Jan 11 08:43:50 errr Jan 11 08:43:52 i mean Jan 11 08:43:59 but when i click on the dogs nothing happens Jan 11 08:44:01 oddalot: just tryin adding the package import manually at the top Jan 11 08:44:06 the swipe from the right works tho Jan 11 08:44:11 oddalot or here Jan 11 08:44:14 iny our activity do Jan 11 08:44:31 (NeXGenService.LocalBinder) Jan 11 08:44:32 yeah, i pulled all my services and activities into seperate packages Jan 11 08:44:35 instead of LocalBinder Jan 11 08:44:45 click on the dogs ? Jan 11 08:44:54 * g00s releases the hounds Jan 11 08:45:28 yeah this u2020 app from JakeWharton has some dog photos but when i tap them nothing happens Jan 11 08:45:28 then it says: getService is not public inside NextGenService.LocalBinder Jan 11 08:45:39 then make it public Jan 11 08:45:39 because it's not an app you interact with Jan 11 08:45:39 anyone have any ideas on saving grid view position in a view pager? Jan 11 08:45:40 but maybe they aren't suppsoed to i dunno Jan 11 08:45:48 since you decided to do different packages you have to use public Jan 11 08:45:53 access modifiers oddalot Jan 11 08:46:12 well does it call any webservices or what does it do as far as using rxjava etc jakewharton? Jan 11 08:46:18 drinfernoo: you can just stuff it as a tag into your gridview Jan 11 08:46:19 HevvyMetal you could just look at the code and see what is supposed to happen Jan 11 08:46:20 If i make it public then it says required type IBinder Found (MyService) Jan 11 08:46:22 look at the source Jan 11 08:46:32 getting closer at least Jan 11 08:46:37 it could at least bark Jan 11 08:46:48 the dog is cute tho Jan 11 08:46:50 they aren't dogs when pointed at production Jan 11 08:47:23 what are they when pointed at "production" and how do I switch the build from one to the other in AS JakeWharton? Jan 11 08:47:54 you have exceeded your query limit for things which can be ascertained by RTFMing Jan 11 08:50:49 hehehe Jan 11 08:51:15 heavymetal hint: look at the bottom left side of android studio and tilt your head to the left by 90 degrees Jan 11 08:51:32 nah you can switch in the app Jan 11 08:51:35 at least he is talking about android development right? Jan 11 08:51:41 hehe Jan 11 08:51:49 there's a giant GIF of how to switch Jan 11 08:51:57 and paragraphs of explanation Jan 11 08:52:11 GIF where? Jan 11 08:52:14 JakeWharton: oh you mean like the hidden easter egg of enabling development by clicking on build right? Jan 11 08:52:22 i forgot about that Jan 11 08:52:37 HevvyMetal: i think you have to click the action bar like 12 times Jan 11 08:52:37 huh? Jan 11 08:52:47 lasserix: it's much more obvious than that Jan 11 08:52:48 and it'll switch builds while running Jan 11 08:52:52 heh Jan 11 08:52:55 (and useful) Jan 11 08:53:08 i see something that looks like it would be a build drop down but it only says "u2020" in it so I'm confused Jan 11 08:53:21 ohh you are talking about an actuall app Jan 11 08:53:25 Oh, i see what the problem is *face palm* I was shadowing the variable in the scope Jan 11 08:53:35 oddalot: nice. Jan 11 08:53:44 that's what i get for copying and then changing the names ;) Jan 11 08:54:20 yup and I'm not that familiar with AS as you can tell Jan 11 08:54:40 thanks lasserix :) Jan 11 08:55:03 when I go to "edit configurations" in that drop down I just see the one "u2020" configuration Jan 11 08:55:27 r t f m we can read if we want to Jan 11 08:55:32 read the readme Jan 11 08:55:36 are there supposed to be? did I import it into AS incorrectly? still not sure what gif you mean Jan 11 08:55:54 dont panic just grep it Jan 11 08:56:17 just tell me how many centimeters to move my mouse in which direction and click how many times which button ?!?!?!! Jan 11 08:56:48 ok i read the readme Jan 11 08:57:08 and i looked at the obvious config drop down Jan 11 09:01:24 TacticalJoke: thanks Jan 11 09:02:02 ok i see the toggle in the build variants thing i just thought it would already have two build configs in the drop down Jan 11 09:05:56 i'm not so sure, maybe its better if HevvyMetal doesn't talk about android Jan 11 09:06:26 I had to ignore that guy ages ago. lol Jan 11 09:06:27 Too much. Jan 11 09:07:50 he said I was trolling... ( pot calling the kettle black ) Jan 11 09:11:18 i wonder if they will put this in the support library https://plus.google.com/+ChrisBanes/posts/Zjhxad4P35S O.o Jan 11 09:11:27 hope not Jan 11 09:12:25 yeah, its more fun copying & pasting crap from the intertwebs into my project Jan 11 09:12:27 it looks weird Jan 11 09:12:28 what? Jan 11 09:12:36 i never said you were trolling adq Jan 11 09:12:43 that's called a library, not the support library Jan 11 09:12:46 leave the support library alone Jan 11 09:12:50 it's riddled with enough crap Jan 11 09:13:13 i said there should be a bot named adb Jan 11 09:13:52 no bots Jan 11 09:13:57 and technically most of my questions today have really been about AS not android per se Jan 11 09:14:11 * pifon still uses eclipse Jan 11 09:14:29 yeah i saw that in the topic but it still would be a good name for a bot....possibly on a different channel (android maybe) Jan 11 09:14:43 I think it's funny no bots -- we don't serve droids in here! pretty ironic Jan 11 09:15:04 Man, what is it with the word "login". Jan 11 09:15:12 The button should read "log in". Jan 11 09:15:20 "Login" is a noun or an adjective. Jan 11 09:15:36 yup Jan 11 09:15:38 Grinds my gears. Jan 11 09:15:39 this is interesting, 4.2 is still increaing http://andraskindler.com/blog/2015/android-distribution-2014/ Jan 11 09:15:49 ugh, *increasing Jan 11 09:15:49 title login is ok, but button is not Jan 11 09:16:19 i'm not fan of this screen tbh, and i would also prefer that they not push this in support library Jan 11 09:16:31 lasserix, either I'm doing it wrong, or it doesn't work that way Jan 11 09:16:36 either way it's bedtime lol Jan 11 09:16:48 o/ Jan 11 09:16:51 ? Jan 11 09:16:59 TacticalJoke did you see http://blog.codinghorror.com/the-god-login/ Jan 11 09:17:00 g00s: same reason GB was going up two years ago Jan 11 09:17:02 sorry i was losing my mind trying to figure out a palette to use Jan 11 09:17:03 the tagging the gridview Jan 11 09:17:06 oh Jan 11 09:17:12 sorry what was your question more specifically Jan 11 09:17:22 you meant like the current picked one? Jan 11 09:17:23 or what? Jan 11 09:17:29 Yeah. To my delight, he knows the difference between "login" and "log in". :D Jan 11 09:17:36 Though I don't agree with that guy a huge amount. Jan 11 09:18:01 sometimes in my dream I stare at this chat and then I wake up and compare it to what was really said Jan 11 09:18:23 shmooz you need to take a break Jan 11 09:18:23 shmooz: sounds awful Jan 11 09:18:28 dreaming about the android-dev chat room Jan 11 09:18:32 both the dream... and reading what's actually said in here Jan 11 09:18:35 that means you need an extended vocation Jan 11 09:18:37 hehe Jan 11 09:18:40 *vacation Jan 11 09:18:44 better than dreaming about programming a whole app and then waking up Jan 11 09:18:47 yes, an extended vocation :D Jan 11 09:18:48 haha Jan 11 09:19:00 I like those dreams in which you figure out the causes of bugs. Jan 11 09:19:03 I'll get back to you tomorrow lasserix :P gotta get some shuteye Jan 11 09:19:12 dreams are for like making the ultimate app or getting in bed with the object of your desires, but irc chatrooom android-dev?!?! Jan 11 09:19:17 haha Jan 11 09:19:18 drinfernoo: goodnight Jan 11 09:19:20 dream of us! Jan 11 09:19:41 I probably will Jan 11 09:19:42 I have so far twice solved a programming problem in my dream though I am proud to say Jan 11 09:19:52 i guess it makes sense, if you play a FPS game for like 10 hours straight you'll dream in it Jan 11 09:19:55 oh which ones shmooz? Jan 11 09:19:56 I've not done it many times. It was an amazing feeling when I did. Jan 11 09:20:14 shmooz yeah a lot of inventions have been discovered that way--like the sewing machine in fact Jan 11 09:20:23 HevvyMetal: one was in Visual Basic, and the other was in php Jan 11 09:20:27 Why are x and y positions floats and not integers Jan 11 09:20:38 but I don't remember the specifics Jan 11 09:20:40 shmooz: i can solve both of those in my dreams as well: don't use VB, don't use PHP Jan 11 09:20:40 because of dpi AndreYonadam Jan 11 09:20:43 density Jan 11 09:21:24 adq: Anyway to convert that to an int representing a touched pixel when I get the event? Jan 11 09:21:29 If I had a dream involving PHP, I'd wake up sweating. :D Jan 11 09:21:35 vb6? Jan 11 09:21:55 you need to use getDisplayMetrics or something close to that Jan 11 09:22:02 wouldn't that be pretty obvious AndreYonadam ? Jan 11 09:22:19 I still do a lot of php although I'm pretty much done with it Jan 11 09:22:34 you know that dream - the one where you are falling - thats from PHP Jan 11 09:22:37 The problem is that I'm try to find out if a point intersects a line Jan 11 09:22:42 I came up with three meathods Jan 11 09:22:49 Anyone have a github link for a style using appcompat to see all the various color entries and such? Jan 11 09:22:51 HevvyMetal: I've been through VB 3.0 to 6.0 Jan 11 09:22:58 You can see them here if you want: http://stackoverflow.com/questions/27885252/best-method-to-use-for-to-see-if-a-point-is-on-a-line-given-three-pairs-of-coord?noredirect=1#comment44172275_27885252 Jan 11 09:23:03 AndreYonadam: that's fairly straight forward Jan 11 09:23:05 what about vb.net shmooz? Jan 11 09:23:22 They all need ints Jan 11 09:23:28 I think VB 4.0 was my first version. I was using QBASIC before that. Jan 11 09:23:48 lasserix: Yeah I think I might try to do the thing with the getdisplaymetrics or I might try rounding Jan 11 09:23:51 HevvyMetal: nah I moved on to doing server side linux web dev jobs Jan 11 09:23:53 just cast at the last point Jan 11 09:24:07 AndreYonada or just use an equality episolon Jan 11 09:24:08 ie Jan 11 09:24:18 if the equality is less than some amount say its equal Jan 11 09:24:32 *absolute value of the equality Jan 11 09:24:37 I started out on BASIC-PLUS and then microsoft basic and then qbasic but then I pretty much moved to C/C++/Smalltalk etc but did some VB6 stuff then moved to C# Jan 11 09:24:53 HevvyMetal what about android? Jan 11 09:25:04 android came after C# Jan 11 09:25:09 go on Jan 11 09:25:23 about what? Jan 11 09:25:39 yonada also you can just multiply it by the factor of decimals places Jan 11 09:26:23 and slope method is best Jan 11 09:26:36 but if you have asymptotic slope its really easy Jan 11 09:26:42 *and if you have asymoptic Jan 11 09:27:00 you just ignore one value and check if the other value is equal ;p Jan 11 09:27:06 so what got you into android if you mainly do webapps? have you made any android apps yet shmooz? Jan 11 09:27:40 AndreYonadam: also the best way to do it is use vectors Jan 11 09:28:01 HevvyMetal: before web apps I did lots of other stuff too, linux C/C++ Win32 apps with OpenGL and stuff Jan 11 09:28:33 ohh Jan 11 09:28:33 what about android i meant shmooz Jan 11 09:28:36 you can use matrices Jan 11 09:28:39 that is really easy Jan 11 09:28:43 thats cool you did opengl you can do that with android too :) Jan 11 09:29:01 HevvyMetal: and I made lots of little dinky applets and applications in java when it was new Jan 11 09:29:15 we do not dare speak of applets here Jan 11 09:29:22 that's for #java ;) Jan 11 09:29:40 I had J++ at one point. Can you believe that? Jan 11 09:29:56 I seem to remember it being terrible. Jan 11 09:30:02 no its not HevvyMetal Jan 11 09:30:03 hevvymetal what are you working on as far as android ? Jan 11 09:30:06 I thought android would come easy because I already have some linux and java experience Jan 11 09:30:08 dare not speak of applets on ##java :p Jan 11 09:30:33 i worked on 7 different apps lasserix Jan 11 09:30:36 it wasn't as easy as I thought, but now I am starting to understand it better Jan 11 09:30:39 7 android apps that is Jan 11 09:31:21 android apps are applets for linux XD Jan 11 09:31:30 android isn't particularly easy shmooz Jan 11 09:31:41 well all my applet could be run in application mode from command line Jan 11 09:31:47 timed out Jan 11 09:31:48 applets remind me of the duke days Jan 11 09:31:50 does anyone know the list of theme elements for material? Jan 11 09:31:58 I figured out how to combine applet with application and make it both Jan 11 09:32:02 lasserix you'll have to look at the xml's Jan 11 09:32:12 did you ever do any J2ME shmooz? Jan 11 09:32:14 yeah do you know of a github repo i can look at? Jan 11 09:32:31 lasserix its in your sdk O.o Jan 11 09:32:34 HevvyMetal: no I skipped that, I looked it a bit but it wasn't my cup of tea Jan 11 09:33:00 i'm guessing lasserix means something different Jan 11 09:33:44 I preferred working for smaller companies that don't deploy J2ME and have thousands of developers Jan 11 09:34:04 or sorry J2EE I mean Jan 11 09:34:08 which sdk? Jan 11 09:34:12 which project? Jan 11 09:34:22 and no I never tried J2ME for small devices Jan 11 09:35:58 yeah J2EE is for large sweatshops it seems Jan 11 09:36:04 g00s i am looking for an example style xml that shows all the elements for material Jan 11 09:36:12 by elements i mean primary accent etc etc Jan 11 09:36:20 yeah i stayed out of java for a long time and only got back into it for android Jan 11 09:37:59 http://treyrobinson.net/blog/android-l-tutorials-part-2-material-theme-colors/ Jan 11 09:38:54 anyone mess around with lollipop leanback apis yet at all? Jan 11 09:41:44 it has some cool stuff in there but I'd like to see how much of it I can get running on 4.x for firetv Jan 11 09:43:57 compatibility blows Jan 11 09:44:08 which compatibility blows? Jan 11 09:44:13 leanback? Jan 11 09:44:21 no all ui backward compability Jan 11 09:44:53 its like such a sinkhole of time and effort for that 5% that actually matters but in reality doesn't matter all that much Jan 11 09:45:14 i'm not talking about running 2.2 i'm talking about 4.4 Jan 11 09:45:37 it's gonna be a while before lollipop has 80% Jan 11 09:47:32 lollipop is at 0.1 % Jan 11 09:48:28 it will probably never get to 80%, each version peaks out much lower Jan 11 09:48:44 kitkat is 40% Jan 11 09:49:26 i'm not even going to waste my time with material for at least 6 mos Jan 11 09:50:03 g00s did you see the article saying that kitkat is good enough Jan 11 09:50:07 so why bother with material? Jan 11 09:50:09 i'll use low langing fruit in appcompat, thats abou it Jan 11 09:50:11 or so the theory goes Jan 11 09:50:21 um google claims that 89% is 4.03 or higher where do you get this 40% number? Jan 11 09:50:32 so you arent using material in the compat library g00s? Jan 11 09:50:46 HevvyMetal these are the official numbers https://developer.android.com/about/dashboards/index.html Jan 11 09:51:01 g00s i just want to include since doing so well help in interviews Jan 11 09:51:05 so actually, 5.0 is < 0.1 % Jan 11 09:51:19 Are you two saying you're not using 'material' at all? Jan 11 09:51:26 no i am Jan 11 09:51:59 what interviews? are you a student or consultant or what lasserix? Jan 11 09:52:38 wow < 0.1% eh? there must be very few nexus devices in the wild Jan 11 09:52:51 GPE == < 0.1%? hard to believe Jan 11 09:55:24 TacticalJoke no, while everyone is figuring out how to make FABs on < 5.0 i'm adding features and learning other things Jan 11 09:55:30 job interviews Jan 11 09:55:43 Yeah, I can understand that. Jan 11 09:55:48 I've held off for as long as possible. Jan 11 09:55:51 there are two libraries for fabs just use them Jan 11 09:55:56 Though I think I will need to use 'material' before release. Jan 11 09:56:14 Or something not Holo-like. Jan 11 09:56:27 https://developer.android.com/design/tv/style.html Jan 11 09:56:34 i can't believe they recommend a 10% overscan Jan 11 09:56:48 is anyone using a device that doesn't display all 1920x1080 pixels? it's crazy Jan 11 09:57:03 their recommendations mean all the video will be scaled and look crappy .... makes no sense Jan 11 09:57:09 I'm not gonna overuse whitespace as they suggest, though. That sucks for some apps. Jan 11 09:57:49 TacticalJoke: the key is not overloading your user with information Jan 11 09:57:53 since that is pivotal problem Jan 11 09:58:08 g00s what's a FAB? what features are you adding to your app? Jan 11 09:58:15 you want to pack content in, but the overdoing it causes subconcious stress Jan 11 09:58:31 HevvyMetal: fab is that floating cirular confirmation button Jan 11 09:58:50 i haven't seen it Jan 11 09:58:56 when does it appear? Jan 11 09:58:57 Sometimes, though, unless you show a lot of content it's tedious to use the app. Jan 11 09:59:03 Sometimes there's a lot of content to browse. Jan 11 09:59:04 i have 5.0 runing on my tablet but i've never seen it Jan 11 09:59:08 TacticalJoke: so it's not really about including excess whitespace, it's about not overloading the user's perception Jan 11 09:59:14 Okay, fair point. Jan 11 09:59:25 HevvyMetal, FAB stands for Floating Action Button (the round button introduced with material, mainly) Jan 11 09:59:35 https://www.google.com/search?q=fab+icon&rlz=1C1CHWA_enUS574US574&espv=2&biw=1680&bih=892&source=lnms&tbm=isch&sa=X&ei=d0myVJjEFoGzoQTikoKIAQ&ved=0CAYQ_AUoAQ#tbm=isch&q=fab+icon+android&imgdii=_&imgrc=kzME6oXk7FP_bM%253A%3BIpA7zfHOSyaitM%3Bhttp%253A%252F%252Flh3.ggpht.com%252F-gabB9lukW4w%252FVCP9LUAGL4I%252FAAAAAAAABJI%252F55qLCYbIRtQ%252Fandroid_floating_action_button_1_thumb%252525255B2%252525255D. Jan 11 09:59:35 png%253Fimgmax%253D800%3Bhttp%253A%252F%252Fwww.survivingwithandroid.com%252F2014%252F09%252Fandroid-floating-action-button.html%3B288%3B480 Jan 11 09:59:38 oops Jan 11 09:59:46 http://www.survivingwithandroid.com/2014/09/android-floating-action-button.html Jan 11 10:00:20 One thing that concerns me is that my app handles passwords (in method calls and stuff). If my app crashes and they send a report, I get their password. Jan 11 10:00:23 Is there a clever way around that? Jan 11 10:00:43 Like, I really don't wanna get people's passwords (though I guess I could just ignore them). Jan 11 10:00:54 Wait, would I get that? Hmm. Jan 11 10:00:57 use a token, oauth? Jan 11 10:01:40 ok well I thik they have that in the google maps on 4.4 so there must be a way to make it work in the compat thats not too hard eh? Jan 11 10:01:54 yeah there are at least two libraries Jan 11 10:02:15 TacticalJoke, don't ever store passwords. Jan 11 10:02:30 OAuth2 was invented to prevent what you're talking about. Jan 11 10:02:34 Now that I think about it, I won't. Jan 11 10:02:38 Also, don't logcat access tokens. Jan 11 10:02:40 I know; I'm not storing passwords. Jan 11 10:02:44 Or other personal information. Jan 11 10:03:18 yeah never logcat any password :) look android wear: W/bt-smp﹕ Key(LSB ~ MSB) = 86 fa c5 65 e9 40 0e 1e 28 .... W/bt-smp﹕ Plain text(LSB ~ MSB) = f6 64 41 00 00 .... etc.. Jan 11 10:03:30 Yeah, that would be incredibly dumb. Jan 11 10:03:32 they dump continuously the bt key Jan 11 10:03:49 I meant that I was worried that I'd see method parameters in a report. But of course I won't. Not sure what I was thinking. Jan 11 10:03:50 HevvyMetal, you're totaly misunderstanding that overscan article. Jan 11 10:04:18 adq, yeah, which is dumb, because people tend to paste their logcats to public internets Jan 11 10:04:53 idk if the key is renewed or not, i haven't dare to open a ticket on that Jan 11 10:04:55 yet Jan 11 10:05:55 How about minimizing the time that a String containing a password exists in memory? I guess there's no (simple) way of zeroing-out that memory in Java. Jan 11 10:05:58 well mavrik not really --- have you tried building an Android TV app using AS? Jan 11 10:06:08 I guess you could use reflection and access the underlying char[] of a String, but it seems tedious. Jan 11 10:06:18 TacticalJoke, no easy in java, because the footprint of your pwd might be at several place in memory too Jan 11 10:06:27 because I have and their demo app scales EVERYTHING down by 10%, including the video, not just making sure that controls are in the "safe area" Jan 11 10:06:43 where does fastboot store the files it downloads? Jan 11 10:06:43 you have not a great control compared to C on where the sensible data is stored Jan 11 10:06:49 Yeah. Jan 11 10:06:52 TacticalJoke: arent you supposed to use oauth for all that? Jan 11 10:06:58 does it store it in ram or on the internal storage Jan 11 10:07:09 Haxxa: apples oranges Jan 11 10:07:12 HevvyMetal, yes, and that's not ok Jan 11 10:07:18 it must be in ram to goto internal storage Jan 11 10:07:20 usually you do video at 100% Jan 11 10:07:27 and make sure the 10% border is never used by anything Jan 11 10:07:40 since TVs do overscan by default when non-PC input is enabled Jan 11 10:07:51 lasserix: OAuth2 is available for reddit, but I'm not using it (yet), because from what I've read it's a huge pain to get right, I've not yet seen a reddit client that uses it (adding to the first point), and the official reddit AMA app doesn't use it (seriously adding to the first point). Jan 11 10:07:55 and some TVs will do overscan no matter what input they get, so you must conform to the safe area Jan 11 10:07:59 lasserix heres my problem the system.img I am trying to flash is 1.5gb - the ram however is only 1 gb Jan 11 10:08:29 Also, what would the UX be like? Launching the browser so that they can log in? Jan 11 10:08:35 haxxa --> #android-root Jan 11 10:08:38 TacticalJoke, yes, that's the standard OAUth flow Jan 11 10:08:53 the reasoning being that your app never really sees or handles the login details Jan 11 10:09:00 Okay. Jan 11 10:09:03 its OTA Jan 11 10:09:04 you just get an OAuth token and that's it :) Jan 11 10:09:29 I like the idea of implementing it, but I dislike the idea of having way more complexity and an inferior UX (at least with regard to the steps the user has to take in the UI). Jan 11 10:09:31 TacticalJoke: i imagine there is a library to make it easy to implement Jan 11 10:10:17 There's nothing hard about OAuth really, you just get a code and then request a token. Jan 11 10:10:23 Just most of the documentation sucks :P Jan 11 10:10:29 i'm a little suprised they dont have an overscan settings thing and then the app can read that Jan 11 10:11:04 HevvyMetal, how would that work? Jan 11 10:11:16 i know it's not ok so why would google do that in their demo app? i hope that doesnt become common practice or ATV apps wil sucks Jan 11 10:11:21 how would what work mavrik? Jan 11 10:11:22 HevvyMetal, how would your device know what overscan the TV on the other side of HDMI cable is ding? Jan 11 10:11:35 you set it in your settings control panel Jan 11 10:11:51 visually...with a dpad...like many video games/consoles/set top boxes do Jan 11 10:11:59 But why. Jan 11 10:12:01 you've never seen that on a device before? or game? Jan 11 10:12:13 No, I haven't seen it on most devices because it adds complexity for user. Jan 11 10:12:15 so that you can get all the pixels wiht no overscan if your tv (and most do) support that Jan 11 10:12:22 Overscan is a known quantity and part of HDMI standard. Jan 11 10:12:28 Threads like this make me pessimistic: http://www.reddit.com/r/androiddev/comments/1aqc9a/ Jan 11 10:12:30 TV devices are built to take it into account. Jan 11 10:12:32 ok well I certainly have and overscan was back in the tube days Jan 11 10:12:34 "So OAuth is a huge pain to implement." Jan 11 10:12:47 in flat panels there is no more overscan Jan 11 10:13:12 HevvyMetal, all flat panel TVs do overscan. Jan 11 10:13:19 By default. Jan 11 10:13:30 by overscan i mean that you don't see all the pixels on 1920x1080 Jan 11 10:13:38 all panels that i've do show all 1920x1080 pixels Jan 11 10:13:43 And by overscan I mean they cut off part of sent picture from HDMI. Jan 11 10:13:44 by default Jan 11 10:14:02 It's actually defined in the HDMI standard. Jan 11 10:14:04 in what country are you in that they cut off part of the picture by default Mavrik ? Jan 11 10:14:11 HevvyMetal, in all countries. Jan 11 10:14:25 ok well that's not been my experience Jan 11 10:15:17 TacticalJoke, i would not enter my login/password in a reddit app or other apps in fact Jan 11 10:15:30 HevvyMetal, well what can I say... you obivously never read the standards you were using then. Jan 11 10:15:38 you'd better add oauth, it's not so painful to implement, security is a serious thing though Jan 11 10:15:59 that's right i don't "read" the standards I just hit the remote control and set it to 1:1 a long time and it's still set that way Jan 11 10:16:25 HevvyMetal, again, you're grossly misunderstanding what Google and I am trying to tell you. Jan 11 10:16:42 no, I'm not Mavrik, I get it Jan 11 10:17:03 you don't get that I think that it should be a system setting and users can pic how much overscan they are seeing/their tv is set for Jan 11 10:17:24 TacticalJoke, for some people anything that can't be copy-pased from SO is "hard to implement" ;) Jan 11 10:17:39 and I get that scaling video is generally a pretty bad thing, and playing video back shrunken like they do i n the app makes sense, since the video should be overscan safe to begin with Jan 11 10:17:43 HevvyMetal, because that's a setting that's unnecessary. Jan 11 10:17:59 according to you but not for nerds or geeks and many devices do have that setting Jan 11 10:18:08 you don't have to repeat yourself nor I really Jan 11 10:18:10 And playing video shrunken is a bad idea, since video is recorded in a way that takes overscan into account. Jan 11 10:18:21 yes so we agree on that part then mavrik Jan 11 10:18:27 so why did google do that in their demo app? Jan 11 10:18:29 HevvyMetal, you're working on TV. Not for something for nerds and geeks. That's the difference. Jan 11 10:18:33 I suggest you ask them. Jan 11 10:18:57 nah no need Jan 11 10:19:22 TacticalJoke, the reason why there isn't much of an Android libs for OAuth is that you already have OAuth stuff built-in in terms of the AccountManager Jan 11 10:19:24 I think just about by definition the only people who will buy a Nexus TV are nerds and geeks Jan 11 10:19:32 everyone else is going to buy a Roku or Fire TV Jan 11 10:19:45 TacticalJoke, so it's hard to make a lib to handle all of that for you since you need some additional setup in AndroidManifest.xml and whatnot if you want to use that Jan 11 10:19:49 which is why I want my apps to run on 4.x not lollipop Jan 11 10:20:05 HevvyMetal, Android TV is shipping with all Sony and Phillips TVs this year. Jan 11 10:20:09 when the galaxy s4 gets lollipop that will be really interesting Jan 11 10:20:30 By default. So that's another of your preconceptions that's wrong. Jan 11 10:20:37 yeah i know but still.....thats gonna be a very small fraction of the installed base considering how many hdtvs there are in the world Jan 11 10:20:48 you seem awfully hostile mavrik Jan 11 10:21:06 and if you look at how well (poorly) google tv did there is some cause for concern Jan 11 10:21:16 but i hope ATV takes off better than last time Jan 11 10:21:28 Marvik> I heard some about select TVs... but you're saying all Sony and Philips? whoa Jan 11 10:21:45 I'm not hostile, I do not tolerate people who take shortcuts in their UX and apps just because they don't want to read up on what they're really doing. Jan 11 10:21:53 I have a Nexus Player - it's bloody awesome. Jan 11 10:21:54 Chainfire, sorry, I should have said all "Smart" ones Jan 11 10:22:08 I'm not taking shortcuts in my app, I'm saying it shouldn't scale viddeo Jan 11 10:22:16 fair enough - whatever would normally come with their own smart solutions then Jan 11 10:22:17 I'm having some trouble with backwards compatibility Jan 11 10:22:22 Yep. Jan 11 10:22:25 all because of the damn fab button and the ripple tag Jan 11 10:22:29 you are being hostile and giving your "not tolerate" stuff? gee such a big horse you hae there lulz Jan 11 10:22:46 what kind of problem odaym? Jan 11 10:22:48 Samsung is holding out though... even though their "Smart" OS is shitty beyond measure :/ Jan 11 10:23:03 you can't use the ripple effect < API 21 Jan 11 10:23:18 should I put that stuff in values-v21? Jan 11 10:23:29 and put whatever would normally load, in values Jan 11 10:23:40 still, the leanback launcher could use some work... its pretty much the worst part of the player Jan 11 10:23:45 Odaym, hmm, if you use the selectedItemBackground AppCompat attribute, you'll get that automatically :) Jan 11 10:23:54 what is that Jan 11 10:23:58 :o Jan 11 10:24:05 let me check Jan 11 10:24:06 Chainfire, I'm still waiting for mine to get delivered, Google is being moronic by not selling the Nexus Players in EU again :/ Jan 11 10:24:15 Chainfire do you have one or did you just use the emulator ? Jan 11 10:24:35 0daym> android:background="?android:attr/selectableItemBackground" Jan 11 10:24:53 what about the elevation tag? Jan 11 10:24:56 Mavrik I had mine shipped from the US Jan 11 10:24:58 does it not get called when the API is wrong? Jan 11 10:25:00 I feel it's that way Jan 11 10:25:06 Odaym, android:background="?attr/selectableItemBackground" Jan 11 10:25:09 Had to do several xbmc commits to get that to work Jan 11 10:25:24 elevation tag is filtered out by the android tools Jan 11 10:25:44 you can set it in your layouts, and the layout without the elevation tag will magically appear in your APK for <21 Jan 11 10:25:49 hmm, I think using "?android:attr" will break, "?attr" will work with AppCompat Jan 11 10:25:54 well i have a client that wants to build a channel for Fire TV so my stuff needs to run on 4.4 but it should run on ATV as well Jan 11 10:26:29 Mavrik its not a custom attribute, is it... it exists both on <21 (blue/gray/highlight) and >=21 (ripple) Jan 11 10:26:44 ah Jan 11 10:26:51 I'm not saying, I'm asking :) Jan 11 10:26:57 oh yeaa...I was wondering that if listviews >= 21 have the ripple by default Jan 11 10:27:00 why wont buttons have it! Jan 11 10:27:07 they don't ? Jan 11 10:27:27 They do Jan 11 10:27:28 I didnt try Jan 11 10:27:34 I just saw "how to make fab button" Jan 11 10:27:39 and applied the ripple xml to it Jan 11 10:27:48 so many ways to make a fab button Jan 11 10:27:50 because I wanted this as an imageview Jan 11 10:27:53 not as a button Jan 11 10:28:03 plain bloody ridiculous it isn't a Google-provided API Jan 11 10:28:19 they explained it back then that it was too simple to "provide" Jan 11 10:28:42 that's why there's so many different implemenations all with their own pros and cons Jan 11 10:28:58 if you know how to do something, it's always simple. if you don't, it's daunting Jan 11 10:29:12 well, c'est la vie.. Jan 11 10:29:15 mhm Jan 11 10:29:18 that Google's UI guys think it's simple is irrelevant. You're advised to use it, they should at least provide a sample Jan 11 10:29:44 I think they're just trying to fight against cargo culting though, it's pretty bad in Android dev world. Jan 11 10:29:56 what's cargo culting ? Jan 11 10:30:02 People read a piece of beginner tutorial and think that's the only way to do stuff. Jan 11 10:30:17 Like using ArrayAdapters when they shouldn't, AsyncTasks when they're obviously not a right fit, etc. Jan 11 10:30:18 textColorPrimary is not something you can include in the theme for appcompat? Jan 11 10:30:32 so? I work to get things done, not to reinvent the wheel Jan 11 10:30:32 Or sticking only to provided views when creating a custom view would be simpler and faster Jan 11 10:30:59 people biblifying examples is not going to stop if Google dont give an example Jan 11 10:31:04 they'll do that to an SO answer Jan 11 10:31:05 easy Jan 11 10:31:09 Chainfire, I'm not talking about not using provided tools, I'm talking that I've seen alot of people not using anything but provided tools in ways written in tutorials Jan 11 10:31:21 which causes them issues when trying to do something more advanced :) Jan 11 10:31:29 Odaym, yeah, true as well. Jan 11 10:31:38 right 0daym ... or if JakeW or CommonsGuy or whomever publishes anything on it Jan 11 10:31:55 yea, more of a mindset thing Jan 11 10:32:27 Mavrik I get that, but my concern is that doing it this way makes it hard to get started with anything. Advanced topics are for ... (drum roll) ... advanced developers Jan 11 10:33:10 I can't use textColorPrimary in my app theme style when doing app compat? Jan 11 10:33:23 I understand the idea behind it - my opinion is just that that idea is bad, and they should feel bad. Jan 11 10:34:11 How do I handle text color for themeing with app compat? Jan 11 10:34:19 since it works in values21 Jan 11 10:34:24 how do i color non-21 ? Jan 11 10:34:33 same camp here Jan 11 10:34:34 manually but then how do i not have override in 21? Jan 11 10:34:40 trying to make it look the same < 21 Jan 11 10:35:01 that attr caused an exception Jan 11 10:35:14 not a drawable Jan 11 10:35:16 are you talking about textColor? Jan 11 10:35:25 no, about android:background="?attr/selectableItemBackground" Jan 11 10:35:31 what does the attr mean again? Jan 11 10:35:40 0daym try "android:attr" Jan 11 10:35:50 oh.. Jan 11 10:35:54 right Jan 11 10:36:07 yea the theme right now is nothing for me, since it's only defined for 21 Jan 11 10:36:51 Odaym: you using app compat? Jan 11 10:37:05 no Jan 11 10:37:25 that's the reason it doesn't find ?attr since that's defined in AppCompat Jan 11 10:37:39 I've been hearing of appcompat since I began android :P Jan 11 10:37:47 today is the day I find out what it is Jan 11 10:39:05 lasserix have you tried on <21 to override android:textColor with >21's textColorPrimary value? Jan 11 10:39:21 ahh thanks Jan 11 10:39:55 (I don't know if that works) Jan 11 10:40:13 how do you do secondary text color? Jan 11 10:40:15 oh okay Jan 11 10:40:16 well Jan 11 10:40:25 yeah i've stayed away from the compatibility libs so far Jan 11 10:40:42 lollipop is foisting everyone to get more used to using them @/ Jan 11 10:40:45 interestingly, both textColorPrimary and textColorSecondary to exist <21, so they should just be themable, no? Jan 11 10:40:45 seemed to work Jan 11 10:40:55 i can't access them Jan 11 10:40:57 causes build error Jan 11 10:41:02 if i do that Jan 11 10:41:08 it works in values21 folder Jan 11 10:41:29 hmm, well I don't know what that's about. pretty noob at theming Jan 11 10:41:41 yay, finally published a package to jcenter. That's way more complicated with Gradle than it ever was with Maven -_- Jan 11 10:41:59 Chainfire: me too Jan 11 10:42:08 Mavrik> I don't even know how to make a maven package using Gradle Jan 11 10:42:34 all the howto's I can find require prior knowledge I don't have, or an additional build system, or are outdated, or ... Jan 11 10:42:49 trying to publish to jcenter as well Jan 11 10:42:52 mhm Jan 11 10:42:57 I can write another blog post :P Jan 11 10:43:04 (that part is easy, making the maven package isn't) Jan 11 10:43:06 so there's going to be 385 different ones now ;) Jan 11 10:43:22 you're using gradle for building the maven package? Jan 11 10:43:50 Chainfire, um, yes... I mean they're the same Jan 11 10:43:58 Gradle uses Maven repositories Jan 11 10:44:07 The trick is getting the .AAR to upload to right place. Jan 11 10:44:10 https://github.com/izacus/FuzzyDateFormatter/blob/master/fuzzydateformatter/build.gradle Jan 11 10:44:24 This was just a test Jan 11 10:44:26 thanks, I'll give it a read Jan 11 10:44:29 what kind of library did you build chainfire? Jan 11 10:44:56 jake should be pretty good with using gradle to build maven packages since he has bout 30 of them Jan 11 10:44:57 wow, that's it? Jan 11 10:45:04 my own script is eight times longer :P Jan 11 10:45:14 yeah "./gradlew assembleRelease bintrayUpload" then releases it Jan 11 10:45:30 also "./gradlew install" works I guess Jan 11 10:46:33 Mavrik> no automatic javadoc building, though :) Jan 11 10:46:40 havent seen anyone do that Jan 11 10:46:49 Mavrik: What is your blog? Just being nosy. :) Jan 11 10:46:53 ok, so colorPrimaryDark and colorPrimary will not work when placed in values/themes, while I am using appcompat, I've compiled it in gradle Jan 11 10:46:58 Chainfire, see the javadoc.jar :) Jan 11 10:47:00 following this guy http://antonioleiva.com/material-design-everywhere/ Jan 11 10:47:08 Chainfire, but if you want actually HTMLs Jan 11 10:47:11 they do work, no error, when these values are placed under values-21 Jan 11 10:47:11 lemme dig up another lib Jan 11 10:47:15 f---ing sqlite errors are so f---ing helpful Jan 11 10:47:16 HevvyMetal> https://github.com/Chainfire/libsuperuser Jan 11 10:47:24 Odaym: they will work Jan 11 10:47:33 ahhh ok that kind of thing Jan 11 10:47:34 ok ok Jan 11 10:47:37 they should work in values Jan 11 10:47:38 cool Jan 11 10:47:41 just dont add android: Jan 11 10:47:47 and then they get propogated up to 21 Jan 11 10:47:49 apparently Jan 11 10:47:51 if you are using app compat Jan 11 10:48:18 Mavrik> ah oh I overlooked Jan 11 10:48:25 let me just implement this, and ask stupid questions later Jan 11 10:49:38 Chainfire, https://gist.github.com/izacus/07b4c43b8a6c077439b3 Jan 11 10:49:45 do this if you want to have unpacked javadoc Jan 11 10:50:42 Mavrik> how do you get bintray.user/apikey from global properties file instead? Jan 11 10:50:52 it creates "generateDebugJavadoc" and "generateReleaseJavadoc" tasks which generate javadoc htmls in build/docs/javadoc Jan 11 10:51:05 Chainfire, um, don't remember by heart, I think just $variable works Jan 11 10:52:00 I think that doesn't work with a . in it Jan 11 10:52:03 anyway, no matter Jan 11 10:54:30 great, now I'm without an actionbar Jan 11 10:54:40 this means I moved to the right library Jan 11 10:54:46 it's called a Toolbar now Jan 11 11:01:10 so people like jcenter more than maven central these days? Jan 11 11:02:27 *shrug* maven central wanted me to send them an issue with an essay what my lib does. Jan 11 11:02:38 jcenter is the default in build.gradle on AS now anyway Jan 11 11:05:00 ok, great Jan 11 11:05:14 so now I have the app running on API 17 but I have no actionbar and I have no ripple effect Jan 11 11:05:19 not missing much else Jan 11 11:05:21 easy Jan 11 11:07:21 bbl! Jan 11 11:14:58 Mavrik the script on your github already created build/docs/javadoc ... why do I need to second script ? Jan 11 11:21:33 anyone doin any unity/games/ Jan 11 11:22:43 Mavrik >>> thanks again, works like a charm! Jan 11 11:29:16 ripple effect mus tbe through external library Jan 11 11:31:02 i think to get the lollipop animations you need lollipop Jan 11 11:31:30 what does the ripple effect even look like? Jan 11 11:32:27 HevvyMetal: http://material-design.storage.googleapis.com/publish/v_2/material_ext_publish/0B0NGgBg38lWWUUhndWxCNFN6b00/animation-responsiveinteraction-userinput-030201_Surface_Reaction_xhdpi_002.webm Jan 11 11:32:31 Looks like that. Jan 11 11:38:40 ok Jan 11 11:38:51 it's hardly a must have for previous 4.4 Jan 11 11:39:00 and its probably preferable that it doesnt do that on 4.x Jan 11 11:39:33 i don't really like what they did with 5.0 look and feel too much Jan 11 11:40:08 Yeah, there are a lot of optimisations in lollipop to stop stuff like that draining battery. Jan 11 11:40:26 I, personally, am a massive fan of lollipop. Jan 11 11:40:49 i said the look and feel Jan 11 11:41:24 That's specifically the part I love the most. Jan 11 11:41:31 i dont like the gummy bear look of either ios 8 or lollipop Jan 11 11:41:47 and what specifically do you like in lollipop the most radther? Jan 11 11:42:11 It's much more aesthetically pleasing to look at I have found. Jan 11 11:42:30 Holo was starting to look a little dated. I also love animations. Jan 11 11:42:58 i know but what in particular ? Jan 11 11:43:06 i dont like the bright glary look Jan 11 11:43:14 and i dont like the super saturated color palette Jan 11 11:43:28 even my wife hated it and i had to change the color settings on her phone to be less vivid Jan 11 11:44:04 I kinda agree there with the brightness a little. I like it most of the time but some sort of night mode would be highly appreciated. Jan 11 11:44:22 it just looks like it was redecorated by a 16 year old girl Jan 11 11:44:33 yeah and the irony is .... android does have day and night mode (themes) but it doesnt automatically switch Jan 11 11:44:36 i still don't get that Jan 11 11:44:55 and since i normally use my tablet in bed...for instance when i go to bed in a few minutes....i really dont like the superbright look Jan 11 11:45:11 Google needs to add some sort of switch in the settings that apps can reference and change there theme around. Jan 11 11:45:19 but i have an app that redshifts the screen a little so it doesnt mess with your head so much Jan 11 11:45:32 radther yes exactly why havent they done that since day 1? it's too late now Jan 11 11:45:44 not only that but it could automatically switch! based on -- the clock! Jan 11 11:46:01 some of my samsung apps do that, the exercise app has differnt backgrounds depending on time of day Jan 11 11:46:12 at night its dark and in the daytime its bright Jan 11 11:46:27 Yeah. One of my favourite features of Talon is the night mode based on time of day. Jan 11 11:46:36 what's talon? Jan 11 11:46:51 for instane gmail would be SO much better if it had a night mode with a black bkgn d and crt style text Jan 11 11:47:01 Talon is a twitter client. https://play.google.com/store/apps/details?id=com.klinker.android.twitter_l&hl=en Jan 11 11:47:25 That version is Lollipop only but the previous version has been made open source. Jan 11 11:47:40 ah ok i thought twitter forbid other people to make their own clients Jan 11 11:48:04 You can make your own clients, you just can't have unlimited users using it. Jan 11 11:48:18 whats the limit and how do they enforce it? Jan 11 11:48:30 or how about it detects brightness through sensor or camera and sets the theme accordingly Jan 11 11:48:46 it could do that too shmooz Jan 11 11:48:53 they have all the pieces Jan 11 11:49:09 the themes are there...the clock is there...the sensor is usually there....why did they never do this since 1.6? Jan 11 11:49:35 I think it's a couple hundred thousand and it's enforced through each user using the app having a token. Jan 11 11:49:43 also the latest boot up screen the nexus 10 lollipop makes me seasick Jan 11 11:50:06 ok so you can't always use talon if they max out their users? Jan 11 11:50:13 Is it the one with the spinning balls flying all over the place. Jan 11 11:50:28 No, I can still use it. They just can't get any New users. Jan 11 11:50:35 sort of but the new one has a lot of gravity effect Jan 11 11:50:55 that seems hard to believe since the token would be per app not per user it has to be a simultaneous limit radther Jan 11 11:51:22 the original boot screens looked too much like windows 95 but the nexus lollipop one looks like the ball thing on roofies Jan 11 11:51:33 and it takes a lot longer to boot Jan 11 11:51:39 It's both. The app has a token, and each user has a token tied to there account when they sign in saying that they are auth'd to use the app. Jan 11 11:51:42 Hey Jan 11 11:51:53 perlsyntax: Hi! Jan 11 11:51:58 some apps have day and night mode but have to do i nthe app itself which is silly Jan 11 11:52:01 like google sky Jan 11 11:53:03 but the night mode for google sky is very dim Jan 11 11:53:07 which it should be Jan 11 11:54:01 Hey Radther Jan 11 11:55:15 msft keeps updating the skype client to look more like ios/lollipop Jan 11 11:56:05 * Chainfire prefers CF.lumen for obvious reasons ;) requires root though Jan 11 11:56:25 yeah I don't pay much attention to the dictated fashion bandwagons either, hopefully one day android will give the user full control of theming everything Jan 11 11:56:40 why does it need root chainfire? the one i use doesn't need root and neither does the one my wife uses Jan 11 11:56:57 i wish the one i used had more settings lets see what its called Jan 11 11:56:58 shmooz: I feel that would cause more problems then it's worth. Jan 11 11:57:04 because I want black to stay black Jan 11 11:57:15 have you ever done anything with EQing the audio btw? Jan 11 11:57:17 and full screen instead of most of the screen Jan 11 11:57:24 why would black not stay black? Jan 11 11:57:32 mine stays black and is full screen Jan 11 11:57:46 all these night mode apps use color overlays... they tint black if you look closly Jan 11 11:57:57 which app are you using? Jan 11 11:57:58 no they dont all use overlays Jan 11 11:58:15 im not sure there are two different ones i use and my wife uses they are in my bedroom riht now and im going to go to sleep Jan 11 11:58:19 but i'll tell you tomorrow Jan 11 11:58:48 I'll remember that you said they don't all use overlays ... :) Jan 11 11:59:21 one of them is twilight Jan 11 11:59:27 overlay Jan 11 11:59:28 the other one is called blue something Jan 11 11:59:58 i think the blue one that my wife uses reduces the blue gain and so it wouldn't affect the blacks at all Jan 11 11:59:58 oh you're not seeing the not-fullscreen issue because you're on an S4, it has hardware buttons Jan 11 12:00:14 no, i use it on my nexus 10 which has soft buttons Jan 11 12:00:20 and i dont have any problems on that either Jan 11 12:00:34 did you ever do any audio equalization at the system level? i'd liek to do some headphone enhancer plugin someitme Jan 11 12:01:04 might depend on your android version as well Jan 11 12:01:13 long story short, you can overlay all windows on all versions of Android Jan 11 12:01:16 *cant Jan 11 12:01:19 (without root) Jan 11 12:01:26 and how would it reduce blue gain? Jan 11 12:02:14 (virtually all these apps intend to reduce blue gain btw, that's the whole idea) Jan 11 12:02:35 its generally done by applying a reddish overlay Jan 11 12:10:10 Heyo :) Jan 11 12:23:34 hi everyone os this something i should be woried about ? or can i supress the warning ? warning message: This Handler class should be static or leaks might occur (dk.fanno.android.drradio.ExpandFragmentTvChannels.1) Jan 11 12:25:37 sure Jan 11 12:25:41 fix it Jan 11 12:25:47 make it static Jan 11 12:26:08 add a weakreference to whatever context reference it needs Jan 11 12:27:04 fanno: http://www.androiddesignpatterns.com/2013/01/inner-class-handler-memory-leak.html Jan 11 12:27:59 Hello.. Anyone willing to put their hands/eyes on an Android application to see how the code could be improved? Jan 11 12:28:22 eyes/hands on the Android source code I mean Jan 11 12:28:32 dont ask to ask Jan 11 12:28:35 just post the code or stfu Jan 11 12:28:48 :) Jan 11 12:29:55 http://www.reddit.com/r/androiddev/comments/2s1yuh/thoughts_on_adding_share_elements_to_a/ Jan 11 12:30:48 use sms not email Jan 11 12:30:57 lasserix, I mean I'm asking for somebody who has the time to have a look at an entire (simple) project Jan 11 12:30:57 use sms? Jan 11 12:31:06 are you just making that up or does that actually work? Jan 11 12:31:14 sms is fast Jan 11 12:31:15 and easy Jan 11 12:31:18 email is bulky Jan 11 12:31:26 no one wants to email for ten gems Jan 11 12:31:29 but sms sure? Jan 11 12:31:31 its fast. Jan 11 12:31:33 is the point Jan 11 12:31:36 it's Jan 11 12:31:37 not its Jan 11 12:31:41 yeah it is Jan 11 12:31:48 what do you mean though Jan 11 12:31:50 monod just post it Jan 11 12:31:57 well Jan 11 12:32:00 how is it faster than email? Jan 11 12:32:02 i am guessing kids use this right? Jan 11 12:32:05 how many kids Jan 11 12:32:12 i don't know Jan 11 12:32:14 really use their email addresses all that often? Jan 11 12:32:15 they dont Jan 11 12:32:19 they text Jan 11 12:32:22 or snapchat Jan 11 12:32:23 or whatever Jan 11 12:32:24 lasserix, forgot to mention it's on a private git repo Jan 11 12:32:26 lasserix: ok i guess i could do that but it then tell me to make the functios i want to call inside the handeler static also and when i make that static it ask for next to be static ect ect. surly there must be a better way ?.. in any case what i am trying to do is create a function that are called once a minute to update data in the activity ? Jan 11 12:32:34 lasserix I should give you the zip file of a single branch Jan 11 12:32:36 It opens an address book Jan 11 12:32:40 lasserix, the main one Jan 11 12:32:42 but they only use email to say, send happy xmas to their grandparents Jan 11 12:32:47 Hmm Jan 11 12:32:57 Agamemnus: you don't have to take my advice but i imagine the bulk of your users are kids Jan 11 12:32:59 lasserix, but I can post the MainActivity.java source code maybe Jan 11 12:33:06 probably who have no concept of really using email even maybe Jan 11 12:33:09 but texting? Jan 11 12:33:12 they know that. Jan 11 12:33:23 its easy, its fast. it doesn't require a subject line or a body or an @ Jan 11 12:33:32 its just a name and the message you can populate Jan 11 12:33:33 shit Jan 11 12:33:36 Well Jan 11 12:33:42 and kids text all the time Jan 11 12:33:46 like 100 and 100s a day Jan 11 12:33:48 I need to start annoying my one freaking contact at google then Jan 11 12:34:00 I have to go sorry Jan 11 12:34:08 because my goddamn app won't get the install referrer Jan 11 12:34:13 fanno Jan 11 12:34:16 and no one can tell me why Jan 11 12:34:21 you just put a weakreference in the handler Jan 11 12:34:23 And that's the only way I can use SMS Jan 11 12:34:34 weakreference? Jan 11 12:34:36 or fanno, easier way: make the handler a top level class and voila Jan 11 12:34:39 oh Jan 11 12:35:02 agamenus why not just use google play game services and be done with it? Jan 11 12:35:14 you have jigsaw puzzle, kids are the only people plaiyng this game Jan 11 12:35:16 what do you mean Jan 11 12:35:31 they probably don't care about signing up for google play game services Jan 11 12:35:39 the game services as a whole bunch of apis you can use Jan 11 12:35:53 ok but what exactly would you use? Jan 11 12:35:55 monod that's too much work, Jan 11 12:36:00 i dontknow Jan 11 12:36:22 i dont make games i am just telling you email is too bulky, too old fashion and your email is too much like spam Jan 11 12:36:23 G+ isn't really a thing Jan 11 12:36:32 lasserix: hmm but if i make it top level class how would it access the main activity function ? Jan 11 12:36:45 pass it in the constructor duh Jan 11 12:36:55 you can do the same thing inside your activity Jan 11 12:37:03 in terms of a text message the only thing that could work is a tinyurl Jan 11 12:37:03 just make sure you wrap it as a weak reference as that article shows Jan 11 12:37:23 but they still have to download an entire app to do this Jan 11 12:37:26 or just make a webpage Jan 11 12:37:38 im sure you can find some free hosting Jan 11 12:37:44 for the amount of traffic you'll get Jan 11 12:37:57 I have it in web form, but I don't know if it will be effective Jan 11 12:37:58 fanno did you read that artcile? it explains how to do all this Jan 11 12:38:07 two things on it Jan 11 12:38:19 Agamemnus: you have to incentivise kids (or the parent supervising them) to do this Jan 11 12:38:22 think about that Jan 11 12:38:31 First of all, I need to get google sign-in working for individual images Jan 11 12:38:32 before woryinh about how you are implementing the backend Jan 11 12:38:47 monod if its not simply one click away no one is going to do it forfree Jan 11 12:38:58 monod left Jan 11 12:39:02 oh Jan 11 12:39:34 oh facebook might be good Jan 11 12:39:45 then again kids are getting bored of facebook Jan 11 12:39:45 lasserix: not yet i had to let the dog outside i wll read it now Jan 11 12:39:51 second, .. well, I sent everyone a push notification about the website, and no one used it Jan 11 12:39:57 fanno well read it first before asking for more help Jan 11 12:40:08 yeah cause everyone hates push notifications Jan 11 12:40:25 Again, think about the average user Jan 11 12:40:28 not programmers Jan 11 12:40:29 espicially some kid withnear add who is playinh a game, they will just dismiss that s..t in seconds and never ever even blink about it Jan 11 12:40:36 yeah i am Jan 11 12:40:46 my mother didn't even know what a push notification is until a few days ago Jan 11 12:40:56 you have kids who have zero attention span you think they are going to put up with a push notification interrupting their game play? Jan 11 12:41:04 yeah she does, she doesn't know what its called Jan 11 12:41:06 I see Jan 11 12:41:19 no, she doesn't. Jan 11 12:41:29 yeah she does, has she ever got an email? Jan 11 12:41:33 that is a push notification Jan 11 12:41:47 ever plug her phone into the computer? again push notification Jan 11 12:41:59 That's a little extreme.. Jan 11 12:42:02 Agamemnus: probably fb is your best angle Jan 11 12:42:15 I see. Well, maybe. Jan 11 12:42:17 that's what it is ~technically Jan 11 12:42:33 But I really need to know what actually works so I will wait for some downvotes first. Jan 11 12:42:42 Implementing shit isn't a walk in the park. Jan 11 12:42:51 well maybe for you... Jan 11 12:43:00 for anyone... Jan 11 12:43:01 but again, think about your target audience Jan 11 12:43:14 Shit man, I need to set up Google Analytics Jan 11 12:43:21 you probably have kids age 4-8 playing this? Jan 11 12:43:22 But it's just broken and I can't seem to get it working Jan 11 12:43:24 lasserix: thanks =) Jan 11 12:43:36 your biggest user base is kids 4-8 Jan 11 12:43:38 that's not really my target audience Jan 11 12:43:46 you have a jungle jigsaw game Jan 11 12:43:51 who do you think is playing this? Jan 11 12:43:52 not jungle Jan 11 12:43:53 safari Jan 11 12:43:59 ooooo Jan 11 12:44:02 my mistake! Jan 11 12:44:09 that changes everything! Jan 11 12:44:14 :X Jan 11 12:44:16 seriousily, who do you think plays this? Jan 11 12:44:20 teenagers? no. Jan 11 12:44:22 adults? no. Jan 11 12:44:26 it's really not my target audience. Jan 11 12:44:29 kids? no. Jan 11 12:44:30 but yes, adults Jan 11 12:44:32 :P Jan 11 12:44:35 not toddlers Jan 11 12:44:39 not even kids, children Jan 11 12:44:43 like i said 4-8 Jan 11 12:44:44 nope Jan 11 12:44:51 i can see my 7 year old niece playing this Jan 11 12:45:01 but i can't see my 11 nephew playing this Jan 11 12:45:02 Damn. Jan 11 12:45:11 But you can see yourself playing it. Jan 11 12:45:12 its a safar jigsaw puzzle! Jan 11 12:45:13 In 10 years. Jan 11 12:45:13 no Jan 11 12:45:19 Yep. Jan 11 12:45:25 its a cartoon based safari jigsaw Jan 11 12:45:31 Photo and artwork Jan 11 12:45:34 if you go to toys r us they have the same thing in physical form Jan 11 12:45:39 Based on multi-dozen-year veterans Jan 11 12:45:43 drawing things... Jan 11 12:45:43 for ages 4 and up Jan 11 12:45:49 ,_, Jan 11 12:45:57 Perhaps I need to add blood Jan 11 12:46:06 its a jigsaw puzzle man Jan 11 12:46:13 a simple jigsaw puzzle at that Jan 11 12:46:15 that would make it a hunting game... Jan 11 12:46:21 what you have like 20 pieces total? Jan 11 12:46:22 it is not a simple jigsaw puzzle! Jan 11 12:46:28 that's just Easy mode Jan 11 12:46:38 Insane has 200+ Jan 11 12:46:38 sorry, its a simple safari adventure Jan 11 12:46:53 maybe if you made the animals have sounds that triggered Jan 11 12:47:05 triggered what? Jan 11 12:47:09 you should just really target the 4-8 year olds, parents will buy that for their kids Jan 11 12:47:18 that market is flooded Jan 11 12:47:24 there's good money in "education/safe recreational content/games" for kids Jan 11 12:47:34 well who is are you targeting it at? Jan 11 12:47:42 unless the safari has amazonian nymphos Jan 11 12:47:43 Like I said. Adults Jan 11 12:47:46 well Jan 11 12:47:48 unless the safari has amazonian nymphos Jan 11 12:47:53 you are deluded Jan 11 12:47:59 in thinking this will be a hit with adults Jan 11 12:48:01 not all adults need naked ladies in their jigsaws Jan 11 12:48:13 no they dont, they just need an extra chromosome Jan 11 12:48:31 I see Jan 11 12:48:33 Agamemnus: how many downloads/active installs do you have? Jan 11 12:48:50 Leeds, I purchased most of my downloads Jan 11 12:49:02 I'd say on a good day 30% come from search Jan 11 12:49:19 I think today I have almost 5,000 Jan 11 12:49:28 downloads or installs? Jan 11 12:49:30 or users? Jan 11 12:49:44 5000 installs/downloads (same thing) Jan 11 12:49:51 not the same thing at all Jan 11 12:49:57 active installs, maybe 1600. Jan 11 12:50:09 an install happens after a download Jan 11 12:50:25 lets see Jan 11 12:50:27 About 40% of those 1600 users are up-to-date. Jan 11 12:50:30 maybe i am missing something Jan 11 12:50:43 or has television really destroyed the average iq of our global population Jan 11 12:51:33 agan why can't you enable sharing if you force me to use my g+ to sign into the game? Jan 11 12:51:55 I don't have G+ in the game. Jan 11 12:51:57 lasserix: don't forget that Agamemnus isn't working on a native app... Jan 11 12:51:59 i like the dancing frogs Jan 11 12:52:07 aga aren't you flying... ? Jan 11 12:52:11 Well, I had G+. Jan 11 12:52:14 But I removed it. Jan 11 12:52:17 it forced me to log in Jan 11 12:52:18 Now it's just Google Jan 11 12:52:20 i just downloaded it Jan 11 12:52:27 it forced me to log into my g+ Jan 11 12:52:28 That's not G+, it's Google. Jan 11 12:52:53 what makes this "advanced"? Jan 11 12:52:56 G+ has a very long 3-button-press permission screen Jan 11 12:53:09 This is only one button press for basic authentication Jan 11 12:53:17 There are a lot of features Jan 11 12:53:28 Check out the tips! Jan 11 12:53:38 In the Help section Jan 11 12:53:42 After about the 3rd page Jan 11 12:53:46 They are not labeled (yet). Jan 11 12:54:03 You can zoom in. It's well-calibrated Jan 11 12:54:15 You can also increase the resolution, one of the first tips Jan 11 12:54:26 yeah that's what it made me go through Jan 11 12:54:50 I got a 1-star rating from a user who either had no memory or something totally messed up on their phone or couldn't solve an Easy jigsaw Jan 11 12:55:04 i will admit its well done, great job Jan 11 12:55:07 I decreased the res to handle users with low memory Jan 11 12:55:08 lasserix> http://www.androiddesignpatterns.com/2013/01/inner-class-handler-memory-leak.html - I did not know this. Bad Chainfire. I use this a lot, I'm afraid I don't fully grasp the solution Jan 11 12:55:09 but seriousily is this not for kids? Jan 11 12:55:28 Chainfire: glad you know now Jan 11 12:55:29 It could be, but the point is that I want this to be for casual gamers, not kids Jan 11 12:55:41 My only problem is that I don't have addiction built-in. Jan 11 12:55:51 Chainfire: note that WeakReference on activity isn't always accurate, but does work Jan 11 12:55:57 Many people will actually binge-play it. Jan 11 12:56:01 But it's not addictive. Jan 11 12:56:10 lasserix> a lot of my activities have a "private Handler handler = new Handler();", this alone is enough for a leak? wouldn't it be garbage collected correctly after the last posted runnable (or message/whatever) is processed? Jan 11 12:56:30 lasserix: you can also, for example, move a piece while moving the screen with another finger, while zoomed in. Jan 11 12:56:32 (note that I do use WeakReference's all over the place for contexts, I'm just wondering about this specific Handler example) Jan 11 12:56:38 Chainfire: that's fine, its when you subclass to handle messages Jan 11 12:56:49 And of course, the piece shapes. No other jigsaw has shapes like mine. Jan 11 12:57:12 I just want to take it one step at a time, but making it profitable is really eluding me right now. Jan 11 12:57:14 lasserix> because if you subclass it like in the example, it creates a new non-static inner class? Jan 11 12:57:32 yeah if it was non-static it will hold enclosing instance of the activity Jan 11 12:57:54 ah, gotcha Jan 11 12:57:57 as a variable, just to say post messages or whatever, it'll get gc'd with the activity since it's not holding an enclosing reference Jan 11 12:58:32 great, seems I don't have an issue anywhere then. thanks for the lesson! :) Jan 11 12:58:36 Agamemnus: that's because you've made the perfect kids game but seem to think adults will pay for this as a kind of entertainment Jan 11 12:58:44 :( Jan 11 12:58:59 Chainfire: glad i could help someone as productive as you Jan 11 12:59:19 I am making back about 10-25% of my spend on ads. Jan 11 12:59:22 Agamemnus: i am just cynical, im sure there is a percentage of adults who would pay Jan 11 12:59:35 but seriosily i just see a kids game Jan 11 12:59:43 lasserix, would you mind trying the "Tell a Friend" feature, just to make sure it's working? You can email yourself, that's fine. Jan 11 12:59:46 its like the perfect kids game Jan 11 13:00:02 espicially if you added the animal names and some random facts that popup while you play Jan 11 13:00:20 then it's children's educational recreational software Jan 11 13:00:23 the animal names appear right at the start Jan 11 13:00:37 where is the tell a friend? Jan 11 13:00:40 Agamemnus: ads are absolutely 100% a mug's game, unless you're running freemium Jan 11 13:00:47 up top in the level selection screen Jan 11 13:00:55 Leeds what's that mean? Jan 11 13:01:04 was about to ask the same thing Jan 11 13:01:28 I noticed a lot of games in the top list of "animal jigsaw" game their ads. Jan 11 13:01:28 Agamemnus: where is it? Jan 11 13:01:36 Level selection screen. Jan 11 13:01:41 See the changing text? Jan 11 13:01:54 unless you've got massive volume, or constant incoming revenue, you're never going to make a profit paying for ads Jan 11 13:02:18 They will place ads .5 seconds after the main menu opens. Jan 11 13:02:28 Or they place ads next to control buttons. Jan 11 13:02:31 Leeds you mean paying for ads as in to market your ap? Jan 11 13:02:42 Or they place ads after quitting the game... Jan 11 13:02:44 lasserix: I thought that's what Agamemnus meant Jan 11 13:02:52 Agamemnus: umm the lack of a back is very anoying Jan 11 13:02:53 also Jan 11 13:03:03 What do you mean? Jan 11 13:03:05 i managed to open my contacts Jan 11 13:03:10 i selected that Jan 11 13:03:11 You can use your phone's back button Jan 11 13:03:14 I see Jan 11 13:03:17 Ok, so it works Jan 11 13:03:22 no it doesn't Jan 11 13:03:24 well, for most things* Jan 11 13:03:26 i got there by Jan 11 13:03:31 it doesn't work? Jan 11 13:03:35 oh okay i see now Jan 11 13:03:38 it wasn't changing Jan 11 13:03:47 what are you seeing? Jan 11 13:03:50 What wasn't changing? Jan 11 13:03:59 it says "Pick a puzzle to create the challenge with" but i accidently clicked into it Jan 11 13:04:07 and had no idea wtf that meant or why my contacts popped up Jan 11 13:04:19 also how do i go back from that screen? Jan 11 13:04:49 There's no back button functionality there at the moment... you'll just have to email yourself... MOUAHAHAHAHA.... or ... press the top button again. Jan 11 13:05:07 Agamemnus: not to hurt your feelings, but i just would personally be slightly embarrased to send this to any of my friends Jan 11 13:05:15 ahh okay Jan 11 13:05:19 I think that might be a problem, yeah. Jan 11 13:05:38 maybe i should just make a new game with a different theme Jan 11 13:05:41 yeah Jan 11 13:05:47 naked woman ofthe jungle Jan 11 13:05:51 No Jan 11 13:05:52 watch, it will sell. Jan 11 13:05:54 Second best things Jan 11 13:05:56 thing* Jan 11 13:06:02 Warplanes, tanks, etc. Jan 11 13:06:15 No tokens though Jan 11 13:06:20 That shit takes absolutely forever Jan 11 13:06:21 but is it going to be another jigsaw puzzle? Jan 11 13:06:28 As well as coloring the levels Jan 11 13:06:40 Each level has a text and outline color... Jan 11 13:06:47 Yes, another jigsaw. Jan 11 13:06:50 your fundemental misperception isthat you can make money selling cartoonish jigsaw puzzles to adults Jan 11 13:06:57 *misconception Jan 11 13:07:02 You're probably right. Jan 11 13:07:08 unless they involve naked women. Jan 11 13:07:12 or near-naked women Jan 11 13:07:23 or possibly if its weed Jan 11 13:07:26 no joke Jan 11 13:07:40 i can see stoners paying for a jigsaw puzzle where they arrange pictures of marijuana Jan 11 13:07:44 :P Jan 11 13:08:04 Agamemnus: tho it is really well done, nice animations sounds set up Jan 11 13:08:14 and user interaction too Jan 11 13:08:19 that's why i was saying target kids Jan 11 13:08:27 not kids then Jan 11 13:08:28 parents Jan 11 13:08:28 make it slightly more education add fun facts, more sounds Jan 11 13:08:31 kids don't have money Jan 11 13:08:32 yeah that's what i mean Jan 11 13:08:43 THEY would tell other parents Jan 11 13:08:47 I tried a lot of different ad networks Jan 11 13:08:59 Haven't used Chartboost yet. Jan 11 13:08:59 and if they're kids got gems for their parents sharing it other parents that would be cool too Jan 11 13:09:11 Ok. Jan 11 13:09:18 You gave me some ideas. Jan 11 13:09:20 add fun facts, and like maybe a gifof the animal Jan 11 13:09:30 when you win, right? like a vide of a lion roaring Jan 11 13:09:35 First thing I'm going to do is get that goddamn google analytics function properly Jan 11 13:09:38 or a frog sticking its tongue out Jan 11 13:09:43 I see Jan 11 13:09:44 Ok Jan 11 13:09:52 with a fact about how long a tongue of a frog is in comparison to its body Jan 11 13:09:59 The only problem is Jan 11 13:09:59 or how much a lion sleeps per day ( 20 hours) Jan 11 13:10:14 I'm deathly afraid of violating image copyright shit Jan 11 13:10:24 So if I have videos that has to come from youtube Jan 11 13:10:41 Like, it's a browser, so I can just open it in an iframe. Jan 11 13:10:41 just look on the open internet library thing Jan 11 13:10:52 But I'm afraid it'll get shit-canned Jan 11 13:10:56 im sure there's plenty of liscence free nature documentary Jan 11 13:11:06 if there is, i can't find it Jan 11 13:11:10 it's all paywalled Jan 11 13:11:22 how much actual money are you thinking you could make from this? Jan 11 13:11:34 More than I put in, that's a good start. Jan 11 13:11:49 I want to make $10K a month :DDD Jan 11 13:11:55 hopefully you haven't put in more than a few $10s then Jan 11 13:12:23 https://archive.org/details/NyalaWE-ManyeletiLionGoesForaDrink_0 Jan 11 13:12:26 look its free Jan 11 13:12:38 that's black and white scratchy stuff Jan 11 13:12:41 10k a month ha ha ha Jan 11 13:12:46 good for a few 1 star ratings Jan 11 13:12:48 yeah its nature documentary Jan 11 13:12:52 you mix it up Jan 11 13:12:55 kids will like it Jan 11 13:12:59 its called night vision Jan 11 13:13:14 black and white scratchy stuff Jan 11 13:13:16 NOPE... Jan 11 13:13:18 kids will like it Jan 11 13:13:23 you are missing the point man Jan 11 13:13:26 maybe Jan 11 13:13:29 i don't know Jan 11 13:13:32 kids are generous they have imagination Jan 11 13:13:33 possible Jan 11 13:13:42 but anyways i just saying look what i found in like 1.2 seconds Jan 11 13:13:46 im sure there is more Jan 11 13:13:59 but i have spent far too much time helping you with this pipe dream Jan 11 13:14:05 good luck! Jan 11 13:14:06 Ok, ok, thanks. Jan 11 13:14:24 * Agamemnus goes back to smoking his pipe Jan 11 13:14:31 later! Jan 11 13:14:42 hehe Jan 11 13:14:47 seriousily its nicely done Jan 11 13:14:52 just wrong target audience Jan 11 13:14:59 (you should rate it btw..) Jan 11 13:15:12 yeah, i will set up analytics asap Jan 11 13:15:19 then see how i can get parents involved Jan 11 13:26:17 Hi Jan 11 13:26:36 Any android developers here from Europe? Jan 11 13:27:17 O.o Jan 11 13:27:19 bunch. Jan 11 13:28:51 Contact me if you are looking for an amazing opportunity working in an incubator project in Spain -- Only experienced android developers! Jan 11 13:35:46 * Mavrik hugs SimonVT. Jan 11 13:50:44 hi, i have a recyclerview and the first item in the list is a header, so it's different to the other items Jan 11 13:51:00 i want to keep track of this view, because when it's on the screen, i want to do certain actions Jan 11 13:51:11 how do I keep track of it without doing findViewById all the time? Jan 11 13:51:30 because when it's off the screen, you lose the reference to it Jan 11 13:53:04 o Jan 11 13:53:20 There are callbacks in the adapter for when a view is attached/detached, you can probably use those Jan 11 13:56:11 nice thanks Jan 11 14:21:30 callbacks worked! thanks Jan 11 14:23:02 lasserix: thanks once again for your guidance. the week referance seems to work great. and moving the classes outside the main class makes it much more easy to look over the code as it is not to crowded. !!! +1 to you sir Jan 11 14:24:46 FutureTask Jan 11 14:30:17 shmoon_: was that for me ? is FutureTask supirior to Handler ?, i just did a quick search dont seem to be any articles comparing the two Jan 11 14:33:32 can anyone suggest some good reading on how to implement 2D GUIs for android games so that they look ok with all the variations of screen sizes? Jan 11 14:34:02 my game is in opengl.. Jan 11 15:10:40 fanno: sorry nope, typed by mistake Jan 11 15:18:56 How do I use my custom layout for actionbar while using appcompat? Jan 11 15:49:47 Can't I use setText on EditText when it has focus? Or could you think of any other reason why setText does not have any effects? Jan 11 15:56:04 Hello, does anyone know when will be released the fix for the issue 77982 (EditText padding via xml)? Jan 11 15:57:02 sup Jan 11 15:57:09 any channel where we can ask for pay work? Jan 11 15:57:13 for droid devs Jan 11 16:01:32 DelphiWorld channel? Why? Take a look at Stack Overflow Careers. Jan 11 16:01:38 hello. I am new to android development (and java development as a whole). I have experience in other programming languages. First, I just installed android studio. Should I use something else? Jan 11 16:01:54 atowo: tel me where? Jan 11 16:03:19 DelphiWorld http://careers.stackoverflow.com/ you can find an open job near you! Jan 11 16:04:27 atowo: no, i'm looking for a developer Jan 11 16:05:01 nvlbg no, you need only the android sdk but Android Studio will do the job for you Jan 11 16:05:24 atowo: yeah, I know. I meant if there is a better IDE or something :) Jan 11 16:05:38 DelphiWorld sorry, I don't know... Jan 11 16:05:47 atowo: oki, thx! Jan 11 16:08:08 nvlbg a lot of people use Eclipse. I used Eclipse too, but now Android Studio is stable so in my opinion is the better choice, in fact I'm using it for my new projects. Jan 11 16:08:48 cool Jan 11 16:11:37 Ok, now I want to use a library from github. How do I do that? Jan 11 16:12:20 nvlbg are you using the last Android Studio version? Jan 11 16:12:33 I think so. I just downloaded it from the site. Jan 11 16:12:54 1.0.1 Jan 11 16:16:04 It's not the last version, you just need to copy the libraries to the folder libs of your project (/yourproject/app/libs) Jan 11 16:16:49 atowo: strange question thought: android studio is SWT or swing based? Jan 11 16:19:35 DelphiWorld I think it's swing based, but I'm not sure about it... Jan 11 16:19:47 atowo: you killed me so ;( Jan 11 16:19:55 crap, swing is shitty for blind people Jan 11 16:20:37 nvlbg by the way update your Android Studio (Help -> Check for updates) Jan 11 16:21:08 thanks :) Jan 11 16:24:33 DelphiWorld I like Android Studio because it is more stable than Eclipse, you know, I switch to Android Studio when my work environment with eclipse has broken, and it is not uncommon... Jan 11 16:25:02 atowo: got you Jan 11 16:27:18 hello Jan 11 16:30:49 By the way if anyone knows when will be released the fix for the issue 77982 (EditText padding via xml) please let me know... Jan 11 16:31:20 wow. my pc just did blue screen of death. I guess it is a sign I shouldn't do android dev :D Jan 11 16:32:01 suppose i want to have a database named students.db , should i define the tables (for creating them..) in my SUB_SQLiteOpenHelper? like one inner class per table and so . . . Jan 11 16:32:24 use greendao Jan 11 16:32:33 nvlbg or maybe it's a sign you shouldn't use windows :D Jan 11 16:32:51 leave windows, come to ubuntu world Jan 11 16:32:55 that too. I usually use both ubuntu and win. Jan 11 16:32:57 nvlbg Jan 11 16:33:08 then say goodbye to your pc Jan 11 16:33:32 nvlbg: android studio font on ubuntu is crap Jan 11 16:34:06 i'm using idea by the way Jan 11 16:34:45 back to my question, database schema goes into the derived class from SQLiteOpenHelper, right? Jan 11 16:36:07 Hi, I have a view which is height 56dp. I need to get the height of it in Java. Jan 11 16:36:24 getHeight works, but I have to wait for the views to get made Jan 11 16:37:00 so I used float px = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, getResources().getDisplayMetrics()); Jan 11 16:37:06 but I get a different value to getHeight Jan 11 16:37:07 levo: yes, of course. Jan 11 16:37:19 levo: http://www.vogella.com/tutorials/AndroidSQLite/article.html Jan 11 16:37:22 i've tried a couple of solutions on this page http://stackoverflow.com/questions/4605527/converting-pixels-to-dp Jan 11 16:37:32 but I get different values compared to getHeight() Jan 11 16:37:40 I can't work out what I'm doing wrong. Jan 11 16:37:56 (I need the height in pixels) Jan 11 16:45:55 Nevermind Jan 11 16:46:12 Figured it out Jan 11 16:46:15 Being dumb Jan 11 16:49:23 http://code.google.com/p/android/issues/list is a spam box. i didn't expected this type of ridiculous spams from India. Jan 11 16:50:02 filled with black magic and sex industry spam Jan 11 16:50:33 Almost thought that was a reference to me ^.- Jan 11 16:51:15 (confirm: am i on right URL?) Jan 11 16:51:50 Escort services confirmed. Jan 11 16:52:12 Yes, it's a spam box since December 30... Jan 11 16:53:39 im trying to understand why Android issue? (any psychological reason?) Jan 11 16:54:06 An attempt to force official google dev activity? Jan 11 16:56:02 Sindustry, dont think so. babaji need inbuild black magic app in android to connect to customer? lol Jan 11 16:58:44 "all problum sulution baba ji" lol Jan 11 17:02:04 Could just be a marketing advertisement attempt Jan 11 17:02:44 Businesses do what they can these days for advertising these days. Viral campaigns, sex-tapes etc. Jan 11 17:05:30 kuldeephaka does seem like an odd place to spam though Jan 11 17:06:13 Android (and Google) let me down recently... Jan 11 17:07:31 In what ways were your expectations unmet atowo? Jan 11 17:10:30 Hey people :) Jan 11 17:10:38 Hello Jan 11 17:10:39 Please, with NDK, I'm trying to get the "descriptor" field of an FileDescriptor Jan 11 17:10:48 But this line crashes : jfieldID fdClassDescriptorFieldID = env->GetFieldID(fdClass, "descriptor", "I"); Jan 11 17:11:01 (env is my JEnv*, fdClass my FileDescriptor Class) Jan 11 17:11:33 Who here can help me with a wizard like navigation? Jan 11 17:11:52 Here his the code : http://pastebin.com/dyKaGN6e Jan 11 17:12:00 is the code* Jan 11 17:16:57 Sindustry a lot of bugs since I switched to api 21... the padding in EditText that does not work via xml, and the ActionBar to fix, the new file selection not backwards compatible... Jan 11 17:18:40 Sounds very sloppy indeed Jan 11 17:18:56 Ignoring bugs for deadlines? Jan 11 17:19:46 That + the "old must make way for new" philosophy probably Jan 11 17:21:49 How to ignore these bugs? Jan 11 17:23:06 You can only compile with an old api, but I don't think that is a good thing. Jan 11 17:23:41 on a nexus7 2013... how do you switch off power saving mode? Jan 11 17:23:56 Hum...... anyone knows how to get a file descriptor (the int value) from a FileDescriptor ? Jan 11 17:24:38 Or change the code, but in the case of the padding bug you can only write useless code! Jan 11 17:32:47 I'm still too new to android dev to offer advice there atowo Jan 11 17:33:15 But my brain says "replace the ap 21 bugged code with working code from api 20" if it's compatible? Jan 11 17:46:19 Sindustry the problem is that, it is not... Jan 11 17:52:12 Hey guys. How should I add a library from gihub into my project. I was told to copy its files in the libs folder. What files should I copy exactly? Jan 11 17:52:35 Which library? Jan 11 17:52:43 depends Jan 11 17:52:50 https://github.com/karan/jReddit Jan 11 17:53:28 add compile 'com.github.jreddit:jreddit:1.0.2' in build.gradle file Jan 11 17:53:48 That would be the easiest way. Jan 11 17:54:08 ok, but I seem to have 2 build.gradle files Jan 11 17:54:38 one is (Project: ExampleProject) the other (Module:app) Jan 11 17:54:43 Project not module Jan 11 17:55:04 Has anyone here used the GreenDroid library? Jan 11 17:55:22 https://github.com/cyrilmottier/GreenDroid Jan 11 17:55:41 Any reviews of it? Is the library still relevant? Jan 11 17:55:45 gdrc: I should copy the lib in the libs folder right? Jan 11 17:55:57 liquidmetal: seems OLD Jan 11 17:56:30 gdrc, yes - it looks pretty old. But I'm not sure if the functionality it provides is available in Android natively now or not Jan 11 17:56:36 nvlbg: for what? just add that line Jan 11 17:56:47 liquidmetal: The github page says it's deprecated so I would probably avoid unless necessary. Jan 11 17:57:39 Radther, I found a project that uses this library - I want to move the project to the native UIs now - but I'm not sure if it's be a huge amount of work or not Jan 11 17:58:32 gdrc: I add the line and it breaks the project Jan 11 17:58:54 Gradle DSL method not found: 'compile()' Jan 11 17:58:56 Heyo, I need some help with an app i'm trying to make Jan 11 17:59:29 liquidmetal: I think moving over to native is probably recommended but I guess it's up to you how much work you want to do. Jan 11 17:59:36 nvlbg: add it -> dependencies { /*here*/ } Jan 11 17:59:37 I want a wizard style navigation [Scan Barcode]->[Enter Details]->[Take Photo] Jan 11 18:00:15 But i have no clue where to start, also, how the hell do most developers build apps that look way better than default android? Jan 11 18:00:32 ReScO, they get paid accordingly Jan 11 18:00:44 ReScO: By spending a lot of time messing with the XML. Jan 11 18:01:10 Radther, I thought it was by drawing everything themselves Jan 11 18:01:22 I need a UI designer for the main app i'm making Jan 11 18:01:23 As for the app, it could be easily done with 3 separate activities. Jan 11 18:01:45 gdrc: like this? http://pastebin.com/ptr7pjDw Jan 11 18:01:45 I currently have three tabs Jan 11 18:01:47 liquidmetal: A lot of it can be done with XML if you are willing to spend the time. Jan 11 18:02:21 nvlbg: that's not the correct file. Jan 11 18:03:00 actually I just realized that. thanks, it seems to work :) Jan 11 18:03:28 gdrc: I think you told him the wrong one lol. Jan 11 18:04:03 it's the module one :P Jan 11 18:05:11 Radther: as far as fragments go, i have this PlaceholderFragment in my main class, how can i use my own fragments instead? Jan 11 18:05:39 ReScO: The placeholder fragment can be repurposed for you want. Jan 11 18:05:39 because the barcode scanner has a Fragment library, and i bet the camera does too, so i preferably don't want to leave my app... Jan 11 18:06:37 In the Activity you can add a FrameLayout which you can fill with any fragment you want. Jan 11 18:09:12 Radther: i used the Project creation wizard to select that tabbed SwipeView template Jan 11 18:10:13 ReScO: If you are trying to make a wizard type setup that's probably not the one to use, unless you want the users to swipe between the stages. Jan 11 18:13:11 Radther: i want myself to be able to do that, to correct things :P Jan 11 18:13:31 ReScO: Ok then. Jan 11 18:13:39 And i really need a UI Designer Jan 11 18:14:05 ReScO: How detailed a UI designer are you needing? Jan 11 18:14:45 Are you just looking for some mockups or someone to actually make the UIs in XML? Jan 11 18:15:47 Radther: the latter, it's for an app i'm building Jan 11 18:16:16 But i need it to look good and professional Jan 11 18:16:32 And i cannot make something look professional Jan 11 18:16:34 :P Jan 11 18:16:56 ReScO: You will probably need to part with some money then to pay a designer. Jan 11 18:19:41 is there a basic reason why i can't hit 60fps while rendering a quad? Jan 11 18:21:37 how do you render it Jan 11 18:23:12 opengl? Jan 11 18:23:15 Radther: where can i find them? Jan 11 18:23:17 what kind of details are you after? Jan 11 18:23:29 well could have been opengl or surfaceview Jan 11 18:23:41 native opengl Jan 11 18:23:44 native activity Jan 11 18:24:03 how many fps do you get? Jan 11 18:24:43 ReScO: I'm not really sure tbh. There was a post recently on the android dev subreddit I think. Jan 11 18:24:44 android is capped at 60 fps. but you should be able to nearly hit that with only a quad Jan 11 18:25:03 ReScO: Found it. http://www.reddit.com/r/androiddev/comments/2rmody/how_do_i_find_a_graphic_designer_with_android/ Jan 11 18:25:07 about 30 Jan 11 18:25:11 0.03333ms Jan 11 18:25:26 about half of 60fps Jan 11 18:26:11 hi Jan 11 18:26:15 eumlator or real device? Jan 11 18:26:16 pippijn: Hey! Jan 11 18:30:55 real device Jan 11 18:30:57 nexu 7 Jan 11 18:31:55 i've also tried a release build which didnt improve Jan 11 18:31:55 nvlbg, have you tried adding local library projects? anytime I add more than one, I just get compile errors Jan 11 18:32:10 mh. then you must do something wrong. Jan 11 18:32:21 like what? Jan 11 18:32:26 allocating objects in render loop or sth like tat.. Jan 11 18:32:28 that* Jan 11 18:32:55 even if i was doing some memory allocation... i dont think that i'm gonna kill the framerate by that much Jan 11 18:33:30 i have an i5 with an hd4000 and i can run this full framerate with 10% of my cpu Jan 11 18:33:52 it's really not something that should be intense for a nexus 7 Jan 11 18:34:03 wait.. do you have hardware acceleration on? Jan 11 18:34:10 i believe so Jan 11 18:34:20 believe? Jan 11 18:34:28 im ceckin now Jan 11 18:34:35 did you enable it in your app or not Jan 11 18:35:13 it surprises me that i would need ot enable hardware acceleration for an opengl app... Jan 11 18:35:21 it's somewhat the idea Jan 11 18:35:42 i'd imagine i would have to disable it... but it should be enabled by default Jan 11 18:36:26 android manifest inside of your application tag: android:hardwareAccelerated="true" Jan 11 18:36:35 android:hardwareAccelerated="true" <-- from what i can read, this is for the built in android ui Jan 11 18:38:00 oh man, i can't install a library in like hours. This gradle thing is only complaining Jan 11 18:38:09 Why does system_server have a permanent TCP connection open to Google? Jan 11 18:38:22 I don't like this java world :( Jan 11 18:39:02 dTal maybe gcm ? Jan 11 18:40:35 http://www.npr.org/blogs/alltechconsidered/2015/01/10/376166180/forget-wearable-tech-people-really-want-better-batteries Jan 11 18:41:34 DrBenway, didnt do much with opengl yet. just test if its better with hardwareaccel Jan 11 18:53:31 Hi Jan 11 18:54:13 Anybody knows how to develop in android? Jan 11 18:54:22 * capella nope Jan 11 18:54:57 I think that g00s guy does Jan 11 18:54:59 g00s: It's CyanogenMod with no Google Apps Jan 11 18:55:13 LOL? Jan 11 18:56:17 auto-sync? google account / mail? Jan 11 18:59:23 dang I hate finding other bugs while fixing the first one :-/ Jan 11 19:00:40 @dev14 start by reading a book, get an android device and downloading android studio Jan 11 19:01:12 capella: http://imgur.com/r/funny/HTisMpC Jan 11 19:02:00 HOw to don't compress file ? Jan 11 19:02:10 my files on assets folder are compressed Jan 11 19:02:16 How to don't compressed them ? Jan 11 19:02:29 con't compress* Jan 11 19:02:32 don't* Jan 11 19:03:23 radther: *that* feeling :p Jan 11 19:04:06 Gaulois94, http://ponystyle.com/blog/2010/03/26/dealing-with-asset-compression-in-android-apps/ Jan 11 19:04:29 1 sec of google Jan 11 19:07:10 lmgtfy \o Jan 11 19:08:58 question! could Build.VERSION.SDK_INT cause crashes on rooted devices? Jan 11 19:09:25 instead Build.VERSION.RELEASE works and .SDK Jan 11 19:09:28 nodroid: Why do you think it would? Jan 11 19:09:34 i tried it Jan 11 19:09:42 and my app crashed Jan 11 19:09:54 danijoo: I use ant Jan 11 19:09:59 sorry, I have found this link Jan 11 19:10:07 no idea about ant Jan 11 19:10:13 but when i switched to .RELEASE or .SDK it worked Jan 11 19:10:15 nobody uses it anymore ^^ Jan 11 19:10:46 nodroid: http://imgur.com/jacoj Jan 11 19:11:12 :D Jan 11 19:11:20 brb Jan 11 19:12:54 so how do I package an APK with Linux? Jan 11 19:13:31 same way as in windows Jan 11 19:13:39 the same way as any other os Jan 11 19:15:34 so, gradle? Jan 11 19:16:00 sry, but I'm relatively new to Android dev :D only did C Jan 11 19:16:06 ..++ projects in the past Jan 11 19:16:10 read the docs then. Jan 11 19:16:29 SimonVT http://pastebin.com/MnvhUP7C Jan 11 19:16:59 yeah, just found it. Ty. http://developer.android.com/tools/building/building-cmdline.html Jan 11 19:17:16 why no IDE? Jan 11 19:18:06 I already have an IDE, Geany.org Jan 11 19:18:41 yeah but I mean an IDE that is suitable for android :p Jan 11 19:19:40 can anyone explain the exception??? Jan 11 19:20:12 nodroid, not without the corresponding code Jan 11 19:20:32 mSdkVer = (TextView) findViewById(R.id.sdk_ver); Jan 11 19:20:32 mSdkVer.setText(Build.VERSION.SDK_INT); Jan 11 19:20:37 simple as that Jan 11 19:21:09 a textview defined in layout with id sdk_ver and accessed in code Jan 11 19:21:38 the problem is that to put an int into setText() Jan 11 19:21:44 set Text takes a string OR a resource ID Jan 11 19:21:49 nodroid, you're dumb Jan 11 19:21:59 if you give it an int, it thinks its a resource id and wants to get the string from it Jan 11 19:22:00 the reason? Jan 11 19:22:17 see danijoo Jan 11 19:22:28 do: setText(Integer.toString(Build.VERSION.SDK_INT)) Jan 11 19:22:39 so i could cast a string? Jan 11 19:22:48 replace could with must Jan 11 19:22:58 oh Jan 11 19:24:26 danijoo: why not String.valueOf(Build.VERSION.SDK_INT))? Jan 11 19:24:56 thepoosh, nothing against that. Jan 11 19:25:03 matter of taste Jan 11 19:25:13 seems like better for readability Jan 11 19:25:22 thats your opinion Jan 11 19:29:56 any other options for the cast?? pressing the . after SDK.INT gives me a cast option with some parenthesis Jan 11 19:31:50 the usual ways you have in java.. Jan 11 19:32:06 ok thanks Jan 11 19:32:21 its just an int and you have to make a string of it Jan 11 19:32:23 or a charsequence Jan 11 19:41:43 Hey there! I'm trying to use the recyclerView's ItemAnimator.ItemAnimatorFinishedListener to listen for the animation finish. I start the item animation by calling notifyItemMoved(). If i then do getItemAnimator().isRunning(listener) it immediately says that the animation has finished. Jan 11 19:42:04 how do i actually get the time the item stopped moving? Jan 11 19:42:18 or i mean a callback when the item stopped moving Jan 11 19:59:37 why the hell does SwipeViews have to be so hard, and Fragments too? Jan 11 20:01:19 Grrrrrrrrrr, how to disable the compression with ant and the build.xml ? I tried to modifiy the sdk build.xml by adding but it won't work Jan 11 20:09:15 What is wrong with this code http://pastebin.com/TjuniWbN It is attempting to load the currently logged in players profile image URL Jan 11 20:10:51 Could someone help me out with Fragments and SwipeView? Jan 11 20:12:28 http://pastie.org/private/ptprrortg8dgu5aragqnig this is what i currently have and was generated automatically, i removed the tabs and added that pagertitlestrip Jan 11 20:13:28 But i want to have a fragment with a barcode scanner in it, the second one is EditText stuffs, the third is taking a photo and the fourth is checking all data and submitting Jan 11 20:13:44 I have no clue what to do and the docs aren't exactly helpful Jan 11 20:17:41 ReScO, where is the problem? Jan 11 20:24:18 danijoo: i want to have my own fragments Jan 11 20:25:08 cant see a problem there ;) Jan 11 20:28:38 danijoo: and i have no clue how i should do that Jan 11 20:28:54 did you read the tutorials? Jan 11 20:29:21 yes.... Jan 11 20:29:32 what part did you not understand? Jan 11 20:29:35 I have no clue what to do and the docs aren't exactly helpful Jan 11 20:29:47 every part Jan 11 20:30:06 i've never understood fragments Jan 11 20:30:11 since the day they came out Jan 11 20:30:24 they're equal to horrific anal injuries. Jan 11 20:30:32 You cant expect us to explain it to you from scratch Jan 11 20:30:49 read some tutorials and come back with actual questions.. Jan 11 20:32:26 ReScO: I usually hate videos for specific technical topics, but strangely enough a YouTube video was the simplest Fragment introduction I found. Jan 11 20:32:38 why thank you for being so much help to me, a user who doesn't get fragments, has read the tutorials over and over, and still doesn't get it, so this user comes here and asks for help and gets walled. Jan 11 20:33:00 TacticalJoke: i'm trying to modify the android generated tabs example Jan 11 20:33:08 i've already removed the tabs Jan 11 20:33:26 but now i don't get where i should put the switch/case to return my own fragments Jan 11 20:34:18 What do you mean by "android generated tabs example"? Jan 11 20:34:55 ReScO, I want to build a car, but I don't understand. I've read the manuals. Please help me. Jan 11 20:35:27 TacticalJoke: Jan 11 20:35:50 http://pastie.org/private/ptprrortg8dgu5aragqnig this is what i currently have and was generated automatically Jan 11 20:37:10 Generally speaking, people don't learn efficiently by taking something that already works and modifying it slightly. Jan 11 20:37:20 If you want to figure that stuff out, start from a blank slate and write every line yourself. Jan 11 20:37:34 Interesting take on it Jan 11 20:37:52 Almost everything I learned in terms of programming, I did it exactly how you described is "not efficient". Jan 11 20:38:01 as* Jan 11 20:38:29 I'm with TacticalJoke on this one Jan 11 20:39:14 I won't argue with you guys but I just don't have this experience Jan 11 20:39:14 I don't like starting from a "blank slate". Jan 11 20:39:42 Yeah, I'm definitely in the "start from scratch" camp Jan 11 20:39:49 especially with Android and Java... FFS the thing is a patch of land mines. Jan 11 20:39:53 I find a bit of both helps me the most. Jan 11 20:41:05 I think a factor here is the difference between the size of you changes you make the size of the existing thing. If the existing thing is huge and the changes you make are tiny, you won't learn much. Jan 11 20:41:22 finishing someone else's wire frame or WIP can be instructive Jan 11 20:41:36 TacticalJoke: Hmm, maybe. Jan 11 20:41:49 But you'll at least learn how to open the file. D: Jan 11 20:41:54 (And "huge" doesn't necessarily mean lines of code. It can mean importance or something.) Jan 11 20:42:19 Resco, onpagechangelistener Jan 11 20:43:08 Actually, I would say that the factor here is learning vs building. If you just want to build something then starting from another code best might be ideal. But if you want to learn, then start from scratch Jan 11 20:43:29 Yeah, I'd definitely agree with that. Jan 11 20:44:07 I still don't agree. D: Jan 11 20:44:22 while (true) { agree(); Jan 11 20:44:25 Oops. :D Jan 11 20:44:34 Honestly, when we're working, we don't have to LEARN everything. Sometimes we can get away with just building it :) Jan 11 20:44:48 Sure! Jan 11 20:44:55 syntax error! :D Jan 11 20:45:23 I am really more of a builder. Jan 11 20:45:33 I learn because I HAVE to.. Jan 11 20:45:40 While building. Jan 11 20:46:24 If the building's floors are crooked, just take off 10% and try not to put any rolling balls on the floor while potential customers are visiting. Jan 11 20:47:29 Seriously... my parents and I went to see a condo in a multi-floor building... (this was the peak of the US real estate market and there was NOTHING on the market) Jan 11 20:47:45 And the fffffffffing floors were crooked. It was unreal. Jan 11 20:50:16 This goes to a number of interesting points. Like, why learn better method X when you can do it with method Y. And the floors aren't necessarily crooked, either... but that shit is so real in the non-programming world. Jan 11 20:51:44 (I'm going on a tangent. Stop me... ) A typical programmer wouldn't imagine making something and then showing or selling it when his "floors" are crooked, but there's no shame in the real world. Jan 11 20:53:32 I guess it depends on the goal. If the goal is to become an absolute expert in, for example, HTTP, it might be most efficient to write an entire HTTP client/server library using basic sockets. If the goal is to release an app that happens to use HTTP, it's probably best to use OkHttp and not worry (a huge amount) about implementation details. Jan 11 20:54:00 Ended up using rounding threshold for the algorithm Jan 11 20:57:19 ReScO: Probably not what you want to hear, but I recommend taking a step back and going through the first 10-15 chapters of this book. http://www.bignerdranch.com/we-write/android-programming.html Jan 11 20:57:42 It explains the concepts really well I found. Jan 11 20:58:21 Any good SVN client for mac? Jan 11 20:58:35 Why Subversion? Mercurial and Git are simply better. Jan 11 20:58:52 My repo only has SVN Jan 11 20:58:55 I can't use another one Jan 11 20:59:15 Also that aside. Can I link my SVN to Github? Jan 11 20:59:31 So changes to one repo automatically get pushed to github? Jan 11 20:59:42 AndreYonadam, Versions is pretty neat Jan 11 20:59:54 Mavrik: Yeah Its $$ though Jan 11 20:59:54 lol Jan 11 21:00:06 true Jan 11 21:00:19 It is great. Theres another one I remember it starts with a C Jan 11 21:00:21 Forgot Jan 11 21:00:22 anyway, usually it's easier to have Git and then push changes to SVN via git-svn than other way around. Jan 11 21:00:37 Mavrik: Do you think Versions is worth it? Jan 11 21:00:54 For 59$? Probably not. Jan 11 21:01:07 Getting rid of SVN is usually cheaper :) Jan 11 21:01:11 Mavrik: Can I use terminal to push clients? Jan 11 21:01:13 Mavrik: lol Jan 11 21:02:11 Mavrik: I wish I can use Git Jan 11 21:02:11 http://plugins.svn.wordpress.org/blog-authors/ Jan 11 21:02:23 I'm looking at a non gui client now Jan 11 21:03:21 I'm looking for a good open source project using Dagger 2 that I can study by taking a good look at it. Can you indicate any? Jan 11 21:03:23 git-svn would definitely be the way to go, imo Jan 11 21:09:21 renanferrari: there's a pull request on U2020 that switches it to Dagger 2 Jan 11 21:09:32 there's also a tiny sample Greg Kick Jan 11 21:09:53 renanferrari: https://github.com/JakeWharton/u2020/pull/42 https://github.com/gk5885/dagger-android-sample Jan 11 21:10:10 Hmm, is Dagger 2 considered "stable"? Jan 11 21:10:18 it runs Google Web Search Jan 11 21:10:24 so yes Jan 11 21:10:46 JakeWharton Nice! Thanks, Jake. Jan 11 21:10:46 So, when are you pushing to maven central? Jan 11 21:10:49 it's not API stable and might not have the best error messages. but it's functionally stable. Jan 11 21:10:56 !kick SimonVT Jan 11 21:11:41 So, next year? :p Jan 11 21:11:52 ;) Jan 11 21:12:23 JakeWharton, also the video professional in me is incredibly annoyed that Telecine doesn't do any telecining ;) Jan 11 21:13:06 no? I think it does if you squint at the definition Jan 11 21:13:42 "the process of transferring motion picture film into video" Jan 11 21:14:01 s/motion picture film/mobile screen pixels/ Jan 11 21:14:05 mhm :) Jan 11 21:14:22 Question about ButterKnife: I have an Activity containing a ListView with a header. Right now I'm using the convenience method `findById` to assign the header views, but I was wondering if it's possible to create a separate class to represent my listview header and inject its views the annotation way? Jan 11 21:15:23 finishingmove: yep. both work. Jan 11 21:15:31 and I've done both Jan 11 21:15:38 depends on how complicated your header view is I guess Jan 11 21:17:01 The header view contains quite a bit of views because I actually resorted to using the listview header as a work-around for having the whole listview-containing screen scrollable Jan 11 21:17:23 (since I can't use a listview inside a scrollview) Jan 11 21:17:55 so I think in this case it would be much better to extract it into a separate class Jan 11 21:18:04 yeah so I would just create a static class (like a view holder) and use view injection directly on that Jan 11 21:20:42 k, thanks :) Jan 11 21:22:03 i have a basic game engine with sprites in opengl C++. something that i'm noticing is that when the sprite move... they became jerky/shaky. this only seem to happen on android (not on linux or windows) Jan 11 21:22:12 any common problem that could be causing this? Jan 11 21:22:26 my frame rate is the same as when i run it on desktop Jan 11 21:22:44 hrrm Jan 11 21:22:57 DrBenway, what IS your framerate? Maybe you have a vsync issue? Jan 11 21:23:11 30 Jan 11 21:23:17 which is what the vsync is capped to Jan 11 21:23:44 (basically even if i let it run as fast as i can't... it never goes higher than 30 fps) Jan 11 21:23:51 if i switch off vsync, it caps at 60 Jan 11 21:25:57 anyone with experience ndk->sdl2? Jan 11 21:28:42 has anyone messed with JSON web tokens? Jan 11 21:30:21 How do you mean? Jan 11 21:45:56 Agamemnus http://www.intridea.com/blog/2013/11/7/json-web-token-the-useful-little-standard-you-haven-t-heard-about Jan 11 21:48:57 i am having a hard time googling what i want to do Jan 11 21:49:13 can you execute a method on intent without bringing your app up? Jan 11 21:49:29 like i want to put a notification in the shade on an intent Jan 11 21:49:34 but i dont want my app to pop up Jan 11 21:49:40 because the app doesnt have to be up Jan 11 21:50:29 Yes Jan 11 21:50:39 e.g. services and broadcasts have no UI Jan 11 21:50:57 and even an activity can start up and "do something" and immediately shut down, without showing any UI Jan 11 21:51:05 ok Jan 11 21:51:32 thanks Jan 11 21:55:46 If you wanted a subpackage for, say, adapters, would you name it 'adapter' or 'adapters'? (Perhaps it'll be a subpackage of a 'ui' package.) Jan 11 21:56:26 s/ package/ subpackage/ Jan 11 21:56:33 I call it 'adapter' Jan 11 21:56:50 K. Yeah, I was thinking of using singular. Seems more natural. Jan 11 21:57:27 I use plurals :/ Jan 11 21:58:06 Makes the most sense to me.. Like android.view, android.widget, .. Jan 11 22:05:00 What is wrong with this code? http://pastebin.com/TjuniWbN It is trying to retrieve the currently logged in users profile Image URL Jan 11 22:14:27 IM BAK \ ( ^_^)/ Jan 11 22:15:58 ruler501: without more details to go on, no-one is going to be able to help you Jan 11 22:16:32 JesusFreke what else do you need. The only other information I can think of adding is that the funciton is currently returning an empty string Jan 11 22:29:01 ruler501: per https://developers.google.com/games/services/cpp/api/group__ValueType#a80b2817efe4fd7dfe0a5b2bad6f561c6, "Player::Valid() must return true for this function to be usable." Jan 11 22:30:43 JesusFreke if it is returning an invalid player what can I do to get a valid player instance of the currently logged in user? Jan 11 22:30:58 no clue :) Jan 11 22:31:07 I'm not familiar with the games stuff at all. Jan 11 22:31:21 just trying to point you in the right direction Jan 11 22:32:47 you might want to check the status on the response Jan 11 22:33:49 If it's not a success status, the specific error status should give you more info on what went wrong Jan 11 22:39:42 Hi, I'm looking to develop an application. I was wondering is it possible for users that are logged in to have different user permissions. i.e. for a user with level 1 to send a push notification to all users level 2 via a calendar? Jan 11 22:39:59 calender* Jan 11 22:40:14 dough first time was right :P Jan 11 22:42:49 I say 'dough' in that context. :) Jan 11 22:44:46 Hey, does anyone know of a good android wear prototyping software? I can't seem to find one "anywear"... Jan 11 22:45:26 Something to make mockups on, at least Jan 11 23:02:22 Helloooo, I have a question Jan 11 23:02:59 Why is it that when I run an app from Android Studio, avast claims there's a security risk? Jan 11 23:04:11 YungDaVinci, sounds like an Avast bug Jan 11 23:04:30 Ah ok Jan 11 23:04:42 To be clear, is that desktop Avast or Android Avast? Jan 11 23:04:57 Android Jan 11 23:05:26 That would probably be because dev apps aren't signed with a release key Jan 11 23:06:00 Oh ok Jan 11 23:06:01 I'm not finding much with Google. Found this: http://stackoverflow.com/questions/17499578/my-app-android-is-detected-as-malware-in-avast Jan 11 23:06:03 Thanks Jan 11 23:08:41 Hello world! Jan 11 23:09:28 On behalf of the world, hello. Jan 11 23:09:38 I object! Jan 11 23:09:59 As part of the world, I do not condone TacticalJoke's hello. Jan 11 23:10:05 I do Jan 11 23:10:07 hola Jan 11 23:10:10 :-) Jan 11 23:11:22 :D Jan 11 23:11:49 I'm having issues understanding exactly how the PhoneNumberFormattingTextWatcher manages to format the content of a given EditText, without using the EditText itself. Short link to appropriate grepcode url: http://bit.ly/14JFSsS Jan 11 23:11:59 YungDaVinci: There's also this, which suggests that it sometimes reports false positives: https://groups.google.com/forum/#!topic/mitappinventortest/e8eWVrRLDIk Jan 11 23:13:13 It does the replacing on the Editable, and my own "dry run" of doing work on only the Editable (without setting the text on the EditText afterwards) has come up short. :( Jan 11 23:13:49 n20: You tried Editable.replace? Jan 11 23:14:09 I've not tried it, but I'm curious of whether that'd mutate the EditText's underlying buffer. Jan 11 23:15:32 TacticalJoke: Yup, but also actually just trying to append (+= a string in the afterTextChanged(...)) - no luck! Jan 11 23:16:04 n20: Works here. Jan 11 23:16:13 I can mutate an EditText by getting its inner Editable. Jan 11 23:16:53 n20: "Appending a String" just creates a new String. It doesn't change the original. Jan 11 23:17:30 n20: Try something like "someEditText.getEditableText().replace(0, 1, "hi");". Jan 11 23:24:14 TacticalJoke: Testing a few things here, seems like I get it to crap out on the first input when it in my TextWatcher. :-( Jan 11 23:25:12 TacticalJoke: IndexOutOfBoundsException, something something length=0. Wonder if the Editable has yet to get its value? Jan 11 23:26:55 I guess you could keep it simple and try something like "myEditable.append("hi");". Jan 11 23:27:10 No need to use Editable.replace. Jan 11 23:28:20 Are you doing something in TextWatcher.afterTextChanged? Jan 11 23:29:10 TacticalJoke: I just realized why my initial appends didn't work - I was enforcing the inputType="number", and the Editable would then try to use that in the EditText - silent death as far as I can tell. Jan 11 23:29:29 Ah. Jan 11 23:29:52 TacticalJoke: Thanks for the help by the way, people are always so helpful on here. :-) Jan 11 23:30:03 In any case, I believe the answer is that, since that PhoneNumberFormattingTextWatcher has a reference to an EditText's Editable, it can change the EditText's text. Jan 11 23:30:49 Note that String is immutable and Editable is mutable. So, if someone has a reference to an Editable, any change you make to it will be sent to them. But if someone has a reference to a String then you simply cannot change it. Jan 11 23:31:02 * JesusFreke .oO(AbstractPhoneNumberFormattingtextWatcherImplemenatationFactory) Jan 11 23:32:29 Yeah, I had to copy-paste that one. :D Jan 11 23:32:38 No Ctrl+Space for Java types on IRC. Jan 11 23:33:33 TacticalJoke: That's a really good explanation of it - I'll keep it for future adventures in the field. :)) Jan 11 23:33:59 * n20 has already learned something new today (Editables = mutable), and it's only 00:32! Jan 11 23:36:08 By the way, android:digits="{comma separated list of valid characters}" + android:inputType="number" is quite interesting! Jan 11 23:37:32 Looks powerful. I've never had the chance to use it. :) Jan 11 23:46:00 finally, first package accepted to jcenter :) Jan 11 23:46:17 ;) Jan 11 23:52:17 Hi Ya'll Jan 11 23:52:34 After a few days with Android Studio, it has stockholm syndromed me. If you ignore how horribly slow Gradle is, the package isn't half bad. Jan 11 23:53:16 I'm not sure if this is the correct channel to ask, but what is the best http library that one uses generally? Jan 11 23:54:09 dondraper_: OkHttp is very good. Jan 11 23:54:57 http://stackoverflow.com/questions/16902716/comparison-of-android-networking-libraries-okhttp-retrofit-volley Jan 11 23:55:05 OkHttp is all the rage these days Jan 11 23:55:13 Oh nice, that's the one by square right? Jan 11 23:55:20 Yeah. Jan 11 23:55:30 one big benefit is that the author is right here in this channel if you wish to annoy him ;) Jan 11 23:55:38 You are the author? Jan 11 23:55:41 Google must like it, because HttpURLConnection uses OkHttp under the hood starting from 4.4. Jan 11 23:55:42 nope Jan 11 23:55:50 oh misread that winky :P Jan 11 23:56:04 I don't want to highlight him for no reason Jan 11 23:56:04 Oh wow, that's interesting Jan 11 23:56:08 it must be really good Jan 11 23:56:55 I should profess, I'm not an android dev myself, but the partner I work with generally doesn't use outside libraries, so I'm trying to convert him :P Jan 11 23:57:55 Chainfire: already got 5 highlights from the convo Jan 11 23:58:04 The "inside" HTTP libraries on Android don't have a good reputation. OkHttp is, as I understand it, essentially a solution to that very problem. Jan 11 23:58:19 Well, not the reputation problem, but the "not being good" problem. :) Jan 11 23:58:25 haha Jan 11 23:58:56 Yeah, he said that working with Async http requests was a bit complicated. Jan 11 23:59:20 I'm not the author either. Just a big contributor. Jan 11 23:59:26 Ah Jan 11 23:59:41 JakeWharton :) Jan 12 00:01:08 dondraper_: Perhaps the "It's used on 4.4+ in Android" point will convince him. (Note that this doesn't mean that HttpURLConnection is as good as OkHttp on 4.4+: HttpURLConnection still has a not-so-nice API. So you get the good OkHttp back-end with the bad API.) Jan 12 00:02:05 What does RetroFit do? Jan 12 00:02:30 Or is OkHttp an abstraction on top of Retrofit ? Jan 12 00:02:37 Other way around Jan 12 00:02:48 RetroFit is an Abstraction on Okhttp ? Jan 12 00:02:58 On any http client really Jan 12 00:03:14 Anyone know if there's a mockup took for android wear? Jan 12 00:03:16 is there a case where you'd use one over the other? Jan 12 00:03:30 I think the emulator should do that joshumax Jan 12 00:03:58 Does anyone know how admob counts requests? Jan 12 00:04:08 I pre-load my ads but my stats just don't make sense Jan 12 00:04:19 Hmm, well, I guess that's the only way then Jan 12 00:04:25 I got 1085 requests today, and 132 impressions. Jan 12 00:04:59 how many clicks Agamemnus ? Jan 12 00:05:05 oh silly me, I read the SO post. I guess that clears it up. Jan 12 00:05:07 7 Jan 12 00:05:16 +1 for OkHttp Jan 12 00:05:17 how much $/click? Jan 12 00:05:48 dondraper_: I never use OkHttp directly Jan 12 00:06:23 It varies a lot day by day Jan 12 00:06:27 how are you preloading them and how do you display them agamemnus? are you using someting UIL or Picasso? Jan 12 00:06:38 well on average how much I've never really done any admob so curious Jan 12 00:06:46 I see Jan 12 00:07:05 I'm using the floatinghotpot Cordova Admob plugin with some slight modifications by me. Jan 12 00:07:15 I'm just curious what they pay and if its better to do video or panners Jan 12 00:07:27 Have you done Chartboost? Jan 12 00:07:30 I want to try that next Jan 12 00:07:42 plugin? jar you mean? this is android right? Jan 12 00:07:50 It's a .java file Jan 12 00:07:53 Cordova plugin Jan 12 00:08:06 As far as the revenue, well Jan 12 00:08:08 I'm negative Jan 12 00:08:26 in terms of time spent or...? Jan 12 00:08:30 I'm paying for user installs from appbrain. About -50% on a good day Jan 12 00:08:46 The ads don't pay the maintenance Jan 12 00:08:58 I got $2.34 for a single click today Jan 12 00:09:07 but it's only 7 clicks Jan 12 00:09:19 It also really depends on the country. Jan 12 00:09:35 why do you pay for user installs for app brain? Jan 12 00:09:37 And how often you show the ad Jan 12 00:09:58 I'm trying to make $$$ Jan 12 00:10:09 My RPM is 9.32, as an all-time average Jan 12 00:10:11 it's a good question how they count an impression versus a request....people could make dozens of requests and never show the ad Jan 12 00:10:27 Yeah. Jan 12 00:10:34 I have half on Adbuddiz and half on Admob. Jan 12 00:10:35 is that what you are doing? Jan 12 00:10:49 I preload the ads. I don't know what's going on with the ratio Jan 12 00:10:59 so how do you pay people to download it on appbrain? it a paywayre ap? Jan 12 00:11:01 But it's one pre-load to one display Jan 12 00:11:08 Advertising Jan 12 00:11:08 how many ads do you preload? Jan 12 00:11:13 one.. Jan 12 00:11:27 Appbrain works on a pay-per-install system Jan 12 00:11:42 If a user installs my game, I pay appbrain my bid Jan 12 00:11:49 and the user who installs it pays nothing right? Jan 12 00:11:57 I'm the one paying Jan 12 00:12:08 and does the user get a reward for installing? Jan 12 00:12:11 No Jan 12 00:12:22 ok so one thing i'm curious about is the warez aspect Jan 12 00:12:31 there is nothing magic about getting the apk from the appstore right? Jan 12 00:12:33 The person whose app it is makes part of the money Jan 12 00:12:46 There is no warez aspect Jan 12 00:12:57 if someone packet sniffs the apk they can (and seems like they do) offer it up for download i see them all the time Jan 12 00:13:08 well there is if the app itself has a cost but not for the ads stuff Jan 12 00:13:30 Are you talking about users illegally downloading paid apps for free? Jan 12 00:13:34 so when yuo "preload" are you just getting the url of the banner to download or do you actually download the banner gif or whatever? Jan 12 00:13:37 yes Agamemnus Jan 12 00:13:52 The preload gets the actual content. Jan 12 00:14:07 yeah i dont see how they can tell if it's a real impression or not Jan 12 00:14:11 A lot of high-ranking games don't do this but still have 100,000s of downloads Jan 12 00:14:29 They show the ap when requested Jan 12 00:14:38 huh? Jan 12 00:14:41 it also gives a higher eCPM but provides a worse user experience Jan 12 00:14:51 ad* Jan 12 00:14:53 not ap Jan 12 00:15:10 One game actually shows an ad about a split second after the main menu loads Jan 12 00:15:27 Tricks people into clicking it. Highly against the admob & Google Play terms of service Jan 12 00:15:33 but it's done all the time Jan 12 00:15:49 Basically 99% of the system is fraudulent. Jan 12 00:15:56 yeah i dont know really Jan 12 00:16:08 i'm sure eeryone tries to trick people into clicking Jan 12 00:16:08 My game plays by the rules. Jan 12 00:16:16 is there an url to this rule? Jan 12 00:16:18 Which is why I'm in the red Jan 12 00:16:21 There are a few Jan 12 00:16:32 ologn sounds like he does a lot of ad supported stuff you could ask him Jan 12 00:16:38 Most of the rules are spelled out pretty clearly Jan 12 00:16:41 you're in the red because you are paying people to download it Jan 12 00:16:45 what app is it? Jan 12 00:16:51 ologn is here? Jan 12 00:16:52 i just dont get this pay to donwload as an indie Jan 12 00:17:00 i dunno if he is but when he gets here you can ask Jan 12 00:17:11 i am trying to get help from him Jan 12 00:17:18 right on Jan 12 00:17:44 HevvyMetal: the idea is, you make money from users as an investment Jan 12 00:18:14 yes Jan 12 00:18:22 and the logical sequiter of that is? Jan 12 00:19:16 if the users are profitable....... at some cost $x, it only makes sense to pay appbrain <$x and only when $x is profitable Jan 12 00:19:33 of course, if your restaurant loses money, and you have 10 restaurants, you will then lose 10x as much money Jan 12 00:19:49 It's difficult to price this Jan 12 00:19:58 You need to try to retain users Jan 12 00:20:07 And figure out their lifetime value Jan 12 00:20:21 so..it's only when you have a profitable restaurant does it make sense to invest into buying more Jan 12 00:20:23 right Jan 12 00:20:36 Restaurant won't be profitable right away Jan 12 00:20:43 So that's why I'm spending $$$ Jan 12 00:20:49 liftime value seems so cold hearted Jan 12 00:21:00 do you have a link to your app? Jan 12 00:21:10 oh yeah, sorry. it's a jigsaw game Jan 12 00:21:17 Safari Jigsaw Jan 12 00:21:24 i am thinking of changing subjects Jan 12 00:21:30 category is flooded Jan 12 00:21:32 it is pretty ironic that "google the don't be evil" company makes ALL of it's revenue from advertising, which is a tax on the economy and essentially evil Jan 12 00:21:42 https://play.google.com/store/apps/details?id=com.flyingsoft.safari.jigsaw.free Jan 12 00:21:50 pretty much 95% of its revenue Jan 12 00:22:51 95% of what is revenue? Jan 12 00:22:51 what do the in app purchases do and where did you get the artwork? did you use any 2d library for it? Jan 12 00:23:14 $8.99/item? Jan 12 00:23:16 The artwork is licensed from MGL licensing Jan 12 00:23:29 It's $8.99 for 100 gems Jan 12 00:23:38 and what do the gems by you? Jan 12 00:23:41 The photos are freely available mostly Jan 12 00:23:47 is that your game? Jan 12 00:23:48 It says it in the window ._. Jan 12 00:23:51 yes Jan 12 00:24:05 do they still get ads? Jan 12 00:24:10 if they buy gems? Jan 12 00:24:13 yes... Jan 12 00:24:20 there's an ad removal price... Jan 12 00:24:34 sounds like a shakedown Jan 12 00:24:46 but everything on the market is these days Jan 12 00:24:53 especially the games Jan 12 00:24:57 it's not a shakedown Jan 12 00:25:12 yours might not be but plenty of the games are Jan 12 00:25:15 I only got three purchases so far, two from one user Jan 12 00:25:43 I'm trying to better identify my users so I can .. monetize them .. better Jan 12 00:25:49 listen to you Jan 12 00:25:53 ;) Jan 12 00:25:54 it's cute Jan 12 00:25:57 shakedown =P Jan 12 00:26:09 Does ProGuard remove library code? For example keep only the parts of Guava that I actually use in the app ? Jan 12 00:26:09 I think its fair to ask them to pay to remove the ads Jan 12 00:26:09 i think i earned usd$1 from my app Jan 12 00:26:16 from slacker droid programmer to steely eyed CFO Jan 12 00:26:19 isn't the kind of popular app thou Jan 12 00:26:26 what app was it cliffreich ? Jan 12 00:26:45 this https://play.google.com/store/apps/details?id=com.javierarias.ubika Jan 12 00:27:10 now i want to try with unity Jan 12 00:27:23 I want to show various animations in my app. What's the best file format for this? Jan 12 00:27:24 i want to learn how to code games Jan 12 00:27:31 gif isn't exactly compressed Jan 12 00:27:38 (time wise) Jan 12 00:29:11 the photos are a little overwhelming,too many in one screen Jan 12 00:29:52 whats googles take on adult themed content? Jan 12 00:29:53 yes i'll update the entire app soon Jan 12 00:29:57 is R or X rated ok? Jan 12 00:30:05 HevvyMetal: no, you'll be banned Jan 12 00:30:10 they won't tolerate it. Jan 12 00:30:16 they tolerate some stuff Jan 12 00:30:29 There's a content policy you can read. Jan 12 00:30:31 i know that XBOX has AO (X rated) but I dont know if many people do it so curious Jan 12 00:30:46 right well with your game Agamemnus Jan 12 00:30:59 if look at how the gaming folks monetize people Jan 12 00:31:08 or how I see it anyway Jan 12 00:31:14 In my category it's mostly fraud Jan 12 00:31:21 Fraud in what way? Jan 12 00:31:25 advertisement fraud Jan 12 00:31:34 the ads in shady places Jan 12 00:31:45 popping up unexpectedly, near control buttons, etc. Jan 12 00:31:54 i don't think that makes it fraud unless you hae a link to the TOU Jan 12 00:31:55 i didn't think of it as a super popular app, but as my first android app im glad i got some few daily users that use it Jan 12 00:32:34 it gives me an idea for a business plan Jan 12 00:32:48 that i could sorta maybe wrap into my other business plan Jan 12 00:33:10 but basically buying up distressed apps at bargain pricing and then retargeting and marketing them better? what do you think? Jan 12 00:33:27 how much would you sell all the rights to your puzzle app for? Jan 12 00:33:29 TOV? Jan 12 00:33:38 I can't Jan 12 00:33:41 TOV? Jan 12 00:33:45 TOU Jan 12 00:33:46 oh Jan 12 00:33:48 terms of use Jan 12 00:33:51 Yeah, it's fraud Jan 12 00:33:57 you said that three times Jan 12 00:33:59 so link me :) Jan 12 00:34:06 everyone does it on every format Jan 12 00:34:11 web, android Jan 12 00:34:17 they hide the X box and make it invisible Jan 12 00:34:29 https://support.google.com/admob/answer/2753860?hl=en Jan 12 00:34:32 this is admob Jan 12 00:34:34 that's a daily occurance from what I see either it's not really against the TOU or it's not being enforced Jan 12 00:34:52 anyway I havve some other suggestions on how you could drive revenues if ou want to hear it Jan 12 00:34:54 it is enforced on occasion Jan 12 00:34:58 go ahead Jan 12 00:35:13 first you look at other money making games Jan 12 00:35:22 their audience is either Jan 12 00:35:32 1) people who can buy it themsleves (teenage, college, adult) Jan 12 00:35:41 2) something so great that mommy throws down some cash Jan 12 00:35:49 I'm trying to figure out how to get to the parents today Jan 12 00:36:08 but first I need to set up analytics Jan 12 00:36:12 the other thing is, they try to get cash sooner in case they have a short life time Jan 12 00:36:13 first attempt was a failure Jan 12 00:36:24 so here you are giving them 20 or so levels for free and then they have to pay for another 20 or so Jan 12 00:36:31 Google Analytics* Jan 12 00:36:39 Well, it's 40 free images and 50 paid Jan 12 00:36:44 Soon will be 50/50 Jan 12 00:36:46 that's way too much Jan 12 00:36:49 no way man Jan 12 00:36:52 do 7 free Jan 12 00:36:53 or 3 free Jan 12 00:36:54 not according to this user: Jan 12 00:37:02 make them pay for each set of 5 or 10 Jan 12 00:37:07 Brittany Nichole on Jan 10, 2015 at 5:03 PM Jan 12 00:37:07 Hmmm.... The app didn't give me all of the puzzle pieces for the "lion" selection. Also, overall app graphics were amateurish and boring and not to mention the price for gems when there are several sites and apps that provide completely free puzzles that are gorgeous. Jan 12 00:37:08 $.99 each crack Jan 12 00:37:18 (did you give me a rating? :-) I see another 5) Jan 12 00:37:33 no but listen that's true that the artwork is shabby so listen man Jan 12 00:37:42 forget about the parents! Jan 12 00:37:44 How is it shabby Jan 12 00:37:50 all of the games out there have bewbs Jan 12 00:37:58 It's made by extremely talented artists Jan 12 00:38:00 even if they jsut are on the splash screen and it's a text based adventure Jan 12 00:38:16 ok well I'm a semi pro published photographer and they look like advanced amateur zoo pics to me Jan 12 00:38:24 so listen a sec Jan 12 00:38:26 You're talking about the photographs Jan 12 00:38:29 that's not artwork Jan 12 00:38:34 go for the bikini girls Jan 12 00:38:39 i call photographs artwork but yeah the photos Jan 12 00:38:45 for as far as you can go with it on google Jan 12 00:38:48 this sounds like "how to make money by selling your soul" Jan 12 00:38:51 I might revamp the photos a little Jan 12 00:39:03 and then sell to the lonely guys who pay for idol bikini girl stuff Jan 12 00:39:04 Most of the photos are from Wikipedia Jan 12 00:39:06 germans and japanese Jan 12 00:39:13 There's a lot of good flickr stuff. Jan 12 00:39:15 get someoen to translate to those languages at least the store page Jan 12 00:39:20 I started using that later on Jan 12 00:39:22 god forbid you actually.. you know. put the user first. Jan 12 00:39:27 yeah but it's not really ok to just steal flickr photos Jan 12 00:39:39 JesusFreke it's all about the benjies Jan 12 00:39:43 I only use photos that have the appropriate license. Jan 12 00:39:49 like i said the whole play store is a giant shakedown Jan 12 00:40:03 It's not a shakedown, it's a fraud, and shakedown is part of it Jan 12 00:40:11 does google ever ask you to supply proof that you have a license? just curious never had photos before Jan 12 00:40:12 ... Jan 12 00:40:24 They didn't ask me. Jan 12 00:40:32 I imagine they'd ban me first, ask questions later Jan 12 00:40:58 even if teh fraud was not a part of it you still want to shake them down for as much cash during their lifetime as possible correct Agamemnus ? Jan 12 00:41:05 Yeah. Jan 12 00:41:07 ok Jan 12 00:41:08 good Jan 12 00:41:11 In a legitimate way Jan 12 00:41:12 you're my man Jan 12 00:41:21 but thats what i hate about gaming onandroid Jan 12 00:41:24 they get you hooked Jan 12 00:41:30 There's a fine line between evil/greed and survival Jan 12 00:41:38 then to beat the level 5 boss you need to pay $.99 or whateer to buy a bigger gun Jan 12 00:41:40 all the top trash games are like that Jan 12 00:41:49 they're even placing ads on TV now Jan 12 00:41:50 then to beat the level 7 boss you need to pay $1.99 to speed up construction Jan 12 00:42:17 Yeah. Jan 12 00:42:18 have yu tried in game video game ads? talk about obtrusive? how did they work or why not Agamemnus? Jan 12 00:42:27 HevvyMetal: yes, I tried them. Jan 12 00:42:39 and how did it go and how well do they pay? Jan 12 00:42:42 Admob has some in-game video ads, but I only make money if people click. Jan 12 00:43:01 I also tried Millennial Media, Flurry, Mopub, maybe some others Jan 12 00:43:24 All useless. But, I'm going to try Chartboost soon to see what it's like Jan 12 00:43:28 you only make money if they click on banners too right Agamemnus ? Jan 12 00:43:40 so what's your day job as far as paying the bills Agamemnus ? Jan 12 00:43:42 I don't have banners, only interstitials. But yes Jan 12 00:43:57 well video ads might get more clicks i dunno or pay more per click Jan 12 00:44:02 In admob, only about 7% of the ads are video ads, but they make more money Jan 12 00:44:02 can have a mix of both Jan 12 00:44:12 I'm pretty new to Android development, I'm wondering what the received wisdom is in regards to structuring a project with developer-specific resources, say if each dev has his own endpoint URL that is different from the release app URL... Is it something link symlinking something out /res or ? Jan 12 00:44:15 yeah you can mix and match. Jan 12 00:44:28 so did you make your puzzle game off one of those free template websites like that miley cyrus game Agamemnus ? Jan 12 00:44:33 lol, no.. Jan 12 00:44:49 any 2d libraries or what? Jan 12 00:44:59 pixi.js Jan 12 00:45:14 TheComrade: not ignoring you but I have absolutely no idea Jan 12 00:45:48 the original thought was that users would see a short interstitial ad, maybe a video, then play my game Jan 12 00:45:54 I don't want users clicking out of my game. Jan 12 00:46:04 But that didn't fly. It's all click and install-based. Jan 12 00:46:04 TheComrade: Check out the new build types and product flavors in the new Gradle build system, http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Product-flavors Jan 12 00:46:19 but ok check this out Agamemnus Jan 12 00:46:22 https://play.google.com/store/apps/details?id=com.nf.game.puzzle&hl=en Jan 12 00:46:32 Installs Jan 12 00:46:32 100,000 - 500,000 Jan 12 00:46:37 yiati: ty Jan 12 00:46:59 what do you think about that Agamemnus ? Jan 12 00:47:01 that doesn't mean much. Jan 12 00:47:08 doentmean much? Jan 12 00:47:13 100x as many installs as yuo have? Jan 12 00:47:16 A lot of low-quality animal puzzles have a similar amount of downloads Jan 12 00:47:28 I'm in late. Late-comers aren't visible Jan 12 00:47:30 yeah but there are lots of them Jan 12 00:47:34 right Jan 12 00:47:40 but that was the only sexy puzzle i saw Jan 12 00:47:47 so lots fewer competition Jan 12 00:48:10 anyway something to think about Jan 12 00:48:11 TheComrade: Actually sourcesets in gradle will probably jump you to what you want faster, but it uses build types and product flavors so read that too, http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Sourcesets-and-Dependencies Jan 12 00:48:44 but i dont think people really get rich off of indie apps on the play store Jan 12 00:48:48 if they do let me know Jan 12 00:48:51 https://play.google.com/store/search?q=sexy%20girl%20puzzle&c=apps&hl=en Jan 12 00:49:04 TheComrade: You can basically "symlink" multiple values to one variable by having copies of the same Constants.java file in different sourcesets Jan 12 00:49:10 Some do. And that's my intention.. Jan 12 00:49:26 NEed to break-even tho :) Jan 12 00:49:37 ah hah Jan 12 00:49:45 that gives me another idea for my business plan Jan 12 00:49:51 or another business plan Jan 12 00:49:51 yiati: awesome, that sounds about right Jan 12 00:50:36 what country are you inagam ? Jan 12 00:50:41 Agamemnus i mean? Jan 12 00:51:42 US Jan 12 00:51:54 Apps that focus on sexual or suggestive references or include sexualized images or pornography Jan 12 00:52:00 are not permitted Jan 12 00:52:16 nudity is not a sexualized image or pornography Jan 12 00:52:23 even normal sex is not inherently pornography Jan 12 00:52:33 man Jan 12 00:52:34 like Jan 12 00:52:35 it just says it needs a high maturity Jan 12 00:52:42 the top free apps are like that Jan 12 00:52:44 Game of War Jan 12 00:52:55 They go as far as they can Jan 12 00:52:57 are like what? what elements of GoW are like taht? Jan 12 00:53:07 look at the advertising Jan 12 00:53:11 how far do they go? topless? or just enhacements Jan 12 00:53:21 sometimes the advertising has nothing to do with the in game experience tho Jan 12 00:53:55 https://lh4.ggpht.com/jt43TR5Vu1rVS64J2kIgwiNBlVssvYae49XJ_G5HzS_g7Y3kq8C6ItgUFRXIvXUpqQ=h900 Jan 12 00:54:03 it's part of the app. Jan 12 00:54:12 So it has to comply with the rules Jan 12 00:54:19 anyway like I said it's all fraud Jan 12 00:54:28 shes not even nude Jan 12 00:54:32 she just has a huge rack Jan 12 00:54:34 sexualizes Jan 12 00:54:37 that's what i said about bewbs a long time ago Jan 12 00:54:45 so she is sexualized simply for being buxom? Jan 12 00:54:52 sexualized Jan 12 00:55:01 and then they found an actual actor for it Jan 12 00:55:10 Anyway Jan 12 00:55:14 sexualized means that they performs acts on people or does something of a sexual nature Jan 12 00:55:19 just existing is not sexualized Jan 12 00:55:27 the winning formula is some combination of sex appeal and addiction Jan 12 00:55:39 but yeah, they put in all these cut scenes of some hot princess, and the actual game is a sausage festival Jan 12 00:55:43 yes Jan 12 00:55:49 and in game purchases Jan 12 00:55:54 no real world gambling is allowed, but all of these IAPs are just as addictive as gambling Jan 12 00:56:04 or you could write an actual *good* game :) Jan 12 00:56:05 whats an IAP? Jan 12 00:56:11 in-app purchase Jan 12 00:56:16 name a few JesusFreke ? Jan 12 00:56:25 Oh there are plenty of good games Jan 12 00:56:42 like? Jan 12 00:56:43 What I'd like to see: a good game with no permissions. Jan 12 00:56:46 https://play.google.com/store/apps/details?id=com.magmafortress.hoplite Jan 12 00:56:46 name a few that aren't shakedowns? Jan 12 00:56:48 Why do games need permissions? Jan 12 00:57:02 Usually, to monetize. Jan 12 00:57:05 yeah and every game wants access to the pics folder wth does every app need or want access to my photos? do they steal the data or what? Jan 12 00:57:08 TacticalJoke: to support spyware - duh Jan 12 00:57:12 Take a look at that link Jan 12 00:57:13 personally, I would never even try a game that used any of the techniques you mention Jan 12 00:57:16 right so how are they monetizing that data? who do they sell it too? Jan 12 00:57:24 for example, I recently bought this game: https://play.google.com/store/apps/details?id=com.fizzd.connectedworlds Jan 12 00:57:38 It's not necessarily about selling the data. Jan 12 00:57:40 because it was a unique concept, and I found it fun to play Jan 12 00:57:45 I'm using it to analyze my customers Jan 12 00:57:53 what about that link Agamemnus ? Jan 12 00:58:10 using what? their photos? do you look at them? why do most apps need those permissions? Jan 12 00:58:13 that's a good game without the addiction element Jan 12 00:58:22 every app wants every permission now...i dunno how it gets handled on app store Jan 12 00:58:22 What info do you have on them, Agamemnus? Jan 12 00:58:48 but what id like to do is pick and choose what permissions I give out, not get shaken down that if i want FB messenger I have to give it every permission in the universe Jan 12 00:58:54 Their name, their Google number, and their behavior in the game. Jan 12 00:58:56 it's a second form of shakedown this permission stuff i think Jan 12 00:59:15 are there limits to what stats you can collect or how you can monetize it Agamemnus ? Jan 12 00:59:35 That's a very complicated subject. Jan 12 00:59:41 I wrote a privacy policy. Jan 12 01:00:57 I find the state of a lot of Android apps (especially games) depressing. Jan 12 01:01:05 agreed Jan 12 01:01:11 So many developers are hugely selfish, exploiting the ignorance of users to make money from them. Jan 12 01:01:36 Nothing wrong with making money, but the ways in which a lot of people do it are disgraceful. Jan 12 01:03:14 http://flyingsoftgames.com/mr_jigtato/privacy_policy.htm Jan 12 01:03:18 That's my privacy policy Jan 12 01:04:26 "We may also use this information to request a personal contact with our users with questions relating to technical and functional aspects of the game." Jan 12 01:04:33 That's pretty extreme, IMO. Jan 12 01:04:34 well whats the polcy on fb messenger and why does it need access to evertyhing? Jan 12 01:04:48 That's not extreme at all Jan 12 01:04:55 anyway talk about shakedown what i think all the games do these days Jan 12 01:04:57 It means I can send you a freaking Hangouts message ._. Jan 12 01:05:02 if first give you a few gems Jan 12 01:05:04 is Jan 12 01:05:11 i do this Jan 12 01:05:16 but maybe not enough Jan 12 01:05:17 then, they walk you through how to spend them at the store Jan 12 01:05:22 or too many Jan 12 01:05:27 1 gem a day Jan 12 01:05:27 a tutorial to make sure they know how to buy at the store Jan 12 01:05:34 then you force them to buy that gun for 200 gems Jan 12 01:05:45 Agamemnus: Some app developer sending random users Hangouts messages is not extreme? Jan 12 01:05:45 then you let them kill a few easy orcs Jan 12 01:06:09 then oh noes! you died! would you like to buy sum gemz? Jan 12 01:06:24 these days when i dl a game i just wonder how many levels it will be before i get hit up for money Jan 12 01:06:30 TacticalJoke: no. Jan 12 01:06:53 then why they start hitting me up for money i bail and download something else Jan 12 01:08:26 That's a very beggar-thy-neighborish policy you got there.. Jan 12 01:08:55 meaning what? Jan 12 01:09:11 that i'm trying to shake them down for as much as I can? Jan 12 01:09:17 Means, you're putting independent developers out of business Jan 12 01:09:26 (I buy a lot of independently made games.) Jan 12 01:09:32 possibly but first of all Jan 12 01:09:33 You should too.. Jan 12 01:09:39 Agamemnus: On the plus side, that policy is nice and clear. On the minus side, the TL;DR left in my mind is essentially "We don't give a damn about you and your rights; this is about us and making money". Jan 12 01:09:48 if the publisher is trying to get as much as they can why shouldn't i Jan 12 01:09:51 I don't mean to single you out; this is more of a general issue with mobile-app developers. Jan 12 01:10:03 Well Jan 12 01:10:03 i'd proably go ahead and pay $3.99 for the game I don't want to get nickel and dimed to death Jan 12 01:10:13 you look at all the big games they sell a chest of gems for $99.99 Jan 12 01:10:15 $99.99 Jan 12 01:10:18 I guess the users can just not install. But so many of them are clueless. Jan 12 01:10:22 I don't want people shitting bricks if I pm them and ask them why they're crashing all the damn time. Jan 12 01:10:25 who would buy an ap for $99.99 but these guys will pay for chests of diamonds Jan 12 01:10:27 And many are young children. Jan 12 01:10:36 Not that anyone actually reads them. Jan 12 01:10:53 Agamemnus: What I don't get is: why do you feel entitled to personally contact users? In my mind that is a huge violation of their privacy. Jan 12 01:10:55 when would they read that license before installing ont he play store? they hve to go to your site to see it right? I'm surprised googl doesnt have policies Jan 12 01:11:18 Because I'm not spamming them Jan 12 01:11:25 well you could remove the Phone State and Identity thing which most people should Jan 12 01:11:27 Maybe one day we'll have a guy come in here and talk about how he turns up at users' houses. Jan 12 01:11:30 I'm trying to talk to them face to face Jan 12 01:11:31 "Is my game good?" Jan 12 01:11:32 the app pages on play store have a link to the privacy policy, iirc Jan 12 01:11:48 on the device? I've never seen it i'll look next time Jan 12 01:11:50 What if they don't want some potential weirdo talking to them? Jan 12 01:11:53 TacticalJoke: haha Jan 12 01:11:57 They don't have to reply Jan 12 01:12:07 Actually, I messaged about 10 people, no one replied Jan 12 01:12:08 +1 button Jan 12 01:12:08 Publishers may not sell or transmit to others any data related to their users' activity of the +1 (or similar) Google button ("+1 button"). This prohibition includes, but is not limited to, any use of pixels, cookies, or other methods to recogniz Jan 12 01:12:15 wth is the +1 button and what does it have to do with admob? Jan 12 01:12:15 oh that's creepy ... do you really email users directly ? Jan 12 01:12:27 They have the ability to contact you, Agamemnus. Jan 12 01:12:29 No, I send them a message via Hangouts Jan 12 01:12:34 that's even worse Jan 12 01:12:36 Yeah, but users are generally mute Jan 12 01:12:43 Because they don't want contact? Jan 12 01:12:43 yeah i wouldnt cold contact the useres Agamemnus Jan 12 01:12:44 I don't have their email address Jan 12 01:12:49 just put a support link Jan 12 01:12:51 IDC Jan 12 01:13:02 I paid for them. I own them. MOUAHAHAHA Jan 12 01:13:14 @/ Jan 12 01:13:27 we've got CEOitis in here for sure Jan 12 01:13:32 little donald trumps Jan 12 01:13:33 (sometimes i am wondering if he is serious, i think he is) Jan 12 01:13:42 agreed adq Jan 12 01:13:55 yeah he paid to get these shmucks to install this thing and now he owns them? Jan 12 01:13:59 Yes. lol Jan 12 01:14:02 man but it's people like that that become billionaries Jan 12 01:14:28 why dont you message them Agamemnus hey, we got a sale on diamonds going on Jan 12 01:14:31 I don't know if I am serious. Eventually I will be serious and then it's $$$$$ time Jan 12 01:14:55 I think I should start up a service where you pay me $99/hr to skype chat and i'll give you business advice from a guy who sold $1mln/yr of software Jan 12 01:14:55 Agamemnus: It just seems so selfish. Jan 12 01:15:04 what do you think? would you guys pay to learn how to make more money? Jan 12 01:15:15 Yes, if the results were guaranteed ^_^ Jan 12 01:15:17 and would other mobile people pay for mkting assistance or product dev ideas? Jan 12 01:15:37 what results ? guaranteed how? Yuo'd have to act onthem and I can't guarantee you would Jan 12 01:15:48 but $500 spent with me could be the best $500 you ever spent Jan 12 01:15:59 just an idea anyway Jan 12 01:16:03 * HevvyMetal shakes Agamemnus down Jan 12 01:16:08 what's your lifetime value pal? Jan 12 01:16:19 I want you to succeed so you hire me again and again Jan 12 01:16:22 that's your guarantee :) Jan 12 01:16:26 i wnt a lifetime of income Jan 12 01:16:43 no but honestly i like helping small business people Jan 12 01:16:48 Agamemnus: The almost-hilarious tragedy is that your game is targeted at kids, right? Jan 12 01:16:59 and I want to see mobile succeed for people who arent $million studios like GLU and Kabam and EA Jan 12 01:17:00 Those kids who don't have a clue about their rights or what they're signing up for. Jan 12 01:17:01 he pops up a message yelling 'You should have bought a squirrel!' before wiping their phone Jan 12 01:17:41 lulz shmooz he'll start taking missing pieces from the giraffe until they kid cries to mom for a gem or two Jan 12 01:17:55 but MMMMAAAAAWWWWWMMMM Jan 12 01:17:57 That's a good idea. Jan 12 01:18:13 see so yuo ready for a consultation session Agamemnus :) Jan 12 01:18:33 That reviewer I pasted earlier said she had a missing piece Jan 12 01:18:44 I wish she had a missing tooth. /violence Jan 12 01:18:58 At the same time, I wish users were less dumb. (Though I guess it's hard to make this argument when the users are around eight.) Jan 12 01:19:26 I guess they have nudie version puzzles for adults Jan 12 01:20:10 It's actually possible for me to go evil Jan 12 01:20:24 and add an update that actually wipes people's phones on demand Jan 12 01:20:29 and then blackmail them Jan 12 01:20:41 and then get banned from the play store for life :) Jan 12 01:20:47 that doesn't mmatter Jan 12 01:20:49 i'm evil Jan 12 01:20:51 They'd need to be running as root, right? Jan 12 01:20:53 i'll figure out a way Jan 12 01:21:05 TacticalJoke: device admin.. :) Jan 12 01:21:09 someone paste his comments on his playstore page ;) Jan 12 01:21:21 Ya. Jan 12 01:21:29 You'd be guaranteeing my slide into evilness tho Jan 12 01:21:51 :X Jan 12 01:22:01 it's too late for Dr. Evil now! Jan 12 01:22:07 This is what I feel is tragic: humans have come so far in terms of progress and technology. We have all these amazing, almost magical, devices. It's futuristic and awesome. Jan 12 01:22:10 there's no going back Jan 12 01:22:20 And yet we get app after app that's just pointless bullshit designed to trick and exploit people. Jan 12 01:22:35 No matter how far you go, you can't get away from basic human selfishness. Jan 12 01:22:45 It'll always drag the species down. Jan 12 01:23:27 My rant for the day. :D Jan 12 01:23:39 When importing a eclipse project to AS, should I select the option "Create Gradle-style (camelCase) module names"? Jan 12 01:23:39 you sure know how to brighten a room Jan 12 01:24:43 * TacticalJoke switches the light back on. Jan 12 01:28:48 shmooz oh did you find full nude ones on the play store? link? i'm curious Jan 12 01:29:00 HevvyMetal: sent you a PM Jan 12 01:30:02 Hey guys, I wrote a script that helps keep your keystore more secure, check it out and tell me what you think. Can I make it better? Jan 12 01:30:04 http://androiddevcorner.blogspot.ca/2015/01/a-script-to-safely-manage-your-android.html Jan 12 01:30:13 https://itunes.apple.com/us/app/bathing-nudes-puzzle-free/id382645541?mt=8 Jan 12 01:30:26 If I have a method that "throws" do I have to have it inside a try block when calling it? Jan 12 01:30:29 i dunno about play store but they have nude "art painting" puzle on istore Jan 12 01:30:39 Ive seen instances where the answer to this can either be yes or no Jan 12 01:30:43 drose379: No. Jan 12 01:30:49 drose379, nope Jan 12 01:30:50 it's probably just a photoshp filter not even a real painting heh Jan 12 01:31:16 so I can define a method as public string blahbalh() throws IOException Jan 12 01:31:28 instead of having the try catch inside the method? Jan 12 01:31:36 no, cause there's a typo in blahblah :D Jan 12 01:31:38 and catching the IOException Jan 12 01:31:56 :P Jan 12 01:31:58 yes, that's how it works :) Jan 12 01:32:41 Ok, is it considered better practice to have a method defined as throwing an exception instead of using try inside the method Jan 12 01:32:47 or depends on the sitaution Jan 12 01:33:00 Depends on the situation. Jan 12 01:33:02 like most questions, it depends :) Jan 12 01:33:46 drose379: Do you know much about exceptions in general? Jan 12 01:33:49 If a method does things that can only throw one exception, then it is good to define the method as throwing that exception? Jan 12 01:33:56 If not, this is one case where it'd behoove you to read stuff. :D Jan 12 01:34:23 read stuff, like, the definition of behoove! :D Jan 12 01:34:23 It's not about the number of exceptions that can be thrown. Jan 12 01:34:28 An exception is thrown so that a user can be re-deirected if an error occurs Jan 12 01:34:40 It's about whether it's appropriate for that method, working at that level of abstraction, to throw that exception. Jan 12 01:34:41 instead of having the app crash, it gives them a chance to fix the problem Jan 12 01:35:06 oh no drose379 , it has nothing to do with the user Jan 12 01:35:15 Well I know Jan 12 01:35:25 the opposite, if an exception is not caught, the app crashes Jan 12 01:35:33 https://itunes.apple.com/us/genre/ios/id36?mt=8 Jan 12 01:35:39 An exception is thrown to give the app, or person using the app to fix the issue Jan 12 01:35:42 is there really no way to text search the app store on the web? Jan 12 01:35:48 instead of having the app outright crash Jan 12 01:36:20 nope, it give the dev a chance to catch it. Not the person using the app Jan 12 01:36:48 Well the user doesnt know that they made that mistake, but the dev does, and the dev offers the user a chance to fix the problem Jan 12 01:37:01 instead of having the app just crash Jan 12 01:37:41 drose379: That's not really the idea behind exceptions. Jan 12 01:37:58 Catching errors and fixing them? Jan 12 01:38:04 The user (probably) doesn't have anything to do with this.. Poor user, always blame him :-/ Jan 12 01:38:34 Could be the internet connection.. etc Jan 12 01:38:59 So if there is no connection, an exception is thrown Jan 12 01:39:01 in a way, an exception is just another way to return an error code. Jan 12 01:39:06 Yeah Jan 12 01:39:13 But then acting on it Jan 12 01:39:20 and are there good ways to search the google play store it has a strange bias in how it deals with keywords and putting them in "" doesnt seem to force it the way it does with normal googl Jan 12 01:40:15 what you do with the exception is up to you... Jan 12 01:40:30 Right Jan 12 01:41:03 drose379 ultimately you do want to catch all exceptions but you dont have to catch them at every level Jan 12 01:41:19 so if I define a method throws X Jan 12 01:41:23 where is the catch? Jan 12 01:41:26 and locally it might make sense to handle it right there Jan 12 01:41:38 the caller of the method Jan 12 01:41:38 the catch would be in the caller of that method Jan 12 01:41:44 or the callers caller Jan 12 01:41:49 Ultimately, there doesn't have to be a catch. Jan 12 01:41:56 It can just keep going up until it crashes the app. Jan 12 01:42:03 boom. Jan 12 01:42:04 if a calls b and c throws the exception it would look for a try catch in c, b, a in that order Jan 12 01:42:22 drose379: Do you know the difference between checked and unchecked exceptions? Jan 12 01:42:36 No, but im guessing checked is an exception with a catch Jan 12 01:42:43 and unchecked is an exception without a catch Jan 12 01:43:18 Not a bad guess, but not correct. Jan 12 01:43:28 I'm trying to find a good guide. Jan 12 01:43:36 Oh ok, thanks Jan 12 01:43:38 This looks like it'll be good: http://docs.oracle.com/javase/tutorial/essential/exceptions/ Jan 12 01:43:58 Yeah, that's probably about the best I'm gonna find. Jan 12 01:44:01 Thank you Jan 12 01:45:15 I'd really recommend reading that. It's pretty easy, and if you don't grok it then stuff just won't make sense. Jan 12 01:45:26 This is one of those drose379 intervention moments. :) Jan 12 01:45:26 grok it? Jan 12 01:45:31 Understand, I mean. Jan 12 01:45:33 The classic :) Jan 12 01:45:51 I actually think I am learning java while doing this Jan 12 01:46:02 $this == learning android Jan 12 01:46:12 TacticalJoke: You wouldn't happen to know Dan Lew would you? Jan 12 01:46:15 Yeah, it looks like you're moving along fast. Good to see. :) Jan 12 01:46:23 yiati: Never heard of that name before. Jan 12 01:46:38 Thanks TacticalJoke Jan 12 01:46:39 yeah you have to learn java to do android drose379 what were you doing before taht? Jan 12 01:47:00 Object-Oriented PHP Jan 12 01:47:22 aka php5 Jan 12 01:47:47 Yeah, and Im happy I did that cause now I can make apps that communicate with the server Jan 12 01:47:54 drose379: Just curious -- do you have any app aspirations? Jan 12 01:48:04 Like, were you ultimately hoping to make some particular app. Jan 12 01:48:38 Coming into this, no. I love programming so I came to learn but throughout learning ive been trying to think of something id want to build Jan 12 01:48:47 Got some ideas written down :) Jan 12 01:49:00 that's great Jan 12 01:49:16 really Jan 12 01:54:41 Do people learn Java just to build one app and then quit after that? Jan 12 01:54:57 i think the throws thing is kind a java oddity that is a mixed bag Jan 12 01:55:14 it depends drose379 Jan 12 01:55:17 sometimes they do more apps Jan 12 01:55:32 oh so i should learn java Jan 12 01:55:33 Right Jan 12 01:55:34 good to know Jan 12 01:55:49 ? ^ Jan 12 01:55:53 it's not the only way to go but its the standard way to go for android Jan 12 01:56:14 And its a language that will be useful in alot of other areas, right? Jan 12 01:57:03 hmm, what about xml Jan 12 01:57:15 Thats used for the layout Jan 12 01:57:25 Java is the backend, XML is the frontent Jan 12 01:57:25 end Jan 12 01:57:33 no it's not really useful in a "lot" of other areas drose379 Jan 12 01:57:45 big companies love Java Jan 12 01:57:50 outside of android java is mostly used by big insurance companies and banks and just about noone else Jan 12 01:58:03 if you interview with them it's always java or c++ that they are looking for Jan 12 01:58:04 why big companies like that? Jan 12 01:58:04 so if you want to work for a giant sweatshop, thats java outside of android Jan 12 01:58:07 Java is a big deal, drose379. It's not a bad language to learn at all. Jan 12 01:58:11 It's also a pretty sensible language. Jan 12 01:58:30 sensible? Jan 12 01:58:30 Ruby is the cool hipster language for server side these days with the big bucks Jan 12 01:58:41 oh yeah? Jan 12 01:58:46 yeah Jan 12 01:58:52 Java is like COBOL Jan 12 01:58:56 It has few bad design decisions. Jan 12 01:58:56 banks, insurance companies Jan 12 01:58:58 not hipster startups Jan 12 01:59:12 But why do banks like java? Jan 12 01:59:16 but i'm not a big fan of ruby but i see it all the time Jan 12 01:59:33 drose379 beacuse it's older, because it's compiled, because it's type safe, and they've been using it for 10 years Jan 12 01:59:37 Brainfuck is where it's at, http://learnxinyminutes.com/docs/brainfuck/ Jan 12 01:59:53 lol Jan 12 01:59:56 LOLCODE Jan 12 02:00:16 Ok, so getting CalledFromTheWrongThread exception Jan 12 02:00:30 i used to have a conspiracy theory about J2EE Jan 12 02:00:37 Only the origional thread that created a view can touch itsviews Jan 12 02:00:52 well thats good sounds like you are getting into multithreading drose379 Jan 12 02:01:11 Well OkHttp runs in a background thread right Jan 12 02:01:20 The main thread is the only thread that can update the UI in iOS, and Windows Phone too. Jan 12 02:01:30 I need to get back to the main thread Jan 12 02:01:40 drose379: If you use Retrofit on top of OkHttp you won't have any of these issues Jan 12 02:01:51 so you can post an update request on the main thread Jan 12 02:02:19 Im actually working in the onResponse method Jan 12 02:02:29 drose379: You need to post a message to the main thread. Jan 12 02:02:30 Calling a method that sets a view Jan 12 02:02:45 I solved this problem before by using a runnable Jan 12 02:02:56 HevvyMetal: what was your conspiracy theory ? Jan 12 02:03:35 well, that J2EE was so overly complex, and all the EAR and WAR and EJB stuff, that all it was designed to do was bloat out a project with so many developers that they would have to offshore to india to make it remotely feasable Jan 12 02:03:51 whereas if it were more efficient for domestic programmers that were higher paid but fewer of them, that wouldn't happen Jan 12 02:03:58 what do you think? too wacko or pretty accurate? Jan 12 02:04:23 it doesnt have to be india btw it could be anywhere but during the era of j2ee that was most fo the destination Jan 12 02:04:39 so according to you java was designed by starving developers in india Jan 12 02:04:45 no Jan 12 02:04:49 J2EE was Jan 12 02:04:55 not starving developers Jan 12 02:05:04 shmooz: stop indulging Jan 12 02:05:17 it's either that or EJB just was a bloated clusterfuck Jan 12 02:05:31 so it's hard to tell if it was by ineptness or design Jan 12 02:05:34 JakeWharton: ok Jan 12 02:05:43 like I said I used to have it as a theory Jan 12 02:05:50 now I just think it was mosty ineptness Jan 12 02:06:03 but i'm so glad i dont have to deal with J2EE on android Jan 12 02:06:11 that's what I love about android is there is a lot less bloat Jan 12 02:06:20 no Swing, no J2EE Jan 12 02:06:21 TacticalJoke use the TextView post() method to post to the MainThread? Jan 12 02:06:27 Yeah, that should work. Jan 12 02:06:37 The post method of any view should work. Jan 12 02:06:55 did you ever do j2eee shmooz? I think you said you did php or something Jan 12 02:07:04 never Jan 12 02:07:13 ah ok cool Jan 12 02:07:24 HevvyMetal: Web is just a complicated dev environment period. Mobile is much more stream lined for developers Jan 12 02:07:26 i used to call it Enterprise Java Bloat Jan 12 02:07:29 TacticalJoke is this happening becasuse onResponse runs in another thread? Jan 12 02:07:41 Yes. Jan 12 02:07:50 yiati yeah but EJB has a very heavy emphasis on E Jan 12 02:08:00 if you're not doing Enterprise with an E it's just way too much overhead Jan 12 02:08:07 what they needed was DJB Jan 12 02:08:11 Departmental Java Beans Jan 12 02:08:22 something more for midsize projects Jan 12 02:08:46 so post() is getting me back to the main thread Jan 12 02:08:53 Exactly. Jan 12 02:08:53 and I use the Runnable to execute code on the main thread Jan 12 02:09:10 https://developer.android.com/training/multiple-threads/communicate-ui.html Jan 12 02:09:35 Sweet,thanks Jan 12 02:09:48 activity.runOnUiThread(new Runnable() { Jan 12 02:09:48 public void run() { Jan 12 02:09:48 Toast.makeText(activity, "Hello, world!", Toast.LENGTH_SHORT).show(); Jan 12 02:09:48 } Jan 12 02:09:48 }); Jan 12 02:09:53 http://stackoverflow.com/questions/13746940/android-calling-ui-thread-from-worker-thread Jan 12 02:10:02 the runonuithread is a cheap shot that can be effective Jan 12 02:10:10 :| Jan 12 02:10:15 what? Jan 12 02:10:17 Can be? Jan 12 02:10:39 well it is effective but it's a little on the tight couplin side of things Jan 12 02:10:44 coupling Jan 12 02:10:55 drose379: The main thread has a message queue, which it processes one message at a time. By posting a Runnable, you're adding it to this queue. It'll be processed whenever the main thread is ready for it. Jan 12 02:11:04 Yes. Wouldn't want to couple your Android app to Android Jan 12 02:11:24 oh come on JakeWharton you have entire libraries (Dagger) dedicated to looser coupling Jan 12 02:11:27 what is happening here? http://pastebin.com/b2Qv28zM Jan 12 02:11:39 DI is not for loose coupling Jan 12 02:11:40 I have the jar for the library in my libs folder Jan 12 02:11:43 but your right the default android is very tightly coupled but I try for looser coupling Jan 12 02:12:00 I guess it depends how you define loose coupling but OK Jan 12 02:12:04 Is it ok if I do: public void setView(final String input_ Jan 12 02:12:06 )* Jan 12 02:12:10 I use the definition to define it Jan 12 02:12:12 Im asking about the "final" part Jan 12 02:12:18 what definition is that/ Jan 12 02:12:42 http://blog.ploeh.dk/2010/04/07/DependencyInjectionisLooseCoupling/ Jan 12 02:12:51 Yeah, you can use 'final' on parameters. Jan 12 02:13:18 Ok, thanks guys Jan 12 02:13:38 couldn't you argue that DI is to remove coupling all together? Which would not be any type of coupling (i.e. loose coupling) Jan 12 02:14:02 yiati: no. It's orthogonal Jan 12 02:14:26 If you made that argument you'd be conflating two patterns and practices. Jan 12 02:15:08 any ideas why that's not working? Jan 12 02:15:20 it's compiling fine, but crashes on launch Jan 12 02:15:33 Orthogonal in that DI has nothing to do with coupling? Jan 12 02:15:34 drose379: Note that you can use View.post even from the main thread. :) That'll do the same thing: add a call to the message queue to be processed as soon as the looper is ready (rather than running that call *instantly*). Jan 12 02:15:54 Though it's rare that someone would want to do that. Jan 12 02:16:01 hm,ok Jan 12 02:16:22 Thank you Jan 12 02:16:43 well it's not that rare that someone would want to do that Jan 12 02:17:02 yiati: not so much that it has nothing to do with, just that it's not a means of easily affecting coupling. You can try to use DI to decouple, but that's not its goal. Jan 12 02:17:19 What does everyone think of a Refurbished MBP for college? Jan 12 02:17:48 drose379: (thumbsup) Jan 12 02:17:48 Aren't Apple products crazy-expensive? Jan 12 02:17:53 http://martinfowler.com/articles/injection.html Jan 12 02:18:08 TacticalJoke *refurbished* Jan 12 02:18:16 I would never pay full price Jan 12 02:18:42 apple just nerfed some of their best selling machines so they used ones are selling ata premium Jan 12 02:18:51 Yeah. Just thinking "I wonder whether you could get a new product at the same price". Though I dunno. Jan 12 02:19:20 Is OSX good for University Comp Sci courses? Jan 12 02:20:10 it depends if you need windows for C# drose379 Jan 12 02:20:23 Ive heared people use TimeMachine for that Jan 12 02:20:23 mono Jan 12 02:20:29 or whatever they call it Jan 12 02:20:32 BootCamp Jan 12 02:20:33 sorry Jan 12 02:20:38 parallels Jan 12 02:20:42 yeah you can run windwos on a mac Jan 12 02:20:49 it gets to be expensive but yeah Jan 12 02:20:54 Is 8GB RAM enough? Jan 12 02:21:00 not to run parallels Jan 12 02:21:01 no Jan 12 02:21:15 woah, 16 GB is crazyyy exepensive Jan 12 02:21:22 no shit Jan 12 02:21:33 Well im used to running 2GB Jan 12 02:21:34 thats why the old (expandable) macs are selling at a premium Jan 12 02:21:50 Im running an 09 macbook, 2GB memory, love it Jan 12 02:22:00 8GB will be a big upgrade from 2GB. But get as much as you can afford Jan 12 02:22:13 MacPro 64Gb RAM, hardly ever see a beach ball Jan 12 02:22:30 anybody know what's up here: http://pastebin.com/b2Qv28zM? I've tried cleaning and rebuilding, but nothing :( Jan 12 02:23:07 is SSD really worth it? Jan 12 02:23:17 beach ball regan ? Jan 12 02:23:23 beach ball loader Jan 12 02:23:28 what year are you drose379 ? Jan 12 02:23:33 what a beach ball loader? Jan 12 02:23:33 96 Jan 12 02:23:42 spinning multicolor wheel when the mac is busy Jan 12 02:23:45 it means that something is not responding on the OS] Jan 12 02:23:47 Yeah Jan 12 02:23:50 what he said Jan 12 02:24:02 meh i've seen it plenty but i dont have the mac anymore Jan 12 02:24:32 drinfernoo: is it in your manifest? Jan 12 02:24:46 I would be willing to spend $1500 tops on it, and that will last me my 4 years of college and beyond most likely Jan 12 02:24:49 Agreed? Jan 12 02:25:13 yes Jan 12 02:25:34 For that money, do you really need to go refurbished? Jan 12 02:25:36 Leeds, no? but neither are any of my other jar libs Jan 12 02:25:50 so what is your primary purpose for Dagger then jakewharton? to simplify testing right? Jan 12 02:26:00 inversion of controle Jan 12 02:26:05 TacticalJoke yes because a computer with the same specs new would be almoast 3 grand Jan 12 02:26:07 Im guessing Jan 12 02:26:29 yes I know but what particular benefit are you getting out of the IoC JakeWharton is my question, since loose coupling doesn't seem to be much of a factor to you Jan 12 02:26:35 And i would be getting apple refurbished, not ebay refurb Jan 12 02:26:37 so is the benefit easier testing or...? Jan 12 02:26:38 i didn't say it wasn't a factor Jan 12 02:26:52 you said Dagger was for loose coupling Jan 12 02:26:56 ok so what are the factors besides loose coupling then?I'm just curious Jan 12 02:27:04 INVERSION OF CONTROL Jan 12 02:27:08 drose379, depends on the "specs" vs parts Jan 12 02:27:12 yes and I view IoC as loose coupling Jan 12 02:27:15 parts? Jan 12 02:27:20 well, that's unfortunate for you Jan 12 02:27:25 so what do you see the benefits of IoC being that aren't loose coupling? easy testing right? Jan 12 02:27:29 sure Jan 12 02:27:29 a computer with the same specs could be built for 1500ish Jan 12 02:27:36 ok and the easy testing is because...? Jan 12 02:27:40 if you go amd instead of intel Jan 12 02:27:40 inversion of control Jan 12 02:27:42 of the loose coupling right? Jan 12 02:27:53 I like OSX though Jan 12 02:27:57 ok well I think we agree but we just describe things differently Jan 12 02:28:01 but cool :) Jan 12 02:28:03 we do Jan 12 02:28:06 i describe them accurately Jan 12 02:28:07 you conflate them Jan 12 02:28:14 then martin fowler conflates them Jan 12 02:28:15 drose379 build a Hackintosh ;) Jan 12 02:28:20 drose379: you'd only save ~300 with a refurbished Mac from apple Jan 12 02:28:22 go argue with fowler about it Jan 12 02:28:26 no thanks Jan 12 02:28:30 ok Jan 12 02:28:39 Hmm, so I should buy new? Jan 12 02:28:41 i wouldnt want to argue with fowler either hehe Jan 12 02:28:59 Leeds, would it help to see my folder structure, code, etc? Jan 12 02:29:00 i'm sure he's a nice guy tho Jan 12 02:30:04 ah cool fixed this bug in my notifications Jan 12 02:30:19 \o/ Jan 12 02:30:25 | Jan 12 02:30:34 "/\" Jan 12 02:31:05 ty ty ty Jan 12 02:31:10 i try to fix at least 1 bug per day Jan 12 02:31:14 boy i'm tired now Jan 12 02:31:34 lol Jan 12 02:32:06 HevvyMetal, did you say you're not sure about restoring grid view position? Jan 12 02:32:36 drinfernoo no i don't think i said anything about the grid view why? Jan 12 02:33:16 do you know anything about restoring GridView position? lol Jan 12 02:33:25 drinfernoo: what you are after has nothing to do with GridView Jan 12 02:33:36 it's fundamental to all view state saving Jan 12 02:33:59 I'll be back in a minute Jan 12 02:38:29 Ok, if Im calling a method from inside a method that throws an exception Jan 12 02:38:49 why does something inside the method being called say I am missing the same excact exception Jan 12 02:39:28 The method being called isn't declaring it in its 'throws' clause? Jan 12 02:39:40 (Or catching it.) Jan 12 02:39:49 Its not declaring its own throws Jan 12 02:39:51 Does it have to? Jan 12 02:40:33 You're saying you have a method that at some point gives rise to an exception, and the compiler is complaining that you're not handling that exception? Jan 12 02:40:57 The code highlighting is complaining Jan 12 02:41:13 onResponse throws IOException Jan 12 02:41:30 then inside onResponse I am calling a method that works with the ResponseBody Jan 12 02:41:40 its saying that the second method needs to declare it throws Jan 12 02:42:30 yes Jan 12 02:43:17 the second method must also throw? Jan 12 02:43:39 right it's a java oddity drose379 Jan 12 02:43:45 drose379: yes Jan 12 02:43:50 thank you Jan 12 02:44:01 checked exceptions must be caught or declared Jan 12 02:44:13 if you do not catch it, you have to declare that you throw it in java drose379 Jan 12 02:44:23 RIghtr Jan 12 02:44:35 although you cuold just say you throw Exception you don't really have to be all that explicit but it's conventional to be explicit Jan 12 02:44:44 be explicit Jan 12 02:45:03 ok Jan 12 02:45:19 yeah being explicit is handy later down the road epecially when it comes to the IDE hints and all that Jan 12 02:46:13 If I log something, where will it show up? Jan 12 02:46:15 but ultimately the throws stuff is a little fig leafy but it's a java standard Jan 12 02:46:15 in logcat? Jan 12 02:46:21 yes Jan 12 02:46:22 yeah usually Jan 12 02:46:28 unless you have some custom logger Jan 12 02:46:53 Ok Jan 12 02:47:00 so does anyone else but me use convenience methods in an abstract superclass for their activities? Jan 12 02:47:02 Unhandled exceptions also show up in LogCat (which is extremely handy sometimes for discovering bugs). Jan 12 02:47:04 for instane for me I can say... Jan 12 02:47:05 ... Jan 12 02:47:20 setTV(R.id.FIRST, "Fred"); Jan 12 02:47:30 TacticalJoke: unhandled exceptions should crash your app Jan 12 02:47:31 instead of all this casting and findviewbyid stuff Jan 12 02:47:47 Yeah, that's what I mean. Jan 12 02:47:57 yeah Jan 12 02:48:09 sorry, JakeWharton, left the house for a minute. so is the saving state something the viewpager needs to do, or something the gridview needs to do? Jan 12 02:48:17 hey lasserix Jan 12 02:48:18 neither Jan 12 02:48:22 your adapter needs to do it Jan 12 02:48:24 hello Jan 12 02:48:29 I knew I'd end up seeing you again lol Jan 12 02:48:44 the grid view adapter, or the view pager adapter? Jan 12 02:48:51 the view pager adapter Jan 12 02:48:56 i told you all this like a week ago Jan 12 02:49:27 you need to save page state when a view is removed, restore page state when a page is added, and override the state-saving methods in the adapter to persist those values Jan 12 02:51:32 you can see an example here: https://android.googlesource.com/platform/frameworks/support/+/refs/heads/master/v13/java/android/support/v13/app/FragmentStatePagerAdapter.java Jan 12 02:51:37 search usage of mSavedState Jan 12 02:53:34 I just don't get how to adapt that example to my usage. I'm instantiating the gridviews all inside of my adapter, and they're not fragments lol Jan 12 02:53:52 do I need to have hard references to them? Jan 12 02:54:31 does the view get "removed" (isn't it destroy?) whenever its off screen? Jan 12 02:54:43 like when a fragment gets added to the backstack? Jan 12 02:54:57 In removeItem Jan 12 02:55:07 when is that called? Jan 12 02:55:20 When the view pager is removing the view. Jan 12 02:57:36 Im out guys, talk to you all later Jan 12 02:57:42 Thanks for the help Jan 12 02:57:49 drinfernoo: what state are you trying to save? Jan 12 02:57:59 and are you sure the state is not already saved? Jan 12 02:58:02 lasserix: his view pager views Jan 12 02:58:20 Yes, it won't be automatically **** ENDING LOGGING AT Mon Jan 12 02:59:59 2015