**** BEGIN LOGGING AT Thu Nov 12 02:59:58 2015 Nov 12 03:05:43 can anyone suggest a decent jsonrpc library for android that does client ssl certs? Nov 12 03:07:18 also, I want only my app to be able to talk to my jsonrpc server, is ssl certs the way to go? Nov 12 03:23:47 Is there anyway for my baseactivity to basically make sure none of the parent activities execute anything past oncreate or something? Essentially, I call my LauncherActivity, but the user isn't validated, so I kick them back out to a loginScreenActivity, but if the they finish the loginScreenActivity I want them to end up on the launcherActivity/Screen they were just at (I check for a valid user before every activity). Nov 12 03:27:57 Jonno_FTW, that cannot. be enforced Nov 12 03:28:56 eghdk, finish on create if you kick to login Nov 12 03:29:15 pfn: can you ellaborate? Nov 12 03:29:27 pfn: If I finnish in oncreate am I guranteed that onresume won't run? Nov 12 03:31:00 eghdk, that's generally what it means Nov 12 03:32:25 pfn: So another question, I'm using a launch screen (i know i know, but my designers are quoting the material design guidelines, so I can't win) so my laucher activity is my Mainactivity, if I finish in oncreate, and kick back to login activity, then open up the mainactivity, I see the launch screen again... any way around that? Nov 12 03:32:46 some basic logic? Nov 12 03:33:28 sounds straightforward enough Nov 12 03:37:10 pfn: No I'm using a laucher screen where you set the activity window background to a drawable in the manifest. Nov 12 03:37:24 So the very second anything is drawn on the screen, it's your logo. Nov 12 03:38:18 It's not some splash screen where I do a "wait 1 second before dissapearing" type of thing. It's just that my app does usually around 1-2 seconds of instantiation, and they want to copy hangouts, gmail, maps, how it shows a brief logo while initializing. Nov 12 03:38:54 don't take 1-2 seconds Nov 12 03:40:10 Not a solution in this case. Doesn't matter how much I speed it up I told my designers I wont do it, then they found this https://plus.google.com/+AndroidDevelopers/posts/Z1Wwainpjhd Nov 12 03:41:19 And they were like just do it. So whatever. But now, if I implement the finish in onCreate, I get that damn launch screen Nov 12 03:42:03 So that's why I came back here seeing if theres any other way to just have my baseactivity finish up creating, load up the LoginActivity, and then finish that guy, and land me back into the MainActivity Nov 12 03:43:18 it shouldn't flash if your onCreate takes no timr Nov 12 03:45:07 otherwise, don't finish your main activity Nov 12 03:45:21 handle displaying user state properly onResume Nov 12 03:45:50 I mean, the onCreate basically takes no time, its doing the usual setting up of views. all of the setup is onResume Nov 12 03:46:16 then don't finish Nov 12 03:50:03 pfn: But if I don't finish, then I have to do something like have a boolean error, and then every parent activity in every method call onResume, onStart has to do a check if (error){return} no? Nov 12 03:50:38 That was the point of my first question in the very beginning. "Is there anyway for my baseactivity to basically make sure none of the parent activities execute anything past oncreate or something? Essentially, I call my LauncherActivity, but the user isn't validated, so I kick them back out to a loginScreenActivity, but if the they finish the loginScreenActivity I want them to end up on the launcherActivity/Screen they were just Nov 12 03:51:01 then do that Nov 12 03:55:44 pfn: I'll do that. Just wanted to know if theres any way to enforce it. Nov 12 03:55:54 Like, check if the error state was checked somehwo. Nov 12 04:07:32 any here who uses Volley ? Nov 12 04:09:24 suhas_sm: Does anyone use volley? Pretty common to see okhttp. I guess volley might have some additions that okhttp doesn't. Nov 12 04:09:44 hmm Nov 12 04:09:57 Documentation is very scare for Volley :( Nov 12 04:11:17 Volley and OkHttp are two very different things Nov 12 04:11:23 OkHttp is an HTTP client, Volley is not Nov 12 04:12:02 am I the only one that fucking loves Google NOw Nov 12 04:12:21 I love keeping todo lists. Although I add more things than I cross off... Nov 12 04:16:54 volley sucks, especially since it. gets. no promotion for use as a library Nov 12 04:17:20 one should consider volley effectively off limits. for use unless. Google throws it into their support repo Nov 12 04:19:07 we already went through hell once with maven libraries depending on support libs that were published unofficially Nov 12 04:23:57 i wonder why they never bundled it as a standalone support-volley library or something Nov 12 04:48:22 because es no bueno Nov 12 04:49:05 Any idea why TabLayout onTabSelectedListener only gets called the first time around, but I can switch tabs, and nothing happens? Which callback would allow me to do that? Nov 12 04:50:27 never used valley how is it better than retrofit + okhttp ? Nov 12 04:51:32 Better is not too objective and volley tries to do more than just retrofit and okhttp Nov 12 04:52:23 Not as simple imho as retrofit+okhttp+picasso Nov 12 04:54:43 pfn: Also, I've noticed that calling finish in parents onCreate will still let onCreate from child continue. Not that it makes a hige deal. Or maybe you already knew that, but either way, figured I'd point it out. Nov 12 05:07:38 eghdk, of course Nov 12 05:08:11 eghdk, only an exception can interrupt execution Nov 12 05:08:17 Wasn't aware. Thought it might stop dead in it's tracks, similar to return or break. Understand thats not how android works... but just verified it. Nov 12 05:08:39 it's not how any programming language works Nov 12 05:09:20 yiati: thanks i will read it up Nov 12 05:10:22 volley is a general purpose networking library Nov 12 05:53:32 Is there any gurantee any method call from a service would be called in between the the creation of my activity B from activityA? Like would my service which is doing stuff continue between onStart of Activity B and onStop of ActivityA? Nov 12 06:06:26 no Nov 12 06:06:40 HA Nov 12 06:06:50 JUST REALIZED I'M NO LONGER AN ANDROID DEVELOPER Nov 12 06:07:17 see ya suckers! Nov 12 06:07:34 that was metaphorical Nov 12 06:07:36 i'm not actually leaving Nov 12 06:11:16 ? Nov 12 06:11:24 Sarah ? Nov 12 06:13:49 eghdk: no, there's no way to guarantee your service would be started in between your activities Nov 12 06:14:42 Not necessarily started, but I have it running, and while it's running I check to see if I'm inside of an activity or not, if not then I do something different in the service. Nov 12 06:15:04 that's... odd Nov 12 06:36:24 Sarah: Well, another scenario where I need to know this is, GCMReceiver. I show a notification if I'm outside my app, but I just play a sound if I'm inside. I track this all via onStart and onStop in activities. Curious whether I would get a gcmreceiver callback, while im in the middle of transitioning activities. ya know? Nov 12 06:38:30 http://img.wonderhowto.com/img/49/30/63549141577553/0/install-new-android-5-0-lollipop-preview-build-your-nexus-5-nexus-7.w654.jpg Nov 12 06:38:42 is there a library for that kind of a spinner? Nov 12 07:40:31 What is the preferred method of returning a user account from a login activity? activity result or global variable? Nov 12 07:45:34 seems gradle-plugin 1.5.0 is out Nov 12 07:46:27 yay Nov 12 07:46:30 (?) Nov 12 07:48:46 yeah i've been waiting for the vector support Nov 12 07:53:16 skynet drones http://www.gizmag.com/kespry-nvidia-demonstrate-deep-learning-drone-tech/40363/ Nov 12 07:54:48 SimpleExpandableListAdapter casts objects to String while it accepts any kind of objects in the constuctor. Is there any way to make this String casting to work with my own objects? Nov 12 08:00:17 thepoosh is AS doing what you need for NDK yet ? Nov 12 08:00:29 or is it still experimental Nov 12 08:00:37 g00s: idk, I have very little to do with our NDK code Nov 12 08:00:47 thepoosh you are lucky :D Nov 12 08:00:51 lolz Nov 12 08:01:02 I actually feel like I'm missing a lot by not touching that Nov 12 08:01:23 also, I want some experience in more than just dalvik, ART and java Nov 12 08:01:27 thepoosh is it portable c / c++ ? Nov 12 08:01:39 some is shared some is not Nov 12 08:01:47 written in CPP Nov 12 08:02:00 you guys do ios / android, can it be ported to windows ? Nov 12 08:02:51 we have also a windows project Nov 12 08:02:57 but it's not out yet Nov 12 08:02:59 so yeah Nov 12 08:03:02 wow nice Nov 12 08:03:11 windows desktop or mobile ? Nov 12 08:03:16 mobile at first Nov 12 08:03:17 or both (UAP) Nov 12 08:03:27 but working on getting everything ready Nov 12 08:03:32 are the developers happy with the tech & tools ? Nov 12 08:03:47 meaning, since .NET is now cross platform, maybe this will be set for linux as well Nov 12 08:03:50 i'm still reading my c# book :D Nov 12 08:04:05 .Net Core is cross platform, yeah Nov 12 08:04:07 and all the swift/obj-c can be ported to OSx Nov 12 08:04:29 I think there is some planning being done for that Nov 12 08:04:35 would be amazing if oracle and MS trade spaces in portable managed runtimes Nov 12 08:04:35 but for now we are purly mobile Nov 12 08:04:47 i think oracle is more evil than MS Nov 12 08:04:51 yes, I like .NET very much Nov 12 08:05:00 MS is no longer evil Nov 12 08:05:08 now they are just evliish Nov 12 08:05:14 :D Nov 12 08:05:49 i mean, this is amazing - https://github.com/Microsoft Nov 12 08:06:00 thepoosh did you see this blog yet https://commonsware.com/blog/ Nov 12 08:06:05 thepoosh yeah Nov 12 08:06:18 g00s: are you talking about the permissions thing? Nov 12 08:06:27 i'm using VS Code and like it quite a bit; nice sweet spot between bloated IDE and dumb editor Nov 12 08:06:31 yeah, thats it Nov 12 08:07:28 g00s: I prefer sublime Nov 12 08:07:33 feels better to me Nov 12 08:08:07 i have ST installed, its very nice Nov 12 08:08:25 i think i'm going to uninstall it though, atom has been good enough. 1.1.0 uses less memory too Nov 12 08:08:46 well, I have a monster so I don't really care about that Nov 12 08:08:52 it even has all the nice behavior like browsing files into temporary tab, double click or edit to make it permanent tab Nov 12 08:08:57 i mean, Eclipse is already hogging all my RAM Nov 12 08:09:02 lol Nov 12 08:09:42 but ... who knows what is going on there, seems like the project is ~~~~~~ Nov 12 08:14:59 Anybody ever worked with Gimbal in here? Nov 12 08:24:30 May I ask why google uses checkNotNull() sinces it already has annotated the fields with @NonNull ? https://github.com/googlecodelabs/android-testing/blob/master/app/src/main/java/com/example/android/testing/notes/notes/NotesPresenter.java Nov 12 08:32:42 @NotNull doesn't prevent you from passing null to it Nov 12 08:35:07 I have a question. What does the force stop button actually do? Nov 12 08:37:53 kill -9 Nov 12 09:39:17 How do I set up strict mode? I see there's strictmode, ThreadPolicy and such. Any quick tips with it? Nov 12 09:44:29 docs to the rescue! let me know if anyone has other tips though. thanks Nov 12 09:47:23 eghdk: ??? Nov 12 09:47:33 ? Nov 12 09:47:41 http://developer.android.com/reference/android/os/StrictMode.html Nov 12 09:49:11 thepoosh: yep. just asking if anyone has used it before and if they have any best practices. the docs say to do a lot of things that most of the community frowns upon =) Nov 12 09:51:28 Yeah, that's not one of them. Nov 12 09:51:28 what community? and if they are frowning, what were their tips? and what was your need for this? Nov 12 09:51:34 Enable strict mode in debug and enable everything. Nov 12 09:52:15 eghdk: strictmode is awesome Nov 12 09:52:28 it allows you to crash in dev before you go out and kill your users Nov 12 09:52:54 Mavrik: thanks and cool thepoosh sounds like you've used it Nov 12 09:53:09 yep Nov 12 09:53:12 It's permanently enabled in all our apps in debug mode. Nov 12 09:53:32 Mavrik: you put it in Appllication.onCreate()? Nov 12 09:57:34 Mavrik: Any other dead easy tools like that? Nov 12 09:59:34 eghdk: LeakCanary Nov 12 09:59:45 Using that guy already Nov 12 10:00:10 Any others? I'm surprised I just learned of StrictMode. hahah Nov 12 10:01:10 thepoosh: and Mavrik basically, I have some code I inherited. Right now on startup of the app is terribly slow, and click on a list item to take me into another activity is super slow, and I'm just trying to find the best tools to perf this. Nov 12 10:04:00 eghdk, TraceView in Android monitor is great, there's also the new CPU measurement in Android Studio, but I find that display less useful Nov 12 10:04:11 yep Nov 12 10:04:17 I think FB has a tool as well Nov 12 10:04:34 but basically there are plenty of tools Nov 12 10:05:29 Mavrik: for the two problems I described, would you recommend diving into traview or systrace. they seem to really be the only real tools. Nov 12 10:05:46 Start with traceview and check systrace afterwards. Nov 12 10:05:58 +1 Nov 12 10:06:04 TraceView has a better display but it only shows your app Nov 12 10:06:06 also, just read the code Nov 12 10:06:08 That's enough for most cases Nov 12 10:06:24 You press the "start trace" button, do the slow thing, press "end trace" look at main thread Nov 12 10:06:35 probably strictmode will also help since it will throw every time Nov 12 10:06:40 Or do the same on CPU graph in newish AS Nov 12 10:06:51 Mavrik: I was going to just put logs at every line of code. but this should work. Nov 12 10:07:05 Not sure how logs help in those cases :P Nov 12 10:07:10 any tips with traceview? never used it, but I heard it was crazy hard to understand. Nov 12 10:07:20 Mavrik: logs with timers to see how long each method took Nov 12 10:08:05 eghdk: setting that up will take more time than just looking at traceview Nov 12 10:09:09 thepoosh: gotcha. okay, so start trace, do slow thing, end trace and look at main thread. lets give it a shot! Nov 12 10:09:23 yessir Nov 12 10:09:50 eghdk, try it first, ask later ;) Nov 12 10:11:56 I have a custom view that has a GestureDetector internally. On longclick that GestureDetector should open a DialogFragment, but to do that I need a FragmentManager... What would be the correct way get the FragmentManager? Nov 12 10:12:13 thanks Mavrik and thepoosh appreciate it Nov 12 10:13:08 np have a good one Nov 12 10:13:13 Syzygy, I'd say you have wrong responsibility here Nov 12 10:13:29 It's not the responsibility of a view to open a dialog -> make a listener on the view and open dialogfragment from the fragment containing it Nov 12 10:13:46 or even better, activity (since it's the activity tha manages fragments in it) Nov 12 10:15:24 It is the responsibility of the view to always interact the same way, no matter where it is included, that includes long click interaction. Nov 12 10:17:27 Well that's not how the Android API was designed - you have views which have listeners for interaction types only (clicks, long presses, etc.) and the view holder then decides how to do it. Nov 12 10:17:47 If you want to fight against it you'll have problems with access to components you need. Nov 12 10:18:05 I mean you can hack something together but it'll be painful to maintain. Nov 12 10:19:29 meh. It's kind of pointless to set the gesture detector from outside when it's always the same -.- Nov 12 10:46:20 what lib is responsible for auto focus? :/ Nov 12 10:57:32 Does anyone know why certain icons for notifications don't work? Looks like its taking the black of my icon and making it transparent? But I'm looking at the docs and can't really find what colors to use. Nov 12 10:57:44 yeah man Nov 12 10:57:49 that's lollipop for you Nov 12 10:58:01 u just gotta use neutral colors basically Nov 12 10:59:26 what's a neutral color? Nov 12 11:00:05 bah. this is annoying, some icons show some dont. lol. has to be a doc I'm missing for this. Nov 12 11:05:45 http://developer.android.com/design/patterns/notifications.html Nov 12 11:09:11 oh wow 1.5.0 final release of gradle plugin xD hope its not just the beta being renamed Nov 12 11:11:22 is there any proper library to get thumbnail from pdf file inside assets folders. Nov 12 11:11:23 ? Nov 12 11:19:51 Hello, I have a problem this error "Resources$NotFoundException: File res/drawable/ic_sync_black_24dp.xml from drawable resource ID". The file is there. What is worng? Nov 12 11:23:56 i have pb in auto focus of camera in victara, xt1097 and in other stock roms camera working normally, but i am getting unknownbaseband, on stock rom xt1092 everything is working fine, just camera auto focus is not working, can i swap the libs? :/ is it a lib problem? Nov 12 11:25:43 Domi, show your xml, this maybe something to read too http://stackoverflow.com/questions/17701186/exception-android-content-res-resourcesnotfoundexception-file-res-drawable-my Nov 12 11:25:56 hmm... notificationcompat isn't giving me a notification with actions on pre-lollipop -.- Nov 12 11:41:34 with gerrit on android-dev.googlesource.com, do I need to add reviewers by my self? Nov 12 11:47:32 which code do you want to see. It is mostly generated by android studio. I just added Intent i = new Intent(MainActivity.this, SettingsActivity.class); this.startActivity(i); Nov 12 11:48:49 the xml of your drawable Nov 12 11:49:34 and possibly the xml where you are attempting to use that drawable Nov 12 11:51:21 http://pastebin.com/zVwNKdi6 this is the xml where it is used Nov 12 11:52:54 and the xml for ic_sync_black_24dp Nov 12 11:54:14 http://pastebin.com/CwGmS1jm Nov 12 11:58:32 I don't see an error Nov 12 12:01:06 i've never messed with vector drawables so i'm trying to read. does the other drawable work ok, only error on that one? does it compile and crash upon run? Nov 12 12:02:45 can you post the full stacktrace or error log, and the xml of the other drawable in that preference Nov 12 12:02:57 it compiles and crash if i start this activity. I didn't use vector drawables, it was generated by android studio. Nov 12 12:03:22 it is a vector drawable, post the full stacktrace Nov 12 12:03:41 you mean everything form logcat? Nov 12 12:03:51 only for your crash Nov 12 12:04:34 are you targeting and running android api 21+? Nov 12 12:06:15 http://pastebin.com/ReV8i6br Nov 12 12:06:19 yes Nov 12 12:07:12 11-12 13:05:33.620 23632-23632/? E/PathParser: error in parsing "c-3.31 0,-6,-2.69,-6,-6 0,-1.01.25,-1.97.7,-2.8" Nov 12 12:07:22 it's the path Nov 12 12:07:57 ok. I will replace it. But why is it generated worng? Nov 12 12:08:01 wrong Nov 12 12:08:04 dunno i've never used it Nov 12 12:08:31 thank you Nov 12 12:08:36 android:pathData Nov 12 12:08:37 Defines clip path using the same format as "d" attribute in the SVG's path data. Nov 12 12:08:46 you'd have to check up on that format "d" Nov 12 12:10:38 I think I will replace it with a other images. Thank you Nov 12 12:21:43 Hello, do you know if there is a way to save the modification date of a file, when you copy it into an android device ? Nov 12 12:22:04 because its automatically set to the copy date Nov 12 12:23:08 Not really. Nov 12 12:23:11 or if there is a parameter of a file that is not deleted/overwrited when you copy it into an android device ? Nov 12 12:23:15 Find a better solution than relying on filesystem. Nov 12 12:23:42 Hello how do I stop a background android app via an intent uri ? Nov 12 12:24:04 otroViajero7: unless you are trying to kill your own app this is not cool Nov 12 12:25:03 the problem is that I invoke a third party app via an intent uri and then the app continues to work in background... Nov 12 12:27:02 I would like the third party app to kill it when I finish working with it. Nov 12 12:31:11 some suggestions ? Nov 12 12:36:20 With opengl, When I'm drawing a text, the more text I'm drawing, the less I can draw a circle (some triangles miss and tingle). Someone has an idea ? I'm using VBO Nov 12 12:38:35 otroViajero7: you cannot do that, you have no permissions over other apps Nov 12 12:38:49 besides, wanting to kill other apps is bad practice and terrible Nov 12 12:47:09 Hey, i'm using tab layout, i'd like to update the text of a specific tab..... are the tab accessible? Nov 12 12:48:20 never mind Nov 12 12:56:23 hi, i have a regex, how i can put this regex in a mask in edittext ? Nov 12 13:24:50 hey people, Can I use MapFragment without implementing OnMapReadyCallback ? Nov 12 13:55:54 hi how can i intercept the onncancel of a listpreference from the preferenceactivity ? Nov 12 13:56:05 there isn't any setoncancellistener or whatever Nov 12 14:03:01 I found out how android studio/intellij idea ended up adding "" and reformatting the manifest entirely... when adding a new activity/service/whatever that requires manifest change, it does it -.- Nov 12 14:08:39 Anyone installed x86 android on VirtualBox lately ? Nov 12 14:10:10 why not use genymotion which does that already Nov 12 14:11:18 Ashiren, $34/Mo Nov 12 14:11:30 for something I used to have for free Nov 12 14:13:17 Genymotion free version has most of the things Nov 12 14:13:25 And its damn fast Nov 12 14:14:08 suhas_sm, i don't qualify for free version Nov 12 14:14:25 x86 on VM is quite fast as well Nov 12 14:14:26 Means ? Nov 12 14:14:37 Whats the criteria ? Nov 12 14:15:21 commercial use Nov 12 14:27:40 the official emulator is free :) Nov 12 14:32:21 danijoo, haven't used it for few years. Is it still the slowest most painful thing ever ? Nov 12 14:32:47 its still the slowest if your options are genymotion, x86 and emulator yes Nov 12 14:33:00 but with haxm its not as slow as it was 2 years ago Nov 12 14:33:53 x86 VM used to work really well, especialy with old android versions Nov 12 14:34:36 too much work to set it up for new devices imo Nov 12 14:34:45 But now i'm having trouble setting it up. Partition tool doesn't have bootable option (it used to) so now i can't boot it after instal Nov 12 14:35:04 Anyone have any tips on how to get code arrangement to work in Android Studio? "Code - Rearrange Code" seems to do absolutely nothing Nov 12 14:35:08 I could do it in 4min Nov 12 14:35:09 haxm has been around for more than the last 2 years Nov 12 14:38:17 hi all. Can someone look over this layout xml file? I am missing something. I am getting some errors, but I just can't see where they are. http://pastebin.com/6DkiTvQh I have also placed the error lmessages I am getting at the top. Nov 12 14:40:23 PhoenixFyre, first LinearLayout Nov 12 14:40:44 It is closed Nov 12 14:40:48 the parent to all of them? or the first sub linearlayout? Nov 12 14:40:56 note the /> Nov 12 14:41:04 It is not parent Nov 12 14:41:10 oh, let me see Nov 12 14:42:09 All your LinearLayouts are closed Nov 12 14:42:40 yeah, I see that. Nov 12 14:42:55 thanks. Nov 12 14:42:56 Correct way: Nov 12 15:14:07 http://i.imgur.com/QL9kqr2.png Nov 12 15:14:12 Is this the layout? https://android.googlesource.com/platform/frameworks/opt/setupwizard/+/android-6.0.0_r26/library/main/src/com/android/setupwizardlib/SetupWizardLayout.java Nov 12 15:18:47 Google Play Services on Geanymotion are amazing Nov 12 15:20:48 they are the same you would deploy on any device, what makes them amazing? Nov 12 15:21:24 hey there anybody know any good library for getting thumbnails out of pdf file ? Nov 12 15:21:48 i have already using this https://github.com/JoanZapata/android-pdfview Nov 12 15:22:04 What do you mean by "etting thumbnails" ? Nov 12 15:22:14 getting * my bad Nov 12 15:22:41 there is G as well Nov 12 15:22:43 s9iper1: You said "getting" the first time. :s Nov 12 15:22:52 yeah yeah Nov 12 15:23:08 my view angle was not right Nov 12 15:23:11 :) Nov 12 15:24:10 yes, but are talking about getting picture of first pdf page ? Nov 12 15:24:20 yeah Nov 12 15:25:03 i cannot find any example to show them by using https://github.com/JoanZapata/android-pdfview library Nov 12 15:25:20 so use that lib you mentioned above, and get bitmap from your view Nov 12 15:26:23 "public class PDFView extends SurfaceView" you can get bitmap out of that SurfaceView Nov 12 15:26:45 google for how to extract bitmap from SurfaceView Nov 12 15:26:52 ahan let me try Nov 12 15:26:56 :) Nov 12 15:27:57 first google search from stackooverflow should do it Nov 12 15:28:13 Hi guys. After electricity went off and my computer was restarted I know have plenty of classes in AS marked as never used while they are. It seems that something is broken in AS project now. I can build the project and everything's ok except plenty of used classes marked as never used. How can I solve this? Nov 12 15:28:27 s9iper1, generaly you can make bitmap out of everything you see on your screen Nov 12 15:28:43 vegetablesalad19, ok Nov 12 15:28:48 AlexBerdnikov, file / invalidate caches, maybe Nov 12 15:29:18 in this case i need to load all the files i have i guess ? right i have 4,5 pdf. Nov 12 15:29:18 AlexBerdnikov, yeah - what zharf just said. clear cache, restart Nov 12 15:29:22 vegetablesalad19, Nov 12 15:29:41 AlexBerdnikov, then let it sit for a while until it finishes doing all its builds and lint stuff Nov 12 15:30:22 hey guys, I want to open the settings panel section that one can enable/disable hotspot from from with in my app. Is there a call for that? I am using something like startActivity(new Intent(Settings. ...)); but I can't seem one of the Settings. items that refer to the wifi hotspot. Nov 12 15:31:19 hey guys, I want to open the settings panel section that one can enable/disable hotspot from from with in my app. Is there a call for that? I am using something like startActivity(new Intent(Settings. ...)); but I can't seem one of the Settings. items that refer to the wifi hotspotbrb. Nov 12 15:31:42 Zharf, dragorn: Thank you guys! It helped! Nov 12 15:33:30 PhoenixFyre, perhaps startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS)); ? Nov 12 15:33:55 and get all the permissions Nov 12 15:36:05 s9iper1, well I don't know how that lib works. Load them one by one and scrape screens Nov 12 15:37:15 don't u think if there are multiple pdf's than it will be taking lots of resources Nov 12 15:41:17 Hi, I have a 9-patch set as a widget background, but rotating the widget causes aliasing. Does anyone know of a way to antialias this? Thanks in advance! Nov 12 15:41:39 s/widget/view/ Nov 12 15:42:39 s9iper1, probably. Well that lib is opensourced so you could extend it, and be more "cleaver" about getting what you want Nov 12 15:43:25 yeah trying so downloaded the project Nov 12 15:44:46 Hi all. I have some questions about building an android app with gradle. I'm hoping this is the right forum to ask such questions. Given that this is irc, I'm going to go ahead and ask. If it's not the right forum, I apologise; any pointers you can give me to the correct location to ask such questions would be appreciated. Nov 12 15:44:48 So, we have a big native code source tree that builds for a large number of platforms. This has it's own build system that copes with lots of different toolchains etc, but for the purposes of this discussion, it will drive the android NDK toolchain to produce us a static lib. Call it fred.a Nov 12 15:44:49 We then have a post link step that copies fred.a into the appropriate place in our android app, and invokes gradle to build that app. Nov 12 15:44:51 The gradle build then has an android.ndk section that includes the line: ldFlags += file('src/main/jni/fred.a').absolutePath and that has the effect of making a sharedlib out our static lib. All this is working fine. Nov 12 15:44:52 Where it falls down is that the gradle build is not spotting that fred.a is a dependency - i.e. updating fred.a does not cause the sharedlib to be rebuilt. Nov 12 15:44:54 I suspect that either 1) we're doing this the wrong way, and if we did it the right way, it'd all just work, or 2) that we are missing a dependency line somewhere. Nov 12 15:44:55 Any helpful pointers to a solution would be much appreciated - even RTFM, if you include a link to the FM in question!. Thanks. Nov 12 15:52:41 Robin_Watts, you're in a reasonable place to ask, unfortunately I haven't done much native stuff w/ gradle. others might have, but ultimately you might be better asking on stack overflow if no-one else has ideas Nov 12 15:52:44 * pfn only uses ndk-build + Android.mk; this thing is never a problem Nov 12 15:52:57 using gradle to do your ndk builds is a bunch of shitty bullshit Nov 12 15:52:58 Robin_Watts, all my stuff w/ ndk has been building the lib manually and then including it on the android side Nov 12 15:53:16 Android.mk handles dependencies easily Nov 12 15:53:21 gradle on the other hand... ugh Nov 12 15:53:25 pfn: I've been using ndk-build + Android.mk for existing projects. Nov 12 15:53:30 (like MuPDF) Nov 12 15:54:33 But given that android studio is supposedly the way to go these days (especially if you want to be able to use the promised forthcoming any day soon now honest native debugging), transitioning to android studio seems wise. Nov 12 15:55:25 pfn: Honestly, I'd probably be happy to do ALL the build using ndk-build and then just include the sharedlib if I could make that work. Nov 12 15:55:33 * pfn shrugs Nov 12 15:55:36 * pfn doesn't use android studio either Nov 12 15:55:41 there's no killer feature Nov 12 15:56:07 well, actually, it wouldn't be using ndk-build, it'd be using our own build system, but... you get the idea. Nov 12 15:56:23 How are you guys doing native debug? Nov 12 15:56:54 VisualGDB works OK, but the divide between debugging java and the C is a pain. Nov 12 15:57:46 I am trying to find an intent to open the wifi hotspot settings under settings. where on the web can I find what options are available for com.android.settings...? Nov 12 15:58:14 I found com.android.settings.teathersettings, but that isn't wwwhat I want. thats for USB and BT teathering. Nov 12 15:58:25 tether I mean Nov 12 15:59:36 I just use ndk-gdb if I need to Nov 12 16:01:13 ok, thanks guys. I'll lurk for a bit in case anyone else has any suggestions. Nov 12 16:03:30 PhoenixFyre, 'quickshortcut' from the play store is a convenient way to search for launchable actions Nov 12 16:03:44 PhoenixFyre, i'm sure you can do it via adb and am list or pm list, but whatever :P Nov 12 16:03:50 i'm too lazy to go look up the syntax, usually Nov 12 16:04:04 look in aosp, go to settings app, and look at available intents in the manifest Nov 12 16:04:13 yup, that too Nov 12 16:04:22 many ways to get there. I'm just usually a fan of the lazy one. Nov 12 16:12:56 hello, my android phone has suddenly stopped appearing as a USB device in Android Studio, reboot, same thing, the phone shows up as connected to OS... Nov 12 16:13:15 srestart adb Nov 12 16:15:53 finally figure out how to play in loop with MediaPlayer Nov 12 16:16:06 pfn, thx Nov 12 16:16:32 but once you minimize it you can't resume it Nov 12 16:19:15 I'm new to Android dev and I've noticed that some resources have resource ID's generated automatically in R.java while others don't. If I create a new Blank activity, the widgets get ID's, which I understand. If I add widgets, I must add "@+id" to get an ID generated for them. However, why do new strings in strings.xml get ID's generated automatically? What other resources are like this? Nov 12 16:20:00 strings don't get IDs, they get .string constants Nov 12 16:20:29 pfn, hmm, that didn't work Nov 12 16:20:32 ah, that makes more sense. I guess my main question is, when should I use "@+id"? Should it be when I add a resource (non-text) manually and need to use it? Nov 12 16:20:42 you should /always/ use @+id Nov 12 16:21:00 unless you're using an ID that someone already defined for you Nov 12 16:22:29 azv4, disable and re-enable usb debugging on device Nov 12 16:25:32 does someone know the com.android.settings call to open the mobile hotspot panel under settings -> Wireless & Networks > more > Mobile Hotspot? Nov 12 16:25:32 in my sdk manager in AS, i have google play services rev 28 installed. what version is that in the build.gradle file? Nov 12 16:30:27 hello everyone ! Nov 12 16:31:02 is there any way to show pdf files thumbnails in Activity ? Nov 12 16:31:44 https://gist.github.com/mr-fool/e04b5fc1cc98961191f6 <---is this the correct way to do it if I want to play the music while i am on that activity the song will start when I minimize it and resume when I return to the app Nov 12 16:33:19 xxxxx-sama: Wouldn't it be onPause and onResume? Nov 12 16:34:01 onCreate's significant other is onDestroy. Nov 12 16:34:59 TacticalJoke: so I need to do the same thing for onResume as well not just onPause? Nov 12 16:35:01 changelogs from plugin 1.4.0 - 1.5.0 are long :) Nov 12 16:35:26 TacticalJoke: why do you usually refers me to xxxxx-sama Nov 12 16:35:42 skrite: the latest version of play-services is 8.3 Nov 12 16:36:24 what are you making horny-sama ? Nov 12 16:36:26 xxxxx-sama: Maybe I am (or my IRC client is) way too innocent. :D Nov 12 16:36:52 what's this new transform api in gradle Nov 12 16:37:02 what projects are going to use it? Nov 12 16:37:11 TacticalJoke: like this https://gist.github.com/mr-fool/e04b5fc1cc98961191f6 Nov 12 16:37:13 g00s: Where are you seeing that? I'm not seeing 1.5.0 notes on . Nov 12 16:37:13 ? Nov 12 16:37:27 I assume they are 1.5 notes TacticalJoke Nov 12 16:37:49 actually 1.4 is 1.5 so even if they haven't put up the final notes Nov 12 16:37:50 cagmz: right now I am building bits and piece of my visual novel engine Nov 12 16:37:54 the 1.4-beta notes should be relevant Nov 12 16:37:58 coder2000: thanks Nov 12 16:38:01 TacticalJoke ah notes just goes up to -1.5.0-beta1, but jcenter has final Nov 12 16:39:01 xxxxx-sama: You need to read up on the Activity life-cycle. (And code duplication. :D) Nov 12 16:39:05 g00s: Oh, okay. Nov 12 16:39:10 cagmz: Atm I am struggling with background music https://gist.github.com/mr-fool/e04b5fc1cc98961191f6 (not sure if it is done correctly or not) I will just play on the background for the first activity as soon as I change activity it stopped and the background music will pause upon minimizing it and resume when I run the app again Nov 12 16:39:33 TacticalJoke: it seems to be working Nov 12 16:39:35 on my emulator Nov 12 16:40:22 I don't see why you'd do anything in onCreate here. Nov 12 16:41:32 TacticalJoke: it works on 5.0 emulator but not 4.0.3 Nov 12 16:43:12 Anyone ever do a email intent? Nov 12 16:43:46 Mine is opening up the email application but not filling in the "To:" Nov 12 16:44:36 pretty nice UX article, TacticalJoke will like the de-hamburger topic :) https://medium.com/@kollinz/misused-mobile-ux-patterns-84d2b6930570 Nov 12 16:44:44 i liked the empty state one Nov 12 16:44:45 Yeah, I saw that. I agree with a lot of that. Nov 12 16:45:04 And the icon thing is an important point. Nov 12 16:45:42 some of these things have been written about over 15 years ago, like yeah - icons with no text Nov 12 16:46:16 Yeah, it's weird how developers (even Google) make UX mistakes identified years and years ago. Nov 12 16:46:41 TacticalJoke: so like this https://gist.github.com/mr-fool/e04b5fc1cc98961191f6 ? Nov 12 16:47:09 g00s: help? Nov 12 16:48:25 seems working on android 5.0 emulator Nov 12 16:49:15 i still find funny to have the hamburger animation being hidden because they recommend that the drawer is covering it Nov 12 16:49:30 does not work on android 4.0.3 Nov 12 16:49:31 :< Nov 12 16:50:13 yeah it's so weird adq Nov 12 16:51:44 g00s: some of the stuff in the article only applies when your main ambition is to sell stuff Nov 12 16:51:56 horny-sama, google "android mediaplayer background" Nov 12 16:51:58 Hi Nov 12 16:51:59 enjoy Nov 12 16:52:05 adq: I did Nov 12 16:52:06 "A user interface is like a joke. If you have to explain it, it’s not that good." tell that to vim users Nov 12 16:52:34 So I have enabled kvm and I am running an emulated nexus 5 based on 5.1. Is it normal if I am getting a high CPU usage on Ubuntu 15.10? Nov 12 16:52:44 then pay attention to what you read, horny-sama, you obviously need a service Nov 12 16:53:15 where I use asynctask https://github.com/mr-fool/Android/blob/master/musicLoop/app/src/main/java/mr_fool/mysterysim/MainActivity.java Nov 12 16:53:35 asynctask is for short timed background operation Nov 12 16:53:40 like 2, 3 seconds Nov 12 16:53:44 it's in the doc Nov 12 16:54:09 use a thread, but it will be killed in the background if the OS needs more memory Nov 12 16:54:12 adq: plus technically what I am trying to do is not background music Nov 12 16:54:14 thus, service. Nov 12 16:54:40 adq: coz I want it to stop playing after I switch to another activity Nov 12 16:54:50 thepoosh pointed out other day that gmail uses NavigationDrawer, but how do they make it semi-hidden like that? the whole things behaves more like a SlidingPaneLayout Nov 12 16:55:41 does someone know the com.android.settings call to open the mobile hotspot panel under settings -> Wireless & Networks > more > Mobile Hotspot? Nov 12 16:56:07 adq: and I want to pause the song when it is on background activity Nov 12 16:56:11 where can I download the android 5.1.1 source code? so I can find out how settings opens tthe mobile hotspot screen? Nov 12 16:56:15 only play it when it is a foreground activity Nov 12 16:56:41 [A/window 5 Nov 12 16:56:47 derp Nov 12 16:56:57 PhoenixFyre if action is not in Intent class, its semi-private. You could look through Settings app and get the intent / component but not gauarnteed to work Nov 12 16:57:00 play the song in your onResume, and stop it in your onPause? Nov 12 16:57:14 ^ Nov 12 16:57:48 g00s yes, I tknow. how can I look through the settings app? you mean the source code right? Nov 12 16:57:55 yeah Nov 12 16:58:06 look through the headers.xml file i think its called Nov 12 16:58:27 where can I get the android source code? Nov 12 16:58:37 PhoenixFyre: ok Nov 12 16:58:49 let me give it a try Nov 12 16:59:15 g00s thanks for the help. googling now to get the source code Nov 12 17:00:40 https://android.googlesource.com/platform/build/+/android-5.1.1_r1 is this where I can get the source code for 5.1.1? Nov 12 17:01:00 PhoenixFyre: like this https://gist.github.com/mr-fool/e04b5fc1cc98961191f6 ? Nov 12 17:01:54 adq: like that? Nov 12 17:01:55 ^ Nov 12 17:01:56 xxxxx-sama: Again, why would you use onCreate here? Nov 12 17:02:21 TacticalJoke: I want it to play as soon as it starts the activity? Nov 12 17:02:25 no Nov 12 17:02:31 I'll answer for you: "Because I haven't learned about the Activity life-cycle." Nov 12 17:02:55 TacticalJoke: I want it to play when it is a foreground activity Nov 12 17:03:04 http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle Nov 12 17:03:08 and stop when it is a background activity Nov 12 17:03:10 xxxxx-sama: My answer still stands. Nov 12 17:03:19 and learn how to use members/attributes Nov 12 17:03:23 hi Nov 12 17:04:25 is there a way to wrap an InputStream into some kind of LimitInputStream to prevent other wrapper (like BufferedInputStream or CipherInputStream) from reading too much ? else it is not very convenient when using it over Socket Nov 12 17:04:40 adq: you mean methods? Nov 12 17:04:43 what would be the proper way to do so Nov 12 17:05:48 TacticalJoke: what's your point Nov 12 17:06:15 I mean it seems to work on android 5.0 emulator Nov 12 17:06:17 so... Nov 12 17:07:36 I don't know why TacticalJoke is telling me to fix something that is not broken yet Nov 12 17:11:48 xxxxx-sama: The code assumes that Activity.onResume is *not* called after Activity.onCreate in a typical scenario, which is false. I don't know wxxxxx-sama: The code assumes that Activity.onResume is *not* called after Activity.onCreate in a typical scenario, which is false. I don't know whether this is related to your current issue, but it's definitely something you need to learn about. Nov 12 17:12:03 My message went all weird. ;o Nov 12 17:12:47 TacticalJoke: I will fix it when there is a problem Nov 12 17:15:15 it is just weird how it works with 5.0 but not 4.0.3 emulator Nov 12 17:19:56 xxxxx-sama: Okay, but FYI that reply makes me think "It's a waste of time trying to help this guy -- he doesn't care to learn the basics of a fundamental Android component". Nov 12 17:20:08 TacticalJoke the soft keys (circle, square, triangle) are wtf icons Nov 12 17:20:26 g00s: Yeah, I was thinking that the other day (when I got my Moto E 2). Nov 12 17:20:52 TacticalJoke how do you like your e2 Nov 12 17:21:02 Though I'm not sure how best to solve that problem. Text, for example, would be too distracting. Nov 12 17:21:20 i think a back arrow is better than triangle Nov 12 17:21:38 Great battery life, fast, smooth screen. No notification light, though (and Moto Display doesn't pulse). Nov 12 17:21:43 Also no flashlight. Nov 12 17:22:34 And the unfortunate absence of silent mode that comes with 5.0.2. Nov 12 17:22:40 you complain a lot Nov 12 17:23:14 did not know youtube now supports 1440p Nov 12 17:23:23 https://www.youtube.com/watch?v=LKL-efbiIAM Nov 12 17:23:56 g00s: I'm probably gonna get a Sony Xperia Compact as my main device. This is just an emergency phone. Nov 12 17:25:13 TacticalJoke hmm ... can't recommend anything but nexus these days Nov 12 17:25:28 get a 6P and be careful with it :P Nov 12 17:26:04 I'm not a fan of the warm colour temperature. :\ Whites look yellow. Also, no notification light is a pain (though maybe the new Nexuses have a nicer "active display" thing). Nov 12 17:26:06 g00s: 6p is kinda expensive Nov 12 17:26:15 only $70 more than a 5X Nov 12 17:26:22 16gb tier is irrelevant Nov 12 17:26:24 pfn: 5x is $$ Nov 12 17:26:34 horny-sama, it isn't Nov 12 17:26:36 I’m in the process of splitting an app which has used only one Activity into two. Nov 12 17:26:37 I usually buy phones that is a gen behind to save cash Nov 12 17:26:46 horny-sama, it's roughly the same price as the old nexus 5 Nov 12 17:27:03 I have native code in one activity which I’m convinced needs to be managed by a second activity in its own, separate process. Nov 12 17:27:05 of course, if you just want a crappy, but somewhat ok phone, you can get a moto g Nov 12 17:27:11 pfn: I think I got my nexus 5 for like 399 ish Nov 12 17:27:22 pfn: or get a window phone :P Nov 12 17:27:37 why would you want a winphone Nov 12 17:27:45 pfn: coz cortana Nov 12 17:27:54 um, so? cortana isn't good Nov 12 17:27:57 and cortana is available on android Nov 12 17:27:58 fyi, I live in canada so android cortana is not available Nov 12 17:28:05 pfn: not in canada Nov 12 17:28:11 only for usa as usual Nov 12 17:28:18 sucker Nov 12 17:28:20 When everything was in one activity I had a drawerlayout where the user could swipe from the left to reveal a layout with buttons to set preferences and manage stuff. When that layout was not visible, the user saw only the window into which the native code draws. Nov 12 17:28:31 pfn: you 'Merica Nov 12 17:28:37 always get new toys Nov 12 17:28:44 and cheaper price than canada Nov 12 17:29:38 I’d like to keep the look and feel of the drawerlayout, but I now need the code that handles the ‘buttons to manage things’ layout to be running in another process. Nov 12 17:31:03 Is there some good way to do that? My plan now is to detect the swipe gesture by hand and then launch the second activity, but I suspect I’m going to lose the ‘sliding drawer’ feel of the thing or have to write all my own code to slide the view, etc., i.e., reinvent a lot of stuff worse than the frameworks do it. Nov 12 17:31:33 plus I don't understand why would anyone buy a phone that is not black Nov 12 17:31:37 black phone master race Nov 12 17:31:47 pink phone master race Nov 12 17:32:23 missingno: only a handful of devices is pink Nov 12 17:32:26 so what model Nov 12 17:45:44 Someone can help me with an ORMLITE question ? Nov 12 17:45:48 http://stackoverflow.com/questions/33677708/ormlite-delete-records-that-field-is-on-another-collection Nov 12 17:48:07 If I have a NotificationCompat that was built with setAutoCancel(true).setContentIntent(contentIntent).setDeleteIntent(deleteIntent), what reasons would cause it not to call the deleteIntent when it's clicked? Documentation says it will call it if it's set. Nov 12 17:48:27 https://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html#setAutoCancel(boolean) Nov 12 18:11:44 thepoosh there ? Nov 12 18:12:09 g00s: !! Nov 12 18:12:31 thepoosh !! other day we looked at gmail, the view hierarchy had NavigationDrawer - but I don't see how they could have obtained that SlidingPaneView behavior ... do you have any ideas? Nov 12 18:12:51 don't follow Nov 12 18:14:01 gmail navigationdrawer is at best semi-hidden. but i dont see how DrawerLayout can do that Nov 12 18:14:13 but thats the widget in their view hierarchy Nov 12 18:14:39 they probably custom-wrote one Nov 12 18:15:03 well you can apktool it and inspect Nov 12 18:15:24 g00s: on my device, it's not hidden at all Nov 12 18:15:36 and that is the dump I posted Nov 12 18:15:43 thepoosh right, its compacted Nov 12 18:15:59 but its on the same plane as all the other views, when you open it up it doesn't slide over Nov 12 18:16:00 it really looks like an old viewpager-like Nov 12 18:16:18 and the burger menu is not animated :trollface: Nov 12 18:16:24 :D Nov 12 18:19:04 g00s: not sure what you're talking about - http://imgur.com/DMLT3rT Nov 12 18:19:18 that is exactly how i would imagin it Nov 12 18:19:47 thepoosh oh interesting, its not like that on my n7 Nov 12 18:19:59 that is the dump you got from me Nov 12 18:21:54 what’s it look like on the n7? Nov 12 18:22:23 this screen is a OPO Nov 12 18:22:41 is there any way to run android app on windows 7 laptp Nov 12 18:22:44 s73v3r looks like this http://blog.sqisland.com/2015/01/partial-slidingpanelayout.html Nov 12 18:23:19 she emulates the behavior with SlidingPaneLayout but I had some problems with it, since thepoosh 's hierarchy dump showed DrawerLayout i thought there might be a hack Nov 12 18:23:52 sorry for misleading you Nov 12 18:23:57 lol no Nov 12 18:24:52 hm i should check maybe they use SlidingPaneLayout on tablets and DrawerLayout on phobes Nov 12 18:24:55 *phones Nov 12 19:25:53 hey guys. I have two activities. a1 and a2, in a2 I am collecting some data, and I am passing it via an intent to a1, so I have my intent like Intent i = new Intent(this, a1.class); i.putExtra("key", value"; startActivity(i); etc. in my onCreate of a1, I am initializing an intent, and getting the data back, Intent iGetData = getIntent(); strValue = iGetData.getStringExtra("key"); but Nov 12 19:25:54 I am getting nothing back. Nov 12 19:28:33 i want to create a list of items with an "x" button that can be used for removing an item Nov 12 19:28:58 any tips how to do this, what layout to use/widgets? Nov 12 19:30:11 PhoenixFyre, and value is really a String? Nov 12 19:30:16 maybe tablelayout? Nov 12 19:30:28 one column for item and column contains the remove button Nov 12 19:30:52 murosai: You’re overthinking this Nov 12 19:33:03 ktwo yes, it is Nov 12 19:34:01 s73v3r: what do you suggest? Nov 12 19:34:23 murosai: Just use a list, and have a button in your cell layout. on button click, remove that item from your data set, and call notifyDataSetChanged Nov 12 19:35:49 cell layout? Nov 12 19:36:07 PhoenixFyre, if you call getExtras , do you see your object? Nov 12 19:38:48 ktwo getExtras from what where? Nov 12 19:39:24 intent.getExtras() and watch in the debugger to see if theres somthing inside Nov 12 19:39:37 compare the intent before starting the activity and again in the next one Nov 12 19:39:49 ktwo let me check that. Nov 12 19:40:04 murosai: The layout that you’d use for your listview/recyclerview? Nov 12 19:40:08 Hi all. Does anyone else have issues getting LG devices to be recognized on their Macs? Nov 12 19:44:11 when did "considered harmful" become a meme? Nov 12 19:45:05 1968 dikstra Nov 12 19:45:20 *dijkstra Nov 12 19:46:23 GOTO Considered Harmful Nov 12 19:46:37 ahh interesting thanks Nov 12 19:48:15 lol TIL new word 'crapweasel' Nov 12 19:49:41 how do other developers handle versioning when qa gets back to you about such and such issue, treat it as a bug / hot fix? Ie, working working then you get like "navigation menu needs to be redesigned: ie, change color + font formatting", does this really deserve an entire branch, and if it does not how to gracefully "patch" it in to the current development versioning? Nov 12 19:50:28 it depends on how big the change is, if you want to make a branch or just fix it in main Nov 12 19:50:47 well in this case, like it is just swapping a couple lines of code Nov 12 19:50:59 what’s the potential impact? Nov 12 19:51:46 literally in this case, navigation menu background color, active item background color, font and icon color changed and header (previous with image and user account name) removed. Nov 12 19:51:47 if the potential impact is low, like you’re not going to introduce a crash, then you might be ok fixing it in mainline. otherwise make a branch Nov 12 19:51:53 ok Nov 12 19:51:56 good principle Nov 12 19:52:01 if you have doubts, just make a branch Nov 12 19:52:16 if you’re using a modern VCS, like git or hg, then branches are cheap Nov 12 19:52:28 except more branches = messy history = unreadable versioning which is as bad as unreadable source Nov 12 19:52:29 branch, make the change, test, then merge back in Nov 12 19:52:33 not really Nov 12 19:52:34 yeah Nov 12 19:52:54 not unless you’re awful at writing commit messages, and don’t use rebasing Nov 12 19:53:16 right Nov 12 19:53:32 so to use one or two permanent branches, ie master or master and dev/ Nov 12 19:53:43 Is there a way to include native emoji in resource strings? I have something that's sent from the server that renders just fine, but if I copy/paste that same character in the strings.xml, the app crashes complaining about "input is not valid Modified UTF-8: illegal start byte 0xf0" Nov 12 19:53:50 why would they be permenant branches? Nov 12 19:54:06 wait, nevermind Nov 12 19:54:21 as in git flow has master and dev, you branch off dev for features, and master always has a stable state Nov 12 19:54:33 we have something like that Nov 12 19:54:35 but seems redundent to me since you can just branch a release and push back to master with a tag Nov 12 19:54:39 we have dev, and we have QA Nov 12 19:55:03 difference is that dev is not always stable, whereas main should always build and pass tests Nov 12 19:56:56 right but you can just checkout -b "stable-production ready version 1.2.3" and tag it and merge it back into master then search by the tag Nov 12 19:56:59 that will always be stable Nov 12 19:57:14 not every commit to master will be tagged Nov 12 19:57:19 I hate how git flow makes master stable Nov 12 19:57:22 that is what i am saying Nov 12 19:57:28 you make every tagged commit to master stable Nov 12 19:57:33 the default branch should be the one that's constantly used Nov 12 19:57:36 then you just search these tagged commits Nov 12 19:57:37 not the one that never gets used Nov 12 19:57:42 ^^ Nov 12 19:57:48 so make it that way Nov 12 19:57:50 pfn so you dont have two branches Nov 12 19:57:57 git flow doesn’t prescribe specific branches Nov 12 19:58:26 everyone literally takes their examples as such Nov 12 19:58:37 so? Nothing stops you from doing it the other way Nov 12 19:58:46 the reason iam asking is the client company hired a new technical lead and since i am the only developer on the android projects so far i haven't had to care so much about anyone in the versioning but now he is "managing" and "advising" me to use gitflow Nov 12 19:59:00 he’s the client. do it his way Nov 12 19:59:15 id rather just convince him using a proof of entropy Nov 12 19:59:28 don’t waste time Nov 12 19:59:50 eh, as a consultant, you provide advice Nov 12 20:00:12 advice, but then you do what the client asks Nov 12 20:00:32 maybe mention it once, but if he says no, then drop it Nov 12 20:00:56 it’s versioning, the impact on you will be tiny at best Nov 12 20:01:12 save your political capital for fights that really matter Nov 12 20:01:22 like when they try to get you to make your app look like an iOS app :p Nov 12 20:01:34 heh Nov 12 20:05:16 test Nov 12 20:05:54 What's the best way to do a task every 5 seconds in an intentservice? Handler post delayed? Alarm? or just a java Timer? Nov 12 20:07:02 i noticed toughtworks put gitflow on 'hold' for 2015 radar Nov 12 20:07:54 eghdk: since it is android probably a handler Nov 12 20:08:04 ktwo so I'm getting this error also, E/AndroidRuntime(31397): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference Nov 12 20:08:39 eghdk: Any reason why handler over Timer? I seem to get the same net effect by trying either of the two Nov 12 20:09:36 Any how can help me with a shared view transition, please? I want the selected image to rotate smoothly (preferably also to have border width grow and color animate smooth, but that's less important right now). Rotation is bad, here's a video: https://bitbucket.org/asklandd/shared-view-demo/raw/c4f309c423de75bc21fdc491d49c9fe650d98978/screencast-video.mp4 Here's the complete code: https://bitbucket.org/asklandd/shared-view-demo/src/c4f309c423de75bc21fd Nov 12 20:10:06 eghdk: timer uses new thread Nov 12 20:10:18 there's no reason for this allocation since handler can use existing thread Nov 12 20:11:08 also with handler using main looper you have garunted causality, with timers not so much Nov 12 20:12:08 how should i implement a fading animation text indicating user that something has happened? Nov 12 20:13:25 I hadn’t ever heard of gitflow until mentioned just now. We always have long-lived release branches, branched off of our development branch around 1x/year, and all bug fixes go directly into those, with bug-fix builds made from the HEAD of the relevant release branch. Nov 12 20:13:58 lasserix: I'm using this in IntentService, would that be fine to have a Handler using main looper? Nov 12 20:14:09 I’m not sure what the ramifications of using the description of gitflow I read would be, but not having long-lived release branches just seems like a pain if you need to maintain an old product. Nov 12 20:14:22 eghdk: oh yeah intent service has the background thread Nov 12 20:14:25 I don't think I want the main looper (I'm not good with loopers. don't really understand them. so sorry if it seems like a stupid question) Nov 12 20:14:44 eghdk: oh yeah its easy Nov 12 20:14:48 lasserix: So how would I set up a handler in intent service? Or I guess I could google that much. Nov 12 20:14:50 Handler h = new Handler(looper.getmainlooper) Nov 12 20:15:24 wouldn't main looper put it on the main thread? I want to be on background thread. Nov 12 20:15:38 actually wait sorry my mind is some other place, but i think you could just do Nov 12 20:16:30 you could use a do while Nov 12 20:16:38 where you wait in the while loop Nov 12 20:16:45 then use the handler on the ui to notify Nov 12 20:16:48 every 5 seconds Nov 12 20:17:21 wait using a thread.sleep or something? Nov 12 20:17:24 no Nov 12 20:17:27 object lock Nov 12 20:17:31 wait/notify Nov 12 20:17:33 Don't want to do anything on ui. Nov 12 20:17:35 you wait in the while loop Nov 12 20:17:39 you're just notify the lock Nov 12 20:17:48 it is essentialyl doing nothing Nov 12 20:17:54 and creating a new thread is more costly Nov 12 20:18:01 How do I do a lock/wait Nov 12 20:18:11 Hey! So I'm working on my first app, and it's crashing when I click a button in the emulator. Would someone mind helping me out please? Her's the logcat output: https://bpaste.net/raw/d70a48a98922 My activity_main.xml: https://bpaste.net/show/c0c43acf3d4e, and my MainActiviy.java: https://bpaste.net/show/5ecd1b5482d4 Nov 12 20:18:32 It apperes to be crashing at the onclick line in the activity_main.xml Nov 12 20:21:15 eghdk, Do you mean Thread.sleep()? Nov 12 20:21:50 eghdk: something like http://pastebin.com/WWCfugP2 Nov 12 20:22:29 Smrtz: Caused by: android.os.NetworkOnMainThreadException Nov 12 20:22:54 you are pinging off main thread you need to use async task or exeuctor/threadpool Nov 12 20:23:18 eghdk: oops. h.postDelayed Nov 12 20:23:24 Oh, so I just need to spawn off a new thread and then ping from that? Nov 12 20:23:30 yeah Nov 12 20:23:59 Ok, I'll look into that. Thanks. Nov 12 20:23:59 lasserix: wait. Looper.getMainLooper()? Wont that be pinging back on the main thread? I have it in an intentservice for that reason. Nov 12 20:24:09 yes but all you are doing is calling notify Nov 12 20:24:17 which unblocks the background thread Nov 12 20:24:31 no work is going to be done on the main thread except one message which wakes up the background thread Nov 12 20:24:43 plus you can publish progress to the UI if you want ;p Nov 12 20:25:29 lasserix, do you have an example you can show me? Nov 12 20:26:03 http://developer.android.com/training/basics/network-ops/connecting.html Nov 12 20:26:12 Thanks! Nov 12 20:26:53 the only thing is to make sure you cancel your async in onStop Nov 12 20:26:59 and clear any reference it has to a context or view Nov 12 20:27:17 Ok, I'll see what I can do... Nov 12 20:28:00 eghdk: the cost of a timer and its queue and thread invocation is much much much greater for the UI than a simple message waking up an already running thread Nov 12 20:30:04 So confused. lasserix Just need an IntentService that prints out a Log.d() every 5 seconds. Nov 12 20:30:07 not on ui thread Nov 12 20:30:15 eghdk: a timer creates a new thread Nov 12 20:30:20 meaning you have intent service thread Nov 12 20:30:22 timer thread Nov 12 20:30:24 and UI thread Nov 12 20:30:32 you always already have intent and UI thread Nov 12 20:30:42 so it is unecessary for the timer thread Nov 12 20:30:45 threads out the wazoo Nov 12 20:31:13 because you can leverage the UI thread by using a simple single message every 5 seconds to trigger your intent service thread to wake up do work and go back to sleep/blocking state Nov 12 20:31:17 *blocked state Nov 12 20:31:31 (fyi threads out the wazoo kinda suck in ways you would not expect) Nov 12 20:31:45 posting a runnable that just calls notify is almost doing no work Nov 12 20:31:59 since you are notifying the background thread, which is doing the work Nov 12 20:32:47 or i am argueing that a single message on the main looper queue with the notify call is much less expensive than all that the timer task has to do (create new threads, handle queues, etc, you already have that) Nov 12 20:34:24 lasserix, I edited my 'ping_server' method, and set a brake point in there, but it's not running when I click the PING! button. do you see any other errors? Nov 12 20:35:23 By executing wait() from a synchronized block, a thread gives up its hold on the lock and goes to sleep. //Later, when the necessary event happens, the thread that is running it calls notify() from a block synchronized on the same object. Nov 12 20:38:31 I haven't added the code for pinging yet, I'm just trying to test for an active network connection. Nov 12 20:38:39 Smrtz: i dont see any code Nov 12 20:39:01 i turnedoff the trogan on your device so i can't look at you monitor Nov 12 20:39:27 Haha. Here's the new ping_server method Nov 12 20:39:27 https://bpaste.net/show/3e18a3dc149f Nov 12 20:39:43 did you add the permission? Nov 12 20:39:47 *permissions Nov 12 20:39:50 Yep. Nov 12 20:40:27 did you try logging if and lese? Nov 12 20:41:08 I don't know what if and lese are... But here's the logcat output: https://bpaste.net/show/82bc98cca29c Nov 12 20:41:18 if is active else (is not) Nov 12 20:41:41 does your breakpoint have an X by chance? or a checkmark? Nov 12 20:42:13 Oh, I put a break point at the start of the method, and it's not being entered. I clicked the PING! button a bunch of times before grabbing that logcat output too, so we should be seing something there. Nov 12 20:42:41 No, it's just a red circle. I'm used to vim though, so it could be that I don't know how to use an IDE. Nov 12 20:42:47 so add Log.d(.., "is active) and "is not active" to that if/else Nov 12 20:44:19 and you are sure you haev both internet and accessnetworkstate permission in you manifest? Nov 12 20:44:42 Yep. Nov 12 20:45:16 Has anyone experienced issues with LG devices not being recognized on their Mac? Nov 12 20:45:20 It's only LG so far. Nov 12 20:45:34 All the Samsungs and Nexus work fine Nov 12 20:45:40 Nexuses Nov 12 20:45:43 lasserix, Rebuilding and testing now. Nov 12 20:46:14 lasserix, if you'd like I can zip up the whole project and send it to you? Nov 12 20:46:26 sorry i dont really have the time Nov 12 20:46:30 but make sure you handler is working Nov 12 20:46:32 Ahh, no worries. Nov 12 20:46:34 remvove that code Nov 12 20:46:39 just put a simple toast or something Nov 12 20:46:42 then if that is working add it back Nov 12 20:46:49 or just put it in oncreate Nov 12 20:46:52 Good idea. Nov 12 20:47:57 oh man i just stumbled upon a 2010 I/O session on app navigation Nov 12 20:48:03 lol, the 6 pack ! Nov 12 20:51:16 funny seeing the twitter app running on what seems to be a Nexus 1 Nov 12 20:51:25 animated cloud background, anybody remember that :| Nov 12 21:40:17 what is the easiest way to bundle up an apk? Is there something easier than the "Generate a Signed APK" build option? Nov 12 21:40:34 what’s difficult about that? Nov 12 21:41:16 you could set up a script to do it, but I’d imagine that wouldn’t be easier than just clicking a button Nov 12 21:41:17 I'm not sure what to use for key store path or passwords Nov 12 21:41:38 it’s the path to your keystore, and the passwords are the ones you used when generating the key store Nov 12 21:41:54 s73v3r: ideallyyou have facial recognition so you can just make faces at your webcam and it'll autobuild or whatever Nov 12 21:42:16 you’d need to use those for any method of bundling an APK Nov 12 21:51:22 lasserix: bind facepalm to 'git revert @ -m "never mind"' Nov 12 21:53:13 ?> Nov 12 21:53:46 never mind Nov 12 21:53:53 https://plus.google.com/+AndroidDevelopers/posts/ebXLByBiEBU Nov 12 21:55:24 if I annotate my abstract method as @Nullable do i get the benefit of warning checks in the child classes? Nov 12 21:55:42 it's a method I'm calling from parent Nov 12 21:56:23 you'll get a warning in AS if you don't annotate childred Nov 12 21:56:59 shialebeouf.jpg Nov 12 21:58:56 it doesn't throw a warning for that Nov 12 21:59:14 hum. Nov 12 22:01:01 it could help for people implementing the child class to know that the parent isn't expecting a non null value Nov 12 22:03:16 i would think the warning would have to propogate. Nov 12 22:03:32 it would make no sense to have all of the other subclasses not accept null, and then having one that does Nov 12 22:03:59 yeah Nov 12 22:04:02 i donno Nov 12 22:04:11 i guess because it's an annotation Nov 12 22:04:17 i suppose Nov 12 22:04:32 are you sure you somehow didn't disable the warning? Nov 12 22:04:34 does it yell at you if you don’t annotate the overridden method, and then pass it null? Nov 12 22:04:36 ← too drunk to check Nov 12 22:04:43 lol Nov 12 22:05:07 s73v3r: return null from the overridden method? Nov 12 22:05:16 i mean that Nov 12 22:05:26 no Nov 12 22:05:36 sounds like a bug Nov 12 22:05:37 Maybe because Nullable is considered default behavior? Nov 12 22:05:40 I have no idea Nov 12 22:06:08 for some reason I was thinking of @NonNull Nov 12 22:06:15 i had a feeling Nov 12 22:06:16 hah Nov 12 22:27:28 is it a code smell if I have multiple different callback interfaces with different signatures? Nov 12 22:27:42 does anyone know what this is main.173.com.wb.goog.mkx <- Nov 12 22:27:43 they all implement a success() and failure() method with different parameters Nov 12 22:28:14 you can generify Nov 12 22:28:29 alternatively if you are inner classing them Nov 12 22:31:11 bubbely, thats a package Nov 12 22:31:26 quick google tells me its not from your app :p Nov 12 22:31:36 oh Nov 12 22:31:44 im trying to install android 6.0 on my kobo tablet Nov 12 22:31:46 https://play.google.com/store/apps/details?id=com.wb.goog.mkx Nov 12 22:32:00 thats the app matching that package Nov 12 22:32:08 oh Nov 12 22:32:10 mortal kombat Nov 12 22:32:18 lol Nov 12 22:32:20 ok that adds up Nov 12 22:32:30 also i think you are in the wrong channel ;) Nov 12 22:32:46 not the channel to ask for help installing 6.0 ? Nov 12 22:32:53 correct Nov 12 22:32:58 #android? Nov 12 22:33:05 or #android-root Nov 12 22:33:14 this #channel is for different smells associated with colors Nov 12 22:33:15 this is application development Nov 12 22:33:28 ok ok Nov 12 22:33:54 I had google sign in working and I started adding authentication for firebase and now I keep getting status 12501 when I attempt to sign in. I didn't touch any of the google code to add firebase. Nov 12 22:34:13 What could be causing it? I recreated all my auth keys just in case. Nov 12 22:36:09 got dangit Zendesk Nov 12 22:36:20 why ur sdk have to use old retrofit Nov 12 22:36:29 pls Nov 12 22:36:53 * danijoo still uses old retrofit. Nov 12 22:38:16 i was tryin so hard not to Nov 12 22:38:22 retrofit is old? Nov 12 22:38:30 i though it was still a good option Nov 12 22:38:33 1.x retrofit is old Nov 12 22:38:37 ah right Nov 12 22:38:44 old retrofit is old Nov 12 22:38:54 its retro Nov 12 22:38:58 lol :( Nov 12 22:39:01 retro retrofit is old Nov 12 22:39:08 retro retro retrofit Nov 12 22:39:11 upgrading would require some refractoring. Nov 12 22:39:15 never change a running system :) Nov 12 22:39:22 guys we should seriously considering going into the music business Nov 12 22:39:52 Any tips to styling CCL dialogs? Nov 12 22:40:11 It looks like I'm screwed, unless I merge the codebase into my module. Nov 12 22:40:16 I'd rather avoid that. Nov 12 22:40:20 if your working system is a house of cards I agree ;p I'd weigh the benefits of upgrading first, but yeah if it doesn't give you anything you need... Nov 12 22:41:26 not a house of cards, but theres no gain in switching Nov 12 22:41:33 just a wasted hour or two Nov 12 22:42:16 then yeah if it works and you don't need it Nov 12 22:42:31 i was digging the cancelable (not wrapped) call pattern Nov 12 22:42:43 but nooo, zendesk u turd Nov 12 22:43:00 danijoo is there a 1.x to 2.x migration guide? how much work can it be Nov 12 22:43:55 if things were designed right in the app, i would imagine all the networking stuff would be together - stuff together that changes together :D Nov 12 22:44:07 g00s, its not that much of work i guess Nov 12 22:44:23 retrofit service now returns Call as response Nov 12 22:44:37 and you can execute that sync or with a callback Nov 12 22:44:50 thats reminds me, wth is going on with rxjava 2 Nov 12 22:45:20 i just dont see the benefit in touching that part of code. Network and security stuff should never be touched when its working Nov 12 22:45:34 at least thats my philosophy as I tend to break things there Nov 12 22:48:27 danijoo so you are afraid of your code ? :P Nov 12 22:48:55 for that particular app: yes - at least for some parts of it Nov 12 22:49:21 wtf https://github.com/markrietveld/RxJava/commit/d01cd061e378494d342e6dd03d469ff31a42184a Nov 12 22:49:26 This was my first app so there are some really 'interessting' design patterns in it :p Nov 12 22:50:21 :D Nov 12 22:50:33 "Pull 3488 Replace all instances of AtomicFieldUpdater with direct Atomic instances" did samsung do something here? Nov 12 22:51:03 like including an old rxjava lib in their rom? :D Nov 12 22:52:05 samsung is awesome Nov 12 22:52:08 they fuck everything up Nov 12 22:52:15 lol it really is samsung.. I thought that was a joke.. Nov 12 22:54:36 thx samsung Nov 12 22:54:37 :( Nov 12 22:55:10 g00s: https://futurestud.io/blog/retrofit-2-upgrade-guide-from-1-9/ Nov 12 22:55:49 danijoo: how did you find out that was samsung? Nov 12 22:55:54 I don't see anything obvious Nov 12 22:56:16 explodes_, https://github.com/ReactiveX/RxJava/issues/3459 they all say its a samsung exclusive Nov 12 22:56:20 anyone know if there is a way to like pick from list of modified? Nov 12 22:56:25 or should iw rite a script to do that Nov 12 23:00:35 so if i do git status -u is there some way to do git add u@1 / s@1 or @1 to select by index from the status list ? Nov 12 23:00:56 or can i do git add */filename? or something like that since i am stuck with ././././././././././file path names? Nov 12 23:03:07 https://github.com/square/retrofit/issues/1152 Nov 12 23:03:16 bleh Nov 12 23:05:50 I am having some trouble with the EditText control. I use setError("Blah", someDrawable) for validation purposes, and then when the entered text is no longer invalid, I want to make it as valid, and so I want to add a compound drawable to the right (a green checkmark), but I am only able to set top, left, and bottom, not right. Here's the code: http://pastebin.com/4rBHLyda Nov 12 23:06:54 It is as if the drawable from setError is somehow overriding the new drawable that I set, even though I use setError(null, null) - the result is that the green checkmark won't show, only a white space. (But it does show, as I mentioned, for top, left, and bottom) Nov 12 23:08:54 s/make/mark Nov 12 23:19:35 Hi, I'm starting an Activity via explicit intent and I'm trying to change the Toolbar text but I'm getting a null pointer for some reason: https://gist.github.com/Quintasan/3c7c0e380017de3335e3 . What I don't understand is why does the toolbar even show up in the called activity when it's not defined there. Nov 12 23:21:38 The code I pasted is a tad wrong, as I was experimenting, here's a fixed version: http://pastebin.com/fva9U06L Nov 12 23:27:26 TacticalJoke: do you know isFinishing always called? Nov 12 23:28:15 Interesting, I was able to get it to work with this code: http://pastebin.com/Ew2qyxs5 very ridiculous though Nov 12 23:29:08 lasserix: How do you mean? Nov 12 23:29:25 What signature does sideload check against? Nov 12 23:29:39 ah well the response from zendesk is, "Retrofit 2.0 is in beta - so too fuckin bad" Nov 12 23:29:45 that's helpful Nov 12 23:29:52 A layout in the support library has a TextView with the attribute: android:textAppearance="?attr/mediaRouteChooserPrimaryTextStyle", that SHOULD mean that if I have a value in my Theme like this, @style/ChromecastChooserPrimaryStyle, it SHOULD be honored, right? Nov 12 23:29:52 thanks doods Nov 12 23:29:55 so i have activity a which can update some model state, it can also start activity b which is a refined version of a that also updates the model state by passing back a parcel in activityResult. So whenever activity A "stops" i need to maybeSaveState Nov 12 23:33:26 Damn private styles Nov 12 23:33:48 explodes_: Yeah, I'd expect so. Kinda like how we can override `?attr/colorPrimary` and so on. Nov 12 23:34:06 So then why, pray tell, isn't it workin' Nov 12 23:34:13 hey everyone Nov 12 23:34:19 lasserix: Are you asking whether `isFinishing()` will always return true in Activity.onPause when the Activity is going down? Nov 12 23:35:13 I have a question regarding the new runtime permissions needed for API 23. If I want to make a module/package, how can I ask for the permissions on it? (without having access to the MainActivity) Nov 12 23:35:24 just whether isfinishing is always called Nov 12 23:35:30 Called by what? Nov 12 23:35:37 by the super i assume Nov 12 23:35:48 in the same way onPause is always called and ondestory is not always called Nov 12 23:36:00 I don't think Activity.isFinishing is a life-cycle method. Nov 12 23:36:09 hey folks, what happens if a user upgrades from 5 to 6, and the app had a restricted permission in 5? Nov 12 23:36:15 oh its not called when the activity stops? Nov 12 23:36:18 assuming that the app was already compatible with api v23 Nov 12 23:36:30 Nah, it's just a "finishing" property, basically. Nov 12 23:36:42 so it's only called once? Nov 12 23:36:51 it must be called eachtime right? why else return something? Nov 12 23:37:24 http://developer.android.com/reference/android/app/Activity.html#isFinishing() Nov 12 23:37:29 like, if a user was using an app that had sd card access on a phone that was on apiv21, and the app was apiv23 compatible, and then the user applies an OTA update Nov 12 23:37:32 I don't see why you're thinking the framework even calls this method. Nov 12 23:37:55 will the app be granted the permissions it had in apiv21, or will it be as though the app is newly installed, and has not asked for the permissions yet? Nov 12 23:38:31 TacticalJoke: you have any idea, by chance? Nov 12 23:44:19 What is the point of isFinishing if it is not called by the framework? Nov 12 23:44:30 or are you supposed to call it during onPause? Nov 12 23:45:49 TacticalJoke posted you the doc on it Nov 12 23:52:10 how do i set an author in git in android studio? Nov 12 23:52:20 ah sorry kinda blind Nov 12 23:52:29 i'm getting an error 'no existing author found" Nov 12 23:52:42 and this is using the same author name i use on cli Nov 12 23:55:25 If someone could help me with the runtime permissions for sdk 23 on React Native modules I would really appreciate it https://github.com/Tiagojdferreira/rn-geolocation/issues/1 Nov 12 23:57:33 pfn :D http://www.zebralight.com/SC600-Mk-III-18650-XHP35-Flashlight-Cool-White_p_174.html Nov 12 23:57:47 1300 lm for 2.2 hours is crazy ! Nov 12 23:57:48 Anyone know why I might be getting this type of text from an API: http://i.imgur.com/1i4H79U.png Nov 13 00:09:08 g00s: someone really had a dream to build the ultimate flashlight Nov 13 00:09:37 i've had a few zebralights over the years, pretty awesome Nov 13 00:09:56 i have an older SC600 i used for trail running, max was 500 lm :) but got pretty hot ... Nov 13 00:10:03 idk if this would make the most awesome or anticlimatic xmas gift Nov 13 00:10:25 oh a flashlight?! 100 dollar flashlight? Nov 13 00:10:35 *blinds* relatives a Nov 13 00:12:05 pretty expensive, $90 for light, $18 x 2 for 18650s, $40 for 18650 charger Nov 13 00:14:02 yeah Nov 13 00:14:09 that is why it was someones dream Nov 13 00:14:35 :D Nov 13 00:14:40 the initial cost barrier is like too damn high Nov 13 00:15:01 it would be cool to get that flash light + that spider silk parka NE is putting out Nov 13 00:15:20 then you need some pants, and some kinda all terrain shoe Nov 13 00:16:33 for android pay, are the virtual account numbers valid credit card numbers for the card type it is generated? Nov 13 00:22:37 anyone know of the top of the head how long it'd take to decode 10 1024x1024 pngs from internal memory? Nov 13 00:22:40 *off Nov 13 00:22:48 on like a n7 or n5? Nov 13 00:23:56 or another way to ask is the time spent writing and then reading 10 1024 argb 888 pngs to and from disk short enough that optimizing it out of code a preoptimization? Nov 13 00:26:16 hey CedricBeust looks like sourcetree got a new product manager recently, looks like its not dead yet :D Nov 13 00:33:10 g00s, yes, it is Nov 13 00:33:40 g00s, aww, it's not a cr123a Nov 13 00:34:28 i think the xhp35 is quad die, in series so Vf ~ 12 v . Nov 13 00:35:38 i bet they will do a SC3 version sometime :D Nov 13 00:36:08 I have so many cr123a batteries to burn thorugh Nov 13 00:39:06 but yeah, absurdly bright Nov 13 00:39:15 I feel so inadequate with my single cell lights Nov 13 00:45:11 all zebralights are single cell; i prefer that over multi-cell (consider it safer) Nov 13 00:45:29 i'm sure they will come out with a 1 CR123 version, i doubt 1AA though Nov 13 00:46:58 the spec sheet says 700lm @ 350mA(Vf ~ 11.3 v) i think that should be possible with 1 123 Nov 13 01:04:20 Hey guys, im making a request to an API and that actual request takes about 3 seconds to return me with the data I need, but I am doing a calculation for each item I get that adds at least 20 seconds to the query Nov 13 01:05:16 I'm wondering if theres a better way to do this Nov 13 01:06:42 so for tablet layout, were the DrawerLayout (left) is locked open, i guess I need to modify the content layout child in the drawer so that it has a left margin == panel width ? Nov 13 01:08:00 otherwise panel will be stuck over it, kinda weird Nov 13 01:09:17 Anyone know a good way to get the distance between 2 zip codes? Nov 13 01:09:21 I have a way to do it, but its slow Nov 13 01:11:42 is a disk ever so full you can't create a file? Nov 13 01:11:55 or a directory Nov 13 01:12:04 and if so whats the exception: illegalstate? Nov 13 01:12:21 Cannot create file: you have saved too much porn to this device! Nov 13 01:14:09 yes, it is possible. there is a minimum size for a file, and if you don’t have the spare block, you can’t do it Nov 13 01:14:35 but can't it be held in ram until space becomes available? Nov 13 01:14:50 ie as a virtual file, stilla file, waiting free blocks? Nov 13 01:15:07 just curious how writing to like context.getFilesDir exceptions are handled Nov 13 01:15:10 if they are even thrown Nov 13 01:15:16 no Nov 13 01:15:22 since low disk space seems to be an actual prevelant thing Nov 13 01:16:02 otherwise you could “write” a bunch of stuff to a virtual file, and then find out that there’s no space Nov 13 01:16:23 it’s better to find out there’s no space right away, before you start to write stuff and then lose your data Nov 13 01:16:30 yeah Nov 13 01:16:36 so what is the exception java bubbles up? Nov 13 01:16:51 that I couldn’t tell you Nov 13 02:16:21 mornin' Nov 13 02:19:29 in some of my code i have a function that calculates the volume of a tetrahedron. it somehow takes 3 corners as parameters. not 4. it somehow works. it is used to draw a penis. i'm not showing it to you. Nov 13 02:25:06 hey alex_PP , have you ever used DrawerLayout with locked open drawer ? Nov 13 02:25:32 nope Nov 13 02:25:35 can't stand the drawer Nov 13 02:25:51 UX or API ? Nov 13 02:25:55 but if it's locked open, how is that different to a horizontal linear layout? Nov 13 02:25:57 UX Nov 13 02:26:00 (and API) Nov 13 02:26:55 drawer will be drawn over your stuff tho. Nov 13 02:27:09 alex_PP only locked with tablet + landscape Nov 13 02:27:30 locking doesn't make sense Nov 13 02:27:32 squirrel yeah thats what i was wondering, i guess you need to manually add margins to the content view so that its not underneath ? Nov 13 02:27:34 res/layout-land? Nov 13 02:27:38 you're hiding content Nov 13 02:27:41 i find using using a different large-land layout more simple Nov 13 02:27:49 squirrel ok Nov 13 02:27:53 g00s, just have 2 view groups Nov 13 02:28:03 yeah seems easier Nov 13 02:28:19 two xml files ditch the drawer in tablet Nov 13 02:28:38 it's not a matter of easier Nov 13 02:28:41 it's correct ui Nov 13 02:28:56 without having to do hacky shit like setting margins in the content Nov 13 02:29:02 thre's no such thing as correct ui Nov 13 02:29:16 i mean there's no reason you have to use drawer in tablet, just mock it Nov 13 02:30:28 i mean there's no reason you have to use drawer... Nov 13 02:32:05 drawer is the best thing that happened to android. Nov 13 02:32:17 u sailfish fanboys. Nov 13 02:33:07 pfn lol you included emu chrome in your qicr screenshots O.o Nov 13 02:34:37 g00s, yeah, I don't particularly care Nov 13 02:34:50 proof that it works everywhere Nov 13 02:48:50 MS OneDrive SDK for Android is MIT licensed .. Nov 13 02:50:40 screw using the direct sdk, just use saf Nov 13 02:52:25 thats api 19 though Nov 13 02:52:43 and do your users use check your platform stats Nov 13 02:52:52 for your app Nov 13 02:53:18 and for that matter, look at stuff that msft has been putting out, they have no qualms about not supporting old android version Nov 13 02:53:28 cortana, hyperlapse, rd desktop, etc. Nov 13 02:55:24 exactly 50% users on < 19 **** ENDING LOGGING AT Fri Nov 13 02:59:59 2015