**** BEGIN LOGGING AT Fri Apr 17 02:59:58 2015 Apr 17 03:05:44 I'm having problems with a clickable item in a ListView. I've set an OnClickListener on the item during getView(), but instead of immediately responding, click events are queued up until the ListView is updated in one way or the other (i.e. scroll). Then they are fired all at once. Any ideas why? Apr 17 03:07:33 What does the setOnClickListener code look like? Apr 17 03:11:14 TacticalJoke, it's never even called Apr 17 03:11:22 TacticalJoke, before they're all triggered at once Apr 17 03:11:40 TacticalJoke, I verified with a debugger and breakpoints that the code inside the onclicklistener isn't called before everything is called at the same time Apr 17 03:12:16 Yeah. What does the *set*OnClickListener code look like. Apr 17 03:12:26 IOW, the Adapter.getView override. Apr 17 03:13:08 TacticalJoke, oh, sorry, misread Apr 17 03:13:46 Hmm, good point. It is a bit convoluted as I'm using a custom view. I'll replace it with a simple TextView and onClick and see what happens Apr 17 03:13:53 <_genuser_> IOW? learnted a new acronym today. Apr 17 03:14:15 <_genuser_> s/learnted/learned/ (apprently forgot spelling while learning other stuff....) Apr 17 03:14:33 I learned one the other day: 'ctfu'. Means 'cracking the f*** up'. Apr 17 03:14:39 But it's so hard not to read 'shut the f*** up'. :D Apr 17 03:14:47 "Chut" or something. Apr 17 03:14:50 ugh; i'm cursed. i managed to create a gradle build that works fine from CLI but breaks AS Apr 17 03:16:34 sad day g00s. Apr 17 03:16:35 If it's an AS bug they might respond quickly. :) I've had good results with them. Apr 17 03:16:45 :) Apr 17 03:17:21 TacticalJoke i dont even know what the problem is; basically everything stopped working for me Apr 17 03:17:31 error markers everywhere, deps not resolved Apr 17 03:17:35 TacticalJoke, yeah, I replaced the code with a simple TextView, and clicks are responded to correctly. Thanks. Hmm, now to figure out why... Apr 17 03:18:46 Hmm, for a sort of compound view, how does the child get the click event? Apr 17 03:18:55 wow, that was a vague question Apr 17 03:24:07 OK, what I'm doing right now is inflating a layout in a custom view, then I have a method called setActionButtonOnClickListener() which basically just forwards the listener to an 'action button' within this custom view Apr 17 03:24:16 Is there any reason this shouldn't work correctly...? Apr 17 03:24:47 <_genuser_> so when using android.R.layout.simple_list_item_1 with ArrayAdapter, you can't set the foreground color, eh? Apr 17 03:25:43 _genuser_, you can if you override getView Apr 17 03:26:22 or copy&paste the layout into your project Apr 17 03:26:32 AndreasL: You might need to show code. Apr 17 03:27:35 TacticalJoke, hmm, yeah, I'd have to make a more minimal example then I think Apr 17 03:27:54 ah, onInterceptedTouchEvent is called Apr 17 03:28:00 so I guess the parent is not forwarding the click event correctly oO Apr 17 03:31:31 <_genuser_> iprime: I see. I just hopeing to save all the hassle. but I just changed the listview background to black. since it's a proof of concept project Apr 17 03:31:40 <_genuser_> thanks for the idea. :) Apr 17 03:32:23 oh Apr 17 03:32:42 themes..) Apr 17 03:33:33 <_genuser_> yeah, I was like, do I spend time making it look normal, or do I Apr 17 03:33:44 <_genuser_> just proof it out and put it in my main proj which has all teh UI stuff done. Apr 17 03:43:01 Hey Apr 17 03:45:44 <_genuser_> dalvikvm Could not find class 'java.nio.file.InvalidPathException' Apr 17 03:46:23 <_genuser_> anybody got any idea why dalvik can't find that class? My eclipse project auto pulls in java.nio.file.InvalidPathException. doesn't complain when generated apk either. Apr 17 03:46:33 <_genuser_> but logs error while running on device Apr 17 03:48:51 boy I wish I could get a decent treeview control Apr 17 03:49:26 kendo has one, but its $$ and thats the only contorl I'd use Apr 17 03:49:37 shiet Apr 17 03:49:39 wrong channel Apr 17 04:00:35 <_genuser_> stupid Lint errors. pissing me off. every time I hit save, some lint error pops up. Apr 17 04:02:01 _genuser_: Learn to respect lint errors and treat them for what they are: an affirmation that your code could suck less. Apr 17 04:04:41 <_genuser_> CedricBeust: actually, this happend after an upgrade to ADT plugin and installation of API 21. which didn't support eclipse. So I removed API 21, re-installed 18 and the error appeared. Apr 17 04:04:56 Is the error justified? Apr 17 04:05:10 <_genuser_> every time I hit save, it happens. I'm googling and seeing the others are having this issue but none of the reported solutions have fixed it for me. Apr 17 04:05:19 <_genuser_> well, the error report is useless. Apr 17 04:05:31 <_genuser_> 'running android lint' has encountered a problem. failed java.lang.nullpointerexception Apr 17 04:06:00 so not Lint notifications, Lint running is crashing? Apr 17 04:07:08 That looks like a crash indeed, not a lint error on your code Apr 17 04:07:37 <_genuser_> http://imgur.com/THKOAPk Apr 17 04:08:09 Time to hit the JetBrain tracker Apr 17 04:08:11 <_genuser_> yeah, I read some people just disabled lint. I don't want to do that because then it would actually introduce bugs in my app Apr 17 04:08:28 Good thinking Apr 17 04:08:56 Oh, the evil NullPointer exception Apr 17 04:08:57 ;o Apr 17 04:09:00 epic Apr 17 04:09:16 looks like an eclipse error, not an idea/as error Apr 17 04:09:17 _genuser_: Switch to Android Studio! Apr 17 04:09:26 indeed Apr 17 04:09:26 I remember that exception after upgrading. Apr 17 04:09:33 You won't have that issue with AS. Apr 17 04:09:45 <_genuser_> TacticalJoke: I have for some projects, but it's really slow and I can't run anything else or it jsut brings the computer to it's knees. Apr 17 04:09:56 To fix that Eclipse issue I had to re-download Eclipse (Luna) and re-download ADT. Apr 17 04:10:05 AFAIR. Apr 17 04:10:08 using which version of AS Apr 17 04:10:13 <_genuser_> eclipse is fast (can't believe that would ever be said about eclipse), but just this one problem. every time an android java file is changed and saved, it pops up with this error. Apr 17 04:10:33 _genuser_: Are you using stand-alone Eclipse (IOW, not the bundle). Apr 17 04:10:37 The bundle is really bad. Apr 17 04:10:57 <_genuser_> TacticalJoke: that's not gonna be too long. I think I'll just re-download the eclipse and ADT combo. actually I still have the zips, I'll just see if I can re-extract eclipse. Apr 17 04:11:15 <_genuser_> standalone, I had it for some java projects before I start android dev. Apr 17 04:11:31 <_genuser_> whatitis-: not sure about which version of AS. next time I run it, I'll note that down. Apr 17 04:12:47 do you know atleast passed 1.1.0? Apr 17 04:13:00 <_genuser_> not sure. tbh. Apr 17 04:13:37 <_genuser_> soudns professional, no? Apr 17 04:13:38 <_genuser_> :) Apr 17 04:15:46 i miss eclipse Apr 17 04:15:53 why Apr 17 04:15:56 g00s: Me too Apr 17 04:16:02 <_genuser_> me three Apr 17 04:16:06 not me Apr 17 04:16:07 <_genuser_> altho, I can't completely switched over yet. Apr 17 04:17:38 * pfnQ doesn't miss eclipse Apr 17 04:17:50 I hated eclipse so much, I just write code in vim Apr 17 04:17:56 wrote Apr 17 04:18:11 I'd rather not use an ide than use eclipse Apr 17 04:18:20 i guess I might as well post this here: my nexus 6 got hardbricked somehow - http://forum.xda-developers.com/nexus-6/help/android-os-gone-partition-empty-t3082834. If anyone can help I'd really appreciate it! Apr 17 04:18:20 <_genuser_> I disliked it quite a bit. but overtime got used to it's uniqueness. Apr 17 04:18:32 It had it's time, but don't miss it Apr 17 04:18:44 ethanmad: #android/#android-root :) Apr 17 04:18:45 is the vim intellij plugin any good? Apr 17 04:18:46 intellij is the whole reason I started using an ide again Apr 17 04:18:48 <_genuser_> however, once I switched to AS, I appreciate eclispe for the beautiful gazelle of a fast runner that it appears to be in comparison. Apr 17 04:18:54 ethanmad, it's excellent Apr 17 04:19:21 pfnQ: i'll have to turn it on. it has more than basic movement commands? Apr 17 04:19:39 JesusFreke: i'll try there, thanks Apr 17 04:19:50 ethanmad, yes Apr 17 04:20:20 like right now. i look at the project tree , everything seems fine. if i open up any file, its filled with red error markers. i think the integration between AS and gradle is much more brittle / fickle then i thought it would be Apr 17 04:20:20 IDEA is a great IDE but I think Eclipse outshines it in a few critical areas. Which I thought the JetBrains would have caught up with in all these years but never did Apr 17 04:20:49 <_genuser_> purely speaking, I think I've always appreciate microsoft IDEs. super fast and non of the clutter. Apr 17 04:21:05 <_genuser_> but I've heard others saying the opposite about microsoft IDEs. so I suppose it's a matter of opinion. Apr 17 04:21:05 One thing I hate is when I make a type, hit Run, and then have to wait for Gradle to fail the build. Apr 17 04:21:12 I'd expect the build not to even start. Apr 17 04:21:15 typo* Apr 17 04:21:19 CedricBeust: what would you say those critical issues are? Apr 17 04:21:33 CedricBeust, only thing I remotely like better about eclipse was the continuous compilation Apr 17 04:21:37 I don't really miss Eclipse, though. Well, I miss some parts. Apr 17 04:21:38 * _genuser_ speaks for CedricBeust Apr 17 04:21:41 I miss the simple tool windows. Apr 17 04:21:45 <_genuser_> one critical issue is that it doesn't suck as much, LOL. Apr 17 04:21:49 i skipped eclipse and used intellij when i wrote plain java stuff Apr 17 04:21:55 And the immediate and non-questioning refactoring tools. Apr 17 04:22:04 ethanmad: 1) no incremental compiling 2) no Problems view 3) sometimes IDEA is doing stuff and I have no idea what 4) refactor dialogs are intrusive and not as straightforward as Eclipse's Apr 17 04:22:09 just a few off the top of my head Apr 17 04:22:11 CedricBeust, but continuous compilation lead to so many noob problems Apr 17 04:22:15 <_genuser_> I nkow netbeans and intellij were big back in early - mid 2000s and it was nerdier to use these over eclipse. Apr 17 04:22:20 pfnQ: How so? Apr 17 04:22:30 i dont know what the first two are, but i feel those second two Apr 17 04:22:33 Yeah, I agree with those, CedricBeust. Apr 17 04:22:40 CedricBeust, it generates legitimate class files on compilation error Apr 17 04:22:43 I have a longer list, going to blog about it one day Apr 17 04:23:00 <_genuser_> CedricBeust: another one, is that it's doing so many things and reporting them in so many different places. you never know wtf is going on. Apr 17 04:23:02 I'm a bit hesitant about it since I really respect the JetBrains team to the sky Apr 17 04:23:02 chainfire if you're here, could you take a glimpse at my post? you might have some insight Apr 17 04:23:11 eclipse's workbench panels seemed better behaved too Apr 17 04:23:16 _genuser_: I do think AS is way better, though. Apr 17 04:23:20 For Android development. Apr 17 04:23:22 i'm always hiding / minimizing things in AS Apr 17 04:23:24 _genuser_: You should try to use it. Apr 17 04:23:31 CedricBeust: you should definitely make the post. maybe they'll see it and implement the suggestions Apr 17 04:23:34 g00s: Yeah, AS's tool windows are a pain in general. Apr 17 04:23:40 <_genuser_> TacticalJoke: I have started using it for one of my proof-of-concept projects. So I'm getting used to it. Apr 17 04:23:44 TacticalJoke: The Gradle support is better in AS than ADT sure, but that can be easily fixed if they invest resources to bring ADT up to par Apr 17 04:24:16 <_genuser_> I dislike when AS can't auto pull in crap by just clicking on the friggin popup that gives you a link. you have to click 2 different places. Apr 17 04:24:24 A cool thing about IntelliJ is the Ctrl+N thing. So handy. Apr 17 04:24:25 I'll make a bold prediction: within a couple of years, Google will resume work on ADT. I don't think they'll drop AS but both AS and ADT will be equally supported by GOogle Apr 17 04:24:27 <_genuser_> it seems to resolve references slower, or not at all sometimes. Apr 17 04:24:28 (Find class.) Apr 17 04:24:37 CedricBeust: ;o Apr 17 04:24:42 TacticalJoke: Yes, I like Ctrl-n. Terrible keybinding but great functionality Apr 17 04:24:45 That is bold. :D Apr 17 04:24:47 why do you think that? Apr 17 04:25:05 <_genuser_> I think AS team put in sooooooooooooooo many features that most of them can never be learned/memorized by one dev and it only adds to runtime speed degradation. Apr 17 04:25:29 Yeah, IntelliJ does have a lot of stuff I doubt many people use. Apr 17 04:25:38 For example, Ctrl+Shift+Up/Down. Does anyone really use that? Apr 17 04:25:42 all they needed to do, was get this stuff working reliably Apr 17 04:26:01 <_genuser_> thre's also useless stuff. in AS. Apr 17 04:26:02 that's pretty nice for moving a block of code around Apr 17 04:26:06 all day i've been sitting here wondering why 'Fragment' is undefined in AS Apr 17 04:26:08 I could be wrong about that -- it might be handy to some -- but it just feels like yet another keyboard shortcut to remember, to me. Apr 17 04:26:22 i doubt something like that really slows it down Apr 17 04:26:31 <_genuser_> such as showing the actual icon image on the left if a lines references an image. such as: @drawable/my_icon Apr 17 04:26:34 something to remember if it's useful to you Apr 17 04:26:45 i really like that it shows icons and colors Apr 17 04:26:51 CedricBeust: Did you see JB's new Kotlin web IDE? I was so impressed. Apr 17 04:26:57 <_genuser_> if it was fast, it would be great. Apr 17 04:27:02 I once made a code editor for Windows, and their web code editor is so much better. Apr 17 04:27:06 TacticalJoke: I surely did, it's great how much they are investing into that Apr 17 04:27:07 <_genuser_> since it's slow, I would like to turn turn off as much eye-candy as possible. Apr 17 04:27:14 <_genuser_> it's like a failed Vista attempt. Apr 17 04:27:15 _genuser_, auto pull in stuff? alt enter Apr 17 04:27:19 or. ctrl enter Apr 17 04:27:21 Yeah. Apr 17 04:27:27 _genuser_: what are you running it on? Apr 17 04:27:28 works fine and use it all the time Apr 17 04:27:36 <_genuser_> yeah, but then it gives you a pop. lot of clicks/types. Apr 17 04:27:45 <_genuser_> in eclipse, mouseover, select option. one click. *BAM* Apr 17 04:28:01 Eclipse's Ctrl+1 is way better than AS's Alt+Enter. Apr 17 04:28:04 AS actually runs surprisingly well on my 2009 mbp that can't even open iterm without taking a year Apr 17 04:28:05 no it doesn't, hit enter Apr 17 04:28:09 done Apr 17 04:28:33 <_genuser_> alt-enter, popup, you need second option, you hit enter. you're now going to spending more time correcting that. Apr 17 04:28:52 "The main advantage of the Android NDK is the ability to port legacy code to Android without having to rewrite it all in Java. Though natively compiled code tends to perform better than Java, using the NDK with the intent to improve performance is generally not recommended due to the added complexity and overhead involved in invoking native code." Apr 17 04:28:59 I just hit enter Apr 17 04:29:06 dunno what you're doing wrong Apr 17 04:29:10 "using the NDK with the intent to improve performance is generally not recommended" -s this bit very true? Apr 17 04:29:12 one thing that really bugs me about AS is some keyboard shortcuts only work when the tooltip suggesting the shortcut is showing Apr 17 04:29:19 (for a game/engine design) Apr 17 04:29:41 <_genuser_> alt-enter gives you a popup. if the pop up has mutiple choices, you have to uparrow, downarrow. not sure which part of that is being solved by you by "just hitting enter". Apr 17 04:29:46 i want to build a game engine for android... is it worth using the ndk? Apr 17 04:29:50 njcomsec, generally not, not specifically not Apr 17 04:30:06 ndk seems abandoned, no? Apr 17 04:30:11 games and engines aren't the general case Apr 17 04:30:14 for a couple of releases Apr 17 04:30:26 _genuser_, it always gives import as the first optiom Apr 17 04:30:28 <_genuser_> TacticalJoke: extracting eclipse again. :) kinda excited to think that this lint problem might be solved by just that. :) Apr 17 04:30:33 ethanmad: ndk's not abandoned, no Apr 17 04:31:05 <_genuser_> pfnQ: I think you're just arguing a point to argue it. eclipse mouseoever gives you a popup with 20 options. you can just click on whichever one is needed. you may not necessarily need to auto import. Apr 17 04:31:15 JesusFreke: it's just not implemented into AS, then Apr 17 04:31:21 <_genuser_> you may need to create teh missing function definition. You may need to use many of the other options. Apr 17 04:31:29 <_genuser_> but I think you're just arguing a point to argue it. Apr 17 04:31:38 _genuser_, I don't see you're point, you're using the mouse, already a huge productivity fail Apr 17 04:31:58 ethanmad: right Apr 17 04:32:24 <_genuser_> ah, lose a point, so create an unrelated argument. Apr 17 04:32:50 <_genuser_> I don't mind typing all the crap in, using ctrl+1 for when needed, and then just using to mouse to handle the rest of the crap. Apr 17 04:32:51 unrelated? Apr 17 04:33:01 <_genuser_> it's not really a productivity fail, as opposed to digging thru menus. Apr 17 04:33:10 were talking ergonomics Apr 17 04:33:22 there is no digging Apr 17 04:33:31 <_genuser_> sure, but many people swear keyboard only is faster, and other swear keyboard/mouse combo is faster for them. Apr 17 04:33:39 but whatever, keep using eclipse Apr 17 04:33:51 <_genuser_> this is subjective and hence going to take the eventual form of, this is better, no this is better. Apr 17 04:33:57 <_genuser_> and I don't have time for that. so good lukc. Apr 17 04:34:16 TacticalJoke: alt-enter is indeed one of my reasons where eclipse is superior Apr 17 04:34:40 do i remember correctly google offers some place for game scores for my android games. and it integrate with google+ somehow Apr 17 04:34:56 njcomsec, play services Apr 17 04:35:13 are they all free to use? without a fee Apr 17 04:35:21 yes Apr 17 04:35:24 cool Apr 17 04:37:59 <_genuser_> CedricBeust: you too? Apr 17 04:38:55 Hello! So I'm trying to get into my phone, the screen is compleatly non functional, and adb is disabled, but i have in fastboot rn. It's a locked bootloader. I'm just trying to get some pictures off it before returning it. Is this at all possible? Apr 17 04:39:18 Anyone know why i'm seeing 100's of Macintosh sessions in the Analytics for my Android app? Apr 17 04:40:08 JulianRosser could be spam Apr 17 04:42:42 improv32: you may be able to retrieve them with adb Apr 17 04:43:04 improv32: #android-root :) Apr 17 04:43:16 improv32: this might be all you need: http://stackoverflow.com/questions/8650407/how-to-copy-selected-files-from-android-with-adb-pull Apr 17 04:43:26 ethanmad: I usually have usb debug enabled, but it isnt showing on adb Apr 17 04:43:34 JesusFreke: Thanks, ill try there :) Apr 17 04:44:55 CedricBeust yeah, its kinda amazing there is no Problems view Apr 17 04:45:09 g00s: This one annoys me on a daily basis Apr 17 04:48:54 oh boy, lint found 757 issues. better get to it Apr 17 04:49:38 i think my problems are related to this: in project structure dialog, compile sdk version -> unrecognized value Apr 17 04:50:42 <_genuser_> agreed, on teh problems view. it's nice to see that especially incrementally. Apr 17 04:51:31 i felt more productive with eclipse because there was just far more real-time feedback Apr 17 04:54:28 <_genuser_> alright, let's see how a second instance of eclipse handles this lint issue. Apr 17 04:55:16 you has that much ram? Apr 17 04:55:55 <_genuser_> Ashiren: 8GB. if it works, I'll close the first instance. :) Apr 17 04:56:12 <_genuser_> I'm thinking I really should just move to 32GB one shot since the mobo can handle it. and while I'm at it, move to SSD drive. Apr 17 04:56:35 no SSD? you poor thing Apr 17 04:57:04 <_genuser_> when I was first thinking about it, the "don't use SSD, the overuse will kill it" mentality was prevalent. Apr 17 04:57:16 <_genuser_> now everyone uses SSD for their main OS drive, and they've improved. Apr 17 04:57:26 <_genuser_> heh, I'm still dragging this 10yo drive Apr 17 04:57:29 eeyup Apr 17 04:57:33 and they finally fairly cheap Apr 17 04:57:46 derp derp derp Apr 17 04:57:49 my computer cold boots in 5 seconds. so nice Apr 17 04:58:04 <_genuser_> yeah, also I don't need a really big one. a 250G would be fine. Apr 17 04:58:04 ethanmad: Must be Windows :) Apr 17 04:58:10 i feel like writting a wrapper for exoplayer since the demo is kind of convulted Apr 17 04:58:11 <_genuser_> 500 GB would be nicer tho. Apr 17 04:58:22 CedricBeust: sarcasm? of course it's not Apr 17 04:58:32 My Windows cold boots in <5sec Apr 17 04:58:39 really? Apr 17 04:58:47 No sarcasm, I'm a big Windows fan Apr 17 04:58:49 <_genuser_> my windows 8 tablet cold boots in about 5. Apr 17 04:58:59 I'm on ubuntu. i could never get windows to boot so quickly Apr 17 04:59:02 I'm typing this on a Windows laptop Apr 17 04:59:31 <_genuser_> yeah, my main workhorse is also windows. Apr 17 04:59:39 Mac has done some decent progress in boot times, about the same I'd say. But Mac OS is terrible overall these days Apr 17 05:00:05 yeah osx gets slower with every update. it's a shame. Apr 17 05:00:10 yup Apr 17 05:00:27 more features, but I feel like it's intentionally not optomized Apr 17 05:00:37 so that it only runs well on new hardware. Apr 17 05:00:42 hello, is any of you familair with cell broadcast functionality? Apr 17 05:01:24 Anyone see? http://superpowered.com/androidaudiopathlatency/#axzz3XXW6EMrs Apr 17 05:02:08 CedricBeust what windows laptop do you have ? Apr 17 05:02:40 hey, i'm in the command prompt trying to fiddle with my sqlite database Apr 17 05:02:41 i need to upgrade this summer, so I'm curious too Apr 17 05:02:46 what does this mean ...> Apr 17 05:02:54 i can't do anything from there Apr 17 05:03:03 > means it's waiting for input Apr 17 05:03:05 Pwnies: "help" Apr 17 05:03:05 :) Apr 17 05:03:13 Pwnies: why not use gooey browser? Apr 17 05:03:21 or at least python Apr 17 05:03:26 i typed in "help" and ".help" Apr 17 05:03:41 i'm a cmd prompt noob, i know no other way :p Apr 17 05:03:52 Ctrl+C will get you out of the program, if that's what you want Apr 17 05:03:54 <_genuser_> I'm giddy with excitingmentisness Apr 17 05:04:12 i just want to use some sqlite functions to check my db Apr 17 05:04:58 i'm not familiar with sql dbs but i can probably help with general cli questions... as I said, > typically means waiting for input Apr 17 05:05:33 i'm typing in cd .. Apr 17 05:05:35 back Apr 17 05:05:38 nothing's working Apr 17 05:05:46 D: Apr 17 05:05:54 do you have to close quotes or parens? Apr 17 05:06:07 don't think so Apr 17 05:06:27 try closing (Ctrl+c) then doing it again Apr 17 05:06:36 unless that'll backtrack you too much Apr 17 05:07:08 i did that before, i had to get to the directory again which took a couple minutes Apr 17 05:07:28 hmm... i guess that's all i got Apr 17 05:07:40 ; Apr 17 05:07:55 terminate the line in sqlite3 Apr 17 05:07:58 CedricBeust: what laptop do you have? Apr 17 05:08:12 what do you mean pfnq? Apr 17 05:08:18 ; Apr 17 05:08:19 It's a gaming laptop, so ugly, heavy, but hell of a workhorse Apr 17 05:08:21 enter a semicolon Apr 17 05:08:32 ohhh Apr 17 05:08:33 sweet Apr 17 05:08:33 CedricBeust: oh, opposite of what i want. Apr 17 05:08:34 fixed it Apr 17 05:08:35 that's how you terminate a statement in most sql interp Apr 17 05:08:51 Pwnies, learn some sql.... Apr 17 05:09:09 easier said than done pfnq :p Apr 17 05:09:17 but i'll definitely try Apr 17 05:10:14 i'll probably get the new cb pixel, some other cb, or a mac. all i really need is command line so i can ssh into something more powerful, but having the power locally is even better so i can run AS Apr 17 05:12:27 pfn did you undergo mild radioactive exposure? Apr 17 05:12:32 *pfnQ Apr 17 05:13:03 hm, starting to come together - eckel's book is 'atomic scala' Apr 17 05:13:07 lasserix i think you are on to something Apr 17 05:13:09 what? Apr 17 05:13:54 pfn -> pfnQ like acgt + uv -> aggt Apr 17 05:14:12 so my question is pfn + ? -> pfnQ? Apr 17 05:14:15 lol what is this Apr 17 05:14:19 ^ Apr 17 05:14:37 lasserix what're you on? Apr 17 05:14:45 ^ Apr 17 05:15:37 q = qicr Apr 17 05:15:38 nothing just run done by coding this media class and its deizens Apr 17 05:15:47 oh yeah Apr 17 05:15:47 is the genymotion plugin from android studio trash? Apr 17 05:15:54 no Apr 17 05:15:59 but you need genymotion Apr 17 05:16:17 hm, i have it but it really doesn't look like anyone elses Apr 17 05:16:27 lasserix, until my bnc comes back up, I'm connecting multiply Apr 17 05:16:44 is connecting to irc without vpn or bnc a bad idea? Apr 17 05:17:06 Do any of you have a Galaxy S5? I need to get a new smartphone in the next week or two. Looking at a used S5 Apr 17 05:17:40 pfnQ: is there a service you use or did you set up yourself? Apr 17 05:18:57 lasserix, my own Apr 17 05:19:16 ethanmad, it's fine, just irc addicts like to do it differently Apr 17 05:19:43 i might set up a remote server and leave weechat running on it and then connect to that for irc Apr 17 05:20:10 because the ip of the server isn't really important Apr 17 05:20:23 and then i can keep the same session between devices Apr 17 05:20:27 liuwenhao, you look on swappa? Apr 17 05:20:28 what do you think? Apr 17 05:20:43 ethanmad, irssi has a built-in bnc Apr 17 05:20:56 maybe i'll switch Apr 17 05:21:13 I prefer znc though Apr 17 05:21:15 is znc the same thing? Apr 17 05:21:23 no pwnies; just looking on eBay. I'm going to buy a bad ESN/IMEI phone because I'm moving to China. and you can still use it on those networks Apr 17 05:21:25 weechat seems to have one built in Apr 17 05:21:58 my nexus 4 doesn't support the 3G bands for the carrier i use in china. So it's stuck on 2G Apr 17 05:22:49 S6 looks nice but it's out of my price range Apr 17 05:24:04 i'll probably just switch to irssi. seems more mature. Apr 17 05:24:17 liuwenhao, z1 compacts are awesome, just saying. Apr 17 05:24:47 z1 real nice, $tho Apr 17 05:25:12 cheaper than an s5 i believe Apr 17 05:25:42 about same think Apr 17 05:25:54 what about Z3? I don't know much about Sony phones Apr 17 05:26:32 well z whatever compact jusr smaller in pocket Apr 17 05:26:36 z3's are expensive Apr 17 05:26:47 not much different than the z1 Apr 17 05:27:09 bad IMEI Z3 is only ~250-275 used it looks like, within my price range Apr 17 05:27:14 z1 compact is my choice as of now Apr 17 05:27:29 the phone is a little big, if that's alright with you Apr 17 05:27:36 how is the camera? Apr 17 05:27:40 goooooood Apr 17 05:27:42 very good Apr 17 05:27:45 camera is what i care about the most. the nexus 4 camera is god awful Apr 17 05:27:46 what about a Nexus 5 or nexus 4 (from china) Apr 17 05:27:55 let me send you a sample shot i took Apr 17 05:27:59 h/o Apr 17 05:28:07 or oneplus one, which people seem to like. and yeah, n4 camera is horrible Apr 17 05:28:12 ethan i would get a nexus 5 if the camera wasn't so terrible Apr 17 05:28:45 sd card would be nice too because i play a lot of PSP games on emulator Apr 17 05:28:55 makes sense Apr 17 05:29:00 most companies w/ smaller phone make it w/ lesser specs, etc Apr 17 05:29:21 z3 compact is like badass small phone Apr 17 05:29:27 not doing that is what sony did right Apr 17 05:29:33 h/o liu, my comp is lagging hard from my emulator :( Apr 17 05:29:44 no problem pwnies. thanks for sending a sample Apr 17 05:29:48 h/o = hold on? Apr 17 05:29:52 yeah Apr 17 05:30:41 i hope more phones get 5.1 soon. I just got the OTA update on my nexus 4 today and it's ridiculously better than 5.0 Apr 17 05:31:13 so much better Apr 17 05:31:31 and appcompat datepickers work!! Apr 17 05:31:42 they were broken in < 5.1 Apr 17 05:32:01 i like how fast the notification bar is now Apr 17 05:32:13 its pretty much instant Apr 17 05:32:15 my n6 hardbricked somehow so i'm going to update my n4 to 5.1 Apr 17 05:32:35 touchscreen is half broken, but it'll do for the weekend trip Apr 17 05:32:44 i only get about 90 minutes of screen time now Apr 17 05:32:59 really needs a new battery Apr 17 05:33:06 but that's a problem for the next owner. haha Apr 17 05:33:34 i think mine was better, but it's been out of power for so long. that probably damaged the battery Apr 17 05:33:59 i stopped using it in september or october Apr 17 05:34:16 Can you swap the battery on a Z1/Z3 compact? Apr 17 05:34:39 https://lh5.googleusercontent.com/-oUpDEcTXfdY/VLxXbx7_aUI/AAAAAAAADSg/9kUoiBx2J-0/w751-h563-no/DSC_0165.JPG Apr 17 05:34:43 nope sadly :( Apr 17 05:34:49 can you see that pic liu Apr 17 05:34:56 swappable sd card though Apr 17 05:35:27 yes. that's a pretty nice shot Apr 17 05:35:36 i don't even know if i would use a swappable battery. but it seems like a nice feature Apr 17 05:35:42 because i will be travelling non stop for a few months Apr 17 05:35:55 good in case something happens Apr 17 05:35:56 https://lh4.googleusercontent.com/-UoHkMo3KeZ4/VLxUn7COEbI/AAAAAAAADRg/trC_T48IuM0/w422-h563-no/DSC_0156.JPG Apr 17 05:36:07 https://lh4.googleusercontent.com/-agVzTr0h4io/VLxUlAkY15I/AAAAAAAADRI/uMQZVJP38rE/w422-h563-no/DSC_0154.JPG Apr 17 05:36:09 sd card is way more important to me though Apr 17 05:36:10 they make those portable battery things Apr 17 05:36:34 i have one, but it takes so long to charge from Apr 17 05:36:55 https://lh5.googleusercontent.com/-EhiJKJ4yDSE/VLxTWPWI-SI/AAAAAAAADKk/rNNyuPPeg3Q/w751-h563-no/DSC_0122.JPG Apr 17 05:37:26 You can cut a microsim to a nano sim right? Apr 17 05:37:43 or do you need a new sim card Apr 17 05:37:53 https://lh6.googleusercontent.com/-Q719iRibWzw/VLxaoTdqdnI/AAAAAAAADeU/P_TQ7sB0iqQ/w1001-h563-no/DSC_0217.JPG Apr 17 05:38:06 Pwnies where did you take those? that beach looks beautiful Apr 17 05:38:44 california for sure Apr 17 05:39:04 my hometown, huntington beach, ca Apr 17 05:40:32 you guys have some cool marinas there Apr 17 05:40:43 looking on maps Apr 17 05:41:43 no way, the houses are on the marina? really cool Apr 17 05:53:56 beautiful pics! Apr 17 05:57:45 ty Apr 17 05:59:32 <_genuser_> Intent intent=new Intent(this, DataService.class); Apr 17 05:59:32 <_genuser_> startService(intent); Apr 17 05:59:50 <_genuser_> why would this not start the service? it's also declared in the android manifest. it spits out no errors and nothing. Apr 17 06:00:38 how do you know it's not starting the service? Apr 17 06:00:41 what kinda service is it? Apr 17 06:01:34 <_genuser_> my service. I had log.d statements in onStartCommand. now adding more logs to see if it's return on one of the null checks. Apr 17 06:02:21 can just paste your code too instead of cliffnotes Apr 17 06:02:22 <_genuser_> I see. it passes a null intent to the service. Apr 17 06:02:38 null intent or bundle? Apr 17 06:02:39 <_genuser_> whatitis-: :) true that. and it's a funny comment. Apr 17 06:03:20 <_genuser_> intent is null in onStartCommand. I'll try to putExtra some stuff in it. Apr 17 06:03:54 yeah, check if intent!=null then getExtras Apr 17 06:06:38 <_genuser_> whatitis-: taht was it. even tho, did startService(new Intent(this, DataCache.class)); it still passed it across as null. Apr 17 06:06:53 <_genuser_> but when I putExtra and then nullcheck and getExtra, it worked just fine. Apr 17 06:07:13 yeah don't expect intent to not be null if not extras Apr 17 06:07:22 but that shouldn't be an issue Apr 17 06:07:46 it's just if intent is null then it was just started with nothing extra Apr 17 06:08:16 <_genuser_> yeah, I'm expecting to send initializing data (such as cache path, etc.) in the intent. so I'm doing a nullcheck on the other end before gettingExtra Apr 17 06:08:31 <_genuser_> now, to learn about binding so I can bind to it and get a copy of the data, when needed. :) Apr 17 06:10:06 Pwnies: you in hb? Apr 17 06:10:45 yeah Apr 17 06:10:57 oh cool im down the 73 a couple of minutes Apr 17 06:11:24 the 73? Apr 17 06:11:29 too poor for that Apr 17 06:11:38 hehe Apr 17 06:11:39 :p Apr 17 06:11:41 yeah irvine Apr 17 06:11:44 <_genuser_> hb? Apr 17 06:11:46 SERIOUS? Apr 17 06:11:51 where in irvine? Apr 17 06:11:53 yeah i was just in hb yesterday Apr 17 06:11:56 next to the campus Apr 17 06:12:03 you go there Apr 17 06:12:11 no was about to transfer before going fulltime Apr 17 06:12:30 have a couple of friends, used to hang out there frequently Apr 17 06:12:31 full time? Apr 17 06:12:34 *full time work Apr 17 06:12:39 ohhh android dev? Apr 17 06:12:44 y Apr 17 06:13:01 jw Apr 17 06:13:42 i went to cal poly pomona. the cheapness was strong Apr 17 06:13:53 heh Apr 17 06:14:51 god, irvine is so expensive Apr 17 06:14:54 but i would totally live there. Apr 17 06:17:23 eh Apr 17 06:19:02 did you go to ivc lasserix Apr 17 06:29:51 yeah Apr 17 06:30:32 went to ucdavis to learn , well i ended up doing the viticulture and enology program for the major, but ran out of money and was convinced to reroute into cs, so started at ivc to take prereqs etc Apr 17 06:31:19 cool, til what viticulture is Apr 17 06:31:57 is it possible to run ddms independently of as since the as logcat sucks b.lls ? Apr 17 06:32:08 yes Apr 17 06:32:18 but i think you have to shut down AS Apr 17 06:32:25 erg Apr 17 06:32:28 lol Apr 17 06:32:37 has anyone released a useful script for cmd line logcat? Apr 17 06:32:47 yeah there are a bunch, jake had pidcat Apr 17 06:33:28 i read somewhere, the logging in AS is kinda poor because of intellij - something needs to be changed upstream Apr 17 06:33:33 sounds kinda weird but whatever Apr 17 06:34:10 i'm still waiting for selectable columns :) Apr 17 06:34:23 i mean, i just want time and message Apr 17 06:38:43 selectable and resizable Apr 17 06:38:54 which logcat had a var for coloring Apr 17 06:39:19 <_genuser_> lol, so a Service runs on teh main thread. and you have to create a worker thread yourself. then once might ask WTH is the point of a service? Apr 17 06:39:24 <_genuser_> s/once/one/ Apr 17 06:40:59 does any know of an hls live stream? Apr 17 06:41:11 service is invoked on main thread, Apr 17 06:41:56 _genuser_ seems like you don't understand ... time to read Service docs again :) Apr 17 06:41:59 and again Apr 17 06:42:00 and again Apr 17 06:42:12 keep reading them until it makes sense :D Apr 17 06:42:28 if there is one part of android which is documented well, this is it Apr 17 06:43:18 <_genuser_> g00s: I'm reading it again and again kinda like you're saying. I suppose it will take some time. Apr 17 06:43:21 i'm pretty sure i reread those 4-5 times on first encounter Apr 17 06:44:05 <_genuser_> g00s: on initial read it makes it sound like a service can be used to do stuff in the background. Apr 17 06:44:22 background like, your activity isn't showing Apr 17 06:44:22 yes Apr 17 06:44:30 <_genuser_> but then in teh code sample, it's creating a separate thread to handle stuff in the background because "service is run on teh main thread" Apr 17 06:44:43 you are confusing 'background' Apr 17 06:45:05 <_genuser_> it says: "Note that we create a separate thread because the service normally runs in the process's main thread, which we don't want to block." Apr 17 06:45:19 yes Apr 17 06:45:36 <_genuser_> g00s: ok, explain, if you don't mind please. how am I confusing the word 'background' here. Apr 17 06:46:09 "service can be used to do stuff in the background." == service can do stuff when your app isn't showing Apr 17 06:46:10 <_genuser_> I "assume" (probably a mistake to assume) that it does stuff in it's own thread (hence background) Apr 17 06:46:21 <_genuser_> g00s: oh, I see. that makes sense. Apr 17 06:46:27 no .. it does stuff on the main thread Apr 17 06:46:39 <_genuser_> so if you app is showing, and you send off a request to it, it's now using the same thread... Apr 17 06:47:09 _genuser_ there is a main looper for the application Apr 17 06:47:11 a main thread Apr 17 06:47:21 everything happens on that unless .. something special Apr 17 06:47:33 like you create your own thread, or some IPC via binder Apr 17 06:47:42 <_genuser_> oh yeah,I'm reading about the looper (getLooper(), etc.) Apr 17 06:48:01 <_genuser_> I've already just used the basic threading in java. so it's all new to me. Apr 17 06:48:29 how to prevent sending messages to handler on daed thread? Apr 17 06:48:35 is there a way to from the handler? Apr 17 06:48:35 <_genuser_> everytime I start something new, I can't just finish a feature. I end up with all new stuff and end up spending couple of days learning new stuff and re-arranging my code. :) Apr 17 06:48:48 lasserix dead thread ? Apr 17 06:49:03 _genuser_: when something is handled off of the main thread, the documentation should be explicit about it. e.g. http://developer.android.com/reference/android/app/IntentService.html Apr 17 06:49:06 "handles each Intent in turn using a worker thread" Apr 17 06:50:06 <_genuser_> JesusFreke: yep, I've used the IntentService also in this project. Which also fed into the assumption that Service does the work on a worker thread. Apr 17 06:50:28 _genuser_: yeah, that behavior is specific to the IntentService :) Apr 17 06:51:01 _genuser_: if you're feeling adventurous, you can take a peek at how the IntentService works Apr 17 06:51:06 https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/app/IntentService.java Apr 17 06:51:08 <_genuser_> I wonder if I just use IntentServices from Services. lol that would really muck it up. Apr 17 06:51:17 Mooornin Apr 17 06:51:24 hello Mavrik Apr 17 06:51:25 <_genuser_> Mavrik: sup! Apr 17 06:51:50 <_genuser_> JesusFreke: not so much adventurous as eager to finish this project which keeps requiring more and more features and mroe and more research Apr 17 06:51:52 If you can understand that, you'll be on your way to getting a good handle on loopers/handlers, etc. Apr 17 06:53:02 <_genuser_> JesusFreke: yeah, I just read about loopers/handlers for the first time now. :) heh. Apr 17 06:54:38 looks like i'm going to be developing in ST for a little while here. my AS setups , both 1.1 and 1.2 are totally busted with my project ... but builds from CLI work OK Apr 17 06:54:51 god this sucks Apr 17 06:57:14 why would damn devs leave log in a library? Apr 17 06:57:17 so frustrating Apr 17 06:58:24 lasserix which lib ? Apr 17 06:59:05 oh yeah, probably exoplayer :) Apr 17 06:59:52 morning. Apr 17 07:00:43 so build from cli Apr 17 07:00:51 and edit in as Apr 17 07:00:59 nothing wrong with that Apr 17 07:01:30 pfnQ AS is showing error markers everywhere Apr 17 07:01:30 yeah, that's how I usually work, tbh Apr 17 07:01:38 its totally fucked Apr 17 07:01:54 pretty much, all the files are drowning in red Apr 17 07:02:03 lasserix, proguard it out Apr 17 07:02:15 g00s, kill the caches! :) Apr 17 07:02:19 <_genuser_> I"m thinking how much I feel un-dev like if I just went with freaking static vars and ditched the service idea altogether, LOL. Apr 17 07:02:33 Mavrik i killed the caches, killed AS, reinstalled, changed gradle, lol Apr 17 07:02:40 :D Apr 17 07:02:56 _genuser_: service is essentially a singleton anyways Apr 17 07:05:28 <_genuser_> lasserix: yeah, I figure I can hack it. but since it's the proper way of doing it, I'm trying to force myself to learn about it. Apr 17 07:05:48 <_genuser_> lasserix: since this project started, if I had just done the whole thing the way I would in windows programming (.NET), I'd be done. Apr 17 07:05:55 what are you using this for? Apr 17 07:05:57 <_genuser_> but I'm having to learn new stuff and new ways of doing things. Apr 17 07:06:16 <_genuser_> and the benefit is that I might be able to transition into android dev job. so I force myself to learn more. Apr 17 07:06:58 <_genuser_> lasserix: resource intensive data/file caching. service can run and stay running indefinitely. it can provide data when needed, but also handle fetch/upload/modify in the background Apr 17 07:09:25 g00s, can't you set module dependencies manually? Apr 17 07:09:50 oh yeah Apr 17 07:09:54 service is necessary Apr 17 07:10:29 <_genuser_> lasserix: I think the main reason I'm focursing on learning all this new stuff is to be able to jump to android dev if I really get bored with .NET stuff. Apr 17 07:12:23 .net is nice enviroment Apr 17 07:12:38 the state of media/audio player on android makes me very pessimistic and cynical Apr 17 07:12:48 pfnQ there is something about my gradle file causing AS to fail, and i don't know what it is. the project itself imports fine, its just that AS reports all dependencies of 1 module as all missing (the others are ok ?!?) and R is not being resolved / built. i dunno Apr 17 07:13:02 the fact there is a fundemental in audio tracking delay in android is just so f--cked its amazin Apr 17 07:13:20 lasserix oh, you haven't been using BT for 4 years Apr 17 07:13:35 that explains how i got to where i am :D Apr 17 07:13:48 what is BT? Apr 17 07:13:52 bluetooth Apr 17 07:14:48 lasserix you read that low latency audio article, right ? Apr 17 07:15:02 i knew of it first hand from when making a metronome app Apr 17 07:15:09 oh interesting Apr 17 07:15:15 yp Apr 17 07:15:27 Android got all the audio messups from its Linux roots and added some more Apr 17 07:15:45 omg, alsa Apr 17 07:15:51 i hated that crap Apr 17 07:16:31 yeah, Linux audio got decently useful after they finally got to PA Apr 17 07:16:43 :O Apr 17 07:16:45 heresy Apr 17 07:16:56 even though PA also isn't really built for low-latency Apr 17 07:17:07 Mavrik: PA usually adds >100ms of latency Apr 17 07:17:14 mhm Apr 17 07:17:16 <_genuser_> lasserix: .NET is kinda nice. but our company is pretty stagnant right now. also, 10+ year experience at our company pays 100k/yr. In android you can make that much with just 5yr of experience. Apr 17 07:17:28 Mavrik: and that's assuming you don't get timings you can't trust Apr 17 07:17:41 <_genuser_> lasserix: do you have metronome app that is published? Apr 17 07:17:45 no Apr 17 07:18:09 it was much more than just a metronome app and i got more interested in opengl since that fund. latency issue Apr 17 07:18:28 Mavrik: generally, if we wanted low-latency audio, we would need to a) have more sensible people making the phones b) introduce JACK-style API :P Apr 17 07:18:58 p_l, hmm Apr 17 07:19:07 I don't what it has to do with sensibility. Apr 17 07:19:14 <_genuser_> lasserix: I use this one metronome app that I really liked. and it actually helped me improve some scales on the guitar. sped it up with just 2weeks of consistent work. Apr 17 07:19:24 I wonder how much haskell jobs pay.... Apr 17 07:19:27 <_genuser_> ugh JACK. that really sucks! Apr 17 07:19:29 Android just never was designed for low-latency audio and honestly, I wish Google spends their resources fixing something else Apr 17 07:19:37 Musicians are married to their Apple crap anyway Apr 17 07:19:44 I'm not Apr 17 07:19:50 * Zharf is a musician :p Apr 17 07:20:01 Mavrik: thats bs Apr 17 07:20:05 and amount of effort required to rewrite Android audio stack would be better used somewhere else than addressing a target marked that won't care for it Apr 17 07:20:18 but I don't use tablet/phone crap for audio... Apr 17 07:20:21 percisely because of the nature of android there is so much potential for audio stuff Apr 17 07:20:32 Mavrik: a lot of vendors do weird crap on the phones, sometimes really stupid errors, which impact everything Apr 17 07:20:48 p_l, that I do agree on, CTS has to be expanded and tightened Apr 17 07:21:05 Mavrik: CTS can't catch it all Apr 17 07:21:25 well, it must Apr 17 07:21:36 It's not like you have any alternative Apr 17 07:21:43 Chinese aren't gonna magically become competent. Apr 17 07:22:06 in a way, CM-the-company could have provided a means, by reducing "random barely-QAd devteams of schoolkids" amount in vendor teams Apr 17 07:22:12 <_genuser_> Mavrik: like slash with his amplitube iphone stuff. !! Apr 17 07:22:49 Mavrik: Chinese are already competent, just nobody cares about random one-offs but everyone slaps it together from shitty SoC devkit and AOSP... Apr 17 07:22:51 *shrug* I've worked with enough large vendors that I find that changing unlikely Apr 17 07:23:10 <_genuser_> I use my android phone for recording ideas. nothing latency specific. hit record, play guitar sing it in and note it down. Apr 17 07:23:17 <_genuser_> the move to windows computer and fire up the DAW Apr 17 07:23:26 even buying several 10kEUR worth of equipment from large "quality" companies quickly shows you that people writing its software/design were winging it Apr 17 07:23:49 wtf in new as floating mode doesn't work Apr 17 07:23:53 f.;slkdfhjs Apr 17 07:24:51 man Apr 17 07:24:59 <_genuser_> g00s: g00sy g00serson, man it's all working !! backgrond thread, loopers/threading, threading off women's facial hair, multiple requests, all that Apr 17 07:24:59 Mavrik: partially because no body calls them out on it... Apr 17 07:25:10 <_genuser_> well ok, may be not threading of women's facial hair.... Apr 17 07:25:12 _genuser_: lol Apr 17 07:25:45 Mavrik: we spent much more on a certain company who sold us software that didn't exist yet... (not even alpha, the code for the features they sold us didn't exist) Apr 17 07:25:55 oh yeah Apr 17 07:25:56 anyone using 1.2 as ? when i do -> Floating Mode is just pinned to someplace randomly and i cant move the window Apr 17 07:26:30 te only solution to this crap is just fuck it, go into farming or something Apr 17 07:26:41 g00s: ... sounds like a certain ex-Sun engineer Apr 17 07:26:44 no wai! https://support.apple.com/en-us/HT203973 Apr 17 07:29:03 lasserix lol Apr 17 07:29:26 intellij is very buggy. i just went into preferences, and did a search for 'import' .... Apr 17 07:29:27 anyone using as 1.2 beta 3 --> try moving your android log window around in floating mode.. does it work? Apr 17 07:29:35 and it did not find all the things relating to import Apr 17 07:29:43 <_genuser_> p_l: :) Apr 17 07:29:59 lasserix i heard of that bug Apr 17 07:31:08 lasserix you might need to use vim / emacs too for a while :D Apr 17 07:31:16 <_genuser_> what do you guys this of putting a synchronized(this){} block in onStartCommand Apr 17 07:31:26 <_genuser_> hmm, as soon as I hit enter, I don't like it already. Apr 17 07:31:35 no Apr 17 07:31:37 _genuser_ why? that will only be called on main thread Apr 17 07:31:48 why dont you just make synchronized onstartcommand Apr 17 07:32:14 <_genuser_> g00s: yeah, I want all teh synchronized and state checking on the worker thread. since I'm actually going the distance of creating it. Apr 17 07:32:23 <_genuser_> and it's going to be time consuming to initialize the object. Apr 17 07:32:52 <_genuser_> Ashiren: it will take 4seconds roughly to initialize obj. if I put it in synchronized onStartCommand it will block main thread for 4 seconds. Apr 17 07:33:08 <_genuser_> I should be offloading work to worker thread quickly. Apr 17 07:33:14 _genuser_ lol, you can't block the main thread for 4 sec Apr 17 07:35:56 <_genuser_> g00s: yep yep, that's why I went thru thye hassle of the worker thread in the service. that's the route I'm going. Apr 17 07:36:07 <_genuser_> 4seconds will probably lose the user's focus. Apr 17 07:36:21 so this f---cking library dumps a huge error if i cancel buffering at a certain time, should i care or try and route this f-cker out? Apr 17 07:36:31 as a developer i feel like its terrible to let that happen Apr 17 07:40:42 i give up Apr 17 07:41:10 is there a bug in ColorDrawable setAlpha and getAlpha? Apr 17 07:41:35 .setAlpha(256), .getAlpha() returns 128 Apr 17 07:41:55 .set 512, get returns 2 Apr 17 07:41:56 WTF Apr 17 07:42:47 look at this http://pastebin.com/tePRckrv Apr 17 07:42:49 such bs Apr 17 07:42:52 Mattx, not a bug Apr 17 07:42:59 what kind of library dumps this into logcat without any option Apr 17 07:43:08 sounds like 2's compliment Apr 17 07:43:13 I'm trying to set full alpha (0xFF), what am I missing? Apr 17 07:43:17 Mattx, it just gets applied to the colordrawable color Apr 17 07:43:19 ff = 255 Apr 17 07:43:29 yeah, I know, but it's not working g00s Apr 17 07:43:53 Mavrik, hmn, what do you mean? please explain me Apr 17 07:43:58 Mattx, go look at the source Apr 17 07:44:00 it's like 5 lines Apr 17 07:44:07 I tried but it's crazy Apr 17 07:44:10 the alpha gets calculated into the color, it's not separate Apr 17 07:44:24 http://grepcode.com/file/repo1.maven.org/maven2/org.robolectric/android-all/5.0.0_r2-robolectric-0/android/graphics/drawable/ColorDrawable.java#ColorDrawable.setAlpha%28int%29 Apr 17 07:44:58 and alpha value from the base color of course it taken into account as well Apr 17 07:45:09 so are you setting a base color with alpha? Apr 17 07:45:51 Mavrik, I have the color 0x80FF7E88 lets say, and I want it to become 0xFFFF7E88 Apr 17 07:46:22 I want to do that only changing the alpha channel, because I do the same with other colors so it's in a generic function Apr 17 07:48:20 Mavrik, what would be the correct way of doing this? Apr 17 07:49:59 Mattx: (color & 0x00ffffff) | 0xff000000 Apr 17 07:50:36 yeah, that's the old school way. but I assumed setAlpha would make it easier Apr 17 07:50:48 something like .setAlpha(0xFF) Apr 17 07:50:51 oh, I dunno. I didn't read the backlog, sorry :) Apr 17 07:52:20 Mattx, correct way would be setColor(0xFFFF7e88) Apr 17 07:52:24 <_genuser_> now what? Apr 17 07:52:40 since setAlpha doesn't replace the color alpha, it adds Apr 17 07:52:41 <_genuser_> I work on binding to service to get the data and send actual requets? Apr 17 07:53:46 <_genuser_> g00s: what do you think about this? startService just to get it running and setup worker thread. bindService to send in requets like - initiate, update, savetodisk, getcopy, etc. Apr 17 07:54:43 usually what i do is bind to the service and do stuff. when something actually warrants starting the service, it happens then Apr 17 07:55:09 like i bind to the service, create a bluetooth client - once i tell it to connect, it then starts the service in Foreground mode Apr 17 07:55:20 when the connection ends, it tells the service to shut down Apr 17 07:55:30 <_genuser_> g00s: I want to start it so it can keep a copy of the datacache. then binding will issue requests that later the data cache. Apr 17 07:55:34 if there is no UI binded to it, well thats the end Apr 17 07:55:51 you can make your cache static in the service Apr 17 07:56:09 then you don't even need to start it to access the cache Apr 17 07:56:23 just make it threadsafe if using from multiple threads Apr 17 07:56:26 <_genuser_> g00s: so make it static, do away with startService, and only bind to issue initiate, update, savetodisk, getcopy, etc. Apr 17 07:56:43 _genuser_ you still aren't understanding services :) Apr 17 07:57:02 there is no point binding to a service - if its not IPC - unless there is a chance to actually START it Apr 17 07:57:41 the service apis - man these are some crap too Apr 17 07:57:49 <_genuser_> I see, I udnerstand that bit. but services (per doc) run as STARTED, BOUND, or both. Apr 17 07:57:54 so much cruft and stupid bologna in android Apr 17 07:58:13 <_genuser_> so if I don't manually startService, and only do binding, it will possibly start it when needed, but won't be my explicitly calling it. Apr 17 07:58:34 <_genuser_> does that makes sense (of how I understood it)? Apr 17 07:58:42 no, you need to call startService. maybe its a function in your service itself Apr 17 07:59:52 for example, maybe update() calls startService, and does some stuff that has to happen when the UI goes away Apr 17 07:59:59 and then when its done, it stopSelfs Apr 17 08:00:05 anyhow almost bed time Apr 17 08:00:25 "Dyson V6 Mattress cleaner sucks, if you're a dust mite" Apr 17 08:00:39 wonder, if i put that up to my phone, if it will suck all the android bugs out ... Apr 17 08:01:15 <_genuser_> g00s: well, I see that I need to read it a bit more. my understanding was if you bindService, you do'nt expclitly call startService in that case, etc. etc. Apr 17 08:01:25 <_genuser_> thanks for listening. I'll continue reading it a bit more. Apr 17 08:01:37 _genuser_ you need to read more about overlapping service lifecycle Apr 17 08:01:54 overlapping bind / startservice Apr 17 08:02:06 <_genuser_> AND look at that pretty image they have in the docs. Apr 17 08:02:16 <_genuser_> will also google overlapping. Apr 17 08:03:32 <_genuser_> my takeway is all of this was, that you just said make cache static. Apr 17 08:03:43 <_genuser_> which is how this all started, lol. I made it static in mainactivity and thought, I don't like it. Apr 17 08:04:46 _genuser_: you bind a service to be able to use it like an object in your activity Apr 17 08:07:51 <_genuser_> lasserix: but the binding also starts it if it wasn't started? Apr 17 08:08:38 binding is not about the lifecycle Apr 17 08:08:51 you can call startS and StopS from oncreate and ondestroy if you wanted Apr 17 08:08:59 (or onPause with a delay for onResume) Apr 17 08:09:07 <_genuser_> bindService() documentation: Connect to an application service, creating it if needed. This defines a dependency between your application and the service. Apr 17 08:09:17 yeah Apr 17 08:09:24 so that the activity has-a service object Apr 17 08:09:41 so you can do things like in activity class { mService.doSomething(); } Apr 17 08:09:47 instead of broadcasting an intent Apr 17 08:09:56 or something else Apr 17 08:10:09 <_genuser_> then Service doc says, services can mostly be in two forms: STARTED / BOUND. (also mixed). Apr 17 08:10:15 that is literally the only reason to bind a service--do i need to be able to access methods of the service directly? Apr 17 08:10:23 <_genuser_> so I was trying to pick if I have to go this way or that way. or both. Apr 17 08:10:38 yes i can call startServie bindService unBindservice -- now serice won't stop until stopService is called Apr 17 08:10:55 lasserix thanks, i hate talking about this stuff :D Apr 17 08:11:08 <_genuser_> right. but if you call bindService, unbindService, then it will be destroyed on unbind (providing nothing else is bound). Apr 17 08:11:13 binding has the sideeffect of couplng the lifecycle of the service to the activity (if its the only activity bound) Apr 17 08:11:18 right Apr 17 08:11:25 but since you can explicitly do this Apr 17 08:11:26 <_genuser_> g00s: you've realy helped me get more comfortable with this stuff with the dicussion. Apr 17 08:11:28 that's just a sideeffect Apr 17 08:11:34 the real point is: Apr 17 08:11:44 _genuser_: you bind a service to be able to use it like an object in your activity Apr 17 08:11:50 <_genuser_> I might not be explaining it to you liking but it's helping me udnerstand better, even if slowly. so I really appreciate it. Apr 17 08:12:03 that is literally the only reason to bind a service--do i need to be able to access methods of the service directly? Apr 17 08:12:16 one more time! Apr 17 08:12:17 --do i need to be able to access methods of the service directly? Apr 17 08:12:24 <_genuser_> lasserix: I understand that bit. which I need to do, since I'll need to access methods, etc. on it. Apr 17 08:12:34 the other option of course is using a message bus Apr 17 08:12:35 statics FTW Apr 17 08:12:40 which is significantly easier and faster Apr 17 08:12:53 binding services is more meant for cross-process communication Apr 17 08:12:58 _genuser_: consider though you can use a message bus, or broadcast intents, or indirectly access it through a singleton Apr 17 08:13:30 Mavrik because they need to directly access methods of the service ;p Apr 17 08:13:38 <_genuser_> lasserix: My main reason for focusing on teh difference is, should I use startService (initiate in a worker thread the cache), and then bind to call methods on it. Apr 17 08:13:40 mhm Apr 17 08:13:50 that is literally the definition of aidl interface Apr 17 08:14:02 <_genuser_> lasserix: or should I even do the initiatioin in a bindService method call and make the cache static var in service, etc. Apr 17 08:14:14 _genuser_: you need to download data and cache it? Apr 17 08:14:45 so what you can do instead, is use an intent service, download the data and write it to disk and then broadcast to the activity it is accessable Apr 17 08:14:49 <_genuser_> lasserix: cache will be initiated from fetched data, and parsing some local binary files. roughly takes 4-5seconds. so I need to do it off main thread Apr 17 08:15:04 intent service handles its lifecycle Apr 17 08:15:15 already runs in a background thread Apr 17 08:15:16 <_genuser_> lasserix: and I keep it in memory for faster access. it has a light foot print once calculated and i mem. Apr 17 08:15:19 <_genuser_> *in Apr 17 08:15:24 _genuser_: "faster access" Apr 17 08:15:36 how fast is a disk read? Apr 17 08:15:46 well depending on the type of data and amount Apr 17 08:15:50 it can be < 100 ms Apr 17 08:15:56 which is as fast as you really need Apr 17 08:16:08 if its huge, then you're not going to load it all into memory anyways Apr 17 08:16:18 so like i said, you can write it to disk and just read it off disk Apr 17 08:16:22 <_genuser_> no no, not mem read vs. disk read. read off the web and parse local. Apr 17 08:16:28 or make it parceable and send it in the intent Apr 17 08:16:36 <_genuser_> I guess you could say I could write the final computed cache to disk and then read that. Apr 17 08:16:39 or use a message que Apr 17 08:16:55 _genuser_: write, so what you can do is write the finish product to disk Apr 17 08:16:57 <_genuser_> hehe, sounds like you're not liking the idea of a service this type of stuff. Apr 17 08:17:11 no an intent service is EXACTLY what this is for Apr 17 08:17:22 but you can also store your finished product in memory Apr 17 08:17:28 and dump it into a singleton Apr 17 08:17:30 <_genuser_> IntentService, I have implemented and kinda understand better than Service. Apr 17 08:17:47 send a message to the activity to grab it and then let the intent service stop Apr 17 08:18:07 intentservice is a service that a) runs in a bg thread b) automatically stops upon execution completion Apr 17 08:18:17 *also cannot be bound too Apr 17 08:18:29 <_genuser_> I was going for Service so that: service runs, initiates once, and keeps copy in mem, multiple activities can all bind request data, unbind. they can bind, update/delete, unbind, etc. Apr 17 08:18:43 "request data" Apr 17 08:18:50 you're not requesting data your accessing data Apr 17 08:18:54 <_genuser_> so that data stays in memory and available for access very quickly. instead of having to be read in from disk, parse, etc. Apr 17 08:18:57 the service has one job: get and parse the data Apr 17 08:19:06 the service doesn't have the job of being a cache Apr 17 08:19:39 if you need multiple activites to access it, once service is done dw and parsing dump it into your application class Apr 17 08:20:03 that's where a intraactivity cache should go Apr 17 08:20:06 <_genuser_> application subclassed object with a var? Apr 17 08:20:22 yeah Apr 17 08:20:42 because its local Apr 17 08:20:47 <_genuser_> lol, originally I was just storing static var on mainactivity. then I thought I'd put it in application object as a static or instance var. Apr 17 08:20:49 you can even use a handler Apr 17 08:20:53 <_genuser_> then I launched into services, Apr 17 08:20:54 and send it via a msg obj Apr 17 08:21:05 you need the service Apr 17 08:21:28 well you could technically start a bg proces sin your application Apr 17 08:21:28 <_genuser_> I see, you're saying only use service for backgroudn fetching. then dump it to application and don't mess around with service. Apr 17 08:21:34 yeah Apr 17 08:21:40 what is the job of the service? Apr 17 08:21:43 its not a memory cache. Apr 17 08:21:48 it has a job, then its done and goes away. Apr 17 08:21:59 <_genuser_> you know, logically it makes sense. Apr 17 08:22:20 <_genuser_> I was more liking the idea of working with a service that stays active and you bind an access methods on it, etc. Apr 17 08:22:29 but its obvious the android developers weren't considered about logic so we'll go the down the path full of bugs Apr 17 08:22:31 <_genuser_> more for the romantic value of learning something an using it. Apr 17 08:22:40 then make a music player Apr 17 08:22:46 but don't do it for this Apr 17 08:23:05 <_genuser_> I should bite the bullet nad subclass application. I have been avoiding for so long. I have so many static vars in mainactivity. Apr 17 08:23:05 you'd be abusing waht it is and probably get the wrong idea of what it is / how it is supposed to be used Apr 17 08:23:25 if they are only alive during activity that's where they should go Apr 17 08:23:32 <_genuser_> yeah, I suppose a music app is really one of the few times a service needs to keep running. Apr 17 08:23:42 <_genuser_> maybe email checkers, file monitors, etc. etc. Apr 17 08:25:12 <_genuser_> there's one reason where I like service for storing cache tho. Apr 17 08:25:13 there are lots of reasons Apr 17 08:25:18 no Apr 17 08:25:22 theres no reason Apr 17 08:25:25 <_genuser_> subsequent runs would be fast. Apr 17 08:25:31 what does that mean? Apr 17 08:25:34 specifically. Apr 17 08:25:40 <_genuser_> once last activity is unloaded, application object would be destroyed no? Apr 17 08:25:45 no Apr 17 08:25:51 application is alive for as long as process Apr 17 08:25:58 ie will outlive your service Apr 17 08:26:24 <_genuser_> if service, activity, every are destroyed, application object would unloaded soon after, no? Apr 17 08:26:33 no Apr 17 08:26:38 *not necessarily Apr 17 08:26:40 not neccessarily Apr 17 08:26:45 often times the system will cache the process Apr 17 08:26:47 <_genuser_> android might leave it in memory if it doesn't need memory for other stuff. Apr 17 08:26:56 eeyup Apr 17 08:27:27 <_genuser_> alright. now if I make a sticky service, does that offer any more of a possibility of the data staying in memory? Apr 17 08:27:56 <_genuser_> altho, I kinda don't like that because that lifecycle is quite unpredictable. Apr 17 08:28:00 definatly not Apr 17 08:28:07 sticky means if it id estroyed it'll auto restart Apr 17 08:28:40 <_genuser_> if it's auto started, it will do the 4second long spiel to calcualte cache. Apr 17 08:28:58 <_genuser_> but, I think I like it much better to then just focus on IntentService to calculate cache and stick in app var. Apr 17 08:29:45 <_genuser_> what I'm hearing here is that I'll be creating tons of craps if using Service and it won't have any benefit. and it will just add complexity. Apr 17 08:30:22 probsbly Apr 17 08:32:28 <_genuser_> Ashiren: kinda expect you to only say eeyup now and then, lol. Apr 17 08:33:24 hi. i'm trying to execute my app on a real device, but when i start the app on android studio i get: java.lang.NumberFormatException: For input string: "" Apr 17 08:33:37 this is classified as IDE internal error Apr 17 08:34:01 and despite of that my app doesn't run on the device Apr 17 08:34:20 you dont have any number parsing in your app, do you? Apr 17 08:35:54 Ashiren: no. in fact if you read the stacktrace http://pastebin.com/b8whE98V there isn't any activity there (i have only one activity now) Apr 17 08:36:54 so it really comes from the IDE Apr 17 08:37:58 well maybe this: http://stackoverflow.com/questions/28928829/android-studio-project-wont-run-in-device Apr 17 08:39:27 hey, is it possible to change a free app to one with in-app purchases? Apr 17 08:40:14 Ashiren: i've read that, but i'm not debugging my app over wifi :) Apr 17 08:43:12 gang? Apr 17 08:43:45 okay ... last resort ... can someone help me findViewById'ing from a WatchViewStub in a Fragment?:P Apr 17 08:44:30 inflating the hell out of layouts but I just want to find my textview ... keeps coming back null :( Apr 17 08:47:57 seriously ... the onCreateView of the fragment inflates a layout with a WatchViewStub in it and returns that view Apr 17 08:48:06 <_genuser_> dang, this movie I was watching it more convoluted and boring than the code I was designign with Services. Apr 17 08:48:59 Hi everyone, has anyone already experienced fragments overlapping each other after asynctask success ? Apr 17 08:49:00 now in onActivityCreated I findViewById the watchviewstub and set the onLayoutInflatedListener Apr 17 08:49:10 where i findViewById my textview Apr 17 08:49:16 but that doesnt work Apr 17 08:49:32 any ideas? :) Apr 17 08:49:57 Sirolf, why don't you do findViewById in onCreateView after inflating it? Apr 17 08:50:01 I am wondering about the correct way to implement a horizontal scrolling view. One will have images, and the other will be 3x4 grid of some view. Both are going to be horizontally scrolling. Looks like going with a a Recycler view of some sort is the new answer, but I am just throwing it out here for some ideas. Apr 17 08:50:20 Mavrik, Same result Apr 17 08:50:54 I have a SwipeRefreshLayout with a list in it, whenever I pull the view it triggers the round animation and updates the fragment fine. However If I press back right when the animation disappears I go back to the previousFragment and the list is refresh (overlapping) above it !! Apr 17 08:51:16 refreshed* Apr 17 08:51:28 Sirolf, is the child view even inflated? Apr 17 08:51:31 it seems the OnInflateListener is never called after the initial inflation of the root View Apr 17 08:51:37 that is. was WatchViewStub() called? Apr 17 08:51:46 *WatchViewStub.inflate() ? Apr 17 08:51:46 yeah ... I can see the layout correctly on the smartwatch Apr 17 08:52:35 well ... I expect it to be inflated automaticly Apr 17 08:53:10 it worked fine when I had the same setup in a normal Activity ... I had it in the onCreate ... Apr 17 08:53:21 is it possible to make the fragment backstack visible in ddms? Apr 17 08:54:27 Question: Can I use Google Play filters (uses-permission: billing?) to have the same app in countries with biling support (e.g. US) and in those without (e.g. China)? Apr 17 08:54:41 I've added in-app purchases to my app and noticed that it has been removed from China and others, Apr 17 08:54:54 I'm looking for a way to fix that. Apr 17 08:55:05 danijoo: if you Log it yeah Apr 17 08:55:22 otherwise consider using adb for this Apr 17 08:55:45 Google didn't show much for my problem, I've seen nobody who did this, Apr 17 08:55:51 cristen, yeah. I know I can log it manually, but I hoped for a view like the hierachy viewer :S Apr 17 08:56:05 so I'm visiting this channel :-) Apr 17 08:56:19 I suspect that in an Activity when you setContentView(layoutID) you can then call findViewById on all the views inside that layout ... alsof find the stub ... set any onInflateListener ... because only after onCreate has ended the whole views/layouts are inflated etc. ... BUT in a fragment the first time a layoutID is usually set is on it's inflation? so no onInflateListener can be set Apr 17 08:56:20 before that? Apr 17 08:57:05 "on it's inflation" - in onCreateView Apr 17 08:57:28 Ashiren: whichi IDE do you use? Apr 17 08:57:57 danijoo: http://goo.gl/cDYZTO Apr 17 09:06:28 anyone done any face recognition stuff? just wondering what the best libs are if any, stuff im finding isnt so great, qualcomms snapdragon sdk seems best Apr 17 09:06:52 (asking again) Can I use Google Play filters (uses-permission: billing?) and multiple APKs to have the same app in countries with biling support (e.g. US) and in those without (e.g. China)? Apr 17 09:11:27 <_genuser_> ugh jeez why did java introduce singletons to the world in such a crappy way. just call them static!! Apr 17 09:13:43 _genuser_, the reason is java is from 1995 Apr 17 09:19:02 _genuser_, what do you mean... you can call them static right now Apr 17 09:19:14 public static final MySingleton = new MySingleton(); Apr 17 09:22:57 so ive kinda fucked myself Apr 17 09:23:10 i have a mix of declarative and reactive Apr 17 09:23:17 any advice on resolving this? Apr 17 09:23:30 remove one of the both :p Apr 17 09:25:14 i cant Apr 17 09:25:32 i can't without making it more complicated Apr 17 09:25:37 fuckin Apr 17 09:26:34 How do you solve fragments overlapping during onBackPressed ? (the overlap occurs when I press back during AsyncTask success that triggers a view refresh ) ? Apr 17 09:27:12 what do you mean with "overlap"? Apr 17 09:28:39 well if you have a transparent background you can see the two fragments overlapping, which means that the text from the 1st fragment is on top of the 2nd one Apr 17 09:29:04 you should remove one fragment before adding the other Apr 17 09:29:13 I'm replacing it Apr 17 09:29:29 then there should not be an overlap Apr 17 09:29:37 are you adding them in onCreate? Apr 17 09:29:47 one of them? Apr 17 09:30:27 and if yes, do you properly check if there is already one added? this is the most common bug that creates multiple activities Apr 17 09:32:01 well I have only one activity with a placeholder for pages. Whenever I change fragments I call a method I created replaceFragment. It checks if the fragment is already in the fragmentManager to create a new Instance if needed and replace the container with that fragment. Apr 17 09:32:09 hi. i've found this to get fullscreen on android 4.2: http://stackoverflow.com/a/18543825 but i don't understand that OR (Pipe) operator. Can you explain what it does in this context? Apr 17 09:32:13 Then it adds the fragment to the backstack and commit Apr 17 09:32:37 cristen, how do you add the first fragment before anything is clicked? Apr 17 09:32:58 if you just do an .add in onCreate, this will create multiple fragments overlaying each other Apr 17 09:34:13 because with each config change, youll end up with another added frag Apr 17 09:34:16 danijoo: I get the lastFragment in the stack if there is one, if this is the case I replace the container, if not I open a new transaction and add the fragment. Apr 17 09:34:41 ah ok. mh. can you show the code? Apr 17 09:34:58 sure I can provide some snippets what do you need ? Apr 17 09:35:13 onCreate and fragment replacement on click Apr 17 09:36:01 <_genuser_> Mavrik: yeah, I was just having a argh moment while reading a turotial that's going into an elaborate design to create a "singleton" which is just a static. Apr 17 09:36:16 <_genuser_> ok, so I've moved all my inter activity data to the subclassed application. Apr 17 09:36:43 <_genuser_> lasserix: I think now I just need to put in an IntentService and so fetch'ing updating, in there and leave the var in appilcation scope and it's done. :) Apr 17 09:37:46 danijoo: I sent you these in PM to avoid flooding Apr 17 09:39:25 how can i get the viewpager's first item size? Apr 17 09:39:30 it might be onCreate Apr 17 09:40:01 if your activity recreates and savedInstanceState is null, youll add another fragment to the same container Apr 17 09:40:43 danijoo: if this was the case, the added fragment should be the MainFragment Apr 17 09:40:57 however the one that is going on top of the other is the ListFragment Apr 17 09:45:51 so no one has done any face recognition stuff then? :-) Apr 17 09:52:37 danijoo: https://youtu.be/7JIn-J-3G4k Apr 17 09:53:32 At first I act normal, and at the end I press back right when the animation is over Apr 17 09:56:01 Hello! I want to integrate map into my application. But i should show on map all world. Minimal zoom level on google map sdk v2 for android is 3. On different devices it shows different part of map. So how can i show all world on map. Maybe is it possible to hack zoom level or choose different maps? Apr 17 10:01:43 Anybody else knows why my fragments are overlapping only if I pressback right when a SwipeRefreshLayout is updated ? Here's a video showing the problem https://youtu.be/7JIn-J-3G4k I timed back correctly @ 00:25 Apr 17 10:10:25 Hi. Anyone had problems getting SoundPool to play certain audio clips? They seem to load without error, but no sound when playing. I'm thinking it's a problem with the format, but I can't find a difference between the audio clips that work and those that do not.. :/ Apr 17 10:13:40 <_genuser_> lasserix: lol, now that I put it in application object, I'm not even wanting to have any services do this work. Apr 17 10:13:49 no use a service. Apr 17 10:14:00 major background processing should not go in application Apr 17 10:14:37 sound pools are generally bugged Apr 17 10:14:38 in fact intent service is this exactly. Apr 17 10:14:47 all media is generally bugged Apr 17 10:14:58 http://stackoverflow.com/questions/6484574/how-bad-is-android-soundpool-what-alternative-to-use Apr 17 10:15:13 i has bug Apr 17 10:15:44 i have flags FLAG_DISMISS_KEYGUARD and FLAG_SHOW_WHEN_LOCKED on my activity Apr 17 10:15:58 activity shows when screenlock is open. that works Apr 17 10:16:12 <_genuser_> lasserix: yeah, I'm rigging up an IntentService right now. It will help keep main thread light and quick. Apr 17 10:16:26 but it has preferencefragment and when i click on preferenceScreen, the lockscreen backs on Apr 17 10:16:34 <_genuser_> lasserix: too bad about the service tho. I was really learning stuff about services. :) Apr 17 10:25:14 Whats the best way to make a grid view larger then "full screen" Apr 17 10:25:26 I want to make it horizontally scrollable Apr 17 10:25:52 put it in a scrollable container? Apr 17 10:26:05 So put the gridview in a scrollable container Apr 17 10:26:17 Would that be a ScrollView? Apr 17 10:27:42 a HorizontalScrollView, probably Apr 17 10:28:09 Ok so GridView inside a HorizontalScrollView Apr 17 10:28:10 Thanks Apr 17 10:32:15 just found out there's a german android channel, #android-de Apr 17 10:32:17 :D Apr 17 10:32:40 and german ubuntu site ubuntu.de Apr 17 10:32:51 and a german google! google.de Apr 17 10:33:29 fucking awesome! if you use exoplayer to play static mp4 files, ie the default player builders, it'll randomly cause an ANR sometimes! sooooo aweeesommmmeeee! Apr 17 10:37:38 hi. i'm creating an app for a restaurant (i'm creating an interactive menu). I want to show all the products with a swap, and every single view represent a product. how can i create that slider? I've read that is not possible to create activities dynamically. Apr 17 10:37:50 swipe* Apr 17 10:37:58 LucaS05, ViewPager Apr 17 10:39:33 danijoo: thanks! And is possible to express the number of views and their contents at runtime? Apr 17 10:39:53 yes Apr 17 10:40:05 danijoo: ok! Thanks again ;) Apr 17 10:40:57 Anyway i was having a problem running my app on a real device, because i was getting this error: java.lang.NumberFormatException: For input string: "" Apr 17 10:41:20 i've updated to android studio 1.2 beta 3 Apr 17 10:41:24 an empty string is not a number Apr 17 10:41:37 and the problem goes away Apr 17 10:41:52 danijoo: sry for multine ;) Apr 17 10:42:10 danijoo: it was an internal IDE problem Apr 17 10:42:24 it could also be a caching issue Apr 17 10:42:35 not a problem related to my code Apr 17 10:42:44 and it didnt recompile the file and used an old one Apr 17 10:42:50 and with the update, cache got reset Apr 17 10:42:56 danijoo: and how can i empty the cache? Apr 17 10:43:08 by rebuilding the project? Apr 17 10:43:10 Build -> clean Project Apr 17 10:43:22 danijoo: i've done that Apr 17 10:43:38 and if everything fails: File -> Invalidate caches/restart Apr 17 10:43:54 danijoo: i will try that instead! Apr 17 10:43:54 thats the holy shit, whats going on?? button in android studio Apr 17 10:44:35 Hey guys I have GridLayout and I specify rowCount = 3 and columnCount = 2 but when I go to design mode there is 31 rows and 16 columns why? Apr 17 10:45:23 how could I actually use com.google.android.gms.location.places.AutocompleteFilter.create(Collection placeTypes) to filter to just cities? The docs just say "placeTypes: The place types of predictions to be returned." without giving any example. Apr 17 10:56:42 <_genuser_> java.lang.NoClassDefFoundError: android.support.v4.content.LocalBroadcastManager Apr 17 10:57:14 <_genuser_> doesn't complain while building. and works fine in another project. but in this test project throw runtime exception. Apr 17 10:58:27 proguard? Apr 17 10:59:52 <_genuser_> just the default blank eclipse android project that I started. nothing specific put by me for proguard. Apr 17 11:00:06 is proguard enabled by you? Apr 17 11:00:20 support-lib included? Apr 17 11:00:40 if its not included, you get compile errors Apr 17 11:01:50 hello guys. Is there any lib for drag'n'drop listview? Apr 17 11:02:08 woozly, yes, I've used one before Apr 17 11:02:21 Troffel: how is it called? :) Apr 17 11:02:41 https://github.com/bauerca/drag-sort-listview Apr 17 11:02:51 note that it is no longer maintained though Apr 17 11:02:56 Troffel: nice! thank you! Apr 17 11:03:02 Oh.. i see, but I'll try it Apr 17 11:03:12 haven't had issues with it Apr 17 11:03:19 but I wouldn't build core functionality around it :) Apr 17 11:03:22 <_genuser_> danijoo: no, I didn't explicitly enable it. whatever it was set to when creating a new project. just like all my projects. Apr 17 11:04:35 <_genuser_> I see android-support-v4.jar in both projects. the one where it works and the one where it doesn't. Apr 17 11:04:46 you add them as a jar? Apr 17 11:04:56 eclipse? Apr 17 11:06:33 <_genuser_> eclipse. I didn't add it. it was already added. Apr 17 11:07:01 <_genuser_> when I expand Android Private Libraries, I see android-support-v4.jar Apr 17 11:07:10 if its eclipse, your soul is already lost ;) Apr 17 11:07:39 <_genuser_> no man, it not like that. Apr 17 11:07:59 <_genuser_> it's normally just fine. I'm thinking I missed something simple. I could always just create a new project and copy the crap over. Apr 17 11:08:14 <_genuser_> or proof it out and move it back to my main project where this crap is working fine. Apr 17 11:08:43 which version of the support library is it? Apr 17 11:09:04 <_genuser_> v4 Apr 17 11:10:17 how can i draw a circle outside of a rounded image view for downloading process ? Apr 17 11:10:51 sci-fic, ProgressBar? Apr 17 11:11:00 _genuser_: there are lots of releases of the v4 lib Apr 17 11:11:08 sci-fic, I would draw the circle in the parent view of the rounded image Apr 17 11:12:07 danijoo: did you see the video ? Apr 17 11:12:09 <_genuser_> Estel: I see. this should be whatever came with the API 18. I think that's the latest one I have. Apr 17 11:12:31 cristen, yes but I dont know. Your code is kinda hard to read though :P Apr 17 11:12:47 you mean it's badly written ? Apr 17 11:12:52 oo complicated :p Apr 17 11:12:54 _genuser_, you should use the most current Apr 17 11:13:01 or* Apr 17 11:13:02 cristen, so many stuff not related to the problem Apr 17 11:13:04 _genuser_: well, they're updated independently of the API levels ^.^ Apr 17 11:13:09 yeah ofc Apr 17 11:13:49 danijoo: can i do that with a progress bar ? http://i.stack.imgur.com/NYVlF.png Apr 17 11:14:06 sci-fic, just a custom progressbar interediate layout Apr 17 11:14:08 <_genuser_> Estel: so how do I check that version number? Apr 17 11:14:21 ok thanks appericate Apr 17 11:14:26 <_genuser_> danijoo: well, if I upgrade past API 18, eclipse/ADT will break, so I'm just building on API 18 fornow. Apr 17 11:14:40 _genuser_, lol. Apr 17 11:15:40 <_genuser_> danijoo: I do have AS working and fully functional. it's just that eclipse is so much faster on this machine. Apr 17 11:15:58 <_genuser_> personal preferences of individual devs aside, it's faster on my machine and it's easier to run it with another applications. Apr 17 11:16:30 <_genuser_> and my main proj is in eclipse. I'd rather finish the whole thing and then move to AS at a later time. Apr 17 11:16:36 if eclipse really cant build api > 18, this has nothing to do with personal preference anymoe Apr 17 11:17:05 <_genuser_> true that. but 18 isn't _too_ old yet, and it's faster atm to use eclipse. Apr 17 11:18:31 <_genuser_> anyhoo, let me google some more to see how I can fix it. Apr 17 11:19:38 tbh im not that much against eclipse. Use whatever you like :) Apr 17 11:20:07 but it gets harder and harder to get proper help with eclipse because people switch to AS these days Apr 17 11:20:35 and gradle really makes problems like yours easier to solve. Apr 17 11:23:18 <_genuser_> agreed. if this doesn't work, I'll attempt a clean project. if that doens't work.... then maybe I'll proof it out in AS. Apr 17 11:26:13 <_genuser_> so v4 and v7 are both library that each provide certain functionality and each have multiple releases. is that correct? Apr 17 11:26:40 yup Apr 17 11:26:57 <_genuser_> lol, kinda makes it confusing if the lib name itself have numbers in it. Apr 17 11:28:17 <_genuser_> if I try to update it says Android Support Library ver 19. even more confusing since it doesn't say whether it's v4 or v7 that's being upgraded to version 19. Apr 17 11:29:35 all Apr 17 11:29:45 its independent Apr 17 11:30:22 _genuser_ this will not be the last of the confusion... :) Apr 17 11:31:10 version 19? now is revision 22 :v Apr 17 11:31:28 <_genuser_> ah, I see. Android Support Library package includes v4 and v7 and couple of other things. Apr 17 11:31:37 every support library has a version and a revision Apr 17 11:31:47 version is v4, v7, v14 ... Apr 17 11:31:59 and revision upgrades with api versions (and bugfixes) Apr 17 11:32:06 <_genuser_> and Ashiren is right the latest is like 22. I don't know eclipse is finding 19 as the latest. Apr 17 11:32:16 ie what you currently want is support library v7 revision 22 Apr 17 11:32:29 <_genuser_> danijoo: yeah, everytime I read about it, it becomes clear. then few weeks later all jumbled up again. Apr 17 11:32:36 ^^' Apr 17 11:33:05 <_genuser_> danijoo: wouldn't one want both v4 _and v7 revision 22? Apr 17 11:33:17 eeyup Apr 17 11:33:36 <_genuser_> will have to youtube the eeyup sometime. Apr 17 11:33:43 not 100% sure Apr 17 11:33:48 does v7 depend on v4 Apr 17 11:33:50 ? Apr 17 11:33:55 if yes, you need them both Apr 17 11:33:58 if not, you dont Apr 17 11:34:04 _genuser_: http://renaissancebrony.deviantart.com/art/Big-Macintosh-Consultation-361567411 Apr 17 11:34:39 it is widely used in android developing features department Apr 17 11:35:47 <_genuser_> geez, I have api level 7,8,15 all installed. Apr 17 11:36:43 <_genuser_> Ashiren: interesting. Apr 17 11:37:20 i know rite Apr 17 11:37:40 <_genuser_> ok, so based on my SDK Manager, I have support library v21.0.3 installed. Apr 17 11:40:26 <_genuser_> both projects are identical except for the outcome. restart eclipse I suppose. Apr 17 11:57:20 Hi guys, do you know Codename One? Apr 17 11:58:28 isnt that just another "code for all devices with one language"? Apr 17 12:02:26 plenty of those around :P Apr 17 12:02:45 yeah Apr 17 12:02:45 <_genuser_> ok, I fixed it. finaly. Apr 17 12:02:57 if I had to choose, it woudnt be the one that uses java as language :p Apr 17 12:03:01 but this time using Java ;-) Apr 17 12:03:19 hehe ok ;-) Apr 17 12:03:23 why not? Apr 17 12:03:30 <_genuser_> I think what happened is that some SDK update upgraded the v4 lib. however, my first project was started before the update. Apr 17 12:03:57 <_genuser_> the android-support-v4.jar was different sizes. So I got the older one and paste it into the new project's /lib and it works fine now. Apr 17 12:04:03 <_genuser_> which makes me wonder why the new one would break. Apr 17 12:04:17 cydmax, i dont want to break another discussion about that :p Apr 17 12:04:54 danijoo, would you have picked python? :) Apr 17 12:05:14 ruby maybe Apr 17 12:05:37 and right now, im using kotlin for all new droid-projects Apr 17 12:06:28 cool Apr 17 12:06:39 I'll take a look at it. Apr 17 12:08:33 bt thats a personal preference Apr 17 12:08:38 if you like java, use it :) Apr 17 12:11:54 Kotlin looks a bit like swift or coffescript Apr 17 12:12:01 ehh coffeescript... Apr 17 12:12:26 i guess it's the swift of android indeed Apr 17 12:12:31 I dont think kotlin supports crossplatform yet Apr 17 12:12:36 i wonder tho if google don't have plans for a swift-like something Apr 17 12:12:41 java on speed :) Apr 17 12:13:10 hehe but in the end it's still java Apr 17 12:13:12 ;-) Apr 17 12:13:24 no. its not Apr 17 12:13:50 it just shares a lot of syntax and compiles to the same bytecode Apr 17 12:14:08 when I start something with FLAG_ACTIVITY_NEW_TASK it appears as another thing in task manager? Apr 17 12:14:28 think so, yeah Apr 17 12:14:38 ok. can you name me the advantages of kotling? I'm too lazy to go through all the documents now... Apr 17 12:14:39 ;_) Apr 17 12:14:41 please Apr 17 12:15:13 danijoo: is there to way clear previous activities but not start new task? Apr 17 12:15:42 SneakerXZ, easiest is to start the new task and finish() all old activities Apr 17 12:16:09 how? just startActivity() and immediately finish? Apr 17 12:16:31 cydmax, null-safty, lambdas, smart-cast, interfaces that can hold code, extension functions Apr 17 12:16:40 that are the most important I think Apr 17 12:17:04 oh. and you dont have to declare variable types. Apr 17 12:17:43 danijoo: how do you I finish all old activities? Apr 17 12:17:45 SneakerXZ, this question is asked 5 times every day. try to google it :) Apr 17 12:17:51 finish()? Apr 17 12:18:18 danijoo thanks man! Apr 17 12:18:21 danijoo++ Apr 17 12:18:24 ;-) Apr 17 12:18:26 danijoo: I am using FLAG_ACTIVITY_CLEAR_TOP but it is not working Apr 17 12:18:32 unless it is new TASK Apr 17 12:18:41 sysrqb, google it. Apr 17 12:18:50 ups. wrong name Apr 17 12:20:28 hm Apr 17 12:26:35 is there any problem when after startActivity I call finish? Apr 17 12:26:43 so current activity is not on stack? Apr 17 12:27:18 no Apr 17 12:27:29 but what are you actually trying to do? Apr 17 12:27:34 maybe theres a better way to design this Apr 17 12:28:46 I have something like welcome screen and it is main activity it Apr 17 12:28:53 and I want to skip it if a user saw it already Apr 17 12:29:01 is will look ugly as hell Apr 17 12:29:11 why? Apr 17 12:29:25 because users will see that activity blinking up for a short moment everytime they start the app Apr 17 12:29:41 so how to solve it better? Apr 17 12:29:46 make it a fragment Apr 17 12:29:55 hm Apr 17 12:30:04 and in your second activity an if case to show or hide that fragment Apr 17 12:30:06 and switch fragments? Apr 17 12:30:16 yeah. or fullscreen dialog fragment Apr 17 12:31:22 http://superpowered.com/androidaudiopathlatency/#axzz3XZLCqeNz Apr 17 12:31:39 even I start new actvity immediately it is not visible to a user Apr 17 12:31:55 and handling fragments would complicate entire thing Apr 17 12:33:20 That link is for anyone does any work with audio, or hates the audio latency issue on Android Apr 17 12:33:41 ok. then just call finish() in tour welcome activity after startActivity() Apr 17 12:33:43 that should work Apr 17 12:35:14 Or display the welcome screen from your main screen if necessary Apr 17 12:35:21 if(isFirstTimeUser()) showWelcome(); Apr 17 12:35:45 or create a delegating activity without a UI that chooses which screen to show first Apr 17 12:38:45 delegating activity is some special activity or regular activity? Apr 17 12:38:57 SneakerXZ, its a regular activity without an ui Apr 17 12:39:10 it is basically what I have Apr 17 12:39:16 darken: how would you handle the user logging out and someone else logging in, then them logging out and the first user logging in again? Apr 17 12:39:21 I do not set contentView unless I need Apr 17 12:39:29 basically you have some code in onCreate without setContentView and do startActivity(); finish(); Apr 17 12:39:34 yep Apr 17 12:39:58 Anthaas, that depends your whole usecase/ app ux, can't answer that Apr 17 12:40:10 darken: Was hypothetical. Apr 17 12:40:39 Anthaas, simply remove the users credentials from preference and open the delegating Activity again Apr 17 12:40:49 it will delegate to the login then Apr 17 12:41:20 danijoo: But what if the original user logs back in? i.e. not their first time Apr 17 12:41:32 Anthaas, you would obviously store preferences on a per user basis Apr 17 12:41:37 it is when I cleared their prefernces from my app :) Apr 17 12:41:42 yeah Apr 17 12:42:07 Hmm. I know technically its correct, but at the same time it isnt. Apr 17 12:42:18 Code wise i think i would opt for a mainactivity that displays a welcome screen if necessary Apr 17 12:43:00 yeah same here Apr 17 12:43:04 thats much more flexible Apr 17 12:43:09 If I log out and then back in, I dont want to see the welcome stuff every time. I get that what you COULD do is set a flag saying isLoggedOut = true, read it on app open, and if its true clear preferences and go from there, so that would solve the user logging out and back in again with no intermediate user. Apr 17 12:43:28 Depends on the usecase really, is it an app where every use has to login ? Apr 17 12:44:22 Yeah Apr 17 12:44:33 Lets compare it to something like dropbox Apr 17 12:44:39 you really only install the app once for yourself Apr 17 12:44:39 I guess if we want to make this relate to an actual app, one Im developing does. Apr 17 12:44:45 What does MyActivity has leaked window Apr 17 12:44:51 while you can log in/out that isn't really a primary usecase Apr 17 12:45:00 SneakerXZ, because you leaked one :p Apr 17 12:45:07 how could I? Apr 17 12:45:13 I guess so, but imagine then a family using a family app, on a family tablet, where you can have multiple people using. Apr 17 12:45:14 bad code Apr 17 12:45:24 MainActivity that does show a welcome screen with a "Skip to login" everytime unless someone is logged in. Apr 17 12:45:30 didnt close a dialog before pausing it for example Apr 17 12:45:39 then you leak that dialog Apr 17 12:46:11 Anthaas, if someone is logged it just down show it and offer a "switch account" dialog. Apr 17 12:46:13 ok Apr 17 12:46:15 I guess you could keep a private collection of people that have previously logged in. use this only for this purpose. Apr 17 12:46:25 do you know why can I be getting java.lang.InterruptedException ? Apr 17 12:46:36 whenever I want to debug it crashes Apr 17 12:46:41 with that exception Apr 17 12:46:54 Anthaas, consinder differentiating between an app introduction for the one installing it/setting it up and one for people logging in the first time. Apr 17 12:46:55 and it is not mentioning even my code Apr 17 12:46:56 if (!collection.contains(user)) { showWelcome(); } Apr 17 12:47:49 whenever debugger is connected my app is crashing Apr 17 12:47:49 wtf Apr 17 12:48:07 maybe a racecondition, debugger slows app down Apr 17 12:48:25 but even when I connect debugger later Apr 17 12:48:25 is it really crashing or just not responding Apr 17 12:48:29 crashing Apr 17 12:49:05 with this exception http://pastebin.com/h3spNfh1 Apr 17 12:54:53 oh because whenever I connect debugger I get window leaked exception Apr 17 12:55:25 after I leave activity Apr 17 13:02:14 hi, i'm trying to debug my program using android studio, but when the program crashes it does not point to where the error has taken place, can anyone help please? Apr 17 13:04:00 does it crash when the app is trying to start Apr 17 13:04:14 or at some point later during runtime Apr 17 13:04:15 Troffel: nope, in the middle of it, when i do a certain action Apr 17 13:05:04 has it never worked, or only now? Apr 17 13:05:49 Is there a way to supress might be null warning in studio Apr 17 13:06:04 astroduck: lint decorators Apr 17 13:06:15 Troffel: i probably made the mistake using to the code, but i cannot see what caused it to crash Apr 17 13:07:49 Has anyone already experienced fragments overlap with SwipeRefreshLayout ? Apr 17 13:13:07 toothpick, try restarting logcat a few times :) Apr 17 13:13:22 might be as stupid as that, when it simply doesn't output anything Apr 17 13:13:52 also try the "restart emulator" / reconnect device etc. if you haven't already Apr 17 13:14:51 Troffel: seems like logcat doesnt output anything Apr 17 13:17:18 cristen: What do I write inside SupressWarnings(...)? Apr 17 13:18:18 astroduck: null ? Apr 17 13:19:07 or try from the context menu if you're using android studio Apr 17 13:19:29 toothpick, then you can try to google around for answered problems with logcat not working :) Apr 17 13:20:04 aside from the standard 'try to restart / reset everything reset/restartable" I don't have a precise reason :P Apr 17 13:20:06 Anyone know how to work with MediaSessionCompat and MediaStyle notifications? Apr 17 13:21:30 I'm trying to set my token for my notification, but the AppCompat v4 version of MediaSession doesn't seem to play well with my setMediaSession Apr 17 13:21:33 https://github.com/iPonyRadio/91.8TheFan/commit/0a2d61e3ba58b249a2b5e70c6061f647a4f58b7a Apr 17 13:23:15 Hey guys how I can make textview inside gridlayout to take full space? http://pastebin.com/CifNza6t Apr 17 13:23:21 PixP[AFK], maybe MediaSessionCompat.Token.getToken() is what you're looking for? Apr 17 13:24:14 Has anyone experienced this with SwipeRefresh ? https://www.youtube.com/watch?v=7JIn-J-3G4k Apr 17 13:24:32 it only happens if you press back right when the animation ends Apr 17 13:25:13 like if the two transactions are firing up at the same time or something Apr 17 13:28:06 cristen: Doesnt work :/ Apr 17 13:28:33 Also, its fine to use the same Handler instance throughout the whole activity Apr 17 13:28:36 right? Apr 17 13:30:11 astroduck: try this Apr 17 13:30:12 http://tools.android.com/tips/lint/suppressing-lint-warnings Apr 17 13:30:16 Hi, I've got some structured data (Name, ID, MAC address,...) and am deciding whether to put this in sharedpreferences or sqlite db. Since the data is structured I'm tempted to go with the sqlite database but the problem is that it would only contain about 3 entries. The alternative I thought of was to save it as a JSON array in sharedpreferences but this doesn't enforce a certain structure (up to me to Apr 17 13:30:22 build correct JSON). Any thoughts on which approach is better? Thanks! Apr 17 13:30:45 Just save it in a file Apr 17 13:31:15 Depends on what you want to do with your structure Muted Apr 17 13:31:40 but SimonVT might have guessed right :( Apr 17 13:31:40 I assume you want to persist the data between app-restart / reinstalls, otherwise you could just store it in memory Apr 17 13:31:41 :)* Apr 17 13:32:01 SimonVT: I don't think i see how that makes more sense than json in sharedpreference? Apr 17 13:32:13 cristen: just read some fields Apr 17 13:32:20 Troffel: yes, it needs to persist Apr 17 13:32:51 You're saving json in an xml file.. Does that make sense? Apr 17 13:33:20 SimonVT: not at all no =) Apr 17 13:34:06 But lets say i'd use an xml instead of json then Apr 17 13:34:11 Muted: it depends on how you retrieve this data Apr 17 13:34:26 is maintaining a local sqlite database the only way to create offline apps ? Apr 17 13:34:28 is it static data ? do you retrieve it over the network ? Apr 17 13:34:49 Anyway, it doesn't really matter.. All will probably work Apr 17 13:35:05 cristen: Parts will be retreived over network, parts will be set by user Apr 17 13:35:20 cristen: @me ? Apr 17 13:35:27 nope solofight ;) Apr 17 13:35:27 Not much difference between passing an inputstream or a string to gson/whatever you use to deserialize Apr 17 13:35:43 cristen: ok, sorry Apr 17 13:35:45 I hate this damn world, how can my app crash on debug only :P Apr 17 13:35:47 Well he was just asking what was the best forf is usecase Apr 17 13:35:49 SimonVT: True, but I'd expecte sql to have more overhead Apr 17 13:36:06 Sure Apr 17 13:36:09 Also a lot more code Apr 17 13:36:46 Using prefs will take less code than using sql Apr 17 13:37:02 if you're just doing I/O stuff Apr 17 13:38:04 cristen: so would you say only to use sqlite if I'm planning on doing more than just super pbasic queries? Or when would i use the sql then? Apr 17 13:38:20 I'm using google play service (Google plus part) and when I run on debug it crashes. work good on regular run mode. Also seem to work good if I do not put any breakpoints Apr 17 13:38:38 hm, somehow I cannot my device anymore Apr 17 13:38:49 whenever I connect a debugger and open an activity it crashes Apr 17 13:38:56 without connected debugger it works fine Apr 17 13:39:02 lol same as SneakerXZ Apr 17 13:39:07 do you use google play service? Apr 17 13:39:10 yes Apr 17 13:39:16 same problem for me :( Apr 17 13:39:24 do you use kotlin? Apr 17 13:39:28 no Apr 17 13:39:53 Muted: when you need a db, storing just 3 rows in a db might be overkill Apr 17 13:40:18 Haha, alright, thanks a lot for the help guys! Apr 17 13:40:22 Mavrik, the issue is that .setMetadata needs a android.media.session.MediaSession.Token not an android.support.v4.media.session.MediaSession.Token Apr 17 13:40:33 And it seems they aren't compatable Apr 17 13:40:44 SneakerXZ: http://pastebin.com/GKTUEBMv can you check if my code looks like yours? Apr 17 13:40:55 or share your code here if you don't understand kotlin Apr 17 13:40:58 got stuck here also Apr 17 13:41:20 PixP[AFK], hmm, mediasessioncompat.token says it returns the android.media.session.mediasession.token object. Apr 17 13:41:27 yoavst: I have different use case Apr 17 13:41:35 for me it does not crash in Google Service calls Apr 17 13:41:47 yea for me also, only when I try to debug Apr 17 13:41:55 what exception you get? Apr 17 13:41:55 Mavrik, tell my code that Apr 17 13:42:04 SneakerXZ: not exception, seg fault 11 Apr 17 13:42:15 04-17 16:38:50.157 7340-7340/com.yoavst.musicstats A/libc﹕ Fatal signal 11 (SIGSEGV), code 1, fault addr 0x3c in tid 7340 (avst.musicstats) Apr 17 13:42:37 Isn't it related with the signature stuff to use with GPServices ? Apr 17 13:42:49 using a debug key or something Apr 17 13:42:49 cristen: I've added the SHA1 of debug keystore Apr 17 13:42:54 oh k Apr 17 13:42:59 is there multiple debug keystores? Apr 17 13:43:03 ok i waited for some time, now il ask my question again Apr 17 13:43:07 for regular debug and real debug? Apr 17 13:43:11 is maintaining a local sqlite database the only way to create offline apps ? Apr 17 13:43:19 solofight: you can store in the json Apr 17 13:43:21 AFAIK no yoavst Apr 17 13:43:30 did you try restarting adb ? Apr 17 13:43:37 And, Mavrik I can't cast them either Apr 17 13:43:42 Incompatable types Apr 17 13:43:43 cristen: so what could be the reason. I've checked debug without breakpoint and it works Apr 17 13:43:49 but with breakpoint it crashes Apr 17 13:44:11 I do have random crashes using breakpoints too, it depends on which file Apr 17 13:44:13 yoavst: db storage vs json storage - wont there be a performance hit with json ? Apr 17 13:44:20 and thanks for replyig yoavst Apr 17 13:44:23 replying* Apr 17 13:44:27 doesn't necessarily means it doesn't work Apr 17 13:44:42 cristen: the activity using play services Apr 17 13:45:11 no stack trace ? Apr 17 13:45:21 solofight: depend on how much data do you have. I've used realm.IO in one of my apps. you should check it, it is alternative to SQLITE but not json Apr 17 13:45:27 cristen: no Apr 17 13:45:34 04-17 16:38:50.157 7340-7340/com.yoavst.musicstats A/libc﹕ Fatal signal 11 (SIGSEGV), code 1, fault addr 0x3c in tid 7340 (avst.musicstats) Apr 17 13:45:49 (avst.musicstats) << not full package name, if it matters Apr 17 13:45:52 * solofight googles realm.IO as mentioned by yoavst Apr 17 13:46:39 cristen: I've done adb kill-server. I'll check if it still happens Apr 17 13:47:01 nope, crashes Apr 17 13:47:26 with no logs at all it's weird Apr 17 13:47:36 someone remembers how the library that shows logcat on device called? Apr 17 13:47:44 the new one Apr 17 13:48:27 is it possible to setResult across multiple activities? X launches activity A, it launches B, it does something and setResult but it never gets to X, how to solve it? Apr 17 13:48:49 cristen: do you think setUnchoughtExceptionHandler will help to find the problem? Apr 17 13:49:24 I'm not experienced enough to give you an answer try it out yoavst, and get back here if it helps :P Apr 17 13:55:18 SneakerXZ: ping me if you find solution Apr 17 13:55:30 yoavst: I do not have time for that Apr 17 13:55:38 I develop without debugging now :) Apr 17 13:56:35 yea me too :/ Apr 17 13:57:59 SneakerXZ: which device do you use, which android version? Apr 17 13:58:07 yoavst: Nexus 4 Apr 17 13:58:11 in simulator it is fine Apr 17 13:58:34 I didn't installed play service on genymotion yet :( Apr 17 14:00:43 Anyone had problems getting SoundPool to play certain audio clips? They seem to load without error, but no sound when playing. I'm thinking it's a problem with the format, but I can't find a difference between the audio clips that work and those that do not.. Apr 17 14:02:10 SneakerXZ: wait Apr 17 14:02:16 Maybe I found the solution Apr 17 14:03:21 SneakerXZ: override fun onConnected(connectionHint: Bundle?) { mainThread { e("it doesn't crash, get a cookie!") } } Apr 17 14:03:42 put the code inside handler.postDelayed (create your handler on ui thread) Apr 17 14:06:58 Never mind, I'm an idiot. :D Apr 17 14:17:39 I wish github could let you insert diff snippets in markdown Apr 17 14:27:31 Hi there Apr 17 14:27:51 I have a fresh Ubuntu 14.04.2 LTS box installed and I want to install Android development tools Apr 17 14:28:01 I'm new to Android development Apr 17 14:28:14 well, I'm kinda new to Ubuntu aswell Apr 17 14:28:31 any tutorial to install the sdks, etc,? Apr 17 14:29:43 https://developer.android.com/training/basics/firstapp/index.html <-- this will be your not-so-friendly start point, any is useful Apr 17 14:30:14 *anyway is useful, for me that I'm newbie too help me a lot Apr 17 14:30:15 :) Apr 17 14:32:37 For some reason, when I put android:process=":BGServ" in my service tag, then Android will not call onStartCommand for me? When I remove it, the service is started normally. (On Android 5) What am I doing wrong? Apr 17 14:33:36 Thanks! Apr 17 14:34:58 Man_in_the_B0x: Android Studio is the officially supported IDE. There are plugins for Eclipse (called ADT) as well but unless you're using Eclipse specifically for some reason (other projects or such), Android Studio is your best bet. Apr 17 14:35:59 (ADT has worked mostly fine for me, I'm using Eclipse for other stuff and I'm too lazy to learn a new IDE :)) Apr 17 14:38:56 does anybody use Visual Paradigm in Android studio for generating UML from existing projects? Apr 17 14:40:08 For some reason, when I put android:process=":BGServ" in my service tag, then Android will not call onStartCommand for me? When I remove it, the service is started normally. (On Android 5) What am I doing wrong? Apr 17 14:41:02 bolovanos: Nope, have you Apr 17 14:41:54 ugh, how do I disable the tinting done by appcompat? Apr 17 14:42:07 I have a checkbox where I've changed the check image, and it's showing the tint drawable above my image :-/ Apr 17 14:42:09 I have installed VP, VP plugin for AS (according to http://www.visual-paradigm.com/support/documents/vpuserguide/2381/2385/66578_creatingauml.html), but for uknown reason - it does not work the same way - i do not see dialogue in point 3 Apr 17 14:43:16 er, I fucked up, I guess, used background instead of :button Apr 17 14:44:36 strangely, it's not documented... Apr 17 14:44:45 deadmund: Possibly because by including the process tag you are putting the Service in a separate process Apr 17 14:45:15 has anyone expericen with FLAG_ACTIVITY_FORWARD_RESULT ? Apr 17 14:50:45 My brain can't cope with understanding matrices and transforming them for imageview drawables :( Apr 17 14:56:11 yiati: I am doing precisely that on purpose. In Android 4.x it worked fine. What is the problem? I can see that the process is being created using adb shell and the ps -p command. Apr 17 14:56:20 yiati: but onStartCommand is not firing? Apr 17 14:56:53 deadmund: Are you starting with startCommand or bindService? Apr 17 14:57:23 Estel: What kind of transformations are you trying to make? Apr 17 14:57:45 yiati: startService(new Intent(context, ServiceName.class)) Apr 17 14:58:01 yiati: well, I'm looking at modifying PhotoView (or similar) to change the bounds that the image can be panned within Apr 17 15:00:19 Is it possible to add Action Bar to exisiting code/project Apr 17 15:00:28 android_sandwich: yes, definitely Apr 17 15:01:07 I'm using Android Studio. any reference where I can find this info? Apr 17 15:01:19 deadmund: Hmm weird, not sure, is there anything different about the code starting or receiving the service for 5.x code? Apr 17 15:02:13 yiati: no Apr 17 15:02:16 android_sandwich: it depends what your project looks like at the moment. But check out http://developer.android.com/guide/topics/ui/actionbar.html Apr 17 15:02:27 android_sandwich: basically, you need to change the Theme. Apr 17 15:02:29 yiati: Why did you ask about startService vs. binding? Apr 17 15:02:31 android_sandwich: It's not specific to an IDE, I like this link recently https://chris.banes.me/2014/10/17/appcompat-v21/ Apr 17 15:03:03 deadmund: if you bind instead of startService then onStartCommand is not supposed to be called Apr 17 15:04:06 Estel: we only support 3.0+ devices. I will take a look at that link. Any warnings before I make the changes? Apr 17 15:04:28 yiati: thanks I'll look at this link as well Apr 17 15:04:35 android_sandwich: noone has 3.x, might as well make it 4.x Apr 17 15:05:03 android_sandwich: https://developer.android.com/about/dashboards/index.html Apr 17 15:05:21 api 15/16 in the new minSdkVersion these days for most Apr 17 15:05:39 yiati: yea I have been thinking of doing so. It's an enterprise app so all changes need to be made after approval :) Apr 17 15:06:38 android_sandwich: definitely, fun facts to let coworkers know is that on that dashhboard "Any versions with less than 0.1% distribution are not shown." so 3.x is <0.1% of Android users Apr 17 15:06:49 android os Apr 17 15:07:12 My service process looks like this: net.ednovak.two_ton:BG_Service and if I log the intent trying to start it I see this: net.ednovak.two_ton/.BG1 is that a problem? (/. instead of : ?) Apr 17 15:07:19 yiati: yea I saw the dashboard the other day. Any idea why 3.0 is pratically non-existent but 2.x is still around Apr 17 15:07:28 Because it was only on tablets Apr 17 15:07:34 and nobody bought Android 3.0 tablets Apr 17 15:07:42 android_sandwich: honeycomb was a flop, and gingerbread wasn't Apr 17 15:08:11 I see. Apr 17 15:08:36 So adding Action Bar shouldn't be too painful? Apr 17 15:08:55 It's more of a design change than a technical change Apr 17 15:09:30 Estel: true Apr 17 15:10:05 wel, thanks guys (Estel, yiati) for your quick help! :) Apr 17 15:10:22 The enterprise project I was working on a few months had about 30% of devices on Honeycomb still :( Apr 17 15:10:25 good luck Apr 17 15:17:52 is there a guide for creating an android app that has some components written in another language, e.g. C++ ? Apr 17 15:19:42 I haven't heard of one in particular myself that I could recommend Apr 17 15:19:59 kalimaya, any that you couldn't recommend? :) Apr 17 15:20:43 I don't have any, and I'm having trouble with the uni wifi, so I can't load web pages. Apr 17 15:21:22 ok. any magic words to ask google? interoperability and something? Apr 17 15:23:33 ndk Apr 17 15:23:51 aha, thanks Apr 17 15:23:58 yiati, not so much honeycomb was a flop so much as ics came out so quickly afterward Apr 17 15:24:05 not enough time to get momentum on a tablet-only OS version Apr 17 15:24:17 ics is basically honeycomb++ Apr 17 15:33:37 yiati, wrote them on helpline..., reason why I have installed it is this http://stackoverflow.com/questions/14096641/searchable-configuaration-returning-null-for-the-searchview , I am unable to make it working - are you familiar with this integration? Apr 17 15:36:16 But so nobody sees anything I could do to fix this? http://stackoverflow.com/questions/29701637/cant-use-support-v4-mediasession-token-with-notification-mediastyle-setmediases Apr 17 15:39:41 hey, my app keep crashing when trying to turn on bluetooth Apr 17 15:40:06 Could not find class 'android.bluetooth.BluetoothManager', referenced from method org.disrupted.rumble.network.linklayer.bluetooth.BluetoothUtil.getBluetoothAdapter Apr 17 15:40:16 I don't understand, it's like Bluetooth is broken now.. Apr 17 15:44:57 ok Visual Paradigm does not support Android studio integration - info from helpline - at least they were fast :/ Apr 17 15:45:38 Nevermind. I figured it out, although I need API level 21 for the fix Apr 17 15:45:44 Which is what I'm trying to avoid Apr 17 15:52:28 Where can I file a bug for a factory image of a device? Apr 17 15:52:52 how to reset dalvik cache ? Apr 17 15:53:54 my phone seems stuck in a while loop at boot time lol Apr 17 15:54:25 deadmund: presumably with the vendor's developer relations team. or "team", as the case may be. Apr 17 15:55:42 i already have the "internet" permission on my app, will adding "access_network_state" in an update trigger the need for approval? Apr 17 15:55:58 lewellyn: ok thanks Apr 17 16:00:46 yoavst suggested me to use realm.io for offline sync ... i am trying to understand how it works at the background and i am not able to :( Apr 17 16:01:06 https://realm.io/docs/java/ this talks about all implementing and no architecture on how it works Apr 17 16:03:13 is anybody familiar with search interface integration? http://developer.android.com/training/search/setup.html Apr 17 16:04:26 What's the difference of adding a widget button vs adding a bitmap with ontouchlistener? Apr 17 16:06:02 For some reason, in Android 5.1, when I change my service's process name (android:process=":something") then onStartCommand is not fired. (If I use isolatedProcess="true" it is fired correctly). What am I doing wrong? Apr 17 16:07:28 searchManager.getSearchableInfo(getComponentName()) returns: 'android.app.SearchableInfo@42424b48' Apr 17 16:22:19 I've been struggling with implementing a custom ViewGroup and a custom child View for a few days now, its very bare-bones, but for some reason I cannot get the child view to appear after it is added to the viewgroup. https://gist.github.com/Michels10/86ab682f5126496415f1 Apr 17 16:22:48 I've debugged and the viewgroup has 'children' views, but they don't get drawn to the screen. Apr 17 16:22:55 anyone playing with Camera2Basic sample? its crashing and rebooting all over the place on my S6 :/ Apr 17 16:22:59 (even after calling invalidate()) Apr 17 16:23:25 Chainfire, Samsung phones are known for buggy camera software Apr 17 16:24:28 iprime be that as it may, Google's new Camera app which uses Camera2 API works absolutely fine Apr 17 16:24:59 so have you checked the log then? Apr 17 16:27:03 iprime yes, something internal appears to be timing out and then the device reboots Apr 17 16:32:36 no idea then, i've only used the legacy camera api and had to specifically handle samsungs Apr 17 16:34:57 Is there a way to force a volley request to not cache? Apr 17 16:36:36 Man, it feels like it's hard to find support for a beginner like me. Apr 17 16:38:50 shekibobo: "public final void setShouldCache(boolean shouldCache)" Apr 17 16:38:59 thanks Apr 17 16:40:12 JWong, yes it is... Apr 17 16:40:24 JWong: What does it matter what the difference is? Also you don't add a click listener to a bitmap, you set it to a view which can have a bitmap as a background Apr 17 16:42:26 bolovanos: Asking if someone is familiar with something is not the best way to get help. The best way is to ask a specific question :D Apr 17 16:42:47 I'm using canvas to draw the bitmap. I can turn it into an imageview? Apr 17 16:43:28 JWong: An ImageView may be what you want, so sure Apr 17 16:43:49 Are these two any different vs ? Apr 17 16:44:39 My problem is I don't have a specific question. I'm trying to understand what's the best structure to do my tests. Apr 17 16:46:00 donniezazen: Not really Apr 17 16:46:23 I need to create bitmap objects and everywhere I look on stackoverflow or youtube guides, they all use canvas to draw bitmaps which means I have to throw away my Android Studio layouts since, I think, canvas override the layout file with setContentView. Apr 17 16:46:28 yiati: cool Apr 17 16:46:47 yiati, i think I did - I am constantly getting "java.lang.NullPointerException" here "searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));" Apr 17 16:49:11 donniezazen: vs is when the two become interesting. The first is useful if you want to put view in the listview in xml, and the second is useful if you want to put views in the listview programatically, so for viewgroups is when it might be useful Apr 17 16:49:54 bolovanos: On what field, searchView, or searchManager. That's the first question Apr 17 16:50:14 hence the beauty of the new art NPE reporting :D Apr 17 16:50:26 which tells you which field Apr 17 16:50:32 yiati: yeah in the vs example I was just going to use that as a template. So in that case it doesn't really matter. Apr 17 16:51:17 donniezazen: Nope, but TextView is not a ViewGroup so the first one wouldn't really make sense anyway Apr 17 16:51:34 yiati, probably searchView, beacuse "searchManager.getSearchableInfo(getComponentName()) returns: 'android.app.SearchableInfo@42424b48'" Apr 17 16:52:37 PixelPerfect, saw you merged the PR. Did it work for ya? Apr 17 16:53:57 bolovanos: Okay so the next question is why searchView is null Apr 17 16:54:12 I cannot tell you that based off the info given Apr 17 16:54:35 yiati: I created a new layout file with TextView as the root element which automatically created but the example I am working through uses Apr 17 16:55:05 yiati, that's what i do not know, what else you need to know...? Apr 17 16:55:43 bolovanos: Are you inflating the view, and/or the root it's attached to? Apr 17 16:58:08 http://pastebin.com/FCnU3FHm Apr 17 16:58:19 am I doing something wrong there it is not sorting in order of ascending Apr 17 16:58:25 there seems to be no sort at all Apr 17 16:58:55 yiati, I am doing this example http://developer.android.com/guide/topics/search/search-dialog.html Apr 17 17:00:01 donniezazen: If an XML element is empty (e.g., ), you can use the empty-element tag (e.g., ). Apr 17 17:00:42 Lonesoldier728: Use Log.d to figure out what's going on. Apr 17 17:01:15 TacticalJoke: thanks that makes sense. Apr 17 17:02:40 Lonesoldier728: Also, I think you can use Integer.compare there (rather than Integer.valueOf and Integer.compareTo). Apr 17 17:03:18 yiati, paralelly - I have working sample project Searchable Dictionary, which is for bit overkill as example, but it shows the search interface. I am stripping this sample down to have minimalist version, but I am unable to reproduce same Error Apr 17 17:06:33 it is showing kind of right but then not sure why it is printing out wrong Apr 17 17:08:22 Lonesoldier728: You can be 100% certain what is or is not happening by using Log.d. :) Apr 17 17:09:42 masterjeff, Yep! And I also got MediaStyle Notifications...somewhat...working Apr 17 17:10:07 sweet! Apr 17 17:10:17 nevermind Apr 17 17:10:23 damn was calling wrong position Apr 17 17:15:17 Hey guys.. got a weird question from a 3rd party dev.. Apr 17 17:15:31 “what is the API (URL or DLL that we need to use to make the call) – I see that it is using Bundle() object to pass the parameters.  What is the implementation for Bundle() object?  How do we call that from our website?” Apr 17 17:16:02 they want to deep link into our app Apr 17 17:16:17 I’ve set up the intent to do so from another app before.. Apr 17 17:19:01 “android deep link action_send bundle from website" Apr 17 17:19:10 possible? Apr 17 17:19:28 haha, I brick my phone with bluetooth, it is not even rooted Apr 17 17:19:33 well, fuck Apr 17 17:19:53 I am disatisfied, google ! Apr 17 17:20:35 lol whaaaat? how did tou manage that? Apr 17 17:20:50 I have no idea Apr 17 17:21:05 but suddenly I have this weird error Apr 17 17:21:26 and now it seems to be stuck in a while loop during boot time :) Apr 17 17:26:37 and what makes you think it had anything to do with bluetooth? Apr 17 17:26:50 why not look at logcat and find out what the problem actually is :p Apr 17 17:35:48 http://www.reddit.com/r/swordorsheath is so easy. Just look for the Adam's apple. :D Apr 17 17:37:58 hmmm “java.net.SocketTimeoutException: Read timed out Apr 17 17:37:58 “ Apr 17 17:38:02 anyoen have this issue? Apr 17 17:38:57 tricknology: It's just a standard Socket exception. What is the problem? Apr 17 17:40:15 Seems that when some large queries are executed this pops up Apr 17 17:40:32 wondering if a good fix is to set the timeout higher? Apr 17 17:40:46 i could optimize the query maybe Apr 17 17:45:05 Has anyone ever had to deal with managing both support fragments and standard fragments? My app is 4+, and I have all my existing fragments subclassing the support Fragment, but I now have to integrate with a fragment from the appcompat libraries that subclasses the non-support Fragment class Apr 17 17:45:42 zambo, fragment from appcompat always subclass support fragments Apr 17 17:45:51 not in the leanback library Apr 17 17:46:24 hi Apr 17 17:46:25 see: https://developer.android.com/reference/android/support/v17/leanback/app/BrowseFragment.html Apr 17 17:46:29 strong is the smell of parallel hierarchies Apr 17 17:47:55 I don’t really see any options besides refactoring my existing fragments (I’m not aware of any that MUST subclass support fragments) or copying the BrowseFragment code into my project and changing the super class Apr 17 17:50:55 zambo, be specific about using a particular library next time, and you can use both Support and non-support fragment manager at the same time Apr 17 17:51:22 zambo, I see you failed to notice BrowseSupportFragment Apr 17 17:51:42 zambo, get eyes checked, stat Apr 17 17:52:03 hahaha, thank you very much pfn :) Apr 17 17:52:26 pfn i was dissapointed that bruce eckel didn't answer any of those questions in his video; half way through it was over :( Apr 17 17:52:35 I have a small problem. Short version: in my onReceive method, overrided from BroadcastReceiver, Do I need to manual destroy the received Intent after use? I am using AlarmManager to schedule a alarm. I am putting a string variable as EXTRA in an Intent and putting that Intent in a pendingIntent. In my onRecieve I am retreiving my variable. But, it only works the first time. After that the variable is not updating... It always shows the value I test Apr 17 17:52:48 Hard to explain... Sorry for the messy msg..! Apr 17 17:57:53 :| inflating a layout sub_layout with inflate(R.layout.sub_layout, root_layout, true) and then setting visibility to GONE on the created sub_layout, also modifies the visibility of the already inflated root_layout Apr 17 17:58:45 inflate(R.layout_sub_layout, root_layout, false) and then adding sub_layout to root_layout worked fine setting visibility only on the sub_layout Apr 17 17:59:06 idk I must have been missing something Apr 17 18:00:35 yiati: The first one returns the parent, not the child. Apr 17 18:00:48 I guess you're setting the visibility on the returned View Apr 17 18:01:07 TacticalJoke: damnit...... yep that was it, thanks! Apr 17 18:03:27 pfn: u told me to use new intent yesterday , i tried it but couldnt get the extra parcelable from the service Apr 17 18:03:29 It's confusing, IMO. It has thrown me before. :) Apr 17 18:04:35 john67, onNewIntent? Apr 17 18:04:41 yeah Apr 17 18:04:45 * pfn shrugs Apr 17 18:04:50 run through a debugger Apr 17 18:05:27 it was sending null, Apr 17 18:05:38 masterjeff, TacticalJoke problem solved Apr 17 18:10:31 hopefully cyanogenmod is here to save the day Apr 17 18:17:04 hi, i'm trying to debug my program using android studio, but when the program crashes it does not point to where the error has taken place, can anyone help please? Apr 17 18:17:10 Can anyone recommend a good mysql android app? Apr 17 18:17:50 toothpick: In the window at the bottom, remove the filter at the top right (set it to "No Filters") and set the "Log level" to "Error". Apr 17 18:20:26 TacticalJoke: damn, i was stuck on it for an hour now, thanks so much :) Apr 17 18:22:45 I think what happens is that sometimes (perhaps when exceptions are thrown early on in an app) the LogCat output isn't tagged with our app ID. Apr 17 18:23:06 So we have to disable that filter (enabling Error makes it easier to find exceptions from the no-filter output). Apr 17 18:23:50 I'm still not sure of why, at least in some cases, exception messages aren't tagged. I've seen cases where it's either tagged or not tagged seemingly arbitrarily. Apr 17 18:36:04 I'm working on a project with several beginner-intermediate developers. None of which have experience with Dagger or MVP. If we are wanting to implement the MVP pattern for our presentation layer, would trying to use dagger on top of that be too complex? Apr 17 18:36:33 we have a group of 9 or so, so everyone would need to be on board with both of new coding flows Apr 17 18:38:36 i'd probably do a simple app with beginners the traditional android way, discuss why (if) it sucks, and then add dagger, and mvp to see how it remedies Apr 17 18:39:28 are they beginner android devs, or just beginner devs in a general sense ? Apr 17 18:39:45 a wide range Apr 17 18:40:08 we have a few guys that have just switched over to android from devops or sys admin Apr 17 18:40:22 a few juniors and people just out of college Apr 17 18:40:26 hopefully they are smarter than me, because while mvp is easy on paper, some of these mvp frameworks i dont grok Apr 17 18:40:49 everyone is sitting at 0-1 yr on android Apr 17 18:44:15 mrfu i'd limit shiny new things for beginners, or have your more experienced guys fresh out the mvp / dagger parts Apr 17 18:44:23 s/fresh/flesh Apr 17 18:46:34 gotcha Apr 17 18:46:47 I think I'm inclined to agree with you Apr 17 18:46:50 and inevitably there will be concurrency, so some rxjava too :) Apr 17 18:47:37 we are using greenrobot Apr 17 18:47:56 dont have any experience with that Apr 17 18:48:19 it is a little easier to grokk than rx for async stuff Apr 17 18:48:24 but you can't compose anything Apr 17 18:48:40 that seems like a big problem Apr 17 18:48:42 heh Apr 17 18:49:38 I feel like MVP/DI is easier than rx Apr 17 18:50:25 I've been working on rx for two weeks and am just now getting it Apr 17 18:51:00 mrfu: MVP/DI is certainly not exclusive with rx, they are complementary Apr 17 18:51:15 event buses conflict somewhat with rx though, I haven’t used an event bus for a while now Apr 17 18:51:30 yea I'm not saying they don't work together Apr 17 18:51:36 yeah, i think rx could have a steep curve but - doing what Rx achieves the traditional way requires mastery of concurrency primittives and even steeper curve Apr 17 18:51:41 I'm saying you can only through so many new things at someone at one Apr 17 18:51:43 once* Apr 17 18:51:51 especially a whole group of someones Apr 17 19:05:22 hello guys Apr 17 19:05:32 g00s: galaxy s6. buy or not buy? Apr 17 19:05:48 gdrc i don't know - never saw one Apr 17 19:06:04 buy Apr 17 19:06:15 The one with the curved edges feels so nice. Apr 17 19:06:23 i want all the 1440p ones Apr 17 19:07:15 i would buy the flat for 580 euro Apr 17 19:07:52 TacticalJoke, feels so nice? Apr 17 19:07:58 Its very sharp in the hand Apr 17 19:08:39 If only samsung would remove all its shit from the notification drop down page... Apr 17 19:08:56 The edges feel nice to swipe. Apr 17 19:08:59 im staying clear from samsung till that happens Apr 17 19:09:47 at least as far as xposed removal of it is impossible Apr 17 19:09:50 gdrc: samsung. not buy :| Apr 17 19:10:09 yeah get a lumia or iphone :D Apr 17 19:10:09 I have almost no motivation to buy another Android device. Apr 17 19:10:16 Despite the fact that I don't have a 5.x device. Apr 17 19:10:16 ah, that reminds me. I've been meaning to try the xposed lollipop build. Apr 17 19:10:20 Android stuff bores me so much. Apr 17 19:10:31 groxx: need the device with best camera for august usa trip Apr 17 19:10:32 i'm never buying another android phone; i'll play with low cost tablets for dev though Apr 17 19:10:41 TacticalJoke, whats fun then? Apr 17 19:10:50 I don't know. Maybe I'm just getting old. :D Apr 17 19:10:57 TacticalJoke: http://s3.amazonaws.com/kym-assets/photos/images/original/000/153/473/Shun+the+non-believer!!!1!.bmp?1311549307 Apr 17 19:11:02 haha Apr 17 19:11:08 I see the kids in /r/Android talking about "Zomg, {boring app} now has material design" and I just can't get excigted. Apr 17 19:11:11 excited* Apr 17 19:11:27 oh man, i remember shun from Charlie Apr 17 19:11:45 I was watching a nature documentary featuring giraffes fighting, the other day. They fight *hard*. Apr 17 19:11:52 Bashing their necks into one another. Was the strangest thing. Apr 17 19:11:54 TacticalJoke: yeah, the zomg-materialification doesn't get much more than a "... so?" from me Apr 17 19:12:11 giraffes are serious business Apr 17 19:12:49 https://youtu.be/CsGYh8AacgY?t=69 Apr 17 19:12:53 I also can't get excited by any of the Google apps. I just see them as boring and buggy. Apr 17 19:12:59 Not sure how those people do it. Apr 17 19:13:11 practice makes perfect? Apr 17 19:14:42 i think we're seeing a limit imposed by android's complexity on the usefullness of stuff on the platform Apr 17 19:14:53 everything is just 'App' not Application Apr 17 19:15:26 or the limits of venture capital funded interests Apr 17 19:15:40 I think tablets would be way better with a windowed mode. Apr 17 19:16:10 gdrc: how about _a camera_ then? Apr 17 19:16:37 gdrc best device with camera is iPhone, thats not even controversial Apr 17 19:16:55 Im gonna make a small app that only modifies a file that requires root and then sends a Toast. Is a Service the best approach? Apr 17 19:17:10 I don't want an Activity showing Apr 17 19:17:16 groxx: because when i'll come home, i'll never use it Apr 17 19:17:26 Quacked: sure Apr 17 19:17:33 bah! just keep it around your neck 24/7, it'll get used :) Apr 17 19:17:40 g00s: s6 camera is better. and has more pixel. and is 16:9, iphone is 4:3 lol Apr 17 19:17:44 or should I create a 'hidden' activity or something? Apr 17 19:17:44 Quacked: how to start service? Apr 17 19:17:51 Oh, man -- talking of /r/Android, this is the top post of all time in that subreddit: http://www.reddit.com/r/Android/comments/2tpjep/the_new_step_by_step_guide_detailing_how_to_get/ Apr 17 19:18:00 Basically a beginner telling people how to create Android apps. Apr 17 19:18:01 :D Apr 17 19:18:05 gdrc last i checked, most would prefer 4:3 for photos Apr 17 19:18:14 its been a while since Ive used services, hehe Apr 17 19:18:20 16:9 verticals are ... lol Apr 17 19:18:29 reddit makeover materiual design!! Apr 17 19:18:37 square pictures FTW Apr 17 19:18:47 quacked : boot reciever with intent service Apr 17 19:18:51 why? monitors are 16:9 Apr 17 19:18:52 yeah, some guys like brucy percy ise 1:1 medium format Apr 17 19:19:23 Anyway, as long as those /r/Android people stay off my lawn then we're fine. Apr 17 19:19:25 gdrc paper isn't Apr 17 19:19:30 monitors are 16:9 because all you ever display on them are movies. obviously. Apr 17 19:19:44 >paper Apr 17 19:19:47 >2015 Apr 17 19:19:55 lasserix, thank you Apr 17 19:20:06 Is this one a horror movie? Apr 17 19:20:10 Quacked: or if you want user to be able to explictly causeit to happen you'll need a notification or activity? Apr 17 19:20:37 I want the user to press an icon that and then to show a toast Apr 17 19:22:41 would I need an Activity for that? Apr 17 19:23:40 perhaps use a transparent activity? Apr 17 19:25:36 hi Apr 17 19:26:01 "Millions of bees spill onto I-5 after semi crash" Apr 17 19:26:07 bees ! Apr 17 19:27:10 CA's water is saved, no more almonds! Apr 17 19:27:23 g00s: http://gifsoup.com/view1/1416886/oprah-s-bees-o.gif Apr 17 19:28:00 lewellyn: or maybe http://38.media.tumblr.com/tumblr_m178z4x1rT1qa8x5fo1_400.gif Apr 17 19:28:20 i liked mine better. ;) Apr 17 19:28:32 http://www.geekation.com/wp-content/uploads/2011/07/rh1nO.gif Apr 17 19:28:58 lol Apr 17 19:29:22 hehe Apr 17 19:30:04 g00s: see what you've done, by bringing reality into IRC? Apr 17 19:30:20 http://cdn.smosh.com/sites/default/files/ftpuploads/bloguploads/cage-bees-wicker-man.gif Apr 17 19:30:28 that one was inevitable Apr 17 19:30:36 :D Apr 17 19:30:56 one of those laws of the internet. anywhere Wicker Man can be quoted, it _will_ be quoted. Apr 17 19:30:56 http://i.imgur.com/MC1Dtj8.gif Apr 17 19:31:56 http://31.media.tumblr.com/8148dc12ad26339935fdb34011ba1cfe/tumblr_morhtj4dpp1s4f4t0o1_400.gif Apr 17 19:32:38 lewellyn: http://www.reactiongifs.us/wp-content/uploads/2013/08/shut_up_baby_futurama.gif Apr 17 19:32:41 i'll be here all night, folks! ;) Apr 17 19:33:00 groxx: http://i.imgur.com/yzkx5jx.gif Apr 17 19:33:07 lasserix, I made an app with tasker and the app factory which basically has no UI, just a toast. This is possbile to start without an Activity. Any ideas how that is done? Apr 17 19:34:30 Quacked: iirc you can make toasts with the Application context. if you directly try to with BroadcastReceiver or Service contexts, I think they prevent you, but service.getApplicationContext() works Apr 17 19:35:01 how do I launch the app without an Activity? Apr 17 19:36:04 depends. from a launcher icon, you can't (though you can make a transparent one, and finish() it, probably). but services or broadcast receivers can be started by other apps. Apr 17 19:36:22 weird Apr 17 19:36:29 how can the tasker app I made work around it? Apr 17 19:36:45 I hit the icon I made and it will run a command and show a toast Apr 17 19:37:05 "icon" = "launcher icon", or "widget", or "button in Tasker / some other app"? Apr 17 19:37:15 launcher icon Apr 17 19:37:22 Activities can be transparent Apr 17 19:37:33 ¯\_(ツ)_/¯ probably transparent activity Apr 17 19:37:38 SimonVT, yeah, but it doesnt look like an activity is launched at all Apr 17 19:37:52 What do you mean it doesn't look like it? Apr 17 19:38:19 I just made a transparent activity and you see it launching Apr 17 19:38:31 no forget it Apr 17 19:38:41 I didnt see it when including finish() immediately after Apr 17 19:38:45 thanks guys. thisll work Apr 17 19:39:13 now I just need to find the best way to get root and modify a file Apr 17 19:40:50 Quacked: http://forum.xda-developers.com/showthread.php?t=1538053 -> "Want to learn how to use "su" correctly from your own apps ?" -> http://su.chainfire.eu/ Apr 17 19:41:13 I was actually just there looking :) Apr 17 19:41:17 but thanks Apr 17 19:43:07 hi , i am ccapturing image from my app and also downloading video from background , it lags my surface view completly till the downloading finished Apr 17 19:43:16 I am using async in Downloadmanager Apr 17 19:43:20 still Apr 17 19:43:37 Please someone with knowledge about such problem would guide me a little Apr 17 19:45:09 How can i simulate button's onClick from another method? Apr 17 19:45:55 what do you mean by from another method ? Apr 17 19:46:03 toothpick :? Apr 17 19:46:05 performClick() Apr 17 19:46:21 katrena: for example, from "protected void onStart()" Apr 17 19:47:27 you can implement the onClickListner in the main activity then override OnClick(View v) { v.getId //check if this is the button id and dont forget to apply listner in the button } Apr 17 19:47:47 toothpick: If you want the same code to run from two places, just extract a method and call that. Apr 17 19:48:18 TacticalJoke: its not that simple how can i get the called function's View? Apr 17 19:48:34 wow this looks pretty dark http://digg.com/video/batman-vs-superman-leaked-trailer Apr 17 19:48:35 or other way is : buttonYouWantToClick.setOnClickListener(new View.OnClickListner(){ onCLick(){ do stuff } }) Apr 17 19:49:01 toothpick: performclick Apr 17 19:49:16 lasserix: from where? Apr 17 19:49:38 Note that performClick will cause the click-sound to play. Apr 17 19:49:39 public void someOtherMethod() { mButton.performClick(); } Apr 17 19:49:56 Jake and Jesse's Keynote at Android Montreal : https://www.youtube.com/watch?v=PCxz2LEmuL4 Apr 17 19:50:01 AnyONE : i am ccapturing image from my app and also downloading video from background , it lags my surface view completly till the downloading finished Apr 17 19:50:10 Call this view's OnClickListener, if it is defined. Apr 17 19:50:37 MikeWallaceDev: The two JWs. :D Apr 17 19:50:49 katrena explain that again Apr 17 19:50:58 MikeWallaceDev: what about yourself? Apr 17 19:50:58 They're not a comedy duo TacticalJoke Apr 17 19:51:00 lasserix: I dont get it, performClick(); just like that? from which context is it done? and how does it know which button i want to click? Apr 17 19:51:04 well... maybe a bit... Apr 17 19:51:14 toothpick every view has performClick which Call this view's OnClickListener, if it is defined. Apr 17 19:51:18 lasserix, this is the first video that they post! Apr 17 19:51:21 what don't yopu understand? Apr 17 19:51:59 How can i simulate button's onClick from another method? call mButtons.performClick() method from that method. derp Apr 17 19:52:04 lasserix : I am showing a surfaceView which shows front camera view, and I am also downloading some video in the background of app using Async , but it lags the Surface view untill the downloading is finished Apr 17 19:52:19 MikeWallaceDev: how did you see it so early Apr 17 19:52:26 lasserix: thank you Apr 17 19:52:31 katrena: did you set the download thread to lower priority? Apr 17 19:52:47 yiati, I have Montreal DroidCon in my circles :) Apr 17 19:52:49 hmmm , no Apr 17 19:53:09 MikeWallaceDev: is that JakeWHarton in the blue? Apr 17 19:53:18 lasserix, yeah Apr 17 19:53:20 i'm in the audience Apr 17 19:53:25 front row Apr 17 19:53:25 :D Apr 17 19:53:32 He says his name at the start. :D Apr 17 19:53:33 The bald guy Apr 17 19:53:38 bald guy == me Apr 17 19:53:49 stop stealing my jokes JakeWharton Apr 17 19:53:53 He was the emoticon software developer Apr 17 19:55:49 Jesse’s argument that IDEA killed Eclipse because IDEA became open source is pretty ridiculous Apr 17 19:56:02 In my reddit app I need to show how long ago posts/comments were made. I've been using a "2 hours, 41 mins ago" format, but I hate it because it's so long. I'm thinking of switching to something like "2h:41m ago", but is that ugly? Apr 17 19:56:11 Ideally, the format would entail no spaces. Apr 17 19:56:12 Given a font size and string, is there a way to calculate the minimum textview size? Apr 17 19:56:31 TacticalJoke: once it's over an hour, does it matter? Apr 17 19:56:45 I've seen a format that goes 0-59 minutes ago, then hour intervals, then days Apr 17 19:56:56 then optionally weeks, and then months, years Apr 17 19:56:57 jaana: that's not the argument Apr 17 19:57:00 Yeah, the reddit site does that. I'm not very keen on it, though. Apr 17 19:57:24 JakeWharton: I understand and agree with the general argument, just pointing out particular example is terrible Apr 17 19:57:37 Why does everyone laugh at the start? I didn't catch what happened. Apr 17 19:57:39 you just demonstrated that you didn't understand the argument Apr 17 19:57:43 eemgr : TextView.getPaint().measureText() -> width TextView.getPaint().getTextBounds() -> gives you minimum bounding rect Apr 17 19:57:49 JakeWharton: Enlighten me Apr 17 19:57:53 we weren't saying it killed it for people using the IDEs Apr 17 19:58:01 you can also use TextPaint with setTextSize and setFontFac Apr 17 19:58:05 lasserix: excellent, thank you Apr 17 19:58:10 it was killing it as the sole open source platform that could be developed on Apr 17 19:58:14 for IDEs Apr 17 19:58:20 (ignoring NetBeans) Apr 17 19:58:23 JakeWharton: Which is incorrect since Eclipse was that platform first Apr 17 19:58:27 eemgr: also StaticLayout, which will give you more data if needed Apr 17 19:58:36 how is that incorrect? Apr 17 19:58:46 eclipse is first, intellij killed them as the SOLE option Apr 17 19:58:51 hence, being second Apr 17 19:58:53 Open sourcing IDEA had zero impact on how popular it became Apr 17 19:59:01 eemgr: though sometimes that will only get you fairly close: you might search to get even more sophisticated methods for getting exact height/width Apr 17 19:59:18 we weren't saying it killed it for people using the IDEs Apr 17 19:59:26 eemgr: yeah staticlayout will handle multiline text Apr 17 19:59:30 lasserix: does that method assume that the textview has already been drawn? Apr 17 19:59:34 no Apr 17 19:59:44 okay then that should be sufficient Apr 17 19:59:46 just make sure to set the style or textsize/typeface etc Apr 17 19:59:53 sure thing, thanks Apr 17 20:00:19 sonOfRa: Note that I'm only showing two figures: years/months, months/weeks, weeks/days, days/hours, hours/minutes, or minutes/seconds. Anything more is TMI. Apr 17 20:00:58 could you write plugins before intellij was open sourced? Apr 17 20:01:10 lasserix: Yes, although their API was very behind Eclipse Apr 17 20:01:13 It’s improved a lot Apr 17 20:01:29 probably couldn't tweak the whole thing to integrate Gradle like they have Apr 17 20:01:52 anyone know how to remove the top youtube bar from the web display? Apr 17 20:02:18 Which web display? Apr 17 20:02:26 just open a youtube page Apr 17 20:02:33 try to shrink the window around the video itself Apr 17 20:02:38 you'll see the top bar i mean Apr 17 20:03:38 hi. i've a gridview in an activity. In the grid view i've twelve buttons. I want to set the text of every button with categories pulled from the database. is it correct to connect to the database in the adapter class? Apr 17 20:03:50 anyone know how to build a ContentProvider query to get an entry of a table, which holds the max value for a given column? Apr 17 20:04:20 ventura you would make an uri like content://authority/foos/max Apr 17 20:04:34 and just have that do the right query ;) Apr 17 20:05:29 anyone here familiar with using the AlarmManager? Apr 17 20:06:28 well Apr 17 20:06:39 I'm trying to tie a particular alarm to a widget. If the alarm already has a pending intent for that widget, I don't want it to create another pending intent. I have that just fine Apr 17 20:06:57 However, when the alarm finishes, the pending intent is supposed to be canceled from the alarm manager Apr 17 20:07:31 if I try to make another alarm tied to that widget later, the alarm manager still thinks there's a pending intent for it, so I can't make a second one Apr 17 20:07:43 LucaS05: you can use cursoradapter or you can pull database into a datastructure then use that in the getview call of a base adapter Apr 17 20:07:49 g00s, the result of a query is always a "list"? Apr 17 20:08:38 LucaS05: http://androidforums.com/threads/how-to-populate-a-grid-view-from-sqlite.156493/ Apr 17 20:08:42 that uri would map to a query that returns the query result, which would be a single row as a result of the 'select max()' query Apr 17 20:08:47 lasserix: i was thinking to the secondo option. Pulling data in the constructor, and then use the data in the getView. What do you think? Apr 17 20:08:55 either works Apr 17 20:09:02 since it is only 12 items Apr 17 20:09:09 you db query should be like <10ms Apr 17 20:09:20 *should be <2ms really Apr 17 20:09:22 so that would be fine Apr 17 20:09:33 if it were >>> 12 items, then that would take more work Apr 17 20:09:51 lasserix: ok ;) in that case which is the approach? Apr 17 20:11:18 loader or cursoadapter Apr 17 20:11:33 cursorloader + cursoradapter Apr 17 20:12:06 shekibobo: the request code for PendingIntent is part of its identity, so if you change the request code, you can create a second pendingintent. otherwise, if you use FLAG_NO_CREATE, you'll get the current PendingIntent or null, and it won't create a new one, which you can use to query if one exists. Apr 17 20:12:39 lasserix: thanks again ;) Apr 17 20:13:24 well, 2ms, plus any disk waiting time. _that_ can be seconds (or more) in some cases + on some devices. Apr 17 20:13:51 g00s, lasserix: right now i am trying to update a text view with the max element of a table. creating the adapter for a list was fast, but i am struggling to make it work for this case Apr 17 20:14:25 * ventura wondering what is not catching... Apr 17 20:15:21 groxx: it looks like canceling that intent doesn't clear that request code for reuse, though? Apr 17 20:15:46 ventura; you set up a query to just asc on that couple you want max and limit to one Apr 17 20:16:35 groxx: a table with 12 rows and ~4 columns will never take more than 10ms on any 4.0 + device Apr 17 20:16:47 shekibobo: not entirely sure :| I'd have to poke at it to see. Apr 17 20:16:57 ventura: *on that column Apr 17 20:17:32 ventura: i believe you can even send a uri schema formulation to do this explictly Apr 17 20:17:51 lasserix: depends. I've had disk access pause for a full second due to e.g. a background app update, for instance. Apr 17 20:18:05 thats upgrade Apr 17 20:18:23 im talking specifically reading 12 values of a very small table Apr 17 20:18:38 yeah. which means hitting disk. which means possibly waiting behind whatever else is using the disk. Apr 17 20:19:08 I get ANRs on disk-bound apps for stuff like this when my phone is oddly busy. it happens. Apr 17 20:19:28 oh ok Apr 17 20:19:29 well Apr 17 20:19:43 LucaS05: you might wrap that query-return ds structures in an async task Apr 17 20:20:07 *sigh* looks like I'm going to have to use a db for this earlier than I wanted... Apr 17 20:20:10 Spoon is not for TestCase? Only InstrumentationTestCase? Apr 17 20:20:35 shekibobo: sharedprefs? Apr 17 20:20:49 shekibobo look into Realm Apr 17 20:20:55 would if I could store arrays of stuff Apr 17 20:20:57 Realm? Apr 17 20:21:04 https://realm.io/ Apr 17 20:21:17 shekibobo: use gson to deserialize/serialize from disk Apr 17 20:21:23 ooh, nice Apr 17 20:24:10 so, is it possible? Apr 17 20:24:22 gang? Apr 17 20:24:27 what is? Apr 17 20:24:52 It. Apr 17 20:24:56 oh, this looks nice Apr 17 20:26:28 phix: I haven't seen anything from you for a while, fwiw Apr 17 20:26:52 Azelphur, TacticalJoke: I was refeeing to the unanswered question i asked 4hrs ago (can a free app be converted to in-app purchases) Apr 17 20:27:22 lasserix: but when i start the app i need the buttons to have the text that is in the db. Apr 17 20:27:22 uwot Apr 17 20:27:41 does an async task have some delay? Apr 17 20:28:32 LucaS05 of course Apr 17 20:28:44 there are no guarantees how the jvm will schedule a thread Apr 17 20:28:58 g00s: even if i'm pulling only 12 records? Apr 17 20:29:01 phix: I think so, though I'd have to hunt to make sure. only thing I think you can't do is switch from free to paid. (or entirely turn off IAP, which is annoying) Apr 17 20:30:40 phix: actually, wait. yes, definitely. I've done it. Apr 17 20:30:48 free to IAP, that is Apr 17 20:32:50 g00s, lasserix: thx Apr 17 20:33:52 phix think about it carefully, once you are paid, its not possible to migrate users to IAP if you go that way - unless you do crazy stuff Apr 17 20:34:28 like create a new package, check to see if the old package is there, and "give" them the IAP for minimal cost Apr 17 20:34:39 woah.. requesting root access and modifying a file was way more complicated than I though Apr 17 20:34:41 thought* Apr 17 20:36:45 how do i pull/fetch/get another branch from github Apr 17 20:37:36 git checkout branch? Apr 17 20:38:36 no you have to pull it first Apr 17 20:38:50 i did git pull origin master Apr 17 20:39:00 oh Apr 17 20:39:01 but now i need to also fetch/get whatever the dev branch Apr 17 20:39:16 Afzal, does this realm.io save the data into files like SQLite does ? Apr 17 20:39:35 saapas: it does. they're realm-specific files though Apr 17 20:39:36 saapas honestly I haven't used it but I have been to a talk where the presenter used it Apr 17 20:40:35 I'm mixed on realm. it's certainly interesting, and seems to work in practice, but there are too many weird details / unanswered questions for me to rely on it for anything actually important. side projects, sure - the API is pretty simple. Apr 17 20:40:59 groxx, ok. right, so to open a realm-file on my desktop, I would need a specific program for that, like what Datum SQLite Fre for OS X is for SQLite. Apr 17 20:41:13 groxx what are the unanswered questions? Apr 17 20:41:16 m, got it Apr 17 20:41:25 saapas: yep. the realm site has a desktop browser app you can use. Apr 17 20:41:55 all I see is download for iOS and Android Apr 17 20:42:42 Afzal: main one I'm curious about is how their "if you're running in a looper, it's automagically up to date all the time" thing works. and how to disable it. that sounds like a fantastic way to introduce bugs into an app, though it could be convenient for some things. Apr 17 20:42:47 hey guys, which editor do you use for sqlite on osx? Sorry for the OT ;) Apr 17 20:43:14 LucaS05, like I said, Datum SQLite Free Apr 17 20:43:48 Afzal: and _details_ around what's visible and when, isolation level of transactions, basically "mature databases answer these things in detail, because they're important" things. Apr 17 20:44:16 it automatically updates data all the time? I didn't read that anywhere :/ Apr 17 20:44:32 yeah those details, I guess they're still ironing them out Apr 17 20:44:42 still not 1.0 Apr 17 20:44:43 Afzal: http://realm.io/docs/java/#auto-refresh Apr 17 20:45:03 wtf :/ Apr 17 20:45:17 groxx, oooh now I found it. Apr 17 20:45:25 I don't like this "feature" Apr 17 20:45:30 ONLY available for OS X \,,/ Apr 17 20:46:01 I don't have a good understanding of looper though Apr 17 20:46:14 Afzal: then there's also a bunch of breathless quotes of "omg realm is so threadsafe, it'll knock your socks off". maybe it is, at the database level, but it achieves that at the _app_ level by _not being threadsafe_. everything has to be used on the thread it's instantiated on. you can work with that, but it's a handicap. Apr 17 20:46:16 would this cause conflicts with EditTexts being edited? Apr 17 20:46:50 Afzal: dunno. for such a "this impacts your code" feature, you'd expect more documentation. but that's all there is. Apr 17 20:46:57 true Apr 17 20:46:57 (afaik) Apr 17 20:47:26 saapas: d'oh. sorry, didn't realize that :| I suppose it makes some sense though, since it was first an iOS lib. Apr 17 20:48:58 to be clear, I've poked at Realm a bit on a small side project, and it's fast and convenient and seems to work fine. it may very well be a real alternative. I just won't _rely_ on it until it matures a bit. Apr 17 20:49:22 Does anyone know how to simulate the camera taking a picture on an android emulator? I am developing an android app and I don't have a physical device to test on. Apr 17 20:49:35 groxx, no worries Apr 17 20:50:36 and hopefully they fix their super-weird "class X extends RealmObject" + "but you can't use the variables you defined. in fact they're unused. so are the getters/setters." thing they have going for model objects. it seems borderline insane / makes me wonder if they actually understand Java all that well. Apr 17 20:50:39 groxx no map support Apr 17 20:50:41 welp Apr 17 20:50:51 this was the presentation I was talking about http://www.slideshare.net/SienaAguayo/gotta-persist-em-all-realm-as-replacement-for-sq-lite-46956020 Apr 17 20:51:47 JakeWharton: Great talk. Interesting and informative. :) Apr 17 20:55:55 Afzal: yeah, that seems like it has a decent breadth in there :) the odder details come out when you try to poke deeper / use it yourself. but for the most part it's pretty nice. Apr 17 20:57:06 TacticalJoke: thanks! Apr 17 20:58:27 and if i create an sqlite database and i will use (read) it in my app, which is the folder where i need to positioning the db file? Apr 17 21:00:18 LucaS05: if you use SQLiteOpenHelper, it'll put it in "/databases/db_name" automatically Apr 17 21:01:49 groxx: but i have created it externally and i don't have that folder. i need to move the db file before using the SQLiteOpenHelper class Apr 17 21:03:23 LucaS05 meaning... are you bundling an sqlite database file it with the app as part of the install? Apr 17 21:04:07 groxx: yes. it isn't an app that i'm gonna publish on the store anyway Apr 17 21:05:15 LucaS05: I forget if there's a way to open it read-only from the assets folders... _usually_ I see people copying the file to a write-able location, and then using it. Apr 17 21:05:49 groxx: so there could be a permission problem with my approach Apr 17 21:07:14 http://stackoverflow.com/questions/9911004/open-sqlite-in-readonly-directly-from-assets suggests it just doesn't work. there may be a convoluted way around it, but maybe not :| Apr 17 21:07:19 https://github.com/jgilfelt/android-sqlite-asset-helper looks interesting though Apr 17 21:17:03 avoid it if you can tho Apr 17 21:17:26 *copying from raw or assests Apr 17 21:23:33 JakeWharton: Is there a way in okhttp to find out if a WebSocket is open? Apr 17 21:27:57 lasserix: so i need to create the db programmatically? Apr 17 21:33:18 well Apr 17 21:33:25 when you put it in asessts it stays in asessts Apr 17 21:33:30 meaning when you make it into /databases Apr 17 21:33:35 you'll have twice the memory allocation for it Apr 17 21:38:24 jaana: no, not other than keeping state from the calls to open/close. what's the use case? it could be something that we could add if it makes sense. Apr 17 21:50:30 wow, there's a FloatingActionButton in the support sources Apr 17 21:50:49 has anyone used jimu for Android Studio? http://jimulabs.com/ Apr 17 21:51:01 who here is a fan of Material Design? Apr 17 21:51:01 is it worth the money? Apr 17 21:51:17 android_sandwich zeroturnaround also has jrebel for android Apr 17 21:51:34 http://zeroturnaround.com/blog/blast-off-with-jrebel-for-android/ Apr 17 21:52:02 shipit not I :( Apr 17 21:52:06 android_sandwich looks interesting! are you evaluating? Apr 17 21:52:13 pain to import though, not even sure if it will work on older platforms Apr 17 21:52:16 g00s I'm on the fence too - what are your reasons? Apr 17 21:52:48 well I was searching for Story board tools similar to xcode. Found Jimu mentioned in an article. Sounded interesting Apr 17 21:53:37 shipit i think its somewhat a distraction; lots of effort has gone into making apps material but i haven't found anthing to be more usable because of it. just my tastes i don't like the bright colors and overuse of animations Apr 17 21:53:42 android_sandwich: I'm not a fan of storyboarding Apr 17 21:53:55 g00s: that looks interesting as well. thanks for sharing Apr 17 21:53:55 g00s that's exactly how I feel Apr 17 21:54:28 g00s the animations and transitions are somehow not proving any major UX point Apr 17 21:54:33 shipit: I needed to see some visual stuff as I plan a new UI for some activities Apr 17 21:54:46 g00s it's like they needed to do something for 5.0 so it was this Apr 17 21:55:10 android_sandwich I understand, it's harder in plain text but worth the initial pain Apr 17 21:55:36 shipit: I like Material desgin, though hate how long it takes for people to switch. There are still some folks using 2.x Apr 17 21:56:12 android_sandwich I'm curious what do you like about it? Apr 17 21:56:27 my co-worker how works on our iOS app is always so happy how quickly people switch to new OS Apr 17 21:56:55 iOS is a straight jacket - people don't know freedom there! Apr 17 21:57:37 eg, I can share a bookmark into a Trello card - so awesome! Apr 17 21:57:37 shipit: it's new and modern looking. I like how the animation seems to flow from one activity to another. Usually it seems the second activity is really an extension of the first. It all seems connected. Maybe just the newness is what I like Apr 17 21:57:52 quite often i've seen an announcement for an app "now with material" but i think, OK you have a ripple and FAB now but your app still sucks and doesn't do anything useful Apr 17 21:57:57 android_sandwich hmm, fluid Apr 17 21:58:36 g00s I agree, the new design language hasn't lent itself to solving any hard problems Apr 17 21:58:56 so feels wrapper-ish over old stuff Apr 17 21:59:15 yeah, they changed some drawables ;) Apr 17 21:59:21 lolz Apr 17 22:02:33 man, I write code for both iOS and Android but my happiest moment is when I launch Android Studio :) Apr 17 22:03:54 i'm really pissed at AS now. i hope the next update helps me. I'm using vim atm because the IDE is putting error markers all over the project, but its fine from command line Apr 17 22:05:37 g00s canary? Apr 17 22:05:43 beta Apr 17 22:05:48 1.2 Beta 3 Apr 17 22:06:27 i downgraded to 1.1 and had the same problem though, so i just gave up Apr 17 22:06:36 vim is ok for a few days Apr 17 22:06:38 ooh you're farther than me - lemme not upgrade then! Apr 17 22:06:43 I like vim! :) Apr 17 22:06:59 is there an AS plugin or you're on bare metal command line? Apr 17 22:07:08 command line Apr 17 22:07:52 mosx? linux? Apr 17 22:07:54 i think my problem might have to do with variant.registerJavaGeneratingTask() , which is probably not used by many Apr 17 22:07:57 osx Apr 17 22:08:12 hmmm - gradle has been in flux Apr 17 22:09:18 I should study gradle more Apr 17 22:11:12 I have a 9-patch button with an XML state list. On Android < 21 it works properly but on Android >= 21 it's adding drop shadows to the active and hover states. How can I turn that off? Apr 17 22:11:18 g00s what's your irc client? I use LimeChat Apr 17 22:11:27 shipit textual Apr 17 22:12:10 is it possible to get a view from a different activity? Apr 17 22:12:30 toothpick errm Apr 17 22:13:49 whats the use case/ context for this Apr 17 22:19:18 hi. I recently had a customer ask me this... "I just got a new phone (GS6 Edge). Is there a way to copy my save file from my old phone to the new one?" Apr 17 22:19:19 g00s, can't you edit the module config in AS to set your libraries manually? Apr 17 22:19:20 so my question would be... How does a regular user, copy the entire contents of an instal documents directory over to another install directory of a device? Apr 17 22:19:25 g00s, intellij does it easily\ Apr 17 22:19:30 AS should be as easy, too Apr 17 22:22:08 ... oh and hello android-dev irc chat room... i am new. :D Apr 17 22:22:35 LavaLevel, wrong place to ask Apr 17 22:22:41 pfn from a high level everything looks fine. all the modules are there, all the dependencies are listed in the project structure dialog (AS specific, i think), etc. but for some reason, its not generating R properly in all modules (no errors) and one module has undefined symbols for everything. i think there is some gradle task not executing or something, or tasks are executing in a different order from CLI which is revealing Apr 17 22:22:41 some issue. Apr 17 22:23:04 g00s, doesn't matter, if you set the source/libs all properly, there should be no problem Apr 17 22:23:09 just flag the directory as generated source Apr 17 22:23:15 or worst-case, add build/classes to your classpath Apr 17 22:23:26 (in the project modules) Apr 17 22:25:39 pfn, thanks for the heads up. Do you know of where I should proceed to ask such a question? Apr 17 22:25:45 #android Apr 17 22:25:59 thanks! Apr 17 22:28:48 I really should have developed some kind of data-json packaging utility for my app. Apr 17 22:29:57 I'm gonna make the default theme of my app as boring as possible. Apr 17 22:30:04 I like the idea of content providing the "colour". Apr 17 22:33:42 TacticalJoke, "colour" eh? Apr 17 22:36:30 looks like you need some freedom Apr 17 22:36:53 pfn if i have several commits : A <- B <- C , and I have a few branch pointers at C, is it safe to rebase ontop of A ? Apr 17 22:38:01 (so C is ancestor to some branches) Apr 17 22:38:06 g00s: like, D == C, and you want to rebase C on A? Apr 17 22:39:09 or maybe C <- D and C <- E, and D/E are different branch heads Apr 17 22:39:26 groxx clarification : C is ancestor to 2 branches, they have some commits so their tips are further along Apr 17 22:40:12 yeah Apr 17 22:40:51 i have a feeling this could be 'bad idea jeans' Apr 17 22:41:27 if you rebase C onto A, just branch C will get updated. D/E will retain their original history (which will include the old C commit). if you rebase D onto A, it'll make rebased versions of A/B/C that D points to. The other branches are unmodified. Apr 17 22:42:11 groxx ok thanks Apr 17 22:42:46 I forget what happens if you rebase C and D "independently" onto A. since the new D will refer to the same SHA as the new C, I would imagine they'd "merge" back together. Apr 17 22:44:40 fwiw I usually branch before doing complex rebases, because it's easier to do multiple steps / play with history, and abandon everything by going back to the original branch if necessary. it's a convenient safety net. Apr 17 22:49:19 man that #android channel is so helpful! and they bought my game! thanks again for the assistance! *cheers* Apr 17 23:06:42 Hi! How do you get the color of a ShapeDrawable to change it's alpha channel? Apr 17 23:07:29 g00s, dunno, I usually hate having very complicated branch structures like that Apr 17 23:07:57 g00s, but the other branches should be left alone unless you rebase them on top of your C Apr 17 23:08:22 all the refs are copy-on-write Apr 17 23:08:27 or so I think Apr 17 23:09:38 I've decided I need to stop being lazy and make an app Apr 17 23:09:42 wish me luck! Apr 17 23:09:53 (a podcast fetching app, if anyone cares) Apr 17 23:10:35 Mattx: hm. maybe if you set a color filter? or just change the alpha of the entire Drawable, if that's an option :| Apr 17 23:10:52 that is an option, how do you do so? Apr 17 23:11:24 some days ago (yesterday?) I was looking for something like this but .setAlpha is a little bit weird, it doesn't get an absolute alpha value Apr 17 23:11:26 what would you do? Apr 17 23:11:48 setColorFilter is a method on drawable. you probably want to .mutate() it first, and I'd have to play with it a lot to figure out what ColorFilter / PorterDuff.Mode would work. Apr 17 23:12:04 doesn't get an absolute alpha value? Apr 17 23:12:55 .setAlpha(128) doesn't make it 50% transparent Apr 17 23:14:51 do you have to mutate it first? I haven't done enough with drawables to know for sure :| Apr 17 23:15:18 to mutate? what do you mean? Apr 17 23:15:44 the problem is this. I have some square views which I want to become highlighted on click Apr 17 23:15:55 so for that I want to change its alpha from 50% to 100% Apr 17 23:15:58 drawables are shared instances. most (all?) of the time you modify them, you need to call .mutate() on them to get a copy, so you're not changing the globally-shared instance. Apr 17 23:16:00 that's it actually, that's the problem Apr 17 23:16:19 didn't know that, good tip ^ Apr 17 23:17:43 Can someone tell me why https://wallet.google.com/merchant/signup link just redirects me to a help center page Apr 17 23:18:38 It redirects to this page Apr 17 23:18:39 https://support.google.com/googleplay/android-developer Apr 17 23:19:01 hm Apr 17 23:19:18 i tried getting support for some GA stuff the other week, that was a waste of time Apr 17 23:24:44 its ridiculous, i cant even test IAP w/o a merchant account and its not letting me sign up for noe Apr 17 23:24:45 one Apr 17 23:49:34 g00s: i've seen that kind of behavior and shitty error reporting with lib LICENSE.txt, et al files conflicting; also from certain http libs (okio, httpurlconnection) conflicting with Android's internal ones. Apr 17 23:50:00 wut Apr 17 23:55:55 fuuuukin android studio crashes so frequently Apr 17 23:56:30 LavaLevel: what is "data-json packaging utility"? Apr 18 00:00:21 lasserix, That's something I would have to make. Currently I take all my tables and turn them into txt (json) and save the to the documents directory. If I wanted to create an in app export/import feature, I would need to build up a system that packs it all into 1 massive txt file, send it somewhere, (like maybe my amazon cloud server?) then unpacks it all into the separate save files when... Apr 18 00:00:23 ...imported back in by the user. Not really sure if that's going to happen. More focused on just finishing the sequel so I can get some more GooglePlay bucks. Apr 18 00:01:12 LavaLevel you can make a generic sqlite probe by just iterating over colums via indexes, getting the name, and the type Apr 18 00:01:22 then you can easily use that to generate a big json Apr 18 00:02:06 probably like a 3 hour project Apr 18 00:07:23 Does anyone know where ?attr/progressBarStyle is set in AppCompat? For the life of me I can't find it. Apr 18 00:07:28 I swear I found this yesterday. Apr 18 00:08:27 It's not in the obvious place (i.e., ). Apr 18 00:08:55 a three hour tour Apr 18 00:09:21 btw: If you're on Linux, I'm using SunFlower as a File Manager. AWESOME feature: You can open multiple directories for the tree AND see the files. Great for comparing Drawables, Layouts, etc... Apr 18 00:13:51 TacticalJoke: style="@style/Widget.AppCompat.ProgressBar" ? Apr 18 00:14:47 I'm looking for " (Without the quote issue.) Apr 18 00:15:37 What countries does you guys choose for app distribution? Apr 18 00:15:56 desmin88: "yes" Apr 18 00:15:57 :) Apr 18 00:16:06 so, all of them? Apr 18 00:16:30 no reason for me not to Apr 18 00:16:30 even if your app isnt localized for those countries Apr 18 00:16:41 my app has nearly no strings anyway Apr 18 00:17:07 pretty sure people are used to apps being in english Apr 18 00:17:20 TacticalJoke: sorry if I'm not understanding: seems like you just need to set the parent to Widget.AppCompat.Progressbar, then your item, then do stuff. Apr 18 00:17:28 I should try to make an app with no strings! Apr 18 00:17:47 treelzebub: That doesn't tell me what AppCompat sets the 'progressBarStyle' attribute to. :) Apr 18 00:18:10 ah! now i get ya Apr 18 00:18:43 Download this app for some NSA fun. Apr 18 00:19:00 (That's the only string that needs to be translated.) Apr 18 00:19:17 Aw, crap. I guess I'll need to translate that one then. Apr 18 00:19:18 anyone have experience getting (simple, translation only) animations to work on multiple platforms, down to gingerbread? I'm trying to figure out a good way to do it :/ Apr 18 00:19:27 No strings attached -- apart from this one, strangely enough. Apr 18 00:19:43 https://github.com/JesusFreke/Penroser/blob/master/res/values/strings.xml Apr 18 00:19:50 Pretty small set of them Apr 18 00:21:45 Can anyone explain this? https://android.googlesource.com/platform/frameworks/support/+/master/v7/appcompat/res/values/styles_base.xml#174 Apr 18 00:21:59 insanity, probably Apr 18 00:22:07 Why on earth are they setting min/max values for *all* progress bars there so that they fit action bars? Apr 18 00:22:29 how do i check if my database exists in the adb shell? Apr 18 00:22:30 I'll accept "insanity". Apr 18 00:22:43 i navigated to the database file name Apr 18 00:22:58 input SELECT * FROM database_name Apr 18 00:23:11 then got ...> Apr 18 00:23:41 TacticalJoke: just read it. weird. dunno. Apr 18 00:24:58 Pwnies: Don't keep us hanging! Apr 18 00:25:16 TacticalJoke: because the actionbar has a standard size? Apr 18 00:25:18 Pwnies: add a semicolon? Apr 18 00:25:38 treelzebub: That's for *all* progress bars, though. Not just those in ActionBars. Apr 18 00:25:58 default behavior, designed to be overridden if necessary? haha i dunno, man Apr 18 00:26:02 :D Apr 18 00:26:44 my guess is they did that to standardize the size of the indeterminate spinning progress bar. Apr 18 00:27:28 If things aren't complicated enough, setting min/max/Width/Height on a ProgressBar appears to do nothing. Apr 18 00:27:36 I love how often snarky `if (styles) return "crazy";` responses turn out accurate :) :'( Apr 18 00:27:50 groxx: hm. it says the table doesn't exist... why would the db file be autogenerated if the table didn't exist? Apr 18 00:28:01 Yeah, I was thinking that. Apr 18 00:28:14 On a game show, I'd accept "Insanity" as an answer every time. Apr 18 00:28:35 what is... PowerMadness, alex? Apr 18 00:28:37 Pwnies: possibly if the create / upgrade commands failed? Apr 18 00:30:02 Pwnies: or, are you using the database name in that select statement, or the table name? I don't think there are "databases" in SQLite files, just tables Apr 18 00:30:40 groxx: hm. i gave the table and database the same name Apr 18 00:30:44 the sqlite file is the database Apr 18 00:31:00 the files are *in* the computer Apr 18 00:31:08 :O Apr 18 00:31:12 of course! Apr 18 00:31:13 Why do they just define a few ProgressBar styles and a single ProgressBar attribute? It's crazy stuff. Apr 18 00:31:24 a single sqlite file doesn't contain multiple db or a db name Apr 18 00:31:32 i should just stick to male modeling treelzebub Apr 18 00:31:43 Trying to figure this stuff out is like having a conversation with Jaden Smith. Apr 18 00:32:02 it's odd though guys, my cursorloaders are filling my spinners Apr 18 00:32:15 that sounds painful Apr 18 00:32:16 with all the data i want from it Apr 18 00:32:30 Pwnies: try `.tables` ? Apr 18 00:32:43 i did groxx Apr 18 00:32:59 and got? Apr 18 00:33:16 still unclear what you're ultimately trying to accomplish, TacticalJoke, but your fervor has me rapt. that's right. rapt. Apr 18 00:33:30 nothing. it just goes back to sqlite3> Apr 18 00:33:35 :( Apr 18 00:34:01 I just hate when I don't understand stuff. It's like... I should be able to figure out what AppCompat is setting the 'progressBarStyle' attribute to. Apr 18 00:34:20 TacticalJoke must know all. Apr 18 00:34:27 I swear I found this yesterday. What is going on. :D Apr 18 00:35:00 Any beginner Android book recommendations? :D Apr 18 00:35:06 happyowl Apr 18 00:35:07 Coming from a C# background ^.^ Apr 18 00:35:08 just start coding Apr 18 00:35:13 for the love of god Apr 18 00:35:14 happyowl: Big Nerd Ranch Guide rules. Apr 18 00:35:15 just start coding Apr 18 00:35:23 I agree, Pwnies. There's no faster way. Apr 18 00:35:31 Pwnies: haha definitely, need something for the road! Apr 18 00:35:47 treelzebub: Oooo, that one keeps coming up, have you read it? Apr 18 00:35:47 TacticalJoke, explain how the ProgressBar portion of styles_base is different from the others. Apr 18 00:35:58 happyowl: used it extensively. Apr 18 00:36:50 treelzebub: Awesome! Is it very hands on? I'll be reading it on the go, so I won't be able to follow along in an IDE. Apr 18 00:37:02 happyowl: the BNR guide is deprecated, i asked the author what's updated and here was his response Apr 18 00:37:03 https://twitter.com/JLHAcode/status/570140312712015872 Apr 18 00:37:05 it's not applying the attribute so much as it's defining it. Apr 18 00:37:12 Hmm, I just had a thought. What if they define that attr and don't ever set it? Apr 18 00:37:15 interesting - regarding my AS woes of all the things being red / error - building from AS itself also still works :| Apr 18 00:37:28 so. the BNR guide is AWESOME, but! out of date Apr 18 00:38:04 happyowl: your experience will be limited no matter what if you're learning a platform without a machine to play on. doesn't matter how hands-on the book is. Apr 18 00:38:13 everything is out of date, Ponies. Apr 18 00:38:14 Pwnies: Cheers. The published date was one of my concerns. Apr 18 00:38:24 sorry, autocorrect, Pwnies ;) Apr 18 00:38:36 indeed treelzebub, but some things are more out of date than others :P Apr 18 00:38:43 cough cough* actionbarsherlock Apr 18 00:39:01 happyowl: I got you Apr 18 00:39:14 that's why it's nice to have an IDE to scream at you when stuff's deprecated. dude asked for a book, I recommended a book :D Apr 18 00:39:19 Pwnies: What book did you end up going with? Apr 18 00:39:54 BNR, commonsware, udacity google tutorial Apr 18 00:39:57 happyowl: I too came from C#. Apr 18 00:40:02 and the developer website tutorials Apr 18 00:40:09 I did the first official tutorial and then started making an app. Apr 18 00:40:12 none of them helped more than just straight diving into coding Apr 18 00:40:17 It was probably the fastest way to learn the basics. Apr 18 00:40:27 yeah, definitely get a feel for the basics first Apr 18 00:40:34 a feel. that's it. you don't need to memorize everything Apr 18 00:40:52 re BNR: eh, that's not far out of date. don't worry about it. especially for starting, it doesn't matter. Apr 18 00:41:05 yeah agreed groxx Apr 18 00:41:12 Pwnies: Ah ok, commonsware came up a lot too. Apr 18 00:41:15 yeah the author said most is not out of date Apr 18 00:41:34 if you're on the road.... bring a laptop Apr 18 00:41:40 haha, but BNR is solid Apr 18 00:41:43 http://developer.android.com/reference/packages.html Apr 18 00:41:48 have this open 24/7 Apr 18 00:42:00 TacticalJoke: Sweet! Any "gotchas" when you switched to Java? Apr 18 00:42:11 i'm kinda amused though that its taking BNR and Reto long time to update, when you consider Lollipop had a preview - and they could have started updating almost a year ago Apr 18 00:42:20 ugh reto Apr 18 00:42:23 happyowl: also! read http://developer.android.com/guide/components/fundamentals.html and keep the developer.android.com site in mind. it's generally better info than , because it's better at explaining why, not just what. Apr 18 00:42:29 i don't like the way he teaches Apr 18 00:42:51 agreed with groxx * Apr 18 00:42:53 groxx: Thanks :D. Bookmarked Apr 18 00:43:06 happy owl will be happy Apr 18 00:43:09 Effective Java has been really helpful, too Apr 18 00:43:11 happyowl: from .NET? just the library organization. the languages are pretty similar. Apr 18 00:43:37 .net ? and you're stepping back roughly 20 years in language sophistication Apr 18 00:43:44 :D Apr 18 00:43:45 happyowl: The number one is "Don't use == on Strings". ;o Apr 18 00:43:49 And capitalize the 'S'. Apr 18 00:43:53 happyowl: if you need specifics, I'd usually recommend the Oracle / Sun java references http://docs.oracle.com/javase/tutorial/ (though java 8 doesn't work on Android yet) Apr 18 00:44:03 "yet" lololol Apr 18 00:44:11 happyowl and don't forget rxjava :) Apr 18 00:44:16 TacticalJoke: LOL, damn that would have gotten me Apr 18 00:44:18 g00s: yeah, but that just means they'll be finding they can't use X, not "wtf is X" :) Apr 18 00:44:21 i still don't know what rxjava is g00s Apr 18 00:44:37 it's crazy juju magic Apr 18 00:44:43 Pwnies thats ok, i'm not sure i do either Apr 18 00:44:47 like content providers Apr 18 00:44:56 happyowl: Generic types and non-generic types are basically the same thing for backwards compatibility. (List is actually the same as List, which is the same as List.) Apr 18 00:45:10 That's not a big deal, but it feels weird at first. Apr 18 00:45:29 and not too relevant in android dev, since it doesn't have legacy pre-java-5 code to deal with Apr 18 00:45:38 you mean List ? Apr 18 00:45:39 Oh I see, noted. Apr 18 00:45:52 what would you use rxjava for that retrofit couldn't do? Apr 18 00:45:53 happyowl: So you can say stuff such as "List list = new ArrayList();", and it compiles. Apr 18 00:45:55 i should stay out of this. i do not C# :P Apr 18 00:46:08 treelzebub: IIRC (it's been years), that wouldn't compile in C#. Apr 18 00:46:17 Yeah no sir Apr 18 00:46:25 right. you just mentioned generics Apr 18 00:46:34 Object isn't a generic; it's THE superclass Apr 18 00:46:55 treelzebub: I'm talking about Java's type erasure. :) C#'s generics implementation is quite a bit different. Apr 18 00:47:29 fair! sorry i butted in ;) Apr 18 00:47:58 happyowl: depending on the level you want info on: java has no user-defined value types. and int/long/boolean/etc are _not_ Objects, which is annoying. Apr 18 00:48:23 Ah right, I remember that one Apr 18 00:48:35 Yeah, you can't define value types. Apr 18 00:48:46 And you have to add 'ean' to 'bool'. :D Apr 18 00:48:51 happyowl: they'll "auto-box" "up" to an Object (Integer/Long/Boolean), but they're not inherently Object, so they don't work in for instance Apr 18 00:50:11 Hi folks. Apr 18 00:50:12 groxx: Oh ok Apr 18 00:50:22 for whatever reason git changed now git add . doesn't incldue deleted, how do i commit deleted changes? Apr 18 00:50:31 lasserix: git add -A . Apr 18 00:50:43 thanks Apr 18 00:50:44 I'm trying to update UI from AsyncTask onPostExecute, but it cease to work. Apr 18 00:50:49 here is the code http://pastebin.com/fgwrrxvf Apr 18 00:51:01 Alright well thanks a lot guys. The Android community is truly awesome! Apr 18 00:51:04 groxx: Note that C# allows value types as type parameters without any boxing (and without value types being Objects). Apr 18 00:51:06 I'm just creating a simple textview, but it is not coming. Apr 18 00:51:22 Or 'objects', I guess. Apr 18 00:51:25 (I've checked that the if condition is true) Apr 18 00:51:28 lasserix: or I think `git rm --cached ` will remove the file from version control when the file doesn't exist (because `git rm ` fails if filename doesn't exist). but I may be thinking of something else. Apr 18 00:51:39 Wait, I'm misremembering. Sorry. Apr 18 00:51:45 mavihs: you have added the view to the LinearLayout, but where do you show the LinearLayout? Apr 18 00:52:12 They do derive from System.Object in some way. Apr 18 00:52:14 treelzebub: LinearLayout is already present on my mainactivity? Apr 18 00:52:16 TacticalJoke: ah, does it not allow that either? I didn't remember :| Apr 18 00:52:34 It's scary how much we can forget. ;| Apr 18 00:52:34 been too long since doing .NET. I _might_ actually be interested again, now that it's open source. Apr 18 00:52:43 ^ Apr 18 00:52:45 I used to be pretty knowledgeable about C#. I can barely remember a thing now. lol Apr 18 00:53:07 groxx: Did you ever hang out in ##csharp (or whatever it was called)? Apr 18 00:53:30 mavihs: generally a bad idea to pass the Activity to your AsyncTask. One sec. grabbing a link Apr 18 00:53:52 http://stackoverflow.com/questions/18297378/weakreference-asynctask-pattern-in-android Apr 18 00:53:54 treelzebub: Sure. Thanks. Apr 18 00:54:07 I did it in an internship + my first "real" job, combined about a year. so I was reasonably bad at it :) but what I _do_ remember is the annoying-as-hell signature rules, because the ASP.NET stack would add your custom-JSON-serializing-object classname to the JSON it serialized, and there was no way to stop it, because I decompiled the runtime and found Apr 18 00:54:07 the code that added it. Apr 18 00:54:18 TacticalJoke: nope Apr 18 00:54:20 also, if there is an xml layout already inflated with this activity, this is not the way to add a textview to it. Apr 18 00:55:02 treelzebub: Yes it is already inflated. Sorry I'm completely new to android. Apr 18 00:55:14 So, yeah, the cool thing is that you can say List or whatever without boxing. Apr 18 00:55:19 you should not apologize: this stuff is super weird. Apr 18 00:55:22 I wish we could do that in Java. :) Apr 18 00:55:54 the signature scheme seems almost open-source-hostile. can't fork a signed library without re-signing everything (transitively), can't self-sign with a higher security level on other signatures, etc. ultimately, unless the official repo fixed your bug, you're screwed. Apr 18 00:55:58 mavihs: unless you have your async task as non-static innerr class of activity, and implemented cancel logic appropiatly for it, never ever do what you are doing in that example Apr 18 00:56:23 mavihs: MUCH better is to push the list into a method in your activity that does the stuff with the textviews Apr 18 00:56:31 treelzebub: so how do I add text view? Apr 18 00:56:40 lasserix: What's wrong in passing the acitivity? Apr 18 00:56:50 what if you user hits home or back? Apr 18 00:56:55 or rotates the screen? Apr 18 00:57:00 mavihs: try this, but update it with the WeakReference syntax from the link i shared Apr 18 00:57:02 you can leak your activity Apr 18 00:57:13 lasserix: Oh, I see. Got it. Apr 18 00:57:16 mavihs: http://pastebin.com/JEv3Rcx4 Apr 18 00:57:17 what you need to do is implement cancel logic Apr 18 00:57:22 Okay, I was semi-right about the object thing. In C#, an int (say) inherits from System.Object but isn't treated as a System.Object in memory. Apr 18 00:57:34 So it kind of is, and kind of isn't, a System.Object. Apr 18 00:57:42 so if the async task is cancelled, remove reference to activity or weak reference, and don't try and update the ui, then call that in onpause and you'll be fine Apr 18 00:57:47 TacticalJoke: interesting. weird. progressbar. Apr 18 00:58:18 lasserix: Alright. Got it. Thanks a lot :) Apr 18 00:58:28 eh, the weakreference stuff isn't really necessary if you cancel appropriately. it might make you feel better, because it's more error-friendly, but you should be canceling appropriately anyway. Apr 18 00:58:34 yeah Apr 18 00:58:36 treelzebub: Thanks for the link. I've update the structure of my code :) Apr 18 00:58:37 ^^ Apr 18 00:59:07 good luck! :D Apr 18 00:59:20 mavihs: another way to do it is, is push the results to your application class which then your activity can grab from once notified Apr 18 00:59:46 you could just not use an asynctask also Apr 18 01:00:07 lasserix: Which application class? Apr 18 01:00:32 desmin88: I'm doing async network operation, and I read that it is best to use AsyncTask Apr 18 01:00:43 you can do App extends Application which is like the mother of your activities. it persists as long as the process of your application exists Apr 18 01:00:45 oh boy, here we go Apr 18 01:00:51 hehe Apr 18 01:00:56 don't worry about it for now Apr 18 01:01:00 i really don't understand jesse W's logic in this keynote: "we beat an open source juggernaut because company X went open source" lol Apr 18 01:01:02 lasserix: okies Apr 18 01:01:05 mavihs: best way to do network operation is retrofit Apr 18 01:01:18 mavihs: switch to OkHttp, a) it's worth it because it supports newer networking features, and b) it has async helpers. Apr 18 01:01:31 pretty decent article on why not to use asynctask: [ http://simonvt.net/2014/04/17/asynctask-is-bad-and-you-should-feel-bad/ ] Apr 18 01:01:34 there are other reasons to avoid asynctask Apr 18 01:01:43 but networking is a fairly bad fit for it Apr 18 01:01:54 o hai SimonVT :| Apr 18 01:02:08 for completeness: https://github.com/fkspro/android-tinyasync Apr 18 01:02:09 :O Apr 18 01:02:14 thank you guys! Apr 18 01:02:17 but yeah don't actually do that Apr 18 01:02:33 myke: ! Apr 18 01:02:42 TacticalJoke: ? Apr 18 01:03:00 You know what I'm gonna say. :D Apr 18 01:03:01 TacticalJoke: ! Apr 18 01:03:26 https://github.com/fkspro/android-tinyasync/blob/master/GetUrl.java#L35 Apr 18 01:03:33 oh right haha Apr 18 01:03:37 i owe u a fix Apr 18 01:03:38 :D Apr 18 01:03:53 Every time you post that, I have to look. "Are we there yet?" Apr 18 01:04:34 Actually, ultimately I've to stream voice from phone to server, so I don't think REST API libs will be helpful here. Apr 18 01:04:56 mavihs: retrofit Apr 18 01:05:08 no official github app? Apr 18 01:05:12 mavihs: http://inaka.net/blog/2014/10/10/android-retrofit-rest-client/ Apr 18 01:05:52 oh Apr 18 01:05:52 hmm.. seems interesting Apr 18 01:05:55 anyone know how to get a rounded corners drawable when setting an image onto an imagebutton? i’m getting blacked corners when i set layer type to hardware but not on software Apr 18 01:05:56 well Apr 18 01:06:01 retrofit is going to help you Apr 18 01:06:03 but okhttp will Apr 18 01:06:13 since you are going to have manage streams and push them yourself Apr 18 01:06:40 Sixmsj: use ninepatch its faster Apr 18 01:06:58 lasserix: Hmm... I've developed that part. Apr 18 01:07:05 oh cool Apr 18 01:07:11 But I'm pretty sure, I sucked at design of the whole app. Apr 18 01:07:41 I've hosted the project on Github, this is my first app, so please don't murder yourself if the code seems all nonsense. Apr 18 01:07:49 lasserix: ninepatch isn’t applicable for my use case sadly, im using ninepatches for other parts of the app though Apr 18 01:07:50 Have a look https://github.com/shivamdixit/WiMic Apr 18 01:08:28 Though I would love to learn android best practices, would be great if anyone can provide suggestions. Apr 18 01:08:44 mavihs: you have too many comments Apr 18 01:08:56 Oh, man, the MSDN documentation is so nice. Apr 18 01:09:02 // Will work only after setting contentView -> overkill Apr 18 01:09:06 Was just looking at C#/.NET stuff. Apr 18 01:09:14 unless you are using this to teach people android Apr 18 01:10:25 lasserix: We are working in a team of 4. All of us all developing first app. So I created comment for them to understand it. Apr 18 01:10:31 or keeping notes for themselves. comment all the things, I sez. Apr 18 01:10:49 (and of course I remember it later :P) Apr 18 01:12:06 mavihs: tip of advice: you might want to --in the future once it is all working-- look into using a service to manage your client-server connection threads Apr 18 01:12:13 how do you get out of the adb shell prompt in command prompt Apr 18 01:12:18 that way you don't have to do continous burst Apr 18 01:12:24 Pwnies: exit Apr 18 01:12:43 aw Apr 18 01:12:56 lasserix: Sure. What kind of service? Apr 18 01:12:58 damn. i feel really dumb. Apr 18 01:13:05 i was spamming quit Apr 18 01:13:10 mavihs: an android service Apr 18 01:13:18 used for long running tasks Apr 18 01:13:32 lasserix: :O okay, I will google that. Apr 18 01:14:23 lasserix: Any other comments about the code/design? Apr 18 01:15:11 mavihs: you might want to also read http://developer.android.com/guide/components/activities.html - e.g. at the moment, if you try to join a room, then hit the "home" button, you'll be randomly forcing them back into your app whenever it finishes. Apr 18 01:15:32 mavihs: it's good to get in the habit of limiting the scope of everything to the minimum necessary. eg: private List rooms; make all views private in your ViewHolder, etc Apr 18 01:16:17 er... strike that about the ViewHolder.. i'm braindead Apr 18 01:16:29 but in general i was right ;) Apr 18 01:17:32 your async class Scanner is flawed Apr 18 01:17:38 that's definatly not an async class Apr 18 01:17:45 async task-> quick things Apr 18 01:18:00 ie not something you want to run a while loop in for fishing Apr 18 01:18:05 groxx: thanks for pointing that out. Apr 18 01:18:19 lasserix: Oh, I see. Apr 18 01:18:30 I also that there that it is for short quick tasks. Apr 18 01:18:37 there -> somewhere* Apr 18 01:19:02 a nifty trick for you: from any thread if you don't have activity to runOnUiThread all you have to do is Handler h = new Handler(Looper.getMainLooper()); h.post(new Runnable() { @Override public void run() { /* will exexute on ui thread */ }); Apr 18 01:20:37 lasserix: Made a note of it. Apr 18 01:21:32 Okay, I missed something. Duh. AppCompat's progressBarStyle attr is defined within a element. Apr 18 01:21:42 ffs dude Apr 18 01:22:09 with getMainLooper ypu don't know which activity you got, though Apr 18 01:22:16 treelzebub: Why didn't you tell me that?! :p Apr 18 01:22:30 lol i did not understand the question! it's friday! because reasons! Apr 18 01:22:35 TacticalJoke: (-‸ლ) Apr 18 01:23:12 I missed it too fwiw :) undercaffeinated is my excuse. Apr 18 01:23:22 I think part of the problem is that we *expect* insanity from AppCompat. Apr 18 01:23:23 also ffffuuuuuu animations D: Apr 18 01:23:30 animations on _gingerbread_ D: Apr 18 01:23:39 Gingerbread. :[ Apr 18 01:23:39 TacticalJoke: and are rarely disappointed, yeah Apr 18 01:23:41 :D Apr 18 01:23:51 yeah. Apr 18 01:24:18 it's totes worth it ;_; 'tis a thing of beauty Apr 18 01:24:39 also we want it, so I must continue bashing my head repeatedly into the keyboard until something compiles Apr 18 01:25:18 java's verbosity isn't helping my odds there. if this were perl, I'd have probably already written an operating system. Apr 18 01:25:32 i think walmart may have finally stopped selling gingerbread phones, still a lot out there tho Apr 18 01:25:41 groxx: Have you looked into Kotlin yet? Apr 18 01:25:43 groxx: write moar kotlin Apr 18 01:25:47 lol Apr 18 01:25:54 yeah, there are a lot out there yet. Apr 18 01:26:03 I'm an "Are you using Kotlin yet?" bot. Apr 18 01:26:09 Though I'm not actually using it myself yet. Apr 18 01:26:22 i'm dealing with sqlite right now, and kotlin is making it damn near bearable to look at Apr 18 01:26:22 kotlin: not yet. highly unlikely to be able to use it at work, and main side project is well on its way without adding another thing to learn :) Apr 18 01:29:29 treelzebub how did kotlin change the sqlite experience ? Apr 18 01:31:02 one sec, i'll show you Apr 18 01:31:49 what the Apr 18 01:31:55 ikr Apr 18 01:32:00 I can't even Apr 18 01:32:07 there was a hidden window under my text input Apr 18 01:32:08 maybe typesafe builders Apr 18 01:32:15 i have never seen before Apr 18 01:32:20 like a magical portal into irc Apr 18 01:33:02 Anyone know any SwipeToRefersh libraries where it is relatively easy to swap out animation in the refersh-header space? Apr 18 01:38:33 this is the only piece of the puzzle i can show you, but it shows how kotlin abstracts all the ugly crap away from sql statements [ http://pastebin.com/g1nNCBwq ] Apr 18 01:40:43 why does android hate me. windowSoftInputMode="adjustResize" -> keyboard comes up -> zero resizing happening, on one device. Apr 18 01:40:59 groxx android hates everybody, don't feel bad Apr 18 01:41:04 too late Apr 18 01:41:14 * groxx goes to drown his sorrows in beer and/or coffee Apr 18 01:42:46 and the rendering bugs. omg, the bugs. they never stop. Apr 18 01:42:52 surfaceview sucks Apr 18 01:43:11 Sounds like the makings for a great country/western song. Apr 18 01:43:33 heh Apr 18 01:43:36 or a haiku maybe Apr 18 01:43:37 you can call it "I Got Punched In The Face... For Stickin' My Nose Where It Didn't Belong" Apr 18 01:44:16 omg the bugs \n when will they stop, I ask you \n I hate gingerbread Apr 18 01:45:35 ok... so apparently: fullscreen + no titlebar + gingerbread = adjustResize is ignored. Apr 18 01:47:19 I cannot get this widget to draw right... Apr 18 01:47:54 it's almost always the right size, but I cannot figure out how to make it fill the full available space Apr 18 01:48:17 I've even added negative padding, and it seems to fit for a minute, but then goes back to being smaller Apr 18 01:49:59 i dont think you can use negative padding - negative margins on some layoutys, kinda Apr 18 01:50:20 alrhough romain didn't like to admit that Apr 18 01:50:47 yeah, negatives are risky. layouts don't seem to be written to deal with negatives intentionally. Apr 18 01:52:21 I wonder if it's something to do with being a ring shape Apr 18 01:54:08 if you were to make a sort of progress ring in and android appwidget... can you apply an arc to it programmatically? Apr 18 01:55:38 joshkovach: there's Canvas.drawArc, if that fits what you're asking Apr 18 01:55:46 it might... Apr 18 01:56:12 groxx: btw, I figured out my issue with canceling pending intents earlier (might have been signed on as shekibobo) Apr 18 01:56:26 need to call both pendingIntent.cancel() and alarmManager.cancel(pendingIntent) Apr 18 01:59:20 ah. makes sense, i gues :) Apr 18 02:06:59 so my CS teacher implements onClickerListener in all of his activities and then has a onClick method overridden in which he has a else if ladder for different ID cases. This is bad form right? Apr 18 02:07:30 Yeah, I don't think that's good code at all. Apr 18 02:07:55 TacticalJoke: just confirms how silly it is that he is allowed to teach any sort of computer science Apr 18 02:08:21 next year he is running a mobile app development course where there will be no pre requisite at all Apr 18 02:08:42 so he's going to be teaching people with 0 coding experience android lol Apr 18 02:09:41 I wonder whether others agree on that onClick thing. I'm guessing they will. Apr 18 02:09:44 eh... there are plusses and minuses. fewer objects that way. Apr 18 02:09:47 I just find it not neat or easy to maintain. Apr 18 02:10:14 groxx: why are there fewer objects? Apr 18 02:10:25 groxx: he still defines a button with findViewById Apr 18 02:10:54 The View.OnClickListeners themselves are objects that need to be instantiated. Apr 18 02:10:58 DadFoundMy: "normally" you make a `new View.OnClickListener()` for each view that has a click listener. that's a new object each time. Apr 18 02:11:12 well TIL Apr 18 02:11:40 mhy biggest issue is that is difficult to search for the funtion of a View Apr 18 02:11:57 I guess there's also the fact that inner classes are extra bytecode. Apr 18 02:12:03 (Whether anonymous or not.) Apr 18 02:12:25 like if you see the instance variable is mButtonEnter not everyone will define the id as R.id.butt_enter Apr 18 02:12:44 some people will call it someone slightly different so you wont be able to just search for the function Apr 18 02:13:03 and the fact that is doesn't follow standard at all Apr 18 02:13:29 you'll probably see it more with a) people who have done UI coding in C (where older libs tend to give you a single "key pressed" callback where you have to check what's been done, or you have to query "is view pressed?" in your event loop), or b) people micro-optimizing for device-performance rather than programmer-performance. Apr 18 02:14:04 groxx: yeah i think he does it from how swing handles listeners Apr 18 02:14:14 and hes deffinetly not doing it for performance reasons :D Apr 18 02:14:42 If I were to do that I'd use a switch statement where each branch calls a method (and does nothing else). That'd keep the onClick method single-purpose. Apr 18 02:14:44 it's a different pattern. I agree that it's a bit harder to follow, but part of that is simply that I have less experience with it. Apr 18 02:14:55 ^ yeah, I'd use switch too :) Apr 18 02:15:14 he thinks switches are awful and has actually taken points off of my assignments for using them Apr 18 02:15:35 :| Apr 18 02:15:50 TacticalJoke: if helper methods are used i dont think i would hate it as much. he only puts stuff in onCreate() though... Apr 18 02:16:31 even if it may be acceptable form imo an intro class should teach the stanard methods of doing things Apr 18 02:16:48 i could rant for hours about this guy Apr 18 02:16:55 If he thinks switches are always bad he is doing something wrong. Apr 18 02:17:05 Switches are sometimes way better than if-else-if chains. Apr 18 02:17:13 he marks me off for using k&r style brackets Apr 18 02:17:40 TacticalJoke: i love using switches for id values. Like in a onContextItemSelect() type situation Apr 18 02:17:54 Yeah. And switching on enum instances is really nice and concise. Apr 18 02:18:24 Switching on strings is also way less verbose. Apr 18 02:18:24 though I do wish there was a way to say "I don't care about the default case" for enum switching Apr 18 02:18:27 No need for String.equals. Apr 18 02:19:21 he also marks off for use of for each loops Apr 18 02:19:27 i dont even know his reasoning for that one Apr 18 02:19:27 otherwise I have a bunch of "default: throw exception" lines, because technically the enum could change in the future, even though it's an internal thing. Apr 18 02:20:20 if it's micro-optimizing again: `for (whatver : yay)` will make a new Iterator instance. technically less performant than `for ( ; ; )`. Apr 18 02:20:57 groxx: first, you shouldnt mark off points off a high school grade due to micro optimaizing, and 2 thats not his reasoning at all Apr 18 02:21:05 but I'll happily claim iterators are superior. you can iterate over anything Iterable, not just things with indexes. Apr 18 02:21:11 DadFoundMy: Right, that'd be a bad thing to teach. Apr 18 02:21:14 agreed :) Apr 18 02:21:24 yep, they're awesome Apr 18 02:21:30 he doesn't know what the jvm is let alone what optimzing is Apr 18 02:21:57 actually he cares about optimizing at the wrong times imo Apr 18 02:22:17 like if you create an extra primitive than you need he wil rant that its slow and not efficent Apr 18 02:22:47 but at least in my opinion if an extra primitive makes your code more readable you should always use it considering it barely takes any performance Apr 18 02:23:28 DadFoundMy: Even local variables? Apr 18 02:23:35 I mean "Is he talking about even local variables?". Apr 18 02:23:49 TacticalJoke: yup specifically about local variables Apr 18 02:25:27 i could rant about this guy for days. Currently he is teaching his intro to computer science class Swing, but he hasnt taught them what a class or an object is yet Apr 18 02:32:09 Yeah, that sounds particularly misguided. There are cases I've seen where extracting a local variable will have no performance impact whatsoever, cases where it'll actually improve performance (accessing a local versus accessing a field), and so on. Apr 18 02:32:16 And of course it's another attempt at micro-optimizing. Apr 18 02:33:31 DadFoundMy: One of my computing tutors in college was clueless, too. He struggled with basic stuff in even Visual Basic. I swear he was a hardware guy and not a software guy. Apr 18 02:35:58 Totally off-topic, but this has to be one of the nicest pieces of music ever: https://youtu.be/P9C0LE-rdbA Apr 18 02:36:06 I almost feel that it would be impossible not to like it. Apr 18 02:36:13 No idea where it's from. Apr 18 02:36:33 TacticalJoke: I'll prefer https://www.youtube.com/watch?v=QH2-TGUlwu4 Apr 18 02:36:40 isn't it possible for a buyer to request refund after the 15/30 minute window ? through play ? Apr 18 02:36:46 15 minutes, yes Apr 18 02:36:56 i thought it pretty much always went through Apr 18 02:36:59 from purchase, not install, which is idiotic when some games are gigabytes of download. Apr 18 02:37:00 even after 15 min Apr 18 02:37:03 this is easily the best coding music https://www.youtube.com/watch?v=fWNaR-rxAic Apr 18 02:37:18 Haha. I remember that song. Apr 18 02:37:59 I've been doing "Ill-Esha" and "Break of Reality" lately. Apr 18 02:38:11 One thing I have trouble with is listening to Chopin/Rach/Mozart/whatever while programming. It's too intriguing. Makes me wanna focus on it and not what I'm doing. Apr 18 02:38:30 i dont listen to music much but when i do i just listen to edm type stuff while programming Apr 18 02:38:36 its mindless and doesnt distract me Apr 18 02:38:39 I like old Fats Waller "Stride" music Apr 18 02:38:50 Nyan Cat makes me feel like I've dropped acid. Apr 18 02:38:56 haha Apr 18 02:38:57 And fallen into a parallel universe. Apr 18 02:39:03 try some https://www.youtube.com/watch?v=Ed8at5ygXh4 instead :D Apr 18 02:39:23 i wish i could listen to like nirvana or beatles or something lyrical when i program, but i just get too distracted Apr 18 02:39:29 don't listen to much metal, but man that's good Apr 18 02:39:36 (all instrumental) Apr 18 02:39:59 this is pretty epic https://www.youtube.com/user/TwoStepsFromTheMusic Apr 18 02:40:07 the only thing i learned from agamemnus :D Apr 18 02:40:58 I'm a big fan of instrumental stuff. This is an awesome arrangement of a Disney tune: https://youtu.be/RZMM-EEVQtg Apr 18 02:42:52 can the appWidgetId be considered unique and permanent? Or could it change under some circumstances? Apr 18 02:54:19 hm, if i want to open up another android dev account (so i can xfer my app from personal account to new account) do i have to set up another wallet account ? Apr 18 02:54:35 i'm worried i'm going to screw something up and then have to resort to customer support Apr 18 02:54:36 lol Apr 18 02:56:55 i must say - AS support for groovy is so terrible, i'm betting because groovy == dynamic ... i never want to touch that language Apr 18 02:57:14 all dynamic languages are like that Apr 18 02:57:15 any build.gradle file i open up, AS is like ... 'cannot infer argument types' Apr 18 02:57:21 well that's a different matter Apr 18 02:57:27 groovy is much better than gradle groovy Apr 18 02:57:32 gradle groovy is doubly bad Apr 18 02:57:35 ahhh Apr 18 02:57:56 The point remains that IDE's are pretty much powerless with dynamically typed languages Apr 18 02:58:39 PyCharm does pretty well with Python **** ENDING LOGGING AT Sat Apr 18 02:59:59 2015