**** BEGIN LOGGING AT Sat Jun 21 03:00:00 2014 Jun 21 03:07:59 http://www.androidpolice.com/2014/06/20/google-apps-will-soon-have-a-native-help-interface-rather-than-a-simple-web-link/ Jun 21 03:08:06 wonder if there is a new API coming for this Jun 21 03:08:26 my youtube still goes to the browser though, guess i didn't get that update yet Jun 21 03:28:16 why do most examples of fragment PagerAdapter invoke newInstance? Doesnt that mean that every time we switch fragments we make a new instance? Isnt it supposed to keep them around once theyve been created? Jun 21 03:35:56 https://docs.google.com/document/d/1N3XyVkAP8nmWjASz8L_OjjnjVKxgeVBjIsTr5qIUcA4/preview?sle=true Jun 21 03:36:12 Go Support for Android. maybe Nilium will dig Jun 21 03:45:02 g00s: what things are don e in that? Jun 21 03:45:13 *done Jun 21 03:45:20 jamesson not sure, i haven't used Go yet either Jun 21 03:45:31 it's gross Jun 21 03:45:40 might be nice if you are coming from C or C++ Jun 21 03:46:34 JakeWharton: if by gross you mean pretty easy to get confused in, my early impressions ageree Jun 21 03:46:46 it solves some problems really well Jun 21 03:46:54 i think no one disputes that Jun 21 03:47:30 i wouldn't use it for everything and especially not anything Android other than maybe replacing some NDK stuff Jun 21 03:48:51 JakeWharton: I was just poking at the tutorial. Their hatred of parentheses is hateful. Not really worth the tradeoff, imo, to save typing at the cost of making things less clear. Jun 21 03:49:35 JakeWharton: I guess when you work for google you can create things that address your pet peeves Jun 21 03:50:17 indeed Jun 21 03:51:10 JakeWharton: It feels like, we are too lazy even to code with an IDE, lets write a whole new language to save typing Jun 21 03:51:38 which, in terms of engineering ethics I must applaud, but in termso of good design practice not so much =P Jun 21 03:52:30 i'm pretty sure that had nothing to do with its design Jun 21 03:53:06 JakeWharton: w/ever, it just strikes me as weird for the sake of weird Jun 21 03:53:24 JakeWharton: not that I am the wor;d's most experienced coder Jun 21 03:53:31 by any stretch Jun 21 03:53:35 it's solves some very hard problems very well Jun 21 03:53:39 it just happens to ignore some others Jun 21 03:53:50 Which? Jun 21 03:54:06 does it solve well? Jun 21 03:54:12 concurrency and threads are the most prominent that people never shut up about Jun 21 03:54:31 JakeWharton: doent Java kinda do that pretty good? Jun 21 03:54:36 no Jun 21 03:54:38 not at all Jun 21 03:55:29 well, i'd argue it does it "pretty good" Jun 21 03:55:36 Go doesn't is spectacularly Jun 21 03:55:47 *does it (stupid mobile keyboard) Jun 21 03:58:52 "spectacularly" being, "better than Java, at least". Jun 21 04:06:52 so anyone know why newInstance is used almost exclusively with apgeradaptor? Jun 21 04:10:32 because fragments need default constructors Jun 21 04:10:43 and you are less likely to deviate from that with a static factory method Jun 21 05:01:31 JakeWharton: still there? Jun 21 05:01:36 always Jun 21 05:02:05 sorry, this is where I get confused. Doesnt newInstance make a new instance? Jun 21 05:02:27 So, dont we make a new instance every time we switch fragments? Jun 21 05:02:34 no, only when the transaction runs Jun 21 05:02:53 you should only be running a transaction when savedInstanceState == null (for Activities) Jun 21 05:03:06 JakeWharton: ah, makes sense Jun 21 05:09:08 JakeWharton: he's using a ViewPager, and i think he's getting confused on when getItem is called Jun 21 05:09:42 jamesson: ^ Jun 21 05:13:54 hm, so SlidingTabLayout is just in the samples Jun 21 05:15:59 does SlidingTabLayout pretty much replace TabHost for all practical reasons ? Jun 21 05:20:36 it's a replacement Jun 21 05:20:43 not the replacement Jun 21 05:21:54 ok, looks fun will try it out Jun 21 05:27:36 just found something amazing... sorting through some old papers, found a magazine my dad sent me a few years ago. Issue #1 October 1981 of "Which Video?" magazine from the UK Jun 21 05:43:19 g00s: I don't think that's anything other than a proposal. I'm not sure it's actually even meaningful except as a formal feature request. Jun 21 05:43:46 i.e., he works on Go, but that doesn't mean it'll to happen Jun 21 05:43:48 -to Jun 21 05:44:12 we'll just have to wait a few years and see ;) Jun 21 05:44:38 Plus I don't think Go is really suitable for games. Jun 21 05:44:52 At least not with GL in the state it is Jun 21 05:45:58 Contexts are basically thread-local state, so in something like Go where you can't reliably assume you're on a specific thread and the potential cost of constantly having to switch contexts and what-not, scheduling issues, etc., I'm not sure Go is ideal for it. Jun 21 05:46:06 It makes sense in servers, it makes little sense in games. Jun 21 05:47:01 interesting Jun 21 05:47:38 well, i briefly looked at it maybe a year ago and wasn't overly impressed; beside channels & selectors it seemed light in the innovation dept Jun 21 05:47:51 forgot about it … probably never to think about it again ;) Jun 21 06:01:55 Channels and goroutines are fairly impressive, and would be great in game coding if I could guarantee certain things stay on certain threads, but I can't guarantee that Jun 21 06:09:17 ffs Jun 21 06:09:39 stop pushing Go for use cases it was never built for... those articles about Go on Android always give me cancer Jun 21 06:09:43 so much ignorance Jun 21 06:29:28 sorry Mavrik :) top story on HN right now Jun 21 06:29:45 set them straight ! Jun 21 06:29:50 meh Jun 21 06:30:09 there's some moron saying they should adopt JS for Android dev Jun 21 06:30:11 friggin hipsters. Jun 21 06:30:18 hehe Jun 21 06:30:31 i saw a few propose dart Jun 21 06:30:44 another one of those … seems destined to the dustbin Jun 21 06:30:58 yeah, DART is another interesting pointless proposal Jun 21 06:31:08 it's just Java... with parts that make Java any good stripped away Jun 21 06:31:08 it's obvious that python is the app development language of the future Jun 21 06:31:26 Leeds not without static typing, i'm afraid not :D Jun 21 06:31:35 quack quack Jun 21 06:31:36 and concurrency in python ... Jun 21 06:31:37 Leeds, honestly, Python would make hellova more sense than Go Jun 21 06:31:51 maybe thats just cpython Jun 21 06:32:16 but then again, just adding Java 8 stuff would pretty much make every other language pointless Jun 21 06:32:24 and it wouldn't need a rewrite of WHOLE operating system Jun 21 06:33:01 also, most of the brokenness of Android is in the APIs not the language Jun 21 06:33:05 i think google's mistake was putting too much shit in the java framework Jun 21 06:33:40 hmm Jun 21 06:33:57 probably yes Jun 21 06:34:25 but having a good runtime with good GC and modern language would make that not really important Jun 21 06:34:37 e.g. see the neat stuff Xamarin did with .NET runtime on mobiles Jun 21 06:35:14 have microsoft actually bought xamarin yet? Jun 21 06:36:25 man, I need a pay raise so I can burn money for Xamarin for my weekend projects :P Jun 21 06:36:50 Leeds, I have no idea why they haven't yet Jun 21 06:55:36 Dart is not Java. Dart is Javascript with the bugs fixed. Jun 21 06:56:02 While it's unlikely that Dart will be adopted widely, features in Dart are already in ES6. Jun 21 06:56:08 And that's a good thing. Jun 21 06:56:58 dont think microsoft will buy xamarin Jun 21 06:57:49 09:30 < Mavrik> there's some moron saying they should adopt JS for Android dev Jun 21 06:57:53 s3shs: there's no way it could be successful with a name like "Dart"! It needs to be more ambiguous, like "Haskellscript" Jun 21 06:58:25 Mavrik: https://rbt.asia/g/thread/41920845 Jun 21 06:58:26 s3shs, *shrug* felt way more like Java than anything JS to me when I did some test projects Jun 21 06:58:53 Hah. Python surprised me. I really didn't think it would take off. Apparently young coders really hate semicolons. Who would have thunk? Jun 21 06:59:09 I doubt it's the semicolons ;) Jun 21 06:59:31 Sometimes I'm not so sure. And they love that indenting for scope crap. Ick. Jun 21 06:59:54 JS got that right I think... semicolons mostly optional. Until you really need them. Jun 21 07:00:15 look at javascript in that link ;) Jun 21 07:00:22 s3shs, that's awful. Jun 21 07:00:36 any language behaviour which is "optional until it breaks your software" if awful. Jun 21 07:00:37 No language should require an editor to show invisible characters so you can see if your syntax is right. Jun 21 07:00:59 but yes, Python is too picky about it's indentation too Jun 21 07:01:04 gordon_, which? Jun 21 07:01:20 every one of them Jun 21 07:01:24 i.e. this https://rbt.asia/g/thread/41920845#p41921434 Jun 21 07:02:16 Don't get me started on coffeescript. Jun 21 07:03:20 It's a shame JS got all the lower level stuff wrong... like comparing things. It makes it a hard sell. I am looking forward to ES6. Jun 21 07:03:38 it's a mess of undefined and unintuitive behaviour Jun 21 07:03:42 nothing ES6 can fix Jun 21 07:04:18 Yeah. http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742 Jun 21 07:04:40 We'll see. Jun 21 07:05:54 s3shs: https://lh6.googleusercontent.com/-GFry7u8JBgo/T6vr5Uq7smI/AAAAAAAAAUU/Q5IY-22cJes/w600-h450-no/javascript-the-good-parts-the-definitive-guide.jpg Jun 21 07:06:06 I know. I have those two books. Jun 21 07:06:19 mhm Jun 21 07:06:19 It's hilarious. Jun 21 07:06:24 both books are pretty good Jun 21 07:06:46 even though, the sad part is... even "JS: Good Parts" talks about bad parts for about 1/2 of the book :) Jun 21 07:07:29 JS has a lot of good though... lambdas, async libs, bind. It's great stuff. Jun 21 07:10:09 "10 reasons Android should emulate the iOS runtime ( in javascript)" Jun 21 07:10:45 ah tim bray left google; guess i didn't notice Jun 21 07:10:47 I have an app that has to access the SD card. Apparently now in KitKat I have to get permission to access 'getExternalStorageDirectory'. Is there something else besides adding the uses-permission tag to the manifest that I need to do to enable this? Jun 21 07:11:06 s3shs, which of the SD cards? Jun 21 07:11:15 (note that some devices have multiple external storages= Jun 21 07:11:15 I was going to say "late response" to something about JS for Android dev but it looks like it's still going, so screw JS for Android dev Jun 21 07:11:19 The one returned by that function? :-) Jun 21 07:11:44 s3shs, WRITE_EXTERNAL_STORAGE permission is fine for that one Jun 21 07:12:00 just remember that that means internal 16G storage on devices like S5 and GPad 8.3", not the SD card Jun 21 07:12:01 That's what I did. I don't need to do anything else, right? The manifest takes care of it? Jun 21 07:12:11 Mavrik, yes. Jun 21 07:12:14 The SD card thing needs to die Jun 21 07:12:25 ^ Nilium. It's kind of a mess. Jun 21 07:12:27 Such a pain to work with SD cards Jun 21 07:12:29 s3shs, mhm Jun 21 07:12:43 google wants your stuff in the cloud :) Jun 21 07:12:50 but having sd card is a nice option Jun 21 07:12:56 it is a nice option Jun 21 07:12:57 It's like, yeah, cool, you can put a new SD card in, but who cares Jun 21 07:13:06 You're never going to take the stupid thing out Jun 21 07:13:08 Don't think of JS apps as accessing Java APIs with JS. Think of them as web pages that feel native for many simple apps. (Note: SIMPLE.) Jun 21 07:13:12 it doesn't change the fact that it's fucking annoying to work with devices that have SD cards Jun 21 07:13:20 especially when they have 3 different storages Jun 21 07:13:23 s3shs: I hope that's a quote 'cause that sounds horrifying Jun 21 07:13:26 my crappy little lumia 521 has removable battery and microsd :D Jun 21 07:13:43 People who think of apps as web pages need to stop trying to cross the streams Jun 21 07:14:01 It is the programming bad touch Jun 21 07:14:13 When you look at frameworks like angular, and some of the mobile variants like Ionic... these guys are doing some really cool things... and their apps compile cross platform. And they don't completely suck. Jun 21 07:14:41 heh Jun 21 07:14:41 file:///Users/jernej/Library/Application%20Support/Dash/DocSets/Android/Android.docset/Contents/Resources/Documents/docs/reference/android/os/Environment.html#getExternalStorageDirectory%28%29 Jun 21 07:14:44 er. Jun 21 07:14:59 Please post your drive. ;-) Jun 21 07:15:04 I have yet to find a JS-based app that does not suck. Jun 21 07:15:12 just noticed this in http://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory%28%29 : Jun 21 07:15:12 This app is all HTML5/JS/CSS. (Except for the sound.) http://chrome.angrybirds.com Jun 21 07:15:13 Not completely sucking doesn't cut it. Jun 21 07:15:18 In devices with multiple "external" storage directories, this directory represents the "primary" external storage that the user will interact with. Access to secondary storage is available through Jun 21 07:15:33 Nilium, look at that chrome app in, uh, chrome. Jun 21 07:15:47 I'm pretty sure I saw it back when it was new. Jun 21 07:15:55 And broke it, if I remember right.. Jun 21 07:16:20 Heh. The motion is fluid. The action good. It did break on retina before html canvas was optimized for those resolutions. Jun 21 07:16:49 Either way, I wouldn't say a game is concerned too much about whether it feels "native" Jun 21 07:16:59 But if you need to write a quick one-off app for a client or office, I wouldn't poo poo a cross-platform solution in html5/js. Jun 21 07:17:09 I would. Jun 21 07:17:29 All the time spent hacking around things to make it not look like a bad web app would be a waste. Jun 21 07:17:36 mhm Jun 21 07:17:44 especially when those clients usually just need a responsive web site Jun 21 07:17:46 not an app Jun 21 07:17:50 That too. Jun 21 07:17:54 Note: I write device drivers in assembly. This was a rather large leap for me to take. And I'm pretty impressed with a lot of it. Jun 21 07:18:01 * YuviPanda built what was probably the phonegap app with the largest distrubiton ever (Wikipedia) Jun 21 07:18:08 SO BAD. SO HORRIBLE. NIGHTMARES Jun 21 07:18:10 God forbid they pick.. what was it called again.. that thing all the news sites/blogs use that completely screws up browsing Jun 21 07:18:29 YuviPanda, mhm, did like 3 JS phonegap projects with 1 year gaps between them Jun 21 07:18:36 it just isn't getting better :/ Jun 21 07:18:44 phone gap is buckling Jun 21 07:18:51 I remember someone forwarded my resume/info to somewhere in Wikimedia but I never did hear back about that. Jun 21 07:18:59 Seems to be what always happens when people do that for me. Jun 21 07:19:01 we rewrote the entire thing in Java now. beta has been out for about 2 weeks and people love it. I also don't hate myself Jun 21 07:19:19 Nobody likes Phonegap, so it's actually worse than a typical web app. Jun 21 07:19:34 Phonegap IS a webapp :) Jun 21 07:19:40 I know, but somehow it's worse. Jun 21 07:19:44 just a convenient web wrapper Jun 21 07:20:04 And yet somehow worse o_o Jun 21 07:20:12 Ionic is better than phone gap. Jun 21 07:20:17 Kids will tell stories of phonegap around a camp fire like it's a bogeyman Jun 21 07:20:20 it's not a high bar, s3shs :) Jun 21 07:20:27 Hah! Jun 21 07:20:42 Later we'll all laugh at the hubris of web developers thinking they could pretend to be native Jun 21 07:20:51 * Nilium looks at GitHub's Atom and laughs Jun 21 07:21:29 In JS: http://jamesfriend.com.au/pce-js/ Jun 21 07:21:58 So? Jun 21 07:22:17 Being able to do something complex does not mean it's a good idea to do the complex thing in that environemnt. Jun 21 07:22:20 *environment Jun 21 07:22:51 Nilium, yeah, Atom was a... disappointment Jun 21 07:22:57 I had high hopes for it. Jun 21 07:23:16 I'm just longing for my original Mac. Jun 21 07:23:17 having a 200ms+ lag for when I press a button on keyboard (on a quad 16GRAM machine with SSD) is just unacceptable tho Jun 21 07:23:21 And then I saw how it worked and I just sort of shuddered Jun 21 07:23:41 I seem to remember it having a low filesize limit too Jun 21 07:24:08 The difference between good and bad editors is how they handle large files. Jun 21 07:24:41 only if you really work with them Jun 21 07:24:46 No, it's actually how they handle general use. Jun 21 07:24:49 most source code isn't (and shouldn't) be large :) Jun 21 07:25:05 What, you never open log files? ;-) Jun 21 07:25:06 The filesize limit was just interesting because of how low it actually was. 2mb, I think. Jun 21 07:25:17 s3shs, tail ftw ;) Jun 21 07:25:18 2mb? I have icons bigger than that. Jun 21 07:26:05 Downloading Lighttable now to see if it's less useless now too. Jun 21 07:26:14 Since it's also just a Chrome window. Jun 21 07:26:24 Well, Chromium. Jun 21 07:27:33 I want a burrito. Jun 21 07:27:41 A super burrito. Jun 21 07:27:56 https://chrome.google.com/webstore/detail/flying-burrito/gnjiafmmndihbnikkcdokohhbbjjfdla?hl=en Jun 21 07:28:15 Mavrik, thanks for the sd sanity check. I know it's not ideal. Jun 21 07:28:54 Ugh, flappy bird crap. Jun 21 07:29:08 Fuck every single person who cloned that thing. Jun 21 07:29:33 I'd rather not. Jun 21 07:30:07 Ok, just strap them to a piece of metal and fire 'em from a railgun into the sun then. Jun 21 07:30:37 You're cranky. Go eat. ;-) Jun 21 07:31:18 It's past midnight, I've already had a bowl of ice cream, I'm definitely not cranky, I just dislike web apps, javascript, and flappy bird clones. Jun 21 07:31:19 force them to play their own game for days Jun 21 07:31:29 Mostly 'cause the latter all clog up the app stores and make it hard for me to find things. Jun 21 07:31:54 google Play seems to have 25% of its apps as duplicates already Jun 21 07:31:58 The ethics of blatantly ripping off the game aside, it's just plain annoying since it's hard enough browsing app stores Jun 21 07:32:02 yeah but you haven't tried flappiest bird Jun 21 07:32:31 And I don't need to. I have parrots. I am quite content with my existing flappy birds. Jun 21 07:33:10 Our neighbor has parrots. Says they bark like her dog. Jun 21 07:33:24 Which is just wrong. Jun 21 07:33:36 Mine just tell dogs to shut up. Jun 21 07:33:53 Literally. They unfortunately learned the phrase and associated it with dogs barking. Jun 21 07:34:40 http://dl.dropbox.com/u/31892/Screenshots/g1ha.png ⇐ This has sold me on a game. Jun 21 07:38:32 What is it about Birds these days? Jun 21 07:47:25 Nilium: you know flappy bird is a clone of like 100 other games like that Jun 21 07:49:23 nothing is really new, everything is a copy of a copy of a copy Jun 21 07:50:44 Nilium did you see that video of the guy removing the owl from his room with the duster ? Jun 21 07:51:00 he was pretty freaked out, the owl was like bwahaha Jun 21 07:53:27 http://dl.dropbox.com/u/31892/Screenshots/g1ha.png Jun 21 07:53:56 mikechelen: That's not the point -_- Jun 21 07:54:06 Why would someone freak out over an owl? O_o Jun 21 07:54:12 Oops sbl keyboard problems: http://www.youtube.com/watch?v=nzWhdATdKgY&feature=kp Jun 21 07:54:37 Nilium he thought it was going to attack :D Jun 21 07:54:45 Nilium: the problem isnt that they cloned it, its that their clones suck Jun 21 07:54:48 Pfft, you'd know if an owl was going to attack Jun 21 07:55:00 mikechelen: No, it's that it's the same game showing up over and over Jun 21 07:55:22 It wasn't making it hard to find stuff thing until flappy bird became popular and clones became rampant as a result. Jun 21 07:55:46 Nilium: im saying that already happens, the top 500 android games are actually like 6 diff game types repeated over and over Jun 21 07:55:47 Before that, the worst you had to deal with was those stupid direct-to-DVD-like game clones that whatever that company was was making Jun 21 07:56:38 i mean how many dang candy crush clones are there by now Jun 21 07:56:48 There was an article showing careful coincidental placement of rate this app button and restart level to be one of the reasons it topped the charts on recomendations Jun 21 07:57:13 Interesting, but it seems like that would just irk people since they'd accidentally get taken out of the game Jun 21 07:57:17 seems like a lot of games are doing something similar, or was that happening all along? Jun 21 07:57:28 At any rate, gonna go watch a DVD Jun 21 07:57:33 the devs use lots of tricks like that to get either ratings or in-game purchases Jun 21 07:57:50 Nilium: yeah but by that point you're already frustrated and need to play again to beat the level ;p Jun 21 07:58:31 unfortunately most ppl will rate the app highly since now thats the screen they are at Jun 21 07:59:18 On a related note, movie critics have the world's most frustratingly pompous writing styles for their reviews Jun 21 08:03:29 they probably get paid by the word :D Jun 21 09:25:14 heyyy ltns Jun 21 09:39:06 what can I use for tracking bugs inside the app? I've noticed that crashes *do* happen when I'm not looking, hard as it was to believe... Jun 21 09:39:39 and I don't get to see them from the Console, because not everyone reports crashes, but I do see them in Google Analytics, only that they are happening though, and only a 1-liner about the name of the exception that occurred Jun 21 09:42:05 use crashlytics, hockeyapp or any of numerous others Jun 21 09:43:11 yea I heard about Hockeyapp Jun 21 09:49:10 they don't have to report them through those either though Jun 21 09:49:18 but we use hockeyapp at work Jun 21 09:51:52 Zharf, most of those make report dialogs optional Jun 21 09:54:26 oh, no I want to have something that gathers and sends to me Jun 21 09:54:31 I dont want to leave it up to the user of course Jun 21 09:55:40 I'm not sure if hockeyapp offers that in their api... our apps give a popup though Jun 21 09:57:40 crashmanager seems to have submitstacktraces method Jun 21 09:57:48 they do offer that. Jun 21 09:58:34 if that's an extra, then what's the primary thing that Hockeyapp does? Jun 21 09:58:45 make it easier for users to report or something? Jun 21 09:58:58 Sicp, it's a beta testing channel Jun 21 09:59:00 Upload your app build to HockeyApp and you're all set. Your testers can now download and install your app. Jun 21 09:59:08 but Google already offers that Jun 21 09:59:09 helps you distribute beta apps and collect crash information before you release it to public Jun 21 09:59:21 yeah, the Google version is shit for internal usage :) Jun 21 09:59:22 google didn't offer that a little while ago Jun 21 09:59:30 yea its new Jun 21 09:59:38 can I pay for testers? Jun 21 09:59:39 noone wants to use Google beta since it forces G+ on you ;) Jun 21 09:59:45 that too Jun 21 09:59:49 \yea that part is really fucked Jun 21 09:59:54 to create a group and whatnot Jun 21 10:00:55 because I don't have people who can test, can they get me testers if I pay? it isnt mentioned in FAQ or anywhere Jun 21 10:01:55 no. Jun 21 10:02:18 it's meant for companies to distribute internally, not as a path to public testing Jun 21 10:02:25 would it be possible to write an app to talk directly to an old-fashioned parallel printer (via usb <-> parallel cable)? Jun 21 10:02:48 hmm, probably Jun 21 10:03:01 (just dug out my old canon bjc-80 portable printer, and the idea popped into my head) Jun 21 10:03:01 if the LPT converter is supported by your Android kernel Jun 21 10:03:17 LPT converter? Jun 21 10:06:32 I think I just need monkeyrunner Jun 21 10:06:37 why doesnt anybody ever mention it here Jun 21 10:06:40 it should be really useful Jun 21 10:14:21 adb shell monkey com.your.package -v 1000 Jun 21 10:14:31 try it from root of project Jun 21 10:22:34 what's monkeyrunner? Jun 21 10:22:51 it just runs your app and starts pressing everywhere Jun 21 10:22:56 sends any number of events Jun 21 10:23:02 you can send 10,000 Jun 21 10:23:11 really nice Jun 21 10:23:21 I just didnt know how to run it before Jun 21 10:23:44 Sicp, remember to limit it to your app if you use it on a real phone Jun 21 10:23:58 it's not fun explaining 20 of your friends why you sent them gibberish SMS messages and left 10 calls. Jun 21 10:33:36 nah it isnt that kind of application Jun 21 10:33:45 it does not touch anything BUT your app Jun 21 10:34:35 monkeyrunner certanly touches everything unless you limit it Jun 21 10:35:18 that command makes sure that its just your package Jun 21 10:35:26 and when you execute it, it runs your package, only Jun 21 10:35:53 it does raise and lower the volume 5 to 10 times though Jun 21 10:36:00 but that's it Jun 21 10:36:41 hm, true Jun 21 10:36:44 monkeyrunner does that Jun 21 10:36:48 monkey command doesn't. Jun 21 10:48:34 lol I actually googled "lpt converter" before realizing you meant my usb to parallel cable. Jun 21 10:48:43 For some reason I was thinking software driver Jun 21 10:54:22 :) Jun 21 10:54:25 sorry. Jun 21 10:56:51 Does Otto support inheritance? Jun 21 10:57:25 seems like no Jun 21 11:02:03 so annoying :o( Jun 21 11:15:55 Hi Guys , My Voice Keyboard input does not open when i click on button , what's the reason ? Jun 21 11:21:44 has anyone gotten the latest 4.4.3 to be detected by ADB? that is by the Dev. enviroment Jun 21 11:24:07 I have problems with compiling the master branch, I've tried it for several days and always, either the build failed or the emulator complained. is that just me or does anyone else experience the same? Jun 21 11:25:36 no one with a Nexus5 with the latest shiny 4.4.3 here? :) Jun 21 11:32:02 danielHalan, 4.4.3 devices work just fine Jun 21 11:35:57 hm... here's something about android and usb parallel... http://www.ccs.neu.edu/home/bchafy/parallel/parallel.html Jun 21 11:39:25 Ok, so it should work with SDK 19 (4.4.2)? what is the "lower" level of testing for Android SDK / Connection? .. Jun 21 11:40:10 also the Phone is detected by Windows 7 & 8.1.1 just fine, both MTP & PTP mode Jun 21 11:40:40 just when testing usin "ADB devices" no devices are detected Jun 21 11:41:54 hi Jun 21 11:49:47 Why isn’t my animation repeating despite setting setRepeatCount to Animation.INFINITE? Jun 21 14:45:09 I am trying to emulate immersive mode in android 4.1. Is is possible to catch the window onClick event before the nav bar is shown? Jun 21 14:45:23 I want to require a double click for the nav bar to show, otherwise pass the click event through to the app. Jun 21 14:48:01 I've figured out how to hide it again after it is shown, but I want to prevent it from showing at all. Jun 21 15:09:43 Hello world! Jun 21 15:09:51 blarghmatey, no Jun 21 15:10:49 If I just want to override a value from values/dimens.xml for normal-hdpi, does that mean that I'll have to create separate dimens files for all the "larger" dimensions? Ie, xhdpi and so on. Jun 21 15:11:13 s/dimensions/densities/ Jun 21 15:21:02 n20, no, but on devices with other densities this normal-hdpi might still be used Jun 21 15:21:45 EPG: Yup, I noticed my Nexus 5 was using my normal-hdpi resources :-) Jun 21 15:22:15 n20, see also this section/article in general: http://developer.android.com/guide/practices/screens_support.html#support Jun 21 15:22:37 especially the last few paragraphs of the linked section Jun 21 15:22:52 the linked http://developer.android.com/guide/topics/resources/providing-resources.html#BestMatch is also useful Jun 21 15:24:43 sdf Jun 21 15:25:30 Thanks EPG, will give a look after dinner. :) Jun 21 15:25:45 EPG: (I've probably missed something during a previous read) Jun 21 15:25:53 you're welcome :) Jun 21 15:26:44 ? Jun 21 15:26:50 lfT Jun 21 15:27:13 opejfoij? Jun 21 15:41:39 Hey guys Jun 21 15:43:30 I am struggling getting use to the android environment, like eclipse , netbeans, even android studio, the coding it self isn't the problem , It just gives me so many errors and problems when I am trying to run my app, so many errors Jun 21 15:43:47 basically the problem is when I am trying to compile Jun 21 15:44:39 Jared603, did you follow one of the setup tutorials? Jun 21 15:44:47 Jared603: use Eclipse ADT bundle to be sure its not an error Jun 21 15:44:55 check if Link isnt giving you errors Jun 21 15:45:05 and if it still does that, google the errors ;> Jun 21 15:45:15 Android Studio is a bit bugged, its a preview Jun 21 15:45:19 I'd assume Jared603 is working up to telling us what the errors actually are Jun 21 15:46:49 may be a silly assumption... Jun 21 15:47:25 one sec will upload my errors on a bin Jun 21 15:47:31 and yes I did follow tutorials Jun 21 15:50:13 generally, the only fuly supported IDE is Eclipse with ADT Jun 21 15:51:54 take a look , (this is the log cat btw) http://pastebin.com/2yH4jtH5 Jun 21 15:52:31 ironhalik: it's approximately a year since android studio was announced - I'd be surprised if it didn't get upgraded to at least beta this week Jun 21 15:52:48 Leeds: yeah, I'm hoping it will Jun 21 15:52:51 ironhalik: so, compile errors or runtime errors? Jun 21 15:53:23 Jared603: show us your onCreate method Jun 21 15:54:33 Leeds: I'm wondering if maybe Google was holding something back. As in, the preview gets updated constantly, but at IO, they go BAM, AS 1.0 with laz0rs! Jun 21 15:54:45 er, that was for Jared603... Jun 21 15:55:01 When I'm using getApplicationInfo().loadIcon(..), and the appropriate resolution would be 144x144, and the highest resolution that app has is 192x192, do i get a drawable that is 288x288 ? Jun 21 15:55:18 ironhalik: it's possible, but given how often they're still updating, I slightly doubt it Jun 21 15:55:24 I even tried working from snippets before, I don't know why I am having so much troubles with it http://pastebin.com/STJECnXt Jun 21 15:56:41 Like I said I am 99% sure the code is not my problem, nor my xml files, checked them a few times I think it's a problem with the compiling itself Jun 21 15:58:23 I even tried redownloading and installing the JDKs and eclipse and the ADT Jun 21 15:59:07 ironhalik, unlikely Jun 21 15:59:15 since it's a joint dev effort with IntelliJ Jun 21 15:59:30 also, problem with Android tooling isn't in the editors -_- Jun 21 16:00:28 Jared603: do you or do you not get errors when you compile? Jun 21 16:03:11 Jared603: in the setOnClickListener arguments, try new OnClickListener() { something } Jun 21 16:03:19 Yes I do get errors, I even get errors when I try to create a new project Jun 21 16:03:20 instead of View.OnClickListener Jun 21 16:03:51 and import OnClickListener Jun 21 16:04:20 Alright will try that thank you Jun 21 16:04:22 tbh, I have no idea if it will work, but I had really strange issues when creating listeners Jun 21 16:04:47 I get this when I create a new project "Failed to load properties file for project" Jun 21 16:20:09 My application is skipping frames Jun 21 16:20:20 I literally do nothing in the main application Jun 21 16:20:25 I tried using a thread Jun 21 16:20:30 its the same story Jun 21 16:21:04 HELP Jun 21 16:23:01 well, it's not doing nothing then. Jun 21 16:23:07 use traceview. Jun 21 16:24:31 no Jun 21 16:24:36 thats not what I mean Mavrik Jun 21 16:24:41 I mean that it has no improvement Jun 21 16:24:49 Mavrik: am I supposed to thread all listeners? Jun 21 16:25:02 you are supposed to look at a traceviewer or any other profiler Jun 21 16:25:05 to see WHAT is going on Jun 21 16:25:11 to UNDERSTAND WHY you're skipping frames Jun 21 16:25:17 and then act on it. Jun 21 16:26:03 Mavrik: I think its the memory allocation Jun 21 16:26:27 Mavrik: the garbage collector is called before the frames are skipped Jun 21 16:36:44 EPG: Exception: If the qualifier in question is screen pixel density, Android selects the option that most closely matches the device screen density Jun 21 16:37:06 EPG: In other words, that's bound to be the issue I'm seeing :-) Jun 21 16:37:16 EPG: Or more precisely, "issue". Jun 21 16:38:27 yep Jun 21 16:56:38 I dont understand what HockeyApp is trying to say Jun 21 16:57:09 I don't want to distribute anything through them, to anyone. I just want them to sit inside the app with their crash-reporting code, and report crashes Jun 21 16:57:53 hmm Jun 21 16:57:59 anyone using genymotion? Jun 21 16:58:14 ah OK I think it makes sense now, some of the integration-code says that it must be removed for store builds Jun 21 16:58:17 ironhalik: doing a survey? Jun 21 16:58:29 because they do not uploa Jun 21 16:58:35 because "Apps with the release type "store" cannot be distributed through HockeyApp. Jun 21 16:58:36 " Jun 21 16:58:48 since they are for distributing to testers not public Jun 21 16:58:52 Leeds: nah, just heard about it on some github talk and was wondering if it's worth my attention Jun 21 16:59:04 then ask *that* question Jun 21 16:59:55 so... Is genymotion worth my attention? :> Jun 21 17:00:55 dunno, never used it :P Jun 21 17:01:07 but seriously, lots of people seem to think it's a better emulator alternative Jun 21 17:01:49 I think a manual assembly with a pen and paper is a better emulator alternative ;> Jun 21 17:03:38 answered your question then :) Jun 21 17:27:39 Ok, just if anyone is wondering Jun 21 17:27:45 genymotion seems nice Jun 21 17:29:30 I've been following tutorial: http://developer.android.com/training/camera/photobasics.html Jun 21 17:29:37 And when I follow Save the Full-size Photo Jun 21 17:29:42 part of the tutorial Jun 21 17:29:43 I get Jun 21 17:29:53 java.io.IOException: open failed: ENOENT (No such file or directory) Jun 21 17:30:18 I'm using getExternalStoragePublicDirectory, Jun 21 17:30:25 was put in my manifest file Jun 21 17:30:39 Does anyone know where I'm making the mistake? Jun 21 17:46:53 HOW CAN I GET THE RESPONSE FROM A FRAGMENT WINDOW Jun 21 17:47:40 The capslock day was yesterday Jun 21 18:02:04 why do some apps when using applicationInfo.loadIcon return an icon of size 288x288, when the biggest icon (xxxhdpi) that app has is 192x192 and the fitting icon for the display would be 144x144 ? Jun 21 18:11:13 i got a question Jun 21 18:11:29 is it good practise to store content data as text view as an xml layout? Jun 21 18:12:10 I have like 25 but use viewpager which uses 2/3 different contents which is soted on the xml layout Jun 21 18:17:27 how can I set the start page for a ViewPager to be other than 0? Jun 21 18:17:59 set it to a diff number Jun 21 18:18:40 if you use switch for viewpager 0,1,2,3 set it to any number between the range Jun 21 18:18:44 for the start page Jun 21 18:21:04 DarkChaoz: ty Jun 21 18:21:13 np Jun 21 19:09:38 how can i get the value of the ‘id’ coilumn/ hasmap key/value pair in Iterator> dit = data.iterator(); ? Jun 21 19:16:11 jaspertheghost: what are you trying to do? Jun 21 19:19:44 http://pastebin.com/D3ECH0NY Jun 21 19:19:47 take a look at this code Jun 21 19:19:54 it should explain ... Jun 21 19:21:02 i think this will work Jun 21 19:21:03 currentEventID = row.get("id").toString(); Jun 21 19:21:20 well, it's not explaining Jun 21 19:22:34 nvm i cant break it down in any simpler terms … Jun 21 19:23:24 jaspertheghost: I think what you posted here will work - row.get("id").toString(); Jun 21 19:23:39 i think so about to test it Jun 21 19:24:02 there is a shit ton of moving parts to this code so to get to that part of the code to running correctly there is alot of factors Jun 21 19:34:30 jaspertheghost: just wrote this and it looks like it works - http://pastebin.com/X1bswgDL Jun 21 19:35:26 yea i have already tested it .. it works thanks :) Jun 21 20:17:25 btw does anyone know why the webview in android renders buttons,m dropdowns checkbox’s like the application style instead of like the android browser style? Jun 21 20:27:46 http://pastebin.com/piNAsG0S is there a better way of doing this so the isNetworkAvailable function is aviable everywhere??? Jun 21 20:31:57 can make isNetworkAvailable static and pass context to it Jun 21 20:33:28 but isNetworkAvailable function will need to be inside a class all the time right Jun 21 20:33:33 i cant have it sitting outside a class? Jun 21 20:34:13 No Jun 21 20:34:15 but you wouldn't have to create a new object just to call that method Jun 21 20:34:29 What he said Jun 21 20:35:07 is the way u guys suggest better on memory? Jun 21 20:35:21 Is memory a problem currently? Jun 21 20:35:31 no Jun 21 20:35:36 If no, don't worry about it. Don't prematurely optimize. Jun 21 20:36:12 If you only use it in Activities/Fragments you could extend it, and make the function automatically available in all activities/fragments Jun 21 20:36:15 jus to future proof can i do if (!mCotext) mContext = this.mContext ? Jun 21 20:36:44 if (mContext==null) { Jun 21 20:36:44 mContext = this.mContext; Jun 21 20:36:45 } Jun 21 20:38:01 nope .. Jun 21 20:39:39 and im getting cannot resolve method isNetworkAvialble (this.getApplicationContext())) ... Jun 21 20:46:44 Did you make the function static? Jun 21 20:47:37 yes i did Jun 21 20:47:50 public static boolean isNetwowrkAvialble Jun 21 20:48:09 And how are you trying to call it? Jun 21 20:48:36 if (!isNetworkAvailable(this.getApplicationContext())) { } Jun 21 20:49:02 Hi, im trying to detect a Wifip2p service using this code https://gist.github.com/anonymous/dc6ee3f50cfb20faece2 but I get this exception, any idea? Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL Jun 21 20:49:24 Did you make a static import for it? Jun 21 20:49:44 Otherwise you need to GeneralFunctions.isNetworkAvailable(context) Jun 21 20:50:05 i didnt no Jun 21 20:50:11 how do i do a staic import like that? Jun 21 20:50:17 Then you need to grab a Java book. Jun 21 20:50:52 lol Jun 21 20:51:01 im learning as i go... Jun 21 20:54:30 hmm commented out that code seems to be even before that Jun 21 21:07:18 Hi Guys , My Voice Keyboard input does not open when i click on button , what's the reason ? Jun 21 21:15:06 damn, switching out views in a layout is the biggest pain in the ass Jun 21 21:16:43 why would a basic button callback from a fragment that literally does nothing but log "Clicked" give me this? Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL Jun 21 21:39:28 anybody home? Jun 21 21:46:49 hi Jun 21 21:48:36 why would Activity.getCurrentFocus() ever return null? there should always be a view in focus Jun 21 21:48:56 i'm trying to go to a different activity using an Intent, but i need a view to do that on Jun 21 21:49:06 and now i'm getting nulls on getCurrentFocus Jun 21 21:51:22 hello androiders Jun 21 21:52:18 Could someone recommend a good reference (if a video type one exists, even better) for creating your own touch events for custom views? I want to make interactive elements on a 2D canvas but I'm new to this. Jun 21 21:52:37 the developer training seems to apply only to OpenGL ES. I didn't think it was necessary to utilize that Jun 21 22:30:07 i have this working by just passing the current activity to Context.. the new activity is in the same package as the activity being destroyed Jun 21 22:30:18 but now the new one just gets a " Activity destroy timeout for ActivityRecord" Jun 21 22:40:08 anyone? Jun 21 22:40:23 this channel has changed in a few months Jun 21 22:48:19 What is the latest design guidelines? Should I still be using the Action Bar? Jun 21 22:48:32 I haven't designed an Android application in the last few years. Jun 21 23:09:40 so apparently starting an activity through a runOnUiThread causes problems Jun 21 23:12:12 Could parsing 100kB of JSON be a problem on a phone with little memory and weak CPU? Jun 21 23:12:29 define little and weak Jun 21 23:12:41 and could Jun 21 23:14:16 loke: yes Jun 21 23:23:41 little and weak=bottom end android phones. Could meaning can the phone run out of memory because of the parsing? Jun 21 23:25:49 JakeWharton: Thanks :-) Jun 21 23:29:23 so i've pinpointed my issue pretty close Jun 21 23:29:38 calling finish() on an activity from a runOnUiThread seems to result in your new activity freezing Jun 21 23:47:15 hello how can i resolve MultipartEntity cannot resovle symbol … i tried download james mime4j Jun 21 23:50:14 df Jun 21 23:50:19 hi! is anyone around? Jun 21 23:50:32 I am facing an interesting porblem Jun 21 23:52:15 Is there a way to know the number of methods in an external library in an android project? Jun 22 00:06:53 does airpush show adult ads? Jun 22 00:28:35 i can't figure this out... if i have noHistory true on my activity.. when i press back, it destroys the activity, but when i relaunch the application, it just hangs Jun 22 00:28:42 shouldn't it restart the activity from scratch? Jun 22 00:56:11 hello the following code trys to upload 3 times and i get a partial upload each time http://pastebin.com/MHdGgaRt Jun 22 01:40:44 little and weak=bottom end android phones. Could meaning can the phone run out of memory because of the parsing? Jun 22 01:40:50 Could parsing 100kB of JSON be a problem on a phone with little memory and weak CPU? Jun 22 01:45:16 hey Jun 22 01:45:21 I need some help with android please Jun 22 01:45:25 very simple stuff I am new to it Jun 22 01:45:35 Google search results is not so helpful Jun 22 01:46:33 Please someone help me Jun 22 01:47:02 well paste what u need issues witgh Jun 22 01:47:12 Klaff i dont think 100k of json will kill it no Jun 22 01:47:17 but u might want to use a aasync task Jun 22 01:50:45 jaspertheghost: I am just trying to find out how to make a add colored borders to corner edittext Jun 22 01:58:23 idk… i been develping my android app in a webview so i dont know to much about UI stuff in android yet Jun 22 02:35:45 when I call newinstance on a fragment in the main activity, mst I enclose it in a check to see if savedinstancestate! != null? Jun 22 02:46:51 chello **** ENDING LOGGING AT Sun Jun 22 02:59:58 2014