**** BEGIN LOGGING AT Tue Sep 13 02:59:58 2016 Sep 13 03:04:52 get a new phone Sep 13 03:10:59 Oh, pfn wants to give out phones for free again! Sep 13 03:11:04 What an occasion Sep 13 03:43:19 justJanne i wonder after the Pixels are released, if google will still have some kind of low-cost reference design for developers ... Sep 13 03:44:25 reference design? Sep 13 03:44:25 i'm pissed that google has not released something like an Android One phone in the US Sep 13 03:45:23 So both of the pixel phones are going to be expensive? Sep 13 03:45:56 we don't know yet, but with qualcomm 821s + competing with iPhone 7 ... presumably Sep 13 03:46:28 "competing" Sep 13 03:46:32 "competing" Sep 13 03:46:33 Ha! Sep 13 03:47:17 lol if they keep the headphone jack probably some people would move over Sep 13 03:47:30 I wonder when anyone’s going to release an SoC that comes close to Apple’s Soc in terms of performance. Sep 13 03:47:40 well Sep 13 03:47:41 oh yeah their SoC is a beast Sep 13 03:47:47 we'll never know Sep 13 03:47:54 because they are closed source whores :) Sep 13 03:48:13 huh Sep 13 03:49:19 i wish google kept moto Sep 13 03:49:46 yeah, keeping open wounds openly hemorrhaging money is great Sep 13 03:50:52 sounds like most google projects :) Sep 13 03:52:42 <_genuser_> anybody else hate the nav drawer? Sep 13 03:52:55 no Sep 13 03:53:02 <_genuser_> as I create simple plain UIs and decorate them with hint of color here and there, I'm kinda starting to hate my nav drawer. Sep 13 03:53:04 Well , I hate some things about it Sep 13 03:53:07 but hate is a strong word. Sep 13 03:53:07 <_genuser_> it's looking "slightly" bulky. Sep 13 03:53:24 _genuser_: recently I replaced a whole drawer with a viewpager Sep 13 03:53:46 <_genuser_> tx: ok, so drawer pops out and you're swiping left and right? Sep 13 03:53:47 (inside a nav drawer to give it the animations / size / behavior ) Sep 13 03:53:54 _genuser_ did you check out Google+, etc they still have it but for unimportant things like settings. bottom nav for everything else Sep 13 03:53:59 Not swiping, the moving is controlled programatically Sep 13 03:54:13 the pager is just to make the menu multi-level Sep 13 03:54:15 <_genuser_> g00s: bottom nav? Sep 13 03:54:21 so you tap on the root menu and it swipes to another Sep 13 03:54:59 _genuser_ https://material.google.com/components/bottom-navigation.html Sep 13 03:55:01 <_genuser_> g00s: so bottom nav is just a fancy word for tabs at the bottom. Sep 13 03:55:10 _genuser_ no they behave different Sep 13 03:55:30 they behave exactly the way they told you not to do things with tabs lol Sep 13 03:55:39 Is there anything similar to android:elevation pre api 21? Sep 13 03:55:47 Faizan no Sep 13 03:55:57 ah okay so would have to create a custom style for my view Sep 13 03:56:00 <_genuser_> g00s: I didn't read up on what not to do with tabs either. Sep 13 03:56:08 Faizan: you need to make it yaself. Sep 13 03:56:13 gotcha thanks Sep 13 03:56:18 Faizan you can look at the CardView sources Sep 13 03:56:25 Faizan: it's not too bad, just make a drawable and apply a shadow Sep 13 03:56:26 <_genuser_> I guess I'm not too fond of Google trying to hard to be apple but failing at it so creating new rules of UI design every other month. Sep 13 03:56:26 you'll need a shadow bg drawable Sep 13 03:56:29 http://stackoverflow.com/questions/21211870/android-view-shadow Sep 13 03:56:31 here :) Sep 13 03:56:35 okay, thanks for the sources guys Sep 13 03:56:55 sorry, I think we over-helped lol Sep 13 03:56:57 what's the "guidelines" on shadows on buttons? Sep 13 03:57:00 Faizan but hope you don't need to use selectableItemBackground or something like that :D Sep 13 03:57:03 nah that was really helpful of you tx Sep 13 03:57:16 <_genuser_> g00s: having said that I'm liking how material design is picking up and I hope google will quit creating new UI rules and focus on letting this one become standard. Sep 13 03:57:26 nope g00s, nothing selectable :D Sep 13 03:57:29 Google is an angsty teen Sep 13 03:57:33 never gonna happen. Sep 13 03:57:47 they just got the FAB working in support lib Sep 13 03:58:00 and even then, anchor with CoordinatorLayout just broke again Sep 13 03:58:05 <_genuser_> tx: I kinda feel that too, google is too driven by "project of the week" mentality. 20% time is one thing but constantly pushing out some new project into prod it's a little overwhelming Sep 13 03:58:17 g00s: to make it worse, vendor mods break things too Sep 13 03:58:20 <_genuser_> everytime I take go to youtube, the UI is all b0rked. Sep 13 03:58:33 <_genuser_> nothing is where it should be and for what? to re-arrange my favorites? Just leave the damn thing alone. Sep 13 03:58:35 i guess YouTube got bottom nav too Sep 13 03:58:36 I usually dev on samsungs Sep 13 03:58:38 ah android:background="@android:drawable/dialog_holo_light_frame" is a neat idea, but is there any way to have a background color different from the default, or no? Sep 13 03:58:42 and there's usually something broken on it Sep 13 03:58:42 well, i still see the old version Sep 13 03:58:57 Faizan: yes! copy that drawable and edit it Sep 13 03:59:09 good idea! Sep 13 03:59:17 i forgot everything is available to me lol Sep 13 03:59:23 heh Sep 13 03:59:44 <_genuser_> bottom nav seems too much like android 1.0 from the old days, to be honest. Sep 13 03:59:57 <_genuser_> it seems like somebody found that project in an old repo and recompiled it to show tabs at the bottom. Sep 13 04:00:01 i don't like it over the nav bar Sep 13 04:00:21 <_genuser_> g00s: nav bar is which one (sorry I'm losing tarck here, not trolling). Sep 13 04:00:32 back, home, recents Sep 13 04:00:49 <_genuser_> ah, the software based button replacement. Sep 13 04:00:52 does Android 7 let you customize the nav bar ? Sep 13 04:00:58 God damn here's me trying to find that file in the sdk data folders, and I just remembered I can add that line and control click on android studio.. Sep 13 04:01:00 thought i read something about that Sep 13 04:01:03 there's a cool story for you guys Sep 13 04:01:31 Faizan sell it to Disney Sep 13 04:01:52 <_genuser_> g00s: I guess the option of configurability is what's kinda turning me off android. Sep 13 04:02:26 _genuser_ the lack of, or too much ? Sep 13 04:02:41 i leave stuff @ defaults, disable junk i don't use Sep 13 04:02:46 <_genuser_> the dev side of me loves it. but since most mobile apps are starting to follow a "somewhat" uniform form, it's hard when google breaks away from it. or provides too much of a choice so each dev does it differently. Sep 13 04:03:11 Could someone tell me what the difference is between something like @android:drawable/dialog_holo_light_frame and @drawable/... Sep 13 04:03:16 Material design has been veey successful. Sep 13 04:03:25 <_genuser_> having an aapl phone for work, I just love how each app looks the same. they behave the same. the lack of options is what forces everything to be the same and helps quick acclamation (sp?) Sep 13 04:03:29 Faizan: @android denotes a built-in resource Sep 13 04:03:30 Is the former using android sdk's built in resources, and the latter using my owwn? Sep 13 04:03:32 part of the android API Sep 13 04:03:34 yes Sep 13 04:03:37 okay awesomer Sep 13 04:03:39 awesome* Sep 13 04:03:39 <_genuser_> tx: yep, I'm hoping it picks up and google quit making changes to it. Sep 13 04:04:03 Faizan: try to avoid using them as they might disappear on future APIs. Sep 13 04:04:18 Yeah i'm just including it so i can open the source file to copy and paste Sep 13 04:04:24 gr8. ;) Sep 13 04:04:30 so its generally best to avoid/recreate them yourself? Sep 13 04:04:53 they are not going to disappear Sep 13 04:05:11 why is that Sep 13 04:05:13 <_genuser_> g00s: ok, honestly reading up on it, nav bar does what I thought tabs would do. but your previous comment leads me to believe I didn't realize tabs had a different purpose. :) Sep 13 04:05:57 there are subtle differences about bottom nav / tab behavior Sep 13 04:06:07 They're allowed to deprecate and eventually remove resources just as they can with code. Sep 13 04:06:09 its not just being on the top or bottom Sep 13 04:06:18 <_genuser_> g00s: so you're saying you prefer navbar of nav drawer? Sep 13 04:06:22 tx: when you mean built in do you mean installed with the platform? Sep 13 04:06:33 i.e. if I download android 22 build tools or w.e Sep 13 04:06:37 _genuser_ the nav bar is part of android Sep 13 04:06:43 <_genuser_> g00s: I'm thinking I might do away with nav drawer then because I'm sure apple version of my app would probably look like it has "navbar" Sep 13 04:07:01 iOS apps have something like nav drawer too Sep 13 04:07:02 <_genuser_> g00s: sorry, I meant navbar _over_ nav drawer Sep 13 04:07:24 <_genuser_> g00s: so my question was "do you prefer to have navbar in an app instead of a nav drawer" Sep 13 04:07:29 <_genuser_> as a user. Sep 13 04:07:35 except the main content area slides over, revealing left and right. a little different Sep 13 04:07:39 tx, they are not deprecated, and are not going to. be any time soon Sep 13 04:07:50 <_genuser_> yeah, I see facebook app has that nav drawer thing on apple too. Sep 13 04:07:51 I didn't say it was. Sep 13 04:07:56 tx, resources from cupcake are still available Sep 13 04:07:57 _genuser_ honestly my opinion doesn't matter Sep 13 04:08:02 i would have both Sep 13 04:08:13 not using framework for fear of them. becoming deprecated is a bad reason Sep 13 04:08:17 put overflow shit in your nav drawer, put important stuff in bottom nav Sep 13 04:08:26 <_genuser_> g00s: I understand. I think the more users I ask and the more I hear about one way or the other, the better the user experience will be for my app. Sep 13 04:08:47 I dislike using resources from older APIs if I am just say, borrowing them for a shadow. Sep 13 04:08:48 <_genuser_> g00s: I guess I have a bit of a bad design at the moment then. Sep 13 04:08:55 google doesn't have anything in the support libs for it yet .. so you;ll need a 3rd party Sep 13 04:09:29 also heh I forgot how young android is Sep 13 04:09:36 1.1 was released early 2009! Sep 13 04:09:51 <_genuser_> g00s: I have nav drawer showing 3 main items selectable. when you select one, the main view shows the content in a fragment using tabs Sep 13 04:10:06 oh Sep 13 04:10:13 <_genuser_> g00s: each item from nav drawer can lead to different number of tabs on the main activity hosted fragment. Sep 13 04:10:20 yeah if you want 2 levels like that, use nav drawer + tabs Sep 13 04:10:53 _genuser_ w/o seeing your app i can't say any more ;) Sep 13 04:10:56 <_genuser_> g00s: ok, so doesn't sound stupid to you as a user? (disregarding what I'm actually grouping, just the thought of content being grouped like that). Sep 13 04:10:56 * g00s runs Sep 13 04:11:20 <_genuser_> g00s: haha, completely understand. I appreciate your input. not tryng to make you design it for me. Sep 13 04:11:22 no, its fine to use nav drawer to swap out a screen which has tabs Sep 13 04:11:39 <_genuser_> once we design something it makes sense to us and it's easier to complicate it. but a new user might be completely lost. Sep 13 04:12:23 <_genuser_> fromteh navbar link, I like how they can disappear allowing more immersive experience. I'm gonna remember this from my upcoming projects. Sep 13 04:12:28 _genuser_ go to Play Books -> My library Sep 13 04:13:17 <_genuser_> g00s: ah, I'll check it out now. Sep 13 04:13:44 <_genuser_> g00s: but to be honest, google apps are the worst designed, in my opinion. Even tho they came up with material design, which I think it a really good thing. Sep 13 04:13:50 they have 3 tabs (all books, uploads, purchases) Sep 13 04:14:21 _genuser_ funny thing that :D Sep 13 04:14:29 <_genuser_> g00s: hmm,my "my library" only has "all books" tab, haha. Sep 13 04:14:35 <_genuser_> see what I mean by non-uniform experience. Sep 13 04:15:09 <_genuser_> the sliding horizontal rows are the worst. I really dislike those. Sep 13 04:15:18 <_genuser_> but for books, I use Kindle. Sep 13 04:15:21 oh like iosched Sep 13 04:15:32 <_genuser_> for google playstore, I just search for an app, and leave the rest of the mess alone. Sep 13 04:15:33 i hate the kindle app, its a piece of shit Sep 13 04:15:46 still showing advertisements for purchased books ... Sep 13 04:15:58 <_genuser_> g00s: it has kinda turned into Play Book like thing lately. Sep 13 04:16:24 when i buy a book, i don't want to see advertisements while reading said book Sep 13 04:16:35 i hate all tech companies Sep 13 04:16:38 <_genuser_> what I dislike more is the seemingly random jumps from a specific app to play store. Sep 13 04:16:43 give me my commodore 64 back, fuckers Sep 13 04:16:52 <_genuser_> so you're in Play Book, and shop for books takes you to Play Store. what kinda dumb thing is that? Sep 13 04:17:13 <_genuser_> same for music, or video. why even make a specific app for each? Sep 13 04:17:22 <_genuser_> just put all teh content in the play store app. Sep 13 04:17:25 because more icons = more saturation Sep 13 04:17:37 <_genuser_> and have a My Books under Books. And My Music under mysuc, Sep 13 04:17:58 <_genuser_> then making material design to say "DO"NT DO THIS!!" Sep 13 04:18:05 <_genuser_> and then doing exactly that in one of their own apps. Sep 13 04:18:29 <_genuser_> or releasing material libs that only do half of what google's own apps do. so there's tons of github clones trying to accomplish that, lol. Sep 13 04:18:37 There guidelines, not rules Sep 13 04:18:47 They're* Sep 13 04:19:14 <_genuser_> orbyt_: typically an advocate for a standard sticks to that standard and tries to promote that every chance they get. Sep 13 04:19:35 <_genuser_> they don't author the standard, and then ignore it themselves. it makes for a slow adoption. Sep 13 04:19:50 <_genuser_> otherwise, agreed, they're just guidelines. Sep 13 04:19:51 They dont ignore, read what I just wrote^ Sep 13 04:20:09 <_genuser_> I did read what you wrote. and what I wrote back doesn't ignore what you said. Sep 13 04:20:40 <_genuser_> ok, time to focus on app design. :) Sep 13 04:21:22 <_genuser_> I'm at a point where I'm wrestling with laying out the data but some of the technically harder stuff has been solved. this is where I lose interest in most of my projects. Sep 13 04:23:12 i lose interest when its time to start testing on samsung devices Sep 13 04:23:26 <_genuser_> g00s: hmm, my only test devices are samsung. Sep 13 04:23:43 <_genuser_> all of my mine and family's. I wonder if I get it working on those, if it will work on everything. Sep 13 04:24:04 <_genuser_> well my mom does have the nexus. Sep 13 04:24:12 if i could, i'd just change Play to restrict to a few devices like nexus Sep 13 04:24:23 would like whitelist over blacklist Sep 13 04:24:40 'it works on nexus, the rest of you .. good luck!" Sep 13 04:24:45 <_genuser_> wouldn't you lose users then? or do you not care about that Sep 13 04:24:53 don't care Sep 13 04:26:01 <_genuser_> g00s: tbh, my "social app" would have been better off being code just for apple and targeted at teeny boppers. Sep 13 04:26:06 <_genuser_> but android is what I know so... Sep 13 04:26:22 <_genuser_> know = "know a little" Sep 13 04:28:13 _genuser_ from a couple of weeks ago "Salesforce will only support Nexus and Samsung Galaxy phones to avoid Android fragmentation" Sep 13 04:28:25 i dont use any of their stuff, but thought it was funny :D Sep 13 04:28:49 <_genuser_> that's a big vendor to lock everything else out. or at least to ignore those users. Sep 13 04:29:08 <_genuser_> but then again, I doubt people like facebook, snapchat will ignore anyone. their goal is to get more users. Sep 13 04:30:03 <_genuser_> hmm, my app's a mess looking at this material design reference again. Sep 13 04:30:22 yup. zuckerborg wants to supply internet to wherever, not because its good, but to get every cursed soul into that platform Sep 13 04:31:07 earlier this year, India was like, "yeah go away" Sep 13 04:31:24 <_genuser_> it's interesting people are spending so much on user acquisition. Sep 13 04:31:53 Facebook claimed that they did it purely out of altruistic reasons. They could easily have proved that by removing Facebook from the list of free services... Sep 13 04:32:02 The fact that they didn't proves the point, I think. Sep 13 04:32:45 Facebook == Google == NSA, so no wonder Sep 13 04:33:01 <_genuser_> so all these "flat button" "raised button", etc. etc. don't these just have a pre-defined style? Or are you supposed to write your own based on material design documentation? Sep 13 04:34:32 _genuser_ they have styles Sep 13 04:34:54 you should have a text editor up, at all times, with android styles / attrs / themes xmls open Sep 13 04:34:59 so you can search quick Sep 13 04:35:39 and appcompat provides some of them too, for convenience Sep 13 04:36:09 <_genuser_> g00s: android styles, etc. etc. where do I open them? just ctrl-b on something and use that file? Sep 13 04:36:11 Hey g00s:) Sep 13 04:37:11 hi perlsyntax Sep 13 04:37:19 _genuser_ they are in your SDK install ... Sep 13 04:37:32 <_genuser_> g00s: hmm, I'm really confused now. I have a simple button theme I've been using. but the material design looks nice. because it's clean and designed well. Sep 13 04:37:36 <_genuser_> can't decide which to stick with. Sep 13 04:37:42 now, appcompat styles .. i don't think they are there any more , i think you need to get that from repo Sep 13 04:38:00 <_genuser_> ok, I'll find the files in sdk intall. Sep 13 04:38:06 after they got rid of option to have support library - you only get m2 repo now Sep 13 04:38:57 <_genuser_> so it most of the material deisng stuff already coded in one of the libs in the SDK? Sep 13 04:39:05 yeah they only have 'support repository' Sep 13 04:39:13 <_genuser_> I know snackbar and floating buttons for example are already there by default in a template project. Sep 13 04:39:41 <_genuser_> so I'm curious if that library has all of the material design UI stuff like switch buttons, etc. etc. or just the few. Sep 13 04:46:02 <_genuser_> g00s: one quick question. nav drawer selects item X. subitems of X are loaded into the viewpager on main activity. Uses FragmentActivity for each Page. For mainactivity to access UI elements on that... should I just store references to the loaded fragment? Or is there's a better way to handle all that? Sep 13 04:47:08 you can't use FragmentActivity for Pages in ViewPager ... Sep 13 04:47:40 <_genuser_> Fragment sorry. Sep 13 04:48:11 Anyone know how to get the Play Store on the sdk's emulator? Sep 13 04:48:27 <_genuser_> using a contentfragment extends fragment{ /* stuff */ public static ContentFragment newInstance(int TabNumber){ /* create fragment */ } Sep 13 04:49:13 <_genuser_> g00s: so basically viewpager has the main selected page and there's a fragment on it. and I'm thinking if I should have just stored the reference to it when creating it, or can I later get the ref programmatically or something, etc. Sep 13 04:52:53 dont try to store references to fragments in the viewpager, its bad Sep 13 04:53:00 * g00s wanders off Sep 13 04:53:12 <_genuser_> ok, thanks. I'll think it thru a bit more. and google more. Sep 13 04:57:50 https://www.classaction.com/news/exploding-galaxy-edge-s7-causes-3rd-degree-burns-man/ Sep 13 04:57:59 Jesus, the phone's an IED :O Sep 13 04:58:41 <_genuser_> so drop a few of these of iraq along with free calling plan? Sep 13 04:58:43 <_genuser_> then call them, lol. Sep 13 04:58:50 <_genuser_> bastards, take this! Sep 13 04:59:02 <_genuser_> *of=over Sep 13 04:59:32 _genuser_: hella racist and ignorant comment, bro... Sep 13 05:00:13 <_genuser_> my joke (bad?) was just about dropping them over warzone. not over people of any given ethnic background. Sep 13 05:00:52 <_genuser_> so hopefully that clarifies that there wasn't any racist intent. just a joke based on the word "IED" that you mentioned. Sep 13 05:01:15 I've seen memes to that effect going around this week... Sep 13 05:01:19 Anyway, I thought the exploding thing was a fizz or something Sep 13 05:01:42 "Sir, we're out of grenades!" "OK soldier, plug in the Note 7 and throw that!" Sep 13 05:02:24 Leeds maybe NK didn't detonate nuke after all ... Sep 13 05:02:42 Though, Mr. Ramirez will be a rich man after he finishes suing Samsung Sep 13 05:02:47 <_genuser_> I'm using a cheap galaxy alpha Sep 13 05:02:58 VerbalKint: Islam isn't a race. It's comprised of many races. Sep 13 05:03:21 piousminion: X_X Sep 13 05:03:46 Anyway, not in the mood for politics this morning Sep 13 05:04:55 Wonder how fast those burns will heal and if the scars will be noticeable because if the damage is minimal in the long run and if it gets me millions of dollars of cash from suing Samsung, I want an exploding phone too :D Sep 13 05:06:16 "The attorneys hope to get Ramirez “in excess of $15,000”"? The fuck? I thought you'd get millions :O Sep 13 05:06:50 surprisingly no, unless it has an effect on your career Sep 13 05:06:51 VerbalKint: That's the monety for the lawyers. Sep 13 05:07:08 loke: oh Sep 13 05:12:22 I guess I'm going back to Genymotion. Shame you can't get play store on 1st party emu. :/ Sep 13 05:14:35 Quick question: those of you who are freelancers, do you do your own design or do you acquire designers for your projects? Sep 13 05:27:15 Great, Genymotion can't find my vbox install. :( Sep 13 05:27:46 piousminion screw genymotion, use avd Sep 13 05:28:16 Afzal: I'd love to, but I can't figure out how to get the play store on it. Sep 13 05:28:23 ah Sep 13 05:28:34 there's play store in geny motion? Sep 13 05:28:56 <_genuser_> hmm, sounds like I'm mis-using cards in my app. Sep 13 05:29:16 <_genuser_> I'm using them for the cool UI factor, but that's not what material design doc says they're for. Sep 13 05:29:25 Afzal: Not by default, but you can easily flash a zip that contains it. Sep 13 05:29:53 hm Sep 13 05:30:17 _genuser_ I'm gonna make my custom snackbar completely going away from material spec Sep 13 05:30:39 <_genuser_> Afzal: oh? not liking the default implementation by google? Sep 13 05:31:03 screw that, I don't know why they even bother making those classes final when they always come around to implement more advanced things that they restricted from implementing Sep 13 05:31:49 nah, I want to use the Snackbar as a bluetooth status sort of thing, to disconnect, scan, connect, etc, and bottom sheet to choose the scanned devices Sep 13 05:32:20 but I want to use the same snackbar instance, don't like the queued dismiss/show behavior Sep 13 05:32:45 <_genuser_> one of the biggest problems, I think was making the material design a spec only. Sep 13 05:33:05 <_genuser_> they should have released an implementation of everything so each user isn't left to make one on their own. Sep 13 05:33:11 Any channels on this server I can go to for app design? Sep 13 05:33:35 <_genuser_> each person implements it slightly differently from someone else who implements another component of material design. Sep 13 05:33:39 really struggling with designing my main screen activity Sep 13 05:34:11 <_genuser_> and material design itself is really clean and nice looking. Well adjusted padding, and margins. would be nice if you can hit the ground running with it instead of fishign for implementations. Sep 13 05:34:34 Faizan: I'm just starting freelacing and have done my own design, but it looks amateurish tbh Sep 13 05:34:56 Yeah exactly the same with me Sep 13 05:35:16 I spend ages refining the smallest things and would prefer to just pay someone to design one screen for me Sep 13 05:35:56 <_genuser_> I know what you mean. I change padding, relaunch (build, install apk on device), navigate to the activity, and repeat the whoel process Sep 13 05:36:13 Faizan: mind PM'ing me a screenshot? Sep 13 05:36:19 oh Sep 13 05:36:19 god Sep 13 05:36:22 hold on Sep 13 05:36:32 <_genuser_> the AS widget designer is very nice. Help see a lot of the layout right there. but somethings can only be seen in action. Sep 13 05:40:30 <_genuser_> oh wait, Material Design is called a "design language". Sep 13 05:40:35 what Sep 13 05:43:09 _genuser_ don't even start about the different layouts lol, phone layout, tablet layout, desktop layout Sep 13 05:45:19 tv layout Sep 13 05:45:54 saying that, android tv boxes aren't that common Sep 13 05:45:58 atleast here in uk Sep 13 05:48:11 not anywhere Sep 13 06:10:08 How come I can check if the device has internet access through ConnectivityManager without the ACCESS_NETWORK_STATE permission? Sep 13 06:10:36 Every google search says that it's needed and I put it in there just to be sure, but now I removed it and it works without it Sep 13 06:40:24 Ugh, no matter what fonts I choose, they all look like crap Sep 13 06:42:00 check out proggy fonts Sep 13 06:43:26 squ: talking about fonts for my app Sep 13 06:43:51 find designer Sep 13 06:43:59 stop doing design yourself Sep 13 06:44:03 squ: I am the designer :P Sep 13 06:44:11 find better designer :P Sep 13 06:44:13 I saw your design Sep 13 06:44:22 squ: latest one? Sep 13 06:45:03 squ: and I know that it sucks, but it's passable and I'm fine with that Sep 13 06:45:34 then quit bothering us Sep 13 06:46:11 squ: now that I know that I'm bothering you, I won't stop yakking :P Sep 13 06:59:58 #EliteBNC Sep 13 07:09:41 I have the problem that mBaseView is null in this line: mBaseView = getLayoutInflater().inflate(R.layout.main_activity_layout, null); I checked that the resource main_activity_layout is part of the apk, but for some reason the inflation returns null. With maven build this line worked fine, with gradle it fails. Any ideas how to fix it? Sep 13 07:16:05 Where can I see the parameters required for an API call for each scope? Sep 13 07:16:19 It seems like the ids don't match Sep 13 07:16:26 The id of the layout during debug does not match the on in R Sep 13 07:17:57 Maybe because I have multiple apks using the same ids Sep 13 07:19:59 Or is there a way for me to add another scope to an existing token? Sep 13 07:25:56 <_genuser_> lol, I created a java class that extends itself (because I used refactor feature and didn't read the declaration). Sep 13 07:26:01 <_genuser_> crashed AS Sep 13 07:31:59 Looks like this bug https://code.google.com/p/android/issues/detail?id=71233 S: Sep 13 07:42:05 Swap parameters in AS with Alt+Ctrl+Shift+Left/Right, it's amazing Sep 13 08:08:56 <_genuser_> dang callbacks. there's a callback in every freaking namespace. makes it harder to add my own. Sep 13 08:09:20 I have htc desire 820 dual sim(non root). I was using chrome and suddenly the phone hung, rebooted and stuck into loop. I removed SIM, sd card and rebooted, it worked. I disabled chrome and used some other apps , everything was fine. Then afger sometime when I tried unlocking screen phone was OFF. Now its not turning ON, I tried recovery reboot, factory reset, but it just goes into logo and stay there . Any suggestions? I am on lin Sep 13 08:11:59 gulzar: I assume it is not standard rom Sep 13 08:12:18 Marlinski: its orginial, stock , HTC 6.0 ROM Sep 13 08:12:46 gulzar: I would suggest posting on xda forums :) Sep 13 08:13:17 Marlinski: XDA for this model are as good as dead. Similar proplem was posted a month ago but no reply Sep 13 08:14:05 any general guess from experience , what might be the problem? Sep 13 08:14:15 even the orginial recovery opetions are failing Sep 13 08:15:12 gulzar: can you still have access to the recovery menu ? Sep 13 08:15:22 Marlinski: yes Sep 13 08:16:04 so you can still flash partitions with fastboot Sep 13 08:16:46 will check again if such option is there Sep 13 08:17:28 fastboot from computer side Sep 13 08:17:35 it allows you to flash some partitions Sep 13 08:17:51 I guess you already tried to wipe dalvik cache ? Sep 13 08:18:49 the options in recovery are: 1) FASTBOOT 2)RECOVERY 3) SIMLOCK 4)CHECK SMARTSD 5) IMAGE SRC 6) SHOW BARCODE Sep 13 08:19:11 Marlinski: on older phone wiping cache used to solve problems Sep 13 08:19:22 its art bot dalvik Sep 13 08:19:26 *not Sep 13 08:19:43 no option to format partitions Sep 13 08:19:49 if you connect it to your pc what does fastboot command tells you ? Sep 13 08:20:03 fastboot devices Sep 13 08:21:22 (fastboot is a utility program that runs on the PC, like adb) Sep 13 08:22:03 yes its isntalled Sep 13 08:22:11 nothing, no output Sep 13 08:22:29 go into fastboot mode and try again Sep 13 08:22:43 I mean on the android go into fastboot mode, and try again fastboot devices on the pc Sep 13 08:22:50 SH4AVYC00903 fastboot Sep 13 08:22:57 ok try fastboot erase cache Sep 13 08:23:28 done Sep 13 08:23:34 though it is not the dalvik cache (which is i /data/dalvik-cache) it might just work Sep 13 08:23:56 so reboot? Sep 13 08:24:01 yes try Sep 13 08:24:13 if it doesn't work and you really are stuck in a boot loop, then you'll have to spend some time to fix it Sep 13 08:24:23 it will probably require flashing the recovery with a custom one Sep 13 08:24:40 but every device is different, some are more painful than others, no real recipe Sep 13 08:24:53 for that I have to unlock bootloader, then flash the recovery Sep 13 08:24:54 :( Sep 13 08:25:01 yeah something like this Sep 13 08:25:26 with my old htc desire, I had to short two pins using a piece of copper at the right moment for exactly the right amount of time Sep 13 08:25:43 on other devices it was as straightforward as copying file over Sep 13 08:25:43 that's something new Sep 13 08:26:05 with samsung its was the best experience to play with ROMs Sep 13 08:26:16 yeah, very easy on Galaxy S Sep 13 08:26:29 there is no cyanogenmod for htc 820 so never thought of rooting or custom recovery Sep 13 08:26:47 its still at logo, no progress Sep 13 08:27:32 you'll have to dig deep into various forums ^^ Sep 13 08:27:44 Marlinski: ok, Thank You Sep 13 08:28:07 I have two recipe for htc desire and htc sensation Sep 13 08:28:14 I wrote them when I found a solution Sep 13 08:28:21 but I doubt it will be same thing for your htc Sep 13 08:29:05 nothing bad to learn new things :) Sep 13 08:29:38 gulzar: https://paste.imirhil.fr/?a0d1d26a9b9ead5c#OEhJSXvxcy9wMOVromSvH9UBcwIixIF01rZbnzBtirY= Sep 13 08:29:53 that was the solution that worked for me for those two devices Sep 13 08:30:04 as you can see, htc seems to be quiet convoluted :) Sep 13 08:32:20 gulzar: I have to warn you though that doing this might brick your phone Sep 13 08:32:32 Marlinski: thank you for those steps. I will take care Sep 13 08:32:46 gulzar: brick as in, your phone might very well be just as good as a brick Sep 13 08:32:55 I bricked two devices myself already Sep 13 08:32:57 Marlinski: But I think sony is worst than HTC. we need to flash rom then flash kernel Sep 13 08:34:46 so if that happens, you can only complain to yourself :p Sep 13 08:34:56 Marlinski: thank you. I need to eat something, my brain is not working Sep 13 08:35:03 bon appetit Sep 13 08:40:04 hey Sep 13 08:41:45 <_genuser_> can I get a fiew of the application root folder over adb? Sep 13 08:49:46 _genuser_ if its the emulator, yes, if a phone you probably need root Sep 13 09:05:11 Anyone have it where your Genymotion device shows up in the device list, and then compilation completes, and then... nothing? Sep 13 09:05:27 I have Genymotion set to be using the same ADB that android studio is, and I've restarted and stuff Sep 13 09:06:03 Some days it works, but some days it doens't Sep 13 09:26:40 anyone here recommend Fastlane? Sep 13 09:26:45 https://docs.fastlane.tools/getting-started/android/setup/ Sep 13 09:28:41 <_genuser_> raoul11: oh, I see. I remember being able to pull sqlite3 dbs off the devides for my app years ago. Sep 13 09:33:17 Hello, I changed the structure of my project (renamed packages). I did the rename on each occurence of my project, but when I try to launch the application, I still have the error : Caused by: java.lang.ClassNotFoundException: Didn't find class "com.statigest.gestdoc.statigest.gestdoc.Activities.MainActivity" on path: DexPathList Sep 13 09:33:19 Napalm: Hello! I managed to adapt your code to my needs. It requires yet another round of refactoring to be clean but it's working. Thanks again! Sep 13 09:47:52 anyone has some idea what the answer might be ? http://stackoverflow.com/questions/39466674/simplest-way-to-display-a-zoomable-svg-in-android Sep 13 09:48:06 what is the simplest way to display a zoomable svg ? Sep 13 09:48:13 is it webview ? Sep 13 09:49:48 joco42: what does your SVG contain? Sep 13 09:50:02 just a picture + picture Sep 13 09:50:05 two pictures Sep 13 09:50:14 relative to each other Sep 13 09:50:22 pictures as in bitmaps? Sep 13 09:50:28 yes Sep 13 09:50:29 bitmap Sep 13 09:50:40 one large picture Sep 13 09:50:44 and one small picture Sep 13 09:50:47 why don't you just display the bitmaps and forget about SVG? Sep 13 09:50:56 well, that is kinda wasteful Sep 13 09:51:11 wasteful is using SVG to display only two bitmaps Sep 13 09:51:23 the small picture needs to be high resolution Sep 13 09:51:26 the problem is Sep 13 09:51:38 small picture is 10 times smaller than large Sep 13 09:51:41 scaled down Sep 13 09:51:52 so if i want the small picture in full resolution Sep 13 09:51:57 when zoomed in Sep 13 09:52:08 then the large picture needs to be upscaled Sep 13 09:52:16 to 10 times Sep 13 09:52:19 what has this to do with using SVG? Sep 13 09:52:30 svg does this efficiently Sep 13 09:52:34 Hi there. Sep 13 09:52:41 you are using SVG to scale and place to bitmaps Sep 13 09:52:43 it is designed for this Sep 13 09:52:46 no Sep 13 09:52:53 among other things Sep 13 09:52:53 do you know what's a bitmap? Sep 13 09:52:59 yeah Sep 13 09:53:02 i know Sep 13 09:53:15 say you have 2 images Sep 13 09:53:17 then you are missing something else Sep 13 09:53:21 1000x1000 pixels Sep 13 09:53:36 but one image is scaled to 100x100 pixel wide Sep 13 09:53:48 but still has full 1000x1000 resolution Sep 13 09:53:58 it is only transformed Sep 13 09:54:02 <_genuser_> you guys do profile pictures for you users of your apps? Sep 13 09:54:47 i found nothing that can do this without waste... except for webview Sep 13 09:54:49 joco42: either you don't know the difference between vector and bitmap graphics or you lack some other piece of information. I can't help you beyond this. Sorry Sep 13 09:55:07 yeah, its ok, i go with webview.... Sep 13 09:55:11 thanks Sep 13 09:55:24 can I see your SVG? Sep 13 09:55:29 lemme see Sep 13 09:55:30 the source Sep 13 09:55:33 i make an example Sep 13 09:55:46 hi I have a question. I am writing an app for android and I want to use slf4j logback for android. Usually for android smartphone it is true that some people don't have internte connection enabled all the time. So I want to log to the syslog all events (through ssl) when internet is available, and it isn't log to the file or db - all async except from warnings, errors and wtfs Sep 13 09:56:08 is such log appender available or I have to write own appender Sep 13 09:56:09 ? Sep 13 09:58:02 oh weird, it actually worked by disabling Instant Run Sep 13 09:58:03 http://stackoverflow.com/questions/35312867/gradle-build-info-xml-not-found-for-module-app-in-android-studio Sep 13 09:58:14 That doesn't explain why sometimes it would work and sometimes it wouldn't before Sep 13 09:58:18 but I guess this is something Sep 13 09:59:24 http://tutorials.jenkov.com/svg/svg-transformation.html Sep 13 09:59:30 arancio: ^ Sep 13 09:59:43 just using img instead of rect Sep 13 10:00:05 in Sep 13 10:00:29 svg is useful for all sorts of stuff Sep 13 10:01:19 joco42: sorry but you are misusing SVG and you are complicating your life. Unless there is really something your are not saying, you are doing something stupid thinking that it's smart. Please don't take it personally. Sep 13 10:01:33 hmmm Sep 13 10:01:35 really? Sep 13 10:01:37 joco42: I don't want to insult you Sep 13 10:01:45 strange Sep 13 10:01:46 I really think so Sep 13 10:01:52 why? Sep 13 10:02:00 what is wrong with svg? Sep 13 10:02:12 i cannot see a simpler way Sep 13 10:02:13 you can achieve the same result just by placing and scaling two ImageViews in an appropriate container Sep 13 10:02:20 right Sep 13 10:02:28 but then how do i zoom and pan that ? Sep 13 10:02:31 SVG can't do it any better Sep 13 10:02:40 can I zoom the container ? Sep 13 10:02:52 zooming and panning is the issue here Sep 13 10:03:11 but SVG won't do it. the view displaying the SVG will do it and you don't have one. Sep 13 10:03:21 You either program the zoom and pan by yourself or you can probably find a container that does it for you Sep 13 10:03:27 webview Sep 13 10:03:31 with a js lib Sep 13 10:03:52 like this https://github.com/ariutta/svg-pan-zoom Sep 13 10:03:52 zooming and panning is easy. you have to program the interaction or find a library that does that for you Sep 13 10:04:10 hmm Sep 13 10:04:12 right Sep 13 10:04:16 you are just programming in javascript instead of Java Sep 13 10:04:21 well Sep 13 10:04:27 that is not a problem Sep 13 10:04:35 i am flexible Sep 13 10:04:41 if that's not a problem for you and it fits your needs. Go for it. Sep 13 10:04:52 I would not do it. But I'm not you Sep 13 10:05:05 i plan to switch to ionic at some point.... Sep 13 10:05:14 so js is ok Sep 13 10:06:56 You don't have much programming experience, do you? Sep 13 10:07:18 Anyway, if that works for you, go for it. Sep 13 10:10:00 no, only 10k hours Sep 13 10:10:02 :) Sep 13 10:10:58 10k hours is quite a bit of programming. I don't understand how you could say what you said above. Anyway, wish you the best with your project! :-) Sep 13 10:11:22 but anyway... out of box thinking is apparently frowned upon in some circles.... Sep 13 10:12:01 but that is useful... as well Sep 13 10:12:20 as long as my competition is not out having too many out of box thinkers.... Sep 13 10:12:36 what's thinking "out of the box" for someone it's lazy thinking for someone else Sep 13 10:12:48 true Sep 13 10:12:49 lazy Sep 13 10:13:00 or cost effective Sep 13 10:13:20 if u wanna be competitive Sep 13 10:13:27 u need to be cost and time effective Sep 13 10:13:30 let's not discuss this further. If your solution is ok for you, we will both happy. If it's not ok, you'll have made a prototype and you'll try another solution Sep 13 10:13:44 it doesn't matter Sep 13 10:13:49 yeah, need to try it Sep 13 10:14:04 please report back, if you like and good work! Sep 13 10:14:23 have a nice day Sep 13 10:14:31 yeah, if someone has some other opinion, let me know Sep 13 10:14:39 someone else i mean Sep 13 10:15:05 one opinion is 1 opinion Sep 13 10:16:49 http://stackoverflow.com/questions/12479859/view-with-horizontal-and-vertical-pan-drag-and-pinch-zoom Sep 13 10:17:19 http://stackoverflow.com/questions/20225265/pinch-zoom-and-pan/20226476#20226476 Sep 13 10:18:15 https://developer.android.com/training/gestures/scale.html Sep 13 10:18:23 https://gist.github.com/anorth/9845602 Sep 13 10:19:39 https://blahti.wordpress.com/2013/01/07/pan-zoom-examples-for-android/ Sep 13 10:20:41 joco42: ^ all the stuff above was for you Sep 13 10:57:14 I read that in order for custom views to properly generate ids for R you should use the namespace "http://schemas.android.com/apk/res-auto" How an I use this in my RelativeLayout, though? do I use two namespaces and use "http://schemas.android.com/apk/res/android" as well or just replace it? Sep 13 10:58:45 barq: http://stackoverflow.com/questions/26692233/what-is-the-app-android-xml-namespace Sep 13 10:58:54 barq: does that help? Sep 13 10:59:39 I can't replace android:id with another namespace, though Sep 13 10:59:45 But the ids are where I am having problems Sep 13 11:02:52 barq: sorry but I don't understand. I use android:id in my custom view Sep 13 11:03:16 barq: maybe I didn't understand your problem Sep 13 11:04:00 android:id="@+id/bodyView" Sep 13 11:04:00 android:layout_width="match_parent" Sep 13 11:04:00 android:layout_height="wrap_content" Sep 13 11:04:00 android:padding="20dp" Sep 13 11:04:00 /> Sep 13 11:04:05 I have a layout.xml that I inflate. The inflation works fine, then I do mView.findViewByID(element) on a View inside the layout.xml Sep 13 11:04:16 However, this findViweById returns null, even though the id is in the layout.xml Sep 13 11:04:30 I do like that ^ Sep 13 11:04:39 it works just fine Sep 13 11:04:47 And somewhere inside the layout I ahve a custom view Sep 13 11:04:52 Such as you pasted Sep 13 11:05:17 This layout.xml is in a library that is a dependency for another library, where this view is inflated Sep 13 11:05:27 I don't understand why the layout is found but the ids don't match Sep 13 11:06:35 Sorry, I can't help you. Never faced that problem Sep 13 11:08:35 This is my layout https://ghostbin.com/paste/d6y4z Sep 13 11:12:39 barq: may I ask what library you're talking about? Sep 13 11:13:17 VerbalKint: hi Sep 13 11:13:25 arancio: hey Sep 13 11:13:26 A local library of my own Sep 13 11:13:53 barq: silly suggestion, but have you tried rebuilding after making the changes? Sep 13 11:14:29 Yes, multiple times. I didn't make any changes either Sep 13 11:14:37 I just deleted all generated folders and trying again Sep 13 11:17:04 mView.findViewById still returns null Sep 13 11:18:23 it is called toolbar now Sep 13 11:18:34 ? Sep 13 11:21:14 which id you are trying to find? Sep 13 11:21:43 _base_montent_scroller Sep 13 11:22:57 I'm doing mBaseView = getLayoutInflater().inflate(R.layout.main_activity_layout, null); LinearLayout contentView = (LinearLayout) mBaseView.findViewById(R.id._base_montent_scroller); Sep 13 11:23:02 why montent (not content) Sep 13 11:23:03 :) Sep 13 11:23:04 The second statement returns null Sep 13 11:23:17 typo Sep 13 11:23:30 what alignWithParentIfMissing does? Sep 13 11:24:15 http://stackoverflow.com/questions/16708132/difficulty-understanding-layout-alignwithparentifmissing Sep 13 11:25:34 Don't think it is important for this question Sep 13 11:26:19 yea Sep 13 11:26:49 can you try ‘View v = LayoutInflater.from(...).inflate()’ Sep 13 11:27:04 arancio: dream is being revived. My installs and ad pageviews are slowly increasing. Sep 13 11:27:29 VerbalKint: yay! How much instals so far? Sep 13 11:27:38 barq: idk why it can't find the id. check if inflate returns null Sep 13 11:27:44 arancio: total of 26 :D Sep 13 11:27:52 No, the inflate does not return null Sep 13 11:27:52 :-) Sep 13 11:27:58 the inflate returns a linearlayout Sep 13 11:28:08 root? Sep 13 11:28:17 Trying LayoutInflater.from(getApplicationContext()).inflate now Sep 13 11:28:37 root in code you pasted is RelativeLayout (not LinearLayout) Sep 13 11:29:20 checking Sep 13 11:29:41 arancio: I'm hoping it'll grow exponentially over time Sep 13 11:30:56 mBaseView retunrs a LinearLayout Sep 13 11:31:09 strange Sep 13 11:31:16 You're right, it should be RelativeLayout Sep 13 11:31:41 barq: If you want to avoid theming headaches, don't use the application context for view inflation Sep 13 11:32:08 I used getLayoutInflater before Sep 13 11:32:46 But for some reason the id is mapped wrong to base_montent_scroller Sep 13 11:33:14 Or some other linearLayout Sep 13 11:33:54 I'm naming ids after layout scope, like "activity_main_" Sep 13 11:34:28 What context should I use then pduin Sep 13 11:36:34 The ids seem to match, but why does it return a LinearLayout not a RelativeLayout? Sep 13 11:37:37 <_genuser_> does the file extension even matter anymore for pictures? Sep 13 11:37:52 barq: sometimes android studio does not clean .xml files Sep 13 11:37:56 <_genuser_> I think all the imageviews and etc just parse the data itself. Even stuff like BitmapFactory.formFile(), etc. etc. Sep 13 11:38:13 I also trired building from commandline, same error Sep 13 11:38:28 barq: it may use old .xml file, maybe due to instant run Sep 13 11:39:03 I have instant run disabled Sep 13 11:39:20 At least the first checkbox in settings Sep 13 11:40:29 Yep, always an error in the same line Sep 13 11:40:57 and the LinearLayout Sep 13 11:42:09 old xml, right? Sep 13 11:43:24 Maybe it's this bug https://code.google.com/p/android/issues/detail?id=71233 Sep 13 11:45:18 If I inspect the apk with classyshark the ids don't match either during runtime and in the apk Sep 13 11:46:05 is it possible to tell if the uri returned by the storage access framework refer to internal memory or sd card etc. Sep 13 11:49:29 snowball: Considering N disallowed sharing file uri's, I don't think that's something that would be exposed Sep 13 11:49:53 I'd imagine the file might not even be on the device yet Sep 13 11:51:05 My apk has 7 R-files maybe that's a problem Sep 13 11:51:32 bummer :/ ty Sep 13 11:57:10 looking at some code has me confused , its a POJO that stores multiple pictures and recently it doesn't load the pictures into the views. When I try to look at them individually they are still in memory but somehow don't all load on to the activity. Maybe 3 out of 5. Is there a limit on the memory in a single activity fragment ? Sep 13 12:00:51 trello is nice Sep 13 12:00:55 thepoosh u using it? Sep 13 12:01:14 we tried it for a bit but we don't do agile and we have too many people Sep 13 12:01:21 but our product team uses it Sep 13 12:01:27 i bet you wrote yer own trello didnt u Sep 13 12:01:30 I use JIRA boards Sep 13 12:01:40 ah ok Sep 13 12:01:48 * raoul11 has no idea and goes googlin Sep 13 12:02:11 isnt jira for agile as well Sep 13 12:03:35 Guys, after I finish playing a sound, a slight click is heard. I'm using MediaPlayers and the sounds have ~1s. Anyone encountered this? Sep 13 12:05:58 Could someone help me to understand the Action Buttons on notifications? I would like to implement a notification like this http://i.stack.imgur.com/24I2x.png Sep 13 12:08:34 I'm not sure if I'm searching for the right thing. I just have found how to make the application create a notification like that and I want to send those buttons via Push Notification. I'm sending it using NodeJS. The notification comes but without buttons. Sep 13 12:09:15 I thought jira and trello are used for kanban Sep 13 12:10:10 i am seriously liking trello atm. Sep 13 12:11:27 Hi there, can you guys suggest a good quick java tutorial for someone with programming background? Sep 13 12:11:46 java or android? Sep 13 12:11:57 people at #java freaked out when I mentioned android. Sep 13 12:12:10 my goal is to learn android after. Sep 13 12:12:10 look for thenewboston vids on youtube Sep 13 12:12:25 it will kick you up pretty quick in both android and java Sep 13 12:12:29 is that java or android? Sep 13 12:12:36 lrn java by doing android stuff Sep 13 12:12:37 ok. Thank you. Sep 13 12:12:59 go deep on subjects which intrigue you Sep 13 12:13:10 I'd suggest to go with plain java first Sep 13 12:13:24 Like dialectical materialism! Sep 13 12:13:37 It can be hard for a beginner to spot where Java ends and Android begins Sep 13 12:14:12 CtrlC, what's your programming background? Sep 13 12:14:19 Cause if it's C#... ;-) Sep 13 12:14:26 yeah, but then u get used to doing stuff in eclipse and lookin for awt Sep 13 12:14:39 It's totally impractical to burden yourself with UI stuff and Activity lifecycles when you are tryin to learn a language Sep 13 12:14:42 mann, C++, Python and little bit of some other stuff. Sep 13 12:15:20 Did a clean of everythign and still get the NPE Sep 13 12:15:23 but the UI stuff isnt heavy on AS, and the activity lifecycle can be easily explained Sep 13 12:16:51 True, but both subjects are examplse of extra fluff you do not need if you want to learn a language. I will just get in the way of you learning it. Sep 13 12:16:56 If you're not in a hurry I would start with a little bit of Java. So you understand the similarities/differences with Android. Sep 13 12:17:13 Can I run every application inside of the android emulator? Sep 13 12:17:15 Isn't android using java syntax? why #java freaks out everytime? Sep 13 12:17:21 Took me a while to grasp the whole Android UI concept (acitivies/intents) and such Sep 13 12:17:38 The presentation is very unique Sep 13 12:18:01 yeah. but the path still seems to go through java. Sep 13 12:18:17 coz people might ask android questions (ui, logic) on a language channel Sep 13 12:18:35 It does, but the whole concept of AXML layouts for views and such is a whole learning experience of its own Sep 13 12:18:38 and ##java is compiled of purists. Sep 13 12:18:47 Composed* Sep 13 12:18:49 in #java there's always that dude who didn't say anything for months and is waiting for someone to mention android to jump in! Sep 13 12:18:56 lol Sep 13 12:18:56 compiled. Sep 13 12:19:04 yeah there's purists everywhere Sep 13 12:19:06 CtrlC tru dat Sep 13 12:19:07 Definitely composed. Sep 13 12:19:17 Compiled of is not the proper conjugation. Sep 13 12:19:17 i will sue you winsoff /: Sep 13 12:19:36 See, composed has a past participle tense Sep 13 12:19:36 I'm surprised no one jumps on me when I mention xamarin.. ;P Sep 13 12:19:39 in freenode's court of pointless drama Sep 13 12:19:57 Why would #java "jump on" people that talk about android? Sep 13 12:19:59 I was supposed to get a free xamarin shirt or something like that Sep 13 12:20:14 VerbalKint coz purists Sep 13 12:20:26 raoul11: that's ambiguous Sep 13 12:20:36 yeah tell that to them. Sep 13 12:20:44 try asking apache2 stuff on #httpd Sep 13 12:20:50 see what happens Sep 13 12:20:57 specifically, distro related. Sep 13 12:21:11 Verbalkint, you're going to get murdered there. Sep 13 12:21:23 you'll choke in your own blood. Sep 13 12:21:49 CtrlC, you can start straight with Android but you'll be thrown right into android specific presentation framework. Sep 13 12:21:50 its one of those chans where you gotta brace yourself. Sep 13 12:22:11 Starf off with a few command line Java exercises Sep 13 12:22:14 Start* Sep 13 12:22:20 I prefer to have some java basics first. Sep 13 12:22:33 The whole android activity abstraction can be a bit confusing. Sep 13 12:22:54 They aren't murdering me yet Sep 13 12:22:56 "a bit" is a bit of an understatement... Sep 13 12:22:59 I'm a bit familiar with it actually. I know how it can be. Sep 13 12:23:01 Don't try to do anything UI related in Java, as it will have nothing to do with the way Android does UI Sep 13 12:23:43 CtrlC: this might be good for you http://i.imgur.com/jrlcGQ8.png Sep 13 12:23:46 raoul11: did a small troll there and nothing silly happened Sep 13 12:24:18 Thanks. Sep 13 12:24:30 first few chapters is really java basics Sep 13 12:24:45 I committed blasphemy and went from C# straight to Xamarin. Ain't no time to learn java.. Sep 13 12:25:22 I already know Qt. but nothing like using java and the sdk yourself. Sep 13 12:26:01 that book and thenewboston, and you'll be on yer way CtrlC Sep 13 12:26:23 Cool. Thanks again. Sep 13 12:26:39 May have to take a look at that book myself. Looks interesting Sep 13 12:27:14 There are too many things I want to learn and not enough time :( Sep 13 12:28:27 quick question. can I set the browser in a app to send some extra info with each request to a specific website? Basically I want to use a website and open it through my program instead of using android ui elements. Sep 13 12:28:58 yep, WebView Sep 13 12:29:32 It's what I'm doing with my current project Sep 13 12:29:37 I know about webview. I want to know if it can easily give me such controll. Sep 13 12:29:43 cool. Sep 13 12:30:27 VerbalKint: They always say Android is not Java and tell people to come here. Sep 13 12:30:28 It can be very nice to use pre written web software in it. Sep 13 12:30:54 barq: and that's being "mean" or "purist"? Sep 13 12:31:02 Yup. Wrote my app in .NET and wrapping it in Android for some additional functionality Sep 13 12:32:27 mann, does it need much stuff to learn? are you doing it in xamiran or what? Sep 13 12:32:29 what is it if not java? Sep 13 12:33:09 "android" Sep 13 12:33:36 well, you don't ask android specific questions Sep 13 12:33:40 CtrlC, depends on how much functionality you need from android. If you're doing all the logic and interactions in your web app then it's as simple as loading a webview in an android app. Sep 13 12:33:55 webview is crap Sep 13 12:33:58 that channel caters to java the language Sep 13 12:34:00 If you need to perform additional stuff (like actually interact with the android system) it'll take some more work Sep 13 12:34:22 mann, I just need to send some extra info with each request. Like phone id. Sep 13 12:34:46 Yeah that should be fairly simple to do. Sep 13 12:34:47 pfn, I asked fot java tutorial. some guy said what is your final goal... Sep 13 12:34:58 nice. Thanks. Sep 13 12:34:58 Hello Sep 13 12:35:12 There's different ways to do it (of course). You can add a javascript "binder" so you can run android code from your webapp using JS. Sep 13 12:35:28 Or you can override some of the WebView classes to pass the info you need Sep 13 12:36:26 For some reason when I create button_tag.xml and inside I have and I call this upon a button with ContextThemeWrapper like this: final Button btnTag = new Button(new ContextThemeWrapper(getApplicationContext(), R.style.button_tag)); Sep 13 12:36:36 for some reason it changes the style to RippleDrawable Sep 13 12:36:40 And I don't wan't this... Sep 13 12:36:55 I need ColorDrowable Sep 13 12:38:25 As long as you understand the requirements of your app and the limitations of WebView you should be alright. Sep 13 12:39:52 Playing sound through webview can be tricky Sep 13 12:43:44 Should the ripple effect work on a custom view that overrides onTouchEvent()? Sep 13 12:44:25 I'm setting the view clickable and using an android ripple drawable as background but I get no ripple.. Sep 13 12:46:50 Anyone familiar with material design determinate circular progress indicators as displayed here? https://material.google.com/components/progress-activity.html#progress-activity-types-of-indicators Sep 13 12:47:12 VerbalKint: because Android doesn't bring you the 100% of Java. Not all the standard libraries are supported and you can't run many third party libraries because the virtual machine is not the same. Sep 13 12:47:25 It's great that Google gives us a design guide and all.. but I can't find any sample/example codes to replicate their guides Sep 13 12:47:39 Hello. My app needs to fetch & update account data on launch (in background); what is the best way to do this? Do a Rx request in Application#onCreate? Have a handler thread? Use a job scheduler? Sep 13 12:47:44 Esp. if I need to update the UI if the balance changes + account for errors + this step must succeed for main flow of the app to work Sep 13 12:48:55 arancio: lol Sep 13 12:50:05 VerbalKint: what makes you laugh? Sep 13 12:52:51 arancio: their reasoning for hating Android :D Sep 13 12:52:51 Does the android emulator still take ages upon first boot? Sep 13 12:53:11 winsoff: no Sep 13 12:53:20 winsoff: and hi Sep 13 12:53:26 How long should a 7.0 take? Sep 13 12:53:41 A 7.0 image with 1024MB allocated, that is, with HAXM installed. Sep 13 12:53:46 winsoff: does in my case, but my PC is crap Sep 13 12:53:50 winsoff, it depends on whether you're using hardware acceleration (HAXM for example_ Sep 13 12:54:01 "HAX is working and emulator runs in fast virt mode." Sep 13 12:55:38 ADB connects Sep 13 12:55:43 but it's not showing me any actual display. Sep 13 12:55:44 The fug? Sep 13 12:55:55 how long has it been? Sep 13 12:56:04 Was about 1 minute uptime Sep 13 12:56:27 Could be the very first time the emulator initializes it takes longer Sep 13 12:56:30 Ah, switched on "use host GPU" and finally have android up Sep 13 12:56:37 also I'm assuming you're using x86 image? Sep 13 12:56:37 Well, the text "android" Sep 13 12:56:40 Yeah. Sep 13 12:56:42 Well, x86_64 Sep 13 12:56:51 cool Sep 13 12:56:59 There we go. Booted after I chose to use my gpu Sep 13 12:57:08 :D Sep 13 12:57:15 Now, how do I get google play Sep 13 12:57:19 and google play services Sep 13 12:57:21 and all of THAT Sep 13 12:57:37 That I have no idea. The googleapi images? Sep 13 12:57:41 Perhaps Sep 13 12:57:49 winsoff: tap on the "all of THAT!!!!1!" button Sep 13 12:57:56 loller Sep 13 12:58:35 Can I use my rooted device as the base image? Sep 13 12:58:39 Just curious if that's a thing. Sep 13 12:59:16 anyone here implementing uncle bob's clean architecture in a project? Sep 13 12:59:35 Oh; 7.0 has no Google API images available? Why not? Sep 13 12:59:51 Agh, can someone please tell me why if I use final Button btnTag = new Button(new ContextThemeWrapper(this, R.style.button_tag)); instead of this: final Button btnTag = new Button(this) makes my btnTag of RippleDrawable? I want colorDrawable which is supported by kitkat! Sep 13 13:02:34 huh Sep 13 13:02:52 how to tint android:drawableEnd (compound drawables) for a text from xml? Sep 13 13:02:56 fix your button_tag style then Sep 13 13:03:06 even the drawable xml it self contains android:tint="#F00" Sep 13 13:03:08 pfn: don't know what's wrong with it... Sep 13 13:03:16 neither do we Sep 13 13:03:16 it doesn't make any effect prior 21 Sep 13 13:03:32 there is no tint pre 21 Sep 13 13:03:35 pfn: https://gist.github.com/anonymous/30176b0c1159681afa847520bcb46624 Sep 13 13:04:29 frojnd, that's not how you apply style to an element Sep 13 13:04:39 is it a bug in support library? Sep 13 13:04:54 pfn: how is it then? Sep 13 13:04:58 and also, what is the problem, there is nothing ripple there Sep 13 13:05:12 Moshdev, tint is not available in xml pre 21 Sep 13 13:05:17 pfn: that's odd I can also paste java code where I call this Sep 13 13:05:45 frojnd, by using the proper constructor Sep 13 13:05:47 so why inside the AppCompatTextView it tries to apply the tint on pre 21? Sep 13 13:06:26 mTextHelper = AppCompatTextHelper.create(this); Sep 13 13:06:26 mTextHelper.loadFromAttributes(attrs, defStyleAttr); Sep 13 13:06:26 mTextHelper.applyCompoundDrawablesTints(); Sep 13 13:06:35 it does default tints Sep 13 13:06:37 this code is from `AppCompatTextView` Sep 13 13:06:38 that is all Sep 13 13:06:59 then read the source and see how it is done Sep 13 13:07:11 it's special cased in that widget Sep 13 13:07:40 Does overriding onTouchEvent prevent ripple from working? Sep 13 13:08:03 arancio, yes Sep 13 13:08:37 call through to super and return the appropriate value Sep 13 13:10:13 I try Sep 13 13:10:20 thanks Sep 13 13:10:37 Oh, wtf happened to my ignore... Sep 13 13:12:03 pfn: I see there are only 2 constructors, context, int and context, Style how do I use Style one? Sep 13 13:12:40 frojnd, set an attribute in your theme, and specify that attribute as the 3rd arg Sep 13 13:16:05 pfn: I did what you told me and it worked. The problem now is that my custom views draws itself. So the ripple is visible only where there is some "empty space". That's because the ripple is a background. Is there any way to work around this that makes sense? Sep 13 13:16:09 pfn: reading ContextThemeWrapper.java I don't see any constructors with 3 arguments.. Sep 13 13:16:28 frojnd, on button Sep 13 13:16:35 oh Sep 13 13:16:38 why are you using ContextThemeWrapper Sep 13 13:18:15 arancio, put a transparent view atop in z order with ripple background Sep 13 13:18:29 pfn: to put all the styling code that I had in java in xml Sep 13 13:19:07 arancio, I suppose that won't work though, since the top view will capture touches if clickable Sep 13 13:19:23 pfn: won't that prevent events to reach my custom view? Sep 13 13:19:26 frojnd, well, ContextThemeWrapper is the wrong tool Sep 13 13:19:27 eh Sep 13 13:19:29 pfn: inside button_tag I've put bla how do I cal lthat as an argument? Sep 13 13:19:30 exactly Sep 13 13:19:46 frojnd, it goes in your *theme* Sep 13 13:19:56 pfn: what is the right tool? I admit I'm not that familiar with styles and themes... Sep 13 13:20:10 I just told what the right tool is Sep 13 13:20:38 arancio, draw the ripple. background on top Sep 13 13:21:04 frojnd, set the attribute on your theme, reference it from the 3rd arg Sep 13 13:21:27 ok. Is the standard ripple just a disk expanding and fading out? Sep 13 13:21:34 It looks like that Sep 13 13:21:51 there's a little more Sep 13 13:22:15 but you can just take a rippledrawable and draw it Sep 13 13:22:49 the best would be to not draw where you want the ripple to show Sep 13 13:23:45 pfn: just to make sure when you say my theme you mean button_tag.xml ? https://gist.github.com/anonymous/30176b0c1159681afa847520bcb46624 Sep 13 13:24:42 button_tag is not a theme Sep 13 13:24:44 What runs earlier, onResume() or onRequestPermissionsResult() ? Sep 13 13:24:45 https://github.com/47deg/macroid/issues/73 Sep 13 13:25:03 <_genuser_> so images with rounded corners, big deal in android, eh? Sep 13 13:26:57 <_genuser_> anybody else use images with rounded corners? Sep 13 13:27:19 any one else experienced breakpoints not being functional when debugging an camera intent ? Sep 13 13:27:20 <_genuser_> I used cardview and rounded off the corners, works greats on API 21+, but on API19, just craps. Sep 13 13:28:39 just apply a mask... Sep 13 13:28:45 works fine Sep 13 13:29:48 how can i pause and redraw a few times with a position of a bitmap updated? i tried with handler.postDelayed(r, 2000); and invalidate, but it only seems to draw the end frame and skip the canvas updates inbetween no matter how i do it Sep 13 13:30:32 <_genuser_> pfn: mask for rounded corners? Sep 13 13:31:59 pfn: in my theme I already have a few attributes.. but I don't know how can I reference e.g. @color/colorPrimary as a 3rd argument in Button's constructor Sep 13 13:32:21 I guess I don't know how to transform xml into argument that's been called inside a constructor Sep 13 13:32:26 frojnd, I just linked an issue explaining it to you Sep 13 13:32:43 oh... github link with 73 at the end Sep 13 13:33:06 and colorPrimary? that wasn't in your gist Sep 13 13:33:15 no ... Sep 13 13:33:32 that's inside my styles.xml Sep 13 13:33:53 for buttons I created button_tag.xml Sep 13 13:34:10 ContextThemeWrapper is only for overriding attributes such as colorPrimary Sep 13 13:34:28 so, you need to stop jumping around if you want a proper answer Sep 13 13:35:56 _genuser_, actually, just can take a. bitmap and drawRoundRect into a new. bitmap Sep 13 13:37:47 frojnd, github link already describes how to do this Sep 13 13:37:51 <_genuser_> pfn: programmatic solution then. I was really hoping to do it via xml. Sep 13 13:38:17 <_genuser_> I'll give it a go then. kinda hate having to do UI work in activities programmatically. Sep 13 13:38:27 hey all, in a relativeview i have a cardview, it is cenetered in the view. I want to place another view directly above it. Currently, it is above it, but they are not close. Is there a way (property) to indicate proximity Sep 13 13:38:35 *relativelayout Sep 13 13:39:11 <_genuser_> layout_above="the_bottom_control" ? Sep 13 13:39:43 _genuser_: yeah i have that. Problem is, above just means, it needs to be above the control, not how far above it Sep 13 13:40:03 <_genuser_> if it's not touching, alignBottomTo ... Sep 13 13:40:14 mmm i think that is what i am looking for Sep 13 13:40:17 let me try that Sep 13 13:41:49 <_genuser_> https://developer.android.com/reference/android/widget/RelativeLayout.LayoutParams.html Sep 13 13:41:54 <_genuser_> all the others are in there. Sep 13 13:42:33 Could someone help me to understand the Action Buttons on notifications? I would like to implement a push notification like this http://i.stack.imgur.com/24I2x.png Sep 13 13:44:29 _genuser_: weird, i have tried three of the and its not consistent Sep 13 13:44:46 ok i figured it out, handler.postDelayed(gameDraw.r, 2000); , i just need to make each delay iteration different because it executes them at the same time lol Sep 13 13:44:56 well actually it is consistent Sep 13 13:45:01 just not quite what i need Sep 13 13:45:44 what i actually need is a layout that aligns to bottom edge of one vie to the top edge of another view Sep 13 13:47:48 forget it, i will just use marginTop Sep 13 13:47:50 Does anyone know how I can save a Json Value to an int? Sep 13 13:49:00 pfn: this is my code now: https://gist.github.com/anonymous/9e7d0ec4e62a5ab46fb128642e839b42 however when I add a button it's just empty without any background color or text color... what did I miss? Sep 13 13:49:18 Zeuri, where are you getting your JSON value? REST? Sep 13 13:50:04 frojnd, you're using get application context Sep 13 13:50:16 that is always wrong when you're working with ui Sep 13 13:50:42 it might marginally work if you applied a. theme on application Sep 13 13:51:13 pfn: what is the preferred way with first argument? Sep 13 13:51:24 an activity context Sep 13 13:52:06 Thank you Sep 13 13:52:50 Hello everybody, I am developer in java and I'm starting to develop android and would like to know the best framework for developing android. Sep 13 13:53:33 renegado, the android platform framework Sep 13 13:54:58 man: Im not sure what REST is, I use javax.json to turn a string into a json object. I can get the json Strings and Json Ints and set them as java variables easily. But for Json Value im a little lost.. Sep 13 13:55:39 man: the Json Value can be either null or what looks like an int Sep 13 13:56:04 pfn: thank you for your help.. gotta run.. Sep 13 13:56:19 I managed to at least produce some plain text "buttoN" but wihout any background color Sep 13 13:57:27 I added inside button_tax.xml https://gist.github.com/anonymous/3ee60755912273adf2bf917395ecca0e Sep 13 14:12:26 pfn: I created a RippleDrawable, added a callback so that invalidateDrawable() invalidates my view, and in my onDraw I draw the rippledrawable to the canvas. Then when my view is tapped I perform mRippleDrawable.setVisible(true, true); But I see nothing. I don't have a full understanding of how this should work though. Sep 13 14:16:20 dunno, did you set the right colors on the ripple Sep 13 14:20:16 pfn: I found this piece of code that could be of help: http://stackoverflow.com/a/30275243 I'll have a second look at it after some rest. Sep 13 14:21:06 pfn: this is my view: http://www25.zippyshare.com/v/5wuOs1y8/file.html I made it with the help of Napalm. If I could add the ripple it would be perfect. Thanks though Sep 13 14:22:04 hey arancio Sep 13 14:22:08 that looks good Sep 13 14:22:17 Napalm: Thanks!!! :D Sep 13 14:22:54 Need some sleep now Sep 13 15:01:50 So Marker#setTag(Object obj) is documented in https://developers.google.com/android/reference/com/google/android/gms/maps/model/Marker.html#setTag(java.lang.Object) but I'm not seeing it as an option when building or opening the Marker.class file Sep 13 15:04:12 Ah figured it out. I was on 9.0.0 of play services, and it's now available on 9.4, so it was added sometime after 9.0.0 Sep 13 15:18:28 <_genuser_> so I'm assuming it's the play services that's bloating my apk size to 6MB already... Sep 13 15:18:59 _genuser_, make sure you add only the services you need and not all of them Sep 13 15:20:35 <_genuser_> ktwo: so I can remove stuff like -ads if I don't have ads, etc. Sep 13 15:21:19 <_genuser_> I understand I need play services for fcm. I'll have to comment out the others one by one and see. :) Sep 13 15:28:20 lolwtf, I managed to get a "good" spot on certain keywords on the store and then I suddenly lost everything :O Sep 13 15:28:33 why 'colorButtonNormal' behaves differently on API 21 and 17 Sep 13 15:29:22 on 17 it works like charm and handles the states (disabled, enabled) correctly, but on 21 it will keep the button on same color for all states Sep 13 15:29:39 because it was implemented differently i guess? :> Anyway, try to use appcompat methods if available Sep 13 15:30:18 can someone point me to the right direction? i have a simple webview app that loads a website. the website has some.js in it. the emulator in android works with the some.js. do i have to inject some.js or some other method? Sep 13 15:30:48 ktwo: I thought AppCompat should provide newest api behavior to older one Sep 13 15:30:54 not the opposite Sep 13 15:30:57 *in android studio Sep 13 15:31:09 Moshdev, what code exactly are you trying have an example? Sep 13 15:31:34 Len_, so said the emulator works, so where is the issue? Didn't get that. Sep 13 15:32:02 issue is when i load the apk on the phone Sep 13 15:32:10 Sep 13 15:32:20 ktwo: lets say we use this theme Sep 13 15:32:28 and we have a button in that screen Sep 13 15:32:39 and you toggle its state enable or disabled Sep 13 15:32:59 a ToggleButton? Sep 13 15:33:11 Button Sep 13 15:33:23 2 buttons Sep 13 15:33:31 Len_ what happens there? Sep 13 15:33:34 one enabled and another one disabled Sep 13 15:33:38 Moshdev, hm let me see Sep 13 15:33:46 when i install the apk on the phone, the website loads but when it gets to the some.js part nothing happens Sep 13 15:34:04 on API 17 for disabled button, it will have 50% alpha bg (which is correct) Sep 13 15:34:23 but on API 21, the disabled button will remain 100% alpha bg (which is incorrect) Sep 13 15:34:41 Len_, any hint in the Logcat? Sep 13 15:36:06 ktwo: another thing, you cant use color selectors for colorButtonNormal on pre 21 Sep 13 15:36:33 Ive added the code you mentioned but nothing happens, button stays the same hm Sep 13 15:37:05 ah ok now it works Sep 13 15:37:11 probably didnt update yet Sep 13 15:37:32 can you show me what you did there? Sep 13 15:37:40 maybe you have something different than mine Sep 13 15:37:42 ill check ktwo Sep 13 15:38:06 so api 17 and api 21 are different? Sep 13 15:38:10 let me create an avd.. Sep 13 15:39:59 ok Sep 13 15:42:38 Moshdev, hm yea on Api17 it seems to have no effect Sep 13 15:43:18 did you use color selector? Sep 13 15:43:36 Moshdev, my mistake again, now it is the same in both :) Sep 13 15:43:36 sec Sep 13 15:43:40 I sure wish I could remember where to change the output path for signed APKs Sep 13 15:44:21 ktwo: share me the sample Sep 13 15:45:12 Moshdev, there is no sample, it's the code you posted above, added it into styles.xml to see the difference Sep 13 15:45:33 Moshdev, which Appcompat are you using? I'm on compile 'com.android.support:appcompat-v7:24.2.0' Sep 13 15:45:57 ktwo: the same Sep 13 15:46:10 ill try to create a sample project, rather than the current one Sep 13 15:46:17 ktwo: ill share it with you Sep 13 15:48:12 Moshdev, i mean just looking at the button i can only see a slight difference in shadow, but other than that, they're both red, and clicking on it makes them both a bit darker Sep 13 15:48:16 anybody happy with Xamarin for multi-platform dev ? Sep 13 15:48:50 try to have 2 buttons, one disable and the other enabled Sep 13 15:51:05 Moshdev, uh ok you're right on API21 (actaully i was using 22), it's different Sep 13 15:51:28 instead of being slightly transparent it stays red, only text is changed Sep 13 15:51:37 which one is the right behaviour? Sep 13 15:52:05 well i guess on api17 it looks better - wether it is right - hm hard to tell. let me see how they look without that override Sep 13 15:55:07 hi Sep 13 15:55:27 Hi Ben #1 Sep 13 15:55:47 I checked out my android app from git but on my second workstation it is not running Sep 13 15:56:02 in my manifest all ressources and activity names are marked red in android studio Sep 13 15:56:08 you're going to need to provide some more detail than that Sep 13 15:56:13 do you have the same SDK packages installed Sep 13 15:56:14 Moshdev, https://code.google.com/p/android/issues/detail?id=176472 this might be interesting Sep 13 15:56:27 tx: yes I have installed all sdk packages Sep 13 15:57:06 is this android studio project Sep 13 15:57:32 sometimes android studio says i'm not using gradle but I have gradle files and when I click on make android studio says "gradle build is running" so I think I'm working with gradle Sep 13 15:57:45 Ashiren: yes it is an android studio project Sep 13 15:58:45 hmm Sep 13 15:58:50 my settings gradle contains include ':app', ':volley' Sep 13 15:58:59 so modules are added Sep 13 15:59:38 <_genuser_> so rebuilding project after removing a whole bunch of deps from gradle and the apk is still the exact same size! Sep 13 15:59:51 my class files have a red circle instead of the green one, could this information help? Sep 13 16:00:31 ktwo: i never saw this before 'android:alpha="?attr/disabledAlpha"' Sep 13 16:01:11 Ben_1: seems its quite messed up Sep 13 16:01:51 Ben_1: Ensure it works from the command line Sep 13 16:02:10 If it does, then you know it's your AS setup that's at fault Sep 13 16:03:41 ktwo http://pastebin.com/raw/SkGbXsFE Sep 13 16:03:43 on workstation A it is working, just on workstation B not. So I closed the project and reimported it. Now this problem is gone, but I have this one: Error:Execution failed for task ':volley:processReleaseResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'pathToSdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 127 Sep 13 16:19:58 Hi. I have a spinner, but the length of its elements is too big for the width of the screen, so they are shown as "..." at the end. What I would like to do is to have it automatically increase the height of reach "row". Sep 13 16:30:49 I know there is a simple way to direct a signed apk to a certain folder, how do I choose .apk path on build? Sep 13 16:47:00 Good morning all. Sep 13 16:50:24 Is anyone working on a large codebase and has experience extracting code in seperate modules? Sep 13 16:50:53 Thinking about doing an almost complete rebuild and making different components as seperate libraries and included into an app via gradle Sep 13 16:51:05 wanting to know if there are any suggest patterns or ways of doing this Sep 13 16:53:18 hi! my libgdx-app gives me error "W/KeyLabelResolver: Failed to fetch resource bundle for %s, using fallback bundle java.io.FileNotFoundException: key_label_bundles/sv.dat" when trying to launch with android studio. any idea whats happening? Sep 13 16:53:20 just make sure you don't refucktor it Sep 13 16:53:51 "refucktor" <- what Sep 13 16:53:56 hi,, how are you doin'? Sep 13 16:54:36 I've done something like this in a project and been wondering if i could find a better way to implement it: https://snag.gy/0wfV61.jpg (or some other UI/UX pattern for such use case) Sep 13 16:55:25 bitkiller: What are the actually options? Sep 13 16:55:38 If they are all of similar importance, then have them in a single dropdown Sep 13 16:55:46 actual* Sep 13 16:55:57 orbyt_ its when you try to refactor but just fuck things up more Sep 13 16:56:53 some options (the main ones) are more used, so it makes sense set them with a single tap Sep 13 16:57:17 Use toggle switches Sep 13 16:58:21 how can i apply a theme without restarting the activity? Sep 13 16:58:28 My solution so far is to use an adapter for the main buttons (toggle buttons/switches) and a sub-adapter for the dropdown (which is itself a toggle button that shows the list of other options on tap). Then i manage the highlight state according to the user action. Sep 13 16:59:17 what adapter Sep 13 17:00:36 m712: You need to restart it Sep 13 17:00:54 You can add some sort of animation to fade it in/out but youll need to restart it Sep 13 17:02:07 orbyt_, it's an arraydapter set to gridview Sep 13 17:02:16 then do you know a solution for this: i have a preferencefragment and an apptheme ListPreference option in it. the first time i change the theme the activity restarts but the second time i try it getActivity() returns null. can i work around this? Sep 13 17:02:24 bitkiller: For just a couple buttons? Sep 13 17:03:07 m712: Slide for reddit is open source and does theming fairly well, check out its code. Sep 13 17:03:18 okay thanks Sep 13 17:04:39 orbyt_, It may be many options. Placing all in the UI as buttons would bloat it Sep 13 17:05:28 The user can config the options and the option position as well Sep 13 17:05:46 <_genuser_> takes forever on my api 19 phone for my app to come up. Sep 13 17:06:32 <_genuser_> what's best way to analyze for problem points? Sep 13 17:06:42 and there is fot now a compile option for setting how many buttons should be in the grid Sep 13 17:07:26 the dropdown is a spinner with an arrayadapter/spinneradapter Sep 13 17:14:51 does nobody know how to change the path which an .apk is placed when building with Android Studio? Sep 13 17:15:04 this seems like it should be a really simple quesiton Sep 13 17:15:15 yet Google is not cooperating Sep 13 17:25:36 Hey. Quick question - where do you guys get your android icons from, besides the material website? Sep 13 17:25:43 is there anything like fontawesome for android? Sep 13 17:26:04 you can just use Font Awesome Sep 13 17:27:50 would that be by importing the font file s73v3r? Sep 13 17:28:00 since it's all held on a cdn or locally otherwise Sep 13 17:28:07 Grab their svgs Sep 13 17:28:16 you can download the font file Sep 13 17:28:24 and then just use it like any other custom font Sep 13 17:28:37 okay gotcha Sep 13 17:28:42 u can try emojiOne Sep 13 17:28:50 also available as a font Sep 13 17:28:51 or like orbyt_ said, just download the svg and put it in my drawable? Sep 13 17:29:13 you need to convert the svg to a vector drawable Sep 13 17:29:25 AS does it automatically Sep 13 17:29:28 and place that xml in your drawable folder Sep 13 17:29:47 wait so i don't need to convert if AS does it automatically? Sep 13 17:29:54 correct Sep 13 17:29:59 awesome, thanks Sep 13 17:30:11 i wasn't sure if i could have drawables in my svg Sep 13 17:30:14 i mean Sep 13 17:30:19 svg's in my drawables Sep 13 17:30:20 i need sleep Sep 13 17:30:46 new -> vector asset -> import local svg Sep 13 17:31:15 okay and that gets placed in drawables automatically Sep 13 17:31:35 does it put them in the various different drawable folders for different screen sizes as well? Sep 13 17:31:45 Its an svg, so no Sep 13 17:31:53 you dont need different sizes Sep 13 17:31:58 thats kinda the point Sep 13 17:32:12 it halfassed my svg's orbyt_ Sep 13 17:32:22 what Sep 13 17:32:23 how does it know which size to set the svg at depending on the screen size though? Sep 13 17:32:36 created the drawables via some 3rd party project Sep 13 17:32:42 it's scalable Sep 13 17:33:03 Faizan: Do you know what an svg is? Sep 13 17:33:06 I know but don't you still need to control what size it scales to Sep 13 17:33:07 yeah i do Sep 13 17:33:13 i've used them for web designing Sep 13 17:33:20 Faizan: also if you select new -> vector asset there are google's material icons already available in there Sep 13 17:33:21 can scale without losing any quality Sep 13 17:33:36 You can define the size in the vector drawable, or the size of the imageview Sep 13 17:33:39 give me a moment to fire up AS Sep 13 17:34:02 yeah Sep 13 17:34:06 oh god damn Sep 13 17:34:09 dp thats why Sep 13 17:34:16 i'm thinking of it in terms of pixels Sep 13 17:34:31 and thinking if i set it to 24x24 px then it might look okay on a phone but shitty on a tablet Sep 13 17:34:37 kind of forgot the whole point of dp Sep 13 17:34:57 the cool thing about using it as a font is you don’t have to worry about that Sep 13 17:35:15 yeah that's what i liked about font awesome Sep 13 17:35:23 just set a font size and you're good to go Sep 13 17:35:23 Faizan: new -> vector asset -> material icon -> choose will give you access to the google material icons, there are lots available in there Sep 13 17:35:30 Faizan: yup Sep 13 17:35:37 thanks alot m712 Sep 13 17:35:39 vector assets are nice Sep 13 17:35:39 appreciated guys Sep 13 17:35:45 np ^.^ Sep 13 17:36:02 is there any tutorials you guys can recommend about learning the basics about design/styling? Sep 13 17:36:09 i can't seem to pick up much from the dev tutorials Sep 13 17:36:20 They really need to add a search function to the material vectors window Sep 13 17:36:21 it talks more about the do's and don'ts, not the how's Sep 13 17:36:36 orbyt_: same thought Sep 13 17:36:47 Faizan: google has material design guidelines Sep 13 17:37:10 yeah but they're exactly that - guidelines, imo it doesn't teach a rookie like me about how to start with icon importing etc Sep 13 17:37:11 https://material.google.com/ Sep 13 17:37:18 i guess that all comes with experience thouggh Sep 13 17:37:19 though* Sep 13 17:37:26 or maybe i'm just stupid idk Sep 13 17:37:34 what does importing an icon have to do with design =/ Sep 13 17:37:40 http://lmgtfy.com/?q=material+design+tutorial Sep 13 17:37:48 idk Sep 13 17:37:52 i'm not thinking straight lol Sep 13 17:38:14 http://androidniceties.tumblr.com/ Sep 13 17:38:28 Read the guidelines and then go through your favorite apps Sep 13 17:38:28 orbyt_: ¯\_(ツ)_/¯ Sep 13 17:39:59 ah cool link orbyt_ thanks Sep 13 17:42:11 Jeez orbyt_ I second that about adding a search function to the material vector window Sep 13 17:42:20 now i see where balsamiq got their icons from Sep 13 17:43:08 So, I just fixed a bug that has been plauging our app since the beginning. It is responsible for 80% of our crashes. The reason it was hard to find was that RxJava does not report why an OnErrorFailedException failed, but it does report what the OnError error was. I am curious as to why the decision was made to not report the cause of OnErrorFailedException in the stack trace. Sep 13 17:45:36 s73v3r xcode 8 + swift 3 Sep 13 17:45:48 Hey Sep 13 17:46:17 m712: there's no way to import alternative white vectors from that window is there? unless i'm missing something Sep 13 17:47:16 Faizan: set the fill color Sep 13 17:47:18 in the xml Sep 13 17:47:27 but no not from the window Sep 13 17:47:44 Question... Does anyone here do BDD on Android? Sep 13 17:47:49 or know the best tools for such a thing? Sep 13 17:48:14 Maybe some prozac Sep 13 17:48:42 my employer wants to move towards BDD on Android and iOS Sep 13 17:48:53 Faizan: Local SVG file Sep 13 17:49:28 Yeah I just went for orbyt_'s suggestion but downloading it from material website was another alt Sep 13 17:49:43 Faizan: if you mean the fill color it's in the xml Sep 13 17:49:50 yeah do what orbyt_ suggested Sep 13 17:49:50 yeah Sep 13 17:50:04 android:fillColor="#FF000000" -> android:fillColor="#FFFFFFFF" Sep 13 17:52:12 but if you are using a NavigationView it might be a better option to set the colors programmatically or via xml of the navigationview Sep 13 17:52:17 for Sep 13 17:52:28 when you are making themes for your app Sep 13 17:53:23 hmm Sep 13 17:54:04 matt_j: ? Sep 13 17:54:15 hey Sep 13 17:54:34 anyone know an expert I can talk to about implementing BDD on Android? Sep 13 17:54:38 (I know this sounds insane) Sep 13 17:56:08 BDD? Sep 13 17:56:27 Behavior Driven Development Sep 13 18:07:53 I know the interest in Xamarin someone recommend? Sep 13 18:08:31 was that english Sep 13 18:09:58 I need to populate a GridView with 3×3 items pr. page. When I tab a More button, 9 more should be loaded. Well, preferably the next few pages were already loaded, but you get the idea. I'm think of using a BaseAdapter for the GridView. I suppose I can always load (say) 90 items, and detect when the user is loading item nr. 60, and then load 90 more in an AsyncTask and add them and notify of changes. Is this a sane approach? Sep 13 18:10:21 use a RecyclerView and use a Grid layout Sep 13 18:10:27 grid layout manager Sep 13 18:10:46 but that approach is generally how endless lists are done Sep 13 18:10:54 minus the asyncTask Sep 13 18:11:06 just use whatever you use for a regular web request Sep 13 18:11:34 I need to be able to drag an drop each individual item in the grid. And when an item is dropped off (e.g. a trashcan) a new should be loaded in its place. Is that possible with RecyclerView? Sep 13 18:12:35 yup. you’ll have to do a little more work to put that in, but I think you’d have to do the same amount of work for a GridView Sep 13 18:13:19 Thanks. Sep 13 18:13:42 And thanks for reminding be of RecyclerView + GridLayoutManager. Sep 13 18:14:32 Oh one thing, though. I need to limit the grid to display 3×3. It's not supposed to behave an endless list I can scroll in. Sep 13 18:14:57 so you’d have an endless set of pages, with each page being a 3x3 grid? Sep 13 18:15:12 and when you swipe up, a new page is shown Sep 13 18:15:15 ? Sep 13 18:15:55 Yes, only instead of swiping there'll be Next/Prev buttons. Sep 13 18:16:59 in that case, grid view would be better Sep 13 18:17:12 when the button is pressed, just replace the data the adapter is using Sep 13 18:17:31 actually, I don’t know if gridview would be better. Sep 13 18:17:37 it wouldn’t be worse Sep 13 18:17:44 =) Sep 13 18:18:34 A GridView seems is more like a static view of 3×3. A RecyclerView is usually scrollable. Sep 13 18:18:41 yeah Sep 13 18:19:07 however, when you hit prev/next, you probably want some kind of animation, which the recyclerview is set up to handle Sep 13 18:19:19 it can be done with a gridview, but I think it’s a little more work Sep 13 18:20:41 I was thinking of making a simple fade out items, replace, fade in - perhaps with a delay so a slide-effect is achieved depending on whether Next or Prev is pressed. Sep 13 18:21:16 The next/prev requirement is messed up, but that's how it's defined. At least to begin with. Sep 13 18:26:21 Should drawables be rescaled automatically? I don't think my icons are being rescaled Sep 13 18:28:01 Make sure you follow the folder structure as outlines here: https://developer.android.com/guide/topics/resources/providing-resources.html Sep 13 18:29:10 Oh I need to add extra drawable folders because i'm working with xml and not a bitmap Sep 13 18:29:12 damn Sep 13 18:33:29 are these drawables not something that’s included in FontAwesome? Sep 13 18:35:31 They probably are but I thought that using the vector asset thing should be pretty straight forward Sep 13 18:35:52 is there a way of turning on location via adb on api 23 ? Sep 13 18:37:29 on API 21 I this used to work: adb shell su -c settings put secure location_providers_allowed gps Sep 13 18:37:44 But now on API 23 it doesn't anymore =/ Sep 13 18:38:18 you probably have to ask for permission, and grant it on the device Sep 13 18:38:43 "Android 4.4 (API level 20) and lower doesn't support vector drawables" Sep 13 18:38:46 whaaaaaaaat Sep 13 18:38:52 yup Sep 13 18:39:00 png files it is Sep 13 18:39:01 there might be a VectorCompat, I think Sep 13 18:39:01 lol Sep 13 18:40:52 s73v3r: even with root? Sep 13 18:40:53 abd s73v3r the reason I'm not using font awesome is because the icon is on an image Sep 13 18:41:01 Masterphi: yes Sep 13 18:41:04 the icon is on a button** Sep 13 18:41:14 Faizan: that shouldn’t matter Sep 13 18:41:15 so i'm using drawableLeft, drawableTop for example Sep 13 18:41:17 really? Sep 13 18:41:44 if it’s on a button, you can play around with the button margins around the textview on the button Sep 13 18:43:06 Hmm. What do you think of using a png with drawables instead? Sep 13 18:43:26 you could do that; it’s the normal way of doing things Sep 13 18:43:41 just provide a png for each density bucket Sep 13 18:43:46 okay, would it just be an image asset? Sep 13 18:43:58 if i import it as an image asset, it throws it in the density buckets for me Sep 13 18:44:05 or atleast it did for the launcher Sep 13 18:44:08 launcher icon* Sep 13 18:44:19 you’d need to have one for each density Sep 13 18:44:55 right okay so it wouldn't make them for me Sep 13 18:45:00 no Sep 13 18:45:12 aw man Sep 13 18:45:13 ConstraintLayout alpha 8 .. i guess this isn't going to be ready with AS 2.2 stable then Sep 13 18:45:14 you have to use photoshop or illustrator or whatever to do that yourself Sep 13 18:45:23 right okay Sep 13 18:45:31 the reasoning being that you may want to alter your images based on the density and size Sep 13 18:46:19 yeah Sep 13 18:46:38 i just thought it would do the resizing for me like it did with the launcher icon Sep 13 18:47:09 nope Sep 13 18:47:44 wait, are you talking about Studio, or android itself? Sep 13 18:47:48 studio Sep 13 18:48:01 yeah, I’ve never seen it do that for things that aren’t vectors Sep 13 18:48:14 really? it did it for a launcher ucon for me Sep 13 18:48:27 made a bunch of mipmap folders and stuck different size icons in each one Sep 13 18:48:29 did it actually do that, or just copy the image? Sep 13 18:48:36 they were different sizes Sep 13 18:49:24 now i have to figure out what size icons are good for the various screen densities Sep 13 18:49:48 Hmm. For iap subscriptions it looks like downgrading is immediate. Am I reading that correctly? Sep 13 18:50:35 Faizan: Basically, you make one at MDPI, and then scale up. HDPI is 1.5, XHDPI is 2, XXHDPI is 3, etc Sep 13 18:50:50 ahh okay that's really helpful thanks Sep 13 18:51:03 i thought it would be a lot of guess work Sep 13 18:51:16 there’s a table somewhere on the android developer site Sep 13 18:51:26 yeah i figured there would be but i'm having no luck finding it Sep 13 18:51:48 https://gyazo.com/7945bc02120a275b159384662c144fe9 Sep 13 18:51:58 is that what you're referring to? Sep 13 18:52:34 yeah Sep 13 18:52:45 Hi guys, i'm new in android development, can anyone give some links where i can read about View templating (like HTML templates in RoR on example) Sep 13 18:53:05 shit now i need to find the table that shows what screen size refers to what bucket Sep 13 18:53:09 saw it 2 mins ago Sep 13 18:53:15 TroRg: i’m pretty sure that isn’t a thing Sep 13 18:54:31 support lib 24.2.1 Sep 13 18:56:09 Apparently it removes 24.2.0 Sep 13 18:56:27 s73v3r: may be other ways to create views and reuse them =) Sep 13 18:56:27 Guess I'll wait with updating Sep 13 19:00:15 SimonVT i thought they were going to stop doing that ... Sep 13 19:00:30 though this was discussed at the last i/o Sep 13 19:00:37 Didn't know they started Sep 13 19:00:49 but yeah its missing, it must have been pretty bad :P Sep 13 19:01:31 yeah a few versions of support lib / gradle plugin over the years have 'disappeared' Sep 13 19:02:13 Gradle plugin has never disappeared over the years Sep 13 19:03:16 Maybe some day their lawyers will let them put support libraries on maven central.. Sep 13 19:04:27 I don't want to treat this as the gospel of information is there another site that better explains the simple camera better then google https://developer.android.com/training/camera/photobasics.html Sep 13 19:11:55 also a topic that just came up is does Google offer certifications in android ? similar to that of other IT certifications Sep 13 19:12:35 There’s the Udacity cource, which you can pay to get a certificate for Sep 13 19:12:59 although like most certifications, most people don’t take them seriously Sep 13 19:13:44 yeah that was the first thing in mind but it seems for the new developer and not geared toward people that know JAVA well Sep 13 19:14:46 really I would think ( still in the middle of the 1st udacity course ) that this teaches everything needed and people should take em seriously. But its just like school in general it will not prepare you for the real world Sep 13 19:16:16 but then again I got A+ certified once i read the checklist and then i Identified hardware in a multiple choose questions to get a pdf saying I paid to take a test Sep 13 19:24:19 evenin Sep 13 19:27:55 s73v3r: um.. GridView... how do I fix it to 3×3? I can only see how to set number of columns, but not number of rows... Sep 13 19:28:37 so give it 9 elements Sep 13 19:29:15 hmm... okay, I'll try that. Sep 13 19:29:43 So the adapter's getCount() should just return 9? Sep 13 19:30:35 should be it fixed number? Sep 13 19:31:49 I want a fixed grid of 3×3. I then want manual pagination with prev and next buttons. Sep 13 19:35:25 I can't figure out if it's easier to just layout my own grid of FrameLayouts and manually populate them using my homemade GridViewPaginatingAdapter Sep 13 19:38:34 hey guys Sep 13 19:38:59 i am seeing a weird issue. I have a byte array of length of 580414. For some reason whenever i try to use decodeByteArray Sep 13 19:39:19 I get an Out of Memory exception. Been googling, and found information but its always for much larger images Sep 13 19:39:25 any other ideas the room may have> Sep 13 19:41:02 Bitmap.decodeByteArray? Sep 13 19:41:39 is byte array compressed image? Sep 13 19:42:00 yes Sep 13 19:43:21 xximjasonxx, how big is your image? Sep 13 19:43:29 580414 bytes Sep 13 19:43:40 but compressed Sep 13 19:43:42 not compressed. Sep 13 19:43:46 compressed Sep 13 19:43:47 to decode it has decompress it Sep 13 19:43:50 Raw - what's the dimension? Sep 13 19:43:51 in memory Sep 13 19:43:57 camera Sep 13 19:44:05 not sure the diimensions Sep 13 19:44:11 yeeaaaah. Sep 13 19:44:16 just reading it from the server, give me a second to take a picture Sep 13 19:44:17 it has to decompress to 4 * width * height bytes Sep 13 19:44:19 Opening camera images will OOM you immediately :D Sep 13 19:44:34 Mavrik: any reason to think decodeStream will handle this better? Sep 13 19:44:49 i.e. 4 * 1920 * 1080 = 8294400, about 8 MB Sep 13 19:44:57 It's the decompressed image that doesn't fit into your heap. Sep 13 19:45:17 Use inSample to decode it at smaller size. Sep 13 19:45:46 Mavrik: understood Sep 13 19:45:47 thanks Sep 13 19:47:32 talk to the dev on the iOS side, said they had a similar problem but i guess its handled automatically in iOS Sep 13 19:47:50 It's not. Sep 13 19:48:37 "a pkgdiff between 24.1.1 and 24.2.1. It looks like they reverted a lot of changes from 24.2 as there's less of a diff than from 24.1.1 to 24.2.0." Sep 13 19:49:08 well i am trying an insamplesize of 4 Sep 13 19:49:17 see if this works Sep 13 19:50:11 Uhh... Sep 13 19:50:13 calculate it. Sep 13 19:50:16 Don't hardcode it. Sep 13 19:50:22 Unless all your server images are the same size. Sep 13 19:50:23 ok Mavrik got past the line that was crashing, now i just need to play with this to get the image to still look nice Sep 13 19:50:43 All that is explained in bitmap guide article on Android dev site :/ Sep 13 19:50:55 https://developer.android.com/reference/android/graphics/BitmapFactory.Options.html Sep 13 19:59:23 ffs idk what's going on but my drawables sizes aren't displaying correctly Sep 13 20:04:31 meh, I still hate all the database solutions I can find Sep 13 20:05:16 Zharf did you try sqlbrite ? Sep 13 20:06:51 I've been on the github page so Ithink so Sep 13 20:07:07 i just use raw sqlite apis Sep 13 20:07:28 Realm? Sep 13 20:07:59 what density does google nexus 7 fall under Sep 13 20:08:01 xhdpi right? Sep 13 20:08:58 which nexus 7 Sep 13 20:09:16 2012 sorry Sep 13 20:09:32 https://design.google.com/devices/ Sep 13 20:09:47 2012 nexus 7 is tvdpi Sep 13 20:09:53 tvdpi Sep 13 20:09:54 hmm Sep 13 20:10:03 do I need to create a drawable folder called drawable-tvdpi? Sep 13 20:10:09 that could be my problem Sep 13 20:10:14 mipmap? Sep 13 20:10:32 Faizan, android generally scales from the closest suitable Sep 13 20:10:34 actually it's just as bad on the nexus 9 Sep 13 20:10:56 let me show you guys Sep 13 20:11:05 https://gyazo.com/c09f35f5b26fc4924add854d7b84aad5 nexus 9, look at the size of that icon Sep 13 20:11:38 https://gyazo.com/28ae72db76f0bc72ff1c189facdac4dc Sep 13 20:11:49 that's the actual size of the png in my xhdpi density bucketr Sep 13 20:11:51 bucket* Sep 13 20:11:56 xximjasonxx, native code dependencies is something I don't want Sep 13 20:11:58 not sure if that's the best way to show you guys Sep 13 20:12:07 but its 144px by 144px Sep 13 20:12:26 however i'm not getting that size on my button Sep 13 20:12:51 if it's 144x144 px and you put it in xhdpi directory Sep 13 20:13:26 it would be 1:1 on nexus 9 Sep 13 20:13:34 exactly what i thoughjt Sep 13 20:13:41 i'm confused why it's not showing like that Sep 13 20:13:44 it's so scaled down Sep 13 20:13:49 even tried 9 patch Sep 13 20:13:56 it's not scaled down Sep 13 20:14:15 hmm? Sep 13 20:14:52 take an actual screenshot on a nexus 9 and measure it Sep 13 20:15:06 a physical device? Sep 13 20:15:12 i don't have a nexus 9, i have a google tango however Sep 13 20:15:21 which is i think the same as nexus 7 2013 Sep 13 20:15:24 screenwise Sep 13 20:18:49 the issue is screen dpi Sep 13 20:19:04 on a higher dpi screen pixels are smaller Sep 13 20:20:10 so you're saying a 144px icon might be too small for my purposes Sep 13 20:20:24 stop thinking in px for a moment Sep 13 20:20:50 https://material.google.com/layout/units-measurements.html#units-measurements-density-independent-pixels-dp Sep 13 20:21:14 i get what you guys mean that px is exactly that, it's not scalable on different devices like dp is Sep 13 20:21:22 but isn't that what the density buckets are for? Sep 13 20:21:43 Well, technically, yes. Sep 13 20:21:45 sure, but the devices aren't built exactly to those buckets Sep 13 20:21:51 but ideally, you’d design in mdpi, Sep 13 20:22:01 and then generate higher resolution icons from your vector files, Sep 13 20:22:03 yeah mdpi as a baseline Sep 13 20:22:06 because at mdpi, 1dp = 1px Sep 13 20:22:20 on xhdpi, you should get a 1dp = 2px, Sep 13 20:22:32 im actually using icon8 to get my icons Sep 13 20:22:34 and if your 72dp icon is too small, Sep 13 20:22:40 you might want to create a larger one Sep 13 20:23:01 another thing is that likely you don’t want to use icons as PNG anymore, Sep 13 20:23:11 but as android vectordrawable, which then auto-scale Sep 13 20:23:27 hmm Sep 13 20:23:35 right okay Sep 13 20:23:56 like i said i've been using icon8, it allows me to download icons at different sizes, essentially vectors that are scaled down or up Sep 13 20:24:06 and i set 48px as my baseline Sep 13 20:24:06 with those, you can change the size of the view, and they automatically adapt, so you can change it in the layout, and don’t have to redownload Sep 13 20:24:56 so i should avoid png's altogether? Sep 13 20:25:24 well, long-term, you might want to do that, yes. Sep 13 20:25:48 obviously depends on how much effort you want to spend right now on "doing it right" vs. "creating a minimum viable product" Sep 13 20:26:23 right now it's the latter Sep 13 20:26:28 i'd like to work on functionality asap Sep 13 20:26:33 something i'd find easier Sep 13 20:26:38 and then refine the design towards the end Sep 13 20:26:45 well, then just do some pngs, drop them in, and just increase baseline size if needed Sep 13 20:26:59 the thing is though at the baseline mhdpi, the size is perfect Sep 13 20:27:05 let me show an example quick Sep 13 20:27:27 mdpi* Sep 13 20:28:22 actually there are no mdpi devices i think? Sep 13 20:28:40 they're getting a bit rare but there are still some Sep 13 20:31:44 https://gyazo.com/0c7dbd9b78dad0a3822419a6084529cf Sep 13 20:31:44 that's what it looks like on an mdpi phone Sep 13 20:32:58 but your elements are way larger than that on the nexus9 Sep 13 20:33:03 ^ Sep 13 20:33:16 it's all relative, the image is the same size relative to the font size for example Sep 13 20:33:21 Aside from that, you shouldn’t use that kind of layout in the first place Sep 13 20:33:29 but your boxes are way bigger because there's more space available Sep 13 20:35:41 dced or something Sep 13 20:35:46 idk if you guys saw the screenshot Sep 13 20:35:53 we did... Sep 13 20:36:06 I said Sep 13 20:36:25 " but your elements are way larger than that on the nexus9... 's all relative, the image is the same size relative to the font size for example.. but your boxes are way bigger because there's more space available Sep 13 20:36:29 " Sep 13 20:36:46 https://web.archive.org/web/20140625231028/http://developer.android.com/design/patterns/app-structure.html Sep 13 20:36:58 > Many apps focus on the content display. Avoid navigation-only screens and instead let people get to the meat of your app right away by making content the centerpiece of your start screen. Choose layouts that are visually engaging and appropriate for the data type and screen size. Sep 13 20:37:41 i'm so confused with all of this Sep 13 20:37:53 think i'm gonna call it a day and do some reading up Sep 13 20:38:50 So, I'm stuck at "Waiting for Debugger." (This has been a nonstop problem for me since, I don't know, 2009?) I restarted my phone. I restarted Android Studio, ADB, my computer. Nothing. Is it possible to do anything to diagnose this further? Sep 13 20:38:54 Faizan: do you use android personally? Sep 13 20:39:00 yeah Sep 13 20:39:17 try looking at some of the apps that implement similar functionality, Sep 13 20:39:23 even if it’s just slightly related Sep 13 20:39:29 so something like a camera app Sep 13 20:39:37 just install a dozen or more of them, and look at them Sep 13 20:39:52 i know what you mean by the thing you copied and pasted Sep 13 20:39:59 i just feel that this screen is somewhat relevant Sep 13 20:40:03 to get a feeling, some inspiration, something to look at when you feel like you have no idea what to do Sep 13 20:40:04 Faizan, let's say you have a 480x320 mdpi phone, it has 480dp x 320dp space on it, nexus 9 has 1024dp x 768dp... Sep 13 20:40:14 hm, well, what kind of app is it going to be then? Sep 13 20:40:41 it's an app for the google tango, using it's cameras and motion tracking capability to record and track insects Sep 13 20:40:56 essentially going to be using opencv Sep 13 20:41:17 taking a template of said object, template matching, drawing bounding box on said object and recording/saving the recording to view Sep 13 20:41:50 hm Sep 13 20:42:08 yeah Zharf i get the dp aspect somewhat, i just don't know what's the best way to tackle my buttons Sep 13 20:42:14 then a possible material-like way of doing that would be by showing a screen with the existing recordings by default, with a big fat button to create a new one? Sep 13 20:42:19 i'll show you my prototype of somethign i was looking to do Sep 13 20:42:40 will it be de'bug mode :) Sep 13 20:43:04 yeah justJanne, but what if the app is fresh and there's no recordings? Sep 13 20:43:08 too much ugly whitespace Sep 13 20:43:27 you design a stale state Sep 13 20:43:33 well, use clipart, iconography, etc, to playfully suggest the user to record something Sep 13 20:43:41 a screen to show in such a situation, which would prompt the user to create one Sep 13 20:44:09 https://gyazo.com/1754ce7e8864719aa5474b1e3b69b2cf that was my mockup Sep 13 20:44:10 UI design... the bane of any developer Sep 13 20:44:17 too right Zharf... Sep 13 20:44:19 justJanne: hi. Sorry for the other day. I was sleep deprived. I shouldn't have reacted in that manner. Sep 13 20:45:07 Faizan: do you have a mockup for the "view recordings" screen? Sep 13 20:45:31 nope, it was essentially going to take me to file storage lol Sep 13 20:45:35 nothing sophisticated Sep 13 20:45:43 so many projects to start but all of them stuck in the beginning because of UI design Sep 13 20:46:00 Zharf: well, I start by doing UI design, and then maybe later add some code ;) Sep 13 20:46:12 I *love* UI design :3 Sep 13 20:46:18 I can't stand it Sep 13 20:46:25 Me neither Sep 13 20:46:30 despise it so much Sep 13 20:46:35 but that’s what 99% of an app is Sep 13 20:46:39 design me some things justJanne :P Sep 13 20:46:51 s73v3r, hardly Sep 13 20:46:53 Zharf: for what? What are your users, what’s your use case? Sep 13 20:46:55 unless you work in a team with designers s73v3r Sep 13 20:47:04 justJanne: can we be friends again? Sep 13 20:47:24 hardly? what else is there? Sep 13 20:47:32 arancio: From my side, there’s neither positive nor negative feelings towards you. Sep 13 20:47:41 justJanne, I don't have users, my users is me Sep 13 20:47:43 most of an app is showing things to the user, or taking input from the user Sep 13 20:47:57 Zharf: I’ll do paper mockups and experiment with them, I’ll draw things and and experiment with them, find people like your users and interview them, look at competing products and check them out Sep 13 20:48:04 that’s what I usually do to get some UI Sep 13 20:48:15 justJanne: do you think I should scrap that startup screen idea? Sep 13 20:48:19 check out Android Arsenal and the like for inspiration Sep 13 20:48:32 Hi guys! Is onRequestPermissionsResult() guaranteed to run before onResume() ? Sep 13 20:48:32 s73v3r: nah Sep 13 20:48:38 more like http://materialup.com/ and pinterest and stuff Sep 13 20:48:44 justJanne: ok. that's a good starting point. Sep 13 20:48:45 hadn’t seen that one Sep 13 20:49:34 it’s all animations and mockups, so many ideas, so much awesome Sep 13 20:49:54 AlexBerdnikov: did you ask that question 12 hours ago? Sep 13 20:50:10 I've been trying to think of a new way to using my music player, and another project would be a wanikani client (listing/searching kanji/vocabulary/radicalś, looking at SRS stats, etc) Sep 13 20:50:22 but maybe I'll get them started some day Sep 13 20:50:50 Question: if i have a baseline of say 60px mdpi, and xhdpi should be 2x according to android guidelines, what if I make it 3x? Sep 13 20:50:58 arancio: Yep :) Sep 13 20:50:58 btw, this is the most awesome android music player of all time ever seriously really https://play.google.com/store/apps/details?id=com.kabouzeid.gramophone Sep 13 20:51:05 Faizan: don’t do that with drawables. Sep 13 20:51:13 you’re using an imageview, right? Sep 13 20:51:19 okay so strictly follow the guidelines? Sep 13 20:51:23 first, move the image from drawable to mipmap, Sep 13 20:51:26 no, just using android:drawableLeft Sep 13 20:51:29 in my button view Sep 13 20:51:30 oh Sep 13 20:51:34 I see that it runs before onResume I just didn't find any information on whether it's determined behavior or not Sep 13 20:51:35 okay, well, then do it like this: Sep 13 20:51:40 have two versions of the icon, Sep 13 20:51:43 a smaller and a larger one, Sep 13 20:52:00 and create two versions of the layout: one in layout, Sep 13 20:52:05 one in layout-sw600dp Sep 13 20:52:15 I tried playing with a stupid idea during the summer for the player ui Sep 13 20:52:18 the one in layout-sw600dp will be used on tablets, only Sep 13 20:52:25 so you use the larger drawable in that one Sep 13 20:52:34 ah okay Sep 13 20:52:40 http://eclipser.xmms2.org/device-2016-07-24-162108.mp4 Sep 13 20:52:47 AlexBerdnikov: what is the user has to explicitly grant the permission? It would be called whenever the users taps a button, right? Sep 13 20:52:56 could i not have drawables using those kind of qualifiers? Sep 13 20:53:00 drawable-sw600dp Sep 13 20:53:12 yes, you could, Sep 13 20:53:20 Hi All - i got an issue with inflater .. its' always crashing .. Sep 13 20:53:31 would that be inferior to your solution? Sep 13 20:53:33 by having drawable-mdpi, drawable-hdpi, etc, and drawable-sw600dp-mdpi, drawable-sw600dp-hdpi, etc Sep 13 20:53:41 not necessarily Sep 13 20:53:46 View rootView = inflater.inflate(R.layout.fragment_control, container, false); <-- here any ideas Sep 13 20:53:54 so what does sw600dp exactly do? Sep 13 20:54:48 ah multipane layout Sep 13 20:54:53 eh, no Sep 13 20:55:16 oh Sep 13 20:55:21 it means: "use this if the smallest of (width or height) of the screen is at minimum 10cm" Sep 13 20:55:31 please help .. any pointers will be helpful Sep 13 20:55:33 so, if both width and height are > 10cm Sep 13 20:55:36 then it will be used Sep 13 20:56:14 i think google tango and nexus 7 2013 is 9.5cm Sep 13 20:56:15 lmao Sep 13 20:56:19 no, it’s not Sep 13 20:56:23 oh Sep 13 20:56:29 fels: crashes how? exception? Sep 13 20:56:46 why amn't i finding any documentation on this :( Sep 13 20:57:16 arancio: where can i see how ? Sep 13 20:57:19 the tango and nexus 7 is scaled to be exactly 600dp wide Sep 13 20:57:22 justJanne: what if I have xhdpi and drawable-sw600dp Sep 13 20:57:25 so it just barely is recognized as tablet Sep 13 20:57:37 Faizan: there’s a menu for that in android studio, btw Sep 13 20:57:40 which would the tango fall under if theres 2 possible buckets? Sep 13 20:57:44 oh there is? Sep 13 20:57:57 well, no Sep 13 20:58:01 well, yes Sep 13 20:58:08 you have to create each bucket double then: Sep 13 20:58:14 drawable-mdpi, drawable-hdpi, etc, and drawable-sw600dp-mdpi, drawable-sw600dp-hdpi Sep 13 20:58:16 fels: "Android Monitor" tab. Bottom of the screen of Android Studio Sep 13 20:58:18 you need all those folders then Sep 13 20:58:47 Zharf: but seriously try out phonograph, it’s the best player ever Sep 13 20:59:11 right okay so 10 buckets essentially Sep 13 20:59:18 it's the most Material player ever Sep 13 20:59:20 yes, basically Sep 13 20:59:30 right okay Sep 13 20:59:35 it’s more material than everything google ever did Sep 13 20:59:43 justJanne, it won't serve my needs though Sep 13 20:59:43 Throwing OutOfMemoryError "Failed to allocate a 3891212 byte allocation with 2526224 free bytes and 2MB until OOM" Sep 13 20:59:45 why can't i find any documentation on this Sep 13 20:59:54 arancio: Sep 13 21:00:03 fels: Sep 13 21:00:18 fels: you have 2.5M left. You use 3.9M. Sep 13 21:00:24 How much do you have after that? Sep 13 21:00:28 right, -1.4M Sep 13 21:00:31 arancio: Throwing OutOfMemoryError "Failed to allocate a 3891212 byte allocation with 2526224 free bytes and 2MB until OOM" AND allocation failed for scaled bitmap Sep 13 21:00:38 obviously, you can’t use 3.9 out of 2.5 Sep 13 21:00:41 that’s like, no Sep 13 21:00:48 you used up all your ram, and more Sep 13 21:00:56 Memory Usage 101 Sep 13 21:01:09 Arithmetic 101 Sep 13 21:01:29 whats an arithmetic Sep 13 21:01:33 arancio: OH!! ok - but is that the image size ? how do i make this work? Sep 13 21:01:46 fels: check the memory monitor in Android Studio, Sep 13 21:01:53 and memory dump and allocation tracker, Sep 13 21:02:02 to see where you use up lots of ram, Sep 13 21:02:06 and how to improve Sep 13 21:02:20 justJanne, what do you think makes it so great then? Sep 13 21:02:31 justJanne: - ok - you'd have to help me wit that - I think it's an image Sep 13 21:02:35 Zharf: the UI, the usability, the UI, did I mention the UI? Sep 13 21:02:50 fels: what are you doing with it? Sep 13 21:02:55 Is there anywhere I can find a tutorial of this guys question? http://stackoverflow.com/questions/21131110/add-dynamically-edittext-in-dialogue Sep 13 21:03:04 I can't seem to find anything on google Sep 13 21:03:34 amazoniantoad: you should write one Sep 13 21:03:47 arancio: I would if I could figure out how to do it Sep 13 21:03:48 justJanne: I do apologize for all the questions, but earlier you said the tango and nexus 7 *just* falls under the tablet category and falls into sw600 bucket, how exactly did you work that out? Sep 13 21:03:49 amazoniantoad: well, let’s start with the basics: Sep 13 21:03:51 justJanne: you mean the APP ? it's connecting to a BLE device but this sccreen is only a screen with ON / off buttons Sep 13 21:03:59 you create a class that extends from Dialog or AlertDialog, Sep 13 21:04:03 you inflate your custom layout, Sep 13 21:04:16 k Sep 13 21:04:17 and keep a second layout file for each edittext with title you want to later inflate Sep 13 21:04:25 hm Sep 13 21:04:26 thanks Sep 13 21:04:30 your main layout will basically be a linearlayout Sep 13 21:04:41 just, on addign one, inflate the new layout, add it as child to the linearlayout, Sep 13 21:04:48 and use it later on to retrieve its content Sep 13 21:05:09 (for example, keep a list of EditTexts to retrieve them later) Sep 13 21:05:25 but dialogs are not ideal for this kind of task anyway, Sep 13 21:05:32 so it might be more ideal to make a full activity for it, Sep 13 21:05:39 with customized save/cancel buttons Sep 13 21:06:08 justJanne: thanks Sep 13 21:06:43 I do something similar here: https://github.com/justjanne/QuasselDroid-ng/blob/master/app/src/main/java/de/kuschku/quasseldroid_ng/ui/setup/slides/CoreBackendSetupSlide.java Sep 13 21:07:10 (basically, I get a config definition from a server telling me which fields it wants, and I create UI elements for the fields, and when the user fills them out, I send the data back) Sep 13 21:07:39 Look only at my StringInputItem and how I use it, that’s basically most of what you want Sep 13 21:08:57 Faizan: simple, by having a Nexus 7 and having changed its DPI via root a few times Sep 13 21:08:59 for fun Sep 13 21:09:11 haha Sep 13 21:09:34 Faizan: if you change it just a bit higher, you used to get in older android versions a full taskbar, Sep 13 21:09:39 gonna read up on DP because i'm pretty sure it's core to android design lol Sep 13 21:09:42 which is why I used to do it Sep 13 21:09:47 it is Sep 13 21:09:51 ah okay Sep 13 21:10:02 i think the recommended design standard is 320dp x 480dp Sep 13 21:10:06 i think theres an udacity course on design Sep 13 21:10:36 justJanne: how do i use the memorny monitor etc ? Sep 13 21:10:56 you are in android studio in Android Monitor in the Monitors tab? Sep 13 21:11:13 collapse everything but memory, first, look at the allocated amount Sep 13 21:11:41 when you start the app, check to which level it goes before it tries loading the image and crashes, Sep 13 21:11:45 and tell me that please Sep 13 21:12:01 ok so my icon on the tablet was 96px on a 323 dpi screen, which equates to 71*71dp Sep 13 21:12:09 well, 72dp Sep 13 21:12:17 71.33 Sep 13 21:12:30 okay Sep 13 21:12:35 now i see why the icon was small Sep 13 21:12:36 well, android thinks the screen is actually around 320 or something Sep 13 21:12:48 the icon will always have the same size (in cm) Sep 13 21:13:00 if you make the screen twice as large, it will always stay the same physical size Sep 13 21:13:05 that’s the base concept of dp Sep 13 21:13:16 so only if the dpi changes then will the icon size change Sep 13 21:13:18 and why it looks larger on phone than on tablet Sep 13 21:13:20 roughly the same size... Sep 13 21:13:33 Well, yes and no Sep 13 21:13:39 right okay so these drawable folders are not dependant on the physical size screen at all Sep 13 21:13:49 they're dependent on the dpi Sep 13 21:13:51 the icon size (in cm) always stays the same, because for every percent the dpi goes up, the physical size goes up Sep 13 21:13:55 yes Sep 13 21:14:16 "because for every percent the dpi goes up, the physical size goes up" Sep 13 21:14:20 is that true? Sep 13 21:14:30 what if you just increase the resolution of the screen Sep 13 21:14:37 without necessarily increasing the phyiscal size Sep 13 21:14:55 then you would be upping the DPI Sep 13 21:14:55 ah, sory Sep 13 21:15:05 the icon size (in cm) always stays the same, because for every percent the dpi goes up, the icon size in px goes up Sep 13 21:15:17 ah okay Sep 13 21:15:21 imagine an icon is 1cm on a mdpi screen at 48px Sep 13 21:15:28 now you switch to an xhdpi screen Sep 13 21:15:35 now the icon is still 1cm, at 96px Sep 13 21:15:41 now you switch to xxxhdpi, Sep 13 21:15:47 it’s still 1cm, at 192px Sep 13 21:15:58 justJanne: can't get anywhere with it Sep 13 21:16:03 gotcha Sep 13 21:16:08 the pixels go up but so does the dpi Sep 13 21:16:14 so you're getting more pixels in that space Sep 13 21:16:44 god i feel like i'm back in high school learning how to calculate dpi and stuff Sep 13 21:17:43 s73v3r: imagine this happening for real https://material.uplabs.com/posts/smooth-rotation-interface Sep 13 21:18:23 People would have to be willing to handle rotation for that to happen, though :( Sep 13 21:18:28 still, looks pretty cool Sep 13 21:18:29 that would be epic Sep 13 21:18:45 it’d likely not even be that hard Sep 13 21:18:56 for activity transitions, we already have something like that, Sep 13 21:19:03 I think the general moving of stuff to positions would be handled by the system Sep 13 21:19:04 where we interpolate views between activities Sep 13 21:19:06 pragma-: :D Sep 13 21:19:15 Pragma: :D Sep 13 21:19:22 just do that same system for this, and it’d be awesome Sep 13 21:19:36 some of the more subtle things, like the additional tabs coming in, or the rotation of the top, might require more work Sep 13 21:20:12 not necessarily Sep 13 21:20:35 s73v3r: we’re already kinda getting something like this soon Sep 13 21:20:49 but is it backwards compatible? Sep 13 21:20:49 with multiwindow, changing the width or height is more common, Sep 13 21:21:04 so it’s likely we’ll get an API to do that more animated Sep 13 21:22:44 that rotation almost makes me puke Sep 13 21:24:57 this was an awesome time, when we still believed google would actually finally do nice design for once: https://www.youtube.com/watch?v=Q8TXgCzxEnw Sep 13 21:25:07 still waiting for that calendar app Sep 13 21:25:12 Isn't the ripple animation of Android broken? It's centered around the touch point only when you tap on the center of the screen. Otherwise it's offset Sep 13 21:26:10 huh? Sep 13 21:26:25 it always centers on the touch point on M Sep 13 21:27:17 On my smartphone (Nexus 5X) and on the emulator it's centered only when you tap on the center of the screen Sep 13 21:27:37 it should always start below your finger Sep 13 21:31:27 btw, Zharf, a funny video (but basically right) of how user interface design used to work in the past: https://material.uplabs.com/posts/stop-motion-animation-new-tool-for-wireframing Sep 13 21:32:48 justJanne, you still need ideas though, coming up with usable interfaces is just near impossible Sep 13 21:33:02 nah Sep 13 21:33:06 just go crazy and brainstorm Sep 13 21:33:31 yo what is up with the google repo Sep 13 21:33:37 why is 24.2 appcompat missing Sep 13 21:33:50 it got replaced with 24.2.1 Sep 13 21:33:56 seriously? Sep 13 21:34:03 they *REPLACED* a version? Sep 13 21:34:06 considering I haven't actually seen a UI that was a usability masterpiece yet, I'm having hard time believing you ;) Sep 13 21:34:06 lol why can't they use maven Sep 13 21:34:12 my build files are going to stop working now? Sep 13 21:34:19 which explicitly prevents you from pulling such shenanigans Sep 13 21:34:21 that’s literally leftpad Sep 13 21:34:26 now I am afraid to update my build server Sep 13 21:34:35 since I am trying to push to the play store with 24.2 Sep 13 21:34:40 missingno: they use maven, just this is why you have to do this hacky shit of local maven stuff Sep 13 21:34:54 I guess I meant maven central Sep 13 21:35:30 I’m not a thousand percent sure, but it sounds like 24.2 had a serious bug Sep 13 21:35:49 like to the point of removing all methods with dexguard Sep 13 21:36:20 but like I said, I’m not entirely sure Sep 13 21:36:36 never run .0's :p Sep 13 21:36:39 I’m using 24.2.0 right now Sep 13 21:36:41 wish that was at the top of their release notes Sep 13 21:36:48 if that issue even exists Sep 13 21:36:53 https://code.google.com/p/android/issues/list?can=1&q=label%3ATarget-Support-24.2.1 Sep 13 21:37:00 missingno: "bugfixes and performance improvements" Sep 13 21:37:12 nothing catches my eye Sep 13 21:37:21 hehe is that a common note Sep 13 21:37:23 wrong version Sep 13 21:37:25 https://code.google.com/p/android/issues/list?can=1&q=label%3ATarget-Support-24.2.0 Sep 13 21:38:05 isn't Target- the fix version Sep 13 21:38:26 well, it doesn’t find anything anyway Sep 13 21:38:47 Zherf: https://dl.kuschku.de/videos/device-2016-09-13-233618.mp4 Sep 13 21:38:52 this took ages to get the idea for Sep 13 21:39:30 just swipe up/down to get a full editor, and swipe the editor away again if you don’t need it anymore Sep 13 21:39:38 https://code.google.com/p/android/issues/detail?id=222366&can=1&sort=-id%20-opened&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened Sep 13 21:39:48 so awesome when you go from writing short texts to longer ones in IRC with formatting Sep 13 21:40:06 justJanne: this is sick Sep 13 21:41:10 missingno: https://code.google.com/p/android/issues/detail?id=220407&can=1&q=label%3ATarget-Support-24.2.1&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened looks like the offending issue Sep 13 21:41:15 seems like the worst one Sep 13 21:41:55 I don't even use that thing Sep 13 21:42:06 or https://code.google.com/p/android/issues/detail?id=220744&can=1&q=label%3ATarget-Support-24.2.1&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened Sep 13 21:42:16 or https://code.google.com/p/android/issues/detail?id=220389&can=1&q=label%3ATarget-Support-24.2.1&colspec=ID%20Status%20Priority%20Owner%20Summary%20Stars%20Reporter%20Opened Sep 13 21:42:36 those are the only issues that were noticeable to users AND fixed in .1 Sep 13 21:43:12 I am thinking about manually editing my repo on my buildserver Sep 13 21:43:32 mvn deploy:deploy-file Sep 13 21:43:59 Oh, doesn't work if you don't have nexus or similar setup Sep 13 21:44:20 this thing should just never happen, ever Sep 13 21:44:30 justJanne, next time enable visual touches when you make a video, I have no idea how you transition there Sep 13 21:44:38 Zharf: swipe up Sep 13 21:45:28 i’m beginnning to think I’m wrong about the library being pulled. I honestly cannot find anything about it anywhere Sep 13 21:45:29 Typing some test text Sep 13 21:45:45 this isn't the first time they've randomly dropped old versions Sep 13 21:45:50 seems to be a typo or something Sep 13 21:45:51 s73v3r: I can send you a file Sep 13 21:45:52 loltools Sep 13 21:45:54 I have it here Sep 13 21:46:14 i don’t need it. I just thought I saw something saying that on twitter Sep 13 21:47:08 Zharf: https://dl.kuschku.de/videos/example.mp4 Sep 13 21:47:51 right Sep 13 21:48:39 visual touches <3 Sep 13 21:48:40 and regarding faizan’s earlier question what to show when no content is available or an error happened: https://assets.materialup.com/uploads/71085990-1af8-4267-9be0-d9a5eaffb269/error_page.png Sep 13 21:48:55 you type on a touchscreen about 300 times faster than me though Sep 13 21:49:14 that was actually with one hand, Sep 13 21:49:18 so I was a lot slower Sep 13 21:49:18 I can't stand touchscreens Sep 13 21:49:21 yes, 24.2.0 is gone in latest Sep 13 21:49:57 I should look into making irssi a proxy for an android irc client again Sep 13 21:50:26 Zharf: the client I use there is a mobile client for quassel Sep 13 21:50:36 I don't want to move away from irssi Sep 13 21:50:38 there’s also a plugin to use irssi to connect to a quassel bouncer Sep 13 21:50:57 and I don't want to use third party services Sep 13 21:51:09 irssi does have a bouncer function Sep 13 21:51:22 Zharf: you don’t like touchscreens and you don’t like UI/UX. Are you sure you’re in the right field? :p Sep 13 21:51:35 Zharf: quassel is a thing you can host yourself ;) Sep 13 21:51:41 s73v3r, it's all they do in finland, mobile apps Sep 13 21:51:43 nothing else Sep 13 21:51:59 justJanne, why not just connect directly to the irssi and be done with it Sep 13 21:52:13 Zharf: because for mobile, you need a far better protocol than that Sep 13 21:52:28 justJanne, I can write my own protocol Sep 13 21:52:35 in my case, for example, I’m in > 320 channels with combined 38'000 connected users, Sep 13 21:52:47 and want to be able to "just scroll up" to instantly load days more of backlog, Sep 13 21:53:03 and be able to just search through all backlog ever created with a UI, Sep 13 21:53:05 and stuff Sep 13 21:53:44 Greetings. Question if I may. I'm using the default Master/Detail template with CardView Items. I wish my details fragments to edit the current CardView properties (change bg). How do I get the current card view from the DetailFragment.java? Do I need to update the DetailFragment ctor to hand the SimpleItemRecyclerViewAdapter and get via that or is it possible via a findViewById? Or a differnt standard approach? Sep 13 21:54:37 generally, your detail should be starting a new activity or fragment. in there, you’d fetch the model for the item in question Sep 13 21:54:55 I have the item. But I can't get the CardView assosiated with that item. Sep 13 21:54:57 and then populate the UI, and save it back when done Sep 13 21:55:08 you wouldn’t, because it’s in another fragment Sep 13 21:55:10 NvrBst: why do you want to get that view? Sep 13 21:55:15 you’d create a new view Sep 13 21:55:16 justJanne: do you follow 320 IRC channels? Sep 13 21:55:17 s73v3r, to be fair though, I do like android's framework for UI the best out of anything else I've used Sep 13 21:55:28 meh Sep 13 21:55:33 arancio: yeah, most are smaller ones, but others are huge, like dev channels for projects I work on Sep 13 21:55:39 Zharf: you haven't used many UI frameworks :-) Sep 13 21:55:42 I have Sep 13 21:55:44 justJanne: I wish to change the background of the CardView item that shows up in the list. Sep 13 21:55:51 I've explored very many of them over the last 15 years Sep 13 21:55:54 they're all horrible Sep 13 21:55:57 I don’t read all of them, I get emails of a summary of those Sep 13 21:56:10 NvrBst: so, you want, if a cardview is selected, Sep 13 21:56:14 change its background? Sep 13 21:56:47 yes, but not selected. My use case is more like a "pass" or "fail" type thing. Sep 13 21:56:51 Zharf: do you sincerely think that WPF is worse than Android? Sep 13 21:57:01 yes Sep 13 21:57:08 wow Sep 13 21:57:16 no one seriously thinks that Sep 13 21:57:29 Zharf: well, I'm sure you have your reasons. Sep 13 21:57:33 justJanne: want to change it to GREEN or RED based on some logic in the DetailsActivity.java Sep 13 21:57:50 Zharf: have you ever looked at GTK+? Sep 13 21:57:59 yes Sep 13 21:58:05 and gtkmm Sep 13 21:58:06 NvrBst: well, then do it like this: Sep 13 21:58:06 NvrBst: wait a sec, you want to change the color of an item generated by the adapter? Sep 13 21:58:07 Zharf: Android's actually quite similar :/ Sep 13 21:58:07 I mean DetailsFragment.java Sep 13 21:58:18 NvrBst: you have the item that you create the card from, right? Sep 13 21:58:20 Zharf: for the UI part.. not the rest of the runtime :P Sep 13 21:58:26 justJanne: yup Sep 13 21:58:29 put a new variable into the item storing that, Sep 13 21:58:32 change that variable, Sep 13 21:58:43 then notify the list where the item is in of the update, Sep 13 21:58:44 justJanne: never met an IRC power user like you Sep 13 21:58:48 :D Sep 13 21:58:50 Zharf: esp. if you use glade Sep 13 21:58:53 which in turn will notify the recyclerviewadapter of the update Sep 13 21:58:55 zinx, glade/gtkbuilder was much nicer than anything qt had to offer at least Sep 13 21:59:13 for my own apps, I actually built an entire reactive framework for that Sep 13 21:59:15 but gtk is terribly unusable on anything but linux Sep 13 21:59:24 I can change any item in any list, or any field of it, Sep 13 21:59:24 Zharf: can't really argue with that :/ Sep 13 21:59:25 https://gyazo.com/993b22aa5c0d5c7df25df43b3f60d31a - how is that hdpi? Sep 13 21:59:31 that's like 460 dpi Sep 13 21:59:34 and it will send the changes to the lists, and stuff Sep 13 22:00:06 justJanne: ahh some kind of onNotify() on the ITEM backend... that should work, thank you! I'll attempt it. Sep 13 22:00:21 Faizan: 458ppi Sep 13 22:00:25 yeah Sep 13 22:00:25 indeed, that’s Sep 13 22:00:29 so isn't that xxhdpi Sep 13 22:00:32 xxhdpi Sep 13 22:00:33 yes Sep 13 22:00:44 strange how they say it's hdpi Sep 13 22:00:51 that screen is seriously wrong Sep 13 22:00:58 it's for the new lenovo phablet Sep 13 22:01:05 try changing screen size to 6" to check if it displays it then properly Sep 13 22:01:10 first tango phone, so i wanted to test on that too Sep 13 22:01:16 6" did it Sep 13 22:01:18 but why Sep 13 22:01:18 o.O Sep 13 22:01:35 lol 6.3 is also fine Sep 13 22:01:36 now try 6.3 Sep 13 22:01:40 and 6.5? Sep 13 22:01:44 wait Sep 13 22:01:46 6.4 works now Sep 13 22:01:47 strange Sep 13 22:01:54 see? just a crazy bug again Sep 13 22:01:55 unless it's just failing to update Sep 13 22:02:03 Anyway, NvrBst, that’s likely the best solution Sep 13 22:02:21 NvrBst: recyclerview adapters have a function "notifyItemChanged(int position)" to update the view with animation and all Sep 13 22:02:28 thanks for that justJanne lmao Sep 13 22:02:41 you’d want to just create a callback that does that, and give that to a custom list in the model Sep 13 22:03:30 the interface for that would look roughly like https://github.com/justjanne/QuasselDroid-ng/blob/master/app/src/main/java/de/kuschku/util/observables/callbacks/UICallback.java Sep 13 22:03:52 justJanne: aye, thanks. I'll take a look. Sep 13 22:03:57 Faizan: always awesome when I’m able to help :) Sep 13 22:04:32 fgdsgf Sep 13 22:04:41 Zharf: stop sending me spam PMs Sep 13 22:04:49 zinx: can you ban this guy? Sep 13 22:04:55 ... Sep 13 22:05:07 wasn't it enough that I banned you from ##c++-social Sep 13 22:05:15 stop being lame Sep 13 22:05:42 this is kinda an awesome thing, but very much only useful for such demos: https://github.com/danielzeller/Depth-LIB-Android-/ Sep 13 22:06:35 justJanne: just to confirm, if I have drawable-xhdpi and drawable-sw600dp-xhdpi, the tablet will always use the latter's drawables by default? Sep 13 22:06:37 or not necessarily? Sep 13 22:07:09 yes. Sep 13 22:07:11 it should. Sep 13 22:07:13 just try it Sep 13 22:07:25 but, as I said before, this is not really "ideal" Sep 13 22:07:33 yeah I've done it and it works, but that's only tested under one device Sep 13 22:08:03 if this were you, how would you personally do it? Sep 13 22:08:13 you'd probably discard my main screen UI :D Sep 13 22:09:36 Faizan if both devices are xhdpi and only difference is ones a tablet you should use layouts that use the extra space for your tablet Sep 13 22:09:41 as I said before, Sep 13 22:09:47 I’d do two seperate drawables, Sep 13 22:09:56 ic_preferences, ic_preferences_large, Sep 13 22:10:07 and then the separate layouts Sep 13 22:10:16 gotcha Sep 13 22:10:16 and in layout/activity_main.xml I’d do android:drawableLeft="@drawable/ic_preferences" Sep 13 22:10:30 and in layout-sw600dp/activity_main.xml I’d do android:drawableLeft="@drawable/ic_preferences_large" Sep 13 22:10:40 as you’ll definitely end up modifying the tablet layout later on anyway Sep 13 22:10:40 i think i'm gonna go for that Sep 13 22:10:51 yeah Sep 13 22:10:58 okay i'll go with your advice Sep 13 22:11:04 i don't fancy making 10 folders/icons :) Sep 13 22:11:57 how long have you been developing for? Sep 13 22:12:09 if you don't mind me asking Sep 13 22:14:28 well, android or in general? Sep 13 22:15:16 Android Sep 13 22:15:18 android: I started hacking around in 2013, and did really ugly stuff (like storing configs by doing ObjectOutputStream into a file >_>), I was 16 back then, Sep 13 22:15:32 and then I started developing around 2014, Sep 13 22:15:47 ah nice Sep 13 22:15:49 when I wanted to IRC, couldn’t find a good app that was free (remember, irccloud is expensive for students), Sep 13 22:16:03 i wish i spent my last 3 years of uni wisely Sep 13 22:16:04 so I took quasseldroid, and submitted a first PR, and that’s where I started with professional development Sep 13 22:17:30 in uni we recently had a project where we had 4 weeks time, Sep 13 22:17:32 40h a week, Sep 13 22:17:34 I never pegged you so young, justJanne Sep 13 22:17:52 cooperating with a local hospital, working on an app for doctor-patient interaction Sep 13 22:17:57 are you doing a computer science degree justJanne? Sep 13 22:17:59 (imagine older people living on the land) Sep 13 22:18:00 Faizan: yup Sep 13 22:18:04 same Sep 13 22:18:12 first time android developing Sep 13 22:18:23 developed all sorts of other things, mainly C and Haskell Sep 13 22:18:33 basically, the idea was: patient comes to doctor once, activates app, doctor gets daily data reports, and gets more data, and patient doesn’t have to visit doctor as often Sep 13 22:19:06 sounds cool Sep 13 22:19:12 so the doctor can communicate with patient, ask about situation, gets data from wearables (MS band, android watch, etc), and can change prescriptions, and the patient always knows which prescription to take Sep 13 22:19:24 ah nice Sep 13 22:19:29 obviously, following data safety standards and stuff, and this stuff was impossible to develop in 4 weeks Sep 13 22:19:53 (which was the intention – basically like a kobayashi maru, how do you react to impossible deadlines, a client that constantly changes things, etc?) Sep 13 22:20:05 we had something similar Sep 13 22:20:19 but I’m really proud of the UI: http://i.imgur.com/3ClBKHz.png http://i.imgur.com/cCWKkVq.png http://i.imgur.com/T1Qjypl.png Sep 13 22:20:38 where our lecturer acted as a client, and our goal was to build a robot that could perform in, for example, robocup Sep 13 22:20:45 ah, nice. Sep 13 22:20:49 but the idea was that rules would be constantly changed Sep 13 22:20:55 and you had a certain time to implement the changes Sep 13 22:21:02 it was horrible Sep 13 22:21:06 working with arduinos Sep 13 22:21:06 hm Sep 13 22:21:07 justJanne, why the language mix, prototype? Sep 13 22:21:08 never again Sep 13 22:21:27 oo that's a really nice UI Sep 13 22:21:28 darken: the frontend is already localized here, the backend takes data from a still english database Sep 13 22:21:34 you should be proud of that Sep 13 22:21:34 ah right Sep 13 22:21:58 Google Fit? Sep 13 22:21:59 whaaaaaaat Sep 13 22:22:11 oh the app Sep 13 22:22:18 regulations regarding data in medical environments take all the fun out of developing for it :| Sep 13 22:22:21 Faizan: I also did the icon :) http://i.imgur.com/7PmrG83.png Sep 13 22:22:21 i thought they had a fitness band or something Sep 13 22:22:31 nice Sep 13 22:22:31 darken: nah, not really, it was doable Sep 13 22:22:49 how is the backend done? Sep 13 22:22:53 i'm proud of the icon i did for my app in development Sep 13 22:23:58 https://gyazo.com/cb9b6a3ce7ed264923b84fac91aee300 Sep 13 22:23:59 darken: we used grails, ran it in jetty. The database was split into 4 independent servers, one for storage of personal data, one for storage of healthcare data, then different frontends for different groups (for example, scientists from the university could only be authenticated against the medical data, but couldn’t get any personal data) Sep 13 22:24:03 i should probably scale that down Sep 13 22:24:17 we used a seperate auth server, which was also self-written, but had a pluggable API so you could use LDAP instead Sep 13 22:24:24 spring security, and stuff, oc. Sep 13 22:24:26 *ofc Sep 13 22:24:35 there was also an interface server for the mobile app, Sep 13 22:24:51 and the app would on first activation get the public key and a nonce from the medical and private server each as QR code, Sep 13 22:25:13 then do a handshake with both, verify them, and do simple GPG for later messages Sep 13 22:25:30 for all transmission, we used FHIR Sep 13 22:25:53 I spent about a day writing a transformer so we could use FHIR, my encryption tool wrapper, and Retrofit all together Sep 13 22:25:59 was quite awesome. Sep 13 22:26:57 were trials done? I wonder how well older people did with using an app Sep 13 22:27:19 well, 4 weeks was a short time, so we didn’t fully finish the app Sep 13 22:27:29 next semester, the next group of students will continue working on it, Sep 13 22:27:39 just like we improved upon the backend of last semesters’ group Sep 13 22:30:49 Zharf: I wouldn’t call myself "so young", I’m almost 20 :( Sep 13 22:32:13 That's young, only 1/5th of your life Sep 13 22:33:10 justJanne, I'm far from the oldest here I think but that's still over a decade younger than me Sep 13 22:33:49 if I have a layout-sw600dp-land folder and say I have activity_main.xml but it should be the same layout in portrait and landscape mode, would it be fine to just define it in layout-sw600dp and that layout will work for both orientations? Sep 13 22:34:05 Does anyone know, for a soft keyboard, why it might resize the EditText to be the entire space of the screen that isn't the keyboard? Thanks! Sep 13 22:34:27 Faizan, just keep that in the default layout folder, if android can't find a specific one it will go to default Sep 13 22:34:36 JamesB, landscap? Sep 13 22:34:52 Faizan: yes, it will Sep 13 22:35:02 perfect thanks Sep 13 22:35:10 gonna need 3 icon sizes :D Sep 13 22:35:24 to make the layout only work in portrain or landscape, you’d either use -portrait, -land, or you’d use -w600dp or -h600dp Sep 13 22:35:27 (height, width) Sep 13 22:35:33 Zharf, yes, it's in andscape mode. Sep 13 22:35:45 yeah i'm using laoyut-sw600dp-land Sep 13 22:35:50 i only need it for the tablet layout (for now) Sep 13 22:36:05 Faizan: and tablet in portrait? Sep 13 22:36:11 JamesB, use android:imeOptions="flagNoExtractUi" Sep 13 22:36:15 oh that's just layout-sw600dp Sep 13 22:36:23 shou;d i change that to layout-sw600dp-portrait? Sep 13 22:36:27 no need Sep 13 22:36:32 it will work anyway Sep 13 22:36:37 okay Sep 13 22:37:03 JamesB: it does that because on small devices otherwise you might not be able to see any screen anyway, so it uses the integrated UI. You can use the above mentioned flag to avoid that Sep 13 22:37:56 last time I saw a device where landscape keyboard took so much space was in 2010-2011 I think Sep 13 22:38:06 but sure, it's like justJanne said :) Sep 13 22:38:09 Ah. Interesting... Is there any way to disable that project-wide instead of just for a single textbox? Sep 13 22:38:21 JamesB: sadly, no. Sep 13 22:38:26 unless you hack into layoutinflater, Sep 13 22:38:28 change it, Sep 13 22:38:28 Well, according to Android Studio, I'm testing with a Nexus 7, but, it looks lik ea lot less screen than a real one :) Sep 13 22:38:31 and automatically set the flag Sep 13 22:38:37 or extend edittext Sep 13 22:38:38 Nexus 7? no Sep 13 22:38:43 on the Nexus 7 that never happens Sep 13 22:38:56 Zharf: no, that’s not a function of edittext, but of the IME Sep 13 22:39:01 oh, right Sep 13 22:39:04 sorry, yes, you’re right Sep 13 22:39:08 justJanne, yes but you can se the flag Sep 13 22:40:20 Fantastic. That fixed it. Thank you! Sep 13 22:40:31 Yes, it says it's a "Nexus 7", but I have enough room for about two rows of text, so :P Sep 13 22:40:55 Sure? Sep 13 22:41:35 I have a nexus 7 here IRL, and that doesn’t happen Sep 13 22:41:39 No, I'm not sure. Just says it is. :) I'll look into that. It scrolls right now, that much is good at least. Sep 13 22:48:11 how can I make my drawables refresh without having to close android studio Sep 13 22:48:29 won't refresh for some reason Sep 13 22:49:28 Faizan: refresh where? In the Designer view? Sep 13 22:49:35 in the preview sorry Sep 13 22:50:03 right-click synchronize on the file, Sep 13 22:50:18 if that still doesn’t help close/reopen the rpeview Sep 13 22:51:07 ah didn't know abiout sync nice one Sep 13 22:51:35 did the trick thanks Sep 13 22:52:58 the biggest issue with google keyboard http://i.imgur.com/ieK4dxq.png Sep 13 22:53:34 justJanne: LOL Sep 13 22:53:54 lmfao Sep 13 22:54:37 I laughed but not loud Sep 13 22:55:00 Smiled, actually Sep 13 22:55:11 I giggled slightly Sep 13 22:55:25 oh I laughed Sep 13 22:55:29 but i'm immature Sep 13 22:55:29 soo Sep 13 23:05:20 :-) Sep 13 23:08:23 In response to the iPhone 7’s proprietary Lightning jack, Samsung — with early support from Android — has been ‘exploring’ development on its own proprietary headphone port." Sep 13 23:08:34 yeah screw you sammy, get your batteries working Sep 13 23:09:21 good luck samsung Sep 13 23:09:34 that’s how you get the EU to do another charger unification ruling Sep 13 23:09:35 at least apple is only screwing with their own ecosystem, samsung is the source of all evil Sep 13 23:09:38 ;) Sep 13 23:10:20 I should probably sleep, need to be in a train in a few hours Sep 13 23:10:39 https://developer.android.com/about/dashboards/index.html Sep 13 23:10:39 https://www.youtube.com/watch?v=ZndnJr71Ir8 Sep 13 23:11:36 g00s: so the takeaway is that you still have to support JB? Sep 13 23:11:58 s73v3r: I still to ICS, btw ;) Sep 13 23:12:02 not the takeaway i got :P Sep 13 23:12:24 have to support kitkat Sep 13 23:12:25 even though there’s no fucking AVD image for that Sep 13 23:12:53 and yeah, i'm waiting for these emulator images to get GMS 9.4 ... Sep 13 23:12:54 there isn't? Sep 13 23:13:10 for ICS? nope. Sep 13 23:13:17 ICS doesn’t support x86_64 at all Sep 13 23:13:23 you need to run AVD 1.0 instead Sep 13 23:13:55 right, that's not the same what you said though :p Sep 13 23:15:23 also, when the fuck will google ever support simple SEPA transfers to pay for the google play developer account? Sep 13 23:15:39 in about never years Sep 13 23:16:20 I already end up having to pay about 30$ for it due to the additional fees to even get a prepaid credit card, and now I still have to wait another 2 days to be able to use it Sep 13 23:16:36 like wtf, just do a simple and free standard. Sep 13 23:16:44 wish the stupid android update window would show real status... Sep 13 23:22:23 I wish Android would provide useful tools to create usable UIs on tablet Sep 13 23:23:05 what would you say is missing? Sep 13 23:23:33 I’m not a huge fan of Android’s UI tools, but I don’t think there’s anything missing specific to tablets Sep 13 23:24:14 they removed a lot of useful things in the material update, or abandoned it Sep 13 23:24:22 https://gyazo.com/acf5242dab4c0bb10e220986dc37cdad does anybody know where the padding between buttons are coming from? https://gyazo.com/acf5242dab4c0bb10e220986dc37cdad is the code. I don't have the padding in any other layout folders and the layout is the same besides the drawables Sep 13 23:25:07 Faizan: you posted the same link twice Sep 13 23:25:09 s73v3r: http://i.imgur.com/CxJkOaQ.jpg Sep 13 23:25:11 fuck Sep 13 23:25:16 meant to linkhttp://arstechnica.com/gadgets/2016/09/one-year-later-can-android-7-0-nougat-save-the-pixel-c/ Sep 13 23:25:16 oh shit Sep 13 23:25:34 http://pastebin.com/0JUNXiaq Sep 13 23:25:35 oh, I thought you meant tools Sep 13 23:25:45 yeah, I saw that article Sep 13 23:25:45 well, look at those apps Sep 13 23:25:52 that's the correct link justJanne Sep 13 23:25:58 android gives us coordinatorlayout, and awesome other things Sep 13 23:26:01 it’s not a tool issue, though. it’s Google reverting Sep 13 23:26:12 do they give us a new version of material slidingpanelayout? Sep 13 23:26:13 nope Sep 13 23:26:23 slidingpanelayout still doesn’t deal properly with elevation Sep 13 23:26:28 there’s nothing stopping them from making the Honeycomb layout on Lollipop. They just didn't Sep 13 23:26:48 do they give us the ability to pin the navigation drawer in a drawerlayout on tablet? Sep 13 23:26:49 nope. Sep 13 23:26:58 and so on Sep 13 23:27:02 that’s why you have a fragment Sep 13 23:27:02 why does appcompat tint certain drawables in the toolbar to colorControlNormal Sep 13 23:27:12 there's like a freakin whitelist of icons they tint https://android.googlesource.com/platform/frameworks/support/+/master/v7/appcompat/src/android/support/v7/widget/AppCompatDrawableManager.java Sep 13 23:27:24 abc_ic_menu_share_mtrl_alpha is not mentioned anywhere else in appcompat Sep 13 23:27:30 missingno: use https://gist.githubusercontent.com/jaredrummler/ec7dfb73f3235ad8e951/raw/901f144d0589a317defeee32ea7b7865543c1e81/MenuTint.java Sep 13 23:27:33 also it is marked as hidden so I can't use it directly Sep 13 23:27:39 to tint the icons Sep 13 23:28:11 missingno: the "share" is for the contextual action bar Sep 13 23:28:31 hmm Sep 13 23:28:36 thank you btw Sep 13 23:31:59 when you guys define font sizes etc in xml would you do android:textSize="xsp" or android:textSize="@dimen/..." Sep 13 23:32:04 are there any guidelines on that? Sep 13 23:32:46 you almost always want to use dimension values Sep 13 23:33:06 as in the latter? Sep 13 23:33:13 yes Sep 13 23:33:19 right okay Sep 13 23:33:34 is that just similar reasoning to strings; easier to maintain? Sep 13 23:33:48 yes Sep 13 23:34:15 awesome thanks Sep 13 23:44:49 ah I just discovered actionModeShareDrawable justJanne Sep 13 23:44:58 thanks Sep 13 23:45:32 hey all Sep 13 23:45:52 justJanne: - still not got it to work ;( Sep 13 23:53:04 fels: I asked you to give me some information, nothing more, so I could help you getting it to work. Sep 13 23:53:15 But now it's too late, and I have to sleep anyway Sep 13 23:53:48 justJanne: sorry - could you please give me pointers to look at please. I'm new to this and the toolset Sep 14 00:11:23 I found an articel suggesting I shuld do this : Sep 14 00:11:37 android:largeHeap="true" Sep 14 00:11:48 anf android:hardwareAccelerated="false" Sep 14 00:12:03 any pitfaills for doing this justJanne ? Sep 14 00:12:21 he said he was going to sleep, try things and see Sep 14 00:15:12 Say, isn't android.permission.INTERNET sufficient to get Internet access? My program is crashing despite my listing it Sep 14 00:15:19 whatitis: yes it seems to be working - so I wanted to know any pitfalls before I celebrate :) Sep 14 00:15:59 crashing cause doing networking on ui thread? what is the crash Sep 14 00:17:20 Also, is there any way to remedy the "Android emulator makes my mouse update at 1 fps"? I've never seen a program that makes my system so slow Sep 14 00:18:56 how much ram do you have in your system, and people been complaining about the emulator for years and years Sep 14 00:20:08 8GB... Sep 14 00:22:03 that is not enough ram Sep 14 00:22:13 For a 2GB emulator? Sep 14 00:22:35 you are running more than just the emulator on your system Sep 14 00:22:36 more importantly, do you have proper virtualisation working? Sep 14 00:22:50 It goes plenty fast. My RAM usage is at 72%. Sep 14 00:22:55 and what was your crash Sep 14 00:22:58 Or rather, the emulator does. Just not the PC Sep 14 00:30:20 new SDK tools and Platform tools Sep 14 00:38:39 Greetings. Question if I may. I have a default Master/Details template. The DetailsFragment is scrolling by default (is this done by CoordinatorLayout? or FrameLayout > app:layout_behavior="@appbard_scrolling_view_behavior"?). Is there a way to have it scroll to end (progammically or xml). AKA "stackToEnd" or "fullScroll()" etc? I can't figure out what object/method to look at. Or maybe I need to add my own NestedScroller? Sep 14 00:41:22 hmm I don't see sdk tools g00s Sep 14 00:41:24 25.2.2? Sep 14 00:42:17 missingno yeah Sep 14 01:02:04 whats the best way to do a singlton Sep 14 01:04:47 Any good ORMs or libraries for making SQLite a little less time-intensive you guys can recommend? Sep 14 01:05:10 Just getting started with it and really don't want to write all this boilerplate Sep 14 01:07:36 thebaer: found this > https://www.sitepoint.com/5-best-android-orms/ Sep 14 01:13:28 fels thanks -- but no experience with any of them? Sep 14 01:14:16 figure I should be moving away from JSON stored in user preferences haha, but not introducing new major complexity or bugs is huge right now Sep 14 01:17:57 thebaer: i'm sure we all don't have experiecn with any - :) Sep 14 01:18:46 fair enough :) Sep 14 01:18:57 will let you all know how it goes Sep 14 01:20:07 if square released one, go w/ that :) Sep 14 01:20:14 (their stuff is generally always top-notch) Sep 14 01:22:56 We have SQL Delight Sep 14 01:23:12 It's not an ORM, it's an OM Sep 14 01:33:41 hmm, how do I programmatically turn on translucent system nav Sep 14 01:34:34 and wtf, my 6p has been downloading an ota for the last 3 hours (slow wifi) and now that it's done, it says "system is up to date" without rebooting... pos Sep 14 01:36:21 set a window flag Sep 14 01:43:44 yes, it's not taking, getWindow.setFlag(FLAG_TRANSLUCENT_NAVIGATION, FLAG_TRANSLUCENT_NAVIGATION) isn't taking effect Sep 14 01:43:58 * pfn shrugs and tries again tomorrow Sep 14 01:44:38 maybe try Java Sep 14 01:45:23 that is java, you asshat Sep 14 01:45:47 ok then getWindow() is a method Sep 14 01:45:51 you forgot the parens Sep 14 02:09:27 i want to create a method that can increment a HEX value Sep 14 02:09:41 whatas the best way to do this Sep 14 02:13:37 Represent it as an int and then return value+1 Sep 14 02:22:21 JakeWharton: do u have an example ? Sep 14 02:24:05 can I use that Integer.toHexString(... Sep 14 02:26:58 fels, are you blocked from using google.com or bing.com? Sep 14 02:27:28 lol Sep 14 02:28:22 whatitis: No - but you used more letters saying that rather than YES or NO . Sep 14 02:29:01 how does Integer.toHexString(... help with incrementing value? Sep 14 02:31:51 whatitis: you are right - does not help with incrementing but using the hex value it would help .. Thanks Sep 14 02:36:39 anyone recommend any ble libraries? Sep 14 02:37:52 you can look at sweetblue, but its expensive Sep 14 02:38:18 https://github.com/iDevicesInc/SweetBlue Sep 14 02:38:36 there is a rx based one too, forgot its name though Sep 14 02:39:05 yeah, i was reading through the rx one. RxAndroidBle. Sep 14 02:55:28 dsardari: https://github.com/alt236/Bluetooth-LE-Library---Android i am using this one in my app i am working on **** ENDING LOGGING AT Wed Sep 14 02:59:58 2016