**** BEGIN LOGGING AT Tue Jun 11 02:59:58 2013 Jun 11 03:03:45 jayzuz #java has some jerks in there Jun 11 03:05:09 sure does! Jun 11 03:05:33 is there also an easy way to get headers from a response? Jun 11 03:06:02 can someone give me pointers on passing data back to an Activity from a ListFragment once a user clicks on a listitem? Jun 11 03:06:48 thebean you can have the mainactivity define an interface like `Callbacks#onItemClicked(Item item)` and have the ListFragment implement that interface Jun 11 03:07:33 or rather have MainActivity implement the interface Jun 11 03:07:40 and in ListFragment Jun 11 03:07:58 's onAttach, cast the activity to that interface and save a reference to it that you invoke whenever someone clicks something Jun 11 03:08:36 shigeru: thanks...I found a tutorial with this approach in mind...wasn't sure if there was anything easier Jun 11 03:08:54 i think i see a lot of people using event buses too as an alternative Jun 11 03:10:36 gotcha Jun 11 04:16:00 Hey, I am trying to push a git repo to my bitbucket account in Android Studio, how do I do this? Jun 11 04:22:28 by not using that piece of crap and instead learning how to do it on the command-line Jun 11 04:23:27 Snicers-Work: http://stackoverflow.com/questions/16644946/how-do-you-sync-projects-to-github-with-android-studio Jun 11 04:23:44 (it's not GitHub-specific) Jun 11 04:24:58 I did that before, but when I pulled the source on a different computer it would not compile, threw all sorts off errors and ended up telling me the APK location was not set. Jun 11 04:25:44 what did you include and exclude in the repo? Jun 11 04:28:16 you should not have the bin / gen directories or local.properties in VCS Jun 11 04:29:05 (Actually, nevermind; i'm not sure what is and isn't required by AS / Gradle. The above is for Ant.) Jun 11 04:30:16 * pjdelport still doesn't understand why anyone would willingly use Git when there's hg Jun 11 04:33:02 Git is MacGyver and Mercurial is James Bond Jun 11 04:44:29 pjdelport: I only barely used hg, but from the little I saw of it, I prefer git Jun 11 04:44:46 not that hg is bad Jun 11 04:44:58 but, git just jives better with me Jun 11 04:45:51 I want to create a git repo in the project root folder , not the src folder correct? Jun 11 04:46:02 yes Jun 11 04:52:52 why would you use hg when there's git? Jun 11 04:52:56 hg's a bit slower than git, too Jun 11 04:53:08 or it was when I tried it Jun 11 05:02:07 pfn: more features, better UI :) Jun 11 05:02:20 though the latter easily gets into religious territory, of course Jun 11 05:10:45 More features? LOL Jun 11 05:11:11 pfn: It wasn't "a bit" slower when I used it on larg-ish project. Jun 11 05:11:15 It was _a lot_ slower. Jun 11 05:11:35 pjdelport: By UI you mean what? Jun 11 05:15:15 kakazza: in terms of features heavily miss things like revsets, mq and named branches whenever i have to use git Jun 11 05:16:31 I dunno about more features or better ui, either Jun 11 05:16:42 same thing on both fronts, clone, commit, push, pull, same diffs Jun 11 05:17:11 by UI i mainly mean the command set; git makes it a comparative mission to do the equivalent of things like hg in/out and hg manifest Jun 11 05:17:16 The difference I see is that rebasing works like a charm in git and changing branches happens in an instant instead of taking a bit of time. Jun 11 05:17:24 kakazza, indeed Jun 11 05:17:32 more of an instant if y9ou're on an ssd Jun 11 05:17:55 more instanter than instant Jun 11 05:18:46 the features that work the same are fine; it's the features that are missing that i miss Jun 11 05:19:15 missing things are missed! news at 11! Jun 11 05:20:12 in any case, i'm sure there's a script for everything that you think is missing. Jun 11 05:20:58 And thus, the possibility for an alias to do the same thing, just faster ;) Jun 11 05:21:23 not for the things i mentioned Jun 11 05:21:35 (i wish there were, but oh well) Jun 11 05:22:28 And now we go and mention the seven things mercurial can't do. Jun 11 05:22:38 I switched after two years of hg to git and never looked back. Jun 11 05:22:57 The one thing that mercurial just doesn't have is the performance and speed of git. Jun 11 05:23:24 And when I converted the hg repo to git, it also became half the size. Not saying that is a general thing with git, but it's one thing I noticed. Jun 11 05:25:13 kakazza: What can't hg do? Jun 11 05:25:54 it can't make you cool Jun 11 05:26:01 That for one. Jun 11 05:26:05 ;p Jun 11 05:26:34 I switched to git back then, because I was using Google Code which didn't have git support at the time and it was impossible to delete branches. Jun 11 05:27:15 So I ended up having shitloads of feature branches I couldn't get rid of. And since Google had their own version of a Mercurial server which was old and not feature complete, I was kind of forced to switch to git. Jun 11 05:27:28 Because at the time, github seemed like the better alternative to bitbucket. Jun 11 05:28:44 Can you now delete branches in Mercurial? Jun 11 05:31:01 From what I've seen, no. Jun 11 05:31:57 You mean bookmarks? You can delete them, yes. Jun 11 05:32:11 Branches. Jun 11 05:32:26 What hg calls bookmarks is the same thing as what git calls branches. Jun 11 05:32:39 http://mercurial.selenic.com/wiki/PruningDeadBranches Jun 11 05:32:57 What hg calls named branches, git doesn't have any equivalent of. Jun 11 05:33:44 It doesn't make sense to talk about deleting a named branch: it's an immutable part of the changesets themselves. Jun 11 05:34:04 You can close it, though. Jun 11 05:34:13 See, you're just going "hg does it that way, any other way doesn't make sense" Jun 11 05:34:26 no, hg does it both ways Jun 11 05:34:28 I want to rewrite history if I have to. Or heck, if I just want to. Jun 11 05:34:34 git lets me do that. Jun 11 05:34:48 if you want bookmarks, you use bookmarks Jun 11 05:35:19 Do I use bookmarks for short lived features branches? Jun 11 05:35:56 You use bookmarks if you want the same behavior as git's branches: they're the same thing. Jun 11 05:36:26 I can push them to the repo and delete them after they've been merged to default? Jun 11 05:36:30 yes Jun 11 05:36:54 http://mercurial.selenic.com/wiki/Workflows Jun 11 05:36:59 Does not talk about bookmarks much. Jun 11 05:37:05 They talk about named branches for features. Jun 11 05:37:57 Seriously, I spent a good portion of my time in #mercurial trying to deal with the limitation of what named-branches offer. No one - including developers - even once said anything about bookmarks. Jun 11 05:38:27 And whatever you say won't make me switch again. git does everything I need and more without being slow. Jun 11 05:38:33 And this isn't the right place to discuss this. Jun 11 05:38:36 well, that page says "If you want git-style branching, just use bookmarks." Jun 11 05:39:19 oh, no one's trying to make you switch; i'm just griping about when i have to use git Jun 11 05:39:39 When you value your time. Jun 11 05:40:44 If I want git-style branching, I'm going to use git. Just saying. Jun 11 05:47:17 (As a side note, I don't see bitbucket supporting bookmarks in their web UI) Jun 11 05:47:18 * kakazza gone Jun 11 05:48:35 they should show up Jun 11 05:49:23 unless you found a bug Jun 11 05:50:27 Can you show me a repo using bookmarks Jun 11 05:50:34 I'd be interested. Jun 11 05:55:42 PM me if you know of one to not disturb the channel anymore. Jun 11 05:56:12 i don't know of one offhand; we use named branches for everything Jun 11 06:05:04 Are there any alternatives I should consider for android-query? Jun 11 06:06:11 I'm thinking of pulling that in to reduce helpers i'm writing... Jun 11 06:09:48 good morning :) **** BEGIN LOGGING AT Tue Jun 11 06:41:24 2013 Jun 11 07:05:23 hey I need to implement a "slidingtray" to one of my apps to handle for navigation (yes, i know actionbar but a "slidingtray" or "slidingdrawer" is needed... does anyone know where I can possibly find a tut or code or library that will satisfy this need? I could just do it myself, obviously, but curious if there is anything out there I could maybe use??? Jun 11 07:06:11 killmesoftly one was added to the support library Jun 11 07:06:34 http://developer.android.com/design/patterns/navigation-drawer.html Jun 11 07:07:16 alternatively this is a great 3rd party lib to do it https://github.com/SimonVT/android-menudrawer Jun 11 07:10:01 thank you very much lasserix!!! Jun 11 07:15:59 Andengine and libgdx, whats up with them? Jun 11 07:23:29 Taking the default 'Master/Detail' flow template in Eclipse, and adding a third Fragment (let's call it Edit, launched from the pre-existing Detail Fragment) and I'm now looking to open the Edit Fragment when a user clicks on an item in the Detail Fragment. I've implemented an interface on the Detail fragment, however depending on whether the application is on a Tablet or Phone (dual-pane or not), the Iterface requires to be implemented by either the De Jun 11 07:23:29 tail Activity, or the Main Activity in order to function. Have I implemented this incorrectly, or is there a best practice that would allow me to unify the implementation of the interfaces into the main activity? Sorry for the long winded question! Jun 11 07:24:11 Note, that the Edit fragment utilizes the same placeholder used by the Detail fragment. Jun 11 07:25:07 c/p this since you would probably get mor help 12-14 hr from now (or ask on stack overflow) Jun 11 07:25:55 Ah right, ok I'll chuck it up on stack overflow. Thanks anyway :) Jun 11 07:31:37 Sieder: the detail callback to the activity housing the fragments should request the edit fragment Jun 11 07:31:53 depending on the phone perform the right layout/fragment transition Jun 11 07:32:21 ericthegreat: libgdx or andengine? Jun 11 07:32:56 andengine is written by a guy who is now owned by zynga and only runs on android phones. libgdx is a little more technical, but is crossplatform Jun 11 07:33:19 both work and have many games developed on them, up to you what you want out of them Jun 11 07:34:47 oh Sieder: my layout for this stuff is that all fragments that need to request another fragment go through the parent activity, so each fragment has a listener and the activity implements it Jun 11 07:35:53 since with context you can get fragment manager this is not necessary (you could switch out fragments in a fragment) i just like consolidating my navigation code in the activity so it's consitent Jun 11 07:38:56 what lasserix describes is the 'best practice' for the record ( http://developer.android.com/training/basics/fragments/communicating.html ) Jun 11 07:41:26 What is the best way to get one of the android sample projects into android studio so it can be ran on a device? Jun 11 07:42:59 Thanks lasserix / Kegsay. The Detail fragment (second fragment) is requesting the edit fragment, however due to the fact that the Detail fragment is either added as a fragment by the main activity, or by the detail activity, the activity that implements the detail fragments interface changes based on device. This sounds pretty ugly to me - I guess I've got myself into a bit of a mix-up somewhere? Jun 11 07:43:45 (the detail activity can be started by the main activity, again based upon whether or not the device is a phone) Jun 11 07:44:17 I have put the question on Stack Overflow, including a couple of code snippets, if you'd be willing to take a look? Jun 11 07:44:56 It's got to be my understanding of how to implement these interfaces that's at fault - I can't believe you have to implement them twice. Jun 11 07:50:02 the interface should *never* change depending on the device, it should just be a set of actions that the activity may or may not be interested in Jun 11 07:50:09 send a link over Jun 11 07:50:16 http://stackoverflow.com/questions/17038696/three-fragments-interface-on-second-fragment-requiring-implementation-on-both-m Jun 11 07:50:24 Thanks Jun 11 07:51:02 I've been going around in circles the last couple of days - once I know how this is supposed to work, I know I'm going to face-palm hard. Jun 11 07:51:57 how well does libGDX work for android development? Jun 11 07:52:06 Also, does anyone know the lisencing on it? Jun 11 07:54:51 I've heard a couple of people recommend it - as for licensing, I've seen references stating that using it for Closed or Open source projects on Android / iPhone is permitted, however for iPhone (as stated on their site) you will need a MonoTouch license (which is not free). Jun 11 07:55:18 I've not used it myself, but looking at the products that DO use it, it's obviously a pretty powerful and mature library. Jun 11 07:56:44 I've played around with it a bit, and so far it's the best library I've used. Jun 11 07:57:04 As long as it doesn't have drastic performance issues anywhere and no crazy lisence, i'm pretty sold on it Jun 11 07:58:26 hopefully that makes sense Seidr Jun 11 07:58:53 libdgx is Apache License 2.0 Jun 11 07:59:13 Explain apache lisence 2.0 like im 5, i forget what it does Jun 11 08:00:24 nvm stack overflow already did Jun 11 08:00:50 That does make sense, but the two fragments referenced there (WaveListFragment and WaveDetailFragment) are infact ListFragments, with Activities (used for launching the Fragment, if a phone device is used). Jun 11 08:01:04 I supposed I need to unify those separate Activites into a single 'Main' activity? Jun 11 08:01:07 gah, it's one of those Wall-of-text licenses... that's why I prefer the 2-clause bsd license... Jun 11 08:01:13 yes Seidr Jun 11 08:01:45 you should have a single Activity, which implements both fragments. Then if you're on a phone, you treat the onClicks from Detail Fragment differently than on a tablet (which would spawn the Edit Fragment) Jun 11 08:01:46 2 and 3 clause BSD are my favs Jun 11 08:02:04 I forgot what the 3rd clause used to be ;) Jun 11 08:02:28 is that the one where they can't use your name to promote the derived product or somesuch? Jun 11 08:02:48 Riiight, so instead of starting an Intent to open the second Fragment, I would simply use the code from the second Activity that opens the Fragment, in place of the Intent? Jun 11 08:03:04 yeah Jun 11 08:03:07 that's what 3 clause is Jun 11 08:03:26 well, I don't care about that one that much, so 2-clause for me ;) Jun 11 08:03:41 (so the only difference between opening the Fragment on phones or tablets, in my case, would be the adding of the Fragment to the back stack. Jun 11 08:03:47 I use 3 clause in one of my librarys i wrote just because i didn't want people yelling at me if it was used incorrectly Jun 11 08:03:48 yup Jun 11 08:04:03 Excellent, thank you Kegsay! :) Jun 11 08:04:09 That's much clearer now. Jun 11 08:04:11 ^^ no problem Jun 11 08:04:46 * mitch0 goes and finds that lib to yell at octopus anyway Jun 11 08:05:12 no don't! I know it was poorly written, it was never meant for serious use! Jun 11 08:05:44 I actually had a nightmare that it caused some sort of catasrophic failure, and then woke up and someone posted about 3 clause bsd and i thought "it's a sign" Jun 11 08:13:00 BSD ftw. although I'm tempted to use WTFPL for something (http://www.wtfpl.net/) Jun 11 08:17:33 Apache 2.0 seems nice Jun 11 08:26:17 p_l: too many words! ;) Jun 11 08:28:09 JesusFreke: well, it's basically armor plating for your arse, written in legalese Jun 11 08:30:33 hey Jun 11 08:30:44 I can't seem to get phone location using 3G network Jun 11 08:30:55 meaning - no wifi, no gps Jun 11 08:31:03 using LocationClient Jun 11 08:31:08 any suggestions/strategies? Jun 11 08:31:33 the problem with WTFPL is that there is no reason for you to include a lisence with it Jun 11 08:32:05 you might as well just say Jun 11 08:32:08 this has no lisence Jun 11 08:32:08 or Jun 11 08:32:26 in some jurisdictions, there is no such thing as public domain Jun 11 08:33:03 Octopuscabbage: "no license" means "it's illegal for you to even read it" Jun 11 08:34:02 so you have to explicitly provide a license that grants the rights someone would normally have on a public domain work Jun 11 08:34:07 or at least, that's the way I understand it :) Jun 11 08:34:23 IANAL Jun 11 08:34:42 JesusFreke: "public domain" is something that has to be explicitly done in USA, because otherwise chances are close to 0 the work will ever be in public domain Jun 11 08:34:58 I'm trying to use the ActionBar's Tabs. And I want to style these Tabs heavily so that I define their width. Anyone know if this is possible? So far I've had no luck; the Action seems to override anything i do to the tabs themselves. Jun 11 08:35:24 many european systems OTOH have separation of "authorship" and "copyright" (you could call them "author" and "material" rights, I guess) Jun 11 08:36:12 "author" rights never expire, and are non-transferrable. "material" rights expire after time and lead to basically "public domain" condition Jun 11 08:36:17 but in any case, the wtfpl is essentially a snarky way of putting something in the public domain Jun 11 08:36:41 Instead of using the nice ActionBa, I'm currently considering a solution similar to this http://thepseudocoder.wordpress.com/2011/10/13/android-tabs-viewpager-swipe-able-tabs-ftw/ to achieve what I want. Jun 11 08:36:47 I prefer Apache 2.0 because it protects the publisher against certain issues Jun 11 08:36:50 But I'd rather have a solution for the ActionBar.Tab. Jun 11 08:38:04 yeah, I just prefer the simplicity of bsd, for my own personal projects. Jun 11 08:39:51 Googlers must see this Jun 11 08:39:57 Ethiopian Developers voice Jun 11 08:39:58 http://google-ethiodevs.blogspot.com/2013/05/ethiopian-developers-want-google-to.html Jun 11 08:46:12 can black people even program Jun 11 08:47:01 I work with one Jun 11 08:47:06 he's not the best example Jun 11 08:47:12 I mean, he's not Ethiopian, just black. Jun 11 08:47:17 nigerian prince scams can go mobile! Jun 11 08:47:20 but he's mostly just not a good coder Jun 11 08:47:25 wtf? Jun 11 08:47:46 which has nothing to do with his blackness - just orthogonal information Jun 11 08:50:02 so did anyone else actually jump for joy when google switched official support from eclipse to intellij Jun 11 08:50:25 I did until I realized it wrecked my jni stuff Jun 11 08:50:39 to switch from one system to the other Jun 11 08:50:39 Hi! Is it safe to link in my database ids from contacts provider across different devices? Jun 11 08:50:46 your jni stuff was wrecked from the beginning and you know it. Jun 11 08:50:57 honestly... lol, it was Jun 11 08:51:25 the contractor my bosses hired to do that work didn't even have an android device, from what I remember Jun 11 08:51:32 Octopuscabbage: how stupid are u? Jun 11 08:52:03 yola: do you want a scale or an adjective, scale of 1-10 i'd say like 7, adjective, i'd say above average stupidity Jun 11 08:52:47 Octopuscabbage: hmm sure Jun 11 08:52:54 yola: why do you ask? Jun 11 08:53:11 to be fair, at least Octopuscabbage spells out the second-person personal pronoun fully Jun 11 08:53:20 Octopuscabbage: because u said "black can't program" Jun 11 08:53:33 Here's a classic; I'm pushing timestamps from my server to my Android app. When I stuff those timestamps into an Sqlite database on the device, it adjusts for my local timezone, which I do not want (since the timestamp from the server is UTC). Suggestions for easiest workaround (e.g. force UTC timezone in sqlite)? Jun 11 08:53:43 yola: it's true, how many colors do you know that can program? green is almost there i think Jun 11 08:54:09 kjeldahl: you could always take the easy way out and just store timestamps as integer types rather than as date types Jun 11 08:54:11 green is kind of taking a scala approach though, so we'll see how that goes Jun 11 08:54:49 Octopuscabbage: you should have been in 17 century Jun 11 08:54:55 whateverman: That's definitively one way. Jun 11 08:55:21 yola: I hope I live long enough to live in 17 different centuries, that would be awesome! Thanks for the good words on my behalf! Jun 11 08:56:12 yola: is your handle a reference to cocaine? Jun 11 08:56:25 whateverman: mine is Jun 11 08:56:33 damn, son Jun 11 08:56:59 whateverman: wht are u saying? Jun 11 08:57:14 read the words. They're pretty plain. Jun 11 08:58:51 whateverman: you are supporting him, right? Jun 11 08:59:02 yola: why so confrontational? Jun 11 08:59:48 nobody likes an Internet Tough Guy. Jun 11 09:00:03 whateverman: because what he said is not correct Jun 11 09:00:05 i do, i like him Jun 11 09:02:38 Cool. He just seems to have like... a Mexican restaurant's worth of chips on his shoulder. Jun 11 09:03:23 is openGL the only rendery thing android supports Jun 11 09:03:29 and does every device support it Jun 11 09:03:40 * whateverman points to google.com Jun 11 09:03:42 try it out Jun 11 09:03:55 but my cursor was already hereeeeee Jun 11 09:04:17 Octopuscabbage: use Alt+tab Jun 11 09:04:39 this channel isn't very interesting Jun 11 09:04:40 rendery thing Jun 11 09:04:56 balls2thewall: it's 4 am and i couldn't think of what it is Jun 11 09:04:56 with Octopuscabbage and yola waving their dicks around Jun 11 09:05:10 i mean the channel is called #waveyourdickaround Jun 11 09:05:53 whateverman: sorry Jun 11 09:06:31 * whateverman helicopters his dick around and goes back to replacing the JNI ffmpeg system the contractor built Jun 11 09:08:09 :| Jun 11 09:08:44 hey guys, is anyone familiar with the alpha/beta channel at Google Play? just published an alpha version, but was wondering what's the flow for installing the alpha version. after joining the tester group, does Google Play automatically serve up the alpha version based on the user login account from the SAME URL as the currently published app? or is there a special URL? Jun 11 09:13:07 dck28: should be the same app, it'll show up as any update in Play. Jun 11 09:15:26 thanks appell. Jun 11 09:21:41 I've just downloaded the Android SDK Bundle - is Eclipse included? I can't find it? Jun 11 09:21:41 Any way to quickly make a surfaceless OGL/EGL context in Android? Jun 11 09:23:03 surfaceless? what would the context even describe without one Jun 11 09:23:42 he wants to do radix computing Jun 11 09:34:09 hey ejcweb pm me and i'll sort you out Jun 11 09:39:45 is there a way to close/open the navigation drawer on will? not really sure which function to call. How do I set the navigation drawer to open up on onCreate function when starting up the app? Jun 11 09:41:26 i have an inner class that extends SimpleCursorAdapter. which method should i override here to set my ImageView? Jun 11 09:41:59 eSatsu: navigation drawer? Jun 11 09:44:59 actually found it. its just mDrawerLayout.openDrawer(mDrawerList); Jun 11 09:45:13 appel1: http://developer.android.com/training/implementing-navigation/nav-drawer.html Jun 11 09:47:06 ok Jun 11 09:55:55 Hi all! Jun 11 09:56:30 Any way to quickly make a surfaceless OGL/EGL context in Android, no one made an applicable answer prior Jun 11 09:58:09 Needed to pull out GL_VERSION and various other string Jun 11 10:02:01 Sonicadvance1: there are apps that do that for you, if you just want to quickly view that info Jun 11 10:02:20 https://play.google.com/store/apps/details?id=com.realtechvr.glview Jun 11 10:02:30 My application needs to pull it out :| Jun 11 10:03:18 I could easily create a GLSurfaceView, and grab the information in there, but it would be nicer to make a surfaceless context Jun 11 10:05:40 There /is/ a reason why there is the EGL extension EGL_KHR_surfaceless_context Jun 11 10:07:10 sonicadvance if you can't find what you are looking forjust make a glsv but don't apply it to layout and let it go Jun 11 10:07:12 hey guys, is it possible to register JNI calls on the Java side on a different thread? Jun 11 10:07:35 I guess I could do Jun 11 10:07:42 basically when the ndk lib calls for the java code, I want to run that in a permanent non-ui thread Jun 11 10:07:43 I was just hoping for a nicer solution Jun 11 10:08:03 really its no different then instancing displaymetrics to get device screen w/h Jun 11 10:08:43 deleet, yes Jun 11 10:08:50 or more importantly doesn't sound like a bottleneck so why waste time on trying to cut your lawn to within the nanometer Jun 11 10:09:21 Sonicadvance1: do you achieve this by binding the jni lib in a different thread or? (it's not my lib) Jun 11 10:09:32 Most for not crying at ugly code Jun 11 10:10:07 glsurfaceview glview = new glsv(this); //get data glview = null; voila not too ugly Jun 11 10:10:23 can't imagine getting egl context alone is going to look much different Jun 11 10:10:25 Hi guys i am going crazy because i piece of code of mine is rising nullpointer exception while nothing of mine is a nullpointer :( http://pastebin.com/Us6u4SL5 Jun 11 10:10:35 Picky D: Jun 11 10:10:59 hehe yeah i know what you mean but you just got to pick your battles, if you find a solution later revise it for now worry about actually important things Jun 11 10:11:11 it's like never writing a line of code because you can't settle on what to name your method Jun 11 10:11:41 lasserix: is that bad? that's like, 80% of my day Jun 11 10:12:11 deleet: just a matter of how you like to spend your days, get the code done worry about what to call it afterward Jun 11 10:12:31 it's not like your rearing a child and once the name is on the certificate you're screwed ;p Jun 11 10:12:38 g10 what line is giving the NPE? Jun 11 10:12:41 I more like the to put off the issue of causing kernels to hard lock with my OpenGL code Jun 11 10:12:46 I've named things NoClueWhatToCallThisClass Jun 11 10:13:04 lasserix accountSpinner.addView(tv); Jun 11 10:13:18 line 8 Jun 11 10:13:35 where is this code taking place? Jun 11 10:14:05 Mostly just need a check if (adreno && GLDriver == V14) Enable OGLES3; :P Jun 11 10:14:47 i have an inner class that extends SimpleCursorAdapter. which method should i override here to set my ImageView? Jun 11 10:14:57 my activity connect bind to a service, that code is excuted when the conncetion is done so i can get data from the service Jun 11 10:15:20 accountSpinner context is the activity? Jun 11 10:15:30 it should be Jun 11 10:15:53 i have tryed also using AcivityName.thi as context but obtain the same exception Jun 11 10:16:28 did you determine if accountSpinner or tv is showing up as null ( ie if (accP == null) { Log.d('its the spiner') } ? Jun 11 10:16:44 yes Jun 11 10:17:10 as you can see i call methods on them before of that they dont' raise nullpointerexception Jun 11 10:17:44 but anyway i have tested them with that if in other version of the code to understand what was giving the exception Jun 11 10:18:06 g10 i feel like one of your contexts isn't right Jun 11 10:18:14 like if you are trying to call this in the service Jun 11 10:18:26 what you have to do is pass the info to the activity, then call this Jun 11 10:18:51 yes the emthod is in the actovity Jun 11 10:19:05 but are you calling the method from the service? Jun 11 10:20:34 Is there a constant id one could use for "no resource reference"? I assume 0 (or -1) is appropriate, but... Jun 11 10:20:59 lasserix i think it is not called by the services Jun 11 10:22:15 g10 you mean the activity is current when this is called? Jun 11 10:22:20 the method is called by as a callback of ServiceConnection.onServiceConnected that is inside the activity not on the service Jun 11 10:22:54 is accountSpinner a spinner? Jun 11 10:23:01 yes Jun 11 10:23:11 um Jun 11 10:23:17 i dont think you can use addView on a spinner? Jun 11 10:23:32 how to add elements on spinner ? Jun 11 10:23:42 you have to use some adapter, Jun 11 10:24:00 so ther eis no simple way ? Jun 11 10:24:18 you can use a simple arrayadapter Jun 11 10:24:41 http://start-jandroid.blogspot.com/2011/01/android-spinner-example.html Jun 11 10:24:47 thanks lasserix i'll try to do that and see what happen ;) Jun 11 10:24:48 or http://stackoverflow.com/questions/1625249/android-how-to-bind-spinner-to-custom-object-list for custom Jun 11 10:26:58 omid8: while it looks like you should be able to do it easily, i think you might have to implement a custom adapter to do that Jun 11 11:27:47 fucking Toast .show() grr Jun 11 11:29:57 so... should i expect problems if i use eclipse 4.2 for android development? Jun 11 11:34:45 Don't see why you would hrnt - never really had any issues with Eclipse for Android development, ranging from pre 2.0 to current day. Jun 11 11:35:32 after updates eclipse stopped to generate R class Jun 11 11:35:36 if i extend from SimpleCursorAdapter, which method i should override to show cursor data in my views? (4 textview and one imageview) Jun 11 11:35:45 i have tried to clean and rebuild project but didn't worked :| Jun 11 11:36:15 Make sure you're not importing android.R. Had that issue a few times. Jun 11 11:36:46 Strangely though, I've sometimes had to import the projects R implicitly in order to get access to R - doesn't seem right to me, but importing it has worked for me. Jun 11 11:37:35 no im not importing it Jun 11 11:37:48 moreover in the folder res no error is reported :| Jun 11 11:38:10 the gen folde is empty :| Jun 11 11:38:58 Try the answer given here: http://stackoverflow.com/questions/3002722/gen-folder-disappearing-in-eclipse-android-project Jun 11 11:39:05 Perhaps your build settings have gone a bit screwy Jun 11 11:40:34 i am taking a look thankls for pointing it ;) Jun 11 11:42:16 No problem Jun 11 12:08:32 what do ppl use instead of slidingdrawer these days? Jun 11 12:08:44 ... it already became obsolete? Jun 11 12:08:49 yep Jun 11 12:09:35 what's the newest ui navigation trend? Jun 11 12:10:08 http://developer.android.com/design/patterns/navigation-drawer.html Jun 11 12:10:12 lasserix: riverdance on tablet? ;) Jun 11 12:10:27 thx karlo|w Jun 11 12:10:31 p_l: seriousily Jun 11 12:10:40 i i have trying everything to make eclipse works, but it seems after the last update nothing is capable of make eclipse to return to asnity... i am trying android studio, someone have good experience with it ? Jun 11 12:11:04 oh to me sliding drawer ~= navigation drawer Jun 11 12:11:24 lasserix: yeah, me too Jun 11 12:18:36 hey Jun 11 12:18:45 do you recommend pull to refresh design pattern? if so do you have any recommended library? Jun 11 12:19:05 p_l: i'd love to get a crystal ball navigation! Jun 11 12:19:19 e.g. a onBeforeUserClick() event Jun 11 12:20:06 pen, some people argue it should be avoided, but the newest gmail app actually has it (works a little bit different than typical implementation though) Jun 11 12:20:09 monsti: that can actually be supported Jun 11 12:20:35 yeah with mental training ;) Jun 11 12:20:47 karlo|w: so what do you think? is there a better alternatives? or good lirbaries Jun 11 12:20:53 monsti: nope, with the appropriate hardware ;) Jun 11 12:21:10 implementation wise I recommend https://github.com/chrisbanes/Android-PullToRefresh Jun 11 12:21:25 "you are booting the Samsung S5 - please put the USB plug in your brain..." Jun 11 12:21:41 "... mounting /dev/nsa" Jun 11 12:21:42 monsti: xperia sola Jun 11 12:21:57 pen, read this http://cyrilmottier.com/2012/03/28/the-pull-to-refresh-an-anti-ui-pattern-on-android/ Jun 11 12:22:23 but as I said even google pulled it out now which was surprising for me Jun 11 12:22:54 pen, usually pull-to-refresh really isn't a native Android pattern Jun 11 12:23:07 since listviews don't have an overscroll effect like iOS views do Jun 11 12:23:08 Mavrik: then what is it? Jun 11 12:23:13 Mavrik: yea, I noticed Jun 11 12:23:14 well, go check the apps Jun 11 12:23:31 you'll see that they have mostly refresh button in action bar (see G+, Press, etc.) Jun 11 12:23:43 however, some apps still do have PTR effect (twitter, Gmail, etc) Jun 11 12:24:04 also, remember, since there's no built-in overscroll you'll have hellova time making listviews do the overscroll properly :) Jun 11 12:24:33 interesting Jun 11 12:24:43 gmail pull to refresh doesn't have elastic scroll Jun 11 12:25:07 probably because every implementation has some problems Jun 11 12:25:23 yeah, because they're mostly faking it with fake listview items Jun 11 12:25:41 which totaly fucks up item positions and makes animations that deal with listview changes 100x harder to handle Jun 11 12:26:24 or they use header item Jun 11 12:26:39 the one I linked uses it afair Jun 11 12:27:59 karlo|w, no it doesn't Jun 11 12:28:12 at least not in default configuration that lets you scroll the list Jun 11 12:28:25 (I just had the honor of implementing it :P ) Jun 11 12:29:52 ok, I guess I will just implement a refresh button Jun 11 12:29:53 easier Jun 11 12:29:54 :P Jun 11 12:31:35 pen: do you come before pfn Jun 11 12:31:46 ? pfn? Jun 11 12:36:21 nevermind Jun 11 12:36:36 ugh getting gradle errors again, doesnt seem to be exporting the guava crapola Jun 11 12:52:57 i have a custom application object, how can i get a handle on it? is this getApplicationContext() ? Jun 11 12:55:07 ye' Jun 11 13:13:12 I cannot access Project Structure under ANdroid Studio, where am I supposed to do "Add As Library"? Jun 11 13:14:03 in my top-level settings.gradle there is only include ':myProject' and in the other settings.gradle I have included the Jar I need and it shows up in the project, yet when running I get a ClassNotFound exception Jun 11 13:14:17 here's the problem exactly, http://stackoverflow.com/questions/16608135/android-studio-add-jar-as-library Jun 11 13:14:26 but I don't have access to step 2 of the solution Jun 11 13:15:55 How to get raw touches ? Jun 11 13:16:04 i mean not filtered by anything ? Jun 11 13:16:40 hmm any fails because it cant delete bin/ and as usually windows says its in use, this is ridiculous Jun 11 13:16:52 I just want to know how what happen when there are two click simultaneously (almost in the same time) Jun 11 13:23:52 argh, fuck Gradle Jun 11 13:27:18 using sql, i have an intentservice that updates the db. and i have a fragment that can read from this db. how can i ensure that this reading does not happen during an update? Jun 11 13:43:45 hello. I have a lengthy but important question. anyone wants to participate for 150 points bountry ? http://stackoverflow.com/questions/17005837/persistent-foreground-android-service-that-starts-by-ui-and-also-starts-at-boot Jun 11 13:46:23 Sircle: I have two such apps... yaxim and aprsdroid :> Jun 11 13:47:04 Sircle: but your post is tl;dr Jun 11 13:49:13 Ge0rG: are those apps opensourced? and whats tl;dr? Jun 11 13:49:39 too long; didn't read Jun 11 13:49:49 Loader question: in the fragment lifecycle, is it better to call initLoader() from the fragment's onActivityCreated() or onStart() ? Jun 11 13:50:04 Sircle: yes, they are both. google the names / look on github. what ecraven said. Jun 11 13:51:32 Ge0rG: are you sure they cover my point 4. in scenario? any ways. your apps must be worth looking at Jun 11 13:51:46 pjdelport: onActivityCreated is usually too early, but it depends on how you are handling the data Jun 11 13:51:57 Sircle: you can not do anything about point 4. Jun 11 13:52:11 Sircle: with AlarmManager, you can at least get your service restarted at a defined time after OOM Jun 11 13:55:02 Ge0rG: whats the direct link of your apps source? The alarm manager is the only solution as running the forgroundservice making a wake lock all the time is no fiseable. (the app operates in slice with interval of 15 minuts. not good to make cpu wake 365 days a year) Jun 11 13:55:42 Sircle: use AlarmManager to wake your app every 15min Jun 11 13:55:58 ya. thats obvious now Jun 11 13:57:03 Ge0rG: read the Research and Code:--- Jun 11 13:57:09 Strategy: Jun 11 13:57:14 ? Jun 11 13:59:37 actionBar.selectTab(...) does not update the UI (old tab still selected). any ideas on that issue (tried serveral things already: post using handler, rebuiding tabnavigation, etc. nothing seems to work) Jun 11 14:01:32 Sircle: no, your question is too long. Jun 11 14:01:36 Ge0rG: whats the direct link of your apps source? Jun 11 14:01:41 Ge0rG: no problem Jun 11 14:03:01 Sircle: http://bit.ly/116SqoZ Jun 11 14:04:19 hi guys, hi romainguy . Jun 11 14:05:03 Ge0rG: needed to be sure as there might be many more yaxims apps out there Jun 11 14:05:58 Why button click doesn't show up in Jun 11 14:06:12 is there an easy way to see if "secure element" is accessible? any app that works like a "secure element checker"? Jun 11 14:06:12 Parent, OnTouchListener ? Jun 11 14:08:08 Ge0rG: thanks Jun 11 14:09:05 What logging library would be the best for use on Android, desktop and the server? Jun 11 14:09:15 So it will work with the same code base Jun 11 14:14:20 Ge0rG: aprs is just text messages? Jun 11 14:14:25 marlinc: http://www.slf4j.org/ Jun 11 14:14:46 Sircle: no, it is amateur radio geolocation Jun 11 14:14:52 marlinc: slf4j will pick the logging framework depending on your needs Jun 11 14:15:14 i.e. it will use the android logger if you want it to or log4j (for instance) Jun 11 14:16:37 Nice :) Jun 11 14:16:53 I'll take a look thanks! Jun 11 14:17:23 anyone used Volley much? Jun 11 14:18:51 winter is coming Jun 11 14:19:01 So I guess I would need http://www.slf4j.org/android/ on Android siyb ? Jun 11 14:19:12 The main slf4j lib and the Android one Jun 11 14:19:23 My phone don't take two click at once well :( Jun 11 14:19:31 And on the desktop I would need the main one and it would just use the available logging system? Jun 11 14:20:15 YuviPanda: yeah, what's up? Jun 11 14:20:22 it generate that clicks -> https://gist.github.com/bluesm/5757224 Jun 11 14:20:32 While there were in completely different location. Jun 11 14:20:42 evancharlton: thought of an easy way to display content:// uri images with it? Jun 11 14:20:45 marlinc: yep Jun 11 14:20:59 whcih could also make use of its disk cache... Jun 11 14:21:33 I am thinking of creating a new Stack that dlegates to another stack when the url is http, but 'simulates' it with content uris when it is a content uri Jun 11 14:21:34 thoughts? Jun 11 14:21:44 You'd have to make a Network implementation which hit the content resolver instead of the network, I think Jun 11 14:21:49 Yeah Jun 11 14:22:09 should work, I guess. Jun 11 14:22:21 * YuviPanda is replacing UIl with Volley on the Wikimedia Commons app Jun 11 14:22:38 evancharlton: also, any idea how to 'easily' get a 'loading' indicator? Jun 11 14:22:41 Very nice siyb :) Jun 11 14:23:04 Sorry, I'm on my phone. Will follow up in around forty five minutes. Jun 11 14:23:14 I will still be struggling when picking a logging level for a specific log message :p Jun 11 14:23:16 hi, I have a service that needs to be running and inside this service I have a new Thread that it has InetSocketAddress, but this socket is used with a listener, when I receive a new message the listener method is called. but the problem is when I stop the service I want to stop the Thread too, how can I do it ? Jun 11 14:23:20 evancharlton: alright. Jun 11 14:23:24 evancharlton: i'll be around :) Jun 11 14:23:36 the code to understand better: http://pastebin.com/8mtWKaH6 Jun 11 14:24:20 I have tried some solutions but I get android.os.NetworkOnMainThreadException Jun 11 14:24:34 so stop doing network on main thread Jun 11 14:25:13 canadiancow: I am not doing on main thread, when I stop the thread I get the exception on main thread, this code is working, the problem is to stop the thread. Jun 11 14:25:34 if i want my application to always listen to the screen_on event, what's the best way to do that? currently i have a service that i start on boot and on applicaction start, which creates the broadcastreceiver for screen_on Jun 11 14:34:16 hi, can i only choose to compile the java part of android? Jun 11 14:34:20 like compile everything once Jun 11 14:34:29 and from there on only compile the changes made in java? Jun 11 14:34:30 i Jun 11 14:34:36 i'm 100% sure i won Jun 11 14:34:41 't modify anything else Jun 11 14:41:30 rm -rf bin/classes Jun 11 14:43:59 pfn: wrong terminal :D Jun 11 14:44:11 no, that's answering loin's question Jun 11 14:44:17 oohhhh Jun 11 14:44:23 hows it going anyways? Jun 11 14:44:34 good and busy, you know how it is Jun 11 14:44:46 Hey eclipse says it can't find adb. Jun 11 14:44:55 just trying to make ViewPager flingable Jun 11 14:45:26 Error executing aapt: Cannot run program "/home/dhaval/Documents/adt-bundle-linux-x86_64-20130522/sdk/build-tools/android-4.2.2/aapt": error=2, No such file or directory: error=2, No such file or directory Jun 11 14:45:26 then set the path to the android sdk in eclipse Jun 11 14:45:28 bin/classes/? i'm talking about building aosp Jun 11 14:45:40 I did. That's the problem. Jun 11 14:45:49 pfn, * Jun 11 14:45:57 hang on I'm going to check ti again. Jun 11 14:46:00 loin, you should say so Jun 11 14:46:07 dhaval2712, that also looks incorrect Jun 11 14:46:10 pfn, i'm sorry Jun 11 14:46:54 Yeah sorry, it didn't accept the path, for some reason. Jun 11 14:48:01 Sorry, thanks. Jun 11 14:48:02 dhaval2712, that's the wrong path to aapt in any case Jun 11 14:48:05 at least on windows Jun 11 14:48:17 er, mac Jun 11 14:50:05 So... I have an idea for an app. I've seen my dad struggle with using his tablet due to his eye sight. I've set the font size to largest, which helps, but the icons are still too small. Jun 11 14:50:23 What about an app that allows you to create a widget, which is basically a 2x2 (or larger) app shortcut. Jun 11 14:50:53 Only problem is I suck at coding. Jun 11 14:51:16 Napalm: re. the loader/fragment question, that's what i suspected, but the d.android.com guides call initLoader() from onActivityCreated() Jun 11 14:52:49 IceBone, I know the galaxy s4 has a 'triple tap to zoom' accessibility feature which zooms in on a portion of the screen and allows panning. Jun 11 14:53:06 That's also one way, yeah. Jun 11 14:53:30 but I don't think many devices have those kinds of features sadly Jun 11 14:53:47 Yeah, I think only the latest samsung galaxies do. Jun 11 14:54:40 IceBone, https://play.google.com/store/apps/details?id=com.gabetaubman.giganticon Jun 11 14:54:51 Oh Jun 11 14:54:53 Nevermind, then! Jun 11 14:55:12 l/build/BuildConfigGenerator.java: * @deprecated Use Android-Builder instead Jun 11 14:55:12 I will invent protective covers that are magnifying glass too Jun 11 14:55:15 wtf is Android-Builder Jun 11 14:55:54 I set the path but it still says that it couldn't find aapt or adt. Jun 11 14:56:13 You can have up to two icons totally free, and then the app will ask you to upgrade. However, there is a secret way to unlock a third free icon. Jun 11 14:56:14 Problem is, the path to the files they're showing is correct and aapt and adt are in there. Jun 11 14:56:17 Woooow, two whole icons. Jun 11 14:59:35 I thought most widgets were already resizeable Jun 11 14:59:51 Widgets, yes. But these are app shortcuts. Jun 11 15:00:58 Yo guys Jun 11 15:01:09 Anyone have any experience rotating images in Android? Jun 11 15:01:16 I've got some images that need to be placed at dynamic angles Jun 11 15:01:24 but when I draw them myself they just blur hard Jun 11 15:03:35 annnddd no help Jun 11 15:03:36 :S Jun 11 15:03:42 I miss the days where I got more help than I gave on this channel D: Jun 11 15:03:49 i'm trying to understand why this regex would pass when run on a PC but fail when run on an Android device, http://ideone.com/BQREL0 Jun 11 15:03:58 Are Android SyncAdapter a good option? Jun 11 15:04:11 Brian|CB: wow you waited a full 2 minutes! Jun 11 15:04:14 Shouldn't them be replaced by GCM Jun 11 15:04:40 Is it a good way of thinking Google Cloud Messaging as a kind of replacement of syncadapter? Jun 11 15:04:53 well I do like the hover feature of s4, could be used to magnify or pop up more info before following the link or whatever, and air gestures, maybe android should copy some of those features Jun 11 15:04:57 Brian|CB: are you using the matrix scaletype to rotate your images Jun 11 15:04:57 ? Jun 11 15:05:01 Why not just wake up the device with GCM, then fetch a specific URL with GET method Jun 11 15:05:02 YuviPanda: hey Jun 11 15:05:06 hey! Jun 11 15:05:24 siyb: Yeah, I'm scaling via matrix Jun 11 15:06:01 siyb: I'm jusing the matrix.postRotate, matrix.postTranslate, and canvas.DrawBitmap(bitmap, matrix, null) Jun 11 15:06:19 evanc: so I'm trying to put a 'loading' animated indicator in my image view as the image loads Jun 11 15:06:26 YuviPanda: so, yeah, if you want to go down the content:// route, you could do it with an HttpStack that returns faked-out HttpResponses Jun 11 15:06:42 thoughts on how to do it? I don't see a way to be notified when the image is fully loaded... Jun 11 15:06:48 evanc: yeah, that's my plan! :) Jun 11 15:07:01 Brian|CB: you could rotate the canvas instead of the image itself Jun 11 15:07:09 YuviPanda: when you get the callback to onResponse, the image is loaded Jun 11 15:07:19 Brian|CB: have you tried rotatableimageview Jun 11 15:07:20 ? Jun 11 15:07:30 siyb: I don't think imageviews really suit my purpose Jun 11 15:07:31 hmm, can I get to onResponse even if I'm using the NetworkImageView? Jun 11 15:07:34 * YuviPanda checks Jun 11 15:07:38 the lack of documentation is sad :( Jun 11 15:07:45 I'm going to be dynamically drawing a good number of images at generated angles Jun 11 15:07:52 can you stack a canvas on a canvas? Jun 11 15:08:00 YuviPanda: hm, good question about using NetworkImageView. I suspect not Jun 11 15:08:18 Brian|CB: you could use a canvas and get the pixelbuffer (maybe) Jun 11 15:08:20 of course, you could just lift the source for NIV into your app and just change it as you need. There's nothing magical about it Jun 11 15:08:23 evanc: i'll probably have to subclass it, and figure some way out. Jun 11 15:08:24 It's all related to the '$' character also, everything else works fine Jun 11 15:08:25 If onTouch returns false ? Jun 11 15:08:27 What does it mean ? Jun 11 15:08:28 evanc: sure, but that's icky :( Jun 11 15:08:51 evanc: plus I put that jar into a maven repo and am using it that way... Jun 11 15:09:14 YuviPanda: fair Jun 11 15:09:16 if i want my app to listen to android.intent.action.SCREEN_ON, what's the best way to do it to ensure it starts listening on boot but also right after install? Jun 11 15:09:27 evanc: what have you used it for, btw? Jun 11 15:09:31 seand: you can't do it right after install Jun 11 15:09:43 what about on application start? Jun 11 15:09:52 put it in the manifest? Jun 11 15:10:01 you can't put SCREEN_ON in the manifest AFAIK Jun 11 15:10:05 evanc: primary reason I'm trying to switch from UIL is that UIL's caching seems to be broken... Jun 11 15:10:08 YuviPanda: several apps (some released, some not) Jun 11 15:10:20 YuviPanda: sorry, I don't know what UIL is Jun 11 15:10:26 UniversalImageLoader Jun 11 15:10:40 it is a (popular?) project that did just what NetworkImageView did Jun 11 15:10:42 and nothing more Jun 11 15:11:10 ah Jun 11 15:11:22 evanc: the way i'm doing it now is i have a service that is started on boot and on app start, and all the service does is create the BroadcastReceiver for SCREEN_ON... but that seems like a waste of a service to me Jun 11 15:11:32 Are there things like Android logging tags in slf4j? Jun 11 15:11:47 marlinc: yes Jun 11 15:11:53 definitely a waste of a service, but if that's your only option, then I suppose that's what you have to do Jun 11 15:12:11 siyb: Thanks for the suggesttions Jun 11 15:12:19 I think I'm gonna try the rotating of canvas Jun 11 15:12:23 marlinc: it uses the name of the class as a tag Jun 11 15:12:24 Are that those 'markers'? Jun 11 15:12:25 to see if it makes a difference Jun 11 15:12:29 Ah Jun 11 15:12:34 Okay thats good enough Jun 11 15:12:45 marlinc: LoggerFactory.getLogger(TabNavigationListener.class.getSimpleName()); Jun 11 15:12:45 evanc: have you been using NetworkImageView or just the ImageLoader directly? Jun 11 15:12:46 evanc: so there's no way to check if a receiver is already registered? Jun 11 15:12:53 marlinc: use something like that Jun 11 15:13:03 Well okay thanks :) Jun 11 15:13:04 i suggest that you use getSimpleName() ;) Jun 11 15:13:51 YuviPanda: both Jun 11 15:14:01 it depends on what I'm doing Jun 11 15:14:05 on the whole, not too buggy? :) Jun 11 15:14:30 not that I've found Jun 11 15:14:37 that's encouraging :) Jun 11 15:15:02 Hello! Maybe anyone know how to implement following usecase http://developer.android.com/images/ui/settings/settings.png ? Jun 11 15:15:49 Override onClick in preference item? Jun 11 15:17:03 Set an OnPreferenceClickListener Jun 11 15:17:13 And show a dialog Jun 11 15:18:01 ok Jun 11 15:18:26 k thanks Jun 11 15:22:01 sigh Jun 11 15:22:04 still unable to get rid of blur Jun 11 15:22:05 D: Jun 11 15:22:26 hello friends, a small off topic que. how can i disable all pidgin logs, like entered the room, connection reset, timeout, loged out etc.... Jun 11 15:28:26 hi. how can i load a java library earlier ad keep it hanging in the RAM? Jun 11 15:28:35 hi. how can i load a java library earlier and keep it hanging in the RAM? Jun 11 15:29:28 Instantiate a static instance of it, perhaps? (probably a terrible thing to do) Jun 11 15:35:09 i'm trying to supply a pre-determined id into the sqlite database but it seems like it's ignoring the id i'm giving it and it's automatically assigning an id Jun 11 15:36:00 the new version of pull-to-refresh pattern from Gmail, did you guys see it anywhere else? Jun 11 15:38:46 Seidr, how? Jun 11 15:39:58 aight Jun 11 15:39:59 fixed that blur Jun 11 15:40:00 woot Jun 11 15:40:41 Depends on how the library is meant to be used. If you can create a new instance, you could chuck something like public static MyLibraryClass staticClass = new MyLibraryClass() into another class, and then reference the static instantiation through there.. Jun 11 15:40:47 Like I said, probably a terrible thing to do.. Jun 11 15:40:54 Which library in particular are you refering to? Jun 11 15:44:02 My app is crashing randomly and there are no errors in logcat. What might be causing this? Jun 11 15:44:47 Hmm, there must be something in there, surely! I guess some of the task managers that auto-kill processes out there might cause app death without an error.. Jun 11 15:45:07 Do you have a snippet of your log cat during which time the App crashes? Jun 11 15:45:46 Seidr: I'm not running any task managers, would you like to see no filter? Cause the automatic session filter is completely empty Jun 11 15:46:58 deadmund: take a bugreport (`adb bugreport > bugreport.txt`) after it crashes Jun 11 15:47:05 it's like logcat on steroids Jun 11 15:47:08 evanc: Lemme see if I can replicate Jun 11 15:47:24 Might be useful , sometimes logcat goes a bit..odd, at least in the Eclipse view, and doesn't actually filter messages correctly. Jun 11 15:48:11 evanc: that's a big file Jun 11 15:48:20 deadmund: correct Jun 11 15:48:38 that's why I had you put it to a file instead of stdout, haha Jun 11 15:48:44 :> Jun 11 15:49:53 as an experienced programmer who hasn't used an IDE in a while and would like to start doing android stuff (ideally without an IDE but I don't have much hope), should I download the stable eclipse version of the android tools or the unstable "android studio" idea-based version? Jun 11 15:50:37 Android Studio is not that mature, as I understand it, but that said I haven't actually tried it. So, naturally I'd say Eclipse, but see what others have to say about Studio Jun 11 15:50:50 studio++ or just get Idea intelliJ Jun 11 15:51:13 Does IntelliJ support NDK development? Jun 11 15:51:31 does anyone using "game services" know how to "tweak" this intent: startActivityForResult(getGamesClient().getLeaderboardIntent(getString(R.string.leaderboard_xyz)), RC_UNUSED); in order to go straight on the "Public" tab instead of the "My Circles" tab ? Jun 11 15:52:26 even better if it is also possible to change the period of time directly too (today, this week or "all time") Jun 11 15:53:27 I'd agree with Seidr mostly. Although Android Studio is based on IntelliJ, I tried it and it seems really immature as far as an IDE goes. I'd give it a few months before doing any serious development on it Jun 11 15:53:56 alright. I used to use eclipse, and I have to say, I absolutely hated it Jun 11 15:54:12 It is a hate hate relationship, I have to say. Jun 11 15:54:24 ..but it gets the job done! ;) Jun 11 15:54:34 I suppose I could try eclim again Jun 11 15:54:39 * YuviPanda is happy sitting with IntelliJ Jun 11 15:54:47 probably won't do everything necessary though :p Jun 11 15:55:00 lahwran: last time I tried Eclim it just died OOM Jun 11 15:55:04 lahwran: I understand Jun 11 15:55:09 I totally hate eclipse for the most part Jun 11 15:55:27 but the fact is it's the most supported platform for android dev right now Jun 11 15:55:34 and its the most documented, which is awesome for new devs Jun 11 15:55:37 * lahwran sighs and sadfaces Jun 11 15:56:50 lahwran: Are you a new dev I take it? Jun 11 15:57:09 I'm not a new programmer by any stretch. but I haven't used android stuff before Jun 11 15:57:31 good luck narwhal Jun 11 15:57:35 seronis! Jun 11 15:57:40 fancy meeting you here Jun 11 15:58:22 my daughter just got a Kindle this past week so thought id idle in here and passively pick up advice in case she asks me to make something Jun 11 15:59:03 "if" Jun 11 15:59:06 "If" Jun 11 15:59:20 SInce I do this stuff for a living, everyone and their grandma has the next facebook they want me to make Jun 11 15:59:21 >.> Jun 11 16:00:04 http://www.youtube.com/watch?v=5NV6Rdv1a3I Jun 11 16:01:00 Brian|CB: seronis ... is in a bit of a different situation compared to us pros Jun 11 16:01:28 i learn JUST what i need to make things my kids and families kids request. and hobby stuff Jun 11 16:01:45 seronis: Thats the best way to learn! Jun 11 16:01:50 I learned that way last spring Jun 11 16:02:01 and within a few months, I had 2 internship offers, and won a $1000 competition Jun 11 16:02:59 lahwran: since adb is (i believe) whats pushing the packaged apk files to your android device you really should be able to get by with just CLI Jun 11 16:03:25 * lahwran prods seronis to explain more context to Brian|CB Jun 11 16:03:30 and, I see Jun 11 16:04:27 ((i'll never understand why you would WANT to, BUT thats a different topic)) Jun 11 16:04:50 because (vim|emacs) > eclipse Jun 11 16:05:12 (incidentally I don't believe in comparing between emacs and vim, just between the two vs everything else) Jun 11 16:05:22 but.. but.. ijkl makes my brain hurt for text navigation Jun 11 16:05:49 you're not supposed to use hjkl Jun 11 16:05:51 vim|emacs? Did you learn to program in 1980? Jun 11 16:06:10 you're supposed to use wWbBefFtT Jun 11 16:06:28 strangely enough i know people who werent even alive in 1980 who refuse to use any 'ide' other than vim Jun 11 16:06:37 having to touch a mouse is an insult to them Jun 11 16:06:44 don't say how you want to move the cursor, say where you want it to be Jun 11 16:06:56 dtM Jun 11 16:07:16 Brian|CB: I'm not sure what you mean Jun 11 16:07:37 things like this is also why I only play Dwarf Fortress a couple times a year. the repeated 'key only' approach isnt something i spend enough time doing that it becomes second nature Jun 11 16:08:22 though i can understand how much more efficient it would be Jun 11 16:08:49 vim and emacs are sorta oldschool "I'm a l33t programmer" tools Jun 11 16:09:03 the only people I respect that use them are like professors and people who learned to code when they were the most efficient and logical choice Jun 11 16:09:15 but now I think they're sort of outdated and if you use them it's just to show how "l33t" you are typically, at least for students Jun 11 16:09:39 not for the people I know who use it.. its mostly an issue of IMPATIENCE with them Jun 11 16:10:02 get over the learning curve and your navigation within source is factors faster than with anything else Jun 11 16:10:11 Brian|CB: ... Jun 11 16:10:44 Brian|CB: there's nothing I can say to respond to that, because you've stereotyped away my opinion Jun 11 16:12:04 lahwran: I know, it's just that I know a lot of smart kids who are like forcing themselves to be comfortable with vim/emacs, and in the end it just ends up taking time away lol Jun 11 16:12:37 I originally learned it because everyone else at work was using it - easier to just go with the flow Jun 11 16:12:40 s/end/beginning Jun 11 16:13:08 it certainly feels like it flows slightly better, which could easily be placebo Jun 11 16:13:28 lahwran: link supplied in priv Jun 11 16:13:48 took me a min to find it in my bookmarks Jun 11 16:13:49 Brian|CB: so sure, maybe there's no reason to use vim over say, gedit Jun 11 16:13:59 eclipse, on the other hand ... :p Jun 11 16:15:22 gedit? What is this, 1998 Jun 11 16:15:28 We use Sublime in this household son Jun 11 16:15:38 oh, right Jun 11 16:16:05 s/son/pops Jun 11 16:16:06 gah I hate coordinate systems Jun 11 16:16:18 I'm going to wrap the whole canvas class, and switch the bottom left corner to being 0,0 Jun 11 16:31:14 no reason to use it over gedit? Jun 11 16:31:16 saywhat Jun 11 16:32:25 * pfn uses vim simply because no other editor has better keybindings Jun 11 16:32:46 I tried out a dvorak keyboard layout and was touch typing until I figured I couldn't use vim with it... Jun 11 16:32:59 then I dropped that crap like a bad habit Jun 11 16:36:24 is there a way to find the source behind SpeechRecognizer, to find out how it detects onBeginningOfSpeech()? Jun 11 16:36:45 look through aosp Jun 11 16:37:15 pfn, i did: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/speech/SpeechRecognizer.java Jun 11 16:37:32 then dig down as far as you can Jun 11 16:37:35 having trouble finding anything but high level calls Jun 11 16:37:49 it terminates at a web service Jun 11 16:37:51 the answer is no Jun 11 16:38:25 how can you tell that? Jun 11 16:38:32 from mService = IRecognitionService.Stub.asInterface(service);? Jun 11 16:38:45 well, you figure that part out :p Jun 11 16:38:50 beastmanrage: afaik the SpeechRecogniztion implementation is up to the vendor, and as such might not be part of AOSP Jun 11 16:39:06 ahh ok Jun 11 16:39:28 but might be wrong, someone knowing it better, might corret me there Jun 11 16:39:52 it's done in a variety of places, but most of the times, it's just google's backend service Jun 11 16:40:55 i figured at least the voice activity detection would be on-board Jun 11 16:40:58 that would make more sense Jun 11 16:41:11 perhaps Jun 11 16:41:22 need to dig through and see how IRecognitionListener is handled Jun 11 16:42:07 is grepcode the place to look through source? Jun 11 16:42:26 it is A way :) Jun 11 16:42:42 i personally prefere looking through it locally, others may prefer github Jun 11 16:45:10 I usually repo sync and repo grep Jun 11 16:45:17 it works best if you're on ssd Jun 11 16:45:27 slow as piss if you're not Jun 11 16:45:41 if i've got code that runs in the emulator, but when run on the device it errors out...where should i start looking? logcat seems to be devoid of any kind of errors, and debugging in eclipse ends up with it stopping in DefaultRequestDirector.class and never throwing an error Jun 11 16:45:48 newb here. Looking for a good example Android app codebase to learn from by reading. Anyone have recommendations for open source real-world apps you would consider high quality? Jun 11 16:46:05 anypointers on how to get logcat to show more info? or anything realy Jun 11 16:46:16 it errors out Jun 11 16:46:20 you said it does Jun 11 16:46:21 tspike: https://code.google.com/p/iosched/ Jun 11 16:46:58 timroes: thanks Jun 11 16:47:52 eric256, you have to pick the device in the list to see its logcat... Jun 11 16:48:33 yep, its picked, and i get info...just nothing at all related to my app Jun 11 16:49:25 (everything is also orange and time/PID and Tag are all question marks instead of info) Jun 11 16:49:56 pictures are a thousand words Jun 11 16:51:32 http://pbrd.co/11wV83u here is what eclipse looks like when it crashes Jun 11 16:55:58 apparently my sdk is way out of date..updating that all before further tail chasing Jun 11 17:02:41 okay logcat now works, looks like the error is from AndroidBlokcGuardPolicy.onNetwork Jun 11 17:36:59 that's easy to fix Jun 11 17:37:14 does anyone here have an android 2.3 phone? Jun 11 17:38:44 is it possible to activate my application interface after every single call? Jun 11 17:39:15 yes Jun 11 17:39:19 mtree: you can with TelephonyManager Jun 11 17:40:04 what's google repository and android support repository in sdk manager? Jun 11 17:40:19 So I am getting the strangest error in Android STudio when I try to rearrange my project structure. Jun 11 17:40:23 https://plus.google.com/+AndroidDevelopers Jun 11 17:40:25 hmm Jun 11 17:40:42 https://plus.google.com/108967384991768947849/posts/4Yhpn6p9icf Jun 11 17:40:55 Gives me the error, "File /Applications/Android Studio.app/AndroidManifest.xml" is not found. Changes not saved." Has anybody else got that before? Jun 11 17:41:18 interesting Jun 11 17:41:48 so they're local mvn repositories or something? Jun 11 17:42:32 Yep Jun 11 17:44:42 Solupus, i do Jun 11 17:45:19 loin, do you have angry birds on it? and if you do how fast does it take to load? and is the gameplay smooth? Jun 11 17:45:24 any other games is fine as well Jun 11 17:45:41 Solupus, depends on the device Jun 11 17:45:51 it's not that gingerbread is slow, it's the fact that the device is slow Jun 11 17:45:53 that's kind of annoying Jun 11 17:46:03 why doesn't google just make a public repo that's the source of truth Jun 11 17:46:31 Solupus, on a nexus s games (including angry birds) are satisfactory Jun 11 17:46:51 not like it isn't trivial to host a maven repo... Jun 11 17:46:51 Nexus S is upgradeable to 4.0 isnt it ? Jun 11 17:46:56 Solupus, yes Jun 11 17:47:08 that's how you can really test the diference between gb, ics and jb Jun 11 17:47:17 gb is by far the best android version imo Jun 11 17:47:21 loin, im speaking of devices like... Droid X Jun 11 17:47:22 saywhat Jun 11 17:47:33 Is anyone familiar how to properly import a .pak file into the assets directory of an AndroidStudio application? Jun 11 17:47:33 someone's been smoking the crack Jun 11 17:48:28 pfn, they should have just put it in maven central.. Jun 11 17:48:32 But that's not going to happen Jun 11 17:48:48 Nobody's seen that error before? Jun 11 17:48:52 There's no accept license button in maven central -.- Jun 11 17:49:08 Solupus, as far as i know nexus s and droid x are pretty much equal in terms of hardware Jun 11 17:50:49 ahh thanks Jun 11 17:52:13 loin, Droid X doesn't have a grapihcs processor right? Jun 11 17:53:09 hello Jun 11 17:53:13 what is a good encryption lib on android for DH/RSA and AES? Jun 11 17:54:06 Solupus, of course it does have one, the SGX530 Jun 11 17:54:11 Solupus, and the nexus s has SGX 540 Jun 11 17:54:29 hmm thats weird Jun 11 17:54:33 phonearena.com doesnt state it :/ Jun 11 17:55:15 Solupus, http://www.gsmarena.com/compare.php3?idPhone1=3473&idPhone2=3620 Jun 11 17:57:23 loin, thanks Jun 11 17:57:46 http://www.gsmarena.com/compare.php3?idPhone1=4736&idPhone2=3473 Jun 11 17:58:00 im guessing if my prism can run my game :/ most phones can Jun 11 17:58:14 Solupus, which game Jun 11 17:58:41 my own game haha, its not out yet Jun 11 17:59:29 well, you can't really know until you try it Jun 11 17:59:45 loin, yup. I just wanted to know if i had an underpar phone :) Jun 11 18:00:17 the crappiest phone i have is http://www.gsmarena.com/compare.php3?idPhone1=4736&idPhone2=3725 Jun 11 18:02:11 it still has a GPU :/ Jun 11 18:02:42 Solupus, and the mini's gpu handles bluring a lot better than the nexus s's gpu Jun 11 18:02:47 i was so dissapoint Jun 11 18:03:10 I can always make sure if my game works properly on Jun 11 18:03:10 http://www.gsmarena.com/compare.php3?idPhone1=4736&idPhone2=2533 Jun 11 18:14:37 SimonVT, indeed, shouldn't need an accept license bullshit Jun 11 18:14:42 not for aosp code... Jun 11 18:15:07 i.e. android-support should at least be in maven central... don't really care too much about the google repo Jun 11 18:17:18 people read licenses? Jun 11 18:17:49 yeah cops Jun 11 18:17:52 nice, updated sdk tools, now adt says it requires version 22.0 or above, but the update site says no updates Jun 11 18:18:05 I get pulled over all the time and asked to show my licenses Jun 11 18:18:21 pfn: i think you have to use the internal updaters? Jun 11 18:20:10 i love how QA is complaining about app crashes and I have no fucking stack traces or bugs logged that refer to crashes Jun 11 18:20:13 :( Jun 11 18:30:40 Sorry if OT, but I was wondering if anyone does any BlackBerry app dev as well? Jun 11 18:31:21 Ihave Jun 11 18:31:24 for old blaackbery Jun 11 18:31:44 mikedg: Mind if I pm ask ask a fairly simple question? Jun 11 18:31:57 mikedg, yep, it's awesome Jun 11 18:32:35 Jymmm: sure Jun 11 18:35:26 if you want to start another activity and get something back, you build an Intent, and pass it to startActivityForResult. When the other activity goes away, you can get the data back inside the onActivityResult method. Jun 11 18:35:46 my question is, how do you determine which activy just got finished, if you have more than one activity Jun 11 18:35:48 available? Jun 11 18:36:27 is there a formula to find out the DPI of a phone? Jun 11 18:36:44 there's an API Jun 11 18:37:52 http://www.brandbuilderwebsites.com/blog/2012/03/29/device-independent-pixel-formula-for-mobile-devices/ Jun 11 18:37:53 found it :) Jun 11 18:38:02 there's an API for everything Jun 11 18:38:10 mikedg: lies. Jun 11 18:41:28 the first parameter in the onActivityResult tells you which request it is coming from. Jun 11 18:44:57 romainguy, what api was it again? Jun 11 18:45:04 scratch the again* Jun 11 18:45:20 http://developer.android.com/reference/android/util/DisplayMetrics.html Jun 11 18:45:34 you can get DisplayMetrics from a Resources instance Jun 11 18:46:04 has anyone tried running `adb` on OS X Maverick? Jun 11 18:46:11 why is it that AsyncTask can only be run one time?? what is the logic behind that? Jun 11 18:46:16 hi all. can someone link me to a tutorial on how to combine the DrawerLayout with the ViewPager? it seems that google treat them separately only... thanks Jun 11 18:46:35 KillmeSoftly: `new` a new one? Jun 11 18:46:40 mikedg, oh yeah, about internal updaters... there isn't one for adt... just need to download the zip again... Jun 11 18:46:49 what? Jun 11 18:47:06 Does anyone know if the new Google Play music app uses the MediaCodec funcitonality? Jun 11 18:47:07 it can only be executed one time... Jun 11 18:47:09 *functionality Jun 11 18:47:28 put it in a loop Jun 11 18:47:30 im curious about the logic behind it... so plz dont say it can only be executed one time Jun 11 18:47:31 its like executing it twice Jun 11 18:47:33 KillmeSoftly, because it's a stateful thing, if you want to run more than one time, instantiate it again Jun 11 18:47:47 jonp: Yes Jun 11 18:47:53 jonp: It works for me :-\ Jun 11 18:47:55 hm Jun 11 18:47:56 pfn - thank you...actual answers yay! Jun 11 18:47:57 KillmeSoftly: get off irc while you are in the middle of an interview Jun 11 18:48:01 hwrd|work: including `adb devices`? Jun 11 18:48:08 hwrd|work: i have reports of it hanging for others... Jun 11 18:48:28 running asynctask multiple times is usually a recipe for disaster, since people store all sorts of state in there Jun 11 18:48:44 jonp: Seems to be working for me. Jun 11 18:48:53 hm. ok. Jun 11 18:48:55 hwrd|work: thanks. Jun 11 18:49:00 np Jun 11 18:50:56 anyone know of a good photo gallery library? I've got some large photos i'd like to be able to pan and zoom, but when u set them to imageviews on older devices it crashes when creating the buffer lol Jun 11 18:51:18 wow, looks like eclipse in the adt bundle can't be updated Jun 11 18:51:21 what kind of lame shit is that Jun 11 18:51:28 * pfn redownloads the adt bundle, again Jun 11 18:51:41 anyone has built a DrawerLayout/ViewPager app? :) Jun 11 18:52:00 lorenx: There are hella of them. What are you looking to do specifically? Jun 11 18:52:43 lorenx: (ex gplay music instant mixes section) Jun 11 18:52:57 hwrd|work: i'm looking for a tutorial (or something like that) to build a DrawerLayout whose items point to a ViewPager Jun 11 18:53:23 lorenx: Oh, you want a click in the drawer to change a page in the view pager? Jun 11 18:54:40 hwrd|work: ehm, no... i'd like to realize a navigation menu based on the DrawerLayout that has several items to click. some of them should present a ViewPager Jun 11 18:55:11 Ok? So why don't you have a fragment that just have a ViewPager in it? Jun 11 18:55:52 DrawerLayout has ListView, then onListItemClicked(Activity.getFragmentMangaer(replaceMainContentWithFragmentThatHasViewPager))) Jun 11 18:56:31 yeah, a fragment that just have a ViewPager in it sounds fine... but i'd like to see some example code if possible :) Jun 11 18:57:14 lorenx: So, just take a fragment activity, put a drawer layout in it, the drawer layout has a list view and frame, the list view is whats in the drawer, do fragment transactions on the frame depending on what you want shown? Jun 11 18:57:19 if thats what you're looking to achieve Jun 11 18:57:47 Brian|CB: maybe, but i'm slower :P let me see Jun 11 18:58:04 lorenx: I'd try google :-( . I don't have any personal examples of that sorry. Jun 11 19:00:12 hwrd|work: thanks anyway ;) Jun 11 19:04:35 Brian|CB, hwrd|work: i guess i should instantiate a FragmentStatePagerAdapter in the onCreateView() method of my Fragment, right? Jun 11 19:05:14 lorenx: Yes, you also need to instantiate a view pager (if you haven't done that already) Jun 11 19:13:29 Brian|CB, hwrd|work: thanks, i got it ;) Jun 11 19:22:41 lorenx: Np, I'm here to help Jun 11 19:22:54 As long as it's either not work hours, or a small enough question for me to answer during work :S Jun 11 20:04:08 Hi all! Jun 11 20:04:30 I am tryng to populate a spinner but it is making me crazy Jun 11 20:04:45 before i have tryed with the simple addView Jun 11 20:04:56 but ti crashed with nullpointerexception Jun 11 20:05:05 now i am using array adapter Jun 11 20:05:12 it crash in a similare way Jun 11 20:05:22 I recommend spinning around in your chair. become one with the spinner. Jun 11 20:05:36 hehehe i am linking the code just one second ;) Jun 11 20:06:57 https://github.com/G10h4ck/RetroShare-Android-Client/blob/master/RetroShareRemote/src/org/retroshare/android/authenticator/AccountActivity.java#L56 Jun 11 20:07:36 I have looked a lot of QA on stackoverflow but noone seems resolve my problem :| Jun 11 20:07:48 Your 3rd parameter in the arrayadapter constructor is wrong Jun 11 20:08:34 textViewResourceId The id of the TextView within the layout resource to be populated Jun 11 20:08:57 Also, you don't have to pass it if the layout is nothing but a textview Jun 11 20:09:46 so i have to remove that parameter and use the costructor with just 3 parameters ? Jun 11 20:10:02 If the layout is nothing but a textview, yes Jun 11 20:10:32 yes Jun 11 20:11:51 SimonVT many thanks it worked!!!! Jun 11 20:12:01 it is a full day that i am going crazy with this!!! Jun 11 20:12:05 thanksssss!! Jun 11 20:24:10 does anybody know of a nice way to use ffmpeg to compress videos with jni? Jun 11 20:24:36 any of you use picasso? i'm trying to come up with a way to quickly check if the requested URL is cached Jun 11 20:24:43 and get it if it's cached obviously Jun 11 20:24:55 cached where? Jun 11 20:24:58 in memory? Jun 11 20:26:00 JakeWharton: local disk. i have a remote views factory form which i want to access the images Jun 11 20:26:17 JakeWharton: looks like i can provide a okhttploader and query the httpresponsecache from within there Jun 11 20:26:40 just make an HTTP request for the resource with Cache-Control: only-if-cached Jun 11 20:27:12 using the same instance of OkHttpLoader, correct? Jun 11 20:27:52 yeah you can do that Jun 11 20:27:58 just pass true to the second argument Jun 11 20:28:06 ok, i'll try that. thanks! Jun 11 20:28:19 JakeWharton: awesome lib btw Jun 11 20:28:20 hello Jun 11 20:28:31 I have here a tablet that had google services removed Jun 11 20:28:41 and I suspect that this is why GPS-using apps from me crash on it Jun 11 20:28:45 can anyone give me any pointers on realtime listviews Jun 11 20:28:47 I found a api and installed Jun 11 20:29:02 but I am failing to figure how to run the location services Jun 11 20:29:04 Tronflowers: "realtime" ? Jun 11 20:29:10 also I don't know how to check if the tablet really has GPS or not Jun 11 20:29:24 funkbox, I have a websockets library getting streaming figures say every second or so Jun 11 20:29:32 well websockets api Jun 11 20:33:45 hello Jun 11 20:34:12 no. Jun 11 20:34:31 does anyone know how to programatically set a textview id to @android:id/empty? Jun 11 20:34:51 "@android:id/empty" that is how it is done with xml Jun 11 20:35:38 :( Jun 11 20:35:45 none knows how I launch google location services? Jun 11 20:35:46 JakeWharton: looks like the members of Loader.Response aren't exposed so can't really determine if it's cached locally or not Jun 11 20:36:32 you need to make a request to determine that Jun 11 20:37:15 new Request("Is it cached locally or not?") Jun 11 20:37:17 it'll either return a 200 (it's cached) or a 404 (not cached) Jun 11 20:37:35 That's some pretty impressive language recognition Jun 11 20:37:54 I think I got my answer textview.setId(android.R.id.empty) Jun 11 20:38:01 oh, i see what you're saying. let me look Jun 11 20:40:02 You're probably better off making the request yourself because you can just check the HTTP response code. The Loader wasn't designed to support something like this (though it gets close) Jun 11 20:40:48 we can expose something in the future to make it a bit easier (such as returning the response code) Jun 11 20:42:47 JakeWharton: yeah, that's what i'm doing. it would be nice to have something similar to that since it makes loading images in widgets much easiers Jun 11 20:43:15 if (imagecached) loadintoview else kick off service to fetch it Jun 11 20:43:46 we should make a GridView widget sample Jun 11 20:44:00 never used the library with widgets so I never even thought about its interaction Jun 11 20:47:11 JakeWharton: a way to set "local cache only" in would make things a lot easier.. so something like Picasso.with(context).load(bla).localCacheOnly(true).into(new Target(){})... Jun 11 20:52:35 that addition actually looks to be pretty straightforward actually Jun 11 21:08:11 they dont think it be like it is but it do Jun 11 21:15:02 whats the best way to restart an app ? there seems to be a few ways, however all the simple ones that you would expect still somehow persist data Jun 11 21:15:10 * StingRay_ is puzzled Jun 11 21:16:25 Restart app? Jun 11 21:16:37 The simplest way is don't Jun 11 21:16:58 your correct, thats really simple Jun 11 21:18:15 Why do you think you need to restart your app? Jun 11 21:18:17 StingRay_: it's considered a very bad thing to do. why do you want to restart ? Jun 11 21:18:58 well I have a few visual description objects, that when switched to a different set, it just seemed easy to, restart the app Jun 11 21:19:15 but problem is some things are changed on restart, some are not Jun 11 21:19:28 as in not the same as me manually swiping the task away Jun 11 21:19:40 figure out a way to properly do it then Jun 11 21:20:11 why is it such a bad thing ? Jun 11 21:20:14 I'm not sure if you're confusing app and activity.. Jun 11 21:20:34 ok cleared stack with launcher activity Jun 11 21:21:11 fire and intent to your root activity with flags to clear the stack Jun 11 21:21:24 thats what I do Jun 11 21:37:20 anyone ever used a YouTubePlayerSupportFragment in an animation? Jun 11 21:37:41 Its chrome animates, but the movie screen itself stays stationary Jun 11 21:37:48 which looks kind of odd Jun 11 21:39:11 i wasnt aware there was a YouTube*Fragment :\ Jun 11 21:39:51 canadiancow: it's official even com.google.android.youtube.player.YouTubePlayerFragment; Jun 11 21:39:58 but it has a YT dependency Jun 11 21:39:58 yeah i see that now Jun 11 21:40:04 i just... didnt realize it existed :P Jun 11 21:40:17 the more you know * :p Jun 11 21:54:30 how does one build an apklib in Android Studio? Jun 11 21:54:43 should I stay away from Maven and try Gradle's way? Jun 11 21:55:16 gah Jun 11 21:55:25 proguard keeps removing empty constructors on my custom views Jun 11 21:55:29 any ideas on how to stop that? Jun 11 22:12:24 Hi there, which is the default dispplay for strings is UTF8 or UTF16 Jun 11 22:12:29 in the GUI Jun 11 22:12:31 ? Jun 11 22:12:53 and there is a way to change that config on the GUI? Jun 11 22:16:02 codefujase: http://developer.android.com/training/basics/supporting-devices/languages.html Jun 11 22:17:44 <|Agent> Bah. AsyncTask. Why bother to use varargs in doInBackground? You can only return one value, so you can't do a map operation. And for most any other purpose, you'd need different types for the several arguments! Jun 11 22:18:42 <|Agent> I suppose you could do map-reduce. Jun 11 22:19:08 <|Agent> But mostly people want one and only one argument, or else they want several dissimilar arguments. Jun 11 22:19:30 that's an overgeneralization Jun 11 22:19:39 bankai_: I ask, because I see that some characters are displayed incorrectly, so if the user interface is always UTF8 or UTF16 and it is not displaying them correctly, then I assume the server is sending the incorrect encoding for that string Jun 11 22:19:52 http://annevankesteren.nl/2009/09/utf-8-reasons also Jun 11 22:19:58 <|Agent> JakeWharton, have you done map/reduce using AsyncTask? Jun 11 22:20:09 No. I don't use AsyncTask Jun 11 22:21:19 <|Agent> In theory, I'm overgeneralizing, but in practice, I think the statement is accurate. :) Jun 11 22:22:05 it's not. varargs are just an array, you can very easily just return an array from doInBackground Jun 11 22:23:30 Anyone used android studio yet? Jun 11 22:23:36 <|Agent> You could also easily just pass in an array as a single argument w/o the mess of varargs. Jun 11 22:24:04 <|Agent> AsyncTask *assumes* you want to operate an array, and that seems overspecified. Jun 11 22:24:12 I'm trying to include the google play services library so I may use Google Maps but I'm seeing where I can Jun 11 22:24:18 add the google play library Jun 11 22:24:43 write your own AsyncTask then with a more sane API Jun 11 22:29:49 |Agent: Bah. AsyncTask. Why bother to use varargs in doInBackground? << because publishProgress() Jun 11 22:37:43 I have a main activity which spawns a thread and an edittext, ed, the thread has a callbackfunction to main activity which only changes the text in ed. Problem is that ed is always null when called by the callback Jun 11 22:37:47 http://pastebin.com/zmjD0AF1 Jun 11 22:39:38 webserver is the thread, and newMessage is the callback Jun 11 22:41:06 okamis_: because you're calling getCurrentFocus() Jun 11 22:41:27 evanc: naah, it was this.findViewbyid first but that gave me null Jun 11 22:42:10 then I assumed "this" = thread, so I tried using instance variable edittext and refer to it, but that was null too Jun 11 22:44:29 sorry, my mistake the error i get is view.viewrootimplcallfailed Jun 11 22:44:51 fromWrongThreadException Jun 11 23:09:03 then don't call it from the wrong thread Jun 11 23:09:29 get, read, and absorb the book: java concurrency in practice Jun 11 23:13:58 Could someone help me with a java.lang.ClassNotFoundException error? Jun 11 23:14:37 make the class found Jun 11 23:15:08 The IDE does not find any errors, the apk builds, but it tells me it can not find the class when I actually try to use it Jun 11 23:15:27 so your problem is build related then ? Jun 11 23:15:38 I would guess so Jun 11 23:15:44 ryebread761: look at the logcat when the application is installed Jun 11 23:15:57 are there any dalvikvm errors? Jun 11 23:16:05 possibly starting with "VFY:" Jun 11 23:16:29 or if none at install, possibly when the app is started Jun 11 23:16:40 I'll check Jun 11 23:17:21 no :( Jun 11 23:17:25 @JesusFreke yes Jun 11 23:17:53 fBirD == ryebread761? Jun 11 23:18:11 sory my bad Jun 11 23:18:13 forget Jun 11 23:19:30 there are no VFYs, but I do get a dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65) in there Jun 11 23:20:15 here's teh first lien of the error Jun 11 23:20:42 Hi, I got this email from a user but its not very descriptive so I'm having problems coming up with a response - "It's not opening up on my Kindle, it just keep freezing up" ? Jun 11 23:20:46 java.lang.RuntimeException: Unable to instantiate service com.ryebread761.ryebreadsdashclockextensions.UptimeExtension: java.lang.ClassNotFoundException: Didn't find class "com.ryebread761.ryebreadsdashclockextensions.UptimeExtension" on path: /data/app/com.ryebread761.ryebreadsdashclockextensions-2.apk Jun 11 23:20:54 Is there a way to get them to send me an error report? Jun 11 23:21:16 appel1: bugsense, crittercism, have them ship you the device Jun 11 23:21:19 I'm playing with DashClock, and I know there's already an UptimeExtension, but I wanted to play around Jun 11 23:21:23 ryebread761: are you sure it's spelled correctly, etc? Jun 11 23:21:28 Yea Jun 11 23:21:32 maybe try a clean build? :) Jun 11 23:21:48 or baksmali the apk, and see if the class is actually there or not Jun 11 23:25:19 so, in the apk, where do I look for teh class Jun 11 23:25:48 in teh root of it I see teh manifest, res, classes.dex and resources.arsc Jun 11 23:32:21 hmm, seems to be working now taht I did a rebuild Jun 11 23:32:59 it doesn't show anything on dashclock, but it doesn't crash :) Jun 11 23:34:28 I can't take you seriously after you repeatedly spell "the" as "teh" Jun 11 23:34:43 Sorry, I have issues with that. Jun 11 23:35:01 the and that are common misspells for me Jun 11 23:39:25 has anyone here ever programmed for android with adobe air? Jun 11 23:40:32 No, and unless I was trying to port something over from flash, I don't think I would want to Jun 11 23:40:52 That's what I'm trying to do. Jun 12 00:05:48 hi. i want to do unit testing to test some methods that insert and remove rows from sqlite. which context should i pass to the database to avoid it creating rows in the production database? Jun 12 00:33:44 for some reason, I need to use the connection of my computer while Im doing develop from physical device Jun 12 00:34:04 instead of let the physical device use WIFI or the 3G/4G data Jun 12 00:34:12 is there a way? Jun 12 00:35:18 how would you develop over 3G/4G ? Jun 12 00:35:31 or any gprs connection ?? Jun 12 00:36:16 I know of no way to cause an android to use the network connection of a latpop Jun 12 00:36:19 laptop Jun 12 00:39:56 if i have rooting questions should i ask here or android Jun 12 00:41:15 #android-root Jun 12 00:41:20 ty Jun 12 00:44:18 I guess that is, http://www.howtogeek.com/117118/how-to-connect-your-android-to-your-pcs-internet-connection-over-usb/ I ask because when you develop on iOS and you connect the app to your computer, you can see the traffic with wireshark Jun 12 00:44:28 of your app on physical device Jun 12 00:44:38 oh Jun 12 00:44:42 now i get ya Jun 12 00:45:07 you just mean do networking over shared / pc NAT connection rather than wifi or 3g Jun 12 00:45:32 or do you ? Jun 12 00:45:40 yep, some like that Jun 12 01:36:59 "Total time in Android apps nearly equaled that in iOS apps in March of 2012, but it has declined somewhat since then" Jun 12 01:37:08 wonder why Jun 12 01:37:14 Is it possible to set a different listSelector for a single row of a list? (ie. I want it to be highlighted differently to the others). Jun 12 01:37:28 (ie. override the ListView setSelector option for a single row) Jun 12 01:37:38 dragorn: you can use the laptop's wifi to create an ad hoc network to share out a wired connection or a connection on another wifi card Jun 12 01:37:54 from there, you can use the usual traffic analysis software to debug net stuff Jun 12 01:38:23 Writing a custom library is a pain . . . Jesus. Jun 12 01:40:59 ejcweb: yeah Jun 12 01:41:08 there will be a few ways Jun 12 01:41:19 to get the visual appearance of what you want Jun 12 01:41:30 or even to do what you want Jun 12 01:42:23 StingRay_: Just worked it out - I can set the selector as the background of the row in question. Jun 12 01:42:33 that would be 1 Jun 12 01:42:34 :) Jun 12 02:01:57 is it still worth supporting all the way down to 2.2, or is 2.3.3 and > the majority? Jun 12 02:02:47 beastmanrage new or existing app ? Jun 12 02:03:00 My app of around 51K installs had a install base of ~1200 2.3 apps before I murdered support for it Jun 12 02:03:08 2.3 phones* Jun 12 02:03:32 g00s: existing Jun 12 02:03:57 i guess it should be clear from your console. maybe 2.3 , i doubt 2.2 Jun 12 02:06:16 how does it work when i publish the new apk, will the update only appear available to those with 2.3.3 and up? Jun 12 02:06:57 not sure Jun 12 02:07:19 hey guys, using libgdx I would be developing on windows, but if later I decided I wanted to also export for ios, would I be able to? Jun 12 02:07:35 on windows for android* Jun 12 02:12:49 how do i create a hovering map marker like uber does when they ask you to choose a location to be picked up at? Jun 12 02:14:25 dont you even want to try and be different ? Jun 12 02:14:26 :) Jun 12 02:16:37 nah not really Jun 12 02:21:35 I want to be different! Jun 12 02:21:42 just like everyone else! Jun 12 02:21:57 JesusFreke, You're in here, so you're pretty different already Jun 12 02:22:18 well, the unicycle riding and didgeridoo playing probably doesn't help any Jun 12 02:22:47 how would I add the -0 flag during an eclipse build, to disable compression? Jun 12 02:23:22 beastmanrage: disable the compression of what? everything? the resources are already stored uncompressed Jun 12 02:23:41 JesusFreke: yes of everything at this point Jun 12 02:23:54 I have a bunch of files in my assets folder that need to remain uncompressed Jun 12 02:24:42 how about storing them as raw resources, rather than assets? I *think* that should store them uncompressed Jun 12 02:24:48 yea Jun 12 02:24:57 Nope, resources are compressed Jun 12 02:25:05 and I also need to maintain the original folder hierarchy Jun 12 02:25:37 dunno how to make eclipse do that. You can always fix it up manually though Jun 12 02:25:47 or write a little tool to fix it Jun 12 02:25:53 JesusFreke is your nick inspired by the dc talk song ? Jun 12 02:25:54 I don't think you would even have to resign the apk Jun 12 02:25:58 g00s: indeed :) Jun 12 02:26:10 heh, that was a good one Jun 12 02:26:20 yeah, great song Jun 12 02:26:38 that whole album is great, actually Jun 12 02:27:44 beastmanrage: why do they have to be uncompressed, out of curiosity? :) Jun 12 02:29:11 I'm directly copying them over to the externalFilesDir Jun 12 02:29:35 and it is giving me Data exceeds UNCOMPRESS_DATA_MAX on anything <2.3.3 Jun 12 02:29:44 hah Jun 12 02:29:48 hah indeed Jun 12 02:30:00 so its either fix this or pinch off my poor 2.2 users Jun 12 02:30:42 there is a 1mb limit on 2.3 and below i think Jun 12 02:30:49 for compressed Jun 12 02:30:59 g00s: indeed Jun 12 02:43:24 I'm writing an app that stores information from the zxing barcode scanner into a SQLite database. I modeled my code after some example code that has the database handle being closed in the onPause method. After placing breakpoints, it looks like this is called when I open the barcode scanner intent. My problem is that onResume isn't being called when the intent returns control to my application and it's causing an IllegalState Jun 12 02:43:27 handle isn't open Jun 12 02:43:47 Should I not be closing the database onPause and then opening it in onResume? Is there a better way? Jun 12 02:44:42 you should avoid keeping it open to start with Jun 12 02:46:34 why? Jun 12 02:48:09 I'm having difficulty trying to add a margin to rows in a ListView. Adding android:layout_margin="10dp" to the LinearLayout of the row xml layout file seems to achieve nothing. Jun 12 02:48:49 depends on the parent Jun 12 02:50:17 StingRay_: Well I'm using a ListActivity, so I guess the ListView from that is the parent? Jun 12 02:50:51 oh that layout your setting that on is the "root" of you item ? Jun 12 02:51:16 StingRay_: Yup Jun 12 02:51:36 then what the hell are you wanting ? Jun 12 02:51:37 :) Jun 12 02:52:06 there is no parent Jun 12 02:52:11 margin is outwards Jun 12 02:52:17 child > parent Jun 12 02:52:29 it is the root Jun 12 02:52:30 StingRay_: I thought the ListView itself was the parent? Jun 12 02:52:39 thezboe: is this the database handle? I think you can just never close it Jun 12 02:52:48 ejcweb: what are you wanting ? Jun 12 02:52:57 gaps between your items ? Jun 12 02:53:11 you set that in the listView Jun 12 02:53:54 StingRay_: Yes - but I can do that with dividerHeight. I want margins to the left and right of list items too (so that it looks like there is a constant margin around them). Jun 12 02:54:23 you dont control the parent though Jun 12 02:54:27 But some rows need to be the full width - so I can't just set the padding of the ListView itself. Jun 12 02:54:29 the listView does Jun 12 02:54:37 so add another view inside your item Jun 12 02:54:39 and do it that way Jun 12 02:54:51 or use an inward attrib/field like view padding Jun 12 02:55:25 well that sounds like you should be doing this in getView/bindView Jun 12 02:55:30 rather than xml then no? Jun 12 02:58:43 Is there a sample available that shows how one would create a timer that keeps running even when the app isn't active? **** ENDING LOGGING AT Wed Jun 12 02:59:58 2013