**** BEGIN LOGGING AT Sat Nov 01 03:00:00 2014 Nov 01 03:00:02 I love the satisfying click sound my new tablet makes. Nov 01 03:00:08 I wanna click just because. Nov 01 03:00:23 as in, i can destroy your entire existence from 3000 miles away without barely lifting a finger? Nov 01 03:00:24 sounds about right Nov 01 03:00:39 go ahead Nov 01 03:00:51 you are a drone Nov 01 03:01:05 thanks. we covered that Nov 01 03:01:21 JakeWharton, makes sense, all you have to do is just use some of those backdoors you put in all your libs :p Nov 01 03:02:05 I wish he'd back-door the Android Studio central server and add JVM unit testing. :D Nov 01 03:02:11 The source server, I mean. Nov 01 03:02:16 Or whatever it is. Nov 01 03:02:23 no need, it's open source! Nov 01 03:02:44 Yeah, but commit access to the central server makes things easier. :D Nov 01 03:02:51 JakeWharton have you done anything more on that jOOQ-like / rx thing you were working on ? Nov 01 03:02:56 means TacticalJoke can add it himself! if only coding didn't make him so unhappy... :p Nov 01 03:03:08 Honestly? I would add it if they asked me to. Nov 01 03:03:09 g00s: yes. it's also becoming a top priority in Dec-Feb Nov 01 03:03:17 I know nothing about the internals of IntelliJ, but I would spend weeks on this. Nov 01 03:03:20 oh sweet Nov 01 03:03:27 TacticalJoke, so all it takes is asking politely? good to know... ;) Nov 01 03:03:38 the internals of IntelliJ are... interesting Nov 01 03:03:46 whatitis: get off your tablet , get on your PC and do some real android-dev like us real men Nov 01 03:03:53 although support for unit testing itself doesn't require much actual IntelliJ work Nov 01 03:03:59 I'd add it and then be trumpeted to the skies. Nov 01 03:04:13 all you need is a source set switcher similar to the build type / product flavor switcher that's there now Nov 01 03:04:15 and then you wake up Nov 01 03:04:25 shmooz, cant, but link your dev? Nov 01 03:04:37 can't? are you glued to your tablet? :p Nov 01 03:04:56 pretty sure ive fixed some of your issjes Nov 01 03:04:59 issues Nov 01 03:05:21 I'm on my tablet, laptop, and phone at the same time. Nov 01 03:05:23 How futuristic. Nov 01 03:05:25 Just limited to interwebs Nov 01 03:05:37 BuzzFeed would write an article about this moment in my life. Nov 01 03:05:53 even if you had to submit and promote it yourself Nov 01 03:05:53 :p Nov 01 03:06:03 I'd consider it, for money. Nov 01 03:06:08 Or if they promised to add JVM testing. Nov 01 03:06:39 would you consider it for a mere promise of a prospect of money? Nov 01 03:07:16 TacticalJoke: they have promised Nov 01 03:08:39 In a weird parallel universe, BuzzFeed has promised to add support for JVM unit testing to IntelliJ IDEA. :D Nov 01 03:08:43 Just messin'. Nov 01 03:10:12 in that same universe, TacticalJoke works for google Nov 01 03:10:50 I'd like to work there just to meet Jon Skeet. Nov 01 03:11:23 why? you hate them, unless they employ you? Nov 01 03:11:33 I don't hate them. Nov 01 03:11:41 uhh Nov 01 03:11:54 99% is hate Nov 01 03:11:59 TacticalJoke: don't feed the troll Nov 01 03:12:31 HAPPY HALLOWEEN, DEVS! Nov 01 03:12:42 $ is a strong motivator Nov 01 03:12:48 Is Halowe'en a happy time? Though it was a scary time. Nov 01 03:12:53 Hallowe'en* Nov 01 03:13:07 and * Nov 01 03:13:29 shouldn't we be saying 'Scary' Halloween ? Nov 01 03:13:54 if it relates to materia Nov 01 03:13:57 l Nov 01 03:14:36 It'd be cool if it were socially acceptable for adults to go trick-or-treating. Nov 01 03:14:42 IT IS Nov 01 03:14:45 if you have children Nov 01 03:14:53 Yeah, but adults don't get stuff. Nov 01 03:15:12 TacticalJoke it is, you can do something like this http://digg.com/video/kid-pilots-dad-in-sweet-mechwarrior-costume Nov 01 03:15:13 I'd like to see the parents knock and the child stand at the edge of the lawn. Nov 01 03:15:34 you'r ewrong.. they "appropriate" or "inspect" the candy Nov 01 03:15:42 except i'd put my dog in the pilot seat :D Nov 01 03:15:54 I can see anti-vaxers doing that Nov 01 03:15:57 Some of these costumes are awesome. Nov 01 03:16:04 you just need a bunny costume and a vocoder to make you sound like a kid Nov 01 03:16:06 can anyone remind me the link of whartons ui? Nov 01 03:16:09 mech-dog ! Nov 01 03:16:10 I wonder whether people ever poison the candy. I bet that happens. Nov 01 03:16:42 that was funny in colo people worrying about pot brownies Nov 01 03:16:46 darth vader mask with a kid voice vocoder built in lol Nov 01 03:18:00 a good mech-dog costume would let my dog urinate on stuff Nov 01 03:18:45 silence. i did it :) Nov 01 03:20:43 I don't like the culture of low quality candy during halloween Nov 01 03:20:52 I give out only caviar. Nov 01 03:21:12 i give out bottles of Dom Nov 01 03:21:53 i dont understand why ActionBarActivity.setSupportActionBar() takes a Toolbar, but getSupportActionBar() returns an ActionBar :| Nov 01 03:21:55 the stores expect you to buy these big packs of toffee twists and out of date waxey stuff Nov 01 03:22:17 g00s: because it's a legacy interface Nov 01 03:22:27 it's not the way you should be interacting with the Toolbar normally Nov 01 03:22:51 TacticalJoke we should say setSupportActionBar(our Toolbat) though, right ? Nov 01 03:22:56 oops JakeWharton Nov 01 03:23:28 so is the getter and setter legacy ? Nov 01 03:23:37 * g00s thought we still needed the setter Nov 01 03:23:49 you don't need either. you can just reference the Toolbar directly Nov 01 03:24:03 the only reason the setter exists is for exposing the Toolbar as the ActionBar for legacy code Nov 01 03:25:08 interesting Nov 01 03:36:38 Is there any problem with using ADB on Windows 8.x? Nov 01 03:37:16 I see that the Google USB Driver doesn't declare Windows 8 support. Nov 01 03:39:49 Is anyone doing Android development on Windows 8? Nov 01 03:40:04 no Nov 01 03:40:59 well, i might soon :) my MBP is dying slowly but the lowest 15" MBP is $2000; so I thought maybe I'd get by on some cheap MS certified laptop for $600 or so Nov 01 03:41:26 Yeah, I might have to switch soon. This laptop's screen is dying. Nov 01 03:41:35 I have various patches of stuck pixels (lol), and they're getting worse. Nov 01 03:42:22 i also considered crouton + chromebook , but not sure how well that would work out Nov 01 03:42:43 sounds like google made it harder to replace ChromeOS :) Nov 01 03:44:18 * g00s wonders what romain is up to these days Nov 01 03:44:26 Did he use to come in here? Nov 01 03:44:31 yeah Nov 01 03:47:05 so I solved my weird AS XML formatting bullshit. it kept putting the ID above the xmlns which was dumb. But whats weird, is that each time I start AS I have to go to prefs _> Code Style -> XML -> Set from -> Android. When i do that you'll notice the xmlns rules change. for some reason it doesn't keep though Nov 01 03:47:58 before set-from, it says Namespace: Namespace; after its just Namespace: Nov 01 03:48:10 and then it works :) Nov 01 03:54:44 My app shows an alert dialog with a list (using AlertDialog.Builder.setList). When running on 4.4.2 (on my tablet), if there is one item in the list, there's a border beneath it. Otherwise, there's not. Nov 01 03:54:59 On my 4.1 phone, there's never a bottom border. Nov 01 03:55:56 setItems* Nov 01 04:05:57 i get these exceptions a lot when installing onto the device : java.lang.RuntimeException: Unable to instantiate application android.app.Application: java.lang.IllegalStateException: Unable to get package info for ; is package not installed? Nov 01 04:06:51 help Nov 01 04:06:58 need help setting up an emulator Nov 01 04:09:04 Agamemnus: And then?! Nov 01 04:09:11 Well Nov 01 04:09:17 I created one Note 2 emulator Nov 01 04:09:24 But can't get adb working with it Nov 01 04:09:40 with genymotion Nov 01 04:09:57 And then? Nov 01 04:10:16 Just being silly. I have no idea. :D Nov 01 04:10:29 Though the "and then"s might help you get help. Nov 01 04:10:49 i don't know how to get adb to see it Nov 01 04:11:58 3rd party unofficial software? you are probably on your own Nov 01 04:12:26 unofficial software? Nov 01 04:12:37 genymotion is supposedly pretty popular Nov 01 04:12:49 popular != official Nov 01 04:13:03 ravilov wut are you talking about ? Nov 01 04:13:10 what does being official have to do with being on my own Nov 01 04:13:11 ? Nov 01 04:13:34 Agamemnus, means if it doesn't work, you're probably on your own trying to fix it? Nov 01 04:13:36 or unofficial Nov 01 04:13:45 it's not broken Nov 01 04:13:52 I was just not sure how to make it work Nov 01 04:14:02 Hmm. Nov 01 04:14:12 so it's not broken, you just can't get it to work? lol Nov 01 04:14:19 Correct. Nov 01 04:14:20 I just opened Google Play from a Reddit client, pressed the "up to parent" button, and it took me back to the Reddit client. Nov 01 04:14:30 So much for that whole page they wrote about implementing up navigation correctly. Nov 01 04:15:29 TacticalJoke, they probably implemented navigation through different activities, so "up to parent" or "level up" or whatever would be pretty much the same as the back button Nov 01 04:16:01 kind of like implementing navigation on a web page and then setting the "previous" button/link to do "javascript:history.go(-1)" Nov 01 04:16:20 Yeah. Nov 01 04:16:28 That page about implementing up navigation correctly says "don't do this". Nov 01 04:16:44 Though I think sometimes it's easier to do that (if you can't simply specify the parent-activity attribute). Nov 01 04:17:05 why? Nov 01 04:17:22 (Probably because it doesn't work) Nov 01 04:17:33 Why what? Nov 01 04:17:34 i tried this in cordova Nov 01 04:17:42 you press back twice, then you exit Nov 01 04:17:47 once, it doesn't work Nov 01 04:18:01 you can't use the history api to exit out right away for some insane reason Nov 01 04:18:12 I hate those "click twice to exit" things. Nov 01 04:18:13 oh, misread Nov 01 04:18:14 maybe Nov 01 04:18:15 but Nov 01 04:18:29 I'm currently implementing just Cordova's exitApp function or w/e Nov 01 04:18:35 but that won't work on iphones... Nov 01 04:18:38 not sure what to do Nov 01 04:18:44 Or, it will, but it'll generate an error. Nov 01 04:19:06 TacticalJoke, would you prefer accidentally hitting back and it closes what you've been working on? :p Nov 01 04:20:12 ugh, cordova... yet another large framework on top of the already existing core framework, all for the purpose of the dev's convenience Nov 01 04:20:19 I think I'd prefer some kind of auto-save thing. Nov 01 04:20:29 Even an "Are you sure you want to exit?" dialog looks nicer, IMO. Nov 01 04:20:31 gmail has that I think Nov 01 04:20:34 Yeah. Nov 01 04:20:35 It's because Java is a horrible language, you see. Nov 01 04:20:42 "Draft saved" or something. Nov 01 04:20:50 TacticalJoke, that's exactly it, they wanted to avoid such (in their words annoying) "are you sure" confirmations Nov 01 04:20:53 I don't mind Java too much. I like its simplicity. Nov 01 04:20:59 Agamemnus, no it's not Nov 01 04:21:12 speaking of Java, I need some code help Nov 01 04:21:17 and well Nov 01 04:21:20 what, for cordova? :p Nov 01 04:21:20 emulation help too Nov 01 04:21:24 but also code help Nov 01 04:21:40 sort of. It's a plugin that uses the Android Google Play API Nov 01 04:21:53 tacticaljoke saw it i think Nov 01 04:22:09 so it was working perfectly Nov 01 04:22:28 Agamemnus, by the way I'm primarily a web developer/programer, that's what I do for a living, it's like second nature to me... and yet even I wouldn't think of making android apps using web-like technologies Nov 01 04:22:29 But I wanted to move the initialization out to a user-defined point. (a function that doesn't run on initialization) Nov 01 04:22:38 and now it doesn't work Nov 01 04:22:56 ravilov, well I'm all about square pegs, round holes Nov 01 04:23:13 does that work for you in general? Nov 01 04:23:18 let me get the code Nov 01 04:23:20 yes it does Nov 01 04:23:23 i revel in it Nov 01 04:23:28 cool Nov 01 04:23:51 I'm all about that space. Nov 01 04:23:57 interesting Nov 01 04:24:04 my first cordova plugin got forked Nov 01 04:24:11 that's the first time anything of mine got forked Nov 01 04:24:28 The first time you've ever gotten forked? Nov 01 04:24:32 TacticalJoke, you mean real estate? :p Nov 01 04:24:37 :D Nov 01 04:24:53 :-D Nov 01 04:25:22 anyway this is my second plugin Nov 01 04:25:28 and it doesn't work at all anymore Nov 01 04:25:34 so here are the two code pieces Nov 01 04:25:56 Agamemnus, cordova community looks like a rather "special" and secluded one, so... Nov 01 04:26:05 https://github.com/agamemnus/googleplayservices/blob/dcc3d355e30f1bf4bdd32ad319e3b537bfb2c988/src/android/GooglePlayServices.java Nov 01 04:26:11 here it is, working Nov 01 04:26:17 most people are in #phonegap Nov 01 04:26:32 ok, now here is the broken one Nov 01 04:26:41 maybe it is a knowledge deficiency in java Nov 01 04:26:49 ugh, a single space for indentation? that just hurts to read Nov 01 04:26:52 https://github.com/agamemnus/googleplayservices/blob/master/src/android/GooglePlayServices.java Nov 01 04:27:03 just pretend it isn't, or use a script that rewrites it Nov 01 04:27:07 "Code pieces" sounds awesome. :D Nov 01 04:27:25 (not that there is a script like that, but there should be) Nov 01 04:27:37 I'm not entirely sure how to compare them Nov 01 04:27:37 there is a very simple regex I could do in vim Nov 01 04:27:41 no need for any fancy script Nov 01 04:27:46 I just don't feel like it :p Nov 01 04:27:50 I know how to compare two scripts separated by 1 change Nov 01 04:27:55 but 2 changes? I don't know Nov 01 04:27:59 I'm gonna call my code "pieces" from now on. Nov 01 04:28:02 Whenever I get the chance Nov 01 04:28:03 . Nov 01 04:28:28 .. Nov 01 04:28:37 does anyone know? Nov 01 04:28:52 Agamemnus: Dat indentation. Nov 01 04:28:52 Agamemnus, those are literally identical Nov 01 04:29:07 what Nov 01 04:29:08 they aren't Nov 01 04:29:16 or are they Nov 01 04:29:17 damnit Nov 01 04:29:24 computers are never wrong Nov 01 04:29:27 and mine says they are Nov 01 04:29:32 how did that happen Nov 01 04:30:03 ok 2 points Nov 01 04:30:05 must be because you like using cordova :p Nov 01 04:30:13 (1) good news, now I can just edit back to the broken version Nov 01 04:30:31 (2) I still don't know how to compare 2 separate files on github unless they're right next to each other Nov 01 04:30:36 Agamemnus, http://pastebin.com/6S9axpSX Nov 01 04:30:59 oh dear... you really expect way too much out of web pages Nov 01 04:31:11 you should compare them in tools that are made for comparing Nov 01 04:32:09 oh i see Nov 01 04:32:10 https://github.com/agamemnus/googleplayservices/commit/3265b6aa15a0b062c66f8e6270d0a2840394e868#diff-339eb96da6d2a4b5a0525f9fd4e94fcd Nov 01 04:32:21 ok it's just that I need to change the values Nov 01 04:32:21 ok Nov 01 04:32:36 so here is the problem Nov 01 04:32:45 everything's fine until line 97 Nov 01 04:32:54 actually the diff is backwards Nov 01 04:33:08 https://github.com/agamemnus/googleplayservices/commit/af998d8233bcdf1af0ef190b0554de5afccfc3f4#diff-339eb96da6d2a4b5a0525f9fd4e94fcd Nov 01 04:33:14 line 113 Nov 01 04:33:24 basically... it never connects Nov 01 04:33:32 Maybe I am messing up the definition of "this"? Nov 01 04:33:40 lol http://cdn.themetapicture.com/pic/images/2014/10/31/funny-Irish-watch-ticket-bar.jpg Nov 01 04:33:42 er, that would be "googlePlayServices" Nov 01 04:33:47 I actually never tested that version Nov 01 04:34:09 I see Nov 01 04:34:20 instead of going to a pub, I just code Java Nov 01 04:34:39 If you think the watch is slow, just keep compiling Nov 01 04:35:26 ravilov about computers and mistakes http://www.gizmag.com/chisel-energy-efficient-computers/34538/ Nov 01 04:35:27 :) Nov 01 04:35:28 so Nov 01 04:35:33 Have you ever used GPS? Nov 01 04:35:38 Google Play Services Nov 01 04:36:22 g00s, lol Nov 01 04:36:32 doesn't count if it's on purpose! Nov 01 04:36:56 Agamemnus, me? no, never Nov 01 04:37:00 I stay away from it Nov 01 04:37:05 what, why? Nov 01 04:37:17 only ever done pure android so far Nov 01 04:37:26 no google services, no extra libs Nov 01 04:37:51 at least 4 other people use it: http://stackoverflow.com/questions/26601319/google-why-do-i-have-to-ask-users-permission-just-to-get-an-id Nov 01 04:37:52 but that's me, so far I had no need for any of it, if I did I guess I'd use it Nov 01 04:38:01 g00s: when was unsubscribe replaced with unsubscribeOn ? Nov 01 04:38:23 bankai_au i don't remember. i haven't touched any rx in a few weeks now Nov 01 04:38:31 getting rusty already :) Nov 01 04:38:35 Agamemnus, no, at least 4 other people have seen your post... and disliked it Nov 01 04:38:36 perhaps i imagined it existed lol Nov 01 04:38:56 I suppose so Nov 01 04:38:59 is unsubscribeOn a rxandroid thing ? Nov 01 04:39:05 no Nov 01 04:39:15 hm Nov 01 04:39:22 1.0 thing maybe Nov 01 04:39:27 not quite sure why though, seems like a legit question Nov 01 04:42:48 ok! Nov 01 04:42:52 I got it connected Nov 01 04:42:55 yay Nov 01 04:44:02 imagine hooking this up to a fart app http://www.gizmag.com/archt-audio-one/34537/ Nov 01 04:44:32 hello Nov 01 04:45:13 so it's halloween tonight, right? http://cdn.themetapicture.com/pic/images/2014/10/31/funny-dressing-mayonnaise-ketchup-ranch-sauce.jpg Nov 01 04:45:38 it's almost 3pm , what you talkin' about ? Nov 01 04:45:56 g00s, better than a whoopie cushion, right? Nov 01 04:46:20 bankai_au, about other people Nov 01 04:52:00 ravilov Nov 01 04:52:06 You have seen this, right? https://crosswalk-project.org/ Nov 01 04:52:06 btw Nov 01 04:52:12 i use cordova with that Nov 01 04:56:11 I have not Nov 01 04:56:14 interesting Nov 01 04:57:19 it adds a lot of mb Nov 01 04:57:26 of course it does Nov 01 04:57:40 but it makes complex Cordova games viable on 4.x Nov 01 04:58:00 you deploy all these wonderful pieces and you end up with a several-dozen-MB app, all because you insisted on doing it in a web-like fashion Nov 01 04:58:19 whereas it could've been probably no more than a couple MB Nov 01 04:59:08 a lot of users just won't appreciate that, I know I wouldn't Nov 01 05:01:10 it depends on what you're doing Nov 01 05:01:16 of course it's niche for now Nov 01 05:01:19 but it's a good idea Nov 01 05:01:35 I don't see it ever becoming any kind of mainstream Nov 01 05:01:41 it's just not a good concept Nov 01 05:02:05 ravilov what are you talking about ? Nov 01 05:02:07 (now) Nov 01 05:02:16 * g00s looks at history, nothing makes sense :) Nov 01 05:02:30 g00s has me on ignore Nov 01 05:02:37 because he is a hater Nov 01 05:03:12 It's lame when someone releases an app and calls it "[App Name] Beta" forever. Nov 01 05:03:29 Reminds me of those old software developers who'd never release a 1.0. Nov 01 05:03:33 no Nov 01 05:03:36 Agamemnus, not too surprised if that's true honestly Nov 01 05:03:36 what's lamer is Nov 01 05:03:42 * g00s hides Nov 01 05:03:55 getting a boatload of money.. Nov 01 05:03:57 g00s, what are *you* talking about? Nov 01 05:04:03 and then never releasing anything other than a beta Nov 01 05:04:12 Such a beta move. Nov 01 05:04:51 what's it matter? for example wget's current version is 0.16, that doesn't make it any less usable or stable or anything Nov 01 05:05:14 It feels so false to me. Nov 01 05:05:21 And it's like a claim of superiority. Nov 01 05:05:43 Like saying "Those idiots release 1.0 and think their software doesn't have any bugs. We're more realistic". But it's just totally arbitrary. Nov 01 05:07:11 i have a library stuck at version 0.0.0-pre0 Nov 01 05:07:26 :D Nov 01 05:07:45 I'm not sure what version-numbering scheme to use when I release stuff. Nov 01 05:07:58 I kinda like major.minor.tiny. Nov 01 05:08:08 tiny == patchlevel Nov 01 05:08:11 (I don't mean semantic version numbering.) Nov 01 05:08:14 that's what it's usually called Nov 01 05:08:14 some projects like RxJava use semver after 1.0 Nov 01 05:08:15 Yeah, that kinda thing Nov 01 05:08:16 . Nov 01 05:08:33 but prior to 1.0, all bets are off Nov 01 05:08:39 how about using git hashtags as version numbers? Nov 01 05:08:54 I'm not sure I like how Google Chrome and Mozilla Firefox do things. Nov 01 05:09:08 I liked the old way, with people getting excited about an X.0. Nov 01 05:09:18 yeah their future will undoubtedly depend on whether you approve of them or not, TacticalJoke :p Nov 01 05:09:26 what about Chrome 100 Nov 01 05:10:08 TacticalJoke, what about versions such as win95 or word97 or win2000? Nov 01 05:11:05 what does this do exactly requestDisallowInterceptTouchEvent() Nov 01 05:11:27 I'm not a huge fan. Stuff can start to feel old really quickly. Nov 01 05:11:47 at least there would be no doubt as to when a particular version was released :p Nov 01 05:11:56 God, I just had a terrifying thought: Windows 95 is almost 20 years old. Nov 01 05:12:44 shmoon_, judging by the looks of it, it requests disallowing intercepting touch events Nov 01 05:12:48 TacticalJoke another 20 years is going to go buy before your project is done if you don't stop chatting :) Nov 01 05:13:06 heh :D Nov 01 05:13:15 then it will be all for nothing, android will be extinct Nov 01 05:13:21 your app will be done though Nov 01 05:13:21 oh is he doing an actual project? wasn't aware of that, lol Nov 01 05:13:32 we'll all be using Windows Phone Nov 01 05:13:35 * g00s runs Nov 01 05:13:44 that's okay, he'll just port it easily Nov 01 05:13:54 that will be abother 20 years Nov 01 05:14:00 WE could be extinct by then Nov 01 05:14:03 I'll soon (I hope) be working on a Reddit client. Nov 01 05:14:06 And it'll be good. Nov 01 05:14:14 Every Android Reddit client I've tried sucks. Nov 01 05:14:14 you think windows phones will take off? Nov 01 05:14:18 hurry up, by the time you're done there might not be reddit anymore Nov 01 05:14:22 * ravilov hides Nov 01 05:14:33 God, that'd be depressing. Nov 01 05:14:40 not really Nov 01 05:14:42 Finally release the client and Reddit disappears. Nov 01 05:14:47 oh that Nov 01 05:14:52 shmoon_ if you extrapolate their current trajectory ... no Nov 01 05:15:04 sadly. i really liked WP Nov 01 05:15:11 do you think android will take over iOS ? then i will not learn iOS after android Nov 01 05:15:12 also, the new Band thing is cool. i want one Nov 01 05:15:25 hm Nov 01 05:15:32 neither Nov 01 05:15:39 javascriptos Nov 01 05:15:39 shmoon_, you think too much of purely academic stuff Nov 01 05:15:40 ftw Nov 01 05:15:51 i dunno . what I suspect though, is that the OS in best position are those which can handle all form factors including desktop Nov 01 05:15:52 true hehe Nov 01 05:16:08 Is there a Twitter client for Android that doesn't suck? Nov 01 05:16:26 Twitter sucks, so how can any of them not ? Nov 01 05:16:29 True. lol Nov 01 05:16:32 lol Nov 01 05:16:32 g00s, dunno, I never expected (and still don't) that all my devices be powered by the same software architecture Nov 01 05:16:48 Windows 10 is supposed to do that Nov 01 05:16:56 wow Nov 01 05:16:58 I can't wait for Windows 10. Nov 01 05:17:00 Looks really good. Nov 01 05:17:01 same kernel, runtime from watch to desktop Nov 01 05:17:08 yeah I know Nov 01 05:17:24 meanwhile, google will be working on Material 2 Nov 01 05:17:27 I'm just saying I never expected that of any system so it's not really important to me Nov 01 05:17:33 which will be called MetaMaterial Nov 01 05:17:35 :D Nov 01 05:17:44 Metarial? :p Nov 01 05:17:54 lol Nov 01 05:18:05 i dont like windows uer interface though Nov 01 05:18:10 I really like Mac in that sense Nov 01 05:18:18 I kinda like Windows 8's new title bars. Nov 01 05:18:22 kinda sad if that's what sells Nov 01 05:18:23 UI Nov 01 05:18:24 I'm probably unique in that respect. Nov 01 05:18:24 psh Nov 01 05:18:25 they are chaning Windows 10 a bit. you can see in previews what it looks like Nov 01 05:18:35 I like the tiles-in-the-Start-menu thing. Nov 01 05:18:37 yeah i dunno either Nov 01 05:18:40 And the fact that there is a Start menu again. Nov 01 05:18:42 ya seems like metro ui will be integated inside start menu :P Nov 01 05:18:56 Windows seems boring now, compared to Android. Nov 01 05:19:01 :D Nov 01 05:19:02 I think it'll die soon(ish). Nov 01 05:19:06 awesome Nov 01 05:19:08 Surface Pro is fucking awesom Nov 01 05:19:13 how can that thing be boring Nov 01 05:19:17 took me quite a long time to finally start using win7, personally I'm not likely to move anytime soon Nov 01 05:19:18 Oh, I've not tried. Nov 01 05:19:36 Windows 8.1 is way faster than Windows 7 at booting and shutting down. Nov 01 05:19:43 The task manager is also way better in 8.1. Nov 01 05:19:46 surface? is it that weird device with severely underwhelming sales? :p Nov 01 05:20:15 TacticalJoke, maybe because they call it "booted" while it's still starting up stuff? :p Nov 01 05:20:17 I think people are hesitant because of Windows 8 Nov 01 05:20:25 it has lots of people hating on it Nov 01 05:20:50 I think they improved speed significantly under the hood. Nov 01 05:20:53 g00s, I know only a handful people who actually *like* win8/8.1, all the rest of them can't stand it Nov 01 05:20:59 8.1 isn't bad at all. Nov 01 05:21:03 uhhuh Nov 01 05:21:05 I prefer it to 7 (though I'm on 7). Nov 01 05:21:24 I prefer my linux environment over any of those, but that's just me Nov 01 05:21:27 8 was terrible and now people are scared. Nov 01 05:21:30 I like things to work :p Nov 01 05:21:34 They don't realise that 8.1 is actually good. Nov 01 05:21:40 too little too late Nov 01 05:24:06 Windows 10 will be awesome, in any case. Nov 01 05:24:24 i love linux more than anything, I just wish it wasn't so damn ugly. Nov 01 05:24:49 Ubuntu looks good, IMO. Nov 01 05:24:49 2015 could be the year of the linux desktop :) Nov 01 05:24:52 haha Nov 01 05:25:03 In a way, though, "Linux" has taken over now. Nov 01 05:25:23 Ubuntu - brown, how beautiful Nov 01 05:25:31 kinda. not so sure its use in Android contitues any kind of win Nov 01 05:25:34 or maybe gray if you are lucky Nov 01 05:26:31 I spent so much time on comp.os.linux.advocacy back in the day. Nov 01 05:26:42 It was like a cult. Nov 01 05:26:46 * g00s shudders at the thought Nov 01 05:26:48 I was there as a viewer only. Nov 01 05:26:59 somehow i doubt it ! Nov 01 05:27:15 There was one time I left Windows for Linux for about two years. Nov 01 05:27:21 Apart from that, I've never been huge on it. Nov 01 05:28:20 I remember this one argument between a Linux advocate and a Windows advocate that went on for about six years. Nov 01 05:28:22 Neither side giving in. Nov 01 05:28:25 i used it for about 10 years. mac for about 5. nowadays, i really dont care for ideology. I think stalman is mostly correct though. But any of these big corps - apple, MS, ans yes Google - they don't have our best interests in mind Nov 01 05:28:30 I think they posted every day for around six years. Nov 01 05:28:57 Yeah, Stallman is crazy, but he's mostly right. Nov 01 05:30:05 One time I went on a date with a girl that said she went on a date with Richard Stallman. It was weird. Nov 01 05:30:10 Hello Nov 01 05:30:21 Was she a parrot? Nov 01 05:30:36 She worked in a cat circus. Nov 01 05:30:45 So the whole thing was pretty strange. Nov 01 05:30:52 I've a ViewPager inside ScrollView - onTouch for viewpager i specified requestDisallowInterceptTouchEvent(false) for both scrollview and viewpager, still i cannot scroll - I wonder why Nov 01 05:30:55 A funny plot twist would be if *you* were Richard Stallman. Then she was simply stating a blantant fact. Nov 01 05:31:02 But, it's San Francisco, so I guess that's not too strange. Nov 01 05:31:08 I mean horizontal scrolling on viewpager works fine but no vertical scrolling for scrollview Nov 01 05:31:25 I'm def not Richard Stallman. Nov 01 05:31:32 I find it hard to believe Richard Stallman has ever been on a date with a human. Nov 01 05:31:42 I mean, he seems like a smart guy I guess, but I wouldn't want to be lumped in the same dating pool. Nov 01 05:32:02 yeah exactly.. Nov 01 05:32:12 How many dates did you have with her? Nov 01 05:32:18 She was actually really hot too. Nov 01 05:32:35 Apparently she had lost like a ton of weight recently though or something. Nov 01 05:32:47 Only one date with her. Nov 01 05:32:55 She was in a traveling cat circus. Nov 01 05:32:58 Stallman's voice is so weird. He looks like a caveman but talks like a 10-year-old. Nov 01 05:33:03 I'd expect a big, mean voice. But no. Nov 01 05:33:04 So they left town the next week. Nov 01 05:33:26 a traveling cat circus ? Nov 01 05:33:29 dafuq Nov 01 05:33:34 Yeah, it was pretty cool actually. Nov 01 05:33:36 Yeah, I had to google that. Nov 01 05:33:37 Weird. Nov 01 05:33:45 http://www.circuscats.com/ Nov 01 05:33:47 I hope they don't mistreat the cats. :[ Nov 01 05:34:10 Circuses tend to treat lions really badly. It's cruel. Nov 01 05:34:12 there is an awesome horse circus called Cavalia Nov 01 05:34:15 Well, they are treated really well, but they do have like a ton of cats in their RV they travel around in. Nov 01 05:34:23 * g00s hopes the horses are treated well Nov 01 05:34:23 A horse circus now? Nov 01 05:34:29 I got to go in it in fact. Nov 01 05:34:35 I bet the cats are miserable. Nov 01 05:34:43 Nah, they seem really happy considering. Nov 01 05:34:46 Cats don't wanna ride around like that. They need consistency. Nov 01 05:34:50 And most of them are rescue cats. Nov 01 05:34:54 "Considering". ;) Nov 01 05:35:43 With the lions, they basically bully them into submission. Nov 01 05:35:47 That's how the lions get so tame. Nov 01 05:35:50 Ok, so I'm about to build a simple android app to help me learn. Nov 01 05:36:12 What's the best way pull a picture in from someones phone to the app? Nov 01 05:36:37 I've this layout http://pastie.org/9689108 and the listview is long enough to scroll. But scrolling works on listview whereas i want it o work on the entire scrollview. How can I accomplish that? Nov 01 05:37:11 how does the memory work in this case, does it actually save a new picture in memory for my app, or just point to existing pictures memory location? Nov 01 05:37:26 "The life of any circus animal is agonizingly cruel and stressful. For most of their lives they will be confined to small cages and transported thousands of miles as the circus moves from city to city." Nov 01 05:38:12 I wouldn't say cruel for these cats, but I wouldn't rule out stressful. Nov 01 05:38:52 oddalot: I guess it'd have to, even in principle, load the image file into active memory. Nov 01 05:39:53 What kind of component in xml do i need to create to let them pick files? Nov 01 05:42:09 looks like just a button Nov 01 05:42:45 and then create an intent - whatever that means Nov 01 05:42:47 haha, noob Nov 01 05:44:17 g00s... you've got to be missing sleep Nov 01 05:44:44 1:44am Nov 01 05:46:11 is it possible to sort of inspect element in mobile apps ? like i want to see the Layout structure/hierarchy of an app that I have installed on my phone - is that possible? Nov 01 05:50:10 shmoon_, why do you always ask questions that are so easily googlable? Nov 01 05:50:48 shmoon_ you can use hierarchyviewer for your own apps Nov 01 05:51:08 sometimes gapps forget to turn their viewserver thingy off, and you can inspect them too Nov 01 05:51:15 i think gdrive was like this Nov 01 05:51:24 but , hierarchyviewer is such a piece of shit ! Nov 01 05:51:30 ymmv Nov 01 05:52:06 but no, usually can't inspect aribtrary apps that way Nov 01 05:52:10 rooted phone + apktool ftw Nov 01 05:53:18 i think HV used to work for any app pre-HC ? Nov 01 05:54:29 ravilov: i came across HV but it seemed like usable for own apps, not others. hence i asked Nov 01 05:54:35 i am scared of rooting my phone Nov 01 05:57:27 HV works on 4.3 and up for all debuggable apps Nov 01 05:57:38 it works on all apps pre-HC if it was a developer phone Nov 01 05:59:57 hello Nov 01 05:59:59 shmoon_, honestly, you seem to be scared of *doing* stuff in general, for whatver reason, hence a lot of talking and an excessive amount of questions Nov 01 06:00:23 HV(?) tries ... fails Nov 01 06:00:51 shame, since doing stuff is often the best way to learn and get your answers Nov 01 06:00:59 hey guys i am trying to create a device definition in ADT but it wont let me click the button. any help? Nov 01 06:01:38 wuard, use a mouse that works? Nov 01 06:01:50 Doc for hierarchyviewer seems to suggest one always needs an android developer version ... Nov 01 06:01:57 ie. far too little information Nov 01 06:02:08 what should i use instead of getActionBar() now if im extending DrawerLayout? Nov 01 06:02:10 my mouse dose work. the animation works but then nothing happens Nov 01 06:03:34 ive basically been trying to just adapt an old FragmentNavigationDrawer i had, and getActionBar() doesnt exist, nor does getSupportActionBar(), as thats from ActionBarActivity Nov 01 06:05:34 JakeWharton so 4.3+ we don't need https://github.com/romainguy/ViewServer ? Nov 01 06:05:45 i think it's 4.3 Nov 01 06:06:33 4.4 Nov 01 06:06:42 https://github.com/romainguy/ViewServer/issues/14#issuecomment-41880194 Nov 01 06:08:03 shmoon_ see https://github.com/romainguy/ViewServer/blob/master/viewserver/src/main/java/com/android/debug/hv/ViewServer.java#L50 Nov 01 06:08:04 ahhh nice Nov 01 06:19:58 Eclipse DDMS has a rough viewer Nov 01 06:32:14 that would be hierarchy viewer Nov 01 06:53:27 this used to work before ActionBarActivity : fm.beginTransaction().add(android.R.id.content, new DevicePickerFragment()) Nov 01 06:53:59 but now i get Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first. Nov 01 07:01:34 indeed it is ! Can't launch from the command line but, |monitor| works slick :) Nov 01 07:01:59 can't launch HV that is Nov 01 07:05:08 hi Nov 01 07:09:36 there. I Registered a gear fit channel. so now people have a place to talk specifically about that :3 Nov 01 07:09:50 MS Band or bust Nov 01 07:10:06 :D Nov 01 07:10:26 g00s, only if I can use an app similiar to tasker to make the MS band vibrate intensely with a custom vibration pattern until "x condition" is met. Nov 01 07:11:01 with possible triggers including but not limited to, an sms with specific text in it. Nov 01 07:11:17 it works with android Nov 01 07:11:38 afaik it has a BLE api Nov 01 07:11:47 g00s you wouldn't happen to know how to send an intent to an app to make "x thing" happen would you? I don't know how to read app documentation. Nov 01 07:12:05 I would be using tasker to speed up the process. Nov 01 07:12:26 i don't know how to use tasker, sorry Nov 01 07:12:29 depends entirely on the app Nov 01 07:12:32 oh okay. Nov 01 07:13:01 Well, I have a feeling that the gear fit manager has access to some services that can cause the gear fit to vibrate for X duration, or even change it's vibration pattern though i'm not sure how they integrated that.. Nov 01 07:13:13 if I could send an intent to gear fit manager to find out how that'd be cool. Nov 01 07:14:16 there is no general "do x" mechanism, except intents Nov 01 07:14:36 I know that. Nov 01 07:14:45 whether a particular app has an intent for any particular "x", or exposes it, is up to that app Nov 01 07:15:00 I'm gonna try to use an intent analyzer to reverse the intents hidden within the gear fit connectivity since they aren't fully documented so I can attempt to send an intent via tasker to gear fit manager to make the fit vibrate. Nov 01 07:15:51 RedEyedGirl isn't there just a published SDK for this ? Nov 01 07:16:00 gear SDK ? Nov 01 07:17:08 In addition, Samsung Accessory SDK, is the necessary component for communicating between the Host-side Application and Wearable-side Widget. You can find more details below. Nov 01 07:17:30 from web site O.o Nov 01 07:17:36 lol Nov 01 07:18:17 the problem is it's not a gear it's a gear fiiiit Nov 01 07:18:30 and I can't find anything in the CUP sdk documentation (leaked?) about how to trigger a vibration on the gear fit Nov 01 07:18:47 in some of samsung's documentation it said "the notifications work the same on your smart watch as they do in your app" Nov 01 07:18:55 but I'm guessing it won't work like an alarm or incoming call (continuous vibrate) Nov 01 07:19:07 which is what i wanna make an app do to my gear fit based on custom conditions Nov 01 07:19:13 oh well. i wouldn't buy Samsung bubblegum so I have no idea Nov 01 07:19:25 or use tasker to send the intent directly to whatever app has access to send the message to my gear fit to do that. Nov 01 07:24:03 okayyy so i tired both intent interceptor and intent analyzer... Nov 01 07:24:19 none of them give me a actual UI I can use to view currently running intentions and recently executed intents (with their parameters and actions etc) Nov 01 07:49:29 ugh, the BS is neverending https://code.google.com/p/android/issues/detail?id=59077#c8 Nov 01 07:49:52 "This should be fixed in v19. You should only use android.R.id.content now on." Nov 01 07:49:58 um, still isn't working :| Nov 01 07:51:29 I put on a $40 ghoul mask and wandered up and down the street and made kids cry all night Nov 01 07:51:35 I feel accomplished Nov 01 07:54:12 Darklust you should use the same tactics to sell insurance Nov 01 07:55:39 heh, that fix was pulled from ABS Nov 01 07:55:42 g00s: You think I could wear a mask and retain a client? I need commission! Nov 01 07:57:48 i think i may be seeing a different problem though. In a regular Activity, i could do this. But in ActionBarActivityDelegateBase, i think the decor is set with setContentView() ... don't really understand this oh well Nov 01 07:58:17 didn't need to call setContentView() with regular >= HC Activity Nov 01 07:59:41 the other fix was the ensure the decor view was initialized by making a dummy call to getActionBar() or something Nov 01 08:00:20 the reason you can do it in a normal activity is that onPostCreate() calls initDecorView() which forces creation of the FrameLayout that is android.R.id.content Nov 01 08:00:36 and that is invoked before the async fragment transaction runs Nov 01 08:00:38 ah ok Nov 01 08:03:10 never used appcompat though. presumably it has the same problem where it can't eagerly create its fake decor view but it also can't defer forever Nov 01 08:07:43 In ABS we also forced creating the decor in findViewById Nov 01 08:30:11 hm, using 4.4.4 on N7 stock, but still getting [2014-11-01 04:29:02 - hierarchyviewer]Unable to get view server protocol version from device 089d8eff Nov 01 08:30:28 debug apk; didn't see anything in dev options Nov 01 09:08:25 good morning folks. Nov 01 09:09:50 morning Nov 01 09:13:08 g00s: I got that also ... I finally used the monitor tool Nov 01 09:13:40 ooops, no g00s Nov 01 09:25:20 shmoon_ : use |monitor| from the command line instead of |ddms| Nov 01 09:26:59 Is this channel the proper place to ask beginner question round about the android development topic or is this channel more targeted advanced or experts developers? Nov 01 09:30:47 Is it possible to intercept headphone remote button presses if the remote was only made to be compatible with iCrap? Nov 01 09:31:34 tobbo: ask ... Nov 01 09:31:49 especially if you googled already Nov 01 09:32:03 capella: yup I did Nov 01 09:32:17 theres that icon that you click oto generate snapshot which gives you hierarchy of views Nov 01 09:32:26 but the real hierarchy viewer doesn't work with my nexus 4 Nov 01 09:32:30 works fine with emulator Nov 01 09:32:36 yep. I googled and I asked stack overflow. I know that this is a ‘not understaing how the adb works’ I hope you can provide some new aspects how to know more about my myistake. Nov 01 09:32:56 http://stackoverflow.com/questions/26687603/adb-d-forward-tcp5601-tcp5601-fails-to-bundle-avds-of-a-phone-and-a-wearable <— Maybe somebody has an idea an may explain why this fails. Nov 01 09:33:49 nice cute avatar tobbo Nov 01 09:35:00 thanks shmoon_. It’s a openclipart unter cc-licence Nov 01 09:35:16 Hey, for a newcomer android developer(but not a newcomer developer), what's the prefered development enviroment? is it android studio today? i remember not too long ago it was still on 0.1 beta. Nov 01 09:35:37 yup android studio is rocking Nov 01 09:36:18 yep. Or if you own a IntelliJ licence. IntelliJ - but that’s the same. (Android Studio is just a ‘simpler’ but free version of IntelliJ13) Nov 01 09:36:56 I’m a fulltime java developer and I love Android Studio / IntelliJ. So much more productive as Eclipse. (imho) Nov 01 09:37:05 than. Nov 01 09:37:51 I'm a student and i'm pretty sure they have some free licensing program for students, or atleast heavily discounted, so price is not a concern, i haven't done major java developemnt for a while though, and back when i did it was 1.5/1.6 and Eclipse was the only thing i ever used (and i loved it) Nov 01 09:38:04 intellij ce, which android studio is a fork of, is free as well Nov 01 09:38:32 also, tobbo, how is the status of developing for android with other languages? i remember it used to be quite shit, but is it possible to develop with C++ reasonably for android? how about python? Nov 01 09:38:54 my former university had a Jetbrains (the company behind IntelliJ) academic programm. All IDEs were Free of charge Nov 01 09:39:38 martinski: dunno so much about that. the ‘very native’ way is still C. There is a growing Ruby port to create Apps. Nov 01 09:39:50 http://ruboto.org/ Nov 01 09:40:10 I'll take a look at that, thanks. Nov 01 09:40:31 As I said, I’m a fulltime enterprise java developer. That’s why I like Java and why I’m switiching vom Apple devices to Android devices. Nov 01 09:40:40 If I’m able to link my damn two AVDs :D Nov 01 09:41:23 A friend of mine told me recently there's some problem's with working with AVD's, that they have a different kernel (not ART or DALVIK) and that i'm better off testing on physical devices. Nov 01 09:42:10 Hm. I do not own any Android devices. Nov 01 09:42:29 Both avds are booiting, but I cannot link them together wo send notfications. :’( Nov 01 09:42:54 I live in a ‘not so important’-country in google’s point of view Nov 01 09:43:03 so we have no wear or no nexus 6 Nov 01 10:24:49 hey, what does the @+ in front of the id mean? Nov 01 10:25:15 that its a new id and you arnt trying to reference an existing id someplace else Nov 01 10:25:27 ahh, that explains my problem then haha Nov 01 10:25:45 i was tring to use the same + to refer to it Nov 01 10:26:50 hmm actually that didn't work either Nov 01 10:28:02 so if I have an EditText element with @+id/editText1 and I have a TextView with i @id/editText1 why doesn't the TextView display whatever I type into the EditText> Nov 01 10:28:04 ? Nov 01 10:28:26 gonna need to see some code Nov 01 10:28:54 Oh, I think I just need to reference the app namespace Nov 01 10:36:16 oh, i guess you can't even do that Nov 01 10:39:20 you cant have 2 view with the same id in one xml Nov 01 10:39:33 the damn avd connection between two devices causes some headache… :/ Nov 01 10:41:42 no, what i mean is, i would set the text to reference the id of the edittext Nov 01 10:42:12 but i guess you have to have some kind of event to update everything Nov 01 10:42:18 like a button click or something Nov 01 10:42:32 it doesn't just automatically update itself and the view Nov 01 11:10:07 might be a stupid question, but if I include a return statement inside a try block, will the finally clause be executed before returning or not? Nov 01 11:11:39 Yes, yes it will be. Nov 01 11:11:47 Also, don't put return in finally :) Nov 01 11:14:07 thanks, it sewemed a little backward to me to have the return statements in the try and catch blocks, but to take them out means introducing a new variable to hold the return value Nov 01 11:16:23 gsteinert, it's ok to have return statements in try and catch blocks Nov 01 11:16:31 just be very careful about what you do in finally blocks Nov 01 11:16:53 they ALWAYS get executed and if you have a return statement then... it'll eat your exceptions make your code run funny and WILL ruin someone's week debugigng it :P Nov 01 11:17:46 sounds reasonable to me! i'm working on this myself and I'd rather not waste a week debugging :P Nov 01 11:22:20 Hi can someone please give some solution to http://stackoverflow.com/questions/26688525/how-to-create-a-jsonobject-out-of-the-following Nov 01 12:14:21 Hey guys. I have an OnDateSetListener in my datepickerdialog and once the date is set an asynctask runs. first, it takes a very long time (~20 seconds) for the asynctask to actually execute and second it seems like it is running the OnDateSet method twice (as I can see through logs) Nov 01 12:15:09 to write android apps, do you have to use an IDE, or could you use just a text editor? Nov 01 12:16:26 really bro? Nov 01 12:16:36 can a text editor compile code? Nov 01 12:17:12 yes, you can just use a text editor Nov 01 12:18:31 no programming language that I've ever encountered has the IDE as an absolute prerequisite Nov 01 12:19:04 MartialLaw, he said to write, not to compile Nov 01 12:19:15 ravilov: vb6. Nov 01 12:19:36 why is my ondatesetlistener being called twice? ahh Nov 01 12:20:26 indrora, possibly, I have not yet "encountered" it ;) Nov 01 12:20:47 ie. I never did a singls line of code in it Nov 01 12:21:40 ravilov: heh be glad. there's also Delphi of old and several variants of ruby used in game Dev Nov 01 12:21:46 tb01110100: you could use a text editor, but you'd probably have an easier time using an IDE. why do you want to use a text editor? Nov 01 12:21:57 gsteinert: just curiou Nov 01 12:22:00 *s Nov 01 12:22:50 the IDE just pulls together all the editing, compiling and debugging tools - the important ones are still all available through the command line Nov 01 12:23:02 https://code.google.com/p/android/issues/detail?id=34833 apparently i'm not the only one, why have they not fixed this bug? Nov 01 12:24:56 because they hate you? Nov 01 12:25:07 or maybe they just don't care to Nov 01 12:25:54 ravilov can be a dick sometimes Nov 01 12:26:05 but a helpful dick Nov 01 12:26:34 or, because the broken behavior is now the standard so everyone works around it. it's a bit like SimpleDateFormatter and "HH" not being valid in api17 and below Nov 01 12:27:31 MartialLaw: the date/time picker is a pain in ass Nov 01 12:27:52 looking at hte bug report, there are existing apps replying on this behaviour... fixing the bug would break the apps (comment 16 and 20) Nov 01 12:28:29 e.g. there are some missing features like "today", "yesterday", "tomorrow", "now", ... Nov 01 12:28:33 That's why there's targetSdkVersion Nov 01 12:28:48 Fix bugs without breaking apps relying on broken behavior Nov 01 12:30:28 https://android-review.googlesource.com/#/c/61270/ looks like it's just waiting verification (since Aug though...) Nov 01 12:48:58 gsteinert: yeah i saw that Nov 01 12:49:22 gsteinert: 'tis a shame, datepicker has always caused me problems one way or another Nov 01 13:39:45 hi, which emulator other than Bluestacks support ARM based applications?? Nov 01 15:00:49 so this ViewServer library helps active hierarchyviewer for our own apps only ? Nov 01 15:01:16 yeap Nov 01 15:02:00 hm not (any) other apps Nov 01 15:02:10 i was wondering how i could inspect any app that i want to Nov 01 15:02:37 I thought you already asked this earlier and was explained in detail all about it Nov 01 15:04:31 there wasn't details - I just started reading up on it and figured that it can be used for self-apps only. i didnt read back then (the github code document) Nov 01 15:04:52 * shmoon_ is a slow learner Nov 01 15:05:48 very Nov 01 15:06:19 you were told it can be used for other apps but that only works on honeycomb and older Nov 01 15:06:48 you were also told it can be used for other apps if they happen to not have removed their viewserver Nov 01 15:07:01 not sure what else is left unclear Nov 01 15:07:18 I also told you exactly how to peek inside arbitrary apks Nov 01 15:07:28 looks to me all bases were covered Nov 01 15:10:21 hi,anyone here use mac yosemite to develop? Nov 01 15:10:53 i cant create new android project in eclipse in yosemitee Nov 01 15:13:00 every time i got the build error Nov 01 15:14:31 but its no problem if i create the project trhough android command line tools Nov 01 15:29:35 as far as I've noticed most android devs unfortunate enough to be on macs have promptly downgraded after trying yosemite Nov 01 15:30:02 anyone else experiencing crashes with the AVD since the Android L api update? Nov 01 15:30:15 always getting "no response" after a while Nov 01 15:39:19 java.lang.ClassFormatError: Illegal field name "CardView.Dark" in class android/support/v7/cardview/R$style Nov 01 15:39:27 in AS 0.9. why? Nov 01 15:56:57 is there a simple way to get the angle of the phone in degrees/radians from the Rotation Vector sensor? Nov 01 16:27:23 i didnt thought that some google APIs could produce unexpected results even if they have a well defined return type Nov 01 16:27:55 lol Nov 01 16:41:29 i dont trust google libs again Nov 01 16:41:31 wont Nov 01 16:41:53 How come android:text="<" gives the parsing error: Error:(42) Error parsing XML: not well-formed (invalid token). Nov 01 16:42:25 Should I use < instead perhaps? Nov 01 16:42:34 how can i get a reference to the action bar/toolbar from a DrawerLayout? Nov 01 16:43:11 Muchoz: yes Nov 01 16:43:16 < works instead of <, how come it the preview doesn't give this error then? Nov 01 16:43:26 how come the* Nov 01 16:54:30 Muchoz, because previews are grossly inaccurate a lot of the time Nov 01 16:54:57 ravilov, it is accurate this time. It should at least tell me that was the problem. Nov 01 16:56:15 maybe so but I wouldn't count on it if I were you Nov 01 16:56:52 they are just overall unreliable Nov 01 17:37:50 Hi everyone! Nov 01 17:38:42 What is recommended way to manage multiple web-api calls throughout different activities in the app? Nov 01 17:40:55 ashemark: this is your decission as developer Nov 01 17:41:25 ashemark: e.g. you might have calls that have no UI interaction Nov 01 17:41:42 monsti What options do I have? Right now, I'm using apache http client embedded in an async task Nov 01 17:41:57 for each api call Nov 01 17:42:26 Is there a way/library to centralise everything? Nov 01 17:46:04 retrofit comes to mind Nov 01 17:46:13 ^ Nov 01 17:46:17 nothing you couldn't have googled anyway Nov 01 17:47:27 hi Nov 01 17:47:29 I tried using volley Nov 01 17:47:45 so everyone i have some good news and some bad news about my progress trying to essentially "hack" my gear fit o.0 Nov 01 17:47:59 but it was too buggy, so thought I'd ask here what everyone is using Nov 01 17:48:03 just use google, there are tons of libs out there and each one has docs and samples/examples Nov 01 17:48:07 good news, i installed android studio and got the example code to run... bad news.. there don't appear to be any "vibrate" parameters to cause the gear fit to vibrate... Nov 01 17:48:22 make your own informed decision like a dev should Nov 01 17:48:59 but in short, I've never used retrofit myself but I've heard good things about it, and a lot of people are using it Nov 01 17:49:09 ravilov that's good to know Nov 01 17:49:12 also i hilariously caused my gear fit to crash a bit trying to call notify() Nov 01 17:49:46 is there anyway to trick the android system into thinking an alarm is going off, that doesn't stop? or any way to make it so the alarm on the android system doesn't stop until you stop it. Nov 01 17:49:54 Usually it silences itself after a minute or so. and i don't wake up... Nov 01 17:50:04 you're talking about an app Nov 01 17:50:09 not android itself Nov 01 17:50:28 if there are configuration options for that you could probably find them within the app Nov 01 17:50:28 okay well the alarm clock app on samsung galaxy's s4 automatically stops.. is there any way to change that. Nov 01 17:50:39 don't know? look at the settings Nov 01 17:50:45 nop Nov 01 17:50:46 thats where you'd be able to change settings for an app Nov 01 17:50:46 they're pretty minimal Nov 01 17:50:50 thanks ravilov, monsti Nov 01 17:50:53 you can't change systems apps Nov 01 17:51:00 there aren't any settings for how long the alarm stops for Nov 01 17:51:02 why woudl they do that Nov 01 17:51:06 code your own, get some at the playstore Nov 01 17:51:07 why would they make it so it turns off by itself.. Nov 01 17:51:17 ask the korean coder Nov 01 17:51:32 * RedEyedGirl is trying to code her own alarm but no alarm apps that are third party make the gear fit vibrate. So she is trying to study how to make the gear fit vibrate. Nov 01 17:52:05 * RedEyedGirl is pretty angry there isn't a "make gear fit vibrate" command in the samsung CUp API Nov 01 17:52:27 maybe you should've got an android watch :O Nov 01 17:52:29 RedEyedGirl is in for a lot of hassle I'm afraid, not a lot of wearable devs in here Nov 01 17:52:54 RedEyedGirl: i suggest installing a android sdk api demo Nov 01 17:53:05 i read that the gear 2 and the gear had weaker vibrations. Nov 01 17:53:18 e.g. the api 15 demo (android 4.0.x) and test if you can use android vibration Nov 01 17:53:27 well ... Nov 01 17:54:00 So I'm getting information from an API and I want to put every JSONObject from the JSONArray that I get back in a ListView. I would like to make it so when the app restarts, it still has the information from the previous time but I want it to be easily removed and refreshed. How should I store that JSONArray? Just convert it to a String and put it in SharedPreferences? But that sounds like a dumb way to do it. Nov 01 17:54:01 * monsti got rid of the list "my hardware should - but won't" ;) Nov 01 17:55:46 wow... this is really annoying... Nov 01 17:55:52 "gear fit" +development tutorials yields five results on google. Nov 01 17:56:09 are there NO FULL LENGTH tutorials or documentation on how to develop WITH SAMSUNG CUP Nov 01 17:56:25 i have the official CUP documentation but it doesn't go into detail on how to make the damn gear fit vibrate what the .... bleep Nov 01 17:56:29 you need another girl Nov 01 17:56:43 RedEyedGirl, you're lucky, I got 4 Nov 01 17:56:49 RedEyedGirl: Isn't this one of those "it was never gonna work" projects? Nov 01 17:59:16 RedEyedGirl, just curious, are you really red-eyed or is that just part of your halloween outfit? Nov 01 18:02:16 Nvm, I don't need to save it. Nov 01 18:05:54 is cardview really that useless? Nov 01 18:06:25 it's just a layout with some function google considers "usefull"? Nov 01 18:07:43 RedEyedGirl, probably not what you wanted to hear but... http://forum.xda-developers.com/showpost.php?p=56313435&postcount=3 Nov 01 18:08:13 Does anyone use a screen protector on their tablet? Just curious. Nov 01 18:08:34 Or "DAE not use a screen protector on their tablet?". Nov 01 18:08:37 yes Nov 01 18:09:29 I have Nov 01 18:09:33 oops Nov 01 18:14:22 i have a cheap transparent protector because i cant enjoy the super high resolution with the anti glare and anti everything stuff Nov 01 18:14:58 I bought a pack of two screen protectors for my new tablet, but they were so horrible. Nov 01 18:15:02 Anyone here? I suppose this is app development irc Nov 01 18:15:17 Made the screen hard to swipe. Gesture typing was almost impossible, for example. I ended up just throwing them. Nov 01 18:16:20 ramsudharsan: You know what they say about "assume"? Nov 01 18:16:24 That doesn't apply in this case. You assume correctly. :) Nov 01 18:16:39 Wait, you said "suppose". Never mind. Nov 01 18:16:41 Haha.. Nov 01 18:16:54 My brain just changes people's text at times. It's weird. Nov 01 18:16:56 ravilov i'm not really red eyed but i am getting quite frustrated...... Nov 01 18:17:09 I have a doubt... can you help me? Nov 01 18:17:19 and to the other person this isn't one of those "it was never gonna work projects" some people have succesfully created apps that make the gear fit vibrate but i can't seem to... Nov 01 18:17:26 No idea. Could be a topic I know all about; could be a topic I know nothing about. :) Nov 01 18:17:42 i think i have to talk to the hardware directly by sending a packet of data to it.. but the formats on what packets of data do what to the gear fit are NOT documented since samsung only provides a type of abstraction... Nov 01 18:17:43 Might as well just ask. Someone might be able to help. Nov 01 18:18:21 I have a app that supports a reader and it downloads a unique format... I have not made that app so I cannot control it.. But can I change its format Nov 01 18:18:50 What do you mean by "supports a reader"? Nov 01 18:19:06 a document reader Nov 01 18:19:38 I got the file in Android/data/com.app/files/here Nov 01 18:20:07 But its in different format Nov 01 18:20:34 So how do one write a script to change the working format Nov 01 18:20:43 Thats all my doubt is about Nov 01 18:21:36 You've made an app that controls another app (a document reader), which downloads a file in a certain format, and you want to parse that file? Nov 01 18:22:03 No. I don't know app development.. I will be more clear Nov 01 18:22:16 map the file structure, decode values if necessary. When have the data clean a ready then think about conversion Nov 01 18:23:22 I have downloaded an app from Play store which enables me to download books from a company and this app has a reader.. The fact is, it downloads the file in a different format and not in pdf or txt. So I just want to convert it for later use Nov 01 18:23:42 Its not a paid book anyway, just a freebie Nov 01 18:24:15 So you want to write an app that converts a file from some arbitrary book format to PDF or plain text. Nov 01 18:24:48 I don't want to write an app.. I want to open the file anywhere on my system and not through that reader Nov 01 18:26:14 if that app provides copyright content, are you aware that they might have implemented data encryption so mapping file structure isn't enough? Nov 01 18:26:55 Its not a copyrighted content Nov 01 18:27:00 Its like an article Nov 01 18:27:15 I am not aware of the data encryption Nov 01 18:28:07 I figured out this cool tip: to speed up the display of the "recent apps" or "recent tasks" screen, swipe away loads of stuff. The speed depends on the number of items there. Nov 01 18:28:27 I was getting annoyed by how slow my phone's was, and swiping stuff away has made it almost instant. Nov 01 18:28:45 TacticalJoke 20 years ... Nov 01 18:29:33 Thank you guys :/ Nov 01 18:29:41 hey all Nov 01 18:29:53 bizarre linux related problem (I think) Nov 01 18:30:11 I'm usually on putty-tray in Windows.. Nov 01 18:30:22 built an Archlinux machine.. Nov 01 18:30:30 came out fine.. Nov 01 18:30:35 adb shell (works) Nov 01 18:30:45 but tab completion and vi.. Nov 01 18:30:51 do not work in 'adb shell' Nov 01 18:30:59 adb push/pull all work just fine.. Nov 01 18:31:09 what is 'wrong/different' with my Linux install/setup? Nov 01 18:31:19 how can I fix/change it? Nov 01 18:34:38 anyone get HierarchyViewer working on nexus device (4.4.4) without romain's ViewServer? seems like we shouldn't need it any more but I can't get it to work. maybe i need a different OS build? Nov 01 18:45:18 Mystique: Maybe different terminal settings? Nov 01 18:53:25 Mystique, those things never ever worked on windows and probably never will Nov 01 18:53:44 windows is just simply way too broken for such things Nov 01 18:58:52 Hi guys. a very fast wuestion. Im doing the design with buttons and stuff in activity_main or in the Fragment_main? Nov 01 19:02:46 Fragment_main does not follow any naming convention I know of. You can do it in both, if I understand you correctly. You likely want to do it in activity_main. Nov 01 19:03:57 Studio complains about that the Onclick method should be related to the Activity and not to the frag. I put my buttons in the fragments but i redo it anyway hehe thanks flan3002 Nov 01 19:04:23 Oh... Nov 01 19:04:51 Is it possible to achieve something similar to 4.4's "immersive mode" in < 4.4? Nov 01 19:05:42 peyam: I could be wrong, but I think onClick expects the click-handler method to be in the Activity, not the Fragment. Nov 01 19:06:03 TacticalJoke, you are totally right Nov 01 19:06:05 I think you have to manually assign a handler (fooButton.setOnClickListener) in the Fragment to have it in the Fragment. Nov 01 19:10:33 TacticalJoke, am I doing somthing wrong? I ahve a right menu of button. I have a main class and menu class. I make a framlayout in the main.xml and call it container. and make a layout for the menu class. I never use the fragment cml Nov 01 19:12:37 hey g00s Nov 01 19:12:43 hey Napalm Nov 01 19:13:05 ugh i hate appcompat Nov 01 19:16:09 What do I have to do to prevent the mobile network connection from being shut down after the screen had been turned off for 1-2 hours? Nov 01 19:16:30 Somebody told me I should take a look at wake locks Nov 01 19:16:34 But I’m not sure if that’s what I need Nov 01 19:17:42 http://developer.android.com/reference/android/os/PowerManager.html#newWakeLock(int, java.lang.String) hmm Nov 01 19:18:45 Or maybe this is not the normal Android behaviour at all and my setup is just broken in some other way Nov 01 19:19:00 qrf: Why do you need to keep it open? If you're waiting for something from a server, use push messaging. Nov 01 19:19:32 I’m using it to provide mobile internet access to a Raspberry Pi that is transmitting compressed sensor data to a logging server on the internet Nov 01 19:19:38 But it keeps on failing after 1-2 hours Nov 01 19:19:45 And as soon as I turn on the screen again it works again Nov 01 19:19:50 The screen of the Android I mean Nov 01 19:19:57 I’m using USB tethering Nov 01 19:20:15 Oh, sounds like a good reason that I have no clue about how to remedy. Didn't think it would turn off as long as it was in use. Nov 01 19:20:24 So did I Nov 01 19:20:30 Everytime I make a change and run my code in the emulator, I see the app reload, but it seems to be caching the old code or something. I keep getting errors on lines that are commented out or are blank (but used to have code with an error). What do I do? :/ Nov 01 19:20:53 clean your project Nov 01 19:21:03 kjeldahl I figured, maybe it’s just the tethered data it doesn’t care about Nov 01 19:21:10 I did that. I'm using android studio and I go to build->clean Nov 01 19:21:14 but it doesn't seem to make any difference. Nov 01 19:21:18 So I’m running a ping tool on the Android to send stuff at least once a minute Nov 01 19:21:25 But apparently even that one fails simultaneously Nov 01 19:21:29 I would suggest switching to some IDE that's not labeled as "beta", but... Nov 01 19:21:48 And it starts working again as soon as I turn on the screen Nov 01 19:22:06 of course it does Nov 01 19:22:10 ever heard of deep sleep? Nov 01 19:22:29 How do I prevent it from going into deep sleep? I’ve never seen any option for it Nov 01 19:22:40 Or do I have to use wake locks to prevent it from entering deep sleep? Nov 01 19:22:49 keep the screen on Nov 01 19:22:49 This is an older Android, by the way, 4.1 Nov 01 19:22:51 the only way Nov 01 19:22:56 O_O Nov 01 19:23:24 also read up on "deep sleep" on android, it seems it will do you good Nov 01 19:23:32 Seriously? Doesn’t acquiring some special power manager privileges suffice? Nov 01 19:23:35 4.1 is not older byw Nov 01 19:23:38 bt* Nov 01 19:23:40 btw* Nov 01 19:23:54 qrf, you mean permissions? no Nov 01 19:24:11 you will have to actually use them too, and even then who knows Nov 01 19:24:19 Well, it’s over 2 years old Nov 01 19:24:26 so? Nov 01 19:24:40 not bleeding edge != older Nov 01 19:25:21 qrf: There's not setting related to "data connection" that can be enabled, like "background data always on" or similar? Nov 01 19:25:30 There's no ... I mean Nov 01 19:25:38 There’s “enable always-on mobile network” Nov 01 19:25:41 Which I have turned on Nov 01 19:25:53 I’m not even entirely sure what it’s supposed to do, I found contradictory information on Google Nov 01 19:26:19 that has nothing to do with deep sleep Nov 01 19:26:32 I told you already to go read up on it, why don't you just do that? Nov 01 19:27:13 Already tried Nov 01 19:27:22 qrf: Ok, not finding much. There's something about possibly forcing your phone to one kind of network (3g or similar) might help, but that's just echoing what Google says. Nov 01 19:28:08 again, nothing to do with deep sleep Nov 01 19:28:43 Do you guys ever have an About menu in your apps? Nov 01 19:28:44 Just wondering. Nov 01 19:28:58 yes Nov 01 19:28:59 s/menu/menu item/ Nov 01 19:29:15 yes Nov 01 19:29:27 Do you have it as a top-level menu item or as an options within Settings? Nov 01 19:29:36 top level Nov 01 19:29:39 K. Nov 01 19:29:48 I kinda like About dialogs. Was thinking of adding one. :) Nov 01 19:29:55 Personalises apps a little. Nov 01 19:30:24 make sure you include an annoying psychedelic animation in the dialog :p Nov 01 19:31:50 http://lwn.net/Articles/479841/ Nov 01 19:32:03 Interesting, Linux kernel developers considered Android’s wake locks controversial Nov 01 19:32:07 So Nov 01 19:32:11 I got everything working Nov 01 19:32:13 And compiling Nov 01 19:32:18 And going on my emulator Nov 01 19:32:20 But Nov 01 19:32:29 localhost is different Nov 01 19:32:41 and no one knows how to fix it Nov 01 19:32:56 http://bbowden.tumblr.com/post/58650831283/accessing-a-localhost-server-from-the-genymotion Nov 01 19:36:16 qrf: Not much help, but some info in case you hadn't seen it.. https://github.com/couchbase/couchbase-lite-android/issues/346 Nov 01 19:36:34 I don't even know what you're talking about, Agamemnus Nov 01 19:36:43 :| Nov 01 19:36:46 i barely do Nov 01 19:37:21 what localhost? what are you doing? how are you trying to access stuff? what is this even? Nov 01 19:37:31 don't assume people will keep track of whatever you're working on Nov 01 19:38:57 Trying FULL_WAKE_LOCK now Nov 01 19:39:30 Ok Nov 01 19:39:38 Let’s see if it’ll stay alive for more than 3-4 hours Nov 01 19:39:42 So I'm just using AJAX.. you know what that is, I assum Nov 01 19:39:44 assume Nov 01 19:39:55 but it doesn't work Nov 01 19:39:56 ok well, don't patronize people either Nov 01 19:40:00 yes of course I know what ajax is Nov 01 19:40:10 i'll tell you the error Nov 01 19:40:23 it still doesn't tell me exactly what you are trying to do Nov 01 19:40:34 where is the server? where is the client? Nov 01 19:40:37 I'm loading a JSON file in the app with Ajax Nov 01 19:41:28 Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load Nov 01 19:41:43 .. 'content://com.flyingsoft.safari.jigsaw.free.expansion/sets/safari/safari.json'. Nov 01 19:41:54 so that somehow goes through ehhh localhost Nov 01 19:42:05 that doesn't go through anything Nov 01 19:42:08 it's a content uri Nov 01 19:42:13 it is invalid for ajax Nov 01 19:42:16 but you can't use localhost in the emulator Nov 01 19:42:22 yes, yes it is valid Nov 01 19:42:32 works fine on an actual phone. Nov 01 19:42:44 you sure it's not just by pure lucj? Nov 01 19:42:46 luck Nov 01 19:42:51 uh... yes Nov 01 19:43:04 ok then Nov 01 19:43:08 basically ajax through the app is like a localhost Nov 01 19:43:13 but the address is different Nov 01 19:43:16 sounds iffy Nov 01 19:43:36 it is Nov 01 19:43:53 sounds like something you don't want to be using unless you really have to Nov 01 19:44:13 have to Nov 01 19:44:21 probably Nov 01 19:49:07 Hmm. I have a DialogFragment and, in onCreateDialog, I want to check whether this is the first creation. I could just check whether savedInstanceState is null, but is this good practice? I know it's gonna be null the first time and non-null thereafter because I know the implementation details of DialogFragment. But that seems to violate encapsulation. Nov 01 19:51:39 why does it matter if this is the first creation or not? Nov 01 19:53:12 I want to call someEditText.setText only the first time the dialog is created. Nov 01 19:53:20 This is because the framework persists the value thereafter. Nov 01 19:53:34 I know that I can just call setText, and it'll be ignored, but I like the idea of making things clear in code. Nov 01 19:54:04 Otherwise I have to have a comment stating "this takes effect only the first time the dialog is created", and that's ugly. :D Nov 01 19:54:41 Much nicer is "if (firstCreation) { doStuff(); }". But static fields are also kinda ugly. :/ Nov 01 20:00:25 my app code would look like a creepshow to you Nov 01 20:00:33 ill improve its code with time Nov 01 20:00:38 :D Nov 01 20:01:46 I have OCD, and it affects my code a lot. Nov 01 20:02:05 It's a pain, but I guess the end result is handy: you get very clean code. Nov 01 20:16:21 Hmm. Can I count on someEditText.append("foo") moving the cursor to the end? It seems to work, but it doesn't seem to be documented anywhere. Nov 01 20:16:36 Also, the code (TextView.append) is amazingly complicated. Nov 01 20:18:15 appending text is no laughing matter! Nov 01 20:18:32 https://www.youtube.com/watch?v=ojgy7kyNp5g Nov 01 20:19:50 It's surprising how bad some of the Android code is. Nov 01 20:20:07 Stuff like 10 screens of code for something that should be simple. Nov 01 20:20:12 Eight levels of nesting. Nov 01 20:20:17 yea....maybe it isn't so simple Nov 01 20:20:21 Good luck trying to get a TL;DR. Nov 01 20:20:28 Even if it's complicated, you can easily refactor such code. Nov 01 20:20:52 also easy for you to say that from here :P Nov 01 20:21:03 go, pull and edit Nov 01 20:21:09 Easy for anyone who's an experienced programmer. Nov 01 20:21:10 help them fix these things Nov 01 20:21:18 get to coding Nov 01 20:22:36 I think that's a reasoning error. It's basically "Unless you're about to fix X, you can't complain about X". But that doesn't really follow. Nov 01 20:23:05 I think it's a subclass of the ad hominem tu quoque. Nov 01 20:23:17 http://en.wikipedia.org/wiki/Tu_quoque Nov 01 20:23:19 it's easy to say things man Nov 01 20:23:23 :) Nov 01 20:23:43 It's not a good argument, though. If the Android code sucks and I say it sucks, it doesn't follow that I have to fix it or retract my statement. Nov 01 20:23:50 It could be that it sucks, I say it sucks, and I don't have to do anything. Nov 01 20:24:00 the point is that you do not have the proof that it sucks Nov 01 20:24:15 you just think that since you think it sucks, then it must be true Nov 01 20:24:25 without regard to things that you might not know about it Nov 01 20:24:38 face value judgement Nov 01 20:25:26 when you have proof that it sucks, you wont need to be told to help fix it, you'll want to fix it willingly Nov 01 20:26:05 "[22:20:06] Stuff like 10 screens of code for something that should be simple." because you look at it and you say "well it's just appending text, this SHOULD be simple, no?" Nov 01 20:28:45 Quick question: New to Android dev, but not new to dev in general, what I've done is that, by using NDK, get the external files dir, and save a txt file to it, but for some reason I can't see the file until after i reboot my phone? This is an LG NExus 5 connected to a win7 x64 machine, is this a common problem? Nov 01 20:31:54 No, not really. That shouldn't happen. Nov 01 20:32:04 hi Nov 01 20:32:16 Tomaz^W, ugh Nov 01 20:32:19 How are you 'see'-ing the file? Nov 01 20:32:22 what does NDK have to do with anything? Nov 01 20:32:26 Odaym: I think it sucks because it violates the SRP. But it's no big deal. Nov 01 20:32:32 * Mavrik gets nasty feeling hard-coded paths are involved. Nov 01 20:32:37 Source Repo Protection? Nov 01 20:32:39 :D Nov 01 20:32:47 Single-reponsibility principle. Nov 01 20:32:51 I just gave as much info as possible Nov 01 20:32:55 aaaaaaaaaah I hear that phrase a lot Nov 01 20:33:06 I think you are taking Code Complete at face value too Nov 01 20:33:11 Code Complete and other books Nov 01 20:33:17 I wouldn't say that the SRP should *always* be followed, but I think it's a very good strategy. Nov 01 20:33:25 Odaym, those should be taken at face value :P Nov 01 20:33:29 It's books along with my owwn experience. Nov 01 20:33:33 own* Nov 01 20:33:38 flan3002: phone conencted to computer as media device Nov 01 20:33:49 yea kind of Mavrik Nov 01 20:33:51 Tomaz^W: Try viewing it with adb. Nov 01 20:34:02 Tomaz^W: I mean... don't trust Windoze. Nov 01 20:34:03 but the problem is that in the real world, where is this easily applicable Nov 01 20:34:07 Odaym, they all say "those are guidelines that hsould be followed as long as they make sense" :P Nov 01 20:34:10 The SRP helps reduce bugs. Nov 01 20:34:11 some functions just have to do a lot.. Nov 01 20:34:53 ^^ all I understood from that (and the books) is how to make functions do less Nov 01 20:35:00 Doing a lot at one level of abstraction is fine. But operating at multiple levels of abstraction makes code hard to read and maintain. Nov 01 20:36:56 Tomaz^W, you actually didn't give actionable info Nov 01 20:37:01 Tomaz^W, so actionable answers: Nov 01 20:37:21 Mavrik: I can give you any info required Nov 01 20:37:33 1.) How are you retrieving the storage directory? 2.) How are you saving the file? 3.) What are your return types? 4.) How are you checking the existence of file? 5.) What is the OS on your phone/ Nov 01 20:37:34 _ Nov 01 20:38:01 You're probably being kicked in the shin by storage virtualization, but let's be sure :) Nov 01 20:38:05 are regexps different from java, in android? Nov 01 20:38:18 TacticalJoke: Justv try add ing a feature to a programmer generator written in a 4GL which produces another 4GL program which produces SQL to migrate database tables between pre-production & production environments! Did that for a few months, the most intense concentration of my entire career! Nov 01 20:39:10 MyWay, nop Nov 01 20:39:45 1) basically getExternalFilesDir, 2) fopen, fwrite, fclose, 3) byt connecting phone as media storage to win 7 computer, 5) 4.4.4 Nov 01 20:40:41 Mavrik: and as I said, if I reboot the phone, the file is there Nov 01 20:40:52 I'm using Pattern.compile(" Trying get setting of preferences working... I get java.lang.ClassCastException: android.preference.Preference cannot be cast to android.preference.GenericInflater$Parent on the following code: Nov 01 20:41:32 http://paste.fedoraproject.org/147118/14872177/ Nov 01 20:41:34 full stack trace Nov 01 20:41:35 http://paste.fedoraproject.org/147126/14148736/ Nov 01 20:42:45 any good reasons not to use android studio? Nov 01 20:43:29 I normally use vim, but ideavim seems to provide most of the vim functionality I'd like Nov 01 20:44:30 One reason: you love eclipse to death. Nov 01 20:44:38 Second: you hate yourself. Nov 01 20:45:14 Tomaz^W, looks like OS bug actually: http://stackoverflow.com/a/14074407/169115 Nov 01 20:45:43 DANtheBEASTman: JVM unit testing isn't really supported. Nov 01 20:46:00 Tomaz^W: I noticed that using Linus as well, files created do not appear until I reboot the Android tablet1, wish there was a less drastic way to make them visible Nov 01 20:46:17 on Linux Nov 01 20:46:25 Mavrik: okay, hmm.. I'll keep googling to see if there is a usable workaround then Nov 01 20:46:46 Maybe triggering mediastore rescan updates the cache or something Nov 01 20:46:47 Nivag: Yeah, takes quite some time to reboot the phone all the time Nov 01 20:47:09 Mavrik: hmm.. Nov 01 20:47:09 the other way is just to not use that buggy mess of MTP :/ Nov 01 20:47:45 Tomaz^W: Seems to Microsoftian for my taste... Nov 01 20:47:57 Tomaz^W, yeah, it seems the second answer there is right that: http://stackoverflow.com/a/20413888/169115 :P Nov 01 20:49:22 Mavrik: only problem is that, as far as I can tell, that is java code? Nov 01 20:49:37 Anything related to filesystem operations will have to be Java code Nov 01 20:49:44 if you want things to work properly. Nov 01 20:50:04 JNI... Ugh. Nov 01 20:50:13 make a Java method that does that Nov 01 20:50:19 and do a JNI call Nov 01 20:51:47 I had done so well with avoiding JNI... :P Nov 01 20:54:32 Would greatly appreciate any help on trying to solve my Preference casting problem above, I think I am consistent with the code example in http://developer.android.com/guide/topics/ui/settings.html#Fragment Nov 01 20:55:37 What is 'the provider'? http://developer.android.com/reference/android/location/Location.html#Location(java.lang.String) Nov 01 20:55:45 * Nivag trying desperately to hang on to my last traces of sanity! Nov 01 20:55:56 * Mavrik hugs Tomaz^W. Nov 01 20:55:59 It gets better with alcohol. Nov 01 20:56:04 Hahaha Nov 01 20:56:27 The feeling, not the code. That's always horrible. Nov 01 20:56:32 Which raises the question, wth am I sitting here, doing this on a saturday evening... Nov 01 20:57:19 Which can always be answered with 300% overtime compensation due to weekend, that's why :P Nov 01 20:57:29 Tomaz^W: You try the future, it is a sunny Sunday morning here!!! :-) Nov 01 20:58:00 Yeah, charing 300% everytime JNI is involved sounds reasonable Nov 01 20:58:04 Nivag: Sun? Not seen that in weeks :( Nov 01 21:00:14 Tomaz^W: you above the Arctic Circle? I am in New Zealand. Nov 01 21:01:09 Nivag: no but close to it, middle Sweden ( arctic circle crosses northern Sweden ) Nov 01 21:02:03 has anyone seen weird behavior with swiperefreshlayout + fragment replace with v21 support libs? Nov 01 21:03:24 second question then: Since I develop for multiple paltforms, most of them having support for Visual Studio, I took the decision to try VSDroid isntead of using Eclipse, but one thing bugs me, altho I doubt anyone has a solution, I fail to get my app to print any text to the Output window in Visual Studio Nov 01 21:03:56 For most platforms ( Windows, PS3, PS4, PSVita ) using printf works fine, on Android I've tried printf and __android_log_printf, neither shows up Nov 01 21:06:31 I'm guessing is has to do with where stdout is pointing Nov 01 21:06:33 it Nov 01 21:06:59 any Android logging goes to logcat Nov 01 21:07:12 so... get logcat into your VS. Nov 01 21:07:41 hmm Nov 01 21:08:06 yeah. on android you get your output from logcat, via adb/ddms, which is where I'd expect android_log_printf to go Nov 01 21:08:23 so, while I know f-all about VS, that's what you need. You can also look at it w/ adb logcat from a termainl Nov 01 21:08:24 terminal Nov 01 21:09:27 Guys I am trying to compile an emulators kernel in order to obtain it and crosscompile with it LiME. However no matter how I try to compile the .config file is always changed when I do run make Nov 01 21:09:31 Is that common issue ? Nov 01 21:11:07 Tomaz^W, don't ever expect any android app to print anything on any kind of console Nov 01 21:11:16 simply because there *is* no console Nov 01 21:11:40 (as far as I know, the "output" window in VS is the console) Nov 01 21:11:51 It's a kind of console yes Nov 01 21:12:04 also I do think trying to do android development in VS is a pretty horrible idea Nov 01 21:12:09 Not really, but most platforms redirect stdout to that window Nov 01 21:12:30 YEah, I'm starting to come to that conclusion as well Nov 01 21:13:36 java development in general in VS is painful Nov 01 21:14:08 well I'm using the NDK, so minimal Java Nov 01 21:15:12 The problem is not using VS necessarily, but starting out in VS Nov 01 21:15:22 whats VS ? Nov 01 21:15:45 visual studio O.o ? Nov 01 21:16:01 It's probably probably better to start Android development in Eclipse or Android Studio and then slowly moving to Visual Studio. Nov 01 21:16:08 g00s: yes Nov 01 21:17:10 g00s, wouldn't think it could be that, right? :) Nov 01 21:17:26 Anyone else having a problem with App Engine Integration Plugin in Android Studio since updating to 0.8.14? Nov 01 21:17:35 Well I've used VS for the past 15 or so years, and I use it for the other 4 platforms I dev for ( Windows, PS3, PS4, PSVita ) so Iwanted to keep it all in one application Nov 01 21:18:00 Tomaz^W, my condolences Nov 01 21:18:16 ravilov VS is very nice, but for android uh Nov 01 21:18:22 It stopped working and when I reintsalled I get an error : Plugin "Google App Engine Integration" was not loaded: required plugin "com.intellij.javaee" not installed. Nov 01 21:18:24 MS has always had great tools Nov 01 21:18:35 well, not always, Visual C++ 1.5 was terrible :D Nov 01 21:19:38 Yeah, MS has consistently been awesome with programming stuff. Nov 01 21:19:53 Tomaz^W, you shouldn't have to reboot your phone to see a file from the NDK Nov 01 21:20:00 And documentation was generally top notch, too, with (as far as I remember) loads of examples of pretty much every public API funciton. Nov 01 21:20:01 function* Nov 01 21:22:23 The only reason I'm doing this is that I've been tasked to port a middleware for creating 3d games, and I have little desire to port that entire thing to Java :/ Nov 01 21:22:40 Is a "swipe to unlock" screen even needed on a tablet? Nov 01 21:23:14 Hi guys. I dont know what I did but I cant run my app on emulator Nov 01 21:24:56 Tomaz^W, this is a middleware that ports 3d games to Android - https://github.com/pelya/commandergenius Nov 01 21:27:11 It may be instructive, I've used it extensively... Nov 01 21:27:49 The emulator is not responding. its been 2 minutes Nov 01 21:27:54 what should I do? Nov 01 21:28:00 peyam: You mean that it won't close? Nov 01 21:28:02 The program Xscreensaver has classes that do some OpenGL to OpenGL ES conversions as well. Nov 01 21:28:24 TacticalJoke, its just blank black screen and nothing happens Nov 01 21:28:45 I'm not sure what you mean. Nov 01 21:29:09 wait Nov 01 21:29:10 peyam: What are you attempting to do? Close it? Nov 01 21:29:54 do you have use host gpu enabled? Nov 01 21:30:01 http://i62.tinypic.com/nq87c.png TacticalJoke trying to run my app Nov 01 21:30:51 Ologn: Nice, but the opgnl isn't an issue, it's the few Android psecific things that are giving me issues right now Nov 01 21:30:57 peyam: if you have use host gpu enabled in your emulator config youre probably going to see that, try disabling and see what happens Nov 01 21:31:10 Like being able to view my log files, or get some kind of debug prints to show up in Visual Studio Nov 01 21:32:48 Tomaz^W, an adb logcat from powershell will show you your logs Nov 01 21:33:06 And I can't even get __android_log_printf to show in adb Nov 01 21:33:52 dbrosyth, it works thanks :) Nov 01 21:34:45 fab button Nov 01 21:34:48 there, I said it Nov 01 21:34:51 np Nov 01 21:34:54 am I up to date now and all cool? Nov 01 21:35:19 Tomaz^W, if you see anything in adb logcat, other apps are successfully sending messages to it Nov 01 21:35:29 I do Nov 01 21:36:12 Tomaz^W, you need in the makefile a LOCAL_LDLIBS -llog Nov 01 21:36:39 Got that Nov 01 21:37:20 Then #include in the header, then the logging statements Nov 01 21:37:46 Not sure what I did, but now it worked Nov 01 21:37:54 cool Nov 01 21:38:40 can it tel ladb to only print stuff from logcat with a specific tag? Nov 01 21:39:04 if i refresh my swiperefreshlayout and then try and replace the listfragment that it was in, the old fragment leaves itself as an artifact on the screen, but i can interact with the new fragment behind it. if i rotate to invalidate everything the old fragments junk disapears. anyone seen that? Nov 01 21:39:32 Tomaz^W, yes Nov 01 21:39:41 Tomaz^W, http://developer.android.com/tools/debugging/debugging-log.html Nov 01 21:40:14 You can filter by priority, by tag etc. Nov 01 21:41:21 Be back later... Nov 01 21:42:01 cool Nov 01 21:42:12 so tag:V should give me all prints from tag Nov 01 21:43:39 if at all possible use android logging statements instead of printf. will save you alot of time and problems. Nov 01 21:44:46 yi use __android_log_print Nov 01 21:44:49 I use* Nov 01 21:47:59 That gfycat website has a weird name. "GFY" has a well defined meaning in online communication. Nov 01 21:48:53 adb.exe logcat TAG_:V <-- why does adb still print every single message from logcat? Nov 01 21:52:13 Mavrik: any idea? Nov 01 21:52:26 Tomaz^W: Doesn't that specify "verbose" (which prints everything)? Nov 01 21:52:38 but it should do it for TAG_ only? Nov 01 21:52:42 If I wana use my location on a map. what do I google to get results? Nov 01 21:52:53 Map API? Nov 01 21:52:59 do I need to also add *:S to silence everything else? Nov 01 21:53:02 Tomaz^W, that filtering never worked for me in command line Nov 01 21:53:12 peyam, Google Maps API yes. Nov 01 21:53:38 Mavrik, TacticalJoke: yeah, addig ' Nov 01 21:53:41 gah Nov 01 21:53:45 Adding *:S fixed it Nov 01 21:54:23 okay, at least I have some kind of debug printing now! Nov 01 21:55:39 That looks like a troubled smiley. Nov 01 21:55:53 Indeed :P Nov 01 21:56:08 http://www.mutuallyhuman.com/team/ Nov 01 21:56:09 lol Nov 01 21:56:54 One of them forgot her glasses. Nov 01 21:57:08 She'd be easy to find in a game of Guess Who, though. Nov 01 21:57:44 they look freaky Nov 01 21:57:48 when you set them up like that Nov 01 21:58:11 I am trying to check whether phone tilt angle is 90 degress for 500ms, what I am currently doing is running a thread which saves the current angle (using the Rotation Vector sensor) every 10ms into an EvictingQueue and every 500ms I copy it to an array and to do this? check if the values are 90-2 <= x <= 90+2. Is it completely stupid and is there a better (and simpler) way Nov 01 21:58:30 Mark Van Holstyn looks kinda like Zach Dennis. Nov 01 22:05:16 let's apply to Imgur Nov 01 22:07:22 Guys I am trying to compile an emulators kernel in order to obtain it and crosscompile with it LiME. However no matter how I try to compile the .config file is always changed when I do run make Nov 01 22:07:49 Because of the errors I am getting afterwards I have reached to the result that I cannot enable module support in kernel Nov 01 22:08:08 this is the scope of the channel Nov 01 22:08:10 ( ) Nov 01 22:08:13 you're here Nov 01 22:08:23 ( ) . Nov 01 22:08:29 god damn spaces Nov 01 22:08:33 ( ) . Nov 01 22:08:36 there Nov 01 22:09:00 heh yeah sry is there a channel regarding android kernel? Nov 01 22:09:09 I doubt Nov 01 22:09:19 ah :/ Nov 01 22:09:21 there's a channel for the language that the kernel was written in Nov 01 22:09:26 that's where you should go Nov 01 22:09:34 C? :P Nov 01 22:09:41 whatever it is Nov 01 22:09:48 that's where you should go Nov 01 22:09:53 Odaym: God. I thought those periods were more stuck pixels on my monitor, for a moment. Nov 01 22:09:57 i need someone with kernel building experience xD Nov 01 22:10:01 yea Im pro with that Nov 01 22:10:18 pro with making dots look like pixels by mistake, that is Nov 01 22:10:24 #C will have people like that, man Nov 01 22:10:26 try Nov 01 22:10:38 gtg Nov 01 22:34:49 humane technology, eh Nov 01 22:35:06 argghhhhhhhhhh!!!!!!!!!!!!!! I must be blind, finally solved my preferences cast problem, 'obvious' error - the settings.xml root element should be PreferenceScreen and NOT Preference!!! Nov 01 22:36:53 sure.... so obvious Nov 01 22:44:56 Yeah, I went back and saw that both the Android guide & the eBook BOTH used PreferenceScreen - yet somehow I I did not pick it up though I had tjoufght I had been reading it very carefully! Sigh. Nov 01 22:57:31 Sup all Nov 01 23:03:44 hey room Nov 01 23:04:00 got a UI question Nov 01 23:04:04 anyone free? Nov 01 23:12:57 Fizz91, people are not assigned personal helpers, if you have a question, you should ask that question, even if nobody around can answer it, you now have it in written form to be able to post elsewhere Nov 01 23:19:59 Fizz91: I think we are all expensive, sorry! Nov 01 23:20:26 how do i override the toString() method for ScanResult? Nov 01 23:21:20 hi Nov 01 23:21:41 sup Nov 01 23:21:43 This is a thoroughly written question: https://stackoverflow.com/questions/26694241/samsung-cup-how-do-i-make-the-gear-fit-vibrate Nov 01 23:22:59 mantazer: Could you subclass ScanResult, define your own toString() method and use the new class? Nov 01 23:23:38 Nivag: i suppose i could. i was just wondering if i could bypass that method, since it feels a bit hefty for just overriding a single method Nov 01 23:27:19 Nivag: so say I create a subclass called CustomScanResult that extends ScanResult, would I have to also create a constructor that takes in a ScanResult and data-binds? Nov 01 23:29:29 mantazer: No. You would need a no-argument constructor which invoked the super class. You would need to pass in other info separately. Nov 01 23:29:51 ah i see. thx! Nov 01 23:30:58 can anyone help me construct a notification that also shows up on my gear fit? By default notifications from various apps can be sent to the gear fit but I want to know how to write a notification to the system that has a vibration type property. is there an "alarm" type of notification ? Nov 01 23:31:23 mantazer: I got badly burnt trying to use constructors to pass in info - so now I'm even uglier to look at! :-) Nov 01 23:31:59 Nivag, lol. well im glad youre passing on the advice! Nov 01 23:32:16 Hi all. I'm looking for a way to check dates and times against Now, but Calender is kicking my butt! Nov 01 23:32:36 I need to check wheter or not now falls within a certain time range Nov 01 23:33:08 Simple example: http://pastebin.com/1nzYsNHq. Does not seem to work Nov 01 23:33:19 if( ( now.after(testStart)) && (now.before(testStop)) ) { never fires Nov 01 23:34:23 what if testStari is the same as now? Nov 01 23:34:27 sounds like your issue is one of the way the android system was designed... ThomQ Nov 01 23:34:46 Nivag thats ok, that will only happen just the 1 second, right? Nov 01 23:35:19 RedEyedGirl: how do you mean? I'm using the wrong type right? Nov 01 23:35:33 what should I use to calculate with dates and times? Nov 01 23:35:58 Is there a tutorial on how to send a value from a memory mapped file and display it in an android app Nov 01 23:36:06 from windows* Nov 01 23:36:20 ThomQ check out https://github.com/dlew/joda-time-android Nov 01 23:36:48 Ahh thanks Nov 01 23:37:11 but it really is a very small thing I need to implement, just for next week, little promotional thing. I'd rather keep it native java Nov 01 23:37:16 native android, sorry Nov 01 23:37:19 its late :D Nov 01 23:37:45 yeah, but dates suck in java, maybe http://www.date4j.net/ is even better, seems to be a little more lightweight Nov 01 23:39:22 I have a design question: What is the best way to protect the editing of preferences with a password? I have a tablet with a dedicated app, and only authorized users are allowed to change the preferences. Nov 01 23:41:44 One ways is to get the setting item to invoke a password thingy that would then invoke the preferences fragment. Just wondering if this is the best way, and what kind of GUI thing I should use. Nov 01 23:42:24 Nivag: sorry to bug, but im not able to call super in my subclass since ScanResult isnt accessible outside the package. mind if i send you a pastebin? Nov 01 23:43:22 mantazer: sorry, I'm not an expert in Android, so hopefully someone else can help! Nov 01 23:43:27 kk np Nov 01 23:43:50 Is it just me, or is it really bizarre that DialogFragment.onCreateDialog is called on screen rotation even if "retain instance" has been set? Nov 01 23:44:28 im trying to subclass ScanResult and im trying to write a custom toString() method: http://pastebin.com/r35BcbbL. any help is appreciated! Nov 01 23:44:47 but i cant call super since ScanResult is not public. Nov 01 23:46:17 mantazer: ScanResult doesn't have a nullary (public ScanResult() { }) constructor, so you can't say "super();" in your constructor. Nov 01 23:46:34 TacticalJoke: how can i get around this? Nov 01 23:46:53 is there an easier way to write my own toString for ScanResult? Nov 01 23:47:26 It has a constructor, but not a nullary one: https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/wifi/java/android/net/wifi/ScanResult.java Nov 01 23:47:31 you could pull the whole class from the android source and change it in that, couldn't you? Nov 01 23:47:46 i could, but that feels dirty Nov 01 23:47:46 Not sure why the documentation doesn't mention its constructor. Hmm. Nov 01 23:48:22 i could, but that feels dirty | as long as it;s ethical and legal Nov 01 23:49:17 tricknology: yea i dont disagree with that, but there must be a more methodical way Nov 01 23:50:14 I'm not sure what you're talking about but I'm a fan of modifying source if it's available. Nov 01 23:52:06 mantazer: Could you describe exactly what you're trying to achieve? Nov 01 23:52:38 TacticalJoke: sure. I have an arraylist of scanresults, and I want to populate a listview. Nov 01 23:52:52 but scanresult's toString is too much info Nov 01 23:53:18 so id like to write my own to return just a couple fields Nov 01 23:53:36 does that make sense? Nov 01 23:54:59 Okay. Nov 01 23:55:04 Could you call the parent's constructor? Nov 01 23:55:07 The one with various parameters. Nov 01 23:55:17 It seems that you want to create a nullary constructor for your subclass. Nov 01 23:55:33 Or you could just create a constroct identical to the parent's, and pass whatever is given. Nov 01 23:55:44 constructor* Nov 01 23:55:56 ahh i see Nov 01 23:56:28 either way, i think my solution will end up being a little hacky Nov 01 23:56:30 but thx Nov 01 23:56:37 gotta run Nov 01 23:56:42 Doh! Nov 01 23:56:45 Was gonna suggest a helper class. Nov 01 23:57:11 public static string ScanResults.toSimpleString(ScanResult scanResult) Nov 01 23:58:45 String* Nov 02 00:00:49 What I don't understand is this: If you have a DialogFragment that overrides onCreateDialog, if you set "retain instance" to true then onCreateDialog is called every time the screen rotates. That means that, despite setting "retain instance", your dialog will be reset every time the screen rotates. Nov 02 00:01:13 The irony is that, because of how DialogFragment works under the hood, the above generally *won't* occur if you do *not* set "retain instance". Nov 02 00:01:25 The text of an EditText, for example, is retained by the framework. Nov 02 00:01:55 So it seems that setRetainInstance(true) doesn't make sense for DialogFragments that use onCreateDialog. Nov 02 00:02:27 I really dislike android layouts. Probably because I suck at them. Nov 02 00:09:56 It's kinda depressing when SO answers from Android engineers are simply wrong. Nov 02 00:10:10 Like... if the creators of the framework don't know the framework, who even does? Nov 02 00:10:33 One example: http://stackoverflow.com/questions/11182180/understanding-fragments-setretaininstanceboolean Nov 02 00:10:48 He claims that the view object is retained if setRetainInstance(true), but it's really not. Nov 02 00:12:39 Another example (claims that getActivity(); returns null before onAttach): http://stackoverflow.com/questions/11743272/android-fragment-cannot-get-activity Nov 02 00:12:44 And I've seen many more. Nov 02 00:13:27 Oops, I mean "before onActivityCreated". Nov 02 00:13:43 what hope do we have then :( Nov 02 00:16:08 I guess we can read the source. lol Nov 02 00:16:14 If we can understand it. Nov 02 00:16:24 Well, we can read it in either case. But we can use it if we can understand it. Nov 02 00:17:04 An issue here, though, is that the current state of the source says nothing about the future. Documentation, on the other hand, makes some guarantees. Nov 02 00:18:39 It'd be cool if the Android team focused on documentation. Even if they didn't release anything for six months. Documentation only. I'd be a happy bunny. Nov 02 00:19:04 But documentation doesn't (directly) bring home the bacon, I guess. Nov 02 00:19:15 Could it be that adb's logging over wifi is a little bugged? Nov 02 00:19:48 My logs don't update until I close the app and restart the logging. Nov 02 00:25:35 The whole setRetainInstance thing looks like a huge hack. Nov 02 00:37:57 I don't get something -- why do so many tutorials for setRetainInstance show the call to setRetainInstance in Fragment.onActivityCreate, not Fragment.onCreate? The documentation for Fragment.onActivityCreated says "It is also useful for fragments that use setRetainInstance(boolean) to retain their instance, as this callback tells the fragment when it is fully associated with the new Nov 02 00:37:57 activity instance", which makes this even more confusing. Nov 02 00:38:07 onActivityCreated* Nov 02 00:38:31 If we're setting "retain instance", I don't see why we care whether the activity is fully created yet. Nov 02 00:40:07 Hmm, maybe it refers to situations where someone calls setRetainInstance conditionally, depending on something relating to the activity. Nov 02 00:40:11 Gawd knows. Nov 02 00:45:15 Hmm. The more I read about setRetainInstance(true), the more I think it's NEVER a good idea. Nov 02 00:46:17 It doesn't seem to bring us anything we can't already achieve (using globals), and it seems to be pretty complex. Nov 02 00:47:10 And the idea of a "worker fragment" seems awful to me. Nov 02 00:47:18 Why would anyone do that rather than use a global? Nov 02 00:51:32 hey Nov 02 00:52:07 I have a problem requesting the youtube API. I get a 403 error all the time. Nov 02 00:52:17 The idea of having a background task that can be interfered with just because the user changed orientation... what. Nov 02 00:52:26 The only sane option is to keep the two entirely separate. Nov 02 00:52:38 can anyone look at my code? Nov 02 00:54:43 TacticalJoke ? Nov 02 00:54:47 Yes, I'll look. Nov 02 00:54:55 The likelihood that I'll be able to solve your problem is very low, though. Nov 02 00:55:22 Why? :D Nov 02 00:55:25 aren't you pro? Nov 02 00:55:47 Asking "Can someone look at my code?" gives you around a 1% chance of getting a solution. Just posting the code gives you around a 9.6% chance. Nov 02 00:56:23 I'm a pro-grammer. That's about it. :D Nov 02 00:57:36 Actually I think there is something wrong with my API key. :( Nov 02 00:57:39 I don't know what Nov 02 00:59:46 I need someone who can gain Teamviewer access :D Nov 02 00:59:51 someone I can trust Nov 02 01:00:21 Such as an unknown person in an IRC channel? Nov 02 01:00:26 hi guys, I'm having a weird problem: I'm developing an app using a library that renders stuff with native EGL10/11 to a GLSurfaceView that I'm providing, when I run the app I get lots of libEGL called unimplemented OpenGL ES API errors, anyone has a clue what could be wrong? :-/ Nov 02 01:00:44 TacticalJoke could be you :D Nov 02 01:00:53 if you want to have a loo Nov 02 01:00:53 k Nov 02 01:01:10 I really don't want to remote-access someone's machine. But why would TeamViewer even be needed? Nov 02 01:01:39 because there is something wrong with the API key and I don't know what... Nov 02 01:06:17 hami: If helping you requires using TeamViewer and connecting to a stranger's computer, I doubt many will help. Nov 02 01:06:27 And, of those who will, a good number might have bad intentions in mind. Nov 02 01:07:01 oops Nov 02 01:07:03 you think so? Nov 02 01:08:49 TeamViewer's pretty safe, but still. Nov 02 01:19:45 would you be able to fix my problem ? :D or do you want me to pay on hackhands? :D Nov 02 01:20:03 and there are many noobs on hackhands Nov 02 01:20:55 If you want help, you need to post details so that people can help you. Nov 02 01:21:04 Right now, I'd have to be psychic to fix your problem. Nov 02 01:22:01 Ok whenever I try to request the youtube API I get a 403 error. It tells me that I have to enable something in the Google Development Console Nov 02 01:22:03 I did that Nov 02 01:22:17 I followed the instructions and made a API key with the SHA1 fingerprint Nov 02 01:22:22 still doesn't give me permission Nov 02 01:22:35 I tested the url.. I got the URL frmo their API explorer and it works there Nov 02 01:22:50 I think there is something wrong with the API key. Nov 02 01:24:09 I enabled all the relevant APIs in the console Nov 02 01:24:15 like Youtube Data v3 Nov 02 01:24:24 and Youtube Analytics API Nov 02 01:29:51 I am going to try something else. Nov 02 01:29:51 :D Nov 02 01:50:05 hi guys, I'm having a weird problem: I'm developing an app using a library that renders stuff with native EGL10/11 to a GLSurfaceView that I'm providing, when I run the app I get lots of libEGL called unimplemented OpenGL ES API errors, anyone has a clue what could be wrong? :-/ Nov 02 01:53:35 Hey all. I finally was able to compile AOSP. I did it using Docker and I wrote up a blog post about it. Check it out here : http://goo.gl/67CmFN Nov 02 01:53:58 Is there any official documentation stating exactly what View data is persisted when an Activity is recreated (e.g., on orientation change)? Can't seem to find any. Nov 02 01:54:21 An example is that an EditText's text is persisted. Nov 02 01:54:26 I think a ListView's position is persisted. Nov 02 02:01:24 if i want to write native code for android, how many different versions of a program will i have to write? Nov 02 02:01:46 * if I want to write an android program in assembly Nov 02 02:03:22 assembly, really? Nov 02 02:03:47 nah not really Nov 02 02:04:42 but still Nov 02 02:20:30 huh, if i use layout-land, does the activity would automatically take each layout in there and will use the regular folder if the required file doesnt exist in there? Nov 02 02:21:43 is there any tutorial available for creating an android xmpp chat app with openfire? Nov 02 02:21:50 i've got openfire set up already on my vps btw **** ENDING LOGGING AT Sun Nov 02 03:00:00 2014