**** BEGIN LOGGING AT Wed Apr 13 02:59:58 2016 Apr 13 03:09:27 Event Buses are so 2010. The new hotness is Rx. Apr 13 03:12:22 Does anyone know how I can determine the actual cache partition size for a device? Apr 13 03:15:06 anyone know off the top of their head what's the AS shortcut to go back to the last file you edited? Apr 13 03:16:09 ctrl tab Apr 13 03:17:05 holy fuck I love you pfn Apr 13 03:17:26 I didn't even mean that one. I was thinking something like ctrl + b or something Apr 13 03:17:30 that's much more useful Apr 13 03:18:04 omg! tyvm... that's is the greatest thing ive leanred today. Apr 13 03:18:20 I hate using my mouse to navigate around, they should completely save me from having to deal with it. Apr 13 03:18:22 * Ping_2_Ur_Pong dances Apr 13 03:18:38 you know you can look up all the shortcuts right Apr 13 03:19:07 how? I have a bookmark somewhere but its a PITA to go look at it outside the environement. Apr 13 03:19:41 I know command + shift + a search everything, but specifically pull up shortcuts, whats the shortcut? Apr 13 03:19:57 Settings->keymap or something Apr 13 03:20:36 theres also a plugin that if you do something with a mouse itll show you the keyboard shortcut Apr 13 03:20:48 that one would be nice Apr 13 03:26:02 I think I just reached nirvana. I haven't touched my mouse in the last 5 mins since pfn told me about ctrl + tab Apr 13 03:29:42 or how big of a deal is it if I dont set BOARD_CACHEIMAGE_PARTITION_SIZE to the correct size Apr 13 03:30:37 Ping_2_Ur_Pong: Whenever you're not sure what the keybinding is, Ctrl-shift-a Apr 13 03:30:55 "I want to turn off typo spellings" -> ctrl-shift-a "typo", boom Apr 13 03:41:08 * Ping_2_Ur_Pong bows Apr 13 03:49:47 Hey all, I have a weird BT socket problem.. I am writing to a BT storage device and it requires me to listen to the response before writing the next chunk of a file (16k). My read is async in a Thread and it kinda just sits there looping waiting for bytes, then throws it through a hander. If success it triggers the next write and so on until the file is complete. The problem is there is about a 3 sec gap between suggessful Apr 13 03:49:47 write, and a read. Everything points to the device or network connection being crappy, but the write speed is so fast.. Apr 13 03:50:11 Is there anything I can do to optimize the read speed or give the read() process more CPU time? Apr 13 03:51:04 (assuming it’s not acually the device taking ages to ACK) Apr 13 03:55:56 it already has lots of cpu time, you don't have to do anything Apr 13 04:12:42 tricknology so your read thread is blocking on the socket, correct ? Apr 13 04:17:07 pfn, i figured maybe I’d explore other options if there are any. Apr 13 04:17:22 yes, goos I believe it is. Apr 13 04:17:27 g00s: Apr 13 04:18:34 pretty much blocking, anyway because there is no timer or sync/lock Apr 13 04:18:34 i guess you have to rule out the other device being poky :( Apr 13 04:18:49 how do you mean? Apr 13 04:19:21 maybe after receiving that 16kb its spending 3 seconds doing something Apr 13 04:19:56 that’s what I’m thinking Apr 13 04:20:20 if I send smaller chunks, like 2kb it’s more like 1s… but that adds up to be longer than the 3s for 16kb :( Apr 13 04:20:41 even smaller, like 256 is a tad faster but O(N) kicks in Apr 13 04:21:34 if you don't have control of the HW , mock the device with another android phone and stress test it Apr 13 04:21:43 building a test case to send to the MFR, they say it’s no longer than 500ms… Apr 13 04:21:47 That’s a damn good idea.. Apr 13 04:22:20 Same question from many hours ago... I want to do a Wizard with Fragments... any sugestions on the best Frag wizard, and tutorial? Apr 13 04:22:23 I need that anyway to simulate BT interference.. (BTW do you know of another good way to simulate that other than running the aforementioned app on a bunch of devices?) Apr 13 04:22:48 Wizards make a lot of things easy but you lose some finer detail IrishGringo Apr 13 04:23:07 I usually go wiht the Wizard and add things later. BUt if ‘m highly customizing something then probably scratch Apr 13 04:23:50 Thanks for the idea g00s. I’m going to use that test code I’m sending them to test a mock. I’ll try and update you Apr 13 04:24:08 cool Apr 13 04:24:12 tricknology: I am just doing a 6 step wizard... each screen just goes to the next screen... the last screen goes to screen 3 Apr 13 04:24:35 So I was playing with fragments... but still figuring it out Apr 13 04:25:01 tricknology yeah maybe send 16kb of 1s, then 16kb of 2s, etc so the mocking device can verify its got the right data too Apr 13 04:25:26 then once that work try using some BT mice and keyboards ... Apr 13 04:25:32 that will shit on the 2.4 ism band Apr 13 04:25:55 ooh haha IrishGringo I though you mean when creating fragments in your IDE, use it’s wizard Apr 13 04:26:28 tricknology: not sure what your saying... Apr 13 04:27:19 It depends on your use case IrishGringo, A fragment seems easier for a wizard or tut. You still have your base fragment to come back to instead of using onActivityResult Apr 13 04:28:29 thanks g00s, what do you mean 16kb of 2’s.. oh haha char(2) Apr 13 04:28:49 just payloads that the receiving device are correct Apr 13 04:29:07 just some shared agreement what they look like Apr 13 04:33:41 ok sounds good ty Apr 13 04:42:59 tricknology: I just had a power outage... and missed anything you may have said to me... could you repeat... about fragment wizard generator Apr 13 04:43:19 It depends on your use case IrishGringo, A fragment seems easier for a wizard or tut. You still have your base fragment to come back to instead of using onActivityResul Apr 13 04:43:44 err base activity, whichever Apr 13 04:44:16 let me put it this way… if I were creating something like a setup wizard, I would use fragments Apr 13 04:45:25 Its basically a reporting system... each fragment is a question with some buttons and edittext... and a NEXT button. every next button, I save the page data... Apr 13 04:45:45 Last page is a submit and returns to Frag 3. Apr 13 04:46:05 sp it would be nice if I could keep all the code in one Activity class file. Apr 13 05:08:17 IrishGringo: dpeneds on how indepth you need to be. If you have just text you need to present, why not try dialogfragments. If you need to point and transition, yea fragments would probably be the easiest way. Apr 13 05:10:41 Ping_2_Ur_Pong: my thought was a linear process... I am normally doing iOS stuff, and the navigation there is so easy... not so much on android Apr 13 05:48:19 If am using for loop, and using hashmap to store bssid to scanresults, how would I store the key ifthere is multiple bssid? Apr 13 05:48:56 I mean what should i use? integer? I tried integer but it happened to not work out. Apr 13 06:00:45 Irish, use Message/Handler? Apr 13 06:01:52 Demon_Jester: why not use a list? Apr 13 06:01:58 of Object Apr 13 06:01:59 Hey, I have a FrameLayout with 2 layers, when a user clicks a view on the bottom layer I 'popup' the upper layer (visibility change). I want to create an animation as if a button from the buttom layer is translated to the position of a button from the upper layer.... as if the original button moved... is that possible? Apr 13 06:02:24 you want to be able to search by bssid? Apr 13 06:02:50 HashMap> Apr 13 06:03:00 Demon_Jester: ^ Apr 13 06:03:26 viran: ObjectAnimator Apr 13 06:12:50 tricknology, sorry I haven't responded back, I am using a list. But I guess I am not grasping it, Im getting index out of bounds exception now. Apr 13 06:13:08 use list.size() to get the siz of the list, Apr 13 06:13:37 size() -1 for last index Apr 13 06:14:00 you scan for results, you get a ssid with it. sometimes you can get multiple results for a ssid? Apr 13 06:14:04 you want to store all? Apr 13 06:14:25 should probably use a db here. but if you want to use maps.. Apr 13 06:15:11 you have a hashmap which has keys and values.. you can’t have multiple keys, and I assume you do somehow want to store the results of the multiple key Apr 13 06:15:16 i.e. ssd Apr 13 06:15:23 ssid* Apr 13 06:16:10 so check if the ssid exists in the map with map.containsKey(ssid) Apr 13 06:16:46 if it does exist use map.get(ssid).add(results) Apr 13 06:16:54 tricknology, no, im filtering wifi by BSSID, against a String[], it lists any wifi (just one since I am using test router) and different ways I have tried, sometimes it works if it is one result, sometimes it only works if there is multiple results.. etc. it doesn't have to be hashmap, and sometimes when i select a item, it gives me completely different mac address. Apr 13 06:17:21 then you have some problems with variables not being cleared, liekly Apr 13 06:17:51 Here I will show you my code, I need to remove some redundencies, and put it back to where it was semi working. Apr 13 06:18:55 or your position you’re returning does not match the list you need to choose from. Apr 13 06:19:08 good morning Apr 13 06:20:04 tricknology, that is what I thought mainly, but jeez idk ive been at this for 9 hours now. Apr 13 06:20:19 :/ Apr 13 06:20:28 take a break Apr 13 06:20:47 tricknology, I did, I went to go eat something, and watched a tv show, and just came back. Apr 13 06:20:57 ah Apr 13 06:23:04 Hi. I'm learning cheesesquare(https://github.com/chrisbanes/cheesesquare). I don't understand why on MainActivity status bar isn't transparent though in the styles it's marked as a tranparent one. What makes it to be not transparent? Thanks. Apr 13 06:23:24 Hi, is there any workaround for the issue: https://code.google.com/p/android/issues/detail?id=185370 ? Apr 13 06:23:34 tricknology, sorry I dced did you say anything else after I said I took a break, and watched a tv show. Apr 13 06:23:43 ah Apr 13 06:23:47 that was it Apr 13 06:24:25 if you get array out of bounds when you clicked, likely you’re using the wrong variable to select position, or the wrong list Apr 13 06:24:49 hi Apr 13 06:24:58 tricknology, ok my code still doesn't work, hold up, I will link it real quick Apr 13 06:25:29 or, if you have some 2d hashmap> then your problem is in the list.get(i) Apr 13 06:25:54 tricknology, here you go, http://pastie.org/10795964 Apr 13 06:26:03 hopefully you can see simple error that I don't notice. Apr 13 06:27:56 tricknology, sorry, with that current code, it throws an error at my Log.v, and this is the error "java.lang.NullPointerException: println needs a message" Apr 13 06:28:19 tricknology, so the value is going null, and I am not sure how to keep that from happening. Apr 13 06:29:01 your message is null Apr 13 06:29:08 Log.v(TAG,null) is happening Apr 13 06:29:28 tricknology, I know I am just not sure why it is, and to keep it from going null. Apr 13 06:29:44 do this? Log.v(TAG, string+””) Apr 13 06:29:47 hacky but it works Apr 13 06:29:56 should prunt “null" Apr 13 06:31:03 what is the wifilv a child of? Apr 13 06:32:06 tricknology, its a listview. what do you mean by child? I mean I set "adapter" with it. Now sure if you mean that. Apr 13 06:32:27 arjun_: turn on location Apr 13 06:32:42 where does the lsitview live? Apr 13 06:33:12 like what is the listview’s parent view? Apr 13 06:33:56 LOL Apr 13 06:33:59 tricknology, hmm linearlayout? Apr 13 06:34:00 I FART Apr 13 06:34:10 AND THEN CHANNEL SPAM COMES OUT MY FART HOLE Apr 13 06:34:19 AND TELLS YOU ALL TO JOIN ##GeekNerd Apr 13 06:34:29 LOL CHANNEL ADVERTISING. Apr 13 06:34:35 * GeekNerd shuts up now Apr 13 06:34:36 tricknology, oh. So, no other working way to do this? Apr 13 06:34:38 Demon_Jester: ok np Apr 13 06:35:08 no just wondering if it was something lke a dialog, I think you’re doing it correctly. Apr 13 06:35:38 but yeah that item is null Apr 13 06:35:45 that’s why you can’t log it Apr 13 06:36:06 Hi all I have a FAB in a CoordinatorLayout and I want to animate the fab from the right side to the left. I use layout_gravity="bottom|right". Any advice how I can do this? Apr 13 06:36:13 tricknology, Its a listview, I mean im sure you noticed that in the code, but I don't think thats the right answer to your question. Apr 13 06:37:41 Demon_Jester: Its ok Apr 13 06:37:48 Demon_Jester: check this line: hashedMAC.get(wifilv.getItemAtPosition(position))) Apr 13 06:38:40 its a bit of a misnomer Apr 13 06:38:48 https://i.imgsafe.org/525989b.png , why compile with not work Apr 13 06:39:08 and you’re accessing the listview’s cursor to get the data Apr 13 06:39:21 try using bashedMAC.get(position) Apr 13 06:39:31 https://i.imgsafe.org/525989b.png , why compile with not work Apr 13 06:40:11 please help me Apr 13 06:40:23 I am not clicking that link. Apr 13 06:41:30 tricknology, It crashes the app if I remove log because its null. Its unfortunate. Might be impossible to do. Apr 13 06:41:57 I think it’s the way you are accessing your lisftview, man Apr 13 06:42:08 are there every body here for help me? Apr 13 06:42:22 liliboot: I dont use AndroidStudio Apr 13 06:42:30 liliboot: check Google Apr 13 06:42:49 this is eclipse Apr 13 06:43:19 tricknology, thanks for the help. Apr 13 06:43:51 https://i.imgsafe.org/525989b.png , why compile with not work Apr 13 06:44:02 lilibot : check the error at theme Apr 13 06:44:13 Demon_Jester: your String is null because the value you are returning from your list is null because you are accessing it incorrectly Apr 13 06:44:14 it shows red X Apr 13 06:45:22 Demon_Jester: when you set it, there are no items in any position.. on line 24 Apr 13 06:45:43 get a proper list, filter if it you want, then use thatlist.get(potision) and it will work Apr 13 06:45:47 AlexandruM, where that? Apr 13 06:45:59 but only if thatlist == the list you use in adapter.notify() Apr 13 06:46:02 in your screenshot, where you have selected the theme Holo Light Apr 13 06:46:08 the left of the dropdown Apr 13 06:46:09 BEFORE you display the list Apr 13 06:46:54 I think you need to target a higher minimum platform (like kitkat instead of froyo) to be able to use Holo themes Apr 13 06:47:28 tricknology, I changed it multiple times, all returning null. I mean hashedMac.get(i,...) hashedMac.get(wifis.get(i),...) etc.. all null Apr 13 06:48:03 AlexandruM, complie with not work Apr 13 06:48:32 your project will not even be created until you fix your errors on creating the project; of course it will not compile Apr 13 06:48:57 tricknology, i am trying something, it might work. Apr 13 06:49:00 how solved that? Apr 13 06:50:00 liliboot: target a higher minimum sdk Apr 13 06:50:31 if you don't know how to do that, then I suggest you go through the documentation https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwi0k-_ygovMAhUBWxoKHRzPCqcQFggcMAA&url=http%3A%2F%2Fdeveloper.android.com%2Ftraining%2F&usg=AFQjCNFD4VMSg1J_TGx0rN4ZDSYMeWzfjQ&sig2=yespne9V08IfFZgt3uWzCA&bvm=bv.119408272,d.bGg Apr 13 06:53:21 https://i.imgsafe.org/92715d0.png Apr 13 06:55:19 hi! Apr 13 06:55:38 HunterD: hi Apr 13 06:56:58 when using the gradle experimental plugin, inside a lib definition from: model { repositories { prebuilt(PrebuiltLibraries){ >>>here<<< } } } body, is it possible to specify more than one path for headers.srcDir ? Apr 13 06:57:12 I used the example from: http://tools.android.com/tech-docs/new-build-system/gradle-experimental Apr 13 06:57:22 tricknology, making some progress, but it passes all the mac addresses instead of the one I filtered.. I tried adding the wifi that didn't get filtered, and removing it out of the list, but it doesn't seem to work. Apr 13 06:57:28 but I have 3 paths that I need to include for a speciffic lib to work Apr 13 06:58:06 it apsses what to what? Apr 13 06:58:31 to the listview? Apr 13 06:58:45 set adapter wiht filtered list and notify Apr 13 07:00:10 tricknology, with this line, I thought I did "dapter = new ArrayAdapter<>(MainActivity.this,android.R.layout.simple_list_item_1,wifis);" Apr 13 07:00:49 did wifis change after you did that? Apr 13 07:01:30 no, it never lefted the onReceive method. Its in the nested for loop, Apr 13 07:01:47 tricknology, ^ Apr 13 07:02:39 ok waht is passing the mac addresses instead of the one you filtered? Apr 13 07:02:41 * GeekNerd will now spam the channel Apr 13 07:02:48 What is this Apr 13 07:02:54 I do not know Apr 13 07:02:58 its like nonsense Apr 13 07:03:01 with no purpose Apr 13 07:03:05 is it.... Apr 13 07:03:06 hashedMAC.get(i) ? Apr 13 07:03:10 could it be?........ Apr 13 07:03:12 tricknology, different mac address, that didn't get filtered. Apr 13 07:03:16 I think it is..... Apr 13 07:03:27 OH MY GOD, IT'S SPAM Apr 13 07:03:28 eh your filter’s problem Apr 13 07:03:39 * GeekNerd spammed the channel Apr 13 07:04:03 Remember, Trump good. Cruz corrupt. Sanders bad Apr 13 07:04:29 tricknology, I had a feeling comparing against string[] wasn't good enough. Apr 13 07:04:38 can headers.srcDir hold more thank one path? Apr 13 07:04:49 idk waht you’re doing tbh Apr 13 07:05:31 tricknology: me? Apr 13 07:05:37 I am SPAMMING Apr 13 07:05:46 and CRAPFLOODING Apr 13 07:11:26 Oops I highlighted myself Apr 13 07:14:35 if i want to have a text field update periodically, how can I do that? everything seems event based and i need some things to loop Apr 13 07:17:14 like stopwatch? Apr 13 07:17:44 for example: http://developer.android.com/reference/android/os/CountDownTimer.html Apr 13 07:18:50 hello, what should i pick to download for AVDs from sdk manager ? Apr 13 07:28:18 Ashiren: ah, thats it, thanks!! Apr 13 07:29:03 Ashiren: [solved] Apr 13 07:35:16 Does anyone know what the best way to create an executable with ndk and gradle is? Apr 13 07:36:16 um you mean project that uses ndk? Apr 13 07:37:16 Use Eclipse Apr 13 07:37:31 why not some example https://github.com/jdermont/NdkExample Apr 13 07:38:31 it uses android studio Apr 13 07:39:37 Well, I mean that I want to make an executable in C that I want to be compiled by gradle Apr 13 07:39:51 console app for android? Apr 13 07:39:58 gradle is a build machine Apr 13 07:40:02 yeah Apr 13 07:40:09 oh Apr 13 07:40:11 if you're trying to use it try going to #gradle Apr 13 07:40:16 I could make it run a custom Android.mk but I do not know if it is the best way Apr 13 07:40:43 I'm having trouble with google analytics activating demographics, does anyone know if EVERYONE that has the app installed needs to have the latest analytics code? Or with just 1 person it suffices? Apr 13 07:40:45 is it possible to make that countdowntimer not have an end and just use the onTick method? Apr 13 07:42:27 you could use also Timer and TimerTask but if i remember they dont work in UI thread Apr 13 07:42:45 plorph: you could start() during onFinish() Apr 13 07:43:27 its that simple? Apr 13 07:43:40 nothing in this life is simple Apr 13 07:43:52 well ima try it Apr 13 07:55:20 tabLayout.newTab().setText("C").setIcon(R.drawable.face_angel) showing horizontal Apr 13 07:55:31 how to make vertical Apr 13 08:07:25 min2, sounds more like you want a Spinner, tablayout is only horizontal Apr 13 08:08:19 "TabLayout provides a horizontal layout to display tabs." first line o TabLayout documentation Apr 13 08:11:57 hey, why i cant sync my google account to emulator ? i need my contacts on emulator Apr 13 08:12:37 ;21 Apr 13 08:17:44 Ping_2_Ur_Pong Actually problem is designing tab of tablayout Apr 13 08:19:07 when I am using default method of tabLayout.newTab().setText("A").setIcon(R.drawable.face_angel) then its rendering icon and text inside tab in horizontal format i want in vertical Apr 13 08:19:27 sci-fic: http://stackoverflow.com/questions/1114052/importing-gmail-contacts-on-android-emulator Apr 13 08:19:44 i ahve 4 fixed tabs inside my tablayout. Apr 13 08:23:49 min2: make a custom layout and then use getTabAt(i).setCustomView() Apr 13 08:23:58 http://stackoverflow.com/questions/34313027/how-to-align-icon-with-text-in-tabs-of-tablayout-in-android Apr 13 08:24:20 one more condition I dont want to use viewpager Apr 13 08:39:21 thanks Ping_2_Ur_Pong for sharing a link Apr 13 08:39:29 with custom view it works.. Apr 13 08:39:46 but why it doesnt work with default Apr 13 08:40:22 when they have methods like setText and setIcon on tab Apr 13 08:48:58 I'm having trouble with google analytics activating demographics, does anyone know if EVERYONE that has the app installed needs to have the latest analytics code? Or with just 1 person it suffices? Apr 13 08:55:39 Hi, I want to create multiple modules, like in house libs for a company. Any advice about how to manage them, one repo / multiple repo's / one big module ... Apr 13 09:05:02 tricknology, I am not sure if you're afk, but I figured it out. I assign a key,value when I click on item in listview, and add new value if its different than the current. Apr 13 09:05:48 nice Apr 13 09:06:21 im still working on the BT comms Apr 13 09:06:34 tricknology, bt comms? Bittorrent? Apr 13 09:06:36 I forgot I don thave another Android device here to test haha Apr 13 09:06:40 bluetooth Apr 13 09:07:00 I have a slow as hell read/ack coming from this device and I’m trying to call the manufacturer out Apr 13 09:07:24 but g00s recommended I have my test apps talk to eachother Apr 13 09:07:32 one is just going to send while the other one acks away Apr 13 09:07:45 if it’s truely the device I expect this to go by very fast Apr 13 09:07:57 if it’s my shotty code then I expect to change Apr 13 09:08:04 to == no* Apr 13 09:11:21 tricknology, oh god I think I spoke too soon, i have class at 11 am and its 4 am... i should give this a rest. Apr 13 09:11:28 yeah Apr 13 09:11:30 take a break haha Apr 13 09:11:35 also dont miss class Apr 13 09:11:48 you don’t miss class and I wont miss work Apr 13 09:11:52 in 2 hours I will be where you are Apr 13 09:12:03 except have to work 2 hours earlier.. so I am where you are kinda.. Apr 13 09:57:00 Is it intentional that in Android M they made "do not disturb" even worse than in Android L? Apr 13 09:57:30 I just fucking want to be able to turn the volume for calls and notifications down to zero. Apr 13 09:57:38 No, I don't want to mute music. Apr 13 09:57:48 No, I don't want to turn off the notification led Apr 13 09:58:47 Now I get even users asking me if they can change the volume of the notifications of my app specifically as a workaround. Apr 13 09:58:57 What kind of brain-dead monkeys are working at Google? Apr 13 10:00:53 justJanne, few weeks ago, my mother called me to ask me WTF is this (/) icon in the toolbar Apr 13 10:01:11 it was.... the mute thingy, not a bell with a / Apr 13 10:01:16 but something like do not park lol Apr 13 10:01:41 Exactly. Apr 13 10:01:51 how ppl can figure out a disc/circle is related to audio oO Apr 13 10:01:54 And the color of this ring indicates if alarm clock is on or not. Apr 13 10:01:59 bell or speaker ok Apr 13 10:02:04 Yup. Apr 13 10:02:10 Could be worse: Apr 13 10:02:14 They could be Mozilla Apr 13 10:02:22 lol what did they used? Apr 13 10:02:29 Users are getting confused, so we removed the volume control Apr 13 10:02:31 Well, Mozilla still allows me to modify that stuff at least. Apr 13 10:02:32 (mozilla discontinued their thing) Apr 13 10:02:38 They were breaking their speakers Apr 13 10:02:43 (LOL) Apr 13 10:02:46 oO Apr 13 10:02:52 Well, they just introduced that into Firefox desktop. Apr 13 10:03:01 Volume control per tab. Apr 13 10:03:05 Well, a year ago. Apr 13 10:03:18 I was parodying the discussions on Mozilla's bug trackers. Apr 13 10:03:32 Another awesome thing, btw, which Android lacks: VOLUME CONTROL PER APP Apr 13 10:03:52 that's a bit confusing but an app could implement it Apr 13 10:03:54 There's one really nice and simple on-screen volume control... Apr 13 10:04:03 problem is you still touch the system or media volume Apr 13 10:04:11 I wonder if you could modify it to also keep track of the current app Apr 13 10:04:14 That has 'focus' Apr 13 10:04:17 which can then change other app volume if not impl properly or if you get killed then you cannot restore it Apr 13 10:04:24 Well, what if I want to watch a YouTube video muted but listen to a song in the background? Apr 13 10:04:27 And just keep restoring the volume setting when you alt-tab Apr 13 10:04:46 yeah there is also audiofocus, but there are few issues Apr 13 10:04:52 like app fighting each other for the token Apr 13 10:04:52 Say, when doing a presentation, showing a video, but wanting to play a different music. Apr 13 10:05:15 let me remember you, since we talk about audio, only ONE instance of the mic is allowed for the whole system! Apr 13 10:05:20 My idea would only be a workaround that touches the entire volume :/ Apr 13 10:05:24 2016 dude (and dudette) Apr 13 10:05:43 Welcome to Android™ Apr 13 10:05:52 Also, Google thought it was a great idea to explicitely go to the effort of removing the volume control on YT Apr 13 10:06:03 Hi. How to lock emulator's screen? Is there a hotkey? Apr 13 10:06:12 I want to test doze mode Apr 13 10:06:19 To be honest i like the way it is done, else we end up with having a mixer and "god damn why is this app silent" Apr 13 10:06:21 press F-something guliash Apr 13 10:06:25 No way to set a timer? Apr 13 10:06:27 on windows it can be frustrating Apr 13 10:06:27 Sleep? Apr 13 10:06:30 it's documented somewhere, i don't remember it, F7 or F11 Apr 13 10:06:57 adq: not working Apr 13 10:07:14 nothing from F Apr 13 10:07:20 Then F23? Apr 13 10:07:53 (I love old Sony computers which had F13-24, that always confused people so much, lol) Apr 13 10:07:56 wow they removed from the doc the shortcut Apr 13 10:07:59 it was in http://developer.android.com/tools/help/emulator.html#controlling Apr 13 10:08:06 maybe use their new toolbar then? Apr 13 10:09:05 adq: there is no such button in the new toolbar Apr 13 10:09:17 it might be different depending on your os, it's still working for me on windows with an avd of android wear Apr 13 10:09:43 adq: I see. I'm using ubuntu Apr 13 10:09:51 try genymotion maybe Apr 13 10:19:01 hello, for this json format http://pastebin.com/TLmhNjrb I access first array with JSONObject json = jsontmp.getJSONObject(0); but I cannot access services with JSONObject json = jsontmp.getJSONObject(1); further in, I cannot access approvedBool inside services, how come? Apr 13 10:28:36 any ideas anyone? Apr 13 10:37:54 I have a BluetoothDevice which i have created a connection to using CreateRfcommSocketToServiceRecord(). If i turn off the power of the bluetooth device, i can correctly detect that socket.IsConnected is false. However, depite me reconnecting and verifying that IsConnected is true, i am unable to successfully send/receive data Apr 13 10:38:37 Do i need to get a new instance of BluetoothDevice in this situation? I would have assumed that my old instance would be okay, since the MAC should obviously not have changed....? Apr 13 10:40:09 Actually... ignore me. I need to check something in the datasheet before asking this Apr 13 11:26:55 How to set the divider between Tabs in TabLayout of design support library? Apr 13 11:59:20 hi Apr 13 12:08:09 wyoung: hi Apr 13 12:08:27 Ashiren: have I told you how much I hate google (not android) documentation? Apr 13 12:09:16 no but i feel you Apr 13 12:09:48 reading through their dev console website Apr 13 12:09:52 i want to kill myself Apr 13 12:10:11 wondering if that's how people experience d.android.com/training Apr 13 12:10:14 and if so Apr 13 12:10:22 i'm fine cause i now have job security Apr 13 12:12:37 whats the method/activity in android, where I can check every second if something occurred or that some condition became true? Apr 13 12:16:04 ? Apr 13 12:24:31 Can anyone explain how I can get around this error: PreferenceFragment cannot be cast to android.support.v4.app.Fragment Apr 13 12:32:37 markyosullivan, dont mix, always use v4 Apr 13 12:32:46 check all imports Apr 13 13:02:17 https://www.genymotion.com/cloud/ Apr 13 13:02:19 yasy Apr 13 13:02:21 yay Apr 13 13:11:49 ktwo: Just realised that I didn't need to use v4 Apr 13 13:15:40 .j Apr 13 13:26:09 lads, is there any good book for android software architecture ? Apr 13 13:26:13 or java architecture Apr 13 13:26:24 or something software architecture Apr 13 14:02:54 tabLayout paddingTop and paddingBottom not being removed Apr 13 14:03:09 http://stackoverflow.com/questions/34915914/android-tablayout-tabpaddingtop-and-tabpaddingbottom-not-being-removed Apr 13 14:06:14 have anyone worked with the WebkitCookieManagerProxy Class? I'm trying to convert android.webkit.CookieManager to java.net.CookieManager. Apr 13 14:10:52 Hi android-dev, I'm trying to use the webkitspeechrecognition API within an android webview, however it doesn't seem to be supported ( I get an error when trying to create the object). What's the best way to add this functionality? Apr 13 14:19:34 Hi there. I need to test a native mobile app, but I don't want to purchase a phone especially for that purpose. Is there some sort of emulator that would work on a desktop? Apr 13 14:20:14 dunpeal, http://developer.android.com/tools/devices/emulator.html or genymotion or visual studio emulator Apr 13 14:20:23 adq: thanks. Apr 13 14:20:24 Have you tried Android Studio? (developer.android.com/tools/studio/index.html) Apr 13 14:21:17 rsadam: no, I'll check it out, thanks! Apr 13 14:24:38 Can I use Google Cloud Messaging without my own server if I want to send a notification from a device to another? Apr 13 14:24:59 Assuming I know the push notification token of the second device on the first device Apr 13 14:26:19 adq: looks like this official Android emulator depends on Android Studio, so either way I'll have to install android studio Apr 13 14:27:56 I don't see the dependency, or maybe they're deprecating avd manager, but even so you can start the emulator easily without AS Apr 13 14:30:12 Hello guys, what's the best way to handle asynctask if the fragment/activity hosting it is destroyed? I know in Fragment you can call isVisible() to decide whether to show the result or not. I can also use a headless Fragment to keep the asynctask. But is there a better and cleaner solution? Apr 13 14:30:47 * Zharf just doesn't do asynctasks Apr 13 14:32:05 Zharf, well I need AsyncTask for asynchronous process. Apr 13 14:32:44 In my case, handling database queries. Apr 13 14:32:46 no you don't, asynctask is just glue to make it "nice" but is actually giving you more problems without warning about them Apr 13 14:33:20 Zharf, what do you suggest than? Creating my own class using Thread? Apr 13 14:34:28 ExecutorService and EventBus for callbacks to the ui if you want them Apr 13 14:35:50 Zharf, I've read about them some time ago, but looks like overkill to just do simple queries. But if you say so... Apr 13 14:36:29 Number5, asynctask is run on an executorservice Apr 13 14:36:38 it's just made to look like something else Apr 13 14:36:54 loaders Apr 13 14:36:55 Zharf, thnx I'll take a look at it :) Apr 13 14:37:01 ok I feel dirty for saying the word loader Apr 13 14:37:03 yeah, loaders might be applicable Apr 13 14:37:12 I'm also looking at these: https://android-arsenal.com/tag/9 Apr 13 14:37:14 but I haven't really used them much myself Apr 13 14:37:56 Number5, you can callback to the ui thread from an abitrary thread using eventbus Apr 13 14:39:14 Zharf, ok thnx buddy ;) Apr 13 14:41:46 Zharf, this looks nice too: https://github.com/mthli/SugarTask Apr 13 14:42:38 Actually that's what I was looking for, perform a background task and don't care about what happens is you leave fragment or activity. Apr 13 14:45:27 Zharf, RxAndroid sounds cool too, has at least a lot of forks 3000+ Apr 13 14:46:04 Stars Apr 13 14:46:10 Number5, if you want to go with rx, yes, absolutely... Apr 13 14:46:53 JakeWharton, 1000+ forks and 6000+ stars :) Apr 13 14:49:05 JakeWharton, I'm sorry, didn't know you were the author. But thank you very much for sharing this great library. Apr 13 14:52:32 It's not all me. Many others contribute Apr 13 14:57:53 RxAndroid? I thought there was just RxJava Apr 13 14:58:10 no there is rxandroid too Apr 13 15:00:17 I need to look into RxAndroid Apr 13 15:00:33 and RxJava Apr 13 15:01:24 Zharf: You talking about AsyncTasks has made me a little bit nervous Apr 13 15:01:47 asynctask is fine, it's just not composable Apr 13 15:01:52 Zharf: "asynctask is just glue to make it "nice" but is actually giving you more problems without warning about them" what problems do you get? Apr 13 15:02:09 pfn is RxAndroid what people should use instead? Apr 13 15:02:24 depends on what you need Apr 13 15:02:36 as is the case with everything Apr 13 15:03:47 I've always been confused by what RxJava was for, "asynchronous and event-based programs", so could it essentially replace an AsyncTask which processes something in another thread when there's too much memory being used in the main thread? Apr 13 15:04:10 I used an AsyncTask to help me with that issue Apr 13 15:04:15 ...threads share memory Apr 13 15:05:09 I thought it was too much memory usage which caused the "Skipped x frames! The application may be doing too much work on its main thread." issue? Apr 13 15:06:05 no, that is doing too much work on the processor Apr 13 15:06:10 too much computation, not memory Apr 13 15:06:57 Ah Apr 13 15:07:22 Noted that down, thanks for letting me know :) Apr 13 15:07:27 I'll know that for next time Apr 13 15:07:47 no prob Apr 13 15:08:04 So if I use the CPU monitor in Android Studio, I'll see it using too much CPU? Apr 13 15:08:30 correct Apr 13 15:08:46 markyosullivan, most common problems with misused asynctasks is leaked activity/fragment instances Apr 13 15:09:34 Zharf: What do you mean? Apr 13 15:09:39 I spent a couple of weeks trying to fix an app that spawned a lot of asynctasks, leaked all the fragments which then caused more asynctasks to be run when I rotated the screen Apr 13 15:09:41 The activities / fragments aren't destroyed? Apr 13 15:09:48 :| Apr 13 15:10:00 Okay now I'm scared Apr 13 15:10:04 eventually it ran so many asynctasks that asynctasks executor threw an exception Apr 13 15:10:06 If thre is a reference to them, garbage collection will not clean them up Apr 13 15:10:23 If there is a reference to them in another class? Apr 13 15:10:30 async tasks can hold these references Apr 13 15:10:40 I only refer to the async tasks within the classes which they are called Apr 13 15:12:10 to create a step by step wizard with fragments... whats the best solution, strategy? I am looking at WizardPag right now... but are there better solutions? Apr 13 15:12:26 memory leaks are the smallest issue with asynctask Apr 13 15:12:42 The worry is not a reference from the activity to the async task, but the async task to an activity. You leave the activity in your ui, and it is "destroyed", but the async task still holds a reference to the activity so it cannot be GC'd and you cannot access it any more (you left that ui page) Apr 13 15:12:42 pfn: What's the other issues? Apr 13 15:12:57 lifecycle and composition Apr 13 15:13:31 truckcrash: How can I track the AsyncTask? Apr 13 15:13:47 pfn: How so? Lifecycle as in the AsyncTask never dies? Apr 13 15:15:27 asynctask dies soon after doInBackground returns, but if you take a long time in there and don't handle cancellation properly, you might have "rogue" tasks running around Apr 13 15:15:53 (soon after because it also runs onPostExecute or onCancelled after it) Apr 13 15:16:35 ^^ what Zharf said Apr 13 15:17:11 the documentation isn't clear that you need to handle cancellation (and call cancel when needed) Apr 13 15:17:26 asynctask runs in the bounds of a java thread and you can't just cancel a java thread Apr 13 15:17:35 you can tell one that "hey, please stop what you're doing" Apr 13 15:17:43 but if it doesn't want to, it doesn't have to Apr 13 15:18:31 and so if you hold a reference to fragment/activity that's supposed to be destroyed, it won't be until the asynctask decides that it's time to die Apr 13 15:18:49 and I was supposed to get off work half an hour ago Apr 13 15:19:22 Zharf, european? Apr 13 15:19:26 yeah Apr 13 15:19:32 cool Apr 13 15:19:40 it's 20 past 6 Apr 13 15:20:06 that's 9 hours ahead of me Apr 13 15:20:30 why does it take gradle ~4 min to build and run my app? is there some option to make this faster? Apr 13 15:20:51 i'm using android studio 2.0 if that makes a difference Apr 13 15:20:56 trudev_ using AS 2.0? Apr 13 15:21:00 ah, yep ;) Apr 13 15:21:38 Zharf: So how do you kill AsyncTasks? Apr 13 15:21:51 richa_ is there some way to speed it up? Apr 13 15:22:45 you can increase the mem parameters in gradle to give it more room to manouver early on Apr 13 15:23:14 lol https://www.dropbox.com/s/v4uuxy74r3sbjnb/Screenshot%202016-04-13%2011.23.09.png?dl=0 Apr 13 15:23:24 markyosullivan, call cancel and have periodic checks for isCancelled in doInBackground, catching InterruptedException might also be advisable, depending on what you're doing Apr 13 15:24:01 richa_ i'll try that, thanks Apr 13 15:24:16 ultimately, gradle does a lot of disk io Apr 13 15:24:30 i also tried the offline mode thing Apr 13 15:24:35 didn't help Apr 13 15:24:39 so either get an ssd in your build box or try performing your build on a ram disk Apr 13 15:24:52 i am using an ssd tho Apr 13 15:24:56 woah Apr 13 15:25:03 wasnt expecting you to say that Apr 13 15:25:06 how big if your app? Apr 13 15:25:13 markyosullivan, if the task hasn't started running yet, then it just won't run because you called cancel, but if it's currently running then the task needs to realise that it's been cancelled (some things throw interruptedexception if they're waiting on something so that helps) by polling isCancelled Apr 13 15:26:10 richa_ not sure how to check Apr 13 15:26:43 Zharf: So you'd call cancel like this: new FirebaseTasks().cancel(); Apr 13 15:26:52 Can you not cancel it onPostExecute()? Apr 13 15:27:11 think about it Apr 13 15:27:15 just took over this project Apr 13 15:27:21 post execute is already done Apr 13 15:27:41 trudev_, size of apk, lines of code, number of libraries are common metrics Apr 13 15:27:59 what you mean post execute is already done? Apr 13 15:28:01 markyosullivan, you need to call cancel on the asynctask instance that's already been created and called execute() on Apr 13 15:28:18 truedev_ find the dev summit video that the android boffins did on the Tools side of things Apr 13 15:28:20 so you need to keep the reference to the task so that you can do that Apr 13 15:28:34 markyosullivan, read the docs Apr 13 15:28:35 they have some fairly impressive performance improvements on gradle builds they demonstrated Apr 13 15:28:41 whether or not they cooked the numbers, i'm not sure Apr 13 15:28:44 Zharf: new FirebaseTasks().execute(); - I'm guessing I'm creating a new instance every time then? Apr 13 15:28:48 but I remember them detailing the changes that they made to the project Apr 13 15:29:40 pfn: yeah but if you call execute, it does doInBackground() and once it's finished that it calls postExecute() which allows you to do stuff with the UI thread again? Apr 13 15:30:21 richa_ pfn not that many libs. apk is like 10 mb Apr 13 15:30:23 which is why I would have thought you could have cancelled it within the postExecute() method Apr 13 15:30:29 markyosullivan, what would be the point of calling cancel at that point Apr 13 15:30:40 and it's a good thing I don't use gradle, pos Apr 13 15:30:48 to kill off the AsyncTask? Apr 13 15:31:12 i don't have that much android experience.. is this normal for building? Apr 13 15:31:19 I thought that was the issue, where the AsyncTask process would continue to run after doInBackground() had finished? Apr 13 15:31:32 6 minutes is a long time for a 10mb app, there is something under the surface there Apr 13 15:31:43 richa_: Do you have an SSD? Apr 13 15:32:02 markyosullivan yes I saw a great increase in gradle performance, as to be expected. Apr 13 15:32:04 I've found long build times on my laptop which doesn't have an SSD Apr 13 15:32:57 going out and buying an ssd shouldn't be your first port of call for a quicker build though Apr 13 15:33:25 ssd is the #1 performance improvement for computing Apr 13 15:33:30 im using a rmbp with 16gigs of ram lol Apr 13 15:33:38 i hate this Apr 13 15:33:45 gradle is a pos Apr 13 15:33:47 that's why it's so slow Apr 13 15:35:20 how do you guys dev like this? I'm comming from building on iOS Apr 13 15:35:28 the simulator also sucks Apr 13 15:37:05 android builds aren't slow, just gradle is Apr 13 15:38:03 we have around 30 devices to develop our app with, so we don't use emulators :p Apr 13 15:38:20 trudev_ we have a 10mb(ish) application which i've just build now in under 9 seconds, so something must be really really wrong with your project Apr 13 15:39:24 meh, our project at work also takes about 3.5 minutes to build (clean, 30-90s incremental) Apr 13 15:39:57 trudev_ this is the video I was talking about Apr 13 15:39:58 https://youtu.be/fs0eira2pRY?t=172 Apr 13 15:40:20 gradle takes around 70% of the time in transform dex task or something Apr 13 15:40:34 richa_ thanks i'll check that out Apr 13 15:40:55 how many dependencies tho? and what version of gradle? Apr 13 15:40:57 Zharf: do you have a flavor for fastBuilds? Apr 13 15:41:07 minSdk 21 Apr 13 15:41:11 funny, dexing is the first thing on Xavier talks about :P Apr 13 15:41:19 that's what jack is supposed to address Apr 13 15:41:24 it's failing miserably at the moment Apr 13 15:41:31 we have minsdk 15 Apr 13 15:41:44 Zharf, for development, should set minSdk 21 Apr 13 15:41:48 speeds up dex dramatically Apr 13 15:41:51 for incremental builds Apr 13 15:42:10 I don't use AS though, not sure if IDEA supports that Apr 13 15:42:12 * pfn just uses protify and problem solved Apr 13 15:42:16 Zharf, it does Apr 13 15:42:17 that's what I said!!! Apr 13 15:42:20 I'll try tomorrow Apr 13 15:42:27 protify = 3 second rebuilds :P Apr 13 15:42:45 * pfn needs to figure out how to fragment resources Apr 13 15:42:56 then it'll be fast for all situations, not just code changes (if resources are huge) Apr 13 15:42:56 pfn: fragment? Apr 13 15:43:03 thepoosh, segment, break apart Apr 13 15:43:06 oh Apr 13 15:43:18 refactoring will make you a happier man Apr 13 15:43:27 I guess I should use the same term I use for dex: sharding resources Apr 13 15:43:36 I break all of my dex files into 3000 method shards Apr 13 15:43:41 I don't think the team would be happy to move to sbt based builds though Apr 13 15:43:47 Zharf, there's no move Apr 13 15:43:53 Zharf, it can be done on a personal level with 0 effort as well Apr 13 15:43:58 android-gradle-build imports gradle builds automatically Apr 13 15:44:04 pfn: is your source code modular enough to clearly shard? Apr 13 15:44:10 thepoosh, doesn't matter Apr 13 15:44:23 modularity of code is unrelated to sharding Apr 13 15:44:34 loading time for dex files does Apr 13 15:44:34 well, I'll get back to yoy on that tomorrow Apr 13 15:44:49 you want to keep them closely packaged Apr 13 15:45:04 https://github.com/pfn/android-sdk-plugin/blob/master/src/proguard.scala#L257-L335 Apr 13 15:45:14 loading time for dex is irrelevant for development Apr 13 15:45:25 faster than any other solution Apr 13 15:45:28 including instant run Apr 13 15:45:34 (and works more reliably) Apr 13 15:46:18 love seeing 1304 errors in a build Apr 13 15:46:20 :S Apr 13 15:47:39 better than being something like javascript and not knowing where the errors are until you run Apr 13 15:47:44 and have to run 1304 times to find them all Apr 13 15:47:56 true dat Apr 13 15:48:04 our backend is written in node Apr 13 15:48:07 fanboyz Apr 13 15:48:08 lol Apr 13 15:48:12 nubs Apr 13 15:48:24 oh hi g00s Apr 13 15:48:33 pfn: it was all the rage when they started Apr 13 15:48:34 g00s \o Apr 13 15:48:41 hey thepoosh richa_ Apr 13 15:49:01 thepoosh, do they regret it? I assume not, javascript fanboys are fans no matter what Apr 13 15:49:09 then again, you can run typescript and purescript and such on node... Apr 13 15:49:15 scala.js even Apr 13 15:49:18 pfn: there are many times they very much regret it Apr 13 15:49:26 but they learned to overcome the issues Apr 13 15:49:37 coming from poor design that is so easy to do in js Apr 13 15:49:46 years of javascript have really bummed me out about any web dev Apr 13 15:50:10 well, I learned to like functional programming a bit Apr 13 15:50:19 but I prefer C-like and Java Apr 13 15:50:59 * pfn twiddles thumbs while test suite runs Apr 13 15:51:05 I really should setup travis some day Apr 13 15:53:27 test Apr 13 15:53:30 mm Apr 13 15:54:15 * pfn has about 30 test projects and it takes about 10-15 minutes to run through the entire suite :( Apr 13 15:54:19 mmmmm Apr 13 15:55:11 Hey. I have an ImageView that I want to utilize. In my drawables folder I have several PNGs I need to programmatically set to my imageView based on various criteria. One is named 03n.17.png The R.drawable does not like that it starts with a digit, so I renamed all my files to "w03n.17" etc. The 03n.17-part is a String I have available. Is there a smart way to do this? Apr 13 15:55:32 no Apr 13 15:55:48 you can reflect over the fields in R.drawable Apr 13 15:56:04 or build a map Apr 13 15:56:12 R. tags containing full stops?? Apr 13 15:56:39 Ideally I would like to skip the R.drawable and just provide the filename itself, but I don't know if that's possible or a good way to go about it Apr 13 15:56:59 why would you provide the filename itself Apr 13 15:57:01 use assets Apr 13 15:57:15 or Resources.getIdentifier Apr 13 15:59:19 That looks like a winner Apr 13 16:02:42 just be sure to cache the results of getIdentifier, especially if you do it a lot Apr 13 16:18:35 wow vim 8 soon Apr 13 16:19:18 looks like they are fixing that async i/o and plugin mess Apr 13 16:20:35 g00s: vim 8? Apr 13 16:20:53 is that not deprecated yet as a bad program? Apr 13 16:21:03 * thepoosh started a holy war Apr 13 16:21:26 i use it to write my git commit messages :P Apr 13 16:22:03 well, yeah Apr 13 16:22:12 because Fing Linus Apr 13 16:22:14 hihi Apr 13 16:22:34 Linus <3 Apr 13 16:23:05 if there is a douchebag programmer anywhere, it's him Apr 13 16:23:08 and pfn Apr 13 16:23:13 :P Apr 13 16:27:06 I'm over the 64k method limit, I added the multidex true to my build.gradle along with the compile 'com.android.support:multidex:1.0.0'. My target is api 14. Is this all I have to do to make sure multidex works without issue? Apr 13 16:27:35 does multidex work with such a low api target?! Apr 13 16:30:20 well thepoosh, on the contrary of plenty IDE/editors, especially including AS, vim is stable and not buggy Apr 13 16:30:36 and got features not even yet introduced in AS like 20 years ago Apr 13 16:30:43 so please, respect vim :)) Apr 13 16:31:16 adq: real programmers use butterflies Apr 13 16:31:17 https://xkcd.com/378/ Apr 13 16:31:29 :') Apr 13 16:31:34 you heard about spacemacs? Apr 13 16:31:40 spacemacs.org < Apr 13 16:32:10 i notice AS 2.0 still doesn't save any changes I make to Preferences > Editor > Code & Style > XML Apr 13 16:32:41 g00s, did you check your perm, i remember when you talked about this issue Apr 13 16:32:56 or check the logs maybe Apr 13 16:33:19 yeah i'll look, every other pref is OK its just that damn thing Apr 13 16:34:10 adq: I don't vim or emacs Apr 13 16:34:15 i AS bitch! Apr 13 16:34:20 or sublime Apr 13 16:34:34 :)) Apr 13 16:34:44 i use all of them but suck at emacs Apr 13 16:34:46 just use idea :) Apr 13 16:34:50 vim, emacs, atom :D Apr 13 16:34:52 i use AS most of the times for android stuff Apr 13 16:34:57 pycharm or android studio imo Apr 13 16:35:27 vim and emacs pale against nano :P Apr 13 16:36:39 The only console text editor to give you commands / help on screen without knowing the secret handshake Apr 13 16:37:27 adq seems AS 2.1.0 beta update or something Apr 13 16:37:33 Since enabling multidex my builds seem to take FOREVER. Any way to speed this up? Could've sworn there was a build.gradle option or something. Apr 13 16:37:49 vim4life Apr 13 16:37:55 eghdk, makes more modules Apr 13 16:38:02 eghdk, min sdk 21 Apr 13 16:38:25 i thought that trick wasn't needed any more - didn't xav say so a while back ? Apr 13 16:38:45 * g00s avoids multidex hahahaha Apr 13 16:38:49 i do too Apr 13 16:38:54 proguard ftw Apr 13 16:39:12 proguard <3 Apr 13 16:39:14 * g00s avoids proguard hahahaha Apr 13 16:39:19 Xav mentioned something in some video about speeding up multidex, and I think the solution by pfn was what was recommended. Apr 13 16:39:26 i heard they released redex today or something Apr 13 16:39:28 the only process that can break my app beside my poor programming skills Apr 13 16:39:34 already a couple of critical issues lol Apr 13 16:39:40 adq thats only if your app doesn't scale ! Apr 13 16:39:40 g00s, uh, how would it not be needed Apr 13 16:40:01 wyoung, and samsung! Apr 13 16:40:13 i thought xavmentioned the minSdk workaround in the video and said they will do something automatically soon Apr 13 16:40:27 but that was like, 6 mos ago at least Apr 13 16:41:45 can't remember now if it was the last i/o or the dev summit Apr 13 16:41:53 there's nothing that can be done automatically Apr 13 16:41:56 unless they mean instant run Apr 13 16:42:01 that is the only solution possible pre-21 Apr 13 16:43:07 pfn: Maybe the fact that they ask you to pick a device to laucnh on before it builds/deploys? Maybe if I choose a 21 and up device it'll know what to do. Apr 13 16:43:36 doubt it Apr 13 16:43:42 possible, but doubt it Apr 13 16:45:05 pfn: I know at dev summit they mentioned that if you pick a XXHDPI device, then it won't waste time packing in all the other assets (in AS 2.0) Apr 13 16:46:21 that's an interesting optimization Apr 13 16:54:09 Hi does anyone know why there no google play console support online for 2 days? Apr 13 17:00:31 ? Apr 13 17:16:21 Has there been any confirmation that there will be a dev summit this year? Apr 13 17:23:36 truckcrash, io Apr 13 17:24:04 adq, io what? They are expected to annouce something then? Apr 13 17:31:38 Is there any way to get an open file in AS, right click the tab of the java file, and show it in the file tree on the left? Apr 13 17:31:54 Super annoying to search for a file in the project tree when I have it open right there. Apr 13 17:32:15 so I’ve got a ViewPager with fragments that have their own toolbar. The toolbar shows up and so does the back arrow; however, on the very first page hitting on the back arrow does nothing. Is this by design? I just want the user to be able to go back to the parent activity thats set in the manifest. Apr 13 17:34:39 AS 2.1 beta in canary channel Apr 13 17:35:31 codepete: Do you have the setHomeAsUpButtonEnabled(true) or whatever? Apr 13 17:36:18 eghdk Yup. Apr 13 17:36:28 truckcrash, you asked "Has there been any confirmation that there will be a dev summit this year?", there is I/O like every year -> https://events.google.com/io2016/ Apr 13 17:37:21 eghdk, yes you have autoscroll to source and autoscroll from source Apr 13 17:37:33 it's also annoying too, you will see Apr 13 17:38:52 adq: where is that option? Apr 13 17:39:21 in your project file browser view, you have a setting icon Apr 13 17:40:15 adq: Aha. Thanks. That's helpful. Apr 13 17:41:30 http://android-developers.blogspot.fr/2016/04/android-n-developer-preview-2-out-today.html Apr 13 17:42:13 I hope they have something big at I/O, them revealing N earlier was cool but it's one thing to look forward to at every I/O Apr 13 17:42:37 eghdk: I even tried onOptionItemSelected to see if it triggers it, but it doesn’t at all. The back arrow in my toolbar for my view pager only works on pages after the first. Apr 13 17:43:12 markyosullivan: switching to swift Apr 13 17:43:13 adq preview 2 has Vulkan Apr 13 17:43:27 Leeds ha ! Apr 13 17:43:47 the most revolutionary thing google could do with android right now is timely updates Apr 13 17:43:59 across all carriers / devices Apr 13 17:44:01 it's planned i believe Apr 13 17:44:35 eh, maybe they're not going to concentrate too much on Android this year, mainly focus on cloud and april fools support Apr 13 17:45:00 :') Apr 13 17:47:12 Anyone else have any ideas why the home button doesnt work on the first page of a viewpager? Each of my fragments has a toolbar and I set it as the support action bar and it shows up. When I click it on the first page though it doesn’t trigger onOptionItemSelected. Only the pages after does it work. Apr 13 17:56:08 adq, Ah, I see. I was asking about the android dev summit event in particular (the one they held last November) IO is nice, but there was a lot of interesting android focused content that came out of the dev summit Apr 13 18:02:00 are there any vr irc channels Apr 13 18:02:37 mikedg has wants to play hackers Apr 13 18:02:42 mikedg you're still alive ! Apr 13 18:02:49 s/has// Apr 13 18:02:50 i am! Apr 13 18:03:05 i have been hibernating Apr 13 18:03:06 no he's not, he's the ghost in the machine Apr 13 18:03:09 lawnmower man Apr 13 18:05:36 lol Apr 13 18:19:30 Hello Apr 13 18:20:07 allo Apr 13 18:20:12 @G00s, you here? Apr 13 18:20:17 g00s: ^ Apr 13 18:20:41 hey tricknology Apr 13 18:21:04 fianlyl finished the Android<—BT—>Android test.. Apr 13 18:21:19 how did it go ? Apr 13 18:21:50 running it right now Apr 13 18:21:51 hahahaha Apr 13 18:22:02 I connected them both up as receiver and they’re ackign back and forth like crazy Apr 13 18:22:10 :D Apr 13 18:22:40 so then it seems your peripheral is slow to write that chunk maybe Apr 13 18:23:13 wel remember I said thigns liek 2K are faster than 16, so I’m guessing a 5 byte ack isnt going to tell me much Apr 13 18:23:32 is tehre a classy way to debug 2 devices at once? Apr 13 18:23:37 ok, so i got "instant run" to work but it still takes ~1 min for the changes to apply :/ Apr 13 18:23:47 (without having 2 computers, that’s the bougie way) Apr 13 18:24:03 tricknology instant run is like instance rice ... instant but not really instant :D Apr 13 18:24:08 oops trudev ^ Apr 13 18:24:16 tr_ autcomplete ftl Apr 13 18:24:24 lol Apr 13 18:24:25 tricknology, adb over wifi Apr 13 18:25:30 tricknology probably the right way to do this , with lots of money, is to have some kind of protocol analyzer for BT set up Apr 13 18:25:38 have someone used the WebkitCookieManagerProxy Class? I'm trying to "convert" android.webkit.CookieManager to java.net.CookieManager. Apr 13 18:26:45 well hell we should have some portion of a EE lab anyway with all the hardware.. Apr 13 18:28:20 but when ever has “boss we need more stuff” ever worked? Apr 13 18:28:32 - an ever Apr 13 18:30:44 well, do research on gear you need and present the costs Apr 13 18:31:02 show that you put effort into tradeoffs of different options Apr 13 18:31:11 cost justify baby ! Apr 13 18:31:42 1 week with you putzing around this one issue probably covers some gear :) Apr 13 18:36:09 anyone knows what's the meaning of the new green background in the java modules in AS 2.0? Apr 13 18:42:18 oh i guess it's for test code Apr 13 18:42:28 "Android N Developer Preview 2, out today!" Apr 13 18:42:35 wake me up when it has 10% market share Apr 13 18:43:17 good luck, rip van winkle Apr 13 18:43:25 i'll wake you in 2022 Apr 13 18:43:53 heh Apr 13 18:43:58 Is it possible to show the ticker text/icon for a notification and then show a different icon for the notification once the ticker text is finished or do those icons have to be the same? Apr 13 18:44:34 dafuq is android N developer Apr 13 18:44:36 ticker? Apr 13 18:44:59 it's the developer build of the successor to Marshmallow, just known as N for now Apr 13 18:46:30 whats the advantage over using android studio? Apr 13 18:46:50 g00s you’re right, it’s been about 3 days of putzing and I still dont know if it’s the damn device or my code.. code is pretty solid though, similar the the BT chat example. Apr 13 18:46:56 but more threading Apr 13 18:47:12 to take some of the message processing load off the connectedThread Apr 13 18:47:52 ognna lunch soon, I’ll let you kno whow it goes and maybe share the code base for anyone who needs to test stuff liek this in the future “assuming my transfer speeds are fast” If not then I’ll be all up in here with the code posted and seekign tips.. lo Apr 13 18:48:52 Twirl, Android N is not an IDE and in no way a replacement for Android Studio. Android N is the next major release of android itself. Apr 13 18:49:24 truckcrash: i know what android N is, i said android N developer Apr 13 18:49:38 truckcrash http://tools.android.com/recent/androidstudio21betaavailable Apr 13 18:49:45 it’s the preview of Android N Apr 13 18:49:48 "The main feature in 2.1 is support for Android N preview" Apr 13 18:49:55 lol Apr 13 18:51:35 g00s, cool. Apr 13 18:52:30 Anyone in here a Bluetooth wizard? Apr 13 18:52:49 I Apr 13 18:52:58 dbro: I’m well on my way lol Apr 13 18:54:41 haha. I'm having a hell of a time consistently connecting to Dual Mode Bluetooth Devices over the LE transport. BluetoothDevice.connectGatt() has a hidden method (public in Marshmallow) to force the transport to LE, but even with that I occasionally get BR/EDR connections, and service discovery fails to discover LE services Apr 13 18:55:26 ouch Apr 13 18:55:32 The product I've been working on for a year now is going to fail in fire if I don't figure this out. I've got hcidumps and lots of documentation about the issue (repro on every device I've tested so far) Apr 13 18:55:39 so just wondering if there's hope :) Apr 13 18:56:00 dbro do it on iOS instead :D Apr 13 18:56:20 haha, we are. Just happens I'm to blame for the Android part of the show Apr 13 18:57:31 LE, from what I’ve heard from g00s’ trials in here is iffy.. Apr 13 18:57:44 I’m not using LE so I can avoid that :( Apr 13 18:57:52 bit of a time crunch Apr 13 18:58:04 and TBT idk if the devices even support it. Apr 13 18:59:38 Broadcom's engineers state their hardware supports Dual Mode connections in this Bluedroid commit: https://android.googlesource.com/platform/external/bluetooth/bluedroid/+/8fe5887 Apr 13 19:00:02 That tantalizing bit "Dual Mode Topology (Ability to choose LE transport when connecting with other Dual Mode devices)" Apr 13 19:00:17 If only I could figure out what foils that noble intention Apr 13 19:00:53 dbro how does nRF master control panel perform ? Apr 13 19:01:06 does it connect reliably or mess up also Apr 13 19:02:32 good thought: checking that now Apr 13 19:10:49 master control doesn't seem to expose the transport selection during connection so it appears to do the BR/EDR connection + Service discovery over SDP instead of LE + GATT Apr 13 19:12:00 thanks for pointing me to that. Really an awesome tool Apr 13 19:13:35 yeah its pretty nifty Apr 13 19:16:50 Have you Bluetooth folk also seen issues with LE devices where a connection stalls. e.g: You call connectGatt() but never receive a callback to OnConnectionStateChanged? And/Or OnConnectionStateChanged with status 133. Oh boy that's a goodie Apr 13 19:19:20 yeah 133 i think is generic error Apr 13 19:19:43 connectGatt with autoconnect=true can result in race condition Apr 13 19:20:07 that was reported years ago , even with patch - but think its still active bug Apr 13 19:23:28 yeah, right. I've been keeping autoConnect false fwiw Apr 13 19:34:15 lol vim 8 "Dropped the support for MS-DOS. It was too big to fit in memory." Apr 13 19:34:19 they need multi-dex ! Apr 13 19:39:39 has anyone ever successfully tested something with JodaTimeAndroid in an android unit test? Apr 13 19:41:25 Hey all, I'm trying to write tests for an AndroidKeyStore implementation. Robolectric has had an open issue for over a year to mock the java.security package to make this possible. Has anyone found a workaround? Apr 13 19:41:30 I can't seem to get a test to run that can actually init the thing Apr 13 19:42:49 @joshuakovach if you're getting java.io.IOException: Resource not found: "org/joda/time/tz/data/ZoneInfoMap" -- I can tell you that's a red herring. All my tests pass despite throwing that exception. Apr 13 19:45:01 #&@)!#&$ Apr 13 19:45:16 well there's a few hours of my life I'll never get bakck Apr 13 19:45:51 I was certain it was skipping the actual test runs Apr 13 19:47:38 Is that okay to ask again once in a while? Apr 13 19:47:50 I mean, I can't tell you that your framework is setup correctly, just that that exception will not prevent running your @Test methods if all is setup properly Apr 13 19:48:20 yeah, I think there was something else off before that was misleading me Apr 13 19:48:38 but you're right, and it's running them correctly now Apr 13 19:50:45 yay! Apr 13 20:06:13 I'm writing an app that switches between two states: Recording audio and playback the recorded audio. I'm using AudioRecord in an AsyncTask and I'm writing the recorded short[] samples into a DataOutputStream wrapping a ByteArrayOutptStream. Apr 13 20:06:21 Currently I'm recreating this buffer and its wrapping stream when ever recording starts. Would I be able to reuse these across recordings? Would I gain anything performance-wise? Apr 13 20:28:56 never mind, I tried it but it leads to a heap of extra try/catch maintenance Apr 13 20:29:44 Is there a way to see if ndk-build was run with NDK_DEBUG=1 as a macro? Apr 13 20:31:42 is there a way I can add a three dots menu inside an activity (eg in a list view) Apr 13 20:31:54 /is that a bad thing to do Apr 13 20:32:35 Like a button with 3 dots? That .shows() a new PopupMenu() ? Apr 13 20:34:18 yes Apr 13 20:35:58 okay thanks Apr 13 20:36:03 i think i figured it out :) Apr 13 20:41:21 I have a project in Android Studio (MyProject). I want to use code from other project (MyLibrary). I've followed every stackoverflow answer to no success, gradle refuses to build every time with a interesting collection of errors. This is not a question, I'm going to copy the whole library code into MyProject. Apr 13 20:42:57 besokare uh - i do this and it works O.o Apr 13 20:43:19 i have a library project and do uploadArchives I think to ~/.m2/.... Apr 13 20:43:52 which is mavenLocal. and your other project needs mavenLocal() so it can find the artifact Apr 13 20:46:39 g00s, I know I'll use this library code in other projects so it's frustrating to lose the chance to reuse it easily later. Thank you, but I cannot struggle more with this, I'm too tired. Apr 13 20:49:57 is there a way to get resources in a JVM unit test? i.e. I pass a context to a method for the purposes of returning a localized string Apr 13 20:50:14 I need a context that can get the resources that would actually work Apr 13 20:52:59 looks like extending InstrumentationTestCase gives access to getInstrumentation().getContext(), which works Apr 13 20:55:52 "As of plugin 2.0.0-beta7 the dexInProcess is not available in DSL anymore. Is there any official statement regarding this?" Apr 13 20:56:11 would be cool if they had a website, like developer.android.com that had all these things Apr 13 20:56:49 g00s: don't like surprise breakages? Apr 13 21:04:20 joshkovach: youll have to use android test Apr 13 21:04:44 onRetainNonConfigurationInstance() and getLastNonConfigurationInstance() are not deprecated any more ? O.o Apr 13 21:15:05 https://medium.com/@duhroach/reducing-png-file-size-8473480d0476#.dpz6nhli9 Apr 13 21:17:00 i usually use gimp, with indexed palette and no alpha when possible Apr 13 21:17:33 usually fine for buttons and widgets, but that’s not all of the images that are displayed Apr 13 21:18:07 yeah, in another app i have like soon hundred thumbnails of 384x384 Apr 13 21:18:21 in this case, i better take care of the drawable folder lol Apr 13 21:39:01 Hey Apr 13 21:39:12 For a calculator the area where text is shown what widget would be useful for that? Apr 13 21:39:13 hi all, i made a call to a number the other day and it's not showing in my call log. Maybe it failed. Is there any way to retrieve the phone number from the system logs/adb or something? Apr 13 21:40:13 rgb-one, TextView Apr 13 21:40:34 vise890: not sure this is the right channel Apr 13 21:41:01 besokare: Cool Apr 13 21:41:19 What is FrameLayout useful for? Apr 13 21:42:39 rgb-one, holding Fragments Apr 13 21:43:12 NoirAvlaa: En ingles mi amigo Apr 13 21:43:24 What is a fragment? Apr 13 21:43:28 rgb-one, You use the FragmentManager to pass a fragment into it Apr 13 21:44:17 https://developer.android.com/training/basics/fragments/index.html Apr 13 21:44:23 Alright, check out the calculator app on your phone (yea, take out your phone and look at it) Apr 13 21:44:49 does it seem like the TextView is embeded in a frame? Apr 13 21:45:16 Which TextView? Apr 13 21:45:27 where the text is displayed Apr 13 21:45:35 when you type 1+1 Apr 13 21:45:40 and the answer is shown Apr 13 21:45:41 No Apr 13 21:45:47 It looks like a TextView Apr 13 21:46:26 look at the documentation rgb-one Apr 13 21:46:31 ^ Apr 13 21:46:40 you have basically view and viewgroup Apr 13 21:46:51 and many components will inherit from them, doing more or less stuff Apr 13 21:53:20 So what would be the key widgets when constructing a calculator? Apr 13 21:53:45 buttons and a textview Apr 13 21:54:15 and a GridLayout? Apr 13 21:54:28 maybe? or a relative layout Apr 13 21:54:37 Linear could work with weights? Apr 13 21:55:21 For someone new to this what do you recommend? Apr 13 21:55:23 Though that'd involve some nesting which wouldn't exactly be elegant Apr 13 21:55:35 I’d recomend reading the docs and getting a book Apr 13 21:55:47 What s73v3r said Apr 13 21:56:04 Not interested in doing the book thing as this is just an assignment Apr 13 21:56:35 we’re not interested in holding your hand through every step Apr 13 21:56:36 but I will check out the docs Apr 13 21:56:42 If you're not willing to research your assignments properly yourself then why should we Apr 13 21:56:44 ? Apr 13 21:56:49 no worries I ain't interested either Apr 13 21:57:22 Nah, I don't expect you to do my assignment, just guide Apr 13 21:57:40 and our guidance is to read the docs and get a book Apr 13 21:57:47 or take the Android Development class Apr 13 22:00:17 Wow. Apr 13 22:00:39 Sometimes I'm astonished at just how lazy people can be Apr 13 22:10:09 s73v3r, looool, he's in ##java now asking the same thing Apr 13 22:10:33 yeah, they don’t take kindly to people asking about Android in there Apr 13 22:10:45 So far he's just being ignored Apr 13 22:11:00 fair enough Apr 13 22:16:17 anyone know a good resource for android threading? stuff that covers the things android specifically adds? like handlers and so on? Apr 13 22:18:58 grekkos, http://www.vogella.com/tutorials/AndroidBackgroundProcessing/article.html Apr 13 22:21:02 thanks NoirAvlaa i'll check it otu Apr 13 22:35:08 With android.view.VideoView is it possible to specify a thumbnail image for the video? Or am I going to have to rig up an ImageView to handle that? Apr 13 22:58:07 Anyone ever use MaterialShowcaseView? Apr 13 23:19:18 Well g00s: transfer speed is about 400kb/s Apr 13 23:20:00 kBps* . still not the advertised 3.125 MB/s but I’ll take it. might be some math error in there to but it’s definitely the device Apr 14 00:09:27 so if you had a low end machine, would you enable dexInProcess and increase the daemon heap, or run out of process ? Apr 14 00:10:30 https://code.google.com/p/android/issues/detail?id=204065 Apr 14 00:10:33 please star Apr 14 00:11:57 it says in progress / assigned Apr 14 00:12:39 g00s yup Apr 14 00:13:04 doesnt mean it cant be a higher priority tho Apr 14 00:14:36 jug6ernaut just find the bergstr guy and crack the whip ! Apr 14 00:14:43 lol Apr 14 00:14:58 stand behind his desk until complete Apr 14 00:15:49 i would have to work for google to do that Apr 14 00:15:54 & Apr 14 00:16:00 * jug6ernaut no likes cali Apr 14 00:19:30 google has offices all over Apr 14 00:19:55 texas? Apr 14 00:20:01 maybe austin Apr 14 00:21:23 How can I increase the volume at which an mp4 is played in a videoview? Apr 14 00:25:08 Anyone ever re-build an app they released in the past? Apr 14 00:25:44 just did, though it was a very small app Apr 14 00:25:56 java -> kotlin, holo -> material Apr 14 00:26:02 Fun? Apr 14 00:26:05 Boring? Apr 14 00:26:07 Worth it? Apr 14 00:26:12 "interesting" Apr 14 00:26:27 Mostly from the java to kotlin switch? Apr 14 00:26:54 no, using material and the support lib i was able to make a much leaner UI pretty easily Apr 14 00:27:03 kotlin is nice, still not 100% sold on it tho tbh Apr 14 00:27:32 Hmm, I released an app about 6 months ago, but since then I've learned a lot and I think I can make it a lot better a second time around Apr 14 00:27:36 + got some new features in mind Apr 14 00:27:44 So im trying to decide if I should re-build Apr 14 00:27:49 Ground up Apr 14 00:28:00 how big is your app Apr 14 00:28:20 What do you mean? As in how many downloads? Or just how big of a project Apr 14 00:28:54 project Apr 14 00:29:17 Not really sure, took me a little more then a semester at school to release Apr 14 00:30:34 You could look at it on the play store if you want haha Apr 14 00:31:21 well it really depends on how long you want to go forward maintaining the app Apr 14 00:31:34 & if it justifies the time investment to rewrite it Apr 14 00:31:35 For the foreseeable future Apr 14 00:31:58 I would like to re-write it yeah Apr 14 00:32:08 go for it then Apr 14 00:32:14 Sounds good Apr 14 00:32:40 Might even do a new name and everything Apr 14 00:32:42 Re-branding Apr 14 00:32:50 Default method requires API level 24 Apr 14 00:32:51 :((( Apr 14 00:33:12 adq sadly Apr 14 00:35:14 can anyone explain to me when is it necessary to create a looper? Apr 14 00:37:00 grekkos, http://stackoverflow.com/a/7597897/1373568 Apr 14 00:37:15 i can explain when it is necessary to search for something Apr 14 00:38:16 yeah I already read the same thing though Apr 14 00:38:38 what about it do you not understand then Apr 14 00:39:53 well we recently refactored some code here to use futures and thread pools for our network stuff, but now it's become impossible to call any of our network code from a non-ui thread (or more specifically a thread that has no looper, I guess) Apr 14 00:40:01 so i'm trying to get a better handle on this and what I can do to fix that Apr 14 00:40:40 why would u go with futures & threadpools when options like volley/rxjava exist :\ Apr 14 00:41:10 well for one thing we can't really use any 3rd party code without running into license complications Apr 14 00:41:17 (legal issues and office politics) Apr 14 00:41:25 same here Apr 14 00:41:30 same issues Apr 14 00:41:35 its worth the trouble Apr 14 00:42:01 I haven't tried either one of those but I've heard of both of them Apr 14 00:42:05 what does volley do Apr 14 00:42:32 oh wait this is a google project/ Apr 14 00:42:34 would volley count as third-party? Apr 14 00:42:51 Leeds depends if its provided by the sdk or not Apr 14 00:43:00 idk if it is or not Apr 14 00:43:31 well Apr 14 00:43:35 grekkos yes volley is from google, "basially" its a network request scheduling/management library Apr 14 00:43:38 I think it's anything that we haven't developped Apr 14 00:43:56 like we can't even use the newer version of OkHttp even though we're already using a previous version Apr 14 00:44:11 well, okhttp is apart of android now Apr 14 00:44:12 soooo Apr 14 00:44:56 right but even because it's a different version of it Apr 14 00:45:02 there has to be another approval Apr 14 00:45:13 and apparently it's very difficult to get through the process Apr 14 00:46:07 im just saying that since its apart of android / the sdk, it might be implicitly approved if you target the newer versions of android Apr 14 00:46:16 but yeah, legal is usually never easy to get through Apr 14 00:46:28 * jug6ernaut has been fighting that battle a lot Apr 14 00:46:31 over the last few months Apr 14 00:46:39 yep Apr 14 00:46:40 :| Apr 14 00:46:46 takes ~3 months to get an OS library approved for me :S Apr 14 00:47:03 I think it's mostly a concern that we aren't the ones maintaining that code so if something goes wrong we could be liable or something Apr 14 00:47:05 tho we are revamping the entire process, should be down to weeks for us soon Apr 14 00:47:31 i mean, your always liable for code you deliver Apr 14 00:47:35 that sounds like an improvment Apr 14 00:47:45 whether you write it or you import it from someone else Apr 14 00:49:41 but back to the topic, threading code can be very tricky to get right, if at all possible dont write the core threading code yourself Apr 14 00:49:49 "look mr manager: this would take x weeks to stabilize, but we can use this lib, which's been use since 3 yrs" Apr 14 00:51:19 if it's a big consulting, the manager will certainly say no to the lib Apr 14 00:51:20 "which has 100 ppl who konw what they are doing developing it and testing it" Apr 14 00:51:32 "they have experience, we dont, it works, k?" Apr 14 00:51:59 bitkiller if ur going to a manager, your already doing it wrong Apr 14 00:52:14 yep Apr 14 00:52:23 do it first, ask later Apr 14 00:52:53 no lol, not necessarily, since it might be a legal issue. Just saying dont go to a manager for a technical decision Apr 14 00:55:42 yeah Apr 14 00:55:56 problem is I don't think we own all of the code either Apr 14 00:56:43 fight the good fight grekkos Apr 14 00:59:29 haha Apr 14 00:59:40 well I'm also contrac so it's possible it won't be in there til I'm gone Apr 14 00:59:44 contract* Apr 14 01:00:03 which is still good, but it doesn't help me right now Apr 14 01:00:05 haha Apr 14 01:00:43 i dont even work on our main code base anymore, all i do is tools Apr 14 01:00:46 i still try to fix shit Apr 14 01:00:54 bc ppl are stupid by themselves Apr 14 01:01:18 tooling is cool too though Apr 14 01:01:34 looking at a code review today, one activity, brand new, 900 lines Apr 14 01:01:49 its like daa f***? u serious? Apr 14 01:02:33 lol Apr 14 01:02:56 and, oddly, that's a hard battle to fight too Apr 14 01:03:04 & its one of like 30 files changes Apr 14 01:03:16 its extremely had if your company does not have good standards in place Apr 14 01:03:16 "There's nothing wrong, with this function, it works... it's just 300 lines of code, but since it works there's no reason to change it" Apr 14 01:04:05 What did the function do Apr 14 01:04:07 Why was it so long Apr 14 01:04:19 i made it where i get automatically added as an observer to all of our native (android/ios) code reviews, i open defects all day Apr 14 01:04:29 drose379|bbl bc ppl dont know what they are doing Apr 14 01:04:38 How long should a method be max? Apr 14 01:04:42 i was giving an arbitrary example but I saw something similar on our ios code the other day and the response i got was "nothing inside will be reused so there's no point" Apr 14 01:04:58 I like functions shorter than 20 lines or so Apr 14 01:05:00 drose379|bbl never longer then what can be seen on a screen Apr 14 01:05:08 if u can see the full context of a function at one time its to long Apr 14 01:05:16 I don't like that one either jug6ernaut because people will use large screens and small fonts and claim that it fits Apr 14 01:05:16 Why so short grekkos Apr 14 01:05:34 grekkos its a rule of thumb based on a normal display lol Apr 14 01:05:51 Where do you guys work? Apr 14 01:05:53 yeah I know but I had issues with that too Apr 14 01:05:57 with long columns Apr 14 01:06:01 someone was using a 27" imac Apr 14 01:06:10 and even they were scrolling off screen Apr 14 01:06:17 lol Apr 14 01:06:57 drose379|bbl: I don't really count the lines, but I feel like that's a reasonable size Apr 14 01:07:15 I see Apr 14 01:07:18 JW Apr 14 01:07:19 drose379|bbl: I feel like a function should do *one* thing, if you're doing too much in a single function that's better read as multiple functions Apr 14 01:07:44 agreed Apr 14 01:07:57 instead of trying to read through a vast sea of instructions and loops and things, it's easier to see just doSomething(); doSomethingElse() etc Apr 14 01:08:14 that way the function reads more like a recipe Apr 14 01:08:30 Right Apr 14 01:10:19 should it be possible to put any arbitrary views in CollapsableToolbarLayout - usually I just see things like an ImageView Apr 14 01:11:09 hmm Apr 14 01:11:22 its just a viewgroup...so i would think so, never tried though Apr 14 01:14:33 can any of the java decompilers / jd-gui type things show resource IDs symbolically rather than 78678436574367 etc Apr 14 01:15:31 u would need to reference your R class Apr 14 01:15:35 idk if any do it automatically Apr 14 01:17:54 is this channel the place to ask questions about developing an app that uses GCM? Apr 14 01:19:05 its a channel where you can try Apr 14 01:20:10 kill -9 android studio piece of shit Apr 14 01:21:59 keeps hanging / beach-balling into oblivion Apr 14 01:22:15 more ram all the things Apr 14 01:22:29 nah its something about adb when the machine wakes up from sleep Apr 14 01:23:02 i have an issue where the emulator will run out of control when waking up from sleep Apr 14 01:23:11 normally like 80% usage on 1 core Apr 14 01:23:14 if i don't remember to disable ADB before the machine goes to sleep, i can't get control of the IDE again when machines wakes up Apr 14 01:23:20 after waking up from sleep, looking at 350% Apr 14 01:23:43 jug6ernaut oh this was years ago, i woke up and my machine was about to melt down Apr 14 01:23:59 night before, i shut it down with an emu running Apr 14 01:24:19 yeah. woke up and it had 100% cpu and the fans were going nuts Apr 14 01:24:46 sounds like when my computer refused to go to sleep Apr 14 01:24:51 ~100% cpu usage Apr 14 01:24:54 in my backpack Apr 14 01:27:26 when i kill adb , AS restarts 2 more Apr 14 01:27:38 :\ Apr 14 01:29:07 i'd like to create an app that receives event notifications from a server running on a user's local network. at first i was going to use a local connection, but it seems that in marshmallow the changes to power management make GCM the preferred method of receiving notifications. in my case, i need to receive and handle the events in real-time, and while the device may be in doze. is this Apr 14 01:29:07 a legitimate use-case for GCM? my concern is that obviously i'd need to embed the api key into an application i'd distribute to users Apr 14 02:43:23 g00s: u there? Apr 14 02:44:26 Ended up getting 400kB/s from the Android-Android comms. Still not great but much better than 5kB/s with the device.. :/ **** ENDING LOGGING AT Thu Apr 14 02:59:58 2016