**** BEGIN LOGGING AT Tue Nov 04 03:00:00 2014 Nov 04 03:00:07 I think the closest is the calendar view/date picker combo maybe? Nov 04 03:00:17 Mugwump101 quit Nov 04 03:00:23 no job is worth that Nov 04 03:01:39 Don't have that option right now Nov 04 03:01:48 :/ Nov 04 03:02:13 Do you use libraries for your projects? Nov 04 03:02:20 God yes Nov 04 03:02:34 noooo ;) Nov 04 03:02:52 Mugwump101: does your PM beliave in support library at least? :D Nov 04 03:03:56 like the android support libraries? lol yes. Well I needed to for my project, so I just put them in without saying anything xD Nov 04 03:04:12 So do the same thing for this Nov 04 03:06:53 On the first run of my app, a simple tutorial will be shown. This will basically be some text explaining the idea of the app. What's a simple way to make this look good? Nov 04 03:07:06 I was gonna use a gradient background, but it seems gradients look blocky in Android. Nov 04 03:07:21 I know that if I use an image then I'll have to worry a lot about screen density. Nov 04 03:07:26 how far apart are the colors? Nov 04 03:07:57 Blue to black. Nov 04 03:08:02 #00f to #000 Nov 04 03:08:15 Ok, I'm going nuts... New Nexus 5, Installed SDK, and Studio, Enable Debug on device, Plug in USB, (device works as USB storage by the way in non-debug). Detects as Nexus 5, but can't find driver. Point it at newly downloaded driver, windows fails to install Nov 04 03:08:21 On windows 7 X64 Nov 04 03:08:39 set the device as media Nov 04 03:08:43 Tried different cable, different ports, all work fine in non-debug. In debug both the "Connected as Media Device" and "USB Debugging Enabled" work fine Nov 04 03:08:47 it should work Nov 04 03:08:48 It is set as media device Nov 04 03:09:03 hm strange Nov 04 03:09:07 I got it to work on my computer Nov 04 03:09:08 err sorry when I said "work fine" I mean it shows in notification tray Nov 04 03:09:13 Glasswalker: Did you point it at "Google USB Driver". Nov 04 03:09:15 which is windows 7 65 bit Nov 04 03:09:16 s/./?/ Nov 04 03:10:04 TacticalJoke, I downloaded the Google USB driver via the SDK manager as per googles instructions. It installs in extras\google\USB driver I believe in the SDK. Pointed it there, with search subfolders checked. Says can't install the driver Nov 04 03:10:16 You have to do it a certain way. Nov 04 03:10:24 Trying to remember... Nov 04 03:10:24 select the usb driver folder Nov 04 03:10:29 and point it to that path Nov 04 03:10:35 from the sdk I think Nov 04 03:10:46 If I manually select the driver and force it, using composite ADB device, it installs, but then the device won't show in adb devices Nov 04 03:11:23 Did you restart adb? Nov 04 03:11:34 hold on, I had this problem before but I got it working. I'll try to find the SO article Nov 04 03:11:48 Glasswalker: Did you try going into "Device Manager", right clicking on "Android Device" > Update Driver Software > Browse and pick from disk, etc? Nov 04 03:11:51 hmm haven't restarted adb... forgot about that part Nov 04 03:12:04 Not sure whether it'll help, but it's worth trying. Nov 04 03:12:07 jrummy, yes I've done both methods Nov 04 03:12:12 using browse and point at folder, it doesn't find Nov 04 03:12:21 Yeah, you have to go the manual way. Nov 04 03:12:29 using have disk method, and browsing and manually forcing the adb composite will install Nov 04 03:12:32 but it won't show in ADB Nov 04 03:12:37 one sec, trying that and restarting adb Nov 04 03:12:59 You have to choose "Let me pick from a list" and then the most generic option. Nov 04 03:13:17 There is a way that doesn't involve "have disk", although it sounds like you got it installed anyway. Nov 04 03:14:42 nope Nov 04 03:14:49 http://stackoverflow.com/questions/20168898/nexus-5-usb-driver Nov 04 03:14:57 Just reinstalled using the have disk method, got it in, restarted adb Nov 04 03:14:59 still not showing Nov 04 03:15:53 Try the other method. Nov 04 03:16:12 What other method? Nov 04 03:16:13 Glasswalker: next step: grab hammer, smash phone, toss computer out the window, go to sleep Nov 04 03:16:19 lol Nov 04 03:16:22 I'm tempted ;) Nov 04 03:16:23 On the "Have Disk" screen, click "Next". Nov 04 03:16:37 (Not "Have Disk".) Nov 04 03:16:44 Is device connected as media device? Nov 04 03:17:04 Mugwump101, no Nov 04 03:17:09 only if I disable debug Nov 04 03:17:17 yes it is set as media device Nov 04 03:17:24 but if I enable usb debug Nov 04 03:17:26 it won't work Nov 04 03:17:37 wait huh? Nov 04 03:17:45 if I disable usb debug Nov 04 03:17:47 plug in USB Nov 04 03:17:50 it detects and works fine Nov 04 03:17:50 Go to settings > Storage Nov 04 03:18:13 Go to settings > storage > three dots > USB Computer connection > Media Device Nov 04 03:18:19 right Nov 04 03:18:22 Have it set on media device Nov 04 03:18:22 it's set to media device Nov 04 03:18:26 in debug Nov 04 03:18:29 it is Nov 04 03:18:32 but doesn't work Nov 04 03:18:35 that's my point Nov 04 03:18:55 if usb debug is enabled the phone will not connect AT ALL only shows as a single unknown device called "Nexus 5" in device manager Nov 04 03:19:02 if I disable USB debug Nov 04 03:19:05 and plug back in Nov 04 03:19:10 it detects fine, and I can browse the phone Nov 04 03:19:22 in BOTH cases it's set to Media Device (MTP) mode Nov 04 03:19:56 if I reboot into fastboot mode, that detects just fine, and driver installs Nov 04 03:20:08 but again, reboot into normal mode, enable debug, driver won't work still Nov 04 03:20:54 In Device Manager, is anything showing up for this under Other Devices? Nov 04 03:21:07 Glasswalker: So you right clicked "Nexus 5" in device manager > clicked properties > "Browse my computer for driver software" > "Let me pick from a list of device drivers on my computer" > "Android Device" > "Have Disk..." > selected proper drivers? Nov 04 03:21:25 yes Nov 04 03:21:40 in that case it installs, and shows up under ADB Devices as an Android Composite ADB Device Nov 04 03:21:44 but it won't list in ADB Nov 04 03:21:55 (even after restarting adb) Nov 04 03:21:57 adb kill-server Nov 04 03:22:08 hmm.. IDK :\ Nov 04 03:22:08 right done that, still doesn't see device Nov 04 03:22:09 DId you point to the sdk folder usb driver or a newly installed driver? Nov 04 03:22:18 sdk folder usb driver Nov 04 03:22:33 which was freshly downloaded via sdk manager Nov 04 03:23:00 * Glasswalker goes to get hammer Nov 04 03:23:10 lol Nov 04 03:23:22 It's funny because I had this issue when I first started Nov 04 03:23:27 but I got it fixed LOL Nov 04 03:23:44 Can't remember other than, I did point it to sdk folder with usb driver and it worked Nov 04 03:23:49 I've run into this before on samsung devices too Nov 04 03:23:54 Did you try to set it as Camera? Nov 04 03:23:57 and some odd combo of voodoo eventually makes it work lol Nov 04 03:24:02 haven't tried that yet Nov 04 03:24:03 one sec Nov 04 03:25:26 Glasswalker: When it shows an unknown device called "Nexus 5", have you tried the "update driver" thing at that exact point? Nov 04 03:25:32 I'm guessing so, but just making sure. Nov 04 03:26:31 Ditch Windows and then you can experience real adb hell. http://www.strazzere.com/blog/2011/03/welcome-to-adb-hell/ Nov 04 03:26:41 TacticalJoke, yes Nov 04 03:27:18 This is the path to where I have it set currently : ~adt-bundle-windows-x86_64-20140702\adt-bundle-windows-x86_64-20140702\sdk\extras\usb_driver_r06_windows Nov 04 03:27:26 Glasswalker: And at that point everything installs and it stops talking about an unknown device and yet adb doesn't see it? Nov 04 03:27:54 Is that the same path as yours? Nov 04 03:28:08 not exactly, but basically yes Nov 04 03:28:14 my base path for the sdk is different Nov 04 03:28:23 and it's not usb_driver_r06_windows it's just usb_driver Nov 04 03:30:43 TacticalJoke, Unknown "Nexus 5" shows up, I right click, Update Driver, Browse My Computer, Let Me Pick, Next (with "show all devices" selected), Have Disk, Browse, Browse to usb_driver folder in sdk, ok, choose "Android Composite ADB Interface", Next, Accept the windows warning, It says successful. Nov 04 03:30:56 wait, what's the folder above usb driver? Nov 04 03:31:03 At that point, it is installed and shows as Android Composite ADB Interface, and does NOT work in adb. Nov 04 03:31:36 Hmm. I'd expect it all to work at that point. Nov 04 03:31:41 Mugwump101, in my case: X:\Android\android-sdk\extras\google\usb_driver Nov 04 03:32:29 You've tried unplugging the device and re-plugging it, right. Nov 04 03:32:51 TacticalJoke, if I instead right click, Update Driver, Browse My Computer, Choose path with browse button, Check "include subfolders", click Next, it says "Windows was unable to install your Nexus 5, windows could not find driver software for your device" Nov 04 03:33:17 Glasswalker: Yeah, I had that. Nov 04 03:33:20 TacticalJoke, yes have tried unplugging, replugging, enabling and disabling debug, switching camera/media device, and so on (each time unplugging and replugging) Nov 04 03:33:28 But the "Have Disk" way worked for me, as it "worked" for you. Nov 04 03:33:46 Have rebooted in fastboot mode, install driver from there, it works fine in fastboot Nov 04 03:34:00 reboot in normal mode, with usb debugging disabled, and phone is seen and browsable Nov 04 03:34:18 Might not work, but have you considered trying Settings > Security > Unknown sources? Nov 04 03:34:23 An SO question suggests that. Nov 04 03:34:28 s/question/answer/ Nov 04 03:34:29 OH Nov 04 03:34:32 enable usb debugging and back to square one, nothing is seen, nothing browsable, and no adb driver installing (or I force it with have disk, and it simply isn't seen by adb) Nov 04 03:34:37 yes unknown sources is already checked Nov 04 03:34:55 Glasswalker Nov 04 03:35:04 I realized something Nov 04 03:35:26 Have you tried to download the newer driver update? Nov 04 03:35:42 I've downloaded all the updates from the SDK manager (all like 30GB of them) Nov 04 03:35:53 for all versions of android SDK 4.0 and upward Nov 04 03:36:02 But I will check again Nov 04 03:36:28 http://developer.android.com/sdk/win-usb.html#download Nov 04 03:36:32 Download it from here Nov 04 03:36:50 and try to connect to that path Nov 04 03:37:03 I think the reason it's working for me is because it's the latest update Nov 04 03:37:06 FYI, I got this working the other day with a Tesco Hudl 2 using version 11 of Google USB Driver (downloaded via the SDK Manager). Nov 04 03:37:12 I am not using the default google/usb_driver folder Nov 04 03:37:15 but another folder Nov 04 03:37:19 with the latest version Nov 04 03:37:26 TacticalJoke, yeah mine is Version 11 (from SDK Manager) Nov 04 03:38:08 Is it worth restarting Windows? Nov 04 03:38:12 Weirder things have happened, I guess. Nov 04 03:38:22 I know it shouldn't be needed. Nov 04 03:38:35 Glasswalker: maybe try this: http://www.koushikdutta.com/post/universal-adb-driver Nov 04 03:38:44 It's just strange that you've got to the stage where the USB driver installs okay, and still this isn't working. Nov 04 03:38:56 I have a project I want to start in android studio and want to have on github. Should I start a project on github, or start it on my laptop, then push to github? Nov 04 03:38:58 Also maybe restart the device? Nov 04 03:39:19 TacticalJoke, Definitely restarted device several times Nov 04 03:39:20 eghdk_: It shouldn't make any ultimate difference, AFAIK. Nov 04 03:39:44 Mugwump101, just tried your download link, same behavior (tried installing via both driver methods, behaves exactly the same as the sdk downloaded ver 11) Nov 04 03:39:44 eghdk_: Though I usually start it locally and push to BitBucket. :) Feels more powerful, somehow. Nov 04 03:39:57 Bitbucket* Nov 04 03:40:06 I think I missed out on some interesting conversation. Nov 04 03:40:35 I'm not sure but I'll try to look into it later Nov 04 03:40:39 TacticalJoke: I want to follow a tutorial. Would I use "Create a repo"? Is that essentially what I want to do? Nov 04 03:40:42 I have no idea at this point Nov 04 03:40:44 jrummy, trying your universal driver now :) Nov 04 03:40:47 eghdk_: Are you new to GitHub? Nov 04 03:41:58 I've never had a project on there Nov 04 03:42:15 I "use" it to take peoples stuff before. Nov 04 03:42:23 I've "used"* Nov 04 03:42:43 ok I installed universal driver, it installs, disconnected device as it said to, replugged device and it auto-detected just fine Nov 04 03:42:53 one sec, testing adb Nov 04 03:43:15 Ugh... still not shown in adb devices list Nov 04 03:43:22 ok well I'm done for now... Nov 04 03:43:26 adb kill-server again? Nov 04 03:43:32 TacticalJoke, yup Nov 04 03:43:35 still no dice Nov 04 03:43:49 I need to head to bed, should have been in bed like an hour ago, need to work early in the morning Nov 04 03:43:53 Guess I'll continue this tomorrow Nov 04 03:44:05 Thanks for all your help guys :) Nov 04 03:44:16 Hope you figure it out. Nov 04 03:44:21 oh I will Nov 04 03:44:23 Such things drive me insane. Nov 04 03:44:26 (preferably without the hammer) Nov 04 03:44:36 np, at some point it will work Nov 04 03:44:39 I had the same problem lol Nov 04 03:44:48 yup, I've totally run into this with other phones Nov 04 03:44:57 usually some voodoo ends up working Nov 04 03:45:06 With one of my phones, it just randomly started working. Nov 04 03:45:13 After about 10 tries. Nov 04 03:45:16 I forget what the tries were. Nov 04 03:45:34 such as standing on my head, while yodling on the third thursday after a waxing moon and wearing peanut butter toast on my feet as sandals... Nov 04 03:46:13 whatever I need to do to appease the ADB Driver Gods... Nov 04 03:46:14 ;) Nov 04 03:46:24 "OK Google -- stop playing around now. Let me use my device." "Device activated!" Nov 04 03:46:30 lol Nov 04 03:46:36 * Glasswalker shakes fist violently Nov 04 03:46:46 Be sure to come back here if it doesn't work. Nov 04 03:46:55 Maybe a Windows restart could help? I'unno. Nov 04 03:47:06 yeah will try that tomorrow (got too much stuff running to reboot right now) Nov 04 03:47:10 K. Nov 04 03:50:47 I'm new to mac. I want to get rid of Android Studio 0.8.9 completely and download studio 0.9.1. Do I need an uninstallar for android sutdio or anything? I'm really anal about making sure that every AS related is off my computer before I download the new version. Nov 04 03:51:30 just delete the dir and youll be fine Nov 04 03:51:49 if you want to remove config files, remove ~/.android-studio or something like that Nov 04 03:53:11 eghdk_ i use AppCleaner Nov 04 03:53:34 but even that doesn't find some things in ~/Library Nov 04 03:57:35 if you go into ~/Library and do : $ find . -name "AndroidStudio*" .. you'll find the other pieces Nov 04 03:57:51 Do you guys have any idea of how to create a simple "Tutorial" activity, featuring some simple text? I want something simple that looks good on any screen. I hoped to use a simple gradient in the background, but it seems that Android gradients look terrible. :[ Nov 04 03:58:13 I guess I used the word 'simple' a few times there. Nov 04 03:58:43 g00s: Thanks. That seems to be the standard utility for a lot of people. I also appreciate your experience/recomendation. Thanks Nov 04 03:58:45 TacticalJoke i've seen a few apps use a ViewPager with 4-5 pages, each explaining something important. and a Done button Nov 04 03:58:57 eghdk_ yw Nov 04 03:59:02 With just text (and no images)? Nov 04 03:59:06 And a plain background? Nov 04 03:59:26 usually a screenshot and some text Nov 04 03:59:46 there is a library that does some overlay thing Nov 04 03:59:54 I guess I'll have to worry about vertical scrolling. Nov 04 04:02:19 Hmm, maybe I could create some simple image and use tileMode="repeat". Nov 04 04:02:37 Though it'll probably end up looking like a GeoCities website from the '90s. Nov 04 04:07:36 Just downloaded android studio 0.9.1 and mac is telling me I need legacy version of jdk. I was developing before without "legacy" whats up? ANy pointers? Nov 04 04:08:35 Mac is telling you that? Nov 04 04:09:04 eghdk_ you can adjust a plist file to use oracle java 8 Nov 04 04:09:17 but, i hope you have retina, because its font rendering is terrible Nov 04 04:09:21 lambdazzzzz Nov 04 04:12:21 My goodness, so many Android tutorials are bad. Full of awful code. It's amazing, really. Nov 04 04:12:32 How do clueless people feel confident enough to teach? Nov 04 04:12:46 I guess it's the Dunning-Kruger effect. Nov 04 04:13:33 g00s: I have a retina Nov 04 04:13:40 Which plist do I edit? Nov 04 04:13:59 info.plist ? Nov 04 04:14:22 eghdk_ https://intellij-support.jetbrains.com/entries/23455956-Selecting-the-JDK-version-the-IDE-will-run-under Nov 04 04:14:36 thanks Nov 04 04:15:10 oh interesting, "JDK 1.7 from Oracle is not officially supported yet and has known problems that stop us from using it by default. " Nov 04 04:15:16 i wonder if that page is old Nov 04 04:15:32 yeah march 27, 2013 :) Nov 04 04:21:49 ugh i hate writing code that i have to comment with a todo to change later because its so horrible :( Nov 04 04:22:14 TacticalJoke is that you ? Nov 04 04:22:16 :) Nov 04 04:23:12 i have to access application state from one of my models that's deserialized from json Nov 04 04:23:13 JacobTabak well, i gues its technical debt. as long as you plan on paying it back :) Nov 04 04:25:43 Error:(18, 8) Gradle: error: Graph validation failed: You have these unused @Provider methods: 1. null Nov 04 04:25:44 -.- Nov 04 04:26:03 JacobTabak did you get 0.14.1 ? Nov 04 04:26:10 no Nov 04 04:26:16 this isn't a gradle issue Nov 04 04:26:22 oh Nov 04 04:27:07 oh is that dagger? Nov 04 04:27:20 ya Nov 04 04:29:37 i'll use that someday Nov 04 04:30:30 i haven't found much opportunity for DI in this current app; maybe i need to see some good examples with android Nov 04 04:30:49 really just need it for testing Nov 04 04:31:00 yeah i dont do that Nov 04 04:31:02 other than that its just convenient Nov 04 04:31:03 XD Nov 04 04:39:42 TacticalJoke, "those who can't, teach" Nov 04 04:40:22 well, i notice a lot of blogs from a certain part of the world, which just either regurgitate the docs, or copy some other blog. must be a prestige thing Nov 04 04:40:34 certain part of the world? Nov 04 04:40:34 :) Nov 04 04:42:49 JacobTabak yeah, something going on in antarctica Nov 04 04:42:51 pfn: lol Nov 04 04:43:32 g00s: God, I'd lose sleep if that were me. Nov 04 04:44:27 i just implemented this thing Nov 04 04:44:58 i'm a bit nervous. i never got to test my app on 5.0 since the emu doesn't support BT; BTW - google said the emu would support BT years ago but they didn't follow through on that Nov 04 04:45:14 so i hope i don't suddenly get a bunch of crashes Nov 04 04:46:09 My current app is basically a self-help app. lol Nov 04 04:46:11 It's so weird. Nov 04 04:46:25 I just kinda realised this while writing the tutorial thing. Nov 04 04:47:03 (My first draft sounded like the synopsis of a self-help book.) Nov 04 05:09:46 so... putting this out here again Nov 04 05:10:13 i was thinking about a simple object data store Nov 04 05:10:14 There's no issue with hard-coding \n characters in strings, right? Like, there'll never be a day when Google switches to "\r\n" or something. Nov 04 05:10:22 backed by json Nov 04 05:10:27 that's thread safe and can store lists of objects Nov 04 05:10:51 g00s, you worry too much. Nov 04 05:10:54 not relational data Nov 04 05:11:17 should i write my own? or is there a good one with a good community Nov 04 05:13:00 From Reddit -- Dwayne "The Rock" Johnson should host a cooking show where contestants have to guess what he's cooking by smell alone. Nov 04 05:13:15 (That was a quote.) Nov 04 05:14:45 You know what would be awesome and scary? Nov 04 05:14:48 Releasing an app that starts a cult. Nov 04 05:15:01 And they see you or the app as their leader. Nov 04 05:15:05 I'm not sure how I'd feel about that. Nov 04 05:15:45 TacticalJoke: Off the meds today? Nov 04 05:15:46 pfn when android 4.0 hit, my app crashed. they changes something with perms of the content provider Nov 04 05:16:02 i think that was one of the only hot bug fixes i had to do :) Nov 04 05:16:41 but i'm more worried about ART i guess Nov 04 05:16:49 Darklust: Nah, but I suddenly realised that an app I'm working on could (in theory) start a little cult. Nov 04 05:16:51 I doubt it, though. Nov 04 05:16:57 The book it's based on *did* create a cult, from what I read. Nov 04 05:17:07 Intriguing Nov 04 05:17:20 if i switch my N7 2013 running stock 4.4.4 to ART , i don't think thats the same as the 5.0 ART Nov 04 05:18:19 art poses no real risks to a pure java app Nov 04 05:18:50 well thats good :) Nov 04 05:19:52 Hmm, I can't find the option to switch to ART on the Tesco Hudl 2 (4.4.2). Nov 04 05:20:00 It's not in Developer Options. Nov 04 05:20:11 TacticalJoke: good Nov 04 05:20:40 toggling art is annoying Nov 04 05:20:52 have to dex2oat everything. Nov 04 05:20:55 takes ages Nov 04 05:21:02 actually, given that the hudl2 is an x86 tablet, I wouldn't be surprised if it didn't have ART on K Nov 04 05:22:42 Apart from that, though, the Hudl 2 is really nice. :) Nov 04 05:22:47 Awesome screen. Nov 04 05:23:09 Worked with Google USB thingy. Nov 04 05:26:37 on one hand, id like to get 5.0 on my n7 asap to test the app, otoh as a user i'd rather wait until 5.1 or something :) Nov 04 05:27:01 hopefully there will be an MR1 in the next 4 months Nov 04 05:27:16 preferably sooner Nov 04 05:28:56 as long as my Kindle app works :) every book i own is in there :D Nov 04 05:31:22 anyone have any numbers on sharedpref read/write times Nov 04 05:31:44 does it matter? it's async Nov 04 05:32:06 is it? Nov 04 05:32:09 reading? Nov 04 05:32:14 i dont think so Nov 04 05:32:21 the first read is sync, obviously Nov 04 05:32:24 JacobTabak yeah, see .apply() and commit() Nov 04 05:32:29 i'm aware of that Nov 04 05:32:31 im concerned about reading Nov 04 05:32:39 and is it actually cached after the first read? or is that just a rumor Nov 04 05:32:51 there's a place you can check Nov 04 05:32:59 #lazywebs? Nov 04 05:32:59 i know that place ... Nov 04 05:33:04 its a wonderful place ... Nov 04 05:33:12 just wondering if anyone has an article or anecdotal evidence Nov 04 05:33:40 wait shared prefs is cached? Is that written in the docs anywhere? Nov 04 05:34:05 no, it's an implementation detail Nov 04 05:34:17 the docs to apply probably mention it Nov 04 05:34:20 eghdk_: Surely it's kept in memory after the first read. Nov 04 05:34:37 And apply()ing is of course async. Nov 04 05:34:41 i am thinking about using a json object store for recent searches and stuff like that Nov 04 05:34:46 and wondering if i should make my own memory cache Nov 04 05:34:52 (Async regarding file writing, but not memory writing.) Nov 04 05:34:55 "Unlike commit(), which writes its preferences out to persistent storage synchronously, apply() commits its changes to the in-memory SharedPreferences immediately but starts an asynchronous commit to disk and you won't be notified of any failures." Nov 04 05:35:15 so i wonder if it keeps it in memory when the write is done? Nov 04 05:35:35 TacticalJoke: Excuse my ignorance... or really my in expereince with doftware dev... but why is it "surely kept in memory after first read" Nov 04 05:35:36 JacobTabak: It says it's immediately placed into memory. Nov 04 05:35:42 JacobTabak: it does Nov 04 05:35:49 why waste time going to disk? Nov 04 05:35:58 memories Nov 04 05:36:07 The entire structure is in RAM. Disk access is only occasional. Nov 04 05:36:19 same reason the sdk is littered with unreadable consts instead of enums Nov 04 05:37:03 those are different memory concerns Nov 04 05:37:21 Oh. Hmmm. then memory wise wouldn't people have to be careful if the whole thing is loaded into ram? I know some peoplle try to put objects in sharedprefs using libraries like "complexSharedPrefs" and others. Nov 04 05:37:25 also, performance Nov 04 05:38:35 eghdk_: I just looked at the code. EditorImpl.apply and EditorImpl.commit call EditorImpl.commitToMemory right away. The last one seems to really do what it claims to do. Nov 04 05:38:37 Since it seems like you guys know whats going on. Can I just bring up two things really quick. Enums or Consts? AsyncTasks... ever? Nov 04 05:38:47 enums always asynctasks never Nov 04 05:38:53 almost never Nov 04 05:39:15 yea and enums not always always Nov 04 05:39:23 but almost always! Nov 04 05:39:36 JakeWharton: enums or consts? Nov 04 05:39:39 you should always start with enums Nov 04 05:39:50 When would we not use enums? Just curious. Nov 04 05:39:53 really? Nov 04 05:40:06 TacticalJoke: tight draw loops Nov 04 05:40:17 unless the values need to directly map to an int (like for adapter item types) Nov 04 05:40:21 I took so much shit with my team when I was like "Nah man dont use enums... look at these stackoverflow posts and documentation" Nov 04 05:40:31 To the point that Im just confused. Nov 04 05:40:39 tell your team to form their own opinions Nov 04 05:40:39 eghdk_: Enums are way simpler. Nov 04 05:40:43 Self-documenting code FTW. Nov 04 05:40:54 enums are so valuable. code that makes sense is awesome Nov 04 05:40:59 your app _will_ have hundreds of easier optimizations for memory and performance than switching from enums to consts Nov 04 05:41:06 i guarantee that Nov 04 05:41:11 eghdk_ the android FAQ a long time ago said don't use enums, but nowadays it doesn't matter Nov 04 05:41:16 I'm guessing that most apps have network or IO as bottlenecks. Nov 04 05:41:40 people don't use enums and then instantiate things like HashMaps all over the place Nov 04 05:41:49 And, yeah, anything else will probably not be enum-related. Nov 04 05:42:01 i roflcopter hard Nov 04 05:42:12 Got it. Yeah. I guess its just like I see constants everywhere with my basic development. Mostly I'm talking about toasts length, but like they could've just made that an enum... right? Nov 04 05:42:20 I guess its just style? Nov 04 05:42:26 it's different for framework code Nov 04 05:42:48 I would've thought enums were just compiled down to ints under the hood. Hmm. Nov 04 05:42:49 I guess not. Nov 04 05:42:56 the size and performance of framework code is important because it lives in the zygote and is a fixed cost to every single process Nov 04 05:43:04 TacticalJoke: they're compiled to full classes Nov 04 05:43:07 Ooh. Nov 04 05:43:09 This is Java. lol Nov 04 05:43:14 they can have static and instance methods on them Nov 04 05:43:21 constructors Nov 04 05:43:24 fields Nov 04 05:43:25 I think in C# they are compiled to ints. That's where I got the attitude from. (Though I could be wrong.) Nov 04 05:43:28 Right. I see. Nov 04 05:44:10 I used to look at compiled C# code all the time and try to figure out what's really worth worrying about and what's not. I haven't started doing that with Java yet. Nov 04 05:44:43 it's fun, when you have the time Nov 04 05:44:48 Yeah. :) Nov 04 05:44:48 TacticalJoke you decided its all worth worying about , right ? Nov 04 05:44:49 you mena enums? can have those Nov 04 05:44:51 I love stuff like this. Nov 04 05:44:52 mean* Nov 04 05:44:55 lol g00s Nov 04 05:45:04 JacobTabak: yes Nov 04 05:45:29 worrying about stuff like this only matters once you've actually shipped Nov 04 05:45:30 so the fact that they can have them is a significant cost even if they don't Nov 04 05:45:45 Interesting. Didn't know that. ANd yeah thats a good point that for framework code why they would choose consts over enums. Nov 04 05:45:54 eghdk_: Yeah, don't worry about this stuff. It won't make a difference in 99% of cases. Code readability trumps almost all. Nov 04 05:46:05 code readability and just shipping Nov 04 05:46:23 people waste so much time just debating on things Nov 04 05:46:34 shipping is 1000x more useful than saving 2% memory Nov 04 05:47:16 i need to read a book Nov 04 05:47:41 JCIP! Nov 04 05:47:42 I can't wait to ship my app. Finally created a developer account the other day. :) Nov 04 05:47:54 Though I'm such a perfectionist that it won't ship in a long time, maybe. ;| Nov 04 05:48:18 You know what sucks that I recently found out. The Java compiler won't strip out code for Build Flavors in an if statement. Nov 04 05:48:26 I need to remember that early releases are good. Nov 04 05:48:34 recommended? Nov 04 05:48:51 eghdk_: how are you checking? Nov 04 05:48:53 I posted a question on SO and a google guy responded and said java compiler will remove code from my binary if its an int but not a string. Nov 04 05:48:59 ah, yeah Nov 04 05:49:07 http://stackoverflow.com/questions/26636282/how-to-have-two-build-flavors-inherit-from-a-root-flavor-in-android-studio Nov 04 05:49:09 just add a boolean buildConfigField Nov 04 05:49:20 the java compiler doesn't remove. dead code Nov 04 05:49:21 Its making flavors kinda hard to use in my opinion Nov 04 05:49:44 Aren't 99.9% of if statements absolutely zero overhead, though? Nov 04 05:49:54 s/absolutely/basically/ Nov 04 05:49:58 Especially when paid vs free is only different in one spot in one file and I wish I could just if() statement that crap, but I can't Nov 04 05:50:33 Its more of the fact that its COMILED into my apk Nov 04 05:50:51 Oh, that aspect. Nov 04 05:50:53 pfn: yes it does Nov 04 05:51:07 Apparently the iOS guys can write if statements in code and it gets compiled out, and the dude I'm doing this work for wants the same in Android. Nov 04 05:51:20 eghdk_: that's preprocessor stuff Nov 04 05:51:32 eghdk_: i just told you how to fix it Nov 04 05:52:08 JakeWharton: Yeah, thats what he recomended also (the google guy), to just put in a buildConfigField Nov 04 05:52:31 eghdk_ do you have a link to that solution? i'm curious Nov 04 05:52:44 JakeWharton, I don't recall that being g the case but ok Nov 04 05:52:48 pfn: just tried it Nov 04 05:52:57 i had never verified it either Nov 04 05:53:06 I just feel like with an int... anyone else that takes on the project may be confused at just comparing ints? Nov 04 05:53:28 Like its not as readable as Strings? Nov 04 05:54:05 both should likely be constants anyway Nov 04 05:54:14 Wait... I would be comparing strings though... right? Nov 04 05:54:31 enums have instance equality Nov 04 05:54:31 Is it guaranteed that views appearing later in a layout XML file will have a higher Z index than (i.e., will potentially display on top of) other views? Nov 04 05:54:36 if (foo = Foo.AR) { ... } Nov 04 05:54:44 If a constant ISN'T used... will the compiler take that out also? Or is that proguard type of stuff Nov 04 05:54:57 TacticalJoke: no, the container decides order. mostly yes, though. Nov 04 05:55:22 Is there a way I can guarantee that Bar will appear on top of Foo, then? Nov 04 05:55:35 I see that there's no zOrder XML thing. Nov 04 05:55:39 if you control the container, yes. e.g., FrameLayout will always behave that way Nov 04 05:55:48 Okay. I'm guessing RelativeLayout, too. Nov 04 05:56:06 yes Nov 04 05:56:56 Since I still consider myself pretty inexperienced with Java... any way to see what the java compiler removes compared to proguard? Nov 04 05:57:02 Linear means one after another Nov 04 05:57:50 eghdk_: it's just anything that can be statically determined to be false in a conditional Nov 04 05:58:21 So why not strings then? Nov 04 05:58:59 Oh strings don't use conditional equality signs right? Nov 04 05:59:27 correct Nov 04 05:59:29 you can use variables if they are final , like if (debug) { Log ... } Nov 04 05:59:37 this has a good explanation of the behavior: http://stackoverflow.com/a/2141300/132047 Nov 04 05:59:45 So anything thats compared with == or > can be statically determined and therefore compiled out... which is why strings can't because they use the equals() method? Nov 04 06:01:26 Great. Will research this on the train tomorrow. Nov 04 06:01:38 I don't know if comparisons will work Nov 04 06:02:26 it does Nov 04 06:02:32 you just have to use constants for both values Nov 04 06:02:41 Sorry erm... what do you mean by comparison now? Greater than signs? or are you talking about the equals() method? Nov 04 06:03:08 binary operators (==, >=, >, <, <=, !=) Nov 04 06:03:21 Both of those seem like comparisons to me... I just want to make sure I'm on the same page. Nov 04 06:03:29 Okay thanks! Nov 04 06:04:23 Last thing... You keep on checking these things seemingly... You're not writing an app and then decompiling it to see what the result is... are you? Nov 04 06:04:35 i am Nov 04 06:04:53 Do you have to invoke the Java compiler manually to do this? (I'm guessing so.) Nov 04 06:05:09 echo "class Test { public static void main(String... args) { if (0 > 1) { System.out.println("Foo"); } System.out.println("Bar"); } }" > Test.java && javac Test.java && javap -c Test Nov 04 06:05:15 Heh. You've gotten pretty fast at it. I remember trying it once (to decompile) and it took me a little bit. Nov 04 06:05:15 JakeWharton doesn't need a computer, he compiles it in his head ;) Nov 04 06:05:16 Okay. Nov 04 06:05:45 except with proper escaped quotes Nov 04 06:05:53 (I cheated and used an editor to write the file) Nov 04 06:06:06 I should get more into Java. It's so handy knowing under-the-hood stuff. Nov 04 06:06:21 i thought for a second maybe JakeWharton was chuck norris, until we learned he actually used an editor Nov 04 06:06:29 The first time I decompiled something and saw that ( i += 2) was generated to i = i + 2; I was blown away. I'm like... theres no need for me to do it! I thought I get a speed increase at runtime. Nov 04 06:06:31 well it was nano Nov 04 06:06:35 not any of that vim/emacs crap Nov 04 06:07:19 += is a nice abstraction. I'd recommend still doing it. :D Nov 04 06:07:55 so i guess no event bubbling/propagation happens on onClick event listeners unlike onTouch ones Nov 04 06:08:07 Yeah, but again I thought I was getting a runtime boost but I was wrong. Nov 04 06:08:13 since function definition is void Nov 04 06:08:15 shmooz: onClick is triggered because of onTouch Nov 04 06:08:23 oh? Nov 04 06:08:50 touch events traverse down and a view sees ACTION_DOWN and ACTION_UP without ACTION_CANCEL Nov 04 06:08:54 so it dispatches a click Nov 04 06:09:21 I see Nov 04 06:09:23 touch events are the granular unit, click events are the abstraction Nov 04 06:09:28 You guys use anonymous inner classes inline for methods like onClick and stuff? I work with a guy that won't... but I'm reading Big nerd ranch and they DO use anonymous inner class. Nov 04 06:09:40 Hello, I have made a custom layout for the action bar (to center the text), as I will be using the same layout for all activities, I've left the text of TextView empty so that I can dynamically change it. But the reference to it in Main activity returns null Nov 04 06:09:56 eghdk_: I use only (named) inner classes now. I find that much more readable. Nov 04 06:09:56 eghdk_: what does that guy do? Nov 04 06:10:00 cool thanks JakeWharton ya i see docs says has to call performClick() Nov 04 06:10:49 eghdk_: But I am obsessive about code style. Nov 04 06:11:06 i just use Butter Knife! woooo Nov 04 06:11:35 lambdaz Nov 04 06:12:14 JakeWharton: I hope I'm not using the wrong java terms here, but he just makes and names the class at the bottom of the activity and will call it like CancelButtonOnClickListener and then say setOnClickListener(CancelButtonOnCl....); Nov 04 06:12:25 This is how I like it: http://pastebin.com/WRHJ0uZL Nov 04 06:12:41 this is the worst error i hope its fixed in 2.0 dagger.internal.codegen.Util$CodeGenerationIncompleteException: Unknown type returned as . Nov 04 06:12:55 JacobTabak: have you tried it with 2? Nov 04 06:12:58 no Nov 04 06:13:08 JakeWharton: Butterknife is for onClickListeners and stuff? I thought it was only for not doing findViewById? Nov 04 06:13:13 we haven't enabled Telekinetic GitHub Issues yet Nov 04 06:13:21 i'm sure it wont be an issue Nov 04 06:13:23 eghdk_: nope. annotate a method with @OnClick(R.id.foo) Nov 04 06:13:31 by the nature of 2.0 Nov 04 06:13:36 since there won't be injects anymore Nov 04 06:13:46 just drives me nuts today Nov 04 06:13:49 and i like to whine abotu things Nov 04 06:13:56 never seen that Nov 04 06:14:02 i delete a class that had injections Nov 04 06:14:15 er, listed in injects { } Nov 04 06:14:23 Most people like anonymous classes for at least *short* event handlers. Some people use them for huge event handlers. :/ Nov 04 06:14:53 I get weirded out when I'm reading a method and there's a whole class all of a sudden. Nov 04 06:14:53 the problem with all this is a million ways to do the same crap Nov 04 06:15:06 like all programming ever... Nov 04 06:15:14 Heh. Thanks. I'll have to look into butterknife again. and TacticalJoke that pastebin looks good. Nov 04 06:16:32 would it be possible to do menu click integration with butterknife, i'm guessing it wouldnt be trivial because its not done yet Nov 04 06:16:33 Here is a pretty good SO question about this: http://stackoverflow.com/questions/714602/anonymous-vs-named-inner-classes-best-practices Nov 04 06:16:53 JacobTabak: has nothing to do with views Nov 04 06:17:06 it is really similar though Nov 04 06:17:30 butterknife.inject(object, menu) Nov 04 06:17:41 after inflating a menu resource Nov 04 06:17:45 seems like scope creep Nov 04 06:17:54 :( Nov 04 06:18:07 fork it Nov 04 06:18:12 there's no overlap Nov 04 06:18:26 ButterTray Nov 04 06:18:26 i just think it would be a welcomed addition by everyone who uses butterknife Nov 04 06:18:49 Does Java 8 kinda solve this? I went to droidcon and someone had a presentation and said you can use lambdas. I always thought it was some cool new Math class function, but apparently its for being able to write things out shorter? Nov 04 06:18:51 maybe you should probe some other users and see what they think :P Nov 04 06:19:25 retrolambda works Nov 04 06:19:32 eghdk_: lambdas are cool new things but the jank Android backport is just a transcompilation to an anonymous inner class through byte code weaving (vomit) Nov 04 06:19:47 hey taco bell would make you vomit if you were in the kitchen Nov 04 06:19:50 just dont go back there man Nov 04 06:19:54 I'd love lambdas. They're really handy. Nov 04 06:20:07 enjoy the delicious flavor of your crunchwrap supreme, dont think about whats inside Nov 04 06:20:44 eghdk_: You're exactly right. Lambdas are anonymous functions (rather than anonymous classes). Nov 04 06:21:02 Oh interesting. The guy presenting said you can just use them natively in android because something about it does it at compile time or something and even though android doesnt officially support Java 8 it still works. Nov 04 06:21:11 I know quite a few people that vomit after eating at taco bell no matter what Nov 04 06:21:25 it's just *that* bad what they do Nov 04 06:21:34 eghdk_: it transcompiles them to an anonymous inner class through byte code weaving Nov 04 06:22:01 ravilov what if the crunchwrap supreme wasn't really even meat, but ground up android 2.3 phones ? Nov 04 06:22:01 TacticalJoke, there is no such thing as a "function" in java Nov 04 06:22:02 Oh I thought you were talking about "RetroLamda" which I figured was some library Nov 04 06:22:16 ravilov: Methods are functions, by usual definition of 'function'. Nov 04 06:22:29 i laughed g00s Nov 04 06:22:32 g00s, you just won't let go, will you? Nov 04 06:22:34 :p Nov 04 06:23:01 2.3 went down close to 2 percent today I think. New dashboards released Nov 04 06:23:31 TacticalJoke, uh sure... so I suppose methods returning void are "procedures" then Nov 04 06:25:12 nothing is at 2%. froyo was <1% and 2.3 was like 10% Nov 04 06:25:25 JakeWharton, out of curiosity, how many people are in Square? or is it really just a one-man-band? Nov 04 06:25:27 Almost any definition of 'function' you'll find will probably be "a named piece of code" or something. Nov 04 06:25:31 A method is a kind of function. Nov 04 06:25:43 ravilov: how many what? there's like 900 people Nov 04 06:26:01 o.O Nov 04 06:26:08 oh okay Nov 04 06:26:20 JakeWharton: I meant to say it went down around 2% because last time it was at 10 or 11% and now its at 9.8. Nov 04 06:26:35 Using "function" in a particular way seems to relate to C, where it appears to have a special meaning. Nov 04 06:27:37 ravilov: i'm supposed to say we "have more than 800 employees" officially Nov 04 06:27:39 I think someone could make the point that static methods shouldn't even be called methods. Nov 04 06:27:43 Though it's hard to define "method", I guess. Nov 04 06:27:55 My company wants to move from square swipe payments to paypal swipte payments because of lower % apparently... but the devs are like NO. We must support the square guys. Its pretty funny actually. Nov 04 06:28:09 TacticalJoke, that only applies to C and similar languages and nowhere else, not sure what do you mean by "almost any definition" Nov 04 06:28:27 eghdk_: paypal has fees and minimums and other stuff to get you. all the lower % places do. Nov 04 06:28:48 I mean that this concept of a function returning a value and a procedure not returning a value -- as far as I remember, that's a C-ism. Nov 04 06:28:54 I'll make sure they know =) Nov 04 06:28:58 TacticalJoke, the definition a "method" is actually well known Nov 04 06:29:12 How would you define 'method'? Nov 04 06:29:33 JakeWharton, I see... I don't know why I thought you're kind of... small. lol Nov 04 06:30:01 money and banks... requires a ton of operations people. Nov 04 06:30:11 someone kick JakeWharton for advertising! Nov 04 06:30:25 ;) Nov 04 06:32:27 can't kick myself, no power Nov 04 06:32:51 Well the dev team JakeWharton is pretty sweet. Thats all I know. One last thing before I head to bed. Been doing java for a little while now. With that said , any of you went for oracle java cert? I feel like I know java dev, but theres always something random that pops up... and I'm just like idk wtf this is. Nov 04 06:33:20 Mainly classes with generics Nov 04 06:33:27 eghdk_ i've never seen any shop care about that cert Nov 04 06:33:29 eghdk_: nope. that's for people looking for Java EE jobs and stuff, I assume Nov 04 06:33:38 And interfaces still kinda confuse me as of why they exist I guess. Nov 04 06:33:47 TacticalJoke, traditionally, a method would be a piece of code that has a name, a list of arguments, and a return type Nov 04 06:33:53 and EE is a separate cert i think Nov 04 06:34:08 (I'm not talking about this new lambda crap) Nov 04 06:34:24 I thought typical definitions of "method" included "tied to a particular instance" or something. Nov 04 06:34:32 Yeah. I don't even want the cert as something to display on a resume... its just to take a test to judge myself. Nov 04 06:34:43 Or "tied to a class". Nov 04 06:34:53 I like this SO thread: http://programmers.stackexchange.com/questions/20909/method-vs-function-vs-procedure Nov 04 06:34:58 TacticalJoke, nope, or else there would be no room for statics ;) Nov 04 06:35:03 Points out that these terms are used to mean all different things. Nov 04 06:35:16 TacticalJoke nows a good time to get back to coding :) Nov 04 06:35:22 Like I could never write some of these crazy libraries that everyone uses... from any of the square guys or netflix or what have you. Nov 04 06:35:29 ok can't look at code now Nov 04 06:35:36 er, links* Nov 04 06:35:59 eghdk_ there is a lot of cross polination of idead Nov 04 06:36:02 *ideas Nov 04 06:36:29 contamination* :p Nov 04 06:36:33 That's actually a good point that I haven't thought about. Nov 04 06:37:02 the more you learn the more your horizonz expand Nov 04 06:37:28 the more you learn, the more you realize you don't know anything Nov 04 06:38:40 it takes a wise man to realize how little knowledge they've mastered Nov 04 06:42:07 so, did the (in)famous 5.0 come out yet? Nov 04 06:43:25 depends on your definition Nov 04 06:43:40 it's in AOSP Nov 04 06:44:13 ravilov will now be officially less than 1/2 of the current android version Nov 04 06:44:22 big day for him Nov 04 06:45:02 ravilov you could go to a more prestigous group migrating from 2.3 to 2.2. thats only 0.6% Nov 04 06:45:40 i always though 2.2 was really like Android 1.0 :D Nov 04 06:45:57 nah it was a bit better than that Nov 04 06:45:58 1.1 Nov 04 06:46:03 * lewellyn has a netbook running 1.6 :P Nov 04 06:46:16 it doesn't see much power-on time Nov 04 06:47:16 g00s: 1.6 was 1.0 Nov 04 06:49:57 is there an android museum ? Nov 04 06:50:13 walk into any used mobile phone store :P Nov 04 06:50:20 there's about 200 elderly devices in the lobby of b44 at Google Nov 04 06:58:02 So which version is 5.0? Something like 3.0? Nov 04 07:01:35 if we're playing the chrome versioning game, 42 Nov 04 07:03:04 I think the issue with Chrome/Firefox version numbers it that we simply can't think that high. Numbers around three are so easy for humans. Nov 04 07:03:09 Those high version numbers just feel weird. Nov 04 07:04:25 Those high version numbers make some sense as they’re really not meant to be used. Nov 04 07:04:38 i.e., Google’s never going to talk to consumers about Chrome 45. Nov 04 07:07:25 they should be using roman numerals Nov 04 07:07:36 I'm sticking with x.y.z. Nov 04 07:07:46 Where x, y, and z are determined at whim. Nov 04 07:09:14 I hope Android Studio includes a certain feature before 1.0. ;| Nov 04 07:09:26 I can't say it because a riot will start. Nov 04 07:09:29 g00s: they should be using the API number Nov 04 07:09:51 oh, +1 to lewellyn Nov 04 07:10:08 monotonically increasing numbers because who cares Nov 04 07:10:21 capella doesn't Firefox XXXIII sound so much cooler than Firefox 33 ? Nov 04 07:10:29 :) Nov 04 07:10:56 Firefox XOXO Nov 04 07:11:28 * capella is gonna die trying to figure out how to getMeasuredWidth() of something that's not yet Visible ... Nov 04 07:11:29 I'm sad I had to leave Firefox. I used to love that thing. Nov 04 07:11:53 o wow, people actually demand Android devs know wierd Android API minutae by heart Nov 04 07:12:02 Had to because of the lack of multi-tab selection, etc. Nov 04 07:12:18 capella: tell it to measure itself Nov 04 07:12:51 It's an empty LinearLayout set to match_parent Nov 04 07:14:01 And the parent is empty ... I'm trying to borrow a library without modifying it Nov 04 07:14:17 :P And that's not gonna work Nov 04 07:15:12 Are you working on Firefox, capella? Just being nosy. Nov 04 07:15:40 Yah, trying to import our TextSelection ActionCompat stuff into our new WebApp Nov 04 07:16:27 It works mostly, just not the first time, before the view has been inflated once so measuring can then take place Nov 04 07:17:09 I need to ask the author why he can just limit the number of children vs measuring to see if they fit Nov 04 07:17:15 *can't Nov 04 07:41:43 haha, this was great http://i.imgur.com/WuSLJBI.jpg Nov 04 07:44:13 LOL Nov 04 07:44:19 g00s: saw it on my way to work Nov 04 07:44:27 (it's 9:44 AM) Nov 04 07:48:00 thepoosh seems like a legit android interview question too Nov 04 07:48:14 s/pedro/andy Nov 04 07:48:19 lol Nov 04 07:48:49 g00s: did you listen to this? Nov 04 07:48:49 http://8mileandabbey.com/ Nov 04 07:48:54 it's interesting Nov 04 07:53:07 capella does rust have a goof FFI story ? Nov 04 07:53:22 if i'm in python, can i call into rust pretty easy ? Nov 04 07:55:00 Rust? What's that :D Nov 04 07:55:18 Heh - I haven't learned a thing about that yet Nov 04 07:55:35 I build Servo once to say I could, but I didn't dig into the code Nov 04 07:57:08 refactoring old code: http://i.imgur.com/5EFJrLx.gif Nov 04 07:57:34 rust is legit Nov 04 07:57:56 Mavrik: that was just sad Nov 04 07:58:20 especially since I have a bug to fix in old code that I didn;t write that requires refactoring Nov 04 07:58:39 Mavrik: ++ Nov 04 07:59:06 thepoosh: that's the story of my life ;) Nov 04 08:00:49 http://i.imgur.com/WS41FP6.jpg Nov 04 08:00:49 Mavrik, lol, at least he tried Nov 04 08:01:13 OH NOES! I've been using a bug all this timeQ Nov 04 08:01:14 ravilov: that's what makes it even sadder to me Nov 04 08:01:17 !* Nov 04 08:01:42 my patches https://www.dropbox.com/s/xc631rart6ouoik/patches.gif?dl=0 Nov 04 08:02:23 your animated gif is not being animated Nov 04 08:02:31 i see that :/ Nov 04 08:02:31 dropbox is probably not the best place for such things Nov 04 08:02:32 btw, any good ways to keep allocation count down with RxJava? Nov 04 08:03:33 capella: try pasteboard.co Nov 04 08:04:47 mmm ... http://pbrd.co/1t7L4uD Nov 04 08:05:07 nice Nov 04 08:06:43 my tea is brewing nicely, maybe I should stir it though. http://i.imgur.com/UafHVDc.jpg Nov 04 08:10:55 JesusFreke did you see this? http://www.colm.net/news/ Nov 04 08:11:21 lame Nov 04 08:11:59 This had to happen https://www.techdirt.com/articles/20141031/15130229005/misguided-pianist-asks-washington-post-to-remove-less-than-wonderful-review-under-right-to-be-forgotten.shtml Nov 04 08:14:33 bah, why the hell is Gradle compiling subproject with Release buildType when I request debug Nov 04 08:15:18 because gradle has a mind of its own? Nov 04 08:16:50 MUHAHAHAHA Nov 04 08:17:06 all you drawable are belong to us! Nov 04 08:17:18 even the XML ones?? Nov 04 08:17:28 in the new gradle yes Nov 04 08:17:34 from what I read on g+ Nov 04 08:17:39 great Nov 04 08:17:44 https://plus.google.com/+TorNorbye/posts/eHsStybrrBf Nov 04 08:18:13 capella: did you see his followup to the post brouhaha? http://www.dejanlazic.com/ Nov 04 08:18:29 * capella reads... Nov 04 08:18:45 i offer it without further commentary ;) Nov 04 08:20:28 yah no, he's wrong ... the answer to speech you disagree with is your own speech Nov 04 08:21:18 if I have an index on a SQLite column in a db and it's indexed, will the index be used if I use an IN clause? Nov 04 08:21:21 * capella goes to on topic :) Nov 04 08:21:49 capella is doing a whole lot of things now Nov 04 08:22:56 thepoosh, that is up to the built-in query optimizer (if any) Nov 04 08:23:09 it's the built in sqlite engin Nov 04 08:23:25 I know Nov 04 08:23:28 thepoosh: you can use EXPLAIN QUERY PLAN to find out. Nov 04 08:23:28 it's the native SQLiteDatabase Nov 04 08:23:31 thepoosh "The initial columns of the index must be used with the = or IN or IS NULL operators." Nov 04 08:23:33 hmmmm Nov 04 08:23:34 I just don't know if it has any query optimizer built in Nov 04 08:23:53 I'll run it in terminal to check Nov 04 08:23:54 https://www.sqlite.org/optoverview.html Nov 04 08:23:56 so yeah Nov 04 08:23:56 Mavrik: check build variants Nov 04 08:23:56 with the explain Nov 04 08:24:00 thepoosh: https://www.sqlite.org/eqp.html Nov 04 08:24:08 * thepoosh is reading Nov 04 08:24:30 cool Nov 04 08:24:33 thanks guys Nov 04 08:25:55 oh, good gradle news Nov 04 08:26:19 hopefully it's not compiling forever now Nov 04 08:26:31 gordon_, the point is that it's ignoring them Nov 04 08:26:41 * Mavrik bashes head in the wall. Nov 04 08:27:15 Mavrik: maybe you have it specified in gralde.properties or somewhere ? Nov 04 08:28:16 Mavrik don't, bash is a bug! Nov 04 08:29:24 lol Nov 04 08:29:42 gordon_: it will still take a long time Nov 04 08:29:46 13 minutes for me Nov 04 08:31:08 gordon_, hmm, no and the dependency config doesn't state anything about type either Nov 04 08:31:27 but whenever the app gets compiled, the library is always rebuilt with Release tasks not Debug Nov 04 08:31:28 -_- Nov 04 08:32:31 maybe bug ? Nov 04 08:37:44 i just noticed the gradle 0.14 samples removed anything dealing with uploadArchives, maveininstaller, or mavendeployer Nov 04 08:37:59 these samples were in 0.13 Nov 04 09:01:21 man this is weird. a lot of samples were removed from gradle-samples-0.14 Nov 04 09:02:16 well Nov 04 09:02:28 they successfully broke code coverage and released without noticing Nov 04 09:02:38 I think that sums up the Google attitude towards testing ČP Nov 04 09:03:24 Mavrik i pointed out on adt-dev that their fucking samples weren't even working Nov 04 09:04:13 Mavrik did you see http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Local-packages "Library Publication" Nov 04 09:04:24 maybe you need defaultPublishConfig "debug" or something Nov 04 09:04:55 probably Nov 04 09:05:20 it's just strange that I have build types for both subprojects set to "debug" in AS Nov 04 09:05:37 and then AS proceeds to compile the lib as debug... then starts app compile and recompiles lib as release... and then compiles app as debug Nov 04 09:05:44 * Mavrik slaps compile. Nov 04 09:06:49 lol Nov 04 09:06:51 https://android-review.googlesource.com/#/q/status:open Nov 04 09:06:52 Hi guys, im building an app that will require long lists of elements, so i want to do some pull to refresh, and some lazy loading. Do I need to use a library, or is android capable of doing this ? FYI, my app is tablet only, so the minimum sdk is android 4. Nov 04 09:07:03 can I submit bugfixes here ? Nov 04 09:07:07 or I need to be *special* Nov 04 09:07:27 h3bus: pull to refresh is in support library v4 Nov 04 09:08:09 Im trying to hide a View while a gridview is scrolling and show it again once scroll ends Nov 04 09:08:13 this is my code: http://pastebin.com/sGMCz7we Nov 04 09:08:18 gordon_: allright, it's ot in the default SDK ? I thought support v4 was for porting features like fragments to pre-honeycomb devices Nov 04 09:08:44 but there are 2 problems with this: 1) the view is hidden after onCreate without scrolling (why?) Nov 04 09:09:30 forget about the second. its only 1 ^^' Nov 04 09:09:48 2) see 1. Nov 04 09:10:02 i think 2 isa layout problem :) Nov 04 09:10:03 h3bus: https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html Nov 04 09:10:12 danijoo, IIRC onScroll gets called as part of the layout process Nov 04 09:10:18 danijoo, you might wanna check scroll status in there too Nov 04 09:10:24 gordon_: allright thanks Nov 04 09:10:47 Mavrik its also a disgrace that shit introduced into 0.7 like addJavaSourceFoldersToModel is still not in the user guide. you basically have to read through the release notes to know about it Nov 04 09:10:57 h3bus: that might be usefull too http://developer.android.com/tools/support-library/index.html Nov 04 09:11:45 Mavrik i really wonder what I would find if visiting that team, like a bunch of hamsters and monkeys fucking around with keybaords Nov 04 09:12:30 I still struggle to understand why would anyone want to use such a shoddy system. as if development itself is not complex enough. Nov 04 09:12:39 i still think that team needs new leadership Nov 04 09:12:47 existing has failed miserably Nov 04 09:12:59 g00s, well, seeing all the possible properties is practically impossible Nov 04 09:13:12 how the fuck is andy rubin gone from google but these clowns aren't Nov 04 09:13:13 what are you talking about Nov 04 09:13:23 not to mention the shitty Groovy language which mixes up properties, clojures and other shit all in single syntax Nov 04 09:13:36 Zharf, just bashing on Gradle plugin. Nov 04 09:13:47 aha, good Nov 04 09:14:26 Mavrik: i have no access to the scrollstate in onScroll Nov 04 09:15:09 but I might be able to do it with only implementing onScrollSateChanged. Nov 04 09:15:21 Mavrik: you can move to buck :P Nov 04 09:15:44 Not really an option. Nov 04 09:16:16 well Nov 04 09:16:20 happens :) Nov 04 09:16:31 so.. apply patches Nov 04 09:17:41 * g00s applies patch to gordon_ Nov 04 09:18:04 gordon doesnt take any patches Nov 04 09:18:10 it's too late for me ;) Nov 04 09:18:17 oops got a leave a little bit to breathe ... Nov 04 09:18:19 I will be stupid until the rest of my life Nov 04 09:19:24 gordon_, surely there are at least patches which can make it not too obvious then :p Nov 04 09:20:00 for me ? ;) Nov 04 09:20:40 sure :p Nov 04 09:21:53 nah, it's too late Nov 04 09:21:56 at least for head Nov 04 09:22:02 maybe I will apply some for legs Nov 04 09:22:07 there is still some hope Nov 04 09:22:28 https://www.youtube.com/watch?v=QwACxFrl5-E Nov 04 09:42:08 sikurus: can I pm you? Nov 04 09:43:52 codeme: sure Nov 04 10:09:12 Ive a question. I'ld like to communicate between android and a (software/website) via wired and wireless connection. With internet and without. What is the best way doing this? Is there a way creating a "defualt communication" which choose the best available like bluetooth, (maybe NFC), wifi? Nov 04 10:11:42 hmm Nov 04 10:11:43 doubt it Nov 04 10:31:51 Hey. Anyone have any ideas why calling SoundPool.play() would take tens of milliseconds? Nov 04 10:35:12 Has anyone here worked with the animated selectors in API 21? Nov 04 10:39:29 I'm having trouble trying to recreate the material seek-bar thumb animation programmatically.. Nov 04 10:45:40 hi guys, I'm developing a webapp and both chrome beta and chrome are crashing on page view Nov 04 10:45:52 is possible to get a trace or at least see what's the error in some way? Nov 04 10:45:59 to understand if it's a memory problem or something else? Nov 04 10:48:11 @alex on Android? Nov 04 10:54:35 timusus: yup, on desktop works everywhere Nov 04 10:55:12 You might be able to see something in the stacktrace Nov 04 10:55:23 You can use adb to log it, or get an app like catlog Nov 04 10:56:50 timusus: I was looking at the chrash report preview stacktrace and it's in the Compositor process, signal 11(SIGSEGV), code 1 (SEGV_MAPERR) Nov 04 10:57:36 I have no idea sorry. Nov 04 10:57:46 not a problem :) going to try some breakpoints Nov 04 11:04:22 Hi, I have a group of buttons on the left hand side of my app - when I click on them, the whole linearlayout goes white until I touch it again - anyone know a way around this? Nov 04 11:10:30 huh Nov 04 11:10:49 what do the buttons do Nov 04 11:17:02 Anyone experience with synchronize, data in app is not the same with database in the server? I need someone to fixed it. Nov 04 11:17:34 Please PM me Nov 04 11:19:05 codeme thats easy you just gotta loop the binary and bitshift the gigabytes after you zlib the WAN into the LAN Nov 04 11:20:31 asfdd: do you link a tutorial for that? Nov 04 11:20:42 +have Nov 04 11:21:24 haha Nov 04 11:22:18 XD Nov 04 11:22:27 codeme, that was a joke Nov 04 11:22:31 ananth123: why :)) Nov 04 11:22:46 ok make me idiot Nov 04 11:23:29 codeme its not about making you an idiot, you asked a question no one can answer, you didn't even mention what app it is Nov 04 11:25:32 My client app, I am too much busy with iOS and not so much experience with Android, so need someone. Nov 04 11:25:51 then hire someone Nov 04 11:26:08 of course, so PM me Nov 04 11:26:33 maybe in here somebody need a project Nov 04 11:26:59 i can fix it my hour rate is 2500 nok an hour, i don't know how big your project is though so i can't give you an estimate =) Nov 04 11:27:16 >zlib the wan into the lan Nov 04 11:27:22 I happen to be the bestin doing that Nov 04 11:27:28 Who needs that done? Nov 04 11:27:44 huh, its risky tto store a concurrentMap in a bundle as serializable? Nov 04 11:28:08 it works but... only tested on my s3 Nov 04 11:28:21 asfdd: are you sure your hour rate ? :)) Nov 04 11:29:11 yes i am sure about my hour rate, and i automatically assume anyone asking here isn't gonna pay that =) Nov 04 11:29:46 I knew it :) Nov 04 11:30:38 codeme you can pay me with a nexus 9 :^) Nov 04 11:31:15 You can pay me with € instead of NOK :P Nov 04 11:33:54 HI all Nov 04 11:34:42 inb4 question Nov 04 11:35:39 Hi Guys, I'm Trying to download appengine sdk from Maven and my connection keeps timing out. I already have the .zip of the SDK downloaded is there anywhere I can put it where maven will find and use the already downloaded zip? Nov 04 11:35:53 cliffreich: ok moment I’ll pm you Nov 04 11:37:20 i'm using google maps i my map and it is working buti keep getting following errors Nov 04 11:38:37 I have problems to download a file from an attachment response within a WebView, like the browsers do: when the content_type is "application/x-zip-compressed" then save the attachment to a file. Nov 04 11:39:20 Following errors? Sounds really scary Nov 04 11:40:07 i hate when errors follow me Nov 04 11:41:43 I have a lot error followers Nov 04 11:41:50 errors love me Nov 04 11:52:32 nobody knows how answer my question? Nov 04 11:52:56 anyway I posted it on stack overflow Nov 04 11:52:59 http://stackoverflow.com/questions/26732592/webview-save-response-attachment-to-a-file-when-content-type-application-x-zi Nov 04 11:53:25 if I will find a solution I will update there Nov 04 11:53:46 and in support android forum too Nov 04 11:55:55 <_CalLightman_> Hi, I am facing problem with softkeyboard on Samsung device. I am unable to enter text in edittext. However the code works fine on the emulator and nexus. Has anyone faced a similar issue? Nov 04 12:00:34 <_CalLightman_> Hi, I am facing problem with softkeyboard on Samsung device. I am unable to enter text in edittext. However the code works fine on the emulator and nexus. Has anyone faced a similar issue? Nov 04 12:02:30 I'm trying to apply android:rotation="180" to ImageView, but it doesn't rotate on API 10 device, it's not supported ? I don't get any notices from Android-studio about it Nov 04 12:09:38 Can I change cursor color of EditText programmatically? Nov 04 12:12:37 wiky: Setting the android:textCursorDrawable attribute to @null should result in the use of android:textColor as the cursor color. Nov 04 12:13:34 wvdhaute, Can I set android:textCursorDrawable attribute programmatically? Nov 04 12:13:45 vegetablesalad19, Nov 04 12:13:47 sorry Nov 04 12:14:48 <_CalLightman_> Hi, I am facing problem with softkeyboard on Samsung device. I am unable to enter text in edittext. However the code works fine on the emulator and nexus. Has anyone faced a similar issue? Nov 04 12:18:00 wiky, as far as I understand, you can't. You can pass attr when constructing edittext Nov 04 12:18:09 _CalLightman_: are you sure the EditText is focused Nov 04 12:18:09 ? Nov 04 12:18:28 or set "android:textCursorDrawable attribute to @null" and then change color in code ? Nov 04 12:18:54 vegetablesalad19, so how can I create a AttributeSet that contains textCursorDrawable Nov 04 12:20:37 <_CalLightman_> thepoosh: yes Nov 04 12:21:06 <_CalLightman_> the logcat unfiltered messages shows key down and key up event too Nov 04 12:21:10 wiky, google it, there should be lots of examples Nov 04 12:23:00 <_CalLightman_> I tried implementing one of the solutions mentioned in stackoverflow and google groups - replace edittext.settext("") with TextKeyListener.clear(edittext.getText()); Nov 04 12:23:04 <_CalLightman_> did not help Nov 04 12:35:45 hm, it seems notificationcompat doesn't support MediaStyle yet... Nov 04 12:42:33 AS 9.1 ready for canary Nov 04 12:43:08 * cliffreich is living to the edge Nov 04 12:49:18 I need to make an HTTP POST from a BroadcastReceiver. When I do so, on some android 4.4 devices I get an "android.os.NetworkOnMainThreadException". Why is it only on some of the 4.4 devices, but not all of them? Nov 04 12:49:55 maslen: Don't do network on main thread Nov 04 12:50:30 I plan on moving it to another thread. I'm just trying to understand why this only occurred on _some_, but not _all_ 4.4 devices Nov 04 12:50:31 maslen use an asynctask or something like that Nov 04 12:51:40 maslen: it's possible that the thread the broadcast receiver runs is not specifief Nov 04 12:51:43 *specified Nov 04 12:51:53 this would open you to randomness Nov 04 12:52:45 I see. Interesting. Nov 04 12:53:52 maslen: the trick here is to be *explicit* in putting all I/O on separate threads Nov 04 12:58:27 Anyone have any ideas if it's normal that calling SoundPool.play() vary in execution time from <5 ms up to several tens of milliseconds? Nov 04 13:03:58 p_l: Yeah, I learned that the hard way :( Nov 04 13:08:44 Hi, I'm just starting developin using eclipse and ADT. I downloaded latest eclipse (4.4), installed ADT, created new project, so far so good. But... how do I build the project and run it on my phone? I did it with ant, with Android Studio, but how to do that in Eclipse?! Nov 04 13:09:12 it seems there is no preconfigured build configuration Nov 04 13:10:05 only some "external tools configuration", where I can manualy specify ant configuration, or some external tool. Nov 04 13:11:40 Pitel_IPEX: Is your Run configuration showing that it's an Android Application? Nov 04 13:13:15 Chamooze: no. actually, the run menu is pretty "shallow", ther is only "external tools" submenu Nov 04 13:13:26 I'll try to restart eclipse... Nov 04 13:13:34 Hmm, sounds like you haven't set up the project as an Android project Nov 04 13:14:09 if you go to project's properties, do you have an Android sub-section? Nov 04 13:15:07 Hi is anyone using roboguice 3 with roboblender successfully? Nov 04 13:15:32 Hey there, im working for a company and with the new Lollipop update we heard rumours that there will have to be 2 versions in the google play Store, one for lollipop and up and one for the rest Nov 04 13:15:33 Chamooze: I did, I used the new project, android application wizard. And there is android sub-section in projecy properties Nov 04 13:15:37 Pitel_IPEX, are you sure you have ADT installed properly? when I hit run, it offers that I run it as an "android application" Nov 04 13:15:39 can anyone link me to information about that? Nov 04 13:15:47 my google-fu was weak Nov 04 13:15:51 ravilov: I don;t have the run button :( Nov 04 13:16:02 something is off with your setup Nov 04 13:16:14 admittedly I have eclipse 3.8 but shouldn't make that much difference Nov 04 13:16:32 ravilov: it's clean install, I;ve never used eclipse before Nov 04 13:17:18 Ooh Nov 04 13:17:27 maybe in some weird Perspective? Nov 04 13:17:37 perspective? Nov 04 13:18:01 yeah if you've never used eclipse before, might be a good idea to take some time to get to know it Nov 04 13:18:11 it is VERY complex even without the android part Nov 04 13:19:03 Pitel_IPEX: yeah.. if you look at the top right, do you have a button with tooltip "Open perspective"? Nov 04 13:20:11 Chamooze: yes Nov 04 13:20:29 to the right of that one, there should be (atleast) one other button, what does it say? Nov 04 13:21:55 resource Nov 04 13:22:39 Hmm... that should still give you a decent Run menu. weird. Nov 04 13:23:05 you probably still wanna switch to the Java perspective Nov 04 13:23:09 For anyone that has paid Google's dev fee, what payment options were there? Nov 04 13:23:34 afaik, only wallet Nov 04 13:23:44 google wallet? Nov 04 13:24:20 yes Nov 04 13:24:29 Pitel_IPEX: what if you right-click your project in the Package explorer and check the "Run as" submenu there? Nov 04 13:24:41 Chamooze: yes! the java perspective! thanks! Nov 04 13:25:28 odd.. my Resource perspective still has a full Run menu. maybe because I've already been in the Java perspective? unsure.. Nov 04 13:26:27 Chainfire:Oh you're that guy SuperSu's author Nov 04 13:32:00 Chamooze: ok, I changed the perspective, delete project, created new one, and now I finaly have some run configuration. but... Nov 04 13:32:01 An internal error occurred during: "Launching New_configuration". Nov 04 13:32:01 Path for project must have only one segment. Nov 04 13:32:51 ok, dumb me Nov 04 13:32:59 just select project in run configuraion Nov 04 13:33:08 but, I guess it should be done automaticaly Nov 04 13:34:42 woohoo, it's tuning on my nexus. many thanks, guys. Nov 04 14:00:57 salute! Nov 04 14:01:09 i might bore u with the following one.. Nov 04 14:01:14 i am trying to store json data in a sqlite table. I keep getting “error 1” when trying to insert a row.. it is working with so many other tables.. i seem not to see the forest because of too many trees.. any idea? Nov 04 14:01:22 http://codepad.org/Sq6eXdw5 Nov 04 14:04:54 looks like you didn't quote it properly Nov 04 14:05:15 either make sure you escape any special chars, or use placeholders (recommended) Nov 04 14:05:28 special char like? Nov 04 14:06:17 probably " Nov 04 14:06:25 you mean in the create statement? Nov 04 14:06:34 no Nov 04 14:06:44 but also Nov 04 14:06:52 did you used to work with mysql by any chance? Nov 04 14:06:53 in my example there are no special chars involved Nov 04 14:07:30 backticks are invalid in normal SQL as far as I know, mysql is the only db out there that uses them and that makes it extremely nonstandard Nov 04 14:07:41 dang it, still no lollipop Nov 04 14:08:14 pr0gi, yes there are, or else you wouldn't be getting this error Nov 04 14:08:26 the error message is pretty clear if you look at it Nov 04 14:08:30 how can i get more information on what the problem really is Nov 04 14:08:51 the thing that bugs me, i have several other statements looking exactly the same Nov 04 14:08:54 they dont have problems Nov 04 14:09:02 the error message gives you all the information you could ever need Nov 04 14:11:00 then.. i dont know how to proceed debugging Nov 04 14:13:12 pr0gi: You know you can create gist:s instead right clicking on any text and select "Create gist" Nov 04 14:13:18 assuming you're using AS Nov 04 14:13:31 eclipse Nov 04 14:13:35 nvm then Nov 04 14:13:38 LogCat Nov 04 14:14:16 ok, got the problem.. Nov 04 14:14:18 pr0gi: Do you prepare your sql statement? Nov 04 14:14:31 i am not allowed to use ‘table’ as a column name Nov 04 14:14:49 at least not in the way i used the syntax.. Nov 04 14:15:36 annoying one.. thank you tho! Nov 04 14:16:30 pr0gi, the error message clearly shows the SQL engine is trying to interpret "table" which it is not supposed to do - hence incorrect escaping. Nov 04 14:17:36 couldnt the msg have been the same if it was just refering to the column name ‘table’ ? Nov 04 14:17:41 or how it would have looked like then Nov 04 14:18:39 msg = near “ ’table’ “ ? Nov 04 14:24:40 pr0gi, sorry but this is all pointless what-if discussion, I told you what the problem is, it is up to you to debug and fix it Nov 04 14:25:36 it is and i appreciate, as i just want to learn from your statement i am asking anyways, how do i know that something was “interpreted” or just taken as a “string” for a name Nov 04 14:27:56 does anyone know how/where to configure programmatically the homescreen app? te main activity already listenes for the intents with cateogies DEFAULT and HOME, but i want to prevent that the user is asked initially asked which app should be the default home/launcher app Nov 04 14:29:06 thana, whenever there are multiple apps able to fulfill a certain event, the user will always be asked which one to use; being able to circumvent that would be a serious security flaw Nov 04 14:29:14 s/event/intent/ Nov 04 14:30:18 ravilov: i know that, but its ok in my case, i (or better: my company) owns every device the app will run on and we have complete control over them Nov 04 14:30:42 except android was never designed for "complete control" scenarios Nov 04 14:30:58 if you wanted that, you should have gone with blackberry :p Nov 04 14:32:00 IMHO it doesn matter what it was design for. if i can choose to always use my app as launcher it is stored somewhere. i could write it manually there if i just knew where this is stored Nov 04 14:32:10 is there any easy way of having a dev version of an app installed alongside the one from google play? Nov 04 14:32:16 I guess not without changing package name? Nov 04 14:32:47 thana, that might be true, but now we're getting into android hacking as opposed to android development Nov 04 14:33:09 ggVGc, correct Nov 04 14:33:23 that is, put simply, crap :( Nov 04 14:35:11 ravilov: that might be true -- but i do not know any better channel to ask this question. #android-root doesnt seem well suited either Nov 04 14:35:13 is Android project view supposed to be missing everything in 0.9? Nov 04 14:35:23 only folders I see are java and tests Nov 04 14:36:37 I thought Android mode was supposed to be Project, but with merged resources Nov 04 14:37:01 thana, seems better than this channel? dunno. anyway, I don't really know where that information is stored, or else I'd share Nov 04 14:56:26 I'm trying to run multiple HttpURLConnection's in parallel by wrapping them in AsyncTask's Nov 04 14:56:36 But they still wait sequentially. Nov 04 15:01:02 use executeOnExecutor Nov 04 15:01:11 async task sucks Nov 04 15:04:53 * Zharf yawns Nov 04 15:05:04 stupid mediasession and lack of documentation Nov 04 15:06:07 Can someone assist me with getting up and running with AS 0.9. I'm coming from 0.8.4. I just installed all the new build tools in sdk manager, but I get an error: No such property: abiFilter for class: com.android.build.gradle.internal.variant.ApkVariantOutputData Nov 04 15:06:26 tooling question: i’m using Eclipse+ADT. i came across https://github.com/blackfizz/EazeGraph, but the only instructions are for adding some info to the Gradle scripts. Nov 04 15:06:42 is there a way to do the same for Eclipse? Nov 04 15:06:45 scruz, first answer, stop using eclipse Nov 04 15:06:51 no Nov 04 15:07:12 pfn: what would you recommend then? android studio? Nov 04 15:07:29 using Android studio and gradle Nov 04 15:07:36 scruz, no, there's no good way of adding AARs to Eclipse projects Nov 04 15:07:37 that's what everyone keeps recommending, yes Nov 04 15:07:43 you'll have to use a proper build system :) Nov 04 15:07:53 well, Maven is also an option ;) Nov 04 15:07:57 even though it's really unstable and unreliable and keeps changing every so often Nov 04 15:08:54 android studio and gradle are not the least bit unstable nor unreliable Nov 04 15:09:08 quit updating with every single canary build Nov 04 15:09:39 uhhuhh Nov 04 15:09:44 ah Nov 04 15:09:56 that's why 0.9.0 beta had to get a canary emergency 0.9.1 critical patch :P Nov 04 15:10:23 still staying away, still nothing in there that would attract me Nov 04 15:10:43 my lintOptions{ abortOnError false } in my gradle file seems to be ignored. can't build for release due to missing translations. any idea what could cause this? Nov 04 15:10:49 ravilov, in comparison to what? Nov 04 15:10:58 * pfn uses neither eclipse nor android studio Nov 04 15:11:04 Mavrik, why my beloved eclipse+adt of course ;) Nov 04 15:11:05 so I'm happy either way Nov 04 15:11:18 ravilov, wow, how do you manage CI and repeatable builds with Eclipse? Nov 04 15:11:33 + release packaging? Nov 04 15:11:46 you should remember *why* this setup works for me Nov 04 15:11:50 Adding to my question, here is my build.gradle: https://gist.github.com/MarkyC/78c4386158172cfb2d05 Nov 04 15:11:55 because I don't do this on an industrial scale Nov 04 15:12:10 plus, I don't and never will release anything on google play Nov 04 15:12:37 Eclipse adt is far more unreliable Nov 04 15:12:45 not for me Nov 04 15:12:52 I just fire it up and it works Nov 04 15:12:55 I don't even think about it Nov 04 15:13:00 That's just "I love wasting my time" in another form :P Nov 04 15:13:32 I have wasted more time while trying out AS Nov 04 15:13:40 I want that time back :p Nov 04 15:14:35 AS used to be shit, but I think it's pretty reasonable now Nov 04 15:15:07 * pfn wants intellij 14 Nov 04 15:15:22 real support for my build plugin = win Nov 04 15:15:40 is there an EAP for that yet Nov 04 15:15:44 yes Nov 04 15:15:52 My IntelliJ says it's version 14.0.0RC3 Nov 04 15:16:32 I guess I should start using it so I can report bugs on the build integration Nov 04 15:19:10 thanks Nov 04 15:22:25 * Zharf sighs Nov 04 15:22:59 lollipop emulator keeps losing sdcard content and then I have to restart it again Nov 04 15:27:14 The new memory monitor is pretty nice Nov 04 15:36:02 guys, if you accidentally publish an apk to prod instead of alpha, is there a way to revert it back to alpha and remove it from prod?? Nov 04 15:42:49 can someone help me with Error:No such property: abiFilter for class: com.android.build.gradle.internal.variant.ApkVariantOutputData Nov 04 15:43:54 MaraZap|Alex: if i am not mistaken you can do this. But you need to choose another apk that is then the published apk Nov 04 15:49:26 beo6 I did upload a new alpha version, but the trouble I have is removing the prod one Nov 04 15:51:48 in "advanced mode" I have an option to "Deactivate" the production apk, but if I go hit SAVE after that, I get a "The application could not be saved. Please check the form for errors." Nov 04 15:52:05 and in the details it says "Previously active APKs supported more devices than those in the draft configuration. Some devices will not receive upgrades" Nov 04 15:52:28 of course previously active apk supported more devices, since there are *NO* current APK now Nov 04 15:53:30 Hey guys Nov 04 15:53:40 so, all I can do now, is unpublish the whole thing, but not delete it to get a fresh start Nov 04 16:02:06 sigh Nov 04 16:35:49 has anyone had the "home up" button turn black after rotation? http://stackoverflow.com/q/26724411/1747491 Nov 04 16:37:50 why is a task considered up-to-date when i delete its output-dir (while not touching the input fil) Nov 04 16:44:03 got it. thanks :D Nov 04 16:49:50 does view.getGlobalVisibleRect() include the padding? Nov 04 16:49:52 mattblang perhaps you have a seperate theme for different layouts? Nov 04 16:53:45 Ravenheart I think I figured out what might be happening. I am displaying a fragment when I rotate to landscape that has a toolbar with theme AppCompat. When I switch to portrait it is still present, and is effecting the "home up" button. Nov 04 16:56:24 oh okay Nov 04 16:57:01 Anybody got mods for my CastleClash addiction? Would Love Ya Forever!!! Nov 04 17:01:04 In a function that is called frequently I had: Nov 04 17:01:18 Rect r = new Rect(); view.getHitRect(r); Nov 04 17:01:33 should I try to make this rect a member variable or something? Nov 04 17:01:39 to try to optimize it? Nov 04 17:10:38 johnflux_, yes Nov 04 17:10:49 no point allocating a new object every time Nov 04 17:11:05 ravilov: how should I optimise it? Nov 04 17:11:17 exactly like you said Nov 04 17:11:34 ravilov: just have a generic "private Rect rect" in the class, that all the classes that use this rect can use? Nov 04 17:11:36 ZIPALIGN!!!! <,<... >.> Nov 04 17:12:16 it's hardly shareable between classes if it's private Nov 04 17:12:17 I mean:that all the methods that use a rect can use Nov 04 17:12:20 but yes something like that Nov 04 17:12:21 sorry Nov 04 17:51:11 I'm working on modifying the android source (for example, /frameworks/base/core/java/android/hardware/SystemSensorManager.java ) in which I make some very small changes (adding a single Log.d()). When I run make, I have to wait ~1hr. Is there something smarter I can do? Nov 04 17:53:16 deadmund: do you have caching turned on? I'm assuming you are recompiling the entire ASOP project. Nov 04 17:53:45 pieces029_: I am using ccache ($USE_CCACHE=1 and it is working). Nov 04 17:53:58 ok, what command are you using to recompile? Nov 04 17:54:02 pieces029_: make -j2 Nov 04 17:55:01 Try upping it to like 4 or 8 maybe? Sounds like the slow down might be with your computer. Nov 04 17:55:33 pieces029_: If I change one file, how long should a compile take? It seems to go through hundreds of files, mostly .jars) Nov 04 17:55:49 pieces029_: I can try -j4 but it's only a dual core proc with no hyperthreading Nov 04 17:56:36 Having trouble finding anything on the topic. I'm using a rooted (but otherwise stock) Nexus 4: Can I get the 5.0 OTA update if I still have a pending OTA update for 4.4.3 (I'm on 4.4.2)? Nov 04 17:57:01 I know this isn't exactly the right place, but I'm stumped and not a lot of chat rooms are coming up in my search :/ Nov 04 17:58:13 deadmund: I was just working on one file and it was taking about 15 minutes or so. Nov 04 17:58:56 It should only update that single project though. You can execute the make command in just the subproject that you are changing the file in, that might help. Nov 04 17:58:58 jekotia: I am not sure, I have no evidence, but my experience with Android (I do computer science research on android) says that there is no way you can skip Android system updates Nov 04 17:59:25 pieces029_: Sub project? What are you talking about? I've been compiling in the android system root dir/ Nov 04 18:00:06 deadmund: I suspected as much. Thanks for confirming for me :) I guess I Nov 04 18:00:19 no problem Nov 04 18:00:34 'll just run all the pending updates tomorrow and hope the 5.0 OTA is ready. No time tonight, last night of the Evolve alpha x] Nov 04 18:00:57 deadmund: yeah that root has a bunch of projects in there. What is the path to that file you are updating? Nov 04 18:01:15 I don't think anyone has gotten an OTA update yet. I have a fully updated nexus 7 and I haven't seen it. They push the releases out to random devices over the courses of several weeks Nov 04 18:01:30 Oh. Well damn :c Nov 04 18:01:46 Makes sense, for server load, I guess Nov 04 18:01:51 pieces029_: /frameworks/base/core/java/android/hardware/SystemSensorManager.java Is the project for that "framework" ? Nov 04 18:02:06 jekotia: yep! :) and so if there is some problem, they fix it before 100% of their user base sees it Nov 04 18:03:48 deadmund: so you have export USE_CCACHE and a cache directory exported and then set prebuilts/misc/linux-x86/ccache/ccache -M 50G ? Nov 04 18:04:20 pieces029_: yeah, ccache is already working. What is a "project" and how do I compile just one "project" if that's all I change? Nov 04 18:04:31 I'm trying to remember Nov 04 18:04:37 how to just compile one Nov 04 18:04:45 ahh :) Nov 04 18:04:55 Although the make command should do that automatically since it should see only that one file changed. Nov 04 18:05:29 yeah! Nov 04 18:05:31 that's what I thought! Nov 04 18:07:18 deadmund: have you tried the snod command? Nov 04 18:07:24 pieces029_: no, what is that? Nov 04 18:07:42 snod Quickly rebuild the system image from built packages Nov 04 18:07:54 mmm, I'll check it out. Thanks!! :) Nov 04 18:07:58 other than that I'm out of options. Nov 04 18:10:38 deadmund: Thanks again. Cya Nov 04 18:19:33 http://cdn.meme.am/instances/500x/55937694.jpg Nov 04 18:20:07 google is teh ultimate troll Nov 04 18:24:31 Does anyone know how to adjust the padding of the ActionBarDrawerToggle? I've made my action bar a little shorter, and I can't figure out how to adjust the toggle for the nav drawer. Nov 04 18:51:53 I have a TextView that *doesn't* have "android:clickable" set, and yet its OnClickListener fires. Is this intended behaviour? Nov 04 18:51:59 I set the listener in code (since it's in a fragment). Nov 04 18:52:47 TacticalJoke: android:clickable makes the button capable of being clicked, but does not connect the button to a function. It is true by default Nov 04 18:53:13 TacticalJoke: android:onClick is the xml to connect the button to a function (which must be like this: public void foo(View v) ) Nov 04 18:53:21 And it's true by default for TextViews? Nov 04 18:53:37 TacticalJoke: I believe it's true by default for everything? Nov 04 18:53:44 Okay. Thanks. Nov 04 18:53:47 TacticalJoke: sure Nov 04 18:54:34 TacticalJoke, as soon as the click listener is assigned, the view automatically becomes clickable as well Nov 04 18:54:38 I see. Nov 04 18:54:52 if you don't want such behavior, set it to non-clickable after setting the listener Nov 04 18:54:59 I see no point of doing that though, but eh Nov 04 18:55:27 Anarchists might want to. :D Nov 04 19:05:55 What's the shortcut to take debug a program step by step? (ie: next step when at a breakpoint?) Nov 04 19:06:11 F7/F8 Nov 04 19:07:04 ravilov: So if my breakpoint line is line 55, with the code doSomething(), does F7 (step into) call doSomething()? Nov 04 19:09:42 uh, it works just like any other IDE would Nov 04 19:15:07 anybody thats worked with XMPP before? Nov 04 19:15:17 what is the format of the logic id if the domain im using is blah.com ? Nov 04 19:15:30 is it username.blah.com or username@blah.com ? Nov 04 19:16:06 never worked with XMPP before, but I'm pretty sure it wouldn't be a dot Nov 04 19:16:10 makes no sense whatsoever Nov 04 19:16:31 why not just google and look it up Nov 04 19:16:35 sounds like a common faq Nov 04 19:17:24 tried that.. Nov 04 19:19:14 ravilov: you're probably right.. trying, thanks :) Nov 04 19:19:50 Hmm. This is weird. I'm replacing a fragment and the new one is showing on top of the old one (essentially with a transparent background). I'm not doing anything unusual. What could be causing that? Nov 04 19:23:52 TacticalJoke: that's actually normal behavior Nov 04 19:23:54 are you adding or replacing? Nov 04 19:24:22 Replacing. Nov 04 19:24:58 Just set your new fragment's background color Nov 04 19:25:10 It's transparent by default Nov 04 19:25:20 Are you using the back stack with the replacement? Nov 04 19:25:28 I am, but it makes no difference if I don't. Nov 04 19:25:41 I would've thought the old one would be removed. Hmm. Nov 04 19:27:14 In Android Studio, what do the colors of files in the explorer pane mean? Nov 04 19:27:24 zambo: are you using git? Nov 04 19:27:31 yes Nov 04 19:27:36 blue is a changed file Nov 04 19:27:41 okay cool Nov 04 19:27:43 red is an uncommitted file Nov 04 19:27:46 green is a newly added file Nov 04 19:27:52 black is just a regular old unchanged file Nov 04 19:28:18 I’m very much accustomed to Eclipse, and I wasn’t sure if it was trying to indicate some kind of error in files... Nov 04 19:35:05 I'm getting a crash that stems from ActionBarSherlock in my app after I moved to Android Studio seemingly... Any ideas? http://pastebin.com/xmsJczBe Nov 04 19:35:24 I can just do a try catch around getItem() but I want to know if its ABS thats causing the issue. Nov 04 19:36:44 does anyone here use support V7 cardview? Nov 04 19:37:53 eghdk: Just wondering -- why are you using ABS? Nov 04 19:39:12 Legacy App I guess. And laziness of not moving to AppCompat also? Nov 04 19:39:23 Why are you supporting such old versions of Android? Nov 04 19:39:32 I mean: do you really need to? Nov 04 19:39:35 Because it's a pain. Nov 04 19:39:43 It's not my call. Nov 04 19:39:45 Okay. Nov 04 19:39:50 And actually we didn't support it. Nov 04 19:39:59 I was winning the arguement for the longest time. Nov 04 19:40:08 But recently we've had to switch to support 2.3 Nov 04 19:40:15 It blows. Nov 04 19:40:33 Its mostly the themes that I feel like will be an issue without ABS. Nov 04 19:43:47 support cardview seems to just ignore elevation -_- Nov 04 19:44:29 Okay, the issue was that I was trying to replace a fragment defined in an XML file. Apparently you can't do that. ;| Nov 04 19:44:33 Even though it semi-works. Nov 04 19:46:22 eghdk: Can you post the code giving rise to this issue? Nov 04 19:47:06 you cannot do that, correct Nov 04 19:47:09 TacticalJoke: Do you know if I can specify a speficic ABS from build.gradle? Because I think thats the issue. I think Android Studio took out my ABS library project downloaded and added in Eclipse with an @aar of "+" which will take the latest version... correct? Nov 04 19:47:46 JakeWharton: K, thanks for confirming. Nov 04 19:48:06 eghdk: I don't know about Gradle; sorry. Nov 04 19:48:18 Because I think somewhere in my code I'm forcing action overflow button to show on devices like Samsung S3 that have a menu button. But I think JakeWharton removed that ability in later versions of ABS Nov 04 19:48:23 eghdk: But are you sure it's not your code? I think the thing the exception is coming from is a simple ArrayList.get call. Nov 04 19:48:36 yes he did remove that Nov 04 19:49:34 JakeWharton: Was there any real reasoning behind it? I would like to use latest version of ABS but I'm being told to force the overflow to appear because my boss uses an S3. Nov 04 19:49:49 Or Jake do you recommend just use ABS 4.2 and below or something. Nov 04 19:50:10 Or the version just before you cut out the functionality. Nov 04 19:50:18 I'm not really sure when it happened. Nov 04 19:50:22 the reasoning was that it didn't match the behavior of 4.x Nov 04 19:51:13 What's the point of FragmentTransaction.add(Fragment fragment, String tag), which adds with a containerId of 0? When would someone want to do that? Nov 04 19:51:16 containerViewId* Nov 04 19:51:56 non-visible fragment Nov 04 19:52:02 Ooh, okay. Nov 04 19:52:04 is there a non hacky way to have fragments not recreate themselves on orientation change? if I go from landscape to portrait, the lingering fragments are causing me all sorts of issues Nov 04 19:52:38 mattblang: I guess there's "setRetainInstance(true);". Have you read about it? Nov 04 19:53:07 JakeWharton: What do you mean it didn't match the behavior? It seemed to work properly? Or where there some one off nullPointers that ended up happening by people forcing the overflow? Nov 04 19:53:08 But why are they lingering? Nov 04 19:53:17 that does not affect the recreation behavior Nov 04 19:53:29 setRetainInstance does extra work to re-use the same instance rather than create a new one Nov 04 19:53:45 TacticalJoke I guess because if a fragment in landscape was made, then a shift is done to portrait, the fragment no longer visible but it hasn't been destroyed Nov 04 19:54:43 eghdk: Android behavior on 4.0 was to only show the overflow when the device did not have a menu button. So ABS mimics that behavior. Nov 04 19:55:34 Hey, does anyone know if the latest Android Studio (v0.8.14) from here: https://developer.android.com/sdk/installing/studio.html still includes the Android SDK? I'm trying to do a fresh install of Yosemite nad it is complaining that my Android SDK is missing. Nov 04 19:55:46 it does not Nov 04 19:55:51 robotsmakinglove it doesn't Nov 04 19:55:53 hi all. in html, you can set a "class" on an element, and then in css, adjust the width of all elements with said class. is there a similar construct for Views within ListViews in android land? Nov 04 19:56:09 Euler: yes, styles Nov 04 19:56:12 Thanks Matt, I find that really confussing especially since the web page says it does right on the download button Nov 04 19:56:15 Gotcha. I'll just use your 4.4 of ABS and not force overflow. I know you just want questions about it to die already. hahaha Nov 04 19:56:29 JakeWharton: can they be set dynamically? Nov 04 19:56:29 Euler: http://developer.android.com/guide/topics/ui/themes.html Nov 04 19:56:35 no Nov 04 19:56:46 yea, i need to set after the fact Nov 04 19:57:09 mattblang Do you know where it should be placed on the system? Is there a convention? Nov 04 19:57:16 I guess it makes sense for the Android SDK to be separate from the IDE. Though I'm not sure whether this is why they removed it (I haven't looked). Nov 04 19:57:25 robotsmakinglove yeah, that changed in 0.8.14. I was going to update yesterday from 0.8.9 but had an issue because of my current SDK being bundled Nov 04 19:57:41 robotsmakinglove I don't think so. I think I will put it in my user folder Nov 04 19:57:44 Then again, I like the idea of a single download, containing the JDK, the Android SDK, and the IDE. Nov 04 19:58:09 mattblang Great, anyone from Google here who could see about updating the page for other users Nov 04 19:58:33 JakeWharton you mentioned that setRetainInstance does extra work to re-use the same instance rather than create a new one. so can I just set that on all my fragments, I have a feeling that will cause an issue I am not thinking about right now Nov 04 19:58:47 JakeWharton: thx anyway Nov 04 19:58:59 robotsmakinglove: when I upgraded it was very explicit i had to get the sdk, put it somewhere, and point AS at it. I don't have the url it gave handy however Nov 04 19:59:09 i just put it in my home dir Nov 04 20:01:00 JakeWharton yeah I'll copy it over but I don't see any links from that page or anywhere else which is unfortunate Nov 04 20:01:58 mattblang, keeps the instance, but will always recall your UI work. so dont assume itll save anything you create visually. on config change you still have to reassociate your ui, unless its headless Nov 04 20:03:08 hey guys, anyone dealt with 'invalid package' error? Nov 04 20:03:54 I built an sdk w retrofit/okhttp that's being used in Eclipse w/ hard dependencies ie no gradle Nov 04 20:04:19 when some users try to install app, they get 'invalid package' error Nov 04 20:14:54 Hey, I'm trying to create a file in my app cache dir using File file = new File(ctx.getCacheDir(), filename); then getting a Uri and passing it to a camera ACTION_IMAGE_CAPTURE intent as EXTRA_OUTPUT, however it seems that the picture is not saved at the given Uri. Nov 04 20:15:29 I'm not sure what I am doing wrong. That's on a 4.0.3 device with internal storage. It works on 4.4 device but I am using external storage instead of getCacheDir() stuff. Nov 04 20:18:20 so you are doing, file.createFile (), then wanting camera to fill the file with bytes? there maybe permission issues. but if you are creating/writing your file think you need to be a ContentProvider Nov 04 20:19:53 komandant the camera app does not have permission to write to your app cache Nov 04 20:20:32 and correct that it doesn't or all hell would be let loose on the world and app fights would break out…. (thinks)… ok that would be cool Nov 04 20:21:22 whatitis writing bytes has little to do with being a content provider Nov 04 20:22:08 meant if he was writing the file and wanting to share it from his data Nov 04 20:23:16 hmm…missed the part about him wanting to share data to other apps Nov 04 20:23:47 thats fine Nov 04 20:25:05 StingRay_ yeah pretty much, file.createNewFile() in app cache dir, getting a Uri and passing it to camera intent. Nov 04 20:25:31 komandant oh, then yeah… I think my comment/answer is correct Nov 04 20:27:36 hm, so is there a way around the permission problem? Nov 04 20:27:52 why not just use shared storage ? Nov 04 20:27:59 sd card etc Nov 04 20:28:04 no real reason not to ? Nov 04 20:29:44 well not sure to be honest... something like Environment.getExternalStorageState() ? Nov 04 20:29:58 erm no Nov 04 20:30:07 just follow the d.android.com tutorial Nov 04 20:30:15 it explains saving image from camera Nov 04 20:30:29 yeah will check it out, sry I am out of my depth here Nov 04 20:30:53 komandant your wanting to share this file with other apps ? Nov 04 20:31:04 as in offer it up to them with "share" ? Nov 04 20:31:17 no Nov 04 20:31:33 oh, sorry, whatitis seemed to think you asked that... Nov 04 20:35:26 i am just trying to get an image, temporarily store it, pass it to a crop activity and send it to an imageview Nov 04 20:36:26 i works fine with external storge, but that seems not to be available on all devices hence me trying with cacheDir Nov 04 20:36:53 it* Nov 04 20:37:19 My "implements" clauses get bloated so quickly. Nov 04 20:38:42 Is it possible to declare a buildConfigField that is an Integer? Nov 04 20:39:02 I can form a String just fine, but it doesn't like Integer Nov 04 20:39:27 with android, can I somehow detect touch events of a paticular rect in a surfaceview canvas Nov 04 20:47:43 Moony22, you put it in your custom viewgroup and intercept touch events Nov 04 20:55:43 hi Nov 04 20:55:50 Hai. Nov 04 20:56:10 lo Nov 04 20:57:55 God, it'll be Christmas soon. Nov 04 20:57:57 Time flies by. Nov 04 20:59:14 jingle bells batman smells Nov 04 21:02:45 hey all. Nov 04 21:03:13 In the book i am learning Android dev from, it mentions an ArrayAdapter what does the T stand for? Nov 04 21:03:23 google is your friend Nov 04 21:03:25 while (true) { greetAllTheNewcomers(); } Nov 04 21:03:32 don't get stuck on books only Nov 04 21:03:44 skrite: Google "java generics". Nov 04 21:03:51 gotcha, thanks Nov 04 21:07:37 I'd never considered learning Android development from a book. Hmm. Nov 04 21:08:08 i am not brand new to programming, but i am to java and android Nov 04 21:08:22 K. Have you used C++ or C# before? Just curious. Nov 04 21:08:33 They have generics or something like it. Nov 04 21:08:40 I don't understand people whose first impulse when learning something so techy is to get a book Nov 04 21:08:45 no, never have. Nov 04 21:08:56 never used C++ or C# Nov 04 21:09:01 I know various people learn in various ways, I just don't get books Nov 04 21:09:14 so inconvenient, so outdated, so cumbersome Nov 04 21:09:31 well.... yeah Nov 04 21:10:10 Books have some advantages, though. Everything is simple and consistent. Nov 04 21:10:21 The author holds the reader's metaphorical hand. Nov 04 21:10:30 good docs and tutorials do too Nov 04 21:10:42 and are easier to search through, bookmark, generally deal with... Nov 04 21:11:01 copy and paste ha ha ha :) Nov 04 21:11:04 IMO, Android is seriously deficient in good docs and tutorials. Nov 04 21:11:31 once you get a hang of the basics, d.android.com is pretty good Nov 04 21:11:46 anyone have any facebook login (preferably large scale) metrics on login failure rates? like operation canceled, timeout, etc? Nov 04 21:11:49 ... until you get to weird and inconsistent parts at least Nov 04 21:11:54 I have had some trouble finding good examples of what i am trying to do. Nov 04 21:12:37 hey dude, whatever works for you, just don't be surprised that many people won't understand :p Nov 04 21:13:39 ravilov: yeah, I feel the same way, re: programming books. Nov 04 21:14:04 I'll read some online docs or whatever, and then just dig in and start writing something Nov 04 21:14:22 I'm going to read a book about C++ Nov 04 21:14:26 yeah, that is my next step. Nov 04 21:14:35 I'm going to go read a phonebook Nov 04 21:14:36 there are fundamentals I need to revisit Nov 04 21:14:37 seems like fun Nov 04 21:14:37 I read a book about C++ when I was about 13. I loved it, for some reason. Nov 04 21:14:40 I guess teenagers are idiots. Nov 04 21:14:47 next up - a dictionary Nov 04 21:15:00 Going over the basics can be very nice. Nov 04 21:15:05 Reaffirms them in our minds. Nov 04 21:15:11 TacticalJoke, some light reading when you need to go do #2? :p Nov 04 21:15:24 Well it has been like 7 years since I did C++ programming Nov 04 21:15:31 (that was in school) Nov 04 21:15:38 It was actually written by Herbert Schildt. He had a reputation for writing bad books. The term "Bullschildt" became popular. Nov 04 21:15:43 Wait, I guess I've been doing it in unreal Nov 04 21:15:56 I think it was "C++: The Complete Reference". Nov 04 21:16:00 Part one was about C. Ugh. Nov 04 21:16:05 Part two, C++. Nov 04 21:16:26 (Double ugh.) Nov 04 21:16:46 The first 'ugh' was the author's decision to basically combine two books into one. Nov 04 21:16:51 The first part was a standalone C book. Nov 04 21:17:19 why boost sales unnecessarily if you don't have to Nov 04 21:17:28 I wonder why ravilov doesn't like books Nov 04 21:17:28 :D Nov 04 21:17:41 I'm not a huge fan of books anymore. It's so slow to read a book. Nov 04 21:17:45 I wonder why gman23 wonders that Nov 04 21:17:47 And, as mentioned, they get outdated. Nov 04 21:18:05 I wonder whether video is the future of education. Nov 04 21:18:12 Video is more suitable to our brains, I think. Nov 04 21:18:17 We remember images and sounds very easily. Nov 04 21:18:27 I hate watching youtube videos of "tutorials" Nov 04 21:18:31 not so much when it comes to programming Nov 04 21:18:32 Oh, I love that! Nov 04 21:18:34 So quick and easy. Nov 04 21:18:39 You can learn so much in 60 minutes. Nov 04 21:18:40 no way Nov 04 21:18:43 you're joking Nov 04 21:19:05 If it's a good tutorial, I'll learn *way* more from a 60-minute video than from reading text for 60 minutes. Nov 04 21:19:06 what am I going to do, look at the dude's screen and try to figure out what's he doing/typing? Nov 04 21:19:14 And I'll retain it for longer, I think. Nov 04 21:19:21 TacticalJoke, maybe you're doing it wrong with the text then :p Nov 04 21:19:43 I wonder if the L email app can run on kitkat Nov 04 21:19:56 * pfn tries Nov 04 21:20:06 I hate listening to someone keep stuttering, talking about random shit to fill time, joking about their dog Nov 04 21:20:10 Text is old technology. Nov 04 21:20:15 Image and sound are where it's at. :D Nov 04 21:20:32 I realise that I'm using text right now. But that's not by pure choice. Nov 04 21:20:40 gman23: Those are bad videos. Nov 04 21:20:45 uhhuhh Nov 04 21:20:45 or "Oh, oops! Haha, it didn't compile because I forgot the semi-colon. Oh that reminds me of a story..." Nov 04 21:20:52 The text equivalent would be. "Lawl, my cat just walked across my keyboard." Nov 04 21:20:56 s/. // Nov 04 21:21:38 Videos don't have to involve people typing code. Nov 04 21:22:13 Typically that's what I'm looking for Nov 04 21:22:22 they do if code is what I'm interested in Nov 04 21:22:24 You want to see people typing code? Nov 04 21:22:38 no, I just want to see the code Nov 04 21:22:43 No, I want to read code on a web page or in a book Nov 04 21:22:47 hence why I have no use of vidoes Nov 04 21:22:48 Typing code is not the only way of adding code to a file. Nov 04 21:22:50 videos even Nov 04 21:23:20 If I find a video about what I want and I've decided to resort to watching it, typically it's crap. Nov 04 21:23:53 TacticalJoke, as far as pics and videos go when it comes to programming, I think you might be just as misunderstood/not understood as the book guy :p Nov 04 21:25:26 haha, yeah. tutorial videos are worse than books Nov 04 21:25:29 I get more pleasure from reading text. I love reading books. But I've lately had to admit to myself that books are old technology. Nov 04 21:25:33 It took some painful realisation. Nov 04 21:25:38 I doubt that text is the future. Nov 04 21:25:39 I don't mind pictures as part of text to illustrate a point. videos are acceptable too, for example to show how a certain animation or transition works. anything beyond that is useless to me Nov 04 21:25:54 you'd be surprised Nov 04 21:26:32 The thing is that we're making graphical apps. Nov 04 21:26:43 Video tutorials are, in various ways, perfectly suited to this goal. Nov 04 21:26:57 nah, illustrations within text are ;) Nov 04 21:27:00 I do agree, though, that text + video = ideal (at least right now). Nov 04 21:27:11 Or at least text + image = ideal. Nov 04 21:27:15 imagery* Nov 04 21:27:20 videos are horrible. you're rate limited to how fast a guy can talk, it's hard to navigate, you can't "skim" Nov 04 21:27:34 wonder how this new material design would look like when represented using ascii art Nov 04 21:34:15 If I have a long sequence of text (e.g., five paragraphs), what's the best way to represent this in strings.xml? Nov 04 21:34:50 Nov 04 21:36:19 Okay. Do you know whether this is documented anywhere? Nov 04 21:36:38 just about any XML standard out there Nov 04 21:42:47 The problem is that actual newlines in strings.xml are converted into spaces. Nov 04 21:43:11 And I guess indentation is, too. Nov 04 21:43:23 \n Nov 04 21:43:31 works for me Nov 04 21:43:53 I could do this: Line one.\nLine two.\nLine three. Nov 04 21:43:57 even though technically XML, the string values get internally processed as a kind of rudimentary HTML Nov 04 21:43:58 But it gets hard to read with long text. Nov 04 21:44:09 If I insert hard breaks into strings.xml, they start being interpreted as spaces, it seems. Nov 04 21:44:13 actually Nov 04 21:44:38 getText(R.string.xxx) shouldn't convert any whitespace Nov 04 21:44:48 I think it's the XML parser itself, but I could be wrong. Nov 04 21:45:26 shouldn't be, but I'm not 100% on that Nov 04 21:46:30 I'd like to do something like this, but it's interpreting the spaces: http://pastebin.com/0ntb71r9 Nov 04 21:46:34 And the newlines. Nov 04 21:46:55 Oops, I guess I needed some "\n"s there. Nov 04 21:51:37 I guess I could use "

