**** BEGIN LOGGING AT Tue Sep 27 02:59:59 2016 Sep 27 03:18:01 so im using if (MainActivity.this.isFinishing()) { } to see if my activity is ending and if so i just return on a retrofit query im doing.. how can i check WHY the activity is ending? Sep 27 03:19:22 Set a flag variable for every instance where you call finish() Sep 27 03:19:32 Everything else is "Dalvik/ART said die" Sep 27 03:35:52 whatitis, yes. :( Sep 27 03:41:56 "New Lenovo layoffs at Moto, company has now lost over 95% of employees in four years" Sep 27 03:42:00 goodbye moto :( Sep 27 03:42:12 :( Sep 27 03:44:22 Lenovo lost me with that stupid rocking TouchPad Sep 27 03:45:18 I've got a w530 i lusr Sep 27 03:52:47 capella-5x: Linus uses the Dell XPS 13 Sep 27 03:53:32 http://www.xda-developers.com/googles-andromeda-to-launch-on-pixel-3-laptop-and-huawei-nexus-tablet-in-2017/ Sep 27 03:53:39 wonder if anyone has seen it yet Sep 27 03:55:58 gordon_: The people building it, I'm sure. Sep 27 04:00:06 loke: I was talking about news :) Sep 27 04:01:15 gordon_: Yeah, I read the story (on Androidpolice I think) this morning. Sep 27 04:02:28 Hello guys Sep 27 04:02:32 Hello Sep 27 04:03:03 how do i export apk from android studio, I edited hello world apk from android studio, i edited font size color and all and now I want to share the apk Sep 27 04:03:19 jennie_: Are you building using Gradle? Sep 27 04:03:30 yes Sep 27 04:03:49 this is the first time I have installed Android studio actually Sep 27 04:06:21 jennie_: If so, then the APK can be found after building in a subdirectory of your project Sep 27 04:06:29 out/production/somethingSomething Sep 27 04:07:09 okay let me check, what is difference between building with gradel and without gradle? Sep 27 04:07:55 jennie_: Well, Gradle is an annoying build-tool that Google uses for all Android stuff these days. Not usin git is nice, but difficult since everything Google does assumes you'll be using Gradle. Sep 27 04:08:44 jennie_: Typically, your apk's will be found in app/build/outputs/apk Sep 27 04:09:38 * loke has to go do some work. Sep 27 04:10:02 gradle is awesome Sep 27 04:10:27 git and gradle are separate things Sep 27 04:11:02 myke: no, gradle is not awesome : Sep 27 04:11:05 :D Sep 27 04:11:20 i love gradle, for java Sep 27 04:12:12 I used maven for java Sep 27 04:12:24 but nowadays just sbt for personal things Sep 27 04:20:15 But what about Kobalt? Sep 27 04:22:35 Well, annything is better than maven Sep 27 04:22:44 gradle is just marginally better. Sep 27 04:28:56 loke, looks like my processor is better, but that's a good price on his machines... after tricking out mine ran around 1800usd couple yrs back Sep 27 04:29:24 soooooo worth it Sep 27 04:29:35 capella-5x: I'm considering buying the XPS mainly because if Linus uses it, I can hopefully be pretty certain that the hardware is fully supported. Sep 27 04:29:53 http://ark.intel.com/compare/88193,64893 Sep 27 04:29:54 It's annoying when some specific feature just doesn't work right because the Linux drivers are fuxo0red Sep 27 04:30:11 not sure that will open Sep 27 04:30:14 And I'm currently using a 5 year old Macbook Air, so I douvt the CPU will be too slow for me :-) Sep 27 04:30:32 heh Sep 27 04:32:22 loke 2009 mbp \o/ Sep 27 04:32:35 g00s: Oh you win. Mine is the 2011 air. :-) Sep 27 04:32:50 i love this machine, its been so solid. apple touchpads are the best Sep 27 04:33:06 But I'm done with Macs for now. THey have steadily become worse and worse. And OSX has become a travesty. Sep 27 04:33:11 but i guess, some things have changed for the worse over the years Sep 27 04:33:17 g00s: Agree about the touchpads though. Sep 27 04:33:38 So, yeah. Time for a Linux machine. Sep 27 04:33:54 hm, i dont think i'll ever do that again Sep 27 04:33:57 heh Sep 27 04:34:15 you and your win phone Sep 27 04:34:47 Who has a win phone? Sep 27 04:34:52 i do Sep 27 04:34:56 old lumia 521 Sep 27 04:35:09 best damn $75 i ever spent in my life Sep 27 04:35:12 Nasty Sep 27 04:36:01 You know you can buy _much_ better rechargable flashlights for $75. Sep 27 04:36:33 not sure what the point is Dagmar Sep 27 04:37:05 521 didn't have a flash, so it couldn't be a flashlight ;) Sep 27 04:38:23 loke: I always bet on thinkpads Sep 27 04:38:44 gordon_ they have problems too ... Sep 27 04:38:51 I dont have any Sep 27 04:38:53 especially some of the new ones don't boot linux at all Sep 27 04:38:54 at least on mine Sep 27 04:39:05 g00s: those are not thinkpads Sep 27 04:39:24 afaik Sep 27 04:39:27 g00s: No, it can't be a _good_ flashlight Sep 27 04:39:55 gordon_ my bad, Yoga 900 Sep 27 04:40:47 also http://www.ubuntu.com/certification/make/Lenovo/ Sep 27 04:51:13 when i first got my mac, in 2009, i knew there was some open source stuff that could be used. but worried that it was much smaller ecosystem. fast forward, and i have to say some of the best SW like Sketch is mac only these days Sep 27 04:51:31 Affinity (Serif) was also Mac only, but I guess now they will do MS port soon Sep 27 04:51:37 hope they can keep things together ;) Sep 27 04:52:15 mac only software is quite dumb Sep 27 04:52:19 but what can I say Sep 27 04:52:24 I'm just a guy ;) Sep 27 04:52:35 gordon_ you sound unsure :) Sep 27 04:52:47 about what ? Sep 27 04:52:51 mac only software? Sep 27 04:52:55 I am sure Sep 27 04:52:58 and I dont use it Sep 27 04:54:09 why would I close myself in expensive prison where they can change everything they want, not asking anyone Sep 27 04:54:27 I know some people do it, and they even go to some strange conference and clap to it Sep 27 04:54:42 then they can even but 150usd ear buds Sep 27 04:55:00 oh yeah, thats horrible Sep 27 04:55:15 s/horrible/amazing Sep 27 04:55:17 apple probably just wants to license the port Sep 27 04:55:39 yeah i agree, its not all roses Sep 27 04:55:45 normally you open to new opportunities, apple closes itself Sep 27 04:56:02 microsoft used to do same thing Sep 27 04:56:31 and now they're panicking (and developing ubuntu for windows and some open source projects) Sep 27 04:58:10 I couldn't play a CD with music without having to copy it on my PC first on a Mac Sep 27 04:58:25 I don't understand how this can be user friendly Sep 27 04:59:02 The point is that someone else called me to fix this problem on *their* Mac, so they probably make the damn things hard for the sake of selling support service Sep 27 05:01:50 wireless earbuds, meh, I bought a wired sports style earlier for 19 and change Sep 27 05:03:04 capella-5x: but why should people know that you're listening to music or talking to someone by having a wire that indicates those things when you can look like a crazy person talking to themselves wireless? Sep 27 05:05:03 Relevant: http://www.youtube.com/watch?v=hVsLzTKArkM Sep 27 05:05:04 yep! there's that! I leave one dangling when out to be obvious Sep 27 05:05:53 two means lemme alone :p Sep 27 05:27:51 I don't understand why a critical thing such as the keystore password can be contained as plaintext in $HOME/.gradle/gradle.properties Sep 27 05:27:57 Or am I doing something wrong? Sep 27 05:32:06 Idiosyncratic: Well, gradle needs to be able to read the keystore. Sep 27 05:32:23 Idiosyncratic: Unless you want the keystore password to have to be typed everyt time you build. Sep 27 05:32:44 loke: marvelous Sep 27 05:32:48 (arguably, it could be cached in the IDE so that you only have to type it once) Sep 27 05:33:09 And to be honest, that's how IDEA native ANdroid builds used to do it, if I remember correctly. Sep 27 05:33:17 Until gradle came along. Sep 27 05:44:35 When I'm manually handling the orientation change, is there an easier, more concise way of updating the view's properties than this? http://hastebin.com/karaperaga.cs Sep 27 05:51:19 hmm? cant you make res/layout and res/layout-land for landscape? Sep 27 05:52:35 Ashiren: it's not about that; I don't want to recreate the activity Sep 27 05:53:00 Ashiren: I already have portrait/landscape properties Sep 27 06:30:12 hey, anyone know why the toolbar is covering up my recyclerview? https://gist.github.com/JelloRanger/c09aa97c685e3ad7b750a2fdd25648cd Sep 27 06:30:31 I replace the framelayout with what's inside the second file Sep 27 06:31:09 Whats the way to load image from asset directory to ImageView in activity layout instead from drawable directory. src="@+id/" is not showing the filename in the asset Sep 27 06:31:14 capella-5x: hi! Sep 27 06:31:23 @drawable/ Sep 27 06:32:42 hey arancio! Room was slow earlier :) Sep 27 06:33:16 did you need me to make some noise? Sep 27 06:34:26 liven it up, but yes ;) Sep 27 06:34:54 I was sleeping, sorry Sep 27 06:35:04 slacker Sep 27 06:35:17 šŸ˜† Sep 27 06:35:38 big-smiley face Sep 27 06:36:05 android:src="@drawable" is highlighted. will @drawable/icon_brand works whereas icon_brand.png in asset Sep 27 06:36:43 capella-5x: today your faces are bigger Sep 27 06:37:03 capella-5x: or maybe it's just that face Sep 27 06:38:24 I have these icons that represent drag handles, you can see them in this image: http://s4.postimg.org/n5qentkl9/Capture.png They are the dotted squares at the right of each row. They work ok in the emulator but when I run the application in the real device they don't work. Only very rarely I'm able to activate the drag mechanism tapping on them. Do you have any idea of what could be the problem? Sep 27 06:42:17 android:src="@drawable/icon_brand" loads from res/drawable directory. What's the way to load from main/assets/ directory, please ? Sep 27 06:43:13 in code, with getAssets Sep 27 06:43:47 in activity layout Sep 27 06:43:53 ? Sep 27 06:45:01 in that activity class file Sep 27 06:45:22 arancio, is it yesterday still? or, didn't you solve that yet? Sep 27 06:46:21 toss the emu and fix it proper Sep 27 06:48:21 how do you use "getAssets" propaganda https://hackernoon.com/8-reasons-android-is-an-amazing-platform-3131f4e00bfc#.d5ch0zc2k Sep 27 06:53:06 Ashiren: 8 reasons for why Android is awesome, but there's only 1 reason for why I'm writing this article: because I'm getting paid and SEO juice Sep 27 06:54:48 capella-5x: I have no idea of why it behaves like that. I even put a almost-transparent background. It doesn't work Sep 27 06:55:01 "Productivity", "Growth", "Founder stories"; yeah, he'd make a video of him sucking on an Android if it'd give him a boost on Google's rankings Sep 27 06:55:47 this artile always starts paragrapth with 'xxx is amazing' Sep 27 06:55:53 felt like on apple conference Sep 27 06:56:46 gordon_: you could hear the seals clapping while reading the article Sep 27 06:57:00 selection handles iirc follow underlying textView content... color and styling of page content won't impact it arancio Sep 27 06:57:36 though maybe blocking touches Sep 27 06:57:39 mmmm Sep 27 06:58:26 z-layer with bubble /capture chain? Sep 27 06:58:43 in webview speak... Sep 27 07:00:28 in any case, log the events on a device Sep 27 07:01:07 hey, anyone know why the toolbar is covering up my recyclerview? https://gist.github.com/JelloRanger/c09aa97c685e3ad7b750a2fdd25648cd Sep 27 07:01:51 boomber: did you add the toolbar in the back code? Sep 27 07:02:05 what do you mean the back code Arancio Sep 27 07:02:22 the Java code of your activity Sep 27 07:02:31 yeah the toolbars visible and everything Sep 27 07:02:38 i even had the recyclerview as part of the activity layout Sep 27 07:02:42 and it was working fine Sep 27 07:02:49 but i moved the recycelrview to its own layout to be a aprt of a fragment Sep 27 07:02:53 and now its covered up by thet oolbar Sep 27 07:03:03 the toolbar is initialized in the activity currently Sep 27 07:03:23 then don't know what to say, sorry. Never had that problem Sep 27 07:04:10 Is anybody here friend of Josh Burton? Sep 27 07:06:05 boomber: Behavior needs to be on a direct child of the CoordinatorLayout, which is your FrameLayout Sep 27 07:06:34 oh the app:layout_behavior? Sep 27 07:06:48 I see, its applying the layout_behavior to framelayout instead of coordinatorlayout Sep 27 07:08:14 SimonVT: its still not working for some reason after moving app:layout_behavior to the parent framelayout Sep 27 07:08:37 is the layout_behaviro still applying to the framelayout even though I decalre it in that element? Sep 27 07:08:55 Parent FrameLayout, or direct child of CoordinatorLayout FrameLayout? You have two Sep 27 07:09:17 I do? Sep 27 07:09:28 so there's the direct child framelayout in the activity xml Sep 27 07:09:31 Yes Sep 27 07:09:37 I replace that with the second file, which also is a framelayout Sep 27 07:09:42 in code Sep 27 07:09:56 so I moved app:layout_behavior to the framelayout that's a part of the fragment xml Sep 27 07:11:05 I don't know then Sep 27 07:11:51 so according to docs the app:layout_behavior has to be declared on the element doing the scrolling Sep 27 07:12:00 so the coordinatorlayout can listen to scroll events Sep 27 07:14:34 qq, when I call .replace() in a fragment transaction, it is actually replacing the layout right? Sep 27 07:14:53 sounds dumb but I just want to make sure of the hierarchy after that transaction occurs Sep 27 07:15:40 No, it replaces any fragment within the viewgroup Sep 27 07:15:46 ok my minds blown but adding the layout_behavior to the framelayout IN in the activity XML works Sep 27 07:15:56 even though I called replace on it Sep 27 07:15:57 :/ Sep 27 07:16:11 I dont understand why its working but ill take it, thanks guys! :D Sep 27 07:16:55 You're welcome! Sep 27 07:17:35 replacing xml or the inflated view? I missed something Sep 27 07:18:06 meh Sep 27 07:18:40 so I have a framelayout in my activity's XML Sep 27 07:18:51 I call .replace(R.id.that_framelayout) and replace it with my fragments XML Sep 27 07:19:08 for some reason an attribute on R.id.that_framelayout is being applied, even though I replaced it Sep 27 07:19:32 boomber: Are you using instant run? Sep 27 07:19:33 replace doesn't work like you think it does Sep 27 07:19:46 loke: yes but I restarted too and it works Sep 27 07:19:57 I mean its getting the behavior I want but I just dont understand why Sep 27 07:20:04 SimonVT: yeah thats why I asked that question earlier to make sure Sep 27 07:20:06 You pass the id of the view group you want to add the fragment to, removing any fragment in it Sep 27 07:20:23 but there's also a .add() in a fragment transaction, no? Sep 27 07:20:30 Yes Sep 27 07:20:47 That just does the adding Sep 27 07:21:04 ohhhhhhhh Sep 27 07:21:09 There's also remove, you can probably guess what that does Sep 27 07:21:12 so replace is basically remove other layout and add new one Sep 27 07:21:14 add just adds Sep 27 07:21:20 makes sense Sep 27 07:21:28 SimonVT: so does that mean I have 2 nested framelayouts for no reason? Sep 27 07:21:51 I wouldn't say for no reason, but yeah Sep 27 07:22:14 There's likely 3 tho, because implementation detail Sep 27 07:22:26 ah but then I'd have multiple root tags Sep 27 07:22:27 in one file Sep 27 07:22:36 hm Sep 27 07:22:47 odd Sep 27 07:23:43 FrameLayouts are cheap, so don't worry too much Sep 27 07:24:55 right, ok Sep 27 07:26:30 well im gonna head off for the night, thanks again for the help guys Sep 27 07:26:35 appreciate it Sep 27 07:48:22 Do you know where I can read exactly what kind of sensor can Google Fit use and what measures can they do? Google doesn't seem to be able to tell it to me Sep 27 07:48:51 i have a method of type Boolean, inside it is 2 onclick listners for different buttons (a confirmation dialog) id like to return the boolean method as false if u press the cancel button and true if confirm. however when i return true in the confirm button's onclick method (which is of type void) it says i cant return true... because its void. not boolean... so how can i return a boolean the onClick? Sep 27 07:49:02 do i need to change onClick from void to boolean Sep 27 07:57:07 thornekey: you seem confused Sep 27 07:57:19 a little yea Sep 27 07:57:37 thornekey: please paste your code so that people can point pieces from it Sep 27 07:58:06 thornekey: your initial description doesn't make sense, so it's possible that you don't understand what you are doing in first place Sep 27 07:58:27 Arancio, http://hastebin.com/zihesuketa.java Sep 27 07:58:42 i think i just explained it poorly Sep 27 07:59:55 no, you explained it as you think of it which is not what happens Sep 27 08:00:24 ohk Sep 27 08:00:26 haah Sep 27 08:00:33 so how did i go wrong Sep 27 08:00:36 you created a method that should return true/false synchronously Sep 27 08:00:52 you call it -> it returns true or false Sep 27 08:00:54 but Sep 27 08:01:03 in that method you create a dialog and show it Sep 27 08:01:20 hmm Sep 27 08:01:26 right :P Sep 27 08:01:46 at that point the dialog is added to the UI loop and the code in your callback run when the user click on a button, possibly 1 hour later Sep 27 08:02:24 you don't have a result to return when the methods ends Sep 27 08:02:26 so Sep 27 08:02:36 you have to change way of thinking Sep 27 08:03:09 I assume that the code that is calling ConfirmDeleteGroup() will do something in case of true and something else in case of false Sep 27 08:03:11 right? Sep 27 08:03:33 still there? Sep 27 08:03:47 I don't have half hour for you... Sep 27 08:06:01 Well, since you don't answer and I have to go away, I'll tell you that you must pass two continuations (callbacks) to ConfirmDeleteGroup() one to be executed if the user says "Delete" and the other if the user says "Cancel", you then execute the first continuation in the OnClickListener of the Delete button and the second in the other button's click listener Sep 27 08:06:05 Good luck Sep 27 08:06:39 It's poor education to walk away in the middle of an explanation Sep 27 08:13:02 Arancio: A method name beginnign with upper case. Sep 27 08:13:05 * loke vomits a little. Sep 27 08:13:47 Arancio, why does this always happen to you Sep 27 08:14:14 * raoul11 flicks thepoosh's yamaka off Sep 27 08:15:01 https://code.google.com/p/android/issues/detail?id=212879 Sep 27 08:15:16 quick support as always Sep 27 08:16:15 sup sup sup Sep 27 08:33:16 hi Sep 27 08:33:33 I have a recyclerview, each item has a textview and an imageview Sep 27 08:33:48 what I am trying to do is get this showcaseview (https://github.com/amlcurran/ShowcaseView/) to highlight the imageview in the very first recyclerview item Sep 27 08:33:59 i'm having trouble "accessing" that item though Sep 27 08:34:15 I tried RecyclerView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { public void onGlobalLayout() { Sep 27 08:34:42 but if i evaluate RecyclerView.getChildCount() it returns: 0 Sep 27 08:38:25 loke: that was not my method name Sep 27 08:39:32 loke: and please vomit as much as you like: https://msdn.microsoft.com/it-it/library/6sh2ey19(v=vs.110).aspx#Anchor_4 Sep 27 08:45:56 Tonight I had a dream about a 1.45cm Hillary Clinton practicing rhythmic gymnastics and bragging about how she had been better than Donald Trump in the TV debate Sep 27 08:46:08 and I live in Europe Sep 27 08:46:13 -.- Sep 27 08:46:57 ever considered not typing everything that goes through your head into this channel? Sep 27 08:48:29 Leeds has spoken Sep 27 08:49:05 thepoosh: usaid sup and buggered off. SHAME Sep 27 08:49:41 amazing i need AS restart for a jar i dumped in libs to be recognized Sep 27 08:50:29 oh wait, it doesnt. Sep 27 08:58:04 ? Sep 27 08:58:12 raoul11: it's my internet Sep 27 08:58:21 while moving from wifi to wired and vice versa Sep 27 08:58:27 all gets weird Sep 27 08:58:47 k Sep 27 08:59:19 AS being silly thepoosh, wont ack this sdk jar file Sep 27 09:01:35 wtf?! Sep 27 09:01:38 why not gradle? Sep 27 09:02:28 its silly actually Sep 27 09:02:47 but why does it h8 this jar file thepoosh Sep 27 09:04:37 http://cdn.iwastesomuchtime.com/6182012020950iwsmt.jpeg Sep 27 09:04:41 pic relevant? Sep 27 09:05:40 yes Sep 27 09:05:42 always Sep 27 09:21:13 Is there a faster way to manually update a View's properties (size, padding, margin etc) than this? http://hastebin.com/ogoxarexem Sep 27 09:22:26 not really Sep 27 09:22:38 well you could 'cache' res.getDimensionPixelSize(R.dimen.trivia_score_image_size) into some int Sep 27 09:23:07 Idiosyncratic: I don't understand. Most view's properties have accessor methods. Layout parameters are special because are properties of a view that make sense when it is inside of a layout (like WPF's attached properties) and get updated in that way Sep 27 09:24:05 Arancio: I'm manually handling orientation change because I don't want the activity to be restarted when this happens and I want to make the changes more concisely Sep 27 09:24:25 Idiosyncratic: you want to write less code? Sep 27 09:24:29 Arancio: yeah Sep 27 09:25:03 Idiosyncratic: create a static utility method taking a Resource reference and the parameters. Sep 27 09:25:19 Arancio: oh man, that will only make it even bigger :( Sep 27 09:25:21 Idiosyncratic: and hide that cde there Sep 27 09:25:57 Idiosyncratic: then I don't know what to say or maybe I don't understand what's your problem Sep 27 09:26:42 Arancio: I'm looking for a method like View.refreshLayout() or something like that Sep 27 09:27:01 If you repeat that code often for many views, put it in a static method. Otherwise it's just 4 lines Sep 27 09:28:02 Idiosyncratic: I don't understand what's the problem, really. And other people may have problems understanding it too. Sep 27 09:28:13 Unless I'm particularly dumb today Sep 27 09:28:36 But this is the second time you post this code and ask this question and got no feeback Sep 27 09:28:42 Arancio: neah, I'm not finding anything on the internet either Sep 27 09:30:04 no wonder Sep 27 09:30:50 usually you are easy to understand Sep 27 09:31:00 today, I don't know what you are talking about Sep 27 09:31:09 and so google Sep 27 09:32:33 did you smoke some joint? Sep 27 09:32:55 Arancio: I don't even drink Sep 27 09:39:05 Hello! Does anybody know what INSTALL_FAILED_MEDIA_UNAVAILABLE means? Sep 27 09:40:04 Idiosyncratic: what is the advantage of reducing the 4 lines? ease of comprehension? re-use? It is only 4 lines afterall and as Arancio says if you use it from multiple locations just wrap it in method Sep 27 09:41:32 bobtee: because if I happen to change something other than the size like padding or margin, I have to update the code and I might forget something Sep 27 09:42:47 Idiosyncratic: change where? Sep 27 09:43:02 Arancio: the xml Sep 27 09:43:38 Oh just nevermind Sep 27 09:43:40 Idiosyncratic: then setup everything from code always using one method Sep 27 09:44:04 do not set anything in XML Sep 27 09:44:24 you can also create the whole layout in Java code Sep 27 09:45:27 Arancio: you're forgetting that there also are values for landscape, sw600, sw600-landscape and so on Sep 27 09:47:02 Idiosyncratic: properly speaking YOU forgot to state that as part of your problem. Anyway if you don't want to sync code and XML, you can do everything in code Sep 27 09:47:22 Idiosyncratic: can't give you a more meaningful contribute, sorry Sep 27 09:55:00 Idiosyncratic, hrmf, you mean requestLayout() ? Sep 27 09:55:12 Even though I have a feeling you're kinda using a problematic approach in the first place. Sep 27 09:59:02 Mavrik: doesn't work Sep 27 09:59:11 Of course it works. Sep 27 09:59:22 The question is what are you trying to do... relayout everything for new configuration? Sep 27 09:59:36 There's probably better ways for that. Sep 27 09:59:41 Including letting the Activity recreate itself. Sep 27 10:01:03 Mavrik: don't know. This particular activity is pretty complex. Sep 27 10:02:57 Hence why you probably shouldn't try to fix it up manually. Sep 27 10:03:47 asd Sep 27 10:04:28 age/sex/direction? Sep 27 10:05:30 I just got insulted in #android because I asked a very simple question Sep 27 10:06:27 IRC is full of hate Sep 27 10:08:54 Arancio, stop troling. Sep 27 10:10:13 Mavrik: fuck off Sep 27 10:18:21 Arancio: watch your language Sep 27 10:19:52 SimonVT: Leeds called me "idiot" because I asked a simple question on #android. Nobody told him to watch his language and to not insult another user. Sep 27 10:20:29 I don't have the same experience with smartphones as most people have Sep 27 10:20:36 Sorry if I asked a trivial question Sep 27 10:22:18 What other people say is irrelevant, just watch your language Sep 27 10:23:29 Will other people what their language too? Sep 27 10:23:35 watch Sep 27 10:24:23 They'll get the same warning if they step over the line and I'm around to see it, sure Sep 27 10:24:44 Thanks Sep 27 10:25:01 Hello! Does anybody know what INSTALL_FAILED_MEDIA_UNAVAILABLE means? Sep 27 10:26:19 loredan13: you already asked this question. I suggest you to provide more context. Otherwise it means that the install failed because the media was unavailable, obviously Sep 27 10:27:51 Arancio: Okay, I am trying to install an app, it goes fine on Android 5.1.1, but on Android 4.4 it shows this error Sep 27 10:29:24 loredan13: http://stackoverflow.com/questions/9273526/installation-error-install-failed-media-unavailable Sep 27 10:29:33 Arancio: And what is not obvious is what is media in this case. Some say it's an SD card, connecting it didn't do anything Sep 27 10:30:09 loredan13: apparently it can be caused by several reasons including low memory Sep 27 10:32:49 Arancio: There is 467 MB of free memory, I think it's more than needed Sep 27 10:33:32 does logcat give you something more verbose Sep 27 10:40:29 bankai_: I/DefContainer( 6250): Available size: -1MB Sep 27 10:40:30 I/DefContainer( 6250): /sdcard/app-release.apk recommendedInstallLocation = -5 Sep 27 10:40:32 W/ActivityManager( 556): No content provider found for permission revoke: file:///sdcard/app-release.apk Sep 27 10:41:13 bankai_: Nothing else I can see Sep 27 10:43:28 available size -1mb? Sep 27 10:44:48 I have a activity where I can edit a list of items (RecyclerView with swipe to delete, drag & drop to re-order and undo). I also have a "+" button to add items to the list. The item should be selected from another list. Should I use another activity or a dialog to show the list of choices? Sep 27 10:46:07 bankai_: Yeah Sep 27 10:46:23 probably related to that then Sep 27 10:47:39 Arancio: dialog, like this: https://material.google.com/components/dialogs.html Sep 27 11:00:02 bankai_: thanks. I'll take that option into consideration too Sep 27 11:02:33 bankai_: the problem is that the second list can be edited too. A dialog is not the proper place to edit a list. If someone realizes they want to edit the second list while picking an item to be placed in the first list, they have to abort the operation, go in "edit the second list" mode, edit it, then go back and restart the "edit the first list" mode Sep 27 11:03:30 Is this kind of complex workflow used in smartphone applications? Sep 27 11:05:11 have a look at that page i sent you, go to "Simple dialogs" Sep 27 11:07:03 bankai_: I was more interested in full screen dialogs Sep 27 11:08:41 bankai_: I read all the page. Thanks for the link Sep 27 11:15:10 does anyone use jrebel? any feedback? Sep 27 11:18:44 Hi sorry to bother you but i have been stuck with this issue for two days now. I have a class http://pastebin.com/BfXXCj4p. When the gson.fromJson gets called i get the following error http://pastebin.com/sdemLxe7 I have no idea where the $1 at the end of the class name comes from at all. Prior to the exception i get the following warning: http://pastebin.com/HrfssBRE. I have multidex enabled and when googling this i get almost Sep 27 11:18:44 exclusively people having trouble with imported libs but in this case the error occurs for a class that is withing my own project and not an external lib. Sep 27 11:21:09 arkaros: you don't need to apologize for asking a question. You are welcome Sep 27 11:22:13 Arancio: Haha thanks. Any ideas. It seems to me like a build problem but i have tried the usuall delete build folders, clean project, invalidate android studio caches etc and nothing seems to work. Sep 27 11:23:08 arkaros: I had a similar problem to what you have, but I don't recall the fix :(. Are your dependencies up-to-date? Sep 27 11:24:21 Idiosyncratic: Well all the usuall android dependencies should be up to date. I dont receive any warnings about them being out of date atleast Sep 27 11:24:35 Idiosyncratic: hi Sep 27 11:25:39 arkaros: can't help, sorry. I guess something it making reflection in the gson method go crazy but no idea of what Sep 27 11:25:40 arkaros: in the root gradle dependency list, is the gradle at version 2.2.0? Sep 27 11:25:57 arkaros: classpath 'com.android.tools.build:gradle:2.2.0' Sep 27 11:26:11 Idiosyncratic: Yepp Sep 27 11:26:34 arkaros: tried this? https://stackoverflow.com/questions/16641739/android-error-caused-by-java-lang-noclassdeffounderror-android-support-v4-ut Sep 27 11:26:39 Arancio: hey Sep 27 11:27:18 arkaros: nevermind, it's for Eclipse Sep 27 11:27:38 I had this problem too, but I really don't recall how I fixed it Sep 27 11:27:42 arkaros: do you have proguard enabled? Sep 27 11:28:02 Well it's not really related to my problem as far as i can see. The problem they post there is dependency problems where as my problem occurs when trying to fins a class i wrote Sep 27 11:28:23 Ashiren: I have added the class to the keep list Sep 27 11:28:52 I think Arancio might be on to something regarding reflections in Gson Sep 27 11:29:09 do you have MultiDex.install(this); in your Application class Sep 27 11:29:16 $1 is an anonymous inner class, likely the TypeToken instance. Make sure it's not a multidex issue by disabling it or using native multidex (minsdk 21) Sep 27 11:29:37 Ashiren: I have that yes Sep 27 11:29:54 in very beginning of onCreate or attachBaseContext? Sep 27 11:30:12 Ashiren: attachBaseContext Sep 27 11:30:17 ok Sep 27 11:30:25 arkaros, TipAlarmManager$1 is the first anonymous class in TipAlarmManager... either it's getting proguarded or something else goes screwy Sep 27 11:32:42 SimonVT: Im gonna try to separate out the line that initiates the TypeToken and see if the error happens there rather than in the fromJson call Sep 27 11:33:49 It actually does haha so the problem actually occurs when creating the TypeToken Sep 27 11:36:33 Arancio, sorry! my net deid and wouldnt come back for ages :( Sep 27 11:36:39 read the log though :) Sep 27 11:36:54 ill study this Sep 27 11:37:15 thornekey: ok. Hope it helps. Otherwise ask. I'll be away but other people can answer too. Sep 27 11:37:43 cheers for ur info and sorry bout the long time to get back on :) Sep 27 11:37:48 idk how it happened Sep 27 11:38:44 np Sep 27 11:42:00 I finally found someone else who has the exact same problem http://stackoverflow.com/questions/37878957/strange-noclassdeffounderror-when-creating-type-using-typetoken-for-map Sep 27 11:42:10 hi Sep 27 11:42:31 is there a way to color the edittext underline for api < 23? Sep 27 11:42:39 I'm using a textinputlayout Sep 27 11:43:08 I have changed the color when the edittext is focused but I can't find a way to do that for unfocused editexts Sep 27 11:46:39 arkaros: might be because you use ArrayList instead of List Sep 27 11:53:33 I don't see a reason why ArrayList would cause problems Sep 27 11:54:20 SimonVT: I actually found a work arround for not having to use the TypeToken class at all. I still have no idea what caosed the problem to begin with but i have decided that after two days of banging my head against my keyboard i dont care anymore haha. Thank you all for once again being and awesome community :D Sep 27 11:54:43 what'd you do then Sep 27 11:55:59 what did you see? hacker-arkaros Sep 27 11:59:09 Haha i changed http://pastebin.com/mMqqgBaP to http://pastebin.com/rTv3ChXn Sep 27 12:00:54 Sounds like one of those issues where you have a bug elsewhere (e.g. multidex or proguard) that'll come back to bite you eventually Sep 27 12:02:19 Hello. I'm trying to read metadata (geotag, title, width/height) from images in the gallery, taken by the default Android cyanogenmod camera (which doesn't have a geotag setting?) or Open Camera app from the playstore. But all I'm getting is null on every column index. Sep 27 12:02:24 http://pastebin.com/h8uZUkfT _ID is null. Sep 27 12:02:35 Anyone got a clue what I'm doing wrong? Sep 27 12:02:44 SimonVT: When it does you know i will be back haha Sep 27 12:04:20 The image does load at line 33 btw: MediaStore.Images.Media.getBitmap() Sep 27 12:20:36 Heya guys, a quick question. Is it better to convert a website to an app or build the app from 0? Sep 27 12:23:43 to establish an alarm to wake up a user, like a wake up clock, would you use setRepeating() or setInexactRepeating(). How inexact is inexactRepeating()? Sep 27 12:24:37 kalizo102: from the user point of view, it's generally better to have a native app - but it's likely to take more work, so whether it's worth it to you is the question Sep 27 12:24:55 crised: Note: as of API 19, all repeating alarms are inexact Sep 27 12:25:10 https://developer.android.com/reference/android/app/AlarmManager.html#setRepeating(int, long, long, android.app.PendingIntent) Sep 27 12:25:33 the inexact can be vary, within few minutes Sep 27 12:26:49 Ashiren: few minutes? 5 minutes is a lot if I want to wake up at 7 AM Sep 27 12:27:05 Ashiren: my android alarm rings at the exact minute Sep 27 12:27:27 Man, Google has really gone to hell if their URLs have several spaces in them Sep 27 12:27:29 it depends if the device is in deep sleep Sep 27 12:27:53 which is (virtually?) never if device is plugged in Sep 27 12:28:05 plus there is doze mode introduced quite recently Sep 27 12:29:44 Leeds: Does a pre-made website help a developer with the app creation in general? I'm sorry I don't really have any idea about app development.. Sep 27 12:29:54 Ashiren: I see Sep 27 12:31:34 well it generally helps if developer knows how the app should look like Sep 27 12:31:45 kalizo102: depending on your circumstances, an app should be talking to an API and just getting data, while a site presents full pages, designed for human view... Sep 27 12:31:59 You would also need to specify *explicitly* that the phone should wake up for the alarm, and as an alarm clock alarm you would not want to use a "repeating" alarmmanager call Sep 27 12:33:52 Leeds: I want to build a website and an app connected to it. I was going to create the app first and then build the website but the costs are pretty high and I was wondering if building the website first and then create the app based on that would reduce the cost and time for the app developer. Sep 27 12:34:38 kalizo102: let's just ask... what's the app/site going to do? Sep 27 12:35:32 Leeds: Users will be able to follow various websites/social media and show them as an rss feed Sep 27 12:35:49 so... it's an RSS reader? :) Sep 27 12:36:13 Leeds: With a few twists here and there :P Sep 27 12:38:30 seems like the sort of thing where you should really be *trying* to develop the backend and both web and app front-ends in conjunction Sep 27 12:38:45 kalizo102: what do you mean by "converting the website to an app"? Sep 27 12:40:03 Leeds: tyvm mate will look into this Sep 27 12:40:08 kalizo102: you can make a mobile version of the website and make the people interact with that on the smartphone or make a mobile app. Making a mobile app is different enough that you won't be "converting your website". Sep 27 12:41:02 Arancio: I wasn't sure if you could "convert" a website into a native app easier than if you would build it from 0. Sep 27 12:42:05 kalizo102: it would look like building it from zero in any case. If your website has a good web API you should be able to use the same with both the website and the mobile app Sep 27 12:42:39 Arancio: ty for the info Sep 27 12:49:13 Hi guys, I asked this yesterday but I had some issues with internet so I might have missed somebody's answer so I'll repeat it. Sep 27 12:49:15 Guys, serious question. Those of you who actually write test for your apps, what aspects of your app are usually subjects for testing? I finally decided to at least try to be a good developer and start writing tests but for the last week I only stare at my code and ask myself "do I really need to test this? maybe that? or that?". I mean, most of the stuff in Android apps (maybe only me apps?) seem so trivial that I don't even Sep 27 12:49:16 see the reason to test them. Ok, I can write some Espresso tests to check whether all the text labels show right messages in respond to some actions (like I didn't test it manually while I was writing that stuff)... Sep 27 12:49:16 * [Saint] has quit (Read error: Connection reset by peer) Sep 27 12:49:17 * romeomajk (~romeomajk@c-94b871d5.08-133-7673745.cust.bredbandsbolaget.se) has joined Sep 27 12:49:19 At the same time I understand that I most certainly just don't understand what aspects of my apps are really crucial one in sense of reliability Sep 27 12:49:24 * [Saint] (~sinner@rockbox/staff/saint) has joined Sep 27 12:49:26 * mib (~mib@41.254.9.21) has joined Sep 27 12:49:28 So, I have an overwhelming feeling to create tests for every error-prone point of my apps, but when I look at the code I'm just stuck thinking "Ok, WHAT TO TEST?" Sep 27 12:49:47 AlexBerdnikov: you really should edit the joins out of that paste... Sep 27 12:49:51 Anyone know how I can get DUMP permissions in my app? Sep 27 12:49:53 SOrry for such a dirty copypasta :) Sep 27 12:50:05 AlexBerdnikov: posting the "joins" is very unpolite Sep 27 12:50:27 I actually did edit just didn't copied it form the editor. Sep 27 12:50:35 Really sorry for that. Sep 27 12:50:48 Ok. You are forgiven Sep 27 12:51:28 AlexBerdnikov: good developers write test first, the app later Sep 27 12:51:35 Either my keyboard or my fingers failed at Ctrl-C Sep 27 12:52:32 Arancio: ok, I know that's exactly what TDD is all about, but again I just don't see what exact part\module\component of my app should be written this way Sep 27 12:53:32 I mean, DB access methods? Network communications? Just tell me the examples of what you test in your app Sep 27 12:53:57 AlexBerdnikov: you can test that to mocking the database and the network Sep 27 12:54:03 to -> too Sep 27 12:54:33 AlexBerdnikov: http://stackoverflow.com/questions/2336488/resources-for-tdd-on-android Sep 27 12:56:28 Thanks Sep 27 13:00:31 hey loke loke` Sep 27 13:04:46 Anyone know how I can get DUMP permissions in my app? Sep 27 13:05:09 Zajt: become an OEM Sep 27 13:05:33 Zajt, did you read this? http://stackoverflow.com/questions/11113349/dumpsys-permission-denial-in-java Sep 27 13:05:44 AlexBerdnikov: you are welcome. Sep 27 13:06:02 "The DUMP permission is defined as android:protectionLevel="signatureOrSystem" so you can't get it unless your app is signed with the platform key, or installed in the system partition." Sep 27 13:08:50 http://i.imgur.com/RsnBbO5.jpg so I edited the text and formatting of this simple hello world application in ANdroid studio, I am trying to find the apk of edited hello world but i couldnt find it, the apk i found has default hello world formatting, where is the new hello world apk which I edited ? Sep 27 13:11:08 the appdebug.apk is showing the default hello world text formatting Sep 27 13:12:36 jennie: that image does not exist Sep 27 13:12:54 :O wait Sep 27 13:12:56 I will reupload Sep 27 13:15:19 http://i.imgur.com/0DQ74pl.jpg Arancio Sep 27 13:16:03 jennie: thanks. I don't understand your problem but I like to watch pictures Sep 27 13:16:27 ahh the light theme Sep 27 13:17:17 its very simple Arancio , I edited the default 'hello world' example from android studio, I edited the text color and size, now I want to export the apk Sep 27 13:18:31 jennie: I never exported an apk in my entire life (which barely includes 2 months of Android development). I just run the app in the emulator or in my device. Sorry Sep 27 13:19:42 jennie: I just pressed "Build apk" in the "Build menu". At the end of the build Android Studio showed a notification and asked if I wanted to open the folder in explorer. There it was the apk Sep 27 13:20:46 yeah, thats what I want, I want to save that apk Sep 27 13:21:52 Thank you Arancio Sep 27 13:27:47 how is it possible for two different pending intents to see the same value for an extra Sep 27 13:28:08 i passed different Intent instances as parameters Sep 27 13:30:14 same id Sep 27 13:34:39 pending intent documentation covers this Sep 27 13:40:52 jennie: lol, you changed your user's name so that we won't find out that you're really a guy? :P Sep 27 13:40:59 jennie: you sneaky bastard :P Sep 27 13:42:20 LOL no Sep 27 13:43:05 Meh, whatever :P Sep 27 13:44:09 Everyone knows that asking questions with a girl's name increases your chances of getting it answered by 20%! Sep 27 13:44:25 Idiosyncratic: I thought it was you Sep 27 13:44:32 Idiosyncratic: I thought jennie was you Sep 27 13:45:23 Idiosyncratic, i do that all the time, its very effective :) Sep 27 13:45:50 Idiosyncratic: didn't you know that there are no girls on the internet? Sep 27 13:49:12 The hysterical obsession over the gender of some random digital identity worries me a lot more than whether or not someone potentially assumes a gender they are not. Sep 27 13:50:19 Joozey: but how will I judge and discriminate people if I don't know their gender?! Sep 27 13:51:10 What also worries me is the hacks I have to apply to extract some metadata from an image from the mediastore, selected by an ACTION_GET_CONTENT intent. Sep 27 13:51:21 there are no girls on the internet Sep 27 13:54:34 XD Sep 27 13:54:55 jennie: whatever, bro, it's not really a big thing :P Sep 27 13:55:41 Idiosyncratic: took winegoddess, for example. It's not a girl, its a wine. Sep 27 13:55:49 take Sep 27 13:56:17 And I myself use a male nick to not be pestered by people Sep 27 13:56:58 In short, not everything is like it seems Sep 27 13:57:15 Welcome to the internet! Sep 27 13:57:24 Idiosyncratic: Did you make another 3$ with a single click? Sep 27 13:57:42 Arancio: :P Sep 27 14:00:11 Arancio - I like wine, but am not wine Sep 27 14:01:53 or Arancio, who is a sentient spider Sep 27 14:12:51 Getting into syntax nitpicking, I like Picasso.with(...) as a name for a static void method to construct a singleton, as opposed to using the new keyword. I was just wondering if there is any sort of standard word that people tend to use for static void helper methods, such as with Sep 27 14:13:16 including with :D Sep 27 14:13:42 yiati: what do you mean? The name depends on what the method does. Sep 27 14:13:57 yiati: and it's not syntax. It's a naming convention Sep 27 14:14:16 I want it to be for getting a builder going to construct a singleton, exactly like Picasso.with() Sep 27 14:14:35 hey guys, i'm building an app that will have to download a lot of data for offline use (with some of our users, it could be up to 22k small images). I've tried to use DownloadManager to download the files, and it works very well for 100 file, 1k files, but 22k files cause the DownloadManager to crash... Are there alternatives ? Another algorithm maybe ? has someone needed to download this many files ? Sep 27 14:14:45 I may go with MyLibrary.with() as well, just wondering if there are any other standards out there that people are comfortable with Sep 27 14:15:25 yiati: I use "make" or "makeAll" (if it returns a list). get() or getInstance() if it's a singleton Sep 27 14:16:05 Arancio: it's doesn't return the object, just the builder Sep 27 14:16:27 I was wrong above when I said static void, meant "static MyLibrary.Builder" Sep 27 14:18:21 H3bus: https://github.com/square/picasso plus https://twitter.com/caseykulm/status/750766520062533632 Sep 27 14:18:30 yiati: if you use a fluent API you don't want to know about builders. I use from(some parameter).thisCharacteristic().thatProperty().make() Sep 27 14:19:36 yiati: the thing is I need to download other files as well as images Sep 27 14:19:48 Arancio: Unless you require some parameters. Picasso returns a builder with Picasso.with(context) because you must have a context Sep 27 14:20:08 H3bus: Use Retrofit and/or OkHttp to do that separately Sep 27 14:20:25 Do some people really tweet about what they discovered in the API of a computer software library? Sep 27 14:21:53 only nerds Sep 27 14:50:12 Awesome. Another asshole on wikipedia releases centuries-old art under the GNU license. Sep 27 14:53:07 The guy isn't even from the US and is apparently Italian. Can Italian law actually allow him to sue me over this GNU bullshit? I'm just curious. Sep 27 15:09:55 it's not his art to license Sep 27 15:09:57 so no Sep 27 15:28:49 how i can create a dynamic menu items with NavigationView ? Sep 27 15:37:27 Idiosyncratic: I'm sure he released his own picture of a work of art under the GNU license. Not a century old piece of art Sep 27 15:38:12 Idiosyncratic: just take a picture yourself or use another picture and you'll be fine. Otherwise release the sources of your application as soon as possible. Sep 27 15:38:37 Arancio: I know, but do most countries' laws permit him to sue me using the GNU copyright as the basis? Sep 27 15:38:56 Especially when it concerns very old art Sep 27 15:39:09 I don't even know how GNU can even be applied to very old art Sep 27 15:39:15 I concerns pictures Sep 27 15:39:23 I'm sure this is all about pictures Sep 27 15:39:39 Arancio: that's bullshit Sep 27 15:39:59 It's pictures not bullshit Sep 27 15:40:00 porco dio Sep 27 15:40:26 gdrc: watch your language Sep 27 15:40:32 binding.callRealHole.getLocationInWindow(array); returns 0 Sep 27 15:40:46 always, also in onResume which is the last step of framgent's lifecycle Sep 27 15:40:59 what the fuck is wrong with this Sep 27 15:41:39 you Sep 27 15:41:55 no the framework Sep 27 15:42:18 Arancio: porco dio (god is a pig) is a serious profanity? Sep 27 15:42:25 *blasphemy Sep 27 15:42:29 yes, very bad Sep 27 15:42:49 handler.postDelayed Sep 27 15:43:01 if this works, i will go to mountain view with some bombs Sep 27 15:43:28 lol it works Sep 27 15:44:13 so to retrieve the coordinate, I have to wait 400ms after onResume Sep 27 15:49:27 gdrc: Why would you go to Mountain View with some bombs? Will you explode them too, will you give them to somebody, sell them or will you just carry them back home? Sep 27 15:49:51 I meant bomboloni, you know Sep 27 15:49:59 I don't know Sep 27 15:50:08 DrBenway: hello, doc! Sep 27 15:50:25 yeah f*ck off Sep 27 15:50:48 oups, wrong channel Sep 27 15:52:54 DrBenway: thanks. same to you Sep 27 15:53:02 What's wrong today with you guys? Sep 27 15:59:28 hmm, how do I detect that the android key store is a hardware token Sep 27 16:00:05 Arancio: now I know what to shout when I'll visit the Vatican Sep 27 16:01:57 Idiosyncratic: are you going to visit the Vatican to take some pictures so that you don't have to use someone else's picture in your app and then discover that they are released under the GPL? Sep 27 16:02:40 Arancio: neah, I wanna go to that big piazza thingy and shout "porco dio" just for kicks Sep 27 16:03:19 Idiosyncratic: what a way to waste your time. Just take some picture anyway. You never know Sep 27 16:03:30 Arancio: pissing people off? Never! Sep 27 16:03:58 Arancio: are you actually offended by this blasphemy? I thought you were an atheist or something Sep 27 16:04:31 pfn: isInsideSecureHardware()? Sep 27 16:04:57 pfn: "Returns true if the key resides inside secure hardware (e.g., Trusted Execution Environment (TEE) or Secure Element (SE)). Key material of such keys is available in plaintext only inside the secure hardware and is not exposed outside of it. " Sep 27 16:06:13 Idiosyncratic: I'm profoundly offended by the fact that anybody can say whatever insult or blasphemy here but me. I always get reprimanded, other people never. Sep 27 16:06:21 meh, can only be determined after a key has been stored inside the keystore Sep 27 16:06:46 Arancio: it doesn't count if it's in other languages :D Sep 27 16:06:48 pfn: start with a sacrificial key? Sep 27 16:07:00 alex_PP, yeah, that would be a solution, albeit ugly Sep 27 16:08:10 pfn: enclose the procedure in a static method, drink some heavily alcoholic beverage and a forget about it! I do it all the time since I program Android and it works! Sep 27 16:09:33 it's funny how people love to complain about android Sep 27 16:09:41 it's rather annoying Sep 27 16:10:02 people love complaining Sep 27 16:10:08 pfn: you won't become a good Android programmer if you don't complain about Android Sep 27 16:10:18 I am a master android programmer Sep 27 16:10:27 I don't complain Sep 27 16:10:39 with anything that you spend 8 hours a day 7 days a week on, little things add up Sep 27 16:10:47 *5 days Sep 27 16:10:49 pfn: apparently master Android programmers complain about Android without using the word "Android" Sep 27 16:13:29 no, because generic whines are useless Sep 27 16:13:39 articulate an actual problem with well-founded arguments Sep 27 16:14:26 I always do Sep 27 16:14:44 pfn: http://harmful.cat-v.org/software/_java/problem-factory.jpg Sep 27 16:15:02 so don't use java :P Sep 27 16:15:10 there's a shitton of alternatives you can use on android now Sep 27 16:15:40 "Sufficiently advanced Java is indistinguishable from satire" Sep 27 16:15:48 :D Sep 27 16:16:25 Idiosyncratic: that picture is silly. When you have a problem you seek for a solution, not for a programming language which, at best, are means to express solutions Sep 27 16:17:07 Idiosyncratic: please articulate your humor with well-founded picture Sep 27 16:17:13 pictures Sep 27 16:17:19 Arancio: http://harmful.cat-v.org/software/_java/java-evil-edition.png Sep 27 16:17:34 juvenile Sep 27 16:17:57 Arancio: :P Sep 27 16:18:45 I don't really care that much, but I find it funny that some people are so principled about this stuff Sep 27 16:19:02 Arancio: just read some of this stuff http://harmful.cat-v.org/software/ Sep 27 16:22:47 not funny Sep 27 16:26:21 so realm now has some sync service Sep 27 16:39:07 so many runnables :/ Sep 27 16:40:54 rip FreeNode Sep 27 16:41:19 Afzal: it's called netsplit Sep 27 16:41:20 azv4 what happened? Sep 27 16:41:28 they lost a server Sep 27 16:41:35 ah Sep 27 16:41:36 not quite the same as a netsplit I think Sep 27 16:41:50 netsplit is when their servers go out of sync, like they cant see each other Sep 27 16:41:51 I wasn't talking about the disconnections Arancio Sep 27 16:41:55 I could be wrong... Sep 27 16:42:08 Afzal: sorry Sep 27 16:42:35 anyway who cares? Sep 27 16:42:42 back to your apps guys! Sep 27 16:44:57 where do I get the scala plug-in for IntelliJ IDEA? Sep 27 16:48:10 Afzal you were using couchdb right ? Sep 27 16:48:32 Idiosyncratic: welcome back Sep 27 16:50:27 pfn: I downloaded the scala plugin for Android Studio. Can I mix scala and java sources? Sep 27 16:55:02 g00s: anything interesting? Sep 27 16:55:19 thepoosh no, over there ? Sep 27 16:55:30 looking into annotation processing Sep 27 16:55:36 to remove boilerplate code Sep 27 16:55:43 not sure if it fits my needs Sep 27 16:55:51 the realm sync stuff looks neat, but surprised people would get into that kind of lock-in Sep 27 16:56:09 (parse, round 2_ Sep 27 16:56:27 ?! Sep 27 16:56:29 Well, hopefully people will have learned a little more on how to architect their apps to minimize the damage Sep 27 16:56:41 realm sync is like Parse or Firebase realtime DB? Sep 27 16:56:43 Arancio, yes Sep 27 16:56:55 Hmmm, maybe I should put that together as a talk, and shop it around to the conventions Sep 27 16:57:00 s73v3r but thats the beauty of it, realm is object store, so people would use it as their models i presume Sep 27 16:57:18 if it goes away, literally the whole M in your app has to be redone Sep 27 16:57:31 super sticky platform Sep 27 16:57:32 you can use realm completely offline Sep 27 16:57:36 so no, it doesn't have to be redone Sep 27 16:57:48 as usual pfn misses the point Sep 27 16:57:49 itā€™s been a while since I used Realm, but Iā€™d have to imagine there are strategies for minimizing that Sep 27 16:58:18 as usual, g00s makes mountains out of mole hills Sep 27 16:58:28 even if realm were to go away today, you can still continue to use realm Sep 27 16:58:31 g00s: https://redd.it/54qaq0 Sep 27 16:58:36 lack of support is a different issue Sep 27 16:58:38 thepoosh is the cost of complexity of annotation processor > cost boilerplate ? Sep 27 16:58:45 you could. most people wouldnā€™t want to, though Sep 27 16:59:01 so your pedantic points donā€™t really contribute much Sep 27 16:59:09 well, I want to learn it, but also it will reduce pressure and stupid mistakes from poeple implementing new activities in the future Sep 27 16:59:09 i love writing annotation processors Sep 27 16:59:12 so it's amazing Sep 27 16:59:22 it's like magic Sep 27 16:59:23 test once use everywhere Sep 27 16:59:31 alex_PP: maybe you can help me then Sep 27 16:59:44 what do you need to know? Sep 27 16:59:45 thepoosh ha thats good Sep 27 17:00:00 super proud of myself for catching that Sep 27 17:00:12 a friend asked me if ConstraintLayout is out of beta Sep 27 17:00:18 so I looked into the code Sep 27 17:00:28 and saw that it was filled with these commits Sep 27 17:00:41 laughed my ass off and then felt sorry for the PM Sep 27 17:00:48 or tech lead Sep 27 17:00:58 alex_PP: https://www.reddit.com/r/androiddev/comments/54q8l7/questions_thread_september_27_2016/d842ufn Sep 27 17:01:20 thepoosh: no Sep 27 17:01:27 no? Sep 27 17:01:33 thepoosh did you see this http://hannesdorfmann.com/annotation-processing/annotationprocessing101 Sep 27 17:01:41 i keep that bookmarked ;) Sep 27 17:01:45 you can't add to an existing method (with the standard stuff) Sep 27 17:01:53 nope Sep 27 17:01:57 s73v3r, most people already do, java 1.6.5 on android Sep 27 17:01:59 will read soon Sep 27 17:02:02 g00s' like is one I always to back to Sep 27 17:02:31 so no good way to annotate a class and then hook the onStart and onStop :( Sep 27 17:02:36 thepoosh, all you can really do is write new files Sep 27 17:02:46 just because it's no longer supported doesn't mean it's not a viable solution Sep 27 17:02:50 so you can implement an interface, or extend an overwrite Sep 27 17:03:02 parse is a different problem, the platform being gone leaves you completely dead Sep 27 17:03:15 if realm went away, any existing code still continues to work Sep 27 17:03:42 for example, auto-value implements your type interfaces Sep 27 17:03:50 yeah, but I'm frowning on this whole baseActivity shit Sep 27 17:03:58 dislike it everywhere Sep 27 17:04:08 you can modify AST from annotation processor, but it's really frowned upon Sep 27 17:04:13 if you insist on wanting to do it, use lombok Sep 27 17:04:17 Having difficulty sorting out this. Trying to set WebView handle screen rotation. Sep 27 17:04:24 probably will forget about it Sep 27 17:04:26 thepoosh i use headless fragments to compose behavior in activities Sep 27 17:04:33 wut Sep 27 17:04:38 do explain Sep 27 17:05:08 Is retain fragment applies for Web View to handle screen rotation. Sep 27 17:05:16 thepoosh: https://en.wikipedia.org/wiki/Composition_over_inheritance Sep 27 17:05:19 thepoosh https://plus.google.com/+JoshBrown42/posts/FzNghPbKk2s Sep 27 17:05:37 alex_PP: remember that from CS classes Sep 27 17:05:50 it was a very interesting course Sep 27 17:06:01 with a terrible professor Sep 27 17:06:01 https://medium.com/@ali.muzaffar/use-headless-fragment-for-android-m-run-time-permissions-and-to-check-network-connectivity-b48615f6272d Sep 27 17:07:17 I am able to get started with fragment to handle configure change. But only Web View is only element in activity. Sep 27 17:09:54 g00s, the Web link is good to read. I will read later. As I have searched though, no indication of using Web View. Sep 27 17:10:51 new-nick: What are you trying to do? Handle screen rotation with a WebView? Sep 27 17:11:10 i had a few terrible profs, one actually knew he was terrible. when i asked how he was doing he's say "well i'm still here" like he was surprised he still had a job lol Sep 27 17:11:19 wtf Sep 27 17:11:29 are we splitting again or is it my own connection? Sep 27 17:11:47 thepoosh yeah weird stuff Sep 27 17:12:02 shit Sep 27 17:12:04 thepoosh https://medium.com/@ali.muzaffar/use-headless-fragment-for-android-m-run-time-permissions-and-to-check-network-connectivity-b48615f6272d Sep 27 17:12:07 got that Sep 27 17:12:10 it's open Sep 27 17:12:11 and hope you got the other one Sep 27 17:12:11 thanks Sep 27 17:12:14 ;) Sep 27 17:12:25 you're an evil person Sep 27 17:12:26 This ship is going down! Sep 27 17:12:33 TacticalJoke woohoo ! Sep 27 17:12:35 I'LL NEVER LET GO, ROSE. Sep 27 17:12:35 other channels are not splitting Sep 27 17:12:40 TacticalJoke: I missed you Sep 27 17:12:43 i thought i would have to wait for Giant Meteor 2016 Sep 27 17:12:43 it's been forever Sep 27 17:12:46 pfn: what's better for developing on Android, scala or kotlin? Sep 27 17:12:52 *wipes a tear* You too, thepoosh. Sep 27 17:12:58 aww Sep 27 17:13:02 where is my Fing reddit client? Sep 27 17:13:07 Whats channel splitting. Sep 27 17:13:24 http://www.geekshed.net/2012/04/whats-a-netsplit/ Sep 27 17:13:24 It's still unreleased. Sep 27 17:13:25 new-nick: Sep 27 17:13:29 NOOOOOOO Sep 27 17:13:31 Release date: TBA. Sep 27 17:13:34 GOD NOOOO Sep 27 17:13:48 Guys, what's better for developing on Android, scala or kotlin? Sep 27 17:13:53 Kotlin. Sep 27 17:13:58 whatever you're comfortable with Sep 27 17:13:59 Oh snap. Sep 27 17:14:21 Arancio: Though Java is the only 'officially supported' way. Sep 27 17:15:56 I have a tabbed activity with a recycler view. When I scroll it, the top bar scrolls with it. How do I stop that? Sep 27 17:16:07 don't use coordinator layout Sep 27 17:16:27 +1 Sep 27 17:16:30 pfn: ? Sep 27 17:16:33 that is what it does Sep 27 17:16:44 awegsrhf: did you use the AS wizard? Sep 27 17:16:52 thepoosh: yes Sep 27 17:17:18 go to activit_main Sep 27 17:17:31 and remove the surrounding CoordinatesLayout Sep 27 17:18:02 thepoosh: I just removed the scroll flags on TOolbar and it worked Sep 27 17:18:07 Toolbar* Sep 27 17:18:21 ok Sep 27 17:18:24 good for you Sep 27 17:18:26 I removed app:layout_scrollFlags="scroll|enterAlways" Sep 27 17:18:32 whats the point of using scala or kotlin over java? Sep 27 17:18:49 napoleon: They're much better languages. Sep 27 17:18:59 napoleon: syntactic sugar Sep 27 17:19:34 TacticalJoke: better is a very subjective thing Sep 27 17:19:54 thepoosh: was going to say that but didn't want to start a debate Sep 27 17:20:19 by all means, start Sep 27 17:20:51 It can be objective. Studies might find that code written in Language X is easier to understand/maintain/test/whatever than code written in Language Y. Sep 27 17:21:08 As an objective fact. Sep 27 17:21:14 https://code.google.com/p/android/issues/detail?id=196652#c16 :') Sep 27 17:21:14 can you please do my job? Sep 27 17:21:17 Ahahhahaah adp <-> bpe Ahahahahah I got it too! Sep 27 17:21:34 TacticalJoke: by that logic JS is the best language out there Sep 27 17:21:34 Arancio, alt nick Sep 27 17:21:46 if it's toplevel, move all the xmlns shit into the next container Sep 27 17:21:46 there's also the appbarlayout that needs to go away Sep 27 17:21:46 and collapsingtoolbarlayout Sep 27 17:21:47 That's not to say that every human is guaranteed to find X better than Y. It's just about trends. Sep 27 17:22:41 I think it's reasonable to state thatJavaScript is widely used for reasons other than goodness. Sep 27 17:22:47 that JavaScript* Sep 27 17:22:50 You just have to remove the behavior Sep 27 17:22:50 you dont need to remove the layout Sep 27 17:23:07 TacticalJoke: you can't use an argument and then not stand behind it Sep 27 17:23:18 thepoosh: I didn't state that popular stuff is good. Sep 27 17:23:36 you said that ease of read is what makes languages better Sep 27 17:24:02 it's not sugar, they're just plain better languages Sep 27 17:24:34 Ease is reading is almost certainly one part of what people mean when they talk of goodness in programming languages. Sep 27 17:24:39 s/is/of/ Sep 27 17:24:55 pfn: explain Sep 27 17:24:59 I'm just saying that it's not just opinion -- it boils down to facts. Sep 27 17:25:15 It's a fact that Brainfuck is harder to program in (on average) than Java. Sep 27 17:25:36 There could be a human who finds Brainfuck way easier. But he is an extreme outlier. Sep 27 17:25:58 yep Sep 27 17:26:01 thepoosh, for kotlin, you have free null safety and flow typing Sep 27 17:26:40 which are dramatic improvements over what is possible in Java, both of which improve your program Sep 27 17:26:55 redundancy++ Sep 27 17:27:57 http://lolcode.org/ Sep 27 17:28:01 #1 Sep 27 17:28:13 so how do u use scala in android dev? Sep 27 17:28:14 and there goes the split again Sep 27 17:28:31 g00s_ was the first to go. Sep 27 17:28:34 thepoosh, scala has a much more advanced type system than anything available on the jvm Sep 27 17:28:52 hmmm Sep 27 17:29:34 pfn: I'm a kotlin fanboy now (since 2 minutes ago). Why is the type system of scala more advanced than kotlin's? Sep 27 17:29:48 http://lolcode.org/ VERSUS http://codecrap.com/ Sep 27 17:30:25 I thought scala ran on the JVM. Not sure if it runs on ART. Sep 27 17:30:55 LOLCODE is adorable. Sep 27 17:31:53 Somebody has written an LOLCODE-to-JVM compiler. Sep 27 17:31:57 does scala and kotlin run in jvm? Sep 27 17:32:15 DLSteve: Android bytecode is produced from JVM bytecode. Sep 27 17:32:19 Like with Java. Sep 27 17:32:52 anything else Sep 27 17:32:53 that also dramatically improves the quality if your application Sep 27 17:32:53 napoleon, by writing code in it :p Sep 27 17:32:53 and using something that can build it Sep 27 17:33:19 TacticalJoke, right but it's not a 1:1 implementation of the JVM. Sep 27 17:33:29 napoleon, both do Sep 27 17:33:57 DLSteve, dalvik. fully implements jvm up to 1.6 Sep 27 17:34:31 DLSteve: How do you mean? Sep 27 17:35:20 adq: what is codecrap Sep 27 17:35:27 do you literally just code crap? Sep 27 17:35:41 TacticalJoke, Should say it's not 1:1 of the current version of the JVM. If I recall ART implements 1.6 and most of 1.7, not sure about 8. Sep 27 17:35:55 orbyt_, title is clear: "where developers go to laugh and cry" Sep 27 17:36:18 TacticalJoke, I was not sure if scala produced bytecode that could run on 1.6 Sep 27 17:36:21 I have my first Kotlin problem and I have nobody to ask... Sep 27 17:36:22 Do you think firebase would be a good solution instead of a privately owned server for an IM app? Sep 27 17:36:52 Kake_Fisk: isn't that what it was invented for? Sep 27 17:36:57 g00s yup, couchdb, what about it? Sep 27 17:37:01 DLSteve, it does, 2.12 will require 1.8 Sep 27 17:37:19 pfn, Ah ok Sep 27 17:37:56 Kotlin plugin thrown an exception! Sep 27 17:38:06 OMG! Sep 27 17:39:15 Anyone know of any unique designs for screens involving a map? Sep 27 17:39:30 Im redesigning the launch schedule in my app Sep 27 17:39:51 unique design? Sep 27 17:40:01 Afzal https://news.ycombinator.com/item?id=12589426 Sep 27 17:40:07 Afzal follow aeharding thread Sep 27 17:40:17 Arancio: Yup, like this one is pretty cool: https://www.pinterest.com/pin/187392034471594722/ Sep 27 17:40:42 g00s haha I *just* opened that page Sep 27 17:42:03 oh Sep 27 17:42:12 ain't nobody got time for yet another server man Sep 27 17:43:17 orbyt_: don't try to be unique. Try to be yourself and you'll be unique! Sep 27 17:43:52 Since Jack is using the Eclipse Java compiler, does that mean it's still generating JVM bytecode? (I thought the main point of Jack was to avoid that step.) Sep 27 17:45:01 TacticalJoke google would have replaced the emitter Sep 27 17:45:18 probably just used the front end compiler, AST construction, parser Sep 27 17:45:34 Ahh, okay. Simple as that. Sep 27 17:47:59 Does anybody use Kotlin, here? Sep 27 17:49:34 Why does this code compiler https://gist.github.com/anonymous/8136d73bc900b193410971e71c18dca8 but this one https://gist.github.com/anonymous/d62f548089abf807ba4d2b7d15447c7f does not? Sep 27 17:50:18 Arancio: did you try checking the error messages? Sep 27 17:50:49 zinx: yes. It says that the call doesn't match any of the method overloads but I don't see why Sep 27 17:51:26 zinx: I should have added it, sorry. Sep 27 17:51:45 Arancio: missing protected? not actually familiar with .kt Sep 27 17:55:29 question Sep 27 17:55:34 if I'm writing a bluetooth library Sep 27 17:55:47 should all the callbacks from gattCallback be posted on the UI thread? Sep 27 17:55:48 zinx: thanks for trying Sep 27 17:56:00 cause gattCallback doesn't post to the UI thread by default Sep 27 17:56:29 and I find myself doing runOnUiThread waaaaaay too much Sep 27 17:56:31 Well, I wasted enough time on Kotline for today Sep 27 17:56:51 Afzal: if they're UI functions, a lot of them do need to be run on the UI thread Sep 27 17:57:18 zinx yeah I know, I'm talking about the bluetooth library, should I just have the callback post on the UI thread anyway then? Sep 27 17:57:26 Afzal: depending on what you're doing, it may make more sense to update the underlying data, and have the UI do updates when the data changes. Sep 27 17:57:59 it's a bluetooth library, there isn't any underlying data Sep 27 17:58:13 Afzal: that should not be a bluetooth library business Sep 27 17:58:23 :/ Sep 27 17:58:26 Afzal: i think you should be ok if it's always accessed from the same thread, or locking is used so it's never accessed from more than one thread at once Sep 27 17:58:57 Afzal: for non-UI of course Sep 27 17:58:57 Arancio the callback from the bluetooth library is bluetooth library's business Sep 27 17:59:07 like onConnected(), onScanned(), onDisconnected() Sep 27 17:59:10 yeah but not where it runs Sep 27 17:59:16 ok nevermind Sep 27 18:00:28 Afzal: what if you reuse your bluetooth library in another context? Sep 27 18:00:29 It doesn't matter where it runs, the bluetooth library needs to call the callback somehow, and thus needs to know which thread to call those methods from Sep 27 18:00:47 I've used it in pretty much all contexts, services, activities, other libraries Sep 27 18:00:54 out of android Sep 27 18:01:00 where there is no UI context Sep 27 18:01:03 UI thread Sep 27 18:01:06 er Sep 27 18:01:07 bro Sep 27 18:01:11 sis Sep 27 18:01:19 why would I want to use an ANDROID bluetooth library outside android? Sep 27 18:01:34 it uses Android APIs Sep 27 18:01:35 You did not specify that Sep 27 18:01:42 Then do as you please Sep 27 18:01:49 yeah okay thanks, obviously you haven't worked with bluetooth then Sep 27 18:02:08 Afzal: for things expected in response to calling on*, probably safest to call them in the function (no extra thread).. for others, Android probably needs better documentation on thread safety :x Sep 27 18:02:57 zinx the bluetooth gatt callback calls methods in separate threads already, by default Sep 27 18:04:25 Afzal: it's possible it's thread-safe Sep 27 18:04:39 Afzal: needing UI thread is unlikely in any event Sep 27 18:09:47 Afzal: do you use Kotlin? Sep 27 18:13:15 Hello Sep 27 18:13:17 I am trying to build AOSP 7.0 for osprey and trying get supersu flashed when you flash the rom but I get this: http://hastebin.com/noqibiqesa.sql Sep 27 18:13:24 Can anyone help? Sep 27 18:13:51 not here. Try #android-root Sep 27 18:13:57 this channel is for app development Sep 27 18:14:04 My bad Sep 27 18:14:09 Thanks Sep 27 18:14:18 no worries, just read the channel messages when you join a room Sep 27 18:15:11 Reading the topic messages is like reading the preface of a book Sep 27 18:15:15 Boooooooooooooring Sep 27 18:22:27 how can i send my app to my phone with gradle? with ant i just do 'ant installd' Sep 27 18:26:46 impulse 'gradle tasks' should give a clue Sep 27 18:27:50 hello Sep 27 18:38:12 need help connecting an asus nexus 7, I've read SO, and the devDocs' but oddly it claims the oem driver even from google is not for windows x64 based systems Sep 27 18:39:13 all other info talks about the device not connecting and being seen in windows, but not if the drivers are not being recgnized in wondows. Sep 27 18:39:46 windows... I have a few different versions of the drivers old google , current google , from ASUS (x2) and these naked drivers Sep 27 19:04:29 Why doesn't Volley give me the response code? Sep 27 19:04:39 VolleyError just hides the underlying response Sep 27 19:11:24 hey guys, i'm trying to use constraintlayout in one of my views and in the layout xml i'm getting warning that i'm using 1.0.0-alpha7 which is obsolete, when i use the intention to upgrade to the recommended version (1.0.0-alpha8), it puts that dependency in my build.gradle file, but gradle can't find that version of the library, how can I fix this? Sep 27 19:11:45 g00s_: thanks Sep 27 19:12:28 fb| make sure you have the latest support lib repo Sep 27 19:13:01 fb| which appears to be 38 Sep 27 19:13:33 Hi guys, I have an issue using a ViewPager .. it does not display any of my items Sep 27 19:13:44 I followed a tutorial and created the adapter and set it Sep 27 19:13:59 debugging shows it is executing the code for instantiateItem Sep 27 19:14:15 just does not show anything inside the view pager Sep 27 19:14:19 any ideas / tips ? Sep 27 19:14:30 this is the tutorial I used : http://codetheory.in/android-image-slideshow-using-viewpager-pageradapter/ Sep 27 19:14:49 g00s_: thanks man! That did it Sep 27 19:30:46 finally conencted again Sep 27 19:44:16 hi Sep 27 19:44:31 how i can change color of the submenu item ? Sep 27 19:44:40 in navigationview Sep 27 19:45:16 Hello @ all :-) Sep 27 19:47:30 how i can change color of the submenu item navigation menu? Sep 27 20:00:29 Hello, small (maybe stupid) question: i want to deploy an app only for a certain users (my app is only not ready and only beta, so i want to deploy the app to my friends only so they can test it)? Is this possible via Google Play Store or have i go via APK install? Sep 27 20:04:02 android-dev002: play has a specific alpha and beta distribution channels Sep 27 20:05:18 thepoosh ahhhh okay, thank you a lot, i will search it via google :-) thank you a lot. Sep 27 20:07:16 thepoosh: Thank you again for the keyword distribution :-) google offers it in german too :-) "https://support.google.com/googleplay/android-developer/answer/3131213?hl=de" Sep 27 20:07:25 ! Sep 27 20:10:33 can greendao generate code in another file (so i would be able to avoid keep/generated annotations)? Sep 27 20:16:16 bitkiller_ isn't that how annotation processors work? they create another file after processing the code Sep 27 20:17:36 from what i've seen, greendao 3 generates code that you can/should extend in-place Sep 27 20:26:25 hey guys, i'm using a rating bar and i'm trying to let the user be able to select from 0-3 stars, the problem is that the moment they tap on any star, I lose the ability to let them remove the current rating to leave the rating bar at 0 rating again. How can I let my users deselect the stars and get a 0 rating option Sep 27 20:27:36 Hey, I've got a question... Sep 27 20:27:51 is it possible to run a gradle step before the apk is uninstalled during the connectedCheck step? Sep 27 20:28:00 (after connectedCheck runs, the apk and data is deleted) Sep 27 20:32:40 matt_j: you want something like this: http://stackoverflow.com/a/23031082 Sep 27 20:32:40 just do your equals check on the task that you need it as a pre-req for Sep 27 20:34:59 fb|: turns out I need this: http://stackoverflow.com/questions/30756119/run-ui-automation-tests-with-gradle-without-uninstalling Sep 27 20:35:02 ffs Sep 27 20:35:07 workaround Sep 27 20:35:26 lol.. Sep 27 20:36:12 Thank you Channel, for all the good tipps you all give me :-) if i ever will finish my app i will give you credits ;-) Sep 27 20:44:47 Is there any way to check if my background service is in fact running? Preferably through adb, as I have to close my app and check that it's still running Sep 27 20:47:31 Hello! Sep 27 20:51:20 j #reddit-dev Sep 27 20:57:45 Dentych can ping logcat from service or put a notification up or something. probably otherways too Sep 27 21:03:56 What's wrong with this channel today? Sep 27 21:04:28 netsplits maybe. Same is happening in a lot of other channels I'm in Sep 27 21:22:10 Where can I find a vertical example video that I can stream into my app? Sep 27 21:23:21 couldnā€™t you record one? Sep 27 21:23:42 just 10 or 20 seconds of you waving your phone in front of your desk Sep 27 21:25:19 about 3 years ago, i had to use an existing db schema in an app; the schema had about 50 tables that had to be synced via a rest/json interface Sep 27 21:26:27 s73v3r: I wouldn't know where to put it so I could stream it. Sep 27 21:26:51 then i build a code generator that output the pojos corresponding to the tables, with ormlite and gson annotations Sep 27 21:26:59 where do you stream from now? Sep 27 21:27:18 bitkiller_: why exactly are you telling this sad story to us? Do you just want us to cry? Sep 27 21:27:36 I don't have a video now. Hence the original question. Sep 27 21:27:37 based on the sqlite table_info, btw Sep 27 21:28:11 The video to stream hasn't been recorded yet. I still would like to prepare my app for it. So I need a video to stream. Sep 27 21:29:08 where do you plan on streaming it from, though? Sep 27 21:29:18 or are they just gonna put it up on YouTube? Sep 27 21:29:54 I have no idea. I guess it depends on what I can stream. I was thinking they'd just put it on a http server so I can get it from the app. Sep 27 21:33:51 All this overridePendingTransition(R.anim.enter, R.anim.exit) ... can I somehow do this in XML? style.xml? AndroidManifest.xml? Sep 27 21:34:54 I guess the easiest place would be to do amazon, youtube, or maybe dropbox Sep 27 21:34:56 at least for testing Sep 27 21:36:33 so here is a fun one: I have a TextView, it has a SpannableString in it. The SpannableString has two links in it. How can I determine which URLSpan the user clicked on? Sep 27 21:36:42 Hm, I should be able to find a random vertical video on youtube and get an url to that for testing Sep 27 21:37:14 and, odds are, your people will want to host the video on YouTube anyway Sep 27 21:38:27 Yes, I've been suggesting that too. Sep 27 21:44:13 nooooooo, vertical videos :( Sep 27 21:44:35 https://www.youtube.com/watch?v=Bt9zSfinwFA Sep 27 21:49:14 It's an intro video inside a portrait-oriented app. I'd say it makes sense to keep the video vertical. Sep 27 21:49:55 I know the VVS PSA =) Sep 27 21:50:02 Zta, as long as it's only for the app :) Sep 27 21:51:35 we play our intro video horizontal, like the good Lord intended Sep 27 21:55:57 bitkiller_: are you ok? Sep 27 21:56:11 wow Sep 27 21:56:16 I'm trying to use build variants but when I create the src/flavor/java directory it isn't recognized (it isn't blue). I'm reading on SO about the "Build Variants view". Where is the "Build Variants" view? I don't see it. Sep 27 21:56:19 you have to be some kind of messed up to understand SpannableStrings Sep 27 21:56:21 jeez Sep 27 21:56:36 SpannableStrings where the font changes multiple times that is Sep 27 21:56:44 xximjasonxx: who are you talking to? Sep 27 21:56:49 myself Sep 27 21:57:19 ah ok. I thought you were talking to someone who is on my ignore list Sep 27 21:58:47 surf2b1: View->Tool Windows->Build Variants Sep 27 21:59:37 xximjasonxx: What are you talking about, spannable strings aren't that hard, are they? Start, end and type of modification for each span, zero or more spans in a string? Sep 27 21:59:46 s73v3r, thanks Sep 27 22:00:40 Thorbear: ever try to have multiple fonts and URLs in the same span, separated by text that is nor Linkyfied() and is a different font Sep 27 22:00:53 *not Sep 27 22:01:08 Yes Sep 27 22:01:16 Well I found it hard, so sue me Sep 27 22:01:27 the fact that i had to set the first font change as inclusive Sep 27 22:01:37 and then ensure my second font change was exclusiveexclusive Sep 27 22:01:53 Hi folks, wondering on CTS v7.0. How can I force abi now? There is --abi, but 32 and 64 no longer work as inputs Sep 27 22:01:58 and then, finally, allow the inclusive font change of the first instance to carry to the end Sep 27 22:02:16 Thorbear: all that being said, you wouldnt happen to know how to pick up individual url clicks within the same span Sep 27 22:02:32 for example, URLSpan on the first 10 points at a different URL as the span around the last 10 Sep 27 22:07:28 I'm not sure I understand what you mean. You have multiple URLSpans pointing to different urls, and want to know which one was clicked? Sep 27 22:09:20 Thorbear: that is correct. Basically I may this text - Google likes Yahoo Sep 27 22:09:54 i woud want Google to be URL clickable and send me to some activity within my application. If Yahoo was clicked I would want that to go to a different Activity. Make sense? Sep 27 22:10:58 Sounds like you don't actually want a URLSpan, but a custom ClickableSpan Sep 27 22:11:14 well, it is good to know that i am moving in the right direction Sep 27 22:11:23 i was hoping I missed something that would allow this to work Sep 27 22:11:56 g00s_: I'm going insane Sep 27 22:13:08 xximjasonxx: extend ClickableSpan, have your class take some constructor-argument to say which activity to go to, and implement the logic for going to those activities in onClick() Sep 27 22:14:23 :) Sep 27 22:14:25 basically there Sep 27 22:14:38 thanks for confirming it though, its what i needed to assuage my worry Thorbear Sep 27 22:15:00 No problem Sep 27 22:15:10 Thorbear knows it all Sep 27 22:15:45 Hopefully its known how one can find SpannableStrings hard when one is not super familiar with them :) Sep 27 22:15:48 Not really, but I don't mind people thinking that I do Sep 27 22:22:26 Why my Internet is not working besides IRC? Sep 27 22:22:30 Arancio, yes i'm ok Sep 27 22:22:44 bitkiller_: good. I was worried Sep 27 22:41:59 so how come iOS can use wifi to send sms but android cant? Sep 27 22:42:31 itā€™s not Sep 27 22:42:45 napoleon, it's basically just Apple's implementation of facebook messenger in the "SMS app" Sep 27 22:43:01 although this is more of a conversation for #android Sep 27 22:44:27 hopefully, Allo becomes that Sep 27 22:44:41 not until itā€™s got proper SMS fallback, it won't Sep 27 22:44:46 but it not being able to handle SMS right now is a major "wtf" point Sep 27 22:45:19 allo is for google hangouts right? or is it its own thing Sep 27 22:46:07 itā€™s own thing Sep 27 22:46:54 napoleon: because iOS sends SMS via Apple's network to other iOS devices Sep 27 22:47:19 like on the same lane as facetime? Sep 27 22:47:52 napoleon: it's like having a messaging app preinstalled that intercepts actual SMS messages but still makes them look like normal SMS messages.. Sep 27 22:48:12 napoleon: many iOS users have actually complained that they can no longer receive SMS from Apple users after they switch from an iOS device to an Android one.... Sep 27 22:48:27 thepoosh welcome to the funhouse ! Sep 27 22:48:35 napoleon: because that's how it works :/ Sep 27 22:48:52 it's 2 am and I'm still working Sep 27 22:48:58 thats what they get for switching Sep 27 22:49:00 got up at 5:45 this morning Sep 27 22:49:05 but i cannot fall asleep Sep 27 22:53:43 thepoosh i have to get up a few times each night to carry my dog down the stairs, so i know sleep depravity :( Sep 27 22:53:55 he's still around? Sep 27 22:54:19 yeah, went a while w/o eating, but started eating again. but the end is coming, he's very frail Sep 27 22:54:21 https://www.youtube.com/watch?v=83I_rQUbw8c Sep 27 22:54:24 too soon? Sep 27 22:59:24 old boy Sep 27 23:00:57 thepoosh i never heard of that show before, until today http://www.indiewire.com/2016/09/zach-galifianakis-hillary-clinton-between-two-ferns-donald-trump-1201730906/ Sep 27 23:01:07 it's amazing Sep 27 23:01:23 also one with obama Sep 27 23:02:07 lol watching the hilary one Sep 27 23:02:39 " Galifianakis asks Clinton what happens if she becomes pregnant during her time in office (ā€œAre we gonna be stuck with Tim Kaine for nine months? How does this work?ā€) haha Sep 27 23:07:35 tim kaine looks like a car salesman Sep 27 23:09:32 thepoosh lol the hillary one was good too Sep 28 00:43:50 How are you supposed to read from a BluetoothGattCharacteristic Sep 28 00:44:35 Im currently doing gatt.readCharacteristic(characteristic) which returns a boolean indicating a successful operation, but it keeps returning false without errors. Sep 28 00:58:44 Anyone know where I might get some.. really old roms? All the links I can find via Google are dead now for the LG Ally Sep 28 01:07:44 http://stackoverflow.com/questions/39736475/reading-from-a-bluetoothgattcharacteristic-is-failing Sep 28 01:42:35 so Fb is coming out with a Slack competitor Sep 28 01:43:34 coz there aren't already enough crappy chat services Sep 28 01:44:23 for business, charging per employee Sep 28 01:49:08 we have so many services. just one would be nice ... **** ENDING LOGGING AT Wed Sep 28 02:59:58 2016