**** BEGIN LOGGING AT Tue Dec 09 02:59:58 2014 Dec 09 03:00:07 Groxx: im trying to emulate a standard Theme style (i.e., solid Actionbar & statusbar) at runtime, starting from a Theme that has translucent status bars set. I could easily accomplish it via an additional view in my layout but, figured I try it this way first. Dec 09 03:03:15 This is weird. I'm showing some TextViews and setting their text properties to multiline strings, and every now and then the TextView has a huge gap underneath. Dec 09 03:03:26 As if it has \n\n\n\n after it. But it doesn't. Dec 09 03:03:35 Can't figure out what's causing it Dec 09 03:03:35 . Dec 09 03:05:18 Actually, never mind. Was a layout issue (something really dumb). Dec 09 03:20:26 God, my phone is loud. Dec 09 03:20:53 Several LogCat messages per second even without touching it. Dec 09 03:21:06 heh Dec 09 03:21:21 With the screen off, I get about one every two seconds. Dec 09 03:21:30 What a waste of CPU cycles and so on. Dec 09 03:21:35 we have one or two in the office that spam out a few hundred per second. at the very least, it's a log-line for every single SurfaceView update. Dec 09 03:21:48 Damn. Dec 09 03:21:52 Which make? Dec 09 03:21:55 This is a Sony. Dec 09 03:21:56 samsung, of course Dec 09 03:21:58 lol Dec 09 03:23:16 one of my favorite device bugs: we have an old dual-sim LG in the office. If you try to send a message on the second SIM, and you're not the built-in SMS app, the database locks up permanently until you reboot the phone. Dec 09 03:23:46 :D Dec 09 03:30:09 Building an app is so slow. It's like an ant climbing a mountain. Dec 09 03:30:17 I mean 'developing' (rather than compiling and so on). Dec 09 03:30:28 We're ants carrying a blade of grass. Dec 09 03:32:20 and weaving that blade of grass into an N-dimensional gateway to eldritch realms, while trying to contain the horrors that lie therein Dec 09 03:32:29 :D Dec 09 03:32:47 God, that bot in ##java is lame. Dec 09 03:32:50 It has a response for everything. Dec 09 03:33:21 I've always thought that Nyarlathotep is the god of programming. Dec 09 03:34:15 aka "the Crawling Chaos" Dec 09 03:34:55 That's a pretty powerful image. Dec 09 03:35:21 or if not the god of programming, at the very least it's the patron saint Dec 09 03:35:49 If your code resembles him, you got problems. Dec 09 03:36:50 Groxx: Did you say earlier that you're using Eclipse? Dec 09 03:36:55 yep Dec 09 03:36:56 I forget because I was talking while IRCing. Dec 09 03:37:03 for shame Dec 09 03:37:19 I'd like to move, but gotta have dat JVM testing. Dec 09 03:37:49 we'll probably migrate in a week or two, when someone gets time to hand-code our manifest merging logic Dec 09 03:37:49 I'm all about that pace. Dec 09 03:38:14 we don't have tests (yolo) nor NDK Dec 09 03:38:22 No tests at all? Dec 09 03:38:26 nope Dec 09 03:38:41 The good thing about having no automated tests is that you can change anything without tests needing rewriting. Dec 09 03:38:51 much to my chagrin Dec 09 03:38:53 Tests kinda lock us into certain behaviour. Dec 09 03:38:57 Though I love them. Dec 09 03:39:27 yeah, I like at least "don't do something stupid" tests. I've written quite a few of those for our server, and it has caught quite a few "doing something stupid"s Dec 09 03:39:34 Ya. Dec 09 03:39:36 The value is so high. Dec 09 03:40:07 we're pretty Agile™ and change things very frequently though, so too may aren't necessarily worthwhile. but it does bring a tear to my eye that most of our code isn't test-friendly. Dec 09 03:40:13 I try to write only very-valuable tests. Dec 09 03:40:17 And thereby limit the number I write. Dec 09 03:40:35 Right now, I'm testing only the stuff that doesn't touch android.*. Dec 09 03:40:48 (Which is actually quite a lot of stuff, in my case.) Dec 09 03:41:13 I'm not a fan of UI tests, personally. The UI can change so much. Dec 09 03:41:25 Plus they're slow and annoying (unless you're using something like Robolectric). Dec 09 03:41:27 since we're writing an SMS app, a lot of our most-needs-automated by-hand tests require multiple devices and cooperating telecoms :| it doesn't improve the odds that we'll add tests later. Dec 09 03:41:59 Is your project amendable to mock testing, do you think? Dec 09 03:42:03 amenable* Dec 09 03:42:12 (So used to typing "hg amend".) Dec 09 03:42:43 some. and I have ideas that I'll build when things settle down. in the future. you know, that mythical land of unicorns. Dec 09 03:43:22 I like that quote by Sam Harris. Something like "The present moment is the only moment that exists. The past is just a memory in the present, and the future is just an idea in the present". Dec 09 03:43:30 Though I know a million people said it before he did. Dec 09 03:43:46 things like MMS parsing in the face of crazy-ass telecoms that mangle everything that goes through them. it's stupidly hard to capture, and a major privacy concern, so we will really only be able to test things we can reproduce :\ Dec 09 03:43:48 time is an illusion... lunchtime doubly so Dec 09 03:44:01 Yeah, that does sound hard to test. Dec 09 03:44:51 we basically need the raw bytes, but requesting that isn't a good user experience, and even if we had them we'd have to plug things pretty far deep in Google's MMS PDU parsing code to really test it out Dec 09 03:44:54 heyo Dec 09 03:45:10 Does anyone in here use Intellij IDEA Dec 09 03:45:22 vim or GTFO D: Dec 09 03:45:22 ReScO: Some people do. Might as well just ask your question. :) Dec 09 03:45:37 How do I start making a Android app? Dec 09 03:45:44 I used to use vim religiously. I almost can't believe I stopped Dec 09 03:45:44 . Dec 09 03:46:05 is that really the question ? -_-# Dec 09 03:46:06 ReScO: That's such a broad question. Dec 09 03:46:31 file -> new project -> Android ? Dec 09 03:46:38 I mean, starting a android project and get all the goodies from AS Dec 09 03:46:43 ah Dec 09 03:47:06 Sorry, using irssi through my phone Dec 09 03:47:14 JuiceSSH ftw Dec 09 03:47:23 for the win* Dec 09 03:47:24 looks like maybe "settings -> plugins -> enable the Android Support plugin"? Dec 09 03:47:51 Hmm, last time i tried making an Android app, it errored on me Dec 09 03:48:09 Gradle stuff and missing libraries Dec 09 03:48:19 ReScO: http://confluence.jetbrains.com/display/IntelliJIDEA/Android+Development might work. Dec 09 03:48:34 otherwise I don't know how thoroughly the intellij plugin is developed, vs Android Studio Dec 09 03:49:44 ah. if you're having errors, what are the specifically? stack traces and/or exact messages would be helpful. Dec 09 03:50:17 (I unfortunately have to AFK, but in general you're more likely to find help with specifics) Dec 09 03:51:28 I don't have access to my pc at the moment, i hoped it might be a more common error Dec 09 03:52:28 you haven't even said what the error was, how can that be 'common' ? Dec 09 03:59:46 I have two TextViews, next to one another. I want them to be separated by a space, basically, but is there a cleaner way of doing this than appending a space to the first one's text (or prepending a space to the second one's text)? Dec 09 04:00:02 I mean "horizontally next to one another". Dec 09 04:00:22 I'd like to be able to specify "the size of a space" as a padding. lol Dec 09 04:00:24 I don't think that's possible. Dec 09 04:00:25 padding margin or view Dec 09 04:00:31 Yeah, but which size? :D Dec 09 04:00:36 2 dp Dec 09 04:00:55 Do you think that's better than adding a space? I'm not sure. Dec 09 04:00:58 you coudl also measure the space Dec 09 04:01:09 with textview paint Dec 09 04:01:18 then use that to set margins via layout params Dec 09 04:01:19 True. Dec 09 04:01:30 Or, I guess, I could have another TextView in between whose text is set to " ". Dec 09 04:01:51 sure if like bloating your view hiearchy :) Dec 09 04:02:08 True. Dec 09 04:02:18 Actually, I might just prepend a space to the second one. It actually looks natural in my code. Dec 09 04:03:57 sure Dec 09 04:04:57 lasserix figure it out with the keyboard thingy ? Dec 09 04:05:07 The documentation for android:orientation="horizontal" is this: Defines an horizontal widget. Dec 09 04:05:11 An 'orizontal widget. Dec 09 04:05:25 g00s i wrote sqlite db for testing Dec 09 04:05:31 takes about half the time Dec 09 04:05:46 last thing to do would be seeing if text file csv would be faster than sqlite db Dec 09 04:05:46 mvstore is abou 2x faster than sqlite Dec 09 04:06:03 looks complicated Dec 09 04:06:08 its a map interface Dec 09 04:06:10 lol Dec 09 04:06:36 yeah but i mean setting it up Dec 09 04:06:48 is tehre just one sample of how to set it up in a project? Dec 09 04:07:32 i dunno :( Dec 09 04:07:53 have you? Dec 09 04:07:56 yeah Dec 09 04:07:57 Hmm, this is annoying. [ ' ' + 5 + "hi" ] doesn't evaluate to the same as [ " " + 5 + "hi" ]. Dec 09 04:08:04 or just a github project Dec 09 04:08:12 Though it's kinda understandable. Dec 09 04:08:14 dont have the project on github by chance do you? Dec 09 04:08:21 lasserix no :( Dec 09 04:08:24 TacticalJoke: you mean = ? Dec 09 04:08:58 Something like this: String text = ' ' + 5 + "hi". Dec 09 04:09:01 TacticalJoke: one is char other is String Dec 09 04:09:09 I think it takes the ' ' to be an int. Dec 09 04:09:18 Adds it to 5 and then concatenates the string "hi". Dec 09 04:09:20 shmooz shine Dec 09 04:09:21 yeah you can convert char to int Dec 09 04:09:42 TacticalJoke: you would have to cast it first Dec 09 04:09:59 pretty sure + and its underlying stringbuilderappends the ' ' Dec 09 04:10:03 But this works as expected: String text = "hi" + ' ' + 5; Dec 09 04:10:35 the + converts the char to String Dec 09 04:10:38 This fixes it: String text = ' ' + (5 + "hi"); Dec 09 04:10:49 because it's adding it to a String Dec 09 04:11:04 The default is the same as this: String text = (' ' + 5) + "hi"; Dec 09 04:11:09 (int) (String) Dec 09 04:11:32 shmooz: Yar. Dec 09 04:12:05 Long story short, it might be wise never to use char literals (always string literals) in those string-concatenation thingies. Dec 09 04:12:26 you should use const when doing that Dec 09 04:12:54 Yeah. Just for an example. My app actually does "return whatever + otherStuff;". Dec 09 04:12:57 that way you can change the spacing later if need be Dec 09 04:13:53 I guess the secret is that one operand must always be a String. Dec 09 04:14:30 And of course the operands are determined by the operator precedence. Dec 09 04:15:09 i have a member of a class that takes on different values depending on where i'm testing it at. (could be on my development box. could be a production) my question is what is the best way to inject values using dagger? i wanted to do something like this: http://pastie.org/private/aazum1mq4zfh6yy26b1a Dec 09 04:15:24 brackets exponents division multiplication addition subtraction ;) Dec 09 04:16:28 shmooz shine Dec 09 04:17:40 I've noticed while making this Reddit client that I'm basically subconsciously copying the UI decisions of the Reddit client I usually use. Dec 09 04:17:43 And that's kinda lame. Dec 09 04:18:33 yep Dec 09 04:18:37 take some shrooms Dec 09 04:18:48 pull a steve jobs Dec 09 04:18:58 come up with a transcedental UI Dec 09 04:19:01 shrooms heh Dec 09 04:19:04 hey if you don't have nothing, it's ok to start by imitating Dec 09 04:19:14 True, this is early on. Dec 09 04:19:20 you can evolve it to be unique later Dec 09 04:19:27 capella-s3: yeah there's a reason they give them to cancer patients ;p Dec 09 04:19:32 I wonder whether people really do that -- drop acid to try new UI decisions or something. Dec 09 04:19:44 * capella-s3 had a roomie who liked those things Dec 09 04:19:58 I gotta have you as a beta tester, shmooz. Your wise remarks are handy. :D Dec 09 04:20:07 TacticalJoke: yes they do Dec 09 04:20:15 lasserix: That's dedication. Dec 09 04:20:18 speaking of unique design, I think yaaic ripped off the speech recognition from qicr Dec 09 04:20:22 Or a new form of recreational drug use. Dec 09 04:20:51 its not new, lots of people do that kind of thing for creative potential during work Dec 09 04:20:58 I don't remember anyone having that before,, heh Dec 09 04:21:05 I'd find that annoying, I think. Dec 09 04:21:11 look at Aaron Sorkin (writter of west wing, sports night) got busted with weed shrooms and crack at the airport! Dec 09 04:21:17 I once made a server mod for a game that someone outright copied without giving any credit. Dec 09 04:21:32 I didn't mind the copying so much as the pretending it was their idea. Dec 09 04:22:13 hmm, 2010,maybe not Dec 09 04:22:15 no way to improve weed Dec 09 04:22:22 I do t remember when I added speech rec Dec 09 04:22:31 That's cool, speech recognition. Dec 09 04:22:50 yaaic does speech? Dec 09 04:23:07 TacticalJoke: try and see what happens Dec 09 04:23:07 let us know what you come up with Dec 09 04:23:13 pfn: Does qicr also do text-to-speech? Dec 09 04:23:22 shmooz: lol Dec 09 04:23:50 TacticalJoke, no, it doesn't Dec 09 04:24:03 Oh, I guess I started writing qicr in 2011 Dec 09 04:24:03 server mod ? sounds boring Dec 09 04:24:04 TacticalJoke: which game was it ? Dec 09 04:24:11 Starsiege: Tribes. Dec 09 04:24:12 damn, I didn't get ripped off Dec 09 04:24:19 Server mods enabled gameplay changes. Dec 09 04:24:24 Their modding system was awesome. Dec 09 04:24:35 You could basically create a whole new game by modifying the server. Dec 09 04:24:37 capella-s3, dunno, saw it as a feature bullet point a while ago Dec 09 04:24:48 capella-s3: how to improve: https://www.youtube.com/watch?v=NeHdpBM0H_Y Dec 09 04:25:00 yep just found the setting id turned off Dec 09 04:25:01 Oh well, no one's copied my notifications or widget yet Dec 09 04:25:04 heh Dec 09 04:25:10 I was able to change the weapons, the physics, the scoring, the menus. Everything. Dec 09 04:26:30 They had invented their own scripting language based on C. Dec 09 04:26:37 TacticalJoke: OMG that's my all time favorite game and I still play it Dec 09 04:26:40 Those people had put so much effort into that game. It was incredible. Dec 09 04:26:45 You still play? ;o Dec 09 04:26:47 lasserix wtf? heh confused Dec 09 04:26:54 I played for years. :D Dec 09 04:27:16 Is it T1, T2, or T:V? Dec 09 04:27:34 capella-s3: you put pint glass in freezer, roll up, light up with cherry end in your mouth, exhale into the chilled glass. it'll condence and then you can "drink" it (the whole j) very nice on a hot day Dec 09 04:27:37 I was playing it before it was released ;) I met the developers and got a signed copy Dec 09 04:27:48 Do people still play T1? Dec 09 04:27:54 That's incredible if so. Dec 09 04:27:57 and I still play it today Dec 09 04:28:06 well it's a few servers with mods Dec 09 04:28:13 ahhhhhhh :D Dec 09 04:28:20 Is baseLT still going? Dec 09 04:28:36 capella-s3: yeeaahh :) Dec 09 04:29:01 TacticalJoke: there's a few base's, but I'm usually on Brazil Annihilation server Dec 09 04:29:14 chewing gum and kicking ass ! Dec 09 04:29:14 I remember Annihilation. Dec 09 04:29:16 cue the lo-rider music :p Dec 09 04:29:31 My mod was a version of UltraVX (or whatever it was called). Dec 09 04:29:56 UltraVX was okay-ish, but some of the weapons were srsly imbalanced. So my mod hoped to balance them (and provide fun new gameplay stuff). Dec 09 04:30:23 I played a lot of Shifter and Ultra Renegades Dec 09 04:30:34 and then Annihilation Dec 09 04:30:45 I spent hours and hours playing that every day. It's nostalgic thinking about it again. :) Dec 09 04:30:50 That game sucks you in totally. Dec 09 04:30:59 I can do amazing D now Dec 09 04:31:01 i play fetch with my dog Dec 09 04:31:13 Did you ever get into MAing, shmooz? Dec 09 04:31:19 I used to spend hours MAing people. lol Dec 09 04:31:29 huh ? Dec 09 04:31:34 Hitting people mid-air with a disc. Dec 09 04:31:39 what's that Dec 09 04:31:46 In base. Dec 09 04:31:46 thats not android, i don't think Dec 09 04:31:47 oh Dec 09 04:31:59 yeah if the ping is good Dec 09 04:32:06 and you have to plan ahead of time Dec 09 04:32:21 there is an android version ;) Dec 09 04:32:47 This is the guy I learned from. He was incredible at MAing: http://youtu.be/6CG3jStl0Ek Dec 09 04:37:40 To hit those mid-air shots required taking into account the opponent's speed and direction of movement as well as our speed and direction of movement. It was freaking hard. Dec 09 04:41:22 best game ever! Dec 09 04:41:59 but hard to mod it, and very limited modding Dec 09 04:42:35 Hmm, I found the modding engine quite powerful, in general. Dec 09 04:42:40 they just reuse existing objects Dec 09 04:42:59 Yeah, for graphics. Dec 09 04:43:35 The learning curve of that game is about as steep as it gets. I've never played something so difficult. Dec 09 04:43:52 In base, you basically had to play for about six months before you were even reasonably competent. lol Dec 09 04:45:49 base is so bare it's boring for me Dec 09 04:47:27 I agree. I always played LT or UltraVX. Dec 09 04:49:13 shmooz: So are you on TW? :D Dec 09 04:49:15 I used to be. Dec 09 04:50:04 pfn do you know what in the new SDK tools rev 24 ? Dec 09 04:50:36 TW? Dec 09 04:50:44 oh, "Added support for Andriod Studio 1.0 and emulator enhancements." Dec 09 04:50:50 TribalWar. Dec 09 04:50:59 emulator enhancements ? Dec 09 04:51:05 no Dec 09 04:51:09 and I never played LT or UltraVX Dec 09 04:53:11 tests... Dec 09 05:02:37 and compiling speed Dec 09 05:22:42 g00s, not offhand no Dec 09 05:23:09 k, thx Dec 09 05:30:37 Does it make sense to use sp units for a right-margin that effectively separates two TextViews? Dec 09 05:30:46 I want it to scale with the user's text-size preferences. Dec 09 05:33:02 yeah Dec 09 05:33:15 essentialyl it is a space Dec 09 05:33:17 K. Dec 09 05:33:33 what is this view btw? Dec 09 05:34:15 It's this: [author] [details] (where details = score + how-long-ago-comment-was-made) Dec 09 05:34:28 I want [author] to use a different colours, so it's its own TextView. Dec 09 05:34:30 colour* Dec 09 05:35:08 I know I could use spans or whatever, but that's messier. Dec 09 05:35:56 I like all UI stuff to be in XML. Dec 09 05:37:42 Also, the option to colour the background is nice. Dec 09 05:42:58 too many TextView can be slow. Dec 09 05:43:30 spans are better Dec 09 05:43:34 I know, but how much is "too many"? Dec 09 05:44:02 This is three TextViews per Reddit comment. Dec 09 05:44:52 Scrolling a huge list is fast on my not-so-new phone. Dec 09 05:55:41 android:maxLength for a TextView is a life-saver. Dec 09 05:59:52 TacticalJoke: it should be fine Dec 09 06:00:07 TacticalJoke: compound view Dec 09 06:00:29 TacticalJoke: will you have icons or thumbnails? like imageview in each listitem? Dec 09 06:00:33 lasserix: How do you mean? Dec 09 06:00:37 encapsulate a little for modularity and reusability Dec 09 06:00:41 shmooz: Not for comments, but for posts. Dec 09 06:00:41 make this a compound view Dec 09 06:00:55 images will be heavier than textviews Dec 09 06:00:58 lasserix: Why? It's just two TextViews. Dec 09 06:01:04 why not? Dec 09 06:01:09 The thing returned by my Adapter.getView is a custom View, though. Dec 09 06:01:12 you can subclass it and add author thumbnail Dec 09 06:01:22 I already have a custom View here. :D Dec 09 06:01:24 yeah put a compound view in a custom view Dec 09 06:01:30 *custom viewgroup Dec 09 06:01:36 anyways just saying Dec 09 06:01:39 True, it's a custom ViewGroup. Dec 09 06:01:57 just think in terms of modularlzing your views into compound views Dec 09 06:02:10 it'll makeit easier to mix up the layout later if you decide to change it Dec 09 06:12:14 I always thought Chevy Chase was a woman for some reason. Dec 09 06:12:32 And a porn star. Dec 09 06:13:02 TacticalJoke: before seeing him or after ? Dec 09 06:13:12 lol Dec 09 06:13:20 I think I confuse him with Chasey Lain. Dec 09 06:13:33 Whom I know about only because of Bloodhound Gang song. Dec 09 06:13:42 that^ Dec 09 06:14:05 that's what they all say :P Dec 09 06:18:40 Oh, there's a thread about 1.0 on /r/android, too: http://www.reddit.com/r/Android/comments/2oo4ti/android_studio_10/ Dec 09 06:18:57 Although it's probably gonna be terrible. Dec 09 06:21:48 Anyone made a spherical looking ball with layer lists? Dec 09 06:23:16 a sperical looking ball :) as opposed to a squarish looking ball ? Dec 09 06:23:43 :) Dec 09 06:23:47 I like AS's protractor artwork. Really neat. Dec 09 06:27:31 Gotta love how everyone on /r/android talks as if a programming n00b could easily get into Android programming. Yeah, if you're willing to devote years of your life... Dec 09 06:28:05 Though, to be fair, some of the comments are realistic. Dec 09 06:38:30 ugh comment identiting on the reddit site kinda sucks Dec 09 06:38:37 ah nice, Pro Git 2e ePub fixed for Play Books ;) Dec 09 06:38:57 g00s need to make a lottery ball looking background Dec 09 06:41:41 upvote me tactical :) Dec 09 06:43:47 Which comment? Dec 09 06:44:07 uhh search my name Dec 09 06:44:10 tactical Dec 09 06:44:22 how about using a view pager for comment hiearchy? Dec 09 06:44:55 i have to think about it some more but i feel like swiping left and right to go up and down would be awesome Dec 09 06:45:01 just got ot figure out how to handle branching Dec 09 06:45:58 why is this in Android and not android-dev Dec 09 06:46:28 There's a thread in both. Dec 09 06:46:32 But yeah. Dec 09 06:46:54 I think keeping it all in a single ListView is easier. Dec 09 06:47:24 yeah but it sucks Dec 09 06:47:31 lasserix: lol -- http://postimg.org/image/yo7c0362n/ Dec 09 06:47:34 there has got to be something revolutionary you can do about it Dec 09 06:47:41 hehehe Dec 09 06:47:59 and then i like how someone was buit it doesn't fit! Dec 09 06:48:06 and they downvoted me Dec 09 06:48:08 fucking idiot Dec 09 06:48:11 Revolutionary would be making an Android Reddit client that doesn't suck. Dec 09 06:48:31 Yeah. lol. I found it funny. Dec 09 06:48:35 yeah and part of that is coming up with an innovative way to peruse comments Dec 09 06:48:56 The simplest way (for the user) is the best. Dec 09 06:50:57 yeah yeah Dec 09 06:50:59 which is to read their minds Dec 09 06:51:02 keep the sheep dumb Dec 09 06:51:12 safe and steady is the way Dec 09 06:51:22 steve jobs would so fire you :) Dec 09 06:52:19 TacticalJoke: write one Dec 09 06:53:17 he is Dec 09 06:54:59 I guess swiping right or left might be user optional in preferences Dec 09 06:55:41 the whole revolutionary thing reminded me about one company I was working at Dec 09 06:55:44 lasserix: What I mean is that the app should be so easy and fun and natural to use. Dec 09 06:55:58 I will support advanced user interactions, too. Dec 09 06:56:00 boss once said that we are developers so we can change tools, improve the enviroment Dec 09 06:56:13 But the default behaviour should be a very thin layer over the whole Reddit thing. Dec 09 06:56:20 later someone said that we want to move from svn to git Dec 09 06:56:24 and he said no :D Dec 09 06:56:36 TacticalJoke: what i am saying is that there could be a way to do it that is exactly "easy and fun and natural to use" more so than the vertical DAC Dec 09 06:56:39 *DAG Dec 09 06:56:48 I guess one could use the analogy of looking through a clear, unsmudged window at a beautiful outdoor scene. Dec 09 06:56:56 Or an ugly scene, depending on the subreddit. Dec 09 06:57:21 Hmm, guess it is a DAG. Hadn't thought of that. Dec 09 06:57:48 TacticalJoke: make it beautiful with the screenshots of the sky from Tribes Dec 09 06:57:54 lol Dec 09 06:59:26 The Reddit API is pretty flexible. You can tell it how deeply it should nest the comment listing that it gives you. Dec 09 06:59:36 If you tell it 1, for example, it gives you top-level comments only (with no children). Dec 09 06:59:42 In fact, the Reddit API almost makes it too easy. Dec 09 07:00:09 thepoosh did you get all the new things ? Dec 09 07:00:11 (Regardless of how deep the listing nesting is, it'll give you "Load more comments" nodes.) Dec 09 07:00:22 g00s: installed AS 1.0 Dec 09 07:00:27 what else is there? Dec 09 07:00:39 hm, play service 6.5, gradle 1.0.0 Dec 09 07:00:40 Blink 182. Dec 09 07:00:48 hmmmm Dec 09 07:00:53 Wait, that's "small things"> Dec 09 07:00:54 will install now Dec 09 07:00:54 .* Dec 09 07:01:09 TacticalJoke: I just saw the best AskReddit thread Dec 09 07:01:13 lasserix: I don't think there is any better way. Dec 09 07:01:26 The one about Heck? Dec 09 07:01:26 http://redd.it/2oolg7 Dec 09 07:01:29 yeah Dec 09 07:01:35 it was insanely good Dec 09 07:01:39 that's what i am saying you or we would have to come up with it, and i am thinking there is a way to do it with a view pager Dec 09 07:01:53 Nice. I'll check it out. Dec 09 07:02:06 lasserix: Swiping to view children? Dec 09 07:02:07 lasserix: bacon reader already has a ViewPager for reddit Dec 09 07:02:17 thepoosh: For comments? Dec 09 07:02:19 ahh cool ill check it out Dec 09 07:02:23 no, just posts Dec 09 07:02:33 What are the pages? Subreddits? Dec 09 07:02:35 what is the use case for comments in a view pager Dec 09 07:02:44 thepoosh: lasserix is trying to invent that. lol Dec 09 07:03:00 lasserix: what is the use case for pages for comments? Dec 09 07:03:38 Hmm, I just thought of one use case: when nesting goes too far. Dec 09 07:03:48 The new level starts in a new page. Dec 09 07:03:52 Not sure if good idea, though. Dec 09 07:04:05 (It'd open a page in response to a "Load more comments" tap.) Dec 09 07:04:13 is it possible to get regisration ID from incoming message from GCM ? Dec 09 07:04:43 thepoosh: i just think the vertical listing of comments canbe revolutionaized Dec 09 07:05:22 TacticalJoke: and you should show showing comments 30-40 of 1043 Dec 09 07:05:23 or something Dec 09 07:05:40 How do you mean? Dec 09 07:05:58 lasserix: I will use your app! Dec 09 07:06:41 thepoosh: no it doesn't Dec 09 07:06:49 ?? Dec 09 07:06:50 it just toggles context menu Dec 09 07:06:55 tjat Dec 09 07:06:59 err that's not what i meant Dec 09 07:07:15 TacticalJoke: if you do that viewpager for load more Dec 09 07:07:23 be sure to indicate where in the list you are about Dec 09 07:07:34 Ooh. Yeah. Good idea. Dec 09 07:07:42 That'd work well, I think. Dec 09 07:09:36 thepoosh: That thread is pretty good. Dec 09 07:09:42 yes! Dec 09 07:09:56 "Listening to people having misinformed conversations about a subject you know a lot of." Dec 09 07:21:36 hey gusy, im trying to return a view for my dialogPreference onCreateDialogView but i have a class that extends AlertDialog Dec 09 07:23:04 Anyone know how to do executor services in here? Dec 09 07:24:11 hey guys, im trying to return a view to use in onCreateDialogView in a DialogPreference, but I have a class that extends AlertDialog. any ideas how to get a view from that class? Dec 09 07:30:04 anyone know why this wouldn't work? http://www.reddit.com/r/androiddev/comments/2oooc5/threadpoolexecutor_not_executing_all_tasks/ Dec 09 07:30:21 dialog.getView Dec 09 07:33:17 lasserix: lol i wish, doesnt have Dec 09 07:33:19 lasserix, you're fucking your queue Dec 09 07:33:37 that's what you're doing wrong Dec 09 07:33:57 jareddlc: You have no control of the Dialog a DialogPreference shows, so you can't use an AlertDialog Dec 09 07:34:02 Create a regular View Dec 09 07:34:27 can i create a view based off an alert dialog. so my problem is that i was learning from CM code Dec 09 07:34:46 pfn: not my post: what do you mean tho? Dec 09 07:34:48 it appears that the code from DialogPreference doesnt exist in android sdk, so Dec 09 07:34:49 No Dec 09 07:35:01 now im stuck with an AlertDialog Dec 09 07:35:06 DialogPreference exists in aosp, yes Dec 09 07:35:20 DialogPreference also creates the Dialog that is shown. You only get to create the View Dec 09 07:35:23 lasserix, dude is polling from work queue and feeding right back into it Dec 09 07:35:33 yeah that is what i thought okay Dec 09 07:35:34 like mega wtf Dec 09 07:35:52 hehe Dec 09 07:37:50 hi Dec 09 07:37:56 I'm tryng to write to a file with gradle Dec 09 07:37:58 http://pastebin.com/qYsysUiY Dec 09 07:38:20 But I'm getting no output Dec 09 07:38:28 write a file with vim Dec 09 07:38:34 easier Dec 09 07:39:47 Odaym did you notice that startLeScan is deprecated now ? Dec 09 07:40:02 fuking pita Dec 09 07:40:10 I did not notice that, haven't looked at the ble code in some time Dec 09 07:40:32 Odaym: ? Dec 09 07:40:39 pita as in mini puta? Dec 09 07:40:50 yeah :) Dec 09 07:41:14 Code without semicolons freaks me out now. Dec 09 07:43:10 lol g00s so how am i gonna scan? Dec 09 07:43:22 i was about to implement that next after i figure out my custom dialogPrefence Dec 09 07:43:44 jareddlc oh that will still work for a while, just that not on 5.0 we'll need to use another class to get the right behavior Dec 09 07:44:09 arguably, that damn thing was broken big time Dec 09 07:44:15 ah alright. ugh Im never gonna learn from CM code agin Dec 09 07:44:22 i didnt know there was CM specific code Dec 09 07:45:20 Nothing about DialogPreference is CM specific Dec 09 07:48:51 SimonVT: There is, there is not CreateDialog Dec 09 07:49:06 SimonVT: https://github.com/CyanogenMod/android_packages_apps_Settings/blob/cm-11.0/src/com/android/settings/notificationlight/ApplicationLightPreference.java#L166 Dec 09 07:49:43 its not documented Dec 09 07:52:58 Oh well, the public API is the same Dec 09 07:53:38 You'll run into the same issue if you look at aosp classes Dec 09 07:53:46 Not every method can be used by apps Dec 09 07:54:28 Those that can't are annotated with @hide in the source. And they're not on d.android.com Dec 09 07:54:37 non public api are non public for a reason Dec 09 07:54:50 @hide is a neat trick Dec 09 07:54:54 Anyone know off hand that _fastest_ way to count occurances in a string? Dec 09 07:55:02 I didnt know SimonVT Dec 09 07:55:14 but becuase of that all the code i was learning from, is useless :( Dec 09 07:55:22 lasserix, it's O(n) no matter what Dec 09 07:55:22 lasserix: Under what conditions? Dec 09 07:55:33 pfn doh yeah you right duh Dec 09 07:56:01 TacticalJoke: no conditions, just have 500 sentences, want to know how many commas in each sentence Dec 09 07:56:32 all you can do is iterate and count Dec 09 07:56:39 lasserix, use Dec 09 07:56:44 stringtokenizer Dec 09 07:56:44 ? Dec 09 07:56:54 use comma as delimiter Dec 09 07:57:00 not fast Dec 09 07:57:07 total commas = output-1 Dec 09 07:57:25 unless you're talking line count is fast Dec 09 07:58:59 when using emoji input, does it show up as a different ime? Dec 09 07:59:19 depends on keyboard Dec 09 07:59:28 SwiftKey or Google Dec 09 07:59:32 lasserix: I think just iterating should be really fast. Dec 09 07:59:46 TacticalJoke: surprisingly its not Dec 09 07:59:53 slowed my parser down a lot Dec 09 07:59:56 iterati g Dec 09 08:00:02 is plenty fast Dec 09 08:00:09 lasserix: Can you post any code? Dec 09 08:00:15 Especially something I can run. :D Dec 09 08:00:20 index of until -1 Dec 09 08:00:20 With input and everything. Dec 09 08:00:45 repeat until no more, keep count Dec 09 08:01:31 or in Scala: str filter (_==',') size Dec 09 08:01:41 😁 Dec 09 08:01:58 what's best post site besides pastebin? Dec 09 08:02:03 i hit my limit and dont want to sign up Dec 09 08:02:16 I always use gist now Dec 09 08:02:20 http://pastie.org/9769381 Dec 09 08:02:31 hmm gist is nice Dec 09 08:03:17 have like 300 of those sample lines Dec 09 08:03:23 how do you hit a limit on pastebin Dec 09 08:03:27 added hundreds of milliseconds Dec 09 08:03:29 i have no idea Dec 09 08:04:12 Hmm, that looks like it should be fast. Dec 09 08:04:18 Is String.charAt slower, BTW? Dec 09 08:04:48 hhehe Dec 09 08:04:49 String.indexOf could be slow because it uses JNI. Not sure, though. Dec 09 08:04:50 yeah Dec 09 08:04:52 err Dec 09 08:04:53 no Dec 09 08:04:55 indexOf is Dec 09 08:05:04 indexOf is Dec 09 08:05:18 indexOf uses jni? Dec 09 08:05:30 It seems to: https://android.googlesource.com/platform/libcore/+/master/libart/src/main/java/java/lang/String.java#849 Dec 09 08:05:48 ahh Dec 09 08:05:50 no wonder Dec 09 08:06:34 charAt is just "return value[offset + index];" after a range check. Dec 09 08:07:04 Hi Dec 09 08:07:38 lasserix: Is charAt much faster? Just wondering. Dec 09 08:07:47 If I try to build an app with ant debug, I get: error: cannot find symbol Dec 09 08:08:07 import android.os.storage.IMountService; Dec 09 08:08:37 TacticalJoke: yes it is Dec 09 08:08:44 Hmm, interesting. Dec 09 08:08:51 import statement is not accepted, this seems strange Dec 09 08:08:57 the commented code is faster Dec 09 08:09:05 cristian_c: https://developer.android.com/reference/android/os/storage/package-summary.html Dec 09 08:09:15 It doesn't seem to exist in the public api Dec 09 08:09:19 Note that indexOf takes into account codepoints outside of the BMP, and charAt doesn't, but this might not matter in your case. Dec 09 08:09:46 umm not for , Dec 09 08:09:49 ok Dec 09 08:09:51 strange Dec 09 08:09:55 but that would prob make it slower too then Dec 09 08:10:07 Not really.. Not everything is in the public api Dec 09 08:10:31 can't you get at it via reflection? Dec 09 08:10:54 I think that charAt code is the fastest you can do. Dec 09 08:10:56 SimonVT, I've found storage class and methods in developer.android.com Dec 09 08:11:02 you can get at anything g via reflection Dec 09 08:11:24 lasserix, I find it interesting that char at is faster Dec 09 08:11:31 tru dat Dec 09 08:11:35 yeah Dec 09 08:11:44 I guess it's just the JNI overhead. Dec 09 08:11:46 well TacticalJoke said indexof uses jni AND checks codepoint range Dec 09 08:12:45 sorry, android.googlesource.com Dec 09 08:13:05 SimonVT, https://android.googlesource.com/platform/frameworks/base/+/master/libs/storage/IMountService.cpp Dec 09 08:13:17 You can find lots of classes in aosp that aren't part of the public api Dec 09 08:13:27 ok Dec 09 08:13:39 thanks for the info Dec 09 08:14:02 lasserix i just looked at String.indexOf and don't see any JNI O.o Dec 09 08:14:18 oh , fastIndexOf Dec 09 08:14:20 oops Dec 09 08:14:40 i guess then it should be notSoFastIndexOf Dec 09 08:15:12 str filter (_==',') size fte Dec 09 08:15:13 slowIndexOf Dec 09 08:15:14 ftw Dec 09 08:15:23 lasserix anyhow, if you already wrote a parser, why a decond pass to find occurences? Dec 09 08:15:37 god damn it, *second. can't type with gloves on Dec 09 08:15:58 g00s Dec 09 08:16:00 one sec Dec 09 08:16:04 I suspect that fastIndexOf is fast only if called rarely (rather than being called repeatedly in a loop). Dec 09 08:16:05 although these open finger gloves are awesome :) Dec 09 08:16:13 brrrrr Dec 09 08:16:24 fastIfCalledOccasionallyIndexOf Dec 09 08:18:21 g00s i just added as a first pass to verify the statement was built right (ie count number of commas) Dec 09 08:18:40 thats lame. use ragel Dec 09 08:18:49 ALU parallelization and loop unrolling Dec 09 08:18:52 got more important thigns to do at the moment Dec 09 08:19:14 if by important you mean, doing it wrong, ok :) Dec 09 08:19:15 when i add xml format support illl rewrite using ragel just for you Dec 09 08:19:22 its not wrong Dec 09 08:19:37 no, ragel isn't for XML Dec 09 08:19:40 just want to actually work on the rest of the keyboard at this point Dec 09 08:20:09 since i have the custom view and everyone i show it to goes ahh that's cute cause of its 160dp width Dec 09 08:20:38 dunno why the mind associates minizaturation with cuteness Dec 09 08:20:53 you don't? Dec 09 08:21:10 Minimization? Dec 09 08:21:18 no but im broken Dec 09 08:21:22 hehehe Dec 09 08:21:27 @TacticalJoke Dec 09 08:21:53 Apart from spiders, most small things are cute. Dec 09 08:22:20 i wish my irc client had ignore such that the line was basically redacted, not totally dropped. that way you could get a sense of pacing of conversation Dec 09 08:22:24 hey TacticalJoke, there is roboelectric plugin for gradle therefore as can support automated jvm testing? Dec 09 08:22:43 It's not JakeWharton-approved, though. Dec 09 08:22:51 I think he was saying those plugins tend to break. Dec 09 08:22:55 In fact, I read that that one did break. Dec 09 08:23:01 (At 1.0.) Dec 09 08:23:01 ah Dec 09 08:23:12 the robolectric one is particularly bad because it puts your unit tests in the androidTest folder Dec 09 08:23:37 JakeWharton: for niave people such as myself, why is this bad? Dec 09 08:24:01 well right off the bat it's bad because you can't separate dependencies Dec 09 08:24:09 ahh i see Dec 09 08:24:18 I filled in their survey and said I wanted JVM unit testing. Dec 09 08:24:20 ugh something that i'm bashing my head against Dec 09 08:24:27 TacticalJoke: it's coming Dec 09 08:24:28 I also said I wanted NDK development, just because I feel bad for those people. Dec 09 08:24:36 JakeWharton: Is there any news? :) Dec 09 08:24:39 i've got robolectricTest deps working but it doesn't integrate with intellij Dec 09 08:24:47 TacticalJoke: i just gave you the news Dec 09 08:24:47 incredibly annoying Dec 09 08:25:02 When is it coming? Did someone say something recently? Dec 09 08:25:20 in the future Dec 09 08:25:22 TacticalJoke http://tools.android.com/roadmap Dec 09 08:25:26 sarbs: we had intellij working with roboelectric Dec 09 08:25:30 no, i talked with Xav a few weeks ago about it Dec 09 08:25:33 K. Dec 09 08:25:48 "Better test support" looks promising. Dec 09 08:25:50 lasserix using androidTestCompile or something like robolectricTestCompile? Dec 09 08:26:10 am not sure, where would that info be i can look at the source Dec 09 08:26:17 (i didn't set it up) Dec 09 08:26:35 it's not in the main project, this is stuff i've done Dec 09 08:26:58 think the guy who did used maven to get it to work Dec 09 08:26:58 I look forward to moving to AS. Dec 09 08:27:01 Though it seems scary. Dec 09 08:27:08 hooopefully stuff that'll be obsolete in the next month or two per what jake's hinting at but i'm not holding my breath Dec 09 08:27:18 the best part is after he got it all up and running i reminded him the binary we were tested couldn't run in the JVM :) Dec 09 08:27:33 I was hoping he was gonna say "It's coming... tomorrow!" :D Dec 09 08:29:11 It's so handy to be able to use the JVM. Not just for automated testing, but also for trying little code snippets. Dec 09 08:29:29 Like, if some code just isn't working in your app, make a tiny reproducible blob and run it on the JVM (I usually get the unit-test runner to run it). Dec 09 08:30:00 @Test public void foo() { doStuff(); } Dec 09 08:30:33 And of course you can use System.out.println. Dec 09 08:31:32 it doenst matter if it's intellij or eclipse to get robolectric working ;) Dec 09 08:31:49 i hope they clean up the gradle docs. still in release notes still isn't merged in Dec 09 08:32:00 they should do that for 1.0.0 :) Dec 09 08:32:00 What is the current Gradle version in AS? 1.0? Dec 09 08:32:03 Anyone make a spherical looking circle using layer lists? Dec 09 08:32:21 is there a "appropriate" way to install system apps and make the system extract the native libraries it comes budled with? Dec 09 08:32:34 TacticalJoke: 2.2.1 Dec 09 08:32:46 TacticalJoke 2.2.1 for gradle itself, 1.0.0-rc4 for the plugin Dec 09 08:32:50 I see. Dec 09 08:32:58 I guess this site is talking about the plugin version: http://tools.android.com/roadmap Dec 09 08:33:00 JakeWharton: Do you have experience with writing custom gradle tasks? Dec 09 08:33:02 "Post 1.0 Gradle" Dec 09 08:33:09 sarbs: 1.0.0 for the plugin Dec 09 08:33:12 c03: yes Dec 09 08:33:13 rc4 for plugin? Dec 09 08:33:15 I'm trying to write my mercurial revision to a file Dec 09 08:33:21 gradle plugin is 1.0.0 final Dec 09 08:33:23 oh no more rc? fancy shmancay Dec 09 08:33:25 1.0.0 is out Dec 09 08:33:27 Okay. Sounds good. Dec 09 08:33:36 JakeWharton: can you see what's bad in this snippet? http://pastebin.com/qYsysUiY Dec 09 08:33:46 It'd be funny if they implement JVM unit testing and NDK stuff in a week. Dec 09 08:33:58 Though I'd imagine the latter is difficult. Dec 09 08:34:05 lol that'd kinda tick me off but god i'd love it Dec 09 08:34:05 https://github.com/pfn/android-sdk-plugin/commit/4d1f233b1eaed3d25c74cf9fc1a22365cab283bf Dec 09 08:34:41 TacticalJoke, intellij doesn't support c Dec 09 08:34:44 https://www.irccloud.com/pastebin/TxK8wqmX Dec 09 08:34:47 c03: ^^^ Dec 09 08:34:49 not for a while yet Dec 09 08:34:56 I heard about that CLion thing. Dec 09 08:35:02 Guess it'll take a while. Dec 09 08:35:07 those poor c++ / ndk people Dec 09 08:35:10 unless you call supporting ndk running ndk build Dec 09 08:35:18 then it's basically done Dec 09 08:35:36 JakeWharton: thanks man! It's going in my build.gradle right? Dec 09 08:35:38 well Clion is out there Dec 09 08:35:42 c03: yes Dec 09 08:35:51 appcode too Dec 09 08:36:00 One thing I read tonight shocked me. Ctrl+Y is "delete line" by default in IntelliJ. ;o Dec 09 08:36:01 I need to read up on gradle/groovy, but I'm way too busy for the time being Dec 09 08:36:05 thanks again! Dec 09 08:36:12 That's like having the Enter key be the Backspace key. Dec 09 08:36:15 TacticalJoke: change your keymap Dec 09 08:36:22 there was a question about ndk build system on android ndk in survey Dec 09 08:36:23 Yeah, I'll have to do that when I use AS. Dec 09 08:36:24 so.. Dec 09 08:36:26 or maybe you're on windows or linux... Dec 09 08:36:43 This is Windows. Dec 09 08:36:43 Ctrl+Y is from VI Dec 09 08:36:49 Yeah, "yank", I think. Dec 09 08:36:49 "Yank" Dec 09 08:36:53 ya Dec 09 08:36:54 TacticalJoke: i got it! Dec 09 08:36:55 the keybindings for OSX 10.5+ are so nice Dec 09 08:37:00 i got it! Dec 09 08:37:02 lasserix: What? Dec 09 08:37:04 i got how to do it Dec 09 08:37:08 umm Dec 09 08:37:11 let me make a diagram Dec 09 08:37:23 JakeWharton: They don't use Cmd+Y for 'delete line'? Dec 09 08:37:24 JakeWharton: where do I get rootDir from? Dec 09 08:37:33 c03: nowhere, it's available Dec 09 08:37:37 lasserix: If you come up with an amazing idea, I'll write your name everywhere. Dec 09 08:37:37 TacticalJoke: cmd+backspace Dec 09 08:37:42 Oh, nice. Dec 09 08:37:44 it is Dec 09 08:37:57 its a fucking badd ass navigation scheme for thread trees Dec 09 08:38:02 I have to believe it's amazing, though. Dec 09 08:38:08 JakeWharton: getting : Error:(35, 0) Cause: error=2, No such file or directory Dec 09 08:38:14 im going to goto bed and ill draw up the diagram in the morning Dec 09 08:38:20 Okay. lol Dec 09 08:38:22 http://www.wired.com/2014/12/obama-becomes-first-president-write-computer-program/ Dec 09 08:38:25 line 35 is def gitHsa =.... Dec 09 08:38:35 funny how you need to be in that state between sleep and wake to be able to visualize some ideas sometimes Dec 09 08:38:54 The whole "dropping acid" thing. Dec 09 08:39:03 heheheheh Dec 09 08:39:10 srsly Dec 09 08:39:27 wont mention what may have inspired ahem Dec 09 08:39:35 anyways time to sleep Dec 09 08:39:40 good luck with it ill show you tomorow Dec 09 08:39:46 K. Thanks. :) Dec 09 08:39:50 Sleep well. Dec 09 08:41:47 Odaym: javascript doesnt count Dec 09 08:42:12 I didn't even read it, I'm not American Dec 09 08:42:16 but thought you'd like it lol Dec 09 08:42:22 I hate when 'code' is used as a verb. Dec 09 08:42:41 It almost always means the writer isn't a programmer, too. Dec 09 08:42:43 I hate how partner became a verb Dec 09 08:42:54 let's partner up Dec 09 08:43:11 I dislike 'pair' as a verb. Dec 09 08:43:25 let's pair this device with that one, using Bluetooth! Dec 09 08:43:27 never sounds right to me ... a partner is a thing Dec 09 08:43:38 i dislike verbs! Dec 09 08:43:39 "partnering" seems, odd :/ Dec 09 08:43:51 let's just dislike verbs altogether Dec 09 08:43:58 let's just verbs altogether Dec 09 08:44:05 shit now "verbs" is a verb Dec 09 08:44:16 Odaym could also be a verb Dec 09 08:44:24 it's neverending! Dec 09 08:44:26 stop verbing @ me !!!! :p Dec 09 08:44:36 gah ... now Im doing it Dec 09 08:45:42 Imagine being new to programming and using JavaScript. Dec 09 08:45:58 What an introduction. Dec 09 08:46:13 probably better than basic Dec 09 08:46:15 js mad me sad .... then after awhile it wasn't so bad Dec 09 08:46:48 dynamic languages like js / interpretive like basic / non- compiled feel wrong also Dec 09 08:46:49 Isn't Firefox largely a JavaScript VM? Dec 09 08:46:56 Man, next time someone says "I won't use this library/IDE/tool because it's not from Google" I'll be violent. Dec 09 08:47:19 Mavrik oh oh, what happened now Dec 09 08:47:27 FF is a huge piece of JS but with a big basis on C++ XPCOM stuff Dec 09 08:47:53 g00s, eh, I had the unfortunate luck to read AS 1.0 thread on HN :P Dec 09 08:47:57 Then the mobile version ass Java as the UI on top of it all ... fun :) Dec 09 08:48:03 er, adds Dec 09 08:48:24 AS SUCK NO NDK SUPPORT... "No of course I'm not going to use one of the 300 better C/C++ IDEs!" -_- Dec 09 08:48:24 capella: Freud would be intrigued. ;D Dec 09 08:48:45 * Mavrik stops ranting. Dec 09 08:48:52 * Mavrik goes back to profiling. Dec 09 08:48:53 Java on JavaScript seems so... weird. Dec 09 08:48:55 and foaming ? Dec 09 08:49:09 Like a car on top of a car or something. Dec 09 08:49:14 The top car's wheels don't do anything. Dec 09 08:49:16 Heh ... passing messages back and forth between JS and JAVA is fun Dec 09 08:49:29 have to cross JNI to get there Dec 09 08:49:40 Damn. lol Dec 09 08:49:54 I'm getting sad about Firefox (on Windows), because they're asking for money now. :[ Dec 09 08:50:00 Is Google still funding Mozilla? Dec 09 08:50:03 It's actually fun from a complexity because we can point of view Dec 09 08:50:21 No, Moz has moved to MS / Bing / er, Yahoo Dec 09 08:50:45 Oh, didn't know that. Dec 09 08:50:49 Recent Dec 09 08:52:08 Yah, I think mmoz has a donor solicitation kinda thing started recent also ... that's ... confusing me Dec 09 08:52:53 "open Source gotta eat" :D Dec 09 08:53:26 pepsi and m&m's cost money Dec 09 08:53:32 I wish they'd just become better than Chrome already. Dec 09 08:53:51 Multi-select tabs, one process per tab, and other stuff that I can't remember right now. Dec 09 08:54:06 resource constraints Dec 09 08:54:13 Something better than Panorama (or whatever it's called now). Even better than OneTab. Dec 09 08:54:24 How do you multi-select tabs in chrome TacticalJoke ? Dec 09 08:54:30 With Ctrl or Shift. Dec 09 08:54:37 Oh :-) Dec 09 08:54:57 I'm glad Firefox finally allowed people to middle-click a single tab in a window to close it. Took years to get that fixed. :/ Dec 09 08:55:02 somebody on HN said one thing thats cool about AS is that it has inline drawabe previews; geos assembler had that in the 80s Dec 09 08:55:45 I used to spend crazy amounts of time on Mozilla's Bugzilla. Some of the conversations were painful. Dec 09 08:56:00 hahaha ... you've seen my work XD Dec 09 08:56:06 Probably. :D Dec 09 08:56:14 Oh, is that thing your work? Dec 09 08:56:39 I've been contributing for 3 yrs now ... last two in Mobile Dec 09 08:56:56 I remember when someone high up in Mozilla arbitrarily decided that middle-clicking a bookmark directory would overwrite any open tabs... and that's that. Dec 09 08:56:59 Just out of nowhere. lol Dec 09 08:57:02 That cause fury. Dec 09 08:57:13 He finally admitted he was wrong. Dec 09 08:57:15 About two years later. Dec 09 08:57:19 Product managers Dec 09 08:57:21 Ya. Dec 09 08:57:36 Oh, gawd. Dec 09 08:57:39 Tab overflow. Dec 09 08:57:41 Just... no. Dec 09 08:57:54 They even remove the pref to disable it. :[ Dec 09 08:58:01 Or at least constrain it. Dec 09 08:58:12 IMO, they only need to fix a few things to be better than, or equal to, Chrome. Dec 09 08:58:25 I have a dozen personal patchs in my queue ... small perk Dec 09 08:58:32 I used to be a religious Firefox user. Dec 09 08:58:40 And reporter of Firefox bugs. Dec 09 08:58:44 TacticalJoke: and we have mozilla to blame/thank for that abomination of apng instead of something which would viably replace gif totally :P Dec 09 08:59:44 chrome should fix pepper flash on linux Dec 09 09:00:04 because it causes problems when you swithc tabs Dec 09 09:00:22 One thing that drives me crazy is that gfycat site. I love the idea, but for the love of gawd please let me open an animation in a single click. Dec 09 09:00:28 I don't wanna click something and then click Play. Dec 09 09:00:36 And then click Back twice. Dec 09 09:00:59 (On Android.) Dec 09 09:01:19 Hmm, they have an app. Dec 09 09:02:25 I wonder what happened to Opera. They seem to have vanished. Dec 09 09:02:52 they are just a rebadged chrome now Dec 09 09:03:10 Yeah, I heard something like that. Dec 09 09:03:21 I remember when they were adware. lol Dec 09 09:03:33 That seemed so bad then. And yet today we put up with that in Android. Dec 09 09:05:22 opera ? Dec 09 09:05:30 there's new version recently Dec 09 09:05:32 on webkit Dec 09 09:05:33 Yeah. When it was first released. Dec 09 09:05:38 with new friend tab sharing feature Dec 09 09:05:51 and now there's also new stable release for linux Dec 09 09:06:14 dont know when was last update Dec 09 09:06:18 liek a week ago ? Dec 09 09:07:13 I guess they're doing the mobile thing and stuff, too. Dec 09 09:07:42 no idea Dec 09 09:07:46 didnt like old opera either Dec 09 09:09:04 I have have two TextViews, one on top of the other. I want the top one to have a padding of 10dp on left, top, and right, and I want the bottom one to have a padding of 10dp on the left, bottom, and right. In the middle, I want them to have 5dp each (so that there's a visible 10dp all around). Is there an easier way of doing this than having to calculate the 5dp somehow? Dec 09 09:09:24 It'd be nice if their padding could merge where they touch. Dec 09 09:09:34 Though I guess that makes no sense. :D Dec 09 09:11:12 This is it: http://stackoverflow.com/questions/11735430/collapsing-margins-in-android-layouts Dec 09 09:14:59 congrats on v1 (android studio) Dec 09 09:27:36 hi all :) Dec 09 09:38:56 Morning all Dec 09 09:44:04 hi Dec 09 09:44:44 morning Dec 09 09:48:02 https://plus.google.com/107681848666540001208/posts/WktUSav3xSj Dec 09 09:48:30 I like how Google decided to highlight their own shortcomings with the AS 1.0 release Dec 09 10:20:41 anyone used http://facebook.github.io/rebound/ ? Dec 09 10:25:06 hi Dec 09 10:25:50 hi shmoon Dec 09 10:38:26 hi Dec 09 10:38:36 can your app be shut down for using too much processor power? Dec 09 10:40:01 are you wanting that or avoiding it? Dec 09 10:42:06 well my app is getting shut down Dec 09 10:42:09 and I am not sure why Dec 09 10:42:35 ChrisUK only if it goes ANR or is in background Dec 09 10:42:40 logcat Dec 09 10:43:27 though anr us pretty obvious Dec 09 10:45:35 ChrisUK: log log log log log log log log log log? Dec 09 10:46:27 lovely log... wonderful log... Dec 09 10:51:13 Caused by: java.lang.NoSuchFieldError: No static field AdsAttrs of type [I in class Lcom/google/android/gms/R$styleable; or its superclasses (declaration of 'com.google.android.gms.R$styleable' appears in /data/app/com.yoavst.quickapps-2/base.apk) Dec 09 10:51:28 new play service 6.5. any idea why? Dec 09 10:58:12 JakeWharton: I just saw this: https://android-review.googlesource.com/#/c/116880/ Dec 09 10:58:31 " Introduce new UNIT_TEST variant type." Dec 09 10:59:23 I wonder whether that is what I'm thinking it is. Dec 09 11:01:53 TacticalJoke: nice find Dec 09 11:02:17 so polish guy is making changes Dec 09 11:02:31 Looks promising. :) Dec 09 11:04:27 good Dec 09 11:04:30 waiting Dec 09 11:06:16 what does Excessive delay reading vsync mean? Dec 09 11:11:07 <[[derek]]> Hey, does anyone have any example apps that utilise android 5.0 toolbar with support for older android versions? Dec 09 11:12:51 i'm currently working my way through the android publishing api & the test-java-project provided. but for the life of me i can't find out either what to put in the 'client_secret' parameter or where to find it. the tutorials are mostly confusing / outdated Dec 09 11:13:04 [[derek]] just use android.support.v7.widget.Toobar the same way you would use the not-support-toolbar Dec 09 11:13:56 I am trying to understand this WakefulBroadcastReceier - what is a device wakeup event ? How can I generate one myself ? Dec 09 11:14:12 infact I've more questions like when does a device sleeps, what happens when it sleeps, etc. ? Dec 09 11:14:19 is there a dedicated tut on this Dec 09 11:15:14 shmoon, I suggest you look at the source of that receiver Dec 09 11:15:23 what it does it just grabs a wakelock when it's called Dec 09 11:15:29 and releases it after intent completes. Dec 09 11:17:12 <[[derek]]> I'm going to attempt to create a cloud base service for emulating snes games Dec 09 11:18:48 shmoon, anyway, with "sleep" the documentation means deep sleep mode of ARM chips, when the cores are actually powered down and no code is executed Dec 09 11:21:21 Is it bad to use an asynctask instead of a loadermanager within a fragment? Dec 09 11:22:30 misterli is that not a question of does it fit ? as in callback use ? Dec 09 11:23:34 No, not really. Dec 09 11:23:43 Mavrik: if cpus are powered down then how will something like play services receive gcm messages or phone ring or devie wake up at all ? i was wondering Dec 09 11:24:48 I have ListView and ProgressBar in RelativeLayout. I want to make ProgressBar GONE when ListVIew populated. How to now if ListView populated? Dec 09 11:25:01 *now = know Dec 09 11:25:46 kamol monitor it's backing data? Dec 09 11:26:40 StingRay_: it is adapter date from ParseQueryAdapter Dec 09 11:27:00 shmoon, baseband radio is still running Dec 09 11:27:17 and when it receives an incoming TCP data it triggers IRQ to main CPU Dec 09 11:27:25 which powers on the cores and handles the interrupt Dec 09 11:27:35 (same for other I/O, same for timed wakeups) Dec 09 11:27:42 Hey folks. Anyone know why an app would randomly uninstall itself on devices? specifically a ZXing fork released through Google Play. Dec 09 11:28:05 it wouldn't Dec 09 11:29:24 I have updated to the android gradle plugin 1.0.0, and now get a gradle error because it can't find "android.libraryVariants.all { variant -> variant.packageLibrary }" Dec 09 11:29:45 It worked with 0.13.3 Dec 09 11:30:05 Looking at http://tools.android.com/tech-docs/new-build-system I see for 0.14.3, some deprecated properties/methods were removed. Specifically: Dec 09 11:30:10 Variant.packageApplication/zipAlign/createZipAlignTask/outputFile/processResources/processManifest (use the variant output) Dec 09 11:30:41 hmm Dec 09 11:30:48 str4d: proguard ? Dec 09 11:30:49 What does "use the variant output" mean? Where can I see what was deprecated? Dec 09 11:30:54 variants ? Dec 09 11:31:01 how do you specify them > Dec 09 11:31:20 gordon_: I don't have flavors in this library. Dec 09 11:31:39 The code I am using was to bundle JARs from a dependency into the library AAR for publishing. Dec 09 11:32:00 android.libraryVariants.all { variant -> Dec 09 11:32:04 // Hook the copy task into the build Dec 09 11:32:04 variant.packageLibrary.dependsOn copyClientLibsTask Dec 09 11:32:04 copyClientLibsTask.mustRunAfter ':routerjars:buildClient' Dec 09 11:32:04 } Dec 09 11:32:12 ugh Dec 09 11:32:20 (inside that {} the copy task was defined) Dec 09 11:32:47 so I cannot help you Dec 09 11:32:57 "routerjars" is a java project that wraps the .jar generation in a separate Ant project. Dec 09 11:32:59 but post solution if you find that Dec 09 11:33:07 hi Dec 09 11:33:11 ant project ?! Dec 09 11:33:21 hmm Dec 09 11:33:40 I have a imageview which uses these parameters LinearLayout.LayoutParams image_params = new LinearLayout.LayoutParams( 0, LayoutParams.WRAP_CONTENT,0.2f); image_params.gravity = Gravity.LEFT; Dec 09 11:33:44 why not separate gradle project or put it into server and on server? Dec 09 11:33:48 gordon_: legacy from older system, combined with fact that Gradle wouldn't support jar files being dynamically added. Dec 09 11:33:50 if you set a thread to max priority can it stop other threads in the process from working? Dec 09 11:34:00 str4d: got some nexus server > Dec 09 11:34:02 *? Dec 09 11:34:10 I have an imageview which uses these parameters LinearLayout.LayoutParams image_params = new LinearLayout.LayoutParams( 0,LayoutParams.WRAP_CONTENT,0.2f); image_params.gravity = Gravity.LEFT; Dec 09 11:34:23 I have an imageview which uses these parameters LinearLayout.LayoutParams image_params = new LinearLayout.LayoutParams( 0,LayoutParams.WRAP_CONTENT,0.2f);image_params.gravity = Gravity.LEFT; Dec 09 11:34:33 gordon_: the library goes on nexus server. The jars it uses don't. Dec 09 11:34:38 have people forgot about pastebin ? Dec 09 11:34:47 str4d: why not put jars in nexus too ? Dec 09 11:34:50 as 3rd party jars Dec 09 11:35:09 and simply put it as gradle dependency Dec 09 11:35:10 but this is never working and the imageview is always aligned to right of the layout Dec 09 11:35:17 Because the jars are modified during generation Dec 09 11:35:24 ah... Dec 09 11:35:51 The jars as-generated would be fine on desktop. But some classes need to be substituted when using on Android. Dec 09 11:35:54 StingRay_: sorry I was not able to see the details I am entering and pasted it multiple times Dec 09 11:36:02 niru are you aware you pasted that in the channel 3 times though ? Dec 09 11:36:17 So I can't just publish the desktop jars and use those as a dependency. I need to generate the jars locally and include them in the library. Dec 09 11:36:30 yes :( Dec 09 11:37:08 Previously, I hooked into the packageLibrary task of each variant (debug and release) to have it depend on a copy task. Dec 09 11:37:33 But now it seems that packageLibrary has been deprecated - and I can't see any deprecation notice anywhere, or any good indication of what to use instead. Dec 09 11:37:43 niru anyways, your imageView is controled by the parent layout...so quite simply the coditions allowed by the parent are your problem Dec 09 11:37:57 ie. this issue is a documentation issue with the Android Gradle Library plugin Dec 09 11:38:16 Does anyone know where the DSL documentation for the plugin is? Dec 09 11:38:34 niru and at a guess I would say that you are forgetting that orientation only allows weight control of one axis, Vertical = Horizontal Weight and ...well.... you get it :) Dec 09 11:40:50 StingRay_: yes Dec 09 11:40:50 niru oh and also the wight alignment is seldom used when using weighted space like you are attempting ? as it becomes quite irrelevant when filling left over space Dec 09 11:40:58 weight* Dec 09 11:42:10 StingRay_: sorry, I think I figure it out. Thank you for you support anyway :) Dec 09 11:42:58 Mavrik: ok thanks, that was something new I learnt Dec 09 11:43:01 niru so what you are actually saying is, align this to the left (hoping that the parent linearLayout is Vertical orientation) but then in the child params you are saying fill remaining space ...by using weight ? dunno, to me thats confusing :) Dec 09 11:43:49 Mavrik: although I wonder wht about push notifications - i.e., if the device is sleeping (cpu is off) how does our devices receive push notifications via our own servers or gcm Dec 09 11:44:08 shmoon like he said, the radio is still on Dec 09 11:44:12 StingRay_: my mainlayout is a horizontal layout.In that I have a textview an imageview Dec 09 11:44:29 shmoon or how would we get calls :) Dec 09 11:44:52 niru then how do you expect horizontal alignment ? Dec 09 11:44:59 StingRay_: thanks I think I have to check my main layout first Dec 09 11:45:18 so you have 2 problems that are stopping you... both come from maybe not really understanding it Dec 09 11:45:42 my advice is just use 1 element in there so that you learn by experimentation :) Dec 09 11:45:55 StingRay_: :) Dec 09 11:46:05 since most of it is A or B and X or Y it's quite easy to randomly learn :) Dec 09 11:46:30 ah yes sorry was thinking somethign else, thanks StingRay_ Dec 09 11:49:36 StingRay_: so main cpu and cores are different? Dec 09 11:49:39 i am wondering Dec 09 11:50:07 different to what ? Dec 09 11:50:17 to the baseband radio system ? Dec 09 11:51:55 he said incoming TCP data makes baseband radio chips trigger IRQ o main CPU which powers on the cores Dec 09 11:52:12 cores are the processing units in cpu Dec 09 11:52:45 dual core etc... or like me and my mac pro, dual hex core :) with HT ;) Dec 09 11:52:53 ok i thought dual core means 2 cpus Dec 09 11:52:58 so i guess that means 1 cpu with 2 cores? Dec 09 11:53:43 well I have 2 cpu's, each with 6 cores, each core is HT capable of executing 2 threads at the same time Dec 09 11:53:55 so that 24 baby...yeah :) Dec 09 11:54:05 wow Dec 09 11:54:14 so dual core would mean 1 cpu with 2 cores then Dec 09 11:54:18 unless they said dual dual core Dec 09 11:54:44 Found a solution: instead of using "variant.packageLibrary.dependsOn copyClientLibsTask", I used "variant.processJavaResources.dependsOn copyClientLibsTask" Dec 09 11:55:16 shmoon these are all google worth things that will explain with less fluff and boasts (looks at himself) than in here Dec 09 11:55:37 ok :) Dec 09 11:59:41 StingRay_: ok, i am still pondering a little more heh sorry. but lets say i set ana alarmmanager to go off in 10mins and device powers off - what happens then ? howcome the alartmanager goes off? Dec 09 11:59:53 is there some hardware signalling involved in this case again? Dec 09 12:00:12 well if it powers off, nothing Dec 09 12:00:38 if it's sleeping it wakes up cause it would sched an timed event wakeup Dec 09 12:01:54 ya i meant sleeping. so the scheding of timed event wakeup involves cpu no? so cpu has to be on and not off/asleep Dec 09 12:02:38 not the best person to ask, however I would speculate that some sub system has a timestamp for lets say IRQ_CPU_WAKE Dec 09 12:03:05 then getting that intterup the cpu wakes, the system checks pending task for post the timestamp delivered Dec 09 12:03:21 but all of this should not really be that important to you Dec 09 12:04:15 in short there will be some System Management Controller that is not powered down that handles the IRQ request based of some Timestamp Dec 09 12:04:44 but no, I doubt it will know anything other than the timestamp...the system will read OS level data for the actual event details Dec 09 12:05:04 but guessing here, not really up on it all, because it SHOULD be irrelevant to me ;) Dec 09 12:05:52 ok :D Dec 09 12:17:15 i'm a little confused with the android docs: i'm trying to light up the screen (when it's still on/not locked) in a certain event. I tried this with getWindow().addFlags(FLAG_KEEP_SCREEN_ON) as well as FLAG_TURN_SCREEN_ON but both do not to what i exactly want. i want to basically lighten up the screen (if it is dimmed) and reset the screen dim/switch off timer Dec 09 12:17:51 then look for something that has the word Bright in it Dec 09 12:23:12 How could i solve this? http://pastebin.com/drbcdLWU The Loader sends a HTTP Request and need to wait for the result. This is in an asynctask already. But the Loader itself is in a background thread aswell. Is it a good idea to create an Interace in the fragment and give it to the loader? This may be a problem since the onLoadFinished is called before the "load" is finished. Dec 09 12:24:26 if you dont resart your phone for a while can it cause apps to crash Dec 09 12:24:40 my app was crashing randomly and after restarting phone works fine for hours Dec 09 12:28:26 @Odaym: that helped -.- Dec 09 12:33:28 i want to set a variable that will be used among different classes. is it best to do it in my Application class? Dec 09 12:33:32 ChrisUK: What does the stacktrace say? Dec 09 12:34:08 I am debugging it with adb Dec 09 12:34:09 not the ide Dec 09 12:34:14 can I access that with adb? Dec 09 12:35:17 Hey all, game dev here hearing our game's broken on 5.0.1, anyone here on that who'd be willing to just install & start, and let me know if it starts correctly? Dec 09 12:35:32 Would only take a minute or two, and would help us a lot. Dec 09 12:37:00 * capella it's a trap! Dec 09 12:37:08 :) Dec 09 12:37:12 it's not Dec 09 12:37:23 we've had a nightmare with Lollipop, tbh Dec 09 12:37:46 there's a key signature bug that uninstalls our game if anyone OTA upgrades from 4.* Dec 09 12:38:14 and then there's "Context3D" errors that popped up in 5 which we found out when it came out Dec 09 12:38:25 which we've fixed, but have heard that it's back on 5.0.1 Dec 09 12:39:02 guys need help how to fix Could not find com.android.support:appcompat-v7:20.0.0 when doing from command line? Dec 09 12:39:16 your q/a team needs to be fired if you depend on random devs Dec 09 12:40:43 we're a tiny startup, pre-profit Dec 09 12:41:02 the harshness needs to be toned down, thank you very much Dec 09 12:41:36 that's honestly your reaction to someone on an IRC dev channel? Dec 09 12:41:46 seaders: I think there is a lolipop preview on genymotion Dec 09 12:43:41 good dnl_tp Dec 09 12:47:08 Does setting android:textStyle to 'bold' actually select the Roboto Bold font or just manipulate the normal font? Dec 09 13:10:53 hello Dec 09 13:11:45 I start an activity from my main activity whenever the app starts for the first time. So I startActivity on onCreate of my mainactivity but it then destroy my main activity and raise an error because, of course, it hasn't been created yet Dec 09 13:17:36 shouldn’t be doing that, log and code maybe? tried starting in onResume? Dec 09 13:17:54 or actually in onStart may be better Dec 09 13:18:03 Marlinksi: Dec 09 13:28:23 bluecup: will do that thanks Dec 09 13:29:43 hmm there is no onStart with ActionBarActivity Dec 09 13:36:04 Marlinksi: Are you sure? Try pressing ctrl+n and choosing override, it should be somewhere there Dec 09 13:36:36 I just checked, it is Dec 09 13:38:29 hiho. im trying to update my headless sdk, but for some reason this pops up: "Downloading Android SDK Tools, revision 24; Download interrupted: Read timed out" most other stuff downloaded without problems... any ideas? Dec 09 13:39:44 i found something where this happens with eclipse, doesn't help Dec 09 13:52:01 nevermind, deleting temp and starting again worked Dec 09 14:09:24 Anyone know how to put google play services on an emulator? Dec 09 14:10:18 use the google api image Dec 09 14:10:59 where can I find that? Dec 09 14:11:12 same place you find all the images Dec 09 14:11:26 google and the sdk manager Dec 09 14:24:22 eclipse is uncannily smart sometimes Dec 09 14:31:20 Levite: what do you mean by that? Dec 09 14:31:39 Anyone have experience rendering MBTiles on Android? I have a project using OSMDroid and I'm wondering if MapBox supports that format better Dec 09 14:31:42 with regards to its refactoring abilities Dec 09 14:32:09 and code completions Dec 09 14:32:46 hm, I find IntelliJ smarter, refactoring code and it offers to refactor my SerializableName annotation too. love it <3 Dec 09 14:33:26 i don’t remember eclipse doing that, although, haven’t used it in a very long time Dec 09 14:37:55 i'm looking forward to switching to AS, but I have a deadline for this so I didn't want to waste time with gradle, etc Dec 09 14:38:18 and the SDK I'm using only had instructions for eclipse Dec 09 14:38:53 ok so how do people create libary projects outside of the app project root ? where is my "this app is a library" switch ? :) Dec 09 14:42:01 StingRay_: in the build.gradle Dec 09 14:46:30 oh wow, the new AS and gradle use 100% of my cpu power when building now .... impressive Dec 09 14:46:37 lol Dec 09 14:46:56 thats like 1 10th the compile time now :) Dec 09 14:47:32 Oh they finally improved build times? Dec 09 14:47:35 VnM that was not sarcasm btw, that was a quiet...YAY! Dec 09 14:48:18 Yeah, build times were improved like months ago :) Dec 09 14:48:29 not for me Dec 09 14:48:37 StingRay_, apply plugin: 'com.android.library' Dec 09 14:48:37 in build.gradle of your lib Dec 09 14:48:47 it would only every use 6-8 threads when building Dec 09 14:48:49 you can do it with right-click panel of your module Dec 09 14:48:54 StingRay_, maybe you still have gradle daemon disabled in gradle.properties :) Dec 09 14:49:07 Mavrik I do not :) Dec 09 14:49:34 I rather suspect that previous they did not partition the process up to that degree that they have now Dec 09 14:51:36 maybe it was something I did while fixing my build errors...but I dont care...I just like smiling for the 1st time in days :) Dec 09 14:54:20 talking about gradle build times, is there a way to limit gradle to x cores? Dec 09 14:54:34 so it only used 3 cores of my quad? Dec 09 15:04:38 woo, I just made a ContentProvider for my app and it worked the first time. Dec 09 15:04:56 probably the first time I've ever coded something right the first time. Dec 09 15:05:16 oddalot: expecto bugtronum! Dec 09 15:06:36 should I be doing all my sqlite database transactions through the contentprovider now that i created it, or can i just used the sql helper I've been using before> Dec 09 15:06:45 does it even matter? Dec 09 15:07:10 obviously contentprovider is neede for cursorloader etc Dec 09 15:07:14 a contentprovider is to provide the content and functions Dec 09 15:07:26 and no a contentProvider is not needed for a loader Dec 09 15:07:43 well, super helpful for it Dec 09 15:08:05 You can keep using the helper, no need for a CP Dec 09 15:08:15 as helpful as a tiny extended AsyncTaskLoader Dec 09 15:08:39 oddalot, check that https://groups.google.com/d/msg/adt-dev/3Ll-6-tzZvY/cX4zTq_kCwwJ Dec 09 15:08:57 well, the android docs seem to imply its highly productive to use one Dec 09 15:10:19 not saying the docs are gospel, but I do think they hold some weight for people trying to learn what is going on. Dec 09 15:10:50 adq was that link meant for me? Dec 09 15:11:01 no I think it was for danijoo Dec 09 15:11:04 :) Dec 09 15:11:10 oops indeed, thx Dec 09 15:11:15 ^ danijoo Dec 09 15:11:26 well, if you are exposing your data to other apps, yeah, use CP Dec 09 15:12:05 oddalot yeah was gonna say that bluecup , it's overkill for local data Dec 09 15:12:36 CP from docs: A content provider is only required if you need to share data between multiple applications. For example, the contacts data is used by multiple applications and must be stored in a content provider. If you don't need to share data amongst multiple applications you can use a database directly via SQLiteDatabase. Dec 09 15:12:36 specially since loading a cursor though AsyncTaskLoader is so simple if that was the goal Dec 09 15:16:46 so there's basically no downside whatsoever to making a contentprovider, except the small extra amount of boilerplate you have to write initially Dec 09 15:16:56 and all upsides Dec 09 15:18:03 well I would say it's lots less adaptable Dec 09 15:18:23 depends on how you write it, but from all examples and samples I have seen, very restrictive Dec 09 15:18:33 how so? Dec 09 15:18:52 the strucutre Dec 09 15:19:24 or rather...everyting about it that is to do with access and query to the db Dec 09 15:19:26 :) Dec 09 15:19:33 hello all Dec 09 15:19:51 well, restrictiveness - if creating a useful form - can help with flexibiity in the long run maybe. Dec 09 15:20:11 personally I think the opposite Dec 09 15:20:26 it's very hard or imposs to have a template cp that you instance with a config Dec 09 15:20:35 since it's not that type of component Dec 09 15:20:49 sqlite helper is whatever you want it to be :) Dec 09 15:21:15 just and opinion and based on my narrow use though, as always :) Dec 09 15:21:39 I'm still smiling that gradle now works for me :) Dec 09 15:21:47 * StingRay_ skips off on a high... Dec 09 15:26:43 how do I tell proguard to keep whole class ? Dec 09 15:26:52 -keep class doesnt work for me Dec 09 15:28:56 Hello! Maybe someone can share expirience in shrinking png and jpg resources? I tried ImageOptim(optimized all resources in project) and TinyPng(few images to test). Maybe someone can suggest good tool? Dec 09 15:32:15 xgearx pngout Dec 09 15:32:33 xgearx well, as an artist I'm gonna come out and say you do not blind shrink stuff Dec 09 15:32:51 so photoshop's web png compressor is a good perceptual tool Dec 09 15:33:15 StingRay_ those tools usually do shrinking without quality loss Dec 09 15:33:23 like removing meta tags and stuff like that Dec 09 15:33:32 (at least thats what I thought) Dec 09 15:34:42 danijoo: ImageOptim use pngout Dec 09 15:35:06 when it thinks that it is reasonable Dec 09 15:35:11 then its a great tool i think ;) Dec 09 15:35:29 for more compression you might have to think about resolution and stuff like that Dec 09 15:35:47 but be careful and always test on high resolution devices Dec 09 15:36:22 what looks good on 400x800 might totally suck on a tablet if you use the same sources:p Dec 09 15:36:26 danijoo: http://prntscr.com/5ex7ea all utils that ImageOptim use Dec 09 15:36:50 i understand Dec 09 15:37:13 looks like tinypng shrinks better Dec 09 15:37:51 gordon_, keepclassmembers Dec 09 15:38:01 gordon_, do anything interesting with scala? Dec 09 15:39:50 ugh, wish the new moto g worked on Verizon the Dec 09 15:41:24 didnt have time yet Dec 09 15:41:59 but got sad when saw presentation about scala collections and in how bad shape they are Dec 09 15:44:56 scala is good Dec 09 15:45:36 gordon_, they aren't in a bad shape Dec 09 15:45:43 gordon_, but ok Dec 09 15:45:56 pfn: wait Dec 09 15:45:58 they're in a bad shape if you're talking purity, but they aren't in a bad shape if you're talking usability Dec 09 15:46:09 https://www.youtube.com/watch?v=TS1lpKBMkgg Dec 09 15:46:13 https://www.youtube.com/watch?v=uiJycy6dFSQ Dec 09 15:46:52 lmao same guy Dec 09 15:46:57 thanks gordon_ will watch Dec 09 15:46:57 and yeah, paul phillips is critical, but that's from a creator's perspective Dec 09 15:46:57 yep Dec 09 15:47:16 but he wrote a lot of scala code Dec 09 15:47:23 and submitted a lot of bugs Dec 09 15:47:27 which arent fixed Dec 09 15:47:32 that's kinda depressing Dec 09 15:47:34 gordon_, that's expected Dec 09 15:47:35 * pfn shrugs Dec 09 15:47:39 then android is depressing? Dec 09 15:47:48 people submit thousands of bugs and they're ignored Dec 09 15:47:48 it is :D Dec 09 15:47:57 * pfn shrugs Dec 09 15:47:58 ok Dec 09 15:48:03 I like android Dec 09 15:48:03 java is about as bad, as well, same issue Dec 09 15:48:09 and just about every other language Dec 09 15:48:17 but hopefully they will fix issues which we have now Dec 09 15:48:44 when will scala be forked Dec 09 15:48:48 it won't Dec 09 15:48:52 not anytime soon Dec 09 15:48:55 scala will stop working on android Dec 09 15:49:00 on scala 2.12 Dec 09 15:49:03 supposedly the compiler is a mess Dec 09 15:49:14 Kotlin :) Dec 09 15:49:16 the compiler is a mess Dec 09 15:49:24 and kotlin is a halfassed solution compared to scala Dec 09 15:49:31 we should fork scala :P Dec 09 15:49:36 and I used scala 2.8 while scala 2.11 was out Dec 09 15:49:42 there is lvvm fork for scala :D Dec 09 15:49:46 just because the most recent version is available doesn't mean old versions aren't usable Dec 09 15:49:48 llvm Dec 09 15:49:52 rather 'port' Dec 09 15:49:54 yes Dec 09 15:49:55 my bad Dec 09 15:50:04 I said llvm in my head but wrote it bad Dec 09 15:50:06 ugh Dec 09 15:50:09 so 2.12 being unusable isn't a big deal Dec 09 15:50:10 i guess most of the code in a compiler is optimization? Dec 09 15:50:22 we can port dart to jvm Dec 09 15:50:23 man, every language is a mess :D Dec 09 15:50:25 ;) Dec 09 15:50:29 except C Dec 09 15:50:30 parsing c++ ought to be the largest part :p Dec 09 15:50:43 benwaffle: yeah, except C and asm :) Dec 09 15:50:44 go might be in good shape Dec 09 15:50:50 go is a terrible language Dec 09 15:50:51 asm is a mess Dec 09 15:50:52 x86 Dec 09 15:50:54 have you tried writing anything in it? Dec 09 15:50:56 pfn: why ? Dec 09 15:50:59 not yet Dec 09 15:51:04 if you want to complain about syntax Dec 09 15:51:04 but heard good opinions Dec 09 15:51:06 write anything in go Dec 09 15:51:15 the more I do this high-level voodoo, the more I enjoy the low-level assignments I get in college... Dec 09 15:51:26 you can call me crazy Dec 09 15:51:30 but I dont like ruby Dec 09 15:51:45 ruby is the worst. Dec 09 15:51:46 it's pretty much an unusable language, unless your language you're replacing is C Dec 09 15:51:55 ruby sucks Dec 09 15:52:01 it makes all the wrong decisions Dec 09 15:52:03 well if you want to replace java with go Dec 09 15:52:09 and use the same API it will fail Dec 09 15:52:11 go is a terrible replacement for java Dec 09 15:52:22 gordon_, just from the perspective of the code you're writing, ignoring api Dec 09 15:52:32 i dont know go so well Dec 09 15:52:35 http://www.infoq.com/news/2014/09/scala-compiler-forks Dec 09 15:52:38 but would like to write something Dec 09 15:52:44 just for fun :) Dec 09 15:52:52 one fork is by paul phillips Dec 09 15:53:27 :D Dec 09 15:53:33 maybe he will fix all his bugs Dec 09 15:53:40 * pfn shrugs Dec 09 15:53:49 where can i find android open source development IRC? Dec 09 15:53:51 not interested Dec 09 15:54:04 gordon_, find a bug that impacts your usability Dec 09 15:54:09 https://github.com/paulp/policy Dec 09 15:54:10 https://github.com/typelevel/scala Dec 09 15:54:17 gordon_, not so many Dec 09 15:54:29 samskiter: #android-root might point you that way Dec 09 15:54:43 bluecup: thanks Dec 09 15:55:22 there are few usability bugs, lots of edge-case bugs, though Dec 09 15:55:44 but the edge cases tend to be pretty uncommon, unless you're constantly working with higher kinds Dec 09 15:55:57 pfn: have you seen his talks ? Dec 09 15:56:01 s/pretty uncommon/completely uncommon Dec 09 15:56:12 gordon_, yes, I generally ignore them Dec 09 15:56:21 gordon_, he wants it to be beautiful, I get it Dec 09 15:56:25 practicality gets in the way Dec 09 15:56:26 it is what it is Dec 09 15:56:32 I'm not saying scala is bad Dec 09 15:56:35 I like the language Dec 09 15:56:37 I will use it Dec 09 15:56:49 but I like things to be done in nice way Dec 09 15:56:54 s/nice/right Dec 09 15:56:58 you'll not get that in anything Dec 09 15:57:06 not where there's ever more than 1 developer involved Dec 09 15:57:17 that's why when I come to my work I'm sad :D Dec 09 15:57:36 everyone has a difference of opinion in what's nice, and what's necessary to ship Dec 09 15:57:38 "where the hell are tests here" Dec 09 15:57:38 and when to ship Dec 09 15:57:56 pfn: especially when it is an open source project, there are always those elitists Dec 09 15:57:58 you can have good, fast, cheap, pick 2 Dec 09 15:58:10 good and fast :D Dec 09 15:58:25 and how do you expect cheap out of something you get for free? Dec 09 15:58:57 I guess typesafe makes some money ;) Dec 09 15:59:28 not much Dec 09 15:59:44 so, I was working on my app on android studio 0.8.14, and then 1.0-RC and everything was fine, then I updated to the official 1.0 and google play services is messing with me.. Dec 09 15:59:55 My activity says LocationClient class is missing Dec 09 16:00:16 play services were updated Dec 09 16:00:19 I don't see any changes to that class, or its location.. does anyone have any idea what could be causing me to lose hair? Dec 09 16:00:28 you're probably using newer ones where that class was changed. Dec 09 16:00:45 yeah, I'm using 6.5.87 Dec 09 16:00:51 yep. Dec 09 16:01:06 so, it should be fine, right? Dec 09 16:01:08 fmontano: I'm fighting with AS now too ;) Dec 09 16:01:27 gordon_: what issue are you having? Dec 09 16:01:41 key to android development is to keep using only few libraries Dec 09 16:01:44 fmontano, http://www.reddit.com/r/androiddev/comments/2ool2l/psa_play_services_65_removes/ Dec 09 16:01:51 proguard issue with library Dec 09 16:01:55 gordon_, uh no. Dec 09 16:02:10 Unless you want to develop trivial apps 15 years :P Dec 09 16:02:21 nah Dec 09 16:02:23 it's Dec 09 16:02:27 There IS a reason why gradle emits a warning if you don't pin a library to a certain version. Dec 09 16:02:28 "instagram like filters" Dec 09 16:02:31 Don't do dumb stuff and you're ok. Dec 09 16:02:49 Mavrik: you made my day... thanks Dec 09 16:03:05 one day I will delete this, make one lib and put it on github Dec 09 16:03:23 there are always problems with that library Dec 09 16:03:26 + versions in dependencies suck Dec 09 16:03:46 it shoul land in nexus server Dec 09 16:03:59 with nice aar or whatever that gradle uses Dec 09 16:04:14 with daily tests on emulator Dec 09 16:04:30 Ah, we do that yes. Dec 09 16:04:41 CI server that automaticalyl runs tests on emulators :) Dec 09 16:05:40 so, out of curiosity, are you maintaining libraries, Aar's ? Dec 09 16:06:00 Warning: com.google.android.gms.internal.bb: can't find referenced field 'int[] AdsAttrs' in program class com.google.android.gms.R$styleable Dec 09 16:06:04 I have a couple of internal libs, and we are using artifactory to deploy them Dec 09 16:06:08 Anyone seen this proguard warning before? Dec 09 16:06:26 I am curious if anyone has a setup to publish libs to artifactory directly from AS? Dec 09 16:07:28 can someone help me with this issue? I upgraded to Android Studio v1 and now I can't install my APK http://imgur.com/mewGNGB Dec 09 16:07:29 no we dont Dec 09 16:07:44 And then I get the error 'DELETE_FAILED_INTERNAL_ERROR' Dec 09 16:07:54 I need to take care of that project Dec 09 16:08:08 because the only tests that are there are written by m Dec 09 16:08:08 e Dec 09 16:08:12 and they arent work now :D Dec 09 16:08:15 *working Dec 09 16:08:21 I publish to artifactory and nexus, but I don't use AS or gradle :p Dec 09 16:08:35 how can you use layoutlib to preview custom drawables? is it possible? Dec 09 16:09:14 JacobTabak: there is one method Dec 09 16:09:15 let me see Dec 09 16:09:19 heya! good to be back here after long Dec 09 16:09:45 pfn: so you build and aar and then manually upload it? or you have scripts for that? Dec 09 16:09:59 fmontano, I publish using sbt Dec 09 16:11:39 sorry I forgot Dec 09 16:11:43 iseditable ? Dec 09 16:11:58 pfn: i see.. I haven't tried that. do you have any sample configuration for an android lib? I have never used sbt before Dec 09 16:12:00 when you need to implement that method in your object and it iwll be visible in editor Dec 09 16:12:06 whats the best way to make a login screen? like should the root activity be the login activity or your main activity and then popup the login window on top of it? Dec 09 16:12:37 fmontano, I have several, but I don't imagine you want to go down that path, necessarily Dec 09 16:12:38 heh Dec 09 16:12:52 hehe ok... thanks Dec 09 16:17:57 sure, if you want, but I doubt you want to, heh Dec 09 16:24:14 Hello all. I'm having a strange issue and wanted to reach out to some more Android people. When coding the CSS for mobile webpages for the app I'm working on, we discovered that the app's WebView is always reporting "landscape" orientation, even though the app is locked into portrait mode. This is messing up some of our media queries. Chrome doesn't do this, only the app's WebView. I've poured through the code looking for a mi Dec 09 16:30:34 swilkeni: have you tried setting web chrome client? Dec 09 16:35:22 JakeWharton: are there plans for a patch release of assertj-android to fix the numberpicker assertion? or perhaps a SNAPSHOT? Dec 09 16:35:29 i can make a release Dec 09 16:35:36 awesome, thanks! Dec 09 16:37:08 hey Dec 09 16:40:41 I love the animations in Lollipop, I am really not feeling the soft buttons though. Dec 09 16:40:47 (Nexus 4 released today) Dec 09 16:41:42 hello Dec 09 16:41:58 how do I update the components of a ListView using the List adapter? Dec 09 16:42:09 this one here is not really clear: http://developer.android.com/reference/android/widget/ListAdapter.html Dec 09 16:44:09 what do you mean? Dec 09 16:44:24 I have a list view widget Dec 09 16:44:58 and I want to take my java List object and use it as content provider for that widget Dec 09 16:45:11 I see you can do it with ArrayAdapter Dec 09 16:45:16 but the ListAdapter is weird Dec 09 16:45:18 that’s what you do Dec 09 16:45:40 so I create an arraylist from my list and than use the array adapter? Dec 09 16:45:56 @blue cup sorry I was away from my screen for a bit. yes I have set the web chrome client, are there possibly some settings I need to tweak? Dec 09 16:46:02 yeah Dec 09 16:46:10 ok d'oh Dec 09 16:46:19 ListAdapter is an interface, just like List is Dec 09 16:46:52 you have a concrete implementation class that you’re actualy using Dec 09 16:47:48 anyone used imagemagick on android ? Dec 09 16:52:28 I'm trying to load a webView that uses the camera and microphone for an application. I added the Internet to the manifest and I'm adding camera now. Dec 09 16:52:49 will I have javascipt capabilities? like for webrtc? Dec 09 16:58:12 lazywebs can I have picasso show a different error image based on the http response code? Dec 09 16:58:23 no Dec 09 16:58:27 qq thanks Dec 09 16:58:36 JakeWharton: https://android-review.googlesource.com/#/c/116880/ Dec 09 16:58:41 TacticalJoke: i saw Dec 09 16:58:53 step 1 of 362 Dec 09 17:01:14 I need to finally start thinking of AS. Dec 09 17:01:23 JakeWharton any plans or desire to add more info to the callback? onError has no parameters right now Dec 09 17:01:34 what information would you want? Dec 09 17:01:44 well, if it was a downloader error, the status code Dec 09 17:01:59 and any related http stuff Dec 09 17:01:59 When I move my project over, will it be easiest to start and new project and manually add all files? Dec 09 17:02:15 TacticalJoke: yes Dec 09 17:02:19 K. Dec 09 17:02:22 JacobTabak: what would you use it for? Dec 09 17:02:23 for example if the url had an auth token in it, it would be nice to know if the image failed to load due to a bad token or something Dec 09 17:02:38 and in this specific case, we want to do something if an image has been deleted Dec 09 17:02:41 server-side Dec 09 17:02:52 so we'd like to know if there's a 404 Dec 09 17:03:27 can you do that with an error handler on the Picasso object? Dec 09 17:03:48 that just has the picasso instance, uri, and exception Dec 09 17:03:51 no reference to the imageview Dec 09 17:04:22 i don't understand what you are trying to do Dec 09 17:04:45 basically, show a different error placeholder based on the error Dec 09 17:05:55 ideally, the onError() callback in load callback would have the exception Dec 09 17:06:34 then you would have to rely on parsing the exception message Dec 09 17:06:51 yeah, i suppose that's not ideal Dec 09 17:07:54 but some type of error object Dec 09 17:07:59 that indicates where the error happened Dec 09 17:09:34 Should I read the entire Gradle manual, or is that not worth it? Dec 09 17:09:42 not worth it Dec 09 17:10:10 All right. Dec 09 17:10:51 yea probably not, i guess it's time to get creative Dec 09 17:12:16 Lol. He thinks you were talking to him. Dec 09 17:13:12 TacticalJoke for the app I am working on for my company, I created a new project in AS and moved files over Dec 09 17:13:26 TacticalJoke also, based on conversation I saw yesterday, I find it interesting that you are asking... :P Dec 09 17:13:37 JacobTabak: we'll consider something like that, don't expect it soon. Dec 09 17:13:40 it's a breaking API change Dec 09 17:13:58 http://tools.android.com/tech-docs/new-build-system/user-guide is the best source for all Android gradle plugin stuff at the moment Dec 09 17:14:28 Hopefully there will be a documented gradle api for the android plugin sometime soon Dec 09 17:15:18 If you're a Xamarin developer please feel free to join us at our recently created channel #Xamarin to engage in related discussion and help our chat grow further. If you're a very experienced Xamarin dev we're also looking for new channel ops. Our chat is currently opped by the founders and a member of the Xamarin development team :) Dec 09 17:15:38 JakeWharton I heard about the Play services split. I definitely thought about your post that time Dec 09 17:15:49 How's it feel? Dec 09 17:16:04 a guy from play services sent me a thing the day after i made the post and said it was going to happen Dec 09 17:16:07 i'm just glad it's finally out Dec 09 17:16:12 That's cool Dec 09 17:16:21 definitely the right move on their part Dec 09 17:16:46 TacticalJoke: since you are coming from C# why don't you try Xamarin Dec 09 17:17:24 JakeWharton: I love you. #noHomo Dec 09 17:17:27 I like to minimize complexity, I guess. Dec 09 17:17:42 I honestly have no idea why anyone thought that making a huge blob covering everything was a good idea Dec 09 17:17:42 It like goes against any good library design ever :/ Dec 09 17:18:27 I can understand people using C#, though. It's so nice. Dec 09 17:19:16 JakeWharton lol, hilarious timing on it for me, becuase I just switched from an embedded Google Map (which is all I was using from Play services) to a "launch Map intent" button. Also they added a GoogleMap loaded callback, which I wanted forever to do an automatic zoom Dec 09 17:33:14 guys, does exist some done project in android to I learn from? Dec 09 17:33:50 developer.android.com has several projects in the downloads section Dec 09 17:49:19 dragorn you mena here? http://developer.android.com/samples/index.html Dec 09 17:50:18 Great resource. Check it out, dragorn. Dec 09 17:52:05 Im wondering if exist some 'ToDo' sample app to learn.. in that link there are many eamples but just the parts of an app. Dec 09 17:57:21 i'm looking to make a configuration policy for different environments of my app. for example, i have a dev/test/prod service endpoints that i want to hit where they all should be different. my question is what is the best practice for achieving that? is just passing around a yaml file good enough? Dec 09 17:59:59 nettoweb, in my experience, i find the best resource for something like that is searching through github repositories. see https://github.com/search?utf8=%E2%9C%93&q=Todo+android Dec 09 18:08:22 Hello Dec 09 18:08:32 capella http://www.mondaynote.com/2014/12/08/the-rise-of-adblock-reveals-a-serious-problem-in-the-advertising-ecosystem/ Dec 09 18:09:01 * capella reads Dec 09 18:09:45 I got one stupid question about android and surfaceview, is this the right place? Dec 09 18:11:37 I got this surface view into a listview, and when I move it up and down, the listview gets very laggy Dec 09 18:12:09 I am not sure if there is a way to make the scrolling performed or I need to use TextureView ( didnt try yet ) Dec 09 18:12:35 "f you think Ad Block is a problem, consider those of us who turn off Java unless it is necessary for desired content on a particular page" Dec 09 18:12:46 really? java? Dec 09 18:13:07 heh Dec 09 18:13:29 i wonder if its the first time they are getting sued Dec 09 18:17:36 capella "Robots, Not Humans, Fake 23% of Web Video Ad Views," Dec 09 18:18:23 yep _ i thought it was more :) Dec 09 18:21:07 so nobody knows :D Dec 09 18:22:28 was there a question? Dec 09 18:23:13 max246, surfaceview really isn't meant for your usecase Dec 09 18:23:29 if you'll look at how you're implemented, it's rather surprising what you did works at all :P Dec 09 18:24:25 so yes, use TextureView if you want your surface to act like a normal view Dec 09 18:33:26 I need to draw aniamtions Dec 09 18:44:13 so is google finally getting serious about testing? is that what this is about? https://android-review.googlesource.com/#/c/116880/ Dec 09 18:54:02 i hear all the time how the glue between gradle and android studio is pretty weak Dec 09 18:54:18 is it weaker or more secure than the glue between maven and eclipse? Dec 09 18:54:41 yes Dec 09 18:54:42 * Ashiren hides Dec 09 18:57:02 yes to which clause? Dec 09 19:02:25 I think I found a bug in 5.0.. Dec 09 19:02:30 eith the nav drawer Dec 09 19:02:46 tried to follow Google’s example and it crashes when you slide the drawer in and out Dec 09 19:03:03 does not hapen on < 5.0 Dec 09 19:03:35 evening Dec 09 19:03:49 morning Dec 09 19:04:14 wow Dec 09 19:04:22 eclipse adt has been removed Dec 09 19:04:31 since i was just trying to figure out which path is best on friday Dec 09 19:04:34 yeah they want you to use AS now Dec 09 19:05:15 is gradle + as as easy as maven + eclipse? Dec 09 19:06:43 depends on how complex your maven setup was/is Dec 09 19:06:55 is g00s here? Dec 09 19:07:04 Thorbear, well specifically, the new android archives Dec 09 19:07:57 Norrin: I have no idea what "the new android archives" are Dec 09 19:08:29 Are you talking about the aar files? Dec 09 19:08:52 Thorbear, yup Dec 09 19:09:11 having a hard time getting m2e plugin for eclipse to do it reliably Dec 09 19:09:12 They have 0 impact on how easy gradle + as is? Dec 09 19:09:56 But gradle does support android better than the maven plugin does. Dec 09 19:10:21 anyone with BLE experience here? Dec 09 19:10:48 Norrin: If the only thing you ever did with Maven was to set up dependencies, then gradle will be easier. Dec 09 19:11:30 Thorbear, cool. looks like i know what i'm doing next Dec 09 19:11:41 there is no easy maven to gradle converter is there? Dec 09 19:12:13 Yup, I think there is one built in, just google maven gradle merge or something Dec 09 19:12:28 merge/export/convert Dec 09 19:13:02 looked for 'convert maven project to gradle' and didn't come up with anything automated Dec 09 19:14:37 http://stackoverflow.com/questions/20862275/steps-needed-in-order-to-convert-maven-build-to-gradle Dec 09 19:15:10 "gradle init" sounds automated enough, also there might be a button for it in android studio. Dec 09 19:15:44 Whoa, they're doing a lot of work on the JVM unit tests in Android Studio. Dec 09 19:15:46 https://android-review.googlesource.com/#/q/project:platform/tools/base Dec 09 19:16:07 Norrin: You might want to just set up a new project from scratch though, to get the new folder structure. Dec 09 19:16:13 At least six changesets today, as far as I can see. Dec 09 19:18:50 is it possible to create an xml file with the package name of a project and use @string/package_name in the manifest file? Dec 09 19:19:22 like this: Dec 09 19:19:38 I know it throws an error, I'm asking in case anyone knows a way to do so... Dec 09 19:19:51 Mattx: No. But you can change the package name with either Maven or Gradle. Dec 09 19:20:49 that sucks that they are breaking Eclipse by removing ADT Dec 09 19:21:03 I think people should still have the choice Dec 09 19:21:30 Removing ADT? Dec 09 19:21:38 Removing ADT? Dec 09 19:22:17 yeah that's what Norrin said Dec 09 19:22:41 I didn't confirm it Dec 09 19:22:47 they’re not removing ADT, just deprecating it. Dec 09 19:22:57 but if it's true, that blows Dec 09 19:23:05 it’s still available, but it doesn’t look like they’re going to continue working on it. Dec 09 19:23:17 They just replaced the default download page which used to contain Eclipse + ADT bundle with one for Android Studio Dec 09 19:23:20 so eventually it’ll be out of date, unless someone else steps up and works on it. Dec 09 19:23:24 no longer downloadable http://developer.android.com/sdk/installing/index.html Dec 09 19:23:26 oh ok Dec 09 19:23:35 I wonder if everyone who took that survey about android studio yesterday voted for testing Dec 09 19:23:43 I can still find the ADT pages. Dec 09 19:23:48 I took the survey. Dec 09 19:23:56 Oops, I can't read. Dec 09 19:24:12 the old adt page doesn't work http://developer.android.com/sdk/installing/index.html?pkg=adt Dec 09 19:24:51 There was a survey? Dec 09 19:24:51 didn't i read a while back that some group was going to step up and start working on ADT outside of google ? Dec 09 19:25:03 maybe even become an eclipse project ? Dec 09 19:25:09 I see. These still work, though: , , and . Dec 09 19:25:22 Thorbear, I want to have it in a file that I can edit. because I'm creating a script to compile a few apps I have Dec 09 19:25:28 I can edit programatically I mean Dec 09 19:25:42 and I'm already editing this xml file in values/ Dec 09 19:26:06 Mattx: A script to compile a few apps? And why are you not doing this in gradle? Dec 09 19:27:00 yep, I'm going to create this xml file in values/ programatically and then run gradle or something Dec 09 19:27:19 g00s, why? eclipse sucks Dec 09 19:27:36 eclipse currently is better for NDK projects Dec 09 19:27:42 having toruble switchign out my main layout in the nav drawer example.. it looks like I am switchign out the fragment in my list (inside the drawer) instead.. Dec 09 19:27:46 but if @string/package in not a valid value in , then I'll have to create both the xml file and AndroidManifest.xml Dec 09 19:27:54 gdrc don't want to get debate which is better, but java devs are split 50/50 between idea and eclipse. Dec 09 19:28:06 Mattx: You know that is literally what gradle does, right? Generates variable resources and builds multiple variants of your app. Dec 09 19:28:20 Hmm, I'm trying to figure out what the default Activity background colour is for Theme.AppCompat[.Light]. Where can I find this? Dec 09 19:28:29 Tried looking in various styles.xml stuff. Dec 09 19:28:32 so lots of people don't think it sucks i guess. i didn't think it was so bad. i liked eclipse workspace projects much better Dec 09 19:28:40 Thorbear, hmn, no I didn't know. I should check that now. thanks! Dec 09 19:28:55 I don't really see how IntelliJ is so much better than Eclipse. Dec 09 19:29:02 Maybe years ago. Not sure today. Dec 09 19:29:30 is it any faster? Dec 09 19:29:33 I certainly think IntelliJ has the *potential* to become clearly better. Dec 09 19:29:47 TacticalJoke it is already much better Dec 09 19:29:49 Not sure, Norrin. I know that Android Studio is way slower than Eclipse+ADT for me. Dec 09 19:29:52 Though I suspect that's Gradle. Dec 09 19:30:00 mattblang: In which ways? Dec 09 19:30:02 I, for one, can’t stand the eclipse workspace Dec 09 19:30:20 everything about eclipse is very not intuitive to me Dec 09 19:30:22 Yeah, I'm not a fan of workspaces. I guess that's one thing. Dec 09 19:30:26 TacticalJoke code completition, not having to do the clean workspace dance, gradle integration Dec 09 19:30:42 mattblang: I think code completion is basically the same. Dec 09 19:30:49 Hey guys, just wondering if anyone can clear something up for me: What's the purpose of the flip-around navigation drawer icon (that turns from 3 lines to an arrow) in Material design, when the design spec says that the notification drawer should pop out above the actionbar? Dec 09 19:30:52 The icon is totally hidden... Dec 09 19:30:55 TacticalJoke http://www.reddit.com/r/androiddev/comments/2omm26/finally_have_time_to_work_on_my_app_and_10_tabs/cmok924 Dec 09 19:31:02 I don't use code completion, I type it all the way by hand Dec 09 19:31:10 As far as I can tell, the only real difference is that IntelliJ supports doing stuff such as turning "if (x) { return foo; } else { return bar;}" into "return x ? foo : bar;". Dec 09 19:31:16 TacticalJoke I could find you many more like this. Always upvoted big time. Use Eclipse if you want, but no way I'm touching it again Dec 09 19:31:31 mattblang: I don't have that issue at all with Eclipse. Dec 09 19:31:32 Never crashes. Dec 09 19:32:03 TacticalJoke I still use for Spring back-end dev, the clean dance got old. Maybe they have improved that, I dunno Dec 09 19:32:17 I think a lot of people use the "ADT bundle" (which contains an ancient Eclipse version) and compare it to modern-day IntelliJ, which is hardly fair. Dec 09 19:32:18 I'm not doing any more updates or switching over till I finish this app Dec 09 19:32:45 also, how do people know its eclipses fault when something goes wrong? i noticed more ADT problems, so thats google. Dec 09 19:33:02 g00s: Exactly. That post could have meant anything. Dec 09 19:33:10 anyone using AS knows its had its fair share of issues. again, thats google Dec 09 19:33:22 basically whatever google touches breaks Dec 09 19:33:27 TacticalJoke Yeah, STS is probably on an older version too. I'll give you that. It is free and open-source, which is great. I just think IntelliJ is overall, better. Python, Django dev, Node dev, Android dev, I use IntelliJ for all of it now. ANd trust me, I used to be a heavy Eclipse user. Dec 09 19:33:47 I suspect that I'll like Android Studio a lot more than I like Eclipse. Dec 09 19:34:11 I just was totally underwhelmed when I tried it (various times). I expected something way better than Eclipse but was met with something kinda similar. Dec 09 19:35:19 I quite simply never felt welcome in the Eclipse interface. And I always felt welcome in the IntelliJ interface. Although I'm not too happy about the removal of Maven run configurations in AS. Dec 09 19:35:22 I guess I was expecting a Visual Studio of the Android world and got kinda disappointed when it felt just another Java IDE. Dec 09 19:35:55 TacticalJoke: pro's generally prefer IntelliJ over Eclipse, people have been complaining here for years , so that's why google did AS Dec 09 19:36:22 Yeah, people seem to love them some IntelliJ. Dec 09 19:36:30 I think even Martin Fowler praised it very highly. Dec 09 19:36:56 to me it's the same crap so far Dec 09 19:37:08 To be fair, though, the stuff he talked about is all part of Eclipse now (I think). Dec 09 19:37:40 shmooz: Visual Studio would be revolutionary. :) Dec 09 19:37:49 sometimes Eclipse will start typing garbage characters and I have to restart it, but that's the only Eclipse headache for me so far Dec 09 19:38:01 I think reactions would be like "Okay, now *this* is how you make an Android development environment. Thank goodness". Dec 09 19:38:04 TacticalJoke Thorbear meh, I hate Maven anyway. We use it for Spring and it is just cumbersome. XML is really verbose and harder to read Dec 09 19:38:48 The only issue I have with Eclipse is that it sometimes switches to the American keyboard layout. Oh, and occasionally the XML editor stops auto-indenting (just for a moment). Dec 09 19:38:56 TacticalJoke: VS might support direct Android programming already Dec 09 19:39:06 probably with some plugin Dec 09 19:39:20 mattblang: Oh I agree, but last time I checked Gradle still didn't have a proper replacement for the vast use of Maven profiles. Dec 09 19:39:31 I'm starting to hate XML. I can understand that. Dec 09 19:39:58 TacticalJoke Thank god Spring switched to Annotation config, but some of our older projects still have a ton of XML config. sucks, haha Dec 09 19:40:05 update http://m.imgur.com/oB8KH7u Dec 09 19:40:08 It's so hard to read. :) Dec 09 19:40:49 Even *typing* XML is hard. Dec 09 19:41:25 gdrc: That interface looks neat. Dec 09 19:41:33 gdrc interesting, I just updated to 5 today. Dec 09 19:42:18 Can someone lend me a hand with the NavDrawer? the XML is inflating into the listItem I clicked. Dec 09 19:42:19 TacticalJoke, app by pfn Dec 09 19:42:22 Ya. Dec 09 19:42:34 Hmm, does AppCompat.Theme use the same window-background colour as Theme.Holo? Dec 09 19:42:35 ? Dec 09 19:42:49 That'd be super-handy if so. Dec 09 19:43:02 pfn, qicr Dec 09 19:43:10 yes, I know that, but what interface looks neat? Dec 09 19:43:36 ask to TacticalJoke Dec 09 19:43:38 I like the UI. Neat and simple. Dec 09 19:43:44 Please can i get someone to help me with the emergency alert app im creating?. if you are interested please contact me at ekpe6000@gmail.com for details of the app requirement Dec 09 19:43:55 TacticalJoke, feel free to learn from the code, all my shit is open sourced :p Dec 09 19:44:01 :) Dec 09 19:44:17 TacticalJoke The UI of Lollipop? Dec 09 19:44:22 Of qicr. Dec 09 19:44:49 https://gist.github.com/pfn/42e26f5ae1f68cfc6159 Dec 09 19:44:51 I'm not hugely into Material Design yet. It's so bland, from what I've seen. Dec 09 19:44:51 ah, thing of beauty Dec 09 19:45:04 I don’t see Visual Studio as being that much better than IntelliJ Dec 09 19:45:13 if I set the prompt of a spinner, will that show up as a title view of the spinner's popup dialog? Dec 09 19:45:16 gdrc, I see you haven't been updating :p Dec 09 19:45:27 TacticalJoke I am liking the animations a lot. I feel you on the blandness, not sure what I think about that yet. I do really dislike the soft buttons in lollipop though. Dec 09 19:46:09 Should my Reddit client use Holo or the AppCompat theme (with Toolbar and so on)? I'm guessing the latter, but I'm really not sure. Dec 09 19:46:19 TacticalJoke, appcompat theme, but toolbar isn't a necessity Dec 09 19:46:24 unless you want to do toolbar animations Dec 09 19:46:25 TacticalJoke what pfn said Dec 09 19:46:27 Okay. Dec 09 19:46:44 Is it sensible for me to use ListView for all this, or should I be looking to use RecyclerView before release? Dec 09 19:46:59 use whatever works and you're comfortable with Dec 09 19:47:01 TacticalJoke I haven't used RecyclerView yet, but only because I have a deadline and the ListViews are working Dec 09 19:47:05 Okay, ListView works well for now. Dec 09 19:47:07 use recycler view if you need something listview doesn't provide Dec 09 19:47:08 Need help with this navdrawer activity.. the fragment_one layout is inflating into the ListItem that I clicked.. http://pastebin.com/wCLgN60g Dec 09 19:47:12 that's the main thing Dec 09 19:47:18 listview is pretty much linear and vertical Dec 09 19:47:24 recycler lets you do stuff like staggering and non-vertical Dec 09 19:48:03 I guess Reddit comment threads use staggering, but it's pretty easy to show comment hierarchies in ListView. Dec 09 19:48:13 and by staggering, I mean complex layouts Dec 09 19:48:17 Ah, okay. Dec 09 19:48:19 overlapping, grid-like, etc. Dec 09 19:48:52 Do you know whether Theme.AppCompat and Theme.Holo use the same background colour? Dec 09 19:49:05 I wouldn't've thought so, but I can't see otherwise (in styles.xml and so on). Dec 09 19:49:10 :( Dec 09 19:49:13 This is going to be a funny question, do you guys prefer verb noun or noun verb naming on things like Activities. For example, I have an Activity that lets the user edit his/her profile. Would you call it EditProfileActivity or ProfileEditActivity (which really edit is a noun there, but you get what I mean) Dec 09 19:49:18 (Background colour for Activities, I mean.) Dec 09 19:49:26 TacticalJoke there are some things recyclerview doesn't come with out of the box, like cursoradapter, h/v item decorators, multselect, etc. Dec 09 19:49:42 mattblang: I prefer the former. Dec 09 19:49:48 each one of those will require copying some code from somewhere Dec 09 19:49:50 pfn, updated the app Dec 09 19:49:56 It seems more natural to me to talk of the "edit-profile activity". Dec 09 19:50:09 pfn, updated the app Dec 09 19:50:15 gdrc, indeed Dec 09 19:50:16 TacticalJoke The thing about the latter is that it groups it with the ProfileActivity in the file list Dec 09 19:50:19 test Dec 09 19:50:33 test Dec 09 19:50:57 gdrc test Dec 09 19:51:09 pfn, sometimes I write but it doesn't send to channel Dec 09 19:51:48 gdrc, what do you mean by doesn't send to channel Dec 09 19:51:56 I guess you could also say ProfileEditingActivity, but it's longer. :D Dec 09 19:51:58 it doesn't appear locally, or doesn't send at all Dec 09 19:52:08 Need help with this navdrawer activity.. the fragment_one layout is inflating into the ListItem that I clicked.. http://pastebin.com/wCLgN60g Dec 09 19:52:09 I'm not a huge fan of long identifiers, in general. Dec 09 19:52:27 man, its so funny, a lot of things that made the nav drawer a pita to implement IMO (changing title, changing options menu, etc.) don't matter anymore with the new guidelines (cover the entire vertical space) Dec 09 19:55:42 heh well that’s good news.. but I need to get past my payotu inflating into the listitem :( Dec 09 19:56:19 somehow onCreateView() is getting the listItem from the drawer in VIewGroup container Dec 09 19:56:36 if I wanted to show a placeholder in a spinner (i.e. "State" for a state picker), and didn't want to have problems in L, how might I go about it? Dec 09 19:57:54 Hmm, if I set my ListView's cachedColorHint to red (or whatever), I don't see any difference no matter how much I scroll. Shouldn't I be seeing something? Dec 09 19:58:21 cache* Dec 09 19:59:33 This is bugging me.. Dec 09 19:59:52 I asked this a few minutes ago, but I think it was in the middle of a heated discussion so it may have been missed: Dec 09 19:59:57 Hey guys, just wondering if anyone can clear something up for me: What's the purpose of the flip-around navigation drawer icon (that turns from 3 lines to an arrow) in Material design, when the design spec says that the notification drawer should pop out above the actionbar? Dec 09 20:00:07 The icon end up totally hidden Dec 09 20:00:20 And Google doesn't seem to have ny consistency on it either. Dec 09 20:00:37 parent of the ViewGroup container parameter is DrawerLayout Dec 09 20:00:57 PSA: Don't read the AskReddit thread about fetishes. Your mind isn't ready for it. Dec 09 20:01:15 faithInHumanity--; Dec 09 20:01:44 Uhh... right. Dec 09 20:06:18 pfn, I don't see the message in the channel Dec 09 20:06:28 seems like genymotion changed their prices Dec 09 20:06:51 tricknology what is happening? Dec 09 20:07:36 When I open the xav drawer and press the first option in the list, the nav drawer closes but the layout is inflated into the first list item in the nav drawer Dec 09 20:07:39 nav* Dec 09 20:07:48 in the lsitview Dec 09 20:08:55 tricknology honestly, I just recently chunked ListView and implemented a custom UI. It started to become a major PITA for some of the stuff I wanted to do, like an about that opens a DialogFragment and an entry that changes from "Log in" to a user icon Dec 09 20:09:21 yeah I’m finding that even Google’s example is broken…. Dec 09 20:10:02 tricknology let me send you the one I recently wrote. I tried basing on the Google example, and used that for several versions, but recently just rewrote. You can scrap so much if you don't worry about the title and options menu changing. Dec 09 20:10:52 So, this is probably a SUPER weird question... But is there any way to update an air app store listing made with a .p12 Certificate into a Unity app? Dec 09 20:11:15 Yeah I really don’t care about that for now. I just want it to work lol Dec 09 20:11:43 tricknology take a look at this https://gist.github.com/mattblang/78f2800a81b49f7c2069 Dec 09 20:11:44 Either the nav drawer opens with nothing in it… or when I click the first option the layout is inflated into that list item. Dec 09 20:12:13 thanks mattblang Dec 09 20:14:41 mattblang.. in onCreateView.. how does the param ViewGroup container get passed in? Dec 09 20:14:49 tricknology it was suchhhh a PITA working around that one Dec 09 20:15:03 tricknology let's switch to private chat Dec 09 20:15:05 im finding that the parent to this continer is the nav drawer and not the main content panel... Dec 09 20:19:09 http://www.reddit.com/r/Android/comments/2orpkz/qicr_a_open_sourced_irc_client_for_android_now/ Dec 09 20:19:09 heh Dec 09 20:19:11 who did that Dec 09 20:23:17 *shrug* Dec 09 20:23:30 pfn, the latest qicr update was pretty cool tho, made it useful again on 5.0 :) Dec 09 20:23:55 same discussion here aswell? :D Dec 09 20:24:18 i use irssi connectbot because that's exactly what i want: use irssi :P Dec 09 20:24:21 Mavrik, again? Dec 09 20:26:58 pfn: qicr your project? looks nice Dec 09 20:27:05 JuiceSSH, yeah Dec 09 20:27:16 Mavrik, how did 5.0 make it un-useful? Dec 09 20:28:46 pfn, the notification text wasn't readable before the last update on 5.0 Dec 09 20:29:25 Mavrik, oh, the color stuff, yeah, I flipped it for lollipop Dec 09 20:30:23 I have the code https://gist.github.com/freeone3000/570d748391feacf7d262 . Why am I only getting a chunk update at 100%? Is there a way to force MediaPlayer to play earlier Dec 09 20:32:10 Am I right in assuming that this is the background colour used for Theme.AppCompat? #ff303030 Dec 09 20:32:14 From here: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/colors_material.xml Dec 09 20:39:51 http://imgur.com/TvbX5jn Dec 09 20:39:55 lol, that's unreadable Dec 09 20:41:37 lol Dec 09 20:41:44 Looks like I was writing a diary entry. Dec 09 20:43:29 * quindo bangs his head on certificate to keystore problems. Dec 09 21:04:48 I wonder when was the last time somebody wrote code using a typewriter. Dec 09 21:05:18 does a mechanical keyboard count? They sound similar Dec 09 21:05:44 people still use them Dec 09 21:06:09 not sane people, but people none-the-less Dec 09 21:06:10 i just bought a razer blackwiddow after ruining my 1991 cherry mx Dec 09 21:07:05 and i like the green mx switches in it even better than the blue ones in the old kb Dec 09 21:07:33 Are mechanical keyboards an old thing or a new thing? (Or both?) Dec 09 21:07:47 both Dec 09 21:07:51 Hey guys -- I'm trying to find a way to collect application logs from a remote phone. I'm looking at Crashlytics, Crittercism, and GA, but they all seem centered around crashes as opposed to flowing general application logs back to us. My mobile developer has mentioned PhoneHome (https://github.com/nebulabsnyc/PhoneHome). Does anyone have any experience with that, or suggestions on how to handle it? Dec 09 21:07:52 kinda Dec 09 21:08:48 Sounds like you want Flurry Dec 09 21:12:53 intransit, acra Dec 09 21:12:56 s73v3r: not familiar with that. How's that differ? I thought for sure Crittercism or GA could do what we're looking for, but the dev is unsure of how to do that. Dec 09 21:13:02 acra will get you logcat Dec 09 21:13:06 TacticalJoke, old Dec 09 21:13:18 TacticalJoke, mechanical keyboards were the first keyboards developed... Dec 09 21:13:23 I see. Dec 09 21:13:27 pfn: So we can move it outside of just crash reporting? Dec 09 21:13:37 intransit, yes Dec 09 21:13:54 I know GA can do it, too. However, you do have to add the calls to the analytics manager which will then send things back to you Dec 09 21:14:15 intransit: you can also use crashlytics.log(string). personally, I wrap crashlytics & logcat to have a bit more control. Dec 09 21:14:45 * pfn has 3 mechanical keyboards at home Dec 09 21:14:46 all new, though Dec 09 21:14:48 Groxx: what do you wrap outside CL and logcat, or is one in the other? Dec 09 21:15:00 maxkeyboards nighthawk x8, maxkeyboards blackbird, and cmstore quickfire rapid Dec 09 21:15:48 hmm Dec 09 21:15:53 intransit: first, I don't log in production. so that makes it easy. second, I wrap crashlytics' methods because they don't have an easy "log this in debug, report it in production" thing so you don't pollute your production crash reports Dec 09 21:16:10 polluting logs is the best way to get diagnostic infos Dec 09 21:16:51 intransit: but personally I'd make a debug-only log method, and a production-and-debug one, which also logs to crashlytics. then use as is appropriate. Dec 09 21:18:12 that also makes it easy to e.g. automagically construct useful log tags Dec 09 21:18:27 Hello. I get error when I try to launch my app on Android 2.3 device (Minimal target is 7, i don't get any error on Android 4.2) - here's error: https://pastebin.com/1TTviEAy Can anyone help me fix this ? Dec 09 21:19:24 Looks like an error with one of your layouts Dec 09 21:19:33 Groxx and pfn -- but definitively this should be able to be done through GA or Crittercism/Crashlytics? Dec 09 21:19:48 I really don't want to install a new server (phonehome) in our infrastructure for this. Dec 09 21:20:01 Narzew: do you have any values-v8 (or larger) folders? you might be missing the resource in v7. Dec 09 21:20:27 intransit: crashlytics: definitely can. crittercism: paid only, last I saw. GA: dunno. Dec 09 21:20:40 intransit, no Dec 09 21:20:46 intransit, none of them support capturing logcat Dec 09 21:21:38 We're just trying to ship app logs, not necessarily what's based on a crash. Is that dependent on logcat? Dec 09 21:21:55 ah. yeah, if you're trying to implicitly capture logcat, I don't think they do (though you can also make your own exception handler and augment the logs yourself). Dec 09 21:21:59 Groxx: I don't have even this folders O.o I have folders with textfiles for example assets/plans/school1/, assets/plans/school2/ etc Dec 09 21:22:33 Narzew: it's being caused by some reference in your layout Dec 09 21:23:37 Narzew: oh, another possibility: are you using @android:drawable/something ? could that be missing on the v7 device? Dec 09 21:23:45 I forget how those are bundled / not. Dec 09 21:24:54 Groxx: 5 files, where I should made v7 folder ? in res/ ? Dec 09 21:24:58 KekSi, using irssi to irc from mobile sucks Dec 09 21:25:43 android studio is auto-saving to local history even though auto save is disabled Dec 09 21:26:10 Narzew: you don't necessarily need one. what do your /res/ folders look like? Dec 09 21:27:24 Android Studio is out and stable now. I just downloaded it for the first time and I'm having some build weirdness with Gradle. wondering if I should stick with Eclipse... Dec 09 21:28:06 res/ : drawable-hdpi drawable-ldpi drawable-mdpi drawable-xhdpi layout values Dec 09 21:28:36 5 .png files in drawable-mdpi only Dec 09 21:30:15 Narzew: do you have any XML files in the drawable folders? Dec 09 21:31:12 Groxx: No. Only .png's Dec 09 21:34:58 Where can I find details about the default background (which seems to be a gradient from top {black} to bottom {close to black}) in Theme.Holo? Dec 09 21:35:30 The background for an Acivity, I mean. Dec 09 21:35:37 Activity* Dec 09 21:35:44 TacticalJoke: I forget if Eclipse has this too, but in AS at least you can cmd-B to go to the definition of a style. then you can just read it :) Dec 09 21:36:20 Yeah, that's Ctrl+Click in Eclipse, I think. I'll try that. Dec 09 21:37:04 I don't see a gradient in themes_holo.xml, though. Dec 09 21:37:18 I mean the reference to a gradient. Dec 09 21:37:30 Narzew: do any of these apply? http://karim-ouda.blogspot.com/2013/11/androidcontentresresourcesnotfoundexcep.html Dec 09 21:37:32 Hey there, any reason Device Manager wouldn't pick up my Moto X? USB debugging is on, running Android Studio 1.0 (I forget the adb version though) Dec 09 21:37:32 lasserix: The Android Studio people are finally adding JVM unit testing to Android Studio. Dec 09 21:38:09 Does the Moto X need the Google USB Driver? Dec 09 21:38:13 techkid6: do you have the USB-debugging-is-on notification on the device? Dec 09 21:39:32 techkid6, install the driver... Dec 09 21:40:35 Groxx: I found the problem reason. Dec 09 21:40:52 It's caused ty this line: android:textAppearance="?android:attr/textAppearanceListItemSmall" Dec 09 21:41:03 pfn: you used scala with IJ? seems the plugin is broken in 14 Dec 09 21:41:19 Narzew: yeah that sounds believable Dec 09 21:41:19 techkid6: Are the USB drivers installed for your OS? Dec 09 21:41:24 DOH Dec 09 21:41:28 bankai_au, broken? I use 14, works fine for me Dec 09 21:41:29 thanks guys *facepalm* Dec 09 21:41:46 techkid6: usually only needed for Windows Dec 09 21:42:13 pfn: hummm ... ok then :/ it's highlighting classes saying i need to import even though the import statement is there (added by IJ) or unnecessary Dec 09 21:42:58 Hi all, wondering if you can help: I have a ViewPager containing fragments. Is there a way to temporarily move one fragment or disable the middle few fragments without destroying them? Basically, I want to temporarily have two of the fragments next to each other spatially. Dec 09 21:43:20 gauthierm: Running ElementaryOS Luna (which is essentially Ubuntu 12.10) i386 Dec 09 21:44:25 In which year was Holo released? Dec 09 21:44:45 ugh. does anyone else have OSX freezes where the mouse / keyboard seem to respond (but no UI), to fix it you have to hold the power button to kill the machine, and sometimes it tells you there was a graphics problem when it starts back up? Dec 09 21:44:49 it's like a weekly occurrence for me. Dec 09 21:45:04 Groxx no Dec 09 21:45:32 techkid6: The device also needs to trust the computer. You may have dismissed that dialog by accident. Trust settings can be managed in the developer settings on the phone. Dec 09 21:46:03 Has anyone else transitioned to the new google play services 6.5.87 with ads? ('com.google.android.gms:play-services-ads:6.5.87') I'm getting a runtime startup crash "Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class com.google.android.gms.ads.AdView" now.. has something changed? Dec 09 21:46:37 jonbo: I will soon, haven't yet. are you using proguard? Dec 09 21:46:42 Can anynoe explain how ListView and cacheColorHint work as a TL;DR? Dec 09 21:46:42 nope Dec 09 21:46:56 Because I see no difference whatsoever if I set it to arbitrary colours. Dec 09 21:47:14 TacticalJoke: iirc it only applies to older OSes Dec 09 21:47:25 gauthierm: k Dec 09 21:47:37 TacticalJoke: http://android-developers.blogspot.com/2009/01/why-is-my-list-black-android.html Dec 09 21:47:38 Ooh. Dec 09 21:47:42 Yeah, I read that. Dec 09 21:47:44 Probably need to disable HW accel, TacticalJoke Dec 09 21:47:45 I assumed it still applied. Dec 09 21:47:45 Groxx one thing that happened though, was the machine went to sleep but would not wake up. i had to power it down. be careful, that HFS+ filesystem sucks ass and is very brittle. Dec 09 21:47:57 Or they just removed it completely Dec 09 21:48:02 Eye sea. Dec 09 21:48:31 TacticalJoke: eeew, what an image. Dec 09 21:48:32 I see the ability to revoke permission, but not request Dec 09 21:48:36 Groxx: Worked on Android 2.2, but Navigation Drawer doesn't look good. Elements have very small font.. How I can fix it Dec 09 21:48:36 ? Dec 09 21:48:56 An eye out at sea? Dec 09 21:49:49 how much better is Android Studio? Dec 09 21:50:51 It's not better if you do NDK stuff. :D Dec 09 21:51:03 drkfdr: I'm currently attempting to resolve some Girdle issues that prevent me from using AS. I'm using Eclipse/ADT now with some success...but then again it si "stable" and "official" now so I kind of want to migrate Dec 09 21:51:22 Girdle...Grapple...whatever lol Dec 09 21:51:24 Narzew: you can make your own text style, mimicking the previous one. Or just set android:textSize="16sp" or something. Dec 09 21:51:24 by "make your own" I mean "find the xml source of that style, and copy it into your app" Dec 09 21:51:25 Gradle. Dec 09 21:51:30 techkid6: Hmmm... http://developer.android.com/tools/device.html says you may need to do some stuff to make it work in Ubuntu. My Linux flavour is Fedora and it "just worked"TM for me. Dec 09 21:52:06 drkfdr: its infinitly better for most cases Dec 09 21:52:18 lasserix: What was your genius idea? Dec 09 21:52:23 Or was that simply the acid/whatever talking. Dec 09 21:52:28 Umm Dec 09 21:52:28 (my Moto X is running Android 4.4 KitKat, btw) Dec 09 21:52:37 well... I'm not sure my project at work is coming to an end soon with Eclipse.. But don't think I need to switch before deadline.. Dec 09 21:52:37 (because why should we get 5.0, amirite) Dec 09 21:52:38 Basically use a viewpager to do vertical scrolling Dec 09 21:53:02 techkid6: that shouldn't make a big difference. Developer trust stuff is the same for all versions I think. Dec 09 21:53:04 I'm getting ready to implement showing comment hierarchies. But I'm obsessing over colours and stuff. :[ Dec 09 21:53:07 You can use a listview to display the tree but minitrized Dec 09 21:53:09 gauthierm: Ah, ok. Dec 09 21:53:18 behind the viewpager, but use the viewpager to scroll through the comments Dec 09 21:53:18 techkid6: you can try revoking permissions on the phone and plug/re-plug it. Dec 09 21:53:19 is there a way to programmatically set the height of a specific itemview in a listview? Dec 09 21:53:23 What does 'minitrize' mean? Dec 09 21:53:27 You said that yesterday as well. Dec 09 21:53:31 <_Auron_> I need to get this app into beta by the end of next week, so I definitely am not switching IDEs right now :P Dec 09 21:53:52 ok, sure Dec 09 21:54:22 Narzew: fwiw it looks like that style is basically TextAppearance.Large by default. It might be changed by your app theme, but that's probably a good place to start. Dec 09 21:55:28 http://imgur.com/fxULw55 <- this is how my device shows now Dec 09 21:55:48 I think that means you need to approve the computer on the device? Dec 09 21:56:41 tactical, so grab all the subject lines of the comment tree Dec 09 21:56:47 present them as convention Dec 09 21:56:56 What is the subject line? You mean the first line of the body? Dec 09 21:56:59 yeah Dec 09 21:57:00 Or the metadata. Dec 09 21:57:01 Okay. Dec 09 21:57:04 whatever Dec 09 21:57:19 Groxx: But I am given no option to do so, and I don't remember doing so on my Nexus 7 either Dec 09 21:57:22 doesn't matter, but needs to be "first line" or something indicating its its own post Dec 09 21:57:23 techkid6: unplug the phone and plug it back in, you should see something like this: http://cl.ly/image/3w2O2R462M1w (if not, you may have denied it, and need to tap "Revoke USB debugging authorizations" in dev options) (or it may be something else entirely) Dec 09 21:57:38 so present it as you normally world, ie in a vertical list with tabs identing to show relationship Dec 09 21:57:42 *normally would Dec 09 21:58:06 like you might implement clicking on one would expand the rest of the body of that comment right? Dec 09 21:58:08 On a side note, the idea of showing collapsed comments with the first N characters is a really nice idea. Dec 09 21:58:17 Rather than just showing some "collapsed" kinda thing. Dec 09 21:58:19 its get much better Dec 09 21:58:21 Using Android Studio 1.0, trying to use ArrayAdapter, but it says "Cannot resolve symbol 'ArrayAdapter'". Anyone know what the issue is? Dec 09 21:58:45 Groxx: No such screen appears, no Dec 09 21:58:47 okay so now zoomed out, so the text is almost barely legiblle Dec 09 21:58:47 kruug: What does Alt+Enter say? Dec 09 21:59:02 follow me so far? Dec 09 21:59:04 techkid6: did you revoke usb auth on the device? that'll reset the dialog Dec 09 21:59:06 Kinda. lol Dec 09 21:59:20 techkid6: if you revoke, and everything else is working, you'll definitely see that dialog on 4.4 Dec 09 21:59:21 okay now overlay a viewpager such that each page contains a block of text Dec 09 21:59:32 the user does not interact with the underlying vertical list Dec 09 21:59:33 revoked, nothing, Groxx Dec 09 21:59:38 TacticalJoke: nice! did that just import what was missing? Dec 09 21:59:39 but swipes left and right to go up and down the list, Dec 09 21:59:56 with the current post "header" (in the list underneath) highlighting Dec 09 21:59:58 kruug: Did it suggest "Import [whatever]"? If so, and you chose it, yes. Dec 09 22:00:05 no, it just auto imported Dec 09 22:00:17 now when they are swiping to left, they can see the whole list and where the current block (viewpager page) is relative to the rest Dec 09 22:00:24 is anyone else having issues with android studio hanging? Dec 09 22:00:27 its' more comfortable since scrolling left and right is easier on a phone Dec 09 22:00:32 kruug: there's a little tooltip for missing imports, often no "choose the import" dialog (if there's only one visible option) Dec 09 22:00:40 alt-enter accepts the suggestion Dec 09 22:00:44 i've found the problem across multiple linux distros and machines Dec 09 22:00:51 but basically you know where you are in the overall tree, you can read comfortably the current post Dec 09 22:00:57 boot it up, it starts setting setting the project up, then freezes Dec 09 22:00:57 i think it would be really cool Dec 09 22:01:07 lasserix: Hmm, I think I get it. Dec 09 22:01:20 So people would scroll the list by swiping right (for down) and left (for up)? Dec 09 22:01:24 yeah Dec 09 22:01:33 and the cool thing is in between swipes you'd be able to see the whole list Dec 09 22:01:41 lagann: nothing here. it used to have problems if the first launch wasn't while you were online - possibly it's similar? there might be a ton of stuff to download Dec 09 22:01:49 even tho the text of the list underneath is really small as long as you highlight the current header you'd know what it is/where you are Dec 09 22:01:59 I see. Dec 09 22:02:04 Would this require N ListViews? Dec 09 22:02:14 Where N>1. Dec 09 22:02:23 no Dec 09 22:02:26 just one Dec 09 22:02:38 the underlying listview would have children who'd have an ident property Dec 09 22:02:39 Oh, ViewPagers can be used for swiping only? Dec 09 22:02:45 ? Dec 09 22:02:48 Without presenting a new Fragment or whatever. Dec 09 22:02:53 ? Dec 09 22:03:05 I thought ViewPagers just switched between Fragments. Dec 09 22:03:08 you just make a pseudoendless viewpager Dec 09 22:03:11 I've never used one, BTW. Dec 09 22:03:13 no you can do custom views Dec 09 22:03:23 Oh ADB is having a connection error Dec 09 22:03:27 the left most page would go back Dec 09 22:03:33 the right most page would be the end of the comment tree Dec 09 22:03:37 But I could do all that with one ListView? Dec 09 22:03:41 techkid6: ah, that would cause problems too :) Dec 09 22:03:43 ? Dec 09 22:04:02 sure, all you need to do is parse the comment tree grabbing the "header" and the identation count Dec 09 22:04:16 then you can use that to populate the underlying listview Dec 09 22:04:16 So I guess you're saying something like this: Swipe right --> tell adapter's data source we're at the next page --> notifyDataSetChanged. Dec 09 22:04:20 where even is adb located... Dec 09 22:04:24 no Dec 09 22:04:37 or you could do it that way but i wouldn't Dec 09 22:04:44 i would create a view pager with 5 pages Dec 09 22:05:00 techkid6: windows or linux-like? Dec 09 22:05:00 Groxx: nah i don't think so Dec 09 22:05:03 the inner 3 are endless Dec 09 22:05:12 Groxx: *nix, using Android Studio 1.0 Dec 09 22:05:16 so you get to number 4 it sets it to number 2 Dec 09 22:05:23 techkid6: try `which adb` Dec 09 22:05:24 then it just grabs the next comment Dec 09 22:05:47 techkid6: or if you know where your android SDK is located, it's in there, in one of the tools folders (I forget which) Dec 09 22:06:22 Groxx: k Dec 09 22:06:58 lasserix: Are you suggesting using ViewPager merely as a way to detect swipes? Dec 09 22:07:06 no Dec 09 22:07:21 the viewpager presents the content Dec 09 22:07:24 But you're saying there'll be only one ListView. lol Dec 09 22:07:29 yeah Dec 09 22:07:44 the listview is just a preview of the comment tree containing headers and showing identation Dec 09 22:07:52 the viewpager overlays it Dec 09 22:08:01 the viewpager presents the content of each comment Dec 09 22:08:07 swiping right goes down the listview Dec 09 22:08:08 Ooh. Dec 09 22:08:20 So the ViewPager shows some TextViews or something? Dec 09 22:08:22 ie, you'd manually scroll the listview, highlighting the "current header" Dec 09 22:08:30 the viewpager is the presentation Dec 09 22:08:47 it'd contain whatever you need to present each comment Dec 09 22:09:11 basically you'll break the comment tree into a sequence of pages Dec 09 22:09:46 such that continually swiping right will present subsequent comments Dec 09 22:10:16 interesting. a wonky tree-view of sorts Dec 09 22:10:19 Let's say that we've swiped right 27 times. Will we have to swipe left 27 times to go back to the beginning? Dec 09 22:10:40 no you you can just implement a fling that'll let it auto scroll till the user touches it or it gets to beginning Dec 09 22:10:47 (I think I'm interpreting this listview + viewpager monstrosity correctly?) (it could work. I just despise viewpager.) Dec 09 22:11:00 Groxx: lol Dec 09 22:11:03 Groxx: but yeah, it just isnt requesting permission Dec 09 22:11:24 if done well it would not be a monstrosity just really cool way to present threads Dec 09 22:11:29 *branching threads Dec 09 22:12:14 yeah, it does sound interesting. I'd have to try it out to have a real opinion, but I think I understand what you're going for. Dec 09 22:12:30 lasserix: So it's basically "zooming into" ListView rows by swiping, right? Dec 09 22:12:37 techkid6: hm. `adb kill-server` followed by `adb devices` ? Dec 09 22:12:54 Or zooming out, I guess. Dec 09 22:12:58 ? Dec 09 22:13:02 no just traversal Dec 09 22:13:08 but yeah you could implement an animation Dec 09 22:13:15 techkid6: locally I see that adb actually says "unauthorized" if I revoke, so it does seem like there's something preventing it from seeing the device fully Dec 09 22:13:17 Groxx: No dialog Dec 09 22:13:23 where the header that sits on top of the viewpager scales up the page Dec 09 22:13:33 anyways you got the basic idea i think Dec 09 22:13:39 techkid6: what does adb say when you say `adb devices`? still "??" or something else? Dec 09 22:13:39 Groxx: I agree, looking now for other moto x users withthe same issue Dec 09 22:13:47 ??????????? no permissions Dec 09 22:13:51 sadness Dec 09 22:13:57 I think so. Hmm. Dec 09 22:14:24 ##motox is the quietist channel on the freaking planet and that helps none Dec 09 22:14:35 techkid6: I did see a mention that someone got it working by putting the phone's USB connection into camera mode. not sure if that's right or not, but worth a try. Dec 09 22:15:39 Hello, I am having a problem with the latest version of the Android SDK and Android Studio and can't find help on the web: I have installed the API 21 SDK, and when I create a new project with API 15 as minimum level, my main activity extends ActionBarActivity, and the style rendering fails. I managed to fix the rendering error by changing a line on the styles.xml file, but I don't understand why is it extending ActionBarActivity by Dec 09 22:15:40 default being the API level 15 (or superior), it only extends Activity when I choose 21 as minimum... can anybody tell me what is going on here? Thank you. Dec 09 22:15:40 hello : ) Dec 09 22:16:32 Groxx: I'll try it, but now im fairly certain its just drivers Dec 09 22:16:34 erts: extending ActionBarActivity vs Activity: ActionBar is deprecated in Lollipop, I suspect that's the cause Dec 09 22:16:39 Im looking for a method to check how many seconds passed since last wake up (?) Dec 09 22:16:57 PabloAngello: device boot, or "last time my app did something"? Dec 09 22:17:10 Groxx, last time my screen was on Dec 09 22:17:26 Groxx: if it's deprecated why is it extending from ActionBarActivity? I think I'm missing something here... Dec 09 22:17:29 ah. I don't know if there's anything specific for that. Dec 09 22:17:48 Groxx, yeah me too . I am looking in android docs and nothing about that ; / Dec 09 22:17:54 Do you folks know whether Theme.AppCompat/Theme.Material use a gradient for Activity backgrounds (like Theme.Holo does)? Dec 09 22:17:54 bankai_au http://www.androidpolice.com/2014/12/09/what-we-use-2014-the-stuff-michael-cant-live-without/ <-- notice labrador is required Dec 09 22:18:02 BOOM IT WORKED GROXX Dec 09 22:18:04 camera Dec 09 22:18:07 WAT Dec 09 22:18:18 annnnd there recognized! Dec 09 22:18:36 erts: probably some combination of: A) I don't know if Toolbar is fully backported. maybe. B) it works fine in older OSes (and Lollipop, it's just a deprecation, not a removal). C) the templates seem to get out of date at time, it's possible they just haven't updated it. Dec 09 22:18:47 techkid6: w00t, great news :) Dec 09 22:18:50 lasserix: That's an interesting idea. I like the idea of going from comment to comment (as opposed to simply scrolling a list). Dec 09 22:18:56 techkid6: definitely weird news, but great :) Dec 09 22:19:02 Groxx: what are the chances xD Thanks so much :P Dec 09 22:19:04 I don't know how the UX would be, though. Dec 09 22:19:07 now to go play with Studio Dec 09 22:19:21 What about just a ListView with a "jump to next comment" swipe (or something). Dec 09 22:19:24 Or button. Dec 09 22:19:29 PabloAngello: I think you can register for broadcasts for screen on / off. Given that, you could store current-time when the screen goes off, and check it later. Dec 09 22:19:33 g00s: hahaha he likes his doggy... i really like that desk :) Dec 09 22:19:55 PabloAngello: what are you trying to do though? there might be another option if you're just trying to e.g. "do something when the device is idle" Dec 09 22:19:56 Groxx, yeah it is one of way around Dec 09 22:20:21 Groxx, I want to start activity in a certain time after phone/screen is wake up Dec 09 22:20:29 Groxx: I understand... and do you have any idea of how could I fix this? it's really annoying and I'm having an Android development exam in two days... I don't wanna fail because this thing keeps crashing.... Dec 09 22:20:40 woke up Dec 09 22:20:43 * Dec 09 22:21:21 Hmm, does the whole Material Design thing involve app developers setting windowBackground? Dec 09 22:21:27 No buttons Dec 09 22:21:30 for swiping action Dec 09 22:21:32 thats fugly Dec 09 22:21:32 Yeah, I'm not a fan of buttons. Dec 09 22:22:04 PabloAngello: force-starting an activity is usually not a good idea, since you don't know what the user is doing. but anyway: I'd probably go with the broadcasts. I suspect there isn't anything more detailed, though I'm not totally certain. Dec 09 22:22:06 Yay app works Dec 09 22:22:09 There was a Reddit client that did this with buttons and I didn't like it. Dec 09 22:22:11 now to make something real. Dec 09 22:22:15 Pressing the button was so awkward, too. Dec 09 22:22:29 Groxx, I now but in my case user will want it Dec 09 22:22:33 I know* Dec 09 22:22:35 One should be able to walk down the street and read Reddit. Dec 09 22:22:37 One-handed. Dec 09 22:23:09 erts: you mentioned the style-rendering fails. what's the failure? in the layout-preview, or on the device? Dec 09 22:23:25 Can someone tell me what I'm doing wrong with http://pastebin.com/Yv7yKMme ? If I change the theme to a stock theme in AndroidManifest.xml, I see the change. I can't seem to use my custom style though. Dec 09 22:23:42 PabloAngello: yeah, there are reasons to do it :) I figure it's my duty to push against it a bit though. Dec 09 22:24:03 Groxx, no problem ;) so there is no android method for that... pitty Dec 09 22:24:04 jgorak: [parent="android:Theme.Holo"]? Is that right? Dec 09 22:24:38 Groxx: AFAIK it's just failing in the layout-preview, it's really weird because if I change the theme it works Dec 09 22:24:53 How to add a custom task to one flavor build only (e.g. assembleFullRelease.dependsOn copyApk)? Dec 09 22:25:03 erts: I think there's a way to view the stack trace causing the failure. what does that say? Dec 09 22:25:26 jgorak: What if you change that to [parent="@android:style/:Theme.Holo"]? Dec 09 22:25:30 Oops. Dec 09 22:25:35 parent="@android:style/Theme.Holo" Dec 09 22:26:18 Hmm, maybe they're both right. Dec 09 22:26:27 how can I show android preview in android studio? Dec 09 22:26:34 Groxx: no idea, I'm reinstalling the whole thing right now sorry Dec 09 22:26:59 erts: eh, that might work. good luck :) Dec 09 22:27:12 TacticalJoke- to be honest, I'm not certain. The tutorial page I was comparing against showed both ways :\ Dec 09 22:27:23 neither seems to make a difference though Dec 09 22:27:57 Groxx: yeah I tried it a few times before I came here, but now I'm trying to use Android Studio without Lollipop, just installing the 4.2.2 SDK to see what happens.... it might be a good temporal solution Dec 09 22:28:08 jgorak: So, if you change 'parent' to Theme.Holo.Light, it makes no difference? Dec 09 22:28:21 (In styles.xml.) Dec 09 22:28:52 how do you import part of the gradle file from build.gradle? Dec 09 22:29:14 I tried using "apply from" but I always get erros like: Error, Build script error, unsupported Gradle DSL method found: 'applicationId()'! Dec 09 22:30:15 Yep, tried different themes, normal and light, and get no change Dec 09 22:30:38 Is your Activity declaring a custom background? Dec 09 22:30:40 Either in XML or at runtime. Dec 09 22:32:53 Not the activity, though in a few textviews Dec 09 22:34:02 Groxx: it worked! I uninstalled the Lollipop SDK, installed the 4.2.2 one and now the rendering doesn't fail and it extends Activity as usual! :) after the exam I'll do a bit of research to get things working properly with Lollipop, but now I don't have the time. Thank you very very much for your help, really :) Dec 09 22:34:35 erts: good luck on the class :) Dec 09 22:34:50 erts did you pick the right version in the renderer? Dec 09 22:35:03 thank you Groxx Dec 09 22:35:40 lasserix: yep... I think it's what Groxx said, outdated templates. I've seen this before and it got fixed within a week or something Dec 09 22:38:57 are displaying Service Marks still an issue? Dec 09 22:42:14 think its tme to make a twitter bot service to keep shows i like from getting cancelled ;p Dec 09 22:42:34 s73v3r: I have no idea what that is - care to elaborate? Dec 09 22:42:40 the SM mark Dec 09 22:42:49 lasserix maybe they are getting cancelled because you like them :D Dec 09 22:42:54 ? Dec 09 22:43:00 I think that's un-laborating, since it's smaller than it started D: Dec 09 22:43:02 Usually you want to display it superscripted and small, much like a Trademark (TM) symbol Dec 09 22:43:06 no i just remember when they cancelled deadwood Dec 09 22:43:48 i believe today it would be totally possible for one person with enough programming expeirence to use twitter to keep shows from being cancelled by staging a campaign (built on virtual but for all appearances real) identities Dec 09 22:43:55 s73v3r: ah. what's the issue? can't figure out how / it doesn't render right / something else? Dec 09 22:44:01 is it possible to debug from the command line Dec 09 22:44:56 it doesn’t render correctly. it’s a bug from a long time ago, and it looks like it was closed as “Obsolete” a couple of days ago, when they closed a ton of bugs Dec 09 22:45:01 s73v3r: service mark is probably rendered fine if trademark is Dec 09 22:45:08 nope Dec 09 22:45:17 just download unicode map app and see Dec 09 22:46:01 s73v3r: is there an 'sm' character that's not rendering (probably on older devices?), or is your technique not working? I've used spannables pretty effectively, they seem to work as advertised Dec 09 22:46:24 we were having an issue using spannables in some dialogs Dec 09 22:46:55 ugh. dialogs. we've had tons of issues trying to support selecting text in them :| there's something deeply wrong with them or something Dec 09 22:47:28 hmm Dec 09 22:47:34 SM renders but doesn't superscript it Dec 09 22:47:46 err the unicode code point renders but doesn't superscript it Dec 09 22:49:20 ethiopic has a letter that looks like a cat Dec 09 22:50:18 just superscript it yourself in a spannable Dec 09 22:51:01 I would probably recommend making your own spannable, yeah. it's pretty easy to make a single-use one. Dec 09 22:51:14 it might work, where whatever else you're using doesn't Dec 09 22:55:31 Making an app for a game and I want to store all the items in the game in a relational database (specifically equipment, material, trash loot, etc in separate tables but linked). I have the tables designed out, but there's quite a bit of data here and I want to make sure I'm on the right track before I go through the trouble of populating them. Sho Dec 09 22:55:31 uld I just fill them out, save as .sql, and include as a resource? All the stuff I've googled talks about rebuilding the entire db in code before manipulating it but this is completely read-only. Dec 09 22:56:05 Since it's read-only.. should it just be a crazy huge xml list that I just carefully treat as a db? Dec 09 22:56:45 Jittler: if you want to get fancy, you can bundle an sqlite database with the app. Dec 09 22:57:04 Jittler: you have to rebuild it Dec 09 22:57:08 :| Dec 09 22:57:15 you might have to copy it before using it (the bundled version will be read-only at the filesystem level, that might not play nicely with Android), but you can do that. Dec 09 22:57:42 The copying it part doesn't seem very efficient to me. What would you guys do if you had ~8000 "items" that had to be treated very differently? Dec 09 22:57:45 Jittler: you can include a db in your assests or raw, but then in code you copy this in your /database folder at which point you can access it using an sqliteopenhelper implementation Dec 09 22:57:55 Jittler you copy it as a binary Dec 09 22:58:14 it won't take more than a second or two Dec 09 22:58:15 it's not very space efficient, but file copies are reasonably fast as long as you're not moving e.g. hundreds of megabytes. and it only has to happen once. Dec 09 22:58:49 jgorak: I'm not sure. Maybe post the Activity XML-layout file and stuff? Dec 09 22:58:51 ^ this will also make your apps footprint considerably large. If you're going to go down thsi route you might need to consider expansion files and using the sd card Dec 09 22:58:53 the only other way to do it is if you have a server you can download via XML and insert Dec 09 22:59:02 bankai_au: no it wont Dec 09 22:59:11 jgorak: What I saw looked like it should work. I made similar changes in my project and it worked fine. Dec 09 22:59:15 it does coz i've done it it Dec 09 22:59:16 8000 elements isn't much, unless you're storing a bunch of large binary blobs Dec 09 22:59:22 ^^ Dec 09 22:59:37 sqlite is pretty efficient on storage Dec 09 22:59:43 ++ Dec 09 22:59:46 So basically just go for it as it is in the docs. Dec 09 22:59:47 # Dec 09 23:00:22 or, to put it another way: the SQLite storage is almost definitely smaller than bundling the data as XML. Dec 09 23:00:23 Why does it only have to be copied once and where exactly does it go? I think not understanding exactly what happens when I copy it is the real hang-up. Dec 09 23:00:48 I feel like reading the whole db into the open process has to be a terrible idea. Dec 09 23:00:57 Jittler: you put it in assests or raw Dec 09 23:00:59 you don't have to read it into the process, you just tell the OS to copy the file Dec 09 23:01:27 Jittler: any database you acces in code for your app (via an SqliteOpenHelper) is created in /data/data/com.your.package.name/databases Dec 09 23:01:53 to use a prexisting database, you put it in in assests or res/raw folder before you build the app Dec 09 23:01:54 Ooooh. So you mean it literally writes a local copy to disk so it can read from that. That doesn't sound so bad. Dec 09 23:01:58 ^ you can bypass the folder it looks at. SQLiteOpenHelper just does that by default. Dec 09 23:02:03 then in code, you copy the bytes of the db into /databases Dec 09 23:02:36 then you just have your sqliteopenhelper use the same name as the name of the database as you pass to its super constructor Dec 09 23:02:44 http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/ Dec 09 23:02:53 Jittler: yeah. assets in your .apk are essentially symlinked into folders you can read from, but because they're part of the APK they're strictly read-only. that's why "clear data" works. Dec 09 23:02:53 http://stackoverflow.com/questions/9109438/how-to-use-an-existing-database-with-an-android-application Dec 09 23:03:23 oh looks like someone made a library https://github.com/jgilfelt/android-sqlite-asset-helper Dec 09 23:03:38 fuck its available via gradle damn you're set Dec 09 23:03:48 dayum Dec 09 23:03:50 Well, hot damn. Dec 09 23:04:09 oh DAAAYYYYUUUMMM Dec 09 23:04:14 ...sorry Dec 09 23:04:15 someone broke the fucking swearing dam. flee the city! Dec 09 23:04:30 booya mother fuckers! Dec 09 23:04:36 mind your language! it's called a darn! Dec 09 23:05:18 Jittler: i wouldn't actually use that library, but its source code is defintly a nice place to look! Dec 09 23:05:41 when I compile my app for production, will the compiler remove all the Log.v or should I do it myself? Dec 09 23:06:01 slmb you have to yourself Dec 09 23:06:21 slmb it's usally a good idea to wrap your log calls in static method calls that use a boolean to output or not Dec 09 23:06:37 damned. thank you lasserix Dec 09 23:06:49 I understand this all a bit better, and I did download that library.. so now it's time to dig through it to confirm I understand what's going on and to steal.. err.. be inspired by this guy's work. Dec 09 23:07:00 his work its a little strange Dec 09 23:07:05 id look at that first article Dec 09 23:07:06 slmb: check it out, this might be handy: https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/util/LogUtils.java Dec 09 23:07:19 I mean tbh the android docs "Saving Data in SQL Databases" is pretty straight forward. Dec 09 23:07:22 slmb: alternatively you can -assumenosideeffects and run a minifying config of proguard Dec 09 23:07:35 proguard + minification comes with risks though Dec 09 23:08:05 but basically if you understand that asessts/raw are read-only and you need to manually copy the bytes from a db in one of those folders to /databases (where sqlite open helpers go to acces your apps databases) the rest is pretty straight forward Dec 09 23:08:53 thanks doogan I'm looking into it Dec 09 23:08:55 Jittler: that android dev article has nothing to do with using preexisting databases Dec 09 23:09:01 okay Groxx Dec 09 23:09:02 slmb don Dec 09 23:09:10 't rely on proguard to do this for you Dec 09 23:09:22 use a logger class Dec 09 23:09:56 Why would i get "Caused by: java.lang.RuntimeException: Multi dex installation failed (Failed to create dex directory /data/data/com.maluuba.maluuba/code_cache/secondary-dexes)." on an Android 4.4.2 phone? Dec 09 23:10:02 doogan, so with this the compiler will be smart and will replace the calls to LOGD by void if debug is true? Dec 09 23:10:11 TacticalJoke: what's the progress % of your reddit client btw? Dec 09 23:10:30 slmb: it won't work Dec 09 23:11:40 slmb it's better to use your own logging class and have proguard remove it Dec 09 23:11:58 hum, okay Dec 09 23:12:08 http://raptordigital.blogspot.com/2014/06/logging-and-proguard.html Dec 09 23:12:48 lasserix: About 5%, maybe. Dec 09 23:12:52 I wish I'd hurry up. lol Dec 09 23:12:56 Maybe 10%. I dunno. Dec 09 23:13:13 To be fair, a lot of what I've done is the hard work (setting up the foundations). So it might be higher than what I'm saying. Dec 09 23:13:22 ugh. is the standard file-copy in android really reading and writing streams? I know that's reasonably efficient, but really? `cp` is a thing on linux… Dec 09 23:13:52 hello, how can I change the text of the selected item in a spinner? my spinner is static and items are loaded from an xml file with android:entries Dec 09 23:14:10 Am I right in thinking that "material design" apps don't (at least by default) have gradient window backgrounds? Dec 09 23:14:14 Groxx you have to make sure cp is available but you could theoretically do it using Java.lang.runtime if you wanted Dec 09 23:14:19 Holo uses gradients by default (light or dark). Dec 09 23:14:49 *theoretically = should be able too Dec 09 23:15:01 why isn't there tab autocomplete for words like nicks Dec 09 23:15:07 lasserix: interesting link, I haven't checked the compiled output of proguard before (minus other people's APKs) Dec 09 23:15:42 lasserix: I have tab autocomplete. sounds like you have a meh client :P Dec 09 23:15:50 for all words? Dec 09 23:15:54 or some dictionary anyways? Dec 09 23:16:10 lasserix: That's up to your keyboard. Google's does it. Dec 09 23:16:11 ooh. that would be kinda interesting. Dec 09 23:16:20 actually ^ are you mobile? Dec 09 23:16:24 should be fairly simple to do with a trie and a dictionary Dec 09 23:16:38 no i would never use irc on mobile device Dec 09 23:16:46 I'm watching like a hawk. Dec 09 23:16:49 at least not w/o good speech recognition Dec 09 23:17:10 lasserix, nice link Dec 09 23:17:16 I'd imagine you could do it in OSX at least. benefit of having standardized, fairly rich text-controls everywhere, with custom ones being rare. Dec 09 23:17:30 or emacs Dec 09 23:17:53 well yeah. but at that point you might as well say "if I used another OS in my OS so I could get autocomplete..." Dec 09 23:18:09 hehe Dec 09 23:18:21 just would be nice for long words that i can't remember how to spell correctly Dec 09 23:18:45 yeah. it is a little odd that it's not a thing, since it's _everywhere_ on mobile Dec 09 23:20:26 that is part of the reason I like sublime text… it just autocompletes from open files. 99% of the time it's enough to save lots of keystrokes, and not misname a variable (in more loose languages). it would be nice to build that into everything. Dec 09 23:22:06 This is interesting: case ANDROID_TEST: prefix = "Android (on device) tests"; [...] case UNIT_TEST: prefix = "Unit tests"; [...] Dec 09 23:22:45 TacticalJoke: `cd android-studio-source && make && make install && profit` Dec 09 23:22:52 <3 sublime text Dec 09 23:23:23 && ??? && profit Dec 09 23:23:54 I can imagine lots of people switching to JVM unit testing after this and saying "Zomg, Android Studio is so amazing; you can run unit tests on the JVM". Dec 09 23:24:02 haha Dec 09 23:24:05 Like, yeah. Haven't been doing that for years in Eclipse or anything. Dec 09 23:24:16 Not years for me, but for some, I guess. Dec 09 23:25:08 Groxx: I wonder whether it's ready yet. Dec 09 23:25:14 It's hard for me to interpret these changesets. Dec 09 23:25:20 you can? Dec 09 23:25:27 :p Dec 09 23:25:46 pfn: They seem to be implementing it right now. This is the first changeset: https://android-review.googlesource.com/#/c/116880/ Dec 09 23:25:58 I mean you can imagine people doing that? Dec 09 23:25:59 I can't Dec 09 23:25:59 heh Dec 09 23:26:01 Oh. lol Dec 09 23:26:09 I rarely ever run tests in ide Dec 09 23:26:14 always in integration/ci servers Dec 09 23:26:44 sometimes i just let it spin in the background, but almost never in ide Dec 09 23:26:47 only if I need to debug Dec 09 23:26:51 hello. I'm trying to set up an onclicklistener for a listview Dec 09 23:26:55 and it works Dec 09 23:27:02 wow Dec 09 23:27:03 it works Dec 09 23:27:06 but Dec 09 23:27:07 * pfn amazed Dec 09 23:27:08 s1k3s: have you tried making it not work? :D Dec 09 23:27:12 but Dec 09 23:27:14 * Dec 09 23:27:17 It should be "on item click" or whatever. Dec 09 23:27:49 when an item is clicked on, an async task runs and does stuff in the background Dec 09 23:28:20 could you not have typed this in one sentence? Dec 09 23:28:21 but if I scroll through my list I get CalledFromWrongThreadException Dec 09 23:28:59 are you trying to change the UI in doInBackground? Dec 09 23:29:14 My old doctor would reply "Then stop scrolling through the list". Dec 09 23:29:32 Groxx, yes but the UI change is inside the runOnUiThread Dec 09 23:29:34 "Every time I stand up blood comes out of my eyes!" "Then stop standing up." Dec 09 23:29:37 Some doctors are great. Dec 09 23:30:06 Groxx, sorry no Dec 09 23:30:09 s1k3s: Maybe pastebin some stuff. Dec 09 23:30:15 no UI change happens Dec 09 23:30:25 TacticalJoke: are you going to medical doctors or someone with a PhD in another field? :/ Dec 09 23:30:25 I hate when I accidentally use my application context for theming and wondering wtf shit doesn't look right Dec 09 23:30:31 I think you're zigging when you should've zagged. Dec 09 23:30:41 lol bankai_au Dec 09 23:30:56 yeah, pastebin. stacktrace, and maybe doInBackground. Dec 09 23:31:11 TacticalJoke: https://www.youtube.com/watch?v=INKh-wTFwQE&list=PLSKUhDnoJjYmBXU_jtXFdQW9_dpH5Vb84#t=18 Dec 09 23:31:25 bankai_au, so what does it say fails imports? local classes? rebuild usually fixes that... Dec 09 23:31:31 Oh, I saw that. He talks about JVM unit testing. :) Dec 09 23:31:54 That guy seems too cool to be a programmer. Dec 09 23:31:56 pfn: change your API to require ContextThemeWrapper instead of Context? more declarative that a themeable thing is required, and magical compile-time safety Dec 09 23:32:02 Accent, everything. Dec 09 23:32:15 Groxx, not my api, like when using setTextAppearance Dec 09 23:32:17 pfn: problem is it compiles and runs fine, so i dunno wtf is going on. it can't find silly things like scala.collection Dec 09 23:33:12 s1k3s: look at the stack trace of the exception. It should tell you exactly where it is happening, so you can figure out what operation is causing it Dec 09 23:33:37 I am trying to write an application with ionic/cordova that scrapes a web page and displays it in a more mobile friendly way, but it isn't clear to me how to make http requests from mobile, can someone point me in the right direction? Dec 09 23:34:27 web scraping? really? :/ Dec 09 23:34:38 well that site doesn't have an api Dec 09 23:34:42 Can you use OkHttp with Cordova? Dec 09 23:35:14 let me see Dec 09 23:35:44 cordova have their own channel ... Dec 09 23:36:29 fair enough i will ask them Dec 09 23:36:45 Daxos: What if they change the web page significantly? Dec 09 23:37:19 then im screwed but like i said, the site doesn't have an api Dec 09 23:37:34 TacticalJoke: easy! You just update the regex you use to parse the HTML Dec 09 23:37:35 * JesusFreke ducks Dec 09 23:37:37 I guess, in the worst-case scenario, you could just show the original page. lol Dec 09 23:37:50 If regexes could parse HTML, that'd be awesome. Dec 09 23:37:54 Ohhhh, I found why my style wasn't working (+TacticalJoke). SDK version 21... i wasn't using values-v21/styles.xml. D'oh! Dec 09 23:41:00 D/OpenGLRenderer(2885): Render dirty regions requested: true Dec 09 23:41:06 Render those dirty regions Dec 09 23:42:08 hawt Dec 09 23:42:18 woo this is cool http://android.amberfog.com/?p=470 Dec 09 23:43:36 lasserix: yeah, the various reference types give me many horrible ideas :) some day I may make some of them. Dec 09 23:44:15 trying to move from eclipse to android studio, i can someone explain how to add an image to my drawables? It wont let me drop int into the /res/drawable folder in the IDE Dec 09 23:45:14 "They are in fact the only way to determine that." Dec 09 23:45:15 false. Dec 09 23:46:21 Does each layer in a layerlist require a redraw? ie 4 layers = 4xoverdraw? Dec 09 23:46:56 What’s the other way? Dec 09 23:47:41 do other reference types work in ReferenceQueue? Dec 09 23:47:46 yes Dec 09 23:47:51 ah, well there's the other way then Dec 09 23:48:47 two other ways, since there's two other reference types Dec 09 23:48:56 making PhantomReference a safer (more efficient?) form of for detecting GC Dec 09 23:49:01 also the statement is false because the reference queue *is* the way, not the PhantomReference Dec 09 23:49:51 they're pretty tightly paired though, you could probably argue that references are the way to detect it, not the queue. Dec 09 23:50:13 and be equally wrong, of course :) Dec 09 23:50:22 oh shit someone just dropped an asus zen watchin my lap! Dec 09 23:50:28 RUN! Dec 09 23:50:55 why’d you tell us? You fool, you’ve killed us all! Dec 09 23:52:34 bankai_au, never seen that kind of problem before Dec 09 23:53:22 Anyone here use protobuf-lite instead of protobuf? The jars for that don't seem to be in maven central anymore, do I need to build them myself? Dec 09 23:53:27 probably my stupid setup :P Dec 09 23:53:59 fuck yeah Dec 09 23:54:08 now got to figure out how to sideload my keyboard Dec 09 23:54:22 .length on an array returns an int right???? Dec 09 23:55:20 what else would it return Dec 09 23:55:55 lasserix: how's it look? I've been pretty disappointed with Wears so far Dec 09 23:56:30 pfn: a double which wouldnt make sense. my teacher gave me a practice proablem and i dditn read enough to see it was a type and supposed to be a % lol Dec 09 23:56:41 the zen watch looks beautiful Dec 09 23:56:49 one of the few smartwatches id actually wear Dec 09 23:56:55 i thought he was dividing an int counter by lenth of an array for some reason Dec 09 23:57:01 now just got to get a jaguar and ill be set Dec 09 23:57:12 lasserix: i just got a g watch for $80 Dec 09 23:57:37 if i wear it cool, if not hopefully i will be able to develope for it Dec 09 23:58:01 DadFoundMy: my dad has been bugging me for like 2 months straight to develop this keyboard idea for smartwatches, which i did so early christmas present to work on :) Dec 09 23:58:38 lasserix: nice. unfortunetly i ordered mine from groupon so it could be here tomrow or it could be here net month :/ Dec 09 23:58:59 i have an idea for a app that i really want to do Dec 09 23:59:02 then do it Dec 09 23:59:08 i think people would actually use it too Dec 09 23:59:24 pfn: waiting for it to get here so i can get a feel for the device. i havent even used one yet Dec 10 00:29:19 this is SO frustrating. Dec 10 00:29:54 my alarm tries accessing the service using the following intent: new Intent(context, RelayService.class) Dec 10 00:30:12 the service is started with this same intent Dec 10 00:30:24 the context is the same object Dec 10 00:30:37 the RelayService is the same object Dec 10 00:31:00 and by the same object i mean it's the same object IN MEMORY Dec 10 00:31:16 yet peekService just CAN'T find it. Dec 10 00:38:09 Decided to finally take the Android Studio/Gradle plunge after working with Eclipse and ANT for the past 5 years. What are the best resources (tutorials/guides/videos) you can recommend to make this more bearable? Dec 10 00:43:29 surf2b1: I wish I knew. Dec 10 00:43:33 chimay Dec 10 00:43:45 heh. and good coffee :) Dec 10 00:43:53 ah you know the reference? Dec 10 00:44:06 yeah that is great stuff, definalty want to visit the monastary/brew house one day Dec 10 00:44:19 I think so? I lean towards stouts personally though Dec 10 00:44:51 surf2b1: if money is no object, I think commonsware's book covers gradle to some moderate degree, though I haven't read that part of it yet. and it's a useful resource in other ways too. Dec 10 00:45:17 I certainly hope it's not the best though Dec 10 00:45:30 me too.. a book would be my last option Dec 10 00:45:58 surf2b1: nice gradle / as http://www.jayway.com/2013/02/26/using-gradle-for-building-android-applications/ Dec 10 00:48:09 I think what may be more of a pain is switching shortcuts. My brain has eclipse shortcuts ingrained in it. Anyone know if there is a way to get your formatter/cleanup preferences imported into AS? Dec 10 00:48:45 AS has equivalents for most of them, and there's also a way to switch to Eclipse shortcuts :) Dec 10 00:48:50 as for importing, dunno Dec 10 00:49:11 how do you guys deal with overlapping toasts? Dec 10 00:49:20 DadFoundMy: I use both sides of the toaster Dec 10 00:49:20 don't overlap them Dec 10 00:49:27 easiest solution ever :p Dec 10 00:49:53 there are a few libraries out there for toast-like UIs that move out of the way of each other :) don't use toasts, basically. Dec 10 00:49:57 DadFoundMy: you can keep a reference to the toast, then do if (toast != null) toast.cancel() Dec 10 00:50:12 pfn: :( but lets say i hit one button that will trigger a toast, and than another button that triggers a toast? or are you saying not to create situations like this? Dec 10 00:50:28 toast is bad ui Dec 10 00:50:29 don't do it Dec 10 00:50:49 if you run into a situation where you overlap toasts and you care about them, you're doing it wrong Dec 10 00:50:53 pfn: this isnt for a app i am making, still learning at this point and just extending one of the apps the book made Dec 10 00:51:05 then you've just learned that it's wrong Dec 10 00:51:12 pfn: yep thanks Dec 10 00:51:25 DadFoundMy: Toast t = Toast.makeText(...); t.setGravity(Gravity.Top, 0, 100); t.show(); Dec 10 00:51:35 if you want to mess with them you can do this Dec 10 00:51:36 im having trouble using my nexus7 with android studio. when i click the attach debugger button, i do see the device, but the ok button is greyed out Dec 10 00:51:48 yeah, if you're desperate to use toasts, gravity is the way Dec 10 00:52:06 day make sure you hit okay when it prompts about the RSA key on the device when you connect it for the first time Dec 10 00:52:09 lasserix: whats that do? put a new toast in a new position? Dec 10 00:52:19 Groxx: How do you switch to Eclipse shortcuts? Sounds great Dec 10 00:52:40 lasserix: there are non. Besides i activated the 'allow this pc always' Dec 10 00:52:56 DadFoundMy: yeah arg1 aligns it relative to window, arg2 offset x ( + is left - is right), arg 3 is offset y ( + is down , - i is up ) Dec 10 00:53:02 maybe its a rights issue? :/ Dec 10 00:53:02 DadFoundMy: it can, yeah. you can set offsets from the top/left too, so if you keep track of things and adjust for the device size, you can not-overlay them. or you can find a toast-like library and let it do that for you. Dec 10 00:53:09 day: what USB connection mode is the n7 running? Dec 10 00:53:21 neato thanks guys Dec 10 00:53:24 surf2b1: I think ctrl-` ? a brief google failed me, but that's sticking in my memory for some reason Dec 10 00:53:28 lasserix: usb debug Dec 10 00:53:37 no i mean Dec 10 00:53:39 connected as Dec 10 00:53:40 lasserix: it works fine with eclipse Dec 10 00:53:42 camera MTP etc Dec 10 00:53:49 oh sec. Dec 10 00:53:56 for whatever reason my n7 only works when conected as a camera Dec 10 00:55:00 Yeah, that happens sometimes Dec 10 00:55:08 lasserix: in general or only with android studio? Dec 10 00:55:09 Hi, Dec 10 00:55:13 eclipse has no issues :/ Dec 10 00:55:24 anyone here using AdMob ? Dec 10 00:55:43 day in general but you might try Dec 10 00:55:44 aliasc, a little bit Dec 10 00:55:53 day: probably in general, it's more of an ADB-related problem than anything Dec 10 00:56:04 I'm having an issue with form of payment and i really need an advice Dec 10 00:56:15 restart your adb Dec 10 00:56:48 can anyone help me Dec 10 00:56:49 now it works :X Dec 10 00:56:56 aliasc, ah sorry, haven't gotten to anything involving payments yet :p Dec 10 00:57:00 i had to click the little 'bug' item first Dec 10 00:57:30 :/ Dec 10 01:08:02 lasserix: Windows cannot mount a device as MTP and anything else. It can mount a device as PTP and anything else. Dec 10 01:19:07 the problem with BroadcastRecevier i talked about recently wasn't resolved, so i posted a question on SO Dec 10 01:19:11 http://stackoverflow.com/questions/27391858/peekservice-returns-null-even-though-the-service-is-running-if-the-service-is Dec 10 01:19:23 pls halp Dec 10 02:01:48 JesusFreke: oh. i see now that peekService doesn't work because there's no IBinder object. but then using startService() doesn't make much sense as i don't want to start the service. Is there someting else i can use besides shared data? Dec 10 02:02:27 squirrel: what is it that you're wanting to do? Dec 10 02:03:15 in particular, does it make sense to use bindService instead of startService to start the service? Dec 10 02:03:22 JesusFreke: i'm just sending syncing request at regular interval while the service is connected Dec 10 02:03:25 or maybe even use bindService in addition to startService Dec 10 02:04:11 activity uses both startService and bindService, the service is supposed to be running always until stopped by user Dec 10 02:05:00 broadcast receiver simply checks if the service is up and connected. if it is connect it sends sync request, if not, it cancels itself Dec 10 02:06:03 sdk 21 update Dec 10 02:06:05 squirrel: I would tentatively suggest that you may need to rebind to the service after the service dies Dec 10 02:06:30 JesusFreke: uh but BroadcastReceiver cannot bind? Dec 10 02:06:42 in the activity Dec 10 02:06:48 there's no activity Dec 10 02:06:54 not yet Dec 10 02:07:18 the service is restarted by the system, but the system doesn't restart the activities Dec 10 02:07:19 "squirell: activity uses both startService and bindService," Dec 10 02:07:24 ^ I thought you said there was an activity :) Dec 10 02:08:11 but yeah, I see what you mean Dec 10 02:08:46 squirrel: where are you registering the broadcast receiver? Dec 10 02:09:06 oh, it's an alarm receiver Dec 10 02:09:17 JesusFreke: in the service, right after successful connection Dec 10 02:09:51 squirrel are you trying to bind to a service from a broadcast receiver ? Dec 10 02:10:03 g00s: nope Dec 10 02:10:09 ok Dec 10 02:10:46 Are they planning to release an early 1.1? They updated the version tag to "1.1 Preview" the other day: https://android-review.googlesource.com/#/c/118128/1 Dec 10 02:10:54 i hate android docs. really, peekService's docs should mention that it can return null if there's no binder. Dec 10 02:11:03 squirrel: iirc, the lifetime of a dynamically registered broadcast receiver like that is tied to the service that it was registered with. Dec 10 02:11:06 squirrel: They like to keep you guessing. :D Dec 10 02:11:51 squirrel: so, I would suggest storing a reference to the service in your BroadcastReceiver object Dec 10 02:12:15 JesusFreke: nope, i see that it fires when there's no process (in which case it's likely to (inadvertedly) restart the service) Dec 10 02:12:23 because you know the receiver won't receive anything if the service isn't running, since its lifetime is tied to that of the service Dec 10 02:13:01 This is the one to watch: https://android-review.googlesource.com/#/q/branch:studio-1.1-dev Dec 10 02:13:23 TacticalJoke, well, it's not a 1.0-preview anymore since 1.0 is out :p Dec 10 02:13:58 JesusFreke: that's that static variable way? Dec 10 02:13:58 squirrel: well, you're using an explicit intent, which can't be used with a dynamically registered receiver Dec 10 02:14:04 not static, no. Dec 10 02:14:51 hum. but uh.. service only references alarm receiver class? Dec 10 02:47:59 I love tiny text. Dec 10 02:48:01 It's so cute. Dec 10 02:48:07 And non-annoying. Dec 10 02:49:18 tiny text is annoyiong, too hard to read Dec 10 02:50:01 I'll have to add a preference here. I'll make the default way bigger, I think. Dec 10 02:50:11 I just love tiny, out-of-the-way text (when the text isn't that important). Dec 10 02:52:54 Right now, on a 4-inch screen, I can read five or six small Reddit comments. Dec 10 02:53:08 Makes it easy to get an overview of the discussion without having to collapse anything. Dec 10 02:55:48 TacticalJoke: are you one of those people who reduce the system font size? Dec 10 02:56:55 Nah. :) Just for Reddit. Dec 10 02:57:05 Reddit seems special in this regard, IMO. Dec 10 02:57:17 There's so much content to display on such a (potentially) small screen. Dec 10 02:57:48 Some Reddit clients use large fonts, with the result that you can see maybe three comments at a time on a small screen. Dec 10 02:57:52 That just makes it hard to follow a discussion. Dec 10 02:58:02 Still, I'll let users have that option. Dec 10 02:58:18 don't you love it how on certain web pages in mobile browsers some pieces of text seem to acquire arbitrary sizes Dec 10 02:58:27 Yeah, Chrome is pretty bad for that, IME> Dec 10 02:58:29 .* Dec 10 02:58:43 yeah, for anything reading-heavy I do kinda like having the option. Dec 10 02:58:46 in your epinion? Dec 10 02:58:46 Especially for discussion forums (and, I think, Reddit). Dec 10 02:58:51 In my experience. Dec 10 02:59:04 yeah **** ENDING LOGGING AT Wed Dec 10 02:59:59 2014