**** BEGIN LOGGING AT Thu Feb 18 02:59:59 2016 Feb 18 03:19:21 <_xor> Hey guys, quick newbie question (I'm sure its been asked before): What are the realistic options to detect when the user/phone is within a certain distance of a GPS coord? Feb 18 03:19:57 <_xor> I wouldn't be surprised if it's not easily possible without raping the battery, or giving off privacy-issue vibes. Feb 18 03:22:31 _xor: its part of play services Feb 18 03:23:05 _xor: https://developer.android.com/training/location/geofencing.html Feb 18 03:23:16 <_xor> oh nice Feb 18 03:23:47 * _xor bookmarks & takes a note on it Feb 18 03:23:56 <_xor> Without reading it, how is it on battery? Feb 18 03:24:07 <_xor> I assume it's a coarse location? (based on wifi & cell towers?) Feb 18 03:24:29 _xor: its based on the FusedLocationProvider Feb 18 03:24:45 which is everthing Feb 18 03:24:46 lol Feb 18 03:24:56 <_xor> Ah ok, makes sense. Feb 18 03:25:36 _xor: https://developers.google.com/android/reference/com/google/android/gms/location/LocationRequest Feb 18 03:25:39 <_xor> Well, that's promising. I was wondering if I'd have to devise my own way to do it without killing the battery lol. Feb 18 03:25:54 in your LocationRequest you ask for how to balance power vs. accuracy Feb 18 03:26:20 <_xor> Ah nice. Feb 18 03:26:31 _xor: which i believe you dont have to do when using geofencing Feb 18 03:27:33 <_xor> Oh, I didn't realize those were two different methods. Feb 18 03:28:17 <_xor> Sorry, by methods, I don't literally mean "methods" in the OOP sense. I mean as in techniques/implementation options. Feb 18 03:47:34 IMMA SPANK YA FACE! Feb 18 04:25:29 someone posted a video of a talk on UI design Feb 18 04:25:46 I can't find it. Something about how your views should be as dumb as possible Feb 18 04:28:35 RustySha1kleford http://www.nointerface.com/book/ ? Feb 18 04:29:34 RustySha1kleford views not having model stuff ? Feb 18 04:29:49 maybe a talk on MVP, or uncle bob clean , etc ? Feb 18 04:29:52 or more android specific ? Feb 18 04:29:56 yeah thats the idea Feb 18 04:30:23 hah one of the regulars linked it. I opened the video, paused it and never watched it Feb 18 04:30:40 one sec Feb 18 04:30:54 this one ? https://vimeo.com/43612849 Feb 18 04:32:37 I don't think so but maybe I'll watch it Feb 18 04:32:51 hah my friend worked for 8th light. seemed like a strange place to work Feb 18 04:33:38 they're big on functional programming Feb 18 04:45:36 do they purescript for the web? Feb 18 04:46:57 Does anyone? Feb 18 04:47:47 I know they use lots of clojure Feb 18 04:47:54 seemed like an odd place to work Feb 18 04:48:56 Any company that thinks a programming paradigm is the key to a successful product needs a reality check Feb 18 04:54:27 they had a lot of cool things going on Feb 18 04:54:33 but it seems gimmicky to me Feb 18 04:55:06 so, why does everyone contract out dev work? I'm 1 of 2 people on my team who actually works for the company Feb 18 04:55:49 Contracting and profitable and with fewer responsibilities to write stuff that's easy to maintain Feb 18 04:56:04 s/and/is Feb 18 04:56:08 RustySha1kleford i think this paper influenced a lot of ceos https://hbr.org/2003/05/it-doesnt-matter Feb 18 04:59:57 im looking for a dev/serial killer Feb 18 05:00:30 gotta be willing to kill on weekends and code on weekdays Feb 18 05:05:03 b4b: pm me Feb 18 05:12:17 no? nobody thought that was funny? Feb 18 05:16:31 might he was talking about killing bugs :P Feb 18 05:21:47 Google’s CEO just sided with Apple in the encryption debate" yay Feb 18 05:22:41 Yah, Google still pissed off @ the NSA Feb 18 05:23:16 And the Apple vs. FBI thing ... afaict, the FBI is just fishing, trying to get a legal precendent Feb 18 05:25:34 TacticalJoke have you heard of 'slide for reddit' Feb 18 05:32:05 RustySha1kleford, because it's easier to hire and fire contractors Feb 18 05:32:15 so it's faster to ramp up and down workforce Feb 18 05:33:02 yeah thats a reason. I'm no businessman but i'd expect better results from actual employees Feb 18 05:33:14 they also outsource development and the results are awful Feb 18 05:33:39 * pfn has been performing outsourced work for the last 4 years Feb 18 05:33:40 it's great Feb 18 05:33:51 are you in india? Feb 18 05:34:10 no Feb 18 05:34:14 outsourced, not offshored Feb 18 05:34:23 g00s: curious why your asking...if you dont mind me asking Feb 18 05:34:29 just a guess hah. Thats where our guys are Feb 18 05:34:50 offshoring as a way to reduce costs results in really shitty work Feb 18 05:37:38 g00s: Yeah. Feb 18 05:37:46 g00s: I've been too lazy to try it. Feb 18 05:38:50 speaking of outsourced, I forgot I'm going onsite tomorrow... Feb 18 05:40:56 pfn: unbelievably shitty Feb 18 05:41:20 thats why I drink Feb 18 05:42:16 and you've only been working there for a few months Feb 18 05:42:44 hah maybe I sound a little cocky Feb 18 05:42:51 but i've never written anything that bad Feb 18 05:46:10 TacticalJoke good to check out competition, assimilate best things :) Feb 18 06:04:06 one thing i don't get about CoordinatorLayout - they say its like a FrameLayout, but most examples i see have ... one would think the AppBar and Content would be overlapped Feb 18 06:04:33 but instead, they appear as if a vertical linear layout was used Feb 18 06:05:06 the behavior controls that Feb 18 06:05:24 jsut switched to dracula theme in android, terminal is white !! Feb 18 06:05:45 pfn ok thanks Feb 18 06:07:33 also the color contrast is not great Feb 18 06:07:57 * pfn just uses standard white Feb 18 06:08:02 Have to bump up the brightness on the screen Feb 18 06:08:18 What are you preferences ? Feb 18 06:08:24 I use the standard with a Darcula-themed editor. Best of both worlds. Feb 18 06:09:17 I use solarized, I prefer a compromise between both Feb 18 06:09:54 i'm hoping SourceTree gets a dark theme, hate going between darcula and white Feb 18 06:10:11 when its getting close to bedtime :D Feb 18 06:10:25 I use flux for that Feb 18 06:10:25 maybe i need orange goggles Feb 18 06:10:39 f.lux Feb 18 06:10:41 suhas_sm flex still lets lots of blue / green Feb 18 06:10:46 hmm Feb 18 06:10:48 i use it too btw, nice stuff Feb 18 06:11:36 So I just have two themes in my studio, Default and Dracula. Will explore more themes Feb 18 06:20:47 http://eclectide.com/blog/2014/11/23/monokai-theme-intellij/ Feb 18 06:20:51 lovely theme Feb 18 06:23:24 Full black or full white background is a non starter for me Feb 18 06:28:12 hmm Feb 18 06:28:42 http://color-themes.com/?view=index Feb 18 06:31:51 Hi, I'm going to write an upload service for my app, service with thread or intentService? Feb 18 06:31:52 all i care about is AS 2.0 having good subpixel font AA on OS X ;) Feb 18 06:32:48 i guess that now means i have to run AS with jetbrains JRE Feb 18 06:33:01 which i didn't see in the full download Feb 18 06:34:59 @astroduck IntentService Feb 18 06:40:42 @astroduck I think can be just IntentService not service with intentservice Feb 18 06:41:04 suhas_sm: *with thread Feb 18 06:41:19 and use broadcasts to update UI? Feb 18 06:42:13 Why would use Threads ? Yeah and broadcasts Feb 18 06:42:34 Android has lots of wrappers for threads Feb 18 06:42:58 Use AsyncTask ? Feb 18 06:50:07 dragorn interesting stuff http://yro.slashdot.org/comments.pl?sid=8756397&cid=51524693 Feb 18 07:24:52 https://play.google.com/store/apps/details?id=com.aireal.solar_fade&ref=producthunt Feb 18 07:24:54 pretty cool Feb 18 07:29:56 Upgrading to gradle 1.5.0 I get this error "Error:Access to the dex task is now impossible, starting with 1.4.0" How to I find out what is causing this? Feb 18 07:32:40 astroduck: are you using AS? Feb 18 07:33:42 astroduck: if so, I assume you've tried restarting AS Feb 18 07:37:43 Napalm: Yes i did Feb 18 07:39:12 astroduck: you mean 1.5.0 of the android gradle plugin yea? Feb 18 07:40:02 astroduck: in AS go into File > Project Structure > Project Feb 18 07:46:43 Napalm: Found th culprit, I was using new-relic and it was causing the problem Feb 18 07:49:17 astroduck: good to know Feb 18 08:31:42 Good morning to you all. Feb 18 08:31:52 Let's rock 'n roll baby :) Feb 18 08:37:18 o7 Feb 18 08:37:48 Number5: do you work remote? Feb 18 08:40:04 orbyt_, well that depends :P Feb 18 08:40:31 Number5:..on? Feb 18 08:40:37 Number5: * Feb 18 08:41:04 whether I work on my private project or a project for my boss :P Feb 18 08:41:23 ah =p Feb 18 08:41:36 but what has this to do with android my friend :) Feb 18 08:42:31 Was just gonna say, I see you in here every morning (well, late night for me) and your always so cheery. I like it. Feb 18 08:44:35 orbyt_, hahaha, well this gift started since a few days ago :) I live in the Netherlands and it's 09:45 am here. I forgot the fun of programming, and so I want to change that. Feb 18 08:45:07 orbyt_, but thnx for noticing it ;-) Feb 18 08:45:48 Number5: You wouldnt happen to work at Booking.com would you? I always see them hiring in the netherlands Feb 18 08:54:49 orbyt_, no. But it would be nice to work for like 6 months or a year. Just to taste the environment. I work almost 10 years for a company that sells systems to intercept phone calls and internet traffic :P Feb 18 09:00:19 in my valueAnimator i change some variable and call invalidate Feb 18 09:00:28 the thing is after onresume some of the calls dont call onDraw Feb 18 09:00:50 can i somehow detect that invalidate indeed called ondraw Feb 18 09:09:15 Hey, I'm trying to write a simple input output app. there should be 1 input screen with a button that opens screen 2 with the output. Do I need another acitivity fot my output screen to get the usual app behavior? I tried just to set the other content view, which works but on pressing the back button, the app closes instead of returning to the first screen. on the other hand I think its pretty overloaded to start a new activity with an Feb 18 09:09:15 intent, because I need those input values... Feb 18 09:10:10 to make thing short: New Screen = new Acitivity, or is there an "easy" way? Feb 18 09:12:11 To get a back stack (so that pressing Back will return to where you were), you need one of a new Activity, a new Fragment, or a custom solution (which is complicated). Feb 18 09:12:36 I dislike Fragments, personally, but some people like them. Feb 18 09:14:43 ok thx, I wrote a sloppy game engine years ago with the surface panel, basicly I wrote some kind of my own panels, but that was a lot to do ^^ on the other hand it will be hard to "parse" (dont know if parse is the right word here) als the values to the new activity. Feb 18 09:14:56 but thx for the answer, I'll figure something out Feb 18 09:15:27 You have to serialize those values regardless of which approach you take. Feb 18 09:16:16 thats for saving the values? ^^ I'll just google, thx for the advice Feb 18 09:16:54 Android might kill your process while it's running in the background. When the user comes back to your app, they'll expect the initial state to be restored. You can do this in Activity.onSaveInstanceState. Feb 18 09:17:03 Same applies by default to screen rotation. Feb 18 09:17:28 I mean "You can save the values in Activity.onSaveInstanceState". Feb 18 09:19:15 If you're starting out, just stick with Activities for now. Fragments assume you already know how Activities work. Feb 18 09:19:19 that sounds familiar, but first I need to get back to the first screen by pressing back on the second screen... thats where it needs to go first, (trial and error project) Feb 18 09:21:19 That happens automatically if you start a new Activity without finishing the one your are starting the new one from. Feb 18 09:23:14 Ok, thx. Feb 18 09:48:40 hey all! for a ci-env I am installing the sdk via the cli (android update sdk --no-ui -a --filter tools,platform-tools,android-21,android-22) .. Any idea where those passable labels are documented? I'd also like to add the x86 and amd-images for android-22 Feb 18 09:52:18 ah! found "android list sdk" Feb 18 10:05:34 does anybody know if those indexes will be constant? Feb 18 10:05:58 looks like the higher ones (76 and so on) are going down whenever a new target is released Feb 18 10:07:01 I know this is a lot to ask, but can someone walk me through building CM for a device? Feb 18 10:07:22 CM? Feb 18 10:07:38 Cyanogenmod Feb 18 10:07:45 ah.. found "android list sdk --all --extended" which also lists labels Feb 18 10:07:46 go to #android-root Feb 18 10:07:59 I realized this was the wrong channel Feb 18 10:09:03 eeyup Feb 18 10:22:55 Morning Feb 18 10:23:20 oahyou Feb 18 10:27:05 Can I set language (strings.xml) for specific buildType ? Feb 18 10:46:28 hey everyone, i was trying to use accelerometer, since my device doesnt have a gyroscope, and ive been trying to figure out how to make my phone properly react to the gyro Feb 18 10:46:33 sorry to the acell Feb 18 10:47:05 but it seems, i can roll, and look up and down, but i can go left and right, beacuse it seems to auto correct itself after half a second Feb 18 10:47:24 im sure this is something used to keep things stable Feb 18 10:47:40 but i was thinking perhaps that 3rd angle needs to be used differently Feb 18 10:48:09 im using unity, and i was wondering if anyone has experience using the accelerometer for vr Feb 18 11:20:28 so im hearing that the compass is better if i dont have a gyro Feb 18 11:32:08 oO Feb 18 11:36:26 Hi guys, what the best method to determine if the user is has been disconnected from the net ? It often happens that the wifi is on and the network is connected but the internet is not working. Feb 18 11:36:36 Hi guys, what is the best method to determine if the user is has been disconnected from the net ? It often happens that the wifi is on and the network is connected but the internet is not working. Feb 18 11:47:23 I'm trying to measure the visible size of imageviews that are being scrolled in a Recyclerview, I'm kind of there but I keep getting nullpointer exception after a few scrolls on this code: https://gist.github.com/Jitan/209777da00635d99e42b Stacktrace is included at bottom of Gist. Until it crashes I get the numbers I need. Any pointers appreciated Feb 18 11:48:40 I tried wrapping it all in a null check but then I just stop getting any numbers at all, so after a few scrolls I don't get any View from the LayoutManager at all Feb 18 11:49:59 JitanRo, getChildAt returns a null Feb 18 11:52:00 JitanRo, what does your getFirstVisibleItemPosition do Feb 18 11:52:03 yeah, but at first it doesn't Feb 18 11:52:38 danijoo: what ended up in the scala debate yesterday? Feb 18 11:52:42 I missed the ending Feb 18 11:53:06 Zharf it just calls mLayoutManager.findFirstVisibleItemPosition() Feb 18 11:53:27 it ended like ¨fuck you!¨ - ¨fuck you too!¨ Feb 18 11:53:28 :p Feb 18 11:53:34 lolz Feb 18 11:53:44 I always love being a fly on the wall in things like this Feb 18 11:53:49 ^^ Feb 18 11:55:42 Zharf I updated the gist with the log just before crash Feb 18 11:56:23 maybe when the first view is recycled something goes wonky Feb 18 11:58:03 check if tthe value returned by findFirstVisibleItemPosition is sane Feb 18 12:00:05 checking Feb 18 12:00:48 yeah it's 0 switching to 1 and then crash Feb 18 12:03:32 open for suggestions of other ways to measure as well... maybe I have the wrong approach Feb 18 12:06:34 hmm, sometimes it lets me scroll more than one picture Feb 18 12:09:04 ok weird now it seems to work with this... https://gist.github.com/Jitan/c7ecabb8755f3b85c2d9 Feb 18 12:10:59 I would guess that the next item hasn't finished layout yet Feb 18 12:11:07 but would have to do more research to confirm Feb 18 12:11:53 yeah, I tried something similar already with a null check though and it still crashed, weird... I think I was trying to allocate new objects inside the scroll method Feb 18 12:11:59 trying to avoid * Feb 18 12:12:27 I am using Android Studio 2.0 and have Android 4.4 AVD. The AVD displays nowadays the new toolbar (which I like), and the ugly gray button panel (mostly same functionality as in the new toolbar). Feb 18 12:12:33 Is there a way to hide this old gray button panel? Feb 18 12:12:50 The numbers I get for TOP / BOTTOM don't look right now though Feb 18 12:13:38 after the third item they're the same Feb 18 12:13:43 no change Feb 18 12:17:48 must be some better way to do this Feb 18 12:22:26 JitanRo, what exactly are you trying to do? would iterating RecyclerView children be enough? Feb 18 12:23:16 I want to know which view takes up the most space on the screen Feb 18 12:23:32 these are fullscreen images Feb 18 12:26:00 solved it, incase anyone was wondering, yRot = Input.compass.magneticHeading; the x is accelerometer Feb 18 12:29:03 Hey guys do you know if google achievements without the incremental option can have a percentage input? Feb 18 12:38:35 Which versions of android support custom notifications? Feb 18 12:42:44 All of them Feb 18 12:43:47 can android work with jdk 8? Feb 18 12:44:13 yes. Feb 18 12:44:26 but you cant use 8´s features Feb 18 12:44:40 ok Feb 18 12:45:04 so i don't have to install jdk7 Feb 18 12:53:23 Zharf thanks for trying to help out, I solved it by doing this: View view = mRecyclerView.findChildViewUnder(screenSize.x / 2, screenSize.y / 2); Feb 18 12:53:41 JitanRo, cool Feb 18 12:54:22 danijoo, retrolambda though <3 Feb 18 12:54:55 Zharf, Kotlin though ;) Feb 18 12:55:03 ew Feb 18 13:06:53 Is there a specific channel for google game services? Feb 18 13:07:10 no clue, but doubtful Feb 18 13:07:23 might have the best luck on stackoverflow Feb 18 13:07:32 Bleh Feb 18 13:07:34 ok thanks Feb 18 13:12:05 I want to merge an element of of my manifest. If I add it does not get merged, probably because Um, I got Android Studio 2.0 Canary 4 as a ZIP, how would I install it? Feb 18 13:14:10 I mean, I want to upgrade, but this one seems like an already installed copy or something Feb 18 13:14:49 OverCoder, copy paste. there is no upgrade for canary Feb 18 13:16:03 What copy paste? Feb 18 13:16:08 Paste to the same installation folder? Feb 18 13:16:10 Copy and replace? Feb 18 13:16:33 It should be separate from your stable AS. Feb 18 13:16:43 ^ this Feb 18 13:17:18 But I'd not like to have multiple installations, and then I'd be stuck trying to get projects to import on both Feb 18 13:17:41 Then I guess uninstall the stable one. :D Feb 18 13:17:45 ^ this Feb 18 13:18:02 hm Feb 18 13:18:05 and be prepared to be annoyed once something doesnt work out in a canary release Feb 18 13:18:17 and you have to reinstall stable because you need to get shit done Feb 18 13:18:26 * OverCoder gets scared Feb 18 13:18:48 Yeah, I don't see any harm in keeping the stable one around. Feb 18 13:18:49 Okay fine, is it an easy operation to my project to work on the newer AS? Feb 18 13:19:01 to make my* Feb 18 13:19:10 just import it in new AS Feb 18 13:19:20 nice, thanks guys :) Feb 18 13:21:26 is passing activity as parameter to new View(context) bad design Feb 18 13:21:44 Ashiren, no. whats the alternative ;) Feb 18 13:21:44 Why would you? Feb 18 13:22:05 activity.getApplicationContext() Feb 18 13:22:18 Ashiren, thats really bad. Feb 18 13:22:22 ^ Feb 18 13:22:31 views live in activity context, so never pass them an app context Feb 18 13:22:41 ah ok Feb 18 13:22:59 i thought that would give some leakage Feb 18 13:23:21 Views don't outlive their activities, so nothinf can leak. Feb 18 13:23:26 nothing* Feb 18 13:23:54 if you do setContentView with an Id those views will also be creates with activity context Feb 18 13:24:16 very well Feb 18 13:24:33 hmpf.. Kotlin in Action needs to be written faster :p I bought it yesterday and im already 80% through the current content :/ Feb 18 13:27:46 I'm on a macbook air -> I was able to debug my S4 pages before [at least on Windows it was pretty easy], here it doesn't seem to detect that it's plugged in Feb 18 13:27:50 My opinion: I have a parallel .NET project in C#. I was looking for an tutorial of async/await, which is comparable with AsyncTask. But ooh boy how bad this is understood by a lot of .NET developers, with bad tutorials. I really thank God there is Android and iOS. Opensource is just so important, because real enthousiast developers with make programming fun with good tutorials and libraries. M$ will never learn, I really mean it. Feb 18 13:27:59 Android itself isn't showing the connected as media device Feb 18 13:28:07 adb devices shows nothing Feb 18 13:29:02 But M$ has really good IDE, that's the only positive thing I can say. Feb 18 13:29:33 I think the only difference is the USB cable :s It's one from a portable battery charger... as someone took the black usb cable Feb 18 13:29:56 macbook has usb? o.o Feb 18 13:30:16 Ashiren, mine has two :P Feb 18 13:30:51 Hello, I'm trying to delete a method using proguard. But it isn't doing anything to the method. This is what I'm trying https://gist.github.com/wviana/651ed6d17bcccc965b19 Feb 18 13:32:11 mmm it's charge only cable :( Feb 18 13:32:26 can I debug inbox via wifi / bluetooth ? Feb 18 13:33:24 wviana, just wrap the content in if (BuildConfig.DEBUG) .. it'll noop in release builds, and probably get optimized away completely Feb 18 13:37:46 dan2k3k4: look for adb wireless Feb 18 13:38:07 Ashiren yeah but still requires initial adb connection to setup tcip Feb 18 13:38:09 :( Feb 18 13:38:27 will just get a usb cable over next few days Feb 18 13:39:15 not really Feb 18 13:39:23 wviana: does it affect Log? Feb 18 13:39:44 dan2k3k4: have you tried this https://play.google.com/store/apps/details?id=za.co.henry.hsu.adbwirelessbyhenry Feb 18 13:41:31 Ashiren: yeah Feb 18 13:41:41 Ashiren: no logs showing. Feb 18 13:44:13 SimonVT: Sounds good, but why proguard don't remove the metohd ? Feb 18 13:44:56 No idea, I don't use proguard.. But BuildConfig.DEBUG is definitely a better way to have debug-only code Feb 18 13:45:07 Ashiren I haven't rooted my phone :/ does that require root ? Feb 18 13:45:20 SimonVT: Thank you. ;) Feb 18 13:45:28 it says (no root) Feb 18 13:45:54 proguard does not remove methods that are activily reference from anywhere. so it wont remove your method until the java compiler also optimazed it out of doLogin() Feb 18 13:46:17 which it should do when you add BuildConfig.Debug as SimonVT suggested Feb 18 13:47:31 Hi. Why does ActivityCompat.requestPermissions starts the dialog and closes it in a moment even if user chose "Don't ask me again'? Feb 18 13:47:51 also assumenosideeffects only works if you also have enabled optimization in Proguard which is disabled by default iirc Feb 18 13:48:08 SimonVT: Works like charm. So if the method is unused proguard will remove it ? I may keep the assume no sideefects to incentive proguard to remove it and no one get access to the string constants. Do you think it'll work ? Feb 18 13:48:50 thats the whole point of using proguard for a lot of people. removing unused methods to shrink method count Feb 18 13:49:24 is there someway to check if proguard really removed a method ? Feb 18 13:51:35 wviana, I dont know if theres a way to enable logging for that but you can always decompile the resulting APK and look at the classes in it Feb 18 13:52:02 danijoo: Good ideia. I,ll check it. Feb 18 13:53:53 Hi. Why does ActivityCompat.requestPermissions starts the dialog and closes it in a moment even if user chose "Don't ask me again'? How can I fix it? Feb 18 13:58:28 guliash, show your code.. Feb 18 13:59:59 Does someone knows a way to check the methods of a .class file ? Feb 18 14:00:54 danijoo: http://pastebin.com/9uRGiLyL Feb 18 14:01:31 wviana, extract the dex file from the apk, then use dex2jar to make a jar from it and use jd-gui to browse the jar content - thats how i do it Feb 18 14:02:16 danijoo: Thanks :D Feb 18 14:03:21 danijoo: user chooses 'Don't ask again'. Then we restart the app, and go into if, and the dialog shouldn't be shown, but it appears for a moment and then closes. Feb 18 14:04:06 guliash, not sure but maybe thats intended by the system? :/ Feb 18 14:04:41 wviana: If you're concerned about the string constants being leaked, use buildConfigField in your build.gradle to only add them to BuildConfig in debug builds Feb 18 14:04:46 danijoo: don't know. but when I comment the line with 'requestPermissions', it behaves like expected. Feb 18 14:05:54 Hello guys, I have a list of 20 cities to pick, what;s the best way to present it to the use? First thing I thought of was a Spinner, but I'm not sure if that's the right one for Material Design. I was also thinking about a Picker, but I only found picker for a date/time or a number, not for list of strings. What do you think? Feb 18 14:06:56 SimonVT: ok, I just check the methods has gone. Thanks very much Feb 18 14:07:09 Number5, spinner imo Feb 18 14:07:29 or AutoCompleteTextView if it will get more than 20 Feb 18 14:08:36 SimonVT: What do you suggest to hide URL endpoints or I shouldn't wore about it ? Feb 18 14:08:56 danijoo, thnx, I think I'll go for the spinner too. A problem might be that my customer won't go with that. Because they have an iOS version using a picker :S Feb 18 14:08:58 What do you mean? Feb 18 14:12:58 SimonVT: Right now I use retrofit todo my http requests. In the API interface I have string constants that is the BackEnd api that I send the requests, something like String HOST = "http://somehost/api"; Should I care about it ? Feb 18 14:13:02 Pickers and UIPickerViews should die, as soon as possible Feb 18 14:13:54 Nah, don't bother.. Not really anything to do, that's easy to find out either way Feb 18 14:14:52 wviana, you cant hinder anyone to find that uri. People can simply intercept traffic - nothing to do about that Feb 18 14:15:35 danijoo: That ok. Asking just for curiosity. Feb 18 14:16:38 SimonVT: d2j and jd-gui are awesome tools. Thank you very much for your help. Feb 18 14:17:57 API 23 is Marshmellow? Feb 18 14:18:12 yes Feb 18 14:23:57 Google APIs Intel x86 Atom System Image (vs.) Intel x86 Atom System Image? Feb 18 14:24:10 fight! Feb 18 14:24:14 * OverCoder fights Feb 18 14:24:23 No I am serious, what's the difference? Feb 18 14:24:28 Google APIs Feb 18 14:24:32 ... ^^ Feb 18 14:24:34 o.o Feb 18 14:24:40 its in the name.. Feb 18 14:24:49 I... what does that even mean? Feb 18 14:25:13 APIs for maps and stuff like that.. Google services Feb 18 14:25:18 One has it, other doesn't Feb 18 14:25:23 it shouts "google me!" Feb 18 14:25:23 Ah, so something like Play services? Feb 18 14:25:32 danijoo, hm, right Feb 18 14:25:39 remove the `something like` ;) Feb 18 14:25:52 hm :> Feb 18 14:26:02 I wonder why would they put them as separate images :/ Feb 18 14:26:27 because there are projects that dont need them and projects that need them. Feb 18 14:26:57 for example you wont have play services on an amazon device Feb 18 14:27:07 Ah... Feb 18 14:27:10 Now I got it Feb 18 14:27:13 Thanks :) Feb 18 14:27:17 I think one used to be built from aosp, other was proprietary Feb 18 14:27:30 hm Feb 18 14:27:47 And then intel built the x86 images, and I guess google is involved in the x86 with google apis Feb 18 14:29:51 Ah, I think that basically means to me to get the Google APIs image since I am developing apps that are supposed to work on normal Android devices? (such as Nexus) Feb 18 14:30:20 great Feb 18 14:30:21 No, only if you need google apis Feb 18 14:30:37 What if I used the image with the APIs with an app that doesn't use them? Feb 18 14:30:44 :| Feb 18 14:30:49 That still works Feb 18 14:30:50 apocalypse Feb 18 14:31:22 hm :o Feb 18 14:52:03 Hi, can I ask question here, what motivates you to develop an app without money or any exchange at the momment? Feb 18 14:52:49 Why are you asking? :s Feb 18 14:53:23 because I just wanna know what motivates you, specially if there no money at first Feb 18 14:55:09 the love of struggling with bet..alpha tools Feb 18 14:55:25 AndroidNewb: I think what TacticalJoke was asking was why do you want to know lol Feb 18 14:55:34 :D Feb 18 14:55:54 I wanna know to get me motivated as well :) Feb 18 14:56:13 family, friends? money? Feb 18 14:56:20 AndroidNewb: In my case, I use the app all day every day. Feb 18 14:56:21 you want to get motivated because others are also motivated? :D Feb 18 14:56:24 I also enjoy programming. Feb 18 14:56:32 Pick a project you'll use every day. Feb 18 14:56:50 What app? Feb 18 14:57:06 Ive heard that before @tacticalJoke Feb 18 14:57:38 but sometimes you don't have the fire to develop a really cool app. Feb 18 14:58:24 AndroidNewb: Don't let your dreams be dreams. Feb 18 14:59:15 https://youtu.be/ZXsQAXx_ao0 Feb 18 14:59:19 @TacticalJoke true, I guess that helpful "? Feb 18 14:59:23 :) Feb 18 14:59:55 lol @ video Feb 18 15:01:16 Hey does anyone know if i can send apk upload to google play like the plugin in call droidlan anyone hear of it? Feb 18 15:01:17 money doesn't motivate me at all Feb 18 15:01:44 interedting problems do Feb 18 15:01:51 interesting* Feb 18 15:02:30 @Zharf but we need money to survive. :) Feb 18 15:02:41 *scene cuts to Zharf swimming in money à la Scrooge McDuck* Feb 18 15:02:55 ;) Feb 18 15:03:38 some people say I'm rich but I make less than most people in our company... but I have pretty much no expenses Feb 18 15:03:53 Hey TactiaclJoke how are you? Feb 18 15:04:09 small mortgage payments and food Feb 18 15:04:52 @Zharf nice, started from the bottom. Feb 18 15:04:58 but if my job didn't interest me, I wouldn't stay just because it gives me money Feb 18 15:04:59 no in the top. Feb 18 15:05:00 Yeah, Tom Cruise tried to convince me I was right the other day. I'm like "Whatever, Tom". Feb 18 15:05:04 rich* Feb 18 15:05:16 perlsyntax: Not too bad. How 'bout chu? Feb 18 15:06:58 but then, I'd be bored out of my mind without a job Feb 18 15:08:14 TacticalJoke,I good try to find out if this plugin for android studio call DroidLAne upload apk to google play console if this true. Feb 18 15:10:17 perlsyntax, https://developers.google.com/android-publisher/#publishing ? Feb 18 15:11:06 Zharf,So it must be a spam then. Feb 18 15:11:59 I don't know what you mean Feb 18 15:12:31 it's possible to write stuff to publish stuff on google play, bypassing the dwveloper console site Feb 18 15:12:45 Zharf, really Feb 18 15:12:49 really Feb 18 15:13:45 i didn't know this. but i read that the google api in the developer console does work. Feb 18 15:14:00 but I think the first version needs to be done through the console Feb 18 15:15:44 i think your right.[Settings] -> [API access] -> [Create OAuth Client] something like this i bet:) Feb 18 15:16:23 Zharf,I have to ask in the google play console to make sure this works:) Feb 18 15:17:36 thanks for the help Zharf:) Feb 18 15:20:19 no problem Feb 18 15:25:54 :) Feb 18 15:37:47 Good afternoon everyone! I'm wondering if it is viable to use a navigation drawer to switch activities (not fragments)? Which also means that the drawer has to be reimplemented in every activity. Feb 18 15:38:37 you can use a base activity class that implements the drawer and let all activities inherit from it Feb 18 15:38:55 Hi danijoo Feb 18 15:39:01 State management is going to suck though. Feb 18 15:39:42 yep. and you wont see fancy animations like drawer closing after click Feb 18 15:39:51 because the acticity transition will hide it Feb 18 15:40:05 hello suhas_sm Feb 18 15:41:14 I was also thinking about using the MaterialDrawer library in a singleton. So that singleton always contains the MaterialDrawer class. But I'm not sure if that'd work. Feb 18 15:41:31 Yeah, that would be an awful memory leak there :) Feb 18 15:41:38 dont create singleton with ui specific stuff Feb 18 15:41:54 never put context in singletons ;) Feb 18 15:41:58 Woops, Okay haha Feb 18 15:42:02 Let's not to that then Feb 18 15:42:13 Just out of curiosity, does anyone use RabbitMQ for communication? Feb 18 15:43:48 Number5, i think most common is gcm and xmpp for realtime Feb 18 15:43:54 Mavrik, would it be because the library keeps references to every layout/activity, whether new or old.? Feb 18 15:44:08 danijoo, gym? you mean like push? Feb 18 15:44:32 Number5, G C M Feb 18 15:45:08 is xmpp not a protocol? RabbitMQ is more like a communication framework that can support xmpp, correct me if I'm wrong. Feb 18 15:45:28 gym, never heard about it, I'll google right away, thnx. Feb 18 15:45:34 I dont know Rabbit Feb 18 15:45:48 Number5, its still not gym but gcm -_- Feb 18 15:45:58 TimVosch, MaterialDrawer is a view Feb 18 15:46:03 danijoo, sorry, was a typo :) Feb 18 15:46:13 TimVosch, views hold references to their parents and the contexts they're in Feb 18 15:46:20 Number5, gcm is the `push` service of android Feb 18 15:46:34 Hence your MaterialDrawer would refer to the first activity it was contained in and in others it wouldn't work :P Feb 18 15:47:03 danijoo, I already know that (I use Parse btw). Feb 18 15:47:34 Parse is gone isnt it? Feb 18 15:48:01 or selfhosted now Feb 18 15:48:07 so what is the most reliable way to have a background service run every 1-2 minutes, repeatedly, even if the phone is asleep. cause using alarmmanager and a partial wake lock seems to be having issues Feb 18 15:48:38 Apocx, 1-2 minutes. this will never run longer than 1 hour Feb 18 15:48:45 because then the battery is dead :p Feb 18 15:49:31 battery life is fine right now, problem is the service will sometimes stop running after a few hours Feb 18 15:49:35 alarm manager or permanent forground service i think Feb 18 15:51:12 permanent foreground service Feb 18 15:51:50 alright I will try it Feb 18 15:51:54 damien5314: Do you use /api/morechildren.json rather than /api/info.json? Feb 18 15:52:01 both will suck because running something every 2 minutes suck in general though :/ Feb 18 15:52:02 thanks Feb 18 15:52:10 damien5314: The former seems to get all children; the latter, only direct replies. But, gawd, does this API suck. Feb 18 15:55:11 Hello. When storing something like a json schema on the device, is it best to store this in a file on internal/external storage, or in the sqlite db? Feb 18 15:55:44 cordovafan8, depends Feb 18 15:56:56 danijoo: it's not something that would be updated very frequently Feb 18 15:57:03 but it would be used fairly often Feb 18 15:57:37 theres no reason to put it on external storage unless you want it to be available externally Feb 18 15:57:47 ie backups Feb 18 15:58:06 sure, I'm just trying to figure out how to do internal storage from a static context Feb 18 15:58:08 Where can I get the last version of appcomapt, Right now I'm using com.android.suppor:appcompatv7:22 , Android Studio suggests :23, but it breaks my code. Where I find the last 22 version ? Feb 18 15:58:11 for sqlite vs file it depends on the data structure Feb 18 15:58:40 wviana, update your code.. 22 is outdated. Feb 18 15:59:01 danijoo: It breaks the Google Maps Feb 18 15:59:15 google maps work fine with 23 Feb 18 15:59:19 cordovafan8 and two more options: your own compiled sqlite with JSON1 extension or flatbufs stored as blobs in sqlite https://code.facebook.com/posts/872547912839369/improving-facebook-s-performance-on-android-with-flatbuffers/ Feb 18 15:59:31 danijoo: Maps v2 ? Feb 18 16:00:13 danijoo: It gets a Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Feb 18 16:00:52 fix your errors or stay on the outdated version forever. but there is no 'newest 22' because the newest versio is 23 Feb 18 16:01:14 but it's on a file that wasn't made by me. It happens in a v23/values-v23.xml Feb 18 16:01:21 hasn't been a support lib update in forever ... Feb 18 16:01:46 no support for you! Feb 18 16:02:20 Hey if I have the following string "this is a random \'example\' string" ...How do I get the \' into a ' ..string.replace does not seem to work Feb 18 16:02:31 shmooz they could at least fix bugs Feb 18 16:05:17 cart_man: Try printing " \' " and then try printing " \\' " to some console. You'll see what's going on. Feb 18 16:06:40 I think the only reason `\'` works is that we need to escape apostrophes in character literals. Feb 18 16:07:02 By the same token (pun kinda intended), we're allowed to say `char c = '\"';`. Feb 18 16:07:20 g00s: they pretend to, but don't really respect backwards compatibility Feb 18 16:07:50 and they are clueless about what the user experience should be Feb 18 16:08:16 i dont see any reason of fixing a bug in 22 when 23 is out Feb 18 16:08:22 shmooz: Did you ever get back into Android programming? Feb 18 16:08:27 TacticalJoke: I know what a breakout char is but I can not seem to get it out of my strings...for some reason my string for stuck with it in plain text Feb 18 16:08:45 when an app goes from 1.5 to 1.6, you dont release a 1.5.2 with bugfixes at the same time Feb 18 16:08:46 android randomly decided I was listening to music too loud again Feb 18 16:08:48 TacticalJoke: not really, I haven't done anything to fix where I got stuck Feb 18 16:08:58 cart_man: Why not just post what you're trying. Feb 18 16:09:06 TacticalJoke: but I am kicking ass in Tribes still Feb 18 16:09:08 shmooz: Where did you get stuck? Feb 18 16:09:21 after listening to it at the same volume for like an hour it randomly dropped volume to half and gave me a warning popup Feb 18 16:09:22 TacticalJoke: I am really just trying to remove " \' " from my string Feb 18 16:09:23 shmooz: I am decidedly *not* kicking ass in chess (anymore). Feb 18 16:09:27 so annoying Feb 18 16:09:37 cart_man: Post what you're trying or foggeddaboutit. Feb 18 16:09:50 TacticalJoke: the third party lib to stream live stations doesn't work on half the devices Feb 18 16:10:06 everything else pretty much works across all devices, cupcake and up Feb 18 16:10:21 TacticalJoke: Lol I have scraped and parsed of a bunch of XML successfully ..accept for the breakout chars Feb 18 16:10:22 is there no way to get the internal data directory without having access to a 'context' ? I really want to avoid writing to external storage, but I'm in a situation where I don't have context. Feb 18 16:10:36 TacticalJoke: A local news stations RSS Feb 18 16:10:46 getFilesDir() seems to be the only way to get the internal data directory Feb 18 16:11:09 shmooz: Hmm. Even without that function, an audio/video player has high utility. Feb 18 16:11:23 I use MX Player every day just to listen to some pre-downloaded YouTube videos. Feb 18 16:11:52 TacticalJoke: well you can use mine to do that now, and it should eat less battery Feb 18 16:11:58 cordovafan8, thats the point of context Feb 18 16:12:08 to give you access to the context your app runs in Feb 18 16:12:13 cart_man: throw new UnableToHelpException("Too little info."); Feb 18 16:12:22 you can use application context which is useable in a singleton Feb 18 16:13:01 danijoo: but how then do you get that path from within an asynctask or service which is not linked to an activity directly? Feb 18 16:13:16 cordovafan8, application context Feb 18 16:14:31 TacticalJoke: did you finish your reddeit app? Feb 18 16:14:36 danijoo: cool, did not know about this. Is this what you meant? http://stackoverflow.com/questions/987072/using-application-context-everywhere Feb 18 16:14:52 cordovafan8, yes. Feb 18 16:15:01 shmooz: Nah. I spend hours on it every day, like a crazy person. Feb 18 16:15:09 getApplicationContext() Feb 18 16:15:16 It's the best Reddit app I've ever used, though. Feb 18 16:15:25 TacticalJoke, pics or it didnt happen ;) Feb 18 16:15:42 TacticalJoke: are you going to release it? Feb 18 16:15:53 Yeah, shmooz. Feb 18 16:16:06 I don't have any devices attached at the moment, danijoo. :s Feb 18 16:16:34 TacticalJoke, its about time that you free us from using that shitty ´reddit is fun´ Feb 18 16:17:01 well my media player does what I need it to do on my devices, so I figure I'm done with it Feb 18 16:17:19 I can't be bothered to get it working on a million other devices Feb 18 16:17:20 why not make a beta round for some devs in here :) we could give some nice feedback Feb 18 16:17:52 + finding bugs you missee Feb 18 16:17:53 * wordsToLiveBy likes reddit is fun, reddit now is good as well IMHO Feb 18 16:18:38 didnt reddit release an app for the site, something like alien blue or some shit Feb 18 16:19:19 i think they are working on a new client yes. but its not released afaik Feb 18 16:19:37 there was a closed beta start some time ago iirc Feb 18 16:20:27 I had a new idea for an app Feb 18 16:20:33 I think they're gonna add advertising to mobile clients. Feb 18 16:20:33 Hi! Is Android Studio for Linux download working? Download at this page has been failing for me for days: http://developer.android.com/sdk/index.html Feb 18 16:20:38 Including the official one. Feb 18 16:20:51 Hopefully it'll just be scrollable items in a list rather than the requirement to display some banner. Feb 18 16:21:07 Download automatically aborted after 15 secs or so, for unknown reasons. Feb 18 16:21:30 a photo album viewer that finds the most important face in the picture and slowly zooms towards it until the transition into the next photo Feb 18 16:21:45 I just checked the app store for alien blue, its getting railed like a high priced hooker after a WBA championship fight Feb 18 16:21:50 that will have a very dramatic effect Feb 18 16:21:54 TacticalJoke, they are already doing that in reddit is fun Feb 18 16:22:24 Doesn't RiF have third-party ads? Feb 18 16:22:34 I mean that Reddit itself might start requiring ads. :/ Feb 18 16:22:45 dyek, works for me. Feb 18 16:23:02 TacticalJoke, I dont think thats third party because they are gone with reddit gold (without buying any iap) Feb 18 16:23:22 wordsToLiveBy: Thanks for checking. What platform are you using? Firefox on Linux? Feb 18 16:23:41 ubuntu, and I checked on with chrome Feb 18 16:23:49 shouldn't matter though Feb 18 16:24:14 wordsToLiveBy: OK. Thanks. Not sure why it is failing for me then. I cleared browser cookies already... Feb 18 16:24:24 wordsToLiveBy: Thanks. Feb 18 16:24:38 danijoo: Hmm, I wonder whether the app detects whether the logged-in user has Gold and then disables ads. Feb 18 16:25:19 TacticalJoke, seems like you are right. Feb 18 16:25:26 I logged out and clicked one ad Feb 18 16:25:34 turns out its facebook ad network Feb 18 16:25:37 when all else fails, restart your computer? Maybe you're proxying... Feb 18 16:25:40 Ahh, okay. Feb 18 16:25:53 dyek try developer.android.com/sdk/installing/index.html Feb 18 16:26:03 has anyone used the template login activity? it seems to work fine but i'm having trouble nailing the flow of the application correctly. Feb 18 16:26:14 my mainactivity is the parent but it goes.... main->option->login Feb 18 16:26:21 if i press back button, it goes back to main activity Feb 18 16:26:27 but when i login.... it goes back to option Feb 18 16:26:38 (like if it was a stack and it would just pop) Feb 18 16:26:57 i would like that when i finish loging in... it goes back to main (the marked parent activity in the manifest) Feb 18 16:27:52 bonus points: i would like it so that if i press back... it goes back to option and if i login, it goes back to main (the inverse of whats currently happening) Feb 18 16:28:44 DrBenway Tasks and Back Stack Feb 18 16:28:55 wordsToLiveBy: That got to the same page I posted above. However, strangely, this worked so far. Still waiting for it to complete. Feb 18 16:29:01 FLAG_ACTIVITY_CLEAR_TOP Feb 18 16:29:02 sounds like it but it also sounds like it's all wrapped within app compatibility Feb 18 16:29:49 dyek the urls are different and that one links directly to the sdk or just stand-alone tools... if it works great. Feb 18 16:31:10 wordsToLiveBy: It failed further down the road. OK. Never mind. I am not entire sure if my network is working perfectly now... Need to check... Feb 18 16:31:13 Thanks. Feb 18 16:31:54 wordsToLiveBy: clear top didn't seem to work. i added it to the intent that goes option->login Feb 18 16:32:04 then when logging in, it went back to option Feb 18 16:32:07 (instead of main) Feb 18 16:37:13 DrBenway stackoverflow.com/questions/7075349/android-clear-activity-stack Feb 18 17:03:26 * pfn tries running dark themes for intellij and hexchat Feb 18 17:06:46 man, why's win10 make my disk spin so much, I just hear it doing shit constantly now :( Feb 18 17:07:13 but nothing shows up in resmon Feb 18 17:07:46 Win10 freezes quite frequently freezes for me and corrupts my android .java files :( Feb 18 17:08:23 haven't encountered that Feb 18 17:08:29 updated off win7 because it was a 7 year old install Feb 18 17:08:32 and crashing too often Feb 18 17:08:45 the last straw was when it crashed and wiped out a source file I was working on Feb 18 17:09:15 Well I hope you win10 works better than it does for me :P Feb 18 17:09:33 did you guys do fresh installs ? Feb 18 17:09:45 I don't really want to do a fresh install yet because I keep finding stuff I want to keep... (I really should use VCS more often) Feb 18 17:09:47 * g00s always has better luck wiping clean Feb 18 17:10:10 win10 is a "fresh" install, keep personal data, wipe apps + settings Feb 18 17:11:38 perfect blend Feb 18 17:11:51 * wordsToLiveBy makes the proverbial win sucks, use linux statement Feb 18 17:11:55 TimVosch, the win10 updater moves stuff it deletes into \windows.old Feb 18 17:12:06 which is pretty handy Feb 18 17:12:15 although, I haven't wanted to pull anything out of there yet Feb 18 17:12:28 there's some appdata stuff I've been itching to pull out, but haven't Feb 18 17:12:40 do those contain data too??? Feb 18 17:12:50 I always thought it was just the old windows :P Feb 18 17:12:52 wordsToLiveBy come on, like ubuntu or whatevs never goofed up an update :D Feb 18 17:13:00 g00s touche Feb 18 17:13:04 TimVosch, yeah, it's a copy of everything it deletes in "wipe apps + data" Feb 18 17:13:18 goof? win10 hasn't goofed anything yet Feb 18 17:13:23 I like windows a lot more than linux and osx Feb 18 17:13:36 linux+x11 was my first windowed system ever Feb 18 17:13:39 * Except for privacy (jk i dont care) Feb 18 17:13:52 TimVosch, any app you run has privacy implications Feb 18 17:13:57 pfn what about command line, using the win command line is like trying to stick your dick inside a bull... you keep getting butted in the head with every attempt Feb 18 17:14:00 I trust microsoft not to do anything nefarious Feb 18 17:14:13 wordsToLiveBy, conemu + msys Feb 18 17:14:32 pfn, Yeah i don't care too much. But there where quite a few rants online about it Feb 18 17:14:54 TimVosch, any app you run at all on desktop can gather data and send it away Feb 18 17:15:24 http://ezscreens.appspot.com/view/173a/conemu+msys Feb 18 17:16:16 * wordsToLiveBy admits conemu seems pretty damn nice Feb 18 17:16:40 * wordsToLiveBy makes a mental note for the next time he has to defuckery a friends computer Feb 18 17:16:41 and of course, that's all bash, etc Feb 18 17:17:06 yea thats what I liked about it. The only other way I was aware of doing that was with cygwin, which has its own cluster fuckery Feb 18 17:17:29 git includes a minimal msys Feb 18 17:17:33 so just install git, and you're basically done Feb 18 17:17:43 you can use it inside of cmd, but conemu is better Feb 18 17:17:53 * wordsToLiveBy has a windows machine he hasn't touched in years that he just my boot up and turn into an IDS now. Feb 18 17:18:20 * pfn even went so far as to run a sun 3/60 as an xterm back in the days Feb 18 17:18:33 so I wouldn't have to run windows Feb 18 17:18:35 its my g/f backup computer so, I keep windows on it, and fucking secure boot prohibits me from partitioning the hdd and add linux Feb 18 17:19:00 hmm, new money is here Feb 18 17:19:20 is that a snooby rich person statement or, some other meaning? Feb 18 17:19:35 https://www.youtube.com/watch?v=1dF9t_xQGks Feb 18 17:20:20 that's their superbowl commercial Feb 18 17:20:25 "new money" Feb 18 17:20:33 meh... paypal is like 20 fucking years old, how is that "new"? Feb 18 17:20:43 they launched a new app Feb 18 17:21:11 Founded December 1998; 17 years ago Feb 18 17:22:16 * pfn submits an obligatory review Feb 18 17:27:20 yay Feb 18 17:27:30 Google Drive content provider doesn't support appending to files -_- Feb 18 17:31:16 useful for generating UUID with live template in AS: groovyScript("UUID.randomUUID().toString().toUpperCase()") Feb 18 17:31:56 adq what are you thoughts on groovy? Feb 18 17:32:05 no thought Feb 18 17:32:19 good nor bad? Feb 18 17:32:23 ???? Feb 18 17:32:25 both Feb 18 17:32:34 elaborate please Feb 18 17:32:37 groovy is teh suck :P Feb 18 17:32:47 adq, although that's kinda neat, but how often are you generating uuid literals... Feb 18 17:32:50 it's like everything wordsToLiveBy, it has pro & con Feb 18 17:32:56 pfn, you're bsing but honest thoughts. Feb 18 17:33:02 pfn, not often, but right now i'm gonna generate maybe a hundred of them Feb 18 17:33:21 and randomUUID.toString is always uppercase from what I recall Feb 18 17:33:23 also i don't use so often live template, i think i should make use of it more Feb 18 17:33:32 the output was not uppercase when i tested Feb 18 17:33:38 adq, that can be said about everything... I was more looking for your likes versus dislikes. Ive been contemplating picking it up. And wanted others opinions on it. Feb 18 17:34:03 only reason to pick up groovy: to script your gradle builds Feb 18 17:34:16 wordsToLiveBy, seriously i cannot really criticize groovy, i've used it long time ago with some crazy stuff with websphere & sqlserver & etc... like 3 or 4 layers of languages nested in each other Feb 18 17:34:31 and i just know gradle supports groovy, and AS too in the template thingy Feb 18 17:37:12 Should I hardcode my navigation drawer items? Or just create a HashMap containing the item name as key and the target activity as value :S ? Feb 18 17:37:30 which basically is hardcoded but still :P Feb 18 17:38:56 actually, it'd be nice if live templates supported javascript Feb 18 17:39:02 it's interesting that intellij does groovyScript Feb 18 17:39:07 but not jsScript Feb 18 17:39:15 since a js engine has shipped with the jdk since java6 Feb 18 17:40:06 yup Feb 18 17:40:19 i'm not fan of js, but i could find some use of it too Feb 18 17:40:29 some would like python Feb 18 17:40:35 (considering I already know javascript and it's already embedded, it'd be nice to do for one-offs, instead of groovy, where syntactically, it's often like java, but not) Feb 18 17:40:47 Anyone got any experience with GCM? Feb 18 17:40:52 what i found horrible was the combobox to enter the code in AS.. Feb 18 17:40:59 ticket for tomorrow (1 per day max) Feb 18 17:41:13 http://imgur.com/yxRxAkr < Feb 18 17:41:14 python would be ok as well, since there's jython... Feb 18 17:41:23 like wtf Feb 18 17:41:54 archheretic, some ppl here use GCM you would better directly ask a precise question Feb 18 17:42:02 Im not really sure where my problem lies, If I go under Google Cloud Messaging -> usage Feb 18 17:42:03 if they are willing to answer, they will Feb 18 17:42:20 can I see if the server has sent any messages there? Feb 18 17:42:25 Im not sure where the broken link is Feb 18 17:43:06 I can get a token on my app Feb 18 17:43:24 And I use the Api key on the server Feb 18 17:44:02 but when I send a message from the server nothing shows up in the app Feb 18 17:52:30 http://pastebin.com/bYqhD65J Feb 18 17:52:43 archheretic that script will let you test send a message to your app Feb 18 17:53:14 you have to add your api key and reg id, but once you do, it can send directly to gcm... if it gets to the device then its something borked in your server setup. Feb 18 17:55:43 reg id is that the "device token" or project id or something else? :p Feb 18 17:56:16 https://developers.google.com/cloud-messaging/registration Feb 18 17:57:52 aha thanks Feb 18 17:59:32 DO I add the reg id after the \"A\" ? Feb 18 18:05:00 delete the A and add it between the "" Feb 18 18:06:02 I want to run a function reoccuringly. AlarmManager seems almost perfect, but to me creating a BroadcastReceiever to receive the intent just to run a function from somewhere seems excessive Feb 18 18:06:14 ie... \"MYKEY\" Feb 18 18:06:17 Is there another valid option? Feb 18 18:08:48 http://developer.android.com/reference/java/util/concurrent/ScheduledExecutorService.html Feb 18 18:08:52 http://stackoverflow.com/questions/23774720/which-is-better-scheduledexecutorservice-or-alarmmanager-in-android Feb 18 18:08:55 falcom Feb 18 18:15:38 wordsToLiveBy: Thanks, Actually i think i need to use Timer as I might need to cancel the task at certain conditions Feb 18 18:19:50 is it necessary to pass the version number to the sqlite helper constructor every time you initialize it Feb 18 18:19:52 ? Feb 18 18:20:35 yes Feb 18 18:20:51 thatss how it determines if it has to run an upgrade or not Feb 18 18:22:07 so every time i upgrade the database i have to go through 30 different files changing a number? that looks pretty handy Feb 18 18:22:32 not if you design it properly Feb 18 18:22:41 or i could store that into a variable in a config file or something Feb 18 18:22:45 that's what i do on my server Feb 18 18:23:32 or you make a factory method Feb 18 18:23:50 thats pretty much the same than having a config file Feb 18 18:24:04 singleton that contains config values. Feb 18 18:24:10 a factory method can do more. like returning a singleton Feb 18 18:24:29 but i only need to store the database version number Feb 18 18:24:31 usually you dont want to intantiate more than one database connection per app Feb 18 18:24:56 what do you mean with that? Feb 18 18:25:04 Twirl you dont have vavrious cocnfiguraion data for your app? Feb 18 18:25:30 wordsToLiveBy: i guess Feb 18 18:26:22 * wordsToLiveBy has yet to write an application that doesn't have a config file Feb 18 18:26:27 you can also extend the database helper and change the constructor to pass the number to super but not requireing it in calls to the extended version Feb 18 18:26:55 yes that is what i'm doing Feb 18 18:32:49 Should android images go up in size in 4 pixels or 8? Basically if my designer hands me an mdpi that 37px x 37px, should I ask for a 38 x 38px image instead? Feb 18 18:34:10 your image should be sized according to the size it will have on the screen. Feb 18 18:34:37 if it takes 38px on your reference device and this device is mdpi, use a 38px image Feb 18 18:38:01 I seem to get error 401 when i try to send a push notification to an android device. I use an android api key on GCM is thatwrong? Feb 18 18:39:39 30 files to change a constant? Feb 18 18:39:42 you're doing it wrong Feb 18 18:39:44 stop using magic numbers Feb 18 18:42:20 Would a timertask still be going if the user sleep the phone, or use another app? Feb 18 18:43:56 danijoo: Yeah, I guess that's what I mean though, if I wrap content on an imageview, and its 37px baseline, then should I request the designer to work in multiple of 4? Feb 18 18:44:15 eghdk_, not required Feb 18 18:45:43 danijoo: I could've sworn I read that everything should be done in like 4 or 8dps just because it scales to different buckets better. Like a 37px image at mdpi is like 55.5px at hdpi but I get your point. Might be better but not required. Feb 18 18:48:25 in my exp theres not a huge difference but try it out Feb 18 18:49:54 danijoo: okay thanks. just wanted to make sure I'm not breaking a hard rule. 2 more things since we're on the topic. If I have an imageView and all my assets, should I set the height and width accordingly or is wrap content cool. Asking mostly to see if one way is better than another for perf or something. Feb 18 18:57:58 i dunno. i usally play arround with the settings until it fits Feb 18 18:58:42 in some cases a hardcoded size works, and in some you want to wrap Feb 18 19:07:38 falcom, until it gets killed, yes Feb 18 19:08:21 timer task is generally bad Feb 18 19:08:31 you need to stop it manually Feb 18 19:11:01 what permissions are required for an app to foreground itself on a locked device (when an incoming call is happening) Feb 18 19:12:38 probably something requiring system or systemOrSignature Feb 18 19:27:05 pfn: what are some other alternative. AlarmManager, ScheduledExecutorService is a no go for me Feb 18 19:28:00 Can anybody plz link me the official licence for the Google Play Services client library? Cant find it *anywhere*... Feb 18 19:30:27 falcom, how are they no-go, and what are your requirements Feb 18 19:32:40 pfn: I just want to run a function at a certain interval. The interval can be change depending on some events. AlarmManager seems overkill because it works even when app is exited(it also forces the usage of Intents). ScehduledExecutorService doesnt work because it has no way to cancel a reoccuring task. Feb 18 19:34:27 danijoo: my last question was, so what if I want a full bleed image as my background. I don't make multiple resolutions of that do I? Feb 18 19:34:29 pfn: So far right now, I'm using Timer. Its interface for my situation isnt perfect(To reschedule, I will have to cancel/purge/schedule) but can do what I want. Feb 18 19:35:30 falcom: seems like handlerthread or timer will do the trick for your use case. Feb 18 19:35:49 scheduled executor service let's you cancel Feb 18 19:41:04 is it possible to push a notification to an android,then when the android gets that notification it sends a request to my server, in other words is there a way on the android to listen for the notification coming in, then automatcially send a request to the server instead of having to push a button to send the request? Feb 18 19:41:20 eghdk_, depending on what the background actually is you could also use a fraction of it on devices with smaller resolution. or scale it down with BitmapFactory Feb 18 19:42:08 downscaling is cpu intensitive but it will save you the space multiple large images will use. so there are pros and cons for both approaches Feb 18 19:44:05 danijoo: Well on a tablet I want it to be edge to edge, and also on a phone. But on the phone I'm okay with doing a crop. Are you saying I should still use bitmap factory to display the huge image on a phone? Isn't that what ImageView does for me? Feb 18 19:45:26 in other words is is possible to put a background listener, when the notification comes in the listener tirggers a request to my server? Feb 18 19:47:51 falcom, you can cancel any jobs scheduled on an ExecutorService Feb 18 19:48:07 falcom, scheduled executor or not Feb 18 19:50:16 eghdk_, no imageview wont do that. for tablet your image will be larger and you dont want to load the whole image into memory in the same size on a phone. With the factory you can make sure the scaled down version is loaded into memory and the apps footprint stays smaller Feb 18 19:50:30 Picasso takes care of that for you if you want. ImageView wopnt Feb 18 20:25:34 so is this google guide (https://developers.google.com/cloud-messaging/android/start) saying that when a push notification is sent to an android via GCM by overriding the GcmListenerService.onMessageReceived i could then do the following: send a push notification to my android, when the device gets the notification i could then send a request to my server? Feb 18 20:25:36 eheh, i got a new kbd, just started to config it for AS.. which as too many shortcuts: http://i.imgur.com/FqRjjhz.png Feb 18 20:26:10 you guys, I was just wondering... how much effort would it take to get the sdk manager for Windows to be a signed executable? Feb 18 20:27:03 not only the sdk manager Feb 18 20:27:08 even AS binaries are not signed -__- Feb 18 20:29:22 hmm, it'd be nice if the play store had an api apps could use to query information Feb 18 20:29:47 update status, review status, etc Feb 18 20:30:42 i thought there was one, with gsutil or something Feb 18 20:31:03 also andlytics is able to retrieve playstore data (but at the cost of full account permission :( ) Feb 18 20:32:15 I mean for apps to detect their own status Feb 18 20:36:05 long time ago, there was an unofficial market-api which reversed the protobuf of "android market" and it was doing what you ask Feb 18 20:36:11 Anyone knows a bit camera2, i'm using it on a nexus 10 but the camera texture view appear shifted at 90 but the picture taken is at correct orientation http://pastebin.com/W2KfhCyk Feb 18 20:36:44 but after many years many things changed, the auth is more robust and google prevented to use this kind of thing, probably not allowed too Feb 18 20:37:22 Does anybody know what the tag is to format a FeebBurner website into RSS or XML ... I think its something like http://feeds.feedburner.com/popsugar?=RSS Feb 18 20:41:01 Hi Feb 18 20:41:14 I want to develope Android apps but I don't know which language should I begin from. Feb 18 20:41:29 java Feb 18 20:41:32 Most people say Java but the language is dying so I'm not willing to learn it. Feb 18 20:41:37 lol Feb 18 20:41:39 no it isn't Feb 18 20:41:59 everyone here will tell you to go learn java Feb 18 20:42:14 but java hasn't climbed in popularity on TIOBE significantly in years Feb 18 20:42:19 java is clearly dead Feb 18 20:42:19 theres no choice in android (for beginners) Feb 18 20:42:28 you can't climb beyond #1 Feb 18 20:42:33 dreamreal, You are here, haha xD Feb 18 20:42:35 pfn: shhh, keep logic out of this Feb 18 20:42:41 most people don't know anything Feb 18 20:42:44 He's probably not smart enough to work that out Feb 18 20:42:57 "java is dead! It's been at #1 for years now!" Feb 18 20:43:31 dreamreal, If it's number 1, then how do you say that it's dead? Feb 18 20:43:42 FunnyKong: because it hasn't climbed in years. Feb 18 20:43:48 I mean, you're the one who had the question... Feb 18 20:43:51 java the language does suck, especially on android, but if you don't have a firm grasp of Java, you cannot be successful at android Feb 18 20:44:02 FunnyKong, you need to tune your sarcasm detector Feb 18 20:44:04 dreamreal, I want to learn a language that would let me write Android apps. What do you suggest? Feb 18 20:44:05 FunnyKong: http://i1.kym-cdn.com/entries/icons/facebook/000/012/132/thatsthejoke.jpg Feb 18 20:44:09 FunnyKong: C! Feb 18 20:44:12 FunnyKong: Java Feb 18 20:44:13 For you, C. Feb 18 20:44:53 pfn, Why sarcasm have I missed? Feb 18 20:44:58 I don't want to ever have to answer a question asked by someone who wonders if Java is dead in 2016. Feb 18 20:45:08 dreamreal, Wow! Is it possible to write Android apps in C too? Feb 18 20:45:17 dreamreal, That would be great with the native speed of C! Feb 18 20:45:17 I dunno, I use that dumb ol' dead java Feb 18 20:45:21 FunnyKong: hahaha Feb 18 20:45:29 FunnyKong dreamreal is trolling you. just start with java Feb 18 20:45:32 okay, you won that round Feb 18 20:45:36 Noooooooooooooooooooo! Feb 18 20:45:45 dreamreal, I didn't want to be trolled :( Feb 18 20:45:46 java or gtfo Feb 18 20:45:47 I'm not trolling him at all, I'm presenting valid data, just spinning it in a stupid way Feb 18 20:45:49 dreamreal, crying Feb 18 20:46:10 it's not my fault if the obvious data, with the also-obvious conclusion, eludes him Feb 18 20:46:47 Guys, neither you own Java language nor did you implement it. So please give an un-biased answer. Feb 18 20:47:03 java or gtfo Feb 18 20:47:10 dreamreal, is C already dead Feb 18 20:47:15 pfn, O_O You here too? Feb 18 20:47:19 pfn, woooo Feb 18 20:47:32 * g00s bewildered, what the hell is happening Feb 18 20:47:42 he's a troll, obviously Feb 18 20:47:47 pfn, me? Feb 18 20:48:07 C actually went down on TIOBE last year, so it's probably dead too Feb 18 20:48:14 FunnyKong: The unbiased answer is Java Feb 18 20:48:20 pfn, Why should I troll people who are kind and putting time to help me? That would be bad. Feb 18 20:48:29 pfn: that's why I have no problem telling FunnyKong what I'm telling him: truth, spun Feb 18 20:48:37 hmm, a downside of using a non white theme for intellij, can't see the color previews in IDE very well Feb 18 20:48:38 because we’ve told you the answer, and you refuse to accept it Feb 18 20:49:32 s73v3r, How about Scala? Feb 18 20:49:49 you're too dumb for Scala Feb 18 20:50:05 java or gtfo Feb 18 20:50:32 See, *I* didn't say he was dumb. I merely implied it. Feb 18 20:50:36 You're a meanie. Feb 18 20:50:41 indeed Feb 18 20:50:54 FunnyKong: Do you already know Scala? Feb 18 20:50:59 pfn, it seems both choices are dead languages. I would go with C since it can run at native speed. Feb 18 20:51:07 s73v3r, just introductory info. Feb 18 20:51:21 See? we all win. He's going to use C and leave us alone. Feb 18 20:51:29 neither are dead languages. And talking about “native speed” is the surest way for us to know that you have no idea what you’re talking about Feb 18 20:51:35 The C channels are going to suffer, but hey Feb 18 20:52:15 s73v3r, Yes I don't much about this Feb 18 20:52:33 dreamreal, So the Ezazel stays with Java channel to bring more suffer :)))) Feb 18 20:52:36 FunnyKong: with all due respect, even your questions are dumb at this point Feb 18 20:52:37 so go with the path of least resistance: Java Feb 18 20:53:05 java's neither dead nor dying (same for C, for that matter), and android development starts (and nearly ends) with Java. Feb 18 20:53:47 dreamreal, being dumb is ok, but willing to stay dumb is not. Feb 18 20:54:21 for you to ask if you should use Java for android is catastrophically stupid. Yes, I agree, being willing to stay dumb is tragic. But none of this information isn't clearly and obviously available on google or ... you know, anywhere. Feb 18 20:55:05 seriously, it is old. it’s asked almost every other week on /r/androiddev Feb 18 20:55:17 java is not dead.. Feb 18 20:56:48 dreamreal, You are right. But it's not sixties. We wake up everyday and face new things invented. I did also search on Google, but the pages were not new as this channel. Feb 18 20:57:09 in fact, lately Java's not even DYING Feb 18 20:57:21 FunnyKong: go on, go ahead Feb 18 20:57:44 :) Feb 18 20:58:03 it will take a pretty incredible language to come along for C to die Feb 18 20:58:23 i guess question is, /should/ C die ... probably Feb 18 20:58:30 g00s: nah Feb 18 20:58:31 not yet, for sure Feb 18 20:58:32 dreamreal, have nothing to go on. Feb 18 20:58:42 no, knock it off Feb 18 20:58:46 zinx: it'd take a lot to kill Java off of it's current growth cycle, too Feb 18 20:58:58 there's no replacement for C that fills the nich C does Feb 18 20:58:59 every god damned resource out there says Java is the language of Android. Feb 18 20:59:08 i wish typedarray fields would be directly accessible like R.array.atypedarray.fieldfoobar1 Feb 18 20:59:10 Java is the language of Android. Feb 18 20:59:11 Thank you all guys Feb 18 20:59:16 Answers were great. Feb 18 20:59:19 almost all the APIs are Java Feb 18 20:59:33 (to access them via C, you have to call into Java with JNI) Feb 18 20:59:53 there are few examples of native activity too, but good luck Feb 18 20:59:54 See? Java sucks so bad that they had to provide a way to call it from C! Feb 18 21:00:25 how can ppl be entertained by low troll topics like C vs Java -___- Feb 18 21:00:28 hello can anyone tell me to launch app chooser for a link on a webpage ? Feb 18 21:00:45 came across http://stackoverflow.com/a/15596909/465974 Feb 18 21:00:49 but that is app specific Feb 18 21:00:53 isn't it called "deep linking" Mavericks? Feb 18 21:01:02 right Feb 18 21:01:07 http://developer.android.com/training/app-indexing/deep-linking.html Feb 18 21:01:09 ^ start here Feb 18 21:01:19 thank you adq will take a look at it now Feb 18 21:01:25 sorry, #android-dev - followed FunnyKong from ##java Feb 18 21:03:25 anyone using Wiremock inside their test apk? Feb 18 21:04:11 adq: i think it talks more about android specific code Feb 18 21:05:50 then sorry Feb 18 21:06:00 adq: is there uri scheme or one that functions similar to protocol like mailto: Feb 18 21:06:11 market:// i think Feb 18 21:06:57 oh great! will try that thanks adq Feb 18 21:07:02 oops that's only for launching the playstore Feb 18 21:07:48 oh right Feb 18 21:07:52 i'm pretty sure you have to make your app aware it can be launched Feb 18 21:08:19 and that's what deep linking refers too via intent & stuff, but i've never tried Feb 18 21:09:24 i see Feb 18 21:09:25 based on the deep link doc page above, you could launch your app when user clicks a link like: Mavericks://launchmyapp Feb 18 21:09:42 sounds good Feb 18 21:09:49 for example let us say yousee page like http://possiblypublicfiles.s3.amazonaws.com/test%20intent%20link.html Feb 18 21:09:57 in any of android browsers Feb 18 21:10:25 clicking on link in the page should trigger app chooser menu ? Feb 18 21:10:50 you have a second page to read: http://developer.android.com/training/app-indexing/enabling-app-indexing.html Feb 18 21:12:46 umm, isn't the Mavericks://launchmyapp kind of stuff part of framework since intents were a thing? Feb 18 21:16:15 deep linking itself is extensions to make things like google search aware that your website has actions that trigger this and this app etc. Feb 18 21:18:14 right, then it's just intent filtering so Feb 18 21:23:34 some history: four or five years ago i started on android development. web told then to use service classes to handle background operations with some sort of user feedback and orientation change, eg progress bars Feb 18 21:25:07 eventually, the webs' told me to go back to AsyncTasks with fragment and setRetainInstance(true) Feb 18 21:25:33 do most of you store the string of your broadcasts in a resource file? Feb 18 21:25:49 the name of the broadcast, i mean Feb 18 21:26:18 i've never given a damn Feb 18 21:26:19 anyone try embedding a mock web server in their test APK so they can control responses for Espresso tests and the like? Feb 18 21:27:18 adq: yea that link talks about android app specific just not the android apps generic chooser/launcher Feb 18 21:27:34 my question: should i abandon services and use fragments with setretaininstance(true)? Feb 18 21:28:49 thebishop, i've only found using string resources for broadcast actions when doing multi-variant builds that generated apks with different packages Feb 18 21:28:59 s/using/useful Feb 18 21:29:16 Hi, the warning Warning:(5, 6) On SDK version 23 and up, your app data will be automatically backed up and restored on app install. Consider adding the attribute `android:fullBackupContent` to specify an `@xml` resource which configures which files to backup. More info: https://developer.android.com/preview/backup/index.html should point to https://developer.android.com/google/backup/index.html instead. How can I request Feb 18 21:29:16 this change in Android Studio? Feb 18 21:31:33 file an issue Feb 18 21:32:58 Could someone help me with designing a Firebase class within my Java? Feb 18 21:33:34 I'm unsure how I'm supposed to get it to work, do I just write a Firebase class for what's already been stored for the same object in my cloud based Firebase database? Feb 18 21:37:49 markyosullivan saw this the other day https://goo.gl/7xj9Cl Feb 18 21:38:04 I think I'm starting to get it :) Feb 18 21:38:24 I didn't implement the get and set method for the item I was trying to get from the database Feb 18 21:38:37 It seems that the classes have to be plural Feb 18 21:38:45 So User = Users for firebase Feb 18 21:38:56 whereas I'd naturally just write User for a java class Feb 18 21:39:24 g00s: flip dude you're on the ball :P Feb 18 21:39:28 only out a couple of days Feb 18 21:39:42 ;) Feb 18 21:40:51 so I am using FusedLocationApi with a pendingIntent. All works when started from the MainActivity. I now want to add a BroadcastReceiver, to start location updates on boot. My question is, is it OK to have/start 2 separate instances of locationRequests (once from the MainActivity and the other from the BroadcastReceiver Feb 18 21:41:21 g00s: I've seen this example already, but it wasn't in this video I seen it. I can't remember where I seen it though :( Feb 18 21:41:42 Though looking at it now it'll be a good for me to look over how they made their Firebase object in Java Feb 18 21:41:57 bitkiller, thanks Feb 18 21:43:17 Thanks for linking it over g00s :) Feb 18 21:43:25 markyosullivan np Feb 18 21:44:11 Not sure if it'll do what I need, seems to simplistic. Doesn't seem like they have getter and setter methods for the class which they have in Firebase Feb 18 21:50:22 Strange Feb 18 21:51:04 seems that Firebase checks for get() method to see if it's implemented in the Java class Feb 18 21:51:33 for example, I have a field stored in my Firebase database under my user object called 'role' Feb 18 21:51:44 I originally had getRole() Feb 18 21:51:59 changed it to getTheRole() Feb 18 21:52:03 stops working Feb 18 21:53:37 can you delete a file from the android device monitor? Feb 18 21:54:37 I would like to delete the database because i'm testing it so it would make my life easier really Feb 18 21:55:45 you have put the database in a lcoation that it can be access from adb Feb 18 21:56:16 adb run-as Feb 18 21:56:43 What is the most efficent way of parsing: 2016-02-19T02:25:00.000+1100 Feb 18 21:56:45 well, it lets me "pull file from device" but idk how to delete it Feb 18 21:57:02 adb shell and then rm ...? Feb 18 21:57:18 as in rm file.sqlite Feb 18 21:57:24 3 Feb 18 21:57:45 adb shell and then help..? Feb 18 22:02:12 adb shell run-as Feb 18 22:04:19 ooo iTerm2 v3 looks nice Feb 18 22:18:18 hahahaaha y’all nerds crack me up Feb 18 22:18:49 I want to call notifyDataSetChanged() on a recyclerview once a minute. How to do this...? Feb 18 22:20:14 regan, postDelayed on a UI handler Feb 18 22:20:42 pfn, googling and stack overlfowing in be back later thanks Feb 18 22:20:42 b4b sure is annoying, into ignore list he go Feb 18 22:21:30 g00s: iTerm2 v3? Feb 18 22:21:56 s73v3r https://iterm2.com/version3.html Feb 18 22:22:08 oh, snap... err help... won't parse... Feb 18 22:22:10 // Format is: 2016-02-19T02:25:00.000+1100 Feb 18 22:22:10 SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss+Z"); Feb 18 22:22:36 +Z doesn't work on android Feb 18 22:22:42 s73v3r maybe they should call it iTerm3 :| Feb 18 22:22:47 yeah Feb 18 22:22:51 so how..? Feb 18 22:22:53 still, looks really nice Feb 18 22:23:18 drop the last 5 characters off the string...? Feb 18 22:24:38 ok. if the operation happens the context of only one activity, the interwebs says i should use fragments to hold the task Feb 18 22:24:49 "in the context" Feb 18 22:25:50 if it spawns through more than one activity or full background, then service is recommended Feb 18 22:26:19 thus, i'm gonna keep using service for everything Feb 18 22:29:30 where do you guys subscribe to observables for user input? onResume? Feb 18 22:31:28 when overriding onPause() should I call super after my code or does it matter? Feb 18 22:38:02 grekkos, doesn't matter Feb 18 22:38:28 ugh, wtf doesn't my dialog fragment honor my animation styles Feb 18 22:38:56 pfn: alright I didn't think so, trying to find a possible bug with this tracker... Feb 18 22:43:46 lol AndroidNewb and his question what motivates people to make programs for free :D.. Feb 18 22:44:04 (for some odd reason my mirc does not auto-rejoin *sigh*) Feb 18 22:46:22 hm why does Spinner.getSelectedItem().toString() return both key and value? (e.g. "1=Something") Feb 18 22:47:33 because what else would toString on it return Feb 18 22:48:08 Aoi: toString() is the string representation of the object Feb 18 22:48:17 well I suppose this is fair.. I just wish there was a simple way to just get the key or the value (sure - I can perform string operations, but that's not what I meant) Feb 18 22:48:33 Aoi: you *shouldn't* perform string operations Feb 18 22:48:45 what if I only need the key or the value then? Feb 18 22:49:15 I'd just split it by '=' and get the first or second string in the array.. Feb 18 22:49:15 I'm not familiar with Spinner, but I'm sure there's another method on the object that getSelectedItem() is returning that should be able to help you Feb 18 22:49:19 or is there a smarter way? Feb 18 22:49:24 so wrong Feb 18 22:49:31 get the item from your adapter Feb 18 22:49:47 Aoi: that's not how toString() is intended to be used... if for some reason the implementation of that method changed you'd be SOL Feb 18 22:50:10 Aoi: although sometimes it could be intended for that, i guess... You'd have to read that implementation's documentation to know for sure Feb 18 22:51:08 hmm my docs aren't even showing Spinner#getSelectedItem() Feb 18 22:51:10 hm thanks.. I suppose pfn's suggestion is the smartest .. I just need to find out how to do that - thanks for pointing me in the right direction! Feb 18 22:51:18 no worries Feb 18 22:51:29 I asked cause it felt wrong to use .toString D: Feb 18 22:51:41 that's a general rule for toString() Feb 18 22:52:03 they're generally not designed to be used programmatically Feb 18 22:52:23 hehe yeah Feb 18 22:53:11 interestingly, getSelectedItem returns the adapter item Feb 18 22:54:03 also many SO answers say Spinner.getSelectedItem().toString() should be used.. hmpf Feb 18 22:54:38 stackoverflow is wrong Feb 18 22:54:56 pfn: is that an AdapterView method? Feb 18 22:55:04 yes Feb 18 22:55:13 explains why it didn't pop up in my docs Feb 18 22:55:14 i guess Feb 18 22:55:16 hehe.. does not happen too often, but I guess you are right.. I'll go and see Feb 18 22:56:10 some suggest using the OnItemSelectedListener Feb 18 22:57:07 doesn't happen often? they're wrong very often Feb 18 22:57:22 well - it worked for me most of the time Feb 18 22:57:52 hmm... anyone here used Android for Work stuff? Feb 18 22:58:07 usually they *work* but not necessarily in a way that is valid/proper Feb 18 22:58:13 nup D: my workplace is lightyears behind Feb 18 22:58:26 p_l: define "work stuff?" -- I think that's actually all I use it for ;p Feb 18 22:59:15 "Android for Work" stuff, I'd guess Feb 18 22:59:27 oh is it an app? Feb 18 22:59:36 ^ Feb 18 23:01:58 pfn - just to sum it up - you suggest instead of using that getSelectedItem().toString() (or cast) I should implement an OnItemSelectedListener to uhm somehow return all I need? Feb 18 23:03:06 Aoi, cast Feb 18 23:03:16 grekkos: framework for MDM devices Feb 18 23:03:26 s/devices/software/ Feb 18 23:03:45 the idea is to provide an enclave so you can join an MDM scheme without surrendering full control over device Feb 18 23:04:38 ah - so cast Spinner.getSelectedItem() to AdapterView and go from there? Feb 18 23:07:55 no Feb 18 23:08:07 cast it to the type. contained in your adapter... Feb 18 23:09:16 hm.. so (String) ((Spinner) view).getSelectedItem(); (if I am displaying a single string only)? Feb 18 23:09:39 ? Feb 18 23:12:36 ... what is in your adapter Feb 18 23:13:55 a LinkedHashMap I think ... I'll see.. thanks anyway Feb 18 23:19:59 finally I understood I think... casting it to a LinkedHashMap$Entry and using .getValue() did the trick! Thanks! Feb 18 23:31:51 y’all nerds wouldn’t understand on that grown folk watching tmz tip Feb 18 23:35:00 drunk? Feb 18 23:37:05 I'll be impressed if he can decphier his own meaning Feb 18 23:38:27 i put all the drunk people on /ignore Feb 18 23:39:23 test Feb 18 23:39:28 failed Feb 18 23:39:43 i kid, i kid Feb 18 23:40:07 g00s some people may be intelligent drunks :D Feb 18 23:40:38 he’s still annoying, and quite frankly that “y’all nerds” thing is getting old and borderline offensive now Feb 18 23:40:38 http://stackoverflow.com/a/20698168/1700895 Feb 18 23:40:48 ugh, why have I never found this before... Feb 18 23:41:12 I've always wondered why my line length was completely fucked up, I thought it was a Windows thing Feb 18 23:42:20 the PS1 I copied years ago put \W inside of \[\] so it was fucking up my line length Feb 18 23:42:35 hanging out with angry computer nerds, it’s why i got a subaru Feb 18 23:43:26 angry computer nerd standards have been falling dramatically in the last couple of years Feb 18 23:43:44 subaru? lol Feb 18 23:44:02 nowadays half of the world population could be considered an angry computer nerd Feb 18 23:44:07 maybe it's a bot Feb 18 23:44:52 speaking of things that people may not have found before: https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fdmytrodanylyk%2Ffolding-plugin%2Freleases&sa=D&sntz=1&usg=AFQjCNEFXF3Wlp0-NvpvZvNYZNMFgcVERQ Feb 18 23:45:06 err: https://github.com/dmytrodanylyk/folding-plugin/releases Feb 18 23:45:20 it’s a plugin for Android Studio which helps to organize your layout and resource folders Feb 18 23:45:29 github now allows to drag and drop files into the repository .. wonder if implementing this was worth it. Feb 18 23:45:43 I cant believe this is used for more than README.md Feb 18 23:46:03 other documentation/resource files as well, I’d bet Feb 18 23:46:10 ah nice find s73v3r :D Feb 18 23:46:15 yes but thats all Feb 18 23:46:18 s73v3r, that's pretty cool, virtual folder is nice Feb 18 23:46:32 you've set me off on an android plugin hunt now! Feb 18 23:47:04 danijoo: i wouldn’t say that’s all, as those could be a decent part of the project. And probably the parts of the project touched by those who aren’t that technical Feb 18 23:47:10 there was a post about it last year on g+ Feb 18 23:47:14 s73v3r: thing with that is you have to be in the Project view structure Feb 18 23:47:19 iirc there is a caveat, i just don't rmember which one Feb 18 23:47:39 being able to drag drop into github is awesome for maintaining a github.io site Feb 18 23:47:45 absolutely awesome Feb 18 23:47:57 that too Feb 18 23:48:43 hm why is that file grouping plugin not in the repo Feb 18 23:48:46 it looks nice Feb 18 23:49:32 maybe JetBrains doesn’t want a plugin that really only works for Android Studio? Feb 18 23:49:55 why should it not work with Intellij? Feb 18 23:50:07 there are other android related plugins in the repo too Feb 18 23:50:58 oh wow this plugin is truly awesome Feb 18 23:52:47 any plugin can. be added to the repo Feb 18 23:52:59 it's not in the repo because the dev didn't bother yet, probably Feb 18 23:54:31 I’m having trouble finding this: How do I use a smart quote in strings.xml? ’ is what I want but that displays like a regular ‘ Feb 18 23:56:36 you need to use both symbols Feb 18 23:56:57 What do you mean? Feb 18 23:57:03 I want a “smart apostraphe” Feb 18 23:57:25 you said quote, not apostrophe Feb 18 23:57:53 choose a font where it renders differently from ' Feb 18 23:57:54 Sorry, they’re generally called smart quotes, but I want the single right apostraphe Feb 18 23:58:07 Oh it’s a font issue'/ Feb 18 23:58:08 ? Feb 18 23:58:47 no idea how you're comparing or looking at it Feb 18 23:59:04 … haven’t … Feb 18 23:59:11 but & #8217; should certainly render differently from ' Feb 18 23:59:25 put them side by side, and I'm sure it will look different Feb 19 00:01:32 pebcak Feb 19 00:01:42 I was changing a different string :| Feb 19 00:01:54 An almost-identical one that’s apparently not used anymore Feb 19 00:03:37 the usual case Feb 19 00:20:27 if I show app switcher and swipe does android close my app 100% or does it exist somewhere for a little while until some kind of garbage collection happens? I'm trying to trace some bugs related to "app launch" events Feb 19 00:23:09 it is killed without hesitation Feb 19 00:24:53 I'm tryin gto figure out if I did something wrong or if it's in this tracking library... it's supposed to track how many app launches have happened (among other things) and send an event when the app is launched... But I only see it when I do a fresh install or if I kill the app and wait a few minutes and try again Feb 19 00:25:26 seems like it might be working as intended to me, but its iOS counterpart is showing some *other* behavior Feb 19 00:25:42 anyway, thanks for the info Feb 19 00:25:51 depends on what it counts as launches Feb 19 00:26:21 exactly Feb 19 00:26:42 so that's why I'm wondering if there's something that android does or if it's something the library is doing Feb 19 00:27:18 ah never mind that time it didn't fire either Feb 19 00:28:08 my guess: It just increments in Applications onCreate Feb 19 00:28:46 yeah it's not so much the increment I"m worried about: i'm not even seeing the network call fire Feb 19 00:29:31 hello Feb 19 00:30:08 trying to make an app that listens to voice commands Feb 19 00:30:42 is it possible to make a background service that can listen to speech? Feb 19 00:31:11 also, is it possible to make a button/widget to listen to speech on the lockscreen? Feb 19 00:55:06 what is the preferred framework for doing unit tests in a mostly kotlin application? Does JUnit still work alright? Feb 19 00:57:47 yes Feb 19 00:58:35 groovy Feb 19 00:59:27 i have a button, that shows an activity. if i press it twice quickly, it launches 2 activities. do people actually test for debouncing that kind of thing? Feb 19 01:02:01 id bounce things that are critical and ignore everything else Feb 19 01:07:53 Does anyone has tips for performance optimisations on Android..? Any favourite tutorials or such..? I think I have memory leaks or stuff not cleaned up my the garbage collector at least Feb 19 01:10:37 regan, too many things involved, first identify your bottleneck(s), measure, profile, and then try to find a solution Feb 19 01:10:48 regan: watch the #perfmatters series of videos Google put out Feb 19 01:10:53 Android Performance Patterns Feb 19 01:11:10 use a profiler and fix hot spots Feb 19 01:11:26 before optimizing prematurely use sound design patterns Feb 19 01:11:29 #windows-phone is empty Feb 19 01:11:32 i do g00s Feb 19 01:11:35 oops wrong channel Feb 19 01:11:52 hm guys does Android Studio support organizing imports on save action? Feb 19 01:12:00 I am sure it does, but I can't figure where D: Feb 19 01:12:15 g00s, i tend to spawn few clicks to see what happens and deal with it, simply Feb 19 01:12:23 btw. I am loving AS / IDEA :o Feb 19 01:12:40 * Aoi used to love Eclipse >_>... Feb 19 01:12:51 Aoi, should be automatic Feb 19 01:13:01 you have an optimize import though if you right click your module Feb 19 01:13:16 I have eclipse keymaps so I can just CTRL+SHIFT+O Feb 19 01:13:27 but I thought I could set it up so it does it on its own whenever I save Feb 19 01:13:43 there is no much point to do it so often Feb 19 01:15:13 well odds are lower to keep unused imports if it does not happen every time Feb 19 01:15:18 higher* Feb 19 01:21:05 ah nice - I recorded a simple macro, which contains code -> reformat code followed by "save all" - and assigned it to ctrl+S Feb 19 02:04:10 getting instrmentation testing working is frustrating.... do we still need to use dexmaker? Feb 19 02:04:33 getting it working on jenkins is even more frustrating Feb 19 02:08:04 luckily i do not have to do that Feb 19 02:08:19 do you know about dexmaker, is it still needed, missingno ? Feb 19 02:35:20 wtf is dexmaker Feb 19 02:35:21 is there any reason to wrap your dialogs in fragments Feb 19 02:35:34 dexmaker-mockito probably Feb 19 02:35:57 and yes, you need that asdii--oops you are gone now Feb 19 02:36:47 huh, there is a DialogFragment in the support lib Feb 19 02:36:50 I wonder what it does... Feb 19 02:37:29 missingno: It's for saving the UI state (of the dialog) and, I guess, encapsulation. Feb 19 02:37:44 same thing as normal dialog fragments Feb 19 02:37:44 is it true there was 1 version of android that had a fortune telling api but was removed due to fbi? Feb 19 02:37:48 hmm Feb 19 02:38:01 Though it has all the horrible Fragment implications (including, for example, not being able to do FragmentTransactions after Activity.onSaveInstanceState). Feb 19 02:38:12 yes I am looking for excuses to not use it Feb 19 02:38:29 just let's you wrap a dialog in a fragment and optionally use it as a normal layout components Feb 19 02:38:53 seems like the main use case is preserving state Feb 19 02:39:16 like if I had a TimepickerDialog, I would want the selected time to remain there even if I did not click ok and proceeded to leave the app Feb 19 02:39:20 sounds trivial though Feb 19 02:39:40 like, sounds not worth it Feb 19 02:40:08 it's kinda nice to have a consistent api Feb 19 02:40:31 whether you render as a dialog or view Feb 19 02:42:42 AppCompatDialogFragment Feb 19 02:42:47 i'm using it, it's ok-ish Feb 19 02:43:07 what do you like about it Feb 19 02:43:14 lol the desc: "A special version of DialogFragment which uses an AppCompatDialog in place of a platform-styled dialog." Feb 19 02:43:23 "you're just special" Feb 19 02:44:50 missingno, i don't remember why i used it, probably because it's all v4 v7 in this project and iirc latest stuff (fixes & bugs) are first into compat libs Feb 19 02:45:15 might also be because of the low min sdk i'm using Feb 19 02:45:17 well Feb 19 02:45:27 why did you want to use dialogfragments Feb 19 02:45:30 so the UI is more or less uniform across different version Feb 19 02:45:34 as opposed to why did you use the appcompat one Feb 19 02:45:59 did you miss a "not"? Feb 19 02:46:14 i just answered if then Feb 19 02:46:46 man I suck at asking questions Feb 19 02:46:51 np Feb 19 02:47:47 oh sweet I found a cool article from 2012, when fragments were all the rage Feb 19 02:47:48 http://android-developers.blogspot.fr/2012/05/using-dialogfragments.html Feb 19 02:49:32 I am trying to recycle my views in my list adapter. I test for convertView == null, and if it is not then I update the text fields within and return the convertView Feb 19 02:49:55 hey, anyone have experience with USB OTG? Feb 19 02:49:57 that sounds odd erisco Feb 19 02:49:58 all the examples I have seen suggest that is what you're supposed to do… however, when I do this, items in the list are now out of order Feb 19 02:50:00 or USB Host? Feb 19 02:50:24 and sometimes they are in the wrong position and overlap each other, or scroll at different rates (like a parallax effect) Feb 19 02:50:35 so something is going awry… not sure what step I am missing Feb 19 02:51:05 hahahahahaaaaaaaaaa.. my cable was backwards.. Feb 19 02:51:13 i see there are alot of survivors from the irc riot last month Feb 19 02:51:15 (awwyes) Feb 19 02:51:22 tricknology, i haven't yet played with it, just read few things about, i plan to add midi keyboard support via usb OTG Feb 19 02:51:34 missingno, why does that sound odd? Feb 19 02:51:35 well if you need any code for it.. Feb 19 02:51:38 sec.. Feb 19 02:51:59 actually it does not sound odd and it sounds like you are doing it right Feb 19 02:52:07 and the issue sounds unrelated to getView Feb 19 02:52:24 if you do getView wrong, then your textfields get the wrong text Feb 19 02:52:29 it does not affect scroll Feb 19 02:52:43 unless you are doing other things to this view Feb 19 02:53:07 if I recycle the views I have these problems, whereas if I inflate new views each time then I do not Feb 19 02:54:42 adq: http://pastebin.com/N07UBk3M Feb 19 02:54:47 this paste will help you on your way Feb 19 02:54:53 it expires in 1 ay Feb 19 02:54:54 day* Feb 19 02:55:06 whats he trying to do Feb 19 02:55:07 Has anyone here had luck with the android nanodegree? Worth it? Feb 19 02:55:12 ive only gotten to calling enumerateDevices() or whatever its called Feb 19 02:55:14 For a beginner, that is. Feb 19 02:55:26 next would be to select a device, set it, then use it in setupConnection() Feb 19 02:55:30 then ??? Feb 19 02:55:31 gl hf Feb 19 02:55:56 thx tricknology, will keep it for later Feb 19 02:56:43 another common issue is the items have extra padding on the right Feb 19 02:57:25 computers are neat but the abacus still has the advantage Feb 19 02:57:54 do you have more than one layout type erisco Feb 19 02:58:15 no, all the list items use the same layout **** ENDING LOGGING AT Fri Feb 19 02:59:58 2016