**** BEGIN LOGGING AT Thu May 07 02:59:58 2015 May 07 03:20:21 serious question: how many androids do you guys have? I keep running into problems with my app working on some androids and not others May 07 03:20:43 I can only forsee avoiding this problem by owning and testing my app on every android May 07 03:20:54 but I know I must be wrong May 07 03:21:09 some androids meaning different versions? not a dev just saw the question. May 07 03:21:11 are there just certain kinds of androids I need to test on? like I could just buy 1 in each category? May 07 03:21:19 like a galaxy vs a moto x May 07 03:21:58 which galaxy were you testing on there is several May 07 03:22:49 Another thing to keep in mind that there is major API changes in different branches of android May 07 03:23:17 s5 acts different than s6 which acts different than a moto x May 07 03:23:24 see api changes make it even harder May 07 03:23:47 but I can't believe that every android developer owns all those android May 07 03:23:48 s May 07 03:23:51 what does your app do? May 07 03:24:11 NFC camera app May 07 03:24:15 makes it tough to use emulators May 07 03:24:40 another problem not sure how much tho is the OEMs use skins May 07 03:25:13 i'd look at what versions of the two devices are running May 07 03:25:30 well ideally I would like it to work on all androids May 07 03:25:38 maybe thats just not possible? May 07 03:25:58 i don't think so. Many have a version cutoff May 07 03:26:27 hey, do any of you have preferred IDEs for android development in windows? i've used eclipse in the past, but prefer jetbrains' IDEs; it's kind of a tossup between intellij IDEA and android studio (which as far as i understand is a specialized version of IDEA) May 07 03:26:34 *on windows, sigh May 07 03:29:02 diphtherial if you are just doing android, probably Android Studio May 07 03:30:16 so i guess gradle 2.4 final is out ? May 07 03:31:36 diphtherial: I second Android Studio - it's the official android IDE right now. May 07 03:37:46 can anyone tell me whether trying to setup genymotion is a waste of time? I am trying to test my camera app on multiple devices. but Im not sure if its even representative of the devices it is emulating May 07 03:37:51 especially with the cameras May 07 03:38:04 I feel so helpless May 07 03:39:21 in_deep_thought: 12 or so here, maybe 15 counting nabbing from my coworker's primary phones. cameras are an absolute mess. May 07 03:39:50 yeah its one of those APIs i'd avoid unless you have lots of test hw May 07 03:40:00 like BLE :'( May 07 03:40:28 arrgghhhh, BLE >< May 07 03:42:54 g00s, barbs: ah, alright; thanks for the input May 07 03:43:32 i do already have a copy of IDEA, and i do occasionally do java/scala/etc. development, but if it's easier to do it in android studio, i'm all for it May 07 03:45:44 diphtherial AS will have more up-to-date android gradle plugin integration i think May 07 03:46:31 plain intellij will be more up to date IDE-wise; AS more up to date android-wise. whatever is more important to you May 07 03:50:09 groxx, ahhhh good May 07 03:53:55 not good! mess! May 07 04:02:43 it is not any easier to do android development using Android studio May 07 04:02:57 only gradle is the tiniest bit easier May 07 04:03:03 and even then not really May 07 04:04:44 pfnQ are you the one that does everything in IntelliJ? I remember someone here saying that May 07 04:04:53 yes May 07 04:05:10 or vim May 07 04:05:41 would you say that it's more difficult to set up IntelliJ for Android development? I've not done it before so I wouldn't know May 07 04:06:09 not difficult May 07 04:06:34 but more difficult than AS? May 07 04:06:57 based on one persons opinion? May 07 04:07:10 what are you so worried about his answer? May 07 04:07:14 why* May 07 04:07:24 I'm not "worried", I'm curious May 07 04:07:36 Gotta finish that blog? May 07 04:07:48 ...? May 07 04:08:00 Nothing just trolling you May 07 04:08:02 no more difficult May 07 04:08:18 intellij contains the same android support as studio May 07 04:08:32 gradle not as up to date May 07 04:08:55 interesting... May 07 04:12:22 always keep in mind that studio is intellij with features removed May 07 04:13:25 which features? May 07 04:13:35 needed features for coding java&android, or optimized to remove crud not needed? are there things that should be in AS that you know off hand? May 07 04:14:01 all features irrelevant to android are removed May 07 04:14:28 if you only ever code for android, then there's no real reason to use intellij May 07 04:14:31 im missing direct sqlite database access from intellij premium :( May 07 04:17:08 I've never tried that May 07 04:17:49 but yeah, I have a fair number of non android java projects May 07 04:17:54 pfnQ, it lets you view and edit the sqlite database on the phone May 07 04:17:56 pfnQ: are there any features you miss in particular in AS? May 07 04:17:57 there's no reason for me to use studio May 07 04:18:01 barbs, no May 07 04:18:16 gradle, maybe, but I don't use gradle May 07 04:18:29 ah ok, you like to have all your java-based projects in one place then? May 07 04:18:55 sure, android is just another java project May 07 04:19:23 yeah, that's cool May 07 04:22:45 the only place android studio is ahead of intellij is up to the minute gradle support May 07 04:29:07 and thats pretty important May 07 04:30:17 danijoo does that plugin require you export datanase to sdcard ? May 07 04:31:18 motodevstudio had that back in 2010 May 07 04:31:29 kinda sucks we don't have that :( May 07 04:31:51 does it work on non-rooted phones? May 07 04:32:31 the motodevstudio one required export to /mnt/sdcard or whatever, to get around the private permissions May 07 04:47:17 reddit needs to get its shit together May 07 04:47:21 503's all over the place May 07 04:48:52 yeah ... for being the front page of the internet ... May 07 04:48:56 its kinda a piece of shit May 07 04:49:32 i have no idea how those guys stay in business though May 07 04:49:47 this is cool i can see it being an ARA module someday :D http://spectrum.ieee.org/tech-talk/transportation/self-driving/cheap-centimeterprecision-gps-for-cars-and-drones May 07 04:49:55 GPS precision to 2cm May 07 04:53:02 nifty May 07 04:54:03 danijoo: can it access the sqlite file within an app's internal directories too? May 07 04:54:38 g00s: that's really awesome, and sounds like it'd be fun to work on May 07 04:56:27 g00s, it isn't actually important at all May 07 04:56:46 g00s, you can maintain your gradle build independently of the ide May 07 04:57:09 g00s, and you can build from the ide or gradle as necessary May 07 04:57:26 basically, exactly like how it used to work with adt and ant May 07 04:57:35 except still better May 07 05:19:42 pfnQ: I agree that gradle is probably the best build tool all around these days (better than mvn and obviously orders of magnitude better than sbt), but I wish it were faster and that the integration with IDEA were even tighter May 07 05:20:01 I still don't understand why I need to manually click "Sync the gradle file" link whenever I make a change to it May 07 05:20:18 you're joking, I hope May 07 05:20:30 sbt is orders of magnitud better than gradle May 07 05:20:35 lol May 07 05:20:40 fight! :D May 07 05:20:49 Nah May 07 05:21:05 not even worth it May 07 05:21:36 Back to my point, it's the general trend where IDEA is behind Eclipse in incremental/automatic updating state May 07 05:22:05 With IDEA, I have to trigger builds manually and sync build files manually. With Eclipse, it all automatically worked behind the scenes without ever slowing me down May 07 05:22:45 Eclipse never synchronized with build files May 07 05:23:17 Hi, any of you knows how goes a setup for working with NDK in C++ using Linux? Specifically ArchLinux if possible May 07 05:23:59 pfnQ: Sure does, add a tag to your pom.xml, see what happens May 07 05:24:19 Do that to your build.gradle and you need to click a link to get IDEA to reparse it May 07 05:24:54 Yeah, I really like IDEA, and I mostly like gradle. but I don't really care for the IDEA<->gradle integration May 07 05:27:39 Maybe at Google I/O, Google will announce they're resurrecting ADT and they will now maintain both IDE's in lockstep May 07 05:27:41 One can dream May 07 05:27:49 \o/ May 07 05:29:36 Putting money where my mouth is: https://plus.google.com/+CedricBeust/posts/7XA8V7hjt14 May 07 05:30:02 :( May 07 05:30:37 yeah and ditch the android development May 07 05:30:44 studio* May 07 05:30:49 :D May 07 05:30:52 like that's possible May 07 05:32:26 I grew up on Eclipse, and have had much resentment about that ever since I moved to the Intellij world May 07 05:32:34 or vim world May 07 05:32:37 or emacs world May 07 05:32:40 or nano world May 07 05:35:09 * pfnQ has hated eclipse forever May 07 05:35:16 ^ May 07 05:35:22 or cat and echo world May 07 05:35:22 < May 07 05:35:43 I used it for a while and for years, intellij beat eclipse handily May 07 05:36:06 for android for a while, general java for years May 07 05:36:32 in its various incarnations as rational studio May 07 05:36:50 yep took a couple days to get used to the slight different nuances between Eclipse and Intellij, and after that I started doing things with Intellij that I never could with Eclipse May 07 05:37:09 Like keep the IDE open for more than 3 hours without it crashing with OOM May 07 05:37:15 Yeah, I prefer IntelliJ. And now that I joined University I used my edu email. It's pretty amazing to using it with the Ultimate version May 07 05:37:35 Eclipse continuous build sucks on a laptop while on the go, I understand May 07 05:38:11 * g00s yawns May 07 05:38:20 * yiati roars May 07 05:38:48 in any case, I get continuous compile out of my build tool May 07 05:39:56 * g00s doesn't hear yiati's roar :) May 07 05:43:23 g00s: https://vine.co/v/h3zuLzw7Fq7 May 07 05:43:58 :D May 07 05:45:46 * groxx groxxes http://i146.photobucket.com/albums/r272/louiseandtarotpics/chickadies/7353558_70279634245c6c21764923.gif May 07 05:46:45 groxx heh, i get a kick out of that thing May 07 05:46:57 the last one was different though May 07 05:50:20 yeah. just grabbed the first googleable one May 07 05:50:29 groxx what is that guy called ? May 07 05:50:37 one of these days I need to set up short links for it. May 07 05:50:40 fizzgig May 07 05:50:41 from the dark crystal May 07 05:50:43 haha May 07 05:55:28 Im working on a app that downloads smoothstreams files from a server. But our app is acting weird when we starting the download from WiFi connection, we get around 10-15mbit. But when we are connected to 4G network, we get 70-80mbit. Then we change back to WiFi again and then we get 70-80mbit aswell. Any idea whats happening here? Tested on a Nexus 6, Android 5.1 May 07 05:57:43 its like we are bypassing a speedlimit on the WiFi by going from 4G network to WiFi May 07 05:58:49 zalzice: maybe it's using up it's buffer May 07 06:00:33 hmmm but why the big change when going 4G to WiFi? May 07 06:01:17 i should have seen the same speed in 4G if its using up its buffer May 07 06:01:39 same speed = 10-15mbit May 07 06:02:44 maybe you got a fresh tcp connection ... May 07 06:03:30 i dont think android has multipath TCP yet May 07 06:04:37 or maybe it's lying to you when it says it switched to wifi May 07 06:04:44 g00s: what do you mean? When I start a download the app establish a new tcp May 07 06:05:32 zalzice sounds kinda weird. how do you know its not your router ? May 07 06:05:32 shmooz: cant be!:) the downloaded megabytes doesnt lie :P May 07 06:09:08 g00s: thats why i dont understand neither. We have tested on different network, Asus router / Zyxel router / D-Link router, same speed until we go to 4G (70mbit) and back to WiFi (70mbit) May 07 06:09:54 zalzice: technically those routers can't do more than 15 mbit right ? May 07 06:10:21 so it has to be a buffer thing May 07 06:11:40 when you first switch to 4G it's still accessing what it had buffered, but then it should eventually slow down May 07 06:12:20 mainly i have testeed on the Asus AC 66U (if i remember the model correctly) May 07 06:12:45 shmooz: but it doesnt May 07 06:13:14 well then you should find out and patent whatever it is that is making your wifi 5 times faster May 07 06:13:26 haha May 07 06:13:29 and you can become a billionaire May 07 06:19:03 zalzice maybe set up bandwidth control on the router to something like 10mbit and see if going back after 4G you get 10mbit again May 07 06:20:33 i wish i had 5.0 attr? usage in drawables ... that such a useful feature May 07 06:23:51 as far as I can see android:launchMode="singleTop" lets the action bar up button behave the same as the system back button (keeps the intent data). When would I not want to use it? May 07 06:24:05 I don't suppose anyone here has used AndroidSwipeLayout? https://github.com/daimajia/AndroidSwipeLayout I'm using it in a listview, having some minor issues, hoping to avoid reading+understanding the whole thing (as much fun as that may be) May 07 06:24:09 SwitchCompat in Menu is working with app:showAsAction="always" but shows a white if showAsAction is never. Any clue? It is clickable though, in white view May 07 06:25:04 g00s: I will try May 07 06:28:08 g00s: !!! May 07 06:28:16 thepoosh !!! May 07 06:28:21 its judgement day ! May 07 06:28:36 oh no, its thursday nm May 07 06:28:46 thepoosh submit the revisions ? May 07 06:28:47 we already submitted to 100% May 07 06:29:16 thepoosh congrats :D May 07 06:29:36 and good luck, let me know when there is some link to the feature May 07 06:29:59 g00s: http://finance.yahoo.com/news/glide-live-video-messaging-app-120000481.html May 07 06:30:08 already got some press May 07 06:31:56 * g00s wishes he could get some press :| May 07 06:32:15 sorry for the disconnect May 07 06:32:19 did i miss anything? May 07 06:32:29 yes May 07 06:32:36 16:31 * g00s wishes he could get some press :| May 07 06:33:00 thepoosh did you guys have a press kit ? May 07 06:33:10 yes May 07 06:33:30 thepoosh, congrats :) May 07 06:33:33 https://drive.google.com/folderview?id=0B03f67tHGAEYem8yRzhsQUVJcFk&usp=sharing May 07 06:33:35 Mavrik: thanks May 07 06:33:46 this took about 5 months of my life May 07 06:33:50 i was trying to autocomplete thepoosh , kept hitting tab tab tab ... no thepoosh and then i realized you were gone already! May 07 06:34:03 of course businessinsider mucked up link to your homepage :) May 07 06:34:05 i accidentally stepped on the network cable May 07 06:34:15 lol May 07 06:34:16 thepoosh how long ago did you submit to google ? May 07 06:34:20 or. yahoo or whoever May 07 06:34:24 (to be featured, etc) May 07 06:34:44 Mavrik: it was a copy paste from business insider May 07 06:34:53 g00s: first time or last? May 07 06:35:11 hmm - were you working on getting this featured for the past 5 mos ? May 07 06:35:37 we as a team started this 5 months ago May 07 06:35:48 the first approach to google was 15 months ago May 07 06:35:51 the whole app ? May 07 06:35:57 oh May 07 06:36:00 and the first work put into this was 13 months ago May 07 06:36:12 wow May 07 06:36:14 we asked them what would it take to get featured May 07 06:36:26 they said, design it according to the guidlines May 07 06:36:36 lol May 07 06:36:38 *guidelines May 07 06:36:43 Congrats thepoosh May 07 06:36:48 thanks May 07 06:36:52 we had a FAB that opened a menu May 07 06:36:58 they said it's not good May 07 06:37:06 we said: "but Inbox does that!!!" May 07 06:37:17 they: "inbox is not featured and will not be" May 07 06:37:21 wtf googke?!?! May 07 06:37:25 lol! May 07 06:37:26 *google May 07 06:37:30 gookle May 07 06:37:41 lol May 07 06:37:41 aha May 07 06:37:41 lol May 07 06:37:52 thepoosh, did you talk to Apple too? :) May 07 06:37:55 yeah May 07 06:38:02 they are harder to get featured on May 07 06:38:03 or did they say "FaceTime competition, BAN!" May 07 06:38:08 nah May 07 06:38:14 we aren't a direct competition May 07 06:38:15 yeah, we had a fun time with them when they lied to us about featuring us :P May 07 06:38:30 they did it to us three times already May 07 06:38:53 The winning part was "if you release the app next week you'll get featured, we have a slot ready for you, the app is awesome!" May 07 06:38:57 Then being rejected 3x May 07 06:39:05 and the last approval took 2 weeks May 07 06:39:07 http://venturebeat.com/2015/04/15/glides-apple-watch-app-telegraphs-a-future-with-live-video-conversations-on-the-wrist/ May 07 06:39:14 you approach somebody so that you can get featured? May 07 06:39:17 I..don't think so? May 07 06:39:32 Odaym: if you have the connection, you have it May 07 06:39:32 Odaym, doh, of course you do May 07 06:39:35 you forgot to bribe them May 07 06:39:50 Mavrik: we now contacted the head of our section in the appStore May 07 06:39:55 isn't it like a dedicated team inside Google who look for the BEST OF THE BEST to be featured? May 07 06:39:59 so hopefully something will happen May 07 06:40:05 because the ones who are featured certainly do deserve it if you look at their apps May 07 06:40:06 Odaym: that too May 07 06:40:06 Odaym, yes, you take them on a coffee :P May 07 06:40:19 I mean, they're not going to feature shitty apps May 07 06:40:21 and the ones who aren't certainly do not deserve it May 07 06:40:40 But having someone look at your app from that team increases your chances of being featured by about 100x May 07 06:40:48 ah true May 07 06:40:52 yea if you know someone May 07 06:41:13 they feature about 50 apps every week May 07 06:41:14 But both Apple and Google are rather demanding about app quality for a feature usually May 07 06:41:20 yes May 07 06:41:27 can't I talk to Google himself May 07 06:41:29 they really made us work hard May 07 06:41:33 loll May 07 06:41:34 Usually you get bunch of demands/requests to fix UX to fit to the guidelines May 07 06:42:02 Mavrik: I'm actually bummed by the FAB thing since I pitched it to our product team May 07 06:42:09 because of Inbox May 07 06:42:14 :D May 07 06:42:15 they had an objection about the fab? May 07 06:42:16 haha May 07 06:42:30 no, they had a single call to action when clicking it May 07 06:42:40 i told them they should open a menu May 07 06:42:43 like google May 07 06:42:44 yeah, dealing with those companies really shows that they're just a bunch of small teams :) May 07 06:42:47 only where appropriate really May 07 06:42:52 are you featured now, then? May 07 06:42:56 not yet May 07 06:42:59 why were they congratulating you May 07 06:43:09 their deadline was 100% release by yesterday May 07 06:43:15 i think it's approved alreday May 07 06:43:19 and set in stone May 07 06:43:22 so you won the Internet May 07 06:44:05 all I've been caring about is that no Agar.io clone be released May 07 06:44:13 :D May 07 06:44:47 Odaym: does this mean i took Kim Kardashian's ass' place? May 07 06:44:57 when you get featured yes May 07 06:45:05 break the store May 07 06:45:25 it'll be so cool that someone from here got featured May 07 06:45:32 it's like escaping out of prison May 07 06:45:36 gives hopes to the folks here May 07 06:45:39 haha May 07 06:45:52 when they get my CEO it should happen to them May 07 06:46:25 over here I can't even understand what this team Im working with wants, they want the exact same design for both platforms May 07 06:46:30 man we are wayyy behind May 07 06:47:00 if you want the same damn design, let me write it cross-platform for you and tada! the exact same app on two platforms May 07 06:47:03 * Odaym facepalms May 07 06:47:25 * thepoosh throws up a little in his mouth May 07 06:47:32 let me ask you, do you do this? May 07 06:47:36 who designs the same look for iOS and Android?! May 07 06:47:46 do you have a designer which sends you the design and the iOS guy and Android guy copy it as is? May 07 06:48:06 no, we have a designer for iOS and one for Android May 07 06:48:15 oh god, really? May 07 06:48:22 I've never seen that May 07 06:48:30 that's how it should be done! May 07 06:49:54 I'm going to rant about this in a blog that I dont have May 07 06:50:44 what's the app, thepoosh ? May 07 06:52:38 glide May 07 06:52:56 https://play.google.com/store/apps/details?id=com.glidetalk.glideapp May 07 06:53:18 ah right I remember that May 07 06:55:30 Odaym: just read an email, the featuring should happen today at 17:00 UTC May 07 06:55:43 for how long? May 07 06:55:59 you gonna get a LOT of downloads May 07 06:56:39 neat May 07 06:56:42 they should make a movie about this; The Featuring May 07 06:56:51 at least one week May 07 06:57:05 next they'll make a developer story about you May 07 06:57:42 with emotional music and pretty graphics May 07 06:58:03 hey episode 7 with Jake is out, fragmented May 07 06:58:11 and a solid color background May 07 06:58:28 Jage May 07 06:59:13 speaking of color background, activatedBackgroundIndicator, colorAccent, colorControlActivated - this dumbass theme system ! gahhh May 07 06:59:42 i need a freaking tool that visualizes the relationships of all these theme references May 07 07:00:44 true May 07 07:04:32 g00s: http://www.thingiverse.com/make:97838 May 07 07:05:10 hidgw, I am trying to add SwitchCompat to Menu, but as soon as I do showAsAction:never, it becomes an empty view. The onclick is working though. Code and Screen - http://pastebin.com/3P78y2jB May 07 07:05:19 groxx yes, thats it ! May 07 07:05:25 *hi. May 07 07:11:43 does anyone have any recommendations for a tutorial on using syncadapters to get data from an API, then hooking it up to a contentprovider? i'm mostly looking for patterns on handling states in the UI where data is being synced, is missing, etc May 07 07:12:26 groxx my favorite bug https://code.google.com/p/android/issues/detail?id=26251 May 07 07:12:41 because of that, 2x the XMLs May 07 07:16:32 g00s: hm. is that a bug? the built-in drawables are designed to be usable out-of-process, where afaik there's no real theming going on / nothing that can be statically determined. May 07 07:16:45 (I haven't read the thread completely) May 07 07:17:00 they fixed it in 5.0 May 07 07:17:42 thats why if you poke around, you will see lots of _holo_light and _holo_dark drawables May 07 07:17:50 but only one _material one May 07 07:18:41 huh. I guess I'll have to look more deeply. but that's for another night - I've gotta offline \o cyas all later May 07 07:19:00 it fucks up the whole theming system, because then you need to define a 3rd element, which both colorAccent and activatedBackgroundIndicator point to in common May 07 07:19:10 sounds awesome May 07 07:19:21 gnight groxx May 07 07:19:22 or, roughly on par with the rest of the styling / theming system May 07 07:19:32 heh May 07 07:20:19 they should have just implemented CSS for theming May 07 07:20:54 CSS has its issues too. though some parts of it would be awfully nice, yeah May 07 07:21:12 seems it has much less issues than this May 07 07:21:24 Have any of you had a problem like this in Android Studio? > Could not resolve com.android.tools.build:gradle:1.1.0. May 07 07:21:24 > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.1.0/gradle-1.1.0.pom'. May 07 07:21:43 I moved to China and now am having problems with Gradle sync, even on my USA VPN May 07 07:22:13 not sure if it's a project problem or net problem, because i'm on a new PC May 07 07:22:21 . May 07 07:22:43 liuwenhao: can you resolve those hostnames on the command line? tried pinging them?> May 07 07:24:17 when I ping bintray.com it seems fine May 07 07:25:43 i'm re-cloning my repo to see if i get the same problem again May 07 07:25:52 sorry don't really know anything about the China state firewall May 07 07:26:00 or how they go about breaking into your encrypted streams May 07 07:26:16 I'm using a VPN and everything else works fine (google, twitter, etc) May 07 07:26:18 this is the first problem i've had May 07 07:26:22 why don't you try loading that URL in your browser? May 07 07:28:56 it's fine in the browser - but connection refused in Android Studio May 07 07:29:24 any proxies set in the browser? May 07 07:29:33 liuwenhao dont have offline mode set ? May 07 07:29:45 guess if you're going to live in China you better get used to crap like this :p May 07 07:29:50 I wonder what's new in 1.2.1. May 07 07:32:09 if i do offline mode it says no cached version is available for offline mode May 07 07:32:24 no proxy in the browser, just one system wide VPN ( Astrill VPN) May 07 07:33:04 when you load it in browser, does it show any SSL-related warnings? May 07 07:34:26 <_genuser_> anyone here tweet? do you single or multiple accouns? May 07 07:36:13 This seems like a basic Java question, but I don't get it. May 07 07:36:14 http://pastebin.com/y0HW2JzH May 07 07:36:18 Why does one compile but not the other? May 07 07:36:38 Only difference is "Outer.Inner" instead of "Inner". May 07 07:36:51 And both compile if I remove "". May 07 07:37:35 fully qualified vs. dynamic / implicitly resolved maybe? May 07 07:38:13 <_genuser_> I'd think tho, that it's inner class and var is only being declared and not instantiated so it would fine. May 07 07:38:40 ravilov: It seemed to work once I turned off my VPN. Not sure why but now that I have it cached I will be staying with offline gradle mode May 07 07:38:53 cool May 07 07:39:09 <_genuser_> ravilov: how's it hanging there tonite? May 07 07:39:39 <_genuser_> only second thought, "how you doin'" is probably much better than knowing how "it's" hanging. May 07 07:40:21 Oh, gawd, I'm asking in ##java. May 07 07:40:30 * ravilov scratches around May 07 07:40:32 Things are bad when you have to ask in there. May 07 07:40:39 _genuser_, hanging pretty well, thanks for asking May 07 07:41:05 Hey people ^_^ May 07 07:41:05 <_genuser_> ravilov: I'm trying to decode this twitter thing. eh, if you do'nt login, it will let you pick what you want to read about. May 07 07:41:25 <_genuser_> if you login, it only shows you catered news based on who you follow. and if you don't follow anyone then generic crap. May 07 07:41:29 I'm looking at the Material Cards design guidelines May 07 07:41:31 <_genuser_> still only top 10 trends only. May 07 07:41:43 and it says my rich content has to be 16:9 May 07 07:41:51 How do i know my content is 16:9 ? May 07 07:42:08 <_genuser_> has to be vs. finding out - different things. May 07 07:42:24 _genuser_, know next to nothing about twitter, all I can say is good luck May 07 07:42:31 <_genuser_> as the content creator, you don't find out what you content looks like. You create it to look a certain way. May 07 07:42:39 * ravilov was "forcefully" registered on twitter by a friend May 07 07:43:17 <_genuser_> ravilov: the thing is it's kinda nice to have a twitter account to occassionally tweet your favorite design pattern,etc. apparently they ask if you tweet now, in job interviews. May 07 07:43:27 Another thing I don't understand is that I get a warning from IntelliJ about the use of the raw type ("Outer" instead of "Outer" or something), but I don't get this warning when I say "AdapterView.OnItemClickListener". What is going on here. May 07 07:43:58 It's like a weird alternate reality in which Java starts being inconsistent. May 07 07:44:18 _genuser_, oh? good thing I'm not switching jobs anytime soon May 07 07:44:22 <_genuser_> TacticalJoke: being more focused on getting crap to work, I have not ever worried about such technicalities. But you bring up very interesting points. May 07 07:44:34 <_genuser_> TacticalJoke: I wonder if #java will offer more insight. May 07 07:44:37 and when I do, I'll make sure to go for one where they care about my tech skill over my social skills :p May 07 07:44:52 _genuser_: Yeah, trying there. No answer so far. Not even an insult. :D May 07 07:44:56 They must be asleep! May 07 07:45:01 <_genuser_> LOL. May 07 07:45:04 "You're asking a question? FUCK YOU!" May 07 07:45:07 That's what I expect from there. May 07 07:45:12 o/ I just `repo sync`ed aosp, found okhttp source, but how to tell android studio where to find it ? (Trying to step into) May 07 07:45:34 <_genuser_> ravilov: if you go for mobile jobs, it nice to know how other apps in your space work. and of course people want to know how you can make their app a success. May 07 07:45:49 Or something more subtly insulting: "Well, someone who wasn't dumb wouldn't be asking such a question." May 07 07:45:52 <_genuser_> ravilov: hearing tweets, facebook, social content gives people the tinglies. May 07 07:46:08 _genuser_, by making it technically good, not by promoting it May 07 07:46:13 I'm a dev, not a salesman May 07 07:46:23 <_genuser_> TacticalJoke: would have thought it'd be like, "well this is an android problem. if you're dumb enough to use android, well then we don't _want_ to help you!" May 07 07:46:27 haha May 07 07:46:29 lol, AS lets me set android:foreground on a relativeLayout May 07 07:46:32 I never mention Android in there for that reason. May 07 07:46:46 The moment you say it -- boom. Wave goodbye to any chance of an answer. May 07 07:47:04 what if you say "NOT android"? May 07 07:47:06 TacticalJoke: Do you have experience with the new Material stuff like CardView? May 07 07:47:08 <_genuser_> ravilov: true, I'd agree. but also an architect familiar with this crap will be able to put in integration features, etc. much easier. May 07 07:47:26 eh May 07 07:47:36 TacticalJoke seems 1.2.1 fixes gradle syn in progress ... forever May 07 07:47:56 <_genuser_> ravilov: I'm kinda stuck in the same boat with AngularJS, meteor, react, bootstrap, etc. tons of JS frameworks for what? May 07 07:48:11 ^^ this May 07 07:48:12 <_genuser_> ravilov: each one of the devs could have fixed teh exiting one to make it more flexible instead of writing a new one. May 07 07:48:13 ReScO: Nah. May 07 07:48:17 g00s: Ah, cool. May 07 07:48:20 because everybody thinks they can do it better than anyone else, _genuser_ May 07 07:48:21 all this stuff is changing rapidly...probably will for a while yet May 07 07:48:26 ravilov: lol May 07 07:48:38 i was doing webapps in perl cgis in the 90s...not even recognizable as a solution in 2015 lol May 07 07:49:04 <_genuser_> ravilov: true, that. it has created an environment, where knowing html/css/js isn't enough. if you aren't down with angularjs, you can't get working on some companies latest website, etc. May 07 07:49:11 sort of like how object-oriented was THE way to code for a while, and now everyone's hot on functional instead May 07 07:49:27 <_genuser_> ravilov: it makes things harder, but I suppose it's a created skillset that then pays off to have. May 07 07:49:39 _genuser_, (re: js frameworks) https://xkcd.com/927/ May 07 07:49:49 <_genuser_> myke: or how everyone's hot on RESTful. When has the web been anythign else? May 07 07:50:22 well, not so long ago the thing to do was roll your own protocol with google protocol buffers and whatnot... May 07 07:50:55 whats wrong with that :) May 07 07:51:02 * g00s waiting for protobuf3 May 07 07:51:06 i've seen the cycle of client-server to local apps and back again a few times now May 07 07:51:07 <_genuser_> ravilov: lol, so true. so this today: http://bitworking.org/news/2014/05/zero_framework_manifesto May 07 07:51:46 the problem is human nature...devs get overwhelmed by the feature list of whatever and quickly turn into rabid evangelists May 07 07:51:57 going with 0 libraries is brutal man May 07 07:52:02 on android May 07 07:52:12 <_genuser_> myke: RESTful was some guy's PhD thesis in 2000, 14yrs later in 2013-2014 it became a hot topic. because some guy decided to push it. May 07 07:52:12 _genuser_, I never use any JS frameworks. I am quite fluent in native JS and I already know how to do what I need, frameworks mostly just add bloat and stand in the way. May 07 07:52:18 the only prediction i'll make is there'll be ever more glue/interaction layers, not less May 07 07:52:34 going forward, you have your new thing - and everything that came before, you can't just ignore it or toss it out May 07 07:52:35 g00s, I still refuse to use appcompat anywhere :p May 07 07:52:46 <_genuser_> ravilov: I'm fine with jquery libs. mainly because it solves browser compatibility crap and I'd have to write from scratch. and for the animations. May 07 07:52:57 ravilov heh, if you are targetting GB ... May 07 07:53:16 * myke is targeting GB May 07 07:53:27 held one of my user's phones yday - android 2.3.1 May 07 07:53:34 g00s, I target cupcake/eclair normally May 07 07:53:43 er, not eclair, donut May 07 07:53:47 <_genuser_> myke: plus what's with all the MVC patterns all over. It has always been the proper way to isolate layers. May 07 07:53:54 i haven't done much dev yet but so far appcompat has seemed like a good thing May 07 07:54:06 <_genuser_> design patterns in general are taking over. making people believe they must be sr. level now that they talk design patterns May 07 07:54:07 yeah MVC is overrated and often a poor fit May 07 07:54:17 ravilov you can't even get that shit from the sdk manager any more, thats retarded May 07 07:54:35 so you keep saying May 07 07:54:42 never stopped me before May 07 07:54:43 :D May 07 07:54:49 real software (rather than neat example code that perfectly fits whatever is being promoted) is naturally rhyzomatic...there are always many cross-connects and interactions that don't fit neatly into a theoretical model May 07 07:54:50 <_genuser_> myke: one of my sr. engineers assigned to me to write middleware data fetch component actually had the src folder as: ./model ./view ./controller May 07 07:55:01 <_genuser_> why would you need a view in a middleware data retrieval component? May 07 07:55:01 yep that's crap, straight up May 07 07:55:09 exactly May 07 07:55:11 I guess it's what ravilov said, but I might end up reading the JLS. :[ May 07 07:55:20 I don't mind reading the JLS for fun, but when there's an actual question... ugh. May 07 07:55:25 <_genuser_> myke: and she fought with me tooth and nail to convince me that I was wrong AND STUPID! May 07 07:55:30 android was MVC until fragments...you can almost see where the android devs gave in May 07 07:55:39 10 days later... "I figured it out!" May 07 07:55:54 _genuser_: ah those are bad people to have as managers...unfortunately that personality is how they get to be managers :/ May 07 07:56:25 <_genuser_> myke: nah, she was a sr. dev assigned to me (me being lead architect), to help me finish off some work. May 07 07:56:27 ravilov: what you mean its in my head... May 07 07:56:38 _genuser_: oh, haha, that's much worse! May 07 07:56:41 ravilov: is that a joke May 07 07:56:51 <_genuser_> myke: it was clear to her that I make design decision and she started challenging me every step. singletons, mvc, interfaces.... blah blah May 07 07:57:13 ravilov: snitches get stitched :( May 07 07:57:17 _genuser_: ugh :( May 07 07:57:25 myke .. i dont think its any coincidence android is the way it is, and dianne has on her public webpage being into BDSM May 07 07:57:29 rucka, behave or get burned May 07 07:57:38 <_genuser_> myke: since it was bored the project hadn't started yet, and this was teh first time we were using this specific framework, I had already done 90% functional proof of concept. May 07 07:57:59 ravilov: do you or do you not hear someone talking when you read this im not a psycho May 07 07:58:02 <_genuser_> myke: so I told her to just write the retrieval component. And when I knew she'd cause trouble, I said, "write it the way you think it should be written". May 07 07:58:08 * JesusFreke sighs May 07 07:58:11 <_genuser_> myke: just implement this little interface that I provide. May 07 07:58:16 _genuser_: when you read these words, you hear someone reading it to you right? May 07 07:58:29 _genuser_, fighting and saying you're stupid, how's that for helping out, eh? May 07 07:58:51 <_genuser_> rucka: sorry didn't get what you meant. May 07 07:59:05 _genuser_, ignore, he's trolling from another channel May 07 07:59:08 <_genuser_> ravilov: yeah she was telling me that I was just plain stupid. those exact words May 07 07:59:17 _genuser_: i worked at intel, for just 5 months, yet saw so much amazing incompetence May 07 07:59:36 <_genuser_> so she found a way to mess it up. she implemented the interface and then decided her component initialized itself from a .config xml file. May 07 07:59:41 makes you wonder how did they ever get a working CPU out, eh myke? May 07 07:59:48 one team of 2 people was to supply a trivial audio riser board to work around a dumb problem...literally all it had to be was an op-amp with two output May 07 08:00:02 <_genuser_> I'm using this middleware component in an already initialize app, I'll initialize your component and shoot off requests. how hard is that? May 07 08:00:18 myke were both x-intel :D May 07 08:00:22 after the 3rd or 4th insane schematic the senior EE and I concluded the team was simply randomly connecting vcc, gnd, signal lines, and op amp May 07 08:00:32 lol May 07 08:00:40 <_genuser_> myke: lol, that's hilarious. May 07 08:01:00 myke, brute force approach fts May 07 08:01:02 ftw* May 07 08:01:24 <_genuser_> my current job, we have similar stuff. we have sr. SME's (subject matter experts) who say things as stupid as, "the sky is below ground level" May 07 08:01:32 <_genuser_> ravilov: lulz!! May 07 08:01:43 <_genuser_> gotta get them connectors right sometime! May 07 08:02:16 in all the chaos there is at least one combination that resembles order, sooner or later we'll stumble upon it May 07 08:02:35 wait... May 07 08:02:41 where else would the sky be?? May 07 08:02:45 * ravilov hides May 07 08:03:15 <_genuser_> one of our sr. SMEs, actually has a much better approach. he doesn't even acknowledge a problem from his domain when a mass mail it sent out. May 07 08:03:27 g00s: well i was only a contractor...never had a blue badge May 07 08:03:34 <_genuser_> someone actually has to publicly address him and say something like, "yo x, what do you think. what's teh problem ehre" May 07 08:04:16 She has that on her public page? Jeez. May 07 08:04:35 how old is she? May 07 08:04:55 What is it with people on the Internet sharing every last detail of their life? May 07 08:05:41 <_genuser_> wait, who is "she"? May 07 08:05:41 hehe May 07 08:05:45 "We're heading to McDonald's. Our home will be empty from 9pm to 11pm." May 07 08:05:51 i'm actually asking to see if she's older...iirc the BSDM community was about being open and fairly aggressive about their thing May 07 08:06:09 _genuser_: Dianne Hackborne, I think. May 07 08:06:17 -e May 07 08:06:28 <_genuser_> hmm, in my story telling, I missed the bit about someone posting that on their page. May 07 08:06:28 hackborn? srsly?? May 07 08:06:49 what conversation did I just return to the middle of? May 07 08:07:23 Troffel, just turn around and walk away. slowly. May 07 08:07:36 What is going on with the Internet and oversharing? I remember only a few years ago YouTube telling people not to share their real name. May 07 08:07:41 Now it's encouraging people to. May 07 08:07:53 the difference? google bought them May 07 08:08:02 more ID = more AD monies May 07 08:08:12 True.dat. May 07 08:08:37 how to set typeface for a textview in recyclerview ? May 07 08:08:39 <_genuser_> on thinks like g+, now google tries to force you to have your real name. May 07 08:08:52 <_genuser_> you can't have dictionary words as a name, it will reject it. May 07 08:09:09 _genuser_, but my last name really is Table... May 07 08:09:16 it does? damn. well difference is people gladly give their realm name on Facebook May 07 08:09:20 <_genuser_> I know, they don't deal well with that. May 07 08:09:32 I need some help with following design guidelines May 07 08:09:39 I've never given my real name online (except privately, when buying stuff {e.g., to Amazon}). May 07 08:09:44 <_genuser_> google+ is so facebook-wannabe it's not even something they're trying to hide. May 07 08:09:58 ok, and now... dev time May 07 08:10:05 we have at least two people trying to ask questions May 07 08:10:34 _genuser_, of course, what else would g+ aspire to be? it's either dropping in on Facebook or Linkedin's lawn. May 07 08:10:51 I'm having trouble making everything look nice in a Card May 07 08:10:55 and they spend way too long figuring out where to go d: May 07 08:11:30 <_genuser_> android-dev048_: android:typeface="sans" May 07 08:11:37 <_genuser_> android-dev048_: in your xml layout file. May 07 08:12:09 I wanna set a custom font using typeface May 07 08:12:46 Looks like Kotlin's anko break support v7 tinting :/ May 07 08:13:08 Mornin happy Android people, which part of the API are we bashing today_ May 07 08:13:40 <_genuser_> android-dev048_: in that case, I can only link SO here: http://stackoverflow.com/questions/3651086/android-using-custom-font May 07 08:13:42 Troffel, http://i.imgur.com/4SaMqEZ.jpg (seemed appropriate) May 07 08:14:06 Mavrik, the theming system May 07 08:14:16 I'm bashing Java itself today. May 07 08:14:31 A rarity. May 07 08:14:45 <_genuser_> android-dev048_: alternatively: http://stackoverflow.com/questions/3203694/custom-fonts-in-android May 07 08:14:47 what's not to like :o) ? May 07 08:14:48 i tried setting custom font using typeface from recyclerviewr adapter onBindViewHolder function May 07 08:15:04 but its not working May 07 08:15:10 >.> May 07 08:15:16 it was working with listview May 07 08:15:29 android-dev048_, use a library May 07 08:15:29 <_genuser_> android-dev048_: are you setting this in the adapter's getView()? May 07 08:15:31 So my situation is that I get a compile error if I add "" to one of my classes. Seems like a design problem. :[ May 07 08:15:46 no May 07 08:15:47 don reinvent wheels May 07 08:15:49 <_genuser_> TacticalJoke: that was yesterday. you can't complain about the same thign today. May 07 08:15:53 Doh! May 07 08:16:28 no I did it via recyclerviewAdapters onBindViewHolder method May 07 08:17:16 android-dev048_, use a library in onBindViewHolder method :p May 07 08:17:36 <_genuser_> android-dev048_: I'm not familiar with that. but where ever you're returning a view, in that you should get a ref to the textview and assign the font. May 07 08:17:36 <_genuser_> I'll defer to someone who's used recyclerview. May 07 08:17:51 I wonder if they ban you in ##java if they can't answer your question. May 07 08:18:08 yes i tried like that May 07 08:18:44 it was working perfectly when i use listview May 07 08:19:09 android-dev048_: what are you using the RecyclerView for? May 07 08:19:11 <_genuser_> TacticalJoke: they just insult you and make you believe your question didn't invalidate their self-esteem. May 07 08:19:27 :D May 07 08:20:13 to have grid layout of material design May 07 08:20:16 I mean... you're not *really* questioning java design, are you? May 07 08:20:19 you can't be that daring May 07 08:21:03 I guess If you really want fun, go into ##java and ask for their opinion about kotlin or scala ^^ May 07 08:21:09 drop by ##java and ask why Java can't do 'that python thing' May 07 08:21:09 android-dev048_: http://stackoverflow.com/questions/28837181/unable-to-add-custom-font-in-recyclerview-viewholder May 07 08:21:46 drop by ##java, ask about coffee, act disappointed when they can't answer coffeequestions May 07 08:21:47 went through stachoverflow but no help May 07 08:22:05 android-dev048_: paste your stacktracce to pastie.org May 07 08:22:17 there is no error May 07 08:22:32 Are you sure? May 07 08:22:49 You've checked logcat? May 07 08:22:57 yes May 07 08:23:02 this is my adapter http://pastie.org/10175308 May 07 08:23:34 ReScO, makes sense, I mean the java logo DOES include a coffee cup http://www.ece.uic.edu/~cpress/jmx/jmx-1_2_1-src/doc/doc/images/java_red.gif May 07 08:23:51 and this is my typeface class http://pastie.org/10175309 May 07 08:24:04 android-dev048_, even if it would work, this is horrible memory wise May 07 08:24:13 you likle end with an out of memory error May 07 08:24:17 gingerbread should be banned :/ May 07 08:24:28 ah nvm. its static kk :) May 07 08:24:50 yoavst, why? May 07 08:24:54 yoavst, ban it for your apk :)( May 07 08:25:09 ? May 07 08:26:07 android-dev048_: you're using getContext() instead of getAsstest() May 07 08:26:12 Assets* May 07 08:26:51 ASSTESTS May 07 08:27:22 i call this class http://pastie.org/10175309 May 07 08:27:35 I call this a class, too May 07 08:28:04 ReScO, whatever was going through your head at the time... May 07 08:28:27 ass tests obviously ^^ May 07 08:28:42 ravilov: why not :/ danijoo for the market of this app, gingerbread got 15% or more May 07 08:28:42 whaha May 07 08:29:07 android-dev048_, why dont you make your live more easy and use https://github.com/chrisjenx/Calligraphy May 07 08:29:33 this reduces your code to fontPath="fonts/yourfont.ttf" in the xml file May 07 08:29:37 yoavst, I asked first May 07 08:29:43 no May 07 08:29:46 let him suffer May 07 08:30:10 Odaym, you mean me? May 07 08:30:14 him May 07 08:30:22 ravilov: backward compatibility sucks May 07 08:30:22 Odaym, why? :o May 07 08:30:38 he wont appreciate what it can do unless he tries to do it himself May 07 08:30:43 <_genuser_> whoa Odaym is angry! May 07 08:30:47 yoavst, comes with the territory May 07 08:30:52 good learning experience, his class is insufficient implementation May 07 08:30:59 either way, i need some help with a CardView layout, i'm trying to figure out the proper design, especially how i'm going to make the google maps fragment i'm using keep to a 19:9 ratio May 07 08:31:05 is there ny way to fi tht without using ny lib May 07 08:31:17 whut? May 07 08:31:18 <_genuser_> man, discovering so much new music on youtube. get sidetracked. May 07 08:31:24 android-dev048_, yes. but thats stupid May 07 08:31:31 <_genuser_> I need to get back to my web^H^H^H android project. May 07 08:32:21 _genuser_, looks like the more you hang out in this channel, the less actual work you do May 07 08:32:25 http://www.google.com/design/spec/components/cards.html trying to follow the guidelines for the Card with the Optional Header and a Single content block May 07 08:32:38 <_genuser_> ravilov: don't rain on my parade, man! :p May 07 08:33:12 <_genuser_> android-dev048_: your determination to do it yourself is admirable and misplaced both. May 07 08:33:37 <_genuser_> android-dev048_: if you have time, learn to do it yourself and it will teach you a lot about underlying framework/technology. May 07 08:33:41 _genuser_, hey dude, didn't we just finish talking about the no-lib manifesto? :p May 07 08:33:55 <_genuser_> android-dev048_: but if you're short on time, just use a lib and move on with your proj. May 07 08:34:17 :-( May 07 08:34:24 <_genuser_> ravilov: no frameworks! libs are ok if they solve something. frameworks bring with them a mindset and abstract the underlying tech May 07 08:34:45 <_genuser_> ravilov: then multiple frameworks force you to be an expert of not be able to work on a project. May 07 08:34:53 * ReScO grabs tweezers, starts pulling out hairs due to Frustration May 07 08:34:59 android-dev048_, http://de.wikipedia.org/wiki/Not-invented-here-Syndrom May 07 08:35:23 ups. wrong language :( May 07 08:35:47 ReScO, now line up the hairs around the card design, that should make it look attractive :p May 07 08:35:56 (sorry I can't actually help, never dealt with cards) May 07 08:36:24 android-dev048_: this is the class you should be having http://pastie.org/10175322 May 07 08:36:45 <_genuser_> ravilov: so cards, are these part of the android UI and the MD controls how to lay them out? Or does MD describe concept of cards that you implement on your own? May 07 08:37:26 _genuser_: CardView is a real thang May 07 08:37:55 <_genuser_> ReScO: so MD just dictates how you should setup it's UI params? May 07 08:38:07 is that the prblm with typeface class? May 07 08:38:44 MD? May 07 08:38:48 is there an open source license that would prevent someone from forking the code, changing the advertising id, and republishing? i.e. an open source license that prevents monetization of forks, but lets the author monetize May 07 08:38:52 <_genuser_> material design. May 07 08:39:10 * ravilov deals _genuser_ some cards May 07 08:39:24 yes it missing crucial methods May 07 08:39:26 * _genuser_ looks at his cards discreetly May 07 08:39:34 MD tells me the margins, padding, and how content should look for UI Continuity May 07 08:39:47 <_genuser_> I see. May 07 08:39:48 _genuser_: http://www.google.com/design/spec/components/cards.html May 07 08:40:00 you are following a bad tutorial or something, figure out exactly what you want to do so you can formulate the question properly and get a correct answer man, its not hard youre just applying a font May 07 08:40:21 <_genuser_> I'm of the opinion that google should have spec'd out MD and then implemented a sample lib that still allows changing all margins padding and such params. May 07 08:40:39 <_genuser_> it would have maintain a uniformity instead of each implementing it their own way. May 07 08:41:09 <_genuser_> but I can also see how that might not have been possible. lot of UI are pieced together and ultimately people will make it their own way. May 07 08:41:10 duncannz, any license that does not allow commercial use May 07 08:41:26 the author can always do with his own code what he want May 07 08:42:23 danijoo: great May 07 08:45:07 Odaym tried your class for typeface... but no success May 07 08:45:39 MD? May 07 08:45:50 <_genuser_> material design May 07 08:45:57 <_genuser_> matdes? May 07 08:46:48 ah, I'm more of a fan of community driven platforms than single-corpo driven ones May 07 08:48:43 danijoo: what is an example of a code license that does not allow commercial use? Neither GPL, LGPL, BSD or Apache seem to disallow commercial use; GPL just says that the altered source code must be published May 07 08:49:42 <_genuser_> Mavrik: so you're not so hot on material design then? May 07 08:49:51 I love material design May 07 08:50:06 It's the best thing that happened to Android... I just don't believe in Google having to provide anything for it May 07 08:50:21 Google Play says my package already exists. I can quite well say it doesn't. Anyone else had this happen? May 07 08:50:25 *anything/everything May 07 08:50:25 <_genuser_> oh, I see. you meant you prefer people/community writing their own implementation, etc. May 07 08:50:41 _genuser_, yeah, Python is one of those communities that do alot of really great stuff May 07 08:51:01 <_genuser_> Mavrik: do you do android dev for work? May 07 08:51:04 yes May 07 08:51:23 duncannz, some creative commons license allow this May 07 08:51:32 CC BY-NC-SA for example May 07 08:51:33 <_genuser_> Mavrik: how's the market? do people expect devs to knwo material design? I'm .NET dev. Thinking of branching to android. May 07 08:51:33 danijoo: yes but creative commons is not for code May 07 08:51:54 Mav, have you worked with the google maps fragment and CardViews before? May 07 08:52:03 <_genuser_> Mavrik: with .NET I can probably look for lead architect / team lead type jobs. with android I'd probably still have to do more coding. May 07 08:52:05 currently companies are rather desperate for any Android devs it seems :P May 07 08:52:10 <_genuser_> Mavrik: but it'd be new. May 07 08:52:18 danijoo: https://wiki.creativecommons.org/Frequently_Asked_Questions#Can_I_apply_a_Creative_Commons_license_to_software.3F May 07 08:52:27 <_genuser_> Mavrik: right, desperate. I know someone 5yrs experience making same as me with 15yrs experience. May 07 08:52:31 most companies have their own design people so knowing material design really doesn't factor much into Android dev experience :) May 07 08:52:59 <_genuser_> altho, I have not been the best negotiator for salary. May 07 08:53:04 Meh. May 07 08:53:06 mostly you're going to be the single Android dev, so being able to drive a project from beginning to the end is what it's looked for May 07 08:53:13 + Mavrik May 07 08:53:13 and being able to say no to iOS fanboys May 07 08:53:18 Trying to find out how to keep the maps fragment in 16:9 aspect ratio May 07 08:53:36 Seriously baffled why google play's dev dashboard says my package already exists. May 07 08:53:38 ReScO, I haven't worked with it... but it seems you have a layouting issue really May 07 08:53:43 knowing both sides of the coin can pay off May 07 08:53:50 ReScO, is there a reason you can't just set width/height in dp? May 07 08:53:53 bout to publish my app May 07 08:54:01 <_genuser_> Mavrik: my current work, I'm lead architect / lead dev. I've been assigned other devs to do work when need. but mostly, it was a project I've been invovled in from beginnign to production. May 07 08:54:03 Mavrik: design guidelines and all May 07 08:54:06 indrora, someone else made the app with the same package? it has to be globally unique May 07 08:54:33 ReScO, I'd do it with a custom viewgroup that forces a 16:9 layout May 07 08:54:35 Mavrik: I'm quite certain that it's unique. May 07 08:54:39 it's probably the least hassle May 07 08:54:45 <_genuser_> Mavrik: then we branch it for customers and customize, then production. with 3 major version upgrades. So I'm comfortable driving projects and working with all these VPs, CTO's May 07 08:54:58 duncannz, didnt no that May 07 08:55:13 <_genuser_> Mavrik: so maybe I should look into android. altho, only recruiters pinging me atm are java. May 07 08:55:19 Mavrik: I'm more willing to suggest that someone's tried to squat my package ID May 07 08:55:20 Mavrik: http://material-design.storage.googleapis.com/publish/material_v_3/material_ext_publish/0B-Ef4kCjUzkPUEZzOWZzckI0WUk/components_cards17.png trying to follow this "template" May 07 08:55:38 Mavrik is getting a LOT of highlights, lol May 07 08:55:48 He's popular today May 07 08:56:35 Mavrik, moar highlights May 07 08:56:57 I'll just pass on annoyance through this code review, our junior android devs will love it ;P May 07 08:57:13 indrora, possible and I'm afraid you can't do much about it :/ May 07 08:57:18 I'm fairly new in UI layout, especially mobile devices (read as: i suck at layouts) May 07 08:57:48 ReScO, yeah, honestly I'd just do layout_width="match_parent", layout_height="160dp" and to hell with exact measurments May 07 08:58:06 that's how you can wing most of Android layouts, they still look great and it's easy to maintain May 07 08:58:34 otherwise you're pretty much forced to add a layer above mapview that does the 19:9 magic in onMeasure()/onLayout May 07 08:58:34 Hmm. May 07 08:58:48 I'm looking for less code, more xml.. May 07 08:58:49 Mavrik: I'll poke at Google's support and see if I can do anything May 07 08:59:17 ReScO, it's usually also a rather good idea to have card sized statically in dp May 07 08:59:28 and define maybe 2 or 3 sizes depending on screen size May 07 08:59:45 that makes layouting significantly easier (but it depends if they have to adapt to text size) May 07 09:00:11 Mavrik: are there any groups i can size? May 07 09:00:21 http://material-design.storage.googleapis.com/publish/material_v_3/material_ext_publish/0B-Ef4kCjUzkPYThLYWdwT1ZQbnc/components_cards30.png May 07 09:00:32 e.g. you say "ok, my cards should be 200dp wide, 180dp high" and then adjust internals accordingly... maybe leave height as "wrap_content" and leave textviews as "wrap_content" as well May 07 09:00:37 like there, it says above the content, it should be 72dp May 07 09:00:52 mhm.. have anyone managed a pinch in/out by using adbs sendevents yet? May 07 09:00:55 you just say layout_height="72dp" May 07 09:01:03 how can i create a empty space there in which i can sub-add multiple items? May 07 09:01:13 like the avatar, title and subtitle? May 07 09:02:01 ReScO, you make a top-level layout that has layout_height="72dp", layout_margin="16dp" and then inside you make a RelativeLayout/LinearLayout that arranges those items May 07 09:02:22 and how do i do that...? May 07 09:02:56 I'm quite... bad at layout, especially advanced things like this, so i'm trying to learn it ^^" May 07 09:04:38 let me ask you this, though May 07 09:04:48 how do you keep center anchored while zooming in/out on a map May 07 09:04:54 bet you don't know that one May 07 09:05:44 meaning dont follow my finger when I double tap, just keep zooming in into the middle of the map May 07 09:06:53 no idea May 07 09:07:05 I guess intercept the tap May 07 09:08:16 and do what May 07 09:08:25 Uber does it so naturally, I cannot figure it out May 07 09:08:31 Hello. I am using the facebook SDK to create a 'Request.newMeRequest', but nothing is happening in its callback. No error even. code: https://gist.github.com/vedant1811/fca7c3d171cda0560df1 May 07 09:08:36 Buber May 07 09:08:44 Odaym: Are you using Google maps or something like OSM? Because the "cheap" way is to intercept the map movement events and at each "zoom" (pinch?) action and re-adjust the map to be at its original position May 07 09:09:09 naturally of course you would say that this would be the algorithm May 07 09:09:25 on paper it's great, on the app you will get a lot of jerks and generally ugly behavior May 07 09:09:34 see Uber's example to get an idea if you like May 07 09:09:53 if I do this, 12030000 SO rep May 07 09:09:58 12093109238123K rep May 07 09:10:04 Odaym: use mapview inside a relative layout. then add a button on top of it. I get exact uber like behaivour May 07 09:10:17 Odaym: wont work with map fragment May 07 09:10:23 really? even when you double tap on somewhere? May 07 09:10:32 it doesnt zoom on where your finger double tapped? May 07 09:10:38 just zooms right into the middle all the time? May 07 09:10:53 mhm.. have anyone managed a pinch in/out by using adbs sendevents yet? May 07 09:11:13 Odaym: yes. they are 2 different views independant of each other. anything I do on the map, doesn't affect my button May 07 09:11:29 the button is just 'above' the map May 07 09:11:30 the button is not affected of course, that's not what I mean. May 07 09:11:37 I know, that's not what I mean May 07 09:11:46 Odaym: oh. then? May 07 09:11:50 read again May 07 09:11:55 its pretty clear May 07 09:12:16 and has nothing to do with the button and how its laid out May 07 09:12:43 the zoom behavior is what's different, even with no buttons or anything, you double tap on top left, you zoom into top left May 07 09:13:03 with Uber you double tap anywhere, you always zoom into the middle May 07 09:13:38 Odaym: ohh. got it. my bad May 07 09:13:49 are you able to do that? May 07 09:13:56 Odaym: nope May 07 09:14:24 then you lose sight of your markers by a significant margin, you set the marker somehwere, zoom in on it and you're on a completely different place in the map from where you thought you were May 07 09:14:50 I don't understand the issue, what's the problem with intercepting a double-tap and then calling zoom camera animation on map center? May 07 09:14:56 hi i would like to remove the copilation of an activity from a project; instead of deleting the activity section on the manifest is there an attribute like compil=false ? May 07 09:15:08 that's mainly natural when you are placing markers, of course they will not be on the exact pixel you placed them on. that's why Uber doesnt set markers, instead they just move the camera back to center when you Set Pickup May 07 09:15:21 it will jerk Mavrik, I think May 07 09:15:29 Odaym, why? May 07 09:15:36 cause it just seems like some property has been set that constrains that issue from ever needing to be fixed May 07 09:15:54 I will try May 07 09:15:57 There's a known maps issue where creating markers is slow May 07 09:16:08 That is, prebaked markers are created on main thread and totally kill it May 07 09:16:32 yea the markers are a different issue May 07 09:16:40 looking into escaping them altogether, they are not needed May 07 09:17:14 I don't think they fixed that yet though, it's annoying as hell May 07 09:17:22 but if you have a button sitting in a layout "above" the map, when you zoom in on it you want to see where you thought you were, not 10s of miles away just because you zoomed into a non-center area May 07 09:25:38 misterli: http://stackoverflow.com/questions/25363526 May 07 09:46:00 o/ I symlinked okhttp to Sdk/sources/android-22/com/android/, (trying to debug (step into) in Android Studio) but android studio don't open the file when I step into okhttp, any idea ? May 07 09:51:43 its strange when I see different things in chrome webview on my app than in chrome May 07 09:51:56 <_genuser_> on windows, anyone notice that when you close AS, it keeps running in the background? It's visible in task manager. May 07 09:52:05 What OS version are you testing on Jesperhead May 07 09:53:04 VnM: 4.4.4 May 07 09:53:40 And whats different May 07 09:55:11 VnM: The html contains JS code to call a function when a button is clicked. in my app (which is a wrapper that pulls some data to be passed into the html fragments) the function seems to be getting immediately called once the html has loaded. May 07 09:55:36 this doesnt happen with desktop chrome May 07 09:55:59 (static data rather than the app having to pull/plug it in) May 07 09:56:09 which ive also tested with my app May 07 09:56:33 i thought this might also be a JS issue, I posted in that channel as well with no responses yet May 07 09:56:57 And you're not accidently still calling the code in your onPageFinished method or something? May 07 09:57:45 nah. I use the same java for multiple pages. This is the only one that launches a rogue function May 07 09:58:31 That is strange May 07 09:59:30 agreed. very concerned May 07 10:00:32 I'm not familiar enough with JavaScript to give any insight on that, but maybe try moving the onClick code of the button or something and see if it still happens May 07 10:00:59 lol thats actually brilliant debugging and i feel dumb for not trying it yet. May 07 10:01:08 I'm using TImer and TImerTask to update a view, the task is periodicly, is there a way to detect from the task itself if the view is not longer alive? not on the screen? May 07 10:05:53 hi, I'm having issues with my view states not being stored on screen rotation May 07 10:06:20 but all my views and all their parents have id set, so why are they not preserving their state? May 07 10:08:50 anyone know why? May 07 10:09:13 Which views and which states? May 07 10:11:17 @TacticalJoke I have a simple EditText May 07 10:11:52 @TacticalJoke and a Button that on click changes it's text to getText()+"*" May 07 10:12:20 but on rotate they both reset May 07 10:13:16 oh actually the EditText keeps it's text, sorry! May 07 10:13:29 I don't think Buttons keep their text by default. May 07 10:13:40 Try setting android:freezesText="true" on the Button. May 07 10:13:48 it's the Button that resets its text, and also I have another button where I toggle its visibility May 07 10:13:50 (Never tried, but it'd be interesting to see whether it works.) May 07 10:13:59 Visibility isn't persisted, yeah. May 07 10:14:13 TacticalJoke: any way to persist visibility? May 07 10:14:41 I think you have to do it manually (with onSaveInstanceState, etc.). May 07 10:16:23 i have try to followed tutorial google map http://umut.tekguc.info/en/content/google-android-map-v2-step-step i have download that project and import on my workspace but stil not work, anybody help me? i still confused May 07 10:16:55 why is everyone trying google maps this week? May 07 10:16:58 is there something new? May 07 10:18:11 danijoo: hmm i don't know i just only want to learn, can you help me? May 07 10:18:12 why can i not send data accross network, contineously using javascript May 07 10:18:36 harencode, no. i never used gmaps May 07 10:18:54 i was just wondering because i think you are the third this week May 07 10:18:58 TacticalJoke: ok thanks May 07 10:19:14 danijoo: did you include me in these three? May 07 10:19:27 i dont know May 07 10:19:50 also. android is not javascripted ^^ May 07 10:19:57 wew, so where i can learn it? actually i have try it some day, but always get error May 07 10:20:14 danijoo: android has a browser which runs JS May 07 10:20:29 rajrajraj, so its a webdevelopment thing May 07 10:20:34 not android development May 07 10:21:01 danijoo: android thing, because this weird behavior was spotted in android only May 07 10:21:25 maybe an android thing, but not ab #android-dev thing :) May 07 10:22:41 danijoo: yes its #android-dev thing because its related to development on android, whose possible solution can be webview which is android app, but still it has the same problem. May 07 10:23:21 rajrajraj, this channel is only android _application_ development. see topic ;) May 07 10:23:36 and you say its a browser problem May 07 10:24:16 danijoo: yeah what is it with everyone google-mapping :P May 07 10:24:39 no one can help me, came on guys, i know you are master. help me i'm newbi and i have tried that some day but still error. #googleMap May 07 10:24:40 danijoo: yes May 07 10:24:55 harencode: use gradle. May 07 10:25:15 ReScO: summer time, everyone wants to travel hence google mapping :P May 07 10:25:18 add compile 'com.google.android.gms:play-services:7.3.0' to your dependencies May 07 10:26:40 ReScO: i don't try that, ok but maybe i will try tonight. wew i don't know it so hardly create map on android, fiyuuh May 07 10:26:52 harencode: it's not hard. May 07 10:27:20 what is hard though, are fragments May 07 10:27:27 i just don't get them :( May 07 10:28:34 ReScO: when it's not hard, why always get error i have download some project on github, code.google another tutorials and no one is work. Yeah it because something error on fragment and sometimes in meta data May 07 10:29:06 harencode: follow the android guide only May 07 10:29:14 Mixing tutorials means you can start over May 07 10:30:11 ReScO: yes, i have mixed some tutorials but all is fails wew, i really tired. hmmm maybe do you can give me link good tutor about it? May 07 10:35:21 is the genymotion emulator able to properly test android games? May 07 10:36:04 jutsi, kinda yes May 07 10:36:21 danijoo are there better alternatives? Also kinda? May 07 10:36:25 harencode: d.android.com May 07 10:36:26 but if it runs on genymotion without lags, this doesnt mean it runs everywhere. because genymotion will outrun phones May 07 10:36:36 i wish i could make games :( May 07 10:36:43 but it has GPU support so it should work May 07 10:36:52 jutsi, alternative: real device ;) May 07 10:36:56 ah right, so its on the completely other side of the spectrum.. the haxm and ARM emus aren't able to run games afaik May 07 10:37:27 jup May 07 10:37:37 never benchmark on genymotion ^^ May 07 10:37:43 danijoo can't afford real device :( May 07 10:38:04 jutsi: beg/borrow/steal ;) May 07 10:38:13 oh.. i wouldnt count on it to publish before testing on a real device May 07 10:38:19 lol be a thieving developer ? xD May 07 10:38:48 i have a GNex5 :3 May 07 10:39:24 so ok lets say i eventually reach testing stage and somehow procure a device.. How should i benchmark it? I mean for what devices? I mean how far back should i go? May 07 10:39:36 jutsi: haha. remember what jobs said "great artists steal" :D May 07 10:39:51 vedu i will surely use that logic in the police station :) May 07 10:40:23 or claim that it was all for science May 07 10:40:31 haha jutsi. see dont end up in prison. thats a bad place. no wifi May 07 10:40:46 I think he meant "copy". People confuse "copy" and "steal" a lot. :p May 07 10:41:02 vedu actually norwegian prisons have wifi, private showers and playstation 4's May 07 10:41:25 Copy = multiply; steal = subtract from x, add to y. May 07 10:41:33 sometimes you're even allowed to leave the prison, go to work as long as you promise to return to the prison when you're done May 07 10:41:37 jutsi: "private showers" and PS4 in the same sentence :D May 07 10:41:56 jutsi: wanna test out if your game runs? Get Alpha testers and record FPS and CPU load etc and post it back after running the benchmark you created yourself May 07 10:42:33 e.g. make a level, no controls, and put the max amount of poly's in there you'd use in a single area of the game May 07 10:42:34 yeah listen to ReScO. we are going off topic. May 07 10:42:55 ReScO yes, fair enough, but in terms of models, how recent models should i target and what models should i forgo? May 07 10:43:28 then let people run it, get those people here, or from Reddit, you'll get a good amount of devices, ranging from api 15 to api 22 May 07 10:44:07 you shoudnt target below 15 with games May 07 10:44:19 it will be a pain May 07 10:44:31 ^ May 07 10:44:33 I'm guessing polys are for 3d gameS? I'm more of a 2d platformer / isometric game programmer May 07 10:44:55 jutsi, then replace polys with textures/sprites :) May 07 10:45:03 then get as much graphics on screen as you can, incrementally, look at FPS and CPU/GPU load metrics, adjust your game accordingly May 07 10:46:36 Can i see stutters when i look for fps? May 07 10:47:36 lollipop May 07 10:47:52 I adivse you to use Libgdx if you are completely unfamiliar with game dev on android May 07 10:47:53 jutsi: keep it above 30 May 07 10:48:19 its really really great May 07 10:48:42 Fair enough May 07 10:49:37 or unity ^^ May 07 10:50:57 pfft, build it from scratch. start a while loop and off you go ;) May 07 11:00:05 while (true) ; May 07 11:00:15 that should keep at least someone/something busy :p May 07 11:00:53 ravilov, well you obviously add some thread.sleep in the mix :p May 07 11:01:12 and handle all game updates on a separate thread :P May 07 11:02:54 preferrably every in-game poly being handled by its own thread, right? May 07 11:06:05 it's like you're reading my mind ravilov May 07 11:07:18 He does that May 07 11:08:00 only when my battery is low May 07 11:08:14 ravilov thats exactly how i make my games. But 2d games are simple enough to make without any premade engines May 07 11:16:08 ok May 07 11:21:32 fill or match_parent? May 07 11:21:59 fill_parent is deprecated. May 07 11:22:13 but will still stay forever :p May 07 11:24:20 Question: If I write plain c code (with no platform libary dependence) I should be able to use that code on both ios and android, right? ObjC, however, I will not be able to use on android May 07 11:25:34 if you don't use platform-specific APIs or some compiler specific stuff yes. May 07 11:27:12 what kind of c compiler is there for android? Is that just a special gcc/clang? May 07 11:28:26 Also over on #android people said that phonegap/cordova always is terrible on android... are there no examples for apps that work great that way? May 07 11:41:21 ReScO: fill and match parent have exactly the same value: -1; it's just the name that is deprecated May 07 11:52:40 Does java.util.Random have an equal probability of generating any random numbers in a given range? May 07 11:53:59 Anthaas: haha May 07 11:54:27 ? May 07 11:54:59 There is no weighting or anything in pseudorandomness is there? May 07 11:55:13 Anthaas: docs May 07 11:55:16 Anything that would make the values generated not completely equal in terms of likelihood to generate May 07 11:55:18 Hmm May 07 11:56:17 > This class provides methods that return pseudo-random values. May 07 11:56:29 Anthaas: it's not really random for speed purposes... May 07 11:56:47 even though the name suggests it would be May 07 11:57:01 so don't use it to encrypt data May 07 11:57:14 Oh I get that its pseudorandom, i.e. values are created through a deterministic process May 07 11:57:25 SecureRandom exists for cryptographical purposes May 07 11:57:28 Random is fine for me though May 07 11:57:36 Anthaas, as far as I know Random is slightly biased May 07 11:57:43 but good enough for all practical purposes May 07 11:57:53 Mavrik: Perfect - can you tell me how I can find out more? May 07 11:58:18 https://stackoverflow.com/questions/17830823/random-nextintint-is-slightly-biased May 07 11:58:24 this is the algorithm: https://en.wikipedia.org/wiki/Linear_congruential_generator May 07 11:58:25 Im not even sure if it matters for me, but Im covering my bases :D May 07 11:58:33 it doesn't :) May 07 11:58:45 for crypto you use SecureRAndom, for everything else it's good enough ;) May 07 11:59:40 Cool thanks :-) May 07 12:07:46 morning guys! May 07 12:08:37 Have you tried creating an account from outside the US? Is there any way like opening an account in a specific bank or using google wallet or payoneer card? Any idea is welcome! May 07 12:09:16 I have one from here but this country is not enabled to have in-app items May 07 12:11:29 can one install chrome on android without the play store? I want to update chrome but I cannot find the playstore on my device May 07 12:12:48 ok, found it May 07 12:14:21 Mavrik, it's not just biased, it's cyclical May 07 12:14:53 Mavrik, I have a rendering that demonstrates the difference. between them May 07 12:26:28 anybody run into issues with Robolectric not working with latest android build tools? How can one fix it? May 07 12:26:31 alright Mavrik, about to try what you suggested earlier about the map May 07 12:29:17 Does anyone know if there's a setting to force Android Studio to open layout.xml files on the Text tab rather than the Design tab? May 07 12:43:25 is there a possibility to listen to when the user drags down the notification bar or dismisses it? May 07 12:43:30 I was looking for this exact thing yesterday kants May 07 12:43:37 I didn't look hard enough, just like 1 minute May 07 12:43:39 Just found it May 07 12:43:56 because Im dropping tabs and going for cmd + E functionality which brings up only recently visited files May 07 12:44:00 care to share with me? May 07 12:44:07 Anyone have tips for marketing? We released our app about 3 weeks ago and have slightly over 100 downloads after making several posts on forums, reddit, HN. It seems like the only way to get ahead is to have a 1k army ready to download and 5 star your app May 07 12:44:26 or have a great app Meowser May 07 12:44:34 Odaym: I'm doing exactly the same thing. On Design view there is a Settings icon top right, with an option "Prefer XML Editor" May 07 12:44:41 Odaym: all of the feedback has been positive May 07 12:45:01 cause you heard it in the Fragmented podcast, kants? :P May 07 12:45:17 I didn't listen yet, but I read about it in the comments somewhere May 07 12:45:35 yea its something that jake says about how he works May 07 12:45:38 makes a lot of sense. Tabs are useless. May 07 12:45:46 d May 07 12:45:49 I thought it would pretty neat cause tabs all sit in memory while our way only keeps 1 file open May 07 12:45:49 Oops. May 07 12:45:50 I was using CMD or Ctrl Tab anyway May 07 12:46:16 Yeah, I really like it so far. the only issue was XML files opening in Design view, which now thankfully is sorted. May 07 12:46:35 Meowser: What kind of app is it? May 07 12:46:44 TacticalJoke: math game May 07 12:47:02 I dont think that you can just pour marketing money into things and they will just work... May 07 12:47:12 dont people have to love the thing you're telling them to try? May 07 12:47:22 unlike other games, in our you pick the missing operator instead of solving the solution by providing the number May 07 12:47:24 I have no idea May 07 12:47:48 we aren't looking to spend a ton of money on marketing that probably won't work May 07 12:47:50 wish someone would talk about these things for solo devs, I hope IO addresses these things May 07 12:47:52 I guess you gotta find your user base. May 07 12:48:03 maybe a math forum May 07 12:48:08 Is it more for adults than kids? May 07 12:48:35 an 8 yr old and 58 yr old both liked it May 07 12:48:35 oh thanks kants that did it May 07 12:48:48 then you HAVE to pour money into marketing, you seem to be sure that it will work! May 07 12:49:14 or just wait it out until you have a 1,000 at least May 07 12:49:37 Odaym: read what I said, we don't want to spend money on marketing, we want to try "gorilla" tactics but we dont know what to do really May 07 12:49:46 Meowser, may you share a link? May 07 12:50:03 Gorilla warfare. May 07 12:50:06 you wont find any advice about that here May 07 12:50:08 good luck May 07 12:50:26 well I'm curious what tactics people use May 07 12:50:42 go on reddit, its literally filled with these questions May 07 12:50:50 and my guess is you posted there about this first May 07 12:51:17 I have a card game app without gambling. is this considered "Everyone" on the maturity scale? May 07 12:52:01 paulo_: a game like UNO? May 07 12:52:33 Meowser: kinda. but it's like solitaire, but multiplayer May 07 12:52:54 see what UNO has and copy them May 07 12:54:19 what happens if I get complaints with maturity level? May 07 12:54:26 will it be bumped up? May 07 12:57:38 as far as I'm concerned, any card game is for everyone. Gambling is for adults May 07 12:58:07 You can play Texas Hold'em with a kid... it's just a card game May 07 12:58:09 yea, I am not sure where your concern is coming from unless the game is named "Pig %)@er" May 07 12:58:18 :D May 07 12:58:53 exactly, unless the cards are nude, there's swearing... stuff like that May 07 12:59:16 Actually, if it doesn't have internet access, you can say it's FOR kids! May 07 12:59:27 oh, but you said multiplayer, scratch that May 07 13:00:17 it might be bluetooth multiplayer May 07 13:07:30 I'm loading a map fragment into a fragment and I want to detect (intercept) touch events like doubleTap and others May 07 13:07:59 I've been implementing the appropriate methods onDoubleTap and onDoubleTapEvent to intercept these events, but none are triggering and I feel like it's because the code is in the wrong class May 07 13:08:09 right now that code is inside the Fragment holding the map fragment May 07 13:08:36 Mavrik halp May 07 13:09:53 ok, I've implemented the methods in two of those classes, the custom map fragment I've created to make suitable for adding into another fragment, and that holding fragment May 07 13:10:04 either it works or Google is broken May 07 13:10:05 easy May 07 13:11:23 yea Google's definitely broken May 07 13:26:01 everyone this week: http://cdn.meme.am/instances/500x/61986533.jpg May 07 13:26:47 danijoo: we just got featured! May 07 13:26:50 _genuser_: ^ May 07 13:27:06 danijoo: lol May 07 13:27:16 : D May 07 13:28:10 how does google detect your country of origin? I want to create a us account. is it enough to use a us card? payoneer maybe? May 07 13:28:26 i think if everyone that asked for maps the last days would join a github project, you could write your own maps api May 07 13:28:40 Mattx, your ip :p May 07 13:28:58 they know your ip May 07 13:29:11 that's not true, even if you change your ip you can't create a merchant account for instance May 07 13:29:19 and they can see you registering through the spycams of their satellites May 07 13:29:33 the one with the deathray May 07 13:30:07 any experience on doing this, guys? May 07 13:30:08 Mattx, arent those accounts all international? May 07 13:30:25 nope, in some countries you can't create a merchant account May 07 13:30:39 if that is what you meant May 07 13:30:47 ah well. You shoudnt register one then, i think :0 May 07 13:31:07 I want to, otherwise I'm not able to have paid apps May 07 13:31:10 or in app items May 07 13:31:46 if merchant is not available in your country, they wont pay you out when you cheat to get one May 07 13:31:53 Mavrik: May 07 13:32:18 and you are risking a permanent play store ban May 07 13:32:28 Mattx, Google account geolocation is bound to your Google Wallet location May 07 13:32:33 danijoo, they may send the money to my us card (payoneer for example) and I can get the money from there I suppose May 07 13:32:34 and dont forget the death rays! May 07 13:32:42 Mavrik: we just got featured May 07 13:32:49 thepoosh, what app? May 07 13:32:56 Mattx, e.g. if you add a US credit card to your google account and make a purchase, it'll switch May 07 13:32:59 thepoosh, woo! May 07 13:33:04 danijoo: glide May 07 13:33:08 thepoosh, globally? May 07 13:33:20 they said globally but I saw only the israeli May 07 13:33:25 care to check for me? May 07 13:33:30 Mavrik, really? can I add a us card to my current wallet account and I will be able to create a merchant account? May 07 13:33:36 sweet May 07 13:33:40 contragt May 07 13:33:44 https://play.google.com/store/recommended May 07 13:33:44 congrats May 07 13:33:47 thanks May 07 13:33:48 << cant type today May 07 13:34:01 danijoo: as long as you can google it doesn't matter May 07 13:34:09 that what auto-complete is for May 07 13:34:22 meant my stupid try to write "congrats" ^^ May 07 13:35:15 thepoosh, doesn't show up for me yet, I'll try again later May 07 13:35:26 Mavrik: try clicking on the more May 07 13:35:31 it should be in the 28 apps May 07 13:38:20 Mavrik, are you sure about what you told me? I'll try and change my wallet card May 07 13:41:52 I'm not sure because Google might have changed it May 07 13:44:19 Hi there. I'm having some trouble installing android annotations lib. I keep getting Error:(1, 0) Plugin with id 'com.android.application' not found. This is my build.gradle https://gist.github.com/anonymous/d2a8fba52313add61678 any ideas why I get this error? May 07 13:49:04 What does that error mean and how do I fix it? May 07 13:49:08 frojnd, cant see an error . May 07 13:49:14 looks like my gradle May 07 13:51:02 danijoo: yet when I open file: build.gradle I get: Error:(1, 0) Plugin with id 'com.android.application' not found. after sync May 07 13:51:22 sync again May 07 13:52:02 danijoo: I tried, it still the same message May 07 13:54:09 danijoo: any other idea? May 07 13:54:38 I'm not familiar with gradle so maybe I did a mistake somewhere. May 07 13:54:44 Hi. I need to send messages asynchronously to an http server. I found how to do the http part, what I'm missing is the "reliable" queuing strategy May 07 13:55:36 where should I look for ? messages should be kept until delivered May 07 13:56:32 I should get around to doing one of those things May 07 13:56:48 never tried these things May 07 13:56:50 sync and whatnot May 07 13:56:55 how to make the same activity searchable ? May 07 13:58:19 i have got two activities Home & ResultsActivity both of them are searchable but the results are shown only in ResultsActivity May 07 13:59:13 My porblem is when i search from HomeActivity the ReslutsActivity recieves intent May 07 13:59:43 but when Search is done in ResultsActivity, I don't get any intent May 07 14:02:28 if i see a Resources$NotFoundException crash from one of my users for a string resource that definitely exists in my strings.xml, what exactly does that mean? May 07 14:02:31 adriens_, its not important that they are sent immidiatly? May 07 14:03:04 seand, does it happen often? May 07 14:03:22 danijoo: it happened just once, to one user May 07 14:03:38 how many users do you have i mean May 07 14:03:40 it worked perfectly Mavrik May 07 14:03:45 time to get 12309123 SO rep May 07 14:03:45 if you have only 10, its a problem :p May 07 14:03:53 I need to use google's play-services-ads and play-services-base, however, when I use both of them, I am getting dex error? What should I do? May 07 14:04:50 danijoo, I just need them to be eventually sent. It's more important to have those messages reliably delivered than immediately delivered May 07 14:04:54 Kamol, use only ads which will pull in the base May 07 14:05:01 Kamol, whenever you add some play services part, it automatically also adds base for you May 07 14:05:34 adriens_, maybe a syncadapter May 07 14:05:41 danijoo: yeah i don't have that many :) but i have lots of other users on the same version without any problem May 07 14:05:50 you can force it to manually sync and also do it periodically May 07 14:06:02 seand, then ignore it if you are sure ;) May 07 14:06:12 Mavrik: oh, thank YOU ! :) let me try May 07 14:08:22 danijoo: thank you! May 07 14:08:45 danijoo, looks promising. Thanks May 07 14:11:09 danijoo: Mavrik: weird, with 'com.google.android.gms:play-services-ads:7.3.0' only, I am still getting dex error. May 07 14:11:10 adriens_, maybe look at GCM as well May 07 14:11:23 someone is pulling the same library that you already have May 07 14:11:26 Kamol, then perhaps you should read the error and see what is wrong exactly ;) May 07 14:11:55 what dex error. May 07 14:11:59 maybe its 65k limit? May 07 14:12:31 Mavrik: danijoo: com.android.dex.DexIndexOverflowException May 07 14:16:08 * danijoo should make a tutorial about how to post errors. May 07 14:17:38 Kamol, https://developer.android.com/tools/building/multidex.html May 07 14:17:47 or minify/strip May 07 14:19:13 danijoo: http://pastie.org/10175886 May 07 14:19:43 Kamol, you hit the method limit May 07 14:19:50 use proguard or multidex May 07 14:19:51 yep May 07 14:19:56 adq: tq May 07 14:20:36 Hi. I'm running a SipDemo app in a virtualdevice Android 5.1.1 and SipManager.isApiSupported returns false. I actually just checked in the developer.android.com webpage about a limitation to test SIP in AVD May 07 14:20:47 danijoo: thank you! May 07 14:21:30 it says "SIP runs over a wireless data connection, so your device must have a data connection (with a mobile data service or Wi-Fi). This means that you can't test on AVDyou can only test on a physical device. " <- so it makes sense now May 07 14:25:29 I have got two activities Home & ResultsActivity both of them are searchable but the results are shown only in ResultsActivity May 07 14:25:44 danijoo: so you've never come across something like that before? May 07 14:25:44 My problem is when i search from HomeActivity the ReslutsActivity recieves intent May 07 14:25:53 My porblem is when i search from HomeActivity the ReslutsActivity recieves intent May 07 14:25:55 My porblem is when i search from HomeActivity the ReslutsActivity recieves intent May 07 14:26:00 seand, ? May 07 14:26:04 but when Search is done in ResultsActivity, I don't get any intent May 07 14:26:28 danijoo: sorry, referring to earlier when we were talking about Resources$NotFoundException seen by 1 user May 07 14:26:28 seand, I only used it for one project and its working there May 07 14:26:32 or a small fraction of users May 07 14:26:33 oh. May 07 14:26:35 this one May 07 14:26:36 no idea.. May 07 14:26:52 maybe they decompiled your app and removed the string ^^ May 07 14:27:03 huh, yeah maybe :) May 07 14:27:14 i was thinking something might have happened when trying to do a release build, like i didn't do a clean build first May 07 14:27:25 is there a standard process for release that i should be following? May 07 14:27:35 (for android studio) May 07 14:33:10 no idea. May 07 14:33:16 i do release builds via console May 07 14:35:27 but Build -> generate signed APK should do the trick. May 07 14:42:23 I have got two activities Home & ResultsActivity both of them are searchable but the results are shown only in ResultsActivity. My problem is when i search from HomeActivity the ReslutsActivity recieves intent but when Search is done in ResultsActivity, I don't get any intent May 07 14:42:46 rohit7roy, you have a bug :) May 07 14:42:53 is that what you want to hear? May 07 14:44:44 danijoo: can you tell me how to configure searchable.xml for appcompat May 07 14:45:06 there is no difference to normal config May 07 14:47:51 okay, thanks danijoo May 07 14:52:20 Why Kotlin can found ChangesAdapter(recyclerView.getContext(), listOf()).bindViewHolder(___) but cannot found recyclerView.getAdapter().bindViewHolder(holder, 0) May 07 14:53:35 (recyclerView.getAdapter() as RecyclerView.Adapter).bindViewHolder(holder as K, 0) works :/ May 07 14:54:32 Woo new episode of Android Fragmented podcast! May 07 14:59:34 Hey has anyone had the problem of the front facing camera on the Nexus 6 being upside down? May 07 15:00:18 turn around the phone ^^ May 07 15:00:23 I'm sure there's some way to detect this adjust accordingly but I'm not sure what it is May 07 15:00:37 danijoo: I literally just suggested that to someone May 07 15:00:39 maybe gyro sensor broken May 07 15:00:58 Ankhwatcher, Nexus 6 has the front camera rotated a bit differently May 07 15:01:06 apparently using this code works: https://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation%28int%29 May 07 15:01:17 nah, it's default camera position is jsut 180 degrees from where it is on other phones May 07 15:02:10 maybe gyro broken and detects the phone to be rotated wrong May 07 15:02:26 Ankhwatcher, anyway, read the CameraInfo and adjust accordingly May 07 15:02:28 danijoo, no. May 07 15:02:50 People just hardcode rotation for front-camera and then have issues ;) May 07 15:03:25 oh well I thought he meant the rotation in the default camera app is wrong May 07 15:04:08 we've lost about 5 developers to the camera api on this project May 07 15:04:39 then you dont pay enough :p May 07 15:04:58 it's a volunteer project May 07 15:05:08 volunteers will do a lot of things for you May 07 15:05:20 understanding the android camera api is not one of them May 07 15:05:38 *shrug* May 07 15:06:16 It's not exactly rocket science either. May 07 15:11:32 Mavrik: contributions are welcome: https://github.com/HackForEquality/android-app/tree/texture_view May 07 15:23:00 adb install path-to-apk is for the first installation of apk, what if I want to install the updated version? May 07 15:27:19 Ankhwatcher, ok. May 07 15:28:31 I strongly suggest you fill in the readme for projects you want contributions to though. May 07 15:29:48 the answer to my question is using the -r flag, thanks guys May 07 15:33:45 Mavrik: https://www.yesequality.ie/ this is the campaign page May 07 15:33:57 the application takes selfies May 07 15:34:07 (tries to, anyway) May 07 15:43:14 Say a network has 10 wireless routers all broadcasting under same SSID and you are in range of all 10 of these routers. Is there a way to get MAC addresses of all 10 routers ? May 07 15:43:25 Possibly without connecting to the network ? May 07 15:47:08 Hi May 07 15:47:15 this isnt really an android question but a googlemaps question May 07 15:47:34 I would like to create a geotemporal animation as seen here http://googlegeodevelopers.blogspot.com/2012/06/powerful-data-visualization-with.html May 07 15:47:48 my quesiton is where can I find an example of how this can be achieved. May 07 15:48:03 and whether its possible for joe public to make an animation such as the one in the link above May 07 15:48:21 I asked in #googlemaps, and #google, but those channels are somewhat empty May 07 15:48:26 w/o activity May 07 15:48:29 or chitchat May 07 15:48:38 thanks. May 07 15:56:44 mantas322, try it in ##car May 07 15:58:34 neredsenvy: yes May 07 15:59:05 shmooz, Found BSSID in ScanResult class May 07 16:00:05 Now I'm trying to see if I can get the packet data. What I want to know is how long it took the signal to travel from router to my phone. May 07 16:00:22 ?danijoo? May 07 16:00:28 oh you're making a silly joke. May 07 16:00:32 >:[ May 07 16:00:59 Does not have to be nearly precise but within reason I know with C I can get a unix timestamp out of when the packet was created/sent. May 07 16:01:17 mantas322, if you start asking in not related channels, why not also ask in ##cars? May 07 16:01:48 ebcause its not car related. May 07 16:02:07 google, and googlemaps is unrelated to GoogleMaps API? May 07 16:08:11 doew researchgate gradle-release plugin work with flavours? May 07 16:19:56 I have a linear layout with two weighted parts: an image, weight 1, and another layout, weight 2. in the other layout i need two text elements but they need to be centered, the both of them. the height that layout is dependent on the height of the first image: http://i.imgur.com/7SqYIl5.png May 07 16:20:26 I can't figure out how to have the two text elements centered as if they were one element May 07 16:20:53 align to bottom the top element and align to top the bottom element May 07 16:21:14 explodes: try layout_gravity= bottom and top for both the elements May 07 16:21:43 and play with text gravity vs layout gravity May 07 16:21:52 (you will need it) May 07 16:22:02 have them in a relative layout, i imagine? May 07 16:22:29 no I think a linear should work May 07 16:22:48 and yeah like adq said you need to change the text gravity May 07 16:23:09 with the drawable, the text gravity must be center_vertical May 07 16:23:18 Set gravity on your linearlayout May 07 16:24:27 that worked, SimonVT : LinearLayout with android:gravity="center_vertical" May 07 16:24:35 I didn't know you could do that, now I know... thanks May 07 16:29:18 explodes: ive the solution, read the last post :) May 07 16:29:19 http://android-developers.de/thread/6180-listview-highlighten-und-selektieren/?postID=16894#post16894 May 07 16:30:19 adapterView.setActivated(true) ?!! May 07 16:31:15 weird that that works, glad it is though ChampS_ May 07 16:32:20 maybe view.setActivated works too May 07 16:32:33 you are right thats better May 07 16:32:51 one moment ill try May 07 16:33:08 You will also need to .setActivated in your getView(...) function ... May 07 16:33:39 The activated state will carry over when the view is recycled, possibly activating views that should not be activated May 07 16:34:03 So, basically, you need to "activate" the DATA the view is rendering May 07 16:34:16 and have the view reflect that. May 07 16:35:57 mh so i will set activated false at the beginning of the getView method. May 07 16:36:21 at the moment my list is not long so no view is recycled May 07 16:39:05 ChampS_: to recap: you'll need something kind of like this: http://pastie.org/10176096 May 07 16:41:49 ah now i get what you mean, mh mh so i should pass the state to my adapter. May 07 16:42:07 thanks ill try later :) May 07 16:43:33 You also have to test it with a list long enough you can recycle twice May 07 16:43:57 (I just add data to my list 4 or 5 times and that usually covers it) May 07 16:51:16 With android is it possible to dig deeper into ScanResult ? Like get the DatagramPacket and all the info it contains ? May 07 16:53:36 anyone know how to convert to pcm format without the mediacodec class? May 07 16:54:41 convert from? May 07 16:54:58 use a lib like ffmpeg May 07 16:57:48 hey there May 07 16:58:11 No bots, and no advertising please, jobs or otherwise May 07 16:58:17 means jobs or not May 07 16:58:40 huh? May 07 16:59:04 means jobs or not May 07 16:59:09 so if i search someone who can help me developing an app am i right here or not May 07 16:59:33 this is not a channel to seek one-on-one assistance May 07 17:00:33 if that is what you need, you should try looking at tutoring services May 07 17:00:35 and one2many May 07 17:15:08 im converting from mp3 adq May 07 17:29:46 is it a bug or a feature that my onTimeSetListener is called twice for a single event? May 07 17:33:09 is there any way to disable focus on webpage text boxes in a webview? May 07 17:33:53 inject a script May 07 17:35:58 Does someone know why it would throw a ResourceNotFoundException here when that resource clearly exists and is even used in the Android source: divider = ContextCompat.getDrawable(context, android.R.attr.listDivider); May 07 17:37:11 Muchoz it might not be defined in the current theme May 07 17:37:30 you need to resolve the attribute first May 07 17:38:00 g00s, why would this work then? https://gist.github.com/alexfu/0f464fc3742f134ccd1e#file-divideritemdecoration-java-L31-L34 May 07 17:38:46 thats not what you are doing :D May 07 17:39:01 and after line 32 should be if (mDivider == null) May 07 17:40:38 Muchoz see https://github.com/jingibus/recyclerview-criminalintent/blob/master/recyclerviewchoicemode/src/main/java/com/bignerdranch/android/recyclerviewchoicemode/SwappingHolder.java#L262 May 07 17:41:02 but listDivider is built in so it should be everywhere May 07 17:44:21 g00s: !!! May 07 17:44:30 thepoosh ! May 07 17:44:36 g00s, that makes sense.. May 07 17:44:39 Thanks May 07 17:44:43 https://play.google.com/store/recommended May 07 17:44:49 guess who's there May 07 17:44:55 We're sorry, the requested URL was not found on this server. May 07 17:45:02 Not you it seems. May 07 17:46:23 Muchoz: OH NOEZ May 07 17:46:36 How do you select/modify the view you're dragging through getClipData()? May 07 17:46:39 g00s: check the recommended apps in the play store May 07 17:46:48 I have a problem, my views keep resetting their visibility to the layout value even though I explicitly call setVisibility(false) May 07 17:47:08 thepoosh how do i do that, from play.google.com ... May 07 17:47:25 I'm calling setVisibility(false); on the "onSaveInstanceState()" event May 07 17:47:30 on the fragment May 07 17:47:35 play.google.com/store and then click the "new and something" section May 07 17:47:56 but the view somehow resets it's visibility to true after that May 07 17:49:50 thepoosh is ut in editor's choice ? May 07 17:49:54 s/ut/it May 07 17:50:03 ???? May 07 17:50:10 i can't find it May 07 17:50:53 I even made my own LinearLayout2 extends LinearLayout, with overwritten setVisibility() method to print if it gets called, and used that in the xml. But it only gets called once by me setting it to false May 07 17:51:50 i see glide thepoosh, congratz May 07 17:51:56 YAY May 07 17:51:59 thanks May 07 17:52:09 but then somehow it becomes true without setVisibility() being called. I looked at the internal code and in View.setVisibility() just calls View.setFlags() but I can't override to see if someone's calling that because it's private May 07 17:52:31 gz poosh :P May 07 17:52:48 Time to keep rockin' though May 07 17:53:06 guess i'm just retarded with Play, i hardly ever use it May 07 17:53:19 I even print when the view gets initialized to make sure it's not getting recreated thus resetting its visibility May 07 17:53:28 any ideas? May 07 17:54:22 thepoosh when i go to New & Updated Apps i dont see it, or anything there like "recommended" May 07 17:54:46 well, you suck! May 07 17:54:48 how long may a push notification take to be received by the device? May 07 17:55:11 i am worried about how long may the sync adapter takes to the invoked May 07 17:55:59 this only happens when I rotate the screen btw May 07 17:56:19 https://play.google.com/store/apps/collection/promotion_3000792_new_releases_apps May 07 17:56:35 (works in incognito, url is diff when logged in) May 07 17:56:51 adq lol, i don't see it there - must be my VPN putting me in some locale :D May 07 17:57:02 g00s: our CTO's facebook post on this: https://www.facebook.com/photo.php?fbid=10150549752629963&set=a.285052709962.41543.514969962&type=1 May 07 17:57:07 or refresh maybe the cache May 07 17:57:10 adq: what is that? May 07 17:57:17 what is what? May 07 17:57:26 the collection you linked May 07 17:57:28 manixrock, View visibility is not saved.. Rotating the screen re-creates your views May 07 17:57:40 Meowser, new apps May 07 17:58:03 when a replace fragmenttransaction takes place, the new fragment is placed below the existing. is there a way to reverse this ordering? May 07 17:58:07 SimonVT: I know, but the views are created in onCreateView(), and I'm applying visibility in onViewStateRestored() which is called after May 07 17:58:51 You said onSaveInstanceState May 07 17:59:06 Hi, I just updated studio and now its icon is missing from alt-tab switcher, any way to fix it? (Ubuntu 14.04) May 07 17:59:20 thepoosh well i can't see it from the uS May 07 17:59:27 then I print the visibility again in onStart() and it's VISIBLE again, somehow it changed May 07 17:59:29 :S May 07 17:59:35 and my device which isn't using VPN doesn't see it either May 07 17:59:43 of course i can search for it May 07 18:00:07 SimonVT: sorry I was wrong the first time, I'm setting the visibility to GONE in onViewStateRestored() May 07 18:00:24 Maybe you're adding the Fragment multiple times May 07 18:00:36 Either way, the issue is your code May 07 18:02:09 SimonVT: ok so I just noticed the view gets recreated... May 07 18:03:54 Of course it is, during the orientation change May 07 18:04:04 SimonVT: although I'm printing logs in both onCreateView() and onViewCreated() and neither gets called where the view gets recreated May 07 18:04:39 An orientation change would cause both those to be called May 07 18:06:46 its been some time now since fresco has been released. Is there a comprehensive blogpost that shows the pros and cons of this ashmem strategie fresco is using? May 07 18:07:10 something neutral, not the blog entry from facebook May 07 18:07:56 SimonVT: they are both called: onCreateView(), then onViewCreated(), then onViewStateRestored() where I do setVisibility(false); and log view.toString(), then onStart() where I check the visibility (it's now VISIBLE again) and log the view.toString() again which shows a new pointer so it has changed May 07 18:08:37 I'm not going to keep guessing as to what you're doing wrong May 07 18:08:40 Show some code May 07 18:11:16 SimonVT: just found it... so turns out I was using a non-static inner class which was still referencing the old view from before rotation, even though the variable had changed before this May 07 18:11:18 hm, i'm setting the background drawable of a layout dynamically, and not seeing any change ... do i need to invalidate something ? May 07 18:11:44 the variable had changed correctly, but the inner class was using the variable from the old object May 07 18:11:49 When is "getArguments" available in a Fragment? May 07 18:12:07 After you call setArguments May 07 18:12:44 Hey al May 07 18:12:49 hey, is there an inspection that i can use to find unused classes and files in my project? May 07 18:12:53 ok. what if it is a fragment being restored from savedState? May 07 18:13:05 anyone familiar with deep linking? I’m looking for a way to get the link they clicked on once my activity is open May 07 18:13:08 I know there is one for resources, but I don’t know if there’s one for classes May 07 18:13:11 I need to scrape that webpage May 07 18:15:28 Likely when you get a lifecycle callback May 07 18:15:45 aah I got it.. May 07 18:15:49 intent.getData() May 07 18:15:54 returns the link that was clicked on May 07 18:16:23 g00s, nope except if by dynamically you meant inside onDraw of a custom view May 07 18:16:45 i'm setting it in my recyclerview adapter :( May 07 18:16:57 its very flaky some take, some don't even with notifiyItemChanged May 07 18:17:08 for recyclerview , I have no idea May 07 18:18:36 SimonVT: it's solved not thanks. The problem was I was serializing the inner State class on onViewStateRestored(), but turns out that serializing a non-static inner class will also serialize the entire parent class May 07 18:19:00 Guys, I want to change the position of a view that's being dragged when DragEvent.ACTION_DROP occurs, how do I access this view to modify it? Here's the code http://pastebin.com/HeXrJJcB (The view I want to modify is called mobArea and is created in line 103, and the drop occurs on line 174) May 07 18:19:10 SimonVT: and when deserialized, the "this" in the inner class pointed to the old object not the new one... a doozy May 07 18:19:37 SimonVT: thanks anyway May 07 18:23:33 I guess I can ask this better... can I extract the view that's being dragged through its DragEvent? May 07 18:24:32 the word extract is probably incorrect, I want to modify that view May 07 18:27:35 Does my question make sense at all? Maybe I'm not understanding something right May 07 18:27:38 That moment when you forget you left a != somewhere that you're convinced you left an == :| May 07 18:27:53 Lorenz9, maybe move "final LinearLayout mobArea" as an attribute/member of your class, so after being created, you will be able to access it May 07 18:29:18 Lorenz9: you don't change position of the view, you change its order in adapter May 07 18:29:53 hmm but that LinearLayout is created by the user May 07 18:30:24 okay okay, there's a few things I don't understand so i guess it's time to RTFM May 07 18:30:26 thanks May 07 18:30:32 Lorenz9: then you should removeView and addView(v, position) May 07 18:30:50 oh May 07 18:30:52 hm! May 07 18:31:16 That makes sense, awesome, will do then May 07 18:34:06 hi guys, i'm trying to group functionality inside different classes so i don't have a huge class (Activity) that does everything, for instance, i want the navigation drawer to be its own class so i extended linearlayout but it doesn't look like it has any callbacks for the activity lifecycle, is it safe to assume that the layout gets recreated every time something happens so i can write methods that i call from the activity, for instance onActivityCreated wi May 07 18:34:07 ll call navigationDrawer.onActivityCreated() ? May 07 18:34:45 Hi. so SIP API is not implemented in my chinese Tablet (Android 4.1.1) but it is implemented in my Android phone Moto G (Android 5), but in my phone SIP VOIP is not implemented. So isApiSupported() = true and isVoipSupported() = false :( May 07 18:36:28 Anywhere here use TokBox? I'm trying to find their SDK download and can't anywhere: https://tokbox.com/opentok/libraries/client/android/ May 07 18:36:41 It has to be sitting right in front of me, but I can't see it May 07 18:38:15 tjbiddle: so, see the link at the top right of that page? :) May 07 18:38:16 but icedp , the mobArea contains variables that are inside the onActivityResult... I'm starting to think that I built this wrong from the start May 07 18:38:26 Leeds: Oh my god. May 07 18:38:35 Thank you. May 07 18:38:42 You're saying that I removeView while inside the DragEvent.ACTION_DROP? May 07 18:39:01 tjbiddle: have fun... May 07 18:39:36 Why do highlighted items always seem to be invisible to me? Same thing happens when I go to restaurants - I never see the specials that are in the giant highlighted container May 07 18:39:46 My mind must thing it's a title and ignore it. May 07 18:39:50 think* May 07 18:39:51 Lorenz9: let's step back and discuss what's the goal (I'll be busy in a moment, but still) if your container is LinearLayout or GridLayout - then yes. May 07 18:40:19 Which is better for storing long/lat data points: floating point or double? May 07 18:40:36 http://crashes.to/s/45ea83ea100 seems to be lollipop related, but cant find anything in the issue tracker.. http://crashes.to/s/45ea83ea100 May 07 18:40:41 Basically there's a LinearLayout inside a RelativeLayout. The LinearLayout is created by the user and I want to drag this one around the RelativeLayout May 07 18:40:49 crimsongold: depends on what level of precision you want, I'd think. May 07 18:41:11 Well I am going for 4 decimal accuracy. Not insanely accurate, but pretty close May 07 18:41:35 But since the LinearLayout is created programmatically inside a onActivityResult, there's no way I can access this view when it detects the drop (which is inside a View.OnDragListener May 07 18:41:45 ) May 07 18:42:02 what does it mean that a device supports SIP but not VOIP ? does that make sense? May 07 18:42:10 maybe I'm doing something wrong, dunno. May 07 18:42:29 damiox: they are just different protocols May 07 18:42:54 damiox: it means one of two things, I'd guess.. either it supports the signaling part(s) of SIP, but not actual voice transmission, or whoever wrote the spec didn't know what they were talking about May 07 18:43:25 understood May 07 18:43:33 icedp maybe you'll want the code http://pastebin.com/HeXrJJcB May 07 18:43:52 but I'm using a "modern" phone. I mean , it should support native android sip ... I think it's "safe" to use a SIP SDK May 07 18:43:56 crimsongold: I think float will be enough for that, actually. but possibly relevant: https://sqlsouth.wordpress.com/2013/11/12/storing-latitude-and-longitude-coordinates/ + http://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html (java's float is 32 bit, so I believe that corresponds to 24 mantissa) May 07 18:44:09 Based on all these incompatibilities... right? May 07 18:44:32 out of interest, what are your crash rates? is 99.8% crash-free users a bad or a good number? May 07 18:45:03 groxx, it's ieee May 07 18:45:09 Maybe I should've put the OnLongClickListener outside the onActivityResult? May 07 18:45:16 bah I'm talking rubbish May 07 18:45:42 pfnQ: ah. so 23. May 07 18:45:51 Guys is there a way to find out if a phone supports SIP/VOIP without calling the isXXXSupported? I tried to "getprop" the device but in my phone (supports SIP but not VOIP) it doesn't show anything about SIP nor VOIP May 07 18:46:14 I'll have to repeat it if they ever come back anyway, didn't realize they offlined while I was typing May 07 18:46:25 hey dudes May 07 18:46:34 damiox, why not use the is supported calls May 07 18:46:36 I'm looking for something like getting all the system features and I run into adb shell getprop, but it's not showing anything related to SIP/VOIP May 07 18:46:42 damiox, that is the correct approach May 07 18:46:57 pfnQ, well I'm trying to check if another workmates phones support sip May 07 18:47:18 I would like to avoid installing a SW on their phones, just plug them, run a command and see May 07 18:47:30 * pfnQ shrugs May 07 18:48:12 damiox: if it exists, there's a decent chance it's under dumpsys: http://stackoverflow.com/questions/11201659/whats-the-android-adb-shell-dumpsys-tool-and-what-are-its-benefits May 07 18:48:15 dunno where though May 07 18:48:38 groxx, thank you , I'll look at it May 07 18:53:41 TFW your graphic designer gives you icons for buttons and they’re all different sizes >:( May 07 18:54:07 “just add padding” May 07 18:55:22 Hello everybody , I have a problem with Videoview , I received many SurfaceFlinger warnings when video is playing , and sometimes it leads to a total freeze of the system. May 07 18:56:18 tricknology, isnt it exactly HIS JOB to give you graphics in all resolutions in correct sizes ? ^^ May 07 18:56:23 didnt nobody tell him? ^^ May 07 18:56:44 I did :/ May 07 18:57:39 I find myself repeating if ou’re gonna give me icons for buttons, please make sure they’re the same size” May 07 18:58:14 I think theyre looking at the relative height of the content of the buttone May 07 18:58:18 not the border May 07 18:58:34 ah well May 07 18:58:48 thanks for letting me vent here abotu that :P thanks for understanding danijoo May 07 18:59:44 graphic designer sees the icon itself - the image within it. developer sees the border and is frakly not concerned with its contents May 07 19:04:21 are colorAccent and colorControlActivated supposed to be opaque ? May 07 19:05:59 g00s, i think so May 07 19:06:06 at least for colorAccent May 07 19:06:25 colorControlactivated uses colorAccent so i guess thats where i went wrong May 07 19:06:29 thanks danijoo May 07 19:06:36 btw i updated to 1.2 May 07 19:06:41 no issues with memory May 07 19:06:53 still think we need a 'theme browser' to follow the trail of attribute references :P May 07 19:07:06 danijoo AS 1.2 ? May 07 19:07:15 yep May 07 19:07:27 yeah 1.2.1 has been ok May 07 19:07:30 in fact, After 10 builds im still at 700m gradle daemon size May 07 19:07:44 pretty nice May 07 19:07:51 danijoo using gradle 2.4 ? May 07 19:08:20 no im still at 2.2.1 :x May 07 19:08:22 i started using 2.4 yesterday it seems OK May 07 19:10:02 hm, tmux 2.0 May 07 19:10:14 resist shiny toys .... May 07 19:10:57 i wish there would be something like tmux for windows May 07 19:12:36 agreed May 07 19:13:21 all we have is crappy console2 May 07 19:19:50 So I'm dragging a view around a RelativeLayout, and once ACTION_DROP I tell it to event.getY(); and event.getX();, but how do I apply those coordinates to the actual view I'm dragging? May 07 19:19:51 if i have my cursor over something like @android:color/holo_blue_light in XML, is there any way to evaluate that ? May 07 19:20:35 I can't just got view.setX(); because that view is inside another function May 07 19:20:46 Ctrl+Q works here. May 07 19:21:16 god damn it, command-q shuts down AS on mac May 07 19:21:19 ctrl-q doesn't do anything May 07 19:21:31 xD May 07 19:21:45 Doh! Sorry. :D May 07 19:21:56 That was a pretty tactical joke May 07 19:22:03 cmd+q is macs version of alt-f4 May 07 19:22:11 I forgot that. May 07 19:24:06 TacticalJoke what is your command-q keymapped to, symbolically ? May 07 19:24:27 Quick Documentation. May 07 19:25:03 Ok guys, lemme ask like this, what's the correct way of doing what I'm trying to do at line 185? http://pastebin.com/WgRa3pFM May 07 19:25:30 (mobArea is the LinearLayout being dragged around) May 07 19:25:55 TacticalJoke thanks, mac is command-Y May 07 19:32:33 Lorenz9 "I'm horrible 2" :D May 07 19:33:11 dont' know how to do dnd May 07 19:33:18 :D Look at my code and you'll understand May 07 19:33:27 (the reason of me being a horrible person) May 07 19:35:27 No worries, it's more about me not grasping how to send data between functions anyways May 07 19:35:31 Hello all! May 07 19:36:37 woooo ap computer science is done May 07 19:36:48 nowe i get to code android apps in school May 07 19:37:10 Welcome to hell :D May 07 19:41:08 In line 176 I create a variable, is there any way I can access it in line 133? (Outside of the function it was created in) http://pastebin.com/WgRa3pFM May 07 19:41:51 you dont create the variable in 176? May 07 19:42:05 you just isntaniate it May 07 19:42:10 or atleast reference it May 07 19:43:12 if you make it a inner class i think you can access it May 07 19:44:45 shit nvm im wrong. I've looked at too much code with that test today, my brain is fried May 07 19:45:59 true, I create it in 151, but my problem persists ;_; May 07 19:46:11 Ah no problem, thanks anyways May 07 19:50:05 hey guys anyone knows of a good way to show the android device screen on mac for dev May 07 19:50:30 like the vmc thing on windows May 07 19:53:26 Is it possible to get DatagramPacket from wifi ScanResult ? May 07 19:56:44 I imported ExoPlayer into eclipse as a library , I didn't find FrameworkSampleSource is it normal ? May 07 19:58:26 Hi, I have a question related to this: http://paste.lisp.org/display/147945 May 07 19:58:38 java Clock => ok but: dalvikvm -cp test.jar Clock => errors. Is this expected? May 07 19:59:09 uh May 07 19:59:14 no swing in android :? May 07 20:01:10 francogrex lol, are you kidding May 07 20:01:10 ok, that's the only reason? otherwise it would have worked... like graphics in java would have worked ok etc ... May 07 20:02:15 No, Android has its own windowing system, which is not Swing May 07 20:02:32 I see May 07 20:03:05 Why is it so hard to get the lowlevel stuff in Android... pissing me off May 07 20:04:17 what lowlevel stuff? May 07 20:05:18 Lorenz9: hey sorry I was offline May 07 20:05:28 No problem ofc May 07 20:06:02 wow, basic bus in RxJava. So simple https://gist.github.com/anonymous/96d65beb4140168ba53f May 07 20:07:00 lepourquoi: frameworksample is removed, now they updated it May 07 20:07:03 I would definitely not use an Object there, defeats the purpose May 07 20:07:24 I also prefer injecting my Rx buses with Dagger instead of using enum singletons May 07 20:07:25 lasserix, Thanks May 07 20:08:58 The more I think about it, the more absurd it seems that we are stuck with a language that doesn't support first-order functions. May 07 20:09:10 One in which closures need to be instantiated and the GC isn't good with loads of little objects. May 07 20:09:55 Someone should start an uprising. May 07 20:10:12 loads of little objects isn't a language issue so much as runtime issue (interestingly, about the worst offender is C/C++ code that ends up using malloc()) May 07 20:10:39 TacticalJoke: It’s not absurd at all considering the context May 07 20:11:17 jaana: 1/ well, yeah, it's more like proof on concept. 2/ if you use just one bus for whole project, why not enum singleton. May 07 20:11:21 Unless the context is the year 2015. May 07 20:11:33 that said, Java iirc lacks nice way of using a dynamic extent :| May 07 20:12:10 p_l: That’s a feature :) May 07 20:12:33 icedp: Yes, the point of using Rx for buses is to have more targeted, statically typed composable observables May 07 20:12:47 Not an app-wide singleton you send Objects to May 07 20:12:50 jaana: no, it's not (though I suspect we might be thinking about different "dynamic contexts") May 07 20:13:02 p_l: What does that mean to you? May 07 20:13:15 right, not context, extent May 07 20:13:33 icedp my question changed anyways, because I think I could solve the problem if I could just access posX and posY (line 176) from line 133, don't you think? So I would just have to got view.setX(posX) and view.setY(posY) http://pastebin.com/WgRa3pFM May 07 20:13:40 jaana: dynamic extent would, among other things, mean that classes could be allocated on stack May 07 20:13:46 to go* May 07 20:14:29 Because what I want to do is basically what is on line 185. May 07 20:14:40 p_l: What’s the value for this in a GC language that doesn’t have registers? May 07 20:14:45 TacticalJoke: also the context here is the fact that no-one made a good enough common target VM that would be easily retargetable to different systems while supporting somewhat comfortable programming, without making all the devs go even more insane May 07 20:15:06 jaana: quite a lot, it's not so much about registers as much as it is about liveness of the objects May 07 20:15:22 p_l: Right, which is managed by the GC May 07 20:15:53 jaana: dynamic extent is very heavily related to GC, what I meant earlier is that Java's semantics don't really give way to let GC do that May 07 20:16:10 I still don’t understand what you mean by dynamic extent May 07 20:16:29 the main value of stack allocated vars in a language like C++ is that they get automatically deallocated in exit. It’s a nonexistent problem in a GC language. May 07 20:16:42 jaana: you won't sent Object but different types and you can dipatch later by class or some tag object - a lot of eventbus use cases are actually that simple May 07 20:17:07 jaana: dynamic-extent objects are objects that are not going to be shared "outside" of the context of execution, making their allocation and reaping an easier thing for GC (kind of a fast-path) May 07 20:17:40 p_l: The GC already knows that without necessitating stack allocated objects May 07 20:17:50 NoSql for Android. CouchDb recommended? May 07 20:18:22 jaana: it could. not sure if java is sufficiently descriptive to allow it though. May 07 20:18:45 jaana: GC doesn't know it, GC has to scan the stack anyway - this is more of a flag to allocator to allocate objects telling GC that you're dropping the references once you go out of the frame, so GC has more information to use when reaping objects May 07 20:19:16 jaana: n.b. dynamic-extent is something from a much earlier GC'ed language, not C/C++ family :) May 07 20:20:08 Lorenz9: what's the objective? if you want to move a single view in layout you probably don't need draglistener - just override onTouch May 07 20:21:09 Lorenz9: http://stackoverflow.com/a/23185635/1056386 May 07 20:24:30 TacticalJoke maybe there is no fireside this year because Burke didn't want to anwer 'when java 8' :D May 07 20:24:32 hmm, so it looks like the storage access framework times out uris, how do I make sure that my access token is refreshed? May 07 20:25:14 https://gist.github.com/pfn/4a8744f985e8cc7a1013 -- a little bit of reformatting, and that's generally pretty awesome, heh May 07 20:25:36 I hope they announce java 8 support at google io May 07 20:26:34 yiati, are you dreaming? May 07 20:26:49 java8 support isn't going to work, unless they make retrolambda an official part of the toolchain May 07 20:26:57 or they target for api23+ only May 07 20:27:01 Java 8's lambdas do not look very appealing. May 07 20:27:06 Kotlin looks way nicer. May 07 20:27:21 api23+ for java8 api, retrolambda for everything else May 07 20:28:08 oh oh http://www.androidpolice.com/2015/05/07/attack-of-the-killer-ota-recent-android-5-0-2-update-bricks-nexus-9-for-some-users/ May 07 20:28:25 I... I don't get why doing it with onDrag is so hard... but thanks icedp, I'll continue tomorrow because I've been all day at it, hopefully it'll be a less frustrating experience :D May 07 20:29:22 lol "So, apart from the high price, poor specs, bad build quality, 4:3 ratio, late and buggy updates, its a good device?" May 07 20:29:31 although i like 4:3 May 07 20:29:45 Lorenz9: ondraglistener is for cases when you need to know that a view is being dragged over which view (e.g. to change it's positions or highlight it) May 07 20:30:08 poor specs and bad build quality? it's a little flexy I suppose, but the specs aren't bad... May 07 20:30:30 g00s: I quite like my N9, though life conspires against its use ;D May 07 20:30:40 I need an n9 for testing May 07 20:30:44 nexus7 isn't cutting it May 07 20:30:47 pfn: I suspect it might be related to many demanding applications being a bit flaky on K1 May 07 20:30:51 especially since I cracked the screen a while back May 07 20:31:01 due to being written and tested for Qualcomm & Adreno May 07 20:32:20 Personally, I don't see why Java 8 is even desirable on Android at this point. What would it even mean -- waiting two years for a few kinda-nice things? May 07 20:32:20 pfn: i like my n9 May 07 20:32:57 burntcookie90, then you should test some of my large tablet bugs for me ;-) May 07 20:33:11 Has anyone used LinkedIn's REST api for an app? Does Oauth work even without using the SDK? May 07 20:33:57 I have a really simple app that just pull some data so I dont want to figure out the SDK if i do t have to May 07 20:38:18 if its a good sdk, using it should make much less work than parsing REST api calls on your own May 07 20:38:57 Oh so you can actually use both at the same time? Okay that makes a little more sense May 07 20:39:44 (@ice) May 07 20:40:00 pfn: $100/hr May 07 20:40:27 burntcookie90, good, I know it'll only take a minute, so you can have a buck fiddy May 07 20:40:33 :p May 07 20:40:54 and if you take longer, I ain't payin', since you're slacking ;-) May 07 20:41:00 burntcookie90, still cheaper than appthwack :p May 07 20:44:14 "Traces of Fracking Chemicals Found in Pennsylvania Drinking Water" you go PA, dumbasses May 07 20:44:51 * groxx is shocked and dismayed that fracking results in such contamination. who woulda thunk it? May 07 20:44:52 real world, eh? what are those guys doing out there :D May 07 20:45:18 pfn: that's the price of a half taco, sounds good to me! May 07 20:46:45 I want to debug savedInstanceState, how can I force saving Activity state? May 07 20:46:56 this channel is good for newbie questions? May 07 20:46:57 rotate? May 07 20:47:09 canvs2321: Good idea, my app is portrait only but yeah i will do that May 07 20:47:28 dimitrovskif: Rotate the screen, press Home, etc. May 07 20:47:35 Oh, someone said rotate. May 07 20:47:48 TacticalJoke: Just pressing Home will do? I think it does not, it resumes without saving state May 07 20:48:03 TacticalJoke: On my device rotating does it, but I am not sure if Home will do? I think not? May 07 20:48:09 Pressing Home should call onSaveInstanceState, yeah. May 07 20:48:31 TacticalJoke: But will it call onCreate(Bundle instanceState)? I think not May 07 20:49:03 Not onCreate (usually, anyway). May 07 20:49:18 TacticalJoke: onsave is not called for onpause May 07 20:49:23 err home button May 07 20:50:10 dimitrovskif: you could probably goto settings->you app->force stop, or do something with adb May 07 20:50:20 lasserix: No, rotate is the best idea, works for me :) May 07 20:50:45 lasserix: AFAIK Android can't handle a rotation without killing an Activity and re-instantiating it, because of layouts and contexts May 07 20:51:00 yeah you can override that May 07 20:51:04 dimitrovskif: if you want the most-complete test, press home, then press the "stop" button in the "android" tab in android studio. that'll kill the process. then resume it from the recent-apps list. May 07 20:51:24 lasserix: It's called every time on my phone. May 07 20:51:29 You should check before correcting. :p May 07 20:51:34 i did May 07 20:51:58 do you have always kill activity? May 07 20:52:04 dimitrovskif: force-stop clears the saved state, so it's not the same thing. same with swiping the app away from the recents list - kills the process, also removes saved state. May 07 20:52:09 Thanks guys May 07 20:52:26 The documentation says "In addition, the method onSaveInstanceState(Bundle) is called before placing the activity in such a background state". May 07 20:52:31 Right after talking about onPause. May 07 20:52:37 So it should be called on your device, too. May 07 20:52:42 No, lasserix. May 07 20:52:48 pressing home has no necessary reason for calling on save, unless your phone is memory hogged and android decides to kill your app since you pressed home May 07 20:53:02 That's not how onSaveInstanceState works, lasserix. May 07 20:53:11 Android can't predict what'll happen in future so it calls it every time. May 07 20:53:32 What if I press Home and 10 minutes later use loads of RAM? Android needs to have called onSaveInstanceState already. May 07 20:55:03 itll call it when it soft kills your app, not just when you press home May 07 20:55:32 What makes you think that? May 07 20:55:45 The documentation states that it's called before the activity goes into the background. Says nothing else (as far as I can see). May 07 20:57:36 Also, if Android is taking down a process, I can't imagine it goes and calls onSaveInstanceState on some activity. May 07 20:57:42 http://developer.android.com/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle) May 07 20:58:07 "This method is called before an activity may be killed" probably means "called way in advance". May 07 20:58:16 Do not confuse this method with activity lifecycle callbacks such as onPause(), May 07 20:58:34 Hey, I have handler that loops and every iteration updates a photo on a fragment, I'm looking for a way to find out (preferebly throughg the run() call) if that fragment is no longer on the screen, so I could kill the loop... any suggestions on how to detect that? May 07 20:58:37 lasserix: FYI, I've done a *lot* of testing on this, and I've never seen what you're describing, so it's unlikely to be the case. May 07 20:58:54 Everything I've seen is consistent with onSaveInstanceState being called way in advance, and never again. May 07 20:59:20 TacticalJoke: the documentation explicitly states your correlation is no guarentee May 07 20:59:27 I'm not saying it's always called. May 07 20:59:56 lasserix, onSavedInstanceState is called everytime May 07 20:59:57 you did.. May 07 21:00:04 you should believe TacticalJoke :) May 07 21:01:45 if you look at that link, it explicitly states it is not called everytime May 07 21:02:45 lasserix: it's not called if activity is finishing May 07 21:02:49 It's not called if they press Back. If they press Home, I think it's almost always called. May 07 21:03:03 The exception being if the process is going down right away (though I'm not certain about that). May 07 21:03:09 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/5.0.2_r1/android/app/ActivityThread.java#3194 TacticalJoke lasserix May 07 21:03:22 backpress finishes so that why its not called May 07 21:03:29 it says right there in the doc its not gaurenteed to always be called, believe it if you must but anyways to whomever originally asked this, besides rotation you can do http://www.informit.com/articles/article.aspx?p=2067633&seqNum=5 May 07 21:03:33 home only stops May 07 21:15:07 quiet May 07 21:36:54 Guys im trying to get the width of a cardview and set the bitmap inside of an imageview inside of the cardview to the full width of the card May 07 21:37:14 match_parent? ^^ May 07 21:37:34 The ImageView is the correct width May 07 21:37:46 But the image inside the view does not scale May 07 21:37:49 what correct width? May 07 21:38:08 is the image trying to maintain aspect ratio? May 07 21:38:19 try alternate scale type May 07 21:40:06 I tried scaletype fit xy and center crop May 07 21:40:09 None did anythig May 07 21:40:17 if it should just fill the entire card, maybe set it as background May 07 21:41:09 How are you setting the ImageView's image, drose379? May 07 21:41:18 setImageBitmap() May 07 21:42:15 so without any scaling May 07 21:42:42 Then im doing setScaleType(ImageView.ScaleType.Fit_XY) May 07 21:43:13 You're doing that after? May 07 21:43:22 swap those May 07 21:43:29 Actually, that does work May 07 21:43:40 But the image is stretched so much and looks like hell May 07 21:43:43 I'd just set the scaleType in XML. May 07 21:43:59 Would that make a dif May 07 21:43:59 drose379, well. then you need to get a better image ;) May 07 21:44:29 Good call danijoo) May 07 21:44:33 danijoo_ May 07 21:44:38 Did you write the code to download and decompress the image, drose379? May 07 21:45:04 Yeah I did May 07 21:45:11 I know I shud prob be using a Lib May 07 21:45:13 use a lu May 07 21:45:19 you should May 07 21:45:20 lu? May 07 21:45:23 images are tricky May 07 21:45:25 Are you using BitmapFactory.inSampleSize? May 07 21:45:28 s/lu/lib May 07 21:45:28 I know May 07 21:45:36 No whats that TJ May 07 21:45:49 I mean ".Options[...]". May 07 21:46:27 yeah, I used tht to set the quality May 07 21:46:27 It's for subsampling. It helps avoid too much memory allocation. May 07 21:47:22 oh ok May 07 21:47:47 I got the images to look fine, but the scrolling in the ListView is really laggy now May 07 21:48:00 Are you redownloading the image each time? May 07 21:48:20 Each time the activity opens, yeah. I need to use caching May 07 21:50:09 What about when the ListView is scrolled -- how do you get the old Bitmap again? May 07 21:51:00 so i updated the Gradle plugin to 1.2.3, and now my build is failing because it says there is a duplicate file in drawable-xxhdpi-v4 and in drawable-xxhdpi. I don’t have a drawable-xxhdpi-v4 folder May 07 21:51:04 Not sure, each time getView is called I use a bitmap from a List TacticalJoke May 07 21:51:20 the BaseAdapter is passed a pre-loaded list of Bitmaps to pull from, there should be no lag May 07 21:52:31 Maybe the bitmaps are high-res. May 07 21:53:05 The quality is pretty good, how would I know the res though? May 07 21:53:18 downgrading back to what i had, version 1.1.0, means that my breakpoints are no longer stopped at May 07 21:54:10 drose379: Is the source online? May 07 21:54:17 I dunno about finding out the resolution. May 07 21:54:19 So heres what im doing May 07 21:54:41 User chooses image->encoded to byte[] then to base46 May 07 21:54:42 64 May 07 21:54:45 sent to API May 07 21:54:57 decodes base64, saves image to my server May 07 21:55:07 returns a link to the image on my server for the device to access it later May 07 21:55:16 Same thing to grab it really May 07 21:56:50 drose379: Don't see why any of that is relevant if you're sending your adapter an array of Bitmaps May 07 21:57:24 s73v3r maybe a library does ? May 07 21:57:45 drose379: Make sure you aren't loading a higher res image than you need to, and that stuff is being recycled efficiently May 07 21:57:47 no, it’s an image that i have put in ther May 07 21:58:19 Hey guys. I'm new to android but have an app due for tomorrow. I am having issues accessing a function in main activity from an object I've created. May 07 21:58:19 Specifically, I have declared all the functions relevant to getting a users location in main activity (Fused). I now want to create a button to start getting the location but from another layout file. May 07 21:58:19 The problem is i cant access the function from outside of main activity. May 07 21:58:19 any ideas? May 07 21:58:47 put the button in main activity May 07 21:58:48 Create a new instance of the class May 07 21:58:56 I have a blank activity/layout how do I display my image at full width:height at center. It's larger than the screen so I want to show only center with rest of image hidden outside screen. May 07 21:59:08 ok to put it another way I have a function to start recieving the users location. It uses the google maps fused api. Should I create an object from this and pass it around? Or use a static function in main activity? May 07 21:59:10 Or allow zoom on imageview May 07 21:59:28 yiati how would I check the image resolution May 07 22:00:01 drose379: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html May 07 22:00:09 Thanks yiati May 07 22:00:21 drose379: If you're not using inSampleSize, you're probably loading a too-large image. May 07 22:00:29 And that link talks about it. May 07 22:01:38 Great, im gonna check it out May 07 22:01:45 s73v3r I can't put the button in main activity as it belongs to a fragment. May 07 22:02:15 can I create a new instance of main activity? May 07 22:02:42 No May 07 22:02:59 You create a new instance of the class that gets the data for you, from your main activity May 07 22:03:04 Then call the necessary methods May 07 22:03:13 Then get the values May 07 22:03:19 then assign them to any layout element you want May 07 22:05:35 their is no class that gets the data. It is a function with main activity that calls the api for periodic updates May 07 22:05:53 so in mainActivity onCreate, call the function May 07 22:06:00 Have it return the data you want May 07 22:06:09 Then use that dat May 07 22:06:10 a May 07 22:06:19 man thats lame I have to put this RelativeLayout in a FrameLayout just so I can get a foreground drawable May 07 22:06:40 i thought all views had android:foreground O.o nope May 07 22:07:54 g00s, yeah.. this is so dumb. May 07 22:08:02 I always feel bad when doing that May 07 22:08:17 same when I have to wrap a viewgroup in cardview just to get cardview look May 07 22:09:01 danijoo_ yeah ... i'm just doing this for activated items in my recyclerview :/ May 07 22:09:07 using action mode May 07 22:13:17 It's funny when people post, on newbie-programming forums, "I'm looking to learn C++/C#". May 07 22:13:33 Might wanna make your mind up. :D May 07 22:14:17 TacticalJoke they both have curly brackets :D May 07 22:15:51 C# is actually C++ with four + signs all lined up next to each other May 07 22:16:31 danijoo_ https://plus.google.com/+AndroidDevelopers/posts/aHPVDtr6mcp May 07 22:18:48 g00s: Support lib plz May 07 22:20:09 Hey everybody! I'd like to swap two views in a linearlayout without any ongoing touch/drag events being cancelled. layout.removeChild cancels those events. Any other ways? May 07 22:20:37 removeView* May 07 22:21:44 Joozey: What the user sees, and what actually happens are allowed to be 2 different things May 07 22:21:50 alpha, something along those lines May 07 22:23:14 guys what is a bitmap width measured in May 07 22:23:29 Im trying to scale it, but what units are height and width? dp? May 07 22:24:09 pixels May 07 22:24:26 #youwishbro May 07 22:24:58 is there a way to get the length of final byte[] before decoding with mediacodec? May 07 22:25:35 gots 2 buffer May 07 22:25:49 :( May 07 22:26:01 #youwishbro May 07 22:26:26 yiati, thanks, but that was only moderately helpful May 07 22:27:19 Sixmsj, final byte[] ? May 07 22:27:34 Joozey: I've been looking at Okio lately and it's pretty nice for buffering. Does all the fancy stuff that stuff like ArrayList does to make array allocation a non-thought, http://square.github.io/okio/okio/Buffer.html May 07 22:27:39 but for Buffers May 07 22:28:09 I haven't used it yet, don't know if it's applicable, but plan to try it out soon, http://square.github.io/okio/okio/Buffer.html May 07 22:28:15 meh wrong link May 07 22:28:21 https://github.com/square/okio May 07 22:28:38 ^ homepage with good README May 07 22:29:38 Joozey, did you try just directly updating / swapping their layoutparams? May 07 22:29:54 does layoutparam contain index info? May 07 22:29:56 if that cancels the event, use translationX/translationY to fake the swap until end of drag and swap layoutparams then May 07 22:30:04 Joozey, what index info? May 07 22:30:21 layout params contains... layout params of the parent view :) May 07 22:30:55 yeah Im using ObjectAnimator on translateX to make the fake animation, but it would be so much easier if I can swap the indexes in the linearlayout first and then apply the animation, moving from old position to 0 May 07 22:31:53 yeah, that's not gonna work May 07 22:32:11 "swapping the indexes" will cause a new layout pass May 07 22:32:35 so I just need to fake all the swapping until the user releases then? May 07 22:32:53 pretty much May 07 22:33:03 Joozey, or just stop relying on linearlayout index May 07 22:33:08 keep track of all the views that have moved and in the end change the indexes for real May 07 22:33:57 Use Material Design they said. Will be fun they said. But they didn't provide any helpful widgets to actually implement this Material Design vision. May 07 22:34:14 Sixmsj: sorry meant to tag you about okio May 07 22:34:17 When you hit "debug" instead of "attach to process" May 07 22:34:45 Joozey, yeah, welcome to real world where people don't do your work for you ;) May 07 22:34:50 :D May 07 22:35:03 drag/drop sucks tho :P May 07 22:35:39 you could easily just make an arraylist of all the views in LL and then just set transformations according to their position in that list until drag is done May 07 22:35:48 do bookeeping outside the layout tree May 07 22:36:05 I'd swear there's a talk from Chet Haase about that May 07 22:36:20 It does, but at least the panel lifts up nicely, is movable along the x-axis and the shadow is rendered correctly too... at least on my own phone. :P May 07 22:36:29 g00s, when I read posts like this pro tip. I really dont understand why they didn just make it part of every viewgroup class May 07 22:37:06 Mavrik, if you find it I'd appreciate to see it May 07 22:38:31 Sixmsj, you still haven't explained what this final byte[] is supposed to be? May 07 22:38:35 eh May 07 22:38:52 when you decode from mediacodec, i think you get a short[], sorry for saying byte[] May 07 22:39:06 it’s just so i can plot pcm wave forms May 07 22:39:56 Sixmsj, you're just repeating the same thing... what is your problem? Do you want to know how big a decoded buffer for a second of video/audio will be? For whole track? The next buffer retrieved? May 07 22:40:03 Do you have only audio? May 07 22:40:06 the whole track Mavrik May 07 22:40:33 sample_rate * channels * seconds May 07 22:42:07 which class would i pull that from Mavrik? May 07 22:46:41 Uh, from the one describing your input audio? May 07 22:46:55 thanks Mavrik, i found it May 07 22:46:59 Those usually come from audio file metadata May 07 22:47:30 Might wanna do processing piece-by-piece though, or you'll run out of memory May 07 22:48:36 I have an ng-model that I'm trying to bind to a value in a service object. May 07 22:48:38 But it's not working. May 07 22:49:03 I've done myService.hello = "hello!" and this shows up in {{myService.hello}} in the dom. May 07 22:49:11 thanks Mavrik May 07 22:49:56 But myService.otherObject.hello = "hello" does not show up in the dom with {{myService.otherObject.hello}} May 07 22:49:57 Any ideas? May 07 22:51:08 I wonder what will be the cheapest windows phone that gets windows 10 May 07 22:51:45 I want to get one to test the upcoming android feature but with as less cost as possible May 07 22:53:24 Ah there we go, Nexus 9 / 5.1 rollout starting May 07 22:56:54 Whats the best way to deal with like "reset password response"... So a user submits an email, and if successful they got shown a message. But what if the app gets bg'd, can you safely just change UI while its bgd or should you wait till on resume and check some flag or something? May 07 22:57:07 Mavrik, waiting for the news "5.1 bricks some nexus 9 devices" May 07 22:58:03 lasserix, you can change the ui if savedInstanceState isnt called yet May 07 23:00:46 lasserix, hmm, what is the use-case? May 07 23:00:58 usually you fire off an email which then brings you back to the app via URL intent May 07 23:01:09 don't see the need to update any UI really May 07 23:14:24 good day everyone, I've been working on a simple app that allows drawing on canvas and converting the input to either lines or curves, i need to extend it to allow multi touch (same process but with multi finger input) and not sure how to approach it, any suggestions? (all functionality currently works with 1 finger input) May 07 23:31:42 anyoen work with deeplinking? May 07 23:31:51 i want to get the page from which the deep link was clicked May 07 23:33:42 JakeWharton: Listening to fragmented podcast atm. Proguard shrinks APK sizes by a good amount. Have you considered using it for that reason? May 07 23:35:12 surf2b1: I'm sure he knows that May 07 23:35:28 surf2b1: how does it shrink it? May 07 23:35:49 oh, maybe he doesn't ;) May 07 23:36:06 He does. Mostly rhetorical question. May 07 23:36:06 method/field names are shortened -> classes.dex is smaller May 07 23:36:28 That's a very thin reason. MongoDB would approve. May 07 23:37:34 (MongoDB stores keys un-deduped so short keys == smaller storage requirements) May 07 23:38:00 I just heard MongoDB randomly makes data dissapear May 07 23:38:42 What's the ratio of classes.dex vs resources? I can't imagine short methods and fields has any major effect because resources dwarfs it on size. May 07 23:40:13 IDK the ratio but after building a production build just now I went from 5 MB to 3.1 MB May 07 23:40:32 JakeWharton: that was a good podcast, now I'm going to listen to the Jake Show from the Backstage Developers Podcast May 07 23:41:59 and I hate the word podcast because it relates to ipods May 07 23:42:36 Mavrik: user forgot password. so click they forgot, which takes them to edittext with button, upon pressing if sucessful server response some text shows up May 07 23:42:45 the question is how to handle if it gets bg'd during the process May 07 23:43:00 Also, have you noticed the issue with fiends in R being copied from library to library. I think this is the reason why many people go over 65K. For example: someone uses appcompat and library foo. library foo depends on appcompat and your project uses both. Then all fields in appcompat's R class get copied to library foo and your project May 07 23:43:15 * fiends = fields May 07 23:52:30 best thing you can do with resource size is something I suggested earlier to our graphic designer.. May 07 23:52:43 case: we have 4 icons but want 6 different colors May 07 23:52:57 instead of making 24 icons, make 4 icons with transparent middles May 07 23:53:03 (the icon part) May 07 23:53:08 tricknology: missed it... May 07 23:53:24 then we devs make an underlay, and stack the icon on top of it May 07 23:53:32 the underlay is the color that we want the icon May 07 23:53:43 onlt 4 images are ever used to make 24 icons May 07 23:54:31 little tricks like that can save space - not sure if it applies in your case May 07 23:54:39 but Jake is right about resources May 07 23:54:55 I about had a stroke when she gave us 72 icons May 07 23:55:12 I see a bunch of APK's with 2 icons for light and dark theme. I just use a colorfilter and have one icon. I started not adding images for hdmi and below too. May 07 23:55:40 that’s a good one May 07 23:55:55 do you have a lot of libraries? May 07 23:57:15 me? not too many May 07 23:57:34 ah May 07 23:57:47 I had to use ImageIO for something.. it was 10MB May 07 23:58:00 I jsut took the relevant classes.. < 40kb May 07 23:58:05 well more like < 400 May 08 00:02:02 All my libraries with resources have the same package name though. I even build appcompat with the same package-name so I don't have a bunch of useless copies of fields in R. Kinda extreme, I know. But it shrinks my method count significantly. May 08 00:02:08 hello, need a little help please, I want to do a camera preview where most of the screen is dimmed except for a shape cut out in the center. is this possible ? May 08 00:04:00 Mavrik, got the horizontal dragdrop to work ^^ thanks for the push May 08 00:46:37 this is just so bizarre; i see this often maybe somebody know why they do this May 08 00:47:00 final boolean drawSelectorOnTop = mDrawSelectorOnTop; May 08 00:47:01 if (!drawSelectorOnTop) { } May 08 00:47:35 why make a local temporary, there is no concurrency May 08 00:48:07 so how do you guys "force" yourself to code May 08 00:48:44 after school I'm always super tired, but this is time i need to code if i want to make headway on any app. do you guys do anything that puts you into the coding mood as wierd as that is May 08 00:48:56 you dont wait May 08 00:48:59 you wake up earlier May 08 00:49:06 or start exercising after you get off May 08 00:49:07 i hire Soviet Terrorists to kidnap my friends and family, and threaten to kill them unless I make my milestones May 08 00:49:11 yeah its better to fall asleep in school May 08 00:49:32 im serious, wake up a 3 am, goto bed at 8 pm May 08 00:49:48 gives you 4 solid hours of app or whatever before school May 08 00:50:07 lasserix: that was working for a while but what ended up happening was that i would fall asleep at like 5pm, but then wake up at 10pm and not be able to fall asleep May 08 00:50:11 OR you can get in the habit of running or gym to reengergize yourtself between what you have to do and what you want to do May 08 00:50:21 DadFoundMy if you go to school for CS, maybe in free time you just wont want to code :D May 08 00:50:22 DadFoundMy: yeah it takes real discipline May 08 00:50:38 maybe instead, party, hang out with friends, etc May 08 00:50:40 and then couldnt really work after 10 because i was in the shitty post-nap mood May 08 00:50:42 :D May 08 00:51:13 g00s: im scared of that, coding becoming more of a chore May 08 00:51:39 lasserix: i think that excercise part is the key... i just dont know how :D May 08 00:51:53 like coding you just start doing it May 08 00:51:55 ive always been that naturally super skinny kid, so ive never really worked out May 08 00:51:55 make sure you stretch May 08 00:51:57 a lot May 08 00:52:06 get a habit for endorphins May 08 00:52:09 should i just like... do push ups? May 08 00:52:33 sure May 08 00:52:39 just do something everyday May 08 00:53:00 is it one of those things that i should do it at the same time every day or does that not matter? May 08 00:53:18 Same time every day would make it easier to make it routine May 08 00:53:22 DadFoundMy coding is more interesting when you are working on interesting problems; so the key is to find interesting problems May 08 00:53:41 coding just for coding ... that might be fun until your late 20s or something May 08 00:54:37 g00s: my biggest fear is that one day ill wake up and just reaaallly not want to code the same way i feel about writing essay's. If it happens it means that most likely my entire college degree would be a waste May 08 00:55:04 and ive kinda always been the person to not keep hobbies for too long May 08 00:56:46 DadFoundMy first key is to be curious; if you are curious you will be going down different paths all your life May 08 00:57:22 there are so many things to learn May 08 00:57:54 Guys im tryin to add a overlay to my imageview May 08 00:58:00 with a tinted background and some text on it May 08 00:58:10 Ive searched around, but cant find anything solid, any ideas? May 08 00:58:10 drose379 lol, we were just talking about that May 08 00:58:14 no way May 08 00:58:24 drose379 you could do it like this https://gist.github.com/chrisbanes/9091754 May 08 00:58:43 or you could put it in a framelayout and set the foreground drawable on it May 08 00:59:00 but - its unecessarily tedious May 08 00:59:01 so idk how many, if any, in this channel code in like a corperate setting, but how does that work? is it so mind numbing that you get home and not code or is it easy to seperate work and personal code? May 08 00:59:10 g00s: did you get a cs major? May 08 00:59:22 drose379 see parent article https://plus.google.com/+AndroidDevelopers/posts/aHPVDtr6mcp May 08 00:59:33 DadFoundMy computer engineering, so it was more HW May 08 00:59:52 is that more on the hardware side of things? May 08 01:00:01 Thanks g00s May 08 01:00:10 DadFoundMy are you second guessing your programming passion? May 08 01:00:13 yeah. more EE courses, circuit design, etc May 08 01:00:56 control systems May 08 01:01:34 drose379: it's not that im second guessing it becasue i love it right now, but im scared in 10 years i wont May 08 01:01:41 or even like 3 years May 08 01:01:48 hmm May 08 01:01:50 why is that May 08 01:02:23 DadFoundMy its completely normal to have different priorities in life, from HS to ... 30s, 40s, etc :D May 08 01:02:43 drose379: im not sure, i guess it stems from the fact that any things ive been passionate so far have died out fairly quickly May 08 01:03:05 How old r u May 08 01:03:05 drose379: your probably in a similar boat choosing universitys and majors and such, are you going with a cs major? May 08 01:03:11 drose379: 17 arent you also? May 08 01:03:14 yeah May 08 01:03:15 or wait no im 16 May 08 01:03:15 18 though May 08 01:03:18 hahaha May 08 01:03:20 im 18 May 08 01:03:24 Anyways, yeah im doing CS May 08 01:03:24 shit i forget my age sometimes lol May 08 01:03:31 lol May 08 01:03:35 have you commited anywhere yet? May 08 01:03:50 i hear CS enrollment is up quite a bit May 08 01:03:55 Yeah, I got an internship for this summer too so I can see if I like the corporate setting too May 08 01:04:00 cs is overrated :p May 08 01:04:04 but at the same time, the big US companies want more H1-Bs May 08 01:04:07 Yeah, every kid and his brother wants to learn to code May 08 01:04:21 g00s: i know its normal to have different priories, but then i wonder if i would still be able to code for a job and not absolutely hate my life lol May 08 01:04:40 drose379: cool, what school did you commit to? May 08 01:04:50 DadFoundMy, if you like to code you like to code May 08 01:04:51 New Hampshire May 08 01:04:54 not much to it May 08 01:05:07 drose379: and true about everyone wanting to code, but so many less actually follow through with it May 08 01:05:18 I'd say 95 wont follow through May 08 01:05:23 95% May 08 01:05:42 ahh i like unh. i visited when i was a lot younger for my brother May 08 01:05:44 DadFoundMy but its good to know, why you like to code. does it help you solve problems important to you? do you like applying rigorous and analytical thinking? there are other things that share those attributes May 08 01:05:45 how can i get lint check to happen from command line every build? if i run gradle clean assembleDebug it is never run May 08 01:06:12 DadFoundMy yeah is nice May 08 01:06:15 DadFoundMy for example, maybe you would also like data science, statistics, or whatever. all those guys are coding now :) May 08 01:06:54 g00s: i guess ive always just been a problem solver. I remember being in like second grade and solving a problem and not never getting any other problems like it in school and missing it. but then i started coding and it felt similar May 08 01:06:59 idk why that always stuck out to me May 08 01:07:20 DadFoundMy there are plenty of domains that require problem solving, coding is just one May 08 01:07:58 its a good idea to have many different experiences, and then as you learn about yourself you can make a better decision May 08 01:08:03 it just kinda sucks that in america to some extent you choose your degree, but then if 3 years later you find out you hate working with that degree you just wasted like 200k May 08 01:08:31 DadFoundMy, not really May 08 01:08:31 yeah, there is a lot of risj and 'is degree worth it' talk these days May 08 01:08:37 i guess thats where internships come in handy May 08 01:08:41 DadFoundMy, degrees for the most part really don't matter to your career, except for a handful of jobs May 08 01:08:49 medicine, finance, and law May 08 01:08:50 basically May 08 01:09:00 and to some extent, some forms of engineering May 08 01:09:13 if im applying for as job in lets say marketing it doesnt really help to have a cs degree May 08 01:09:22 DadFoundMy, doesn't really matter May 08 01:09:26 most people don't do work in their fields of study May 08 01:09:38 ive also considering getting a law degree after my cs undergrad May 08 01:09:50 DadFoundMy what hobbies have you had that have fizzled away May 08 01:10:00 im one of those kids thats pretty good at debating and public speaking so i think law might be cool for that May 08 01:10:02 Are they anything as open ended as coding? May 08 01:10:42 drose379: pretty mixed stuff. photography, computer hardware, bitcoin, i get bursts when im really into video games May 08 01:11:08 How long you been stuck on programming? And are you working on a steady project May 08 01:11:08 deffinetly not as open ended as coding May 08 01:11:16 Coding is never ending May 08 01:11:18 DadFoundMy i got into photography much later than most others, i think it started when i was trail running and got lucky often & wanted to take a snapshot May 08 01:11:32 DadFoundMy in school, i thought photography was lame :) May 08 01:11:41 drose379: about 2 years ago. and yeah i have too many projects at the moment May 08 01:11:45 g00s Im a little confused about ForeGroundLinearLayout May 08 01:11:48 but then you realize, OH, its not just arts BS, you can be an activist with photography May 08 01:11:55 having projects that i work on deffiently helps keep it fresh May 08 01:11:56 Is there a log of this channel? May 08 01:11:59 nini1294, no May 08 01:12:02 Hi.. some book to learn easy Android?? May 08 01:12:17 essentials May 08 01:12:19 chemita: if you have java experience i loved big nerd ranch May 08 01:12:24 chemita: developer.android.com May 08 01:12:25 drose379 for now, easiest to put your imageView in FrameLayout, and set Framelayout foreground drawable to color with some alpha May 08 01:12:27 and the update is coming out soon i thinkl May 08 01:12:50 DadFoundMy do you like to read :D ? May 08 01:12:52 g00s what about putting text ontop of the tint? And what if I only want to tint part of the image May 08 01:13:00 DadFoundMy do you have anything on the play store May 08 01:13:02 yes, i have some experience in java May 08 01:13:05 g00s: yeah i used to be super into photography but i found it grew stale. Maybe it's becasue i was so young and couldnt venture much outside my home area May 08 01:13:31 and some video?? for learning too?? May 08 01:13:38 g00s: i dont really like reading books but i love reading articles. i skim some newspapers everyday May 08 01:13:39 DadFoundMy yeah. if there are nice subjects around, it easier to be into photography May 08 01:13:59 programers are safe for a little while i guess, but i'd read http://www.amazon.com/The-Second-Machine-Age-Technologies/dp/0393239357 May 08 01:14:11 i justgot this but haven't started it yet http://www.amazon.com/Rise-Robots-Technology-Threat-Jobless/dp/0465059996 May 08 01:14:13 drose379: i only have one big project on the play store and a really tiny one, one sec ill get a link May 08 01:14:14 g00s, not if all the work gets outsourced to india and china, etc May 08 01:14:22 g00s, only thing that's safe is management May 08 01:14:37 drose379: https://play.google.com/store/apps/details?id=com.dylanredfield.agendaapp2 May 08 01:14:42 you assume management is safe from automation? May 08 01:14:57 groxx, need to manage the automation, you know May 08 01:15:08 automation manages automation :) May 08 01:15:15 not until there's AI, no May 08 01:15:24 yeah, but automation is a force-multiplier. one person can manage automators to do the work of multiple people. May 08 01:15:26 g00s so I should use frameLayout instead of LinearLayout and put my imageView inside of it May 08 01:15:37 chemita: i wouldnt get too held up on a book or any learning material. I found with android it was a lot better to learn the bare minimum basics and then just start coding May 08 01:15:48 drose379 yeah, but don't know what to say about text & stuff May 08 01:15:49 so it probably won't _vanish_, but I don't see why it can't dramatically shrink May 08 01:15:57 chemita: atleast for me everything just "clicked" to the point where i could learn as a coded on my own May 08 01:16:14 thanks for the information, i'll see the book you say May 08 01:16:20 thanks g00s May 08 01:16:42 if i have questions about programming can i do it here? May 08 01:16:49 drose379 you could inherit framelayout, and then draw text on the canvas i guess - i'm not an expert May 08 01:17:05 Alright May 08 01:17:06 chemita: yup its a really good resource for finding quick answers and opinions May 08 01:17:09 finally installing AS May 08 01:17:25 thanks again!! May 08 01:17:36 Tricknology: you've gone this long with eclipse??? May 08 01:17:54 Wait does RelativeLayout stack its children? May 08 01:17:58 Like on top of eachother May 08 01:17:59 im so glad this chan convinced me to switch to AS, its made everything so much easier May 08 01:18:10 drose379: yup May 08 01:18:19 Oh sweet, so I can add text that way May 08 01:18:52 yeah i love relative layouts for most things May 08 01:19:13 DadFoundBy - yes May 08 01:19:20 DadFoundMy, - yes May 08 01:19:52 drose379, yes in the order that they appear in the xml May 08 01:20:00 Thanks May 08 01:20:18 first one in, last one in the stack May 08 01:20:29 So the first is on the bototm May 08 01:20:32 last is on top May 08 01:20:39 since it's a pain to actually verify, does anyone know how java behaves if e.g. an in-line `new Runnable() { }` _could_ access a final variable in its containing method, but does not? does the GC clean up the final variable asap, or does it hang around as long as the anonymous class instance does? May 08 01:21:17 who uses kotlin May 08 01:21:29 I know TacticalJoke likes it May 08 01:21:36 Dont think hes here right now though May 08 01:22:07 cool May 08 01:23:20 You use it? May 08 01:23:20 drose379, yes May 08 01:23:48 you can use view.bringToFront() to chang ethat htought May 08 01:23:53 So who here is a professional programmer? And does it for a living? DadFoundMy brings up a good point May 08 01:23:56 sry new keyboard May 08 01:24:10 No prob, wht kind of KB you got? May 08 01:24:12 uuh (i might) May 08 01:24:22 corsair k70 May 08 01:25:09 DadFoundMy, drose379 waht was the point? I missed it... May 08 01:25:12 You might Tricknology? May 08 01:25:38 I do but I might not know the answer you're looking for.. May 08 01:25:38 We were just wondering what life is like as a programmer? And if after the work day do you want to go home and work on personal projects May 08 01:25:46 oh haha May 08 01:25:49 that I do know May 08 01:25:49 or are you really burnt out for the day May 08 01:26:06 it depends on where you work really, and if you like what you're doing. May 08 01:26:17 I'm the only Android dev at my job so I get to see projects from teh ground up May 08 01:26:17 Say you love programming May 08 01:26:19 Tricknology: like do you work as a programmer in like a 9-5 setting? May 08 01:26:21 I do May 08 01:26:32 I actually have a degree in engineering May 08 01:26:47 switched fields May 08 01:27:00 yes I do drose379, I ran into an annoying issue in it's replacement for findViewById May 08 01:27:07 So do you love your job May 08 01:27:13 So 9-5 is cool, I like my job, I get to see everything going on May 08 01:27:14 Are you trying to work your way up to manager? May 08 01:27:19 yes I do May 08 01:27:26 uuh well the company is growing so.. I manage myself May 08 01:27:39 Cool May 08 01:27:44 plus I have other swing projects in other programming languages May 08 01:27:49 it keeps me busy May 08 01:27:53 Thats what keeps it going, yeah May 08 01:27:54 On the side I do freelance May 08 01:28:03 That must be fun too May 08 01:28:07 yeah if I had to maintain the current app I could see it getting boring May 08 01:28:21 but we're building a new version and I have other things to do than maintain current code May 08 01:28:30 Right, thats why you do personal projects and freelance May 08 01:28:36 Sounds like you got it pretty well balanced May 08 01:28:37 yeah May 08 01:28:43 so far so good May 08 01:28:47 I'm stil new May 08 01:28:50 How long you been doing it May 08 01:29:11 less than a year and more than 6 months May 08 01:29:17 professionally May 08 01:29:27 about 4 years for fun May 08 01:29:32 Tricknology: so after you get home from work do you feel really burnt out on coding? like the last thing you do is want to sit in front of a computer. judging that your on irc right now i guess thats not the case :D May 08 01:29:37 the last 2 more seriously May 08 01:29:51 sometimes May 08 01:29:56 but I get really into my work May 08 01:30:11 liek I want to migrate everything to AS at my job.. but first I want to do that here on my freelance project May 08 01:30:28 so I get stuck on these things i have to do and I do them I guess May 08 01:30:40 maybe it's obsessive.. or hyperfocus May 08 01:30:42 but I do like it May 08 01:31:02 and it's hard to stop sometimes. so I guess it's the opposite from what you're expecting maybe? May 08 01:31:43 They always say to get a job doing what you love, and it works out in my case May 08 01:32:20 Nice job Tricknology :D May 08 01:32:37 But also there are times when I am burned out. I usually take some time to go out on the weekends or go on a road trip but I make sure my job gets done first and I give myself realistic deadlines. May 08 01:32:49 thanks :) May 08 01:33:11 You may also want to ask Napalm about how he feels. He does contract work IIRC May 08 01:34:24 i think its better to get a job where (1) you enjoy (2) people will pay you (3) you can be good at May 08 01:34:35 but there is a wierd relationship between mastery and joy May 08 01:34:53 i read people begin enjoying things they previously didn't, if they master them May 08 01:35:02 its kinda like "emotions follow behavior" May 08 01:35:17 Women seem wicked when your unwanted May 08 01:35:23 When you suck at something, its no fun May 08 01:35:30 lol May 08 01:35:35 When you are good at something, its a greeat time May 08 01:35:36 drose379: like spelling and grammar? May 08 01:35:58 CedricBeust are you calling out my spelling and grammar? May 08 01:36:09 I'm trying to get a JSON object from an API call. Does anyone know an easy way to do this? May 08 01:36:22 drose379: Yes, there was a spelling mistake in each of the last three sentences you wrote :) May 08 01:36:32 What I've seen online uses DefaultHttpClient, which is deprecated. May 08 01:36:36 g00s all that is definitely true, sepecially hte weird relationship between mastry and joy May 08 01:36:37 when i think of it worst case scenerio i start to think of coding like a "job" in the future, but is that so bad. I mean i think most people dont love what they do May 08 01:36:39 Whatever, were in a chatroom! Did you guys like my analogy though? May 08 01:36:47 even flamm victories May 08 01:36:51 small* May 08 01:36:58 and is it local? like do you think i should go and apply to all the local places May 08 01:37:12 Yes May 08 01:37:19 depends on where local is May 08 01:37:50 lappy_: http://square.github.io/retrofit/ May 08 01:37:52 I wanted to move here, and I was pretty close anyway so it was easy. Lots of coding jobs are here as well. May 08 01:38:12 apply everywhere though May 08 01:40:24 yiati, thank you! That looks promising. I'll give it a shot now. May 08 01:41:00 OH! another big one about liking your job.. the staff May 08 01:41:18 ?? May 08 01:41:20 ppl you work with and are gonna see every day better be cool. or at least jive well with you. May 08 01:41:37 your colleagues May 08 01:41:49 Definaltey May 08 01:41:57 Cedricbeust ^ My spelling tho May 08 01:42:25 I have an old colleague who left here and went to a different place, he said the peopel there suck, don't even say hi. Break room is dead. May 08 01:42:26 DadFoundMy, most people don't love what they do, but that's because it's a matter of necessity May 08 01:42:34 DadFoundMy, most people are working minimum wage jobs May 08 01:42:51 guys, when i say setForeground(a drawable), it seems its not taking effect - but its fine if I set it through xml. is there something i need to know? :D May 08 01:42:52 pfn are you? May 08 01:42:57 drose379, of course May 08 01:43:00 :P May 08 01:43:06 I'm so broke, gimme money pls May 08 01:43:20 lol pfn is not broke May 08 01:43:35 says who? May 08 01:43:40 but he is a nigerian prince May 08 01:43:45 there's a biggie quote I'd lile to place here but it's vulgar May 08 01:43:53 Dude what just do it May 08 01:44:10 g00s: what type of view May 08 01:44:18 yiati FrameLayout May 08 01:44:25 pfn: i guess thats the fact that we have to come to terms with that people inhertitly dont always love their job May 08 01:44:36 its not always "love what you do and you'll never work a day in your life" May 08 01:44:38 "F.. the world don't ask me for S.. anything you get you gotta work haaaard for it" May 08 01:44:43 DadFoundMy, it's ok to try out different things May 08 01:44:53 DadFoundMy, try going after coding, if you don't like it, you'll figure out something else May 08 01:45:06 Thats a fact Tricknology May 08 01:45:16 Did you work hard to learn to program like a boss? May 08 01:45:18 :P May 08 01:45:26 im going to try to open myself up with some minors too May 08 01:45:46 g00s: hmm idk something must being going different though May 08 01:45:47 like ill probably do a chinese minor because ive lived in china on and off for a few months at a time May 08 01:46:07 really? May 08 01:46:31 I don't program like a boss I don't think. But I did spend a lot of time, lots of coding sprees, tutorials.. May 08 01:47:00 hmm ok May 08 01:47:48 do it May 08 01:48:07 you might have to speak mandrin to a device supplier May 08 01:48:25 Mandarin May 08 01:49:48 Tricknology: yeah these days is sooo useful. plus the government has been basicly paying for student's entire mandarin educations because like no americans speak the langague other than those whose parents speak it May 08 01:50:02 interesting... May 08 01:56:44 Well.. that was painless May 08 01:56:58 swtiching over to AS? May 08 01:57:10 spend more time typing here than I did downloading, installing, and migrating May 08 01:57:25 especially because I no longer have to export from eclipse then improt the build files May 08 01:57:29 yup all google services May 08 01:57:33 wrong chan May 08 01:57:38 lol May 08 01:57:45 kek May 08 01:59:06 anyone know how to get a rainbowdrops style theme into AS? http://marketplace.eclipse.org/content/eclipse-moonrise-ui-theme May 08 01:59:45 use the darkula theme May 08 02:01:39 DadFoundMy, I am using that theme but I want the syntax highlighting and no bwhite backgrtound May 08 02:02:22 found: http://www.ideacolorthemes.org/themes/274/ May 08 02:02:55 hmm it sounds like your darcula is a lot different than mine haha May 08 02:04:21 ooo that themed you linked looks awesome May 08 02:04:26 lmk if you figure out how to use it May 08 02:09:46 you just download the theme and import it in AS May 08 02:12:59 ^ but for some reason the highlighting isnt working out.. May 08 02:13:04 see ya guys May 08 02:13:12 I'll let you know if I do but I have to run May 08 02:13:13 laters May 08 02:13:15 Tricknology, thanks for the inshight, means alot May 08 02:13:29 any time drose379, glad I could help May 08 02:13:36 talk soon May 08 02:15:10 DadFoundMy: https://raw.githubusercontent.com/wiki/JesusFreke/smali/smalidea.png :) May 08 02:15:18 solarized ftw May 08 02:15:53 wow that looks awesome May 08 02:16:09 my names dylan too! May 08 02:16:13 fuck wrong chan yet again May 08 02:16:27 Wombat for the win. May 08 02:16:44 JesusFreke: that theme looks amazing May 08 02:16:47 Well, hello Dylan May 08 02:17:02 CedricBeust: no doxerino please May 08 02:17:12 ill report you to the ops... shit May 08 02:17:19 Consider it done May 08 02:17:30 http://phandroid.com/2015/05/07/android-m-block-permissions-rumor/ May 08 02:17:55 this is huge ! May 08 02:19:06 Finally! May 08 02:19:08 DadFoundMy: https://github.com/jkaving/intellij-colors-solarized May 08 02:21:25 next they have to work on their kerning :D http://www.androidpolice.com/2015/05/06/google-play-books-hits-version-3-4-5/ May 08 02:21:42 weird spaces between 'be' -'hind' May 08 02:21:45 g00s: it's about time :| though "at install time"? odd distinction. May 08 02:22:02 g00s: their keming, what? :D May 08 02:22:27 JesusFreke android typography is kinds funky May 08 02:22:31 *kinda May 08 02:22:40 and inconsistent :| May 08 02:22:44 look at that screen shot in the article May 08 02:23:07 "The motives behind ...." May 08 02:23:12 yeah. T-h and m-o also feel big to me. May 08 02:23:33 looks decent in general though. readable. May 08 02:23:48 maybe the book has 'be hind' :D May 08 02:24:36 one of these days I'll just modify my system fonts to be 100% comic sans May 08 02:24:53 if you go fixed width, problem solved :D May 08 02:25:03 even better :) May 08 02:39:05 what i'd like to know about these tesla batteries - if you home goes up in flames, do all the people in the surrounding area wind up with hydrolouric acid (HF) exposure May 08 02:39:21 because thats .. super bad news May 08 02:40:07 also terribad when it happens to a phone or something on an airplane May 08 02:43:14 yiati still having problems but getting closer, seems i may need to use Drawable.jumpToCurrentState() May 08 02:43:21 never heard of that one before O.o **** ENDING LOGGING AT Fri May 08 02:59:59 2015