**** BEGIN LOGGING AT Tue Feb 07 02:59:58 2012 Feb 07 03:00:29 I gave up on x.y.z and went to YYYY-MM-# Feb 07 03:00:38 it increments and makes sense Feb 07 03:01:41 right, like linux kernel 2.6->3.0 took *years*, but now we're at 3.2 heh Feb 07 03:01:55 but thats just Linus messing with people Feb 07 03:01:59 MDijkstra: I'm really sorry .. my connection broke .. the last msg I received from you was " use a vector-based method" Feb 07 03:02:02 or firefox. har. if that's not what started this in the first place. Feb 07 03:02:08 I don't like exposing that information because it gives insight into update history and my laziness Feb 07 03:02:09 MDijkstra: that was 2 hours ago Feb 07 03:02:31 pfn, oh, and git doesn't? Feb 07 03:02:40 firefox was like, OH SHIT, chrome is increasing their version numbers arbitrarily!!! must copy!!!! Feb 07 03:02:43 pfn: you don't like exposing... the date? You think the internet doesn't know when something was released? Feb 07 03:03:00 chrome is not arbitrary. they just only do whole numbers. simple. Feb 07 03:03:20 18.0.1025.3 dev Feb 07 03:03:22 almost whole :) Feb 07 03:03:25 14 beta, 15 dev, then 15 becomes beta, and 16 becomes dev. Feb 07 03:03:33 welll, those are release branches Feb 07 03:03:37 dragorn, out of sight out of mind Feb 07 03:03:39 maintenance and whatnot Feb 07 03:03:42 yeah Feb 07 03:03:50 but who wants Firefox 4 when there's Chrome 16! Feb 07 03:03:55 it's 12 more better! Feb 07 03:03:58 'xactly! Feb 07 03:04:11 Incrememnt ALL the versions! Feb 07 03:04:41 but 4->10? seriously? *sigh* Feb 07 03:05:04 I keep getting this: Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please use Android Tools > Fix Project Properties. doing fix project props doesn't help Feb 07 03:05:30 poppiez, go into your preferences and set the java compiler setting to 6.0, not 1.4 Feb 07 03:05:30 poppiez, project properties > java compiler > compliance Feb 07 03:05:53 mrenouf: I only have up to 1.7 Feb 07 03:06:00 er. 1.6 then Feb 07 03:06:12 1.6 == 6.0 Feb 07 03:06:20 yay, more version madness! Feb 07 03:06:21 because that makes so much sense Feb 07 03:06:22 haha Feb 07 03:07:06 (10n - 10) Feb 07 03:07:12 that was Sun Feb 07 03:07:27 mrenouf: thx :) Feb 07 03:07:36 cause someone decided Java FIVE sounded more enterprisey Feb 07 03:08:21 when I try to compile it says my project contains errors. only the project name has a red icon. none of the other files have one Feb 07 03:08:33 project > clean a few thousand times Feb 07 03:08:35 i have a relativelayout and a textview in it which i want to be centered vertically. now i have another textview that i want to be below the first one. It will only respond to android:layout_below if the first one does NOT have android:layout_centerVertical="true" how so? Feb 07 03:08:42 lol Feb 07 03:08:49 then check the error pane Feb 07 03:08:54 poppiez try closing and reopening the project if clean doesn't work Feb 07 03:09:18 ah it says error generating final archive: debug cert expired on 11/30/11 Feb 07 03:09:43 I thought eclipse auto made new debug certs Feb 07 03:10:00 poppiez, just delete it and it'll make a new one Feb 07 03:10:03 rm ~/.android/debug.keystore Feb 07 03:10:17 or wherever your platform happens to keep such things Feb 07 03:10:20 mrenouf: great! thx. works like a charm :) Feb 07 03:11:08 JakeWharton my demo wont work on ICS either will it Feb 07 03:11:19 what do you mean either? Feb 07 03:11:51 like in my app the collapsibles dont work Feb 07 03:11:54 and they wont work in the demo either Feb 07 03:11:55 is there a way to hide custom title bar after onCreate() ? Feb 07 03:12:07 no, but that's what I want Feb 07 03:12:21 then I can fix it and know they work properly Feb 07 03:12:25 Beket, what do you mean by 'custom' ? Feb 07 03:12:58 a title bar that was registered via .setFeautreInt(Windows.FEATURE_CUSTOM_TITLE, ...) Feb 07 03:13:25 if you need to hide it after creation you're better off just attaching it to the regular layout at the top Feb 07 03:13:38 and getting rid of the native title bar altogether Feb 07 03:14:02 feared so :P android is so rigid Feb 07 03:14:12 thanks Feb 07 03:14:19 holy crap Feb 07 03:14:23 I never knew of that Feb 07 03:15:05 android is probably the opposite of rigid Feb 07 03:15:07 wait, if you use that can you reference views in it within your app? Feb 07 03:15:15 yes Feb 07 03:15:18 mrenouf, yeah, that's how ActionBarCompat works Feb 07 03:15:24 thought so Feb 07 03:15:37 thats so much clean than an include file in every damn layout Feb 07 03:15:50 It has to do with requestFeature() that needs to be called before adding any content Feb 07 03:15:52 cause I copied IOSched Feb 07 03:15:55 :-( Feb 07 03:16:11 yep. we use a theme with NoTitle Feb 07 03:16:17 then include our own title in the layout Feb 07 03:16:23 on pre-3.0 only I hope! Feb 07 03:16:30 oooh, is that 3.0+ ? Feb 07 03:16:34 Perhaps I'll do that, although it's super boring :P Feb 07 03:16:41 no but the native action bar is Feb 07 03:16:56 which is what i was referring to Feb 07 03:17:02 I wish android 4.0 was android 1.0 (speaking of versioning... :P) Feb 07 03:17:07 This particular app is patiently waiting for a particular library to be solid enough to use it for that Feb 07 03:17:13 haha Feb 07 03:17:19 for now it looks/works like a legacy app, and targets 2.2 Feb 07 03:17:23 if you people would stop distracting me... Feb 07 03:17:28 :-P Feb 07 03:17:35 what is the best way to return to the previous activity (as when back button is pressed)? Feb 07 03:17:36 get off IRC if you actually want to get work done Feb 07 03:17:44 but IRC is sweet Feb 07 03:17:46 Gentlecat, do nothing, the system will do that for you Feb 07 03:17:49 Gentlecat, finish() Feb 07 03:17:50 oh Feb 07 03:17:53 finish() Feb 07 03:17:56 i read that wrong Feb 07 03:18:06 yes jake... finish() :-) Feb 07 03:18:11 i missed the crucial 'as' Feb 07 03:18:15 as in finish() your library Feb 07 03:18:18 :-) Feb 07 03:18:25 only one bug left! http://abs.io/4 Feb 07 03:18:28 yeah, I want to make app icon work as back button Feb 07 03:18:33 oh but its a doozy Feb 07 03:18:37 JakeWharton: famous last words Feb 07 03:18:43 well canadiancow just found one :( Feb 07 03:18:59 I kinda need light theme Feb 07 03:19:11 wut Feb 07 03:19:14 abs.io is down Feb 07 03:19:25 it's not Feb 07 03:19:38 http://downforeveryoneorjustme.com/abs.io Feb 07 03:19:40 JakeWharton i cant even get ABS to build right now :S Feb 07 03:20:01 both curl and nslookup fail for me Feb 07 03:20:08 but if it works for all of yous then that's fine Feb 07 03:20:34 Android 4.0+ and Java 1.6+ Feb 07 03:20:39 it needs nothing else Feb 07 03:21:10 wrong branch :P Feb 07 03:22:47 git checkout -t origin/assimilate-all-cows Feb 07 03:26:32 ok jake i have it satisfactioning me on GB Feb 07 03:26:53 oh wtf its working on ics Feb 07 03:26:54 WTF Feb 07 03:27:02 i win Feb 07 03:27:03 SOMETHING IS ROTTEN IN THE STATE OF DENMARK Feb 07 03:28:10 JakeWharton i just sent a PR Feb 07 03:30:34 I think it may be time to reclone my repo... Feb 07 03:30:34 http://pastie.org/3331874 Feb 07 03:30:56 lol Feb 07 03:31:01 damn DropBox Feb 07 03:31:32 sounds like it ran a sync in the middle of a locking operation Feb 07 03:31:34 ok i swear JakeWharton, they're not working in coveragemapper Feb 07 03:31:53 wait Feb 07 03:31:54 wtf Feb 07 03:31:57 its working in my app on GB Feb 07 03:31:59 but not ICS Feb 07 03:32:03 but its working in the demo everywhere :S Feb 07 03:32:54 pfn, yeah kind of Feb 07 03:33:03 basically i just modified a ref on one PC during a sync from another Feb 07 03:33:08 Ok. I tried putting an EditText in a scrollview and its not really doin anything Feb 07 03:33:11 and instead of overwriting it creates adjancet files Feb 07 03:33:22 which in this case, due to their name, git inteprets as some of its own :) Feb 07 03:33:58 I guess theorchid and thehydra are your computer names Feb 07 03:34:05 yeah Feb 07 03:34:12 dharma stations from Lost Feb 07 03:34:26 indeed, stupid show... Feb 07 03:34:32 yep Feb 07 03:34:34 the worst Feb 07 03:34:41 I swear jj abrams shows all go off the deep end as they progress Feb 07 03:34:53 i was actually going to update them all to a good show Feb 07 03:34:55 How could I disable text suggestions from the virtual keyboard? .setInputType() + EditorInfo.TYPE_TEXT_FLAG_NO_SUGGESTIONS don't quite work here Feb 07 03:34:58 something like the names of people on jersey shore Feb 07 03:35:03 or the women on mob wives Feb 07 03:36:06 JakeWharton i still had some // TODO: Remove me when we switch to ABS Feb 07 03:36:09 that might have been my problem :P Feb 07 03:37:08 ok jake working PERFECTLY on GB Feb 07 03:37:13 not working AT ALL on ICS tablet Feb 07 03:37:17 it doesnt expand Feb 07 03:37:27 same on ICS phone Feb 07 03:37:32 hmm Feb 07 03:37:45 comment out the "if (isCow())" check Feb 07 03:37:53 har har Feb 07 03:37:59 Back in 1996 I was lead tech for an ISP. I called our main DNS server rumpelstiltskin. Feb 07 03:38:05 I lived to regret that... Feb 07 03:38:29 at work I have three VMs running a MongoDB cluster called idkmybffjill1, idkmybffjill2, and idkmybffjill3 Feb 07 03:38:30 Mostly due to having to spell it iut for people over the phone Feb 07 03:38:49 speaking of rumpelstiltskin, that new show once upon a time is kinda good Feb 07 03:38:56 our server protocol has fields like "unfuckThis" Feb 07 03:39:11 www.youtube.com/watch?v=4nIUcRJX9-o Feb 07 03:39:12 if only they used hot chicks for females... Feb 07 03:39:20 While instructing them how to download Trumpet Winsock via their HyperTerminal's Xmodem Feb 07 03:39:58 lol @ ad Feb 07 03:39:58 Jake, title of my drop down navigation element in actionbar have the same color as actionbar background… That's because themes are not implemented yet or because I'm doing something wrong? Feb 07 03:40:06 themes Feb 07 03:40:20 which i'm trying to work on now but canadiancow is monopolizing my time Feb 07 03:40:34 LOL Feb 07 03:40:38 JakeWharton, it'd be easier to memorize the ip at that point Feb 07 03:40:39 IT IS NOT FUNCTIONING!!! Feb 07 03:40:45 who cares what it looks like if it doesnt even work Feb 07 03:41:33 well considering I only had to type the names once into the connection string it doesn't really matter what they are Feb 07 03:41:43 it's just fun when they cycle themselves for updates and Nagios sends out emails Feb 07 03:41:57 IDKMYBFFJILL1 IS DOWN Feb 07 03:42:47 canadiancow, that stuff should work fine actually Feb 07 03:42:55 you're not even using an ActionProvider Feb 07 03:42:59 all that crap is directly proxied to native Feb 07 03:43:04 not even wrapped in anything Feb 07 03:43:49 i swear to god Feb 07 03:43:51 you want my apk? Feb 07 03:43:53 it works on GB and not ICS Feb 07 03:43:58 i believe you Feb 07 03:43:59 1s Feb 07 03:44:39 you're doing exactly like the demo right? Feb 07 03:45:13 well mine is in xml Feb 07 03:45:17 but yea Feb 07 03:46:46 hmm Feb 07 03:49:22 brb Feb 07 03:50:19 same Feb 07 03:50:52 hansoffate: I have a method that loops an audio file a certain amount of times, then stops. How would I test when the method finishes running? http://pastebin.com/E5SsEtRm I want to eventually make it so that this loop plays, then waits 30 minutes, then iterates these two steps another 3 times. How would you suggest I do this? Feb 07 03:55:23 I was planning on making a handler and a runnable with this playWhitenoise function. Feb 07 04:04:18 woah Feb 07 04:04:33 i like how the home action item displays the back affordance when you have an expanded action item from the menu Feb 07 04:05:29 ya Feb 07 04:05:48 would a 2011 macbook pro have 802.11n? Feb 07 04:05:56 oh fuck would my fucking pritner have 802.11n Feb 07 04:05:57 possibly Feb 07 04:06:04 im trying to decide if i can drop b and g from my router Feb 07 04:06:10 i guess i could plug in my printer fairly easily Feb 07 04:06:21 that's so 2008 Feb 07 04:06:25 :P Feb 07 04:06:29 thats probably when i got it Feb 07 04:06:41 i have a bridge so my home theatre area can get net access Feb 07 04:06:50 so i bumped that from BGN to N Feb 07 04:06:54 and i my main router from GN to N Feb 07 04:07:01 that might have already killed my printer Feb 07 04:07:17 yep Feb 07 04:07:22 time to plug that bitch in Feb 07 04:07:30 <\monster\> anyone looked into the free playbook thing? Feb 07 04:08:36 oh wait printer is working Feb 07 04:08:37 hmmm Feb 07 04:09:05 its BG Feb 07 04:09:15 im gonna wire it and make my whole network N-only Feb 07 04:09:22 i should have bought 5GHz equipment Feb 07 04:09:27 oh wait then my phones wouldnt work Feb 07 04:10:47 \monster\: yes... Feb 07 04:11:25 <\monster\> many hoops to jump through? Feb 07 04:11:43 yeah, you need to port it and make it look good Feb 07 04:11:46 sounds like a pita Feb 07 04:11:48 don't think so - I got my account activated overnight Feb 07 04:11:56 pfn: do you actually need to make it look good? Feb 07 04:12:01 I'm still waiting on rim to activate mine Feb 07 04:13:07 t0mless: they asked me for a copy of my government ID or business license - I emailed them a photo of my 'business registration certificate' last night, got an "account active" reply about 3 hours later Feb 07 04:13:23 hmm Feb 07 04:13:31 I don't have a business, just work independent Feb 07 04:13:49 looked into it and don't need to get a FEID if it's just me and i'm not paying anyone Feb 07 04:13:52 I can just use my SSN Feb 07 04:13:55 <\monster\> my app would look like crap on a tablet :( Feb 07 04:13:59 but I sent them a copy of my passport Feb 07 04:15:03 Leeds, yeah, I think there's some minimum quality stipulation in there Feb 07 04:15:26 I'm registered as a 'sole trader' - i.e. a freelancer - here... it's good for tax purposes, pretty cheap (they waive most of the fees most years), and it means I *am* a business if I need to be one Feb 07 04:16:02 <\monster\> they have a emulator? Feb 07 04:16:46 <\monster\> I wouldn't mind testing my app would look ..don't feel like sending them all my personal info if it doesn't work out Feb 07 04:16:48 pfn: sure, no fart apps, no simple web wrappers... dunno how much quality control they have beyond that Feb 07 04:17:11 \monster\: they do... doesn't seem to support Linux, which will be an issue for me - but it uses vmware, so I expect I'll be able to hack it Feb 07 04:17:35 <\monster\> do you have to signup to get all the dev software? Feb 07 04:18:04 <\monster\> maybe I'll look into it if the porting isn't toooo much work Feb 07 04:18:12 don't think so - https://bdsc.webapps.blackberry.com/android/tool/ Feb 07 04:18:23 * Leeds wonders about #blackberry-dev :) Feb 07 04:19:10 and RIM is going to be pre-approving all apps Feb 07 04:19:36 they cant afford to be picky at this stage in the game Feb 07 04:19:57 <\monster\> oh looks like their ebay app is pretty limited ..maybe I got a shot Feb 07 04:20:28 yeah, it's pretty desperate for them to announce free tablets for essentially anyone who successfully submits an app - they'd take a lot of stick from developers if they start rejecting lots of submissions Feb 07 04:20:52 then again, I've had a free tablet and free phone from Google, and I'm not sure they count as desperate... Feb 07 04:21:18 :-) Feb 07 04:21:35 <\monster\> it might be cheaper to give away these playbooks that aren't selling than to dispose of them :) Feb 07 04:21:40 and all you had to do was fly to San Francisco and buy a ticket to their conference Feb 07 04:21:43 "FREE" Feb 07 04:21:59 nexus one was free Feb 07 04:22:12 mrenouf, didn't google give out a free d1 or nexus one to anyone with >3500 downloads and 3.5+ in market back then Feb 07 04:22:15 i paid $25, made some crap app, left it on market for a few months Feb 07 04:22:25 indeed, see JakeWharton Feb 07 04:22:27 I wouldn't know Feb 07 04:22:38 well, it wasn't crap Feb 07 04:22:42 mrenouf: nope, both local conferences in Hong Kong Feb 07 04:22:42 but relative to what I can do now it is Feb 07 04:27:51 canadiancow, i can't reproduce your issue Feb 07 04:30:35 how do I define the width of drop-down navigation in the actionbar... Feb 07 04:30:55 popupMenuStyle Feb 07 04:31:05 has a dropDownWidth attribute Feb 07 04:31:13 wait Feb 07 04:31:15 like the spinner? Feb 07 04:31:20 yeah Feb 07 04:31:35 actionDropDownStyle Feb 07 04:31:45 extend from Widget.Holo.Spinner.DropDown.ActionBar Feb 07 04:31:54 use dropDownWidth Feb 07 04:32:06 default is wrap_content Feb 07 04:32:36 actually, I meant the width on the bar itself Feb 07 04:32:47 or is that what dropDownWidth defines, hmm Feb 07 04:33:20 you can probably just set regular layout_width on that Feb 07 04:33:25 er Feb 07 04:33:27 android:width? Feb 07 04:33:51 it has nothing defined by default in the styles Feb 07 04:34:12 it just does wrap_content on its selected item though Feb 07 04:34:20 at least on 3.0+ Feb 07 04:35:00 I don't see it documented anywhere handily... Feb 07 04:35:08 http://developer.android.com/guide/topics/ui/actionbar.html#Dropdown Feb 07 04:36:05 you can look at the action bar styled (non API demos) sample Feb 07 04:36:11 or just the platform theme/style which I do Feb 07 04:39:06 canadiancow, please try to create a reproducible test case (out of the demo or whatever) if you can Feb 07 04:39:07 night Feb 07 04:55:45 The Visualizer class requires API level 9 and up, but I would like to support it in lower API levels. Is this possible?? Feb 07 05:00:02 hey guys, a I have a question about running some JS in my app Feb 07 05:00:41 bascially I want to run some JS when I click my button Feb 07 05:01:01 this is the html from the website that has the button which leads to the JS: http://pastebin.com/bCazDnNw Feb 07 05:01:13 and this is the JS: http://pastebin.com/DDfzcdUa Feb 07 05:01:31 I feel like I am missing something simple Feb 07 05:01:42 Is it possible to point me in the right direction? Feb 07 05:03:15 Is your app a webapp? Feb 07 05:03:40 No, not really. Feb 07 05:03:50 I only uise webview for a simple login to the website Feb 07 05:04:07 everything else is parsed html transformed into listview Feb 07 05:04:41 Well... i don't know javascript that well... but it seems like all it does is when that link is clicked submit the form that has a static id Feb 07 05:04:46 so why not just use httppost? Feb 07 05:05:16 ugh, simple_dropdown_item_1line is public, but simple_dropdown_item_2line isn't Feb 07 05:05:19 gah Feb 07 05:06:06 Has anyone here built Android 4.0.3 before? Feb 07 05:06:48 t0mless: thanks, i will try that out Feb 07 05:07:22 would developing on an android device with cyanogen mod work? like the app should still work in stock android right? Feb 07 05:09:21 docgnome: you mean if you made and app, installed it on cyanmod phone? Feb 07 05:09:37 docgnome: yes, it should, unless you doing esoteric stuff Feb 07 05:09:41 like if i tested my app on a cyanomod phone Feb 07 05:09:47 it should be perfectly fine Feb 07 05:09:50 k Feb 07 05:09:51 thanks Feb 07 05:28:49 everyone here submit their app to app world? Feb 07 05:29:05 Can you submit android apps? Feb 07 05:29:08 Just any app? Feb 07 05:29:14 android apps Feb 07 05:29:19 and they give you a free playbook Feb 07 05:29:26 Links?! Feb 07 05:29:35 the only obstacle is if they choose to get picky and rejecty Feb 07 05:30:05 they wanted me to get a notary to jsut sign up for their app world Feb 07 05:30:15 Really? Feb 07 05:30:22 jfisk1987: that, or a copy of your ID Feb 07 05:30:28 http://devblog.blackberry.com/2012/02/latest-blackberry-playbook-tablet-offer-for-android-developers/ Feb 07 05:31:03 jfisk1987: that's what I'm doing atm Feb 07 05:31:07 they expanded it to any app that can run on it Feb 07 05:31:13 snuupy: i submitted my app today Feb 07 05:31:13 hey folks. does anyone know how to coax android:windowSoftInputMode into doing … anything? Basically, no matter what I set it to, the onscreen keyboard squishes my textview into oblivion. I want it to pan, or to do the full-screen mode, but I'm really struggling with the documentation here. None of the windowSoftInputMode options do anything, and the docs mention full screen mode but not how to actually use it... Feb 07 05:31:15 I made my app, making a few new features Feb 07 05:31:23 jfisk1987: nice, how long did it take for them to accept vendor? Feb 07 05:31:25 they made a note to make sure it doesnt mention the word android Feb 07 05:31:34 it took me 3 days Feb 07 05:31:35 yes, they did Feb 07 05:31:39 3 days for vendor approval? Feb 07 05:31:41 ouch Feb 07 05:31:42 blackberry people told me it takes within a week Feb 07 05:31:45 Snuupy: took about 3 hours after I submitted my business registration document Feb 07 05:32:03 jfisk1987: I think they're expediting :) Feb 07 05:32:13 I'm not a business - I'm doing it as an individual so I'm not sure if they're taking time for it Feb 07 05:32:19 my brother's doing it too Feb 07 05:32:31 i ran my app in the sim and it was perfect, this is one of the easiest things ive had to do for a piece of gadgetry Feb 07 05:32:48 their whole key system sucks balls though Feb 07 05:32:51 jfisk1987: my sim doesn't work Feb 07 05:32:55 I have to use a real PB Feb 07 05:32:58 I'm downloading the sim stuff now - but the command-line conversion tools seem to work fine Feb 07 05:33:00 stupid sim. Feb 07 05:33:05 yeah command line is fine Feb 07 05:33:07 i really like their sim Feb 07 05:33:10 anyway, time to go get lunch while it downloads :) Feb 07 05:33:10 the key stuff was a real pain Feb 07 05:33:12 i wish android had something similar Feb 07 05:33:32 it took me forever to get the keys stuff working Feb 07 05:33:38 then went back to building the app Feb 07 05:33:41 ive had the best week ever between this the giants winning the superbowl and getting a summer internship in cali Feb 07 05:34:03 i just finished porting my app to iOS and instantly im on 3 platforms now..cant complain Feb 07 05:34:26 jfisk1987: what's your app do? Feb 07 05:34:47 well now it uses the GPS system in the buses to tell you when its going to arrive Feb 07 05:34:53 oh cool Feb 07 05:34:59 the android version doesnt use the GPS system yet, i gotta upgrade it next weekend Feb 07 05:35:26 internship where? Feb 07 05:35:34 http://cl.ly/0C0H0g0u1c3p30231P2s Feb 07 05:35:36 Zynga Feb 07 05:35:39 O: Feb 07 05:35:40 nice. Feb 07 05:35:41 hah Feb 07 05:35:45 people here have worked there Feb 07 05:35:50 and been laid off =) Feb 07 05:36:07 jfisk1987: got it to work on an actual playbook but not on the simulator Feb 07 05:36:12 the simulator never loads Feb 07 05:36:18 hmm Feb 07 05:36:27 upgrade vmware? Feb 07 05:36:28 well Feb 07 05:36:33 i dont know if your using a mac or pc Feb 07 05:36:35 newest version Feb 07 05:36:37 PC, win 7 Feb 07 05:36:45 jfisk1987: this was on reddit yesterday or so http://www.reddit.com/r/IAmA/comments/pc6j9/iama_former_fulltime_zynga_engineer_quit_6_months/ :p Feb 07 05:36:46 3GB RAM, 2x2.3ghz Feb 07 05:37:00 ron_frown: yeah ive heard mixed things but everyone ive talked to whos interned there absolutely loved it Feb 07 05:37:46 ahaha "Brogrammers" Feb 07 05:40:07 snuAFK what are you using to run the sim though? Feb 07 05:40:40 VMPlayer Feb 07 05:41:05 app in a bar file Feb 07 05:41:47 and if you just try running the sim in VMPlayer without launching the app it doesnt work eh? Feb 07 05:42:20 uhh, the app icon doesn't show in the PB after I load it Feb 07 05:42:30 the app icon should be the android market icon Feb 07 05:42:39 and when I restart the sim it never loads Feb 07 05:42:40 so the sim does load. jsut not your app in it Feb 07 05:42:42 and I have to uninstall the sim Feb 07 05:42:50 delete all files, reinstall sim Feb 07 05:42:58 but I tested it on a real PB, and it works Feb 07 05:43:02 jfisk1987: I love that new term. It's very applicable and self-defining. Feb 07 05:43:32 i mean i have no idea, never been to san fran but im sure ill know what a brogrammer truly is when i see one Feb 07 05:44:39 haha great definition: http://cl.ly/2M2A3q2t03470L453y02 Feb 07 05:47:48 http://www.quora.com/Brogramming/How-does-a-programmer-become-a-brogrammer Feb 07 05:47:50 when is the deadline to get your app in for the free playbook? Feb 07 05:47:59 the 16th? Feb 07 05:48:05 13 Feb 07 05:48:12 but not today Feb 07 05:48:21 today was just to get in for 2.0 release right? Feb 07 05:48:29 today is the 7th. Feb 07 05:48:32 deadlines 13th. Feb 07 05:48:42 I swear I read the 6th for something Feb 07 05:48:49 not sure. Feb 07 05:48:51 and today is the 6th :p Feb 07 05:49:59 timezones Feb 07 06:29:03 hmm Feb 07 06:29:25 wonder if it's just my app or if the playbook simulator is just suuuuuper tweaky Feb 07 06:37:19 is there a way to have the java doc pop up with suggested code completions in intellij? Feb 07 06:38:41 hi Feb 07 06:38:59 what's wrong with this syntax: OutputStreamWriter out = new OutputStreamWriter(openFileOutput("history.txt", MODE_APPEND)); ? Feb 07 06:39:35 it says: MODE_APPEND cannot be resolved to a variable Feb 07 06:40:29 try Context.MODE_APPEND Feb 07 06:40:39 or Activity.MODE_APPEND Feb 07 06:41:32 t0mless: but then it says: The method openFileOutput(String, int) is undefined for the type new View.OnClickListener() Feb 07 06:41:38 I have a strange case.. I have an Image that fits the exact vertical screen (basically Image width is equal to tablet length vertically). How can I rotate it and put it in ImageView.. Feb 07 06:41:46 need to use your outer class Feb 07 06:41:58 MyOuterClass.openFileOutput(... Feb 07 06:42:40 t0mless: ok. how to get MyOuterClass ? Feb 07 06:42:55 It's whatever the name of your outer class is.... Feb 07 06:43:06 which is probably an activity Feb 07 06:44:27 How do i implement cliboard functianality in android ? i want to copy some text from my application and user should be able to paste it somewhere else. I found ClipData class but i think its not available in 2.3 or bvelow Feb 07 06:45:36 t0mless: yes, I tried this: OutputStreamWriter out = new OutputStreamWriter(DictSearchActivity.class.openFileOutput("history.txt", Context.MODE_APPEND)); Feb 07 06:46:22 t0mless: but I still get this error message: The method openFileOutput(String, int) is undefined for the type Class Feb 07 06:46:42 does DictSearchActivity not extend Activity? Feb 07 06:47:17 t0mless: it extends ListActivity Feb 07 06:48:42 have the inner class call a method to do the output Feb 07 06:48:55 or have your activity implement the listener interface Feb 07 06:49:01 so you can use the methods directly Feb 07 06:49:04 t0mless: the inner class is in its own class file Feb 07 06:49:20 well that's not gunna work Feb 07 06:49:39 if it's in it's own class file, it's not an inner class Feb 07 06:49:48 t0mless: no, there's no method to do the output Feb 07 06:50:04 you need to have a handle to your context then Feb 07 06:50:08 in your clicklistner class Feb 07 06:50:21 so make a constructor to get a context to store as a field Feb 07 06:50:24 then reference that Feb 07 06:50:44 Context mCtx; // Set this in constructor or with a setter Feb 07 06:51:00 OutputStreamWriter out = new OutputStreamWriter(mCtx.class.openFileOutput("history.txt", Context.MODE_APPEND)); Feb 07 06:51:34 I thought since you were using an onClickListenerObject you had used an inner class, but you didn't Feb 07 06:52:46 the date picker widget is SO ugly Feb 07 06:57:37 t0mless: thanks! Feb 07 07:29:58 hello Feb 07 07:30:15 kcuf yeeeaa Feb 07 07:31:16 i remember the pws Feb 07 07:39:55 hey, is the tab style google used in the google+ app built into the sdk? Feb 07 07:41:00 Hey guys, will my Developer Account get in trouble for posting an SMS spam app, it says on startup (and makes you agree) not to use it on anyone who hasn't agreed and will be offended. Also you can only send to contacts. Feb 07 07:44:24 SMS Spam app? That doesn't sound like a good idea to me. Feb 07 07:45:01 Do Developer accounts get introuble, or does the app just get pulled? Feb 07 07:45:04 Why on earth would you want to build an app like that, unless you are trying to annoy someone. Feb 07 07:45:17 i built it for fun a long time ago Feb 07 07:45:23 thought i'd submit Feb 07 07:45:39 There is a similar app on the market but it's listed as an SMS Contest Entry app Feb 07 07:45:43 Well, Google is pretty tolerant. Feb 07 07:45:55 I don't think you as an entity would get in trouble Feb 07 07:46:04 More likely is your App would get pulled. Feb 07 07:46:10 that's fine Feb 07 07:46:32 But more likely than that is nothing particular will happen unless enough people complain about it Feb 07 07:46:40 cool :) Feb 07 07:50:14 thanks Feb 07 07:51:02 hey you intelliJ users Feb 07 07:51:17 does the layout preview totally eat shit on 3.0+ for you guys Feb 07 07:51:27 or is something in my layouts going to fuck up on 3.0+ Feb 07 07:51:46 I get stack over flow errors on 3.0+ Feb 07 08:40:27 ( JakeWharton ): http://www.phdcomics.com/comics.php?f=1467 I think you were talking about that earlier today Feb 07 08:40:42 and pfn maybe? Feb 07 09:05:22 Yo! Trying to make a beginner app using "nbandroid" for netbeans. The thing dies on me almost immediately, but I don't get any kind of information (error messages, stacktraces, nothing), what do I do? Feb 07 09:05:58 never heard of nbandroid, so be more specific on it dies on you Feb 07 09:06:01 the app crashes? Feb 07 09:06:04 netbeans crashes? Feb 07 09:08:29 t0mless: sorry; force close. And then, for some reason, the layout pops up anyway Feb 07 09:08:43 netbeans is blissfully ignorant of the whole thing, or so it seems Feb 07 09:09:00 Can't/don't want to use Eclipse? Feb 07 09:09:10 Don't want to. Feb 07 09:09:32 what's logcat say? Feb 07 09:09:33 Both for my own reasons AND because I already have/need to have NB Feb 07 09:09:59 Sorry, bear with me here, I'm new. Wtf is that? :p Feb 07 09:10:51 http://developer.android.com/guide/developing/tools/logcat.html Feb 07 09:11:14 if you're getting a force close, the exception is being put into the logcat buffer Feb 07 09:11:30 does netbeans not have a built in logcat view? Feb 07 09:11:35 Hello guys, how to handle this situation? My App has Activity A and B. A is my main view, in A I start B, from B I switch to App X, 10 sec. later I switch back to My App expecting to see Activity B, But what happens is my App crashed :( How to handle this situation? Feb 07 09:12:06 according to the website nbandroid has logcat viewer, so you can use that Feb 07 09:12:10 ah, right Feb 07 09:12:31 Number5... What does logcat say? Feb 07 09:12:46 hmm... on second thought, maybe I'll just install a second IDE :< Feb 07 09:12:55 Nullpointer exception, but couldn't reveal the exact cause. Feb 07 09:13:23 pastebin your exception Number5 Feb 07 09:13:35 Actually, when I switch back, I should go back to Activity B of my App. Feb 07 09:13:44 okk Feb 07 09:13:49 or figure out the offending line Feb 07 09:13:56 and figure out what could be null at that point Feb 07 09:15:21 http://pastebin.com/FDus2UwL Feb 07 09:16:27 Hmmmm, i'll surround try-catch on onCreate of activity B and see where it collapse. Feb 07 09:17:01 hi ya all Feb 07 09:17:06 there should be a second part Number5 Feb 07 09:17:10 that says Caused by.... Feb 07 09:18:10 No , there is no caused by... Feb 07 09:19:36 main means main thread right? Feb 07 09:19:56 well that's it trying to start your app Feb 07 09:20:07 That is really the whole exception? Feb 07 09:22:35 I found the issue!! Yess!! Feb 07 09:25:57 t0mless, thank you, you helped me! Main means main-thread, when you start another activity and leave the current one, all this runs on the same thread. So Activity B runs on the same thread too, that's why logging says fatal exception in main! I was looking in the wrong activity as I had some identical functions on both activities. Feb 07 09:26:22 well... yea Feb 07 09:26:36 the two activities run on the same thread unless you spawn new ones Feb 07 09:26:47 but you can't modify the UI from the not main thread Feb 07 09:28:24 Hi i want to retrieve contacts data from phone database and store it in a suitable data structure. Will the list data structure suffice the requirement? Feb 07 09:29:27 If I studied the docs well (but very view people do that because they want to build an app as quickly as possible), switching apps will not destroy current activity but just stops it and start when returning back. What happens is, some object I cleaned up in onStop but created in onCreate, this should be either onStop<->onStart or onCreate<->onDestroy Feb 07 09:31:44 So when cleaning an object in onStop, than create it in onStart. If I put it in onCreate, that object won't be created as the activity skips onCreate and calls onStart, what happens is we have an empty object which is similar to NULL and we have a NullException, which is FATAL in MAIN! :P Feb 07 09:31:53 arkiver: check for example this tutorial http://www.higherpass.com/Android/Tutorials/Working-With-Android-Contacts/2/ Feb 07 09:32:20 and yes, list data structure is suitable Feb 07 09:32:54 hi Feb 07 09:33:10 ( Number5 ): correct, read the lifecycle doc well Feb 07 09:33:21 t0mless, because you gave me pointers to look for, suddenly a lamp started to light up (never saw the light in my brain though). Feb 07 09:33:35 :D Feb 07 09:33:46 ( Number5 ): There is no gaurentee that your old activity won't be destroyed, and even then it might get destroyed without onDestroy being called Feb 07 09:34:13 one of the things I learned recently actually, is that onPause is the only one *gaurenteed* to be called Feb 07 09:34:18 vavirta, Thanks. il take a look Feb 07 09:34:34 t0mless, thnx, I'll remember this. Feb 07 09:35:53 If you want to show phone numbers for example in ListView you can use SimpleCursorAdapter.. When I started to make first application which used contacts, I readed whole thing to array, and then used ArrayAdapter in ListView Feb 07 09:36:16 wasn't really good solution if thinking performancee Feb 07 09:36:18 ;) Feb 07 09:46:05 vavirta, i think im in a similar position as you were ! I keep that in mind :) Feb 07 09:46:26 ;) Feb 07 09:46:47 and that was the exact same thing which even i did. read the database, stored only the names into a HUGE array, and displayed into a list. Feb 07 09:47:00 very bad performance wise, but did a tiny part of the job ! Feb 07 09:48:51 hi! if i have an app that uses push notifications. when i recieve a message i simply want to display that message on top of the current top acitivty of my app (task) and if the app isnt started at that time i want to start the main activity and then display that message on top of my main activity. to do that i created a DisplayPush activity and used theme Dialog on it and call it via intent from the c2dm reciever my only Feb 07 09:48:51 question is how i can open a second (the main) activity via intent or how else i can get this behavior Feb 07 09:53:42 That is not very nice to your user Feb 07 09:53:49 to force up an app like that Feb 07 09:54:28 what do you expect the user to do if the phone is off in their pocket when your c2dm message arrives? Feb 07 09:54:36 well, not off, but asleep Feb 07 09:56:05 i display that message to the notification bar (and when the user clicks there he gets the intent to my displaypush) Feb 07 09:56:12 forgot to mention that Feb 07 09:56:25 i wont force the user to the app Feb 07 09:57:24 then I am confused as to what you're trying to do... Feb 07 09:57:32 show a popup dialog or a notification? Feb 07 09:58:09 and if you're calling the DisplayPush activity from the c2dm it doesn't seem like you're using a notification Feb 07 09:59:11 hot damn I didn't realize it was so late Feb 07 09:59:43 yeah, 6pm! Feb 07 09:59:49 yeah, 11am! Feb 07 09:59:53 Quittin' time! Feb 07 10:00:09 2am.... Feb 07 10:00:27 notification.setLatestEventInfo(context, "Push", Feb 07 10:00:27 message, pendingIntent); Feb 07 10:00:30 i set up an c2dm reciever that when a message arrives show an notification and to that notification i added my intent via Feb 07 10:00:32 I will pass the berating of thebastl to you guys then Feb 07 10:00:35 other way round Feb 07 10:01:01 and with that intent i want to achieve what i descriped before Feb 07 10:06:43 Create a PendingIntent that launches your activity. Set that on your notification Feb 07 10:06:50 PendingIntent.getActivity(...) Feb 07 10:08:42 is there a lot of overhead calling native code from android? I found some c code that does what I want (transcoding audio data) but it only works on 1 byte at a time, lol Feb 07 10:10:15 hi Feb 07 10:11:04 SimonVT: with the pendingintent i already starting my fake dialog activity (the pending intent inside of my notification definition) Feb 07 10:11:25 Hi to everyone. Newbie question: I want to start to develop an application for the android platform. My goal is to develop a software that receives data via the bluetooth module of the phone and displays the data on a 2d graph. Where Can I start ? can you give me some suggestions? thanks in advance Feb 07 10:12:11 does anyone know how to change the timezone (currently GMT-08:00) of google checkout ? I've already tried to set it to GMT+1 at the account preferences with no changes... Feb 07 10:12:12 thats my problem i want to start a second activity behind that fake dialog if the app is not already startet (in that case the dialog is on top of the last activity inside that task, right where i want it to be) Feb 07 10:13:51 arf why does (java.net.) URLEncoder.encode(value,"ISO-8859-1"); add a newline at the end.... so annoying Feb 07 10:15:03 Well, the pendingintent sends the intent to a single intent.. It's up to you how you want to handle it when you receive it Feb 07 10:15:35 k Feb 07 10:15:55 You could use a singletop activity. if the intent causes onCreate to be called, don't show the dialog.. If the intent is delivered to onNewIntent, show the dialog Feb 07 10:17:28 Anyone know how save heap dump file using MAT? Feb 07 10:18:02 Ore there are only one way - save using eclipse and convert Feb 07 10:24:12 going out Feb 07 10:35:46 back again.. Feb 07 10:35:48 I'm trying to create an "android library" Feb 07 10:35:58 but when I run my code that depends on it I get classnotfound exceptions Feb 07 10:36:16 probably because I'd need to install the library itself, explicitly. Feb 07 10:36:34 but I don't want that - I want it included. static linked basically. is that possible? Feb 07 10:38:53 never mind - found it already. should have rtfm Feb 07 10:39:07 but the different setup/classpath/jar/(external) library options are confusing Feb 07 10:39:13 and not the solution, it was a property Feb 07 10:43:40 aren't you supposed to be able to overwrite shared preferences keys by just using, for example, putString("key", "value") again? ...a key I have is refusing... hmm Feb 07 10:45:02 yes Feb 07 10:45:17 Remember to commit Feb 07 10:45:24 Ty, yes I am... hmm Feb 07 10:45:31 I did get a weird error before, let me check Feb 07 10:45:35 in the console Feb 07 10:45:56 Remember to use the right sharedpreference as well Feb 07 10:46:03 [2012-02-07 11:00:15 - Emulator] WARNING: Data partition already in use. Changes will not persist! Feb 07 10:46:10 oO Feb 07 10:46:13 That's new Feb 07 10:46:31 But after a couple of tried the emulator started Feb 07 10:46:34 tries* Feb 07 10:46:53 will try to restart everything and see if I can overwrite then :-) Feb 07 10:47:22 I am using the same file/name, just copied it from one Activity to another Feb 07 10:47:29 the name that is :) Feb 07 10:48:11 You can always check /data/data/your.package/preferences or whatever it is, see if it's creating several xml files with your values Feb 07 10:48:45 any way to do that from outside the emulator? Feb 07 10:49:40 adb shell ls /data/data/your.package/shared_prefs Feb 07 10:49:53 ah ok, thanks a lot :-) Feb 07 10:49:55 adb pull /data/data/your.package/shared_prefs/whateverTheFileIsCalled.xml Feb 07 10:50:08 ty! Feb 07 10:53:58 I'll never understand File.length() Feb 07 11:05:30 hey.. Feb 07 11:05:47 what api level should one use? Feb 07 11:05:57 nice name, not sure you're living up to it :-) Feb 07 11:06:13 so it will work on most modern phones + tablets Feb 07 11:06:19 fpillet try me ;-) Feb 07 11:06:23 2.1 ? Feb 07 11:06:25 7 should be fine Feb 07 11:06:34 oki.. Feb 07 11:13:35 kerigan what if i want to run my app on tablets also, should i go with some special api? Feb 07 11:14:04 evening all Feb 07 11:15:01 quick question, when I was at uni i used some code from either the java2d or spring examples that had a graph of nodes and edges you could drag about and fling Feb 07 11:15:12 has anyone else ever seen it and do they know where i can find it Feb 07 11:15:19 been bugging me all afternoon Feb 07 11:15:43 i think i have to use level 11.. googling ;-) Feb 07 11:15:57 should run fine on tablets, only if you wanna make use of some honeycomb stuff you'll need another version with higher api level Feb 07 11:16:43 can i somehow bring the activity to the top that is on my activities stack via an intent? Feb 07 11:17:13 i dont want to specifiy the class i want to call i just want to bring show the one that is on top Feb 07 11:20:53 kerigan is there not some drawbacks performance wise on using the lower api levels..like GUI wise..? Feb 07 11:21:16 hm i don't think no Feb 07 11:21:58 with 4.0 you can enable hardware acceleration, which could be faster but you don't wanna target 4.0 Feb 07 11:22:08 sorry im picky, just wonder since ive just read about honeycombe.. "In addition to these new features, Google has also added richer clipboard APIs, an extensible DRM framework, support for processors with multiple cores, and a new hardware-accelerated rendering framework that will improve the performance of Android's user interface drawing." Feb 07 11:23:06 kerigan now i 4.0 is to new.. :D- Feb 07 11:23:12 i meant.. no Feb 07 11:24:54 you can always make a honeycomb/ICS only version with hardware acceleration turned on, its just a flag in the manifest to turn it on Feb 07 11:25:53 kerigan hmm..sounds good.. Feb 07 11:32:04 are there any best practices on how to do sorting in an content provider if the data isn't coming from a sqlite db where you can just pass the sortOrder argument? Feb 07 11:39:57 hi, trying to boot a Linux kernel (with staging/android devices) with an Android FS - init catches SIGILL. Any advise? do I need any additional kernel patches? Feb 07 11:43:50 morning all Feb 07 11:51:22 hi, is there a pdf library I could use in my projects? it should have an appropriate license so that I can distribute it proprietarily Feb 07 11:55:01 flipchen: do you just want to view pdf's? Feb 07 11:55:06 or do you want to do something special Feb 07 11:55:15 im not aware of any free ones Feb 07 11:55:19 they do probably exist though Feb 07 11:55:21 yes only viewing Feb 07 11:55:27 but for a lot of apps, i just use a view intent Feb 07 11:55:34 and let the users pdf software take over Feb 07 11:55:40 many devices have built in pdf viewers Feb 07 11:55:50 and at some point most other users download one Feb 07 11:55:55 i wish there were metris somewhere on that Feb 07 11:55:56 i was thinking about that too, but the problem arises when someone doesn't have an app to handle pdf intents Feb 07 11:56:12 you can always direct them to adobe's reader in the market Feb 07 11:56:22 we do that for one of the clients i do work for Feb 07 11:56:55 you could also try striking up a deal with one of the lesser known readers and get some money for referrals :) Feb 07 11:56:59 the problem is, I'm working for an app company and I have very specific limitations as to how the app has to work Feb 07 11:58:01 hehe interesting idea tho :) Feb 07 12:01:43 Hello, I'm having trouble with the touchEvents (motionEvents actually) Feb 07 12:01:53 I never get a ACTION_UP event Feb 07 12:02:13 I can only catch the ACTION_DOWN events.. Feb 07 12:02:48 I read somewhere that some higher level could be catching the other events, but I couldnt find where, or how to solve that.. Feb 07 12:03:48 Does anyone know what I can do about that? Feb 07 12:09:14 What viewgroup is your view in? What does your ontouchEvent look like? Feb 07 12:10:00 SimonVT: my view is in a relativeView Feb 07 12:10:59 and the onTouch(MotionEvent) and im currently just checking the action of the event Feb 07 12:11:13 only 1's coming out.. Feb 07 12:12:21 RelativeLayout should not be intercepting your touchevents, so your onTouchEvent is probably wrong Feb 07 12:13:49 Hm what can go wrong with a View having a public boolean onTouchEvent(MotionEvent event) {} function? Feb 07 12:14:39 I don't know, I can't magically summon your code on to my screen Feb 07 12:14:55 hm yeah sorry bout that Feb 07 12:21:34 SimonVT: http://pastebin.com/a5i8PYuG i dont know if this is any help.. Feb 07 12:23:06 In the debugger I passed: PhoneWindow.DecorView , FrameLayout, RelativeLayout, RelativeLayout, MyView Feb 07 12:23:11 Try and & getAction() with http://developer.android.com/reference/android/view/MotionEvent.html#ACTION_MASK Feb 07 12:23:57 Or is onTouch never reached? I see you log the action at the top Feb 07 12:25:31 the onTouch is reached Feb 07 12:25:46 ah do i have to call the super.onTouch? :p Feb 07 12:25:49 No Feb 07 12:25:55 & getAction with the mask Feb 07 12:26:05 im currently compiling that Feb 07 12:26:06 ev.getAction & MotionEvent.ACTION_MASK Feb 07 12:26:18 still 0's Feb 07 12:26:47 So getAction returns 0 ? Feb 07 12:26:52 yup Feb 07 12:27:06 getAction & ACTION_MASK = 0 Feb 07 12:27:15 That's the DOWN action Feb 07 12:27:29 indeed, but i would need the UP action Feb 07 12:27:38 What about when you move? Stll 0? Feb 07 12:28:02 yes, just once the DOWN action (0) Feb 07 12:30:42 hm Feb 07 12:31:08 oh, hm Feb 07 12:31:14 Try and return true in all your cases Feb 07 12:33:27 Super! SimonVT Feb 07 12:33:30 That works! Feb 07 12:33:45 Thank you very much \o/ Feb 07 12:33:50 Forgot you had to return true/false depending on whether you consume the event Feb 07 12:34:06 ah Feb 07 12:34:10 interesting to know! Feb 07 12:34:31 By default, return false. This will let other views consume the event, in case you don't Feb 07 12:34:43 ok Feb 07 12:35:00 thanks a lot for helping! Feb 07 13:13:49 hi Feb 07 13:14:08 is there like in drupal .. modules for some funtions in android? Feb 07 13:14:17 like add-ons.. modules..? Feb 07 13:14:23 anyone used drupal? Feb 07 13:14:53 so you dont have to invent basic stuff like login ..etc.. Feb 07 13:15:05 is setting auto focus on a camera app as simple as this or not? parameters.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO); Feb 07 13:15:15 my site is made in drupal yeh Feb 07 13:21:13 Gaz` do you know if theres anything like that in android? adding modules? Feb 07 13:24:49 hi Feb 07 13:25:54 bestKoderEver: not that i know of. there are some libraries which add stuff, but nothing standardized Feb 07 13:29:07 hello Feb 07 13:29:40 RobinB oki.. any site you recommend having those libs? Feb 07 13:30:40 is there a different way to start a intet but startActivity(i); ? i'm working for a menu, and i want the intent to be created only once, and after that to resume it Feb 07 13:32:50 it seems startActivity gets me to public void onCreate(Bundle savedInstanceState) { with savedInstanceState null Feb 07 13:36:20 bestKoderEver: sorry, no. not really used them much. i'd just google. Feb 07 13:36:30 also, if you do games, there are some pretty good game frameworks Feb 07 13:42:36 RobinB :-) hehe.. no games ..just hardcore office stuff.. Feb 07 13:54:49 is that like taking your laptop underwater and hosting a conference call Feb 07 14:10:44 Is there a way to get the the album cover of a music album on the sd card? I see there's MusicStore.Audio.Media.ALBUM_ART, but logcat complains that the column doesn't exist(and I can't find it in the docs so I think it's deprecated?) Feb 07 14:12:52 Odd thing happened. I had a version 3.2 of my app and I applied focus to a text edit view and the keyboard automatically opened up. Now in 4 it doesn't open up the keyboard automatically. Feb 07 14:21:48 hi, i'm writing an application and i need help. it's a chat application. i have a listview for the display of the messages and i want to put an edittext (to send messages) always to the bottom. how to do that? RelativeLayout? Feb 07 14:23:08 hmmm adding focus to a EditText view in version 4 doesn't open the keyboard. This a bug? Feb 07 14:26:07 JakeWharton wanna make me some gfx? :) Feb 07 14:29:09 Dont be lazy Feb 07 14:29:18 i am not capable of doing it Feb 07 14:32:02 I have been looking at how to override using RegisterNatives Key events. I am using the native-activity source code testing on the Asus TF101 I can override dispatchKeyEventNative which works if I have not dock it with the keyboard... But once I dock keyboard the code then seems to ignore my dispatchkeyEventNative code.. I am tring to get the unicode for the keys that are pressed. I can... Feb 07 14:32:04 ...not seem to find a native way of doing this Feb 07 14:36:05 ello - I want to show a status bar notification at some point in the future. Do I use AlarmManager & Notification? Feb 07 14:36:47 dang`r`us: yes Feb 07 14:36:55 thx :) Feb 07 14:37:57 does anyone have a link for a tutorial on how to stick an EditText always at the bottom of a ListView? Feb 07 14:38:32 boooh: add an extra row? Feb 07 14:38:34 boooh: a relativeLayout and adding alignParentBottom="true" should do the trick Feb 07 14:38:44 check if list position is the last one in getview and add another row Feb 07 14:38:55 if you dont want it to scroll just do what krob said Feb 07 14:38:58 (ah sorry listview) Feb 07 14:38:59 or use aa linear layout Feb 07 14:40:18 Krob: when i tap the EditText, the touch keyboard apperas, and the listview disappears... Feb 07 14:40:38 Krob: i did what you said. Feb 07 14:41:03 boooh: could it be that the view is behind your keyboard? Feb 07 14:41:18 no it goes up Feb 07 14:41:25 hmm Feb 07 14:41:27 and if the listview has enough messages Feb 07 14:41:31 i can see it Feb 07 14:41:36 and scroll it Feb 07 14:41:43 strange things Feb 07 14:41:59 how is the listview filled? Feb 07 14:42:19 is filled by a service in the background Feb 07 14:42:26 with text Feb 07 14:42:29 every row Feb 07 14:42:36 has 3 textView Feb 07 14:42:43 with a cutom arrayAdapter? Feb 07 14:42:50 baseadapter Feb 07 14:44:01 boooh, you can add footers / headers to the list view Feb 07 14:44:12 boooh, watch the google io listview talk Feb 07 14:44:20 thx Feb 07 14:44:24 boooh, http://www.google.com/events/io/2010/sessions/world-of-listview-android.html Feb 07 14:44:37 thx Feb 07 14:48:32 i remember the world of listview Feb 07 14:48:38 i had never used a listview before sitting in that session Feb 07 14:51:53 It's a nice talk indeed Feb 07 15:07:10 hey anyone ever seen an error like this: "PGC: map but no entry for ..." Feb 07 15:08:07 first time using a web service..which should i choose: AWS or GAE?(i only know PHP and basic client-side java) Feb 07 15:08:34 what's aws? Feb 07 15:08:43 amazons web services Feb 07 15:08:46 i'd use gae but only because it's a funny acronym (haha, gay.) Feb 07 15:08:55 lol:) Feb 07 15:12:22 humpt Feb 07 15:14:07 when i have an item in the listview i only get the position. is there a better way to get to the ID than using a hidden textview or something? Feb 07 15:15:25 the adapter is backed by a database Feb 07 15:16:36 add a tag? to one of the visible views Feb 07 15:17:47 StrangeBrew: i'd say GAE is easier to start with, but AWS is more flexible, because you can do your own stuff down to the machines the service is running on. Feb 07 15:18:23 you could also try heroku, which is similar to gae but has a bit more flexibility. Feb 07 15:18:56 thx mikedg, guess i need to override getview Feb 07 15:19:23 yup Feb 07 15:19:49 What ID? Feb 07 15:22:32 trying to have a custom ListView where I override getView() for bitmaps and what not. getView() finishes quickly, but the overall experience is slow because the ListView stuff calls getView() over and over again even for a short list. I've read this could be because of using WRAP_CONTENT instead of having fixed rows, but this seems like an unreasonable limitation. Is there no way to tell ListView to just CTFO and not remeasure/redra Feb 07 15:22:32 constantly? Feb 07 15:24:29 thanks Xperimental, i wish there was a guide for those things..its a whole new world for me. so confusing. Feb 07 15:24:54 thats awesome that heroku has git deployment Feb 07 15:28:23 mh can i fetch 3 columns in my adapter but only assign 2 and use the 3rd as tag? Feb 07 15:28:51 or do i have to fetch the 3rd value in getview from the db? Feb 07 15:29:50 you can fetch all you want Feb 07 15:31:58 i meant the string[] from the adapter, but i guess i cant acces it in getview anyway Feb 07 15:41:18 different question, do you use a "," befor "that" in english sentences? Feb 07 15:41:50 "so small that it fits everywhere"? Feb 07 15:42:47 or " another benefit is that you get a lot of money" Feb 07 15:55:20 holde: sometimes, but not automatically. not in the two examples you listed. Feb 07 15:58:52 how do i know if my webservice accepts RPC or soap? Feb 07 15:59:05 more then just trying ;-) Feb 07 15:59:24 if it's your webservice, you should know... Feb 07 15:59:49 Hey everyone. Anyone pretty familiar with the Chris Pruett example SpriteMethodTest? Feb 07 15:59:58 he didn't say that he made the web service Feb 07 16:00:11 PeteS: "my" implies ownership Feb 07 16:00:24 evancharlton: "ownership" does not imply "authorship" Feb 07 16:00:37 it implies understanding, though Feb 07 16:00:38 he's got you there dawg. Feb 07 16:00:49 evidently you've never worked in business :p Feb 07 16:00:59 why? what if he's new to a project at a company that made it, and he doesn't know how to find out what type it is? Feb 07 16:06:23 evancharlton is it possible to "import" a webservice and make a instance of it? so i can call methods in it...even if the webservice is in C#.. should be easy..? Feb 07 16:16:13 Im trying to track the users past location, I put in the shared prefs where they are, but when I hit the back button to go back a slide. then load the shared prefs it doesn't show the changes.. have to completely refresh the activity for the changes to show... its as if its being cashed. Feb 07 16:23:59 roger_padactor: did you commit Feb 07 16:24:53 hello Feb 07 16:30:32 mikedg: No, that was the bug.. thanks for the answer. Feb 07 16:34:53 hi Feb 07 16:35:22 can I setCurrentTab from a context ? Feb 07 16:35:28 ahh im done with milestone #2 with my app :) Feb 07 16:35:51 time to go home :) Feb 07 16:37:04 Is there a way to get the the album cover of a music album on the sd card? I see there's MusicStore.Audio.Media.ALBUM_ART, but logcat complains that the column doesn't exist(and I can't find it in the docs so I think it's deprecated?) Feb 07 16:43:09 ~@?;.mjnbgvc Feb 07 16:51:24 hello Feb 07 16:52:27 hello hkhalid Feb 07 17:08:47 Hi there Feb 07 17:08:50 has anyone made any frameworks for hovering a view and having it drop down from an area on the screen? Feb 07 17:12:50 There is a method to replace a View with other? Like a LinearLayout from XML to other LinearLayout from java? Feb 07 17:15:12 waltercool: you could hide and show them Feb 07 17:16:57 roger_padactor, but I want to replace it because I'm getting garbage from an arrayadapter, and I want to put a saved state of LinearLayout Feb 07 17:17:58 ok so you want to load a different LL depending on the data in the array adapter? Feb 07 17:19:21 exactly, I'm trying to save calculations, so, I'm trying to avoid recalculate the fields Feb 07 17:26:39 Anyone know the best solution to play a 'local' audio file in a webview app? PVPlayer fails everytime know matter what format I use. Pulling files from the web works fine however. Feb 07 17:28:17 can't you use html5 audio tag? Feb 07 17:28:34 that's what i'm using. Feb 07 17:29:44 when I pull an audio file from the web, the logs show that it uses STAGEFRIGHTPLAYER and AWESOMEPLAYER...but when it's a local file, it uses PVPlayer, and for whatever reason it fails to play the sound Feb 07 17:30:15 tried every format that android supports Feb 07 17:49:36 shitshow chrome for android Feb 07 17:54:45 i am trying to create a simple tcp connection .... phone as client and pc as server Feb 07 17:54:46 http://pastebin.com/UZHiKtcU Feb 07 17:55:04 but its not connecting .. Feb 07 17:55:34 a link that has a simple working would also do Feb 07 18:02:47 okay, why the fuck is chrome geo-limited? Feb 07 18:02:57 what? Feb 07 18:03:14 canadiancow|work: Chrome for Android is not available in HK :D Feb 07 18:03:22 really? Feb 07 18:03:22 "select countries in the following languages: English, Français, Deutsch, Español, Português, 日本語 and 한국어" Feb 07 18:03:22 lame Feb 07 18:03:31 canadiancow|work: Can you download it? :O Feb 07 18:03:34 And upload the apk :p Feb 07 18:03:51 i can download it Feb 07 18:03:51 lol Feb 07 18:03:55 fine... Feb 07 18:04:14 =) Feb 07 18:06:02 SimonVT where can i put it Feb 07 18:06:12 dropbox or something? Feb 07 18:08:13 does anyone here know why gpu emulation causes my emulator to crash (eclipse)? http://pastebin.com/E2HZcxhf Feb 07 18:11:56 skunkape: gpu emulation is tricky right now, it seems Feb 07 18:14:45 p_l|backup did you want chrome? Feb 07 18:16:33 i want it Feb 07 18:17:15 i dont know you Feb 07 18:17:58 hehe it's only an app!! Feb 07 18:19:12 hi Feb 07 18:20:17 how to make this whole layout scrolling properly http://pastebin.com/xeU3z9eH, it's a scrollview with a ListView at its end Feb 07 18:20:24 canadiancow|work: not me (no hardware that runs it) Feb 07 18:20:41 canadiancow|work: Yo dawg Feb 07 18:20:53 I have to make this http://i.imgur.com/7MXOP.png for a widget. I originally had it as the background image of a view. but that doesn't work because it has to scale. How do I build it for use in a tablet widget? Feb 07 18:21:13 the ListView at the end doesn't scroll Feb 07 18:21:21 ya SimonVT? Feb 07 18:21:37 canadiancow|work: Thought you were the guy to help maxagaz :p Feb 07 18:21:48 oh LOL Feb 07 18:21:54 maxagaz: DO NOT PUT A LISTVIEW IN A SCROLLVIEW Feb 07 18:21:56 or vice versa Feb 07 18:22:02 unless the scrollview goes horizontal Feb 07 18:22:05 but even then... Feb 07 18:22:27 wow Chrome on Android is sweet! Feb 07 18:22:51 maxagaz: If you need stuff above your list items that's still scrollable, set a header view on the listview Feb 07 18:23:03 canadiancow|work: I know that, I just added the ListView, but I don't how to rearrange it to make the whole scrolling properly Feb 07 18:24:57 Wavesonics: i want it for froyo ! XD Feb 07 18:25:18 haha wow ya definately not coming to froyo :P Feb 07 18:25:33 sounds like the used a lot of 4.0 specific stuff, so probably wont be back ported to anything prior to 4.0 Feb 07 18:25:36 * p_l|backup still runs Froyo Feb 07 18:26:00 i wish I could get ICS on my rogers captivate. Feb 07 18:26:19 heh, at least you could fix CM9 to run on it Feb 07 18:26:22 in the blog it says only for 4.0... Feb 07 18:29:15 roger_padactor: lol rogers Feb 07 18:29:17 and lol captivate Feb 07 18:29:36 I like the phone... Feb 07 18:29:45 worst phone i ever used Feb 07 18:29:48 when i first saw one Feb 07 18:29:51 i wanted to shoot samsung in the face Feb 07 18:29:59 hahah. what one do you use? Feb 07 18:30:33 galaxy nexus Feb 07 18:30:43 SimonTV: it must be an include in a separate layout file ? Feb 07 18:30:43 well before that... Feb 07 18:30:47 nexus one Feb 07 18:30:49 chrome beta so nice Feb 07 18:30:54 needs to be a little more optimized for mobile... Feb 07 18:31:02 like double-tap to fill-zoom isn't implemented yet it seems Feb 07 18:31:28 how do i uninstall the android browser :P Feb 07 18:31:36 rm Browser.apk Feb 07 18:31:42 disable it :p Feb 07 18:31:50 so you know how andorid comes with google music now, and the android music player doesnt exist anymore? (at least on my GN) Feb 07 18:31:54 is the same thing going to happen with the browser Feb 07 18:32:17 i hope samsung fix the stupid handsfree keys on S2 Feb 07 18:32:21 Hopefully Feb 07 18:32:25 maxagaz: yes Feb 07 18:32:28 or rather the way hte music player handles them Feb 07 18:32:44 canadiancow|work: Market updates to the browser is nice tho Feb 07 18:33:03 yea that Feb 07 18:33:09 im surprised they havent done that for everything though Feb 07 18:33:14 like why cant i update gtalk Feb 07 18:33:17 or Messaging Feb 07 18:33:19 or Calendar Feb 07 18:33:20 or... Feb 07 18:33:30 remove update control from the OEM's and carriers Feb 07 18:33:32 well the cptivate was out before the nexus one too.. so what did you use before that? Feb 07 18:33:42 uh...no it wasnt o.O Feb 07 18:34:12 actionbar list nav seems to suck ass Feb 07 18:34:31 first release of a galaxy s was june 2010 Feb 07 18:34:35 nexus one was jan 2010 Feb 07 18:34:53 really... Feb 07 18:35:20 hmm... you win again canadiancow|work Feb 07 18:35:26 :) Feb 07 18:35:40 where in canada? Feb 07 18:35:46 r u from? Feb 07 18:36:06 SimonVT: okay, thanks :) Feb 07 18:36:49 * pfn kicks the actionbar list nav thinger Feb 07 18:36:59 let me use the full width of the actionbar and shove everything in overflow, damnit Feb 07 18:37:14 canadiancow|work: ^^ Feb 07 18:37:24 toronto Feb 07 18:37:50 wth Feb 07 18:37:56 Anyone good hiring in TO? im from london. Feb 07 18:38:00 i've never heard of a command called ddate, but i just accidentally typed it and got this insanity: Feb 07 18:38:01 zynga Feb 07 18:38:03 Today is Pungenday, the 38th day of Chaos in the YOLD 3178 Feb 07 18:38:13 wtf UNIX Feb 07 18:38:32 Hail Eris! Feb 07 18:38:33 jasta: sounds like you've discovered a new world Feb 07 18:38:57 canadiancow|work: that where you work Feb 07 18:39:39 "Preferred Qualifications: Feb 07 18:39:40 - Active and demonstrable work on the current Android platform, including the latest ICS versions." Feb 07 18:39:47 fuck off Feb 07 18:40:41 ;) Feb 07 18:40:55 hahahaha Feb 07 18:41:13 Why Toronto? Feb 07 18:41:19 Crazy city, this one. Feb 07 18:42:31 jasta, you have /usr/games in your path or something Feb 07 18:42:43 SimonVT: it almost works, but it's only scrolling in the ListView while I'd need the header to scroll up as well Feb 07 18:42:47 pfn lol Feb 07 18:42:47 jasta, and that's not a standard unix command, either Feb 07 18:43:20 * pfn wonders how gmail does its actionbar dropdown Feb 07 18:43:24 maxagaz: Did you add it with ListView.addHeaderView(...)? Feb 07 18:43:30 does everything just go into overflow and the split actionbar... Feb 07 18:44:48 The spinner at the top you mean? Feb 07 18:44:55 SimonVT, yeah Feb 07 18:44:57 roger_padactor: yes Feb 07 18:45:06 Maybe this: http://developer.android.com/reference/android/app/ActionBar.html#NAVIGATION_MODE_LIST Feb 07 18:45:11 or a custom view Feb 07 18:45:32 Are all the horror stories true about that place? Feb 07 18:46:40 SimonVT, I know how to /make/ the dropdown, I don't know how to style it Feb 07 18:46:55 yeah, it might be a custom list Feb 07 18:46:55 oh :p Feb 07 18:47:17 gmail's dropdown is the entire width of the actionbar Feb 07 18:47:43 navigation_mode_list is only the remainder between the actionbar logo and the 2 actionitems if-present Feb 07 18:47:54 which is very little space in portrait Feb 07 18:49:23 What if you don't have any menu items in the top bar? Feb 07 18:49:46 then it expands to fill the bar Feb 07 18:50:04 ifRoom takes precedence over the dropdown width, which is annoying Feb 07 18:50:21 So use the split action bar :p Feb 07 18:50:25 anyone recommend an app that does this, or anyone wanna do this for me? :D http://script.quakenet.org/paste/580935 Feb 07 18:50:26 That's what gmail does Feb 07 18:50:36 yeah, I don't want the split actionbar for my app Feb 07 18:50:49 Well, provide different menu xml's then :p Feb 07 18:51:05 yeah, that's pretty sucky, too Feb 07 18:51:10 menu-portrait showAsAction="never" Feb 07 18:51:11 because this is an alternative navigation mode Feb 07 18:51:20 how would I make this. http://i.imgur.com/7MXOP.png so its scaleable in a widget? Feb 07 18:51:26 Tss, don't give too much choice Feb 07 18:51:36 roger_padactor: 9patch Feb 07 18:53:24 1px width, make the white area 1px height.. Then create the 9patch so it stretches the white area Feb 07 18:54:23 SimonVT: would the grey area be part of the same 9pathc? Feb 07 18:54:30 Yes Feb 07 18:56:02 Does anyone know if there's a list of android defined colors that I can use in my XML? Feb 07 18:56:21 Like when I'm trying to use the syntax @android:color/transparent or whatever? Feb 07 18:56:40 http://developer.android.com/reference/android/R.color.html Feb 07 18:57:02 SimonVT: Ah. Thanks that's exactly what I was looking for! Feb 07 18:57:19 colors, strings, animation etc.. They're all there Feb 07 18:59:32 SimonVT: no idea why my header is not scrolling ? Feb 07 18:59:46 You're not adding it as a header to the listview Feb 07 19:00:06 you know whats funny about http://apple.slashdot.org/story/12/02/06/2150249/a5-mystery-solved-why-siri-wont-run-on-iphone-4 Feb 07 19:00:15 google voice actions seems to filter out ambient noise way better than siri Feb 07 19:00:32 I'm trying to insert a relativelayout into listview. I'm writing a class that extends arrayadapter. In the reference, it says to override getView but I dont really understand what getView is taking as parameters Feb 07 19:01:58 what is View convertView and ViewGroup parent? Feb 07 19:02:03 canadiancow|work: I think google has wayyyy much more dat Feb 07 19:02:04 *data Feb 07 19:02:08 http://developer.android.com/reference/android/widget/ArrayAdapter.html#getView(int, android.view.View, android.view.ViewGroup) Feb 07 19:02:20 AbstractClass: did you read the doucmentation? Feb 07 19:02:28 yeah there isn't naything for that method though Feb 07 19:02:38 AbstractClass: http://www.youtube.com/watch?v=wDBM6wVEO70 <- required watching before asking listview questions :p Feb 07 19:02:45 ^ +1 Feb 07 19:02:57 SimonVT thanks haha Feb 07 19:03:05 weird Feb 07 19:05:32 SimonVT: I did it by adding android:layout_below="@id/top_header" to the ListView Feb 07 19:05:54 19:43 maxagaz: Did you add it with ListView.addHeaderView(...)? Feb 07 19:06:01 That's how you add a headerview to the listview Feb 07 19:06:04 SimonVT: I also tried to nest it in a LinearLayout below the include header Feb 07 19:06:16 Seperate layout file, inflate it, add it Feb 07 19:06:20 Yay, it scrolls Feb 07 19:06:27 SimonVT: oh Feb 07 19:06:58 not yet Feb 07 19:09:50 in eclipse where is the draw 9 patch tool? or is it only command line? Feb 07 19:10:13 roger_padactor: just start it up via command-line Feb 07 19:10:29 * g00s sucks at 9 patches Feb 07 19:10:31 roger_padactor: you could always make it the default program for opening png's Feb 07 19:11:40 i'm adding a jar i made to my project in eclipse, using it fine within the editor, but getting "NoClassDef" error at runtime...what am i missing Feb 07 19:13:00 for writing to /sdcard/ is any special permission is needed? Feb 07 19:13:12 yes Feb 07 19:13:13 Yes, there's a permission for write external Feb 07 19:13:15 WRITE_EXTERNAL_STORAGE or something Feb 07 19:13:23 i see Feb 07 19:14:20 u should testt it Feb 07 19:14:25 * Jug6ernaut runs away Feb 07 19:14:28 this is totally annoyingly crap Feb 07 19:14:32 :D Feb 07 19:14:38 so an app i wrote and love, that's now managed by another company, was updated last night to suppor ICS. they did this by targetting 14. which removed the soft menu button. which makes the menu inaccessible on ICS T_T Feb 07 19:14:58 afreq are they android classes included in ur jar? Feb 07 19:15:13 if so u need to include the jar as source as an android library Feb 07 19:15:32 it's just java. i've tried the whole using the "lib" folder Feb 07 19:15:32 does android limit the max cpu that an app can use Feb 07 19:15:51 afreq did u include the jar in the project settings? Feb 07 19:16:02 yeah i've included the jar Feb 07 19:16:04 you can have a jar with android classes Feb 07 19:16:10 i can call the methods and classes in the editor Feb 07 19:16:16 without using it as android library project Feb 07 19:16:17 it compiles etc Feb 07 19:16:41 afreq make sure ur exporting the jar correctly Feb 07 19:16:44 Lawl, canadiancow|work Feb 07 19:16:51 is the .jar in the libs/ folder? Feb 07 19:17:26 has to be libs/ not lib/ or libraries/ or l/ Feb 07 19:17:38 afreq make sure your exporting the correct files Feb 07 19:17:53 t0mless that doesnt matter as long as u have it selected right Feb 07 19:18:00 umm Feb 07 19:18:00 t0mless: yeah i meant "libs" sorry, also tried "assets" Feb 07 19:18:02 yes it matters Feb 07 19:18:10 for android it HAS to be libs Feb 07 19:18:23 Jug6ernaut: yeah i think i've exported the jar right. It's just got one package and one class in it anyway for testing Feb 07 19:18:25 no it doesnt, ive included jar's from paths 100miles away from my /libs folder Feb 07 19:19:00 afreq, you using eclipse? Feb 07 19:19:11 yeah eclipse Feb 07 19:19:25 and you added the jar to your project's build path? Feb 07 19:19:36 on osx is there a way to lunch the terminal from a director try so it loads from the current dir? Feb 07 19:19:54 never mind Feb 07 19:20:16 t0mless: yeah i have. I have, for example, the admob jar in there which i am using fine. I'm able to access the class inside the jar from within the android project. Feb 07 19:21:27 afreq go back to how u exported the project to jar, make sure you have the gen/bin folder selected with the .class files to be exported Feb 07 19:23:34 Jug6ernaut: I am using eclipse to export the jar. I have the project selected, which in turn selects the only package i have in there ticked. I have the setting "export generated class files and resources" ticked. Feb 07 19:24:20 i guess those amazon kindle fires will probably not get chrome Feb 07 19:24:37 hehe Feb 07 19:24:38 How do you set minSdkVersion in the manifest to something other than "AOSP" when building e.g. Email.apk Feb 07 19:24:54 The correct way that is? Feb 07 19:27:05 could it be something wrong with eclipse? i've tried restarting it. Feb 07 19:27:19 Does eclipse use a cache for jars or anything like that? Feb 07 19:35:58 http://pastebin.com/tAPEdfwp Feb 07 19:36:16 somethings wrong with my lifecycle handling Feb 07 19:36:38 the back button sometimes causes the app to die and I have to force close it Feb 07 19:36:43 oh, I believe you Feb 07 19:36:46 Not sure exactly what causes it Feb 07 19:36:48 :P Feb 07 19:37:09 so what am I doing wrong? Feb 07 19:37:50 why wouldn't the back button allow your activity to be destroyed? Feb 07 19:37:59 maybe you're just not understanding the lifecycle? Feb 07 19:38:10 t0mless: I think I do Feb 07 19:38:36 But it causes it to freeze and the "Force Close" or "Wait" options come up on screen Feb 07 19:39:13 if you get a force close, look at logcat and see the exception Feb 07 19:40:07 but the fact you have so many setContentView calls in your activity just scares me Feb 07 19:40:18 I can't usually recreate it in the emulator because it throws random errors about images being too big Feb 07 19:40:41 yeah, I should have implemented it all with a SQLite database :/ Feb 07 19:41:14 or fragments Feb 07 19:41:18 ^ Feb 07 19:41:28 hmm, never heard of them Feb 07 19:41:33 I'm very new to app dev Feb 07 19:41:49 Also, you should treat errors as random Feb 07 19:42:00 and maybe as a guilde to what you need to remedy Feb 07 19:42:33 so… getView() in my custom ListView continues to get called multiple times per row when the app is not doing anything. everything in the view is now set to a static height. anyone have a clue wtf ListView is doing and why it has to reprocess each row so many times? Feb 07 19:42:37 yeah, thats true too Feb 07 19:43:07 but I ask again, why do you think your app is exempt from being destroyed when it's closed via back button? Feb 07 19:43:22 t0mless: I don't Feb 07 19:43:48 I think it should bring me to the previous activity Feb 07 19:45:12 is that activity you pasted not the first activity you launch? Feb 07 19:45:18 bitmap size exceeds VM budget Feb 07 19:45:24 is the error I keep getting with the VM Feb 07 19:45:32 t0mless: it is Feb 07 19:45:47 do you have large image resources? Feb 07 19:45:50 yes Feb 07 19:45:55 thats whats causing it Feb 07 19:46:01 no way I can cut down on them either Feb 07 19:46:19 you can't compress them in any way? Feb 07 19:46:23 i think my only option is to collect all my android resources in one central place, and then set them on fire. Feb 07 19:46:46 t0mless: I tried that, but they got too fuzzy Feb 07 19:46:54 Lazy load your images Feb 07 19:46:55 alternatively, i may just throw my laptop out the window. I havn't decided. Feb 07 19:46:58 Don't need them all in memory Feb 07 19:47:02 and I didn't compress them too densely either Feb 07 19:47:07 SimonVT: lazy load? Feb 07 19:47:12 Load as needed Feb 07 19:47:17 thats what I am doing Feb 07 19:47:21 use tiles that you can load and unload Feb 07 19:47:21 I think... Feb 07 19:47:28 Throw them away when they are no longer on screen Feb 07 19:47:48 SimonVT: ok, I definately amn't doing that... Feb 07 19:48:06 ahow984_ that won't just be a emulator problem, the VM its talking about is the dalvik vm, so it will explode on devices too Feb 07 19:51:22 t0mless: doesn't on the only device I have Feb 07 19:51:27 HTC Wildfire S Feb 07 19:51:33 so modest enough hardware Feb 07 19:51:49 hmm this 9patch drawing thing is confusing me.. I have a 10 pox sliver and I want it to stretch so i add the dark in the middle top and bottom but in the preview it doesn't look like its scaling width... Feb 07 19:51:49 yes, i have decided first to set my laptop on fire, and then throw it out the window while on fire. I can then piss on it to put it out. Feb 07 19:52:29 anyone trying to convert apps to bb for a playbook? Feb 07 19:52:50 still waiting on rim to send me my account auth Feb 07 19:53:11 I don't think they like that I'm an individual that isn't Canadian Feb 07 19:53:22 but my app converted just fine Feb 07 19:54:16 t0mless: I think the easiest thing to do is just make the back button a dummy and rely on buttons Feb 07 19:54:24 this app is actually disgusting.... Feb 07 19:55:07 wat app Feb 07 19:55:31 one I'm trying to make Feb 07 19:55:41 all static content, nothing exciting at all about it Feb 07 19:55:47 but manages to be horrible all the same Feb 07 19:56:01 I've broken every possible good practise lol :P Feb 07 19:56:25 t0mless: I randomly received one. Couldn't be bothered to sign in though. :) Feb 07 19:56:45 nice Feb 07 19:57:21 The sorority girls at my school all have Blackberry's. Feb 07 19:57:29 Wonder if they are ever going to get over BBM Feb 07 19:58:15 google talk ftw Feb 07 19:58:26 especially now that it does video talk across practically all platforms Feb 07 19:58:30 pfn: I like gtalk. I wish it wasn't so disconnected. Feb 07 19:58:52 I guess, I wish gtalk and gvoice were one product. Feb 07 20:03:00 speaking of gvoice Feb 07 20:03:01 I'm waiting too Feb 07 20:03:04 that got an update today Feb 07 20:03:10 i wish i would have signed up last week Feb 07 20:03:14 does that use data connection to make calls? Feb 07 20:03:50 i made an app on some random site and had to remove c2dm to get it be okay Feb 07 20:04:03 to be* Feb 07 20:04:15 whats gvoice Feb 07 20:04:21 google voice Feb 07 20:04:28 yea i know what it stands for Feb 07 20:04:31 but what IS IT Feb 07 20:04:39 some chat app with voice Feb 07 20:04:48 or another voice recognition system Feb 07 20:04:55 It's a service Feb 07 20:05:08 you get a phone number or can just set up gvoicemail for your current # Feb 07 20:05:10 google voice is a 1-phone-number service Feb 07 20:05:12 to get visual voicemeail Feb 07 20:05:44 I got when I was a substitute teacher in the bay and they wanted me to have a local phone # Feb 07 20:08:25 i use it for free txt msg Feb 07 20:09:44 I would too if I didn't already have unlimited texting in my family plan Feb 07 20:10:10 i don't, cause I'm poor Feb 07 20:10:16 and on disability atm Feb 07 20:10:33 plus i do it for craigslist Feb 07 20:10:40 then they don't have my real phone # Feb 07 20:12:35 ugh, come on rim. email me saying i can dev Feb 07 20:13:00 did you send ID as an individual or a business? Feb 07 20:13:25 individual Feb 07 20:13:39 unlimited texting is expensive with any carrier Feb 07 20:13:45 maybe ill do it again and sign up under my mother-in-laws business Feb 07 20:13:46 just drop texting from all plans and use google voice for texting Feb 07 20:14:18 \exit Feb 07 20:14:43 my parents have it because my sister texts like a fiend... and she's not tech savvy enough to do google voice texting Feb 07 20:14:52 not to mention she only has a feature phone Feb 07 20:15:27 i find texting pointless Feb 07 20:15:41 by the time i type in what i want to say i'd have said it to hte person 10x Feb 07 20:15:56 and with my plan its pointless to NOT call someone Feb 07 20:23:24 Im using a 9patch to use as a background. For some reason it paddings do no work. its like its filling in the padding as well. Also im placing textview in it. but the text will only go where the 9patch streaches... confused... Feb 07 20:23:35 stretches * Feb 07 20:24:17 did you define the content area in your 9patch also? Feb 07 20:24:57 and try using a margin to add space between the edge and your background Feb 07 20:26:38 t0mless: yeah.. fist time doing it so it seems odd.. Im trying to have the top 40 pixes stay gray and remain the same height but stretch vertically. the lower part is white and that can stretch horizontal. Feb 07 20:27:17 let's see your 9 patch Feb 07 20:27:27 remain the same height but stretch vertically? Feb 07 20:27:32 oops gray part can stretch horizontal.. Feb 07 20:27:58 t0mless: when did you sign up? Feb 07 20:28:28 http://i.imgur.com/gcxGN.png <-- 9ptach Feb 07 20:30:16 t0mless: ^^ Feb 07 20:30:59 Syliss friday night I think? Feb 07 20:32:31 ( roger_padactor ): you have two extra pixels at the bottom of the image Feb 07 20:32:42 that might be screwing it up Feb 07 20:32:44 hmm, I don't suppose Preference objects have a android:visibility flag Feb 07 20:33:07 I think they do... I know they have an enabled flag Feb 07 20:33:14 yeah, there's enabled, I don't see vis Feb 07 20:33:58 roger_padactor oh nvm, it was just my draw9patch program being weird Feb 07 20:35:02 ok.. if i turn on bad patches it borders the gray part. but I do not want the gray part to stretch vertical. Feb 07 20:35:22 I honestly am not sure what that bad patches is supposed to show Feb 07 20:35:26 t0mless: and your still waiting? Feb 07 20:35:34 Syliss Yup Feb 07 20:35:38 t0mless: did you do personal or bus? Feb 07 20:35:41 personal Feb 07 20:35:44 hmm Feb 07 20:35:50 interesting, android 4.0.4 rolling out to the galaxy nexus? Feb 07 20:36:32 I closed eclipse and now its drawing it properly.. odd Feb 07 20:36:55 I'm gonna keep tweeting them till i get some kind of feedback Feb 07 20:38:07 ooh, updates ;p Feb 07 20:38:37 Hello.. i have a little question.. is it possible to redirect from an Activity A to an Activity B without showing Activity A ? Feb 07 20:38:49 and chrome for android Feb 07 20:38:56 i have my app made and signed and converted. I'm just waiting for them to say, yes you can submit and hopefully get a playbook Feb 07 20:39:24 i put the intent to B in oncreate before setcontentview, but it still shows the layout for a little moment Feb 07 20:40:12 Syliss: don't you have to port 2? Feb 07 20:40:16 Oh, jasta ? Feb 07 20:40:23 having problems playing a local audio file from a webview app, remote files work fine. logfile here - http://pastebin.com/isS542RE Feb 07 20:40:34 idk Feb 07 20:41:52 i changed everything that needed to be. and it said the app was okay in the compatibility checker Feb 07 20:43:21 fuck i nuked/lost my .vimrc Feb 07 20:43:48 perfect time to switch to emacs ;) Feb 07 20:43:54 haha, just thinking that :D Feb 07 20:43:55 probably cold comfort though Feb 07 20:50:23 pfn: hey, are you using ant or sbt? Feb 07 20:52:59 synic, ant Feb 07 20:53:14 synic, I'd use sbt if it were compatible with the ant project structure Feb 07 20:53:37 and I don't want to hack on sbt to make it so... Feb 07 20:54:47 hrmm, what did you put in your build.xml to make it work? Feb 07 20:55:34 http://paste.hanhuy.com/local_build.xml Feb 07 20:56:03 I from build.xml Feb 07 20:56:10 bah lost my connection...sorry to repost the same question again. Having trouble playing a local audio file in a webview app - http://pastebin.com/isS542RE Feb 07 20:56:19 at the end before importing the sdk build.xml Feb 07 20:56:44 cool Feb 07 20:57:01 synic, you'll need to set the necessary local.properties values to find scala and stuff Feb 07 20:57:56 synic, you can copy/paste by clicking the edit lin Feb 07 20:58:00 Just released my second application to the Android market! https://market.android.com/details?id=appinventor.ai_test.SMSbomb_copy#?t=W251bGwsMSwyLDIxMiwiYXBwaW52ZW50b3IuYWlfdGVzdC5TTVNib21iX2NvcHkiXQ.. Feb 07 20:58:12 is it possible to add a footer to a listview in the listview xml in stead of addFooter()? Feb 07 20:58:34 synic, and substitute for if you want Feb 07 20:58:44 addFooterView(), even Feb 07 20:58:45 fsc has annoying bugs where you need to periodically run fsc -shutdown Feb 07 20:59:02 https://chrome.google.com/webstore/detail/idknbmbdnapjicclomlijcgfpikmndhd Feb 07 20:59:05 For chrome for android Feb 07 20:59:31 pfn: I'll give it a go Feb 07 20:59:50 why not just use chrome2phone Feb 07 20:59:54 ... Feb 07 21:00:01 cus your face Feb 07 21:00:17 there's only 1 feature I wish chrome2phone had Feb 07 21:00:22 Does about the same Feb 07 21:00:23 the ability to select which device it sent to Feb 07 21:00:33 chrome2mobile allows selecting the device Feb 07 21:00:35 Or well, chrome to phone does the text and maps and stuff Feb 07 21:01:19 SimonVT, well, chrome2mobile requires chrome for android Feb 07 21:01:24 which is a dealbreaker for 99% of cases Feb 07 21:01:39 That's why I said "for chrome for android" Feb 07 21:01:41 :p Feb 07 21:01:41 and in my situation, I chrome2phone to my honeycomb tablet much more often than I do to phone Feb 07 21:01:56 SimonVT, yeah, so why bother, might as well use chrome2phone because it's better in all aspects Feb 07 21:02:06 except for the ability to select target device Feb 07 21:02:45 Then keep using that Feb 07 21:03:08 and not to mention, chrome2phone works with chrome for android Feb 07 21:03:20 pfn what lol Feb 07 21:03:32 u can send it form ur phone....to your phone? xD Feb 07 21:03:45 Jug6ernaut, ? Feb 07 21:03:47 no Feb 07 21:03:51 send from desktop, it goes to phone Feb 07 21:03:58 and actually, mobile-to-mobile is handy Feb 07 21:04:01 since I have a tablet and a phone Feb 07 21:04:10 lol fair enough Feb 07 21:04:18 so I could send links to/from tablet without having to jump through hoops Feb 07 21:04:26 no nfc nor ics on my galaxy 10.1 so I can't just beam it Feb 07 21:04:46 hehe tweeting that bb is too slow accepting people t0mless Feb 07 21:05:20 pfn, nfc would be nice for that :/ Feb 07 21:05:32 haha, let me know if they respond Syliss Feb 07 21:06:36 Syliss is kinda an unfortunate name :F I keep reading it as something else.. Feb 07 21:06:55 let me guess syph Feb 07 21:07:18 :p Feb 07 21:07:37 meh just means you have issues reading :D Feb 07 21:07:47 :( Feb 07 21:07:53 lo Feb 07 21:07:54 l Feb 07 21:08:53 its pronounced like cy in cycle and liss as in bliss Feb 07 21:09:32 SimonVT: easier than Siobhan Feb 07 21:09:50 girls name yes? Feb 07 21:09:59 yes Feb 07 21:10:05 what's up with that name anyway Feb 07 21:10:12 that's the name of a character on ringer Feb 07 21:10:16 and they're like white trash Feb 07 21:10:20 how'd she get that name... Feb 07 21:10:23 i know a few girls with that spelling. Feb 07 21:10:33 sounds like a jewish name or something Feb 07 21:10:37 I never could figure how to say that one till I found some audio pronunciation guide -_-; Feb 07 21:10:58 pfn: gaelic (irish/welsh/scottish), with Siobhan being mainly irish spelling iirc Feb 07 21:11:21 I see Feb 07 21:14:01 never heard of that name before 'til I saw it on ringer Feb 07 21:27:39 is someone ever using greenDAO ??? Feb 07 21:28:41 "Sell Back Your Copy For a $0.44 Gift Card" Feb 07 21:28:45 yey Feb 07 21:30:07 dangui: for some reason i get kinda skeptical of those things on android Feb 07 21:30:16 Hello.. i have a little question.. is it possible to redirect from an Activity A to an Activity B without showing Activity A ? Feb 07 21:30:20 although, i confess, i would have no problem using iBatis or hibernate in ee Feb 07 21:30:37 hi Feb 07 21:30:46 ok i see Feb 07 21:30:50 ANdi``: sure, a.onCreate() … startActivity(B); finish Feb 07 21:31:30 although, its kinda weird Feb 07 21:31:37 It'll still show shortly Feb 07 21:31:48 yes it appears shortly -_- Feb 07 21:32:03 Why do you need to redirct? Feb 07 21:32:04 SimonVT: strangely enough, i have seen it not show Feb 07 21:32:38 request no titlebar or anything for activity a Feb 07 21:32:42 and it effectively doesn't show Feb 07 21:32:54 maybe thats why mine did not show, i did not have a titlebar Feb 07 21:33:16 you get a black transition or white transition depending on the theme you have Feb 07 21:33:20 thx for the tip, i'll have a try Feb 07 21:33:23 for a fraction of a second Feb 07 21:33:36 There might be better ways to do it tho.. If the first activity is simply a login activity, consider using a fragment instead, and conditionally show it.. Feb 07 21:33:37 etc Feb 07 21:34:10 blargh, fuck you relativelayout Feb 07 21:34:17 i hate working with this thing Feb 07 21:34:29 it sucks when it does weird shit Feb 07 21:34:35 it's just so counter intuitive. Feb 07 21:34:48 oh, i have this nice DAG with no cycles, everything should work … not Feb 07 21:34:53 i'd rather take a performance hit to not lay things out so awkwardly Feb 07 21:35:04 it can be a hassle, yeah :P Feb 07 21:35:19 or, create my own custom layout when i -really- care. Feb 07 21:35:23 Hey everybody, is it possible to filter the output of the TTS ? I'd like to pipe its output into a programme I'd write to remove the hiss from Google's built-in TTS. (note : I'm not asking for suggestions of other TTS engines) Feb 07 21:35:34 i had it do weird stuff when i set minHeight rather then height Feb 07 21:36:05 it's called Android needs interface builder, except one that generate a programmatically rendered GUI (in a generated Activity/View class) *and* an xml file Feb 07 21:36:19 SimonVT i want to make a little framework whose components can be started from an app with implizit intents, for example "com.framework.action.CUSTOMCOMPONENT".. before using a component the user should have to log in Feb 07 21:36:20 would make crap like that soooo much less painful Feb 07 21:36:40 hmm, i think a better DSL (not xml) would have suited me fine Feb 07 21:36:52 ANdi``: I'd use a Fragment for the login stuff Feb 07 21:37:13 hm haven't used any fragments at all yet Feb 07 21:37:20 ok, Activity/View/Fragment output for the programmatic output Feb 07 21:37:32 just haven't used Fragments yet either Feb 07 21:38:43 i did wish the adt had some facility to help visually manage the mapping of fragments to activities, they way it is now is fucking aweful Feb 07 21:39:06 amen Feb 07 21:39:23 and hierarchy viewer is not enough Feb 07 21:39:47 so the android equalizer only has 5 presets Feb 07 21:39:49 what's up with that Feb 07 21:39:56 although I saw the google i/o vids and romainguy mentioned that improvements are coming... don't know if they will have those features though Feb 07 21:39:57 i`m running N2-CyanogenMod-7.2.0-RC0-OptimusOne-KANG-signed.zip on Lg Optimus One and i didn`t liked the awd launcher so i tried to install LG Home launcher (one modified @ xda-developers to run on HDPI CyanogenMod devices like HTC EVO) and the launcher icons are BIG the desktop ones were to but i guessed what xml i should edit and resized a litle BUT the LAUNCHER DOCKBAR icons are still Feb 07 21:39:57 BIG and the desktop icons overlay a little whit Wether Clock Widget ... anny ideea what folder\XML shoul i edit? Feb 07 21:40:01 rock, rock, rock, jazz, and classical Feb 07 21:40:02 :D Feb 07 21:40:19 sorryu i mean 5 bands Feb 07 21:40:21 not presets Feb 07 21:40:45 Sebby try #android-root or #cyanmod Feb 07 21:43:20 Hi. I have trouble to export an apk (update for my app) The exported apk is a lot smaller and misses a lot of files (resources, manifest,...) any ideas what could be wrong? Feb 07 21:44:05 perhaps you had a build error and the resources weren't packaged? Feb 07 21:44:45 no, no errors Feb 07 21:44:55 i can export another android project's apk without problems. switching the repo to the last tagged version didin't help either Feb 07 21:45:53 so it seems it's no the eclipse plugin, and it can't be something I checked in the repo Feb 07 21:46:53 so what unexplored paths am i missing? Feb 07 21:47:45 ah, of course i cleaned the project (several times) and I also restarted eclipse with -clean Feb 07 21:50:11 try building from command line? Feb 07 21:50:14 ah, and I can run the app via launcher on the device with no problems Feb 07 21:50:22 still nothing t0mless Feb 07 21:50:38 t0mless: good idea, thanks... Feb 07 21:51:58 t0mless: if you get accepted let me know Feb 07 21:52:04 will do Feb 07 21:52:05 have you sent in a copy of your id? Feb 07 21:52:11 yup Feb 07 21:52:18 two different one actually Feb 07 21:52:18 it never asked for mine Feb 07 21:52:23 crap Feb 07 21:52:36 did they email you to have you do it? Feb 07 21:52:42 Yup Feb 07 21:52:47 eff me Feb 07 21:53:09 check your spam? Feb 07 21:53:14 i do Feb 07 21:53:58 maybe ill resign up Feb 07 21:54:03 and use a different email Feb 07 21:54:06 ug Feb 07 21:55:09 i got a kindle last week, got a free gelaskin gift card Feb 07 21:55:32 now I'm just waiting for this, really want a playbook! Feb 07 21:59:47 * g00s is trying to decide whether to get a kindle too Feb 07 22:00:00 i just hate getting locked into amazon's silo Feb 07 22:00:14 or google's, or apple's, ... Feb 07 22:00:57 g00s: Kindle 3G with keyboard is quite fine Feb 07 22:01:17 doesn't really lock you, though it doesn't support epub Feb 07 22:01:18 problem is, what happens to my books if amazon shits itself Feb 07 22:01:39 g00s: well, I didn't buy ebooks from them, so I don't know :D Feb 07 22:01:51 but iirc amazon's drm is easy to crack Feb 07 22:01:55 i would want a kindle to support pdf really well Feb 07 22:02:11 good enough to read, most of the time Feb 07 22:02:51 nook does epub doesn't it Feb 07 22:02:55 i'm just reading about this book http://h30565.www3.hp.com/t5/Feature-Articles/How-to-Succeed-as-an-Introvert/ba-p/1522 Feb 07 22:04:39 http://www.appleinsider.com/articles/12/02/07/apple_sparked_app_economy_created_466k_us_jobs_in_4_years.html Feb 07 22:05:05 ca, ny, and wa Feb 07 22:05:09 hmm Feb 07 22:05:14 somehow I doubt "466k" number Feb 07 22:05:38 a lot of devs are needed to make those wallpapers Feb 07 22:07:02 p_l|backup: probably more like 466k people have worked on an iPhone app as part of their job in the last 4 years, including non-iPhone apps that got ported later. Feb 07 22:09:07 Hey, need help. I optimized my app to Android 4.0. Added an ActionBar with Tab. Select a tab, will load a fragment / do a transition. Works perfect until I rotate my device. If I now select a tab, the onCreateView() method of the selected fragment get called, but the view not updated. Any tips? Feb 07 22:13:18 * Sebby running N2-CyanogenMod-7.2.0-RC0-OptimusOne-KANG-signed.zip on Lg Optimus One and i didn`t liked the awd launcher so i tried to install LG Home launcher (one modified @ xda-developers to run on HDPI CyanogenMod devices like HTC EVO) and the launcher icons are BIG the desktop ones were to but i guessed what xml i should edit and resized a litle BUT the LAUNCHER DOCKBAR icons are Feb 07 22:13:18 * Sebby still BIG and the desktop icons overlay a little whit Wether Clock Widget ... anny ideea what folder\XML shoul i edit? Feb 07 22:13:21 is it fairly common for google to break backwards app compat with android releases without highlighting said changes? Feb 07 22:13:44 Sebby: #android-root Feb 07 22:14:05 killring: umm, anything particular in mind ? Feb 07 22:14:44 I've run across two examples so far where 4.0 breaks my apps related to changes I didn't see in the release notes Feb 07 22:14:47 its not uncommon for their to be bugs in say harmony that exist in one place but not the other Feb 07 22:14:48 Sebby, this channel is for people trying/succeeding at writing android applications, not custom firmware editions of the OS afaik Feb 07 22:14:52 killring: we try to not break apps Feb 07 22:15:03 killring: what are the particular issues you ran into? Feb 07 22:15:21 one was related to the camera (a very quick fix), and another related to accessing the call history (I'm still looking into) Feb 07 22:15:48 the camera was related to 4.0 now requiring a preview surface which wasn't required in 3.x Feb 07 22:15:49 romainguy, is there any way to make actionbar navigation list take width precedence over action items show ifRoom? Feb 07 22:16:19 t0mless: building from the commandline works. Still I want to be able to export an apk from eclipse... Feb 07 22:16:20 romainguy, there doesn't seem to be any sort of style to control the width of the drop down Feb 07 22:16:28 other than editing action items to not appear, which kinda sucks Feb 07 22:16:33 romainguy: i'm reading the Exposure book, its pretty good. A few areas have me confused because they aren't explained but so far its pretty good. Feb 07 22:17:32 romainguy ((WindowManager) getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay().getHeight() seems to give me the wrong answer for width in 3.2 and seems to work fine in 2.x is that still the recommended way to retrieve the width of the screen programmatically from an Activity romainguy ? Feb 07 22:17:41 oops typed the name twice *headdesk* Feb 07 22:17:50 wow, he's being bombarded Feb 07 22:18:02 killring, what are your examples? Feb 07 22:18:05 james541: well you're asking for the height so it won't give you the right width :)) Feb 07 22:18:11 james541: more seriously, what's wrong with the result Feb 07 22:18:11 ? Feb 07 22:19:06 pfn: the camera fix was related to step 5 of http://developer.android.com/reference/android/hardware/Camera.html Feb 07 22:20:14 it appears to be less than the width that I am expecting Feb 07 22:20:16 killring, so what changed Feb 07 22:20:20 I'm trying to see if the 3.x version of that doc specifies that requirement (if so, then I obviously was sloppy in my code) Feb 07 22:20:35 which causes my code to not draw a sidepanel Feb 07 22:20:46 chrome on android, go Feb 07 22:20:52 and leave a nasty black space where that view isn't drawn Feb 07 22:21:14 I thought it was my logic but it appears to work in gingerbread at least Feb 07 22:21:19 in 3.x, not specifying a preview surface was not a problem, in 4.x not specifying it causes the my app to not function properly Feb 07 22:21:35 killring, as far as I recall, it's been required Feb 07 22:21:59 matjucim: don't forget to count people multiple times Feb 07 22:22:21 matjucim: and consider every freelancer a jonb Feb 07 22:22:23 *job Feb 07 22:22:24 but yeah I meant .getWidth() Feb 07 22:22:31 killring, it says the same thing in 2.3 Feb 07 22:22:55 .getHeight appears to always return the right answer as far as I can tell Feb 07 22:23:10 ok, so it was documented and I was taking advantage of prior releases being lax in enforcing the requirement... that makes me feel a bit better Feb 07 22:24:06 james541: what result do you get? I've never seen getWidth() return the wrong result (especially given that parts of the framework rely on it being correct) Feb 07 22:24:54 it might be my code then, I'm firing up the emulator in 3.2 to double-check the value Feb 07 22:25:04 what value do you get and what value do you expect? Feb 07 22:25:18 I expect to get the full physical width of the screen Feb 07 22:25:44 yes, so what value do you get and what value do you expect? Feb 07 22:26:20 am getting the value atm, I forgot the value I got Feb 07 22:27:06 my theory is that I might be caching a previous value of width and forgetting to call getWidth in each part of the activity that relies on width Feb 07 22:27:20 and in some android versions it is updated more frequently than others Feb 07 22:27:39 of course, if Google *always* called getWidth, this issue would never appear Feb 07 22:27:54 p_l|backup: yes, something like that. And we haven't even counted real liars yet. Feb 07 22:27:55 as opposed to caching it in an int or similar Feb 07 22:31:43 people that mix tabs and spaces will die. Feb 07 22:31:43 Hey everybody, is it possible to filter the output of the TTS ? I'd like to pipe its output into a programme I'd write to remove the hiss from Google's built-in TTS. (note : I'm not asking for suggestions of other TTS engines) Feb 07 22:31:46 i know this because i will kill them. Feb 07 22:32:00 it'd be nice if stuff universally tabified uniformly Feb 07 22:32:05 * g00s knows jasta will indeed kill them Feb 07 22:32:19 (by what method : the most pailful, of course) Feb 07 22:32:23 *painful Feb 07 22:33:04 assuredly i will make them hand edit out their tabs using a hex editor. Feb 07 22:33:30 edlin could be more painful Feb 07 22:34:20 is there any alternative to droiddraw for generating layouts? Feb 07 22:34:24 in all seriousness though, when i install eclipse i have to remember to change the tab settings in the jet formatter - they always seem wrong Feb 07 22:34:38 *jdt, damn you lion autocorrect thingy Feb 07 22:34:54 it's very annoying Feb 07 22:35:04 colloquy... irssi dude Feb 07 22:35:05 :p Feb 07 22:35:10 hehe Feb 07 22:35:16 pfn: you use irssi ? Feb 07 22:35:23 if I'm at a computer, yeah Feb 07 22:35:25 Linux kernel is tab+spaces Feb 07 22:35:28 fun times Feb 07 22:35:32 and EIGHT Feb 07 22:35:32 i was going to try textual Feb 07 22:35:34 mrenouf|work, works great Feb 07 22:35:49 but are we really having this debate here? Feb 07 22:36:05 g00s, checkout "workspace mechanic" -- google it Feb 07 22:36:10 g00s, edlin is more painful? Don't insult me, or I'll show you what pain is! ;-) Feb 07 22:36:19 hehe Feb 07 22:37:12 just stop using eclipse Feb 07 22:37:14 and be happier overall Feb 07 22:37:19 +1 Feb 07 22:40:49 I just made a comic Feb 07 22:41:20 also, given that the width thing is probably my doing, I don't think the following is (as I have no knowledge of how it could be) launching my app in an ICS avd fails with insufficient storage no matter which settings I toggle in the "Edit" option in the avd manager, even with the min/max SDK fields in AndroidManifest.xml set correctly. Any ideas romainguy? Feb 07 22:41:43 this is with no apps installed in the avd, even with a freshly made one with default settings Feb 07 22:43:07 * Sebby i decompiled using APKTOOL and i have to modify that LG Home launcher from HDPI(HTC EVO) to MDPI and the desktop icons i managed to resize but i don`t know where to look to resize the dockbar icons any ideea? i have this structure: "res" folder: anim,color,drawable,drawable-hdpi,drawable-land-hdpi ,drawable-port-hdpi, layout,layout-land, layout-port ,values,values-hdpi,values-lan Feb 07 22:43:08 * Sebby f,values-port, values-ko ,xml (all are folders) Feb 07 22:43:33 Found a typo in the android java doc. http://developer.android.com/reference/android/app/Fragment.html#Lifecycle Ctrl+F "onCreaate" Feb 07 22:43:42 http://mobilewars.tumblr.com/post/17229292370/mobile-wars-part-1 .... http://mobilewars.tumblr.com/post/17229527694/mobile-wars-part-2 Feb 07 22:44:56 wraithguard01: it onCreaaaaaaaateYaaaah ! Feb 07 22:46:48 which format seems to be better produced, the kindle or iBooks ? Feb 07 22:46:57 http://www.youtube.com/watch?feature=player_detailpage&v=Qh8SsaCWY-s#t=19s Feb 07 22:46:58 kinda to :) Feb 07 22:47:05 damn it, OT Feb 07 22:47:10 also, expected with 600, value returned from getWidth, 628 Feb 07 22:47:10 ? Feb 07 22:47:16 @ romainguy Feb 07 22:47:30 took me a while to fire up the emulator Feb 07 22:47:53 Just released my first official Android app! Check it out :) http://www.nightmareapps.com/smsbomb.html Feb 07 22:48:06 for all I know it could be a bug in the emulator and not the framework, lord knows I've done things with opengl that only worked on a physical device Feb 07 22:49:20 NightmareApps: terrific. Feb 07 22:49:31 reminds me of a recent mikedg creation Feb 07 22:49:43 also this activity is a tab of a TabActivity, could that affect the width returned? Feb 07 22:50:02 gys can you please help me whit something, tell me is my guess is true: the code i`m about to show you shold define the desktop size on hoe screen Feb 07 22:50:04 Feb 07 22:50:04 80.0dip Feb 07 22:50:04 100.0dip Feb 07 22:50:04 Feb 07 22:50:16 wat. a spam app? You should be hung. Feb 07 22:50:22 is a xml called dimens.xml Feb 07 22:50:31 lol: spam your friends... please do not misuse this application Feb 07 22:50:39 yeah, I'm sure google will love that app Feb 07 22:50:55 g00s: Thank you, appreciate it :) Feb 07 22:51:00 haha killring Feb 07 22:51:23 james541: best not to use TabActivity Feb 07 22:51:49 :( Feb 07 22:51:51 wraithguard01: hah It's a lot of fun to use though Feb 07 22:52:02 g00s: does it break things in honeycomb? Feb 07 22:52:04 for you. Feb 07 22:52:20 james541: its deprecated Feb 07 22:52:52 wraithguard01: true, still fun though. me and friends do it to mess with eachother :P Feb 07 22:53:03 at the moment, rewriting the app to use Fragments would take too much time, although if I'm wrong on this I'd be happy to be wrong Feb 07 22:53:23 anyone know if the new androidchrome development mode will emulate the javascript on the device? Feb 07 22:53:29 is there a good guide to converting a TabActivity to Fragments? also that doesn't really answer my question Feb 07 22:53:49 http://storkme.org/2011/12/tabs-done-right-viewpager-and-fragments/ Feb 07 22:55:33 pfn: how do you use your AndroidConversions library? For instance, how do I make it so my activity has the findView method? Feb 07 22:57:10 SimonVT, quit sniping questions on StackOverflow! Feb 07 22:57:13 :) Feb 07 22:57:47 canadiancow, what graphics? Feb 07 22:58:02 can someone help me with this little snippet of code here Feb 07 22:58:03 http://pastebin.com/UTAVpxcw Feb 07 22:58:43 ^ the problem is simple, the ball collides with paddle but under certain circumstances the ball moves left and right in the paddle.... Feb 07 22:58:46 synic, implicit def Feb 07 22:58:55 synic, so I import AndroidConversions._ usually Feb 07 22:59:22 pfn: I imported it, but I don't think I'm getting the conversion to RichActivity Feb 07 22:59:26 synic, then any activity will automatically have findView Feb 07 22:59:28 pfn: or maybe I'm calling findView wrong Feb 07 22:59:40 synic, because I don't know a better way, the [Type] must be specified Feb 07 22:59:49 so you'd have to do findView[TextView](R.id.some_text_view) Feb 07 22:59:49 findView[Button](R.id.button).setOnClickListener... Feb 07 23:00:02 synic, oh, if you're inside of this, you need to jump through some hoops Feb 07 23:00:05 either this.findView Feb 07 23:00:27 or val __someboguskeyword: RichActivity = this; import __someboguskeyword._ Feb 07 23:01:04 is there any alternative to droiddraw for generating layouts? Feb 07 23:01:14 pfn: http://pastie.org/3337712 ... shouldn't that work? Feb 07 23:01:16 the normal layout editor Feb 07 23:01:19 writing in XML Feb 07 23:01:26 synic, implicit conversions need an object to work on Feb 07 23:01:51 synic, no, because the compiler doesn't do implicit conversions against unqualified method calls Feb 07 23:02:03 synic, you need to do something like the val line I mentioned, or call it with 'this' Feb 07 23:02:06 this.findView Feb 07 23:02:13 I see Feb 07 23:04:08 pfn: gonna be a while before I know intuitively the best places to use implicits, and the best way to use them in those places Feb 07 23:04:30 synic, still figuring them out for myself, too Feb 07 23:04:49 synic, like I made an implicit conversion in my activity class, implicit def toMyActivity(activity: Activity) = activity.asInstanceOf[MyActivity] Feb 07 23:04:56 now everytime I getActivity in my fragment, I don't have to cast Feb 07 23:04:57 yay Feb 07 23:05:42 nice Feb 07 23:05:55 I haven't had this confused look on my face while learning a language since lisp Feb 07 23:06:17 synic, well, all the concepts you learned in lisp are applicable in scala Feb 07 23:06:43 except for macros, I suppose, but scala is adding macros in 2.10 Feb 07 23:06:50 cool Feb 07 23:06:57 Does anyone use SL4A? Feb 07 23:07:29 Is there any app both on the PC or the android that will allow me to send scripts from my PC the android and automatically run it? Feb 07 23:07:36 Copying it manually every time I make a change is a pain Feb 07 23:07:45 and using the emulator is an even bigger pain Feb 07 23:07:56 synic, oh, you'll also need a proguard.cfg that works with scala, too Feb 07 23:08:16 synic, http://paste.hanhuy.com/proguard.cfg Feb 07 23:08:23 * p_l|backup is tempted to say "give me your money and there will be one" Feb 07 23:08:27 ;) Feb 07 23:08:31 On the Yahoo stock message boards, the investors are calling Nokia, Joke-ia Feb 07 23:08:37 Foxhoundz, recontrolr Feb 07 23:08:52 https://recontrolr.appspot.com/scripting Feb 07 23:08:56 Foxhoundz: afaik there isn't one that does exactly that, but there are some nice ones for remote control in various form Feb 07 23:09:25 pfn: yum, macros Feb 07 23:09:29 ohh, didn't see that one Feb 07 23:09:33 I just started using Scripting Layer for Android and it's pretty amazing. It's just the transfer process that's painful Feb 07 23:09:34 * g00s might have to start looking at scala Feb 07 23:09:41 and thanks pfn, I'll take a look at that Feb 07 23:09:48 * pfn never fully documented it Feb 07 23:09:49 * pfn shrugs Feb 07 23:09:51 but it works Feb 07 23:09:57 I use it all the time on my phone/tablet/wife Feb 07 23:09:58 heh Feb 07 23:10:15 i just hate that scala is ultimately dependent on some piece of oracle stuff Feb 07 23:10:29 g00s, well, supposedly there are efforts to do both a .net and llvm port Feb 07 23:10:36 :) Feb 07 23:10:38 g00s, but if you're developing on android, it's a huge bonus that it /does/ use java Feb 07 23:10:48 because otherwise it wouldn't even be an option Feb 07 23:11:39 http://www.scala-lang.org/node/10299 Feb 07 23:11:49 but if you're not on .net or java/dalvik Feb 07 23:11:52 then why even bother with scala Feb 07 23:11:57 might as well go haskell... Feb 07 23:12:04 but I guess haskell is too damn pure ;-) Feb 07 23:12:32 pfn: I don't think so... Feb 07 23:12:35 my jaw is still open @ Foxhoundz http://google-opensource.blogspot.com/2009/06/introducing-android-scripting.html Feb 07 23:12:38 scala is multi paradigm, right ? Feb 07 23:12:41 p_l|backup, don't think so what? Feb 07 23:12:45 woah I <3 python Feb 07 23:12:46 g00s, yes, functional and imperative Feb 07 23:12:55 ok, haskell is pure straight up functional :D Feb 07 23:13:00 it is Feb 07 23:13:00 pfn: That haskell is so pure. It got a lot of escape parts ;) Feb 07 23:13:06 * p_l|backup recall a BASIC Monad :) Feb 07 23:13:07 p_l|backup, well, it has IO Feb 07 23:13:09 *recalls Feb 07 23:13:27 p_l|backup, you can't do anything without side effects somewhere, but IO tracks the fact that you have side-effects Feb 07 23:13:45 james541: You just found out about it? Feb 07 23:13:48 pfn: using some of the abstractions available in GHC, you can make it so that you write in BASIC/Cobol/whatever and it's executed as Haskell code :D Feb 07 23:14:10 * pfn has only basically learned some haskell Feb 07 23:15:01 I need to figure out something practical to write in it Feb 07 23:15:15 is there a decent cloud computing api for android? or should I write something application specific Feb 07 23:15:27 buzzzzz wordddss Feb 07 23:15:29 "cloud computing api" like what? Feb 07 23:15:37 you mean like aws management? Feb 07 23:15:59 I was thinking of just offloading work from the dalvik vm to a jvm running elsewhere Feb 07 23:16:10 storkme, that's called webservices :p Feb 07 23:16:19 http overhead though Feb 07 23:16:28 depends on how many transactions you're processing Feb 07 23:16:38 this is true Feb 07 23:17:17 storkme: i think amazon has some cloud apis for android Feb 07 23:17:22 well i wrote a clustering algorithm as I had a large number of map points to render, just figured it'd be fun as a demo to do like a cuda implementation of k-means clustering, write a lightweight tcp server around it, and use android as a frontend Feb 07 23:17:28 i think even ms may have some too Feb 07 23:18:11 storkme: hmmm... do you need it to be somewhere remote, or can it work in conditions with clear connection? :) Feb 07 23:18:48 it'd just be a demo designed to work in short proximity, or with a strong wireless connection Feb 07 23:19:13 storkme: might be fun and educational to use something different than HTTP... hmm... 0MQ? ;D Feb 07 23:19:17 I wasn't planning on actually doing it for real users, I just thought it might be a fun project Feb 07 23:19:22 I was thinkiing protobufs Feb 07 23:19:52 i don't know what 0mq is but it sounds interesting Feb 07 23:20:16 storkme: if protobuf is serialization layer, 0mq is transport Feb 07 23:20:16 0mq sounds like a lightweight mq interface Feb 07 23:20:45 Foxhoundz, yeah was the first I'd heard of it, gtg for now Feb 07 23:21:11 pfn: at some point in the history they implemented AMQP, I think, now it's just a really light-weight, but flexible message transport Feb 07 23:21:15 .. I was kinda toying with the idea of generating bytecode and a data set then passing it over to the remote server for execution Feb 07 23:21:25 kinda doing away with a protocol alltogether Feb 07 23:21:35 but then I realised.. dex Feb 07 23:21:53 storkme, not fun, but you can use cglib to generate .class pretty easily Feb 07 23:22:01 and you can send /that/ over the wire Feb 07 23:22:11 but then you need to deal with security sandboxing and trusting code Feb 07 23:22:11 OK, I have a problem thats driving me nuts. If I want to get the current time, the best way is "new Date()" right? Feb 07 23:22:16 yeah, wouldn't be that fun Feb 07 23:22:20 BankZ-, System.currentTimeMillis() Feb 07 23:22:36 storkme: Java remoting IMHO sucks Feb 07 23:22:48 thanks Feb 07 23:22:55 BankZ-, you can create a new Date object with it, or just manipulate the value directly Feb 07 23:23:00 I like the idea of using protobufs or whatever but then it's a very single-purpose system Feb 07 23:23:37 next problem, the time returned from the GPS doesnt take timezone in to account. Whats the best way to deal with that? Feb 07 23:23:41 storkme, well, if your message itself is pretty generic, using protobufs to encapsulate isn't bad Feb 07 23:23:55 BankZ-, it's in utc, pass it into new date or something Feb 07 23:24:09 but the server would have to be fairly single purpose Feb 07 23:24:45 unless I passed like a script along with the message to define execution Feb 07 23:25:18 possible Feb 07 23:26:49 real dumb question, but is there any prerequisite for a onListItemClick to work in a ListActivity? I'm getting no calls to it Feb 07 23:27:00 pfn; when I do that, its 5 hours off Feb 07 23:27:31 BankZ-, be more specific about your inputs, what you're doing to it, and what you're getting Feb 07 23:27:42 ... but then you probably lose a lot of the speed advantages Feb 07 23:27:45 mrenouf|work, seems to work automatically just fine for me in a ListFragment Feb 07 23:28:03 storkme: it can be done, depends on what exactly you want to do Feb 07 23:28:21 that's a good question Feb 07 23:28:25 thats what I thought. choiceMode is something else too I know Feb 07 23:28:35 I'm not selecting just clicking Feb 07 23:29:04 pfn: its the location time returned from the GPS. I am then passing it as a Date to a WCF service Feb 07 23:29:12 lemme try clean build Feb 07 23:29:39 BankZ-, specifics Feb 07 23:30:25 BankZ-: WCF As in windows control forms? Feb 07 23:30:31 what are you doing to receive the input, what is the input, what are you doing with the input, and how are you seeing the results of inputs Feb 07 23:31:00 SeligArkin: Windows Communication Foundation, if that :) Feb 07 23:31:15 SeligArkin: no, a .net web service Feb 07 23:31:32 I see, are you sure .net is decoding it the same as java does? Feb 07 23:31:50 nope Feb 07 23:31:59 this 0mq thing looks very interesting Feb 07 23:32:19 SeligArkin: ill tell you soon Feb 07 23:33:21 storkme: I'm using it to build IPC layer for my current project (HTML5 ui Ruby frontend core logic and other services Feb 07 23:33:24 * SeligArkin would think that's something you'd want to check first when dealing with differing platforms like that Feb 07 23:33:41 ipc? interprocess communication? Feb 07 23:34:04 storkme: yes. Except in my case it also means remote stuff (over network) Feb 07 23:34:20 cool Feb 07 23:34:53 wouldn't that be RPC? Feb 07 23:35:05 *be more Feb 07 23:35:06 JakeWharton: RPC includes "procedure calling" Feb 07 23:35:20 I'm still not what it gives me over regular sockets though, the documentation is a bit.. philosophical Feb 07 23:35:24 I use asynchronous messages, most of the time, not procedure calling Feb 07 23:35:26 IPC is typically messaging passing Feb 07 23:35:33 i'm not huge on heavy acronyms anyways Feb 07 23:35:39 i just do shit Feb 07 23:35:46 RPC is messaging passing that explicitly wants an immediate response Feb 07 23:35:52 storkme: read the guide from start to end - even if you won't need it now, it might be useful later :) Feb 07 23:36:23 okay, I might just do Feb 07 23:37:19 G+ needs to optionally forward page notifications to page owners Feb 07 23:37:37 hey, i have a decompiled APK and i`m trying to resize something but as i`m newbie i don`t know what does this: 8.0dip please someone explain me Feb 07 23:37:41 storkme: I'm mainly following erlang's model of IPC with it Feb 07 23:38:42 SQLite question here (in an android app). Does one have to define an INTEGER PRIMARY KEY before or after foreign keys? Feb 07 23:39:35 iirc, I don't think it matters Feb 07 23:40:06 synic, oh, I have another convenience function I added to AndroidConversions that makes it easy to get system services, too Feb 07 23:40:14 synic, https://gist.github.com/1686110 Feb 07 23:40:41 actually Feb 07 23:40:47 * pfn pastes a new copy of AndroidConversions Feb 07 23:41:23 Hmm it was the layout of the listview elements i was using. Feb 07 23:41:28 it works with my own stuff Feb 07 23:41:59 synic, https://gist.github.com/1763017 Feb 07 23:42:24 pfn: question: Feb 07 23:42:26 why this: Feb 07 23:42:32 implicit def toViewOnClickListener1[A](f: () => A) = Feb 07 23:42:33 new View.OnClickListener() { def onClick(v: View) = f() } Feb 07 23:42:36 instead of this: Feb 07 23:42:40 implicit def toViewOnClickListener2[A](f: => A) = Feb 07 23:42:41 new View.OnClickListener() { def onClick(v: View) = f } Feb 07 23:42:55 synic, because of the way implicit conversions work, they happen after => A is evaluated Feb 07 23:43:11 synic, see line 96 of my above gist Feb 07 23:43:18 synic: please don't paste multiple lines at once Feb 07 23:43:31 pfn can you tell me what this statement does? 8.0dip i have it in res\values\dimens.xml Feb 07 23:43:54 SeligArkin: oh sorry, I must have interrupted your riveting conversation Feb 07 23:44:05 p_l|backup: thing thing looks pretty cool, how come more people don't use it? Feb 07 23:44:07 does anyone know if git/github will have issues if i move the location of my local repo? Feb 07 23:44:24 synic, so you usually encounter some very weird behavior if you use => A in an implicit that takes that, basically, only the last statement becomes the function Feb 07 23:44:51 pfn: interesting Feb 07 23:45:02 badz2363: no Feb 07 23:45:05 synic, anyway, pick up my current copy of androidconversions, it's a bit nicer Feb 07 23:45:05 looks like .net deals with the time differently Feb 07 23:45:10 darn it Feb 07 23:45:17 pfn: kk Feb 07 23:45:25 BankZ-: It's MS, of course it does. ;) Feb 07 23:45:43 storkme: many people are okay with HTTP. Then you have the fact that a lot of the 'loud' programmers are the ones that only now start to discover networking other than serving webpages ;) Feb 07 23:45:55 thanks SeligArkin Feb 07 23:45:59 heh Feb 07 23:46:49 badz2363: as long as you move it by the top dir, or at least remember to also move the .git subdir Feb 07 23:46:52 why, because it's pretty painless to implement http Feb 07 23:47:06 whereas one would have to go and figure out 0mq Feb 07 23:47:10 i dunno, android still seems to make a hash of it Feb 07 23:47:25 does android even support multi part form encoding yet? Feb 07 23:47:48 pfn: I'm not disparaging HTTP. It's quite fine for many things Feb 07 23:48:14 synic, https://gist.github.com/1524855 Feb 07 23:48:19 synic, that's an example of => A failure Feb 07 23:48:28 synic, run that in the repl and you see why it's no good Feb 07 23:50:13 pfn: what language is that? Feb 07 23:50:25 herriojr, scala Feb 07 23:50:30 ah, ok Feb 07 23:50:45 * pfn is doing some spring cleaning on his gists Feb 07 23:50:49 pfn: I'm not good enough to know what's supposed to happen in that as opposed to what actually happens Feb 07 23:51:03 * Sebby please one of you explain me what this meens 8.0dip as i`m trying to resize the dockbar icons as they are to big and i foun this and i don`t understand it ..is in dimens.xml Feb 07 23:51:04 synic, think of setC like setOnClickListener Feb 07 23:51:14 synic, you would expect print 1,2,3,4 would be called when you call z.foo Feb 07 23:51:44 synic, but instead, print 1,2,3 happens immediately as soon as setC is called, and when you call z.foo, then print 4 happens (where z.foo is like z.onClick()) Feb 07 23:51:46 * Sebby pretty please Feb 07 23:52:04 Sebby, http://developer.android.com/guide/topics/resources/more-resources.html#Dimension Feb 07 23:52:06 pfn: weird Feb 07 23:52:28 http://stackoverflow.com/questions/9185468/actionbar-tabs-with-fragments-on-rotate Feb 07 23:52:32 10q very much pfn Feb 07 23:53:12 synic, yeah, it's a weirdish interaction between by-name values and implicit conversion, the by-name value is evaluated first, and coerces the last statement into a function Feb 07 23:53:49 synic, I know this because I spent a few hours scratching my head about wtf it was b0rked myself Feb 07 23:54:29 pfn: how did you find out wtf? Feb 07 23:55:02 synic, oh, I boiled down the click listener conversion into that example, then had some people well-acquainted with scala explain it Feb 07 23:55:37 hah Feb 07 23:56:30 hm, i guess there is a book on the NDK now Feb 07 23:56:59 i'm surprised reto's android 4 book is not due out for a few months still Feb 07 23:58:04 seems like google app engine supports rpc.. i wonder if that would be suitable for my needs Feb 07 23:58:07 * g00s still thinks google should do something like Adobe, team up with oreilly for 'Google Press' and have official guides on Android that go above the half baked stuff on the web Feb 08 00:00:16 g00s: If I get in, I'll suggest it further ;) Feb 08 00:00:18 http://www.youtube.com/watch?v=M7SxNNC429U google i/o talk about android + gae, might be interesting Feb 08 00:00:25 p_l|backup: thanks ! Feb 08 00:01:05 g00s: mind you, I'm not applying for a job with Android team, and my CV was directed more towards SRE side Feb 08 00:01:31 (and that's assuming I'll get anywhere ;) Feb 08 00:01:49 p_l|backup: still in the stanford ai class ? Feb 08 00:02:27 p_l|backup: SRE? Feb 08 00:02:34 So is there a "Dimensions" class in Android? Feb 08 00:03:52 Y'know, height/width, like in awt/swing? Feb 08 00:04:13 to what point? Feb 08 00:04:21 and it's easier to look in the reference to see if there is such a thing Feb 08 00:04:56 I dunno what it would be called if not dimension. I know on iOS you've got CGSize, which I wouldn't have guessed if I was looking for it. Feb 08 00:05:00 but yeah, am looking. Feb 08 00:05:19 don't think there is a dimension object... Feb 08 00:05:21 * pfn shrugs Feb 08 00:05:35 and ios framework naming isn't exactly straightforward, heh Feb 08 00:05:54 pfn: do you do any iOS ? Feb 08 00:05:59 nope Feb 08 00:06:05 no scala there :D Feb 08 00:06:21 android's my only mobile platform--since I do this out of personal interest Feb 08 00:06:33 oh, not professionally ? Feb 08 00:06:38 And there's android.hardware.Camera.Size, which is exactly like a 2D dimension. So I'm guessing there isn't one if that exists.. :( Feb 08 00:06:39 android isn't my dayjob Feb 08 00:06:48 nor are scala, and java currently Feb 08 00:06:53 g00s: there's always scala on the interwebs. html clients, yo! Feb 08 00:07:09 Actually I dunno if there are any Scala web frameworks but I imagine yes. Feb 08 00:07:15 That means you can still target iOS and android =o Feb 08 00:07:16 * pfn likes scala because as a 10+ year java developer, scala fixes everything that java does wrong Feb 08 00:07:23 ! Feb 08 00:07:31 So I should use Scala instead of functionaljava? Feb 08 00:07:36 (current dayjob is writing javascript) Feb 08 00:07:39 functionaljava looks somewhat promising Feb 08 00:07:41 shurane, absolutely, I'd imagine Feb 08 00:07:56 and it's plain java, too. Just brings some functional paradigms. Feb 08 00:08:02 yeah, that's terrible Feb 08 00:08:10 * g00s is having trouble picturing that Feb 08 00:08:13 it doesn't really fix any flaws, it just layers it up in more enterprisey apis Feb 08 00:08:14 g00s: I failed around midterm Feb 08 00:08:22 SeligArkin: Site Reliability Engineer Feb 08 00:08:31 g00s: didn't have time Feb 08 00:08:32 there was a "short" oreilly book on functional java, seemed vacuous Feb 08 00:08:41 p_l|backup: i see, yeah bet its a lot of work Feb 08 00:08:46 wait up, is scala easy to bring onto android? Feb 08 00:08:54 shurane, it is relatively easy Feb 08 00:09:10 depending on your ease of working with sbt, proguard, eclipse, etc. Feb 08 00:09:13 Because I thought Clojure had problems. But I guess they're porting issues are pretty different? Feb 08 00:09:21 shurane, completely different Feb 08 00:09:21 shurane: very Feb 08 00:09:26 clojure is a completely dynamic language Feb 08 00:09:30 expand("sbt").please() Feb 08 00:09:33 which will result in terrible dalvik performance Feb 08 00:09:38 shurane: scala build tool Feb 08 00:09:40 shurane, sbt = scala build tool Feb 08 00:09:56 pfn: the biggest problem was that Clojure murdered Dalvik's GC Feb 08 00:09:59 scala is a completely static language, otoh, which is all compiled directly into .class Feb 08 00:10:08 p_l|backup, well, it generates far more objects as a dynamic language Feb 08 00:10:12 you can precompile clojure Feb 08 00:10:13 pfn: oooh that sounds quite attractive Feb 08 00:10:18 p_l|backup, it's a combination of reflection + gc Feb 08 00:10:26 pfn: it's less about being dynamic, more about certain patterns in code Feb 08 00:10:27 p_l|backup, everything you do in clojure results in reflection Feb 08 00:10:41 ... that bad Feb 08 00:10:41 ? Feb 08 00:10:45 Hi. How do I de-noise and smoothen accelerometer readings Feb 08 00:10:58 panda81: iir, of course ;) Feb 08 00:10:59 only time you hit reflection in scala is if you're doing duck typing Feb 08 00:11:27 p_l|backup, well, being purely functional is also murder on heap Feb 08 00:11:28 g00s: iir? Feb 08 00:11:34 yessiir Feb 08 00:11:53 shurane, certainly is attractive to me Feb 08 00:12:03 is that an acrynom Feb 08 00:12:06 pfn: that's why ABCL is considering bypassing GC in Android port Feb 08 00:12:07 JakeWharton remember that SS i sent you? Feb 08 00:12:13 or fir Feb 08 00:12:14 did you see the shitty actionitems? Feb 08 00:12:22 then again, I haven't really done anything completely non-trivial yet Feb 08 00:12:31 most complex thing I've written on android so far is an irc client... Feb 08 00:12:35 p_l|backup: ABCL is? something something common lisp? Feb 08 00:12:40 SBCL? Feb 08 00:12:45 g00s: what is it Feb 08 00:12:48 shurane: Armed Bear Common Lisp, a CL running on JVM Feb 08 00:12:54 panda81: you need a low pass filter Feb 08 00:13:08 there's a proposed port to Dalvik, and that includes a possible revival of CONS cache Feb 08 00:13:14 p_l|backup, well, going completely native would make it easier Feb 08 00:13:22 p_l|backup: why not target lower, like Gambit and Scheme? All C, baby. Though I dunno their relative merits/disadvantages Feb 08 00:13:36 shurane: for targeting C, there's ECL Feb 08 00:13:36 p_l|backup, but then again, how do they plan on doing UI if so? or just run it as nativeactivity and provie jni bridges for everything? Feb 08 00:13:59 pfn: it will run on Dalvik, just bypass GC by manually allocating object caches first Feb 08 00:14:01 What about me? Feb 08 00:14:13 p_l|backup, so basically perform its own heap management Feb 08 00:14:17 Gambit-: what about you :D Feb 08 00:14:19 that sounds.... awesome.... not really Feb 08 00:14:20 pfn: halfway Feb 08 00:14:29 g00s, it's all about me, especially when you're getting down. Feb 08 00:14:35 hehe Feb 08 00:14:49 pfn: it's a workaround for the high throughput of short-lived CONSes Feb 08 00:14:49 g00s: is low pass good enough? I recall it may make response seem delayed Feb 08 00:14:51 awwyeah.jpg Feb 08 00:15:27 indeed, so it's all hackery to generate a pool of objects that are always strongly ref'd and then just shove the list crap in there Feb 08 00:15:56 shurane: ECL is the odd one out in lisps, targeting another language - even ABCL targets JVM bytecode directly (with AoT compilation included) Feb 08 00:16:13 (well, common lisps ;)) Feb 08 00:16:26 p_l|backup: Gambit and Chicken also target C, but yeh you're right about ECL. I believe Gambit/Chicken are Schemes, though Feb 08 00:16:45 I definitely do scheme. Feb 08 00:16:53 but on that note, Lua! Feb 08 00:16:54 all the other CL implementations either target only bytecode (CLISP, ABCL) or go for native code Feb 08 00:16:55 Gambit- is a schemer Feb 08 00:16:59 shurane, anyway, if you're gonna do android, and don't have any strict requirements on being java, go scala Feb 08 00:17:00 I am schemining. Feb 08 00:17:07 schemininininining Feb 08 00:18:13 and yeah, it isn't a list-based language like lisp(clojure) so there isn't a gc problem either Feb 08 00:18:36 pfn: Btw, does it play nicely with androidmanifest.xml and other such nuisances? Feb 08 00:18:56 pfn: blaargh another language to get around learning... well it's better than java, anyway. Feb 08 00:18:59 shurane, yes Feb 08 00:19:03 pfn: it isn't about being list-based (Lisp isn't), it's about certain patterns that generate a lot of temporary objects Feb 08 00:19:20 p_l|backup, lisp is all about consing together lots of lists... as far as I've ever understood it Feb 08 00:19:39 the whole stack and everything is just a giant list Feb 08 00:19:43 pfn: untrue Feb 08 00:20:05 *source* is built from list, yes. That's about it Feb 08 00:20:39 and there is CONS and functions operating on it and sequences/trees made out of CONS cells Feb 08 00:20:43 maybe that's my disconnect, never cared to learn any lisp Feb 08 00:20:46 (think List type) Feb 08 00:21:01 other than seeing about cons cells, and car and cdr, wnat whatever Feb 08 00:21:07 in intellij, I'm trying the hello world example. I managed to get the emulator up, but it only display the shiny android text, not the hello world example. Any ideas? Feb 08 00:21:08 s/wnat/and Feb 08 00:21:10 "Device is not ready. Waiting for 20 sec" Feb 08 00:21:16 every time i start a java app on lion this little dialog flashes briefly and then goes away, w t f Feb 08 00:21:22 apokryphos, keep waiting, 20 minutes Feb 08 00:21:28 apokryphos: the emulator didn't finish booting Feb 08 00:21:30 g00s, I've heard that it's the osx firewall thingy Feb 08 00:21:52 it pops up to ask your permission, then decides it doesn't need to Feb 08 00:21:53 pfn: hm, ok thanks Feb 08 00:21:54 or something like that Feb 08 00:22:03 lol, wtf Feb 08 00:22:38 can't seem to find a quick ref to support my hearsay, oh well Feb 08 00:22:49 pfn: I hope you're kidding ;) Feb 08 00:22:50 g00s: it's part of "remove all multiplatform support so it's our platform or nothing" Feb 08 00:23:07 yeah apple sucks Feb 08 00:23:12 apokryphos, depends on how fast your pc is and what you're launching Feb 08 00:23:13 but i like their computers Feb 08 00:23:17 an ics avd will take forever Feb 08 00:23:40 fuck, i can not use the android emu on my laptop when using the battery … it kills it so quickly Feb 08 00:23:51 pfn: hello world, decent enough vaio laptop Feb 08 00:23:54 g00s: get a phone? :) Feb 08 00:24:02 apokryphos, has nothing to do with hello world Feb 08 00:24:04 apokryphos: the *system* didn't boot yet Feb 08 00:24:08 apokryphos, it's booting up an emulated phone Feb 08 00:24:10 hrm ok Feb 08 00:24:10 pfn: does everyone use eclipse? Feb 08 00:24:11 p_l|backup: i do have a phone, froyo ftw ! Feb 08 00:24:11 apokryphos, that takes time Feb 08 00:24:14 apokryphos, no Feb 08 00:24:18 I use intellij at work because I found it so much nicer; could try eclipse again I guess.. Feb 08 00:24:25 apokryphos: everybody except pen and Leeds Feb 08 00:24:35 pfn: hehe, lion thinks you are pen Feb 08 00:24:37 * p_l|backup uses IntelliJ Feb 08 00:25:07 aha! I finally have a nice way to bridge the java.util.concurrent world over the Android's Handlers and Messengers Feb 08 00:25:21 mrenouf|work: hmm? Feb 08 00:25:28 i use both all the time Feb 08 00:25:41 I can be more specific if you care Feb 08 00:25:49 but I just wrote HandlerExecutor Feb 08 00:26:00 uh oh Feb 08 00:26:14 g00s: because of android support, or another reason? Feb 08 00:26:14 how do you guys like Mono For Android? Feb 08 00:26:23 ..though I haven't used the community edition really Feb 08 00:26:34 used with ListeningExecutorService, it allows the callbacks to execute on the UI thread, just like AsyncTask, but more standard and reusable Feb 08 00:26:41 apokryphos: its good enough for most of us, who use the adt ... Feb 08 00:26:48 but the adt kinda sucks so Feb 08 00:26:51 g00s, yeah, colloquy for the lose :p Feb 08 00:27:06 pfn: is it colloquy or lion ? Feb 08 00:27:09 (ListeningExecutorService is from Guava, it allows you to submit a Callable and get a ListenableFuture, which has a .addListener(Runnable r, Executor e)) Feb 08 00:27:25 g00s, I dunno who handles spelling... Feb 08 00:27:27 the Executor is the one the Listener's runnable is executed in Feb 08 00:27:49 mrenouf|work, so you .execute a runnable to post it to a handler? Feb 08 00:27:51 ok thanks Feb 08 00:28:02 canadiancow, yes i saw them Feb 08 00:28:04 made my eyes bleed Feb 08 00:28:12 :( Feb 08 00:28:16 i need gfx :P Feb 08 00:28:36 steal from the platform Feb 08 00:28:41 pfn, well the whole thing looks like: .submit(Callable) -> ListenableFuture -> addListener(new Runnable() { ... }, handlerExecutor) Feb 08 00:28:49 so when is IO reg this year, don't wanna miss it Feb 08 00:29:24 hopefully they will revisit the 18 month pledge they talked about last year Feb 08 00:29:32 JakeWharton i suppose Feb 08 00:29:33 would like to see how thats all panned out XD Feb 08 00:29:39 mrenouf|work, so the handler that processes it can also carry the future's result back to the caller... scary heh Feb 08 00:30:33 um, the Runnable would have the future in scope, if it wanted to .get() the result it would be guaranteed to be available at the time the Runnable listener is executed Feb 08 00:31:00 canadiancow|work, start > run > mspaint Feb 08 00:31:03 the hardest thing about concurrency in android, i think, is making sure the context that started the stuff doesn't get leaked Feb 08 00:31:04 of course, thats only if the result needs to touch the UI, otherwise, you can queue up the listeners in a different threadpool, or where ever Feb 08 00:31:18 concurrency + crazy state = headache Feb 08 00:31:28 g00s, the unit of work here is the "Callable" class you construct Feb 08 00:31:33 that's why you store it in a static final variable Feb 08 00:31:37 Context everywhere! Feb 08 00:31:43 hehe Feb 08 00:31:53 but *something* will generally reference the UI if it needs to do something visible Feb 08 00:32:06 but as long as that task is short-lived, it's not a big deal Feb 08 00:32:19 my 2-level icon background/disk cache thing does that Feb 08 00:32:25 i would like to see the fork join stuff Feb 08 00:32:29 me too! Feb 08 00:32:37 mrenouf|work, you should OSS that :) Feb 08 00:33:01 I should, but really the disk cache side of things is basically a simplistic rip off of LruDiskCache out of libcore Feb 08 00:33:06 I though you yanked it out to lib? Feb 08 00:33:17 https://github.com/JakeWharton/DiskLruCache Feb 08 00:33:20 i did Feb 08 00:33:22 there ya go Feb 08 00:33:25 that's the core of it Feb 08 00:33:58 the other half is a memory cache of BitmapDrawables Feb 08 00:34:16 oh, and whoever told me to cache Drawables and not raw Bitmaps.. THANK YOU! Feb 08 00:34:23 major win Feb 08 00:34:33 have anyone seen something like this before ? http://pastebin.com/gQcZ65hc it looks to me like the error happens inside the mediacontroller ?? Feb 08 00:35:45 fanno: are you sure you're not passing a null to the platform? Feb 08 00:36:48 or perhaps it's looking for a view by ID that's not in your view tree Feb 08 00:36:56 that'll happen a lot with things like custom ListView layouts Feb 08 00:36:56 http://pastebin.com/peW1pafu Feb 08 00:37:13 SeligArkin: it only happens on some device Feb 08 00:37:31 hah, I have a singleton that indirectly references my activity.... I have to clear it everytime I start my activity, meh Feb 08 00:37:33 the error log is reported to me by my auto reporter so i cant recreate it Feb 08 00:37:38 is the way to reference android.R.layout.list_content in my layout xml file? Feb 08 00:37:45 so my app leaks the activity instance until it's re-entered... boo Feb 08 00:38:02 also: new Handler(Looper.getMainLooper()) Feb 08 00:38:03 why not use a WeakReference? Feb 08 00:38:04 WIN Feb 08 00:38:23 JakeWharton, the problem is it's an eventbus, and it holds references to listeners Feb 08 00:38:37 JakeWharton, and I want to be lazy and not have to explicitly require de-registration of listeners Feb 08 00:39:45 long-lived objects that used the event bus that also reference the activity also caused a leak, because the listener referenced the parent, the parent never left, etc. Feb 08 00:39:51 actually, I have a fix for that, but haven't implemented it yet Feb 08 00:39:57 can you call activity methods from a handler callback? Feb 08 00:40:08 like finish() or startActivity() Feb 08 00:40:10 mrenouf|work, what do you mean by "can" Feb 08 00:40:17 is it legal Feb 08 00:40:20 mrenouf|work, why not as long as it's on the main thread Feb 08 00:40:29 ok, thats what I thought. Just never have before Feb 08 00:40:45 mrenouf|work: no, if you try the google police will come and take you to android jail! ( Kidding. :P ) Feb 08 00:40:56 oh yeah that makes sense, like every click handler I've ever written does that. Feb 08 00:41:00 der Feb 08 00:41:15 evenin Feb 08 00:41:25 mrenouf|work, indeed, all UI events are dispatched via handler.... Feb 08 00:42:15 http://pastebin.com/wCg1MQgz Feb 08 00:42:51 clever Feb 08 00:42:52 This is so much nicer. I think I'm gonna write some concurrency utils, I need a good reusable background ListView loader Feb 08 00:42:53 mrenouf|work, that seems pretty straightforward... Feb 08 00:43:08 the trick is tuning the thread policy Feb 08 00:43:13 what thread policy Feb 08 00:43:15 it's on the UI thread Feb 08 00:43:58 no, you run your "Work" task on a threadpool, then the result is dispatched through this guy Feb 08 00:44:38 * pfn just does UiBus.run { block } and UiBus.post { block} Feb 08 00:44:42 depending on the behavior I want Feb 08 00:44:43 http://goo.gl/mcQZ7 Feb 08 00:45:08 ew Feb 08 00:45:13 that looks like old MSDN Feb 08 00:45:42 sorry, this is the important interface: http://goo.gl/kpQFS Feb 08 00:45:47 yeah, I didnt make the CSS Feb 08 00:45:56 looks like old java.net to me Feb 08 00:46:05 second one isn't so bad Feb 08 00:46:07 addListener Feb 08 00:46:14 thats the nice one Feb 08 00:47:07 then theres utility methods like Futures.lazyTransform(...) Feb 08 00:47:11 *sigh* why do I always save styling for last :( Feb 08 00:47:20 chain Feb 08 00:48:02 JakeWharton, because styling is a bich Feb 08 00:48:09 you hire people to do that Feb 08 00:48:22 but i'm open source Feb 08 00:48:26 $0.00/hr Feb 08 00:48:30 who wants the job? Feb 08 00:48:39 someone just starting out who's good and wants exposure Feb 08 00:48:47 aka me Feb 08 00:48:50 ok Feb 08 00:48:52 haha Feb 08 00:48:58 if you like design, then thats awesome Feb 08 00:49:22 I can make almost anything I need but it takes me HOURS to do what experts can whip up in 5 minutes it seems Feb 08 00:49:23 i like criticizing others' designs Feb 08 00:49:26 not sure that counts Feb 08 00:49:29 yeah Feb 08 00:49:35 i also need not GIMP Feb 08 00:49:41 makes me feel like a gimp alright... Feb 08 00:49:43 eh. I like Gimp Feb 08 00:49:54 I've learned to live with it. Feb 08 00:49:57 the gimp is pretty great... but I'm gimpy at graphics... Feb 08 00:50:02 bean starting to learn inkscape more lately Feb 08 00:50:10 inkscape is great, too Feb 08 00:50:15 but I can't draw worth shit using it Feb 08 00:50:17 keeping icons in vector is helpful Feb 08 00:50:19 just basic shapes Feb 08 00:50:28 yeah, like I said, takes me HOURS Feb 08 00:50:35 so a stupid use of my time Feb 08 00:50:36 in an effort to actually get things done tonight, i'm closing xchat Feb 08 00:50:40 mrenouf|work: so what do you do at google? Feb 08 00:50:43 bye! Feb 08 00:50:43 fare ye well young sers Feb 08 00:50:53 SeligArkin, App development Feb 08 00:50:53 there's the evangelion anime drawing video done with all beziers in inkscape Feb 08 00:50:56 i looks great Feb 08 00:51:02 mrenouf|work: I see Feb 08 00:51:14 i'm no framework guy, sorry to bust your bubble ;-) Feb 08 00:53:05 haha, was just curious. :P Feb 08 00:53:22 No bubble to burst there Feb 08 00:57:04 what's the proper way to turn an ArrayList into a String[] without having to manually create a String[] of the same size as the arraylist and copy the elements into it one by one? Feb 08 00:57:32 .toArray(new String[0]) Feb 08 00:57:33 i was hoping ArrayList.toArray() would do something useful, but it apparently needs to take a String[] that's already allocated to the size of the list...i guess that's fine, on second thought, but it seems odd Feb 08 00:57:44 pfn: ah, thanks :) Feb 08 00:57:46 although, .toArray(new String[list.size()]) is faster Feb 08 00:57:55 /slightly/ Feb 08 00:58:04 meh, it's not much more to code, so i might as well use that :3 Feb 08 01:01:12 Am I correct in assuming that the 0,0 point of the screen is in the upper left hand corner? Feb 08 01:03:06 hwrd_work: depends Feb 08 01:03:11 <\monster\> has anyone tried the BB android runtime? not sure if it hates my app but it looks/works like crap Feb 08 01:03:11 hwrd_work: for Views/Canvas, yes Feb 08 01:03:19 <\monster\> everything is flashing weird Feb 08 01:03:19 for OpenGL, no (at least not by default) Feb 08 01:03:51 hey, what file in android parses the manifest file in the apks? Feb 08 01:04:50 @romainguy: Thanks. I'll give that a shot… For some reason I suspect it's treating 0,0 as the center of the screen. Feb 08 01:05:02 I must be doing something wrong. Feb 08 01:05:45 OpenGL uses the center of the screen for 0,0 Feb 08 01:05:53 I am using a View/SurfaceView Feb 08 01:06:03 how are you drawing into the SurfaceView? Feb 08 01:06:26 @romainguy: Well I pass the holder to the camera application, and that draws into the surface Feb 08 01:06:52 and over that surface I have a view that I want to look something like the barcode scanner Feb 08 01:12:33 p_l|backup: Scala has an interactive mode/interpreter, right? Blech, working without an interactive console in java really slows things down Feb 08 01:12:44 don't remember Feb 08 01:12:48 shurane, yes, it has a repl Feb 08 01:12:51 shurane, just run 'scala' Feb 08 01:13:34 right, repl is the word Feb 08 01:15:33 acronym, pedantic, but yeah Feb 08 01:16:58 shurane, as for a repl for java, beanshell is the answer there, generally Feb 08 01:17:16 or jrunscript Feb 08 01:18:49 pfn: that's what I hear (beanshell) but I don't remember it being *that* nice Feb 08 01:19:11 but then again, I tried it on windows Feb 08 01:22:44 i love that you can install apks from gmail Feb 08 01:23:10 i have business development and product managers all over the world right now doing demos Feb 08 01:23:19 and i can just email them new builds Feb 08 01:23:35 yeah, not like fucking ios Feb 08 01:23:36 ugh Feb 08 01:23:54 seriously.... how hard is it to get an ipa on a device that isn't jailbroken... Feb 08 01:23:58 well ios actually has a web interface for adhoc and enterprise distribution Feb 08 01:24:05 but its still a pain in the ass Feb 08 01:24:09 it's a massive pita Feb 08 01:24:16 and there's some testflight 3rd party thing Feb 08 01:24:20 just give me your gmail address, click install Feb 08 01:24:32 i turned unknown sources on on all the demo phones Feb 08 01:24:35 pfn: can I use the scala repl for java? I believe that can be done for clojure Feb 08 01:26:37 i really wish that design, qa and product had tested the app more before sending users out so i didnt have to send an update, but the app is still in final development and just being fully tested for all the edge cases Feb 08 01:26:37 shurane, you can't use java syntax, but you can use any of the java api Feb 08 01:30:33 morning Feb 08 01:30:49 top of the morning to you, sir! Feb 08 01:31:41 we've crested indeed :) Feb 08 01:37:30 pfn: yeah, that's all I wanted Feb 08 01:44:43 any decent SQlite knowledgables here or experts? Feb 08 01:45:08 just ask Feb 08 01:45:25 Does one have to state the primary key before or after the foreign keys? Feb 08 01:45:42 there's not really such a thing as foreign key i think Feb 08 01:45:46 im trying to have an autoincrement integer primary key (one that supposedly takes the place of ROWID) Feb 08 01:45:55 There is in newer versions of SQLite. Feb 08 01:46:08 and everything at/above android 2.2 Feb 08 01:55:07 * giant_g2 doesn't know SQLite Feb 08 01:56:24 * SeligArkin knows just enough to be dangerous, but is on the way out the door for a cleaning cycle Feb 08 01:59:27 someone is human here? Feb 08 01:59:52 Yes Feb 08 01:59:53 beep boop define human Feb 08 01:59:56 no, only androids Feb 08 02:00:01 ;) Feb 08 02:00:02 From the Yahoo stock message board: Feb 08 02:00:06 "the hottest phone to hit the market in years will be delivered by Nokia in a few weeks." Feb 08 02:00:15 some know the LunarLander sample? Feb 08 02:00:18 hahaha, talk about delusional... Feb 08 02:00:33 Ologn: it will have a battery that easily explodes, what's delusional about it? :D Feb 08 02:02:02 p_l|backup: that's a great quote! I'll use it in my response Feb 08 02:02:06 <\monster\> blah this bb android simulator stinks Feb 08 02:02:36 <\monster\> you might be able to port a hello world app with it ..thats about it Feb 08 02:06:12 zerkz, you get that scrolling issue fixed? Feb 08 02:06:48 nah Feb 08 02:07:00 i ended up just like... setting minLine to 3 and max line to 3. Feb 08 02:07:14 I tried throwing it in a scrollview, but it didnt do anything. Feb 08 02:08:04 ok Feb 08 02:08:09 that was odd Feb 08 02:08:10 lol Feb 08 02:08:13 yep Feb 08 02:08:28 when is that next document due? Feb 08 02:08:39 no clue. Feb 08 02:08:47 she kind of makes up due dates Feb 08 02:09:41 kind of like today, 'hand it in at the end of class'. She didn't even talk about it Feb 08 02:09:44 I used to idle on IRC 20 years ago...we had netsplits back then too Feb 08 02:10:00 I wonder if 20 years from now, IRC will still have netsplits? Feb 08 02:10:19 Ologn, probably Feb 08 02:14:15 and then there was the burst Feb 08 02:17:22 any spinner nerds? Feb 08 02:17:37 i'm fighting to style one Feb 08 02:17:37 bah Feb 08 02:18:22 hey, what file in android parses the manifest file in the apks? Feb 08 02:18:51 I was under the impression that I could style the dialog popup on pre-3.0 for spinners Feb 08 02:19:12 basically, I want it to be white on black Feb 08 02:20:40 it seems like that crap is white no matter what I do Feb 08 02:21:00 I don't really want to backport Spinner/AbsSpinner/AdapterView either Feb 08 02:23:31 I fucking love having a SSD for a system drive Feb 08 02:23:48 boots like LIGHTNING Feb 08 02:23:54 i have that at work Feb 08 02:23:57 crazy fast Feb 08 02:24:03 backed up by a RAID1 too Feb 08 02:24:08 for crap Feb 08 02:24:49 raid0 ssd here.. pretty fast :0 Feb 08 02:24:56 i dislike spinners very much... Feb 08 02:25:11 xorgate, why is that even necessary? Feb 08 02:25:15 they're basically just a view with a background that pops up a dialog or list right? Feb 08 02:25:21 i bet i could roll my own... Feb 08 02:25:24 i guess it's not but it was cheap :) Feb 08 02:25:52 but I never reboot Feb 08 02:26:09 it was however the best upgrade ever for my last laptop Feb 08 02:26:25 full suspend to disk in about the same time suspend to ram used to take Feb 08 02:26:28 and it had 4GB Feb 08 02:26:34 it makes you wonder how the hell we ever accepted those slow rotating things Feb 08 02:27:05 JakeWharton, done already? :-) Feb 08 02:27:14 i need to fix spinner styling somehow Feb 08 02:27:21 i don't think it can be done Feb 08 02:27:36 pre-3.0 Feb 08 02:27:55 the ones with little drop-down boxes, not the full dialog based ones? Feb 08 02:28:04 the opposite Feb 08 02:28:09 oh Feb 08 02:28:11 the dialog ones Feb 08 02:28:13 they suck Feb 08 02:28:15 unthemable Feb 08 02:28:21 sure they are Feb 08 02:28:42 oh wait. they have no contents Feb 08 02:28:44 not in a way that works for me Feb 08 02:28:50 they're programatically built usually Feb 08 02:28:57 or, I should say, that works for a user of my library Feb 08 02:29:29 does a new View(context) even get themed? Feb 08 02:29:45 yeah Feb 08 02:29:49 I mean, if it's not inflated from a layout Feb 08 02:30:10 I may be able to use a ContextThemeWrapper Feb 08 02:31:06 the problem is that the default layout that a SpinnerAdapter (or whatever) uses is forced to always use dark text Feb 08 02:32:06 that seems like it should be ?attr:color/textColorPrimary or whatever Feb 08 02:32:30 the title part you mean? Feb 08 02:32:43 I dont recall what they look like at the moment Feb 08 02:33:50 http://developer.android.com/resources/tutorials/views/images/hello-spinner.png Feb 08 02:34:06 they look the same regardless of light/dark theme Feb 08 02:34:11 ooooh Feb 08 02:34:16 not the expanded one Feb 08 02:34:20 gotcha Feb 08 02:34:50 When did Theme.Dark first show up? I thnk it was the 1.6 that went all black right? Feb 08 02:35:05 but the controls were never dark Feb 08 02:35:49 public static final int Theme_Black Feb 08 02:35:50 Since: API Level 1 Feb 08 02:36:21 ? Feb 08 02:37:03 seems to use the primary text color Feb 08 02:37:22 the spinner and buttons themselves were always the same color on either theme Feb 08 02:37:34 so always dark text Feb 08 02:38:21 I'm not sure I can just wrap it in a ContextThemeWrapper either because then the popup will have white on white Feb 08 02:38:43 With ABSv3 I supplied a separate layout that you had to use Feb 08 02:38:48 I wish I didn't have to do that though Feb 08 02:40:06 JakeWharton: i abandoned ABS btw. Feb 08 02:40:13 http://bitgrind.com/~mrenouf/android-4.0.3_r1/android/widget/Spinner.html#151 Feb 08 02:40:16 How would I get resource ID of a view with some Icon set to it? Feb 08 02:40:16 interesting Feb 08 02:40:21 a lot felt wrong about your solution. in particular the experience natively was not what i was looking for. Feb 08 02:40:32 if (mode == MODE_THEME) { ... Feb 08 02:40:38 the experience is exactly that of the native action bar... Feb 08 02:40:49 with the same API Feb 08 02:40:54 o_O Feb 08 02:40:57 Resource ID of Icon set to some view* Feb 08 02:41:21 but thats 4.0.x Feb 08 02:41:33 yeah, that's what I was considering ripping out and backporting Feb 08 02:41:39 i already have ListPopupWindow for the dropdown Feb 08 02:42:07 I was hoping to avoid more code than is necessary but it looks like I might be out of luck Feb 08 02:42:14 when you say 'backporting' do you mean users would have to use a CompatSpinner or something like that? Feb 08 02:42:25 or rather Spinner, in a diff package? Feb 08 02:42:30 no that would all be done internally Feb 08 02:42:36 they wouldn't notice a thing Feb 08 02:42:44 they just supply the adapter to setListNavigation or whatever Feb 08 02:43:22 jasta, y u no?!? Feb 08 02:45:28 oh I see Feb 08 02:45:45 this is for actionbar usage Feb 08 02:46:03 yeah Feb 08 02:46:09 making my brain hurt Feb 08 02:46:17 so you have control over creating it Feb 08 02:46:22 can't you style it manually? Feb 08 02:46:35 oh no, I see there is no attr usage Feb 08 02:46:41 Yeah, ContextThemeWrapper! Feb 08 02:46:46 haha Feb 08 02:47:05 kinda crazy just to get it to see a diff text color Feb 08 02:47:36 which is why I just provided a custom layout xml for ABSv3 Feb 08 02:47:40 and said, do it this way Feb 08 02:48:49 error: build/: platform/build checkout 3c5129f9d902e5c1e342e5f8a7e3db486c9c3ed6 Feb 08 02:48:51 is that bad? Feb 08 02:49:00 very last line after repo sync Feb 08 02:49:44 * p_l|backup needs to finally prepare his own copy of AOSP source Feb 08 02:50:06 it's annoying to need it to compile some important stuff that is included *incomplete* in system Feb 08 02:50:55 btw, does anyone know if OpenSSL is linked directly to runtime? Feb 08 02:52:39 'sup skynet? Feb 08 02:53:13 oops, looks like he got caught by nickserv Feb 08 02:53:27 oh well, I guess my world domination goals will have to wait... Feb 08 02:53:48 linked to? Feb 08 02:55:47 <[azyouthinkeyeiz> lol @ the skynet comments **** ENDING LOGGING AT Wed Feb 08 02:59:57 2012