**** BEGIN LOGGING AT Sun Feb 21 02:59:58 2016 Feb 21 03:04:07 I wish apps started as fast on actual devices as they do on the emulator Feb 21 03:06:57 im bound by transfer rate to my old device Feb 21 03:07:16 or else i'd compile to native, just to get faster everything Feb 21 03:07:37 perhaps you have debug on Max-P Feb 21 03:09:23 tripknotix: It's the same APK. But my device has really terrible storage speed, so that's probably the blank activity takes like 0.2 seconds to start Feb 21 03:09:59 On the computer it's obviously already in RAM, and it might be an outdated i7 but it's still plenty fast compared to an actual device Feb 21 03:10:00 yeah i have that issue too Feb 21 03:10:25 And people complain about the emulator being slow xD Feb 21 03:10:40 i've gotten to the point where i load a blank scene, then i set settings like, lowering resolutions and shaders, then load the actual login screen, hwich has textures and objects n stuff Feb 21 03:10:58 yeah my emulator is pretty slow as well =X even with intel stuff on, 2600k Feb 21 03:11:09 its like skipping too many frames Feb 21 03:11:18 Silky smooth here Feb 21 03:11:57 I'm complaining about the opposite, with the actual device being way slower :D Feb 21 03:12:59 It might be Marshmallow's new animation that makes it appear faster though, I still have Lollipop on my phone Feb 21 03:13:55 ah that is weird Feb 21 03:14:05 but then again my game is super optomized for low end, because that the kinda device i own =P Feb 21 03:14:14 g00s: what is this dead tree you sent? Feb 21 03:14:19 so i notice the emulator being way slower Feb 21 03:14:43 Can't tell so far, all I've got is a blank activity, it just struck me how fast it opened on the emulator vs on my device. Now time to put actual stuff in it Feb 21 03:14:48 JakeWharton only thing i know offhand talking about graph data structures in relational dbs Feb 21 03:15:09 Oh. OK I'll look. Feb 21 03:15:11 Thanks Feb 21 03:15:19 i had the 1e, i think it did cover some vendor specific extensions to SQL though Feb 21 03:15:35 I'm just dealing with sqlite Feb 21 03:15:44 And it's a side project so not too serious Feb 21 04:02:10 https://vid.me/Ms9M o/ FFT spectrogram (bad colors i know) on an infinite scrolling canvas at ~60FPS Feb 21 04:11:38 <[Saint]> adq: needs moar stereo Feb 21 04:11:49 sorry it's mono (microphone input) Feb 21 04:14:25 the source playing on the host where i recorded is not though, this is why you hear a bit of stereo, but the signal taken by the android app comes from the mic input (signal is injected inside genymotion with some virtual cables) Feb 21 04:25:03 hi Feb 21 04:26:36 <[Saint]> adq: inconsequential to you as it may be, you might enjoy knowing precisely how much that url scared the absolute crap out of me by way of epecting it to have no audio - let along _reeeeeaaaally_ loud audio. Feb 21 04:26:51 <[Saint]> *s/along/alone/ Feb 21 04:27:29 <[Saint]> Something something, all audio standards need to implement replaygain, something something. Feb 21 04:27:31 ahah sorry Feb 21 04:27:47 i fixed the colors in the meantime Feb 21 04:28:28 <[Saint]> I had the volume way up because I paused a DVD with really bad mastering about an hour ago and forgot about it. Feb 21 04:28:36 <[Saint]> Touche, volume knob, touche. Feb 21 04:28:41 if anyone can help ... how do you change the default setting for the android phone on design for mainactivity.xml on android studio ... mine is stuck on nexus 4, and i have only downloaded nexus 5 which gradle can emulate.. I have tried choosing nexus 5 on the shortcut menu tab where you can choose the phone , theme , and sdk version you want to use Feb 21 04:28:55 heh you'll remember next time. probably. Feb 21 04:29:06 i know that feeling, i cannot expect most ppl to have a limiter on their audio output Feb 21 04:29:55 <[Saint]> I don't know why _all_ audio/playback standards don't support replaygain. Feb 21 04:30:12 <[Saint]> Terrestrial television...lookin' at you. Feb 21 04:30:48 <[Saint]> I realized I was old the day I actually started complaining about commercials being too loud. Feb 21 04:38:06 told any kids to get off yard yet? Feb 21 05:20:32 it is really quiet in here for a Saturday night Feb 21 05:20:54 no ones coding, playing around with code, debugging, generally pissing life away on a computer? Feb 21 05:32:52 wow http://www.engadget.com/2016/02/16/5d-discs-can-store-data-until-well-after-the-sun-burns-out/ Feb 21 05:34:27 pretty old news Feb 21 05:34:31 ;) Feb 21 05:38:14 g00s: now the harder challenge... getting it to the damn market Feb 21 05:38:25 so many awesome stuff fails to even get to glimmer of market Feb 21 05:38:53 yeah, seems i read about new battery tech every week but nothing happens Feb 21 05:39:02 yeah Feb 21 05:39:36 considering so many 10% to 10 times batteries improvements, there should have been a battery that takes millisecond to charge and lasts a year Feb 21 05:41:28 that's a pretty absurdly tall order Feb 21 05:42:10 it only takes few doubles to get from 24 hours to 655 days Feb 21 05:42:23 though millisecond charge yeah absurd Feb 21 05:42:28 i think there are a few types of lead acid that will take wwhaever you give them Feb 21 05:42:35 in terms of lessening charge time Feb 21 05:43:05 without overheating probably could charge one of those in a few seconds if you had that much juice Feb 21 05:43:23 LI doesn't like that iirc Feb 21 05:43:59 what kind of load to last a year? depends on a lot. Feb 21 05:44:41 heh there was one fictional battery in one of sci fi books Feb 21 05:44:56 it could hold unlimited charge and accept any amount amps Feb 21 05:45:18 though it does increase in mass, if it gained a gram it means it has gram worth of power Feb 21 05:45:26 whole usa uses around 2 grams of power a year Feb 21 05:45:50 as plot there was one hidden away, charging away for years. it weighted kilo-ton Feb 21 05:49:47 it'd be amazing to have such battery tech Feb 21 05:49:56 no upper bound besides weight Feb 21 05:51:52 well, there is no upper bound really on current tech - its just too low a density to make that happen Feb 21 05:52:21 there are if you want battery to be reasonable sized Feb 21 05:53:01 i havent heard of anything better in the works besides LI recently Feb 21 05:53:14 yeah Feb 21 05:53:29 that was a pretty huge step from NIMH Feb 21 05:53:45 both charge and rechargability too Feb 21 05:53:55 NIMH you had to be sure to not keep it charging Feb 21 05:55:32 supposedly the tesla batteries are supposed to be damn nice Feb 21 05:55:38 but can't fit that in your pocket Feb 21 05:56:38 new phone-carts ;) Feb 21 06:00:10 has anyone seen the specs on that $4 phone? Feb 21 06:00:24 I assume its running android Feb 21 06:01:05 yeah it was exposed as fraud, its already existing model with whiteout on logo Feb 21 06:01:34 * Ping_2_Ur_Pong could buy like 10 of them and make himself a nice little cluster. Who needs a server rack when you can have 100 $4 phones power your site. Feb 21 06:01:43 lulz Feb 21 06:01:49 its not fraud in sense of thieft of money but rather of getting decent new hardware rather than older phone Feb 21 06:01:50 damn, could have been cool. Feb 21 06:01:51 and its $40 Feb 21 06:01:56 that was a lie too Feb 21 06:02:10 meh Feb 21 06:02:27 http://www.androidpolice.com/2016/02/17/for-4-you-can-get-indias-new-low-end-smartphone-freedom-251/ Feb 21 06:02:35 * Ping_2_Ur_Pong dream of having 100 computer together in a cluster for less than $500 will have to wait. Feb 21 06:05:18 XXCoder: so wait its $4 or $40 that article still says $4 Feb 21 06:05:29 Id buy 1 just to tear it down at $4 Feb 21 06:05:36 yeah good question Feb 21 06:05:44 I recall $40 somewhere but... Feb 21 06:06:03 * Ping_2_Ur_Pong could use a phone he can be animated with... id carry it with me at all times just so when I get mad I can act like I am super pissed and destroy it. Feb 21 06:06:22 "that dude must be super pissed he just threw his cell phone at the ground" Feb 21 06:06:59 lol Feb 21 06:07:04 it is cheap enough for that. Feb 21 06:07:10 * Ping_2_Ur_Pong needs to contact one of his friends in India. Feb 21 06:07:45 Seriously Id have like a collection of them just to do stupid stuff with. Id hand them out like business cards. Feb 21 06:08:15 write an app for my contact details and hand that out to potential clients, how do you beat that? you have a piece of paper I handed the guy a fucking phone... Feb 21 06:14:26 Ping_2_Ur_Pong: with your contact info and sms ready to go :P Feb 21 06:14:35 assuming you use some cheap plan Feb 21 06:15:02 exactly... set myself as speed dial 1 Feb 21 06:15:34 nah... bump dat, im spending $4 im hard wiring myself to 1-9 and it can't be changed. Youll also get my picture whenver you make a call. Feb 21 06:19:22 lol Feb 21 07:13:54 Is anyone here member of Android chat slack community ? Feb 21 07:14:05 I am not able to connect to since two three days Feb 21 07:15:33 Didn't know there was one Feb 21 07:19:54 There are a couple of decent slack communities: android chat and android united Feb 21 07:53:48 i never got into slack, i know its pretty new in the last couple of years, but is it like a skype group? Feb 21 07:54:00 where when your logged into the app, it shows u all the messages everyone has said Feb 21 07:54:07 or is it like irc, when its just new messages u see Feb 21 08:04:04 tripknotix: slack shows you the messages everyone said even if you were not logged in, but you can only view/search the previous most 10,000 messages across the different channels of the group, unless your group pays for that functionality Feb 21 08:05:08 Is it pretty aewesome tool for team collaboration Feb 21 08:05:21 no wonder they were one of the fastest unicorn Feb 21 08:05:40 I cannot think team collaboration without slack now Feb 21 08:06:48 ikr, i still haven't tried screenhero though cause slack blocked new registrations Feb 21 08:09:31 0/act Feb 21 08:11:43 android studio development possible on chromebook ? Feb 21 08:13:13 suhas_sm: either with modified chromeos or by using it as graphical terminal to machine that runs Android Studio Feb 21 08:17:26 (it's not a bad idea, depending on setup)_ Feb 21 08:17:44 Hmm Feb 21 08:26:30 is it invite only like skype groups Feb 21 08:27:08 this is weird, hwo do i login/sign up lol Feb 21 08:27:19 i gotta like create a name per team. or i can only join 1 team ata time? Feb 21 08:29:04 you can join several teams Feb 21 08:29:20 you have to sign up on the group's website usually Feb 21 08:29:36 androidchat.co Feb 21 08:40:03 where/how do you handle network requests Feb 21 08:40:09 its sorta awkward Feb 21 08:40:43 I want to make a network call, retrive some data, use it to open the next page in the flow Feb 21 08:43:32 do I want to start a network call in onCreate()? Feb 21 08:45:18 @RustyShackleford Is is not dependent on any user action ? Feb 21 08:46:30 If not then yes, I guess, you can initiate one in onCreate. However, is the purpose of this activity is only to initiate a network and take you to next activity ? Sounds odd though. Feb 21 08:47:43 Why directly start the next activity and initiate the network and show a progress dialog ? Feb 21 08:47:56 Why NOT* directly start the next activity and initiate the network and show a progress dialog ? Feb 21 08:48:31 well the first data the user sees requires a network call. I might cache it eventually since it doesn't change often Feb 21 08:48:44 and I'm going to open it in a fragment Feb 21 08:49:30 I'm using retrofit, haven't quite figured out how to use the callbacks Feb 21 08:49:51 and link them nicely with the Activity/Fragment Feb 21 08:50:21 do you usually extend Callback in an anonymous class, or create your own custom Callback class Feb 21 08:58:23 hey Feb 21 08:59:29 does anyone know where i can find studio.h? something that someone wrote needs it Feb 21 09:04:30 im thinking it would be in my ndk dir, right? Feb 21 09:04:42 or would it be in the studio dir? Feb 21 09:21:47 @RustyShacleford Have a look at this - https://www.youtube.com/watch?v=GBeN74Xuk2M&index=16&list=PLWz5rJ2EKKc9CBxr3BVjPTPoDPLdPIFCE Feb 21 09:22:06 @RustyShackleford Have a look at this - https://www.youtube.com/watch?v=GBeN74Xuk2M&index=16&list=PLWz5rJ2EKKc9CBxr3BVjPTPoDPLdPIFCE Feb 21 09:22:35 gradle build running.... Feb 21 09:23:03 It says cache data -- serialise data with timestamp and then when you have a cold boot, show cached data while you fetch new data. Feb 21 09:23:28 If you see, check how apps like gmail, or instagram or twitter behave Feb 21 09:23:49 @JitanRo ? Feb 21 09:24:50 haha spinner Feb 21 09:24:58 yeah my app at work uses one Feb 21 09:25:47 No, video says that is bad. Feb 21 09:25:59 Sorry for that suggestion Feb 21 09:26:08 It gives a feel that app is slow. Feb 21 09:27:29 no you're absolutely right Feb 21 09:27:41 the app I work on is terrible Feb 21 09:32:22 suhas_sm story of my day.. debugging some animations Feb 21 09:32:32 haha Feb 21 09:32:46 yeah very funny ;) Feb 21 09:32:59 it is a healthy routine, just do some push ups in between :P Feb 21 09:33:35 maybe I'll do that.. good news is I just put up my standing desk yesterday, so at least I'm not sitting in some crumpy chair Feb 21 09:33:47 Nice ! Feb 21 09:33:54 I need to get one Feb 21 09:34:06 is it adjustable? Feb 21 09:34:08 best investment ever Feb 21 09:34:10 yeah Feb 21 09:34:22 I'm trying to figure out how to build one Feb 21 09:34:26 I'm cheap :p Feb 21 09:34:30 can you put a price-tag on your mobility? Feb 21 09:34:44 I don't even want to talk about my mobility Feb 21 09:34:55 fractured my toe two weeks ago Feb 21 09:35:47 :( Feb 21 09:35:49 some of the standing desks i've seen are more than 1000 usd Feb 21 09:35:50 Did you kick your machine, out of frustration, while you gradle was building project ? :P Feb 21 09:36:01 close. A door frame Feb 21 09:36:09 RustyShackleford if you can afford it I think it's worth it, anyway you can get cheaper ones if you're on a budget Feb 21 09:36:22 or build one like you said Feb 21 09:36:33 yeah build one Feb 21 09:36:36 more fun Feb 21 09:36:45 Ikea has a reasonably priced one, I need to see it in person Feb 21 09:37:03 but yeah, menards shelving is some solid stuff. I might be able to build one Feb 21 09:39:24 Ikea has one with a manual crank for like 200 usd I think Feb 21 09:39:44 yeah thats the one Feb 21 09:40:07 It doesn't look super solid in the picture Feb 21 09:40:13 nope :/ Feb 21 09:40:23 that's why I didn't get it actually Feb 21 09:40:32 this desk is one of the build your own Ikea desks Feb 21 09:40:46 did you see it in person? Feb 21 09:41:04 I'm not against ikea, I have some of their stuff Feb 21 09:41:07 no just the pictures Feb 21 09:41:31 so I don't know really Feb 21 09:41:58 if I could only come up with the adjustment mechanism Feb 21 09:42:08 I could build myself one sturdy standing desk Feb 21 09:42:15 how often would you want to adjust it? Feb 21 09:42:41 sorta often Feb 21 09:43:13 I like to change between sitting and standing at work. There are some high tables with high chairs Feb 21 09:51:43 I tried one of these the other weekend, it was quite nice: http://backapp.eu/ Feb 21 09:52:12 us link.. http://backapp.com/us/ Feb 21 10:02:09 you could maybe just buy a small electrical motor RustyShackleford Feb 21 10:02:21 do some magic with that Feb 21 10:30:37 I wish instant run would work better already Feb 21 10:30:50 tried 2.0 a couple of times but I keep going back to 1.5 Feb 21 10:32:22 android 1.5 ;) Feb 21 10:33:05 Android Studio Feb 21 10:33:18 yeah was kidding heh Feb 21 10:34:09 Hello everyone, i am trying to get currency symbol for all currencies in android. I have this http://codepad.org/CQ8XHgC0 but i need to get the symbols Feb 21 10:36:15 ;( Feb 21 10:40:59 Hello, Does someone know how to get a portion of the camera preview in the sample code ? (http://developer.android.com/samples/Camera2Basic/src/com.example.android.camera2basic/Camera2BasicFragment.html#l286) I want to show in an ImageView the center of the TextureView. When I tried to get the Bitmap from the texture during the STATE_PREVIEW the whole app froze. Feb 21 10:52:31 I'm scaling with setScaleX/Y and moving a view to the bottom at the same time Feb 21 10:53:00 moving puts it perfectly at bottom, but when I scale at the same time it ends up not compensating fully for the scale (or at all, I'm not sure) Feb 21 10:54:18 It doesn't compensate, no.. That's up to you Feb 21 10:54:39 ok, I tried a bunch of ways but it's not quite working... Feb 21 10:56:30 oh.. the thing is at each update I get the current height and use that to setY Feb 21 10:56:52 I tried mupltiplying that with getScaleY but didn't do it it was still off Feb 21 10:56:56 idk if you are using the x and y pivot for scaling, that might be your issue Feb 21 10:57:05 no pivot Feb 21 10:57:10 otherwise you should know the ratio and by how much you have to compensate for translation Feb 21 10:57:37 also the order of op, translating then scaling is diff than scaling then translating Feb 21 10:58:00 I'm using rebound Feb 21 10:58:14 to get values.. https://facebook.github.io/rebound/ Feb 21 10:58:29 cannot help you, don't know this lib Feb 21 10:58:40 it just generates the values for me Feb 21 10:58:47 because you said the order matters Feb 21 10:58:55 I figure you meant android api Feb 21 10:59:22 it's running both the scale and setY changes at the same time Feb 21 11:01:07 You'd think view height * scaleY would equal the on screen height.. In which case it doesn't seem like a tough task to compensate Feb 21 11:03:47 yes, I'd think so to.. Feb 21 11:04:55 I'll just have to manually adjust it, don't have the time to fix it Feb 21 11:05:04 just weird Feb 21 12:32:12 Does Files that you create inside your app have some sort of condition list before they can me breated? I have a text file that keeps on disappearing Feb 21 12:32:33 Huh. Feb 21 12:32:41 Can you rewrite that into english? :) Feb 21 12:32:51 cart_man: where was it saved? Feb 21 12:33:01 Mavrik,lo l Feb 21 12:34:15 XXCoder, -> FileOutputStream fileout=ParentContext.openFileOutput(ChosenFile, ParentContext.MODE_PRIVATE); Feb 21 12:34:38 XXCoder, So there is no path that I created...its just given a ParentContext Feb 21 12:35:08 check where it was made, its probably in tmp or something and deleted when program exits Feb 21 12:36:28 XXCoder,Ok so lets say its in tmp ...how do I get it out of tmp Feb 21 12:36:28 ? Feb 21 12:36:52 dunno, find out where its being saved to first Feb 21 12:38:19 Are you sure it ever existed? openFileOutput does not go in temp folders. Feb 21 12:39:06 SimonVT,Well I have had succesfull loads in the recent past Feb 21 12:39:12 Had no problem with it ever up until onw Feb 21 12:39:55 ALl I added was 2 files are being read now.. Each file with its on controlling class instantiated though so they should not have anything to do with each other accept if the File lib has some snag I dont know about Feb 21 12:40:04 having 2 instances on at the same time Feb 21 12:47:09 SimonVT, Hmm it seems my File fails to open Feb 21 12:47:23 SimonVT,Its weird cause it never did that ! Feb 21 12:48:27 Could remaining size on DISK be the reason? There is like 1 gig left Feb 21 12:49:32 All of my files seem to fail to open now :( Feb 21 13:39:13 Hello everyone, I have an xml file which is declared with button and i want to display spinner when it’s clicked. Any idea on how i can do that? This is the xml file http://codepad.org/QOQ29Unj Feb 21 13:40:54 why not just use a spinner? Feb 21 13:41:16 I am building a calculator kind of interface Feb 21 13:42:01 I am using button with Linear layout…. the spinner doesn’t seem to fit in my layout Feb 21 13:42:42 doesnt fit? Feb 21 13:42:47 how so? Feb 21 13:44:10 It doesn’t fit the space which the button takes Feb 21 13:46:31 This is my full xml http://codepad.org/gTUxjTyz Feb 21 13:57:03 it's possible to change the toast color ? and how ? Feb 21 13:58:10 hourb: ? Feb 21 13:59:11 am talking about the toast background color ! Feb 21 14:02:46 i don’t have a toast background in the xml Feb 21 14:03:36 I am trying to display a spinner when a button with attribute style="?android:attr/spinnerStyle" is clicked Feb 21 14:04:56 I am calling a spinner programmatically onclick of the button and i am calling performClick() in the spinner object that i have created programmtically…. the problem is, it’s not popping up around the button… it displays the spinner in my screen area….. Feb 21 14:10:46 Hi, in this xml [http://dpaste.com/1YF9TQ9.txt] I am trying to make Linearlayout match NestedScrollView height, this is a landscape layout Feb 21 14:11:32 I can't remove NestedScrollView as removing it causes AppBarLayout to stop working Feb 21 14:38:40 http://stackoverflow.com/q/35537424/2871838 Feb 21 14:49:58 anyone ever had the emulator just completely crap out on them? Feb 21 14:50:07 i've wiped it, tried making new ones, and it just won't load at all Feb 21 14:50:16 not sure what to do :/ Feb 21 14:57:27 kommunicate: genymotion Feb 21 14:58:36 $136 per year? :( Feb 21 14:58:53 theres a free version Feb 21 15:01:44 Genymotion you have to paid for. Feb 21 15:01:45 I heard that visual studio's environment and emulator are pretty damn nice, never tried using them though Feb 21 15:02:30 https://www.genymotion.com/pricing-and-licensing/ click on individual Feb 21 15:05:14 * Ping_2_Ur_Pong really wants to steal unsigned_long's name Feb 21 15:05:32 s/name/nick/ Feb 21 15:07:05 * Ping_2_Ur_Pong makes note to setup all his clients to ignore join and part messages, shit turns into spam city when you dont Feb 21 15:08:26 omg that is so much better Feb 21 15:10:09 any1 knows decent libraries to make a gallery type recycler view with center snap? Feb 21 15:10:17 :v Feb 21 15:10:32 cant be bothered to do it myself due to time constraings Feb 21 15:11:40 what do you mean by recycler view? Feb 21 15:12:03 hi Feb 21 15:13:33 is it possible to "export" and sdk, the platforms, tools, etc for an offline installation? I'm having connectivity problems and I can't realistically download everything needed for a development environment Feb 21 15:14:01 I'm basically at dialup speeds, so googling is painfully slow at the moment. so sorry if the answer is easy to find Feb 21 15:16:35 jonky: find a library with good connection download install carry on? Feb 21 15:16:45 jonky: you could ssh into a machine that's running the environment and do all your dev over ssh Feb 21 15:16:50 hard to do any visual work though Feb 21 15:17:11 I don't actually get your question, you're asking is there a way to run the sdk without downloading it all? Feb 21 15:17:30 jonky: you can copy the sdk to a flash drive Feb 21 15:17:36 if thats what you're asking Feb 21 15:17:41 or an external hd Feb 21 15:18:34 ohh setup a vps with all the tools, get that server to download and host your sdk. tinyvz.com comes to mind Feb 21 15:19:01 jvrodrigues, thanks. I remembered reading something along those lines somewhere Feb 21 15:19:41 well using a ehd to move files is not exactly secret knowledge afaik Feb 21 15:19:57 but youre welcome Feb 21 15:20:12 jvrodrigues, well I wasn't sure if/how AS handled those on updates and installations Feb 21 15:20:13 * Ping_2_Ur_Pong got AlarmClock from the Android source running last night it was quite the PITA. Kind of cool IMHO to see how the internal dev teams code and how clean their code is. Feb 21 15:20:54 AS doesn't auto-update as far as I am aware. Feb 21 15:21:30 you could always ask someone to mail you a copy of the sdk and related files on a flash drive. if you're on dialup it would get there faster. Feb 21 15:21:50 jonky you need to set the path to the sdk Feb 21 15:21:59 then it will handle everything for you Feb 21 15:22:24 Ping_2_Ur_Pong: I think he just wants to know how to copy the sdk from one machine to the other without having to reinstall Feb 21 15:22:33 ohhh Feb 21 15:22:35 haha Feb 21 15:23:13 Ping_2_Ur_Pong, yes, not understanding things is hilarious Feb 21 15:23:38 move the files over then go to Preferences -> Android SDK and change the location. If you're using AS Feb 21 15:24:25 I really don't understand the sarcasm. but ok Feb 21 15:24:33 thanks jvrodrigues Feb 21 15:24:41 you're quite welcome Feb 21 15:25:26 I wasn't being sarcastic, if my assertion of your question is correct you wanted to know how to handle moving from one computer to another, after you move the files you need to set the Android SDK Location in Android Studio. Feb 21 15:30:01 any recommendations for an IDE that runs on Android? Feb 21 15:30:12 I have AIDE but I don't really like it Feb 21 15:31:05 that's the only one ive tried, the thought of typing code on a phone or tablet hurts my soul. Feb 21 15:31:33 yeah but I sometimes need to try stuff while I'm walking to the grocery store Feb 21 15:32:00 why in gods green earth would you want to code on your phone? Feb 21 15:32:08 like I said Feb 21 15:32:13 I gotta get groceries Feb 21 15:32:30 and I can't lug my laptop around on my knee while I do it Feb 21 15:32:41 that would be a silly walk indeed Feb 21 15:32:49 yes Feb 21 15:32:59 because coding on yoru phone while going to get groceries Feb 21 15:33:02 is not silly at all Feb 21 15:33:07 loadedanvils: dude, ugh... its not silly to try and develop an app on a tablet or cell phone? I mean the coding would be terrible. Feb 21 15:33:20 it's not big stuff Feb 21 15:33:26 * Ping_2_Ur_Pong has seen a video of a guy that can type like 70wpm on a cell phone so maybe that would work. Feb 21 15:33:31 just minor edits that I hate doing Feb 21 15:34:02 I cannot even begin to comprehend your reasoning there Feb 21 15:34:05 loadedanvils: you can load your apps onto your device and test them but coding it just seems like the biggest assbackwardy thing you can do Feb 21 15:34:07 just use a text editor Feb 21 15:34:23 I need syntax highlighting and stuff Feb 21 15:34:28 error checking Feb 21 15:34:30 how are you even going to connect it to your vcs? Feb 21 15:34:46 you cant have the entire android sdk in your phone Feb 21 15:34:49 I'll move my changes from my phone to my computer Feb 21 15:34:51 Or ssh Feb 21 15:34:53 jvrodrigues: vcs, what you talking bout willis? Feb 21 15:35:14 you can probably get some code highlighting but thats as far as youll get Feb 21 15:35:24 alright, what can I get Feb 21 15:35:26 vcs - version control system, come on man, keep up here Feb 21 15:35:27 loadedanvils: are you really under such a huge deadline that you can't take 1hr away from working on your app to go get groceries? Feb 21 15:35:37 no, I'm just lazy Feb 21 15:35:48 jvrodrigues: that was a joke Feb 21 15:36:01 I also want to do it from the couch when I don't feel like sitting up to reach my laptop Feb 21 15:36:44 it's in case I get sleepy Feb 21 15:36:45 ssh -X Feb 21 15:37:50 I think your approach to this coding thing will eventually drive you to a nervous breakdown Feb 21 15:38:02 I'm not nervous Feb 21 15:38:11 I am just extremely lazy Feb 21 15:38:43 also my laptop case is a bit busted Feb 21 15:39:30 but aside from recommending that I not do it, what's your next best alternative? Feb 21 15:39:56 ssh -X or use AIDE Feb 21 15:40:26 ssh -X, is that an app? Feb 21 15:40:31 or a ssh command Feb 21 15:41:03 * Ping_2_Ur_Pong ignores and directs to google Feb 21 15:41:06 alright yeah that's what I thought Feb 21 15:41:09 I did that too Feb 21 15:41:15 AIDE is not great Feb 21 15:41:37 you are trying do a really weird scenario, great doesn't exist Feb 21 15:41:57 red squigglies are so thick Feb 21 15:41:58 no one does the coding on their Android device. Feb 21 15:42:09 what if they need to go to the store Feb 21 15:42:16 or get their dry cleaning Feb 21 15:42:17 they do it when they get back Feb 21 15:42:34 test your app while doing that, but code... just seems weird. Feb 21 15:42:56 play with it to see what you should improve... trying to code it seems like too much. Feb 21 15:42:56 my dude Feb 21 15:43:18 I do want to play with it, but I need syntax as well Feb 21 15:43:57 funny how you are so demanding with the software Feb 21 15:44:03 however the hardware can be just a phone Feb 21 15:44:11 phone is nice Feb 21 15:44:19 for calls/texting/porn Feb 21 15:44:20 big enough to see a lot of lines Feb 21 15:44:33 but just small enough to fit in the palm of my hand Feb 21 15:44:40 and not w Feb 21 15:44:52 not powerful enough to have a decent ide Feb 21 15:45:07 I'd say you're the weirdo for looking at porn on your phone Feb 21 15:45:20 wait, you don't look at porn on your phone? Feb 21 15:45:29 but I'm willing to withhold judgment if you'll do the same for me Feb 21 15:45:32 and help me out Feb 21 15:46:10 I guess I could use ssh if I had a terminal based IDE Feb 21 15:46:23 if anyone has recommendations for that Feb 21 15:46:37 loadedanvils: ssh -X is to connect with your windowing system Feb 21 15:47:09 hmm Feb 21 15:47:30 that might be more tedious than an actual app Feb 21 15:52:29 if you must know Feb 21 15:52:37 the store is a bit of a long walk Feb 21 15:52:47 45 minutes walk Feb 21 15:55:10 listen to music and chill? Feb 21 15:55:15 how do you even code while walking? Feb 21 15:55:27 just with the regular keyboard Feb 21 15:56:09 all I really want is error highlighting Feb 21 15:56:27 you will not have it Feb 21 15:56:30 I'd use vim but I can't check for syntax errors Feb 21 15:56:41 why not, my dude? Feb 21 15:58:03 is there a browser based one then Feb 21 15:58:20 you know what, that's a good idea Feb 21 15:58:30 I'll do that Feb 21 16:05:50 you'll create a browser ide for android? Feb 21 16:06:18 are you going to code this ide on your phone? Feb 21 16:08:58 lel Feb 21 16:20:07 I need a layout manager that displays items gallery type, snapped to the center and the ones on the left/right smaller Feb 21 16:20:12 anyone know any lib? Feb 21 16:20:19 I need to deliver this later today and cant be bothered Feb 21 16:20:29 also its not really a spec, just some eye candy I would like to include Feb 21 16:21:03 you can do it with a view pager Feb 21 16:23:02 hum, havent thought of that Feb 21 16:24:19 hi, is there a way to change how the AVD launches a device? It is not calling emulator64-x86 which is a lot faster Feb 21 16:25:09 use a 64bit image Feb 21 16:26:49 I am, it still loads via the non-64bit emulator Feb 21 16:26:51 not sure why Feb 21 16:27:14 also im not sure if it is using kvm for acceleration or not, nothing appears in the kvm running list Feb 21 16:27:27 and the documentation is out of date for the latest version of AS :( Feb 21 16:43:59 man, writing java makes things so much more work than they need to be Feb 21 16:44:08 I wish I could use stream api stuff on android Feb 21 16:45:15 lambdas are bad and you should feel bad Feb 21 16:45:21 haha Feb 21 16:45:33 I'm just comparing two lists of items Feb 21 16:45:41 this is such easy ass work in c# Feb 21 16:45:59 worst case scenario build custom comparer and use any number of methods that can utilize them Feb 21 16:53:04 asd Feb 21 16:53:23 Anybody ever tried converting java.util.Date to threeten.LocalDateTime? Feb 21 16:57:50 "lambdas are bad, " said the true java initiate Feb 21 16:57:55 cart_man: usually people end up just using JodaTime Feb 21 16:58:26 pfn: who said that? I need to know to beat them up Feb 21 17:06:57 justjanne,Yea but I am to far into threeten now though Feb 21 17:12:01 cart_man: anyway, the easiest conversion would probably be over UNIX time Feb 21 17:14:13 hey i was wondering if someone could give me a bit of insight Feb 21 17:14:28 I was wondering when the best time to download json data from the internet for my app would be Feb 21 17:15:20 My app will rely on 3 different json endpoints. One will be expected to have new data every day, one will have new data every week, and one will rarely be updated but it would still be a good idea to check Feb 21 17:24:30 If I ship my app with database with database version 1 and change it to database version 2 in the next app update, will the data stored in the database will be lost if the user update the app? Feb 21 17:28:18 is this sqlite? depends what you put in onUpgrade() Feb 21 17:28:41 most tutorials just put there "DROP TABLE ..." and recreate tables Feb 21 17:31:59 Ashiren Yes, I am talking about sqlite and yes I also have the "DROP TABLE IF EXISTS..." in onUpgrade Feb 21 17:32:33 justjanne, Epoch ? tried it Feb 21 17:32:54 justjanne,can not get the Epoch from java.util.Date though Feb 21 17:32:58 or maybe I am missing something Feb 21 17:33:12 don't drop table then, pretzzo, perform a proper migration Feb 21 17:34:24 pfn OK. Do you any any good tutorials that show how to do this? Feb 21 17:34:29 guys where can i find studio.h? Feb 21 17:34:53 I don't know of tutorials Feb 21 17:35:36 wtf is studio.h, stdio.h? Feb 21 17:35:52 no Feb 21 17:36:06 pfn Ok. Thanks anyways! Feb 21 17:36:10 its something that the ndk has i think Feb 21 17:36:21 but i could never find it Feb 21 17:36:36 im trying to build this: http://pastebin.com/0Uci9fqK Feb 21 17:36:56 nvm Feb 21 17:38:24 android still on java 7 right? Feb 21 17:38:35 will be ever on 8? Feb 21 17:39:18 well i dont know Feb 21 17:39:34 staticsn0w: studio.h isnt standard, if it exists Feb 21 17:39:39 staticsn0w: and dont build it Feb 21 17:39:51 sounds like a way to brick your computer Feb 21 17:40:13 is this read-write UEFI bug thing? Feb 21 17:40:50 http://bgr.com/2016/02/21/hp-elite-x3-review-pt-1-preview/ Feb 21 17:41:14 sorta struggling with how to make network calls Feb 21 17:41:46 a common thing I'll have to do is respond to user touch event, download data, show the next screen populated with that data Feb 21 17:41:47 MyIntentService.makeNetworkCall() ... done Feb 21 17:42:14 using retrofit syncronous methods? Feb 21 17:42:33 I'm using the asycronous callback to do the call in onCreate() Feb 21 17:42:34 RustyShackleford did you watch the android summit session on app architecture ? Feb 21 17:42:49 I did not Feb 21 17:43:05 queuing it up right now Feb 21 17:46:34 Ashiren im compiling something that takes advantage of the biggest exploit ever: human stupidity Feb 21 17:52:58 staticsn0w, it's stdio Feb 21 17:53:01 obviously Feb 21 17:53:11 idiot that posted it made the same typo Feb 21 17:53:52 stupid question: if I replace a fragment without adding it to the backstack will the backstack be cleared and whatever fragments were there become GC food? Feb 21 17:54:14 and please say yes, or I have a bunch of apps with potential serious memory leaks out there Feb 21 17:56:33 pfn yeah i found out Feb 21 17:57:32 While using espresso for testing UI do I have to make real network calls and wait using idling resources or have to mock network calls ? Feb 21 18:00:00 jvrodrigues should be, if you replace() a fragement, thats remove() + add() Feb 21 18:00:10 so if you remove the fragment its done Feb 21 18:00:20 hey, are you able to join #android ? cause I'm not Feb 21 18:01:17 of course, you could just put log message in onDestroy() and find out ;) Feb 21 18:02:28 I also believe they get destroyed Feb 21 18:02:32 wouldnt make sense otherwise Feb 21 18:02:38 thats why I never bothered to find out Feb 21 18:02:39 just assumed Feb 21 18:02:48 where shit gets weird is attach and detach Feb 21 18:03:40 more just unfortunate naming of those methods and Fragment#onAttach #onDetach not doing what most would think Feb 21 18:04:44 yep Feb 21 18:06:04 is a network call in onCreate() a bad idea? Feb 21 18:06:35 also not sure if I want to use retrofit syncronous calls (in an IntentService or something) or asynchronous calls Feb 21 18:07:17 https://www.youtube.com/watch?v=8R5HN6oWdC4 lolol Feb 21 18:07:27 (Samsung Galaxy Unpacked 2016 conf) Feb 21 18:08:33 do you guys use a lot of apps on your phones? I tend to only use a couple, and I rarely install other apps if not to creep the design UX etc Feb 21 18:10:35 architecting an app is hard :/ Feb 21 18:10:45 ideas are cheap, implementation's hard Feb 21 18:10:45 haven't written much code yet, trying to figure out what to write Feb 21 18:10:57 so I don't code myself into a corner Feb 21 18:11:09 look into the mvp pattern Feb 21 18:11:25 well android uses that behind the scenes, no? Feb 21 18:11:36 there are libraries that make architecture easy tbh Feb 21 18:11:52 Activities are like the controller, Views are views and so on Feb 21 18:12:09 jvrodrigues: like which? Feb 21 18:12:26 I'm not sure if a library is the answer but I'm open to it Feb 21 18:12:36 https://android-arsenal.com/tag/163 Feb 21 18:22:22 I still don't know what mvp is, beh Feb 21 18:29:13 I think I've only seen one of the apps I've worked on use mvp Feb 21 18:29:38 didn't even work on it, heh Feb 21 18:30:04 And that’s why people normally go to uni to study things and learn to do them properly ;P Feb 21 18:30:31 I just tried to steal some code out of it to add a similar feature into an app I was working on Feb 21 18:30:57 tbh I replaced another dev on this app we're working on and he was using MVP Feb 21 18:31:00 I never looked back Feb 21 18:31:27 turns out their implementation was too tightly coupled, wrote up something using coordinatorlayout instead Feb 21 18:36:10 justjanne: that statement is wrong on many levels. Feb 21 18:36:27 the best devs I ever worked with never went to uni Feb 21 18:36:45 jvrodrigues: then I don’t want to see their code. Feb 21 18:36:55 every time I’ve worked with a dev without formal education, Feb 21 18:37:05 they ended up implementing half of their database layer in their app, Feb 21 18:37:14 or ended up with tight coupling between UI and backend, Feb 21 18:37:35 or ended up writing code that was hundreds of times slower than the best possible solution. Feb 21 18:37:40 Ive seen devs that went to uni do much, much worse Feb 21 18:38:25 How many times I’ve seen people not understand weak references, or iterate through a set to find an element with a specific property, Feb 21 18:38:28 either the dev is good or he isnt, uni doesnt usually affect that Feb 21 18:38:29 it’s impossible to count. Feb 21 18:38:45 jvrodrigues: uni teaches you a LOT of things that are otherwise almost impossible to find. Feb 21 18:39:01 I have a masters and dont feel it thought me that much tbh Feb 21 18:39:20 you really are just being an elitist jerk Feb 21 18:39:22 That is more a bad sign for your uni than for anything ;P Feb 21 18:40:00 I’m not saying you should go to uni, but just download the books and lectures from a university’s webpage, they’re usually available for free, and the best teaching material usually existing on these topics. Feb 21 18:41:57 jvrodrigues, generally agree Feb 21 18:43:43 justjanne: thats the thing, being a good dev means you're curious enough to learn shit without having it force fed to you Feb 21 18:43:50 with or without uni Feb 21 18:44:11 jvrodrigues: university is about not being force fed anything – you have one exam per class per semester, and everything else is optional. Feb 21 18:44:26 uni is about providing people with teaching material - you can choose how to learn, or when. Feb 21 18:44:58 The problem is that learning UNI stuff is hard. Feb 21 18:45:12 And here we regularly get monkeys who won't do simple things because there's no library for it. Feb 21 18:45:25 How do you think they'll go and try to understand how basic datastructures work? Feb 21 18:46:48 Mavrik straw man; many reasons why monkeys might not want to maintain more code Feb 21 18:46:59 Mavrik: good argument, though. Feb 21 18:47:17 g00s_, "it's hard" is common enough. Feb 21 18:47:38 if people can’t understand concepts like binary search, or why and how a hashmap on objects that all return the same hashcode is bad, then they’ll have a hard time working with any more complex things. Feb 21 18:47:44 God forbid anyone actually trying to read AOSP source a bit. Feb 21 18:47:51 I’ll probably see that stuff tomorrow :D Feb 21 18:48:09 justjanne, well you just wait for Google to implement a library and then copy paste code. Feb 21 18:48:26 If anything is missing then whine that Google should "make it easy" and build it for you. Feb 21 18:48:30 Mavrik: well, no. I usually write quite a bunch of libraries myself, Feb 21 18:48:57 but there are cases that are so common that I am raging because the suggested solution is to "just copy from the google IO app" Feb 21 18:49:30 :) Feb 21 18:49:34 Tomorrow’s the start of the first project we have to do at uni where we develop a complex client/server application with SPA for the web and Android app as frontend. 1.5 months time, 5 days a week, 8h a day, 8 people per team. Feb 21 18:49:36 Gonan be fun. Feb 21 18:49:39 *Gonna Feb 21 18:49:48 ah Feb 21 18:49:56 you're still in uni Feb 21 18:49:58 Yup. Feb 21 18:50:00 gotcha ;) Feb 21 18:51:00 like peter norvig said, takes 20 years to learn programming. so out of uni you have maybe 4 down :) Feb 21 18:51:13 * g00s_ shudders to think of pascal he wrote in uni Feb 21 18:51:18 well, I did simple programming already as child, Feb 21 18:51:26 * Chainfire shudders to think of pascal he wrote after uni Feb 21 18:51:41 * Mavrik shudders to think of code he wrote the previous year. Feb 21 18:51:42 Ah, yeah. Anyone remember Turbo Delphi? Feb 21 18:51:50 there is no such thing Feb 21 18:51:52 Hmm, never used that. Just Turbo Pastal. Feb 21 18:51:55 Turbo Pascal maybe :P Feb 21 18:51:55 *Pascal Feb 21 18:51:59 As a kid that was fun, but painful. Feb 21 18:52:58 Also, code written at uni usually is a lot more clean than real code. Realized that when I had to work on real code, and it was... soooo hacky. Feb 21 18:53:23 meh. Object Pascal, for a native language, is not all that bad Feb 21 18:53:57 i have a fragment containing recyclerView + fab, can I use for that or do I have to put in a FrameLayout; fragment is already being attached to FL, kinda lame Feb 21 18:54:44 oh maybe attachRoot has to be true Feb 21 18:54:55 At uni you see perfectly clean code with neat organization and anything, in reality you see deprecated APIs used everywhere, then you have three different event systems, the backend directly modifying the UI, etc. Feb 21 18:54:58 ah fragments. trial and error until they work Feb 21 18:55:12 justjanne, eh, that depends Feb 21 18:55:21 justjanne, I've seen people be taught the worst code ever Feb 21 18:55:34 and most academics write code that should be against Geneva convetions. Feb 21 18:55:39 lol. Feb 21 18:55:42 Math people do. Feb 21 18:55:55 not Software Engineering people ;P Feb 21 18:56:17 Didn't see much difference. Feb 21 18:56:37 But that's mostly because there's no incentive to write maintainable code. Feb 21 18:57:12 pride in doing a good job? it's not as big an incentive as get it done, get paid, next, though Feb 21 18:57:19 Well, we have to be able to fully explain and present every piece of code we ever wrote, and be able to explain what it does. At uni. Feb 21 18:57:25 So people end up writing better code. Feb 21 18:57:47 One prof also told the story of a european online retailer which found a solution to make their devs write maintainable code: Feb 21 18:57:55 Chainfire, that doesn't last long when you're racing for grant deadlines and noone cares and you don't have to touch it ever again :P Feb 21 18:58:08 Every duplicated line of code has to be refactored into a library, every library has to end up under MIT or BSD on GitHub Feb 21 18:58:14 Mavrik exactly, getting it done and moving on is a bigger incentive at that point Feb 21 18:58:39 I mean I know of a research lab that still uses USB sticks with ZIP files as C version control. Feb 21 18:58:51 nice Feb 21 18:59:12 well, my uni requires you to either use SVN or their gitlab server. Any code outside of that is considered nonexistent. Feb 21 18:59:23 I mean, there are simple solutions do these things. Feb 21 18:59:26 Chainfire, the fun part is that they have GitHub account Feb 21 18:59:29 but they refuse to use it. Feb 21 18:59:36 Mavrik: that is indeed weird. Feb 21 18:59:41 And they stopped using it when the code started being reviewed. Feb 21 18:59:55 So to avoid PR reviews they just give USB sticks to each other. Feb 21 19:00:08 hah Feb 21 19:00:25 well, as a one-man-shop, I just +2 all the code I submit Feb 21 19:00:32 oh hey, Chainfire is here! Feb 21 19:00:47 sometimes leave a commit patting myself on the back, etc Feb 21 19:00:51 *comment Feb 21 19:00:55 lol Feb 21 19:00:58 lo; Feb 21 19:01:00 lol* Feb 21 19:01:28 "//very good job man, this piece of code is impressive" Feb 21 19:01:37 I feel you Feb 21 19:01:38 lmao Feb 21 19:01:49 i should start doing that lol Feb 21 19:02:14 well having decent code review is something I miss Feb 21 19:02:36 well, Chainfire, if you can still read it in one year, it’s probably okay ;P Feb 21 19:02:56 thats not really fair justjanne, I can still read code I wrote many years ago Feb 21 19:03:04 doesn't make it less spaghetti to anyone else :P Feb 21 19:03:21 :D Feb 21 19:03:23 a lot of my android code is "wtf am i doing that for, the framework should do that .. oh, its broken" Feb 21 19:03:31 also you know you've been drinking too much if you actually learn something from your old code Feb 21 19:03:39 g00s_: I then end up wrapping the framework again. Feb 21 19:03:59 Or put it into the "de.kuschku.util.hacks" package. Feb 21 19:04:14 Chainfire, just having one person read and go "why did you do that?" avoids bunch of stuff Feb 21 19:04:38 Which currently contains hacks to get proper TLS on pre-kitkat, or to open sockets on Chrome OS (no keepalive T_T), or to handle status bar colors without crashing the OS on SAMSUNG devices, etc) Feb 21 19:05:40 Obviously, with full explanation why it’s used, where it’s used, what it does, what it replaces, etc. Feb 21 19:05:44 We usually document those and cleanly separate the code. Feb 21 19:05:53 Yeah, that’s the best solution. Feb 21 19:06:06 does it ever make sense to have a CoordinatorLayout somewhere in a hierarchy that has another CoordinatorLayout higher up ? one of my fragment requires CoordinatorLayout kind of behavior; i can assume its 'up there somewhere' or make it the root of the fragment's view. otoh don't even know if that will cause more problems Feb 21 19:07:22 g00s_, that sounds like a recipe for headache. Feb 21 19:07:31 ok so one then ? Feb 21 19:07:50 Mavrik true, but unfortunately the last two times I worked at a place we did code review, I was by far the most experienced. so "because thats how you that" becomes a common answer Feb 21 19:08:05 as they say, I've mostly been in the wrong room Feb 21 19:08:08 some stuff like AppBarLayout assumes its parent is CL. i think the whole system is kinda shitty with lots of assumptions, magic, and spooky action Feb 21 19:11:17 Hello, can you help me debugging a small visual feature? I'm using CM13 (Nexus5,hammerhead) rooted with SuperSU and i use (with Xposed) the Module "Zeus Contextual Statusbar" to enable show images in my statusbar header.. My point is: it isn't showing the images by the Module but other images based on my current weather. I use aLogCat to check the Feb 21 19:11:17 logs while expanding the statusbar / closing it; it shows E/Zeus_SystemUI( 999): setFrame, Called etc. Feb 21 19:11:36 Can i somehow find out which application sets the weather based headers? Feb 21 19:12:00 from my understanding the module fails to update its own images Feb 21 19:12:03 CM13 ... xposed ... you're in the wrong channel Feb 21 19:12:16 Where should i ask? Feb 21 19:12:56 try #android-root Feb 21 19:13:05 okay... Feb 21 19:20:02 Chainfire we finally got promo codes, maybe next year grandfather users from paid to IAP :D Feb 21 19:22:00 fat chance Feb 21 19:27:07 IFTTT integration through the make channel is pretty damn easy; lots of fun too Feb 21 19:27:24 wish there was more than value1, 2, and 3 though but oh well Feb 21 20:02:34 And maybe by 2020 something became out of my formal complaint, and we’re at least allowed to tell users that other stores exist. Feb 21 20:02:43 maybe even allow people to pay through other channels. Feb 21 20:03:48 and then, maybe by 2025, we can use non-GCM notifications again. Feb 21 20:05:51 doubt we'll be using 4" rectangles in 2025 Feb 21 20:06:36 but yeah, i guess whatever replaces it, they have their walled gardens ... Feb 21 20:07:52 it's only in 10 years Feb 21 20:38:36 How do I get the screen size and width with code? Feb 21 20:50:32 Hey. I'm encountering a weird bug with my code, where a listview only gets populated after the second time the fragment is loaded Feb 21 20:50:34 http://pastebin.com/4ZL2xM0z Feb 21 20:50:49 I've been banging my head against it for hours Feb 21 21:00:24 Fenaer, On line #18 Feb 21 21:00:45 you are assigning the variable to another, but the data in the Adapter is not changing Feb 21 21:00:49 instead of assigning Feb 21 21:00:52 try to just Feb 21 21:01:00 recipeArray.clear() Feb 21 21:01:14 recipeArray.addAll(response) Feb 21 21:01:29 and then call notifyDataSetChanged Feb 21 21:02:19 Well hot damn. That works. Feb 21 21:02:25 Why was that I wonder? Feb 21 21:05:27 how can i control the progress of an animation, like 1%, 30% 100%. push it forward instead of setting a duration Feb 21 21:17:46 Hi guys. I have a ViewPager with a few fragments in it (derived from some basic frgament class). Upon some Toolbar menu item click, I have to notify current fragment about this event. With "static" fragments I would just get it with findFragmentById() and call some public method in it, but how do I do that with dynamically creted fragments in ViewPager? Feb 21 21:40:04 so I'm trying to test something by setting the date on the android emulator to some point in the future Feb 21 21:40:11 but it keeps getting reset to the current date and time Feb 21 21:40:23 (and yes I do have network time disabled) Feb 21 21:40:47 this happens if I set the time with the settings UI or if I shell in and use the date command line utility Feb 21 21:40:58 does any one know what's going on? Feb 21 21:41:22 interestingly if I disable the 3G emulation changes to the date and time stick Feb 21 21:41:31 but then I can't access the network, and I need to Feb 21 21:50:34 watching this Android Dev Summit about Android Application Architecture Feb 21 21:50:50 these are great ideas... Feb 21 21:50:58 I wish they got more into the implementation Feb 21 21:53:56 RustyShackleford yeah, i guess - you always wonder if the googlers in their apps are inventing their own libs to handle everything, or using 3rd party libraries , or whatever Feb 21 21:54:16 or just doing it 'the way its always been done' which is spaghetti :) Feb 21 21:54:33 and tons of state and crap in activities. fragments, etc Feb 21 21:55:04 yeah they say to cache all your view data, show the user old data while fetching the fresh data Feb 21 21:55:18 but uhh.. how is that cache implemented? Feb 21 21:55:47 at some point i've got to just start coding. Trying to lay out the scaffolding so it all goes smoothly hah Feb 21 21:55:50 'exercise left to reader' Feb 21 21:55:53 pick any method you choose Feb 21 21:56:06 basics don't belong in those kind of things Feb 21 21:56:07 remember how they said about FAB that we weren't getting a lib because it was trivial to implement Feb 21 21:56:29 pfn: sorry i'm not following. What do you mean? Feb 21 21:56:33 haha yeah i remember that Chainfire Feb 21 21:56:34 and then the next year there were dozens of different FAB libs all working slightly different Feb 21 21:56:46 trivial to implement for v21 Feb 21 21:57:00 "its just a circle..." Feb 21 21:57:00 ah yes, but compat Feb 21 21:57:26 Chainfire, not sure why that is a problem. Feb 21 21:57:46 what part? Feb 21 21:57:56 Having more than one FAB lib Feb 21 21:58:45 Bah Feb 21 21:58:47 the problem is that those libs were all built by whomever instead of Google, they all worked/looked ever so slightly differently, and if Google is presenting it as a common control / pattern / whatnot they should dang well provide the code for it Feb 21 21:58:52 God I hate talks from people who can't speak english well Feb 21 21:59:29 Chainfire, honestly I'm unhappy that they did Feb 21 21:59:31 quit whining Mavrik Feb 21 21:59:39 Making people implement the FAB was a great interview filter. Feb 21 21:59:39 :'__] Feb 21 21:59:55 You quickly make incompetent people go away. Feb 21 22:00:05 Mavrik google should have left ALL the controls up to 3rd parties :) Feb 21 22:00:23 g00s_, they'd be less buggy for sure :P Feb 21 22:00:28 they manage to provide bug with their FAB implementation anyway Feb 21 22:00:29 lol Feb 21 22:00:35 g00s_, at least for 3rd party shit I can do a PR Feb 21 22:00:43 Modifying Google libs is annoying as fuck Feb 21 22:00:49 well, that is true Feb 21 22:00:58 especially when they put "private" inside class you would extend! Feb 21 22:01:11 google makes too many things private and final Feb 21 22:01:38 Yeah, they're wasting time implementing circles for crappy developers. Feb 21 22:01:40 so i ended up copying 4 or 5 classes last time because of that Feb 21 22:01:50 Instead of focusing on providing a consistent powerful API for good apps. Feb 21 22:02:04 Best apps aren't built by people who can't put a view in a corner. Feb 21 22:02:18 At least Apple gets that part right. Feb 21 22:03:31 its not about putting a view in a corner, its about consistency Feb 21 22:03:38 * Chainfire gives up Feb 21 22:03:51 Chainfire i agree, you want standardized look & feel for stuff Feb 21 22:04:18 can't see how anyone would disagree with that .. lo Feb 21 22:04:28 Noone is disagreeing with that. Feb 21 22:04:52 didn't you just say they're wasting time implementing circles for crappy developers? :) Feb 21 22:04:53 But you also don't use default implementations in apps worth a damn so those views aren't useful Feb 21 22:05:03 And are just a waste of effort. Feb 21 22:05:18 While APIs that could let people do really iOS equivalent apps actually rot. Feb 21 22:05:32 While google chases incompetent devs with hello world apps. Feb 21 22:05:46 such as ? Feb 21 22:06:00 MediaCodec Feb 21 22:06:12 whole renderscript and acceleration API Feb 21 22:06:21 any kind of View framebuffer effects Feb 21 22:06:33 working encryption APIs Feb 21 22:06:47 Anything that really does anything with hardware. Feb 21 22:06:52 maybe they will get the BLE stuff working better someday too ;) Feb 21 22:06:55 this is better on iOS ? Feb 21 22:07:16 audio too is better Feb 21 22:07:38 I had the damndest time getting video to render into a texture to re-render in a scene in GL on iOS and it took me hardly any effort on Android. Feb 21 22:07:42 Yep, pretty much all of those are better on iOS. Feb 21 22:07:44 but I admit, I'm a complete noob at iOS Feb 21 22:07:53 And they actually work consistently. Feb 21 22:08:00 Chainfire using swift ? Feb 21 22:08:01 Which is something Google developers don't get. Feb 21 22:08:12 An API that will work well only on a Nexus is not useful. Feb 21 22:08:15 Mavrik: not hard to do when you control the wole platform Feb 21 22:08:21 no using ObjC Feb 21 22:08:25 p_l, has nothing to do with platform contorl Feb 21 22:08:27 well C++ with some glue really Feb 21 22:08:49 p_l, having shit in there like MediaCodec giving you frames decoded in SoC dependant pixel format is just crap coding Feb 21 22:09:07 (with, of course, no ability to convert or even detect what did you get) Feb 21 22:09:30 well, i think their strategy seems to be massive adoption from a large base of beginners (cf cheesy youtube video & code samples hello-world-like) Feb 21 22:10:05 Also having devices that don't support RSA with PBKDF#7 is just shameful. Feb 21 22:10:16 Anyway. Feb 21 22:10:21 Enough ranting. Feb 21 22:10:24 :)) Feb 21 22:10:32 Who needs help at drawing red circles in a corner. Feb 21 22:10:41 me me Feb 21 22:10:51 Chainfire, go bugger yourself with a hot poker! Feb 21 22:11:26 buggery is not acceptable in public, I was always taught Feb 21 22:11:27 even chris banes needed a few iterations to gat that red circle working :P Feb 21 22:11:45 samsung fault probably Feb 21 22:12:33 Also Samsung showed S7 and LG showed G5 Feb 21 22:12:43 Meet your next never-updated broken devices :P Feb 21 22:13:19 LG device has slide out battery .. Feb 21 22:14:00 hopefully this year at I/O we'll here more about ARA , or whatever they call it now Feb 21 22:14:18 i guess they moved away from magnetic coupling Feb 21 22:16:04 Mavrik I just got 6.0 to my G4.. not so bad I think Feb 21 23:18:13 is there some way to have Android Studio just annotate everything possible with @NonNull? Feb 21 23:29:05 hey all Feb 21 23:29:37 so when I was in here earlier and tried to find a replacement app for AIDE I couldn't Feb 21 23:29:40 wasted hours Feb 21 23:38:08 Is there a way to add the solution in this stack overflow post to Android Studio? http://stackoverflow.com/a/30739187 Feb 21 23:53:25 do you use EventBus? Feb 22 00:25:44 Are fragments appropriate for this use case? The user is picking a train stop and recieving predictions: route -> stop -> arrival predictions Feb 22 00:26:07 so I'd make a fragment for each. Between each transition there is a network call Feb 22 00:31:34 sure why not Feb 22 00:36:50 https://youtu.be/BlkJzgjzL0c?t=6m17s Feb 22 00:37:11 I'm wondering how they implement this pattern Feb 22 00:37:19 do I need like an event library for this? Feb 22 00:39:59 RustyShackleford I'd look at https://github.com/ribot/android-boilerplate if you want some help getting started Feb 22 00:40:23 there's also https://github.com/ribot/ribot-app-android which is a bit more fleshed out Feb 22 00:41:25 it's not exactly the same as in the google example, but anyway I think if you don't know how to start it's better to follow clear examples Feb 22 00:42:51 that looks pretty good, yeah Feb 22 00:43:57 is the google example also mvp? Feb 22 00:44:33 some variation of it Feb 22 00:44:37 it's all a bit fuzzy you know Feb 22 00:44:58 I think the most important thing is to separate your view/ui from the rest of the logic Feb 22 00:45:03 and make it testable Feb 22 00:45:07 nobody does MVC exactly the same way hah Feb 22 00:45:25 yeah I need to figure out testing as well Feb 22 00:45:52 in the end I want to do a lot more, but I'm trying to fit all the pieces together ahead of time Feb 22 00:46:28 I needed to re-write big parts of a project recently and followed the ribot examples and it's worked out well for me Feb 22 00:46:54 they have tests as well Feb 22 00:47:01 Butterknife also looks awesome Feb 22 00:47:59 What exactly does RxJava do? Feb 22 00:48:33 lol Feb 22 00:49:24 took me half a year of reading blog posts and tutorials to figure it out, heh... when it clicked I was running circles Feb 22 00:49:52 sounds like you're pretty new to all of this, I would just get started on anything at all, you learn the most by failing anyway Feb 22 00:50:03 do use all of these libraries? Feb 22 00:50:32 Well I've written some crappy android apps. Feb 22 00:51:01 I landed a position as an android developer. I'm trying to become like, a professional Feb 22 00:51:31 ;) Feb 22 00:51:55 if you're being paid, I think that's the most basic criteria Feb 22 00:51:57 congrats Feb 22 00:52:39 technically i'm a professional Feb 22 00:52:58 I don't feel that way yet hah. Holy crap though 4 months in and i've learned a ton Feb 22 00:55:49 where do you live? Feb 22 00:55:59 chicago, hbu? Feb 22 00:56:19 Stockholm/Sweden Feb 22 01:01:08 what library should i use fore http requests Feb 22 01:02:12 okhttp Feb 22 01:02:31 know of any good resources for rxjava? Feb 22 01:04:09 just code something up Feb 22 01:04:11 using it Feb 22 01:04:17 get through the pain Feb 22 01:08:09 the pain will make you stronger Feb 22 01:08:47 the ribot example project I linked earlier uses rjava for it's architecture Feb 22 01:08:56 rxjava* Feb 22 01:16:59 Anyone familiar with Android Weekly.net? I was wondering if there's any easy way to search all of their email or whatever. I'm just trying to gather a bunch of resources on MVP, and Android Weekly probably has quite a few. Feb 22 01:34:01 anyone ever came across the issue of trying to view the data folder on your android device, i'm havin trouble viewing mine, i found an apparent solution online, cannot get the last step to work though Feb 22 01:34:10 http://stackoverflow.com/questions/4867379/android-eclipse-ddms-cant-access-data-data-on-phone-to-pull-files Feb 22 01:34:44 can someone take a look at the person who is the top replier, step no.5 doesn't seem to want to work for me Feb 22 01:45:22 JitanRo: I still don't understand what dagger is used for here either Feb 22 01:46:04 Dependency injection Feb 22 01:46:31 instead of passing a reference to some thing you need Feb 22 01:46:39 you use dagger to "inject" it Feb 22 01:48:29 maguire these are my notes from a while back for what it's worth: https://gist.github.com/Jitan/1b87542d8dedd1bd1618 Feb 22 01:49:04 so you could do the same thing, give a reference as a parameter wherever you need it Feb 22 01:49:08 Dagger just makes it easier Feb 22 01:49:23 yes Feb 22 01:50:59 this is a scary number of libraries hah Feb 22 01:55:09 this project is an awesome template though, thanks again Feb 22 01:56:11 :+1: Feb 22 02:07:35 JakeWharton: how long have you been doing android development? Feb 22 02:11:25 like do you write all of these libraries yourself? How much free time do you have? Feb 22 02:16:09 since the M3 preview SDK Feb 22 02:16:33 sometime in late 2007 Feb 22 02:17:44 whats you secret? Lots of coffee I bet Feb 22 02:17:53 never had coffee Feb 22 02:20:34 there's no secret Feb 22 02:28:04 if he told us, it wouldn't be a secret anymore... Feb 22 02:31:00 No secret. It's all there. JakeWharton has just spent more time there. Feb 22 02:31:17 Anyone familiar with Android Weekly.net? I was wondering if there's any easy way to search all of their email or whatever. I'm just trying to gather a bunch of resources on MVP, and Android Weekly probably has quite a few. Feb 22 02:32:15 well your mail client should allow that Feb 22 02:32:27 but recently, i'm more and more disappointed of the content of their newsletter Feb 22 02:33:31 adq yeah but maybe just a reflection of the climate, they just report stuff Feb 22 02:33:46 * cheesy * stuff Feb 22 02:33:57 what is there after MVP ? Feb 22 02:34:07 ;) Feb 22 02:34:42 adq: I don't have all of the ANdroid Weekly newsletters. I just signed up. If you have more history and want to take a gander for me though... I'd appreciate it! Feb 22 02:35:31 eghdk, http://androidweekly.net/archive Feb 22 02:36:08 No way to search all of them in the archive though right? Just gotta do it one by one? Feb 22 02:36:40 on the rss flux, you can ctrl-f "mvp" for example Feb 22 02:37:05 or use a google query like: site:androidweekly.net/ mvp Feb 22 02:37:37 you will see most issue listed, you could add other keywords to restrict or enlarge the search Feb 22 02:39:07 adq have you used any of the graph view libraries ? Feb 22 02:39:23 looking for something that handles time domain data Feb 22 02:40:01 i only tried the demo of williamchart year(s) ago Feb 22 02:40:20 prior to that i was sending a query to graph google and retrieving the pic, but the services died iirc Feb 22 02:40:40 ha, thats one way to do it Feb 22 02:40:52 you could plot it yourself maybe :) Feb 22 02:41:21 you just need to deal with downsampling, lowpassing and nyquist limit if you plan to zoom out a lot Feb 22 02:41:44 and upsampling if you zoom in a lot Feb 22 02:45:09 thanks adq **** ENDING LOGGING AT Mon Feb 22 02:59:58 2016