**** BEGIN LOGGING AT Sun Nov 29 03:01:03 2015 Nov 29 03:05:22 hello, I'm curious as to what the headers in the asm directory of the toolchain provided by the NDK are for. is there a place I can learn what all these constants are for? Nov 29 03:08:25 TacticalJoke lol you mean just world hypothesis FTL right Nov 29 03:10:01 vigilancer, if you built, it will be there Nov 29 03:10:18 Yeah. Nov 29 03:13:23 pfn : there are only app and support classes Nov 29 03:15:16 vigilancer, only place it would be, and app classes includes kotlinx Nov 29 03:23:38 what is the easiest way to integrate a REST API from an android app? Nov 29 03:24:12 i.e. just setup the service, make the request, get the data, no bullshit Nov 29 03:28:48 retrofit Nov 29 03:51:55 pfn : in gradle one should add "classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"" to buildscript{..} Nov 29 03:52:18 pfn : shouldn't there be something similar in build.sbt ? Nov 29 03:52:21 that's what kotlinPlugin does, effectively Nov 29 03:53:43 I just don't get how to please IDEA Nov 29 04:09:19 vigilancer, should be a setting in idea that let's you set kotlin compiler plugins Nov 29 04:09:38 I don't use kotlin, I don't know,l Nov 29 04:11:12 vigilancer, it should work automatically as kotlin-android-extensions should be imported automatically Nov 29 04:21:49 pfn : sadly, no luck. too bad, sbt feels nice Nov 29 04:23:18 buck and bazel do not support kotlin, sbt support thanks to Perry, but have some gottachas. but to gradle than :( Nov 29 04:23:25 *back to gradle Nov 29 04:25:23 vigilancer, make sure kotlin-android-extensions shows up in the library list? Nov 29 04:25:54 pfn : it is Nov 29 04:26:20 along with runtime and stdlib Nov 29 04:26:51 I recommend filing a bug for jetbrains Nov 29 04:27:04 they're good at fixing issues Nov 29 04:27:17 s/at/about Nov 29 04:29:56 pfn : not sure if they support sbt, because with gradle android-extensions work like a charm. in terms of valid imports Nov 29 04:30:28 it's not sbt that's the problem, it's them not exposing a way to configure compiler plugins in the ide Nov 29 04:30:38 that is a bug regardless of build tool Nov 29 04:31:12 eg, you create a random kotlin project, how do you then go and add compiler plugins Nov 29 04:31:19 the same thing applies here Nov 29 04:32:43 Is anyone around? Nov 29 04:32:57 no, we are ghosts) Nov 29 04:33:07 oic :) Nov 29 04:33:22 does anyone have experience with RxJava? I have a question regarding it: If I want to essentially bucket observables so that I may count them later, what's the best way to do that? Nov 29 04:34:07 e.g. if I have observables of type T and T has some category field, I would like to bucket into categories. In the subscribe call, I would output the number in each bucket Nov 29 04:36:15 vigilancer, https://kotlinlang.org/docs/tutorials/android-plugin.html that says it can be configured independently Nov 29 04:38:06 psion : toList().map( transformToHashMap ) first guess Nov 29 04:38:19 * pfn shrugs Nov 29 04:39:19 so you can't do anything until your observable is completely done Nov 29 04:39:52 but I guess what vigilancer says sounds like it would work Nov 29 04:40:07 pfn : yeah, he wants collect Nov 29 04:41:23 vigilancer, but yeah, just use gradle for importing into intellij, and build def, but run your builds with sbt Nov 29 04:41:33 I don't know wtf idea does with kotlinx Nov 29 04:41:38 * pfn is not a user Nov 29 04:41:52 vigilancer: I see, I thought about that, but I was wondering if there was a built in operator that matches my use case. thanks though :) Nov 29 04:42:18 pfn: but I need support two build systems in this case) Nov 29 04:42:50 vigilancer, but you don't, android-gradle-build should take care of all that, you just have to add kotlin separately to sbt Nov 29 04:42:57 psion, there is groupBy Nov 29 04:43:12 pfn: ah, that might be want I want, I'll look that up, thanks Nov 29 04:44:07 pfn : I wanted to go pure sbt to get familiar with. well, that's an option Nov 29 04:44:14 pfn: exactly what I needed, thanks Nov 29 04:45:09 vigilancer, yeah, file a bug with jetbrains for a way to configure android- extensions without gradle, their doc says it's doable, but. doesn't say how Nov 29 04:48:10 pfn : link above. "Configuring the dependency" - this part? Nov 29 04:49:00 yes, docs say yes, but no reference Nov 29 04:51:53 tools - kotlin - configure kotlin in project Nov 29 04:51:58 no idea what that does Nov 29 05:08:53 pfn: while preparing to file issue updated kotlin plugins - and voila, import works Nov 29 05:10:44 apparently they fixed a bug Nov 29 05:13:31 now I can play with sbt) Nov 29 05:14:12 pfn : sorry if bothered you too much Nov 29 05:14:42 did the gradle-samples zip file find a new home, i can't find it Nov 29 05:15:00 i have an old gradle-samples-0.13 or something Nov 29 05:17:09 g00s : https://github.com/JetBrains/kotlin-examples ? Nov 29 05:17:35 gradle-samples, not kotlin-samples :P Nov 29 05:17:45 google's gradle plugin samples Nov 29 05:18:08 http://tools.android.com/tech-docs/new-build-system Nov 29 05:18:17 "Samples are at the bottom of this page." Nov 29 05:18:20 nope Nov 29 05:18:54 ah. dunno than Nov 29 05:29:52 samples are. overrated Nov 29 05:30:58 they were very extensive, probably used for testing Nov 29 05:31:53 each sample was a self contained project, total around 70 of them Nov 29 05:32:43 well, you can find the test cases in aosp Nov 29 05:33:21 i'll look for that Nov 29 05:34:29 it's very annoying, I always hit test cases when I'm searching for stuff in aosp Nov 29 05:34:40 and there are a fair number of them Nov 29 05:45:16 TacticalJoke haha, i was just randomly googling 'parcelable state inner class, etc' and this came up first page https://www.reddit.com/r/androiddev/comments/2hlw20/am_i_retarded_or_android_development_is_a_mess/ Nov 29 05:45:47 i think thats before the time i had a reddit account Nov 29 05:53:05 Some good comments in there. Nov 29 05:53:42 most of it is still the same .. Nov 29 05:53:44 I think I should use the `configChanges` thing for my WebView activity. AFAIK, there is no better solution. Nov 29 05:54:42 It makes me think, though -- why not use `configChanges` as the default? The argument "You have to handle process kills anyway, so just use the same system" isn't necessarily convincing. Maybe rotations and process kills should be handled differently in some apps. Nov 29 05:56:23 This kinda thing reminds me of chess. There are some chess positions where beginners and masters tend to make the right moves, while intermediates (despite being *way* better than beginners) tend to make the wrong moves. Nov 29 05:56:49 The beginners make the right moves for the wrong reasons, the intermediates make the wrong moves with the right reasoning, and the masters make the right moves for the right reasons. Nov 29 05:59:05 TacticalJoke when you save instance state for fragments, do you just put each thing in the instate/outstate bundle - or do you make something like gof memento and stuff that in the bundle (like a static inner class which implements parcelable) Nov 29 05:59:32 s/gof/GOF Nov 29 06:00:38 I haven't used Fragments much recently (or in this project). I think I was manually persisting without the memento pattern ages ago, but I can't quite remember. Nov 29 06:11:46 Hmm, now that I'm thinking about `configChanges` again for the first time in forever, I'm thinking that it's a total waste in many apps for Activities to be recreated on rotation. Nov 29 06:12:20 I had previously concluded that using `configChanges="orientation|..."` was a noob move, but maybe it's a master move (in some cases). Nov 29 06:13:25 it's OK to configchanges orientation if you're never going to have orientation specific layouts Nov 29 06:13:54 you can still get it though on a slider phone, pop up a keyboard - maybe the new BB ? Nov 29 06:14:29 then again, preventing one kind of recreation isn't going to prevent bugs that will occur when your activity gets recreated for other reasons Nov 29 06:15:40 g00s: Would `configChanges="keyboard|keyboardHidden"` cover that? Nov 29 06:15:49 android: * Nov 29 06:15:58 i'm rusty, haven't messed with that in ages Nov 29 06:16:19 * g00s assumes worst case scenario, as a defensive pessimist ;) Nov 29 06:31:28 hmm, if i'm using BT to talk to devices, i wonder if i should disable BT for token exchange in GMS Nearby Messages Nov 29 06:57:36 pescimists are happy because they get pleasantly surprised, optimists are sad because they get disappointed Nov 29 07:06:00 and so wrong Nov 29 07:09:35 shmooooz: pessimists :p Nov 29 09:33:56 Anyone know of an easy solution to creating a voice changer? Nov 29 11:01:27 Do you know an "international phone number input" component such as this? (for Android) http://jackocnr.com/intl-tel-input.html Nov 29 11:18:04 AlmogBak_: something like http://www.devx.com/getHelpOn/10MinuteSolution/20414 ? Nov 29 11:18:36 im looking for a UI component Nov 29 11:18:43 something that feels smooth Nov 29 11:21:49 I've been having a less than fun time with c++ and android.. I noticed today how many tutorials there were on VS and android and c++.. Anyone here using VS? Nov 29 11:22:28 AlmogBak_: i can't find anything else. perhaps someone else has something :( Nov 29 11:27:07 well i guess its time to start do really coding work :| Nov 29 11:27:32 im shocked nobody did it before. lazy ppls Nov 29 11:27:52 The google phone number library isn't enough? Nov 29 11:28:57 AlmogBaku: that's not exactly lazy. Nov 29 11:29:02 grees: I believe it depends on how you enter the "sub" activity. Nov 29 11:30:44 AlmogBaku: god forbid you have to actually code something ;) Nov 29 11:32:47 Vainglory i dont have time :( Nov 29 11:33:01 and its totally waste of what I have :(( Nov 29 11:33:14 should have started earlier :/ Nov 29 11:34:56 jahahhahaa Nov 29 11:35:06 :D Nov 29 12:15:20 Hey all:) Nov 29 12:21:47 howdy Nov 29 12:23:17 im just getting started with retrofit. Im trying to interface with a web API and the requests are sent properly, yield 200, and return a JSONObject but the .body() is always empty {} Nov 29 12:23:27 what am i misunderstanding? Nov 29 12:50:37 jonky, try printing the JSONObject.toString(), to see if it's parsing right? Nov 29 13:02:45 Hi, what view can be like squares Nov 29 13:02:48 like in google photos? Nov 29 13:15:11 dvass: in the past I've made custom views to do that. I think I overrode "onMeasure(int width, int height)" and passed the width as both the width and the height to super.onMeasure() Nov 29 13:15:24 like this https://stackoverflow.com/questions/8981029/simple-way-to-do-dynamic-but-square-layout Nov 29 13:15:27 barbs: Seems convulted. Nov 29 13:16:05 yeah, not sure if there's an easier way to do it these days, but as far as custom views go it's not too bad, it's just overriding one method and changing it slightly Nov 29 13:17:52 I found this Nov 29 13:17:52 https://www.google.com/design/spec/components/grid-lists.html#grid-lists-behavior Nov 29 13:17:57 I'll take a look. Nov 29 13:19:06 looks like that's more the design philosophy than implementation but good to know anyway :) Nov 29 13:19:48 barbs: Yeah but would hopefully lead to implementation :P Nov 29 13:19:59 I doubt they'd talk design without having at least a sample implemetnation Nov 29 13:20:58 barbs: http://developer.android.com/guide/topics/ui/layout/gridview.html This seems to be useful Nov 29 13:21:09 combine with a list adapter and does as we'd need Nov 29 13:21:53 oh yeah sorry, I kind of assumed you were using a gridview Nov 29 13:22:12 I was referring to the view that would be inflated by the list adapter Nov 29 13:27:28 Hey. Has anyone run into a problem where in XML editor auto completing an attribute name doesn't enter quotes afterwards? E.g. it completes to android:layout_width= but leaves the quotes out (it didn't do that before). Another annoying thing is first tag doesn't auto complete match_parent/wrap_content inside quotes. Anyone knows what's going on? Nov 29 13:41:47 barbs: What would be the best way of displaying static content? Nov 29 13:42:19 Is it possible to do it with XML rather than coding it in? Nov 29 13:42:26 populating the grid view that is Nov 29 13:45:35 you mean like a menu or something? I guess you could do it in XML, using a LinearLayout with weights to achieve the square effect, depends what look you're after though Nov 29 13:45:57 if each item's the same you might want to extract the item layout into its own XML file and them to save yourself duplicating code Nov 29 13:48:19 Hi, i dont get how i can get the buffer size before api23 - is there anyway? http://developer.android.com/reference/android/media/AudioTrack.html#getBufferSizeInFrames() (not available before 23) Nov 29 14:04:44 Mh strange this..on the LG G4 a sound is playing only when headset is connected, but when headset is disconnected it wont play. Does Android recognize if the phone speakers are mono or stereo and when i use AudioFormat.CHANNEL_OUT_STEREO it wont play? Nov 29 14:14:36 Hi ALL Nov 29 14:21:15 ohayou Nov 29 14:27:59 Hi Ashiren, are you a pro? Nov 29 14:32:24 unlikely Nov 29 14:32:29 just ask away in this channel Nov 29 14:33:30 we're all n00bs here Nov 29 14:33:32 just some more than others Nov 29 14:33:33 :) Nov 29 14:50:28 :) Nov 29 15:05:57 Hello, I run local test. Is there a way to make debugging outputs like System.out.println("jjkjl") ? Nov 29 15:56:23 anyone know if Play Services Nearby Messaging should work on the emu ? can't find an answer. maybe nobody is using it Nov 29 16:09:50 " You could use Multidex, but it’s more of a band-aid than a magic solution. While it has its own support library for pre-Lollipop Android, there are a few known issues. These can include applications not starting or responding, random out of memory crashes, or library incompatibilities with a secondary dex file. " Nov 29 16:09:54 orly Nov 29 16:15:17 eh, it's not that bad Nov 29 16:15:29 but there are a few limitations of support multidex Nov 29 16:15:44 anr if you have lots of. dex and slow. device Nov 29 16:19:36 and yeah, loading 200k methods worth of dex does take a while Nov 29 16:20:02 lollipop dex isn't bad, the delay is. pushed up to install time Nov 29 16:20:14 older devices have the delay introduced at first run Nov 29 16:21:58 Any idea what to do? http://pastebin.com/1avUewTD Nov 29 16:24:36 doing it wrong Nov 29 16:24:36 don't write strings with streams Nov 29 16:24:48 pfn what to do then, care to throw me in the right direction? Nov 29 16:27:00 use a writer Nov 29 16:27:34 like an OutputStreamWriter Nov 29 16:30:11 cheers big fella Nov 29 16:30:38 dersand are you implying pfn is over the dex limit ? :P Nov 29 16:32:05 i have no idea what you're saying, if you say "dex" my immediat thought is to the game "maplestory" but i don't think that's the reference here Nov 29 16:32:20 ;) Nov 29 16:41:42 Allright, what if i want to write to a file, but using the getAssets() function. I mean reading is getAssets().open("foo"). But what's the way for writing? Nov 29 16:42:31 nevermind Nov 29 16:43:49 dersand, you cant write to assets Nov 29 16:44:00 danijoo: yeah that's what i figured Nov 29 16:52:42 i have an app that uses the accessibility service to perform action on the UI, is there a way to see what exactly it does? Nov 29 16:54:18 it = your app? Nov 29 16:54:35 nope Nov 29 16:55:11 what is it then? the UI? Nov 29 16:55:15 i don't want to see code, i just need to know what UI actions it performs, i.e where it clicks Nov 29 16:55:58 isnt that send to you through the accessiblity broadcasts? Nov 29 16:56:37 well not to me, to that app, can i listen in on those? Nov 29 16:57:49 Just punched in the controls on a Preference Activity. Now I need to actually do the work, but can't tell where should I put the workhorse. Nov 29 16:58:05 darken, there is AccessibilityEvent.TYPE_VIEW_CLICKED that gets sent to your registered service everytime a view is clicked Nov 29 16:58:23 danijoo, it's not my app, it's a 3rd party app I'm debugging Nov 29 16:58:26 I need to read a POP3 account emails and forward them to SMS. How do I figure out where this should go? Nov 29 16:58:54 danijoo, a 3rd party app uses the accessibility service to perform UI actions and I need to see what it does, because it's not visible Nov 29 16:59:07 you cant, its not your app Nov 29 16:59:24 unless you have the source, then you can read that source Nov 29 16:59:31 well i was hoping there is some kind of way to monitor the Acessibility service Nov 29 16:59:51 in the end the system service performs these actions Nov 29 17:05:01 no, and why do you care? Nov 29 17:05:57 if you have root access, you might. be able to snoop the binder transactions Nov 29 17:06:47 pfn, research, i'm almost sure i know what happens, i just would like to confirm. Do you have any pointers how i would start on that, i have root Nov 29 17:07:29 darken, read through aosp to see how. binders work and how you can stick an interceptor in there Nov 29 17:08:07 someone was talking about doing that a while back Nov 29 17:08:53 er4z0r was, and you were here, darken Nov 29 17:09:17 I'm always here, it's a bnc :o Nov 29 17:10:48 pfn : yeah, it's me again) did you tried any tests written in kotlin? Nov 29 17:11:06 seems "sbt test" runs only java tests Nov 29 17:11:47 vigilancer, tests don't work at the moment, there's no way to. discover test classes in the plugin Nov 29 17:14:19 bummer Nov 29 17:14:39 well, I'll rewrite them in java for now Nov 29 17:15:15 I'm wondering how gradle handle kotlin tests Nov 29 17:16:03 why would it have to handle it different from java? Nov 29 17:16:55 I mean gradle can run kotlin tests Nov 29 17:17:20 sbt dont Nov 29 17:17:22 they are compiled to the same bytecode and then run i guess Nov 29 17:17:58 danijoo : see about pfn's comment Nov 29 17:18:19 *above Nov 29 17:18:50 yeah, sbt doesn't do bytecode analysis on kotlin output to detect tests Nov 29 17:19:03 I could add support, but haven't had time Nov 29 17:20:32 Is this the proper place for Android Studio questions? Nov 29 17:20:49 Usually yes. Nov 29 17:21:23 Got a question for you guys, if I have a RelativeLayout, and 3 items, if the third is set to be below the second, but the second is set to GONE, will the third stay under the first? Nov 29 17:21:55 Would have to test but don't think so - since the second won't even be laid out. Nov 29 17:22:22 Ok cause I have a toolbar, spinner, listview Nov 29 17:22:32 And sometimes the spinner is GONE, but the listview still stays below the toolbar Nov 29 17:22:32 pfn : I thought sbt just pick up classes from "unmanagedSourceDirectories in Test". didn't know that bytecode analysis required, good to know Nov 29 17:23:09 vigilancer, well, not all source files translate directly into tests Nov 29 17:23:31 vigilancer, have to inspect class files for the appropriate classes and annotations Nov 29 17:26:07 drose379 : also not sure, but it seems if second is gone, third will behave as if it has no "below_id" tag Nov 29 17:26:36 Mavrik have you used GMS Nearby Messages yet ? Nov 29 17:26:51 Looks really cool ^ Nov 29 17:26:57 g00s, nop Nov 29 17:27:01 k thx Nov 29 17:27:42 Anyone know the best way to make the status bar take the color of the nav drawer when its opened? Nov 29 17:28:07 i originally thought the transport of the data was using BT/Wifi Direct/etc, but thats only for the pairing - the data still goes to google servers. So i'm not sure when I should use this over GCM (if not needing to wake the device up) Nov 29 17:28:49 Interesting, it goes through googles servers, but you can only communicate with nearby devices, cool Nov 29 17:29:49 Have you messed w/ it g00s Nov 29 17:29:56 i guess for my situation, i'd like devices to share info whether co-located or /not/ so GCM is the way to go (?) Nov 29 17:30:21 drose379 deciding whether it meeds requirements or not Nov 29 17:30:51 doesn't seem rational to implement both Nearby Messages and GCM (for when devices are not co-located) Nov 29 17:31:01 Oh you're planning on implementing it into an existing application? Nov 29 17:31:20 upcoming application Nov 29 17:31:38 Why is ArrayAdapter a subclass of SpinnerAdapter? Nov 29 17:31:51 I feel like SpinnerAdapter should be a subclass of ArrayAdapter, no? Nov 29 17:32:27 forget about ArrayAdapter, its useless Nov 29 17:32:49 Just for a simple spinner dropdown menu its fine Nov 29 17:33:08 For about anything else, I agree Nov 29 17:33:28 pfn : it'll be nice to be able to write tests in kotlin, if you'll have time and all Nov 29 17:33:56 vigilancer, sure, if I have time Nov 29 17:33:57 g00s, why is it useless for spinners? Nov 29 17:34:16 drose379 can't go into it, i stopped talking about it in 2010 :D Nov 29 17:34:22 vigilancer, even better, write tests in scala Nov 29 17:34:30 vigilancer, that would work automatically Nov 29 17:34:41 Well whats the better option for a spinner dropdown menu g00s Nov 29 17:34:43 pfn : now sure I'm ready for scala) Nov 29 17:34:51 scalatest is way better than junit Nov 29 17:35:37 vigilancer, if you can write kotlin, you can write scala Nov 29 17:35:57 it's practically the same, minus the nullability support Nov 29 17:40:04 pfn: well, I'll put scalatest on my stack Nov 29 17:40:32 thanks for clue Nov 29 17:41:10 vigilancer, it's pretty easy: object mytests extends FunSuite { test("test name") { do your assertions}} Nov 29 17:41:31 vigilancer, there's also rudimentary robolectric support Nov 29 17:42:11 vigilancer, https://github.com/zbsz/robotest Nov 29 17:42:46 pfn : what about Espresso? Nov 29 17:43:06 vigilancer, you can write those in kotlin all you want Nov 29 17:43:27 vigilancer, https://github.com/pfn/android-sdk-plugin Nov 29 17:43:30 oops Nov 29 17:43:41 vigilancer, https://github.com/pfn/android-sdk-plugin/blob/master/sbt-test/android-sdk-plugin/android-test-kit/build.sbt Nov 29 17:43:49 stupid pockethub Nov 29 17:46:15 How can I downgrade a project's API? I've installed Android Studio and tried changing the theme, I've got a rendering error, after some googling I've come to the conclusion that this is a bug and an API downgrade to the project needs to happen, but the toolbar only gives me the option of using API 23 Nov 29 17:46:50 add additional platform sdk in project structure Nov 29 17:47:03 or change your build.gradle and resync Nov 29 17:48:44 Hi, My requirements are having 2 buttons, button 1 sends on udp 1,2,3..10 with user defined delay between numbers, button 2 sends a.b.c..g with customizable delay Nov 29 17:48:47 pfn : yeah, I saw that. so with scalatest still will need kotlin for expresso Nov 29 17:49:31 My question is if I press button 1 first and efter it sends "4" I press button 2. I want to stop doing the numerical sequence and start doing the alphabet, is the correct way to do it with a thread? Nov 29 17:51:08 okamis_ : sends where? you can go with Handler Nov 29 17:51:37 udp on local network Nov 29 17:52:33 okamis_ : any network calls should go in new thread != main thread Nov 29 17:54:51 nadav : as for rendering error, just change api in dropdown menu in preview screen Nov 29 17:55:07 vigilancer: and thats where the handler comes in right? Also, I dont see anyway to pause/interrupt a handler Nov 29 17:55:07 I tried, only API 23 Nov 29 17:55:46 vigilancer, what are you asking for? jvm test or instrumentation Nov 29 17:56:05 for instrumentation, you can write your tests in Scala or kotlin Nov 29 17:56:18 for jvm tests, either scala or java, at the moment Nov 29 17:56:54 okamis_ : read about Handlers and messages. you can send and remove any messages from it, even delayed. Message.what gives Handler idea what to do next Nov 29 17:57:44 vigilancer, and espresso is all instrumentation Nov 29 17:58:00 pfn : oh, I though instrumentation tests in kotlin will not work in sbt for now Nov 29 17:58:53 I seriosuly don't understand how it doesn't work out of the box (Android Studio Hello World project) Nov 29 17:58:59 so unprofessional :P Nov 29 17:59:12 vigilancer, no, they work perfectly fine Nov 29 17:59:28 pfn : ah, nice Nov 29 17:59:36 vigilancer, to. run instrumentation tests, you call android:test Nov 29 17:59:42 test is for jvm only Nov 29 18:00:09 pfn : yeah, just didn't test them Nov 29 18:00:29 vigilancer, might have to add unmanagedSourceDirectories in Android Nov 29 18:00:33 not on Test Nov 29 18:00:35 in Nov 29 18:02:00 nadav : can't say. in IDEA in Preview windows where xml layout displayed I can change api to whatever I want. Maybe worst to install another sdk with Android SDK Manager Nov 29 18:02:21 Ok, I found that I only had 23 API installed, problem might stem from there. Nov 29 18:02:48 BTW - Random question but does anyone develop for Microsoft Band with Android? Nov 29 18:10:21 Can't you programatically remove the ActionBar? Nov 29 18:10:45 setSupportActionBar(null) crashes Nov 29 18:11:00 I don't want to just hide it, I want to entirely remove it Nov 29 18:11:09 I don't know what would happen if I just hide it Nov 29 18:11:55 Use a .NoActionBar theme Nov 29 18:18:35 No, I want to dynamically add and remove it, but it's impossible Nov 29 18:18:41 I'll deal with it being only hidden Nov 29 18:20:07 sounds well thought out Nov 29 18:21:08 Hide the actionbar, add a Toolbar to your layout Nov 29 18:21:20 Ribesg : use Toolbar ? Nov 29 18:21:24 And when you don't need it, don't add it Nov 29 18:21:33 Eh Nov 29 18:21:41 My problem is that I'm using the YouTube Player API Nov 29 18:21:50 And the only way to be able to ut something on top of it Nov 29 18:21:56 Is to put it into an ActionBar Nov 29 18:21:59 Cant you use View.GONE Nov 29 18:22:04 I originally have a Toolbar Nov 29 18:22:20 And right now I'm trying to make this toolbar the Actionbar when going fullscreen Nov 29 18:22:26 To be able to have some controls in fullscreen mode Nov 29 18:23:02 Just add buttons to the toolbar when you go full screen maybe Nov 29 18:23:47 drose379, my question was, how to make further getSupportActionBar() calls return null :) aka ACTUALLY remove it Nov 29 18:23:47 Ah Nov 29 18:23:47 drose379, the YouTube Player doesn't allow anything of top of it Nov 29 18:23:47 Ah ok Nov 29 18:23:47 And I don't want a huge toolbar pushing all the view down Nov 29 18:23:47 I want real fullscreeen + (ctustom) controls Nov 29 18:23:59 And for this I need to use the base actionbar thing Nov 29 18:24:01 Are you making a youtube app Nov 29 18:24:14 I'm making a gaming content aggregator Nov 29 18:24:18 Ah ok Nov 29 18:24:34 Which plays youtube, vimeo, dailymotion videos and twitch, hitbox and dailymotion streams Nov 29 18:24:38 + some news articles Nov 29 18:25:00 And I'm almost at the end of the process of having a single player for Hitbox and YouTube Nov 29 18:25:05 With same controls and all Nov 29 18:25:36 I did setSupportActionBar(toolbar) Nov 29 18:25:41 And now my menu icons are gone Nov 29 18:25:45 What are you doing Android Nov 29 18:26:20 Cool Nov 29 18:26:30 Im working on an animal adoption application Nov 29 18:27:26 he's blaming Android for his issues, not askin what you are making Nov 29 18:27:45 Oops, read that wrong Nov 29 18:27:50 Haha Nov 29 18:27:54 Haha Nov 29 18:28:03 I'm sick of all the things happening automagically Nov 29 18:28:11 Like the system removing my menu icons Nov 29 18:28:22 Because an actionbar isn't a simple toolbar Nov 29 18:28:39 quit doing it wrong Nov 29 18:28:56 I4m trying to make it overlay Nov 29 18:28:58 It doesn't overlay Nov 29 18:29:12 supportRequestWindowFeature(Window.FEATURE_ACTION_BAR_OVERLAY) Nov 29 18:29:20 What else do I need to do for it to overlay on content ? Nov 29 18:39:40 you're mixing so many different things together Nov 29 18:39:46 toolbar and actionbar Nov 29 18:42:35 toolbar overlays by setting up your layout correctly Nov 29 18:42:46 actionbar overlays by using window features Nov 29 18:42:53 mixing the two will just fuck up Nov 29 18:43:19 YouTube Player only allow a single thing to be on top of it's view: an overlaying ActionBar Nov 29 18:43:37 A Toolbar isn't really an ActionBar? Nov 29 18:43:51 no, you put the yt player in a container Nov 29 18:44:08 and a toolbar is not an actionbar Nov 29 18:44:16 a container what Nov 29 18:44:19 What are you talking about Nov 29 18:45:01 AppCompatActivity#setSupportActionBar(Toolbar) Nov 29 18:45:02 I'm not mad Nov 29 18:45:12 view groups Nov 29 18:45:33 but anyway, you're mixing paradigms and will not work Nov 29 18:45:48 Rather than handle saved instance states, what if I just stored everything in the Application? Nov 29 18:45:51 Is that bad? Nov 29 18:46:41 pfn, I really want to know what you are talking about Nov 29 18:46:56 If you know how to trick the YouTube Player into not knowing there is something on top of it Nov 29 18:48:07 AKK9, bad and it wont even work Nov 29 18:50:00 what's to trick, layout something on top of it Nov 29 18:50:49 pfn, oh, so you just don't get it Nov 29 18:50:54 the Youtube Player PREVENTS this Nov 29 18:51:23 then use actionbar only, not toolbar Nov 29 18:51:55 I don't see how it prevents it, but ok Nov 29 18:52:00 It does Nov 29 18:52:17 It detects if a view is on top of the player view and stops the playback Nov 29 18:52:29 With an error message stating which specific view blocks the playback Nov 29 18:52:41 why would it ever be below actionbar/toolbar/or any view to begin with? Nov 29 18:52:42 It also has to have a minimum size or it refuses to play Nov 29 18:53:05 canvs2321-, scrolling for example ;_ Nov 29 18:53:09 canvs2321-, I want the player to be fullscreen and have some custom controls on top of it Nov 29 18:53:28 danijoo, ic Nov 29 18:53:52 I discovered that limitation after finishing putting my controls over it... :( Nov 29 18:54:20 I put the player in a FrameLayout and had a transparent LinearLayout at the bottom with buttons Nov 29 18:54:33 It was cool looking and just didn't work Nov 29 18:56:28 I'll try with an actionbar. Disturbs my class hierarchy, but eh. Hope it'll work Nov 29 18:58:07 to be forced to use an actionbar seems iffy for an answer Nov 29 18:58:32 https://developers.google.com/youtube/android/player/sample-applications Nov 29 18:58:40 says they support custom. controls Nov 29 18:58:46 * pfn shrugs Nov 29 18:59:29 pfn, do you want to keep telling me I'm wrong forever or something Nov 29 18:59:37 pretty much Nov 29 18:59:41 There is obviously an API to play/pause etc the player Nov 29 18:59:43 docs say it's supported Nov 29 18:59:49 But you can't put ANYTHING on TOP of the player Nov 29 18:59:56 file a bug Nov 29 19:00:02 No it's intended behaviour Nov 29 19:00:20 Custom controls are allowed when outside the actual player view Nov 29 19:00:30 Like you would have a play button BELOW the view Nov 29 19:00:38 simple, scale the player down when showing the controls theb Nov 29 19:00:40 then Nov 29 19:00:45 Horrible Nov 29 19:00:56 an actionbar will run into the same problem. Nov 29 19:01:05 they might want to prevent you overlaying their ads :p Nov 29 19:01:26 pfn, see this http://stackoverflow.com/a/14016025/4996236 Nov 29 19:02:03 danijoo, yeah I understand why they did that, but their own (ugly as hell) controls overlay the same area I want to partially and temporarily cover Nov 29 19:03:05 action bar is explicitly allowed, how handy Nov 29 19:03:27 but using a toolbar and set actionbar likely won't do what you want or work Nov 29 19:03:35 Yeah Nov 29 19:03:52 Would be nice to view the source of this api to see what they actually check for Nov 29 19:04:11 my guess is childAt or something simple Nov 29 19:04:32 I suppose they check the class for ActionBar and support ActionBar Nov 29 19:04:37 Well I hope they also check support ActionBar Nov 29 19:05:05 they only care about something ontop, so first would be to check if something is ontop, second is to check it's className? Nov 29 19:05:14 or instanceOf Nov 29 19:05:58 So how do you add custom views to an ActionBar then Nov 29 19:06:07 I had the seekbar in my toolbar Nov 29 19:06:16 Ribesg, setSupportActionBar is only used for the purposes of callbacks Nov 29 19:06:24 it doesn't promote the toolbar to window decor Nov 29 19:06:28 pfn, yep that's what I understood Nov 29 19:06:33 Hooks navigation and action stuff Nov 29 19:06:59 Ribesg, conversely, I'm curious if you addContentView and it works Nov 29 19:07:01 What's the ActionBar's customView ? The entire thing ? Something you can put between navigation/title/logo and actions? Nov 29 19:07:11 if it checks view hierarchy or window decor Nov 29 19:07:22 Ribesg, yes Nov 29 19:07:41 Ok Nov 29 19:08:46 Hmm I need to override some optionsMenu activity methods and stuff Nov 29 19:08:49 How inconvenient Nov 29 19:09:01 toolbar.menu.add was cool Nov 29 19:15:58 Hey. Has anyone run into a problem where in XML editor auto completing an attribute name doesn't enter quotes afterwards? E.g. it completes to android:layout_width= but leaves the quotes out (it didn't do that before). Another annoying thing is first tag doesn't auto complete match_parent/wrap_content inside quotes. Anyone knows what's going on? Nov 29 19:17:45 Omg it works Nov 29 19:17:53 asimas, i have with using 2.0preview, i hate it!! :) Nov 29 19:19:03 canvs2321-, oh so it's an IDE bug. Annoying :| Nov 29 19:19:18 what version of AS are you using? Nov 29 19:19:31 canvs2321-, same as you, the 2.0 preview. Nov 29 19:19:43 i've been coding here and there, but i always update on canary, i've just noticed that bug with the latest preview Nov 29 19:19:52 it sucks Nov 29 19:20:04 file a bug for me :) Nov 29 19:20:09 if it hasn't already been Nov 29 19:20:44 This build is the buggiest I have ever seen :) Nevermind it's on canary. Already filed a few bugs. Nov 29 19:21:25 asimas: yeah I have he same thing on 2.0, guess this is what you get with canary updates Nov 29 19:21:33 only issues i've had so far is that lack of quotes, and some random resource drawable issues, where couldn't build based on something locking a file, but a close and reopen of AS fixed it Nov 29 19:21:57 otherwise i'm happy with it Nov 29 19:23:11 Instant run prevents me from building apps on one of my devices :D The main feature of the update has to stay disabled, what a pity.. Nov 29 19:23:13 not a big fan of that instant stuff though as well, sometimes it'll load app on device but have a popup lower left that says i can restart activity if i want, but a full close of app and rerun is what is needed to update graphics stuff Nov 29 19:23:19 ^ Nov 29 19:23:26 yeah instant run is weird so far Nov 29 19:23:40 using a canary release announced on I/O keynote date or such is for suckers Nov 29 19:23:52 bah, not if you can work through it Nov 29 19:24:02 and if you have the time to f with it Nov 29 19:24:10 i have plenty of time to test Nov 29 19:25:20 I do too. But sometimes you just want stuff to work :P Can't believe they presented this feature on their last event when it's as buggy as it is. Nov 29 19:25:48 i just hope it works, and if it doesn't i find a way to make it work :) Nov 29 19:26:23 so for now i have to accept typing in the damned " as for other things it doesn't hurt me Nov 29 19:27:34 i guess it's more "@(+)whatever/ then can tab Nov 29 19:30:47 canvs2321-, that removes the following new line character. Even worse. Nov 29 19:31:54 whatcha mean? Nov 29 19:32:19 Is there another well roudned IDE for developing ? other than Android Studio? Nov 29 19:32:28 i do src:background="@drawable/abc" then tab it'll complete @drawable/abcdef? Nov 29 19:32:42 nadav, Android Studio is all you'd need Nov 29 19:33:04 for the most part, are you doing heavy NDK stuff at all? Nov 29 19:33:09 I have problem with an out-of-the-box installation Nov 29 19:33:18 installation of what Nov 29 19:33:35 Android Studio. rendering issues, I've read many suggested solutions but none works Nov 29 19:33:36 if AS, which version Nov 29 19:33:51 canvs2321-, ahh my bad. Tried with the beginning quote only ^^. Guess that's what I used before - don't notice habits. Nov 29 19:33:51 what is your dev box? Nov 29 19:34:38 1.5, build 2422023 Nov 29 19:34:47 asimas, i believe as long as when i type xxx.yyy:= when i add the first " it'll complete with a closing " so i can finish typing my @whaever Nov 29 19:34:48 Mine? Windows 10 Nov 29 19:34:58 Does android bundle a compose icon? (ie: compose new email, compose tweet?) Nov 29 19:35:00 what is the rendering issue Nov 29 19:35:10 brb in a few, but shoot your issue out Nov 29 19:35:12 canvs2321-, yeah that's the case for me. Not sure how I managed to test with a single quote only ^^ Nov 29 19:37:31 When I try to change theme, to say, Material.Light, I get an stack-trace like window that spits out something along the lines of: 'The following classes cannot be instantiated.... blablabla CoordinatorLayout' Nov 29 19:38:20 nadav heh, (1) make sure you select the correct theme in the previewer (2) that shit almost never works anyhow Nov 29 19:38:48 maybe the will just nuke that crap from orbit once instant run is complete Nov 29 19:38:56 Oh, I'm following tutorials, I couldn't care less about the theme Nov 29 19:39:06 Guess I can skip it Nov 29 19:39:18 Still, I hate leaving issue unsolved :) Nov 29 19:39:22 if you define a theme in your project sometimes AS can't find it, causes a bunch of problems Nov 29 19:39:34 so you have to say, use this theme ;) Nov 29 19:39:42 not like darcula or whatever Nov 29 19:58:41 Hmm how would I prevent my customView from changing the ActionBar height? Nov 29 19:58:47 It's a SeekBar in a FrameLayout Nov 29 19:59:12 I've put a margin of actionBarSize on top of the player but it still find that it covers 16px of it Nov 29 20:00:22 Actual log of the youtube player noping for pfn: Nov 29 20:00:40 11-29 21:00:03.668 7228-7228/... W/YouTubeAndroidPlayerAPI﹕ YouTube video playback stopped due to unauthorized overlay on top of player. The YouTubePlayerView is obscured by android.support.v7.widget.ActionBarContainer{430f79a8 V.ED.... ........ 0,0-720,112 #7f0d005b app:id/action_bar_container}. Bottom edge 16 px below YouTubePlayerView's top edge. . Nov 29 20:15:01 I'm using Sanselan 0.97 to read/write EXIF-data in JPEG files. I found an example, but it requires a separate source and destination (jpeg) file. So, if I want to overwrite/update same file, maybe I could use some temp.jpg file and clean up by copying temp.jpg to dest.jpg. But maybe there is some other way to do this? Nov 29 20:15:29 I mean, maybe I can use one of the other updateExifMetadataLossless methods. Code is here: https://code.google.com/p/sanselanandroid/source/browse/trunk/SanselanAndroid/src/org/apache/sanselan/formats/jpeg/exifRewrite/ExifRewriter.java Nov 29 20:16:40 The example code I found, takes two File instances, creates an BufferedOutputStream, and calls the public void updateExifMetadataLossless(InputStream src, OutputStream os, TiffOutputSet outputSet) method Nov 29 20:17:03 How do I stop this error ? I have never had it before making threads - > sending message to a Handler on a dead thread Nov 29 20:17:52 my question is, what if I convert the source image file to a byte[] array, can I then call the public void updateExifMetadataLossy(byte src[], OutputStream os, TiffOutputSet outputSet) method instead? Nov 29 20:17:59 Hi. I have a playlist m3u and in there I have many streamin urls. IS it possible to play next and next ? how do I do it using exoplayer? Nov 29 20:30:21 hi again. There is an error stating " smd interface open failed errno 2 -1" while playing a hls .ts video Nov 29 20:44:02 I'm getting some python errors when trying to repopick, Using ubuntu 14.04 and get this error http://pastebin.com/eLxFF148 Nov 29 20:53:19 What's the best way to basically do a sqlite equivallent of String.contains()? Nov 29 20:53:40 lol, the McDonalds App is in the Top 20 Nov 29 20:53:53 eghdk_, look for LIKE Nov 29 20:54:16 Mavrik: not "MATCH"? Nov 29 20:54:53 I'm looking at search in sqlite, and it seems to be LIKE or MATCH that is tossed around. Nov 29 20:55:16 But I will try that out now. Thanks Mavrik Nov 29 21:01:15 pfn offhand, do you know whether I would need to have an account picker, if somebody has multiple google accounts, if they want to save a file to Google Drive using SAF ? Nov 29 21:01:40 or is that set in Google Drive app, or somewhere else Nov 29 21:11:57 Anyone ever upload their apps to a sotre other then GPS? Nov 29 21:11:58 Anyone ever upload their apps to a sotre other then GPS? Nov 29 21:11:59 If anyone missed that Nov 29 21:14:49 g00s, it's handled by saf Nov 29 21:16:41 drose379, I upload my apps to glonass Nov 29 21:16:58 Whats that pfn Nov 29 21:17:00 I hack their satellites and make them. run my shitty code Nov 29 21:17:06 russian gps Nov 29 21:17:13 Funny Nov 29 21:17:32 Thinking about amazon store Nov 29 21:17:38 stop using incorrect t acronyms Nov 29 21:17:45 GPS? Nov 29 21:18:04 That stands for Google Play Store Nov 29 21:18:11 no,F.U.N.N.Y. Nov 29 21:18:29 no it doesn't Nov 29 21:18:32 But you knew what I meant so who cares Nov 29 21:18:34 pfn thanks Nov 29 21:19:35 drose379, I don't support people in being wrong Nov 29 21:19:47 call it the right thing or get trolled Nov 29 21:20:05 nyoro~n Nov 29 21:20:23 pfn do you work for google Nov 29 21:20:43 if I did, I wouldn't hang out here Nov 29 21:20:54 Why Nov 29 21:21:19 I can't have people thinking I represent google or its views Nov 29 21:21:42 Oh ok Nov 29 21:22:41 Sorry to confuse you with GPS, I meant Google Play Store. So has anyone uploaded their apps to anywhere besides the Google Play Store? Nov 29 21:22:45 what does pfn stand for? Nov 29 21:23:39 njcomsec, it's pretty obvious Nov 29 21:23:54 Perry F****** Nguyen Nov 29 21:24:00 wouldnt that be IPO)) Nov 29 21:25:08 Didnt mean to offend you with that pfn Nov 29 21:26:04 http://www.abbreviations.com/PFN Nov 29 21:26:56 PFN - PaperFeed Unit for N1000 Cassette... why isn't this PFUNC? Nov 29 21:31:37 Ologn https://github.com/skuro/org4idea Nov 29 21:40:46 what's the easiest way to get a material themed preferencefragment pre lollipop? Nov 29 21:41:35 Memorion whats the matter with http://developer.android.com/reference/android/support/v7/preference/PreferenceFragmentCompat.html Nov 29 21:45:33 o/ hello all Nov 29 21:45:49 g00s what themeoverlay do I need to use there? v14 has one built in Nov 29 21:47:23 g00s and neither v7 nor v14 seem to have a material ringtonepreference :/ Nov 29 21:47:53 don't worry about it Nov 29 21:50:11 why can't I have a static method inside of a ViewHolder? lol Nov 29 21:53:25 g00s my app is basically a giant switch with some preferences so ideally I'd like it to look the same :/ **** BEGIN LOGGING AT Sun Nov 29 22:09:05 2015 Nov 29 23:36:35 Is it ever a good time to throw a Runtime exception? Nov 29 23:36:46 Or is it better to show an error message, or solve the issue internally Nov 29 23:38:24 if there's an exception usually can't be solved, but it's always better to show an error and. get stuck instead of crashing Nov 29 23:38:51 Makes sense, thanks Nov 29 23:39:30 Im trying to think of what to do for a JSONException Nov 29 23:53:59 "failed to process data, try later" Nov 29 23:54:07 Basically what I came up with Nov 30 00:05:23 Anyone ever had a icon designed for their app? Or designed themselves? Nov 30 00:07:16 drose379: I think the most typical approach is to crash when there's a bug in your code (e.g., `foo` is not allowed to be null, but somehow it is) and to handle things gracefully when interacting with something else (e.g., the web server returned garbage). Nov 30 00:07:48 I think the main reasoning behind this is that we have to make *some* assumptions (crashing if they're false) or else our code would end up a complete mess of `if (x == foo && y == bar)` stuff. Nov 30 00:08:45 Also, we might not be able to continue if some key part of our code is simply wrong. It's may be the case that crashing is the best thing to do. Nov 30 00:08:50 It* Nov 30 00:09:09 Hm, ok. Thanks Nov 30 00:11:10 I made my app icon in Inkscape. Members of my family liked it. :D Nov 30 00:11:41 Can I see it? Nov 30 00:12:14 pfn : what is the way to specify "localProjects" ? Nov 30 00:12:15 Okay. Can I e-mail it to you? Nov 30 00:12:35 Yep, do you have my email TacticalJoke Nov 30 00:12:43 Yeah. Nov 30 00:12:46 Go ahead Nov 30 00:12:49 i want to see too Nov 30 00:12:59 It's not that amazing, squirrel. :D Nov 30 00:13:10 It's just good enough to not look awful on a home screen. Nov 30 00:13:26 link or it's the most gorgeous icon ever Nov 30 00:13:32 pfn : can't find example. say I have library project in subfolder. how can I refer to it in main project? Nov 30 00:13:33 Do you have the ability to open SVG files, drose379? Nov 30 00:13:41 Dont think so Nov 30 00:13:52 Wait, I guess browsers can open them. One sec. Nov 30 00:14:18 Okay, yeah, Google Chrome can. Nov 30 00:14:23 Sweet Nov 30 00:14:29 btw inkscape supports batch export Nov 30 00:14:57 well, not batch Nov 30 00:15:06 https://github.com/ubergeek42/weechat-android/blob/master/weechat-android/src/main/inkscape/batch_export.sh Nov 30 00:16:27 Okay, sent. Nov 30 00:16:32 Yeah, Inkskape is good. Nov 30 00:16:33 Inkscape* Nov 30 00:16:50 no show squirrel? Nov 30 00:16:55 squirrel sad. Nov 30 00:16:56 I'm gonna change the colour of this icon and tighten some things up before release. Nov 30 00:17:53 squirrel: It's really boring. :| Nov 30 00:18:42 such shy. aww. Nov 30 00:19:22 inkscape is the best Nov 30 00:19:39 black ink, is also awsome Nov 30 00:19:45 but it is for painting not vector Nov 30 00:20:01 you can make complex brushes Nov 30 00:20:14 i totally love making icons. Nov 30 00:20:35 You should make one for drose379, squirrel. :D Nov 30 00:20:42 ^ Nov 30 00:21:06 of all icons i made, this one i'm the proudest of https://raw.githubusercontent.com/ubergeek42/weechat-android/master/weechat-android/src/main/res/drawable-xxxhdpi/ic_send.png Nov 30 00:21:27 had to actually make a paper plane, take a picture of it, trace it and all. Nov 30 00:22:01 I can't see that in Chrome. Hmm Nov 30 00:22:01 . Nov 30 00:22:01 well, it's white Nov 30 00:22:07 squirrel, you like making icons? Nov 30 00:22:11 Okay, that makes sense. :D Nov 30 00:22:18 I'm used to them being black. Nov 30 00:22:52 Okay, I changed background colour to black via CSS. Looks neat. Nov 30 00:22:58 drose379: no. i totally love making icons. Nov 30 00:23:19 Interested in whipping up something quick for me? I'll add your name in the credits of my application Nov 30 00:23:24 And your email Nov 30 00:23:37 whatcha want Nov 30 00:23:53 mind that i'm by no means pro Nov 30 00:23:55 Basic icon, pretty much a cirlce with a paw print in the middle Nov 30 00:24:01 circle* Nov 30 00:24:15 Its for a pet adoption app, maybe you should try it out so you can get a feel for the theme? Nov 30 00:24:27 launcher icon? Nov 30 00:24:30 Yep Nov 30 00:24:54 well i can try i guess Nov 30 00:24:57 paws are hard! Nov 30 00:25:13 remind me tomorrow? Nov 30 00:25:29 I was thinking you could just throw this in the middle of a circle? https://www.google.com/design/icons/#ic_pets Nov 30 00:26:33 Should be quite easy, drose379. Just give the circle a tiny drop shadow. Nov 30 00:26:54 And a subtle gradient from top left to bottom right Nov 30 00:26:57 Yeah, maybe I should try Nov 30 00:27:11 It might take a few hours to learn Inkscape, but it's worth it. Nov 30 00:30:46 inkscape is not easy to learn :s Nov 30 00:31:05 I found it straightforward. Nov 30 00:31:13 I'm not an expert, but it seemed very Photoshop-like. Nov 30 00:31:39 had to spend some time wrapping mind around clipping paths Nov 30 00:32:22 also hafta always remember which grup you're in :s Nov 30 00:33:39 You probably did more-advanced stuff than I did. But I do remember path clipping (and so on) being a bit fiddly, yeah. Nov 30 00:34:26 wanna see my best stuff? Nov 30 00:34:32 Sure. Nov 30 00:35:18 Wow, neat. Nov 30 00:35:28 Yeah, I can imagine using paths for something like that would get hard. Nov 30 00:37:24 squirrel: I used to do Photoshop competitions, so for the most part learning Inkscape was just going from Photoshop mode to something-else mode. It wasn't too bad (though some things feel extra-tedious in Inkscape). Nov 30 00:37:25 :3 Nov 30 00:37:44 I haven't used Inkscape in a few months, though, so I can't remember exactly what those things were. Nov 30 00:39:01 inkscape doesn't make it very easy. things like the lack of keyboard shortcuts when you put your mouse over buttons Nov 30 00:39:13 I think it was even basic things such as having to manually implement the Photoshop "bevel & emboss" thing. Nov 30 00:43:11 is there a reason for some strings/keys to be saved in all caps + underscores vs. normal camel case? i.e. MY_STRING_KEY vs. myStringKey Nov 30 00:44:04 or is it just personal preference. I see some people use them interchangeably which confuses me Nov 30 00:44:32 Saved where? Nov 30 00:44:38 MY_STRING_LEY is a constant Nov 30 00:45:06 I mean just the name of the String, for example private String SIMPLE_FRAGMENT_TAG vs private String simpleFragmentTag Nov 30 00:45:25 Yep capitals and underscores are used for constants Nov 30 00:45:38 so if I declare something final I should use caps+underscore? Nov 30 00:45:56 static final Nov 30 00:46:15 okay, that makes a lot of sense actually. I never knew that was the reason Nov 30 00:46:16 thank you Nov 30 00:46:21 Yep Nov 30 00:49:49 I wish Java had gone with the ConstantNamingStyle C# uses rather than the CONSTANT_NAMING_STYLE it ended up picking. The one it picked is ugly. :/ Nov 30 00:50:30 Ugly for two reasons: (1) all caps (2) underscores. Nov 30 00:50:35 Yes, I agree. I hate using underscores when the rest of the code is camel case Nov 30 00:50:47 Yeah, I've always hated underscores. Nov 30 00:50:59 What's really nice, to me, is hyphens: this-is-easy-to-read. Nov 30 00:51:44 A programming language could use hyphens in identifiers if it required the subtraction operator to have space around it: `this-is-an-identifier` versus `x - y`. Nov 30 00:51:51 Best way to pass a drawable through an Intent? Nov 30 00:51:55 Java 1.9 will change it to THIS|IS|A|CONSTANT :) Nov 30 00:51:59 just to make us mad.. Nov 30 00:52:19 Trying to show a large version of a photo when it is clicked Nov 30 00:52:43 pass the filename/resource id through a bundle Nov 30 00:53:10 Can I get the resource id from the imageview? Nov 30 00:53:38 Or filename Nov 30 00:53:46 What do you mean? Are you doing it in onClick or are you using an intent to a new activity/fragment? Nov 30 00:53:58 to show the large image Nov 30 00:54:17 onClick I would like to show a large version of the photo, so I thought just call the intent onClick and pass the clicked photo Nov 30 00:55:54 you can get the drawable like this Drawable mDrawable = mImageView.getDrawable() Nov 30 00:56:53 Yep then I need to pass the drawable through the intent to the activity which will show the drawable Nov 30 00:56:53 https://stackoverflow.com/questions/8407336/how-to-pass-drawable-between-activities if you need to use an intent Nov 30 00:57:36 How else would I open an activity to show the image? Nov 30 00:58:28 if you had just the filename you could pass that instead of passing the entire drawable through an intent... passing the drawable might be easier though Nov 30 00:59:11 either way works, unless someone else has a better solution Nov 30 00:59:14 Thanks liuwenhao Nov 30 00:59:26 no problem Nov 30 01:17:35 liuwenhao, I may have found a better way Nov 30 01:17:46 You can literally just pass the Bitmap through the intent Nov 30 01:17:49 No need to go to byte[] Nov 30 01:18:42 Oh, I didn't know that worked. Do that then Nov 30 01:19:04 Didnt know either until I realized that Bitmap implements Parcelable Nov 30 01:19:57 vigilancer, several ways, by adding a sub project, or using auto lib is easiest Nov 30 01:24:34 pfn : I thought so, but got error: http://pastebin.com/WbDRPEK5 Nov 30 01:24:45 whats wrong with this expression Nov 30 01:26:34 Anyone ever seen this: !!! FAILED BINDER TRANSACTION !!! Nov 30 01:27:13 Only happening on my s6, not the emulator Nov 30 01:37:59 pfn : how to use autolib? Nov 30 01:39:55 drose379: https://stackoverflow.com/questions/3528735/failed-binder-transaction Nov 30 01:42:02 Got it, thanks liuwenhao Nov 30 01:48:35 What do you think liuwenhao : https://vid.me/JPcv Nov 30 01:49:13 Besides my spelling of "DEMO" Nov 30 01:52:06 Looks good! and it doesn't crash which is a plus :) Nov 30 01:54:02 :D, thanks for looking liuwenhao Nov 30 01:56:58 Looks good. Have you considered making the status bar black on that image activity (via `colorPrimaryDark`)? Nov 30 01:57:34 I didnt know I could change the color of the status bar, thought only the Toolbar Nov 30 01:58:13 drose379: Your app colours the status bar dark blue. Nov 30 01:58:26 Right, and that works best for all other activities Nov 30 01:59:03 Yeah. You can create a sub-theme that is used only by the image activity which has `@android:color/black`. Nov 30 01:59:17 Never tried this before Nov 30 01:59:50 Can I show you my current styles.xml? Nov 30 01:59:52 How are you making the background black? Nov 30 02:00:08 I think it's best to set `android:windowBackground` to black. Nov 30 02:00:23 From what I read, it's more efficient as it prevents drawing two colours. Nov 30 02:00:40 For the sub-theme? Nov 30 02:00:44 Yeah. Nov 30 02:00:56 I really dont even know how to make a sub-theme Nov 30 02:01:08 You could also set `colorPrimary` there (instead of manually setting the Toolbar's background). Nov 30 02:01:40 A theme called AppTheme.Black will inherit from AppTheme. Nov 30 02:01:51 Ok then I just change the things I want Nov 30 02:02:18 What should the parent be? Nov 30 02:02:27 Your main theme. Nov 30 02:02:49 And the name is MainTheme.BLACK Nov 30 02:03:00 Why would it be capitalised? Nov 30 02:03:25 OOPS Nov 30 02:03:50 Leeds you might like this https://www.masteringemacs.org/book Nov 30 02:04:15 Ok so I made a theme with the color primary as black TacticalJoke Nov 30 02:04:47 That works, thanks Nov 30 02:04:58 I guess just changing the primaryColor changes the status bar color? Nov 30 02:05:07 Actually, wait. Nevermind Nov 30 02:06:25 hmm Nov 30 02:07:18 Got it TacticalJoke Nov 30 02:09:19 http://i.imgur.com/JQnGVfk.jpg Nov 30 02:20:05 g00s: oh yes, right up my alley Nov 30 02:20:31 lisp and bacon go well together ;) Nov 30 02:21:39 Can I still use the ViewHolder pattern with two view types? Nov 30 02:23:22 NO LISP! Nov 30 02:26:29 Is it possible to develop android apps using clang-3.6? Nov 30 02:26:40 I want to use C++, I'm not sure how to set it up. Nov 30 02:26:55 Exaeta look at the NDK Nov 30 02:27:20 I'm using android studio on linux, does it have this built in? Nov 30 02:27:25 remember , this C++ is 2nd class citizen on android Nov 30 02:28:04 yes, I want to combine C++ and Java. Java to interact with the OS, and C++ for the main application, if possible. Nov 30 02:46:05 Ok I think it's installing... so what can C++ not do exactly that Java can? Nov 30 02:54:59 anyone know if its possible to use google maps in a widget? Nov 30 02:59:37 anyone here use a value exchange ad service? if so which one and what is the average pay per video? **** ENDING LOGGING AT Mon Nov 30 03:00:50 2015