Paragraph one.

Paragraph two.

Paragraph three.", and then Html.fromHtml. Nov 04 21:54:39 what is the text? is it gonna be localized too, is the formatting of line breaks based on different resource identifiers for screen etc Nov 04 21:55:31 It won't be localized, and the line breaks will always be the same. Nov 04 21:55:41 I just want to display around three paragraphs of text on an activity. Nov 04 21:57:52 TacticalJoke, that's not a newline though, that's a whole new level of abstraction Nov 04 21:58:05 (

is at least two lines as well) Nov 04 21:58:16 someone say HTML parser? Nov 04 21:58:24 nope Nov 04 21:58:28
is newline.

is new paragraph.. Nov 04 21:58:33 I know. Nov 04 21:58:42 Ideally, I guess I'd use "

" for semantics. Nov 04 21:58:52 In the string file (whether it's strings.xml or something else). Nov 04 21:59:06 I'm just trying to figure out the best way to do this in Android. Nov 04 21:59:22 So far, it seems that writing HTML and then using Html.fromHtml seems best, but I'm not sure. Nov 04 21:59:29 use string1, string2, string3... :p Nov 04 21:59:39 then concat in code Nov 04 21:59:40 I was hoping to avoid that. lol Nov 04 21:59:46 and Formatter with getString Nov 04 22:00:51 i'd use and concenate in code Nov 04 22:01:11 Hi everyone Nov 04 22:01:35 I would set static vars for

