**** BEGIN LOGGING AT Sat Apr 16 02:59:58 2016 Apr 16 03:02:38 Ping_2_Ur_Pong: overtime eh? Apr 16 03:03:04 thats a different story haha Apr 16 03:06:17 I want a standing desk Apr 16 03:06:31 I stand as much as I can at work Apr 16 04:07:30 this is pretty interesting. in google Keep, in many places, there are actually 2 fragments where one is expected: the actual content (meat) and a decorator with AppBarLayout, CoordinatorLayout, etc Apr 16 04:07:52 i guess that lets you use the content fragment alone in other places Apr 16 04:08:23 interesting also, the content fragments are child fragments of the decorator; and even defined as tags, not dynamically added using FrameLayout Apr 16 04:09:06 seems pretty neat, wonder why i've never seen this done before Apr 16 04:09:54 is there a tool to annotate sources with values from public.xml from apktool ? Apr 16 04:10:17 kinda sucks all the time seeing inflate(2987837836, ...) Apr 16 04:11:11 now i wonder what getParentFragement() in the content fragment will return: the real parent, or null Apr 16 04:11:15 for science! Apr 16 05:47:51 friggity fuck data binding is nice Apr 16 05:47:59 wtf are people using dagger for still? Apr 16 05:48:34 anyone awake? Apr 16 05:50:41 hello Apr 16 05:51:11 Ping_2_Ur_Pong: dagger? Apr 16 05:52:22 The two aren't related Apr 16 05:52:32 So people are using Dagger for what it's meant for Apr 16 05:52:44 And people are using data binding for what it's meant for Apr 16 05:53:03 http://square.github.io/dagger/ Apr 16 05:53:14 JakeWharton: please explain the difference Apr 16 05:53:17 No Apr 16 05:53:26 then fuck you for not being helpful Apr 16 05:53:28 happy Caturday Apr 16 05:53:44 Fuck you for not understanding the difference and using Google to figure it out Apr 16 05:54:07 I'm not here to help you Apr 16 05:54:13 lulz Apr 16 05:54:34 I'm here to prevent your clear lack of knowledge from infecting this channel Apr 16 05:55:18 You answer a question, but don't answer the question. That's like a woman pulling out her tits and when you ask her to fuck she says, I was just showing them to you to prevent you from infecting the channel with your lack of tits. Apr 16 05:55:38 Maybe it was a man Apr 16 05:55:46 touche Apr 16 05:55:52 wait, don't guys have tits? Apr 16 05:55:59 You clearly can't tell the difference between data binding and dependency injection so my faith in your ability to discern gender is low. Apr 16 05:56:10 * Ping_2_Ur_Pong ponders the deep intricacies of whats defined as a tit. Apr 16 05:56:49 * Ping_2_Ur_Pong honks JakeWharton's boob. Yea that's probably defined as a tit. Apr 16 05:59:05 JakeWharton: the problem with not answering the question isn't actually about me. Its about spreading knowledge so that everyone has a greater understanding of the fundamentals and various mechanisms. While you might not be here to help me, helping everyone is clearly your desire and answering the question would have done that. Apr 16 05:59:13 * Ping_2_Ur_Pong googles and comes back later to argue. Apr 16 06:06:51 you asked three questions and I answered the most important one already. as to the others, yes I'm awake and yes some guys probably have what can be classified as tits Apr 16 06:07:55 https://www.youtube.com/watch?v=NBbeQMOcnZ0 Apr 16 06:08:08 anyone mess with NFC tags, tasker, and/or google cardboard? I'm trying to set up a bit of a complex little script that works with all three. Apr 16 06:08:08 for anyone interested in getting a look at databinding Apr 16 06:08:18 Oh, and is it a problem to have a phone sit on an NFC tag for a prolonged period? I want to set up the tag on the inside of my headset, so that it automatically changes several settings, and I don't know if it needs to be momentary or if it's okay that it's not. Apr 16 06:10:07 * ron_frown karate kicks JakeWharton Apr 16 06:10:30 crane kick bitch! Apr 16 06:11:23 so has there been any other news about potential of google going with swift Apr 16 06:11:32 or was someone trolling Apr 16 06:11:48 ron_frown: I saw something on android-weekly mailing list Apr 16 06:12:06 http://www.ssaurel.com/blog/google-is-thinking-to-add-swift-support-on-android-dont-forget-kotlin/?utm_source=androiddevdigest Apr 16 06:13:18 when I dug into that it almost seemed like the swift thing was someone reading way further into something than they should have Apr 16 06:13:30 Of course it is Apr 16 06:15:05 The original The Next Web article that first reported it was hilarious Apr 16 06:15:21 yeah it was a in passing someone tinkered with it in ndk Apr 16 06:15:23 or somethign iirc Apr 16 06:15:35 I have to hope google is attempting to work on SOMETHING Apr 16 06:15:41 Tons of factually incorrect things that any half competent engineer would dismiss immediately were it fact checked. Apr 16 06:15:53 honestly swift doesnt really do anything for me Apr 16 06:21:09 well, swift becoming first class practically means anything native would become first clasx Apr 16 06:21:29 which would be kind of awesome Apr 16 06:22:09 http://thenextweb.com/dd/2016/04/15/3d-touch-android-n/ Apr 16 06:23:30 "A developer has spoofed the functionality, giving us a preview of what Google may be thinking." Apr 16 06:23:38 Lol'd so hard Apr 16 06:24:32 At least they're consistent with the level of their hard-hitting facts Apr 16 06:25:48 I have both android and iphone Apr 16 06:25:54 the 3d touch shit Apr 16 06:25:59 meh Apr 16 06:26:11 thats one thing I hope phone mfg dotn spend too much trying to make that happen Apr 16 06:26:16 because it seemed kinda pointless Apr 16 06:27:21 Please. It'll be in the next TouchWiz... You know it Apr 16 06:27:27 oh yeah Apr 16 06:27:46 I made the mistake of going from a lg to a samsung Apr 16 06:27:51 Agree otherwise. Don't want it in the platform Apr 16 06:27:53 that was a mistake Apr 16 06:28:05 lg is bad, samsung is almost just worse Apr 16 06:28:15 isn't 3d Touch, as they're showing it, a basic feature of Nova Launcher? Apr 16 06:28:24 lets never release os upgrades, and if/when we do, lets make them bad Apr 16 06:28:38 my note5 is straight up dissapointing batterylife Apr 16 06:28:56 literally 0 gain from the move to new android Apr 16 06:29:00 6.0.1 Apr 16 06:29:11 That's unfortunate Apr 16 06:30:12 honestly I just wish there was a 3rd REASONABLE os Apr 16 06:30:21 because I've been so over android Apr 16 06:30:31 my iphone lasts forever on a charge Apr 16 06:30:39 but the os sucks there too Apr 16 06:35:15 didn't mozilla come up with a phone os? Apr 16 06:37:55 Or there was that one that used to be Palm OS that HP bought up, then dumped on Apr 16 06:39:30 Or there's Pen and Paper OS.. Apr 16 06:39:39 really slow, but the resolution is amazing. Apr 16 06:43:32 webos, I actually participated in high up way the fuck back when Apr 16 06:43:39 mozilla shit is blah Apr 16 06:44:03 honestly ms tech stack is impressive and tooling is great, but the os... sucks some how Apr 16 06:44:14 haven't mozilla officially abandoned firefoxOS for phones? Apr 16 06:45:32 Leeds, that would be the smart thing. Apr 16 06:46:22 Leeds, but no https://www.mozilla.org/en-US/firefox/os/ Apr 16 06:46:37 but yes Apr 16 06:46:40 https://blog.mozilla.org/blog/2015/12/09/firefox-os-pivot-to-connected-devices/ Apr 16 06:46:52 "topping our work to build and ship smartphones" Apr 16 06:46:59 er, "stopping" :) Apr 16 06:48:21 that's just the building of the phones... they're still developing the OS. you can actually download an app that will run the OS, or download an entire rom to flash to your phone. Apr 16 06:48:41 I may throw it on my old LG G2X if I can find out if it works or not. Apr 16 08:55:33 Hello. why every time i open new project, once i run the app, activities design (phone) is grey with text "android...Coordinatorlayout" ? Apr 16 09:19:34 Does anybody know how Android Studio 2 works in depth? I'm getting an odd error and googling has yielded little to no help so I thought I'd consult IRC. Apr 16 09:20:38 http://i.snag.gy/xScQJ.jpg Apr 16 09:21:20 this is with a fresh install of oracle jdk/jre 7, android studio, and linux mint. Apr 16 09:21:46 and this error occurs after pressing "Finish" on a new project wizard. Apr 16 09:42:52 Are you migrating or creating a project from scratch? Apr 16 09:43:03 creating from scratch Apr 16 09:46:42 stable or beta? Apr 16 09:47:19 I assume stable; I just downloaded it from http://developer.android.com/sdk/index.html Apr 16 09:47:48 I mean it isn't explicitly labeled or anything, but non-stable things usually are. Apr 16 09:47:49 Have you installed the sdk? Apr 16 09:48:10 yes, it's had me install API 24, iirc. Apr 16 09:48:49 You can file a bug here http://tools.android.com/filing-bugs Apr 16 09:49:48 ah, alright. Thank you! :) Apr 16 10:00:02 https://code.google.com/p/android/issues/detail?id=207132 Apr 16 10:00:21 Thank you again for your time, barq. Apr 16 10:01:40 Thanks for submitting the bug Apr 16 10:57:27 I'm writing to sharedprefs on one activity, reading from them on another, but on the one I read from, I always get the default value, any idea? Apr 16 11:03:18 Either you have different SharedPreferences objects, or you're not committing your changes Apr 16 11:50:10 Just curious, does anyone use vim bindings in android studio? :D Apr 16 12:26:43 How do I make the app icon appear on the action bar ? by the name. Apr 16 12:27:15 Wait this is called a toolbar. Apr 16 12:49:41 I am getting my icon displayed on the toolbar with getSupportActionBar().setIcon but why is it not right to the left ? Apr 16 12:50:36 setlogo Apr 16 12:54:48 Hello guys and girls! Can someone help me to build android apk only in CLI Apr 16 12:55:06 I don't want to use studio Apr 16 12:55:11 muthu, I just tried setlogo the icon still appears away from the left. Apr 16 12:55:40 set showtitle false Apr 16 12:58:28 muthu, now the title is just gone and the icon is still appearing away from the left, like there is some kind of margin doing this ? Apr 16 12:59:32 Hello guys and girls! Can someone help me to build android apk only in CLI Apr 16 12:59:38 title false, logo enabled true Apr 16 12:59:41 that should be it Apr 16 12:59:42 I don't want to use studio Apr 16 13:01:20 SKYRAN: http://developer.android.com/tools/building/building-cmdline.html Apr 16 13:05:22 well it keep displaying not in the left corner. Apr 16 13:11:04 Leeds: Thanks for respond. But it don't work for me. The project don't have gradlew. More than that the Doc don't say how to config android SDK in order to use gradle Apr 16 13:14:35 Leeds: Any comments? Apr 16 13:19:49 try harder... Apr 16 13:20:20 http://tools.android.com/tech-docs/new-build-system/user-guide shows how a gradle project should look Apr 16 13:20:34 Leeds: :) Apr 16 13:21:09 SimonVT: thanks Apr 16 13:22:55 SimonVT: much better Apr 16 13:23:07 I was wondering if buying a gtx-980 nvidia will run faster emulator Apr 16 13:23:36 i have one gt-610 Apr 16 13:54:17 hi Apr 16 13:55:18 how can i connect android studio with genymotion Apr 16 13:56:12 are there every body here? Apr 16 13:56:13 help me Apr 16 13:58:49 help Apr 16 13:59:20 hi Apr 16 13:59:35 the new emulator is *so* nice! Apr 16 14:01:13 hi Apr 16 14:01:13 how can i connect android studio with genymotion Apr 16 14:01:13 i installed genymotion Apr 16 14:25:05 anyone shed some light on why some free play apps that do not request internet access are able to display ads? Perhaps the ad's are packaged within with the app? and the dev is being paid per download? Apr 16 14:26:14 or google has some sort of ad circumvent for free apps? Apr 16 14:32:22 are there every body here? Apr 16 14:37:34 nnull: Internet access is not prompted on M afaik Apr 16 14:37:37 See http://www.androidpolice.com/2015/06/06/android-m-will-never-ask-users-for-permission-to-use-the-internet-and-thats-probably-okay/ Apr 16 14:38:09 hi, when I remove my app from the MRU list the service is not properly destroyed Apr 16 14:38:12 any way to fix that? Apr 16 14:38:19 hmm i see tilal6991 thanks for the info Apr 16 14:38:20 or can I make my service persists over that? Apr 16 14:39:29 szt: to persist make it a forground service. Otherwise make the service a bound one so it gets destroyed when your activity does Apr 16 14:39:43 well it's both Apr 16 14:39:49 it's a bound/started one Apr 16 14:40:02 so foreground service.. I will look into that Apr 16 14:40:38 Note that if you make it a foreground service there will be a constant notification displayed to the user Apr 16 14:41:50 yeah I want that anyways Apr 16 14:42:08 right now I'm just creating a notification manually Apr 16 14:42:19 Yes then you definitely want a foreground service Apr 16 14:42:27 so can startForeground be called from within the service? Apr 16 14:42:30 Yes Apr 16 14:42:33 okay great Apr 16 14:42:35 thanks a lot Apr 16 14:42:41 You're welcome :) Apr 16 14:46:50 tilal6991: do I need to still show the notification manually or does it automatically do it? Apr 16 14:47:11 startForeground takes the notification object you wisht o show Apr 16 14:47:15 * wish to Apr 16 14:47:54 wow awesome Apr 16 14:47:57 this works like a charm Apr 16 14:48:00 and exactly how I thought it would Apr 16 15:18:57 'lo Apr 16 15:31:47 Hello Apr 16 15:32:00 I decided to get an idea of Android dev today so I'm not -just- limited to webdev, trying to get the studio going now Apr 16 15:32:21 Hi ThePendulum, glad to see that Apr 16 15:32:27 It's complaining about my ubuntu setup using OpenJDK instead of the Oracle JRE, and I have no idea what to do to make it use the Oracle JRE Apr 16 15:32:30 Here the same Apr 16 15:32:38 So all together I got stuck after 10 seconds :D Apr 16 15:32:55 i was a web dev only and i was making hybrid apps Apr 16 15:33:13 Yeah, I'm almost entirely a JS dev and I feel like that's threading on thin ice Apr 16 15:33:13 i use openjdk anyway Apr 16 15:33:13 but native is so much better Apr 16 15:33:21 There's plenty of work, but that can change any moment Apr 16 15:33:35 *treading Apr 16 15:33:56 ThePendulum: https://www.lynda.com/Android-tutorials/Android-App-Development-Essential-Training/442863-2.html Apr 16 15:34:04 this has help me alot Apr 16 15:34:06 So I'm broadening my horizon now I still have all options open Apr 16 15:34:09 you can search on torrents Apr 16 15:34:31 nice Apr 16 15:34:36 fabiobik: did you have experience with Java beforehand? Apr 16 15:34:38 ThePendulum: do you use mac? Apr 16 15:34:41 I'm on linux Apr 16 15:34:54 Ashiren: experienced any issues? Apr 16 15:35:01 I don't like warnings :P Apr 16 15:35:02 I was using linux like for years Apr 16 15:35:17 I'm curious what drives a lot of people from Linux to Mac Apr 16 15:35:20 im experiencing a mac right now. ive bought on 2 weeks ago Apr 16 15:35:32 I feel like doing that gives you a lot to lose and little to gain Apr 16 15:35:43 its something that i cant describe in 2 words Apr 16 15:35:50 but then again, the last time I've used OS X was back in the Mac Mini tdays Apr 16 15:35:54 its everything so fast and fluid Apr 16 15:36:02 awesome really Apr 16 15:36:10 in MVP design, is the view allowed to have ANY logic? Apr 16 15:36:28 Like just checking if a view is already showing, and acting accordingly? Apr 16 15:36:34 ThePendulum: if a warning was issue, you'd slip over everytime you see "warning! wet floor" Apr 16 15:36:38 ThePendulum: you should give another try really :) Apr 16 15:36:44 if it's anything like in webdev, the only logic it should have should be related directly to displaying items, e.g. iterating through data to show a list of the same items Apr 16 15:36:56 fabiobik: bit of a hefty investment to just get a mac for shits and giggles though :P Apr 16 15:37:05 I switched from Windows to Linux because of its modularity, and I feel like OS X is a step backwards Apr 16 15:37:09 ThePendulum: Well i program for the last 7 years. i've started with PHP Apr 16 15:37:19 then javascript, Perl and now Java Apr 16 15:37:34 https://github.com/Idnan/git-random <-- nice extension Apr 16 15:37:39 To be honest, Java is not so hard Apr 16 15:38:17 if you have some programming background and google then you can do anything :) Apr 16 15:38:33 I started with PHP but I'm most comfortable with JavaScript even though time-wise I have less experience with it Apr 16 15:38:41 but with JS everything just clicked and keeps clicking to this day Apr 16 15:38:47 with PHP everything was a struggle to comprehend Apr 16 15:38:52 ThePendulum: Do you do something with angular? Apr 16 15:39:07 no, I primarily use React and am now looking into Riot Apr 16 15:39:21 knockoutjs no? Apr 16 15:39:27 no Apr 16 15:39:52 right Apr 16 15:40:03 and now android dev Apr 16 15:40:25 hm? Apr 16 15:40:55 yeah, I have a few things I want to get comfortable with during the next few months/year Apr 16 15:41:14 It's all I have, so I better keep up :P Apr 16 15:41:33 how old are you? Apr 16 15:41:48 all is like this Apr 16 15:41:56 weeks to learn and a life to master Apr 16 15:41:59 I'm 20 Apr 16 15:42:06 whats riot? Apr 16 15:42:13 it's a front-end framework for JS Apr 16 15:42:20 somewhat comparable to React, if you know that Apr 16 15:42:28 but it addresses a lot of the issues I had with React Apr 16 15:42:31 or have, rather Apr 16 15:43:13 i never had the need to learn react Apr 16 15:43:22 but you do know Angular? Apr 16 15:43:24 i use angular Apr 16 15:43:28 yep Apr 16 15:43:36 hmm, aren't they sourced in similar needs? Apr 16 15:44:05 react is like a binding library Apr 16 15:44:18 angular is a framework Apr 16 15:44:28 eh, well, to a degree maybe Apr 16 15:44:36 recact = palnet angular universe Apr 16 15:44:38 when I think of a binding library I think of Rivets or something Apr 16 15:44:40 :) Apr 16 15:44:45 React is rarely used on its own Apr 16 15:45:09 with angular you could do from zero to up Apr 16 15:45:25 from zero up? Apr 16 15:45:43 i mean you could develop a entire project only with angular Apr 16 15:45:57 * Ping_2_Ur_Pong loves this idea http://errtheblog.com/posts/21-cheat Apr 16 15:46:42 fabiobik: for me that was a drawback, Angular was too invasive for what I was looking for, and React allowed the kind of room to breath I was looking for Apr 16 15:46:59 it is argued Angular is a JS framework for Java devs :P Apr 16 15:47:48 alright, fixed the ibus warning, now to get the Oracle JRE working somehow Apr 16 15:47:48 ThePendulum: you really should use some time to see whats going on Apr 16 15:47:54 angular 2 its awesome Apr 16 15:48:03 didn't angular 2 only come out a few weeks ago? Apr 16 15:48:18 yes :) Apr 16 15:48:25 I didn't really get the chance to use it yet :P Apr 16 15:48:27 ThePendulum: howd you fix the ibus warning? Apr 16 15:48:33 drose379: I updated IBus xD Apr 16 15:48:40 did exactly what it asked me Apr 16 15:48:42 ThePendulum: do you know ionic? Apr 16 15:48:54 fabiobik: I do know it, haven Apr 16 15:48:55 Howd you do that ThePendulum Apr 16 15:48:57 't used it Apr 16 15:49:17 *ionic Apr 16 15:49:19 drose379: are you on linux? Apr 16 15:49:28 oh right Apr 16 15:49:41 Yes ThePendulum I always used to get that warning but dont get it anymore Apr 16 15:49:44 I never updated though Apr 16 15:49:46 I'd like to Apr 16 15:50:06 fabiobik: actually I do think I might've tried it, but it doesn't really allow you to create truly native apps I think? Apr 16 15:50:16 I don't like tools that distance me from what I actually want to do like that Apr 16 15:50:32 drose379: well maybe it is updated now Apr 16 15:50:38 ThePendulum: you are right. but its the closest you could have Apr 16 15:50:52 I'm still on Ubuntu 14.04, if you're running a later distro it could be you have a later ibus too Apr 16 15:51:27 drose379: what do you get running ibus version? Apr 16 15:51:58 1.5.5 Apr 16 15:52:10 fabiobik: doing that allows me to make apps, but I don't think it really makes me more valuable as a dev, at least not as much as I want to Apr 16 15:52:21 I reckon you don't really get to use Java as much as you would otherwise Apr 16 15:52:39 and knowing Java is something I think could really help me out if the JS market isn't doing too well Apr 16 15:52:45 drose379: http://stackoverflow.com/a/36158784/4917139 Apr 16 15:53:00 Thanks ThePendulum Apr 16 15:53:08 drose379: takes about a minute and you can just literally copy what it says there if you're not comfortable with building things Apr 16 15:53:09 ThePendulum: well it give you the ability to use things you already know and be more flexible of what you could do Apr 16 15:53:17 the update goes very smoothly, at least for me Apr 16 15:53:54 fabiobik: I won't be able to join any appdev teams that aren't using this though, or take unrelated Java jobs, etc. Apr 16 15:54:07 of corse not :D Apr 16 15:54:14 and I'm not sure what Ionic performance is like Apr 16 15:54:29 Not that good Apr 16 15:54:39 but if you search on stackoverflow jobs there are plenty of offers to hybrid apps Apr 16 15:54:39 I doubt you'll be running a fancy game with it if you first need to run webgl on top of javascript on top of Java or however Apr 16 15:54:45 let alone use more advanced engines :p Apr 16 15:54:51 drose379: to ask the question you asked earlier (and continuing our discussion from yesterday) it depends on how simple the logic is Apr 16 15:55:12 if there is a model change backing the view then no. Oterwise it might be OK. Apr 16 15:55:20 fabiobik: I'm not asked to make an app atm so I have time to really learn things Apr 16 15:55:21 ThePendulum: http://phaser.io/ Apr 16 15:55:34 in fact I want to make an app myself so I see that as an oppertunity to get to know Java Apr 16 15:55:42 just because I like to see different sides of the story as well Apr 16 15:55:52 I'm planning to get more comfortable with Python and maybe Haskell as well Apr 16 15:55:53 Oh hey tilal6991 Apr 16 15:55:57 Good point, agreed Apr 16 15:56:19 fabiobik: yeah I figured you'd be fairly limited to platform games :P Apr 16 15:56:33 now I'm a very long way away from making anything more fancy than that Apr 16 15:56:46 but it doesn't hurt to lay the fundaments I reckon :o Apr 16 15:57:13 drose379: let me know if you encounter any issues updating ibus btw Apr 16 15:57:23 it went down fairly smoothly for me but YMMV Apr 16 15:57:27 Thanks ThePendulum Apr 16 16:00:33 Is this bad: dalvikvm-heap: Grow heap (frag case) to 26.690MB for 2709612-byte allocation Apr 16 16:04:26 is this during the ibus install or an unrelated issue? Apr 16 16:10:19 Unrelated Apr 16 16:19:07 "Abandoning the Activity Stack With Flow 1.0 Alpha - Part 5: Master-Detail Flow (part 1)" Apr 16 16:19:21 i hate the activity stack too :( Apr 16 16:22:19 g00s: link Apr 16 16:22:43 on /r/androiddev Apr 16 16:23:10 oh I don't think ive gone there more than like twice Apr 16 16:24:36 I have a 2 classes that have 2 identical methods Apr 16 16:24:48 So I created an abstract class that they both extend to take care of those methods Apr 16 16:24:59 Now both the classes extend that abstract class Apr 16 16:25:09 don't extend it implement it Apr 16 16:25:16 But the object type that those methods work on is different Apr 16 16:25:21 interface* Apr 16 16:25:34 But you cant provide implementation with interface Apr 16 16:26:55 sure you can Apr 16 16:27:10 In an interface? Your not allowed to create method bodies Apr 16 16:28:59 one sec making an example Apr 16 16:29:03 Ok Apr 16 16:32:13 https://code.google.com/p/android/issues/detail?id=66058 gdit!! i misclicked ignore this update, and i have to deal with editing manually an xml file to revert Apr 16 16:34:47 and the accepted answer is even wrong :') Apr 16 16:41:37 drose379: AbstractInterface, https://10kloc.wordpress.com/2012/12/03/abstract-interfaces-the-mystery-revealed/ explains the concept Apr 16 16:42:25 * Ping_2_Ur_Pong loves his copy of Effective JAva, damn book completely changes the way you see the language. Apr 16 16:44:34 Thanks Ping_2_Ur_Pong Apr 16 16:53:31 drose379: shitty example, but shows the concept http://www.hastebin.com/amowanined.vala Apr 16 16:59:37 if I wanted to build a head unit for android auto, where would I look for that software? All I can find is app development Apr 16 17:02:24 tidb http://www.instructables.com/id/Turn-Your-Android-Tablet-Into-a-Car-Head-Unit/ Apr 16 17:05:59 the more I look at github, the more I want to pickup go as another language. /me forces himself to continue using python. Apr 16 17:06:03 tlab, i think android auto is like android wear, some parts are proprietary Apr 16 17:08:33 yeah my guess it I'd really have to contact google about it Apr 16 17:08:51 that article doesn't really have anything on software Apr 16 17:09:01 which reduces your chances to 0 if you're not part of a big company Apr 16 17:10:40 yeah I work for a company that is working on a project, but we are trying to stay away from android auto, but it could be a request Apr 16 17:11:00 I'm just a little guy in the company, so I'm just curious as to what it would take Apr 16 17:28:27 thepoosh ! Apr 16 17:28:34 yo Apr 16 17:29:38 chilling on the weekend ? Apr 16 18:49:46 I get "Background partial concurrent mark sweep GC freed" quite often in an activity. How can I find where and why this is happening most easily? Apr 16 18:56:29 If I want to create a service in android, do I need to have a blank activity in my activity in order for the service to run? Apr 16 18:59:23 Bernzel_, there's an allocation tracker in AS and Android Monitor that will show you what gets allocated Apr 16 19:19:29 anyone knows how to wirelessly push files from windows to android ? Apr 16 19:23:11 hmm Apr 16 19:23:20 You'll have to create a Service that listens on port I guess. Apr 16 19:24:28 I Was expecting something like adb over wifi or similar, without me having to code anything. Apr 16 19:26:28 theres wireless adb app not requiring root Apr 16 19:26:35 and you can download just adb for windows Apr 16 19:26:42 then use good old adb push Apr 16 19:27:04 Can I browse files on adb? or just pull/push blindly ? Apr 16 19:27:29 I mean, can it list files/dirs structure remotely? Apr 16 19:27:48 MZ|Alex: I'm pretty sure you should just be able to use something like Airdroid Apr 16 19:27:51 ADB should also work Apr 16 19:27:52 int[] p = {R.drawable.image1, R.drawable.image2....} ..... Please guys i want to know how it's int array while the contents is not integers ? Apr 16 19:28:11 they are integers Apr 16 19:28:11 tilal6991 does airdroid work like dropbox... sending data thru internet? Apr 16 19:28:17 you could try qtAdb (havent tried it) Apr 16 19:28:18 MeMoc: they are ids pointing inside the resources of app Apr 16 19:28:35 Ashiren thanks I'll check it out Apr 16 19:28:41 MZ|Alex: not if both devices are connected to the same wifi afaik Apr 16 19:28:45 R.drawable.. is int! Apr 16 19:28:52 ok but ids not integers Apr 16 19:28:58 tilal6991 great, I'll try that then! thanks Apr 16 19:29:06 got a couple of options, nice ;) Apr 16 19:29:15 R.id.. is int too Apr 16 19:29:16 R.drawable.. is int ? i can't understand it bro Apr 16 19:29:26 MeMoc: Yes they are... That's how the Android resource ids work Apr 16 19:29:50 You retrive the actual drawables via context.getResources.getDrawable Apr 16 19:29:52 control click on one and see Apr 16 19:30:07 they are generated Apr 16 19:31:06 I'm not sure but for instance when i give an image id name = image 1 is this mean android give it integer in his internal system which i can't see it or what ? Apr 16 19:32:00 eeyup Apr 16 19:32:21 well you can see it if you want but integers are auto-generated Apr 16 19:32:25 What's actually happening is a class called R is generated by aapt (the resource processing tool of Android). This file is populated with integers representing "tokens" to access the real data through the use of Resources. Apr 16 19:33:31 The actual integers are meaningless in themselves and are specific to a particular compiled version of the app. If you were to add or remove resources, the values of the ids would change but you don't care because you always reference the virtual R class Apr 16 19:35:12 thnx guys :) Apr 16 19:51:36 Hello Apr 16 19:52:11 hihi Apr 16 19:52:34 Only a quick question: Why install-recovery.sh is not executed as boot, being added into init.rc? Apr 16 19:52:45 service flash_recovery /system/bin/install-recovery.sh class main seclabel u:r:install_recovery:s0 oneshot Apr 16 19:52:58 thats a job for.. #android-root Apr 16 19:53:00 . Apr 16 19:53:01 service flash_recovery /system/bin/install-recovery.sh Apr 16 19:53:06 class main Apr 16 19:53:11 seclabel u:r:install_recovery:s0 Apr 16 19:53:16 oneshot Apr 16 19:53:32 root@DOOGEE:/ # ls -l /system/etc/install-recovery.sh Apr 16 19:53:39 -rwxr-xr-x root root 629 2016-04-15 15:05 install-recovery.sh Apr 16 19:54:04 @Ashiren: Should I ask to #android-root IRC? Apr 16 19:54:57 yes Apr 16 19:55:26 @Ashiren: Thank you very much! Have a nice day! Apr 16 19:56:05 tilal6991: You there? Apr 16 19:57:56 hello, i have doubt, more easy IDE for learn android is eclipse? Apr 16 19:58:20 android studio Apr 16 19:58:28 in linux Apr 16 19:58:35 eclipse isnt supported anymore Apr 16 19:58:39 hum... Apr 16 19:58:44 android studio works for linux Apr 16 19:59:13 thank you. Apr 16 19:59:35 *must* you ask for permissions at runtime from android 6 onwards? Apr 16 19:59:46 yes. Apr 16 19:59:54 unfortunately yes Apr 16 20:00:10 That's very inconvenient for permissions that are a must Apr 16 20:00:20 eeyup Apr 16 20:00:35 So what if the user says no? I just exit? Apr 16 20:00:37 must you do that manually? Apr 16 20:01:09 Luckly it's also inconvenient for all malware programmers who thought that their "Access contacts" permissions are a must. Apr 16 20:01:20 I thought that android would just pause the app and ask it, thus not leaving the programmer with extra work? Apr 16 20:01:43 autrilla, you attempt to function without the permissions or show a nice screen explaining which permissions do you need for the app to work Apr 16 20:01:55 altcp: no, you have to request it and register a handler for it Apr 16 20:01:56 altcp, you have to do it manually and handle denial. Apr 16 20:02:05 Of course, android being as coupled as it is, that's only doable on activities Apr 16 20:02:05 I see, thanks Apr 16 20:02:28 So if you're doing MVP or any other sort of pattern, you're a bit screwed :( Apr 16 20:02:46 They should make you use a PermissionManager you register callbacks with or something Apr 16 20:03:13 drose379: what's up Apr 16 20:03:54 does that mean android 6 cannot run apps who haven't implemented the new permission system yet? Apr 16 20:04:03 It will run them. Apr 16 20:04:15 But they will probably crash if user denies permissions to them. Apr 16 20:04:23 No that's not correct Apr 16 20:04:25 a temporary(*) solution is to target <23 Apr 16 20:04:31 (The permissions will be granted by default.) Apr 16 20:04:37 If they are targetting <23 permissions will be requested at install time Apr 16 20:04:49 Just like it is on pre-23 Apr 16 20:04:51 (And most of them will attempt to provide fake data if denied, not all.) Apr 16 20:05:02 No the point is it can't be denied Apr 16 20:05:05 Hi everybody, i need some help Apr 16 20:05:09 If it was then the app would not be installed Apr 16 20:05:15 tilal6991, dude. Apr 16 20:05:26 Go to app settings -> permissions on a 6.0 device. Apr 16 20:05:27 altcp: in my case, I wanted permission to access WiFi network names, and on Android 6 it just returns an empty list Apr 16 20:05:30 Mavrik: how can the user grant/deny permissions if it's handled manually by the programmer, but the old apps don't have this? Apr 16 20:05:47 for call a fragment from a fragment, without parameters! wich is the best practice? Apr 16 20:05:48 altcp: that means some apps broke on 6.0 Apr 16 20:05:49 altcp, the permissions are granted by default (as before), but the permission settings for the app are available Apr 16 20:05:54 altcp, and users can deny them later Apr 16 20:05:55 oh alright Apr 16 20:06:12 And some of them will provide fake data then (e.g. location will never callback) Apr 16 20:06:20 And some of them will throw SecurityException Apr 16 20:06:30 Yes they can be revoked - my point is that they won't be prompted at run time Apr 16 20:06:41 They would have been granted at install time Apr 16 20:06:53 Yes. Apr 16 20:06:58 i guess make a fragmentmanager inside the fragment could work! Apr 16 20:06:58 (Which is what I wrote.= Apr 16 20:07:34 Fair enough - I misunderstood :) Apr 16 20:09:51 ho can i hide the title bar in a second activity? Apr 16 20:09:55 how Apr 16 20:20:45 Mavrik: I don't think you have to explicitly ask for permissions for WiFi access Apr 16 20:20:58 Anyway, no idea why WifiManager is returning an empty result list, heh Apr 16 20:21:00 What kind of wifi? Apr 16 20:21:17 ACCESS and CHANGE Apr 16 20:21:24 Ah, hrmf :/ Apr 16 20:21:35 context.checkSelfPermission(Manifest.permission.ACCESS_WIFI_STATE) returns PERMISSION_GRANTED Apr 16 20:21:46 Just by setting it in the manifest Apr 16 20:21:50 Yes they are not classed as "dangerous" Apr 16 20:22:02 http://developer.android.com/guide/topics/security/permissions.html#normal-dangerous Apr 16 20:22:12 There's a list of all the dangerous ones Apr 16 20:22:35 And here's the normal ones: http://developer.android.com/guide/topics/security/normal-permissions.html Apr 16 20:22:40 Then why the heck is it returning an empty list? Apr 16 20:23:49 PERMISSIONS_REQUEST_CODE_ACCESS_COARSE_LOCATION is required, huh Apr 16 20:29:14 Which is a good marketplace to find android development work? Apr 16 20:29:20 Guru, Upwork? Apr 16 20:29:34 I'm asking as a freelancer Apr 16 20:31:50 reddit Apr 16 20:32:04 actual freelance sites are terrible Apr 16 20:32:22 orbyt_: reddit...? Apr 16 20:32:29 in which place speciiffically Apr 16 20:33:10 r/jobbit, /r/forhire, etc but really its just meeting people and building a client list Apr 16 20:34:16 orbyt_: I'll see if there is any luck for me there Apr 16 20:46:22 orbyt_: does reddit works ok, if one is up to only remote work, located outside uS? Apr 16 20:46:51 crised: your approaching it the wrong way Apr 16 20:46:57 build a client list Apr 16 20:48:14 orbyt_: give me more info Apr 16 20:48:17 how> Apr 16 20:48:46 Network, meet people. I already answered that. Apr 16 20:49:42 orbyt_: What about Udacity... do you think I could get some networking there? Apr 16 20:55:30 Heh, I can't for the life of me figure out why the heck Android is returning an empty WiFi network list Apr 16 20:56:08 because wifi is turned off Apr 16 20:56:33 pfn: no Apr 16 20:57:34 And WiFi permissions are granted at runtime... Apr 16 21:04:02 hmm Apr 16 21:18:52 Hi, any idea how to get a unique identifier for a device without using imei that can be refused by the user ? android_id as far as I know is reset when the device is factory reset. Apr 16 21:19:42 serial numbe Apr 16 21:19:44 ? Apr 16 21:21:16 is it possible to get serial number ? imei isn't already a serial number ? Apr 16 21:21:42 Build.SERIAL Apr 16 21:22:12 thanks Apr 16 21:22:19 I will look into it Apr 16 21:22:37 Hi, trying out the Android Developer Studio on Linux - have been using Eclipse till now. Anyway, trying an example project, ADS is complaining that I need to install a specific version of the build tools (23.0.2), but there's no option to install that. I have a more recent version installed. The example project is "ActionBarCompat-ShareActionProvider1" - is this just a broken project? Apr 16 21:23:20 erufu2: just a heads up though - http://android-developers.blogspot.co.uk/2011/03/identifying-app-installations.html Apr 16 21:23:34 I know that post is out of date but the spirit is still there I think Apr 16 21:24:15 Smashcat: in build.gradle of the project update the build tools version to the one you have installed Apr 16 21:25:05 tilal6991: Thanks, I've found I can just keep double-clicking on all the errors and it's gradually fixing stuff it seems. Looks like it's updating virtually everything :) Apr 16 21:25:58 tilal6991: thanks for the reading :) Apr 16 21:26:19 This answer also seems pretty useful - http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id/2853253#2853253 Apr 16 21:33:06 onResponse of Callback<> using Retrofit runs on the main thread correct? Apr 16 21:34:46 Yes Apr 16 21:42:00 Thanks Apr 16 21:42:59 hi Apr 16 21:43:18 woof Apr 16 21:43:27 does anyone know if there is a specific irc channel for Realm on android/ does someone know how to set it up? Apr 16 21:45:03 How long does a small sqlite insert take? Apr 16 21:45:08 Say 10 items Apr 16 21:45:09 woof Apr 16 21:45:23 drose379: if you are asking so you can do it on the main thread don't Apr 16 21:45:32 lol Apr 16 21:45:34 hey jug6ernaut :) Apr 16 21:45:36 No im just wondering tilal6991 Apr 16 21:45:43 drose379 it takes 10 * N Apr 16 21:45:44 hey g00s Apr 16 21:45:50 Want me to explain why, Id actually be interested in hearing your thoughts on it Apr 16 21:45:54 Otherwise the answer is not too long - depends by device Apr 16 21:46:06 10ms g00s ? Apr 16 21:46:24 you can't say, i'd have to guess at least 250ms Apr 16 21:46:26 g00s: not sure if it actually scales linearly Apr 16 21:46:40 Sqlite has some crazy optimisations I'm sure :P Apr 16 21:46:47 Yeah 250 sounds high Apr 16 21:46:51 probably betweeh 250-500ms Apr 16 21:46:52 Can I tell you guys the situation though? Apr 16 21:47:06 it comes down to writing to flash Apr 16 21:47:07 drose379: I wouldn't be surprised if it did take that long on low end devices Apr 16 21:47:10 ^^ Apr 16 21:47:21 there are a lot of variables that go around an insert... Apr 16 21:47:26 yeah Apr 16 21:47:37 Ok, so heres the sitch: The user is in a recovery activity, they provide credentials whatever, then recovery starts Apr 16 21:47:41 also depends what kind of journaling you use, WAL, traditional, etc Apr 16 21:47:45 I remember doing a comparision for this actually - shared prefs vs db for 1, 10, 100 on 4 or 5 devices Apr 16 21:47:52 So the network request is made to get all items that are being recovered from the sever Apr 16 21:48:09 If the user exits the activity during this, then fine, I just wont do anything with the server result Apr 16 21:48:34 But if the user tries to exit once the results are in from the server, and tries to exit during that 500ms that I am saving the items, thatll be an issue Apr 16 21:48:45 So im thinking of locking the back button while saving the items Apr 16 21:49:05 That make sense? Apr 16 21:49:16 I would strongly advise not hardcoding cases like this. It just leads to pain when a device doesn't behave as you expect. Apr 16 21:49:34 tilal6991: so if the user exists while the items are being saved... Apr 16 21:49:43 Maybe just delete the items I've saved and be done with it Apr 16 21:50:20 Yes that seems reasonable I think - that or you can show a blocking dialog. That is a bad UX design but sometimes unavoidable. Apr 16 21:50:38 Right im trying to avoid blocking the user from a common UI move like that Apr 16 21:50:45 Thats what I meant by locking the back button Apr 16 21:51:12 I would only use that as an absolute last resort - once you've exhausted every other option Apr 16 21:51:30 Im gonna try to delete the items ive saved if they exit during that grey area time Apr 16 21:51:32 Know what I mean? Apr 16 21:51:40 Network request is done, but just saving the items Apr 16 21:51:42 Yes and as I said that seems sensible enough Apr 16 21:52:23 But I will have to wait for everything in the recovery to be saved, then delete it all Apr 16 21:52:37 Cause what if it is in the middle of saving, then I delete everything, then it saves the last half Apr 16 21:53:00 Technically not possible because of SQLite's transaction system Apr 16 21:53:05 You can't partially do anything Apr 16 21:53:10 It's an all or nothing system Apr 16 21:53:30 Well unless you have a hardware reboot or something which corrupts the database Apr 16 21:53:36 Well I have a loop over an array list of items to save from the network Apr 16 21:53:51 Im saying what if the user cancels during that Apr 16 21:54:05 I guess once the save is done, Ill just check a boolean that I have set, _gotCanceled or something Apr 16 21:54:08 If yes, delete all Apr 16 21:54:17 Something along those lines Apr 16 21:55:28 Hmm ok I'll try it out Apr 16 21:55:31 Thanks tilal6991 Apr 16 22:03:50 Hi guys! I have a model-database relation design question. I have a list of entities I get from REST API, I have a model object i create with Gson from the string. I wonder if it's ok to store the entities in the database in serialized form - in json, just like I get it from the API? It seems really handy to create model objects from json on both network response and when I get them form the db Apr 16 22:04:09 But something just doesn't feel right... Apr 16 22:04:22 I wonder if some of you use this approach? Apr 16 22:04:33 AlexBerdnikov sqlite has a json extension , i've never used it tho Apr 16 22:05:13 g00s: I mean, is this ok or it might appear a some kind of anti-pattern? Apr 16 22:05:21 AlexBerdnikov: if you're going to store entities in JSON form in the database I'm not sure why you're even using SQL Apr 16 22:06:14 SQL has a lot of overhead to ensure that it acts as a relational database - if you're not actually using those features why bother? Apr 16 22:06:15 tilal6991: because I have to show these data while offline as well Apr 16 22:06:34 Sure - I mean why not use another system to store them? Apr 16 22:06:47 What about just writing to a JSON file on disk? Apr 16 22:07:00 Or just do yourself a favor and use realm. Apr 16 22:07:17 AlexBerdnikov: Storing JSON in a SQL database isn’t the worst idea in the world, especially if there’s some metadata you want to associate with the JSON file. Apr 16 22:08:53 tilal6991: SQLite is provided inbuilt tool, while storing it in files requires me to write additional code potentionally having bugs :) Apr 16 22:09:53 If you're willing to live with the overhead I'm not saying it's a bad idea Apr 16 22:10:09 Another option is SharedPreferences if you don't want to write data to disk yourself Apr 16 22:10:34 Less overhead but has the downside of caching all data which is read permenantly for the lifetime of your process Apr 16 22:10:37 For example, I see one issue with this: I can't sort the data on database query. I rather need to create additional column duplicating the filed from JSON I want to sort the rows against. Apr 16 22:10:56 And overhead on running fromJson() method for every record... Apr 16 22:11:02 Just like you mentioned, yes... Apr 16 22:11:58 But on the other hand I don't have to write the mapping function to convert data from Cursor to model object Apr 16 22:12:12 And just run same fromJson() method Apr 16 22:19:09 Hello all, I'm having trouble with Android Studio and GitHub. Whenever I use git bash to commit changes to GitHub, my entire project gets messed up. All my resources and source files are there, but the build config, sdk location, etc gets all messed up. Then I start getting weird compilation errors. Any ideas? Apr 16 22:19:43 Are you on Windows? Apr 16 22:20:07 no Mac sorry, not sure why I said git bash. Just using git through terminal Apr 16 22:20:48 tilal6991: I have other developers on this project that use windows, though Apr 16 22:20:55 Hmmm then maybe not what I suspeted but take a look at https://help.github.com/articles/dealing-with-line-endings/ Apr 16 22:21:01 Ah then maybe it is that Apr 16 22:21:09 * suspected Apr 16 22:22:21 tilal6991: right, I looked into that. I'll look again too. But I think it also has to do with the fact that .gitignore is removing locally specific files sometimes when I do hard sync, and recreating my build.gradle, .iml, etc files is a disaster. I guess a better question would be if I have my source files, and resources, how do I get my project running Apr 16 22:22:21 again? Apr 16 22:24:03 I'm not sure. That does seem pretty weird TBH. Apr 16 22:25:07 tilal6991: I've had an android developer friend take a look and he couldn't figure it out so just recreated the project. But since I'm semi new to Android Studio, could you give me a rundown on the components / configurations necessary to get a project to compile and run? Apr 16 22:26:27 AFAIK everything can be created from just the gradle configuration Apr 16 22:26:57 So if you sync Studio with gradle everything "should" just work Apr 16 22:28:43 tilal6991: that's really helpful. Ok so the .iml file isn't that important? Also, what about project compiler output directory, and assets directory? I got an error saying the supplied javahome seems to be invalid, even though by jdk 1.8 is installed Apr 16 22:28:47 What widget could I put on each RecyclerView item that can display some text and has a nice touch response? Apr 16 22:29:03 tilal6991: I'm thinking it has something to do with how directories are setup Apr 16 22:29:30 autrilla: TextView with background as selectableItemBackground should just work Apr 16 22:30:11 dmtd: compiler is set in studio. Again the directory hierarcy should be handled by gradle Apr 16 22:30:25 autrilla: oh make sure you set clickable to be true on the textview Apr 16 22:31:11 tilal6991:what do you mean background? Apr 16 22:31:36 android:background Apr 16 22:31:47 selectableItemBackground Apr 16 22:31:51 that's what I meant Apr 16 22:32:03 Oh. Are you using AppCompat Apr 16 22:32:06 Ah, there's a ?attr for it Apr 16 22:32:11 tilal6991: yeah Apr 16 22:32:23 Yes - then ?selectableItemBackground Apr 16 22:34:38 tilal6991: nice, thanks, that looks good. Anything I could use as a separator between items? Apr 16 22:34:50 RecyclerView makes it a bit hard to show separators, or so I hear Apr 16 22:35:03 The "proper" way to do this is with decorations Apr 16 22:35:10 Something like https://gist.github.com/lapastillaroja/858caf1a82791b6c1a36 Apr 16 22:35:54 That a lot of lines of code Apr 16 22:36:02 Yup :( Apr 16 22:36:35 For quick checks on how a divider would look on a list I usually just put a 1dp view below the item view Apr 16 22:36:54 autrilla meh, take the easy way out and ditch the separator - i think it usually looks better anyhow :D Apr 16 22:36:56 tilal6991: sure, sure, quick checks :p Apr 16 22:37:32 autrilla: haha exactly - I do it properly usually :P Apr 16 22:38:09 https://media.nyusu.fm/ranking/option/940/32760.jpg :) Apr 16 22:38:25 Hi, I have a project in ADS that was compiling earlier, and now it's crashing out with the error "maybe using a version of Gradle that does not contain the method: Open Gradle Wrapper File". Any idea what could cause that? Or how to revert to when it was working? Apr 16 22:38:43 Lol that's great Apr 16 22:38:45 (I haven't changed anything at all in the project. Just closed and reopened ADS Apr 16 22:40:43 g00s: what color do you use? Apr 16 22:43:44 Ah I see, deleting everything from the gradle build file, so it has to regenerate it "fixes" the bug - hahaha! Apr 16 23:30:08 join #maven Apr 16 23:30:15 err doh. Apr 17 00:10:28 Hey guys! I'm looking for programmer in my team for this android vs ios competition http://blog.livecoding.tv/2016/04/14/livecoding-tv-ios-android-app-competition/ Apr 17 00:13:15 A competition to make an app for them? Lmao. Apr 17 00:17:22 people watch people code on tv ? Apr 17 00:17:30 * g00s scratches head Apr 17 00:23:28 Why Gson.fromJson() method throws unchecked exception? Isn't it unsafe to not force the client to prevent program crash due to invalid json input? Apr 17 00:25:28 For example org.json.JSON object constructor throws checked JSONException so you must to handle invalid input case anyway Apr 17 00:25:52 It's really easy to forget to catch that in case of GSON... Apr 17 00:26:38 AlexBerdnikov: if u dont know what your passing into Gson u have bigger issues Apr 17 00:28:14 jug6ernaut: I'm passing a json string I get from some remote API. There's always a possibility of it being malformed for the reasons I can't affect Apr 17 00:29:02 How else you can check if your json is valid if not on attempt to process it? Apr 17 00:29:41 it being malformed should be the exception, not the norm. Apr 17 00:32:04 Anyone here use JRebel for Android? What do you think of it? Apr 17 00:34:03 @monicaa2223 Do you have an idea for the app/UI? Apr 17 00:34:48 I'm currently in-between freelance contracts so I might be interested in helping out Apr 17 00:34:49 jug6ernaut: sorry, maybe I don't understand what you mean, but since such an exception is very possible why not force the user to handle it? I even provided an example from org.json package where you must handle quivalent exception in equvalent situation Apr 17 00:35:26 AlexBerdnikov: its the distintionb Apr 17 00:35:28 arg Apr 17 00:35:50 distinction between checked & unchecked excptions Apr 17 00:36:18 unchecked exceptions are for coding error, checked exceptions are for possible and recoverable situations Apr 17 00:37:57 Thanks, I understand that. It's just that I don't understabd why Gson developers decided to make JsonSyntaxException unchecked. Apr 17 00:38:12 99% of the time, the json u pass into Gson will and should be valid, u should not be forced to handle an exception for such a rare situation. In the same way Integer.valueOf() can throw a exception if u pass something in that isnt a number Apr 17 00:39:24 Dunno, to me coding in Java seems to be a defensive progamming like for 50% of time Apr 17 00:40:20 defensive? I mean the compiler and syntax are definitely there to keep u from doing something stupid. In comparison to a dynamic language i suppose it could be called defensive Apr 17 00:40:53 but its more about offloading and inforcing checks at compile time, not runtime. Apr 17 00:41:48 Well, anyway I think you shouldn't rely on what any remote server returns you for your request Apr 17 00:42:40 gson.fromJson() used for constructing models from such respoonses in 99% of time Apr 17 00:42:57 But ok, I've got your point Apr 17 00:43:52 Hello, I know enough java to get by barely, more of a C# guy(they are kinda similar) Anyways I am looking for a more fast paced Tutorial or free online course for learning android development.. Something extremely hands on would be best for me. Apr 17 00:44:08 I checked Udemy but they seem to have a ton of courses Apr 17 00:44:31 And id like something that uses Android Studio vs say Eclipse or something in its examples Apr 17 00:45:07 AlexBerdnikov: really depends on what you would expect your app to do in that situation. Apr 17 00:46:07 generally speaking something like a service being down or sending back bad data is an unrecoverable situation, yes you would want to handle that, but not necessarily checked on every single service call. If you expect your calls to fail then you ofc should apply more checks for those calls Apr 17 00:46:29 Wish there wasa way to write Android Devs using python that wasnt complicated Apr 17 00:46:40 ew Apr 17 00:47:19 BenSolo: idk if its good advise, but i always say the best way to learn is just to jump in a project and or look at others projects Apr 17 00:47:29 but i was never one to follow tutorials Apr 17 00:47:57 lol it has agreat selection of 3rd party libs, a great set of built in libs.. endless frameworks.. and very well documented.. Why do you not like it? Apr 17 00:48:34 wow jug6ernaut you are lucky to be able to learn entire languages without books, or tutorials.. Apr 17 00:48:54 Ya just look at the code and can pick up all the syntac and such huh? Apr 17 00:48:56 BenSolo: i hate dynamically typed languages :) Apr 17 00:49:12 jug6ernaut: Ah I see Apr 17 00:49:59 I just hate having to create a new file for every class.. one thing I never liked about Java.. Apr 17 00:50:16 And plus I tried using Swing before... did not like it at all. Apr 17 00:50:25 swing lol Apr 17 00:50:30 stay away from swing Apr 17 00:50:41 & u dont have to create a new file for every java class :P Apr 17 00:51:21 Oh well if I try I get errors, and every tutorial I have read says you need to. Apr 17 00:51:51 If it is not required it defenitly seems to be common practice. Apr 17 00:51:52 look up inner classes, anonymous inner classes, static inner classes Apr 17 00:52:29 Oh I am sure I will get to it eventually when I find the tutorial/book/course I end up using. Apr 17 00:53:00 I really like the "Head On" Series for learning new languages.. but the only one they have for android is extremely out of date. Apr 17 01:12:43 i have a custom drawable im using as the thumb for a seekbar. It looks fine on a phone, but on my tablet the drawable is gigantic. Any ideas why? Apr 17 01:13:30 drawable is here: https://paste.ee/p/aOI9t Apr 17 01:23:04 screenie: http://i.imgur.com/7a5LRb4.png Apr 17 01:26:21 what it should look like ^ http://i.imgur.com/Ca4wcav.png Apr 17 01:45:57 If I set a drawable .setBounds to 0, 0, 0, 0, it shouldnt be visible correct..? Apr 17 02:11:31 https://www.youtube.com/watch?v=FBWvXZP_frg pretty cool Apr 17 02:39:35 having a ton of courses is an issue? Apr 17 02:40:37 has anyone here published a library to jcenter? Apr 17 02:41:02 is it vetted by a human being? what is the approval process about? I thought it was open to anyone **** ENDING LOGGING AT Sun Apr 17 02:59:58 2016