**** BEGIN LOGGING AT Mon Jan 09 03:00:01 2017 Jan 09 03:22:20 Moggle: Re: fragments, I found these links helpful: Jan 09 03:22:47 http://stackoverflow.com/questions/8617696/what-is-the-benefit-of-using-fragments-in-android-rather-than-views Jan 09 03:22:58 And http://stackoverflow.com/a/32390043/1813403 Jan 09 03:23:11 And http://stackoverflow.com/questions/24647078/android-activity-fragment-responsibilities-for-data-loading/24647574#24647574 Jan 09 03:23:27 Which in turn refers to http://www.i-programmer.info/programming/android/6996-fragment-and-activity-working-together.html Jan 09 03:24:07 This article talks about the reasoning behind why fragments were introduced: http://www.informit.com/articles/article.aspx?p=2126865 Jan 09 03:24:26 Note that there are people who advocate against heavy use of fragments, I don't know all of the arguments yet. Jan 09 03:24:38 That second link is so wrong. The data needs to be persisted anyway; Fragments don't help there. Jan 09 03:24:54 The StackOverflow answer? Jan 09 03:25:04 Yeah. Jan 09 03:25:55 "By storing the information of interest within the Activity, the Fragment for each screen can simply access the object reference through the Activity." Jan 09 03:26:00 And what happens when the activity goes down? Jan 09 03:26:13 Activities are short-lived objects. Jan 09 03:26:37 We can't really get around the issue of having to store data in a Bundle. Jan 09 03:26:46 Hm. Jan 09 03:27:25 What do you think of this site: https://github.com/googlesamples/android-architecture Jan 09 03:27:37 I was thinking that I really need to make time to read some good examples. Jan 09 03:28:36 I think that's Google's own work. I presume it's good. Jan 09 03:28:42 Haven't looked deeply. Jan 09 03:30:29 I just feel like I need some examples of How To Do It Right. Jan 09 03:30:42 Or perhaps the opposite, an overview of pitfalls to avoid. Jan 09 03:30:54 "Never get involved in a land war in Asia" and all that. Jan 09 03:32:11 MVP is all the rage on Android lately. Don't know of any tutorials, though. :E Jan 09 03:32:13 Jan 09 03:32:16 Oops. Jan 09 03:33:17 This is neat: https://developer.android.com/studio/write/draw9patch.html Jan 09 03:41:57 So, I'm reading this web page on hidden pitfalls of AsyncTask. And I'm trying to debug this app that uses AsyncTask to handle an UDP connection to a client system. Jan 09 03:42:12 What would you recommend as the right design/approach for this situation: Jan 09 03:45:08 I have a tablet app that's the control interface for a remote drone. I have an android app running on the drone. The tablet app has a map style interface (like google maps, but built using the mapbox API). It shows the drone's location, the user creates waypoints and the drone goes from waypoint to waypoint. Jan 09 03:46:03 The two apps use UDP to communicate with each other, so obviously there has to be some sort of asynchronous thread that connects the tablet UI to the UDP networking stuff. Jan 09 03:46:27 The existing code uses an AsyncTask for that. Jan 09 03:58:50 puff: I would use a Thread for that, since it will run indefinitely Jan 09 03:59:16 puff: I have no experience with services but maybe a service could be appropriate Jan 09 04:00:18 puff: what if the drone falls onto somebody? Jan 09 04:02:09 puff: could you blame mapbox for that? Jan 09 04:03:56 Nope. Jan 09 04:04:02 It's a boat, anyway, so. Jan 09 04:04:13 Melatonina: I'll look into services, thanks. Jan 09 04:07:29 AsyncTask is for tasks with a short duration Jan 09 04:08:57 puff: is the drone for playing or does it have a purpose? Jan 09 04:22:00 Melatonina: It has a purpose. Jan 09 04:22:19 Cool Jan 09 04:22:50 Melatonina: Chemical sampling, mainly, though I'm sure they're open to other customers. Jan 09 04:23:17 That is, sampling water to check for various chemicals, etc. Jan 09 04:24:06 Are you enjoying the job? Jan 09 04:24:25 Melatonina: Not especially :-). Jan 09 04:24:33 :) Jan 09 04:24:44 Melatonina: It's a tiny startup, the CEO is a good guy. Jan 09 04:25:21 Melatonina: And I've been meaning to sink my teeth into android... Jan 09 04:25:56 Or to put it another way, I've been meaning to get my hands dirty with android, and this seemed like a good opportunity. I just didn't realize it was going to be the Agean Stables. Jan 09 04:26:12 That's Augean Stables, sorry. Jan 09 04:30:15 Are you working from a long time on this project? Jan 09 04:31:17 Wow a Hercules reference on this channel, nice Jan 09 04:32:54 Hercules was a puss. lol Jan 09 04:33:37 Yeah, I noticed it too. Star Wars references are more common among software developers. Jan 09 04:34:52 Melatonina: From a long time? No, I just started on this a few days ago. Jan 09 04:35:05 Melatonina: I can do star wars references too :-). Jan 09 04:35:15 Melatonina: In fact, I'll bet most of you can't pass my Star Wars Pop Quiz. Jan 09 04:35:40 I'm sure I can't Jan 09 04:35:47 ...without googling :-). Though only one of the questions is probably googlable. Jan 09 04:35:53 It's only three questions. Jan 09 04:36:01 Wait, I added a fourth question for extra credit. Jan 09 05:13:46 how do you hide the text in the bottom navigation view? I tried android:title="" but that just makes a blank space and the icon is no longer vertically aligned Jan 09 05:15:34 ? Jan 09 05:20:59 any way i can backup app data by using only adb pull? Jan 09 05:21:13 have access to root adb through TWRP, but can't boot phone Jan 09 05:21:23 trying to extract as much useful data as possible Jan 09 05:52:18 geosmin: Hm, I guess it depends on where the app stashes its data. Jan 09 05:53:22 geosmin: http://www.howtogeek.com/125375/how-to-create-a-full-android-phone-or-tablet-backup-without-rooting-or-unlocking-your-device/ Jan 09 05:53:45 puff: unfortunately i can't use Jan 09 05:54:07 'adb backup' only things like 'adb shell' and 'adb pull' Jan 09 05:55:38 Hm. Well, in the distant past I used adb pull to extract various app data. This was 4+ years ago. I just had to figure out where each app kept its data on the file system and copy that file. I have heard that android now makes it easier for apps to manage data and back it up to google, I'm not sure how that may invalidate the approach I took in the past. Jan 09 05:56:31 i ran tar on /data/data/*, hope that covers most of it Jan 09 05:58:20 geosmin: Dunno... a lot of the data on an android device is automatically backed up to google. Jan 09 05:58:46 geosmin: And a lot of (most?) apps back their data up to a server too. Jan 09 05:59:11 geosmin: One suggestion I'm seeing is to use nandroid, which requires you to install something like clockworkmod on your firmware. Jan 09 05:59:18 But that does *not* mean it's rooted. Jan 09 06:20:31 Can someone please help me. My icon isn't showing in the top menu bar. There is space for it. http://i.imgur.com/e3Ey49o.png Jan 09 06:21:00 I even have app:showAsAction="always" Jan 09 06:21:42 fattest: Sorry, I'm a newb and everybody else is idle. Jan 09 06:21:52 damn Jan 09 07:05:15 morning Jan 09 07:11:27 * raoul11 thepooshes thepoosh Jan 09 07:13:16 raoul11: hi hi hi Jan 09 07:13:23 how's life treating you? Jan 09 07:13:25 hi buddy Jan 09 07:13:29 cold Jan 09 07:13:32 so cold Jan 09 07:13:41 I think my project of annotation processing might have been to much in to little time Jan 09 07:13:52 *too Jan 09 07:15:06 any snow around Jerusalem this year? Jan 09 07:15:21 no snow Leeds, only blood Jan 09 07:15:35 yeah :( Jan 09 07:15:37 thepoosh: processing? Jan 09 07:15:43 thats very sad Jan 09 07:15:57 yeah, we have auto generated code and the script generating it is sucky Jan 09 07:16:08 so I've been side projecting myself to rewrite it Jan 09 07:16:27 thought I'll make it a side project of Annotation Processing Jan 09 07:16:47 but 1. this might break people's code unexpectedly due to remote changes Jan 09 07:16:57 2. might be an overkill project Jan 09 07:17:11 but it will allow me to learn Rx and annotation processing Jan 09 07:17:13 which is cool Jan 09 07:17:21 so I might do it for myself and not push it Jan 09 07:17:57 Leeds: have you ever tried AP? Jan 09 07:18:29 I don't know what that is, so probably no... Jan 09 07:25:22 Is it possible to spoof the "High Accuracy" GPS mode. Some apps simply won't run on the basic GPS Location mode. (yes Im rooted) Jan 09 07:27:57 http://www.klaasnotfound.com/2016/05/27/location-on-android-stop-mocking-me/ Jan 09 07:37:19 So thepoosh if I could intercept the API call that asks for "HIGH" or "BALANCED", then basically discard it but pretend everything's okay, maybe that would suffice. Jan 09 07:37:39 But wow, I am not going to start learning android and java programming for that. Jan 09 07:39:00 callq: you're aware that you're in the app-dev channel, right? Jan 09 07:39:16 hi, is it a good idea to store the google play licence key as a string resource, as opposed to hard-coding in the java file where billing is initialized? Jan 09 07:39:21 You see, most apps behave okay, although some bully you (google products because they love collecting data) and some are just plain broken, e.g. "You need high accuracy" -> prompt with Ok/Cancel (where Cancel usually keeps it turned off [note:google doesnt include Dont Ask Again]) -> app stuck in loop, forcing you to enable it to continue. Jan 09 07:39:39 Oh I thought this was general android-development, tweaking things, etc. My bad Leeds Jan 09 07:39:41 iprime: it should be in a json file in the app/debug or app/ Jan 09 07:40:25 oh? where do I get this json from, is this new? usually I get the key from the google play console Jan 09 07:40:52 callq: when you write something like "I am not going to start learning android and java programming for that" you automatically lose everyones attention Jan 09 07:41:04 iprime: it's generated from the google backend Jan 09 07:41:11 firebase.google.com Jan 09 07:41:23 I don't use firebase, it's about in-app purchahes Jan 09 07:41:23 and is usually used from that Jan 09 07:41:26 that licence key I mean Jan 09 07:41:26 oh Jan 09 07:41:41 well, why wouldn't you be able to save it as a string res? Jan 09 07:41:53 sure I am, just wondering if it's a good idea Jan 09 07:42:00 all examples point to hard-coding it Jan 09 07:42:08 in multi-flavored apps that won't work Jan 09 07:42:54 iprime: you can set it from the build.gradle Jan 09 07:42:55 thepoosh, yeah java devs are usually like that Jan 09 07:43:09 callq: not sure what you're aiming at Jan 09 07:43:40 iprime: you can use this in build.gradle Jan 09 07:43:49 thepoosh, as a flavor config? that would be awesome, how can I access gradle stuff in the java code? Jan 09 07:44:10 resValue "string", "purchase_api_key", getApiKeyForFlavour(flave) Jan 09 07:44:25 ok great, i'll check those, thank you! Jan 09 07:44:28 flavor(flav) Jan 09 07:44:31 add that in the flavor and overwrite the existing value with yours Jan 09 07:44:39 YEAH! Jan 09 07:46:35 iprime: look at what I found http://stackoverflow.com/a/37482737/1056359 Jan 09 07:46:55 that is a different approach Jan 09 07:48:12 accessing via BuildConfig seems simpler Jan 09 07:51:23 buildConfigField i mean, i'll go for it Jan 09 07:57:53 What resolution do you design your android apps in? Jan 09 07:58:39 out of MDPI, HDPI, XHDPI, which is your 1x? Jan 09 08:00:59 use everything, why not? Jan 09 08:01:01 either its dp or percentage/weight Jan 09 08:01:34 mostly i test on 720x1280 or 1080x1920 and 800x480 Jan 09 08:01:51 other than that the units should be irrelevant Jan 09 08:18:41 anyone knows if stats exist about the platform version distribution but for tablets only? Jan 09 08:21:34 iprime: nobody actually uses tablets Jan 09 08:21:38 :D Jan 09 08:21:41 :D Jan 09 08:21:48 that's a good answer, i guess Jan 09 08:34:33 so i backed up mmssms.db but not com.android.providers.telephony/databases, can i still restore SMS? Jan 09 08:44:40 after googling around, found that many people design at 360 x 640 (mdpi) Jan 09 08:45:35 1x = mdpi, 1.5x = hdpi, 2x = xhdpi Jan 09 08:45:35 so that would be 720 x 1280 xhdpi Jan 09 08:46:04 yes Jan 09 09:29:56 Hmm.. Jan 09 09:30:39 Is there an easy way to get Android to display a nice birthday picker -- similar to the date picker shown on the right here: https://developer.android.com/guide/topics/ui/controls/pickers.html Jan 09 09:30:55 I do not want the whole calendar thing that I currently get. Jan 09 09:58:57 Anybody know the reccomended icon size for a GuidanceStylist.Guidance? Jan 09 10:07:10 where are the http networking tutorials? Jan 09 10:07:30 can't find here: https://developer.android.com/guide Jan 09 10:15:29 purplex88: http://square.github.io/okhttp/ Jan 09 10:57:40 Is there a nice way to get an instance of ActivityManagerNative Jan 09 10:57:57 i.e. without a bunch of Class.forName() and methodGetDefault.invoke() calls Jan 09 11:45:55 Hey all, I'm trying to neaten up some views, and as it stands, I have some text at the top of the page, then buttons aligned to the bottom Jan 09 11:46:08 I've arranged this by simply setting weight acordingly, so that the buttons line up Jan 09 11:46:14 Nice. Jan 09 11:46:38 but I'm trying to make it a bit more standard, and read that RelativeLayout is better way, but when I put all the buttons in the RelativeLayout, they just stack ontop of each other, so I only see 1 button, rather than laying out nicely. Jan 09 11:48:53 RelativeLayout is not really better than LinearLayout at positioning views linearly Jan 09 11:49:21 It really shines when you want to position views relative to eachother tho Jan 09 11:51:27 SimonVT: ah ok, so is there any way for me to bottom align the LinearLayout? Jan 09 11:51:51 With weight Jan 09 11:52:10 ah, that's how I was doing it, but I felt like there was a better way of doing it. if there's not, then I'll keep with this way Jan 09 11:53:35 If you're certain the text and the buttons will never overlap you can just use RelativeLayout and align the buttons to the bottom Jan 09 11:54:26 If the text might take up more space than the content area, you should probably use LinearLayout and a scrollable container for the text Jan 09 11:56:19 But RelativeLayout is not better than LinearLayout, and LinearLayout is not better than RelativeLayout.. they are good for different kinds of layouts (tho most can be achieved with either) Jan 09 12:11:27 Hey. Are there any resources about the current spread of technologies in Android phones? Like, how many support 4G or whatever. Jan 09 12:11:53 I'm trying to make a decision which networking technology to use and want to know what the install base would be. Jan 09 12:12:18 It shouldn't matter Jan 09 12:12:32 but what I guess I meant to say is Jan 09 12:12:32 why does it matter :P Jan 09 12:15:07 * raoul11 thepooshes thepoosh Jan 09 12:15:15 sup! Jan 09 12:15:40 shud i invest in cardview (inside a recyclerview)? Jan 09 12:15:47 why not? Jan 09 12:15:54 why not? Jan 09 12:16:05 cardview's are hot Jan 09 12:16:09 mchl_nix, that's such a wrong question to ask :) Jan 09 12:16:09 used too many of them over the years. Jan 09 12:16:09 coz am a noobi on cardview Jan 09 12:16:18 so? Jan 09 12:16:23 then get gooderly Jan 09 12:16:27 Mavrik, why? Jan 09 12:16:27 starting now. Jan 09 12:16:29 mchl_nix, even if phones have LTE, there's no chance your customers will have it available at all times. Jan 09 12:16:32 i will Jan 09 12:16:35 OK Jan 09 12:16:51 raoul11: good luck Jan 09 12:16:54 mchl_nix, so you need to design your app to handle cases where network connectivity is slow or unavailable even if phones support the network. Jan 09 12:16:55 we trust you Jan 09 12:16:57 when you are finished I will have some cookies baked. Jan 09 12:17:33 Mavrik, it's a student project, so that is not as important. Maybe my example is misleading. I was thinking about Wi-Fi Direct, maybe even Ad Hoc Wi-Fi. Bluetooth LE. More than one Wi-Fi Chip. Stuff like that. Jan 09 12:17:33 Heck, even in ultrarich sillicon valley you'll get spots of no connectivity while commuting (which is when most people use their android devices) Jan 09 12:17:44 I see. Jan 09 12:17:56 I don't think there's data about that. Jan 09 12:18:02 what type of cookies tx? Jan 09 12:18:05 Shame Jan 09 12:18:10 But you can pretty much reliably assume that: 1.) You'll have a single (1) wifi chip Jan 09 12:18:26 raoul11: if you succeed, choc-chip Jan 09 12:18:27 if you fail Jan 09 12:18:27 sultanas and nuts. Jan 09 12:18:29 2.) That you'll have a decently working BLE if the device has Android 4.4 or newer Jan 09 12:18:34 if you manage to get worse Jan 09 12:18:36 broccoli Jan 09 12:18:46 <3 broccoli Jan 09 12:18:47 3.) That wifi direct is available if you have newish phone Jan 09 12:19:21 tx, dude, stop spamming this channel with offtopic crap. Jan 09 12:20:06 Someone didn't have their coffee. Jan 09 12:25:01 Hello. I have a linear layout in a scrollview. I need to place two items next to each other horizontaly. possible? Jan 09 12:25:16 orientation for the layout is vertical Jan 09 12:25:53 nvm, fixed Jan 09 12:38:21 Mavrik, from my experience, Wi-Fi Direct is basically unusable. Incompatibilities between different phone makers and even if compatible, constant drops Jan 09 12:39:13 Also, now that I think about it, the project is to be tested in Africa, so the phones will probably be from around 6-8 years ago. Jan 09 12:39:18 yeah, that's realistic probably Jan 09 12:39:30 BLE is usually better, but not by much Jan 09 12:39:54 I need to transfer data, though. Pretty much constantly. Jan 09 12:40:13 regular bluetooth eh Jan 09 12:40:18 Well, I guess they won't be streaming Netflix there, so maybe I can get by with BT. Jan 09 12:40:22 6-8 years ago? why not irda Jan 09 12:40:24 Not like there will be much of an alternative. Jan 09 12:40:27 hrmf. Jan 09 12:40:35 Point-to-point transfer? Jan 09 12:40:44 What type of content? Jan 09 12:40:55 Peer to peer. Basically an ad hoc wifi network would be ideal. But doesn't seem to be supported still. Jan 09 12:41:24 I'm trying to put up a delay tolerant network. And the android phones will be my data mules. Jan 09 12:41:49 that's going to hurt like hell on older devices :/ Jan 09 12:41:50 Physically taking the packets of data from remote villages to places with internet connection and back. Jan 09 12:41:59 Yeah. Jan 09 12:42:47 If it was easy, my supervisor wouldn't have given me the job. The lack of information is what is killing me. I barely have a specification and therefore grasp of what the program is supposed to do, but I have no idea what hardware requirements I have. Jan 09 12:43:37 yeah of course Jan 09 12:43:42 that sounds like an academic project allright :D Jan 09 12:43:43 mchl_nix: it mean that your supervisor thinks you are very good at your job Jan 09 12:43:44 I figure those remote villages are not very big, so bluetooth might be ok. If they connect automatically that is. Jan 09 12:44:05 I think BT is about as good as you can get Jan 09 12:44:05 BLE has really terrible transfer rates Jan 09 12:44:07 even EDR isn't all that good Jan 09 12:44:13 but that's about as reliable as it gets Jan 09 12:44:21 wifi direct just plainly mostly doesn't work :/ Jan 09 12:44:24 mchl_nix: of course, supervisors make mistake too Jan 09 12:44:43 I wish, Melatonina. He saw a student in desperate need of a project, since the administration forgot to tell us, that it is a requirement for passing a course (which I found out, after passing its exam). He literally overheard us talking about it, came into the office and offered it to me P: Jan 09 12:44:45 :P Jan 09 12:45:57 :) Jan 09 12:46:25 So I have no idea and no options. Nice. I already scheduled a meetup with him and will try to figure something out together. Forget, that I have no experience with Android or networking, I have no idea of the current smart phone trends in remote African holdouts. Jan 09 12:46:34 Android. Bringing people together. Jan 09 12:49:39 mchl_nix: you can use this music as sound carpet while presenting your work: https://www.youtube.com/watch?v=qEwnHf9Q23k Jan 09 12:50:05 it work to get inspired while programming Android too Jan 09 12:50:57 I will play that video for one second, then loop the buffering animation, to make a realistic preview of the product. Jan 09 12:54:21 Finally a ram upgrade... 4 GB is just not enough for android studio. Jan 09 12:54:45 4 GB is not enough for L1 cache nowadays Jan 09 12:54:54 true... Jan 09 12:56:19 Syzygy: hi hi hi Jan 09 12:56:29 I feel your pain, Syzygy. I found some ways to get Android Studio itself down, though. Jan 09 12:56:39 thepoosh, I'll do it today! promise! Jan 09 12:56:52 whatever... Jan 09 12:56:57 * thepoosh shrugs Jan 09 12:57:42 mchl_nix, just got a RAM upgrade for this work notebook, so it's fine for now. Also buying a new notebook soonish. Jan 09 12:58:01 just can't decide which one. Jan 09 12:58:29 I can tell you, that the X260 sucks. Jan 09 12:58:41 Got 8 gigs now, too. Makes a lot of things easier. Jan 09 12:59:27 I'll probably get an XPS 13 or razer blade stealth. Jan 09 12:59:57 does the x260 really have 21 hours of battery? Jan 09 13:00:34 or anything even remotely close to that? Jan 09 13:02:38 raoul11: this is my lesson for the day: https://techblog.badoo.com/blog/2016/10/17/masking-bitmaps/ Jan 09 13:03:21 perfect timing thepoosh Jan 09 13:03:33 ? Jan 09 13:03:45 need to implement a rounded image holder soon Jan 09 13:04:12 a bit too indepth for me this one Jan 09 13:04:26 I know, but I want to do it Jan 09 13:04:32 If you do nothing you can get a good 16h, Syzygy. Jan 09 13:04:40 lost track at Da’ = Sa·Da Jan 09 13:04:52 Mild work, I can usually get around 13. Jan 09 13:05:06 ha Jan 09 13:15:58 Am I right, that Ad Hoc Wifi is not available in Android? Jan 09 13:17:43 hmm, while I like partability, I guess I would be fine with the ~8hours that my prefered notebooks offer. Jan 09 13:18:13 desktops are so much better for android dev Jan 09 13:18:42 mchl_nix, can you state your problem in one sentence? because no clue what you are after Jan 09 13:20:26 adq, I want to connect android smartphones directly to send files around. BT is the first answer, but it has obvious shortcomings. Wi-Fi Direct is another possibility, but it seems nowhere near production ready. An Ad Hoc Wifi network would be what I'm after, but it seems like it is not supported by android. Jan 09 13:21:21 well, there is only mesh-network in this case Jan 09 13:21:38 but it would be much easier for you to have a requirement that all your android devices are connected to the same network (usually wifi) Jan 09 13:23:07 avoid ad-hoc, it does not meet what you ask for since it's 1 to 1 and iirc it's not really well supported anymore Jan 09 13:25:34 adq Ad Hoc is 1 to 1? Unfortunately I'm not in the position to set requirements. I'm probably stuck with BT, anyway. Just wanted to get the info, if ad-hoc is available or not. Jan 09 13:26:37 mchl_nix, yes ad-hoc has always been 1 to 1 Jan 09 13:27:17 maybe there are variants which are not 1 to 1 but anyway, just avoid Jan 09 13:30:02 hey fellas Jan 09 13:30:20 Where EXACTLY should the ANDROID_HOME variable point at? Some specific folder inside the SDK folder? I have it set to the root folder atm, doesn't seem to work Jan 09 13:30:25 how would I go about setting a reminder for say, every Wed, Tue, and Fri, every week for 4 weeks? Jan 09 13:31:16 or every Wednesday, Tuesday and Friday at 9 AM, for 4 weeks in a row Jan 09 13:32:22 adq Do you maybe mean 1:n? I mean, 1:1 is not much of a network. Jan 09 13:32:47 i think this is the sdk's root folder Jan 09 13:33:24 Odaym, you can schedul a new reminder once your reminder triggers. Jan 09 13:33:25 for me managed mode (classic ap) was 1:n since one centralization instance relays its peers, ad-hoc was 1:1 because you could set up 2 peers together Jan 09 13:33:42 but there are variants anyway Jan 09 13:34:25 Odaym, i would mimic the alarm clock Jan 09 13:37:31 spent the whole day setting up ReactNative, still not coding Jan 09 13:40:17 srry wrong channel Jan 09 13:46:28 so a reminder for the reminders Jan 09 13:46:51 but reminder 1 has to know what to trigger when it triggers Jan 09 13:47:00 ah, ok, it can repeat itself, and decrement some counter Jan 09 13:49:51 Odaym, can't the reminder know what the actual condition is and then check if there is another one necessary? Afaik that's what todoist does. Jan 09 13:50:07 Lazy evaluation, if you will. Jan 09 13:50:11 I dont know what other data i can feed a Notification Jan 09 13:51:15 Do you have a class, that creates the Notifications? It could hold all your notification requirements, check for existence and create if necessary, then. Jan 09 13:51:50 Hello! I am a newbie and would like to start learning Android app development. Could anyone guide me in the right direction? Jan 09 13:51:53 hm Jan 09 13:52:07 I have not implemented anything yet no Jan 09 13:54:00 aiks, https://developer.android.com/training/index.html Jan 09 14:01:21 mimic the alarm clock, adq? Jan 09 14:01:28 I can read the source there, yea Jan 09 14:01:44 basically does this but I dont remember it has a constraint for how long any alarm should run Jan 09 14:01:48 it's always indefinite Jan 09 14:03:44 oh my bad then Odaym, i thought it was only about UI Jan 09 14:03:51 oh, no Jan 09 14:04:40 I can count the number of times an alarm will have to show up if you tell me you want it every M W F for a period of 2 months/2 weeks/etc.. Jan 09 14:04:41 can't I? Jan 09 14:04:48 number of days * ..... Jan 09 14:13:25 I don't have enough phones here to test right now, but can I connect more than one phone with another over Bluetooth? I know that I can have like, a watch and headphones and stuff connected at the same time, but are there contraints when it comes to "classes" of devices for example? Jan 09 14:14:17 Anyone has experience with that. Example: Have Phone B and Phone C connect to Phone A over BT at the same time, so Phone A could share files with either of Phone B or C. Bonus points, if Phone A can share with both at the same time. Jan 09 14:18:15 is it more like mesh or centralized Jan 09 14:18:56 hello, I have a problem using jni support… My templated functions are in .tpp files in my source directory. But it won't rebuild if I modify one of these files… I need to make a modification on a .cpp source file who need it for rebuilding them Jan 09 14:19:01 does Android support Big Endian mode for AArch64? Jan 09 14:21:02 Ashiren more like a mesh, but I take what I can get. Jan 09 14:21:35 Is there a simple way of making a list? Do I need to use listView? seems to much for me. unnesecary use of resources Jan 09 14:24:50 you can use a recyclerview Jan 09 14:25:29 Sourcey: stack multiple textviews Jan 09 14:25:47 or buttons Jan 09 14:27:57 are there any tutorials available, which demonstrate how could I make an app, which involves the use of the phone's camera? Jan 09 14:31:07 aiks: i.e. https://developer.android.com/training/camera/cameradirect.html Jan 09 14:31:23 but hardware camera is tricky. in lollipop they introduced camera 2 api Jan 09 14:32:11 Well, I am referring to somewhat similar applications to what SnapChat does with their facial recognition algorithm Jan 09 14:33:33 Any info on that? Jan 09 14:36:16 i havent played with that myself but afaik camera2 exposes some face detection Jan 09 14:37:23 and using google play services, there are some features regarding picture algorithms https://developers.google.com/vision/ Jan 09 14:41:01 i am quite interested in movement and facial recognition Jan 09 14:41:14 I'd love to hear from someone, who has messed around with that Jan 09 14:42:26 what are you interested in Jan 09 14:42:38 money Jan 09 14:42:50 :) Jan 09 14:43:17 mostly learning for now haha Jan 09 14:43:30 then go learn and leave us alone Jan 09 14:43:48 what a nice guy you are Jan 09 14:43:56 thanks for your kind heart Jan 09 14:44:01 this is not a dating channel Jan 09 14:44:34 I thought this was a helpful community. Jan 09 14:44:38 I was wrong. Jan 09 14:44:50 aiks: do you have a question? Jan 09 14:44:58 if not we are as helpful as you need Jan 09 15:01:10 poor aiks Jan 09 15:03:51 do i need to use @SerializedName is the field name is exactly as it is on the json? Jan 09 15:05:21 don't be an asshole to him Jan 09 15:05:36 silly little man Jan 09 15:06:57 no Jan 09 15:07:08 but it is good practice to always use SerializedName Jan 09 15:07:22 thanks Ashiren Jan 09 15:09:00 the fields themself can be private? Jan 09 15:11:17 yes Jan 09 15:24:01 Is there a way I can tell google drive to keep a folder with photos synced or save my photos in a folder that automtically syncs with google drive? Jan 09 15:43:53 Is there a google photos api? Jan 09 15:53:05 Syzygy: http://bfy.tw/9Mjd Jan 09 15:54:12 also https://stackoverflow.com/a/30565302 Jan 09 15:55:18 stop spoon feeding please Jan 09 15:57:31 well, i did search for it myself and found next to nothing, just a "you can probably still use the picasa web api" which is somewhat unhelpful and somewhat similar to that stackoverflow. Jan 09 15:57:56 not quite sure what you want me to say Jan 09 16:01:56 sometimes you have to search efficiently to increase your probability to have pertinent answers Jan 09 16:02:27 they are working hard to solve that for ppl not able to search efficiently, which is little by little broking ppl who knows how to search efficiently Jan 09 16:03:05 like since a decade, google removed a lot of parameters from search, even strict expression starts to not give pertinent result it's awful Jan 09 16:03:46 and the playstore app search is also a good illustration of where search is going Jan 09 16:04:09 (looks totally broken to me, but it's a design choice on the other side) Jan 09 17:06:38 Does anyone know of any mobile device management solutions that provide OTA functionality for Android updates? Jan 09 17:08:25 i know genymobile (the company who makes genymotion) can do it Jan 09 17:08:59 but this is beyond app dev i believe Jan 09 17:10:00 I don't see any mention of OTA :( https://www.genymotion.com/genydeploy/ Jan 09 17:10:28 re-read my sentence Jan 09 17:10:42 * patarr rereads Jan 09 17:11:04 genymotion is just one of their product, genymobile offers many services like the one you ask for Jan 09 17:11:07 Okay, so you're saying that a company can do it. And that it's beyond app dev. Not sure what that even means, but I feel like I walked away noing no more than the name of a pretty cool company. Jan 09 17:11:23 s/noing/knowing Jan 09 17:11:26 this channel is for app dev, it's written in the topic Jan 09 17:11:34 Okay, I'll take the question elsewhere. Sorry! Jan 09 17:11:38 not really devices management Jan 09 17:11:44 it's ok man Jan 09 17:11:54 at least you know one company who does it now Jan 09 17:12:51 http://pastebin.com/95DyF9yJ whyyyy is tearDown being called before setUP? Jan 09 17:13:04 I'm getting an NPE on a variable that is created during setUp Jan 09 17:21:15 Answer: @Before was threw an exception and the test was trying to do @After, which failed because @Before failed. Jan 09 17:21:52 bad test Jan 09 17:44:06 seriously, google is going all-in on jcenter Jan 09 17:44:08 this is frustrating Jan 09 17:44:25 they totally ignore maven central... Jan 09 17:44:46 pfn: haven't seen you in a while Jan 09 17:44:47 hi Jan 09 17:45:04 hi, holidays kept me busy, then a subsequent lack of interest in all things computer... Jan 09 17:45:06 hey thepoosh Jan 09 17:45:17 ohithere Jan 09 17:45:22 what's up g00s Jan 09 17:45:32 yes, lack in all things computer also :P Jan 09 17:45:32 is that a thing even? Jan 09 17:45:47 *lack of interest Jan 09 17:45:57 don't get it Jan 09 17:46:20 just a desire to not do the same thing Jan 09 17:46:22 the more time i spend outside the more disinterested i am with tech Jan 09 17:46:32 oh noez Jan 09 17:46:35 get back inside! Jan 09 17:46:41 noez! Jan 09 17:47:13 g00s: in the end you'll become this guy: https://www.youtube.com/watch?v=kieQauvWrAQ Jan 09 17:47:18 run! run to the forrest Jan 09 17:47:33 * thepoosh is cringing Jan 09 17:47:34 its great going for a walk with my friend, none of us as any tech on us (phones, etc) Jan 09 17:47:45 it is nice Jan 09 17:47:51 I just don't have time for that though Jan 09 17:47:56 no interruptions Jan 09 17:47:58 also, it's freezing out in here Jan 09 17:48:24 no way Jan 09 17:48:25 its about 20'f here Jan 09 17:48:30 no waaay Jan 09 17:48:48 squ: elaborate Jan 09 17:48:57 0:59 of that video she kisses Jan 09 17:49:05 yeah Jan 09 17:49:08 that is scenario, fake prank Jan 09 17:49:22 there is a good video on that by h3h3 Jan 09 17:49:48 squ: https://www.youtube.com/watch?v=levGiU1xL28 Jan 09 17:50:21 12 minutes is too much Jan 09 17:51:14 worth it Jan 09 17:51:18 watch in 1.5 speed Jan 09 17:53:22 "FBI reportedly arrests Volkswagen executive for role in Dieselgate scandal" wow i didn't think that happened these days Jan 09 17:54:16 wonder if trump will make him work on his mexico wall Jan 09 17:54:25 cheap labor :) Jan 09 18:06:02 Hi guys Jan 09 18:06:35 thepoosh: https://twitter.com/samtamiz/status/818496549349158913 Jan 09 18:09:28 their sexism will be their undoing? Jan 09 18:10:56 Atlassian bought trello... Jan 09 18:11:08 yup. for less than one would think Jan 09 18:12:45 https://www.defense.gov/News/News-Releases/News-Release-View/Article/1044811/department-of-defense-announces-successful-micro-drone-demonstration Jan 09 18:12:45 so basically fog creek just sold them the product ? Jan 09 18:13:10 103 Perdix drones launched from three F/A-18 Super Hornets. The micro-drones demonstrated advanced swarm behaviors such as collective decision-making, adaptive formation flying, and self-healing. Jan 09 18:14:32 Originally designed by Massachusetts Institute of Technology engineering students, the Perdix drone was modified for military use by the scientists and engineers of MIT Lincoln Laboratory starting in 2013. Drawing inspiration from the commercial smartphone industry, Perdix software and hardware has been continually updated in successive design generations. Jan 09 18:15:02 inspiration from the smartphone :) Jan 09 18:15:52 test confirmed the reliability of the current all-commercial-component design Jan 09 18:18:15 lol Jan 09 18:30:22 Atlassian is buying a lot of stuff Jan 09 18:30:28 Jitsi, Trello... Jan 09 18:31:09 Lvl4Sword: do you think they'll ditch Kanban now that they bought trello? Jan 09 18:31:40 thepoosh: Kanban? Jan 09 18:35:22 Kanban Board Jan 09 18:35:41 https://leankit.com/learn/kanban/kanban-board/ Jan 09 18:44:28 * raoul11 thepooshes thepoosh Jan 09 18:44:38 * thepoosh is watching sherlock Jan 09 18:44:41 no time Jan 09 18:45:27 \: Jan 09 18:49:13 do you need a pojo constructor anymore with gson? Jan 09 18:49:44 i believe gson requires an empty constructor Jan 09 18:51:02 no need for setters as well no? Jan 09 18:51:35 and also @SerializedName ? Jan 09 19:10:52 @serializedName is used if your field name is different than what it is in the JSON Jan 09 19:15:48 yeah its the same s73v3r Jan 09 19:16:10 then you don’t necessarily need it. I still put it in sometimes just because, though Jan 09 19:17:43 what happens in a layout XML if you give it an attribute that doesn’t exist? Jan 09 19:17:50 https://www.xda-developers.com/android-nougats-freeform-window-mode-what-it-is-and-how-developers-can-utilize-it/ Jan 09 19:17:52 interesting Jan 09 19:18:17 like, say I have a custom TextView subclass, and I add an attribute for the font. what happens if I give that attribute to the normal TextView? Jan 09 19:22:39 Generally, nothing Jan 09 19:22:39 Nothing happens Jan 09 19:23:37 ok Jan 09 19:23:46 what happens in a layout XML if you give it an attribute that doesn’t exist? < it should be plainly ignored Jan 09 19:24:24 or did you mean, an inexistant value for an existant attribute? Jan 09 19:24:31 in this case it can crash Jan 09 19:25:04 s/existant/existing/g Jan 09 19:25:35 no, the attribute is properly filled out Jan 09 19:35:34 ello peeps Jan 09 19:36:40 I need some advice on what kind of layout to use for this app I'm making Jan 09 19:36:51 here is a short clip of the screen ~10seconds long http://tinypic.com/player.php?v=263bsif%3E&s=9#.WHPmI7YrI18 Jan 09 19:37:55 when you choose a cafeteria at the main screen, the user is presented with all of the restaurants at the cafeteria and the food items being served for the meal time (lunch dinner etc) Jan 09 19:38:33 I want to choose a good design for switching the textview underneath the titles with the respective menu for Breakfast or Lunch or Dinner or Late Night Jan 09 19:38:47 I have a spinner in there now as you can see (it does nothing but it's there to present context) Jan 09 19:39:25 What do you guys think? I thought about a tablayout one for each meal course, Lunch Dinner etc, but I'm not sure if you guys know of a cleaner more idiomatic design for this time of scenario Jan 09 19:39:25 my god that site sucks Jan 09 19:39:43 nothing but ads. couldn’t even see the video of your app Jan 09 19:39:51 s73v3r yeah, sorry I don't know many places where I can upload videos aside from my dropbox Jan 09 19:39:56 ublock origin for the win Jan 09 19:39:57 okay, I'll just paste my dropbox link Jan 09 19:40:05 https://dl.dropboxusercontent.com/u/79887194/2017_01_09_14_32_45.mp4 Jan 09 19:40:56 so I don’t get your question Jan 09 19:41:12 I want a way for the user to be able to say, "I only want to see the dinner items" Jan 09 19:41:21 and it looks like you have that Jan 09 19:41:44 do you want to be able to filter cafes based on what meals they serve? Jan 09 19:41:46 well, the spinner is really unintuitive to me and I was wondering if others knew of good layout elements I can use Jan 09 19:42:03 i didn’t see any spinner Jan 09 19:42:06 no, just change the spinner to something cleaner and more intuitive for the user Jan 09 19:42:09 oh wait, nevermind Jan 09 19:42:23 i would put the spinner at the top, really Jan 09 19:42:35 also, changing the content using the spinners in each of the views is a pain because I'm using a recyclerview and layoutmanager Jan 09 19:42:49 why is it a pain? Jan 09 19:42:53 yeah, I thought of just putting the spinner at the top. Do you think that design is fine? Jan 09 19:43:09 i don’t see why the list of cafes are cards Jan 09 19:43:11 Well because the textview is in my adapter and I need a broadcast to send out to all the adapters Jan 09 19:43:25 s73v3r I'm gonna be adding more info for each cafe in their cards Jan 09 19:43:33 is open, hours today, stuff like that Jan 09 19:43:48 i don’t know if cards are the right thing Jan 09 19:44:03 hi! Jan 09 19:44:11 how would you tell your adapters to switch content? Jan 09 19:44:16 and what would you use instead of cardview? Jan 09 19:44:20 ello tksko Jan 09 19:44:30 you give them new content? and call notifyDataSetChanged? Jan 09 19:44:37 how were you doing it? Jan 09 19:44:58 I have a question/problem with PreferenceFragmentCompat. Is anybody using it? Jan 09 19:45:06 Also, in the toolbar at the top, I’d put the name of the cafe you’re viewing Jan 09 19:45:37 the name of the app is fine for the listview, but when you get to the details of a cafe, remind the user what cafe they’re viewing Jan 09 19:45:54 s73v3r will do that too, nice tip Jan 09 19:45:55 tksko: just ask the question. please don’t ask to ask. if someone can help, they will Jan 09 19:46:16 tksko, i'm using it among many here, just ask your question if someone knows and wants he will answer Jan 09 19:46:57 I think i just solve my problem.. Jan 09 19:47:08 -_-" or :') Jan 09 19:47:18 i was trying to set a different settings file Jan 09 19:47:51 and i couldnt find anything on the net.. but i just found the solution! getPreferenceManager().setSharedPreferencesName("name"); Jan 09 19:47:54 basically addPreferencesFromResource Jan 09 19:48:04 oh indeed getPreferenceManager().setSharedPreferencesName Jan 09 19:48:04 s73v3r my adapter looks like this https://github.com/atbe/MSU-Cafe-Menu-Android-App/blob/master/app/src/main/java/com/atbe/abe/msucafehelper/Adapters/RestaurantRecyclerAdapter.java what method should I target to update the mFoodItemsTextView Jan 09 19:48:13 i mean, the reference file where the settings are stored Jan 09 19:48:15 not the UI Jan 09 19:48:19 yep, this is correct Jan 09 19:48:21 atbe: link broke Jan 09 19:48:22 :D Jan 09 19:48:30 % Jan 09 19:48:32 but this is a basic recyclerview adapter thing Jan 09 19:49:35 s73v3r my only issue is wrapping my head around updating all of the views in one call from the activity Jan 09 19:49:52 there’s not a whole lot to wrap your head around Jan 09 19:50:04 you give the adapter new data, and call notifyDataSetChanged Jan 09 19:50:09 it will go and redo the cells Jan 09 19:51:09 well, I don Jan 09 19:51:39 I don't actually change any of the fields in the adapter so I won't be changing it's underlying data, I'm just changing the call on line 37 in that file Jan 09 19:51:52 your link didn’t work Jan 09 19:51:53 so the underlying array being used does not change Jan 09 19:52:05 I just clicked it, are you sure? Jan 09 19:52:13 oh shoot, it's private Jan 09 19:52:16 yes, it gives me a 404 Jan 09 19:52:16 1 second sorry Jan 09 19:52:23 just paste it into a paste service or a gits Jan 09 19:52:25 gist Jan 09 19:52:34 yeah sorry about that http://pastebin.com/HdhKjnM1 Jan 09 19:53:12 i think this is the wrong adapter Jan 09 19:53:38 are we talking about the list of cafes, or a particular cafe’s list of food? Jan 09 19:54:58 list of food Jan 09 19:55:24 this is the adapter I am using to list the food, that's the view I am trying to change dynamically Jan 09 19:55:35 Hi I have a question about deleting one app from the store and uploading a new one with a new name but basically the same as the other with some new functionalities Jan 09 19:56:26 what's the best way to do that? I'm quite confused, and afraid I can be warned if I have almost two identical apps at the same time Jan 09 19:56:51 atbe: this looks like it’s the adapter for the list of cafes Jan 09 19:57:36 s73v3r RestaurantRecyclerAdapter do you see the name? Jan 09 19:57:50 yeah. that to me says it’s a list of restaurants Jan 09 19:58:38 yeah, there is the main view with the list of cafeterias and there is this view which is the cafeteria and it's list of restaurants Jan 09 19:59:02 Can I call a method on the adapter which will can modify the underlying view? Jan 09 19:59:10 ok, so you have cafeteria->restaurant->menu Jan 09 19:59:14 that's pretty much the last piece for this Jan 09 19:59:23 what? Jan 09 19:59:26 yes Jan 09 19:59:48 i don’t understand your question Jan 09 19:59:50 onBindViewHolder is the place where I initially set the text but once the view is binded I need another way to modify the textview Jan 09 19:59:56 no you dont Jan 09 20:00:13 you give the adapter new data, and it will invalidate the previously made cells Jan 09 20:00:15 it will redo that Jan 09 20:01:27 Is that the only option? I can't add a method to the adapter which can modify the veiw? Jan 09 20:02:00 why would you want to? Jan 09 20:02:16 with a recyclerview, you can also tell it certain cells that are modified Jan 09 20:02:45 from the beginning, tell me what you’re trying to accomplish Jan 09 20:02:46 because the new data to be used is already in the recyclerview Jan 09 20:03:13 be able to call holder.mFoodItemsTextView.setText(mRestaurants.get(position).getmLunchItemsList().toString()); outside of onBindViewHolder Jan 09 20:03:18 nonononono Jan 09 20:03:24 ^ Jan 09 20:03:25 i mean, what do you want the app to do Jan 09 20:03:32 not in code, i mean what should the effect be Jan 09 20:03:44 and no, you don’t want to do that Jan 09 20:03:45 Switch the text inside the textview with the respective menu Jan 09 20:03:54 best and only place with a RV adapter to set your textview is inside one of the two onBindViewHolder method Jan 09 20:04:02 from the activity which is holding the recyclerview Jan 09 20:04:05 don't try to circumvent that, or use something else than RV Jan 09 20:04:18 no, just use the RV as it’s meant to be used Jan 09 20:04:35 so we are talking about the menu RV, right? Jan 09 20:04:37 Okay, I think I realized a simple solution Jan 09 20:05:04 If all I can call is notifyDataSetChanged, I will assign the textview the value of a member in the Restaurant object and change the data in that member instead Jan 09 20:05:11 no, don’t Jan 09 20:05:17 hmm Jan 09 20:05:20 you’re honestly making this more complex than it is Jan 09 20:05:31 The menu RV yeah Jan 09 20:05:41 the last one. the one you didn’t show me the adapter for Jan 09 20:05:57 there are only 2 RV Jan 09 20:06:03 yes. and you only showed me one Jan 09 20:06:13 I'm using a textview in the one I showed you Jan 09 20:06:23 show me the menu adapter Jan 09 20:06:24 the other one is in the main activity, it's not used in this screen Jan 09 20:06:31 its where you saw those cards Jan 09 20:07:08 you showed me the restaurants adapter, which isn’t relevant to this problem Jan 09 20:07:51 just to show you it's irrelevant to this http://pastebin.com/bPLbx3cv Jan 09 20:08:31 so The Berg and The Creamery, that screen is the list of restaurants in a cafeteria, and the stuff under it is the food they serve for that meal? Jan 09 20:08:50 hello Jan 09 20:08:54 can someone help me Jan 09 20:09:08 i'm having some really strange behaviour in my app Jan 09 20:09:09 Limona: just ask your question. please do not ask to ask. Jan 09 20:09:17 if someone can help, they will Jan 09 20:09:18 file:///C:/Users/Origin/AppData/Roaming/Skype/My%20Skype%20Received%20Files/Screencast_01-09-2017_09%233a02%233a54%20PM.webm.webm Jan 09 20:09:22 omh Jan 09 20:09:23 sec Jan 09 20:09:41 atbe: first off, I would get rid of the menu listing on that screen Jan 09 20:09:45 it’s confusing as fuck Jan 09 20:10:09 second, move the spinner to the top of the screen Jan 09 20:10:32 If how an item looks changes, call notifyItemChanged.. That's how you're supposed to use RecyclerView Jan 09 20:10:32 third, if you want to keep it the way it is, give your restaurant adapter an enum for meal Jan 09 20:10:49 http://www.webm.land/media/tmp/dcee7796-6682-4b83-a457-1fe191462105.webm Jan 09 20:10:50 here Jan 09 20:10:53 when the user selects something in the spinner, pass that to the adapter, and call notifyDataSetChanged Jan 09 20:11:12 can someone tell me why the autoscroll works only when i go back using the back menu Jan 09 20:11:18 and not even when the app starts Jan 09 20:15:18 i presume it has something to do with focus? Jan 09 20:15:21 but i'm not quite sure Jan 09 20:15:29 atbe: I didn’t see you left Jan 09 20:15:42 s73v3r my bad, had to go to the restroom Jan 09 20:15:47 no worries Jan 09 20:15:53 did you send something? Jan 09 20:15:57 yeah Jan 09 20:16:04 s73v3r: atbe: first off, I would get rid of the menu listing on that screen Jan 09 20:16:17 s73v3r: second, move the spinner to the top of the screen Jan 09 20:16:18 s73v3r: third, if you want to keep it the way it is, give your restaurant adapter an enum for meal Jan 09 20:16:24 s73v3r: when the user selects something in the spinner, pass that to the adapter, and call notifyDataSetChanged Jan 09 20:16:39 that's exactly what I was asking if was possible Jan 09 20:16:53 "pass that to the adapter" is the question I am asking Jan 09 20:17:03 just like anything else Jan 09 20:17:08 what method should I override to modify it? Jan 09 20:17:13 you don't Jan 09 20:17:17 you just create a setter Jan 09 20:17:19 as in, where is the enum used in the adapter? Jan 09 20:17:35 you would use the enum in your onBind method Jan 09 20:17:51 you would check the value of the enum, and based on that, would choose the text to assign to the textview Jan 09 20:17:54 onBindViewHolder? Jan 09 20:17:58 yes Jan 09 20:18:07 so onBindViewHolder get's called multiple times? Jan 09 20:18:26 it gets called every time a cell needs to be populated or repopulated Jan 09 20:18:39 and when you change the meal, it needs to be repopulated Jan 09 20:19:09 ahaaa Jan 09 20:19:28 that is very very useful knowledge :XXX Jan 09 20:19:49 i mean, it is basics of how the recyclerview works Jan 09 20:23:18 s73v3r profit!! Yeah, I should have read into that method a little bit more, I thought it was only called once Jan 09 20:32:41 does the android style guide discourage card views of different sizes? Jan 09 20:36:20 second and third are done s73v3r but which menu are you talking about for first? Jan 09 20:36:49 heyo Jan 09 20:44:54 https://ideone.com/2HU8iR Jan 09 20:45:07 how come my textview doesn't autoscroll Jan 09 20:45:21 it only scrolls if i go "back" to it Jan 09 20:45:23 via the menu back Jan 09 20:45:30 textViewTitle.setSelected(true); Jan 09 20:45:36 no idea why it doesn't work :/ Jan 09 20:47:14 it should work, does it not have focus or something? Jan 09 20:50:24 Limona, maybe your CURR_ROSTER_NUM is not equal to 1 except when you go back, because indeed for marquee, oyu have to call setSelected on the textview Jan 09 20:51:04 and need to have all those focusable setters set to true, and also singleline (in xml it does not work with maxLines="1" only we need ot use the deprecated singleLine="true" too) Jan 09 20:51:06 it is, because i'm debugging it Jan 09 20:51:10 and it does indeed go there Jan 09 20:51:26 i don't know why they don't deprecate marquee Jan 09 20:51:28 or why they don't fix it Jan 09 20:51:34 it's like that since 2009 Jan 09 20:51:54 deprecate? what's the new thing hten Jan 09 20:52:01 not using marquee Jan 09 20:52:08 what's the alternative i mean Jan 09 20:52:18 it makes me remember old html with and lol Jan 09 20:52:40 there is no new thing Limona Jan 09 20:52:48 or maybe with a customview + animator Jan 09 20:53:03 well the thing is, it goes thru the code on startup Jan 09 20:53:10 it just doesn't animate anything Jan 09 20:53:33 adq look: http://www.webm.land/media/tmp/dcee7796-6682-4b83-a457-1fe191462105.webm Jan 09 20:53:35 except when you go back, you told us already Jan 09 20:53:50 i really don't know, usually i don't set everything programmatically Jan 09 20:54:06 hmm Jan 09 20:54:09 could it be that setting the layoutparam overrides/resets something? since you're debugging Jan 09 20:54:18 works the same even withotu debugging Jan 09 20:54:18 try to make a list of all states between the working and the non working case Jan 09 20:54:21 and see what differs Jan 09 20:54:45 lol Jan 09 20:54:48 the strangest part is Jan 09 20:54:52 if click the |> Jan 09 20:54:59 it doesn't even run thru this code Jan 09 20:55:10 if i click back <- arrow on top, it does Jan 09 20:55:25 except with system back even tho it doesn't run the code, it makes the text move Jan 09 20:58:02 Hi, is there a way to set a device to connected state programmatically, I have an image of the androidWear bluetooth status: https://slack-files.com/T03HB40F7-F3P4S4Y11-bf1c7d76e0 Jan 09 21:00:04 @adq how do i find which xml belongs to this piece of coe Jan 09 21:00:42 no clue it's your code, but all your adding is programmatically here so it's not in the xml Jan 09 21:03:53 ah Jan 09 21:03:57 why does it work when you go "back" Jan 09 21:05:37 Hello. I'm trying to code an android application. Everything is fine, I can put my application in background, then restore it to foreground, the application is not reset. But if I press the back button or if an incoming call happened, then my application is put in background but when it back to foreground then the application is reset. It seems that on back button or on incoming call my application receive a TERM_WINDOW even Jan 09 21:08:48 @adq if i zoom the app out, and zoom it back in Jan 09 21:08:50 it works Jan 09 21:08:54 i mean, application browse Jan 09 21:10:57 fooman2011, back = finish = clear state Jan 09 21:11:04 ok for back Jan 09 21:11:07 but for incoming call Jan 09 21:11:09 and not *application*, the activity Jan 09 21:11:14 incoming call is irrelevant Jan 09 21:11:24 incoming call won't push your app out unless you're out of memory Jan 09 21:11:52 Ok but my app is an adventure game Jan 09 21:12:07 that doesn’t really have anything to do with it Jan 09 21:12:16 If you play and if an incoming call happened then the game is reset Jan 09 21:12:30 your app resets because it is written poorly Jan 09 21:12:32 :P Jan 09 21:12:43 use the right callbacks to store state as necessary Jan 09 21:12:48 onSaveInstanceState, onPause, etc. Jan 09 21:12:52 I can't save all the context game Jan 09 21:12:56 they are too many pointers Jan 09 21:13:13 I can "save" the game as if the user do it in game Jan 09 21:13:22 so call the same method? Jan 09 21:13:48 Have you ever played zelda ? Jan 09 21:14:05 When you save the game, then when you load the game you're not at the same position Jan 09 21:14:14 so change that Jan 09 21:14:55 I dont want to change my game just because "the incoming call" is a piece of c... Jan 09 21:15:13 as i saied, the background -> foreground works perfectly Jan 09 21:15:23 which is a different situation Jan 09 21:15:36 and you don’t have to expose that kind of saving to your player Jan 09 21:15:40 you can just keep that internal Jan 09 21:15:48 si if my application is in background and if i receive a call my application is reset too ? Jan 09 21:16:27 again, it depends on the memory state Jan 09 21:16:40 and the device itself Jan 09 21:17:27 Mainly you need to look into learning about the Android Activity Lifecycle Jan 09 21:17:55 There are methods that will be called when your application is about to go to the background or be purged from memory Jan 09 21:18:04 You'll need to hook those and deal with them appropriately Jan 09 21:18:19 Ignoring them will always result in the behaviours you're seeing now Jan 09 21:18:41 Pfff android is stupid. This use case: Playing app, incoming call, finished call, app is restore but reset. Use case 2: Playing app -> put it in back ground -> incoming call, finish call, restore app by yourself -> Works perfectly without reset Jan 09 21:19:11 Why the application is not simple put in background on incoming call??? Jan 09 21:19:13 . Jan 09 21:19:22 Because that's literally not how Android works Jan 09 21:19:35 This isn't iOS where applications are allowed to run amok Jan 09 21:19:49 at any time, your app can be kicked out of memory. it is YOUR responsibility to make sure you’re prepared for it Jan 09 21:19:57 Apps which aren't in the foreground get set aside and can be purged from memory to free up RAM Jan 09 21:19:59 Dagmar: I’m pretty sure iOS apps aren’t allowed to run amok Jan 09 21:20:19 in fact, i’m pretty sure the same provisions about being kicked out of memory apply there, too Jan 09 21:21:13 There's a thing called savedInstanceState which is basically your activity's escape boat. When the event happens that indicates your application is leaving the foreground, you're supposed to stash what you need into it and pick it back up from ther during the resuming event Jan 09 21:21:17 https://medium.freecodecamp.com/5-mistakes-to-avoid-when-designing-micro-interactions-a6f638ee6a86#.g9isvvnx6 interesting reading, especially with this hype about superfluous animations and designers flood Jan 09 21:21:32 s73v3r: TBH I don't give a damn what IOS does Jan 09 21:21:39 It's also irrelevant to what's going on here. Jan 09 21:21:57 that’s fine, but then don’t bring up other platforms without knowing what they do Jan 09 21:22:43 Why the application is not simple put in background on incoming call??? << because historical wrong decisions like allowing only 1 app running at same time which constrained the lifecycle a lot Jan 09 21:22:46 My App is a native app Jan 09 21:22:50 among many other things in the early days Jan 09 21:23:04 ok... Jan 09 21:23:09 you have to deal with it Jan 09 21:23:20 https://github.com/xxv/android-lifecycle this might help and enlighten you Jan 09 21:23:30 (scroll down a little) Jan 09 21:25:57 I just lost 3 days to adapt the game to have a "background -> foreground" works perfectly, opengl context restored...opensl player paused etc... and for nothing... because because of incoming call I have to be able to restore my app from any point. Jan 09 21:26:14 yes, you do Jan 09 21:26:43 that’s always been the case Jan 09 21:27:17 I'm not alone I think, because on forums they are a lot of thread about opengl context lost. Jan 09 21:28:23 yeah, and on many android device, you can only have 1 context Jan 09 21:28:56 This logic is the same on the last version of android ? Jan 09 21:29:09 is the built in “textAppearanceSmall” something that is defined per platform? Jan 09 21:29:13 the lolcycle did not change much indeed Jan 09 21:29:22 i mean, something that OEMs can muck with? Jan 09 21:29:26 Yeah Jan 09 21:29:34 ...also that the users can muck with. Jan 09 21:29:42 ok Jan 09 21:29:52 i think so too s73v3r, because of the android: Jan 09 21:29:53 android:textAppearance="?android:attr/textAppearanceSmall" Jan 09 21:29:59 so I’m trying to figure out what the textColor is for it Jan 09 21:30:11 but if you make one in your still, you could directly reference it i believe Jan 09 21:30:11 i assume it’s one of the textColorPrimary or something like that Jan 09 21:30:17 s/still/style/ omg Jan 09 21:30:17 but I’m not sure Jan 09 21:30:36 Ok wel thanks for your help :) I have another question. Using the emulator, is there a way to retieve a file that your application has "write" ? Jan 09 21:30:36 s73v3r, state color is a selector iirc Jan 09 21:30:45 because it handles enabled/disabled, night theme & stuff too Jan 09 21:30:47 very convinient Jan 09 21:31:00 fooman2011, adb pull Jan 09 21:31:31 its command line or something UI from the IDE ? Jan 09 21:31:54 fooman2011: Depends on where you wrote it Jan 09 21:32:13 s73v3r, the quick javadoc says: "Text color, typeface, size, and style for "small" text. Defaults to secondary text color." for textappearancesmall Jan 09 21:32:32 ok. good enough Jan 09 21:32:32 but crawling it: "android:textColor = ?android:attr/textColorTertiary => @color/abc_secondary_text_material_dark" Jan 09 21:32:33 lol Jan 09 21:32:33 Dagmar: not in SDcard Jan 09 21:32:38 so not sure what to believe ;) Jan 09 21:32:56 fooman2011: Somewhere or other under /data. Your app should be able to retrieve it's own data without a problem Jan 09 21:32:58 a n d r o i d Jan 09 21:33:26 what i noticed is tertiary is always the exact same color as secondary by default on all devices and emu and vm i tested Jan 09 21:33:38 but i did not test on everything Jan 09 21:33:43 Believe that the theming is abstracted to a degree that would make Daedalus say "TOO COMPLEX" Jan 09 21:33:47 ahah Jan 09 21:34:03 Dagmar: My app can save files. I would like to check the content by retriving these files and check them using my eyes. Jan 09 21:34:11 it became ridiculous complicated despite they want a very flat UI Jan 09 21:34:15 without any gradient or things from the past Jan 09 21:34:23 it’s good enough. The design guys are working on a typography style guide. i’m just trying to wrangle styles ahead of that Jan 09 21:34:25 where styling was much more easier, but less flexible Jan 09 21:34:51 styling is fine, it’s that a lot of people misuse it Jan 09 21:34:59 i'm still struggling a lot Jan 09 21:35:17 especially with compat support and discrepancies across API Jan 09 21:35:25 I follow a strict "screw this I'm setting the attributes directly" approach. :) Jan 09 21:35:25 e.g. preferencefragmentcompat Jan 09 21:35:36 someone even created a giant library fix Jan 09 21:35:51 adq: "adb pull" is a command line ? Jan 09 21:35:59 fooman2011, yes from your computer host Jan 09 21:36:10 I had quite enough of interfaces going completely sideways if I just set foreground color alone Jan 09 21:36:13 i suggest you read on adb, and its parameters/options because it's a must for android dev Jan 09 21:36:22 adq: Is there is no file browser in IDE ? Jan 09 21:36:36 maybe in the old DDMS (android monitor) not sure Jan 09 21:36:42 there is in DDMS Jan 09 21:36:53 or you could directly adb shell and cat the content if your file is not binary Jan 09 21:36:54 but adb is the most straightforward way to do it Jan 09 21:36:58 and you just want to see its content Jan 09 21:37:37 adq: From the Andrid Monitor I can see only "logs", I don't see any button or file browser Jan 09 21:38:03 tools->Android-AndroidDeviceMonitor Jan 09 21:38:09 go into menu Tools, android, android device monitor Jan 09 21:38:28 looks like they removed the icon from the bar in latest AS beta Jan 09 21:38:57 s73v3r: Ah its ok Jan 09 21:39:05 adq: Yeah ok Jan 09 21:39:10 Thanks for help :) Jan 09 21:39:49 np Jan 09 21:41:06 adq helpuuu Jan 09 21:41:21 why does my debugger not stop after i refresh Jan 09 21:41:27 but the scrolling starts working Jan 09 21:41:27 :/ Jan 09 21:41:41 meaning it has the right focus now? Jan 09 21:41:47 are multiple threads the problem? Jan 09 21:41:51 why doesn't it work on start :< Jan 09 21:42:23 sorry i don't know more, what i can advise you is make a very little example to debug it more easily Jan 09 21:42:27 without all the noise around Jan 09 21:42:46 i don't think you're facing a threading issue at all Jan 09 21:43:05 any idea how to capture the "state" Jan 09 21:43:07 or Jan 09 21:43:14 yeah, what could it be, it's very weird Jan 09 21:43:26 why does it work after any kind of android update Jan 09 21:43:35 but not on regular activity start Jan 09 21:48:03 Limona: are you Arancio, the guy who was banned from the channel? (Arancio = Orange, Limone = Lemon) Jan 09 21:48:16 what? no Jan 09 21:48:39 i'm a c++ guy who is currently working on an android app Jan 09 21:48:44 Ok DDMS file explorer view is always empty... I don't why... Jan 09 21:48:55 and i have no idea why i have this strange bug where my textview only works on "resume" Jan 09 21:50:44 Limona, testcase? Jan 09 21:51:09 @Zharf https://ideone.com/2HU8iR http://www.webm.land/media/tmp/dcee7796-6682-4b83-a457-1fe191462105.webm Jan 09 21:52:10 Has anyone had an issue with setDisplayHomeAsUpEnabled on a toolbar causing the parent activity to get destroyed? Jan 09 21:52:13 you've clearly not been around in ##c++ long enough, that's no test case :) Jan 09 21:52:16 it works in xml, it doesn't work if added programatically Jan 09 21:52:27 Well honestly, it's a snippet okay :P Jan 09 21:52:32 pressing back does not re-create the parent activity but pressing the up button does Jan 09 21:54:08 Limona, so the issue is that it doesn't animate? Jan 09 21:54:13 yes Jan 09 21:54:23 it only animates when i resume the activity Jan 09 21:54:42 either via going "back" on android or by going to the app switcher and choosing the app Jan 09 21:55:02 atbe Pressing back goes back to the previous activity and resumes as normal? Jan 09 21:55:11 yes orbyt_ Jan 09 21:55:17 And your saying pressing up goes back but creates a new activity? Jan 09 21:55:22 yes Jan 09 21:55:40 and for some reason the call setDisplayHomeAsUpEnabled warns for a nullptr exception Jan 09 21:56:10 It warns because its called on an action bar which is set via setSupportActionBar Jan 09 21:56:13 or setActionBar Jan 09 21:56:34 Does the child activity declare its parent in the manifest? Jan 09 21:57:02 Limona, clearly curr_roster_num isn't 1 then Jan 09 21:57:24 Limona, I suspect an issue with the adapter?, need more code Jan 09 21:57:40 well, the thing is, if i set the debug to view the window, it stops at the code Jan 09 21:57:44 or are you even using a listview/recyclerview :p Jan 09 21:57:47 orbyt_ yes the parent is declared Jan 09 21:57:51 listview yeah Jan 09 21:57:56 sec, leme get some more code Jan 09 21:58:07 also, have you actually tried it on a real device Jan 09 21:58:08 orbyt_ I did call setSupportActionBar Jan 09 21:58:17 emulators suck Jan 09 21:58:22 Zharf yes and yes Jan 09 21:58:30 atbe Yes, but you call getActionBar.setDisplayHomeAsUpEnabled Jan 09 21:58:39 The warning can usually be ignored Jan 09 21:59:22 ah, I see I see Jan 09 21:59:26 atbe Have you tried setting the launch mode to singleTop? Jan 09 21:59:35 this is a toolbar, not an actionbar which is why the warning is there Jan 09 21:59:41 hmm, no, I will try now Jan 09 21:59:46 The toolbar is set as an actionbar Jan 09 21:59:51 Limona, one reason it might not work is that it thinks that it's already wide enough to show all the text, I find that sort of thing happens sometimes Jan 09 22:00:01 Limona, try setting a hardcoded width Jan 09 22:00:18 i think it already is Jan 09 22:00:19 sec Jan 09 22:01:08 https://ideone.com/KdiJf2 Jan 09 22:01:11 this is the whole function Jan 09 22:01:45 it's match_parent there Jan 09 22:01:51 orbyt_ singleTop did not change the action Jan 09 22:01:58 also way too long for a single method ;) Jan 09 22:02:03 which line Jan 09 22:02:03 activity is still being created from new Jan 09 22:02:19 59 Jan 09 22:03:06 atbe I would make certain that your changes are being made, as that should fix the issue. If not, I would suggest trying SO with code examples. Jan 09 22:05:22 orbyt_ okay, thanks for the help Jan 09 22:06:28 Zharf there's nothing on if i set it to 15 or something Jan 09 22:06:30 it's just empty Jan 09 22:06:47 15 is way too small, try like 300 Jan 09 22:07:14 yeah, it's first 3 letters Jan 09 22:07:18 then it's faded out Jan 09 22:07:22 not moving at all Jan 09 22:07:28 ok.. mhm Jan 09 22:11:19 I'm out of ideas / Jan 09 22:11:20 :/ Jan 09 22:11:43 it works on resume, just not on first start Jan 09 22:11:57 I'd remove code at this point Jan 09 22:12:00 simplify the case Jan 09 22:12:19 remove the if, remove other elements, etc Jan 09 22:12:44 removed the if Jan 09 22:12:50 call invalidate, redraw or other things, on the textview and/or the listview Jan 09 22:12:51 works the same, just for all items Jan 09 22:13:03 use recyclerview instead of listview (which you should do anyway :p), etc Jan 09 22:13:04 how do you call invalidate? Jan 09 22:13:13 foo.invalidate() Jan 09 22:14:02 same lol Jan 09 22:14:23 to be honest though, normally we'd just inflate the layouts from xml -.- Jan 09 22:14:30 yeah Jan 09 22:14:58 Is there a way, similar to CSS, to declare different paddings/margins in one xml statement? Jan 09 22:15:00 orbyt_ Is it wrong that I have the appbar in both activity A and B layouts? Jan 09 22:15:10 Eg margin: 0dp 4dp 4dp 0dp Jan 09 22:15:22 orbyt_, no Jan 09 22:15:34 atbe Depends if thats what you need or not Jan 09 22:16:01 orbyt_ I need the toolbar in both activities but I'm wondering if placing it in both activities is correct Jan 09 22:16:03 Zharf I figured as such Jan 09 22:16:09 rather than using an include orbyt_ Jan 09 22:16:53 atbe It depends on the layout of your application..for example. you could have a main layout that include a Toolbar and a container, and swap Fragments in and out of the container to navigate throughout the application, while keeping the same Toolbar Jan 09 22:17:47 atbe For separate Activities, having separate toolbars is normal Jan 09 22:17:57 orbyt_ yes but what if activity A launches B but they have no other relationship besides that Jan 09 22:18:11 and I want them to both have a toolbar so B can have an up button to A Jan 09 22:18:20 See above^ Jan 09 22:18:24 gotchya Jan 09 22:18:28 hi orbyt_. Did you publish your space application? Jan 09 22:18:41 Melatonina Its been published for almost a year Jan 09 22:19:10 Oh, didn't realize it. Maybe you said you were re-styling it Jan 09 22:20:12 Limona, too tired to think or do my own tests now... you should write the smallest compilable testcase you can and I can take a look at it tomorrow Jan 09 22:20:17 Yea, I was planning on rebranding and re-releasing as a new application. Instead, I changed the package structure and naming as needed, but kept the same play store package name, which let me release under the previous app Melatonina Jan 09 22:20:30 but I slept 2.5h last night and that was 15 hours ago Jan 09 22:20:33 Is HTTPS possible with Android? hopefully without third party library. Jan 09 22:20:34 so I need to sleep Jan 09 22:21:11 orbyt_ found mistake, should have set activity A as singleTop, not B, oops Jan 09 22:21:15 thanks again orbyt_ Jan 09 22:24:19 Have any of you run into this issue when developing an applicatoin with Google Maps where the application crashes upon re-running with instant run? Jan 09 22:25:07 orbyt_, I have found instant run to be unstable and unreliable. Your end users will never launch through instant run, so I just disable it Jan 09 22:25:37 instant run is garbage Jan 09 22:25:39 To make an HTTPS request, would I just change the url to HTTPS or do I need some HTTPS Android API? Jan 09 22:25:55 truckcrash Zharf As of late I have had no issues with it, apart from this. Jan 09 22:26:11 It has something to do with a resource not being found Jan 09 22:26:23 Ah, I last tried it about two weeks ago, and it was still a frustrating experience for me Jan 09 22:38:21 instant-ruin* Jan 09 22:44:14 purplex88: _Almost_. HTTPSUrlConnection is the main thing if you're not going to try to leverage something like OkHTTP Jan 09 22:45:00 OkHTTP is better than Android's HTTP? Jan 09 22:45:24 It's got a lot of helper stuff in it and might be necessary depending on _what_ you're doing Jan 09 22:45:40 It it's just simple gets and puts there's not going to be a problem using HTTPSUrlConnection Jan 09 22:52:03 ok thanks will stick to android's HTTP Jan 09 22:52:32 If it does the job then why not Jan 09 22:56:51 from 4.4 on, android’s HTTP is OkHTTP Jan 09 22:58:19 Hi Jan 09 22:58:54 Does anyone use supply with fastlane for upload apk to google play console?I was told i can do this. Jan 09 22:59:29 But i not sure how to get the json file from google play console? Jan 09 23:01:43 Does android allow HTTP request to be made on main thread? I am starting to see why using background thread is requested Jan 09 23:02:09 suggested* (not requested) Jan 09 23:02:24 hi purples88 Jan 09 23:02:39 sorry Jan 09 23:03:07 I new to google play console. Jan 09 23:03:53 I think the room is dead j/k Jan 09 23:04:47 Hey purplex88 Jan 09 23:04:53 perlsyntax: hey Jan 09 23:05:25 perlsyntax: google play console? Jan 09 23:06:18 not sure who was that Jan 09 23:36:22 Hey my peeps Jan 09 23:36:27 great book on sale (kindle) if you are into HW hacking https://www.amazon.com/Practical-Electronics-Inventors-Fourth-Scherz-ebook/dp/B01D5LXUYI Jan 09 23:36:33 only a few more hours though Jan 09 23:37:35 KINDLE? Jan 09 23:37:38 no Jan 09 23:38:18 I'm trying to get an android emulator created via AS, and I encounter this problem http://stackoverflow.com/questions/40586281/android-studio-avd-manger-throwing-nothing-selected Jan 09 23:38:29 The answer doesn't work though. Jan 09 23:39:05 I get this error lib32stdc++6 : Depends: gcc-5-base (= 5.3.1-14ubuntu2) but 5.4.0-6ubuntu1~16.04.2 is to be installed Jan 09 23:39:14 Anyone else get this? Jan 09 23:40:11 yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686 Jan 09 23:40:14 That's not an error. Jan 09 23:40:35 sasser i looked for a drm free version but didn't find it Jan 09 23:40:39 It's just confused. You're missing some dependencies. Jan 09 23:40:42 but still unbeatable for $2 Jan 09 23:41:09 install gcc-5-base Jan 09 23:43:45 gcc-5-base is already the newest version (5.4.0-6ubuntu1~16.04.2). Jan 09 23:45:23 What I read from the stdc error is that it's trying to use an older version.. Jan 09 23:56:34 baash: Multiple versions _can_ actually be installed simultaneously, provided the distribution maintainers have the skills. Last I checked, Debian packages were constructed properly for this. Jan 09 23:59:49 hello i have a question regarding vibration on android devices. im using v.vibrate(pattern, -1) to vibrate and it works nicely. though in my application i want to be able to interrupt the vibration and start over with a new pattern. i have tried using v.cancel() then starting the vibrations using my new pattern. though when the vibration starts the second time, it is not working properly. it is as if there is a residual from the previous pattern. so i guess Jan 10 00:02:47 How would I install the other version? Jan 10 00:03:14 centos is bad for dev from my perspective the repos are quite stale Jan 10 00:04:15 :sasser context? Jan 10 00:25:14 any tips are appreciated Jan 10 00:33:53 jackdev: if you tip me, I'd appreciate it too very much Jan 10 00:36:35 xD Jan 10 00:37:26 jackdev: here's a tip: "git gud skrub" Jan 10 00:37:48 i cannot believe how android dev is painful, its like they want the devs to suffer Jan 10 00:38:13 jackdev: What was your question? I missed it. Jan 10 00:38:47 can i pm it to you TacticalJoke? i do not want to spam the channel Jan 10 00:39:37 Sure. I probably can't answer it, though. I'm just nosy. Jan 10 00:40:00 bascially i want to stop a vibration pattern after the user started it and do a different pattern Jan 10 00:40:36 though when i v.cancel() that does not help and there is a residual effect from the first pattern incorporated into the new pattern Jan 10 00:41:34 Oh, I've never used the vibration API. :S Jan 10 00:41:41 its painful Jan 10 00:41:46 That class name though. (I just googled.) Jan 10 00:42:10 its really simple and effective as long as you are interrupting and letting the pattern run its course Jan 10 00:53:15 jackdev: here's a tip: "git gud skrub" < if you are that gud, you would not have to say this :) Jan 10 00:54:38 jackdev: yeah, just screwing with you. not even sure what your question was tbh Jan 10 00:55:52 i will probaby try asking at a different time, thanks for trying to help TacticalJoke. much appreciated. Jan 10 01:11:10 I’m a little confused about custom attributes in themes Jan 10 01:11:45 in my app, I have custom subclasses for TextView, Button, EditText, etc that allow me to set the font Jan 10 01:12:10 Right now, for one of my layouts (many, really), I’m getting the Failed to find style 'typefacedTextViewStyle' in current theme Jan 10 01:13:21 the theme has the line @style/TypefaceTextViewStyle in it Jan 10 01:16:03 s73v3r: How are the XML layouts referencing this theme attribute? Jan 10 01:16:43 s73v3r typefaced? Jan 10 01:17:16 The layouts don’t reference it directly. However, the preview window does when it has the theme set Jan 10 01:17:40 so this is the preview window warning me of errors Jan 10 01:19:21 ahh the preview / layout editor Jan 10 01:19:38 yes. I’m trying to clean up our app’s styles/themes Jan 10 01:19:41 well test at run-time, the amount of false positives and errors i get from the preview is unbelievable Jan 10 01:19:49 sometimes it just doesn't even render too Jan 10 01:20:18 the regression is enormous there, even if they added constraint layout & stuff (and removed the refresh button!!!!) Jan 10 01:24:00 Do emulators not support adb screenrecord? Jan 10 01:24:23 s73v3r: Hmm, one thing to check is whether TypefaceTextViewStyle has a parent that assumes an Android version which is higher than the one selected in the preview window. Jan 10 01:24:48 I'm trying to code an Xposed module that will prevent ambient display from triggering when a notification is from a defined app. I'm looking at this as a base to get started: https://github.com/gavinhungry/Xposed-AmbientNotifications/blob/master/src/io/gavinhungry/xposed/ambientnotifications/AmbientNotifications.java but I can't quite figure out exactly where I'd want to hook into and Jan 10 01:24:48 where I'd be able to pull out the information about the notification. Can someone point me in the right direction? Jan 10 01:24:50 https://android.googlesource.com/platform/frameworks/base/+/master/packages/SystemUI/src/com/android/systemui/doze/DozeService.java Jan 10 01:25:26 TacticalJoke: How would I do that? Jan 10 01:26:31 I guess the simplest way to rule this out would be to set the preview window's API level to the highest possible. Jan 10 01:27:01 it’s at 24 Jan 10 01:27:40 starting from the beginning, how does one add a custom attribute to a theme? Jan 10 01:27:58 right now, this attribute is used in AppTheme.Light and AppTheme.Dark Jan 10 01:28:15 both have their parent as the respective Theme.AppCompat Jan 10 01:29:31 orbyt_, they do but sometimes you ahve to provide parameters (especially if there is no codec you will need to record as raw) Jan 10 01:35:09 adq I kept receiving a `Unable to get output buffers` error Jan 10 01:35:33 what's the whole command you pass? Jan 10 01:37:09 s73v3r: You might have to post what you've tried. It's just a case of adding an ``, setting its value in a theme, and referencing that attribute from either Java or XML. Jan 10 01:38:43 well, I ask because I see the thing being added as an attr in a declare-stylable thing, but the name of the declare-stylable is not the theme I’m using Jan 10 01:38:48 it’s something else entirely Jan 10 01:40:38 anyways, i gotta go. I’ll try tomorrow Jan 10 01:40:40 The `` attribute just creates an array. Someone uses that array in Java code to declare which theme attributes to resolve. Jan 10 01:41:09 It's possible not to use `` at all when creating and using custom theme attributes. Jan 10 01:41:12 It's just handy. **** ENDING LOGGING AT Tue Jan 10 03:00:01 2017