**** BEGIN LOGGING AT Fri Sep 23 02:59:58 2016 Sep 23 03:16:37 _genuser_: I fixed it Sep 23 03:16:59 s73v3r: I fixed it! Sep 23 03:20:05 problem was layout wasn't being inflated properly Sep 23 03:28:17 so this guy submitted a bug https://code.google.com/p/android/issues/detail?id=223459 Sep 23 03:28:40 for GMS ... but every time i have done that, somebody closes it with 'this is AOSP, get outta here' Sep 23 03:30:10 use a different email address ;) Sep 23 03:31:26 heh - aosp is only for .. aosp :) Sep 23 03:31:46 is there a play services tracker now ? because last few times i had to ask for help in google groups Sep 23 03:31:52 its really unprofessional Sep 23 03:32:17 and then you just have to hope somebody sees it, there is no status updates, etc Sep 23 03:48:33 didn't know this existed .. https://plus.google.com/collection/sLR0p Sep 23 03:48:44 finding all these things is like an easter egg hunt Sep 23 03:56:24 "running a Java program in JVM in a Linux VM in a container on AWS is a very inefficient way of generating waste heat ... I could save a lot of time and effort by cutting out the middleman and just setting money on fire." Sep 23 03:57:54 oh man this is funny too "a friend observed that startups are an extremely inefficient way of transferring wealth from venture capitalists to bay-area landlords; there’s a disruptive opportunity here to shortcut that process and just give venture capital directly to the SoCal rentier class for a nominal service fee. I suggested he call his startup “olygarchr”, or maybe “plutocrysii”" Sep 23 04:23:12 g00s, where are these quotes from? Sep 23 04:39:46 surf2b1 http://exple.tive.org/blarg/2016/09/22/falsehoods-programmers-believe-about-economics/ Sep 23 04:43:33 Omg, the cheeky, cheeky bastards at Google force you to run the bundled OpenJDK by default Sep 23 04:43:54 Forcing Oracle's JDK seems to make things smoother for me Sep 23 04:44:40 *as of 2.2 Sep 23 04:48:47 I prefer the simplicity. Sep 23 04:51:40 Hello Sep 23 04:51:48 Help! I call imputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED,0 ); inside onResume() but the keyboard appears only when the device is in landscape mode. Why? Sep 23 04:54:17 Arancio: Does the same happen if you call that method from somewhere other than a life-cycle method? Sep 23 04:55:44 TacticalJoke: I never called it from anywhere else. Should I attempt? Ok, I'll place a button and call it in the click handler. Sep 23 04:56:12 "Politics is an entirely unrelated field." 😜 Sep 23 04:57:35 ans that's why we don't let those guys into the Fed Sep 23 04:57:50 reserve Sep 23 05:07:49 Hello Android developers :) Sep 23 05:08:10 abhishekcs10_: hello!!! ! !!!! !! Welcome!! !!! ! Sep 23 05:08:59 TacticalJoke: yeah, for some reason if I call that method in a click handler it always work. Why is that? Sep 23 05:09:18 Hmm, not sure. It was just a hunch. Sep 23 05:09:39 TacticalJoke: well, thanks you! Sep 23 05:09:45 I think the Activity life-cycle messes with stuff like keyboard visibility. Sep 23 05:10:14 I have developed a custom IME (soft keyboard) using online tutorials .... I want to add gesture typing feature to it..but have no idea from where to start..?? Sep 23 05:11:00 I have read about gesture handling but as ime is a service I can't get the touch event input Sep 23 05:11:13 abhishekcs10_: that's cool, I think I will have to make a custom soft keyboard too Sep 23 05:11:28 So how does keyboard like Swype work..? Sep 23 05:11:37 abhishekcs10_: or customize the default soft keyboard Sep 23 05:12:31 keyboard visibility is usually tied to textView focus Sep 23 05:14:30 abhishekcs10_: are you infringing https://www.google.com/patents/US8667414 !!! ! !! Sep 23 05:16:55 Arancio:no I don't.. but then how Swype keyboard have this feature..? Sep 23 05:17:11 abhishekcs10_: have you tried looking into someone else's code? Sep 23 05:17:34 abhishekcs10_: are you able to detect clicks at all at the moment? Sep 23 05:18:44 Arancio: Yes ..there is LatinIME available on Google developers site .. Sep 23 05:19:23 how does it handle user input? Sep 23 05:19:44 Don't you have a View? Set a touch listener or override onTouchEvent Sep 23 05:20:58 Arancio: Sorry, I didn't understand the LatinIME well ..? Sep 23 05:21:43 **/error - no '?' Sep 23 05:21:54 SimonVT is right. Sep 23 05:22:06 There is a KeyboardView in a XML file Sep 23 05:22:17 you should find a way to retrieve it Sep 23 05:22:38 and set listener to it or better Sep 23 05:22:52 subclass Keyboard view, overriding onTouchEvent Sep 23 05:23:09 and then use that subclass of yours instead of KeyboardView in the XML file Sep 23 05:23:32 look at input.xml Sep 23 05:23:52 See android.inputmethodservice.KeyboardView ? Sep 23 05:24:48 make a class AbhishekcsKeyboardView extends android.inputmethodservice.KeyboardView and then use AbhishekcsKeyboardView in input.xml Sep 23 05:25:43 SimonVT , Arancio: thank you .. let me try it .. :) Sep 23 05:30:49 Idiosyncratic what platform are you on ? Sep 23 05:36:46 g00s: linux Sep 23 05:36:59 g00s: linux Sep 23 05:37:08 I told it first Sep 23 05:37:16 Idiosyncratic ok. i think its mainly there for mac people Sep 23 05:37:24 linux <3 Sep 23 05:37:33 g00s: they don't know how to install Java? Sep 23 05:37:41 linux >( Sep 23 05:38:16 Idiosyncratic no, oracle's jre doesn't have subpixel AA Sep 23 05:38:37 g00s: but meh. I just wish they would offer the option to choose which jdk you use. Sep 23 05:38:41 basically oracle doesn't give a shit about swing any more, so they don't fix anything Sep 23 05:38:59 Idiosyncratic you just edit a file. linux user should be smart enough Sep 23 05:39:32 g00s: I only realized that I was running it with OpenJDK when I ran it from the command line and the version popped up Sep 23 05:39:55 Idiosyncratic gotta follow the release notes for intellij Sep 23 05:40:18 google just sprinkles some stuff on top. you won't learn everything from google's side Sep 23 05:40:23 g00s: afaik, intellij doesn't recommend using openjdk. At least not on their own products. Sep 23 05:40:35 abhishekcs10_: if you don't want to subclass you can set a touch handler in onCreateInputView() in the keyboard view in the method onCreateInputView() Sep 23 05:40:45 they bundle it Sep 23 05:40:47 g00s: PhpStorm, PyCharm and all of that Sep 23 05:40:47 lol Sep 23 05:40:59 google didn't decide to bundle it Sep 23 05:41:14 i think you have some reading to do ;) Sep 23 05:41:21 g00s: what? When did they change this? Sep 23 05:41:37 Idiosyncratic maybe you should ditch linux and get a mac :D Sep 23 05:41:58 g00s: it must be recently because I'm sure that intellij products warned me not to use openjdk Sep 23 05:42:16 since 2016.1 i believe Sep 23 05:42:58 Idiosyncratic just read their release notes Sep 23 05:43:05 its not a straight up openJdk Sep 23 05:44:03 g00s: how can they go from "Don't use OpenJDK because it has performance issues" to "Shut up, bitch, and take this bundled OpenJDK" X_X Sep 23 05:44:41 is it possible to colour statusbar to toolbar color Sep 23 05:44:49 without hacks Sep 23 05:45:25 is it the app theme what control statusbar color? Sep 23 05:46:51 OpenJDK is actually recommended for certain situations? Sep 23 05:47:09 Also, it's changed a bit in last 5 years. :) Sep 23 05:48:40 squ: https://developer.android.com/training/material/theme.html#StatusBar Sep 23 05:49:51 Sep 23 05:49:53 is ignored Sep 23 05:50:07 it is set to black, but statusbar is not black Sep 23 05:50:24 squ: I don't think you can do it before API 21. Sep 23 05:50:27 squ: if I change colorPrimaryDark it affects the status bar color in my project Sep 23 05:50:44 Arancio: You're probably changing `android:colorPrimaryDark`. Sep 23 05:51:01 TacticalJoke: it is not in the support package? Sep 23 05:51:03 TacticalJoke: yes. And good morning Sep 23 05:52:30 squ: I don't believe so. Sep 23 05:52:43 squ: http://stackoverflow.com/a/26623245 Sep 23 05:53:17 okey, device problem Sep 23 05:53:21 Maybe you could take the easy route and `minSdkVersion 21` everything. Sep 23 05:53:51 no, just got this “new” device, which is old broken phone :) Sep 23 05:54:07 and the statusbar kinda flashes to black toolbar Sep 23 05:54:41 4.1.2 Sep 23 05:58:44 squ, pre-L https://github.com/jgilfelt/SystemBarTint Sep 23 05:59:25 no thank you :) Sep 23 06:04:58 guys is it possible to mirror only background drawable image in xml layout? without mirroring other elements in that view? Sep 23 06:06:02 speed-: mirror? Sep 23 06:06:34 yea I want to mirror it over X, you know scaleX -1 Sep 23 06:06:43 but only background not elements in it Sep 23 06:06:50 if it's by any chance possible Sep 23 06:07:25 why don't you override the set background method, mirror the drawable and pass it to the base method? Sep 23 06:09:36 well I was just wondering if it's possible to do it directly in layout xml somehow Sep 23 06:10:46 speed-: gradient background? Sep 23 06:13:46 or layers maybe Sep 23 06:19:27 In the Google Docs application on top of the soft keyboard you have additional icons with other functions. Are those icons added to the input keyboard? Sep 23 06:25:08 squ, it's image background, nevermind I'll improvise :) Sep 23 06:26:28 look at this page Sep 23 06:26:29 https://developer.android.com/guide/topics/resources/drawable-resource.html#LayerList Sep 23 06:26:48 bitmap has mirror option Sep 23 06:37:39 Is firebase analytics meant to replace GA? or should they be considered different tool sets? Sep 23 06:37:42 hey guys quick question Sep 23 06:37:59 boomber: what question? Sep 23 06:38:00 I created a customer view (two textviews) and am using layout_weight to make one align to the left and one to the right Sep 23 06:38:14 it appears fine in the preview, but when I run the app with these views in a recyclerview they are right up against each other Sep 23 06:38:25 custom* Sep 23 06:39:18 http://pastebin.com/ss0uEYrP Sep 23 06:39:50 cmendes0101: looks like it, they offer ‘tag manager’ to link FA to GA Sep 23 06:40:33 boomber: what is the weight of second item Sep 23 06:40:47 squ: i didnt define a weight for it Sep 23 06:41:03 what do you expect and why you did so Sep 23 06:41:23 I have horizontal items in a recylerview, the paste I posted is for each individual item Sep 23 06:41:31 I want the first textview to be aligned to left, and the second to the right Sep 23 06:41:38 and the preview in android studio shows the proper behavior Sep 23 06:41:51 but when I add these to a recyclerview, they are both aligned left next to each other Sep 23 06:42:29 I can give screenshots if itll help Sep 23 06:42:31 Use a FrameLayout or RelativeLayout. Sounds like your LinearLayout is behaving as intended Sep 23 06:43:22 Or margins if you just want some space between them Sep 23 06:43:56 http://i.imgur.com/qIRQU7h.png Sep 23 06:44:05 the emulator is on the left, preview on the right Sep 23 06:44:37 cool Sep 23 06:44:47 is my custom view class perhaps not refreshing after I set the texts? Sep 23 06:45:08 Forgot to pass parent when inflating? Sep 23 06:45:29 http://pastebin.com/35SPYHPi Sep 23 06:46:04 is something not right there? Sep 23 06:46:18 Set RecyclerView as wrap_content? Sep 23 06:47:00 oh shoot Sep 23 06:47:27 setting the recycler view to wrap_content is breaking it :S Sep 23 06:47:34 Pro tip is to use hierarchy viewer for debugging stuff like this, it shows you how everything is measured and laid out Sep 23 06:48:08 why would my list items be disappearing when I switch the recyclerview to wrap_content? Sep 23 06:48:16 like when I make that change I don't see them anymroe Sep 23 06:48:48 No idea Sep 23 06:49:08 http://pastebin.com/g6mj5kHP Sep 23 06:51:05 I think ima be lazy and just switch to a relative layout :S Sep 23 06:52:44 what the heck Sep 23 06:52:53 oh i know why Sep 23 06:52:58 still had layout_weight as 0dp xd Sep 23 06:55:56 hm Sep 23 06:56:07 any idea why I can't use butterknife @BindView on one textview, but not another? Sep 23 06:57:19 omg i must be too tired for this, had a random semicolon >.< Sep 23 06:57:24 if i'm reading an article in an app and then click on a hyperlink within it then a new page loads but the main share button at the top doesn't reflect the url for new page Sep 23 06:57:33 how can the app developer change it ? Sep 23 06:57:39 the app's portea healthcare app Sep 23 06:57:58 you can verify this in healthfeed Sep 23 06:57:59 area Sep 23 06:59:02 Mavericks: are you the app developer? Sep 23 06:59:26 Arancio: no I would like to suggest it but I'm not sure if it is that easy Sep 23 06:59:41 Mavericks: why do you care if it's easy or not? Sep 23 07:00:17 Arancio: may be that's why the share link for new page is not provided Sep 23 07:00:47 Mavericks: suppose someone gives you an explanation. Would you understand it? Sep 23 07:00:54 Arancio: yes :) Sep 23 07:02:11 Arancio: or a simple url or document that points to how it's done. I will read it or share that with app developer to discuss of any issue Sep 23 07:02:57 Mavericks: https://developer.android.com/ Sep 23 07:03:27 Mavericks: are you an Android app developer? Sep 23 07:04:09 Mavericks... web view in an Android skin? Sep 23 07:05:41 Arancio: No i'm not an android app developer. I wanted to read the docs to figure out but asked here to save time Sep 23 07:05:49 capella-5x: ok will take a look Sep 23 07:07:16 k Sep 23 07:07:43 Mavericks: sorry, I don't understand what you are doing. It look like a waste of time but I hope I'm wrong. Sorry I can't help you Sep 23 07:07:56 Mavericks: maybe I misunderstood the situation Sep 23 07:10:22 Arancio: that link is helpful. thank you. i will look for web view and see if share link url value can be modified Sep 23 07:12:52 til Sep 23 07:13:17 How is the soft keyboard of Google Docs made? Sep 23 07:13:44 There is a row of icons that remains on top of the keyboard when the keyboard pops up Sep 23 07:14:00 Is that a normal soft keyboard? Sep 23 07:14:04 or something else? Sep 23 07:42:20 * capella-5x can't visualize / no personal familiarity Sep 23 07:49:14 capella-5x: you may have aphantasia https://en.wikipedia.org/wiki/Aphantasia Sep 23 07:50:47 you suggest premeditation? clairvoyance? Sep 23 07:52:11 I was speaking to the question posed by arancio Sep 23 07:54:25 Hi, just found a broken link in the NDK documentation. Where am I supposed to report this? Sep 23 07:54:50 out of date docs??? Sep 23 07:56:52 capella-5x: what do you mean? Was my question unclear? Sep 23 07:57:10 orzen: if you raise a bug, it'll get fixed sooner or later, probably - b.android.com Sep 23 07:57:19 no arancio, I have some interest in that area Sep 23 07:57:33 Leeds: thank you! Sep 23 07:57:59 capella-5x: sorry but I can't understand what you are saying. You talk strangely today. Sep 23 07:58:40 I do all the time ☺️ I try to dumb it down Sep 23 07:59:09 Ashiren: aphantasia? Lack of a mind's eye? This either sounds like either psychosis, hypochondria or just wanting to appear edgy. Sep 23 07:59:23 I was interested in what you were wondering also Sep 23 07:59:44 but couldn't answer Sep 23 07:59:51 ok. thanks anyway Sep 23 08:00:02 capella-5x: are you ok today? I'm worried Sep 23 08:00:03 sure Sep 23 08:00:49 and that's where I think /you/ talk funny 😉 Sep 23 08:01:39 Idiosyncratic: capella-5x it was just answer to: * capella-5x can't visualize Sep 23 08:01:53 Idiosyncratic: hi Sep 23 08:03:06 and really i read article about it. people having aphantasia function normally, they can read and know whats going on, but apparetnly their mind's eye cant visualize Sep 23 08:04:05 How can you not visualize imagery? Does that mean that in order for him to understand that an apple has a side that he can't see, he'll go into a recursive loop of rotating around the apple or something? Sep 23 08:04:50 how would i know Sep 23 08:05:03 Ashiren: the guy's a hypochondriac and nothing else Sep 23 08:05:34 One can understand something in abstract but could be unable to visualize the image of the beach where he was the day before Sep 23 08:06:13 Or one can understand the description of a scene in a book and be unable to visualize their own rendering of it Sep 23 08:06:29 Arancio: sounds unlikely to me Sep 23 08:07:08 Idiosyncratic: it doesn't sound unlikely to me Sep 23 08:07:52 Idiosyncratic: mathematicians understand and use higher-dimensional geometric figures but cannot visualize them Sep 23 08:10:28 Well, time to make non-profits about this affliction and rake in that donation money! Sep 23 08:17:28 Let's all defeat aphantasia by spreading awareness about aphantasia! Sep 23 08:18:30 Wearing the aphantasia ribbon and giving 1% of your salary to our foundation will give you a smug sense of self-satisfaction and good karma! Sep 23 08:21:02 Our CEOs are telling us that our corporate sponsors in need of some publicity will gladly help us make a march of solidarity for people with aphantasia! Sep 23 08:22:03 And for strange reason, the CEOs are getting more and more Lamborginies in their garages Sep 23 08:22:09 *for some strange reason Sep 23 08:29:56 Idiosyncratic its called moneyz Sep 23 08:30:11 nothin strange aboot it Sep 23 08:32:46 raoul11: the people making profit this way are just sick Sep 23 08:33:42 what is the .Fabric/com.crashlytics.sdk.android.crashlytics-core folder about ? it's over 100MB in several apps; killing my disk space; deleting it is pretty hard; who generates it ? is there an easy way to prevent it from existing ? Sep 23 08:34:06 raoul11: see ads on TV about how there's this single kid that needs like 50k euros in order to get better and you need to help him by sending a text message, but the thing is that those 50k euros would go to improving Romanian hospitals, the odds of that kid having a disease in the first place would be lowered not just for him, but for a whole lot more kids Sep 23 08:34:12 you wouldng trade places Idiosyncratic ? Sep 23 08:34:30 raoul11: I'm a socialist; I don't believe in money Sep 23 08:34:42 ^___^ Sep 23 08:34:46 Idiosyncratic: how much money will go to phone operators ? Sep 23 08:35:18 *is that *IF* those 50k euros would go Sep 23 08:39:36 hi, i updated to AS 2.2 any idea how to get rid of that Run console popping up? Sep 23 08:39:42 closing doesnt seem to help - it comes back Sep 23 08:40:38 raoul11: you're buying a commodity when you send that 2 euro SMS, not effectively and rationally helping society. The commodity is self-satisfied smugness. Sep 23 08:41:30 Idiosyncratic /: Sep 23 08:43:48 #android-dev-socialism Sep 23 08:44:00 :D Sep 23 08:44:31 im trying to find the minimum number in an ArrayList , but this method always returns 0 . code -->https://gist.github.com/codeboy101/51ccb1c34bec3d63086176996e66a796 Sep 23 08:44:40 all this talk bout AS, got mine hanged Sep 23 08:46:59 raoul11: tried switching back to using Oracle's JDK? Sep 23 08:47:23 first time this happend Sep 23 08:47:25 so no Sep 23 08:47:26 raoul11: I'm not sure, but I think that AS is running smoother for me this way Sep 23 08:48:35 its been pretty ok for me Sep 23 08:48:40 not sure why its buggin Sep 23 08:50:06 superKiller: yesterday I guided you into debugging your code and you quit without even saying "Thanks" Sep 23 08:50:29 Arancio: thanks Sep 23 08:50:36 lol Sep 23 08:50:38 superKiller: too late Sep 23 08:51:00 superKiller: she's going to divorce you for this, bro Sep 23 08:51:34 superKiller: bring Arancio some flowers and chocolate and try changing her mind :D Sep 23 08:52:01 Arancio: erm , no thanks then Sep 23 08:53:42 gr8 Idiosyncratic, u jinxed it. now its buggin trying to unzip an update Sep 23 08:53:49 Arancio: joking, bro :P Sep 23 08:54:16 raoul11: my Romanian gypsy magic worked, then Sep 23 08:54:28 ROMA Sep 23 08:54:36 raoul11: :D Sep 23 08:58:07 raoul11: though, they want to be called țigani. None of this roma bullshit. Sep 23 08:58:17 At least the Romanian ones Sep 23 08:59:09 tomato tomato Sep 23 09:01:30 Though, basic manners say that you that you shouldn't call people by their ethnicity. Like "Hello, you jap/chink/țigan/hillbilly/kraut/tommy". Sep 23 09:01:33 Why there is no device chrome anymore in the Android Studio 2.2 Designer? Sep 23 09:05:20 Well, gtg Sep 23 09:07:44 Hi everyone. does anyone know if i can simulate a camera on android? Sep 23 09:07:52 In what way? Sep 23 09:08:14 I want to show an image simulated into the webcam Sep 23 09:08:27 For example in the default camera app of android Sep 23 09:09:03 styler2go: I guess you should hack the camera drivers and install your own version of Android Sep 23 09:09:11 on your device Sep 23 09:09:13 styler2go, not sure I understand. Sep 23 09:09:24 You want to plug in a webcam into your phone and use that as a camera? Sep 23 09:09:50 No, i want to select a video file and simulate a webcam with that file Sep 23 09:10:00 you want to stimulate a webcam? Sep 23 09:10:05 yes Sep 23 09:10:10 styler2go: you usage of the word "webcam" is confusing Sep 23 09:10:14 styler2go: i am not sure that's possible at all Sep 23 09:10:28 well, it's a camera Sep 23 09:10:29 styler2go: depends which app will read the video Sep 23 09:11:06 styler2go: a webcam is a specific kind of a webcam Sep 23 09:11:12 styler2go: a webcam is a specific kind of a camera Sep 23 09:11:26 styler2go: camera has properties that are hard to simulate, about, light exposure, and cell resolution; the reading app is allowed to tune many details; you can not simply emulate that part, and feed a video stream; unless the video reader is very stupid, or home made Sep 23 09:12:05 styler2go: really, you should hack the camera drivers and install your own version of Android in your device Sep 23 09:12:21 styler2go: it's definitely doable Sep 23 09:12:29 styler2go: you would need to simulate a CCD with only one mode, and no customisation at all; and many apps may dislike this Sep 23 09:13:00 Arancio, i can't just make my own drivers Sep 23 09:13:12 styler2go: why not? Sep 23 09:13:26 styler2go: oh, you want a webcam ? so, you are looking for a network streamer: VLC. Sep 23 09:14:12 I want to show a video file in the camera app Sep 23 09:14:23 that's the goal i want to have Sep 23 09:14:54 styler2go: I would really describe what's the purpose of this whole thing if I were you so that people can help you better Sep 23 09:15:18 As it is, it sounds like a complex AND silly idea Sep 23 09:15:21 I want to give whatsapp a fake qr code to activate whatsapp web Sep 23 09:15:27 styler2go: depends on the camera app; camera app are hugely different, depending on who wrote it. Some only care about snapshots; other want video; android native cam app completely refuse to use USB cams; so, for OTG cameras, I had to install 3rd party apps ... Sep 23 09:15:55 the "camera app" therefore is whatsapp Sep 23 09:15:56 styler2go: so you have to be very specific about the app you have; otherwise, install a compliant app like ... Sep 23 09:16:23 styler2go: camerafi Sep 23 09:16:43 styler2go: I am tired of playing questions and answers; you changed the problem 3 times in 2mn; I am bored. Sep 23 09:18:36 doublehp, ok then Sep 23 09:18:38 bye Sep 23 09:19:21 styler2go: how old are you? Sep 23 09:19:29 12 Sep 23 09:19:46 You look younger than that Sep 23 09:20:31 Much younger than that Sep 23 09:21:21 liket 11,5? Sep 23 09:21:39 like unborn Sep 23 09:23:38 hi, im using some widgets that are off the screen (like a drawer but not one), is there a way to display them in the preview without bringing them onto the screen area? Sep 23 09:24:16 Preview? Sep 23 09:24:18 you can use tools:something instead of android:something Sep 23 09:24:24 like tools:text="meow" Sep 23 09:24:44 this will be on preview only, not in apk Sep 23 09:25:28 when i say preview i mean the xml preview in android studio Sep 23 09:25:58 line 22 in my code throws a "java.lang.OutOfMemoryError:Java heap space" error . how can i avoid that ? code --> https://gist.github.com/codeboy101/51ccb1c34bec3d63086176996e66a796 Sep 23 09:26:02 its basically a slider that starts off the screen and you pull it in.. i cant see what it looks like cos its out of the screen view Sep 23 09:26:11 just the outline is visible Sep 23 09:27:30 superKiller, that's not an android problem, go to ##java Sep 23 09:28:21 Zharf: oh okay Sep 23 09:29:43 superKiller: see, nobody wants to talk to you now because they know you are ungrateful Sep 23 09:30:17 Arancio: sorry about that Sep 23 09:30:26 superKiller: ok Sep 23 09:32:08 styler2go, hmm, I haven't seen anything like that yet. Genymotion and Android emu let you use the computers webcam as a camera Sep 23 09:32:20 But I haven't seen an option to feed in you own video stream. Sep 23 09:33:55 Mavrik, that's exactly what i want to do on my real device Sep 23 09:35:42 I'm afraid it's not possible without severe modifications to the ROM Sep 23 09:35:50 I told him Sep 23 09:36:18 "really, you should hack the camera drivers and install your own version of Android in your device" Sep 23 09:36:32 He doesn't listen Sep 23 09:40:29 styler2go, I have a solution for you, but it involves 2 phones Sep 23 09:40:32 ;) Sep 23 09:43:18 alex_PP, holy a phone in front of another phone? :D Sep 23 09:43:22 hold* Sep 23 09:43:33 that's the one Sep 23 09:46:11 Hi guys, Do you know where I could find good background for items of a listView ? Like a rectangle, with white inside, and custom borders Sep 23 09:47:03 mtR_: design them with XML Sep 23 09:47:52 mtR_: http://www.vogella.com/tutorials/AndroidDrawables/article.html Sep 23 09:48:26 Arancio: I could do that, but if can find something with a good design, like a parchment. Something designed Sep 23 09:49:24 mtR_: for a parchment it's better if you use a bitmap. Take a parchment bitmap from the web and put it in the background of your item view Sep 23 09:50:37 Arancio: Yeah thats what i want to do, So i was wondering if there is like a database for developpers with stuff like that :) Sep 23 09:50:43 mtR_: https://www.google.it/search?q=parchment&tbm=isch Sep 23 09:50:50 mtR_: that's the database Sep 23 09:54:03 mtR_: that's going to look pretty out of place on android Sep 23 09:54:22 unless this is a medieval game, or similar Sep 23 09:55:01 alex_PP: sure, this was an example to explain what i want :) Sep 23 09:55:22 Thanks Arancio :) Sep 23 09:55:53 You are welcome Sep 23 09:58:56 mtR_: if you take a bitmap from the web and use it in an application that you are going to distribute check that you are allowed to do so otherwise the copyright owner could send a nuclear missile at your coordinates Sep 23 10:01:04 mtR_, use https://search.creativecommons.org/ Sep 23 10:01:12 you'll probably have to use 9-patch yourself Sep 23 10:01:18 And make sure you check which CC license is needed. Sep 23 10:01:23 *is applied Sep 23 10:01:31 Some require you to have contribution in the app written somewhere. Sep 23 10:03:27 ok ill check it out, I dont want to be responsible for nuclear war Sep 23 10:28:08 Does anyone know any libraries that will handle getting an OAuth access token? I dont have a redirect URL and was wondering if there was a way around it Sep 23 10:29:10 i wrote it myself ;) Sep 23 10:29:46 Zeuri, redirect to localhost/somthing Sep 23 10:30:35 if the service allows it Sep 23 10:37:04 Alex_PP, Im not sure OAuth allows that, think it has to be a public domain Sep 23 10:38:29 You can redirect to anything, just add an intent filter for it. E.g. I redirect to myapp://oauth Sep 23 10:41:16 SimonVT, I didn't think that was possible - how can I go about figuring out what the URL for the app would be? Sep 23 10:41:57 It's whatever you want it to be, your intent filter decides that Sep 23 10:42:12 It's like intercepting viewing a website Sep 23 10:42:23 Except the scheme is myapp and not http Sep 23 10:42:40 Or totallynotmyappbutillfilteritanyway Sep 23 10:44:28 Ok - I think I have some reading to do! haha Sep 23 10:44:48 Zeuri: search for browsable intents Sep 23 10:44:57 or intent filter, would be more correct Sep 23 10:45:13 Aye Im doing so atm :D Sep 23 10:45:23 Thanks Alex_PP & SimonVT! Much obliged Sep 23 10:48:32 kotlin developers be like: run, error, clean, run Sep 23 10:52:10 must be dagger and kapt Sep 23 11:17:58 gordon_: what are you talking about? Sep 23 11:18:14 In Android, if you save the state of RecyclerView, should you set the Adapter of that RecyclerView before or after restoring the state? Sep 23 11:21:39 Moshdev: why don't you set the adapter after restoring. Doing so you don't have to notify the changes. Unless I completely misunderstood your question Sep 23 11:22:56 Hi Sep 23 11:23:24 I am building a an app which has a profile page where the user uploads his profile photo. Sep 23 11:23:58 Which compression should i use to reduce the size of the image before uploading without impacting the quality much. Sep 23 11:24:40 Arancio: Am just trying to understand the life cycle of saving/restoring state Sep 23 11:25:18 Arancio: when do Views restore their state in Fragment lifecycle Sep 23 11:25:19 ? Sep 23 11:29:36 do i need to set the data into views before they are restored? because I believe setting data into views after restoring will mess the state of itself Sep 23 11:30:01 Moshdev: I don't think views restore their state. Activities and fragment do Sep 23 11:30:27 Moshdev: you restore the state of the view in onCreate Sep 23 11:32:24 Arancio: Activity and Fragments will trigger the restoration cycle, but Views generally will restore their states (using void onRestoreInstanceState(Parcelable state)) Sep 23 11:37:48 Moshdev: you know more than me. Sorry. Sep 23 11:44:43 Arancio: I'm talking about pain working with dagger and kotlin ;) Sep 23 11:44:55 which gives false errors then compile Sep 23 11:45:00 clean, run Sep 23 11:45:02 errors gone Sep 23 11:45:07 I see Sep 23 11:47:18 It was some kind of IRC existentialist hermetic poetry Sep 23 11:51:08 Greetings humans. Sep 23 11:52:12 I have a project which requires to be compiled with older android studio stuff. To make a long story short let me get to the question. How do I manually ad an older AdMob version to an android studio project ? Sep 23 12:04:33 NeoFrontier: looks like your question did get much attention Sep 23 12:05:12 Yeah everyone died who looked at it apart from strong old Arancio Sep 23 12:13:57 NeoFrontier: I'm not sure anyone knows. Why do you need the older version at all? Sep 23 12:14:09 ok, it has been decided Sep 23 12:15:10 thepoosh Sep 23 12:15:12 goddamn u Sep 23 12:15:20 ?! Sep 23 12:15:26 u got a min b4 shabbas goes in? Sep 23 12:15:27 It is crucial that this project works on the oldest android devices possible. Certain features are deprecated in etc etc long story. Sep 23 12:15:33 yes Sep 23 12:15:40 raoul11: you coming on monday? Sep 23 12:15:44 Project will not compile with the latest AdMob SDK. Sep 23 12:18:59 NeoFrontier: error? Sep 23 12:22:27 thepoosh: "mind error, please reboot with new OS" Sep 23 12:22:38 wut Sep 23 12:22:46 THat was a joke Sep 23 12:24:24 how do i add a image to a android app without using xml? Sep 23 12:24:30 <_fg> I'm running the android emulator from a fully updated android studio, no skin, 1920x1080 (landscape) resolution, 420dpi, Android 7.0 (tried with 6.0 too) and when I launch it, I can only see the home button in the navigation bar, back and recent are missing. It's not just the icons missing, if I click anywhere in the navigation bar it will trigger the home button action. I've also tried different ABIs and got the same results. Any Sep 23 12:24:30 <_fg> ideas on how to fix that? Thanks Sep 23 12:24:33 viro: and hi Sep 23 12:24:39 hi Sep 23 12:25:05 viro: a drawable can be a bitmap too Sep 23 12:25:28 mImageView.setImageResource(R.drawable.img24); ? doesn't seem to work for me Sep 23 12:25:30 thepoosh thing is for this project I must compile with Build tools version 22.0.1 to Sep 23 12:26:01 hi guys, I can ask here about problem when I build cyanogenmod rom from source? Sep 23 12:26:27 Thats the issue, with the play services adk, it must match the build tools version or something. Sep 23 12:26:53 I must somehow get the older Play Services Lib into Android studio. Sep 23 12:27:19 When I compile the error has to do with certain styles missing. Sep 23 12:27:37 Would it help if I show you the specific errors ? Sep 23 12:28:10 viro: http://stackoverflow.com/a/16906599 Sep 23 12:30:13 NeoFrontier: you can point to it and let AS install it for you Sep 23 12:30:25 but i think it's part of the google repositories Sep 23 12:31:29 it Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setBackgroundResource(int)' on a null object reference Sep 23 12:31:31 I have been looking at the SDK Manager Sep 23 12:31:55 viro: so your imageview is null Sep 23 12:32:16 NeoFrontier: don't just specify the version and allow gradle to do the rest Sep 23 12:32:56 ah that lemme try that Sep 23 12:32:57 img24.png is in the drawable folder tho Sep 23 12:33:17 Now to figure out the correct version number Sep 23 12:37:18 viro: not the image, the imageview Sep 23 12:39:44 how do i make it not null? Sep 23 12:39:57 mImageView = (ImageView) findViewById(R.id.main_content); doesn't seem to do it Sep 23 12:40:28 paste the code and the layout.xml file Sep 23 12:43:03 http://pastebin.com/fHhKZ2PC Sep 23 12:43:33 Im not using xml just normal code Sep 23 12:45:42 viro: where exactly do you think findViewById will find it if you didn't setContentView?! Sep 23 12:46:48 i noticed that when i pasted that and uncommented it ou and still got the same error Sep 23 12:46:55 out* Sep 23 12:47:04 -_- Sep 23 12:47:22 the first or second one? Sep 23 12:47:30 there are 2 commented lines of setCOntent Sep 23 12:47:54 line 17 Sep 23 12:49:10 what about #22? Sep 23 12:49:15 is it still commented out? Sep 23 12:50:47 ok fixed Sep 23 12:50:55 ??? Sep 23 12:50:57 and still gotthe error Sep 23 12:51:04 same error* Sep 23 12:51:13 paste activity_main.xml and remove line #22 Sep 23 12:51:22 * viro what?? that should change something Sep 23 12:51:37 I am trying to understand Sep 23 12:54:34 http://pastebin.com/bktHrL5N Sep 23 12:56:01 if you set the android:id field to have the value "mImageView" you will have to find that id when using findViewById Sep 23 12:56:25 there is no view with the id main_content Sep 23 12:59:48 viro: ? Sep 23 13:02:06 i thought i was looking by id Sep 23 13:02:53 you are, but by the wrong id Sep 23 13:03:08 the one you are searching for is not in the layout you're searching in Sep 23 13:03:30 laterz Sep 23 13:03:33 by raoul11 Sep 23 13:03:45 o/ Sep 23 13:03:48 \: Sep 23 13:08:33 at least he tried Sep 23 13:26:01 I am unable to understand Databinding's syntax `MainActivityBinding binding`. What is MainActivityBinding and binding? Sep 23 13:28:59 sudhirkhanger: "MainActivityBinding" is a class name and "binding" is a variable or a field name. Sep 23 13:29:09 sudhirkhanger: That's a Java question Sep 23 13:29:39 sudhirkhanger: all Java syntax questions are Java questions for the ##java channel Sep 23 13:30:06 Arancio: It's from Android Databinding. Sep 23 13:30:20 sudhirkhanger: well then provide context Sep 23 13:30:40 Arancio: here https://developer.android.com/topic/libraries/data-binding/index.html Sep 23 13:31:17 sudhirkhanger: look that's a java question. bye Sep 23 13:31:37 Arancio: I am trying out data binding in my Android app using this tutorial https://medium.com/google-developers/no-more-findviewbyid-457457644885#.3sjt1g40k Sep 23 13:32:09 sudhirkhanger: try a Java tutorial first Sep 23 13:32:31 Arancio: I understand the java syntax. I am unable to understand where they are getting the type in databinding syntax. Sep 23 13:33:30 ListItemBinding binding = DataBindingUtil.inflate(layoutInflater, R.layout.list_item, viewGroup, false); Sep 23 13:33:51 Where does ListItemBinding type comes from is my question? Sep 23 13:34:01 sudhirkhanger: I don't care to continue this discussion because you can't express yourself. Could you grant me the privilege to work on my own code? Sep 23 13:34:04 Thanks Sep 23 13:34:29 Thanks for being rude. Sep 23 13:35:52 :O Sep 23 13:36:15 sudhirkhanger: you mean how is DataBindingUtil returning a ListItemBinding? Sep 23 13:40:32 Idiosyncratic: Thanks figured it out. Android Studio generates the class (type name) like HelloWorldBinding, MainActivityBinding, ListItemBinding, etc. Sep 23 13:40:55 I wasn't sure where those were coming from. Sep 23 13:42:40 What a profoundly disrespectful person Sep 23 13:45:15 When was I disrespectful to you or anyone. You started attacking me. Pushing me off the channel without even trying to understand my question. If I wasn't clear you could simply say that I am not clear enough and I will try to explain as best as I could. Sep 23 13:45:21 "I don't care to continue this discussion because you can't express yourself." Sep 23 13:45:48 Do people who are respectful of other attack new comers like that? ^^ Sep 23 13:46:27 nope Sep 23 13:46:49 sudhirkhanger: when you engage people in a conversation it's your duty to 1) use words for what they mean 2) form complete sentences with context do that people don't have to decipher obscure messages Sep 23 13:47:18 sudhirkhanger: do you realize you misused the word "syntax", giving a completely false meaning to your first messages? Sep 23 13:48:00 sudhirkhanger: if you don't care to do that, you are wasting other people's time and being disrespectful Sep 23 13:48:07 why are you constantly trying to pick fights Arancio /: Sep 23 13:48:18 I'd prefer not to fight Sep 23 13:48:28 I don't like it Sep 23 13:48:45 well, you seem to be involved in quite a few recently Sep 23 13:49:27 I should just ask for help and never answer questions. I would have less problems Sep 23 13:51:19 I just would like to be friend with everybody Sep 23 13:52:09 goodluck with that Sep 23 13:52:18 :( Sep 23 13:52:27 I'm not a bad person Sep 23 13:53:05 not saying you are, but being a d to others might repressent you as one Sep 23 13:53:39 Hi. Can you compile apps using Java 8 and use them on Sep 23 13:54:00 Android 4.4 for example? (sorry for the half message, I clicked enter accidentaly) Sep 23 13:54:21 with the whole android 7 etc Sep 23 13:56:23 yep karkoon Sep 23 13:56:40 raoul11: oh! That's amazing! Thanks. Sep 23 13:56:50 check it yourself Sep 23 13:57:05 you gonna need it if you're targetting 24 Sep 23 13:57:26 hello there! Sep 23 13:57:37 can someone help me? i have a problem with widgets Sep 23 13:58:22 karkoon: https://developer.android.com/guide/platform/j8-jack.html Sep 23 13:59:27 raoul11: it says that I need Jack. Does it mean that I need to switch from Intellij idea to android studio? Sep 23 13:59:27 tksko: ask your question and someone might pick it up Sep 23 13:59:49 i'd advise anyone to switch to AS Sep 23 13:59:53 I actually have an app with a widget and i use a service to upadte the info (is a weather widget) Sep 23 14:00:08 The fact that AS and IDEA has diverged is incredibly annoying. Sep 23 14:00:12 now I am trying to add other widgets with differents layouts (every widget use their own layout.xml file) Sep 23 14:00:31 and i want to reuse the service, because the data for all the widgets is the same Sep 23 14:00:43 i have a java class for every widget, buy only 1 service Sep 23 14:01:02 the problem is that all widget i choose from the widget list, deploy the same widget... Sep 23 14:01:16 and i cant find what is wrong Sep 23 14:01:36 for example: i have a widget with transparent backgournd and one with an image background Sep 23 14:01:47 but allways the transàrent one is loaded :S Sep 23 14:02:18 every widget has his own xml config file, his provider and layout file Sep 23 14:02:19 <_genuser_> so twitter trying to sell itself.. Sep 23 14:12:02 i am back again Sep 23 14:12:26 my wifi is working awful Sep 23 14:12:38 any widgets expert here? Sep 23 14:40:20 can i make gradle do the same thing as ant and ivy? Sep 23 14:41:27 Now that's a generic question :P Sep 23 14:41:35 Since it's fully programmable, probably yeah. Sep 23 14:42:22 ok lol Sep 23 14:42:27 capella-5x: I managed to make the "buttons over the soft keyboard" like Google Docs. It's all about the layout. There is no special trick. Sep 23 14:43:28 Hello guys Sep 23 14:43:28 probably how spelling predictions are offered Sep 23 14:43:53 at least in swiftkbd Sep 23 14:44:28 haven't tinkered with other imm inna while Sep 23 14:44:37 no, I found the solution in a blog post. 1 sec Sep 23 14:44:49 Is the JobScheduler a better alternative than implementing a custom background service? Sep 23 14:44:51 k, sure Sep 23 14:44:56 capella-5x: here it is: https://www.davidwparker.com/2011/08/30/android-how-to-float-a-row-above-keyboard/ Sep 23 14:45:17 What I want to do: Sep 23 14:46:00 I want to hit play in the app so that it executes a background service Sep 23 14:46:18 arancio, sure... complex variations on attendant view Sep 23 14:47:15 JobScheduler sounds like.. a schedule Sep 23 14:47:28 or a task I would want to execute periodically Sep 23 14:47:34 rangu: JobScheduler is for jobs that don't necessarily have to happen right away Sep 23 14:47:42 Exactly Sep 23 14:47:52 so that wouldn't be what I need. Sep 23 14:47:52 If you want it to happen now, do it yourself Sep 23 14:47:59 Yes I want to happen now. Sep 23 14:48:37 SimonVT: Do you know about somewhere I could get boilerplate code for a Custom service implementation? Sep 23 14:50:14 right click new service... Sep 23 14:50:18 That would depend entirely on what you want to do, so no Sep 23 14:50:52 https://github.com/google/material-design-icons/blob/master/content/drawable-xxxhdpi/ic_clear_black_24dp.png Sep 23 14:50:59 why don't I see this in toolbars very often? Sep 23 14:51:03 SimonVT: It's a service for Play, Pause and Stop functionality. Sep 23 14:51:04 If you just have a task you want to happen on a background thread in a Service you can extend IntentService Sep 23 14:51:18 That tells me nothing Sep 23 14:51:41 SimonVT: I want to hit Play and the background task starts. Sep 23 14:52:01 It's a background that impacts the UI. Sep 23 14:52:05 Again, it depends on what this background task does Sep 23 14:52:22 So it needs to be asynchronous. Sep 23 14:53:21 I'll share a sample for you. Sep 23 14:53:34 the more vague you are, the less help you're going to get Sep 23 14:53:45 Nah, doesn't matter, I don't know of any templates Sep 23 14:53:46 you don't need a service for async Sep 23 14:54:00 right click - > new service Sep 23 14:54:05 But look at Service. There's also IntentService for simple tasks that happens on a thread Sep 23 14:54:05 pfn: I'm not being vague. Sep 23 14:54:05 that is your template Sep 23 14:54:13 yes, you are Sep 23 14:55:10 <_genuser_> IntentService, I just see that and I have to say that comment++ Sep 23 14:56:14 I want to execute this task in teh background https://github.com/facebook/network-connection-class/tree/master/connectionclass-sample Sep 23 14:56:31 So it's basically a speed test connection Sep 23 14:57:07 task* Sep 23 14:57:40 I would hit play, then it tests the internet speed in the background. Sep 23 14:58:11 if I hit pause, it pauses the speed test. Sep 23 14:58:41 That would be it. Sep 23 15:02:49 does the service have to survive the activity? maybe I missed scrollback Sep 23 15:03:09 I have a problem with a widget, can someone help me? Sep 23 15:03:21 i have an app with a widget that uses a service to refresh data Sep 23 15:03:30 not till you elaborate Sep 23 15:03:40 i am trying to add other widget with different layout but with the same data Sep 23 15:04:03 so i create a new provider and xml config for the new widget and the new xml layout Sep 23 15:04:12 capella-5x: What do you mean? Sep 23 15:04:26 but when i choose the widget from the widgets list, i only they the old one layout Sep 23 15:04:32 all the widgets use the same layout....... Sep 23 15:04:39 but i dont know why Sep 23 15:04:58 because every widget has their own config xml file and their own xml layout Sep 23 15:05:15 but they use the same Sep 23 15:05:32 perhaps i have a bug in the service? Sep 23 15:05:43 do i need a different service for every widget? Sep 23 15:05:49 tksko: Please use full sentences Sep 23 15:05:56 rangu you can hang services for various durations, a simple async task can be also used, trying to scope your issue Sep 23 15:05:56 Your question doesn't need to spam 10 messages Sep 23 15:06:13 capella-5x: I'm currently using an async task. Sep 23 15:06:57 capella-5x: But the async task I think if I pause the activity, it doesn't survive it. Sep 23 15:07:14 capella-5x: or maybe I would have to use a fragment. Sep 23 15:07:30 yes it will, you might have to reattach on orientation change Sep 23 15:07:47 activity destruction Sep 23 15:07:49 capella-5x: Orientation change is restricted in my app. Sep 23 15:08:00 for example Sep 23 15:08:44 capella-5x: why if after I pause my app, it starts again from the beginning? Sep 23 15:09:17 onPause() / onResume() Sep 23 15:10:57 mmm... I'm gonna need 'bout tree-fiddy Sep 23 15:16:36 capella-5x: It happens that after I start the test and put the app app in the tray, it doesn't resume the task. How could I be resuming my async task? Sep 23 15:17:59 * capella-5x brb -> dock break Sep 23 15:18:38 capella-5x: I would have to create an intentservice in that case. Sep 23 15:24:43 Why does the Android Activity + Fragment template, puts the FAB in the activity and not in the fragment? Sep 23 15:29:01 Am I supposed to follow that pattern? Sep 23 15:32:09 you do what makes sense for your app Sep 23 15:32:29 but. an activity, semantically, should perform a single primary task Sep 23 15:32:49 as such, a fab should be the primary action in that tasj Sep 23 15:32:52 task Sep 23 15:36:29 pfn: That was very clear, but what if my activity have calls to an API? Sep 23 15:36:42 I would have two tasks Sep 23 15:36:51 The primary task (in the fab) and a call to an API. Sep 23 15:37:06 was it microman that followed a project mgmt scheme based on activity/task? random thought, perhaps unrelated Sep 23 15:37:36 next higher concept was "phase" iirc Sep 23 15:37:47 capella-5x: Who is microman? Sep 23 15:38:14 project mgmt scoping tool for software dev Sep 23 15:38:26 goes back a while Sep 23 15:38:47 no hands on as part of the process Sep 23 15:39:22 rangu: From what I've read from futurice best practices, calls to an API should be handed by the Activity Sep 23 15:39:44 pfn: * Sep 23 15:40:28 But the FAB won't be calling the API. Sep 23 15:41:12 that is irrelevant Sep 23 15:41:30 implementation detail is implementation detail Sep 23 15:41:51 pfn: So it doesn't matter if the activity calls an API and there is a FAB with the app main task. Sep 23 15:43:29 I'm waiting for you to say yes it does or no it doesn't Sep 23 15:46:14 doesn't matter, do what fits your desired/standard UX Sep 23 15:49:41 pfn: Thanks, I'm trying to follow some standard. Sep 23 15:50:12 pfn: When I learned, the common practice was to bring the whole view to the fragment Sep 23 15:50:27 pfn: That's why I'm running a bit into confusion Sep 23 15:51:29 ugh, too many lucky people pulling lightning... I want Sep 23 16:40:05 "Cabin crew on an Indian passenger aircraft have used a fire extinguisher to tackle a smoking Samsung handset." yikes Sep 23 16:41:17 g00s: lol Sep 23 16:41:28 whoa then they put it down the toilet ?!?! Sep 23 16:41:39 g00s: was it one of those exploding phones? Sep 23 16:41:47 you can't smoke on planes anymore! Sep 23 16:41:51 doesn't say .... Sep 23 16:42:18 Samsung claims "not the battery " Sep 23 16:44:34 <_genuser_> samsung has been doign good with devices, why the s7 issues? really odd. Sep 23 16:44:44 <_genuser_> software, they were never good with. always adding more crap. Sep 23 16:48:45 Does anyone know what is the Windows 10 development IRC ? Sep 23 16:49:19 windows phone 10* Sep 23 16:50:02 not sure if they gather on irc... Sep 23 16:50:15 http://imgur.com/a/ue3tq allo first screen VERSUS guidelines Sep 23 16:50:26 I guess both of them use yammer Sep 23 16:50:26 (then the genymotion vm crashed just after) Sep 23 16:51:56 adq: giving away your personal information to Google for the purpose of dataminig == "this makes it easier to connect". Hmm. Sep 23 16:52:10 that's another story Sep 23 16:52:14 you assume they dont take it anyways Idiosyncratic Sep 23 16:52:42 raoul11: no, I was trying to emphasize the silly public relations tactic :D Sep 23 16:52:56 you don't have to explain it to me at least lol Sep 23 16:53:03 its like facebook lately said they gonna use your whatsapp connections and convos for advertisements and connect u on fb Sep 23 16:53:17 which they did as soon as they bought whatsapp Sep 23 16:54:17 Zharf: I have to develop an app for W10, Android and IOS. I think I will go cross with Xamarin. Perhaps they have an IRC Sep 23 16:54:41 xamarin might Sep 23 16:54:56 #xamarin on freenode prboably Sep 23 16:54:58 Like how some loading screens don't just say "Please wait", but "Please wait, we're doing something fantastical and magical for you!". And it probably works at making loading screens less of a reason to dislike the app. Sep 23 16:55:14 Zharf: Kinda empty haha Sep 23 16:55:23 yes #xamarin exists, learn to /LIST and grep topic/title Sep 23 16:55:31 They turn the monotony of loading for something into waiting for really fun experience Sep 23 16:55:38 *of waiting Sep 23 16:56:59 are you sure you did not mix up #android and #android-dev? Sep 23 16:57:39 adq: hater Sep 23 16:57:47 ??? Sep 23 16:57:59 adq: oh, that wasn't for me? :D Sep 23 16:58:04 ok ignored Sep 23 16:58:16 lol Sep 23 16:59:49 * bitkiller just got more 8GB Sep 23 17:05:05 Hey guys Sep 23 17:05:22 Does anyone here have experience working on cross-platform? Sep 23 17:08:21 Hello, does anyone know when it's not recommended to serialize data in Android? I currently have a DialogFragment which I populate with data through a network call to a server. I made a model object for the response and made it parcelable so that I can get the data back on a configuration change Sep 23 17:08:56 I've been told this is not very good, but I don't understand why exactly if that is true Sep 23 17:10:46 Saved state can't contain more than a few hundred kb, it's not meant for your entire dataset Sep 23 17:13:23 I see, in this case the response is small, it just has about 8 strings Sep 23 17:15:30 That's fine Sep 23 17:16:13 The problem is people putting lists of undefined sizes in the bundle Sep 23 17:20:44 steran: ideally you’d have a repository data store, which would hold the model object. Then, before your config change, you’d store just the id needed to retrieve the object Sep 23 17:28:29 Hi All i need help with auto renewal of subscription Sep 23 17:29:03 after cancelling my auto renewal subscription can i resubscribe an app Sep 23 17:29:27 do i need to go through the in app purchase once again Sep 23 17:29:28 ? Sep 23 17:29:40 or as in iOS just toggle a switch to restart it? Sep 23 17:30:28 s73v3r, that sounds more what I should do, thanks Sep 23 17:30:47 Sunpreet: Try #android, this channel is for app dev Sep 23 17:32:23 SimonVT : ok.. from dev prespective does any one know whether the order id or base order number remains same if i cancel and then restart a subscription or a new one is assigned ? Sep 23 17:34:10 Guys, I'm back! (in case anybody wants to talk to me) Sep 23 17:34:18 on recurring subscription google appends order id or base order number by an integer but what happens if i cancel a subscription and then re subscribe it ? Sep 23 17:35:28 Sunpreet, https://developer.android.com/google/play/billing/billing_subscriptions.html#payment Sep 23 17:36:39 I don't see why you would keep the same id after cancelling and re-purchasing same stuff Sep 23 17:36:46 it would be impossible to identify otherwise Sep 23 17:37:46 adq : i am implementing auto renewal for an app both in iOS and Android and in iOS they dont change it at all.. a user can just toggle a button to stop and restart the auto renewal Sep 23 17:38:06 auto renewal is not after cancellation Sep 23 17:38:06 aqd : so was wondering does google follow same approach Sep 23 17:38:55 Sunpreet, best is you read the docs first, many times Sep 23 17:39:05 adq : so in case of google its not like iOS where you stop auto renewal you cancel it? Sep 23 17:39:22 adq : i acutally did but couldnt fine exact answer Sep 23 17:39:35 I know IAB but did not play with subscription and I don't know ios much, so I cannot help you more except by telling you to read the doc Sep 23 17:40:56 the auto renewal part seems clear Sep 23 17:40:57 Subscriptions let you sell products with automated, recurring billing at a variety of intervals. Sep 23 17:41:06 you don't have to implement auto-renewal Sep 23 17:46:08 orzen: File a bug at https://github.com/android-ndk/ndk/issues and I'll pass it along to the right people Sep 23 17:46:13 rxjava 2 RC3 Sep 23 17:46:32 danalbert: sure! =) Sep 23 17:47:53 Has anyone used Firebase to store audio files? Sep 23 17:48:33 btw is this SDK also maintained at github ? Sep 23 17:52:16 recyclerview: Does it have an onItemClicked or something similar? Sep 23 17:52:41 No, you have to manually create it Sep 23 17:52:52 Create it in your viewholder Sep 23 17:52:59 not gonna work Sep 23 17:53:11 i need something i can set on the whole recyclerview, not on a per item basis Sep 23 17:53:18 oh Sep 23 17:53:41 What difference does it make? Sep 23 17:53:57 interacting with our crappy model system Sep 23 17:54:27 currently I do set the click handler per item in onBindViewHolder, but for what I need to do now, that’s not going to work Sep 23 17:54:48 Why not? Sep 23 17:54:51 Are you saying you need to receive click events on the recyclerview itself? Sep 23 17:55:21 cause I need things at one level higher than they are now Sep 23 17:55:33 in order to make things work with our crappy model system Sep 23 17:56:07 You're not very good at explaining yourself Sep 23 17:56:33 i can’t say too much without giving too much away Sep 23 17:57:03 but the point is, i wanted to have an onItemClicked listener rather than set the click listener on each individual item Sep 23 17:57:10 but it doesn’t sound like that’s possible Sep 23 17:57:22 of course it is Sep 23 17:57:30 So make a callback with a method called onItemClicked Sep 23 17:57:34 Have each click listener call that Sep 23 17:58:16 that sounds like what I’ll have to do Sep 23 17:58:38 like inside your onCreateViewHolder, you would have return new ViewHolderItem(v, youruniqueitemclick.. where youruniqueitemclick is like new ViewHolderItem.IViewHolderItemClicks()[...] Sep 23 17:58:50 anyway to use android data binding to bind a menu option up in the appbar? Sep 23 18:01:15 I don't understand how Google Maps can't calibrate the compass with input from GPS Sep 23 18:01:48 once it has bearing it should be easy to calibrate the compass using accelerometer data Sep 23 18:02:12 pfn: sensor fusion? Sep 23 18:02:49 they could look at the cleanflight opensource for the algorithm Sep 23 18:02:56 my compass is consistently 90 degrees off in Google Maps Sep 23 18:03:40 Might be a hardware issue? Sep 23 18:04:26 perhaps, but calibration from an outside data source should fix that Sep 23 18:53:55 parco, (on menu data binding) i didn't found Sep 23 18:54:36 ^ grammar Sep 23 18:58:04 parco, of course you can use it with views set as toolbar's children Sep 23 18:58:23 i really, really, really hate how one compile error will make AS forget EVERYTHING Sep 23 18:58:43 “oh, you don’t have the right number of parameters for your method? WHAT’S A RECYCLER VIEW?” Sep 23 18:59:25 “OH MY GOD, I CAN’T BUILD THE R MODULE DUE TO THIS UNRELATED ERROR!” Sep 23 19:00:01 indeed, also you need to hit "run" to see more potential errors appearing, wtf Sep 23 19:00:12 been years, not fixed and won't happen i bet Sep 23 19:02:43 So I finally got OkHttp caching to work with a max-age response header. Turns out that okHttpClient.newCall(request).enqueue(callback) was not finishing caching the response Sep 23 19:03:44 I switched to using, Response resp okHttpClient.newCall(request).execute(); resp.body().close(); Sep 23 19:04:03 And that finished caching fine, so I didn't dig more into why the callback form wasn't caching Sep 23 19:04:04 bitkiller: ah that's good thinking, thanks Sep 23 19:05:21 yiati, well you switched from asynchronous to synchronous Sep 23 19:06:11 adq: Yep, but I was waiting 10 seconds between requests, with a max-age=6000 Sep 23 19:07:01 just for testing, not actually publishing a 10 second poll, just wanted to figure out how to get okhttp to respect cache headers Sep 23 19:07:14 got it working for synchronous Sep 23 19:07:56 That's strange. Caching shouldn't work any different Sep 23 19:08:00 It's just an interceptor Sep 23 19:08:10 Yeah, that's what I was hoping Sep 23 19:08:39 Try and create a test case Sep 23 19:08:45 I have a very small sample project with it not working, I may try to investigate more and push it up as a ticket Sep 23 19:09:08 created it just to test this Sep 23 19:25:01 I could just be doing something wrong, but here's the only code in the app, https://github.com/caseykulm/letscache/blob/master/app/src/main/java/com/caseykulm/letscache/MainActivity.java Sep 23 19:25:30 it pings example.com which has a response header max-age=604800 Sep 23 19:26:30 If you hook it up to charles proxy or something you can see that the asynchronous one never completes, and reading the appcachedir/journal file that the DiskLruCache.java writes to shows DIRTY idgeneratedforrequest Sep 23 19:26:42 s/idgeneratedforrequest/idgeneratedforresponse/ Sep 23 19:32:42 What do you mean it never completes? Sep 23 19:33:23 The saving to the cache is in an intermediate state with a 123abc.tmp file with the response headers in it Sep 23 19:37:50 So the callback is never called? Sep 23 19:38:09 I have a hard time imagining that Sep 23 19:38:10 When the second async request is made, and DiskLruCache tries to get any cached response it gets to this line, and sees that there is a cached response, but that it is not readable https://github.com/square/okhttp/blob/df0ff817c8fe772acbf2205572d84d62696bca36/okhttp/src/main/java/okhttp3/internal/cache/DiskLruCache.java#L434 Sep 23 19:38:21 SimonVT: It is called Sep 23 19:38:25 No issues there Sep 23 19:38:58 Alright, "never completes" was confusing Sep 23 19:49:17 derp, I switched it from buttons to switches. I need to update the app from onClickListeners to onCheckChangedListeners Sep 23 19:53:34 alright fixed it Sep 23 20:05:43 Yeah, that seems messed up Sep 23 20:08:02 does anyone know how to change the default jre/jdk for andriod studio? it runs under system install jdk, but it is not showing for any projects, IDE runs under jdk but does not show that exact jdk in the IDE... Sep 23 20:08:25 been messing with studio.sh, I have $JAVA_HOME set in the env, and other stuff, tried lots of things nada thus far Sep 23 20:08:41 even tried replacing the jre within android studio with a symlink to the system jre, nothing seems to work Sep 23 20:09:49 tried STUDIO_JDK, removed all conditionals in studio.sh, tried hard coded JDK, etc Sep 23 20:10:59 SimonVT: Got it a bit further, right when it tries to get the editor for the async version the editor is null https://github.com/square/okhttp/blob/8d51e740d77c6c80b9074162f8f0f6bd43bd37d3/okhttp/src/main/java/okhttp3/Cache.java#L246 Sep 23 20:10:59 I can configure the jdk/jre in the project structure by adding it, but I do not want that, i want it to show automatically like the one that is shipped does Sep 23 20:11:04 digging further Sep 23 20:50:42 fsck Sep 23 20:50:47 why did I open /r/androiddev again Sep 23 20:52:04 Mavrik what hurt your eyes this time Sep 23 20:52:25 Eh, some guy dreaming of Swift on Linux. Sep 23 20:52:45 lol i missed that Sep 23 20:52:54 And some other guy asking for the community to prove to him that reflections (sic) are slow. Sep 23 20:53:04 Because he couldn't find it in documentation. Sep 23 20:53:16 Writing 4 lines of code and looking at a profiler never occured to him. Sep 23 20:53:31 Cargo culters, all of them. Sep 23 20:53:34 Sep 23 20:54:30 that doesn't sound like cargo cult to me, more like ignorance in the case of reflection ... Sep 23 20:54:43 not reading the swift comment, ibm is working hard on getting up on linux so there is a story there Sep 23 20:54:52 It's the definition of cargo cult. Sep 23 20:54:57 "I heard somewhere this is true." Sep 23 20:55:15 "So I will avoid using that now. I will not check, measure or see of myself." Sep 23 20:55:26 thats just gullability Sep 23 20:55:37 Again, definition of cargo cult :P Sep 23 20:56:06 https://en.wikipedia.org/wiki/Cargo_cult_programming ;) Sep 23 20:56:16 "The term cargo cult programmer may apply when an unskilled or novice computer programmer (or one inexperienced with the problem at hand) copies some program code from one place to another with little or no understanding of how it works or whether it is required in its new position." Sep 23 20:56:20 See also - fragment debates :P Sep 23 20:56:29 yes yes, but when i think cargo cult in android , i think 'this guy uses library X and its successful, so i will to' Sep 23 20:56:46 yes i agree about the fragment debates Sep 23 20:56:52 Anyway, Swift at this point is horribly broken still sadly. Sep 23 20:57:04 i haven't tried it Sep 23 20:57:06 And Apple pretty much hasn't moved anywhere near cross-platform compatibility :/ Sep 23 20:57:22 I'm sure some fanboys will try to deploy it to Linux servers without any support required for that :) Sep 23 20:57:29 i sense some hidden frustration there Mavrik :D Sep 23 20:57:36 Nah. Sep 23 20:57:41 We just actually tested it Sep 23 20:58:11 Together with Kotlin and they're both currently in "toy project, don't use it for making money" box :P Sep 23 20:58:23 heh, what were you looking at it for ? Sep 23 20:58:50 We actually built a pair of apps (iOS / Android) with both of them. Sep 23 20:59:00 To see if we can move on for the core product. Sep 23 20:59:12 Both languages are fine by themselves, tooling and ecosystem isn't ok though. Sep 23 20:59:43 Buggy IDEs, limitations when linking with other stuff, broken and non-existing profiling and debugging tools in production :) Sep 23 20:59:54 1 year, maybe 2 untl they're ready Sep 23 21:00:18 1 year, maybe 2 maybe google says use flutter :P Sep 23 21:00:23 or use fucshia :D Sep 23 21:00:28 Google can STFU :P Sep 23 21:00:33 heh Sep 23 21:00:38 I think releasing Allo pretty much invalidates them :D Sep 23 21:01:27 v1, bro. v1 Sep 23 21:01:52 what you want will be in v2 Sep 23 21:01:54 Hangouts v1 was better than Hangouts v13 :P Sep 23 21:01:57 v3 will take forever Sep 23 21:02:03 and it will be abandoned around v4 Sep 23 21:02:45 g00s, a decent (iMessage, Telegram style) desktop client with full syncing, privacy at iMessage levels. Sep 23 21:02:56 Impossible I know ;) Sep 23 21:03:53 yeah desktop seems important Sep 23 21:04:18 I'd live with a crappy web client, even though convenience of iMessage / Telegram is hard to beat. Sep 23 21:04:32 Doesn't look like Googlers even though of that though :) Sep 23 21:04:46 google doesn't like desktop. Google Earth is the biggest piece of shit Sep 23 21:05:03 I'd say they're just incompetent at it. Sep 23 21:05:12 "What is desktop" - 99% of the world Sep 23 21:05:41 "OMG love my desktop because it's super powered" - me Sep 23 21:05:56 The world understands that just fine. Sep 23 21:06:04 Mavrik and there isn't much excuse, because - as you see with Pixate (googe now) and Slack, you can make pretty neat desktop stuff with web technologies now Sep 23 21:06:14 Hangouts just needed the seamless sms part.. Instead they decided to start from scratch and just not implement some features Sep 23 21:06:15 especially something like a messenger Sep 23 21:06:25 SimonVT: +1 Sep 23 21:06:26 But hey, they can use the excuse that it's a v1.0 product Sep 23 21:06:40 SimonVT, yeah, even though hangouts web is an abomination Sep 23 21:06:48 But at least it was there. Sep 23 21:06:52 Unmaintained and rotting. Sep 23 21:08:15 Haven't had any issues with it yet, I just don't like the ui Sep 23 21:08:24 this is pretty cool http://blog.burntsushi.net/ripgrep/ Sep 23 21:08:26 messenger.com is better imo Sep 23 21:08:36 although, i've been using sift to search through aosp Sep 23 21:08:53 because it has 1 nice feature : show hits where words are within x lines of each other Sep 23 21:08:57 SimonVT: Allo wouldn't even be an issue, if they had made it like with Inbox: Sep 23 21:09:04 Inbox uses the data and backend from gmail, Sep 23 21:09:09 Just a new app in front of it Sep 23 21:09:17 All data is shared between the apps. Sep 23 21:09:36 Imagine if allo could message hangouts users and ghe other way around natively, just works. Sep 23 21:09:40 Same with duo Sep 23 21:09:54 Google likes to re-brand and re-do Sep 23 21:09:57 You'd avoid the "convince everyone to join new messenger" effort completely Sep 23 21:10:06 I mean, go and rebrand and do experiments, Sep 23 21:10:15 Just don't change the backend Sep 23 21:10:26 Google search doesn't throw its index away every week either. Sep 23 21:11:02 i’m not so sure about that Sep 23 21:11:15 i hope they don't get rid of google+, now i actually kind of liked it since they stopped pushing it Sep 23 21:11:24 Would explain the horrible results in the past years Sep 23 21:11:27 did you guys see google might be in discussion to buy twitter ? Sep 23 21:11:32 Even Google+ Messenger had multidevice support Sep 23 21:12:02 The thing is, database migration and keeping the data and users is the most important thing. Google igores it Sep 23 21:12:10 It's like they're not even trying to wib Sep 23 21:12:16 SimonVT: Narrowed it further to https://github.com/square/okhttp/blob/df0ff817c8fe772acbf2205572d84d62696bca36/okhttp/src/main/java/okhttp3/internal/cache/DiskLruCache.java#L466 Sep 23 21:12:29 apparently "another edit is in progress" Sep 23 21:12:50 Heading home now. I will keep digging further after dinner :D Sep 23 21:12:53 I'd just file it and let Jesse Wilson deal with it :p Sep 23 21:13:26 Yeah, I plan on it, just trying to save him some time with a good write up Sep 23 21:13:42 justJanne, that would of course require teams at Google to communicate and work together :P Sep 23 21:13:49 And someone at Google to force them. Sep 23 21:33:32 this is anecdotal, but i've heard a few people say (haha) that Google's iOS apps are better than their android ones Sep 23 21:36:03 there’s some truth to that, but I have to wonder how true it is, and how much it is android fanboys persecution complex Sep 23 21:38:47 that AppGratis article was pretty interesting. surprised they did not refund Sep 23 22:20:22 Hey guys. I created another activity in my android studio app, resultactivity, but i still only see one activity being displayeed and launched . shouldnt two windows be popping up that say Hello World on them ? Sep 23 22:20:51 do you start activity anywhere? Sep 23 22:22:48 uh... not sure what you mean. Do I start mainactivity somewhere? it's just auto launching after creating the app. I don't know where to start resultactivity Sep 23 22:23:15 you created two activities. one is auto-started, but unless you explicitly start the second one somewhere, it’s never going to show Sep 23 22:23:23 and you can only have one activity on the screen at a time Sep 23 22:24:11 oh Sep 23 22:24:20 is that why all the tutorials say to "start a second activity with a button" Sep 23 22:24:22 when I google it Sep 23 22:26:08 yes Sep 23 22:26:44 Yeah but it's not like the "operating system" will ever see your recovery environment Sep 23 22:26:48 @#$@ wrong channel Sep 23 22:42:14 Favorite runtime permissions libs? Sep 23 22:49:30 libpam. ;) Sep 23 22:50:47 You on the wrong channel again? Sep 23 22:52:13 orbyt_, rxpermissions Sep 23 22:53:51 That seems surprisingly less verbose than even PermissionsDispatcher...thanks Sep 23 22:54:16 Is it stable for production use? Sep 23 22:54:47 Hi all, happy Friday! Sep 23 22:54:58 o/ Sep 23 22:55:20 orbyt_, I think it is, but ymmv Sep 23 22:55:28 Does anyone know how to do a free trial period on a managed product using In app billing? (without a server) Sep 23 22:55:33 \o Sep 23 22:58:58 the easy solution is just storing the time somewhere, but you are probably looking for something that isn't circumvented by reinstalling? Sep 23 22:59:11 yep Sep 23 22:59:31 But more than that, I'm looking for something that uses In App billing... Sep 23 22:59:40 A workaround. Sep 23 22:59:59 Like, I was thinking a second product that would be free and last 30 days. Sep 23 23:00:10 is it possible to make "free" IAPs ? Sep 23 23:00:45 hahaha, I didn't even think about that :D You're right, they might have a minimum Sep 23 23:01:17 If there is no minimum you could just greet the user with a free trial button that buys that IAP, i think when you check for the IAP you can also get it's purchase date and use that for the trial duration Sep 23 23:01:45 damn. Nope. 0.00 doesn't work. That screws up that plan Sep 23 23:01:49 but that's also using "a server" ;)? Sep 23 23:02:19 I don't think you get around the requirement of a remote backend if you want to prevent reinstalls to regain free trials Sep 23 23:02:52 argh. Why did Google add trials for subscriptions but not managed products?? Sep 23 23:03:14 I don't think it's an issue anyways Sep 23 23:03:35 some people reinstall and freeload, but I don't think that would be a significant portion of users Sep 23 23:03:56 right. Sep 23 23:04:11 Now in my case anyway. Sep 23 23:04:15 *not Sep 23 23:06:28 You could write a random file outside of your own apps directory which survives reinstall, but that would also remain if the user never installs your app again :| Sep 23 23:06:29 thanks darken Sep 23 23:06:49 wouldn't work across devices Sep 23 23:06:54 also true Sep 23 23:07:08 what kind of app? Sep 23 23:07:35 Porn based. Sep 23 23:07:43 :D Sep 23 23:07:53 It's a weather app. :) Sep 23 23:08:06 a remote server wouldn't be that expensive Sep 23 23:08:16 or is it more of a "don't want to maintain that" stance? Sep 23 23:08:17 no no, I know Sep 23 23:08:29 yeah, more of that stance Sep 23 23:09:08 For now I just won't have a trial. Sep 23 23:33:18 has anyone used firebase for audio files? Sep 23 23:33:29 or any other backend for storing audio? Sep 24 00:00:51 made a clean new android application project on eclipse Sep 24 00:01:07 "Conversion to Dalvik format failed with error 1" Sep 24 00:02:39 orbyt_, no but what's your issue specifically? Sep 24 00:03:50 adq: Dont have a specific issue, just thinking about building an app where ill be recording audio and streaming audio clips and am looking for backend solutions Sep 24 00:04:08 I know Firebase has Firebase Storage but i havent tried it yet Sep 24 00:04:51 if you don't plan to have an enormous amount of files and need to query specific metadata, why not just using plain file? Sep 24 00:06:10 What do you mean by "plain file"? Sep 24 00:06:20 File <- Sep 24 00:06:43 what? Sep 24 00:07:00 instead of storing your audio clip in a db, storing them into files Sep 24 00:07:14 Thats what Firebase Storage is Sep 24 00:07:18 allows file uploads Sep 24 00:07:42 ok ok, i see Sep 24 00:08:11 Yea, the concept is to allow users to record something and be able for other users to listen to it Sep 24 00:08:46 Im thinking AWS is to much for a prototype Sep 24 00:08:55 yeah i know few services like that for browser, like clyp.it or instaud.io Sep 24 00:09:04 but it costs in storage (often amazon cloud iirc) Sep 24 00:11:06 I always store files on the file system and make references to them in the db. Sep 24 00:35:39 onBindViewHolder is called for every cell in a recyclerview, right? Sep 24 00:40:41 its called whenever an item is coming into view Sep 24 00:41:11 Eg it wont be called 50 times automatically just because you have 50 items in the adapter Sep 24 00:42:49 crap Sep 24 00:42:58 err, wait Sep 24 00:43:26 that’s what I want Sep 24 01:03:50 Why would com.google.firebase:firebase-core:9.6.0 fail to resolve? Sep 24 01:04:02 its the version they have listed on the firebase getting started guide Sep 24 01:05:00 my play services is up to date as well Sep 24 01:15:03 friday night humor : a popular YouTuber who destroys technology for fame and riches -- has uploaded a video where he drills a hole into an iPhone 7, claiming it to be a "secret hack" to reinstall a headphone jack in the device. The only problem is that he didn't tell people it was a joke, and of course, some people fell for it. Sep 24 01:22:47 GMS 9.6.1 Sep 24 01:24:45 g00s: he must be already rich to destroy an iPhone 7 Sep 24 01:25:42 anyway, does that hack work an Nexus 5x too? I wanted a second jack to share music with other people Sep 24 01:27:01 Arancio, Most people who do stupid stuff like that make a profit from YouTube add revenue. Sep 24 01:27:25 So they are actually making more money by destroying the phone. Sep 24 01:28:27 Can somebody make more than 800$ from a single YouTube video? Sep 24 01:29:23 it's not just from a single video, but yes Sep 24 01:29:37 Kotlin might get something like a `static` keyword: https://www.reddit.com/r/Kotlin/comments/53ztdm/kotlin_104_is_here/d7yvrn5?context=1 Sep 24 01:32:08 I think it should. It's really clunky declaring a companion object and using `const` (for primitives or String references) or `@JvmField` (for anything else) if you want static fields in the bytecode. Sep 24 01:49:54 I ask the other day but didn't get a definite answer: Is there any sensible situation where a View's actual size is different from its 'measured size'? Sep 24 01:50:16 The actual size is determined by View.layout. Sep 24 01:51:46 It seems to me that if the actual size ends up different from the measured size then the whole system has gone wrong. Views call View.setMeasuredDimension after they've already decided what their size is going to be. Sep 24 01:54:03 Hmm, I guess resizing (e.g., animation) might call View.layout with the wrong values (e.g., making the View bigger than it wants to be). Sep 24 02:00:58 The whole system seems weird to me. If I'm a ViewGroup, and my child is a TextView, I can say `textView.layout(0, 0, 50, 50);`, and the TextView isn't expecting to be 50x50 then I'll be either cutting off its text or creating a strange area of blank space. I'd expect not to be able to do this. Sep 24 02:01:10 s/and the/and if the/ Sep 24 02:36:12 orbyt_ try 9.6.1 Sep 24 02:36:17 hey TacticalJoke Sep 24 02:36:33 Hey, g00s. Sep 24 02:38:11 " JRebel for Android now includes an incremental compiler" **** ENDING LOGGING AT Sat Sep 24 02:59:58 2016