**** BEGIN LOGGING AT Fri Apr 22 02:59:58 2016 Apr 22 03:06:19 hert: setup an interface Apr 22 03:07:24 b1ackcat: what do you mean by leave-behinds? Apr 22 03:08:04 I have a recyclerview in which items can be swiped off to the side, but rather than use the swipe for dismissing items, I'm trying to get them to reveal buttons behind the itemview Apr 22 03:11:55 b1ackcat: look at https://github.com/alex-townsend/SwipeOpenItemTouchHelper Apr 22 03:12:02 think that's what you're trying to do Apr 22 03:16:41 awesome, thanks! I'll dig through it soon. thanks for the material Apr 22 03:22:34 I have implemented the GCM in my app, but I not know if it is paid.. someone know about that? Apr 22 03:23:18 what is paid ? gcm or app ? Apr 22 03:24:10 gcm Apr 22 03:24:21 use the gcm to send notifications Apr 22 03:27:09 it's free afaik Apr 22 03:27:54 gordon_: nice. you know too if it is free to send notification to ios? Apr 22 03:28:03 no idea about ios Apr 22 03:28:11 okay thank you very much Apr 22 03:32:39 most annoying thing about Google’s autopredict text and the keyboard Apr 22 03:32:46 me@gmail. com Apr 22 03:32:55 or me@ gmail. com Apr 22 03:36:50 hello Apr 22 03:37:02 I am trying to get user location when button is pressed Apr 22 03:37:05 https://gist.github.com/anonymous/ef4f6623690fa464f1b3f72e6cca4ea1 Apr 22 03:37:34 but code seems to continuously request location after button is pressed Apr 22 03:38:37 how can I make it do that only one time when button is pressed. Apr 22 03:38:39 ? Apr 22 03:52:12 you need to unregister Apr 22 03:52:59 .removeUpdates(listener) Apr 22 04:02:39 unregister them receivers Apr 22 04:24:54 Are there any examples of how to embed a "wearApp" using the experimental gradle plugin? Apr 22 05:02:00 Hey guys I'm getting this error atm Apr 22 05:02:05 "junit.framework.AssertionFailedError: No tests found in me.markosullivan.justdine.LoginTest" Apr 22 05:02:09 Anyone understand why? Apr 22 05:08:22 markyosullivan: I might help ;) Apr 22 05:08:33 what lind of test ? unit test ? Apr 22 05:08:40 *kind Apr 22 05:09:44 Instrumentation test Apr 22 05:09:46 got it fixed Apr 22 05:09:50 now have this issue Apr 22 05:09:53 I haven't slept at all Apr 22 05:09:56 it's 6:09am Apr 22 05:10:01 I have a hand in for 12 :( Apr 22 05:10:08 "java.lang.IncompatibleClassChangeError:" Apr 22 05:10:10 gordon_ Apr 22 05:10:13 hmm Apr 22 05:10:20 I've messed up my gradle file Apr 22 05:10:28 I thought so Apr 22 05:10:42 Why's it so easy to mess up an entire project :( Apr 22 05:10:43 I havent seen java.lang.IncompatibleClassChangeError before Apr 22 05:11:14 gordon_ http://pastebin.com/61dbHAqF Apr 22 05:11:19 Hopefully that helps Apr 22 05:11:24 wait a sec Apr 22 05:12:57 I dont think that it's valid to clear app data in test like that Apr 22 05:13:02 (never done that) Apr 22 05:13:51 Seen it in a GitHub project Apr 22 05:14:00 Took it out and it's still crashing Apr 22 05:14:02 any idea? Apr 22 05:14:14 I have to leave the house in like an hour and I haven't sleep :( man this sucks big time Apr 22 05:14:38 it's probably your build.gradle Apr 22 05:14:53 Is there no easy place to find all the gradle files needed? Apr 22 05:14:58 do you have testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner' Apr 22 05:15:00 ? Apr 22 05:20:11 I changed it to Apr 22 05:20:15 android.test.InstrumentationTestRunner Apr 22 05:21:08 Tried both Apr 22 05:21:09 wtf Apr 22 05:22:56 hmm Apr 22 05:23:10 so probably your only way to fix it is to add @Ignore to test class ;) Apr 22 05:26:06 How will that help? Apr 22 05:26:30 you will skip test ;) Apr 22 05:26:41 :( Apr 22 05:26:53 If I do that I could fail uni Apr 22 05:27:06 ah Apr 22 05:28:15 this test doesnt do anything usefull anyway, so just delete it ? Apr 22 05:31:57 It's better than nothing though Apr 22 05:32:51 gordon_: never give advice to skip tests, they exist for a reason, skipping them abitrarily obseletes them all Apr 22 05:33:31 spudowiar: true, better remove it Apr 22 05:34:23 Anyone please help me Apr 22 05:34:26 I don't know what to do Apr 22 05:34:46 It took me ages to get it up and running in the first place and I'm running out of time Apr 22 05:35:15 show build.gradle Apr 22 05:39:31 http://pastebin.com/ztWhVywG Apr 22 05:39:35 Thank you Apr 22 05:40:05 I was on here previously setting up testing and had great difficulty, it's only by chance I managed to get it working Apr 22 05:41:17 add this to hte bottom of your file Apr 22 05:41:20 http://pastebin.com/980Ue1Ks Apr 22 05:44:20 What's it do? Apr 22 05:44:58 IT'S WORKING Apr 22 05:45:00 WHAT THE HELL Apr 22 05:45:08 I don't understand Apr 22 05:45:25 Well one of them is Apr 22 05:46:43 something is funny with this phone Apr 22 05:46:45 Everything is!! Apr 22 05:46:52 Thank you gordon_ if you fixed it!!! Apr 22 05:47:01 everythibg is mounnted rw Apr 22 05:47:18 and installers still fail Apr 22 05:47:29 claiming it is mounted ro Apr 22 05:59:33 someone used PDFium? Apr 22 06:17:53 http://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en Apr 22 06:57:07 I don't understand why placing the intiailization code for Google sign in in a function is different from placing it directly in onCreate Apr 22 06:57:37 http://pastie.org/10807738 Apr 22 06:57:56 lines 13 to 27 as if they never existed, no listener is set on the button Apr 22 07:00:10 hello Apr 22 07:03:51 hello Apr 22 07:24:13 I know how to make native libraries available to my android apps with wrappers ( stubs ), but I don't know what to do if the call uses a c defined type so I cant use jint or jboolean when declaring calls. Apr 22 07:25:35 I take it some of the more experienced programmers might know what i'm talking about :) Apr 22 07:25:58 How can I find out, when a ContentProvider is "destroyed"? Apr 22 07:30:49 onTrimMemory? Apr 22 07:33:37 NeoFrontier, you can use also use jstring, jobject Apr 22 07:34:08 Ologn, yes I've been thinking that I could perhaps somehow use that in this case. Apr 22 07:51:52 Hi Apr 22 07:52:47 In my custom list adapter, when I use "android.R.color.holo_green_light" with setBackgroundColor(), it does not have any effect. However, if I use color.someColor, it works. Apr 22 07:53:01 Why does the first one not work? Apr 22 07:53:07 Does not give any error also. Apr 22 07:53:40 cause you need to do getColor on the first one Apr 22 07:53:55 otherwise it's just interpreted as a number Apr 22 07:55:08 Okies...thanks Odaym Apr 22 07:55:33 I was doing that because setBackgroundColor was saying int in the args :D Apr 22 07:55:36 My bad. Apr 22 07:56:16 Has getColor been removed on 23? Apr 22 07:56:24 use contextcompat Apr 22 07:56:42 yea, this http://stackoverflow.com/questions/31590714/getcolorint-id-deprecated-on-android-6-0-marshmallow-api-23 Apr 22 07:56:47 contextcompat.getcolor(R.color.dèineyoucolor) Apr 22 07:57:52 Ok...just saw it. Thanks guys. Working now. Apr 22 08:05:11 this is really cool https://play.google.com/store/apps/details?id=com.touchboarder.android.api.demos Apr 22 08:11:44 Great for learning Apr 22 08:14:15 yea whatever you find in there you can just go look at the source Apr 22 08:21:02 Really cool! Will be very useful for me :D Apr 22 08:22:09 and me too! Apr 22 08:22:11 yay so happy Apr 22 08:22:11 As I am a beginner, I dont really know what to look for. This gives me a starting point :) Apr 22 08:22:14 ...... Apr 22 08:22:28 yea they get pretty complex too Apr 22 08:22:37 knowing you have the code for whatever, is good Apr 22 08:22:52 Yes lol Apr 22 08:23:13 Hi. In MVP can a presenter store models? I mean if I have UserDescriptionActivity and UserDescriptionPresenter, where the user should be? Or should I take it always from the repository? Apr 22 08:24:16 sorry for inconvenient,but what the irc client you guy using,I using hexchat but go to some japanese channel the text display a rectangle I can not read Apr 22 08:24:53 I use webchat :P Apr 22 08:25:06 pidgin Apr 22 08:25:47 thank guys :D Apr 22 08:26:35 Xchat azure here Apr 22 08:26:36 which channel is that Apr 22 08:27:40 japanese Apr 22 08:27:48 it's called #japanese? Apr 22 08:27:58 yea Apr 22 08:27:59 :D Apr 22 08:28:02 trigger them to talk Apr 22 08:28:03 :P Apr 22 08:28:06 so we can test it Apr 22 08:32:29 there's so many problems with TextInputLayout Apr 22 08:33:14 it's such a hassle, i just use this and it's amazing https://github.com/vekexasia/android-edittext-validator Apr 22 08:33:15 in materialdesign ? Apr 22 08:33:31 its not customisable enough Apr 22 08:33:57 when it first came out i refused to move to it and now I'm checking it again to see if anything changed, same shit, and error messages start appearing as blank after the 2nd try Apr 22 08:34:09 and you have to do the regex matching yourself and shit Apr 22 08:34:52 http://pastie.org/10807881 Apr 22 08:34:52 done Apr 22 08:35:10 matching and everything Apr 22 08:44:57 Can anyone help me with my HorizontalScrollView http://pastebin.com/ZXZ5w87d the LinearLayout nesting in the scrollview is twice as "long" as it should be. So I can scroll an additional length of the 5 items that sits in it. I want to scroll until the last item is reached Apr 22 09:00:47 Guys i will ask here too Apr 22 09:00:59 Someone build AOSP on new Ubuntu 16.04? Apr 22 09:02:21 hi there. We're having a problem where we can't get vectors working in an existing app, using com.android.support:appcompat-v7:23.3.0. Images are just not displayed. In fresh projects, they are working just fine. Do you have any tips on what we're missing or what we should look at? Cheers Apr 22 09:03:44 Also of note, when running the APK on Marshmallow, and try to get at the image via Resources, it exists. When trying below Marshmallow, the image does not seem to exist. Apr 22 09:05:51 what's vectors? Apr 22 09:05:59 like an SVG? Apr 22 09:06:43 Odaym, yes, for example. https://developer.android.com/tools/help/vector-asset-studio.html Apr 22 09:07:01 flashingpumpkin: in 23.3.0 afaik vector drawables were changed so that only srcCompat and setimageresource workss Apr 22 09:07:11 Vector compat behavior changed in 23.3.0. Maybe a new project uses 23.2.x? Apr 22 09:07:17 ^ Apr 22 09:07:18 Everything else was removed because of bugs Apr 22 09:13:48 Miccia: try android-root Apr 22 09:17:31 tilal6991, that seems to be the problem. srcCompat doesn't load the image, and setImageResource tells us that the image does not exist :) Apr 22 09:19:32 strange how anyone still uses anything other than Picasso for images Apr 22 09:19:39 maybe I'm just lazy and follow blindly .. Apr 22 09:20:17 "blind adopter" ;D Apr 22 09:22:59 Hi all. What's the best way to use rxjava & retrofit for rest calls? (Threading) Apr 22 09:25:21 JakeWharton, do you have ideas for restoring the whole stack of activities with processphoenix? apparently on htc one it doesn't bring back all of them while on nexus 5, xperia z5 and some others at least it does... I'm annoyed -.- Apr 22 09:25:23 Oh, looks like we were not using the compat activity Apr 22 09:25:45 :D Apr 22 09:33:07 When I switch from my app to a different app by recents or by some other method, then on coming back to my app onResume will be called, right? Apr 22 09:33:15 can anyone help me? http://stackoverflow.com/questions/36771553/imagebutton-in-remotesview-stretches Apr 22 09:46:03 JakeWharton, nevermind, someone's broken something at some point since I added processphoenix Apr 22 10:09:50 andyOne: yes Apr 22 10:10:29 It will be called more frequently than just that though Apr 22 10:10:43 It will be called when screen is switched off and when coming back from a dialog Apr 22 10:11:35 Odaym: there are reasons to use alternatives Apr 22 10:11:55 No library has zero downsides such that no other library should be used Apr 22 10:12:00 http://stackoverflow.com/questions/36771553/imagebutton-in-remotesview-stretches Apr 22 10:12:00 http://stackoverflow.com/questions/36771553/imagebutton-in-remotesview-stretches Apr 22 10:12:53 xJeremyCx: spamming your link is not going to help. Usually when no one responds to your question it's because we don't know the answer Apr 22 10:13:15 tilal6991: So I have implemented onResume in my fragment which will be called when my activity resumes. But sometimes, even after switching to a different app and coming back, I see onResume() not doing the work. Apr 22 10:13:24 tilal6991: that's the only way I can get attention on IRC Apr 22 10:13:30 What does that mean? Apr 22 10:13:40 xJeremyCx: yes but it's also annoying when you spam Apr 22 10:13:48 tilal6991: it is fine Apr 22 10:14:07 andyOne: uh something is going wrong? onResume is one of the methods which is sacred and guaranteed to be called Apr 22 10:14:19 squ: uh I'm really not in favour of it but whatevs Apr 22 10:14:23 tila16991 any progress on uni? Apr 22 10:15:46 tilal6991: This happens when I switch through the recent apps window and come back to my app through recents only. If I switch by pressing the home button and selecting a different app, it works great. Apr 22 10:15:55 what is the most stable wifi access point to use as an android meta ctrl? Apr 22 10:16:20 I'm considering broadcom. Apr 22 10:17:08 Which frequencies have the least interference? Apr 22 10:17:41 This can narrow down the choices based on ap channel capabilities. Apr 22 10:18:08 I'm opening a fragment which slide on top of the activity which is opening it this way and I want to pass data from that activity to the fragment but not sure how to http://pastebin.com/K9MFmGiR Apr 22 10:18:37 An old hon hai chip does well for monitoring. They tout precision in the company name. Apr 22 10:18:53 hert: fragment.setArguments Apr 22 10:19:15 And then they can be retrieved with getArguments() Apr 22 10:19:19 tilal6991 ignoring? Apr 22 10:19:20 Inside the fragment Apr 22 10:26:06 I'm adding a view at the press of a button like this http://pastie.org/10808032 but the parent scrollview won't scroll when it should Apr 22 10:26:33 you think it's because the height is already calculated for the scrollview and it thinks it's already at the bottom when the layout is first set? Apr 22 10:27:51 this is the XML http://pastie.org/10808035 Apr 22 10:27:58 Odaym: you need to call requestLayout I think Apr 22 10:28:10 http://stackoverflow.com/questions/13856180/usage-of-forcelayout-requestlayout-and-invalidate Apr 22 10:30:04 won't budge Apr 22 10:31:16 Odaym: even after requestLayout on the scrollview? Apr 22 10:31:26 yea and invalidate after that Apr 22 10:31:37 :/ then I'm out of ideas Apr 22 10:34:56 strange, it should work Apr 22 10:35:11 I've done it elsewhere but adding views wasn't involved Apr 22 10:40:50 you know what Apr 22 10:41:05 I'm going to see if it works without adding a view Apr 22 10:41:07 because Im pro Apr 22 10:42:51 doesn't work :) Apr 22 10:45:16 in different flavours of my application I am not getting email of user from fb only id and name is receiving Apr 22 10:57:10 aha, listen to this, the scrollview you saw was sitting inside a NestedScrollView, and what you saw was the layout of a fragment Apr 22 10:57:20 "why won't it scroll" Apr 22 11:03:03 ok, so first of all you shouldn't have a scrollview inside another nestedscrollview (first being in the fragment layout) second being where the whole fragment sits in the activity layout, and expect it to scroll Apr 22 11:03:19 second, if it's going to scroll it needs a postDelayed runnable and not just a post runnable Apr 22 11:03:35 requestLayout and invalidate are not needed Apr 22 11:03:44 Hi, do you guys have any idea why i receive a onKeyUp event at the same time than the onKeyDown event in my Activity? When i press a key I receive onKeyDown AND onKeyUp, and then i don't receive anything when i release (it happens on my android emulator, i don't have a real android device with hardware keyboard to test) Apr 22 11:07:07 Hello guys!, im quite new to Java and Android programming (usually develop in .NET), Howcome i can't instansiate a new class in a OnCreate()? I get the RunTimeError: IllegalStateException: System services not available to Activities before onCreate() Apr 22 11:20:22 Any idea why camera would not release correctly on a samsung s6? Apr 22 11:23:25 samsung.. Apr 22 11:24:59 Zharf: yeah right.. It feels like web development in 2005 and taking care of Internet explorer Apr 22 11:27:14 why is parsing json such a hassle Apr 22 11:27:20 much easier in other languages Apr 22 11:27:28 taub, use gson Apr 22 11:30:56 thanks Apr 22 11:40:13 I like retrofit and gson Apr 22 11:46:23 how do i install the .jars into the project? Apr 22 11:51:25 add it to a lib folder Apr 22 11:51:32 and reference that in your gradle config Apr 22 11:51:43 or get the maven version of it Apr 22 12:11:44 nngh Apr 22 12:12:05 I can't figure out why this app seems to have launchMode="singleTask" everywhere -.- Apr 22 12:14:03 E/linker: warning: unable to get realpath for the library "/data/app/com.facebook.appmanager-1/lib/arm/libheartbleed.so". Apr 22 13:00:41 Hi all. I'm creating a module for communication stuff with my backend. Any advice about managing versions? Like the backend version is changing every month, so the module must be updated in version too Apr 22 13:01:03 like i have a jar for every version. sdk-v2.0.0.jar sdk-v2.0.1.jar etc. Apr 22 13:10:46 ohai Apr 22 13:11:10 (how) can i use debug to see what method and/or line of code is being executed currently Apr 22 13:11:15 ViewPager with views vs ViewPager with Fragments? Apr 22 13:11:21 yes Apr 22 13:11:33 I just wonder what I should do Apr 22 13:11:52 I have a fixed amount of pages to display (3) Apr 22 13:12:00 how 'heavy' is the page Apr 22 13:12:06 Well. Apr 22 13:12:17 does it need its logic, lifecycle and whatnot Apr 22 13:12:38 I've got a ViewPager with 3 pages, each containing a ViewPager with 3 pages, each containing a RecyclerView, for a total of 9 RecyclerViews. Apr 22 13:12:54 Well logic yes, lifecycle not at all Apr 22 13:13:03 wew Apr 22 13:13:07 viewpager in viewpager? Apr 22 13:13:39 Yep. The UX works well even if it doesn't sound like it would Apr 22 13:13:42 getMemoryClass() returns the "approximate per-application memory class of the current device" What does this mean? Am I getting the current heap size / allocation for the calling application? Am I getting some default heap size? An average heap size over all running applications? Any help is greatly appreciated :) Apr 22 13:13:48 http://developer.android.com/reference/android/app/ActivityManager.html#getMemoryClass%28%29 Apr 22 13:14:53 I'm rewriting my app, I used fragments everywhere the first time because that's the first example I encountered. Now I'm trying to think about everything for the rewrite Apr 22 13:16:11 Is it more efficient to do one thing or the other? Is creating 3 + 3 * 3 fragments at app startup heavy? Is the app having to handle the lifecycle of 12 fragments for no reason heavy? Apr 22 13:16:34 "for no reason" Then don't do it! Apr 22 13:16:37 :P Apr 22 13:18:02 I can still split the logic between multiple classes while using "a single view" and no fragments, I was just wondering if there was a problem I could encounter or something Apr 22 13:18:43 Ribesg: fragments are evil Apr 22 13:18:49 Why would you start using them? Apr 22 13:18:51 Lol Apr 22 13:19:08 (my opinion BTW - many disagree with me) Apr 22 13:20:16 tilal6991: He's going through now and removing fragments where he does not need them! Apr 22 13:20:17 deadmund: http://stackoverflow.com/questions/2630158/detect-application-heap-size-in-android Apr 22 13:20:31 tilal6991: thanks Apr 22 13:20:34 To answer your question Apr 22 13:20:46 Not really removing stuff, it's a full rewrite, made an empty orphan branch in git and all! Apr 22 13:21:03 Oh you're removing fragments good lol Apr 22 13:21:40 Well, I have problems understanding some choices in the Android lifecycle, so not using those 12 fragments removes at least 12 problems Apr 22 13:21:55 Yay Apr 22 13:22:18 I never know which method SHOULD be overridden, I never know which overridden method should call super, etc Apr 22 13:22:20 Couldn't agree more with pain points of fragments Apr 22 13:22:34 I had three layers of nested fragments once Apr 22 13:22:37 That was not fun Apr 22 13:22:43 Pretty sure I'm not overriding half the method I should in the current version Apr 22 13:23:19 It's just 9 recyclerviews with various stuff, I fill them on activity startup, then add more items on scroll Apr 22 13:23:28 I really don't need the fragment's lifecycles, yeah Apr 22 13:24:07 Also I would really make the fragment init lazy TBH Apr 22 13:24:14 * recyclerview init Apr 22 13:24:26 You really don't need 9 recyclers loaded at once Apr 22 13:24:44 http://stackoverflow.com/questions/2298208/how-do-i-discover-memory-usage-of-my-application-in-android Apr 22 13:24:56 Sorry, meant to say this: In this documentation (http://stackoverflow.com/questions/2298208/how-do-i-discover-memory-usage-of-my-application-in-android) there is a quote about memory management in android: "add on top of that paging out [memory] to disk (let alone swap which we don't use on Android) and ..." What is paging out if there is no swap space? Apr 22 13:25:30 deadmund: http://stackoverflow.com/questions/4415254/difference-swapping-and-paging Apr 22 13:25:42 tilal6991: You're so fast! Apr 22 13:25:44 tilal6991, their load is delayed Apr 22 13:25:54 Paging is much more specific than swapping Apr 22 13:26:03 Lol practice with Googling :P Apr 22 13:26:11 Ribesg: I see. Then it might be OK Apr 22 13:26:40 The first recyclerview is loaded as fast as possible, then other recyclerviews are delayed by 2 or 5 seconds depending of where they are Apr 22 13:27:11 Would anyone be so kind as to assist me in my dilmna? I've posted the troublesome code and additional info within the comments. It's only a few lines long: http://pastebin.com/xpZ9C99p Apr 22 13:27:14 Thanks in advance Apr 22 13:27:15 To prevent the UI thread from freezing everything while building ~60 views Apr 22 13:28:17 IggyGee, what's getImageLocation(), what's location Apr 22 13:28:23 IggyGee: is getImageLocation a directory? Apr 22 13:28:47 yes, that method returns a file contained in the same directory as location Apr 22 13:29:17 So you're expecting renameTo to fail? Apr 22 13:29:54 I don't know, everything seems to be ok but the renameTo returning true Apr 22 13:29:57 Ribesg: I'm not so sure. I expected to have 2 files containing the same data with different names. Apr 22 13:30:21 tilal6991: thanks Apr 22 13:30:22 IggyGee, you're trying to rename a file to an already-existing file name Apr 22 13:30:42 The result on the file system is what is to be expected to me, but the renameTo should return false imo Apr 22 13:30:46 To say it failed Apr 22 13:30:48 Ribesg: The reason I did that is because if the file doesn't already exist, then renameTo would fail. Apr 22 13:31:09 Ok, looks like I have no idea of any of this is supposed to work then :P Apr 22 13:31:35 Same here, feel like I'm going crazy Apr 22 13:32:05 I spent like 4 hours researching this and trying different methods.... Apr 22 13:32:50 IggyGee: it would help if I understood what you are attempting to do Apr 22 13:32:57 Then I can try and suggest a way Apr 22 13:33:21 tilal6991: The equivalent of a unix operation 'mv file1.txt file2.txt' Apr 22 13:34:05 IggyGee: http://stackoverflow.com/questions/6569008/can-file-renameto-replace-a-existing-file Apr 22 13:34:13 Seems like it may not necessairly return false Apr 22 13:34:18 Platform dependent it seems Apr 22 13:34:38 So Android may well be creating an empty file and leaving it at that Apr 22 13:35:16 I would check if the destination exists and do something else in that case Apr 22 13:38:55 Can i somehow scale a Maps V2 container? cant find any documenation for this. Basically i dont want it to be set as fullscreen. Apr 22 13:39:24 Filip___: what do you men Apr 22 13:39:26 mean* Apr 22 13:39:49 ... Apr 22 13:39:50 I created a Mapsactivity and i want to modify it so it doesnt scale as fullscreen :) Apr 22 13:40:08 set your container to however big you want it..? Apr 22 13:40:10 it's jsut a regular layout file though Apr 22 13:41:53 Well, im not using the generated maps, i kinda did it myself so it would suit my app. But when i change the layout_width/heigth nothing happends. Apr 22 13:41:55 you can put the in any layout you want Apr 22 13:42:28 so i can put the in a coordinator layout? Apr 22 13:42:53 sure Apr 22 13:43:05 tilal6991: What do you mean check the destination exists and do something else? Apr 22 13:43:34 Okey, sry, only have like 2-3 programming hours in AS and java, thank you:) Apr 22 13:43:35 IggyGee: http://www.tutorialspoint.com/java/io/file_exists.htm Apr 22 13:43:43 Filip___, I figured you're new Apr 22 13:43:45 Don't do renameTo if exists return true Apr 22 13:43:50 Filip___, read about layout files Apr 22 13:44:03 Delete the file first or do whatever your app wants if it does return true Apr 22 13:44:19 ok, will do ;) Apr 22 13:44:27 can you create a .class file form a .java file with javac when there is a package that doesn't exist? Apr 22 13:45:08 FrancescoV, elaborate more? Apr 22 13:46:06 I have x java files and I want to generate a jar with the terminal and include that jar in multiple android projects Apr 22 13:46:31 create a gradle/maven project Apr 22 13:48:41 FrancescoV: why don't you just compile the source files and put them in a jar? Apr 22 13:50:00 the soruce files are using protocol buffer stuff from google. they are generated java files. I want to update the jar with as less effort as possible (for updates) Apr 22 13:50:05 tilal6991: But I'm intentionally creating the file. If I don't then renameTo always returns false. Apr 22 13:58:21 FrancescoV, if i were on linux I'd just set up ant or a makefile or something and javac it all up and make a jar that way Apr 22 13:58:50 seems like fairly standard "how to make a jar" stuff; generic jars should work in most cases Apr 22 13:58:59 FrancescoV, well you can compile them (build systems describe such dependencies as "provided") Apr 22 13:59:15 <_Atom_> is there a way to use environmental variables inside android code Apr 22 13:59:15 But you'll need to have the dependant classes present when compiling (and they have to be the same version) Apr 22 13:59:38 _Atom_, not in a sane way. Apr 22 13:59:46 Where would they even come from? Apr 22 14:00:16 <_Atom_> from my .zshrc fiel Apr 22 14:00:17 <_Atom_> file* Apr 22 14:00:33 <_Atom_> you can do it in python :( Apr 22 14:00:34 Huh. Apr 22 14:00:41 Mavrik: I'm working on osx, but maybe found a solution Apr 22 14:00:46 tnx for the tip! Apr 22 14:00:58 _Atom_, how the hell would your phone know what a file on a computer looks like? Apr 22 14:01:07 FrancescoV, are you using Maven/Gradle/etc ? Apr 22 14:01:10 It's trivial there. Apr 22 14:01:16 <_Atom_> i would assume the variable would only be used during compile time Apr 22 14:01:23 gradle Apr 22 14:01:24 _Atom_, that's possible. Apr 22 14:01:45 FrancescoV, I'd build the protobuff dependencies as a separate jar, then include them as "provided" dependency. Apr 22 14:01:50 That will do what you want. Apr 22 14:02:04 Mavrik: ok, thanks a lot! Apr 22 14:02:04 _Atom_, can you explain more what kind of variable are you trying to add to your code? Apr 22 14:05:09 <_Atom_> api key Apr 22 14:05:33 <_Atom_> i'm new to android development and using environment variables to store api keys in python dev has worked Apr 22 14:05:40 <_Atom_> but i guess that isn't a best practice in this world Apr 22 14:05:53 um what Apr 22 14:06:39 <_Atom_> http://andrewtorkbaker.com/using-environment-variables-with-django-settings Apr 22 14:06:55 <_Atom_> meh Apr 22 14:06:57 You can use buildConfigField in build.gradle to add variables to the BuildConfig class Apr 22 14:07:11 And create a method that gets the actual value from wherever Apr 22 14:07:41 <_Atom_> wellps i tell you whoat Apr 22 14:07:49 <_Atom_> thanks Apr 22 14:08:53 _Atom_, yeah, use buildConfigField and keep them in build.gradle Apr 22 14:09:03 we usually keep them in `local.properties` and make Gradle read them from that file Apr 22 14:09:09 I just keep a secrets.properties file along with the source (not checked in) for stuff like that, then have build.gradle look it up Apr 22 14:09:10 <_Atom_> and i just won't commit the build.gradle file to my repo? Apr 22 14:09:14 (local.properties is a file that has local machine build configuration) Apr 22 14:09:20 (and it's not commited) Apr 22 14:09:24 <_Atom_> ok Apr 22 14:09:56 build.gradle just contains the method that reads the api key. Wherever the api key is kept is not checked in Apr 22 14:10:18 Yep. Apr 22 14:10:30 possible interceptor on the api key simonvt Apr 22 14:10:34 We actually read either env. variable (easier for CI) or file. Apr 22 14:10:34 <_Atom_> so that's generally how android devs handle api keys? Apr 22 14:12:18 Something like this: https://gist.github.com/izacus/1bffe9c97cac779787c40cfc4d7f29c7 Apr 22 14:12:31 I bet most people don't care :P Apr 22 14:13:08 Yeah, in private repos where you never need to switch out api keys, I bet most just check it in Apr 22 14:13:12 Not really any harm in that Apr 22 14:15:18 ~/.gradle/gradle.properties is another out-of-tree file that holds gradle variables Apr 22 14:15:34 that's where I keep my keys for auto-signing stuff, and other non-commit secrets Apr 22 14:15:54 slightly less suited to multi-user environments tho Apr 22 14:17:32 suit heart Apr 22 14:17:45 not club Apr 22 14:18:02 play the suits to dump spades Apr 22 14:18:07 k? Apr 22 14:18:13 u gorn? Apr 22 14:18:56 dragorn: k? Apr 22 14:19:39 one last hueeistic for replicant nahhan Apr 22 14:19:58 never forget a wife Apr 22 14:20:08 yaaic1: You having a stroke m8 Apr 22 14:20:38 be sure to give due effort in recovering property Apr 22 14:21:08 if the property went rot leave them to eat the spades Apr 22 14:21:27 yaaic1: Please keep it on topic, less rambling Apr 22 14:21:47 initiate judaea pearl gamma 2 Apr 22 14:21:51 Did we somehow stumble into the markov chain bot? :) Apr 22 14:22:08 * Ping_2_Ur_Pong wonders Apr 22 14:22:24 you are responsible for every virgin even gmo Apr 22 14:22:32 even blue eyed gmo Apr 22 14:22:48 Who knows Apr 22 14:22:50 that was some high-quality nonsense Apr 22 14:22:56 For sure Apr 22 14:25:49 hey Apr 22 14:26:17 I have an app which has a service for listening to music in the background. When I kill the app, on Android 6.0 the service keeps running in the background Apr 22 14:26:56 in the declaration of the service in the AndroidManifest.xml I have the property android:stopWithTask="true" Apr 22 14:27:24 and that works in Android 5.x Apr 22 14:27:36 I'm not even sure what to look for, anyone have any ideas? Apr 22 14:29:10 Hi, do you know if its possible to get the X and Y position of a view on the layout ? Apr 22 14:29:29 Knowing the view is created dynamically Apr 22 14:29:52 ok so I have a crusty s5 here Apr 22 14:29:58 that crashes the entire operating system Apr 22 14:30:11 mtR_: yes Apr 22 14:30:18 when I draw a view to a canvas that is smaller than the view's measured size Apr 22 14:30:31 wtf Apr 22 14:36:33 Is there any API in my app that will give me memory usage identical to what is reported by the memory tab in Android studio? Apr 22 14:38:03 mtR_, getX / getY ? Apr 22 14:38:08 adb shell dumpsys meminfo Apr 22 14:39:41 deadmund you can also loook at runtime Apr 22 14:39:59 Runtime* Apr 22 14:40:19 specifically http://developer.android.com/intl/es/reference/java/lang/Runtime.html Apr 22 14:40:40 Ping_2_Ur_Pong: I'm looking at runtime.getruntime().maxMemory which is 128 Mebibytes which doesn't make any sense to me. The Memory tab shows 9.13MB allocated and 0.06 Free Apr 22 14:41:26 runtime.freeMemory is reporting 107112 bytes = 0.102 mebibytes, but the memory tab shows 0.05 free MB Apr 22 14:42:38 * Ping_2_Ur_Pong doesn't think they are the same. Runtime is for what is available on the heap and allocated on the heap. Not sure what adb shows exactly. I thought it was always currently allocated. Apr 22 14:42:48 I have an app which has a service for listening to music in the background. When I kill the app, on Android 6.0 the service keeps running in the background Apr 22 14:42:53 in the declaration of the service in the AndroidManifest.xml I have the property android:stopWithTask="true" Apr 22 14:43:00 and that works in Android 5.x Apr 22 14:43:03 I'm not even sure what to look for, anyone have any ideas? Apr 22 14:43:13 Ping_2_Ur_Pong: How can I get "currently allocated" in the Android API? Apr 22 14:43:17 gotjam, you have to shut your service down in onDestroy Apr 22 14:43:35 I do, in onDestroy Apr 22 14:43:43 Ping_2_Ur_Pong: The "free" seems to be adding up. But I can't find anything in the API that matches the tab's "allocated" number. Apr 22 14:43:45 activity.unbindService(mServiceConnection); Apr 22 14:43:45 activity.stopService(serviceIntent); Apr 22 14:43:45 what kind of service? Apr 22 14:44:16 service that plays music Apr 22 14:44:16 * Ping_2_Ur_Pong wouldn't actually use Runtime for memory monitoring, deadmund is there a reason you need to from within your application? Apr 22 14:44:41 Ping_2_Ur_Pong: I want to make a log of the memory allocation over a short period of time and plot it in a figure. Apr 22 14:45:00 Ping_2_Ur_Pong: I need the raw data and the graph in Android studio isn't giving me that. Apr 22 14:45:43 deadmund: can't you save the file and then read it for raw values, the file that Android Studio generates Apr 22 14:46:22 gotjam: the files that are generated (.alloc and the heap dump .hprof) are binary files and I don't know the format / have a tool to read them. Apr 22 14:46:54 I mean, Android studio reads them, but that's not much use since there is no converter or output of any kind besides looking at it in Android Studio. Apr 22 14:47:36 gotjam, do you handle onDestroy in your service and call super? Apr 22 14:48:01 deadmund: there is a converter Apr 22 14:48:20 hprof converter Apr 22 14:49:02 deadmund: http://stackoverflow.com/questions/3170691/how-to-get-current-memory-usage-in-android Apr 22 14:54:23 hehe Apr 22 14:55:19 i love, reading the advice of the android team, they go through such effort to describe efficiency guidelines... Apr 22 14:55:39 example Apr 22 14:55:45 and then you actually go through the impl of one of their apps, and its nothing at all like the guidelines Apr 22 14:55:56 or specific scenario you are thinking of Apr 22 14:56:00 Ping_2_Ur_Pong: I handle onDestroy in my service and call super.onDestroy(); Apr 22 14:56:03 like new google analytics, view hierarchy is 20 levels deep Apr 22 14:56:17 though for some reason I call it at the end of the method, not right in the first line Apr 22 14:56:23 think that might be the issue? Apr 22 14:57:53 g00s, everyone knows the guidelines are bullshit Apr 22 14:58:12 they're just a checklist to use when you start encountering performance problems Apr 22 14:58:26 if it works well otherwise, ignore them Apr 22 14:58:48 concerns of a library and framework are different from an app Apr 22 15:01:21 Any Chinese guys in here? Apr 22 15:02:08 Or anyone that can read Chinese? Apr 22 15:03:02 google can Apr 22 15:03:08 google translate? Apr 22 15:04:05 There is someone that hangs here that writes and reads chinese, but can't remember their handle. Apr 22 15:04:55 PDF Apr 22 15:05:09 Does Foxit PDF have translation? Apr 22 15:05:19 Thanks anyways folks Apr 22 15:05:29 I'll try to get it over to Google Apr 22 15:07:07 First time I've ever had to use Google Translate Apr 22 15:07:09 Top stuff Apr 22 15:11:01 How should i change my app UI at run time ? Apr 22 15:12:11 Fragment Apr 22 15:12:16 god damnit, that's it Apr 22 15:12:26 we need a bot now! Apr 22 15:15:27 the bot could just do a google search and return the first result :) Apr 22 15:19:21 AS does not have hierarchy viewer right? sucks to disable adb in AS and start up monitor Apr 22 15:22:19 it does not Apr 22 15:22:33 yet another reason why it's just not worth using AS Apr 22 15:24:20 pfn what do you use? Apr 22 15:25:12 * Ping_2_Ur_Pong does dislike that you have to disconnect adb so you can start adm Apr 22 15:26:39 adm? Apr 22 15:27:03 Just start monitor from AS.. Handles it for you Apr 22 15:27:16 intellij, but there's no difference in that regard Apr 22 15:27:24 SimonVT, yes, it disconnects adb Apr 22 15:27:26 the trend seems to be to move things from monitor into AS Apr 22 15:27:28 very annoying Apr 22 15:29:25 Makes no difference to me Apr 22 15:30:32 it'd be better if they were integrated into the IDE for sure Apr 22 15:30:55 pfn, what's the advantage of intelliJ over AS? it seems like driving a car with a wheel made of stone as opposed to a tire, which was designed for cars... Apr 22 15:31:03 * Ping_2_Ur_Pong is actually very curious of the benefits Apr 22 15:31:34 You get IJ updates faster Apr 22 15:32:15 Ping_2_Ur_Pong, AS is just crippled IJ Apr 22 15:32:29 how so? Apr 22 15:32:38 but if you don't do non-android stuff, it's mostly irrelevant Apr 22 15:32:40 Mavrik: Yeah i tried getX, getY, always return 0. Also tried getLocationOnScreen(), seems to not work properly : always return 60 (for Y). I try to get all position of childs of a LinearLayout implemented dynamically Apr 22 15:33:33 * Ping_2_Ur_Pong uses both, he does his regular java with intelliJ, and android specific with AS. But, would love to know the heightened advantages of intelliJ. Apr 22 15:34:29 if AS is crippled IJ, isn't IJ crippled AS ? Apr 22 15:34:39 from what i cantell it still lags a bit on whatgoogle has done Apr 22 15:35:09 you have to decide aspect is less crippling to you :) Apr 22 15:35:22 seriously I am curious what intelliJ is capable of as opposed to AS. I guess I could do some reading, but a simple answer will suffice. Apr 22 15:35:41 Ping_2_Ur_Pong also remember pfn doesn't use the regular gradle build system Apr 22 15:35:47 Ping_2_Ur_Pong, it's capable of handling non-android and legacy android projects Apr 22 15:35:51 AS forces you to use gradle Apr 22 15:35:52 so he's got quite a different setup anyhow Apr 22 15:36:22 agh Apr 22 15:36:30 intellij is current to Apr 22 15:36:40 android studio 1.5 Apr 22 15:36:43 close enough Apr 22 15:37:07 Ping_2_Ur_Pong and pfn also doesn't use instant run :D Apr 22 15:37:12 does anyone? lol Apr 22 15:37:13 if you only ever do android then use studio Apr 22 15:37:25 * Ping_2_Ur_Pong loves ctrl + tab and shift-shit, he nearly never has to touch his mouse Apr 22 15:37:27 no one uses instant run Apr 22 15:37:38 great shortcuts can make your life so much easier Apr 22 15:37:52 Ping_2_Ur_Pong, all that stuff is in IJ... Apr 22 15:37:56 it's from IJ after all Apr 22 15:38:02 i'm surprised google didn't follow up AS 2.0.0 with a 0.0.1 bugfix by now, i've encountered plenty of glithces Apr 22 15:38:38 I still use Instant run, I haven't had any issues with it. Occasionally the emulator will take a shit on itself, but nothings perfect. Apr 22 15:38:43 i have feeling they stopped on 2.0.0 already and doing everything on 2.1 branch Apr 22 15:39:24 2.1 was only to support N Apr 22 15:50:50 Hi there, lets say I have an app on the appstore. The app has a database and will be manipulated by user. What is best practice if there will be an app update? When you want to add new entrys into database (like levels into a game) Apr 22 15:56:41 migration :? Apr 22 15:57:47 Ashiren: I dont have experience, so I will google for Migration Apr 22 15:58:42 is it sqlite Apr 22 16:03:38 I’m having trouble with the Google Pinyin Keyboard input method. That IME uses the ‘shift’ key to switch between an English mode and a Chinese character composition mode. Apr 22 16:03:53 Ashiren: yes Apr 22 16:04:25 Problem is: when the user presses the ‘shift’ key and releases it, for the hotkey behavior, I get a ‘keydown’ KeyEvent for shift, but never any corresponding ‘keyup’ (that seems to be eaten by the IME). Apr 22 16:04:55 Is there any way to get at the events before the IME gets them, or to ask the IME for the stream of underlying events? Apr 22 16:05:34 I don’t have a good way to distinguish the ‘shift’ keyup being eaten by the IME from the user just holding down the shift key for a long time ... Apr 22 16:05:50 sponge-tmp: you might look for onUpgrade() in sqlite android Apr 22 16:06:28 Ashiren: ok thx, will have a look at that. Apr 22 16:09:45 I don’t even seem to get an onConfigChanged for a switch from, e.g. the standard Google keyboard to the Google Pinyin Input keyboard from the user’s Settings. Is there a way to be informed of at least that? Apr 22 16:11:24 working with soft keyboard sucks generally Apr 22 16:12:15 This is actually an input method that works with a hard keyboard also, fwiw. The pinyin method allows character composition even when typing on physical keys Apr 22 16:40:09 ugh, there's no version of FallbackRemoteRepoLoader available in aosp Apr 22 16:40:18 (implementation of) Apr 22 16:40:29 are there any android devices, which only have 3 columns on their homescreen ? Apr 22 16:45:27 Your search - fallbackremoterepoloader parselegacyxml - did not match any documents. Apr 22 16:45:36 I love it when I'm the only person in the world trying to solve a particular problem Apr 22 16:49:39 http://static.javadoc.io/com.android.tools/repository/25.0.0/com/android/repository/api/FallbackRemoteRepoLoader.html Apr 22 16:49:45 there has to be an implementation of this somewhere... Apr 22 16:49:54 pfn https://xkcd.com/979/ Apr 22 16:55:45 oh, I never noticed, there's an android.el in tools/lib Apr 22 16:55:49 I wonder if anyone uses it in emacs, heh Apr 22 17:16:51 Napalm there ? Apr 22 17:19:22 yes Apr 22 17:20:11 hey Napalm , by any chance - do you know why hierarchyviewer correctly shows some 'custom' views like RecyclerView, but totally punts on others like CoordinatorLayout ? (stuff not in platform) Apr 22 17:20:36 seems a lot of things are incorrectly just shown as 'FrameLayout' Apr 22 17:33:03 because that's what they register themselves as Apr 22 17:33:04 duh Apr 22 17:33:39 * Ping_2_Ur_Pong loses his shit! Apr 22 17:33:46 Is the android rootfs stored in a ramdisk? Apr 22 17:33:47 they extend FrameLayout dont they Apr 22 17:33:56 sorta like an initramfs on a desktop linux system? Apr 22 17:34:02 a;lsdkfja;lsdkfja;lkdsfjl;kajsdf fucking action muthafucking search shit fucking cunt ass piece of shit donabld trump twats asshole fucking wtf! Apr 22 17:34:18 I believe so. But other things that extend FrameLayout tend to show up as what they are, not just FrameLayout Apr 22 17:34:23 pfn just admit, you have no idea what you're talking about Apr 22 17:34:26 I think CardLayout shows up as CardLayotu Apr 22 17:34:29 (duh) Apr 22 17:34:47 lolno Apr 22 17:34:54 see recyclerview source, it registers itself Apr 22 17:35:01 I just lost 2 fucking hours to the fucking searchbar crashing my app because of a fucking theme, it wasn't even the noActionBar theme it was the HoloLight Apr 22 17:35:08 * Ping_2_Ur_Pong screams and curses and stabs someone Apr 22 17:35:10 step back to register Apr 22 17:35:19 is there an actual register() call? Apr 22 17:35:35 i don’t think I’ve seen it when I’ve extended layouts Apr 22 17:35:36 * Ping_2_Ur_Pong greatly wants to flip out and stab someone Apr 22 17:35:43 * Ping_2_Ur_Pong wants to inflict violence Apr 22 17:36:12 rootfs? the /? Apr 22 17:36:43 wouldnt that be just internal internal storage Apr 22 17:36:57 sigh... Apr 22 17:37:09 the frustration, the horror the... Apr 22 17:37:13 im fucking done for the day Apr 22 17:37:33 Ashiren: well, `mount` isn't showing what was mounted on / Apr 22 17:37:41 s73v3r, I forget, it could be the accessibility node info Apr 22 17:37:51 just wondering if it's a ramdisk Apr 22 17:37:57 loaded by the kernel Apr 22 17:38:14 :o Apr 22 17:55:15 s73v3r you see CardView in HierarchyViewer? i looked through the code and see no accessibility stuff Apr 22 17:55:43 it’s been a while since I looked, but I thought it showed up as CardView Apr 22 17:56:24 RV has ViewCompat.setImportantForAccessibility(this, Apr 22 17:56:25 ViewCompat.IMPORTANT_FOR_ACCESSIBILITY_YES); Apr 22 18:00:34 but CardView does nothing really ... Apr 22 18:01:49 hey folks quest about SharedPreferences when it is stored is it "key" = "value ? so assuming getall() returns {1= thing, 0= other } ... if i want the value of entry 0 i would do getString(0, "") ? Apr 22 18:01:59 or am i reading the documentation wrong Apr 22 18:03:07 getString("0", "") should return "other" ? Apr 22 18:05:39 why wouldn’t you just get that specific value, instead of trying to find it using getAll? Apr 22 18:06:01 i am trying to get a specific value i was just showing what getall returns Apr 22 18:07:35 so to get a specific value ... for example i want "other" to be returned , is the corect syntax .getString("0", "") ? Apr 22 18:07:56 yeah Apr 22 18:08:08 hmm not working Apr 22 18:08:09 assuming 0 is the key you stored it under Apr 22 18:08:30 getall() returns {1= thing, 0= other } so i believ so Apr 22 18:08:34 ignore getAll Apr 22 18:08:43 use the key you used to put it in Apr 22 18:10:17 testing Apr 22 18:10:19 sec Apr 22 18:10:21 :) Apr 22 18:15:22 hmm weird Apr 22 18:15:29 i didnt change anything Apr 22 18:15:34 and its working now Apr 22 18:15:56 except for the key you were using, it seems Apr 22 18:16:15 thats what i am saying Apr 22 18:16:20 i didnt chang it Apr 22 18:16:29 shrug Apr 22 18:16:45 ghostD0g: probably a clean/deploy/build Apr 22 18:16:50 problem Apr 22 18:16:55 yeah Apr 22 18:17:26 thats a frustrating habit i have to do :) Apr 22 18:18:37 When seemingly impossible things happen, it's best to question whether something 'impossible' is actually happening, and look for the simpler explanation that you aren't thinking of :) I hate it when I do that to myself Apr 22 18:23:37 i've had a very positive experience using rxjava + retrofit and want to do the same thing on a backend server -- anything noteworthy about using those 2 pacakges outside of android? Apr 22 18:23:59 it's a bit hard to google for this since that pattern is so dominant in android-land Apr 22 18:24:28 nope! Apr 22 18:24:33 awesome! Apr 22 18:24:47 thanks, and thanks for the work on those libraries JakeWharton! Apr 22 18:35:29 test :I Apr 22 18:35:33 ayy cool Apr 22 18:56:07 can you create/set a default errorBody converter in retrofit 2 for typesafe error body objects? Apr 22 18:56:20 no Apr 22 18:57:02 you can create a delegating call adapter that throws exceptions if you want Apr 22 18:57:46 Yiati : figured it out its a async thing, GeoCode getG = new GeoCode(); is a public class GeoCode extends AsyncTask { ... soes the shareprefrences edits, the problem is my other code is fireing before could finishes Apr 22 18:57:58 tha code finishes Apr 22 18:59:55 ghostD0g: Cool, so it was what s73v3r was saying about not storing it under the 0 key Apr 22 19:00:05 yeah Apr 22 19:00:09 sort of Apr 22 19:00:11 lol Apr 22 19:00:17 ha glad you figure it out Apr 22 19:00:50 now the next questi is how do i prevnt my opther code from firing before the async is finished Apr 22 19:01:09 either put it in with the async, or do it in the post method Apr 22 19:01:21 hmm Apr 22 19:04:46 so who here looked into this https://github.com/google/agera Apr 22 19:30:53 yet another reactive library? Apr 22 19:41:08 paresh: Twitter did https://twitter.com/akarnokd/status/723083911287332864 Apr 22 19:42:06 ugh i can get this t wor i have a public class SettingsActivity extends PreferenceActivity Apr 22 19:42:06 implements Preference.OnPreferenceChangeListener, { .. inside this i hae a call to public class Thing extends AsyncTask { ... I want to implment a callback in the Prefrence actvity that get call when Thing finishes ... not sure if i am explaining this clearly Apr 22 19:44:48 this seems to be what i want to do http://stackoverflow.com/questions/9963691/android-asynctask-sending-callbacks-to-ui Apr 22 19:45:07 but i am not understtanding the answer Apr 22 19:45:21 where do i put the interface ? Apr 22 19:45:40 in my activity or in me asyncTask Apr 22 19:46:07 You want it in the AsyncTask so anything that wants to use that task can implement it Apr 22 19:46:20 if you put it in the Activity, then that AsyncTask would be bound to that activity Apr 22 19:52:01 ok it made me creat a constructor in my Asynctask, do i put any in that ? Apr 22 19:52:23 hi Apr 22 19:52:36 im making an app that presents info from a website Apr 22 19:53:06 where should i put the code which actually fetches the data? its currently in a fragment but feels like thats' not the right place. Apr 22 19:54:01 i use an asynctask inside my fragment to get the data but asynctask doesnt seem to be very friendly Apr 22 19:56:33 hehe i am alos having async issues Apr 22 19:59:54 I hate Android M so much. Phone determines it’s been unused for 30+min, determines it’s night and dark around it, so starts dozing Apr 22 20:00:06 How am I supposed to SSH into my phone, or use whatsapp web, or so on, Apr 22 20:00:11 when the fucking phone goes into doze? Apr 22 20:00:36 Anyone know of a way to prevent the phone from going into doze except for keeping the screen turned on forcefully Apr 22 20:00:37 ? Apr 22 20:02:49 wakelock maybe? Apr 22 20:02:59 Even that is killed by doze. Apr 22 20:03:04 damn Apr 22 20:03:15 My current solution is keeping USB cable attached + "never turn screen off when charging" Apr 22 20:04:16 http://developer.android.com/training/monitoring-device-state/doze-standby.html#restrictions indeed, "The system ignores wake locks." Apr 22 20:04:23 soon, 0 control lol Apr 22 20:05:45 a bit below: An app that is whitelisted can use the network and hold partial wake locks during Doze and App Standby. Apr 22 20:06:26 good thing https://developer.android.com/training/monitoring-device-state/doze-standby.html#testing_doze_and_app_standby Apr 22 20:06:26 so you might want to ask the user to add the app to the whitelist Apr 22 20:06:30 you can test it Apr 22 20:06:32 adq: due to a bug, that only works during app standby Apr 22 20:06:34 unlike wakelock and deep sleep Apr 22 20:06:44 as Dianne hackborn said, the whitelist does NOT prevent doze Apr 22 20:06:52 I checked Apr 22 20:40:54 whatre the maps to the internal SD card? Apr 22 20:41:01 /data/media/0, /sdcard/emulated/0 Apr 22 20:42:03 anything else? Apr 22 20:44:43 crayon: also sometimes just /sdcard, or /storage/emulated/0 Apr 22 20:44:49 or /storage/internal Apr 22 20:44:54 I’ve seen all of these cases before. Apr 22 20:46:02 foldermount wont let me redirect internal /storage to my external sd card Apr 22 20:46:13 there’s a method you can call which will get you a directory on the internal SD card, so you don’t have to mess with that Apr 22 20:46:20 although I’m blanking on what it is Apr 22 20:54:02 http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Apr 22 20:54:26 crayon, you should not handle the path yourself, you will have bad suprises on different rom/devices/brand (cc samsung) Apr 22 20:54:55 if i have a asyncTask that i want it to return a value to the activity that called it ?? how do i go about that voodoo ? Apr 22 20:56:22 * g00s sighs Apr 22 20:56:28 or should i just call a method from the activity from onPostExecute Apr 22 20:56:44 where the eff is the xml peek height attribute documented for bottom sheet behavior Apr 22 20:56:45 ghostD0g, this has been answered for you before. you even found your own StackOverflow post about it Apr 22 20:57:04 i did it didnt work Apr 22 20:57:15 and i am trying to understand what Apr 22 20:57:18 passing a listener didn’t work Apr 22 20:57:18 why Apr 22 20:57:22 no Apr 22 20:57:31 gave me a null pointer error Apr 22 20:57:44 so check for null before using it Apr 22 20:57:50 your activity was probably gone Apr 22 20:58:25 hmm Apr 22 20:58:27 ok Apr 22 20:58:37 sorry i am so thick Apr 22 21:02:16 g00s, somewhere between a g+ post, a medium article and a cheesy youtube video Apr 22 21:04:15 g00s, http://developer.android.com/reference/android/support/design/widget/BottomSheetBehavior.html#attr_android.support.design:behavior_peekHeight Apr 22 21:05:07 adq when you search for BottomSheetBehavior in the searchbox, does it show up for you ? Apr 22 21:05:28 ahhh the interface is a sperate class Apr 22 21:05:34 thats what i did wrong Apr 22 21:06:21 yes g00s Apr 22 21:06:30 O.o Apr 22 21:06:35 but at third result Apr 22 21:06:45 AS 2.0 seems to have slowed down my computer a ton Apr 22 21:06:53 lol Apr 22 21:06:55 adq, how would you suggest i achieve the desired functionality? Apr 22 21:07:14 adq I type 'Bot' and get 0 hits Apr 22 21:07:29 crayon, no idea what you are trying to do Apr 22 21:07:47 move all the shit from sdcard0 to sdcard1 automatically Apr 22 21:07:57 so i dont need to data migrate when i get a new phone Apr 22 21:09:18 i have no clue sorry, do you have like 2 sdcards in your device?? Apr 22 21:10:16 if your question is not related to app development, you might want to try #android-root or other channel Apr 22 21:10:40 those guys are autistic Apr 22 21:11:40 crayon: not cool Apr 22 21:13:11 are you OP in there or something s73v3r Apr 22 21:13:43 no. But being a dick like that is not cool Apr 22 21:21:11 In AS 2.0 my interface files have the "I" icon next to them, but class files dont have "C Apr 22 21:21:13 " Apr 22 21:21:15 They are blank Apr 22 21:23:15 Just had to restart it ok Apr 22 21:24:09 any bugs in AS UI, just restart Apr 22 21:24:16 Sounds good Apr 22 21:24:20 how you doin s73v3r Apr 22 21:46:43 adq lol, i just installed chrome and d.android.com search bar still doesn't show any hits for bottom* Apr 22 21:46:52 so its not my caches Apr 22 21:47:35 oh! you meant in the drop down frame? i had to press enter to get result Apr 22 21:48:46 ah i see, yeah enter shows it Apr 22 21:51:28 Instant run seems pretty bad ass Apr 22 21:51:39 It just worked, didnt even know I was using it Apr 22 21:51:46 Got a toast saying "Activity restarted" Apr 22 21:51:56 when it works, it’s pretty nice Apr 22 21:52:22 Right, one of those features Apr 22 21:53:32 it doesn't work more often than that, unfortunately Apr 22 21:53:45 more often than not Apr 22 21:53:55 hmm, double negative Apr 22 21:54:47 lol Apr 22 21:55:20 hey y'all :) Apr 22 22:05:37 occam's razor ""Of two competing theories or explanations, all other things being equal, the simpler one is to be preferred." Apr 22 22:05:57 oh shit I was replying to something from like 6 hours ago, lulz Apr 22 22:09:51 having trouble googling this Apr 22 22:10:07 so I'm dealing with accesibility Apr 22 22:10:19 http://lmgtfy.com/?q=this Apr 22 22:10:36 if you select and item and hold your finger down, talkback will say "double tap to select" Apr 22 22:11:01 I think this is because android:clickable=true Apr 22 22:16:16 new book Rx book https://manning.com/books/grokking-rx Apr 22 22:25:41 "The Most Important Use Of Tesla's Autopilot? Dogs Driving Cars" aha ! Apr 22 22:26:08 g00s: "Making place to install Gentoo" Apr 22 22:26:48 i haven't seen gentoo in many years ... Apr 22 22:26:54 do not miss :) Apr 22 22:51:38 hello! Apr 22 22:51:39 somebody knows how to show an activity in the lock screen because flags are not responding... Apr 22 22:52:38 you mean on top of the lock screen? Apr 22 22:53:08 yes, before lollipop using flags works fine Apr 22 22:53:17 but after lollipop not Apr 22 22:53:17 yes, it was dropped i believe Apr 22 22:53:27 because now you have heads-up notificationw Apr 22 22:53:30 noticiations Apr 22 22:53:33 notifications :| Apr 22 22:53:51 but whatsapp shows an incomig call over lock screen Apr 22 22:54:13 i have a foreground service with notification Apr 22 22:54:24 then you have the wrong combination of flags Apr 22 22:54:43 are you setting the correct window type? Apr 22 22:55:56 i mean the way it used to work in like Android APIv4 was a notification Apr 22 22:56:08 you use to set the priority and fill in the fullscreenContent intent Apr 22 22:56:15 i'm using keep_screen_on turn_screen_on and show_when_locked Apr 22 22:56:22 are you sure thats not the same way now Apr 22 22:56:49 https://developer.android.com/reference/android/app/Notification.html#fullScreenIntent Apr 22 22:57:05 that sounds like what you want Apr 22 22:58:02 https://developer.android.com/reference/android/app/Notification.Builder.html#setFullScreenIntent(android.app.PendingIntent, boolean) Apr 22 22:58:13 An intent to launch instead of posting the notification to the status bar. Only for use with extremely high-priority notifications demanding the user's immediate attention, such as an incoming phone call or alarm clock that the user has explicitly set to a particular time. If this facility is used for something else, please give the user an option to turn it off and use a normal notification, Apr 22 22:58:13 as this can be extremely disruptive. Apr 22 22:58:20 an intent to show the activity? Apr 22 22:58:21 straight from the manual Apr 22 22:58:28 its exactly what you should be doing Apr 22 23:00:29 if I'm opening a connection but the port is blocked by the firewall, how can I handle it? Apr 22 23:00:42 use a different port Apr 22 23:00:49 haha Apr 22 23:01:21 MyWay: Pop a dialog informing the user, and giving them an option to select the port? Apr 22 23:01:40 s73v3r: they wouldnt undestand that Apr 22 23:01:59 MyWay: most services tunnel over http Apr 22 23:02:04 having a user select a port is like asking a big tittied woman to select the correct size for a mans cup. Apr 22 23:02:12 depends on who the target user is Apr 22 23:02:19 touche Apr 22 23:02:29 the tunnel probably is more user friendly Apr 22 23:02:38 yeah Apr 22 23:02:46 ok, i will check that...thanks Napalm, casually i need that to show an incoming voip call Apr 22 23:03:42 then thats exactly what you want.. theres also the heads-up compat bit you should add to your notification with the "answer" and "hangup" actions Apr 22 23:05:05 yes, i have the actions in the notification right now..i will test that Apr 22 23:06:28 apocalipsis: what API are you using to handle VOIP? Apr 22 23:07:24 * Ping_2_Ur_Pong contemplates the service hell that would have to be setup to handle a VOIP API. Apr 22 23:07:46 we use addlive before snapchat buy it, and we are some of the clients that they maintain Apr 22 23:08:45 addlive provides a complete framework for android iphone and web browser Apr 22 23:09:00 that's nice Apr 22 23:09:20 I was thinking of the hell you would have to go through to setup your own. Would at least be an interesting problem to solve. Apr 22 23:09:35 * Ping_2_Ur_Pong wonders how hard it would be to setup a VOIP server and route all his own calls and texts. Apr 22 23:09:48 yes...and addlive works very well Apr 22 23:10:59 I think it would be an interesting technology problem to solve. I have no actual usage for it other than prank calling my brother. Apr 22 23:11:21 you might check out Asterix Apr 22 23:11:36 i know there are some open source solutions for PBX Apr 22 23:11:40 * Ping_2_Ur_Pong high fives s73v3r, he is reading up on them right now. Apr 22 23:13:22 there are some solution, and open source too, but the problem is always security, scalability, and networking Apr 22 23:14:14 * Ping_2_Ur_Pong ponders if he should BS on this or spend time looking at WebRTC Apr 22 23:14:29 addlive switch the connection to p2p when they can Apr 22 23:15:28 they have a complex server and signaling structure Apr 22 23:16:01 the pros, works very well, the cons, take some time to connect Apr 22 23:20:55 hmm... I kind of want to take a crack at using WebRTC Apr 22 23:21:04 its supposed to be the new crack in this domain. Apr 22 23:26:47 sorry, what do you mean exactly? I'm argentine...some phrases escapes to me :) Apr 22 23:27:42 better they escape to you, than escape from you ! Apr 22 23:27:52 WebRTC is supposed to be the new hotness, WebRTC is supposedly the best way to facilitate VOIP communication it is being supported by google, opera, apple and several other big tech companies. Apr 22 23:27:59 WebRTC is supposedly great* Apr 22 23:28:10 if all those evade you, well then fuck I just suck at english Apr 22 23:28:39 I came across https://play.google.com/store/apps/details?id=com.pinger.ppa&hl=en earlier, kind of interesting. Apr 22 23:30:30 ahhh..ok...it's not a recusation...i sucks on english...but it's true, webrtc is the new standard Apr 22 23:31:59 and is the hell at the same time Apr 22 23:32:45 how so? Apr 22 23:35:59 is the hell if you need to develop your own api or customize one...voip is a world, and go too much complicated when big giants appears and change the rules Apr 22 23:36:52 the monopoly...security forces...etc Apr 22 23:38:18 well guys...i need to eat...bye! and thanks again! Apr 22 23:38:53 * Ping_2_Ur_Pong bows Apr 22 23:42:37 ffs Apr 22 23:42:49 Napalm: did you look in the mirror again? Apr 22 23:42:50 RecyclerView should have scroll view locking built in Apr 22 23:42:53 thought we talked about that Apr 22 23:43:21 Ping_2_Ur_Pong: you forget, flames are always gorgeous to look at :D Apr 22 23:44:39 lol Apr 22 23:44:41 There is a new browsers out from the former VP at Opera, its V something. Anyone have any clue wtf im talking about? Apr 22 23:44:51 yeah Apr 22 23:44:54 Vestibule or some shit Apr 22 23:44:57 what is it? Apr 22 23:44:58 lol no Apr 22 23:45:02 * Ping_2_Ur_Pong thinks he is going to try it Apr 22 23:45:07 versitle? Apr 22 23:45:15 Ping_2_Ur_Pong yes, google it - remember, no hand holding Apr 22 23:45:28 Ping_2_Ur_Pong: Vivaldi Apr 22 23:45:29 g00s: come on dude... that's so not fair... Apr 22 23:45:33 agh.... Apr 22 23:45:36 * Ping_2_Ur_Pong hugs Napalm Apr 22 23:45:51 * Napalm watches Ping_2_Ur_Pong get burnt Apr 22 23:46:10 * Ping_2_Ur_Pong did actually try to google it, he typed "vestibule browser or some shit" didn't quite come up Apr 22 23:46:29 * Napalm googled: opera theregister Apr 22 23:46:52 I read an article on 5 of its benefits and thought I would give it a nice try. Apr 22 23:47:09 ping is a brave man Apr 22 23:47:10 brendan eich's Brave browser looks interesting too Apr 22 23:47:11 The tab stacking concept could be really useful for me, I tend to keep 50 tabs open at once Apr 22 23:47:53 Ping_2_Ur_Pong: yea, i use an extension for chrome: "the great suspender" which solves all Apr 22 23:47:53 :D Apr 22 23:47:56 g00s that does seem damn nice Apr 22 23:48:24 eich wants to change the status quo; instead of ads, publishers use micropayments Apr 22 23:48:35 maybe he'll take down google heh Apr 22 23:48:58 micropayments become more practical with bitcoin / blockchain, but there is some work to do there yet Apr 22 23:49:18 g00s: check this talk out.. he uses ruby as his example. but if you look past that.. this really applies a lot. I must think very hard about doing my next app architecture this way. https://www.destroyallsoftware.com/talks/boundaries Apr 22 23:49:26 Napalm: that's a damn nice one, hadn't seen that before Apr 22 23:49:32 applys Apr 22 23:49:34 whatever Apr 22 23:49:57 think im adding that to chrome. I will never fully move away from chrome and firefox, but having another browser couldn't hurt. Shit I use lynx occasionally as well. Apr 22 23:50:17 Napalm if i don't understand ruby at all, will i still be able to follow ? Apr 22 23:50:38 Ping_2_Ur_Pong: you should watch this if you like Lynx/Links https://www.destroyallsoftware.com/talks/a-whole-new-world Apr 22 23:51:01 g00s: yea.. his voice over explains exactly whats going on Apr 22 23:51:08 i know nothing about ruby Apr 22 23:51:12 i refuse to use it Apr 22 23:51:21 a programmer must have principles Apr 22 23:51:30 Napalm was playing around with the new google analytics app; was interested to see they put viewpagers in recyclerview items :D Apr 22 23:51:42 orly? Apr 22 23:52:03 yeah gave me some ideas (if they can, i can too!) Apr 22 23:52:27 actually the cards in the RV have tabs and viewpagers Apr 22 23:52:30 g00s that could either be terrible or fucking awesome Apr 22 23:52:42 its pretty fucking awesome :D Apr 22 23:52:52 g00s: are they ViewPagers or more RecyclerView's Apr 22 23:53:10 Napalm the card only has viewpagers, no RV Apr 22 23:53:15 the card is in the RV Apr 22 23:53:16 interested Apr 22 23:53:21 interesting* Apr 22 23:53:34 yeah i've been learning a lot decompiling the gapps Apr 22 23:53:41 * Ping_2_Ur_Pong needs to choose his two open source projects for this weekend. I know one might be writting something so when I click on a fucking link in weechat it actually opens multiline links Apr 22 23:53:47 photos, keep, and analytics Apr 22 23:54:02 ugh, ok.. brain is fried Apr 22 23:54:16 g00s: I have been thinking of doing the same tbh. Apr 22 23:54:16 sleep is needed, i need a refuel Apr 22 23:54:21 gnight Napalm Apr 22 23:54:25 * Ping_2_Ur_Pong bows to Napalm sleep well Apr 22 23:54:56 i use to decompile the gapps back in the day.. when gmail first did their ux overhaul Apr 22 23:55:01 was very handy Apr 22 23:55:13 well.. eye opening Apr 22 23:55:19 yeah the multidex is kinda pita Apr 22 23:55:40 i remember thinking things like "oh of course, it can be that simple" Apr 22 23:55:41 lol Apr 22 23:55:53 Napalm they have some weird tree based event bus in Keep Apr 22 23:56:05 probably regret that Apr 22 23:56:25 data-binding probably will replace it at somepoint Apr 22 23:56:40 Napalm i also learned that nested in XML is ok , despite the docs Apr 22 23:57:34 and some other fun things with fragments Apr 22 23:58:44 that might not have been kewl previously, but was changed, and the docs not updated Apr 22 23:59:27 s73v3r can you elaborate? was it changed to "yes you can" or "don't" --- the 4.2 release notes say don't Apr 22 23:59:41 i was just speculating Apr 22 23:59:59 yeah i'd like to know officially if i'm setting myself up for some weird bug Apr 23 00:00:27 you’re doing nested fragments. you know the answer to that question Apr 23 00:00:35 lol Apr 23 00:00:41 i haven't /seen/ any problems ... Apr 23 00:00:51 "yet" Apr 23 00:00:56 exactly Apr 23 00:00:58 lol Apr 23 00:01:09 g00s: watch that vid, i'd like to hear your opinion.. Apr 23 00:01:14 right. bed is calling to me Apr 23 00:01:17 night all Apr 23 00:01:18 gnight Apr 23 00:01:35 nn Apr 23 00:13:48 i have five minute gradle builds Apr 23 00:19:00 sucker Apr 23 00:22:46 pict there have been a few gradle tuning guides on /r/androiddev ... Apr 23 00:22:59 within the past month Apr 23 00:23:22 done all the tweaks Apr 23 00:23:36 :( Apr 23 00:23:58 part of the problem i think is restart patches dont work on my phone Apr 23 00:24:05 a n d r o i d Apr 23 00:24:52 its making doing my job near impossible when i have to wait five minutes to even see a simple change Apr 23 00:25:43 anyone used RxAndroidBle? recommend? Apr 23 00:26:03 bitkiller is that the new one ? about 1 mo old ? Apr 23 00:26:42 g00s, last commit is days ago Apr 23 00:26:54 i saw something on /r/androiddev a few weeks ago Apr 23 00:27:34 g00s, yeh started in january Apr 23 00:28:42 do you know any other with the same intent? Apr 23 00:31:09 bitkiller yeah, but its pretty expensive - unless your app is open source Apr 23 00:39:47 RxAndroidBle doesn't use the post 21 api Apr 23 01:52:42 Hmm... Apr 23 01:52:55 we need a wiki, anyone know a good place to host one? Apr 23 01:59:21 since 'monitor' is an eclipse RCP, does anyone know where it stores its eclipse.ini file (on OS X) Apr 23 02:10:34 AndroidDev2016abcd23434234 wtf someone already has that email. wtf? Apr 23 02:12:45 hmm... that's interesting pretty much anything that contains the word android is banned on gmail... hmm Apr 23 02:38:59 Pretty pumped to try out kotlin Apr 23 02:39:24 Every time I have to, .post( new Runnable() {@Override public void run() {}} ) Apr 23 02:39:26 I get more excited Apr 23 02:39:28 lol Apr 23 02:40:05 you can mix in kotlin and java in the same file right? Apr 23 02:40:14 I dont think same file Apr 23 02:40:16 But same project Apr 23 02:40:26 Some class A could be java, and B could be kotlin Apr 23 02:44:35 Which is also cool Apr 23 02:45:34 Could I make an interface in java and reference it or implement it in kotlin? Apr 23 02:45:39 you can do that with any jvm language Apr 23 02:45:44 including javascript Apr 23 02:45:48 I didn't know that Apr 23 02:45:52 Pretty sweet haha Apr 23 02:45:59 pfn: thoughts on kotlin? Apr 23 02:46:14 this channel needs a wiki page Apr 23 02:46:17 cvs::svn is java::kotlin Apr 23 02:46:36 whats git? Apr 23 02:46:51 scala Apr 23 02:46:54 scala Apr 23 02:46:55 haha Apr 23 02:47:05 * Ping_2_Ur_Pong was thinking it you beat by a second Apr 23 02:48:05 Does it have a future Apr 23 02:48:23 of course it does Apr 23 02:48:27 more than kotlin Apr 23 02:49:03 I sometimes get out of memory errors on my emulator, but never on a real device Apr 23 02:49:06 Whats up w/ that Apr 23 02:50:23 A niche future Apr 23 02:51:24 kotlin? Apr 23 02:54:05 Ok whenever I try to exit out of an activity I keep getting an OutOfMemoryError... **** ENDING LOGGING AT Sat Apr 23 02:59:58 2016