**** BEGIN LOGGING AT Mon Dec 12 03:00:00 2016 Dec 12 03:00:21 yea Dec 12 03:00:41 it seems like I don't have to worry about the next billion users since my app is for a sport only popular in the usa and a little bit in europe Dec 12 03:02:17 what sport? Dec 12 03:03:10 anyway you could take it as a chance to learn how to do high quality apps Dec 12 03:04:04 it's a disc golf app Dec 12 03:04:28 yea I'm trying to learn, that's why I'm adding this cloud component Dec 12 03:04:33 do people interact with each other in your app? Dec 12 03:05:05 if people just update their own data, you won't have many conflicts to resolve Dec 12 03:05:53 they don't interact...yet Dec 12 03:07:11 well it seems like there could still be conflicts if I update the db, I have to update the api and older clients are going to get some different data Dec 12 03:07:33 that's a different subject Dec 12 03:07:41 API versioning Dec 12 03:14:59 but I'll get up in versions super quick I'd think Dec 12 03:15:20 manage versions super quick, then Dec 12 03:15:35 and there is only one db so does that mean I'd have to rewrite previous versions of the api to cut out the new or different data so that it doesn't get sent back? Dec 12 03:18:37 yes Dec 12 03:19:33 you would have similar problems even using sqlite on the device Dec 12 03:27:58 seems like a nightmare, although I think if I send back extra data it gets ignored anyway by retrofit if I remember correctly Dec 12 03:29:14 Retrofit doesn't care about your data. The blame for ignoring extra data is on your serialization library. Dec 12 03:31:44 What is the current best practice / trend, View (Conductor) or Activity based applications? Dec 12 03:31:50 I'm a bit new to android development Dec 12 03:33:00 Conductor is reasonable Dec 12 03:33:11 Much better than fragments, at least Dec 12 03:33:25 I don't hate fragments heh Dec 12 03:33:31 that being said Dec 12 03:33:34 I don't enjoy them per se. Dec 12 03:33:55 In summary, I have no opinion. :)( Dec 12 03:36:53 tx its in 'meh' category :) Dec 12 03:43:05 Why use Conductor / Views over Activities? Dec 12 03:52:10 abstraction I guess Dec 12 04:00:22 Is it possible to do transition animations when switching Activities or can you only do that with views? Dec 12 04:02:34 sec^nd: this is your third question. Please update you nick Dec 12 04:05:30 :P Dec 12 05:50:46 is it normal to have all your layout files in the same layout folder? Mine's getting pretty big here. Dec 12 05:54:27 yeah. there is a hack to divide them up, you have to change your gradle file Dec 12 05:54:39 add each resource tree manually Dec 12 05:58:26 ah, thought I was just stupid but now I'll just blame the platform Dec 12 05:59:31 often the right move when it comes to Android... Dec 12 06:00:14 is ios easier to develop on? Dec 12 06:02:16 no Dec 12 06:04:36 first, you have to buy a Mac Dec 12 06:04:57 ... with no ESC key Dec 12 06:07:25 which makes it *really* hard to use vim, and therefore to do anything at all Dec 12 06:09:53 Bah if you use vim to write code, you're screwed anyway Dec 12 06:09:59 but ESC is useful in other contexts Dec 12 06:28:24 Leeds: CedricBeust told you are screwed Dec 12 06:29:28 come on it takes courage to remove the escape key :) Dec 12 06:29:31 by the way, they sell an USB ESC key for Macs Dec 12 06:29:56 $49.99 for an Escape key. And for an extra $19.99, you can have auto repeat! Dec 12 06:30:19 plus $34.99 for the required dongle Dec 12 06:34:12 <_rm> i mapped caps lock to esc on my mbp Dec 12 06:34:30 <_rm> and i mean the esc key is on the touch bar all the time, it's just super annoying to use since it's not a real button Dec 12 06:34:57 Leeds should be using emacs anyhow Dec 12 06:35:17 lol or Atom, VS Code, :D Dec 12 06:36:08 If you use vim to develop java apps you are insane Dec 12 06:38:41 * g00s pokes Leeds Dec 12 06:38:52 cmon are you going to take that ! Dec 12 06:39:21 meh, nobody uses emacs any more Dec 12 06:39:29 apart from RMS Dec 12 06:48:07 huh http://taras.glek.net/post/Moto-Z-has-10x-less-lag-than-pixel/ Dec 12 06:48:22 "This effectively makes fsync() a no-op" Dec 12 06:48:48 oh they used f2fs Dec 12 06:49:34 "f2fs nets Moto-Z a 2x speed-up and 2x increase in NAND lifespan. Expect Moto-Z to age much better than Pixel." Dec 12 06:50:16 <_rm> why does this post assume that an app writes something to disk on every frame Dec 12 06:50:22 <_rm> or am i misunderstanding it Dec 12 08:04:37 hello , i have a question , i have a web app that on a certain url returns a list of many images , how can i render all those images return on an android ? Dec 12 08:14:24 superKiller: Retrofit to fetch the information and and Picasso to load and display the images Dec 12 08:24:42 superKiller: or just OkHttp if the list of image urls is just a list, not a JSON data structure Dec 12 09:24:23 Is it suppose to be difficult to detect a click or touch on a WebChromeClient ? Dec 12 09:24:31 One would think not.... Dec 12 09:24:36 but hey... jeez. Dec 12 09:26:09 NeoFrontier: Can't you detect the click on the WebView? Dec 12 09:28:24 NeoFrontier: WebChromeClient is not a View so it shouldn't be getting any touch events, if you need to get them use the WebView as said by TacticalJoke Dec 12 09:28:55 Yeah, my mind almost exploded trying to comprehend a WebChromeClient getting a touch event. :3 Dec 12 09:29:31 it doesn't make any sense on the architecture level Dec 12 09:32:52 Yeah, I have the clickable property set to true and I have specified an onClick method, but it does nothing. Dec 12 09:33:07 ( of the WebView ) Dec 12 09:33:39 Oh, you might need to use an OnTouchListener (according to Google). Dec 12 09:33:58 Also, FYI, you never need to set `clickable` to true if you're defining an on-click listener. Dec 12 09:34:37 TacticalJoke: unless there is a multistate item that starts up as disabled Dec 12 09:35:19 thepoosh: Not sure what you mean, but this is what I'm referring to: https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/view/View.java#5486 Dec 12 09:35:46 Does sqlcipher no longer have .so - files in their releases? Dec 12 09:36:07 TacticalJoke: what about when defining one of the values in xml? Dec 12 09:36:25 thepoosh: The XML `onClick` thing calls View.setOnClickListener. Dec 12 09:36:33 It uses reflection. Dec 12 09:37:35 barq: I'm sure it does, looking at the source there is tons of JNI resources Dec 12 09:38:07 So it is not as easy as one would have thought ? What the point in having an onClick event if it does not work ? Dec 12 09:38:51 NeoFrontier: WebView doesn't play by the rules. It don't roll like dat. Dec 12 09:39:03 Why do you want to detect clicks or whatever, anyway? Dec 12 09:39:23 oh they should document that. It aint rolling by da rules. Dec 12 09:40:23 WebView's excuse is that it's too complicated. It can break the View contract. ListView also does this. Dec 12 09:40:45 Then again, this is the Android framework. Any subclass might arbitrarily decide it's not gonna be compatible with its parent. Dec 12 09:40:54 * raoul11 thepooshes thepoosh Dec 12 09:41:38 thepoosh: I no longer see a dist directory in the newer releases, only cpp and .h files Dec 12 09:43:09 FYI to all those who helped. Setting an onTouch listener to the webview works. Dec 12 09:43:35 For our info? :S Dec 12 09:44:08 barq: don't the c and h files create an SO upon running make? Dec 12 09:44:29 yes Dec 12 09:44:31 NeoFrontier: that is what we said you should do, thanks for validating our suggestions Dec 12 09:44:36 Yeah like you mentioned TacticalJoke. Thanks. Dec 12 09:44:40 so that's gonna happened Dec 12 09:44:44 :) Dec 12 09:44:50 NeoFrontier: I was just saying that 'FYI' mens 'for your info'. :D Dec 12 09:46:53 A bit of a pain to build by hand instead of picking the finished so Dec 12 09:48:19 Annoying when you thought you were just going to use the PROVIDED onClick... Dec 12 09:48:42 And end up finishing 30 hour later on a 1 minute job. Dec 12 09:48:55 30 minutes Dec 12 09:49:03 #justandroidthings Dec 12 09:49:04 later Dec 12 09:49:23 Is that where you blow out steam ? Dec 12 09:49:35 and spew fire ? Dec 12 10:02:20 general question how often app devs use 3rd party libs like: https://github.com/codepath/android_guides/wiki/Must-Have-Libraries Dec 12 10:03:54 <_rm> only of those that i've used is Robolectric *shrug* Dec 12 10:04:07 <_rm> only one* Dec 12 10:04:35 <_rm> although we'll probably transition parts of our code to retrofit Dec 12 10:10:42 thanks for the link pavelz Dec 12 10:17:58 raoul11: HAI Dec 12 10:18:12 hi buddy Dec 12 10:18:20 sap Dec 12 10:18:39 aight Dec 12 10:19:13 raoul11: there is also this which is not complete but nice: https://medium.com/mindorks/awesome-android-open-source-libraries-56a008c776c0#.6lqnk5c8s Dec 12 10:20:00 the github one seems more complete Dec 12 10:20:33 there is a diff Dec 12 10:20:36 worth the read Dec 12 10:20:48 bookmarked anyways Dec 12 10:21:04 hows the emergency rls going thepoosh Dec 12 10:21:28 meh Dec 12 10:21:44 person needed to take care of it is on vacation today so I'm implementing the feature Dec 12 10:21:45 so meh Dec 12 10:21:52 If Im not allowed to post job-related "ads" here, any idea where I can do this ? people from freelancer.com is simply not answering the correct questions Dec 12 10:22:18 barhom: there is a place in r/androiddev Dec 12 10:22:46 thepoosh thanks, Ill check it out Dec 12 10:22:52 np Dec 12 10:24:55 barhom look into upwork Dec 12 10:25:03 which is basically elance/odesk Dec 12 10:27:31 thepoosh: thanks. Dec 12 11:39:36 I wish I knew about developing on actual hardware and android dev in general. I could then maintain i9100. Dec 12 11:43:39 Furai: AOSP is your best frien Dec 12 11:43:40 d Dec 12 11:43:47 and maybe also CM Dec 12 11:47:51 thepoosh ? Dec 12 11:48:09 Oh, wait, my bad. I wanted to post that in #cyanogenmod-dev Dec 12 11:53:59 hehe Dec 12 12:25:09 hello! Dec 12 12:25:26 is there an NDK with a g++ 5? Dec 12 12:25:37 (I'm on Ubuntu 16.04) Dec 12 12:26:34 will the beta version of NDK 14 have g++ 5? Dec 12 12:47:12 zzarr, GCC is permanently deprecated. Dec 12 12:47:23 It'll never be updated and it will be removed in next release probably. Dec 12 12:54:10 what will replace it? Dec 12 12:54:20 clang? Dec 12 13:28:00 Mavrik, why is g++ removed? (I'm not complaining, just wondering) Dec 12 13:39:27 zzarr, https://github.com/android-ndk/ndk/issues/26#issuecomment-198067100 Dec 12 13:39:37 That's the team reasoning Dec 12 13:40:17 Plot twist: that guy is in this channel. Dec 12 13:42:25 Mavrik, interesting... very... Dec 12 13:56:20 Hi guys, is anybody using Conductor here as Fragment replacement? Dec 12 14:15:48 <_0xbadc0de> hello Dec 12 14:16:04 <_0xbadc0de> I am having a struggle with compiling a project in android studio Dec 12 14:16:05 <_0xbadc0de> Error:Failed to resolve: com.google.maps.android:android-maps-utils:0.4 Dec 12 14:16:46 <_0xbadc0de> shouldn't this be downloaded from maven repos? Dec 12 14:16:54 <_0xbadc0de> whats wrong? Dec 12 14:17:16 <_0xbadc0de> I am updating android studio in case it helps Dec 12 14:19:57 _0xbadc0de: Maybe you need go to Tools > Android > SDK Manager > SDK Tools and check Google Repository. Dec 12 14:20:06 Maybe you need to add something to your build.gradle file. Who knows. Dec 12 14:28:13 <_0xbadc0de> TacticalJoke: It was probably it yes Dec 12 14:28:26 <_0xbadc0de> I am downloading the "Google repository" Dec 12 14:56:11 hi can anyone share me a github repo of a simple android shopping cart app please? Dec 12 14:59:16 droidace: https://github.com/tonyvu2014/android-shoppingcart Dec 12 15:00:30 thanks thepoosh Dec 12 15:02:45 * raoul11 thepooshes thepoosh Dec 12 15:04:36 * thepoosh posshed Dec 12 15:10:55 reading some stuff on alljobs thepoosh Dec 12 15:11:13 alljobs has articles? Dec 12 15:11:24 pondering whether to apply to go boomboom in dizengoff Dec 12 15:11:29 jobs Dec 12 15:11:44 why not? Dec 12 15:11:51 pay is probably better than current Dec 12 15:11:57 current? Dec 12 15:11:59 kek Dec 12 15:12:01 topkek Dec 12 15:12:12 wut Dec 12 15:12:19 and yes, since current paycheck is empty Dec 12 15:12:23 job is better Dec 12 15:12:29 its null Dec 12 15:12:43 returning void Dec 12 15:12:48 well... Dec 12 15:13:02 anyways, applied to like 3 already Dec 12 15:13:23 so many of those are for hybrids Dec 12 15:13:23 anything good? Dec 12 15:13:31 I have a friend who works for Soluto Dec 12 15:13:34 if you want Dec 12 15:14:04 they do android stuff? Dec 12 15:14:16 yes, I think they mostly do React Dec 12 15:14:48 eww Dec 12 15:14:50 noty Dec 12 15:14:56 heheh Dec 12 15:15:07 I can put you 2 in touch and you can discuss it with her Dec 12 15:15:08 nativeorgtfo Dec 12 15:15:19 and I support your cause Dec 12 15:15:36 their office is still on rotschilld? Dec 12 15:15:43 think so Dec 12 15:16:38 unlike them not to do native Dec 12 15:17:04 amazing, only 4 pages for android/ios devs Dec 12 15:17:42 again, I can ask Dec 12 15:17:57 ask if native is even on the agenda Dec 12 15:18:17 rotschilld works for me, its like 5 mins away /: Dec 12 15:18:46 sending a message now Dec 12 15:18:47 but dont blame me if i accidently delete their entire db nd u get bitchslapped. Dec 12 15:19:02 not mah problem Dec 12 15:19:03 i mean, not that it happend Dec 12 15:19:10 well, happend once Dec 12 15:19:21 hehehe Dec 12 15:19:22 was their fault for giving me that sort of axx. Dec 12 15:19:36 * thepoosh starts feeling weary Dec 12 15:20:14 exactly Dec 12 15:20:33 i might go boomboom in dizengoff Dec 12 15:20:35 sent a PM on facebook Dec 12 15:20:40 blame it on arafat, start ww3 Dec 12 15:48:29 Can someone say something to test if chatroom is working for me please? Dec 12 15:49:49 something Dec 12 15:49:54 ty Dec 12 15:50:40 What's the best way to build a code base for an app with in app purchases. Do you make multiple modules? Or have 1 with flags to content that say "if this person has paid, this feature is unlocked?" Dec 12 16:07:16 Why use Conductor / Views over Activities? Dec 12 16:07:20 Is it possible to do transition animations when switching Activities or can you only do that with views? Dec 12 16:09:05 Hi. Not finding an answer to this on google so I must be missing something very basic, but for an AsyncTask, onPostExecute takes the result as input. Will that result also be available to asynctask.get() or do I need the onPostExecute to resend the result? I don't really plan on using .get but it's not something I want to be tracking down later on should that change since this will likely be using a number of asynctasks ^_^; Dec 12 16:12:30 sec^nd: 1) I worked with both Fragments and Conductor, and they're both a pain in the ass Dec 12 16:14:01 sec^nd: 2) yep, sure, I don't remember the method but it should be specified in startActivity if I'm correct, or set it at manifest level Dec 12 16:14:19 but again, I don't quite remember Dec 12 16:20:22 Happy Monday everyone Dec 12 16:22:25 Ether_Man: I’m not sure how get() works but I would assume that it would restart the task rather than get a cached result. I could be wrong on that, I’d recommend testing it out. Most people will recommend you avoid using AsyncTasks entirely though Dec 12 16:22:45 They have a lot of boilerplate and don’t work how most people expect them to Dec 12 16:24:21 konk3r, an asynctask cannot be restarted. get() just waits for the result to come in and then process the result. Basically, doing asynctask.execute(), directly followed by .get(), would essentially be the same as doing everything in the main thread to begin with. Dec 12 16:24:56 Oh interesting, from the documentation I just assumed that get() was a synchronous way to start the method Dec 12 16:25:01 er, start the task Dec 12 16:25:13 Also, most people recommending to avoid using asynctask, are people not doing networking, seeing as how that's basically banned from doing outside of asynctasks Dec 12 16:25:40 Oh, I’m not talking about avoid multithreaded code Dec 12 16:26:13 I would advice against using asynctasks for managing your background threads Dec 12 16:26:57 Asynctask cannot manage background threads like that. It's not designed for it either. They're there to create a single task that you want done in a seperate thread. Nothing more. Dec 12 16:27:46 asynctask is there for noobs/neophytes until they understand the limitations and use something better/more_suitable Dec 12 16:27:49 I don’t think you’re understanding what I’m saying Dec 12 16:28:03 AsyncTasks are used to run a background thread, but there are better choices Dec 12 16:28:45 Basically waht adq said, I’m just trying to explain that most people here will recommend you use an alternate to them. They’re provided with the framework but they’re clunky Dec 12 16:29:00 it's also officially not recommended for network purpose Dec 12 16:29:30 adq, the very official android documentation in response to network in main thread, is to use asynctask... Dec 12 16:30:16 that's old Dec 12 16:30:35 now they don't want you to do long operation in it (like > 3 sec) Dec 12 16:30:37 The android documentation is woefully outdated in places Dec 12 16:31:13 AsyncTasks should ideally be used for short operations (a few seconds at the most.) If you need to keep threads running for long periods of time, it is highly[...] Dec 12 16:31:24 https://developer.android.com/reference/android/os/AsyncTask.html Dec 12 16:32:01 So something eird is going on with my android Studio , is there a community page or bug report for android studio ? Dec 12 16:32:31 adq, https://developer.android.com/training/articles/perf-anr.html "The most effective way to create a worker thread for longer operations is with the AsyncTask class." it's right there in the official documentation, and unless you want to claim that that site is not the latest... Then yea, that still says to use asynctask for networking... Dec 12 16:33:05 adq, except I just said it's for a doing a single task. It's NOT a long running background thing... Dec 12 16:33:21 Ether_Man: their training is almost always outdated Dec 12 16:33:45 They’re just trying to get beginners to understand that you need to do network work on a background thread and AsyncTasks are an easy way to do that Dec 12 16:33:59 i cannot blame you Ether_Man, their doc is sometimes paradoxical and/or outdated Dec 12 16:34:04 problem is with the Find In Path" , oddly it doesn't seem to find anything today using the scopes Whole project or Module.. oddly still works for directory and custom Dec 12 16:34:12 it's a common knowledge that asynctask sux Dec 12 16:34:27 Ether_Man: we’ve been around the block, we’re just trying to help you out :) Dec 12 16:34:31 I'm sure you'll excuse me when I say that I trust the official documentation a hell of a lot more than random people in a chat room. Dec 12 16:34:34 dar10s, check sensitive case or regexp maybe Dec 12 16:34:52 Ether_Man, no worry lol but you will get hurt sooner or later with async ;) Dec 12 16:35:06 all pitfalls are known since it's a very old api Dec 12 16:36:01 yeah .. all unchecked boxes. Dec 12 16:36:38 Ether_Man: you don’t need to trust us, but I would defnitely look into the shortcomings before you decide to go with it http://blog.danlew.net/2014/06/21/the-hidden-pitfalls-of-asynctask/ Dec 12 16:37:06 You’re going to find out that a lot of Google provided libraries or classes aren’t as good as the 3rd party alternatives Dec 12 16:37:22 an odd thing that is occuring is the new classes I made today are being searched when using "wholeProject" so maybe this is ... ohh IDK Dec 12 16:37:51 Google has just been very careful to not officially endorse external libraries, which makes sense since they don’t manage them and can’t control if they are abandoned Dec 12 16:38:47 konk3r, none of the limitations that have been pointed to, is in ANY WAY relevant to my use case. Dec 12 16:41:00 The android lifecycle is always relevant, especially when you’re doing network calls Dec 12 16:41:19 Like oh noes, can't have more than 138 tasks in queue... Well ok, I'll have like a max of 2 if something unusual happens. Normally, it's 1. Having to check that it's cancelled, yea that's simple enough. I don't really need to since if it cancels, it never has a result that gets sent to processing so it's kind of irrelevant then. Dec 12 16:46:46 And the rotation thing. Also not relevant since the app is portrait only... Look I get that you're trying to help avoid pitfalls, but to say that one should always avoid using X because X has situations that could lead to problems in certain situations, is just silly when those situations are not relevant to the usecase. You HAVE to look at the usecase to determine if X should be avoided or not. Saying you should always implement the Dec 12 16:46:46 most complex of solutions that can work around all potential pitfalls, is exactly the type of thinking that leads to stuff like a telnet client that is 24megs large and requires access to the sdcard and stuff like that... Dec 12 16:51:22 lol Dec 12 16:51:34 well, you're aware of your use-cases, you should choose accordingly Dec 12 16:51:57 i did not touch asynctask since like.. 2012 and don't plan too anymore for any use-cases Dec 12 16:55:25 Anyone noticed funky stuff with maven central recently? Dec 12 16:55:39 For example, this used to have a field with latestVersion http://search.maven.org/solrsearch/select?q=g:%22com.google.code.gson%22+AND+a:%22gson%22&rows=20&wt=json Dec 12 16:56:03 which is causing the latest version to be undefined http://search.maven.org/#search%7Cga%7C1%7Cgson Dec 12 16:56:15 * yiati hmm for everything http://search.maven.org/#search%7Cga%7C1%7Cretrofit Dec 12 16:56:26 yeah, maven central is borked Dec 12 16:56:34 I think i saw some 500 page earlier Dec 12 16:56:37 * yiati shrug Dec 12 17:25:11 Ether_Man: Use whatever you want to so long as you know the edge cases :) I personally think that AsyncTask is more complicated than just manually creating a thread or using Rx which is why I prefer them. One thing to note that Google has mentioned at Google IO, you in a lot of cases you’ll want to use executeOnExecutor(…) instead of execute(…) if you decide to stick with with AsyncTask, otherwise all of your AsyncTasks will run on Dec 12 17:25:12 the same background thread. Dec 12 17:26:58 But I want them to run on the same background thread. As I said, I will have at most 2 threads on the queue, and if such a situation does arise, I do not want them to run in parallell as that would cause it to do multiple connections to the same server, which is not always allowed. Dec 12 17:28:38 You want 2 threads, but you don't want them to run in parallel sometimes? Dec 12 17:30:10 No. Normal operations would only have 1 asynctask thread. Worst case scenario, is that a second gets put on the queue while that one is executing, but it's not normally anything that would occur normally. Dec 12 17:32:04 Looks like Sonatype team noted that bug I was mentioning and opened a ticket for it https://issues.sonatype.org/browse/MVNCENTRAL-1392 Dec 12 17:46:31 Nice, looks like they just fixed it Dec 12 17:46:33 supafast Dec 12 17:47:21 hello, why do i need to upload my unfinished pp to configure in-app products? Dec 12 17:48:29 pp? Dec 12 17:59:15 app Dec 12 18:00:15 yiati: That’s insane turnaround haha Dec 12 18:10:51 oh sorry Dec 12 18:10:52 *app Dec 12 18:11:03 does anybody have experience with in app products? Dec 12 18:11:31 don't ask to ask, just ask Dec 12 18:12:22 hello, why do i need to upload my unfinished pp to configure in-app products? << because except with static response, that's the only way they allow you to test it: you need a separate account + publish your app in alpha or beta at least Dec 12 18:12:34 and static responses are not that great for testing at all Dec 12 18:14:59 Correct me if i'm wrong, but the `onErrorResumeNext` here should catch ALL errors in the chain, correct? https://paste.ee/p/99nAn Dec 12 18:40:46 I know some of you use Rx, any ideas on the above^ Dec 12 18:41:34 hey all Dec 12 18:42:11 I'm trying to get adb to recognize a mozilla Fx0 Dec 12 18:42:45 I'm on linux mint 17.3 Dec 12 18:44:52 is it running android? Dec 12 18:44:59 i thought that ran Firefox OS Dec 12 19:00:57 hey everyone Dec 12 19:01:29 how to create a little box to point to menu item in android like this : https://www.google.com/search?q=nice+menu+in+android&biw=1301&bih=678&source=lnms&tbm=isch&sa=X&ved=0ahUKEwi5qrXHo-_QAhWDjCwKHawIDL8Q_AUIBigB#tbm=isch&q=nice+android+actionbar&imgrc=jiFpjOao8zXzMM%3A Dec 12 19:03:43 which box? Dec 12 19:05:14 s73v3r : see this : https://www.sundoginteractive.com/blog/using-android-ics-new-layout the blue box Dec 12 19:06:02 with the number in it? Dec 12 19:06:24 yes Dec 12 19:06:32 i think with custom view Dec 12 19:06:33 just make a drawable and position the image Dec 12 19:06:49 the thing is, though, in that example, those boxes were added to a screenshot in photoshop Dec 12 19:06:53 they’re not part of the app Dec 12 19:07:04 yes i know Dec 12 19:07:16 then just make the image, and position it in an overlay Dec 12 19:07:19 but it is possible with your idea Dec 12 19:07:59 thank u s73v3r Dec 12 19:10:56 s73v3r : is necessary for every density create menu.xml ? Dec 12 19:11:33 no, it’s separate Dec 12 19:12:53 i mean for ldpi create menu.xml (ldpi ) for mdpi menu.xml (mdpi ) and etc ... Dec 12 19:15:45 zzarr, Mavrik: current roadmap doesn't have the GCC removal until r17 (about a year from now): https://android.googlesource.com/platform/ndk/+/master/docs/Roadmap.md#Remove-GCC Dec 12 19:16:06 It's only a rough schedule, of course Dec 12 19:16:18 anyone have had experience with android studio on both ubuntu 14.04 and ubuntu 16.04 ? Dec 12 19:19:58 what's it do on 14.04 Dec 12 19:23:15 i have been on 14.04.4 before and it was good to run android studio and build project but after deleting it and then installing 16.04 i saw amd does not develop fglrx anymore and ubuntu have deleted on it and i also deleted it and installed ubuntu 14.04.3 Dec 12 19:23:44 but android studio 2.2.3 on ubuntu 14.04.3 is very slow to build with amd cpu and 8G Ram Dec 12 19:23:56 but on ubuntu 16.04 it was very very fast Dec 12 19:24:17 i do not know what is problem may be it is because of I/O Dec 12 19:26:31 on ubuntu 14.04.3 with fglrx driver java process take 100 % cpu but on ubuntu 16.04 it didnt Dec 12 19:46:10 Android Studio asks you for the name of the class when creating a new component. Why doesn’t it ask you the name of the layout file it automatically adds? Dec 12 19:50:56 anyone else try to update to Android Studio 2.2.3 and the build tools 25.0.1 yet? Dec 12 19:52:08 s73v3r : did u ask me about my problem in above message you sent ? Dec 12 19:52:43 mrandroid : me Dec 12 19:52:44 no Dec 12 19:53:10 irsef ... have you seen any issues? Dec 12 19:53:46 mrandroid : issue about ide yes Dec 12 19:54:17 irsef: yes .... my entire team is seeing that the update breaks projects that don't use Android build tools 25.0.1, etc .. Dec 12 19:54:54 what is that ? Dec 12 19:56:18 Is there anywhere that documents what the required versions of the android gradle plugin are compatible with specific versions of Android Studio? Dec 12 19:56:47 https://developer.android.com/studio/releases/gradle-plugin.html shows Android Gradle Plugin to Gradle Version, but nothing about Android Studio itself Dec 12 19:57:44 yiati : not really. this is part of the problem. Dec 12 19:58:35 you know when something needs updated, generally speaking, when Android Studio stops building your project and throws an error (often times a non-descriptive error). Dec 12 19:59:12 iresf : we're seeing so many build issues we don't have time to enumerate them at the moment. Dec 12 20:00:22 I just let AS tell me when it needs to have pieces upgraded, which is fairly frequently. Dec 12 20:00:38 if i want to use a selector layout for selecting the drawable source for button states, and i want the button to have rounded corners, do i have to define corners in every drawable source for every button state? Dec 12 20:01:12 mrandroid : yes i have had this problem befor because of unmount the device that the sdk was on it Dec 12 20:01:50 JuliusN: Not _quite_. Your question is a little odd. Why would you define corners explicitly? Dec 12 20:02:21 It's acutally kinda easy to build a selector using drawbles Dec 12 20:03:27 then the android studio stopped building project and then a nondescriptive error Dec 12 20:05:26 JuliusN: All you have to do for the rounded corners is throw in a corners element to shape with a radius attribute. Voila, pill-shaped buttons Dec 12 20:05:59 JuliusN: beyond that building a selector is just a matter of copy-pasting, changing a few bits here and there, and 3-7 lines of XML for the selector Dec 12 20:09:37 Dagmar: I gues i was hoping that the selected drawable could inherit corner radius from, say, the selector Dec 12 20:10:26 but yeah it's not a big deal to define them in each drawable. just wanted to keep things dry Dec 12 20:11:04 Just clone the base drawable and modify the clones Dec 12 20:11:35 is cloning something other than copy-pasting? Dec 12 20:11:38 Assuming you're keeping the same shape for each of them, it just makes sense to copy & then modify each state Dec 12 20:11:43 Nope. Just less typing Dec 12 20:11:51 right Dec 12 20:13:58 Just whatever you do... don't go to Canary and then try to switch back (on Win32 anyway) Dec 12 20:14:03 The uninstall takes AGES Dec 12 20:14:47 I figured it would take longer for them to fix RecyclerView in the layout window Dec 12 20:20:20 anyone has AMD cpu ? Dec 12 20:24:38 who works with android studio and VD on AMD cpu ? Dec 12 20:40:00 Anyone familiar with styling Widgets in the constructor? e.g. new Button(this, null, R.style.myButtonStyle); Dec 12 20:41:08 I'm trying to create a custom style that has @android:style/Widget.Button as the parent and it doesn't really seem to be working. I'm just getting clickable text over my background. Dec 12 20:41:36 Hi. In my layout file I have a "FragmentTabHost". The linter shows me a warning "Element FragmentTabHost is not allowed here. When the app starts, it crashes saying it cannot find its class. I'm using support library v13 for it. Dec 12 20:45:38 there's a fragmenttabhost? Dec 12 20:46:05 oh, what would you know... yuck Dec 12 20:49:01 Hi. I'm trying to use a cheap bluetooth controller (this one in particular https://www.amazon.de/gp/product/B01AI9CZVE/ref=oh_aui_detailpage_o03_s00) to control my app. I'd like to just capture the raw data sent for each keypress and interpret it inside my app. So far I have been out of luck with standard procedures. I also struggle to understand UUIDs. Do I have to know what UUID the remote uses in order to Dec 12 21:06:31 any idea why the blue textfield takes up so much space above its content? https://dl.dropboxusercontent.com/u/612731/textview.png layout: https://dpaste.de/C769 styles: https://dpaste.de/ufry Dec 12 21:08:51 oops found itr Dec 12 21:56:49 Please vote and re-tweet =) https://twitter.com/Zta77/status/808430278309986304 Dec 12 21:58:16 Hm, does this poll even work? Or am I just unable to vote on my own polls? Dec 12 22:00:35 you can’t vote in your own poll Dec 12 22:01:43 Check. Dec 12 22:14:20 Zta: y not both Dec 12 22:14:39 oh I guess there's four choices there Dec 12 22:15:02 I assume you must prefer one over the other, just a little tiny bit. Dec 12 22:15:44 no they each have a critical thing the other does not Dec 12 22:18:05 Okay I'm sorry I didn't think about that option. It's not a science project. I was just curious about whether people prefer "Android" or "Project" really, because I prefer Project but when I accidentally hit "Android" e.g. when starting a new project, I like some things that view provides as well. Dec 12 22:24:32 missingno: But which two do you prefer anyway? Dec 12 22:28:09 "What would it take for you to use the Layout Editor more often?" Dec 12 22:28:13 lol, no idea Dec 12 22:28:29 for it to not suck ass Dec 12 22:29:03 seriously, I added something in GOOGLE’S OWN DESIGN SUPPORT LIBRARY, and I get the huge error thingy sayiing classes could not be instantiated Dec 12 22:31:32 hi guys Dec 12 22:31:42 having fun? Dec 12 22:31:54 i guess i would use it if they paid me :D Dec 12 22:33:27 i think my only problem with AS is (1) too resource hungry and (2) still not good enough real-time error feedback Dec 12 22:33:38 otherwise, pretty good Dec 12 22:33:46 oh i guess the previewer is often broken Dec 12 22:44:27 the previewer is the layout editor Dec 12 22:45:02 and it sux. Dec 12 22:50:44 adq: hi! Dec 12 22:51:10 i'm polite, hello. Dec 12 22:52:02 :) Dec 12 22:56:23 "True, if building would not nearly freeze up the entire system it would be nice. Apart from that Android Studio is excellent for me." Dec 12 22:56:29 lol. apart from that ;) Dec 12 23:03:47 Anyone know if it is possible to retrieve the string value of the resource id of the text attribute from xml in its view? Dec 12 23:04:24 arg!! after reading that question Dec 12 23:04:32 yeah, I didn’t quite get it Dec 12 23:04:52 So you have an XML layout, and in the text field, you have @string/mystring? Dec 12 23:04:56 ya i kno sry for that Dec 12 23:05:00 yes Dec 12 23:05:06 i need mystring Dec 12 23:05:14 from within the textv Dec 12 23:05:14 and, in code, you want to get the string that is referenced by R.string.mystring? Dec 12 23:05:30 no i do not need the string that is referencing. Dec 12 23:05:35 i need mystring Dec 12 23:05:42 i don’t think you can Dec 12 23:05:45 I don't think that is persisted Dec 12 23:05:50 that is what i thought. Dec 12 23:06:00 why do you need to know the resource id? Dec 12 23:06:03 but the resource ids are consistent across installs correct?+ Dec 12 23:06:11 yes Dec 12 23:06:13 i wouldn’t count on it Dec 12 23:06:18 they’re generated each time you build Dec 12 23:06:18 so mystring is really just an id Dec 12 23:06:21 it's p easy to backtrack the view resource id Dec 12 23:06:36 since it is actually saved as a member variable of View Dec 12 23:06:50 (and there's already code in View.toString to do it) Dec 12 23:07:02 i am trying to use the resource id for a key for translations downloaded from api call Dec 12 23:07:25 that sounds like you’d be better off setting the text in code Dec 12 23:07:40 I would upload a mapping from resource id to string key on the server at every build shadynastys Dec 12 23:07:47 the resource id int will change when the code changes Dec 12 23:07:55 so your server should expect them to change Dec 12 23:08:03 yes missingno that sounds about right. Dec 12 23:08:09 wait I guess that doesn't solve the first problem Dec 12 23:08:16 why do you want to pull them from the server instead of just using the android system? Dec 12 23:08:34 because if i want to change a translation i need to release a new version of the app Dec 12 23:09:01 so? Dec 12 23:09:10 So i am downloading overrides on app start. if the overridden translation is in the database then i want to use that. Dec 12 23:09:25 referenced by the res id of the string that is in x Dec 12 23:09:27 xml Dec 12 23:09:30 i guarantee you that you will spend more time implementing and debugging this system than you will ever save Dec 12 23:09:37 don’t bother, it’s a waste of time Dec 12 23:10:02 challenge accepted. Dec 12 23:10:13 that’s not a challenge Dec 12 23:10:17 that’s speaking from experience Dec 12 23:10:33 oh interesting support lib has a ResourcesWrapper Dec 12 23:10:51 i understand. But this is just something that i am playing with. not expecting this to work perfectly or nearly at all. Dec 12 23:11:03 again, don’t bother Dec 12 23:11:11 if you’re going to do it, don’t tie it to the string resource id Dec 12 23:11:25 that’ll just make people expect to find the strings in the strings.xml Dec 12 23:11:46 and you will be able to find the strings in strings.xml Dec 12 23:11:56 you just said they’re coming from the server Dec 12 23:12:01 but if there is an overridden one in the local database then it will use that. Dec 12 23:12:10 looks like you can intercept the resource string lookups with a contextwrapper shadynastys Dec 12 23:12:27 or, save yourself a lot of time and effort, and don’t bother Dec 12 23:12:27 ty missingno ill look into that. Dec 12 23:12:38 how often, honestly, do you expect you will change translations? Dec 12 23:12:48 they change every few days for me Dec 12 23:12:51 all the time Dec 12 23:13:00 how? Dec 12 23:13:01 i get requests every week to change translations Dec 12 23:13:02 why? Dec 12 23:13:15 why not just translate properly to begin with? Dec 12 23:13:27 mind you I only download translations at build time Dec 12 23:13:45 because I don't know German s73v3r Dec 12 23:13:50 cue Mechanical Turk Dec 12 23:14:00 I don’t know German either. doesn’t stop me Dec 12 23:14:34 s73v3r there is no proper translation. different languages have dialects and stuff that you cannot anticipate. if a user wants the app to display different translation who am i to say it is wrong. Dec 12 23:15:05 and then now you’ll anger someone who thought it was right originally Dec 12 23:15:28 so are you going to ping-pong between the two translations? Dec 12 23:15:31 in my instance changing a translation can happen per instance of app usages Dec 12 23:15:58 but each instance can have different translation. Dec 12 23:16:04 that sounds like a huge headach Dec 12 23:16:07 headache Dec 12 23:16:57 yup it is. But that is why I exist. Dec 12 23:17:19 no. you exist to provide value to your users. not to dick around with translations Dec 12 23:17:48 but my users find value in being able to change the translations in the app that i build. Dec 12 23:18:01 value enough to pay for it? Dec 12 23:18:06 a lot Dec 12 23:18:14 cause while you’re dicking around with translations, you’re ignoring everyone else Dec 12 23:18:50 you have a small view of things. Dec 12 23:19:20 no, I have an experienced view of things. how much does it cost, per user, to change a translation? Dec 12 23:19:23 ty missingno for the lead. Dec 12 23:19:40 how about http://stackoverflow.com/a/9475663/1373568 shadynastys (first link) Dec 12 23:20:24 you just have to match locale to a language, since they're aren't the same thing but close enough Dec 12 23:20:58 s73v3r i am not saying your view is inexperienced. I am saying that you are making assumptions without knowing what app i work on, what it does, where it is used and how. your view of my problem is constrained to what i have told you. Which is nothing. Dec 12 23:21:38 you told us that you can change the translation per install of the app Dec 12 23:21:55 and that individual users can request personalized translations Dec 12 23:22:02 so your experience does not mean anything unless you can assist in my problem. You telling my not to bother is not helpful. You can tell me you have tried and failed but telling me not to try is not your decision to make. Dec 12 23:22:09 That seems... not particularly useful. Dec 12 23:22:42 xy-problem, but with the snippet above he can load any strings he wishes at any time Dec 12 23:25:08 i didn’t say we failed. I said that the amount of time we spent on it was a waste, when we could have used the built in stuff much faster, and spent our time on doing things that would actually benefit the user Dec 12 23:27:37 No you are correct you just told me to not bother. And i do not really need your negativity. I am looking for solutions. It might not be a good value proposition for you... but that is not something you can impose on me. Dec 12 23:30:06 https://adtmag.com/Articles/2016/12/12/mobile-predictions.aspx Dec 12 23:33:05 nothing too earth shattering Dec 12 23:33:46 No idea why they decided to call it 'Altered Reality' Dec 12 23:34:05 cause then they can call it a new buzzword Dec 12 23:34:11 it’s not the same as before, it’s new! Dec 12 23:34:15 they tried to avoid "disrupted reality" Dec 12 23:35:54 Usually it's called "Augmented Reality" Dec 12 23:37:13 because if you find that a particular augmented reality is annoying, then it would e "diminished reality" Dec 12 23:37:21 "altered reality" is more neutral Dec 12 23:37:44 This isn't about feels. Dec 12 23:37:49 It's about functionality. Dec 12 23:38:08 When one adds information to real world information, the result is an augmented data set. Dec 12 23:38:14 it’s writing. feels has a lot to do with it Dec 12 23:38:29 the result is also an altered data set Dec 12 23:38:42 Let the "writers" do the research and write the damn software then Dec 12 23:38:53 We've had enough interference from liberal arts majors. Dec 12 23:39:05 See also: gigabytes/gibibytes. Dec 12 23:41:00 Hello Dec 12 23:41:37 Dagmar because its not AR or VR ;) Dec 12 23:42:13 i am building a app that is a game of questions like who wants to be a millionaire. i have the main application and then i widget that also you can play. Is the best way to make the db acess through a service? Dec 12 23:42:50 yeah, probably Dec 12 23:50:03 s73v3r, Can a widget get access to the sharedpreferences? Dec 12 23:50:10 It can. Dec 12 23:50:25 Just don't count on the handle sticking around over time. Dec 12 23:50:42 Widgets are basically affected by chronic Alzheimers. Dec 12 23:50:42 because i need some way to store the data of some game Dec 12 23:51:08 like points, user name, difficulty and stuff like that Dec 12 23:51:12 If you pull up a value during one pass of the widget updating, don't expect that value to still be there on the next update. Dec 12 23:51:15 is there a better way to do what? Dec 12 23:51:39 Get the value from the sharedprefs storage every time, or use a canary value as the initializer and check for surprise nulls. Dec 12 23:52:01 ok i will do that Dec 12 23:52:22 Widgets get drawn, and then basically, the GC can just discard every bit of it. Dec 12 23:52:28 Like, "I've got what I want. Get out." Dec 12 23:56:02 it's my first time doing some android dev, so i dont know what the best practices are Dec 12 23:57:56 Try not to drink too heavily. Dec 12 23:58:03 That's pretty important at first. Dec 12 23:58:12 will i need it? Dec 12 23:58:44 That depends on how differently your previous coding experiences were from the almost exclusively event-driven nature of the Android Lifecycle. Dec 12 23:59:23 previous almost all backend stuff Dec 13 00:00:51 Yeah, pay attention to the Lifecycle, particularly the existence of savedInstanceState stuff. Dec 13 00:01:07 This will be kind of inside-out, or perhaps upside-down, from what you're used to Dec 13 00:01:34 Your code doesn't run so much as pieces of it are called forth by Android. Dec 13 00:02:01 It's pretty easy once you wrap your head around that and let Android Studio scold you frequently. Dec 13 00:04:39 I find it weird that I cannot get my model object from my Adapter. I'm missing a getItemAt(position) Dec 13 00:04:50 (RecyclerView) Dec 13 00:17:17 a TextView’s getText method. Can it return null? Dec 13 00:17:43 the source is not annotated, and the comment does not address this Dec 13 00:18:56 there seem to be null checks on mText Dec 13 00:19:37 even though I don't see where it could possibly be null Dec 13 00:20:19 Zta ? Dec 13 00:20:30 Yes? Dec 13 00:20:38 What was your issue? Dec 13 00:20:45 You can do exactly what you described Dec 13 00:21:23 orbyt_: How? Adapter has a getItemAt(int) ? Dec 13 00:22:32 something like that, yes Dec 13 00:23:18 Its more like getPosition Dec 13 00:23:37 but then just use mData.get(position) Dec 13 00:26:27 There is no such method on Adapter (http://stackoverflow.com/a/30030849/2412477) . I can always add one, that's easy, but that doesn't help when I call recyclerView.getAdapter().getItemAt(2). Furthermore, I think the need for such a method is so obvious, that I obviously must miss some important point of the Adapter. Like it's a layer between View and Model and not the Model itself. Dec 13 00:28:53 presumably you already have a reference to the list Dec 13 00:28:54 Im not sure I understand the issue then. Your original question sounded like you wanted to get the item at a position, which is what that does. Dec 13 00:29:12 no, it’ll fail with “No such method” error Dec 13 00:29:23 What will? Dec 13 00:29:33 cause getAdapter() returns a RecyclerView.Adapter, not ZtaAdapter Dec 13 00:29:39 calling recyclerView.getAdapter() Dec 13 00:29:49 Exactly. Dec 13 00:29:50 Oh of course, I didnt mean his example exactly Dec 13 00:30:51 I have a reference to the List, but I wanted to just hand it over to the Adapter. But the key is to keep the List myself and just hand the Adapter a reference -- I mean not let it own the List, if that makes any sense. Dec 13 00:31:36 yup Dec 13 00:31:38 Pass it in through the constructor? Add an addItems() method and call notifyDataSetChanged()? Dec 13 00:32:33 orbyt_: I can do all that. And my example exactly was exactly my case =) Dec 13 00:33:40 Couldnt you call getAdapter and cast it? Dec 13 00:34:04 or keep a reference to your adapter as your adapter Dec 13 00:34:46 Presumably if he has to use .getAdapter() I would assume he somehow doesnt have a reference to it Dec 13 00:35:06 ¯\_(ツ)_/¯ who knows Dec 13 00:41:33 this is a new project made with Android Studio wizard http://paste.opensuse.org/58305265 <-- have this errors, how to solve them ? Dec 13 00:46:45 Passing a reference to the model itself is cleaner. Dec 13 00:46:48 Hi. Dec 13 00:47:01 Anyone currently here? Dec 13 00:47:45 Althis, 355 of us Dec 13 00:48:13 Well, I supposed at least 354 of those could be idlers. Dec 13 00:48:19 Now I know. Dec 13 00:48:31 At least 2 of them aren't. Dec 13 00:48:36 glad we cleared that up Dec 13 00:48:54 I am not here Dec 13 00:49:47 Of course not. Dec 13 00:49:53 You are a mistake. Dec 13 00:50:00 A bug turned mainstream. Dec 13 00:50:08 Also, best pokemon. Dec 13 00:50:13 "pokemon". Dec 13 00:50:58 So, I've got this thing to hand in in a couple of hours, and I have a problem that I cannot figure out. I've posted it on stack and other forums, but so far no one responded and I am getting a bit desperate. Dec 13 00:51:04 Could anyone give me a hand? Dec 13 00:51:11 http://stackoverflow.com/questions/41111143/align-to-objects-outside-your-layout Dec 13 00:53:08 Hello SwiftMatt and Buglessdr Dec 13 00:53:21 Hi, why me? Dec 13 00:57:05 Isn't that the big question? Dec 13 00:57:08 Why me? Dec 13 00:57:15 Why not someone else? Dec 13 00:57:38 It is the matter that we do not choose our fate. Dec 13 00:57:44 Our fate chooses us. Dec 13 00:57:54 In this case, my calling you out as you came in. Dec 13 01:22:11 This place is a ghost town. Dec 13 01:22:52 * Althis listens to Adam Lambert and Ozy Osbourne fight to the death. Dec 13 01:25:57 * TacticalJoke haunts Althis. Dec 13 01:26:08 ozzy rules ! Dec 13 01:26:09 Wow. Dec 13 01:26:16 That is a very well placed joke. Dec 13 01:26:32 Surgical, some may say. Dec 13 01:26:42 Strategic. Dec 13 01:27:28 I do very much like Ozzy too, @g00s. Dec 13 01:27:38 Listening to crazy train now. Dec 13 01:27:57 one of my favorite solos has to be mr crowley Dec 13 01:28:23 actually not that hard to do, just well done "with taste" Dec 13 01:31:22 TacticalJoke did you take the survey ? Dec 13 01:32:03 Nah. Did you? Dec 13 01:32:24 I took some other survey last week when I visited the framework-documentation pages. Dec 13 01:33:21 i took the AS one Dec 13 01:33:31 don't remember the other Dec 13 01:33:51 although this asked where you got information, i said SO :D Dec 13 01:36:55 hm this sounds interesting, but its in french http://androidleakspodcast.com/2016/12/11/episode-11-de-poireau-a-rockstar-en-3-episodes-13/ Dec 13 01:37:35 lol i don't think they were talking about PHPs fopen http://php.net/manual/fr/function.fopen.php Dec 13 01:39:02 wonder what they were talking about in 'tragedy of the commons' Dec 13 02:23:19 Dagmar: gibibyte has nothing to do with liberal arts and everything to do with science **** ENDING LOGGING AT Tue Dec 13 03:00:00 2016