**** BEGIN LOGGING AT Thu Oct 20 02:59:59 2016 Oct 20 03:02:01 Hi all I'm seeking support on creating a webview app for my forum here's what I got https://www.reddit.com/r/AndroidQuestions/comments/58ed3a/how_can_i_add_upload_and_download_options_to_my/ Oct 20 03:03:06 GhostNinja: Edit the post and prefix all lines with four spaces. That's needed for code blocks in Markdown. Oct 20 03:03:38 So use 4 spaces to make it code on reddit? Oct 20 03:03:44 Yeah. Oct 20 03:04:15 The text lines shouldn't be indented, though. Oct 20 03:04:22 They're descriptive. Oct 20 03:05:38 That's way better. Oct 20 03:06:03 Well I'm just seeking help fixing that code and adding the option to allow users to upload and download from within the app Oct 20 03:06:12 You're missing closing braces though. Oct 20 03:06:47 Closing brackets where? Sorry I'm new to android coding. Oct 20 03:06:48 I know, but you can't chuck an unreadable mess at people and expect help. :S Oct 20 03:09:32 I think your question has nothing to do with WebView. Oct 20 03:09:51 Then what does it have to do with? Oct 20 03:09:59 I think your question is really "Why am I getting `Gradle tasks [:app:assembleDebug] Observed package id 'add-ons;addon-google_apis-google-16' in inconsistent location...`". Oct 20 03:10:40 Ok why would I be getting that? Oct 20 03:11:53 Actually, it seems I'm wrong. They might just be warnings anyway. Oct 20 03:12:26 GhostNinja: What exact question are you asking? Oct 20 03:13:31 The question I really am asking is what do I need to do to get my code working and how to add the options to upload and download from within the app. Oct 20 03:13:35 anyone try the new bottom nav view yet ? Oct 20 03:15:33 Anyone know a good card swipe library or a way to implement it easily? Oct 20 03:15:34 ok, lol here goes nothing Oct 20 03:16:05 You still there TacticalJoke? Oct 20 03:16:13 Wow, they're back to bottom navigation. Oct 20 03:16:22 GhostNinja: I can't really tell what you're asking. Oct 20 03:16:25 I am having a few issues with this library https://github.com/Diolor/Swipecards Oct 20 03:18:07 TacticalJoke I'm just seeking help on creating a webview app for my forum that allows users to upload files and download files without leaving my app Oct 20 03:18:19 http://stackoverflow.com/questions/40052193/swipeable-stackable-cards-does-not-show-image-of-first-card - Anyone know how I can fix this issue Oct 20 03:18:33 g00s: which lib is that? part of the support libs? Oct 20 03:18:42 teasp00n yeah Oct 20 03:19:18 g00s: sweet, ive been using a community thing for bottombar nav. is it like this? https://github.com/roughike/BottomBar Oct 20 03:19:37 yeah i've heard of that, but don't change yet Oct 20 03:19:41 i have a bad feeling Oct 20 03:19:55 * g00s testing Oct 20 03:19:56 g00s: haha ok, i'll let you be my guinea pig :p Oct 20 03:20:52 @teasp00n I have been using bottombar nav but it seems to be pretty laggy Oct 20 03:21:25 have you experienced those type of issues? I am using the color switcher and shy Oct 20 03:21:40 Lonesoldier728: the new one g00s is talking about or the project i linked? Oct 20 03:21:49 the one you linked Oct 20 03:22:27 nah it doesn't seem laggy to me... im not using the color switcher though. just a couple of tabs Oct 20 03:22:34 pretty vanilla usage really Oct 20 03:23:32 TacticalJoke: What I'm saying is I want to create a app that will connect to my website and allow the users to upload files from within the app and download files from within the app without leaving the app Oct 20 03:24:21 I need help with the NavigationDrawer activity. I am using fragments to view different layouts when clicking a navigation button. But the problem is, the fragment layout is being overlaaped with content_main layout. How can I remove the content_main.xml so tha when I click the button, it only shows the respective fragment layout. Oct 20 03:25:13 GhostNinja: Sorry, don't know much about file uploading/downloading with WebView. Oct 20 03:25:30 Crap Oct 20 03:26:41 Is there a way of creating a app that uses api to connect to my site and add the uploading/downloading option to it? Oct 20 03:27:37 Yes ofc, create a rest api and interact with it Oct 20 03:27:59 How do I do that orbyt? Oct 20 03:28:14 What are you using on the backend? Oct 20 03:28:44 My website which is using Invision Power Board Oct 20 03:29:09 It has api options built in Oct 20 03:30:01 man i get so many AS internal errors these days ,,,, Oct 20 03:30:33 "Error executing task com.android.tools.idea.uibuilder.editor.NlPreviewForm$$Lambda$200/924642834@44a93670" Oct 20 03:30:38 haha, good luck google Oct 20 03:31:17 Can we please let the "BBS" *die* already? Oct 20 03:31:19 For forum software I've only used vB, but sure check out the docs if it has something built in. You could also create a very quick express app and build out an api like that Oct 20 03:31:28 @ GhostNinja Oct 20 03:32:41 Could you help me do that orbyt I'm new to android coding? Oct 20 03:33:05 Dagmar what BBS ? Oct 20 03:33:11 None of that has anything to do with Android GhostNinja Oct 20 03:33:17 and google is your friend Oct 20 03:33:44 Yea Google has been a b*tch to me lately lol Oct 20 03:34:23 Google has been a batch to you? Oct 20 03:34:26 oh GhostNinja wants to make a pretty viewer Oct 20 03:34:36 Hmm, it seems that (at least if your minSdkVersion is 21 {or maybe even 20}) you don't need NavigationView to get a good-looking navigation drawer. Oct 20 03:34:47 lol back in 2010 our topic said something like "and please, no more pretty viewers" Oct 20 03:35:14 And it only took me about three hours to figure that out. Oct 20 03:35:30 And about 200 browser tabs. Reading through support libraries. And so on. Oct 20 03:35:37 I'm just looking for help in creating a app for my forum to try to help get me more members Oct 20 03:35:51 GhostNinja: I think you're looking for someone to create the app. Oct 20 03:36:15 And then, right as they celebrate the creation, you shout "It's my app!" Oct 20 03:36:28 If someone was willing to help I'd be ok with that but I have no job or money to pay anyone Oct 20 03:36:53 Yea I don't take credit for something I didn't do Oct 20 03:37:15 GhostNinja i'm just going to save you a lot of hassle - *DONT BOTHER* Oct 20 03:37:27 an app for a forum, lol Oct 20 03:37:44 Any solutions? Oct 20 03:37:44 terrible idea Oct 20 03:37:48 terible very bad idea Oct 20 03:37:50 Can't they just use a web browser? Oct 20 03:37:56 hugely terrible bad idea Oct 20 03:38:07 Hey I'm just trying to find ways in getting members for my forum and XDA has one for theirs Oct 20 03:38:12 ThunderIRON: What is being overlaid? Oct 20 03:38:28 XDA is literally *filled* with people who fap to design docs Oct 20 03:38:38 GhostNinja maybe they don't know you're there because you're a ghost ninja , like stealthy and all Oct 20 03:38:40 Of _course_ they'll write an app whether it makes sense or not Oct 20 03:38:54 Lol Oct 20 03:39:46 The content_main.xml isn't being removed from the view. Instead the fragment layouts are being overlaid on it Oct 20 03:41:02 Well I'm outta here since I can't get help c'ya Oct 20 03:41:21 ThunderIRON: Can't you just use Fragments? I don't see why you're using and also Fragments. Oct 20 03:41:36 If you just use Fragments, with `content_main` being the Fragment container, it'll work. Oct 20 03:41:57 How to do that? Oct 20 03:42:21 Use the `content_main` FrameLayout/whatever as the thing that contains the Fragments. Oct 20 03:42:42 Then dynamically add/remove Fragments from it. Oct 20 03:43:15 Whatever you do, don't define a Fragment in XML. It'll simply not do what you want. Oct 20 03:43:28 Fragments defined in XML cannot be removed/replaced. Oct 20 03:43:41 I mean ``. Oct 20 03:43:44 I just right clicked the on the "app" folder on the left side and selected New -> Fragment -> Fragment (Blank) Oct 20 03:44:30 i copied and pasted this into my layout, and nothing shows up Oct 20 03:44:31 https://developer.android.com/reference/android/support/design/widget/BottomNavigationView.html Oct 20 03:44:47 literally exactly the same, nothing Oct 20 03:44:57 lol fml support lib .0 release Oct 20 03:45:24 g00s: Ahh, good ol' Android dev. Oct 20 03:45:35 they don't even try Oct 20 03:46:09 TacticalJoke and i'm convinced google hates us all Oct 20 03:49:09 g00s: does it show up in the heirarchy viewer? Oct 20 03:49:20 The thing about hatred is that you have to give a damn. The opposite of love seems to be indifference. Oct 20 03:49:28 doesn't show up in layout bounds, so maybe IR fucked up Oct 20 03:49:32 If Google hated us, it'd be an improvement. Oct 20 03:49:48 TacticalJoke lol, you know there is a book about that Oct 20 03:49:52 :D Oct 20 03:49:56 Which book? Oct 20 03:50:12 you can reciprocate in 3 ways: turning towards, turning against, and turning away Oct 20 03:51:03 TacticalJoke cheesy title, see 2nd review :) https://www.amazon.com/Relationship-Cure-Strengthening-Marriage-Friendships/dp/0609809539 Oct 20 03:51:12 gottman is famous though Oct 20 03:52:44 Looks good. He sounds familiar, but I don't recognise any of his books. Oct 20 03:53:29 so what they did, was they invited couples to their 'love labs' at university and taped everything for 2 weeks Oct 20 03:53:48 and they broke down all the interactions into those 3 categories Oct 20 03:54:32 the ones who were most likely to separa had the most turning away interactions Oct 20 03:54:53 That makes sense. Oct 20 03:55:10 Anger = "I care". Oct 20 03:55:11 obviously couples volunteered for this :) Oct 20 03:55:37 its an old book, i wonder if he'll revise it with new info Oct 20 03:56:16 Dude, I am delighted. You can use DrawerLayout without NavigationView and get material navigation drawers. Oct 20 03:56:39 I didn't wanna use NavigationView because it needs AppCompat. Oct 20 03:56:59 Hi, I'm sorry about this question, I've been trying to make sense of that for 3 days. Many people tried to help and I'm greatful for that but I'm still unable to understand, I hope I'm not hurting any one's feelings. Few days ago, I asked if Activities, Services, Broad cast receivers, and content providers were classes, I was answered yes but for me activities are objects because when the startActivity method is called, an object is Oct 20 03:56:59 created and the onCreate method is called. Is that wrong? Oct 20 03:57:01 I guess they fixed DrawerLayout when they created NavigationView. Oct 20 03:57:41 soulisson: An object is just an instance of a class. Oct 20 03:58:45 TacticalJoke: yes, and for me an activity is an instance of a class that extends the "Activity" class Oct 20 03:58:46 soulisson: Why are you asking thisvquestion? Oct 20 03:59:08 -v Oct 20 04:00:34 TacticalJoke: I want to understand, I'm not a dev, but I have to learn android dev because I've to audit Android Apps, I'm trying to get the terminology straight Oct 20 04:02:31 soulisson: To answer your direct question, you are right. When `startActivity` is called, the Android framework instantiates (creates an instance/object of) the Activity class and then calls `onCreate` on that new instance. Oct 20 04:02:51 And other stuff. Oct 20 04:03:33 TacticalJoke: So is it reasonable to say that the activity is actually the object that gets created from the Activity subclass? Oct 20 04:04:22 Pretty much, but some people might take issue with "created from" there. Oct 20 04:05:35 TacticalJoke: why? Oct 20 04:08:17 It's more natural to say something like "the activity is an instance of the Activity class (or the FooActivity class -- note that instances of classes are instances of their superclasses by definition)". Oct 20 04:09:06 TacticalJoke: ok, thank you Oct 20 04:09:10 I definitely think it's right to say that "the/an activity" refers to an object while "Activity" refers to the class. Oct 20 04:09:38 You could also say "the/an Activity", of course. Oct 20 04:09:59 TacticalJoke: thanks very much Oct 20 04:16:50 lol so in these docs https://developer.android.com/reference/android/support/design/widget/BottomNavigationView.html Oct 20 04:17:01 that snippet ... design:menu="@menu/my_navigation_items" Oct 20 04:17:23 how come design:menu is not listed under "XML attributes" Oct 20 04:18:22 these guys can't even get 2 paragraphs of documentation right Oct 20 04:22:59 g00s: This is why I'm scared to touch new stuff. :s Oct 20 04:24:51 TacticalJoke i typically wasn't ... until android. always lived on the bleeding edge Oct 20 04:24:58 but yeah, ptsd like you said Oct 20 04:25:23 at bigCo i was always getting hell from architects using new shiny things :D Oct 20 04:25:26 Yeah, I always did too. Oct 20 04:26:14 maybe i'll just wake up tomorrow and find a /r/androiddev entry on how to do this, or whats going on ... Oct 20 04:29:00 ok, i think i found the problem, retards Oct 20 04:29:23 shit, my profs in 'how to program 101' would have given me F for this shit Oct 20 04:33:01 Was it that it needed to be `app:menu` or whatever? Oct 20 04:33:54 yeah Oct 20 04:35:39 well its nice that it does the cool little animation bit Oct 20 04:55:52 https://twitter.com/HenryHoffman/status/694184106440200192 Oct 20 05:01:16 TacticalJoke on a 12 string :D Oct 20 05:02:05 haha Oct 20 05:08:15 Can I nominate `fitsSystemWindows` the worst-named variable of all time? Oct 20 05:08:36 Every time I come across it, the name confuses me, and I once again forget how it works. Oct 20 05:13:29 oh nice, tim wu wrote another book Oct 20 05:16:12 "Attention merchant: an industrial-scale harvester of human attention. A firm whose business model is the mass capture of attention for resale to advertisers." Oct 20 05:16:17 must .. buy Oct 20 06:28:21 Anyone know where I'm supposed to through the LG source files? Is it supposed to be in croot? Oct 20 07:07:14 My Fragments have a static factory method named newInstance(). It sometimes takes a a bunch of arguments that I stuff into a Bundle and set on fragment.setArguments(args). Now I really need my Fragment to know about one of its parent Fragment's Views. Can I pass it like the other args? Oct 20 07:09:46 What I really want to do, is for a child Fragment to play an Animation exactly above another Views that is inflated by the parent Fragment. So my thought is to simply let the parent Fragment pass the child Fragment the View upon Fragment construction Oct 20 07:12:19 Perhaps I should have Fparent and Fchild obtain a reference to the same Activity using onAttach and respectively set and get the View from there? Oct 20 07:16:32 Or maybe I could just childFragment.setTheView(view) from parentFragment. Oct 20 07:17:32 But for some reason I find this ugly. In a way it messes with lifecycle; I want the Fragment to be selfcontained after construction-time. Oct 20 07:19:15 Any thoughts? Oct 20 07:22:21 Use a callback Oct 20 07:26:18 That's what I meant with the onAttach(). Both Fragments would have to contact their parnet Activity though. Or did you mean something else? Oct 20 07:27:36 There's getParentFragment Oct 20 07:28:21 There is?! Oct 20 07:28:57 setTargetFragment as well, if one isn't a parent of the other Oct 20 07:29:11 Oh, but the childFragment is really hosted in a ViewPager that resides in the parentFragment. Oct 20 07:30:00 That doesn't matter, it's a child fragment if you use childfragmentmanager.. which you should in that case Oct 20 07:31:31 That's good news! This could be the link I've been missing for so long. Oct 20 07:32:05 But.. how should I do this? Oct 20 07:33:44 My parentFragment has a FragmentStatePagerAdapter. I should not pass this getActivity().getSupportFragmentManager() but getChildFragmentManager()? Oct 20 07:33:59 Yes Oct 20 07:34:36 Surprised it hasn't broken yet :) Oct 20 07:35:39 My Activities all extend BaseActivity, and my fragments all extend a BaseFragment that attaches to BaseActivity. It works like a charm. Except I don't care about Activities right how; I want my parent Fragment. Oct 20 07:57:50 Wow, it works. Oct 20 07:58:08 SimonVT: Thanks! I don't know why I haven't see this before =) Oct 20 07:59:42 What a relief! Oct 20 07:59:49 np :) Oct 20 08:02:32 I see there's also a onAttachFragment(Fragment child) that the parentFragment could possibly use to after its child has been attached. But I prefer the callback. Oct 20 08:58:24 hello is it possible to reference an raw object as a TypedArray? Oct 20 09:04:08 Does anyone know how I get the text for a RadioGroup? Like in this link: https://developer.android.com/guide/topics/ui/controls/radiobutton.html Oct 20 09:04:11 the "Attending" Oct 20 09:04:41 is that just a formatted TextArea above the RadioGroup, or is there some sort of attrribute you can apply to the RadioGroup like labvel or text (my IDE shows neither as an option) Oct 20 09:06:23 hi Oct 20 09:06:33 which font is used for the clock on the lockscreen? Oct 20 09:06:40 roboto or I am wrong Oct 20 09:06:40 ? Oct 20 09:07:59 Ben_1: I would imagine that depends on the phone/settings Oct 20 09:08:09 http://content.guardianapis.com/search?q=trump&api-key=test&show-fields=thumbnail&orderBy=newest2 Why does this query work even though I misspelled orderBy. It should be: http://content.guardianapis.com/search?q=donald%20trump&api-key=test&show-fields=thumbnail&from-date=2016-10-17&orderBy=newest1 EDIT: It was not orderBY, it was order-by. orderBy was just a field name in the JSON response, but not the string to append Oct 20 09:08:11 stock android Oct 20 09:10:21 sdousley: I mean the default android Oct 20 09:13:29 By this and other experiments, I realize JSON is very forgiving, I can write thumbnailS instead of thumbnail and it still works, I don't know why. Oct 20 09:13:50 Ben_1: I'm not sure on that, do you have a screenshot? I use Samsung, so not really stock android Oct 20 09:13:56 well, afaik it isn't Oct 20 09:14:20 You could maybe run the screenshot through https://www.myfonts.com/WhatTheFont/ to see what the font is Oct 20 09:41:32 I have some class properties defined as: final private int ALWAYS = 1; Oct 20 09:41:47 I want to use that in a case statement within a switch, but it's saying "Constant expression required" Oct 20 09:41:54 I thought by being final, they were constant? Oct 20 09:45:12 @sdousley use enum Oct 20 09:45:21 or make it static Oct 20 09:46:09 I just tried to make it static, but I still get the same issue. Oct 20 09:46:26 tiger98: how would I use enum? Never used those before. Oct 20 09:47:46 TheSchaf: I have defined: private static final int ALWAYS; Oct 20 09:47:59 then in the class I added: static { ALWAYS = 1; } Oct 20 09:48:27 oh, never mind, I did it with private static final int ALWAYS = 1; Oct 20 09:48:30 now it's not complaining :) Oct 20 09:59:26 anyone done much with IntelliJ? I'm trying to view the SQLite database for my app, and apparently I should be able to View > Tool Windows > Database, but I don't see a Database option Oct 20 10:09:20 That's a paid feature Oct 20 10:12:13 Ah, ok Oct 20 10:13:09 Don't think I could get my company to fork out for Enterprise IntelliJ Oct 20 10:13:19 not when Community does everything I've needed of it so far Oct 20 10:14:42 There are other tools like stetho you can use instead Oct 20 10:19:22 ah, I'm not that worried, was just trying to set default RadioButton in a group Oct 20 10:19:25 which didn't seem to work Oct 20 10:20:28 And why I didn't think about Log.d()'ing the values from the db first I don't know Oct 20 10:38:28 for some reason, my onClicked method is not storing the selected value on my radio groups :( Oct 20 10:56:02 is there way to get app resource utilisation from the android system Oct 20 10:56:21 like battery usage and how many times the user opened an application Oct 20 10:57:17 one of the method is to use Logcat prior to lolipop and use UsageApi for android 5 and above Oct 20 10:57:56 is there something like Usage Api that can help me for prior versions of android Oct 20 11:29:28 As FrameLayout docs say: Child views are drawn in a stack but when i tried to create customized classes of each child view inside framelayout then this stack is not maintaining Oct 20 11:31:14 customize button child view taking top over all other childs Oct 20 11:50:12 Does anyone have any prob install the layout in android 2.2.2?I get a fail install for some reason. Oct 20 11:50:30 After i install the sdk build tools. Oct 20 11:50:51 I hope someone can help me? Oct 20 11:54:03 ? Oct 20 11:54:53 now working : Buttons in Lollipop and higher have a default elevation to them which causes them to always draw on top. StateListAnimator was culprit.. Oct 20 11:55:12 hey min2 Oct 20 11:55:25 hi Oct 20 11:56:19 You have prob with android 2.2.2 when you install the sdk tools?I get a fail to install package error after i install all of them on the mac. Oct 20 11:58:42 I don't understand why i get the build fail but after it done it say installed. Oct 20 11:58:51 mine is 2.2 not 2.2.2 Oct 20 11:59:43 min2,You have the same prob? Oct 20 12:00:02 it did it in android 2.2 to Oct 20 12:00:35 installed failed please check the install logs error i getting. Oct 20 12:01:16 no, mine is working fine on windows.. by the way what logs you are getting Oct 20 12:01:39 I not sure where the logs are in android studio. Oct 20 12:02:20 do they mean logcat? Oct 20 12:03:51 min2, When i install android studio 2 i get the errors after i install the sdk build tools and the when i download the layouts i get the error. Oct 20 12:06:50 Hi Oct 20 12:06:55 What does "Error:Configuration with name 'default' not found." mean? Oct 20 12:07:05 i think i go back to ios. Oct 20 12:07:19 He did it! Oct 20 12:08:18 I renamed a project folder from "really-really-so-much-longer-than-usual-name" to "short/shorter" and now I get that "Error:Configuration with name 'default' not found." Oct 20 12:09:39 you renamed it wrong Oct 20 12:09:57 adq: what do you mean? Oct 20 12:10:15 that obviously via renaming, assuming this is the only op you did, you broke something Oct 20 12:10:28 and as the error message said, he expected something he did not found Oct 20 12:10:33 s/he/it/ Oct 20 12:11:15 yeah. I also adjusted the paths in settings.gradle but it wasn't enough to fix the problem Oct 20 12:11:26 still you can learn many stuff in breaking things Oct 20 12:11:36 just investigate and try to fix your own mistake first maybe Oct 20 12:11:56 Yeah. I learned that I should get a good book about gradle Oct 20 12:12:13 I'm using I build system that I don't have a clue about Oct 20 12:12:54 i don't think you need a good book, except if you really enjoy (and have the time to) reading book Oct 20 12:13:04 a typical android developer Oct 20 12:13:11 gradle is evolving fast enough to make the book not so useful in 1 or 2 years too Oct 20 12:13:17 better buy other books Oct 20 12:13:24 Something happened and everything is magically fixed now Oct 20 12:13:32 This is so frustrating Oct 20 12:13:32 my gradle setup is just compile "..." or copy-paste random commands from libraries Oct 20 12:13:48 most of my gradle setup are very traditional too Oct 20 12:14:39 My role as developer is copying and pasting snippets from StackOverflow and implementing some business logic from time to time, when the troubles allow me Oct 20 12:14:50 It's humiliating Oct 20 12:16:21 I thought that also at the start of my 'career' Oct 20 12:16:24 but they pay me to do it Oct 20 12:16:28 and I'm doing it Oct 20 12:21:01 Then it's time for a new Q&A site for software developments Oct 20 12:21:09 and a new generation of IDEs Oct 20 12:21:15 This is my idea Oct 20 12:21:17 http://www.theallium.com/engineering/computer-programming-to-be-officially-renamed-googling-stackoverflow/ Oct 20 12:21:41 Melatonina, what new could this Q&A site have? Oct 20 12:22:13 answers should be written in something like T4, the language that Visual Studio uses for templates and snippets Oct 20 12:22:20 then when you have a problem Oct 20 12:22:44 you IDE would allow you to query the Q&A site, pick an answer and it would be immediately implemented in your code Oct 20 12:23:22 that's be awesome, sounds like quite a bit of work tho Oct 20 12:23:47 yeah, everything interesting is quite a bit of work Oct 20 12:24:41 well SO has the resources to pull such a thing off Oct 20 12:24:54 but why aren't they Oct 20 12:25:04 maybe it's even tougher than we estimate Oct 20 12:25:11 if using Theme.AppCompat, how can I remove all the graphics effect on button? for example the shadow Oct 20 12:25:24 It's much tougher than their current system Oct 20 12:26:59 it would require expressing the answers in a formal language Oct 20 12:27:14 so they don't have the resources Oct 20 12:27:30 but this is a good way to disrupt a business like StackOverflow Oct 20 12:27:36 google might Oct 20 12:28:03 This will be my next project as soon as I finish my current one Oct 20 12:28:04 but they prolly don't care Oct 20 12:28:14 what's your current one? Oct 20 12:29:18 A cooperative platform to share knowledge about rhythmic gymnastics, ballet and similar disciplines and assist people in training Oct 20 12:31:03 sharing this 'virtually' works? Oct 20 12:31:52 it's a mix between Quora and one of those training apps on steroids. Oct 20 12:32:02 I'll see if it works. Oct 20 12:32:38 when designing did you think much about scaling? Oct 20 12:32:47 and what tech for the backend do you use, just curious Oct 20 12:33:17 Google released a new version of Allo, Allo 2.0 – now with splash screen and black+white chats Oct 20 12:33:18 o.O Oct 20 12:34:00 iprime: I'm learning about that. I made some choices. If they won't work I'll use other technology Oct 20 12:34:18 Allo must be the most hated app of all times Oct 20 12:34:32 well, it’s justified Oct 20 12:34:58 people are slowly getting fed up with google just throwing everything at the wall and just seeing what sticks, Oct 20 12:35:06 cancelling loved products every few months, Oct 20 12:35:12 and completely fucking over customers Oct 20 12:35:33 the reason why many people use Google (and pay with their data) is because they get stable, reliable, usable services in return. Oct 20 12:36:00 When Google’s services are worse than whatever that geek you heard of hosts in his basement, providing Google with that data isn’t justifiable anymore Oct 20 12:36:35 now is the time for independent devs to attack Google from all corners and DESTROY them! Oct 20 12:40:28 My hosted server is down and the hosting service console says "Diskspace used: -2" O.O Oct 20 12:43:58 "System updating, please try again in 10 minutes. If problem persist, please contact support." Oct 20 12:44:23 Well, it's free hosting. I can't expect too much Oct 20 12:49:12 justJanne: Google being stupid or cleverly acting stupid in order to get attention? Oct 20 12:49:21 likely stupid Oct 20 12:49:31 it’s the same team lead who led hangouts before Oct 20 12:50:59 Seems like a google search comes up with very little articles about the 2.0 launch, so it does sound like genuine stupidity Oct 20 12:52:02 Google-certified Google stupidity Oct 20 13:02:00 Hello. Oct 20 13:03:08 Does Google Play ever publish their statistics ? Like how many overall active users is on it ? Oct 20 13:27:06 hmmm, got a little odd issue here, I have a couple of if statements for printing 2 things to the bluetooth printer, I have it ask if A should be printed, then if B should be printed (in the code) Oct 20 13:27:39 but for some reason, it asks if B should be printed first (using a Dialog) and if I choose yes, prints B, then asks if A should be printed. Oct 20 13:29:57 sdousley, you are showing both in sequence, the B dialog is over the A dialog Oct 20 13:30:46 Ah, that makes sense. Oct 20 13:30:54 is there any way to hold off on the B dialog till the A dialog is cleared? Oct 20 13:31:12 I thought stuff like that locked the UI thread (reason for me doing it in there) Oct 20 13:31:30 you have to show B as a result of the A Oct 20 13:31:48 ah ok Oct 20 13:33:27 I guess, I could set the dialogs up before the if statements, then just call the dialog.show() wherever needed couldn't I Oct 20 13:38:29 Create when needed Oct 20 14:40:06 Anyone know where the default location for screenshots taken from the emulator is? Oct 20 14:47:53 sdousley: probably your desktop Oct 20 14:48:45 sdousley: click on the 3-dot button ("extended controls"), then choose "settings" Oct 20 14:49:03 sdousley: you have "Screenshot save location", mine was set to the desktop Oct 20 14:49:49 sdousley: and in fact the snapshots appears on my desktop as PNG Oct 20 14:58:37 Hey, How can I make the background of a LinearLayout a progressbar? Oct 20 15:02:08 s0ullight: You probably want to use a FrameLayout to stack it over an _actual_ progressBar Oct 20 15:03:18 Hey guys :) I have the following problem: I launch an activity from my mainactivity. On pressing back, I return at the mainactivity. Everything fine. But if I switched between apps before and return to my app, pressing back brings me to my launcher. Does anyone know how to fix that? Oct 20 15:03:26 Melatonina: you're corret (Desktop) Oct 20 15:03:40 I canged that to a folder on the desktop :) Oct 20 15:04:07 otherwise your desktop would get cluttered in little time Oct 20 15:04:25 Melatonina: haha yeah, I generally don't put ANYTHING on my desktop Oct 20 15:04:52 gah... trying to install some of the npm stuff i need for my code editor and -_- core dump Oct 20 15:04:58 just my luck today Oct 20 15:06:05 i just cant win... my ssd is shot and my hdd i think is also going bad... Oct 20 15:18:01 pfn what is aapt2 claim to fame ? Oct 20 15:18:08 Sorry for reposting, but I have to get this sorted out quickly :P I have the following problem: I launch an activity from my mainactivity. On pressing back, I return at the mainactivity. Everything fine. But if I switched between apps before and return to my app, pressing back brings me to my launcher. Does anyone know how to fix that? Oct 20 15:27:38 I am looking at code and I think it stinks, so here is my question should you mix app.Fragment with v4.Fragment ? Oct 20 15:28:38 It basically seems like my fragment is not reusable, in any other activity except the main one its weaved into. and I am lost. Oct 20 15:28:48 In my limited experience: It works fine for a while, but there will be a point where you get in a lot of trouble :P So I'd say, if mixing, be veeery careful Oct 20 15:41:57 ugh, AS creates a folder on project_root called captures ? need to add that to my gitignore ... Oct 20 15:43:36 g00s, dunno, improvements, I guess, but it's not ready for production use yet Oct 20 15:46:45 Should I add vcs.xml to the git repository? Oct 20 15:47:09 Android Studio always asks if I want to and I never know what to say Oct 20 15:48:10 g00s, it ate shit when I tried to use it with 2.2.0--who knows when it'll be usable Oct 20 15:50:59 What does "Warning:[options] bootstrap class path not set in conjunction with -source 1.7" mean? Oct 20 15:51:11 g00s, looks like it has some amount of support for namespacing library resources Oct 20 15:51:12 It comes from Gradle Oct 20 15:52:53 pfn ok thanks for checking Oct 20 15:54:36 you're welcome Oct 20 15:58:10 hmm, I wonder if the dealers here are going to sell the chevy bolt with a premium... that's gonna be annoying Oct 20 15:58:15 * pfn wants one to replace his tdi.... Oct 20 16:01:02 http://tinyurl.com/j7oyxcs Oct 20 16:01:52 Cool car Oct 20 16:01:54 then imma havef the fun of running 220v from my main box to the garage for charging... Oct 20 16:02:51 cool car :D Oct 20 16:03:14 $37k base price minus 10k fed/state tax credits = no brainer Oct 20 16:03:36 huh BottomNavigationView doesn't have NavigationView.setCheckedItem(int id) ... Oct 20 16:03:48 whoops Oct 20 16:06:12 g00s, did you look the source of the new divideritemdecoration Oct 20 16:06:25 adq no why lol Oct 20 16:07:03 cause there are few little things no one did in it, i think most ppl copied more or less the same code for itemdecoration (taking a drawable in param) Oct 20 16:07:23 nothing funny or bad, just few things they do i thought it was not needed (like canvas save restore) Oct 20 16:07:41 probably more copy/pasted code Oct 20 16:07:45 people love doing that Oct 20 16:07:54 i already replaced old custom itemdecoration with new ones from the support lib, so far so good (of course) Oct 20 16:08:06 I just drew rectangles in onDraw... meh Oct 20 16:08:14 yeah it's a basic line Oct 20 16:08:23 or just threw border-backgrounds on my views in the recycler Oct 20 16:08:25 only need to reserve the space for drawing it Oct 20 16:08:57 they also have a test on null against if (parent.getLayoutManager() == null) { Oct 20 16:09:30 which should fix one of the top issues i got via crashlytics in a project, when someone quits the apps Oct 20 16:09:32 who sets decorations and adapters and everything but no layout manager... Oct 20 16:09:38 it gets reset to null? Oct 20 16:09:42 no idea Oct 20 16:09:48 that's an odd bug... Oct 20 16:09:53 i just remember i had to put this defensive test Oct 20 16:10:13 and it was only crashing when finishing the activity, did not investigate Oct 20 16:10:44 it might be a race condition Oct 20 16:12:13 probably Oct 20 16:12:24 probably something like launching app and immediately rotating Oct 20 16:13:11 morning all... Oct 20 16:18:33 is there an intent broadcast when a device is connected over USB and in debug mode? Oct 20 16:19:16 not charging over USB, but the debug guy. Oct 20 16:19:16 you should be able to tell if your app is in debug mode, i think Oct 20 16:19:37 I don't need to know if the debugger is actually debugging an app.. Oct 20 16:19:46 i don’t think you can know that Oct 20 16:20:03 there's a notification Oct 20 16:20:08 so somebody knows. :) Oct 20 16:20:16 Well, they know you're connected over USB Oct 20 16:20:35 well, you can know when the USB is connected, and you can tell if you’re in debug mode Oct 20 16:21:10 Dagmar: can I tell when it's connected over USB? Oct 20 16:21:34 On this device the USB port is not used for power, just debug. Oct 20 16:21:39 fullstop: "it's" lacks context. Which thing, the phone or the app or the PC Oct 20 16:22:12 can I know when the device is connected to a PC by the USB cable? Oct 20 16:22:48 that might be something only system apps can know Oct 20 16:22:56 that can be accomplished Oct 20 16:23:08 fullstop, you can detect if it's charging Oct 20 16:23:17 that means usb is plugged ;) Oct 20 16:23:20 (until 100%) Oct 20 16:23:21 At the very least you'd have to walk the ids showing on the USB bus Oct 20 16:23:22 adq: the 5V usb line is not connected Oct 20 16:23:36 then it's probably out of the scope of this channel ^^ Oct 20 16:23:54 Let me see how the notification is generated. Oct 20 16:23:55 In theory you could detect it, but it would be decided non-trivial to do so Oct 20 16:24:21 silly question, but with that 5v line disconnected, are you still able to communicate? Oct 20 16:24:27 you can go the painful road of making a usb host driver: https://developer.android.com/guide/topics/connectivity/usb/host.html Oct 20 16:24:59 s73v3r: sure. It's powered through a separate plug. Oct 20 16:25:13 well, if you were able to do something, it’d be found here: https://developer.android.com/reference/android/hardware/usb/UsbManager.html Oct 20 16:25:16 adq: I have both host and otg already. Oct 20 16:25:37 then you should be able to enumerate connected nodes Oct 20 16:25:56 s73v3r: that appears to be the host side of things. In this case, the android system is acting as device. Oct 20 16:26:11 g00s: Reddit is full of idiots. Oct 20 16:26:23 fullstop, just curious, what are you making? Oct 20 16:26:24 "Broadcast Action: A broadcast for USB device attached event. This intent is sent when a USB device is attached to the USB bus when in host mode." Oct 20 16:26:26 the guy making a reddit client didn’t know that? :p Oct 20 16:26:27 something related to audio? Oct 20 16:26:34 What makes roms carrier dependant? SM-N920R7 vs SM-N920RC etc. Oct 20 16:26:51 wrong channel Oct 20 16:26:59 No, it's a display for bus drivers. Oct 20 16:27:22 Darkspy: That the firmware has specific drivers for that specfic hardware and lacks drivers other hardware platforms might require Oct 20 16:27:22 derp Oct 20 16:27:45 TacticalJoke lol yeah Oct 20 16:27:48 ah ok Oct 20 16:27:50 fullstop: http://stackoverflow.com/questions/4600896/android-detecting-usb Oct 20 16:27:51 ty Oct 20 16:28:11 but here’s a question: Why isn’t the 5v rail connected? Oct 20 16:28:20 Darkspy: In the US, despite all the talk, most carriers are simply incompatible with others due to using entirely different technologies Oct 20 16:28:20 fullstop, last ressort solution would probably involve crawling and parsing /proc and/or /dev if you don't find any other way Oct 20 16:28:36 enumerating devices on host mode is definitely possible (see link above) Oct 20 16:28:52 yes, I've done the host side of things in the past with libusb. Oct 20 16:29:16 I'm okay with going through /sys/ if needed. Oct 20 16:30:07 I have a real conundrum: To avoid WebViews reloading pages on orientation change, the best solution seems to be disabling activity recreation (with `configChanges="orientation|screenSize..."`), but this means that the Toolbar/ActionBar/app bar doesn't updating its height (or text size) for the new orientation. How can this problem be resolved? Oct 20 16:30:41 I don't think you can do without the +5v line for USB Oct 20 16:30:56 Not unless you want to provide just _all_ your own power Oct 20 16:31:14 according to dumpsys, doesn't look like anything is broadcast. Oct 20 16:31:17 It seems that we simply have to disallow the app bar changing height and text size, but it's basically a bug. Oct 20 16:31:24 TacticalJoke: How does Chrome do it? Oct 20 16:31:32 adq in lisa wray's last recyclerview talk, she talked bout item decorators / separators, etc - it was surprisingly tricky Oct 20 16:32:04 s73v3r: Good point. It seems to use the same height and text size regardless of orientation. Oct 20 16:32:10 Maybe that's the best solution, ultimately. Oct 20 16:32:35 I think Firefox does the same. Oct 20 16:32:51 g00s, what? like to have evenly space for grid? Oct 20 16:32:57 i never found that tricky Oct 20 16:32:59 what do some of the other reddit clients do? Oct 20 16:33:17 Hmm, not sure. I actually haven't used another Reddit client in months. :s Oct 20 16:33:24 I kinda feel I don't want to infect my mind. Oct 20 16:33:35 Maybe cache the generated bitmap Oct 20 16:33:37 i’ll look at the couple I’ve got Oct 20 16:33:51 TacticalJoke: Btw whats your clients name? Oct 20 16:33:55 Oh, thanks, man. :D Oct 20 16:33:56 is it public? Oct 20 16:34:04 Then you could redraw without causing something to re-pull all the http objects Oct 20 16:34:06 TacticalJoke, maybe use fragment ;))) Oct 20 16:34:11 orbyt_: It's not released yet. Coming soon[tm]! Oct 20 16:34:13 allo 2.0? Oct 20 16:34:19 blocking orientation change for the sake of webview not reloading is so 2009 Oct 20 16:34:21 Aww ='( Oct 20 16:34:22 orbyt_: It's in a closed alpha right now. Oct 20 16:34:27 adq: haha Oct 20 16:34:30 :D Oct 20 16:34:44 orbyt_: I'm trying to hurry the frack up. Taking way too long. Oct 20 16:34:55 I know the feeling Oct 20 16:35:12 i'm still waiting that one day, they will provide something else than webview to justify text (like updating textview) Oct 20 16:35:22 looks like Now for Reddit does the same thing. i.e. the bar is the same height regardless of rotation Oct 20 16:35:24 of course there are already many external libs Oct 20 16:35:35 s73v3r: Ahh, cool. Oct 20 16:35:56 s73v3r: Thanks for the idea. For some reason, I did consider the question "What does Chrome do?" but didn't continue that train of thought. Oct 20 16:35:57 hi Oct 20 16:36:12 i get this error when i add widget cardview Oct 20 16:36:59 Error:(4) No resource identifier found for attribute 'cardCornerRadius' Oct 20 16:37:00 TacticalJoke: As much as I don’t like taking things from other apps, if multiple apps are doing something, it might be something the user has grown to expect Oct 20 16:37:11 Yeah. Oct 20 16:37:20 then remove attribute 'cardCornerRadius' linuxlove Oct 20 16:37:28 linuxlove: you need to import the cardview namespace to the xml Oct 20 16:37:49 s73v3r, how? Oct 20 16:38:01 what should i add exactly? Oct 20 16:38:05 s73v3r: Interesting -- Google Maps seems to keep the same app-bar height too. Oct 20 16:38:23 linuxlove: do a quick google for your problem. you’ll find the answer pretty quickly Oct 20 16:38:29 something like that linuxlove: xmlns:card_view="http://schemas.android.com/apk/res-auto" Oct 20 16:38:52 adq, i added that Oct 20 16:39:04 and what’s your corner radius line? Oct 20 16:39:22 show us your xml where the cardview is used Oct 20 16:39:39 card_view:cardCornerRadius="4dp" Oct 20 16:40:14 did you add the cardview library to your gradle? Oct 20 16:40:21 I use app:cardCornerRadius... Oct 20 16:40:39 http://kopy.io/JG14N Oct 20 16:40:40 BURN THE HEATHEN Oct 20 16:40:50 =/ Oct 20 16:42:04 linuxlove, do you get this error at runtime (when you launch your app) or in your IDE (android studio) Oct 20 16:42:06 ? Oct 20 16:42:31 adq, in ide Oct 20 16:42:33 because i don't see anything wrong Oct 20 16:42:42 rendering Oct 20 16:42:46 did you try to run it? because AS has many false positive Oct 20 16:42:50 too many, in my opinion Oct 20 16:43:00 Is using app: namespace over card_view: incorrect? Whats the difference? Oct 20 16:43:00 is this while compiling, or while trying to show the preview? Oct 20 16:43:12 orbyt_: There’s no difference Oct 20 16:43:12 orbyt_, it's ok for both as long as they match Oct 20 16:43:13 hey, how can I make the progressbar use the height of its parent? Oct 20 16:43:22 s73v3r, you are 100% right Oct 20 16:43:34 Well, deeper question, what does the namespace do? Oct 20 16:43:36 s73v3r, problem was from gradle Oct 20 16:43:43 :') Oct 20 16:43:44 I've never actually thought about it Oct 20 16:43:46 I generally use app: for stuff I do, and for stuff from google, I’d name it Oct 20 16:43:48 s0ullight: AFAIR, you can't do that for horizontal progress bars. Oct 20 16:44:06 Well, they'll use the view height you give them, but the thing they draw can't change height. Oct 20 16:44:19 orbyt_, namespace helps to separate and identify things Oct 20 16:44:30 but i don't really know much in details Oct 20 16:44:53 orbyt_, the prefix is irrelevant, the uri that's attached to the prefix is what determines if it's right or wrong Oct 20 16:44:57 but what technically happens when you use something like an `app:` namespace over another Oct 20 16:45:03 nothing happens Oct 20 16:45:11 it's the ns uri that "happens" Oct 20 16:45:27 orbyt_: It’s just a name. the name given doesn’t matter Oct 20 16:45:35 I think that's why people are downvoting your comment, g00s. Oct 20 16:45:43 As long as it matches, I see Oct 20 16:45:47 I think they incorrectly think you're being pedantic about the `app` thing. Oct 20 16:46:00 it’s like naming a package. the name itself doesn’t matter Oct 20 16:46:04 link of g00s comment TacticalJoke? Oct 20 16:46:07 so i can downvote too Oct 20 16:46:16 haha Oct 20 16:46:19 ;) Oct 20 16:46:19 TacticalJoke: thanks Oct 20 16:46:19 * pfn hops on the downvote train Oct 20 16:46:24 Can I link to your comment in here, g00s? Oct 20 16:46:33 I'm not sure whether you've revealed your Reddit username in here. Oct 20 16:46:41 i bet it's in r/androiddev Oct 20 16:46:54 i don’t believe g00s has Oct 20 16:46:59 i think he did, once Oct 20 16:47:03 but let's wait for his approval Oct 20 16:47:09 Yeah, I seem to remembering him doing it at least once. Oct 20 16:47:24 Otherwise, maybe I could extort him. Oct 20 16:47:30 eh, it's pretty easy to figure out his reddit /u/ Oct 20 16:48:03 i think i found the post and comment in the meantime Oct 20 16:48:14 adq: haha Oct 20 16:48:20 It's back up to 0 now. Oct 20 16:48:22 Support Lib 25 with BottomNavigationView by ***** in androiddev Oct 20 16:48:27 I think it was -3 recently. Oct 20 16:48:29 i won't say more Oct 20 16:49:40 (of course i was joking about downvoting, just in case) Oct 20 16:50:20 as for that matter, xmlns:design="http://schemas.android.com/apk/res/android.support.design" should work.... Oct 20 16:50:24 hmm Oct 20 16:50:32 actually, come to think of it, maybe only in aapt2 Oct 20 16:50:42 We did it, Reddit! His comment is now at +1. Oct 20 16:50:43 not in aapt1, aapt1 only supports actual package-name Oct 20 16:50:48 :) Oct 20 16:50:57 adq is da real MVP. Oct 20 16:51:07 TacticalJoke: found something: setScaleY Oct 20 16:51:10 did the trick Oct 20 16:51:37 g00s, probably from aapt2 Oct 20 16:51:47 s0ullight: Ahh, hadn't thought of that. Oct 20 16:51:56 s0ullight: Why do you want to do this? Just curious. Oct 20 16:52:41 I want the background of a recyclerview to be a progressbar Oct 20 16:52:45 re: g00s, looks like it has some amount of support for namespacing library resources Oct 20 16:53:17 s0ullight: Is it indeterminate? Oct 20 16:53:19 So generate a custom drawable for the background Oct 20 16:53:22 which is a win, finally Oct 20 16:53:30 so libraries don't collide with locally defined attrs Oct 20 16:53:31 If it's determinate, it's easy to use a custom drawable with ProgressBar. Oct 20 16:53:43 so fucking annoying having to give it a stupid fake name prefix Oct 20 16:53:50 TacticalJoke: nope, it should be an invers progressbar kinda a count down thing Oct 20 16:54:05 s0ullight: I'd use a custom drawable, in that case. Oct 20 16:54:34 TacticalJoke: the thing is, I don't know what the height is going to be Oct 20 16:54:48 trying to figure out a way to do it, any recommendations? Oct 20 16:55:40 * pfn goes back to /r/ffbraveexvius Oct 20 16:55:58 Hmm, I'm guessing you can't use a Drawable in that case, then. You could create a custom View that just fills itself with a colour. Oct 20 16:56:12 The View could just be `match_parent` high. Oct 20 16:56:20 Or whatever it is. Oct 20 16:57:15 You can check how high the element is and still use a custom drawable Oct 20 16:57:32 ...or stack two imageviews in a vertical layout and abuse layout_weight Oct 20 16:58:38 TacticalJoke adq lol thanks :D Oct 20 16:59:25 Dagmar: ProgressBars need a LayerDrawable with a specific bunch of layers. I'm not sure whether it's possible to determine the height at run time. Maybe it is, but I wonder how easy it would be. Oct 20 17:00:27 http://android-developers.blogspot.jp/2016/10/android71-dev-preview-available.html Oct 20 17:00:39 ..and I'm thinking it's probably easier to just make a bogus progressbar Oct 20 17:01:12 Yeah, it's probably easiest to subclass View and just draw a full-size rectangle in View.onDraw. Oct 20 17:01:45 One can't exactly put a progressBar View in as the background of another View. That's kind of insane Oct 20 17:02:04 gordon_ i think its called Android Null Oct 20 17:02:15 :D Oct 20 17:02:15 One can use a FrameLayout to stack something atop a progressbar, but all things considered, probably easier to just create one's own progress bar at that point Oct 20 17:02:32 After the initial preview release, we plan to deliver an update in November followed by the final public release to the Android Open Source Project (AOSP) in December. Oct 20 17:02:44 hmm that's called fast release cycle Oct 20 17:02:46 final public static release. Oct 20 17:02:56 heh Oct 20 17:03:45 what's new ? Oct 20 17:05:42 "I can hardly wait for 2023 when enough devices have been replaced so we can target SDK 24 and use Java 8 features. " lol Oct 20 17:05:53 think 2023 is being optimistic there Oct 20 17:06:03 haha Oct 20 17:09:13 not because minSdk=24 will be viable in 2023, but because we could all be dead in 2023 if certain somebody becomes president of US Oct 20 17:09:14 well, api 16 is not that old Oct 20 17:09:22 g00s: lol Oct 20 17:11:10 gordon_ i've been saying, this whole API thing is rigged Oct 20 17:12:06 well, if you're starting app today you set minSdk to 16 / 19 Oct 20 17:12:13 21. :D Oct 20 17:12:26 TacticalJoke: you wish ;) Oct 20 17:12:41 19 actually makes sense. Oct 20 17:12:55 lol i was making oblique reference / joke Oct 20 17:12:59 On the newest app we have cca. 80% of people on 21+ Oct 20 17:13:02 g00s: I know ;) Oct 20 17:13:05 :D Oct 20 17:13:13 we need to make Android Great Again Oct 20 17:13:13 With <19 being a marginal % Oct 20 17:13:22 Gradle plugin 2.2.2 is out. Still no release notes for 2.2.1. Oct 20 17:13:28 <****> 8=100% 10=100% 15=98% 16=97% 17=91% 18=84% 19=81% 21=54% 22=41% 23=19% Oct 20 17:13:28 g00s: you want to drop java? ;) Oct 20 17:13:44 near ~15/16/17 == max coverage Oct 20 17:14:17 so it would be 16 or 19 for me Oct 20 17:14:25 if it start an app without constraints on minsdk Oct 20 17:14:50 and with supportlib, it's far less a problem (ignoring all the bugs) compared to before era without support lib Oct 20 17:16:22 well i guess if minSdk=21 i don't have to worry about material date pickers :P Oct 20 17:16:29 now thats something that needs to be in the support lib Oct 20 17:16:39 Hi, I have a Problem with PreferenceFragment. For some reason, whichever entry is the last in my preferenceCategory just doesnt work. It doesnt animate and the values do not persist. http://hastebin.com/iyamaqasev.xml Oct 20 17:18:51 gordon_ hm, i "grew up" on c++, of course at the time weenies sait it was also inefficient; but I like bjarne's philosophy of 'pay as you go'. i feel claustrophobic with java, especially a bad GC although thats getting better, on resource constrained devices Oct 20 17:19:23 at least with data centric apps, and that seems to be a trend as more apps become more data centric - more data, quicker velocity Oct 20 17:20:28 from what i read, the same android games still requires 2-3x more memory than iOS because of how inefficiently memory is handled Oct 20 17:20:59 Java'd Oct 20 17:21:03 One thing that surprises me on Android is how much reflection is used in typical code paths. For a mobile OS, it's quite unexpected. Oct 20 17:21:04 but no Oct 20 17:21:29 You'd think that'd be the one thing they'd avoid using. Oct 20 17:21:29 g00s, mmm? Oct 20 17:21:33 the /same/ game isn't going to require any more memory. the same game implemented in java instead of objective-C or whatever, yeah, that might eat more memory Oct 20 17:21:35 What do you mean by that? Oct 20 17:21:50 zinx yea, thats it Oct 20 17:22:01 I'd expect mobile games to use C++ or other non-java based framework Oct 20 17:22:09 g00s: java's GC is actually pretty good Oct 20 17:22:18 not the one on Android. Oct 20 17:22:21 gordon_ yes Java's GC ... Oct 20 17:22:26 The one on Oracle JRE8 is pretty good :) Oct 20 17:22:32 g1 ? Oct 20 17:22:39 Yeah, Android's VM is another topic entirely. Oct 20 17:23:22 g00s: I'm interested when scala and rust will land in the end Oct 20 17:23:25 Does ART even do method inlining? (I honestly don't know -- curious.) Oct 20 17:23:40 gordon_: you can use scala now Oct 20 17:23:47 I know I can Oct 20 17:23:55 technically you can use rust too, but it's not gonna integrate as well Oct 20 17:24:04 TacticalJoke, yes it can Oct 20 17:24:16 zinx: I'm more worried about 2.12 Oct 20 17:26:25 TacticalJoke, yp, just need a static / final class Oct 20 17:27:11 Hmm. I always assumed (not sure why) that final classes didn't make a difference to run-time performance. Oct 20 17:27:36 There was a talk from ART team where they talked about it. Oct 20 17:27:50 Basically for final class the JIT/AOT knows that it's not going to be overriden. Oct 20 17:28:22 I guess they can inline static methods regardless? Oct 20 17:35:05 I know this is a debateable question, but I am seeking 2 different Google style guides on spacing, android one says 4/8, and another says 2/4, for blocks/line-wraps, which do most use? Oct 20 17:35:13 https://source.android.com/source/code-style.html#use-spaces-for-indentation Oct 20 17:35:21 https://google.github.io/styleguide/javaguide.html#s4.2-block-indentation Oct 20 17:35:48 Use the first one when contributing to AOSP, the second one for everything else Oct 20 17:35:55 s/seeking/seeing Oct 20 17:36:09 SimonVT: so to be consistent maybe best to follow AOSP? Oct 20 17:36:19 No Oct 20 17:36:25 Google is recommending two-space indents now? ;o Oct 20 17:36:40 SimonVT: updating an old app done by a google employee it seems and is using 2/4, and I kind of like that, I have been using 4/8 for decades, but wasting space Oct 20 17:36:55 TacticalJoke: seems so, not sure if one is android specific and the other general java Oct 20 17:37:01 Considering the IDE can instantly decide to represent it at 4-spaces and still store it as 2? Sure why not Oct 20 17:37:04 wltjr: if you’re committing to AOSP, use their guidelines. If you’re working on existing code, use whatever that is using. For your own stuff, use whatever you feel comfortable with Oct 20 17:37:13 wltjr, I don't think anyone sane uses 2-space indents :P Oct 20 17:37:29 Mavrik: on of their guides says that Oct 20 17:37:32 Mavrik: rubists do Oct 20 17:37:41 my point exactly. Oct 20 17:37:46 I agree with Mavrik. I'm sorry. :D Oct 20 17:37:46 I am kind of liking the 2/4, the app is already that way so likely stick with it Oct 20 17:37:52 People who might have to nest more than three things become increasingly more likely Oct 20 17:38:02 Deeply nested code is a code smell anyway. Oct 20 17:38:30 as for the IDE android studio has popups at times about the spacing, but when I click does nothing Oct 20 17:38:38 Sometimes what one is doing makes it necessary Oct 20 17:38:45 like says its set for 4 spaces but file is 2, I click and no change Oct 20 17:38:53 Dagmar: It's always easy to avoid. :D Oct 20 17:39:02 No, some tasks are genuinely complex Oct 20 17:39:04 Dagmar: Can you give an example where it's necessary. Oct 20 17:39:07 ? * Oct 20 17:39:13 I guess for new stuff I will stick to the regular 4/8, and for this existing app leave it at 2/4 Oct 20 17:39:25 Dagmar: that’s a cop out. you can always structure your code to not deeply nest Oct 20 17:39:25 I use 2 space indent. So does Google (as evident by their java guidelines). Square does as well Oct 20 17:39:42 SimonVT: that is what I thought till I saw the android one that differed Oct 20 17:39:43 Whatever you do, don't adopt the m prefix Oct 20 17:39:52 SimonVT: I love that, i already use it Oct 20 17:39:57 I use a tab of 2 spaces Oct 20 17:39:57 wltjr: Nooooo. Oct 20 17:39:59 ...and one can also make every bit of code longer than three lines into it's own function Oct 20 17:40:07 SimonVT: I just ran into a situation wher esomeone had defined a local and global same name Oct 20 17:40:27 sadly this app already has the m and I like it, prevents variable names from being re-used Oct 20 17:40:38 some of my stuff is worse... m_ :) Oct 20 17:40:40 Why don't people like using tabs? Oct 20 17:40:43 wltjr: It's not needed. Oct 20 17:40:45 Android didn't start at google. The m prefix solved an issue at some point (I believe gerrit not doing proper code highlighting or something stupid) Oct 20 17:40:57 You can disambiguate with `this` where necessary, and that's readable. Oct 20 17:40:59 wltjr: Your IDE color codes member and local variables differently Oct 20 17:40:59 Because tabs don't let them tell other people what to do Oct 20 17:41:06 TacticalJoke: its just a visual thing, and I think the code that had the same variable in local and global had issues as a result Oct 20 17:41:31 any good compilter/linter will warn you about that Oct 20 17:41:37 compiler Oct 20 17:42:04 SimonVT: if using an IDE, maybe using nano or some text editor that has minimal highlighting Oct 20 17:42:23 wltjr: Methods should be short enough that it's obvious, IMO. Oct 20 17:42:28 no one does android development without an IDE Oct 20 17:42:34 or so the claim goes Oct 20 17:42:40 java in general Oct 20 17:43:01 it’s not that no one does it without an ide, it’s that those who do are generally considered massochists Oct 20 17:43:04 https://github.com/gentoo/gentoo/blob/master/dev-java/java-dep-check/files/Main-0.3.java Oct 20 17:43:35 simple edits do not always merit firing up an IDE Oct 20 17:43:44 firing up? Oct 20 17:43:49 in that example deps was used as local and global Oct 20 17:43:52 it's always running Oct 20 17:44:09 pfn: which one? netbeans or android studio? :) Oct 20 17:44:16 <-- Newbie; I've just installed Android Studio on Linux (kubuntu) and was told in the install that I should take advantage of hardware virtualisation. I've since install qemu-kvm. Will the emulator automatically make use of it? Oct 20 17:44:18 intellij Oct 20 17:44:29 but no, I refert to them at times when I have to, for some things will just grab what ever editor is easiest Oct 20 17:44:42 that’s a pretty big stretch Oct 20 17:44:45 s/revert Oct 20 17:44:53 wltjr: No, it's not local and global. Oct 20 17:44:56 and if you find yourself making those kinds of mistakes, then maybe you should be firing up the IDE Oct 20 17:45:12 wltjr: Those are static methods; they can't access the non-static field. Oct 20 17:45:24 TacticalJoke: several methods have their own deps variable, same type and name Oct 20 17:45:38 They're all static methods. Oct 20 17:45:45 They could never access `this` in `this.deps`. Oct 20 17:45:50 TacticalJoke: it wasn't causing problems just potential could, so I avoided it entirely with different names Oct 20 17:45:59 TacticalJoke: https://github.com/gentoo/gentoo/blob/master/dev-java/java-dep-check/files/Main-0.4.java Oct 20 17:46:05 How could it cause problems? Oct 20 17:46:12 Static methods cannot access `this`. Oct 20 17:46:32 Or rather "there is no `this`". Oct 20 17:46:39 TacticalJoke: if a method was added that was not static Oct 20 17:46:45 nice version controlling of your Main-x.x.java Oct 20 17:46:51 TacticalJoke: just no reason to have the name twice Oct 20 17:46:58 pfn: not me others did that I just updated it for asm5 Oct 20 17:47:01 wltjr: It's not a problem in real code. Oct 20 17:47:06 pfn: it gets rename on install, its just a tool Oct 20 17:47:22 TacticalJoke: just did not like the styling, bad practice to reuse name like that IMHO Oct 20 17:47:36 wltjr: It's not bad practice. Oct 20 17:48:05 TacticalJoke: not even sure those methods need be static either, but goal was just to update for asm5 Oct 20 17:48:16 The code itself is probably bad (I'm too lazy to analyze). Oct 20 17:48:32 Just at a quick glance, that code looks badly designed. Oct 20 17:49:09 TacticalJoke: yes it was likley coded quickly its not widely used, its a development tool Oct 20 17:49:23 s73v3r, adq, Dagmar: UsbManager.ACTION_USB_STATE is broadcast when the android device is connected as a USB device. Oct 20 17:49:27 TacticalJoke: reports potentially unneeded stuff Oct 20 17:49:53 wltjr: being a development tool is not a reason to code poorly Oct 20 17:49:57 TacticalJoke: result of non-java people writing java code somewhat :) as the case for most who maintain java on gentoo Oct 20 17:50:02 s73v3r: ^ Oct 20 17:50:11 still not an excuse Oct 20 17:50:18 s73v3r: not an excuse its the reason Oct 20 17:50:20 if you’re gonna do something, do it right Oct 20 17:51:13 s73v3r: said in an android channel is funny and ironic Oct 20 17:51:35 s73v3r: lots of android is not done right, like how it handles DHCP, IPv6, etc Oct 20 17:51:45 Android is a mess. Oct 20 17:51:57 which we fully acknowledge. But we’re not in a position to fix it Oct 20 17:52:09 yes sadly and google wants to made a new OS, lord help us all... Oct 20 17:52:20 s/made/make Oct 20 17:52:42 considering dhcp and ipv6 in android are all off-the-shelf... Oct 20 17:52:44 * pfn shrugs Oct 20 17:52:59 wltjr: For the existing code, probably best to use their style (regarding the `m` prefix). Just pointing out that not using a prefix here is fine (and IMO a good idea). Oct 20 17:53:00 pfn: hardly, something regressed in IPv4 DHCP, I used to be able to do static DHCP no more Oct 20 17:53:17 Anything even remotely Hungarian-notation-like makes a lot of people feel unwell. Oct 20 17:53:26 pfn: they have always objected to static IPv6 for ULA, which companies many want for internal purposes Oct 20 17:53:44 I dislike even `btnCancel`. Oct 20 17:53:57 TacticalJoke: I will likely stick with style and the m thing in this usage is new, and pretty sure dude works for Google, Ken Magic Oct 20 17:53:59 Though I can understand it (`cancelButton` is long). Oct 20 17:54:16 I want his last name :) Oct 20 17:54:28 Mr Magic just sounds awesome, or Dr Magic :P Oct 20 17:54:34 It'd be great for approaching women. Oct 20 17:54:35 i don’t like btnCancel either, but I’ve not been able to come up with something better Oct 20 17:54:40 "Hello ladies. I am Mr. Magic." Oct 20 17:54:49 :) Oct 20 17:55:03 not to be confused with Magic Mike... Oct 20 17:55:15 Mr Mike not as cool Oct 20 17:55:26 not unless your a MC or DJ Oct 20 17:56:01 this is said code -> https://github.com/Obsidian-StudiosInc/solitaire Oct 20 17:56:18 others have likely forked, I just missed the old add free solitaire game, so updating it, others have but could not use their stuff and doing my own Oct 20 17:56:21 s73v3r: FWIW, my approach is not to worry too much about types (e.g., I'd go with `cancelButton`, regardless of what kind of button it is {even a MagicButton}). This tends to avoid too much length. Oct 20 17:56:31 Sometimes I think `fooView` is enough: I don't care what kind of View it is. Oct 20 17:56:55 i usually want to know that it’s a button, but rarely do I care what kind of button Oct 20 17:57:16 A radio button might be the exception, but I’d probably come up with a different naming convention for those Oct 20 17:58:51 wltjr: just noticed the Ken Magic one is the one i've been playing Freecell on since i had a T-Mo G1 :P Oct 20 17:59:17 zinx: yes and has not been updated in years and has no support for newer phones, no menu button etc Oct 20 17:59:33 zinx: I plan to put it back on the market short of google having some issue Oct 20 17:59:36 wltjr does android handle dhcpv6 ? i remember there was some resistance on google's part, for some valid reasons but ... Oct 20 17:59:40 no ads Oct 20 18:00:03 g00s: yes but I am not sure you can assign static IPv6 ULA, and I cannot evne do static IPv4 via DHCP anymore :( Oct 20 18:00:18 seemed like one of those things, technically it should not be needed, but in practice existing infrastrusture it was easier to integrate Oct 20 18:00:41 wltjr: i use it on my oneplus one :p Oct 20 18:00:44 g00s: what should not be needed? Oct 20 18:00:56 DHCPv6 Oct 20 18:01:00 zinx: I could not play it on my s7, could not get menu up, resolution sucked Oct 20 18:01:11 i don't care about resolution so much Oct 20 18:01:12 g00s: I use that for static ULA Oct 20 18:01:28 zinx: I modified most stuff to be drawn vs bitmaps Oct 20 18:01:34 wltjr: Hmm, that code base doesn't appear to be huge. Oct 20 18:01:46 though my geometry sucks, need to revisit so I can make it prettier, add curves etc Oct 20 18:01:51 wltjr https://code.google.com/p/android/issues/detail?id=32621 Oct 20 18:01:57 Though I guess if you're not accustomed to Android development it could take a while to get to MVP on such a game. Oct 20 18:02:00 TacticalJoke: no not at all, about to refactor some of the styling Oct 20 18:02:40 i like my phones w/ a menu button/back button too :x Oct 20 18:02:59 g00s: yeah and I commented on another, google has faught it for years, not regressed on IPv4 as well :( Oct 20 18:03:21 g00s: https://code.google.com/p/android/issues/detail?id=10315 Oct 20 18:03:23 A problem I have with that is that it's a waste of space. On-screen buttons hide when, for example, watching videos. Oct 20 18:03:36 and it seems new phones still have them, so yay Oct 20 18:03:49 zinx: phones with menu buttons haven't been made for years, it went out with some previous android version Oct 20 18:04:04 wltjr its only been open for 6 years, have to give it more time Oct 20 18:04:04 zinx: no, they replicate it via long press on back button, google removed it Oct 20 18:04:08 wltjr: my oneplus 1 has them, and it seems the oneplus 3 has them to Oct 20 18:04:10 erh, too Oct 20 18:04:10 g00s: :) Oct 20 18:04:25 wltjr: the oneplus 3 only has dots as indicators, but they are there Oct 20 18:04:25 zinx: maybe the only device that still has them Oct 20 18:04:50 well, the only device i will bother with then, there's no reason to not have them if you're still going to have a home button/fingerprint reader/whatever Oct 20 18:04:51 zinx: I believe since honeycomb Oct 20 18:04:59 zinx: http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html Oct 20 18:05:08 google is not always righ.t Oct 20 18:05:08 zinx: nah, long press handles it Oct 20 18:05:12 no, it really doesn't Oct 20 18:05:48 zinx: eitehr way I already addressed that, so can work with both :) Oct 20 18:06:22 Menu buttons are redundant now. The on-screen menu makes it obsolete. Oct 20 18:06:30 been trying to dial in artwork sizes, it was all fixed sizes before now moved to variable based on screen resolution, but am setting a font size in sp Oct 20 18:06:44 They were always a bad idea, anyway. It's hard to know whether the current screen has a menu without a visual cue. Oct 20 18:06:57 TacticalJoke: I just had problems firing the menu, as it was coded for a menu button Oct 20 18:07:08 i think even apple is thinking about getting rid of that button Oct 20 18:07:15 wltjr: Have you updated to displaying the on-screen menu instead? Oct 20 18:07:19 I mention the menu in the help that displays at first, but most people I think have gotten used to long press back for menu Oct 20 18:07:26 Sorry, that question makes no sense. Oct 20 18:07:35 g00s: apple never had it :P Oct 20 18:07:37 TacticalJoke: I use the actionbar menu, but I hide the actionbar Oct 20 18:07:49 it actually has a great outcome, the menu pops up on the right side vs left, but I really like that Oct 20 18:08:10 it goes well with the solitaire game layout, so you use right hand to bring up menu and left to select :) Oct 20 18:08:14 are there android phones without a 'home' style button? Oct 20 18:08:20 we humans have 2 :) Oct 20 18:08:37 well most of us, some are less a limb or two Oct 20 18:08:59 zinx: None of my devices has a physical button except Power and Volume. Oct 20 18:09:17 TacticalJoke: do you have to press the power button to get the screen to turn on? i hate that shit Oct 20 18:09:18 its rare to find things with them now Oct 20 18:09:34 zinx: Yes. How else would you do it? Oct 20 18:09:38 Mine has capacitave buttons Oct 20 18:09:41 TacticalJoke: double-tap the screen, how else would you do it? Oct 20 18:09:42 Though with my Moto devices I can just move the phone. Oct 20 18:09:54 usually the double-tap thing is something you can config Oct 20 18:09:54 TacticalJoke: ;-P Oct 20 18:10:56 You of course turn on the screen with the finger print reader on the back Oct 20 18:11:36 that would be acceptable Oct 20 18:11:53 It'd be cool if it could detect my looking at it. Or my thinking "I want the screen on". Oct 20 18:11:58 or the finger print reader below the screen Oct 20 18:12:05 TacticalJoke, one of the samsungs can do that Oct 20 18:12:11 TacticalJoke, detect you looking at it Oct 20 18:12:29 this is maybe not the place to ask this, does someone have some good wireless(bluetooth) headset to suggest, something with good Noise Cancelation would be great! Oct 20 18:12:29 Or I can just move the device, that turns on the screen as well Oct 20 18:12:35 wish it would detect my ear and not press hold... Oct 20 18:12:37 TacticalJoke, it also does unlocking based on visible+ir camera scans of your iris. I have no idea how reliable it is tho, both for security and for consistency :) Oct 20 18:12:52 dragorn: Dayum. I thought you were joking at first Oct 20 18:13:05 I like the finger print reader turning it on, that's made me perfectly happy Oct 20 18:13:07 I wonder how much battery that uses. Oct 20 18:13:11 TacticalJoke, I think (ha) it might have been the note 7 Oct 20 18:13:12 but can samsungs detect when they are about to catch on fire :) Oct 20 18:13:17 wltjr: haha Oct 20 18:13:34 I blame them for all the crap they preload on it Oct 20 18:13:41 wltjr, yes. register onboot receiver... :) Oct 20 18:13:52 They also make changes to the OS that causes developers misery. Oct 20 18:14:16 Stuff that should just work often doesn't work on certain Samsung devices. Oct 20 18:14:20 yes I had some menu funkiness for a while I could not figure out and seemed device specific Oct 20 18:14:21 TacticalJoke, http://www.phonearena.com/news/Here-is-how-the-Galaxy-Note-7-iris-scanner-works_id82854 yeah it was the note 7 Oct 20 18:14:36 wltjr: Have you been doing Android for long? I assumed you were new. Oct 20 18:14:43 TacticalJoke, but even back to the s4 had some sort of face detection which could "tell" (kinda) when you were looking at it and not go to sleep Oct 20 18:14:47 dragorn: Interesting. Oct 20 18:14:51 TacticalJoke: yes and no, I did some years ago and fell out revisiting it now Oct 20 18:14:52 Man. That sucks. I'm not supposed to get flaming chemicals in my eyes. It's bad for my contact lenses. Oct 20 18:15:08 TacticalJoke, but it worked about as well as their hover stuff did, which is to say, not amazingly. Oct 20 18:15:13 TacticalJoke: I am not new to linux or java, and can get pretty deep into android because of that Oct 20 18:15:39 TacticalJoke: never ran stock roms, always mess with my stuff, now likely have to see about making roms for older devices I have Oct 20 18:15:50 wltjr: That's cool. Android being open source is very useful (especially because the documentation is often poor). Oct 20 18:16:33 TacticalJoke: but so much has changed what I learned a few years back is not really applicable :( Oct 20 18:16:50 that’s mobile in general Oct 20 18:17:10 TacticalJoke: also was doing POS stuff and card readers have also changed, I was working with universal ones from ID Tech Oct 20 18:17:14 wltjr: One thing I'd recommend is setting a high `minSdkVersion`. It makes life much easier. Oct 20 18:17:45 TacticalJoke: I was thinking to still support legacy devices as well as new, but I guess I can cut off, as the old game is still in market and will work mostly fine on older devices Oct 20 18:18:27 TacticalJoke: that would let me drop that compat library, I have to use an obsolete one because I do not think travis-ci has access to latest, I have to double check, there is a hack/way to get the rest of the lastest stuff that is not updated in the version of Ubuntu travis-ci runs Oct 20 18:18:29 set minSdk high to get the app working, and then gradually bring it down until you’re tired of doing the work Oct 20 18:18:46 travis-ci shouldn’t be providing the library Oct 20 18:18:52 I think I raised it minimally Oct 20 18:19:04 gradle should be bringing in the library itself Oct 20 18:19:10 Yeah, it's all Gradle now. Oct 20 18:19:17 wltjr, huh? travis downloads sdk on-demand Oct 20 18:19:24 s73v3r: one sec, I added temp code to output all availalbe libaries Oct 20 18:19:52 https://travis-ci.org/Obsidian-StudiosInc/solitaire/builds/167507549 Oct 20 18:20:04 see the line that says android list sdk Oct 20 18:20:10 click that and it will open and show all I can use Oct 20 18:20:18 again, that shouldn’t be travis-ci doing it Oct 20 18:20:20 I tried using newer but had issues Oct 20 18:20:32 s73v3r: i tried letting gradle it failed because you have to accept licenses or something Oct 20 18:20:52 wltjr, that's false, you use travis to select components to install Oct 20 18:20:55 but if there is a better way i am open, that part of travis takes some time Oct 20 18:21:12 pfn: what is the other way? it is what all guides and ever doc/post I have seen said Oct 20 18:21:21 pfn: the dual tools tools allowed me to get newer stuff Oct 20 18:21:25 wltjr, https://github.com/scala-android/sbt-android/blob/master/.travis.yml#L16-L24 Oct 20 18:21:29 https://github.com/Obsidian-StudiosInc/solitaire/blob/master/.travis.yml Oct 20 18:21:36 that downloads the components for you Oct 20 18:21:58 pfn: your behind, to get newer you have to doule up on tools and most whatyou have looks like mine Oct 20 18:21:59 apparently you need to put the line in that says you accept the license Oct 20 18:22:07 pfn: try to use 25, you can't till you call tools twice Oct 20 18:22:12 wltjr, I don't care about staying up-to-date on tools Oct 20 18:22:17 not for this travis run Oct 20 18:22:25 s73v3r: it does it for you if you have the right versions in use Oct 20 18:22:29 and yes, you add the travis line for accepting license Oct 20 18:22:40 if you look at some failures there are ones with mismatch and license was not accepted Oct 20 18:22:50 https://travis-ci.org/Obsidian-StudiosInc/solitaire/builds Oct 20 18:22:55 and it says that by default, it will accept licenses Oct 20 18:23:08 https://travis-ci.org/Obsidian-StudiosInc/solitaire/builds/167505336 Oct 20 18:23:22 s73v3r: only for versions you pass to it Oct 20 18:23:54 go older in my build history you will see me dialing in travis, matching versions etc Oct 20 18:24:00 well, I just found out that travis isn’t something I should look at Oct 20 18:24:06 lots of failures trying to find what I can use in travis Oct 20 18:24:18 s73v3r: could be true :) its odd Oct 20 18:24:34 you can use everything from the android-sdk in travis Oct 20 18:24:36 it downloads on-demand Oct 20 18:24:39 irc channel sucks, keep asking about how I can get it to deploy to github without using CLI, seems I have to use CLI for the github key Oct 20 18:24:59 pfn: well the example you shows still shows travis setting up components Oct 20 18:25:10 pfn: if you double your tools call you can get 25, some weird travis hack Oct 20 18:25:22 yes, it's travis setting up components, from `android update sdk` Oct 20 18:25:24 pfn: but that still did not let me get the non-obsolete compat libarary Oct 20 18:25:27 or whatever the commandline is Oct 20 18:25:31 I doubt it Oct 20 18:25:33 pfn: ah :P Oct 20 18:25:51 the whole point is that you can use latest android sdk on travis using travis setup Oct 20 18:26:01 well everything else is latest just not compat libary, stuck using obsolete Oct 20 18:26:18 pfn: I am, just not the one library no idea why Oct 20 18:26:19 then that's because extras-android-m2repository hasn't been published yet Oct 20 18:26:28 i.e. in google's cdn Oct 20 18:26:35 pfn: idk its in the list, I would think it to show same thing I see on my system Oct 20 18:26:48 pfn: I can get newer on my desktop/laptop, not sure why travis cant Oct 20 18:26:53 cdn Oct 20 18:26:58 pfn: ah ok Oct 20 18:27:17 its minor, I can always update minsdk and drop compat library Oct 20 18:28:13 pfn: your testing using an emulator interesting, good to know that is an option Oct 20 18:28:40 actually, can travis containers be disabled for free tier? Oct 20 18:28:48 my travis builds perpetually fail because it's in a container Oct 20 18:29:06 pfn: I think it changes if you set sudo or something Oct 20 18:29:36 pfn: https://docs.travis-ci.com/user/ci-environment/#Overview Oct 20 18:29:45 pfn: you do not need sudo but maybe tossing that in will get you a different type Oct 20 18:29:58 pfn: or test on osx :) Oct 20 18:30:51 pfn: I want travis to be able to push the apk to github, without me having to do it at CLI for github key Oct 20 18:31:32 pfn: asked in travis channel about auto deploy to github, but seems no questions are answered there :P Oct 20 18:31:46 wouldn't know about auto-deploy to github Oct 20 18:32:30 https://docs.travis-ci.com/user/deployment Oct 20 18:32:58 they do not document where to put the secret keys for any, github amazon, heroku, etc you can't put the secret key in a repo... Oct 20 18:33:30 seems that is done via travis cli util, I want automated, commit to github, travis builds, pushes apk to github Oct 20 18:45:06 * pfn shrugs Oct 20 18:45:15 looks like travis supports deploying tag releases Oct 20 18:45:49 pfn: yeah I got it all figured out just not where do I put the damn key, and do I have to run travis cli to deploy, which seems to be the case Oct 20 18:46:01 no, travis cli is only for setup Oct 20 18:46:05 pfn: should be able to setup some oauth key between github and travis Oct 20 18:46:21 travis vs circleci who wins Oct 20 18:46:25 pfn: I just came across some stuff talking about setting it in an env variable when running travis cli Oct 20 18:49:43 pfn: it has to be via cli, it would be stupid to commit a oauth token or secret key to a public repo or any repo Oct 20 18:49:56 it would be encrypted, so no Oct 20 18:50:23 https://docs.travis-ci.com/user/deployment/releases Oct 20 18:50:25 for example Oct 20 18:50:30 pfn: couldn't others grab and use it? either way that aspect the key/token is not documented by travis or anywhere just people discussing it and I am sure some use it Oct 20 18:51:05 pfn: ah so the cli is just to setup, idk seems not fully covered Oct 20 18:51:08 https://docs.travis-ci.com/user/encryption-keys Oct 20 18:51:23 pfn: guess I have to install the cli :( Oct 20 18:51:36 you install it for setup Oct 20 18:51:37 that's all Oct 20 18:51:59 pfn: wish they had a better way like via eithers web interface Oct 20 18:52:06 * pfn shrugs Oct 20 18:52:07 cli is preferred Oct 20 18:52:18 pfn: thanks though least I have a better understanding now Oct 20 19:20:18 yay, my travis build is passing again Oct 20 19:20:35 https://travis-ci.org/scala-android/sbt-android/builds/169315450 -- y no1 tell me about sudo:required :-/ Oct 20 19:25:06 Hello, anybody here develop on Linux? Oct 20 19:25:14 what's linux? Oct 20 19:25:56 Cutting-edge version of MacOS. Oct 20 19:35:20 Captain_Haddock: why not just ask your actual question? Oct 20 19:46:52 Napalm|afk: (I did earlier to no reply.) I wanted to know how to check if the emulator was using qemu. And apparently, it is :) Oct 20 19:47:26 It's all like new and shiny at the moment. Very cool :) Oct 20 19:50:52 in before Oct 20 20:23:32 should I be able to see which activity is called in Console when debugging from a phone? Oct 20 20:33:10 > Wages subject to Social Security jump 7.3% in 2017, to $127,200. That’s the largest single-year jump since 1983.; meh Oct 20 21:08:36 What do you use as a placeholder in the XML layout when you will add a fragment programmatically? A FrameLayout? Oct 20 21:09:16 yup Oct 20 21:09:23 s73v3r: thanks Oct 20 21:11:01 do you guys use CountDownTimer() for your uh, count down timer needs? Oct 20 21:11:09 no Oct 20 21:11:18 its kind of shitty Oct 20 21:16:00 what do you use? Oct 20 21:18:30 a Handler, or a thread, depending on my purposes Oct 20 21:38:00 hey, how can I make the background of a progressbar transparent or white? Oct 20 21:58:32 How do you scroll a ScrollView slowly? Do you use an animation? Oct 20 22:18:05 How do I compute the amount scrolling corresponding to scrolling the ScrollView to the bottom? Oct 20 22:19:09 size of the cells * number of cells Oct 20 22:20:38 there is also a scrollToPosition method Oct 20 22:27:24 nintendo switch sounds cool Oct 20 22:30:29 Probably not the best place to sk this, bt I might find someone who knows. Reguarding selinux, does anyone know what I would have to do to keep it happy, as well as SafetyNet, if I wanted to add apps to /system/app and /system/priv-app? Oct 20 22:30:58 #android-root Oct 20 22:57:03 I've found an example of Android documentation admitting to poor Android documentation: "The R.style reference, however, is not well documented and does not thoroughly describe the styles, so viewing the actual source code...": https://developer.android.com/guide/topics/ui/themes.html Oct 20 22:57:11 Is there someone who lives in Canada and find me a job for immigration :) Oct 20 22:58:44 ok, so im completely lost. Ive been trying for an hour to find out how i can compile native C code for my android. I tried using the NDK but the libraries are incomplete. How do I build against the entire arm64 linux source for droid? Oct 20 22:59:05 elisax2e2: Wrong channel Oct 20 22:59:43 whats the right channel? Oct 20 22:59:48 eliasx2e2: if you’re writing an app, you use the NDK. If you’re doing something else, then you are in the wrong channel, and should probably try #android-root Oct 20 22:59:59 As was pointed out a few lines above, #android-root Oct 20 23:00:14 k thnx Oct 20 23:00:15 as well as in the welcome message Oct 20 23:00:29 yup. cool Oct 20 23:03:53 In this case, it's the not-so-welcome message. Oct 20 23:04:14 TacticalJoke: Are you a comedian? :) Oct 20 23:05:43 No he's a funny guy Oct 20 23:05:57 Hi, I need some help, I writing an application that needs to read the device id, I added in AndroidManifest.xml the following permission , however when I run the application I get an exception because the user doesn't have the permission, how can I fix this issue? Oct 20 23:06:31 Yes, whenever I came here, I saw his/her jokes. And they're generally funny. Not george carlin but good jokes. :) Oct 20 23:06:32 CedricBeust: http://s2.quickmeme.com/img/6a/6a2b71136bcf88181344acb60b36b49df566bb2fc1866662cf9b86435a5e66d4.jpg Oct 20 23:06:48 My thought exactly Oct 20 23:06:52 :D Oct 20 23:07:26 soulisson: What does the exception say? I'm guessing it's an Android 6 run-time-permissions thing. Oct 20 23:09:38 Sorry a disconnection issue, don't know if anyone answered my question Oct 20 23:10:04 a funny guy did Oct 20 23:10:08 soulisson: What does the exception say? I'm guessing it's an Android 6 run-time-permissions thing. Oct 20 23:10:37 while (true) { print("soulisson: What does the exception say? I'm guessing it's an Android 6 run-time-permissions thing."); Oct 20 23:10:38 TacticalJoke: getDeviceId: Neither user 10070 nor current process has android.permission.READ_PHONE_STATE. Oct 20 23:11:30 I'm running the application on Android 7 Oct 20 23:11:45 http://stackoverflow.com/questions/32742327/neither-user-10102-nor-current-process-has-android-permission-read-phone-state Oct 20 23:12:58 TacticalJoke: thank you Oct 20 23:14:15 Why did they do that, seemed to me enough to put those permissions in the manifest file, I don't know why they felt the need to add that runtime permission thing Oct 20 23:14:36 It gives users the power to grant some permissions but not all. Oct 20 23:14:50 The previous system was all-or-nothing, which was pretty bad. Oct 20 23:15:09 TacticalJoke: and do I have to do this for each activity? Oct 20 23:16:05 I think it's just before you do the reading, every time. Oct 20 23:16:38 I think once granted, the user won't be asked again. Unsure for how long though Oct 20 23:17:13 Ok, thank you Oct 20 23:17:30 soulisson: Bear this in mind: "The user is always free to revoke the permission, so even if the app used the camera yesterday, it can't assume it still has that permission today." Oct 20 23:17:43 You can revoke via Settings. Oct 20 23:19:01 TacticalJoke: ok, but once a permission is granted for one activity the other activities also get the permission, right? Oct 20 23:19:47 Its by app afaik Oct 20 23:20:00 PixelPerfect: ok, thank you Oct 20 23:20:04 I don't believe so, because (for example) it could be granted and then users revoke and later the second Activity is opened. Oct 20 23:20:17 Well Oct 20 23:20:25 TacticalJoke, this is true Oct 20 23:20:57 You're gonna want to, at the very least, try catch the call for the permission-blocked thing Oct 20 23:21:30 Because a user on 6+ can revoke a permission at any time, or outright deny it initially Oct 20 23:22:09 g00s: how did you go with that bottombar navigation from the support lib? Oct 20 23:23:25 Also I have an another question, I noticed in my application I now have two dex files, is that also a new feature? Oct 20 23:25:53 teasp00n its pretty lacking Oct 20 23:26:40 teasp00n they need to fix saving view state, at minimum, and no ability to set the tab programatically Oct 20 23:26:53 oh really, all driven from xml? Oct 20 23:27:00 don't know why its not the same API as NavigationView, its basically the same thing except horizontal :P Oct 20 23:27:08 lol Oct 20 23:30:27 teasp00n top comment https://www.reddit.com/r/androiddev/comments/58czcd/support_lib_25_with_bottomnavigationview/ Oct 20 23:31:04 i don't expect "tablet mode" though ha Oct 20 23:33:29 teasp00n also doesn't have any kind of scrolling out of the way behavior, but you can scrap that up from someplace else Oct 20 23:34:24 g00s: yeah could probably do that with a coordinator layout right? Oct 20 23:34:31 is that the view that does that... id ont remember Oct 20 23:34:52 yeah like here is some code https://medium.com/@nullthemall/bottomnavigationview-missing-pearls-eaa950f9ad4e Oct 20 23:37:02 What phrasing do y'all use in y'all's "What's New" sections on Google Play? I'm currently using my VCS style (e.g., "Fix " rather than "Fixed " or whatever), but I guess this'll sound weird to noobs. Oct 20 23:37:40 probably use 'fixed' for the reason you gave :p Oct 20 23:38:56 I'm wondering whether noun phrases might be simpler. Rather than "Show web addresses", just "Web addresses". Oct 20 23:39:33 "Fix graph display" --> "Graph corrections". Oct 20 23:39:49 Everything being a "something". Oct 20 23:39:58 TacticalJoke "Various stability and performance improvements" Oct 20 23:40:01 haha Oct 20 23:40:15 Almost nobody puts the effort in. :\ Oct 20 23:40:35 Kindle app always says UX improvements, i can never find them Oct 20 23:40:50 Enjoy the new YouTube UI! < for months Oct 20 23:41:01 I'm already enjoying the damn UI. Or not enjoying it. Oct 20 23:41:07 "Added new analytics" Oct 20 23:41:22 Added moar analytics Oct 20 23:41:29 Added even MOAR analytics Oct 20 23:42:20 Added analytics to our analytics so we can track you while we track you Oct 20 23:42:30 "Reduced user privacy." Oct 20 23:42:51 "Added ransomware." Oct 20 23:42:59 "We now know when you go to the toilet." Oct 20 23:43:01 those are all UX improvements though Oct 20 23:43:17 "More personalized ads!" Oct 20 23:46:57 TacticalJoke the git guys say stuff like "git blame learned how to curse" Oct 20 23:47:03 everything learns :) Oct 20 23:47:16 I'm auditing an android application, I have access to the source code so this is not a big issue, I used tools like dex2jar and baksmali on my dex files, however I wasn't able to get the code for the application's components, are they stored somewhere else? Oct 20 23:48:08 soulisson you have access to the source code, but you weren't able to the the code ... what Oct 20 23:48:34 g00s: Yeah, that's always sounded weird to me. Oct 20 23:49:52 g00s: yes, at first I didn't have the source code, I had to ask the dev for it Oct 20 23:51:03 soulisson: do you know that reverse engineering an application without permission from the copyright holder is a crime? Oct 20 23:51:23 Melatonina: yes, I work for the company, we publish an application every year Oct 20 23:51:46 "update" Oct 20 23:51:56 soulisson you aren't making any sense. so you have the source code. what do you want ? Oct 20 23:52:45 soulisson: yeah, you work for the company... right... Oct 20 23:52:47 soulisson: you want the used libs' source code? Oct 20 23:52:55 Melatonina: yes, I do Oct 20 23:53:53 Wait, this is a thing? https://www.reddit.com/user/androidtoolsbot Oct 20 23:53:55 love how everyone tries to be a police officer Oct 20 23:54:03 shmooz: You wouldn't download a car! Oct 20 23:54:09 I was just wondering if something changed in the latest versions of Android since the code doesn't seem to be in classes.dex classes2.dex, or am I missing something Oct 20 23:54:16 ? Oct 20 23:54:18 yeah, right. They all say it. "I'm not a pirate. I work for the company. Please, I'm innocent! I should not be here" Oct 20 23:54:29 soulisson lol you don't have the source code Oct 20 23:54:38 go back to the dev and get the source code for real this time Oct 20 23:54:43 I'm not a pirate. *attempts to cover wooden leg* Oct 20 23:54:50 g00s: do you need a screen shot? Oct 20 23:55:01 if you had the code, you wouldn’t be asking this Oct 20 23:55:05 I download everything twice! Oct 20 23:55:12 soulisson: what do you mean by "components"? Oct 20 23:55:13 * g00s hears wooden leg clickity-clacks on the deck Oct 20 23:55:21 * TacticalJoke whistles. Oct 20 23:55:39 PetyrBaelish: activities, services, .... Oct 20 23:55:59 soulisson: you mean their instances... Oct 20 23:56:00 the sources for that can be gotten from the sdk Oct 20 23:56:13 Polly says TacticalJoke has wooden leg ! Oct 20 23:57:42 Melatonina: ? Oct 20 23:58:53 soulisson: you said that you don't consider the classes as "component" but their instances. You said it the other day. Now you want the "source code of the components". If you were coherent you should want the memory dump Oct 20 23:59:37 s73v3r: I managed to do smooth scrolling with this code: https://gist.github.com/anonymous/d837527e79dee52a4c8e68e155d8cd56 Oct 21 00:00:44 Melatonina: I consider the classes to be components, I consider the activities, .... as instances of those components Oct 21 00:00:46 TacticalJoke new book, waiting for more reviews https://www.amazon.com/gp/product/0262035189 Oct 21 00:02:08 soulisson: whatever floats your boat Oct 21 00:02:19 sure Oct 21 00:02:43 are you new in this "company"? Oct 21 00:03:01 how can you audit apps when you don't even understand how to program? Oct 21 00:03:14 not even basic OO terminology... Oct 21 00:03:19 Melatonina: no, usually I audit web apps, and firewall rules Oct 21 00:03:32 pfn: I understand OOP terminology Oct 21 00:03:43 not according to your questions from the past week Oct 21 00:04:07 soulisson here is an arctic hare. come back when you have a concrete question http://i.imgur.com/E8kzn6e.jpg Oct 21 00:04:52 (that flooff in the far back looks like TacticalJoke incognito) Oct 21 00:05:38 They look warmer than I do. Oct 21 00:05:47 and warmer than me Oct 21 00:05:58 pfn: I just asked about Android Terminology, no OOP terminology Oct 21 00:06:06 soulisson: I am your friend, soulisson, but you have to admit that you have communication problems Oct 21 00:06:26 Melatonina: yes, as I said english is not my first/native language Oct 21 00:06:26 soulisson: I'm glad you are in this channel, though Oct 21 00:06:51 soulisson: ah ok. Are you from northern Europe? Oct 21 00:07:01 Melatonina: no Oct 21 00:07:16 it's not even my second language Oct 21 00:07:54 cool Oct 21 00:08:34 soulisson, looked nothing like android terminology from the questions before Oct 21 00:08:50 so yes, I have communications problems in english Oct 21 00:09:03 soulisson: ok. You will improve Oct 21 00:09:21 soulisson: how much java and android dev do you know? Oct 21 00:09:35 java shmava ! Oct 21 00:09:55 yeah I prefer C any day but hey Oct 21 00:10:45 shmooz: I'm not a dev, I mainly audit applications, and handle security for my employer, I know enough Java/Android to write small applications, probably not enough to write the next big application worth billions Oct 21 00:11:08 Hey so how plausible would it be to create an app that could mimic the bluetooth HID descriptor of another device? Oct 21 00:11:12 Java Guava. Oct 21 00:12:16 how does one audit applications if they aren't developers O.o Oct 21 00:12:31 at least developers Oct 21 00:13:08 since we are talking about code, none of this makes sense Oct 21 00:13:16 g00s: it's like for "writer developers" or "tester developer". They can program but are not as much as full developer Oct 21 00:13:19 g00s: I audit security only, not performance or style Oct 21 00:13:33 g00s: reading is easier than writing. Oct 21 00:13:42 soulisson: right? Oct 21 00:14:13 Melatonina: yes, writing requires creativity, for auditing it's more analysis skills, and attention to details Oct 21 00:15:08 and knoweldge about security issues, that's all Oct 21 00:15:13 soulisson: cool job Oct 21 00:15:48 Melatonina: it really depends on the environment you're working in Oct 21 00:16:25 soulisson: I imagine auditing spaghetti code or without the cooperation of the original developers may be a problem Oct 21 00:16:44 Melatonina: usually security and other branches of the organization must be separated but this is not the case where I work for Oct 21 00:18:18 soulisson: anyway, making sense of your question of today is a bit difficult, honestly. Don't get angry with people here if they didn't take them seriously. Oct 21 00:18:26 soulisson: I'm sorry for the misunderstandings Oct 21 00:18:35 Melatonina: no problem Oct 21 00:18:44 I'm not angry at people Oct 21 00:19:41 Melatonina: to give you an example, two years ago we still had a windows 2000 server running :) Oct 21 00:20:14 and reachable from internet Oct 21 00:21:32 So. Today I factored out the code for Auth0 authorization session management so that my applications don't require a login if the user logged in recently and factored out the log views and added smooth scrolling. Time to sleep. Good night, everybody. Oct 21 00:21:44 Good night, soulisson Oct 21 00:21:51 good night Oct 21 00:33:13 Is anyone here experienced with Bluetooth? Oct 21 00:46:05 you can't emulate bluetooth profiles from an app Oct 21 00:54:53 Hello =) Oct 21 00:57:10 Is anyone here? Oct 21 00:57:28 You have to say the secret passcode Oct 21 00:57:45 "the secret passcode" Oct 21 00:57:55 Am I good now =P =) Oct 21 00:58:04 No that's not it, come back later and try again Oct 21 00:58:18 But I did exactly what you asked =( Oct 21 00:58:44 but ok Oct 21 00:59:10 I'm back, and it's later =P Oct 21 00:59:34 You still have 4m 09s on the cooldown timer until your allowed to try again Oct 21 00:59:41 ChaosNemisis, just ask your question, if someone knows and wants to answer you will see Oct 21 00:59:47 You just said "later" =P Oct 21 01:00:37 Haha ok. I was just trying to figure out whether I would be crazy to try to make an app that tells a bluetooth device that it is not a phone but another type of device Oct 21 01:01:37 Like, the app runs on your phone, and your phone tells the bluetooth device that it's not a phone but another type of device Oct 21 01:02:16 So that the bluetooth device, which doesn't normally accept phones, will pair with the phone, thinking that it is the correct device type Oct 21 01:04:41 If nobody knows about this topic I'm going to go ahead and assume that I'm not crazy and start doing it Oct 21 01:04:48 * g00s casts wary eye back at Melatonina Oct 21 01:09:10 On Google Play, is there a way to upload 'mapping.txt' at the same time as submitting an update? It seems that I have to wait till my update is published before I can do this. Oct 21 01:12:21 Never mind -- I can do it while it's being processed. Wasn't working before; I hit a glitch on Google Play. Oct 21 01:12:42 It's weird that we can't submit 'mapping.txt' in the same screen, though. Oct 21 01:13:45 Same as the 'upload APK' one, I mean. Oct 21 01:14:05 TacticalJoke here is one .. "Allo 2.0 is here. Now with Splash screen .. " Oct 21 01:15:03 bah @ splash screen Oct 21 01:15:14 Oh wow, just what I've always not wanted. Oct 21 01:16:16 I read that app updates are processed by humans now. Must be a boring job. Oct 21 01:22:32 I hate that splash screen when I start the YouTube app. Oct 21 01:22:51 Especially because I can't click Back. Oct 21 01:23:24 Why not? I just hit the back button next to the home button Oct 21 01:24:36 Well, clicking it does nothing. Oct 21 01:24:53 For me and a bunch of people who've reported the same on Reddit. Oct 21 01:24:57 hm, odd. Oct 21 01:25:47 So.... Does anyone know if there is a way to capture all incoming/outgoing bluetooth packets on windows? I can't seem to find a way Oct 21 01:27:08 Because I have software on my pc that communicates with the device I want my phone to mimic and I need to figure out what packets it needs to send/recieve to identify correctly Oct 21 01:30:18 hmm, pixel XL shipped already but normal pixel hasn't yet, meh Oct 21 01:30:42 phone cannot emulate an arbitrary Bluetooth device, full stop. Oct 21 01:31:30 Oh, so... Not even if there's a way to hijack the bluetooth adaptor and send exactly the packets you want to send and no mroe and no less? Oct 21 01:34:07 Like, I do know enough to say that it's theoretically possible for a phone to send the correct series of electrical impulses to send the correct bits of information on the right frequency... But you're saying that the android OS completely prevents an app from doing so? Oct 21 01:38:49 I'm not against rooting my device if I have to, pfn... Oct 21 02:11:25 might as well use any Linux pc with Bluetooth at that point Oct 21 02:35:28 The Pi3 has a very flexible adapter Oct 21 02:47:52 "China Overtakes the US in iOS App Store Revenue " Oct 21 02:50:46 Dagmar was planning on getting one, waiting for aosp support **** ENDING LOGGING AT Fri Oct 21 02:59:58 2016