**** BEGIN LOGGING AT Mon Apr 18 02:59:58 2016 Apr 18 03:01:00 RustyShackleford: its mostly just screen sizes rather than platforms Apr 18 03:01:10 eg. ios/android sites are the same Apr 18 03:09:33 g00s: I'm assuming you saw the "I made $700k with an iOS game" story on HN? Apr 18 03:11:58 orbyt_: I'm referring to the web api's Apr 18 03:12:04 as opposed to like a mobile site Apr 18 03:12:19 think trello, twitter, etc. They have apps to go along with their website Apr 18 03:13:38 RustyShackleford: so your asking how to build something like a rest api? Apr 18 03:13:44 an API doesn't care what OS is calling it Apr 18 03:14:20 ^ Apr 18 03:24:20 Leeds no ... i mean, i saw it was there Apr 18 03:24:23 didn't read i Apr 18 03:24:25 it Apr 18 03:27:34 short form of the story is that it was a port of an existing web game, so half the profits went to the original author, then tax etc. Apr 18 03:27:51 the most interesting stuff is how featuring works in the app store Apr 18 03:28:00 so worth reading ? Apr 18 03:28:12 yeah, the original reddit post is pretty short Apr 18 03:28:30 fuck, i can't even find my own app on Play with an almost identical keyword search Apr 18 03:28:46 organic search on Play totally sucks ass Apr 18 03:29:05 One of my apps made me $45,000 Apr 18 03:29:29 hah, nobody searches for apps Apr 18 03:31:08 g00s: although if you're going to search for an app, the general Google search generally does a better job Apr 18 03:36:23 yeah Leeds that does look pretty good Apr 18 03:36:26 "Do: Release Every Six Weeks" Apr 18 03:36:55 well, i have enough features thought up - i could do that for years still :) Apr 18 03:39:46 "Do: Use New Apple Features" Apr 18 03:39:59 i'm guessing a lot of Android devs don't do that Apr 18 03:40:09 * pfn has no dreams of getting rich off writing apps solo Apr 18 03:40:13 Newest Android Features, of course Apr 18 03:41:08 I do it for the personal satisfaction Apr 18 03:41:29 using newest apple features is a lot easier than newest android features Apr 18 03:41:35 The best way to make money off mobile apps is to be employed and receive a salary to write mobile apps Apr 18 03:41:45 pretty much Apr 18 03:41:58 I've netted a shitton from working as opposed to my own stuff Apr 18 03:58:12 sorry, I keep responding and leaving Apr 18 03:58:34 so with something like rails, the web api and the website are tightly coupled Apr 18 03:58:42 what if I only want the restful api Apr 18 03:59:06 or can I make a rails web app and reuse the same api without any extra work? Apr 18 04:04:13 is rails still a thing? Apr 18 04:06:08 it is for rails people :) Apr 18 04:08:14 hey y'all ... Apr 18 04:08:15 Leeds is django still a thing? Apr 18 04:08:46 i thought all those server side templating things in dynamic languages were going to hell Apr 18 04:08:47 This is gonna be a warzone Apr 18 04:09:41 quick question, when initiating an intent ( gallery ) to choose a pic and then cancelned by the back button in the phone and the app crash, what could be the cause or solution ? Apr 18 04:09:47 there are twice as many people in #django as #android-dev :P Apr 18 04:10:09 Leeds haha, remember when there used to be like 700 people in here Apr 18 04:12:57 were there? oh, well, abandoned channel on obsolete network and all that Apr 18 04:13:24 CedricBeust: nothing personal :) Apr 18 04:19:55 Leeds: django is useful Apr 18 04:20:13 to ios and android Apr 18 04:20:32 i write my web services in django Apr 18 04:20:39 im not hip enough for node yet Apr 18 04:24:54 franchy i read all kinds of conflicting things about node Apr 18 04:25:07 ohman dont get me started lol, sorry Apr 18 04:25:12 few months back, seemed (if this was to be believed) mass exodus to Go Apr 18 04:25:25 go makes more sense Apr 18 04:25:39 What's a good benefit for node over django? Apr 18 04:25:41 but i really enjot VS Code, on electron, so I was going to give it a try. knowing full well that JS sucks and all that Apr 18 04:25:44 im working with a team thats using node.js on backend, and the damn thing breaks if i sneeze Apr 18 04:26:00 its like, they can rapidly puke out javascript quickly, but its so unstable Apr 18 04:26:03 g00s: don't believe everything - anything - you read on HN about stuff like Go Apr 18 04:26:09 I like django + DRF because I get to do REST stuff but with python inheritance and all that Apr 18 04:26:14 Can't expect much from a dynamically typed language Apr 18 04:26:23 yeah exactly yonatankoren, and the python module system is a dream Apr 18 04:27:31 yonatankoren what is DRF ? Apr 18 04:27:32 is python slower than node? Apr 18 04:27:37 g00s: Django Rest Framework Apr 18 04:27:41 ah ok Apr 18 04:27:41 Django-REST-Framework Apr 18 04:27:42 sorry should have said the full thing Apr 18 04:29:46 fellas, what is missing in this code that would prevent the app from crashing when gallery intent get canceled by the user Apr 18 04:29:49 http://paste.ofcode.org/TJTqnxnuxSmAGU93avghQc Apr 18 04:31:03 JanusJanus well for one, make sure you understand where in the lifecycle onActivityResult gets called Apr 18 04:31:09 i think its very early Apr 18 04:33:25 could you please elaborate, it get get called after clicking a button !? not sure i understood your remark ? Apr 18 04:36:54 JanusJanus: basically you need to know what part of the Activity ends up calling the method which leads to onActivityResult being called. If it is onCreate, try onCreateView or onStart instead Apr 18 04:37:21 JanusJanus: sorry onCreateView is for fragments only Apr 18 04:37:25 I'm kind of a noob Apr 18 04:38:18 invoked by a button, not within the onCreate Apr 18 04:39:04 JanusJanus: look at the stacktrace, breakpoint -> debug Apr 18 04:39:16 without any information i'd say you're getting a NPE on line 11 Apr 18 04:42:18 all right, ill check that out. but i assume within the code i post in the link there should be a condition for canceling the intent Apr 18 04:42:36 and my question how do i do that ? Apr 18 04:43:36 JanusJanus btw this is lifesaver https://github.com/xxv/android-lifecycle/blob/master/complete_android_fragment_lifecycle.png Apr 18 04:43:48 bankai_ i guess what you said make sense, i make sure that what happen, but the solution should be a snippet in the code to handle a cancel action ? Apr 18 04:46:14 g00s, appreciated, i really need material like this for a better grasp on android ... if yonatankoren is a noob, am not even qualified to lable my self close that that Apr 18 04:46:25 the result code will be RESULT_CANCELED Apr 18 04:46:47 JanusJanus putting logs on all the things can be educational :D Apr 18 04:47:02 so can breakpoints! Apr 18 04:48:10 bankai_ i guess you right !? http://paste.ofcode.org/v3D3MGU3hrLJBMVgEFTf5m Apr 18 04:48:12 lol Apr 18 04:48:57 data=null Apr 18 04:48:59 you see this happen when i am in the gallery to chooe a pic from my phone and then click back button on the phone Apr 18 04:49:40 take a closer look at your if else Apr 18 04:50:37 LOL damn exactly as you said on line 11, which is after else{ Apr 18 04:51:16 yeah i've been doing that before i even rach out to you guys, and i am sure it is in this if else statment that is missing a part to handle a cancel action ... Apr 18 04:51:56 searched around on goolge for an example on how to implement a handler on cancel but couldnt find anything about the syntax of such thing Apr 18 04:52:52 need to go back to java 101 -_- Apr 18 04:54:02 thanks Apr 18 04:54:56 I have no idea how to work with paths. There's an example of a pathview that I really like, how do I manipulate the paths so that it is turned 90 degrees clockwise? Apr 18 04:56:28 oh since it's a view I could probably just rotate it Apr 18 04:56:35 assuming that all views can be rotated Apr 18 04:58:08 \++ Apr 18 05:01:15 Guys, how do I learn to make android apps? Apr 18 05:02:14 Someone please Apr 18 05:02:50 write 1,000 bad ones Apr 18 05:03:10 yeah but what do I use to learn to make my first bad one Apr 18 05:03:22 I need a book Apr 18 05:03:26 capella, thanks Apr 18 05:03:38 g00s: Is the librarian Apr 18 05:04:12 stallmen Big Nerd Ranch one is most popular Apr 18 05:04:55 does anyone know what the difference between interstitial and rewarded interstitial based on revenue? Apr 18 05:05:10 they probably both suck :) Apr 18 05:05:15 stallmen: Do you know Java already? Apr 18 05:05:15 ads, meh Apr 18 05:05:33 stallmen: What programming languages do you know? Apr 18 05:06:00 You need java for android apps? Apr 18 05:06:11 is that the programming language they're made with? Apr 18 05:06:20 stallmen: Android applications are generally written in Java, yes. Apr 18 05:07:07 but its more like a mix of different animal parts than pure Java Apr 18 05:07:12 so should I just learn Java Apr 18 05:07:18 or give me a path Apr 18 05:07:28 what did you guys do to be able to make apps Apr 18 05:07:57 stallmen: I'd definitely recommen dyou learn Java first. Apr 18 05:08:19 OK Apr 18 05:08:23 do you recommend any pdf? Apr 18 05:08:37 docs @ oracle website Apr 18 05:08:44 they have tutorials Apr 18 05:08:47 is there a pdf of that Apr 18 05:08:57 yes Apr 18 05:09:07 sweet Apr 18 05:09:11 go Apr 18 05:09:30 thanks Apr 18 05:09:33 stallmen: This one used to be good, it probably still is: https://docs.oracle.com/javase/tutorial/ Apr 18 05:09:34 god bless you Apr 18 05:11:35 stallmen after learning java, there is also the google udacity course on android Apr 18 05:11:47 ok thanks Apr 18 05:11:58 android is purely java, saying differently is just wrong Apr 18 05:12:20 are docs @ oracle website good for beginners like me? Apr 18 05:12:31 docs are always good Apr 18 05:12:46 get into the habit of reading the documentation always and you won't have any problems Apr 18 05:13:12 on the topic of docs, where the hell are the support lib 23.3 docs ? Apr 18 05:13:14 well, saying a programmer won't have any problems is like saying a car won't hit any bumps in the road Apr 18 05:13:24 or a fish won't get wet Apr 18 05:13:55 yonatankoren those flying fish ... Apr 18 05:14:41 g00s: flying pink fish in the sky is basically hybrid apps Apr 18 05:19:49 wow, Boaty McBoatface won Apr 18 05:20:02 Google should do that too , have crowdsource android name :) Apr 18 05:23:20 nougat Apr 18 05:23:21 http://www.oracle.com/technetwork/java/javase/java-tutorial-downloads-2005894.html Should I be downloading it for here? Sorry for the dumb question Apr 18 05:23:25 nutter butter Apr 18 05:23:37 it, as in the ebook/pdf/ Apr 18 05:23:43 not to many sweets that start with N Apr 18 05:24:26 I got the tutorial.zip Apr 18 05:24:50 I think I'm going to get the epubs instead though Apr 18 05:28:17 Jesus christ why do you hate me god Apr 18 05:29:05 i hate my life Apr 18 05:29:11 stallmen: Join ##java and type ~tutorials Apr 18 05:29:59 too late Apr 18 05:41:54 wasn't there an opposite of bringToFront, like sendToBack or something ... Apr 18 05:42:00 View.bringToFront() Apr 18 05:52:29 guess not :( Apr 18 05:53:01 have you watched android developer youtube channel videos Apr 18 05:53:02 Hey guys I have a quick question. If I wanted to make a app to handle multi clients, I would create new thread for each connected client correct? Apr 18 05:53:10 they had something on support v23 library Apr 18 05:55:23 Cleaned my project, big mistake Apr 18 05:55:35 my jniLibs folder isn't being used to add my native .so files to my apk any more Apr 18 05:55:43 :) Apr 18 05:55:43 anyone else had this issue? also happened after upgrading gradle Apr 18 05:55:45 Demon_Jester typically. i don't think there is any async I/O on android ... but i could be wrong Apr 18 05:55:58 at least no NIO.2 before N Apr 18 05:56:24 Demon_Jester: no something like threading pool is what you need Apr 18 05:56:30 g00s, from examples I have seen, it seems people used asyn to listen for incoming clients, then sent it to a thread class to handle it. Apr 18 05:56:33 to limit total number of active connections Apr 18 05:57:06 squ, Oh that is good idea. Apr 18 05:58:06 Demon_Jester: this is advice from video Apr 18 05:58:30 squ, I am lost, why you mean by that Apr 18 05:58:40 one moment, I'm searching Apr 18 05:59:12 Demon_Jester: https://www.youtube.com/watch?v=uCmHoEY1iTM Apr 18 05:59:59 so you have a pool based not on cpu cores, but on maximum active connections (which is related to network quality I guess) Apr 18 06:00:12 squ, I mean I wont have too many connections, like 10-20, Still getting in habit of threading pool won't be bad. Apr 18 06:01:07 how much is many in your taste? Apr 18 06:02:09 squ, oh, im new to this specific area in android Apr 18 06:02:31 I'd say many connections is 10 Apr 18 06:02:51 normal is 4, minimum is 1 Apr 18 06:03:32 squ, ah i see. Apr 18 06:03:47 if it is streaming HD video, then 1 connection will be maximum Apr 18 06:05:29 squ, lets say I want to have 8 connections simultaneously, would I put 4 connections in one pool and the other 4 in second, or should I close connection on one, and then let one from "queue" join a thread pool? Apr 18 06:06:23 idk Apr 18 06:07:54 Demon_Jester: Do you even know if you can have that many simultaneous connections? Apr 18 06:13:44 recommend pdf reader Apr 18 06:23:50 morning Apr 18 06:24:53 i'm parsing youtube duration with joda-time, but on some devices it adds 3 or more hours to parsed period Apr 18 06:25:03 how to remove this shit off? Apr 18 06:26:02 using file Explorer of Android Device monitor, where can I fgind /storage/emulated/0/ ...?? Apr 18 06:27:36 mostly /mnt/sdcard or /sdcard point to it Apr 18 06:27:56 /storage/emulated/0 may be named differently on different device Apr 18 06:31:47 I found it on /mnt/shell/emulated/0/myapp Apr 18 06:31:53 does it make sense? Apr 18 06:36:44 myapp is your app? then /mnt/shell/emulated/0/ should be the storage youre looking for Apr 18 06:37:07 yes, ty :) Apr 18 06:47:38 hello. anyone have compared java vs javanano performance? Apr 18 06:48:01 JakeWharton: glad to see you here :-0 Apr 18 06:48:21 I means java vs javanano protobuf performance Apr 18 06:52:49 what for Apr 18 06:53:01 morning Apr 18 06:53:27 hi Apr 18 07:13:24 hey guys! Apr 18 07:13:57 is it a good practice to use totally custom toolbar for actionbar? with my on custom view, which can even include radio buttons or anything that you can think of? Apr 18 08:19:03 So avoiding the style guide? Apr 18 08:35:09 Hello, is it possible to create a task that will add build config fields? I cant create flavours at the moment, and I need a way to set some constants prior to compile time.... got a suggestion? Apr 18 09:44:25 hi, I uploaded a new update to production of my app and after that I start getting error -504 when trying to update the app from play store. Does anyone know why this happen and how to fix it? I was able to fix it on my device by doing a factory reset to my tablet, but I got user reports of this error happening on their devices Apr 18 09:47:18 hey, someone here using android studio with bspwm on arch linux? I can't get it working, the window is filled with white/grey or is completely invisible. Apr 18 10:58:15 in android studio, im importing a maven project, can run, but right clicking on folder give no any response, do you experience that, please help me **** BEGIN LOGGING AT Mon Apr 18 11:01:48 2016 Apr 18 11:02:26 Ping_2_Ur_Pong, nice to meet you again Apr 18 11:02:38 * Ping_2_Ur_Pong waves Apr 18 11:02:53 no I haven't experienced that issue jvava Apr 18 11:03:20 Ping_2_Ur_Pong, i believe Apr 18 11:04:26 is it true android development will use swift? Apr 18 11:04:38 no Apr 18 11:05:03 oh Apr 18 11:05:08 there have been no confirmed statements from google regarding this, but tbh they wouldn't until they could make a spectacle of it. Apr 18 11:07:09 Ping_2_Ur_Pong, what means tbh? Apr 18 11:07:56 that google like most large companies understands marketing is half the game. You wouldn't know that they are releasing swift support until they can market the shit out of it for everything its worth. Apr 18 11:13:55 Ping_2_Ur_Pong, i remove two maven plugins which i installed, all become ok, the plugin is maven helper. Apr 18 11:19:09 Small question: How can I crosscompile autossh for my phone? Apr 18 11:19:16 I've tried to do, but when I run ./autossg on the phone, I get: tmp-mksh: autossh: No such file or directory Apr 18 11:19:23 I'm using arm-linux-gnueabi-gcc Apr 18 11:28:23 Small question: How can I crosscompile autossh for my phone? I've tried to do, but when I run ./autossh on the phone, I get: tmp-mksh: autossh: No such file or directory. I'm using arm-linux-gnueabi-gcc. Did I something wrong? Apr 18 11:29:52 where is autossh and where you try to run it Apr 18 11:31:35 Ashiren: I try to run on an Android device ARMv7 Processor rev 3 (v7l). Compiled on x86_64. On the device I put on /system/xbin with enough permission and root owned. I try to run it on the directory with ./ and out the directory withouto ./ and doens't work either Apr 18 11:32:06 file autossh Apr 18 11:32:06 autossh: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=fbdf2ceafaf64996f84a888546f89c7f32b0115b, not stripped Apr 18 11:33:29 well dunno Apr 18 11:33:36 also this question would fit in #android-root Apr 18 11:34:23 irc is very inactive for being a weekday Apr 18 11:37:11 its monday Apr 18 11:37:41 true Apr 18 11:37:47 Ashiren: you ever release an app on iOS? Apr 18 11:39:51 nope Apr 18 11:48:56 How can I check which UI-element is focused? I have a feeling that something has a focus and is preventing my UI from being updated. Apr 18 11:53:43 I need some help with my bitmaps. "!!! FAILED BINDER TRANSACTION !!!" is what I get when I try to display a full sized bitmap from the users gallery, which I presume is caused by the size. Is this something this method can cure: http://developer.android.com/training/displaying-bitmaps/index.html ? Apr 18 11:54:57 are you passing the bitmap (or a containing byte[] or so) through intents, services, AIDLs, etc/ Apr 18 11:55:57 Chainfire: I load with Picasso from the Uri being returned from the gallery. Apr 18 11:57:09 hmm Apr 18 11:57:22 that error is usually related to passing a large chunk of data through a place that can't take it Apr 18 11:58:17 the link you posted is certainly good material to read/follow, but I'm not sure it's related to your error Apr 18 11:58:32 Chainfire: ah now I understand what you mean, yes I do pass it through an Intent to a new activity. Apr 18 11:58:51 intents are for small chunks of data Apr 18 11:58:53 not full bitmaps Apr 18 11:58:59 binder transactions are limited to 1 MB I think Apr 18 11:59:08 try passing the Uri instead Apr 18 12:00:31 Okey. The uri isn't going to work I think, the user can press on their thumbnail picture to get to a new activity where the fullsized version is shown. So the Uri will most likely be null most of the time, if they don't enter that activity straight after selecting image from the gallery Apr 18 12:01:17 I might cache the image with Picasso and reload it from scratch when they enter the fullsized activity Apr 18 12:02:16 there are hundreds of ways to solve the issue Apr 18 12:02:31 as long as you're not passing large chunks of data through the intent ... :) Apr 18 12:03:14 Chainfire: Indeed, I'll find something. but about that link I sent. Doesn't Picasso handle that same thing with the .fit() or .centerCrop() method? Say I load a large image from the users gallery with those methods in Picasso, can it still fail with memory error? Apr 18 12:03:49 I have never used Picasso Apr 18 12:04:01 read/understand the link, then investigate how/if/when Picasso does it Apr 18 12:04:20 still, out of memory errors when loadings images are not that common anymore Apr 18 12:04:38 So my screen orientation in my manifest is set for landscape yet the GUI design of android studio displays portrait... Apr 18 12:04:38 what gives ? Apr 18 12:04:59 a few years ago, your app had just enough memory to load a full screen image twice, these days it is significantly more. so be sure to actually test it on a low memory device :P Apr 18 12:09:22 Chainfire: Thanks I will :) Apr 18 12:10:03 Is the layout preview of android studio always portrait ? Apr 18 12:12:20 Ah the third button in the preview. Apr 18 12:12:26 FYI Apr 18 12:12:33 thanks for listening. Apr 18 12:42:00 I just want to write some temporary files to the cache. So I use getCacheDir(). But on some devices (Samsung!) I get securiity exceptions- I do not have the write external storage permission. Am I doing something wrong? Apr 18 12:48:38 vedu: If I were to guess I'd say it's because samsung might implement the cache on the sd card Apr 18 12:48:59 vedu: which would be weird Apr 18 12:49:20 Maurits-: but there's a getExternalCacheDir() as well... I don't know Apr 18 12:50:01 Maurits-: I am using libraries like fresco, crashlytics- I'm sure they store files as well. But they don't fail Apr 18 12:50:29 vedu: well, I'm not saying this makes any sense at all, but security exceptions usually are not something you can do anything about Apr 18 12:51:08 vedu: or are these just generic 'permission denied' exceptions you are getting Apr 18 12:51:20 not specifically referring to the external storage write permission Apr 18 12:51:41 Maurits-: its not permission denied actually. its a security exception Apr 18 12:52:36 Maurits-: oh no. Its a read external storage permission error Apr 18 12:52:56 I think I got it. error being reported in the wrong place :( Apr 18 12:54:46 how can i find out if my intent service is running in background? (after restart of main activity) Apr 18 12:55:29 ehsanv: intent services are not meant to stay running, they're meant to do background processing of bits of data Apr 18 12:55:55 from the docs: "the service is started as needed, handles each Intent in turn using a worker thread, and stops itself when it runs out of work." Apr 18 12:56:30 Maurits-: i use intent service to monitor clipboard data and it's always run! i need to control it when my main activity somehow restarted Apr 18 12:56:50 Maurits-: or i should use Service ? Apr 18 12:56:57 yes, you should use service Apr 18 12:57:21 and/or possibly some broadcastreceiver that is called on clipboard change Apr 18 12:57:31 Maurits-: then how can i get access to my service after main restart? Apr 18 12:57:34 but that may or may not exist Apr 18 12:57:52 there is no Broadcast Receiver as i found Apr 18 12:57:56 for clipboard Apr 18 12:58:00 right, ok Apr 18 12:58:11 so you can communicate with your service through some event bus Apr 18 12:58:21 through broadcast intents Apr 18 12:58:25 Maurits-: could you point me to a doc ? Apr 18 12:58:30 or through RPC calls Apr 18 12:58:32 sure, one sec Apr 18 12:58:36 thanks Apr 18 12:58:51 http://developer.android.com/guide/components/bound-services.html Apr 18 12:59:47 but depending on what you are doing an event-based communication system might be better Apr 18 13:00:10 ie, service monitors the clipboard and broadcasts events to the activities when an update occurs Apr 18 13:00:51 (either using some library or the built-in broadcast intents as the event bus) Apr 18 13:16:20 anyone know if there is a solution for the android emulator crashing when I try to capture video? Camera is set to emulated Apr 18 13:16:37 using haxm, and the android 6.0 intel x68_64 image Apr 18 13:29:17 Hi, how i can install google play in Android Studio 2 emulator? Apr 18 13:43:11 t0th_-_: just define an AVD with the Play Services included Apr 18 13:43:21 thanks Apr 18 13:43:42 that won't give you the Play Store, of course Apr 18 13:43:58 but it will allow you to build your apps against Google's APIs Apr 18 13:46:08 How can I force a layout to be redrawn? I tried invalidate, but that only marks it for redraw. The actual update of the UI happens only when I touch the screen Apr 18 13:47:07 Also tried requestLayout without effect Apr 18 14:20:44 I finally could build it! Uploaded to GitHub: https://github.com/crushedice2000/android-arm-autossh Apr 18 14:21:11 Hi everyone! I'm trying to communicate with a TCP server using websocket but I receive each time 1006 error… Any idea? I'm using a S2 Gear Apr 18 14:24:59 Silvering: uh I'm confused. TCP and WebSockets are two totally different things Apr 18 14:25:52 WebSockets use TCP but they are in different layers of the network model Apr 18 14:27:44 tilal6991: right. My goal is to communicate with a webserver listening in a specific port. But the websocket is closed each time Apr 18 14:28:15 Can anyone please explain why for android views, the setY method just uses setTranslationY(y - mTop) ? Why isn't it just setTranslation? Or just...set mTop? Apr 18 14:28:57 Silvering: OK. So is the server listening accepting websocket connections or tcp socket connections Apr 18 14:29:52 Taios: that's what the docs say they do: http://developer.android.com/reference/android/view/View.html#setY(float) Apr 18 14:30:31 I think it's a convineince method more than anything Apr 18 14:30:42 tilal6991 yep :) I just don't quite understand...y :D Apr 18 14:30:48 tilal6991: I'd like to think both. TCP for sure but I don't know about websocket :/ is there a way to check? Apr 18 14:31:20 Silvering: well you'd just have to know lol. I presumed you knew what the server is doing Apr 18 14:31:48 Taios: if you set mTop it would overwrite the original top variable and that's not the intention of that method Apr 18 14:31:59 It's not a great name for it admittedly Apr 18 14:39:41 Is there some way of applying a value to a string in the creation of my app, and have that value persist until the application is destroyed? I know this can be achieved with SharedPreferences, but it makes for too much complexity in my case. Apr 18 14:40:05 I would use that string throughout various activities in my app, if possible Apr 18 14:40:10 SharedPreferences are really really simple Apr 18 14:41:06 yeah, either sharedprefs or, if you're running everything in the same process, a singleton Apr 18 14:41:17 but that's more complex than sharedprefs Apr 18 14:41:30 hm okey. Going with preferences instead Apr 18 14:58:22 a shared preferences is simple.... Apr 18 14:58:46 but a static string works about as well Apr 18 15:17:05 Hello Apr 18 15:17:43 How can I download Android Studio 2.0 emulator manually? Apr 18 15:18:33 When Android Studio attempts to download and install it /tmp gets filled and the install fails due to lack of space Apr 18 15:19:17 make a bigger /tmp? Apr 18 15:19:36 Can someone explain if/Why Xposed should be avoided? Apr 18 15:19:51 Any ideas how, Leeds? Apr 18 15:20:07 rgb-one: unmount your too-small dedicated partition? Apr 18 15:20:16 Another idea is to unmount tmpfs Apr 18 15:20:40 but I am gonna have to edit some config file for that and reboot maybe Apr 18 15:20:52 can't do it while the system is being run Apr 18 15:21:01 because applications are using /tmp Apr 18 15:21:06 mount -o remount,size=8192M /tmp Apr 18 15:21:11 depends on how much RAM you have Apr 18 15:21:16 4GB Apr 18 15:21:18 ouch Apr 18 15:21:33 It's good enough Apr 18 15:21:33 maybe some cheating and linking Apr 18 15:21:58 so setting tmp to 4GB is a no go? Apr 18 15:22:19 unlikely Apr 18 15:22:28 hithere Apr 18 15:22:54 Ill give it a go :) Apr 18 15:23:03 take it out of your fstab and reboot, that's all you should need to do to make it part of / Apr 18 15:23:07 which hopefully is big enough Apr 18 15:23:12 if system you'll know if system goes down Apr 18 15:23:19 my searchView on smaller display on rotate and back pushes out items from ActionBar and it it even pushes out whole menu overFlow Apr 18 15:23:32 Leeds, yea it should be big enough Apr 18 15:24:07 things generally assume lots of disk space nowadays, since disk is *ridiculously* cheap Apr 18 15:24:21 I gave root 12GB Apr 18 15:24:26 about half is used Apr 18 15:24:42 I just have a single full-SSD / partition nowadays Apr 18 15:24:43 so there should be enough Apr 18 15:24:58 either 12 or 20 was given to / Apr 18 15:25:06 I don't think assigning separate partitions on a desktop makes too much sense Apr 18 15:25:13 Laptop Apr 18 15:25:28 but for recovery it is useful Apr 18 15:25:29 it looks like this A -> http://snag.gy/4vjPp.jpg; B -> http://snag.gy/PqVGW.jpg; C -> http://snag.gy/f5NG4.jpg; D -> http://snag.gy/w5GeJ.jpg; E -> http://snag.gy/sjPUz.jpg; F -> http://snag.gy/ogiWr.jpg; G -> http://snag.gy/Vrwji.jpg; H -> http://snag.gy/zlGid.jpg; I -> http://snag.gy/RJY15.jpg Apr 18 15:25:43 if your 1 partition goes down Apr 18 15:25:46 its all done Apr 18 15:25:50 but if root goes down Apr 18 15:26:01 and you have a separate home partition Apr 18 15:26:30 code is here https://github.com/sonavolob/ABIconTest Apr 18 15:26:36 you can recover content from that partition Apr 18 15:27:08 desktop as in personal machine rather than server Apr 18 15:27:22 rgb-one: you're backing up anything important anyway Apr 18 15:27:34 Whole thing with searchView happens when user click magnifier Icon; rotate; rotate back; close expanded searchView field Apr 18 15:27:42 on a server it makes some sense because you can get issues with e.g. logs filling up the disk Apr 18 15:28:16 Leeds, yea, logs can go hawire on desktop as well Apr 18 15:28:44 rgb-one: but it's less likely to be catastrophic, and you're more likely to be on hand to fix it Apr 18 15:28:44 Leeds: It is also said to improve performance, don't know how true this is but whatever Apr 18 15:29:20 Leeds: Yea, either way works Apr 18 15:30:09 Leeds: where in fstab is there reference to tmpfs? Apr 18 15:30:27 rgb-one: give me a root shell on your machine and I'll tell you Apr 18 15:30:33 hehe Apr 18 15:32:05 * Leeds afk Apr 18 15:35:31 https://backendless.com/backendless-3-0-is-released/ can someone take a look at .2 on this site? Has anyone used a mBaas standalone on their own servers? Is it exceedingly difficult for a fairly novice programmer? Apr 18 15:42:48 Hi Apr 18 15:43:46 I have created 2 activities for my app. One is the login activity and other is the afterlogin activity. So when I login, the after login activity starts and inside this activity, there is a logout button which again starts the login activity. Apr 18 15:44:23 So the problem is that due to activity stacking, if I press back after logout, the afterlogin activity is resumed. How do I prevent that? Apr 18 15:45:40 Or is there some other method for creating a login for the user? Apr 18 15:46:12 I mean login and logout both Apr 18 15:53:57 start activity for result Apr 18 15:54:07 finish if not ok Apr 18 15:59:46 When do I setAdapter(myAdapter) on a GridView, the GridView disappears and is only loaded when I touch the screen. Any ideas why this happens and how I can get the GridView to refresh immediately? Apr 18 16:00:17 because you did it wrong Apr 18 16:00:44 Probably set some size wrong Apr 18 16:01:45 How can settings the size wrong cause this issue? Apr 18 16:02:00 because the size is wrong, duh Apr 18 16:03:27 This is the layout of the GridView: https://gist.github.com/anonymous/422cde616566d32cacf55fcc37f7745b Apr 18 16:03:27 provide a self contained reproduction Apr 18 16:04:15 You'll need to show the Java code as well. Apr 18 16:06:26 The adapter https://gist.github.com/anonymous/81bdb866ed6cb25eb4bd869d6933e60e Activity https://gist.github.com/anonymous/b724816558c8543f2056ffa37c126790 and Fragment https://gist.github.com/anonymous/288e38262d55d50401f9f478b4c90cd0 Apr 18 16:07:04 not gonna a Wade through it all Apr 18 16:07:11 provide a self. contained repro Apr 18 16:10:18 And by size you mean layout_height and width wrong? Apr 18 16:10:21 guys i'm confusing Intent with Service! i have a Service class, then i use startService function to start it, and argument for startService is an Intent! So, i have an Intent Service finally then?! Apr 18 16:11:03 ehsanv, no Apr 18 16:12:37 ehsanv, the intent is used to start the Service Activity. Apr 18 16:13:34 intentservice is poorly named Apr 18 16:13:40 it should have been called asyncjobqueueservice Apr 18 16:13:45 but that's just stupid long Apr 18 16:14:02 thanks pfn and cyource Apr 18 16:14:08 np Apr 18 16:14:19 like stupid long names ever stopped Java :) Apr 18 16:16:15 Anyone, please? Apr 18 16:16:28 rudolf_ the red nose reindeer ... Apr 18 16:16:55 yep :) Apr 18 16:17:18 yes rudolf_? Apr 18 16:18:28 I have created 2 activities for my app. One is the login activity and other is the afterlogin activity. So when I login, the after login activity starts and inside this activity, there is a logout button which again starts the login activity. Apr 18 16:18:32 So the problem is that due to activity stacking, if I press back after logout, the afterlogin activity is resumed. How do I prevent that? Apr 18 16:18:41 Or is there some other method for creating a login for the user? Both login and logout Apr 18 16:19:05 finish the afterLogin activity when leaving Apr 18 16:20:21 drose379: Is "finish" the technical term for it? I mean should I search for finishing an activity? Apr 18 16:20:31 No thers a method called finish Apr 18 16:20:44 rudolf_, read up on the actifity lifecycle Apr 18 16:20:49 activity* Apr 18 16:20:57 ok :) I will search for that. Thanks robbyoconnor , vancrash Apr 18 16:22:50 drose379: Btw is this the correct way of providing the user with a login screen? Apr 18 16:23:01 What do you mean Apr 18 16:23:22 I mean creating a login activity and then an after login activity. Apr 18 16:23:45 And linking them with login, logout button clicks Apr 18 16:24:16 What you do after the user logs in is up to you I guess Apr 18 16:25:28 Yes...I was just wondering if there is some other way of providing a login. Apr 18 16:27:18 Not really sure what you mean Apr 18 16:28:18 Ok leave it. If you dont see anything wrong with what I'm doing, it should be fine, I guess. :) Apr 18 16:29:06 tilal6991: Hello! Apr 18 16:39:07 Is it true that with ButterKnife, and Fragments, having ButterKnife.bind in onCreateView may give you null views in onResume? Apr 18 16:39:28 This SO suggests to ButterKnife.bind in onViewCreated: http://stackoverflow.com/questions/27002200/butterknife-fragment-rotation-giving-nullpointer Apr 18 16:40:01 Is that a thing, and should I modify all of my Fragments to do so? Apr 18 16:40:38 onViewCreated is called immediately after onCreateView, makes no difference in what method you call it Apr 18 16:42:45 That's kind of what I figured Apr 18 16:43:07 But I'm still getting crashes in onResume, NPE on a view that was bound by ButterKnife Apr 18 16:43:26 there used to be a section on this in the Butterknife readme Apr 18 16:43:41 What would setting the progressDrawable of a seekBar to an image resource result in that image tiled in the background of the seekBar, I was expecting the progress indicator to become the drawable. Apr 18 16:43:53 oh it was for memory leaks Apr 18 16:44:10 http://jakewharton.github.io/butterknife/ -> "BINDING RESET" Apr 18 16:46:51 Hey Apr 18 16:48:29 I have some buttons in a GridLayout here: https://gist.github.com/rgb-one/673e3370fefd3e152383dda4de8e5e1a Apr 18 16:49:02 When it is run in the emulator, the buttons are not properly aligned Apr 18 16:49:10 Ah Apr 18 16:49:13 let me try something Apr 18 16:51:34 Setting the column weight to 1 for each button didn't work Apr 18 16:51:48 Ping_2_Ur_Pong: Few days ago you told me about WebkitCookieManagerProxy as a way to "convert" andorid.webkit.CookieManager to java.net.CookieManager. I've been working on it since then but I couldn't make it works. Have you worked on it? Apr 18 16:51:56 any ideas on how to alighn the buttons vertically? Apr 18 16:52:11 any other tips are welcome Apr 18 17:03:54 hi guys ... how can i detect if an app is running just like the app protector app? Any working example? Apr 18 17:16:59 finally went and bought an app, for the first time in forever, and it's just because of free money from opinion rewards Apr 18 17:17:00 * pfn is sad Apr 18 17:18:06 lol Apr 18 17:18:11 shame on you pfn Apr 18 17:19:12 when we have these discussions of upending the android tooling / languages, as if it would cause so much collateral damage - i think in reality, since users only use a few things like Fbm it doesn't really matter that much Apr 18 17:20:21 Fb, twitter, instagram, a weather app, is probably 90% of all usage Apr 18 17:20:42 you forgot games Apr 18 17:21:00 Well most are written using NDK so games are fine Apr 18 17:21:17 i actually saw some numbers, Fb was like pretty much the whole attention economy Apr 18 17:21:24 wonder if i can find that again Apr 18 17:21:32 But the Google apps themselves are themselves hundreds of thousands of LoC Apr 18 17:21:37 In total Apr 18 17:21:51 yeah, but it’s Java. that’s kinda to be expected Apr 18 17:21:57 And rewritting them is a pretty big endevour Apr 18 17:21:58 heh Apr 18 17:22:15 Hi Apr 18 17:22:23 Still maintain Kotlin is more likely especially with Xavier Dourchet's reaction when asked during IO last year Apr 18 17:22:27 tilal6991 not if ... they punt to web technologies ;) Apr 18 17:22:28 i just walked in. why would one need to rewrite them? And which ones are we talking about? the ones that used to come with AOSP? Apr 18 17:22:50 s73v3r: we were talking about likelihood of moving to swift Apr 18 17:22:50 This is a part of my code. protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.after_login); textView = (TextView) findViewById(R.id.textView); TextView textView = new TextView(this); Intent intent = getIntent(); String message = intent.getStringExtra(MainActivity.EXTRA_MESSAGE); Toast.makeText(getApplicatio Apr 18 17:22:53 Oops Apr 18 17:23:00 Sorry Apr 18 17:23:04 http://pastebin.com/fss9Qd6i Apr 18 17:23:15 g00s: web technologies is much more likely than Swift but convergence is going to be slow Apr 18 17:23:32 yeah, that’d be impossible without something in place to run all of the legacy Java apps out there Apr 18 17:23:33 Especially when considering developing markets Apr 18 17:23:37 Where connections are patchy Apr 18 17:24:03 The upper part creates an intent and puts some extra message. The second part is the activity being started. I am receiving the extra data from the intent but textView.setText() is not working. Apr 18 17:24:16 Can anyone tell me what is wrong here, please? Apr 18 17:24:45 google opinion rewards is nice for picking up free apps, buying apps just because of it now, heh Apr 18 17:24:59 Well my first question is why are you findViewbyID and then declaring a variable with the same name and creatig a new textView? Apr 18 17:25:01 rudolf_, remove TextView textView = new TextView(this); Apr 18 17:25:25 your allocating a new textview, which will prevent the textview you references with findViewById Apr 18 17:25:29 you're* Apr 18 17:25:33 i am surprized it even allowed that to compile Apr 18 17:25:34 adq: Tried that too. Apr 18 17:25:48 that’s not a try; you have to do that Apr 18 17:25:57 s73v3r: shaddowing variable names is not forbidden by Java Apr 18 17:26:04 I forgot to remove that part. I was trying to create a new textview and display the message on it. But that also did not work. Apr 18 17:26:24 what’s in “message” when you debug? Apr 18 17:26:35 be sure you have a textview with id textView in your layout after_login Apr 18 17:26:42 There is no error but the textview simply does not get updated with the message. Apr 18 17:26:48 adq: Yes...i checked that. Apr 18 17:26:59 the answers what s73v3r asked Apr 18 17:27:06 then* omg Apr 18 17:27:22 Just fired the emulator...will see the message. Apr 18 17:27:40 ahh maybe you just forgot to append your variable Apr 18 17:27:43 rudolf_: With your code as is, the textView.setText() is being called on the one that you made via new. Get rid of the new line Apr 18 17:27:44 textView.setText("test message this is" + message); Apr 18 17:27:48 add a space too Apr 18 17:28:29 so remove line 24, and change l.28 to textView.setText("test message this is " + message); Apr 18 17:28:39 and starting reading the doc, and looking examples and samples Apr 18 17:31:07 ah...it is working now :| Apr 18 17:31:35 Dunno how...I think I forgot to delete the new textview line. Apr 18 17:31:44 Just removed it and it is working. Apr 18 17:32:08 Thanks a lot guys Apr 18 17:32:36 What's a simle effective approach for writing the logic for a calculator app? Apr 18 17:32:40 And sorry for the stupid question :| Apr 18 17:33:12 rgb-one: I made one recently...a very simple one. Just had to get a parser from somewhere. Apr 18 17:33:25 parser? Apr 18 17:33:48 To parse the expressions which the user will input. Apr 18 17:33:59 rudolf_: Which parser did you use? Apr 18 17:34:46 I don't remember right now. But I googled it and found a jar file for it. Apr 18 17:34:56 Included that in the project. Apr 18 17:35:29 arity? Apr 18 17:36:13 yeah Apr 18 17:36:17 that one only. Apr 18 17:36:20 cool Apr 18 17:37:45 Ah Apr 18 17:38:02 all the user got to do is enter the data and arity does the rest Apr 18 17:38:09 or atleast so it seems Apr 18 17:39:57 yes Apr 18 17:40:10 You just need to write the code for user input. Apr 18 17:43:22 if some code throws a null pointer exception I will get error logs in my debug build. will this crash when it goes out in my google play release build? Apr 18 17:43:46 if it’s not properly handled Apr 18 17:44:35 the exception is caught. is that enough to properly handle it? Apr 18 17:45:01 in release build it will not print the error log so the catch will do nothing Apr 18 17:47:32 No it should not crash but you should know that throwing exceptions are reasonably expensive Apr 18 17:47:42 So on release builds I would just not throw Apr 18 17:48:14 Hey guys so, I am using asynctask to listen on a port using sockets, and I having it create a new thread for every connected client, and to view these clients, I am wanting to use a listview. To interact with connected clients, will I need to update the listview inside the thread or inside asynctask? Apr 18 17:48:33 rudolf_: Thanks Apr 18 17:48:55 No prob :) Apr 18 17:49:02 ok, thanks Apr 18 17:49:24 Demon_Jester: an async task should probably not be used for a persistent listen operation for one Apr 18 17:49:36 And also the answer to your question is neither Apr 18 17:49:40 You have to do that on the main thread Apr 18 17:50:11 tilal6991, if I want to listen for clients on a port, should I use a thread instead? Apr 18 17:50:21 That does seem more appropriate yes Apr 18 17:51:10 tilal6991, yeah when i googled on the subject matter there was mixed results, whether to use asynctask or thread when listening for clients. Apr 18 17:51:51 Really? An async task is suited for short running network tasks which return a result Apr 18 17:52:03 It really doesn't make sense to use them for accepting socket connections Apr 18 17:53:31 tilal6991, the examples I saw were to close the connection shortly after it connects Apr 18 18:21:08 Hi. I'm trying to read a file that is inside assets, but I get a "FileNotFoundException". This is what I do: http://pastebin.com/YuCU7j9X Note that I specify the name only, e.g foo.txt, not "assets/foo.txt" (although I tried that too with no luck) Apr 18 18:21:41 Is this common http://pastebin.com/TS4Gsvqf to recieve when making network request such as login operations through an mBaas? Apr 18 18:23:23 minas, have you tried using the right api call for that? as in android.content.Context -> public abstract java.io.File getCacheDir() Apr 18 18:24:29 Twirl, I just noticed that I put it in the wrong folder... I have an /assets folder at the project root and I confused my self! :P Apr 18 18:24:46 minas114: alright :) Apr 18 18:25:31 if I want to update listview from a thread what can I do to achieve this? I have tried runOnUiThread, but that is not working, throwing a "null object reference" Apr 18 18:28:32 Demon_Jester, Maybe because the thread from which you want to update the ListView has not "seen" the value of the object yet? Have you verified that just before the call to runOnUiThread the listView reference is not null? Apr 18 18:31:47 minas114, I am not sure why its throwing null, I am not trying to pass any value, I am just trying to call a method. Apr 18 18:32:05 minas114, MainActivity.update(); Apr 18 18:32:08 thats it. Apr 18 18:35:30 Demon_Jester: create a Handler and post it Apr 18 18:36:08 Holding a reference to an activity is going to lead to a world of pain Apr 18 18:37:39 Hey guys, im trying to fix this crash "java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v7.widget.RecyclerView$LayoutManager.canScrollHorizontally()' on a null object reference"... is there a way to pin this to the exact line this is happening? Apr 18 18:37:54 this project is huge Apr 18 18:38:04 should be in the stack trace Apr 18 18:38:33 s73v3r: unless the app has been obfuscated Apr 18 18:38:42 In which case it will be harder Apr 18 18:38:47 is the stack trace the stuff that i get from android monitor? Apr 18 18:38:48 Hopefully that is not the case Apr 18 18:38:59 like where i got that execption? Apr 18 18:39:06 you can deobfuscate the stack trace, and at least pinpoint it to the class Apr 18 18:39:16 trudev: Android monitor does have that functionality Apr 18 18:39:28 You can also just do adb logcat Apr 18 18:39:41 thats what i;m doing Apr 18 18:39:51 cant seem to find a line number Apr 18 18:40:37 http://pastebin.com/wNac5kK6 Apr 18 18:41:39 Ah that's probably because someone has not set a layout manager for a recycler view somewhere Apr 18 18:41:55 So recyclerview is crashing Apr 18 18:41:59 is there a “caused by” line below that? Apr 18 18:42:10 There's no easy way to figure out where that is I'm afraid Apr 18 18:42:11 tilal6991 by any chance, do you use nested fragments ? Apr 18 18:42:24 g00s: fragments are evil Apr 18 18:42:27 yes, although i didn't code this Apr 18 18:42:29 Kill them with fire Apr 18 18:42:33 lol Apr 18 18:42:41 But yes I have used them Apr 18 18:42:52 So I know the principles of how they work Apr 18 18:42:58 trudev: If the “caused by” line is there, post it Apr 18 18:43:02 And their many many bugs in implementation Apr 18 18:44:01 looking for that line Apr 18 18:44:27 should be part of the stack trace, although I’m not sure if the monitor gets rid of it Apr 18 18:45:43 huh this is weird Apr 18 18:45:44 now i'm seeing something else Apr 18 18:46:52 http://pastebin.com/TyC3vtHn Apr 18 18:46:59 and then the other on i posted Apr 18 18:47:21 i don't think the one i posted just now is fatel Apr 18 18:48:17 This one doesn't look as bad as the recyclerview one Apr 18 18:48:19 this is all i get from logcat... no caused by statement :/ http://pastebin.com/Y0MdsyJ1 Apr 18 18:49:04 As I saw I'm pretty sure it's someone has forgotten to assign a layoutmanager to a recyclerview somewhere Apr 18 18:49:05 unfortunately it looks like you’re gonna have to check all your recyclerviews to make sure they’re properly set up Apr 18 18:49:55 guess i'm gonna have to set a bunch of breakpoints then... fml Apr 18 18:50:11 i'm an ios dev so all this stuff is kinda new to me Apr 18 18:50:15 no, you can just go through the recyclerviews, Apr 18 18:50:21 err, go through the code Apr 18 18:50:55 I'd just do a search of the project for "RecyclerView" and then one for "setLayoutManager" and see where they don't correlate Apr 18 18:52:31 100+ results for RecyclerView Apr 18 18:53:23 Ouch Apr 18 18:53:27 i doubt very much you’ve got 100 recyclerviews Apr 18 18:53:41 But yeah ^ is true Apr 18 18:54:15 just go through the different activities/fragments and find them Apr 18 18:54:36 i create a directory in /storage/sdcard/ with Files.mkdirs() and it created and i can use it inside program and i can see it with explorer of my android device, but cannot see it when i plug to PC as a USB mass storage, why?! Apr 18 18:55:28 i'm not even sure what i'm looking for tbh Apr 18 18:56:44 you’re looking for where your RecyclerViews are set up Apr 18 18:57:01 you need to make sure that, for each one, a layout manager is assigned, using setLayoutManager() Apr 18 18:57:26 theres a lot... all of them are in separate fragment classes Apr 18 18:57:35 that’s fine Apr 18 18:57:53 I'm looking at getting the advertising id in an sdk I'm writing, and the code I'm seeing currently reflects this implementation that manages to get it without using google play service as a dependency https://github.com/datatheorem/AdvertisingID-Android/blob/master/advertising_id/securecode/dt/com/advertising_id_example/AdvertisingIdClient.java Apr 18 18:58:18 Whereas the documented way to get it is with google play services as a dependency calling their helper http://developer.android.com/google/play-services/id.html Apr 18 18:58:35 Is there any reason I wouldn't want to do it the way with google play services Apr 18 19:05:08 Do you know guys a good & easy android tutorial Apr 18 19:05:11 ? Apr 18 19:05:24 the docs are ok Apr 18 19:05:34 the Big Nerd Ranch book is good Apr 18 19:05:42 there’s also the official Google Udacity course Apr 18 19:06:12 tbh bro it's pretty hard at least for a beginner like me Apr 18 19:06:23 (the doc ) Apr 18 19:06:27 I have to run some junit tests in androidTest (as intrumentation tests). No big deal. It's not as fast as jvm but still fast, as its not using the UI. I have a point where I'm expecting an exception, but I always get a crash. I tried using the old @Test (expected = Exception.class) or the ExpectedException rule with no luck. Keep crashing on a NPE even though that's what I'm expecting. Apr 18 19:10:09 Ayyy Apr 18 19:11:03 anyone here on AS 2.0? Wondering if I should upgrade cause it keeps nagging me Apr 18 19:11:13 curious if anyone ran into any strange blocking issues Apr 18 19:14:16 Anyone have experience reading and writing to spreadsheets? Apr 18 19:14:49 or any database Apr 18 19:18:02 Is it possible to create a service which will be constantly running. I tried using the START_STICKY flag in the onStartCommand(), but the service keeps getting killed and not restarted on my device. Apr 18 19:18:51 guys it that a good tutorial https://www.udemy.com/the-complete-android-developer-course/ ? Apr 18 19:22:45 grekkos: On 2.1 currently and it's great. 2.0 in general is great. There's no reason you can't just revert or have both installed if 2.x gives you any specific issues Apr 18 19:26:28 is it true that Android will move from java to Swift? Apr 18 19:27:31 maybe at some point in the far future. Apr 18 19:27:54 He's not here anymore. Apr 18 19:27:56 Also tell him yes. Apr 18 19:28:01 We need to get morons away asap. Apr 18 19:28:36 haha. how does saying yes push him away? Apr 18 19:29:28 We'll, they'll go write their apps in fail tech ;) Apr 18 19:29:59 or they will be ultra prepared for 2025 Apr 18 19:32:18 hey Apr 18 19:32:40 all Apr 18 19:34:47 Anyone know what going on with google test lab it say it free for beta but ask for billing information? Apr 18 19:38:14 that if anyone use it. Apr 18 19:42:12 what did you said guys ?-> android gonna move to swift in far future ??? Apr 18 19:43:03 Tomorrow. Apr 18 19:43:10 Go rewrite your app, there's support already! Apr 18 19:43:29 MeMoc and all java apps will be deleted in 30 days ! Apr 18 19:43:34 hurryyyyy ! Apr 18 19:43:42 g00s,Hey there. Apr 18 19:43:56 i hope that not true. Apr 18 19:44:02 Yes it is. Apr 18 19:44:10 fuck, if i was google i'd be tempted to carpet bomb the Play store and let the strong rise again, chafe die Apr 18 19:44:11 Lemme just write a blog post and post it on Reddit/HN. Apr 18 19:44:15 It'll be true! :P Apr 18 19:44:18 i beleave when i see it. Apr 18 19:44:29 perlsyntax wants perl Apr 18 19:44:38 funny Apr 18 19:45:02 i have hard time beleave what google say sometimes. Apr 18 19:45:05 Mavrik i don't doubt that google discussed this with Fb though Apr 18 19:45:16 thnx for missing with me guys :P Apr 18 19:45:22 What's wrong with Java? Apr 18 19:45:31 Whats right with Java :) Apr 18 19:45:38 I mean I've had some issues with it but libraries such as EventBus solve my problems Apr 18 19:45:39 g00s, right. Apr 18 19:45:55 g00s, maybe roomates in 6000$ dorms in SV. Apr 18 19:46:16 And then got fired for such a moronic idea by the PM. Apr 18 19:47:24 they mentioned Uber too, not sure why anyone would care what ubder devs thought :P Apr 18 19:47:46 Wait what happend Apr 18 19:47:57 g00s, JavaScript is the future. Apr 18 19:48:02 Why aren't you using it yet? Apr 18 19:48:21 Mavrik actually am looking into it, but for Shiny / electron Apr 18 19:48:27 There Apr 18 19:48:27 http://thenextweb.com/dd/2016/04/07/google-facebook-uber-swift/#gref Apr 18 19:48:43 You already got the dumbass bug :) Apr 18 19:49:06 It's like google officially supporting kotlin because one guy thought it'd be fun to write a sample in it Apr 18 19:49:06 yeah its terrible, typescript is OK though Apr 18 19:50:20 SimonVT, "Let's base our platform on basis of competitors platform that hates our guts." :P Apr 18 19:50:31 they did that already Apr 18 19:50:33 webkit Apr 18 19:50:36 And there's a dumbass "journalist" who thought that plausable :P Apr 18 19:51:19 i think Dianne or somebody from the android team should wear a Swift shift Apr 18 19:51:25 that would fuck with everybody Apr 18 19:52:05 at I/O or dev summit, as a joke Apr 18 19:52:05 https://vid.me/e2jI crazy artifacts i got with canvas rescaling Apr 18 19:56:41 Mavrik: And devs who believe the dumbass journalists Apr 18 19:57:30 If /r/androiddev taught me anyting, Android devs will believe and follow anything you tell them without thinking ;P Apr 18 20:00:17 It would be nice, but it’s not going to happen. at least not this year, or next Apr 18 20:01:09 sounds like people/gossip news for android dev Apr 18 20:01:13 At some point it'll become more like a desktop os and let you use whatever Apr 18 20:01:17 Then you'll get swift support Apr 18 20:01:18 http://i.imgur.com/raHezb5.png Apr 18 20:01:18 yeah i think it would be nice too. you have Apple and IBM already working on it (IBM was the main backer of Harmony, recall). And if Google pitched in , that would be amazing Apr 18 20:01:19 why even caring, it's not like we can influence anything Apr 18 20:01:20 In like 10 year Apr 18 20:01:22 s Apr 18 20:02:03 i dunno, it seemed like Google was going to be forever stuck on Java 6, but people kept asking for Java 8 features, and now they’re starting to roll those out Apr 18 20:02:03 Or it'll end up strangled by Apple like ObjC was. Apr 18 20:02:15 With no usable stl outside Apple world. Apr 18 20:02:33 Also, still moronic after the Oracle shit. Apr 18 20:02:46 s73v3r, i believe it's because it was on their agenda, not because ppl kept asking, otherwise you would see of those 1000starred issue fixed Apr 18 20:02:47 s73v3r i think google + java is more a legal question than tech Apr 18 20:03:11 i don’t think so. if it was on their agenda, we’d have had Java 8 a lot sooner Apr 18 20:04:16 hm - if it was clear to them openJDK would immediately relieve their legal burden, they would have probably done it sooner. but what they probably didn't want to do, was keep implementing cleanroom java 8 features for android Apr 18 20:04:57 It would be nice if you'd only have to know one language to develop for both iOS and Android Apr 18 20:04:59 when oracle could win the lawsuit, and since this was copyright, oracle would have sued more damages based on even more apis google added Apr 18 20:05:16 yonatankoren, C++ is that language. Apr 18 20:05:56 it’d be nice if there were several languages, though Apr 18 20:06:01 ones better than C++ Apr 18 20:06:06 C is there as well. Apr 18 20:06:15 Anything other compilable by Clang is there as well. Apr 18 20:06:23 JNI is not the same Apr 18 20:06:32 i always thought one of googles biggest mistakes was putting too much of the framework in Java. more should have been native. that would have been easier to use it from many languages, like python or whatever Apr 18 20:06:32 Mavrik: haha let's do C Apr 18 20:07:13 So your problem isn't the language but incompetence? :) Apr 18 20:07:28 now you’re just being an ass Apr 18 20:08:31 *shrug* Can't seriously call people who can't do C competent at programming. Apr 18 20:08:51 except that’s not the discussion at all Apr 18 20:09:01 Hi, I'm Mavrik and I'm an elitist coder! Apr 18 20:09:05 I said JNI is not the same as having the language officially supported Apr 18 20:09:10 NoirAvlaa, always! :) Apr 18 20:09:12 you responded by being an elitist ass Apr 18 20:09:22 you guys are reading into this too seriously... Apr 18 20:09:24 NoirAvlaa, I also don't tolerate laziness! Apr 18 20:09:27 * Mavrik feels the hate. Apr 18 20:09:34 haha Mavrik sounds like the Joel Spolsky school : programming begins at pointers Apr 18 20:09:35 again, this isn’t laziness Apr 18 20:09:49 Sounds like he's taken a course in C and decided it's the bestest z0mg Apr 18 20:09:50 what , u no pointer arithmetic ? get out ! Apr 18 20:09:58 s73v3r, what do you mean? Clang is officially shipped compiler by Google? Apr 18 20:10:04 Same as clang in XCode? Apr 18 20:10:24 you know that’s not what’s meant by “officially supported”. stop being deliberately obtuse Apr 18 20:10:38 Then you just redefined those words. Apr 18 20:10:41 I'm guessing he also wears a fedora Apr 18 20:10:45 no, I didn't Apr 18 20:10:50 Google officially supports a C++/C compiler and platform runs the code written in them. Apr 18 20:10:54 They also ship debuggers for it. Apr 18 20:10:59 How much more "official" can you get? Apr 18 20:11:05 stop being an ass. Apr 18 20:11:10 you know exactly what’s meant Apr 18 20:11:19 No I don't. You can explain though. Apr 18 20:11:28 being able to write apps without having to go through JNI Apr 18 20:11:28 NoirAvlaa, nah :) Apr 18 20:11:35 That's a whole nother thing. Apr 18 20:11:49 but that’s what was being discussed the whole time Apr 18 20:11:52 But yes, I do agree replacing JNI with something less insane would be nice. Apr 18 20:11:57 you chose to be deliberately obtuse about it Apr 18 20:12:04 No, you just don't understand english. Apr 18 20:12:15 Everyone else understood him Apr 18 20:12:19 Just you Mavrik Apr 18 20:12:22 yes, I do. you choose to be obtuse Apr 18 20:12:33 g00s, on the other hand, debugging stuff written by people that don't get it is rather unfun Apr 18 20:12:37 If you can't understand an idea that someone is trying to convey because you read in literals, then you don't understand English mate Apr 18 20:12:59 g00s, like explaining to people why their binary TCP protocol doesn't work across multiple devices if you just dump out int from C to TCP packet :) Apr 18 20:13:36 NoirAvlaa, I read "official" as "official". Nothing more. Apr 18 20:13:50 If you don't mean "official" but mean "without JNI translation layer" (there are others) then say so. Apr 18 20:13:55 If you don't know what you're talking about then don't. Apr 18 20:14:04 no. the mistake is on you Apr 18 20:14:52 it's ok, just git gut. Apr 18 20:15:15 so anyway Apr 18 20:18:22 * g00s waits for instant run update that actually works Apr 18 20:19:23 lol Apr 18 20:19:50 yeah, the dev tools are surprisingly embarassing coming from a company with the resources Google has Apr 18 20:20:02 like, if these were from a small startup, it’d be understandable Apr 18 20:20:13 yeah in 2010 Apr 18 20:20:19 but this is from a Fortune 50 company Apr 18 20:20:39 xav, how many decades until gradle plugin works well :) Apr 18 20:22:19 i just went to rename a drawable , and refactoring changed some areas but not others. i thought that stuff worked ... Apr 18 20:40:16 hey guys, what path should I push an apk when there is no SD card ? what's a common location for it ? Apr 18 20:40:33 like, to install it? Apr 18 20:40:43 exactly, I need to push and install Apr 18 20:40:46 MZ|Alex: /sdcard/Download Apr 18 20:41:00 yiati that is SD card Apr 18 20:41:20 MZ|Alex: Don't need an sdcard for that directory to exist Apr 18 20:41:24 oh Apr 18 20:41:48 there I got it! silly me Apr 18 20:41:53 thanks yiati Apr 18 20:41:53 adb install? Apr 18 20:41:58 MZ|Alex: np Apr 18 20:42:45 also "adb shell"ing into my emulator looks like /sdcard directory is linked to the "/storage/self/primary" directory Apr 18 20:43:15 So /storage/self/primary/Download would work too Apr 18 20:43:41 /sdcard/Download is shorter though :D Apr 18 20:44:52 anyone else find android studio on mac extremely slow? Apr 18 20:45:26 a little bit, but no worse than any other IntelliJ product Apr 18 20:45:26 weird, if I try to use the -p modifier for progress watching it says "cannot stat 'sandbox.apk': Bad file descriptor" Apr 18 20:45:44 but adb push works fine without -p Apr 18 20:45:51 is that a bug, or am I missing something ? Apr 18 20:46:57 it makes my laptops fan spin at full force everytime i compile... but that's probably just gradle Apr 18 20:47:39 anyone have tips for speeding up build times? Apr 18 20:48:37 use a non shitty build tool Apr 18 20:48:50 there are good tools that take a lot of time to build Apr 18 20:48:50 instant run brings it down to a min for me Apr 18 20:51:36 trudev: Yeah, nowhere near that slow for me. Do you have a lot of modules? Apr 18 20:52:43 yiati yup unfortunately. it's not my code :( Apr 18 20:53:11 trudev: yeah, gradle incremental build still isn't working great which is 99% likely the cause of your slow builds. Once they finally get it fixed you should be fine and dandy Apr 18 20:53:53 I remember a project I had to build a couple months ago that had ~30 modules, and building that was sooooo slow Apr 18 20:54:09 I'm in happy 3-5 module land right now :) Apr 18 20:54:32 it just waited 4m and 54s for gradle to build Apr 18 20:54:40 i cant wait till they fix this Apr 18 20:54:52 as if they can fix it Apr 18 20:54:55 it's been that shitty for years Apr 18 20:56:12 it's been getting quite a bit better recently Apr 18 20:56:15 iOS spoiled me with near instant run times Apr 18 20:57:28 * pfn gets near instant run times as well Apr 18 20:57:30 * pfn shrugs Apr 18 20:59:03 bwahaha http://imgur.com/7XF3Bae Apr 18 20:59:09 jailbroken :) Apr 18 21:08:21 https://code.google.com/p/android/issues/detail?id=195483 obsolete before it is even fixed Apr 18 21:10:10 It looks fixed to me? Apr 18 21:10:43 Ah, only partially fixed. Apr 18 21:25:24 TextView extends View right? Apr 18 21:26:15 as do most other widgets it seems Apr 18 21:26:57 Hi there, I want to make a simple MapsActivity, following this tutorial of google: https://developers.google.com/maps/documentation/android-api/start#step_5_hello_map_take_a_look_at_the_code . After installing the app on the phone, i only see a white screen. Apr 18 21:27:55 http://postimg.org/image/qsvqevdj3/450edc90/ <-- screenshot Apr 18 21:29:24 rgb-one: yes, it does extend View, like it says here: http://developer.android.com/reference/android/widget/TextView.html Apr 18 21:39:26 is there a function to clear a text view? If so what is it? Apr 18 21:40:55 hello Apr 18 21:41:10 is somebody here using android studio on linux with a HiDPI screen? Apr 18 21:41:31 palate: What's the issue? Apr 18 21:42:14 rgb-one: I am setting hidpi.settings.dpi.override=160 in ~/.AndroidStudio2.0/idea.properties, but it has no effect Apr 18 21:42:35 rgb-one: So my android-studio is very, very tiny because of the hidpi screen Apr 18 21:43:13 palate: No other application is tiny? Apr 18 21:45:56 palate: replace settings in hidpi.setting.dpi.override with system Apr 18 21:48:33 hidpi.system.dpi.override=160 Apr 18 21:59:10 palate: hidpi.system.dpi.override=160 Apr 18 21:59:11 rgb-one: just use textView.setText(""); to clear the text Apr 18 21:59:12 does anyone use assertions on android? Apr 18 21:59:13 rgb-one: hey, are you still there? I lost my connection Apr 18 21:59:18 for dev stuff Apr 18 21:59:45 sponge-tmp: Yea ended up doing that Apr 18 22:00:48 palate: "hidpi.system.dpi.override=160" should work Apr 18 22:01:28 rgb-one: in ~/.AndroidStudio2.0/idea.properties? It doesn't. `xrandr --dpi 160` does something, though Apr 18 22:02:54 you had hidpi.settings.dpi.override=160, replace setting with system Apr 18 22:03:54 rgb-one: sorry, my mistake. In my idea.properties, I have system: hidpi.system.dpi.override=160 Apr 18 22:04:07 Ah Apr 18 22:04:20 no clue then :p Apr 18 22:04:30 rgb-one: =(. Thanks anyway Apr 18 22:06:26 :), if xrandr does its job then work with it Apr 18 22:07:11 rgb-one: Thing is that I don't know what xrandr does exactly, i.e. its impact on other programs Apr 18 22:07:53 palate: Oh Apr 18 22:10:14 anyway Apr 18 22:10:23 rgb-one: Thanks for your help Apr 18 22:10:30 rgb-one: I need to sleep a bit ;-) Apr 18 22:10:33 good night! Apr 18 22:12:33 good night! Apr 18 22:27:20 Anyone here familiar with MVP, in my presenter, I check if the View is null, and if not I pass things back it it, what if the view goes null while I am passing things back to it Apr 18 22:28:08 Does that make sense Apr 18 22:40:31 Oh, its running on the same thread, that cant happen Apr 18 22:53:03 I am losing my mind with AUDIOTRACK. Is anyone familiar with calculating the correct buffer size for playing a wav file AudioTrack.MODE_STATIC in an infinite loop? Every tutorial i follow uses different methods for the buffer size. I keep getting Invalid audio buffer size. Apr 18 22:54:41 Here is my code: http://codepaste.net/csna23 Apr 18 23:00:32 Anyone? Apr 18 23:09:06 anyone in here making games via html5 for android? Apr 18 23:15:38 i need help making my game pencil engine work on android Apr 18 23:20:18 im trying to make my 1st android app : via my new 2d games engine so i can add mobile support t it : starting with android, then windows,ios and tizen already got it on consoles Apr 18 23:20:19 sorry, this is mostly native app developers Apr 18 23:35:59 @theweirdn8 I would suggest not making games in HTML5 for a mobile platform. Apr 18 23:36:40 ah, he left. Apr 18 23:42:22 tyler_elric: im here Apr 18 23:42:32 i got it to run at 60 fps on console Apr 18 23:42:43 im sure it can get close to it on mobile or jsut cap it at 30 Apr 18 23:42:47 bu i need to get it to work Apr 18 23:43:00 construct 2 ports via those 3rd party librariries Apr 18 23:44:19 what exactly is your issue? Apr 18 23:44:38 also somebody who's more experienced here let me know if it's inappropriate / spammy to discuss this here. Apr 18 23:47:58 tyler_elric: im not advertising my engine im asking for help Apr 18 23:48:15 I need help on where to start with android development via html5 Apr 18 23:48:20 there isnt a guide for this it seems Apr 18 23:48:24 just "use phonegapp" Apr 18 23:48:44 right...but I don't really know what you need help with. Apr 18 23:49:37 so i want to be able to hit a button in my program and it converts my html5 app to an android Apr 18 23:50:00 that's...not likely to happen. Apr 18 23:50:36 you can likely still use significant components of your code Apr 18 23:50:44 but you'll have to adapt it to cordova or phonegap. Apr 18 23:50:55 (still HTML5 / JS based, mind you) Apr 18 23:51:20 so tyler_elric im going to have to include pohonegapp installed with the editor Apr 18 23:51:23 But porting something from HTML5 to an Android app isn't something simple enough to simply press a button. Apr 18 23:51:23 or linked to it? Apr 18 23:51:38 I guess include it? Apr 18 23:51:39 imagine unity, rpg maker or game maker porting to android Apr 18 23:51:53 Just make sure you include the proper licensing. Apr 18 23:51:54 gotta see how muh licensing is gonna screw this process over Apr 18 23:52:24 http://www.apache.org/licenses/LICENSE-2.0 Apr 19 00:02:14 i will look into it more Apr 19 00:02:22 but i wish Google would just provide this Apr 19 00:02:41 i hate going on a page and it says, "ok now install these 4 things" Apr 19 00:02:41 google’s not really wanting webapps Apr 19 00:02:50 http://developer.android.com/reference/android/webkit/WebView.html Apr 19 00:02:59 google provides the native SDK for people to write apps in Apr 19 00:06:01 and i wil need to link to android studio to build the apk rite? Apr 19 00:06:29 most likely. Cordova might have something built in to automate that Apr 19 00:07:10 so i need nodejs Apr 19 00:08:07 if you’re using Cordova, I guess? I’m not very experienced with it Apr 19 00:08:49 i hate how i cant get this in 1 nice .zip Apr 19 00:09:57 well, you are trying to do something out of the ordinary, for lack of a better word. Apr 19 00:10:18 also, .apk is basically a .zip with a different name Apr 19 00:18:29 what do u think of this? Apr 19 00:18:29 http://www.mrchay.com/projects/HTML5toAPK Apr 19 00:20:57 no idea. like I said, I don’t dabble with that Apr 19 00:21:14 do any of you guys know of a place for help specifically with UI design? Apr 19 00:25:10 tyler_elric, http://developer.android.com/design/index.html Apr 19 00:25:21 hah Apr 19 00:25:31 * tyler_elric feels silly Apr 19 00:35:29 hello Apr 19 00:35:31 My friend has a brand new tablet and she has been getting unfortantly launcher3 has stopped. Is there a way she can fix this or should she just take it back to the store for a refund? Apr 19 00:37:47 refund Apr 19 00:37:52 and not the right channel to ask Apr 19 00:38:26 update beta 3 Apr 19 00:38:46 http://tools.android.com/recent/androidstudio21beta2available-1 << they failed the title Apr 19 00:39:21 "this addresses a critical bugs in in beta 2. Apr 19 00:39:21 " << too much wine Apr 19 00:39:29 what's the critical bug by the way?? Apr 19 00:57:55 i want to make android app. but i don’t know what to to? Apr 19 00:58:09 write code? Apr 19 00:58:19 yes Apr 19 00:58:31 but there is a tutorial? Apr 19 00:58:50 developer.android.com Apr 19 00:59:15 how long it takes time for making android app? Apr 19 00:59:40 depends on what you want it to do Apr 19 00:59:59 i want to make game app. Apr 19 01:00:01 :) Apr 19 01:00:02 there’s the developer site, there’s the Big Nerd Ranch book, and there’s the Google Udacity course. Those are your best bet Apr 19 01:00:08 like a game? Apr 19 01:00:18 then you’d probably want to check out Unity Apr 19 01:00:18 game app Apr 19 01:00:25 Unit Apr 19 01:00:27 what the fuck is a game app? Apr 19 01:00:28 Unity Apr 19 01:00:43 like Samurai vs zombi 2 Apr 19 01:00:47 :) Apr 19 01:00:49 so a game Apr 19 01:01:28 like I said, Unity might be your best bet Apr 19 01:01:43 Unity Apr 19 01:02:19 yeah, check it out. It’s very popular with indie and mobile game studios Apr 19 01:02:51 thanks s73v3r :) Apr 19 01:08:17 HellO! Using MVP, I need to load results into an adapter in my activity. Do I create an adapter in my presenter, or do I load data into my adapter in my activity? Apr 19 01:11:49 explodes: Im gonna do this soon, Id say pass the adapter from the presenter to the activity Apr 19 01:12:07 Then whenever you need to update items in the adapter, tell the presenter, which will tell the model Apr 19 01:12:21 Kinda keeps the presenter on par with its "middle man" ideal Apr 19 01:12:29 What I just read contradicts that, that all Android dependencies should really be within the view- so the adapter is more or less an extension of the view (activity) Apr 19 01:12:44 Anyone wanna help me finish up a calculator app? Apr 19 01:12:51 Its due today Apr 19 01:13:04 I have the UI done Apr 19 01:13:06 Hmmm good point about it being an extention of the view, didnt think of it like that Apr 19 01:13:10 rgb-one: what you stuck on? Apr 19 01:13:24 rgb-one lol, you're supposed to work out your own homework. Apr 19 01:13:42 how about when you hand it in, your put 'android-dev' as the student Apr 19 01:13:46 explodes: Yeah I guess if you think about it, the adapter should live in the view, and when needs updating tell the presenter which will tell the model? Apr 19 01:13:53 Yea Apr 19 01:14:07 explodes: are you rolling your own MVP? Apr 19 01:14:18 drose379: I am stuck on using the button input as expressions to be evaluated Apr 19 01:14:22 But then how does the presenter update the view in the recycler? Apr 19 01:14:33 drose379: yea, for practice, though Apr 19 01:14:58 Presenter tells the model that you need new data, model gives it, model gives it back to the view which updates / creates a new adapter Apr 19 01:15:00 drose379: I am using Arity, a library for evaluating expressions in string form Apr 19 01:15:29 What works so far is clearing the text view but thats about it Apr 19 01:15:32 I feel like you are not allowed to use that for school rgb-one Apr 19 01:15:49 drose379: Use what for school? Apr 19 01:16:13 Arity, the library Apr 19 01:16:22 Why not? Apr 19 01:16:35 Idk, for me we are usually not allowed to use outside dependencies Apr 19 01:16:45 Just use a Scanner to read the string Apr 19 01:17:12 I don't think she will mind Apr 19 01:17:17 the teacher* Apr 19 01:17:40 Hm ok, so whats the issue? Why didnt you go to office hours Apr 19 01:18:22 Its weekend now and last week was study week Apr 19 01:18:40 I did go to her during study week, on wednesday Apr 19 01:18:52 but I didn't discuss Arity Apr 19 01:19:00 Whats the issue with the calculator then? Apr 19 01:19:50 Not sure how to translate button clicks to strings to be evaluated Apr 19 01:19:58 This is what I have so far: https://gist.github.com/rgb-one/d1fb8fb7b10dd582ed32da34d12ed2ff Apr 19 01:20:06 Button clicks have nothing to do with strings rgb-one Apr 19 01:20:14 this offshore team makes me so angry Apr 19 01:20:30 we're finally converting to appcompat. So I checked out the branch to see how it looks Apr 19 01:20:47 they add the appcompat library by creating an appCompat module Apr 19 01:20:56 rgb-one: pm me Apr 19 01:21:06 And the world still spins RustyShackleford let it go my friend Apr 19 01:21:13 and then "compile file('appcompat.jar')" Apr 19 01:21:18 RustyShackleford but you chose to work with them :D Apr 19 01:21:20 grrr Apr 19 01:21:27 grrrrrrrrrrrrr Apr 19 01:21:32 i'm fixing it and then i'm going to push the issue Apr 19 01:21:33 sup orbyt_ Apr 19 01:21:38 hi Apr 19 01:21:46 what ircs me is that they must not have ever read gradle documentation Apr 19 01:21:51 irk lol Apr 19 01:23:46 drose379: this is a lot but i think it makes for effective MVP: https://github.com/remind101/android-arch-sample/blob/master/app/src/main/java/com/remind101/archexample/MvpRecyclerAdapter.java Apr 19 01:28:31 Nice explodes Apr 19 01:28:38 I havent used RecyclerView yet, still using ListView Apr 19 01:29:42 explodes: you store the View in the Presenter right? Apr 19 01:36:04 so I need a new idea for an app Apr 19 01:37:05 the interesting parts of my current one are done :( Apr 19 01:37:50 RustyShackleford sounds like you're just at the beginning :) the interesting parts are getting it into the hands of many people Apr 19 01:38:55 Yeah but you always need something fun to be working on Apr 19 01:39:00 While getting the other thing into the hands Apr 19 01:39:19 well I'm not the only one who has made a CTA app Apr 19 01:39:39 although I think mine is turning out much nicer than many of the ones in the store Apr 19 01:44:28 argh Apr 19 01:45:18 I now have a mixture of 32-bit and 64-bit binaries in the SDK Apr 19 01:47:35 it's 2016, why am I getting binaries built to run on a 386? Apr 19 01:58:03 Leeds its 2016, why are we still using Java ! Apr 19 01:58:16 we should all be using Kotlin! Apr 19 01:58:17 Say I have synchronous code running, and its blocking and it has frozen the UI thread, if the user pressed the back button, it would not do anything would it Apr 19 01:58:20 and Go! Apr 19 01:58:38 and Angular-React-Ionic! Apr 19 01:58:40 and vim ! Apr 19 01:58:54 is that a thing ? Apr 19 01:58:59 drose379: 99% sure you're right Apr 19 01:59:09 and vim! Apr 19 01:59:11 :D Apr 19 01:59:23 Thanks RustyShackleford Apr 19 01:59:28 so it turns out the 24.0 preview of the build tools has 64-bit binaries Apr 19 02:05:56 Leeds any idea when vim 8 is coming out ? Apr 19 02:06:41 no idea Apr 19 02:11:34 and I'm glad to say that I can still build my app, on the command-line, with ant Apr 19 02:11:41 the future can wait a little bit longer :) Apr 19 02:14:44 When would using .finish() be bad practice? Apr 19 02:21:21 when you don't need to finish Apr 19 02:21:29 Leeds, ant sucks :p Apr 19 02:22:39 pfn: Java sucks Apr 19 02:22:46 it does Apr 19 02:24:18 I wouldn't say it sucks but it's aged, for sure. Use Kotlin if you want to be modern and effective. Apr 19 02:27:34 or scala if you don't want to write java in a slightly improved language Apr 19 02:27:50 haha Apr 19 02:28:34 So you can write Kotlin in AS? Apr 19 02:28:37 again, cvs::java, svn::kotlin, git::scala Apr 19 02:29:15 drose379 where have you been ! Apr 19 02:29:23 Writing java :) Apr 19 02:30:43 Def gonna check out kotlin though Apr 19 02:30:45 Later Apr 19 02:32:22 bah Scala is neither modern nor efficient Apr 19 02:32:44 Especially on Android Apr 19 02:33:13 i hear kotlin guys are trimming their standard library still ... Apr 19 02:33:51 i forgot the method count, i think it was about rxjava size Apr 19 02:33:55 It's already quite viable on Android but yes, the more trimming the better. Their code generation is also much better Apr 19 02:35:21 is kotlin on android pretty mature? Apr 19 02:35:28 or experimental Apr 19 02:36:14 It's pretty mature Apr 19 02:36:35 and officially supported by JetBrains Apr 19 02:36:52 Recently there was an interesting article showing how creating views is much faster with Anko than when using XML layouts Apr 19 02:37:43 i think it would be pretty cool, if we could provide implementations of an Interface based on the same qualifiers as res/ tree Apr 19 02:38:16 so maybe i have FooImpl in com.me.myapp.res.landscape Apr 19 02:38:44 and another impl in com.me.myapp.res.sw600 Apr 19 02:39:09 Sounds doable with synthetic functions, like Android Extensions does Apr 19 02:55:23 Hey all. Have any of you done native debugging with Android Studio? I was hoping AS would be able to set up GDB or LLDB to work with an application but I can't really seem to get anything working. I have a project which loads a few native libraries and its crashing some point after the application is resumed. I was hoping I could get a useful stacktrace or something Apr 19 02:59:53 scala is considerably more modern than kotlin **** ENDING LOGGING AT Tue Apr 19 02:59:59 2016