**** BEGIN LOGGING AT Tue Nov 29 03:00:01 2016 Nov 29 03:00:19 wanna swap for .NET? google seem to be putting a bit of money in there... Nov 29 03:00:26 g00s: You use your Nexus 7 for testing your app? Nov 29 03:00:31 TacticalJoke yeah Nov 29 03:00:38 bankai_ .net is nice Nov 29 03:00:54 Syzygy_: Have you tried inserting Log.e calls in onBindViewHolder? You'll see exactly what's going on. Nov 29 03:00:56 MS is much better at tooling than google also Nov 29 03:01:11 i see it everywhere, i'm still waiting to find this 'nice' that everyone else seems to be able to find :( Nov 29 03:01:24 google better at AI and cloud Nov 29 03:01:36 apple is great at making things thinner Nov 29 03:01:49 I liked .NET, but I find the Java ecosystem better than the .NET ecosystem (in general). Nov 29 03:01:55 although, they get high marks for ios security features Nov 29 03:01:56 To be expected because of Java's age. Nov 29 03:02:44 too bad oracle has java Nov 29 03:03:01 and they evidently hate it at the same time Nov 29 03:03:58 oracle hates everybody :D Nov 29 03:04:05 TacticalJoke, I get those 1500 calls to onBindViewHolder before I can even interact with the app. Nov 29 03:04:24 1500 calls? ;o Nov 29 03:04:34 1500 items Nov 29 03:04:58 There are 1500 views on screen at one time? Nov 29 03:05:40 20 at most Nov 29 03:06:09 onBindViewHolder should be called at most 20 times, then. Nov 29 03:06:51 I understand that, but I'm not specifically calling it. I'm not sure why it's called that often. Nov 29 03:07:01 I'll try gisting my code. Nov 29 03:10:54 I'm so glad HN now has the "[-]" thing. Nov 29 03:12:32 https://gist.github.com/Syzygy2048/59574673eed5fae05aa59e6b23ebf358 Nov 29 03:18:54 Syzygy_: Hmm, not sure, but why is the RecyclerView inside a NestedScrollView? Nov 29 03:19:25 Also, a RecyclerView inside a CardView feels a bit weird. Maybe I just haven't considered doing this before. Nov 29 03:19:33 It's a bottom sheet Nov 29 03:20:11 i'll try removing the nestedscrollview, that mostly pieced together from some examples i found together with my improvements. Nov 29 03:20:53 seems like that was the issue Nov 29 03:20:56 thanks for your help Nov 29 03:22:05 Syzygy_: Also, passing Activities around is bad practice in general. Not awful here, but there's still way better. Nov 29 03:22:42 In onCreateViewHolder, better than `View view = activity.getLayoutInflater().inflate(R.layout.list_item, parent, false);` is `View view = LayoutInflater.from(parent.getContext()).inflate(...);`. Nov 29 03:22:51 And you can remove all that Activity stuff. Nov 29 03:25:03 alright. thanks for your input Nov 29 03:26:00 `Toast.makeText(activity, "clicked", Toast.LENGTH_SHORT).show();` --> `Toast.makeText(view.getContext(), ...);` Nov 29 03:26:18 Also, it looks like you might eventually need two view types (though I'm not sure). Nov 29 03:26:21 I already completely removedi t Nov 29 03:27:08 What makes you think that? Nov 29 03:27:25 The only final thing I'll say (for OCD reasons) is that you don't need to say stuff like `itemList = list;`. You could say `this.itemList = itemList;`. Nov 29 03:27:40 Oh, I'm not sure. Just the different click listeners. But maybe I'm mistaken with my prediction. Nov 29 03:30:06 Basically I have a bottom sheet that opens when I press my FAB, if I click items there, they get added to a main list. It should look the same, but an item from the main list should be crossed off. Nov 29 03:30:21 It's the same item, same adapter, just the onClickListener is different Nov 29 03:30:51 (maybe the crossed off effect could be a different view, but might as well just be something set to visibility gone) Nov 29 03:31:23 I see. Nov 29 03:31:25 and i'm aware of this.stuff = stuff; but I prefer not using Nov 29 03:31:42 i think it's clearer this way. but I guess that comes down to taste Nov 29 03:34:19 I assume the issue is solved now that the scrolling parent has gone. But if it's still slow I would consider loading the icons asynchronously (either before showing the RecyclerView or starting from onBindViewHolder). Nov 29 03:34:48 Kinda like how thumbnails might be lazily loaded in a scrolling list. Nov 29 03:35:20 The issues is gone and I'm starting loading from onBindViewHolder (always have been in this case). Loading the icons asynchronously does not seem necessary atm. Nov 29 03:35:32 Okay, that's good. Nov 29 03:42:27 how to move a file from app cache to sd app folder ? Nov 29 03:42:39 in SO seems is not trivial Nov 29 03:43:58 Thanks again for your help TacticalJoke, might not have found it tonight without your help. Also thanks for the other input as well, I appreciated it. Nov 29 03:44:06 Time to sleep for a bit. Nov 29 03:45:46 No worries. Nov 29 03:48:12 pmercado: Does this work? http://stackoverflow.com/a/4770586 Nov 29 03:53:56 TacticalJoke: yes, well, testing this: http://stackoverflow.com/questions/9292954/how-to-make-a-copy-of-a-file-in-android/9293885#9293885 Nov 29 04:28:01 my Web API doesn't work anymore and I don't know why Nov 29 04:29:32 One moment was working just fine and I was developing the Android application, the next moment it works only if called from the server itself. My desktop and the Android device receive stange 404 and 501/"not implemented" responses Nov 29 04:29:51 What can I do? Nov 29 04:30:02 fix it Nov 29 04:30:13 Send in Bob the Builder. :D Nov 29 04:30:14 Melatonina well at least this time you didn't segfault, so there is that Nov 29 04:30:46 * g00s hopes memory is serving Nov 29 04:31:20 GMS 10.0.1 Nov 29 04:31:35 :) Nov 29 04:35:49 bankai_: of course I was asking "what can I do to understand where is the problem?" I know I have to fix it Nov 29 04:36:27 read the logs Nov 29 04:36:35 (Although I must admit I hoped that a couple of reboots could fix it) Nov 29 04:36:53 talk to the duck Nov 29 04:36:55 Good idea. Let's see if there is something in the IIS logs Nov 29 04:36:57 while (!working) { fix(it); } void fix(Thing thing) { // TODO: Implement this } Nov 29 04:43:05 bye! thanks for your help :) Nov 29 04:46:00 I love this: https://code.google.com/p/android/issues/detail?id=25112 Nov 29 04:46:12 "Any updates on this?" > Obsolete Nov 29 04:47:51 I'm using Relative Layout and here's the code: http://pastebin.com/J8b1YPPV , the problem is that "Me" isn't appearing to the right of lyla.. Any ideas? :D Nov 29 04:50:12 the web server (IIS) is not logging the requests from my desktop computer Nov 29 04:50:46 tassilo_tazz: Maybe they both need align-parent-bottom. It's been a while since I've used a RelativeLayout, though. Nov 29 04:52:02 Also, `android:textSize = "20"` is just wrong. Nov 29 04:52:07 It's a DNS problem. My domain is not redirected to my server anymore! Nov 29 04:52:26 TacticalJoke, you're a freaking genius.. and yeah I know. I forgot dp Nov 29 04:52:34 It should probably be `sp`. Nov 29 04:52:37 or sp Nov 29 04:53:06 Is relative layout used a lot or is linear layout more popular? Nov 29 04:53:55 They're both used a lot. LinearLayout is simpler and probably faster (assuming we're talking a single LinearLayout). Nov 29 04:54:29 FrameLayout is the best in terms of simplicity and speed. Nov 29 04:55:09 Ah. yeah I'm not that far yet in my tutorial series haha I have only learned about LinearLayout and RelativeLayout and some other stuff. Btw thanks for helping me out :) Nov 29 04:55:43 No worries. RelativeLayout is definitely worth mastering (and sometimes using). Nov 29 05:00:32 hm isn't ConstraintLayout replacing RL ? Nov 29 05:02:14 Yeah, I think so. Nov 29 05:02:26 Though I dunno when it'll be released. Nov 29 05:02:31 http://tools.android.com/recent/constraintlayoutbeta4isnowavailable Nov 29 05:02:38 Soon(tm) Nov 29 05:04:53 Maybe I'm wrong about it being worth mastering. I guess I was thinking of it from an "it shows you what you can do on Android (even if you end up doing the same in a custom ViewGroup)" perspective. Nov 29 05:05:15 Definitely worth being aware of, though. Nov 29 05:15:09 TacticalJoke when are you going to start writing hand optimized smali instead of that pesky java Nov 29 05:15:38 haha Nov 29 05:15:47 What ever happened to JesusFreke? Nov 29 05:15:54 I googled him and found out he worked for Google. Nov 29 05:15:56 he's in #backsmali Nov 29 05:33:16 g00s: it was a DNS problem Nov 29 05:33:43 g00s: I can't manage to fix it Nov 29 05:33:51 damn WWW Nov 29 05:35:49 there is nobody in #backsmali Nov 29 05:36:05 maybe its #smali then Nov 29 05:38:11 probably is a problem with the DNS of the company that manages my domain and my VPS Nov 29 05:40:40 I want a football Nov 29 05:41:01 a nukular football, I mean Nov 29 05:45:59 anyone here familar with firebase? i'm trying to get some examples working... everything works great on the emulator but on my hw phone i dont receive any notifications at all.. Nov 29 05:46:24 except a token Nov 29 05:46:48 anyone got a clue why this could happen? Nov 29 05:49:22 I don't Nov 29 05:49:27 I'm clueless Nov 29 05:51:42 afaik firebase is dependant on the google play services.. is it maybe because of that? Nov 29 05:52:03 I only used firebase's database Nov 29 05:52:12 that gplay service dependand apps need to go thru the playstore or something like that Nov 29 05:54:19 it's a conspiracy to turn you into a mindless google drone Nov 29 05:57:54 hrhr Nov 29 06:02:54 riotz: hey gang Nov 29 06:12:08 yeah exactly like that Nov 29 06:54:10 Does anybody know how to retrieve a bundle sent from an activity into a fragment? Nov 29 07:22:25 Vancouver-BC: google knows. http://stackoverflow.com/questions/12739909/send-data-from-activity-to-fragment-in-android Nov 29 07:28:14 google knows too much! Nov 29 07:44:30 today on packt's free ebook for android beginners Nov 29 07:44:33 from 2015 Nov 29 07:51:52 i thought all ebooks are free Nov 29 07:52:04 in libgen that is Nov 29 08:00:10 morning raoul11 Nov 29 08:00:18 ohi thepoosh Nov 29 08:00:34 what's news? Nov 29 08:02:59 tryin to push to deploy today Nov 29 08:03:05 debuggin inapps nao Nov 29 08:12:57 pushpushpush Nov 29 08:15:35 thepush Nov 29 08:16:15 Melatonina: hi mel Nov 29 09:12:52 Im using FCM and i cant figure out if it can run when the app is closed Nov 29 10:22:35 test Nov 29 10:23:06 so queited Nov 29 10:26:31 Do sombody know a good updater from webserver? Nov 29 10:30:39 what can cause that spannabletext's ClickableSpan onclick method never get called? its in a scrollview's textview with linkified text Nov 29 10:32:03 https://bpaste.net/show/f18631ccc370 Nov 29 10:36:45 i tried to remove linkify also w/o luck Nov 29 10:41:06 perhaps the scrollview consumes the touch event Nov 29 10:41:38 for buttons in listview there was something like focusable and focusableInTouchMode needed set to false on clickable elements Nov 29 10:43:38 hmm http://stackoverflow.com/questions/22543946/clickable-span-in-textview-problems-with-scrollview Nov 29 10:44:13 oddly that linkified text was clickable Nov 29 10:45:27 i have a View inside a ScrollView. i've added OnTouchListeners to both. i set the listener for the child View to return true in order to prevent passing events to the parent ScrollView. however vertical gestures still get passed on when i'm interacting with the child View. Nov 29 10:58:36 JuliusN, you can get inspiration/idea from https://github.com/android/platform_packages_apps_packageinstaller/blob/master/src/android/support/wearable/view/WearableListView.java --- search for greedytouch Nov 29 10:59:02 however you should know that you're asking for trouble by putting a scrolling container inside a scrolling container on the same direction Nov 29 10:59:40 as you can see, it's not ontouchlistener you should override Nov 29 11:00:17 but probably onInterceptTouchEvent Nov 29 11:00:40 adq: well previously i was under the impression that motion gestures can be stopped from being passed on to parent listeners. if that was true i don't think there wouldn't be any trouble. Nov 29 11:00:54 hmm i see Nov 29 11:00:57 it's true, but it's not that simple Nov 29 11:02:40 i'm still curious to try different workarounds. that's the way i like to learn. Nov 29 11:03:04 it's not a workaround Nov 29 11:03:23 avoid workarounds if you can, favor real solutions Nov 29 11:05:23 i don't know the difference Nov 29 11:09:51 btw Ashiren http://stackoverflow.com/questions/25839816/how-to-prevent-scrollview-from-intercepting-click-touch-events-of-the-view-behin :(( Nov 29 11:10:37 this is sooo hacky Nov 29 11:18:22 hey guys Nov 29 11:18:31 hi Nov 29 11:18:32 anyone got a working example of Dagger 2 implementation? Nov 29 11:18:50 like say just for providing SharedPreferences, that's it, how it's declared in the Module and how it's injected in the activity Nov 29 11:19:03 Odaym: https://github.com/Syzygy2048/BaseApp Nov 29 11:19:15 oh thanks alot Nov 29 11:19:17 a lot* Nov 29 11:19:25 I got to know that nesting LinearLayouts will affect performance yesterday, so if I want to create something like this: https://www.sumopaint.com/act/saved.php where the left box is an ImageView and the two rectangles to the right are TextView. What sort of layout/method would you use? Nov 29 11:19:26 feel free to use and modify my base app Nov 29 11:19:50 from android's documentation i get the idea that overriding onInterceptTouchEvent behaves like OnTouchListener, but with reversed hierarchy? Nov 29 11:20:17 Syzygy_: looks good, I'll go over it Nov 29 11:21:08 so let me understand one thing Nov 29 11:21:14 AppComponent defines what? Nov 29 11:21:21 all the places where injection will happen? Nov 29 11:21:32 regardless of what it is that I'll eventually inject into them? Nov 29 11:21:43 I think yes Nov 29 11:23:30 JuliusN: http://cfile9.uf.tistory.com/image/144BB53E4E601E17145D02 basically the first thing that returns true blocks everything below that. Nov 29 11:24:00 Bernzel: image doesn't load, but some linear layout nesting is ok, but try not to overdo it. Nov 29 11:24:41 Syzygy_: right, because all views call super by default, right? Nov 29 11:25:12 something along those lines. the touch event is passed around in any case Nov 29 11:25:19 can't find a better graphic to explain it atm Nov 29 11:25:28 thanks Nov 29 11:30:12 Odaym: puuh, it has been a while since I actually used dagger. AppComponent is basically there to signal which classes should be injected into. Note that for every inject(something) in AppComponent there's something like ((BaseApplication)getApplication()).getAppComponent().inject(this); to trigger that injection Nov 29 11:31:49 Feel free to contribute with documentation though ;) Nov 29 11:35:43 when I understand it first :P Nov 29 11:39:18 in your Application class you have `DaggerAppComponent.builder()` Nov 29 11:39:25 there is no DaggerAppComponent class in your project Nov 29 11:40:07 https://github.com/frogermcs/GithubClient/issues/1 Nov 29 11:41:24 if you compile it errors, compile again it works Nov 29 11:45:15 I have a toolbar that changes color from bright to dark, however I'm having trouble changing the color of the menu items in that toolbar. According to this http://stackoverflow.com/questions/3519277/how-to-change-the-text-color-of-menu-item-in-android I can change the color via the AppTheme, however I'm not sure what exactly to do not that I've created that style. Nov 29 11:46:11 *to do now that I've created that style. Nov 29 11:49:48 setTheme()? Nov 29 11:49:58 ok, here is the issue Nov 29 11:50:09 I have my Base Activity injecting, but not the fragments inside it Nov 29 11:50:14 naturally it doesn't apply to them as well Nov 29 11:51:51 Odaym: add void inject(MyFragment frag) to the AppComponent and then in the onCreate (or whatever) of the fragment do myAppComponent.inject(this) Nov 29 11:52:01 yea I did that, it works now Nov 29 11:52:15 was just wondering whether the injection would ..trickle down to the fragments that sit inside that activity Nov 29 11:52:25 of course it wouldn't, but whatever was just shooting in the dark Nov 29 11:52:31 Ashiren: MenuItem doesn't have a setTheme method. Toolbar only has a setPopupTheme() but that isn't working either. Nov 29 11:53:23 And DaggerAppComponent is a generated class I believe Nov 29 11:53:38 yes Nov 29 11:55:45 http://imgur.com/a/JApCJ that huge space between "name_tv" and the two textviews at the bottom named "GridLayout", I'd want to remove that space and have the three textviews filling the height of the ImageView. Code: http://pastebin.com/DTQT0mc0 Nov 29 12:02:21 Bernzel: either use a relative layout, or nested linear layouts (unlikely that it would affect your performance with just that) Nov 29 12:02:40 Syzygy_: am I allowed to harras you with pull requests? Nov 29 12:02:43 Syzygy_, very well. Thanks Nov 29 12:02:43 there's also layout_weight Nov 29 12:02:46 thepoosh: sure Nov 29 12:03:20 thepoosh: but be gentle, it's my first time D: Nov 29 12:03:39 sure, for now it's just updating libraries Nov 29 12:03:41 so for example the getSharedPreferences Nov 29 12:03:52 nvm Nov 29 12:03:56 after that I might add Rx instead of EventBus Nov 29 12:04:03 i'll only get arround to dealing with the pull requests at the weekend probably. Nov 29 12:04:50 this weekend == 2 years Nov 29 12:05:09 well thanks I got sharedPrefs injection working Nov 29 12:05:42 Syzygy_: it's finr Nov 29 12:05:49 thepoosh: since this kind of is a sample, I'll probably leave in both as alternatives (although I'm not sure what Rx has to do with eventbusses atm) Nov 29 12:05:55 I might never have time to do anything real Nov 29 12:06:27 EventBus is an Observer pattern implementation (?) Nov 29 12:06:54 well, maybe you'll think of that app next time you start a new one, use it and decide you want Rx after all, then just implement and push :D Nov 29 12:07:40 Yeah, but unlike listeners you can just register the observers via annotations Nov 29 12:09:26 Syzygy_: will probably also make an alternative to ButterKnife with databinding if you're ok with it Nov 29 12:10:17 I'm always happy about alternative implementations Nov 29 12:11:09 Try to keep it modular though, so whoever uses it can easily throw away one or the other solution. (Might not be that modular at the moment though) Nov 29 12:13:04 thepoosh: no it.s not Nov 29 12:13:06 since Linkified links works in textview in scrollview i tried to replace the URLSpan-s with my own.. but after it its stop working.. any idea why? Nov 29 12:13:18 Syzygy_: how about build flavors in build.gradle Nov 29 12:13:28 https://bpaste.net/show/680bd82919da Nov 29 12:13:29 gordon_: explanation? Nov 29 12:14:30 thepoosh: that would be cool Nov 29 12:14:44 yay! I have expirience in that Nov 29 12:14:48 *experience Nov 29 12:14:52 damn english Nov 29 12:16:24 thepoosh: well... if I think about it... you're pushing data to subscribers.. so it's kind of observer pattern Nov 29 12:16:35 damn, you were right Nov 29 12:16:50 eeeekkkkk Nov 29 12:16:50 I will hide in the shadow of shame now Nov 29 12:16:53 not used to that Nov 29 12:17:17 but dont use it for that :D Nov 29 12:17:32 don't use what for what? Nov 29 12:25:41 hi there Nov 29 12:26:11 I'm working on an app that processes some data and I need to save intermediate processing steps for an undo system Nov 29 12:26:27 what would be a best practice in this respect? where should I save the intermediate steps? Nov 29 12:26:45 each step has a file of somewhere around 2M Nov 29 12:27:07 and I don't need them persisted across device restarts Nov 29 12:29:58 benishor_: check LruCache, I haven't used it before, but that might be useful to you. Nov 29 12:30:47 You can just store them in the cache dir Nov 29 12:33:52 Syzygy_: no mention about where the cache is stored and its lifetime Nov 29 12:34:00 Dagmar: what's the lifetime of that? Nov 29 12:34:24 which cache dir are you refering to? Any doc link? sorry but I'm new to android dev, not programming though Nov 29 12:34:28 Indefinite. It's deleted when space is needed. Nov 29 12:34:37 _The_ cache dir Nov 29 12:35:33 https://developer.android.com/reference/android/content/Context.html#getExternalCacheDir() Nov 29 12:35:47 thanks Dagmar Nov 29 12:35:52 No worries Nov 29 12:37:40 is there an easy way to see the contents of the external cache dir from within the emulator? Nov 29 12:37:54 rather than me having to iterate through all files in the dir Nov 29 12:38:15 benishor_: I believe it's stored in memory and lifetime is when the cache is full the least recently used item is deleted. Nov 29 12:38:35 Syzygy_: yeah, unfortunately I need to store those in files so that not to clutter the memory Nov 29 12:40:26 actually there's a DiskLruCache that does what the name implies. Nov 29 12:51:42 What's the typical reason for gradle to take a long time to build project in AS? Nov 29 12:51:55 The computer is on. Nov 29 12:52:23 It's nearly 20 miutes AS is saying gradle build running and the cirucle rotates Nov 29 12:52:45 Dagmar: What? what do you mean by on? Nov 29 12:52:45 That's probably crashed, unless you're running on a 10-year-old laptop Nov 29 12:54:04 Dagmar: This is my laptop: http://www.notebookcheck.net/Lenovo-IdeaPad-300-15IBR-Notebook-Review.165793.0.html Nov 29 12:54:56 However, I think it's building for the first time, but 21 minutes and it's still isn't done? Nov 29 12:56:18 It's also hoging the cpu Nov 29 12:56:26 Only 4Gb of RAM means you'd probably better go check how much memory is in use Nov 29 12:56:38 Operating from swap/paging will be super-duper slow Nov 29 12:56:40 Dagmar: 80% Nov 29 12:56:41 so can I inject something like a ProgressDialog? Nov 29 12:56:50 this is crazy mohsen_, not even sure if you are trolling lol Nov 29 12:56:52 only, each progressdialog needs a title and a message Nov 29 12:57:23 how on earth would you wait 20 minutes (even half) Nov 29 12:57:27 mohsen_: Remember this the next time you think, "Oh, I'll just run an IDE and a compiler on a machine meant for light web browsing and some email" Nov 29 12:57:46 there is something wrong, we don't have enough info to know what, you should kill the build/compilation and investigate what could be the issue Nov 29 12:58:10 adq: That he's basically running it on an underpowered netbook is a pretty good cause Nov 29 12:58:59 Dagmar: And this is the first IDE I'm running on this machine that requires more resources than the machine can provide. Nov 29 12:59:00 well, not sure about it Nov 29 12:59:22 mohsen_, if you can, later on, run compilation in command-line with gradlew Nov 29 12:59:36 mohsen_: Emacs is an operating system, not an IDE Nov 29 12:59:51 am runnin AS on a 286 running win3.11 Nov 29 12:59:57 but Dagmar is right, just Android studio itself is kinda heavy on your netbook Nov 29 12:59:58 Dagmar: What about intellij idea? Nov 29 13:00:12 however compiling should be less an issue, especially if it's not a big project Nov 29 13:00:12 I do not care. Nov 29 13:00:31 No amount of sophistry is going to make me say, "No, wait... That laptop should be just fine" Nov 29 13:01:08 AS does a *lot* of stuff, and you've barely got enough RAM for an OS Nov 29 13:01:26 It expects that access times are going to be those of RAM, not disk Nov 29 13:01:29 adq: I really thought it takes that much time to build, but it's weird, the project is not also a big project, only a few classes. It's my second time writing android project in fact Nov 29 13:02:00 kill all the things, close AS, try gradlew in command-line (if you don't know how to use gradle in CLI, read about it first) Nov 29 13:02:19 Upgrade the RAM to 8Gb if at all possible Nov 29 13:03:02 8gb is the recommended minimum for AS Nov 29 13:03:19 https://developer.android.com/studio/index.html Nov 29 13:03:25 do yourself a favour and bump that up to 16g Nov 29 13:03:51 It'll still be slow, but it won't be like... orders of magnitude slow Nov 29 13:04:23 also try to enable gradle verbosity flags Nov 29 13:04:28 see where it hangs Nov 29 13:05:05 -d -s Nov 29 13:05:31 I don't think it's hanging. It think it's basically running from swap. Nov 29 13:05:32 actually make that an upper case S Nov 29 13:05:49 Dagmar: might be but even so, he should get some output Nov 29 13:05:59 like OOM or so Nov 29 13:06:03 Dagmar: The swap is empty Nov 29 13:06:16 And there is still 20% left from the ram Nov 29 13:06:28 I'm going to run gradle from command line Nov 29 13:06:29 This I do not believe for one second Nov 29 13:07:48 8 gig is barely enough for me to run AS + Chrome + my minimal other workloads Nov 29 13:09:16 I can add another 4gb ram, but if I do it, I do it only for AS, because it's the only software on my machine requiring more Ram. Nov 29 13:09:48 waiting for your computer is a bad way to spend your time Nov 29 13:09:51 You have _one_ slot Nov 29 13:11:50 Dagmar: come on, AS is a memory hog, admit it. Nov 29 13:12:06 It doesn't have to be a memory hog when you try and run it on wooden RAM Nov 29 13:12:28 i got 32GB for android dev, AS + chrome + emu/vm + ramdisk + etc Nov 29 13:12:29 mohsen_: you can also fine tune it, configure the default enabled plugins and such Nov 29 13:12:30 That page you cited says your laptop has 4Gb of RAM Nov 29 13:12:39 unused ram is wasted ram anyway Nov 29 13:12:44 chances are you don't need everything Nov 29 13:12:50 Is swap every empty? I feel like the swap memory is filled on my 16gb ram PC with 40% in use. Nov 29 13:12:51 AS itself is going to use about 800-900Mb of that, out of the gate. Nov 29 13:13:35 What's best practice for material icons when still being backwards compatible to API 15? Nov 29 13:14:05 I'm sure iostat is probably reporting the disk IO being pegged with a vengeance, but if the activity light burning like a smallt sun hasn't gotten your attention by now, so be it Nov 29 13:18:23 If you had more than a dixie cup's worth of RAM, disk caching would be drastically reducing the amount of disk access happening Nov 29 13:20:07 does it sound logical to use ViewSwitcher in order to change one ImageButton to another one? I know I could simply change the drawable on the ImageButton, but I need to have different dimensions on the other ImageButton. So what is least "costly", ViewSwitching or formatting the ImageButton's drawable and it's width/height? Nov 29 13:20:12 If I could put > 8 in this laptop I'd happily do so :) Nov 29 13:20:27 Dagmar: Can I add more ram to this machine? Nov 29 13:20:41 Ram is *always* helpful. Just upgrade it if you're having problems and your system is upgradeable. Nov 29 13:21:02 mohsen_; According to that page it's got only one slot, so the more appropriate word to use would be "replace". Nov 29 13:21:14 Afternoon Nov 29 13:21:26 I'm trying to work out why my leanback view fragments are pushed down the screen Nov 29 13:21:39 mohsen_: If you pop open the access port on the bottom it's probably a normal SODIMM. Trivially replaceable provided you get the right speed Nov 29 13:22:05 mohsen_: ...but if you run `iostat 2` in a terminal, you'll almost certainly see how deep into disk wait you are Nov 29 13:22:35 I've found the layout inspector, which shows there's a TitleView pushing everything down Nov 29 13:22:45 but I can't find where the TitleView is coming from... Nov 29 13:22:47 any suggestions? Nov 29 13:30:05 I'm trying to center an image view within a toolbar, but it seems like the image starts at the centered position rather than being centered there (e.g. left side of the image is in the center, but the image center is on the right of the layout center) Nov 29 13:34:35 Currently using layout_gravity="center" to do that, any idea what else I could do to center it? Nov 29 13:36:04 here's the layout https://gist.github.com/Syzygy2048/a478716a4c2ca7212d56f2c45da4c5c3 Nov 29 13:38:01 CyberJacob, i haven't played w leanback or titleview stuff, sorry Nov 29 13:38:50 Looks like overriding onInflateTitleView() to retun null should indicate no title, but that's just giving an empty title bar still Nov 29 13:45:39 can you set the view to View.GONE? Nov 29 13:45:53 if you're overriding the inflate, let it inflate and then make it go away Nov 29 14:01:15 JakeWharton, if I now say I want to provide an alert dialog as a singleton and I start @Injecting it everywhere I need it, have I really just saved all those object creations? Nov 29 14:02:40 Sounds like a bad idea to me ^ Nov 29 14:03:32 just the sound of it? Nov 29 14:05:55 Got some code smell hanging about as well Nov 29 14:06:17 what're you talking about Nov 29 14:06:50 Using a singleton instance of an alertdialog in your code Nov 29 14:07:07 yea, *why* do you think that Nov 29 14:09:41 Because an alertdialog is tied to a context object Nov 29 14:10:21 so is SharedPreferences Nov 29 14:10:53 I get it as context.getSharedPreferences, I dont do the PreferenceManager.getDefaultShared Nov 29 14:11:39 If you tie it to the Application Context you will lose theme support on your alert dialogs at least Nov 29 14:12:17 Possible other side effects as well Nov 29 14:15:20 You can only show a dialog with the Activity context Nov 29 14:15:37 It's not even possible Nov 29 14:15:44 it's working just fine Nov 29 14:16:05 I must not be reading correctle then Nov 29 14:16:20 I'm talking about Dagger 2 Nov 29 14:17:19 Sounds like premature optimization to me Nov 29 14:17:34 is the theory true though? Nov 29 14:17:46 if you provide it as a singleton it treats it as a singleton and only 1 is ever created of it? Nov 29 14:17:49 ...unless this is a clicker game where the user is supposed to be clicking on hundreds of thousands of dialogs Nov 29 14:17:53 regardless of what I employ it for Nov 29 14:18:46 Regardless of execution time, you are deeply in the negative minutes already just by askign about it Nov 29 14:19:05 These are minutes of your life you'll never get back, just because you wanted to do something the hard way Nov 29 14:19:20 so you have no answer Nov 29 14:19:47 No, I have no answer I'll care to give you, because that would be wasting precious seconds of _my_ life Nov 29 14:19:57 man, eat shit Nov 29 14:19:59 lol Nov 29 14:20:02 and sit down Nov 29 14:21:20 Right, so it looks like my title issue is less that the tile is there Nov 29 14:21:32 ...and more than you didn't select a notitlebar theme? Nov 29 14:21:48 and more that the rest of the view is leaving a gap between the title and the rest of the content Nov 29 14:21:55 Dagmar: me? Nov 29 14:21:58 Yes Nov 29 14:22:13 Doing this in Leanback fragments, can I still set that? Nov 29 14:22:22 besides, my other view looks ok Nov 29 14:22:31 and the inspector shows the TitleView is still there Nov 29 14:24:02 I don't mess about with giant fragments Nov 29 14:24:57 ..but if you pick some nice, eye-searing colors that clash, you shoudl be able to figure out precisely what's being drawn where if the Android Studio layout editor isn't rendering it properly. Nov 29 14:25:24 yeah, looks like somehting is pushing the Y in my FrameLayout up to 414 Nov 29 14:28:00 look at all this trolling going on: https://redd.it/5fdz4a Nov 29 14:28:16 hi Nov 29 14:28:30 how can i compare sound in program Nov 29 14:28:41 thepoosh, op is not that wrong Nov 29 14:28:46 homa_: that is one broad questio Nov 29 14:28:56 thepoosh, https://blog.daftcode.pl/hype-driven-development-3469fc2e9b22 Nov 29 14:29:03 adq: I've been asking myself for quite some time if kotlin is a fad Nov 29 14:29:06 kotlin totally falls in the hype driven dev category Nov 29 14:29:10 and personally treat it as one Nov 29 14:29:24 that is a cool link Nov 29 14:29:29 Check it out... it's the guy's first experience with a Framework Of The Month Nov 29 14:29:36 i'm still waiting to dive into kotlin or rxjava Nov 29 14:29:44 need a bit more time (not for me, for them)à Nov 29 14:31:03 I don't think OP is trolling but he pretty much enumerated the warning signs of a FotM Nov 29 14:33:27 thepoosh, why ? Nov 29 14:34:12 FoTM becomes it's most exciting when you learn about the quality of the code on the other side Nov 29 14:34:55 ...like how when those nice BitCoin exchanges learned that perhaps Ruby On Rails wasn't the best choice to combine with a bunch of poorly-understood and hastily written i18n functions. Nov 29 14:34:57 Indians people please do not teach and record any video tutorial for any subject for computer you can not speak english well thank u Nov 29 14:35:15 mcc: You're doing worse than most of the Indians I know Nov 29 14:35:19 homa_: what are you trying to compare Nov 29 14:35:40 Dagmar : i think u are indian Nov 29 14:36:24 Usign a framework you're essentially saying, "These are functions I *could* write, but I think these otehr guys do it substantially better" Nov 29 14:36:43 If there's no performance improvements, it's altogether possible that assumption is bad. Nov 29 14:37:25 ...and if it's wrong enough, using a FotM basically lets you import someone else's vulnerabilities Nov 29 14:37:57 adq: it seems like everyone agrees with jake there all over the place Nov 29 14:38:19 a thread seems boring to me once everyone agrees with each other and spends multiple messages doing it Nov 29 14:38:34 that's what the freaking upvote is for Nov 29 14:38:48 * pduin agrees Nov 29 14:39:05 x-post to /r/circlejerk Nov 29 14:39:11 hehehe Nov 29 14:39:16 most of the time the main benefit/drawback of "frameworks" I've seen is whether drinking the koolaid made my development better or worse. Performance per-se tends not to be the high bit; and that's also why I think people tend to violently disagree about the benefits of frameworks Nov 29 14:39:35 I think usually they person they're mainly arguing with is themselves Nov 29 14:40:23 thepoosh, did not read more than the op text lol Nov 29 14:40:24 I like how they mention NoSQL by name on this blog Nov 29 14:42:29 Dagmar: that is a very big hype though Nov 29 14:42:36 there are some who use it well Nov 29 14:42:40 but many who don't... Nov 29 14:42:51 - do you know any sql databases? - no. - good. then you are expert in nosql Nov 29 14:42:51 adq: had to go and write this comment though Nov 29 14:42:51 https://www.reddit.com/r/androiddev/comments/5fdz4a/is_kotlin_another_buzzword/dakj2kz/ Nov 29 14:42:57 heh Nov 29 14:43:02 Ashiren: ha! Nov 29 14:43:25 * raoul11 agrees with thepoosh Nov 29 14:43:29 Usually I see people trying to switch to it because they're openly admitting they can't craft even a simple SQL statement reliably, and they've never heard of stored procedures at all. Nov 29 14:43:36 well from this http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0148c80ac6ef970c-800wi Nov 29 14:44:04 ...but like, if you can't write a bloody query at all, then can you really even rationally request that data in any manner whatsoever? Nov 29 14:44:11 raoul11: HAI Nov 29 14:44:22 lol thepoosh Nov 29 14:44:44 adq: you remember that whole thing in order to promote @IntDef? Nov 29 14:45:30 They wind up going to NoSQL and then are _forced_ to actually learn how to store data in a database Nov 29 14:46:25 Ashiren: I was talking to a few kids the other day in an Android fundamental's course near by Nov 29 14:46:44 they were talking about building a chat app Nov 29 14:46:49 and how to model the DB Nov 29 14:47:02 the plan was to work with Firebase DB Nov 29 14:47:06 which is NoSql Nov 29 14:47:13 it hurt me Nov 29 14:47:35 8| Nov 29 14:47:38 aww Nov 29 14:47:52 I started the conversation with modeling the DB Nov 29 14:47:57 asking them if it made sense Nov 29 14:48:04 but they don't know how to write server code Nov 29 14:48:12 so that was the easiest solution for them Nov 29 14:48:50 Well, at least they were able to admit it Nov 29 14:49:13 :S Nov 29 15:06:20 Hello, how to antialiasing in the canvas and path Nov 29 15:07:13 paint.setAntiAlias(true); Nov 29 15:07:54 i'm not use paint, use path. Nov 29 15:08:20 canvas.clipPath Nov 29 15:11:22 Here is a say: you can try to draw the path on top of the bitmap as a blurred transparent line some pixels wide with paint.setXfermode(new PorterDuffXfermode(Mode.DST_IN)); (or was it DST_OUT?) . But i can't find the sample code. Nov 29 15:11:32 Anyone can help me? Nov 29 15:13:36 Ashiren told you how Nov 29 15:13:47 you need to provide a paint object when you draw your path Nov 29 15:14:06 the paint object is responsible for the AA, the color, stroke or fill, etc Nov 29 15:16:16 ok, i get you, thanks. adq Ashiren Nov 29 15:33:23 is a lack of windows ADB support generally seen Nov 29 15:33:28 i see my device in fastboot Nov 29 15:33:31 i get NO adb drivers Nov 29 15:33:39 fk-all showing in windows Nov 29 15:33:52 Is it accepted that Retrofit calls its NTO classes Services? Or is that just a missunderstanding from the samples? Nov 29 15:34:36 baconology: never had a problem here. might depend on your specific phone. also the SDK manager offers an USB driver download that should include a large variety of phone drivers Nov 29 15:34:54 you might also check your phone developers website for those drivers Nov 29 15:35:57 yeah its interesting, i have the google usb drivers installed Nov 29 15:36:05 just installed the huawei 6p "suite" Nov 29 15:36:10 still no dice Nov 29 15:36:12 about to reboot Nov 29 15:36:15 cuz, windows Nov 29 15:36:28 do i need to be in bootloader when using adb Nov 29 15:37:47 no, you don't even need to have a phone connected to use adb Nov 29 15:37:52 (no emulator either) Nov 29 15:38:04 there is no need to reboot to add your device as an android phone driver Nov 29 15:38:49 https://developer.android.com/studio/run/oem-usb.html#InstallingDriver cc baconology Nov 29 15:39:36 baconology, no you don't need to be in bootloader at all if you're developing app, if you're about something else (like rom, root whatever) you're on the wrong channel Nov 29 16:00:17 you're going to love this, it was connected to usb for charging. Nov 29 16:05:34 how can i compare sound ? Nov 29 16:06:09 baconology: like 90% of my problems are caused by issues that might be basic but are totally unexpected, at least to me. Nov 29 16:06:18 homa_: FFT Nov 29 16:06:39 Syzygy_, what is that ? Nov 29 16:07:21 fast fourier transform, converts the frequency spectrum into it's components and makes sound easier to compare Nov 29 16:08:33 Syzygy_, this is jar file or is in library Nov 29 16:08:56 it's an algorithm/formula. I'm sure there are libraries out there. Nov 29 16:10:10 Syzygy_, thank you Nov 29 16:11:46 just fyi, that's probably not what you want to do. but I wouldn't know because your question wasn't very detailed. Nov 29 16:13:17 Syzygy_, i want capture sound from microphone and compare if this is for one person do something Nov 29 16:13:41 ok, then FFT might actually be what you want. Nov 29 16:14:28 Syzygy_, thank you Nov 29 16:15:01 I wonder if there are neural networks for android that solve this. Nov 29 16:15:39 I think there are existing framework things to hook into voice recognition Nov 29 16:16:34 Yeap Nov 29 16:16:41 Most rather nightmarish Nov 29 16:16:59 well... the question is whether that's less worse than fft/neural networks :) Nov 29 16:17:11 kbs: sounds like what he want's isn't voice recognition. Nov 29 16:17:37 ah, perhaps I misunderstood - thought it was essentially hotword/phrase recognition Nov 29 16:18:03 to me is seems like he wants to classify speakers, in which FFT and or ANNs have a good chance of working afaik Nov 29 16:20:06 unsure if any of the voice recognition apis can detect (or expose) who's the speaker Nov 29 16:37:05 "What is your wishlist for Android 8.0/Andromeda?" burn it to the ground, start over Nov 29 16:38:44 jesus AS strikes again: http://imgur.com/a/IBgLV Nov 29 16:38:50 not a single day without any issue Nov 29 16:39:32 what do you really think g00s :) (but also somewhat curious actually.) Nov 29 16:40:02 A doesn't come after N Nov 29 16:40:03 my wishlist is simple: stop regression, start consolidating things Nov 29 16:40:05 kbs i hope fucshia + flutter are clean break Nov 29 16:40:24 only stuff from API level 1 seems to be immune to most bugs Nov 29 16:41:10 adq damn it, i've seen that too ! Nov 29 16:41:27 expanding and collapsing often leaves blanks like that Nov 29 16:41:49 poor homa, he left, but fft alone will never allow him to compare two different voices Nov 29 16:41:56 it's much more complicated than that, and beyond this channel scope Nov 29 16:42:14 adq yeah ... don't see how fft would help either Nov 29 16:42:25 fft would help because he needs to work in the frequency domain Nov 29 16:42:26 but not only Nov 29 16:42:31 well, it's a decent start :> Nov 29 16:42:38 it's more about calculting distance between 2 models Nov 29 16:43:01 ...and solving a problem no one else has yet Nov 29 16:43:16 I could have suggested to start with a DNN first :P Nov 29 16:43:39 Leeds: :) Nov 29 16:43:44 deep stuff Nov 29 16:44:37 But iirc HMMs are more commonly used for voice stuff Nov 29 16:45:43 and indeed g00s, collapse/uncollapse fixed it Nov 29 16:48:40 I can't even step into (with the debugger) framework source anymore. :[ Hope they fix it soon. Nov 29 16:50:01 https://code.google.com/p/android/issues/detail?id=225199 Nov 29 16:51:05 instant-ruin* Nov 29 16:58:03 does Browser.EXTRA_HEADERS works on stock browser ? Nov 29 16:58:25 im trying to put cookie but im kinda.. fail Nov 29 17:00:24 Bundle bundle = new Bundle(); bundle.putString("Cookie", "asd=2; basd=3"); i.putExtra(Browser.EXTRA_HEADERS, bundle); .. ? Nov 29 17:00:48 Hi. I'm trying to make an app that will read a pop3 mail server, and I'm looking at javamail to do it. The problem I'm having when testing it against my gmail, is that from what I'm reading when googling, messages= inbox.getMessages(n-20,n); where n is the result of getMessageCount(), should give me the last 20 mails, but instead, I'm getting 20 mails from 2015 when I have hundreds of mails just from the past month. Any idea why that Nov 29 17:00:48 is or a better way to get the last messages? Or even better, fetch only messages newer than a specific time? Nov 29 17:01:22 How could I communicate between a pc java application and an android device via bluetooth. What tools would I need and what knowledge I would have to acquire? Im not really experienced in programming... Can someone please help me out with this? Nov 29 17:06:05 Ether_Man: out of curiosity - do you plan to have a generic pop client, or intend to specifically use against gmail? Nov 29 17:07:16 kbs, just using gmail to test it. The server it's going to be used for only allows pop access though Nov 29 17:09:59 I need help?.. Nov 29 17:11:22 Ether_Man: sadly haven't touched pop in a long time, but iirc it's fairly limited. Also, depending on how the client is translating the api calls into actual pop commands... I assume you've already taken a peek at the pop rfc? Nov 29 17:11:50 Ether_Man: re: the meta timestamp question - possibly some answers from the rfc, maybe. good luck :) Nov 29 17:17:41 lol Nov 29 17:17:50 Thanks for the help. Nov 29 17:18:39 Uns1t, it may be that no one here right now knows the answer to your question. Be patient and show some respect if you want help. Nov 29 17:21:21 Sorry I thought it backwards. Nov 29 17:24:36 if i want stacking notification i need to add summary notification also? Nov 29 17:30:22 * raoul11 thepooshes thepoosh Nov 29 17:30:42 raoul11: I am feeling a bit irked Nov 29 17:30:54 why? Nov 29 17:31:19 just discovered the person trying to sell me the car is asking for 1.5K more than the asking price for the car Nov 29 17:32:02 fuker Nov 29 17:32:21 what sort of car are you buying? Nov 29 17:34:03 thepoosh: counteroffer 1.5k less than original asking Nov 29 17:34:17 but after a second test drive Nov 29 17:35:12 thepoosh is yemenite, he needs no advise on barganing /: Nov 29 17:58:56 Is there any way that I can find if the youtube video is public from the video link? Nov 29 18:42:59 Hey, is anyone familiar with wifi-direct? I'm wondering if there are hardware or API level restrictions when it comes to what devices can connect. Nov 29 18:48:14 what would be a good book for learning gradle for android? Nov 29 18:48:34 ive read a bit about gradle and its all WOOSH right over my head Nov 29 18:48:39 too fscking complexificated Nov 29 18:48:53 but it was not android specific Nov 29 18:51:34 learn groovy, read android gradle plugin source Nov 29 18:54:28 Hello! Is there an easy way to get child rectangle in coordinate system of an ancestor view? (not direct ancestor). I need to scroll to a certain child view. Nov 29 18:55:17 zap: are you by chance using a Recycler or List View? Nov 29 18:55:23 cause it’s really easy then Nov 29 18:55:54 No, I switched to ScrollView Nov 29 18:56:37 used ExpandableListView in past, but it wasn't able to do what I need. Nov 29 18:57:14 that's a easy coordinate translation function, but I wonder not to re-invent the wheel. Nov 29 18:59:55 look at the scrollview API, it should have a scrollToPoint method Nov 29 19:00:20 if you can get the coordinates of the child view you want, you should be able to tell the parent scrollview to scroll to there Nov 29 19:10:24 there's the requestChildRectangleOnScreen method, but I need a rect in parent coordinates, thats the problem. Well, not a big one as I already wrote the function to translate arbitrarily nested child coordinates to parent's. Nov 29 19:10:54 if you have the child view, you should have it in parent coordinates, no? Nov 29 19:12:12 also, there’s the scrollTo method. I’m quite positive that’s what you want Nov 29 19:12:29 or maybe smoothScrollTo Nov 29 19:13:33 I need the whole child view to become visible, not just a point Nov 29 19:13:45 thus, requestChildRectangleOnScreen is exactly what I want Nov 29 19:14:00 again, I disagree Nov 29 19:14:09 scrollTo will put the point at the top of the screen Nov 29 19:14:13 why? Nov 29 19:14:37 so you call scrollTo with the x and y of the top left corner of the view you want on screen Nov 29 19:14:56 then I'll get a single pixel of my view visible, if it's too right or too down Nov 29 19:15:01 no you won't Nov 29 19:15:43 how it will know I want the whole View to become visible? It scrolls the minimal amount to fullfill my request Nov 29 19:15:50 You could compile and run it in less time than this argument Nov 29 19:16:07 Dagmar: I'm waiting the build to complete Nov 29 19:16:28 yeah, we could argue for a good while before the build is complete :p Nov 29 19:18:21 is your scrollview scrolling in 1 dimension or 2? Nov 29 19:22:52 only in 1 Nov 29 19:22:54 vertically Nov 29 19:23:07 scrollTo should do what you want, then. You Nov 29 19:23:15 you either will give it the top or bottom of the view Nov 29 19:23:42 so I must manually check if item is above or under the visible area Nov 29 19:23:49 thats what I want to avoid :) Nov 29 19:23:49 no Nov 29 19:24:01 just tell scrollTo which point you want to scroll to, and it will do that Nov 29 19:24:06 What point should I scroll to? top-left of the list item? Nov 29 19:24:19 either top left or bottom left Nov 29 19:24:25 depending on? Nov 29 19:25:11 i think it’ll take the point you give it to the top of the scrollview. if so, then top-left Nov 29 19:25:15 or top, 0 Nov 29 19:25:15 learing gradle from sources == complete and utter waste of time. i wouldnt learn a fuckin thing lol Nov 29 19:25:23 since you don’t scroll in the x direction Nov 29 19:27:02 and when to use bottom left? Nov 29 19:27:25 if I’m wrong Nov 29 19:27:39 try it with the top, and if that doesn’t work, try it with the bottom Nov 29 19:28:21 I have read scrollTo docs... its definitely not what I want. I don't want the item to always stick at top of my pseudo-listview. Nov 29 19:28:43 what do you mean “always stick" Nov 29 19:28:47 it'll scroll it so that the point I give it will scroll to (0,0) in viewable area. Nov 29 19:29:19 whell, when I click on a item, I want it to become fully visible, even if it's partially above the top margin or under the bottom margin. Nov 29 19:29:22 what? no Nov 29 19:30:02 so i scroll through the list, and when i click on an item, it makes sure that’s at the top of the view? Nov 29 19:30:10 nope Nov 29 19:30:21 when I click on a item, I want to make it fully visible Nov 29 19:30:27 expand? Nov 29 19:30:39 I expand it, then I want to make it entirely visible Nov 29 19:30:55 and if it's at bottom, I don't want it to scroll to the top Nov 29 19:31:06 so scrollTo should be fine. it’ll make sure that the item is as on screen as it can be Nov 29 19:31:28 the top of the view will be at the top of the scrollview Nov 29 19:32:16 oh, found View.offsetDescendantRectToMyCoords Nov 29 19:32:20 exactly what I want Nov 29 19:32:38 go for it. I’m still pretty sure you’re overthinking this Nov 29 19:32:39 pardon, it's ViewGroup.offsetDescendantRectToMyCoords Nov 29 20:16:37 my svg won't import properly into AS. how do i figure out how to fix my SVG so it's compatible? Nov 29 20:17:53 Hi. How do I specify the exact *curves* I want to support in an outgoing TLS connection? Nov 29 20:19:13 alexfu, if you import via vector asset studio it will tell you the errored elements in the svg Nov 29 20:19:57 dragorn: well, thats the thing. no error. it's not technically an error. it's just rendering incorrectly Nov 29 20:20:16 ah, fun. Nov 29 20:20:54 pix | fake Nov 29 20:21:27 (implicitly, i mean show us how incorrect it is, so maybe we can help you, and while at it you could also pastebin the draw path) Nov 29 20:29:20 right room for help with android malware? Nov 29 20:29:36 adq: here's how AS renders it: http://pasteboard.co/3TthRjmBJ.png Nov 29 20:30:57 adq: here is how it's supposed to look: http://pasteboard.co/o9iVAsJk.png Nov 29 20:33:01 indeed, something definitely is missing Nov 29 20:33:10 original svg path: http://pastebin.com/aKdj0B1v Nov 29 20:33:22 just be sure to test on your emu/device in case AS preview is failing alone Nov 29 20:35:01 i can confirm i got same issue on my side using your svg Nov 29 20:35:51 (at runtime too, so it's definitely not AS preview) Nov 29 20:36:05 i figured it out Nov 29 20:36:27 ok i think i get it too Nov 29 20:36:35 it definitely has to do with how it's clipped Nov 29 20:37:39 looks like during the import, AS left out a fillType Nov 29 20:41:44 alexfu, http://imgur.com/a/PZdsn got it, almost Nov 29 20:41:51 but since you figured it out ;) Nov 29 20:42:10 adq: im curious what you did Nov 29 20:42:29 i swapped the two paths, and added android:fillType="evenOdd" to the big one (now in first position) Nov 29 20:42:39 and also altered the colors, but it was for being able to understand Nov 29 20:43:02 oh. i did the same, except no swap Nov 29 20:43:48 Been pulling my hair here for over an hour and not getting anything from google. I'm iterating over the multiparts of a mail using "for(int i=0;i text and one empty. I could understand not picking up the empty one but why would it not pick up the other 2? It makes no sense >_< Nov 29 20:43:54 oh well, you're right alexfu, no need to swap Nov 29 20:44:19 fillType only is available in API 24+? Nov 29 20:44:21 (it does the same with or without swapping) Nov 29 20:45:01 alexfu, looks like based on AS ide warning Nov 29 20:45:14 but it's weird, cause internally it's a canvas path which supports filltype since ages Nov 29 20:50:55 ugh, yeah it doesnt render correctly on pre-24 but post-21 devices Nov 29 20:51:09 so, cant use filltype Nov 29 21:07:34 I'm having some problems to get shadows, through elevation, to behave the way I want inside a CardView. Basically I have a RecyclerView vertically between a LinearView and a Button. I want the RecyclerView to appear lower than the two other views, but simply giving the other views an elevation tag doesn't seem to work. Nov 29 21:08:28 Here's a paste of the related layout file: https://dpaste.de/dM8O It's included in a CardView, and the View over/above it in the card has an elevation of 12dp. Nov 29 21:13:00 Here's a screenshot of the whole card: http://i.imgur.com/BkHp5XK.png Nov 29 21:13:38 The line with the dates is supposed to appear to be on a level below the "New entry" button and the "report/delete" buttons. But I just can't get it to work. Nov 29 21:15:57 the date thingy is a recyclerView? Nov 29 21:16:03 Jup Nov 29 21:16:19 does it actually, you know, recycle and scroll? Nov 29 21:16:28 Yup, once it contains enough entries Nov 29 21:16:44 and that’s supposed to be elevated? Nov 29 21:17:12 Well, it's supposed to be the lowest level on the whole card. Nov 29 21:17:22 inset, then Nov 29 21:17:29 have you tried a negative number for the elevation? Nov 29 21:17:39 So the New entry and report and delete buttons appears above it, and then the head of the card above them again Nov 29 21:17:50 No, I'll try that Nov 29 21:18:02 and we are talking Z order, correct? Nov 29 21:18:30 Yeah. I'm only doing elevation at the moment, though, so no zTranslation or anything Nov 29 21:19:10 i believe positive Z is coming out of the screen, toward you, and negative Z is going into the screen, away from you Nov 29 21:19:29 Just setting a negative number on the elevation doesn't seem to give any results Nov 29 21:21:03 it looks like your top LinearLayout has an elevation of 10, and the one you want inset is 8 Nov 29 21:21:34 try instead removing the elevation from the parent linearlayout, which contains the inset view, and set the elevation on the views that are sibling to the inset view Nov 29 21:21:36 Yeah, I was messing around with the values. Do they refer to absolute elevation, or in relation to their parent View? Nov 29 21:22:08 I'll try that Nov 29 21:22:36 “A child object's elevation is relative to the parent object's elevation" Nov 29 21:22:40 https://material.google.com/material-design/elevation-shadows.html#elevation-shadows-elevation-android Nov 29 21:23:04 the other thing you might try, if that doesn’t work, is removing the elevation on the inset view, but setting the elevation on it’s siblings Nov 29 21:23:10 Wow, that worked. I actually thought I had already tried that. Nov 29 21:23:21 Thanks so much for the help, s73v3r Nov 29 21:23:27 np Nov 29 21:24:32 I think it might matter that I set the sibling's backgrounds to white, just to make sure they were filled with something Nov 29 21:24:47 ahh. don’t set backgrounds unless you have to Nov 29 21:25:17 I'll see if it works if I remove them Nov 29 21:25:23 there’s a PerfMatters video on that Nov 29 21:25:55 but, with that said, if you have them, and things work, don’t go removing backgrounds unless you notice a problem. We have some weird behavior because of that Nov 29 21:26:51 My goal is usually to set as few properties as possible Nov 29 21:27:03 But when things don't work I just try to make it work. Nov 29 21:52:59 <_genuser_> hey people. Nov 29 21:53:03 <_genuser_> anybody still using bintray? Nov 29 21:53:56 Isn't that used by default now? Nov 29 22:00:02 <_genuser_> TacticalJoke: right, it is. that's why I was trying to upload my lib to it. Nov 29 22:00:07 <_genuser_> but it's such a joke now. Nov 29 22:00:31 <_genuser_> the official plugin by bintray itself is a joke. documentation is a bigger joke. and all of that is nothing compared to the site itself. even bigger joke Nov 29 22:01:04 <_genuser_> proj was setup properly. uploaded a version. made some changes and some time later, now the plugin gives an error. fails to upload. Nov 29 22:01:28 Ahh. I've not uploaded to it. Nov 29 22:02:11 I hate the site. Nov 29 22:02:16 It's about as bad as it could possibly be. Nov 29 22:04:05 <_genuser_> phew, for a moment, I thoguht you were gonna be all like, "you're stupid if you can't make it work. it's an amazing site." Nov 29 22:04:33 _genuser_: I hate basically everything. If you hate something, I'm your ally. Nov 29 22:04:53 <_genuser_> TacticalJoke: I _hate_ to disappoint you, but I don't hate chicks.... Nov 29 22:08:52 hi Nov 29 22:09:48 is there another way to set onRequestPermissionsResultCallback without to implement onRequestPermissionsResultCallback in an activity? Nov 29 22:10:02 like define it like onClickListener? Nov 29 22:10:21 <_genuser_> so now I could tell people to go to my github, or host the lib on some other repo. Nov 29 22:11:10 ChamS_: Not really. What is the overall thing you’re trying to do? Nov 29 22:17:45 s73v3r: I have a recyclerview and when the user clicks on that item a download will start, holder items are manipulated and my app will write a pdf to the downloads directory. But when external_write permissions are not already granted, I request the permission. The problem, I have to access the holder item in the onRequestPermissionsResultCallback, so I have to implement that callback Nov 29 22:17:45 inside the onBind method in my adapter. Nov 29 22:18:35 sounds like it would be better to ask for that permission when the user goes to that screen, instead of when they click on somethign Nov 29 22:25:04 s73v3r: would be a possible solution, thanks, but maybe I can find a way to get it work for the item click :P Nov 29 22:25:31 i wouldn’t bother Nov 29 22:26:37 use the API as it was intended to be used. You’ll have a lot fewer gray hairs that way Nov 29 22:31:02 I have a redesigned and rebranded app that I was planning as releasing as an entire new app and new name and package name. Would it be more advisable to instead just update the current app, and update the store listings mentions of the old name, even though the package name will have to stay the old one? Nov 29 22:31:35 depends on how important it is for users of the current app Nov 29 22:31:39 AFAIK, the package name used to identify the app as declared in the manifest is not updatable Nov 29 22:31:53 Well I was going to have a dialog just notify them of the new app Nov 29 22:32:20 Now Im question it as I would abandon a few thousand downloads and a small amount of reviews Nov 29 22:32:48 does the app download files or store preferences internally or anything like that? Nov 29 22:33:03 No, why would that matter? Nov 29 22:33:37 if the files or preferences are stored internally to the app, or in the app’s private storage, then it could be difficult to migrate that stuff to the new app Nov 29 22:33:56 Ah right, they would have to re-enter preferences etc. Nov 29 22:34:12 ChampS_: Why do you have to access the holder in the OnRequestPermissionsResultCallback thing? Nov 29 22:34:57 cause they need to then complete the download/write operation if the permission is granted Nov 29 22:35:09 i honestly don’t see why you’d want to do that, rather than just check up front Nov 29 22:35:23 When the permission is granted a progressbar should be shown in my item. Nov 29 22:35:29 s73v3r: Maybe he doesn't want users prompted unless they select that particular option. Makes sense to me. Nov 29 22:35:41 but it sounds like every option is a download Nov 29 22:36:09 if that’s the case, if the user denies permission, there is very little reason to be on that screen Nov 29 22:36:13 s73v3r: noo, if all files are downloaded, there is nothing to write anymore Nov 29 22:36:23 but then you’ve already got the permission Nov 29 22:36:41 plus, there is a very good chance that there will be new files added Nov 29 22:36:51 when the user changes the permission, he would be asks everytime for that permission but all files are already downloaded Nov 29 22:37:05 *asked Nov 29 22:37:35 It is not really an impact for that user, but could be annoying Nov 29 22:38:24 if every option is a download, then it will lead to much cleaner and easier to maintain code to just check up front. You could even add something to see if all the files have been downloaded if you really want Nov 29 22:38:25 To confirm, if I just update my current app with the new apk (which now has a lower min-sdk), will that cause any expected issues? Nov 29 22:47:56 ChampS_: You could achieve what you want by changing some model flag and calling `notifyItemChanged` or similar. But I think I agree that it's better to do this up front (perhaps checking whether there is an item waiting to be downloaded). Nov 29 22:48:14 I also wonder how likely it is that users will later deny the permission. Nov 29 22:49:11 Pretty high. Nov 29 22:49:12 i think it’s unlikely, as the permission is fairly benign. However, clearing app data would also clear the permission Nov 29 22:51:40 orbyt_: I wouldn't expect any issues from that. It's okay to change `minSdkVersion`. Having said that, I've never personally tried this with Google Play. Nov 29 22:52:26 These people seem to think it's okay: https://www.google.co.uk/search?q=change+minsdkversion+google+play Nov 29 22:58:30 Though I guess there's the question of the content rating and so on. Not sure about the answer to that. Nov 29 22:59:29 i can’t imagine they’d allow you to downgrade content rating Nov 29 22:59:37 ChampS_: In case you didn't get my point: `list.get(0).setDownloading(true); adapter.notifyItemChanged(0);` Nov 29 23:13:00 anyone playing with fuchsia OS? Nov 29 23:13:18 ^ (not android, i know) Nov 29 23:22:40 bitkiller: it's only for the LGBT community Nov 29 23:26:33 hmm.. all my OnClickListeners i set to my AlertDialog cause the dialog to be dismissed. what causes this? Nov 29 23:29:00 for stuff like Cancel and OK? Nov 29 23:29:05 I believe that’s baked in behavior Nov 29 23:30:51 even if i add listeners to my ArrayAdapter items that i display in the dialog Nov 29 23:57:17 hi, I would like to implement a stack of screens. The app has to be a single-activity app (for complicated reasons). I'm trying to use fragments for that, but everything in my app is instantiated programmatically (no xml at all), so getId() returns -1 and that's not a valid id for using with FragmentTransaction... how do I replace my main screen with a Fragment f such that pressing back will show the main screen again ? Nov 29 23:57:52 FragmentManager Nov 29 23:58:54 you’d pop in onBackPressed Nov 30 00:00:38 i have to ask, though: Why the aversion to XML? It doesn’t make any sense Nov 30 00:12:36 s73v3r: I already have FragmentManager around, because it's necessary in order to use FragmentTransaction. The app is actually a C++ platform-independent core with an Android UI around it, but the C++ part contains the descriptions of most screens, and the Java part must auto-generate the screens based on those. I don't know why you call it an "aversion to XML"... Nov 30 00:12:45 matju: You'll have to say `container.setId(something);` in advance. Nov 30 00:12:56 Where `container` is the ViewGroup. Nov 30 00:13:30 I’d call it an aversion to XML because you’re avoiding using XML Nov 30 00:13:30 TacticalJoke: how do i choose an id ? I mean, so as to avoid duplicating any existing numbers. Nov 30 00:13:49 you’d have to keep track of IDs Nov 30 00:13:53 s73v3r: https://en.wiktionary.org/wiki/aversion Nov 30 00:14:01 Yeah, as long as it's unique and it starts from 1. Nov 30 00:14:21 I don't know of a better way than doing it manually. Nov 30 00:14:32 s73v3r: if someone doesn't use a car because they have no car, they don't have an aversion to the car Nov 30 00:14:50 they came up with an entire system to avoid the XML layout stuff Nov 30 00:14:54 I’d call that an aversion Nov 30 00:16:09 s73v3r: it's so that I can modify both the iOS menus and the Android menus from the same piece of code. Nov 30 00:16:12 matju: you’ll probably want to keep a stack of IDs, and push and pop as you go through the screens Nov 30 00:16:42 i guarantee you that you’ve spent more time on that than you ever would have saved by doing it the standard way Nov 30 00:17:04 It might always be the same container, though, in which case it could just be `1` or `666` or whatever. Nov 30 00:17:41 true. In that case, just a defined FRAGMENT_CONTAINER would work Nov 30 00:19:44 I guess this is sensible: https://developer.android.com/guide/topics/resources/more-resources.html#Id Nov 30 00:19:48 It's guaranteed to be unique. Nov 30 00:20:12 probably a better solution Nov 30 00:20:13 And analogous to the normal XML way. Nov 30 00:20:22 s73v3r: I won't argue with you about the time I saved or lost. Nov 30 00:22:16 you’re adding an enormous complexity to your app by fighting the frameworks. Something like that should come with an enormous benefit. Nov 30 00:24:01 s73v3r: I won't argue with you about the time I saved or lost. Nov 30 00:24:20 so it’s not saving you time Nov 30 00:24:29 s73v3r: I won't argue with you about the time I saved or lost. Nov 30 00:25:27 if it’s not saving you time, then what’s the benefit gained? Nov 30 00:25:33 s73v3r: I won't argue with you about the time I saved or lost. Nov 30 00:25:40 don't fight, guys Nov 30 00:25:43 TacticalJoke: thank you :) Nov 30 00:26:13 i’m trying to understand the benefit of undertaking such a huge complexity Nov 30 00:26:23 cause it seems that time defintiely isn’t one of them Nov 30 00:27:26 His name was Robert Paulson. Nov 30 00:28:00 trying to argue with someone who doesn't want to argue doesn't sound too beneficial either Nov 30 00:28:06 s73v3r: I don't want to have two apps that can get out of sync, I want just one cross-platform app. Nov 30 00:29:46 that’s a reasonable goal, but now you’re denying yourself the ability to use the system stuff on both platforms, which gives you a lot for free Nov 30 00:33:21 s73v3r: if you want you can argue with me about anything Nov 30 00:34:06 Today's topic: Is debate a good use of time? Let's meet our participants... Nov 30 00:42:44 <_genuser_> anybody use gradle from cli? Nov 30 00:42:56 <_genuser_> or do you all just right-click click click clicety clack? Nov 30 00:44:10 sometimes Nov 30 00:45:39 <_genuser_> is gradlew.bat the same as gradle xyz? Nov 30 00:45:41 half the time Nov 30 00:45:46 I have an alias called gw Nov 30 00:46:15 I don't use the system gradle because updating it with homebrew is a pita Nov 30 00:46:16 i believe the bat file will make sure that the right gradle for the particular project is called Nov 30 00:46:22 ^ Nov 30 00:46:32 open old project, oops not compatibile with your system gradle Nov 30 00:46:48 <_genuser_> so use gradlew.bat and let it do the automagic? Nov 30 00:46:52 yeap Nov 30 00:47:07 <_genuser_> thanks. Nov 30 00:47:27 <_genuser_> now if I can just figure out where to specify the password that I didn't have to last time.... I can actually upload to bintray. Nov 30 00:53:11 <_genuser_> lol old project. I'd settle for current one working heh Nov 30 01:15:23 hi, I want to make apps for Android, but I have troubles with android studio Nov 30 01:15:48 what kind of troubles Nov 30 01:16:08 ok, it needs some stuff from the internet Nov 30 01:16:19 like haxm and API platforms Nov 30 01:16:26 yup Nov 30 01:16:37 where I can download it "by my hands"? Nov 30 01:16:43 not via studio Nov 30 01:16:59 using the standalone SDK manager Nov 30 01:17:04 ? Nov 30 01:17:27 I downloaded one and it has API only for android 6 Nov 30 01:17:45 inside the Android SDK folder, either in tools or platform tools, there should be an sdk manager Nov 30 01:18:23 or, if you open the SDK manager inside of Studio, there’s a link at the bottom for “launch Standalone SDK manager" Nov 30 01:19:40 yeah, I found android-23 directory in "platforms". So, how can I download more? Nov 30 01:19:54 launch the standalone SDK Manager Nov 30 01:20:03 although the one in studio will download to the same place Nov 30 01:20:32 you can use the tools directory adjacent to the "platforms" directory to use a commandline tool to download additional sdks Nov 30 01:20:38 but that sure sounds like the harder way to me Nov 30 01:21:50 "commandline tool to download" - need simple links for downloading with different programms, not with built-in android studio tools Nov 30 01:22:09 the command line tool is part of the Android SDK Nov 30 01:22:17 if you’re looking for direct links, you won’t find them Nov 30 01:22:36 bad Nov 30 01:22:40 you could try using something like Charles or Fiddler to trace the traffic, but you might not be able to use those links yourself Nov 30 01:22:44 well... Nov 30 01:22:47 the links should be stored on disk Nov 30 01:22:59 right, but they might need API keys and such Nov 30 01:23:04 doubt it Nov 30 01:23:14 probably just a bog standard maven repo Nov 30 01:23:20 on a disk for some stupid reason Nov 30 01:23:31 let's see if I can find it Nov 30 01:24:00 i’m sure you can find the link. whether you could use curl to download it is another story Nov 30 01:24:08 so, to install more APIs I need just these directories, right? I mean, can I just ask someone who already have it to share it? Nov 30 01:24:22 is this it? "./extras/google/m2repository/" Nov 30 01:24:39 you could, I guess. I don’t see why you’d bother, when you could just use the tool they gave you for doing just that Nov 30 01:25:10 I havn't good internet connection Nov 30 01:25:11 hmm it only have play-services and the support lib Nov 30 01:25:37 someone sharing them with you would have the same issue Nov 30 01:26:35 also, where I can download more android images for virtual devices? They have some special format for android studio or I can just use some general stuff? Nov 30 01:27:02 through the SDK manager as well. Nov 30 01:27:14 well, as I saaid I cant Nov 30 01:27:19 each SDK level has images you can download. Nov 30 01:27:22 <_genuser_> I hate working with stuff just to learn about it. Nov 30 01:27:23 <_genuser_> ugh. Nov 30 01:28:45 COOurb: it actually shows the url while downloading doesn't it? Nov 30 01:28:49 give it a try Nov 30 01:29:10 missingno: sorry, I can't it will burn all my money at account Nov 30 01:29:25 per-traffic inetrnet payment Nov 30 01:29:36 that sounds easily solvable Nov 30 01:29:38 ctrl-c Nov 30 01:29:59 actually ctrl-z would keep the ui up with the url on it while halting the download Nov 30 01:32:43 you’re probably not going to get around having to actually download the SDKs Nov 30 01:34:00 <_genuser_> super easy to forget .gitignoring your files with all your bintray keys.... Nov 30 01:34:04 <_genuser_> and pushing it out to github, Nov 30 01:34:05 <_genuser_> doh! Nov 30 01:35:33 <_genuser_> even easier to forget the password your used to sign your gpg private key. Nov 30 01:36:00 <_genuser_> argh. does it not get easier than having to be skilled and attentive? Nov 30 01:36:04 i'm getting the error that my app exceeds the limit of 64k method references. i'm trying to follow these instructions: https://developer.android.com/studio/build/multidex.html but i get the runtime error "java.lang.NoSuchMethodError: com.google.android.gms.common.internal.zzac.zzb" when i launch my app. i wonder what i should put into my dex.keep file? i've tried "com/google/firebase/provider/FirebaseInitProvider.class" and ... Nov 30 01:36:10 ... something similar but with no luck Nov 30 01:37:31 <_genuser_> abax: oh, just follow the link provided. Nov 30 01:37:44 <_genuser_> it's pretty simple, you add a couple of lines in your config (that the site shows you) and you're off. Nov 30 01:38:31 _genuser_: yep. i've done it but i get the error "java.lang.NoSuchMethodError: com.google.android.gms.common.internal.zzac.zzb" when i launch the app which uses multiple dex files Nov 30 01:40:15 or actually.. maybe i should try to remove firebase completely from the project first and see first if i can get it working that way Nov 30 01:46:19 <_genuser_> abax: I remember when I linked to FCM stuff it asked me to add in multidex. I just followed the link. (probably a couple of times.) Nov 30 01:47:40 you shouldn't need to modify your keep file Nov 30 01:50:33 Why would a OnErrorNotImplementedException keep being thrown when I very clearly have onError defined? Nov 30 01:54:11 <_genuser_> I'm so ticked, I could talk about punching random people on teh street. Nov 30 01:54:23 <_genuser_> but then I don't need them gummit boys having a talk with me. Nov 30 01:54:45 <_genuser_> so, "I'm so ticked, I could hug random buff dudes on teh street. the violent looking ones". Nov 30 01:54:58 <_genuser_> if they throw the first punch, I'm sure it won't be my fault... Nov 30 01:55:05 <_genuser_> :| Nov 30 01:55:33 <_genuser_> wait wait wait. no huggin random dudes on the street. it worked! Nov 30 01:58:37 Hmm, I also implemented an onErrorResumeNext and just called Observable.empty Nov 30 01:58:46 but it still somehow throws the exception. Nov 30 02:29:03 orbyt_: hi. Is Orbitix a friend of yours? Nov 30 02:29:34 I dont think so, why? Nov 30 02:30:28 assonance Nov 30 02:30:55 How is the rebranding of your app going? Nov 30 02:34:10 <_genuser_> alright people, my lib new version is finally on jcenter! Nov 30 02:34:16 <_genuser_> phew (darn bintray) Nov 30 02:35:04 _genuser_: what's your lib? Nov 30 02:35:20 <_genuser_> https://github.com/maxpower-ndrd/profileimagecropper Nov 30 02:35:46 <_genuser_> simple util to crop images. primarily used to crop profile images in your user apps where users can select an image as a profile image. Nov 30 02:36:29 <_genuser_> heavier ones exist to do all that and rotate, flip (vert/horiz), etc. I wanted to write one and push it to jcenter. Nov 30 02:37:14 Oh, I remember it Nov 30 02:38:05 <_genuser_> pretty cool. I was just able to pull it into a new blank proj. Nov 30 02:38:49 <_genuser_> I find lots of ideas for apps. I always end up slowing down at these user mgmt, and app mgmt things. I figure I should put them in libs and even push them out so they're easier to use in future projs Nov 30 02:41:53 Melatonina Good, wrote a small site for it, gonna probably release it soon. Nov 30 02:56:35 orbyt_: cool Nov 30 02:57:02 _genuser_: I guess I will need to use something like that sooner or later Nov 30 02:59:58 When I create a dialog with DialogFragment and use a custom layout with setView(), where do I initialize the views? **** ENDING LOGGING AT Wed Nov 30 03:00:00 2016