**** BEGIN LOGGING AT Mon Aug 05 02:59:58 2013 Aug 05 03:09:34 hi all, anyone know how to make the android search update its results when a background thread is complete? Aug 05 03:11:50 you mean update the adapter ? Aug 05 03:12:25 or update "an" adapter Aug 05 03:12:35 my god it's 4:12am Aug 05 03:13:11 I provided a cursor to the search manager thingy Aug 05 03:13:44 ok, and that cursor supplies an adapter ? Aug 05 03:14:10 which is opaque to me, because its the serach view of the builtin android search manager Aug 05 03:14:21 oh, fk knows then Aug 05 03:14:22 although it looks I can access the search view directly, which may work.. Aug 05 03:14:38 I use my own filter/cursor/adapter Aug 05 03:14:50 and autocomplete textViews etc Aug 05 03:16:36 yeah I may go that route eventually.. Aug 05 03:17:41 I only think I chose that cause A ) I wanted to learn and understand it, and B ) I thought reliance on a pre-built all in one thing was a bit crappy and restrictive if I wanted to change lots later Aug 05 03:35:37 B) is what I feaered Aug 05 03:35:40 *feared Aug 05 03:36:15 This has been killing me forever. I have extended a BaseAdapter. It's an inner class and I keep a reference to a "list" of items (not a collections list). I plug the adapter into a GridView. Everything works wonderfully until I update my adapter to after I've sorted items in the list. I'm using notifyDataSetChanged and it seems to work when the size of the list of items changes. However, it doesn't seem to work when the s Aug 05 03:40:16 *hit hits the fan ? Aug 05 03:40:49 *eemingly perfect code fails ? Aug 05 03:40:54 erm Aug 05 03:41:06 naaa… brain failing now, too tired Aug 05 03:42:54 oh Aug 05 03:42:58 brain kicked in Aug 05 03:43:06 *ize stays the same ????? Aug 05 03:43:50 neways, size should not matter at all, what your saying is, invalidate the data, so the listView calls getView on the adapter for all current views/indexes Aug 05 03:44:19 dcow: ? Aug 05 03:52:17 StingRay_: "anyway" Aug 05 03:52:40 prefer mine Aug 05 03:53:51 what *you're* saying Aug 05 03:54:32 actually, you remind me of that stupid git back in school who thought wearing pants backwards like kriss kross is cool and still does it in his 30's a decade later Aug 05 03:54:36 * pragma- wanders off. Aug 05 03:55:01 your brain failed a long time ago. Aug 05 03:55:02 StingRay_: yeah? Aug 05 03:55:28 pragma-: I notice your contributions to this channel are always very selfish, either for your own gain, or condescending nature.. Aug 05 03:55:40 and I notice that you're a fucking moron. Aug 05 03:55:44 dcow: you didn't finish your question Aug 05 03:55:58 I didn't? Aug 05 03:56:01 pragma-: your way too aggressive too Aug 05 03:56:04 well, i can't see the end anyway Aug 05 03:56:12 I asked if anyone had seen something similar Aug 05 03:56:15 I just hope you don't breed. Aug 05 03:56:17 bwr: I think I finished it Aug 05 03:56:24 for me, it says "However, it doesn't seem to work when the s" Aug 05 03:56:46 pragma-: difference is you dont rank on my give-o-shit-o-meter for me to care what you do ;) Aug 05 03:56:48 bwr: However, it doesn't seem to work when the size does not change *until* I scroll the GridView (with my finger — calling scrollby after I call notifyDataSetChanged doesn't seem to work).  Anyone run into something like this? Aug 05 03:57:00 Was the question. Aug 05 03:57:15 dcow: does getView get called ? Aug 05 03:57:23 when you do notify* Aug 05 03:57:42 After the reference has been updated to point to a new list of items. Aug 05 03:57:48 StingRay_: yes, you're the typical apathetic pathetic nutter who is too stupid to see how idiotic you really are. Aug 05 03:57:57 I've tried calling invalidate on the GridView Aug 05 03:58:09 blah, all day and I still can't figure out how to just get the freaking auth token for a google account Aug 05 03:58:10 dcow: did you try invalidateViews Aug 05 03:58:24 (on the gridView) Aug 05 03:58:26 pragma-: your entitled to your own opinions, and I'm so glad you spend your time sharing in such a constructive way Aug 05 03:58:39 pragma-, StingRay_ I <3 all Aug 05 03:58:56 I do, he just seems a bit angry for little reason Aug 05 03:59:02 bwr, i'll try that — forgot about that one Aug 05 03:59:30 I'm not really sure myself when you need invalidateViews vs notifyDataSetChanged Aug 05 03:59:44 you dont need invalidate Aug 05 03:59:46 on listView items Aug 05 03:59:55 unless for some reason you fked with the view yourself Aug 05 04:00:01 I think Leeds should give cordiality lessons here Aug 05 04:00:30 sorry, adapter driven content Aug 05 04:00:45 Invalidate views doesn't work Aug 05 04:00:50 it wont Aug 05 04:01:01 dcow: you say "new" array ? Aug 05 04:01:09 you mean the updated array right ? Aug 05 04:01:12 not new ? Aug 05 04:01:36 in my adapters i've been doing "new" array. it seems to work okay. is that a problem? Aug 05 04:01:45 well yes Aug 05 04:01:56 notifyDa* says the the data has changed Aug 05 04:02:10 not that you have a total new array Aug 05 04:02:32 Hmm. But I thought that was only for derivatives of BaseAdapter Aug 05 04:02:32 hmm, but i have a custom adapter, only my adapter interacts with the array? Aug 05 04:02:43 as in I am extending base adapter myself Aug 05 04:03:06 Do I have to make a new adapter if I have a new array? I thought that was to be avoided Aug 05 04:03:10 dcow: you know the data (list) that you passed or used when it's called ? Aug 05 04:03:36 brb sorry Aug 05 04:03:55 myArrayForAdapter.clear(); myArrayForAdapter.addAll(getMyNewData()); myAdapter.notifyDatasetChanged(); Aug 05 04:04:28 same arrayList, updated data ^ Aug 05 04:04:38 when you have a custom adapter i don't see how it matters. only code you have written ever accesses the array Aug 05 04:05:18 well if it's an inner class accessing an array on the main class, I'm not sure it does Aug 05 04:05:30 or maybe it does Aug 05 04:05:50 but if it were a seperate class or you passed it in the constructor, then yes Aug 05 04:05:56 it does as far as i know Aug 05 05:08:17 oi oi o Aug 05 05:11:20 hey ron_frown Aug 05 05:11:42 hows business Aug 05 05:12:19 i was letting curiosity get the better of me today. i was reading up on vagrant, docker, tmux, and some other stuff Aug 05 05:12:28 CoreOS, etc Aug 05 05:12:53 ron_frown i'm still trying to wrap my head around CoreOS / Docker. Well, in principle they are pretty simple Aug 05 05:13:05 CoreOS is just the kernel + systemd Aug 05 05:13:11 tmux is the shit :) Aug 05 05:13:15 Docker is just some automation on LXC Aug 05 05:13:18 bankai_ :D Aug 05 05:13:26 ? Aug 05 05:13:29 what are we talking baout Aug 05 05:13:32 ron_frown i think it would be very interesting if this stuff made it into mobile Aug 05 05:13:44 for example, imagine an android phone being like CoreOS Aug 05 05:13:53 just the drivers Aug 05 05:13:59 and then they add the containers for apps Aug 05 05:14:03 what is core os Aug 05 05:14:07 and the containers can migrate to other machines Aug 05 05:14:18 CoreOS is just linux stripped all the way down Aug 05 05:14:24 ooh Aug 05 05:14:24 just the kernel + systemd Aug 05 05:15:07 i think ubuntu phone could easily attempt this Aug 05 05:17:28 StingRay_, bwr: It's literally an array so I can't .clear it. I have full control over the adapter. The question then becomes how can I force a "List"View to repopulate the view cells currently on the screen without doing something like giving it a new adapter. Aug 05 05:17:45 i'm playing with docker in a vbox vm; atm its not 'bare metal' Aug 05 05:18:34 bankai_ so this weekend i was learning tmux; do you think its really worth it if i'm not remoting into other boxes and Terminal.app (mac) has tabs ? Aug 05 05:19:25 for sure Aug 05 05:20:04 * g00s setting up is .tmux.conf :D Aug 05 05:23:01 tmux is pretty much the same as screen, right? Aug 05 05:23:25 ya Aug 05 05:23:33 more maintained Aug 05 05:23:40 screen is kinda a mess Aug 05 05:24:39 it's been working for, oh, decades at this point... Aug 05 05:24:57 either way, it's not like it's something novel :) Aug 05 05:25:20 not sure if anyone is working on screen any more Aug 05 05:25:24 probablu like bugzilla Aug 05 05:26:44 last release was apparently 5 years ago Aug 05 05:27:19 * g00s waves goodbye to screen. we had it on our hpux boxes at my last company Aug 05 05:29:35 come, on UPS, just deliver my N7 already Aug 05 05:29:50 nnnnever Aug 05 05:30:14 sweet, #android is getting racist-joke-bombed Aug 05 05:31:13 lol Aug 05 05:31:34 Leeds: I would have gotten mine friday, but google screwed it up and didn't even process the order Aug 05 05:32:01 Google screw up selling hardware? never! Aug 05 05:32:06 lol Aug 05 05:32:21 so they next-day air shipped it with ups on friday Aug 05 05:32:40 and ups is slow as hell and it won't get here till monday Aug 05 05:32:40 funny thing, mine shipped with UPS on Friday (in my timezone) too Aug 05 05:32:53 and it's going to get delivered on Monday, unless something goes wrong... Aug 05 05:33:01 yep Aug 05 05:33:06 my friend got his on friday Aug 05 05:33:10 bastard Aug 05 05:33:13 except mine is getting shipped from New York to Hong Kong :) Aug 05 05:33:17 lol Aug 05 05:33:26 mine is just going from KY to UT Aug 05 05:33:42 (presumably *back* to Hong Kong, since it probably went either through or past HK on the way from China to the US in the first time) Aug 05 05:33:43 my typically anti-android buddy got his N7 and loves it :| only problem is it has a leaky backlight Aug 05 05:34:08 but unlike when i got my first nexus it's not a big deal, since i'm going from N7 to N7.2 instead of nothing to N7 Aug 05 05:34:45 yeah, first-gen - I had one coming from the UK and one from the US, *both* of which took around a month to arrive... the US one was backordered, the UK one got lost in the mail Aug 05 05:35:24 (why two? it was a logistics thing, and I agreed to sell the spare for cost to a mate here long before either arrived) Aug 05 05:37:38 can't wait for the ASUS Transformer TF800 Aug 05 05:39:16 What's the difference between getToken and getAuthToken Aug 05 05:50:31 seriously, who cares if screen hasn't been maintained, it works Aug 05 05:52:50 nothings a mess about screen Aug 05 05:53:06 i use byobu Aug 05 05:53:57 Mrono: You've found this one, right? http://stackoverflow.com/questions/14365219/in-a-nutshell-whats-the-difference-from-using-oauth2-request-getauthtoken-and-g Aug 05 06:01:03 pfn gnu screen is buggy, dead, poor code, and yeah Aug 05 06:01:07 :) Aug 05 06:01:13 use it if you like it :D Aug 05 06:01:53 the reason why nobody has worked on it for 5 years is probably because nobody can sort it out at this point Aug 05 06:02:16 because it works perfectly well and needs no attention Aug 05 06:02:29 software always needs attention Aug 05 06:02:46 unless it lives on an island with nothing else Aug 05 06:02:52 that's what developers say in order to stay employed Aug 05 06:02:57 for what it does, it works well and is rock solic Aug 05 06:02:57 well, it's working on a bit of stuff that isn't cool enough for the "cool guys" to break Aug 05 06:03:03 er, solid, unlike my typing Aug 05 06:03:05 thanks to that, it hasn't bitrotted much Aug 05 06:03:30 similarly to how old software compiled with Imake didn't bit rot, except for XOrg having screwed up packaging Aug 05 06:04:00 p_l: you mean nobody has tried to rewrite it in C# for mono yet, then rewrite it again for touch devices, then cloudify it, then... Aug 05 06:04:21 Leeds: or fuck up TTY support in glibc to make it work over D-Bus Aug 05 06:04:24 pfn software needs maintenance because the context in which it exists always evolves. people think of new ways of using it, among other things Aug 05 06:04:28 hah, yes Aug 05 06:05:04 my least problematic compile in quite a long time was a program written with Motif and Imake Aug 05 06:05:46 the runner ups are Lisp code from ages ago, which usually works just fine on modern CL Aug 05 06:07:56 kjeldahl: yeah I did shortly after, trying to do the startactivityforresult now Aug 05 06:09:34 wth it's saying that startActivityForResult is undef Aug 05 06:10:02 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709544 ... Example of idiotic bit-rot in user experience thanks to "cool people" Aug 05 06:12:16 Mrono: Considering that's defined in app.Activity, it's definitively defined, startActivityForResult(Intent, int). What's your code? Aug 05 06:14:02 kjeldahl: http://pastebin.com/ZjYQJMaU Aug 05 06:15:33 Compile time error?? Aug 05 06:16:04 I wonder if it's eclipse Aug 05 06:16:08 actually Aug 05 06:16:13 no, i bet it is eclipse Aug 05 06:16:14 http://stackoverflow.com/questions/4985002/the-method-startactivityforresultintent-int-is-undefined-for-the-type-new-ada Aug 05 06:16:33 totally unrelated to android but so awesome I thought I'd share anyway... this is what I found when figuring out why my truck wouldnt shift into 4wd low Aug 05 06:16:35 https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash4/s403x403/999578_10201692841502343_665811409_n.jpg Aug 05 06:16:42 discuss! Aug 05 06:17:34 live 12 gauge shotgun shell apparently got jammed in there buy I'm assuming the previous owner? Aug 05 06:19:43 ……… interesting Aug 05 06:20:02 hshsh Aug 05 06:20:13 scary even though it was unlikely to have gone off Aug 05 06:20:28 and people wonder why I am against too easy access to guns :> Aug 05 06:20:42 I dont own any guns nor do I really want to Aug 05 06:20:52 but I think its bs the govt is trying to get rid of em Aug 05 06:21:02 haha Aug 05 06:21:15 I've got a few 12 gauge shells rolling around on my floor Aug 05 06:21:28 If I was writing serious documentation for something, 99% of it would be working example code Aug 05 06:21:35 That's how I ever learn anything Aug 05 06:21:39 Ologn: i would have your babies Aug 05 06:21:49 in the simplest possible examples Aug 05 06:21:52 that's my biggest problem with android documentation Aug 05 06:21:53 javadoc != sufficient =) Aug 05 06:21:57 no damn examples Aug 05 06:22:07 most of it is out there tho Aug 05 06:22:18 What I really hate is when people put like half example code like "..." function blah "..." Don't put "..." just show me working code. Aug 05 06:22:19 ron_frown: I am for control (and double the control when it comes to guns in hands of law enforcement). Because a) people are too stupid to handle guns b) apparently easy access leads to lack of respects towards handling (which ties with a)) Aug 05 06:22:53 ron_frown: i've spent 48 hours trying to figure out how to just get an auth token for a google account Aug 05 06:23:09 google accounts api will do that Aug 05 06:23:20 and I am pretty sure thats any oauth provider Aug 05 06:23:39 p_l - I think we protect people way too much Aug 05 06:23:45 I finally got the eclipse-like control-shift-o auto-import working with emacs Aug 05 06:23:52 ron_frown: you say that but nothing really works lol Aug 05 06:23:54 we need to let them remove themselves from the gene pool Aug 05 06:24:02 i'm likely just retarded Aug 05 06:24:03 ron_frown: If the result was that the idiots shot themselves, it would be fine Aug 05 06:24:04 I've used accounts api before and it worked just ifne Aug 05 06:24:23 p_l - when guns are banned, criminals still have unrestricted access to guns Aug 05 06:24:33 and guns we could never legally get in the US Aug 05 06:24:46 yes Aug 05 06:24:53 javadoc is fine for apps, small frameworks but yeah, documenting an OS with it … blah ! Aug 05 06:24:58 in anycase I didnt mean to start a war Aug 05 06:25:08 that's my biggest thing about gun 'control' Aug 05 06:25:10 ron_frown: a) never said anything about banning b) main source of guns for small time criminals is robbing gun owners c) less reason to have a gun Aug 05 06:25:13 and if you do it well, you wind up with 20k line java files Aug 05 06:25:33 it just makes it harder for regular people to get a gun, and the bad guys who are going to get a gun are going to get one reardless Aug 05 06:25:43 haha, we're talking about guns Aug 05 06:25:44 I agree in more control, but the govt is just finding more and more shit to controll us with Aug 05 06:25:52 to the point where they hinder innovation etc Aug 05 06:26:03 guys, its not going to matter whether we have guns in the US. the police walk around with AR15s these days Aug 05 06:26:09 land of the free, home of the brave... bs bs Aug 05 06:26:10 its your culture that's the problem Aug 05 06:26:14 true Aug 05 06:26:16 ron_frown: unrestricted access to guns seems to me more like "bread and circus" of roman times Aug 05 06:26:23 other countries have the same amount of guns/population and don't have hte same sorts of problems Aug 05 06:26:24 the militarization of the police has been going on for decades; they are nuts Aug 05 06:26:28 well i dont think it should be unrestricted Aug 05 06:26:40 ooh, ooh, can we do religion next? Aug 05 06:26:44 hahaha Aug 05 06:26:44 .au has restrictions on guns, but nobody buys them anyway Aug 05 06:26:45 done Aug 05 06:26:46 yes please Aug 05 06:26:47 I'm done =) Aug 05 06:26:57 wabs that wouldnt work here =) Aug 05 06:27:09 ron_frown: did you see the daily show stuff on the .au laws? Aug 05 06:27:11 i've got me some guns now Aug 05 06:27:16 leeds nah Aug 05 06:27:22 fuck man, in the US people don't care about anything except beer and football Aug 05 06:27:23 worth watching... Aug 05 06:27:37 i'd say that ima make some pipe 12 gauges but i don't want to get on some watch list Aug 05 06:27:40 g00s: and abortions, don't forget abortions Aug 05 06:27:41 g00s: and being able to buy a worthless gun they don't know how to use to pose on FB ;) Aug 05 06:27:54 Mrono afaik you can build machine guns yourself and own em Aug 05 06:28:03 companies just cant build one and sell it to YOU Aug 05 06:28:12 they'll just shoot these guys through te walls with infrared tracking uavs Aug 05 06:28:20 watching Leeds Aug 05 06:28:30 ron_frown: it's actually quite easy to make SMGs Aug 05 06:28:41 I think its really sad when people go blast school kids or whatever Aug 05 06:28:46 ron_frown good thing your truck wasn't shot with dragon's breath ! Aug 05 06:29:01 but thats more a problem with the dude not the fact he had access to guns, I'm sure it would have been something lse Aug 05 06:29:02 statement of the week award goes to ron_frown! Aug 05 06:29:23 followed immediately by mis-statement of the week, for the double! Aug 05 06:29:38 now about GNU screen .... Aug 05 06:29:41 ok Aug 05 06:29:47 ron_frown: except that guns are amplifiers of how much damage they can in time it takes to take them out Aug 05 06:29:53 can anybody point me to any GNU code which isn't total barf ? Aug 05 06:29:56 there is nothing except firearms and explosives which can cause the sort of casualties which are common in the US Aug 05 06:29:58 :D Aug 05 06:30:02 yeah but I could build other tihngs that cause a lot more damage Aug 05 06:30:11 and by I, I dont mean I =) Aug 05 06:30:15 people Aug 05 06:30:33 I need some help with getting the auth token for an apps account, a working example Aug 05 06:30:35 and unlike hardened criminals, a nut like that usually can't get guns the illegal way, and making stuff himself is :effort: ;) Aug 05 06:30:48 they will just be printing guns Aug 05 06:31:02 g00s: easy stuff to do actually Aug 05 06:31:18 g00s that so far doenst have a great track record =) Aug 05 06:31:46 once you print 3d with metal, it will be fine Aug 05 06:31:56 they can already do that Aug 05 06:32:07 well yeah, but its expensive Aug 05 06:32:15 and they were talking about banning 3d printers because now everyone with a 3d printer is going to do nothing but make guns with them Aug 05 06:32:18 that nozze nasa tested last week was metal Aug 05 06:32:20 I mean where the fuck do you draw the line Aug 05 06:32:29 and it's still nothing like the quality/performance of a properly-machined gun Aug 05 06:32:42 yeah, rifling is hard Aug 05 06:32:54 it'll work if you want to blow your ex's head off - but you're not going to take down a crowd with one - yet Aug 05 06:33:10 cali basically neutered the shit out of diesels because environmentalists dont like the appearance or smell of the smoke... nevermind its like 1000 cleaner than a catalized gasoline engine Aug 05 06:33:22 i think android-dev is making all the PRISM blinkenlights go off tonight Aug 05 06:33:39 and electric cars manufacturing is probably more shit in the environment than lifetime of a diesel vehicle Aug 05 06:33:42 ron_frown: I think the printers are gonna detect if they're printing a gun Aug 05 06:33:44 and refuse Aug 05 06:33:49 wabz how Aug 05 06:33:59 waving hands? Aug 05 06:34:10 like they already detect if you're trying to scan/copy currency Aug 05 06:34:16 yeah thats real fucking easy Aug 05 06:34:25 its a picture of a dollar bill? ok let it go forward Aug 05 06:34:30 a gun coul dhave a million diff designs Aug 05 06:34:44 "According to a press release by Danish company Create It REAL, the company’s new software will “prevent 3D printing of guns” by recognizing not designs for specific guns, but instead specific components that would be used in the construction of the firearms. Aug 05 06:34:45 oh god this thing has a tube thats about 6inch long roughly the diameter of a bullet Aug 05 06:34:46 GUN. Aug 05 06:34:48 Read more: http://www.digitaltrends.com/cool-tech/now-you-dont-have-to-worry-about-accidentally-printing-a-gun-again/#ixzz2b4eEntvA Aug 05 06:34:57 holy crap these copy/paste things are annoying Aug 05 06:34:58 ron_frown: yeah, pretty much Aug 05 06:35:24 omg this library compile is pissing me off Aug 05 06:35:33 it doesnt realize something is missing in the configure statement Aug 05 06:35:41 which lib ? Aug 05 06:35:44 but then breaks midway thorugh the compile because something is missing Aug 05 06:35:45 mesa Aug 05 06:35:46 when tubes with spiral grooves are outlawed, only outlaws will have tubes with spiral grooves Aug 05 06:36:00 omg, i haven't compiled mesa in like 10 years Aug 05 06:36:05 cutting sprial grooves in a tube is real fucking easy on even a small lathe =) Aug 05 06:36:14 just saying Aug 05 06:36:20 like I said I neither own nor want a gun Aug 05 06:37:23 * Leeds waves to the chaps from Cheltenham Aug 05 06:37:31 ? Aug 05 06:37:52 g00s: btw, printing guns is most stupid use of 3d printer I had ever seen. *Especially* if what you want to do is make a gun ;) Aug 05 06:37:58 being the British equivalent of the lads from Langley Aug 05 06:38:19 or whereever the NSA actually is Aug 05 06:39:08 Leeds: you can probably find it in ICBM address book Aug 05 06:39:42 * ron_frown slaps mesa's ass Aug 05 06:39:51 thats what I'm talking about hyou little bitch Aug 05 06:39:58 oh my ! Aug 05 06:39:58 * ron_frown likes to talk dirty to his computer Aug 05 06:40:15 this evening has been pretty crazy here Aug 05 06:40:23 woooooo Aug 05 06:40:26 i finally got a token Aug 05 06:40:28 lol Aug 05 06:40:30 evening? it's lunchtime! Aug 05 06:41:05 and I'm still waiting for UPS... Aug 05 06:41:13 g00s: meh. I am currently wondering just how crazy I seem to a certain friend of mine, when my reaction to a certain eldritch abomination that made his "scary meter" go outside the scale was "She is so CUTE!" Aug 05 06:41:17 ^_- Aug 05 06:42:15 btw, 3d printing with metal... you have heard of this thing called "CNC machine" ? ;> Aug 05 06:42:34 p_l: pfft, those'll be outlawed next week Aug 05 06:42:40 i loved messing around with out cnc, lathe, and milling machines Aug 05 06:43:25 wish i had easy access to a shop Aug 05 06:43:54 my father in law is a master fab, gets to play with all those fun things Aug 05 06:44:01 builds all kinds of fun stuff for me Aug 05 06:44:02 anyway, you can turn a bicycle workshop into military SMG production line. 3d printing gives sub-par results :) Aug 05 06:44:03 auto parts Aug 05 06:44:03 etc Aug 05 06:44:12 speaking of that Aug 05 06:44:19 I saw a mountainbike on craigslist for 3500 bucks Aug 05 06:44:23 W.T.F. Aug 05 06:44:30 I can get a MOTORCYCLE for that much cash Aug 05 06:45:02 during warsaw uprising, quite a lot of Sten guns were made locally Aug 05 06:45:14 p_l: precisely what I was thinking... Aug 05 06:45:37 wtf is a sten gun Aug 05 06:45:53 ron_frown: a WW2 military SMG of british make Aug 05 06:45:55 the sten was used in ww2 Aug 05 06:45:56 :) Aug 05 06:46:02 ahh Aug 05 06:46:11 ron_frown: comparable to modern stuff, actually, except for PDWs Aug 05 06:46:14 well thats like ak47s and sks' Aug 05 06:46:17 everyone made em Aug 05 06:46:34 but PDWs are a bit of a different class Aug 05 06:47:03 ron_frown: because they work. And because logistics are a bitch Aug 05 06:47:06 ron_frown my MTB frame cost me around $1800, so i can see the whole bike being $2500 easily. a good front for like like $600 Aug 05 06:47:19 meh Aug 05 06:47:22 *front fork Aug 05 06:47:32 to each his own Aug 05 06:47:33 then , the fucking wheels Aug 05 06:47:39 sounds like these companies are gouging and people are willing to pay Aug 05 06:47:56 * p_l still has most of his ~$150 mountain bike Aug 05 06:48:12 though my siblings treated it harshly last few years Aug 05 06:48:15 in AZ, mother nature punishes inferior MTBs Aug 05 06:48:41 just saying I can honestly get a dirt bike new for like 4k, 5k Aug 05 06:48:49 like gas dirtbike Aug 05 06:48:57 and theres a hell of a lot more engineering and design in thos Aug 05 06:50:26 i'd like an electric dirtbike some day maybe Aug 05 06:50:40 they just announced one Aug 05 06:50:46 dont like bringing noise and pollution into nature Aug 05 06:50:58 electric * right now is still kind of a joke Aug 05 06:51:06 battery tech needs a pretty big jump Aug 05 06:51:17 I cant wait for that jump to happen Aug 05 06:51:31 until then, use a mountain bike :D Aug 05 06:51:49 I'kk just use neither Aug 05 06:51:57 I dont like the bicyclist mentality Aug 05 06:51:58 at least in cali Aug 05 06:52:31 i had the most fun of my life on a mtb. went with friends all over the place every weekend; it was reliving my lost childhood. the longest i rode in 1 day was a century (100 miles) Aug 05 06:52:35 this pretty much sums it up... "...I ride a bike which means I can ignore all traffic laws, and still have the rightaway... and ride like that" Aug 05 06:53:08 I rde a motorcycle, and have certain benefits, but one thing always in the bcak of my head... riding amongst cars, means riding defensively Aug 05 06:53:11 not like an asshat Aug 05 06:53:30 I cycle to work every day, and yell at other cyclists who do the worng thing Aug 05 06:53:37 "red light buddy!" Aug 05 06:53:40 wabz thank you for that Aug 05 06:53:44 but most cyclists here are pretty good Aug 05 06:53:49 not here =) Aug 05 06:53:54 good infrastructure helps Aug 05 06:55:25 http://app.strava.com/activities/72248759 :p Aug 05 07:14:04 well I completed my setup Aug 05 07:14:20 I have a 12 disk server at work on a 100M connection Aug 05 07:14:26 and I have 100/100 fiber to my home Aug 05 07:14:53 I moved all my tv shows and movies to it and can stream 1080p to anything in my home Aug 05 07:15:45 12 disks for movies? Aug 05 07:15:53 only 100/100? Aug 05 07:16:37 12 disks does seem excessively exessive Aug 05 07:16:52 why, more storage Aug 05 07:17:46 and yes only 100 because the damn border routers aren't gigabit capable Aug 05 07:18:05 either they're smaller older disks, which means lower performance and higher power cost, or they're newer disks and you have a ridiculous amount of content which, presumably, is all legally bought Aug 05 07:18:39 Leeds: 500gb disks Aug 05 07:19:42 btw guys if you ever mix soda and orange juice Aug 05 07:19:52 don't use OJ with any pulp Aug 05 07:20:05 the carbination binds to the pulp and it all goes to the surface Aug 05 07:36:38 http://goo.gl/qyCZqu Aug 05 07:44:02 hey guys, is it possible to have some functioning code inside preferencesActivity? Aug 05 07:45:04 like if i add an option (in preferences xml) to logout the user, can i add a code to the preferences activity class itself to like remove the sharedpreferences? Aug 05 07:46:28 yes. you can use findPreference in either a PreferenceFragment or PreferenceActivity to get a reference to the preference declared in xml, and then set an onclick or onchange listener to run arbitrary code Aug 05 07:50:24 kevinb: great. thanks dude. any change you might know a sample code for a refrence? Aug 05 07:52:06 i can't think of a good one offhand. it's possible that some of the apps in the Android Open Source Project would make a good example, but the obvious one, Settings, is actually more complex than most PreferenceActivitys Aug 05 07:53:28 kevinb: do you think there is a reference for it in sdk doc? Aug 05 07:53:51 Preference.OnPreferenceClickListener and PreferenceActivity.findPreference will both be in the SDK doc Aug 05 07:54:11 great. i'll look 'em up Aug 05 07:55:57 hi guys. i am having an android question. maybe you can help. i am having my GUI thread as usual and calling an async task to do some web stuff. according to the result, i am trying to modify the gui in OnPostExecute method as desired by android. everything works as expected. But: Aug 05 07:56:16 when i am updating more than three switchbuttons on the screen via swbutton.setChecked(status); the app hangs for some seconds Aug 05 08:13:01 kjeldahl: I figured out why it wasn't working Aug 05 08:13:11 the class was just a void, it wasn't extending Activity Aug 05 08:18:27 Hi There, I was trying to build an app which uses new DrawerLayout. Aug 05 08:18:40 I used Android Studio 0.2.3 Aug 05 08:19:00 But it throws ClassNotFoundException for DrawerLayout Aug 05 08:21:07 Not sure what I am missing. I have to the latest support Library installed and tried a "gradlew clean" Aug 05 08:26:24 it sounds like Android Studio is aware of the android support library, for things like autocompletion and not showing the functions in red, but gradle is not which is causing the failure Aug 05 08:26:43 you need it added to your build.gradle in dependencies Aug 05 08:27:42 kevinb: Yea, android studio is aware of the library; not showing any errors compiles and deploys successfully Aug 05 08:28:16 I have gone through the docs for new support library Aug 05 08:28:45 This is added in my build.gradle file dependencies automatically Aug 05 08:28:46 compile 'com.android.support:support-v4:13.0.+' Aug 05 08:28:59 hrm not sure then Aug 05 08:30:02 tried changing the line to "compile files ('libs/android-support-v4.jar')" Aug 05 08:30:06 yet no hope Aug 05 08:33:15 What's the difference between IntelliJ IDEA with Android support and Android Studio? Aug 05 08:34:11 anoop: oh in android studio, Project Structure > Modules > YourApp > Dependencies make sure the library is listed there, if not press the + button and add it Aug 05 08:34:38 kevinb: it's already there Aug 05 08:34:50 checked and rechecked many times Aug 05 08:36:36 BullShark-Nexus: If you are talking about IDEA13 EAP, there is not much changes; in android studio you get SDK preconfigured with the bundle Aug 05 08:39:46 anoop: so is it similar to adt-eclipse-bundle and eclipse, just that you need to add components like ADT and android SDK yourself and then you have the same thing? Aug 05 08:41:11 BullShark-Nexus: Android Studio have the gradle based build system. Aug 05 08:41:44 I went with the latter because of a bug that adding egit plugin to adt-bundle broke eclipse and also the bundled eclipse was outdated Aug 05 08:42:27 You can't create old Ant based build conf (like eclipse) in Android Studio, but old IDEA projects works fine in AS without issues Aug 05 08:43:51 after an app is updated what happens to the process and stuff like alarms and broadcast receivers? are they all wiped? Aug 05 08:44:35 anoop: intellij idea has long had support for android dev before studio ever came along. what does it use instead of gradle and cannot this cradle support be added to it? Aug 05 08:45:39 IDEA was using Ant/Maven build before just like eclipse-ADT Aug 05 08:48:11 hey guys, does anyone know if there's a way to setup an automatic notification email if there are any Crash Reports from customers from the Google Developer Console? Aug 05 08:56:14 anoop: my second question was cannot gradle support be added to it? maybe through a plugin or some other method? Aug 05 09:03:54 http://pastebin.com/cUeHDTry Can someone tell me why I get a null pointer exception when calling selectAccount() Aug 05 09:05:31 Mrono: you don't get a stack trace? Aug 05 09:07:28 credential == null? Aug 05 09:09:00 BullShark-Nexus: Not sure about IDEA12 whether they have added gradle support or not. Since IDEA 13 and Andorid studio share the same code base, Gradle support is definitely there. Aug 05 09:09:26 capella: presumably, but a stacktrace would make it clear Aug 05 09:09:59 Ah ... trying to teach concepts :P Aug 05 09:10:42 so there wouldn't really be any difference other than adding the Android SDK? I already have it Aug 05 09:11:10 anoop: Aug 05 09:11:18 I do but I suck at android still Aug 05 09:12:14 BullShark-Nexus: Not much, I think Aug 05 09:16:11 Hi, somebody even had the same situation that the actionNext on a editText isn't working? Aug 05 09:17:48 yeah the stack trace says that credential = null Aug 05 09:18:03 which is what I figured but couldn't figure out why that was happenning Aug 05 09:19:15 * capella cant see where you assign it in your pasted code Aug 05 09:19:59 capella: line 28 Aug 05 09:20:06 capella: I was just about to... Aug 05 09:20:27 Mrono: no, that's where you *declare* it - you never create a creditials object Aug 05 09:20:36 ----^ Aug 05 09:20:46 hmm Aug 05 09:20:58 basic Java FAIL alert Aug 05 09:22:55 :p Aug 05 09:25:49 okay question, how do you guys throw a popup to select an account Aug 05 09:26:58 one thing i've noticed is that there's a dozen different ways to do things, but only one of them fits best practices Aug 05 09:27:42 Mrono: Google Play Services, AccountPicker.newChooseAccountIntent, check out the examples that comes with it. Aug 05 09:28:58 Somebody gisted it already, https://gist.github.com/zimdo/4018924 Aug 05 09:36:58 <\0x90\> i'm making an app that will (should, would be nice) have auto-update feature. which means.. it's not asking user anything. it just updates itself without user even knowing. Aug 05 09:37:07 <\0x90\> the app will not be installed through google play Aug 05 09:37:19 <\0x90\> is this possible on android ? Aug 05 09:38:23 I think yes Aug 05 09:39:03 <\0x90\> i heard it's not.. although i still haven't do any research since i'm doing something else with it now, but just got curious. Aug 05 09:43:50 Finally! I have it to where I can select an account, ask for permission to get their auth token, and then get the token Aug 05 09:43:53 Based on this (http://stackoverflow.com/questions/5803999/install-apps-silently-with-granted-install-packages-permission), I think it can not be done without rooting. But I really have no idea. Aug 05 09:49:33 Can anyone help me with my Android Studio's Project Wizard not creating activities? Aug 05 09:57:27 UPS, 'Next-day Air' != 'Ground' Aug 05 09:57:51 get shit to it's destination on time for once Aug 05 10:03:11 I've got a couple of ScrollViews in my app, and when I scroll to the bottom it always misses a few rows of pixels for the embedded view so it appears cut off. Any idea why that is so? Aug 05 10:03:33 * monsti want andro boobs Aug 05 10:04:09 kjeldahl: do you have scrollviews in scrollviews? or scrollviews in listviews? Aug 05 10:05:32 monsti: RelativeLayout inside ScrollView. Aug 05 10:05:54 monsti: Only regular widgets inside the RelativeLayout. Aug 05 10:06:27 Can anyone help me with my Android Studio's Project Wizard not creating activities? And how do I create a new Activity? Aug 05 10:07:40 zyngawow: I doubt there are many devs here using the project wizards. Sounds like you need to read up on some tutorials. Alternatively, be more specific about what your problem is, and use google! Aug 05 10:08:56 kjeldahl: Already did that. And I doubt developers here create all projects manually, adding all android jars, gradle etc. Aug 05 10:09:06 kjeldahl: let me check my code - i think i had a similar issue Aug 05 10:09:37 So yeah.. My problem is Android Studio offers the option to create a blank Activity for me, but then doesnt do it Aug 05 10:10:24 kjeldahl: i have the scrollview match_parent/match_parent/fillViewport = true Aug 05 10:11:15 the fillViewport=true did the trick Aug 05 10:11:31 monsti: ScrollView has fill_parent, RelativeLayout has fill_parent. I'm experimenting with changing RelativeLayout to wrap_content etc. Thanks for the fillViewport thing; will try that as well. Aug 05 10:12:35 the layouts inside the scrollview are wrap_content Aug 05 10:15:23 kjeldahl: By the way, I should be getting a New -> Android Module option. I don't http://puu.sh/3UdNd.jpg Aug 05 10:16:09 zyngawow: File->New Module is here on 0.2.3... Aug 05 10:16:40 kjeldahl: sure. No option for an Android Activity though Aug 05 10:16:41 http://puu.sh/3UdPS.jpg Aug 05 10:17:52 hi, i am trying to set some switch bottons from asynch task method onpostexecute. as soon as there are three switch bottons to change with methid setchecked, the app hangs. is this a common thing? Aug 05 10:19:49 hey, anyone knows how to setup email notifications alerts when I receive New crash reports? Aug 05 10:22:47 zyngawow: You're sure the New Module screenshot you posted does not create an Android module? Aug 05 10:23:17 kjeldahl: completely Aug 05 10:23:26 It justs creates the project, no Activity in it Aug 05 10:23:53 Obviously I select the Blank Activity thing, so that it creates it for me Aug 05 10:24:27 I'm not even sure if activites and modules can/should be mixed in a project, but that may very well be my ignorance. Aug 05 10:25:35 But I'm not an IDE kind of guy. Aug 05 10:26:09 (Emacs with gradle...) Aug 05 10:26:20 I find that a bit suicidal Aug 05 10:26:48 I guess I'll have to go with eclipse thenm Aug 05 10:27:01 Only if you love pain. Aug 05 10:31:53 fillViewport supposedly has no effect if the child is larger than the viewport/screen. Doesn't solve anything either in my case. Aug 05 10:34:31 I had a layout_margin in my RelativeLayout which seems to be the cause of the cutoff. Changing it to zero and there is no cutoff any longer. Other ways to get that space if needed I guess. Aug 05 10:37:01 Yes, should use padding instead. Aug 05 10:39:36 hi guys. i am having an android question. maybe you can help. i am having my GUI thread as usual and calling an async task to do some web stuff. according to the result, i am trying to modify the gui in OnPostExecute method as desired by android. everything works as expected. But: Aug 05 10:39:40 when i am updating more than three switchbuttons on the screen via swbutton.setChecked(status); the app hangs for some seconds Aug 05 10:41:08 I find all the eclipse hate a bit odd... but then again, I'm probably fully retarded too. Aug 05 10:41:24 hmm.. one question.. why all sliding menus work fine on 4.1 android and on 4.2.2 work slow as fuck.. SimonVT yours too.. on 4.1 opens and closes very nicely, and on 4.2 and 4.3 it just sucks! on Nexus 4 and on Xperia Z Aug 05 10:42:08 and on Nexus 7 too Aug 05 10:42:16 so i guess on others too Aug 05 10:42:23 any suggestions Aug 05 10:44:25 I sometimes ran into funny behaviour with hardware acceleration turned on. could that be a thing? Aug 05 10:45:57 Works fine here Aug 05 10:49:54 can anybody help me in openCv in android Aug 05 10:50:23 StingRay_ do you have any experience in openCV ? Aug 05 10:50:23 Android> Aug 05 10:50:58 i need to capture user Face from a video and then edit the eyes and mouth Aug 05 10:51:37 rest delete everything and then paste that frame in a image of a Door , so that it looks like a door is talking Aug 05 10:51:54 can anybody guide me how can i acheive that ? or any refrence tutorial to that ? Aug 05 10:52:56 just call the drawCroppedFaceOnDoor() Aug 05 10:54:10 Xabster ??? Aug 05 10:54:33 how to crop the eyes and video from the whole video ? Aug 05 10:56:11 Doesn't cropEyesAndVideo() work correctly? Aug 05 10:59:35 SimonVT: hmm i used minSDKversion 8 Aug 05 10:59:46 and when i changed minSDK version to 17 for example Aug 05 10:59:56 it started working nicely Aug 05 11:00:00 that was only change Aug 05 11:00:10 and that fixed it.. do you have any idea why? Aug 05 11:00:25 I'd imagine you don't have targetsdk set Aug 05 11:01:03 yes i don't i just started working Aug 05 11:01:14 but i cant imagine why it is such a change in performance Aug 05 11:01:17 Then you don't have hw accel on ics+ Aug 05 11:01:22 I use hardware layers Aug 05 11:01:26 ohh! ok Aug 05 11:01:28 iwill anyone help me ? rather joking around Aug 05 11:01:29 i see Aug 05 11:01:41 thanks for that answer Aug 05 11:01:51 it really helped me understand Aug 05 11:01:57 I'd imagine most libraries use hardware layers at this point Aug 05 11:02:55 good to know :) Aug 05 11:03:19 i have that other sliding menu.. from that jeremy now, but returning back to yours Aug 05 11:03:22 opencv: Here's a good place to start; http://lmgtfy.com/?q=opencv+eye+detection Honestly, you need at least minimally a course in image processing and basic skills to do what you're asking. Alternatively, ask about specific problems, not generic ones like you are now. Aug 05 11:03:27 easier to use :) Aug 05 11:13:03 I'm having problems with the MediaController, on my nexus devices, the play button does not work. It works on the galaxy s3 though. Anyone experienced similar problems? Aug 05 11:18:13 kjeldahl: did that fillViewport thing do the job? Aug 05 11:18:50 monsti: No, fillViewport is something else (fills viewport/screen if content is less than the screen). The solution was to get rid of margins from the layout inside scrollview and use padding instead. Aug 05 11:19:11 But thank you for the suggestion. Aug 05 11:27:20 kjeldahl I have made a project in OpenCV it detects the eyes and i also want to get the mouth of the user , how can i do that ? Aug 05 11:28:34 opencv: Same techniques as you used for the eyes would be a great starting point. Feature extraction, shape recognition... Aug 05 11:29:02 ok thanks a lot Aug 05 11:29:15 opencv: Color is a great feature for mouth. Aug 05 11:29:38 Color ? Aug 05 11:29:48 opencv: Assuming you do not care about people with black lipstick... Aug 05 11:30:01 :) sure i do :D Aug 05 11:30:54 opencv: If you esimate head orientation as part of finding the eyes, you also know approximately where to look. Aug 05 11:31:39 opencv: Use eigenvectors or similar to normalize global orientation (i.e. avoid not recognizing people standing on their heads). Aug 05 11:32:55 ok great help :) Aug 05 11:33:02 gl! Aug 05 11:57:11 I'm trying to compile a library using IntelliJ, it compiles the .jar but no sources or javadoc jar, although there are targets in the pom.xml Aug 05 11:57:21 Anyone know how to compile the javadoc too? Aug 05 11:58:30 Anyone familiar with Twitter4j? I'm not sure how to get from a RequestToken to an AccessToken Aug 05 12:09:14 I'm using the picasso library for download/caching my images. But now i have a url with a redirection --> image not loaded anymore, does somebody know a solution for this? Aug 05 12:12:34 Hi All Aug 05 12:13:41 I'm experimenting with animations from an xml file and finding that the anim runs fine except that at the end of the anim my ImageView returns to its original place Aug 05 12:13:49 any ideas why? Aug 05 12:15:45 look into fillAfter property Aug 05 12:17:19 I'd be much obliged if anyone had any advice for me on this one: http://stackoverflow.com/questions/18048813/twitter4j-no-authentication-challenges-found-oauth-token-and-verifier-dont-seem Aug 05 12:20:07 karlo I set android:fillAfter="true" and its still returning to its place, I have an animation set of rotate and translate does that make a difference? Aug 05 12:26:08 is there are image downloader library that handels redirections? Currently i have an asynctask that gets the right url but is this a good solution? Aug 05 12:33:48 hey guys. anyone familar with calendar contract ? Aug 05 12:33:59 i want to use this code: Aug 05 12:34:00 https://github.com/dschuermann/android-calendar-compatibility Aug 05 12:34:16 but what is meant as "use as wrapper" ? Aug 05 13:13:18 which image downloader library with caching support url redirections? Aug 05 13:14:36 Look at Picasso. Aug 05 13:14:37 https://github.com/square/picasso Aug 05 13:15:00 I'm not sure if it supports redirections but it does do an incredible lot Aug 05 13:20:39 is there a built in way to get the position of a view BEFORE it changes? Aug 05 13:26:45 FrancescoV: picasso ought to Aug 05 13:26:48 picasso is pretty great Aug 05 13:27:00 lut4rp: i'm using it now, but it's not working with a redirection url ... :( Aug 05 13:27:01 alexfu: elaborate please Aug 05 13:27:24 FrancescoV: you can specify a client you wish to use on it, and specify a okhttp client that does redirection Aug 05 13:27:31 everything else stays the same, IIRC Aug 05 13:27:38 look at Picasso.Builder Aug 05 13:27:40 Aha, I didn't think of that. Aug 05 13:27:42 Nice one. Aug 05 13:28:16 lut4rp: most of square's libs allow you to inject thingies like that :) .. very handy for debugging Aug 05 13:28:55 funkbox: how can i specify the okhttp client ? Aug 05 13:29:05 funkbox, never mind, i got it Aug 05 13:29:39 FrancescoV: http://square.github.io/picasso/javadoc/com/squareup/picasso/Picasso.Builder.html Aug 05 13:30:24 Just add OkHttp as a dependency and it should use it Aug 05 13:30:34 FrancescoV: make sure to look at the source of picasso and it should be pretty clear what you need to do Aug 05 13:30:40 shouldn't me more than 5-10 lines of code Aug 05 13:31:31 If I wanted to animate a View shifting positions due to an adjacent view changing size, when should the animation be done? before onLayout? after? Aug 05 13:32:11 animate them together Aug 05 13:32:40 alexfu: look up AnimationSet. otherwise your animations will look choppy and weird and your users will rate the app 1 star. Aug 05 13:40:49 SimonVT: how can i do that (add OkHttp as a dependency)? Aug 05 13:44:05 funkbox: can't find it, currently i'm using Picasso.with(context).load(url)... Aug 05 13:46:37 It's a jar, so just put it in libs Aug 05 13:46:43 Or pull it from maven central Aug 05 13:47:14 the jar is already in my libs folder Aug 05 13:52:50 Are there any tricks to getting fastboot to recognize my device when running under OS X? Aug 05 13:53:43 StanAccy: on linux, I had to run it as root. Aug 05 13:54:06 Pitel_IPEX: Thanks - I already tried that. Aug 05 13:54:32 When booted normally, I can see the device via adb, but when I put it in to fastboot mode, the SDK fastboot command just wont see it Aug 05 13:59:44 anything else to check/try? Aug 05 14:00:40 StanAccy: google says you might need to specify the vendor id of the device using the -i option with fastboot on mac Aug 05 14:04:47 FrancescoV: you can't do it that way, look at teh soruce Aug 05 14:05:06 also, re depedency, what build are you using? Aug 05 14:18:02 funkbox: 1.1.1 or do you mean build target? Aug 05 14:18:51 no like what build system Aug 05 14:23:58 what? Aug 05 14:30:14 is android studio ready for daily use or should i stick with eclipse? Aug 05 14:34:54 heya! I'm trying to work out if I can use Tasker to automate a bunch of apps syncing (e.g. com.guardian, bbc.mobile.news.uk, com.freerange360.mpp.indy, com.conker.laters.pro) and if so, how Aug 05 14:35:00 I've got as far as aapt dump xmltree Guardian_2.5.4.apk AndroidManifest.xml but now I'm trying to work out how to work out how to use that info in conjunction with am broadcast Aug 05 14:35:08 anyone done this before, or got any guidance? Aug 05 14:38:22 funkbox, I could use AnimationSet, but from what it seems like, AnimationSet is used to animate a single view with more than 1 animation. Aug 05 14:39:06 you can have your own animations and have them share an interpolator Aug 05 14:39:12 and you can specify which view you wish to animate Aug 05 14:39:38 animationset needs a view to which to attach to so that it can run the animations on that view's animation loop or whatever it's called Aug 05 14:40:12 funkbox, but animating two separate views with two separate animations is not a suitable use case for AnimationSet from what I've seen Aug 05 14:45:04 you can also create a new class extending Animation that does the animating Aug 05 15:08:53 I have a textview that contains a long string maxlines = 2. but the text is longer than 2 lines. Can i make something like "abc.... \nxyz" ? Aug 05 15:11:39 Does anyone know how to simulate a phone call to a emulator? Or even better a test device? Aug 05 15:13:05 yes and ring it Aug 05 15:13:08 :) Aug 05 15:14:04 personally I just use the emulator control pannel, sure you can do it using adb also Aug 05 15:16:29 hi i'm trying to make an app with a gui and service, where both the gui and other apps can bind to the service Aug 05 15:16:42 any suggestion what the best strategy is here? Aug 05 15:17:28 what's the best way to switch out two different buttons? for instance, a stop button or a play button. I'm tempted to use fragments that only contain a button, but I feel like that's a silly way to do it. Aug 05 15:18:08 starvrack: read lots Aug 05 15:18:11 :) Aug 05 15:18:36 mmathis: I woul baybe just change the icon Aug 05 15:18:46 or use a toggleButton Aug 05 15:19:00 cause thats really what a single button play/pause is Aug 05 15:19:16 StingRay_: i got it so far that i can bind to it from GUI and other apps, but when i set a permission on the service, the GUI can't bind to it anymore Aug 05 15:19:30 downloads for my app have increased 2 fold overnight, how can I figure out the reason for this Aug 05 15:19:36 well, it's not actually a play/pause, I was just using that as an example to say that the buttons will stay in the same place Aug 05 15:19:44 since the "uses permission" will come before the definition of the permission Aug 05 15:19:48 I'll probably just make two buttons and swap them out though Aug 05 15:20:05 the app is nearly 1 year old and no change has been implemented in the past 2 months Aug 05 15:20:20 I realized right after I asked the question that it really was a silly question to ask... I'm getting into fragments so I see a fragment as a solution to everything atm lol Aug 05 15:20:38 Sicp: whats the market link ? Aug 05 15:21:18 link to its listing on the market? here https://play.google.com/store/apps/details?id=com.cura&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5jdXJhIl0. Aug 05 15:22:18 any major announcements about it ? or related to what it does that may prompt people to have a look ? Aug 05 15:23:22 I usually Google for that to see if any major blogs have mentioned it lately, I haven't done that this time Aug 05 15:23:31 <_genuser_> hello folks. I'm trying to arrange two items in a linear layout (horizontally) - textbox and a button. Button is on the right with wrap_content, textbox should take up available space. What properties should I look at to make this happen? Any pointers would be appreciated. Aug 05 15:23:35 I suspected a Play Store Featured, but I really doubt it Aug 05 15:24:10 _genuser_: layout weigth Aug 05 15:24:19 ugh weight Aug 05 15:24:24 <_genuser_> StingRay_: thanks. :) Aug 05 15:24:29 i need coffee Aug 05 15:25:06 anyone try genymotion ? https://news.ycombinator.com/item?id=6159551 Aug 05 15:25:40 but damn it , where is the api 18 x86 image Aug 05 15:25:45 intel sucks Aug 05 15:26:09 I use Bluestacks Aug 05 15:26:49 i installed that on mac, and it was very unstable. the uninstall was terrible and left bits everywhere Aug 05 15:27:01 *running bits* Aug 05 15:27:33 StingRay_ good thing you didn't use google drive :D https://news.ycombinator.com/item?id=6158946 Aug 05 15:28:00 i fking do though Aug 05 15:31:26 g00s: all I want is a proper android api with docs Aug 05 15:31:35 <_genuser_> StingRay_: perfect that worked. thanks again. Aug 05 15:31:45 _genuser_: np Aug 05 15:32:33 anyone know the vendor ID for Samsung USB drivers on Mac OS X (or how to find it) Aug 05 15:32:57 StanAccy: you mean when they have been installed ? Aug 05 15:33:20 StingRay_: Im assuming they are installed since I can use adb without a problem Aug 05 15:33:34 Ive found a list that states 04e8 but Ive found several other IDs for Samnsung Aug 05 15:33:40 adb should not be bound to any samsung driver on osx Aug 05 15:33:46 windows maybe Aug 05 15:33:51 not osx or linux Aug 05 15:34:02 Im trying to get fastboot to recognize my device when in fastboot mode Aug 05 15:34:18 oh that is different :) Aug 05 15:34:24 someone on ehre and various other websites suggest that I have to add -i deviceId to the fastboot command line Aug 05 15:34:31 you mean your in a bootloader mode Aug 05 15:34:41 yes, when in bootloader mode Aug 05 15:34:43 wrong channel for this really Aug 05 15:34:54 this is app development Aug 05 15:35:12 try #android-root #xda-devs Aug 05 15:35:20 Thanks Aug 05 15:47:30 Is there a way to tell if a phone call happens while I am in a certain activity? Aug 05 15:48:05 Yes Aug 05 15:49:38 You can extend PhoneStateListener, pieces029 Aug 05 15:50:01 marrrk_: Thanks! Aug 05 15:50:32 Might need some permissions and put shit in the manifest. Aug 05 15:50:42 Maybe Eclipse will tell you automatically. Aug 05 15:50:53 Intellij doesn't. Aug 05 15:53:07 can someone tell me how I can get Google Analytics support lib to work with Android Studio? I've added it to my project structure and that doesn show any errors except when compiling gradle shows cannot resolve symbol easytracker Aug 05 15:53:46 hmm. I finally look up android studio. Apparently some closed-source development toolsuite for android, official. Aug 05 15:58:24 O.o Aug 05 15:58:53 Hi! Aug 05 15:58:55 Q: I'm learning Java and Android and I've been curious about how to design android apps using UML ? While there's lot's of resources for UML, I wonder how Activities and Intents should be represented. A basic example, such as the HelloWorld App on Android Docs would be appreciated! Thank you! Aug 05 15:59:17 you are wasting your time Aug 05 16:00:01 uml is useless Aug 05 16:00:13 for most android stuff anyway Aug 05 16:00:29 like all tools, its has its place - but for designing .,, and for android . ugh Aug 05 16:00:59 Tks for looking guys! Could you guys give an example if you don't mind ? Aug 05 16:02:01 UML isn't very useful for android, unless you're talking about modelling some data that you're storing or you have a very complex app Aug 05 16:02:23 jamuraa, indeed Aug 05 16:03:43 I believe it could be useful to me, to sketch some ideas, while not being able to code it myself. Don't get me wrong, I respect your guys opinion, but I would really like to see a helloWorld class diagram for example, with activity and intent represented. that would be nice Aug 05 16:04:05 shwaiil i used UML for 10 years, it not useful for this Aug 05 16:04:13 you can use use cases Aug 05 16:04:34 you can use sequence diagrams for your model, or for inter-app / service communication Aug 05 16:04:52 you can use statecharts if your app has crazy state Aug 05 16:05:09 g00s: Use cases are nice :) Ok about the seq diag. What about class diagrams ? Aug 05 16:05:33 its bundles and contexts all the way down Aug 05 16:06:11 ok Aug 05 16:06:29 the only useful drawing tools i find are for UI prototyping Aug 05 16:06:40 now i just use paper, but would like something better Aug 05 16:06:55 did you found something useful ? Aug 05 16:06:56 your information architecture. yeah, you can use whatever you want for your data model as always Aug 05 16:07:16 shwaiil there are a few like omnigraffle android templates, etc Aug 05 16:07:49 Nice :) Aug 05 16:09:01 a lot of the complexity of an android app is the android framework, its components, complex lifecycle. its hard to model in uml Aug 05 16:09:16 and its not even terribly OO anyhow Aug 05 16:10:04 you definitely aren't going to code gen anything Aug 05 16:10:30 g00s: it's not even terribly "OO" Object Oriented ? Aug 05 16:10:49 can buttons only have one OnClickListener at a time? Aug 05 16:11:01 @mmathis yes Aug 05 16:11:10 Wasn't really meant to generate any code, just to sketch and solve some initial problems and... you know start coding with my mind already warmed up Aug 05 16:11:27 you could extend button and make it have multiple. but by default only one on click listener Aug 05 16:11:48 so, if you call setOnClickListener on a button that alreayd has a listener it will be replaced? Aug 05 16:11:52 shwaiil well, try it and let us know how it works out Aug 05 16:11:59 @mmathis yes Aug 05 16:12:25 sweet ty jaynewstrom that's actually the functionality I was hoping for Aug 05 16:12:33 good deal! Aug 05 16:13:01 I have one my app users reporting what I believe to be an AsyncTask through an exception - although this should only happen if my web service is down, which it is NOT. How can I figure out what exception is actually being thrown into this Async Task? Right now it gets logged on the user's device but that does me no good.... Aug 05 16:13:28 AsyncTask throws the exception, he sees 'Unknown error' toast, and I have no idea what exception is being thrown out there. Aug 05 16:13:48 Could I get his logcat pretty easily? Aug 05 16:14:35 g00s: I'm learning so, I think about what people say and obviously try to come up with my own opinions. For the moment, I'm quiet satisfied with using the Use Case diagram to get all the requirements. Then, looks fun to work with the UI and how things should flow - I'll try to find a tool for this and thanks for the omnigraffle tip. Aug 05 16:15:38 shwaiil also, i hope you realize use cases are 99% text and maybe 1% diagram. did you read alistair cockburns' book? Aug 05 16:16:13 * Bleeptech wonders 'How in the hell do I get an int from a spinner/integer-array??' Aug 05 16:16:13 g00s: I think I didn't, if I did was a long time ago. I'll do a refresh any way Aug 05 16:16:31 *usually skipped the text part and just sketch the diagram honestly Aug 05 16:16:46 shwaiil then you didn't understand use cases Aug 05 16:16:53 sorry to say that Aug 05 16:16:56 g00s: that's alright Aug 05 16:17:01 thanks Aug 05 16:17:34 g00s: You know how spinners work? Aug 05 16:18:14 Ideally, all I want is to communicate my ideas, in the most clear way. So, I can go deeper in my understanding of any of this points we've been talking about. Why I'm very interested in a very humble way. Aug 05 16:18:39 shwaiil: are you planning to do the programming yourself? Usually you don't need a tool to communicate to yourself Aug 05 16:19:31 alankila: yes, by myself. I work as a web dev, I don't really have much time once I get home. So, I try to orgazine my ideas some how. So, I can get back at any time. Aug 05 16:19:41 Hmm. I see. Aug 05 16:20:18 At the moment I'm just learning, so this is all questions. That's how ppl learn. Aug 05 16:21:06 shwaiil but i think you are making the issue more complicated; android and java itself is enough to learn Aug 05 16:21:09 just the APIs Aug 05 16:21:22 then mixing UML, which , frankly doesn't add much in this case Aug 05 16:21:40 I'm still digesting Activities and the role of Intend Aug 05 16:22:41 i used UML as a sketch to communicate to coworkers Aug 05 16:22:54 http://www.martinfowler.com/bliki/UmlAsSketch.html Aug 05 16:23:02 do any of you guys use google analytics for app tracking? Aug 05 16:23:24 Tks g00s Aug 05 16:32:25 I got a customer getting something in his logcat on his Jelly Bean device. How can I look at the exception?!? Aug 05 16:33:31 achuinard: let your app run logcat and upload the data to your server Aug 05 16:34:26 downloaded Android Studio yesterday and created a new project with a blank activity. It downloaded the necesary files (gradle), bit then inside the src/main folder there was only the resources folder with the application's icon. Why could this happen? Aug 05 16:35:56 It sounds like better than what you get when you use adt to make a new project... it filled it with so much crap that I had to delete files for half an hour Aug 05 16:36:01 Ge0rG: So now i have to release an update, make an API on my server, and write some custom code to fire off the async task in another asynctask's onexception. NO other option? Aug 05 16:36:11 . o O ( I need to check that program out sometime ) Aug 05 16:36:21 achuinard: you can let the app crash hard, and tell the user to report the crash via play store Aug 05 16:36:31 achuinard: or ask him to root the device and install catlog Aug 05 16:36:40 or Aug 05 16:36:41 can't you also report the crash using google analytics ? Aug 05 16:37:21 Ge0rG: I was thinking of sending custom build where it does crash hard. How long does it take for crash to show up in Play Store? But now i have to send this guy a signed APK, he could send it to all his buddies for all I know Aug 05 16:39:03 achuinard you could try crashlytics (sp) Aug 05 17:00:25 StingRay_, Hi, isn't the difference between extending a CursorAdapter and a BaseAdapter depends upon whether I'm using cursors or a list of objects? Aug 05 17:01:10 cursorAdapter extends baseAdapter Aug 05 17:01:35 extending BaseAdapter just allows you to have as much control as you need Aug 05 17:08:14 pfn: i didnt look at your source to try and find out why its not working on HTC, but i ended up writing my own... doesnt work as good yet, but does work on htc and allows use of patterns. https://github.com/birbeck/wifikeyguard Aug 05 17:09:41 the problem im having with it is that while it does unlock when connected to the networks, it locks again sometimes when pressing Home Aug 05 17:10:35 Hola Aug 05 17:10:56 if i plan to animate a View being added to a ViewGroup, what's the best way to animate the change in size of the ViewGroup such that adjacent ViewGroups will not simply "jump" to their new location? Aug 05 17:11:00 birbeck, best aproach, if you want to use the keyguardmanager is to start the service as foreground Aug 05 17:11:08 birbeck, because otherwise the OS will kill it randomly Aug 05 17:11:25 pfn: yeah, but its start_sticky, so it should be restarted Aug 05 17:11:40 birbeck, if you wait a few seconds, it'll get restarted, but in the meantime, the lockscreen will show up Aug 05 17:12:08 what i think is happening is my unlock is expiring... i dont want a constant notification and i dont want to hack around that as diane hackborne just blogged about Aug 05 17:12:32 birbeck, as far as I understand, the unlock doesn't expire, but the service does get evicted from memory Aug 05 17:12:38 whats the dilly Aug 05 17:13:03 yo mikedg Aug 05 17:14:02 pfn, if i go to manage apps, i can see the service is running Aug 05 17:14:47 birbeck, yeah, I noticed a bit of weirdness around it, too Aug 05 17:15:33 birbeck, but if you log the starts/stops and check ps, it isn't actually running Aug 05 17:16:39 downloaded Android Studio yesterday and created a new project with a blank activity. It downloaded the necesary files (gradle), bit then inside the src/main folder there was only the resources folder with the application's icon. Why could this happen? Aug 05 17:17:01 maybe i just need a stupid hack like using alarm manager or other broadcasts Aug 05 17:17:16 birbeck, yeah, I use other broadcasts to make sure the service stays running Aug 05 17:17:25 starting in the foreground would probably work, but i dont want to abuse the system Aug 05 17:17:37 birbeck, I don't really think of that as abuse Aug 05 17:19:36 Are the sources for older API's not available? I want to download API 8's source through the SDK Manager but it's not there Aug 05 17:20:03 dunno about through the sdk manager; but it's forever available in aosp Aug 05 17:20:53 They didn't start bundling sources until ICS, so not, it's not available through the sdk manager Aug 05 17:20:57 What pfn said Aug 05 17:21:17 pfn: https://plus.google.com/105051985738280261832/posts/MTinJWdNL8t Aug 05 17:21:40 birbeck, I mean actually posting the foreground running notification Aug 05 17:22:00 birbeck, rather than using the hack to hide the notification Aug 05 17:22:25 yeah, i just dont want a persistent notification :)... i could at least try it and see if it solves the issue Aug 05 17:23:03 pfn: SimonVT Ok thanks, I'll go grab it from there Aug 05 17:23:12 birbeck, so you just wanted to nuke the keyguard altogether... hmm Aug 05 17:23:26 birbeck, that was an option I was wanting to add (without actually changing the lock state) Aug 05 17:26:43 Hi, I'm trying to build my first scala+android app, but I don't really understand how to set up my intellij project setup, could anybody help me? Aug 05 17:27:27 sbt + https://github.com/pfn/android-sdk-plugin Aug 05 17:27:46 use https://github.com/mpeltonen/sbt-idea 1.5.1 Aug 05 17:27:50 sbt gen-idea Aug 05 17:27:52 and be happy/done Aug 05 17:28:52 pfn: the other app i wrote this weekend (https://github.com/birbeck/dashclock-ownerinfo). its just a dashclock extension to show owner info... started it at 9p last night after some margaritas so its not very far along Aug 05 17:29:04 birbeck, that sounds useful Aug 05 17:29:12 does the owner info line go away if you use dashclock? I hadn't noticed Aug 05 17:29:14 dashclock by birbeck Aug 05 17:29:15 I'll have to make use of that Aug 05 17:30:19 pfn> I've installed gen-idea + android-sdk-plugin, but I think I have an error on my project setup, could you help plz ? Aug 05 17:30:28 How can I make an image square with Java? (For example, I have a 200x300 image, I would need to make it 300x300 and fill the new pixels with white (no resizing). Only found stuff on resizing Aug 05 17:30:52 pfn: no, it doesnt disable the standard owner info. i just think dashclock looks better, and it formats it better than the scrolling text Aug 05 17:30:52 scalaPudding, be specific Aug 05 17:31:13 ah Aug 05 17:31:51 but it doesnt work well on phones since you have to expand it to see info Aug 05 17:32:16 pfn: when I build my project, I get a BuildConfig is already defined in a BuildConfig.java generated file in /gen Aug 05 17:32:33 build yoru project? Aug 05 17:32:34 build with sbt Aug 05 17:32:37 use the sbt intellij plugin Aug 05 17:33:06 downloaded Android Studio yesterday and created a new project with a blank activity. It downloaded the necesary files (gradle), bit then inside the src/main folder there was only the resources folder with the application's icon. Why could this happen? Aug 05 17:34:31 pfn: my $ANDROID_HOME is not found by intellij :( Aug 05 17:34:46 pfn: yet it's defined in my .bashrc Aug 05 17:34:57 how are you starting intellij? what OS? osx? Aug 05 17:35:07 launchctl setenv ANDROID_HOME ... Aug 05 17:35:10 pfn: ubuntu Aug 05 17:35:19 log back in Aug 05 17:35:27 if you're launching intellij from the dashboard Aug 05 17:35:50 pfn: I'll give it a try, be right back Aug 05 17:37:28 Has anyone had issues with "Error: 9-path image blah.png malformed. No marked region found along edge. Found along left edge"? I am trying to switch a project over to build with gradle and I have gotten this message for a couple *.9.png files so far. I fixed one so far by just adding a line along the left side like it seems to be asking with the draw9patch tool, but it is not working for another 9 patch I have Aug 05 17:38:46 a 9-patch will not compile without marked regions on the top and left Aug 05 17:39:10 ive copied 9-patches from the android source and had the same issue Aug 05 17:39:17 what's *really* annoying about that error is that eclipse builds will ignore them Aug 05 17:39:31 but if you try to build from ant/gradle/whatever, you'll get your ass kicked by them Aug 05 17:40:44 Okay so it seems like I was just creating the marked region wrong :P control clicking (like I was told) on Mac makes Red blocks, but they need to be black (which I can do by right clicking). I don't know what the red blocks signify but changing them to black fixed it Aug 05 17:42:20 I don't know how my project was building before then if they have to have marked regions on the top and the left. Aug 05 17:43:49 i think eclipse treats invalid 9 patch images as just normal pngs and stretches them nastily to fit Aug 05 17:44:33 the red is a new thing introduced with 4.3, which is for effective white space for getting things to align visually even when they have some white space or shadow or glow or whatever Aug 05 17:58:12 scalaPudding check out mpeltenons sbt plugin. use the to generate an intellij project structure, then you're good Aug 05 18:03:27 fpn: work better Aug 05 18:21:13 when I have an imagebutton in a listview the list row is not reposding to click event anymore. however if i use Button instead of ImageButton both clicks register fin Aug 05 18:21:36 fine* Aug 05 18:23:18 hi im trying to display html contents in a textview however im struggling to get the asynctask working . Aug 05 18:23:42 what does that have to do with asynctask Aug 05 18:23:54 http://pastebin.com/DJ91nDmh Aug 05 18:24:18 the app keeps crashing and i cant trace the issue Aug 05 18:24:43 android:descendantFocusability="blocksDescendants" on the root element of the listviewrow.xml worked for me Aug 05 18:25:07 ive made another project and allowed networking on the ui thread and it works Aug 05 18:25:52 You can trace the issue by looking at the stacktrace Aug 05 18:26:50 m3uk network on ui thread makes android a sad panda Aug 05 18:27:16 SimonVT: What major differences exist between your sliding menu implementation and jfeinstein's? Aug 05 18:27:41 Mine doesn't suck Aug 05 18:27:46 thats why im trying to stick it into an async task Aug 05 18:28:18 are there any obvious things sticking out in the source code? Aug 05 18:28:35 LOL Aug 05 18:28:38 classic SimonVT Aug 05 18:28:56 I don't know really, I'm sure there's not much difference now Aug 05 18:29:01 m3uk, what does logcat say? Aug 05 18:29:08 When I made mine, his was a horribly inefficient hacked version of ViewPager Aug 05 18:29:28 SimonVT: Basically my manager wants me to make a drawer that behaves exactly as Google says not to make it behave Aug 05 18:29:47 so I'll probably have to use a custom implementation unless I can convince them that listening to google is probablyt not the worst idea Aug 05 18:30:00 any suggestions on how to create an animating "my location" marker on a MapFragment? Aug 05 18:30:16 Yeah, cus it was totally Google who came up with the pattern and made it popular Aug 05 18:30:39 alexfu: frame animation ? Aug 05 18:30:51 It is google's ecosystem though Aug 05 18:31:08 I'd imagine the only reason it overlays the content is that facebook put it behind the content Aug 05 18:31:11 Can't risk anything Aug 05 18:31:34 first time I saw sliding drawers were in Dolphin Browser a couple years ago Aug 05 18:32:28 StingRay_, I need a smooth animation that draws a circle around "my location" and gradually grows in size and fades out at the same time Aug 05 18:32:44 don't think frame animation would be suitable Aug 05 18:32:55 alexfu: ValueAnimation maybe? Aug 05 18:34:48 Will it build, that is the question Aug 05 18:35:06 ok so logcat says theres an uncaught exception. Aug 05 18:35:47 m3uk, you missed the @Override from onPostExecute(), not sure if that would cause it though Aug 05 18:36:39 does it still crash when you comment out new event().execute(IPurl); ? Aug 05 18:37:37 Sounds like a waste of time to try and debug it without looking at the stack trace Aug 05 18:37:50 was gonna say Aug 05 18:38:01 pastebin the exception m3uk Aug 05 18:38:07 stacktrace* Aug 05 18:39:52 http://i.imgur.com/5cnjf4r.jpg?1 Aug 05 18:40:17 cool dog Aug 05 18:40:24 hes doing the zoolander pose Aug 05 18:40:33 08-05 19:38:54.092: E/AndroidRuntime(11472): FATAL EXCEPTION: main Aug 05 18:41:30 unable to instantiate component Aug 05 18:42:16 m3uk, Aug 05 18:42:43 hmm Aug 05 18:43:30 String page is defined inside doInbkg(), its out of the scope of onPostExec() Aug 05 18:43:38 oh no Aug 05 18:43:44 you return that to onPost, my mistake Aug 05 18:44:19 i thought i return it indobkg Aug 05 18:44:21 myb change that to pageParam :p , but its not going to fix your problem :/ Aug 05 18:44:35 then use postexec to set the view Aug 05 18:44:44 ye its correct Aug 05 18:44:52 http://pastebin.com/3sTENx2q Aug 05 18:46:29 NPE, someview isnt being instantiated properly, i think Aug 05 18:46:39 maybe theres a problem in your xml Aug 05 18:46:59 Hi guys, how can I choose where to add a contact? I'm able to save a contact to the device but I would like to instead save it to my Google account instead Aug 05 18:47:58 Could also just be what he's doing at line 23 in his code (which translates to line 5 in the pastebin), as the stack trace says Aug 05 18:52:06 so i commented out the .execute line. it doesnt even get to draw the views on screen Aug 05 18:52:54 LOAD "*",8,1 Aug 05 18:52:55 RUN Aug 05 18:53:01 sry wrong OS Aug 05 18:54:51 anyone have any idea why a 9patch background might stretch on a friend's s3 but not my s3 Aug 05 18:56:38 well because of the OS version Aug 05 18:57:56 .. are 9patch graphics used differently in 4.2 vs 4.0? Aug 05 18:58:00 what the actual fuck? Aug 05 18:59:19 birbeck: Do you have a source that says a 9-patch won't compile without top and left edges? I believe you I just can't find it anywhere Aug 05 18:59:59 is the only way to add a custom "my location" icon is through a marker? Aug 05 19:00:03 seems like on 4.0 a non-stretch region that doesn't fit will just go off the screen; on 4.2 itll squeeze the non-stretch region to fit no the screen Aug 05 19:00:05 yiati: no i dont... just going off of what draw9patch shows as invalid regions and what maven complains about when i build Aug 05 19:01:13 russfrank: it wouldn't Aug 05 19:01:30 Don't make the 9patch larger than where it's going to be drawn Aug 05 19:01:37 Shrinking 9patches aren't really supported Aug 05 19:02:42 scalaPudding, of course, it should be working pretty seamlessly now Aug 05 19:13:04 maven is old goatstuff Aug 05 19:13:16 use Girdle Aug 05 19:16:41 Gardle plz Aug 05 19:16:44 lol Aug 05 19:16:48 we n eed /r/gardle Aug 05 19:16:51 for bitching about gradle Aug 05 19:17:28 I've got a stupid question.. WTH is a Hashmap and how do I access it? Aug 05 19:17:49 Bleeptech: do you know what a hash table is? Aug 05 19:17:53 Bleeptech: A HashMap is a data structure Aug 05 19:17:57 It's used to map values to keys Aug 05 19:18:05 And it uses a hash function to map them Aug 05 19:18:21 see http://en.wikipedia.org/wiki/Hash_table about the data structure in general Aug 05 19:18:38 and http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html for java's HashMap in particular Aug 05 19:19:03 So every single one of my 9 patches has the necessary top and left margins defined, UNTIL I do "gradle build" and then it complains about no marked region found along left edge, and sure enough a good portion of my 9 patches lost their left edge. Something in the build process seems to be taking off the left edges Aug 05 19:19:16 Well ... I have 'public HashMap getUserDetails(){' and I want to access the values it returns .. Aug 05 19:19:43 Bleeptech: then look at the api for HashMap Aug 05 19:20:17 If you don't know how to do that, well, there's no better time to learn :) Aug 05 19:20:56 JesusFreke: I don't care how it works right now, I just need to know WTH to call it when I call it.. LOL.. Aug 05 19:21:09 Bleeptech: "then look at the api for HashMap" Aug 05 19:21:34 You smoke a Hashmap and sit at a Hashtable bro Aug 05 19:21:36 the api is all about how to interact with it, not how it is implemented Aug 05 19:21:57 Hi guys, how can I choose where to add a contact? I'm able to save a contact to the device but I would like to instead save it to my Google account instead Aug 05 19:22:23 SimonVT: I'm going to take a stab at using your library, and get mad at you when I fuck it up Aug 05 19:22:29 Prepare yourself Aug 05 19:22:43 StingRay_, I am still confused about how I could use a baseAdapter to show the following data (ID=1, DATA=A), (ID=1, DATA=B), (ID=2, DATA=B) grouped by ID, i.e Row 1: ID = 1, Data = A/B and Row 2: ID = 2, Data = B, there can be any number of rows for each ID Aug 05 19:23:09 there can be any number of rows in the cursor for each ID* Aug 05 19:23:24 sulaiman: then you should look at adapter implementations Aug 05 19:23:25 JesusFreke: OK.. Thanks.. Reading now.. Not sure I'll know WTH to do with it after i've read it, but I'll give it a shot.. Aug 05 19:23:33 sulaiman: Aug 05 19:23:42 CocoStorm: Save then sync? Aug 05 19:23:54 Bleeptech: look at the methods that are available on the object, and see if any do what you want. Aug 05 19:23:55 Bleeptech, apparently that doesn't work on samsung devices :S Aug 05 19:23:55 sulaiman: cause all it is, is getItem(), getView(), getCount() Aug 05 19:24:06 StingRay_, almost all examples just associate one value to one view Aug 05 19:24:10 that are all taken from data that you control, such as a cursor Aug 05 19:24:36 no, a cursor will return a "row" of data Aug 05 19:24:44 Anyone have any idea why Gradle would be destroying the left marked region on my 9 patches? Aug 05 19:24:58 just like getItem(), getVIew() returns a row for a listView etc Aug 05 19:25:15 it's all in the docs, and you sould be able to use common sense to put it together Aug 05 19:26:12 Is there a list of media player error codes and their definition somewhere?... http://www.netmite.com/android/mydroid/external/opencore/pvmi/pvmf/include/pvmf_return_codes.h gives the definition of the extra code Aug 05 19:26:18 i need the definition of the "what" code Aug 05 19:26:31 currently getting (351, -4) Aug 05 19:26:42 extra says the request is not supported, which is pretty cague Aug 05 19:26:46 cague* Aug 05 19:26:47 vague* Aug 05 19:30:30 * Bleeptech is still not getting this.. Aug 05 19:32:48 Bleeptech: not getting what a HashMap is ? Aug 05 19:34:41 SimonVT: Why you no include XML example for slidinglayout in the readme Aug 05 19:34:41 D: Aug 05 19:36:39 StingRay_: Not getting how to call/invoke/summon_from_hell it from another part of the code.. LOL Aug 05 19:37:13 Bleeptech: you mean the variable is outside the access of what you want ? Aug 05 19:37:17 pass it in ? Aug 05 19:37:38 Brian|CS: what xml would there be ? Aug 05 19:37:55 "Can be used in XML layouts." Aug 05 19:38:05 yeah, anything Aug 05 19:38:09 just pass it to it Aug 05 19:38:11 done Aug 05 19:38:18 im just dicking around honestly lol Aug 05 19:38:32 gonna say, you want an example of a linear layout ? Aug 05 19:38:33 I think there's a sample Aug 05 19:38:36 going a bit far Aug 05 19:38:43 StingRay_: I have my activity and a dbhandler class.. I'm trying to figure out how to access my db from my activity. Aug 05 19:41:56 Bleeptech: thats design really Aug 05 19:42:09 not sure what the question is Aug 05 19:42:15 I'm even looking at the codeblock in the dbhandler I want.. It's just that it starts off as ' public HashMap getUserDetails(){ ' and I can't figure out how to deal with it.. Aug 05 19:42:37 deal with what ? Aug 05 19:42:48 * StingRay_ is lost Aug 05 19:42:58 Welcome to the club.. Aug 05 19:43:14 well you keep pasting a method that returns a map Aug 05 19:43:20 but with no question Aug 05 19:43:39 so it's not easy to know what you want Aug 05 19:43:46 user details are a bunch of keys and values Aug 05 19:43:50 like name might be a key Aug 05 19:44:02 and the value could be Muffins McTittybaker Aug 05 19:45:34 Bleeptech: is it you dont know what a Map / is ? Aug 05 19:45:40 Here's the database handler http://pastebin.com/UyiPC6gD Aug 05 19:46:17 Bleeptech: still seem to be missing the question ;) Aug 05 19:46:20 StingRay_: An arrary of some sort? Aug 05 19:46:25 array Aug 05 19:46:56 well it's a array Aug 05 19:47:06 is that what the problem is ? Aug 05 19:47:19 line 106 is what I'm trying to access from outside. Aug 05 19:47:31 if you want us to do your homework, itll cost you Aug 05 19:47:39 I downloaded Android Studio yesterday and created a new project with a blank activity. It downloaded the necesary files (gradle), but then inside the src/main folder there was only the resources folder with the application's icon. Why could this happen? Aug 05 19:48:03 SimonVT: You're from Denmark? Aug 05 19:48:09 Bleeptech: is this homework ? Aug 05 19:48:16 zyngawow: Not a clue.. I've had no trouble.. Aug 05 19:48:34 zyngawow: cause Android Studio is still very extremely early Aug 05 19:48:50 mikedg: That is still not suposed to happen Aug 05 19:49:30 StingRay_: Nope not homework.. Unless you consider me a permanent student.. Aug 05 19:49:54 well it a bit odd you saying you want to access a line in a method of an external class Aug 05 19:50:17 then what you're wanting to access is data that is actually returned by that method neways Aug 05 19:50:24 so I'm very confused Aug 05 19:50:30 God I hate Gradle Aug 05 19:50:33 Gardle plz stop Aug 05 19:50:43 use the sbt Aug 05 19:50:44 :p Aug 05 19:50:48 unless you really skipped over java 101 stuff, or I'm on drugs Aug 05 19:50:56 something aint right Aug 05 19:50:58 :) Aug 05 19:51:38 StingRay_: Well, I am still learning this.. And if you drink the water in any major city you Are on drugs.. LOL.. Aug 05 19:52:54 * Bleeptech is on a well in a rural area and has to drive to town for a glass of anti-depressants and birth-control.. Aug 05 19:53:16 damnit, my phone rebooted, again Aug 05 19:53:17 grrr Aug 05 19:53:23 * pfn wonders how long before the tether drops Aug 05 19:53:41 Bleeptech: I think you should do some learning basic java stuff Aug 05 19:54:01 it would really help, and speed up the questions and future learning Aug 05 19:56:28 StingRay_: Do I have to? I've still got bits of Pascal, Lisp, Fortran and C rattling around in my brain confusing me as well.. LOL.. Aug 05 19:57:11 Brian|CS: yep Aug 05 19:57:12 well I know 1st hand that not knowing java basics while attempting to implement something in android is to say the least, backwards Aug 05 19:57:43 Every time I start in on the java docs I get lost.. I've been doing OK with javadoc though.. Aug 05 19:57:45 and in an overall time sense, it would be quicker to learn java 101, then android Aug 05 19:58:12 You really do need to know Java to do Android dev... Aug 05 19:58:19 getting lost is not a cause to stop Aug 05 19:58:30 it's something you need to fix, not bypass Aug 05 19:58:36 as it the way of learning Aug 05 19:58:39 :) Aug 05 19:58:46 ne needs to know what hashmap is, he already knows what a method is surely Aug 05 19:58:46 sorted it Aug 05 19:58:53 m3uk, what was it? xml? Aug 05 19:59:18 nope where i declared the textview was causing a null pointer Aug 05 19:59:29 brx_: Maps are well within the category of "Java basics" Aug 05 19:59:37 so i broke it down Aug 05 19:59:46 hell, they're well within the category of "programming basics" Aug 05 19:59:47 Textview t; Aug 05 20:00:15 you was doing in in oncreate m3uk Aug 05 20:00:27 no i wasnt Aug 05 20:00:31 I wonder how anybody claiming to know more than one programming language could have managed to never heard of a hashmap. I guess algorithms and datastructures gave way to "Dummies guide to ..." ;-) Aug 05 20:00:36 brx_: Yeah, I'm up to the point of having re-written/de-bugged a set of functions to implement ASyncTask .... Aug 05 20:00:46 m3uk, duh! Aug 05 20:00:47 textview t; is outside of oncreate Aug 05 20:00:50 ye Aug 05 20:00:55 now in oncreate Aug 05 20:00:55 oh dear:) Aug 05 20:00:59 i have Aug 05 20:01:05 t = new TextView(this); Aug 05 20:01:07 t =(TextView)findViewById(R.id.IPDisplay) Aug 05 20:01:12 kjeldahl: thats not the bad thing, read the questions again, and look a bit deeper Aug 05 20:01:39 he wants access to a line, inside a method, to use the data, that the method returns if called Aug 05 20:01:52 thats the alarm bells Aug 05 20:02:22 so Bleeptech honestly, I'm a make believe programmer, and that even rings alarms for me Aug 05 20:03:00 m3uk: you should not need a new textView Aug 05 20:03:07 StingRay_: AHA!.. So that whole section is 1 method.. OK.. So I have to break it down and come up with my own method to do the same thing? Aug 05 20:03:15 so no need for "new TextView(this)" Aug 05 20:03:33 Bleeptech: honestly, java 101 Aug 05 20:03:39 your really need it Aug 05 20:03:45 StingRay_: Sounds lispy! Aug 05 20:03:51 or you will be 20 times worse that you could be Aug 05 20:07:12 Yo is anyone here actually good with Gradle? Aug 05 20:07:25 No, but ask anyway! Aug 05 20:08:19 hehe Aug 05 20:09:57 so to add a m odule dependency I should really just do compile project('moduleName') under the build.gradle dependencies right? Aug 05 20:10:48 If it's a "project" you need (jar+resources), yes. If it's only a jar, you can do "compile files('libs/myfile.jar')" Aug 05 20:11:09 It's just a project(No .jar, just a library module) Aug 05 20:11:56 Ok, so if there is a dependency and you want automatic dependecy resolution, I guess you need to do it as a "project". Aug 05 20:12:10 So a parent and child style cannot share attributes?? Aug 05 20:12:14 Brian|CS do you mean sub-project? Aug 05 20:12:25 ':myproject' Aug 05 20:12:27 Doesn't necessarily need to be a sub project Aug 05 20:12:31 Yep, just compile project(':moduleName') Aug 05 20:12:43 Basically I want to import SimonVT's MenuDrawer into my project Aug 05 20:13:41 Ugh, I should get that pushed to central Aug 05 20:13:51 so I added a module to my project Aug 05 20:13:56 that is the library from SimonVT's github Aug 05 20:13:59 Brian|CS: Why not Navigation Drawer? Aug 05 20:14:01 * kjeldahl wonders if anybody have checked the added buildtime for checking a "whole" project, versus just a file dependency... Aug 05 20:14:13 yiati: I know, I know, my management wants to do stuff that Navigation Drawer doesn't do Aug 05 20:14:16 so basically yeah Aug 05 20:14:28 Brian|CS: Ah okay I understand Aug 05 20:14:31 yiati, pushback :p Aug 05 20:14:39 er Aug 05 20:14:41 Brian|CS, pushback :p Aug 05 20:14:45 Yeah I have it on some of my projects as well Aug 05 20:15:03 Any reason why, when a ViewGroup is resized, the contents inside may or may not display properly? Aug 05 20:15:03 being able to pin the right edge of the drawer menu with the content pane is nice Aug 05 20:15:09 Just spreading the word in case Aug 05 20:15:11 which the support-drawer doesn't do :( Aug 05 20:15:23 alexfu, because they need to be re-laid out? Aug 05 20:15:26 so I added the module, it's called "library" Aug 05 20:15:36 do I just do compile project(':library') Aug 05 20:15:39 I tried that and it failed Aug 05 20:15:40 :S Aug 05 20:17:01 pfn, and if requestLayout was called? Aug 05 20:17:57 dunno Aug 05 20:18:00 use hierarchyviewer and find out Aug 05 20:18:33 SimonVT: How to Gradle DrawerMenu Aug 05 20:18:33 D: Aug 05 20:18:42 No idea Aug 05 20:19:29 Brian|CS, are you tied to using gradle? :) Aug 05 20:19:37 maven or sbt would offer easier workflows Aug 05 20:19:38 Just copy the jar file in already... Aug 05 20:20:08 It isn't a jar Aug 05 20:20:13 pfn: I'm already using Gradle cause Android Studio Aug 05 20:20:13 :S Aug 05 20:21:14 SimonVT: D: Aug 05 20:21:32 Oh, sry. Then I guess you either need to put the class files in a jar, OR write your own build.gradle. If the build process is straight up, then that's easy. If it pulls in lots of other stuff (which requires building), you're in for a lot of fun writing build.gradle files for all the dependencies. Aug 05 20:23:17 Gradle plz.... Aug 05 20:23:24 Maybe I should just go back to Eclipse.... Aug 05 20:23:51 SimonVT: Is the build process straight up, or does it require building sub projects as well? Aug 05 20:25:24 Should be straight up Aug 05 20:25:31 It doesn't have any dependencies Aug 05 20:25:41 Brian|CS, you could always ditch android studio for intellij directly Aug 05 20:26:04 I'm honestly just probably gonna go to Eclispe Aug 05 20:26:07 cause I'm most familiar with it Aug 05 20:26:07 :S Aug 05 20:26:16 Android Studio was nice for a week or two cause it was flowing well Aug 05 20:26:19 but like, time is money Aug 05 20:26:30 and I'm on the clock when I dick around with Android Studio, so Eclipse is probably just better Aug 05 20:26:30 :S Aug 05 20:27:01 Here's a "basic" build.gradle for a non-Android Studio project. https://gist.github.com/mariusk/6159301 Adapt the source paths and you should be golden. Aug 05 20:27:10 So if i wanted to send that ip address over sms. would i set the onClickListner in the onPostExecute as opposed to oncreate after the asynctask has been called? Aug 05 20:27:16 Brian|CS, intellij is better :p Aug 05 20:27:25 only thing that intellij loses vs eclipse is logcat filtering Aug 05 20:27:25 imo Aug 05 20:27:30 or would it not matter Aug 05 20:28:55 Adapt it, put it in the sub-project root (named build.gradle). Then in your own project root, modify settings.gradle to include it together with your own project. Aug 05 20:29:13 Here's a settings.gradle file for one of my apps: include ':TournmanApplication', ':facebook-android-sdk-3.0.1', ':simple-crop-image-lib' Aug 05 20:29:16 hey guys Aug 05 20:29:32 m3uk oncreate, why set it everytime in onPostExec Aug 05 20:30:02 TournmanApplication is my app, the other two are sub projects that gets built (if necessary) when I do "./gradlew assembleDebug" from the project root. Aug 05 20:30:34 I see alot of code floating around the Internet that uses this technique... http://faces.eti.br/2011/12/13/android-resizeanimation-with-a-starting-height/ -- I'm wondering if this technique is good or not since it's requesting a layout pretty much every step of the frame Aug 05 20:31:08 The are also pulled in as dependencies with a "compile project(':facebook...')" and "compile libs('libs/universal...')". Aug 05 20:31:12 TheY Aug 05 20:31:19 hey, is there anything I can stack with scaletype="fitcenter" but adjust to x bound? Aug 05 20:31:29 alexfu, it's not good if your screen has lots of views Aug 05 20:31:32 alexfu, it's so very slow Aug 05 20:31:34 Eh, "compile files('libs/universal...')" I meant. Aug 05 20:31:35 some sort of fitX Aug 05 20:31:40 alexfu, but for simple screens, it works well Aug 05 20:33:09 pfn, gotcha Aug 05 20:42:31 pfn, even with the service running in the foreground its not working right :( Aug 05 20:42:56 (01:27:24 PM) pfn: only thing that intellij loses vs eclipse is logcat filtering Aug 05 20:42:59 excuse me? Aug 05 20:43:13 i can filter logcat just fine Aug 05 20:48:09 I need help with something thats only partially dev related. Aug 05 20:48:50 ADB Says "error: device offline" Aug 05 20:49:01 What does that even mean lol Aug 05 20:49:54 birbeck, it's nowhere near as powerful as ddms/monitor until intellij 13 Aug 05 20:50:00 birbeck, hmm, weird Aug 05 20:51:51 birbeck, you can't filter by app package in intellij, for example Aug 05 20:52:33 Solved, ADB version was too old. Aug 05 20:57:05 SailorMoon: lol ;) i love that Aug 05 21:09:54 I downloaded Android Studio yesterday and created a new project with a blank activity. It downloaded the necesary files (gradle), but then inside the src/main folder there was only the resources folder with the application's icon. Why could this happen? Aug 05 21:10:09 zyngawow, because there's no activity Aug 05 21:10:30 pfn: I asked it to create a blank one Aug 05 21:10:38 well, somehow it didn't Aug 05 21:10:46 Repeatedly? Aug 05 21:11:02 damned if I know, I have no idea what you're doing Aug 05 21:11:14 whether you're looking in the right place or not Aug 05 21:11:27 I'll post some screenshots Aug 05 21:11:33 Gradle needs to go die Aug 05 21:11:34 >.> Aug 05 21:11:51 Brian|CS hehe Aug 05 21:11:51 I need a factory image for a Nexus 7 flo Aug 05 21:11:51 http://puu.sh/3UBby.png Aug 05 21:12:07 http://puu.sh/3UBcL.jpg Aug 05 21:12:30 zyngawow you are likely to encounter many more problems with AS Aug 05 21:12:40 if you get frustrated by this, use something else Aug 05 21:13:39 http://puu.sh/3UBcL.jpg , http://puu.sh/3UBhT.jpg Aug 05 21:13:54 g00s: well, of course I get frustrated. I used eclipse, but I like some of the features of IDEA Aug 05 21:14:09 just create the activity yourself :| Aug 05 21:14:33 its not like AS creates your whole project ready to ship Aug 05 21:14:49 g00s: it did earlier Aug 05 21:14:51 zyngawow, it doesn't create the activity Aug 05 21:14:57 pfn: I know Aug 05 21:15:04 just create the activity using the generate command Aug 05 21:15:05 maybe it just puts it in the manifest Aug 05 21:15:15 select src/main Aug 05 21:15:17 press generate Aug 05 21:15:18 and go Aug 05 21:16:22 pfn: Generate? Where exactly is that? Aug 05 21:16:52 alt-ins on windows, ctrl-return on mac Aug 05 21:16:57 or under the code menu Aug 05 21:17:21 pfn: blacked out http://puu.sh/3UBt6.jpg Aug 05 21:17:49 zyngawow, just press alt+ins Aug 05 21:18:12 or right click -> new Aug 05 21:18:24 pfn: yeah. Module, Folder or File Aug 05 21:18:48 Module: Android Application, Android Library, Java Library Aug 05 21:19:06 src/main is selected? Aug 05 21:19:33 * pfn shrugs Aug 05 21:19:34 Yes Aug 05 21:19:49 sounds like that particular module doesn't have the android facet added Aug 05 21:19:51 or something Aug 05 21:20:09 pfn: the SDK and AVD icons are also blacked out, is that normal? Aug 05 21:20:21 icon where? Aug 05 21:20:25 and no, I imagine not Aug 05 21:20:58 So what could be the problem? Aug 05 21:21:09 somehow your AS is busted Aug 05 21:21:11 It looks like it isnt communicating with the SDK or something Aug 05 21:21:15 and your sdk isn't set correctly Aug 05 21:21:22 ctrl-alt-shift-s Aug 05 21:21:30 click on sdk, and make the path to Android SDK is correct Aug 05 21:22:16 AppData\Local\Android\android-studio\sdk Aug 05 21:22:42 pfn noticed there were a few more docs on gradle today, like this "asset merging" piece - did you see it? i thought you were looking into this last week http://tools.android.com/tech-docs/new-build-system/resource-merging Aug 05 21:23:06 g00s, not looking for info, rather, irritated that it's broken/doesn't-work-right :p Aug 05 21:23:40 oh Aug 05 21:23:54 I get all my info through trolling the sources Aug 05 21:30:01 can someone tell me how it is expected behaviour for a link textview with setMovementInstance(LinkMovementMethod.getInstance()) to consume clicks that aren't even on the actual url? Aug 05 21:32:04 I have a listview with listitems that expand and collapse when clicked. While a view will expand to show the link textview, among others, getting it to collapse by clicking it is impossible Aug 05 21:32:26 and I've narrowed it down to that single line of code that actually turns it into a link Aug 05 21:32:42 What the fuckity fuck Aug 05 21:32:50 my SDK manager in AS will show me Android 18 and such Aug 05 21:32:56 but it doesn't show up in Eclipse's Android SDK manager Aug 05 21:32:58 yes, I'm just ranting as I've already fixed the issue, I just find this to be plebbery Aug 05 21:33:01 Fuck you Eclipse, fuck you., Aug 05 21:34:12 Brian|CS i had that problem with intellij Aug 05 21:34:23 g00s: What do? Aug 05 21:34:23 D: Aug 05 21:34:25 fuck all the tools Aug 05 21:34:56 Welp, its there now Aug 05 21:35:08 Fuck you downloads cache Aug 05 21:35:09 fuck you Aug 05 21:35:10 D: Aug 05 21:40:05 and when are they going to fix the bug in eclipse that prevents you from running the app when you're editing an xml file? Aug 05 21:40:12 Hello Aug 05 21:40:38 Gmail is opening my app because im capturing www.mysitelinks.com Aug 05 21:40:58 How do I make my app appear in its own window, and not in gmail stack? Aug 05 21:41:01 Of apps? Aug 05 21:43:18 Maestro: that's the default run target selection. Just disable it. Aug 05 21:43:31 I alway run with the feature disabled myself. Aug 05 21:44:13 It's in Run/Debug > Launching Aug 05 21:44:25 "Always launch the previously launched application" is what you want Aug 05 21:44:36 ah, brilliant Aug 05 21:45:01 eclipse's conception of running XML file appears to be to do some schema validation or some such thing. Totally useless. Aug 05 21:48:21 how do i disable android studio from adding quotes automatically when typing xml attributes and = ? Aug 05 21:48:33 went through the settings 500 times but can't find the option Aug 05 21:55:32 veeti: part of xml. Values should be quoted? Aug 05 21:55:53 why would you want it to not add quotes... Aug 05 21:56:42 muscle memory Aug 05 21:56:48 switched from ordinary intellij and it doesn't do that :p Aug 05 22:03:11 How to make my activity use my own app stack when started from gmail? Aug 05 22:03:57 you start flags for your intent filter? Aug 05 22:05:40 My activity is called and it works... But it appears inside gmail window, not my own.... Aug 05 22:05:43 How to nchange it? Aug 05 22:06:03 your start flags to your intent Aug 05 22:06:37 Which flag in particular Aug 05 22:06:39 ? Aug 05 22:06:50 find one that'll do what you want :p Aug 05 22:06:55 like NEW_TASK Aug 05 22:09:58 How do I put that in the intent filter? Aug 05 22:10:09 I found how to put it on the intent only Aug 05 22:12:51 Gavilan3, you put it in your activity's flags Aug 05 22:15:26 Where do I find my activities flag? Aug 05 22:17:07 Do you mean launch mode? Aug 05 22:20:00 yes Aug 05 22:21:59 Thqnksa Aug 05 22:22:03 Thanks! Aug 05 22:26:03 ...the feel of being stupid when you realize you have forgot your keystore password... Aug 05 22:26:23 it was something so easy I didn't write it down. Looks like 6 months was enough to make me forget what simple thing it was Aug 05 22:27:09 hello Aug 05 22:27:30 alankila :( Aug 05 22:29:53 alankila, save it in local.properties or a signing config next time :p Aug 05 22:30:15 i put that stuff in KeePassX Aug 05 22:30:18 I'd prefer to make keystore without a password but iirc the default java tools did not permit this. Aug 05 22:30:59 Just make the password "password" Aug 05 22:31:18 SimonVT: yep, that's my favorite strategy, though I don't quite remember what simple string I chose this time Aug 05 22:33:22 goddamnit, something's broken with gradle's incremental resource merging Aug 05 22:33:57 it didn't merge my changes to my resource xml Aug 05 22:43:55 Hey question... Aug 05 22:44:56 Now I know my my Inmobi revenue has been skyrocketing Aug 05 22:45:03 Admob threw them a lifeline... Aug 05 22:45:21 I am trying to download a file in a service and its working I resolved the networkonmainthread error by downloading in a new thread, http://java.chosd.com/195 but now it still remains but instead of being an error its now a warning, how can I now resolve the warning? Aug 05 22:50:11 Here is the warning I am recieving now http://java.chosd.com/196 Aug 05 22:50:55 why does if I use getListView().setOnItemLongClickListener(new OnItemLongClickListener() { ... onItemLongClick is invoked and if I implements OnItemLongClickListener ad I add onItemLongClick, this is not invoked? Aug 05 22:51:01 is there something I am not understanding about starting a new thread and executing my network task in it for it to still throw the warning as if it was still being executed on the main thread? Aug 05 22:51:44 the service runs on your main thread Aug 05 22:51:57 dblosevn, use asynctask Aug 05 22:52:56 ya I get that the service is on the main thread but doing Thread thread = new Thread(new runnable .... should spawn my runnable in another thread right? Aug 05 22:53:53 that's not correct, use asynctask Aug 05 22:53:58 dblosevn: At line 127 you're posting the runnable to the ui thread Aug 05 22:54:36 I thougth thats how I was supossed to send a message to my reciver? Aug 05 22:54:52 You're telling the handler to run the runnable Aug 05 22:55:09 So first you do the networking in a background thread.. Then you do it on the main thread Aug 05 22:55:12 Is there a hard limit on the size of videos that can be streamed to the media player? Aug 05 22:55:19 I have a 2.3gb video that refuses to play Aug 05 22:55:34 oh, thats not my intent, the runnable only needs triggered once Aug 05 22:55:38 it just contsantly requests the video from the server, and the server responds with the correct length/mime type Aug 05 22:56:13 I thought i needed handler.post to send my messages in the queue to my reciver Aug 05 22:57:04 Not sure what you mean by that Aug 05 22:57:44 the service communicates with the mainthread via a reciever, I thought handler.post told the queue to run Aug 05 22:58:37 sendBroadcast(rIntent); so it would seem this line is executed immediately Aug 05 22:58:45 and handler.post has nothing to do with it Aug 05 22:59:30 what's this: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy Aug 05 23:00:33 THanks that cleared it up, I didnt even need the handler Aug 05 23:00:49 just removed all references to it and the wanrings are now gone Aug 05 23:01:17 and the file downloads as expected Aug 05 23:16:12 hello Aug 05 23:17:03 my phone says it is connected to mobile network, from my carrier. i have an ip, but i can't ping my gateway Aug 05 23:17:43 ashes: wrong channel Aug 05 23:18:49 ok after some research, apparently StageFright doesn't like content-length to be more than int_max... Aug 05 23:19:06 is there anyway to go around this? It doesn't really make sense that you can't stream a video that is > 2 GB Aug 05 23:19:16 when you can play it normally through file io... Aug 05 23:22:42 * under hating eclipse Aug 05 23:25:02 stop using it Aug 05 23:26:09 Try intellij instead. They have a free community verision that's pretty good Aug 05 23:31:12 atm I'm using adt bundle Aug 05 23:31:29 don't use that Aug 05 23:31:32 use android studio Aug 05 23:31:48 use vim Aug 05 23:32:06 try them all and use what you feel is best Aug 05 23:32:26 what fits you best may not be what others think is best Aug 05 23:32:28 I will in september :) Aug 05 23:32:30 thats life :) Aug 05 23:36:44 what StingRay_ said, then use android studio. Aug 05 23:37:01 dont forget to also try sublime and emacs ! Aug 05 23:37:17 may as well have te whole smorgasbord Aug 05 23:37:53 I do all my Android dev in MS word Aug 05 23:40:23 if all else fails: nano Aug 05 23:40:24 9 patches with MS Paint \o/ Aug 05 23:45:18 heh that send me to heaven app... Aug 06 00:14:25 dcow: did you solve your issues ? Aug 06 00:28:01 bye bye Aug 06 00:30:44 traceview's find in Eclipse, has anyone got it to successfully work? Aug 06 00:31:01 I must be doing something wrong, no matter what text I put in, it doesn't filter Aug 06 00:38:29 StingRay_: not yet. Put it on hold for a bit. I'll revisit it soon Aug 06 00:38:59 StingRay_: but thanks for asking Aug 06 00:46:05 shit, did the newest gradle plugin break maven-publish :| Aug 06 00:46:34 kjeldahl you still around? Aug 06 00:49:03 ok, time-out. so, if i want to publish an artifact to a local repository, on my machine, for use only by my other projects, should i even be using this? Aug 06 00:51:09 i wish #gradle was more active; for such a complicated thing i guess i'm the only one that needs help :| Aug 06 00:52:58 How can I make my service continue to run if the main activity is paused? Aug 06 00:53:34 unless your telling it not to in how it works or the way you start it, thats the default dblosevn Aug 06 00:53:54 as in it will continue to run if your activity is paused Aug 06 00:54:31 how would I go about telling it not to, I could have gotten about the same result running an async task off of the main thread... Aug 06 00:54:57 you would tell it not to by startForeground i think ? Aug 06 00:55:13 or it's started through binding ? maybe Aug 06 00:55:17 The whole reason I created a service was so the user could go on doing other things while it was working as the app is unusable while this service is running Aug 06 00:55:38 what ? Aug 06 00:56:10 why is the app unusable with the service running ? Aug 06 00:56:44 It downloads required assets the app needs to run, if the user chooses to localize all the images/videos etc Aug 06 00:57:36 Theres some ui progress while its downloading from the service but you cant use the app at all until it completes the download if you choose to localize the assets Aug 06 00:58:05 I think thats bad design Aug 06 00:58:14 should the app from play be all you need ? Aug 06 00:58:25 well I guess there can be a download Aug 06 00:58:33 like with games Aug 06 00:58:51 it can be, the app works in two ways, one it pulls all rmote resources and works out of the box (requires an internet connection) Aug 06 00:59:15 the service is never started and no assets other then the database are downloaded in this case Aug 06 00:59:58 if the user chooses to make the app available offline, it starts the service and downloads all the assets blocking the ui with a pretty progress status in the process Aug 06 01:00:23 and how do you use/start the service ? Aug 06 01:00:36 I want to enable to the user to go to the home screen and do other things run other apps while the download is in progress Aug 06 01:01:15 http://java.chosd.com/197 main activity Aug 06 01:02:22 this isn't an android app Aug 06 01:02:32 this is some odd java scripty thing Aug 06 01:02:37 oh phonegap Aug 06 01:02:55 yeah I think your in the wrong place, try #phonegap Aug 06 01:04:00 sorry the service isnt started from there... the reciever is attached there, the service is attached here http://java.chosd.com/198 Aug 06 01:04:20 I dont think this is as much a phonegap issue as it is a lifecycle issue with android Aug 06 01:05:29 and whats the service look like ? Aug 06 01:06:01 http://java.chosd.com/199 Aug 06 01:06:50 just trying to get it to work right now then ill go back and handle for errors properly etc Aug 06 01:07:43 I would look/debug the service, does it throw errors ? Aug 06 01:08:14 no it works perfectly it just dies if you press home Aug 06 01:08:39 im trying to let it keep running if the mainactivity is paused Aug 06 01:08:46 in the middle of doing something though ? Aug 06 01:09:35 oh wait... it relys on the mainactivity to tell it to grab the next file... Aug 06 01:09:44 :) Aug 06 01:09:48 so maybe its not so much dieing as it is completing Aug 06 01:10:25 I need to do the whole api request natively so the service is self sufficient Aug 06 01:11:30 Are any of you experienced with multi platform development targeting both Android and iOS, maybe even Windows and Linux, too? What framework(s) did you use? Aug 06 01:11:31 I never wanted to use phonegap for this in the first place, they built a native ios app for it, and decided to switch gears to phonegap when they wanted to do android Aug 06 01:11:37 *we Aug 06 01:11:55 So far I've examined Xamarin, Unity, MonoGame, SDL, Cocos2D and homebrew solutions Aug 06 01:12:38 I think in the end this would be far less complicated if it was purely native the only thing that will really port over is the ui a ton of native code is required to make this work Aug 06 01:16:20 qrf: I have apps that run on Windows and Linux, which I ported to Android. They use SDL. Aug 06 01:39:15 I'm trying to set the margins on a textview , here is my code, http://www.fpaste.org/30266/53118137 Aug 06 01:40:03 line 1-4 is where i set up the layoutparams. Line 42 is where i set the layout params on that TextView. When I do this, the textview doesn't show up on the screen. Aug 06 01:40:38 as you can see, the TextView is in a table row Aug 06 01:42:03 can someone tell me why my broadcast reciever is not working? I basically implemented this question to test things out http://stackoverflow.com/questions/11152838/why-isnt-my-app-on-the-list-of-apps-to-open-txt-file and my reciever will not show up for anything Aug 06 01:48:28 Ologn yeah I was considering using SDL Aug 06 01:48:47 Reviews of the Android/iPhone ports were mixed, some suggested it wasn't that mature yet Aug 06 01:48:51 Not sure if it's worth doing Aug 06 01:49:27 kc8hfi: why are the layoutParams relativeLayout ? Aug 06 01:50:00 I just found the answer, http://stackoverflow.com/questions/11963465/android-layoutparams-for-textview-makes-the-view-disappear-programatically Aug 06 01:50:05 cause if you think about it, why would a relativeLayout explicitely respect outward child layout params Aug 06 01:50:32 its gotta be the parent's layoutParams. since the textview lives in a tablerow, gotta use the TableRow.layoutParams Aug 06 01:50:47 starting to really hate android development now ._. Aug 06 01:50:49 doesnt HAVE to be, but yes Aug 06 01:51:05 at least the textview actually shows up now. however, the margins are not setting to what I want them to be Aug 06 01:51:06 it can use off branch params Aug 06 01:52:10 sounds like you should be setting "view" padding on the cell Aug 06 01:52:18 rather than margins on the children Aug 06 01:52:37 not used tables though, I thought they were old and dated Aug 06 01:52:52 i don't think padding is gonna help, because I want a border around the cells. Aug 06 01:53:17 nothing wrong with using a table for tabular data. thats what a table is meant for Aug 06 01:53:54 I just always thought gridView was the new maintained a prefered thing Aug 06 01:54:01 sorry gridLayout Aug 06 01:54:08 ugh, getting late there Aug 06 01:54:12 here* Aug 06 01:54:27 I believe a gridlayout resizes stuff to fit on the screen, that is definitely not what i want. Aug 06 01:54:48 if the row is bigger than the screen, i expect the table to be horizontallyu scrollable Aug 06 01:56:29 the cynic in me says, the gradle docs suck so badly so that they can sell training Aug 06 02:00:48 the padding is good, it helps put some space around the actual text that lives inside the textview Aug 06 02:01:07 the margins are workin good, i had the order of the params to that function call all backwards Aug 06 02:15:28 qrf: There are two Android SDL ports. SDL 1.2 is what 99% of SDL code is written to, and has a forked port to Android. SDL abandoned its old code base with 1.3/2.x. Almost nothing is written in it. It has an Android port. Aug 06 02:16:02 use 2 :) Aug 06 02:16:12 its very nice Aug 06 02:30:51 allrighty then. the gradle publishing stuff is broken with 0.5.5 Aug 06 02:31:44 according to xavd Aug 06 02:49:49 trying to understand google IO app code and reading this : http://goo.gl/7OFnIs ( private static class StreamLoader extends AsyncTaskLoader> { ) Seems it uses an AsyncTaskLoader to fetch data and monitor for changes. Aug 06 02:50:29 till now I was using AsyncTask, guess I have to change to this or go to Services ? Aug 06 02:53:37 does what you have at the moment work ? Aug 06 02:54:07 if so why change ? just cause you looked an alternate loader based asynctask, dont mean you "have" to use it Aug 06 02:54:09 :) Aug 06 02:55:02 yeap it works but still in beta so I was just wondering... :) Aug 06 02:55:52 I just dont get the reason for you saying "have to change" Aug 06 02:56:10 but a service is a good idea if it fits your requirements Aug 06 02:58:32 I'll check both. Still trying to understand the pros and cons of every implementation **** ENDING LOGGING AT Tue Aug 06 02:59:58 2013