**** BEGIN LOGGING AT Tue Aug 23 02:59:58 2016 Aug 23 03:36:46 hi Aug 23 03:37:59 Volley isn't sending to my server. http://localhost:3000/api - Followed this guide: https://developer.android.com/training/volley/simple.html - com.android.volleyNoConnectionError ECONNREFUSED Aug 23 03:38:12 How do I allow it to send to my server? Aug 23 03:42:44 is 'localhost' really what you want ? Aug 23 03:43:18 are the api 24 sources supposed to be in the sdk manager ? Aug 23 03:43:28 * g00s confused Aug 23 03:55:15 bankai_: During testing yes, during production I'll end up setting it up as a constant set by gradle rather than a string constant in the code Aug 23 03:56:08 g00s: Yeah not yet, I'm waiting for them also, use API 23 in the meantime if you want easy debugging Aug 23 03:56:27 * AlecTaylor even tried cloning the entire Android platform, but the sources didn't sync through Aug 23 04:02:51 isn't 10.0.2.2 what you want? Aug 23 04:06:14 When you get close to a Pokestop, you can spin it around and get Pokeballs Aug 23 04:06:21 I did not know that Aug 23 04:08:11 hello! anyone got upgrade to 7.0 yet ? Aug 23 04:08:27 Ologn: I got pokestop at home Aug 23 04:09:17 my carrier blocks OTA :( i won't get it for a month Aug 23 04:10:43 gordon_, what luck! Aug 23 04:18:32 * gordon_ is feeling superior Aug 23 04:18:50 but it's get boring around level 18 / 1 9 Aug 23 04:19:01 and I dont feel like paying for boosts :D Aug 23 04:19:26 hope they will change the gameplay to more fighting and closer to original pokemon game Aug 23 04:25:06 amazing that pokemon go game - one of the most downloaded games ever, and the hype only lasted like 1-2 weeks Aug 23 04:37:09 g00s: whats funny is before pokemon go came out i was working on something i was calling "pixel pets" which was very very similar Aug 23 04:39:43 orbyt_ i haven't played the game, but heard that while its fun, the impl is kinda mediocre Aug 23 04:39:52 having played it either lol Aug 23 04:40:04 orbyt_ maybe pixel pets will be a hit with VR/AR /tango Aug 23 04:40:59 Mine actually wasnt AR based Aug 23 04:41:15 nobody uses AR feature Aug 23 04:41:20 it's lagging like crazy Aug 23 04:41:32 well the reason it was popular was ofc the pokemon brand Aug 23 04:41:34 but I forgot.. unity :D Aug 23 04:41:39 minus that, its nothing special Aug 23 04:47:49 hi Aug 23 04:51:33 hi Aug 23 04:51:38 hi Aug 23 04:51:42 what's news? Aug 23 05:01:40 thepoosh lol, waiting for api 24 source code :/ Aug 23 05:01:51 thought at least that would pop up in sdk manager Aug 23 05:01:57 did they not push it yet? Aug 23 05:02:12 maybe its in AOSP github repo Aug 23 05:22:51 <_genuser_> hello people. Aug 23 05:23:18 <_genuser_> is it typical for you guys to see build times of 5-10 minutes on barebones projects in AS? Aug 23 05:23:29 <_genuser_> I'm wondering why it's that slow. I just upgraded the RAM to 16GB. Aug 23 05:32:01 take a look at this: https://medium.com/@101/speed-up-gradle-build-in-android-studio-80a5f74ac9ed#.3qart0kk2 Aug 23 05:35:00 if you're on windows some virus scanners can be killers Aug 23 05:36:33 literally everyone knows windows is a spyware for the us govt Aug 23 05:36:40 we need to move to linux Aug 23 05:37:24 coz linux is perfect in every way, right? :0/ Aug 23 05:38:38 phil__: most linuxes have NSALinux enabled by default ;-) Aug 23 05:38:52 linux is open source Aug 23 05:39:01 they cant add us govt malware without us knowing Aug 23 05:39:41 oh you sweet innocent summer child Aug 23 05:39:43 sure they can Aug 23 05:39:53 do you sit there and read the source? Aug 23 05:39:58 they can just compile the binaries from another source :P Aug 23 05:40:12 also yeah Aug 23 05:40:15 you a quick reader mate? Aug 23 05:40:20 the kernel alone has a butt load of code Aug 23 05:40:21 you know someone does read the source Aug 23 05:40:26 out there Aug 23 05:40:26 blah blah thompson hack Aug 23 05:40:29 phil__: yes Aug 23 05:40:32 it is called auditing Aug 23 05:43:18 phil__: OpenBSD claims to be truly open and therefore secure with lots of auditing but you are still responsible for not installing closed stuff, like nvidia drivers to get 3D working Aug 23 05:54:43 <_genuser_> bankai_: sorry, was googling. thanks for the link, I'll look. Aug 23 05:55:25 <_genuser_> I don't ... *gasp* have a virus scanner. Aug 23 05:56:53 <_genuser_> it's still faster than yesterday, so the increased RAM helped. the general UI is much much more responsive. the build process itself hasn't improved, but I'll continue working on it to fix it up. Aug 23 06:00:06 <_genuser_> wait wait, so gradle is just a batch file? Aug 23 06:01:58 hi Aug 23 06:02:03 Volley isn't sending to my server. http://localhost:3000/api - Followed this guide: https://developer.android.com/training/volley/simple.html - com.android.volleyNoConnectionError ECONNREFUSED Aug 23 06:02:07 How do I allow it to send to my server? Aug 23 06:02:42 does the phone know localhost is your server, not phone's localhost? Aug 23 06:02:52 Ohhhh Aug 23 06:02:54 haha Aug 23 06:02:55 :) Aug 23 06:02:58 nice one AlecTaylor Aug 23 06:03:06 n00b mistake >.< Aug 23 06:03:07 ahaha Aug 23 06:03:19 * AlecTaylor has been doing to my JavaScript Aug 23 06:03:47 Man I really dislike Medium. Aug 23 06:04:43 A lot of articles seem like they were just written because the author wanted to write something and couldn't think of what to write, so they just took a well known concept and write an essay on it Aug 23 06:05:01 Ashiren / tx: How do I tell it to hit my localhost? - I just tried using my $hostname, but that didn't work. Do I need to setup some networking stuff in the emulator? Aug 23 06:05:19 point it to your IP address on your LAN Aug 23 06:05:20 it should work Aug 23 06:07:17 YAY that worked Aug 23 06:07:30 Thanks tx / Ashiren - Ofrickn' n00b today >.< Aug 23 06:07:42 * AlecTaylor is being a frickn' n00b today >.< Aug 23 06:08:33 hi Aug 23 06:08:57 can i show date something like TextClock for time? Aug 23 06:17:48 zedz: You want a DatePicker? - https://developer.android.com/reference/android/widget/DatePicker.html Aug 23 06:18:26 https://developer.android.com/guide/topics/ui/controls/pickers.html Aug 23 06:23:02 anyone use rocksdb on android ? Aug 23 06:24:36 ah shit whats the story here, needs some mission nio stuff ... Aug 23 06:24:40 <_genuser_> sorry, don't even have an idea on what it is. Aug 23 06:24:42 *missing Aug 23 06:26:33 g00s: Using it with the NDK? Aug 23 06:26:54 well, jni - don't want to build it Aug 23 06:28:36 rockdbjni Aug 23 06:29:48 <_genuser_> man, I have no idea how to even setup my UI. heh. Aug 23 06:30:34 g00s: It is on Maven Aug 23 06:30:52 * AlecTaylor runs off to basketball Aug 23 06:31:14 <_genuser_> I have a nav drawer and I need to set it up so that when an item on the nav draw is select, the main activity has a new fragment added to it, with tabs, pagerview, etc. etc. Aug 23 06:31:30 <_genuser_> but I have a default activity layout where the tabs and pagerview is already there. Aug 23 06:32:51 <_genuser_> considering altering the TabLayout and ViewPager on nav item selection. Aug 23 07:03:35 I was reading the material design spec Aug 23 07:03:42 what exactly is text contrast ratio? Aug 23 07:08:04 ignore that Aug 23 07:12:01 Whyyyyyyy is gradle such a pain Aug 23 07:12:21 Hi! I can't get Application Cache to work in – just prints ERR_NAME_NOT_RESOLVED in offline :/ Aug 23 07:12:37 any tips? Aug 23 07:12:46 define application cache? Aug 23 07:12:51 yeah, I've tried Aug 23 07:13:06 String appCachePath = this.getCacheDir().getAbsolutePath(); WebView mWebView = (WebView) findViewById(R.id.activity_main_webview); WebSettings webSettings = mWebView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setDatabaseEnabled(true); webSettings.setDomStorageEnabled(true); webSettings.setAllowFileAccess(true); webSettings.setAppCacheMaxSi Aug 23 07:13:30 ..and permissions: Aug 23 07:13:33 what exactly are you trying to do? wrap a webpage in an android app? Aug 23 07:13:40 webpage Aug 23 07:13:44 yeah Aug 23 07:13:48 locally hosted* as in on the device? Aug 23 07:14:01 no it's external site Aug 23 07:14:16 oh i see now im sorry Aug 23 07:14:41 web app in with offline support (HTML5 application cache).. Aug 23 07:14:56 web app with offline support (HTML5 application cache).. Aug 23 07:16:09 afraid i wont be of much assistance in that realm. I dabbled with what I mentioned earlier (don't ask why...) but not with caching online resources for later use. good luck. Aug 23 07:21:51 Weird question, my API server just had ~230,000 Android clients simultaneously make a request to update their push tokens. Is this something normal/expected? Aug 23 07:22:53 ok thanks Aug 23 07:26:02 hello... i'm trying to use a VectorDrawableCompat to draw the same vector image multiple times (it's an icon being drawn on certain Keyboard.Key keys), but it is drawn in different sizes and in the wrong locations Aug 23 07:26:41 i am loading the VectorDrawableCompat with VectorDrawableCompat.create() in the class constructor for my KeyboardView, and then i am calling myIcon.setBounds(...); myIcon.draw(canvas) for each Key that needs the icon Aug 23 07:26:48 is that wrong? Aug 23 07:39:43 what's wrong with this code guys? http://pastebin.com/uH3XP9mv I'm expecting to have an hole rectangle Aug 23 07:39:49 but it doesn't show nothing Aug 23 07:53:10 <_genuser_> ok, the nav selection creating specific tabs on page working fine. Aug 23 07:53:12 <_genuser_> phew Aug 23 08:24:33 any linux users of android-studio get this msg before: JDK Required: 'tools.jar' seems to be not in Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE. Aug 23 08:28:42 did you check what it said Aug 23 08:29:32 So, I know how I can brand our app differently using Gradle, and I know I can write whole new Java files for each brand. but in those Java files, do I have to contain the WHOLE java file, or can I just override certain class methods/properties? Aug 23 08:29:59 raj: where does your JAVA_HOME point to? Aug 23 08:31:44 sdousley, java doesn't have a thing for combining TUs so you can't really do it partially. You can separate the implementation into another file and override that though Aug 23 08:32:14 yeah, that's what I thought would be the case :) Just thought I would check before I did it. Aug 23 08:32:30 Zharf: what's a TU out of interest? Aug 23 08:33:02 translation unit... it's more of a C thing I guess :p Aug 23 08:33:09 ah fair enough Aug 23 08:33:23 I just know that the xml files that defined values could be merged, Aug 23 08:33:35 so thought I would check if the Java files could, though I did highly doubt it was possible :) Aug 23 08:33:45 there's some gradle things that do magic for that Aug 23 08:33:47 sdousley: As someone who mostly codes in Lisp, I feel that pain all the time when I have to do Android development. Aug 23 08:33:54 for xml that is Aug 23 08:34:02 Zharf: yeah, I did suspect that Aug 23 08:34:25 technically you could write something similar for java Aug 23 08:34:30 loke__: It's not so much of a pain, just wanted a feature available to a specific brand, but if it has to go in all brands, it's fine. Aug 23 08:34:55 would prefer it just in 1 brand, but I'd rather just whack it in all than have to create/maintain extra java files Aug 23 08:35:00 sdousley: Yeah, I know. Everything can be done. It's just usually easier in Lisp :-) Aug 23 08:35:28 In particular, when doing Java I miss the ability to run code during the compilation phase. Aug 23 08:35:34 ah, I've never done Lisp myself. Aug 23 08:36:03 I'm mostly a PHP dev. But for where I work, I've developed a native Android/iOS app for the company Aug 23 08:36:36 sdousley: It's kind of nice. Sadly a lot of times you are constrained to specific architectures, like Java for Android development (although you can make things a bit nicer using languages like Kotlin) Aug 23 08:36:58 tbh, Java doesn't bother me that much, it's the ONE language I did EVERY semester at Uni Aug 23 08:37:07 so picking it up again wasn't that bad Aug 23 08:37:18 I found the iOS app way harder having to learn Swift at the same time. Aug 23 08:37:34 and from what I can tell, Swift is easier to get the grips of than Obj-C Aug 23 08:37:46 plus, working on a Mac for iOS dev :( hehe Aug 23 08:38:16 swift... you're lucky Aug 23 08:38:21 Home/end which take you to the first/last line of the document rather than to the start/end of the line was the biggest pain I came across Aug 23 08:38:29 one of* Aug 23 08:38:37 * loke__ did some Objc for an OSX application long ago. It wasn't particularly fun. Aug 23 08:38:58 It seems as though most of the things I disliked about Objc/Cocoa is still there in Swift. Aug 23 08:39:01 Zharf: hehe yeah, well, it was a brand new app, which was released well after iOS8, so we had the ability to enforce iOS8+ so we could use Swift Aug 23 08:39:12 is it possible to get cached object from DrawableRequestBuilder object Aug 23 08:39:49 loke__, but at least it's saner syntax Aug 23 08:42:42 Zharf: Yes, for sure :-) Objc is kidna insane. Aug 23 08:46:30 loke__: Zharf I think that was the main thing that swayed me to Swift, that the syntax looked decidedly more readable, let alone writable than ObjC Aug 23 08:47:10 If I had done Obj-C Before, I would have just done that. but having done no C/C++/Obj-C before, and with swift "looking nicer" i went that way hehe Aug 23 08:47:10 sdousley: Ah yes. I'm not in any way suggesting that Objc is better than Swift. If you have to develop an Iphone application, of course Swift is the way to go. Aug 23 08:47:36 I'm just glad I don't have to do any Iphone nor OSX development, which means I can stay away from both Swify and Objc. Aug 23 08:47:57 loke__: it did mean I had to do a bridging header though, as we used an SDK that was Obj-C hehe Aug 23 08:48:04 loke__: I envy you :P Aug 23 08:48:11 I would happily just do Android Dev I think Aug 23 08:48:33 sdousley: Don't envy me too much. I also am exposed to a tens-of-millions of lines of C++ code base at work. Aug 23 08:48:54 Thankfully I can also do Lisp. :-) Aug 23 08:49:30 c++ <3 Aug 23 08:49:45 c++ <3 <3 <3 Aug 23 08:49:48 haha yeah, I think I could maybe read C++ I did 1 unit of it at uni, though thatw as like 6-8 weeks I think, so nothing major Aug 23 08:50:08 plus, Uni was > 10 years ago now (That makes me feel old!) Aug 23 08:50:31 here, read my masterpieces; http://eclipser.xmms2.org/test.cc.html or https://git.xmms2.org/xmms2/gx2osd/tree/src/playlist_language.cc Aug 23 08:51:05 Zharf: Thanks :-) Aug 23 08:51:06 I am also exposed to people here who don't know how to follow standards (or at least follow them as/when they want to) Aug 23 08:51:28 I'm unsure how to use Cipher for encryption and decryption. Is it alright to use the same instance for both tasks? Most SO posts create separate instances to each task. Specifically, is this good: http://pastebin.ubuntu.com/23080768/ Aug 23 08:51:42 Zharf: My private project is this: https://github.com/cicakhq/potato Aug 23 08:52:09 emacs client, figures Aug 23 08:52:18 that's why I never really got into lisp that much, I'm a vimmer Aug 23 08:52:21 :P Aug 23 08:52:48 Zharf: Well, you can write a Vimscript client if you want. If you're machosistic enough, that is :-) Aug 23 08:53:15 no point, vim's not my operating system ;) Aug 23 08:55:57 Zharf: any idea? Aug 23 08:56:03 sorry what Aug 23 08:56:25 what's wrong with this code guys? http://pastebin.com/uH3XP9mv I'm expecting to have an hole rectangle Aug 23 08:57:32 If I draw directly on the canvas a transparent rectangle, I get a black one. So I've read you should create a new bitmap, draw a transparent rectangle and then draw the new bitmap to the canvas Aug 23 08:59:44 your view doesn't have a size Aug 23 09:00:41 also I'm confused by the whole thing Aug 23 09:00:51 what is it that you want to accomplish Aug 23 09:01:40 to create an hole in a view so I can see the view behind Aug 23 09:01:41 nm sdousley I followed a solution I found on googl Aug 23 09:01:42 e Aug 23 09:01:43 thanks Aug 23 09:01:53 Zharf: of course, it's declared in the XML Aug 23 09:03:27 but currently your view is essentially drawing nothing Aug 23 09:03:32 so I'm confused Aug 23 09:05:59 why you say so? the view draws a transparent rectangle Aug 23 09:06:21 but views are inherently transparent... Aug 23 09:07:10 in the XML I set a background.. Aug 23 09:07:32 don't Aug 23 09:07:49 why? Aug 23 09:07:57 also, why are you drawing at 200x200 a 200x200 rect on a 20x20 bitmap? Aug 23 09:08:41 haha, forget about it Aug 23 09:10:42 so you want to make some sort of border overlay thing I guess? Aug 23 09:10:56 that's right Aug 23 09:11:31 but I think the code is fine, I think I should draw the 'background' Aug 23 09:11:53 but it's not? therefore the code isn't fine Aug 23 09:13:17 so far I just draw a transparent rectangle but as you told, the view is transparent so I can't see it. What's wrong with the code besides the sizes? Aug 23 09:14:42 honestly, I would do this in xml unless you have some specific requirements to do it in code Aug 23 09:15:38 how then? Aug 23 09:16:37 http://5ca514740abe0570.paste.se/ something like this? Aug 23 09:18:05 in all examples involving asynctask, I see people defining the task outside of an android activity. Is there a way to declare one inside an activity (so as to play with UI elements on onPostExecute()? Aug 23 09:18:30 all examples that I've seen* Aug 23 09:19:00 yes because this way youre sure it wont leak acitivty reference Aug 23 09:19:25 if you need update UI things, you should provide them to your task (as WeakReference) Aug 23 09:19:38 yeah I guess that's the only way huh? Aug 23 09:19:51 well you could of course make the inner class Aug 23 09:20:10 derp... Aug 23 09:20:22 but for programming practices its a bit no-no Aug 23 09:20:33 there was this project that I did some fixing on a few months ago that used asynctasks for everything Aug 23 09:21:01 I rotated the device a couple of times and it would crash because it tried to post 128th task to the queue Aug 23 09:21:06 Ashiren: yeah, I did Inner classes, and in the recent updates to our app, I pulled them out into their own class files, feels WAY neater now. Aug 23 09:21:25 I wish asynctask didn't exist Aug 23 09:21:32 they are a bit of a pain Aug 23 09:21:47 Zharf: yeah, I don't really get WHY you can't do things that HAVE to be done in AsyncTask in the Activity. Aug 23 09:22:26 well you have to do IO/networking stuff in background, not neccessarilly AsyncTask Aug 23 09:22:33 Unfortunately, our app does quite a bit of Network related stuff, so AFAIK, that has to be done in AsyncTask Aug 23 09:22:50 no, it needs to be done in another thread Aug 23 09:22:55 ah ok Aug 23 09:22:56 nothing forces you to use asynctasks Aug 23 09:23:08 I've not used one in years Aug 23 09:23:12 I guess they have just become the most common method of achieving it though? Aug 23 09:23:12 sdousley: I'm using AsyncTask Aug 23 09:23:24 Are you doing networking requests? Aug 23 09:23:29 Look into Retrofit 2 Aug 23 09:23:32 well for networking stuff i use retrofit Aug 23 09:23:37 * Zharf nods Aug 23 09:23:45 Ashiren: Finally getting round to looking at it myself Aug 23 09:23:50 markyosullivan: yeah, HTTP calls/responses to an API Aug 23 09:23:58 for more manually background stuff i use executor and put runnables there Aug 23 09:23:58 yeah, look into Retrofit Aug 23 09:24:01 it's really nice Aug 23 09:24:05 got a link? Aug 23 09:24:10 http://square.github.io/retrofit/ Aug 23 09:24:11 I just converted everything to OKHttp Aug 23 09:24:20 Ashiren, which is essentially what asynctask is Aug 23 09:24:22 Retrofit 2 uses OkHttp Aug 23 09:24:41 or should I say Retrofit 2.0 before I annoy someone :d Aug 23 09:24:42 * :D Aug 23 09:24:44 asynctask's problem is that the executor is static so you end up leaking everything Aug 23 09:24:52 hehe is it OkHttp 2 or 3 it uses? Aug 23 09:24:59 3 Aug 23 09:25:02 cos the SDK we use requires OkHttp 2 Aug 23 09:25:12 Zharf: that's nice, would be possible to set the dimension of the hole instead of the border? Aug 23 09:25:14 or can you use 2 and 3 concurrently? Aug 23 09:25:19 eeyup Aug 23 09:25:20 I was going to look into OkHttp and then Retrofit, glad I did it the other way around :D Aug 23 09:25:42 Got the app released publicly yesterday Aug 23 09:25:44 gdrc: hole = size - border. Aug 23 09:25:56 markyosullivan: what app? :) Aug 23 09:26:16 sdousley: yes but how can I do some calculation on the xml? Aug 23 09:26:48 The app for the company I work for, I'm not overly pleased with the design but we were told to get a lite version of it into customers hands Aug 23 09:28:07 sdousley, okhttp 2 and 3 can be used in the same project Aug 23 09:28:11 they're in different packages Aug 23 09:28:13 gdrc: but the XML is static, so just define your values. Aug 23 09:28:16 Leeds: PM me and I'll link it to you, bit nervous to post it and let everyone see it :D Aug 23 09:28:25 Hi. I am trying to traverse the API documentation but it is very unclear. Is there a way to get the color depth and type of image from a Bitmap? Aug 23 09:28:53 AsyncTask ***AND*** JSONObject doInBackground(Object[] params) {<--- errors out the whole class... whyyyyyy Aug 23 09:30:05 Jesperhead: what's the error? Aug 23 09:30:10 there are a lot Aug 23 09:30:15 its an issue with the types Aug 23 09:30:25 because String tmp and String... args works fine Aug 23 09:31:42 I just changed one of my AsyncTasks and that seems to work with the 2 bits you have there Aug 23 09:32:21 curses. thanks for the input Aug 23 09:32:32 let me just paste the start of my class Aug 23 09:32:39 gdrc, you could do the calculation in code and set the strokeWidth on the paint of the background drawable of your view Aug 23 09:32:50 oh Aug 23 09:33:10 look. i defined Object[] in the AsycTask declaration Aug 23 09:33:17 Jesperhead: http://pastebin.com/9y1LPGi4 Aug 23 09:33:18 that works for me Aug 23 09:33:19 as params. that's a paddling. Aug 23 09:33:42 I think it's your params in the AsyncTask<> that's the issue. Aug 23 09:33:59 you're just defining the type within <> not the variable to assign it to Aug 23 09:34:07 gdrc, like http://stackoverflow.com/a/28647288/857853 Aug 23 09:34:15 Jesperhead: AsyncTask Aug 23 09:34:19 yep Aug 23 09:34:31 gdrc, except in your case it's ShapeDrawable, not GradientDrawable Aug 23 09:35:37 gdrc, and since ShapeDrwable doesn't actaully have setStroke, you can use getPaint().setStrokeWidth Aug 23 09:35:51 ok thanks I will have a look Aug 23 09:43:07 Ok, is openCV for android foobar? Aug 23 09:43:21 I think I have spent 6 hours just trying to get it to compile properly. Aug 23 09:47:57 Hello, anyone knows if it's possible to launch an app from a locked device like when you get called over skype or whatsapp or the alarm clocks?. Aug 23 09:49:20 I'm getting "Android Nougat requires the IDE to be running with Java 1.8 or later" but in Project Structure I am actually running that version, is the IDE slow or something? Aug 23 09:49:48 It's telling you to run Android Studio with Java 1.8. Aug 23 09:49:57 In project structure you're setting up which java to use for compilation. Aug 23 09:50:23 anyone tried it? Aug 23 09:50:44 <_genuser_> darn AndroidStudio insistence to play with my mercurial repo. Aug 23 09:52:03 Anyone tried launching an app from a locked device like Skype or an alarm clock? Aug 23 09:55:44 Mavrik, oh right Aug 23 09:57:32 Anyone? Aug 23 09:57:53 Mavrik, sorry but how do I setup the java version for the IDE? Aug 23 09:58:42 For example when you get a call in whatsapp or skype or Alarm clocks and so on, I managed to make my app keep running in the background and display notifications in a locked screen but not launch the whole app Aug 23 10:05:02 huptoka: I don't actually know what it's called, so I can't find official references, but apparently that's a specific mode used by things like skype and alarm clocks... Aug 23 10:05:52 it seems to be referred to as 'full screen interruption' at least in the N notification controls Aug 23 10:19:28 I have a few imagebuttons that I need to change the width/height of during runtime and not in the layout file, what's the best way of doing so? .setLeft() etc? Aug 23 10:19:30 Leeds: I need a little bit more concrete Aug 23 10:20:28 sorry, can't help with that Aug 23 10:20:48 huptoka: look for FLAG_SHOW_WHEN_LOCKED Aug 23 10:21:07 afair its a flag you put in activity's WindowManager Aug 23 10:21:17 so it is shown on locked screen Aug 23 10:27:56 no I mean, launch the whole application like Skype or the Alarm clocks or WhatsAp Aug 23 10:28:12 Ashiren, I need something concrete not "look for flag" :P Aug 23 10:30:04 WAKE_LOCK seems to be a requirement Aug 23 10:30:17 but can't find anything, no examples, nothing, it's pretty common tho Aug 23 10:32:41 they even have apps for turning on your screen when you get a notification Aug 23 10:35:00 anyone knows how Skype, WhatsApp, and every alarm clock unlocks your device from the background with sound? Even when sound is muted? Aug 23 10:41:20 How do I set constants in Android from Gradle? - I've tried: http://stackoverflow.com/a/17201265 - But in R.java I get `public static final int api_prefix=0x7f060017` rather than a string :< Aug 23 10:41:52 (which is read in as 2131099671 from R.string.api_prefix Aug 23 10:41:54 ) Aug 23 10:43:01 nvm, figured it out, needed to call `context.getString` Aug 23 10:46:29 Hi folks. Quick question. How can I get the current locale used in the app? For example, my device runs on nl_NL but my app only has en_US support, I want to get ´en_US´ back Aug 23 10:46:48 I thought ¨context.getResources().getConfiguration().locale.toString()¨ did that, but it doesn´t Aug 23 10:47:59 i'm doing that right now @Ywa Aug 23 10:48:16 Locale.getDefault() this get you the default from phone Aug 23 10:49:23 Hmm. Actually it seems my app is using a third party library with many localizations, that´s why it doesn´t work as expected. Aug 23 10:49:35 Now I need to find a way to limit the locales Aug 23 10:50:00 right know i have the problem because i want the locale to be the country where the phone is Aug 23 10:50:04 so a used this Aug 23 10:50:11 https://www.irccloud.com/pastebin/oDXePnkS/ Aug 23 10:50:33 first i try to get by the phone cell Aug 23 10:50:55 and in case of null use the defualt Aug 23 10:50:57 default Aug 23 10:51:58 I can´t help you with that unfortunately Aug 23 10:52:21 Can someone please explain to me why this happens during some fingerprint code: android.security.KeyStoreException: Key user not authenticated Aug 23 10:52:34 I mean, explain in details. Aug 23 10:53:12 @Zta77 sory no idea, never work with that :S Aug 23 10:53:52 I just found this which I'll try to read: https://blog.stylingandroid.com/user-authentication-part-1/ =) Aug 23 10:56:56 Let me rephrase my question: A third party lib I use supports many locales. Can I disable them and only force my apps locales/localizations? Thanks in advance. Aug 23 10:57:50 Ywa: The most recent episode of Android Developers Backstage discussed exactly that. Aug 23 10:58:05 http://androidbackstage.blogspot.sg/2016/08/episode-54-aapt.html Aug 23 10:58:25 Thanks loke__ Aug 23 11:16:15 Zharf: I ended up with another solution Aug 23 11:16:36 Which also is very dynamic, are you interested to see it? Aug 23 11:24:01 hi Aug 23 11:24:23 how can i send data via IntentFilter? Aug 23 11:25:09 zedz: what do you mean? From an external app for example? Aug 23 11:26:29 I have a fragment, which is call a BroadcastReciever Aug 23 11:26:43 and i want to pass a data from the fragment to the reciever Aug 23 11:27:21 Ah, I'm not sure on that I'm afraid, I was working on some bits yesterday, passing in data from a URL to the app. That uses Intent Filters. Aug 23 11:29:03 damn :( Aug 23 11:35:53 zedz, set extras for the intent Aug 23 11:36:04 Zharf: how? Aug 23 11:36:27 Zharf: intentfilter doesnt have putextra method Aug 23 11:36:38 I said intent, not intentfilter Aug 23 11:36:41 Zharf: no? :( Aug 23 11:37:28 gdrc, I don't know, if you think it's a nice way then sure I guess... Aug 23 11:40:59 Zharf: http://pastebin.com/7Uwt4avg Aug 23 11:43:25 gdrc, HiddenView does nothing though? why not just use View? Aug 23 11:45:02 Zharf: right, does not do nothing. It's just a way to understand what views need to be used as container to make the holes Aug 23 11:45:17 ok Aug 23 11:45:40 I think it's very nice and clean way, plus I also have the preview Aug 23 11:46:11 I didn't know that the Preview execute the real code, nice one Aug 23 11:46:45 that's why there's isInEditMode() that you can call to check if it's in the editor or not Aug 23 11:46:52 because not all code is compatible with it Aug 23 11:48:10 Zharf: hey man, do you know how to launch your app from a locked device like Skype, Hangouts and Alarm clocks? Aug 23 11:48:13 has anyone used travis ci with API 24? I'm getting license errors for [Android SDK Platform 24, Android SDK Build-Tools 24.0.1] Aug 23 11:48:44 Zharf: I managed to display notifications but not unlock and launch a full screen video sound thing like Skype or Alarm clocks Aug 23 11:51:48 huptoka, never tried anything like that but maybe WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED Aug 23 11:56:07 Zharf: I actually found that it work only with the first child view o_o Aug 23 12:00:56 huptoka, you can't unlock the lockscreen if user has a secure lock in use though (pattern, pin, etc) Aug 23 12:01:21 huptoka, only if it's a simple lock can activities unlock it, you should be able to display an activity on top of it with that flag though Aug 23 12:11:43 How do I use promises with Volley? - I tried http://stackoverflow.com/a/18541806 - but looks like JsonObjectRequest doesn't accept futures anymore :( Aug 23 12:13:14 AlecTaylor, it takes a Listener and an ErrorListener - RequestFuture implements both of those Aug 23 12:13:30 AlecTaylor, show code and error Aug 23 12:14:19 Zharf: So wait, `JsonObjectRequest` takes those as params or `RequestFuture` does? Aug 23 12:14:28 jsonobjectrequest Aug 23 12:15:00 Error:(69, 33) error: no suitable constructor found for JsonObjectRequest(String,JSONObject,Listener,ErrorListener,RequestFuture,RequestFuture) Aug 23 12:15:00 constructor JsonObjectRequest.JsonObjectRequest(int,String,JSONObject,Listener,ErrorListener) is not applicable Aug 23 12:15:00 (actual and formal argument lists differ in length) Aug 23 12:15:00 constructor JsonObjectRequest.JsonObjectRequest(String,JSONObject,Listener,ErrorListener) is not applicable Aug 23 12:15:01 (actual and formal argument lists differ in length) Aug 23 12:15:06 pastebin next time please Aug 23 12:15:41 your code is wrong, you're passing too many parameters Aug 23 12:15:51 Yeah that's the point Aug 23 12:16:06 How many future objects do I pass? - Going to the definition it looks like it supports none Aug 23 12:16:08 you're passing a String, JSONObject, Listener, ErrorListener and two RequestFuture's Aug 23 12:16:29 It only supports `JsonObjectRequest(String url, JSONObject jsonRequest, Listener listener, ErrorListener errorListener)` Aug 23 12:16:40 I.e.: no futures Aug 23 12:16:40 let's say your variables are s, j, l, e, r1 and r1 Aug 23 12:16:51 er, r1 and r2 Aug 23 12:16:54 pass s, j, r1, r2 Aug 23 12:16:59 dump l and e Aug 23 12:17:08 RequestFuture implements Listener and ErrorListener Aug 23 12:17:13 Ohhhh Aug 23 12:27:45 Is there any way to start new projects with Gradle version of my choice (in IntelliJ IDEA or Android Studio)? (I know for Settings - Build - Build Tools - Gradle, but that is for after the project is started.) Thanks. Aug 23 12:28:40 Colt, iirc it asks you if you want to use wrapper or some other setting when creating a project, does it not? Aug 23 12:29:55 Colt: when starting a new project, you can choose Gradle in the left pane. Aug 23 12:30:20 Colt: https://www.dropbox.com/s/zwi5ha1atw4xxkv/Screenshot%202016-08-23%2013.29.48.png?dl=0 Aug 23 12:31:01 that's a screenshot from IntelliJ btw Aug 23 12:31:01 hmm, never tried that way... will try now... Aug 23 12:34:10 My old update cmd (windows) was: c = "cmd.exe /C android update project -t ""android-4"" -p ." Aug 23 12:34:28 if I change to: compile 'com.android.support:appcompat-v7:23.4.0' -in Gradle, do I just change to: Aug 23 12:34:37 c = "cmd.exe /C android update project -t ""android-7"" -p ." Aug 23 12:36:23 Zharf: I understand what you mean but you know what I want to do? just like Skype, if the phone is locked it will unlock and show an full screen app and play sound Aug 23 12:36:41 Yep Aug 23 12:37:15 you don't actually need to unlock to show one activity, my alarm clock most certainly doesn't Aug 23 12:53:11 Slightly off topic for Android-Dev , but is there an ELI5yo for android design patterns , and other patterns like visitor? ( for myself I don't know where to start on some ideas, i seem to think all MVC so android works well with that but fragments and activities ohh my... Aug 23 13:06:31 Zharf: so you don't unlock you just launch an activity? interesting Aug 23 13:07:09 yep Aug 23 13:11:15 huptoka, at least that's how I believe those apps do it, I could conduct a test but slightly busy right now Aug 23 13:20:04 facebook sdk is > 25mb Aug 23 13:20:20 complete app is about 3.5mb Aug 23 13:40:29 hithere Aug 23 13:41:03 I would like to change release package name - I know how to do that, but I am not sure what symbols can be used Aug 23 13:41:34 as i found here http://stackoverflow.com/questions/24602804/apks-package-name-must-be-in-the-following-format-com-example-myapp-it-may-c - this appears when uploading wrongly named pckg on play Aug 23 13:41:47 is this defined somewhere on google dev docs? Aug 23 13:42:15 the convention is usually a reverse domain name Aug 23 13:42:26 com.bolvanos.bestgamever Aug 23 13:44:29 is it ok to add version name / datetime (variables changed upon build) or it is bad idea because it should it would be different app... asi stated in this aged doc http://tools.android.com/tech-docs/new-build-system/applicationid-vs-packagename ? Aug 23 13:45:53 why am I asking - the way the package can be renamed suggested by stack ppl is always with such variable added to pck name i.e. http://stackoverflow.com/questions/28249036/app-release-apk-how-to-change-this-default-generated-apk-name Aug 23 13:45:54 packagename must be the same all througout Aug 23 13:46:19 if you wanna update an existing app, if the packagename is diff, it wont update but install a new one Aug 23 13:46:33 google wont let you add a diff packagename to a project with a diff packagename Aug 23 13:47:09 you can change the apk to "bolvanos-2.2" or whatever Aug 23 13:47:25 or use a date, as long as the package name is the same Aug 23 13:47:32 apk names dont mean a thing Aug 23 13:48:44 ok - you were faster and answered my extend question whether am I confusing pckg name and apk name Aug 23 13:49:00 thank you raoul11 Aug 23 13:49:10 yeah (: Aug 23 13:49:39 basically, packagename + keystore must be the same on an app lifetime Aug 23 13:53:24 how do I change the name of the signed .apk that is produced? Aug 23 13:53:33 do I need to change my project name? Aug 23 13:55:38 azv4, http://stackoverflow.com/questions/28249036/app-release-apk-how-to-change-this-default-generated-apk-name Aug 23 13:55:46 bolovanos, thx Aug 23 13:57:10 azv4, np Aug 23 14:00:47 you can also change it manaully under /app Aug 23 14:13:24 any idea why is AS inspection complaining about this gradle code: "output.outputFile = new File(output.outputFile.parent, filename)" with note "Constructor call is ambiguous (This inspection reports assignment with incompatible types)"? Aug 23 14:19:49 it's probably because groovy is a bit too clever for its own good :) Aug 23 14:20:37 I think groovy auto-sets .parent to null if outputFile is null, and then it realizes it doesn't know how to resolve the null type for the constructor (string/file) Aug 23 14:21:01 probably simplest to just cast it - new File((File) v.parentFile, "x") somethig like that Aug 23 14:26:15 kbs, interresting, but now it says "Cannot infer argument types" - not if it were that important - it works, but I was curious why - anyway thank you :) Aug 23 14:28:29 i have one more question considering flavours - lets say I have flavourA and flavourB - when user installs flavourA and than decides to install flavourB - is there a way for him to have all possible data and settings available in A flavoured app to be accessible in flavourB variant other way than implementing some sort of export/import function? Aug 23 14:43:29 bolovanos, firebase maybe Aug 23 14:44:44 bolovanos, Content Provider? Aug 23 14:50:31 Zharf, ok thx Aug 23 14:50:38 JulesR, just File with Context.MODE_PRIVATE Aug 23 15:26:17 AS is scaring the shit out of me Aug 23 15:26:22 making me think I've lost all my work Aug 23 15:26:26 showing an old layout Aug 23 15:26:29 in the emulator Aug 23 15:38:45 markyosullivan: yeah instant run isn't perfect yet Aug 23 15:43:55 can I direct gradle to build to another folder via command line? Is there a page that shows all gradle cmd options? Aug 23 15:44:08 No but it was from ages ago yiati, like I haven't seen it in weeks Aug 23 15:44:12 (the layout) Aug 23 15:45:18 In better news, I got Retrofit working Aug 23 15:47:46 guys, how can i launch an activity without showing it? ... i explain better, from broadcast receiver i launch a new activity that has android:theme="@android:style/Theme.NoDisplay". The issue is that the activity i want to launch isn't visible but the main activity is started Aug 23 15:47:49 is 'buildDir' the location of the .apk output? Aug 23 15:48:16 azv4: i normally select "open in finder" to be sure Aug 23 15:48:42 skin1980, I need to build a cmd line command to build to a particular location Aug 23 15:48:59 azv4 is this a question? Aug 23 15:49:03 or learn to change the gradle config to build to a specific location Aug 23 15:49:18 I can repeat the question "is 'buildDir' the location of the .apk output?" Aug 23 15:49:18 hey guys, when i click recent apps button, my app minimizes and my app title text color goes black , how can i change this color ? i once found that but i don't remember now :D Aug 23 15:49:35 skin1980, is "i normally select "open in finder" to be sure" an answer? Aug 23 15:50:07 skin1980, maybe the mainactivity is already on top of the stack which is in background and you star an invisible one on top of that Aug 23 15:50:22 azv4: i'm not kidding you, i didnt understand if it was a really question Aug 23 15:50:28 try with new task flag... and/or clear top Aug 23 15:50:52 azv4: when you build the signed apk you can seect the output folder Aug 23 15:50:56 select* Aug 23 15:51:16 skin1980, as I've stated multiple times, I am attempting to build from command line (windows) Aug 23 15:51:34 sorry but i read only now your questionù Aug 23 15:52:11 I am having difficulty finding the documentation I need to learn cmd line building Aug 23 15:52:28 for me it isn't in the build dir Aug 23 15:52:36 I know, I dont have a build dir either Aug 23 15:53:01 I mean I have one, but it isn't called projectDir/build like the gradle doc's suggest Aug 23 15:53:32 azv4: sorry i'm on mac os Aug 23 15:53:45 Zharf: thank.. trying now Aug 23 15:53:47 in IntelliJ, anyone know how I get the Activity Preview on the right hand side of the text layout? Aug 23 15:54:10 Ah, nm, I found it :) Aug 23 17:00:51 hi Aug 23 17:01:32 I am running an ARM AVD with the SDK emulator. It seems to be very slow. What causes this? Aug 23 17:08:42 g4br: arm has to be fully emulated Aug 23 17:08:55 the x86 images can be accelerated Aug 23 17:09:32 myke: the only problem is that I have an ARM apk that cannot run on x86 Aug 23 17:10:00 first, I started an x86 AVD and google play said that this device is not supported Aug 23 17:10:17 I guess it was the x86 as the Android version was the same as my phone's Aug 23 17:13:19 make: do you have any suggestions? Aug 23 17:15:39 myke Aug 23 17:15:45 sorry for the typo :( Aug 23 17:19:07 use an actual device Aug 23 17:38:04 hi Aug 23 17:38:39 i am creating a notification with large icon in web, i get it an set in setLargeIcon on notification. Why my icon is small? What the size i need? Aug 23 17:46:56 if I used find and replace to change path in a project, then changed the folder the project resides in to reflect those changes, should the project open without too much trouble? Aug 23 17:47:18 becasue I just did that, and my project is borked to the nth degree Aug 23 17:49:15 anyone try sbt android? how’s the speed vs gradle. androidstudio/gradle is insanely slow :( Aug 23 17:49:26 pfn: ^ Aug 23 17:49:37 fast Aug 23 17:50:14 pfn: you use sbt android? Aug 23 17:51:17 maybe Aug 23 17:51:22 android dev flowchart: think -> code -> build -> browse internet for 5 minutes -> look at device and see build failed for mysterious reason -> run build again -> browse internet for 5 minutes -> look at device Aug 23 17:51:33 Sixmsj: it's fast Aug 23 17:51:46 ios dev flowchart -> think -> code -> build -> debug -> think -> etc Aug 23 17:52:40 gordon_: how much faster would you say it is than regular gradle? ive been contemplating seeing if i can adapt my codebase for it Aug 23 17:52:53 you forgot where SourceKit crashes in that flowchart :S Aug 23 17:53:03 Sixmsj: how much classes do you have ? Aug 23 17:53:34 s73v3r: is sourcekit for swift? i admit swift+xcode is a PITA.. almost as bad as android dev lol :( Aug 23 17:53:40 there's nothing to adapt to work with sbt-android Aug 23 17:53:42 gordon_: i think it’s enough to hit the dex limit Aug 23 17:53:45 you just load it and it works Aug 23 17:54:02 Sixmsj: SourceKit is the thing that handles stuff like syntax highlighting and text editing in Xcode Aug 23 17:55:01 s73v3r: i think based on how objc (and i guess swift) works, the clang compiler needs to be able to compile code to use the the ‘ide features’, that’s one weakness on iOS Aug 23 17:55:15 pfn: alright i gotta try it out then Aug 23 17:56:07 Sixmsj: for 16 files (small app with one view, presenter and model loading github apis (like u2020)) for the first time (clean build) Total time: 22 s Aug 23 17:56:14 with dexing and showing on screen Aug 23 17:56:36 and second time it's Total time: 10 s Aug 23 17:57:11 but I can also use protify to make changes and see it instantly Aug 23 17:57:15 ok, almost instantly Aug 23 17:57:47 if you have questions, drop by gitter channel Aug 23 17:58:05 are you using the sim/emulator gordon_ i usually debug and push to device Aug 23 17:58:15 I just tried with genymotion Aug 23 17:58:22 because adb is faster there Aug 23 17:58:30 1.4 mb instead of 400 kb Aug 23 17:59:34 gordon_: is gitter channel something else? never heard of it Aug 23 17:59:47 https://gitter.im/scala-android/sbt-android Aug 23 17:59:59 and... http://scala-android.org/ Aug 23 18:00:19 have some helpful resources Aug 23 18:01:10 gordon_: clean build for me was 31 seconds but push to device added 20 or so more seconds Aug 23 18:01:26 damn, feel like im living in the stone ages scala on android O_O when did this happen Aug 23 18:01:35 I am trying to use proguard and have stepped through most configs but I am getting this error only where minifyEnabled while running the app Aug 23 18:01:36 java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.b.a.a com.google.b.a.a.e()' on a null object reference Aug 23 18:01:53 b.a.a ! Aug 23 18:01:55 I can't seem to find any documentation related to "com.google.b.a.a" Aug 23 18:01:59 proguard removed a class/method that you were using Aug 23 18:02:16 oh dear, I really made a mess here Aug 23 18:02:17 that’s cause there is no such class; proguard renamed it to obfuscy Aug 23 18:02:22 cmendes0101: because proguard changed it Aug 23 18:02:48 ok, any time now google (api 24 sources in sdk manager) Aug 23 18:02:52 ah ok that makes sense for that Aug 23 18:03:30 cmendes0101: there's a switch to keep those names Aug 23 18:03:54 but if you're developing, better use android >= 21 and set minSdk to 21 Aug 23 18:04:00 so you dont need to minify Aug 23 18:04:04 it's faster Aug 23 18:04:19 while doing it’s thing, proguard should have spit out a mapping file somewhere that tools can use to match back to the real names Aug 23 18:04:48 im seeing some pfn commits from the gitter channel, pfn must be a beast then =D Aug 23 18:05:43 On this app I need to keep minSdk to 16. I'll check out how reference back the name Aug 23 18:05:56 sdk21 doesn't need minify? Aug 23 18:09:38 awesome found mapping.txt thanks Aug 23 18:09:40 cmendes0101: from android 21 multidex is done automatically Aug 23 18:10:03 cmendes0101: you can specify develop flavour in android studio Aug 23 18:15:21 gordon_: can you mix scala code with java code with sbt-android. Aug 23 18:15:38 also is asking scala/sbt related questions here discouraged? Aug 23 18:15:47 yes you can Aug 23 18:16:12 Sixmsj: the whole point of that plugin is to being able to use scala, but it supports kotlin and java as well Aug 23 18:16:54 I wouldn’t say asking questions about scala/sbt is discouraged, but the number of people who can answer them in there is pretty small Aug 23 18:16:54 gordon_: yeah initially, i just wanted faster build times (and i read snippets on the web indicating sbt was much faster than gradle) Aug 23 18:17:14 now im seeing scala possibilities so im a little excited about it Aug 23 18:17:30 there are quite nice libraries for scala Aug 23 18:17:56 only 'problem' is persistence, since there's nothing good for it yet Aug 23 18:18:27 so you would rather write normal SQL queries Aug 23 18:19:30 but most nice libraries for scala works, like argonaut or circe Aug 23 18:19:31 is scaloid any good? https://groups.google.com/forum/#!topic/scala-on-android/t7TEcOudpaw also this is nice (potentially writing scala/android with emacs/ensime) Aug 23 18:19:50 ensime/emacs works as well as ensime/atom Aug 23 18:20:11 scaloid.. some people like it, some people think it's too much of syntactic sugar Aug 23 18:20:59 same goes for macroid Aug 23 18:21:22 gordon_: i’m bought in on the emacs ecosystem so ensime/emacs + android would be awesome Aug 23 18:21:36 does debugging/breakpoints in intellij still work? Aug 23 18:21:41 I dont know about xml layouts support in emacs Aug 23 18:21:50 Sixmsj: yes, it's working Aug 23 18:22:08 there was a bug for xml styles in intellij for sbt project Aug 23 18:22:20 but pfn fixed that issue and it was merged lately Aug 23 18:22:24 thanks for answering my questions by the way gordon_ , i know most of the questions can be answered by trying it out which ill do soon Aug 23 18:22:59 no problem Aug 23 18:23:19 you can always go to gitter, more people will answer you questions there Aug 23 18:23:23 (I'm also there) Aug 23 18:24:24 is there no irc channel instead? (adding extra communication mediums is like adding dependencies to your app,etc) Aug 23 18:24:35 there's #sbt-android but it's dead Aug 23 18:24:47 I usually just use gitter->irc bridge Aug 23 18:26:13 i’lll have to look into the gitter/irc bridge then Aug 23 18:26:25 do you guys recommend macroid Aug 23 18:26:43 I'd use normal android for now Aug 23 18:27:06 since sbt plugin can generate typed resources Aug 23 18:28:28 Sixmsj: do you use scala in Android Studio? Aug 23 18:28:34 Sixmsj: is it possible? Aug 23 18:29:23 arancio: that’s what im asking these guys for ^_^ i’ve never written scala Aug 23 18:29:37 ah ok Aug 23 18:29:41 :-) Aug 23 18:29:50 more of a clojure/elixir guy for hobbies and java/objc/c# for work Aug 23 18:30:00 arancio: it should be possible but I recommend intellij community Aug 23 18:30:20 Sixmsj is the newest RC of clojure going to have any improvements for android ? Aug 23 18:30:41 g00s: .. don’t tell me clojure is available on android too Aug 23 18:30:51 ive only used it for backends Aug 23 18:30:57 I think it is, but it's slow Aug 23 18:31:08 http://clojure-android.info/ Aug 23 18:31:10 yeah Aug 23 18:31:24 well not officially supported by cognitect Aug 23 18:31:33 gordon_: thanks. I'll wait to be a little more confident with the Android platform, then. Better learn one thing at a time Aug 23 18:31:34 damn the world moves fast Aug 23 18:31:50 * arancio always wondered what kind of name is "intellij" Aug 23 18:32:04 there are some forks to make it workable, but i'd like to see cognitect do something Aug 23 18:32:51 arancio: android studio is intellij basicly ;) Aug 23 18:33:31 clojure for android seems pretty cool but not mature yet Aug 23 18:33:48 gordon_: yes, I was reading about it right now: http://stackoverflow.com/questions/27736433/how-do-i-install-android-studio-into-intellij Aug 23 18:40:33 you don't install android studio into intellij Aug 23 18:40:41 intellij has its own android plugin which is derived from android studio Aug 23 18:49:52 What's the effect of android:drawSelectorOnTop on a ListView? I toggled it on and off but it doesn't seems to have any effect. And I can't understand the description that I found on the web Aug 23 18:51:23 Whether the visual feedback when clicking a list item should be drawn in front of or behind the item view Aug 23 18:57:30 Anybody here compiled php for android ? Aug 23 19:01:11 SimonVT: I guess I understood it really matters when the item or the feedback are not partially transparent. I can't see any difference in the current setup. Thanks Aug 23 19:01:57 subins2000: Android already has Java. Do you really need PHP too? Aug 23 19:01:59 Yeah, not much difference if it's just text. Matters once you have images and backgrounds Aug 23 19:02:05 no, you don't need php Aug 23 19:02:17 arancio: I have something revolutionary ;-) Aug 23 19:02:25 php is not revolutionary Aug 23 19:02:25 ever Aug 23 19:02:26 not if it’s in PHP you don't Aug 23 19:02:45 PHP is getting better guys Aug 23 19:02:58 nope. still too much baggage Aug 23 19:03:00 It's not what it was 10 years ago Aug 23 19:03:16 doesn’t matter. in that 10 years, other languages came that were much better Aug 23 19:03:22 s73v3r: Well it's fast and super easy Aug 23 19:03:26 php isn't getting better Aug 23 19:03:28 it's not fast nor easy Aug 23 19:03:34 it's fast and easy if all you have to write is 1 line Aug 23 19:03:36 beyond that, it stank Aug 23 19:03:49 subins2000: sorry, no I never compiled PHP on Android Aug 23 19:03:58 PHP is an old language. you can't reinvent the wheel, modfication and improvment is lot harder Aug 23 19:04:06 doesn’t matter Aug 23 19:04:20 and if you’re going to be using PHP, why not make your thing a web app instead? Aug 23 19:04:46 I humbly suggest you change the perception u have about PHP Aug 23 19:04:51 s73v3r: It is a web app! Aug 23 19:05:09 lol php Aug 23 19:05:25 Have you guys even used PHP ? :O Aug 23 19:05:26 so then why are you trying to compile it for android Aug 23 19:05:32 yes, we used PHP. Aug 23 19:05:52 Using PHP to host a localhost server and use webapp to interact with localhost Aug 23 19:05:54 Guys you should OS/404. It's a operative system completely written in PHP Aug 23 19:05:55 and I’m sorry, but it is not worth the time or effort to get back into it, even if it is “beter" Aug 23 19:06:11 should check Aug 23 19:06:18 what is "better Aug 23 19:06:35 s73v3r: NP, you should check it out. PHP and it's applications are getting better :-) Aug 23 19:06:40 nope Aug 23 19:06:46 ruby and python are still better Aug 23 19:07:01 and I don’t have to bother with the baggage that PHP still has Aug 23 19:07:10 i need to know, how they made something better then Java. Like I do like larvell and there is the zend/zen framework ( they have gotten better) Aug 23 19:07:16 I'm not saying it's top #1, it's better than what it used to be Aug 23 19:07:23 PHP had it’s time, and it had it’s chances, but it’s just too late Aug 23 19:07:36 but yeah Python is better , (IDK ruby well enuff to comment ) Aug 23 19:08:04 The devs of PHP were so lazy that further development of PHP became so late Aug 23 19:08:17 and why does that make me want to try PHP again? Aug 23 19:08:27 But now it's getting developed faster and so many improvements have come Aug 23 19:08:45 s73v3r: Nah, I think most developers should see PHP in a new angle ;) Aug 23 19:09:02 It's time to update the PHP perception I think Aug 23 19:09:06 nope. i only have so much time in the day. not worth wasting it on PHP Aug 23 19:10:08 subins2000 in the 5-6 years i've been here , nobody as ever suggested, or asked , if they could develop android apps in PHP ... Aug 23 19:10:49 g00s: Well, I'm trying something new! Aug 23 19:11:11 Can I post a link here related to our topic or would that be spam (as it's my webpage) ? Aug 23 19:11:59 i think people might click on it out of some kind or morbid curiosity ... Aug 23 19:12:16 Well, my project is this : https://lobby.subinsb.com Aug 23 19:12:33 It allows devs to develop apps which can run on any platform Aug 23 19:12:38 * g00s slows down to check out the train wreck Aug 23 19:12:47 without changing a single line of code Aug 23 19:13:04 and no compilation as it's a web app Aug 23 19:13:49 good luck subins2000 ;) Aug 23 19:13:50 subins2000: revolutionary Aug 23 19:13:52 in theory, yes, you could define language bindings (probably having to pass through JNI) between php and android. It wouldn't look like php does on anything else. Aug 23 19:14:08 g00s: Thank you ;) Aug 23 19:14:13 Look at ASE (android scripting environment) for examples of doing native bindings via a scripting lang Aug 23 19:14:19 arancio: Do you think it's revolutionary ? Aug 23 19:14:33 Or is it just my hypermind ? Aug 23 19:14:42 you can also do native binding via js via a webview, which is what all the other "web page is an app" stuff does Aug 23 19:14:58 but doing that always makes you a second-class citizen vs actual native code Aug 23 19:15:02 dragorn: yeah Aug 23 19:15:19 what the baseline size of large icon notification ? Aug 23 19:15:30 t0th_-_ ha! i couldn't find that Aug 23 19:15:39 material design specs have nothing there Aug 23 19:15:52 until/unless google actually makes webview-based stuff behave more like native, and is able to match the speed. That's why phonegap, etc apps never look *quite* like native or run *quite* as fast, or have other weird problems. Aug 23 19:15:53 dragorn: The thing is normal web apps would only need to access user files and use GPU. With WebView and storage permission webapps can run smoothly just like it would on a PC Aug 23 19:16:01 yes, g00s Aug 23 19:16:11 subins2000 you are better off using flutter.io Aug 23 19:16:38 maybe some day they will, right now, webview based stuff is in my experience pretty obviously weirdly different from native code Aug 23 19:16:44 (How do you do that *** message thingy ?) Aug 23 19:17:08 doubly so when it tries to mimic the stock UI and runs on a manuf-themed device Aug 23 19:17:19 dragorn: For simple basic apps like games and else.. native code is not actually necessary Aug 23 19:17:25 subins2000: honestly, I hate web application on web. I would never program a desktop application as a web application. Aug 23 19:17:41 subins2000, is it doable, yes. is it still more or less a second class citizen? also usually yes. Aug 23 19:17:59 subins2000: but I'm sure your tools will have its public Aug 23 19:18:11 <``````````> for simple apps... you're probably going to do worse than react native Aug 23 19:18:12 subins2000: but not me, sorry Aug 23 19:18:20 dragorn: Lobby uses Material Design. If someone wants to develop an app that he consider would help someone he/she could create it fast and deploy it on multiple platforms Aug 23 19:18:23 <``````````> for more complicated apps.... you'll still probably do worse than react native Aug 23 19:18:35 <``````````> I'd expect you to with that attitude, at least Aug 23 19:19:04 arancio: No problemo, I should need a FOSS project that I can work on and I think Lobby is perfect for that Aug 23 19:19:23 subins2000, like I said - you can do an app in a webview. There are dozens of products which do it. I've never seen one that wasn't recognizable as a webview hack or that worked as well as a native app. Aug 23 19:19:33 ``````````: What attitude :-/ ? Aug 23 19:20:01 <``````````> dunno, just saying dumb things Aug 23 19:20:04 Google is working on making web-based apps act more like native apps - probably by exposing more of the UI callbacks, but I haven't heard much about it or looked into it. There's the continual "web apps as real apps" rumors about optimizing chrome Aug 23 19:20:07 dragorn: I would also allow users to access the localhost URL via browser Aug 23 19:20:32 <``````````> I think Facebook is writing all their apps in javascript, now Aug 23 19:20:34 <``````````> for mobile, that is Aug 23 19:20:35 dragorn: Chrome doesn't have the web store currently Aug 23 19:20:42 subins2000, not what I'm talking about Aug 23 19:21:23 dragorn: I get what you mean :) Aug 23 19:22:00 g00s: I see Flutter doesn't work on PC/Linux/Mac Aug 23 19:22:19 only for Android/iOS Aug 23 19:23:51 Hi all Aug 23 19:24:14 anyone here found any good documentation on using Retrofit 2 and Jackson rather than Gson? Aug 23 19:30:54 <``````````> michael_mbp: just tell it to use jackson? Aug 23 19:31:20 ``````````: fun handle there Aug 23 19:31:26 <``````````> literally this line: ` .setConverter(new JacksonConverter(mapper))` Aug 23 19:31:40 I've got it using jackson already, but I just haven't been able to find decent docs Aug 23 19:31:55 aye, I set a basic Objectmapper. Aug 23 19:32:14 <``````````> so something like: `new RestAdapter.Builder().setConverter(new JacksonConverter(new ObjectMapper())......build()` Aug 23 19:32:38 <``````````> or wait... old retrofit... probably not much different? Aug 23 19:32:39 yeah a new instance of ObjectMapper() but I didn't do much beyond that. Aug 23 19:32:46 works fine in Retrofit 2 Aug 23 19:32:54 just curious as to how adaptable it is though. Aug 23 19:33:01 <``````````> define: adaptable Aug 23 19:33:15 <``````````> you're programming, therefore you can make it do *anything* Aug 23 19:33:26 true. Aug 23 19:33:34 Well, my comment was relative to Gson. Aug 23 19:33:41 at least I read that somewhere hmm. Aug 23 19:34:04 <``````````> right, but you're still not really describing what you mean by "adaptable" Aug 23 19:34:29 <``````````> ie: what do you want? what do you think you want later? Aug 23 19:35:00 <``````````> a join that has only one axis of rotation is still quite flexible, but it might not flex in the direction you want Aug 23 19:35:20 well, other than performance gains, is Jackson overkill vs. Gson? Aug 23 19:35:29 <``````````> lol Aug 23 19:35:55 <``````````> sorry... that's rude of me. the question, as asked, is too broad to give a useful answer. Aug 23 19:36:06 Nah it's fine hehe. Aug 23 19:36:28 Ok, what makes Jackson "better" if at all than Gson (I've read, performance for large JSON data) Aug 23 19:38:01 <``````````> it's got more cool annotation stuff? dunno Aug 23 19:38:07 <``````````> have no idea what you're doing or what you even want Aug 23 19:38:18 <``````````> just for a meaningless comparison between an apple and a banana Aug 23 19:38:21 Actually, it does! Aug 23 19:38:26 I don't think there's an automatic converter for jackson streaming of large json Aug 23 19:38:27 <``````````> you can't have sex with the apple, but it tastes better! Aug 23 19:38:35 http://tutorials.jenkov.com/java-json/jackson-objectmapper.html#jackson-objectmapper-example by far the best reference I've found for it so far Aug 23 19:38:48 every other tutorial on Retrofit just uses Gson as an example :) Aug 23 19:38:52 <``````````> jesus Aug 23 19:39:07 <``````````> if you don't have a use case, no tool is better than any other tool Aug 23 19:39:07 that jenkov sight is fugly I admit. Aug 23 19:39:29 Use case at the moment is quite simple Aug 23 19:39:34 this tool takes 6x the method count as bonus Aug 23 19:39:48 and as I said, the basic mapper without any further tweaking works fine. Aug 23 19:40:00 <``````````> the other guy on my team seems to want to get rid of gson in favor of jackson for some reason Aug 23 19:40:12 Can he exaplain why ;-) Aug 23 19:40:28 <``````````> he probably could, but he doesn't lurk freenode Aug 23 19:40:30 *explain Aug 23 19:42:09 w000t http://www.baeldung.com/jackson-vs-gson Aug 23 19:42:12 what I was looking for Aug 23 19:42:14 damn you google. Aug 23 20:00:29 jackson is a little faster Aug 23 20:00:34 but both jackson and gson are ass Aug 23 20:00:39 reflection-based parsing ftl Aug 23 20:01:15 used to be that gson was much easier to implement due to the shallow dependency tree Aug 23 20:01:24 but that isn't the case anymore since gradle is the standard build system Aug 23 20:01:49 well, it used to be that jackson was a little faster, dunno if that's still the case Aug 23 20:02:48 pfn: faster than light! Aug 23 20:03:28 VZ Galaxy Note 7 - uninstalls Samsung Cloud (15GB free storage) and adds ... lol VZ Cloud (5G of free storage) Aug 23 20:03:36 what do you use pfn Aug 23 20:04:26 Hi all I'm trying to parse json but my i keep getting this in my log: com.example.android.newsgrabber E/buildNewsList: No value for results. The correct URL is return. Example: http://content.guardianapis.com/search?q=trump&api-key=test&show-fields=thumbnail&order-by=newest&show-tags=contributor Aug 23 20:04:35 heres my code: http://pastebin.com/Ykkt4U25 Aug 23 20:10:39 missingno, argonaut Aug 23 20:15:01 why does it take so long to upload my apk to the google play? Aug 23 20:15:16 huge app coupled with anemic upload speeds Aug 23 20:15:24 it is 5 mb Aug 23 20:15:44 do you ship your users an external drive to hold all of that? Aug 23 20:16:12 s73v3r, funny joke Aug 23 20:16:36 s73v3r, :P Aug 23 20:16:46 anyways, it’s probably crappy upload speed Aug 23 20:17:01 no Aug 23 20:17:02 and maybe a point of business for google’s receiving servers Aug 23 20:17:03 I mean Aug 23 20:17:12 it is already processing to the servers Aug 23 20:17:14 :P Aug 23 20:17:35 michael_mbp i think flatbuffer will also parse json Aug 23 20:17:35 it is in the wating for publication stage Aug 23 20:17:38 :P Aug 23 20:18:02 s73v3r, why does that stage take so long? Aug 23 20:18:25 automated review of things, propogating to servers across the world Aug 23 20:18:48 hmm Aug 23 20:18:56 waiting in queue to do those things Aug 23 20:19:17 :P Aug 23 20:19:22 are thread pools the best way to implement multiple threads? Aug 23 20:20:37 MjrTom: why do you want multiple threads? Aug 23 20:21:43 so how to write an privacy thing? Aug 23 20:22:02 My app only stores some files locally :P Aug 23 20:22:11 it does not upload files :P Aug 23 20:30:19 Is Google Analytics switching to Firebase analytics? Keep getting cross info Aug 23 20:30:21 sry puter suddenly overheated- are thread pools the best way to implement multi threading? Aug 23 20:48:58 MjrTom, in contrast to what? Aug 23 20:49:32 ThreadPools are just a way to make nice use of resources, they don't really implement anything multithreading related Aug 23 21:24:42 <``````````> MjrTom: the best way to implement multi-threading is with Clojure Aug 23 21:24:43 <``````````> :P Aug 23 21:39:09 except clojure just runs a thread pool with 8 threads Aug 23 21:45:15 <``````````> myke: in all cases or in the default simple case? Aug 23 21:45:49 <``````````> I was thinking more about everything-but-threads, though: just because you have a thread pool doesn't mean that you're handling the *rest* of what happens with concurrency Aug 23 21:45:56 <``````````> like shared state Aug 23 21:46:18 <``````````> or how data gets into and out of that mess of threads Aug 23 22:02:41 * arancio gives channels operator status to arancio Aug 23 22:07:26 ``````````: clojure solves most concurrency problem with immutable data Aug 23 22:09:08 hi all Aug 23 22:11:09 fBirD: Hi Aug 23 22:11:46 Is Retrofix the right tool to download (GET) the following text page? http://www-01.sil.org/linguistics/wordlists/english/wordlist/wordsEn.txt Does it only works with JSON data? Aug 23 22:13:07 Should I use OkHttp instead? Aug 23 22:13:14 I guess so Aug 23 22:13:46 arancio: use retrofit to only download that is like using a atomic bomb to kill a mosquito Aug 23 22:13:55 :) Aug 23 22:14:23 ok, thanks. Is what I was realizing. I guess OkHttp is the proper tool Aug 23 22:16:57 arancio: if you search on internet you lot of possible options :) but if in the future you will use retrofit to do more stuff you can use retrofit right now :) Aug 23 22:16:57 <``````````> myke: yup. atomic refs, etc Aug 23 22:17:09 <``````````> lol Aug 23 22:17:15 <``````````> retrofit *uses* okhttp, if you want it to Aug 23 22:17:18 <``````````> so use retrofit Aug 23 22:17:55 fBirD: yes, in future I will use retrofit to interact with my server but today I'm still doing simple project to learn Android features Aug 23 22:18:12 <``````````> oh.... plaintext Aug 23 22:18:41 arancio: so use the one you give you less troble Aug 23 22:18:45 <``````````> only reason I suggest retrofit is that it's easy when you have fixed endpoints that you know the output of Aug 23 22:18:51 <``````````> but if you don't know it, don't use it Aug 23 22:18:53 <``````````> ? Aug 23 22:19:00 * `````````` shrugs Aug 23 22:19:07 yeah, it's my first HTTP operation in Android ever. I'm going to use okhttp today Aug 23 22:19:15 thanks to both of you Aug 23 22:22:37 . Aug 23 22:39:14 Hello, how is called the fragment that just holds data ? Aug 23 22:40:19 wviana: what do you mean ? Aug 23 22:40:42 can you explain better? Aug 23 22:41:42 i dont think it has particular name Aug 23 22:41:51 its jsut a fragment you dont attach to layout Aug 23 22:42:28 fBirD: There is a thing to do a fragment just for holding data, I remember something like that about that when studding screen rotation in Murphy's book Aug 23 22:42:44 setRetainInstance(true) Aug 23 22:43:15 i.e. in the fragment's constructor Aug 23 22:43:20 I've found retained fragment. Aug 23 22:43:31 thank you Ashiren :+1: Aug 23 22:48:08 any recommendations for a beginner android developer (apart from headfirst and big nerd ranch)? Aug 23 22:48:36 that’s pretty much it Aug 23 22:48:45 oh, the developer.android.com site too Aug 23 22:49:15 stackoverflow :o Aug 23 22:49:34 And here if those fail you Aug 23 22:50:06 yes, Affian is available for private messages 24/7 Aug 23 22:50:18 Ok then, thanks :) Aug 23 22:50:24 Totally, just don't expect a response :D Aug 23 22:50:37 Affian: Responses in 30 minutes or your consutation is FREE! Aug 23 22:51:15 if the answer isn't hot anymore its FREE too Aug 23 22:54:00 im going to vomit Aug 23 22:54:22 then maybe go to the restroom instead of sitting in front of your computer Aug 23 22:54:48 cannot resolve .add(fragment_layout, fragment_class), am using base .app.fragment/manager/transaction Aug 23 22:55:39 every SO answer is "just change to base .app.fragment!" or "just change to the support library/fragment manager!" Aug 23 22:56:00 * Jesperhead vomits Aug 23 22:56:05 which import are you using? Aug 23 22:56:36 in the fragmentactivity: import android.app.FragmentManager; Aug 23 22:56:44 and FragmentTransaction of the same lib Aug 23 22:57:00 what’s your minSDK and targetSDK? Aug 23 22:57:09 target is 24 min i think is 15 Aug 23 22:57:56 ive tried alternating to the support lib just to check but i get the same result Aug 23 22:58:31 what’s the actual section of code? paste it in a service and link here Aug 23 22:58:43 in case of doubt, clear caches restart AS Aug 23 22:59:02 its taken straight from the tutorial lol, the only thing that changed is the variables (fragment layout and class) Aug 23 22:59:27 i don’t know what tutorial, and i’m not going to be bothered to look for it Aug 23 22:59:30 paste your code Aug 23 22:59:35 Jesperhead, probably a caching issue your auto import is screwing you with support/non-support Aug 23 23:00:41 pasting the exact error would help, too Aug 23 23:00:50 cannot resolve .add() Aug 23 23:01:00 there’s more to it Aug 23 23:01:02 darken: im waiting for the restart to complete Aug 23 23:01:12 no... i posted that initially Aug 23 23:02:21 what s73v3r means, Stacktrace or GTFO ;) Aug 23 23:02:31 and im not posting code out of laziness, it's code for work Aug 23 23:02:43 that severely limits what we can do to help Aug 23 23:03:05 i understand this. Aug 23 23:03:24 and generally when it says cannot resolve method, it will tell you the argument types you’re trying to pass in Aug 23 23:03:28 Jesperhead, if my first two ideas don't hit the issue, then you have an error somewhere else, like in the XML files. and it screws up the build Aug 23 23:03:44 the "can't resolve" is just a side symptom then Aug 23 23:03:49 i'll check the xml. Aug 23 23:09:35 ok really newbie question but how do i have a new intent/activity return value to the activity that called it? Aug 23 23:10:28 startActivityForResult() Aug 23 23:10:44 https://developer.android.com/training/basics/intents/result.html Aug 23 23:12:38 and the Activity that’s returning the result would call setResult(), and then finish() Aug 23 23:13:29 and then in the parent activity int a method or does it continue in scopre it was called Aug 23 23:13:48 you override the onActivityResult method Aug 23 23:13:58 Baah i hate java :/ LOL Aug 23 23:14:08 ok awsome thanks.. Aug 23 23:14:11 that’s not a java thing. that’s pure android Aug 23 23:14:14 let me try :) Aug 23 23:15:05 but it can only return an int? Aug 23 23:15:22 no, the int is a code. the activity returns an intent Aug 23 23:15:24 oh wait intent data Aug 23 23:19:40 are most android apps written in java? Aug 23 23:19:55 or, to rephrase, do most apps run under jvm? Aug 23 23:22:47 those are different questions Aug 23 23:22:58 most apps are written in java. Why do people constantly ask this? Aug 23 23:23:33 on Android, they don’t run under the regular Oracle JVM, they run under it’s own virtual machine Aug 23 23:23:46 used to be Dalvik, and the name of the new one escapes me Aug 23 23:24:07 ART Aug 23 23:24:12 new one is called ART Aug 23 23:24:28 on newer versions of android, they run underART Aug 23 23:24:29 (as of kitkat i beleave) Aug 23 23:24:34 yup Aug 23 23:24:48 doesn't art use dalvik to generate a binary at install time? Aug 23 23:25:21 i don’t think so Aug 23 23:26:06 isnt it bytcode that runs udner the VM Aug 23 23:27:26 "ART (Android RunTime) is the next version of Dalvik. Dalvik is the runtime, bytecode, and VM used by the Android system for running Android applications. ART has two main features compared to Dalvik: Ahead-of-Time (AOT) compilation, which improves speed (particularly startup time) and reduces memory footprint (no JIT)" Aug 23 23:27:43 ok Aug 23 23:28:00 for a result intenet of resultIntent.putExtra("mac",selectedArray[1]); Aug 23 23:28:05 String MAC = getIntent().getExtras().getString("mac"); <- whast wrong with that? Aug 23 23:28:31 don’t ask that Aug 23 23:28:39 instead, just put the error you’re getting Aug 23 23:28:54 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference Aug 23 23:29:21 looks like your intent or your extras are null Aug 23 23:29:43 are you using start activity for result? Aug 23 23:29:49 because getIntent() won't give you that result Aug 23 23:30:26 startActivityForResult(intent,1); Aug 23 23:30:28 yep Aug 23 23:30:35 okay, so you need to overrid onActivityResult() Aug 23 23:30:36 then Aug 23 23:30:42 yep did that too Aug 23 23:30:45 https://developer.android.com/reference/android/app/Activity.html#onActivityResult(int, int, android.content.Intent) Aug 23 23:30:57 its when i do Aug 23 23:30:58 String MAC = getIntent().getExtras().getString("mac"); Aug 23 23:31:04 there's an intent passed back called data Aug 23 23:31:10 so is this right .putExtra() and .getExtras() Aug 23 23:31:11 you get an intent in the parameter. that’s the one you want Aug 23 23:31:17 data.getExtras().getString("mac"); Aug 23 23:31:22 DOH!!! Aug 23 23:31:26 :) Aug 23 23:33:06 HEHE dumb mistake :( Aug 23 23:33:11 thanx Aug 23 23:34:05 Is there an easy way to create groups of data in a recycler view? Aug 23 23:34:31 no Aug 23 23:34:41 view types it is then! Aug 23 23:35:17 what do you mean groups of dat Aug 23 23:35:20 data Aug 23 23:35:22 fuck my a key Aug 23 23:36:12 I have a model class with a bunch of fields that I want to display in a nicer manner than just a list. So I'm grouping the related fields Aug 23 23:36:50 kinda like the sectioned tableview in iOS? Aug 23 23:37:08 http://farm5.static.flickr.com/4007/4273969640_8c59907977.jpg Aug 23 23:37:08 yeah Aug 23 23:37:24 you’re not gonna want to do view types for that Aug 23 23:37:38 you’re gonna want to write a recyclerview layout manager, i believe Aug 23 23:37:46 view types I'm talking about is header cell or data cell Aug 23 23:39:19 How would a layout manager help? Aug 23 23:40:40 layout manager would let you control the layout of the cells Aug 23 23:46:58 ok what am i missing here? Aug 23 23:46:59 http://pastebin.ca/3704116 Aug 23 23:47:22 <_genuser_> how is getLayoutParams() on a TextView returning null? Aug 23 23:47:33 connect failes with "read failed, socket might closed or timeout, read ret: -1" Aug 23 23:47:37 <_genuser_> it does have SOME params, such as default width/height Aug 23 23:58:37 haha figured it out Aug 23 23:58:37 not bad Aug 24 00:20:49 https://github.com/pfn/iota/blob/master/ViewTree.md Aug 24 00:29:46 <_genuser_> ok anyone use nav drawer with : Aug 24 00:29:49 <_genuser_> app:actionViewClass="android.widget.TextView" Aug 24 00:30:04 <_genuser_> I can't manage to change the dang margin on the textview. Aug 24 00:31:51 lol Aug 24 00:32:14 _genuser_ maybe chris banes has a SO post about it :P Aug 24 00:32:37 g00s: did you end up getting the 24 src? Aug 24 00:32:46 nope, not there Aug 24 00:32:54 <_genuser_> g00s: chris banes? I'm googling and looking at SO, so far nothing. Aug 24 00:33:55 <_genuser_> g00s: ah, I see one by chris banes about toolbar padding. :) let's see if this works. Aug 24 00:34:03 <_genuser_> I had to include "chris banes" in the search lol Aug 24 00:35:29 <_genuser_> so I'm using support.v4 and the drawer form it. I'm assuming it should be uniform behavior on most devices then. Aug 24 00:35:41 <_genuser_> unless samsung clusterb0rks some devices really badly. Aug 24 00:36:51 _genuser_ i'd take a look at cheese square app, see what they did Aug 24 00:37:39 If you change the array of an ArrayAdapter do you have to call any method to notify the change? Aug 24 00:37:55 the adapter owns it, use its methofs Aug 24 00:38:01 ArrayAdapter sucks Aug 24 00:38:39 oh, right Aug 24 00:40:20 <_genuser_> arancio: if you change the contents of the array you have to call notifyDatasetChanged() Aug 24 00:40:23 <_genuser_> or something like that. Aug 24 00:40:45 I added the items throught the adapter and it works Aug 24 00:40:53 <_genuser_> notifyDataSetChanged(); that will propagate it to the UI elements that auto populate stuff from the array that just changed. Aug 24 00:41:04 _genuser_: thanks Aug 24 00:41:10 g00s: thanks Aug 24 00:41:17 <_genuser_> heh, if it works ship it. you're already one step ahead of the "if it compiles, ship it" crowd. Aug 24 00:41:40 <_genuser_> g00s: thanks, I'll have to view the cheese square app. Aug 24 00:41:49 bankai_ started feeding jake wet food, i've created a hunger machine Aug 24 00:41:56 _genuser_: what that for me? Aug 24 00:42:26 <_genuser_> arancio: the cheese square app comment was for g00s Aug 24 00:42:28 _genuser_: the "if it works ship it", I mean Aug 24 00:42:33 bankai_ probably thinking, y u not give me this past 15 years Aug 24 00:42:41 hahah yeah ;) Aug 24 00:42:52 <_genuser_> arancio: yeah, sure. if it's working don't I don't question it. even if the docs say it shouldn't be working like that, heh. Aug 24 00:43:38 _genuser_: Are you saying that I should not update the array via the adapter methods as g00s said? Aug 24 00:44:13 I'm just asking. It's the first time that I use an adapter Aug 24 00:44:13 bankai_ learned a trick. jake loves strawberries. vet gave up this damn med, in capsule (powder in capsule) he kept crushing it with his teeth and spitting it out. so i cut a small incision at the top of the strawberry, slip in the capsule, give it to him .. whalla ! Aug 24 00:44:19 <_genuser_> arancio: no, I was just saying as long as it's working, stop worrying about everything else. Aug 24 00:44:27 ah ok Aug 24 00:45:08 <_genuser_> these tabs/pager demos... every single demo is doing it slightly differently. and a dev like me who only comes to android now and then, I get confused easily, Aug 24 00:45:38 it's my first adaper + networking demo. I just populated a list with some 100000 words coming from a web dictionary. The list is so long you die before you get to letter "F" Aug 24 00:45:55 <_genuser_> no dying there. Aug 24 00:45:59 <_genuser_> just use a filter. Aug 24 00:46:20 <_genuser_> where you can start typing in a edit box and it starts narrowing it down. Aug 24 00:46:30 <_genuser_> otherwise, yeah it will take you forever! Aug 24 00:46:43 yeah, in reality I would do something like that. But this is just a nonsense demo Aug 24 00:47:18 I will come back to this demo later and add the filter because I'll have to deal with long lists in my real application too Aug 24 00:47:28 <_genuser_> https://github.com/maxpower-ndrd/ListViewAutoSelect Aug 24 00:48:14 Thanks Aug 24 00:48:15 <_genuser_> shows how you can do that type of filtering as the user starts typing in. Aug 24 00:48:44 bookmarked for later. thanks Aug 24 00:48:52 <_genuser_> np, have fun. Aug 24 00:48:59 <_genuser_> now to solve my nav drawer problem, heh. :) Aug 24 00:49:57 <_genuser_> g00s: doh, cheesesquare is missing those actionviews in nav drawing, heh. Aug 24 01:49:55 is there any particular issue with publicly sharing a google maps api key Aug 24 01:50:14 i wouldn't do that Aug 24 01:50:45 so if you have an open source application that uses google maps, what would you suggest Aug 24 01:50:55 the dev uses their own key Aug 24 01:51:19 or whoever compiles and builds it Aug 24 01:51:39 ah ok thatll work Aug 24 01:51:48 orbyt_ i think iosched uses google maps - see how they put the placeholder somewhere Aug 24 01:51:59 will do Aug 24 01:56:13 yea they just have it in a string res and leave if undefined Aug 24 01:56:18 it* Aug 24 01:57:19 any note 7, s7 edge or s6 edge users? what screen protector are you using and are you happy with it? Aug 24 01:57:22 reading about it.. with curved edges glass protectors have issues sitting on the screen properly and staying there.. film screen protectors tend to peel from the edges Aug 24 02:14:18 Are there any directories that are guaranteed to be on adopted storage? Aug 24 02:28:19 looks like they fixed that view anchoring thing in 24.2.1 Aug 24 02:34:55 * capella-5x googles "view anchoring thing" Aug 24 02:38:45 capella-5x 220250 Aug 24 02:39:17 * g00s has a feeling there are more than 200K bugs in android :P Aug 24 02:40:02 heh, even moz rolled into 7 digits last year Aug 24 02:40:05 capella-5x so i found this plugin that shows mem per tab, is there one for cpu per tab ? Aug 24 02:42:14 about:performance on desktop Aug 24 02:42:37 each tsb summary can expand open Aug 24 02:45:16 cpu useage, system useage, blocked calls etc Aug 24 02:46:45 capella-5x yeah, that drives me crazy. so activity manager shows FF uing 30% cpi. but FF says all things are performing well , lol Aug 24 02:46:59 and there is only one tab open - 1% cpu lol Aug 24 02:47:56 *using 30% cpu heh Aug 24 02:49:10 only status info i know of, probably something better but I don't know Aug 24 02:49:28 Great Aug 24 02:49:37 wrong chan Aug 24 02:52:08 anyone able to get the nougat sources into Android Studio yet? Aug 24 02:52:32 dactyldev its not in the sdk manager yet, maybe you can do it manually from aosp Aug 24 02:53:10 apparently 7.1 is being used in the wild too Aug 24 02:53:30 Ok, that's what I figured. Wanted to make sure I wasn't missing anything Aug 24 02:53:44 yea I saw that too about 7.1, and some mystery "Android O" users Aug 24 02:54:37 xaviergmail .. Xavier Ducrohet ? Aug 24 02:54:51 g00s: Nope, sorry Aug 24 02:55:00 yeah me too Aug 24 02:55:15 almost took you seriously ^^^ :) Aug 24 02:55:24 now i don't have to **** ENDING LOGGING AT Wed Aug 24 02:59:58 2016