and
, name them p and br, and concatenate them accordingly Nov 04 22:01:40 I'm trying to get a wifi driver working on a version of Android that I built. Is this the right place to ask for help with something like that? Nov 04 22:01:49 in a class that only builds/formats html Nov 04 22:02:07 marlon_s10 read topic/title Nov 04 22:02:18 marlon_s10: see topic Nov 04 22:02:50 hey, can anyone please help me understand why a big svg (like this http://upload.wikimedia.org/wikipedia/commons/d/dd/World,_administrative_divisions_-_de_-_colored_%28all_countries%29.svg ) displays huge in my browser on my pc but on android phone in an ImageView it displays pretty small (in comparison) Nov 04 22:02:52 marlon_s10, in case you haven't been told yet, read the topic Nov 04 22:03:06 Ok right. Looks like android-root is where I need to be then. Nov 04 22:03:11 Thanks Nov 04 22:03:39 Hmm, using quotes (") changes the interpretation significantly. Nov 04 22:03:43 I'm guessing that's undocumented. ;| Nov 04 22:03:47 fadax cause of the default scaleType of an imageView maybe ? Nov 04 22:04:10 or maybe cause you phone has x30 the pixels per inch your monitor has Nov 04 22:05:11 StingRay_ I am using ScaleType.CENTER which is supposed to be unscaled .. and my pc monitor is very high resolution Nov 04 22:05:14 because LOGIC Nov 04 22:05:30 fadax, I'm sure your PC monitor is also very large Nov 04 22:05:37 so not sure what's your point? Nov 04 22:06:19 hi Nov 04 22:07:14 Hey, so.. with android:inputType:.. do I get any control over the empty buttons in “number”? or how would I specify a proper keypad to use for entering international zip codes? like K8B 24Z Nov 04 22:07:21 or 90210 Nov 04 22:07:24 how can I set spacing between Cards in RecyclerView? Nov 04 22:08:26 ravilov I just thought if an image has a fixed width then it should have a similar actual size on two screens with similar resolutions (even if one screen is much smaller) Nov 04 22:08:31 textPostalAddress Nov 04 22:12:54 anyone know how to override a blank button in input Type"number”? or how to make it switch to alpha? Nov 04 22:13:06 @tricknology_: did you answer your own question? or no Nov 04 22:13:14 i've not used textPostalAddress, but I'm curious Nov 04 22:13:28 I did haha, but I don’t want to use textPostalAddress. It’s the same as alpha.. at least on an S5 Nov 04 22:13:42 err “text” Nov 04 22:14:16 ew fancy quotes Nov 04 22:14:28 would be nice if it was the phone hint keyboard with ability to select between ACB and 123 Nov 04 22:14:31 ABC* Nov 04 22:16:25 why can some libraries be imported by maven but not gradle? Nov 04 22:17:39 Hey all Nov 04 22:17:55 does anyone have time to help me get one of the SDK 20 samples working? Nov 04 22:20:05 matt_j maybe ask elsewhere for 1 on 1 tuition, you will get more response with simple short direct questions Nov 04 22:20:21 Is it just impossible to change android:src in code? Nov 04 22:20:33 matt_j, never was and never will be a channel for personal 1-on-1 tutorinig Nov 04 22:20:49 Yeah I'm just looking for ... something Nov 04 22:21:01 asking for help here is obviously optimistic Nov 04 22:21:02 google usually helps with that Nov 04 22:21:09 gman23 it's impossible unless you read the docs http://developer.android.com/reference/android/widget/ImageView.html :) Nov 04 22:21:14 I'm just gonna use one line with "\n\n". Nov 04 22:21:17 sorry, but nobody here offers that kind of help, matt_j Nov 04 22:21:19 ravilov: google has no results for the error Nov 04 22:21:23 I need to break up the text (into multiple screens) anyway. Nov 04 22:21:27 OMG Nov 04 22:21:31 THAT'S my problem Nov 04 22:21:35 I'm not casting it as an ImageView Nov 04 22:21:36 LOL Nov 04 22:22:29 * gman23 jams pen into eye Nov 04 22:23:47 Changed. Done. Thanks StingRay_ for making me realize where the problem was Nov 04 22:24:20 Kept looking at my autocomplete list and knew it was missing something. Nov 04 22:24:31 that sounds almost like "thanks StingRay_ for jabbing a pen in my eye so I could see better" Nov 04 22:24:34 :p Nov 04 22:24:37 Pretty much Nov 04 22:27:33 When I rotate my screen, my old fragment isn't being destroyed (but the activity is being destroyed). Is this intended? Nov 04 22:27:42 The end result is that onCreate creates another Fragment on top of the old one. Nov 04 22:28:22 using retain? Nov 04 22:28:35 Nah. Nov 04 22:28:52 I'm calling FragmentTransaction.add in Activity.onCreate. Nov 04 22:29:01 I guess the FragmentManager is holding onto the Fragment. Hmm. Nov 04 22:29:24 but im saying in fragment you arent using setretain? Nov 04 22:29:56 I'm not. Nov 04 22:29:59 k Nov 04 22:31:20 fragments seem to be all kinds of tricky Nov 04 22:33:32 I like fragments Nov 04 22:34:33 Hmm, the example here suggests that we shouldn't re-add the Fragment if the Activity is being recreated: http://developer.android.com/training/basics/fragments/fragment-ui.html Nov 04 22:34:45 "// However, if we're being restored from a previous state, then we don't need to do anything and should return or else we could end up with overlapping fragments." Nov 04 22:35:46 TacticalJoke well you may need a reference by way of fragmentManager but yeah Nov 04 22:36:04 if the bundle is !null dont create Nov 04 22:36:19 Weird. I would've expected the Fragment to die with the Activity. Nov 04 22:36:38 is there a way to initialise a fragment before it's needed? i.e. when the application starts Nov 04 22:37:07 fadax I think if you needed that, erm, not sure on use, but the design maybe wrong Nov 04 22:38:06 actually, the question dont make sense to me Nov 04 22:38:13 StingRay_ ok I probably designed it wrong then.... I am using android-svg library to load a svg image into an imageview inside a fragment. and it takes about 10 seconds to load the image, so I wanted to do that before the fragment is needed Nov 04 22:39:08 not sure what the question is Nov 04 22:39:16 Also, in that example, why check savedInstanceState? Why not use FragmentManager.findFragmentById(R.id.fragment_container_or_whatever)? Nov 04 22:39:18 just load it / cache it then ??? Nov 04 22:39:33 TacticalJoke is it not quicker to do !null ? Nov 04 22:39:37 than do a map lookup ? Nov 04 22:40:19 True, but it's less readable code. Hmm. Nov 04 22:40:43 not really :) depends how you write it Nov 04 22:41:23 StingRay_ ok do you mean load it into a static field in my fragment class? would it slow down my application start time? Nov 04 22:41:34 fadax wait what ? Nov 04 22:42:36 I mean load it whenever you want to… and then use it whenever Nov 04 22:42:41 not sure what you are asking Nov 04 22:43:43 I want to load the image on application start up, so it doesn't need to be loaded when the user starts the activity. I just wasn't sure how/what the best way to do that is Nov 04 22:44:18 I am getting onDestroy for the fragment, but the FragmentManager still holds on to it. Weird. Nov 04 22:44:38 ok, so you could use a service to grab data, bind to it and use whenever you want fadax Nov 04 22:44:41 hello, i am attempting to take a screenshot of my activity as soon as it is presented.. unfortunately, neither in onStart() nor onResume() does my code work.. any suggestions? Nov 04 22:45:03 the exception returned is IllegalArgumentException: width & height must be > 0, suggesting the view hasn't drawn itself yet Nov 04 22:45:15 zpr maybe cause it hasn't Nov 04 22:45:29 StingRay_ oh ok I'll read up on android services, thanks Nov 04 22:45:41 StingRay_: according to the docs, the activity would be presentable to the user by onStart() Nov 04 22:46:03 am i mistaken somehow? I have tried in onResume() to no avail as well Nov 04 22:46:18 the code works fine when I bind it to a click event Nov 04 22:46:43 zpr show me where onStart() comes after views presented to use in the docs Nov 04 22:47:17 StingRay_: http://developer.android.com/reference/android/app/Activity.html, a little down the page it discusses the *visible lifetime* of an activity Nov 04 22:48:04 between onStart() and onStop() Nov 04 22:48:10 so nothing like what you seem to have read Nov 04 22:48:33 maybe take a second shot at reading that sentence :) Nov 04 22:48:56 well, paragraph Nov 04 22:49:15 Since FragmentManager is holding onto my Fragment, what's the difference between saying "setRetainInstance(true);" and not? Nov 04 22:49:41 I guess one difference is that you get Fragment.onCreate and Fragment.onDestroy when not. Nov 04 22:49:54 you would have to save stuff in the fragment that you want to keep on config changes etc Nov 04 22:50:09 like I doooo :) Nov 04 22:51:50 StingRay_: not really understanding your point, but yes I suppose it is *between*. Strange naming convention "onStart" to be called before it starts. In either case, since neither onStart() nor onResume() apparently are executed when the activity starts or resumes, where might I address code that needs to run when the UI has been displayed? Nov 04 22:51:57 StingRay_: But does that actually make any difference? Nov 04 22:52:04 Wait, lemme see. Nov 04 22:52:43 zpr the point is you said onStart() is when activity presented to user, and it does not say that…it says between onStart() (meaning after) and before onStop() Nov 04 22:52:47 thats my point Nov 04 22:53:07 as in, no what you said is totally wrong and thats why it aint working :) Nov 04 22:53:10 Okay, user state gets saved. Nov 04 22:53:16 StingRay_ : i understand, that is my mistake. Nov 04 22:53:23 so maybe use a layoutListener Nov 04 22:53:29 or do a postRunnable Nov 04 22:53:44 they are 2 options I would consider Nov 04 22:53:49 So is the fragment manager doing the whole onSaveInstanceState thing itself, or is it a static? Nov 04 22:56:16 do yall generally define fragments in xml, or dynamically with fragment transaction? Nov 04 22:56:39 StingRay_: according to the docs, onResume() is "Called when the activity will start interacting with the user.", implying it is visible. Why doesn't the call work there? Nov 04 22:56:51 mattblang: I learned tonight that, if you want to replace a Fragment, you have to create it dynamically. Nov 04 22:56:54 I guess it depends on what you're doing. Nov 04 22:57:58 zpr again "will start" Nov 04 22:58:04 not "started" Nov 04 22:58:33 I think the wording is misleading a bit though Nov 04 22:58:56 zpr but layout has not occurred by the completion of onResume() Nov 04 22:59:26 StingRay_: I see. Well, so you don't know where it goes either? Nov 04 22:59:40 where what goes ? Nov 04 22:59:51 my code for taking a screenshot. Nov 04 23:00:03 I already said Nov 04 23:00:08 of the activity, which is yet to be displayed by all of these methods Nov 04 23:00:35 oh sorry, a layoutListener, i thought that was a reply to someone else Nov 04 23:00:39 JakeWharton: Sorry to disturb, but could you clarify something? :) I'm finally messing with Fragments for the first time, and I'm surprised that the FragmentManager seems to be holding onto my Fragment (which was dynamically added) across Activity recreations. I have to check whether the Fragment already exists before calling FragmentManager.add in Activity.onCreate. My Fragment does Nov 04 23:00:39 *not* use setRetainInstance. Is this weird or is this expected behaivour? Nov 04 23:00:53 anyone know how to remove some classes from the classpath with radle? Nov 04 23:00:54 expected Nov 04 23:00:57 gradle* Nov 04 23:00:59 exclude won't work in this case Nov 04 23:01:06 i need some sort of groovy magic Nov 04 23:01:12 why won't exclude work? Nov 04 23:01:18 because im using blundell's thing Nov 04 23:01:23 and i cna't have dexmaker on the classpath Nov 04 23:01:28 for my jvm tests Nov 04 23:01:37 but i need it for my instrumentation tests :O Nov 04 23:01:45 Okay. I'm trying to wrap my head around why Fragments aren't being removed from FragmentManager when the Activity is recreated. Nov 04 23:01:56 on the groovy classpath or the build classpath? Nov 04 23:01:58 Does FragmentManager persist them by the onSaveInstanceState thing? Or does it use a static. Nov 04 23:02:08 uhh i dont know, but i have this line: testCompile androidModule.android.applicationVariants.toList().first().javaCompile.classpath Nov 04 23:02:15 i need to exclude dexmaker from there somehow Nov 04 23:02:15 TacticalJoke: it uses onRetainNonConfigInstance Nov 04 23:02:19 Okay. Nov 04 23:02:24 guys, does anyone know why I cannot create a GeoPoint in Android Studio? Nov 04 23:02:32 GeoPoint geoP = new GeoPoint(48115436,-1638084); Nov 04 23:02:32 And it does this just to be helpful to us programmers, I guess. Nov 04 23:02:42 Then again, it's not so helpful. Nov 04 23:02:47 seems like a really hard thing Nov 04 23:03:26 probably just .filter({ it.artifactId == 'dexmaker' }) or something Nov 04 23:03:45 Maybe it does it for performance reasons. Hmm. Nov 04 23:03:47 not sure where to filter or where to hook it in :\ Nov 04 23:03:53 on the classpath Nov 04 23:03:54 Then again, we have to reinstatiate the views anyway. Nov 04 23:03:59 reinstantiate* Nov 04 23:04:01 TacticalJoke: the reason to use fragments is so you get stuff remembered for you Nov 04 23:04:32 shmooz I disagree Nov 04 23:04:35 shmooz: I'm just trying to understand why FragmentManager holds onto Fragments across Activity recreations. It surprised me. Nov 04 23:04:47 I totally expected it to disappear and need to be readded. Nov 04 23:04:51 i wish there was a static variable you could set Nov 04 23:04:54 in dexmaker Nov 04 23:04:57 to disable it Nov 04 23:04:59 er Nov 04 23:05:01 dexmaker-mockito Nov 04 23:06:36 JakeWharton: I don't suppose you have any theories regarding why FragmentManager does this? Nov 04 23:06:39 StingRay_: what do you think the reason for using fragments is then ? Nov 04 23:07:04 to segment portions of an app so that they are both dynamic and interchangeable Nov 04 23:07:24 nothing to do with "remembering stuff" Nov 04 23:08:12 I think they are dynamic and interchangeable without fragments Nov 04 23:08:33 well yeah, if you just use views Nov 04 23:08:49 or whatever… but thats their use really Nov 04 23:08:58 to break up an app into parts for re-use Nov 04 23:09:05 not to "remember stuff" Nov 04 23:09:11 How does the whole onRetainInstanceState/onRetainNonConfigInstance thing work, anyway? Does it write to disk? Nov 04 23:09:32 s/Retain/Save/ Nov 04 23:10:00 TacticalJoke can't you look at src to get your answers ? Nov 04 23:10:14 I guess I could try. Nov 04 23:10:28 do, or do not… :) Nov 04 23:10:42 The source takes me down so many rabbit trails for stuff such as this. Nov 04 23:10:43 there is no try…dammit I really wanted that bit just to be implied Nov 04 23:11:46 And of course various Android tutorials all over the web do *not* mention that you need to check before adding a fragment. Nov 04 23:12:14 All their code has bugs where merely turning the screen entails overlapping fragments. Nov 04 23:12:22 And a memory leak, I guess. Nov 04 23:12:24 Awesomeness. Nov 04 23:12:43 "The blind leading the blind." Nov 04 23:12:59 And they get comments like "Thanks for the help! Now it's all clear in my mind!" Nov 04 23:13:22 TacticalJoke and Fragments = Gasoline and Fire Nov 04 23:13:58 you'll be whining about fragments for the next few weeks I suspect Nov 04 23:13:59 I don't mind them much (so far), but it kinda sucks how so many tutorials are just wrong. Nov 04 23:14:03 I'm not whining... Nov 04 23:15:21 it does not write to disk Nov 04 23:15:28 if the process dies it dies as well Nov 04 23:15:36 Oh, okay. Makes sense. Nov 04 23:15:55 So I guess it's basically the same as writing to a static variable. Nov 04 23:17:37 you're just telling the framework to retain that data for you when recreating your stuff Nov 04 23:17:51 so not quite like static Nov 04 23:18:09 I have a problem with my android box. Everytime it reboots it gets a different mac address thus I'm not able to give it a static ip address. If I set it up on the android itself it works however after a reboot I can't start the android. As the problem is much likely on the ethernet drivers itself is there an hack or something I can do to "fix" this problem? Nov 04 23:18:39 -> #android-root Nov 04 23:18:47 ok, sorry Nov 04 23:18:53 enen92: take it to the repair shop Nov 04 23:18:54 thanks Nov 04 23:18:56 or #android I guess Nov 04 23:19:18 no repair shop is one of those chinese crappy boxes lol Nov 04 23:19:44 what are you complaining about then lol Nov 04 23:20:25 nothing,just trying to fix it without unpluging the network cord everytime it reboots :) Nov 04 23:20:51 haven't spent any money with it so Nov 04 23:21:47 if anyone is looking to turbocharge your Eclipse… I found out how.. Nov 04 23:22:02 by using something else? Nov 04 23:22:09 eclipse.ini.. set the VM heap to 1024 from 512 Nov 04 23:22:14 sounds like one of those piratebay ads Nov 04 23:22:15 ha ha ha bankai_au Nov 04 23:22:28 Parsing Data for android-21 failed Nov 04 23:22:28 Unsupported major.minor version 51.0 :( Nov 04 23:22:42 well I can see why they named it L Nov 04 23:22:48 L = 50 in roman numerals Nov 04 23:23:42 tricknology_: that's just for the VM right ? Nov 04 23:23:46 not the whole IDE Nov 04 23:24:04 eh, not sure but Eclipse is quick as hell after doing that Nov 04 23:24:12 loading eclipse is about twice as fast Nov 04 23:24:35 Found it after i got soem GC error on Yosemite.. Im back on Mavericks but that did something Nov 04 23:25:07 is your system a bit pushed for RAM? Nov 04 23:25:21 I gave IntelliJ 3GB Nov 04 23:26:06 haha no I have 12GB, but I didn;t know what it was going to do.. maybe I should push it to 2048? Nov 04 23:26:32 -Xmx2048m Nov 04 23:27:02 launcher.XXMaxPermSize Nov 04 23:27:04 what is yours? Nov 04 23:27:04 I don't have any eclipse.ini Nov 04 23:27:08 you have mac? Nov 04 23:27:24 just eclipe.ini.ignored Nov 04 23:27:36 right click eclipse, show package contents, contents, macOS, its in there Nov 04 23:27:37 I would give Eclipse an -XmxRope to hang itself with Nov 04 23:27:51 ^ lol Nov 04 23:28:15 of course I don't have a mac, who do you take me for? Nov 04 23:28:20 JakeWharton has had a total eclipse of the heart Nov 04 23:28:40 icebox.. where.. my . heart. used. to be Nov 04 23:28:47 hm, must be why my eclipse works so well even without these weird tricks Nov 04 23:29:44 anyone familiar with “Parsing Data for android-21 failed Nov 04 23:29:44 Unsupported major.minor version 51.0” ? Nov 04 23:29:51 yes Nov 04 23:30:02 you are compiling with Java 6 and that class uses Java 7 Nov 04 23:30:19 aah.. so switch my target? Nov 04 23:30:20 JakeWharton, Rope: unable to parse as integer Nov 04 23:30:33 typical Eclipse Nov 04 23:30:48 * tricknology_ knew it would somehow have to do with Eclipse sucking Nov 04 23:30:51 :( Nov 04 23:30:58 it always comes back to that Nov 04 23:31:07 it's a base36 integer Nov 04 23:31:38 eclipse sucks so bad it actually did an overflow and became awesome Nov 04 23:31:55 anyone here using android studio? Nov 04 23:32:04 nope Nov 04 23:32:08 I am unable to resolve android.maps Nov 04 23:32:09 so you traitors will hand android from the french to the ruskies just like that huh Nov 04 23:32:15 (dumb question) Nov 04 23:32:21 I have the play services library added to my dependencies Nov 04 23:32:37 I can't figure out why that is :p Nov 04 23:33:14 JakeWharton, base36? I guess I need java9 for that Nov 04 23:33:29 i used Java 9 yesterday to test a compile problem Nov 04 23:34:04 did it involve parsing integers? Nov 04 23:34:29 sadly, no Nov 04 23:34:44 Tee_Pee: play services != android.maps Nov 04 23:34:51 So JakeWharton, you were indeed correct, i was targeting SDK 20.. now I am supporting 11-19. What happens when I want to switch the target to 20 or 21? do I need to compile with Java 7? what happens to those lower targeted API’s? will eclipse yell at me for that? should I create two projects or just keep targeting 19? Nov 04 23:34:55 you need to set your compileSdkVersion to the google APIs Nov 04 23:35:26 tricknology_: i don't know how Eclipse handles it, but the dx tool safely translates Java 7-compiled class files into dex Nov 04 23:35:28 so it should be fine Nov 04 23:35:58 ok, thanks. I got some complaint about it so I set it back to 1.6, guess I’ll try 1.7 form here Nov 04 23:36:03 tricknology_, wipe everything, start over Nov 04 23:36:08 I ALREADY DID Nov 04 23:36:10 better safe than sorry Nov 04 23:36:12 omg haha Nov 04 23:36:26 keep wiping! Nov 04 23:36:37 should I wipe the MBR just to make sure? Nov 04 23:36:54 squeaky clean Nov 04 23:37:07 yes fdisk /mbr Nov 04 23:37:13 8 passes minimum, random data Nov 04 23:37:14 that will get rid of that pesky Eclipse Nov 04 23:37:19 you should wipe the cpu microcode too Nov 04 23:37:29 this kills the cpu Nov 04 23:37:35 better safe than sorry Nov 04 23:38:04 I could use another imac.. that 4k one is looking nice Nov 04 23:38:14 5k Nov 04 23:38:36 $2500 starting price Nov 04 23:38:43 good thinking, get a new computer for every new eclipse project Nov 04 23:38:50 $4000 by the time you're done Nov 04 23:39:00 i know we got one. our graphic designer has one. and it’s pretty Nov 04 23:39:08 but people say it's like looking through a window Nov 04 23:39:21 you can’t see that grainyness associated with pixel gap Nov 04 23:39:38 or that aliasing that happens.. everything is sharper. it’s weird Nov 04 23:39:42 pretty, and... that's probably about it Nov 04 23:39:45 but its’ still 60hz so it’s a little flashy Nov 04 23:40:37 if you can't see the pixels, how do you know they're all there? Nov 04 23:40:38 next gen will be 120 Nov 04 23:41:15 and 8k Nov 04 23:41:28 or 10K Nov 04 23:41:43 you could have half the pixels you think you have and not even know it Nov 04 23:42:09 i wonder if we'll just use vr headsets soon Nov 04 23:42:31 Google Cardboard FTW Nov 04 23:42:43 brain plugs, matrix style Nov 04 23:42:55 first thing I would learn is wing chun Nov 04 23:43:20 then Android Nov 04 23:43:21 g00s: the latest was when John Carmack was saying how the Note 4 won't make people sick anymore Nov 04 23:43:32 first thing I would order... oh wait Nov 04 23:43:33 but I doubt it Nov 04 23:45:18 so apparently changing the logcat filters freezes eclipse every time.. Nov 04 23:45:19 Anyone have any tips for incorporating Advertisements? Nov 04 23:45:32 I don't want to annoy my users, but would like to make a little money here and there. :) Nov 04 23:45:37 don’t let it mess with the actionbar? Nov 04 23:45:57 I'm more concerned how to minimize annoyance. :) Nov 04 23:46:30 pBlack: what kind of app is it ? Nov 04 23:46:34 well if it overlaps the acitonbar that could be pretty annoying.. not sure if it can even do that but I remember someone asking how to get the size of actionbar Nov 04 23:46:59 shmooz: Camera app. Take pictures, view them, optionally share them to Facebook / Instagram. Nov 04 23:47:15 I see tricknology_ Nov 04 23:47:26 I wasn't planning on doing that. :) Nov 04 23:47:48 Fairly small app (in terms of features / functionality). Nov 04 23:48:01 when they take a picture, hold it hostage and make them click the add before showing it Nov 04 23:48:09 I see. Nov 04 23:48:35 When they take the pic, they'll naturally want to see it so I guess that makes sense. :) Nov 04 23:48:40 I won't do it 100% of the time though. Nov 04 23:48:46 Maybe 30%. Nov 04 23:48:53 does it do less than standard camera app? Nov 04 23:49:02 What's "less"? Nov 04 23:49:03 uhmm I was kind of being sarcastic but hey Nov 04 23:49:07 http://imgur.com/gallery/C37kKeD Nov 04 23:49:11 It's more "effects focused". Nov 04 23:49:21 when exiting the app you can also interfere Nov 04 23:49:26 effects are features Nov 04 23:49:45 Ahh, then yes. :) Nov 04 23:50:09 The default camera app has more "features". Nov 04 23:50:16 Different effects though. Nov 04 23:50:46 you want to minimize annoyance? give up on ads altogether. done. Nov 04 23:50:59 I see. Nov 04 23:51:04 use threats instead Nov 04 23:51:06 Something I'm going to have to live with. :) Nov 04 23:51:10 Lol shmooz. Nov 04 23:51:17 "You better tap this ad!" Nov 04 23:51:32 How about a "friendly warning." Nov 04 23:51:34 just create a niche that they cant get with default android, and theyll have to live with the ads to get your featurss Nov 04 23:51:42 "Incomming advertisement!" Nov 04 23:52:03 whatitis Yep, that's what I'm going for. "Niche". Nov 04 23:52:30 can also do ad supported app&paid no ads app Nov 04 23:52:47 That's an option too. :) Nov 04 23:53:00 Don't I need 2 diff package names? Nov 04 23:53:01 what's the niche? apps that are nothing but ads? :p Nov 04 23:53:10 Or some type of Unlock ? Nov 04 23:53:11 believe so Nov 04 23:53:25 ad browser Nov 04 23:53:27 but that shouldnt curb your enthusiasm Nov 04 23:53:30 The Niche is: You want these effects, come see me! Nov 04 23:53:45 I'll get around to making an ad browser app someday Nov 04 23:53:55 Lol Shmooz. Nov 04 23:53:56 pBlack, you could also use the "unlocker" approach Nov 04 23:54:07 ravioli that's an option for me. :) Nov 04 23:55:40 ads can be off putting, but this is capitalism. and if your idea is dl worthy, get compensated Nov 04 23:57:58 whatitis I like that paradigm. Nov 04 23:58:46 has anyone been paid a lot by asking for donations because they made it ad free ? Nov 04 23:59:25 id suggest functionality before just putting an ad static on a layout. if running on a phone keep your limited space focused on your content, add ads out of the way. if tablet you can maximize your apps function&still have room for ads Nov 04 23:59:57 define "a lot" Nov 05 00:00:26 enought to pay rent Nov 05 00:00:45 I made 20 bucks Nov 05 00:01:21 doh! Nov 05 00:01:21 In Donations? Nov 05 00:01:25 That's not bad. :) Nov 05 00:01:41 Much better than pennies on the dollar with ads lol. Nov 05 00:01:53 you'd think people would appreciate you making the app ad free Nov 05 00:02:09 That's what the Toast.showMessage is for. :) Nov 05 00:02:10 pblack, but in long run, ads accumulate, donations... Nov 05 00:02:18 whatitis true. Nov 05 00:04:02 I think I might take the donation approach. :) Nov 05 00:04:16 dogecoin ! Nov 05 00:04:20 Because when people install, uninstall, and someone new installs, that's a "new" person! :) Nov 05 00:06:28 pBlack, creating apps with making money being the primary driver is always a bad idea btw Nov 05 00:06:45 ends in disasterous crappy apps every time Nov 05 00:06:52 pblack, they can "donate" by buying non ad version. dont go paypal Nov 05 00:06:53 pBlack: you can put a message in the Are you sure you want to exit? dialog , saying if you liked this app and appreciate it, you can donate at http://blabla.com Nov 05 00:07:35 http://dilbert.com/strips/comic/2011-02-12 Nov 05 00:07:50 and that was 2011 ! Nov 05 00:07:52 LOL Nov 05 00:08:12 ravilov, not true. apps are a business just like baking cakes Nov 05 00:08:21 probably earlier since those comics are done in advance Nov 05 00:08:33 whatitis: but you'll miss out when donald trump loves your app and wants to donate a million bucks Nov 05 00:08:51 that is donate, that is investing Nov 05 00:08:57 The only thing Donald Trump loves is himself. Nov 05 00:09:17 whatitis, maybe if you're a company and not an aspiring dev trying to make a breakthrough Nov 05 00:10:14 aspiring devs can be a business. just like a ma pa restaurant. Nov 05 00:10:31 uhhuhh Nov 05 00:10:44 missing the point there Nov 05 00:11:31 who? you said a developer in it for money would make shitty apps. that makes 0 sense. it all depends on the developer Nov 05 00:13:56 there is almost no barrier to entry to make an app. so there is lots of competition. and most ideas have been done. so you have to find a (rare) niche or distibguish yourself. anyway, it costs money to market and the price per user is going up. also users are installing less apps now than before, and spending less time per app. so i don't think it matters how good a dev you are unless you are very lucky (crazy lucky) or have a brilliant idea Nov 05 00:14:39 that was true in 2012, and moreso as time passes Nov 05 00:15:14 link g00s? Nov 05 00:16:06 most of the ecomomic trends i've seen show up on fiercedeveloper Nov 05 00:16:12 so those articles are there Nov 05 00:17:15 unfortunately, sometimes you have to pad for the reports depending on who wrote them (they just sumarize) Nov 05 00:17:22 *pay Nov 05 00:17:25 why can't i have a nexus 5 lollipop image yet Nov 05 00:17:41 you can have it, it's there if you want it Nov 05 00:17:43 nothing on google? Nov 05 00:18:05 bankai_au i mean one that i won't have to wipe when the official one comes out Nov 05 00:18:16 be more specific when you're complaining then :P Nov 05 00:20:38 hello can someone take a look at this screenshot, i'm trying to include a library from mavencentral, and this particular one doesn't seem to download anything other than a pgp signature Nov 05 00:21:22 http://i.imgur.com/MNq8CPD.png Nov 05 00:21:25 see above Nov 05 00:23:43 hephaestus_rg for shiggles, did you try what they said compile 'com.github.kikoso:SwipeableCards:1.0-RELEASE' Nov 05 00:23:51 see a doctor if suspecting symptoms of hephaestus incur Nov 05 00:24:43 yeah same thing Nov 05 00:25:43 g00s: seen this? http://www.ispot.tv/ad/7CrK/microsoft-surface-pro3-head-to-head-song-by-2ne1 the background song is a korean pop song called "i am the best" Nov 05 00:27:03 bankai_au heh, korean pop Nov 05 00:27:10 any ideas about the lib? Nov 05 00:27:20 is it failing some kind of decryption? Nov 05 00:28:08 weird. its readin the pom correctly, i see lombok in your list Nov 05 00:28:35 can someone sanity check for me and see if it works on their system? Nov 05 00:29:29 hephaestus_rg can you try putting @aar at the end? i don't think thats it Nov 05 00:30:05 com.github.kikoso:SwipeableCards:1.0-RELEASE@aar' Nov 05 00:30:57 hephaestus_rg this is what the pom says: aar.asc Nov 05 00:31:06 so i think thats wrong Nov 05 00:31:57 so the library maintainer did something incorrectly? Nov 05 00:32:06 did you try @aar ? Nov 05 00:32:14 yeah this time nothing showed up Nov 05 00:32:23 in that list where the .aar file was Nov 05 00:32:27 http://search.maven.org/#artifactdetails%7Ccom.github.kikoso%7CSwipeableCards%7C1.0-RELEASE%7Caar.asc Nov 05 00:32:40 i dunno Nov 05 00:33:24 ok so it's not in my list of external libraries Nov 05 00:33:29 but i can import it now Nov 05 00:33:31 weird Nov 05 00:58:55 Who's got an issue? Nov 05 01:02:18 enitiz, you were saying.... Nov 05 01:03:22 hi whatitis, what do you mean? Nov 05 01:05:08 :) just bored and hoping you had an issue Nov 05 01:06:29 i had hopes of making some app for myself :/ studies wont let me Nov 05 01:06:44 be a rebel Nov 05 01:07:26 rebels get a C :/ Nov 05 01:07:43 only if caught Nov 05 01:07:55 whats your app? Nov 05 01:08:41 nothing yet.. i wanted to make something that would have my scheduling stuff done easier than gcal Nov 05 01:08:57 I have an issue Nov 05 01:08:59 :P Nov 05 01:09:27 and a hackathon is coming up so i wanted to learn how to make this stuff :| but not getting any time :s Nov 05 01:09:29 enitiz, thats a start Nov 05 01:10:02 enitiz, I have the same problem and I work lol. I want to spend more time on side projects but work is consuming me :S Nov 05 01:10:06 Mug was gonna mention you, but expected issue&that youd express it by yourself :) Nov 05 01:11:24 Mugwump101, maybe Christmas will be good time for us Nov 05 01:11:40 Thank you whatitis, let me put some code in a pastebin. This is rather strange issue. But the issue is that only the textview on the first page of my viewpager doesn't get updated. The rest of the views in my viewpager get the textview updated just fine Nov 05 01:12:04 are you using onPageChangedListener? Nov 05 01:12:22 it doesn't get called the first time if the start index = 0 Nov 05 01:12:52 oh wait why? :O Nov 05 01:13:23 cuz? lol Nov 05 01:13:37 just call onPageChanged(0) in your onCreate() or whatever Nov 05 01:14:37 hmm let me look through it again Nov 05 01:15:47 I don't have an onPageChanged method, I don't think Nov 05 01:15:58 but an onPageChangeListener Nov 05 01:16:29 with onPageSelected, onPageScrollStateChanged, and onPageScrolled Nov 05 01:16:53 onPageSelected(0) to call? Nov 05 01:29:03 Looks like I have a similar issue like this person: http://stackoverflow.com/questions/16074058/onpageselected-doesnt-work-for-first-page Nov 05 01:48:04 is there any way to make an android app but using something else that java.. like c++ or ruby or python? Nov 05 01:48:05 Calling onPageSelected(0) might trigger a null pointer though Nov 05 01:48:22 yes tehre enitiz Nov 05 01:48:25 *there is Nov 05 01:48:41 There is Xamarin (C# for android) Nov 05 01:49:32 great Nov 05 01:49:42 for what purpose? Nov 05 01:50:01 anything specific for c or ruby? Nov 05 01:50:39 enitiz, question is to you, why not java Nov 05 01:50:42 i don't prefer working in java :/ Nov 05 01:51:21 idk.. seems like too much classes to learn Nov 05 01:51:25 well...if no real reasoning, then youll fail Nov 05 01:52:25 actually.. my question is.. will it be okay use java? i need to learn quick and already comfy in c and equivalent language Nov 05 01:52:32 android is java, minus ndk which is mostly moot Nov 05 01:52:56 *sigh* Nov 05 01:53:21 if these are your questions you dont know android Nov 05 01:53:44 now my concern is that java as a language is okay.. but android specific details.. app lifecycle etc? what about these? Nov 05 01:54:07 what about them? what is your app Nov 05 01:55:13 nothing yet Nov 05 01:55:32 i just have an idea Nov 05 01:56:53 thing is.. i think i am not that good with java Nov 05 01:57:17 and would have to invest time Nov 05 01:57:43 yeah but that's true about any language Nov 05 01:57:46 dont have to be 100% bout java. just realize that most android is a % of java Nov 05 01:57:49 including if you were to program in C# Nov 05 01:57:55 because C# is very similar to Java Nov 05 01:58:06 and not really similar to C as you think Nov 05 01:58:11 enitiz: Get the Big Nerd Ranch Android book, and start cranking through the exercises. Nov 05 01:58:55 thanks improvnerd Nov 05 01:59:01 or dont, if you are worth your weight with coding, you can figure it out without having to fully know a language Nov 05 01:59:19 don't be afraid to write down questions you have too Nov 05 01:59:22 whatitis: I don't believe you. Nov 05 01:59:26 about the material or how to do certain things Nov 05 01:59:36 dont believe what? Nov 05 01:59:47 enitiz: Questions is what this channel is all about. Nov 05 02:00:08 you dont need to know all if you only use t% Nov 05 02:00:13 5% Nov 05 02:00:47 thanks for these advice Nov 05 02:02:01 i keep visiting here often, just need to crank out some bolts before posting questions.. although not really had a chance because studies Nov 05 02:02:09 but to use 5% you need basic OOP knowledge Nov 05 02:03:00 and understand mobile memory vs desktop Nov 05 02:03:01 i know OOP.. but how much? Nov 05 02:03:27 will the undergrad level work? encapsulation polymorphism? Nov 05 02:04:00 hi guys, i have a question in terms of implementation. I have a string / list of items that I need to send over to a web app via JSON post. I would like to store this string to the anrdoid device should the sending fail. what is the best way to go about storing the string. This string will then be displayed back to the user to ask them if they want to resend it, at a later time Nov 05 02:04:05 I have 0 college/university experience. but I understand androjd Nov 05 02:05:28 onats, keep that string obviously in heap or write to disk Nov 05 02:05:47 whatitis: what should i look at on how to write to disk? no need to go sqlite? Nov 05 02:05:50 alright.. that is convincing whatitis Nov 05 02:06:04 writing to disk, temporary files are stored in the app Nov 05 02:06:08 app’s sandbox right? Nov 05 02:06:20 sandbox is different Nov 05 02:06:38 i'll get the book and try out some exercise, would surely get some questions here Nov 05 02:06:47 as such string &list are different Nov 05 02:07:00 btw is mac a good for doing android work? Nov 05 02:07:21 or should i use linux.. or does it even matter? Nov 05 02:07:39 enitiz, it doesnt matter the dev space as much as the understanding Nov 05 02:07:48 it doesnt matter Nov 05 02:08:13 alright :thumbsup: Nov 05 02:08:18 the tools may matter Nov 05 02:08:33 if they work on such and such Nov 05 02:10:02 main thing to realize is this is androids java, figure it out Nov 05 02:10:19 alright.. i ask this because i am buying a new laptop and just wanted to confirm if all the tools work in osx Nov 05 02:10:50 hmm Nov 05 02:11:05 tools work on such just entails do you know what you are doing Nov 05 02:11:17 alright whatitis, i'll try something this weekend Nov 05 02:11:41 gotta catch a bus now :'> it was nice talking to you guys Nov 05 02:12:04 i'll come on this channel often now that i have some encouragement Nov 05 02:12:09 bye Nov 05 02:12:25 you have 3-4 entries. jdk, sdk, ide& possibly X Nov 05 02:13:14 enitiz, dont expect encouragement, expect hate. but try to understand the flow Nov 05 02:14:48 I just noticed this: int JELLY_BEAN_MR2 July 2013: Android 4.3, the revenge of the beans. Nov 05 02:15:33 whatitis: enitiz, dont expect encouragement, expect hate ... wtf ? Nov 05 02:16:40 this channel is 99% hating, hard to get a real non discoraged response Nov 05 02:17:43 its just human nature to complain, and not get a hey I tried this, it failed but I managed ghis Nov 05 02:17:45 this Nov 05 02:18:15 so tempted to try the L email app on kitkat Nov 05 02:18:27 but it'll probably just crash and burn Nov 05 02:18:44 ive been here for years and never complained. but most just complain correct? Nov 05 02:18:56 since all the framework themes and styles would be missing 😣 Nov 05 02:19:47 pfn thanks for exacting my situation Nov 05 02:20:17 ? Nov 05 02:20:28 the negative Nov 05 02:20:33 I've built the L email app, but don't want to install it Nov 05 02:20:51 since I don't want to fuck up my current email setup Nov 05 02:21:08 too lazy to revert my aosp to rebuild the 4.4 version Nov 05 02:21:11 but expect fail Nov 05 02:22:52 get it g00s? Nov 05 02:24:14 There can be help, but most just hate what they dont understand Nov 05 02:24:39 Okay, so I span a hypothesis about this "FragmentManager doesn't remove Fragments on screen rotation" thing. Nov 05 02:25:04 This could be related to how the system retains View data (such as an EditText's text and position). Nov 05 02:25:37 tactical, if saved bleh, check for it, then check for your fragment, if null... Nov 05 02:27:01 are you logging lifecycle events? Nov 05 02:28:38 I always use retain, but if not id check if config change with savedInstanceStae then check fragmentmanager for my fragment, then do whatever Nov 05 02:31:50 Yeah. Nov 05 02:31:53 This is so confusing. Sigh. Nov 05 02:32:07 why? Nov 05 02:32:15 If I show a DialogFragment and rotate my screen, and then do findFragmentByTag in the activity, it doesn't find it. Nov 05 02:32:21 Why is a DialogFragment different here? Nov 05 02:32:36 s/the activity/Activity.onCreate/ Nov 05 02:32:59 cause it's wrapped in a dialog Nov 05 02:33:22 why are you needing that abstraction? and plus mainly if docs aren't expressing it, can log yourself Nov 05 02:33:30 hm, shouldn't the dialog be wrapped in a fragment :P Nov 05 02:33:35 I'm just trying to understand how Fragments work under the hood. Nov 05 02:33:40 Yes, g00s. lol Nov 05 02:33:56 no, cause is android not view/window centric ? Nov 05 02:33:56 Even though a DialogFragment wraps a Dialog, it's still a fragment that's added to the FragmentManager. Nov 05 02:34:00 but your are adding an abstraction with it Nov 05 02:34:27 dialogfragment wraps fragment Nov 05 02:34:35 not dialog Nov 05 02:34:37 I'm trying to understand why, when I add a fragment to an activity's fragment manager, it persists on screen rotation, while adding a DialogFragment doesn't seem to do the same. Nov 05 02:34:50 whatitis: It extends Fragment but wraps Dialog. Nov 05 02:35:01 no Nov 05 02:35:11 ya Nov 05 02:35:21 at the end of the day it's a dialog :) Nov 05 02:35:30 it wraps fragment and creates a onCreateView for dialog Nov 05 02:35:36 a fragment returns a view not bound to a window Nov 05 02:35:56 pfn: I don't suppose you have any ideas here? I'm trying to figure out exactly why (non-retained) Fragments stay in the FragmentManager on screen rotation. (In other words, why did the Android people make that decision.) Nov 05 02:35:59 fragment dialog has the dialog window stuff at the root I think… just look at src Nov 05 02:36:30 TacticalJoke who cares though, use it or dont, or look at src Nov 05 02:36:34 fragment manager stays the life of activity Nov 05 02:36:37 I've looked at the source. Nov 05 02:36:38 no need for extended brain dumps :) Nov 05 02:36:41 I care because I wanna understand it all. Nov 05 02:36:55 fragment lolcycle claims next victim Nov 05 02:36:59 I'm never happy just knowing superficial stuff. I have to know everything deep down. Nov 05 02:37:01 x.x Nov 05 02:37:02 g00s: lol Nov 05 02:37:50 if on config, check fragmentmanager for fragment based on id or tag, if null... Nov 05 02:37:57 I know. Nov 05 02:37:58 nope, I use fragments as little as I can, Nov 05 02:37:58 I'm doing that. Nov 05 02:38:02 K. Nov 05 02:39:27 then on config are your fragments null? plus are they inflated from xml or added to container? I have like 9 fragments in my activity that are perfect on config change Nov 05 02:39:53 new andorid studio update :O Nov 05 02:39:55 whatitis I think you are attempting to answer a question he has not asked Nov 05 02:39:57 It's null only the first time. Nov 05 02:40:24 I maybe :) I try to cut bs, and get to root Nov 05 02:40:27 Oh, gawd, I'm gonna have to spend hours reading the Android Fragment code. Nov 05 02:42:46 TacticalJoke: have fun Nov 05 02:43:41 i can't test this -- maybe somebody knows : if i do a BT discovery scan on a version of android < API 18, would the device show up in the results ? Nov 05 02:43:54 if its BLE ? Nov 05 02:44:02 smart, not dual mode Nov 05 02:45:14 g00s give some code to test and others can help, maybe Nov 05 02:45:16 never done that, sorry Nov 05 02:47:17 Hello, I'm trying to find where I'd find the source for com.android.mms, but a specific version. 5.0-1519572 Nov 05 02:47:27 How do you search for a particular version's source? Nov 05 02:47:54 is 5.0 src released? Nov 05 02:48:06 I thought I heard it was yesterday on some news Nov 05 02:48:14 if so, go there Nov 05 02:48:28 it was Nov 05 02:48:51 then go there Nov 05 02:48:56 Which is weird, cause the problem and version I have, predates hacing access to the source Nov 05 02:49:16 http://www.xda-developers.com/android/android-5-0-lollipop-source-complete/ Nov 05 02:49:36 https://android.googlesource.com/device/lge/hammerhead/ Nov 05 02:49:43 Found it, for Nexus 5 (hammerhead) Nov 05 02:49:44 xda? doesnt seem legit Nov 05 02:49:54 XDA isn't legit!? Nov 05 02:50:06 they even got command to download sources from repo... Nov 05 02:50:18 yea, compared to android Nov 05 02:50:33 xda is just a resource to xda Nov 05 02:51:32 hammerhead is device specific? Nov 05 02:51:50 Yep, that's the codename for the GSM Nexus 5 Nov 05 02:51:54 Which is what I got Nov 05 02:52:13 CyberstormFox what are you wanting from mms app ? Nov 05 02:52:13 exactly, not lollipop Nov 05 02:52:21 Wait...that one's last commit is 2 weeks ago Nov 05 02:52:57 Okay, I've kinda figured it out. Nov 05 02:53:05 DialogFragments *are* retained in the FragmentManager. Nov 05 02:53:23 I want to study the source code and figure out why this keeps happening: https://www.dropbox.com/s/d6d1i146mdis77a/_20141104_214449.JPG?dl=0 Nov 05 02:53:24 I thought they weren't because I was doing the Log.i thing before "super.onCreate" in Activity.onCreate. Oops. Nov 05 02:53:38 In other news, that code is why we can't have nice things. :[ Nov 05 02:53:44 CyberstormFox loads of reasons/possible Nov 05 02:53:46 shoulda figured out DialogFragment is just an extension of fragment Nov 05 02:54:00 I did, whatitis. Hence my surprise when it seemed that it wasn't being retained. Nov 05 02:54:02 And no, there's no obvious unsent message, and a study of the SQLite database, no longer has anything in the pending_msgs table Nov 05 02:54:04 network error, network state switching, dns problem, proxy problem, mmsc down Nov 05 02:54:27 It was only while looking at FragmentActivity.onCreate that I thought about checking that I was doing stuff *after* super.onCreate in my code. Nov 05 02:54:54 In real code, of course, I always call super.onCreate first. But in this case it was a throwaway Log.i statement. :) Nov 05 02:54:57 fragmentactivity is a support of activity Nov 05 02:55:42 CyberstormFox android L ? Nov 05 02:56:14 as in the preview not the release ? Nov 05 02:56:30 I'm using the first one that got named Lollipop, the 3rd preview Nov 05 02:56:41 Okay, so my best hypothesis so far is that the reason Activity saves/restores its FragmentManager instance is that this is the best way to save/restore View data such as the result of EditText.getText(). Nov 05 02:56:46 well dont both doing anything until release Nov 05 02:56:48 no point Nov 05 02:57:20 LPX13D it seemed to be called Nov 05 02:57:27 tactical it only saves it if the activity is destroyed Nov 05 02:57:35 isnt Nov 05 02:57:35 Right. Nov 05 02:57:51 thats in the docs Nov 05 02:58:00 The previous ones, who's acronym included LPV, called it L, but this last one, was after the name release, so it called it Lollipop Nov 05 02:58:04 It saves when its FragmentManager data when it's going down to be recreated. Nov 05 02:58:07 so whats the question Nov 05 02:58:09 It does it in onSaveInstanceState. Nov 05 02:58:16 -when Nov 05 02:58:45 what is the real question? Nov 05 02:58:59 I stated the real question ages ago. :) Nov 05 02:59:14 sorry it got lost Nov 05 02:59:19 "Why did the Android designers choose to save/restore an Activity's FragmentManager on screen rotation?" Nov 05 02:59:57 cause it's bound to a context ? Nov 05 02:59:58 My best answer so far is that this facilitates the whole "save all the View data" thing. **** ENDING LOGGING AT Wed Nov 05 03:00:00 2014