**** BEGIN LOGGING AT Thu Feb 04 02:59:59 2016 Feb 04 03:45:46 do you think the Nexus 6P is THAT much nicer than the 5X Feb 04 03:49:28 it's definitely more than $70 nicer Feb 04 03:49:44 the 5x is nice, though, nicer than my 2014 moto x Feb 04 03:51:46 got 5x and 6p at work Feb 04 03:51:50 go for 6p... Feb 04 03:52:28 are you all using adb version 1.0.32 Feb 04 03:53:22 Hi everyone! First time here, don't wanna break any rules. Got a (possibly) noob-y question so I'll just fire away and hope someone is around. Feb 04 03:53:23 Android Debug Bridge version 1.0.32 Feb 04 03:54:49 I'm trying to perform an action when a Bluetooth device is found. I've registered a BroadcastReceiver for this, waiting for a ACTION_FOUND broadcast. This works fine, but I'm having trouble starting a thread to connect to said found device. Feb 04 03:55:09 depends on what you want, the 6p is big, and it's metal Feb 04 03:55:13 the 5x is a little smaller, and it's plastic Feb 04 03:55:33 I like that the 5x is small Feb 04 03:55:35 it's big, but compared to old 6 it's better Feb 04 03:55:41 (it's wider) Feb 04 03:55:52 I like the 6p's specs better though. Aluminum is nice too Feb 04 03:55:53 I'm getting something about a "leaked IntentReceiver," which, after some reading, tells me that I can't do anything particularly special in an onReceive method. What's the best course of action, then, to start a long-term process based on the action? Feb 04 03:56:19 is it worth having to install larger pockets into my pants? Feb 04 03:56:59 http://www.phonearena.com/phones/size/Google-Nexus-5X,Google-Nexus-6P/phones/9593,9587#/phones/size/Google-Nexus-5X,Google-Nexus-6P/phones/9593,9587 Feb 04 03:57:00 eh, if you're a normal size guy that doesn't wear hipster pants, the 6p isn't too big for pockets Feb 04 03:57:22 this site lets you calibrate your screen so you can see the real life size of the phones Feb 04 03:57:25 pretty cool Feb 04 03:58:22 unfortunately I can't find a 5x and 6p on display. Probably can find the 6p at the verizon store Feb 04 03:58:32 order both, return 1 Feb 04 03:58:36 pretty much the best solution Feb 04 03:58:55 thx gordon_ Feb 04 04:00:37 pfn: not a bad idea Feb 04 04:01:56 * pfn has both, they're both nice Feb 04 04:06:43 i had android studio build me a release apk just to test but now it informs me that it's generated a signed apk every time i hit debug??? why?? **** BEGIN LOGGING AT Thu Feb 04 04:10:39 2016 Feb 04 04:12:55 nevermind restarting android studio stopped it. i swear android studio has gone so far downhilll recently... what the hell is google doing? Feb 04 04:17:49 Essentially, my question is: how to you start a long task based on a BroadcastReceiver.onReceive() call? Feb 04 04:19:10 start a service Feb 04 04:19:13 if I run my emulator with x86 will it be incompatible with devices that arent x86 Feb 04 04:23:09 pfn: ? Feb 04 04:24:13 pfn, I want to avoid that complexity if possible. D: I just want to start a thread that connects to a device as soon as it's discovered via Bluetooth, and that thread needs to be a part of a parent object that manages all of the connections. Feb 04 04:38:53 what complexity Feb 04 04:38:59 a broadcastreceiver is short-lived Feb 04 04:39:08 you need to start something to manage a lifecycle that lasts as long as you require Feb 04 04:39:11 thus, you must start a service Feb 04 04:49:50 idk services just seem scary lol Feb 04 04:51:09 why Feb 04 04:51:19 create one Feb 04 04:51:25 and use eventbus to get messages from it Feb 04 04:54:05 git reset --soft HEAD~xxx && git commit is pretty nifty for squashing :) Feb 04 04:55:27 how do you pass parameters to its on creation for initial state? Feb 04 04:55:39 halcyon__ thats all in the docs ;) Feb 04 04:55:44 or do you have to give it everything it needs through an Intent & StartService Feb 04 04:56:04 I'm reading the docs D: they don't even have a constructor for their service Feb 04 05:07:56 do you think the 6P from verizon comes with verizon bloatware? Feb 04 05:15:28 RustySha1kleford: even if it does theres nothing stopping you from flashing a system image from google Feb 04 05:15:44 but I doubt it does Feb 04 05:16:03 anyways night Feb 04 05:16:30 if you flash a system image, don't you lose stuff like wifi calling ? Feb 04 05:16:30 I thought it was offered on verizon. I swear I saw it on their site a few days ago Feb 04 05:16:45 no nexus 6P :( Feb 04 05:17:00 I guess I can always get it from google Feb 04 05:17:01 RustySha1kleford step 1 : ditch vz :) Feb 04 05:20:10 g00s: eh I researched it. Prices are about equal to other carriers Feb 04 05:20:23 TMobile has insanely cheap family plans though Feb 04 05:20:59 would you buy two years of accidental damange insurance for 89 bucks? Feb 04 05:23:02 RustySha1kleford, it's awfully tempting Feb 04 05:23:09 quite cheap compared to any other plan Feb 04 05:23:14 I kinda regret not getting it Feb 04 05:23:49 less than $4/mo for coverage plus a cheap-ish deductible Feb 04 05:24:01 much better than what carriers offer using asurion Feb 04 05:24:15 RustySha1kleford whats the limit to # of claims Feb 04 05:26:11 my vzw plan is somewhat ok priced Feb 04 05:26:21 3 lines + 6gb of shared data for about $140 Feb 04 05:26:26 including all taxes and stuff Feb 04 05:27:26 android studio is so broken these days. why is it that my updates to my layout files don't get copied over when i deploy half the time? everything just seems broken lately. fresh install fresh windows. Feb 04 05:27:28 I can get 6gb of data on my plan only for f**ing 45€ Feb 04 05:27:52 That's about 35 more than I'd be willing to spend. Feb 04 05:29:28 I wonder why android studio doesnt ship any tools for database Feb 04 05:29:58 gordon_ the db tools come in the paid version Feb 04 05:30:12 paid version of what Feb 04 05:30:19 intellij Feb 04 05:30:35 i know Feb 04 05:30:42 but AS is not intellij ;) Feb 04 05:30:47 well, it is Feb 04 05:30:50 but not quite Feb 04 05:30:57 anyhow you can use stetho Feb 04 05:31:03 or sqlitestudio Feb 04 05:31:32 I will deal with sqlite3 from adb shell Feb 04 05:31:36 but thanks Feb 04 05:32:25 i dont think the device version of sqlite is compiled with readline support Feb 04 05:32:27 have fun Feb 04 05:33:25 well, it can select things Feb 04 05:33:32 that's enough for me for now Feb 04 05:34:04 wish I would start with normal sql Feb 04 05:34:10 not some ORM, which is horrible Feb 04 05:41:50 I have a textview inside an app, how should I go about writing it to a file so I can send it as an email attachment? Feb 04 05:44:21 Jonno_FTW i would go through the udacity course Feb 04 05:46:39 also, why is Context.MODE_WORLD_READABLE deprecated? Feb 04 05:55:41 where should I get started with android dev? I know programming but I really don't have time to waste on ineffective material Feb 04 05:56:21 I'm looking into Xamarin since I have a student license via microsoft for at least the next 12 months Feb 04 05:57:44 karhu i'd skip xamarin and learn the regular java stuff Feb 04 05:58:07 I like C# way more :| Feb 04 05:58:25 java feels like poop Feb 04 05:58:29 Then use Kotlin. But at least you learn the real Android API Feb 04 05:58:36 yeah Feb 04 05:59:11 and when you hit a bug, you won't have to wonder if its android or xamarin Feb 04 06:03:56 java is poop Feb 04 06:04:08 but you have no choice with android Feb 04 06:04:22 xamarin is about as bad in terms of poop Feb 04 06:04:58 why can't we have nice things Feb 04 06:09:44 org.json library good enough, or a better one available? Feb 04 06:17:43 ._. Feb 04 06:20:34 So is there no way to use TabHost/TabWidget without getting deprecated warnings? If its deprecated then what should we use? Feb 04 06:21:06 cart_man use TabLayout Feb 04 06:21:17 thats .. deprecated stuff ;) Feb 04 06:45:44 Ive never seen TabLayout though Feb 04 07:13:21 is there a link for android-studio SDK for ubuntu? Feb 04 07:17:24 is there a link for android-studio SDK for ubuntu? Feb 04 07:20:19 re: keystores. If I migrate my store from one version of android studio to another, does the key alias/password need to remain the same? Feb 04 07:20:54 having trouble signing my app after updating. Feb 04 07:22:38 androidstudio isnt telling me anything like "invalid key alias" when I try to make a new app config. however, each time i create a signing config, go to build types and change release to use it, and click "ok", nothing seems to save Feb 04 07:24:18 I'm fairly certain i am using the correct keystore password Feb 04 07:24:31 but again, android studio isnt indicating that thats a problem either Feb 04 07:26:17 i am getting the error : java.lang.NoClassDefFoundError ,no matter which orm i use,either sugarOrm or activeAndroid?what am i doing wrong?i am defining all as they say Feb 04 07:28:17 mainactivity=http://paste.ofcode.org/B4H6cXRJAmY4EsVWUCBxgv Feb 04 07:28:33 contentmain=http://paste.ofcode.org/pGFNn63z5ugv7ny9LPqufd Feb 04 07:28:46 noteclass=http://paste.ofcode.org/sDYtHSqZbyrhX7rW2P9aCB Feb 04 07:28:59 app:http://paste.ofcode.org/BHDbwjYkgBgej8Q75pVYDn Feb 04 07:29:12 manifest=http://paste.ofcode.org/6XbApdeyxMdxKFmRtaKWMw Feb 04 07:29:23 can anyone please tell me whats the problem Feb 04 07:29:59 logcat error:http://paste.ofcode.org/aKpmSXG9WdzgmeGACdB74r Feb 04 07:40:13 anyone? Feb 04 07:41:25 hi, how could i show the current git revision/branch in some part of my application? Probably automatically changing a strings xml file would be the "cleverest" solution. I think gradle could theoretically do this, but I got no idea how to extract both values from git.. Any ideas? Feb 04 07:41:49 quit Feb 04 07:45:53 well i solved my signing issue by just defining everything in gradle Feb 04 07:46:13 which populated the config in android studio. Feb 04 07:46:35 at least i think i did Feb 04 07:46:40 AS isnt yelling at me anymore Feb 04 07:47:59 stephanj: a lot of devs just make a "latest" directory in their repos. I suppose you could make a call to read the build in that directory. Feb 04 07:51:29 hey guys, anyone sees anything wrong with this AnroidManifest.xml? I can't get it to launch SearchResultsActivity, i'm assuming this because the debugger never gets to any breakpoints in that class, instead i get the message "E/RecyclerView: No adapter attached: skipping layout" Feb 04 07:51:34 http://pastebin.com/raw/ecKmd67e Feb 04 07:57:27 Twirl: that error's not anything to do with the manifest. when you use recyclerview you have to attach an adapter (and layout manager) or there's nothing to display Feb 04 07:58:01 oh yea that must be it Feb 04 07:58:16 try prefixing the activity name with your full package name. if you recently moved it between directories, maybe AS didn't refactor the manifest for you Feb 04 07:58:29 but, in that case when you call startActivity you'd crash Feb 04 07:59:07 its already like that Feb 04 07:59:10 if you look at the manifest Feb 04 07:59:20 the problem is what you said first i think Feb 04 07:59:42 but the debugger should stop on the SearchResultsActivity class Feb 04 07:59:49 right Feb 04 07:59:56 depending where you put the breakpoint Feb 04 08:00:06 i'd put one on startActivity and one in onCreate for the activity Feb 04 08:00:23 i put breakpoints everywhere on that class Feb 04 08:00:45 it doesn't stop Feb 04 08:02:13 damien5314: which one is startActivity? Feb 04 08:02:32 I have MainActivity and SearchResultsActivity Feb 04 08:02:55 i mean the method startActivity Feb 04 08:03:15 you're starting SearchResultsActivity somewhere from your main right? Feb 04 08:03:56 I have two classes, one extends ActionBarActivity, the other one extends Activity and they are in different files Feb 04 08:04:37 when the user has put the text and press the search button, it says "E/RecyclerView: No adapter attached; skipping layout" Feb 04 08:04:47 I'm using a RecyclerView to show the results in little rows Feb 04 08:06:30 i would think even with that recyclerview error, you should at least have an activity started without content in it Feb 04 08:06:49 well then the problem should be on the manifest? Feb 04 08:07:22 if your app tries to start an activity that's not in the manifest, you'd be crashing Feb 04 08:07:23 the manifest should specify that on the action search it should start searchactivity with the query Feb 04 08:07:37 ah wait Feb 04 08:08:03 i didn't see that intent filter Feb 04 08:08:20 still, without code from this point it's kinda anyone's guess Feb 04 08:08:28 uhhh if i reset the master password to my keystore... will I still be able to access my keys? Feb 04 08:08:48 damien5314: which code? Feb 04 08:09:09 what is android studio bundle? Feb 04 08:09:56 Twirl: SearchResultsActivity and the code you're using to launch it Feb 04 08:10:19 damien5314: but i'm not using any code to launch it Feb 04 08:10:48 it should launch when the search action is called Feb 04 08:10:59 ok to answer my earlier asked question, yes. resetting the keystore wipes all passwords Feb 04 08:11:06 shit Feb 04 08:12:25 Twirl: well activities don't start by themselves, they need to be launched as the main activity, launched explicitly with startActivity, or respond to an implicit intent from somewhere Feb 04 08:12:53 when you tap search are you doing any of those? Feb 04 08:13:13 Shouldnt that pick on the manifest i posted and start the search activity? Feb 04 08:13:27 yeah that's how implicit intents work Feb 04 08:13:39 but you still need to fire one Feb 04 08:14:07 well, i have a menu with search item Feb 04 08:14:23 i press on it then the text input comes up Feb 04 08:14:33 i put the text and send it then i get the message but no error Feb 04 08:14:43 "E/RecyclerView: No adapter attached: skipping layout" Feb 04 08:16:16 if you want to isolate that issue, you could just make a simple layout with a textview to make sure your activity is launching at all Feb 04 08:16:38 once you have that figured out, put the recyclerview back in and get the adapter implemented Feb 04 08:17:08 yea i will try that Feb 04 08:18:36 How can I inject code only in debug builds but not in release builds? Feb 04 08:18:58 barq: put a /debug/ folder beside /main/ and put it in there Feb 04 08:19:02 in your src Feb 04 08:22:14 And if I have a service that needs to be registered in the manifest that I only want in debug builds? Feb 04 08:22:30 I probably need to specify it in release as well and disable it? Feb 04 08:27:00 damien5314: still getting the same error Feb 04 08:27:29 damien5314: commented the recycler view in the xml Feb 04 08:27:45 and every reference to it in the code Feb 04 08:27:54 then replaced all the logic with a text view Feb 04 08:28:39 oh well Feb 04 08:28:45 Twirl: that... sounds like something wrong with your build Feb 04 08:28:50 i dunno Feb 04 08:29:04 damien5314: invalidated the cache/restarted and now it doesnt show the error Feb 04 08:29:05 a recyclerview can't throw an error if it doesn't exist ._. Feb 04 08:29:22 but doesnt break on SearchResultsActivity either Feb 04 08:30:10 it doesn't do anything when i press the search Feb 04 08:31:19 sorry it's pretty late here, i think i gotta go lay down. i'd link the code for your activities and maybe someone can pick out the problem Feb 04 08:31:54 but it sounds like your builds aren't always happening cleanly which is going to complicate things Feb 04 08:32:12 i was pressing debug or run to test Feb 04 08:32:24 oh yea Feb 04 08:32:43 you mean i should put it back as it was before and test again because it could be the build? Feb 04 08:35:12 damien5314: http://pastebin.com/raw/Ptdfm7Ec Feb 04 08:36:27 that's activity_main.xml, i'm assuming both activities should pick on those layouts? Feb 04 08:36:53 because tools:context=".MainActivity" could restrict that layout to that activity or something? Feb 04 08:51:57 do I for real need to spawn a new thread to close an OkHttp3 byteStream ?? Feb 04 08:52:06 (in order to avoid Network On Main) Feb 04 08:58:27 Hey, I have an issue with clickableSpan. Feb 04 08:59:07 I create clickable spans, display the text in my textview, click it, and nothing happens... Feb 04 08:59:12 Am I missing sonething? Feb 04 08:59:16 *something Feb 04 08:59:29 Do I net to set clickable on the textview? Feb 04 09:01:33 Have you looked at this? http://stackoverflow.com/questions/8641343/android-clickablespan-not-calling-onclick Feb 04 09:08:10 No, but I couldn't find the thread via Google either. Feb 04 09:08:10 Thanks. Feb 04 09:11:13 Hi, my client wanted to update his application, so I wrote it for him. Now he want to publish it on google play, but he hasn't got keystore from previous developer. Is it possible to get it from google play account? Is it possible to get it from apk? Maybe previous developer didn't provide password? And finally :) Is it possible to ask google for help with result? Feb 04 09:11:41 you can't update it without the key, as far as I know Feb 04 09:11:52 He needs to get the original keystore from the previous developer Feb 04 09:12:05 You cannot get it from the apk or the play store Feb 04 09:12:06 alpygoscelis, if you lost the keystore you can't update. Feb 04 09:12:16 It's gone. Feb 04 09:13:13 thank you for answers, so can google itself do anything? Feb 04 09:13:51 alpygoscelis, no, because they don't have the private key from your keystore. Feb 04 09:14:13 the key is proof that you are the author/owner of an app Feb 04 09:15:05 if you could get it from the apk, wouldn't that be a vulnerability ? Feb 04 09:15:27 ok I understand. Thank you for answers Feb 04 09:26:28 alpygoscelis: well, Google could help. But they don't. They've only ever done so once in the history of Android, and only for a Google App Feb 04 09:27:02 (The Play Store can install one app over another app even if the keys don't match) Feb 04 09:27:15 (But Google obviously doesn't allow that for normal devs) Feb 04 09:45:20 so i'm trying to mock web requests, i'm using robolectric, any clue how to go about it? Feb 04 09:46:13 What kind of web requests? Feb 04 09:51:36 Mavrik, http://www.andreas-schrade.de/2015/02/16/android-tutorial-how-to-create-a-kiosk-mode-in-android/ Feb 04 10:02:18 justjanne, barq, either I did something wrong with leakcanary or I'm not able to reproduce the leak with just an activity containing an edittext Feb 04 10:10:44 where can i find step by steps introduction on how to set up kiosk mode Feb 04 10:16:47 Zharf: Suggestions enabled? Feb 04 10:17:17 sure Feb 04 10:18:44 if you have a ready-to-use testcase, I'd appreciate it :p Feb 04 10:19:05 While the Activity is still running do you have a reference to the SpellChecker? Feb 04 10:19:47 What API version are you on? Feb 04 10:20:05 16~21 Feb 04 10:20:12 got all sorts of devices here Feb 04 10:21:28 oh, this device is 22, actually Feb 04 10:23:26 Unfortunately, the links with a buggy example are dead in https://github.com/square/leakcanary/issues/4 Feb 04 10:23:38 yeah.. Feb 04 10:25:15 I found it https://github.com/brendanw/PaymentKit-Droid/blob/master/pk-library/src/main/java/me/brendanweinstein/views/InterceptEditText.java Feb 04 10:26:26 Did you check the heap after closing your Activity? Feb 04 10:27:08 well leakcanary's showing nothing, doing anything more than that is just beyond my motivation -.- Feb 04 10:27:58 people should attach working testcases to these things Feb 04 10:31:48 They do now, it's one of the first leaks found so they probably didn't have the most rigid processes implemented for reporting back then. Feb 04 10:31:59 A minimal testcase is now required. Feb 04 10:32:21 But have you had any leaks with LeakCanary? Maybe it is not configured properly. Feb 04 10:32:34 Try dumping hprof and see if there are any Activities in the heap. Feb 04 10:33:41 I did LeakCanary.install(this, DisplayLeakService.class, AndroidExcludedRefs.createAndroidDefaults().build()); in Application.onCreate Feb 04 10:33:56 Zharf, you do know that LeakCanary deliberately ignores platform leaks right? Feb 04 10:34:18 Mavrik, yes, that's why I didn't use createAppDefaults there Feb 04 10:35:02 when I'm running gradle in online mode, it always redownloads all my dependencies (at least it seems that way because a sync takes around 15 minutes), if i do it in offline mode it uses the cache and a sync only takes a couple of seconds, builds also get faster. Any idea how I can use the cache in online mode? Feb 04 10:37:02 there's mavenLocal(), but is there something along the lines of gradleLocal()? Feb 04 10:44:04 Is there a reason why the default ripple color isn't the accentFocus colors? Feb 04 10:44:22 Which is accent color with transparency. Feb 04 10:49:21 i want make game app. but i have no idea. Feb 04 10:49:26 i want help Feb 04 10:51:12 o.O Feb 04 10:51:29 how can i make android app? Feb 04 10:51:33 Zharf: ? Feb 04 10:51:44 d.android.com ... go there and read Feb 04 10:59:11 O.o Feb 04 11:01:27 why does openJDK take up more system resources? Feb 04 11:01:38 than what Feb 04 11:01:40 android studio is tell me openJDK can be a system hog Feb 04 11:06:34 Peoplesproblem: OpenJDK and Oracle Java are both implementation that are similar, but Oracle Java contains several additional implementations of parts that are faster. Like a faster Garbage Collector. Feb 04 11:08:12 Android studio itself is a system hog : Feb 04 11:08:13 :D Feb 04 11:09:02 danijoo, true that Feb 04 11:09:13 justjanne, ah i see Feb 04 11:09:32 3 gb ram used by AS + gradle here Feb 04 11:10:08 another question. what is your opinion of ionic framework? Feb 04 11:10:11 anyone here used it? Feb 04 11:10:58 im not a fan of non-native app development Feb 04 11:11:29 non-native meaning? Feb 04 11:11:30 sorry Feb 04 11:12:04 i mean not using a jvm language for writing apps. Feb 04 11:12:11 ie javascript Feb 04 11:13:19 "BuildException: Gradle version 2.2 is required. Current version is 1.12. If using the gradle wrapper, try editing the distributionUrl in /Users/Syzygy/Type1-Android/gradle/wrapper/gradle-wrapper.properties to gradle-2.2-all.zip " however the distribution url points to 2.8 Feb 04 11:13:25 i'll have to look more into it. ionic is not like, done in the cloud though, right? Feb 04 11:16:11 Syzygy, thats strange. Feb 04 11:16:33 im using 2.10 btw. it has a lot of improvments regarding build speed Feb 04 11:16:35 yeah, I'm considering wiping everything gradle of my system right now and trying to build again Feb 04 11:17:10 what is the newest version anyway? was trying to look that up earlier but couldn't find anything Feb 04 11:17:19 Syzygy, try wiping .gradle. that will force a redownload of it and you can inspect the log if it loads the correct distribution url Feb 04 11:17:43 Syzygy, you can see all versions here: http://services.gradle.org/distributions/ Feb 04 11:17:58 2.10 is the newest stable Feb 04 11:18:09 will do, thanks Feb 04 11:19:23 I finally deviced to display hidden files and folders on mac so that i can see the .gradle folders and now I see them, but I can't double click to open them -.- Feb 04 11:21:00 Any thoughts on CI services for android apps? Feb 04 11:21:26 EZTEQ, you mean something like travis? Feb 04 11:21:41 EZTEQ: besides that you should use one, nope Feb 04 11:21:43 we use jenkings in work Feb 04 11:22:00 we use jenkins Feb 04 11:22:04 danijoo, yes. Feb 04 11:22:08 jerkings Feb 04 11:22:20 i think its nice to have, but not really needed if you work on a project as a single person Feb 04 11:22:27 Got some problems on travis building my app. It doesn't find my module :app. Feb 04 11:22:29 good for dev teams though Feb 04 11:23:11 danijoo: or if you want to automatically run tests. Feb 04 11:23:16 danijoo: so anyway, we got our build times down to a couple of seconds with gradle 2.8, so let's see what 2.10 can do Feb 04 11:23:24 Or if you don't want to keep your keys on hour laptop. Feb 04 11:23:30 *your Feb 04 11:24:09 I have my keys checked into git. Yes, I know I should feel bad :) Feb 04 11:24:10 My build times went down to 1min for wiping the workspace, full checkout, redownload of all libs, recompiling of our own libs, and recompiling of the app. Feb 04 11:24:24 danijoo: yes, yes you should ;P Feb 04 11:24:34 oh nice. that's somewhere around 20 minutes to half an hour for me right now Feb 04 11:24:37 but its a private repo so idc ;) Feb 04 11:24:46 Not as bad as that one open source Dev who open sourced keys + passwords. Feb 04 11:24:59 And then, when confronted, said that that's intentoonal Feb 04 11:25:32 justjanne, the number of private keys and passwords on github is rediulous high Feb 04 11:25:34 Do you guys use Android Studio? And is there a way to create a project as minimal as possible? Without test modules etc? Feb 04 11:25:48 I wonder what's gonna happen in 2036 when all the keys inevitably run out. Feb 04 11:26:15 i remember to read a blog post from a guy who scraped over github for aws keys and found hundreds of ssh login credentials Feb 04 11:26:35 danijoo, holy shit. Feb 04 11:26:39 nice Feb 04 11:28:07 theres a whole ´industry´ scraping for aws keys. they fire up hundrets of aws machines with the login creds and mine bitcoins Feb 04 11:28:53 http://www.forbes.com/sites/runasandvik/2014/01/14/attackers-scrape-github-for-cloud-service-credentials-hijack-account-to-mine-virtual-currency/#35e92ada43a8 Feb 04 11:30:27 Did you have some resources about best practices and tips on developing for android? Feb 04 11:32:45 so a full sync that redownloads everything gradle can still take a while Feb 04 11:33:41 gradle itself is about 60 mb if you load the -all package Feb 04 11:35:43 dunno. the connection here is extremely fast anyway Feb 04 11:38:59 i think the gradle wrapper might be configured wrong Feb 04 11:39:32 thats mine if you want to compare: http://prntscr.com/9yv7xs Feb 04 11:40:19 looks the same, but i just tried gradlew install again and it redownloaded 1.12 ... Feb 04 11:40:23 and thats project settings: http://prntscr.com/9yv895 Feb 04 11:41:43 same here Feb 04 11:42:04 Hello guys, I have the problem that I have to build an Android app that looks "exactly" like the iOS version. On iOS an "Activity" has a background up to the status bar. On Android the status bar (time, battery and so on...) is a separate thing, isn't it against the Android design guide to change status bar's background to the background of the Activity? Feb 04 11:42:05 except i'm not using the alpha android plugin Feb 04 11:42:41 yeah thats part of the 2.0 preview Feb 04 11:43:01 Let alone if it's possible? Feb 04 11:44:44 Number5, iOS and anroid have different design philosophies so this is a bad design decision imo :/ Feb 04 11:45:04 but about the statusbar color, its a common thing to change that since android 5 Feb 04 11:45:31 statusbar color gets set to ?attr/colorPrimaryDark when the app starts on newer devices Feb 04 11:45:53 danijoo, yes I understand, I just want to hear it from you so I can explain it to the client. Feb 04 11:46:49 android design guidelines say the status bar color should be a darker version of actionbar color Feb 04 11:46:58 danijoo, thnx, but I need support from Android version 15 (4.03+) Feb 04 11:46:59 Bitdefender is interfers with Intel HAXM :'( Feb 04 11:47:23 -is Feb 04 11:49:17 danijoo, what would you do if you need to support for devices from ver. 15+? I need one fragment that has the background covered the whole screen and the statusbar on top of it in a transparent way. Feb 04 11:49:39 Number5, its not possible to alter status bar color on older devices Feb 04 11:50:00 you can set that value there, too, but it will be ignored by the system Feb 04 11:50:10 if I just execute gradlew in a folder, where is it specified which version is getting executed? Feb 04 11:50:37 danijoo, hmm, thnx. Even if I change the ?attr/colorPrimaryDark on runtime? Feb 04 11:51:13 danijoo, once again, thank you very much for your help. Feb 04 11:51:14 Number5, yes. older devices simply dont support changing that attribute Feb 04 11:51:31 danijoo, ok, thank you thank you :) Feb 04 11:52:10 danijoo: can you send me the gist of your gradlew and gradlew.bat if that exists for you? Feb 04 11:53:20 Syzygy, https://gist.github.com/danijoo/80b5c4842691e31a5a66 Feb 04 11:53:41 and the bash: https://gist.github.com/219df6e30b5cf3077a0e Feb 04 11:56:06 that looks about the same Feb 04 11:57:33 Syzygy, strange.. you could try clearing the gradle cache in your user folder Feb 04 11:57:36 maybe that helps Feb 04 11:57:42 ah... interesting, even if I'm not in my project folder it downloads gradle 1.12... Feb 04 11:57:54 danijoo: I already deleted it 5 times in the last half hour Feb 04 11:58:15 Then I dont know. :/ Feb 04 12:01:52 I deleted every gradle folder (even hidden) Feb 04 12:01:56 that i could find Feb 04 12:04:59 in your main build.gradle, do you use a gradle dependency and if so which version? Feb 04 12:06:06 Syzygy, https://gist.github.com/danijoo/cfbc16ce1ce5f4ed7791 Feb 04 12:06:20 wow whats wrong there :D Feb 04 12:06:29 just realeized there are 2 plugins defined... Feb 04 12:06:38 seems like AS messed the upgrade up Feb 04 12:06:55 well, the pulled the download for 2.0 due to a blocker :P Feb 04 12:08:09 I found it! Feb 04 12:08:15 ? Feb 04 12:08:56 in /Users/Syzygy/Library/Android/sdk/tools/templates/gradle/wrapper it was using 1.12 Feb 04 12:09:21 but why does it ignore the project specific one? Feb 04 12:09:32 because reasons i guess Feb 04 12:09:34 no idea Feb 04 12:10:13 ^^ Feb 04 12:10:43 i mean i had the 1.12 issues via console Feb 04 12:11:04 but it still chose the path gradlew over the local gradlew Feb 04 12:11:21 ah! i think console ignores the local wrapper Feb 04 12:11:32 because it also uses a different cache and daemon Feb 04 12:11:42 dont ask me why Feb 04 12:11:56 because everything is horrible Feb 04 12:36:47 how much money can i earn per day? Feb 04 12:37:38 :/ Feb 04 12:40:38 3.1415926535897932384626 zimbabwe dollars Feb 04 12:40:50 and i typed that number from memory :v Feb 04 13:02:28 Why does chrome hang if Im building an android project, but other apps dont :/ Feb 04 13:05:45 any idea how a gradle online build could access the gradle cache? it's working for offline builds... Feb 04 13:06:21 what are online builds? Feb 04 13:07:27 well, you can put gradle into offline mode, so... when you not do that Feb 04 13:07:55 ah. I guess online does that too. but will recheck for newer versions at specific intervals Feb 04 13:08:26 in offline mode a build takes seconds as compared to 7 minutes Feb 04 13:08:45 o.O Feb 04 13:08:50 i should try that offline mode.. :D Feb 04 13:09:16 (also try compiling for api 21, at least while deving) Feb 04 13:09:38 im doing that already Feb 04 13:09:44 because i need multidex Feb 04 13:09:49 ah, same here Feb 04 13:10:05 but i guess multidex also works for lower apis Feb 04 13:10:08 at least for debug. for production i push proguarded singledex. Feb 04 13:10:25 pretty sure our production also requires multidex Feb 04 13:10:26 yeah I could possibly ditch that out and just release multidex for all apis Feb 04 13:10:33 but never change a running system :) Feb 04 13:11:04 unless it takes 20 minutes to sync and 7 to build -.- Feb 04 13:15:34 well, i guess the first build still takes long Feb 04 13:19:57 20 min is crazy Feb 04 13:20:16 I think with a full redownload of everything it takes 10 at max for me Feb 04 13:20:17 I think the main problem is that it's querying different repos Feb 04 13:21:14 the dependencies are spread across 6 repos and as far as I understand it's checking every repo for everything it hasn't found yet, and for some magical reason the order matters -.- Feb 04 13:21:35 ah yeah. Feb 04 13:21:42 Syzygy, don't you have a local maven mirror to speed that up and keep depenencies stored? Feb 04 13:22:04 If you're a company that makes a lot of sense - deploy Sonatype Nexus and configure a repository as a "mirror". Feb 04 13:22:14 if it hasnt a repo cached, it will start at the very top of your repo list and query one by one until it finds the artifact iirc Feb 04 13:22:16 It'll automatically cache artifacts and you get a faster server than jcenter. Feb 04 13:22:21 not yet. I'm still trying to get mavenLocal() to work, but nothing is copied into my m2 folder Feb 04 13:23:08 everything is in /user/me/.gradle/cache/ though... why can't it just use that? Feb 04 13:28:17 Mavrik: shouldn't it also work with my local maven/gradle caches? Feb 04 13:28:44 Gradle/maven will still ping remote servers to check if the artifacts were updated. Feb 04 13:29:17 even if i have fixed version numbers? Feb 04 13:30:28 like, I'm not doing "compile 'com.somedev:somelib:1.+'". I'm doing "compile 'com.somedev:somelib:1.3'" Feb 04 13:30:59 Syzygy, i think there could still be a change in the package republished with the same version Feb 04 13:31:00 Yes. Feb 04 13:31:12 it checks for hash or something like that Feb 04 13:31:13 It's stilly because the packages aren't allowed to change. Feb 04 13:31:19 But Gradle does it anyway. Feb 04 13:31:50 and mavenLocal() doesn't work either? Feb 04 13:32:16 No, because mavenLocal() has nothing to do with that. Feb 04 13:32:25 hm... Feb 04 13:32:49 so an inhouse maven mirror is really the only way i guess... Feb 04 13:34:51 If you find another solution do share :) Feb 04 13:35:15 sync in online mode, compile in gradle offline mode... Feb 04 13:35:33 and try to avoid syncs :P Feb 04 13:38:35 is there an easier way to enable/disable offline mode than the button burried deep in the settings emnu? Feb 04 13:38:39 menu* Feb 04 13:47:52 I don't understand the problem you're having, is gradle always re-downloading stuff? Feb 04 13:55:59 hi inside a linera layout how can i have a view with a predifined size (5dp) in the bottom and then the reste of the upper space filled byt an imageviewer Feb 04 14:01:20 hi i have an app for smartphone, activities with portrait attribute, i have create tablet version now. how can i start this version? Feb 04 14:03:21 Easily ;) Feb 04 14:03:45 It's hard to say without seeing it Feb 04 14:04:00 You can implement new XML designs Feb 04 14:04:18 If you have cards, you might create more columns Feb 04 14:06:02 troulouliou_div2, see layout_weight Feb 04 14:06:26 Zharf, manage by using a relativelayout Feb 04 14:06:50 but you just said you wanted a linearlayout ;) Feb 04 14:07:14 I've spent two years trying to think how to fill all the space on a tablet in my app(s) Feb 04 14:07:19 still no clue Feb 04 14:07:40 Open navigation drawer Feb 04 14:07:47 Always Feb 04 14:07:58 And make lists to cards Feb 04 14:08:14 If you have edit view, inflate edit fragmet to layout Feb 04 14:08:23 http://eclipser.xmms2.org/xmmsclient-android/device-2013-04-22-143607.png I don't have much content Feb 04 14:08:24 Don't open it in new activity Feb 04 14:08:26 :p Feb 04 14:09:06 Move controls to bottom and make them bigger Feb 04 14:09:09 (I still hate nav drawers) Feb 04 14:09:30 Remove tabs and inflate playlist to the right Feb 04 14:09:42 next time I touch that app I'll probably rewrite it and use material crap on it Feb 04 14:09:42 Or rather left Feb 04 14:10:37 I just told you how you can make it ;) Feb 04 14:10:47 I need to write player too.. Feb 04 14:11:01 use xmms2 as a base ;) Feb 04 14:19:23 I am trying to learn to use retrofit but am having some issues. Here is the json api endpoint i trying to access: https://www.idpcaucuses.com/api/statecandidateresults Feb 04 14:20:05 here is my interface for retrofit: https://gist.github.com/DylanRedfield/7dab20e34cbbafdbb338 Feb 04 14:21:23 and here is my code executing the call: https://gist.github.com/DylanRedfield/9e1fd294f75f2a9afbb9 Feb 04 14:22:45 Can I compile android code using JDK 8? I'm installing everything on a new computer, and Idk If i need to install JDK 7 too Feb 04 14:23:28 yes Feb 04 14:23:47 So using JDK 7 I can compile Java 6 source to java 6 support jar, right? Feb 04 14:23:51 JDK 8* Feb 04 14:23:53 yes Feb 04 14:23:57 Thanks! Feb 04 14:24:32 DadFoundMy, and the problem? -.- Feb 04 14:25:04 Zharf: The call is not working, it seems as though results is null Feb 04 14:25:54 body is null or the result is null? :o Feb 04 14:26:49 Zharf: the variable results is null, so yes the body Feb 04 14:29:00 check the response http://square.github.io/retrofit/2.x/retrofit/retrofit2/Response.html Feb 04 14:30:38 Zharf: the response is not null Feb 04 14:31:49 Zharf: calling isSuccess() on the response returns false though Feb 04 14:33:20 Zharf: and the error code is 404 Feb 04 14:34:44 well that's HTTP Not Found Feb 04 14:34:48 your URL is incorrect Feb 04 14:35:00 i just checked and the url is correct Feb 04 14:35:12 unless i wrote it wrong with retrofit Feb 04 14:35:43 i am assuming it just takes the baseurl and the endpoint defined in the annotation of the interface right? Feb 04 14:36:05 remove the / in @GET, I'm not sure how picky the server is about multiple /'s without anything in between and you might end up with such a situation Feb 04 14:37:23 hm, doesn't seem to be picky about that Feb 04 14:37:55 Zharf: thanks! that worked! Feb 04 14:38:07 I added a / to the end of the baseurl Feb 04 14:38:14 and removed it from the @Get Feb 04 14:38:33 Does that mean the @get isn't just simply added to the end? Feb 04 14:38:43 it shouldn't need it in baseurl either, but I think the problem might've been something related to it possibly urlencoding the / Feb 04 14:39:24 Anyone knows how to stop android studio from deleting my Keymap because it has a non-ascii character assigned? Feb 04 14:39:41 every time i open it up i have to re-set everything, creating a new keymap didnt fix it Feb 04 14:39:57 it deletes it Feb 04 14:40:53 DadFoundMy, http://square.github.io/retrofit/2.x/retrofit/ says base urls should always end in / Feb 04 14:41:16 see the first example there Feb 04 14:41:27 err Feb 04 14:41:29 hmm Feb 04 14:42:16 DadFoundMy, http://square.github.io/retrofit/2.x/retrofit/retrofit2/Retrofit.Builder.html#baseUrl-okhttp3.HttpUrl- better link Feb 04 14:42:56 interesting, thanks for all the help! Feb 04 14:43:05 think i finally understand rentrofit a bit Feb 04 14:43:13 at first glance it was extremely confusing Feb 04 14:43:29 the documentation is a bit lacking, I guess Feb 04 14:43:50 the javadoc is fine, for me anyway though Feb 04 14:46:14 what's the current compileSdkVersion? Feb 04 14:46:22 'android-L' ? Feb 04 14:47:30 23, which is Marshmallow. Feb 04 14:48:33 yea that broke my recyclerview Feb 04 15:05:38 anyone knows how to style the SearchView? Feb 04 15:05:51 Can't change the text color Feb 04 15:09:45 Number5: one can make semi-transparent statusbar from api 19, and transparent from 21. below 19 no luck Feb 04 15:10:46 vigilancer, thank you very much for the information :) I'll remember that. Feb 04 15:12:29 nvm Feb 04 15:20:17 is openjdk 7 good for android development or should i go with oracle jdk? i want to learn android programming Feb 04 15:21:16 Use Oracle JDK 8 just to avoid issues. Feb 04 15:22:03 8? i thought 7 was used for android development Feb 04 15:22:27 7 is what the phone sorta supports Feb 04 15:23:04 geez I find this coordinator layout stuff so overcomplicated just to collapse a toolbar on scroll lol Feb 04 15:23:10 ok thanks Feb 04 15:23:16 ended up writing a touchlistener for this Feb 04 15:23:40 was it that easy casadogg ? Feb 04 15:23:54 It's pretty straightforward Feb 04 15:23:59 is there a good book or tutorial for beginners? Feb 04 15:24:10 nabukadnezar43, just because you have a newer compiler / jre doesn't mean it can't compile code for Android VM. Feb 04 15:24:13 or should i just read the docs Feb 04 15:24:18 Also new IntelliJ tools demand an 8 JRE. Feb 04 15:24:41 nabukadnezar43: do you know how to java? Feb 04 15:25:02 You just get Y coordinates from the touch event and add them to the toolbar's translationY Feb 04 15:25:07 i had a course a few years ago introduction to oop with java Feb 04 15:25:25 and to the recyclerv as well, of course you do some validations Feb 04 15:26:37 justjanne, i will manage i guess, java docs are nice Feb 04 15:36:13 where is defined? I just see that in attrs.html Feb 04 15:40:10 Calguy: https://android.googlesource.com/platform/frameworks/support/+/master/v7/appcompat/res/values/themes_base.xml#125 Feb 04 15:47:35 tacticaljoke ah and where is @style/Widget.AppCompat.Button.Borderless defined? Feb 04 15:48:26 and how can I apply that to imageview? Feb 04 15:48:30 Calguy, place the cursor at it and press strg+b to get to the source Feb 04 15:48:42 laso I had seen a button replacement class that allows mroe flexdible formatting of images has anyone seen that or know a good one? Feb 04 15:49:01 danijoo: I can't because that was a webview? Feb 04 15:49:10 webview? Feb 04 15:49:52 danijoo: I can't because that was a webpshr Feb 04 15:49:57 danijoo: I can't because that was a webpage Feb 04 15:50:18 and when i click in the ide it just gives me to that format=reference and then that is the end no more clicking Feb 04 15:50:48 Try Ctrl+Shift+N > "appcompat/values.xml" > Enter and then Ctrl+F for "borderlessbuttonstyle". Feb 04 15:51:02 Might have to F3 after that. Feb 04 15:51:13 Then you can middle-click. Feb 04 15:51:26 ok thanks and what about imagview and/or an imageview replacement? Feb 04 15:51:28 (Or Ctrl+B.) Feb 04 15:52:10 Actually, hmm, that doesn't work for me -- I can't middle-click the identifier and go to the definition. Feb 04 15:52:25 replacement for what Feb 04 15:52:34 But I can Ctrl+F "Widget.AppCompat.Button.Borderless" and get there. Feb 04 15:56:36 I'm thinking of adopting the Windows 10 communication style for my app. Rather than "Login failed", it'd be "We were unable to log you in". Not sure whether it's too weird, though. :D Feb 04 15:57:00 When Windows 10 talks to me like that, I think "Who is this 'we'? Am I being watched by a group of people?". Feb 04 15:57:26 "I" is even creepier. Feb 04 16:01:14 "Hi. This is the qmail-send program at [domain]. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out." (qmail's bounce messages when delivery fails.) Feb 04 16:04:40 I guess it seems less threatening with the "Hi" and "Sorry". Feb 04 16:05:02 gdit AS Feb 04 16:05:45 i tried the gallery thingy to create a tabbed activity, it gaves me something fully deprecated and crashing at run-time Feb 04 16:06:00 i thought i would save time instead of building it myself with tablayout & stuff... NOPE Feb 04 16:11:23 hi guys, I hope you had an awesome day so far! Feb 04 16:12:22 One year ago, I published an app. Google took it off the store b/c it infringed some other companies rights. We (contractually) gained now the right to create this app Feb 04 16:12:38 Is there a recommended way to approach Google now to unblock our app? Feb 04 16:17:27 send them dickpics Feb 04 16:17:57 if that doesn't work, I'm out of ideas Feb 04 16:22:39 kotlin 1.0 RC is out Feb 04 16:24:53 so appcompat.borderless will do material? Feb 04 16:25:56 g00s: I still think they should sign off with "Keep on Kotlin". "Have a nice Kotlin" is tame by comparison. Feb 04 16:27:36 or from shmooz "Kotlin Shmotlin!" Feb 04 16:29:42 I want this laptop now! http://www.razerzone.com/gaming-systems/razer-blade-stealth Feb 04 16:29:59 ah, yes, that's a pretty sweet sounding laptop Feb 04 16:30:28 $999 for cheapest configuration Feb 04 16:30:31 That's a high resolution for such a small screen. :s Feb 04 16:32:23 I don't see anything wrong with that in theory; I just don't like how it pans out with legacy Windows apps. Feb 04 16:32:28 TacticalJoke wonder why plugin auto update doesn't work Feb 04 16:33:25 http://imgur.com/D17yk0x AS being AS Feb 04 16:33:35 i'm so s i c k of android dev Feb 04 16:33:56 how is that a problem? Feb 04 16:34:12 it's pointing out a likely error Feb 04 16:34:16 g00s: Hmm, not sure. Feb 04 16:34:29 adq whats is the matter with that ? Feb 04 16:34:43 adq: `minSdkVersion 21` FTW. Feb 04 16:34:44 i don't like warning looking like error but ending up being not important at all Feb 04 16:34:52 it can be important Feb 04 16:34:59 and it's practically an error depending on what you're doing Feb 04 16:35:15 it's an error for the majority use-case Feb 04 16:35:32 don't you see that i added "the recommendation" above? Feb 04 16:35:36 nope Feb 04 16:35:39 you added the xmlns Feb 04 16:35:45 but you didn't fix showAsAction to use it Feb 04 16:35:50 adq app:showAsAction Feb 04 16:35:59 woooo thx Feb 04 16:36:05 my bad, indeed! Feb 04 16:36:13 adq don't forget about MenuItemCompat Feb 04 16:36:30 you don't need menuitemcompat unless you have an api level problem Feb 04 16:36:36 rusty memory, but if you change the prefix, better use the corresponding MenuItemCompat accessor Feb 04 16:36:42 well, i have a problem with my eyes atm lol Feb 04 16:37:17 https://github.com/pfn/kotlin-plugin/commit/b38d81325ba474ec3752b92884f9ebb93dccb24d Feb 04 16:37:20 meh, they keep changing stuff Feb 04 16:38:21 like they changed the flavor stuff for kotlinx, so annoying Feb 04 16:38:26 rc1 now. nice Feb 04 16:38:43 pfn, that should stop now. Feb 04 16:38:44 I hope they don't take an eternity to release 1.0 now. Feb 04 16:38:59 they changed it mid-beta which was annoying Feb 04 16:39:19 well RC is kinda release TacticalJoke . I guess maybe a 1 or 2 month from now Feb 04 16:39:30 one or 2 additional RCs maybe Feb 04 16:40:03 in september 2016 ... "Release Candidate 9" Feb 04 16:40:15 haha Feb 04 16:40:18 g00s, we are not talking about android studio :p Feb 04 16:40:29 danijoo you see what i did there :D Feb 04 16:40:39 g00s: They're just as bad as you and I are. :D Feb 04 16:40:48 \o/ Feb 04 16:41:25 perfectionists unite ! Feb 04 16:41:39 upport added for @Nullable/@NotNull annotations from various popular libraries such as javax.annotations, Android SDK, etc. Feb 04 16:41:43 finally! Feb 04 16:42:11 It was about time ... Feb 04 16:42:38 I hope they're gonna go crazy post-1.0 and add all kinds of amazing things. Feb 04 16:43:35 I wonder how many kotlin-plugin users I have Feb 04 16:43:37 https://bintray.com/pfn/sbt-plugins/kotlin-plugin/view#statistics Feb 04 16:43:39 not many, heh Feb 04 16:43:49 how to use a View which's source code is on github? Feb 04 16:44:19 lxknvlk, copy paste the source or load the library Feb 04 16:45:42 I don't see why they couldn't make Kotlin so good that the situation on Android becomes "If you're still using Java for Android development, you're Doing It Wrong". (Some would argue that this is already the case, but not a huge number.) Feb 04 16:46:09 TacticalJoke remember kotlin Feb 04 16:46:21 has a very slim standard library Feb 04 16:46:53 so we are still at the mercy of the java runtime classes that are supplied,or not supplied Feb 04 16:46:57 coming afetr many days and I still find g00s and TacticalJoke around .. amazing ! Feb 04 16:47:44 there are plenty of java libraries that make up for missing stuff on android Feb 04 16:47:49 so that isn't a concern Feb 04 16:48:28 pfn, for your plugin, dont forget that also kotlin-android-extensions changed Feb 04 16:48:33 g00s: Yeah, but I think there may be non-stdlib stuff that could be deal-makers. One example is Eclipse-style incremental compiling (I know I mentioned this the other day, and I'm not sure of its feasibility). Feb 04 16:48:39 danijoo, what aspect? test cases pass Feb 04 16:48:44 in case you didnt notice Feb 04 16:48:50 Using material design form google legal if its for an app that will make money ? Feb 04 16:49:04 cart_man wut ? Feb 04 16:49:14 suhas_sm: It was only a few months ago, wasn't it? Maybe I'm getting old, but months are like hours for me. Feb 04 16:49:20 pfn, its now a gradle plugin Feb 04 16:49:21 Yeah Feb 04 16:49:30 see ´Tooling´ http://blog.jetbrains.com/kotlin/2016/02/kotlin-1-0-release-candidate-is-out/ Feb 04 16:49:33 danijoo, it's always been a gradle subplugin for the kotlin plugin Feb 04 16:49:33 suhas_sm: Are you really young? Just curious. :D Feb 04 16:49:37 woo retrofit 2.0.0 beta4 Feb 04 16:49:42 Nopes :P Feb 04 16:49:47 g00s: Like using the TabLayout etc from google ... ? Feb 04 16:49:56 its not anymore Feb 04 16:50:03 cart_man TabLayout is in the support library .... Feb 04 16:50:10 danijoo, oh, the moved it to top-level instead of subplugin from gradle-kotlin-plugn, yeah, that doesn't affect kotlin-plugin Feb 04 16:50:12 you need to apply it explicitly if i get that right Feb 04 16:50:16 kk Feb 04 16:50:21 is there a way to determine if an app is installed from another app? Feb 04 16:50:29 like can I get a list of installed apps using the sdk Feb 04 16:50:29 all it does is set kotlin plugin options for kotlin-extensions-android Feb 04 16:50:29 bfrog, no Feb 04 16:50:33 @cart_man go ahead Feb 04 16:50:49 it's a pity that kotlin left out all the good bits to use Feb 04 16:52:41 It'd be cool if Kotlin 1.0 were the "Just be better than Java" release and 3.0 were the "Okay, now be amazing" release. Having said that, even if 3.0 ends up being boring, I still far prefer Kotlin to Java. Feb 04 16:53:19 So you have already started developing apps in Kotlin ? Feb 04 16:53:24 Repo please Feb 04 16:53:27 A lot of us have Feb 04 16:53:28 I haven't, but a lot of people have. Feb 04 16:53:39 I don't kotlin Feb 04 16:53:45 I write kotlin-plugin as a community favor Feb 04 16:53:45 Hmm,interesting Feb 04 16:55:03 kotlin seems less verbose Feb 04 16:55:11 g00s: The google play one or the android one? Feb 04 16:55:43 kotlin is definitely a better language for android than java Feb 04 16:56:00 kotlin is a godsend Feb 04 16:56:10 recently switched over and i've been loving it Feb 04 16:56:13 There are parts of the syntax that are certainly so good Feb 04 16:56:16 #muchHype ^^ Feb 04 16:56:22 such as the question mark thing on methods parameters Feb 04 16:56:42 casadogg, if you write only kotlin code, you barely use it Feb 04 16:56:54 because you start making everything not nullable Feb 04 16:57:01 ^ Feb 04 16:57:03 hm really? Feb 04 16:57:22 i never used kotlin, just stating my impressions Feb 04 16:57:57 a ? behind a variable means it can be null or you check for null Feb 04 16:58:08 Yeah, nullability is rarely desirable. Feb 04 16:58:27 ie if I initialize an activity, i know my views are not null, so I make them Views and not View?s Feb 04 16:58:37 I know, but the android api has some methods that may provide you with null parameters Feb 04 16:58:45 casadogg, rarely Feb 04 16:59:15 hey, kind of irrelevant but is there a way to use Android Studio for building system level apps? Feb 04 16:59:16 and in that case, a ? is still less verbose then if(something != null) Feb 04 16:59:27 AS keeps yelling at me thinking I'm building a normal user level app Feb 04 16:59:57 hm Feb 04 16:59:59 so when i reference certain classes it gives me errors Feb 04 17:00:02 so do you guys use kotlin? Feb 04 17:00:06 yeah we do Feb 04 17:00:20 yes for new projects Feb 04 17:00:26 worth making the transition? Feb 04 17:00:28 and my old one is kinda 50:50 now Feb 04 17:00:31 nope and never for me :P Feb 04 17:00:38 why never? Feb 04 17:00:39 Yes, been using it exclusively for a year now Feb 04 17:00:42 Kotlin fo lyfe. Feb 04 17:01:04 casadogg, because I use something better Feb 04 17:01:08 Just kidding; haven't switched yet. But will (starting with unit tests, and then *new* classes). Feb 04 17:01:31 TacticalJoke, people who plan writing unit tests in the future never write them :p Feb 04 17:01:33 we all know that Feb 04 17:01:37 How is kotlin pronouneced ? as quotelean ? Feb 04 17:01:40 pfn: what do you use? Feb 04 17:01:44 casadogg, scala Feb 04 17:01:45 danijoo: I love unit testing. Feb 04 17:01:59 I see it as reducing my mental load, now and in the future. Feb 04 17:02:05 Kotlin is pronounced Cot-lin Feb 04 17:02:12 caught-lin Feb 04 17:02:17 its not an english word Feb 04 17:02:20 Keep on kotlin'. Feb 04 17:02:27 pfn: what about build times Feb 04 17:02:31 casadogg, nil Feb 04 17:02:39 brohith: I say it "cott-lin", not "caught-lin". :s Feb 04 17:02:40 No one uses java here ? :P kotlin, scala Feb 04 17:02:44 my build times are always on the order of seconds Feb 04 17:03:06 suhas_sm apparently I'm the grandpa still using java Feb 04 17:03:07 TacticalJoke fair enough Feb 04 17:03:35 Java is so 1995. Feb 04 17:03:58 so guys Feb 04 17:04:00 java tires me to be honest Feb 04 17:04:04 http://hurtidetal.pl/i/1/_art/8145/19930152404fd8927841951.jpg Feb 04 17:04:06 Though I think it's safe to say that the vast majority of Android developers use Java. Feb 04 17:04:12 I'll try sacala Feb 04 17:04:13 scala Feb 04 17:04:14 and klingon Feb 04 17:04:16 same, i get hurt every time i write java Feb 04 17:04:19 or whatever the fuck the name of that language is Feb 04 17:04:23 wtf is klingon Feb 04 17:04:25 kotlin* Feb 04 17:04:26 lol Feb 04 17:04:28 oh Feb 04 17:04:30 :D Feb 04 17:04:39 thats an awesome library name Feb 04 17:04:40 lol guys just joking Feb 04 17:04:42 Klingon Feb 04 17:04:47 tah Feb 04 17:04:48 pagh Feb 04 17:04:50 tahbe! Feb 04 17:05:04 (to be or not to be, in klingon) Feb 04 17:05:19 or thlnGon chol, as klingon is called in klingon Feb 04 17:05:33 casadogg, should do the two intro scala courses on coursera to get started Feb 04 17:05:40 unsigned_long: Is there a phone number for Google? Otherwise I guess e-mail. Feb 04 17:05:52 trekkie detected Feb 04 17:05:59 Not sure whether people in here have dealt with that scenario. Feb 04 17:06:36 my latin + greek teacher in middle school could speak klingon, he was awesome Feb 04 17:06:47 pfn sounds good, I'll try it out. I've been meaning to start a new project, might as well do it with scala Feb 04 17:06:52 yo but seriously is there a way to get Android Studio to stop yelling at me for referencing system apis Feb 04 17:07:10 unsigned_long, send a mail to the address they gave you in the email. that worked for me when I got pulled from the store Feb 04 17:07:44 brohith, im sure theres a way to disable it Feb 04 17:07:44 am I missing something? who is unsigned_long? or do I jus not receive those messages due to a bug? Feb 04 17:07:50 might be some lint check Feb 04 17:08:02 hi how can i switch orientation portrait|landscape phone/tablet >9'' Feb 04 17:08:04 justjanne, he asked before the kotlin debate break out ^^ Feb 04 17:08:22 ah, found it Feb 04 17:08:24 devuser2, rotate the phone? ^^ Feb 04 17:08:42 well, the solution there is to try calling google, but they will just hang up on you. Feb 04 17:08:54 devuser2: might take 2 hands though with something that big Feb 04 17:08:58 I randomly respond to ancient unanswered questions. Feb 04 17:09:07 Just send them a mail. they answer within 2 days usually Feb 04 17:09:12 brohith, no, android studio is not for developing system apps Feb 04 17:09:28 Exaclty, why you using android studio for that ? Feb 04 17:09:37 danijoo, phone version is portrait Feb 04 17:09:59 devuser2, a phone can go landscape too.. Feb 04 17:10:11 unless the dev blocked it in is app Feb 04 17:10:49 danijoo, yes but my specs are : phone in portrait and tablet >8-9 Feb 04 17:10:53 in portrait Feb 04 17:11:06 what to you mean "my specs are"? Feb 04 17:11:08 so your specs are everything in portrait.. Feb 04 17:11:09 :D Feb 04 17:11:27 dont lock orientation. its bad Feb 04 17:11:50 I like locking orientation as a user Feb 04 17:11:59 requirements Feb 04 17:12:01 hate using phone in a non-conventional orientation and having the screen rotated on me Feb 04 17:12:03 e.g. lying in bed Feb 04 17:12:18 Yeah same here @pfn Feb 04 17:12:27 or hanging upside down, or setting it down on a sloped surface Feb 04 17:12:44 pfn, thats what the button in the toolbar to lock orientation is for./ Feb 04 17:12:48 its irrating if screen rotates while you are trying to read something at 45 degress Feb 04 17:13:01 danijoo, only been there since like 5.0 Feb 04 17:13:03 irrritating* Feb 04 17:13:07 yeah. Feb 04 17:13:34 next-gen minSDK. cant wait for it. Feb 04 17:13:45 * pfn still supports api10 in one of his apps Feb 04 17:13:50 whats that / Feb 04 17:13:56 qicr? Feb 04 17:13:59 yeah Feb 04 17:14:15 do you still have lots of users there? Feb 04 17:14:44 roughly 9% Feb 04 17:14:48 for me, 5.x is close to become most used version Feb 04 17:14:59 ah no. it is now Feb 04 17:15:03 nice Feb 04 17:15:04 #1 is 4.4, followed by 5.1 Feb 04 17:15:14 but qicr has a relatively low number of users Feb 04 17:15:17 interessting. for me its 4.4 followed by 5.0 Feb 04 17:15:18 how do you use string.contains() method? tried with import java.lang.String but can't find it? Feb 04 17:15:19 s/relatively// Feb 04 17:15:30 5.0 is 5% bigger then 5.1 for me Feb 04 17:15:31 "foo".contains("f") Feb 04 17:15:51 warning: String::contains only works with charsequences as argument Feb 04 17:15:54 (not with chars) Feb 04 17:16:15 and still 2% on 2.3 who dont want to uninstall although they didnt got an update since half a year :D Feb 04 17:16:30 pfn: lol i had a typo, ty Feb 04 17:16:50 what I'd like to see is breakdowns by what app version an android version is using Feb 04 17:17:38 a full 25% of my users on qicr haven't updated since 2014 Feb 04 17:17:43 yeah thats missing in the overvoew Feb 04 17:17:54 analytics can do that iirc Feb 04 17:18:07 and there have been like 14 releases since that version in 2014 Feb 04 17:18:18 yeah, I don't care enough to analytics it Feb 04 17:18:30 there's no money in this for me, so it's just a fun exercise on occasion Feb 04 17:18:43 none of my employers ever even look at the apps I've written Feb 04 17:19:50 that and I irc primarily from mobile, and no other irc client does what I want Feb 04 17:24:19 ugh, I somehow broke /ping Feb 04 17:28:43 is play services closed source? Feb 04 17:29:24 yes Feb 04 17:29:29 lame Feb 04 17:29:40 this javadoc is lacking Feb 04 17:29:44 but at least it exists Feb 04 17:31:27 so does InstanceID#getToken generate a new token every time or does it cache the token Feb 04 17:35:31 missingno the intellij java decompiler is pretty amazing Feb 04 17:35:51 it uses fernflower, you can probably just decompile that GMS class and look Feb 04 17:37:03 problem is, the stuff you include into your project is mostly stub going to GMS in another process Feb 04 17:37:34 yeah but the methods are called zzi() and so forth Feb 04 17:37:47 String var5 = this.zzyD()?null:zzaMQ.zzi(this.zzaMT, authorizedEntity, scope); Feb 04 17:37:56 so is var5 ever null? who knows Feb 04 17:38:29 hmm zzi does zzaNt.getString(var4, (String)null) Feb 04 17:38:33 which is a sharedprefs call Feb 04 17:38:37 that falls back to null Feb 04 17:39:22 I guess that might answer my question, there is a cache of some sort it does not go out to the network every time Feb 04 17:44:22 var5 is null if zzyD returns true Feb 04 17:46:48 yeah I had fun walking thru that Feb 04 17:47:12 after wards there is a subsequent if that triggers the service connection if var5 is not found in cache Feb 04 17:48:22 then deeper inside that var5 = this.zzc() call, inside yet another zzu() call, the token is pulled from the extras of some intent, and more null checks are performed on it Feb 04 17:48:44 tl;dr eventually the code insists on throwing an IOException rather than return null Feb 04 17:54:03 so now I have to figure out out what deleteToken does, I am hoping that it can unregister from gcm notifications Feb 04 17:56:31 I want to update my app compat version, but I don't wanna target a new version. aka, I wanna stick on api 22, but I wanna use the newest app compat. any way to do this? Feb 04 17:56:45 just do it Feb 04 17:56:56 I am on target 22 compile 23 with appcompat 23 Feb 04 17:57:10 eghdk try appcompat 23, compileSdk=23, targetSdk=22 Feb 04 17:59:05 bah. simple thanks g00s and missingno I thought compile and target had to be the same. Feb 04 18:01:15 What about build tools version. Should that just about match up as well? Feb 04 18:03:38 no Feb 04 18:13:16 Can I do an intent that start an activity from another app? Feb 04 18:13:32 I would like to start "com.android.documentsui/.DocumentsActivity" (I believe, I am not sure) Feb 04 18:13:50 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=content://com.android.documentsui/.DocumentsActivity } Feb 04 18:14:18 use the latest build tools for compile performance eghdk Feb 04 18:15:12 missingno: thanks Feb 04 18:15:41 smallfoot-: you can call any activity from your app as long as that activity is exposed Feb 04 18:16:31 eghdk, I don't know if the Activity I wish to call is exposed Feb 04 18:17:45 might not be good to call it then? And instead use an implicit intent? Feb 04 18:18:03 How do I know if I can call it? Feb 04 18:18:07 What is an implicit intent? Feb 04 18:18:44 You know the "Settings" app in Android, under "Storage & USB", you can click on "Explore", I want to launch that Activity that is launched from when you click Explore Feb 04 18:19:14 I believe it might be com.android.externalstorage, com.android.documentsui or com.android.documentsui/.DocumentsActivity judging by logcat output from the emulator Feb 04 18:31:35 Guys why if I try and instantiate TabHost and RecylerView it crashes the app saying this error -> http://pastebin.com/2aThsgbe Feb 04 18:32:00 cart_man why are you using TabHost ... i said TabLAYOUT Feb 04 18:32:15 g00s: Yes just testing somet stuffs Feb 04 18:32:45 TabHost? the 90's called.. Feb 04 18:33:00 yeah good luck getting help with that ) Feb 04 18:33:03 Ugh .... ok ok Feb 04 18:33:24 Good TabLayout tutorial? Feb 04 18:33:37 * g00s remembers when we had to copy / paste that stuff into our projects ... Feb 04 18:33:47 cart_man this isn't rocket science, just google Feb 04 18:34:02 cart_man also look at cheese square app Feb 04 18:34:23 g00s: sometimes google sends you in circles though Feb 04 18:35:46 you only need to call a single method to set it up Feb 04 18:36:05 and that one is pretty much self explained or in the docs Feb 04 18:41:00 Genymotion now sends 20% discounts. I guess they have selling troubles since android 2.0 Feb 04 18:41:14 heh Feb 04 18:41:28 does 2.0 run faster than the current one? Feb 04 18:41:33 dev tools is a very tough market to be in Feb 04 18:41:54 I just got a mail that I can renew for 20% less now because i didnt extend my subscription 2 months ago Feb 04 18:42:06 s73v3r, the fast adb is amazing Feb 04 18:42:18 installing adbs is super fast with that Feb 04 18:42:29 they could have fixed adb like 5 years ago Feb 04 18:42:33 why did they wait so long ... Feb 04 18:42:53 g00s, and then they didnt fix it for every phone.. Feb 04 18:43:07 4.4 emulator adb is still slow in 2.0 Feb 04 18:43:12 but 5.0 isnt -_- Feb 04 18:43:19 cant be that hard to backport that feature Feb 04 18:43:19 good job 5.0 ! Feb 04 18:43:33 danijoo can you tell if the new emus have up to date play services ? last i heard they didn't ... Feb 04 18:43:40 like does 4.4 emu have gms 8.4 Feb 04 18:43:54 g00s, i can check. I know that 5.x emulator indeed has 8.4 Feb 04 18:43:59 hey i'm trying to get the checked value of a checkbox with CheckBox.isChecked() and it's always showing false for a reason? Feb 04 18:44:05 so genymotion will stay here for a while :D Feb 04 18:44:35 gordon_, i didnt renew my subscription after I tested 2.0 Feb 04 18:44:46 subscription for what Feb 04 18:45:04 I only use personal one for genymotion Feb 04 18:45:07 Genymotion Feb 04 18:45:10 yeah. me noit Feb 04 18:45:12 since... it's just android x86 ;) Feb 04 18:45:21 if you use Genymotion to make money, you’re supposed to pay for it Feb 04 18:45:26 ^ this Feb 04 18:45:32 I kno Feb 04 18:45:34 w Feb 04 18:45:39 I dont make money Feb 04 18:45:47 but when to think of it Feb 04 18:45:47 does anyone :P Feb 04 18:45:53 startups doesnt make money... Feb 04 18:45:57 :D Feb 04 18:45:57 are you using it for a job Feb 04 18:46:02 no Feb 04 18:46:11 just for myself Feb 04 18:46:15 just hobbyist stuff? Feb 04 18:46:21 yeah Feb 04 18:46:29 actually if you publish to play store, its not personal use anymore. even if you dont make money Feb 04 18:46:29 for job I use old android emulator Feb 04 18:46:44 danijoo: how can they claim that? Feb 04 18:46:53 still, I didnt upload to play store Feb 04 18:47:10 justjanne, what do you mean? Feb 04 18:47:15 so, best thing to do, is to dont get involved Feb 04 18:47:21 like with synergy... Feb 04 18:47:30 that distributing an app doesn’t have to be professional use yet Feb 04 18:47:40 lol Feb 04 18:47:53 if its for everyone, its not personal us Feb 04 18:47:54 use Feb 04 18:47:54 Genymotion webpage says you're not allowed to use it for commercial use. Feb 04 18:48:06 ah do they? Feb 04 18:48:07 So you're not allowed to buy a license for a company because you aren't allowed to use their webpage :D Feb 04 18:48:16 why i can't get the CheckBox.isChecked() ? Feb 04 18:48:20 i thought they just say "for personal use" on the light version Feb 04 18:48:34 Twirl: are you sure you’re doing it on a checkbox? Feb 04 18:48:46 Mavrik, ah lol ^^ Feb 04 18:48:47 danijoo, I'm looking for their license and can't seem to find it Feb 04 18:49:02 justjanne: i'm seeing it on the debugger Feb 04 18:49:28 justjanne: but i can't see the isChecked() method on it Feb 04 18:49:53 This license is granted to the end user only and exclusively in connection with personal use, the end user is an individual, and not a professional, who downloads the application for personal and private needs, excluding commercial and professional environment. Feb 04 18:49:59 Which means... something. Feb 04 18:50:02 g00s, seems like 4.4 is still old play services Feb 04 18:50:05 justjanne: nvm, it says "mChecked = false" Feb 04 18:50:17 justjanne: why? I checked it on the previous activity tho Feb 04 18:50:19 that’s why I’d argue "uploads an app" doesn’t have to be professional use Feb 04 18:50:34 Mavrik, it means you cant distribute the app imo. Feb 04 18:50:41 because its not personal then Feb 04 18:50:47 personal means, for me Feb 04 18:50:53 not for a group of people Feb 04 18:50:54 not necessarily. Feb 04 18:51:01 personal, non-professional use is specified Feb 04 18:51:03 android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.android.documentsui.DocumentsActivity } Feb 04 18:51:12 danijoo, thing is, it talks only about the emulator Feb 04 18:51:16 "made an app for me + parents" should be covered Feb 04 18:51:25 Doesn't it expose the Activity as in its AndroidManifest.xml file? Feb 04 18:51:33 justjanne, thats at least how google interpreted it when they suspended one of my apps that was free Feb 04 18:51:47 because I only had rights to use some copyrighted materials for private use Feb 04 18:51:49 danijoo, which means that you can use the emulator for personal use, which I'm not sure implies anything about distribution of the app you write. Feb 04 18:51:51 personal* Feb 04 18:52:00 But I'm actually talking to our legal, wondering what they'll say :) Feb 04 18:52:03 Mavrik, thats a good point Feb 04 18:52:09 danijoo: Google says that stuff all the time. They aren’t a legal authority Feb 04 18:52:21 justjanne: oh i know what's going on, it's not passing the checked value to the next activity Feb 04 18:52:23 danijoo, but the hitch about legal speak is that it doesn't care about tech Feb 04 18:52:43 So I guess the distribution doesn't matter, the intent does (e.g. do you want to use Geny to help your commercial interest) Feb 04 18:53:03 I can not call "com.android.documentsui.DocumentsActivity", is this because its not exposed in the AndroidManifest.xml file of that app? Feb 04 18:53:40 smallfoot-, you cant randomly call intent for activities of other apps Feb 04 18:53:45 only if they allow it in manifest Feb 04 18:54:02 danijoo, I see. How do I know if its allowed in the manifest? Feb 04 18:54:13 ask the author Feb 04 18:54:34 or, just try it. if it doesn’t work, it’s probably not exposed Feb 04 18:54:37 smallfoot-, i guess settings is AOSP so you can look it up Feb 04 18:54:53 but for the settings menu there are usually implicit intents Feb 04 18:54:57 at least for some of them Feb 04 18:55:28 I found I could call "new Intent(Settings.ACTION_INTERNAL_STORAGE_SETTINGS);" Feb 04 18:55:40 but that just bring me to the internal settings thing, I want to go to the "Explore" Feb 04 18:55:51 maybe its not possible Feb 04 18:56:04 in the internal storage settings the last entry is "Explore" if you click it ,you come to a new activity that lists the files Feb 04 18:56:12 Maybe not, I was wondering if it was ... Feb 04 18:57:04 Hey, if I wanted to load grid items like this http://tympanus.net/codrops/2013/07/02/loading-effects-for-grid-items-with-css-animations/ but natively using an Android library, how would I do it? Are there any libraries out there that would make it easier? Feb 04 18:57:55 jonathankopnick, recyclerview Feb 04 18:58:55 smallfoot-: You can't just pass a random fully qualified package as the action.. Feb 04 19:00:05 danijoo: are there any places I could find a tutorial for doing this like that tympanus I pasted above? Feb 04 19:00:27 im sure there are. Feb 04 19:00:39 SimonVT, I see. Do you know if its possible to launch the Activity of whats in Settings -> Storge & USB -> Explore? Feb 04 19:00:44 Android needs to know the package in which to look, and the fully qualified class.. Neither of those are the action.. For this it has methods like setClassName and setComponent Feb 04 19:01:08 I am actually aware of recyclerview, but I have really struggled to smoothly get items to fly in Feb 04 19:01:30 Just be sure to check that it actually exists, if there's no public API for it, it might not be there on all devices Feb 04 19:01:32 or not Feb 04 19:03:14 and if there is a public API, it might still not be available on all devices :P Feb 04 19:04:06 > Developers should never unregister the client app as a mechanism for logout or for switching between users Feb 04 19:04:15 looks like I should never be calling deleteToken for GCM Feb 04 19:05:26 SimonVT, android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.acedroid.acedroid/com.android.documentsui.DocumentsActivity}; have you declared this activity in your AndroidManifest.xml? Feb 04 19:05:52 intent.setClassName(this, "com.android.documentsui.DocumentsActivity"); Feb 04 19:06:00 Now you're telling Android to look for com.android.documentsui.DocumentsActivity in the com.example.acedroid.acedroid package Feb 04 19:06:17 (there are two setClassName methods) Feb 04 19:06:49 oh Feb 04 19:07:11 intent.setClassName("com.android.documentsui", "com.android.documentsui.DocumentsActivity"); Feb 04 19:07:15 this worked much better, app didnt crahs Feb 04 19:18:45 ArrayAdapter#add Feb 04 19:19:10 Once I call this, my app throws UnsupportedOperationException Feb 04 19:20:37 then don't call it Feb 04 19:21:53 OverCoder: I'm guessing that the collection you supply doesn't supporting modification. In any case, be sure to read the whole exception message. Feb 04 19:22:11 There's actually no messages, which is weird Feb 04 19:22:23 Also what collection? I am adding a String to the ArrayAdapter Feb 04 19:22:27 By "message", I mean "everything, including the stack trace". Feb 04 19:22:29 and then notifyDataSetChanged Feb 04 19:23:38 * OverCoder thinks Feb 04 19:23:49 read your stack trace Feb 04 19:23:50 evaluate Feb 04 19:23:50 fix Feb 04 19:25:57 The stacktrace is really unhelpful Feb 04 19:25:59 Lemme paste it Feb 04 19:26:06 pastebin it pls Feb 04 19:26:44 http://p.samuraimanpurse.com/7tfyJ0XM.txt Feb 04 19:27:06 OverCoder, if you initialized your arrayadapter with something not muteable, you cant add items Feb 04 19:27:20 ie an array Feb 04 19:27:25 hm, I initialized it with an array Feb 04 19:27:27 ayy :p Feb 04 19:27:39 ayy Feb 04 19:27:56 * OverCoder turn casadogg into a casacatt :p Feb 04 19:28:19 lmao? :D Feb 04 19:28:43 don't use arrayadapter Feb 04 19:30:41 OverCoder, so, what compels you to write another irc client? Feb 04 19:31:40 * OverCoder thinks Feb 04 19:31:44 What's campels? Feb 04 19:32:08 OverCoder: Have you ever heard of Google? :D Feb 04 19:32:51 Hm, no xD Feb 04 19:32:55 jk, lemme google it Feb 04 19:33:55 Google is the closest thing we have to a god. It's arguably the most knowledgeable entity (if it qualifies as an entity) in the known universe. Feb 04 19:34:13 Though maybe it's more like "The Internet is" than "Google is". Feb 04 19:35:17 I am quite serious Feb 04 19:35:22 What are campels? I couldn't find that in google Feb 04 19:35:24 TacticalJoke, I doubt that Feb 04 19:35:31 OverCoder: Google what he typed. Feb 04 19:35:37 there are still more people on earth without internet than people with it Feb 04 19:35:48 how do you turn compel into campel? Feb 04 19:35:53 danijoo: Which part do you doubt? Feb 04 19:36:12 TacticalJoke, Java Campels Feb 04 19:36:15 TacticalJoke, campels Feb 04 19:36:28 most known entity in universe Feb 04 19:36:36 ah wait, compels >.< Feb 04 19:36:38 I misread Feb 04 19:36:43 g00s: http://officialandroid.blogspot.co.il/2016/02/android-wear-designed-for-your-wrist.html Feb 04 19:36:45 known != knowledgeable Feb 04 19:36:56 also you forget all the aliens that very possible exist ! :P Feb 04 19:37:06 Also didn't forget the aliens because I said "in the known universe". :D Feb 04 19:37:11 haha Feb 04 19:37:21 touche Feb 04 19:37:45 pfn, Can you just reword that D: Feb 04 19:37:52 I don't even get it even with google Feb 04 19:37:57 OverCoder, what makes you want to write an irc client Feb 04 19:38:45 Hm Feb 04 19:38:49 My IRC friends :p Feb 04 19:39:03 thepoosh congrats getting mentioned the android blog :) Feb 04 19:39:05 They hate all the existing IRC clients (even I do), so we want something new, they barely know Java Feb 04 19:39:09 So I am the key haha :p Feb 04 19:39:28 :D Feb 04 19:40:34 OverCoder, what is it about existing clients do you (collectively) hate, and why do you think you can do it better? Feb 04 19:41:17 g00s: Am I blind? I'm not seeing someone being referenced on there. :s Feb 04 19:41:21 Because they are all buggy, missing features, missing commands, and some of them has buggy GUIs, I am making a modern one with cool features, at least it'd be something that feels awesome to me Feb 04 19:41:35 TacticalJoke Glide Feb 04 19:41:51 Oh. Feb 04 19:42:14 OverCoder, ok Feb 04 19:42:17 have fun Feb 04 19:42:42 Well, I am already having fun lol Feb 04 19:43:01 I finally found something to make that a group of people are interested in haha :p Feb 04 19:43:36 OverCoder: Does it have any compelling features? :D Feb 04 19:43:55 * OverCoder thinks Feb 04 19:45:11 Easier navigation (at least easier than the one I use right now), Customizable themes with theme packages, quite more stable, and.. just supports anything HexChat does Feb 04 19:45:28 idk Feb 04 19:45:29 * OverCoder shrugs Feb 04 19:45:34 stable is a good goal, but is quite difficult to achieve and to quantify Feb 04 19:45:36 These aren't even a reason to make a new app, meh Feb 04 19:45:45 Are you building an IRC client? Feb 04 19:45:51 casadogg, yeah Feb 04 19:45:55 cool Feb 04 19:45:58 OverCoder: Sometimes, the enjoyment or education is reason enough Feb 04 19:46:17 Hm, then maybe the two fall in my case Feb 04 19:46:33 I am practicing concurrency and.. having fun Feb 04 19:46:50 theme packs are annoying, one thing I never enjoy as a user or developer... Feb 04 19:46:52 practice & learning is reason enough :D Feb 04 19:47:00 OverCoder, which is the one you currently use? Feb 04 19:47:05 pfn, HoloIRC Feb 04 19:47:06 it's hard to build an original idea on your first day Feb 04 19:47:22 mine is full of original ideas, but it's been in progress since 2012 or something... Feb 04 19:47:28 damien5314, hm, you're right, but it's pointless to start with something without a real thing that causes the intention Feb 04 19:47:43 I think an IRC client is a good app to build. Feb 04 19:47:57 I remember writing one in C#, years ago. It was a fun experience. Feb 04 19:48:01 pfn, Mine will be open-source, so you can like, just give me your ideas, I'll implement them for sure Feb 04 19:48:05 The IRC protocol is quite simple, too. Feb 04 19:48:13 I wrote bunch of bots actually Feb 04 19:48:14 OverCoder, you can just use mine for inspiration :P Feb 04 19:48:23 This is how I actually learned the basics of Java Feb 04 19:48:24 Yeah, I wrote a bot too. Loved writing bots. :D Feb 04 19:48:32 They're little personalities. Feb 04 19:48:38 pfn, ah wait, it's working? Feb 04 19:48:45 pfn, APK pls :p Feb 04 19:48:56 TacticalJoke, yeah haha :p Feb 04 19:48:59 https://play.google.com/store/apps/details?id=com.hanhuy.android.irc.lite Feb 04 19:49:10 Actually bots are now the first thing I do once I grasp the basics of a language Feb 04 19:49:17 ignore the screenshots, it's something I haven't updated in a few years Feb 04 19:49:33 They gradually get you in the language, i.e. sockets, APIs, URLs, bytes, connections, reader, parsers, string functions, and many many more Feb 04 19:49:40 pfn, mhm Feb 04 19:52:09 pfn, lol android emulator screenshots Feb 04 19:53:13 Seriously, you could've cropped them haha, anyways, installing the client Feb 04 19:53:21 so I have a setting that says "Enable push" Feb 04 19:53:28 anyone do much with Espresso? Feb 04 19:53:36 should I close GCM on disable of that setting? Feb 04 19:53:36 pfn, why is there no non lite version for the lite version? ^^ Feb 04 19:53:47 hmm I guess it does not matter batterywise Feb 04 19:53:51 danijoo, I had planned to make a premium version at some point Feb 04 19:54:06 just as long as I get the server to stop sending me ish Feb 04 19:54:06 danijoo, but not enough traction to care, and didn't really care to rename after the fact Feb 04 19:55:40 now it's just 'lite' for being lightweight Feb 04 19:55:58 e.g. holoirc is 2.8mb by comparison, for being something that only supports android 4.0+ Feb 04 19:56:55 holoirc - “1 star. Will update review when you give material design. #praiseduarte" Feb 04 19:57:26 Do we have the ability to rate reviews yet? (I never go to Google Play.) Feb 04 19:57:50 "1 star - didnt load it bu looks aweful" Feb 04 19:57:53 i love those.. Feb 04 19:58:15 TacticalJoke, other users have, but not the dev Feb 04 19:58:29 and users dont do it Feb 04 19:59:04 Oh, I see. Didn't realise there were thumb buttons. Feb 04 19:59:35 Gawd, the Google Play site sucks on desktop. Feb 04 19:59:45 It's like the product of an edgy art student. Feb 04 20:00:11 Nobody needs to see more than two comments at a time, right... Feb 04 20:08:57 Dude, if you haven’t made up your mind after seeing two comments, then you’re just not going to buy the app Feb 04 20:09:13 Hello Feb 04 20:09:23 there are people reading the reviews before buying? Feb 04 20:09:34 I'm trying to select my SDK path in Android Studio but when I choose my SDK folder it still throws the error upon building: "SDK Location not found. Define location ...." Feb 04 20:09:48 I select the folder that contains my platform-tools folder and all of taht - is that not supposed to be the correct path for the sdk? Feb 04 20:09:53 only indecisive little twerps who can’t seem to decide for themselves Feb 04 20:10:04 danijoo: i only read reviews if it's got a crappy rating Feb 04 20:10:33 i dont click it if it got crappy rating :p Feb 04 20:10:42 Bantalon: It wants the root directory. Feb 04 20:10:57 the thing with everything Feb 04 20:11:20 is that not the folder that contains platform-tools/ and add-ons/ build-tools/ etc? Feb 04 20:11:48 it is Feb 04 20:12:02 :/ Feb 04 20:12:03 still refusing Feb 04 20:12:41 does anyone know of any (free) forum/chat/etc where people would be happy to comment on how to improve a play store listing? Feb 04 20:12:57 do I have to speicfy it elsewhere besides File -> Project Structure? Feb 04 20:14:04 Settings > Appearance & Behavior (lol wat) > System Settings > Android SDK. Feb 04 20:14:37 correct path in there Feb 04 20:14:38 :@ Feb 04 20:14:47 or you could set ANDROID_HOME variable and be done.. Feb 04 20:14:55 are you sure you have the correct stuff inside those folders? Feb 04 20:14:57 android studio will find your sdk then Feb 04 20:15:05 > SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable. Feb 04 20:15:09 and every other program relyinh on it too Feb 04 20:15:22 alright i'll try the variable Feb 04 20:15:26 like, does platform-tools have the proper stuff? Feb 04 20:15:29 yeah it's as should s73v3r Feb 04 20:15:33 and is there a space in that path? Feb 04 20:29:12 how do you see your android sdk version for gradle? Feb 04 20:29:34 it was the local.properties file iwas missing in my project folder it seemed s73v3r Feb 04 20:29:37 thanks a lot though Feb 04 20:29:45 now it Feb 04 20:31:11 success! Feb 04 20:31:39 android sdk has no version Feb 04 20:31:45 the loaded elements have Feb 04 20:31:54 ie build tools Feb 04 20:32:23 is there a way to get a stacktrace of an unhandled exception? Feb 04 20:32:33 i'm trying to debug an app but all i see related to a crash in logcat is D/AndroidRuntime: Shutting down VM Feb 04 20:32:40 dcope, if its not handled, you get it shown in logcat Feb 04 20:33:07 dcope, try to remove all filters. maybe its in another process Feb 04 20:33:15 danijoo: hrm, i'm not seeing anything in logcat even when set to verbose Feb 04 20:33:16 AS filters those out Feb 04 20:33:31 unset the filter for the application package Feb 04 20:33:36 and No Filters Feb 04 20:35:22 dcope: Is it a JVM exception at all? Maybe it was a SIGSEGV or something. Feb 04 20:35:31 i'm thinking it's an ANR actually Feb 04 20:35:32 hrm Feb 04 20:35:40 What are the symptoms of the crash? Feb 04 21:24:49 Okay guys remember about me having UnsuppotedOperationExecption when I call ArrayList#add on an array? Feb 04 21:25:19 I did Arrays.asList(myArray) and passed it to the constructor of the ArrayList, same thing, isn't a List mutable? Feb 04 21:25:53 Arrays.asList is not the same as an ArrayList Feb 04 21:26:04 Why? Feb 04 21:26:06 it's just a wrapper around your original array pasted in Feb 04 21:26:14 I don't know why, but that's what it is. Feb 04 21:26:18 ayyy Feb 04 21:26:24 Wait no, I meant ArrayAdapter Feb 04 21:26:26 And the List interface doesn't require mutability. Feb 04 21:26:28 Not ArrayList, sorry Feb 04 21:28:08 Javadoc on List#add says "optional operation". Feb 04 21:29:30 hm Feb 04 21:32:51 Arrays.asList is not mutable Feb 04 21:32:54 read documentation Feb 04 21:33:21 http://developer.android.com/reference/java/util/Arrays.html#asList(T...) Feb 04 21:33:29 Awwww Feb 04 21:33:40 well, it's not fully mutable Feb 04 21:35:17 i’m trying to run some code that uses google play libraries on API 17 but the system images that are available don’t have the Google APIs .. can I build a system image that for API 17 that contains the Google APIs. I can’t find much documentation if this is possible or how to do it. Feb 04 21:35:26 use a device Feb 04 21:35:50 I would but I don’t have this device Feb 04 21:36:02 The standalone SDK manager I have shows Google APIs for API 17 Feb 04 21:36:36 it’s labeled differently than the newer ones, it’s just called “Google APIs” Feb 04 21:36:47 s73v3r, not system image Feb 04 21:36:53 different Feb 04 21:36:59 hmm but I don’t see that system image when trying to create the AVD Feb 04 21:37:02 yup. nevermind Feb 04 21:37:18 and I thought google apis now is all in play services? Feb 04 21:37:47 Oh man how much I hate the differences in behavior in the android api across devices e.e Feb 04 21:38:00 difference in behavior? not that much Feb 04 21:38:11 difference in api, a lot Feb 04 21:39:05 I just had one of those. Believe me they exist. Feb 04 21:39:06 goddamn it Feb 04 21:39:29 why does every class in java has at least a couple hundred of lines Feb 04 21:39:39 because it's java Feb 04 21:39:46 i know Feb 04 21:39:49 it's tiresome Feb 04 21:39:55 Well. Feb 04 21:40:01 I heard JS with Ember is good. Feb 04 21:40:02 Go do that. Feb 04 21:40:03 write smaller classes. problem soved Feb 04 21:40:06 /shoo Feb 04 21:40:16 you have to write several hundred lines just for import statements alone :P Feb 04 21:40:18 Mavrik no way angular2 ftw ! Feb 04 21:40:47 actually express is pretty hairy Feb 04 21:41:02 *shrug* Don't care :) Feb 04 21:41:06 i know :D Feb 04 21:41:08 smaller classes require fewer imports. plus imports are easily collapsed and ignored. methods, while they can be collapsed, need to be looked at more often Feb 04 21:41:12 s73v3r ProductModelPart1 ProductModelPart2 ProductModelPart3 Feb 04 21:41:14 yehhhhh no. Feb 04 21:41:29 AbstractModelFactory Feb 04 21:41:33 why in the hell would you even think that’s what I’m suggesting? Feb 04 21:41:36 it was just an example Feb 04 21:41:55 lol Feb 04 21:41:56 c'mon java is verbose Feb 04 21:42:13 it is, but there are things that you can do to avoid some of the verbosity Feb 04 21:42:26 casadogg, that's the worst example you could give lol sorry. Doing it properly there is no way you do APart1, Apart2... etc Feb 04 21:42:28 use java8 with retrolambda is about the only real way Feb 04 21:43:04 IntelliJ stuff collapses code to java8 levels anyway so *shrug* Feb 04 21:43:13 But it's obvious it's not Java that's the issue there ;) Feb 04 21:43:14 s73v3r the class is only about a couple hundred lines exactly because i avoid verbosity Feb 04 21:43:54 I never care too much for ide code collapsing Feb 04 21:43:58 it feels awkward when editing Feb 04 21:44:01 Mavrik implying implications Feb 04 21:44:06 intellij keeps expanding it at the wrong place Feb 04 21:44:09 so where I type gets fucked up Feb 04 21:44:12 collapsing stuff doesn't mean said stuff didn't had to be written lol Feb 04 21:44:28 i'm not complaining that i can't look at a file with hundreds of lines Feb 04 21:44:58 when I want to add a line or remove a line from the collapsed text, I have to expand it, or it puts it in the wrong place Feb 04 21:45:28 pfn, true, RetroL does have a few of its own annoyances though. Feb 04 21:45:48 possibly, I don't really use retrolambda either Feb 04 21:46:05 I only integrate it into my build, but don't use it Feb 04 21:46:22 * pfn should probably try to factor it out into a separate plugin Feb 04 22:06:38 does jetbrains list anywhere, what versions of the google gradle-plugin it works with ? Feb 04 22:06:50 i mean, their plugin working with google's plugin Feb 04 22:07:30 It's plugins all the way down. Feb 04 22:08:46 what's to list, use 1.5.1 with their plugin Feb 04 22:08:56 or was it 1.5.0 Feb 04 22:10:03 for example does it work with gradle-plugin 2.0 Feb 04 22:10:48 try it Feb 04 22:10:54 it probably builds, just won't instant run Feb 04 22:17:24 Is there any way to get appt to output the filename / hopefully line numbers when it encounters resource errors during a build? Feb 04 22:17:41 it does Feb 04 22:18:37 perhaps gradle or something is eating the filenames Feb 04 22:27:50 hello there Feb 04 22:28:32 does anyone here? Feb 04 22:35:40 I do here Feb 04 22:38:01 i don’t here, but I do there Feb 04 22:40:03 I don't always do here, but when I do, I don't Feb 04 23:14:59 anyone have any advice on doing Android for a startup vs a larger more established company? I've always worked for startups and will have to be making a choice between another one or a larger company soon. Feb 04 23:15:28 I want to convenient way to swtich between computers. So video, usb, and sound Feb 04 23:15:48 I have 3 machines. Personal laptop, personal desktop, and work laptop Feb 04 23:15:59 RustySha1kleford: Use a KVM? Feb 04 23:16:11 oh crap, this isn't ##hardware Feb 04 23:16:38 g1bbs: that works maybe. I was also thinking about a receiver of some kind Feb 04 23:17:18 what would be super cool is independant audio/video. Play music from my phone through the speakers without affecting anything else Feb 04 23:18:52 RustySha1kleford: Also FYI - weird channel to ask that in :P Feb 04 23:19:10 this channel? Feb 04 23:19:31 ahaha I meant to ask in ##hardware but you guys probably have cool battlestations too Feb 04 23:20:55 RustySha1kleford: naw those damn iOS guys have all the money for that. We lowly android devs just have duct taped PCs from the 90s Feb 04 23:22:01 hah my 5 year old desktop still kicks some ass Feb 04 23:22:16 built it myself, no duct tape required Feb 04 23:22:50 My current "kvm" consists of an hdmi cord going to my TV (aka monitor) and a usb dock Feb 04 23:23:03 I have to manually plug in two cords Feb 04 23:23:14 like a peasant Feb 04 23:23:56 RustySha1kleford: You might just consider paying someone to do that. That's probably the most economical option Feb 04 23:24:35 g1bbs: bug companies == more red tape and meetings etc YMMV etc etc depending on the roll Feb 04 23:24:38 role Feb 04 23:24:41 9 Feb 04 23:25:05 luckily I don't have to sit in for most meetings Feb 04 23:25:17 but I hear them. It sounds like an extraordinary waste of time Feb 04 23:25:24 :D Feb 04 23:25:58 Business Admins lol. I think a good deal of what they do could be replaced by email Feb 04 23:26:01 TheBunnyZOS: Stability seems like a winning point but maybe it's just an illusion since no one is really safe from layoffs Feb 04 23:26:16 a big company likely has better benefits too Feb 04 23:26:34 and if you're looking for a job, a recognizeable brand gives you more credibility Feb 04 23:27:13 RustySha1kleford: yeah my current trackrecord of meh startups doesn't really grab attention lol Feb 04 23:27:36 RustySha1kleford: well actually it does because I happen to live in a city where Android devs are scarce so I get calls anyway but that's beside the point Feb 04 23:27:40 yeah its kinda dumb. I bet it doesn't even matter if its a tech related company Feb 04 23:27:52 want to run local unit tests via gradle Feb 04 23:27:56 "Oh, I see you worked at Coca Cola. Very impressive..." Feb 04 23:27:57 And doing some circle CI integration Feb 04 23:28:31 RustySha1kleford: Ya I mean the place I'm considering is a big car company so they are not really "tech" as you would normally think about it Feb 04 23:28:39 Is there a gradle interface that produces a junit style output for circle CI that corresponds to what we see in AS when just doing vanilla right-click -> run Feb 04 23:28:40 ? Feb 04 23:31:44 g1bbs: pluses, possibly stability, maybe better pay, possibly more relaxing schedules… actually run from any large company thats constantly in panic mode. But really I think for start ups these days its going to depend on where they are. Feb 04 23:32:17 Start ups I worked for back in 1998 paid well and have health care and 401k etc Feb 04 23:32:56 my pc is about 7 years old, but it's been upgraded several times Feb 04 23:33:05 I was nervous that this place would be in constant panic mode Feb 04 23:33:09 started off as an old i7 920 from microcenter Feb 04 23:33:10 its chill man. so chill Feb 04 23:33:29 then I updated to some i7 3771 or whatever, and 1tb of ssd Feb 04 23:33:32 I left the office at 3:30, beat the traffic home Feb 04 23:33:34 and 32gb of ram Feb 04 23:33:35 Need map from right-click run tests to gradlew for local unit tests Feb 04 23:33:35 huehuehue Feb 04 23:33:47 finished my work at home Feb 04 23:36:51 I really odn't understand elevation, half the time I set it, I never get shadows Feb 04 23:37:34 im with you on that.. Feb 04 23:37:35 gradlew test or gradlew testDebugUnitTest just spits out success an no information about specific tests. Feb 04 23:38:15 can you save a pane layout? er, not sure if pane is the right word Feb 04 23:38:41 there are little tabs on the bottom that say TODO, Android, Debug, Run, etc Feb 04 23:38:49 and on the left and right Feb 04 23:41:05 Okay, got the test reports to generate, but they are HTML. Guess that's good enough to find out about the errors on Circle CI Feb 05 00:57:00 how to get gradle to spit out xml from junit? Feb 05 00:58:28 is there a backwards compatible way to format a phone number? Feb 05 00:58:47 straight digits? Feb 05 00:59:10 not necessarily, but that part is easy to fix Feb 05 01:03:04 no, that’s what I was suggesting Feb 05 01:03:57 I’m assuming this is for storage, and not for display Feb 05 01:06:34 no this is for display actually, this api is giving me ugly numbers I guess Feb 05 01:07:21 I can fix it with regex capture groups easily... it should only be US & Canadian numbers, but there is a method in API 21 only (I need to support 17+ still) and a deprecated method for under 21 Feb 05 01:09:07 I was thinking to make my own "compat" wrapper for it to call the appropriate method Feb 05 02:07:58 Is there a way to receive AppCompat toolbar clicks? I want to scroll to the top of my listview when user double-taps the toolbar Feb 05 02:14:52 toolbar is just a view so yea Feb 05 02:18:47 anyone on the MVP bandwagon yet? I don't really like my solution for dealing with nested views like TabLayout. Feb 05 02:19:52 I'm using a single presenter for the tabbedLayout and each of the child views but that gets messy quickly Feb 05 02:19:59 and the presenter gets pretty bloated Feb 05 02:48:03 Hey Feb 05 02:48:16 I'm trying to access a file in internal storage but when I pass the path I get this error Feb 05 02:48:16 02-04 18:47:45.462 7943-7972/com.genocide.fbrowser I/OpenGLRenderer: Initialized EGL, version 1.4 Feb 05 02:48:16 02-04 18:47:52.420 7943-7943/com.genocide.fbrowser I/System.out: Unable to open file '/document/primary:test.csv' Feb 05 02:48:33 saying file exception not found Feb 05 02:49:56 the code works just fine when I compile for my computer with a local file or passing the directory Feb 05 02:50:00 how does this work with android? **** ENDING LOGGING AT Fri Feb 05 02:59:59 2016