**** BEGIN LOGGING AT Mon Sep 12 02:59:58 2016 Sep 12 03:03:49 do we have a way to install multiple apk's with the same package name onto a device? Sep 12 03:04:15 I would like multiple versions of this app so I can compare/switch between them Sep 12 03:05:28 RustyShackleford use flavors to create unique packages Sep 12 03:09:24 its two different codebases Sep 12 03:09:43 I suppose I could rename the package in android studio and create a build for myself Sep 12 03:19:28 hello :) Sep 12 03:26:01 it's too quiet Sep 12 03:34:00 eh Sep 12 03:34:02 might be a good thing Sep 12 03:35:35 I like some banter Sep 12 03:35:48 how about that local sports team ... Sep 12 03:36:00 hello guys Sep 12 03:36:16 im getting an error while compiling my first app Sep 12 03:36:43 it says SLAVE_AAPT_TIMEOUT reached; put it greater thn 5 secs Sep 12 03:36:47 Seahawks won today Sep 12 03:37:15 i hav created an environment variable to put the timeout as greater thn 5 (60 exactly) Sep 12 03:37:18 pls help Sep 12 03:37:24 *takes a stab* basketball? Sep 12 03:38:41 lol football Sep 12 03:38:55 American football if that's an issue Sep 12 03:39:03 that was my next q hahah Sep 12 03:41:47 MaBunny: some light googling points at many diferent causes, depending on your OS and env Sep 12 03:42:09 pls is there any way to set it up from android studio? Sep 12 03:42:35 pls Sep 12 03:42:41 which OS? Sep 12 03:43:00 debian Sep 12 03:43:23 have a look at this, then -- http://stackoverflow.com/questions/30111443/android-studio-fails-to-build-new-project-timed-out-while-wating-for-slave-aapt Sep 12 03:43:31 i had googled it b4 thts where i saw to set the env variable Sep 12 03:43:37 ok Sep 12 03:43:43 thnx :) Sep 12 03:44:41 maybe AS 2.2 will go stable this week Sep 12 03:45:04 - SLAVE_AAPT_TIMEOUT = 30 Sep 12 03:45:14 thts what i set in my env variable Sep 12 03:45:24 also i saw exactly this page Sep 12 03:45:39 did you install those libs Sep 12 03:46:02 yes i hav them installed Sep 12 03:46:35 apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386 Sep 12 03:46:48 libstdc++6 is already the newest version. Sep 12 03:46:57 libncurses5 is already the newest version. Sep 12 03:47:06 zlib1g is already the newest version. Sep 12 03:47:14 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Sep 12 03:48:03 humm, might wanna have a look at the IDE logs then -- https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files Sep 12 03:48:49 ok Sep 12 03:50:18 g00s: I wish Sep 12 03:50:51 bankai_, isnt there a way to set SLAVE_AAPT_TIMEOUT manually from AS? Sep 12 03:52:26 huh, what's this slave aapt thing Sep 12 03:56:23 what's the coolness about as 2.2? Sep 12 03:56:28 export SLAVE_AAPT_TIMEOUT=60 Sep 12 03:56:40 espresso test recorder ;) Sep 12 03:56:44 this line is in my .bash_profile Sep 12 03:57:06 bankai_, can you tell if its correct? Sep 12 03:59:18 is there something wrong with me if i don't favor composition over inheritance Sep 12 03:59:51 i'd much rather looks at a class definition and what it implements right there, rather than traverse down the rabbit whole of inherited functionality Sep 12 04:00:55 also it could help if i could run gradle from the cmd line but idk where its located Sep 12 04:01:02 my spelling and grammar is etrocious at the moment Sep 12 04:01:28 MaBunny, gradlew is provided with all projects generated by android studio Sep 12 04:01:33 atrocious :) Sep 12 04:01:49 but where is it located? Sep 12 04:01:54 etrocious :D Sep 12 04:02:16 MaBunny, in your project... Sep 12 04:02:21 the electronic version of being disgusted Sep 12 04:04:25 I just wish you could have method bodies and variables in interfacea Sep 12 04:04:27 s Sep 12 04:05:09 parco: Overall I agree that "prefer composition over inheritance" is very oversold. Still, piecing together where the code together is pretty easy with composition, maybe with just one added indirection Sep 12 04:05:24 where the code goes* I mean Sep 12 04:08:05 cant anybody help me? Sep 12 04:23:51 How do I set execution timeout for something like a call to a method? Sep 12 04:24:26 or what do I need to google to find the answer? Sep 12 04:24:52 for a unit test? Sep 12 04:25:26 Say I want to call a method that does a long running operation. I need to know when it completes Sep 12 04:26:06 but the method currently returns instantly. Sep 12 04:26:32 maybe I can through it into a thread with a check for the work being done then call the second step after it completes. Sep 12 04:26:50 s/through/throw/ Sep 12 04:26:50 have a look at RX Sep 12 04:27:18 bankai_: It's on my list of things to learn, I'll take a look at it again Sep 12 04:28:22 I'm making a mess of the app, just trying to get a proof of concept working. Unfortunately my android/java skills are attrocious. Sep 12 04:41:26 bankai_, help me man Sep 12 04:42:24 did you run your project from cli? Sep 12 04:42:51 no man Sep 12 04:43:03 i dont kno how to run the gradle script Sep 12 04:43:27 pfn told you where it was Sep 12 04:43:45 yes i found it Sep 12 04:43:51 it's just a shell script Sep 12 04:44:38 so how do i run it? Sep 12 04:44:52 sh ./gradle Sep 12 04:44:59 ./gradle: 158: ./gradle: Syntax error: "(" unexpected Sep 12 04:45:19 it's gradlew Sep 12 04:45:25 gradle is the directory Sep 12 04:46:16 gradlew: 154: gradlew: Syntax error: "(" unexpected Sep 12 04:46:56 your shell is busted Sep 12 04:47:02 no Sep 12 04:47:17 sh gradlew Sep 12 04:47:25 gradlew: 154: gradlew: Syntax error: "(" unexpected Sep 12 04:47:45 im doing it inside the project directory Sep 12 05:13:47 "A 6-year-old Brooklyn boy suffered burns when one of Samsung’s recalled Galaxy Note 7 smartphones exploded in his hands — and his grandmother says he’s too scared to go near any other devices." Sep 12 05:14:11 mandatory recall in 3 .. 2 .. 1 .. Sep 12 05:15:18 oh damn! Sep 12 05:15:41 " he was rushed to Downstate Medical Center with burns to his body." Sep 12 05:20:54 Leeds hear anything about the pixel phone(s) pricing? reading here ... uses qualcomm 821 for VR features, which costs a lot compared to the 820 Sep 12 05:23:32 very little credible, but I'm definitely thinking higher rather than lower Sep 12 05:23:56 * g00s atill hoping for that huawei 7" tablet thingy Sep 12 05:24:18 if the tablet is real, that's more likely to be on the cheaper end, I think Sep 12 05:24:38 yeah hopefully, if i replace my n7 Sep 12 05:25:27 if the rpi3 gets good enough support, i'll just use one of those for development :D Sep 12 05:25:37 Android Oreo j/k Sep 12 05:25:38 I just bought a pair of bose noise-canceling bluetooth headphones, embracing the new wire-free world - on the basis that I don't think I'll be buying any more tech until next year Sep 12 05:25:48 alphamule: hiroshi has already been trolling that :) Sep 12 05:26:12 So is it marshmellow-looking on the inside? Sep 12 05:27:14 Sounds like it needs to go into Orbit Sep 12 05:28:02 Leeds what frequencies do these use to communicate ? Sep 12 05:28:17 i hear, people with BT keyboards + mice having problems in crowded offices ... Sep 12 05:28:25 i'll just take wires, thanks Sep 12 05:28:35 I have a BT mouse, seems to work ok :) Sep 12 05:28:49 is it over the 2.4 / 5ghz ism band? Sep 12 05:29:04 one of the reasons I bought this model is that they can work wired, and can even work as non noise-canceling wired if the battery goes Sep 12 05:29:08 Hmm, Oatmeal Cookies Sep 12 05:29:19 BT is 2.4, isn't it? Sep 12 05:29:29 http://candy.about.com/od/candybasics/a/candy_recipes_n.htm Sep 12 05:30:01 Pecan Pie Sep 12 05:30:19 (runs on Raspberry Pi4 of course) Sep 12 05:30:26 :P Sep 12 05:30:28 Future names Sep 12 05:30:30 meh Sep 12 05:37:07 I think I'm going to take my Pi3 to my parents' house next month and set it up as a VPN endpoint, backup/filestore, etc. Sep 12 05:39:09 are there any csv libraries for android that don't live on sourceforge? Sep 12 05:45:52 Leeds: bt is 2.4 but does frequency hopping Sep 12 05:46:06 so it shouldn't be affected by wifi who also operates on 2.4 Sep 12 05:46:13 Bam_Bam: something wrong with sourceforge? Sep 12 05:46:21 Marlinski: how about microwave ovens? Sep 12 05:46:31 those are shielded Sep 12 05:46:38 that would be a health hazard otherwise Sep 12 05:47:20 I think there's probably quite a gap between the amount of leakage which might interfere with comms, and the amount you'd need for a health hazard Sep 12 05:47:53 Leeds: I got sick of downloading software with toolbars or wrapped with the sourceforge installer Sep 12 05:48:05 I have yet to witness my oven interefering with my wifi comm Sep 12 05:48:05 Leeds: they also starting taking over "abandoned" projects Sep 12 05:48:13 Leeds: http://www.howtogeek.com/218764/warning-don%E2%80%99t-download-software-from-sourceforge-if-you-can-help-it/ Sep 12 05:48:30 Bam_Bam: firstly they've 'promised' that they have stopped that since it was sold... secondly, not sure how that would be an issue for a library anyway Sep 12 05:54:57 Marlinski: maybe I'm out of date :) I remember many years ago being quite confused by the feature "microwave oven protection" listed on an update for a wifi driver... Sep 12 05:55:16 Leeds: huu, this was probably just marketing :) Sep 12 05:55:32 Leeds: actually starting from 802.11n wifi started operated also on 5ghz Sep 12 05:55:46 Leeds: for a marketer it might be understood as microwave protection :) Sep 12 06:00:11 this was long long before n Sep 12 06:00:51 Leeds https://www.reddit.com/r/askscience/comments/2xipte/can_a_microwave_oven_interfere_with_my_wifi/ Sep 12 06:00:57 then I see no reason how a driver can prevent interference from a microwave, maybe it just is a better datarate selection in the driver Sep 12 06:01:14 lower datarate are more resistant to interference so it might just be it Sep 12 06:01:43 also from there http://imgur.com/23hN3 Sep 12 06:02:18 my buddy had a cordless phone that would drop a call everytime someone used the microwave Sep 12 06:02:55 bed time! Sep 12 06:03:00 night fellas Sep 12 06:03:52 actually this is cool too http://io9.gizmodo.com/why-does-your-microwave-oven-mess-with-the-wi-fi-connec-1666117933 Sep 12 06:06:02 g00s: lol Sep 12 06:06:49 Hi. If I have an external library containing several .aar and .jar files, what would be the cleanest way to add dependencies? Sep 12 06:07:12 I can figure out how to add .jar files all in the same folder but when I add the .aar files too, things get messy and hard to track Sep 12 06:07:28 is this library available online ? Sep 12 06:07:35 Yeah Sep 12 06:07:39 I mean is it in a public repository Sep 12 06:07:45 then I would suggest using gradle Sep 12 06:07:48 It's an sdk rather, Google Tango sdk Sep 12 06:08:05 Not in a public repository, I thought you meant available online for you to see Sep 12 06:08:13 but the code isn't available in a repository afai Sep 12 06:08:18 afaik* Sep 12 06:08:37 I've downloaded the files from https://developers.google.com/tango/downloads Sep 12 06:08:39 then something like compile files('libs/MyJar.jar') in your gradle should do it Sep 12 06:08:55 Okay, and same procedure for the .aar also? Sep 12 06:09:06 I've never personally worked with .aar Sep 12 06:09:23 neither did I :) Sep 12 06:09:27 Ah okay Sep 12 06:09:38 I'll see what happens when I do the same for .aar, thanks for the help :) Sep 12 06:26:37 Marlinski: is there any benefit to adding it in the libs folder vs importing it as a module? Sep 12 07:06:27 <_raw_> How to develop a app which connects to IRC? Sep 12 07:09:48 _raw_: out of curiosity, for what purpose? Sep 12 07:10:23 <_raw_> I am thinking about to create a IRC chat server Sep 12 07:10:36 <_raw_> and It would be nice to have android app. Sep 12 07:10:45 <_raw_> I have no idea on Coding. Sep 12 07:11:22 ding ding ding Sep 12 07:11:25 _raw_: well, you could check the source code of this IRC client https://github.com/sandsmark/QuasselDroid Sep 12 07:12:56 _raw_: if you have no idea about coding, you're a long long way from writing an IRC app Sep 12 07:13:36 <_raw_> Leeds: thats why I need help Sep 12 07:13:56 lots of help! Sep 12 07:14:02 first, create the universe Sep 12 07:14:14 <_raw_> I can setup a IRC server which uses mirc. Sep 12 07:14:31 <_raw_> I just want to replace mirc/other irc client Sep 12 07:14:43 <_raw_> and use my own irc. Sep 12 07:14:47 <_raw_> irc client. Sep 12 07:15:19 an IRC server which uses mirc? Sep 12 07:15:34 <_raw_> in playstore there is one app for another server. Sep 12 07:15:46 _raw_: Leeds is right. You have a lot to learn before you can make an IRC client for android. Sep 12 07:16:29 <_raw_> hmm Sep 12 07:16:43 _raw_: Java and then the mindfuck that is the Android API Sep 12 07:17:47 <_raw_> I dont know Programming. :( Sep 12 07:18:00 helloWorld Sep 12 07:18:09 do eet _raw_ Sep 12 07:18:14 VerbalKint_ o/ Sep 12 07:18:23 raoul11: hey Sep 12 07:19:34 <_raw_> so what can i do? Sep 12 07:20:14 learn to code Sep 12 07:23:27 or pay someone to do it for you Sep 12 07:29:34 I have an app A that has a transitive dependency to a library D containing resources. A depends on lib-B depends on lib-C depends on D. I would expect the resources from D to be bundled into A, but get a null when doing findViewById(R.id.resource_from_d) from A. How can I get this to work? Sep 12 07:30:31 The only library that does not have the default project structure is C, but C does not contain any resources itself. And I specified sourceSets { main { java.srcDirs = ['src'] }} in the build.gradle for C Sep 12 07:31:20 I also have proguard and minifyEnabled set to false to avoid any resources from bein erroneously removed. Sep 12 07:34:11 <_raw_> how much does it cost? Sep 12 07:34:26 <_raw_> since I cant learn programming, I have to ask. Sep 12 07:37:53 there are dozens of android irc clients already Sep 12 07:38:05 also what does 'setting irc server for irc' mean Sep 12 07:38:41 <_raw_> yeah all IRC client are for users free use of IRC server Sep 12 07:39:04 <_raw_> I want a IRC client which is designated to use my IRC only. Sep 12 07:39:26 <_raw_> users download IRC client and just click connect. Sep 12 07:39:29 <_raw_> and done. Sep 12 07:39:31 i think you can configure password to your server hm? Sep 12 07:40:05 <_raw_> yeah, I can create IRC server. Sep 12 07:40:18 <_raw_> which allows users to connect. Sep 12 07:41:32 <_genuser_> hey people. anybody implement user logins with auth tokens? Sep 12 07:45:59 _raw_, how much does it cost to have an app done for you? Sep 12 07:46:21 it depends.. a student might do it for 100$ a professional company, add a zero Sep 12 07:46:35 100$ for an app? Sep 12 07:46:38 dude. Sep 12 07:46:49 a simple irc-client for a fixed server, come on.. Sep 12 07:46:51 An IRC client nonetheless Sep 12 07:47:19 you can barely find a bj for a 100$ /: Sep 12 07:47:22 I would expect at least 300$ if I were to do it alone Sep 12 07:47:26 there is open source which already does that, hardcode the server data remove all config - done Sep 12 07:48:02 ktwo: that would be stealing Sep 12 07:48:18 nah, if you use MIT-licenced code Sep 12 07:48:37 ktwo: any MIT IRC clients out there? Sep 12 07:48:38 <_raw_> yeah Sep 12 07:48:46 <_raw_> I have found Open source IRC client Sep 12 07:49:07 <_raw_> but all of those have options to set IRC server of users choice. Sep 12 07:49:44 so youre thinking of preconfigured irc client Sep 12 07:49:56 _raw_: which one? Sep 12 07:50:00 well of course you would have to modify the source if you dont want those settings Sep 12 07:50:45 _raw_: https://programmers.stackexchange.com/questions/47032/can-i-use-gpl-software-in-a-commercial-application Sep 12 07:51:25 _raw_: If you do distribute YOUR APPLICATION, and you used something GPL as part of your application (even if only linking at run-time to a library) - and even if you do not charge money - and even if you do not change that GPL s/w in any way - then you MUST make the source of YOUR APPLICATION available Sep 12 07:53:04 <_raw_> hmm Sep 12 07:53:24 _raw_: it is going to be a commercial application, right? Sep 12 07:53:28 well should be no problem right? there's nothing to hide? Sep 12 07:53:51 Though i would consider if IRC is the reasonable platform for what you're doing Sep 12 07:53:58 <_raw_> currently I am planning for non commercial use, Sep 12 07:54:02 if you want to setup a simple chat there are easier ways of doing it Sep 12 07:54:29 _raw_: if you're fine with releasing the source, then you can use GPL code Sep 12 07:54:48 <_raw_> but I am not fine with realeasing the code. Sep 12 07:55:23 <_raw_> ktwo; easier ways? Sep 12 07:55:49 <_raw_> VerbalKint_: what if I use GPL code, and later on add ads? Sep 12 07:56:09 _raw_: think that counts as commercial Sep 12 07:56:24 <_raw_> in that case I cant use that code? Sep 12 07:56:49 _raw_: honestly, I don't really know that much, just that GPL means that you have to distribute the source code Sep 12 07:57:38 _raw_: https://tldrlegal.com/ Sep 12 07:57:42 <_raw_> 100Dollar for full right Sep 12 07:57:44 <_raw_> hmm Sep 12 07:57:45 _raw_: look at the popular ones Sep 12 07:58:48 if you distribute the code you can do whatever you want with it Sep 12 07:59:11 except selling it with the same name and stuff like that Sep 12 08:06:02 _raw_: but the licensing worry can be overblown. Who knows if the devs will nag you to release the source code of your application. Sep 12 08:06:41 um... you should plan to be compliant, not make it a just-in-case thing Sep 12 08:07:16 Leeds: yeah, like the developers of an IRC client would go as far as suing him for making a tiny app. Sep 12 08:07:42 *using their source code Sep 12 08:08:58 sue? no... takedown? absolutely Sep 12 08:09:34 Leeds: oh wait, this counts as copyright infringement to google, right? Sep 12 08:11:31 of course Sep 12 08:16:48 in order to use YoutubeAPI, it requires an API key which seems to require the app certificate, how can I develeop test and debug first ? Sep 12 08:17:14 Marlinski: add the debug certificate in youtube backend Sep 12 08:18:26 xorgate: so I should have a debugkey and a productionkey ? Sep 12 08:18:52 dunno how youtube does it but often you can add a release and a debug SHA Sep 12 08:19:17 ok Sep 12 08:39:37 If my app previously supported API 14, can I change my next version to support 16? Or will that go against Google's rules? Sep 12 08:40:06 you can Sep 12 08:45:31 _raw_: GPL does not say anythign against commercial use Sep 12 08:45:38 you can take GPL code, modify it, and sell it, Sep 12 08:46:03 as long as (a) every user of your app, and (b) the original developers can, on request, get a copy of your modified source code Sep 12 08:46:10 (Excluding API keys, ofc) Sep 12 08:47:14 source: working for years in GPL projects Sep 12 08:47:43 it’s also why I absolutely will not ever under any circumstances use any non-OSS code in my apps Sep 12 08:47:45 GPL Sep 12 08:48:05 which means, in turn, no use of the google firebase or firebase messaging libs, but instead building our own Sep 12 08:59:07 gordon_, I get returned "Make sure there arn't any faults in the form" when trying to upload the apk. You sure I can lower the supported API? Sep 12 09:07:46 Anyone know? Can I change minSdkVersion from a lower one to a higher one on an existing app? Sep 12 09:08:18 It seems google isn't accepting it. But they arn't giving me a straight answer to what's wrong. Sep 12 09:08:19 yes sire Sep 12 09:08:25 just change the manifest Sep 12 09:08:40 just put out an update with the updated manifest Sep 12 09:08:52 pifon, I handle the sdkversion in my gradle file, but suppose it's the same? Sep 12 09:09:11 do it in the manifest Sep 12 09:09:56 pifon, I wish to learn, so can you explain "why" it should be in the manifest instead of the gradle file? Sep 12 09:10:26 i dont know but it works for me so Sep 12 09:11:05 hi Sep 12 09:11:14 pifon, alright I'll give it a try Sep 12 09:12:36 if i import a project without gradle scripts, will android studio generate some for it? Sep 12 09:14:55 I think so blippyJon Sep 12 09:15:26 because it doesn't seems to do that Sep 12 09:18:16 okay then well it doesn't xD Sep 12 09:21:06 I have problem with programatically created buttons... I would like to create some margin between newly created buttons so one can tell there a re 2 buttons and not one. Also I can't seem to apply less padding. This is my code: https://gist.github.com/anonymous/bbab4cc596da2baa899688a114672435 Any ideas how can I apply padding and or margin currently it looks like this: http://i.imgbox.com/ZkJJl6wm.png Does this has someting to do that I use Sep 12 09:21:06 ColorDrawable in reflection to check if button was selected? ColorDrawable buttonColor = (ColorDrawable) btnTag.getBackground() Sep 12 09:23:15 hey Sep 12 09:23:40 Whole code: https://gist.github.com/anonymous/189d56f4f7501bf098eb76cdcedc89b9 Sep 12 09:30:02 FINALLY! Sep 12 09:31:08 hi guys Sep 12 09:33:07 how can make a "black mask" under my bottom sheet? Sep 12 09:33:27 the sheet itself is working, but the content behind it still visible Sep 12 09:34:20 any hint to how can i achive this? Sep 12 09:45:32 adb flaking on Windows again Sep 12 09:45:56 Working as intended. Sep 12 09:48:58 :/ Sep 12 09:51:26 Any ideas on my issue with buttons? :) Sep 12 10:03:03 frojnd, refactor it, you can do that in many ways, one hint would be to save the color of the button as a tag Sep 12 10:08:00 iprime, please aleaborate, what do you mean with refactoring? Also even if I don't implement setOnClickListener (there is mentioned ColorDrawable...) Result is the same... Sep 12 10:13:33 Ok... I've read about refactoring which is about making my code more efficient... but I still don't know how will this solve my issue that I asked a few lines above? Sep 12 10:13:39 I've red* Sep 12 10:20:14 frojnd: You will need to change the margin in the Button's layoutparams Sep 12 10:20:45 Flipping great, I uploaded a version of my app without the ads turned on Sep 12 10:20:46 And default buttons will have their min width/height set afaik Sep 12 10:21:38 pduin thank you.. let me play with layoutparams and see how it goes Sep 12 10:35:21 I have a library that contains an Activity. This Activity requires a resource from a dependency. The build.gradle of the project containing the Activity is the following https://ghostbin.com/paste/ymbcy How do I need to configure the build.gradle to include resources from the dependency? I thought this happens by default? Sep 12 10:50:51 If I go from activity1 to activity2, and then straight back to activity1 using "finish()" will activity1 call onCreate or onResume? Sep 12 10:51:44 depends Sep 12 10:52:46 https://developer.android.com/guide/components/activities.html Sep 12 10:56:34 if you finish() activity1 when u went to activity2, it will still be on your stack Sep 12 10:57:56 " Leeds: I got sick of downloading software with toolbars or wrapped with the sourceforge installer" Wait until you get ahold of Windows 10's advertisements in the logon screen. :P Sep 12 10:59:04 alright thanks. I could also use some help with my TextWatcher: http://pastebin.com/ta8k7hp8 I append "-" to form a date looking string. But the "-" characters isn't deletable. When I start erasing text from the field, those "-" doesn't get deleted Sep 12 10:59:07 Still, the system may have destroyed the Activity. Sep 12 10:59:42 " lower datarate are more resistant to interference so it might just be it" Actually, they take advantage of the fact that a microwave interferes in pulses, many times per second. Sneak a packet inbetween and oh it's like magic. And yeah, it drops the data rate to shit. :( Sep 12 11:00:13 Bernzel: Because you are appending "-" Sep 12 11:00:34 Also, that's an odd way of formatting a date Sep 12 11:00:54 barq, 1967-04-15 is how it will look Sep 12 11:00:59 why is it strange? Sep 12 11:02:54 pduin, margins works wonderfully with Button's layoutparams. But I'm wondering how can I set padding if at all programaitcally for linearlayout? Sep 12 11:03:28 Use a formatter to format thinsg. Sep 12 11:05:02 barq, but I want it to happen in realtime when the user is inputing data. It's working, except for when you need to retype the text Sep 12 11:08:01 Not sure what exactly you are trying to achieve. Insert hyphens automatically while typing and removing, as is done for example when entering windows activation keys? Sep 12 11:08:22 barq, exactly Sep 12 11:12:35 No need to highlight if there is only one conversation going on. Sep 12 11:13:28 Hello, i am watching at a project on Github, on this project, icon are generated from "codes". And i dont understand how the link is done between the code and the real icon. Here is an example : https://codeshare.io/N7Sd7 Sep 12 11:13:36 You can probably find other people with this problem if you search http://stackoverflow.com/questions/16976173/adding-a-dash-in-the-edittext-automatically-in-android Sep 12 11:14:15 You probably want a condition that ignores your rules when deleting Sep 12 11:14:42 Record the length in beforeTextChanged and then compare with the current length in afterTextChanged Sep 12 11:15:05 And if previous < current you want your hyphens to be added, otherwise just remove the character, i.e. do nothing Sep 12 11:15:19 Does anyone know how can I override min width/height for default button? button.setMinWidth(10) is not working... min width for width is still way too big Sep 12 11:15:24 Look at ishroids answer Sep 12 11:15:47 thanks, can't believe I didn't find that one when searching Sep 12 11:16:35 Finally found it!!! it is setMinimWidth() method!!! woooow :) Sep 12 11:17:00 app_: it looks like a custom attribute of the custom UI element Sep 12 11:22:54 Typical solution is to totally subtract out "-" along with anything besides a...z and A...Z and 0...9 Sep 12 11:23:06 Then add back the - every 5th character Sep 12 11:23:19 You're making the existing typed in ones irrelavent Sep 12 11:23:32 Only producing them on display, not storing :) Sep 12 11:23:58 TL;DR Treat "-" as white space Sep 12 11:25:29 Is there a way to apply drawable tint over drawable xml in Pre API 21? Sep 12 11:30:19 Moshdev: read this? https://stackoverflow.com/questions/29155463/drawable-tinting-for-api-21 Sep 12 11:30:34 Moshdev: if it helps you, you owe me a pot of gold, you leprechaun Sep 12 11:32:13 VerbalKint: sorry, but i don't need the imageview, i use TextView drawableLeft and so on Sep 12 11:37:03 If a module in AS does not contain a java folder, how can I create one? Sep 12 11:37:36 you can create it manually or right click create new directory Sep 12 11:38:29 resource directory? Sep 12 11:39:28 frojnd: You set the padding on the View(Button) itself Sep 12 11:40:01 pduin, yeah I figured there can't be another way thant on itself :P Sep 12 11:40:45 Great, so your Button size/margin/padding problem is solved now? Sep 12 11:40:54 pduin, yeah! Sep 12 11:41:04 Party time! Sep 12 11:41:30 I set margins with params on linearlayout and padding with minimium height/weight on button itself \o_ p_A_r_T_y \o\ Sep 12 11:42:17 I'm now trying to figure out what is my parent theme :) All the buttons gets ALL CAPS text and I would like to apply false in styles.xml Sep 12 11:44:44 You can define a style for your buttons and apply it to just your buttons Sep 12 11:45:32 about that downgrading sdk version I talked about earlier, I finally got a solid errormessage saying "It is not allowed to downgrade devices that previously used the M-permissions (SDK targeted at 22 or higher versions) to the APK files using the privileges of the old type (SDK targeted at 22 or earlier versions)" so to my understanding I can't actually go down on supported versions? Sep 12 11:45:40 pduin, I think I'll do that. Because I also need to make round corneres and other stuff and tihs way I'll also refactor my java code Sep 12 11:46:10 Use ContextThemeWrapper for this. Create a ContextThemeWrapper with the current Activity and the custom button style resouce id as parameters. Sep 12 11:46:29 Pass the ContextThemeWrapper object when creating your buttons. Sep 12 11:52:01 Thank you pduin :) Sep 12 11:54:23 I imported a custom project. Apparently icons are generated from a font file (.tff). But how can I know what code matches with what icon ? Sep 12 11:54:27 Bernzel: What you pasted is the only case where it's not possible Sep 12 11:55:30 frojnd: No problem. I've just finished an extensive UI overhaul complete with theming support, so all this stuff is still fresh for me. Sep 12 11:55:32 SimonVT , and what is the case? Is it target Sep 12 11:55:39 targetSdk or minSdk? Sep 12 11:55:51 target Sep 12 11:56:05 it's too high then? Sep 12 11:56:23 Huh? Sep 12 11:57:43 What is the matter with targetSdk ? I haven't "downgraded", I've uped the version instead Sep 12 11:58:00 always target newest sdk Sep 12 11:58:02 Apparently you're trying to lower it Sep 12 11:58:11 Otherwise it wouldn't tell you that Sep 12 11:58:22 its minsdk you probably want to change Sep 12 11:58:36 Google must be drunk. I target 24 , which is the newest? Sep 12 11:59:23 Check your code again, the apk doesn't seem to be targetting api24 Sep 12 11:59:26 pduin, I was constantly putting away reading stuff related to UI, I was always leaning towards backend logic but I guess at one point you must grow fond of UI and the way it was designed to work. Sep 12 12:01:14 frojnd: I had the same attitude until I found myself reading too much reviews stating the app looked dated. It still had the 3.0/4.0 look until last week. Sep 12 12:02:31 I may be partial blind on one eye, but I'm 100% sure I'm targeting 24.. Sep 12 12:02:32 Although the last update didn't bring any new functionality, customer response to the new look has been overwhelmingly positive. Sep 12 12:03:32 hehe :) Sep 12 12:04:01 <_genuser_> once you set a view to Visible.GONE, is it actually deleted from the main View? Sep 12 12:04:07 <_genuser_> can you not set it back to Visible? Sep 12 12:04:09 It will definitely pay off to take a good hard look at your UI every once in a while. Sep 12 12:04:16 _genuser_: You can make it visible again Sep 12 12:05:44 <_genuser_> pduin: hmm, I have a linearyear with two framelayouts in side (A and B). If I set A.setVisibley(View.GONE); B.setVisiblity(View.VISIBLE), A is gone, but B never shows up. Sep 12 12:05:47 <_genuser_> odd. Sep 12 12:07:52 Odd indeed. There must be something wrong somewhere else in your code. Sep 12 12:08:26 <_genuser_> pduin: simpler things are the ones that end up taking too long. Sep 12 12:08:40 <_genuser_> I hate how there are soooo many elements in the UI that you have to keep track of how you name them. Sep 12 12:08:52 AS mistkes main/java for a package and says the package com.x doesn't match main.java.x Sep 12 12:09:30 <_genuser_> pduin: ah, wrong reference! see about too many names? it's working now. :) Sep 12 12:10:04 _genuser_: So true. Especially estimating how long UI stuff will take is impossible. Sep 12 12:13:58 barq: And it did this without you ever telling it your java files were in src/ ? Sep 12 12:15:58 I don't have sourceSets defined, I just imported the module again Sep 12 12:16:30 I want to clean up the project structure to match the gradle structure and stop messing with sourceSets to see the resource dependencies work that way. Sep 12 12:17:28 the src folder is blue Sep 12 12:17:38 SimonVT, it seems it was the minSdkVersion that actually NEEDED to be downgraded? :S I took it down to 14 (which I'm guessing is what I used before) and it seemed google could accept that. Makes sense? Sep 12 12:17:47 Remnants of your previous mistake Sep 12 12:18:08 my previous mistake? Sep 12 12:18:20 Sync, or delete idea files and reimport if that doesn't work Sep 12 12:18:42 Was for barq Sep 12 12:19:05 ah okey Sep 12 12:19:11 How should I delete the module? Sep 12 12:19:15 In the file manageR? Sep 12 12:19:36 .iml files and .idea folders Sep 12 12:19:39 Syncing should work tho Sep 12 12:19:47 sync fails Sep 12 12:19:48 file -> project structure Sep 12 12:20:31 Also delete in file manager after deleting in project structure? Sep 12 12:21:02 just to be sure Sep 12 12:21:28 OK, now I reimport view file new import module Sep 12 12:21:36 After exporting from Eclipse and generating the gradle file Sep 12 12:22:27 Now I only have a src folder and the packages directly underneath Sep 12 12:25:02 How do I go about creating the main and java folders from there? Sep 12 12:26:07 They're just folders Sep 12 12:26:36 Right now src is blue Sep 12 12:26:43 So I create a folder main in there Sep 12 12:26:59 It only gives me the package option Sep 12 12:27:25 Still thinks it's a source folder then Sep 12 12:48:04 is it possible to get a path from the uri returned by the sotrage access framework Sep 12 12:54:14 is there an easy way to read/write to a redis server from android? Sep 12 12:55:48 Does anyone know why ADB would discover my device using "adb devices" multiple times and then fail to find the device for no apparent reason later. Windows 10 Sep 12 12:56:40 is Windows 10 the answer? Sep 12 12:56:50 snowball: uri.getPath() Sep 12 12:57:49 Perhaps, but I'd imagine that Google has put enough resources in Android development working on Win/OSX/Linux Sep 12 12:59:24 Hey guys Sep 12 12:59:38 i have a project that im working on and i'm running into a wall with this thing Sep 12 12:59:44 shmooz my intent was to find out if the doc is internal or on the sd, the uri path doesn't reveal that Sep 12 12:59:58 Leeds vim 8 ! Sep 12 13:00:20 basicly i want to output keyevents to any application somehow, this particular case would be reading QR codes with the camera and then outputting that result to any receiving edittext etc. Sep 12 13:00:28 i have trouble with KGDB on hammerhead. i have connection throuth headphones jack with patched kernel but have errors like "Packet qSymbol (symbol-lookup) is NOT supported" and phone rebooting. Sep 12 13:00:32 is that in any way or shape possible? Sep 12 13:01:20 somebody can help me with things or link..? Sep 12 13:03:05 <_genuser_> g00s in in the house? woo! Sep 12 13:03:52 * Zharf beats this edittext senseless Sep 12 13:04:16 <_genuser_> Zharf: there's no other way to master the UI!! Sep 12 13:09:16 hi everyone... Sep 12 13:09:25 hi Sep 12 13:09:40 do exists someway to prevent and app to be uninstall programatically? Sep 12 13:10:03 do exists someway to prevent an app to be uninstall programmatically?* Sep 12 13:11:16 no Sep 12 13:12:20 oh,... guess I have to do it manually registering in the device manager app, true? Sep 12 13:14:16 you can use adb to uninstall Sep 12 13:14:53 https://github.com/pbreault/adb-idea here's a plugin that makes it even easier Sep 12 13:15:08 dsardari, I think you misunderstood his question Sep 12 13:15:49 oh. yeah, you're right Sep 12 13:15:58 hehehe Sep 12 13:16:38 yes, i want to make and app to prevent some activities on a device... so, i want to make uninstallable too for the final user Sep 12 13:17:21 only an admin user with the admin credentials can uninstall or edit the config params of the app Sep 12 13:17:27 jarhkof, only way you could do that is to mark it as a system application and there's no way to do that for regular application developers Sep 12 13:18:13 you'd need to have manufacturer/google/root( maybe?) access Sep 12 13:19:11 let me see if i understand, the only way to do it its on a rooted device? Sep 12 13:19:34 which would defeat the purpose Sep 12 13:21:18 mmm... in some webpage i read that can be do it registering on device manager app... i never try it,... do you think this can make the trick? Sep 12 13:22:00 "some webpage" Sep 12 13:22:04 where is raoul11??? Sep 12 13:23:14 Zharf, in this link i read it: http://stackoverflow.com/questions/28794894/prevent-app-from-uninstall-in-android Sep 12 13:23:34 and pls... excuse my poor english... isn't my native language :) Sep 12 13:24:06 So, our app supports minSdkVersion 14, and I have some setTextAppearance(this, X); which is deprecated (due to the context). If I remove the context, it errors that the call requires API 23+. How can I have both in the code so it works on 23+ with new method and 22 or lower with old? Sep 12 13:26:01 jarhkof, those are about being device administrator application, which does have some control, but you can't choose to be device administrator as an application, the user must choose you for the role Sep 12 13:26:24 and they can remove the device administrator too, so that'd bypass the "uninstall protection" anyway Sep 12 13:29:18 thx so much Zharf, if i think more in context, it has so logic that not exists a way to do what i want to do for the common users... so Sep 12 13:29:42 i have to think another way to have some control in the way i want Sep 12 13:29:51 thx so much for your time :) Sep 12 13:34:24 your problem is going to be that interfering with other apps and rendering yourself uninstallable are generally pretty undesireable behaviors linked to malware, so the OS is really going to do its best to prevent you from being able to cause that Sep 12 13:34:52 anyone know if its at all possible to inject keyevents in android like a bluetooth hid would? Sep 12 13:35:08 most of the corporate management stuff either teams w/ the device manufacturer to make it a system app, or teams with the apps to require it be present for the app to function - but that's a codependency where the app is aware of the manager Sep 12 13:35:08 context? Sep 12 13:35:20 Zharf: in my case? Sep 12 13:35:28 yes, what do you want to do Sep 12 13:35:36 barcode scanner to hid output Sep 12 13:35:45 so you could scan qr codes into any edittext Sep 12 13:35:51 without needing to code in barcode reading Sep 12 13:35:58 you could do it w/ a keyboard Sep 12 13:36:13 but i don't think you could do it with hid events in android Sep 12 13:36:42 https://play.google.com/store/apps/details?id=com.tecit.android.barcodekbd.demo&hl=en Sep 12 13:36:45 I don't think so either no, you could write your own keyboard Sep 12 13:38:10 on rooted devices you could probably write to some /dev/input/ thing Sep 12 13:42:20 how about softkeyboard Sep 12 13:43:11 dragorn linked to a soft keyboard Sep 12 13:45:36 so that would be the way to do it Sep 12 13:48:15 yep Sep 12 13:48:36 I feel like it's a lot of work to write a software keyboard though Sep 12 13:53:58 hello Sep 12 13:54:11 i tried getting into it a bit earlier Sep 12 13:54:18 but um, it crashed when i tried to use it Sep 12 13:54:42 then i made a messenger styled floating graphic on top of all programs that actually starts the scan activity when double tapped Sep 12 13:54:53 all that works, but turns out i can't get data fed back into android in any way Sep 12 13:54:58 so this is a bit of... bummer Sep 12 13:56:29 is this channel for application development? whoops Sep 12 13:57:24 @Strldent yes it is Sep 12 13:59:41 Zharf, I think there's enough aosp code for keyboards Sep 12 13:59:46 Zharf, everyone just hacks that up Sep 12 14:00:54 aosp? Sep 12 14:01:06 it's not that much work to write a keyboard Sep 12 14:01:25 not a trivial one at least Sep 12 14:01:47 goddammit, 5* Freya fml Sep 12 14:05:32 do anyone knows some prototyping app that generate ui code? Sep 12 14:05:45 if its free better Sep 12 14:10:13 is anyone pretty good with RxJava? Sep 12 14:10:44 i'm trying to figure out how to set up a class as an observable so that an activity and a service can subscribe and communicate while observing the things in the observable Sep 12 14:11:33 the central idea is a "Playlist" class, the activity subscribes to get the name of the currently playing song, and the service subscribes to get the URL of the mp3 file to play Sep 12 14:12:33 when the song is finished, the service notifies the playlist, then the playlist moves to the next song and again notifies the activity and service Sep 12 14:16:45 Hello everyone, just a quick question . I'm using https://github.com/openid/AppAuth-Android for integrating with an openid connect IDP, it works great except in the case where I need to go out to get an SMS one time password for certain scope. the problem is that after switching app the chrome custom tab "looses" its context and is no longer at the input screen. anyone know how to get around this? Sep 12 14:21:23 any up to date tutorial on soft keyboard creation? Sep 12 14:21:28 i can only find stuff from 2009 Sep 12 14:21:39 Viliny, i just built one recently, did you have a specific question? Sep 12 14:21:41 g00s: I know! Sep 12 14:21:43 iirc this is the same example that ended up not working Sep 12 14:22:18 greves, kind of - i really just need to create a new keyboard with a single button for barcode scanning that launches a barcode intent and then returns that as keyboard output to the app Sep 12 14:22:49 does that sound like it could work? Sep 12 14:23:07 and um, do you have any good online reading that you may have followed while making yours? Sep 12 14:23:23 Viliny, should be pretty easy, just do a InputMethodService, the KeyboardView is just a regular View so you can use whatever container you like, and then call startActivityForResult, get your data back and then send it to the InputConnection Sep 12 14:23:46 Viliny, i couldn't find much either, kind of spent a while digging through all the KeyboardView and InputMethodService source code Sep 12 14:23:55 Has anyone ever had issues with a carrier update causing apps to crash? Sep 12 14:24:20 One of our app users can't use the app since t-mobile released an android update Sep 12 14:24:37 it wont launch without crashing Sep 12 14:24:45 greves, so the keyboard is allowed to launch intents? Sep 12 14:25:19 greves: is your code something i could have a look at? Sep 12 14:25:48 Viliny, sorry ;P but yeah, not the Keyboard or the KeyboardView - the InputMethodService is where all the action happens Sep 12 14:27:17 greves: sorry, im having a bit of a difficult time understanding what you ultimately ment with that Sep 12 14:28:52 Viliny, you basically need a Keyboard, a KeyboardView, and an InputMethodService Sep 12 14:29:07 you register in the InputMethodService in the android manifest, and it will appear as a keyboard in the system Sep 12 14:29:28 right, i actually got that far last time Sep 12 14:29:31 your KeyboardView can be anything you like, its just a View. you'll just need a button. Sep 12 14:30:18 then when you click the button, the InputMethodService gets a call in `onKey` (and also `onPress` and a few others, but `onKey` should work) Sep 12 14:30:59 and then i would launch the barcode intent and get back the barcode value and be able to pass that as keyboard input? Sep 12 14:31:47 sort of, there is no startActivityForResult in a Service, so you'll have to hack it by maybe opening an Activity first Sep 12 14:32:04 yeah... Sep 12 14:32:17 maybe just use a blank activity with a theme of NoDisplay Sep 12 14:32:33 that activity can call startActivityForResult to get the results back from the barcode scanner Sep 12 14:32:56 but how would those results get back to the... first one? Sep 12 14:33:18 whooh, been coding this and that for 8 hours straight now, im really whoozy actually Sep 12 14:33:24 I made my service start an activity which again connected to the service to tell the result Sep 12 14:33:43 only 8 hours? Sep 12 14:33:54 Viliny: amateur; I've been coding from dawn to dusk for the past few months Sep 12 14:34:03 hats off to you then Sep 12 14:34:50 wish i could find more info on soft keyboard creation though, did it go out of style or something? Sep 12 14:35:00 Viliny, activity + service can communicate... Sep 12 14:35:12 right Sep 12 14:35:29 so your blank activity gets the results and gives it back to the service Sep 12 14:35:30 im seeing it now Sep 12 14:35:48 then the service calls the InputConnection to commit the text to the editor Sep 12 14:36:02 right right Sep 12 14:36:23 okay, i think i've fully understood the chain here - now i just need to learn how to make the base stuff Sep 12 14:38:37 yeah if you understand the flow shouldn't be too bad Sep 12 14:39:00 hope so Sep 12 14:39:11 found an eclipse example from 2014 that im giving a go Sep 12 14:39:15 thanks for the help Sep 12 14:41:50 Hi guys, has anybody used this to test apps against Samsung devices http://developer.samsung.com/remotetestlab/rtlDeviceList.action Sep 12 14:41:50 ? Sep 12 14:42:07 Does anyone have a clue why after installing the USB drivers for my phone, adb was working flawlessly, now 'adb devices' returns nothing (Win10) Sep 12 14:43:06 https://commonsware.com/blog/2016/09/12/multi-window-multi-instance-like-it-or-not.html Sep 12 14:48:59 SimonVT: Now I have the standard structure for my lib and its dependency but the lib still returns null for findViewById(dependency_layout) Sep 12 14:50:22 hi guys, im trying to get a JSON response using retrofit and check what the value of it says. I am registering facebook users in my database, and the JSON is being returned but when i check what the value of the it says it crashes :( here is my code: http://hastebin.com/lurajofowa.coffee the problem is line 11-16. Sep 12 14:54:20 barq: And you verified that the resources are not being included? Sep 12 14:54:26 beatdown: and you have the phone connected? Sep 12 14:54:56 I see that findViewById returns null and it returns something else with maven Sep 12 14:55:06 So no Sep 12 14:55:59 I don't know how you messed up.. Can't help you any further without a test case Sep 12 14:56:12 All I can say is that it just works for me and everyone else Sep 12 14:58:06 I checked with Classyshark, the resource is not in the apk Sep 12 15:01:19 You'd think it would blow up when inflating the layout if it doesn't exist Sep 12 15:02:08 Hello, is it possible to add some files to an application available on the playstore, or only the .apk is allowed ? When the user download the app, I want him to get the .apk, plus the .xml config files Sep 12 15:08:11 greves: are you still here? Sep 12 15:08:19 ya Sep 12 15:08:26 kv = (KeyboardView)getLayoutInflater().inflate(R.layout.keyboard, null); keyboard = new Keyboard(this, R.xml.qwerty); Sep 12 15:08:47 that is in the tutorial i am following, however im unable to get android studio recognize those xml files Sep 12 15:09:12 they are in the right place but they stay red and tell me they can't be resolved Sep 12 15:11:10 Viliny, are you sure? maybe a different package and you need to import R? Sep 12 15:11:17 maybe not the right folder? Sep 12 15:11:33 import r? Sep 12 15:12:29 https://www.dropbox.com/s/89bmivsifky0uyt/Capture.PNG?dl=0 Sep 12 15:13:00 I have a dilemma, I have rooted Samsung Galaxy S5 (SM-G900V - Verizon device) with kitkat 4.4.4. Now I have a bug appearing on S5/Marshmallow so I think I should update my S5 to 6.0.1 but then I won't have any Kitkat device Sep 12 15:13:04 Viliny, should be R...., not android.R.... Sep 12 15:13:18 Viliny, the ones that start with android.R are android's own resource files. you want your resource files, not android's Sep 12 15:13:30 ANd kitkat still has 29% usage https://developer.android.com/about/dashboards/index.html Sep 12 15:13:39 AlexBerdnikov, i just use emulator for kitkat... Sep 12 15:13:45 only have lollipop and marshmallow devices Sep 12 15:13:47 greves: R doesn't work either though Sep 12 15:15:06 hmm... a rebuild of the project helped, seems something was funky Sep 12 15:15:18 Viliny, sometimes instant run caches R and you need to rebuild it Sep 12 15:16:21 all right, that all seems to be working now then Sep 12 15:16:27 sorry to have bothered you with that :) Sep 12 15:18:38 no problem Sep 12 15:18:43 another issue Sep 12 15:18:53 case Keyboard.KEYCODE_SHIFT: caps = !caps; Sep 12 15:19:14 why are you using SHIFT if you just need a button to launch the barcode scanner? Sep 12 15:19:18 my ide has no idea what "caps" is, is that supposed to be something it recognizes without declaration? Sep 12 15:19:26 no this is straight from the tutorial Sep 12 15:19:45 i assume it's an instance variable, a boolean Sep 12 15:20:06 ah of course Sep 12 15:26:51 Hello guys, anyone familiar with the function setPermissionGrantState from DevicePolicyManager? Or know how to deal with application restarts straight to the background? Sep 12 15:27:46 does anyone here use retrofit Sep 12 15:27:57 compiles and runs fine, but doesn't appear as new input method in settings Sep 12 15:28:02 something went wrong i guess Sep 12 15:28:17 thornekey: I do Sep 12 15:29:07 JakeWharton, Do you know what im doing wrong here? http://hastebin.com/lurajofowa.coffee L11-16.. the json is being returned and the response is successful, i just want to see whether the vaue is "exists" or "registered" Sep 12 15:30:10 LOL Sep 12 15:31:04 You specified Void as the response type Sep 12 15:31:21 as apposed to Sep 12 15:31:36 An actual response type that models your response data Sep 12 15:32:08 so i should set it as the ResponseMessage model Sep 12 15:32:17 Yes Sep 12 15:33:47 Ok, done. Is that all that appears wrong Sep 12 15:35:35 Man, Google's frame thingy for screenshots make them look awful Sep 12 15:39:14 greves: https://www.dropbox.com/s/aj4qwbya5mjklti/2016-09-12%2015.41.39.png?dl=0 Sep 12 15:39:41 thanks for all the help sir :) Sep 12 15:40:09 cool Sep 12 15:46:05 JakeWharton, hmm, im getting this error now http://hastebin.com/yayaqedaxa.avrasm :( Sep 12 15:47:13 i believe its response.body().toString() Sep 12 16:07:58 Can't believe that there are SEO websites of extreme quality Sep 12 16:08:13 And they're mostly free :O Sep 12 16:15:02 clear Sep 12 16:15:27 hey guys, I need some design help with Android. I understand the components but I think I am coming at it from the wrong direction Sep 12 16:16:06 Basically, our designer would like us to build a page as such. A bottom navigation bar with two buttons that toggle between two pages of content Sep 12 16:16:58 on one of these pages the designer would like there to be two action buttons within the action bar, these icons must pin when scrolling and eventually collapsed to a shortend version of the larger title bar Sep 12 16:17:14 here is what i have thus far. The outer section is done, as an Activity (HomeActivity) Sep 12 16:17:36 HomeActivity shows View Profile (the screen in question) in the fragment, and this all works nicely Sep 12 16:17:52 however, i am having trouble with the action bar and scrolling from the CoordinatorLayout Sep 12 16:18:28 I think, more than anything, I am having difficulty grasping the full concept of the pieces of the CoordinatorLayout. I was wondering if anyone could help me. I have looked over Google but I am still having trouble Sep 12 16:18:31 thanks Sep 12 16:24:47 xximjasonxx you can look at cheese sqaure app for how to do collapsing toolbar Sep 12 16:24:56 *cheese square Sep 12 16:26:17 xximjasonxx this is also good https://guides.codepath.com/android/Handling-Scrolls-with-CoordinatorLayout Sep 12 16:28:34 Anyone ever used SetPermissionGrantState function from DevicePolicyManager for changing permissions of applications? Sep 12 16:30:09 g00s: thanks - i actually think i just answered one problem i was having, the icons in the toolbar Sep 12 16:30:20 i wasnt aware Toolbar could accept children in the Xml Sep 12 17:04:14 https://gyazo.com/70e0bbcad3fa416fc37143bd04ffbcd6 does anybody know why my buttons's heights arent aligned? theyre contained in a linearlayout viewgroup with layout_weight of 1 Sep 12 17:06:45 I fixed it by adding height wrap_content to the linearlayout, and height of match_parent to each button, but it doesn't seem elegant. is there any better way? Sep 12 17:08:00 show code Sep 12 17:18:49 sorry gordon_: http://pastebin.com/WcQfaKmm Sep 12 17:20:58 dont know why your buttons has height on match_parent Sep 12 17:24:00 why does layoutDirection not work in my LinearLayout Sep 12 17:24:08 targeting Api 22, Min 19 Sep 12 17:24:54 never used it Sep 12 17:42:34 greves: are you here? Sep 12 17:42:46 Or anyone else, i can't seem to find a table for key codes on android Sep 12 17:43:06 i need to implement scandinavian letters but can't for the life of me find a reference to them Sep 12 17:45:28 http://symbolcodes.tlt.psu.edu/bylanguage/nordic.html Sep 12 17:45:31 dis? Sep 12 17:46:00 wow Sep 12 17:46:02 viliny: https://65.media.tumblr.com/8fb29512de051f1765e603847e9ef357/tumblr_nwft66VJnC1toe6ado1_500.jpg Sep 12 17:46:07 genymotion 2.8.0 is fast Sep 12 17:46:11 [info] [app-debug.apk] Install finished: 35.70MB in 2.74s. 13338.28KB/s Sep 12 17:47:41 well those were useless, thanks Sep 12 17:48:45 viliny: if ye speaketh that, ye may need counseling from the Greybeards, ai Sep 12 17:49:16 viliny: what key codes? UTF-8? Sep 12 17:49:56 tbh im a bit lost Sep 12 17:50:18 what i have here is the basic english keyboard xml layout, what corresponds to the numeral 1 is the key code 49 Sep 12 17:50:32 i can't seem to find a resource where my existing keys correspond to the documentation Sep 12 17:50:44 viliny: wait, Swedish, Norwegian and Finnish probably have different characters :D Sep 12 17:50:53 only ÅÄÖ Sep 12 17:51:13 i just need to add those three to my soft keyboard Sep 12 17:51:27 and as such, find out what their Sep 12 17:51:29 is Sep 12 17:51:31 i don’t think you need to fiddle with keycodes Sep 12 17:51:39 I think you can just use Unicode characters Sep 12 17:51:53 this is a soft input layout xml Sep 12 17:53:17 did you check my link viliny ? Sep 12 17:54:27 would the key codes be any different on android than they would on any other keyboard? Sep 12 17:54:34 nop Sep 12 17:54:55 thats the thing, im looking at android documentations and they don't seem to be the same as in the xml Sep 12 18:00:08 okay i got it Sep 12 18:00:11 thank you guys Sep 12 18:05:08 I have an EditText field: http://pastebin.com/i7kNaAdZ but for some reason, when the user types their way to line 2, the text get's "cut of" in the middle of the textfield. Like there is an invisible border in the middle of the field Sep 12 18:06:14 weird thing is, that "border" isn't present when previewing the activity in Android Studio, only on devices. Sep 12 18:15:32 Hi, I have two android projects. The older project uses ant, the newer project uses gradle. As I don't understand the syntax of both files, I'd like to convert them to Makefile's. How can I get a list of commands, which are executed during a build? Or: What commands are needed, to compile an android project? Sep 12 18:16:23 you’d be better off learning gradle Sep 12 18:17:16 s73v3r: Why? I already know make, and I'd like to understand the build process. Sep 12 18:18:04 because gradle is the officially supported system Sep 12 18:18:20 if you want to understand the build process, you’d be wanting to look through gradle Sep 12 18:18:42 Guys, does anybody have an experiecne of updating rooted Galaxy S5 from KitKat to Marshmallow? Sep 12 18:18:56 you want to port ant and gradle build systems to make? Sep 12 18:19:09 myke: yes. Sep 12 18:19:11 Also, can somebody advice relevant IRC channel? Sep 12 18:19:23 Longbottom: i would strongly recommend learning how gradle works and stick with that Sep 12 18:20:17 https://gyazo.com/c8143a8ff942db4def99d520e083f518 what could I do so that my buttons only have a left and right margin of 16dp, i.e. the start of "Start Tracking" is aligned with the first letter in the appbar? This is my code http://pastebin.com/8E5WkNgY Sep 12 18:20:51 myke: Ok, lets try a different question: Can gradle print the commands it executes, so that I can understand what happens during the build? Sep 12 18:21:31 Nevermind, ignore my question! Sep 12 18:21:55 Let's pretend, I like to learn how gradle works. Sep 12 18:22:30 if you run a build from the command line, and pass —verbose, it’ll do it Sep 12 18:23:00 but you will have 10,000% fewer headaches if you use the official tools, instead of hacking something in Sep 12 18:23:28 Is there any programs to inspect your android layout to see which property is doign what? exactly like Inspect Element for css? Sep 12 18:23:39 s73v3r: I don't think so. But that's my problem;-) Sep 12 18:24:04 Longbottom: just read the gradle.build Sep 12 18:24:14 then the modules Sep 12 18:24:20 eventually you'll get to actual commands Sep 12 18:24:32 the android build process is not trivial Sep 12 18:24:40 redoing it from scratch is going to be a project Sep 12 18:25:06 myke: my gradle doesn't know a --verbose option. Sep 12 18:26:46 myke: where can I find the modules? Sep 12 18:27:47 Longbottom: https://developer.android.com/studio/build/building-cmdline.html Sep 12 18:28:02 redoing android build from scratch isn't very hard these days Sep 12 18:28:13 the gradle specifics are pretty well modularized Sep 12 18:28:38 and most of what gradle executes are not commands Sep 12 18:28:58 there's like aapt, javac, and dx, that's about all the commands Sep 12 18:29:23 and even then, they're invoked directly in code, not via exec (except aapt) Sep 12 18:30:59 I guess there's renderscript, zipalign and aidl, but they're very minor players Sep 12 18:31:09 Is there any way, to print the commands with its arguments? Sep 12 18:31:27 it was a project for me to move from ant to gradle, but mostly because i have multiplatform native code and web ui assets. if you have a java-only app, it should be easier Sep 12 18:31:32 there are no commands Sep 12 18:31:42 I just said as much, Longbottom Sep 12 18:31:55 Longbottom: the command I use to build is ./gradlew assembleDebug Sep 12 18:34:37 trying to fix this android app and it creates a drawable of the image captured from camera api1, can I look in the Android Device monitor to see the drawables once they are created ? Sep 12 18:35:01 On my computer aapt, javac and dx are programs, or commands. It must be possible to build an android app with these commands (and maybe other commands). I like to know, which of these programs are executed during a build. Sep 12 18:36:17 it is not possible Sep 12 18:36:23 Together with their parameters. Sep 12 18:36:33 those commands are necessary but not sufficient Sep 12 18:37:00 Ok, my list is not complete. Sep 12 18:38:04 aapt, javac and dx can be used to build a hello world Sep 12 18:38:07 that is all Sep 12 18:38:29 dx and aapt --help tell you everything you need to know Sep 12 18:38:40 pfn: Ok, do you know, how to do that? Sep 12 18:39:10 I do, but. I'm not interested in showing how to do a hello world Sep 12 18:39:49 pfn: Do you know any website, that explains how to do that? Sep 12 18:39:58 ni Sep 12 18:40:37 google. it Sep 12 18:41:05 I've tried. But everything I found depends on either eclipe or android studio. Sep 12 18:41:16 because those are the official tools Sep 12 18:41:51 anyone know why onMessageReceived in GcmListenerService might be called twice? Sep 12 18:42:40 for a single push notification Sep 12 18:55:21 Longbottom, google the individual commands Sep 12 18:56:03 Does anyone know how to pass data to a public class BarIme extends InputMethodService implements KeyboardView.OnKeyboardActionListener { service? Sep 12 18:56:53 a singleton object, shared preferences, etc Sep 12 18:57:10 this was popular: public int onStartCommand(Intent intent, int flags, int startId) Sep 12 18:57:19 can't seem to... get it working Sep 12 18:57:38 because the system starts your ime Sep 12 18:57:40 not you Sep 12 18:58:08 so i can't run that on a running service either? Sep 12 18:58:22 it seems to be one of the ways to pass data to an already running service as per forum comments Sep 12 18:58:27 eh, should still work Sep 12 19:13:10 Is there any programs to inspect your android layout to see which property is doign what? exactly like Inspect Element for css? Sep 12 19:13:26 you can check out stetho by Facebook Sep 12 19:13:46 it uses the Chrome Dev Tools to let you inspect things about your app Sep 12 19:14:36 Still no api 24 google api image :( Sep 12 19:14:38 https://dl.google.com/android/repository/sys-img/google_apis/sys-img2-1.xml Sep 12 19:17:33 I'm trying to implement a Pull down to refresh (a webView) functionality Sep 12 19:18:14 Working, but I don't know how to trigger the setRefreshing status to false when the reload is complete Sep 12 19:18:22 Is there something for the webview? Sep 12 19:26:29 antzero: First result for "webview done loading android" http://stackoverflow.com/a/3149260/1229735 Sep 12 19:35:10 yiati: Woops. I dind't mention I'm using WebChromeClient and it doesn't have that method Sep 12 19:35:36 Anyway, I resolved with onProgressChanged (...), thank you anyway! Sep 12 19:37:46 antzero: https://developer.android.com/reference/android/webkit/WebView.html#setWebChromeClient(android.webkit.WebChromeClient) Sep 12 19:38:22 https://developer.android.com/reference/android/webkit/WebChromeClient.html#onProgressChanged(android.webkit.WebView Sep 12 19:38:25 ^ Sep 12 19:39:07 You can still use https://developer.android.com/reference/android/webkit/WebViewClient.html#onPageFinished%28android.webkit.WebView,%20java.lang.String%29 Sep 12 19:43:40 Oh, thank you Sep 12 19:48:39 Hey Sep 12 19:48:49 all Sep 12 20:02:19 I'm getting a warnign saying "RelativeLayout or LinearLayout is useless..." but can't figure out how to do the same using only one or the other in my code, and wondering if anyone can give me a pointer. http://pastebin.com/zYDjrmCM Sep 12 20:03:35 Never heard of that warning but your code is fine Sep 12 20:03:56 Probably suggesting that you can get rid of the RelativeLayout Sep 12 20:04:02 but depends on what your trying to do Sep 12 20:04:29 Trying to get 3 buttons across the bottom edge of the screen Sep 12 20:04:51 hence the linearlayout to organize the buttons, and putting the linearlayout inside the relativelayout to position it at the bottom edhe Sep 12 20:04:52 edge* Sep 12 20:05:06 it works fine, but warnings bother me and I just want to make sure i'm not going against some design pattern Sep 12 20:05:34 Is there a way to capture and redraw the graphical output? I was thinking it'd be cool to try and make a vr-based interface for android apps Sep 12 20:05:34 Do your buttons take up the whole screen? Sep 12 20:05:39 @Fai Sep 12 20:05:50 Yeah they do Sep 12 20:05:56 I'll show you a screenshot of the preview, one sec Sep 12 20:05:57 Faizan: You have wrap_content on your parent layout but match parent for the buttons so Sep 12 20:06:24 Yeah, otherwise the buttons aren't aligned Sep 12 20:06:50 https://gyazo.com/e12f0c59f7b334727ac82ad2f1e5dcdf Sep 12 20:06:53 There height has nothing to do with alignment...your orientation is horizontal Sep 12 20:06:55 that's what it currently looks like Sep 12 20:07:02 Faizan: You can achieve the same with margins and layout_gravity on the LinearLayout Sep 12 20:07:30 You just said they take up the whole screen Sep 12 20:07:40 apologies, I meant width of the screen Sep 12 20:07:41 sorry. Sep 12 20:07:43 right Sep 12 20:07:59 So does it make sense what's going on with the heights? Sep 12 20:08:18 Is there a height that you want them to be at? Sep 12 20:08:33 not really, just as long as they're the same height Sep 12 20:08:36 and the content is readable Sep 12 20:09:00 which is why I thought wrap_content and match_parent was appropriate Sep 12 20:09:09 that way all buttons are the same and only as big as the largest buttons height Sep 12 20:09:57 match_parent just doesnt make muck sense if the parent its matching is wrap_content Sep 12 20:10:11 having wrap_content for both would probably acheive the same thing Sep 12 20:10:19 up to you though Sep 12 20:10:28 okay i'll look into that, thanks Sep 12 20:10:32 does everything else seem okay? Sep 12 20:11:12 Sure. Also, you can omit "weightSum" if all weights are the same Sep 12 20:11:23 it will auto calculate the sum Sep 12 20:11:35 Good point, thanks Sep 12 20:12:41 SimonVT: ah didn't see that Sep 12 20:13:00 How would I go about specifying the position at the bottom though? Sep 12 20:13:14 since if I have a horizontal orientation, it would be positioned on the top edge no? Sep 12 20:14:52 layout_gravity="bottom" Sep 12 20:15:42 Ah okay i'll read up about that, thanks for the suggestion! Sep 12 20:16:31 why the margins however? Sep 12 20:16:59 Would a ViewOverlay work for what I want? Can it ignore input and let it pass through to the view underneath? Sep 12 20:19:32 Because you had padding in the RelativeLayout Sep 12 20:30:45 I'm not even sure of the terminology I need to ask my questions right now haha Sep 12 20:37:10 Is there a term that refers to both the notification bar and navigation bar? Like system ui or something? Sep 12 20:40:29 orbyt_: here's why I changed from wrap_content to match_parent for the buttons earlier btw Sep 12 20:40:40 https://gyazo.com/9fdd92fe6000aa9d5c090af06618f3cf Sep 12 20:40:44 that's what it looks like Sep 12 20:41:56 If your using wrap content and the contents in one button are significantly larger than another button then yes they will have different heights Sep 12 20:42:05 Yeah Sep 12 20:42:08 You can set the gravity and center it though Sep 12 20:42:15 hmm Sep 12 20:42:23 but would probably be better to just give it a defined height though Sep 12 20:42:56 what's wrong with the way i've done it right now anyway? Sep 12 20:43:03 the linearlayout gets as much height as it needs Sep 12 20:43:12 and then the buttons have the height of the largest button per say Sep 12 20:49:11 hi Sep 12 20:49:50 why this do not show map ? Sep 12 20:50:05 what can be wrong ? Sep 12 20:50:15 hi freelancerbob Sep 12 20:55:41 Hi I have a question is it possible that onSaveInstanceState is never called (on configuration changes -> rotation), but fragments is indeed. And after that onRestoreInstanceState of Activity!!! (saving not called, but restoring -- what!!! is called) Sep 12 20:56:06 is it somehow possible because I spot this both on emulator and samsung s5 phone Sep 12 20:56:17 ActionBarActivity Sep 12 20:58:50 really hitting a wall here Sep 12 20:59:06 anyone have any idea how to send data from activity to service? Sep 12 21:01:26 viliny: try sending it through bundle with startService as I remember Sep 12 21:01:51 like this answer? http://stackoverflow.com/questions/26088060/android-how-to-pass-data-from-activity-to-service Sep 12 21:01:54 http://stackoverflow.com/questions/5258216/can-a-bundle-be-passed-to-a-service Sep 12 21:02:00 viliny: Sep 12 21:06:31 duga: seems to be an incomplete solution and i have no luck passing extras to the service Sep 12 21:07:13 I/intent: java.lang.IllegalArgumentException: Service Intent must be explicit: Intent { act=fi.excedo.barime (has extras) } Sep 12 21:10:54 viliny: are you using Service or IntentService Sep 12 21:10:55 ? Sep 12 21:11:23 freelancerbob: you need to call getMapAsync() Sep 12 21:11:27 this is an inputmethodservice actually Sep 12 21:11:55 orbyt_: i will try thanks Sep 12 21:23:50 having some trouble understanding some java code. This code is from facebook's react-native Sep 12 21:24:22 I am not able to understand how are protected methods of a class are being called on an instant of this class Sep 12 21:24:35 https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java#L60 Sep 12 21:24:41 ^^ method call on the instance Sep 12 21:24:58 https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/ReactActivityDelegate.java#L108 Sep 12 21:25:04 ^^ method definition Sep 12 21:25:25 viliny, the error is clear, your intent must be explicit Sep 12 21:25:47 not entirely clear to me Sep 12 21:26:01 im beginning to suspect you can't do this with inputmethodservices Sep 12 21:26:01 k_89, subclass. has access to protected Sep 12 21:26:28 viliny, it. means specify a component name, not an action Sep 12 21:26:38 you can't start service with an action Sep 12 21:26:54 pfn, but there isn't a subclass here. One class extends "Activity", other doesn't extend anything Sep 12 21:27:08 viliny, you claim you can't do this with input method service, no, wrong, you can't do this with any service Sep 12 21:27:12 this is all beginning to get a bit hazy for me at this point, all i want is to pass a string to the service from an activity that the service started Sep 12 21:27:22 okay, i understand that part yes Sep 12 21:27:38 k_89, same. package then Sep 12 21:28:08 would you be able to nudge this idiot a bit closer to solving this? Sep 12 21:28:22 viliny, I already told you, specify a component name Sep 12 21:28:24 pfn, package level classes have access to protected members of a class? Sep 12 21:28:41 k_89, yes, package access is. stronger than protected Sep 12 21:28:46 wow Sep 12 21:28:48 k_89, basic java rules Sep 12 21:28:59 too many rules :P Sep 12 21:29:05 not really Sep 12 21:29:18 I have been pulling my weight in java for years now Sep 12 21:29:24 never knew this :P Sep 12 21:29:49 its probably my 4th most used lang Sep 12 21:30:05 so not very much used at all Sep 12 21:30:11 kinda Sep 12 21:30:31 but have read/written fair share of it since android Sep 12 21:30:37 how exactly do i specify a component name? Sep 12 21:31:32 pfn, thanks! Sep 12 21:31:45 viliny, use the google Sep 12 21:32:10 my 4th most commonly used language is on the long tail Sep 12 21:32:10 im trying, but the results are seriously all over the place regarding this Sep 12 21:33:23 and this is specifically to allow me to pass data from the activity, right? Sep 12 21:33:32 i mean, the service is already started Sep 12 21:37:11 startservice is only one of many ways Sep 12 21:37:57 bindings do not seem to work at all Sep 12 21:38:04 in inputmethodservice Sep 12 21:38:13 onbind can't be overridden Sep 12 21:39:09 this is a soft input method receiving data from a barcode reader, and so far i can't figure out how i can pass data from the barcode activity back to the service - everything just seems to fail Sep 12 21:54:16 greves: are you here? Sep 12 22:17:19 Guys, I need some camera library based on android.hardware.camera2 to implement some custom camera screen in my app. So far I've looked into cwac-cam2 and google's cameraview but nort sure what's better and proven in the field. Any advices? Sep 12 22:18:23 usually just doing your own Sep 12 22:18:38 if you don’t want to do that, try both out Sep 12 22:18:47 see which one is easier to use and which one meets your needs Sep 12 22:21:14 AlexBerdnikov: i just saw a top post on /r/androiddev, have you tried that one? Sep 12 22:21:20 s73v3r I have such experience in the past (with Camera1 though) and I still tremble just remembering that. Also, there are quite well-known issues with camera stuff on Samsung devices which I expect to be considered and having appropriate workarounds in the lib so I don't have to spend weeks fixing and debugging... Sep 12 22:21:49 parco: thanks, I'll look into it Sep 12 22:22:12 AlexBerdnikov: https://github.com/google/cameraview Sep 12 22:22:36 parco, yes, I mentioned it above. Did you try it yourself? Sep 12 22:22:50 nope, sorry. here's the reddit post, maybe some help there: https://www.reddit.com/r/androiddev/comments/5231rh/github_googlecameraview/ Sep 12 22:23:06 you’re gonna have to try both out and see how they are yourself Sep 12 22:37:18 Hi there... I'm trying to send a push notification with Action Buttons on the notification. I have no idea what I am doing wrong. Is there any sample of that? Sep 12 22:38:53 developer.android.com has samples Sep 12 22:39:13 but otherwise, no one can help you unless you state what you’re doing, what you’re expecting to happen, and what is actually happening Sep 12 22:57:22 ceylon 1.3 is almost here, with full android support Sep 12 23:26:12 hi Sep 12 23:26:25 Hey Sep 12 23:26:25 I was curious the standard little dingleballs sharing icon... Sep 12 23:26:31 Is that in the android standard set somewhere? Sep 12 23:27:22 I switched from `EditText` to `TextInputEditText` because of the deprecation warning, but now `findViewById` returns `null`. What do I do? Sep 12 23:27:50 Seriously? Sep 12 23:27:57 svm_invictvs: https://material.google.com/resources/sticker-sheets-icons.html#sticker-sheets-icons-system-icons ? Sep 12 23:28:01 motherfucking Google Search doesn’t support split screen? Sep 12 23:28:11 isn’t that like the #1 use case for split screen ever? Sep 12 23:28:15 nothing does Sep 12 23:28:21 justJanne: They were split over it Sep 12 23:28:22 have a messaging app and search/webbrowser at once open? Sep 12 23:28:23 :v Sep 12 23:28:25 lol Sep 12 23:28:30 s73v3r: quasseldroid-ng does Sep 12 23:28:42 but atm you can only have one instance of quasseldroid open at once Sep 12 23:28:52 can’t have two open yet to chat with yourself Sep 12 23:29:08 I was testing that feature when I tried to find any preinstalled app taht isn’t chrome that supports that Sep 12 23:29:22 Hmm, I use Andchat, should I switch to quasseldroid? Sep 12 23:29:31 and even worse, you can’t install apks from the downloads app in nougat anymore, so I can’t just install fucking firefox either Sep 12 23:29:50 AlecTaylor: I’ll push the first release since 2014 in a few weeks, if I were you, I’d wait Sep 12 23:30:04 justJanne: Sure thing, I'm in no rush! Sep 12 23:33:38 I switched from `EditText` to `TextInputEditText` because of the deprecation warning, but now `findViewById` returns `null`. What do I do? Sep 12 23:39:52 Correction: I can't seem to find anything by id for this activity. How do I show what IDs are in my scope? Sep 12 23:41:55 Checking the log it definitely exists and is in scope - android.support.design.widget.TextInputEditText{31e9563e VFED.VCL ... 0,29-996,147 #7f0c0074 app:id/server_status} Sep 12 23:45:03 Ahhhhhhhhhhh figured it out Sep 12 23:45:20 I was calling `findViewById` before `setContentView` Sep 12 23:45:22 >.< Sep 12 23:48:31 shame on you Sep 12 23:50:18 "Use Reactor 3 if you are allowed to use Java 8+, use RxJava 2 if you are stuck on Java 6+ or need your functions to throw checked exceptions" hm Sep 12 23:52:07 AlecTaylor thats a rookie mistake from 2009 :P Sep 12 23:52:14 g00s: ;) Sep 13 00:00:37 so Nexus was beta for Pixel :P Sep 13 00:03:15 The softer side of google Sep 13 00:03:28 if these Pixel devices are going to cost the same as iPhones they better be supported as long too ... Sep 13 00:03:51 because google has a great rep for long-term support of their products Sep 13 00:04:13 i don't see how this is going to work out competing directly w/apple if they don't have retail presence Sep 13 00:04:34 one of the nice things, paying $700 for a phone, if you have problems you go to your apple store Sep 13 00:04:41 not deal with htc or some shit Sep 13 00:05:16 Apple and samsung just got crippled by verizon dumping subsidied devices Sep 13 00:05:32 i called samsung for kicks and said my Note 7 singed my eyebrows, they told me to contact the legal department Sep 13 00:05:41 parco lol Sep 13 00:06:00 "Sorry about that sir" Sep 13 00:07:18 Samsung says they will deactivate any note 7s not returned? Thats ballsy. Sep 13 00:07:27 g00s: more like they had to split nexus and pixel Sep 13 00:07:37 that samsung note thing is such a disasater Sep 13 00:07:43 nexus original use was to provide reference devices for cheap for developers and OEMs Sep 13 00:07:58 nexus today is 90% bought by DuARTe fanboys and circlejerkers Sep 13 00:08:14 one thing phones and rocket science have in common, #1 most important goal the unit must not explode Sep 13 00:09:06 So thats why one handed size phones matter Sep 13 00:09:55 okay, a question Sep 13 00:10:00 what's the reason they keep exploding... charging circuit or something? Sep 13 00:10:10 parco: battery faulty Sep 13 00:10:15 how do you get the width of a navigationview with a custom view in it right? Sep 13 00:10:30 that would suck to be the battery company Sep 13 00:10:36 that’s samsung Sep 13 00:10:42 Well then. Sep 13 00:10:47 Samsung is the batt company Sep 13 00:10:51 Lol Sep 13 00:10:53 I can’t find a way to make the navigation be Math.max(320dp, device width - 56dp) Sep 13 00:14:09 okay, found a way Sep 13 00:14:42 instead of spending half an hour setting different sizes on the navigationview, just set android:maxWidth="320dp" on the child Sep 13 00:16:55 How do I get the response headers from a successful volley request? Sep 13 00:17:15 * AlecTaylor knows `VolleyError` has `networkResponse`, but not sure where it is on successful requests Sep 13 00:36:16 is there a way in Studio to just have an intent print out all of it’s extras? Sep 13 00:40:22 hello all :) Sep 13 00:41:02 s73v3r: well, you can set a breakpoint, Sep 13 00:41:08 and evaluate the intent Sep 13 00:41:23 basically go into evaluation -> block mode -> Sep 13 00:41:28 i’m at the breakpoint, but it doesn’t offer a nice way to see it Sep 13 00:41:33 and do first intent.getExtras().keySet() Sep 13 00:41:44 and then intent.getExtras().get("key") for each Sep 13 00:44:06 i thought Intent has a super duper toString Sep 13 00:44:31 s73v3r: http://stackoverflow.com/a/15074150 Sep 13 00:44:46 g00s: AFAIR, Intent.toString doesn't list the extras. Sep 13 00:45:07 extra effort required :D Sep 13 00:49:46 It annoys me how some accessors have a 'get' prefix and others don't. (e.g., Bundle.keySet there.) Sep 13 00:50:06 It would've been cool if the Java standard had been foo/setFoo rather than getFoo/setFoo. Sep 13 00:50:38 person.setName("Fred"); print(person.name()); Sep 13 00:52:08 I think accessors are a reasonable time to deviate from the "method names are verbs" thing. Sep 13 00:52:53 I guess JavaBeans was a big factor. Sep 13 00:55:12 well, the Java standard has the no-get accessors, Sep 13 00:55:19 but javabeans has get Sep 13 01:02:35 https://reddit.com/r/Android/comments/52g76j/pixel_launcher_apks/d7k0o5r?context=3 Sep 13 01:02:38 ooh shiny Sep 13 01:03:10 Throwable has plenty of 'get' accessors (e.g., 'getCause', 'getMethod', etc.). Sep 13 01:04:26 s/Method/Message/ Sep 13 01:05:26 I like get/set Sep 13 01:05:33 and with for builders Sep 13 01:07:16 drinfernoo: 'get' harms readability. Compare `print(person.getLocation().getTown().getName());` with `print(person.location().town().name());`. Sep 13 01:16:32 eh, I can read is fine Sep 13 01:16:37 it Sep 13 01:18:22 Why would `printList(List list) {for (Object elem: list)` work? - http://docs.oracle.com/javase/tutorial/java/generics/unboundedWildcards.html - Couldn't the `elem` not be an `Object`? Sep 13 01:22:17 anyone read this? is it worth it ? https://medium.com/@mttkay/reverse-your-arrows-86173bd4aae0#.2q7ct86xw Sep 13 01:24:11 medium says 11 minutes but it will take me 22 :) Sep 13 01:26:42 AlecTaylor: `List` means "a list of any type". Since this is Java, everything in that list will be an Object (or an Object subclass, which means it's still an Object). Sep 13 01:27:53 TacticalJoke: Wait, can't you have a List of primitives? Sep 13 01:28:11 Nah. Sep 13 01:28:16 I know Scala inherits everything from Object, but Java I thought didn't? Sep 13 01:28:22 AlecTaylor not without something like trove4j, etc Sep 13 01:29:17 oh yeah, i thought they were unifying / fixing the type system in Java 9 with primitives / Object Sep 13 01:29:25 maybe that will be Java 10 Sep 13 01:29:37 mmmm Sep 13 01:30:36 no, scala does not inherit everything from object Sep 13 01:30:43 what are you trying to do AlecTaylor? Sep 13 01:30:48 http://stackoverflow.com/questions/2504959/why-can-java-collections-not-directly-store-primitives-types Sep 13 01:30:56 g00s, I was hoping that would be about rxjava Sep 13 01:30:57 and yes, you can. have a list of primitives in scala Sep 13 01:31:11 I'm trying to find an excuse to use it lol Sep 13 01:31:14 drinfernoo: Just curious, considering using some wildcards in my generics and want to know their limitations Sep 13 01:32:10 Any in Scala is a super type to Object and primitives Sep 13 01:32:38 I'm trying to figure out wildcards and genetics too Sep 13 01:33:18 Genetics is complicated. Sep 13 01:33:25 like if I return a HashMap, can I just return anything as the value? Sep 13 01:33:39 lol well, I meant generics, but genetics is a mystery to me too Sep 13 01:35:17 is it possible in the android apis to manipulate the audio being transmitted and received in a phone call? for example, in order to write a phone bot or a dial-up modem app? Sep 13 01:35:37 or a fax app Sep 13 01:36:44 TacticalJoke: lol Sep 13 01:37:28 drinfernoo: Well also the whole `HashMap` vs `HashMap` Sep 13 01:37:42 what's the difference? Sep 13 01:39:34 bmintz, no Sep 13 01:39:44 variance Sep 13 01:39:59 Android blue box Sep 13 01:40:33 drinfernoo, heh Sep 13 01:40:40 pfn what about variance? Sep 13 01:42:31 and is there a good reason why that is? with proper user intervention and warning it could be a useful API (voice changers for anonymity etc). could it even be done platform-independently with root access? do other platforms have similar functionality? Sep 13 02:02:13 variance is in relation to generics Sep 13 02:03:12 as for other platforms, what other platforms, ios is a definite no, windows is a who cares Sep 13 02:14:59 bmintz: You can write voice bots with Skype Sep 13 02:15:08 Not really Android related though Sep 13 02:15:30 Though bots != "voice changers" Sep 13 02:15:48 orbyt_, the whole point in my case is to avoid going over the internet Sep 13 02:16:15 i imagine a sitch where say you're in a foreign country and you have talk but no data, so you use like some sketch free dial-up service Sep 13 02:16:29 or, just not paying money every month for the ability to fax Sep 13 02:17:35 orbyt_, that's true, if an api did exist it might not allow simultaneous user input as well Sep 13 02:21:38 AppCompat Preferences works awesomely well on jellybean! Sep 13 02:21:40 NOT. Sep 13 02:21:41 https://dl.kuschku.de/videos/2016-09-13_04-18-42.mp4 Sep 13 02:21:50 I feel like I’m playing one of these dumb logic games Sep 13 02:22:26 AppCompat prefs were a pita .. Sep 13 02:22:36 and a bunch of undocumented style shit in SO posts Sep 13 02:24:12 Leeds lol why are vim guys still supporting amiga Sep 13 02:25:16 currently trying to tint vectordrawable in jelly bean Sep 13 02:25:16 I don’t seem to find a way to do it Sep 13 02:26:19 I just `minSdkVersion 21`ed all the things. Sep 13 02:26:28 Though that's not suitable for every app. Sep 13 02:27:04 well, 2 years ago, over a quarter of our users were still on jellybean Sep 13 02:27:09 dunno how things look like now Sep 13 02:27:24 but I already spent so much work getting things to work on jelly bean, Sep 13 02:27:28 now I want to finish it Sep 13 02:27:38 and I just can’t seem to get this shit to work Sep 13 02:27:43 like WTF google Sep 13 02:30:34 Seriously? Sep 13 02:30:39 but checkboxpreference works Sep 13 02:30:41 fuck you Sep 13 02:35:07 yeah i minSdk=19 Sep 13 02:35:16 i think i'll do 21, not worth headache Sep 13 02:38:46 g00s: but then I can't use it :( **** ENDING LOGGING AT Tue Sep 13 02:59:57 2016