**** BEGIN LOGGING AT Thu Aug 25 02:59:58 2016 Aug 25 03:09:50 <_genuser_> GoogleApiAvailability.isGooglePlayServicesAvailable(this); anybody use this for checking play services version? Aug 25 03:10:15 <_genuser_> I have a not too old galaxy s4 and I would think the version of play services on it is enough to do gcm/fcm stuff. Aug 25 03:14:28 _genuser_ fcm is GMS 9 Aug 25 03:27:26 Hello. I have a ListView in a retained fragment. There are several items checked in the list and they are reported correctly. After the device is rotated, the items are still checked on screen but listView.getCheckedItemPositions() does not report them. If I check another item, all the checked items are reported correctly. Why is the list working in this way. Bug or not? How do I work around this problem? Aug 25 03:30:29 Ok. I found the problem never call listView.getCheckedItemPositions() in onCreateView() because it won't work correctly. Use it in onResume() instead Aug 25 03:30:37 <_genuser_> g00s: gms 9? Aug 25 03:31:07 evidently the ListView is not fully operative if it's not setup inside the parent view Aug 25 03:36:40 "That report -- Application Security in the Changing Risk Landscape -- was released yesterday by the Ponemon Institute" Aug 25 03:36:51 i read that as Pokemon Institute Aug 25 03:37:50 you kids and your pokemon... Aug 25 03:38:42 g00s: it's Pokemon, actually. It's a typo Aug 25 03:39:56 <_genuser_> pfft, I'm sure g00s is at least 50 Aug 25 03:40:09 lol not yet Aug 25 03:40:17 but my dog is like 96 Aug 25 03:40:25 <_genuser_> heh, that's old. Aug 25 03:40:39 <_genuser_> this whole gcm vs. fcm thing is bugging me. Aug 25 03:40:55 _genuser_ see the i/o videos Aug 25 03:41:15 <_genuser_> google i/o videos? Aug 25 03:41:29 <_genuser_> is there any reason to still be using gcm if I want to support minsdk 19? Aug 25 03:41:40 <_genuser_> that's the big thing I need to answer. then after that it's easy. Aug 25 03:44:28 <_genuser_> woo!! my first cardview in an app! Aug 25 04:11:41 _genuser_: I can't manage to understand what's special about cardview Aug 25 04:14:55 <_genuser_> arancio: just that it's new. looks news and my app will now look like any of the other shmancy ones. Aug 25 04:15:14 I have a Proxima Centauri b screensaver now Aug 25 04:15:18 <_genuser_> lot of apps that do really useful stuff but still have really bad UI somehow look as if they don't do much. I guess UI makes a diff. Aug 25 04:16:35 I guess so. I still haven't acquired an android taste. Actually I bought my first smartphone just to develop this application. So I'm a smartphone illiterate Aug 25 04:17:44 <_genuser_> arancio: let me educate you then. Aug 25 04:19:10 <_genuser_> 1 - smartphones are completely a waste of time unless you're using the gps app. 2 - you'll think you're being productive but just wasting your time. 3 - anything that can be done on a smartphone can be done better on the desktop/laptop, unless it's facebook type stuff. 4 - if you're easily addicted to stuff, you'll be addicted to teh tons of games or social media stuff - twitter, periscope, instagra Aug 25 04:19:16 <_genuser_> m, facebook, hangout, whatsapp, etc. etc. Aug 25 04:20:06 <_genuser_> so it's a gadget which will mostly be a time suck, but if you're really practical you might just use it for productive stuff and not get sucked into posting naked selfies online (unless you're dude, in which people will probably pay you to not post naked selfies). Aug 25 04:21:03 <_genuser_> lastly, people don't believe any of what I just said. they think omg smartphones!!! what an amazing thing. mobile this mobile that. so if you can code for mobile apps, you can make twice as much as a non-mobile dev right out of college. Aug 25 04:22:52 _genuser_: actually, I'm getting involved in mobile programming just for the money. Aug 25 04:23:37 <_genuser_> learn fast, make monies! Aug 25 04:24:09 :-) Aug 25 04:26:09 " Designing for Sustainability : A Guide to Building Greener Digital Products and Services " ~~ i think one thing to solve this is keeping phones >2 years Aug 25 04:26:40 "Chapter 7Calculating the Carbon Footprint of a Website" lol, this will be interesting Aug 25 04:29:19 how can a virtual page have a carbon footprint? Aug 25 04:32:52 wyrdtrtle of course, servers need electricity :) Aug 25 04:33:56 but coming up with the calculations for that, seem - difficult w/o knowing the exact characteristics of infrastructure Aug 25 04:34:08 true, but the server is probably on regardless of that pages existence Aug 25 04:34:11 i'm sure aws / GCE ... these #s are probably trade secrets Aug 25 04:34:57 just makes me want to kick a tree hugger in the ass with my carbon footprint Aug 25 04:42:03 wyrdtrtle don't worry, nobody taking your liberty to drown in Louisiana or wherever next gets 1-in-1000 year flooding Aug 25 04:43:55 if every human on earth reduced their footprint to zero, there is no proof it would change the climatic cycles we are going to go thru anyway. Aug 25 04:44:20 still gonna get hotter for the next several hundred yrs Aug 25 04:44:30 yup, so lets make it worse Aug 25 04:44:40 still gonna be an ice age in 1500-2500 yrs Aug 25 04:45:01 not saying we shouldnt clean up our mess Aug 25 04:45:21 just no reason to all be 60s hippies again Aug 25 04:45:31 other then the free love Aug 25 04:45:57 hippies weren't scientists Aug 25 04:46:32 nor are most tree huggers Aug 25 04:47:02 they take a good idea and go ape shit crazy with it Aug 25 04:48:50 lol, build a city on the coast and have it be 20 feet below sea level. flooding? who knew? Aug 25 04:49:22 wyrdtrtle its not just them, over 1T in real estate, all over the US is in danger. NJ, florida, etc Aug 25 04:56:26 wyrdtrtle oh 882B, my mistake. http://www.zillow.com/research/climate-change-underwater-homes-12890/ Aug 25 04:57:32 i got 1.2T mixed up with the negative equity in housing in 2012 Aug 25 04:58:30 so if you are into real estate, buy interior land a few feet up for those people to migrate ;) Aug 25 04:59:32 lol, i'm a GC, dont usually buy land, just build on it Aug 25 05:02:51 Hi. does anybody using android studio know what the different colour text in the open file tabs represent? Aug 25 05:03:21 for example I have activity_main.xml, fragment_main.xml, androidmanifest.xml all in blue, and forecastfragment.java in maroon (not red like the error colour) Aug 25 05:03:50 https://gyazo.com/aca297c82b1395824c3de4fc4c6a7f6d a screenshot if needed Aug 25 05:05:17 Faizan: are there any errors in the maroon file? Aug 25 05:05:28 none at all Aug 25 05:05:37 no idea then Aug 25 05:05:51 if there were, the filename would be squiggly underlined in red Aug 25 05:06:03 yeah Aug 25 05:06:16 yeah me neither, it only happened when i changed the target sdk version from 21 to 24 Aug 25 05:06:16 I'm sorry, I can't help Aug 25 05:06:26 everything seems to be running fine. I just hate not knowing why it changed Aug 25 05:06:31 not a problem, thanks anyway Aug 25 05:06:50 Faizan those might be things changed since last commit Aug 25 05:06:54 the user of your application will discover it then and they'll report. don't worry Aug 25 05:07:49 Oh I wish I would have actual users of this app Aug 25 05:07:54 it's for my honours project Aug 25 05:08:04 so if anything my marker will just deduct marks haha Aug 25 05:08:19 and g00s that's a good shout actually Aug 25 05:09:19 Yeah that's what it was Aug 25 05:09:32 thanks Aug 25 05:11:18 g00s never fails Aug 25 05:12:08 Does anybody have any sources on how to request internet permission on API 23+? Aug 25 05:12:32 Since I can't just add it to the manifest file. Having trouble decrypting android developers instructions Aug 25 05:16:38 Why can't you just add it to the manifest file? Aug 25 05:16:38 i think you dont need runtime permission for internet Aug 25 05:16:39 You mean runtime permissions? Aug 25 05:16:50 It's not a dangerous permission. You don't need to manually request it Aug 25 05:16:52 Yeah runtime permissions Aug 25 05:17:02 Really? I get a security exception everytime Aug 25 05:17:07 just add to manifest Aug 25 05:17:11 Aug 25 05:17:17 What exception? Aug 25 05:17:18 I've done that and it works for api < 23, but on api 23 it crashes Aug 25 05:17:28 let me copy paste the exception 2 secs Aug 25 05:17:41 I'm using Aug 25 05:18:18 What API? Aug 25 05:18:20 minSdkVersion 16 Aug 25 05:18:20 targetSdkVersion 24 Aug 25 05:18:59 have you tested it on > 23? Aug 25 05:19:02 >=* Aug 25 05:19:42 Are you trying to programatically enable/disable WiFi or something? Aug 25 05:19:43 This is the error: Caused by: java.lang.SecurityException: Permission denied (missing INTERNET permission?) Aug 25 05:19:51 Nope, just trying to get data from an API call Aug 25 05:19:55 specifically openweathermap api Aug 25 05:20:02 add permissions in your AndroidManifest.xml file Aug 25 05:20:09 I've done so, and it works for any api < 23 Aug 25 05:20:12 but not 23 or 24 Aug 25 05:20:23 and I assumed it was because of the new runtime things Aug 25 05:20:29 runtime permission update on api 23 Aug 25 05:20:33 for newer api they copied Apple ios permission mechanism Aug 25 05:20:45 which is Ok/Cancel dialog window Aug 25 05:20:45 My virtual device is version 23 and I test on a real Nexux 5X too (don't know what sdk version it's running) Aug 25 05:21:09 Faizan: where are you putting the permission? It needs to be outside of the Application tag in manifest Aug 25 05:21:20 also try Aug 25 05:21:33 https://gyazo.com/f6e916cfe25c7404f9c2bc1d59be4659 Aug 25 05:21:39 outside the application tag it is Aug 25 05:22:03 did you just take a screenshot of text :/ Aug 25 05:22:08 access_network_state should fix it then Aug 25 05:22:10 probably Aug 25 05:22:12 looks like mine Aug 25 05:22:14 Yeah probably not a good idea lol Aug 25 05:22:24 but why does it cause no errors on api 19? Aug 25 05:22:32 that's what i'm testing it on right now Aug 25 05:22:42 but it crashes on my phone which is api 23 Aug 25 05:22:43 bankai_: text doesn't animate. it's ideal for a screenshot Aug 25 05:23:06 pastebin would have been more appropriate but gyazo is 100x faster Aug 25 05:23:40 Uh, i've not really worked with manifests. Do I need to sync them with my project or anything or should the uses-erpmission just update automatically when I build? Aug 25 05:24:07 Hello, I'm getting duplicate file Exception. Aug 25 05:24:15 Which I've diagnosed to be due to jarchivelib and commons-compress. Aug 25 05:24:25 https://ptpb.pw/oARe My build.gradle Aug 25 05:24:40 http://stackoverflow.com/questions/25252741/duplicated-files-copied-in-apk-when-including-both-joda-time-and-common-io-libra Aug 25 05:24:40 I've already tried solutions like this ^ Aug 25 05:24:59 But a new duplicate file comes everytime I exlude a file Aug 25 05:25:12 what do you mean Aug 25 05:25:43 liuwenhao: didn't do the trick Aug 25 05:28:21 This is the exact error. Aug 25 05:29:07 Today I discovered "vfork() is broken; just use fork()". Aug 25 05:29:26 jerin: I have no idea Aug 25 05:29:35 We developed an android application with facebook login and we launched in play store. It was working fine till yesterday, from today morning onwards we are getting a login error saying like, "Login Error: There is an error in logging you into this application. Please try again later.". I'm using facebook sdk version-4.7.0. and i followed a same steps from documentation. Anyone knows solution for this issue?. Aug 25 05:30:26 Note :- this issue occurs in release.apk downloaded from play store and when facebook app is already installed in device already. But, it's working properly in app_debug.apk if facebook app is installed in device also. Aug 25 05:30:59 VkyVignesh_: had similar with google sign in, had to enable it in the google website admin panel Aug 25 05:31:52 login can be enabled/disable thru website, but that's for google sign in Aug 25 05:32:24 Does anybody know why else I might be getting the security exception error? Aug 25 05:32:39 I've declared the permission requests in my androidmanifest file Aug 25 05:34:33 Faizan: read my answer Aug 25 05:34:56 [06:20:02] add permissions in your AndroidManifest.xml file Aug 25 05:35:16 That? Aug 25 05:35:22 nope Aug 25 05:35:31 @squ google sign in is working properly. For facebook only i'm facing this issue. A lot of peoples are facing this issue. please checkout this link : https://developers.facebook.com/bugs/297086380683342/ Aug 25 05:35:48 I'm not sure what else you said squ Aug 25 05:36:54 my patience limit for today was exhausted Aug 25 06:09:00 <_genuser_> alright, nice! first fcm sent! Aug 25 06:14:47 Is PermissionChecker in the support library new? I had never seen it before today https://developer.android.com/reference/android/support/v4/content/PermissionChecker.html Aug 25 06:34:04 How do I write a subclass of ArrayAdapter that works with multiple choice? Aug 25 06:35:14 Specifically how do I update the check mark? Aug 25 06:40:47 better to keep boolean within your custom object class to maintain the state of enable and disable of checkboxes Aug 25 06:44:31 min2: do you mean that if I customized the appearance of the item of a list in multiple choice mode I have to handle selections by myself? Aug 25 06:46:26 yes Aug 25 06:49:03 min2: and how will the list view know which items are selected? Aug 25 06:49:56 min2: the list view must return something meaningful with listView.getCheckedItemPositions() Aug 25 06:50:18 min2: if I manage the selection what's listView going to return? Aug 25 06:56:27 if you are thinking for customizable list views with mutiple checkboxes then recommended to use RecyclerView Aug 25 06:57:08 min2: ok. thanks Aug 25 06:58:04 I don't know if we are talking about the same thing. I just wanted to have a ListView in multiple choice mode with a customized view for the list items. Aug 25 06:58:57 customizing the item view for a ListView in "no choice" mode is easy Aug 25 06:59:22 I'll read about RecyclerView Aug 25 07:08:10 How can I get the inflated object by setContentView? Aug 25 08:12:39 hey Aug 25 08:13:32 so I m facing this “problem”: I have an API, which I use with a web client, an iOS client, and I want to use it with an android client. I have the js functions ready to communicate with the API. if possible, I want to reuse this communication code inside the mobile clients. is there any way of reusing any of it ? Aug 25 08:16:09 Hmm Aug 25 08:16:52 That's something I want to see. Aug 25 08:16:57 I mean, the answer. Aug 25 08:17:26 @tilerendering Pretty sure it's not possible (although it would be nice). Although Retrofit is pretty easy/painfree to work with for APIs Aug 25 08:18:15 hm ok Aug 25 08:18:27 For native Android apps at least. I have no experience with Xamarin or Cordova/Ionic/etc. so its probably different for those Aug 25 08:18:35 would you recommend any special libraries for communicating with rest apis ? Aug 25 08:18:40 Retrofit Aug 25 08:18:41 no I m talking native Aug 25 08:18:43 ok Aug 25 08:18:50 is it free ? Aug 25 08:18:52 https://github.com/square/retrofit Aug 25 08:18:53 Yes Aug 25 08:19:04 It's by far the best API library for Android Aug 25 08:19:59 I think Retrofit 2.0+ uses OkHTTP by default? Aug 25 08:20:24 liuwenhao: yes, it uses OkHttp 3.0 Aug 25 08:21:55 ok I hope okhttp 3.0 is backwards compatible because I m using an old api here Aug 25 08:26:02 backwards compatible with *what*? HTTP/0.9? Aug 25 08:27:15 I wrote a web server that only supported HTTP/0.9 once. Aug 25 08:27:25 Now, that was in 1995, so please excuse me. Aug 25 08:27:38 I wrote it in Perl, by the way Aug 25 08:28:31 I wrote a cgi controller to bring up and down our shared-home dialup in 1998 - in C Aug 25 08:31:17 Leeds: haha dialup, I remember the days of trying to connect to the free-to-dial broadbands that would boot you off after an hour, then be impossible to reconnect to for another 30-60 mins Aug 25 08:39:30 anyone know how to use vector drawable support library? i'm trying to get vector drawables working with svg files as the keyIcon on a KeyboardView, and also use VectorDrawableCompat in the app Aug 25 08:41:53 You need to convert your svg to a resource. VectorDrawableCompat then has methods for creating Aug 25 08:51:26 oh sorry, i have already imported the svg into android studio as an xml Aug 25 08:51:30 i should have said that Aug 25 08:51:50 android.view.InflateException: Binary XML file line #23: Error inflating class android.widget.ImageButton Aug 25 08:52:53 #everydayandroidsdkupdates Aug 25 08:59:24 I have created different "values" folders according to screen densities (values-hdpi etc), but in my project view in Android Studio they arn't showing up, although they do in windows file explorer when I look in that dir. So how should I now add my different values files to the different folders?? Aug 25 09:01:09 Switch to project view instead of android view if you want to see all folders Aug 25 09:01:32 The android view collapses resources Aug 25 09:01:49 thanks SimonVT Aug 25 09:02:05 Add qualifiers when creating a new resource file if you want to keep using the android view, it'll put them in the right folder Aug 25 09:11:50 bithon: for what it's worth, you're not likely to get much response here if you're not using Java or at least the NDK Aug 25 09:12:29 the thing is, i don't want to learn another language right now, but rather learn how to develop android apps Aug 25 09:12:39 and the framework Aug 25 09:13:57 Whgat is bithon trying to use? Aug 25 09:14:15 xamarin Aug 25 09:14:19 Oh dear Aug 25 09:14:24 Just use Java ffs Aug 25 09:14:41 Or Kotlin, that's fine too. Aug 25 09:15:02 i already know c# Aug 25 09:15:13 bithon: Then learning Java shouldn't take many hours. Aug 25 09:15:27 is there a callback on each view created by layoutInfalter? Aug 25 09:15:56 im using compat LayoutInflaterFactory Aug 25 09:15:57 right. does anyone actually use xamarin here. I was wondering if it's a viable option to build anything serious ? Aug 25 09:16:29 i get a callback on each view, expect ViewGroups and Custom Views (Like support toolbar) Aug 25 09:16:35 bithon: I doubt it's a viable options. I haven't spoken to a single person who has ever built anything with it. Aug 25 09:16:45 !!! Aug 25 09:16:54 I have, however, read people's complaints about it. Aug 25 09:17:16 I just feel that java's a bit clunky Aug 25 09:17:28 never really clicked for me because all of the artificial limitations Aug 25 09:18:15 bithon: There are quite a few of those, but compared to a truly expressive language, c# is just as limiting. So, I'm sure you'll be fine :-) Aug 25 09:18:57 * jjuran_ is curious about Perl 6. Aug 25 09:19:04 theer are plenty of games written with mono - not sure how many non-game apps there are Aug 25 09:19:37 well if I was to learn java then, what other *serious* applications does java have nowadays, besides enterprise Aug 25 09:19:54 you mean apart from 1.5 billion or so Android devices? Aug 25 09:20:01 yes, apart from that :D Aug 25 09:20:09 (this was actually a serious question) Aug 25 09:20:11 brought peace? Aug 25 09:20:25 The aqueduct? Aug 25 09:20:43 i guess i can give java a go Aug 25 09:20:52 wine? Aug 25 09:21:00 the only problem i have with it is that it's virtually impossible to use vim with it Aug 25 09:21:06 uh... no Aug 25 09:21:26 i don't like using IDEs Aug 25 09:21:57 so don't use an IDE Aug 25 09:22:45 that's basically impossible when it comes to java Aug 25 09:22:50 bithon: Minecraft is written in Java. Is that serious enough for you? Aug 25 09:23:05 but you can use c#/mono without IDE? Aug 25 09:23:05 I guess I came off as arrogant when I phrased it that way Aug 25 09:23:07 what I meant is Aug 25 09:23:39 what other applications does java have, I know that it's used a lot in enterpise to build large apps and stuff Aug 25 09:23:44 but besides that i don't know much about it Aug 25 09:23:51 bithon: Lots of web server-side stuff Aug 25 09:24:00 i tried it a couple of years ago and didn't like it Aug 25 09:24:13 bithon: Have you used Jira? It's written in Java Aug 25 09:24:26 bithon: nothing stopping you writing Java in vim - I've been doing it for years Aug 25 09:24:35 Leeds: Just what I was typing Aug 25 09:24:36 vim Aug 25 09:24:45 if you want IDE support, use an IDE - if you want a text editor, use vim Aug 25 09:24:50 There are numerous languages targeting the JVM besides Java. Aug 25 09:24:51 bithon: Anyway, if you want to do Android development, it's basically Java that you have to use (or any of the languages that complie directly to Java like Kotlin or Scala) Aug 25 09:24:59 I only use vim for quick java changes tbh Aug 25 09:25:06 do you use it for everything Leeds? Aug 25 09:25:50 Leeds: Do you have some kind of special setup or are you using vanilla vim ? Aug 25 09:26:22 I use vim for everything Aug 25 09:26:26 everywhere, all the time Aug 25 09:26:30 doing python in it right now... Aug 25 09:26:39 Leeds: But you're weird. Emacs. That's where it's at :-) Aug 25 09:26:46 What's your config file for vim Leeds? Aug 25 09:27:01 I've tried using vim for more but get frustrated Aug 25 09:27:06 vim's amazing Aug 25 09:27:08 * jjuran_ uses TextWrangler. Aug 25 09:27:13 i write everything in it, except for java Aug 25 09:27:16 i can't do that Aug 25 09:27:22 jjuran_: get out Aug 25 09:27:32 loke__: I'm weird, but not weird enough to (use (emacs)) Aug 25 09:27:32 bithon: For Java, just use IDEA (or Android Studio for Android, it's the same thing) Aug 25 09:27:33 markyosullivan: :-P Aug 25 09:27:50 Leeds: It's (require 'emacs) Aug 25 09:27:51 yeah i have downloaded android studio with VIM emulation plugin Aug 25 09:27:53 but who's counting :-) Aug 25 09:27:55 but it's not the same :/ Aug 25 09:28:02 I use AS Aug 25 09:28:11 IDEA is bloody amazing. Aug 25 09:28:19 with vim plugin, yes. Aug 25 09:28:22 * loke__ has used it since... hmm... around 2001. Aug 25 09:28:47 what about eclipse ? it used to be quite popular back in the day and all of a sudden nobody's using it anymore Aug 25 09:28:53 loke__: you weren't into Eclipsing the Sun then? Aug 25 09:29:06 Eclipse?! Aug 25 09:29:15 Who said that forbidden word Aug 25 09:29:17 get out Aug 25 09:29:18 now Aug 25 09:29:29 hush hush Aug 25 09:30:14 Eclipse has always been unbearably bad. The only reason people used it was because the official Android tools were made for it. As soon as Google released AS (which is based on IDEA) people naturally left Eclipse. Aug 25 09:30:34 I've seen people use it for other Java projects Aug 25 09:30:35 I tried Eclipse for a few minutes. Aug 25 09:30:51 IDEs are for wimps and fools Aug 25 09:31:05 I can imagine Leeds has an almighty beard Aug 25 09:31:46 here's a nickel, kid... Aug 25 09:31:50 WIMPs? Windows/Icons/Menus/Pointer? Aug 25 09:32:41 ironically, after 8 years, Android just gained windowed app support Aug 25 09:33:06 How is that ironic? Aug 25 09:34:03 u dont use AS Leeds ? Aug 25 09:34:18 raoul11: pretty much never Aug 25 09:34:43 kk Aug 25 09:35:59 loke__: When I started Android Dev, I started on Eclipse, but being a PHP dev that uses phpStorm, IntelliJ felt "right" to me. Aug 25 09:39:27 I also love that Community edition of IntelliJ (all you really need for Android Dev) is 100% free Aug 25 09:39:31 hey, I'm trying to use apache.commons compress Aug 25 09:39:46 I've included the mavenCentral() and the compile lines Aug 25 09:40:07 But the Classes don't show up in the android app Aug 25 09:41:13 https://ptpb.pw/z1NJ Aug 25 09:41:18 This is my build.gradle Aug 25 09:42:56 boss called, woke me up... said "sorry, I'll let you go back to sleep"... had already overslept by 1.5h or so Aug 25 09:43:08 hey ppl Aug 25 09:44:09 I just chose “login activity” template when creating a project with android studio. gave me about 500 lines of code for just a simple login - is there any way of reducing this, maybe by using a library, some libraries that I somehow am missing ? I m not so acquainted with nowadays android devpt but I m an experienced java developer and I feel this should yield less loc Aug 25 09:44:59 Zharf: haha that's a cool boss Aug 25 09:54:00 Anyone know of a reason to get a 406 response even though the headers are correct? Aug 25 10:05:05 Can't believe there are so many broken apps with so many downloads on the store Aug 25 10:05:28 *in the Aug 25 10:06:31 But that's a good thing because it sets the bar lower for an independent developer such as myself :D Aug 25 10:08:42 I'll provide contrast with my app just by handling orientation change :O Aug 25 10:11:29 Zeuri: it would depend entirel on the server as to why you get that code. Aug 25 10:28:34 My app has somehow lost the ability to autorotate in phone mode. I'm trying to find out how to fix this. The odd thing is it works when the app launches directly over another app which supports autorotation. Does anyone have any clue how to fix this? Aug 25 10:33:02 Unless you're doing something in your manifest or activity regarding orientation, then it's unlikely to be an app issue Aug 25 10:37:48 android:configChanges is set to "orientation|keyboardHidden|screenSize". The Activity's onConfigurationChange is called only when the Activty is directly over another app in which rotation does work. Aug 25 10:42:57 what's the de facto way for creating lists with grouped items, mimicking the settings app Aug 25 10:43:14 Doesn't sound like an app issue Aug 25 10:47:25 It has the same faulty behaviour on different devices. And an older version of my app does support rotation like expected. I'm currently giving the app a huge UI makeover, and narrowing down to what exactly makes the app not rotate is pretty tricky at this point. Aug 25 10:48:32 is it possible to "freeze" some variables and inject in the running code? Imagine a big data structure which is filled by http call. If you spend for a long on that activity (for instance), every time you need to wait for the http call etc. Yes, I could use some kind of serialization, like json but it's that fast to implement Aug 25 11:08:38 ls Aug 25 11:08:44 hi all Aug 25 11:15:13 just the be clear, in order to test on Virtual Devices , I have to have an Intel based system? Aug 25 11:25:18 If you use intels system images I suppose so Aug 25 11:26:34 SimonVT, "Intel HAXM is required to run this AVD." is what I get when trying to run a AVD Aug 25 11:26:44 "Your CPU does not support required features (VT-x or SVM)." Aug 25 11:26:51 public abstract class AbstractSubscriptionButton extends LinearLayout Aug 25 11:26:53 WTF lol Aug 25 11:28:09 Sounds about right Aug 25 11:28:11 yeah ur cpu is old Aug 25 11:28:17 use a phone Aug 25 11:28:34 haxm ftw. Aug 25 11:28:39 or upgrade the cpu to something recenrt Aug 25 11:30:03 u can try using arm image Aug 25 11:31:30 pifon1, like those armeabi-v7a ? Aug 25 11:31:37 ye Aug 25 11:31:45 gotcha, I'll try Aug 25 12:01:35 i just did a system restore(windows 10) and now i cant compile Aug 25 12:01:41 i get this error: Already observed package id 'add-ons;addon-google_apis-google-23' in 'C:\Users\nika1\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-23'. Skipping duplicate at 'C:\Users\nika1\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-23-1' Aug 25 12:01:50 Observed package id 'add-ons;addon-google_apis-google-23' in inconsistent location 'C:\Users\nika1\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-23-1' (Expected 'C:\Users\nika1\AppData\Local\Android\Sdk\add-ons\addon-google_apis-google-23') Aug 25 12:01:58 > Unable to delete file: C:\SecT3\Syncotix\apps\MiningTankZD\app\build\intermediates\exploded-aar\com.android.support\animated-vector-drawable\23.4.0\jars\classes.jar Aug 25 12:03:03 and now androidStudio is stuck on a loop trying to index.... Aug 25 12:04:47 hi, am newbie android developer and i am trying to use google sign-in service as integral authentication mechanism for my small network app; i am following this tutorial: https://developers.google.com/identity/sign-in/android/ and i am confused a little about activity being opened there: it is modal, but can be closed without selecting neither of available accounts which is undesireable as i am Aug 25 12:04:53 trying to rely on this sign-in mechanism as on only and required one. What could i do about this, how can i make this activity unclosable or how to approach this correctly? Aug 25 12:08:29 i guess ill just reinstall androidStudio Aug 25 12:19:22 wow how long it takes Aug 25 12:19:41 there must be a billion files in sdk Aug 25 12:20:01 next time ill just install a couple of platforms Aug 25 12:28:19 Hi can someone help with socket programming problem? Aug 25 12:30:30 I rather need an advice actually. Aug 25 12:30:35 tushigushi, what is it? Aug 25 12:30:52 low level socket stuff or some high level protocol like websockets? Aug 25 12:31:12 DataGramSocket, Aug 25 12:32:49 Actually not even this, let me explain in details. Aug 25 12:33:29 I have server and client, and i send audio stream from client to server via datagram socket. Aug 25 12:34:23 I can send one stream, but if I have 2 or more clients i need to open a new port. Aug 25 12:37:11 So what are the rules? So if i have for example port 4435. Can i just open a new one at 4436? Aug 25 12:40:29 Now it seems like a stupid question, but I'm not sure if i see a 'bigger picture' right. Aug 25 12:48:22 is there some lib. for creating a choice mode for RecyclerView like in google Photos. the shrink animation, the check mark in the corner and everything Aug 25 12:51:28 does Android 4.3 and above support TLS 1.2 with client certificate authentication? I am getting an exception "java.security.cert.CertPathValidatorException: Trust anchor for certification path not found." This is what I am using http://pastebin.com/3ev7peZ1 Aug 25 12:53:29 my goal is to be able to establish a TLS 1.2 TCP connection (not HTTP) to a server that requires client certificate auth Aug 25 12:54:09 I have code working in C and C++. Just need to figure out how to do it in Android Aug 25 12:59:25 mndar, hmm, I've used pinned certs for TCP since 4.0 and it worked ok Aug 25 12:59:31 Hard to say what's wrong tho :/ Aug 25 13:00:05 TLS 1.2 is supported since Android 4.1 Aug 25 13:00:20 Mavrik: can u point me to any sample code? Aug 25 13:01:46 Something like this https://blog.dev-area.net/2015/08/13/android-4-1-enable-tls-1-1-and-tls-1-2/ ? Aug 25 13:04:32 Mavrik: thanks. I'll try it out. Does it do client auth? Aug 25 13:06:00 Mavrik: how did you use pinned certs for TCP in your app? Aug 25 13:07:56 By supplying them to the trustmanager to SSLFactory. Aug 25 13:08:06 There's bunch of guides on the internet about how to do it in Java Aug 25 13:08:43 is possible that autocompletetextview has a bug on imeoption that nobody fix for years? Aug 25 13:09:45 Mavrik: and then you could do client side auth as well? Aug 25 13:09:56 What do you mean by client side auth? Aug 25 13:10:14 xan_IT, yes Aug 25 13:10:31 http://stackoverflow.com/questions/2747491/autocompletetextview-on-next-highlight-next-textview-on-done-make-keyboar Aug 25 13:10:46 darken i must specify imeoptions Aug 25 13:11:02 but i need dynamc imeoption that for edittext works fine Aug 25 13:11:20 Mavrik: the server requires the client to send a certificate Aug 25 13:11:37 And you supply it in SSLFactory :) Aug 25 13:12:08 darken i have linear layout with some edittext and autocompletetextview. i put gone some element in base of context. i need next or done based on context Aug 25 13:12:30 darken with edittext works fine Aug 25 13:12:44 I'm not familiar with the issue, just saying it's not unusualy that there are sometimes long standing bugs Aug 25 13:13:41 what the lowest API to use Theme.Translucent.NoTitleBar? Aug 25 13:13:51 Mavrik: I am new to Android app development. Should I first try to TrustStore in Java on my desktop? will the same code work on Android? Aug 25 13:13:52 xan_IT, if you dynamicly change the flags, can't you always add 'actionNext' ? Aug 25 13:14:22 darken with edittext i not specify imeoption, and works fine Aug 25 13:15:08 darken it's not simple to set imeoption programmatically because i need to check if there are other edittext or ACtextview Aug 25 13:15:17 when targeting older versions, can I get a build error if I reference something that didn't exist in that version? at the moment the only indication seems to be a warning in AS Aug 25 13:15:50 chilversc, you can tell AS to abort the build on certain LINT warnings/errors Aug 25 13:16:08 not sure if it's on by default for API levels Aug 25 13:16:25 skin1980, pretty sure that works at least on API16 and there is no reason to go lower Aug 25 13:19:20 tnx darken Aug 25 13:19:36 yeah, I'm just finding it odd that it will compile fine but then would fail at runtime Aug 25 13:21:11 finding it equally odd with the obsolete markers, such as FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, it says to use new document instead, only that then warns that it wasn't added until SDK 14 (min is 10) Aug 25 13:21:47 so really, what does it expect me to do here? that whole obsolete warning seems erronous Aug 25 13:24:29 you ignore the errors until your APIlevel is high enough to do something about it Aug 25 13:24:57 the cases where it actually breaks because of deprecation are pretty rare, in those you have to think of a solution Aug 25 13:27:05 darken: right, but now I can't tell real deprication (ie using something that was depricated in 10) vs this false deprecation Aug 25 13:27:51 so it just makes the whole point of marking something depricated kinda useless since I'm now learning to simple ignore the errors as they're often wrong Aug 25 13:28:01 well actually I don't remember any such case :o Aug 25 13:28:37 so just ignore it Aug 25 13:28:54 I just want it to only show things as depricated if they were depricated in my min sdk version (as those are the things I should deal with) Aug 25 13:29:38 darken: that's my whole point, I am ignoring it, which makes it pointless, whole reason to mark something as depricated is to say, hey this needs changing Aug 25 13:30:18 only now you try and change it and get annother error saying you can't, so then you just figure it's pointless and ignore all deprication warnings Aug 25 13:31:22 make an issue ticket :) Aug 25 13:34:40 shouldnt the latest build tools work ? or does it depend on minimum target sdk of app? Aug 25 13:35:13 because after reinstalling i got an error saying incorrect build tool Aug 25 13:37:06 i fixed it by installing older build tool, just wondered Aug 25 13:38:16 need to reboot... Aug 25 13:51:57 of course data binding doesn't work with include layout Aug 25 14:01:46 When publishing a library (aar/jar) is it typical to try to keep dependency versions low so that the user of the library usually has their dependency version win out when building (default gradle build choice for multiple dependency versions is to pick the higher version)? Aug 25 14:04:29 ideal solution is to have no dependencies :) Aug 25 14:08:11 * kbs would be interested if there ever was a great answer to this :) Aug 25 14:12:49 Great seems like it would be 1) for all library publishers to ensure that major version releases never have breaking changes and 2) for all library publishers to scope their package name to the major release. Then everything is taco bueno and everyone is happy always Aug 25 14:12:57 s/Great/Great answer/ Aug 25 14:13:33 e.g. okhttp3 Aug 25 14:14:41 Maven should starting requiring major version scoped package names :D Aug 25 14:15:29 s/package names/groupIds/ Aug 25 14:23:30 hey, anybody using android studio in here ? Aug 25 14:24:01 tilerendering: yes Aug 25 14:24:46 tilerendering: easier to ask your actual question first :) Aug 25 14:27:59 yiati: I get the message that android nougat needs jdk 1.8 to run, but it actually is configured as jdk for the project Aug 25 14:29:22 on a more trivial issue: I need to somehow enter the “@“ sign in my login form on the simulator. but cant. any clue ? Aug 25 14:35:00 tilerendering: So is everything building fine with jdk 1.8 Aug 25 14:35:57 tilerendering: Also does your emulator keyboard not have an @ sign? if so then you won't be able to enter an @ Aug 25 14:36:20 ?123 key to get to the symbols Aug 25 14:36:31 @ sign is there on default emulators Aug 25 14:37:01 yiati: it s running in an emulator, yeah. anyhow, I guess I m too new with the IDE - for the second problem: i use a macbook. here to make the @ sign I need to press alt-L —> the emulator somehow doesnt take it Aug 25 14:39:36 tilerendering: http://pasteboard.co/cVrQdE7e2.png Aug 25 14:40:39 yiati: is there a way to configure it to actually take what I type in my whatever-localized-keyboard ? Aug 25 14:41:52 tilerendering: https://developer.android.com/guide/topics/text/creating-input-method.html Aug 25 14:42:48 thanks Aug 25 14:43:00 you know the issue might be that I m using a germany keyboard layout with my mac. Aug 25 14:43:21 so here, on osx, with the mac keyboard configured to german layout, the “@“ sign is reached by typing “ALT-L” Aug 25 14:43:22 yiati: re dependency-hell-solution - hm, yes - if that happened, that would be a great answer :) Aug 25 14:43:27 the android device however doesnt take it Aug 25 14:43:33 it wont be displayed. Aug 25 14:49:11 is there an something like safariviewcontroller on android? Aug 25 14:49:47 I just need a quick way to display a web page in my app Aug 25 14:51:29 Error:Data Binding does not support Jack builds yet Aug 25 14:51:30 fuck Aug 25 14:52:12 is it just me or android development team does like to not finish the tool Aug 25 14:58:17 hello Aug 25 14:59:39 when i try to use Double.toString(final_val) Android Studio says Unresolved symbol, but it also suggests that method in autocomplete. What to do? (final_val is a double) Aug 25 15:00:25 pastebin Aug 25 15:01:02 will do in an hour when I get back home Aug 25 15:01:11 I had such high hopes for jack gdrc Aug 25 15:02:13 it's basically this line: edit_text.setText(Double.toString(final_val)); Aug 25 15:06:04 trudev: https://developer.android.com/reference/android/webkit/WebView.html Aug 25 15:06:51 missingno: me too Aug 25 15:07:08 yawkat: Yup thanks. I thought there was maybe some kind of class I can use instead of creating my own Aug 25 15:07:18 su it's enought to set compileSdkVersion 23 to make it working? Aug 25 15:07:27 wrong mention whoops Aug 25 15:10:34 trudev: Also, as usual codepath has a pretty nice and easy get up and running guide, https://guides.codepath.com/android/Working-with-the-WebView Aug 25 15:11:45 yiati: Thats perfect! Thank you Aug 25 15:12:54 has anyone used webP in android to compress images? Aug 25 15:14:46 Yesterday I was trying to customize the appearance of the single item views in a ListView set to allow multiple choices. I had the problem that the ListView didn't manage the multiple selections anymore. Someone kindly suggested to use RecyclerView and I'm learning about it. In the meantime, could anybody confirm that you can't do what I was trying to do with ListView? I don't doubt the knowledge of the person who gave me that suggestion but there Aug 25 15:14:47 is always room for misunderstanding. Aug 25 15:19:53 Can you have mutliple independent apk projects within one Android Studio project? Aug 25 15:23:02 barq: I think it's called having different "modules". Right-click in your Android view in Android Studio and then New->Module and see what happens. Aug 25 15:24:13 barq: Anything is possible if you believe Aug 25 15:24:30 barq: yes you can Aug 25 15:24:31 barq: bark if it works Aug 25 15:26:18 OK, so say I have two module app1 and app2 within the same project. what if both of those apps depend on a common dependency "common"? Can you also add that to the project and reference it from both apps? Aug 25 15:26:53 Android repos responding slow for anyone else? Aug 25 15:27:46 My travis builds are soooo slooww right now. About 3x longer than normal on the install dependencies phase :( Aug 25 15:28:11 Even got a timeout on https://dl.google.com/android/repository/addons_list-2.xml Aug 25 15:28:17 Guess it could be a travis issue Aug 25 15:28:39 good morning ... Droid world Aug 25 15:29:17 my AS can't find recyclerview. I don't know i fit's related Aug 25 15:29:21 barq: yep, did you try it out? Aug 25 15:29:34 dar10s: it's night Aug 25 15:29:40 dar10s: somewhere Aug 25 15:30:47 I added the dependency compile 'com.android.support:recyclerview-v7:24.2.0' but Android Studio can't find it. Why is it so? Aug 25 15:31:49 Hello everyone, I'm pretty new to this channel and just register my nickname on freenode yesterday.I'm a rookie android developper and hoping to have fun learning and solve some of my programming issues on this channel and maybe help some people.Please to meet you all Aug 25 15:32:06 yiati: Not yet. I need to figure out how to migrate the projects from Eclipse. Whether I should export them from Eclipse and keep the structure or check out modules from version control and migrate to the new structure. Aug 25 15:32:18 I think exporting from Eclipse is better, because otherwise I lose all the dependencies. Aug 25 15:32:37 good mars 10.32 to all my aliens Aug 25 15:32:43 So I guess I would need to export every Eclipse project individually and then import into AS as modules Aug 25 15:32:47 barq: import in AS Aug 25 15:32:52 ^ Aug 25 15:33:01 Without exporting from Eclipse? Aug 25 15:33:05 barq: AS has a very nice import from eclipse feature Aug 25 15:33:19 OK, so export eclipse, then import AS Aug 25 15:33:30 arancio: because you didnt download this version of support repository Aug 25 15:33:34 or version is wron Aug 25 15:33:36 g Aug 25 15:33:40 barq: Just import AS Aug 25 15:33:49 barq: I was importing opencv in AS lately and it works quite nice Aug 25 15:34:06 So check out locally, then import from that? Aug 25 15:34:11 Or import from version control? Aug 25 15:34:40 barq: https://developer.android.com/studio/intro/migrate.html#import-steps Aug 25 15:38:29 Apparently I ahve some old gradle version distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip Aug 25 15:38:33 Even though I just updated AS Aug 25 15:39:30 First project imported successfully Aug 25 15:39:38 The projects with native code will be interesting. Aug 25 15:41:34 I'm trying to follow the tutorial at https://www.youtube.com/watch?v=9l1lfWAiHPg&t=3m45s but I can't add the large text widget to the main activity. Just shows the forbidden cursor Aug 25 15:41:41 barq: I was importing projects with native code Aug 25 15:41:45 not hard at all Aug 25 15:42:10 can anyone tell me how to fix this and/or point me to a more recent tutorial? Aug 25 15:42:31 Do I need to import in the right order from bottom to top as I need the dependencies? Aug 25 15:43:14 Hello. Does anyone know if there is a "login using microsoft account" button for android? Aug 25 15:43:16 Or even web? Aug 25 15:43:23 I am trying google but can't seem to find any... Aug 25 15:43:38 I want to login users to my app using a microsoft account. Aug 25 15:44:37 Rashad: couldn't find this? https://msdn.microsoft.com/en-us/library/office/dn631814.aspx Aug 25 15:44:38 I get "This project refers to Eclipse workspace relative paths in its project metadata. To help import the proejct, please poin to an Eclipse workspace directory. Tehre is off, sr/test/java and test. What does "off" mean? Aug 25 15:45:15 I read somewhere that "The Live SDK" is deprecated.. Aug 25 15:45:55 Leeds: Yup: scroll down a bit and you'll see the latest android OS it knows about is Jelly Bean :S Aug 25 15:48:18 OK found this: https://dev.onedrive.com/ Aug 25 15:48:38 and this: https://graph.microsoft.io/en-us/ Aug 25 15:48:48 Why the application context is NOT made globally available? Aug 25 15:50:20 I get Exceptions when trying to import the second project into AS. Aug 25 15:50:38 gordon_: sorry for the stupid question: what version of the support repository? Aug 25 15:51:08 gordon_: aren't repositories used online during the building process? Aug 25 15:51:42 This is the trace: https://ghostbin.com/paste/qny4b Aug 25 15:52:06 arancio: google repositories are quite different Aug 25 15:52:13 you can check it in download manager Aug 25 15:52:30 you need the newest version Aug 25 15:52:38 Assertion failed: steps: [ADT Import Location, ADT Import Preferences, Eclipse Workspace Location, ADT Import SDK Selection, Missing Repositories, ADT Import Issues] current: Eclipse Workspace Location Aug 25 15:52:44 also, are you sure that it's the newest version ? Aug 25 15:53:29 gordon_: no, I barely know what I'm doing, honestly. I'm going to google what you said. I have few more things to learn today, apparently. Thanks Aug 25 15:54:39 up to now, every time I needed a dependency I added the line in the gradle file and it worked magically. So I'm an ignoramus about these kind of issues. As with 90% of the Android development Aug 25 15:54:45 sadly Aug 25 15:54:58 But that's improving, day by day! Aug 25 15:57:18 ok Aug 25 15:57:44 Now I get NDK integration is deprecated in the current plugin. Aug 25 15:59:28 barq: https://stackoverflow.com/questions/31979965/after-updating-android-studio-to-version-1-3-0-i-am-getting-ndk-integration-is Aug 25 15:59:33 How do I get the context inside a custom class? Aug 25 15:59:54 purplex88: too less information Aug 25 16:00:16 *too little Aug 25 16:00:27 well i simply need to context to inflate layout Aug 25 16:00:28 purplex88: https://docs.oracle.com/javase/tutorial/java/javaOO/arguments.html Aug 25 16:00:41 purplex88: but what kind of class Aug 25 16:00:49 does it extends anything ? Aug 25 16:01:06 yes ArrayAdapter Aug 25 16:01:08 s/extend/extends Aug 25 16:01:13 damn I'm tired Aug 25 16:01:17 yiati: java? Aug 25 16:01:26 you need to pass it through constructor Aug 25 16:01:35 purplex88: Yep, you do it the same ways you pass any object to any other object Aug 25 16:01:47 gordon_: what's s/extend/extends? Aug 25 16:01:56 my grammar fix :P Aug 25 16:03:06 gordon_: how about getContext? Aug 25 16:04:00 trying to inflate layout in getView method Aug 25 16:07:00 I use ndk10 in Eclipse, dunno if ndk12 will break things Aug 25 16:08:57 Does anyone knows how to add Matrix on a Rect object I'm drawing using Canvas.drawBitmap(bitmap,src Rect,dst Rect,paint) I'm trying to rotate the dst using Matrix.Thanks for the help Aug 25 16:09:34 preference-v14 for 24.0.0 of the support library is missing Aug 25 16:09:41 That explains my failed travis builds Aug 25 16:10:58 Emmanuel: Rotate the canvas, then draw the bitmap Aug 25 16:11:22 Hey guys, I'm developing a game and I'm wondering how can I test google play game service on AVD Aug 25 16:11:29 whenever I try to it asks me to install the latest play game Aug 25 16:12:07 Remember to Canvas#save before and Canvas#restore after Aug 25 16:12:43 I have the android-ndk-r10c-linux-x86_64.bin, but when I set it in AS I get invalid ndk path. Aug 25 16:13:48 ndk does not contain any platforms Aug 25 16:16:23 SimonVT:thanks, but if you have a background before your Rect you can't just rotate the canvas there are other drawing call, it would be weird Aug 25 16:16:32 purplex88: you dont have getContext in ArrayAdapter afaik Aug 25 16:17:01 barq: I cannot help with this :( Aug 25 16:17:06 or LayoutInflater.. Aug 25 16:17:21 is that a context? Aug 25 16:17:24 purplex88: no Aug 25 16:17:42 why dont you pass context in constructor... Aug 25 16:17:55 Emmanuel: That's why you save/restore, so only the Bitmap is drawn on the rotated canvas Aug 25 16:18:20 android studio sometimes doesn't build my changes to the code no matter how many times i invoke the "run" command. when i reinstall the app it gets fixed. has this bug been reported? Aug 25 16:18:37 Had to unpack the bin. gordon_ Aug 25 16:18:37 gordon_: but i need a layoutInflator Aug 25 16:18:53 purplex88: that's actually pretty easy Aug 25 16:19:10 LayoutInflater.from(context).infalte(..); Aug 25 16:19:28 ah Aug 25 16:19:55 barq: my experiences with native code are only with opencv Aug 25 16:19:59 Are the android support libs intended to be hosted on jcenter from now on? Aug 25 16:20:01 yeah can't call getLayoutInflator from this class Aug 25 16:20:02 and it was for 2 hours ;) Aug 25 16:20:17 purplex88: I just told you how to do this... Aug 25 16:20:34 gordon_: thx Aug 25 16:20:44 will check it Aug 25 16:22:52 SimonVT: ok thanks I'll try to learn more about it on the net , I once tried matrix.mapRect() but gave me bad result. Aug 25 16:31:56 hey gang Aug 25 16:38:59 hello Aug 25 16:39:25 hello Aug 25 16:39:43 i need a bit of help deconstructing a parking app. Aug 25 16:40:02 man using support:preferences-v14 is so annoying when you usually use FragmentActivity Aug 25 16:40:13 maybe I should just use preferences-v7 Aug 25 16:41:38 a bug in a parking app meant I got a parking ticket and I want to see logfiles of what info the app sent to and from the server/database so I can prove that I had paid for parking Aug 25 16:41:54 do apps keep a record of what info is sent to and from the server in a kind of log file Aug 25 16:42:47 <_genuser_> hello people Aug 25 16:44:28 https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0 Aug 25 16:44:33 :O Aug 25 16:44:55 <_genuser_> hey g00s, got basic fcm working last nite. :) Aug 25 16:45:06 nice _genuser_ Aug 25 16:45:12 <_genuser_> didn't really realize how it's setup until now. Aug 25 16:45:31 <_genuser_> I thought you alway shave to sign up device id's, and blah blah and have specific ID in mind before sending. Aug 25 16:45:49 <_genuser_> But you can send generically to the app and all installed apps getting it, that was new to me. Aug 25 16:46:14 <_genuser_> I wonder if # of message increasing will make it not free. Aug 25 16:54:49 I'm having some issues developing with RenderScript. For some reason it does not seem like my kernel is updated to the device, even when rebuilding the entire project in Android Studio. Has anyone else had issues with changes to the kernel not appearing to be updated properly? Aug 25 17:00:47 so, I'm trying to make a ListView where in each row some text is on the left and some is on the right Aug 25 17:00:52 how can I achieve this? Aug 25 17:01:15 make a custom cell with that layout Aug 25 17:01:29 and how do i do that? Aug 25 17:01:58 here: https://developer.android.com/guide/topics/ui/layout/listview.html Aug 25 17:02:07 thanks Aug 25 18:14:08 Hello, just getting started with android dev. Can anyone point me in the right direction please?(Books, videos etc) Aug 25 18:14:55 What have you tried Aug 25 18:15:05 AlexIsEpic: Don't follow me. I'm lost. Aug 25 18:15:20 AlexIsEpic do you know Java ? Aug 25 18:16:18 StingRay_: Yes Aug 25 18:16:47 AlexIsEpic: I read "Android Programming, the Big Nerd Ranch guide". I'm reading random chapters from "The Busy Coder's Guide to Android Development" Aug 25 18:16:48 AlexIsEpic then maybe start with the offical google gettings started guides Aug 25 18:16:52 SimonVT: Can we get the standard response to this as part of the welcome message? Aug 25 18:17:12 All right, thank you people Aug 25 18:17:24 AlixIsEpic: The Big Nerd Ranch book is good. The Google Udacity course is good, although they’re about to revamp it Aug 25 18:17:51 AlexIsEpic: as for videos, I recently watched "Star Trek Beyond" Aug 25 18:19:06 AlexIsEpic: but it wasn't very useful. The imagery is exceptionally good, better than any Star Trek before but the story is lacking: the typical summer blockbuster Aug 25 18:19:28 arancio: Still waiting for the next Star Wars movie Aug 25 18:20:23 AlexIsEpic: I found "the Big Nerd Ranch guide" more useful than the google getting started guides. It's a good book to start. Aug 25 18:21:09 arancio: Will do Aug 25 18:21:48 the second edidtion is getting a little dated, but it’s still pretty good for most stuff Aug 25 18:22:54 yeah, sometimes they tell you "do so and so because there is a bug here" I guess it's so old that the bug was squashed long time ago. But these kind of issues don't spoil the readability of the book. Aug 25 18:23:54 anyone got solutions for doing seperate branded resources packaged in external apk ? Aug 25 18:24:04 I liked the fact that they show all the code in the book and all the changes, so you don't have to fetch sources from some outdated repository. You can just read the book even without a computer Aug 25 18:24:19 so default sets are app path that can be replaced easy OR overriden with seperate package download Aug 25 18:24:24 I'm a bit stuck Aug 25 18:26:48 When I did something like that, I fetched the images from the web Aug 25 18:27:13 the user logged in, and the server knew what branding images were needed, and sent them Aug 25 18:27:17 I then cached them Aug 25 18:27:36 I dont mean just images Aug 25 18:27:41 any resources Aug 25 18:28:02 drawables, styles, colors etc Aug 25 18:28:49 what’s your app setup like? There’s one app, and different branding depending on who logs in? Aug 25 18:28:57 or separate apps? Aug 25 18:29:29 same app, server decides the 'flavour' and delivers our logic map....also need resources delivered Aug 25 18:30:37 g00s: did you watch Jake's talk about method count? Aug 25 18:30:52 thepoosh no ... Aug 25 18:31:04 was that the hidden costs of java one ? Aug 25 18:31:18 https://realm.io/news/360andev-jake-wharton-java-hidden-costs-android/ Aug 25 18:31:20 yes Aug 25 18:31:28 very good Aug 25 18:31:45 JakeWharton: went around today and removed useless privates due to this Aug 25 18:31:56 lol Aug 25 18:32:20 i'm trying to wrap my head around rxjava 2 Aug 25 18:32:27 g00s: apparently, declaring something as private can cause generation of accessor methods after dexing Aug 25 18:32:39 saw the RC came out Aug 25 18:33:04 StingRay_: I don’t think you’re gonna be able to do that with external packages. I think those are only downloaded when the app is downloaded Aug 25 18:33:52 need some other method cause dont want to do client specific builds :( Aug 25 18:33:59 thepoosh i think i need an rx java 2 migration guide, its like everything changed? or not, still trying to figure it out Aug 25 18:34:06 mobile web? Aug 25 18:34:28 g00s: dunno, still wrapping my head around Rx Aug 25 18:34:36 is it just Observer Pattern? Aug 25 18:36:00 s73v3r ? that for me ? not sure what you mean Aug 25 18:36:06 it was for you Aug 25 18:36:26 StingRay_ i think you can choose which expansion apk you want to d/l when app runs ... Aug 25 18:36:36 thepoosh: thank you for updating the channel on your privates Aug 25 18:36:37 i'm not sure how many you can upload , it says '1 or 2" lol Aug 25 18:36:52 JakeWharton: I was saving Ryan's privates Aug 25 18:36:55 don't google that Aug 25 18:37:10 it's actually a real thing Aug 25 18:37:27 maybe it was shaving ryan's privates Aug 25 18:38:40 Rx is just callbacks on steroids Aug 25 18:38:49 but without the indentation hell Aug 25 18:39:17 yep. it's only real value is the API it exposes Aug 25 18:39:17 s73v3r: that's only with lambda support Aug 25 18:39:31 no? Aug 25 18:39:34 behind the scenes all it's doing is setting a listener on the upstream thing and removing it when it's done Aug 25 18:40:27 thepoosh: lambdas help, but Rx should help with the situation where you’ve got callbacks in callbacks in callbacks Aug 25 18:40:50 yo dawg, I heard you liked callbacks Aug 25 18:40:58 is there an autofix to automatically refactor package names? Aug 25 18:41:03 like inside my classes Aug 25 18:41:14 auto-imports Aug 25 18:41:30 no the package name at the top of a class Aug 25 18:41:37 eg if you copy files from another directory Aug 25 18:41:59 there’s the “move” refactoring Aug 25 18:42:09 although I don’t know if that helps if you’ve already moved the file by hand Aug 25 18:42:29 delete the wrong imports, cmd+enter new ones to freedom Aug 25 18:42:42 option+enter Aug 25 18:42:53 the one that everyone knows that you don't think about Aug 25 18:43:49 yea its just a bunch of models, didnt want to have to open each up and change Aug 25 18:44:41 sure there is a script you can write pretty fast to delete the first line from all the files Aug 25 18:44:51 and then just auto-import all that Aug 25 18:46:00 of course, this is what you get for putting your code in separate packages, let alone separate files Aug 25 18:46:37 Just drag-n-drop to another package, AS will refactor Aug 25 18:47:01 s73v3r: that is why all my code is in that one main function Aug 25 18:47:12 s73v3r: no it was from another test project Aug 25 18:47:12 inline everything Aug 25 18:47:21 s73v3r: for a client Aug 25 18:47:39 thepoosh is a straight shooter with middle management written all over him Aug 25 18:47:49 HA! Aug 25 18:48:03 orbyt_: sounds like you should be packaging as a linrary Aug 25 18:48:24 *library Aug 25 18:49:12 hi, is there a way to set the image captured by my camera to a file instead of taking the image from the actual camera via adb? Aug 25 18:50:02 what?! Aug 25 18:50:09 taking a picture? Aug 25 18:50:44 i want to "fake" my camera, instead of taking data from the actual camera I want to get it from an image Aug 25 18:51:49 Arguggi: http://stackoverflow.com/a/6165767/1056359 Aug 25 18:51:53 (taking a picture would mean just creating a copy of my starting image, thats not a problem) Aug 25 18:53:41 Arguggi: also, I'm sure Mockito can do that Aug 25 18:55:34 uhmmm, I guess what I want to do isn't feasible, I'm trying to automate whatsapp web login. Since it shows a QR code on my pc screen I thought I could simply screenshot it, copy the cropped file to the phone and feed it to the app camera. Aug 25 19:00:28 thepoosh: no, essentially I was giving a class to start rewriting before I was given access to the repo Aug 25 19:00:37 not a huge deal, its not that many files Aug 25 19:04:40 i am using some really obscure unicode characters in my app. they render fine on marshmallow. where can i get all of the exact system fonts that are installed with marshmallow so i can include them in the app and get the characters to display correctly on kitkat/lollipop? Aug 25 19:05:08 i have the font asset code already set up and working, i just want to use the exact same font as marshmallow so the app doesn't look strange with a separate font Aug 25 19:05:50 so robot? Aug 25 19:05:53 *roboto Aug 25 19:06:22 well you would think so, but the roboto i've downloaded from google fonts doesn't have the code points i need Aug 25 19:16:27 ok so i just checked inside the .ttf and the code points are actually in the font, but not displaying in the app. some are, some aren't. for example ⁴ displays correctly, but ⁵ is just blank Aug 25 19:18:45 Hey guys, I've got a Service that is running in the background and is updating a List. That list is implemented in a ListViewAdapter. Every time I update the List via the Service a IllegalStateException is thrown because I should not update the list via a non UI Thread. Whats the best solution to this? List to Singleton, send Broadcast, receive Broadcast from Activitie class and run runOnUiThread()? Aug 25 19:24:01 Don't know if it's the best solution, but this worked for me: http://stackoverflow.com/a/25250494 Aug 25 19:26:14 hi, if i change the applicationId, i need create a new application on Google Play to upload it? Aug 25 19:26:36 jimmyn, thanks this looks good Aug 25 19:26:40 heoy: https://guides.codepath.com/android/Starting-Background-Services Aug 25 19:27:46 jimmyn: heoy That stackoverflow post is the same thing as runOnUIThread Aug 25 19:28:00 runOnUIThread is a convenience wrapper around that Aug 25 19:28:29 so its just a shorthand in the Activity class Aug 25 19:29:54 yiati: If I remember correctly, I couldn't figure out how to access runOnUIThread() from within my service. Is it possible? Aug 25 19:30:12 If you want to communicate from a Service to an Activity then LocalBroadcastManager would be the way to do it https://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager.html Aug 25 19:31:00 https://guides.codepath.com/android/Starting-Background-Services#communicating-with-a-broadcastreceiver Aug 25 19:43:17 i think maybe the symbols i need are spread around various .ttf files that are included in android marshmallow by default Aug 25 19:43:30 doesn't marshmallow include basically all of the Noto fonts for symbols not covered by unicode? Aug 25 19:43:36 but there are so many and i dont know which ones i'd need... Aug 25 19:43:45 or how to apply multiple font families Aug 25 19:48:48 <_genuser_> what do you guys do for icons for your apps? Aug 25 19:49:45 draw them :) Aug 25 19:49:55 use the material icons library from google Aug 25 19:50:23 <_genuser_> material lib is a good start. But I guess I don't my app to look like any ole app. Aug 25 19:50:37 I just had to create a set of menu icons from the 90's Aug 25 19:50:43 great fun Aug 25 19:51:20 <_genuser_> from the 90s? the goal was to make it look like a 90s app or something? Aug 25 19:51:31 well yes and no Aug 25 19:51:44 more yes based on taxamology Aug 25 19:51:53 there is a UX term for ya ;) Aug 25 19:52:33 pushed the style more toward the 2000's in the end ....but still not pleased with it all Aug 25 19:52:35 <_genuser_> taxa. aa taxa. no thanks. Aug 25 19:52:40 <_genuser_> I got you UX term right here. Aug 25 19:52:46 <_genuser_> Web 2 point Oh. Aug 25 19:53:20 though average age of potential use is 63 Aug 25 19:53:37 user* Aug 25 19:53:41 * g00s googled taxamology - no good hits Aug 25 19:53:53 <_genuser_> I did a hand drawn icon set once. Using my surface pro and manga studio 5. Aug 25 19:54:25 g00s check taxonomy same thing Aug 25 19:54:37 just means study of demographics with evidence Aug 25 19:54:38 lol, except one is a thing the other isn't Aug 25 19:55:11 true Aug 25 19:55:22 wanna see a 90's phone icon ? Aug 25 19:55:29 well 2000's Aug 25 19:56:24 <_genuser_> I used to google icons and pick and choose. and that used to take forever. and then it still didn't look that great because they'd be from different themes. Aug 25 19:57:06 https://drive.google.com/open?id=0B-Vl6Tr1tOrocUFpREZKNnY4UFU Aug 25 19:57:19 disco phone era Aug 25 19:57:22 well, sorta Aug 25 19:58:00 I did more traditional icons too...well... https://drive.google.com/open?id=0B-Vl6Tr1tOroZndUeW9SR2lOS2M kinda Aug 25 19:58:10 cause they still fit the style I guess Aug 25 19:58:17 <_genuser_> self drawn? Or with a graphics artist? Aug 25 19:58:28 I dont understand the question Aug 25 19:58:34 wait...I do and yes me Aug 25 19:58:39 <_genuser_> did you draw them yourself? Aug 25 19:58:45 <_genuser_> oh ok. what do you use? Aug 25 19:58:49 actuall the phone was done on my ipad pro Aug 25 19:59:01 using app called graphic ...that has to be the best app ever Aug 25 19:59:17 https://graphic.com/ipad/ Aug 25 19:59:28 <_genuser_> no ipad here. just a surface pro 3. Aug 25 19:59:32 on my 12.9 with pencil that is just the best app ever... Aug 25 20:00:07 <_genuser_> I guess there is a use for an ipad afterall. Aug 25 20:00:26 syncs with macbook on the fly too....so I created that phone in a boring meeting (while still paying attention) and exported to png back on the mac when I sat down Aug 25 20:00:40 I really use it for work and app dev/design Aug 25 20:01:09 use graphic/procreate/paper and the creative cloud apps Aug 25 20:01:09 I am trying to load an app (not mine) and it is crashing on Android N logcat reveals the library "libsonivox.so" is missing Aug 25 20:01:14 what do I do? Aug 25 20:01:34 *can* I do anything Aug 25 20:02:05 noahmg123 you looked at https://github.com/billthefarmer/accordion/issues/2 Aug 25 20:02:11 the info is about that Aug 25 20:02:29 StingRay_: thanks Aug 25 20:02:36 noahmg123 wrong channel, this is app dev Aug 25 20:02:40 <_genuser_> StingRay_: guess I just use the surface pro with manga studio and do paitning or drawing for fun. then I upload them to deviantart thinking somebody might actually like them lol. Aug 25 20:03:10 <_genuser_> StingRay_: lately, tho, I just play Asphalt 8, lol. Aug 25 20:03:19 anyone have a link to a current procedure to force a specific name change for the app-release.apk that works with AS2.1.x ? Aug 25 20:03:27 StingRay_: I saw that. It puts it into perspective but I don't see how it can help me Aug 25 20:03:28 _genuser_ I have mediaBang paint on ipad pro Aug 25 20:03:57 glyph U+2075 (dec 8039) does not display in jelly bean, even if i specifically include a font that has the glyph Aug 25 20:04:00 any idea why that might e? Aug 25 20:04:02 be* Aug 25 20:04:24 noahmg123 you know where it is, you can check, the next thing is why is it not there Aug 25 20:04:27 <_genuser_> StingRay_: mediabang, do'nt know if they have an android equivalent. Aug 25 20:05:07 I used to have samsung note 12.2 pro....loved that thing but sammy never updated it....that why got the ipad pro Aug 25 20:05:20 StingRay_: ok, I will check Aug 25 20:05:38 noahmg123 but yes this is prob wrong channel for that stuff Aug 25 20:05:48 try #android Aug 25 20:06:49 StingRay_: I think system library issues and logcats would warrent beng in this channel. maybe not. BTW I could get it with adb pull... weird Aug 25 20:07:21 noahmg123 this is app dev not really my system and symlinks are not working Aug 25 20:07:35 StingRay_: sure. makes sense Aug 25 20:07:40 logcats are logs, nothing to do with here really :) Aug 25 20:07:47 what is the app ? Aug 25 20:11:38 StingRay_: It is a music composition app called Music Notation Aug 25 20:12:50 What does this warning means: "Unconditional layout inflation from view adapter: Should use View Holder pattern (use recycled view passed into this method as the second parameter) for smoother scrolling" ? Aug 25 20:13:01 StingRay_: they appear to be utilizing billthefarmer's, the dev who created the git repostory you linked to the issue of, mididriver Aug 25 20:13:18 so it is most likey related Aug 25 20:14:24 well if you got it from the playstore it should just work Aug 25 20:14:37 but ask around in #android for help Aug 25 20:15:22 StingRay_: Did so. still waiting. Ironically I just reset my phone from being rooted and it worked when I was rooted. Aug 25 20:15:28 \quit Aug 25 20:20:37 I'm getting this error: Error:Error converting bytecode to dex: Aug 25 20:20:37 Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl; Aug 25 20:20:47 how did I do that? Aug 25 20:21:51 If I remove compile 'com.android.support:recyclerview-v7:24.2.0' everything works fine Aug 25 20:22:13 but I need RecyclerView... Aug 25 20:22:37 arancio try doing a project clean Aug 25 20:22:59 g00s: did it. and rebuilt. same result. Aug 25 20:24:42 Im getting abunch of fastboot errors on my phone Aug 25 20:24:54 actually that error comes out when I try to run the application. Not when I build it Aug 25 20:25:19 thebluesquirel: I sense a channel mismatch Aug 25 20:26:00 arancio: ? Aug 25 20:26:18 thebluesquirel read topic Aug 25 20:26:20 thebluesquirel: what channel is this? Aug 25 20:26:21 this is not a android user channel Aug 25 20:26:47 oh... Aug 25 20:27:09 thebluesquirel: now you have to download Android Studio and write an app Aug 25 20:27:14 srry 4 bothering u guys Aug 25 20:27:21 pussy Aug 25 20:28:03 people become millionares with Android apps, nowdays. He lost the occasion of his life Aug 25 20:29:21 I have the following 2 lines in build.gradle: Aug 25 20:29:23 compile 'com.android.support:appcompat-v7:24.1.1' Aug 25 20:29:23 compile 'com.android.support:recyclerview-v7:24.2.0' Aug 25 20:29:46 is it possible that recyclerview-v7:24.2.0 depends on another version of appcompat Aug 25 20:30:02 and that I'm compiling two appcompat versions in the same project? Aug 25 20:33:12 Keep all support library versions the same. It's also possible you have a jar somewhere messing it up. And please watch your language Aug 25 20:36:58 Sorry for the language Aug 25 20:38:17 SimonVT: thanks! I used v7:24.2.0 in both lines and it worked! I will always watch my language from now on. Aug 25 20:38:36 and will watch library versions too Aug 25 20:45:25 With @AutoValue, it provides "equals and hashcode for free" - well, what if I want my own? It doesn't override my version does it? Aug 25 20:46:58 so when you use 2 classes with the same name, one of them will need to be prefixed with the entire package path (eg. "com.myapp.models.User"). Is there a way import it a way where is doesnt need to be defined like that inline? Makes the code much less readable, obviously. Aug 25 20:47:15 To specify, a way other than renaming the other class Aug 25 20:47:54 no, not really. using classes with the same name is generally discouraged Aug 25 20:49:03 I'm aware, its an intermediary change. Guess Ill just prefix the new classes with "New" or something Aug 25 20:49:16 you can use the Studio refactoring tools Aug 25 20:49:26 just rename them Aug 25 20:49:33 yup Aug 25 20:51:51 Is there any way to get the current gregorian day? Not the day of the week, but the day since the start of the gregorian calendar? Aug 25 20:52:21 There's a method using julian calendar, but that's been deprecated since api 22 and recommended I use gregorian calendar but having trouble working out how to get what I want^ Aug 25 20:54:24 Calendar has a DAY_OF_YEAR constant Aug 25 20:55:06 that’s probably used to get the day of the year Aug 25 20:55:17 sorry, not trying to be snarky Aug 25 20:56:00 I meant days since 0 AD basically, but I think I may be going about this the wrong way Aug 25 20:56:30 just write what day is i.e. 2000 then calculate from that Aug 25 20:56:41 yeah, I don’t think they’ve got something for that Aug 25 20:56:54 Mainly because I don’t know if they actually know when 0 AD is Aug 25 20:57:04 you could do days since epoch Aug 25 20:57:16 days since epoch that could work Aug 25 20:57:21 thanks for the suggestion Aug 25 20:57:48 I'm all confused with this whole julian and gregorian calendar thing lol Aug 25 20:58:14 calendars are pretty hard. that’s why it’s highly discouraged to do your own date stuff Aug 25 20:58:26 what’s the use case you’re going for? Aug 25 20:58:41 weather app, using openweathermap Aug 25 20:58:54 just trying to make sure i display the correct weather info for different timezones Aug 25 20:59:16 what’s that got to do with needing days since 0AD (or days since epoch, I guess)? Aug 25 20:59:49 it doesn't, I'm following a udacity course and they use julian calendar (course is a year or so old), and the julian calendar does something similar Aug 25 21:00:04 Faizan http://stackoverflow.com/questions/21285161/android-difference-between-two-dates how does info there not do what you want ? Aug 25 21:00:04 and I'm just trying to mimic their code using a non-deprecated class Aug 25 21:00:15 The Date and Calendar classes should take care of that for you Aug 25 21:01:10 Yeah, thanks Aug 25 21:13:05 hey quick question, why does robolectric need to point to the buildconfig? Aug 25 21:14:09 Calendar cal = Calendar.getInstance(Locale.getDefault()); is it better to use something like this, or to get an explicit timezone to get local time? Aug 25 21:14:45 getDefault should be the locale in which the person currently is, so stick to that unless you have a reason to choose something else Aug 25 21:14:46 Does anyone know if Nougat OTA update has gone to any Nexus 6? Haven't seen info online anywhere. Thought developers may know Aug 25 21:15:12 no more than anyone else Aug 25 21:15:16 try #android Aug 25 21:15:27 Nobody answers in that channel Aug 25 21:28:12 nobody is going to answer here Aug 25 21:29:35 is there a way to see how long an onDraw() function takes? Aug 25 21:29:52 i think Traceview can show that Aug 25 21:30:10 or the other one Aug 25 21:34:36 So to get days since epoch using Calendar, would I have use getTimeInMillis() and just do the maths myself? Or is there an easier way (which I can't seem to find) Aug 25 21:35:10 don’t do the math yourself. Calendar should have a way to give you the difference between two dates Aug 25 21:35:19 I still think this is the wrong way to go for what you’re doing, though Aug 25 21:35:22 you shouldn’t need this Aug 25 21:35:32 How would you recommend? Aug 25 21:35:44 Faizan did you read that link I posted ? Aug 25 21:35:44 https://gist.github.com/anonymous/52b191849947d853a50e - that's the code I'm trying to change Aug 25 21:35:49 Yeah I did StingRay_ Aug 25 21:36:09 is that not what you want ? Aug 25 21:36:43 Yeah, that's how I'm currently doing it, thanks for that, but was just curious if there were any built-in methods Aug 25 21:37:07 https://gyazo.com/b14f032c32704344570c990ac9ca14a1 I'm doing something like that right now Aug 25 21:37:26 the code you pasted has nothing to do with getting a day in the past, though Aug 25 21:38:26 I've scrapped that idea Aug 25 21:38:39 Think I was overcomplicating it Aug 25 21:38:49 All I really need now is the current (local) date since epoch Aug 25 21:39:22 And that's the way I'm doing currently doing it Aug 25 21:40:15 system time in millis should do that for you Aug 25 21:40:41 Calendar cal = Calendar.getInstance(Locale.getDefault()); i'm using that Aug 25 21:40:45 and then getTimeInMillis() Aug 25 21:40:47 that’s it Aug 25 21:40:51 which is essentially the same Aug 25 21:41:20 I'm confused as to why my calculations have 10 more hours than http://www.timeanddate.com/countdown/to?p0=1440&year=1970&month=1&day=1&hour=9&min=55&sec=0 though Aug 25 21:41:43 is yours set to UTC? or is it set to your local time zone? Aug 25 21:42:02 local Aug 25 21:42:03 utc+1 Aug 25 21:42:19 so if anything it should only be a 1 hour difference Aug 25 21:42:46 I think that website doesn't calculate it from the start of the day though Aug 25 21:42:56 if you look at hour=9&min=55 Aug 25 22:09:03 test Aug 25 22:09:36 don't Aug 25 22:10:44 Only on Android 7, we're getting TransacitonTooLargeExceptions when saving a ton of stuff onSaveInstanceState in a fragment. It works find on <7 Aug 25 22:12:16 take a look at the sources to see where that gets thrown? Aug 25 22:15:05 Hey guys I'm trying to send an image from my drawable directory via an intent. I found a solution for doing this here http://stackoverflow.com/questions/7661875/how-to-use-share-image-using-sharing-intent-to-share-images-in-android, but the top answer has a variable "Bitmap icon = mBitmap Aug 25 22:15:15 " but doesn't state where it comes from Aug 25 22:15:33 Could someone provide me with some insight on that? Aug 25 22:24:02 ah nvm figured it out, using a BitmapFactory Aug 25 22:29:09 Could someone help me implement a button onto my app that just goes to the next page on android studio. I know it's simple but for some reason I tried implementing it multiple times and it never shows. Here is how I implemented it: http://pastebin.com/rrgcer1k Aug 25 22:31:21 next page on android studio? Aug 25 22:31:56 Next screen s73v3r, which is called "Fourth" Aug 25 22:32:07 i guess the first question is, does fourth exist? Aug 25 22:32:11 yes. Aug 25 22:32:14 or is it fourthScreen? Aug 25 22:32:19 or fourthActivity? Aug 25 22:32:27 or something else? Aug 25 22:32:38 it exists as "fourth" Aug 25 22:32:44 that is what I named it. Aug 25 22:32:56 what does logcat say when you click it? Aug 25 22:33:20 have you tried putting a log message in the click handler? Aug 25 22:33:31 it's constly running right now since it's connected to my phone. Aug 25 22:33:41 also, what is init()? Aug 25 22:34:24 s73v3r: could the issue be that I am implementing it in the wrong place? Because What i did was, I took code from an online source and I just simply wanted a next button on it. It just doesn't recognize it Aug 25 22:34:39 because I have implemented a button before just itself before, and it worked. Aug 25 22:34:46 so I know the issue isn't me doing that wrong Aug 25 22:35:06 The pastebin I showed you isn't the whole code since, only the button part. Aug 25 22:35:50 would you like to see it? Aug 25 22:38:17 s73v3r: I implented it on line 86 http://pastebin.com/vsD0vdD0 . But I noticed, the person who wrote the code (Which works) implemented his buttons differently, it's on line 116. Maybe that is the issue? Aug 25 22:41:07 Like the code I wrote for the button works if I open an empty new project and run it, shows the button. Aug 25 22:41:20 is init a method called from onCreate? Aug 25 22:41:43 Yeah, I thought I would need to initialize it so it runs Aug 25 22:42:11 when you add a log statement into the button handler, do you see it in logcat? Aug 25 22:42:19 I find one of JakeWharton's comments funny, "And it [proguard] allows us to use Kotlin and other fun things guilt-free! Aug 25 22:42:19 " Aug 25 22:42:28 and does onCreate of fourth.java fire? Aug 25 22:42:38 let me see. Aug 25 22:46:37 s73v3r: no i don't see it. But When I opened an empty new project and ran this same exact code (the first pastebin link), it ran and showed button and let me go on next page. Aug 25 22:47:36 you didn’t see your log message? do you see any kind of exception/error? does the button look like it’s being clicked? Aug 25 22:48:48 s73v3r: I can't view anything in the logCat because the button never gets displayed at all when I run it on my phone, therefore no error or exception shown. Aug 25 22:49:13 the button doesn’t show? Aug 25 22:49:24 nope, it doesn't show at all. so there is no way to even click on it Aug 25 22:49:26 that’s probably a problem with your layout, then, not your button handler Aug 25 22:49:28 that's what i been facing for a while Aug 25 22:49:31 why didn’t you say that from the start Aug 25 22:49:50 I go in Res-> layout -> activity_third_screen.xml and It shows Aug 25 22:49:53 the button there Aug 25 22:49:59 button id: button2 Aug 25 22:50:05 doesn’t matter Aug 25 22:50:08 post your layout file Aug 25 22:51:22 s73v3r: http://pastebin.com/NPVt2Up3 it's the last button listed on there. Aug 25 22:51:26 the other two work. Aug 25 22:52:16 is there space for it? Aug 25 22:52:23 i’m guessing it’s being pushed off the screen Aug 25 22:53:17 i put it on the very bottom and once in the center, it didn't work but i can try placing it Aug 25 22:53:21 toward the top more Aug 25 22:54:33 no s73v3r that wasn't the issue, moved to multiple spots but never shows. Aug 25 22:55:20 Is it because of the way I placed it? Did you look at the 2nd pastebin link, because I downloaded a online source and all I wanted to do was add a 'next button'. So it can go on the 4th screen to do next action Aug 25 22:55:43 because the person who coded the connect/disconnect button implemented it differntly Aug 25 22:55:58 looks implemented the same to me Aug 25 22:56:30 s73v3r: you're looking at this link right? http://pastebin.com/vsD0vdD0 Aug 25 22:56:34 try changing alightParentBottom to be layout_below-“@id/disconnect" Aug 25 22:56:35 yes Aug 25 22:56:37 ok. Aug 25 22:56:59 although I also don’t see why you have that init method when you have setupUI Aug 25 22:57:07 best to consolidate the two Aug 25 22:59:34 s73v3r: Didn't show still, also the other person used VISIBLE/GONE to show buttons. Aug 25 23:00:04 yes, I know. You didn’t use either of those on your button, did you? Aug 25 23:00:20 No. Aug 25 23:00:32 and, does the screen look like there’s actually space for your button at the bottom? Aug 25 23:01:08 Yes. Well now the button is under disconnect. Connect button is at the very top, and disconnect is right under it. so it seems like there is plenty of room Aug 25 23:01:23 now the button is there? Aug 25 23:01:42 no, talking about .xml file, how it shows the layout of buttons Aug 25 23:01:49 on design Aug 25 23:01:52 don’t worry about that Aug 25 23:01:57 when i run app, only shows connect/disconnect Aug 25 23:02:03 does not show button2 Aug 25 23:02:43 I been trying to fix this for hours. Aug 25 23:02:48 no luck so far Aug 25 23:03:00 on your device, go to developer options and turn on the show layout bounds option Aug 25 23:03:07 it’ll draw a border around your views Aug 25 23:05:38 hi, LeTones, how are you? Aug 25 23:05:53 s73v3r: I turned it on, yeah I see boxes everywhere Aug 25 23:06:10 do you see one where your button should be? Aug 25 23:06:17 running app right now, don't see any where there should be for button2. Aug 25 23:06:40 does the box for your relative layout look like it’s big enough for it, or is it just around the other two buttons? Aug 25 23:07:34 if i look at my phone or on the design on android studio? Aug 25 23:07:58 on your phone Aug 25 23:08:01 it shows two boxes on top of each other for connect/disconnect but no box for button2 Aug 25 23:08:03 the studio design does not matter Aug 25 23:08:09 one is bigger than the other Aug 25 23:08:11 that’s not what I asked Aug 25 23:08:22 oh Aug 25 23:08:24 yes there is space Aug 25 23:08:34 there is nothing else showing up where the box for button2 should show. Aug 25 23:08:41 nor anything in its way Aug 25 23:08:44 enough for a button the same size as the other buttons? or just enough for margin? Aug 25 23:08:47 actually Aug 25 23:08:52 there is, now if i look at it Aug 25 23:09:06 because when i hit connect, a bigger box opens up for connecting to bluetooth Aug 25 23:09:13 which technically will overlap slightly if button2 was there Aug 25 23:09:38 is that the problem? Aug 25 23:10:21 maybe. the layout you showed me, is that the layout for the activity? or the layout for a fragment or view? Aug 25 23:11:10 activity. Because this app allows to search for bluetooth and a dialogue box pops up which is from the phone itself to turn bluetooth on Aug 25 23:11:21 which i didn't make Aug 25 23:12:29 when you look at the app running with the bounding boxes turned on, does it look like there are overlapping views where that button would be? Aug 25 23:13:30 no, it is empty white where the button2 should be. Aug 25 23:14:14 what happens if you hardcode the size of button2? Instead of wrap_content, set it to 50dp Aug 25 23:14:24 let me try Aug 25 23:15:22 50dp?, isn't that sort of big. i'll try Aug 25 23:16:05 no, 50dp is small Aug 25 23:16:16 nope Aug 25 23:16:17 doesn't show Aug 25 23:16:26 not at all? No bounding box for it? Aug 25 23:16:34 nope, not even a bounding box Aug 25 23:17:07 is it because of init and setupUI, some issue there Aug 25 23:17:29 no, although I’d suggest getting rid of init, and putting that button click in setupUI Aug 25 23:17:53 set the sizes of the connect and disconnect buttons to 0dp Aug 25 23:18:02 also, set the background of your relative layout to green Aug 25 23:18:08 or some bright, wacky color Aug 25 23:18:48 I mean if it was a color issue, wouldn't it have done something even tapping in the region to go to the 4th screen? Aug 25 23:18:56 no, this is to test something else Aug 25 23:19:00 ok Aug 25 23:22:21 s73v3r: I did android:background="@color/red" in ativity_third_screen.xml and ran it. I don't see anything different. Aug 25 23:22:37 that means this layout isn’t being used Aug 25 23:23:08 you did that for the relative layout, right? Aug 25 23:23:11 the root view Aug 25 23:23:21 yes Aug 25 23:23:23 relative layout Aug 25 23:23:30 yeah, this file isn’t being used Aug 25 23:23:45 do you have different versions of the layout in different size buckets? Aug 25 23:23:59 like, do you have res/layout, and res/layout-hdpi, for instance? Aug 25 23:24:21 or res/layout-v19? Aug 25 23:24:50 er I dont believe so, I am looking at res-> layout. And it just shows my .xml files there labaled accordingly Aug 25 23:24:53 is that what you mean? Aug 25 23:25:27 i mean in res/, do you have more than one layout folder? Aug 25 23:25:34 one sec. Aug 25 23:26:41 I went into the folder and opened res and it's empty. Aug 25 23:27:17 no you didn't Aug 25 23:27:53 you’re looking at the project view in Android studio Aug 25 23:28:00 res/ is not empty Aug 25 23:28:43 well if I look at the left hand corner and press the drop down on res s73v3r Aug 25 23:28:58 I do see hdpi/mdpi, but that is located under mipmap Aug 25 23:29:40 what about layout Aug 25 23:29:56 s73v3r: http://imgur.com/4hHNqT6 Aug 25 23:30:35 then why did you say it was empty? Aug 25 23:31:02 I misread what you said and I went into the folders where it's downloaded Aug 25 23:31:08 my bad. Aug 25 23:31:29 login is my first screen -> main -> third_screen -> fourth Aug 25 23:31:43 so you changed the background of the relativelayout to red, and you didn’t see any red on the screen when you got there Aug 25 23:32:11 yes I changed it on activity_third_screen.xml and put it at the very top, it shows even a red square box next to the code to indicate red Aug 25 23:32:16 and nothing on screen when i run app. Aug 25 23:32:25 i see no red on my phone. Aug 25 23:32:41 but you still saw the two buttons? Aug 25 23:32:46 yes. Aug 25 23:32:59 and they work, they search for bluetooth and list them and allows me to disconnect. Aug 25 23:33:15 delete the app from your phone and try building it again Aug 25 23:33:36 either the layout file isn’t the one being used, or the app isn’t updating Aug 25 23:33:43 delete the cache? This is an old android phone, how do i 'delete' an app when i dont even see it downloaded. Aug 25 23:33:51 on downloads Aug 25 23:34:05 you go under settings->apps and find it there Aug 25 23:35:30 on some phones, you can long press the app’s icon in the launcher, and it will give you an option to uninstall Aug 25 23:35:56 alright, re-running it. Aug 25 23:36:27 nope. Aug 25 23:36:29 still the same. Aug 25 23:36:31 also, the size of the buttons, what are they? Aug 25 23:37:17 How do i check? doesn't show size on hardcode Aug 25 23:37:27 i mean in the layout. what’s it set to Aug 25 23:37:45 it's just set to wrap_content Aug 25 23:37:49 . Aug 25 23:37:51 ok Aug 25 23:38:32 i think the xml file isn't being used because if the red isnt showing, which it is on android studio. hm Aug 25 23:38:42 that’s what i said Aug 25 23:38:48 i know Aug 25 23:38:52 but i don't know how to fix that Aug 25 23:39:39 which is weird because i set this up when i did connect/disconenct Aug 25 23:39:41 well, you can test by making a new layout file and setting that to be what the activity loads Aug 25 23:40:23 you’d probably want to comment out the setupUI method, or at least any parts where you’re accessing the connect and disconnect buttons Aug 25 23:45:42 ok s73v3r Aug 25 23:46:11 and are you entirely sure this activity is getting started? Put a breakpoint in onCreate and make sure it gets hit Aug 25 23:46:23 this makes no sense lol. I commented literally ALL of the code out on thirdScreen.java, so it shoudnt even allow to search for bluetooth or anything, nor display anything Aug 25 23:46:31 but when I ran it, it does everything as if the CODE was there Aug 25 23:46:32 wtf? Aug 25 23:47:03 it even searched for bluetooth when i disabled to search for that Aug 25 23:47:18 is this the problem? it's using some old version and never showing new compile Aug 25 23:47:26 quite possibly Aug 25 23:47:33 you deleted the app from your phone, right? Aug 25 23:47:44 and you set a breakpoint in onCreate of your activity to ensure it’s getting run? Aug 25 23:49:30 er, I just noticed I deleted the wrong app because I been doing so much testing that most of my apps are renamed like test, test1. etc Aug 25 23:49:35 let me try now. Aug 25 23:49:36 one sec. Aug 25 23:50:11 ok good, it updated and shows nothing now (everything is commented out) Aug 25 23:50:17 now i'm going to place that code back in and run it. Aug 25 23:50:22 and see if i see the button or red background. Aug 25 23:51:33 downloading apk... Aug 25 23:51:38 . Aug 25 23:52:15 YES s73v3r Aug 25 23:52:20 it is showing it! Aug 25 23:52:29 the button? Aug 25 23:52:31 Oh god, the amount of time this took. Aug 25 23:52:34 shows button and red screen Aug 25 23:52:39 and allows me to go to next page. Aug 25 23:52:48 It was this simple...just deleting the app.... Aug 25 23:52:53 and i spent hours thinking it was code Aug 25 23:52:54 wonder why it wouldn’t install the newer version Aug 25 23:52:59 no clue. Aug 25 23:53:06 but thanks, that helped. Aug 25 23:53:14 you’re plugging the phone in and hitting “Run” in Android Studio, right? Aug 25 23:53:28 the phone is always plugged in, and yes I hit run and select my phone. Aug 25 23:53:34 on android studio. Aug 25 23:54:06 Is it because this is an old android phone? Aug 25 23:54:13 how old is old? Aug 25 23:55:21 it's a LGL34C, Aug 25 23:55:28 no idea what that is Aug 25 23:55:40 although, i’d imagine that if it couldn’t install, it’d pop up an error box Aug 25 23:55:46 well, it's something that you won't ever see in someones hand in 2016. Aug 25 23:56:06 I only use it for testing purposes. Aug 25 23:56:18 it's version 4.4, idk if that helps s73v3r Aug 25 23:56:24 "Android version 4.4" Aug 25 23:56:32 shouldn’t be that bad Aug 25 23:56:49 well, at least this got solved and I can move forward with the app. Aug 25 23:57:02 thanks again though., Aug 25 23:57:03 . Aug 26 00:03:34 morning. is there a channel for android-system development, not apps? Aug 26 00:03:45 #android-root is the closest there is Aug 26 00:03:55 hmh ok, thanks Aug 26 00:04:15 unless there’s an xda channel Aug 26 00:04:29 ooh good idea Aug 26 00:05:08 s73v3r: I believe you named a Java book to read earlier Aug 26 00:05:14 what was the name? Aug 26 00:05:31 i mentioned the Big Nerd Ranch book for Android earlier Aug 26 00:05:41 I’ve also mentioned Head First Java, I think? Aug 26 00:05:49 hm, will look into it. Aug 26 00:07:21 well. I'll cya later s73v3r. Getting off for now. Aug 26 00:08:34 Bye, LeTones Aug 26 00:09:12 bye, s73v3r Aug 26 00:10:02 arancio: Aug 26 00:10:06 LeTones: are you learning Java? Aug 26 00:10:08 you asked for me earlier, what's up Aug 26 00:10:20 well yeah and android dev at same time Aug 26 00:10:29 I only know C, so i just jumped in knowing that Aug 26 00:10:32 LeTones: I just said "hello", basically. Nothing relevant Aug 26 00:10:45 ah. Aug 26 00:13:29 cya later. Aug 26 00:29:45 coming up to speed. i see tablelayout is not mentioned in many blogposts, but relative is. is tablelayout not used as much anymore? Aug 26 00:39:03 it's never been used much Aug 26 01:29:12 Is it wrong to say that HTTP, REST and hypertext are over- and mis-used in today's Internet? Aug 26 01:29:47 Is it a bad idea to force a player to constantly have a network connection to be able to play? even for single player? this is to prevent cheating, slutions have to be verified against the backend server so that the player cannot just decompile the APK and then cheat. Aug 26 01:30:52 Does anybody know if an android phone can do radar app Aug 26 01:31:42 raskolnikvosmoth: is there money involved? Aug 26 01:31:43 Basically is there any hardware devices via usb or something to make android have radar capabilties or sonar capabilities for like fish finding or speed detection Aug 26 01:32:17 I was just wondering if one can buy a smartphone with this so he could uses it for cool things like fish finding apps or other things Aug 26 01:32:53 I have seen apps that are thermometers but i don't get that because i don't think these phones have temperature sensors in them? Aug 26 01:32:58 Guest32489: there are USB radar devices Aug 26 01:33:56 any sonar for fish finding or locating big fish Aug 26 01:34:00 Guest32489: smartphones do have temperature sensors Aug 26 01:34:12 Guest32489: google Aug 26 01:34:15 really which phones Aug 26 01:34:26 older or newer models Aug 26 01:34:29 they don't have temperature sensors that are usable Aug 26 01:34:42 you have cpu, charger and battery temp, primarily Aug 26 01:34:49 But i have seen temperature apps Aug 26 01:35:01 arancio: well not like poker or betting or casino. but as a player if you get stuck i plan to add so that you can pay to skip a level. also, there will be leaderboards and multiplayer and i want them to be authentic. Aug 26 01:35:10 it won't tell you room temperature Aug 26 01:35:17 no matter the app Aug 26 01:36:08 Guest32489: you can find those informations with google Aug 26 01:36:35 ok thanks what is in them normally just wifi, gps, 3/4g hardware Aug 26 01:36:59 for useable hardware Aug 26 01:38:30 arancio: i missed if you ansswered, can you repost? Aug 26 01:38:33 question is, maybe it is better to live with a little bit of cheating Aug 26 01:40:14 raskolnikvosmoth: I guess so. Solution to the games should not be stored in the application but downloaded during the game. In this way either you costantly use an hacked app or you can't cheat Aug 26 01:42:23 raskolnikvosmoth: after all you can hack a multiuser first person shooter to have a "auto-aim" feature so that you never miss a shot to the A.I. Aug 26 01:42:31 raskolnikvosmoth: but it's quite complicated Aug 26 01:42:36 arancio: that is an interesting suggestion, to download some levels eahd of where you are. rather than check for every level. that way you dont need constant network connection and you dont have to make so many reuqetss to the backend (which might eat upmy quota). thanks! Aug 26 01:46:56 I've been helpful to someone! Aug 26 02:09:55 Guest32489 if you create the HW , sky is the limit ;) Aug 26 02:11:09 canon 5d mv iv ... :O Aug 26 02:13:23 There is no need to create the hardware for the purposes he mentioned Aug 26 02:14:01 fish radar ? Aug 26 02:15:12 https://www.amazon.com/Portable-Smartphone-suitable-Fishing-Compatible/dp/B00T9EK01W Aug 26 02:15:31 http://reelsonar.com/ Aug 26 02:15:41 he just needed to google Aug 26 02:17:11 neat :) Aug 26 02:18:31 :) Aug 26 02:26:16 Free application includes fish activity calendar Aug 26 02:26:42 wonder if that adds events to gcal Aug 26 02:31:04 poor whatsapp users Aug 26 02:31:11 <_genuser_> anybody use firebase database? is it worth it to use fire db over writing your own services, hosting your own db and hosting the entire webside? Aug 26 02:33:59 interesting, so Android 7 requires vulkan to pass CTS ... Aug 26 02:38:50 _genuser_: it depends. What if your application needs to access to 40 TB of data? You can't use firebase. In other cases you can. Aug 26 02:40:06 <_genuser_> arancio: fcm messages back and forth between users. user registrations, devices id storage, etc. etc. confgiuration storage. with my small circle of people who I will deploy it to, probably won't come to even 1GB or data transfer per month. Aug 26 02:40:44 <_genuser_> if I were to have a bigger userbase, the cost of migration might be more in terms of time and effort. I guess, I could worry about it later. Aug 26 02:42:10 then if you can work with a "document" db instead of a RDBMS firebase looks like a good choice Aug 26 02:42:27 I don't have a personal experience tho. Aug 26 02:42:52 But it would be cool to have that kind of syncronization with a typical RDBMS system. Aug 26 02:43:41 g00s: ? Aug 26 02:43:48 I still don't know how to resolve the syncronization problems myself. People do that so I'll figure it out **** ENDING LOGGING AT Fri Aug 26 02:59:59 2016