**** BEGIN LOGGING AT Fri Nov 20 02:59:58 2015 Nov 20 03:04:27 do the codepath guides actually have source code somewhere ? https://guides.codepath.com/android/Fragment-Navigation-Drawer Nov 20 03:17:02 http://hastebin.com/arovilawod.avrasm I'm getting the error of "unable to start activity componentinfo" as soon as my app launches. Can anyone take a look at my code and tell me what the issue is? Nov 20 03:23:12 Rush2112: is it in your manifest? Nov 20 03:23:22 is there a stacktrace explaining the error? Nov 20 03:23:51 can you indent your code properly so I can read it? Nov 20 03:24:18 i think the issue might be that my java file and the xml file have different names but i cant find where to rename the xml file Nov 20 03:24:36 that's not a problem Nov 20 03:25:01 but it's right clikc, refactorr, rename Nov 20 03:25:39 http://hastebin.com/idihalugob.avrasm here's the stracktrace Nov 20 03:26:33 android.widget.Button cannot be cast to android.widget.ToggleButton Nov 20 03:26:46 your xml and your java don't match Nov 20 03:27:06 change the button to a togglebutton or vice versa depending on what you're trying to do Nov 20 03:28:21 arrrgh Nov 20 03:28:23 i wouldnt have caught that Nov 20 03:31:31 im getting another issue. "Attempt to invoke virtual method 'android.text.Editable android.widget.EditText.getText()' on a null object reference". This happened even after I entered text into the text field. Do you have any suggestions? Nov 20 03:32:26 Rush2112: What is the message telling you. Nov 20 03:32:55 It's saying that it's trying to get the text value from an object that doesn't have any data? Nov 20 03:34:22 am I wrong? Nov 20 03:36:04 that means you're calling getText on a null object Nov 20 03:36:17 the edit text is null Nov 20 03:38:20 thats weird though. it shouldnt be null because i put text in there... Nov 20 03:38:46 can you format your java and share it again Nov 20 03:38:47 ? Nov 20 03:38:59 yes one second Nov 20 03:40:23 Rush2112: Y'all gotta learn y'all's Java. Nov 20 03:40:52 TJ did I show you the finished product? Nov 20 03:41:13 No, y'all didn't. Nov 20 03:41:17 Not finished really.. but you know what I'm sayin Nov 20 03:41:20 OK, one moment Nov 20 03:41:36 Since you helped me through it I thought youd want to see how it works I guess Nov 20 03:41:49 alex_PP: http://hastebin.com/uloyemuwak.avrasm Nov 20 03:43:58 looks like edittext1 doesn't exist to me Nov 20 03:44:32 you're referring to line 63, right? it absolutely does exist Nov 20 03:44:44 in main.xml? Nov 20 03:45:25 no, dialog_custom.xml Nov 20 03:45:37 well, there's your problem Nov 20 03:45:57 TacticalJoke, https://vid.me/Fvc3 Nov 20 03:46:02 Just a little demo I guess Nov 20 03:46:23 aaagh Nov 20 03:46:25 ok i think i fixed it then Nov 20 03:47:00 I need to make the cards and detail view dynamic, right now they are set up just to display dogs Nov 20 03:47:08 ok yeah that did it! thanks! Nov 20 03:47:10 Gotta change the icons for dif animal types Nov 20 03:47:22 Oh, neat. Nov 20 03:47:34 that's nice drose379 Nov 20 03:47:41 Though I didn't realise the next screen was search results. That seems to make "NEXT >" not quite right. Nov 20 03:47:59 I thought there was another "wizard" screen after this. Nov 20 03:48:10 Well if you choose dog or cat, it takes you to a details activity Nov 20 03:48:17 There is, but only for dogs and cats Nov 20 03:48:22 yeah, search would make more sense Nov 20 03:48:22 Ah, okay. Nov 20 03:48:40 or "Show me the puppies!" Nov 20 03:48:46 Maybe have it as "Search" when they have a sub icon selected Nov 20 03:48:52 Yeah, maybe. Nov 20 03:48:53 And a "Next" when they have dog or cat Nov 20 03:48:55 Ok, cool Nov 20 03:49:11 I think you'd probably want to get rid of the chevron (or whatever it's called) with "SEARCH", but I'm not sure. Nov 20 03:49:19 Maybe Nov 20 03:49:25 Thanks for checking it out guys Nov 20 03:49:34 And yeah its called a chevron accoring to the material icon lib Nov 20 03:49:40 It looks good though. Nov 20 03:49:50 change to hint to zip code too Nov 20 03:49:59 took me a while to work out what that was Nov 20 03:50:08 Yeah, that current hint isn't good. Nov 20 03:50:44 looking good drose379 Nov 20 03:50:49 and add the material circle animation to your animals when you clikc on them Nov 20 03:52:24 anyone have any experience with the youtube API? Nov 20 03:56:11 Not sure if you guys got my messages Nov 20 03:56:24 Nah. Nov 20 03:56:55 Oh I was saying I had another question if you have a second Nov 20 03:57:56 I guess just answer if you feel like it, but in that "Wizard" activity you were talking about, I have a FAB to init the search Nov 20 03:58:11 Do you think it would be smart to change it to the layout we did in the previous Nov 20 03:58:15 The bottom toolbar type Nov 20 03:58:52 yeah, i would Nov 20 03:59:03 Ok, lemme do that Nov 20 03:59:09 Maybe a back button on that too Nov 20 03:59:11 drose379: Only if that first activity is part of the wizard. Nov 20 03:59:21 I guess it is, yeah Nov 20 03:59:25 Its the start of the wizard Nov 20 03:59:36 Location, type -> details (optional) -> search Nov 20 04:01:37 would be cool if you populated the zip from location too Nov 20 04:01:49 I do Nov 20 04:02:00 When they click the icon to the left of it Nov 20 04:02:20 Just didnt know if I wanted to show you guys exactly where I live, altough im sure youre all great people Nov 20 04:02:28 So I used the manual alternative Nov 20 04:03:02 but that might be more trouble than it's worth Nov 20 04:03:02 just a minor thing Nov 20 04:03:02 ah, I see Nov 20 04:03:02 I thought that was just to show that it expected a location in the box Nov 20 04:03:02 cool Nov 20 04:03:14 drose379: There are 435 people here. That's probably at least several severally mentally unwell people. Nov 20 04:03:24 Yeah :) Nov 20 04:03:41 severely* Nov 20 04:03:48 alex_PP I know the icon may not make it obvious, but check out the hint in the edittext there Nov 20 04:03:52 Its subtle, but its there Nov 20 04:04:19 Is there a way to adjust the new activity animation? Id like to do slide Nov 20 04:04:26 From wizard1 to wizard2 Nov 20 04:04:26 ahhh, I thought the icon meant the animals Nov 20 04:04:36 It does Nov 20 04:04:38 I mean the location icon Nov 20 04:04:40 See it? Nov 20 04:04:41 http://hastebin.com/dusuyiwemi.avrasm ok so everything RUNS but when I try to hit the increment button (line 60) nothing seemingly happens. before i added the block at line 103 it DID cancel out (line 118) but I can't figure out why, the only error i get is "send user actionevent() mview == null" Nov 20 04:05:28 yeah, I understand now, drose379, but it's a bit ambiguous Nov 20 04:06:02 What do you mean ambiguous? Nov 20 04:06:38 in my brain, stuff on the left is a label, and on the right is an action Nov 20 04:06:38 not sure how that translates for other people though Nov 20 04:06:38 "click icon" Nov 20 04:06:38 there are a lot of icons on that screen Nov 20 04:06:52 Ha, true Nov 20 04:07:02 I have the background of that darker though Nov 20 04:07:10 To signify its it's own section Nov 20 04:07:24 it's its* :D Nov 20 04:07:25 if you log, I bet you'd get a lot of "cat" and "dog" entered in there Nov 20 04:07:51 Impossible Nov 20 04:07:56 oh yeah Nov 20 04:07:57 Its a numeric edittext :D Nov 20 04:08:20 Maybe I should start off with the dog highlighted, to show "Hey, pick something here" Nov 20 04:08:27 numbers Nov 20 04:08:28 suppose it's different using the app, hard to get a feel from a video Nov 20 04:08:41 I can send you the APK if you are interested :D Nov 20 04:08:54 Yeah, maybe it's best always to have a selection. Nov 20 04:08:57 maybe later, got to ride my bike now Nov 20 04:09:12 Beware: it takes upwards of 20 seconds to get location when indoors Nov 20 04:09:30 use the passive location provider Nov 20 04:09:31 So I bet people will end up just entering the 5 didgets manually Nov 20 04:09:45 Not much helps, location when indoors stinks Nov 20 04:09:55 do i mean passive? Nov 20 04:09:55 i'll dig out what i mean in an hour Nov 20 04:10:10 you don't need it to be super accurate, cell id should be close enough Nov 20 04:10:25 The API I am using needs a zip code Nov 20 04:10:31 So I need to get the zip from the client Nov 20 04:10:54 cel id location to zip lookup shouldn't take too long Nov 20 04:11:06 Oh, something to look into definately Nov 20 04:11:25 What is it? Nov 20 04:11:28 The Cellid? Nov 20 04:11:51 https://developer.android.com/reference/android/location/LocationManager.html#NETWORK_PROVIDER Nov 20 04:12:00 Ah alright Nov 20 04:12:18 Thanks a lot for the help alex_PP and TacticalJoke Nov 20 04:12:30 Ill be on tomorrow if you wanna try out the APK on your device alex_PP Nov 20 04:12:34 Its not done though Nov 20 04:12:51 yeah, i'll be about Nov 20 04:13:19 Awesome, thanks again guys Nov 20 05:11:01 I hate the stackexchange app Nov 20 05:11:18 it should remember my searches and preferred site Nov 20 05:17:42 i wish there was some key combination i could use to show / hide all the tool windows at the bottom of the screen at once: the gradle console and "android monitor" . CedricBeust have any tips ? Nov 20 05:18:28 What's the context? Nov 20 05:19:08 You can double-click the editor tabs to show or hide *all* tool windows, but I'm not sure that's what you want. Nov 20 05:19:58 ideally, when I build I want the gradle console & android monitor to just show, and when i click the editor i want them to go away Nov 20 05:20:24 thats the way i remember it in eclipse, but if there was a shortcut to just show/hude the stuff on the bottom that would be fine enough Nov 20 05:21:36 build in a terminal and alt tab Nov 20 05:23:06 its one of those minor things, but i must do it hundreds of times per day :) Nov 20 05:24:06 g00s: Trying to automate things you do a lot in the day is what separates good engineers from average ones Nov 20 05:25:10 CedricBeust what do you do - just leave those 2 panels up? (gradle console, logcat) ? i don't have enough screen estate so i minimize those when editing Nov 20 05:25:49 logcat, yes, the gradle console? Hardly ever. Besides, I use gradle less and less these days :) Nov 20 05:26:09 lol ok, the *kobalt* console :) Nov 20 05:26:23 The Konsole. Nov 20 05:26:35 isn't that kde Nov 20 05:26:46 i hated kde Nov 20 05:26:47 Yeah, I think I remember that. Nov 20 05:27:01 I hated KDE and GNOME (and everything else). Nov 20 05:27:27 'he're a broken as hell GUI that we barely got working, if only because somebody just wrote Qt for us" Nov 20 05:28:27 then i remember linus was like, i'm going to gnome and everyone went nuts Nov 20 05:28:34 I wonder how desktop (GNU plus) Linux is today. Haven't used it in years. Nov 20 05:28:46 i see screenshots and it still looks like crap Nov 20 05:28:47 It used to be so disappointing for me. Nov 20 05:28:49 Yeah. Nov 20 05:28:49 I use xfce - vaguely GNOMEish, but much simpler Nov 20 05:29:25 frankly, about all I use is chrome, xchat, vim and a terminal anyway :) Nov 20 05:29:42 dude, why not just use lynx and forego the window manager Nov 20 05:30:01 I actually tried that once. Went through a really weird phase. Nov 20 05:30:06 It wasn't fun. :\ Nov 20 05:30:06 use emacs as desktop :) Nov 20 05:30:48 i'm guessing the whole X thing held linux back ontouch thingies Nov 20 05:31:10 I used Linux for work for a few years, like Leeds, it was just: shell and IDE. For anything else, I was using my Windows laptop that runs rings around Windows Nov 20 05:31:32 er, windows laptop that runs rings around windows? mac? Nov 20 05:31:56 I need a new laptop. Not sure whether to go for a Mac. Nov 20 05:32:26 i love my 2009 MBP but kinda hate they are going nuts gluing batteries to chassis these days Nov 20 05:32:27 Though I do like right-clicking. Nov 20 05:32:53 i'll take 1mm extra for serviceable machine Nov 20 05:34:06 Yeah in my opinion, Windows is a much more productive OS than Mac and Linux, by far Nov 20 05:34:44 I genuinely find both OSX and Windows to be complicated and confusing Nov 20 05:34:52 CedricBeust: What do you think of Windows 10? Just curious. Nov 20 05:35:14 g00s: Apple’s quest for thin and light is frustrating. Nov 20 05:35:22 Windows 10 is very strong, much better than 8. But all of Windows 7, 8 and 10 make Mac OS look like an antiquated OS that just can't seem to grow up and innovate Nov 20 05:35:29 Although my new Dell XPS 15 feels like a tank compared to my Retina MacBook Pro. Nov 20 05:35:35 but I have been using *nix (mostly Linux, Solaris for a while) as my desktop OS for around 17 years, apart from a couple of years with a Mac... I'm very used to it Nov 20 05:35:40 I like the look of 10 but I'm worried about what people say about privacy there. Nov 20 05:36:07 Leeds: Just be aware you like it because you're used to it. Nothing wrong with that but if you expand your horizons, you might end up finding yourself becoming more productive Nov 20 05:36:14 Leeds: You’ve used Solaris and you find Windows complicated. o_O Nov 20 05:36:24 jfpoole: I was @sun.com at the time... Nov 20 05:36:33 Ah, that would help. Nov 20 05:36:41 Yeah I used Solaris workstations while at Sun, and older SunOS ones during my PhD... Oh boy Nov 20 05:37:27 I wanted to like Solaris, but when I got my hands on it it just felt like a strange form of Linux with no package manager and a horrible install process. Nov 20 05:37:54 It's a shame that Linux didn't take over the desktop. Could've been amazing if talented people had come together and produced something brilliant. Nov 20 05:38:36 OpenSource just can't produce good UI's Nov 20 05:38:52 CedricBeust: Amen. Nov 20 05:39:46 yeah i dont know why. i would think researchers would gravitate to open stuff because it lets them tinker Nov 20 05:39:47 I dunno - don't see there's any reason why someone like redhat or canonical couldn't have done it Nov 20 05:40:18 Leeds: Fair comment, now that they have money and they could hire non geeks to design those GUI's. Still looks like they decided not to. Nov 20 05:40:26 i remember KDE was going to get nepomuk ... Nov 20 05:40:45 right - a random community was never going to produce a winning consumer UI Nov 20 05:40:51 On the GUI front, it's really hard to beat Microsoft Nov 20 05:41:04 Gnome foundation did work on UX Nov 20 05:41:19 i think right before gnome 2, thats what led up to it anyhow Nov 20 05:41:22 i guess it wasn't enough Nov 20 05:42:03 one of the problems with linux is that it always seemed people would - instead of fixing things - just build another layer of crap ontop to deal with it Nov 20 05:42:14 at least in desktop land / X windows Nov 20 05:42:48 Linux tried to get it right for decades, then Apple came around and within a few years, they slapped a GUI on top of a UNIX kernel that was better than anything Linux had done Nov 20 05:42:56 Still, that GUI was still inferior to Windows' Nov 20 05:43:16 i'd rather take a good shell + OK desktop than great desktop and crap shell though Nov 20 05:43:29 i need my shell ! Nov 20 05:43:37 Hmm, I don't use the shell much anymore. Nov 20 05:43:39 Yeah shell is critical Nov 20 05:43:42 Mainly for version control. Nov 20 05:43:56 but the bar is pretty low and Windows clears it: msysgit or cygwin and you're good to go Nov 20 05:43:56 I used to be crazy about the command line. Nov 20 05:44:14 Nah for version control, especially git, do not use the shell, it's counterproductive. Use a GUI tool Nov 20 05:44:16 CedricBeust do you use Powershell at all ? Nov 20 05:44:24 I use Mercurial with my own GUI things on top. Nov 20 05:44:34 g00s: Only when I need to test some MS Dos compatibility stuff, which I do fairly often with kobalt Nov 20 05:44:41 Re: Free Software Usability Nov 20 05:44:42 http://mpt.mirror.theinfo.org/discuss/msgReader$173 Nov 20 05:44:59 CedricBeust: Mercurial has a way nicer CLI than Git. It's actually feasible to use Mercurial from the command line. Nov 20 05:45:15 Though I still like my graffical diff highlighter, graphical merger, etc. Nov 20 05:45:20 graphical* Nov 20 05:45:26 TacticalJoke: I've heard that a few times, I'm mildly skeptical of it but it doesn't matter anyway because like I said, you should be using a GUI tool to run git Nov 20 05:45:49 Why? Nov 20 05:45:52 git's output is way too rich to be used productively from a terminal Nov 20 05:45:53 yeah i use p4merge and sourcetree for viewing, but CLI for doing git stuff ... worry i don't know what the GUI is doing Nov 20 05:46:03 Oh, if running Git. Nov 20 05:46:20 Same with mercurial, diffs et al are much better viewed in a large graphical window Nov 20 05:46:24 Yeah, I never liked GUIs for core version-control commands. Nov 20 05:46:59 there is libgit, but i wonder how much of these GUIs are just parsing git output Nov 20 05:47:08 seems kinda brittle Nov 20 05:47:24 That's the problem with porcelains, they are fundamentally limited in what they can do in an ANSI terminal Nov 20 05:47:24 at least thats the way tig worked Nov 20 05:48:33 Yeah, viewing diffs or doing merges is probably best in a GUI. But I can't stand a GUI for basically anything else in version control. Nov 20 05:48:42 i'd probably be using Windows now if I could go into a MS store and they had 6 no-brainer choices (max) for a good machine. every time i decide to look at all the machines i go crazy with the choices. but i guess the xps13/15 are good Nov 20 05:48:46 Maybe for commit-message editing. Nov 20 05:49:05 g00s: Yeah, too much choice is a bad thing. Nov 20 05:49:30 Research finds that people feel stressed not only while making the choice but also after (even if the choice cannot be undone). Nov 20 05:49:41 They'd be happier if they had been presented with fewer choices. Nov 20 05:49:55 yeah i remember Schwartz wrote 'paradox of choice' Nov 20 05:50:32 but diener wrote about choice & happiness also; the more choices you have the more likely after deciding you wonder if it was right Nov 20 05:51:51 but different personalities struggle with second guessing more i guess Nov 20 05:51:56 hey y'all, anyone know how to implement sticky headers using recyclerview? Nov 20 05:52:16 helix1 jacobtabak has a github library Nov 20 05:52:24 TacticalJoke: GUI is also super useful for chunk staging. I just never used the feature when using the terminal, just too clumsy Nov 20 05:52:34 Thanks, g00s ! Nov 20 05:53:22 Ah. Mercurial doesn't have a staging area, but I don't mind using `hg amend -i [--interactive]` from the command line. Nov 20 05:53:29 Or `hg commit -i` or whatever. Nov 20 05:53:47 I don't know how people do without a staging area Nov 20 05:53:56 Why is it needed? Nov 20 05:54:05 It seems like a poor man's changeset to me. :D Nov 20 05:54:19 I just use real changesets and merge them, amend them, fold them, whatever. Nov 20 05:54:29 its one of those aspects of git that has been controversial Nov 20 05:54:45 Very often, by the time I'm ready to push stuff, all the files I have edited can be broken in multiple change sets. The staging area is awesome for that Nov 20 05:55:34 i keep having weird issues with git stash though, dunno wth i'm doing wrong. i really would like to hop around between branches without checking stuff in Nov 20 05:55:41 only thing i liked about clearcase Nov 20 05:56:01 CedricBeust: Is that better than committing interactively and perhaps also amending? Nov 20 05:56:14 It's complementary Nov 20 05:56:42 i like to move stuff into staging after i've given it a once over - OK, this is ready for commit Nov 20 05:56:57 one by one after review stuff gets staged Nov 20 05:57:08 easy to see what i've reviewed and what i haven't Nov 20 05:57:49 * g00s is just average git user at best Nov 20 05:58:37 Learn SourceTree and within hours, you'll be using interactive rebases like a ninja Nov 20 06:16:03 If I need to publish something Maven central repo, do I need to have a public git repo or private is also fine ? Nov 20 06:16:19 Doesn't matter Nov 20 06:17:46 g00s: have you heard of powershell on windows ? Nov 20 06:18:27 PowerShell is another example of Microsoft innovating where Linux stopped even trying 20 years ago Nov 20 06:18:30 it seems pretty powerful Nov 20 06:27:14 for me gradle 2.9 + plugin 1.5 has gotten much faster Nov 20 06:28:15 builds that were taking about 20 sec are now 14 seconds Nov 20 06:29:20 ffs anyone know how to switch back to the old github design Nov 20 06:34:53 g00s: Got a github project I can clone to test kobalt on? Nov 20 06:35:05 CedricBeust no :( Nov 20 06:35:18 no projects on github Nov 20 06:35:23 private stuff only? Nov 20 06:37:23 yeah Nov 20 06:54:59 NYC BSD user group meetup was good...Stephen Bourne of Bourne shell fame in attendance Nov 20 06:57:52 as much as i like my shell i hate writing any shell scripts, which seems like hours fiddling with weird symbols to get things working :D Nov 20 06:58:36 Ologn which shell do you use? zsh looks decent Nov 20 06:58:56 but seems like pretty much everything expects bash Nov 20 06:59:10 I was going to ask him about interactive shell versus shell scripts but everyone seemed to want to hit the bar Nov 20 07:00:07 A long time ago I used plain sh (1980s), then I switched to csh for a while...then I think I went back to sh...then I was on ksh at an investment bank...and have been bash for the past years Nov 20 07:00:48 He himself said sh's language was "arcane" Nov 20 07:00:50 no Nov 20 07:00:54 "baroque" Nov 20 07:01:03 :D Nov 20 07:01:34 He also said he did if...fi and so forth because it made more sense when editting with ed etc. then C's curly braces Nov 20 07:01:58 But he said with modern IDE's it is not as helpful Nov 20 07:02:01 lol Nov 20 07:52:06 @g00s Do we have to manually upgrade gradle ? Nov 20 07:52:18 I don’t think android studio uses 2.9 Nov 20 08:13:55 Hi all, is it possible to create an array buildconfigfield? Nov 20 08:15:07 suhas_sm, just update the version in the gradle wrapper properties file. Nov 20 08:16:33 FrancescoV, yes. Nov 20 08:16:38 FrancescoV, I would imagine yes, but can't try right now... the buildconfigfield thing looked like a simple string format Nov 20 08:17:03 Ok, thanks Nov 20 08:21:40 Zharf, can you show me how you do it? Nov 20 08:21:51 @Mavrik Do you mean this -> distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip ? to 2.9-all.zip ? Nov 20 08:22:11 Yep. Nov 20 08:22:17 2.9 is bug free ? Nov 20 08:22:37 That's a naive question :) Nov 20 08:22:43 lol Nov 20 08:23:06 Got delivery today. Will try it over the weekend Nov 20 08:23:15 cant fight bugs now :) Nov 20 08:23:17 Thanks Nov 20 08:24:00 FrancescoV, on the bus right now, can't do it off the top of my head, I'll be by my computer in about half an hour... maybe Mavrik has an example Nov 20 08:24:30 Zharf, ok thanks Nov 20 08:24:33 the `buildConfig` field in `build.gradle` is just a string that gets concatenated into the field. Nov 20 08:25:00 Mavrik, can you show me an example of a buildconfig string which acts like a string array? Nov 20 08:25:00 So you can do anything that fits into = pattern :) Nov 20 08:26:03 http://stackoverflow.com/a/17515108 <-- do this Nov 20 08:29:19 Mavrik, thats a working solution but it's for supported languages, and it would be nices to put in in my build.gradle I think Nov 20 08:29:42 FrancescoV, you can :) Nov 20 08:30:19 Mavrik, but not with the link, right? Nov 20 08:30:31 What I'm trying to make you do is to go TRY IT. Nov 20 08:32:29 Add the buildConfigField parameter to build.gradle and you're done. Nov 20 09:01:34 how to get PreferenceActivity title programmatically? Nov 20 09:03:31 is it possible to clone android os and all mounted disks to it over usb cable? Nov 20 09:03:42 nvm found it getWindow() Nov 20 09:05:54 Mavrik, it works now, first I was testing to get double quotes in my string but now I use just a ',' as separator Nov 20 09:08:06 Hi folks, anyone would know why launching my app in android studio does not rebuild it before deploying? Happens since I upgraded to android studio 1.5 Nov 20 09:08:59 freebyte, it won't rebuild if no changes detected Nov 20 09:09:21 otherwise it should Nov 20 09:09:45 vegetablesalad19: I intentionally added errors to my code, it does not rebuild and offers me to deploy the last correct apk Nov 20 09:11:05 freebyte, hmm never happened to me Nov 20 09:11:24 try reinstall Nov 20 09:14:53 vegetablesalad19: okay, I will reinstall and check if it fixes the issue. Thx Nov 20 10:10:37 Hello! I've got an activity with android:exported="true" and an intent-filter with action name "com.jim87.MainActivity". In another application I try to do startActivity(new Intent("com.jim87.MainActivity")); - but it throws an exception: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.jim87.MainActivity flg=0x10000000 } - what am I doing wrong? This is the manifest: http://pastebin.com/9r93EAHT thanks! Nov 20 10:15:08 pfn: sorry I was offline, did you get my message about daggger and sbt ? Nov 20 10:20:41 fixed: had to put the default category in the intent filter! Nov 20 10:54:57 Hello, I have some memory crashs, when there is still a lot a not allowed memory. I dont understand why Nov 20 10:55:29 stacktrace is : Failed to allocate a 118 byte allocation with 16777216 free bytes and 362MB until OOM; failed due to fragmentation Nov 20 10:56:24 362 MB until OOM, so wtf :p Nov 20 10:56:40 Gc is just failing to allocate more space Nov 20 10:57:25 it could be linked to the sdk version ? Nov 20 10:58:29 what are you trying to do? Nov 20 10:59:50 loading files, creating objects.. Nov 20 11:00:09 the crashs are kind of random Nov 20 11:01:56 are you trying to load big bitmaps anywhere? Nov 20 11:04:12 for sure you are trying to allocate something to big, also this is not the complete stacktrace at all Nov 20 11:17:34 does anyone use sl4a? Nov 20 11:28:33 claz: I think it's pretty long-dead at this point Nov 20 11:29:03 oh Nov 20 11:44:00 adq: yes i am trying to allocate big stuff, but sometimes it happen when i load bitmaps, sometimes when i load files... What is surprising it that it was working well for over 1 year. But recently, GC fails to enlarge the heap size Nov 20 11:45:18 you ask for too much, it's not that the device would not have the ram, it's more than each process is constraints with a little heap size (32, 4.., 64, 96, etc depends on device & few settings) Nov 20 11:46:03 it's possible to bypass that with the ndk, but you don't want that, you probably need to resize your bitmap Nov 20 11:46:22 s/than/that/ Nov 20 11:46:48 a stacktrace example : Nov 20 11:46:51 16/11/2015 07:45:38 : {APP_VERSION_NAME=7.03, PHONE_MODEL=GT-I9505, ANDROID_VERSION=5.0.1, BRAND=samsung, CUSTOM_DATA=, STACK_TRACE=java.lang.OutOfMemoryError: Failed to allocate a 118 byte allocation with 16777216 free bytes and 362MB until OOM; failed due to fragmentation (required continguous free 8192 bytes for a new buffer where largest contiguous free 4096 bytes) at java.lang.String.(String.java:400) at java.io.Buffer Nov 20 11:47:19 are you loading an entire book in your string lol? Nov 20 11:47:24 no lol Nov 20 11:47:29 its simple lines Nov 20 11:47:38 i suggest you to track your memory allocation Nov 20 11:47:48 im tracking it Nov 20 11:48:03 just before the crash : Nov 20 11:48:05 16/11/2015 07:45:34 : [MEMORY STATS] : Heap Max Size = 536.0 Mb ; Current Heap Size = 155.0 Mb ; Heap Usage = 28 % ; Allocated = 155.0 Mb 16/11/2015 07:45:34 : [MEMORY STATS] : Heap Max Size = 536.0 Mb ; Current Heap Size = 155.0 Mb ; Heap Usage = 28 % ; Allocated = 155.0 Mb Nov 20 11:48:23 that's not a regular heap size oO Nov 20 11:48:49 Heap size is 155.0 Mb, and allocated also 155.0 Mb Nov 20 11:48:55 -> crash Nov 20 11:49:21 http://developer.android.com/tools/performance/allocation-tracker/index.html Nov 20 11:49:55 well, i'm not use too with device having 536MB of max heap *.* Nov 20 11:50:03 i told, i often see < 128MB Nov 20 11:50:19 Galaxy S4 has 536 Nov 20 11:50:42 S3 has 268.0 Mb Nov 20 11:50:44 so if 4apps reaches the max heap Nov 20 11:50:50 and problem appear only on S4 Nov 20 11:50:52 you full the ram, not even counting the os? Nov 20 11:51:02 samsung are really crazy -__- Nov 20 11:51:11 ^^ Nov 20 11:51:54 i don't know more, but you might have a leak too Nov 20 11:52:08 since it would have crashed otherwise far ealier on other device with a tiny heap Nov 20 11:52:18 or it's another samsung shit thing Nov 20 11:52:54 i was thinking the android version could be in cause Nov 20 11:53:10 because my application traget is api 18 Nov 20 11:53:20 and the guy with the problem is in api 21 Nov 20 11:54:37 Well ill switch from Ecplise to android studio to track memory Nov 20 12:08:28 gotnut suggested i repost my question from -root here Nov 20 12:08:34 is anyone familiar with the microG GmsCore project? if so; i was wondering whether it provides the functionality it claims (e.g. ability to use Google Push Messages) _without_ needing a Google account? Nov 20 12:08:39 otherwise, does anyone know whether you can get the Push Messages working using the real nonfree gapps, but again without a google account? Nov 20 12:31:32 good morning :) Nov 20 12:31:37 moin moin Nov 20 12:31:45 even though it's 13:31 here Nov 20 12:32:29 Good morning is like Merry Christmas, you just adapt it to your situation ;) Nov 20 12:33:06 Yes, I just logged on and I'm already cause trouble :D Nov 20 12:33:54 GM 18:03 here. lol Nov 20 12:34:18 wow!! Where are you sudhirkhanger ? Nov 20 12:34:27 Japan? Nov 20 12:34:32 India Nov 20 12:34:32 how do I check if an app can be uninstalled? Nov 20 12:35:26 cezium, It depends where it's installed. Nov 20 12:35:48 really? 11 hours between here and India, I didn't know that Nov 20 12:36:10 MikeWallaceDev: are you sure? Nov 20 12:36:13 MikeWallaceDev: US? Nov 20 12:36:45 Montreal, Quebec, Canada Nov 20 12:36:55 North America, Earth! :D Nov 20 12:37:07 nice. Half a globe around. Nov 20 12:37:23 pretty awesome, eh? :) Nov 20 12:37:49 cezium, as long as you have the rights, it will uninstall. I don't know of any other restrictions Nov 20 12:38:35 an app is either installed publicly or in the system folder. You can't delete system apps, unless you're root Nov 20 12:38:35 Rights? don’t think there is any permission required to uninstall an app as the user has to approve it. Nov 20 12:38:58 if you installed the app, then you can remove it :) Nov 20 12:39:27 give more details of your case Nov 20 12:39:34 I’m talking about doint it programatically Nov 20 12:40:00 you can't, unless the device is rooted Nov 20 12:40:15 you can call an Intent, but you can't uninstall yourself Nov 20 12:44:16 Well. I wan’t to know if the app can be uninstalled so that I don’t try to make an uninstall intent if the package can not be uninstalled. Nov 20 12:45:36 Hey people.. Nov 20 12:46:00 I'm looking for a small bit of info on the NDK samples Nov 20 12:46:31 I notice that none of them seem to include an Android.mk file. Nov 20 12:46:36 Should they? Nov 20 12:46:50 cezium, are you making a launcher? File manager? It's not usually something we need to worry about Nov 20 12:47:09 Launcher in this case Nov 20 12:47:11 I want to make a small game actually. Nov 20 12:47:18 baash05, I didn't do any NDK stuff Nov 20 12:47:25 sorry Nov 20 12:47:49 cezium, ok, that helps Nov 20 12:48:11 All good.. I've built a few apps the Java way, and I'm looking at moving into c++/c, but all the docs seem to conflict. Nov 20 12:48:19 Can’t se how it makes a difference in the solution rather then motivating the issue :P Nov 20 12:51:24 baash05, I should go the C++ way too... I hate Java. Nov 20 12:52:19 cezium, Package manager has getApplicationInfo() ApplicationInfo has FLAG_SYSTEM Nov 20 12:52:46 I don't really hate it, or love it.. I've become agnostic really.. though I can't get my head into python's indenting and cobol does me in. I just want to make some games.. Nov 20 12:53:46 even better PackageManager::getPackageInstaller() Nov 20 12:54:31 I was a C++ dev for 15 years, I hate Java :D Nov 20 12:55:20 c++ for 8 + Java for 2 + ruby for 3 VB and delphi mixed in. Nov 20 12:59:55 nice Nov 20 13:04:51 One thing that really has me confused about c++ dev is how much information is given on how to get it working in eclipse. Like they don't want people to know AS can do it. Nov 20 13:30:55 hello all Nov 20 13:31:51 i use webview option in android studio how i can set a page alternative if the web page dont load or an image ? Nov 20 13:32:09 or is not reacheable. Nov 20 13:32:39 I'm not sure Globalirc , but I think that you have to look into WebClient Nov 20 13:35:58 i dont ask very good i whanted to know how is the code if the web page dont load or getting 404 error to load an internal image or text "Currently Unnavable try laiter" Nov 20 13:37:18 I understood :) Look into WebClient Nov 20 13:38:28 btw i'm newbie on this :D you can be more explicative ? Nov 20 13:38:57 String url = "http:"; Nov 20 13:39:02 i have this code Nov 20 13:39:05 witch work Nov 20 13:39:23 load the page but when my server is down load a 404 error page Nov 20 13:39:26 like a browser one Nov 20 13:42:51 i found ;) Nov 20 13:42:52 mWebView.setWebViewClient(new WebViewClient() { Nov 20 13:42:52 public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { Nov 20 13:42:52 mWebView.loadUrl("file:///android_asset/myerrorpage.html"); Nov 20 13:42:52 } Nov 20 13:42:52 }); Nov 20 13:44:13 Globalirc: Please use pastebin Nov 20 14:38:25 does closing/opening physical keyboard on a slider phone restart activities or trigger any lifecycle methods or whatnot? Nov 20 14:40:35 yes Nov 20 14:40:42 configuration change events Nov 20 14:40:57 you are welcome Nov 20 14:41:03 my hourly rate is $140 Nov 20 14:41:11 rounded up to the hour Nov 20 14:41:25 please paypal mike@mikedg.com within 14 days Nov 20 14:41:27 thanks Nov 20 14:47:36 gordon_, see u2020 test case for example of dagger Nov 20 14:47:55 not dagger 2, but should be similar Nov 20 14:48:44 Hi, i need some help... I have Android 4.4 on an Allwinner H3 Box and everything works - except that i dont have the rt2800 kernel modules i need for usb wifi... Nov 20 14:49:15 Due to the fact that i dont have access to their SDK / Sourcecode i would like to know if it is possible to extract those modules from an already working android? Nov 20 14:49:44 GeneralStupid: Try #android or #android-root, this channel is for app dev Nov 20 14:50:19 SimonVT: thx Nov 20 14:56:39 yes Nov 20 15:07:45 so I'm reading SimonVT's answer and thinking to myself "well, that's not very nice. Calling someone general stupid." Then.. Oh. HAHAHA Nov 20 15:08:45 Just a happy conincidence that it was actually his nickname Nov 20 15:08:56 hahaha Nov 20 15:09:24 Globalirc, good for you for finding it on your own. :) Nov 20 15:11:09 MikeWallaceDev: were you the one writing that android book? Nov 20 15:11:43 yeah. I was. Nov 20 15:12:30 are you Mike DiGiovanni? Nov 20 15:12:33 yeah Nov 20 15:12:36 was that ever released? Nov 20 15:12:50 It's complicated... Nov 20 15:13:00 hah, dont worry about it then Nov 20 15:13:54 http://amzn.to/1XepDI3 Nov 20 15:14:29 But it's a lie. I didn't write it. Fell into a depression. Nov 20 15:14:54 Phil wrote it all. Nov 20 15:22:12 ah thats rough Nov 20 15:23:00 Depression is a bitch. My mom has cancer and I'm jealous because I wish I had that instead. Nov 20 15:23:24 mikedg: :o Nov 20 15:23:43 I don't wish depression on anyone... Nov 20 15:24:15 yeah, depression. android dev gives that to you. Nov 20 15:24:43 actually squirrel, I started AndroidDev because of it :D Nov 20 15:25:17 I couldn't deal with big projects anymore, so I started doing Android. Nov 20 15:25:24 It helped Nov 20 15:25:41 Of course, this is in the 1.5 days... Nov 20 15:27:45 things were simpler back then Nov 20 15:28:41 Just a little bit ;) Nov 20 15:29:44 but really, it was just better defined. It was still a big OS. But they weren't rushed to make it. Nov 20 15:30:06 Having to adapt to EVERYTHING made them rush out new architectures... Nov 20 15:31:09 It's not easy when you build an OS, and _then_ decide to adapt for business use :-O Nov 20 15:31:23 and multi-user Nov 20 15:31:40 Those are HUGE chunks. Nov 20 15:34:14 I have a model and an Activity and want to implement some sort of MVP to keep the business logic out of the Activity. What is the best way to do this? How much logic should stay in the Activity and waht should be moved to the POJO Presenter? Nov 20 15:38:44 Are you trying to use Clean Architecture? If so, no logic in the Activity. Nov 20 15:39:21 My rule of thumb is to push everything as close to the core as possible (core in my case by a Use Case) Nov 20 15:39:38 For example if a button click triggers a search, should that search happen in the presenter? Nov 20 15:39:54 ah, yeah, those are toughies :) Nov 20 15:40:55 What I do is, if the click triggers another use case, then I handle it in the Activity. If it deals with the current use case, send it to the presenter Nov 20 15:41:34 I will usually start the second activity for result, then on return, let the use case know about it Nov 20 15:43:32 Is there a way with Okio + Mockwebserver + OkHttp to debug what's cancelling the thread causing https://square.github.io/okio/okio/Timeout.html#throwIfReached() to be called? Nov 20 15:44:16 That method says it is called if "if the deadline has been reached or if the current thread has been interrupted", and I know that it is not being called because of the deadline, but I'm not sure how to figure out how the current thread is being interrupted Nov 20 16:01:48 If I do findViewById in onActivityCreated in a Fragment, do I need to set the Views to null in onDestroyView to prevent memory leaks? Nov 20 16:02:53 huh, that's a great question! I wonder why I never heard that one before. Nov 20 16:03:54 I mean, we never set them to null. I just can't think of why it works right now... Nov 20 16:08:17 barq: Nope, there's GC in java land Nov 20 16:08:35 Anyone have any experience with marketing their applications? Nov 20 16:10:43 Heavily upvoted comment in http://stackoverflow.com/questions/6495898/findviewbyid-in-fragment that suggests you need to GC yourself. Nov 20 16:11:41 barq, no Nov 20 16:13:09 barf, thats probably wrong, which comment Nov 20 16:13:52 I know we don't, but I can't figure out why not... Nov 20 16:14:09 you only set them to null if you're a gc root Nov 20 16:14:15 and fragments aren't Nov 20 16:14:21 unless you're doing crap like retain instance Nov 20 16:15:37 yay, protify is starting to get some traction Nov 20 16:17:22 Whats profity? Nov 20 16:17:35 drose379, https://www.youtube.com/watch?v=LJLLyua0bYA Nov 20 16:17:40 and not profity Nov 20 16:17:51 Oh, protify Nov 20 16:17:56 Thats awesome, congrats man Nov 20 16:18:21 eh, it's not making me rich Nov 20 16:18:23 :p Nov 20 16:18:36 so... It's not profity? :D Nov 20 16:18:42 nope Nov 20 16:18:50 Did you expect it to pfn? Nov 20 16:18:58 no Nov 20 16:19:10 so nothing to "congrats" :p Nov 20 16:19:25 You made something new and awesome, congrats man Nov 20 16:20:15 "not making me rich" "not PROFITy" :P Nov 20 16:21:17 MikeWallaceDev, do you have anything on the GPS? Nov 20 16:21:21 Just wondering Nov 20 16:21:36 on tha wha? Nov 20 16:21:38 GPS Nov 20 16:21:43 GooglePlayStore Nov 20 16:21:45 lol Nov 20 16:21:48 how do I with android? Nov 20 16:22:03 by being with android Nov 20 16:22:06 oh. yeah, of course... Though nothing big right now Nov 20 16:22:15 who calls it gps... Nov 20 16:22:16 Link to your stuff? Nov 20 16:22:24 Idk, I just made it up 2 seconds ago haha Nov 20 16:22:28 never heard GPS either :D Nov 20 16:22:38 No neither have I, before I just said it Nov 20 16:22:41 Its a thing now Nov 20 16:22:49 It's not. Trust me. :P Nov 20 16:22:51 hahaha Nov 20 16:23:00 We'll see Nov 20 16:23:04 :P Nov 20 16:23:06 I still go to market.android.com ;) Nov 20 16:23:20 The good old days right Nov 20 16:23:22 Play Store. Worst name ever. Nov 20 16:23:44 I know, bleh Nov 20 16:23:57 play music then Nov 20 16:24:03 What other stores are there? Doesnt Amazon have something? Nov 20 16:24:14 fuck me, there are dozens Nov 20 16:24:19 Darkwater, you figure out all your flavor stuff? Nov 20 16:24:38 pfn: I just thought of some things Nov 20 16:24:47 the image resources are being overwritten partially Nov 20 16:24:58 now I'm trying to change the applicationId, which also works only partially Nov 20 16:24:58 Planning on releasing something soon, trying to plan my method of attack Nov 20 16:25:05 Darkwater, there's no such thing as partially Nov 20 16:25:10 drose379, https://play.google.com/store/search?q=pub:Rise%20Software%20Inc. Nov 20 16:25:11 it works or it doesn't, and all my tests work Nov 20 16:25:23 [info] Error: Activity class {nl.almanapp.vindicat/nl.almanapp.designtest.LoginActivity} does not exist. Nov 20 16:25:43 Only Focus is worth looking at, maybe Minecraftica. Nov 20 16:25:49 [info] Error: Activity class {nl.almanapp.vindicat/nl.almanapp.designtest.LoginActivity} does not exist. Nov 20 16:25:52 uhh Nov 20 16:25:54 Darkwater, yeah, appid changes the app id only but not the inner classpaths. it's funky. sometimes you'll have weird results. Nov 20 16:26:01 Hhahaha The Slap App key is still there, but the app isn't :D Nov 20 16:26:11 Darkwater, you might be using full classpaths in your manifest instead of ".LoginActivity"? Nov 20 16:26:14 dragorn: I don't remember that being the case with just gradle? Nov 20 16:26:18 hm, lemme check Nov 20 16:26:19 Darkwater, it is Nov 20 16:26:29 Darkwater, since I haven't had time to play w/ protify yet Nov 20 16:26:30 ah yes, I see Nov 20 16:26:38 Darkwater, what about that is wrong, looks correct to me Nov 20 16:26:42 I thought I was sure I had it working before in gradle Nov 20 16:26:43 your appid is nl.almanapp.vindicat Nov 20 16:26:45 give me a minute Nov 20 16:26:49 MikeWallaceDev, what an awesome idea with the "Focus" app Nov 20 16:26:53 your activity is nl.almanapp.designtest.LoginActivity Nov 20 16:27:05 drose379, thanks. Works well Nov 20 16:27:09 there's no mismatch in activity vs. app id there Nov 20 16:27:14 MikeWallaceDev, that app should be a lot more popular man, why isnt it? Nov 20 16:27:29 drose379, it's actually a photo gallery add-on Nov 20 16:27:37 Oh, the unpaid one is pretty successful Nov 20 16:27:48 I haven't had time to promote it Nov 20 16:27:59 So whats the deal with paid apps on GPS? Nov 20 16:28:03 Whats their cut? Nov 20 16:28:14 30% I believe Nov 20 16:28:16 MikeWallaceDev, also sort of superceded by lollipop Nov 20 16:28:52 So about 29 cents each time you sell one focus app Nov 20 16:28:54 Hmm Nov 20 16:28:55 pfn, the pin feature in Lollipop is crap Nov 20 16:29:06 Can you animate something like a TextView in android using the Mttrix.setPolyToPoly function? Nov 20 16:29:36 Matrix* Nov 20 16:29:37 MikeWallaceDev, eh, works well for me Nov 20 16:30:29 nah, there are many ways to get out of it. I didn't even enable it... Nov 20 16:30:45 eemgr, I've animated text with Spans. https://www.youtube.com/watch?v=3Cz5I0g_A6k Nov 20 16:31:03 Ha! Focus video : https://www.youtube.com/watch?v=0kKNmVo9I7U :) Nov 20 16:31:35 MikeWallaceDev, many ways? Nov 20 16:32:13 pfn, but more importantly, pinning will lock you into gallery, but won't limit what media you can see Nov 20 16:32:13 hithere - I am having one old school device Alcatel Ot-918D (android 2.3.6), problem is that I am unable install usb drivers for this device on 64bit win vista. In device manager can be seen this http://snag.gy/Fyr7P.jpg (btw I am successfully using samsung device for dev). Vista keeps saying http://answers.microsoft.com/en-us/windows/forum/windows_vista-hardware/this-device-is-not-configured-correctly-code-1/3926fecc-0f2a-4533-8da7-6ab329aad4b0?au Nov 20 16:32:13 th=1 Nov 20 16:32:46 MikeWallaceDev, ok, that makes sense Nov 20 16:33:01 Ha, hadn't seen that video in a long time. I did a good job! :D Nov 20 16:33:30 Any idea how to better diagnostic vistas code 1 - which means (try it again and again, or reinstal windows)? Nov 20 16:35:22 pfn: Why is retainedInstance crap? Nov 20 16:35:46 MikeWallaceDev: Ideally I just want to transform a TextView so that it looks like its flipping open, but I need it to retain its TextView properties so I can have selectable text/links. Nov 20 16:36:52 eemgr, a TextView uses Spans. What you see in the video is just one TextView with the word Cinemascope in it Nov 20 16:37:01 oh excellent, thanks Nov 20 16:41:21 So tired of dragging all the icons into the hdpi,mdpi.. folders when I download new icons Nov 20 16:41:30 Gotta write a script to do this automatially Nov 20 16:42:19 I created a Gimp plug-in that does that... Well, not exactly. It takes one image, resizes, and puts in the correct folders Nov 20 16:42:35 Sounds bad ass Nov 20 16:42:50 How does the resizing work for hdpi, mdpi, xhdpi, xxhdpi? Nov 20 16:43:09 I love it during development. I can make quick changes and the get exported to every size Nov 20 16:43:54 there are many modes. You can tell it if you are making an icon, or etc, or custom. Nov 20 16:44:19 if custom, you tell it the original size and it will adapt accordingly Nov 20 16:45:09 Sweet Nov 20 16:45:16 Man I need some NavDrawer help Nov 20 16:45:18 Mine looks like hell Nov 20 16:46:29 drose379, http://ibin.co/2NDuOkHoA3fQ Nov 20 16:46:43 Ah, awesome Nov 20 16:46:52 How did you make it? Nov 20 16:47:09 it's a Gimp plug-in that I made in Python Nov 20 16:47:46 Bad ass man Nov 20 16:49:44 Need some opinions Nov 20 16:49:53 It's open source, but I didn't update the script... I can do that later if you want to use it Nov 20 16:50:59 Ill let you know MikeWallaceDev, but I got another question Nov 20 16:51:10 So I'm working on a pet adoption app Nov 20 16:51:20 cool :) Nov 20 16:51:30 And Im working on the nav drawer for the home activity Nov 20 16:51:46 You know how most drawers have the large box at the top, then the actual options Nov 20 16:51:54 You know what I mean? Nov 20 16:51:57 (btw, I meant cool for the pet adoption app :) ) Nov 20 16:52:04 Oh, thanks :D Nov 20 16:52:20 Anyways, you know what I mean about the item at the top of most nav drawer layouts? Nov 20 16:52:50 yeah Nov 20 16:53:08 So for this app, you dont have to log in, so I cant relly display the users profile photo and name, like I usually would Nov 20 16:53:30 So I was trying to think of something to put there, and im thinking a "Featured Animal" Nov 20 16:53:35 Maybe changes every day Nov 20 16:53:49 Just a small photo, their name, and when clicked, brings to their details Nov 20 16:53:59 Or would that be out of place... hmmm Nov 20 16:55:48 Well, it might require a fair amount of space. But personally, I like it. Nov 20 16:56:07 So it would change every time the drawer opens? Nov 20 16:56:46 I know people who work with shelters who would love that app... Nov 20 16:56:54 Either that or every day MikeWallaceDev Nov 20 16:57:17 Also, there are plenty of pet adoption apps out there.. Im trying to work some really cool features into this to give it a competitive edge Nov 20 16:57:27 oh cool Nov 20 16:58:05 I'd do it every time, plus every few seconds if the drawer stays open. But I'm crazy that way :D Nov 20 16:58:19 Yeah I like that Nov 20 16:58:32 But, would I have to have a title above it, like "Featured" Nov 20 16:58:33 Then the imag Nov 20 16:58:34 e Nov 20 16:58:35 then the name Nov 20 16:58:56 Cause I bet the user would be confused as hell if there was just a random dog or cat or pig sitting there Nov 20 17:00:58 they would be, the first time. But they will catch on quick. Nov 20 17:01:08 So it's up to you Nov 20 17:01:18 Maybe start with no label, get some feedback, and go from there Nov 20 17:01:46 You know what, I know what im gonna show here, the animals that are hardest to get adopted Nov 20 17:01:47 Seniors Nov 20 17:02:07 I usually adopt 1 year olds Nov 20 17:02:20 (and by usually, I mean twice. :D I only had two dogs) Nov 20 17:02:28 Right, old dogs are hardest to get adopted Nov 20 17:02:43 So, they should get to be on the featured listing first Nov 20 17:02:46 I'm not allowed to have any here :( Nov 20 17:02:52 Apartments? Nov 20 17:02:56 yep, that's a great idea Nov 20 17:03:00 yeah... Nov 20 17:03:06 Hey I am trying to use the class Date and its method "set" ...I do not seem to have that option ? Nov 20 17:03:10 It was great when I had a house Nov 20 17:03:37 cart_man, I switched to Joda time. I will never go back :) Nov 20 17:03:56 I would like to show you my main layout once this is done and see what you think Nov 20 17:04:11 MikeWallaceDev: Whoaaat? What is that? Nov 20 17:04:43 I wont to have an edittet that does not scroll, but instead gets larger and larger and the user inputs more lines Nov 20 17:04:50 What is the best way to accomplish this? Nov 20 17:05:36 height="wrap_content" ? Nov 20 17:05:45 drose379, sure Nov 20 17:06:14 cart_man, it's a java lib for date time. It's what Java 8's time is based on. It's pretty nice Nov 20 17:06:15 MikeWallaceDev: I see but thing is I only need basic time storing capabilities Nov 20 17:06:45 I just want to capture a users Calendar Options and cpature it ...store it in an object ? Nov 20 17:06:52 DadFoundMy, that sounds like it will need programming Nov 20 17:07:52 cart_man, MikeWallaceDev, JSR310 is even better than Joda Time for Android use :) Nov 20 17:08:09 cart_man, I know, it's a new lib to learn. But a) it's worth b) You'll have to learn it for Java 8 anyway Nov 20 17:08:14 (Way smaller, doesn't have the startup speed penalty, Java 8 compatible API) Nov 20 17:08:17 https://github.com/ThreeTen/threeten Nov 20 17:08:38 Mavrik, yeah, I know it. Nov 20 17:09:17 Sorry, this is the implementation: https://github.com/JakeWharton/ThreeTenABP :) Nov 20 17:11:01 MikeWallaceDev, I wonder what the best way to go about this is, cause I dont want to have to make an API call each time I want to populate the featured animal Nov 20 17:11:16 Maybe just make it once and store it when the app fist opens Nov 20 17:11:21 Until the next onCreate Nov 20 17:11:51 Mavrik: But where are some Tuts on it though? Nov 20 17:12:02 cart_man, any Java 8 Date tutorial. Nov 20 17:12:05 It's the Java 8 API. Nov 20 17:12:22 Mavrik: Ohhh I see Nov 20 17:12:26 http://examples.javacodegeeks.com/core-java/java-8-datetime-api-tutorial/ Nov 20 17:12:27 :) Nov 20 17:12:42 And http://www.tutorialspoint.com/java8/java8_datetime_api.htm etc. :) Nov 20 17:13:13 Mavrik: Thanks allot man! Nov 20 17:13:30 It's a bit of a learning curve, but the API is so much nicer and it's really really harder to do dumb mistakes like it's possible with Date objects. Nov 20 17:13:35 It actually supports date arithmetic properly :) Nov 20 17:17:04 this is weird. every time i add a new vectordrawable to my AS project, the build starts a java process that shows up in the dock and steals focus away from the IDE Nov 20 17:17:22 so if I have AS full screen i't will switch to desktop 1 for example during a build gahhh Nov 20 17:19:56 the joys of android studio and gradle Nov 20 17:20:06 no such problems on intellij and sbt Nov 20 17:20:44 and considering most gradle projects build fine using sbt with little or no setup Nov 20 17:21:04 * pfn has demos. of u2020 and plaid building using sbt as test cases Nov 20 17:21:26 https://gist.github.com/f31d7dcadaa08e9dc259 Nov 20 17:22:00 Mavrik: Ok soo I included the string into my build.gradle folder... it downloaded the API... But I can not create a DateTime object ? Nov 20 17:22:29 Mavrik: Oh shit nvm Nov 20 17:24:17 pfn has been working hard Nov 20 17:24:37 oh boy, i just got the new Google+ with bottom bar Nov 20 17:25:10 wtf, i thought they didn't do this because those navigation item's touch targets are too close to the navigation bar Nov 20 17:25:33 so they basically took everything out of the nav drawer except settings and threw it down into the bottom bar, fucking brilliant Nov 20 17:26:29 now i'd like them to explain why their previous reasoning on why NOT to do this was faulty, should be entertaining Nov 20 17:27:42 g00s, yes, I enjoy being better in every way Nov 20 17:27:49 g00s, it makes my value go up Nov 20 17:27:51 :) Nov 20 17:36:03 g00s. Nov 20 17:36:09 :D Nov 20 17:36:21 Mavrik: Ok but I can not seem to set the variables in a LocalDateTime object ? There is no way of setting thigns? Nov 20 17:36:27 Mavrik: Am I missing something Nov 20 17:36:29 ? Nov 20 17:36:41 LocalDateTime is immutable. Nov 20 17:36:51 You create it, then it doesn't change. Nov 20 17:37:07 Though there should be a mutable version as well Nov 20 17:37:08 MikeWallaceDev: I see... well that does not help unfortunately : / ... Nov 20 17:37:14 hey MikeWallaceDev ! Nov 20 17:37:33 cart_man, either create it with the correct value Nov 20 17:37:45 or assign the new value to a new instance Nov 20 17:37:49 MikeWallaceDev given any more talks lately ? Nov 20 17:37:51 or even itself Nov 20 17:38:13 cart_man, date.withHour(14) Nov 20 17:38:13 g00s, no. But I'm hoping to do one on Clean Architecture Nov 20 17:38:26 Uncle Mike :) Nov 20 17:38:38 but you have to assign that date to a new one, or itself. Nov 20 17:38:46 That won't change the original date Nov 20 17:38:54 Mavrik: So could you change the values of the date at anytime though using withHour() , withDay() etc ? Nov 20 17:39:02 so date=date.withHour(14); Nov 20 17:39:08 yes. Nov 20 17:39:21 Immutability means you don't have to deal with thread safety issues. Nov 20 17:39:23 Ohhh ok ok Nov 20 17:39:32 So you do date = date.withHour(14) Nov 20 17:39:48 Hello, is this thing on?? Nov 20 17:39:55 Also, I want to kick people who made RectF mutable. Nov 20 17:40:09 Or at least impossible to set as immutable. Nov 20 17:40:10 Mavrik: OMG ...now I can not use it in the constructor of my Fragment class .... sughhhh Nov 20 17:40:56 Sounds like you're relying on mutable state too much in your app, not a good habit :) Nov 20 17:41:28 Mavrik: :( ...well it goes faster Nov 20 17:43:24 Hey ! I have an Activity which displays different Fragments depending on user interaction. What is the best way to restore the entire state of the currently active fragment after the activity was destroyed by an orientation change? Nov 20 17:43:59 grees, it should be restored automatically Nov 20 17:44:07 grees, just make sure you don't recreate the fragment Nov 20 17:44:16 Guys im having trouble getting the NavDrawer to scroll over my toolbar Nov 20 17:44:18 grees, the default behaviour is to reattach the fragment Nov 20 17:44:24 grees, of course, don't use XML fragments :P Nov 20 17:44:46 I guess its because I have the Toolbar outside of the drawerlayout maybe Nov 20 17:46:50 Mavrik: If i start the activity the default fragment is displayed, then i move to the next step (another fragment) . When I change the orientation at that point the Activity displays the default Fragment again Nov 20 17:47:23 That means you probably recreate and replace the fragment again when you shouldn't. Nov 20 17:49:54 grees don't forget your fragment needs onSaveInstanceState etc Nov 20 17:50:25 Mavrik: yes i do that you might check out my code? http://pastebin.com/yRdPFnqm Nov 20 17:51:30 Mavrik: in onCreate ... but how could i determine which fragment was active before Nov 20 17:52:13 grees, that's exactly that happens, call "displayView" only if "savedInstanceState == null" Nov 20 17:55:04 Mavrik: awesome that was the problem^^ so then to keep the sate of the fragments i'll just have to implement the onSaveInstanceState methods on each fragment right? Nov 20 17:55:12 Yep. Nov 20 17:55:52 is there a way to log results of instrumentation tests like unitTests? I can do this: https://github.com/googlesamples/android-testing-templates/blob/master/AndroidTestingBlueprint/app/build.gradle#L67-L72, but it only does it for unit tests. I need it to print results for androidTest as they happen Nov 20 17:55:54 grees, there's also `setRetainInstance` to not recreate the fragment at all then activity is recreated, even though that does bring some downsides with the backstack. Nov 20 17:56:09 joshkovach, you can run instrumentation tests with "-i" Nov 20 17:56:20 which will make the output more verbose. Nov 20 17:56:24 but what if I don't want that much information? Nov 20 17:56:28 There's no logging setting just for test run. Nov 20 17:56:35 joshkovach, then you cry in a corner I'm afraid -_- Nov 20 17:56:41 Thanks a lot i really appreciate your help! Nov 20 17:56:41 * joshkovach cries in corner Nov 20 17:56:45 (I was just looking into this a few days ago, it's hardcoded :/ ) Nov 20 17:57:00 There's no logging scope in Gradle, so you either dump out all "info" logging statements or none. Nov 20 17:58:49 why can unit tests do it? Nov 20 17:59:02 I thought Gradle was pretty quiet by default Nov 20 17:59:24 pfn, yeah, and that quiet includes silencing test status :P Nov 20 17:59:39 To get per-test output you need "info" logging which is verbose as hell. Nov 20 17:59:56 >> Skipping 693 KB.. Full Log Nov 20 18:00:05 I'm just trying to get my tests to pass on travis, but for some reason it hangs at the end of running everything Nov 20 18:00:17 but I think it's because travis doesn't track line rewrites Nov 20 18:01:07 gradle does a percentage output thing, so I'm trying to work around that so that it will actually finish instead of just not knowing it's finished and waiting for 10 minutes to error out Nov 20 18:01:24 my builds in SBT are noisy by comparison Nov 20 18:02:47 Currently trying running ./gradlew connectedCheck testDebug (wherein testDebug has per-test output) Nov 20 18:03:02 maybe that'll work ̄ \_(ツ)_/ ̄ Nov 20 18:03:18 Mavrik: if i wan't to maintain the sate of each fragments when switching from one to another i'll have to save instances of those fragments in the Activity right? because i always pass a new Fragment() in the FragmentTransaction Nov 20 18:03:36 grees, either that or keep the references around Nov 20 18:03:41 depending on how memory heavy they are Nov 20 18:03:55 joshkovach, not for instrumentation tests :) Nov 20 18:04:38 Mavrik: it would be better to keep references? Nov 20 18:04:51 Mavrik: you mean running testDebug after instrumentation tests? Nov 20 18:10:10 google still working on this app streaming concept, i remember they purchased a startup a few years ago Nov 20 18:10:11 http://www.wired.com/2015/11/google-streaming-apps-search/ Nov 20 18:10:33 app runs on VMs on google's cloud Nov 20 18:11:32 Btw, if any of you are on Telegram : @MikeWallaceDev Nov 20 18:14:25 i wonder what the streaming app stuff looks like from a dev perspective Nov 20 18:16:06 interesting also http://www.zdnet.com/article/android-battery-drain-woes-covert-app-chatter-could-be-to-blame/ Nov 20 18:16:15 "It's not clear why Android apps do so much covert chatting with remote servers, especially as there's nothing in it for the smartphone's owner." Nov 20 18:16:25 Its not clear? of course its f$# clear duh Nov 20 18:16:33 Anyone here use ThreatMetrix on Android? Nov 20 18:18:06 MikeWallaceDev, you around to check out a screenshot of what we were talking about earlier with the nav drawer? Nov 20 18:18:31 g00s: do they mention analytics? Nov 20 18:18:51 cause i would say analytics definitely benefit the owner, as they help make the app better Nov 20 18:19:19 s73v3r "Google services and various mobile advertising and analytics services were the main source of covert communications." Nov 20 18:20:08 i always go back to the opinion that if cheap ass users would actually pay for apps, we wouldn’t be in that situation Nov 20 18:20:39 not so sure analytics is a clear win for users, maybe if done right, but many devs collect way too much and use 3-4 analytics providers Nov 20 18:21:16 and mobile advertising can deliver malicious content i guess Nov 20 18:21:31 i know when I had to, it was cause i was in a bigger company, and several different divisions wanted their own analytics Nov 20 18:22:12 I wonder why the mobile ad networks don’t screen their ads more Nov 20 18:23:05 MikeWallaceDev, http://i.imgur.com/0ZLPKCx.png Nov 20 18:23:29 Also for anyone who may be wondering, that is the main nav drawer in my pet adoption app, planning a "Featured animal" section at the top Nov 20 18:24:01 Adult and senior animals will go there, they are the hardest to sell Nov 20 18:25:47 drose379 where are you getting the pet data from ? Nov 20 18:25:54 An API Nov 20 18:25:58 PetFinder API Nov 20 18:26:05 ok so its freely available? Nov 20 18:26:13 Yeah Nov 20 18:26:28 Why? Nov 20 18:26:35 ok great, as long as you have good data Nov 20 18:26:46 Oh, yeah. Im not stealing :D Nov 20 18:26:59 no - i meanits a neat concept but 99% problem is the data Nov 20 18:27:13 i like your rescue horse icon :D Nov 20 18:27:25 I see. Yeah, the API seems pretty nice so far, gets updated every day supposedly Nov 20 18:27:26 Haha, thanks Nov 20 18:27:27 man we had a great horse that had to be put down, so sad Nov 20 18:27:30 :( Nov 20 18:27:52 Want to see a screenshot of the entire home activity? Nov 20 18:27:58 you could walk this horse like a dog. so well behaved Nov 20 18:27:59 I wonder what you would think of the rest of the icons Nov 20 18:28:28 don't get into trademark problem with that mickey mouse looking thing Nov 20 18:28:48 Yeah I was thinking that, its from a website called icons8 and supposedly has nothing to do with disney Nov 20 18:28:55 If I can find a better mouse icon I will use that Nov 20 18:29:42 g00s, thoughts on the rest of the icons while you're at it? http://i.imgur.com/9yLkCVh.png Nov 20 18:30:15 lol crocodile ? Nov 20 18:30:24 Yep, reptiles Nov 20 18:30:32 is that a lamb riding a bicycle ? Nov 20 18:30:36 Yep haha Nov 20 18:30:41 lol Nov 20 18:30:55 I could have just put a regular lamb, but idk. Maybe seeing it on a bike will interest people Nov 20 18:31:03 Since its most likely a less popular choice Nov 20 18:31:03 reminds me of some cartoon network cartoon Nov 20 18:31:17 Would you maybe click and try it though? Nov 20 18:31:31 just my 2c; dog is nice, cat looks spooky, is pig a pig or farm animals? , rabbit, bird, horse nice, bottom row probably needs other icons Nov 20 18:31:49 use like a iguana or something for reptiles Nov 20 18:31:54 OK: Pig is literal pig yes Nov 20 18:32:06 The farm animals would be the sheep on bike icon Nov 20 18:32:25 yeah lol, maybe a sheep with barn would be farm animals Nov 20 18:32:38 * g00s don't know any sheep riding bikes Nov 20 18:32:50 Haha, you're right man. Ill change that Nov 20 18:33:09 What about a turtle instead of the alligator? Nov 20 18:33:28 but there are so many types of animals, maybe you should have cat / dog icons and then for the others text, like hamster, etc Nov 20 18:33:49 Meh, the icons are fun, and may interest people to look into dif categories Nov 20 18:34:02 put text under them Nov 20 18:34:31 I know you dont like the sheep one because it is for all "barnyard" animals. What about a barn icon for it? Nov 20 18:35:03 yeah sure Nov 20 18:35:25 Ok, I will try to avoid the text hints as much as I can, but if it comes down to it, yeah Ill add text hints Nov 20 18:35:36 What do you think of the "Featured" animal in the top of the nav bar? Nov 20 18:36:05 drose379 i don't know enough about the app or use cases to comment really, sorry Nov 20 18:36:18 Want me to explain the idea ? Nov 20 18:36:26 If you have a second I would be happy to Nov 20 18:36:37 i have to get somethings done now, like walk my dog :D Nov 20 18:36:49 old doggies ... Nov 20 18:36:56 Ha, alright. Thanks for the help anyways Nov 20 18:39:34 hey, is this the right channel for an android studio question? Nov 20 18:41:13 Yanroy, app development yea Nov 20 18:41:30 my question is about the IDE itself :) Nov 20 18:42:06 I recently discovered the "run inspection by name" feature, which can detect hard-coded strings to aid in i18n Nov 20 18:42:19 k Nov 20 18:42:28 one of the ways to suppress warnings about some strings (if they're a package name or something not human-readbale) is to annotate them with @NonNls Nov 20 18:42:42 that seems to be an intelliJ feature Nov 20 18:43:01 it popped up a dialog asking if I wanted to use internal or external annotations, and I chose external, not realizing what it was Nov 20 18:43:11 the same dialog that you see at the end of this documentation: https://www.jetbrains.com/idea/help/using-external-annotations.html Nov 20 18:43:30 so now I cannot for the life of me figure out how to change the directory it's putting them in (my project root) Nov 20 18:43:41 the screens in that link don't seem to exist in android studio Nov 20 18:44:04 I even tried editing the IML files by hand to no avail Nov 20 18:44:10 I don't know where the setting is stored Nov 20 18:45:05 does anyone have any idea where this setting is? Nov 20 18:54:22 I've learned something. I attempted to create a new project and get it to ask me where ot put the annotatinos and then diff the config file before/after. no dice... it added the annotation to my old project. thus, it's a global setting. where might I look for that? Nov 20 18:56:10 how do I display all the methods in the file I am currently viewing in Android Studio? Nov 20 19:00:29 Has anyone gotten retryWhen to successfully work with OkHttps MockWebserver? Nov 20 19:00:40 proq: There’s a window for “Structure" Nov 20 19:06:33 I've been getting this InterruptedIOException specifically with retryWhen with MockWebServer, http://pastebin.com/svFXtMfr Nov 20 19:12:32 do you guys feel like having a multiple arg newInstance method on a fragment that takes 3 boolean args is a code smell? It just seems difficult to tell on the caller side which arg does what Nov 20 19:12:52 of course the IDE can show you but then you're relying on that entirely or always flipping back to the docs Nov 20 19:14:34 well, there are two solutions: either create a builder for your newInstance, or create a POJO where you can set the values, and pass that to newInstance Nov 20 19:14:43 ^ Nov 20 19:15:23 I’d lean toward the POJO myself Nov 20 19:15:28 I prefer the POJO for data as far as getting data to the frag Nov 20 19:15:37 jinx Nov 20 19:15:38 s73v3r: but would you leave it as is or you'd change it? I'm reviewing someone else's code Nov 20 19:16:24 grekkos: Having the team agree to a standard, and stick to it is the best Nov 20 19:16:45 I like the POJO idea... the other solution I had was a bitmask but that can allow any arbitrary values to get thrown in Nov 20 19:17:04 bitmask isn’t as good, because you won’t have names for the fields Nov 20 19:17:22 well I'd have constants for them Nov 20 19:17:39 but no real type safety Nov 20 19:17:42 right Nov 20 19:17:45 that's my issue with it Nov 20 19:17:47 #enumsmatter Nov 20 19:18:05 if you want to beat on a dead horse Nov 20 19:18:31 if the code is otherwise good and works and is readable/maintainable, I don’t know if I’d go to the trouble of having them refactor it. But if there are other issues, it might be something to bring up Nov 20 19:18:35 not that I see what bit masking or enums has to do with passing values to a fragment Nov 20 19:19:21 well Nov 20 19:19:29 originally the constructor had 2 booleans Nov 20 19:19:33 to then a third was added Nov 20 19:19:55 that might be a smell. what are the booleans controlling? Nov 20 19:20:14 it might be a case where splitting into separate classes might be better Nov 20 19:21:20 basically controlling functionality of that fragment Nov 20 19:21:25 disabling/enabling certain features Nov 20 19:21:56 a case might be made for splitting into separate classes, perhaps with a common interface or superclass Nov 20 19:22:15 Sounds like Dependency Injection would be handy Nov 20 19:22:18 for this Nov 20 19:22:20 what are the chances that a fourth boolean might be added in the future? Nov 20 19:22:28 well that's what I'm wondering Nov 20 19:22:29 i don’t think this is a DI thing Nov 20 19:22:36 I don't want it to get out of hand Nov 20 19:22:46 disabling/enabling is a good place for DI Nov 20 19:22:47 it seems pretty good where it's at but we thought this the last time too apparently Nov 20 19:23:08 I think for now I'll approve it but I'll put a comment on it Nov 20 19:23:43 well, as i said, if there are other issues, this might be the time to bite the bullet and do it Nov 20 19:23:56 if it’s otherwise good, then yeah, probably approve Nov 20 19:25:04 yeah I'll let it slide for now but I'll make a note of it Nov 20 20:08:14 hey Nov 20 20:08:19 I love genymotion Nov 20 20:08:20 :D Nov 20 20:09:02 love how fast it is Nov 20 20:11:49 good for you Nov 20 20:12:26 Ashiren, it is pretty good for android debugging Nov 20 20:12:44 it's free for personal use Nov 20 20:13:10 anyhow Nov 20 20:13:11 bye Nov 20 20:14:09 Mavrik: Hey do you know anything about this error ? -> Caused by: org.threeten.bp.zone.ZoneRulesException: No time-zone data files registered Nov 20 20:16:13 Anybody know anything about this error when using DatePicker -> Caused by: org.threeten.bp.zone.ZoneRulesException: No time-zone data files registered Nov 20 20:16:33 LocalDateTime rathee Nov 20 20:17:04 MikeWallaceDev: ^^ ? you know that error? Its strange Nov 20 20:33:39 hi guys, i'm currently trying to transcode a video captured from the camera using MediaCodec, MediaMuxer, MediaExtractor. It is transcoding alright except that the output file is about 10x smaller despite the fact that i'm trying to configure the encoder with the same settings as the decoder (I set csd-0 and csd-1 to whatever the decoder format is) Nov 20 20:33:48 are there any common pitfalls to this? Nov 20 20:33:57 it seems like it's disregarding my encoder settings Nov 20 20:49:25 FYI, I solved my problem with finding the global annotations path, if anyone else cares: it's stored on a per-JDK basis inside jdk.table.xml, which on my Mac lives in ~/Library/Preferences/AndroidStudio1.4/options Nov 20 20:49:47 the element is called annotationsPath, and it has a subelement "root" which contains the actual path Nov 20 20:50:16 as an aside, the source code for IntelliJ is the most overengineered thing I have ever seen Nov 20 21:02:09 I've got an app with a main/detail activity, each with fragments. The main part is a gridview, and the detail part is now a viewpager. But, is it then still possible to use the detailfragment along with the mainfragment in a side-by-side two-pane (tablet) UI? I mean, then I lose the PagerAdapter etc, which is all in the DetailActivity... Nov 20 21:02:29 i am using Calendar cal Nov 20 21:02:30 This (from the Kotlin project lead) is interesting: "Kotlin will be compatible with Jack&Jill, but the level of integration is yet to be determined." https://twitter.com/abreslav/status/667658754062729216 Nov 20 21:02:39 but when i do cal.setTimeInMills Nov 20 21:02:55 I can getEpochTime from that cal, and get the right date Nov 20 21:03:04 but the calendar fields are not set when doing setTimeInMillis Nov 20 21:03:56 I am trying to log into a website that uses asp viewstate. Any recommends how do write requests to such an endpoint? Each page load causes different viewstate and this invalidates a stored set Nov 20 21:04:10 lasserix, they are set... Nov 20 21:04:17 ahh Nov 20 21:04:18 i see Nov 20 21:04:25 i have to use the timezone form the data Nov 20 21:04:29 not from the device Nov 20 21:04:38 My old solution was based on sending an ID to the DetailFragment, which had its own Loader. See the difference? The new "ScreenSlidePageFragments" need to be connected to the PagerAdapter, I can't just send it an ID Nov 20 21:08:55 so I can get my instrumentation tests to *run* on travis-ci, but I can't get them to properly report as completed, so travis just thinks it stops reporting and kills it after waiting forever Nov 20 21:15:19 You guys think I should definitely show a dialog before saving the users zip code to their local DB? Nov 20 21:15:43 Or no big deal? Nov 20 21:17:11 Show a dialog for what reason? Nov 20 21:17:33 I am going to be saving their zip code to the local DB for future use Nov 20 21:18:13 Since im not sharing it anywhere, or saving it online, Im not sure if I need to show a dialogue Nov 20 21:18:58 Anyone good at data binding? http://stackoverflow.com/questions/33798426/how-to-databind-to-ontextchanged-for-an-edittext-on-android Nov 20 21:20:27 I used to think Android Wear development was bad. Then I tried Apple Watch development Nov 20 21:20:53 Sucks? Nov 20 21:21:59 Nilzor: I posted an suggestion; it's how I solved the same (?) problem :) Nov 20 21:22:46 simply put, every time the field *loses* focus ("onblur"), you check if the value (text) has changed. So you need to keep a variable of the "memContent" at all times, for comparison Nov 20 21:22:49 right? Nov 20 21:22:53 drose379: Hmm, not sure. I guess it's best to ask if you're unsure. Nov 20 21:23:06 Yeah your prob right TJ Nov 20 21:26:17 Any Doors fans here? Nov 20 21:28:15 how can I have a simple button with text and an icon? Nov 20 21:28:40 I tried using the drawableLeft attribute on a Button widget, but the drawable is not scaled to the button's size Nov 20 21:29:14 and the solutions to this seem to require some mucky code to calculate the proper drawable size Nov 20 21:30:51 Thanks joakimk. I'll fall back to that solution if "true databinding" solution exists Nov 20 21:31:07 :) Nov 20 21:31:19 "Deutsche Telekom And T-Mobile Force Another Company To Change Its Logo Because It Was Too Magentastic" wuut Nov 20 21:39:41 does anyone know how to use teh NDK Nov 20 21:39:51 generally, should we be using jcenter() instead of mavenCentral() now ? Nov 20 21:41:02 g00s: I think so: http://stackoverflow.com/questions/24852219/android-buildscript-repositories-jcenter-vs-mavencentral Nov 20 21:43:26 both are included by default Nov 20 21:43:29 well Nov 20 21:43:44 jcenter is included automatically if you use the android plugin, iirc Nov 20 21:44:03 and generally, there is no such thing Nov 20 21:44:12 it depends on where the artifacts you need are published Nov 20 21:44:17 use the one that has the artifacts you need Nov 20 21:46:00 Is it ok if I use a questionmark png off of google images? Nov 20 21:46:21 drose379 sure just make sure its not too magenta Nov 20 21:46:36 Haha why magenta Nov 20 21:48:55 g00s, I changed some of the icons as you reccomended BTW Nov 20 21:48:57 Thanks for that Nov 20 21:49:43 I hate sites that require you to use a smartphone app. Why y u no make a web interface?! Nov 20 21:49:45 Y* Nov 20 21:49:57 * pfn wonders why he has a race condition when running aapt Nov 20 21:50:07 aapt returns before r.java is fully written, and the compiler eats shit :-/ Nov 20 21:51:25 You think itd be easy to find a good questionmark image... Nov 20 21:51:27 drose379: To be honest, I doubt anyone's gonna complain about the use of a little exclamation-mark image. Nov 20 21:51:39 i will Nov 20 21:51:55 I used to edit Wikipedia heavily. The legal issues surrounding images were insane. Nov 20 21:52:17 wikipedia’s pretty high profile Nov 20 21:53:37 Found this: http://i.imgur.com/2j2vyWV.png Nov 20 21:53:39 drose379 maybe one in the material icon collection ? Nov 20 21:53:53 Check that out ^ , its a png so looks a bit off w/ no background Nov 20 21:54:07 gawd, how do i remove asserts using proguard? "-assumenosideeffects org.junit.Assert { *; }" doesn't do a thing Nov 20 21:54:11 But this is for the featured pet section, if they have not supplied a location yet, I cannot make an api call Nov 20 21:54:17 above link Nov 20 21:54:50 drose379: On a side note, that exclamation mark is a bit demanding. Nov 20 21:55:06 also, how do i rerun proguard without deleting all cache? Nov 20 21:55:06 Yeah, thats why I'm trying to stick with the ? Nov 20 21:55:10 "Specify location or the bunny gets it." Nov 20 21:55:14 Hahah Nov 20 21:55:21 No, this app is not like that :P Nov 20 21:55:33 TacticalJoke, did I tell you about the featured animal section yet? Nov 20 21:55:38 No. lol Nov 20 21:55:53 Oh, so did you see what I just pasted, the nav drawer? Nov 20 22:01:12 I'm having some serious problems configuring my h264 encoder with MediaCodec. Somehow I set my SPS and PPS in the format before calling configure/start and that seems to succeed but then my encoder receives INFO_OUTPUT_FORMAT_CHANGED and the sps has totally changed! Nov 20 22:01:35 (PPS is the same...) Nov 20 22:04:02 More of the "in the box" thing: https://www.reddit.com/r/androiddev/comments/3tlnke/android_tool_time_trailer/ Nov 20 22:04:08 Though it doesn't really tell us anything. Nov 20 22:05:08 i guess brillo could be in the box too Nov 20 22:06:11 i have to say, I missed him doing sessions at IO Nov 20 22:06:15 they were usually pretty good Nov 20 22:27:59 drose379, how hard is it to make a question mark icon, go into your favorite image editor, press ? Nov 20 22:28:00 done Nov 20 22:28:17 New computer, dont even have an image editor Nov 20 22:28:27 I'll end up downloading gimp pretty soon Nov 20 22:31:16 Inkscape is good for vector art. Nov 20 22:32:06 Good to know, thanks Nov 20 22:34:45 weird, no question icon in material Nov 20 22:35:30 that’s because there’s no question about material Nov 20 22:36:45 The hell, keep getting: CursorIndexOutOfBoundsException: Index -1 requested, with a size of 1 Nov 20 22:36:53 should I delete my drawable-hdpi dir Nov 20 22:36:53 lol Nov 20 22:36:57 When im literally doing cursor.getString( 0 ); Nov 20 22:37:09 the only hdpi phone I have is gingerbread-era Nov 20 22:37:11 drose379 did you do moveToFirst or whatever Nov 20 22:37:20 I didnt but usually dont have to Nov 20 22:37:44 I'll try it Nov 20 22:37:56 Well ok then, worked Nov 20 22:38:07 Thanks Nov 20 23:04:17 MikeWallaceDev, You around? Nov 20 23:08:24 drose379 https://materialdesignicons.com/ search for "help" Nov 20 23:08:43 Thanks Afzal Nov 20 23:32:29 anyone know how to get timezone name from lat/lon? Nov 20 23:34:31 drose379, I am now Nov 20 23:34:46 Hey MikeWallaceDev will you be here in like 20? Nov 20 23:34:53 like no :D Nov 20 23:35:03 My chicken is heating up Nov 20 23:36:00 Ah alright Nov 20 23:37:18 I'm experiencing some erratic behavior within my android app. I have a field within a object that is not null, and properly displays to the screen, but that field becomes null inside my AsyncTask and therefore cannot be saved to my database. Nov 20 23:38:25 asms: It sounds like there are many possible causes. Nov 20 23:42:20 MikeWallaceDev, you here now? Nov 20 23:42:36 shortest 20 minutes ever. Nov 20 23:42:39 The field itself is an object. When the parent object is instantiated, the field is also. Also, the field is never written to after that. It only gets read. Nov 20 23:42:44 lol Nov 20 23:42:46 yeah, I have 6 minutes :D Nov 20 23:42:54 asms: Impossible to say without seeing the code. Nov 20 23:42:57 rather, you have 6 minutes :P Nov 20 23:43:05 hey TacticalJoke :) Nov 20 23:43:05 Ok, one sec Nov 20 23:43:07 Making a recording Nov 20 23:43:12 Yo, MikeWallaceDev. Nov 20 23:43:26 Or someone on MikeWallaceDev's account. Nov 20 23:43:27 howzit going mate? Nov 20 23:43:28 Just kidding. :D Nov 20 23:43:34 hahaha Nov 20 23:43:42 Sometimes the field is null and sometimes it isn't. Would this suggest that the variable is being accessed from another thread, and so can't be read from the AsyncTasK Nov 20 23:43:44 Kinda well. Tired after baby shenanigans. (Babies are heavy.) Nov 20 23:43:45 Oh, you'll know it's me ;) Nov 20 23:44:09 MikeWallaceDev don't forget about the chicken ! Nov 20 23:44:24 Never forget about the chicken Nov 20 23:44:29 *scene cuts to MikeWallaceDev's apartment on fire* Nov 20 23:44:45 chicken leaving premises holding match Nov 20 23:44:51 :D Nov 20 23:45:02 HAHAHA Nov 20 23:45:10 Bloody chickens. Nov 20 23:45:37 MikeWallaceDev, https://vid.me/QMi1 Nov 20 23:46:23 Do you notice what happens whenever the drawer is re-opened? Nov 20 23:46:55 In my developer console, I am looking at a crash and the only possible way the crash can occur is if "context.bindService(...)" invokes "onServiceConnected" twice Nov 20 23:47:06 is that possible? Nov 20 23:47:29 drose379, Nope, I don't notice. Requires Flash.... Nov 20 23:47:41 the documentation doesn't say so... the other possible way is if a constructor can be invoked twice on the same object Nov 20 23:47:54 MikeWallaceDev, you cant see the video? Nov 20 23:47:58 nope Nov 20 23:48:12 Damn Nov 20 23:48:38 Its just the featured stuff we were talking about earlier, new animal each time the drawer opens Nov 20 23:49:12 I figured :) Nov 20 23:49:23 Is it working? Nov 20 23:49:27 It is Nov 20 23:49:33 sweet Nov 20 23:49:57 Thanks for the help w/ it earlier Nov 20 23:51:19 Didn't help much, but you're welcome :) Nov 20 23:57:37 What’d you decide on for your main screen with the animals? Nov 20 23:58:18 http://www.theverge.com/2015/11/19/9757516/ipad-pro-apps-pricing-ios-developers-opt-out Nov 20 23:58:29 "Despite the new tablet’s processing power and capabilities, it’s still running on mobile software — and developers aren’t totally convinced the economic incentives exist in the App Store for iOS. In short, they feel they wouldn’t be able to charge users the amounts they normally would for a version of their software that runs on a desktop." Nov 20 23:58:53 man, MS got this one right Nov 20 23:59:28 that goes for android too btw Nov 20 23:59:57 what do things cost on average in the Windows App Store? Nov 21 00:00:15 i dont have a windows machine, no idea Nov 21 00:00:22 drose379, oh, there's a help icon in material icons Nov 21 00:00:48 Thanks pfn Nov 21 00:02:24 Yeah, I think trials and upgrade discounts would help the iOS, Mac, and Android stores a lot Nov 21 00:04:06 Any kernel recommendations for the CloudyG3 rom? Or keep as is? I heard 777 was a good one. Nov 21 00:11:30 no recommendations, as this channel doesn’t really deal with roms Nov 21 00:11:50 how can I mix multiple styles into one style? Nov 21 00:12:00 I tried merge/include but this seems only available for layouts Nov 21 00:12:07 it is Nov 21 00:12:10 Sorry, been a while since I've used IRC.... like.... a *while*. Didn't read the topic like a noob. Nov 21 00:12:19 you can try to inherit Nov 21 00:12:35 I don't want inherit, plus I am already using inherit for something else Nov 21 00:12:45 unless I can have multiple inherit Nov 21 00:12:53 i don’t think so Nov 21 00:12:53 can't do multiple inheritance Nov 21 00:13:02 you’re kinda screwed, then Nov 21 00:13:37 My app takes about 20 seconds from when I click the Run button to when it launches on my phone. Is there a solution to this? Nov 21 00:14:07 erisco google ThemeOverlay and ContextThemeWrapper Nov 21 00:14:43 autrilla: Mine takes five seconds. Nov 21 00:14:45 Are there any third party NFC-Pay apps that don't do security checks? Nov 21 00:14:52 Though my app isn't very big. Nov 21 00:14:58 TacticalJoke: mine isn't either Nov 21 00:15:00 Few dependencies too. Nov 21 00:15:10 Maybe it's because I already have a ton of deps Nov 21 00:15:26 TacticalJoke are you pretty up on toolbar icons + colors? i'm confused - are they supposed to have an alpha ? Nov 21 00:15:42 compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.1' compile 'com.google.android.gms:play-services-auth:8.3.0' compile 'com.jakewharton:butterknife:7.0.1' compile 'com.facebook.android:facebook-android-sdk:4.6.0' compile('com.twitter.sdk.android:twitter:1.10.0@aar') { transitive = true; } compile Nov 21 00:15:43 'com.squareup.retrofit:retrofit:1.9.0' Nov 21 00:15:57 Legi0n: I really hope not, as that would be a huge vulnerability Nov 21 00:17:34 g00s: With mine I just use 100% opacity and 0% opacity, and the opaque stuff is painted white in a dark theme and black in a light theme. Nov 21 00:17:52 Do you mean as in a NFC pay app on a custom rom is a huge vulnerability? Nov 21 00:18:09 Or you can change `colorControlNormal". Nov 21 00:18:24 i mean as in not doing security checks is a huge vulnerability Nov 21 00:18:25 s/"/`/ Nov 21 00:18:47 I mean 0% for the background. Nov 21 00:19:09 TacticalJoke at the very bottom https://www.google.com/design/spec/style/icons.html#icons-system-icons Nov 21 00:19:24 is that for toolbar icons also ? Nov 21 00:19:27 "The standard opacity for an active icon on a light background is 54% (#000000)." Nov 21 00:20:01 g00s, I don't know what this does for me Nov 21 00:20:02 TacticalJoke: are you launching your app on a real phone or on an emulator? Are you using gradle? Nov 21 00:20:10 erisco sorry Nov 21 00:20:27 autrilla: On a Moto E2 with Android 5.0.2. Using Gradle. Nov 21 00:20:34 huh Nov 21 00:20:38 I wonder whether Play Services slow down the deploying. I've never used it. Nov 21 00:20:49 And the Facebook thing, and Twitter. Nov 21 00:20:53 5.0.2 is a stinker man Nov 21 00:21:05 g00s: Why is that? Nov 21 00:21:06 5.0.x rather Nov 21 00:21:28 the bugcount is too damn high ! Nov 21 00:21:55 5.1.x branch should be much better Nov 21 00:21:59 g00s: Maybe the "active icon" thing refers to the colour value applied at run time? Nov 21 00:22:01 Not sure. Nov 21 00:22:18 It's possible to take those simple icons (with no alpha values) and paint whatever colour on top. Nov 21 00:22:19 ok thx Nov 21 00:22:27 AppCompat does this for Toolbar. Nov 21 00:22:40 Just timed it with a stopwatch. 29 seconds. Nov 21 00:22:45 Oneplus One, gradle too Nov 21 00:22:54 what i hate about the material guidelines is they are so .. not android specific it seems Nov 21 00:22:54 I mean it draws stuff in general. I don't think it draws 54% opacity stuff. Nov 21 00:23:12 autrilla: Maybe try a blank project? Nov 21 00:23:18 It might be those dependencies; not sure. Nov 21 00:23:21 Hmm yeah will do Nov 21 00:23:25 Is your computer ancient? Nov 21 00:23:58 Also, Android Studio 1.5 seems to come with Gradle 1.8, which appears to be quite a bit faster. Nov 21 00:24:12 I mean 2.8. Nov 21 00:24:23 I use IDEA ultimate Nov 21 00:24:28 And no, I'm running an i5 4670 Nov 21 00:24:35 SSDs, 16GB of RAM Nov 21 00:24:43 Jeez, I have an ancient machine. Nov 21 00:24:47 4GB RAM and so on. Nov 21 00:25:03 Though my only dependencies are AppCompat, OkHttp, and Jackson-core. Nov 21 00:25:39 TacticalJoke you build and deploy in 5 sec? thats good .... Nov 21 00:26:01 11 seconds for a new app Nov 21 00:26:24 g00s: Yeah. I think it was slower with the old Gradle (that came with AS 1.4 and below). Nov 21 00:27:09 g00s: Oh, wait, no. This is just deploying without changes. I thought that's what autrilla meant (maybe I misread). Nov 21 00:27:28 No no, building and deploying Nov 21 00:27:35 So a clean build? Nov 21 00:28:12 I just hit "Run" on IDEA. It does a clean build every time Nov 21 00:28:13 g00s, I am trying this '.' inheritance thing, if that is what you meant Nov 21 00:28:20 for some reason it only takes the styles from the first listed style Nov 21 00:28:23 autrilla: You're talking about hitting Run without making any changes? Nov 21 00:28:29 yeah Nov 21 00:28:35 it runs assembleDebug afaik Nov 21 00:28:36 Okay, that's what I'm talking about. Nov 21 00:28:39 erisco like i said, no multi inheritance Nov 21 00:28:55 they suggest that here http://www.concretepage.com/android/android-styles-and-themes-tutorial-with-multiple-style-inheritance-examples Nov 21 00:29:19 autrilla: If you do it twice on a clean project is it still 11 seconds? Nov 21 00:29:31 Where there are no changes for the second Run. Nov 21 00:29:33 "with multiple style inheritance examples." semantic ambiguity Nov 21 00:30:06 TacticalJoke: 6 seconds for a clean run Nov 21 00:30:10 eh sorry Nov 21 00:30:13 for deployment Nov 21 00:30:23 But why would I deploy without changes? Nov 21 00:31:44 g00s: I just read that icon thing again. I think it has to refer to the run-time tinting. Nov 21 00:31:54 Otherwise we'd be making multiple images pointlessly. Nov 21 00:31:58 To be honest I don't really find 30 seconds to build whenever I make a change fine Nov 21 00:32:07 AppCompat does that tinting using Drawable.setColorFilter. Nov 21 00:32:08 There must be a better way Nov 21 00:32:26 autrilla: What version of Gradle is that/ Nov 21 00:32:28 ?* Nov 21 00:32:47 TacticalJoke ok , so i should just have pure black & white icons ? Nov 21 00:32:57 I think so, yeah. Nov 21 00:33:03 phew Nov 21 00:33:03 2.9 Nov 21 00:33:11 Well, I guess you could just use black. Nov 21 00:33:15 And tint at run time. Nov 21 00:33:23 That's what I'm doing. Nov 21 00:33:32 i'm so bad at this. i can't wait until that new Material book coming out next week Nov 21 00:33:40 i'm just going to curl up with it and read in one sitting Nov 21 00:34:02 In other words, I use pure black for the foreground colour, and the background is transparent. Nov 21 00:34:15 I just use AS's "New Vector Drawable" thing, though. Nov 21 00:34:21 :D Nov 21 00:34:24 g00s, just watch the udacity material design course Nov 21 00:34:27 it's easy and straightforward Nov 21 00:34:40 TacticalJoke i have both a light and dark theme Nov 21 00:34:45 I mean "Vector Asset". Nov 21 00:34:45 pfn yeah i should watch that Nov 21 00:34:57 g00s: You shouldn't need one white and one black, though. Nov 21 00:35:10 AppCompat does that tinting itself (for light or dark themes). It just uses one icon. Nov 21 00:35:41 You can even set any colour (via `colorControlNormal`) and it'll tint with that colour. Nov 21 00:35:42 huh Nov 21 00:35:56 It does this using Drawable.setColorFilter. Nov 21 00:36:55 TacticalJoke will it still work for icons in other parts of my app, not just toolbar ? Nov 21 00:37:25 Correction: AppCompat does this only for *standard* toolbar icons. Here's the code: https://android.googlesource.com/platform/frameworks/support/+/master/v7/appcompat/src/android/support/v7/internal/widget/TintManager.java Nov 21 00:37:35 Where else, g00s? Nov 21 00:37:41 interesting, I've been getting all my icons in black and white Nov 21 00:37:50 g00s, only toolbar by default Nov 21 00:37:58 g00s, unless you're using one of the appcompat views Nov 21 00:38:12 To tint my own icons, I just use Drawable.setColorFilter. I wish AppCompat did this for me, though. Nov 21 00:38:17 My own Toolbar icons. Nov 21 00:40:31 TacticalJoke: how much does a full build take for you? Nov 21 00:40:41 And when is a full build required? Nov 21 00:41:18 Here's the line where AppCompat tints the "Up" button based on the value of `colorControlNormal`: https://android.googlesource.com/platform/frameworks/support/+/master/v7/appcompat/src/android/support/v7/internal/widget/TintManager.java#248 Nov 21 00:42:07 (And other standard icons.) Nov 21 00:43:05 pfn do we still need black and white or just black ? Nov 21 00:43:13 probably just black Nov 21 00:43:34 so i can use the same icon for both themes, i just have to tint it differently somehow Nov 21 00:43:35 autrilla: What do you mean by "full build"? I just made a one-line change and it took 15 seconds to appear on the device. Nov 21 00:43:40 g00s: Yes. Nov 21 00:43:45 huh Nov 21 00:45:25 I'm not sure how I fixed it, but I did. Possibly by declaring my getters/setters as synchronized. Nov 21 00:45:29 Peace. Nov 21 00:47:18 g00s: I made this (but I haven't tested it much as it's in a private branch and hasn't been rebased yet): http://pastebin.com/xWy0ikQ6 Nov 21 00:47:26 It's basically "tint-aware" Toolbar-menu inflation. Nov 21 00:47:46 The PorterDuffColorFilter is reused in case that's slow (and AppCompat does a similar thing). Nov 21 00:49:07 hm cool Nov 21 00:49:13 Like AppCompat, it doesn't mutate the Drawable. Nov 21 00:49:28 It probably doesn't ever need to if we're just using it for Toolbar icons. Nov 21 00:50:33 Actually, I just realised that `Contexts.getThemeColor(toolbar.getContext(), R.attr.colorControlNormal)` needs to happen every time (in case the theme is changed). Untested code FTW. :D Nov 21 00:50:44 TacticalJoke what about the icon in the FAB ? Nov 21 00:50:52 Not sure; never tried that. Nov 21 00:51:06 what is the usage limit on this? https://maps.googleapis.com/maps/api/timezone/xml?location=39.6034810,-119.6822510×tamp=1331161200&sensor=true Nov 21 00:51:11 hm almost wonder if its just better to have another icon :P Nov 21 00:51:15 ie without an api key Nov 21 00:51:32 g00s: Wouldn't Drawable.setColorFilter work there, though? Nov 21 00:52:08 and then navigationView ... Nov 21 00:52:27 maybe, didn't really want java to deal with this, rather its declarative instead Nov 21 00:52:39 Yeah, I know what you mean. Nov 21 00:54:07 hey its capella-s3 Nov 21 00:55:35 g00s: I'm actually unsure whether I'm going to use this code. Even though it basically emulates what AppCompat does, it does feel a little weird. Nov 21 00:56:02 I hate work-arounds. Nov 21 00:56:41 How can I extract app:itemIconTint and app:itemTextColor declarations in a NavigationView into a theme/style? Nov 21 00:57:13 Also, the code as posted does not respect theme changes (unless the process restarts). Nov 21 00:58:14 oh , that doesn't work for me Nov 21 00:59:33 That's fixable by recreating the PorterDuffColorFilter each time, but AppCompat caches them statically, so I'm guessing that's not a good idea. Nov 21 01:00:33 What's going to be the simplest way to do this? I want an 'array' of buttons with configurable length. For example there might be 2 or 5 buttons, aligned vertically, depending on how the app was configured Nov 21 01:01:13 Are they aligned vertically? Nov 21 01:01:24 You could use a listview, where the content is a button Nov 21 01:01:34 thanks I'll take a look Nov 21 01:01:46 errr, I think RecyclerView is the modern equivalent Nov 21 01:01:54 strange name Nov 21 01:02:19 a listview would be perfectly cromulent to use Nov 21 01:02:24 RecyclerView is never but not necessarily better. Nov 21 01:02:25 (what does this have to do with recycling?) Nov 21 01:02:26 newer* Nov 21 01:03:00 Squeegee: I've been out of Android for a while, but I think It's named as such because it intelligently recycles your views (using the ViewHolder Pattern). So if you have 1000 buttons you don't get lag when scrolling Nov 21 01:03:54 cool Nov 21 01:04:03 Squeegee: Just curious -- what do you mean by "aligned vertically"? Nov 21 01:04:25 It may be the case that LinearLayout (or something) is sufficient here. Nov 21 01:04:28 one directly below the other, identical appearance besides the text Nov 21 01:04:50 Squeegee: It’s called a RecyclerView because when one cell goes off screen, it’s “recycled” to the other side of the screen to be used again Nov 21 01:05:01 You can do that using LinearLayout and adding the children at run time. Nov 21 01:05:35 k Nov 21 01:06:10 ListView and RecyclerView also work. I'm guessing LinearLayout will be simpler, but who knows. Nov 21 01:06:54 how do you add children Nov 21 01:08:11 addView? Nov 21 01:09:50 Yeah. Nov 21 01:10:03 How would I construct the button then? Nov 21 01:10:40 Either from inflating a layout (just containing the Button) or invoking Button's constructor in Java code. Nov 21 01:10:57 or from* Nov 21 01:11:22 okay if I go for the 2nd option, what do I pass for the Context argument? Nov 21 01:11:27 i would vote for just creating it in code. inflating from a layout with just a button looks weird in code Nov 21 01:11:35 a context. Activity is a context Nov 21 01:12:03 so just pass the activity, okay Nov 21 01:12:17 Squeegee: I think, though, if I needed scrolling for this or if the number of Buttons varied a lot, I would use ListView. Nov 21 01:12:47 If it was just two or five without scrolling, I'd probably use LinearLayout. Nov 21 01:14:08 hmm Nov 21 01:14:30 I guess it's one of those situations where you aren't sure how the user is going to use the app Nov 21 01:14:40 ListView gives you way more flexbility. Nov 21 01:14:43 flexibility* Nov 21 01:15:04 well thanks for the help people Nov 21 01:26:42 g00s: Actually, now that I think of it, I probably won't use that code. It does seem so much easier to just use two Drawables (even if that means our APK is slightly larger). Nov 21 01:27:36 What if I want to make an editable list with one of those "+" buttons in the lower right Nov 21 01:27:46 technically i have 3 themes, a light one (normal), and 2 dark ones (NV red, NV green) Nov 21 01:27:57 Squeegee: ListView is fine for that. Nov 21 01:27:59 I see a lot of apps that look like that and I assume it's good form to copy Nov 21 01:28:12 RecyclerView works too. Personally, though, I would consider ListView first for something lik ethat. Nov 21 01:28:16 like that* Nov 21 01:28:24 agreed Nov 21 01:28:29 g00s: I might just have "dark" and "black (AMOLED)". Nov 21 01:28:34 Though maybe one day "light" too. Nov 21 01:28:50 TacticalJoke, okay is there some example code I could look at? Is the "+" part of the ListView or separate? Nov 21 01:29:26 Squeegee: Have you used ListView before? Nov 21 01:29:33 I guess the "+" would be a FAB. Nov 21 01:29:34 nope Nov 21 01:29:42 I'm really new at this Nov 21 01:29:47 Hmm, I'm not sure of a good introductory ListView tutorial. Nov 21 01:30:39 romain guy had a ListView i/o session (world of LV or something) Nov 21 01:30:47 like 4 years ago :P Nov 21 01:30:56 This looks simple: http://windrealm.org/tutorials/android/android-listview.php Nov 21 01:31:09 Though it's old (it uses `fill_parent` rather than `match_parent`, for example). Nov 21 01:32:25 right using the list view seems simple enough Nov 21 01:34:42 http://www.androidpolice.com/wp-content/uploads/2014/11/nexus2cee_Screenshot_2014-11-04-15-04-20.png Nov 21 01:35:18 So I was saying I wanted a little "+" like that maybe Nov 21 01:36:08 FAB Nov 21 01:36:26 Floating action button Nov 21 01:37:50 thanks Nov 21 02:31:37 How do I set a selected NavigationView' item's background colour? I've been setting android:activatedBackgroundIndicator, but it doesn't seem to override the default colour Nov 21 02:57:46 is android ndk no longer supported? **** ENDING LOGGING AT Sat Nov 21 02:59:59 2015