**** BEGIN LOGGING AT Wed Jan 13 02:59:59 2016 Jan 13 03:02:46 meh, I hate pants that don't have deep pockets, only time I ever drop my phone Jan 13 03:05:58 we need to strip ActionBarSherlock out of this app Jan 13 03:06:21 the interface is so similar to appcompat Jan 13 03:06:51 anyway I'm a little confused on the differences between appcompat and support libraries v4, etc Jan 13 03:07:00 not hard to, actionbarsherlock was intended to match the native api Jan 13 03:07:10 they're different libraries, of course Jan 13 03:07:38 well it's also depending on SlidingMenu (which depends on ABS). It should be feasible, but I wouldn't say easy lol Jan 13 03:07:46 appcompat is UI, support is core-common utilities, design is more ui Jan 13 03:08:06 sliding menu doesn't match an existing api, so it's less easy Jan 13 03:08:23 but not hard to reproduce in drawer layout or navigation view Jan 13 03:08:39 do bad things happen when you aren't consistent about your import statements? Jan 13 03:09:07 mixing com.android.app.Activity and v4.app.Activity? Jan 13 03:09:45 there is no v4.app.Activity Jan 13 03:09:59 but you would have a problem mixing Fragment imports Jan 13 03:10:19 woops I did mean Fragments Jan 13 03:11:06 RustyShackleford d/l cheesesquared by chris banes, and look at the github repo Jan 13 03:11:11 pretty much everything you need is there Jan 13 03:11:26 I guess I could write a script that would find and replace incorrect import statements Jan 13 03:13:23 g00s: nice, thanks for the link Jan 13 04:39:55 anyone know how Sprig did their nav drawer menu? https://play.google.com/store/apps/details?id=com.eatsprig&hl=en Jan 13 04:40:34 what about it Jan 13 04:40:42 * g00s doesn't see anything in screenshots Jan 13 04:41:25 g00s: have you tried it? yea screenies wont show it Jan 13 04:41:36 no havent Jan 13 04:41:52 it like blurs out the background with a dark overlay and animates items in Jan 13 04:42:10 pretty neat, but not sure how they're doing it Jan 13 04:42:28 sounds cool. kinda bling stuff i don't worry about much though ;) Jan 13 04:56:38 sounds lke iOS :p Jan 13 05:05:28 make a video Jan 13 05:05:52 but it's not too hard to animate stuff in Jan 13 05:08:08 for each child, set starting position, then animate().x or y(final position).start() Jan 13 05:15:15 IO at shoreline is a very strange venue for a tech conf Jan 13 05:19:11 Google I/O at Shoreline? Jan 13 05:23:27 maybe it will be like last year, relatively light on technical stuff, but then X, Y, Z summit later (Android, Chrome, Ubiquity) Jan 13 05:31:29 This app is incompatible with all of your devices. Jan 13 05:31:35 thanks for nothing Jan 13 05:33:47 Thank you for saving you a useless download? Jan 13 05:35:24 well, wanted to see hwo they did that Jan 13 06:18:30 in an android app, what is the title row on the top of the screen called, that some apps have, that show the name of the app? Jan 13 06:18:44 AppBar Jan 13 06:19:09 implemented as an Action Bar or Toolbar Jan 13 06:21:29 BW^- https://www.google.com/design/spec/layout/structure.html#structure-app-bar Jan 13 06:36:56 Can anyone suggest a good resource on Android development? I have a Java+Jruby background, but wrote most my UI from HTML (if that helps any) Jan 13 06:40:37 d.android.com Jan 13 06:44:28 http://phandroid.com/2016/01/12/google-io-2016-drones-cars/ Jan 13 06:56:31 Could be drones, or could be that they've discovered a way to control the weather :) Jan 13 07:15:14 is there any way to make sure to associate my SDK to single application?. Jan 13 07:22:41 is there a way to show layout bounds in AS Preview (like you see on device) Jan 13 07:39:51 I am re-doing an app and trying to salvage what I can Jan 13 07:40:18 While doing so, I came across a class which had public attributes Jan 13 07:41:05 My question is that, is Android lenient to public attributes of a class? Jan 13 07:42:04 I started OOP in C++ and I do recall never making a class' attribute public. Always made them private and accessible via getter and setter Jan 13 07:44:07 attribute or field Jan 13 07:44:38 attribute, like say String title; Jan 13 07:44:50 thats a field Jan 13 07:45:07 and its perfectly valid java so Jan 13 07:45:19 Looney: generally, java code style says to never expose fields like c++. android sdk isnt the pinnacle of code style Jan 13 07:45:42 "java code style" being whats commonly accepted to be good java. Jan 13 07:45:47 Like, no need for getter and setter? Jan 13 07:46:02 there is no need, but theyre good practice. Jan 13 07:46:05 Just make stuff public Jan 13 07:46:13 OK Jan 13 07:50:48 Looney: Java prefers getters and setters, but they’re not required. I think the rationale was that you could modify the input ‘behind the scenes’ Jan 13 07:51:39 in some style guides package-private fields are fine too. Jan 13 07:52:52 OK Jan 13 07:53:11 What say people about public? Jan 13 07:54:07 we just told you .-. public fields are bad practice and getters should be preferred Jan 13 07:54:39 OK, great then I am improving the code Jan 13 07:55:05 I just wanted to check with practitioners to see whether I share same stance on public or not Jan 13 08:00:19 ListFragment seems awesome Jan 13 08:02:24 Correct me if I am wrong, all I need to do is to pass instance of my array adapter to setListAdapter Jan 13 08:02:33 Sounds too good to be true Jan 13 08:02:41 uh. Jan 13 08:02:45 why? Jan 13 08:03:43 Nice and easy Jan 13 08:07:59 Once a fragment is swiped, should I save state of fragment in onPause() or onDestroyView()? Jan 13 08:08:01 http://developer.android.com/guide/components/fragments.html Jan 13 08:20:22 Im looking for some source code which does TDD on android sqlite Jan 13 08:21:33 do you know any projecvt on github which is not too big and easy to understand? Jan 13 08:21:53 or maybe a tutorial Jan 13 08:25:46 * Zharf puzzled Jan 13 08:26:36 gson.fromJson(new InputStreamReader(getAssets().open("foo.json"), "UTF-8"), Foo.class); ends up with garbled strings Jan 13 08:40:31 oooh Jan 13 08:40:35 the data is garbled already Jan 13 08:44:26 Hello, in android studio if you thype the name of an existing class like Math and you put the dot like Math. it will give you a list of methods to pick from, who can I get the description doc for a selected function ? Jan 13 08:44:43 :) Jan 13 08:46:21 Let me fix those typos: Jan 13 08:46:56 Hello, in Android Studio if you type the name of an existing Class like Math and you put the dot like Math. it will give you a list of methods to pick from, how can I get the description doc for a selected function ? Jan 13 08:47:08 :D Jan 13 08:47:40 ctrl-q in windows Jan 13 08:49:30 tada ! Jan 13 08:49:41 ty canvs2321- Jan 13 08:49:49 ( same on linux ) Jan 13 08:53:15 eh.. realm gives you more headache than it helps Jan 13 08:55:15 Thanks for the info. Jan 13 09:37:28 Hey, I cannot input in my android emulator Polish characters Jan 13 09:37:52 like łźćś and all the rest Jan 13 09:38:03 Is it known issue? Is there some fix to it? Jan 13 09:38:33 I can intup those characters using the soft keyboard in the emulator itself. Just not through my PCs hardware keyboard. Jan 13 09:49:43 hey guys I keep getting : invalid banner ad unit id on one of my projects. The same methods is applied to a different one but that one works fine. Any idea what I might have missed ? Jan 13 10:02:26 Question, does Brillo use Java or has the Java virtual machine been removed? Jan 13 10:16:02 is there some way to authenticate users by play store purchases, or does it need to be done seperately? Jan 13 10:34:37 what is the name of the gestures that are called "onmousedown" and "onmouseup" on Windows and traditional UI:s? Jan 13 10:34:42 onmousedown seems to be called "tap" Jan 13 10:34:42 what about onmouseup? Jan 13 10:34:42 wassaabi Jan 13 10:34:54 (relating to the corresponding touchscreen moves of course) Jan 13 10:35:46 MotionEvent.ACTION_UP Jan 13 10:36:28 ACTION_DOWN Jan 13 10:36:53 ahaa Jan 13 10:37:23 ah Jan 13 10:38:53 why RxScala.CompositeSubscription does not have clear method? Jan 13 10:39:34 Ok, can't get the keyboard input to work the way I want it. Jan 13 10:44:07 it has it is Jan 13 10:44:09 sorry Jan 13 11:06:18 Morning all, I'm trying to add an additional button to the android.widget.MediaController. I've done some searching and I've found someone who achieved this by copy pasting the full class and then modifying it. This was because the structure isn't publicly viewable/mutable. I'm wondering if there's a better way to compose the existing MediaController functionality into a new layout. Jan 13 11:09:03 SleepyPikachu: unless you use reflection, no. Jan 13 11:09:14 It's the same issue with many other widgets, too. Jan 13 11:09:20 justJanne: :-( Jan 13 11:09:25 Thanks. Jan 13 11:09:31 Usually you have to copy-paste, or use reflection. Jan 13 11:10:02 I'll just copy the old behaviour which was 'if paused and you tap the screen' Jan 13 11:10:17 The solution with reflection is to wrap the object, delegate all methods, but override some of them to do additional behaviour. Jan 13 11:10:26 Which is baaaaad. Jan 13 11:10:56 But sometimes the only way to get a master/detail preference activity flow, for example. Jan 13 11:12:05 How does that involve reflection? That just sounds like composition, to me. Jan 13 11:12:14 Oh because you need to access the private state. Jan 13 11:17:48 how is it better to compile and test projects under linux? In which IDE? and how? Jan 13 11:19:36 BalTun: any project? Jan 13 11:21:10 what do you mean "how"? Jan 13 11:21:23 best bet - Android Studio or IDEA Jan 13 11:23:04 BalTun: to compile, surely grade for most projects, these days? Jan 13 11:23:46 Hello guys, a question from curiosity. How does Picasso lib know whether an imageview is reused or not? I was once building my own solution and I had the problem of updating an ImageView object, while it was already reused for another image (in a ListView). Jan 13 11:25:18 What makes you think it knows, Number5? Jan 13 11:26:13 SleepyPikachu, well, otherwise you see the wrong images in the wrong list items when you scroll fast enough. Jan 13 11:27:14 That's the same with iOS UITableView. When loading an image from the web, the imageview can be reused for another image. Jan 13 11:27:14 I'm not sure I agree with you but I guess one thing to consider is: are you reusing the object or the reference? Number5 Jan 13 11:27:54 Number5, it caches _all_ images without knowing if they are reused. Jan 13 11:28:00 If you reuse the object, the reference of the object is the same I assume. Jan 13 11:28:06 if the same url is called again, it first checks the cache Jan 13 11:29:45 danijoo, I understand the concept of Picasso, but I'm more interesting in how it keeps track whether the imageview is recycled and so can't set the downloaded image. Jan 13 11:31:08 i guess it counts the references Jan 13 11:31:30 or weakReference Jan 13 11:31:53 you should look into its source Jan 13 11:32:12 danijoo, maybe weakReference is the key, although I'm not sure. Jan 13 11:32:30 yes, but I was hoping you guys know the secret :P Jan 13 11:32:46 JW knows for sure :p Jan 13 11:33:07 Is he the author? Jan 13 11:34:05 yes Jan 13 11:39:47 Aah, I think I know! You keep track of a list of downloading images, each url matches a ImageView object, right? If you need to download another image for an ImageView object that is already waiting to update, than it checks in the list for an ImageView object with the same reference. If yes, than it cancels or sets a flag it shouldn't update the ImageView anymore, remove it from the list and add the new one to the lust. If not, Jan 13 11:39:47 add it to the list. Something like that. Jan 13 11:41:38 something like that Jan 13 11:42:42 So Picasso makes sure, that the list of ImageViews should have unique references. The popular technique is a HashMap with a url:ImageViewReference tuple and check the reference. Jan 13 11:54:25 is there any tool tat I can use in order to see if my operation with sqlite are working? Jan 13 11:55:38 open the database :) Jan 13 11:55:43 Anyone here know why Espresso tells me two views are identical even though one of those views isn't even on the screen? I have a ViewPager with two fragments. Each fragment has a button with the same ID. Last week when I did this, all I had to do was add a temporary sleep(500) (i know its not ideal), but it worked. Now I'm trying it again and it's not working. Jan 13 11:55:47 or log the querries Jan 13 11:56:09 xcolors: Pull the db off the device, and open it with sqlitebrowser on your desktop Jan 13 11:57:47 Im using Android Studio and genymotion as avd Jan 13 11:58:38 xcolors, the solution is the same Jan 13 12:00:03 for now I'm logging the queries, but I'm looing for a beter solution Jan 13 12:00:18 why is that a bad solution? Jan 13 12:00:47 xcolors: Using genymotion? Even easier to pull off the db. That's literally the easiest thing you can do. Jan 13 12:01:28 Anyone else good with Espresso when it comes to duplicate view ids? I don't understand how they can be duplicated in a viewpager. Jan 13 12:03:26 bc testing the operations with the db, is polluting the code/app. Maybe I'm doing it in the wrong way. I was curios if AndroidStudio has a tool as phpmyadmin Jan 13 12:03:43 xcolors, it hasnt :( Jan 13 12:03:56 intellij ultimate has though Jan 13 12:04:45 danijoo, what do you mean by "open the database"? Jan 13 12:05:17 xcolors, what eghdk said. download it from the device and open it Jan 13 12:07:31 xcolors: The short answer is. No AS doesn't have any way to inspect your db for you. Either log it. Run a query to dump all the DB results, or pull the db from the device and open it with sqlitebrowser. I suggest the latter. Just google it. It will take no more than 5 minutes Jan 13 12:07:57 ty eghdk Jan 13 12:08:02 ty danijoo Jan 13 12:20:36 f*cking espresso man. How the hell am I supposed to use viewpagers. Does anyone know if each id of every view in a fragment in the ViewPager should NOT be identical? I don't see how I would do this any other way. Jan 13 12:32:41 Damnit. Apparently isDisplayed() and effective visibility of VISIBLE are two different things... -__- Jan 13 12:36:40 Greetings. How much more attention would an app get if its supports like 10 languages instead of just English ? Jan 13 12:51:34 <_3mpty> NeoFrontier: I'm not sure if that can be measured in general Jan 13 12:51:45 Yeah. Jan 13 12:51:47 <_3mpty> depends from your app, category, current popularity eetc Jan 13 12:52:14 I wonder if anyone ever took stats on that. Jan 13 12:52:24 <_3mpty> add some stats, measure your current user base if you habe some from particular countries Jan 13 12:52:28 <_3mpty> then support them more Jan 13 12:52:34 Before and after stats. Jan 13 12:53:15 <_3mpty> it's still can be not applicable for your case Jan 13 12:53:33 yeah. But it can give an idea. Jan 13 12:53:55 I don't have much of an idea in my own mind if its english its fine :) Jan 13 12:54:24 But then some people cant really speak English properly. And some just love their own language. Jan 13 12:54:46 So I figure just support a lot of languages if you have the time to do it. Jan 13 12:58:19 Trying to use an ObjectMatcher, but they aren't declared in the Espresso Cheat Sheet? ideas? https://github.com/googlesamples/android-testing/blob/master/downloads/Espresso%20Cheat%20Sheet%20Master.pdf Jan 13 13:13:35 I'm having a problem where a contentobserver is running to listen for new photos being taken and this is called when that happens: http://stackoverflow.com/questions/24564336/rename-an-image-with-mediastore-android Jan 13 13:15:20 It deletes the old photo file and creates a new one with a name of my choosing, except when it does so the contentobserver is called again and it gets stuck in a vicious cycle Jan 13 13:26:25 Found the answer, http://stackoverflow.com/questions/22012274/contentobserver-onchange-method-gets-called-many-times Jan 13 13:27:06 I probably couldn't program for android if not for stackoverflow Jan 13 13:39:41 How do I import an image asset and make it available via @drawable/myasset? Jan 13 13:42:02 Never mind, I've worked it out. Jan 13 14:01:39 hi, i have written an SDK and want to make per user access. Does android itself has support by any means ? Jan 13 14:01:47 or do i need to run through my own server and mechanism ? Jan 13 14:04:42 <_3mpty> Noe Jan 13 14:04:59 <_3mpty> oh sorry, wrong channel Jan 13 14:05:59 <_3mpty> keestu: depends, you can use google login Jan 13 14:06:23 <_3mpty> it pretty easy lately Jan 13 14:08:44 Huh... so FB Mentions app for Android is 87MB large. Jan 13 14:08:55 Kinda confirming my opinion that whatever FB does, you shouldn't. Jan 13 14:13:00 <_3mpty> :D Jan 13 14:30:53 Hello! Is it normal that animateLayoutChanges is not honored when the layout is inflated? Jan 13 14:31:28 animatelayoutchanges operates on the views inside the current view Jan 13 14:31:36 +group Jan 13 14:32:23 xorgate: I tried to place it in the layout I’m inflating but it is never honored... Jan 13 14:32:39 xorgate: while it works on the parent Jan 13 14:33:11 also, inflation is not the same as adding a view to a viewgroup Jan 13 14:36:11 Is there such a thing as a popup activity? Jan 13 14:36:35 SleepyPikachu: you can style your activity to look like a popup Jan 13 14:40:23 xorgate: Hmmm, I guess what I really mean is: Is there a way to add another layer on top of my SurfaceView in a FrameLayout which I can put all my ui components which appear as an overlay to the video when the user decides to annotate it. Jan 13 14:41:07 Oh wow, got the $20 best buy gift card for using Android pay anywhere, that's nice Jan 13 14:41:41 Mavrik, I imagine it's mostly assets... Jan 13 14:42:24 Mavrik, and I think many apps will shrink dramatically if play store ever implements automatic drawable trimming Jan 13 14:43:30 _3mpty, thanks. that means, the user can not write more than one app with the SDK ? Jan 13 14:44:42 your question is vague, are you talking about licensing your sdk? Jan 13 14:45:32 pfn, yes, i develop an SDK, sell it to developers. But how can i restrict that user can use this SDK for only one application ? Jan 13 14:46:07 that is not something android supports, you would have to write your own license scheme Jan 13 14:46:22 Hello guys, I want to add an ImageView to my toolbar programmatically. Problem is if I want to set ImageView's size, it crashes as the layout hasn't laid out yet. So how can I do that? Jan 13 14:46:42 pfn, or they probably reimplemented whole UI toolkit and are shipping a full JS interpreter to render shit :P Jan 13 14:46:43 you can set size whenever you want Jan 13 14:47:06 Mavrik, possibly with react native Jan 13 14:47:46 Number5, you are not providing enough information, setting size will not crash at any time Jan 13 14:48:13 Number5: do it later. one way could be to use an OnGlobalLayoutListener or what it's called Jan 13 14:48:57 xorgate, I'l try that. Jan 13 14:49:01 thnx Jan 13 14:49:06 pfn, for example xamarin did the same, like one developer one sdk license. do you mean it is achieved by own licensing mechanism ? Jan 13 14:49:25 of course Jan 13 14:54:25 xorgate, thnx it works, but not completely. I added an imageview to my toolbar, but it doesn't show. i guess Toolbar is not meant for this way. Jan 13 14:55:40 I have an activity, lets call it TopActivity, which then launches BottomActivity. Is there a way to "sleep" BottomActivity and bring TopActivity back to focus without closing BottomActivity? and then when I press the button again to go back to BottomActivity it just wakes it back up instead of starting it again from scratch? Jan 13 14:56:39 You're describing the default behaviour. Jan 13 14:56:53 why my recycler view is crashing when i am using with loaders Jan 13 14:57:11 Because you're doing it wrong Jan 13 14:57:38 onBindViewHolder is getting called before loader finished Jan 13 14:57:45 I am not using with cursor Jan 13 14:57:50 I am using with custo objects Jan 13 14:58:14 so everytime its giving me nul pointer cause objects is still null Jan 13 14:59:00 do i need to set adapter in loader finished callback Jan 13 14:59:01 ? Jan 13 14:59:02 then wait for it to not be null Jan 13 14:59:06 Mavrik: hmm.. maybe I have something wrong in my manefest settings or something then? right now whenever I launch BottomActivity its a fresh start Jan 13 14:59:23 or at least I think it is. Jan 13 14:59:42 Your descriptions aren't helpful. Jan 13 15:00:05 What you describe is exactly how task stack behaves. If you're having issues with it you're probably doing something wrong :/ Jan 13 15:00:06 andr3wmac, if you go back to you previous activity, than it destroys the current activity. Jan 13 15:00:31 Depends. :) Jan 13 15:00:36 Number5: I must be misunderstanding something or explaining my self wrong Jan 13 15:00:41 both of you just gave me conflicting information Jan 13 15:00:42 top start activity bottom, bottom start activity top, top finish, bottom resumes Jan 13 15:00:47 you just need to save the state of the activity Jan 13 15:00:54 that is exactly how android behaves by default Jan 13 15:00:57 using onSavedInstance... Jan 13 15:02:30 o.O Jan 13 15:02:47 andr3wmac, are you perhaps looking for FLAG_ACTIVITY_REORDER_TO_FRONT flag? Jan 13 15:02:48 A -> B -> A => B is destroyed Jan 13 15:03:25 andr3wmac, this will bring up previous activity on the task stack and push the current one back in order Jan 13 15:03:35 that sounds about right Jan 13 15:03:58 Mavrik, why would you want such a behaviour? Jan 13 15:04:05 my second activity is an instance of Unity 3D so if I can avoid starting that up again and instead just "sleep" it that would be ideal. Jan 13 15:04:20 so the user only pays the startup price once Jan 13 15:04:30 Yeah, that could do it. Jan 13 15:04:44 There's a bit more nuance around tasks sometimes but for simple case that should be it. Jan 13 15:06:15 okay, so is the idea that I would start an intent to launch the first activity (top) with FLAG_ACTIVITY_REORDER_TO_FRONT and with that flag instead of placing a new instance on top of the stack it'll pull the existing instance of the activity to the top? Jan 13 15:06:39 what happens when an isntance of the activity I'm sending an intent for with FLAG_ACTIVITY_REORDER_TO_FRONT isn't on the stack? will it launch one or just fail? Jan 13 15:07:44 andr3wmac, it'll launch a new one on the stack if it doesn't exist. Jan 13 15:08:35 sounds great. I'll give it a hook. Jan 13 15:16:10 super noob question.. how do you launch an activity from within another activity class? startActivity() seems to be undefined :/ Jan 13 15:16:29 its part of Context apparently. How do you get a Context from within an Activity? Jan 13 15:16:48 andr3wmac, Activity IS a Context :) Jan 13 15:16:56 and yes, startActivity() must be defined in it :) Jan 13 15:17:07 oh. i see it now. Jan 13 15:17:16 for some reason i have to call super.startActivity Jan 13 15:17:19 silly java Jan 13 15:17:33 huh Jan 13 15:17:36 nevermind that didn't work Jan 13 15:17:39 That makes no sense :) Jan 13 15:17:51 Can you pastebin the code? :) Jan 13 15:18:11 oh nevermind I'm stupid Jan 13 15:18:30 the function I'm operating in is static Jan 13 15:18:38 of course I can't access member functions Jan 13 15:21:43 indeed Jan 13 15:22:24 cool :D it's mostly working. Jan 13 15:34:57 greetings! would anyone have any hints as to why previously working videos are now returning ExoPlayer.UNKNOWN_TIME ? Jan 13 15:35:16 haykuro: i have no ide Jan 13 15:35:19 idea Jan 13 15:35:58 what are some reasons for UNKNOWN_TIME? when viewing the video from native player it knows the duration, but through my app running version 1.4.2 of ExoPlayer it is giving me UNKNOWN_TIME Jan 13 15:36:01 it previously was working Jan 13 15:36:55 guys, if i call a method from asynctask, does the method code execute like if it was inside the asynctasks doInBackground? Jan 13 15:36:58 i'm going through the process of upgrading to 1.5.x but i need to change out my Extractor from using the MultiTrackChunkSource to just ChunkSource, then modify the code that was selecting tacks Jan 13 15:37:31 so, meanwhile i thought it would be cool if someone could shine some light as to why UNKNOWN_TIME might occur Jan 13 15:37:49 or how to debug it Jan 13 15:46:17 Is there any working and free vnc server? I've tried today droid vnc server. (My device is rooted.) Also tried teamviewer quicksupport but it fails to install add-on. Jan 13 15:46:51 hello Jan 13 15:47:28 I want to learn andriod programming , I dont have an andriod device, is it possible to learn this on linux without buying a device first? Jan 13 15:47:52 thanks Jan 13 15:53:53 yes, but it's a sad experience Jan 13 15:53:59 get a device first Jan 13 15:54:32 jacob___, do you know Java? Jan 13 16:02:15 thebishop, yes, i have programmed java since 2004 Jan 13 16:02:45 jacob___, ah ok. was going to suggest you could do that on linux and then move over to android Jan 13 16:02:56 then learning android is easy Jan 13 16:03:11 jacob___, fwiw, i think the emulator is OK to get started, but you should get a device. cheap ones are readily available Jan 13 16:03:20 android is just another java framework Jan 13 16:03:52 emulator isn't good to use except for trivial testing Jan 13 16:04:31 you don't really know how well your UI works until you use it on a real device Jan 13 16:05:10 ^ true, but if you're just "learning" and have no other options... Jan 13 16:06:37 you can get started with it in a pinch, but it you want to be the least bit serious, you must have at least a single device Jan 13 16:08:00 agreed Jan 13 16:08:45 any thoughts on how to change the disabled color of the default material buttons (using appcompat)? Jan 13 16:10:45 thebishop,ok, there are so many devices, i wouldnt know where to start, plus i read in online articles that sony has kindof "boxed up" their andriod pads and phones Jan 13 16:11:04 I have CentOS 7.1 64 bit Jan 13 16:11:57 jacob___, are you tied to sony for a specific reason? Jan 13 16:12:08 no, i just named it as an example Jan 13 16:12:26 jacob___, here's an unlocked Nexus6 for $250 http://slickdeals.net/f/8434683-motorola-nexus-6-unlocked-smartphone-64gb-300-32gb-250-free-shipping Jan 13 16:12:53 if you need something cheaper, I have an LG G2 and Moto X, both of which i got for under $150 Jan 13 16:13:07 there's stuff on ebay/slickdeals all the time Jan 13 16:13:17 $40 Moto E http://slickdeals.net/f/8431903-motorola-moto-e-4g-lte-4-5-sprint-prepaid-no-contract-smartphone-40-free-shipping Jan 13 16:13:49 ok, i copy pasted your suggestions, thanks Jan 13 16:13:58 So I just download Andriod studio? Jan 13 16:14:26 jacob___, basically, yeah Jan 13 16:14:50 there is an andriod-tools install package for CentOS , what is that? Jan 13 16:14:56 jacob___, don't get that Jan 13 16:15:06 ok Jan 13 16:15:10 jacob___, you'll get the latest version of the same tools in android studio Jan 13 16:15:55 dont get it, or do get it? Jan 13 16:16:02 i am confused, i lost context Jan 13 16:16:47 andriod studio? or andriod-tools? Jan 13 16:20:22 you only get android studio Jan 13 16:20:32 you install the rest of the sdk from there Jan 13 16:20:41 do not use any distribution provided tools Jan 13 16:21:00 thanks, I am downloading right now Jan 13 16:21:01 but if you're already a java programmer, don't you have an ide of choice? Jan 13 16:21:11 Hi all. Is there a simiple way to somewhat "bind" the value of an EditText to an objects attribute? Jan 13 16:21:13 i use intellj Jan 13 16:21:31 you can use intellij to write android apps just fine Jan 13 16:21:38 ?? Jan 13 16:21:40 really? Jan 13 16:21:44 plugin? Jan 13 16:21:49 ok Jan 13 16:22:00 get the standalone android sdk, install android support in intellij (often default on) Jan 13 16:22:14 and point intellij to where you install the sdk Jan 13 16:22:19 aha Jan 13 16:22:20 no fussing with android studio Jan 13 16:22:25 ok Jan 13 16:22:58 android studio is based on eclipse? Jan 13 16:23:02 android studio = intellij, but with slightly newer android features Jan 13 16:23:08 aaaah Jan 13 16:23:09 lol Jan 13 16:23:21 I am installing intellij 2x Jan 13 16:23:48 google should buy intellij and open source it Jan 13 16:23:59 intellij IS open source Jan 13 16:24:07 wot? Jan 13 16:24:21 I remember my company paying a shit load in license fees Jan 13 16:24:28 I guess you live under a rock, it's been open source forever Jan 13 16:24:36 really? Jan 13 16:24:37 ok Jan 13 16:25:13 I will ask precurement in my company, as i know they pay per user license Jan 13 16:26:13 depends, if you need ultimate edition or not Jan 13 16:27:42 jobi_ if you aren't familiar with the landscape, just get AS - the android tooling it comes with is more up to date Jan 13 16:27:49 jacob___ ^^ Jan 13 16:27:50 and it's been open source since 2009 or so Jan 13 16:28:17 the tooling in Android studio doesn't matter for the most part Jan 13 16:28:25 Anyone on my topic? I'm coding for min API lvl 15. I've got a model with private attributes and getters/setters for each attribute. Now I'd like to bind some EditTexts to the attributes of my model. Is that possible in a somewhat simple manner? Jan 13 16:28:44 Anticom look at android data binding Jan 13 16:28:44 Anticom, databinding library Jan 13 16:28:55 it sucks though Jan 13 16:28:56 pfn: is it a native lib? Jan 13 16:28:56 The IntelliJ "community edition" is Open Source, the modestly named "Ultimate Edition" isn't. Jan 13 16:29:17 fizzie, ultimate only has closed source plugins Jan 13 16:29:33 fizzie, it is otherwise identical Jan 13 16:29:42 Well, sure. But there's things you can pay license fees on that are "part" of IntelliJ. Jan 13 16:30:04 again, depends on what you need Jan 13 16:30:25 community edition includes everything you need to work on java ee and android Jan 13 16:30:41 except a database browser Jan 13 16:31:07 ok this is fucked up , i dont have tools jar for openjdk-1.8 Jan 13 16:31:21 but i do for java 1.7.0 Jan 13 16:31:27 jacob___, then you didn't install jdk, only jre Jan 13 16:31:35 pfn i know that Jan 13 16:31:43 fixit Jan 13 16:32:04 i tried with yum install , but it says JDK is already installed, wtf? Jan 13 16:32:19 Yay for packagemanagers Jan 13 16:32:23 jacob___ doesn't debian have some kind of 'options' system Jan 13 16:32:35 CentOS Jan 13 16:32:35 maybe you have to select the package right package Jan 13 16:32:52 yum isn't debian Jan 13 16:33:12 jacob___ also beware, android tools are 64 bit only now :D Jan 13 16:33:26 java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64 already installed and latest version Jan 13 16:33:33 thats the message Jan 13 16:33:35 lolz Jan 13 16:33:38 jacob___, That the jre Jan 13 16:33:45 install the right package Jan 13 16:33:54 it says "openjdk" Jan 13 16:33:56 lolz Jan 13 16:34:11 that's the name of open source java, not jdk Jan 13 16:34:27 how do you call yourself a java developer and not know that Jan 13 16:34:51 but openjdk 1.7 DOES have a tools.jar Jan 13 16:35:01 but openjdk 1.8 doesnt? Jan 13 16:35:12 again, wrong package Jan 13 16:35:40 maybe , maybe not, maybe something is fucked up Jan 13 16:35:49 wrong package Jan 13 16:35:53 I guarantee you Jan 13 16:36:18 the only name difference with 1.7 is the text "1.7" and THAT has a tools.jar Jan 13 16:36:24 false Jan 13 16:36:26 hey guys. I have a nexus 7 (2013) running 5.1. I'm struggling to send multicast packets via usb0 (usb tether). I have routes setup and my application sources by usb0's IP. Any clues? 4.x didnt have this issue. Jan 13 16:36:37 rpm -qf tools.jar Jan 13 16:36:43 and it's immediately apparent Jan 13 16:37:13 * pfn forgets rpm args if that's not correct Jan 13 16:37:18 error: file /usr/lib/jvm/tools.jar: No such file or directory Jan 13 16:37:25 but tools jar DOES exist for 1.7 Jan 13 16:37:26 lolz Jan 13 16:37:31 false Jan 13 16:37:42 i am looking at the tools.jar Jan 13 16:37:46 i am blind? Jan 13 16:37:54 look at the package name for what you have installed for 1.6 carefully Jan 13 16:37:56 yes Jan 13 16:38:01 1.7 Jan 13 16:38:05 you are funny Jan 13 16:38:17 like i said the package name is same, i will paste it wiat Jan 13 16:38:53 ./java-1.7.0-openjdk-1.7.0.91-2.6.2.3.el7.x86_64/lib/tools.jar Jan 13 16:40:07 did centos fuck up? maybe, rpm -ql java-1.7.0-openjdk... | grep tools.jar Jan 13 16:40:33 and you didn't paste the package name, you pasted the path Jan 13 16:40:46 ugh why use centOS for development ... Jan 13 16:40:50 find ./ -name .... Jan 13 16:41:01 again, you did it wrong Jan 13 16:41:20 rpm -qf tools.jar and you will see your errir Jan 13 16:41:21 tools.jar exist for my 1.7 installation, ok? Jan 13 16:41:28 nope Jan 13 16:41:31 aaaah Jan 13 16:41:39 i just showed you the file dude Jan 13 16:42:10 I'm not going to help you further, I've given you all the tools you need to solve your problem Jan 13 16:42:12 you want me to make a screendump from my console or something Jan 13 16:42:23 if you're stuck, try ##java Jan 13 16:42:30 rpm -qf tools.jar Jan 13 16:42:31 whatever, thanks for your help anyway Jan 13 16:42:37 don't say anything until you do Jan 13 16:43:00 "no such file or directorey Jan 13 16:43:01 I'm switching back and forth between two activities A and B. First A is launched normally as part of android manifest. When a button is pushed activity B is launched using FLAG_ACTIVITY_REORDER_TO_FRONT and FLAG_ACTIVITY_PREVIOUS_IS_TOP flags in the intent. When I press back it launches Activity A with the same flags, so it should keep both running Jan 13 16:43:02 . Now everytime I go back to Activity B its still running as it should be, however Activity A launches fresh each time. I checked teh stack and when activity B is running Activity A isn't. However when I go back to activity A and check the stack activity B is still running o.O Jan 13 16:43:34 tools.jar is not a package by itself pfn, that line will not work an Jan 13 16:43:36 and it doesnt Jan 13 16:43:37 jacob___, obviously you have to specify the path to tools.jar Jan 13 16:43:45 rpm -ql tools.jar Jan 13 16:43:47 uuuu Jan 13 16:43:48 ok Jan 13 16:43:58 qf Jan 13 16:44:13 ok i get it now Jan 13 16:44:14 lolz Jan 13 16:44:44 thanks pfn, i learned something about rpm today)) Jan 13 16:45:37 https://github.com/pfn/kotlin-plugin/issues/1 Jan 13 16:45:47 heh, someone actually uses kotlin on sbt Jan 13 16:45:50 * pfn amazed Jan 13 16:46:05 pfn here is the answer Jan 13 16:46:09 java-1.7.0-openjdk-devel-1.7.0.91-2.6.2.3.el7.x86_64 Jan 13 16:46:27 the "DEVEL" part, i will now try with yum Jan 13 16:46:36 Indeed Jan 13 16:47:24 installing) Jan 13 16:47:43 but yeah, redhat Nami g Jan 13 16:47:43 normally i develop under windows,)) Jan 13 16:47:55 naming convention is stupid as shit Jan 13 16:48:03 no kidding Jan 13 16:48:04 consistent, but stupid Jan 13 16:48:22 consistent but stupid is my job title Jan 13 16:48:25 the devel part makes sence, lots of packages have a "devel" version Jan 13 16:48:51 why are you doing this on Linux if you normally use Windows... Jan 13 16:49:08 WOORKS!!! Jan 13 16:49:24 andriod studio is firing up Jan 13 16:51:12 it is asking about KVM, i must install this? Jan 13 16:51:45 for the emulator, yes Jan 13 16:52:11 Can i program in C/C++ aswell? Jan 13 16:52:18 yes Jan 13 16:52:25 but why would you want to Jan 13 16:52:25 cool Jan 13 16:52:45 donno, performance/latency maybe, but we see how it goes with java Jan 13 16:53:08 "Unable to run mksdcard SDK tool" Jan 13 16:53:11 wtf is that? Jan 13 16:53:35 for saying you have had java experience since 2006 I find your statement curious Jan 13 16:53:47 meh Jan 13 16:54:04 I even got certified in 2005 Jan 13 16:54:15 it is since 2004, not 2006 Jan 13 16:56:09 it is asking for my andriod sdk location Jan 13 16:56:25 didnt i just download that? Jan 13 16:57:00 it said it couldnt run the mksdcard sdk tool, (see previous posting) is that related? Jan 13 16:58:09 In what package is the XYBinding class? Android Studio auto imported ns.of.my.pck.databinding.XYBinding but gradle now complains that there's no such package (using gradle 2.8 and android studio 1.5.1) Jan 13 17:01:32 jacob___ not finding mksdcard is a common problem Jan 13 17:01:44 google that one ... Jan 13 17:01:57 Why might findViewById return null for an id which comes from my generated R object? Jan 13 17:03:20 g00s, yeah, it seems it neeeds 32 bit libraries Jan 13 17:03:21 wtf Jan 13 17:03:36 i corrected it, and reinstalling, hope it works Jan 13 17:03:40 jacob___ that just changed tho, you used to need ia32libs or whatever Jan 13 17:03:48 but now all tools are 64 bit Jan 13 17:03:59 http://stackoverflow.com/questions/29241640/errorunable-to-run-mksdcard-sdk-tool-in-ubuntu Jan 13 17:04:06 sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686 Jan 13 17:04:15 just get a mac :D Jan 13 17:04:25 lolz at mac) Jan 13 17:04:33 all my colleges have macs Jan 13 17:04:36 i'm curious why you are using centOS for dev; we used those for 'cheap RH clones' Jan 13 17:04:41 I am like the only one who doesnt Jan 13 17:04:46 server side, etc but they are always so out of date, Jan 13 17:04:58 wasn't even sure if centOS was still alive Jan 13 17:04:59 Ubuntu crashes my machine, so after 4x i used CentOS Jan 13 17:05:07 CentOS is cool Jan 13 17:05:23 it .. is cool for being a free RHOS Jan 13 17:05:35 bur even RHOS is out of date, very conservative versions of things Jan 13 17:06:05 not such a good bet when you need to install dev tools from wherever and need stuff semi-up to date Jan 13 17:06:28 what version of glibc do you have ? Jan 13 17:06:49 I work with autotools C/C++ its ok for me Jan 13 17:07:06 its not to bad Jan 13 17:07:09 curious, what gcc version then ? Jan 13 17:07:38 gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4) Jan 13 17:07:57 ok thats pretty good Jan 13 17:08:09 i mean, gcc 6 is coming :) Jan 13 17:08:18 yeah, all repos support EL7.1, so no prob Jan 13 17:08:47 I dont do bleeding edge, i wait like 6 month or something like that Jan 13 17:09:42 jacob___ lol, i would install VM of recent ubuntu on it :D Jan 13 17:10:48 hm. so i guess we still have to manually tint the action icons in toolbar ? Jan 13 17:11:09 sweeet Jan 13 17:12:20 Ubuntu, oh my god, never touching that again Jan 13 17:12:38 i get the impression google tests stuff on ubuntu, fwiw Jan 13 17:12:56 maybe it works for them, donno Jan 13 17:13:05 i mean tests the android tools Jan 13 17:13:08 ubuntu is the standard for linux dev environment for android Jan 13 17:13:10 aaah Jan 13 17:13:15 If I'm inside an activity which represents a list of notes and I want to add another note, is the right thing to do launch another activity? Jan 13 17:13:17 really? Jan 13 17:13:23 ok Jan 13 17:13:24 SleepyPikachu, depends on what you want to do Jan 13 17:13:39 ubuntu lts, is the standard by which aosp and tools are built/developed Jan 13 17:13:50 mmm Jan 13 17:15:16 pfn: I'm inside a video viewing activity, when the user wants to they can add an annotation to the video. They start the notes activity by tapping the screen, this shows them the list of notes so far. Then I want them to be able to capture a new note which will be added to the list. Jan 13 17:15:59 pfn: My issue is that while I'm sure 'Note management' is a distinct activity from 'Video watching' I'm not sure if 'note capture' is a distinct activity from 'view list of notes' Jan 13 17:16:39 IT WORKED Jan 13 17:16:50 solved that 32 bit lib mishap, Jan 13 17:17:23 ugh, font rendering changed between lollipop and marshmallow? fml Jan 13 17:17:24 ok Jan 13 17:17:55 so it is asking wich version of andriod SDK to use (new project).. what should i do, the newest? Jan 13 17:18:21 what SDK has the biggest install base? Jan 13 17:18:33 jacob___: 1, since it's forwards compatible Jan 13 17:19:19 2.3 ginger bread Jan 13 17:19:22 mkey Jan 13 17:20:06 jacob___, if you are jumping into android, start with minSdk=21 until someone tells you otherwise Jan 13 17:20:15 jacob___: +1 Jan 13 17:20:21 the people with the money, are all on v21+ Jan 13 17:20:28 only reason to go with lower is if $work tells you to Jan 13 17:20:33 or you need to expand your userbase Jan 13 17:21:06 SleepyPikachu, it really depends on how you want your app to work, whether it's a separate "activity" doesn't really matter in current times Jan 13 17:23:45 Is there any way to intercept the getter/setter on that databinding or somehow annotate the intention anywhere? I'm getting: Error:(68, 37) Cannot find the setter for attribute 'android:text' with parameter type long. Jan 13 17:24:12 (Followed this guide: http://developer.android.com/tools/data-binding/guide.html) Jan 13 17:24:35 can phones /pads be upgraded to new android version? Jan 13 17:24:40 there's no setText(Long) method Jan 13 17:24:47 can't you just convert your long into a string? Jan 13 17:27:20 jacob___, depends on device Jan 13 17:27:59 storkme: well i guess that would solve getting the attribute from the model to the view but what about the reverse direction? would i have to overload the setters in my POJO? Jan 13 17:28:04 sounds kind of odd Jan 13 17:28:45 Jan 13 17:29:01 This there a nice book on using andriod studio etc Jan 13 17:29:17 Anticom: can't you just make whatever method return a string? Jan 13 17:29:25 app has to be done in two days .__. Jan 13 17:29:26 now it is asking for an activity "blank screen" "google maps activity" i think these are project templates Jan 13 17:29:37 storkme: i could but it would suck Jan 13 17:35:08 ANDRIOD STUDIO IS indexing, man o man Jan 13 17:36:48 this isn't twitter Jan 13 17:37:52 relax pfn, i am having a coffee, and you? Jan 13 17:38:11 no wonder Jan 13 17:38:31 8-) Jan 13 17:42:49 if i use ImageView with minSdk < 21, the appcompat layoutInflater should swap out ImageViewAppcompat right ? Jan 13 17:46:02 hello Jan 13 17:47:02 its strange that NavigationView handles all the icon image tinting, but toolbar just punts Jan 13 17:47:49 I have class that extends AsyncTask. My onPostExecute() is not working. I believe task should call it after it's executed? But it seems that it isn't calling it. Jan 13 17:49:22 Was omitting the Result part of onPostExecute(Result result) just a notational shorthand? Because if not, it's not an override. Jan 13 17:51:32 Well here is it : http://pastebin.com/At02gm8k Jan 13 17:58:02 is this a good book http://www.amazon.com/Android-Programming-Ranch-Guide-Edition/dp/0134171454/ref=pd_sim_14_2?ie=UTF8&dpID=416nq3TNiBL&dpSrc=sims&preST=_AC_UL160_SR112%2C160_&refRID=0D6G4THTH3D53HXPG0X1 Jan 13 17:58:03 ? Jan 13 17:58:12 Android Programming: The Big Nerd Ranch Guide (2nd Edition) Jan 13 17:58:19 cwek: Seems legitimate, assuming it's an AsyncTask. I've seen onPostExecute get called, not that it really helps you. Jan 13 17:59:28 (I don't think there's generally any reason to call super.onPostExecute, but it shouldn't hurt either.) Jan 13 17:59:44 asynctask sucks, use something better Jan 13 18:06:15 to read IMEI on android 6 on a system app we install, we use read_phone_state, yet permissions popup saying we might make a phone call... it there another way to read IMEI? Jan 13 18:07:34 no Jan 13 18:08:58 When your making calls to a Bluetooth Gatt should you keep updating your gatt object with every retured call? Jan 13 18:09:56 for example is line 4 here necessary: http://hastebin.com/iyokelocin.avrasm Jan 13 18:34:45 Hola, I have a class implementing runnable Jan 13 18:35:02 don’t we all? Jan 13 18:35:11 In it's run() method I use myListView.post(new Runnable) Jan 13 18:35:18 Hahhaha s73v3r Jan 13 18:35:35 So, I am able to get into the inner run() Jan 13 18:36:23 But myFancyAdapter.notifyDataSetChanged() isn't populating listview Jan 13 18:42:20 android scroll tab bar at bottom Jan 13 18:43:24 any reason why I should check if a class implements and interface by attempting a cast with a try/catch instead of checking instanceof? I'm talking specifically about how android fragments check if their activities implement their listeners Jan 13 18:44:11 i dont even check. if you do the slightest bit of testing, it should be obvious ;) Jan 13 18:44:19 like, running once Jan 13 18:44:21 right Jan 13 18:44:38 it should crash on a cast exception anyway Jan 13 18:44:55 yeah/ maybe if you are writing a library, and want to enforce that .... Jan 13 18:45:11 but I noticed some templates that try to cast onAttach and then surround in a try/catch which just prints a log message saying the class should implement that interface Jan 13 18:45:46 it doesn't really enforce it as much as it just crashes at a different point in the code with an explanation of what's going on haha Jan 13 18:45:54 yeah, i don't bother with that Jan 13 18:46:08 I guess it's just crashing sooner than later Jan 13 18:46:17 which could be advantageous in a way Jan 13 18:47:14 Use instanceof Jan 13 18:47:19 instead of waiting to call a method on your (Something) getActivity() it crashes as soon as you hit the screen... but i'm wondering if it's better to do an instanceof Jan 13 18:47:22 yeah Jan 13 18:47:53 i set that variable in onAttach() , so it would crash right away Jan 13 18:48:48 ah yeah Jan 13 18:48:49 makes sense Jan 13 18:49:04 that's what I should probably do anyway Jan 13 18:49:20 cause the fragment i'm working on already tries to cast for some other interface... now i have to check for 2 interfaces Jan 13 18:49:34 so it's like... do I do one try/catch and complain about both interfaces or what Jan 13 18:51:59 g00s: if you’re the only one working on the project, it’s ok. but if you have other people working, checking is almost required. Jan 13 18:52:34 yeah that's what I was thinking s73v3r Jan 13 18:53:03 s73v3r yeah that makes sense Jan 13 18:53:29 checking doesn't matter, multiple people working on the project or not Jan 13 18:53:44 * pfn works on projects with over a hundred collaborators Jan 13 18:53:52 yes it does. It will save many, many headaches in the future Jan 13 18:54:01 hasn't mattered, and makes no difference, you still get an exception where you have to go into the code and look, regardless Jan 13 18:54:19 and having the checks will make the intent explicit. Jan 13 18:54:46 only reason to check is if you want to silently fail Jan 13 18:55:03 otherwise, crashing with either a classcastexception or your own arbitrary exception means the same thing Jan 13 18:55:11 not everything needs to crash and burn at the slightest problem Jan 13 18:55:20 right, if you want to silently fail Jan 13 18:56:53 but in development, it should most definitely crash and burn Jan 13 18:57:02 in https://gist.github.com/px-amaac/e8fcf2e731ade97cffed what is mobilesdk_app_id? Jan 13 18:57:15 shadynastys, google_app_id Jan 13 18:57:49 trying to setup analytics but when generating the configuration file I cant select a property that I did not create. Jan 13 18:57:50 you can use the play-services plugin for it to populate for you automatically Jan 13 18:58:17 or just set it to resValue "string", "google_app_id", mobilesdk_app_id_from_json Jan 13 18:58:30 hmmm AS plugin? Jan 13 18:58:36 no, gradle plugin Jan 13 18:58:41 ok Jan 13 19:03:21 do we have any other repo like iosched by google through which i can get inspired Jan 13 19:07:09 pfn do you have a link to the play-services plugin because I cant find it as a gradle plugin Jan 13 19:09:57 min2 nick butcher plaid app Jan 13 19:10:12 Is there any reason, why in the project's build.gradle of an android studio application has: classpath 'com.android.tools.build:gradle:1.5.0' meaning the version? Current version is 2.10... Jan 13 19:10:32 thats the plugin version, not gradle version Jan 13 19:10:48 i think 1.5.1 is latest plugin 2.10 is latest gradle Jan 13 19:10:55 g00s thanks Jan 13 19:11:15 g00s thanks Jan 13 19:11:17 ah i see Jan 13 19:17:22 hmm Jan 13 19:21:11 still not able to find how this number is generated or taken from. 73a4fb8297b2cd4f https://gist.github.com/px-amaac/e8fcf2e731ade97cffed Jan 13 19:21:17 I cant find that plugin Jan 13 19:21:49 Cant generate it from https://developers.google.com/mobile/add?platform=android&cntapi=analytics&cnturl=https:%2F%2Fdevelopers.google.com%2Fanalytics%2Fdevguides%2Fcollection%2Fandroid%2Fv4%2Fapp%3Fconfigured%3Dtrue&cntlbl=Continue%20Adding%20Analytics Jan 13 19:22:03 shadynastys, https://bintray.com/android/android-tools/com.google.gms.google-services/view Jan 13 19:32:32 Yes I need this in my app but still not clear as to how I generate this madile-app-id. Is there any documentation on this? All I could find is the generate configuration file site. Looking for documentation on the plugin but everything linking me to adding it to gradle for using the services. Jan 13 19:39:23 dragorn https://www.onthewire.io/new-york-wants-to-force-vendors-to-decrypt-users-phones/ Jan 13 19:40:01 How can I create more menus in the toolbar? Jan 13 19:40:23 https://developers.google.com/android/guides/google-services-plugin So according to this site the xml resource that pfn is talking about is generated from the json file that I am trying to generate. So umm circular dependency? Jan 13 19:40:42 AKK9 ? Jan 13 19:40:49 I have sort feature in my app but now I need to make a ui, ideally I want a filter button on the toolbar which opens a menu of fields to sort by Jan 13 19:40:54 I am not getting anything on my screen Jan 13 19:41:12 Here is pastie which gives some idea of what I am trying to do Jan 13 19:41:13 https://dpaste.de/mdSt Jan 13 19:41:48 I cannot rely on using this plugin to generate my mobile-app-id because it uses the json file I am trying to generate in the first place. Jan 13 19:42:01 g00s You know the normal options menu in the toolbar? Imagine if there were a couple of those buttons next to each other in the toolbar and they opened different menus? Jan 13 19:42:17 Tried searching but can't find anything, I thiink I'm searching for the wrong things Jan 13 19:42:23 AKK9 i think those are just submenus :) Jan 13 19:42:31 in fancy case, custom ActionProvider Jan 13 19:43:56 Ah nice thanks Jan 13 19:43:57 I accept and understand that it might be messy because I am back to doing Android like after 16-ish months Jan 13 19:44:01 * Looney ducks Jan 13 19:46:01 in case anyone misses it on #android - hey folks, thought you might be interested in this progress for experimentation. Note the ARM area. https://wiki.freebsd.org/WhatsNew/FreeBSD11 Jan 13 19:47:23 Borg: what’s the relevance to Android? Jan 13 19:49:19 jaana, must there be relevance? I was just sharing some news as I know some here who have been interested in it. Perhaps there are things Android could change that Unix is doing? heh Jan 13 19:49:58 Well, irc channels have topics so yes, there must be relevance. Otherwise everyone will be pasting the news they come across just because they find them interesting Jan 13 19:50:22 that kinda happens here anyways Jan 13 19:50:43 jaana, I just told you. Maybe there is something Android could change / do, did I not? Jan 13 19:51:57 I take it that no one has taken a look at my pastie :-( Jan 13 19:52:00 yeah, but none of us have the ability to affect that Jan 13 19:52:13 * _genuser_ assimilates borg using Visual Basic 6.0 Jan 13 19:53:03 is there any way to get user credentials from a play store purchase, to register/authenticate them with my rest api? Jan 13 19:53:24 Looney: I don’t see anywhere that you are populating your list, or where that children variable gets populated Jan 13 19:53:43 also, if you’re in a list fragment, why are you bothering to get a second reference to the listview? Jan 13 19:54:25 That part is part of getting, fetching and parsing JSON Jan 13 19:54:27 Ah cool I can just use inside to make new menus on other actions Jan 13 19:54:38 It's mainly in comment Jan 13 19:55:44 ok. I don’t see what the children variable is Jan 13 19:55:50 children is instance/pointer of my adapter Jan 13 19:56:12 It's line 14 Jan 13 19:56:29 ok. what’s myDecisionList? Jan 13 19:57:14 The ArrayList into which parsed data is push()ed Jan 13 19:57:25 and when do you give that list to the adapter? Jan 13 19:57:30 Sorry, add()ed Jan 13 19:58:16 I think that lines 4 and 6 take care of them, right? Jan 13 19:58:19 maybe post the whole file Jan 13 19:58:43 OK, ListFragment or Runnable Jan 13 19:58:56 both, i guess, if they’re in separate files Jan 13 19:59:04 They are Jan 13 19:59:40 i would advise against tying the two things together, then Jan 13 20:00:48 Runnable --> https://dpaste.de/beeT Jan 13 20:01:03 They are separate, so you want me to? Jan 13 20:01:39 Hey guysh Jan 13 20:03:00 and you’ve verified that you’re actually getting stuff back, and that your list has stuff in it, right? Jan 13 20:03:02 ListFragment --> https://dpaste.de/J8ys s73v3r Jan 13 20:03:16 I can double check Jan 13 20:03:29 I get this -> when I click a button on my Dialog? ... It seems like it thinks the buttons function is in the MainActivity which is the Dialogs parent btw Jan 13 20:03:32 http://pastebin.com/eMChPbqu Jan 13 20:06:03 is it possible to add frames to an AnimationDrawable mid animation, and have that actully work? Jan 13 20:09:28 cuz that would be pretty sweet Jan 13 20:09:37 but i have doubts Jan 13 20:10:22 s73v3r: there is data in myDecisionList for certain Jan 13 20:11:10 i think your best bet, then, is to change what you’re doing. Have your Runnable just fetch and parse the data, and then return it to the ListFragment, and have that update it Jan 13 20:11:40 having the runnable handle the listview is making that runnable try to do too much Jan 13 20:11:46 s73v3r: Have you ever encountered an error like I am having now? I do not know what its trying to do with MainActivity when the button is clearly on the dialog itself Jan 13 20:12:02 i haven’t looked at your issue Jan 13 20:12:32 you’d have to post the code you’re using Jan 13 20:12:36 But, I am using ListView.post() to take things back to UI thread so why would I be asking too much from Runnable Jan 13 20:12:59 your runnable is still concerned with the listview, and actually holding onto it Jan 13 20:13:03 Does my approach make sense in theory? Jan 13 20:13:20 not the part where you pass the listview into the runnable Jan 13 20:13:24 I do see the separator lines on my screen Jan 13 20:13:29 just no text :'( Jan 13 20:13:49 hmm Jan 13 20:14:01 Then I will do what you suggested Jan 13 20:14:14 To return data back to my ListFragment Jan 13 20:14:15 s73v3r: This is the error -> http://pastebin.com/eMChPbqu Code - > http://pastebin.com/KTRZRcgc Jan 13 20:14:30 I wanted the code to look neat Jan 13 20:14:36 I tried at the least Jan 13 20:14:45 passing a listview into a runnable doesn’t really do that Jan 13 20:14:53 what makes code look neat is separation Jan 13 20:15:18 So, ListView manipulation should be done inside ListFragment? Jan 13 20:15:22 OK, will do that Jan 13 20:15:48 yes Jan 13 20:16:45 cart_man: I don’t even see where you create a dialog Jan 13 20:17:16 s73v3r: That is the Dialogs code Jan 13 20:17:29 no, that’s the code of an activity Jan 13 20:17:30 Hmm I will paste the Parents code also? Jan 13 20:17:58 s73v3r: sigh soz my bad... 1 sec Jan 13 20:18:37 also, it doesn’t look like your error has anything to do with a dialog Jan 13 20:19:08 check your layout; it sounds like there’s an ImageButton that has a click handler defined in XML that it’s not finding in the activity Jan 13 20:19:39 s73v3r: -> The right Code http://pastebin.com/xcZmRbin Jan 13 20:20:35 yeah, you don’t set a click handler for your image button Jan 13 20:20:37 check your layout Jan 13 20:20:38 s73v3r: I have made sure that they are both correct.. .but it seems like it still goes and checks for the ImageButton click handler in the MainActivity Jan 13 20:20:53 post your layout Jan 13 20:21:47 what is the best way for android models to be represented agnostically on a database? I am thinking of having a service, that is dependency injected with the particular database interface, to interact with the database and reformat the data into java models Jan 13 20:22:16 or is it best to just save the db data as fields in a java model? Jan 13 20:22:44 s73v3r: http://pastebin.com/HA6Q3QEx Jan 13 20:23:09 is that the dialog’s layout? Jan 13 20:23:45 yeah, the imagebutton has an onclick defined Jan 13 20:24:12 s73v3r: Yes but that is the way it should be right? Jan 13 20:24:30 i would avoid assigning click listeners in XML Jan 13 20:24:49 s73v3r: I have however tried coding the listener though Jan 13 20:25:08 you assigned it in onCreateDialog? Jan 13 20:26:39 The ImageButton or the Listener for it? Jan 13 20:29:05 another thought, is should i have a service as a field in a model? Jan 13 20:30:11 s73v3r: Currently I have something like new Thread(myGetter).start(); to start thread Jan 13 20:30:41 How do I get data out of it? Or just use Handler() to see status of thread? Jan 13 20:30:56 hmm, 2.99% 15yr fixed rate, worth refinancing? Jan 13 20:36:30 s73v3r: Ok cool that seemed to have worked .. Thanks allot Jan 13 21:13:17 encountered a bug. heres the logcat: https://scontent.xx.fbcdn.net/hphotos-xla1/v/t1.0-9/1462983_1045621818823753_3677890744889301428_n.png?oh=8f59ecd2466d2014424a77167369ebd1&oe=573E1918 Jan 13 21:32:40 That's not a bug, that is a feature if i ever saw one Jan 13 21:34:40 but a bitch to change wallpapers on Jan 13 21:37:53 Ashiren: Right now i'm more like: http://devopsreactions.tumblr.com/post/137212288568/things-are-going-bad-and-youre-searching-man Jan 13 21:38:09 So I added the latest Google Play Services 8.3 line in my Gradle and through the play-services-measurement dependency, there is a new WAKE_LOCK permission in my app that I don't want at all. Jan 13 21:38:26 I'm actually using play-services-gcm and play-services-analytics and this stupid WAKE_LOCK permission is getting added into my final APK Jan 13 21:38:32 Which is BS because that'll mess up my user's auto-updating, no? Jan 13 21:41:29 Where all the manifest experts at Jan 13 21:44:10 Probably in Mountain View Jan 13 21:50:05 has anyone here used getWindow().getDecoreView().isShown()? Jan 13 21:50:17 any snags I need to be aware of? Jan 13 21:55:53 ACTION  Jan 13 21:56:25 can anyone clarify how immersive modes works with ToolBar ? in 4.4 ActionBar was part of the decor view, but these days we have collapsable tool bars which aren't strictly 'ActionBars' Jan 13 21:57:24 maybe immersive mode just hides the actionbar, or whatever you set with setSupportActionBar Jan 13 21:58:12 is immersive supposed to hide the actionbar at all? Jan 13 21:58:25 I'm not too sure I've only seen it in games which don't have actionbars anyway Jan 13 21:58:43 It's a separate flag. Jan 13 22:01:20 *shrugs* Jan 13 22:04:40 haha http://i.imgur.com/evWiL44.png Jan 13 22:07:57 Is there a way to log the installation of an APK. I'm getting an error, "Parse error", "There was a problem parsing the package" Jan 13 22:12:19 Another question is, should I be able to open the AndroidManifest.xml file from an APK. I keep getting encoding errors. Jan 13 22:13:25 Depends on what you're opening it with -- it's not a regular XML file but a binary thing. The 'aapt' tool from the SDK can dump it. Jan 13 22:14:40 SJr is this your app ? Jan 13 22:15:13 haha, that's exactly what I thought too Jan 13 22:16:12 Yes although it gets preprocessed by Jenkins and our CI infrastructure started producing APKs that won't install. Jan 13 22:25:14 too bad sony seems to have abandoned APKAnalyser Jan 13 22:25:29 maybe run it through apktool and see if it spews out any errors Jan 13 22:25:50 Does anyone else have the issue that android studio fails to clean ? Jan 13 22:26:03 danijoo you mean like build errors ? Jan 13 22:26:39 SJr, logcat -s PackageManager Jan 13 22:26:42 g00s, no it builds fine but Build->clean Project fails because it cant delete app/build/intermediates folder for some reason Jan 13 22:26:46 SJr, aapt d badging file.apk Jan 13 22:26:51 aapt d xmltree, etc. etc. Jan 13 22:27:01 some reason = its opened by another process (gradle daemon?) Jan 13 22:27:05 if you get parse error, during adb install, then you'll see shit in PackageManager Jan 13 22:27:22 if packagemanager doesn't have more details, then aapt d badging/xmltree as necessary Jan 13 22:27:35 http://prntscr.com/9ps1vb Jan 13 22:27:42 Yeah I'm downloading all the android sdk tools at the moment. Jan 13 22:28:05 happens for 2 projects for me and I have no idea why. I can delete them manually if I end gradle daemon from task manager Jan 13 22:29:41 sucker Jan 13 22:29:41 :P Jan 13 22:29:46 filehandle leaks ftl Jan 13 22:30:00 might be windows crap problem -_- Jan 13 22:30:05 doubt it Jan 13 22:30:15 danijoo, http://file-leak-detector.kohsuke.org/ Jan 13 22:30:16 run that Jan 13 22:30:48 thanks ill try that. Interesstingly this issue survives reboots Jan 13 22:30:59 because you have a filehandle leak Jan 13 22:31:02 rebooting is irrelevant Jan 13 22:31:04 k Jan 13 22:31:11 never heard of that tbh Jan 13 22:31:20 ill check the tool and do some reading Jan 13 22:31:50 danijoo: what kind of app are you making? Jan 13 22:31:59 danijoo, why did you stop using protify? Jan 13 22:32:39 pfn, because I got insulted for not liking sbt/scala syntax :x lets not discuss that again please Jan 13 22:32:44 fair enough Jan 13 22:33:14 danijoo, which version of AS are you using Jan 13 22:33:34 canvs2321, its independent of version. I have that issue on 1.5.1 and canary Jan 13 22:34:02 you have a plugin that's leaking filehandles Jan 13 22:34:04 and my guess it's jrebel Jan 13 22:34:33 i started having the issue using the latest canary. only quick fix short of closing and reopening AS is to go into the build.gradle for app, and whatever library is causing the issue just //comment it out,sync,uncomment sync Jan 13 22:34:51 it does it a lot with Clean Project Jan 13 22:35:27 file handle leak OP Jan 13 22:35:36 i use Palette or Google Play services, and when clean get that can't delete error, so if it said error with Palette i'd comment out the compile '....palette' sync gradle, then uncomment it and sync Jan 13 22:35:50 sync gradle restarts the gradle daemon Jan 13 22:35:54 that's why you think it's the solution Jan 13 22:36:40 i noticed 'gradle clean' != AS clean Jan 13 22:40:07 pfn, yeah could be jrebel. Im not sure if this was the time I noticed it first :/ Jan 13 22:41:50 canary instant-run probably has a similar problem in its plugin Jan 13 22:41:57 filehandle leak, windows sucks with filehandle leaks Jan 13 22:42:04 mandatory exclusive locking is the best... Jan 13 22:42:34 yeah. If I had a dedicated working machine Id definitly run linux Jan 13 22:42:38 or go back to OSX Jan 13 22:43:18 yeah that's what I do Jan 13 22:43:33 OS X for development Jan 13 22:43:48 But I dont feel like dualbooting. This would only stop me from doing stuff when I want to do them Jan 13 22:43:58 yeah Jan 13 22:44:00 I tried it before Jan 13 22:44:04 dual booting linux and windows Jan 13 22:44:09 it was difficult Jan 13 22:44:39 Me too. But I always ended with ¨Lets quickly look into that bug. Oh wait I have to reboot... meh.¨ Jan 13 22:44:45 unless you can do your windowsing in a vm but usually people want it for games Jan 13 22:45:01 I have no desire to run linux for development Jan 13 22:45:11 what are you using now pfn Jan 13 22:45:14 windows Jan 13 22:45:17 primarily Jan 13 22:45:21 ah Jan 13 22:45:22 mac if I have to use a laptop for some reason Jan 13 22:45:40 yeah I just can't work comfortably on windows anymore Jan 13 22:45:56 too much of a command line junkie Jan 13 22:46:28 i was using linux for a long time and switched to osx for some xamarin stuff, its grown on me and i would use it by choice now Jan 13 22:46:33 its not that bad with cygwin Jan 13 22:46:43 i tried cygwin too that was painful Jan 13 22:46:44 but I put a lot of time into making it confortable Jan 13 22:46:47 (osx, not xamarin. thats a different story) Jan 13 22:46:59 ha Jan 13 22:47:05 yeah Jan 13 22:47:13 i’ve never had a good experience trying to get the windows command line up to snuff. Cygwin or anything that uses it Jan 13 22:47:14 I don't like the windows terminal even Jan 13 22:47:20 yeah Jan 13 22:47:49 nothing feels quite as nice to me as iTerm or Gnome-terminal or even rxvt Jan 13 22:47:55 still a better experience than powershell Jan 13 22:48:04 true grekkos Jan 13 22:48:17 I use a command line exclusively on windows Jan 13 22:48:20 although I prefer terminator on linux Jan 13 22:48:27 yeah terminator is nice too Jan 13 22:48:35 conemu + msys Jan 13 22:48:42 works well enough Jan 13 22:48:42 I started using tmux so I don't use terminator as often as I used to Jan 13 22:48:45 tried them. didn’t like them Jan 13 22:48:54 I gave msys a shot too Jan 13 22:49:19 yeah, msys > cygwin Jan 13 22:49:36 at least it doesn't do stupid stuff with data Jan 13 22:50:01 does msys include ssh? Jan 13 22:50:05 never tried it Jan 13 22:50:18 I somehow just lost double tap highlighting Jan 13 22:50:21 on my computer Jan 13 22:50:28 I use screen as well Jan 13 22:50:31 but not on windows Jan 13 22:51:33 i need to reboot Jan 13 22:51:57 I also miss vim a lot on windows Jan 13 22:52:08 you can get vim on windows... Jan 13 22:52:16 my go to text editor on every OS Jan 13 22:52:18 doesn't feel the same Jan 13 22:52:30 windows vim somehow feels clunky and less elegant Jan 13 22:52:38 it's purely psychological but I just can't deal with it Jan 13 22:53:18 O.o Jan 13 22:54:20 grekkos not as snappy as the amiga 2000 build ? :D Jan 13 22:56:16 psychological, indeed Jan 13 22:58:00 what listener do i have to use when i want to register it to multiple edittexts and still being able to distinguish them? It should fire whenever a character is added/removed Jan 13 22:58:37 I took a look at TextWatcher but i don't see a way to get the firing view in there Jan 13 22:59:57 yeah textwatcher does not support that Jan 13 23:00:15 you could keep track of the focus but I dont think thats worth it Jan 13 23:00:46 danijoo: isn't there any other suitable listener? Jan 13 23:00:53 or use multiple custom watchers that know about their view and all report to a master-textwatcher manually Jan 13 23:01:00 i mean i could register a new listener for each edittext Jan 13 23:01:03 Anticom, not that I know Jan 13 23:01:19 okay so that would be the simplest solution then i guess Jan 13 23:03:20 well I found out why I couldn't highlight anything on my computer... Unfortnuately it took rebooting the whole thing to realize there was a bluetooth keyboard on the other end of the room that was wedged between a tissue box and something else Jan 13 23:09:00 grekkos lol, would have been great if cat was playing with it or something Jan 13 23:16:20 why share a textwatcher... Jan 13 23:19:27 oh god, why isn't ItemTouchHelper scoped off of recyclerview but off of some other package... Jan 13 23:20:09 as if it makes more sense to throw it in widget.helper Jan 13 23:28:09 hello my app still uses compileSdkVersion 19 and on manifest permission it uses android.permission.CALL_PHONE, will android L & M still be able to use the app ? Jan 13 23:28:27 yes Jan 13 23:29:03 so i don't need to implement call permission ? Jan 13 23:29:05 You'll have to ask for the permission on M though. Jan 13 23:29:09 oh Jan 13 23:29:19 Or at least be able to handle having that permission disabled. Jan 13 23:29:28 (you didn't say what your target is.) Jan 13 23:29:32 thanks everyone figured it out, jenkins was setting the package in the manifest as something illegal started with a number suddenly. Jan 13 23:29:55 sorry Mavrik, target is 19 too. Jan 13 23:30:06 Why? Jan 13 23:30:18 if your target sdk is < 23, youll get some blank response from the system if the user disabled the permission after install Jan 13 23:30:33 its an old app, just trying to update it now. Jan 13 23:30:49 you should switch to the new permission system Jan 13 23:32:23 you only need to ask for permission with targetSdkVersion=23 Jan 13 23:32:37 Yes. Jan 13 23:32:43 And that's what we're telling him to do. Jan 13 23:32:56 Set target to 23, implement the permission system. Jan 13 23:32:58 yeah below that the user gives permission at start Jan 13 23:33:06 s/start/install Jan 13 23:33:19 Until he disables it. Jan 13 23:33:24 And then app stops working :) Jan 13 23:33:27 yep Jan 13 23:33:38 not sure what the system does for trying to call Jan 13 23:33:45 Fails. Jan 13 23:34:01 For contacts it doesnt fail but returns empty data Jan 13 23:34:09 but no idea about calls Jan 13 23:34:16 could be exception, yeah Jan 13 23:34:35 danijoo, well what else would it do? Jan 13 23:34:52 ok so if i dont target 23 and and doesn;t implement permission, android L will not be able to use it? Jan 13 23:34:56 If you try to make a call without permission... it won't happen >P Jan 13 23:35:10 *sigh* Jan 13 23:35:11 I'm out. Jan 13 23:35:21 yes but it doesnt neccessary need to fail Jan 13 23:35:58 It could /dev/null the intent to make a call Jan 13 23:36:37 time to hunt tutorial for permission. Jan 13 23:37:50 I'm basically building a data aquisition app with one dataset per day. Now my idea was to accelerate the process and avoid errors i'd like to start activity "aquire" if dataset for that day is not present and if it is for today instead start activity "display". Now my question is where in the activities lifecycle to do that? onCreate is appropriate but isn't that "too early"? Jan 13 23:38:09 reason is if i'm in 2nd activity and press back, onStart / onResume would be fired again Jan 13 23:38:21 and lead me back right to where i was comming from Jan 13 23:38:21 Anticom, onCreate is fine Jan 13 23:38:40 and starting another activity in onCreate is okay? Jan 13 23:38:49 if you do it right after super.onCreate and before setContentView, the user wont even notice you started another activity priot to the dataset activity Jan 13 23:39:02 great, thank's! Jan 13 23:39:06 thats a common pattern for doing login screens :) Jan 13 23:39:59 danijoo: and when going back, setContentView is executed and the activity proceeds as usual? Jan 13 23:41:01 depends Jan 13 23:41:15 startActivity wont hinder onCreate to run until its end Jan 13 23:42:55 basic java, only flow control can stop stuff from executing Jan 13 23:42:58 flow control and exceptions Jan 13 23:48:31 danijoo: but it's invisible since it's in the background? on my main activity thre's just gonna be like 3 buttons Jan 13 23:48:40 correct Jan 13 23:49:03 than that detail doesn't matter for me. but good to know nevertheless :) Jan 13 23:49:11 learning a lot today! Jan 13 23:49:13 you start activity 2 before building the view of activity 1, so the user wont see it show up Jan 13 23:49:26 but once he presses back and returns to 1, he sees the built view Jan 13 23:50:08 activity 1 will do a full lifecycle turn in the background (onCreate->onStart->onResume->onPause->onStop) Jan 14 00:02:18 Hey all what up? Jan 14 00:04:19 Anyone know when the android studio 2.0 comeing to stable? Jan 14 00:05:23 perlsyntax Just listening to some sick vibes https://www.youtube.com/watch?v=kaHyunFYeuI Jan 14 00:09:09 anyone use git-flow? I've just learned about it and am setting up a new workflow with a remote partner, any input for/against for use with android would be cool Jan 14 00:09:28 good to hear Jan 14 00:09:29 it has nothing to do with android Jan 14 00:09:54 as far as it’s use, it can be a little heavy handed for just a couple people Jan 14 00:10:25 s73v3r: isnt the purpose of it to simplify the workflow though? Jan 14 00:10:37 for teams, yeah Jan 14 00:10:51 were 2 people atm just fyi Jan 14 00:10:51 but just two people, it’s easier to not step on each others toes Jan 14 00:11:20 so your suggesting just stick with vanilla git then? Jan 14 00:11:23 i wouldn’t adopt something like that with the anticipation that more people will join Jan 14 00:11:28 orbyt_: i use it Jan 14 00:11:39 hi, I want to debug an app that communicates with a server in my LAN. Is there a way to do this with an emulated device or is it best to use my own phone? Jan 14 00:11:40 grekkos: thoughts? team size? Jan 14 00:11:52 s73v3r: yea neither of us has used it Jan 14 00:11:53 orbyt_: team size here is 3 Jan 14 00:12:01 it works well enough for teams. i used it on a team of about 5 Jan 14 00:12:19 orbyt_: 3 devs. I also use it at home with personal... stuff just myself... I don't have any ticket numbers but i think it's nice Jan 14 00:12:49 we want to use the feature branching model and i ran through a tutorial and liked how you could just 'git flow feature start featurename' to get something started Jan 14 00:13:13 oh hah like that.. I just do it manually actually Jan 14 00:13:20 i would say that some of the ideas are good, but strict adherance on such a small team is likely to get in the way more than help Jan 14 00:13:46 do it manually for now. if you get a larger team, then maybe look into tool assistance Jan 14 00:14:11 we also have the atlassian suite here Jan 14 00:14:14 which is super nice Jan 14 00:14:18 Schrostfutz, do you want to intercept the communication? Jan 14 00:14:18 s73v3r: mmk think your right. I use git personally but this will be the first time working in sync with a remote partner, so i guess the fewer headaches the better Jan 14 00:14:30 danijoo: it would be a plus Jan 14 00:14:43 Anyone know any good tesers out there for android.Sucks i have no device to use for testings? Jan 14 00:14:44 Schrostfutz, try charles proxy :) Jan 14 00:14:49 testers Jan 14 00:14:52 orbyt_: yeah I would follow the generic "flow" for sure, but you certainly don't need a tool for it Jan 14 00:14:58 i would highly suggest tying bugfix branches to ticket numbers, and to try and integrate commits and tickets as much as possible Jan 14 00:15:20 orbyt_: s73v3r at my last company I had a hard time getting them to use anything but the master branch Jan 14 00:15:20 perlsyntax, i think google cloud labs is starting soon :) Jan 14 00:15:44 grekkos: just to clarify by "generic flow" you mean the feature branch model? Jan 14 00:15:46 orbyt_: so my default is that anything that uses branching at all is better Jan 14 00:16:01 here we almost have the opposite problem: too many branches :p Every bugfix gets its own branch, but not all get closed after merging Jan 14 00:16:03 danijoo,Relly i thought they had to update one more time before they do. Jan 14 00:16:08 orbyt_: yeah Jan 14 00:16:21 grekkos: Did you guys come from SVN before that? Jan 14 00:16:24 perlsyntax, someone said its already in the play console but I didnt look for it yet Jan 14 00:16:50 danijoo,I see Jan 14 00:17:03 mmk thanks @ grekkos & s73v3r, will hold off for now. Actually is it hard to integrate git-flow at a later time, if its wanted? Jan 14 00:17:11 danijoo,I waiting for the to update the website. Jan 14 00:17:15 s73v3r: nope, but our lead did. he didn't quite `git` it Jan 14 00:17:22 perlsyntax, theres a similar service from amazon thats already rolled but its expensive :/ Jan 14 00:17:29 i don’t think so. You might want to make sure that everyone is merged up before, but shouldnt’ be hard Jan 14 00:17:40 they bought appthwack for that Jan 14 00:18:00 sucks i don't have any money:) Jan 14 00:18:01 alright thanks guys Jan 14 00:18:04 orbyt_: oh I see what you're saying I had my terminology mixed up... no I use the gitflow workflow Jan 14 00:18:07 i also don’t know how difficult it is to walk away from it after starting Jan 14 00:18:21 orbyt_: https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow Jan 14 00:18:40 dannijoo,I thought the beta of clous test lab out? Jan 14 00:18:49 perlsyntax, no idea Jan 14 00:18:51 sorry bad typeing. Jan 14 00:18:58 orbyt_: I would recommend bitbucket or github or something that you can send each other pull requests it makes merging much easier Jan 14 00:19:06 i didnt wrote any unit tests yet so Im not interessted :D Jan 14 00:19:09 or I should say it makes code reviews easier Jan 14 00:19:29 danijoo,If the gogole test lab comeing out soon that be good for me. Jan 14 00:19:34 :) Jan 14 00:19:48 I want to look into appium soon. Maybe I write at least some ui tests then and use that too Jan 14 00:19:59 it’s a good thing to use Jan 14 00:20:06 I've used espresso in the past Jan 14 00:20:12 I don't write ui tests here though Jan 14 00:20:38 i prefer appium/callabash to espresso mainly because the former can be used on iOS as well Jan 14 00:20:46 yeah Jan 14 00:20:46 Yeah and syntax Jan 14 00:20:49 grekkos: yea were using github. I guess git-flow is based on the feature branch workflow so theres the confusion.. Jan 14 00:20:52 I tried calabash too Jan 14 00:21:17 its so nice that you can simply write down what you want to see on the screen compared to the effort of real unit testing Jan 14 00:21:28 but ofc it wont catch everything Jan 14 00:21:35 orbyt_: I used to do feature branch workflow on personal projects but I like to stick with gitflow now just for the sake of keeping things organized and keeping a good regiment Jan 14 00:21:43 no, it’s kind of orthoganal to proper unit testing Jan 14 00:21:45 orbyt_: that and I guess I got in the habit of it so it's hard to break Jan 14 00:22:05 s73v3r, yeah but limited to ui, thats what I mean Jan 14 00:22:11 for some tasks, its not enough Jan 14 00:22:26 danijoo: thanks, I'll try it. Jan 14 00:22:27 ie you cant test a service or a syncadapter running in the background Jan 14 00:22:39 grekkos: haha cool. alright im off for dinner thanks guys Jan 14 00:22:45 but im too lazy to do that anyways :/ Jan 14 00:22:51 orbyt_: see you latre Jan 14 00:23:06 danijoo,I should be getting a email soon :D Jan 14 00:23:13 I always hear guys here complaining about something on appium though Jan 14 00:23:18 perlsyntax, nice ^^ Jan 14 00:25:23 danijoo, that what google test lab people told me i get a email from them. Jan 14 00:26:05 I not sure how much it will cost danijoo. Jan 14 00:26:17 perlsyntax, your soul. Jan 14 00:26:41 ? Jan 14 00:26:43 I fear it will cost _lots_ Jan 14 00:26:55 because other services like that are expensive too Jan 14 00:27:04 I bet it will Jan 14 00:27:25 what about the free one they going to have. Jan 14 00:27:36 I know i talk to much. Jan 14 00:27:53 still won’t be a substitute for having devices yourself Jan 14 00:28:05 yep Jan 14 00:28:49 s73v3r,What you mean? Jan 14 00:29:13 Amazon device farm wants $0.17 per minute you use one of their test devices :? Jan 14 00:29:17 a remote testing cloud won’t be a substitute for actually having a device or two on your desk Jan 14 00:29:24 if that true i won't have to worry then Jan 14 00:29:58 thats ok if you want to do final testing before a big release i gues Jan 14 00:29:59 what about google service that what i worry about. Jan 14 00:30:12 but nothing you can run on an hourly basis with your debug builds Jan 14 00:30:36 I love how they update the google test lab. Jan 14 00:30:39 i think they will work in the same price range. A bit lower probably Jan 14 00:31:30 i know the free one will be in the google play Jan 14 00:34:00 i hopeing. Jan 14 00:34:17 Im currently trying to recruit some of my users for beta testing :p Jan 14 00:34:50 cool hard finding beta tesers Jan 14 00:35:06 brb Jan 14 00:35:07 Yeah I just wrote in the description that they can contact me Jan 14 00:35:22 beta testing for what Jan 14 00:35:30 what does your app do exactly, danijoo ? Jan 14 00:35:30 about 100 sent me a mail in the last month Jan 14 00:35:35 haha Jan 14 00:35:37 nice Jan 14 00:35:39 grekkos, everything :p Jan 14 00:35:56 it has user profiles and records and stuff like that? Jan 14 00:36:03 grekkos, champions, items, live statistics like lol nexus and user profiles Jan 14 00:36:13 notifications on hero rotation Jan 14 00:36:16 stuff like that Jan 14 00:36:16 guides, timers? Jan 14 00:36:21 oh nice Jan 14 00:36:25 guides yes, no timers Jan 14 00:36:39 actually my first android app was a PhoneGap timer for lol Jan 14 00:36:46 i wrote it in javascript hah Jan 14 00:36:57 but I never released it it was kind of an experiment Jan 14 00:37:01 i main jungle but I never saw a need in having timers Jan 14 00:37:12 it's for people who are just learning Jan 14 00:37:19 especially since big buff timers are ingame now Jan 14 00:37:25 Is it possible to set a Navigation Drawer's icon gravity? Jan 14 00:37:29 ah well that I didn't know Jan 14 00:37:35 I haven't played in years Jan 14 00:37:42 I'd like to add rightward arrows to my nav drawer Jan 14 00:37:56 oh actually maybe I did know that Jan 14 00:37:58 yeah you can now press Tab and they show you drake/baron/red/ and blue timers Jan 14 00:38:03 oh wow Jan 14 00:38:12 that's a hell of an improvement Jan 14 00:41:16 danijoo,Well i got alot to learn for be a one man developer. Jan 14 00:41:18 ugh, I hate when fragment transitions behave differently than activity transitions Jan 14 00:49:57 I'm trying to strip ActionBarSherlock and SlidingMenu out of this app at work Jan 14 00:50:09 refactoring is hard... Jan 14 00:50:10 good idea Jan 14 00:50:38 First step (I think) is to rewrite the nav drawer Jan 14 00:50:45 using AppCompat, that is Jan 14 00:51:14 * danijoo still doesnt use the NavigationView for navdrawer Jan 14 00:51:28 so ABS and SlidingMenu are gone from a few Activities... But it still won't compile. AppCompat and ABS have conflicting attributes in the xml resources Jan 14 00:52:06 Is there a workaround where I can ignore duplicate attributes? Jan 14 00:52:12 no Jan 14 00:52:17 some sort of voodoo or dark magic? Jan 14 00:55:01 if I strip out ABS all in one go, I'm going to have literally thousands of errors to fix Jan 14 00:55:10 there must be a way to strip this into smaller peices Jan 14 00:55:32 where I can compile it, and run it to make sure I haven't broken everything Jan 14 00:57:09 if you have the stomach for it, I’d suggest writing a set of functional UI tests before Jan 14 00:58:04 s73v3r: given unlimited time and a large team of good developers, sure thats a great idea Jan 14 00:58:19 that’s why I suggested UI tests, and not full on unit tests Jan 14 00:58:31 much faster to write, but they do cover less Jan 14 00:59:26 I'm not positive, but it seems like all of our Activities derive from a BaseActivity class Jan 14 00:59:50 so that might work out nicely Jan 14 01:00:00 I'm feeling like I'm in over my head lol Jan 14 01:00:36 that’s how most big refactors feel, especially if you don’t have the safety net of tests Jan 14 01:01:47 no tests whatsoever Jan 14 01:01:56 yeah, me neither :s. Jan 14 01:02:05 RustyShackleford yolo ! Jan 14 01:02:19 I'm thinking I might automate some of this. Write a script that will search and replace Jan 14 01:03:02 or idk. Are there some tools that might make this easier? Jan 14 01:05:10 AS has some decent refactoring tools Jan 14 01:07:41 is there any good way to use git worktree with AS; if i have my project checked out in different dirs , somehow i would have to share the iml files , or something Jan 14 01:08:20 or i guess i could just import each worktree dir as a new project Jan 14 01:30:20 g00s, I don't put my iml files in git...not sure what others do Jan 14 01:30:34 yeah i don't either Jan 14 01:55:42 would be nice if Alarm clock would let you set alarm volume independently for each alarm Jan 14 01:55:49 wake up needs to be loud others - soft Jan 14 02:02:03 Nest thermostat goes "haywire across america" http://www.nytimes.com/2016/01/14/fashion/nest-thermostat-glitch-battery-dies-software-freeze.html?_r=0 Jan 14 02:02:14 lol, i'll stick to the dumb thermostat Jan 14 02:02:17 I think it does g00s Jan 14 02:04:02 i watched the Google Ubiquity stuff, sounds really exciting for industrial uses. As does Glass. But for consumers, i still see real reason for any of these things. Jan 14 02:05:57 maybe i could see - a refrigerator that knows whats inside, and when things will go bad. and can send a shopping list to my phone or whatever. but washing machines that arbitrate electrical rates ? Jan 14 02:07:33 i mean, turn on when rates are lowest Jan 14 02:12:50 i think the fridge thing would have to depend on people actually scanning or otherwise telling the fridge what it has inside Jan 14 02:17:40 anyone know what the hell Espresso is doing with Activity lifecycle when you run an entire suite of tests? Jan 14 02:17:56 I'm getting all sorts of out of order onstart/onstop craziness. Seems it tries to shut down the activity between tests but... doesnt Jan 14 02:31:48 any word on TAP device support for android vpn api? Jan 14 02:32:49 g00s: how does it get the electricity rates? Jan 14 02:33:03 thats sorta neat, but I doubt you would save much Jan 14 02:33:22 RustyShackleford i'm not sure. but its well known that warm loads use a lot of electricity, from teh water heater Jan 14 02:33:42 my water heater and dryer use natural gas actually Jan 14 02:33:49 yeah, or maybe you have to program it in. they just threw it out there as use case Jan 14 02:34:11 oh okay. I thought it was already implemented Jan 14 02:34:31 ComEd is installing smart meters so that the company no longer needs to send a tech to read your meter Jan 14 02:34:52 might be able to integrate with that somehow. Or just download the pricing from the internet Jan 14 02:35:38 does it bug anyone else than anything that is new/improved is labeled as "smart." It's getting a little rediculous Jan 14 02:36:44 RustyShackleford this is why i'll just pass on the whole 'smart' thing https://www.schneier.com/blog/archives/2016/01/the_internet_of.html Jan 14 02:37:37 that is kinda freaky Jan 14 02:37:59 1 paragraph in Jan 14 02:38:59 the thought of a smart fridge spying on me never crossed my mind **** ENDING LOGGING AT Thu Jan 14 02:59:58 2016