**** BEGIN LOGGING AT Sun Jan 17 02:59:58 2016 Jan 17 03:10:15 depends on your requirements Jan 17 03:21:12 I would like to show a notification with a progress bar, like in google play app Jan 17 03:21:25 pfn ^ Jan 17 03:21:35 For now I'm not using download manager Jan 17 03:26:08 if that's your only requirement, there is no reason to use anything but download manager Jan 17 04:02:54 How can I get a file browser on the emulator that came with Android Studio Jan 17 04:02:55 ? Jan 17 04:03:48 hi there, does android SDK alone package include build tools and Jan 17 04:03:48 platform tools ? Jan 17 04:11:21 Found the DDMS view in Adnroid studio, where is the external storage at? :/ Jan 17 05:23:07 ok in Android Studio, say you have some uncommited changed and want to switch branches. You get that little popup that offers to stash your changed, and then unstash them when you return. So I clicked "Smart Checkout" and now I get a popup saying "Uncommited changed that were saved before checkout have conflicts with files from xxxxxx. Why is it me Jan 17 05:23:07 rging? Jan 17 05:23:29 changes* Jan 17 05:44:41 Anyone use Kotlin for their projects? Jan 17 05:44:47 Ive never used it before, but just cloned a project off gihub using it. Jan 17 05:44:55 Supposedly this app requires some permissions, but they are not listed in the AndroidManifest.xml. Jan 17 05:44:57 Does Kotlin allow some other mechanism to add permissions? Jan 17 05:51:43 You know Kotlin is making headway when people clone some random Android project and it's written i Kotlin... Jan 17 05:51:58 zzxx: and the answer to your question, yes, I do Jan 17 05:52:17 There's nothing special about Kotlin and permissions though Jan 17 05:52:59 CedricBeust_: Thanks! Jan 17 05:53:32 Whats the big deal with kotlin anyway? just another language/syntax to write the same stuff correct? Jan 17 05:53:51 No, it's way more than that. Jan 17 05:54:02 Read up on it, then come back, we can have a chat then :) Jan 17 05:54:38 CedricBeust_: No prob. I probably wont at the moment as I am into other stuff, but perhaps later :) Jan 17 05:55:05 zzxx: I suspect like many others, once you start writing Kotlin code, you won't want to go back to Java Jan 17 05:56:05 any guru of status bar drawing errors around? Jan 17 05:56:25 u cant be any geek on irc Jan 17 05:56:28 https://groups.google.com/forum/?fromgroups=#!topic/android-platform/EEUgTOvV8Lg Jan 17 05:56:33 b4b: https://groups.google.com/forum/?fromgroups=#!topic/android-platform/EEUgTOvV8Lg Jan 17 05:56:34 gotta be handle wit tha steel earn ya keep Jan 17 05:56:34 b4b: ? Jan 17 05:57:22 This kinda looked like English Jan 17 05:57:37 CedricBeust_: can you have a look at my post please? =) Jan 17 05:57:42 nastiest drawing error ever =( Jan 17 05:58:00 b4b had ta regulate Jan 17 05:58:04 BW^- did you look into attr:fitsSystemWindows yet? Jan 17 05:58:57 lol at the photograph of your screen Jan 17 05:59:33 im tweaking into a whole new era g funk step ta dis i dare ya Jan 17 05:59:47 funked out wit a gangsta twist Jan 17 06:00:24 b4b r u gangsta? Jan 17 06:00:56 homegirl dont get ya face slapped Jan 17 06:08:02 autocomplete in AS 1.5.1 XMLs views is so busted ... Jan 17 06:08:08 g00s: yes!! Jan 17 06:08:14 g00s: i mean, i don't se ehow it could help??????? Jan 17 06:08:35 BW^- /did you try it/ Jan 17 06:17:00 g00s: noo but why would I? Jan 17 06:17:12 g00s: so what should I set it to, "true"?? Jan 17 06:18:05 i give up Jan 17 06:18:11 good luck BW^- Jan 17 06:21:46 hee Jan 17 06:23:04 hi, I installed android studio, I am getting the following error when creating a virtual device "Name: Nexus_5_API_23,CPU/ABI: Google APIs Intel Atom (x86_64),Path: /Users/amigojapan/.android/avd/Nexus_5_API_23.avd,Error: Unknown target 'Google Inc.:Google APIs:23' in /Users/amigojapan/.android/avd/Nexus_5_API_23.ini"" any idea what is wrong? Jan 17 06:25:40 g00s: haha. ok i'll try it. Jan 17 06:25:55 g00s: will let you know Jan 17 06:28:45 i wonder what Edward Tufte would say about these circular progress bars Jan 17 06:40:25 hi Jan 17 06:40:53 i just want to ask for help as I had problems with debug bridge not working on my android studio Jan 17 06:41:06 I am using ubuntu linux 14.04LTS Jan 17 06:41:53 just want to ask if this path in my ~/.profile will work once I run it Jan 17 06:41:55 http://paste.ubuntu.com/14542595/ Jan 17 06:42:36 easyOnMe #ubuntu can help you with your .profile Jan 17 06:43:05 g00s: ok then later I will ask about the debug bridge not working Jan 17 06:44:10 Haven't done the very first thing I told you to do, easyOnMe Jan 17 06:44:14 .... Jan 17 06:44:22 g00s: should I put the attr:fitsSystemWindows inside the style or in the AndroidManifest or in its ?? Jan 17 06:44:30 pfn: I slept last night man I got tired Jan 17 06:44:33 now I am back Jan 17 06:45:00 I am still figuring out the ~/.profile file that alexfu taught me before I fell asleep Jan 17 06:45:00 BW^- did you google it, it goes on a view Jan 17 06:45:04 you guys ! Jan 17 06:46:18 ok, I solved my problem Jan 17 06:48:52 sorry to ask this again but for the past 5 mins Jan 17 06:48:59 I have not receive any reply Jan 17 06:49:10 sorry its not here Jan 17 06:49:37 g00s: I don't have any view in my splash?? Jan 17 06:51:42 if you don't even know how to run a command on your computer, you should really go for learning the basics first Jan 17 06:51:42 pfn: http://paste.ubuntu.com/14542595/ that is what is inside my ~/.profile I tried running it and then restarting my android studio but the problem about the adb keeps popping up Jan 17 06:51:47 g00s threw up his hands and went home :p Jan 17 06:52:27 pfn: sorry I am still a college student and I am force both to complete my thesis and learn all these technologies Jan 17 06:52:44 thing was this was what I got when thesis papers were drawn lots Jan 17 06:52:56 I got the package for doing android on linux ubuntu Jan 17 06:53:02 hence I am here Jan 17 06:53:16 just need some help that's all Jan 17 06:53:27 yeah, no Jan 17 06:53:44 pfn: what do you mean Jan 17 06:53:45 ask your advisor Jan 17 06:54:37 he is out of town for conference other student assistants are not around either so I am left on my own lucky I started my project this early at least I get to know glitches Jan 17 06:54:49 at least I have more time to work on these setting up stuff Jan 17 06:55:24 pfn: do you know of any forum other than this high and mighty channel Jan 17 06:55:41 refuse to do it ... turn in a paper proclaiming he'll never pry Eclipse out of your dead hands Jan 17 06:57:01 capella: can I ask for help from you Jan 17 07:01:04 suckered Jan 17 07:04:21 this channel isn't really targeted to complete beginners ... the header banner should mention that Jan 17 07:06:04 capella: any ideas where we can go for lowly beginners like us Jan 17 07:07:52 Beginner questions are fine (as long as they are withing the charter of this group, i.e. development questions) Jan 17 07:08:29 CedricBeust_: questions like those debug bridge not working does it fall here? Jan 17 07:08:47 I just got problem with adb I just do not know where else to go Jan 17 07:09:05 I tried stackoverflow and tried their suggestions didn't work either Jan 17 07:09:18 so I was thinking probably visiting here might help Jan 17 07:10:46 state question, be specific ... explain what you're trying, how it's failing, don't chatter too much, google extensively first, blah blah blah Jan 17 07:14:54 http://geoff.greer.fm/2012/05/19/programmer-irc-etiquette/ Jan 17 07:17:21 capella: this is my issue: I got problem with my android studio because it keeps on popping a message that adb is not running and therefore debug not bridge not working. Jan 17 07:18:12 Things done so far: I changed the ~/.profile on my ubuntu linux 14.04LTS to add the following line: export PATH=$PATH:~/Android/Sdk/platform-tools/ Jan 17 07:18:47 after saving the file I run the command source ~/.profile and restarted my android studio the problem still persist Jan 17 07:19:04 And? You have a device attached? It's in USB debugging mode? |adb devices| shows there's a connection? Jan 17 07:19:44 * capella doesn't understand -> |I run the command source ~/.profile| Jan 17 07:20:33 http://www.howtogeek.com/125769/how-to-install-and-use-abd-the-android-debug-bridge-utility/ Jan 17 07:21:40 pfn: "suckered" :p Jan 17 07:26:15 capella: what is suckered Jan 17 07:30:30 capella: I still got this form the linux terminal Jan 17 07:30:36 #com.android.ddmlib - Unable to detect adb version, adb output: /home/erwin/Android/Sdk/platform-tools/adb: 1: /home/erwin/Android/Sdk/platform-tools/adb: Syntax error: ")" unexpected Jan 17 07:30:55 my device has been connected to my laptop already via usb Jan 17 07:45:43 pfn: http://imgur.com/zxgN67w Jan 17 07:46:09 pfn: you asked me to call adb from the terminal Jan 17 07:51:24 none of my 3 android devices are being displayed when I type adb devices in cmd... what should I do? Jan 17 07:51:46 developer options and usb debugging is enabled in all of them Jan 17 07:55:41 anyone? Jan 17 08:06:48 Nick007: find the USB drivers for those specific models Jan 17 08:07:26 I already did for all of them... say I'm with the OnePlus X right now Jan 17 08:07:28 and make sure developer options is enabled with adb debugging enabled in the devices settings Jan 17 08:07:35 they provide the drivers within the device itself Jan 17 08:08:16 some devices need you to get the USB drivers manually Jan 17 08:09:11 I tried that with my samsung galaxy tab Jan 17 08:09:16 doesn't work Jan 17 09:40:18 i am trying to make a network call after connecting to a captive portal with no luck Jan 17 10:28:45 Hey folks, can anyone please help me understanding this? I’m looking at a java file and I want to write/log the values of a variable into a file, maybe /tmp/fifo. The variable I want to be logged is 'dy' in line 252. Which commands can/should I use in .java files to write/log constantly to some file? Or can I even call e.g. 'netcat' from should a file, so I send the variables’ value over network? Jan 17 10:29:44 Oh, here’s the file … https://github.com/CyanogenMod/android_frameworks_base/blob/cm-13.0/core/java/com/android/internal/widget/PointerLocationView.java Jan 17 11:15:52 Hi. Some small question. I'm playing around with dissasembling an app that I have, cause I just want to know the API calls it does. Now I need some help with it. I decoded it with ApkTool, and I have the smalli files. But now, how could I add some code that prints to debug for example, so I can trace the calls Jan 17 11:15:58 or even log the calls into a file Jan 17 11:38:46 Where can I access the developer options on my android system? Is it like a binary file? Or are all the developer options single binary files? Jan 17 11:40:00 And1: do you mean how do you show the developers options in the settings? or where they are stored Jan 17 11:40:06 i my android app , i want to have a FAB , that can launch a dialog like this , but i also want that FAB to move upward along with the dialog opening from bottom , how can i achieve this ?? do you thing its UX way correct Jan 17 11:40:22 https://raw.githubusercontent.com/orhanobut/dialogplus/master/art/dialogplus.gif Jan 17 11:41:12 And1: you have to enable it by going into settings -> about phone -> and tapping Build number 7 times Jan 17 11:42:05 And1: and next time you go into settings you will see Developer Options Jan 17 11:42:06 jackhum: apply a translation to your fab as part of your animation for your dialog panel? Jan 17 11:42:47 Napalm : were you able to understand what i am trying to achieve ? Jan 17 11:42:50 Hey guys.... If I have nested returns in my if statements inside my function.. why does it sometimes not return but instead carries on until the end of the function? Example -> http://pastebin.com/M4xEWcsC Jan 17 11:42:58 Napalm: sorry for my bad english Jan 17 11:43:44 jackhum: you mean you want your fab to show above the popup dialog panel Jan 17 11:43:52 like it does for snackbars? Jan 17 11:45:00 Napalm: yes , i want as soon as the user click my search FAB , the dialog from the bottom appears moving the FAB to top of it , Jan 17 11:45:20 Napalm: do you think it will be bad in UX ? Jan 17 11:45:22 jackhum: do you have a coordinator layout? Jan 17 11:45:35 Napalm: totally a newb Jan 17 11:45:44 Napalm: whats coordinator layout? Jan 17 11:45:54 just animate the fab Jan 17 11:47:00 myFab.animate().translateY(-heightOfDialog).setDuration(durationOfDialogAnimation).start(); Jan 17 11:47:07 jackhum: ^ Jan 17 11:47:57 Napalm: i have two option , one way is that as soon , user clicks FAB , a dialog will appear , which has search button of own , or other way is the way i told you , i will move that same FAB to top. which one do you think is better UX approach? Jan 17 11:49:35 jackhum: read the spec and work it out.. https://www.google.com/design/spec/components/buttons-floating-action-button.html Jan 17 11:54:31 Does anyone have a problem with the Android Emulator Jan 17 11:54:39 Where it gets stuck in two finger click mode? Jan 17 11:54:49 Wait nvm, solved it Jan 17 11:56:13 Unrelated, I'm using coordinator layout but when I collapse the toolbar I don't get the dark status bar. Jan 17 11:56:18 It stays as colorPrimary Jan 17 11:56:22 If I have nested returns in my if statements inside my function.. why does it sometimes not return but instead carries on until the end of the function? Example -> http://pastebin.com/M4xEWcsC Jan 17 12:01:55 echo! Jan 17 12:17:24 cart_man, the debugger is buggy Jan 17 12:17:48 ktwo: Really? Jan 17 12:17:51 https://code.google.com/p/android/issues/detail?id=34193 Jan 17 12:18:50 probably it will always jump to return 0 but the result is correct, so nothing to worry - just annoying Jan 17 12:19:01 ktwo: Ok but the code seems to respond to the returned 0 though...So if that was the case then the code would have responded to the returned 1 isntead? Jan 17 12:19:47 adding objects into arraylist overrite the previous object http://pastebin.com/s4ByeGuJ Jan 17 12:19:58 why its beaving so weired Jan 17 12:20:22 cart_man, are you sure? did you try to check the returned value in the method which is calling it? Jan 17 12:20:31 it should return 1 Jan 17 12:20:53 ktwo: Well the if statement that handles that returns fires the 0 Jan 17 12:20:56 lest me just make 100% sure Jan 17 12:28:54 ktwo: You are right! Jan 17 12:29:09 Im just not sure why my code is acting out as if the code returned 0 Jan 17 12:30:02 as said the problem is in the debugger^^ if you put a log just before return 0 it wont be called Jan 17 12:30:10 only the breakpoint will go there Jan 17 12:39:49 How does one quit a Dialog from within its own code? Jan 17 12:39:57 this.finish() does not seem to work Jan 17 12:42:00 Has someone good examples for a fade in fade out of a simple textview? Jan 17 12:42:54 I tried with .animate() and setListener with onAnimationEnd, but I'm now in an endless loop Jan 17 12:46:43 sk8dev_: the listeners remain after the animation is complete.. you'll want to remove them in onAnimationEnd Jan 17 12:47:08 cart_man, dismiss() Jan 17 12:48:08 ktwo: Thanks :0 Jan 17 12:48:10 :)` Jan 17 12:49:32 oh, hey Napalm Jan 17 12:50:00 hey Jan 17 12:53:27 sk8dev_, in my case i just used .startAnimation(x) and .clearAnimation() Jan 17 12:57:24 thanks Napalm, ktwo. I'll try both ways :) Jan 17 12:58:18 ktwo: startAnimation and clearAnimation are for the old animation framework.. you should probably stop using them. Jan 17 13:07:53 how can i call an async thread every so often ( like every 5 minutes) Jan 17 13:08:26 Napalm, how can I remove the listener? Jan 17 13:08:55 sk8dev_: set it to null Jan 17 13:08:59 thornekey: AlarmManager Jan 17 13:09:10 thanks Napalm :)) ill look into that Jan 17 13:09:12 thornekey: thats if your app isnt active Jan 17 13:09:33 oh, i meant whilst the user is on it Jan 17 13:09:55 it will work either way.. but if you only want to do it whilst your own activity is active.. then its just easier to delay post a message to a handler Jan 17 13:10:21 ohk Jan 17 13:11:38 thornekey Jan 17 13:11:39 https://developer.android.com/reference/android/os/Handler.html#postDelayed(java.lang.Runnable, long) Jan 17 13:14:14 ah, thanks :) Jan 17 13:14:43 Napalm, thanks Jan 17 13:32:17 Napalm, I fixed it with MyTextView.animate().setListener(null) . thanks :) Jan 17 13:34:51 Napalm, why arent they deprecated then? Jan 17 13:36:53 ktwo: they probably will deprecate them once the majority of people use honeycomb+ Jan 17 13:37:28 ktwo: they have already made a compat for new the system to help get people off the old one Jan 17 13:37:46 ktwo: https://developer.android.com/reference/android/support/v4/view/ViewCompat.html#animate(android.view.View) Jan 17 13:44:38 does Gson().fromJson(..., ..) want a string and a class? Jan 17 13:56:07 Napalm: Where they are stored … Jan 17 13:56:30 they are stored as part of the system settings sqlite database Jan 17 13:57:54 Napalm: Uh. I’ve no idea of sqlite. So if I change a file, what would I need to replace on my running Android device? https://github.com/CyanogenMod/android_frameworks_base/blob/cm-13.0/core/java/com/android/internal/widget/PointerLocationView.java Jan 17 13:58:38 Napalm: I want to modify this file, compile Android/CyanogenMod and replace the sqlite database on my phone with the one from the newly built Android. Jan 17 14:01:17 Hi all, I have a question about services on android. Specifically how they should be sub-classed, what code I should put in the onCreate and onBind and onStartCommand methods etc. I have it question posted here: http://stackoverflow.com/questions/34838952/unsure-how-to-organise-services. Thanks in advance Jan 17 14:19:53 Anyone else having problems with Android Studio 1.5? It keeps stop taking my input and forcing a restart. Or autocomplete stops working. Don't know if it has something to do with that I use multiple monitors or have the Android Monitor with logcat in a "detached window" in floating mode. Anyway it's driving me crazy would love some tips on what I can do to fix it. Jan 17 14:21:51 jitan_: never had that problem.. perhaps check your plugins.. try disabling some.. they might be screwing with things Jan 17 14:22:21 yeah I just did this and disabled all but a few, still.. I'll do the rest of them I guess just to see Jan 17 14:25:48 If that's on Linux, there's the well-known IBus issue, http://tools.android.com/knownissues/ibus -- though IIRC there's a warning about that now if Android Studio thinks that might be the case. Jan 17 14:26:04 I'm on OSX Jan 17 14:26:11 Then it's not that. Jan 17 14:26:41 ok.. I remember reading about some issues with IntelliJ or Android Studio and multiple monitors / windows.. can't find it anymore though Jan 17 14:34:55 hello all, how would I hide android studio's title bar on OSX ? Jan 17 14:35:05 it's a waste of screen estate for me Jan 17 14:36:35 yenoh, did u tried via View->Enter Fullscreen? Jan 17 14:36:45 the light grayish bar on top of this bar, I mean http://prntscr.com/9r8ggk Jan 17 14:37:15 Do you mean the file tabs? Jan 17 14:37:17 sk8dev_: I wouldn't want to go full screen because I would like to have android studio and terminal side-by-side Jan 17 14:37:33 rubenwardy: no, the title bar with the three button close/minimize/fullscreen Jan 17 14:38:27 sk8dev_: OSX's fullscreen'ed side-by-side is not flexible, I usually set android studio 3/5 screen width and terminal 2/5 screen width Jan 17 14:39:46 yenoh, okay. I'm only running with debian. sorry, I'm out Jan 17 14:39:56 sk8dev_: thanks Jan 17 14:40:02 Same :P Jan 17 14:40:11 rubenwardy: thanks! :D Jan 17 14:49:32 Napalm: Do you know the path to this sqlite database? Jan 17 14:56:41 yenoh, you know you can run terminal inside of studio, right? Jan 17 14:57:01 pfn: yes I do, but I prefer dedicated terminal app Jan 17 14:57:12 pfn: right now I'm on IRC through terminal :D Jan 17 14:58:00 don't irc and code side by side, it's a distraction Jan 17 14:58:21 so true Jan 17 14:58:29 pfn: irc is just one tab of the terminal Jan 17 14:59:05 I have to use ssh, adb and other things Jan 17 14:59:40 * pfn shrugs Jan 17 14:59:52 what you want to do to studio isn't possible Jan 17 15:00:22 and that's a mac thing, for that matter Jan 17 15:05:12 I saw some apps running without being fullscreen yet without that title bar Jan 17 15:05:17 so I think there should be some way Jan 17 15:05:23 pfn: thanks anyway! :D Jan 17 15:11:40 I have a simple app and want to sync some data from a server about twice a day. Can I tell the AlarmManager to schedule my sync-function once a day but only as soon as a internet connection is available? Jan 17 15:12:29 oo_miguel: Shouldn’t the JobScheduler be ideal for this case? Jan 17 15:18:52 justJanne: oh. I never heard of this one. thank you Jan 17 15:19:34 justJanne: Ah. its API21 or higher :P. I need api10 support ;) Jan 17 15:22:09 no one needs api 10 support anymore Jan 17 15:22:29 quite a lot do. Jan 17 15:22:31 unless it's the only device you own Jan 17 15:22:46 One of the most sold devices this year in DE was still with Gingerbread Jan 17 15:22:54 What about not excluding potential markets? Jan 17 15:22:54 Samsung still produces and sells devices with it Jan 17 15:23:07 *in western europe even(!)* Jan 17 15:23:33 http://developer.android.com/about/dashboards/index.html Jan 17 15:23:46 rubenwardy, you add potential markets when you need to grow Jan 17 15:23:54 Google play services can not be updated or used on most of these devices anymore Jan 17 15:23:56 you don't include everything up front Jan 17 15:24:07 they don’t have enough space in /data for that Jan 17 15:24:22 justJanne, yes, and they're not worth supporting Jan 17 15:24:26 pfn: Eh, better if you don’t have to rewrite your complete app architecture after that Jan 17 15:24:30 ...or do it right first time? Jan 17 15:24:33 ^ Jan 17 15:24:39 it's not right Jan 17 15:24:44 Supporting only 21+ would disclude 67% of active devices Jan 17 15:24:46 So is there anything I can do on API10 to solve my problem? Maybe after alarmManager fires and I find out there is no internet I reschedule the alarm to fire again in a few hours? Or is there some way to ask the system to tell me as soon as the device goes online? Jan 17 15:25:00 but if you think you're making significant value by supporting api 10 go ahead and do do Jan 17 15:25:01 so Jan 17 15:25:03 oo_miguel: You can fire on network connectivity change, yes Jan 17 15:25:12 I guarantee that you do not Jan 17 15:25:47 You can argue you don't need gingerbread, at 3% Jan 17 15:26:05 but once you get above that you start getting lots of the percentage Jan 17 15:26:15 Well, until the recent update that made google play service stop working on gingerbread, it still had 25% a few months ago... Jan 17 15:26:24 pfn: I simply want to support it (own one device with api10 and still some people use it). I am aware that it woulb be easier to take a higher api. Jan 17 15:26:35 as for "doing it right the first time" there's no such thing Jan 17 15:26:45 justJanne, that is patently false Jan 17 15:26:59 pfn: Look at the stats, it’s provably true Jan 17 15:27:03 justJanne, it's been pitifully low for well over a year Jan 17 15:27:11 In this case, there is. Just use the APIs that work in all cases. Otherwise you'd have to rewrite stuff Jan 17 15:27:14 that stats show it false Jan 17 15:27:34 it hasn't had 25% share in 2 yeara Jan 17 15:27:47 2 years is still within the current support cycle even. Jan 17 15:28:17 And, again, those devices with Gingerbread were still sold in 2015 Jan 17 15:28:20 for *who* Jan 17 15:28:26 for a developer? no Jan 17 15:28:33 For a dev: Definitely Jan 17 15:28:34 I choose who I want to support Jan 17 15:28:44 what do you suggest, abandon anything that isn’t from this week? Jan 17 15:28:48 and I choose those who make me money Jan 17 15:29:39 You know, you are exactly the reason why the laws had to be passed that allowed users to break any DRM or licensing system if the software was incompatible with their own device. Jan 17 15:29:51 sure I am Jan 17 15:30:05 it has nothing to do with device ownership at all Jan 17 15:30:19 making weak stretches are the best Jan 17 15:30:28 Eh, no, it’s literally formulated like that. Jan 17 15:31:00 If a game, or app, or piece of software is not compatible with your system, you can decompile and modify it, and redistribute the modifications for the purpose of making a software you have a license to usable. Jan 17 15:31:15 That’s how the ECJ formulated it 2011 Jan 17 15:31:29 anyway, doing it right = dropping old, unnecessary support Jan 17 15:31:37 Anyway, if you want to abandon everyone not being on the latest devices, Jan 17 15:31:38 anything else makes your code pretty shitty Jan 17 15:31:42 No. Jan 17 15:32:13 look at how stuff is implemented in the support libs, there is absolutely no way you can argue that is how you should architect any sane piece of software Jan 17 15:32:18 That’s why you write a wrapper that abstracts the old and new solution under a common abstraction that allows you to emulate the new functionality on the old solution. Jan 17 15:32:31 It's not unnecessary if 67% of devices don't support it. Jan 17 15:32:51 It does depend on who your market audience is though Jan 17 15:33:02 rubenwardy, what does 65% have to do with anything Jan 17 15:33:14 I said nothing about api 21 Jan 17 15:33:18 And if you want your name to be a trademark of quality, supported software, Jan 17 15:33:20 i said drop api 10 Jan 17 15:33:21 You did Jan 17 15:33:28 read again Jan 17 15:33:39 or if you want it to be a sign for people to see shitty software that will stop being supported tomorrow Jan 17 15:33:39 sorry, I did not want to start a flame war api10 vs api21 ;) Jan 17 15:34:09 Doesn't solve the issue. You suggested a API21 functionality, they said they support API10, you said drop API10 - it doesn't solve the original issue Jan 17 15:34:22 So they still have to support old version Jan 17 15:34:31 Just from API 11 or whatever now Jan 17 15:34:38 I like the idea with monitoring the changes on connectivity very much and this will solve my issue probably Jan 17 15:34:46 thank you justJanne Jan 17 15:35:29 I agree that pre-4.0 isn't worth targetting Jan 17 15:36:55 it depends on if you want to reach the general population, just the businessmen, teens and devs, or if you want to reach just the richer nerds. Jan 17 15:37:15 Exactly. Jan 17 15:37:15 depending on what, you’ll need to supports 2.3.7+, 4.0.4+, or 23+ Jan 17 15:39:17 I am a poor nerd myself and have an api10 and am api13!! (market share 0%??) device :P Jan 17 15:39:18 But then again, if you wish to target #0 or #1, you’ll also need to think about design and marketing a lot more. Jan 17 15:40:36 I never suggested api 21 functionality Jan 17 15:40:39 and I have one api21 device for testing Jan 17 15:40:40 learn to read Jan 17 15:41:06 justJanne: Ah. its API21 or higher :P. I need api10 support ;) Jan 17 15:41:06 no one needs api 10 support anymore Jan 17 15:41:08 the one person who suggested api 21 functionality was the one who argued for supporting api 10 Jan 17 15:41:21 rubenwardy, yes, read Jan 17 15:41:34 I said something distinctly unrelated to api 21 Jan 17 15:42:14 You learn to communicate your intent more - that sounds like you are trying to say that "I need api10 support" isn't a valid reason to not use an API21 functionality Jan 17 15:42:27 would there be another solution for my problem if I drop api10 support but want to stay 4.0.4+ compatible? Jan 17 15:42:30 I never said. that Jan 17 15:42:31 But anyway Jan 17 15:42:39 I understand now Jan 17 15:42:50 It was ambiguous, and I misinterpretted Jan 17 15:42:50 I never said 21 the entire time Jan 17 15:43:32 oo_miguel, should consider api 16+ if not 21+, and connectivity intent with alarm manager will do Jan 17 15:43:35 Anyways, let's drop it, sorry for misunderstanding Jan 17 15:44:43 oo_miguel: minSdk = 16 Jan 17 15:44:46 targetSdk = 23 Jan 17 15:44:48 EOT Jan 17 15:45:04 for that matter, for the vast majority of independent developers, the target market is. their self Jan 17 15:45:35 pfn: thanks. and I absolutely agree about the target market ;) Jan 17 15:45:43 there is really little reason to support a version outside of the device they own Jan 17 15:46:04 which is why I uniquely qualified my statement Jan 17 15:49:39 gordon_, everything works well then? Jan 17 15:57:55 pfn: about sdk or protify ? :D Jan 17 15:58:03 restarted AS over 20 times just today while working because autocomplete stops working or just total stop for all input Jan 17 15:58:07 sorry, I'm late at answering on weekends Jan 17 15:58:10 !<3 Jan 17 15:58:12 it works well now! thanks Jan 17 15:58:27 now looking for good choice of libraires for async calls Jan 17 15:58:49 what do you use ? Just futures ? I wanted to make some web socket calls, so maybe okhttp would be nice.. Jan 17 15:58:58 and wrap it with RxScala Jan 17 15:59:15 gordon_, protify in general, and I mostly use futures Jan 17 15:59:32 I only use rx for things that have multiple. results Jan 17 16:00:11 protify works nice Jan 17 16:00:29 thought I prefer to just launch sbt form console and invoke it there Jan 17 16:00:37 works nicely Jan 17 16:00:48 I do it from IntelliJ Jan 17 16:00:50 what about json parsing ? Jan 17 16:00:54 hitting run is nice Jan 17 16:00:57 Argonaut Jan 17 16:01:16 if you want to do functional parsing Jan 17 16:01:22 json4s otherwise Jan 17 16:01:33 seems nice Jan 17 16:03:33 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/FingerprintManager.scala Jan 17 16:03:40 example of using rx Jan 17 16:03:52 https://github.com/pfn/keepshare/blob/master/src/main/scala/com/hanhuy/android/keepshare/PermissionManager.scala Jan 17 16:04:19 and future, they have separate uses, and don't have to be exclusive Jan 17 16:05:01 rxscala looks much better than java Jan 17 16:12:12 sure does Jan 17 16:24:02 ok, I will try to move on of my company's app to scala :) Jan 17 16:24:13 hope will go well Jan 17 16:27:34 they give you the green light? wow Jan 17 16:31:35 gordon_ great for job security :D Jan 17 16:32:09 what's your main motivation for changing to scala? Jan 17 16:32:37 better language Jan 17 16:32:50 what other reasons does one use to seek an alternative to java Jan 17 16:33:10 you never know Jan 17 16:33:19 why scala over kotlin? Jan 17 16:34:03 scala is more powerful, macros, type system, library and 3rd party ecosystem Jan 17 16:34:45 kotlin is wallpapering over java warts Jan 17 16:35:47 why kotlin over scala? simpler grammar, faster compilation Jan 17 16:36:40 and smaller core runtime Jan 17 16:36:46 pfn: nah Jan 17 16:37:06 JitanRo: macwire Jan 17 16:37:33 I like dagger Jan 17 16:37:45 but amount of boilerplate for it is... big Jan 17 16:38:01 I see Jan 17 16:38:22 and dataclasses... Jan 17 16:38:29 sorry, case classes Jan 17 16:38:46 and kotlin... Jan 17 16:38:52 I still like scala better Jan 17 16:39:02 scala collections are really nice Jan 17 16:40:28 I was looking into learning either scala or kotlin, but I'm leaning more towards kotlin because my main job is android dev and it feels like a more useful and maybe shorter step to take. I also enjoy do backend stuff tho Jan 17 16:41:04 scala works fine for android Jan 17 16:41:20 not as hyped tho Jan 17 16:41:37 it's not Jan 17 16:42:05 for better or worse, I don't know, Kotlin just seems to be getting more support Jan 17 16:42:08 but official documentation will eventually mention android, at least, get-scala.org Jan 17 16:43:29 JitanRo right away i can think of one reason, if you don't know scala or kotlin, and want to choose one - with kotlin you don't have to learn a new build system, their plugin works mostly transparently (until, of course, google puts out an update and things break ;) Jan 17 16:44:26 you don't have to learn a new build system with scala Jan 17 16:44:37 there's a gradle plugin Jan 17 16:44:50 as well as auto import from build.gradle for sbt Jan 17 16:44:57 fud camp. strikes again Jan 17 16:45:17 i thought kotlin used gradle? Jan 17 16:45:34 kotlin has no build system of its own Jan 17 16:45:42 pfn who maintains the gradle plugin ? Jan 17 16:45:56 there is a gradle plugin for kotlin however Jan 17 16:46:22 Hi folks, I'm reading the BigNerdRanch book and so far (50%..) , let's say for a button, they get a reference to that button and set a lisetning on it. I found in Google doc that you could also use android:onClick in your XML. Is there a prefered way? Jan 17 16:46:42 Elezium, never use android:onClick Jan 17 16:47:05 That's clear. ;) Any particular reason? Jan 17 16:47:42 breaks layout reuse, and since it's a runtime call, breaks refactoring Jan 17 16:48:33 doh. so true. thanks pfn ;) Jan 17 16:49:04 view id's suffer similarly from refactoring, but tooling is generally good. there Jan 17 16:49:45 Ok. Did not do much refactoring yet. But it's nice to know. Does the new Binding Library worth taking a look at? Jan 17 16:49:57 not really Jan 17 16:50:22 data binding is "easy" but it suffers from the same thing as onClick in general Jan 17 16:50:47 Gotcha. I'll keep it at the bottom of the reading list then. Thanks. Jan 17 16:51:19 if you have a zillion forms for which you need data bound, maybe bump it up your list Jan 17 16:51:52 but if you only have a handful of models, it's not really worth it Jan 17 16:52:43 K.. for now, I'm still learning, so I don't expect to have tons of forms in the near future. But I'll keep that in mind. Jan 17 16:58:02 JitanRo: you can go for kotlin Jan 17 16:58:07 I just like Scala Jan 17 16:58:11 :) Jan 17 16:58:15 I'd like to learn both Jan 17 16:58:27 but gotta start somewhere Jan 17 16:58:28 everytime I write kotlin... I just don't have love for it :P Jan 17 16:58:59 Scala is harder Jan 17 16:59:12 yeah Jan 17 16:59:36 and it has bigger pressure for functional programming Jan 17 17:00:04 scala is very similar, syntactically, to kotlin Jan 17 17:00:27 kotlin took scala as inspiration, but ripped out the "hard" parts Jan 17 17:01:21 and that isn't really true, gordon_, there is a pretty big community divide over that Jan 17 17:01:41 eg, spark is barely functional Jan 17 17:02:29 spark is probably a project that would have benefitted going with kotlin, rather than scala, though, had it. been in existence at the time Jan 17 17:03:05 maybe Jan 17 17:03:23 Odersky saird that he will focus on blogging about simply scala this year Jan 17 17:08:08 anyone know how SAF providers generally handle offline use? for example, device has no network connectivity, can i still use ACTION_CREATE_DOCUMENT, will providers cache & sync later ? Jan 17 17:19:42 hm, apparently not Jan 17 17:21:57 g00s, depends on provider. Jan 17 17:22:09 Not sure what SAF has to do with online anyway. Jan 17 17:22:15 It's just a unified interface to ContentProviders. Jan 17 17:22:41 Mavrik yeah, if i use play service gdrive API they explicitly mention offline use + sync Jan 17 17:23:10 with SAF i have no idea whether a user would be able to use it if offline, depends on the provider Jan 17 17:24:15 Mavrik what is your general impression with SAF, are the providers well implemented ? Jan 17 17:24:47 or did this turn out to be a 'one ring to rule them all' but actually least common denominator which isn't that great in practice Jan 17 17:28:18 hi why do some application redifine an system level permission in their manifest ? Jan 17 17:29:14 for instance those 2 permissions are redifnined in an applicaiton manifest but are already defined in android framework Jan 17 17:29:17 https://bpaste.net/show/c34121c81b36 Jan 17 17:36:36 21 Jan 17 17:36:40 oops, sorry Jan 17 17:52:41 Hello all :o) Jan 17 17:59:45 I have just enrolled into the android development nanodegree course, has anyone else by chance done it? Jan 17 18:02:34 Anyone know how to make TLS 1.1 requests with OKHttp? Jan 17 18:06:44 Hey when I open up a project file, how might I get into the design view where I can see my applications layout? Jan 17 18:06:53 I am still kind of learning the ropes with Android Studio Jan 17 18:08:13 blahkat: Expand app/res/layout on the left, or press Ctrl+Shift+N and start typing the file name. Jan 17 18:09:54 Awesome, thanks TacticalJoke :p) Jan 17 18:11:38 TacticalJoke what were the first things you put on your new machine ? Jan 17 18:12:01 Google Chrome was the first. Then Android Studio. Jan 17 18:12:07 Microsoft Edge sucks. Jan 17 18:12:13 Feels as laggy and horrible as IE did. Jan 17 18:12:16 hmm, surface book makes for an interesting toy Jan 17 18:12:43 TacticalJoke have you tried SourceTree? it handles hg repos ... Jan 17 18:12:47 so tempted if I didn't have so many macbooks lying around Jan 17 18:12:50 If I hold Ctrl+T to open loads of new tabs in Microsoft Edge, it takes ages to respond. Jan 17 18:12:52 Such basic suckage. Jan 17 18:12:53 I am not sure I like edge. Jan 17 18:13:03 I haven't tried SourceTree yet. Jan 17 18:13:22 TacticalJoke also this is useful, runs on windows too https://sift-tool.org/index Jan 17 18:13:48 Actually, I have tried SourceTree. But I have a set of tools I use and am happy with already. Jan 17 18:13:56 My dad is totally stuck on Opera TacticalJoke Jan 17 18:14:09 Remember when Opera had ads? Jan 17 18:14:10 I have tried to convet him for years lol Jan 17 18:14:28 the opera guy went on to do Vivaldi Jan 17 18:14:34 And he still uses Jasc PSP7 Jan 17 18:14:47 I made a grep clone once, g00s. I still use it. :D Jan 17 18:14:55 :D Jan 17 18:15:05 I think I made it mainly for newline support in regexes (or something). Jan 17 18:15:16 i like sift because you can say 'find me occurrences where x is used within n lines of y' Jan 17 18:15:21 I think normal grep doesn't support matching across line boundaries, but I could be misremembering. Jan 17 18:15:58 if only windows had grep Jan 17 18:16:00 i think it handles gitignore files too Jan 17 18:16:10 blahkat: I remember PSP. When I was about 12, my dad's friend sold pirate CDs full of stuff like PSP, Photoshop, Visual C++, etc. Jan 17 18:16:15 They were like $20. Jan 17 18:16:18 Amazing value. Jan 17 18:16:24 LOL Jan 17 18:16:29 I had one of those friends too Jan 17 18:16:32 i still have opera 11.17 installed Jan 17 18:16:49 Anyone knows, where the developer options are stored? Jan 17 18:16:59 TacticalJoke, is it a public tool? Jan 17 18:17:12 For some reason ViewPropertyAnimation .setDuration() is not working for me, anyone use this before? Jan 17 18:17:12 zenguy_pc: My grep clone? Oh, nah. Never ended up releasing. :s Jan 17 18:17:18 And1, tap build number 7 times Jan 17 18:17:27 My friends dad burned me the whole C++ 6 CD set, I was so happy Jan 17 18:17:35 zenguy_pc: Where they are stored on my Android device’s system. Jan 17 18:17:44 I think VC++ 6 was the first IDE I ever paid for. Jan 17 18:17:54 It came with a huge wall chart of MFC classes. Jan 17 18:17:58 And1, ooh, i dont know Jan 17 18:18:07 hehe Jan 17 18:18:20 I need charts like this up on my wall now for Java/Android. Jan 17 18:18:27 No wall is big enough. :D Jan 17 18:18:31 I just started learning this week via udacity Jan 17 18:18:41 Imagine just the Activity life-cycle. Nobody has ever seen a *full* Activity-life-cycle chart. Jan 17 18:18:44 Probably. Jan 17 18:19:15 Maybe someone can pay that bigheads wall poster company to make a nerdy android dev full wall poster lol Jan 17 18:19:46 everything for learning development, stick it up and start learning :p Jan 17 18:24:05 hi how can i always update a status icon in an activity ? the receiver a registerd is registered through onpause/onresume Jan 17 18:24:06 I can imagine that being the scene of a murder investigation. The guy died in his own home, with Android charts plastered all over his walls. He hadn't left the house in weeks. Investigations eventually conclude that it was suicide. Jan 17 18:24:16 should i use stocky broadcast in taht case ? Jan 17 18:25:03 lol Jan 17 18:26:28 anyway, time to work on this sunshine app :P Jan 17 18:31:56 g00s: meh Jan 17 18:39:02 blahkat, you get grep in msys or cygwin, among other bundles Jan 17 18:39:27 or install linux Jan 17 18:45:08 Does anyone know how to pick one random item from string array once? Jan 17 18:46:10 sk8dev_: just picking once? Jan 17 18:46:12 I've a button to get one random string from array, but I don't want to get duplicate string Jan 17 18:47:18 and you're picking repeated times, right? Jan 17 18:47:24 yes Jan 17 18:48:35 it would be great if there is any possibility to exclude it from next pick Jan 17 18:48:47 this is a classic interview question Jan 17 18:49:02 let me see if i can find it Jan 17 18:49:24 sk8dev_: Just duplicate the list and search the duplicated list. When an item is picked, remove it from the duplicated list. Jan 17 18:49:35 That's what you want -- a list whose items are removed after selection. Jan 17 18:50:24 TacticalJoke, thanks. that makes sense :D Jan 17 18:50:26 I'm guessing there's no better way (thought I've never really thought about this problem). Jan 17 18:50:33 though* Jan 17 18:50:55 another way of doing it is to make a duplicate list and shuffle the contents of the list Jan 17 18:51:15 Ah, yeah. Jan 17 18:52:15 kommunicate, great idea. I'll do this. thanks Jan 17 18:52:17 check out this method: https://docs.oracle.com/javase/6/docs/api/java/util/Collections.html#shuffle%28java.util.List%29 Jan 17 18:52:27 no thinking involved! Jan 17 18:58:04 thepoosh whats meh ? :) Jan 17 18:58:15 I'm trying to understand proper structure for a 2D sprite rendering system using GLSurfaceView. I have a sprite class that has its own shaders and manages its GL coordinates and rendering. My renderer class manages all sprite entities (and other types like UI). My question is for touchEvents. If I process touch in the SurfaceView I would need to constantly loop through the renderer's Jan 17 18:58:15 members to find out which object is being touched. Would it not make more sense to process touch events in the renderer? I'm confused cause on the android-dev website they manage touch in Surfaceview. Also there's the matter that the renderer is on a different thread (at least i think it is). Maybe that's why processing happens in the SurfaceView? Any help appreciated. Jan 17 18:58:15 does anyone here have access to cloud test lab and can tell me how long it takes once you uploaded an APK? Jan 17 18:58:16 YOU KNOW DAMM WELL!!! Jan 17 18:58:24 wall of text Jan 17 18:58:25 thepoosh lol, yes i thought so haha Jan 17 19:11:07 So when the user presses the back button, onPause is called and then onStop is called? Jan 17 19:11:29 But onStop is not called until I call super.onPause()? Jan 17 19:12:37 Activity.onPause is called immediately (synchronously). Activity.onStop is called asynchronously (but soon). Jan 17 19:12:56 You have to call through to the superclass's methods for all of those life-cycle callbacks. Jan 17 19:13:03 Right Jan 17 19:13:05 Hey guys! I'm trying to make a custom adapter with a viewholder pattern but it doesn't behave as I would have expected. I dont get errors but the list doesn't show the two field I have declared in the custom adapter class. Does anyone have experience from custom adapters? My code is here, maybe someone can see if something is missing. http://pastebin.com/AivDKK2T Jan 17 19:13:17 I want to set the visibility of something to GONE, before the activity closes Jan 17 19:13:38 Doing it in onPause before calling super Jan 17 19:14:37 Why before calling `super`? Jan 17 19:15:22 Actually, im just gonna override onBackPressed Jan 17 19:15:37 Hide the view, then call super, so I know it hides before the rest hides Jan 17 19:16:20 I have a FAB attached to a view, and when the activity closes, the view closes into a smaller thumbnail in the previous actiivty, and it looks bad if the FAB follows the view to a thumbnail and then dissapears Jan 17 19:16:29 m9l: I'm not sure from a quick browse of that code. Have you tried setting breakpoints in getView or whatever? Jan 17 19:17:25 hich resolution and dpis do i need? Jan 17 19:17:32 to cover all screen sizes? Jan 17 19:20:22 Well I set one now, and I'm not sure getView is getting called at all.. And I can't find a place where it is being called from either Jan 17 19:21:00 but I have compared it to two different tutorials and I can't figure out what is missing or what's wrong. Jan 17 19:21:48 touch events all occur on the UI thread right? Jan 17 19:22:03 m9l: Maybe your ArrayAdapter has zero items. Jan 17 19:22:45 My list is showing all courses, but with the toString method in the course class. I would like it to show the two fields declared in the viewholder in the custom adapter class. Jan 17 19:23:20 So I think it has elements, but it's not using the custom adapter class correct Jan 17 19:24:09 m9l: Could you post the entire adapter class? Jan 17 19:25:35 Yes, here: http://pastebin.com/kQHV4VWR Jan 17 19:26:49 But I don't call getView anywhere in the code, which might be wrong. I'm not entirely sure how it works. Jan 17 19:27:59 The ListView itself calls `getView`. Jan 17 19:35:21 Okey, I will keep debuging it. I commented out a searchview in my maincalss and it seems to work better. Thank you for looking into it! Jan 17 19:37:29 I would first check whether `getView` is being called (by either `Log.e("whatever", "whatever");` or `throw new Error("It's being called");`). Jan 17 19:37:36 Or using the debugger. Jan 17 19:50:52 How do I add external storage to the emulator used by Android Studio? Jan 17 20:00:04 Good evening. Jan 17 20:03:59 I have a list of a couple of hundred items in an AlertDialog; can I make that list searchable somehow? Or at least add a list of letters to the side where you can easily jump around in the list? Jan 17 20:08:08 I use setItems(), maybe that is a bad idea then? Jan 17 20:12:30 kdehl maybe use an activity with dialog theme, or at least floating, give it a toolbar, put a search action view in it ... Jan 17 20:12:58 for phones, make it full screen, for tablets a floating window maybe Jan 17 20:13:33 Alright, so there's no built-in method to do this in AlertDialog itself? Jan 17 20:14:14 imho dialog with hundreds of things in it - not so great Jan 17 20:14:25 Yeah, okay. Jan 17 20:15:26 i dont really see dialogs in modern gapps these days except 'yes / no' Jan 17 20:15:29 Alright, activity with dialog theme seems adequate. Jan 17 20:15:35 Right. Jan 17 20:30:54 Having weird issues with creating folders on external storage: https://gist.github.com/rubenwardy/15bcfac836b8773d580c Jan 17 20:31:39 cdir.getAbsolutePath() == "/storage/emulated/0/Minetest/mods" Jan 17 20:31:48 sorry, /storage/emulated/0/one/two Jan 17 20:33:02 im having with make and the java version http://ssfdre38.info/img/screenshot.5.jpg Jan 17 20:33:03 fixed that snippet Jan 17 20:46:45 Gaah Jan 17 20:54:46 pfn, yeah but not native :o( Jan 17 20:54:54 but I do like cygwin Jan 17 20:55:20 It gives me my sense of freedom when forced to use this windows box. Jan 17 21:02:09 Why would my code that creates a dir in getExternalStorageDirectory() work in 5.0 but not 6.0? Jan 17 21:02:25 Because you don't have the permission to touch the SD card. Jan 17 21:02:28 Read the OS changelog :) Jan 17 21:03:55 :o( Jan 17 21:04:08 Where is it? Jan 17 21:04:36 Can't find anything about sdcards or external storage here: http://developer.android.com/about/versions/marshmallow/android-6.0-changes.html Jan 17 21:05:17 https://www.androidpit.com/android-m-release-date-news-features-name Jan 17 21:07:53 also this might help: http://developer.android.com/about/versions/marshmallow/android-6.0-changes.html Jan 17 21:08:15 rubenwardy, first huge title "Runtime permission" Jan 17 21:08:25 That concerns you because you're using those permissions ;) Jan 17 21:08:31 URgh Jan 17 21:08:43 I have Jan 17 21:08:54 Accessing the storage is very important for my app Jan 17 21:09:01 without it, it won't work Jan 17 21:09:11 It's basically a file manager Jan 17 21:09:17 Well then. Jan 17 21:09:45 Implement the 6.0 permission changes properly then. WRITE_EXTERNAL_STORAGE is a dangerous permission which requires confirmation in 6.0 Jan 17 21:09:54 Well there goes compatability for 5.0 to 6.0 for tons of apps Jan 17 21:10:33 It's a good thing, blahkat. The user gets control over their own device. :) Jan 17 21:10:42 Much like they've had in the iOS world for a long time. Jan 17 21:10:50 It's a good feature Jan 17 21:10:53 This is true Jan 17 21:11:21 I just forsee allot of complaints coming on from unknowing users on app pages :P Jan 17 21:11:45 blahkat, not really. Jan 17 21:11:56 blahkat, I actually haven't found any serious issues. Jan 17 21:12:07 oh thats good then Jan 17 21:12:08 The only thing that stop working was our ugly hack to read files from SD card directly pass the SAF Jan 17 21:12:23 Which caused a bit of performance dip but that was it pretty much. Jan 17 21:13:23 I am still learning all of the ropes in developing android, maybe this is a good time to be learning then with the new age changes Jan 17 21:13:56 You should primarily develop on the newest OS anyway. Jan 17 21:14:14 Yeah that is what they were saying in my class Jan 17 21:14:26 Always go with the latest and greatest. Jan 17 21:18:04 It turns out that it doesn't break compatibility if targetSdkVersion < 23 Jan 17 21:18:05 blahkat: FWIW, most people would recommend a minSdkVersion of at 16. I think 21 is viable in some cases. Jan 17 21:18:05 from what I've read Jan 17 21:18:05 of at least* Jan 17 21:18:24 rubenwardy, it'll break as soon as someone changes the settings though. Jan 17 21:18:41 23 won't disable permission control for older apps, it just has different defaults. Jan 17 21:19:08 I mean "most people in the know". :D Jan 17 21:19:24 Most people in the know don't know what your building and for whom. Jan 17 21:21:38 nice Jan 17 21:22:47 I still have lots of learning to do, I am overwhelmed by all of android studio Jan 17 21:30:53 I am suppose to be creating a project with 'blank activity with fragment' but I do not see any such thing in the wizards tempplates, has this been depricated? Jan 17 21:31:31 templates* rather Jan 17 21:32:32 How can I open another app via intent directly without the choose intent dialog? Jan 17 21:34:56 blahkat check out udacity they have great video tutorials that are recently updated Jan 17 21:35:26 JitanRo, that is what course I am taking :P Jan 17 21:35:33 oh :) Jan 17 21:35:51 I enrolled a couple of days ago, however I do not see any option for 'blank activity with fragment' Jan 17 21:36:33 Does this come from one of the downloaded packages via download manager by chance? Jan 17 21:37:07 blahkat I never use these anymore, did you check https://developer.android.com/tools/projects/templates.html = Jan 17 21:37:09 ? Jan 17 21:37:39 I did not, let me check :o) Jan 17 21:38:35 http://guides.codepath.com/android/Home#getting-started can also be a good place to check things out, although a bit outdate here and there Jan 17 21:39:06 I really just hope I am not wasting the $200 a month on this Jan 17 21:39:20 I feel this is all very much a struggle to get started learning Jan 17 21:39:29 I'd say if spending that money motivates you it's well spent ;) Jan 17 21:39:32 Anyone? Jan 17 21:39:32 I mean I have done some C++ and such before (not much, I am novice) Jan 17 21:39:38 blahkat which course did you buy ? Jan 17 21:39:50 Android Developer, the one put out by google Jan 17 21:39:54 I paid for one month last summer Jan 17 21:39:56 ah nice Jan 17 21:40:04 "Developing Android Apps" to be exact Jan 17 21:41:22 I 'started' to watch the beginning java tutorial they had on there, but it was just way too much Jan 17 21:41:34 not because I couldn't understand it, but because it was not enough code for me Jan 17 21:42:01 they had me doing everything in bluej and feeding already coded examples, I cannot learn like that, so I started on the tutorialspoint which helped Jan 17 21:54:41 the beginning java one was by someone else though, not google Jan 17 21:56:51 anyway I am going to take a breather and watch more mr robot Jan 17 22:13:24 no one? Jan 17 22:14:10 I found out I should use an exlicit intent. I read some articles on it but I stil don't know how to do it exactly? Jan 17 22:19:44 Really?:-\ Jan 17 22:20:19 https://developer.android.com/reference/android/content/Intent.html#setComponent(android.content.ComponentName) Jan 17 22:22:07 this might help also http://krumelur.me/2015/10/06/launching-an-android-activity-of-another-apk/ Jan 17 22:25:03 I read the second article. It doesn't tell how to transmit info though. any idea? Jan 17 22:25:57 I made my toolbar trasnparent and there is some shadow around it, anyone know how to get rid of that? Jan 17 22:29:59 nevermind. thanks. Jan 17 22:30:17 ok360 you figured it out? Jan 17 22:30:52 JitanRo, he left Jan 17 22:30:58 he, she, it Jan 17 22:31:00 oh :) Jan 17 22:31:08 in sweden we say hen Jan 17 22:33:38 guys when making a drawable selector for an imagebutton, is there a particular default on how much to darken the image by when its pressed? Jan 17 22:33:56 darken the color rather Jan 17 22:42:22 i punch faces Jan 17 23:00:14 With Butterknife, is there a way to use the binded views variable name for an @OnClick? I've been doing @Bind(R.id.whatever) View mView and then if i use @OnClick i have to do @OnClick(R.id.whatever) again. Anyway to shorten that? Jan 17 23:01:39 man mr robot is cray cray Jan 17 23:32:52 Would there be any possible way to make an android app using C Jan 17 23:34:24 yes, azx Jan 17 23:34:31 azx, C++ with the NDK Jan 17 23:34:33 im having with make and the java version http://ssfdre38.info/img/screenshot.5.jpg Jan 17 23:36:15 Is it possible to make an Ionic app with an Android look and feel instead of iOS? Jan 17 23:36:37 I'm completely new to Ionic so please bear with me. I just tried to build my first Ionic app, using Visual Studio, and then I tested the iOS version on Ripple, and then the Android version on Visual Studio's Android emulator. But the the app on Android looks like an iOS app, the UI design. Jan 17 23:36:42 Is it's possible to have an Ionic app following Android's UI design pattern (Material Design)? Jan 17 23:36:54 Is there an #ionic irc channel? Jan 17 23:37:04 There is Jan 17 23:37:16 It's best to take your question there, probably, zignd Jan 17 23:37:32 ok, i will try there too, thanks rubenwardy Jan 17 23:38:19 but if anyone from here could answer my question it would be nice too Jan 17 23:39:09 zignd this is native app dev Jan 17 23:39:26 this is bugging me, but i cant figure out why my recycler view isnt showing any rows Jan 17 23:39:53 i built it with ionic, so it's not native, g00s? Jan 17 23:40:03 No, it's not Jan 17 23:40:23 zignd lol, if its not mentioned on d.android.com , its not native ;) Jan 17 23:40:32 At the very least it's a wrapper Jan 17 23:41:12 i found this http://ionicmaterial.com/ Jan 17 23:41:36 it's third party stuff, but makes the app looks native Jan 17 23:42:12 Hate when someone hijacks a bug report with a second bug, and acts like it's the same bug. :/ Jan 17 23:42:20 Then there's no actual bug report for the second bug. Jan 17 23:42:41 This is what I'm talking about: https://code.google.com/p/android/issues/detail?id=63570 Jan 17 23:42:59 Comment #2. Jan 17 23:43:13 im having with make and the java version http://ssfdre38.info/img/screenshot.5.jpg Jan 17 23:43:23 damn it google, still no api to find Music directories on all "external" mount points?... Jan 17 23:44:58 only whatever mediascanner finds Jan 17 23:48:03 pfn, I meant something like ContextCompat.getExternalFilesDir but for Environment.getExternalStoragePublicDirectory Jan 17 23:49:14 I don't use android's own media databases Jan 17 23:49:31 and I don't know if it finds the music in my sdcard to be honest :p Jan 17 23:52:35 it probably does Jan 17 23:53:31 it's just needlessly difficult to figure out all the possible locations Jan 18 00:03:01 so, if im setting a layout manager, and an adapter, why would my recyclerview not show any rows at all? Jan 18 00:06:26 its in ana activity, if that helps Jan 18 00:10:02 drinfernoo: I think there may be billions of possible reasons. Jan 18 00:12:56 drinfernoo, Jan 18 00:12:57 adapter.notifyDataSetChanged() if the data changes? Jan 18 00:13:13 Using divide and conquer (use a debugger, use Log, create a test project which is extremely simplified, etc.) helps us narrow down those possible causes. Jan 18 00:32:11 what would be the best way to develop cross platform apps with android the priority? Jan 18 00:32:47 i dislike apple but they have a huge market share sadly Jan 18 00:32:56 azx: HTML5 Jan 18 00:33:27 i feel like html5 is just a website running in a stripped down web browser Jan 18 00:33:33 with the likes of phonegap Jan 18 00:33:55 azx: there is an apache project that creates a thin native wrapper on iOS, Android, etc.. so you have access to hardware and other specifies of the platform Jan 18 00:34:44 azx: another way is to write your logic in C/C++ and create a JNI wrapper for Android and compile with C++ support under xcode Jan 18 00:34:59 it really depends what your app does Jan 18 00:35:45 azx: Cordova, read into that Jan 18 00:36:25 It may fit your needs, there is also another platform called xamirn or seomthing like that which you write everything in C# and you can create native apps based on the code Jan 18 00:36:48 Xamarin even Jan 18 00:40:14 i think C/c++ with JNI wrapper would be the most flexible Jan 18 00:40:34 doesn't xmarin cost money Jan 18 00:40:49 it does Jan 18 00:41:38 it also comes with support and an extensive library that makes writting apps for multiple phone platforms easier Jan 18 00:42:03 The downside being you need to use C# Jan 18 00:43:17 damn lol i came back to ask him a question Jan 18 00:43:40 I think i'll just learn phonegap for now and learn java/swift later Jan 18 00:43:47 you can use robovm as well Jan 18 00:43:53 and stay all java Jan 18 00:44:00 or any jvm language of your choice Jan 18 00:44:07 pfn: I havn't used that at all, how is it? Jan 18 00:44:16 pfn: jython? Jan 18 00:44:18 I don't use it Jan 18 00:44:38 you could, but jython has been slow on android in the pasy Jan 18 00:44:40 past Jan 18 00:44:46 can you create real apps using phone gap? or is it just a webapp emulated in a wrapper Jan 18 00:44:52 I evaluated using jython and jruby long ago Jan 18 00:44:57 i feel like xmarin or robovm would offer more flexibility Jan 18 00:45:01 azx: how huge is that share? Jan 18 00:45:08 so, im trying to get my recyclerview working. onCreateViewHolder and onBindViewHolder are being called, and ive made sure my layouts look sound, but im still not showing any rows at all. all of the pertinent code should be here: https://github.com/drinfernoo/Scor/blob/master/app/src/main/java/com/drinfernoo/scor/MainActivity.java Jan 18 00:45:12 azx: xmarin creates real apps Jan 18 00:45:19 would anybody take a look? :) Jan 18 00:45:49 drinfernoo: I am very busy! Jan 18 00:46:26 wyoung, it doesnt have to be you :) Jan 18 00:46:56 drinfernoo: do you see in logs "bindSession" ? Jan 18 00:47:39 if i learn C would C# be easy to learn Jan 18 00:47:56 drinfernoo: I know :) I was just answering your question, I hate it when I ask a question and no one answers it, even if the answer is negative, better than nothing Jan 18 00:48:06 azx: they are different Jan 18 00:48:45 azx: and C# brings in a different programming paradigm than C Jan 18 00:49:00 (C being procedural and C# being object orientated Jan 18 00:49:16 C# also has namespacing, and other funkies Jan 18 00:49:47 I think swift might be the next big cross platform programming language, what do you guys think? Jan 18 00:49:56 it's open source Jan 18 00:50:02 the only downside is apple made it Jan 18 00:50:05 although the last time I used C# the standard library didn't have default comparators for their collection classes Jan 18 00:50:08 drinfernoo: if you do, than somethings is wrong with your layout Jan 18 00:50:24 azx: what's a swift Jan 18 00:50:41 at first glance code looks fine Jan 18 00:51:11 azx: yeah. or kotlin Jan 18 00:53:59 swift is not cross platform Jan 18 00:54:41 but its open source so people are making it cross platform Jan 18 00:54:45 slowly Jan 18 00:55:05 http://elementscompiler.com/elements/silver/ Jan 18 00:55:28 swift runs on linux Jan 18 00:55:57 indeed i love linux Jan 18 00:56:05 in some rudimentary state, apple said they are working on it Jan 18 00:59:34 still isn't cross platform Jan 18 00:59:36 vigilancer, yes Jan 18 00:59:41 but i cant figure out whay Jan 18 00:59:43 what Jan 18 01:01:45 drinfernoo: try set layoutmanager before adapter Jan 18 01:07:03 vigilancer, no dice Jan 18 01:08:44 my layouts are here: https://github.com/drinfernoo/Scor/blob/master/app/src/main/res/layout/main.xml and https://github.com/drinfernoo/Scor/blob/master/app/src/main/res/layout/session_row_layout.xml Jan 18 01:09:44 I have overwritten boot installing a new boot.img. How to install a new rom via recovery mode "apply update from ADB?" Jan 18 01:09:53 vigilancer, got it Jan 18 01:10:09 fastboot doesnt works anymore Jan 18 01:10:13 my main layout was in horizontal orientation, so it wasnt showing it below the toolbar Jan 18 01:10:19 damn those little things Jan 18 01:10:36 psyxopompos, try #android-root instead Jan 18 01:11:15 drinfernoo: okay Jan 18 01:16:30 psyxopompos, short answer is youll need a custom recovery too, like twrp Jan 18 01:18:19 Anyone know the height of the status bar? Jan 18 01:19:34 drinfernoo: Thank you Jan 18 01:20:18 drose379, i think its 25dp Jan 18 01:25:13 Thanks drinfernoo Jan 18 01:26:57 drose379 there is a theme attribute for that; its also different between phone / tablet Jan 18 01:27:31 anytime Jan 18 01:27:40 g00s, whats the attr? Jan 18 01:28:27 ?android:attr/actionBarSize Jan 18 01:28:42 phone 56, tablet 64 Jan 18 01:28:48 (dp) Jan 18 01:29:20 status bar Jan 18 01:29:20 oh shit, sorry drose379 -- status bar Jan 18 01:29:44 No prob Jan 18 01:31:05 24dp Jan 18 01:31:09 now is it public Jan 18 01:33:55 oh its 24dp? lol Jan 18 01:34:20 vigilancer, any idea why my CardView shadow is cut off? Jan 18 01:34:57 drose379 not public - probably shouldn't be guessing it then Jan 18 01:35:49 Need an opinion from you guys Jan 18 01:35:59 shoot Jan 18 01:36:11 Ok, so I have an activity, with a large photo at the top Jan 18 01:36:22 Stretched entire width, and about 300 dp Jan 18 01:36:24 height Jan 18 01:36:41 Sometimes, the photo is portrait, and when stretched full width it looks distorted Jan 18 01:37:20 So im thinking of just letting the image load into the imageview naturally, and setting the background of the rest of the imageview to another color Jan 18 01:37:32 Maybe use Pallete to get the most vibrant color in the photo and use that color Jan 18 01:37:37 Or maybe just a nice neutral color Jan 18 01:37:52 i think that sounds good Jan 18 01:37:55 So, sometimes distroted, or natural with color ? Jan 18 01:38:10 oh, natural with color Jan 18 01:38:15 what are the dimensions of the photo you are receiving? Jan 18 01:38:21 whats below the image? Jan 18 01:38:30 Not sure, different every time canvs2321- Jan 18 01:38:39 drinfernoo, info about the contents of the photo Jan 18 01:39:05 i mean, less than 100px or so, there are crops and scales and bounds etc you can use with imageview Jan 18 01:40:00 I need the user to see the enitre photo, and with scales and crops either some of the image is cut off, or its distroted Jan 18 01:40:40 drose379, what about putting that content on a pane that slides with a parallax, so you could see the whole photo either way, but maybe have to slide the pane up for a portrait? Jan 18 01:41:13 Idk, cause what if the user wants to show someone the photo, theyll have to scroll around to see the whole thing ? Jan 18 01:41:16 D: Jan 18 01:41:35 only up or down Jan 18 01:41:42 Yeah Jan 18 01:41:50 I want to make cool use of the Pallete lib Jan 18 01:41:53 So im gonna try first Jan 18 01:41:53 i guess, unless the image is still taller Jan 18 01:41:58 yeah, its cool Jan 18 01:42:05 Anyone willing to take a look at how it comes out? Jan 18 01:42:08 yeah Jan 18 01:42:18 Cool, thanks. Few mins. Jan 18 01:49:09 drinfernoo, its... mehh Jan 18 01:49:18 lol lets see Jan 18 01:49:31 Ok, just look at the top image, rest of the activity is under a re-design Jan 18 01:50:07 Ill take a recording now Jan 18 01:51:06 ok lol Jan 18 01:52:17 https://vid.me/uzyT Jan 18 01:55:02 See how it gets the most vibrant color from the photo? Jan 18 01:55:39 the palette color choice should reflect more of the background noise and be dull do not take away from the animals mug. and can almost crop and remove bottom 25-50% of some of those images to focus on their face Jan 18 01:55:43 Maybe the color of the stauts bar should adjust too Jan 18 01:56:23 So it shouldnt be a vibrant color Jan 18 01:56:32 Ok lemme see what other swatches I can get Jan 18 01:56:44 Dark vibrant maybe Jan 18 01:56:45 What is muted? Jan 18 01:57:07 i don't think vibrant works, vibrant stands out and draws attention, keep it dull and more to the background noise and make the animal pop not the borders Jan 18 01:57:25 there are like 7 or 8 or so swatches to choose from, play around Jan 18 01:57:33 What is the Muted swatch? Jan 18 01:57:38 Just not sure what it means Jan 18 01:57:40 ctrl-q Jan 18 01:58:35 Oh, muted == less intents Jan 18 01:58:36 Will tyr Jan 18 01:58:37 try Jan 18 01:58:45 if using the swatches you have to check for null, with getXXXColor you can give a default if nothing matches Jan 18 01:59:02 Yep saw that, thanks Jan 18 01:59:36 Dang muted is nice Jan 18 01:59:42 i like the palette class quite a bit, just started messin with it not too long ago Jan 18 02:00:09 Yeah I recently discovered it and ive been looking for a way to put it to good use Jan 18 02:00:38 sorry, got dropped Jan 18 02:00:42 No prob Jan 18 02:00:45 whats up drose379? Jan 18 02:00:51 Playing with colors Jan 18 02:01:02 Bout to post another recording if thats cool Jan 18 02:01:15 don't ask, just post Jan 18 02:01:26 yeah i missed the other lol Jan 18 02:01:47 Ok, about to record, one min Jan 18 02:03:28 Here: https://vid.me/6Amg Jan 18 02:04:09 Notice how some are portrait and some are landscape Jan 18 02:04:55 its... ok lol Jan 18 02:05:50 Any ideas drinfernoo ? Jan 18 02:10:25 two questions with coordinatorlayout and appbarlayout. 1) how do i get my toolbar to stop showing under the status bar, and 2) how do i get my recyclerview to not scroll (and thus collapse the toolbar) if all the items are showing? Jan 18 02:11:21 and drose379, maybe make the picture a bit smaller, so as the see the background behind on all four sides, and then do a little shadow behind it Jan 18 02:11:32 Hmm Jan 18 02:11:35 to set it apart from the background Jan 18 02:11:59 pocketcasts does that in its podcast view, but those are usually all square images, so idk how itll turn out Jan 18 02:12:11 A shadow? Jan 18 02:12:12 on the other hand, i do like your design Jan 18 02:12:19 that main list with the circle views is nice Jan 18 02:12:20 Oh, thanks Jan 18 02:12:25 Thanks man Jan 18 02:16:41 drinfernoo, I'd love to help you out with what you asked above, but its really just not my strong suite Jan 18 02:16:44 Sorry :( Jan 18 02:17:42 ugh idk why it doesnt work lol Jan 18 02:19:06 I know that stuff is frustrating when its not working Jan 18 02:19:16 aha fixed number 1 lol Jan 18 02:19:39 Awesome Jan 18 02:20:35 Im trying to set my status bar a slightly translucent color, and its not workin Jan 18 02:23:29 Anyone know why that is? Jan 18 02:34:13 to see underneath? Jan 18 02:35:21 try using fitsSystemWindows on your layout, and then set the color Jan 18 02:35:25 idk if thatll work Jan 18 02:35:49 I think im gonna have to go with cropping the image Jan 18 02:36:09 Gah I cant Jan 18 02:46:29 would be cool if TabLayout had something like orientation="vertical" Jan 18 02:48:14 g00s, any idea how to give a slightly transparent color to status bar? Jan 18 02:48:25 no, i'm not very good with bling stuff Jan 18 02:48:33 Me neither :( Jan 18 02:48:34 lol Jan 18 02:57:38 status bar can't be translucent color Jan 18 02:59:23 D: **** ENDING LOGGING AT Mon Jan 18 02:59:58 2016