**** BEGIN LOGGING AT Tue Dec 25 02:59:58 2012 Dec 25 03:03:32 what actions (setadapter?) will reset a listview's scrolling state? Dec 25 03:05:37 allright im done with this useless pos irc Dec 25 03:05:40 catcha cunts Dec 25 03:07:14 I've met with such dissaproval Dec 25 03:08:08 veeti: what do you mean by 'reset' ... scroll back to top like: scrollView.fullScroll(ScrollView.FOCUS_DOWN); ?? Dec 25 03:08:17 er... FOCUS_UP Dec 25 03:08:35 yes, scroll back to 0 from whatever position it was at before Dec 25 03:11:16 ah list view ... google says http://social.msdn.microsoft.com/forums/en-US/wpf/thread/5d6089b5-49d5-405a-a301-150ba5e9953b Dec 25 03:11:34 wow, android on msdn ? Dec 25 03:12:06 heh Dec 25 03:12:30 just was like ... google it returns stuff like this kinda thing Dec 25 03:12:57 Anyone know why I might get a NoClassDefFoundError for R.xml? Dec 25 03:17:11 BHSPiMonkey: maybe a build error? Dec 25 03:17:36 have you tried refreshing/cleaning/closing and reopening? Dec 25 03:20:28 would an intnet filter prevent an activity from using the network connection? Dec 25 03:20:51 because my geocoder was working in my main activity but does not in my search activity Dec 25 03:28:43 Ankhwatcher: hmm. Now I'm seeing things like "import java.util cannot be resolved". This is getting messy :P Dec 25 03:29:10 bet you're using eclipse Dec 25 03:29:33 you bet right Dec 25 03:29:44 heh - is why i switched to intellij Dec 25 03:29:49 and after clicking "Run", those crazy "java.util cannot be resolved" things went away Dec 25 03:30:12 capella: I was betting on the officially supported tools being the path of least resistance :/ Dec 25 03:31:04 yeah java util isn't imporant Dec 25 03:31:53 how is intellij at all the android-specific stuff? Does it take some setup to allow for easy deploying/debugging over adb, etc.? Dec 25 03:32:10 yes Dec 25 03:32:15 looks like for once the problem isn't my code: http://code.google.com/p/android/issues/detail?id=38009 Dec 25 03:32:53 yeah, screw java.util, I'm just gonna import C.stdlib Dec 25 03:32:57 Took me 30 mins tops to configure it ... same considerations as eclipse ... Dec 25 03:33:17 "same considerations" in what regard? Dec 25 03:33:54 Well like setting up AVD ... getting SDKS downloaded, poinhting to JAVA libraries ... it figures out most of it Dec 25 03:34:12 it's well worth it Dec 25 03:34:17 I didn't have to do anything with eclipse (well, with ADT); Once ADB was seeing the device, the "Run as Android Application" option just worked Dec 25 03:36:29 is the free version pretty sufficient? Dec 25 03:36:40 yes Dec 25 03:36:45 Community edition yes Dec 25 03:40:24 * capella still wonders if Android 4.1.2 is API 16, and Android 4.0.3 is API 15, and addAction() was added to notifications in API 16, and my GS3 version of JB is 4.1.1, is that why addAction() doesn't work for my builds? Dec 25 03:40:44 GIMME my buttons ! Dec 25 05:41:46 IGUAY Dec 25 05:41:51 merry fuggin christmas Dec 25 05:41:57 happy channukah Dec 25 05:41:57 :) Dec 25 05:47:59 happy chakanuana to you as well Dec 25 06:55:45 I've come up with my first gripe about intellij Dec 25 06:55:48 and its not even that big of a deal Dec 25 06:55:53 I wish the thing would auto update Dec 25 06:56:08 such that I didnt have to go download dmg, mount it, and reinstall via drag/drop Dec 25 07:08:35 ron_frown: did you see 12.0.1 is out Dec 25 07:11:01 uhh yeah but it was prompting me to dl 12.0.2 Dec 25 07:11:04 which was a EAP build Dec 25 07:11:13 must have the auto update channel shit off Dec 25 07:13:06 I got this from someone for christmas Dec 25 07:13:06 http://gearjunkie.com/images/5538.jpg Dec 25 07:13:56 gerber, lol Dec 25 07:14:13 gerber used to make some real nice shit Dec 25 07:14:16 no idea how they are now Dec 25 07:14:23 before i was alive i guess Dec 25 07:14:28 that thing is like 1.5ft long Dec 25 07:14:55 I think its china shit now Dec 25 07:15:01 but then what knife brand isnt Dec 25 07:15:17 plenty Dec 25 07:15:47 benchmade is usa; spyderco is japanese (and their steel is good) Dec 25 07:15:50 when I looked at a gun shop Dec 25 07:15:57 they were made in china Dec 25 07:16:00 lots of them were anyway Dec 25 07:16:31 lower end sog stuff is china like http://sogknives.com/store/F14-N.html Dec 25 07:16:40 yeah sog always used to be nice Dec 25 07:16:45 but then I saw some were made in china Dec 25 07:16:54 I couldnt justify a ral expensieve nice Dec 25 07:16:59 I lose shit ike non other Dec 25 07:17:30 I dont expect to actually get anything for christmas Dec 25 07:17:38 my bike was my christmas present come 2mo early Dec 25 07:17:45 and I dropped about 2k on mods and stuff on it Dec 25 07:18:00 this sog is made in japan Dec 25 07:18:01 http://sogknives.com/store/GFX01-L.html Dec 25 07:18:11 they my wife pretty much spent up rest of my bonus on a new ride Dec 25 07:19:00 http://www.gizmogadget.me/wp-content/uploads/2012/03/Gerber-Gator-Machete-Pro.jpg Dec 25 07:19:05 I saw that in the store and really wanted that Dec 25 07:19:17 not so much the quality etc etc Dec 25 07:19:21 just the whole wtf factor Dec 25 07:19:27 somone breaks into my house, and I whip that out Dec 25 07:19:34 they are going to know something just aint right with me Dec 25 07:20:09 anyway back to actual android Dec 25 07:20:18 heh, i could actully use that Dec 25 07:20:43 sometimes to get to good spots for landscape photography you have to hack through shit Dec 25 07:20:52 I've got a viewpager that I am loading fragments into etc... and I've been seeing Dec 25 07:20:53 java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child' Dec 25 07:21:03 I am un-familliar with how you are supposed to handle that shit Dec 25 07:21:14 I thought viewpager should handle removing/readding Dec 25 07:21:53 oh this is where I need to attempt to find it with tag, and if its null, create the fragment isnt it Dec 25 07:31:13 hwrd|work: do I know you? :P Dec 25 07:31:22 Snuupy: Dec 25 07:31:24 Maybe Dec 25 07:31:27 BTN? Dec 25 07:31:36 Snuupy: y Dec 25 07:31:38 es Dec 25 07:31:43 o-o Dec 25 07:31:48 I think this may have been where we met Dec 25 07:32:01 I WAS RIGHT IT WAS SOMETHING TECHNICAL Dec 25 07:32:06 Snuupy: hahahaha Dec 25 07:32:10 !! Dec 25 07:32:13 Snuupy: I'm not even in their IRC right now Dec 25 07:32:17 lol Dec 25 07:32:20 why not lol Dec 25 07:34:50 Because it's not in my defaults. I'll join. Dec 25 07:34:51 now Dec 25 07:36:19 haha Dec 25 07:49:41 anyone used little fluffy location lib? Dec 25 07:51:34 ron_frown: Can't say that I have. Seems promising though. Dec 25 07:54:36 its almost as if it tries to do too much for you Dec 25 07:54:42 I've had mixed results thus far Dec 25 07:58:10 ron_frown: I dunno, passive providers are simple enough to set up on my own, I would think. Dec 25 07:59:54 it does a lot for you Dec 25 08:00:02 wake locking etc Dec 25 08:00:07 yes stuff you could do yourself Dec 25 08:00:14 but I'd rather go with something in wide use Dec 25 08:02:31 ron_frown: Not reinventing the wheel is always a good thing. Dec 25 08:02:44 I dont agree Dec 25 08:02:54 but I'd rather use something tried and true Dec 25 08:03:00 *usually Dec 25 08:03:09 vs somethign I slap together and assume I squashed all the bugs or thought all the scenarios Dec 25 08:03:23 people thnk I'm nuts for building my own db engine Dec 25 08:03:32 but I believe I've got some legitimate reasons... as well as learning +) Dec 25 08:04:14 ron_frown: Each case is different… I won't argue whether you're right or wrong without knowing specifics Dec 25 08:06:11 what in the fuck is the proper way to use a fragmentpageradapter Dec 25 08:06:26 ron_frown: Like any ListAdapter, but with fragments? Dec 25 08:06:26 I'm doing what examples show and getting errors about removing views before re-adding them Dec 25 08:06:47 I'm retaining instances in onCreate of the fragments themselves Dec 25 08:07:03 I see comments about using findByTag but not seeing examples of it Dec 25 08:07:08 not sure where they are talking about using thi Dec 25 08:07:09 setHasRetainInstance(true)? is that what you're doing? Dec 25 08:07:22 just setRetainInstance(true) Dec 25 08:07:36 oh right Dec 25 08:07:36 but yes Dec 25 08:07:53 hmm I dunno, I feel like that might be a common error though… fragmentpageradapter Dec 25 08:08:11 I've tried fragmentstatepageradapter Dec 25 08:08:30 but sounds like thats just a more efficient version of the fragmentpageradapter (actually discards/recreates fragment on demand) Dec 25 08:14:45 haha Dec 25 08:14:46 super.onSaveInstanceState(outState); Dec 25 08:14:46 outState.putString("DO NOT CRASH", "OK"); Dec 25 08:14:49 classic Dec 25 08:16:35 does anyone know if cocos2d supports me changing the gear on my character Dec 25 08:16:40 like how an MMO would Dec 25 08:16:46 Guys Dec 25 08:16:55 If i unlock my bootloader Dec 25 08:17:05 Will htc take my imei ? Dec 25 08:17:35 Ha ? Dec 25 08:17:40 Will it ? Dec 25 08:20:02 not a question for this channel Dec 25 08:20:37 But this is a android channel Dec 25 08:20:45 android development channel Dec 25 08:27:52 hehe, how about my question? Dec 25 08:29:10 probably same answer Dec 25 08:29:19 nah Dec 25 08:29:22 I just dont know the answer to that Dec 25 08:29:27 ehh it's relevant somewhat Dec 25 08:29:27 mawhtin: Is your gear 1D? Dec 25 08:29:32 it's 2d Dec 25 08:29:36 then no Dec 25 08:29:37 but 1d would be fine :) Dec 25 08:29:42 actually no Dec 25 08:29:44 1d is ugly haha Dec 25 08:29:59 aw ok, thanks hwrd|work Dec 25 08:30:06 np glhf Dec 25 08:30:20 gotta abandon this idea then. no way am i touching unreal or unity Dec 25 08:30:36 haha Dec 25 08:30:41 I started a project with unity Dec 25 08:30:46 way way way way way too open ended Dec 25 08:30:58 unity support is terrrrrible Dec 25 08:31:01 "what can I do as far as x for android" Dec 25 08:31:05 try it and find out Dec 25 08:31:10 no straight answers Dec 25 08:31:17 ? Dec 25 08:31:27 and honestly... if you arent building a 1st/3rd person shooter Dec 25 08:31:30 just give up now Dec 25 08:31:46 can I use projectors Dec 25 08:31:50 can I use blob shadows Dec 25 08:31:51 etc Dec 25 08:31:55 nobody could tel lme Dec 25 08:32:00 unity supports it Dec 25 08:32:06 uhhh ok merry xmas to you too Dec 25 08:32:15 heh Dec 25 08:32:23 but nobody could say yes I could utilize it targetting mobile devices Dec 25 08:32:37 its liek fuck... I really think it'd be better off starting with light wrappers around gl Dec 25 08:33:26 mawhtin - I was referring to unity Dec 25 08:33:28 not to you Dec 25 08:33:39 if I make an angry pigs clone will people buy it? Dec 25 08:33:52 someone will Dec 25 08:34:00 ohh ok, my bad :) Dec 25 08:34:06 someone definitely will Dec 25 08:34:16 i've seen shit things on iOS sell Dec 25 08:34:28 mawhtin: Dude. Stupid iOS games make bank Dec 25 08:34:30 so I always tell myself: if you ever need a quick 400 bucks, throw something shitty together and sell it Dec 25 08:34:30 I am surprised we havent seen trism yet for android =( Dec 25 08:34:50 cause it's unfuckin believable what sells on ios Dec 25 08:34:57 sometimes I think apple buys them Dec 25 08:35:09 to make the App Store seem appealing to developers Dec 25 08:35:16 lol Dec 25 08:36:23 I'd say if you brave IOS dev and manage to tolerate the whole signing/distributing apps with IOS Dec 25 08:36:27 they SHOULD pay you Dec 25 08:36:32 and better yet working in teams Dec 25 08:36:37 god damn apple fucked that up Dec 25 08:36:51 what'd they do to teams? Dec 25 08:37:21 they just make it jumpting through hoops to do anything Dec 25 08:37:40 well i just started android today :) Dec 25 08:37:41 have to keep updating provisioning profiles, can only have one dist profile so you have to import private keys everywhere Dec 25 08:37:46 i usually work in iOS Dec 25 08:37:54 the one thing I'll tell you that i hate about iOS Dec 25 08:37:56 ron_frown: No app store is good. Apple's is bad, but so is everyone elses' Dec 25 08:37:57 customizing UI is a bitch Dec 25 08:38:04 no its not that Dec 25 08:38:17 mawhtin - yeah oh you want to change bg in a listviewcontroller? Dec 25 08:38:22 just start from scratch Dec 25 08:38:23 haha Dec 25 08:38:24 lol bg is easy Dec 25 08:38:31 like just a unique UI = hell Dec 25 08:38:35 is that the same for android> Dec 25 08:38:41 honestly I felt that all the out of box shit like that Dec 25 08:38:50 was often so restrictive it was just easier to build from UIVIew Dec 25 08:39:13 mawhtin - only thing about android ui thats a bitch Dec 25 08:39:18 is the shitloads of diff formfactors Dec 25 08:39:24 but if you design right from the getgo Dec 25 08:39:26 you will be ok Dec 25 08:40:10 ron_frown: your daughter ready for santa ? :D Dec 25 08:40:17 tell me this Dec 25 08:40:30 i like designing UIs using html/css Dec 25 08:40:32 easy as hell Dec 25 08:40:35 what's the closest to that Dec 25 08:40:38 android or iOS Dec 25 08:40:44 cause iOS is FARRR from it Dec 25 08:40:52 and if android is far from it too, then forget it Dec 25 08:41:11 g00s - shes hit the motherload Dec 25 08:41:18 haha Dec 25 08:41:21 my wife spent probably 1-2k on her Dec 25 08:41:23 i hope you didn't get her that machete Dec 25 08:41:26 and my daughter is fucking 2yr old. Dec 25 08:41:37 g00s that was given to me =) Dec 25 08:41:39 holy shit Dec 25 08:41:41 :) Dec 25 08:42:02 when I was growing up I never recieved a gift > ~50$ in value Dec 25 08:42:13 my wifes parents spoiled the shit out of her Dec 25 08:42:18 i usually got a set of legos for xmas Dec 25 08:42:28 my wife got countless coach goodies and a 40k car Dec 25 08:42:36 this year Dec 25 08:42:50 osmething we needed, but it was a bit pricy Dec 25 08:42:56 geezus ron_frown Dec 25 08:42:59 you rich or something? Dec 25 08:43:01 I couldnt really say shit tho when I dropped 13-14k on a bike =) Dec 25 08:43:02 haha Dec 25 08:43:12 my mom loved me but i never got anything Dec 25 08:43:14 fuck, i would put that $$$ into your kids inventments funds for school or something Dec 25 08:43:21 fuck school Dec 25 08:43:22 Anyone know what could cause a NoClassDefFoundError to happen on a R$xml class? Dec 25 08:43:31 school is a terrible investment these days Dec 25 08:43:35 g00s shes already got a ton of cash in her school funds Dec 25 08:43:37 but I agree Dec 25 08:43:48 I'm not gonna be one of these parents making my kids go to college Dec 25 08:43:54 fuck I dropped out of community college Dec 25 08:44:01 I make good cash Dec 25 08:44:17 not as good as some contractual shit I almost signed for my business Dec 25 08:44:32 good cash working for a company? Dec 25 08:44:36 or indepedent Dec 25 08:44:42 yep... I've got a very unique skillset Dec 25 08:44:46 that good; you dont want her to be one of the bottom two lines in the first graph here http://www.theatlantic.com/business/archive/2011/10/why-workers-are-losing-the-war-against-machines/247278/?single_page=true Dec 25 08:44:46 well a lot of skills Dec 25 08:45:04 haha Dec 25 08:45:07 mind sharing what are those skill set ron_frown ? Dec 25 08:45:08 do tell which skill it is that's making you cash Dec 25 08:45:14 maziz: lol haha +100 Dec 25 08:45:34 mawhtin I do minimal design of hardware, and lots of software design shit Dec 25 08:45:37 i think ron_frown is winning motorcycle races internationally or something Dec 25 08:45:39 work for a industrial automation company Dec 25 08:45:42 * Maziz intrigue Dec 25 08:45:51 g00s not even close to that skill level =) Dec 25 08:45:54 what degree? Dec 25 08:46:00 you play around with micro controller and stuff? Dec 25 08:46:06 interfae with them, yes Dec 25 08:46:16 so you good in assembly i assume Dec 25 08:46:21 interfere indeed Dec 25 08:46:24 let the plcs do the dirty work, and android ui/hardware do the rest Dec 25 08:46:30 i see Dec 25 08:46:31 interesting Dec 25 08:47:04 about 1.5yr ago, I build software with my business partners... myself having the ideas and the software engineering under my belt Dec 25 08:47:17 we had contracts on our desk to sign with major indian and chinese telcoms Dec 25 08:47:23 15mil/yr per client Dec 25 08:47:51 thankfully my partners greed made itself apparent prior to singing those contracts Dec 25 08:48:27 singing contracts are the worst; I'm awful at reading sheet music Dec 25 08:48:34 i see Dec 25 08:48:39 as a businessman, the one thing I'd say was the worst so far Dec 25 08:48:45 greed is a motherfucker Dec 25 08:48:50 ron_frown: give me an idea to change the world Dec 25 08:48:53 I just want to be confortable... I've got expensive habbits Dec 25 08:48:55 that fits my skillset Dec 25 08:48:59 I'm dont want to be rich Dec 25 08:48:59 i guess you have your own company huh ron_frown Dec 25 08:49:05 yeah Dec 25 08:49:11 ron_frown: says rich people Dec 25 08:49:13 i have a 3k r6. Looks shitty compared to your 13k bike Dec 25 08:49:14 entrepreneur at heart... that doesnt go away =) Dec 25 08:49:16 poor people say other wise lol Dec 25 08:49:24 ^ + 100 Dec 25 08:49:27 mawhtin do you even know what my bike is? =) Dec 25 08:49:31 ducati? Dec 25 08:49:38 are there any channels for asking SDK/android dev questions? Dec 25 08:49:47 this be it, but off topic is a-okay Dec 25 08:49:51 this is android dev Dec 25 08:49:53 we go off topic in iOS channel too Dec 25 08:49:54 well Dec 25 08:49:58 is there an on-topic one Dec 25 08:50:04 ask away Dec 25 08:50:05 just ask. Dec 25 08:50:08 I did Dec 25 08:50:12 this is not off topic. this is like some tips /pointers to be rich by doing android-dev Dec 25 08:50:13 lol Dec 25 08:50:17 hahaha Dec 25 08:50:25 so kids lets sit around and listen to o' ron_frown Dec 25 08:50:29 i need an idea! Dec 25 08:50:32 BHSPiMonkey - check your proguard Dec 25 08:50:33 give me an idea ron Dec 25 08:50:47 and also make clean Dec 25 08:50:57 mawhtin - http://sphotos-b.xx.fbcdn.net/hphotos-ash3/560555_4713805282622_551755633_n.jpg Dec 25 08:51:05 is that a monster? Dec 25 08:51:11 i knew it was a ducati lol Dec 25 08:51:12 848 streetfighter Dec 25 08:51:36 haha nice Dec 25 08:52:29 BHSPiMonkey - if you are using eclipse, I've seen it do all sorts of retarded shit regarding resources Dec 25 08:52:45 when you get classnotfound, its usually API level targetting or proguard Dec 25 08:52:58 proguard likes to try and determine used classes, and optimize other classes out Dec 25 08:53:03 ron_frown hire me Dec 25 08:53:08 i'm a pharmacist Dec 25 08:53:19 with some programming background lol Dec 25 08:53:20 which is nice except wen you instantiate stuff at runtime Dec 25 08:53:41 I'm only just now finding people I can trust again Dec 25 08:54:03 looking for partners? Dec 25 08:54:04 I think I am going to put some clauses into partnerships that help guarentee I'm not getting involved with greedy folk Dec 25 08:54:10 not actively Dec 25 08:54:42 ron_frown: can't be proguard, it happens in non-release builds Dec 25 08:54:49 what IDE Dec 25 08:55:02 I've tried deploying from eclipse (ADT latest) and intelliJ, same runtime error Dec 25 08:55:20 lol Dec 25 08:55:24 try changing api target to 14 temporarily Dec 25 08:55:33 keep it all, I seriously just want to pay off my pharmacy school loans Dec 25 08:55:41 thats the only other time I've every time Dec 25 08:55:42 this is literally why i'm back in programming Dec 25 08:55:44 I'm working with a third-party library (jar), which is where the noclassdef is occurring Dec 25 08:55:57 littlefluffylocation? Dec 25 08:55:57 but the sample application that came with it works fine Dec 25 08:56:05 you import it correctly? Dec 25 08:56:21 as far as I know (which isn't terribly far) Dec 25 08:56:30 after you add jar Dec 25 08:56:34 did you tick the checkbox Dec 25 08:56:34 ron_frown: was that directed at me? Dec 25 08:56:35 I had loads of problems getting littleflufflylocationlib recognized Dec 25 08:56:37 same sort of issue =) Dec 25 08:56:38 in order tab Dec 25 08:56:47 yeah, the checkbox is ticked -- it's getting exported Dec 25 08:57:07 exported doesnt matter as much as you might think, unless its consumed from one of your library projects Dec 25 08:57:09 it's so weird that it's an R class Dec 25 08:57:12 try putting it at a higher order maybe Dec 25 08:57:33 BHSPiMonkey - the currenttly available resources werent always available Dec 25 08:57:51 so if your minsdk/target was set too far back, it may compile, but fail at runtime Dec 25 08:59:06 sure, but the entire R$xml/R.xml mechanism? Dec 25 09:01:13 hmm Dec 25 09:01:22 is this in the population of preferences? Dec 25 09:01:42 particularly preferences fragment? Dec 25 09:02:16 hrm? Dec 25 09:02:33 well I've seen preferences fragments linked from preferences activity Dec 25 09:02:49 no, no preferences here Dec 25 09:02:53 hrmm Dec 25 09:03:10 also, when you said set the target to 14, you meant targetSdkVersion in the manifest? Dec 25 09:03:29 yeah Dec 25 09:03:30 (sorry, android-dev isn't my comfort zone just yet) Dec 25 09:03:37 that will help troubleshoot Dec 25 09:03:48 mawhtin: i think pharmacists will be replaced by robots anyhow, like the one at the ucla med school Dec 25 09:03:57 FWIW, currently I have min=12 and target=17 Dec 25 09:05:07 finally… solve a problem. Been troubleshoot it for 3 days Dec 25 09:05:08 ~_~ Dec 25 09:05:14 I hav no idea how to solve this problem Dec 25 09:05:24 no USEFUL stack trace = what a bitch Dec 25 09:05:30 I know its happening in one fragment Dec 25 09:05:32 but thats about it =) Dec 25 09:07:00 is it true that if i have 2 different IntentServices, only 1 can be active at all times? Or can they both be active because they're different subclasses? Dec 25 09:07:13 they can be active together Dec 25 09:07:17 mh... would it make sense to cache calls to Resource.getString(int id) or are they already cached? (got plenty of them in a listview) Dec 25 09:08:15 xorgate, different instance = separate handler Dec 25 09:08:22 so, different class = separate handler Dec 25 09:08:30 noganex I woudlnt cache em Dec 25 09:08:36 I am sure it does SOMETHING internally Dec 25 09:08:49 ron_frown: target of 14 didn't change the outcome, sadly Dec 25 09:08:52 ok I'm not sure, but I've never run into a problem Dec 25 09:09:00 what library is it Dec 25 09:09:26 https://github.com/kshoji/USB-MIDI-Driver Dec 25 09:09:30 ron_frown: i've had a look at the java source, but couldn't find anything. maybe somewhere in the jndi... :/ Dec 25 09:09:36 BHSPiMonkey, it's the runtime environment, not target that's too low Dec 25 09:09:46 pfn g00s so to get aroudn the problem of only allowing 1, i could just subclass it twice and call them at the same time Dec 25 09:09:58 pfn: you mean my device itself? It's running 4.2... Dec 25 09:10:11 xorgate, sure, but that seems kinda lame Dec 25 09:10:23 BHSPiMonkey, what exactly went noclassdeffound Dec 25 09:10:31 and my device has no problems running the sample application that comes with this library Dec 25 09:10:59 pfn i think i would be better off using an asynctask. i have a mapview and clicking on a marker starts an intentservice to download info about this marker Dec 25 09:11:13 pfn: R$xml (specifically, jp.kshoji.driver.midi.R$xml) Dec 25 09:11:36 BHSPiMonkey, stack trace? that shouldn't ever happen Dec 25 09:11:51 pfn - that library is just a jar Dec 25 09:11:59 so it may verywell not export any R.& Dec 25 09:12:00 r.* Dec 25 09:12:12 still, should never happen, since constants are compiled inline Dec 25 09:12:36 yeah I suppose that makes sense Dec 25 09:13:05 pfn: this is what I get http://pastie.org/private/rnmt2njgzldn2yburlkrw Dec 25 09:13:37 I'm pretty certain this is my own improper use of the library, seeing as how the demo app works Dec 25 09:13:50 xorgate: i think i misunderstood what you were asking ;) oh well seems like pfn helped you out Dec 25 09:14:08 I'm just at a loss for what specifically I need to change, and google isn't bearing much fruit so far Dec 25 09:14:40 g00s i am now starting an intentservice if a marker is clicked, but that might take a while. then the next clicked marker has to wait to download the info Dec 25 09:15:41 I should add that my error occurs upon connecting the USB device that the library handles Dec 25 09:15:51 (not at launch) Dec 25 09:17:23 xorgate: so , you want the service to handle multiple markers at the same time ? Dec 25 09:17:23 at which point some magic happens, and this method gets invoked (offending line highlighted) https://github.com/kshoji/USB-MIDI-Driver/blob/master/MIDIDriver/src/jp/kshoji/driver/usb/util/DeviceFilter.java#L61 Dec 25 09:18:02 g00s no i want a marker to be handled immediately on click, regardless of if another is handled at that moment or not Dec 25 09:20:20 * g00s confused Dec 25 09:20:30 and i didn't even have any eggnog Dec 25 09:20:43 :) click->download->wait->display Dec 25 09:20:57 but during download i might click another marker Dec 25 09:21:42 Hi all Dec 25 09:21:45 oh god... Dec 25 09:22:02 i keep thinking an intentLikeService with threadpoolexecutor or something Dec 25 09:22:05 I dont think my coworker understands the diff between static and instance vars Dec 25 09:22:09 how to get time in millisecond under adb shell Dec 25 09:22:41 I use adb shell date, but this is not what I want. Dec 25 09:22:58 to time functions or literally to just spit out date Dec 25 09:25:13 and he doesnt understand convertviews either Dec 25 09:27:21 ron_frown: i just realized sog had an even bigger machete http://sogknives.com/store/MC-02.html Dec 25 09:28:21 I like mine Dec 25 09:28:24 it looks like a giant knife Dec 25 09:28:55 $33, 3CR13 must be pretty crappy stuff Dec 25 09:29:42 ron_frown: i think the biggest one i have is the tigershark though http://sogknives.com/store/TE02-N.html Dec 25 09:29:51 mornin' Dec 25 09:31:04 g00s I want to carry my knife on my belt all the time Dec 25 09:31:08 but as best I can tell Dec 25 09:31:13 cant ever carry exposed knife Dec 25 09:32:06 and pocket knifes have crappy restrictions Dec 25 09:32:26 oh lol, for my every day carry i have a tiny knife; spyderco military http://www.spyderco.com/catalog/details.php?product=19 Dec 25 09:33:34 nice Dec 25 09:33:36 boo Dec 25 09:33:37 ron_frown: hey look "Made in Golden, Colorado U.S.A. Earth" Dec 25 09:33:41 XD Dec 25 09:33:59 sweet Dec 25 09:34:09 fixed my rotation fuck up Dec 25 09:34:22 and it was actually my other little helpers deal Dec 25 09:35:01 apparently View.Inflate, is very diff than inflater.inflate in a onCreateView of a fragment =) Dec 25 09:35:55 hmm Dec 25 09:36:14 did anyone here have the pleasure of having to create a custom ListPreference? Dec 25 09:36:23 I added the library to the project in a different way (as a module dependency instead of using the .jar) and now the crash is slightly different Dec 25 09:36:46 android.content.res.Resources$NotFoundException on some png file Dec 25 09:37:41 png file used in you app? Dec 25 09:37:48 if his is truly just a jar and not an android library project Dec 25 09:37:59 theres no standard way of accessing pngs out of HIS jar Dec 25 09:38:08 at least that was how it USED to be Dec 25 09:42:35 what the heck. I closed out of IntelliJ and started it again, ran the app again and there's no crash anymore. Works. Dec 25 09:42:54 computers are made of devil magic Dec 25 09:43:14 haha Dec 25 09:43:16 BLACK MAGIC Dec 25 09:43:53 g00s - http://sphotos-b.xx.fbcdn.net/hphotos-ash3/14606_10200206740230740_2025413294_n.jpg Dec 25 09:43:54 haha Dec 25 09:44:07 ron_frown not fuckin around Dec 25 09:45:14 so what are you going to use that for again ? Dec 25 09:45:21 self defence Dec 25 09:45:22 haha Dec 25 09:45:25 defense Dec 25 09:45:26 wat Dec 25 09:45:35 no legit need =) Dec 25 09:45:50 knife or no knife, your daughter can kick your ass Dec 25 09:45:54 keep that shit in my truck and whip it out at the most opportune time Dec 25 09:46:00 >.> Dec 25 09:46:09 yeah yeah yeah Dec 25 09:46:17 illegal to carry shit like that in your car in cali probably Dec 25 09:46:38 i thought you were going to use it to cut through the bushes after a moto wreck threw you hundreds of feet off the road Dec 25 09:47:12 shit I would think carrying something like that while riding the bike would be terrible terrible idea Dec 25 09:47:16 that thing is crazy; still not sure what its meant for Dec 25 09:47:30 I *THINK* its just supposed to be a machete Dec 25 09:47:39 too short for a machete Dec 25 09:47:40 but the shape of the knife makes it badass =) Dec 25 09:47:40 haha Dec 25 09:47:57 it looks like a trail knife, chopping, etc Dec 25 09:48:14 when the daughters bf's start coming around I'll make sure I got something like that visible Dec 25 09:48:18 you could use it to spread your peanut butter Dec 25 09:48:28 I was using it to open christmas gifts =) Dec 25 09:48:38 cut the little zip ties on toys and shit Dec 25 09:48:38 haha Dec 25 09:52:21 ron_frown: this is what you should ride with http://www.coldsteel.com/Product/88BOK/PRACTICAL_O_KATANA.aspx Dec 25 09:59:18 then I'd have to be a fat guy that lived at home and chopped umpteen jillion water bottles up in the driveway Dec 25 10:04:15 for self defense you are better off with pepper spray or something Dec 25 10:06:31 I'm not worried about it Dec 25 10:06:37 I live in white suburia Dec 25 10:06:42 there is jack shit going on around here Dec 25 10:06:42 lol Dec 25 10:12:20 ron_frown: that's what the people in newton said... Dec 25 10:12:27 *newtown Dec 25 10:14:42 nothing is gonna prevent a psycho Dec 25 10:14:53 but I'm fucking ready for combat 100% of the tim Dec 25 10:14:54 time Dec 25 10:27:34 the best defense is a good offense Dec 25 10:27:45 that's why I tackle anybody that gets within 10 feet of me Dec 25 10:32:18 Evening. Dec 25 10:32:46 more like morning Dec 25 10:32:54 Yeah, that too :-). Dec 25 10:33:02 I'm trying to use adb to copy files to my nexus 7. ] Dec 25 10:33:17 It appears "adb push" can only do one file at a time. Is there a better way? Dec 25 10:35:12 Hi, may I ask a question about building AOSP here? Dec 25 10:35:28 I have a problem with building AOSP for maguro I would like to discuss. Dec 25 10:38:47 hmm... I got a custom ImageView which I return in a grid via adapter... it has a class member variable and depending on the value of this variable, I want to draw an icon in the corner of the imageview Dec 25 10:39:22 I suppose I need to create another layout that contains this icon and by custom imageview, then return THAT in the adapter? Dec 25 10:40:19 fruits of my labor for these past few hours :) http://www.youtube.com/watch?v=1tihfVAKZAU Dec 25 10:53:13 merry xmass Dec 25 11:12:28 Merry christmas! Dec 25 11:15:49 i am having trouble accessing Drawable variable, i can normaly define it, but then like it doesen't exist Dec 25 11:15:56 http://pastebin.com/fw9j99PF can someone check Dec 25 11:47:42 here's the issue I am experiencing: Dec 25 11:47:42 if I animate fromAlpha="0" toAlpha="1" on an invisible view all is good, I get the animation as expected. Dec 25 11:47:43 While if I animate fromXScale="0" fromYScale="0" toXScale="1" toYScale="1" on an invisible view I can see in the first frame the item is shown at its full size. Dec 25 11:47:43 How does that come? And how can I avoid that? Dec 25 11:47:51 maybe someone can help me? Dec 25 11:51:37 croiz, trolol Dec 25 11:54:35 Hey. I am getting this exception: android.content.res.Resources$NotFoundException Dec 25 11:54:38 But only _sometimes_ Dec 25 11:54:49 As in, maybe every 5th to 10th time. Dec 25 11:55:32 How can it only fail sometimes. The code and the resource haven't been changed in weeks and I access it with Robotium in UI Tests. Dec 25 11:56:05 So there is a freshly compiled .apk everytime, but only this particular string resource is sometimes not found. Dec 25 11:56:09 What can be the cause of that? Dec 25 12:19:19 kakazza: try cleaning project Dec 25 12:19:53 how can an imageview have a width and height of 0 right after I set its dimensions with setLayoutParams() ? Dec 25 12:19:57 to a fixed size even Dec 25 12:24:20 no matter what I do the image sticks to 0 Dec 25 12:26:47 oh god... that was monumentally idiotic Dec 25 12:40:54 hi, I'm using onDraw to do some magic. I want to draw a rectangle of a provided Bitmap, but with rounded off edges, any clues as how I could do this? just drawing the rectangle of the Bitmap is ofcourse no problem, the rounded edges though.. Dec 25 12:44:32 can't you draw curves? like bezier ones? Dec 25 12:45:45 hm, not sure. I guess a drawArc would probably get the shape that I'm after, but I want to erase the drawn image "on the other side of the Arc" Dec 25 12:45:56 not sure if I'm going about this the right way though Dec 25 12:48:19 how do you understand on the other side? Dec 25 12:49:04 arc-line-arc-… could be also a solution Dec 25 12:49:53 or clipping Google for it Dec 25 12:50:31 yeah, the problem is as I said, might not have been clear on that point though, is that I'm drawing a piece of a Bitmap onto the screen, not just drawing a rectangle, but rather a rectangle OF a bitmap Dec 25 12:50:55 so I would want to draw an arc of a bitmap perhaps, arc-rectangle-arc Dec 25 13:01:13 so you want to draw a part from a bitmap which is rounded Dec 25 13:03:56 then create a clip area and draw the image on it. it will do what you want. I have not much xp in android development but in standard Java ui Dec 25 13:04:29 svearike i was just looking at AQuery, they have a nice feature for this: http://code.google.com/p/android-query/wiki/ImageLoading#Rounded_Corner Dec 25 13:31:39 can anyone help me understand how to use MotionEvent.getTouchMajor()/-Minor()? From the documentation I get that e.g. getTouchMajorAxis gives me the length of the axis, but how can I get the direction of that axis? I'm assuming it is different for every touch event, is that correct or is it fixed? Dec 25 13:38:08 koning_robot: not sure, but from reading the docs it seems you can use the getHistorical* functions to get the earlier event Dec 25 13:39:28 from which you can derive the direction of motion Dec 25 13:43:10 koning_robot: and I think this is mostly to determine the surface of touch (ie, some touchscreens can use it to determine touch pressure) Dec 25 13:43:22 I actually intend to use it only for finding the approximate shape of the touch Dec 25 13:43:59 right, so what would the direction of said axis signify? Dec 25 13:44:20 these methods give me the size of the ellipse, but I don't know how to find its rotation wrt the display's horizontal and vertical axes Dec 25 13:44:49 ahhhh, I'm not sure whether that's supported Dec 25 13:46:11 I mean, if you start doing that you might as well give an API for polygonal touch points Dec 25 13:47:37 yes, that would be splendid :P Dec 25 13:48:10 be sure to invent a portable touchscreen that can actually signal such events ;) Dec 25 13:49:05 I'll get to it. Anyway, thanks, now I know that what I'm looking for is not there so I can stop looking. :) Dec 25 13:54:20 while(xmas){if(beer){happy++;}else{getmorebeer();}} Dec 25 14:17:09 I guess that's what's missing from my christmas, I'm just going --happy all the time... but then I don't touch anything with alcohol so I'm doomed to be unhappy! Dec 25 14:18:06 Zharf, get some smoke in Dec 25 14:18:37 smoke? Dec 25 14:19:16 ye, crack Dec 25 14:19:30 I don't do drugs either Dec 25 14:19:45 medicinal or otherwise Dec 25 14:19:52 fair play Dec 25 14:20:30 i was joking btw, dont smoke crack Dec 25 14:21:31 Zharf: everything is a drug. Dec 25 14:22:00 your body is predicated on chemicals. Dec 25 14:22:46 crappy arguments Dec 25 14:23:53 can you call listeners/onClicks/etc like normal procedures to verify that they are doing as intented? Dec 25 14:24:16 sure? Dec 25 14:24:50 I assumed so. thanks. Dec 25 14:37:40 I'm seriously struggling with BluetoothAdapter and startVoiceRecognition(); Dec 25 14:37:54 why so serious? Dec 25 14:37:59 I'm trying to build a little game for my daughter which will listen to her voice through the BT headset Dec 25 14:38:10 and depending on certain trigger words, cause the handset to do something Dec 25 14:39:03 I've got speechRecognizer and all working great for the phone's built in headset, but I can't seem to get the BT to do anything… Currently calling mBH.startVoiceRecognition(mBH.getConnectedDevices().get(0)); Dec 25 14:40:16 That causes my BT headset to flash some random graphic, but doesn't cause any speech recognize action to happen. I looked that the VoiceDialer source a bit, but it's pretty hard to follow… I'm thinking there must be a way to do exactly the same thing I do through the phone's mic through BT without so much pain Dec 25 14:48:32 how to implement pinch to zoom? is there any free implementation which can detect tap,double-tap,fling and pinch? Dec 25 14:55:57 Hi, I have a RelativeLayout -> [ ScrollView, LinearLayout ] and I want the classical layout of scrollview at top and LinearLayout at the bottom, I got it working except for the fact that the LinearLayout in the bottom is hovering in the air, and the ScrollView is beneath it. How do I fix that ? :) Dec 25 15:00:50 Don't position the scrollview behind the linearlayout Dec 25 15:02:24 what do you mean with behind ? as in inside or after in the code? Dec 25 15:05:05 SimonVT: I'm doing it like this http://pastebin.com/JNSU4HAH Dec 25 15:06:31 So maybe the scrollviews content is as big as the parent Dec 25 15:06:58 SimonVT, yeah the content is bigger than the parent so the scrollview gets the full viewport Dec 25 15:07:22 SimonVT I want it to get viewport.height - groupLayout.height, not an inch more Dec 25 15:07:23 Maybe you want to use a linearlayout instead, and weight Dec 25 15:07:57 I tried an linearlayout earlier, I think that resulted in the groupLayout not showing at all :) Dec 25 15:08:22 Then you're doing it wrong Dec 25 15:08:28 SimonVT, obviously :) Dec 25 15:11:16 SimonVT your protip worked, I think the thing might have been the weight=1 thingie Dec 25 15:20:54 hello guys Dec 25 15:21:04 any idea how to use sherlock ? Dec 25 15:21:15 i get errors at eclipse Dec 25 15:23:33 Right click - properties - java compiler - Enable project specific settings - Compiler compliance settings: 1.6 Dec 25 15:23:35 that ought to solve it. Dec 25 15:26:50 i think it worked magicaly somehow Dec 25 15:26:58 copy pasted a class Dec 25 15:29:21 when i run it on phone i get Could not find library.apk! Dec 25 15:34:10 shit Dec 25 15:34:18 this is retarted Dec 25 15:34:28 wasting so many hours to just include a library Dec 25 15:34:32 what the fuck Dec 25 15:39:17 well Dec 25 15:39:20 without any specific error Dec 25 15:39:26 you won't get much help Dec 25 15:39:29 Parhs Dec 25 15:53:35 Hi, I write here a problem that I can't solve, http://nopaste.info/ed4230c4ba.html can anyone help me please? Dec 25 16:12:21 one problem was support library versions Dec 25 16:29:15 has anyone ever tried to integrate Facebook? it won't text me the confirmation code..been trying forever Dec 25 16:36:35 I'm having a problem with fragments and options menu: I used setHasOptionsMenu to true, and return true in my main activity's onCreateOptionsMenu, but I still don't see the option come up, or my fragments onCrreateOptions being called Dec 25 16:38:32 this is on Android 2.3 using ABS, support lib and titlePager Dec 25 16:42:27 i really get a rubber duck, discovered the problem as soon as I wrote my message Dec 25 16:45:10 what is wrong with this List categoryTables=new List
(); ? Dec 25 16:47:18 List is an interface, not an implementation Dec 25 16:48:19 Parhs: it's considered improper to ask a single question in multiple channels at once. Give one of them a chance to respond first :) Dec 25 16:51:49 Hey guys, Im trying to to findViewById and to convert to a certain fragment Dec 25 16:52:10 textFragment = (TextFragment) findViewById(R.id.text_fragment); Dec 25 16:52:26 Cannot cast from View to TextFragment... Dec 25 16:52:45 wilornel: you have to use getFragmentManager().findFragmentById or something like that Dec 25 16:53:36 wilornel: http://developer.android.com/reference/android/app/FragmentManager.html#findFragmentById(int) Dec 25 16:55:20 Fragments aren't views Dec 25 16:55:24 Cannot convert from Fragment to TextFragment Dec 25 16:56:17 oh Dec 25 16:56:19 there you go Dec 25 16:56:37 How is this thing called where you do (Integer)somedouble; Dec 25 16:57:49 wilornel: cast Dec 25 16:58:05 wilornel: does textfragment extends Fragment ? Dec 25 16:58:06 Sometimes it doesnt work, sometimes it does.. Dec 25 16:58:18 yes it does Dec 25 16:58:41 wilornel: make sure you have no issue with compatibility lib imports Dec 25 16:58:51 what? Dec 25 16:59:47 If you're using the support lib, you have to use the support methods Dec 25 16:59:47 when you use compat lib, you will have 2 different fragments : android.app.fragment and xxxxx.v4.fragment (can't remember the exact package) Dec 25 17:00:09 wilornel: use getSupportFragmentManager if you use support lib Dec 25 17:00:42 and make sure you always import classes from the same package (not mixing android.app.x and xxxx.v4.x) Dec 25 17:02:07 oh yeah that Dec 25 17:02:12 Im using the support library Dec 25 17:03:11 I ended up with this: Dec 25 17:03:11 textFragment = (TextFragment) getSupportFragmentManager().findFragmentById(R.id.text_fragment); Dec 25 17:03:19 which is giving me something null... Dec 25 17:07:30 any way how to scaffold on android/ Dec 25 17:11:19 why does this crash ? Dec 25 17:11:20 if( tab.getTag() instanceof TableCategory){ Dec 25 17:11:21 TableCategory cat=(TableCategory) tab.getTag(); Dec 25 17:11:35 textFragment = (TextFragment) getSupportFragmentManager().findFragmentById(R.id.text_fragment); Dec 25 17:11:35 why does this give me something with empty values Dec 25 17:13:02 integrate facebook???????????????????????? Dec 25 17:13:03 I smell a user question Dec 25 17:14:09 Fragment textFragment2 = getSupportFragmentManager().findFragmentById(R.id.text_fragment); this also does not work Dec 25 17:16:03 mothing? Dec 25 17:16:18 hi Dec 25 17:16:23 hi Dec 25 17:16:33 i got this problem with adb Dec 25 17:16:37 do you know why this returns a view with empty values? Fragment textFragment2 = getSupportFragmentManager().findFragmentById(R.id.text_fragment); Dec 25 17:16:40 * daemon not running. starting it now on port 6789 * Dec 25 17:16:40 cannot bind 'tcp:6789' Dec 25 17:16:40 ADB server didn't ACK Dec 25 17:16:40 * failed to start daemon * Dec 25 17:16:40 error: cannot connect to daemon Dec 25 17:16:57 seems like there is something wrong with daemon Dec 25 17:17:18 wilornel, it does that for port 5037 and 6789 Dec 25 17:17:23 erm well Dec 25 17:17:28 .......... Dec 25 17:17:41 nice nickname Dec 25 17:17:52 yes thanks you too Dec 25 17:17:59 wilornel, can you help Dec 25 17:18:32 dont think so Dec 25 17:18:55 should i get a new version of adb Dec 25 17:19:08 did you download the adt bundle? Dec 25 17:19:28 i downloaded both Dec 25 17:19:34 adt and sdk Dec 25 17:20:07 erm alright Dec 25 17:20:11 did you ever use adt before? Dec 25 17:20:22 on mac its working Dec 25 17:20:26 what are you trying to accomplish with adb? trying to connect to an emulator? Dec 25 17:20:27 on debian its not Dec 25 17:20:35 DDMS> reset ADB helps in most cases Dec 25 17:21:19 amol_gupta, how do i rest adb? Dec 25 17:21:35 wilornel, trying to connect to my device Dec 25 17:21:40 linuxuz3r: adb kill-server Dec 25 17:22:08 Estragon, i did that and i still get cannot bind to tcp:5037 Dec 25 17:22:13 above the list of devices there is a downward pointing arrow Dec 25 17:29:54 is this channel about development of android apps? is it a relevant topic? Dec 25 17:29:59 yes.......... Dec 25 17:30:14 thx wilornel, added to favorites :-) Dec 25 17:30:22 oh yay Dec 25 17:30:26 lol :P Dec 25 17:31:29 sooo what is it you wanted to talk about? Dec 25 17:33:06 wilornel: now, nothing special, later probably pthreads, java threads and ndk. Dec 25 17:33:20 oh alright then Dec 25 17:33:52 wilornel: I was just checking if I could find the right channel first. lucky me Dec 25 17:34:47 oh so you did a shot in the dark Dec 25 17:34:53 nice one! Dec 25 17:34:59 I usaly use search engines.. Dec 25 17:35:03 usualy* Dec 25 17:35:11 usually* Dec 25 17:35:39 wilornel: I am used to IRC and freenode, so my shots are not so blind Dec 25 17:35:55 AlCapwn did you get your question answered Dec 25 17:36:19 ron_frown: I found the solution just after I asked Dec 25 17:36:23 ok Dec 25 17:36:33 I needed to extend from SherlockFragment Dec 25 17:36:52 precisely =) Dec 25 17:37:05 I've recently run into that very thing Dec 25 17:45:48 Hey, I want to use a custom view in action bar and I am using action bar tabs. When I add this custom view with 'setCustomView' and 'setDisplayShowCustomEnabled', it puts customview to right of the tabs, but I want it to be placed to left of the tabs. I am showing an application icon too. Is there a way to put it to left ? Dec 25 17:56:13 can anyone help with this chunk of code: Spinner brandsSpinner = (Spinner) findViewById(R.id.brands_spinner); ? It says textview cant be cast to spinner. (brands_spinner is a spinner) Dec 25 17:56:55 its lying Dec 25 17:57:06 yep Dec 25 17:57:17 either R.id is lying or my phone is lyin Dec 25 17:57:27 clean project Dec 25 17:58:00 yah -^ Dec 25 17:59:50 anyone here ever used bitwise in sqlite? Dec 25 18:00:02 zyngawow - rebuild Dec 25 18:00:07 resource get jacked Dec 25 18:00:08 done Dec 25 18:00:14 it worked, thanks Dec 25 18:00:24 \o/ Dec 25 18:00:25 I hope the nick is just a coincidence Dec 25 18:00:53 eclipse is so stupid Dec 25 18:01:00 :P Dec 25 18:01:10 haha Dec 25 18:01:15 aapt builds the resources Dec 25 18:01:23 but I've still had LOADS better time with intellij Dec 25 18:01:36 ron_frown++ Dec 25 18:12:38 Is it possible to get the selected item's text from a spinner? Dec 25 18:17:45 Does anyone know how to use speechrecognizer with bluetooth? I've been googling and trying stuff for hours and can't see any working examples Dec 25 18:18:00 zyngawow - is the selected item an actual object? Dec 25 18:18:04 although the voice dialer would do it I suppose, I can't seem to find for the source for that anywhere either Dec 25 18:18:09 if so getSelectedItem().getName() whatever Dec 25 18:18:52 ron_frown: idk... I'm just adding them trough an arrayadapter Dec 25 18:19:08 yeah Dec 25 18:19:14 stringarray or object array Dec 25 18:19:26 cast selecteditem to string Dec 25 18:27:53 Hey guys im having a graphic which only updates when I touch it.... Dec 25 18:28:07 Same thing about casting textview happens now on this line: ArrayAdapter seriesAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_item, series.get((String) ((Spinner) view).getSelectedItem())); Dec 25 18:30:17 if I make an OpenGL ES 2.0 only application, what kind of device coverage (%) am I looking at? Dec 25 18:32:02 wilornel need more detail Dec 25 18:32:07 but I'd assume you need to invalidate() Dec 25 18:32:20 wtf Dec 25 18:32:22 wonder what kind of screenshots I'd take of an application that has no UI... mmh Dec 25 18:32:24 ron_frown: give me a sec Dec 25 18:32:32 look Dec 25 18:32:38 on my phone, the graphic works just well, it updates automatically Dec 25 18:32:40 zyngawow are you attempting to have cascading spinners Dec 25 18:32:48 no Dec 25 18:32:52 well Dec 25 18:32:52 yes Dec 25 18:32:55 the phone is like v2.2 Dec 25 18:33:13 ron: but on my tablet, which is 4.0.4, the graphic doesnt update automatically Dec 25 18:33:20 it looks like in the tablet itself it works Dec 25 18:33:24 I get some data about printers from a mysql database Dec 25 18:33:29 but I have to touch it to see the new graphic Dec 25 18:33:39 and I have to sort them on 3 spinners by brand, series and model Dec 25 18:33:55 I dont need to touch the graphic to make it work, but to change the display Dec 25 18:35:23 Any way how to scaffold on android? I am tired on writing pojo objects, DDL's and basic selects/updates for every damn project Dec 25 18:35:58 If I gold my finger on the graphic, its constantly updating and it looks like it works properl Dec 25 18:36:00 y Dec 25 18:36:26 trudko - to sqlite? Dec 25 18:36:38 https://github.com/roscopeco/ormdroid Dec 25 18:36:40 ron_frown: do you understand the issue? Dec 25 18:36:42 I'm a contributor =) Dec 25 18:36:56 what? Dec 25 18:37:00 wilornel - what graphics Dec 25 18:37:06 http://www.jjoe64.com/p/graphview-library.html?showComment=1356141076946 Dec 25 18:37:09 you are drawing bitmap on canvas, or its just a imageview Dec 25 18:37:21 well I dont know... Dec 25 18:37:24 mother fucker Dec 25 18:37:25 how do I check? Dec 25 18:37:27 someone copied my shit Dec 25 18:37:28 D: Dec 25 18:37:31 lol Dec 25 18:37:32 ron_frown yeah, something Like ruby on rails has Dec 25 18:37:44 ron_frown: you made a graphic? Dec 25 18:37:59 ADT helps you with a lot of things but I did not find any help with model layer Dec 25 18:38:07 http://imageshack.us/a/img560/2002/overviewm.png Dec 25 18:38:12 I made that about 1.5yr ago Dec 25 18:38:19 graph is completely owner drawn by myslef =) Dec 25 18:38:21 hmmm Dec 25 18:38:24 look alright Dec 25 18:38:30 looks* Dec 25 18:38:43 I dont like the dots >.< Dec 25 18:38:46 ead Dec 25 18:38:47 haha Dec 25 18:38:51 I can easily rip that out Dec 25 18:39:03 hehe it would look a lot better :P Dec 25 18:39:04 but yeah that library is more complete anyway Dec 25 18:39:07 yours? Dec 25 18:39:11 or his? Dec 25 18:39:15 his Dec 25 18:39:20 ok Dec 25 18:39:21 I never got to make my lib very mature Dec 25 18:39:25 I see Dec 25 18:39:29 shit is always moving mil miles an hour at my work Dec 25 18:39:37 but uhm... how do I fix my issue? Dec 25 18:39:46 I dont know Dec 25 18:39:50 no experience with the lib Dec 25 18:39:53 sounds like a lib problem Dec 25 18:40:00 well you were asking if it was bitmap or smthing Dec 25 18:40:25 yeah Dec 25 18:40:32 that library internally uses draw calls on a canvas Dec 25 18:40:51 its a pretty simples library isnt it? Dec 25 18:40:51 but that being said updates must happen in onDraw() and when data changes, or on initialization, new datapoints etc Dec 25 18:40:54 simple* Dec 25 18:40:56 you have to call invalidate() Dec 25 18:41:04 invalidate on what? Dec 25 18:41:07 the fragment? Dec 25 18:41:09 the graphic? Dec 25 18:41:15 should be handled internally in the graph lib Dec 25 18:41:29 Merry Christmas and Happy Miscelaneous Other Holidays! Dec 25 18:42:07 ron_frown: Ill try to invalidate the graphview Dec 25 18:42:28 aarcane: thanks Dec 25 18:42:41 wilornel, :) Dec 25 18:43:03 ron_frown: it doesnt work Dec 25 18:43:21 aarcane: what are you celebrating? Dec 25 18:43:48 wilornel, It's christmas for must of us, but we also have a christmas/haunukah hybrid with us today Dec 25 18:43:48 merry christmas me Dec 25 18:43:49 http://sphotos-b.xx.fbcdn.net/hphotos-ash3/560555_4713805282622_551755633_n.jpg Dec 25 18:43:57 too bad I got it 2 mo ago and have nothing to open this morning Dec 25 18:43:57 =( Dec 25 18:44:06 aarcane: well happy holidays P Dec 25 18:44:17 ron_frown: lol Dec 25 18:44:25 its nice Dec 25 18:44:28 but uhm Dec 25 18:44:34 invalidating doesnt woooork d: Dec 25 18:44:36 D: Dec 25 18:45:22 you need to explain problem better Dec 25 18:45:55 alright one second Dec 25 18:48:44 also, can I connect to MySQL databases from android as I would do with plain Java? Dec 25 18:49:39 can I make google play application search for apps that have a specific intent filter specified? Dec 25 18:50:21 ron_frown: I changed the targetSdk from 16 to 13... and now it works.. Dec 25 18:50:37 ron_frown you there? Dec 25 18:50:48 it works even without the invalidate Dec 25 18:50:49 yes Dec 25 18:50:50 whuuuuut Dec 25 18:50:52 I dont know why Dec 25 18:51:11 but that means that newer versions wont be able to use my app, right? Dec 25 18:52:13 ron_frown: have you reacted on my question, I not sure if you forgot or I am blind :) Dec 25 18:52:13 ron_frown Dec 25 18:52:49 trudko what is it? Dec 25 18:52:59 wilornel: what is what? Dec 25 18:53:06 what is the question? Dec 25 18:53:57 ou I was curious if there is anything like Scaffold in ruby on rails for Android. I am tired doing basic DDL scripts pojos, selects, updates basic vies etc Dec 25 18:54:02 basic views Dec 25 18:54:23 for how long have you been doing this? Dec 25 18:54:33 I did not understand half of what you said ._. Dec 25 18:57:41 doing what? Dec 25 18:58:06 Do you know what Scaffold does in Ruby on Rails? Dec 25 18:58:31 trudko: Not afaik Dec 25 18:58:46 trudko: I wish there was though, because that'd be _so_ awesome Dec 25 18:59:03 trudko Dec 25 18:59:12 https://github.com/roscopeco/ormdroid Dec 25 18:59:12 in the maps v2, how can i catch the 'center my location' button click? Dec 25 18:59:16 get something like that Dec 25 18:59:18 trudko: There are DB libraries that will sort of allow you to put in arbitrary objects and store them arbitrarily by key, but no scaffolding Dec 25 18:59:38 Person p = Entity.query(Person.class).where("id").eq("1").execute(); Dec 25 18:59:38 p.telephone = "555-1234"; Dec 25 18:59:38 p.save(); Dec 25 18:59:44 thats pretty straight forward... no? Dec 25 19:00:22 trudko: http://code.google.com/p/android-active-record/?utm_source=androidweekly&utm_medium=toolbox Dec 25 19:01:09 or that Dec 25 19:01:58 not syntax I like but that would work too Dec 25 19:02:01 That ORM thing is pretty nice, never heard of that before. Dec 25 19:04:05 I just really wish that Google made a tool analogous to the core data modeler in xcode ;-\ Dec 25 19:04:33 oh go Dec 25 19:04:37 god Dec 25 19:04:43 read up on android ORM's Dec 25 19:04:53 they can be MUCH less complicated than xcodes crapola Dec 25 19:05:45 thats why I started contributing to ormdroid Dec 25 19:05:48 soooooo simple Dec 25 19:05:56 trudko: Also, androidweekly.net for a list of libs Dec 25 19:05:58 just inherit from Entity and mark up your Id field Dec 25 19:06:01 and BAM Dec 25 19:06:05 ready for persistence Dec 25 19:06:10 ron_frown: Really? I think core data's modeler is soooo nice Dec 25 19:06:11 20k jar Dec 25 19:06:16 Especially if you have relational models Dec 25 19:06:53 personal opinion here... if you need relational models Dec 25 19:07:01 some custom persistence model may be advisable Dec 25 19:07:12 ron_frown: and hwrd|work thx for tips Dec 25 19:07:25 I dont like mapping OBJECTS to tables... seems like theres just tons of room for failure Dec 25 19:07:44 ron_frown: but… you are also able to provide restraints.. which is the best part! Dec 25 19:07:52 ron_frown: you can say this object has these properties Dec 25 19:07:54 constraints? Dec 25 19:07:58 it's fucking great imo Dec 25 19:08:34 I've build several full blown orms (.net and .net for oracle specifically) Dec 25 19:08:53 and there are some pretty big design flaws with them Dec 25 19:09:03 but its because of the rdbms in the equation, not the framework Dec 25 19:11:48 what's the best way of knowing if the app gets "minimized" ? I have a periodic task running that I want to stop unless the user actually sees the results Dec 25 19:13:14 it's network based so I can see that it still fires in the background even though the main activity is "minimized" (I have another ongoing task in the notification bar - which might be the reason for the activity not being killed) Dec 25 19:13:44 svearike service and stop/start it with onpause/onresuem Dec 25 19:13:55 if you dont want it runnign when app is out of the picture Dec 25 19:14:05 just launch as a separate thread stopping/starting in onresume/onpause Dec 25 19:14:17 ron_frown, ah, onPause on Resume sounds just about right Dec 25 19:15:01 I dunno, the two times I worked with core data it was fantastic. Dec 25 19:15:24 I didn't really do too much "in-depth" though… but for on the surface stuff it was >>> android Dec 25 19:16:05 it was nice there was SOMETHING included Dec 25 19:16:13 android should have wrapped something up Dec 25 19:16:17 MOST andorid orms Dec 25 19:16:29 are just somewhat minimized versions of their full blown java counterpart Dec 25 19:17:19 For some reason I also heard someone say that Android's sql performance dropped in ICS Dec 25 19:18:05 somone needs to build micro mongo Dec 25 19:18:07 for android Dec 25 19:18:07 native Dec 25 19:18:20 thats exactly where that sort of shit makes a huge amount of sense Dec 25 19:24:06 If I want to create a custom Service with extra data, is it just a matter of making a constructor for the Service? Dec 25 19:25:15 or is there some other way to externally pass in values to a Service ? Dec 25 19:26:19 maslen: Pass it in an intent Dec 25 19:27:17 OK, how do I add the extra parameter, say an int, to it, and how do I retrieve the int from within the Service?\ Dec 25 19:27:52 intent.putInt("myIntKey", 13317) Dec 25 19:28:09 intent.getExtras().getInt("myIntKey") Dec 25 19:28:27 right, but I'm looking through the methods, and don't see where I can pull that out from inside of the Service. Dec 25 19:28:34 onStartCommand gives an intent Dec 25 19:28:38 (Sorry if I'm being blind :( ) Dec 25 19:29:08 Oh, nice Dec 25 19:29:13 thanks Dec 25 19:29:15 np Dec 25 19:41:21 hello Dec 25 19:41:23 anyone aware of any service only apps on the market? Dec 25 19:41:28 ok so I'm playing with Fragments Dec 25 19:41:32 * Zharf is wondering what kind of screenshots they provide Dec 25 19:42:06 i need to vertically align a menu that is configured in a layout xml file that is in a RelativeLayout. I tried using android gravity bottom or center vertical but nothing moves them vertically. any information regarding the issue would be greatly appreciated. Dec 25 19:45:10 zharf like facebook? Dec 25 19:45:16 ufk: first of all, android:gravity specifies the layouting within a views own bounds Dec 25 19:45:26 ufk: not within the containing layout Dec 25 19:45:39 ron_frown, it has a UI Dec 25 19:45:41 ufk: secondly, within relativelayout gravity has no meaning Dec 25 19:45:46 oh Dec 25 19:45:50 ufk: layout_gravity, I mean Dec 25 19:45:51 I get what you are saying Dec 25 19:45:56 shouldnt really matter tho Dec 25 19:46:10 so what can i use to vertically align the title and buttons ? Dec 25 19:46:42 ron_frown, why not? it's a bit hard to take screenshots for google play of an app that doesn't have a UI ;) Dec 25 19:46:45 ufk: I don't know what you're trying to accomplish exactly, but use of RelativeLayout is not necessary most of the time Dec 25 19:46:58 but I found some that only has some random logo as a screenshot :) Dec 25 19:47:14 ufk: ie, RelativeLayout allows you to position stuff anchored to the edges of the screen or other elements Dec 25 19:47:19 Maurits_: i have a logo that needs to be pinned to the bottom right corner so people told me is should use relative Dec 25 19:47:38 thats what makes sense Dec 25 19:47:52 ufk: well, that depends on what else that screen needs to show Dec 25 19:48:42 Maurits_: just title, buttons, and logo and bottom right corner Dec 25 19:48:49 oh and background image Dec 25 19:49:00 right Dec 25 19:49:07 relativelayout should be okay for that Dec 25 19:49:17 background image is something you can set as a view property Dec 25 19:49:35 which is recommended, instead of positioning an imageview behind everything Dec 25 19:50:00 it can't be a property.. i don't want it to be scaled. it's a big image that should be cropped depends on the screen size Dec 25 19:50:14 it's an art :) Dec 25 19:50:21 ufk: but read up on how RelativeLayouts work, or use the Eclipse layout editor to position it Dec 25 19:50:37 i use the eclipse layout editor to position everything Dec 25 19:50:53 but still on large screens all the buttons appear at the top. how do i center everything Dec 25 19:51:01 right, it'll show you where it is anchoring the element to Dec 25 19:51:06 see http://developer.android.com/guide/topics/ui/layout/relative.html for specifics Dec 25 19:51:21 if Eclipse gets it wrong, you can use the info there to fix the xml layout Dec 25 19:51:25 Do people launch their AVDs with 1:1 scale compared to real devices or 1:1 pixel by pixel? Dec 25 19:51:44 Can somebody help me with an app desing? I have to get data about printers from a database. The printers have a brand, a series, and a model. I have to make 3 spinners so that when you select the brand on the first one, it shows the corresponding series on the series spinner, and the same with the models. Thats what I thought could be the desing, can anybode find anything better? Dec 25 19:52:20 I already read how RelativeLayout works.. and i'm still lost Dec 25 19:52:25 but thanks for trying to help Dec 25 19:52:40 ufk: well, see the part where it says: Dec 25 19:52:59 layout_centerVertical?! :) Dec 25 19:53:23 yeah, and alignParentBottom="true" Dec 25 19:53:33 *layout_alignParentBottom="true" Dec 25 19:53:50 i'll test some stuff.. thanks Dec 25 20:05:53 i want to add a view to a framelayout programmatically. it works, but i want its layout_margintop to be honored. instead, it just goes in the topleft corner. How can i create a 'gap' between the top of the framelayout and my view? Dec 25 20:06:56 if i change alignParentTop to alignParentBottom won't it just stick it to the bottom instead of the top while i need it centered ? Dec 25 20:09:07 if I choose a name for my app and release and not like it at some point anymore, can I still change it? Dec 25 20:09:15 on the market too Dec 25 20:09:25 ufk: well, you said the button had to go to the bottom right Dec 25 20:10:03 ohhh awesome i didn't realise that was for that :) Dec 25 20:10:08 ufk: so you use layout_alignParentBottom and layout_alignParentRight to do that :) Dec 25 20:10:13 i thought we where still talking about centering my stuff Dec 25 20:10:54 What would be the best way to store on a website (text file) objects that have a brand, a series and a model? Dec 25 20:12:18 ufk: then you want to center the title image horizontally at the top of the screen? Dec 25 20:12:32 or title text Dec 25 20:12:44 or both horizontally and vertically? Dec 25 20:12:54 i want to center the title and the buttons together at the center of the scree Dec 25 20:12:56 screen Dec 25 20:13:48 right, center the title using layout_centerVertical="true" and layout_centerHorizontal="true" first Dec 25 20:13:59 (and no other layout_* attributes Dec 25 20:15:54 hello i have one smartphone and i want create one androd system but from scratch and add just one browser , no bluetoo, .. how can do this. ? where can read info for build one android system empty Dec 25 20:16:32 ok Dec 25 20:17:32 if that looks right, give the title an idea, and try positioning the first button below it with layout_below="@id/your_title_id" Dec 25 20:17:37 *an id Dec 25 20:19:23 k trying to run the android vm to see how it works so far. i must say it works really slow on osx :( Dec 25 20:19:45 ufk: are you using the x86 VM? Dec 25 20:20:06 use Atom x86 as the base image, and enable GPU emulation Dec 25 20:20:13 that should make it as fast as a device Dec 25 20:20:18 the x86 vm with gles emulation works very well on my linux Dec 25 20:20:22 but really crappy still on my windows Dec 25 20:20:26 i'll try Dec 25 20:20:37 thanks Dec 25 20:23:32 i want to delete a view from a layout, using an animatin (it slides away, then is deleted). how? Dec 25 20:24:42 also it should work on 2.2 Dec 25 20:28:19 xorgate: I guess TranslateAnimation could work Dec 25 20:28:44 the x86 vm is causing me problems and is slow for me Dec 25 20:28:45 I personally would just disable the animations on pre-3.0 and use the nice new API's Dec 25 20:28:48 going back to the old one Dec 25 20:28:59 http://stackoverflow.com/questions/14033444/android-actionbar-places-custom-view-to-right-of-tabs Dec 25 20:29:01 I dunno, I'm on a mac and it's working very well Dec 25 20:29:08 would you take a look? Dec 25 20:29:29 welp i'm on a hackintosh :)\ Dec 25 20:29:42 but thanks for the tip anyways Dec 25 20:30:25 welp the title is not centered at all Dec 25 20:30:32 everything is pinned to the bottom Dec 25 20:30:38 i'll pastebin my layout xml file Dec 25 20:31:59 http://pastebin.com/HQpw9k4q Dec 25 20:34:24 looks alright, hard to tell without access to eclipse Dec 25 20:34:29 might have a look once I get home Dec 25 20:34:52 xorgate: nineoldandroids for animations Dec 25 20:34:54 kfirufk@gmail.com i'm off to bed. i'll be glad to some tips Dec 25 20:35:40 thanks man Dec 25 20:43:51 hello i have one smartphone and i want create one androd system but from scratch and add just one browser , no bluetoo, .. how can do this. ? where can read info for build one android system empty Dec 25 20:53:15 so i think i have the TranslateAnimation working, sorta. How to deal with a view sliding out of the screen and being deleted? In an animation listener's onAnimationEnd call holder.removeView(oldView) ? Dec 25 20:53:25 cause i'm getting some crashes doing that :) Dec 25 20:53:48 what's the error? Dec 25 20:54:06 it's all in android code, not mine Dec 25 20:54:12 but my method is probably wrong Dec 25 20:54:18 well, I mean Dec 25 20:54:20 when it crashes Dec 25 20:54:26 what's the exception? Dec 25 20:54:50 i find the old view, attach an animation, set a listener to remove on animation end. At the 'same' time, i make a new view, and attach a different animation Dec 25 20:55:11 you're saying it crashes Dec 25 20:55:13 but the two views both stem from the same layout file Dec 25 20:55:23 what's the the exception thrown when it crashes? Dec 25 20:55:39 https://gist.github.com/4375374 Dec 25 20:55:55 NullPointerException >.> Dec 25 20:56:00 ah Dec 25 20:56:56 code: https://gist.github.com/4375379 Dec 25 20:58:17 xorgate: http://stackoverflow.com/questions/3025163/how-to-remove-a-view-when-animation-ends Dec 25 20:58:19 i try to get json from http with java but it is somewhat slow Dec 25 20:58:31 i have 100ms delay Dec 25 20:58:50 Parhs: what the time does it take to download the json from your website? Dec 25 20:59:00 maybe the webserver creating it slowly? Dec 25 20:59:01 it is local web service.. Dec 25 20:59:16 from computer it takes 7ms Dec 25 20:59:23 Maurits_ yes that would be it.. but i think we should be using a newer animation framework? Dec 25 20:59:28 i used wireshark to see what happens Dec 25 20:59:39 xorgate: you can't, new animation stuff==HC+ Dec 25 20:59:44 and it seems that android TCP ACK response is slow Dec 25 20:59:54 Maurits_ and not in support lib then i guess Dec 25 21:00:18 xorgate: cool stuff though: http://developer.android.com/reference/android/animation/LayoutTransition.html Dec 25 21:00:58 really nice convenience class to cover most animations Dec 25 21:01:03 well if it was 1000ms i would say it slow, but 100ms... what the desired delay you want? Dec 25 21:01:08 are you hoping for 20ms? Dec 25 21:01:22 yes sometimes it gets as low as that Dec 25 21:01:31 but it is random.. web service is fast because it is local Dec 25 21:01:49 even windows mobile old phone wasnt that slow Dec 25 21:01:52 I wasn't talking about the delay to send the files from webserver to android Dec 25 21:02:00 but the delay the server create the output Dec 25 21:02:10 the delay of server to create output is 7ms Dec 25 21:02:11 oh you have history to compare with, k Dec 25 21:02:19 then that pretty much mean issue on android side Dec 25 21:02:28 Maurits_ well that did the trick it seems! thanks Dec 25 21:02:33 np Dec 25 21:03:37 I use php to create my json, but my json files are most likely bigger then yours, but I haven't found any big issue on delay, can't really help you... Dec 25 21:04:17 it isnt really slow Dec 25 21:04:27 but i want instant response as fast as possible Dec 25 21:04:32 yeah, and android's TCP/IP stack is exactly the same as the linux one Dec 25 21:04:32 oh Dec 25 21:04:36 so could be device related Dec 25 21:04:41 http://i.imgur.com/n1dZP.png here is the wireshark log Dec 25 21:04:47 Parhs... I might know what it is... but hum 2 sec... Dec 25 21:04:51 but in general android isn't significantly slower Dec 25 21:05:53 it shouldnt Dec 25 21:06:03 as you see it is 3ms for response Dec 25 21:06:37 but the last ack is 20ms later Dec 25 21:06:40 Parhs: http://docs.oracle.com/javase/1.4.2/docs/api/java/net/Socket.html#setTcpNoDelay%28boolean%29 Dec 25 21:06:44 http://www.jguru.com/faq/view.jsp?EID=42242 Dec 25 21:06:51 that the only thing I can think of Dec 25 21:07:09 i suspected that Dec 25 21:07:24 but i dont know if can do anyhthing from high level HttpURLConnection Dec 25 21:07:25 not sure if you control the socket with java, but try to setup a tcpnodelay Dec 25 21:07:36 yes, that what I feared... Dec 25 21:07:39 or to avoid blocking somehow ? Dec 25 21:07:54 well if you do not use SSL you can just use a socket and connect to it, pretty simple Dec 25 21:08:22 but i'll have to implement http my self? Dec 25 21:08:28 or try to search in HttpURLConnection for tcpnodelay Dec 25 21:08:43 tcp is just 1 packet sent, then you receive the data of the page... Dec 25 21:10:32 http://www.mail-archive.com/commons-httpclient-dev@jakarta.apache.org/msg02158.html Dec 25 21:10:53 that might be a long shot... just does your server enable compression? deflate/inflate? Dec 25 21:11:10 also is the size predefined when it sent the json, or random? Dec 25 21:11:31 i havent enabled compression Dec 25 21:11:43 it isnt meant to be used by many users Dec 25 21:11:55 max 5-6 concurently Dec 25 21:11:56 basically when the browser download the file, does it know the filesize before downloading it Dec 25 21:12:42 size is predefined at response Dec 25 21:13:39 k, then not really sure >.> but does seem to be related to the ack/nodelay Dec 25 21:14:19 there also a way to change the server setting for ack, but not sure it will help, most people use it in counter-strike/d3/WoW to reduce the ping, it force an ack on every packet Dec 25 21:15:20 http://lifeandcode.net/tag/tcp-no-delay/ Dec 25 21:15:28 info there, you could try that on the server Dec 25 21:24:35 hey, where should I put constant values that are used globally in an android project? Dec 25 21:28:15 in res\ Dec 25 21:28:34 res\values even Dec 25 21:34:21 NeDra isnt the problem at android ? Dec 25 21:40:49 any reason why setPivotX() would make setPivotY not work? Dec 25 21:47:15 it's kindof hard to submit 2 mandatory screenshots to google play when your app has only one activity screen Dec 25 21:48:27 have one with some data in Dec 25 21:48:36 or different data Dec 25 21:48:49 or what does 'flashlight' do. Dec 25 21:49:02 heh Dec 25 21:49:18 (which only ever has a bright white screen) Dec 25 21:50:14 https://play.google.com/store/apps/details?id=com.intellectualflame.ledflashlight.washer Dec 25 21:50:20 these are not quite screenshots Dec 25 21:50:21 Hi, ./adb devices is not listing my GT-N7000, I have custom 4.1.2 rom on it, Os - linux. My question would be where to start look for problem? Dec 25 21:50:49 nkts, http://developer.android.com/tools/device.html Dec 25 21:51:33 nkts: check adb under root, can be a permissions problem Dec 25 21:56:32 https://play.google.com/store/apps/details?id=org.dyndns.devesh.flashlight Dec 25 21:56:35 I meant Dec 25 21:56:44 the screenshots are there Dec 25 21:56:55 and as are as expected, pure white Dec 25 21:56:57 :-) Dec 25 21:57:43 varjag, the same issue with sudo/root Dec 25 21:58:19 SpeedEvil: haha Dec 25 21:58:34 nkts: what dmesg says when you insert the device? Dec 25 21:58:49 varjag, http://p.defau.lt/?qyfO6YtdP_AH9lU5OSjTHQ Dec 25 21:58:52 did you enable usb debugging on the phone? Dec 25 21:59:02 yes, debugging is enabled Dec 25 21:59:22 hm odd Dec 25 21:59:29 yes Dec 25 21:59:40 when you run emulator, can you find it with adb? Dec 25 22:03:29 varjag, yes, I can find emulators with adb Dec 25 22:10:31 nkts: did you create the udev rules file? Dec 25 22:10:57 varjag, no, never had to do so Dec 25 22:11:05 it was working some time ago Dec 25 22:14:29 varjag, wondering if I tick usb debugging but actually it's not working .. Dec 25 22:14:58 well try the rules file Dec 25 22:15:10 everything has to happen for the first time at some point Dec 25 22:17:57 varjag, in both cases i got the same vendor and prod id.. this should be true Dec 25 22:18:16 shouldn't* Dec 25 22:18:35 it's hard to tell what has changed then Dec 25 22:18:40 try a different usb port maybe Dec 25 22:19:28 i'm trying to use ObjectAnimator to slide a popup window into the screen: https://gist.github.com/4375756 I want it to start just outside of the screen, then slide inside so it's at 0,0. But i can't tell it where to start because getWidth() returns 0.. any ideas? Dec 25 22:24:23 varjag, phone is detected in recovery mode by adb Dec 25 22:31:14 what's the recommended way of coding alot of tabs / views / etc, should the logic code be tied together with the current active view or rather back to the activity? Dec 25 22:33:13 nkts: does lsusb show the device? Dec 25 22:33:21 lov, yes Dec 25 22:33:25 interesting. Dec 25 22:33:37 Try modifying your adb_usb.ini file Dec 25 22:33:45 I'm looking at rom thread on xda Dec 25 22:33:52 maybe there's know bug Dec 25 22:34:08 lov, it's linux ;) Dec 25 22:37:53 Oh, I know. Dec 25 22:38:07 Just the same, adb doesn't know about certain devices unless you modify the adb_usb.ini file Dec 25 22:38:10 I'm not talking about an inf file Dec 25 22:38:20 there should be an adb_usb.ini file in the .android directory under your home dir Dec 25 22:49:12 lov, yes, it says use "android update adb" to pupulate that file, but still it's empty after all Dec 25 22:49:59 bloody xda forum, how to run quickly thru all 500 pages.. Dec 25 23:32:50 lov, tracked down, it's rom problem Dec 25 23:33:30 ello Dec 25 23:36:35 how much testing do you guys do on simple apps? say, something that doesn't really need to worry excessively about screen form factor, exact sizings, etc Dec 25 23:37:13 I have two devices (2.1 and 4.2) and the emulator, it seems like I'm missing out a lot there, from Google's stats most people are on 3.x Dec 25 23:39:23 anyone knows why getActionBar().setSelectedNavigationIndex(2) would do absolutely nothing? :) I'm using tabbed navigation Dec 25 23:40:15 I'm calling it from within onCreate Dec 25 23:43:59 nkts: ha! Dec 25 23:44:16 nkts: yeah, usually you can populate the adb_usb contents via the lsusb values Dec 25 23:45:19 Most people have 2.3 devices as far as i know danedgecumbe Dec 25 23:47:06 danedgecumbe: god knows how that happened for you. 50% of users are on 2.3.x Dec 25 23:48:49 my mistake. I did mean 2.3.x. not sure how I missed the initial part Dec 25 23:49:24 is it generally okay to assume that if something works on an earlier version, it should be fine? Dec 25 23:49:35 well Dec 25 23:49:42 You should test at your targetSdk level Dec 25 23:49:47 that's the highest level you've tested against Dec 25 23:49:55 any api levels higher than that should have compat code to help you out there Dec 25 23:50:12 you should, of course, test at least your minSdk level and your targetSdk level Dec 25 23:50:17 but you may wish to test levels inbetween Dec 25 23:50:24 well if the code is really good :) Dec 25 23:50:32 take a look at the patch notes for each api level to see if there's a change that would affect you Dec 25 23:50:44 for simple apps, there shouldn't be much of a problem Dec 25 23:50:45 I wrote something and it was working on 2.3.x but not on 4.x Dec 25 23:50:46 hm, I see. so, it is not sensible to use targetSdk as the maximum Dec 25 23:50:57 layouts may look crappy on large screens as opposed to phone screens, but they'll still be functional. Dec 25 23:50:59 at the minute I am using minimum 7, max 17 Dec 25 23:51:01 well Dec 25 23:51:08 you really shouldn't set a maxSdk level Dec 25 23:51:15 unless you KNOW that your app won't work above that level Dec 25 23:51:16 is there an intent to send a telephonenr to the dialer, without calling it? Dec 25 23:51:19 target sdk 17, sorry Dec 25 23:51:49 xorgate: sure. Dec 25 23:51:55 (hint: tel uri) Dec 25 23:52:19 u Dec 25 23:52:34 danedgecumbe: honestly, depending on what you're doing, you might want to increase your minApi level Dec 25 23:52:45 there's just so few users that it's not worth the hassle of testing Dec 25 23:52:54 and there's so, so many stupid fucking bugs down below gingerbread Dec 25 23:52:55 lov: it's mainly because at present my main cellphone is 2.1 Dec 25 23:52:57 especially due to manufacturers Dec 25 23:53:03 I haven't come across anything that needs 2.2+ yet Dec 25 23:53:04 danedgecumbe: root and flash CM or something Dec 25 23:53:34 I'm probably just going to get a newer phone because it has very limited RAM Dec 25 23:53:34 are you running the original droid or something? Dec 25 23:53:37 yeah Dec 25 23:53:45 I can't imagine using something still on 2.1 at this point Dec 25 23:53:47 it has to be painful Dec 25 23:53:59 I use it as a phone, basically Dec 25 23:54:04 and nexus 7 for other stuff Dec 25 23:54:04 :p Dec 25 23:54:41 anyhoo Dec 25 23:55:02 as long as you test on the major levels (2.3, 3.2, 4.1) you're probably fine Dec 25 23:55:19 and unless you care about your layout looking pretty, you're probably fine resources wise Dec 25 23:56:12 yeah. well the stuff I am coding atm, is all texture/bitmap based. so it's quite hard for it to vary by device version Dec 25 23:56:31 the settings screen might look a bit daft on larger displays but I can test that Dec 25 23:57:07 uhmm, the voip api doesn't support video sip calls, right? Dec 26 00:03:40 what is the right idiom for doing a network request and updating something in the ui with the results? Dec 26 00:03:43 lov thanks for the hint it works ;) Dec 26 00:04:16 is it reasonable to do something like Thread t = new Thread() { public void run() { results = longWork(); } } then do t.start(); t.wait(); updateUI(results); Dec 26 00:05:30 spiantino: use an AsyncTask Dec 26 00:05:36 also, is it unreasonable to try to build your first android app on christmas :) Dec 26 00:05:42 nah Dec 26 00:05:47 lov: ok will google that thanks Dec 26 00:05:47 dive right in Dec 26 00:06:03 http://developer.android.com/reference/android/os/AsyncTask.html Dec 26 00:06:17 bear in mind that you don't want to block the UI thread. Dec 26 00:06:28 Waiting on the UI thread blocks the UI thread, defeating the point of using another thread to do it :P Dec 26 00:06:42 Consider making your actions event driven, if possible. Dec 26 00:07:08 If you block the UI thread, the user can't interact with your app. If you block it for too long, you get an application not responding dialog and the user will just force-close it and uninstall it. Dec 26 00:07:32 do you HAVE to submit an app to google play in order for people to download it? Dec 26 00:07:34 http://stackoverflow.com/questions/13719792/application-crashes-on-orientation-change-while-showing-progress-bar-in-asynctas Dec 26 00:07:38 Anyhoo, http://developer.android.com/training/basics/network-ops/index.html Dec 26 00:07:42 asynchtask Dec 26 00:07:43 yeah i figured wait() was defeating the purpose here but i didn't know what else to do Dec 26 00:07:50 bigap: no Dec 26 00:07:55 that might help you with your networking Dec 26 00:08:00 bigap: no, but it's by far the most visible. Dec 26 00:08:14 You can just stick the APK on a website, but people will have to enable installing from non-market sources to install your app. Dec 26 00:08:15 well if i want to build an app and just release it for specific people not everyone Dec 26 00:08:17 its fine right? Dec 26 00:08:18 bigap: there are various competing appstores, and you can even put it on your website as an apk Dec 26 00:08:21 bigap: sure. Dec 26 00:08:25 oh ok cool Dec 26 00:08:25 You can even email it to people Dec 26 00:08:35 http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something/3359003#3359003 <-- asynctask Dec 26 00:08:37 but, again, they'll have to enable installing from non-market. Dec 26 00:08:49 but with iphone apps you cant do that am i correct? Dec 26 00:08:56 well this class is just great Dec 26 00:09:07 bigap: technically you can but this isn't the place. Dec 26 00:16:16 is there any framework/library for building android games Dec 26 00:17:53 bigap andengine Dec 26 00:17:59 what about unity? Dec 26 00:18:04 that too Dec 26 00:18:34 which one is more popular especially for 3d games? Dec 26 00:38:27 bigap, I wrote an unreleased app in AndEngine. It worked well. Dec 26 00:44:33 heho Dec 26 00:44:49 would here also be the right place to ask for mild android reverse-engeneering? Dec 26 00:45:56 Nebukadneza: well, depending on what you're wanting, there's #smali and #apktool Dec 26 00:46:02 mh Dec 26 00:46:29 although those are mostly for help with those tools specifically, and not RE in general Dec 26 00:46:40 i'm trying to find out how googles speech recognizer in 4.1 and 4.2 decides on which devices it displays a "download offline speech recognition files", and on which it doesn't Dec 26 00:46:50 (because on my nexus s, it doesn't and i'd *really* love that feature :P) Dec 26 00:47:25 so i've now grabbed the corresponding gapps package and started to dig in to find out where the speech recognition even happens oO Dec 26 00:47:51 Nebukadneza: ... it doesn't Dec 26 00:47:58 it doesn't? Dec 26 00:48:09 Nebukadneza: speech is compressed and sent to Google's servers, which do the recognition on their end Dec 26 00:48:15 no Dec 26 00:48:17 there is a offline mode in 4.1/4.2 Dec 26 00:48:23 oh Dec 26 00:50:09 http://cloud.tech-recipes.com/wp-content/uploads/2012/07/Offline-Speech.png <-- if you do this in a 4.1/4.2 rom on a recent device (it seems?!), you'll end up with a few acoustic models, a small dictionary and interpolated/pruned language model, and be able to do quite nice offline speech recognition Dec 26 00:50:24 (tested on sgs2, on my nexus s, as said, that menu entry is simply missing) Dec 26 00:52:45 mh Dec 26 00:53:00 but appearantly i'm even too dumb to find the actual recognition code in the gapps apckage Dec 26 00:53:02 *package Dec 26 00:54:56 hi Dec 26 00:55:14 could someone please advise me a book on developing applications for android 4? Dec 26 00:55:56 naquad: I suggest you ask in #android Dec 26 00:56:05 lol Dec 26 00:56:08 ;) Dec 26 00:56:10 naquad: I advise you ask in #android-dev Dec 26 00:56:14 I know ;) Dec 26 00:56:15 Nebukadneza: it wouldn't surprise me if it was in a .so Dec 26 00:56:21 Nebukadneza: inside one of the apks Dec 26 00:56:24 zinx: yeah, i'm looking there too Dec 26 00:56:37 Nebukadneza: or even not inside one of the apks, they've done that before :/ Dec 26 00:56:41 at least a small plasability check Dec 26 00:56:51 yeah, theres libvoicesearch.so Dec 26 00:56:58 but the disassembly only looks like glue code Dec 26 00:57:10 at 16kb its too small too Dec 26 00:58:05 I'm probably not understanding this correctly...but I've created a ListAdapter and it seems getView is called getCount() number of times with the index set to 0 at all times.. is that really supposed to happen? My ListView is also only showing ONE element in the list (the first one @ index=0 ) Dec 26 01:01:35 Nebukadneza, I disassembled some APK/dex stuff a while ago into SMALI Dec 26 01:02:15 Nebukadneza, there's a #smali channel actually Dec 26 01:02:33 mh, i'd have to find the piece of corresponding binary first Dec 26 01:02:44 i guess #smali is quite disassembly focused? Dec 26 01:02:56 I would guess so Dec 26 01:03:54 mh, mk Dec 26 01:03:58 thanks for the pointer ;) Dec 26 01:04:35 I was trying to find out how an app did things the way they did...it turned out they had their own custom extension of GridView...so I had that in mind when I did my app... Dec 26 01:05:12 Nebukadneza: yeah, if you need any help understanding the smali syntax, or using smali/baksmali. You can ask general RE questions too, but I likely won't be able to help ;) Dec 26 01:07:36 mhmmm Dec 26 01:07:46 i found the links to the acoustic model files in a shared preference Dec 26 01:07:57 for quicksearchbox oO what the hell? Dec 26 01:11:34 ahhh Dec 26 01:11:42 and there is the .so with the recognizer Dec 26 01:11:44 large enough too Dec 26 01:13:08 does anybody happen to know what format /data/data//app_shared_prefs/some-file.bin uses? Dec 26 01:13:21 file says "data", and i don't recognize the format in the hexeditor Dec 26 01:13:58 .bin in shared prefs? Dec 26 01:14:28 app_shared_prefs... Dec 26 01:14:31 and, yes... Dec 26 01:15:10 hi, i use mediaplayer to play from a stream, however in my app when the user pauses before the buffering finished, the content stills plays after being paused, what should i do? Dec 26 01:15:58 I served 86,000 ad impressions today... Dec 26 01:16:20 ick Dec 26 01:17:13 capella: any idea what that could be? Dec 26 01:17:24 nah - looking Dec 26 01:17:33 I noticed a spike last year as well...I guess a lot of people got phones and tablets for Christmas... Dec 26 01:17:42 capella: want the files? (or whole package?) Dec 26 01:18:17 no - still thrown by a .bin file in shared_prefs :) looking Dec 26 01:18:44 (also, does anybody know a convenient way of viewing those dbase3 pseudo-binary-.xml files in the apks res/?) Dec 26 01:22:10 anyone? Dec 26 01:27:44 Gaaah! How do I make my ListView scrollable? shouldn't it be scrollable by default? Dec 26 01:37:50 Do you guys know of any way to play a prerecorded sound file for someone you're in a phone call with? Dec 26 01:38:02 ...programatically Dec 26 01:38:43 ok, I now found out you cant put a ListView (scrollable) inside a ScrollView (scrollable) .. kind of NOT makes sense, but nevermind that. Is there some way to force the ListView to become as large as it needs and just leave the ScrollView to the scrolling? all my attempts at this failed :\ (saying the ListView should be as big as it needs) Dec 26 01:39:10 wrap_content, match_parent, weight=1 , I've tried it all it seems :) Dec 26 01:42:41 http://www.mkyong.com/android/android-listview-example/ Dec 26 01:43:55 capella thanks for the link, altough it does not quite handle my problem it seems? Dec 26 01:44:41 I have a long settings page, and I simply want a "list of all the devices" in there, in the middle. I thought ListView was the way to go, but now I'm not so sure. Dec 26 01:46:56 keep reading then - fairly basic concept .... lots of ways to customize :P Dec 26 01:47:27 the other developer hates action bar in android Dec 26 01:47:31 likes IOS Dec 26 01:47:34 darn Dec 26 01:47:49 back/up button in android he describes it as gay and keeps saying that it sucks Dec 26 01:48:04 now i've found some line (.field public static final KEY_DOWNLOAD_LANGUAGE_PACKS:Ljava/lang/String; = "downloadLanguagePacks") in a smali Dec 26 01:48:07 but i am not going to put apple style top bar Dec 26 01:48:15 but i can't relate it to anything else Dec 26 01:48:43 Guys i ask here because developers should know best ... are 800mhz and 512mb RAM enough for Android 4.2? Would it run smooth? Dec 26 01:49:10 Currently running 2.3... Dec 26 01:49:21 the way this looks makes me think this should be represented in some kind of configuration, be it shared prefs, some xml or whatever Dec 26 01:50:43 Adarc, with that basic info, I'd say 4.2 would be a push Dec 26 01:51:44 What does a push mean mrsudoer? English is not my native language sorry Dec 26 01:52:00 Adarc, it wouldn't run smoothly is my guess Dec 26 01:52:11 Okay thanks Dec 26 01:52:11 If at all... Dec 26 01:52:24 What phone are you trying to take from 2.3 to 4.2? Dec 26 01:53:14 Huawei u8600-1 .. selled as telekom move in germany Dec 26 01:54:19 Could install cyanogenmod 9 on it which is based on 4.2 i think Dec 26 01:55:06 Or 4.1 .. but should take the same ressources Dec 26 02:04:05 Adarc, I'd imagine it'd be laggy, but you never know until you try. For questions like this, #android would probably be a better place. Dec 26 02:05:25 Well...time to get a nexus then :) Dec 26 02:05:28 Thanks Dec 26 02:07:33 No problem :) Dec 26 02:09:02 Weird to say a push if something doesnt run smooth tho :P Dec 26 02:09:14 For a foreigner Dec 26 02:24:20 My main activity is just a ListView and for reasons that escape me at the moment I had to give it the android:id="@android:id/list", now I want to registerForContextMenu() this ListView, how would I go about doing that? Dec 26 02:24:52 Everything points to selecting it by R.id, which I'm not entirely sure on how to do given its current ID Dec 26 02:25:34 look at findViewById() Dec 26 02:26:45 That's sort of where I got stuck at the moment, R.id.list can't be resolved Dec 26 02:28:33 Oh. getListView() Dec 26 02:43:32 http://wos4android.wordpress.com/%CE%B5%CE%B9%CE%BA%CF%8C%CE%BD%CE%B5%CF%82/ Dec 26 02:43:38 what do you think of this app? Dec 26 02:43:45 it doesnt follow guidelines though Dec 26 02:43:57 http://wos4android.files.wordpress.com/2012/07/status4.jpg?w=960 Dec 26 02:53:08 hi k0nichiwa Dec 26 02:53:11 you there Dec 26 02:53:13 ? **** ENDING LOGGING AT Wed Dec 26 02:59:59 2012