**** BEGIN LOGGING AT Tue Apr 05 02:59:58 2016 Apr 05 03:03:47 django_, with any accuracy, no Apr 05 03:04:30 django_, with a hand-wavy w/in 20 feet? kinda. you'd need to figure out ranges based on signal level. Apr 05 03:05:04 keeping in mind someone putting their phone in their pocket, having a filing cabinet in the way, having people standing in the way, etc, will drastically affect that measurement Apr 05 03:05:17 dragorn, im trying to see if its possible to get distanc between a phone and a wearable Apr 05 03:06:31 django_: If it was possible, there are some cool things that could be done. But unfortunately, the reliability is way too bad, for the reasils dragorn said. Apr 05 03:06:42 results Apr 05 03:06:47 since you don't know the quality of the receiver, the receiver antenna, the transmitter antenna, the transmitter power, or whats in the way... Apr 05 03:06:55 you can guess, and that might be good enough Apr 05 03:07:03 loke, MIT just released some interesting stuff Apr 05 03:07:08 loke, s/released/published/ Apr 05 03:07:21 loke, basically doing gps w/ wifi timing; there's no way to do it w/ current sw/firmware/etc tho Apr 05 03:07:26 The WLAN tracking stuff mentioned on HN yesterday? Apr 05 03:07:40 loke, super high precision clock coordination then syncing based on time in air Apr 05 03:07:48 maybe? I don't follow HN, it's shown up a few places, so, probably Apr 05 03:08:13 Yeah, I think it's the same. I haven't read the paper yet, but it looked interesting. Apr 05 03:08:17 anyhow, if you know exactly when it left the transmitter and have super high precision clocks coordinated, you can get it Apr 05 03:08:29 it's more or less how gps works; high precision clock signals and measuring the differences Apr 05 03:08:32 "yet" as in "I would like to read it, but I don't think I will be bothered to" Apr 05 03:08:50 when i worked for a wifi company we did some rangefinding and distance stuff the same way Apr 05 03:09:06 put two antennas 20 feet apart and measure the time offset from a packet hitting each one Apr 05 03:09:32 gets you direction finding Apr 05 03:09:43 s/rangefinding/direction finding/ Apr 05 03:09:59 but it's not something you'd be doing w/ a phone, regardless Apr 05 03:27:20 django_, you can guesstimate with the free-space loss algo; distance = 10 ^ ((27.55 - (20 * log10(frequency)) + signalLevel)/20) Apr 05 03:27:24 don't expect good results Apr 05 03:31:18 lol Apr 05 03:31:19 peace Apr 05 04:02:21 teasp00n: yeah that's what I was looking at originally, but I was looking for maybe something from google themselves. This will do though, thank you! Apr 05 05:50:42 moring Apr 05 06:44:37 anyone know if GoogleApiClient is thread safe? Apr 05 06:44:47 hi! I noticed that when I have a small project in AndroidStudio 2 (with experimental plugin) the build is made incrementally (only the files that are changed are rebuilt) Apr 05 06:45:15 but when I have a big project all the files are rebuilt even tough just one files was changed Apr 05 06:45:19 any ideas about this? Apr 05 06:49:03 Hey Apr 05 06:50:54 A lot of apps have notifications where the text is too long to be display in fullness. Why is that? Apr 05 06:51:18 The good ones at least lets you drag it to show more text Apr 05 07:04:08 Hi, I have implemented GCM in my app, and for many of the users this issue is present where the token returned by the InstanceID API is invalid. I checked the GCM tokens sent by the clients to our server and most of them are giving a "NotRegistered" error. Apr 05 07:04:13 HunterD: what's your targetSdk? Apr 05 07:04:36 23 Apr 05 07:04:51 minSdk? Apr 05 07:05:23 15 Apr 05 07:05:40 if you change to minSdk=21 it should fix that Apr 05 07:05:55 you can make a special flavour for development and use it for fast builds Apr 05 07:06:55 but i need to support minSdk 15 Apr 05 07:07:43 thepoosh: my target sdk is 23. changing it to 21 will make incremental build work? Apr 05 07:10:38 http://www.geek.com/apps/tsa-paid-1-4-million-for-randomizer-app-that-chooses-left-or-right-1651337/ Apr 05 07:10:46 maybe they need android version... Apr 05 07:12:20 HunterD: minSdk Apr 05 07:12:22 and yes Apr 05 07:12:34 gordon_: I feel that some things are not published correctly there Apr 05 07:13:19 i know i know Apr 05 07:13:31 i will give them bargin then Apr 05 07:13:41 ;) Apr 05 07:40:44 has anyone here used dozer? Apr 05 08:18:37 yes Apr 05 08:25:34 need an opinion here. im making an app that talks back and forth with my phone over tcp/ip. obviously since you cant run servers on cell phones, i added in the desktop app the ability to act as a server/middle man on a different port for the same app running at say work, school, etc. instead of home, and since the data HAS to be mirroed, i just forward it to the phone within that app. Apr 05 08:26:04 im trying to decide if thats the best way to do it, or have the remote app send its address:port through the middle man to the phone, then have the phone connect to it and operate independantly Apr 05 08:27:27 the phone app requires a login, so im thinking it probably makes more sense to tell the phone, through the main instance of the app, i.e. home, the new remote connections ip address Apr 05 08:28:31 then i could eliminate the server totally from the application. not have to forward messages, and handle the login/authentication on the phone as if it was just launching a new instance of the desktop app Apr 05 08:30:42 im leaning more towards the latter, as it seems to make more sense. ill just have to write a server into the phone app. i need to store these remote locations anyway, and it makes sense to store them on the phone due to the way i have my transmission control code written in case the desktop app didnt receive the message the phone app sent and vice versa Apr 05 08:32:52 I kind of get what you're asking, but it's a bit run-on. You probably should consider security implications of open ports on a portable device. Apr 05 08:33:37 what do you mean Apr 05 08:34:06 I think that's why he's not going the phone as server route @alpha Apr 05 08:34:22 right. the phone is NOT the server Apr 05 08:34:26 it cant be the server Apr 05 08:34:30 In this accepted answer: http://stackoverflow.com/questions/2169649/get-pick-an-image-from-androids-built-in-gallery-app-programmatically he uses "getPath" in onActivityResult , but I can't find that method when replicating his code exactly, I only find getDatabasePath and getFileStreamPath. Does any of those two work the same way? Apr 05 08:34:43 eh... github problems again... Apr 05 08:34:57 yah :/ Apr 05 08:35:05 nvm... my broswer failed to load the rest of the code for some reason Apr 05 08:35:10 *shakes fist in China direction* Apr 05 08:35:18 lol Apr 05 08:35:36 I blame weather balloons. Apr 05 08:36:03 I blame... ruby Apr 05 08:36:08 you have hurt the feelings of the Chinese people Apr 05 08:36:25 Now they'll get the Koreans to DDoS you. Apr 05 08:37:07 i HAVE to have a middle man one way or another. i just can do it two ways. make the middle man, main instance of the desktop app, the full blown server, or just make it a legit middle man and guide the additional desktop apps to the phone by telling the phone their ip addresses Apr 05 08:37:17 weather balloons are assholes yeah Apr 05 08:37:44 lol Apr 05 08:37:49 poor baloons Apr 05 08:37:56 "weather balloons" were probably spy balloons. Hehe, those 'aliens'. Apr 05 08:38:06 ALIENS Apr 05 08:38:25 Because not even 2 decades later, Gary F. "reaking" Powers. Apr 05 08:38:49 #history Apr 05 08:38:51 #politics Apr 05 08:39:09 http://tinyurl.com/zwl48ll Apr 05 08:39:44 He doesn't know what the question is... but the answer is! (LOL) Apr 05 08:42:14 well i made my decision. now i know what ill be doing in hawaii and japan when im recovering from being drunk Apr 05 08:59:17 does android have anything equivalent to win32 io completion ports Apr 05 08:59:54 What do they do? Apr 05 09:03:09 its basically a kernel object you attach i/o operations to. file read/write, pipe read/write, socket read/write. anything that you can read/write to, and it executes it in an overlapped fashion, and when its done, it posts a completion notification to a queue. you get queued completion notifications in a separate thread. for whatever finished out of all the i/o operations you issued on a Apr 05 09:03:09 socket, file handle, pipe handle, that are attaches to that completion port Apr 05 09:04:04 you wait on the completion port in a loop and dequeue the notifications. which could have either been done successfully or failed Apr 05 09:04:23 its very nice, fast, and efficient Apr 05 09:05:13 Mhm. That doesn't exist on Linux so by extension doesn't exist on Android either :) Apr 05 09:05:23 Also NIO is mostly missing from Android as well so you don't even get that :/ Apr 05 09:05:34 im not a big fan of threads per connections etc. ive been using this for years now since it only worked on win2k+ Apr 05 09:05:51 whats NIO Apr 05 09:06:27 https://en.wikipedia.org/wiki/Non-blocking_I/O_(Java) Apr 05 09:07:26 i see. im not sure if this is like what i mean. seems like this has to do with the actual data, not how the operations are performed Apr 05 09:08:18 i guess ill be fine with thread per client on my phone app. its one of those scenarios where there arent going to be a lot of connections at all Apr 05 09:08:27 id say 5 is the upperbound extreme case Apr 05 09:08:30 emceelovin, it's not. Apr 05 09:08:44 As I said, there's nothing like it on Linux, because what you're talking about is a Windows kernel concept. Apr 05 09:08:49 right Apr 05 09:08:52 Which isn't present on other OSes :) Apr 05 09:08:58 I created this helper class: http://pastebin.com/t0YFZXgN which I plan on creating 12 different instances of in my activity to create a library of images. But since I've defined the layout in xml including the grid if imageviews, I can't really see how this class can be used. Can I create instances of this class in my layout ? Apr 05 09:09:14 NIO is similar that does non-blocking IO, but exactly that just isn't available :/ Apr 05 09:09:25 its a user level windows API, but underlying it uses a bunch of kernel stuff Apr 05 09:09:33 mhm. Apr 05 09:09:48 since the OS handles all of the operations behind the scenes. then just tells you when theyre done Apr 05 09:09:53 it really is an amazing thing. i love it Apr 05 09:10:06 Linux does it the other way around, where you ask the OS if the I/O is ready Apr 05 09:10:18 yeah. polling is malignant cancer to me Apr 05 09:10:37 with this, you issue a send, and it tells you when its done lol. same with a receive, file read, file write Apr 05 09:10:41 its very convenient Apr 05 09:11:05 it was benchmarked one day with a server app and had ridiculous throughput and connection amounts. wish i still had the link to that Apr 05 09:11:49 the scaling was just ridiculous Apr 05 09:12:56 welp, thread per client it is lol. Apr 05 09:16:17 are all threads stopped when hitting a breakpoint in Android Studio? (c++ code) is there an option to set this? I am using the experimental plugin Apr 05 09:48:05 If I have defined a couple of imageviews in the layout of an activity, can I in my Java class completely change it's "datatype" into a custom made class instead? Apr 05 09:48:08 damn, hard to explain Apr 05 09:52:13 But I have this class: http://pastebin.com/aA1BVBqS which I was going to create 12 instances of in my activity. Apr 05 09:52:44 and use those instances to display in my grid of imageviews Apr 05 10:20:46 I am displaying text in text view and I see that words are breaking up when text is overflowing. How can I fix this? I set width to wrap_content Apr 05 10:23:25 hello Apr 05 10:24:44 which is better android studio or eclipse? Apr 05 10:28:07 which is better android studio or eclipse? Apr 05 10:30:10 hey guys Apr 05 10:30:55 i have two overlapping buttons Apr 05 10:31:02 both are visible for the most part Apr 05 10:31:08 see here : https://www.dropbox.com/s/9nzpck8y156tftd/Screenshot%202016-04-05%2012.30.45.png?dl=0 Apr 05 10:31:32 if i click the button in the "background" (the left one), it get's to the foreground and overlaps the yellow, round button Apr 05 10:31:38 How can I prevent this? Apr 05 10:31:42 which is better android studio or eclipse? Apr 05 10:31:47 I want the yellow button at the top z-order all the time Apr 05 10:32:11 I know that's a difficult question, but maybe someone here knows the answer Apr 05 10:32:15 Anyone know how to store a float array in XML? Apr 05 10:33:45 unsigned_long, is it a button or a view that looks like a button? Apr 05 10:33:54 it are 3 buttons Apr 05 10:34:07 in a relativelayout Apr 05 10:35:40 hi! how can I configure gradle to show more details about what it is doing inside the Gradle Console? Apr 05 10:35:57 HunterD: you should read the docs Apr 05 10:36:04 but use --stacktrace or --info Apr 05 10:36:10 or --profile Apr 05 10:36:49 linuxlove: eclipse ADT plugin is discontinued Apr 05 10:38:10 Ankhwatcher: don't think float-arry is a thing for android xml Apr 05 10:38:21 you can have a string-array and parse the strings Apr 05 10:38:36 Float.valueOf(String input) Apr 05 10:54:44 can I start a debug session without having to compile? (for example, I can compile with another build system, custom made and I want to debug with Android Studio). can a gradle command be configured to skip the build and just start the debug (with the .so to use being the one that was build by the custom system, if needed, copied to the right place)? Apr 05 10:55:02 * this is about ndk compilation Apr 05 10:57:46 You can start the debug session via adb from the shell HunterD Apr 05 11:03:50 HunterD: you should really be rtfm right about now Apr 05 11:03:59 rtfm? Apr 05 11:04:29 barq: if started via adb will I be able to use the Android Studio Debug Window? Apr 05 11:04:50 *with all the features: frames, variables, step in/out Apr 05 11:07:06 HunterD: http://lmgtfy.com/?q=rtfm Apr 05 11:08:42 Yes Apr 05 11:12:19 HunterD: How are you building C++ stuff? I heard the AS doesn't support it at the moment? Apr 05 11:13:54 anyone familiar with firebase ? Apr 05 11:14:14 i am trying to understand something about data snapshot Apr 05 11:14:41 Doesn't sound like android-dev to me. Apr 05 11:14:54 well, i am using it in android studio Apr 05 11:16:04 What is your questio Apr 05 11:16:05 and i am not sure even sure if my lack of understand to firebase or java that is being an obstacle ? Apr 05 11:16:05 n Apr 05 11:16:11 hey guys Apr 05 11:16:12 for example Map ratings = (HashMap) snapshot.getValue(); Apr 05 11:16:39 i cant create virtual device in my android studio i see this http://picpaste.com/andrid-TAOFOoFW.png Apr 05 11:16:40 after that Collection values = ratings.values(); Apr 05 11:16:47 what should i do? Apr 05 11:17:59 which makes "values" is a collection i guess, then values.toString(); would gives me something like this : [6,3] which are the values in the nod i ref to in the json Apr 05 11:18:29 the thing is i am trying to get a specific value, whihc is the highest of those two, [6,3] Apr 05 11:18:56 i cant create virtual device in my android studio i see this http://picpaste.com/andrid-TAOFOoFW.png Apr 05 11:19:05 isn't Picasso suppose to be able to use "Uri selectedImageURI = data.getData();" to load the data into an ImageView? Apr 05 11:19:05 and i dont know if i could iterator and get the highest or not since it is a Collection ? Apr 05 11:20:41 oh man, dont remind me of picasso and universal image loader, had a rough time dealing with these 2 last week -_- Apr 05 11:20:47 barq: i build c++ code with Android Studio 2.0 and the experimental gradle plugin Apr 05 11:21:23 I would like to be able to skip the build when I start debugging and instead use a .so that I built with another system (which is faster) Apr 05 11:24:13 Ah, they're finally adding support in 2.0 Apr 05 11:24:34 Why are you building each time you debug? Apr 05 11:25:07 Use DDMS Apr 05 11:25:25 please help i get many error in my android studio http://picpaste.com/android2-adnUsQ7k.png Apr 05 11:25:25 why no people answer me here Apr 05 11:25:25 please help i get many error in my android studio http://picpaste.com/android2-adnUsQ7k.png Apr 05 11:25:51 linuxlove: have you tried clicking the first blue line? Apr 05 11:25:57 "disable offline mode" Apr 05 11:26:42 i did that now Apr 05 11:28:59 i see processing in Gradle:resolve dependencies:app-debugcompile ............ Apr 05 11:28:59 just in process Apr 05 11:28:59 Error on line 1: White spaces are required between publicId and systemId. Apr 05 11:28:59 what should i do? Apr 05 11:30:18 thepoosh, it is in processing it is freezing on gradle :resolve dependencies Apr 05 11:30:29 Can someone spot something obviously wrong with this? http://pastebin.com/16MjyG2L No image is loaded into the ImageView, and from all the stackoverflow posts I've read, my code should work.. Apr 05 11:30:56 thepoosh, i get this error also Error on line 1: White spaces are required between publicId and systemId. Apr 05 11:31:19 linuxlove: it means that you're having bad dependencies Apr 05 11:31:42 thepoosh, what should i do now? Apr 05 11:31:58 pastbin your build.gradle dependencies Apr 05 11:34:14 thepoosh, http://pastebin.com/8nZvfPQe Apr 05 11:35:00 linuxlove: what happens in SettingsConnectionService.java line 81? Apr 05 11:35:06 sorry, #80 Apr 05 11:35:37 thepoosh, i dunno Apr 05 11:35:57 i installed android studio recently Apr 05 11:36:34 dependencies { Apr 05 11:36:34 compile fileTree(dir: 'libs', include: ['*.jar']) Apr 05 11:36:34 testCompile 'junit:junit:4.12' Apr 05 11:36:34 compile 'com.android.support:appcompat-v7:23.2.0' Apr 05 11:36:34 compile 'com.android.support:design:23.2.0' Apr 05 11:36:49 please don't paste your entire file here Apr 05 11:36:54 okay Apr 05 11:36:59 pastie.org is good Apr 05 11:37:06 or pastebin.com Apr 05 11:37:09 ^ Apr 05 11:37:13 or gist.github.com Apr 05 11:37:50 thepoosh, http://pastebin.com/4NdeRkLX Apr 05 11:39:05 thepoosh, http://pastebin.com/qAabRFrC Apr 05 11:40:42 linuxlove - the error is in XML, probably a file generated by IntelliJ. Re-import your project Apr 05 11:41:10 philipwhiuk, i just created a new project Apr 05 11:41:35 What version of Android Studio are you using? Apr 05 11:42:42 philipwhiuk, 1.5.1 Apr 05 11:44:05 philipwhiuk, it is in process yet Gradle:resolve dependencies Apr 05 11:45:27 philipwhiuk, http://picpaste.com/android3-qSqHLV7c.png Apr 05 11:46:57 Depending on your internet connection it may take a while to resolve the dependencies - it's got to download the android libs etc. Apr 05 11:47:54 philipwhiuk, i configured proxy for it Apr 05 11:48:21 does it make problem? Apr 05 11:51:09 linuxlove: yes, your proxy is timing out and not passing the data Apr 05 11:51:15 is it by port? Apr 05 11:51:20 yes Apr 05 11:51:28 it is 16823 Apr 05 11:51:30 disable the proxy Apr 05 11:51:35 i cant Apr 05 11:51:46 google has blocked our country Apr 05 11:51:55 i live in Iran Apr 05 11:52:31 Is there something about the "onActivityResult" method that messes up Picasso's methods? I'm completely out of ideas of why it won't work Apr 05 11:52:38 linuxlove: isn't it the other way? Apr 05 11:52:56 403. That’s an error. Apr 05 11:52:56 Your client does not have permission to get URL / from this server. That’s all we know. Apr 05 11:53:18 Eplebit, what do you mean? Apr 05 11:56:04 linuxlove: thought it was iran that blocked google? Apr 05 11:56:15 Eplebit, no Apr 05 11:56:28 google has blocked our country Apr 05 11:57:33 they're probably forced to due to US sanctions Apr 05 11:58:01 ok, I know that Iran themselves blocked google on several occasions. Apr 05 11:58:40 if Iran didn't have a theocratic government which sponsors terrorism and proxy wars all over the middle east... but that's off-topic, and *probably* not linuxlove's fault Apr 05 11:58:40 Eplebit, it is not true about android Apr 05 11:59:09 Leeds: not that the us should talk too loudly about proxy wars in the middle east... Apr 05 11:59:22 hi Apr 05 11:59:22 last I checked they were still backing the rebbels Apr 05 11:59:43 but sorry, I'm digressing Apr 05 11:59:45 I need some advice from you guys regarding specs for a new PC used for development Apr 05 11:59:56 there's backing, and there's backing, and there's Android app development :) Apr 05 12:00:06 hehe, yeah Apr 05 12:00:07 sorry Apr 05 12:00:10 let's get back to android :) Apr 05 12:00:35 AlexandruM: as big an SSD and as much RAM as you can afford... Apr 05 12:00:36 right now I have a laptop with the following specs : i5-4200U @ 2.3 Ghz with 8 GB of ram and the intel graphics, plus I added a samsung 840 evo 250 GB Apr 05 12:01:12 running windows 10 64bit Apr 05 12:01:40 @Leeds : question is, since I use a physical device for testing, do I need more than 8 GB of ram? Apr 05 12:02:06 also, whenever I am building the app (AS2.0 RC 2) my PC becomes unresponsive Apr 05 12:02:19 and the build takes around 3 minutes for a small app Apr 05 12:02:21 Check what's bottlenecking your system Apr 05 12:02:35 as far as I can tell right now it is the CPU Apr 05 12:02:37 If you are swapping memory, get some more Apr 05 12:03:27 hated from limitations Apr 05 12:03:32 would running ubuntu or some linux distro instead of windows help to some degree ? Apr 05 12:03:41 I doubt it Apr 05 12:03:51 or should I just ask the company for a PC with an i5 or i7 and 12/16GB of ram ? Apr 05 12:04:09 i7 with 16 gb of ram Apr 05 12:04:16 That may be the best option Apr 05 12:04:23 and not crappy U series Apr 05 12:04:52 i5 or i7 won't make a killer difference, I think Apr 05 12:04:56 more RAM probably will Apr 05 12:05:00 I tried friday home using my xeon (basically i7-4790) .. still getting the lockups Apr 05 12:05:05 cores will make a difference Apr 05 12:05:07 but not for 3 minuets Apr 05 12:05:09 minutes* Apr 05 12:05:13 for a few seconds only Apr 05 12:05:23 AlexandruM: so something is wrong then Apr 05 12:05:23 assuming we're talking desktop CPUs, not mobile ones Apr 05 12:05:30 IBus prior to 1.5.11 may cause input problem. See IDEA-78860 for details. Apr 05 12:05:41 Leeds: comparing "U" cpu with 'mq' or 'k' ? Apr 05 12:05:48 (speaking about i7) Apr 05 12:06:02 so desktop i5 or desktop i7 will perform about the same ? Apr 05 12:06:05 linuxlove: upgrade ibus then Apr 05 12:06:13 gordon_, how? Apr 05 12:06:22 how should I know ? Apr 05 12:06:26 i am using ubuntu 14.04 Apr 05 12:06:35 so wont upgrade Apr 05 12:06:37 anyway Apr 05 12:06:40 it doesnt matter Apr 05 12:06:41 I have an i5-4690 in my PC... Apr 05 12:06:47 was working like this for one year Apr 05 12:07:02 @linuxlove : http://stackoverflow.com/questions/33651898/resolving-ibus-issue-ibus-prior-to-1-5-11-may-cause-input-problems Apr 05 12:07:07 there is a fix there Apr 05 12:07:25 good luck with that fix Apr 05 12:07:39 don't you need a i7 if you want to use the android emulator with x86 support anyways? Apr 05 12:07:41 wonder how you will change language inputs then Apr 05 12:07:45 thanks Apr 05 12:07:49 Eplebit: no Apr 05 12:07:59 well true, if you only use one input language Apr 05 12:09:20 add "export IBUS_ENABLE_SYNC_MODE=1" to your ~/.profile, then restart a session. Apr 05 12:09:32 this is from jetbrains Apr 05 12:09:44 gordon_: oh, my bad. thought you needed hyper-threading Apr 05 12:10:14 so summing up, new PC with i5/i7 and tons of ram is what I want? Apr 05 12:10:21 plus fast storage Apr 05 12:11:42 Eplebit: i7 and i5 dont have HT now Apr 05 12:11:45 AlexandruM: plus a big screen (or two) and a good GPU for gaming after work :D Apr 05 12:11:46 Make sure the CPU is recent and desktop class Apr 05 12:12:08 seriously, a big screen (or two) Apr 05 12:12:14 gordon_: oh, guess I'm completely out of date Apr 05 12:12:19 ;) Apr 05 12:12:20 @Leeds : thanks, will get a second screen as well Apr 05 12:12:23 you need vt-d Apr 05 12:12:36 I have one 24 inch FHD one now, that I use with the laptop Apr 05 12:12:42 well, you dont need it, but it will help Apr 05 12:12:55 AlexandruM: dont use @ Apr 05 12:13:00 it doesnt help Apr 05 12:13:03 it's not slack Apr 05 12:13:04 ok, sorry Apr 05 12:13:17 write gor Apr 05 12:13:21 it will autocomplete Apr 05 12:13:25 nice, thanks Apr 05 12:13:40 i feel old now Apr 05 12:13:41 didn't use IRC in a while Apr 05 12:14:20 if by FHD you mean 1920x1080, you can do better than that - but it's ok Apr 05 12:14:21 recently there's some "fashion" for slack and stuff Apr 05 12:14:37 and best client apps in node.js and electron Apr 05 12:14:44 Leeds: I know, but I have to make due with the budget they'll give me Apr 05 12:14:44 /gify facepalm Apr 05 12:14:45 that's why you need 16gb of ram ;) Apr 05 12:15:10 Leeds: I dont know why, you want more thant 1080p Apr 05 12:15:14 tbh I've used IRC for years and didn't know IRC clients had tab completion. TBH I thought IRC was too old for fancy things like that - did/does mIRC support it? Apr 05 12:15:22 what you get, is scaling issues only Apr 05 12:15:25 gordon_: for vertical space I guess Apr 05 12:15:37 1200p was better Apr 05 12:15:39 AlexandruM: you can try to pry some extra budget by mentioning how a slow system will drain your productivity ;) Apr 05 12:15:43 then get two monitors Apr 05 12:15:46 like 22" Apr 05 12:15:51 I got two 26" Apr 05 12:15:55 and they are too big Apr 05 12:16:01 would replace for two 22" Apr 05 12:16:23 2x 23.5" works for me Apr 05 12:16:29 too big Apr 05 12:16:32 any bigger and I feel they are too big Apr 05 12:16:32 my neck hurts Apr 05 12:16:51 maybe I should change them Apr 05 12:17:00 or get two dells with very thin bezels Apr 05 12:17:07 I tend to keep them a bit further Apr 05 12:17:20 or get wide screen and use some awesomewm Apr 05 12:17:21 but i have very good eyesight Apr 05 12:17:24 or whatever Apr 05 12:17:35 thanks for your help fellas Apr 05 12:17:38 np Apr 05 12:17:52 anyway, get the strongest machine you can get Apr 05 12:17:56 it wont hurt you Apr 05 12:17:56 will try and get the budget and place the order for the parts Apr 05 12:18:22 home I have my personal beast, eats this tiny laptop :)) Apr 05 12:18:43 I'm old enough, and fixed in my ways enough, that I don't like working on a laptop Apr 05 12:18:44 work from home then :P Apr 05 12:19:01 gordon_: nah, I hate working from home Apr 05 12:19:06 you end up working more than you should Apr 05 12:19:07 I like Apr 05 12:19:12 true Apr 05 12:19:12 I'm happy enough with a trackpad, but I like a decent-sized keyboard and a decent-sized screen, and for there to be some *separation* between them Apr 05 12:19:13 0 distractions Apr 05 12:19:21 brb, lunch break Apr 05 12:19:28 well, you need to get used to it Apr 05 12:19:29 8:20pm here, and I'm doing some work in another desktop Apr 05 12:19:40 to be fair, I've done virtually no work today until now :) Apr 05 12:19:44 9:20 pm :( Apr 05 12:19:48 (at home) Apr 05 12:19:48 damn I need to go home Apr 05 12:19:54 (at work) Apr 05 12:27:48 3:30 PM Apr 05 12:28:09 but I eat twice, once at 12:00 and one more time at 3:15 PM Apr 05 12:28:29 so I don't feel sleepy after a huge lunch Apr 05 12:30:10 ohh, one more thing, how well does an AMD cpu with lots of cores work for compiling ? Apr 05 12:35:20 It's OK if you are looking to save some money. AMD offers a nice price for performance ratio, but ultimately cannot compete with Intel in the high end Apr 05 12:37:14 at the moment, I just wouldn't think about getting an AMD CPU Apr 05 12:37:29 Well, compiling is a multicore workload Apr 05 12:37:58 AMD has an 8-core 4GHz for a little north of 150eu, that's not bad Apr 05 12:45:10 if an 8core amd will perform better than a 4 core i5, I'd rather go with the 8 core Apr 05 12:45:25 this is why I am asking Apr 05 12:46:09 I know for single threaded apps intels are much better Apr 05 12:46:32 not sure how many threads android compiling can make use of Apr 05 12:52:47 AlexandruM: are you sure you're looking at an 8core? Apr 05 12:53:10 those aren't exactly common on consumer hardware Apr 05 12:53:49 AMD's FX-8350 is a pretty popular CPU Apr 05 12:54:04 sorry thought we were talking intel Apr 05 12:54:16 i only saw half the convo Apr 05 12:54:18 mb Apr 05 12:54:25 looking at the FX-8350 yes Apr 05 12:54:29 vs i5-4460 Apr 05 12:54:42 8 cores vs 4 cores Apr 05 12:55:12 I will not use the emulator, I have 4 different physical devices I can test on Apr 05 12:55:16 AlexandruM: does the i5 have a letter on the end? Apr 05 12:55:18 the emulator won't run well on AMD Apr 05 12:55:46 http://www.pcgarage.ro/procesoare/intel/core-i5-4460-32ghz-box/ Apr 05 12:55:53 it is the haswell refresh Apr 05 12:55:59 desktop cpu Apr 05 12:56:17 shmooz: I know, won't use it anyway Apr 05 12:56:27 that amd is almost 4 years old Apr 05 12:56:33 I just want the compilation to be as fast as possible Apr 05 12:57:51 AlexandruM: I'd say that has a lot more to do with ssd/ram at a certain point Apr 05 12:58:30 but Apr 05 12:58:56 if you're going to be doing some seriously broad stuff with a bunch of independent modules, the cores will help Apr 05 12:59:32 hmm .. ok then, i5 with 16 gb of ram it is then Apr 05 12:59:42 don't forget the ssd Apr 05 12:59:49 and you mght be seriously overdoing it Apr 05 12:59:51 i5/16GB/250GB-SSD seems like a sweet spot to me Apr 05 12:59:57 will use the one I have Apr 05 13:00:04 samsung 840 Apr 05 13:00:07 250gb Apr 05 13:00:27 I just bought an 850 a couple of weeks ago :) Apr 05 13:00:30 I can get build times around 1-2min on bigger projects on an i5 6gb laptop no ssd Apr 05 13:00:59 so if you're a total noob...that computer is very likely a waste of money Apr 05 13:01:22 (the laptop example is not my preferred setup obviously) Apr 05 13:01:37 Leeds: is that the pcie m.2 ssd that runs at 1.4G/s? Apr 05 13:01:52 shmooz: nah, just simple SATA Apr 05 13:02:10 didn't the samsung 840 have a lot of problems? Apr 05 13:03:23 Eplebit: i thought that was the 830 Apr 05 13:03:42 oh Apr 05 13:03:51 the 8xx evo's have issues Apr 05 13:04:12 solution - don't buy samsung, or if you do buy pro Apr 05 13:04:15 they do? crap, I thought they had fixed it for the 850 Apr 05 13:05:46 im seeing 850 evo issues to on google Apr 05 13:05:54 could be outliers Apr 05 13:05:56 http://ssdboss.com/ssd/Intel-750 Apr 05 13:06:02 that's the killer option Apr 05 13:06:06 but not for laptops Apr 05 13:06:31 got to be very careful looking at 'issues' online Apr 05 13:06:59 well yeah Apr 05 13:07:02 tiny amounts of noisy people can vastly out-shout massive amounts of quiet happy people Apr 05 13:07:05 titanred: think the 850 is safe... most of the threads seems to be asking if it has the same problems as 840... Apr 05 13:07:09 sorry Apr 05 13:07:10 mb Apr 05 13:07:12 at least I hope so, as I have one myself at home Apr 05 13:07:16 lol Apr 05 13:07:30 hello every body Apr 05 13:07:37 i see this OpenJDK shows intermittent performance and UI issues. We recommend using the Oracle JRE/JDK. Apr 05 13:07:50 when i run android studio Apr 05 13:08:03 you should use the Sun/Oracle JDK Apr 05 13:08:14 why would you use open jdk? Apr 05 13:08:49 android studio is telling you that you're using the wrong thing Apr 05 13:09:29 titanred,my country is blocked from oracle.com Apr 05 13:09:38 what should i do ? Apr 05 13:09:43 dude, you need to get better at proxying Apr 05 13:09:47 ^ Apr 05 13:09:59 "blocked" is very relative Apr 05 13:10:21 Leeds, i am using ubuntu 14.04 i am using tor Apr 05 13:10:52 but i cant configured my terminal to use socks5 Apr 05 13:12:48 does it create problem for me current jdk? Apr 05 13:14:24 java version "1.7.0_95" Apr 05 13:14:25 OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.14.04.2) Apr 05 13:14:25 OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode) Apr 05 13:22:30 hi Apr 05 13:23:41 for those who have received an io16 invitation (not the lottery), do you know if the invitations are transmissible? Apr 05 13:24:19 is there a way to send SIGKILL to my app from adb? Apr 05 13:24:31 i want to simulate crashing without rebuilding Apr 05 13:26:42 thepoosh: kill ? Apr 05 13:26:57 bytefire: i have no permissions to kill my process Apr 05 13:27:30 thepoosh: not rooted then? Apr 05 13:28:06 nope Apr 05 13:28:23 i need to test my fix to releasing camera resources upon crashing Apr 05 13:30:15 thepoosh: shot in dark - is it worth chown the app Apr 05 13:30:23 and then kill Apr 05 13:30:50 chown to same user as adb Apr 05 13:33:54 has anyone else had this issue with gradle? https://bpaste.net/show/6434a77eccc2 Apr 05 13:34:04 i got it after updating android studio yesterday Apr 05 13:34:16 thepoosh: ignore that - chown itself will need permissions Apr 05 13:34:30 i know Apr 05 13:35:08 can't think of a way to send sigkill without SU Apr 05 13:35:50 damm Apr 05 13:36:53 thepoosh, you could make an intent receiver which crashes Apr 05 13:37:04 thepoosh, and send that intent w/ adb Apr 05 13:37:23 thepoosh, if you wanted to go one step further, calling a jni stub that calls 'exit' sure crashes you quick and confuses the hell out of android Apr 05 13:37:47 dragorn: I'm trying to simulate a crash that should not happen in our app pre release to the PS Apr 05 13:37:55 can't modify existing code Apr 05 13:38:02 ah. nope Apr 05 13:38:05 yeah Apr 05 13:38:08 whatevs Apr 05 13:42:19 how about the app starting a thread which calls sigint on itself? will modify some code though Apr 05 13:43:50 thepoosh, something that am kill and am force-stop can't do? Apr 05 13:47:48 why am i getting error messages about maven when my repositories should be using jcenter? https://bpaste.net/show/6434a77eccc2 Apr 05 13:48:12 ubuntu Apr 05 13:52:06 Hi all. Question about code generation. Is it possible to generate some code that must be executed in a lifecycle event of an activity? Apr 05 13:53:08 like I want to create a lib that needs to interact on onActivityResult. But I don't want to override this method in every Activity Apr 05 13:53:53 Do it in one activity Apr 05 13:54:04 And have your other activities extend the one activity that does it Apr 05 13:54:27 I know that solution but I'm wondering if there's another one without extending Apr 05 13:54:41 Why wouldnt you want to extend Apr 05 13:55:36 When trying to load an image from the gallery into an imageview using picasso I print the path that is used in the picasso instance "content://media/external/images/media/9328" does this look correct? Apr 05 13:56:01 because it may not be a requirement to extend my own CustomActivity Apr 05 13:57:06 What do you mean FrancescoV Apr 05 13:59:54 is ubuntu 16 released ? Apr 05 13:59:59 if I have MyCustomActivity in my lib and you use my library with your ActivityA extends MyCustomActivity. There must be a way to execute my code first before of onActivityResult before yours (if you override the method too) Apr 05 14:00:38 If they override the method, they have to call super.onActivityResult() in order for your method to run Apr 05 14:01:44 true, looks like I need to think more about the architecture Apr 05 14:12:10 is it possible to get the fragment transaction tag from a Fragment instance? Apr 05 14:13:15 dragorn: am force-stop closes everything nicely Apr 05 14:13:21 FrancescoV: yes Apr 05 14:13:51 Loigor: can you tell me how? Apr 05 14:15:55 FrancescoV: afaik getActivity().getSupportFragmentManager().findFragmentByTag(....) Apr 05 14:16:46 Loigor: I need something like getTagByFragment(Fragment fragment), the other way ;) Apr 05 14:16:53 indeed Apr 05 14:28:10 Once again, I reach out for help with my onActivityResult method : http://pastebin.com/8JUtVKBh the URL is valid (I think, it's not null atleast) but picasso isn't loading anything into the imageview. I have tried creating a File from the URI and load from that instead too Apr 05 14:31:16 FrancescoV: oh sry.. how about getTag()? Apr 05 14:32:44 hey fellas anyone knows why i get this link in my phone logcat - it is connected to android studio and i was testing an app i am working on ... and then i spoted this blue link Apr 05 14:32:45 http://postimg.org/image/s4z0z22ov/ Apr 05 14:33:02 it is open whisper system ? Apr 05 14:33:03 Bernzel_, did you try a debugger? Apr 05 14:33:25 JanusJanus, it's a link because your terminal or android studio detects that it's a link. you're either running signal/redphone/textsecure, or cyanogenmod. Apr 05 14:33:26 any idea what app uses open whisper ... Apr 05 14:34:08 ahaa ... Apr 05 14:35:19 Zharf: yes. It all seems to be in order from what it tells me. The url is correct, it points to a .jpg image in the external storage and nothing is null Apr 05 14:35:50 Bernzel_, do you have READ_EXTERNAL_STORAGE permission Apr 05 14:36:11 yes Apr 05 14:36:31 are you sure? if you're targeting marshmallow and running marshmallow, you need to ask it explicitly Apr 05 14:37:02 yeah I'm sure "" is included in the manifest Apr 05 14:37:12 but are you running on marshmallow Apr 05 14:37:51 I'm not sure, minSDK is 14 Apr 05 14:38:04 what is your device android version Apr 05 14:38:43 5.0.1 Apr 05 14:40:01 use Picasso.Builder to create a picasso instance and put a Picasso.Listener on it (and/or enable logging) to debug further Apr 05 14:40:05 http://square.github.io/picasso/2.x/picasso/com/squareup/picasso/Picasso.Builder.html Apr 05 14:40:37 I'm off -> Apr 05 14:40:57 Ok thanks! Apr 05 14:49:03 Anyone has an example of a flashable .zip script at hand? One that shows how to edit certain files? I'd like to put together something that will inject lines into audio_effects.conf Apr 05 14:49:23 stanreg: please to be reading channel topic before postings Apr 05 14:49:46 ty. Apr 05 15:00:23 So I am just trying out Dagger now. When can I be assured that the injected dependency is present? Can I start using it in the first line of the constructor? do I need to wait for the constructor to complete? Apr 05 15:01:50 Hello, could you help me to center the button image on these RadioButtons ? https://gist.github.com/wviana/f10f840889987e70460bca0136783a29 http://imgur.com/WHIQCEN Apr 05 15:05:24 hi gang Apr 05 15:18:38 Is there something in selector to decide if an item is the first or last in its container ? Apr 05 15:20:57 Can I use something similar to this: http://pastebin.com/awLv8989 but with data from Uri instead? The image I want to "compress" or reduce in size is coming from the user gallery. Apr 05 15:23:08 well what I'm asking essentially is what's the best way of converting Uri data into bitmap, then the other stuff solves itself Apr 05 15:24:48 what did picasso say Apr 05 15:27:30 Zharf: I simply wrote a method outside of the onActivityResult and called that instead, and it worked... no idea why Apr 05 15:28:17 so I'm done with getting the image onto the screen. Now I'm going to push it to my back end also, and I want to "compress" the size of the image to take up as little space as possible in my cloud storage Apr 05 15:28:38 scale is probably the correct term Apr 05 15:28:55 keeping the aspect ratio of the image though Apr 05 15:32:36 Bernzel_, http://developer.android.com/training/displaying-bitmaps/index.html Apr 05 15:32:49 you can use BitmapFactory.decodeFile, but if the image is large you might want to do some prescaling with bitmapfactory.options Apr 05 15:34:07 Zharf: and create a file from the Uri first? But if I'm not doing anything with the bitmap except scaling it down after it's been created, will it still cause problems? Apr 05 15:36:37 memory is the limiting factor Apr 05 15:37:47 Zharf: I see. Well here's the method: http://pastebin.com/JBfUzKxd So I can really skip that image1_scaled part? And just scale the first Bitmap with .options? Apr 05 15:38:15 Hello, I'm currently developing an application that will work with chromecast however I am having issues making it a multiplayer game. I have got it working for singleplayer but not sure even where to begin to make it work with 2 or more players. Any advice would be great! :) Apr 05 15:38:50 the options lets you load the image as a smaller version, but it won't give you accurate scaling, only powers of two I believe Apr 05 15:39:12 so you'll still want to create a scaled bitmap from it Apr 05 15:40:11 Zharf: Hm okey. Apr 05 15:41:19 http://eclipser.xmms2.org/git/xmms2-android.git/tree/src/org/xmms2/service/misc/CoverArt.java I did something similar here Apr 05 15:45:41 Zharf: Thanks, I'll take a look Apr 05 15:48:26 ah so you use the Math library to determine the width/height of the bitmap? Apr 05 15:52:58 or the "options.inJustDecodeBounds" supposedly will handle the job if I understood it right Zharf ? Apr 05 16:03:40 hello guys Apr 05 16:03:55 i get this error when i run android studio Apr 05 16:06:02 OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0 Apr 05 16:06:02 JDK Required: 'tools.jar' seems to be not in Studio classpath. Apr 05 16:06:02 Please ensure JAVA_HOME points to JDK rather than JRE. Apr 05 16:06:21 what should i do ? Apr 05 16:06:32 what the error tells you Apr 05 16:06:33 distro? Apr 05 16:06:50 ubuntu Apr 05 16:07:07 despite the name, openjdk isn't the jdk Apr 05 16:07:25 install openjdk-8-jdk instead of openjdk-8-jre Apr 05 16:07:35 oh Apr 05 16:10:29 Zharf, thanks realy Apr 05 16:10:46 no problem.. Apr 05 16:10:49 i have installed openjdk8 several minutes ago Apr 05 16:10:55 i was on 7 Apr 05 16:11:14 i get this error yet Apr 05 16:11:15 OpenJDK shows intermittent performance and UI issues. We recommend using the Oracle JRE/JDK. Apr 05 16:12:03 Zharf, what should i do ? Apr 05 16:12:06 so get oracle jdk ? Apr 05 16:12:14 that's not really an error, if you feel like it's slow, then sure, try oracle jdk... Apr 05 16:12:16 are you using linux from today ? Apr 05 16:12:25 no Apr 05 16:12:38 so dont act like windows / mac guy ;) Apr 05 16:12:45 but honestly, I'd increase max memory size in studio.vmoptions Apr 05 16:12:54 (if it's named that, I use idea...) Apr 05 16:13:25 Zharf, it makes problem for me? Apr 05 16:13:45 no, they're almost the same thing, and only android studio whines about openjdk Apr 05 16:13:46 oracle has blocked my country Apr 05 16:13:48 it should work Apr 05 16:14:26 linuxlove, open studio64.vmoptions from studio/bin/ and edit the mxm line Apr 05 16:14:27 we are blocked from developers.android also Apr 05 16:15:15 xmx, not mxm Apr 05 16:15:30 http://eclipser.xmms2.org/idea64.vmoptions here's mine Apr 05 16:15:37 ugh.. sounds like china Apr 05 16:15:39 edit to what ? Apr 05 16:15:59 linuxlove, depends on how much memory you want it to use Apr 05 16:16:04 the more it has, the better it works Apr 05 16:16:12 i have -server Apr 05 16:16:13 -Xms256m Apr 05 16:16:13 -Xmx750m Apr 05 16:16:25 the more it has, the more it wants ! AS is like some greedy capitalist Apr 05 16:16:35 I'd recommend at least -Xmx2048m, but I prefer 4096 Apr 05 16:16:44 (on 8G system memory) Apr 05 16:16:49 i have 4 GB ram Apr 05 16:16:55 on my laptop Apr 05 16:16:55 try 2048 then Apr 05 16:17:00 linuxlove are you using eclipse or AS ? Apr 05 16:17:09 i am on AS Apr 05 16:17:40 g00s, yeah, I told IDEA to stop using so much memory the other day, it ended up eating 800MB more Apr 05 16:17:42 -server Apr 05 16:17:42 -Xms256m Apr 05 16:17:42 -Xmx2048m Apr 05 16:17:57 is it good now? Apr 05 16:18:06 much better at least Apr 05 16:18:12 is eclipse still a thing? Apr 05 16:18:59 g00s, but frankly it's pretty bad with the 750m default Apr 05 16:19:32 Zharf yeah, i have 4G also ... pretty pokey Apr 05 16:19:52 Hoisin is great Apr 05 16:19:59 Zharf, my android studio is freezed on Gradle:resolve dependencies Apr 05 16:20:32 it takes a while... depending on network speeds also Apr 05 16:20:34 i am using socks5 tor proxy on my android studio Apr 05 16:20:57 our country is blocked Apr 05 16:21:24 adq are you pretty good with CoordinatorLayout then ? Apr 05 16:21:42 how long does it take usually ? Apr 05 16:21:56 my intenet speed is 70 KB/s Apr 05 16:21:59 on the first run quite a while Apr 05 16:22:02 it caches the stuff Apr 05 16:22:16 on proxy is 13KB/s Apr 05 16:22:29 unfortunate, but not much you can do about it Apr 05 16:22:30 i am hated from limitations Apr 05 16:22:41 g00s, not really Apr 05 16:22:48 well, i have despite all advice ... but i don't see how this could work Apr 05 16:22:50 just use basic things like fab, bottomsheet Apr 05 16:22:58 linuxlove: where are you located? Apr 05 16:23:03 why US blocks our country Apr 05 16:23:11 i live at Iran Apr 05 16:23:25 politics :E Apr 05 16:23:33 :( Apr 05 16:23:41 taliban just had an app removed the other day ... Apr 05 16:24:09 g00s, what are you attempting? Apr 05 16:24:55 adq actually this works, i just don't understand how. In my fragment, I have the usual View root = inflater.inflate(R.layout.blahblah, container, false); Apr 05 16:25:11 lol i have no clue then Apr 05 16:25:23 they probably iterate the child views inside coordinatorlayout Apr 05 16:25:29 the false there, attachToRoot - i thought prevented the fragment from seeing the attributes on the tag Apr 05 16:25:31 and link scrolling behavior to a view which got this attr Apr 05 16:25:37 Zharf, i opened AS after change in memory it was really fast Apr 05 16:25:37 thanks Apr 05 16:25:52 :) Apr 05 16:26:18 12:19:47 PM Platform and Plugin Updates: The following components are ready to update: SDK Platform Android 6.0, Local Maven repository for Support Libraries, Google Repository Apr 05 16:26:20 naa, i think false is if you don't want to attach it to parent/root view so it will create its own layout Apr 05 16:26:27 instead of being inflated inside its parent/root Apr 05 16:26:57 it's often a mistake because ppl create additional depth of layers because of how inflate works :' Apr 05 16:27:13 if i put true there it just crashes anyhow Apr 05 16:27:18 create its own layout? Apr 05 16:27:38 i bet 90% of customview/customlayout has a useless additional layer Apr 05 16:27:40 the last parameter in inflate tells it to not attach because often you attach later due to the framework Apr 05 16:28:46 linuxlove, you'll have some large downloads ahead of you Apr 05 16:28:48 Zharf adq OK, yeah i was reading https://possiblemobile.com/2013/05/layout-inflation-as-intended/ Apr 05 16:29:28 Zharf, i will have problem if i work with offline gradle? Apr 05 16:29:48 if you have all deps, no Apr 05 16:29:50 Zharf so you are saying even if attachToRoot is false, the framework does this with fragments anyhow at a later time ? Apr 05 16:29:55 linuxlove, not after you download all the stuff you need Apr 05 16:29:58 it should be ok until you lost the cache linuxlove Apr 05 16:30:03 it will be slightly faster too Apr 05 16:30:15 g00s, yeah, it does viewgroup.add(yourView) at some point Apr 05 16:30:27 i dont see anything in progress Apr 05 16:30:45 i just see 5:177/176 Apr 05 16:31:03 i have no hope to finish Apr 05 16:31:05 you'll need to start the download ;) Apr 05 16:32:06 can i download them out of AS and add them to AS? Apr 05 16:32:43 yes linuxlove Apr 05 16:32:45 you can run sdk manager Apr 05 16:32:49 i just see Gradle:Resolve dependencies ........ Apr 05 16:33:00 but then you need to have all module without "online" check and dep Apr 05 16:33:49 i dont need to update because my proxy speed is so slow Apr 05 16:34:03 i just need to get all maduals Apr 05 16:34:16 modules Apr 05 16:34:38 how can i get them external ? Apr 05 16:37:42 i cant use socks in sdk manager Apr 05 16:38:42 linuxlove we can't help much with connectivity issues Apr 05 16:38:52 this is more application development Apr 05 16:39:14 it has some sort of http proxy, but yeah, we don't have much experience with this kind of problems Apr 05 16:39:42 you can try asking in #gradle about caches, local repositories, etc Apr 05 16:40:34 Zharf: about the bitmap size issue. Since these bitmap images will all be displayed and stored with equal width/height , wouldn't it be easier to just "crop" down the bitmap immediately to a predetermined size? That way I wouldn't need to check the size of the raw image data ? Apr 05 16:41:01 g00s, i understand you Apr 05 16:41:01 Zharf, in sdk manager which should i install ? Apr 05 16:41:53 SDK platform for API 23 at least, with your internet connection I'd stay away from the system images Apr 05 16:42:00 http://imgur.com/yd7OJve < any idea on how to present on the right screen to make aware the user he can purchase pack (like on the left)? another card? a random card? a recycler header? a popup (not a fan of popup tbh)? a dedicated tab? something else? Apr 05 16:42:11 documentation is optional but for you it might be nice to have offline Apr 05 16:42:45 linuxlove, you'll also need SDK tools, platform tools and build-tools in the tools section Apr 05 16:42:51 Zharf, really thanks Apr 05 16:43:24 i can connect in AS for sdk manager and download Apr 05 16:43:26 linuxlove, and "local maven repository for support libraries" maybe Apr 05 16:43:40 big problem is Gradle Apr 05 16:44:38 https://blog.jysoftware.com/2015/04/gradle-via-socks5-proxy/ it's in chinese but it has some promising stuff Apr 05 16:46:45 anyone remember the class name of the ViewGroup that actually handled showing the actions / overflow within a ToolBar ? Apr 05 16:46:57 you can use it alone, i can't remember it Apr 05 16:47:09 don't think I've ever encountered it Apr 05 16:48:13 Zharf ah, its ActionMenuView Apr 05 16:49:15 adq what cracks me up about CoordinatorLayout, is how complicated it is to use and create behaviors, but the docs don't even bother trying to explain it Apr 05 16:49:36 thankfully dave smith has a good video on it, like an hour long Apr 05 16:49:58 yeah, I tried using it once but it took me hours to get it working the way I wanted Apr 05 16:50:07 it was simple in the end but man teh documentation sucks Apr 05 16:50:25 well, i did not went beyond that scrolling few things with it, like the toolbar, snap, snackbar, fab, bottomsheet Apr 05 16:50:32 s/that/than/ Apr 05 16:50:47 and yeah, i constantly google for that shit :x Apr 05 16:51:06 found another bug with bottomsheet g00s Apr 05 16:51:13 oh no lol Apr 05 16:51:19 it's with coordinatorlayout, fitwindon and peekheight Apr 05 16:51:34 there was already a ticket (a bit more than one in fact lol) so i just starred it Apr 05 16:51:40 fitwindows* omg Apr 05 16:52:25 I wanted to scroll out a view that was taking one third of the screen when I scrolled a list under it, but there was a spinner in between the view and the recyclerview so I used coordinatorlayout to scroll it until the spinner hit the top Apr 05 16:52:38 it took all day, and it was only to demo it to myself -.- Apr 05 16:53:16 a n d r o i d d e v Apr 05 16:53:18 (booting) Apr 05 16:53:28 i was going to write a behavior that hid the bottom sheet when the user scrolled a recyclerview Apr 05 16:53:31 what's annoying about it though was how the scrolling got kinda sticky when it wasn't scrolling the recyclerview only Apr 05 16:53:56 I guess there's some way around that but didn't feel like figuring it out Apr 05 16:54:10 maybe I will if I ever use coordinatorlayout again :9 Apr 05 16:54:14 :) Apr 05 16:54:32 maybe it's just the "snap" flag for the stickyness Apr 05 16:54:41 Zharf then they update the support lib and all the fancy smancy things break again :D Apr 05 16:54:44 app:layout_scrollFlags="snap" Apr 05 16:54:58 g00s, yeah Apr 05 16:55:10 adq, I'll try that if I still have the test in some branch Apr 05 16:55:14 I'm not sure if I commited it -.- Apr 05 16:55:21 I might've just stashed it too -.- Apr 05 16:55:23 man, after the epic round issues of FAB, we have rectangle problem with bottomsheet Apr 05 16:55:27 idk what is going on but come on Apr 05 16:55:33 it's just a moving rectangle Apr 05 16:55:37 i have 128KB/s on sdk download with proxy Apr 05 16:56:08 i saw flipboard code a bit ealier, they implemented themselves most of the things Apr 05 16:56:15 instead of relying on google libs Apr 05 16:56:23 (for the bottomsheet) Apr 05 16:56:42 hey guys which reference is good for me to start with android Apr 05 16:56:51 i know a little about java Apr 05 16:57:40 linuxlove: Lynda.com , I also suggest https://commonsware.com , and d.android.com Apr 05 16:58:10 linuxlove, d.android.com Apr 05 16:58:46 d.android.com is blocked here Apr 05 17:00:29 ooh I still had the test in some stash Apr 05 17:00:35 maybe I should make this into a proper commit Apr 05 17:00:36 :p Apr 05 17:00:40 I have too many stashes Apr 05 17:02:05 https://commonsware.com/ is not free Apr 05 17:05:10 linuxlove, play with the samples inside the api your target of your sdk repository Apr 05 17:07:07 when i see environment of android studio i feel i am loose in a jungle Apr 05 17:13:54 Hi guys, i want to use PBKDF2WithHmacSHA512 in my android project, is it possible? in java 8 i can do it but not in android, i get this error: NoSuchAlgorithmException: SecretKeyFactory PBKDF2WithHmacSHA512 implementation not found Apr 05 17:15:13 Josh-Spartan, you'll probably gonna have to include SpongyCastle Apr 05 17:15:23 Since a lot of algorithms tend to be missing on devices Apr 05 17:18:21 SpongyCastle great, let me check then :) Apr 05 17:21:11 should i download the core jars, Mavrik?? Apr 05 17:21:52 i found 4 jars, core,prov,pkix and pg Apr 05 17:21:56 "San Francisco Tech Firms See Workers Flee From $4,500 Rents" thats worse than i imagined Apr 05 17:22:10 o.O Apr 05 17:22:24 the highest rent I ever paid was ~350€ Apr 05 17:22:25 that guy was right "the rent is too damn high!" Apr 05 17:22:36 but obviously I've never been to SF Apr 05 17:23:55 Folks, could you get some help on this ? http://stackoverflow.com/questions/36433050/making-custom-radiobutton-with-image-on-center Apr 05 17:33:30 Say a activity has a nested class that implements runnable Apr 05 17:33:42 Then the activity does new Thread( runnable(ResultReceiver) ) Apr 05 17:34:00 Then the activity closes, and the runnable .sends() data with the resultReceiver back to the activity, what would happen? Apr 05 17:34:43 The nested Runnable class is not static Apr 05 17:35:06 You leak the activity. Apr 05 17:35:16 And then the code in the activity executes. Apr 05 17:35:31 Ok, is there a way to check if the activity is still running? Apr 05 17:36:30 Usually that's a wrong question to ask. Apr 05 17:36:42 Hm ok what are you suggestin Apr 05 17:36:44 g Apr 05 17:36:47 Since in most cases it's better to structure your background code to not be dependant on UI Apr 05 17:37:03 The background code is not dependant on the UI, its just trying to give data back to the UI Apr 05 17:37:17 adq, http://eclipser.xmms2.org/device-2016-04-05-203549.mp4 was pretty much my issue Apr 05 17:37:26 but in doing so, now it’s become dependent upon the UI Apr 05 17:37:40 lol Apr 05 17:37:47 lol Apr 05 17:37:49 spring effect Apr 05 17:37:55 *sboing* Apr 05 17:38:04 nah, not that, but the top part doesn't scroll like the recyclrview under Apr 05 17:38:13 I don't know how I got the spring effect :p Apr 05 17:38:34 Mavrik: s73v3r so what is a good way to go about doing a background task and giving data back to the activity? Apr 05 17:38:48 it's hard to demo on a video too but the top part feels sticky, unlike the recyclerview Apr 05 17:39:01 oh i see, you need to be at the top of recyclerviewto get the topbar scrolling down Apr 05 17:39:11 let me screencast Apr 05 17:40:21 if the vid shows the effect you desired instead, i can dump what i used Apr 05 17:40:44 Zharf, https://vid.me/vbsF Apr 05 17:41:16 nah, I want the recyclerview to be at the top before the content above comes down Apr 05 17:41:21 What can I set so that a textview is not there. Apr 05 17:41:36 Visibility Apr 05 17:41:58 drose379, Does the blank item still take up a space? Apr 05 17:42:01 but doing that, the scrolling doesn't get affected by the recyclerview's logic so it feels sticky :) Apr 05 17:42:10 With View.GONE, no Apr 05 17:42:11 I might fight with it some day but for now it's on the shelf Apr 05 17:42:11 damn idk then :| Apr 05 17:42:16 With View.INVISIBLE, yes Apr 05 17:42:18 adq, thanks though Apr 05 17:42:43 honestly, our UI designers don't even know that I could do stuff like that Apr 05 17:42:55 drose379, I don't want it to take up a space. I want it to not be there. Is this possible... so that my list doens't have allot of blank parts. Apr 05 17:42:56 and they probably expect that only the bottom part scrolls and the top stays Apr 05 17:43:10 there must be a way, maybe a painful one with km/miles of code though Apr 05 17:43:15 yeah Apr 05 17:43:21 I'm sure there's a way Apr 05 17:43:21 TinFury: View.GONE does not take up space Apr 05 17:43:36 anyway, time to stop working for today Apr 05 17:43:39 drose379, ok awesome... how do i bring it back? Apr 05 17:43:41 almost 9pm... Apr 05 17:43:45 View.VISIBLE Apr 05 17:43:56 drose379, your the man... thanks Apr 05 17:44:05 Np Apr 05 17:45:33 set it with tvexample.GONE;? Apr 05 17:45:47 tvExample.setVisibility( View.GONE ); Apr 05 17:46:45 ok awesomet thanks Apr 05 17:46:48 Np Apr 05 17:51:02 Seems that making the inner Runnable class static will fix the issue? Apr 05 17:52:38 Hmm so a static inner class, and give context with WeakRefernece Apr 05 17:54:08 Anyone have any idea about these? Apr 05 17:58:20 Does the order of dependencies in my gradle file matter? Apr 05 18:00:02 I dont think so, why>? Apr 05 18:00:39 I am trying out Dagger2 and it is not working as I would expect. Apr 05 18:00:53 Specifically some of the code generation is not working Apr 05 18:14:33 Anyone used WeakReference before? Apr 05 18:14:49 yes. it was amazing Apr 05 18:15:04 like someone shot universe straight into my brain Apr 05 18:15:08 You available for a quick Q&A Ashiren Apr 05 18:15:27 i try Apr 05 18:15:29 Ok Apr 05 18:15:39 So I have a static inner class in an Actiivty Apr 05 18:15:47 It is a runnable Apr 05 18:15:55 I want to pass data from the runnable back to the Activity Apr 05 18:16:07 But I need to avoid memory leak Apr 05 18:16:29 So, by passing weak reference of the Activity to the Runnable, and using WeakReference.get().callback, would that avoid the leak Apr 05 18:16:42 i.e: if the activity closes, WeakReference#get will be null? Apr 05 18:17:08 yes Apr 05 18:17:20 just check if weakreference.get() is null onPostExecute Apr 05 18:17:29 Perfect Apr 05 18:18:00 But, weakreference wont be null immediately after the activity closes, only when the GC gets it, right... So what if the activity closes and the GC hasent gotten around to it yet Apr 05 18:19:17 i believe it depends on java implementation Apr 05 18:19:24 it may vary for different android version. let me check Apr 05 18:19:42 Cool, let me know where you are checking so I can check next time Apr 05 18:20:12 https://stackoverflow.com/questions/16721497/when-does-weakreferenceget-start-returning-null Apr 05 18:20:19 Sweet Apr 05 18:20:21 Thanks Apr 05 18:20:24 android 3+ - immediately Apr 05 18:20:26 I got another question Ashiren Apr 05 18:20:30 Related Apr 05 18:21:07 Say I didnt use the WeakReference, and I just passed in the activity, and for callback I called a method on the activity from the actiivty instance I passed in Apr 05 18:21:17 What would happen if I tried to do that after the activity had closed Apr 05 18:21:23 A memory leak? Apr 05 18:22:31 could be. it will be referenced until the Runnable finishes Apr 05 18:23:00 But we dont want to call the method in the actiivty if it is closed do we Apr 05 18:23:03 it may lead to some IllegalStateException if you do something nasty after onDestroy Apr 05 18:23:32 So what causes the memory leak Apr 05 18:24:42 you have reference to activity in the runnable or implicitly in that callback right? Apr 05 18:25:13 Right now, the callback is a static inner class in the activity, and I am passing it a ResultReceiver which I am creating in the activity Apr 05 18:25:19 for me its still memory leak if activity cant be GCed after being destroyed, even if it short-timed Apr 05 18:25:40 So the activity wont be GCd if it closes while the runnable is still running? Apr 05 18:26:05 Because the runnable holds reference to the ResultReceiver, which is part of the activity Apr 05 18:26:09 you said the callback calls the method of activity :? Apr 05 18:26:28 Gradle sync failed: Could not run build action using Gradle installation '/home/mohammad/Downloads/android-studio/gradle/gradle-2.8'. Apr 05 18:26:29 Consult IDE log for more details (Help | Show Log) Apr 05 18:26:35 Oh, ive been messing with it so I've had it set up a few dif ways Ashiren Apr 05 18:26:53 Calling ResultReceiver and calling a mehtod in the actiivty is the same idea though right Apr 05 18:26:58 hmm i never used ResultReceiver Apr 05 18:27:07 is it for connection? Apr 05 18:27:15 Me? Apr 05 18:27:16 No Apr 05 18:27:24 Consult IDE log for more details (Help | Show Log) Apr 05 18:27:28 Oh Apr 05 18:27:28 Consult IDE log for more details (Help | Show Log) Apr 05 18:31:00 Gradle sync failed: Could not run build action using Gradle installation '/home/mohammad/Downloads/android-studio/gradle/gradle-2.8'. Apr 05 18:31:00 Consult IDE log for more details (Help | Show Log) Apr 05 18:31:17 huh Apr 05 18:35:15 linuxlove we can't help your connectivity issues from iran Apr 05 18:35:46 linuxlove, run gradle assembleDebug from command line or gist the logs ;) Apr 05 18:36:54 g00s, you seem angry Apr 05 18:37:13 linuxlove no, but you are spamming the channel with something we have no control over Apr 05 18:37:33 you are going to face problems with just about everything, that we can't explain Apr 05 18:37:40 not just blocked d.android.com Apr 05 18:37:57 g00s, i just said is problem for connectivity or other issues Apr 05 18:38:08 and there is nobody from google here either Apr 05 18:38:37 g00s, be patient please Apr 05 18:38:53 i apologize from you Apr 05 18:39:41 every body excuse me if i was in trolling Apr 05 18:39:42 linuxlove maybe try a VPN if thats possible Apr 05 18:40:23 g00s, my just tool as moment is tor Apr 05 18:40:41 i try to solve my problem about connectivity Apr 05 18:51:23 hello all. I am trying to figure out where I can start. I need to utilize the phone's camera and create a live stream. I have an api that does some processing on the video. I want to do processing on the video in realtime. so as the phone streams from the camera live, the api will process the video and give me my results. What should I look at to do this? Apr 05 18:51:53 Does Android have a video player activity builtin if I just want to play full screen video? Apr 05 18:58:42 I don't think so, use the VideoView class and set it as the activity's view? Apr 05 19:01:43 yes, it's photos or gallery by default Apr 05 19:08:00 hello Apr 05 19:08:05 guys Apr 05 19:08:16 hello linuxlove Apr 05 19:08:31 you may speak freely here Apr 05 19:08:54 i have a website i need to create an app for android that connect to my website Apr 05 19:09:24 this app include an map just and the map has several cities inside that Apr 05 19:09:39 i have not had any experience with android Apr 05 19:09:53 but i know a little about java Apr 05 19:10:02 how can i start ? Apr 05 19:10:14 hello bytefire Apr 05 19:10:43 Start with some tutorials Apr 05 19:10:48 android have a developer website Apr 05 19:10:51 But you should prob know more then just a little about java really Apr 05 19:11:18 they are very good - https://developer.android.com/training/index.html Apr 05 19:11:23 who has a good reference or tutorial for me Apr 05 19:12:21 how long does it take for me to create a app that i said Apr 05 19:12:39 a little about java isn't enough Apr 05 19:12:41 that link above should be a good starting point. if you have any questions you can search online or ask here Apr 05 19:12:43 a few months to create Apr 05 19:13:15 know a little about = know nothing Apr 05 19:13:20 linuxlove: it depends how much you already understand Apr 05 19:13:33 and how much committed you are Apr 05 19:13:35 pfn, i just need to connect parts in app to website Apr 05 19:13:44 control is from website Apr 05 19:13:54 programming isn't connect-the-dots Apr 05 19:13:55 i created website myself Apr 05 19:14:09 i am a web developer Apr 05 19:14:09 linuxlove: is it a web service? Apr 05 19:14:23 bytefire, not exactly Apr 05 19:14:43 control of app is in website Apr 05 19:15:11 as nowadays many peoples use android phone Apr 05 19:15:21 linuxlove: you can make a mobile webiste as well. is there particular reason for native android app? Apr 05 19:15:41 i need to create an app for android Apr 05 19:15:54 i live in Iran Apr 05 19:16:24 here people that use from mobiles dont have a fast internet Apr 05 19:16:53 i need to create this app to work for minimum speed of internet Apr 05 19:17:08 i have some problems Apr 05 19:17:30 but thanks guys for introduce me to some references Apr 05 19:17:47 i need to start soon Apr 05 19:17:59 Is there a way to make AsyncTask's doInBackground require exactly one argument? Apr 05 19:18:21 just a question Apr 05 19:18:33 about knowledge of java Apr 05 19:18:49 which level does it require? Apr 05 19:18:56 expert Apr 05 19:19:31 pfn, do you mean i improve my skills in java right now? Apr 05 19:19:56 linuxlove: that's not true Apr 05 19:20:03 you dont need to be experrt in java Apr 05 19:20:06 what is point then Apr 05 19:20:15 basic knowledge is enough Apr 05 19:20:19 yes, you need to be an expert in java to produce anything of any value Apr 05 19:20:21 pfn said expert Apr 05 19:20:28 you can produce garbage with anything less Apr 05 19:20:42 just stay committed Apr 05 19:21:00 if you have any questions search online or ask here Apr 05 19:21:13 i know about classes and many basic content of java Apr 05 19:21:24 that's good enough Apr 05 19:21:28 i used from servlet faces in java for web Apr 05 19:21:43 perfect Apr 05 19:22:03 but i never created an program in java Apr 05 19:22:04 if you do come across something new, then just read a tutorial or two Apr 05 19:22:40 just i created some threads and loops and so on Apr 05 19:24:26 bytefire, did you know so much about java when you started android developing? Apr 05 19:25:13 linuxlove: i had done much less java than you when i started working for a big tech company as a senior java developer Apr 05 19:25:42 refactoring an app and i've just found my self back in 2002 Apr 05 19:25:47 it doesn't matter how much you know - as long as you have patience to learn new concepts while working on a project Apr 05 19:25:55 "had never created a java program" -> "started working as a senior java developer" Apr 05 19:25:57 sounds like bullshit Apr 05 19:26:11 pfn: its true Apr 05 19:26:28 not never created an app- but very little java experience Apr 05 19:26:46 not much of a senior developer, sounds like a bullshit title Apr 05 19:27:11 pfn: you can have your opinion Apr 05 19:27:14 pfn, you are insist on to be expert in java Apr 05 19:28:06 pfn, learning during the project is so useful Apr 05 19:28:24 3 tiers, lots of pojos, some factories, dao Apr 05 19:28:50 at least it's "some factories", not "lots of factories" Apr 05 19:29:22 dao! damn that's a failure from 2002 Apr 05 19:30:32 even in 2002 ORMs existed but somehow people still used DAOs Apr 05 19:30:41 hello all. I am trying to figure out where I can start. I need to utilize the phone's camera and create a live stream. I have an api that does some processing on the video. I want to do processing on the video in realtime. so as the phone streams from the camera live, the api will process the video and give me my results. What should I look at to do this? Apr 05 19:30:52 is eclipse supported for android? Apr 05 19:31:06 i think it is Apr 05 19:31:10 no Apr 05 19:31:11 well, it's orm dao, not hand generated Apr 05 19:31:14 it is not Apr 05 19:31:18 Anybody ever got a NumberFormatException on a String.length() ? Apr 05 19:31:25 pfn, it was? Apr 05 19:31:26 no Apr 05 19:31:32 lol Apr 05 19:31:41 pfn is on rampage today Apr 05 19:31:46 but still dao, which maybe a failure or not, depending on who use it Apr 05 19:32:41 eclipse is an IDE, it doesnt matter what ide you use Apr 05 19:33:01 linuxlove: that adnroid developer link should guide you through setting up development environment Apr 05 19:33:08 android** Apr 05 19:34:03 Anybody ever got a NumberFormatException on a String.length() ? Apr 05 19:34:17 no Apr 05 19:34:40 cart_man: strange. howdid you get it? Apr 05 19:34:52 wat Apr 05 19:34:57 he didn't Apr 05 19:35:00 he's smoking crack Apr 05 19:35:05 :) Apr 05 19:35:09 probably something wrapping the string len Apr 05 19:35:24 null is not a number Apr 05 19:36:00 . //i4.mirror.co.uk/incoming/article1747291.ece/ALTERNATES/s615/%C2%A3%C2%A3%C2%A3-Asdas%20pie%20taster%20Emma%20Ainley.jpg', Apr 05 19:37:03 sig Apr 05 19:37:03 .. java.lang.NumberFormatException: Invalid int: "//i4.mirror.co.uk/incoming/article1747291.ece/ALTERNATES/s615/%C2%A3%C2%A3%C2%A3-Asdas%20pie%20taster%20Emma%20Ainley.jpg',`file" Apr 05 19:37:24 adq: What do you mean "Something wrapping the string len ? Apr 05 19:37:25 bitkiller: iirc DAOs used to be objects whose properties had one-to-one mapping with relation DB tables Apr 05 19:37:40 cart_man, pastebin full exception Apr 05 19:37:59 bytefire, thanks Apr 05 19:38:14 i was so traumatised by daos that my memory might wrong Apr 05 19:39:14 who has worked with android studio on linux platform so far ? Apr 05 19:40:04 Zharf: Exception inside a Thread soo I just have a print() -> http://pastebin.com/A2f8LPNG Apr 05 19:40:14 those are the transfer objects. daos abstract the operations (including the mapping) Apr 05 19:40:37 so fix your invalid int Apr 05 19:41:06 pfn: I am not sure what is invalid .... int x = StringVarName.length() ... Apr 05 19:43:44 cart_man: sure the exception is coming from same thread as StringVarName.length()? Apr 05 19:44:06 bitkiller: ah okay Apr 05 19:44:32 i remember ORMs taking care of all that Apr 05 19:46:19 Does anyone know what this Note with dagger2 means? "Prefer to run the dagger processor over that class instead." Apr 05 19:47:45 first part of the message is "Generating a MembersInjector or Factory for " Apr 05 19:49:08 bytefire: Actually I see now that it is trying to get the length of the wrong string... Even though I am not asking it to get the length of that specific string ..WTF? Apr 05 19:49:32 Anyone good with Chromecast development? Apr 05 19:52:10 i released my first android app... cant seem to find where you can see your downloads report in the google play developer console though... any ideas? Apr 05 19:55:00 sirchopsalot, under statistics? it takes a day or few to update Apr 05 19:55:01 sirchopsalot, you need to wait like 24 to 48 hours after the first day you released it Apr 05 19:55:27 then it's every 24 hours Apr 05 20:06:37 found it, thanks guys Apr 05 20:17:37 Hey all Apr 05 20:27:25 I don't understand why one of my modules wouldn't be getting built when I generate my DaggerApplicationComponent... It builds all of them but the one, and I don't seem to get any errors about the module compiling... Apr 05 20:27:59 but none of the ProvideXFactory classes for that module can be found... Apr 05 20:57:28 If I pass a new Item() into a Runnable constructor, is that new item attached to the Actiivty thread (Called from)? Apr 05 21:00:30 what? Apr 05 21:01:05 drose379: runnable is an interface, it does not have a constructor Apr 05 21:02:26 drose379: I don't know what you mean by activity thread, or Item() Apr 05 21:02:37 Maurits-: I create a class that implements Runnable Apr 05 21:02:42 Pass an item to it Apr 05 21:02:44 Run it Apr 05 21:02:50 new Item() was just an example Apr 05 21:03:20 'implements runnable' just means 'conforms to the interface Runnable' Apr 05 21:03:26 ie, has a method called run() Apr 05 21:03:33 Yes, and it has a constructor... Apr 05 21:04:43 what do you think 'implements Runnable' lets you accomplish? Apr 05 21:04:52 I think you missed the question Apr 05 21:05:12 you missed my question Apr 05 21:05:26 What was it Apr 05 21:05:38 what? Apr 05 21:05:51 I have a Activity, with a nested Runnable class Apr 05 21:06:00 I need to pass X to the Runnable Apr 05 21:06:13 If I do new MyRunnable( new X() ) Apr 05 21:06:35 Is that X object stored in the Activity (Does it need to be stored as a WeakReference in the Runnable, to avoid leaks) Apr 05 21:07:36 Does that make sense? Apr 05 21:07:37 if it stored a reference to the activity, you might run into leaks, but not the other way Apr 05 21:07:58 How can I tell if it is stored in the activity Apr 05 21:08:15 and if it's not a non-static inner class of the activity and you don't explicitly give it a reference to the activity, then it doesn't hold it Apr 05 21:08:17 I would think the new MyRunnable( new X() ), the X would not be stored in the activity Apr 05 21:08:33 it depends what you do with it in the constructor Apr 05 21:08:37 it does, if X is a non-static inner class of the activity Apr 05 21:08:54 No X is not the Runnable Apr 05 21:09:00 I am passing X to the runnable Apr 05 21:09:02 that's not what I said Apr 05 21:09:04 Which is a static inner class Apr 05 21:10:00 Basically does X have to be stored as a weakreference in the runnable? Apr 05 21:11:27 Maurits-: what did you mean about how it depedns what I do in the consturcotr Apr 05 21:11:46 if you, in your constructor for MyRunnable, store it in MyRunnable Apr 05 21:11:54 then it's stored in MyRunnable Apr 05 21:12:00 And not in the activity at all? Apr 05 21:12:01 ie, if you do Apr 05 21:12:33 public MyRunnable(X x) { this.mX = x; } Apr 05 21:12:42 Right Apr 05 21:12:52 And in the activity, new MyRunnable( new X() ) Apr 05 21:12:56 Correct? Apr 05 21:13:14 yes, but I'm not at all convinced you actually want a runnable here Apr 05 21:13:27 I just need to do a quick background task Apr 05 21:13:30 yes Apr 05 21:13:34 runnable doesn't give you that Apr 05 21:13:47 It does Apr 05 21:13:50 no, it doesn't Apr 05 21:13:56 but if you want to think it does, that's fine Apr 05 21:14:06 new Thread( new MyRunnable() ) Apr 05 21:14:09 Runs on a background thread Apr 05 21:14:12 S' all I want Apr 05 21:14:20 yes, but that's not Runnable, that's Thread Apr 05 21:14:37 Ok but I dont think that really changes my question Apr 05 21:14:39 Does it? Apr 05 21:15:11 well, it helps your question make sense Apr 05 21:15:16 True, ok Apr 05 21:15:19 not really, but you're thinking it the way around Apr 05 21:15:29 wrong way* Apr 05 21:15:30 What do you mean Apr 05 21:15:58 you leak an activity, you'll need to hold a reference to it somewhere that's alive longer than the activity Apr 05 21:16:01 er Apr 05 21:16:04 s/you/to/ Apr 05 21:16:12 Yes Apr 05 21:16:31 but you were asking if the activity was holding a reference to X Apr 05 21:16:36 Yep Apr 05 21:16:42 I am passing the X into the thread Apr 05 21:16:52 what you want to ask if X is holding a reference to the activity Apr 05 21:17:02 Hmm really Apr 05 21:17:13 Ok, I see Apr 05 21:17:22 because then it would be possible for the reference to the activity to be alive after thee activity is destroyed Apr 05 21:17:48 but the only way that happens if you pass the activity reference to it, or if it's a non-static inner class in which case the reference is implicit Apr 05 21:17:58 I am worried about the activity not being picked up by the garbage collecter because X is still being used in the runnable, and the activity holds ref to X Apr 05 21:18:22 you mean X holds ref to activity Apr 05 21:18:34 Right Apr 05 21:19:05 If X held reference to the activity, I would have to store it in the runnable as WeakReference Apr 05 21:19:24 But since it doesnt, I dont have to Apr 05 21:19:35 Sound right? Apr 05 21:19:54 eeyup Apr 05 21:20:03 Sweet Apr 05 21:20:09 Thanks guys Apr 05 21:20:12 keep in mind anonymous class would hold implicit reference Apr 05 21:20:30 Right, avoiding that Apr 05 21:20:41 Now what if I did this Apr 05 21:20:45 X myX = new X(); Apr 05 21:20:53 new MyRunnable( myX ); Apr 05 21:20:57 that's still fine Apr 05 21:21:05 it's just two things holding reference to X Apr 05 21:21:07 Wouldnt myX store reference to the activity Apr 05 21:21:13 no Apr 05 21:21:16 How? Apr 05 21:21:33 fields don't implicitly hold reference to the object that holds reference to them Apr 05 21:21:51 unless they're anon class or non-static classes Apr 05 21:21:51 Ohh, cool Apr 05 21:21:56 Interesting Apr 05 21:22:00 Sweet Apr 05 21:22:07 So no leaks here Apr 05 21:22:14 no, just two references to X Apr 05 21:22:18 Sweet Apr 05 21:22:37 Thanks guys Apr 05 21:25:19 bbl Apr 05 21:27:07 Wait, if I do X myX = new X(), doesnt that get stored in the Activity memory? Apr 05 21:28:29 its just some variable Apr 05 21:28:33 Oh but I dont really care about that, all I care about is if anything references the activity Apr 05 21:29:00 Right? Apr 05 21:30:08 eeyup Apr 05 21:30:23 Ok, now lets say I passed "this" into the runnable Apr 05 21:30:33 "this" being the activity Apr 05 21:30:42 That, references the activity doesnt it Apr 05 21:31:19 youre asking too many java general questions Apr 05 21:31:24 and yes, of course Apr 05 21:31:39 So that would have to be stored in a WeakReference inside the runnable Apr 05 21:31:50 Sorry, just trying to make sure I have my facts straight Apr 05 21:32:07 yes Apr 05 21:32:21 Awesome, ok I understand Apr 05 21:32:24 Thanks Apr 05 21:37:05 IS there something I can click to show what consturctor is expected? Apr 05 21:39:05 Hi guys im working with AES encryption but for some reason its not working with 512 only 256, this is my code, any tips or ideas, im using spongycastle http://pastebin.com/YygsFw4j Apr 05 21:39:56 AES has 128, 192 or 256 bit keys Apr 05 21:39:58 if i change in the code SHA512Digest for SHA256Digest and 512 for 256 it works Apr 05 21:41:31 is there a way to make it work with 512 Apr 05 21:41:34 ? Apr 05 21:41:55 no. AES was designed like this Apr 05 21:42:44 damn, well, thanx Ashiren Apr 05 22:15:30 A more complete answer is that there are 512-bit codes, but they're not AES? Apr 05 22:16:15 And AFAIK, there's no proof that applying 2 layers each with unrelated keys, is significantly better than just one layer of AES. Apr 05 22:54:14 is there any improvement in speed when drawing disparate lines by going in order ie... (0,1,10,1) (10,1,10,10) or does it not matter? Apr 05 22:57:23 shouldn't matter, unless you can draw less with some order Apr 05 22:58:31 is there something built in that I should be using to format time into Seconds?? I want to take milis and convert only if I need to... I guess it's simple enough to do myself but I'm wondering if there's already something built in that does this Apr 05 22:58:57 Date Apr 05 22:59:10 it's not a date though Apr 05 22:59:20 just a duration Apr 05 22:59:41 but I guess if I ignore the days and so on SimpleDateFormat should work? Apr 05 22:59:47 jodatime has Period Apr 05 23:00:07 also want it to show just ms if it's < 1 second Apr 05 23:00:41 i guess maybe I can just show seconds ... idk if it's a big deal Apr 05 23:00:41 you can do TimeUnit.MILLISECONDS.toMinutes() Apr 05 23:02:03 interesting... returns a long though Apr 05 23:02:22 maybe just seconds the way I have it is fine... i have like X.XX seconds Apr 05 23:02:39 so if it takes like 2.83 seconds I can see that Apr 05 23:02:57 but if it takes 50 ms I'd rather see 50ms Apr 05 23:05:36 you can just convert the long to an int if you are sure you won't lose precision Apr 05 23:05:49 well, if you're sure it's under 2^31 i mean Apr 05 23:06:31 then just put it in a check to only convert > 1000 ms Apr 05 23:21:11 anyone know where the emulator settings are for the android auto app? the new version doesnt seem to have them where they used to be.. Apr 05 23:22:41 i settings i can only see accepted and rejected cars and a toggle for adding new cars when i connect the device (which is on) Apr 05 23:34:02 found it - in newer versions of the app you need to tap the 'Android Auto' title bar a few times similar to enabling developer mode on the device. Apr 05 23:36:14 http://developer.android.com/about/dashboards/index.html --- marshmallow on 4.6% Apr 05 23:36:26 froyo, hanging on for dear life ! Apr 05 23:37:16 was hoping kitkat would have gotten smaller Apr 05 23:45:14 anyone know off the top of their head if it's possible to copy a vcard file when the send intent filter for "text/*" is implemented? Apr 05 23:49:46 dsardari: no idea Apr 05 23:50:01 depends how you are trying to send it Apr 05 23:51:19 sorry, i mean when you are implementing and intent filter with "" on an activity Apr 05 23:51:37 ah Apr 05 23:59:35 looks like: https://android.googlesource.com/platform/packages/apps/Contacts/+/2b3f3c54d3beb017b2f59f19e9ce0ecc3e039dbc/src/com/android/contacts/vcard/ImportVCardActivity.java might be what I need if anyone else was interested. Apr 05 23:59:39 hey guys I have a question I started programming in android again. I was wondering about the edit Text. I noticed that some text field when I click it, the text in there goes off the line and transitions above the text field. How can I do that? I am on jelly bean Apr 06 00:00:25 thnx Apr 06 00:00:40 Demon_Jester: I think you're referring to the TextInputLayout? Apr 06 00:01:01 ok I will look into it Apr 06 00:29:03 s73v3r: was it you who reccomended creating a Repository object to handle retrofit calls? Apr 06 00:29:41 no, that would be more for just handling data Apr 06 00:29:55 OK Apr 06 00:29:56 you can connect it to retrofit, but you might be better off having a separate API class Apr 06 00:31:18 Basically I have a Repository object and I can call getX( a,b,c ), and that uses retrofit to make a request and send the response to a callback Apr 06 00:33:44 that should be fine Apr 06 00:34:09 So for each method, I pass a callback Apr 06 00:34:32 basically I defined a Callback interface, and do repo.getX( new Callback() {} ) Apr 06 00:34:51 But that callback anon class keeps reference to the activity its being called from doesnt it Apr 06 00:37:00 Thinking of using EventBus instead of passing a Callback anon class Apr 06 00:38:07 ok Apr 06 00:38:14 let us know how you go with that Apr 06 00:38:31 ? Apr 06 00:39:33 "Thinking of using EventBus instead of passing a Callback anon class" Apr 06 00:40:28 Yes Apr 06 01:02:40 hello! Apr 06 01:02:56 I have problem with vs android emulator I can't launch it Apr 06 01:03:14 I messed up something badly Apr 06 01:27:18 queue overflowed? https://i.stack.imgur.com/MmKiZ.png Apr 06 01:37:00 kus press 'OK' :D Apr 06 01:37:31 I did Apr 06 01:37:42 does this happen often? Apr 06 01:38:50 Hey guys, I have my app that scans for wifi, if I wanted to scan for specific brand wifis (by doing mac comparison) is that possible? Apr 06 02:07:43 Man I'm having so much problems with timefragment. Apr 06 02:07:56 I can get it to work but I can't get the hour and min passed back to the calling class. Apr 06 02:17:05 Anyone awake? I got DC Apr 06 02:24:43 I want to create a size-optimized Android application, but the default project generated by Android Studio is somewhat large. Are there any other ways to generate a minimal project? Apr 06 02:25:22 aaearon: What do you mean by "size"? The size of the APK file? Apr 06 02:25:29 aatish910: Proguard will minify your project and get rid of classes that arent used. Apr 06 02:25:30 I mean aatish910 Apr 06 02:26:47 or screen size? Apr 06 02:26:54 loke, yes Apr 06 02:27:03 aatish910: How big is too big? Apr 06 02:27:45 loke, greater than a MB. Default project created using Eclipse used to be in KBs. Apr 06 02:28:10 aatish910: The majority of space used is usually by the resources. Apr 06 02:28:27 aatish910: A default AS project comes with very high resolution application icon for example Apr 06 02:28:58 I just tested a small project of mine where I have added prctically no extra stuff, and it gives me 2.5 of resources. Apr 06 02:29:31 Yeah, it's the hdpi icons Apr 06 02:30:57 loke, maybe removing them will work for me Apr 06 02:32:15 is there a particular reason you're so bothered about trivial size? Apr 06 02:34:01 some people prefer very small apps Apr 06 02:34:18 especially on a particular use case I am targeting Apr 06 02:36:17 aatish910: You can reduce their resolution to mdpi. Apr 06 02:36:36 aatish910: It'll work. It'll look like shit on higher end devices, but if size is so impoertant, then they won't care. Apr 06 02:37:23 Also, use Proguard like orbyt_ said. Apr 06 02:38:01 aatish910 you might like this http://blog.jimbaca.com/2016/04/04/smaller-apks-with-classy-shark/ Apr 06 02:39:33 Hey guys I know I am doing something wrong, but I am trying to filter my wifi scan to certain bssid(mac address), and I keep getting null error, here is pastie http://pastie.org/10786972 Apr 06 02:39:45 g00s, that seems useful. Thanks Apr 06 02:41:36 Demon_Jester: So wifiScanList contains a null element. Apr 06 02:43:21 loke, is it because the other bssid that don't contain part of the string is being nulled? Apr 06 02:43:43 is there a straightforward way to tell when the keyboard is visible? I have a little custom toolbar that I want to show when the keyboard is visible that will go right above it Apr 06 02:43:44 Demon_Jester: BSSID is in upper case. I'd assume that's a static class member. Apr 06 02:44:14 loke, is displays in lowercase in list view, so should I put it uppercase in my string then? Apr 06 02:44:17 If not, then the designed of the API should be shot. Apr 06 02:44:43 Let me check the apidocs Apr 06 02:45:18 Oh dear... It's a normal member, even though it's in upper case. The developer at Google clearly needs to be shot. Apr 06 02:46:02 In that case, that think should never be able to throw NPE. Unless the exception is actually in a different part of the code. Apr 06 02:46:06 loke, is there a way I can have it check regardless if its upper or not? like diuck.ignoreupper or something like that Apr 06 02:46:47 loke, the null is in the onReceive (what I pasted in pastie) Apr 06 02:46:47 Demon_Jester: have you tried setting a breakpoint? Apr 06 02:47:33 also, as a personal preference if you use the ScanResult more than once I'd store it in a variable rather than call get multiple times Apr 06 02:47:37 Demon_Jester: there must be more to it. I'd need the full stackl trace. Apr 06 02:47:54 loke, ok I will paste the whole thing. Apr 06 02:48:33 yeah i'm assuming it's not throwing where you pasted Apr 06 02:48:36 but idk Apr 06 02:49:10 loke, here you go http://pastie.org/10786978 Apr 06 02:50:21 looks more to do with your adapter maybe? Apr 06 02:51:00 grekkos, I am still new to reading logcat, so I am sure it is, if I remove the if statement there is no problem. Apr 06 02:51:27 I forget off the top of my head how it works but it looks like you haven't actually added anything to the adapter Apr 06 02:51:38 oh that's what the wifis is Apr 06 02:52:10 oh Apr 06 02:52:11 i see Apr 06 02:52:29 Demon_Jester: you create an array the size if your list, but then you won't add anything if your filter isn't matched so you have an array of null objects Apr 06 02:52:55 Demon_Jester: and actually even if you did add something you still have a bunch of null elements slotted before or after it Apr 06 02:53:07 grekkos, I had a feeling, idk if I made it clear, but earlier i asked the list of bssid that don't match would that cause it to null? Apr 06 02:54:07 grekkos, what should I do for the null? convert to whitespace in listview? seems kind of cheap way if that works. Apr 06 02:54:17 Demon_Jester: use a list instead of an array Apr 06 02:54:32 on wifis make it as a list instead of array? Apr 06 02:54:40 yeah Apr 06 02:54:50 then you can do `.toArray()` on that list to get an array if you need one Apr 06 02:55:13 actually Apr 06 02:55:25 you don't need an array because ArrayAdapter also accepts a List in the constructor Apr 06 02:55:54 In general you should prefer Lists to arrays because they can do more for you and less of a headache to deal with... unless you absolutely need an array or it makes sense Apr 06 02:56:50 grekkos, I don't think I would need it, I was following tutorial on wifi scanning, and tried to modify it to filter certain mac addresses Apr 06 02:59:20 I'm looking for some documentation on doing custom Event listeners... any sources I can look at? **** ENDING LOGGING AT Wed Apr 06 02:59:58 2016