**** BEGIN LOGGING AT Sat Nov 21 02:59:59 2015 Nov 21 03:11:07 I don't use the NDK, but as far I'm aware it's still supported. Nov 21 03:11:47 TacticalJoke: where can i read about it using android studio? Nov 21 03:15:53 No idea; sorry. Nov 21 03:17:20 b4b, It was just added to AS not to long ago so probably not much documentation on it. Nov 21 04:22:41 i have two lists. one list is days, another is events. the days have a time variable that is in string form eg "Nov 20, 2015 19:10:11". Events have epoch time, and string form like the days. Both come from GETs that take timezone offset as a param (eg their string dates are using same timezone offset). What's the best way to determine if an event is on a given day? Nov 21 04:30:56 use the calendar api of your choice Nov 21 04:31:46 using java.util.calendar, set the calendar to the date you want, and set the time to 00:00:00, getTime, set it to 1 second before midnight the next day, get time, check if epoch time is in range Nov 21 04:35:47 so if DLS was in effect Nov 21 04:36:00 then getTime from that cal would be +/- the hour in millseconds? Nov 21 04:36:36 the calendar knows about dst Nov 21 04:36:44 right Nov 21 04:36:54 so if i did calendar.getTimeInMillis Nov 21 04:37:06 that would be less or more accounting for DLS? Nov 21 04:37:13 so it would be correct unless you provide it the incorrect time zone Nov 21 04:37:18 it is called dst Nov 21 04:37:23 get it right Nov 21 04:37:28 damn TimeZone is a stupid class, can't tell that " GMT-07" is the same as "GMT-07" Nov 21 04:37:40 Only answer so far: "Kotlin": https://www.reddit.com/r/androiddev/comments/3tm66u/what_is_the_most_exciting_thing_going_on_right/ Nov 21 04:37:47 its friday night about 9pm i've been here since 8 Nov 21 04:37:48 Is there anything else that qualifies as exciting? Nov 21 04:37:58 i want to leave acronyms mean nothing to me right now but thanks Nov 21 04:38:22 pfn yeah i know unfortunatly GMT+7 is WRONG because it won't account for DST Nov 21 04:38:30 you have to use Pacific/Los Angelos Nov 21 04:43:14 Not to be confused with San Francisca Nov 21 04:44:14 the timezone is apparently named that Nov 21 04:47:10 lasserix, of course Nov 21 04:47:23 and gmt+7 is in asia Nov 21 04:49:28 CedricBeust, I made a build of u2020 in sbt vs gradle to compare https://gist.github.com/f31d7dcadaa08e9dc259 Nov 21 04:50:47 So 20 sec for sbt and 35 sec for gradle Nov 21 04:51:13 kobalt not quite there yet but I'll post when it does Nov 21 04:51:32 I'm hoping it can be under 10 seconds :) Nov 21 04:51:59 u2020 is actually very non trivial to build Nov 21 04:52:39 I don't think so, besides the merging and flavor, it's really a straight build Nov 21 04:52:45 really not CPU bound Nov 21 04:52:46 it uses every single feature that gradle offers, plus additional plugins Nov 21 04:52:55 retrolambda and dagger Nov 21 04:52:57 yes, so gradle is at a disadvantage Nov 21 04:53:12 sbt kicks its ass, I'm betting kobalt will too Nov 21 04:53:58 You and I are on a crusade to show the incredulous world that builds don't have to be as slow as gradle makes them look Nov 21 04:56:48 CedricBeust how are you guys going to handle jigsaw? Nov 21 05:05:11 omg this is genius http://grapsus.net/74/ Nov 21 05:05:34 cpu from 74xx gates implementing the 8 brainfuck instructions Nov 21 05:07:09 jigsaw is irrelevant for android, and. outside of that, I scala, so no java, also irrelevant Nov 21 05:13:38 i dunno, reading through jigsaw seems like it will permeate the ecosystem and every java dev will have to deal with it Nov 21 05:15:30 I think one real issue is that Java libraries will start requiring Java 8 (and up) support and Android will be left out. Nov 21 05:20:08 lets say we now use a library that depends on java.io. its an unstated dependency. but tomorrow the dev puts in: module baz { requires java.io } ; our build systems are still going to have to deal with this intelligently; otoh it will be easy to know if a library works with android i guess because android /should/ have its own platform modules Nov 21 05:24:02 g00s: It's planned Nov 21 05:24:24 Yeah agree with g00s, it will impact everyone Nov 21 05:27:01 I wonder what Google is going to do to address these issues. Nov 21 05:29:45 Maybe I'll hear more Monday at the Dev Summit Nov 21 05:29:55 TacticalJoke https://adtmag.com/articles/2015/11/19/progressive-web-apps.aspx Nov 21 05:30:29 CedricBeust isn't Erik's twitter @headinthebox ? Nov 21 05:30:35 i think we know whats in the box ! Nov 21 05:30:45 omg poor erik Nov 21 05:32:31 http://googledevelopers.blogspot.com/2015/11/chrome-dev-summit-2015-thats-wrap.html Nov 21 05:33:17 g00s: Yes it's Erik's twitter Nov 21 05:43:09 TacticalJoke by the time you and i get our apps done google will have pulled the rug from underneath us and have us rewriting everything Nov 21 05:47:29 We might get stuck in a perpetual cycle of not being able to release. Nov 21 05:50:32 Hi g00s, TacticalJoke Nov 21 05:51:09 * g00s casts weary gaze at suhas_sm Nov 21 05:51:31 how do I intall my aar file to local maven repo and then use it in other project as Gradle depency ? Nov 21 05:52:12 suhas_sm: You can refer to it directly on the file system with... path() or file(), I forget Nov 21 05:52:21 or files() Nov 21 05:52:29 hmm Nov 21 05:52:47 suhas_sm the apps that want to use the artifact just need to put mavenLocal() in their dependencies { } block Nov 21 05:53:01 by default i think its ~/.m2repository/ .... Nov 21 05:53:08 not sure on windows :) Nov 21 05:53:43 now publishing is another story. i've had good and bad luck with that depending on the gradle version; last time it seemed to publish the aar but w/o its dependencies stated in the pom ! Nov 21 05:53:46 hmm :) Nov 21 05:53:49 so lol, you will have to try it Nov 21 05:54:08 alright Nov 21 05:54:15 It should publish the dependencies, just that one artifact and its .pom Nov 21 05:54:19 not* publish Nov 21 05:55:41 CedricBeust so if your Foo artifact depends on A and B, those decls should be missing for Foo ? O.o Nov 21 05:56:55 Not sure what you mean by "missing", you just upload the .jar/.aar and its pom (and a few other things if you upload to maven central) Nov 21 05:57:04 suhas_sm so look at uploadArchives & mavenInstaller Nov 21 05:57:06 but you're not responsible for uploading the other dependencies Nov 21 05:57:30 CedricBeust sure but the pom should state it depends on other things right ? Nov 21 05:57:38 Of course Nov 21 05:57:46 yeah thats what was broken last :D Nov 21 05:58:01 Thanks :) Will look at it Nov 21 05:58:24 JCenter is a lot easier to upload stuff to, and less demanding than maven central Nov 21 05:58:39 suhas_sm last i tried was 1.2 or 1.3 so maybe things have changed Nov 21 05:59:04 also some gradle stuff for publishing to maven was incubating, not sure about that either Nov 21 05:59:30 Alrigth will try to find about that too Nov 21 05:59:34 Configuration to upload stuff is like 20-30 lines in gradle, one of the things I meant to fix with kobalt (it's one line :)) Nov 21 06:00:19 CedricBeust do your android projects use maven central or jcenter ? Nov 21 06:00:30 i mean, to pull dependencies Nov 21 06:00:55 g00s: I've never uploaded android stuff anywhere actually. For everything else, it's a mix. JCommander and TestNG go to Maven Central because they have too many users to ignore it. Everything else is JCenter only Nov 21 06:01:47 i am adding google sign in in my android application . i used this https://developers.google.com/identity/sign-in/android/sign-in , but i am getting a white button rendered in my layout , i want it to be red Nov 21 06:01:59 can anyone tell me how this is done / Nov 21 06:17:20 Google is recommending to use the camera2 API, is that really an option if you want to support devices with API < 21 ? Nov 21 06:17:21 suhas_sm this is what i did last http://stackoverflow.com/questions/28361416/gradle-how-to-publish-a-android-library-to-local-repository Nov 21 06:17:46 weird thing tools.android.com says samples at bottom of page, but there are no more samples any more Nov 21 06:18:17 viran: Test the current SDK and use camera1 if you have to Nov 21 06:19:29 CedricBeust: I have to support API 15, there seem to be a bug with nexus 5x phones (photos are inverted) and google's fix is to use camera2 api Nov 21 06:19:58 The last answer seems promisisng Nov 21 06:20:02 viran: Not uncommon, just if/else them Nov 21 06:21:37 suhas_sm this is the incubating thing (still !?!?!) https://docs.gradle.org/current/userguide/publishing_maven.html Nov 21 06:22:57 Publishing with Kobalt: https://github.com/cbeust/kobalt/blob/master/kobalt/src/Build.kt#L130-L132 Nov 21 06:26:28 that stupid maven-publish thing has been in incubation for over 2 years Nov 21 06:26:42 chris banes talked about in in aug 2013 https://chris.banes.me/2013/08/27/pushing-aars-to-maven-central/ Nov 21 06:26:49 wow Nov 21 06:27:04 I publish to JCenter and then ask it to publish to Maven for me Nov 21 06:30:45 I just publish directly. to central Nov 21 06:30:52 sbt-sonatype is awesome Nov 21 06:31:04 ... for people using sbt Nov 21 06:31:09 it takes care of logging into nexus so I don't have to Nov 21 06:32:12 sbt publish-signed sonatypeRelease Nov 21 06:35:50 "Vizio’s Smart TVs track your viewing habits and share it with advertisers, who can then find you on your phone and other devices." lol Nov 21 06:35:57 who needs a smart tv :P Nov 21 06:38:28 I still don't see how cross device linking is a concern, recording audio is an explicit permission Nov 21 06:38:48 "Data broker Experian, for instance, offers a “data enrichment” service that provide “hundreds of attributes” such as age, profession and “wealth indicators” tied to a particular IP address." Nov 21 06:39:28 if there was just an iota of regulation on the data broker guys, i'd be much more open to sharing private info Nov 21 06:56:54 Published to local maven repo :) Nov 21 06:57:06 using uploadArchives Nov 21 06:57:16 maven plugin Nov 21 06:57:23 yeah thats easies ... make sure your pom is correct though :D Nov 21 06:57:42 the pom of the published artifact Nov 21 07:01:42 Alright Nov 21 07:02:07 Next step to publish it to jcenter and maven central Nov 21 07:02:46 Do these suppport private git repos for free or subcription is needed ? Nov 21 07:04:02 no Nov 21 07:07:11 Subcription is needed for both ? Nov 21 07:07:13 damn Nov 21 07:07:43 @g00s transitive depencies are taken care of correctly Nov 21 07:08:00 what else do I need to check in POM Nov 21 07:08:03 CedricBeust in one of your blog posts, i think within the past year - you mentioned some sqlite browser thing, do you remember what it was ? Nov 21 07:08:08 suhas_sm oh great :) Nov 21 07:08:14 that was it Nov 21 07:08:24 g00s: exactly that, SqliteBrowser Ibelieve Nov 21 07:08:35 Very useful Nov 21 07:09:00 CedricBeust ah ok, i found another one called SQLiteStudio .. it has an android plugin, lets you see the db live Nov 21 07:09:27 Nice, the tool I was using required to adb pull the db Nov 21 07:09:50 There's a chrome extension that does that too, never tried it but looked ingenious Nov 21 07:10:28 hm , i only used stetho Nov 21 07:10:35 CedricBeust this is it http://wiki.sqlitestudio.pl/index.php/DbAndroid Nov 21 07:11:08 Looks great Nov 21 07:11:35 for some reason when i posted it to /r/androiddev the other day - it was downvoted Nov 21 07:11:36 And finally a real doc with screen shots and all, hats off Nov 21 07:11:40 that place is weird sometimes Nov 21 07:36:58 CedricBeust what do you think of the new tab bar in Google+ app ? Nov 21 07:38:36 What's that? Nov 21 07:39:16 Google+ app has tabs on the bottom of the screen now Nov 21 07:39:24 like iOS :D Nov 21 07:39:37 they moved everything out of the nav drawer except setting Nov 21 07:40:02 so nav drawer has settings and account picker Nov 21 07:40:53 ah Nov 21 07:51:04 anyone familiar with the camera api? Or more specifically, the Callback that happens after a picture is taken? Nov 21 07:51:33 Im trying to start another activity after the picture is taken and the data is received, but am not sure how to get the Context Nov 21 08:05:01 has any of you implemented delete on swipe on recyclerView? Nov 21 08:05:16 it messes a bit with my rows Nov 21 08:05:23 relevant code: http://pastebin.com/a9n2ugb5 Nov 21 08:05:42 RV ... making easy things hard, and hard things possible :D Nov 21 08:05:59 if i just delete item using i.e. on click then it removes fine Nov 21 08:06:03 but i want fancy swipe Nov 21 08:28:44 Hey.. I asked this last night and didn't get much.. Figured it's earlier tonight, so I'd give it another go. Nov 21 08:29:05 but its caturday Nov 21 08:29:26 Anyone know why none of the NDK samples provided with AS have no trace of Android.mk? Nov 21 08:29:50 None of them seem to have one of these, but according to the docs, it's a required file Nov 21 08:30:15 Am I wrong in my assumption that it's required? Nov 21 08:30:57 i think gradle takes care of it now Nov 21 08:31:38 i.e. my gradle looks like this http://pastebin.com/y1hCj5NA Nov 21 08:31:43 and i dont hagve any .mk Nov 21 08:32:22 Do you do ndk work (I suppose that's a duhhh question) Nov 21 08:32:47 anyone else has the strnage problem in AS that it always changes the languageLevel="JDK_1_8" in misc.xml? Nov 21 08:33:00 Any sdl 2.0 devs here? How hard was to port your C code running opengl es 2 to android? Nov 21 08:33:05 i thought JDK 1.8 isnt supported on android Nov 21 08:33:18 or can i use Java8 features now Nov 21 08:35:31 Hey If I pop up a dialog in my onClickListener... Does the execution of the program stop and resume once the dialog exits or not? Nov 21 08:35:34 Interesting gradle. Nov 21 08:37:02 baash05: it works. probably its a bit outdated Nov 21 08:37:10 it comes where AS first introduced ndk support Nov 21 08:37:51 How do you build? do you do anything special? Nov 21 08:38:31 i followed some tutorial Nov 21 08:38:39 i had to change classpath 'com.android.tools.build:gradle-experimental:0.2.0' Nov 21 08:38:54 cart_man, it doesnt stop it will go on after showing the dialog Nov 21 08:39:09 Do you remember what tutorial? Nov 21 08:39:27 I'm trying to get a NativeActivity hello world running. Nov 21 08:39:30 ktwo: Ok wait.. it does not stop and will go on after dialog... I am a bit confused Nov 21 08:39:50 All the docs I read point me to eclipse. Nov 21 08:39:57 i mean it just continues to process all instructions after the show Nov 21 08:40:06 Does it stop the execution of the calling function and goes into the Dialog...then the Dialog quite the next function in the calling function will run? Nov 21 08:40:16 ktwo: Ohhhh ok Nov 21 08:40:22 if you want it to stop and do something after closing you need to do it in the setPositiveButton handler Nov 21 08:40:39 baash05: i didnt use nativeActivity Nov 21 08:40:43 And I find the samples do not force me to learn enough. Nov 21 08:41:00 ktwo: Hmmm.. ok because I want all the values selected to get retrieved from the class before it gets destroyed Nov 21 08:41:25 I don't think it matters right now because NativeActivity or not, there's java in there. Nov 21 08:41:45 cart_man, well you can pass everything you want to the dialog Nov 21 08:41:48 I just want the hello world part to be drawn by the c++ Nov 21 08:42:35 To be honest, I'll take a single red pixel on the screen as my hello world.. or yellow :) Nov 21 08:42:44 Haha.. Yellow world. :) Nov 21 08:43:19 You know where that tutorial was? Nov 21 08:43:25 baash05: maybe something like that http://ph0b.com/new-android-studio-ndk-support/ Nov 21 08:43:28 i dont remember Nov 21 08:43:53 ktwo: Because initially I thought I would just "upon exit" make the next function do something like "DialogClass.getSelection()" or something similar...so You are sure that it must be a setPositiveButton event? Nov 21 08:44:24 ktwo: I do not know how to work with them yet and quite frankly they can be quite restricting with the passing and sharing of variables Nov 21 08:44:40 not really you can pass anything you want Nov 21 08:45:03 Humm.. it's a start. Nov 21 08:45:27 Wish they'd update http://developer.android.com/ndk/guides/index.html Nov 21 08:45:34 baash05, i believe you still need java for the gui portion Nov 21 08:45:36 you could even pass the activity, and call methods of it in your dialog Nov 21 08:46:14 I'm rather sure you don't need java (but for the wrapper) Nov 21 08:46:31 if i misunderstood something of what you want to do, just post a code snippet on pastie or something Nov 21 08:46:32 OpenGL can do all the gui work Nov 21 08:47:44 i think he justs want the example of printing 'hello world' from native Nov 21 08:47:54 to get project setup Nov 21 08:51:18 Yep Nov 21 08:51:26 exactly.. Nov 21 08:53:12 Just a "yellow world" from native. Nov 21 09:01:33 ktwo: Is there a way I can make different buttons act like a OK button.. For instance... I want the Dialog menu to show a bunch of options..then if the person clicks one the current dialog launches another dialog and then dies? Nov 21 09:05:03 I see a bunch of different rules for okhttp/proguard. Do I need to add anything for OkHttp to proguard? Picasso suggests -dontwarn com.squareup.okhttp.** but stackoverflow posts and elsewhere are suggesting something like this: https://raw.githubusercontent.com/krschultz/android-proguard-snippets/master/libraries/proguard-square-okhttp.pro Nov 21 09:06:49 surf2b1: those PG rules are basically telling it "don't even think about touching any okhttp class" Nov 21 09:07:37 i don't *think* okhttp makes much, if any, use of generated or reflective code (though i have no idea of its internals). as long as it doesn't do any of that, it should actually be fairly safe to let PG do its thing how it wants to Nov 21 09:07:46 sarbs, yeah, I know. I want to obfuscate but worried to push something to production when others have reported issues. Nov 21 09:08:08 s/obfuscate/shrink Nov 21 09:08:25 well, if obfuscation is the only concern, then it's not *too* much of an exposure risk to leave library classes alone Nov 21 09:08:41 it makes figuring out what your obfuscated classes do slightly easier, but not *that* much easier Nov 21 09:09:00 shrinking, that's another matter.. it will definitely affect shrinking, though how much i can't say Nov 21 09:09:22 probably not much. But I'll take what I can get. Nov 21 09:10:10 either way i've done a lot of stuff with PG and the best way i've found is really just to let PG have its way with your code, and then test the shit out of the resulting binary. if stuff breaks, try to isolate the behavior that breaks, then use a java decompiler and look at the code to see what's not there that should be Nov 21 09:11:05 in general, the only things that i've really found that un-fixably break are code autogeneration tools, reflection, and externally-referenced classes (aka android components like activities/services etc) Nov 21 09:11:46 yeah, I wish OkHttp had a proguard config section in their README instead of relying on various SO posts. Nov 21 09:11:56 looking at you JakeWharton :P Nov 21 09:17:26 JW doesn't use proguard, so it's rare that his libraries have PG configurations - when they do, they're configurations contributed by others Nov 21 09:19:44 also holy damn could someone plz do something about baash05 Nov 21 09:19:50 Why is my ArrayAdapter giving an error ? - > http://pastebin.com/KjchqYGH Nov 21 09:20:40 cart_man, what's the error? probably List is null Nov 21 09:20:46 cart_man: https://pbs.twimg.com/media/BPQnIVECcAAqtTp.jpg Nov 21 09:21:05 Cannot resolve constructor Nov 21 09:21:17 sarbs: Lol Nov 21 09:21:56 Error:(24, 23) error: no suitable constructor found for ArrayAdapter(MenuDialog,int,String[]) constructor ArrayAdapter.ArrayAdapter(Context,int,int) is not applicable (argument mismatch; MenuDialog cannot be converted to Context) constructor ArrayAdapter.ArrayAdapter(Context,int,String[]) is not applicable (argument mismatch; MenuDialog cannot be converted to Context) constructor ArrayAdapter.ArrayAdapter(Context,int,List All the constructors take a Context.. You have no Context Nov 21 09:22:02 Choose a different name than List for your list Nov 21 09:22:12 Fuk you are right.... sighhhhh Nov 21 09:22:13 thansk Nov 21 09:22:31 Which is exactly what the error tells you Nov 21 09:24:08 SimonVT: Yeaaa I am not too good at reading them errors yet... getting there Nov 21 09:39:29 Are data bindings worth using? Or are they too complicated to use and set up? Nov 21 09:58:24 JakeWharton: are old retrofit docs stored somewhere? Nov 21 10:15:20 Why does this not work when I call showMe() - > http://pastebin.com/4xskYFq2 : The error is Attempt to invoke virtual method on null object reference . I guess the better question is what do I do to make it show the dialog when I run .show() or .showMe() ? Nov 21 10:42:17 cart_man: have you tried removing the AlertDialog you've got floating above your void method? Nov 21 10:42:47 I don't see you calling showMe anywhere Nov 21 10:42:53 picoferret : Yes saw that right after pasting and tried it ...same stuff... null object reference Nov 21 10:43:13 SimonVT: No that is in the MainActivity where I call shoeMe(); Nov 21 10:43:14 Also, activities can't have custom constructore Nov 21 10:43:16 SimonVT: No that is in the MainActivity where I call showMe(); Nov 21 10:43:24 SimonVT: yea : / Nov 21 10:43:25 Well, then you're using Activity wrong Nov 21 10:43:33 You don't manually instantiate an Activity Nov 21 10:43:52 You can't just randomly extend Activity/Context and expect it to work Nov 21 10:44:13 Yeah, you might also want to remove that constructor and move your initialisation elsewhere, like dump stuff into the intent that makes your activity pop up or something Nov 21 10:44:21 then pull it out in your oncreate Nov 21 10:44:34 Or just not extend Activity, use it like a regular class Nov 21 10:45:41 SimonVT: Ok soo hear me ... I want to have a button an when its clicked I want it to make a menu with a list of Strings I passed it... when it gets .show() it should just pop up and display a list of clickable item . I can not use the activity bar btw. Nov 21 10:45:46 How would I do that? Nov 21 10:47:12 hmm does google spy on me? Nov 21 10:47:47 whenever i get encounter bug on android support Nov 21 10:47:57 With an AlertDialog, or a PopupMenu Nov 21 10:48:01 bah! new update to support library fixing the bug Nov 21 10:56:24 Ashiren: well, obviously you encounter some popular bugs :P Nov 21 11:01:12 cart_man: something like this would work, if you want to pass stuff to an activity and make a dialog with a list pop up http://pastebin.com/Ha7VvrRy Nov 21 11:01:58 I didn't bother removing a bunch of the unused stuff from what you posted but you should get the idea Nov 21 11:20:27 Hi.. anyone around worked with ffmpeg on android? Nov 21 12:24:56 I need to someone to look over the code of an app Nov 21 12:25:07 and fix up IAB and media player service Nov 21 12:26:48 in return for paymen Nov 21 12:26:50 payment* Nov 21 12:36:06 anybody here successfully running Android GBread device on windows? I have problems to install ADB drivers for Alcatel ot-918d Nov 21 12:45:45 Does robolectric make the development workflow faster? Do robolectric tests run fast? Currently, whenever I make a change, building and pushing my app to my phone takes ~30 seconds, which is reaaally slow Nov 21 12:58:25 18 Nov 21 12:58:25 how would i get this with jsoup.doc.select? Nov 21 12:58:35 i need value 18.. any1 got an idea? Nov 21 13:14:35 hi, how can i make the background unclickable while my alertdialog is up ? Nov 21 13:16:17 if your background is an imageview you could set it setEnabled(false); Nov 21 13:17:03 AlertDialog does it automatically oO Nov 21 13:17:14 usually you cant click anything behind it Nov 21 13:17:52 thanks :D Nov 21 13:48:28 Hello. no camera is showing in api 23 but works fine on api 22. Camera.open() returns null on nexus 5 Nov 21 13:48:34 anyone faced the same issue? Nov 21 13:51:42 I'm guessing not requesting the camera permission, if by API 23 you mean compiling to target it. Nov 21 13:52:57 I mean running the same app on api 22 phone works but fails on api 23 phone Nov 21 13:53:15 We get what you mean. Nov 21 13:53:19 Go read what changed with API 23. Nov 21 14:02:06 Mavrik: going through it http://developer.android.com/sdk/api_diff/23/changes.html . I am not using the camera2 package Nov 21 14:03:34 Mavrik: Are you talking about the new runtime permissions calls? Nov 21 14:04:17 how to easily connect and track debug information on mobile (probably trhrough ADB) on linux, using bash ? Nov 21 14:04:30 I would like to grep debug output logs... Nov 21 14:04:51 row output from mobile if may I say Nov 21 14:04:59 linux - ubuntu Nov 21 14:06:14 got it Nov 21 14:06:16 adb logcat :) Nov 21 14:11:15 how do I support both portrait and landscape orientations? Nov 21 14:11:38 android:screenOrientation="landscape" is not doing it? Nov 21 14:26:46 btw - how is your stat for adb logcat - How many rows do you collect on your device? Nov 21 14:27:07 in about 5 min of normal device usage? Nov 21 14:27:55 adb logcat | egrep -i "^./.+\(" | cut -d "(" -f 1 | cut -d "/" -f 2 > /tmp/debugOutput Nov 21 14:28:28 for Samsung T-700 it says 30 000 rows ... Nov 21 14:33:38 samsungs are very spammy Nov 21 14:36:52 would it prolong battery life it it were less spammy? ie - if users were able to supress/awake spammy logging on demand in dev menu... Nov 21 14:37:37 question is would it be recognizable? Nov 21 14:40:38 Logcat is just an in-memory ring buffer, I doubt you'd be able to measure any difference Nov 21 14:41:33 sanketdg: By default your app can be in both portrait and landscape orientation. If it doesn't rotate it's because you told it not to somewhere Nov 21 14:41:49 SimonVT: yes sorry I resolved it Nov 21 14:41:59 hello Nov 21 14:42:35 I am very new to android development Nov 21 14:43:00 so I was wondering if someone can provide me a guideline on how i can laern android development Nov 21 14:43:24 Start by learning java, then go to d.android.com Nov 21 14:43:30 Install the sdk, follow the training docs Nov 21 14:44:05 where can I find training docs? Nov 21 14:44:24 In the develop section Nov 21 14:44:40 thank you Nov 21 14:46:53 SimonVT, some kind of buffer came to my mind too, Nov 21 14:47:53 there is one thing in play guide is sayd to suppress logging, but during that cat - I have cought 352 different apps Nov 21 14:48:09 probably most of them would be device manufacturers Nov 21 15:14:37 Hi Nov 21 15:16:12 I want to design 2 layouts for my calculator like all others. One for simple mode and one for advance mode. So, I have created a menu with 2 options : Simple and Scientific. Now how do I switch to scientific layout? Should I create a new activity with a new layout and pass the intent on option selection? Nov 21 15:16:20 Or is there a better way? Nov 21 15:19:04 just call setContentView again? Nov 21 15:23:04 missingno, you mean in the onClick method of the button I should set the content view again to the new activity? Nov 21 15:24:19 public void buttonClicked(View view) { setContentView(R.layout.activityTwo); } --> like this? Nov 21 15:39:54 In code, how can I send a multi-user MMS? Nov 21 15:40:41 or an aside: anyone know of a free (preferably libre) basic app that would allow sending sms from a computer? Nov 21 15:46:37 does anyone know how to use the NDK? Nov 21 15:58:45 yes Nov 21 16:00:59 any knowledgeable rx people here? Nov 21 16:01:36 yes Nov 21 16:01:53 pfn: are you one of them? Nov 21 16:01:59 nope Nov 21 16:02:03 :P Nov 21 16:02:15 I don't care for rx much Nov 21 16:02:26 it's quite nice Nov 21 16:02:55 all I need is a block until first value received operator and it would be perfect Nov 21 16:03:00 I don't like working with collections of asynchronous items Nov 21 16:03:05 I prefer futures Nov 21 16:03:27 java futures? Nov 21 16:03:36 I have not heard good things Nov 21 16:03:46 no Nov 21 16:04:10 like this https://github.com/pfn/android-futures Nov 21 16:05:07 yes, scala futures are much nicer Nov 21 16:05:15 if I need a stream of data, then I. would consider using rx Nov 21 16:05:20 otherwise, no rx Nov 21 16:05:32 putting them into java does them a disservice Nov 21 16:05:58 eh, works fine, and worst case, you can retrolambda them into submission Nov 21 16:06:36 the app I'm working on is written in scala Nov 21 16:06:40 lucky me Nov 21 16:07:09 rx.scala sucks Nov 21 16:07:28 you think so? Nov 21 16:07:55 it's an ugly api Nov 21 16:07:57 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/Rx.scala Nov 21 16:08:06 needs that at least to make it usable Nov 21 16:10:19 scala to java observable conversions already exist Nov 21 16:10:29 that's not the point Nov 21 16:10:53 all of the rx.scala implicit conversions break type inference Nov 21 16:14:47 I've never experienced that Nov 21 16:15:29 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/GroupEditFragment.scala#L56-64 Nov 21 16:15:44 crap, the latest SourceTree 2.0.5.6 keeps crashing on me Nov 21 16:15:56 example, the subscriptions must be fully typed if you don't asScala Nov 21 16:16:03 thus, type inference is broken Nov 21 16:16:41 use foreach Nov 21 16:17:56 Is it easy to use Scala with Android? Nov 21 16:18:27 yes Nov 21 16:18:29 or maybe don't Nov 21 16:18:53 pfn: I read building using Scala is even slower than using Java Nov 21 16:20:22 compiling scala is slower than java, but building scala android apps is faster than gradle Nov 21 16:20:29 assuming you're not using gradle Nov 21 16:20:38 I'm using gradle right now Nov 21 16:20:48 And building is reaaaaaaaaally slow, 30s per build or so Nov 21 16:21:02 https://gist.github.com/f31d7dcadaa08e9dc259 Nov 21 16:21:10 example, full clean build Nov 21 16:21:15 gradle is 35 s Nov 21 16:21:23 alternative is 20s Nov 21 16:21:32 exact same project, no changes Nov 21 16:22:20 pfn: what's the return type of WidgetObservable.text(whatever)? Nov 21 16:22:23 Huh. 20s is still really bad though. What's compiled when you build? Nov 21 16:22:30 I'm pretty sure that doesn't exist anymore Nov 21 16:22:31 What needs so much computing? Nov 21 16:22:42 subliun, I haven't updated rxandroid Nov 21 16:22:52 autrilla, it's u2020 Nov 21 16:22:55 so a shitton Nov 21 16:23:07 it does retrolambda, dagger, etc Nov 21 16:23:25 plus all of the kooky manifest overlaying Nov 21 16:24:06 the implicit conversions work just fine for me using sqlbrite Nov 21 16:24:10 Okay, my project only uses retrofit, twitter's and facebook's sdk, and the google sign in thing Nov 21 16:24:11 subliun, like I said, I barely using rx Nov 21 16:24:21 (by the way, the code is a mess already) Nov 21 16:24:38 pfn: bit harsh to say it sucks then eh Nov 21 16:24:52 I said rx.scala sucks, it does Nov 21 16:25:02 all the implicit conversions fuck type inference Nov 21 16:25:27 it's generally poorly written Nov 21 16:26:02 just use them explicitly Nov 21 16:27:12 regardless it doesn't affect me at all Nov 21 16:27:13 Also, what the heck is wrong with twitter? They say // Note: Your consumer key and secret should be obfuscated in your source code before shipping. - what? Even if I obfuscate it, it's public. Nov 21 16:27:42 autrilla, yeah, meaningless Nov 21 16:27:49 two conversions in my whole project Nov 21 16:27:54 just knee-jerk pseudo security Nov 21 16:28:01 heh Nov 21 16:28:25 as schneier likes to say, security theater Nov 21 16:28:32 So, should it be secret or not? If someone cares enough to decompile the app they care enough to attach a debugger and see what all the obfuscation evaluates to Nov 21 16:29:10 it should be relatively secret Nov 21 16:29:46 Afaik it'd only allow people to generate twitter auth tokens in my name Nov 21 16:29:50 Not really a big issue Nov 21 16:30:00 anyway, I suppose I'll wait for someone knowledgeable to show up Nov 21 16:30:04 and count against any. api usage limits, if applicable Nov 21 16:30:05 there isn't an rx channel is there? Nov 21 16:30:22 subliun, the general rule is always ask your question Nov 21 16:30:30 no polling Nov 21 16:30:37 bad netiquette Nov 21 16:31:06 anybody who is against polling here? Nov 21 16:31:24 ;) Nov 21 16:31:45 * pfn tosses on ignore list Nov 21 16:31:46 Okay, well, this is what I have: https://gist.github.com/autrilla/f696630a9f2f9277379e. I already find it quite messy, Google, Twitter and Facebook all have different styles for their OAuth stuff Nov 21 16:31:51 subliun, if you're incapable of asking a proper question you will not get an answer. Nov 21 16:32:05 Do learn some basic etiquette :/ Nov 21 16:32:28 I need an operator that blocks until the first value comes through, then operates as a normal observable Nov 21 16:32:41 I've already said this, but I can rephrase it as a question if it would help Nov 21 16:32:53 blocks the subscription? Nov 21 16:33:15 blocks the thread on which subscribe is called Nov 21 16:33:35 hrmf Nov 21 16:33:35 If anyone has any tips on how to make my stuff less messy, I'd really welcome them Nov 21 16:33:39 basically I'm trying to stop the view from being drawn before it's initialised Nov 21 16:33:49 subliun how experienced with rx are you in general? thats an unusual request Nov 21 16:34:06 might have to think about it differently Nov 21 16:34:09 yuck Nov 21 16:34:27 I know it's unusual, which is probably an indication that I'm doing something wrong Nov 21 16:34:35 but it's 3am and the first solution I thought of Nov 21 16:36:19 g00s: I'm using sql brite to fetch information from the db as an observable Nov 21 16:36:39 * pfn goes on a quest to replace all the png drawable icons throughout his apps Nov 21 16:36:46 Hrmf, blocking the subscribe() goes pretty much against how the RxJava is built, so I don't think there's a prebuilt operator for that. Nov 21 16:36:46 the whole pt of rx is abstracting away the concurrency, stuff is pushed to you whenever Nov 21 16:36:47 this is great, because it means my view initialisation code and view update code is the same Nov 21 16:36:58 subliun, I usually just call "setVisible(true)" in the first result. Nov 21 16:37:02 g00s, and as far as I've read, toolbar icons are not tinted automatically, just white list icons Nov 21 16:37:05 pfn lol wabbit hunting Nov 21 16:37:12 But that depends on what your view is. Nov 21 16:37:23 an avatar Nov 21 16:37:25 g00s, it's nice Nov 21 16:37:34 pfn so i should keep my black / white ones for bright / dark theme then ? Nov 21 16:38:05 Mavrik: I've considered that, but it creates an unpleasant flashing effect as the data is loaded in quickly after the view is created empty Nov 21 16:38:08 pfn: what's wrong with pngs? Nov 21 16:38:29 subliun, also, use buffer() to batch data if you're loading a list :) Nov 21 16:38:35 autrilla, vector drawable is infinitely more maintainable Nov 21 16:38:47 Or you'll kill the main thread with updates. Nov 21 16:38:54 pfn: vector drawable? svg? Nov 21 16:39:16 Mavrik: don't worry, already done Nov 21 16:39:26 I just can't imagine that this is a problem no one has had to solve before Nov 21 16:39:58 I mean, the ugly way is to use .toBlocking.first in onCreateView Nov 21 16:40:07 autrilla, no, VectorDrawable Nov 21 16:40:09 then have it properly asynchronous from then on Nov 21 16:40:19 autrilla, distinctly different from svg Nov 21 16:41:53 wait Nov 21 16:41:55 hold on Nov 21 16:43:01 if I run everything on the UI thread, this should be fine Nov 21 16:43:37 that's not great, because later fetches of data for view updates don't need that Nov 21 16:43:51 but it will fix the problem Nov 21 16:47:23 pfn: as I said, if you use foreach the inference works perfectly Nov 21 16:47:50 which you should be if you don't need the subscription Nov 21 16:48:19 subliun, didn't know about foreach, also somewhat ugly, but makes sense, thanks for the tip Nov 21 16:48:47 no problem :) Nov 21 16:54:24 https://github.com/pfn/android-sdk-plugin/issues/228#issuecomment-158661655 Nov 21 16:54:31 meh, hate when people file issues that they're wrong about Nov 21 16:56:33 I should change gen-android to not use android create project some day Nov 21 16:57:29 just use an internal project template, so that it properly creates a scala project Nov 21 16:57:40 instead of generating .java that confuses everyone Nov 21 16:57:42 pfn what do you think this is http://tools.android.com/tech-docs/instant-run Nov 21 16:57:57 g00s, sounds similar to jrebel and protify Nov 21 16:58:06 we'll see what it does Nov 21 16:58:19 I don't see how instant it can be if it's done within gradle, though Nov 21 16:58:49 instant with gradle is < 30 s :P Nov 21 16:58:53 pretty much Nov 21 16:59:11 g00s, I still don't see why you're so resistant to trying something other than gradle, especially when it's demonstrated that you don't even have to write non-gradle config to use it Nov 21 16:59:40 it works and its been getting faster. by muilds are now ~ 7s which is tolerable Nov 21 16:59:46 *builds Nov 21 16:59:58 small app :p Nov 21 17:00:24 i think what i need to do is get a new router so i can ditch usb, this adb thing is driving me nuts though Nov 21 17:00:44 old router can't reach where i am easily; n7 struggles (although mbp is ok) Nov 21 17:01:03 * pfn is so tempted to order a nexus 5x Nov 21 17:01:15 pfn do you have a 5P already ? Nov 21 17:01:21 i hear more good things about that one Nov 21 17:01:22 no, I still have a 2014 moto x Nov 21 17:01:30 6P is too big, imo Nov 21 17:02:06 Imo the fingerprint scanner is enough reason to get a 5x Nov 21 17:02:09 yeah wish there was a 4" device Nov 21 17:02:43 yeah, fingerprint scanner sounds awesome Nov 21 17:02:50 very tempted Nov 21 17:02:53 just need to justify it Nov 21 17:03:02 I might if I can deduct it off this year's taxes Nov 21 17:05:45 I just wish it was on the front so I didn't have to pick up the phone to unlock it when it's on my desk Nov 21 17:06:42 surprised phone isn't smart enough to stay unlocked if you are at a certain place Nov 21 17:06:54 i would think that would be one of those contextual UX things Nov 21 17:06:59 g00s, it is Nov 21 17:07:01 smartlock does it Nov 21 17:07:04 ah ok Nov 21 17:07:14 I use smartlock for onbody, location, and bluetooth detection Nov 21 17:08:53 but I wouldn't enable it at work Nov 21 17:09:01 only onbody and/or bluetooth at work Nov 21 17:09:15 and that would necessitate unlocking if it's sitting on the desk Nov 21 17:11:06 Would also be nice if it had a flatter back, also for when it's lying on my desk Nov 21 17:11:15 Kind of wobbly if used without holding it Nov 21 17:11:44 SimonVT, get a desk stand :p Nov 21 17:11:51 all my devices go on stands Nov 21 17:12:01 * pfn still uses his clingo that Napalm recommended years ago Nov 21 17:12:52 That's just more crap for my desk ;d Nov 21 17:13:07 it's neater to have it on a stand than lying on desk Nov 21 17:13:16 But overall I'm happy with the 5x, just hoping the next nexus will have front fingerprint scanner and a flat back Nov 21 17:14:11 there are so many wireless power standards, i hope something converges there too Nov 21 17:14:24 this is going to be vhs vs betamax again Nov 21 17:15:13 yeah, I might just get a 5x soon Nov 21 17:15:21 although everyone tells me the 6P is way more worth it Nov 21 17:15:59 Only reason I didn't get it was because it's called 6P and not 5P Nov 21 17:29:24 pfn hmm, this isn't working. i put a vectorDrawable in my project but for a dark theme, its still turning up as black. i thought it would be tinted like the other icons (more, etc) Nov 21 17:29:35 (in the toolbar) Nov 21 17:29:41 g00s, see what I said above Nov 21 17:29:54 ic_settings_black_24dp.xml Nov 21 17:29:55 oops Nov 21 17:29:59 g00s, and as far as I've read, toolbar icons are not tinted automatically, just white list icons Nov 21 17:30:01 whitelisted Nov 21 17:30:15 ooh Nov 21 17:30:26 i thought Toolbar handled it all, ok Nov 21 17:31:01 g00s: This is what I saying yesterday. :D Nov 21 17:31:08 Well, at least about AppCompat. Nov 21 17:31:34 g00s, http://stackoverflow.com/questions/26780046/menuitem-tinting-on-appcompat-toolbar Nov 21 17:31:34 TacticalJoke oh, i thought consensus was Toolbar and a few others like NavigationView auto tinted things Nov 21 17:31:49 g00s: It auto-tints a bunch of standard drawables (such as the "up" one). Nov 21 17:31:54 But that's it. Nov 21 17:32:13 TacticalJoke so nothing you supply; or as pfn says a defined whitelist Nov 21 17:32:22 Yeah, it's in TintManager.java. Nov 21 17:32:28 The whitelist is. Nov 21 17:32:35 pfn ah good link Nov 21 17:33:26 lol thats cheesy Nov 21 17:33:30 it is Nov 21 17:44:34 pfn: if you know how to use the NDK, i've been trying to figure out how to compile this app Nov 21 17:44:46 https://github.com/tompudding/pipboy Nov 21 17:47:48 if you are having problems with AS losing focus during some builds, please star https://code.google.com/p/android/issues/detail?id=194863 Nov 21 17:47:50 Android Studio is capable of selecting code fragments that are incompatible with min API. This works for single document. How can it be done for whole project? Something like ctrl+alt+F, but instead searching for word... Nov 21 17:49:15 Looking at your C++ it doesn't exactly look like you know that language though Nov 21 17:49:15 Shut up. One header file for everything is a great choice! Like I said, This was just hacked together over a few weekends Nov 21 17:49:16 lol Nov 21 17:50:09 ecofriendly, download ndk, run ndk-build in pip-boy Nov 21 17:50:10 done Nov 21 17:50:14 then ant Nov 21 17:50:27 pfn, thanks that helped! Nov 21 17:51:34 does the ndk come with the sdk Nov 21 17:51:36 pfn: Nov 21 17:52:00 and any suggested IDE? Nov 21 17:52:03 i assume AS Nov 21 17:53:05 no, and that was written prior to AS Nov 21 17:55:54 sol android lint AS, Analyze -> Inspection - create own profile Nov 21 17:56:29 where do i download the NDK? Nov 21 17:56:30 pfn: Nov 21 17:56:44 and should i try eclipse then? Nov 21 17:58:11 ecofriendly, use google Nov 21 17:58:22 It's taking 10-15 minutes to start AS and create a new project/activity. Is that normal? Nov 21 17:58:46 g00s, solution: don't use gradle Nov 21 17:58:54 Squeegee, bad internet connectivity Nov 21 17:59:05 hmm no it's fairly decent Nov 21 17:59:13 well, that is the problem Nov 21 17:59:58 what does internet conectivity has to with that kind of problem? Nov 21 18:00:18 because checking artifacts is the only step that takes forever and is variable Nov 21 18:00:48 my whole system is being sluggish though Nov 21 18:00:53 while this is happening Nov 21 18:01:07 then check top or the process monitor of your choice Nov 21 18:01:26 hmm, can I use theme drawables in a layer list? Nov 21 18:02:44 Squeegee: That is not normal. Nov 21 18:03:23 maybe I should restart Nov 21 18:03:26 Squeegee: You have 8GB RAM and an i5, right? That's better than my machine and I get way better performance than what you described above. Nov 21 18:03:38 8 GB and an i7 Nov 21 18:03:42 Oh, right. Nov 21 18:04:03 well i7 from 2011 Nov 21 18:04:17 but still Nov 21 18:04:30 I think my laptop is from 2009. (Jeez, I need a new one.) Nov 21 18:04:36 Or maybe 2010. Nov 21 18:05:55 hmm, how do I obtain theme attributes that aren't in declare-styleable Nov 21 18:05:57 mine is bit older 2008-9 but with newer AS version I am observig sluggish behaviour during background lint check Nov 21 18:06:03 Is there a way to add entries to a list view dynamically. Nov 21 18:06:14 rudolf_: Of course. That's what ListView is all about. Nov 21 18:06:19 god damn it. my refresh icon (ic_refresh_black_24dp) is right next to the system-provided more icon, and they are not the same color. refresh is BLACK while more is like 90% grey or something. i guess i need to add an alpha to this Nov 21 18:06:29 my whole system is very sluggish...AS status bar says "indexing" Nov 21 18:06:41 Squeegee oh , while indexing shit is slow Nov 21 18:06:52 indexing happens when sources change, deps change, new import, etc Nov 21 18:06:55 mouse cursor stops responding, letters are being written with latency Nov 21 18:06:58 just gotta let it finish, get coffee Nov 21 18:07:03 g00s, thanks Nov 21 18:07:07 g00s: It uses the value of `colorControlNormal`. Not sure off-hand what that is for light themes. Nov 21 18:07:13 hopefully this doesn't happen too often Nov 21 18:07:36 suggest function are reacting with bigger latencies than on earlier versions Nov 21 18:07:37 :/ Nov 21 18:07:38 TacticalJoke hm ok thanks Nov 21 18:07:40 Or the default value of that if that is a colour state list. Nov 21 18:07:42 pfn: Just create an int[] and pass to the obtain method Nov 21 18:07:56 TacticalJoke, so I can do something on a click of a button and the result in a listview ? What is the method used? Nov 21 18:08:27 SimonVT, so just obtainStyledAttributes(int[] { R.attr.x }) works? thanks Nov 21 18:08:48 rudolf_: Change the data set and then say `notifyDataSetChanged();`. Nov 21 18:09:05 Or `adapter.notifyDataSetChanged();`. Nov 21 18:09:13 rudolf_, have you used a custom adapter implementation yet? such as creating one that extends BaseAdapter? Nov 21 18:09:40 canvs2321-, no...I am learning stuff :) Nov 21 18:09:40 pfn: Yeah. R.styleable.SomeDeclareStyleable is just an int array Nov 21 18:09:42 And R.styleable.SomeDeclareStyleable_attribute is just an index in that array Nov 21 18:09:48 g00s: I thought it was pure black for light themes and pure white for dark themes, though. Nov 21 18:10:02 SimonVT, indeed, thanks Nov 21 18:10:02 TacticalJoke, ok ..thanks... I will try Nov 21 18:10:57 g00s: Oh, the "theme overlay" thing determines it. Nov 21 18:11:34 I'm using ThemeOverlay.AppCompat.ActionBar, and so I get this: `?android:attr/textColorPrimary`. Nov 21 18:12:09 TacticalJoke, where should I refer to for this method? I am looking in listview properties but it is not there. There is a "deferNotifyDataSetChanged()" in listview. Nov 21 18:12:34 This is relevant: `#de000000` Nov 21 18:12:46 Seems it's not pure black, then, unless I'm misreading something. Nov 21 18:13:03 val icon = Tweaks.themeAttrs(Array(R.attr.qicrChatEndIcon), _.getResourceId(0, 0)) // hmm, doesn't quite find it Nov 21 18:13:05 TacticalJoke i walk away from this theming shit for 2 weeks and it takes me hours to figure it out again (all the attributes and what controls what on appcompat) Nov 21 18:13:38 Yeah, it's quite complicated. Nov 21 18:13:57 rudolf_: It's an adapter method. Nov 21 18:13:58 this is where windows phone is so nice; you just put widgets up and the system themes everything Nov 21 18:14:15 the user can select whatever, your app changes Nov 21 18:14:18 g00s: Just tracing through AppCompat's (and the framework's) theme stuff is really complex. Nov 21 18:14:29 The amount of indirection is sometimes really high. Nov 21 18:18:55 That value I posted above ("#de000000") is repeated in the material guidelines: "Text [in light themes]: 87%". 87% resolves to 0xDE here. Nov 21 18:21:52 Adapters are awesome! Nov 21 18:22:11 Lest say I have a normal listview and one of the preset adapters that comes with android...in this instance the ArrayAdapter ... No I have my list that I filled in with an Array of Strings. So now I want the background of the one Slot or position to change color when clicked... Is that possible? Nov 21 18:23:54 F ( 6207) libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x20 in tid 6214 (JDWP) Nov 21 18:23:57 that's awesome... Nov 21 18:24:07 jdwp lol Nov 21 18:24:17 TacticalJoke, do I need to do anything else apart from "android:cursorVisible="true" " to see the cursor for EditText? I am not able to see the cursor. Nov 21 18:24:58 This is from the xml : http://pastebin.com/cdEvthYA Nov 21 18:25:11 cart_man: Yes, but you're gonna need to go from an array of Strings to an an array of Foo (where Foo has both the String and an "is selected" property). Nov 21 18:25:48 rudolf_: `android:textCursorDrawable="@null"`. Wat. Nov 21 18:26:29 TacticalJoke, someone wrote on a forum that if you are not getting the cursor, try adding this line. :| Nov 21 18:26:50 rudolf_: Why would you need to do anything to get a cursor in an EditText? Nov 21 18:27:34 But I am not seeing a cursor. I have set cursorVisible to true. Nov 21 18:27:38 TacticalJoke: Ok..I am willing to walk that line Nov 21 18:28:50 rudolf_: Try putting an EditText somewhere without any of that noise. You'll see a cursor. Nov 21 18:28:59 So the question is of why you're not seeing a cursor *ignoring* all the noise. Nov 21 18:29:07 maybe it's crashing because I have a lambda-specific breakpoint Nov 21 18:29:08 TacticalJoke, I am using this :