**** BEGIN LOGGING AT Thu Feb 23 02:59:58 2012 Feb 23 03:00:27 can't reference a percentage in minWidth?!? Feb 23 03:00:46 nopers Feb 23 03:00:59 damn that would've been a great hack Feb 23 03:01:08 indeed Feb 23 03:01:10 the system does it all via code in PhoneWindow anywAYS Feb 23 03:01:13 AYS Feb 23 03:01:15 I wonder what dll is failing... Feb 23 03:02:10 GitError: init: [Errno 11] Resource temporarily unavailable Feb 23 03:02:33 so i just saved a png of my hierarchy from hierarchyviewer Feb 23 03:02:37 the dimesnions of the image are.... fuck Feb 23 03:02:45 2310x16409 Feb 23 03:02:58 lol Feb 23 03:03:08 that's one deep bitch Feb 23 03:03:19 wide too Feb 23 03:07:11 To Do Mapr Beta Invite is now live. www.todomapr.com. Feb 23 03:07:17 Please test the app and let us know how you like it. Feb 23 03:07:30 Video Tutorials to get you up to speed on the app via the Menu button :) Feb 23 03:08:02 y u no send email Feb 23 03:08:18 JakeWharton: sending out to that list now Feb 23 03:08:24 :P Feb 23 03:08:32 You should receive it shortly so dont go through that sign-up process. Feb 23 03:08:40 i won't Feb 23 03:08:47 not checking it out until tomorrow anyways Feb 23 03:08:50 must. focus. Feb 23 03:08:56 ABS needs you! Feb 23 03:09:05 canadiancow|work: sadly, I've seen worse Feb 23 03:09:18 I had to give HV something like 4gb of RAM in order to not die on me :( Feb 23 03:09:30 it was > 20,000 views Feb 23 03:09:35 wow Feb 23 03:09:52 lol Feb 23 03:09:53 hold on Feb 23 03:09:57 for the record, i no longer have something this big Feb 23 03:09:58 that's off by an order of magnitude Feb 23 03:10:01 > 2,000 Feb 23 03:10:26 I think it was something like 2280 Feb 23 03:10:33 but yeah, it's down to a "mere" few hundred now Feb 23 03:10:35 600 watchers on GitHub :-O Feb 23 03:10:48 arbitrary milestones FTW Feb 23 03:11:15 evancharlton, what was it? Feb 23 03:11:30 an app I was working on Feb 23 03:11:57 oic Feb 23 03:12:20 let's just say that ViewPager is a godsend Feb 23 03:13:43 except for its private indicator API Feb 23 03:13:57 but I nitpick... Feb 23 03:13:58 if anyone's curious about how to check this stuff, on HC+, you can use adb shell dumpsys meminfo and look for Views Feb 23 03:14:14 for example, gmail right now has 188 views attached to a single viewrootimpl Feb 23 03:14:39 very useful stuff, for those of you who care about memory usage Feb 23 03:14:53 JakeWharton: indicator API? Feb 23 03:15:38 r6 added the PageTitleStrip which you put inside the ViewPager and it'll add titles to the top of the pages (ala Google Talk app) Feb 23 03:15:39 HC+ ? Feb 23 03:15:45 JakeWharton: ah yeah Feb 23 03:15:53 except the API between ViewPager and the strip is package scoped to android.support.v4.view Feb 23 03:16:03 so I can hook into it and provide indicators that don't suck Feb 23 03:16:06 drezel: I seem to recall some bug making it not work on gingerbread and below, but maybe it just wasn't implemented at all Feb 23 03:16:07 *can't Feb 23 03:16:31 ohh you just meany 3.0+ hah i thought HC+ was some app or something Feb 23 03:16:45 JakeWharton: what indicators? Feb 23 03:16:49 drezel: oh yeah, sorry :) Feb 23 03:17:00 evancharlton, http://viewpagerindicator.com Feb 23 03:17:04 drezel: I almost never refer to things by numbers Feb 23 03:17:09 s/things/android versions/ Feb 23 03:17:17 JakeWharton do you host your webpage on github? Feb 23 03:17:22 JakeWharton: oh that Feb 23 03:17:23 yes Feb 23 03:18:00 t0mless, all my libs have static sites hosted on their respective repos Feb 23 03:18:13 JakeWharton: couldn't you just hack yor way in by setting your customizations in android.support.v4.view? Feb 23 03:18:28 I think there's an internal cast or something that prevented it Feb 23 03:18:29 JakeWharton: and/or just fork the support library and build your own Feb 23 03:18:29 and you use the CNAME thing to let your domains point to them with masking Feb 23 03:18:35 haha Feb 23 03:18:36 NOOO Feb 23 03:18:43 JakeWharton: DON'T BE SCARED Feb 23 03:18:44 that already got me into big trouble with ActionBarSherlock v3 Feb 23 03:18:53 hey, is v4 out? Feb 23 03:19:00 not yet Feb 23 03:19:01 getting closer Feb 23 03:19:04 dude Feb 23 03:19:06 what the fuck Feb 23 03:19:09 really, really close Feb 23 03:19:11 worst. developer. ever. Feb 23 03:19:13 tell these people to stop finding bugs Feb 23 03:19:14 I want my money back Feb 23 03:19:21 JakeWharton: oh, ha, that's easy to fix Feb 23 03:19:26 stop having users Feb 23 03:20:06 unfortunately (actually, fortunately), that trend is going the opposite direction Feb 23 03:20:24 stop having an open issue tracker* Feb 23 03:21:09 yeah that'd work too Feb 23 03:21:28 Anyone know any tutorials on creating a Custom ListFragment? Feb 23 03:24:19 How can I do this on Android ? http://reference.wolfram.com/mathematica/ref/DeleteBorderComponents.html Feb 23 03:25:52 go around the edge and start a fill when you find white? Feb 23 03:26:11 alex_PP: loop over the 4 edges ? Feb 23 03:26:29 yeah Feb 23 03:26:33 might be really slow though Feb 23 03:26:40 and watch how much memory you're using Feb 23 03:26:54 this won't work by the way Feb 23 03:27:13 why not? Feb 23 03:27:54 alex_PP: let me draw an image that this case won't work for Feb 23 03:28:00 this approach I mean Feb 23 03:28:05 ok Feb 23 03:29:47 gotta reboot Feb 23 03:31:59 kjahsdf Feb 23 03:32:02 sometimes Feb 23 03:32:20 rm -rf /all/the/things Feb 23 03:32:37 Why am I getting the R cannot be resolved errors? Feb 23 03:32:46 alex_PP: http://img823.imageshack.us/img823/1905/caseg.png Feb 23 03:33:01 http://imageshack.us/img/blocked_login.jpg Feb 23 03:33:06 image shack doesn't like me Feb 23 03:33:14 oh Feb 23 03:33:16 let me send it Feb 23 03:33:22 CVirus: what would be the expected output for that? Feb 23 03:33:30 I'd think it should be nothing Feb 23 03:33:54 evancharlton: I want the background to be filled with a color Feb 23 03:37:00 it's ok, i got it Feb 23 03:37:10 surley that should just become black? Feb 23 03:37:25 yeah, it should be either all black or all white Feb 23 03:37:40 and you want it to be? Feb 23 03:37:46 depending on which is the "shape" and which is the "background" Feb 23 03:37:58 alex_PP: no idea, I'm not CVirus :) Feb 23 03:38:00 I just want to fill any "edge-reachable" pixel with a color Feb 23 03:38:08 oops, sorry Feb 23 03:38:35 if I can go from that pixel to the edge of the image then this pixel should be filled with a color Feb 23 03:39:19 ok Feb 23 03:39:32 so why wont my idea work? Feb 23 03:40:26 alex_PP: did you check the drawing ? Feb 23 03:40:33 yeah Feb 23 03:40:45 can you do a drawing of what you want the output to be? Feb 23 03:40:53 alex_PP: ok give me a sec Feb 23 03:45:31 alex_PP: wait .. I think it should work Feb 23 03:45:39 if I run the every edge separately Feb 23 03:46:08 alex_PP: top edge, then reset the image, right edge then reset the image, left edge, then reset, bottom then reset .. then combine the output of the 4 operations Feb 23 03:46:18 if I run every* Feb 23 03:46:45 you shouldn't need to do that to reproduce the wolfram output Feb 23 03:47:05 wolfram ? Feb 23 03:47:12 mathmatica Feb 23 03:47:47 hrrrm Feb 23 03:47:56 alex_PP: okay wait let me show you the drawing Feb 23 03:47:59 definitely something going on with my git/gpg Feb 23 03:48:05 not letting me init repo Feb 23 03:48:20 I think I'm going to reinstall cygwin Feb 23 03:49:04 just go full linux Feb 23 03:49:13 t0mless, what bug will you be fixing tonight? Feb 23 03:49:16 not ubuntu though Feb 23 03:49:21 they're trying to ruin it Feb 23 03:49:26 how's that Feb 23 03:49:32 unity Feb 23 03:49:33 gnome3 Feb 23 03:49:36 bleugh Feb 23 03:49:37 i like unity Feb 23 03:49:38 Can anyone here help me setup my ListFragment for my new layout? Feb 23 03:49:39 gnome 3 sucks Feb 23 03:49:44 what's wrong with unity? Feb 23 03:49:48 i'm on xfce now Feb 23 03:49:52 and it's as ugly as sin Feb 23 03:49:55 xfce is nice Feb 23 03:49:56 I think I have a ubuntu iso on my hd Feb 23 03:50:00 I could just boot a fucking VM Feb 23 03:50:02 works well Feb 23 03:50:05 but rather retro Feb 23 03:50:25 alex_PP: image shack is fine / Feb 23 03:50:27 ? Feb 23 03:50:28 looks like windows 3.10 Feb 23 03:50:28 and download the repo with that to my source HD anyway Feb 23 03:50:34 image shack is ok Feb 23 03:50:45 imgur ftw Feb 23 03:52:38 JakeWharton, have you tried MATE in linux mint? Feb 23 03:52:45 nope Feb 23 03:52:48 anyone into football and want to test my app for me give me some feedback? Feb 23 03:53:00 i have a coworker that would Feb 23 03:53:18 its a widget for english premiership Feb 23 03:53:43 alex_PP: this is the original image http://img192.imageshack.us/img192/5370/originalka.png and this is the output I want http://img853.imageshack.us/img853/4263/outputn.png and this is how it will be after doing the top edge part http://img43.imageshack.us/img43/8316/topedge.png Feb 23 03:54:00 oh Feb 23 03:54:11 brx_: sure... Feb 23 03:54:16 cheers Leeds Feb 23 03:54:18 you mean soccer that everyone calls football despite being called soccer originally :)_ Feb 23 03:54:21 EPL Fixtures widget Feb 23 03:54:22 hihi Feb 23 03:54:30 tap that into market please Leeds Feb 23 03:54:30 brx_, what's your app name? I'm an american that watches the premiership quite consistently Feb 23 03:54:40 EPL Fixtures widget Feb 23 03:54:58 I run an EPL website... Feb 23 03:55:04 please go easy on me im no graphic designer or anything Feb 23 03:55:10 ahh nice Leeds Feb 23 03:55:10 setListAdapter(new RandomAdapter(getActivity(), R.layout.list_layout, Shakespeare.TITLES)); -- Why is this throwing me errors for my custom list adaper Feb 23 03:55:13 adapter* Feb 23 03:55:14 we have spoke before on here in the past Feb 23 03:55:25 i made that aria app, remember, the shop in manny Feb 23 03:55:32 you helped me once Feb 23 03:56:34 dj_pi you testing the app too mate? Feb 23 03:56:40 Anyone?... Feb 23 03:58:43 what errors? Feb 23 03:58:47 people migh want to know the error Snwspeckle Feb 23 03:59:26 list_layout cannot be resolved or is not a field -- I have that layout in the layout folder though?... Feb 23 03:59:52 alex_PP: do you get me point ? Feb 23 04:01:03 sorry got distracted Feb 23 04:01:24 Any ideas anyone? Feb 23 04:02:10 ahhh Feb 23 04:02:38 ok, do a full fill, not just a linear fill Feb 23 04:02:55 alex_PP: what do you mean ? Feb 23 04:03:18 any news Leeds ? Feb 23 04:03:29 brx_: I do remember... and I have to ask, do you have permission to use the premier league logo? Feb 23 04:03:40 instead of just filling every pixel from the edge along one axis that match, fill all pixels that touch and match Feb 23 04:03:43 nope, im gonna remove it Feb 23 04:03:52 its a placeholder Feb 23 04:04:00 alex_PP: Are those suggestions for em? Feb 23 04:04:01 me* Feb 23 04:04:03 alex_PP: you mean from the 4 edges ? Feb 23 04:04:21 Snwspeckle, for CV Feb 23 04:04:26 oh ok Feb 23 04:04:34 CVirus, no, you know in paint when you do a fill Feb 23 04:04:36 Snwspeckle rebuild R Feb 23 04:04:38 it fills around shapes Feb 23 04:04:41 goto project->clean Feb 23 04:04:45 also, I'll point out for the record that the EPL like to ask people to buy a license to use their fixture list - which doesn't appear to have any legal basis, nor be enforced in any useful way Feb 23 04:04:46 you need to do that Feb 23 04:05:19 im sure they wont mind Feb 23 04:05:25 Still showing its not a field?... Feb 23 04:05:36 we licensed it for a couple of years, then decided not to waste our money :) Feb 23 04:05:36 alex_PP: I don't really understand .. is this part of the API or something ? Feb 23 04:05:48 no, you'll need to do it the long way Feb 23 04:05:55 bleh Feb 23 04:06:06 seems like I have no ISO image for any unix dist anymore Feb 23 04:06:07 Is there anything special I need to do to use a custom layour for my listview? Feb 23 04:06:16 layout* Feb 23 04:06:16 please test the app and let me know if its any good, i just made it for fun but i kinda like it Feb 23 04:06:25 even though i hate football, i made it cuz my friend asked me Feb 23 04:06:58 great....took me 5 hours to figure out that my app crashed on startup because i forgot to add width attribute to a widget in the xml.... Feb 23 04:07:03 though I probably have a dvd burned around somewhere, but I don't have a dvd drive anymore... Feb 23 04:07:17 t0mless, what bug will you be fixing tonight? Feb 23 04:07:22 CVirus, in your 3rd image, the white pixels under the shoulders of your shape also need filling Feb 23 04:07:31 so why not fill them on the way past? Feb 23 04:07:32 the why the fuck can't I get repo to work bug :) Feb 23 04:07:37 t0mless, what extra steps do I need to do to use a custom layout for my ListView Feb 23 04:07:42 brx_: updating, please wait.... Feb 23 04:07:42 alex_PP: no I don't want to fill those Feb 23 04:07:48 Snwspeckle using a custom adapter? Feb 23 04:08:08 I have looked online but there is no tutorias on how to use one with a ListFragment Feb 23 04:08:14 alex_PP: the shape can be hollow from the inside Feb 23 04:08:17 ListFragment just creates a ListView Feb 23 04:08:21 any ListView tutorial will work Feb 23 04:08:27 ^ tjos Feb 23 04:08:28 or ListActivity Feb 23 04:08:32 this* Feb 23 04:08:45 i mean outside but under to overhang Feb 23 04:08:47 OK Feb 23 04:08:47 Leeds: you got logcat on the device? Feb 23 04:08:52 odd that cygwin doesn't have an uninstaller Feb 23 04:09:22 no Theme.Dialog.Light Feb 23 04:09:25 odd Feb 23 04:09:28 Leeds: if the net is off during the initial update theres a bit of a problem with the switch i've implemented Feb 23 04:09:52 also what device oyu on there Leeds Feb 23 04:10:11 brx_: check it... http://android.vmlinuz.org/epl.png Feb 23 04:10:22 alex_PP: I don't think I understand what you're trying to tell me .. I'm really sorry for wasting your time Feb 23 04:10:36 ahhh nice Feb 23 04:10:40 choose a team then :D:D Feb 23 04:10:50 the logo is over the text... Feb 23 04:11:08 im using same res for each folder Feb 23 04:11:19 need to resize and do for diff screen sizes Feb 23 04:11:25 wow, um, the league table looks terrible :) Feb 23 04:11:25 ye thats appauling sorry Feb 23 04:11:30 YE LOL Feb 23 04:11:37 thats my visual creativity at its max Feb 23 04:12:01 but the actual widget screen is.... o k . Feb 23 04:12:18 nothing personal, but I've actually written exactly this stuff :) Feb 23 04:12:33 lol Feb 23 04:12:36 hmm... no Leeds in the list... Feb 23 04:12:39 is it published? Feb 23 04:12:50 leeds aint in the prem are they Feb 23 04:12:51 ah, black text on a dark blue background? Feb 23 04:12:51 ? Feb 23 04:12:57 they *should be*! Feb 23 04:13:01 rofl Feb 23 04:13:50 the update is a bit annoying, the xml file it grabs is like 3 kb or smt Feb 23 04:14:02 yet banging it all in the db takes long time relatively imo Feb 23 04:14:17 should i be holding the xml in memory and parsin it in realtime in stead of doing the inserts? Feb 23 04:14:17 um Feb 23 04:14:25 i'm pretty sure there's an Android 3.2.4 tag in git Feb 23 04:14:28 anyone else seeing this? Feb 23 04:14:36 'nother screenshot coming your way, epl2.png in the same place Feb 23 04:14:47 k Feb 23 04:14:55 brx_: are you serving the data yourself, or getting it from somewhere? Feb 23 04:15:04 myself Feb 23 04:15:27 what's the big 8 for? Feb 23 04:15:31 position Feb 23 04:15:34 in league Feb 23 04:16:00 thought so, but it's not obvious (or centered) Feb 23 04:16:39 This is confusing as hell.... Feb 23 04:16:42 the layout is a bit naff ye Feb 23 04:17:19 so reckon i should be putting it in the slite3 or just parsing from memory as i go along? Feb 23 04:17:28 (in order to cut out the 30 seconds+ update mechanism" Feb 23 04:17:30 ) Feb 23 04:17:36 anyway, that's my unnecessarily unnecessary critical app criticism for today :) Feb 23 04:17:48 Custom array adapters are the hardest thing ever.... Feb 23 04:18:08 I'm not sure why it would need to be so slow, to be honest - although this *is* an ancient slow phone, since I had my amazingly fast current phone nicked last week Feb 23 04:18:23 im on a desire and it takes about 40 seconds Feb 23 04:18:29 word cloud of leaked YouPorn passwords: http://dl.dropbox.com/u/3077/youporn_passwords.jpg Feb 23 04:18:49 similarish on a Magic, so it's *not* the device, by the looks of things Feb 23 04:20:01 hmm Feb 23 04:20:07 a fixture list really isn't that much data, in the scheme of things Feb 23 04:20:17 (or the schema of things, ha!) (sorry...) Feb 23 04:20:44 well it gets the fixtures and the teams stats, quite comprehensive, im not actually using all the data in my queries, but still its a tiny file gnuzpped Feb 23 04:20:50 which it gets for the update Feb 23 04:20:54 ah, stats as well... even so... Feb 23 04:21:54 parsed using Document parser on a service on an asynctask, just so suprisingly slow Feb 23 04:22:03 is that perser slow perhaps? Feb 23 04:22:31 might try the xmlpull parser? or use json instead? Feb 23 04:22:56 ok ill try that xmlpull parser Feb 23 04:23:38 thanks for testing it anyway Feb 23 04:24:10 no problem Feb 23 04:24:41 are you gonna keep it installed? Feb 23 04:24:44 :P Feb 23 04:24:57 is it the dogs, or is it dog shit Feb 23 04:24:59 ? Feb 23 04:25:11 Can someone help me with this custom adapter, I am so stuck.... Feb 23 04:25:25 All I am trying to do is use my custom layout and load a simple array of strings.. Feb 23 04:25:43 Half the tutorials I read say use 6 files, some 3, some 2... Feb 23 04:28:20 I'm not going to keep it - during the season I'm surrounded by the fixture list anyway, plus crappy ancient phone, lack of CPU and memory, etc. etc. Feb 23 04:28:23 nothing personal :) Feb 23 04:28:31 depends on how you do it, if you use inner classes you'll have less files Feb 23 04:28:36 Why the hell is my layout said to be not defined??........... Feb 23 04:28:44 Snwspeckle pretty much, custom adapter and override getView*( Feb 23 04:28:46 ok :) Feb 23 04:28:46 () Feb 23 04:29:16 Ok but I can't do anything until I can fix this bug where it says my layout is not defined.... Feb 23 04:29:29 did you rebuild R? Feb 23 04:30:00 Yes Feb 23 04:30:04 Still shows it Feb 23 04:30:19 must be an error in your resrouces Feb 23 04:30:28 that isn't letting R rebuild Feb 23 04:30:33 properly Feb 23 04:31:26 list_layout cannot be resolved or is not a field ---- I am looking right at the files, this is pissing me off so much.... Feb 23 04:31:27 dialog themes have to be set via manifest to have transparent backgrounds Feb 23 04:31:58 Snwspeckle just because the file exists doesn't mean it get's put into R, if there are errors R won't compile Feb 23 04:32:20 So how do I tell Eclipse its there... Feb 23 04:32:25 Snwspeckle: usually when i cant find an eeror to do with R class its cuz there is something inside an xml file not quite right Feb 23 04:32:34 clean the project Feb 23 04:32:39 you'll get a bunch of errors in a resource file Feb 23 04:32:53 I don't have errors anywhere... Feb 23 04:33:09 are you importing the wrong R? Feb 23 04:33:28 JakeWharton https://github.com/JakeWharton/ActionBarSherlock/issues/300 do you know if that is already fixed in 4.0? Feb 23 04:33:46 No, I have checked this over for 3 hours, its perfect... Feb 23 04:34:07 pastebin your layout_list.xml file and your .java file that has the error Feb 23 04:34:22 no idea Feb 23 04:35:17 Java File: http://pastebin.com/tPSZdhKE -- XML File: http://pastebin.com/e1AdDSAk Feb 23 04:37:56 Snwspeckle you're not using a custom adapter Feb 23 04:38:11 I have tried tutorials, they don't make sense at all... Feb 23 04:38:21 I have the getView and thats about it.. Feb 23 04:38:21 all you did was make a getView method in your fragment that will never get called Feb 23 04:38:36 You gotta do some Java tutorials man Feb 23 04:38:53 They don't make sense is the thing, they are all over the place Feb 23 04:39:29 But do you know why the xml file was erroring? Feb 23 04:39:31 And you're trying to put a scroll view inside a listview list item? Feb 23 04:40:00 Yea to scroll the listview right? Feb 23 04:40:05 lol Feb 23 04:40:06 no Feb 23 04:40:10 the custom layout you make Feb 23 04:40:16 is the layout that each item uses Feb 23 04:40:47 I am attempting to just make a chat thing... Feb 23 04:40:49 the listview itself will handle the scrolling, it just adds a bunch of copies of your custom layout Feb 23 04:41:18 not sure listview is what you want for that Feb 23 04:41:25 but I guess it could work Feb 23 04:41:39 chat like live chatroom or like shoutbox post and refresh thing? Feb 23 04:41:53 live, using socket streams Feb 23 04:42:12 I guess listview can work for that Feb 23 04:42:33 My issue is just setting up this custom adapter.. Feb 23 04:42:33 android:baselineAligned="true" <-- that is a relative layout property in a linear layout Feb 23 04:42:39 ^ +1 Feb 23 04:42:40 I think... Feb 23 04:43:02 lol Feb 23 04:43:04 well I gtg Feb 23 04:43:05 thanks Feb 23 04:43:29 Right, giving up on that guy before I get another `teh1 on my hands Feb 23 04:44:45 yeah Feb 23 04:44:45 he's diving in way too deep Feb 23 04:46:41 if he can't get Adapters he's already screwed Feb 23 04:47:05 been using perforce too much, what's the git command to force override of local file from branch Feb 23 04:47:09 pull? Feb 23 04:47:14 force override? Feb 23 04:47:34 I want to use the feature_toggles.xml you have in 4.0-wip Feb 23 04:47:39 but merge failed Feb 23 04:47:47 git checkout -- path/to/file Feb 23 04:48:11 oh you want to reset to my copy? Feb 23 04:48:16 yea Feb 23 04:48:17 hmmm Feb 23 04:48:20 don't want to recheck out mine Feb 23 04:48:20 i used to know this Feb 23 04:48:38 probably a merge toggle I can use Feb 23 04:49:18 only one big bug left! Feb 23 04:49:20 then RC2 Feb 23 04:49:54 time to add more bugs Feb 23 04:50:11 actually I still have SimonVT's bug Feb 23 04:50:13 so two Feb 23 04:54:13 rc2! Feb 23 04:54:17 i dont even know if im using rc1 yet Feb 23 04:55:40 don't bother upgrading Feb 23 04:55:50 rc2 makes a bunch of changes Feb 23 04:55:56 *will make Feb 23 04:56:53 git checkout --theirs -- Feb 23 04:57:31 what's the global config to set my editor to be nano intead of vim? Feb 23 04:59:41 core.editor :) Feb 23 05:00:50 <3 nano Feb 23 05:15:04 hrm... all these mirrors for the ICS Leaked ROM for A500 seem to have exploded Feb 23 05:16:24 hey t0mless Feb 23 05:17:00 Hello. Feb 23 05:17:16 what's up Feb 23 05:17:30 I want to smash cygwin in the face Feb 23 05:17:49 I know that feel bro Feb 23 05:18:32 holy fuck Feb 23 05:18:38 404MB at 20kb/s... really Feb 23 05:19:16 ._. Feb 23 05:19:22 needs more bittorrent Feb 23 05:20:07 started 3.0 emulator Feb 23 05:20:13 already had a 3.2 one running Feb 23 05:20:15 #firstworldproblems Feb 23 05:20:28 I can't run an Android emulator Feb 23 05:20:45 I haven't tried to load a 3.0 emu lately Feb 23 05:20:50 but it didn't work for shit Feb 23 05:20:57 I tried to load a 2.3 emu Feb 23 05:21:06 20 minutes and still black Feb 23 05:21:28 what's logcat say? Feb 23 05:22:19 I usually close all the programs here Feb 23 05:22:29 BECAUSE THIS COMPUTER IS SO FUCKING SLOW Feb 23 05:22:30 sorry Feb 23 05:22:42 it's a fucking dual-core Pentium Feb 23 05:22:53 upgraded from a shitty Celeron Feb 23 05:23:05 oh man celeron Feb 23 05:23:07 never again Feb 23 05:23:08 NEVER Feb 23 05:23:26 yeah : Feb 23 05:23:26 :c Feb 23 05:32:01 well Feb 23 05:32:06 I guess I'll just let that download overnight Feb 23 05:32:18 t0mless: take the weekend off Feb 23 05:32:39 You work on weekends? Feb 23 05:32:53 That's one thing I don't miss about working as a chef Feb 23 05:32:59 I get my weekends to me now Feb 23 05:33:12 nah... well, I work a bit flexible, which means the odd bit at the weekend - worth it for regular 11-6:30 days Feb 23 05:36:11 the original Galaxy Tab is large, hdpi, and 1024x600 Feb 23 05:36:21 fak Feb 23 05:36:27 if I have a values-large-mdpi-1024x600/ folder will it pick up on that Feb 23 05:36:35 I know DPI isn't filtered immediately Feb 23 05:36:47 but I'm not sure if that's only for drawables or for everything Feb 23 05:36:51 anyone around? Feb 23 05:37:02 Is xdpi really only for these 720 and 1080 screens? Feb 23 05:37:02 I have some java questions that are driving me nuts Feb 23 05:37:02 got cygwin to finally init the repo correctly Feb 23 05:37:12 but now it still facking up on the sync Feb 23 05:37:16 xhdpi* Feb 23 05:37:17 JoeTheGuest, if they're small enough Feb 23 05:37:37 you could have a 1024x600 xhdpi screen too Feb 23 05:37:40 S0ckM0nk3y: just ask... but if it's basic java stuff, you might want to investigate #java (or possibly ##java) as well Feb 23 05:37:48 http://dl.dropbox.com/u/16784571/Untitled.png Feb 23 05:37:52 I get that error Feb 23 05:37:59 and have no clue I'm stuck lol Feb 23 05:38:05 OW MY EYES Feb 23 05:38:11 you get a URL as an error? Feb 23 05:38:30 let me rephrase Feb 23 05:38:40 in the link I am providing there is a pic of the error I get Feb 23 05:38:40 Stop trying to decode a .apk and just look at the Settings in the source? Feb 23 05:38:47 S0ckM0nk3y: you want to be (ignored) in #android-root, not here, if you're messing with the framework Feb 23 05:38:56 also, you need to learn how to copy and pastebin an error Feb 23 05:39:10 I do know how Feb 23 05:39:16 just did the pic instead Feb 23 05:39:27 because that wasted hundreds of times more bandwidth? Feb 23 05:39:40 S0ckM0nk3y just do apktool d (drag the file into cmd) (drag the file in again but delete .apk extension) and hit enter. Feb 23 05:39:41 made it harder for everyone to read the error, and therefore help you? Feb 23 05:39:53 speaking of those root guys Feb 23 05:40:00 they might know the answer to my repo issue Feb 23 05:40:17 S0ckM0nk3y that's all you have to do Feb 23 05:40:28 yeah still gets the error I've tried that Feb 23 05:40:41 Is that ICS? Feb 23 05:40:46 ICS framework Feb 23 05:41:01 yes Feb 23 05:41:06 1 sec Feb 23 05:41:17 it's a leak for the Epic Touch so I'm iffy about it Feb 23 05:41:26 really... #android-root Feb 23 05:41:27 Drop box me the apk Feb 23 05:42:23 http://dl.dropbox.com/u/16784571/Settings.apk Feb 23 05:42:54 Errors fo rme to Feb 23 05:42:54 Leeds I came in here for help on a whim no need to be a dick about it Feb 23 05:42:55 for me* Feb 23 05:45:11 I can't figure out the problem JoeTheGuest it's driving me nuts I've been at it for 3 days lol Feb 23 05:45:21 What do you need inside of it? Feb 23 05:45:29 S0ckM0nk3y: you are asking in the wrong fscking channel Feb 23 05:46:08 I asked if anyone can help me with an error Feb 23 05:46:09 S0ckM0nk3y: just ask... but if it's basic java stuff, you might want to investigate #java (or possibly ##java) as well Feb 23 05:46:21 Leeds they probably know no more then someone in here. Feb 23 05:46:52 S0ckM0nk3y: I presumed you were talking about app development - which is the topic for this channel - not framework hacking, which isn't Feb 23 05:47:21 Like I said I just came in on a whim Feb 23 05:47:31 You said go ahead Feb 23 05:47:33 I did Feb 23 05:47:33 wrong whim Feb 23 05:47:36 you said Feb 23 05:47:41 YOU SAID Feb 23 05:47:42 WRONG F*CKING CHANNEL Feb 23 05:47:59 some community Feb 23 05:48:00 yes, wrong fscking channel Feb 23 05:48:07 i should fsck... Feb 23 05:48:11 speaking of Feb 23 05:48:30 Getting a little hostile in here. Feb 23 05:48:41 from one person Feb 23 05:48:48 JakeWharton: I've got a machine where ps, dmesg and sudo cat /proc/kmsg are hanging... I think I need more than a fsck Feb 23 05:48:56 :o Feb 23 05:49:08 grrr Feb 23 05:49:14 I'm not the hostile one but that's fine I'll leave no worries thanks for the help to those who tried at least Feb 23 05:49:16 Leeds, https://twitter.com/#!/JakeWharton/status/172525995226710017/photo/1 Feb 23 05:49:17 fatal: Not a git repository: '/cygdrive/h/Android/ICSSource/.repo/projects/frameworks/base.git' Feb 23 05:49:37 JakeWharton: yeah, exactly Feb 23 05:50:23 JakeWharton: btw, been using ABS on the next release of the android portion of my company's product... nearly ready for release; great job in it man. Feb 23 05:50:41 awesome! Feb 23 05:50:57 s/in/on/ Feb 23 05:50:59 will this thing be public once released? Feb 23 05:51:03 like, for me to try? Feb 23 05:51:09 Yes and no. Feb 23 05:51:19 Yes, it will be available to the public, for free. Feb 23 05:51:31 But 'no' in that you need one of our appliances for it to connect to, else it's largely useless =P Feb 23 05:51:36 a client without a server. Feb 23 05:51:40 ah, understandable Feb 23 05:51:48 However, I could set you up an account on my personal server for you to play with it :) Feb 23 05:52:21 It's a remote tech support solution, so the idea is I can use my phone or tablet to access your pc remotely, viewing your screen, typing, moving the mouse, etc.. Feb 23 05:52:37 I'll let you know when the ABS version hits market. :) Feb 23 05:52:43 yeah that'd be great Feb 23 05:53:13 75% I usually just look at in the Market anyways Feb 23 05:53:21 I just wasn't sure if it was a completely private thing or not Feb 23 05:54:09 I'll let you play with it when it's done anyway, but anyway I'm heading out just saw you here as I was preparing to shut down and thought I'd let you know how much it helped my efforts as of late. <3 Feb 23 05:54:22 cool. glad to hear it Feb 23 05:54:27 looking forward to seeing it Feb 23 06:01:37 it must be an issue with git or something Feb 23 06:06:25 grrr Feb 23 06:06:28 now I'm getting gpg: keyblock resource `/cygdrive/c/Users/Thomas/.repoconfig/gnupg\pubring.gpg': file open error Feb 23 06:06:36 but the file is RIGHT FUCKING THERE Feb 23 06:07:24 and I have a pub key in .ssh Feb 23 06:11:20 shit Feb 23 06:11:24 1:15am?!? Feb 23 06:11:42 t0mless, you know what repo does work? Feb 23 06:11:44 ABS Feb 23 06:11:51 :) Feb 23 06:11:54 Indeed Feb 23 06:12:03 maybe it's a sign Feb 23 06:12:15 I didn't fall asleep until 4am last night Feb 23 06:12:19 HDPI = 1.5x Feb 23 06:12:22 ? Feb 23 06:12:22 and then got up at 8 to go to work Feb 23 06:12:36 2:3:4 mdpi:h:xh Feb 23 06:12:52 you sure willis? Feb 23 06:12:55 Yup Feb 23 06:13:02 i thought it was 3:4:6:8 Feb 23 06:13:08 wait Feb 23 06:13:11 -_- Feb 23 06:13:14 I GOTS A LINK Feb 23 06:13:21 they're the same ratios Feb 23 06:13:32 lol Feb 23 06:13:33 indeed Feb 23 06:13:39 * t0mless has a math degree, I swear Feb 23 06:13:56 so do I :P Feb 23 06:14:11 well, a minor Feb 23 06:14:20 i know my calculus Feb 23 06:14:20 well mine is a MAJOR Feb 23 06:14:22 SO HA Feb 23 06:14:26 it says u + me = us Feb 23 06:14:50 ok Feb 23 06:14:51 so Feb 23 06:14:53 lol, didn't some disney fake boy band make that song? Feb 23 06:14:57 yeah Feb 23 06:15:45 mtv or something Feb 23 06:15:45 48dp = 72px? Feb 23 06:15:45 on 1024px in portrait Feb 23 06:15:46 is like... 7.5%ish Feb 23 06:20:24 Anyone know with ndk how I can determine if I'm compiling for x86 or ARM? Feb 23 06:20:45 I'm building all abis. Need to know which I'm compiling for. Feb 23 06:21:24 I wonder if the \ slash is fucking things up Feb 23 06:22:43 What is a good bitmap lib for android? Feb 23 06:36:09 hmmm Feb 23 06:36:13 well now I have a new error Feb 23 06:36:22 error: cannot fork() for fetch-pack: Resource temporarily unavailable Feb 23 06:37:55 woot Feb 23 06:38:04 my sonatype repos in central were just approved Feb 23 06:38:27 I have no idea what that means Feb 23 06:39:00 that means actionbarsherlock, viewpagerindicator, and nineoldandroids will be deployed to maven central soon Feb 23 06:39:03 no more custom repository Feb 23 06:40:09 i'll do that tomorrow Feb 23 06:45:16 does the galaxy tab emulator correctly scale shit using HDPI? Feb 23 06:45:18 because it seems off Feb 23 06:45:34 asdfkasdfasdf Feb 23 06:45:41 stupid resource unavailable error again Feb 23 06:45:45 and here I thought I had it working Feb 23 06:46:21 I don't know how maven repos work tbh Feb 23 06:46:39 it doesn't pull source from there right? Feb 23 06:46:50 hi, Feb 23 06:46:51 is it possible that a child thread has a another thread in it? Feb 23 06:48:03 t0mless, it can Feb 23 06:48:14 maven repos host binary .jars, source .jars, and javadoc .jars Feb 23 06:48:54 so if I just had the ABS repo in my pom.xml for my project Feb 23 06:49:08 and built with maven, it would go get the source for me and build it? Feb 23 06:49:13 yep Feb 23 06:49:31 tits Feb 23 06:49:54 ugh Feb 23 06:49:55 I tried to get that working with IDEA Feb 23 06:49:57 dpi qualifiers Feb 23 06:50:02 but it like shat allllllllll over itself Feb 23 06:50:26 was like MAVEN?!?!?!?! hnnnnnnnnnuuuuuuuuuuuuuuuuuuuuuuuuuu Feb 23 06:50:38 really? usually you just open a pom.xml with IDEA and it's good to go Feb 23 06:51:58 I need to learn how to fully setup maven to build Feb 23 06:52:09 do you use custom task things for aapt/etc? Feb 23 06:52:36 a plugin does it all for you Feb 23 06:54:37 I need a Galaxy Tab Feb 23 06:54:39 original Feb 23 06:54:46 i can't tell if the emulator is rendering correctly or not Feb 23 06:55:10 why for galaxytab? Feb 23 06:57:01 need hdpi with that res? Feb 23 06:58:20 because it's a large hdpi device when technically it shouldn't be Feb 23 06:58:22 so it's causing problems Feb 23 06:58:41 what is it's res? Feb 23 06:58:47 1024x600 Feb 23 06:58:52 works out to about 170dpi Feb 23 06:58:58 on a 10.1 in screen? Feb 23 06:59:02 7" Feb 23 06:59:15 ahh Feb 23 06:59:30 and 170 is right there in nomands land on their dpi scale Feb 23 06:59:39 yeah Feb 23 06:59:42 no man's land* Feb 23 07:00:04 which means a 56dp action bar becomes... a lot of pixels Feb 23 07:00:18 doesn't cow have a galaxytab Feb 23 07:00:24 he has a good one Feb 23 07:00:25 though I think his is 10.1 Feb 23 07:00:27 the 10.1 Feb 23 07:00:47 i want to make the kindle fire and nook tablet have 56dp action bars rather than 48dp because I think it looks better Feb 23 07:01:01 but then android picks up those styles on the hdpi tab Feb 23 07:01:11 which blows the action bar way out of proportion Feb 23 07:10:34 mnight Feb 23 07:10:36 -m Feb 23 07:23:57 I'm importing import android.support.v4.app.FragmentActivity, extending FragmentActivity, but getSupportActionBar is unknown for some reason Feb 23 07:27:18 Is it correct/OK to put a Handler field with an initializer like: "private Handler handler = new Handler();" in an activity, or do I have to initialize it in onCreate? I want it to let me post messages to the activity's UI thread Feb 23 07:28:48 vadi2 are you using ABS 4.0 beta? Feb 23 07:28:55 I am. Feb 23 07:29:22 Doing FragmentActivity.getSupportActionBar says that getSupportActionBar() is undefined for FragmentActivity Feb 23 07:29:38 Use onCreate then Feb 23 07:29:46 yea, I think you need to use SherlockActivity now Feb 23 07:29:57 Lols. Feb 23 07:30:04 I have no idea what you guys are talking about. :3 Feb 23 07:30:15 One day I will though. Feb 23 07:30:21 G'night guys. Feb 23 07:30:44 oh no, it should work Feb 23 07:31:13 Well the examples do seem to be using SherlockActivity Feb 23 07:31:23 ad'fhlasdfga Feb 23 07:31:24 At least Eclipse says that's where it's pulling the method from... hm Feb 23 07:31:26 was on the wrong branch Feb 23 07:31:48 i love you Feb 23 07:31:55 So do I extend SherlockActivity too? Feb 23 07:32:02 Yeah guess I do Feb 23 07:32:14 not too, but instead Feb 23 07:32:22 Happy no Feb 23 07:32:26 sorry, yes, instead Feb 23 07:32:31 *it's happy now. good Feb 23 07:32:48 just make sure your fragments don'e explode Feb 23 07:33:08 Don't have any yet, just trying out the tabs first... Feb 23 07:33:21 My S2 is still 2.3.3 :/ so I'm working my way up instead of down. Feb 23 07:33:48 you'd have to ask JakeWharton about using fragments as well Feb 23 07:34:47 ahhh Feb 23 07:34:49 here it is Feb 23 07:35:03 com.actionbarsherlock.app.SherlockFragmentActivity Feb 23 07:35:20 you have to have the compat plugin as well Feb 23 07:36:55 yeah I do Feb 23 07:37:07 from the beta site? Feb 23 07:37:50 http://beta.abs.io/dl/rc1/actionbarsherlock-plugin-support-lib-4.0.0-SNAPSHOT.jar Feb 23 07:38:05 then you should be able to import com.actionbarsherlock.app.SherlockFragmentActivity Feb 23 07:38:27 I'm using the git branch directly Feb 23 07:38:36 but yeah, works :) Feb 23 07:43:16 the idea in 3.x was that you used supportfragment Feb 23 07:43:20 did that not change Feb 23 07:55:03 dunno, I think you use SherlockFragment now Feb 23 07:55:21 which means next time I open my project shit's gunna go down Feb 23 07:55:50 this is currently pissing me off Feb 23 07:55:52 GitError: manifests init: fatal: Could not switch to '/cygdrive/h/Android/ICSSource/.repo': No such file or directory Feb 23 07:56:05 even though it's RIGHT FUCKING THERE Feb 23 07:56:27 what does ls -la say ? Feb 23 07:56:46 drwxr-xr-x+ 1 Thomas None 0 Feb 22 23:50 .repo Feb 23 07:57:04 mhm Feb 23 07:57:37 and for ICSSource ? Feb 23 07:58:09 drwxr-xr-x+ 1 Thomas None 0 Feb 22 23:49 ICSSource Feb 23 08:00:14 Did you use the correct command? Feb 23 08:00:24 repo init -u https://android.googlesource.com/platform/manifest Feb 23 08:01:20 looks about right, hm. Feb 23 08:01:41 wonder if there is a newer python available Feb 23 08:02:47 2.6.7 is highest available for cygwin Feb 23 08:03:32 hmmm Feb 23 08:03:44 perhaps I will uninstall that python and install python 2.7.2 for windows Feb 23 08:03:53 or even 3.2.2? Feb 23 08:04:24 dont mix them, they dont play well together Feb 23 08:04:33 2.7 it is then Feb 23 08:04:54 Python scripts for 3.x doesnt usually work on 2.7 and vice versa Feb 23 08:10:14 well Feb 23 08:10:31 it seems that the python for windows does not run well in cygwin Feb 23 08:10:39 time to dl the 2.7 python sources Feb 23 08:23:35 hi guys Feb 23 08:24:15 anyone that have styled the basic theme in a blueish way? Feb 23 08:24:30 i dont want to style myself... Feb 23 08:25:05 any place to get styled theme resources? Feb 23 08:56:00 h, i try to create a "button" programatically.. it should have an image on the left side, some text in the middle and another smal image on the right side.. Feb 23 08:56:13 i'm playing with using LinearLayout for this.. Feb 23 08:56:23 but i have very limited success :D Feb 23 08:57:54 Greets Guys, after ScaleAnimation completes, how can I get the bounds - x,y and x2,y2(or width and height) of the view it was applied to. Note: Some of the view is stays offscreen - fillAfter is true. Feb 23 08:58:03 even setting the backgroundcolor doesn't seem to work for the text view.. Feb 23 08:58:04 http://pastesite.com/31977 Feb 23 09:01:26 tapas: I don't think you should use the application context for your views, but instead use the activity Feb 23 09:01:49 tapas: in your code sample, what is layout ? Feb 23 09:02:51 appel1: oh it's a linear layout around all the stuff.. which is then again contained in a scrollview Feb 23 09:03:00 appel1: thanks for the tip about the context.. Feb 23 09:03:26 tapas: the scrollview is the current content view? Feb 23 09:04:35 appel1: hmm, i don't know if i understand your question right.. i have defined an xml layout for this activity which is asicaly just ScrollView with a LinearLayout in it.. Feb 23 09:06:13 tapas: ok, and what exactly is that doesn't work? no buttons at all? Feb 23 09:07:29 tapas: and why are you not using a ListActivity? :) Feb 23 09:07:45 appel1: nah.. i wanted to see whether it's easier to do it this way :D Feb 23 09:07:56 appel1: my question was badly worded.. Feb 23 09:08:11 appel1: first thing is that the backgroundcolor seems to be ignored Feb 23 09:08:40 R.color.white is defined by: #FFFFFF Feb 23 09:08:55 tapas: doubt it is very good for performance and memory usage :) Feb 23 09:10:03 appel1: ok, i shall look into ListActivity.. Feb 23 09:10:28 tapas: but I guess it could be more work for you depending on what you want Feb 23 09:11:35 appel1: the list of products displayed in this activity is rather small: around 10-20ish.. Feb 23 09:12:03 tapas: ok Feb 23 09:14:33 tapas: I don't think the layouts support drawing any background at all Feb 23 09:15:20 appel1: they do have the methods and properties though.. Feb 23 09:15:21 hmm Feb 23 09:15:49 one feature eclipse really misses is highlighting closing braces Feb 23 09:16:14 troll :-D Feb 23 09:17:12 tapas: true, perhaps I'm wrong Feb 23 09:18:39 Gaz`: use Intelli J Idea :-) Feb 23 09:20:38 i would but i need gui stuff Feb 23 09:21:02 im using intelliJ for only one project right now, my backgammon game for tablets :) Feb 23 09:21:22 appel1: and actually: instead of nested linearlayouts i probably want a TableLayout :D Feb 23 09:21:27 ust found out that class exista ;D Feb 23 09:21:32 hmmm gammon. Feb 23 09:21:34 Why do you need GUI Stuff ? Much more control over your layout Feb 23 09:21:49 If you do it by yourself :-) Feb 23 09:22:21 Gaz` Nothing prevents you from using Eclipse for GUI editing and IntelliJ to work on your code Feb 23 09:23:21 good point fpillet Feb 23 09:23:35 DashCC - yeh i just find visual stuff easier Feb 23 09:24:07 mhm, well, I dont know how the produced gui code of eclipse is Feb 23 09:24:14 any experiences ? Feb 23 09:24:23 It's XML Feb 23 09:24:28 well. Feb 23 09:24:28 what's the difference? Feb 23 09:24:30 is it good? Feb 23 09:25:04 yeh its fine Feb 23 09:25:06 shouldn't be different from the one you write manually Feb 23 09:25:10 not like dreamweaver or something Feb 23 09:25:21 The difference is, if I have deprecated layout formats and fiddly XML views which use "marginLeft: 3px" to align stuff instead of proper relative stuff Feb 23 09:25:39 yeh Feb 23 09:25:41 I saw horrible horrible xml layout code, fpillet - dont say that :-) Feb 23 09:25:42 well u sort of use both Feb 23 09:25:56 i mean how do u know how its ognna look? each change u test on device? Feb 23 09:25:58 seems slow Feb 23 09:25:58 oh ok what do I know - I mostly don't use GUI xml :-) Feb 23 09:26:22 Hello. I have a VideoView and a SeekBar. My activity automatically starts media player to show video. But seekbar doesnt moves while video streams. There is a Thread that controls SeekBar progress. When I debug the seekbar thread, the seekbar works :) But when its running (not debug) it doesnt works. What is the problem??? Here is the code: http://pastebin.com/rLsMj2hq Feb 23 09:26:53 Gaz, Intelli J idea 11 offers a view Feb 23 09:27:42 nice dash Feb 23 09:28:09 anyone still use vectors? Feb 23 09:29:00 Sorry for reposting: After ScaleAnimation completes, how can I get the bounds - x,y and x2,y2(or width and height) of the view it was applied to. Note: Some of the view is stays offscreen - fillAfter is true. I can only mange to get the original positions and dimensions :/ Feb 23 09:32:52 DysonReturns: ScaleAnimation only affects the drawing Feb 23 09:32:56 it does not change the properties of the view Feb 23 09:33:10 Hey guys, is it possible to show the currently selected tv channel in a view? Feb 23 09:33:47 Couldn't find something in the dev guide from google tv.... Feb 23 09:34:35 romainguy: any way i get access the properties of the drawing then? Feb 23 09:34:47 DysonReturns: if you use NineOldAndroids, there's a way to do it Feb 23 09:35:02 good morning how can i print a colon (:) in java Feb 23 09:35:02 @romainguy , could you please check my question? Feb 23 09:35:05 I recently added code that computes the invalidation rectangle, it takes the transformation into account Feb 23 09:35:18 (including scale) Feb 23 09:35:20 DysonReturns: you can get the transform matrix from the animation Feb 23 09:35:23 do i have to use a / befor it like in C or what? Feb 23 09:35:34 no Surfer2010 Feb 23 09:35:36 ":" Feb 23 09:35:37 is fine Feb 23 09:35:59 only needed with backslashes as far as i know Feb 23 09:36:03 or printing " itself Feb 23 09:36:08 stSpielstand = ""+heimpunkte" : "+gastpunkte; <--- Error "remove colon" Feb 23 09:36:17 stSpielstand is a string Feb 23 09:36:28 and the other two words are integers Feb 23 09:36:39 DysonReturns: https://github.com/JakeWharton/NineOldAndroids/blob/dev/library/src/com/nineoldandroids/view/animation/AnimatorProxy.java#L229 Feb 23 09:37:03 stSpielstand = ""+heimpunkte+" : "+gastpunkte; Feb 23 09:37:07 missed a plus Feb 23 09:37:14 ah Feb 23 09:37:15 :D Feb 23 09:37:19 :) Feb 23 09:37:25 thx :D :D :D Feb 23 09:37:31 you dont really need the first ""+ either Feb 23 09:37:49 but it doesnt matter really Feb 23 09:37:51 np Feb 23 09:37:55 romainguy: may I ask a question .. I have EditText objects I create manually. For the life of my, I can't get them to properly vertically center. Tried various things (i.e. setting gravity to Gravity.CENTER_HORIZONTAL | Gravity.CENTER_VERTICAL Feb 23 09:38:08 romainguy: i've tried inspecting the matrix afterwards, its greek to me without knowing the inner workings. "postScale: Postconcats the matrix with the specified scale. M' = S(sx, sy) * M", no idea what to do with that info. Feb 23 09:38:08 damn who uses csv to deliver data from the web grr Feb 23 09:38:21 I managed to get them horizontally centered, but doesn't work when there's a hint text Feb 23 09:38:23 fpillet: thanks for the lead i'll have a look right now :) Feb 23 09:38:31 ~a glimmer of hope~ Feb 23 09:38:33 Checking out the source code, I couldn't figure out what I was doing wrong Feb 23 09:38:56 Gaz`: better than using XML! Feb 23 09:39:14 XML is a bit verbose and annoying to parse but atleast its got some meaning Feb 23 09:40:28 sweet im glad android has stringtokenizer, j2me didnt Feb 23 09:41:09 did i tell u about TIGA leeds Feb 23 09:41:12 im in the final :) Feb 23 09:41:20 yeah... Feb 23 09:41:28 someone here who knows well about googletv api? please whisper me Feb 23 09:41:41 shame i cant afford to fly to london, really got to find a way i need to present Feb 23 09:44:32 JSON :) Feb 23 09:48:40 Hello. I have a VideoView and a SeekBar. My activity automatically starts media player to show video. But seekbar doesnt moves while video streams. There is a Thread that controls SeekBar progress. When I debug the seekbar thread, the seekbar works :) But when its running (not debug) it doesnt works. What is the problem??? Here is the code: http://pastebin.com/rLsMj2hq Feb 23 09:48:44 Gaz`: when is it? Feb 23 09:54:12 so should we call it monolog? :) Feb 23 10:00:04 Is there anybody alive? Feb 23 10:01:00 maybe nobody can answer your question Feb 23 10:01:35 Let me look. Feb 23 10:02:41 hi all! i have subclass of Application class, subclass of AsyncTask class and activity. i need change value of control located on activity from subclass of AsyncTask. Is an example of code? Feb 23 10:02:43 musaulker I would use http://developer.android.com/reference/android/widget/ProgressBar.html#incrementProgressBy(int) Feb 23 10:03:11 musaulker or even http://developer.android.com/reference/android/widget/ProgressBar.html#setProgress(int) Feb 23 10:03:55 musaulker: Don't modify the UI from a thread Feb 23 10:04:04 ^ And that to. Feb 23 10:04:18 do an runOnUiThread Feb 23 10:04:23 Or create a handler. Feb 23 10:07:22 hmm ok Feb 23 10:07:31 where there is runOnUiThread also Feb 23 10:07:47 activity Feb 23 10:07:49 actually this is not my code. But I'm searching over it for a solution.. Feb 23 10:07:58 activity_object.runOnUiThread I believe Feb 23 10:08:25 Right here http://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable) Feb 23 10:08:57 just call it because you extend activity. Feb 23 10:09:25 i understood thank you Feb 23 10:09:57 Thanks JoeTheGuest Thanks SimonVT Thanks fpillet Feb 23 10:17:52 how many liniar layouts can i use in one xml? Feb 23 10:17:54 hey ive read the backbutton if gone in the newest android0+ Feb 23 10:17:55 ? Feb 23 10:18:17 You heard wrong Feb 23 10:18:25 The menu and search button is gone Feb 23 10:18:25 Surfer2010 probably as many as you want. Feb 23 10:18:26 hmm.. Feb 23 10:18:32 ahaa Feb 23 10:18:37 oki.. Feb 23 10:18:42 because i get an building error every time Feb 23 10:19:08 Surfer2010 It needs to parse the xml though so load time will be slow. Feb 23 10:19:11 Surfer2010 you can have many..thats prob not ur problem Feb 23 10:20:05 is the toggle button limited to a certain android version? API Level? Feb 23 10:20:24 Surfer2010 I think so. Feb 23 10:20:30 http://d.android.com Feb 23 10:20:31 Go check Feb 23 10:20:42 Surfer2010 you are talking about the sliding one right? Feb 23 10:20:49 yes Feb 23 10:20:56 I'm 99 percent sure that is ICS only. Feb 23 10:21:09 ICS? Feb 23 10:21:19 4.0 Feb 23 10:21:29 SimonVT how do you style your app? any special tool? since doing it element by element takes a while.. is there anythink like "firebug" for android.. to inspect and change the gui Feb 23 10:22:15 I just use styles Feb 23 10:22:17 JoeTheGuest: are you confusing the toggle and the switch? Feb 23 10:22:18 firedroid :D Feb 23 10:22:34 Leeds I asked if it was the sliding one to make sure. Feb 23 10:22:42 so if i'm working in eclipse ... starting a projekt APILevel 7 (Andorid 2.2 or 2.1) Ecplipse will give me the option to use a toggleButton even if i can use it only on Android 4 and higher? Feb 23 10:22:48 SimonVT mm.. me too..right now.. its hard to ge a feel for it.. Feb 23 10:23:12 the designing.. Feb 23 10:23:33 Surfer2010 you need to write some compatibility code to account for it Feb 23 10:23:53 Only 4.0 has the sliding toggle button Feb 23 10:24:05 The on/off toggle button goes back some but I don't know how far. Feb 23 10:24:06 what do you mean Joe? Feb 23 10:24:19 Switch was added in API14.. ToggleButton was not.. Feb 23 10:24:22 compatibility code? Feb 23 10:24:23 Really, just check the dev page Feb 23 10:24:25 It's all there Feb 23 10:24:42 Hm.. Feb 23 10:24:47 Confused now. Feb 23 10:25:26 Surfer2010 yea what SimonVT said. Switch is the sliding toggle, ToggleButton is the on/off one. Feb 23 10:25:54 http://developer.android.com/reference/android/widget/ToggleButton.html says api level 1 Feb 23 10:26:46 Surfer2010 and by compatibility code I mean if you want to use a 4.0 feature, you have to write code that uses that but then you need code account for devices that aren't 4.0. Feb 23 10:27:04 ok Feb 23 10:32:37 ok i found the mistake but it is kind of strange ... Feb 23 10:33:00 i have 4 buttons next to each other and want to adjust the width with the weightSum Feb 23 10:33:29 but doing that i cancel the width = wrap_content thing correct? Feb 23 10:35:02 Just change the button weight, not the weightSum. Feb 23 10:35:20 weightSum = 100 B1 weight=40 b2 weight=20 b3=20 and b4=20 correct Feb 23 10:35:21 I want to know is it possible to run all java applications in jvm to dvm ? Feb 23 10:35:22 width = fill_parent, weight = 1 will evenly space them in a given layout. Feb 23 10:36:11 ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh Feb 23 10:36:18 or are there any limitations in dvm which we should take care ? Feb 23 10:36:36 THANKS !!!! i thought i don't need the "width=fill_parent" at all as soon as i use weight Feb 23 10:37:24 Weight is applied in the orientation of your linearlayout Feb 23 10:37:34 So if your linearlayout is vertical, you need to supply a width yourself Feb 23 10:38:26 erwt: in general, you can't 'just run' java apps on dalvik - mainly because the libraries are different Feb 23 10:38:30 I used a TableView to even the width, myself, when I needed it Feb 23 10:39:10 and then android:stretchColumns="*" Feb 23 10:39:55 weight + fill_parent will fill them evenly. Feb 23 10:40:19 TMTOWTDI ;-) Feb 23 10:40:29 Leeds , i have a written a app in java but i also want it to run on android , so in such case ,wht parameters or options i should look, so that it works properly Feb 23 10:40:38 erwt: graphical app? Feb 23 10:40:51 Leeds, any app Feb 23 10:40:53 that is, does it have a GUI? Feb 23 10:40:59 yes Feb 23 10:41:03 it has Feb 23 10:41:11 then you need to rewrite lots of it Feb 23 10:41:23 Android's entire UI system is different from java Feb 23 10:42:15 hm still not getting it the way i want to ... i got 4 buttons, liniar-horizontal layout Feb 23 10:42:44 and i want 1 button to be ... "20" wide, the next to each 10 wide and the last one the rest Feb 23 10:42:57 im looking for someone who is well into the googletv api... please whisper me Feb 23 10:43:31 so i use weightSum="100" and then ? each button width=fill_content + weight? Feb 23 10:52:42 Leeds ,Do u know things which are common betwn jvm and dvm so that i can face less problems Feb 23 10:56:13 does fastboot support linux kernel with initrd? Feb 23 11:05:07 Hello guys, I want to log with facebook on my android app, such that the login goes through my webserver (yet to build). Or I need a mechanism to be sure that my app has logged in with facebook and the webserver can be sure about that. Feb 23 11:06:13 Maybe theres an Intent offered by the Facebook App? Feb 23 11:06:25 Does anyone knows a popular and well tested way to acheive that? Feb 23 11:07:33 Number5: have you read the FB API doc ? Feb 23 11:07:35 DashCC, well I've read some blogs on the internet, but what i've found is authentication on the device itself using the facebook intent or facebook sdk. Feb 23 11:07:46 sounds good to me Feb 23 11:07:47 lvru, not yet Feb 23 11:07:54 ... Feb 23 11:09:38 hi, I have a problem with POST smth. I use HttpPost class, when I try to send JSON to server I use setEntit(new StringEntity(json.toString())) Feb 23 11:10:11 but it seems like this does not set keyvalue in POST -QueryDict Feb 23 11:11:22 what I mean is that The messege looks like (json : [{}]) Feb 23 11:11:34 from the server point of view Feb 23 11:28:01 hi, i have this: style="?listItem"/> to a Textview Feb 23 11:28:51 when it has a style set, the onclick event wont work Feb 23 11:29:25 how come? Feb 23 11:30:05 if i remove the style attribute it work.. the style attribute does style the Textview correct.. Feb 23 11:30:12 any guesses? Feb 23 11:43:28 where is the android placed, i want change boot, once faild want ti change back Feb 23 11:49:03 i mean android's kernel Feb 23 11:50:58 gd Feb 23 11:51:44 is there a way to record videos longer than 1hrs... my device shows a maximum of 17hrs but always stops after one hour or even earlier ... battery still full. Feb 23 11:51:55 Hi, I've read facebook docs and it says nothing about logging my own app to my own server using facebool account. Does anyone have an idea? Feb 23 11:52:29 is it possible to show progress dialog from subclass of Application class? Feb 23 12:03:43 is the exploded view gone from eclipse now? Feb 23 12:18:54 can using styles interrupt the event handling?? Feb 23 12:19:33 all of the sudden my list wont react when clicked on.. :-/ Feb 23 12:37:32 does anyone know why some code works on the emulator but not on a real device ? Feb 23 12:38:13 Which way would be the best to let an activity to communicate with a background service? The services downloads many large files in the background, independent of an activity. When the user starts the he should see the download progress of these files. So basically I have url, local path, speed, precentage progress, filesize that need to be shown in the ui app Feb 23 12:38:44 xroberx: that's not a very specific question Feb 23 12:39:49 MDijkstra: do you want me to be specific ? ok... I can't change the background drawable of a RadioButton once it is created (on a real device, because on the emulator works) Feb 23 12:39:57 memoryleak: you can perhaps bind to the service in onResume(), en unbind in onPause() Feb 23 12:41:07 MDijkstra: i've reading the specific code in the android sdk, but i see nothing wrong there Feb 23 12:41:07 xroberx: what's the behavior on a real device? Feb 23 12:41:14 nothing happens? Feb 23 12:41:17 jellenagels: binding the service to the activity? Feb 23 12:41:20 MDijkstra: exactly Feb 23 12:41:34 xroberx: which device are you testing on? Feb 23 12:41:40 MDijkstra: SE Xperia Neo V Feb 23 12:42:06 xroberx: hmm, could be hw accelerated rendering vs software Feb 23 12:42:11 in theory Feb 23 12:42:12 memoryleak: yes. http://developer.android.com/reference/android/app/Service.html#LocalServiceSample Feb 23 12:42:23 xroberx: although I don't think that should matter on 2.3 Feb 23 12:42:36 jellenagels: Thanks for the link, that should help Feb 23 12:42:45 np :) Feb 23 12:42:59 which classes should I use to obtain csrf token and POST smth with cookie to server? Feb 23 12:43:17 xroberx: tried on any other device? could be a problem with the Neo. Feb 23 12:43:24 MDijkstra: the thing is that only works if i create a layout xml for the RadioButton (with the background attribute set) and inflate it Feb 23 12:43:32 I have csrf authentication on the server side. Feb 23 12:44:04 xroberx: could be a device specific bug Feb 23 12:44:13 xroberx: but this shouldn't happen, generally Feb 23 12:44:22 xroberx: it could be the theme on the neo interfering Feb 23 12:45:58 MDijkstra: it could be, because it seems to apply some padding to the TextView inside the RadioButton, and the padding does not go away with setPadding Feb 23 12:46:54 xroberx: this problem should go away on android 3.0 Feb 23 12:46:58 but that doesn't help you a lot Feb 23 12:47:09 err Feb 23 12:47:09 4.0 Feb 23 12:48:11 MDijkstra: do you know if the layout inflater does anything specific besides calling the RadioButton constructor with the attributes found in the xml layout file ? I ask you that because it correctly applies the background drawable if inflated from xml as opposed to being created programmatically Feb 23 12:48:51 xroberx: no, I don't know anything about how that works Feb 23 12:48:58 I doubt it, really Feb 23 12:49:56 I think I'll take a look at the compiled xml layout to see if there is any added attribute or something like that Feb 23 12:50:37 this issue is driving me crazy :) Feb 23 13:01:08 hi! I've a problem actually in my program i'm using some ImageButton and would change the Alpha when i click on them but it doesn't change... Feb 23 13:01:17 Hello there, have any of you experience with the mediaplayer part of Android? Feb 23 13:01:28 somebody already had this problem? Feb 23 13:02:02 yannj_fr: depends :) Feb 23 13:02:15 here is my code http://pastebin.com/kF2neGDE Feb 23 13:02:38 Hi. Is there a way to get the com.android.internal.Call instance of a active call? (with a system app) Feb 23 13:03:07 jellenagels : I'm looking for a scheme of how is the mediaplaying handle on the native part, it seems to be split between a mediaplayerservice etc Feb 23 13:03:49 that's the part i don't know anything about :) but you can download the source and checkout the native code? :) Feb 23 13:03:53 lov: figured out why the ACTION_CALL intent did not work... was missing "tel:" from in front of the phone number. lol... Feb 23 13:05:11 jellenagels : I did it, but not 100% clear with how it's done, and also WHY... cause I can see some really strange things Feb 23 13:09:10 does anybody know why this piece of code doesn't change the Alpha of the button? http://pastebin.com/kF2neGDE Feb 23 13:10:06 guigui22: you set the alpha to 255, which is full opaque. is that the behaviour you want ? Feb 23 13:10:41 there is setalpha(20) too .. Feb 23 13:10:41 whoops, didn't read your code well enough. :) Feb 23 13:11:08 jellenagels, yes actually i would like that when i click on my button , it becomes fully opaque Feb 23 13:11:18 guigui22: how about setBackground(getBackground().setAlpha(20)) ? Feb 23 13:11:38 i'm gonna try ;) Feb 23 13:12:22 guigui22: There's no need to call getBackground() Feb 23 13:13:02 guigui22: try one.setAlpha() Feb 23 13:13:11 ok thanks Feb 23 13:14:48 setAlpha for a view is api level 11 and above Feb 23 13:14:53 so not much real use Feb 23 13:15:02 how can i detect if a dialog is visible? Feb 23 13:15:06 unless you work at google :) Feb 23 13:15:27 i do a dialog.show() and i want to get a callback when the dialog is visible in the ui thread Feb 23 13:16:15 xroberx, actually it doesn't change anything :/ Feb 23 13:16:44 I don't understand why it doesn't work... Feb 23 13:20:18 guigui22: maybe you could try to use an alpha animation (http://developer.android.com/guide/topics/resources/animation-resource.html#Tween) Feb 23 13:21:08 ok Feb 23 13:28:42 fuck sauce Feb 23 13:28:50 spinners dont appear to work in popupwindows on ics ... Feb 23 13:38:25 I need to position android views on a map which basically means I need absolute positioning in a layout (on top of that map) Feb 23 13:38:37 AbsoluteLayout works fine for this, but it's rather deprecated :) Feb 23 13:39:25 are there any alternatives? Feb 23 13:40:48 I need answers Feb 23 13:41:01 I've got a few services running in another process Feb 23 13:41:12 but they aren't getting the same permissions as the host process Feb 23 13:44:19 iivvoo: have you looked into overlays? Feb 23 13:44:23 where are my AVDs stored on my mac?? Feb 23 13:44:39 pigsnowball: the harddrive? Feb 23 13:44:50 yeah, the stuff that takes up space... Feb 23 13:45:00 the sdcard file... Feb 23 13:45:20 what are you tyring to do? Feb 23 13:45:26 mikedg no.. btw I'm not talking about google maps Feb 23 13:45:33 it's my own implementation (floorplans) Feb 23 13:45:49 iivvoo: oh, just reimplement absolutelayout then if you want to be safe Feb 23 13:46:11 i need to remove them from time machine, taking up tonnes of space every time i run my emulator Feb 23 13:46:23 mikedg, hmm ok Feb 23 13:48:04 ~/.android/ for future reference.... Feb 23 13:48:09 ~/.android/ for future reference…. Feb 23 13:49:17 where is ~ on windows? Feb 23 13:50:03 depends on version I guess, if ~ is home dir on windows even :-) c:\documents and settings\user\ I guess? Feb 23 13:51:33 hi i tried to change the AlphaValu on my ImageButton hen i click on it… i tried with an alpha animation … but nothing happen… do you know why? here is my code http://pastebin.com/7FKUfVeG Feb 23 14:10:18 Ehm Feb 23 14:10:28 How do I connect to a "remote" adb-server? Feb 23 14:10:39 Is that possible? Feb 23 14:10:57 The port should be forwarded to the device in question, and the ip itself is accessable Feb 23 14:11:27 I've used adb over wi-fi on the device, and just normal adb connect Feb 23 14:11:54 Ah that's the keyword. >_< Feb 23 14:12:08 Thank you sir Feb 23 14:14:17 "the keyword" haha Feb 23 14:14:22 that's literally the only command for connecting Feb 23 14:14:56 hi, is somebody know how could i fill a int table with a random function and any duplicate number? Feb 23 14:15:43 guigui22: your question doesn't make sense. try again. Feb 23 14:15:55 ohh sorry Feb 23 14:15:56 agreed Feb 23 14:15:58 Consider using this class: http://developer.android.com/reference/java/util/Random.html Feb 23 14:16:10 actually i would put some random int in a table Feb 23 14:16:12 guigui22: is this question specific to android, or to java? Feb 23 14:16:18 it sounds an AWFUL lot like a regular java question Feb 23 14:16:20 both Feb 23 14:16:25 in which case you are strongly encouraged to ask in #java Feb 23 14:16:32 ok thanks Feb 23 14:16:38 join #java Feb 23 14:16:43 *sigh* Feb 23 14:17:22 I don't understand how these people find irc Feb 23 14:17:32 I thought we made it hard enough Feb 23 14:18:56 hush :P Feb 23 14:19:13 having questions isn't a problem, asking them in the wrong place or being wilfully clueless is Feb 23 14:20:35 ok, but humor me a second.. the guy is trying to fill an array or something with random integer values Feb 23 14:20:57 and he makes his way to #android-dev on freenode? Feb 23 14:21:24 I am baffled by whatever thought process led to that outcome Feb 23 14:21:27 well he's got other android questions too Feb 23 14:21:35 he just doesn't understand what's an android question and what's a java question Feb 23 14:21:43 and it sounds like english isn't his first language so that doesn't help either Feb 23 14:22:34 which, in my opinion, is all the more reason to try a search engien Feb 23 14:23:01 I am pretty sure there are pages in any language telling you how to get a random integer in java Feb 23 14:23:24 actually i'm in #java as well and the question is legitimate, he wants an array of random numbers, but with no duplicates Feb 23 14:23:34 well, legit for a #java question Feb 23 14:23:44 and as for not wanting duplicates.. (is that what he wanted?) unless you don't know what an array is, how could that require help? Feb 23 14:24:23 it's an easy problem to solve. Feb 23 14:24:47 pretty much by definition, an array is a list with values that are either used or not Feb 23 14:24:49 well, Collections.shuffle() only works for Collections, not arrays, but if you can afford that... not hard to fill a lit with integers from 1 to N and then shuffle them. Feb 23 14:25:06 no I meant using the array as a side list of used values Feb 23 14:25:11 usedValues[N] = x Feb 23 14:25:24 then check to see if (usedValues[N]) before dealing with the collection Feb 23 14:25:28 and dump the array afterwards Feb 23 14:25:44 jesus, why am I humoring this? Feb 23 14:25:51 can't I just be an elitist asshole without reproach? Feb 23 14:25:56 hehe Feb 23 14:27:54 Hello. If I have an application consisting of an action bar (with two navigation tabs) and the rest of the layout consisting in the selected tab fragment, I could just do ft.add(android.R.id.content, mFragment, mTag) at the TabListner and it should display, right? Feb 23 14:29:29 hstefan: sorry, I haven't dealt with fragments before Feb 23 14:30:23 morning Feb 23 14:30:30 root66: neither did I, that's why I'm facing that pain, haha Feb 23 14:30:35 FishFPG: morning Feb 23 14:35:49 Anyone? Feb 23 14:37:36 hello all Feb 23 14:37:45 QubeZ: hey Feb 23 14:37:47 I am having a problem with my build path... between an application project and a test project. Feb 23 14:38:14 Has anyone setup that particular project grouping? Feb 23 14:38:26 Just pushed our first applicaiton to beta.. please see www.todomapr.com and join the beta. Let us know what you think of the application. Feb 23 14:38:52 Plenty of video tutorials to learn how to use it as quickly as possible. Feb 23 14:48:14 I have a test project, and a application project. I'm getting a NoClassDefFoundError when I run the android unit tests hmm... any ideas? Feb 23 14:48:32 do you have proguard enabled? Feb 23 14:54:39 Howdy! Feb 23 14:55:13 I was wondering, how do G+ and Market use the Holo theme on my Android 2.3.3 phone? Feb 23 14:55:57 I only found instructions on how to support both 2 and 4 with their respective themes, but not how to use the holo theme on Android 2 devices. :/ Feb 23 14:56:21 there is no holo theme prior to 3.0 Feb 23 14:56:22 Custom themes Feb 23 14:56:40 So they created a custom theme that looks like the holo theme? Feb 23 14:56:48 yes Feb 23 14:57:14 And I guess they don't share that theme with us? :( Feb 23 14:57:56 It's not a complete holo theme, they just style whatever they need Feb 23 14:58:33 Alright, guess I'll stick with the default themes for now and worry about Holo on 2.x devices later. Feb 23 14:58:38 Thank you for your help! :) Feb 23 14:59:05 Everything holo is in the framework, it's just a matter of copying to your app and applying on pre HC Feb 23 15:02:48 Hello there, is there a way to get strike'd through text on android? Feb 23 15:03:46 Archelaus: yes, using: .getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG Feb 23 15:04:08 before the dot, you need to have your view of course like myTextView.getPaint.... Feb 23 15:04:12 QubeZ, I should have specified, sorry. I want to strike through one part of a large part of text Feb 23 15:04:23 That looks like it strikes through everything Feb 23 15:04:33 right, ok i dont know how to do that Feb 23 15:04:57 I tried using Html.fromHtml("hello") but that didn't work Feb 23 15:10:18 anyone have a galaxy tab 7.0 plus? Feb 23 15:21:18 I have a dialog box pop up the first time the app ever launches. I need them to agree to something but just pressing the back button closes the dialog. Is there a way to make it so it does nothing or closes the app? Feb 23 15:22:21 roger_padactor: you have to override the onBackPressed() method and put your logic in there Feb 23 15:23:57 roger_padactor: have the dialog box non-cancelable, or override the onCancelled method to have it just finish your activity. Feb 23 15:24:17 lov thanks Feb 23 15:24:22 thats a better idea, thanks lov Feb 23 15:24:26 roger_padactor: http://developer.android.com/guide/topics/ui/dialogs.html#DismissingADialog Feb 23 15:29:11 Hello. If I have an application consisting of an action bar (with two navigation tabs) and the rest of the layout consisting in the selected tab fragment, I could just do ft.add(android.R.id.content, mFragment, mTag) at the TabListner and it should display, right? Feb 23 15:32:51 Any chance there's a way to speed up ADB's uploads? Have a biggish apk and it takes forever. Guess it's completely in the hands of the speed of the device's disk? Feb 23 15:34:41 luxurymode: I think it's a function of adb, not the device hardware. I'm not sure there's a way to speed it up significantly. Feb 23 15:35:19 hi all Feb 23 15:35:47 is there any way for me to adjust the positioning of children in a linearlayout without modifying the children themselves? Feb 23 15:36:00 that is, giving them altered layout params Feb 23 15:36:09 i'm operating in a subclass of linearlayout Feb 23 15:36:44 you want to reposition them without modifying layoutparams? Feb 23 15:36:53 there's a measureChild(View, int, int) but I need the index of the child Feb 23 15:37:05 yeah basically... Feb 23 15:37:16 just create space between them based on something Feb 23 15:37:42 It's for the IcsLinearLayout where I draw dividers between child items (tabs, action items) Feb 23 15:38:16 I don't think it can be done without completely overriding onLayout Feb 23 15:38:19 JakeWharton Feb 23 15:38:21 fix my bugs Feb 23 15:38:24 Why can't you just change the margin for example? Feb 23 15:38:46 margarine Feb 23 15:39:05 Shh canadiancow|work, my bug first :p Feb 23 15:39:22 I mean, I probably could but it would have to be done on each measurement since you could change what's visible in an action item which would change whether or not a divider would be drawn Feb 23 15:39:49 Ah, hm :F Feb 23 15:39:53 it'd be nice if measureChild gave me an index Feb 23 15:39:57 then I could do that very trivially Feb 23 15:40:43 ... Feb 23 15:40:45 JakeWharton_: indexOfChild(View) ? :p Feb 23 15:40:46 that was my home computer Feb 23 15:40:49 lol Feb 23 15:40:58 hmmm Feb 23 15:40:59 canadiancow is still online :) Feb 23 15:42:19 AND HE'S BACK Feb 23 15:45:23 SimonVT, didn't appear to work :-/ Feb 23 15:45:37 ;/ Feb 23 15:46:35 Hi, is there any way in which an activity can change the "back stack"? For example: A, B, C, D, now D wants to know if B is in the stack, and if it is, finish D, C, B (and pop them out of the stack). Feb 23 15:46:41 hi, where i can ask for an android question? (i need to change the "scaletype" for an image directly on java code?) Feb 23 15:47:07 measureChild is never called Feb 23 15:47:18 Wut? Feb 23 15:47:29 aleb, you need the FLAG_ACTIVITY_TOP flag on the intent Feb 23 15:47:54 aleb: no, you cannot manually change the stack. You can use flags to specify how your activity is launched, and use task groups. Feb 23 15:48:37 JakeWharton_, I only want to pop part of the stack, not set a new top. Feb 23 15:49:40 JakeWharton_: Huh, you're right. LinearLayout has its own measuring methods Feb 23 15:50:34 JakeWharton_: It calls through to measureChildWithMargins Feb 23 15:50:37 Would that work? Feb 23 15:51:08 Bartoloni, search for "Android ImageView scaletype" and you'll find http://developer.android.com/reference/android/widget/ImageView.html Feb 23 15:51:20 JakeWharton, CLEAR_TOP Feb 23 15:51:38 and aleb, it it doesnt "set a new top" Feb 23 15:51:45 it clears back to whatever activity you're starting Feb 23 15:52:47 canadiancow|work, yes, how do I clear the stack back up to only activity B? Feb 23 15:53:11 FLAG_ACTIVITY_CLEAR_TOP in your intent Feb 23 15:54:01 SimonVT, yeah that one seemed to work Feb 23 15:55:32 sweeeeeeeet Feb 23 15:55:47 SimonVT, you said your bug wasn't a bug a week or two ago right? Feb 23 15:56:08 JakeWharton_: Yeah. It worked when I implemented it, git pull broke it Feb 23 15:56:43 canadiancow|work, FLAG_ACTIVITY_CLEAR_TOP clears the entire stack, I want to clear only part of it Feb 23 15:57:02 it clears back to the previous version of the activity you are going to Feb 23 15:57:04 no Feb 23 15:57:06 it fucking doesnt Feb 23 15:57:10 ok Feb 23 15:57:16 youve asked a question Feb 23 15:57:20 and two people have given you the same answer Feb 23 15:57:26 that probably means its the right one Feb 23 15:57:38 aleb: If you have A B C D and start B with CLEAR_TOP, your stack will now be A B Feb 23 15:57:43 Bartoloni, setScaleType() ? Feb 23 15:58:05 aleb: you will actually have a negative stack. If you have A B C D and start B with CLEAR_TOP, you will travel backwards in time. Feb 23 15:58:29 *whoosh* Feb 23 15:58:45 make sure that you pass an extra key/value of SPEED / 88 Feb 23 16:00:04 awesome, it seems to work "on top of it" means "after it", not "before it"... http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_CLEAR_TOP Feb 23 16:00:05 POWER / (java.lang.JiggaWatts)1.21 Feb 23 16:00:06 thanks! Feb 23 16:01:28 http://cdn2.ubergizmo.com/wp-content/uploads/2011/09/05-Nike-MAG.jpg Feb 23 16:01:47 http://www.ubergizmo.com/2011/09/nike-mag-shoes-back-to-the-future-2-auction/ Feb 23 16:02:37 i think i hear Huey Lewis and the News in the background. Feb 23 16:03:08 moonlightcheese those came out a while ago. Feb 23 16:03:12 Sold on ebay for charity. Feb 23 16:03:28 ... Feb 23 16:04:09 KiD CuDi bought like 4 of them Feb 23 16:05:09 I forgot I had CI running on ABS today Feb 23 16:05:18 got a bunch of emails when a push failed the build Feb 23 16:05:53 I didn't even think I had set up the hooks for that yet Feb 23 16:06:49 thx JakeWharton_ Feb 23 16:07:07 Got my first crash report: http://pastebin.com/Fb1fWH8f ...I kind of understand the problem, and have fixed it by putting android:configChanges="orientation|keyboardHidden" Feb 23 16:07:16 in my manifest/activity Feb 23 16:07:23 But is that really the way to do it? Feb 23 16:08:24 probably not Feb 23 16:08:30 but pastebin is broke so i can't tell Feb 23 16:08:49 eh Feb 23 16:09:01 so you're hitting the network in an AsyncTask I assume? Feb 23 16:09:10 Are you calling show() / dismiss() on your dialogs manually? If so, don't do that Feb 23 16:09:17 Yes I am SimonVT Feb 23 16:09:27 showDialog() / dismissDialog() Feb 23 16:10:47 JakeWharton: yeah, but problem is that I dismiss a dialog in an ASyncTask when it is reloading the activity Feb 23 16:11:26 JakeWharton: for the user in question it was because he is using a keyboard that automatically puts it in landscape/portrait depending on if he got his keyboard out Feb 23 16:11:48 yeah i understand what you're doing Feb 23 16:11:56 there's a couple ways to fix it Feb 23 16:11:59 some being better than others Feb 23 16:12:13 handling config changes will work, but it's not at the top of that list Feb 23 16:12:15 SimonVT: thank you, I'll check those functions Feb 23 16:13:20 My #1 way of handling progress dialogs when doing networking: Don't use them Feb 23 16:13:22 =) Feb 23 16:14:46 ugh Feb 23 16:14:48 bugs Feb 23 16:15:01 SimonVT: What would you do instead to lock the screen until stuff has loaded? I thought "Well, dialog seems easy and does the trick!" Feb 23 16:15:20 Seems those functions are deprecated though Feb 23 16:15:42 I show an indeterminate progressbar somewhere in my layout Feb 23 16:15:50 Yeah, they're deprecated in favor of dialogfragment Feb 23 16:15:50 JakeWharton: what would you say is "at the top of that list"? :-) Feb 23 16:16:10 I just really dislike locking the screen Feb 23 16:16:11 some kind of service + even bus Feb 23 16:16:14 *event Feb 23 16:17:01 JakeWharton_: you driving the bus? Feb 23 16:17:23 He drives the uneven bus Feb 23 16:18:42 JakeWharton: Ah, well I will save some time for now, but will look into doing it through a service later Feb 23 16:18:43 i don't know what the best way is Feb 23 16:18:52 not an async task with a hard reference to the activity Feb 23 16:20:21 is there anyway to know when its the first time an android program is run after and update? Feb 23 16:21:36 See if you can get the versioncode (probably very easy) and just store it Feb 23 16:21:57 First start: Just check sharedpreferences for a bool.. Feb 23 16:22:04 ^^^ Feb 23 16:22:16 Update: save versioncode in sharedpreferences, check the value Feb 23 16:25:00 freaking menu invalidation Feb 23 16:25:04 everything is running fine Feb 23 16:25:07 but nothing shows up Feb 23 16:25:18 JakeWharton_: i cant get a spinner to not crash in a popupwindow Feb 23 16:25:21 can you fix thanks Feb 23 16:25:27 JakeWharton_ are you done with your old job then? Feb 23 16:25:30 tomorrow Feb 23 16:25:44 but you're working on android at work now? Feb 23 16:26:03 mikedg, http://developer.apple.com/iphone/ Feb 23 16:26:09 canadiancow|work, .........no? Feb 23 16:26:11 :D Feb 23 16:27:04 the iphone is not helping me :( Feb 23 16:33:34 what are the typical drivers like in android? all open-source or are they closed binaries? Feb 23 16:34:12 OEMs are usually closed Feb 23 16:35:17 any notable exceptions? I am looking for a phone to get, but really would like to use it properly, i.e. modify Feb 23 16:35:44 galxay nexus Feb 23 16:36:23 fuck balls Feb 23 16:36:24 seriously Feb 23 16:36:24 https://www.airmiles.ca/arrow/Splash?splashId=13300080&changeLocale=en_CA Feb 23 16:36:30 Download it for FREE today! For iPhone®† and Blackberry®‡. Feb 23 16:36:40 are they stupid? Feb 23 16:36:41 galaxy nexus indeed Feb 23 16:36:43 or just stupid Feb 23 16:36:48 SimonVT, http://i.imgur.com/4F1UT.png Feb 23 16:36:56 nexus is open? Feb 23 16:37:08 JakeWharton what? Feb 23 16:37:14 nexus is as open as you're going to get Feb 23 16:37:25 canadiancow|work what? Feb 23 16:37:35 whats the image Feb 23 16:37:39 a vsiible view? Feb 23 16:37:44 except it's not there Feb 23 16:38:03 JakeWharton_: Wut? Feb 23 16:38:09 wat Feb 23 16:38:13 that's what's blocking your bugs Feb 23 16:38:20 the fscking menu view won't show up Feb 23 16:38:23 I mean, the icon of the menuitem is not shown. The text is Feb 23 16:38:24 despite being properly rendered Feb 23 16:39:00 I've spent two days on this one bug Feb 23 16:39:41 JakeWharton_: spend some time on my bug Feb 23 16:39:43 thanks Feb 23 16:39:46 2 days should be good Feb 23 16:40:01 mikedg, http://developer.blackberry.com Feb 23 16:40:04 lol Feb 23 16:40:10 that doesnt help though Feb 23 16:40:35 all I can seem to find is some variant of 'binaries for nexus phones' etc... where can I find the source? Feb 23 16:40:45 s.android.com Feb 23 16:41:33 did anyone else get a farmville plushie? Feb 23 16:41:46 no fuck you and your farmville2 plushies Feb 23 16:41:57 i think it was only for the first version mikedg Feb 23 16:42:20 the farmville2 plushies don't come out until autumn Feb 23 16:44:41 mikedg for serious? Feb 23 16:44:47 you commented on it before i even posted it here Feb 23 16:45:15 Can you send a message from onProgressUpdate() to doInBackground() (AsynTask)? Feb 23 16:45:53 huh Feb 23 16:45:59 commented on what? Feb 23 16:46:04 my photo Feb 23 16:46:13 Mike DiGiovanni - Clearly they are making Farmville2 Feb 23 16:46:13 11:44 AM Feb 23 16:46:17 i commented like 2 minutes ago Feb 23 16:46:27 im so confused Feb 23 16:46:27 that's a different guy Feb 23 16:46:30 you commneted half a second after i uploaded it Feb 23 16:46:43 all i do is sit on google plus Feb 23 16:46:54 JakeWharton: top photo at https://plus.google.com/115750341222356983405/posts Feb 23 16:46:55 lol Feb 23 16:46:57 i was fired after roundarch got purchcased Feb 23 16:46:58 i cant link to non-public photos Feb 23 16:47:01 now i just sit on google plus Feb 23 16:47:04 is there a downside to deploying apps built in debug mode? besides noise in the logs and some file bloat? potentially less stable? Feb 23 16:47:19 easier to pirate? Feb 23 16:47:31 Build with a debug key and can't be uploaded? Feb 23 16:47:33 easier to reverse engineer? ;) Feb 23 16:47:54 mandric: your users can debug the apps! Feb 23 16:48:10 free QA Feb 23 16:48:23 that's what i'm aiming for Feb 23 16:48:31 fu edittext, respect my InputType Feb 23 16:53:08 anyone having trouble uploading apks to the market right now? Feb 23 16:55:51 11:48 < t432> Can you send a message from onProgressUpdate() to doInBackground() (AsynTask)? Feb 23 16:55:56 t432: what are you trying to do? Feb 23 16:57:59 When doInBackground does its stuff and sends to onProgressUpdate()...can I call the doInBackground from onProgressUpdate() to execute another set of instruction? Feb 23 16:58:59 onProgressUpdate is supposed to be called within doInBackground during processing Feb 23 16:59:07 that is, before it has completed Feb 23 16:59:31 for something that occurs after processing you want onPostExecute Feb 23 16:59:37 I think i need the onPostExecute() Feb 23 16:59:38 nvm Feb 23 16:59:44 Yep Feb 23 17:09:06 one question: how can I retrieve from a view the pixels in which it is being painted Feb 23 17:09:20 onDraw gets a Canvas Feb 23 17:11:49 so can I get that from the canvas? I implemented dragging for some images in the custom view but I want to allow to drag only whitin the view Feb 23 17:30:08 hi. i need help. i want a list activity that is populated statically. i have to use an adapter. is there an easy way to populate that list from a xml file? Feb 23 17:30:31 boooh: res/values/arrays.xml Feb 23 17:30:43 boooh: google 'list' and 'arrays.xml' and it should show you some example code Feb 23 17:30:55 ok thank you. Feb 23 17:33:38 boooh: this is literally the listview tutorial Feb 23 17:35:18 yes, but what if i want to launch a different intent for every element when clicked? Feb 23 17:35:40 handle onListItemClicked or whatever Feb 23 17:35:49 I would like implement some authentication between WWWserver and app. What class should I use? I mean that in app I could type login and password and it will be verified by server after so that i can export data from android. What classes should I use? Feb 23 17:35:49 ah ok Feb 23 17:36:05 that was easy. sorry for the silly question. Feb 23 17:36:08 :) Feb 23 17:36:09 chocimir: that's a really, really open ended question. Feb 23 17:36:21 chocimir: that's sort of like saying "Hey guys I'd like to make an app, how do I do it?" Feb 23 17:36:50 chocimir: what type of authentication do you want to use? Is this going to be a custom format? Are you going to be doing this over http or something else? Feb 23 17:36:53 chocimir: use String Feb 23 17:37:00 chocimir: do you even know how to design client/server authentication in general? Feb 23 17:37:08 heck, do you even know how to design client/server communication? Feb 23 17:37:17 mikedg: just use Object and derive everything else Feb 23 17:39:05 hello can I design my own buttons? and if so how/where do i do that? Feb 23 17:39:13 photoshop Feb 23 17:39:48 Surfer2010: create a 9-patch png, set it as the button's background image. Feb 23 17:39:57 if you want to do something more interesting, subclass button and start chipping away. Feb 23 17:40:08 you may also wish to look into statelistdrawable Feb 23 17:40:37 because i want to have a triangular button ;) Feb 23 17:40:58 ... ok! My suggestions still stand,. Feb 23 17:41:02 what's stopping you? :) Feb 23 17:41:29 do i have to install the 9-patch tool? Feb 23 17:41:51 well...technically no Feb 23 17:41:55 but since it comes with the sdk Feb 23 17:41:59 if you're planning to do ANY development...yes Feb 23 17:42:14 Surfer2010: it's in 'tools' iirc. Feb 23 17:44:46 same proceedure to build a triangular button with a "light" in it turning red/green on certain conditions ? Feb 23 17:45:10 .... Feb 23 17:45:16 12:41:06 < lov> ... ok! My suggestions still stand,. Feb 23 17:45:24 12:39:56 < lov> Surfer2010: create a 9-patch png, set it as the button's background image. Feb 23 17:45:27 12:40:16 < lov> you may also wish to look into statelistdrawable Feb 23 17:45:36 that's kickworthy right? Feb 23 17:45:38 3 copypasted lines Feb 23 17:45:44 lol ... well i didn't know if it is possible ... well never mind i just figured it was a studpid questions :D Feb 23 17:45:55 Yeah, ban that lov fella Feb 23 17:46:28 /ban Surfer2010 LAWL Feb 23 17:46:30 oh hmm. Feb 23 17:46:34 eh, nevermind. Feb 23 17:47:53 no i was saying to kick lov Feb 23 17:48:06 what did he do Feb 23 17:48:39 huh, bump wants a scala developer... Feb 23 17:49:21 http://www.ventureloop.com/ventureloop/jobdetail.php?r=f_in&jobid=82277 Feb 23 17:49:43 * pfn ponders what bump is gonna do... Feb 23 17:54:59 lov: I know how to design client server communication. Now I POST JSON to server (HttpPost class) to call some function there. But the problem is that there is functions which can be called only by authenticated, logged users. Feb 23 17:55:18 chocimir: ok, so you're going to have to figure out how that server handles authentication./ Feb 23 17:55:26 Is it via Http basic auth? Feb 23 17:55:29 is it via cookies? Feb 23 17:55:35 is it via some other session variable? Feb 23 17:55:43 lov: cookies. it requierd csrf token Feb 23 17:55:59 in that case do the login request, get the cookie, store it, and use it in further communication. Feb 23 17:57:27 lov: yes, If I have cookie, rest seems to be easy. Because server will be recognize me. Feb 23 17:58:12 there is different between java and android because android does not use URLConnection class. Feb 23 18:00:26 I have one more problem. I send msg via POST to server. Basically, I use smth like that HttpPost.setEntity(json.toString()) Feb 23 18:02:30 and server gets it, but when i look into QueryDict which server gets. It is like {'json.toString':[{}]} Feb 23 18:02:57 so setEntity set only key, not value in QueryDict. Feb 23 18:03:35 Idk, if what i mean is understandable... Feb 23 18:04:24 chocimir: Android has HttpURLConnection. Feb 23 18:04:29 chocimir: so you're wrong about that. Feb 23 18:05:06 chocimir: also, your JSON object's toString implementation isn't to flatten out the content. Use another method. Feb 23 18:09:11 lov: i use JSONObjcect class it has some default which is ok. I would get smth like that {'data': [json.toSting()]} in POST QueryDict. Feb 23 18:10:00 oh, huh. Feb 23 18:10:00 time for a new job Feb 23 18:10:04 toString does actually work correctly Feb 23 18:10:06 birbeck: oh? Feb 23 18:10:19 our company just announced the product today that i spent 6 months building Feb 23 18:10:47 and instead of any android coverage, they only show static images of a concept ios app Feb 23 18:10:48 chocimir: Can you verify what you're actually sending to the server via the debugger? Call toString, save it in a String, then pass that to your post entity. Use the debugger to inspect the string. Feb 23 18:11:04 the only android screenshot is a poorly photoshopped pic on an htc hero Feb 23 18:11:06 chocimir: inspect the JSONObject as well, make sure you're actually populating it properly Feb 23 18:11:17 birbeck: welcome to marketing Feb 23 18:12:02 lov: when i wrote server gets {'json.toString() /* --> this is result of this method so it is ok*/': [{}] Feb 23 18:12:28 chocimir: I understand that. Feb 23 18:12:40 but i cannot parse it because server wants to get {'data': [msg /* json.toString() */} Feb 23 18:12:42 chocimir: I'm suggesting that you inspect the JSONObject itself in the android app, and see whether it actually contained the content you want Feb 23 18:12:46 birbeck: I spent a year working on code only to have us acquire a company that does 10% of what I wrote (with a 20 person team behind their crap no less) so we're "just going to go with that" Feb 23 18:12:56 birbeck: "give them your code, maybe they'll use it" Feb 23 18:12:57 lov: yes I checked it, and it is ok. Feb 23 18:13:10 chocimir: interesting. Feb 23 18:13:21 chocimir: and you verified that the toString output is actually what you expect? Feb 23 18:13:27 i.e. the httppost hasn't transformed it somehow Feb 23 18:13:30 asdf Feb 23 18:13:34 When does the io2012 registration starts Feb 23 18:13:38 yhpark: never Feb 23 18:13:41 cancelled this year Feb 23 18:13:42 sorry Feb 23 18:13:48 t_t Feb 23 18:14:09 (D^_^)=D Feb 23 18:15:05 hello Feb 23 18:15:31 i ve a short question Feb 23 18:15:49 in java (android) Feb 23 18:16:07 lov: I tried like this msg = json.toString(); httpPost.setEntity("data="+msg) and it works. Server gets {'data': [msg]} Feb 23 18:16:39 so is it good way to send key-value dict? Feb 23 18:16:58 it seems to be strange. Feb 23 18:17:03 chocimir: There's some class that allows you to actually build your message and properly handles different key/value pairs Feb 23 18:17:04 dragorn: my product just inked a deal for 9 figures, has been demoed all across the world to the top banks and mobile companies Feb 23 18:17:12 i.e. data=abc&foo=xyz Feb 23 18:17:31 birbeck: can i have a few bucks Feb 23 18:17:32 and design gets all the props for the static concept ios images they made Feb 23 18:17:54 mikedg: umm, i dont get a penny, not even an ounce of appreciation Feb 23 18:18:04 birbeck: I work in r&d, I don't think I've seen a project go to product in 6 years... except the stuff I got yelled at because "it has no customer purpose", then engineering "came up with the idea themselves" and wrote it all from scratch :P Feb 23 18:18:07 oh sounds like us Feb 23 18:18:10 they just congratuated the design and marketing folks Feb 23 18:18:31 lov: do u know which one? Feb 23 18:19:12 chocimir: not offhand, sorry. Feb 23 18:19:19 i will make the screen vertical Feb 23 18:19:32 Hourmin: good for you! Feb 23 18:19:38 Hourmin: if you have a question, try writing it all at once Feb 23 18:19:40 instead of Feb 23 18:19:41 writing it Feb 23 18:19:42 out Feb 23 18:19:45 like Feb 23 18:19:45 and i will chose the horizontal screen of false Feb 23 18:19:47 this Feb 23 18:20:06 sry i am from germany my englisch is not so well Feb 23 18:20:40 Hourmin: translate.google.com :> Feb 23 18:20:51 no Feb 23 18:21:01 the grammar is FUUUUUUU by google translate Feb 23 18:21:05 lov: thank you very much. But Idk if it is clear what i meant :) Feb 23 18:21:37 chocimir: I understand what you mean, I just do not know offhand what class to use. Feb 23 18:21:50 lov: and when I am using this HttpUrlConnection, this is communication via POST, isnt it? Feb 23 18:22:01 ok i have maked a picture is the xml file then i will make the picture vertical because the game atmosphere . Feb 23 18:22:10 in xml file ^ Feb 23 18:22:13 chocimir: if you actually set it as a POST request, yes. Feb 23 18:24:35 pls HELP Me Feb 23 18:24:42 have here any person join me ? Feb 23 18:24:46 then watch Feb 23 18:24:58 sounds kinky Feb 23 18:25:17 haha Feb 23 18:25:21 hahaha :D Feb 23 18:25:24 Hourmin: sorry, I don't understand your question Feb 23 18:25:38 then you come of my screen Feb 23 18:25:38 Hourmin: you can have different resources in drawable-layout and drawable-portrait Feb 23 18:25:47 *snrk* Feb 23 18:25:54 with join.me Feb 23 18:25:57 .com Feb 23 18:26:55 lov: in this solution with setEntity("data="+msg) server gets {'data':[msg]} but it is strange, casue in msg could be another foo=bar and it spoils this dict. Feb 23 18:27:21 I'm using a FragmentPagerAdapter. How do I know when a fragment is shown to the user. The callback don't seem to work because they are called by the adapter beforehand Feb 23 18:27:25 i.e. if user put some bad msg. Feb 23 18:31:07 hm Feb 23 18:32:07 i will have the screen horizontal Feb 23 18:32:13 but now is vertical Feb 23 18:34:51 lov: how can i figure out if server supports http basic Authentication (http://www.ietf.org/rfc/rfc2617) Feb 23 18:35:55 o_O Feb 23 18:36:04 ask it politely Feb 23 18:36:05 idk, go browse it and see if it asks you for your credentials? Feb 23 18:36:24 if it redirects you to a 304 or whatever Feb 23 18:36:37 i can't remember the status code for authorization required Feb 23 18:36:53 I know there's setContentView, but how would I get the current ContentView? Feb 23 18:37:17 what Feb 23 18:37:29 you should cache it, but, getWindow().getDecorView().findViewById(android.R.id.content).getViewAt(0) should work Feb 23 18:38:01 or, you know, just findViewById's whatever you're looking for Feb 23 18:38:06 since that's probably what you're asking Feb 23 18:38:19 cache the result of that as well Feb 23 18:39:47 getWindow().getDecorView().findViewById(android.R.id.content)).FLAG_HORIZONTAL; Feb 23 18:39:48 so Feb 23 18:40:03 o_O Feb 23 18:40:17 what are you trying tod o Feb 23 18:40:45 i will know this Feb 23 18:40:45 is that like View.FLAG_HORIZONTAL? (assuming it's in View) Feb 23 18:41:04 VIEW.HORIZONTAL ? Feb 23 18:41:22 HALP I DUN KNOW WATS HAPPNING Feb 23 18:41:28 I think he's trying to specify whether a view is horizontal or vertical but he doesn't speak english and we don't speak german :( Feb 23 18:41:31 Hourmin, what are you trying to do? Feb 23 18:41:39 ah Feb 23 18:41:41 ok Feb 23 18:41:45 I was confused Feb 23 18:41:49 i will trying the screen horizontal Feb 23 18:42:01 for a mini game Feb 23 18:42:16 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); Feb 23 18:42:32 i try Feb 23 18:42:32 or http://developer.android.com/guide/topics/manifest/activity-element.html#screen Feb 23 18:43:01 or specify in the AndroidManifest.xml like lov said Feb 23 18:44:23 YEAH Feb 23 18:44:25 thanks so much Feb 23 18:48:36 thanks so much Feb 23 19:12:45 http://i.imgur.com/RoYuh.jpg Feb 23 19:13:30 ahaha Feb 23 19:14:07 the wings are the best part Feb 23 19:24:16 Hey y'all. How can I get a reference to a base activity from within a Widget? Obviously, my widget inherits from AppWidgetProvider, so I'm not sure how I can get good stuff out of my main app's base class from it? Feb 23 19:24:31 ok i must off Feb 23 19:24:39 Cu all Feb 23 19:28:30 Is there a way for me to get a reference to the main Activity instance from a widget? Feb 23 19:28:46 no Feb 23 19:29:18 whose to say the activity is even running? Feb 23 19:29:23 *who's Feb 23 19:29:58 Right, yeah. Feb 23 19:30:03 Okay -- that's what I thought. Feb 23 19:30:06 Chronax: you might want to try to bind to a service, or something. Feb 23 19:30:07 Use a service or osmething Feb 23 19:30:11 Right. Feb 23 19:30:15 Thanks, guys. Feb 23 19:33:31 hmm, good thing its possible to return a kindle book for refund; some of these conversions are *so fucking bad* i'm convinced some perl developer did it Feb 23 19:33:50 haha Feb 23 19:34:23 you can return kindle books? Feb 23 19:34:37 i see a button here for refund if its within 7 days Feb 23 19:34:49 sorry b&n, but it looks like you're not in the running whenever my nook gets too old Feb 23 19:35:06 yeah you have a decent window Feb 23 19:35:08 30min? Feb 23 19:35:11 not to mention their catalog (content as well as experience) is terrible Feb 23 19:35:13 wait Feb 23 19:35:15 7 days? Feb 23 19:35:18 holy crap Feb 23 19:35:29 g00s: is this one of the publisher-set options or does it apply to any book? Feb 23 19:35:32 if you read fast you could never have to pay Feb 23 19:35:52 http://www.amazon.com/gp/help/customer/display.html?nodeId=200144510&#books Feb 23 19:36:11 any book Feb 23 19:36:17 i used to do it all the time Feb 23 19:37:09 also, remember amazon does ban people from their service Feb 23 19:38:28 g00s: it's probably something where the publisher wants an ebook, but doesn't want to try making it themselves, or even copyediting it whatsoever, so they press the "MAEK EBOOK" button and just stick it up there. Feb 23 19:38:41 sight unseen Feb 23 19:38:52 heh, indeed. or maybe they contract amazon to do it for them Feb 23 19:39:34 right, which is basically pressing the "MAEK EBOOK" button Feb 23 19:39:41 I can't imagine amazon actually hires copyeditors Feb 23 19:42:22 looks like Jhs is being shown the door Feb 23 19:42:24 *Jha Feb 23 19:42:53 evancharlton: yeah, theverge is pretty good :D Feb 23 19:43:11 i dig the verge Feb 23 19:43:41 oh man, a new EOS 5d next week maybe Feb 23 19:44:00 this is what I have been waiting for Feb 23 19:44:32 g00s: 5d-m3? Feb 23 19:44:40 dammit Feb 23 19:44:48 I just bought new gear Feb 23 19:44:48 http://www.theverge.com/2012/2/23/2819187/canon-eos-5d-mark-III-announcement-rumor Feb 23 19:44:51 damn you Canon #!$ Feb 23 19:44:58 rumor :) Feb 23 19:45:09 I want an Mk III :p Feb 23 19:45:36 romainguy_: OKAY FINE. I'll take your old gear off your hands so you have room in your camera bag Feb 23 19:45:43 I'll even do it for free Feb 23 19:45:51 I'm pretty happy with my 5d2, probably wouldn't jump on the 3 Feb 23 19:45:51 dude Feb 23 19:46:01 romainguy_: i'm reading david duChemin's books, they are very well done. Feb 23 19:46:01 I'm keeping the Mk II if the III is worth it :p Feb 23 19:46:25 romainguy_: I'll take your camera bag if you don't have room in your camera bag. It will free you up to buy a new camera bag. Feb 23 19:46:55 lov: yo dawg i herd romainguy_ likes camera bags Feb 23 19:47:17 totally not a yo dawg suggestion >:| Feb 23 19:47:24 yo dawg Feb 23 19:47:28 i heard you like hamsters Feb 23 19:47:35 and squirrels Feb 23 19:47:45 ... Feb 23 19:48:25 dogs like tiny animals Feb 23 19:48:29 * g00s sent email to focus press reminding them their kindle ebook was abysmal ;) Feb 23 19:50:17 How come when I setContentView to a layout I was just on, all of the values reset? Feb 23 19:50:38 because you are replacing every view Feb 23 19:51:36 shrug Feb 23 19:52:02 Also, don't use setContentView to "switch screen" Feb 23 19:52:36 I am looking for a hook such that when my app returns to the foreground, for example switching between apps - that I am able to pop up a login activity before displaying where the user left off. Any pointers/suggestions? Feb 23 20:00:22 what's a synonym for "bounding box"? Feb 23 20:00:32 * abaratican needs a super awesome method name, and boundingBox is not it. Feb 23 20:01:48 what does the method do ? Feb 23 20:01:49 powerWordBarrier Feb 23 20:01:57 hhaha Feb 23 20:01:59 like :D Feb 23 20:02:03 Regulation Rectangle Feb 23 20:02:12 DashCC: gives the rectangle that encloses two others that are provided. Feb 23 20:02:14 Murder Container Feb 23 20:02:18 abaratican: bbox? =P Feb 23 20:02:28 WindowToHeaven Feb 23 20:02:31 hahaha Feb 23 20:02:35 bbox, excellent Feb 23 20:02:36 killzone Feb 23 20:03:39 ... so on android you really can't query the equalizer unless you attach it to a running mediaplayer instance? or have I gotten something totally wrong? Feb 23 20:04:00 (query = find out the supported parameters, number of frequency bands/range etc) Feb 23 20:04:40 maybe I could just create like an empty AudioTrack and attach it to that Feb 23 20:05:17 I'll go with regulationRectangle, sounds like the easiest of these to type. Feb 23 20:05:23 haha Feb 23 20:06:13 storkme: you may as well. Feb 23 20:06:28 storkme: ask VJTachyon when he shows up. Feb 23 20:06:35 will do, cheers. Feb 23 20:11:56 seems convoluted, I'll just leave setting it until audio starts playing Feb 23 20:15:41 you know whats annoying? dead code warnings Feb 23 20:16:12 almost as annoying as dead code. Feb 23 20:16:48 solved by dead programmers Feb 23 20:17:00 if (PAID_VERSION) { doX(); } else { doY(); } Feb 23 20:17:04 PAID_VERSION is static final Feb 23 20:17:04 reanimated code is bad too Feb 23 20:17:09 so it says it's dead code Feb 23 20:17:13 and in a sense it is Feb 23 20:17:17 but not really Feb 23 20:17:38 well Feb 23 20:18:01 just set a note to the compiler to ignore that warning Feb 23 20:20:00 That warning is punishment for not giving away your application for free. Feb 23 20:21:03 Hey guys, when implementing a view adapter, what should I return from getView() when an invalid position is passed in? Feb 23 20:21:26 that shouldn't ever happen Feb 23 20:21:34 "a view adapter" Feb 23 20:21:35 because you're overriding getCount :) Feb 23 20:22:35 jayd16: hello.jpg Feb 23 20:22:41 lov: but you can only ignore at the method level Feb 23 20:22:49 i want to ignore a specific if block or something Feb 23 20:23:00 except it can happen because code isn't perfect and I have no control over the whether that the caller is written correctly Feb 23 20:23:13 canadiancow|work: put your lameo code in a method them Feb 23 20:23:16 then* Feb 23 20:23:23 so much :( Feb 23 20:23:30 "invalid position"? Feb 23 20:23:32 that's not what she said :( Feb 23 20:23:35 jayd16: are we talking about making your own Adapter ? Feb 23 20:23:39 A position that's <0 or >getCount? Feb 23 20:23:46 >= * Feb 23 20:23:56 whatever :p Feb 23 20:23:57 canadiancow|work: why not just put the check for paidversion in a method? Feb 23 20:23:59 burn the pedant Feb 23 20:24:01 storkme: yes Feb 23 20:24:12 abaratican: if i have a method: boolean isPaid() Feb 23 20:24:14 that will be way too easy to hack Feb 23 20:24:15 :P Feb 23 20:24:31 jayd16: well, you kind of have to assume the AdapterView is gonna fill it's part of the bargain, otherwise the concept of an adapter kinda goes out the window Feb 23 20:24:32 oh i see what you're saying Feb 23 20:24:35 proguard will still inline it Feb 23 20:24:35 simonVT: yes Feb 23 20:24:41 hmmmmmmmmm Feb 23 20:25:02 boolean snausagesAreYummy() { return isPaid; } Feb 23 20:25:13 storkme: so theres no standard to apply to? Its just undefined in the spec? Feb 23 20:25:45 it's pretty well defined in the spec in that getView is only going to get called with the appropriate position parameters Feb 23 20:25:51 abaratican: well when it returns false someone will immediately know what's up :P Feb 23 20:26:09 jayd16: you should never get a view at an index < 0 or > your count Feb 23 20:26:20 jayd16: period Feb 23 20:26:22 >= your count* Feb 23 20:26:30 [15:23:46] >= * Feb 23 20:26:42 jayd16: Good news is, that wont happen Feb 23 20:27:04 the two most common errors in computer science are off by one errors. Feb 23 20:27:18 lol Feb 23 20:27:22 that made me laugh Feb 23 20:27:24 har har Feb 23 20:27:37 i mean if you're gonna get all tin-foil hat you might as well do sanity checks on the other arguments.. making sure the ViewGroup isn't null, making sure the View is of an appropriate type, making sure Context passed in the constructor isn't null, etc etc Feb 23 20:27:49 So wait…how can that be guaranteed? getCount and getView are always called atomically? Feb 23 20:28:09 check the source code of whatever AdapterView you like and see for yourself Feb 23 20:28:13 abaratican: ha Feb 23 20:28:23 jayd16: er Feb 23 20:28:50 jayd16: your adapter will probably not be called by more than one thread at once. Feb 23 20:29:00 jayd16: if you're paranoid, you can always synchronize them :P Feb 23 20:30:02 abaratican: my boss just said "There's only three possible outcomes from that joke. Either they laugh or they dont." Feb 23 20:30:09 lov: so are adapters not supposed to change in size? Feb 23 20:30:19 mine gets bigger and smaller Feb 23 20:30:26 depends on what im doing with it Feb 23 20:30:29 That's what she said Feb 23 20:30:34 jsut make sure you call notifyDataSetChanged() Feb 23 20:30:36 SimonVT: +1 Feb 23 20:30:38 wait Feb 23 20:30:41 why does HERS get... Feb 23 20:30:54 wait indeed Feb 23 20:31:15 well I'm clearly getting crash reports from out of index errors because I trusted the caller to be completely correct... Feb 23 20:31:28 I don't know what kinda women you socialize with Feb 23 20:32:17 jayd16: Are you modifying your dataset from a background thread? Feb 23 20:32:50 simonVT, that might be the issue… (not my code -_-) Feb 23 20:33:28 Hello, may i can ask how i am possible to set color to array of string i have private String[] = and then few names how can i set color of this text? Feb 23 20:33:32 jayd16: if you change the content of the adapter, you need to call notifyDataSetChanged. Feb 23 20:34:02 HyperX: Your question makes no sense because it's missing a lot of information. Feb 23 20:34:11 you don't set colors on strings, you set it on views of some kind. Feb 23 20:34:24 what is displaying these strings? Is it one textview? is it a listview? Is it something else? Feb 23 20:34:29 lov: yes, but theres still a race condition if you touch the adapter from another thread. I think thats my issue Feb 23 20:34:43 And you need to notify it before the listview/adapter tries to access the dataset again.. So do it from the ui thread Feb 23 20:37:29 lov: i declare them in with private String[] menu_text and then i set 8 names in it. Then i use TextView and put all of them into "grid view" Feb 23 20:38:22 but this TextView is declared only in activity. Feb 23 20:39:12 Can i do it just with setTextColor(); or is requires xml? Feb 23 20:39:41 I have a ViewPager with three fragments loaded. One of them calls startActivityForResult(...) and when I get an onActivityResult callback it's handled by the first fragment in the ViewPager implementing this method. Not the calling fragment. How am I supposed to handle this? Feb 23 20:39:42 HyperX: are there 8 textviews, or are you putting all 8 strings into the textview? Feb 23 20:39:50 HyperX: you can call setTextColor. Feb 23 20:39:56 HyperX: just note that you'll need to do this on the UI thread. Feb 23 20:41:05 Ok i solved :) ty Feb 23 20:46:34 anyone else here submitted APKs to blackberry? Feb 23 20:46:46 canadiancow|work, fix that bug yet? Feb 23 20:47:12 uh Feb 23 20:47:13 what? Feb 23 20:47:21 get on it Feb 23 20:48:57 pigsnowball i couldnt figure it out Feb 23 20:48:59 i tried to sign mine Feb 23 20:49:01 and it said it was signed Feb 23 20:49:05 even though i didnt sign it Feb 23 20:49:11 then i tried to upload it, and i couldnt figure out how :( Feb 23 20:49:34 canadiancow|work: so far so good for me… in the apk online tool thing my apk was the signed one i normally use for marketplace Feb 23 20:49:40 so maybe you should be sigining it... Feb 23 20:49:45 is it better to set up a new socket connection for each request on mobile devices, or are there no (extra) problems with keeping a single socket connection alive? Feb 23 20:49:52 insane number for hoops to jump through though i agree... Feb 23 20:50:02 no no Feb 23 20:50:06 you have to sign it with the RIM key Feb 23 20:50:06 bl4ckcomb: it's probably saner in all circumstances to keep the same socket alive if you can do it Feb 23 20:50:12 i.e. if you're using HTTP 1.1, just keep it alive Feb 23 20:50:19 and my app is called "meme droid" don't know if that qualifies for "android" Feb 23 20:50:27 lol Feb 23 20:50:38 mine is called "Why Android > BB" Feb 23 20:50:40 canadiancow|work: i uploaded my marketplace signed apk, then it was happy to sign using blackberry signing Feb 23 20:50:50 where did you upload it? Feb 23 20:50:51 mine is called "Imaginary" because I didn't bother Feb 23 20:51:00 so far so good, but now i'm going back and fixing up the icon size.... Feb 23 20:51:12 https://bdsc.webapps.blackberry.com/android/bpaa/ Feb 23 20:51:31 i wasn't able to do it on my mac, had to use a VM windows…. Feb 23 20:51:42 I'm still waiting for review Feb 23 20:51:48 Been 2 weeks :P Feb 23 20:51:50 lov: it's just a custom textual TCP/IP-level protocol, but I was wondering how I should do this asynchronously. from what I read a Thread is a bad idea, and I'm not sure how to do it with AsyncTask. Feb 23 20:52:17 lov: atm I create an AsyncTask per request, but that creates and destroys a socket per request Feb 23 20:52:23 bl4ckcomb: consider using a Service Feb 23 20:52:26 and binding to that Service Feb 23 20:52:38 then your Service can survive even when your Activity/activities are gone Feb 23 20:52:38 lov: actually, if you want to run a lot of users on a single http server, you want to disable keepalives Feb 23 20:52:49 lov: ah, let me dig into it. thank you for the pointer Feb 23 20:52:51 p_l: fair point Feb 23 20:53:08 bl4ckcomb: bear in mind that Activities can be destroyed and recreated when you rotate the device, etc. Feb 23 20:53:41 yes, atm I had the asynctask instances at application-level Feb 23 20:53:48 but that's quite dirty Feb 23 20:54:01 yes, that's not really what they're there for Feb 23 20:54:04 bl4ckcomb: you might find this interesting, http://blog.davidsingleton.org/mobiletcp/ Feb 23 20:54:13 you can always use a singleton or something but a Service is almost certainly what you want Feb 23 20:54:56 lov: I generally avoid singletons when possible Feb 23 20:55:54 why? Feb 23 20:56:00 To manage lifecycle, is Android destroying single activities or whole processes (i.e. every activity in a process)? Feb 23 20:56:08 disgrntld: Yes. Feb 23 20:56:38 JakeWharton_: I like trees Feb 23 20:56:38 JakeWharton, because they're overused Feb 23 20:56:44 So there is a chance Android might only reclaim some of my activities? Feb 23 20:56:44 in places where they shouldnt be Feb 23 20:57:11 disgrntld: It will be recreated when requested. Feb 23 20:57:46 canadiancow|work, Singletons?!? Feb 23 20:57:50 yes Feb 23 20:58:03 overused doesn't mean they should be avoided Feb 23 20:58:18 so a project im working on probably has 25 big singletons Feb 23 20:58:24 there's nothing wrong with a singleton Feb 23 20:58:25 of which MAYBE 5 should be singletons Feb 23 20:58:26 MAYBE Feb 23 20:58:28 disgrntld: But the only activity you know exists at any given time is the current activity visible. If you need something that exists independent of your activities, you want a service. Feb 23 20:58:36 there are the way most people use them Feb 23 20:58:45 canadiancow|work: that's something wrong with the developer Feb 23 20:58:47 not the pattern Feb 23 20:58:48 well most people are idiots Feb 23 20:59:02 "Most people are idiots, let's make our code boring". Bleh. Feb 23 20:59:09 evancharlton: it's actually an anti-pattern Feb 23 20:59:20 funny how this always triggers discussions :) Feb 23 20:59:29 Singletons are incredibly useful Feb 23 20:59:32 JakeWharton_: i am just trying to get started with AcitonBarSherlock 4.0 rc1... but i think I am missing something, as that version doesn't seem to include the compatibility class (library/src/android*)? Feb 23 20:59:37 JakeWharton_: so are globals Feb 23 20:59:42 and gotos Feb 23 20:59:47 thanks kamoricks, still have a few questions but I'm trying to figure out how to describe what I'm worried about, going to hit the whiteboard for a bit Feb 23 20:59:51 ...cept the android framework *itself* makes great gaurentees about how things are created, so the "anti-patern" things that apply for desktop or standalone java dev don't apply. Feb 23 20:59:51 ... Feb 23 21:00:00 wow Feb 23 21:00:07 I opt out of this discussion Feb 23 21:00:14 i think they are ok insofar as they don't prevent you from testing, and they enforce a policy only one can be created - rather than a convenience things because bad engineers can't figure out a good way to structure their application Feb 23 21:00:16 wongk, correct Feb 23 21:00:17 which was my intention :D Feb 23 21:00:27 because you're one of the idiots that uses them wrong Feb 23 21:00:39 they have nothing to do with globals Feb 23 21:00:41 Hello. If I have an application consisting of an action bar (with two navigation tabs) and the rest of the layout consisting in the selected tab fragment, I could just do ft.add(android.R.id.content, mFragment, mTag) at the TabListner and it should display, right? Feb 23 21:00:48 he didnt say they have anything to do with globals Feb 23 21:00:51 wongk, there's a plugin Feb 23 21:00:52 I've already got Appplication, which is both Singleton and Global. What more do you want? Feb 23 21:00:53 JakeWharton_: no need to be rude ;) it's nothing personal Feb 23 21:01:05 I TIS Feb 23 21:01:09 I INVENTDED SINGLETONS Feb 23 21:01:12 tits? Feb 23 21:01:13 YOU"RE TRASHING MY HONR Feb 23 21:01:16 :LIHEWFPOHW Feb 23 21:01:17 JakeWharton_: ok, i see it Feb 23 21:01:21 :p Feb 23 21:05:59 does anyone know how activity results are dispatched from Activity to its Fragments? Feb 23 21:06:18 lov: I'm reading about Services, and it says it's not a separate process nor thread, so do I need something extra to avoid blocking? Feb 23 21:07:29 You need a thread Feb 23 21:07:41 create a thread in the service? Or use the IntentService, i believe it creates a worker thread for you Feb 23 21:09:02 16:02 < bl4ckcomb> evancharlton: it's actually an anti-pattern <-- wrong, but I'm not really going to rehash this Feb 23 21:09:38 Oh me oh my Feb 23 21:09:45 http://accu.org/index.php/journals/337 Feb 23 21:09:47 if I hear the Singletons ruin unit tests one more time Feb 23 21:09:48 THE INTERNET SAID SO evancharlton Feb 23 21:10:14 singletons killed my wife :< Feb 23 21:10:29 I would like to hear that story. Feb 23 21:10:41 you will be a sad panda, if someday you inherit a project with lots of singletons and no tests Feb 23 21:10:42 mgj: IntentService seems to offer what I need. thank you Feb 23 21:10:49 unit test gone awry Feb 23 21:10:50 g00s++ Feb 23 21:10:52 lives were lost Feb 23 21:11:04 g00s++ Feb 23 21:11:13 . Feb 23 21:11:15 g00s: you'll be a sad panda if you inherit a project that does all kinds of architecture gymnastics to avoid singletons because someone read on a blog that they're bad Feb 23 21:11:39 there is a compromise Feb 23 21:11:59 "hmm what if we have more than one of these?" should not immediately lead to "let's use a singleton!" Feb 23 21:12:05 use then when they're appropriate? Feb 23 21:12:14 canadiancow|work: it's just like every single other design pattern, ever. Feb 23 21:12:19 random note: my productivity seems to be proportionally to this channels flame activity :o Feb 23 21:12:23 use it when it makes sense and don't use it when it doesn't Feb 23 21:12:24 this just in, misused programming concepts can be dangerous! stop the presses! Feb 23 21:12:26 but other ones arent abused nearly as much Feb 23 21:12:38 singleton is misused all the time Feb 23 21:12:42 canadiancow|work: ha ha ha ha ha ... not sure if trolling or just hasn't maintained code Feb 23 21:12:48 lol Feb 23 21:13:22 im not trolling :( Feb 23 21:13:36 every multi-person project ive ever worked on has had singleton misuse Feb 23 21:13:42 in a way that led to tons of shit breaking Feb 23 21:13:44 let me know when you run into some AbstractFactoryFactory stupidity Feb 23 21:13:51 o.O Feb 23 21:13:59 yo dawg i heard you liked factories Feb 23 21:14:03 i've seen the command pattern used in ways no code should ever be used Feb 23 21:14:06 so I made a factory for your factory for your factory for your factory Feb 23 21:14:07 i have a project where EVERY FUCKING CLASS is a singleton Feb 23 21:14:11 or basically any project that uses Guice in any form Feb 23 21:14:22 ugh Feb 23 21:14:29 canadiancow|work: that doesn't mean that singletons should never be used, it just means that the developers were morons Feb 23 21:14:33 == lov Feb 23 21:14:37 i didnt say they should never be used Feb 23 21:14:43 lov++ Feb 23 21:14:47 never use goto because some fuckwit doesn't know how to use goto Feb 23 21:14:55 (you can actually use goto sometimes if you're sane about it) Feb 23 21:14:58 but i know some of these devs, and theyre not morons Feb 23 21:15:05 i just read that for loops were bad Feb 23 21:15:07 the issue is that most people dont know how to use singletons Feb 23 21:15:09 XD Feb 23 21:15:10 canadiancow|work: and yet every single class is a singleton? Feb 23 21:15:12 I had a null pointer exception the other day. no one is allowed to use pointers now because they can sometimes be null. Feb 23 21:15:17 ok lov not THAT project Feb 23 21:15:18 evancharlton: oh god Feb 23 21:16:00 evancharlton, so silly, you are supposed to catch those and ignore them Feb 23 21:16:16 canadiancow|work: while(foo = bar) { .... }. USUALLY wrong but NOT ALWAYS. Feb 23 21:16:30 michaelnovakjr: ha ha ha sob : ( Feb 23 21:16:42 michaelnovakjr: catch (Throwable t){ /* lol FU bitch */ } Feb 23 21:16:49 lol Feb 23 21:16:50 my favorite is "This method can throw 10 exceptions, eh? Lets catch each one individually and have the exact same handling" Feb 23 21:17:01 lov: but i dont see people misusing that 99% of the time Feb 23 21:17:07 canadiancow|work: you haven't looked very hard :P Feb 23 21:17:09 my favourite is "let's unwind the stack before calling the handler" Feb 23 21:17:26 michaelnovakjr: actually, my favorite is catch (Exception e) { throw new RuntimeException(); } Feb 23 21:17:30 that makes debugging a lot of fun Feb 23 21:17:50 evancharlton, nah that's easy... everything is just a runtime exception. Feb 23 21:17:53 :p Feb 23 21:18:12 JakeWharton: maybe helpful for your move http://lifehacker.com/5887412/how-to-sell-your-excess-crap-for-cash-in-just-a-few-hours-with-amazons-fulfillment-program Feb 23 21:18:20 * g00s got rid of a ton of stuff before moving Feb 23 21:18:34 amazon's fulfillment program is kewl Feb 23 21:18:42 might consider that if everything works okay for me Feb 23 21:19:02 * g00s wonders if he can put his room mates cat in amazon fullfillment Feb 23 21:20:05 so the biggest issue ive seen with singletons Feb 23 21:20:15 people can't use them Feb 23 21:20:18 is that at design time, someone said "we only ever want one of this - more does not make sense" Feb 23 21:20:26 and then two months later "hey we actually need two" Feb 23 21:20:31 canadiancow|work: oh you need to use the elusive Dupleton pattern Feb 23 21:20:41 yes Feb 23 21:20:41 which then boils down to "rewrite whole app" or "dont include that feature" Feb 23 21:21:08 or the Tripleton pattern if shit is getting real Feb 23 21:21:13 fuck it Feb 23 21:21:18 canadiancow|work: did you run google singleton detector on your project ? Feb 23 21:21:21 we're going straight to quintupletons Feb 23 21:21:26 g00s no, what's that Feb 23 21:21:27 lov: hahahah perfect Feb 23 21:21:30 hingleton, mingletons, singletons, etc Feb 23 21:21:41 the higgs-singleton Feb 23 21:21:44 simpleton Feb 23 21:21:48 don't forget higgstons and schroedingertons Feb 23 21:21:49 http://code.google.com/p/google-singleton-detector/ Feb 23 21:21:51 what have I done Feb 23 21:21:53 TOO SLOW. Feb 23 21:21:56 lov: eh Feb 23 21:22:12 ok google agrees singletons are bad Feb 23 21:22:20 :D Feb 23 21:22:37 Well, each of these types of _inglton could be fine if used properly, but the problem is they're often misused. Feb 23 21:23:04 So's your mom Feb 23 21:23:10 o.O Feb 23 21:23:13 :p Feb 23 21:23:29 note to self: next project should only use singletons, hingletons, mingletons, and fingletons Feb 23 21:24:38 "Average paid Android apps are 2.5 times more expensive than iPhone apps" Feb 23 21:24:39 bl4ckcomb: evul Feb 23 21:24:54 * g00s is surprised Feb 23 21:24:55 XD Feb 23 21:25:02 looks like the kindle fire shuts down its wifi after the screen locks. Any experience with how to fix that? partial wake lock? Feb 23 21:25:33 my galaxy nexus does that too... Feb 23 21:25:42 as does every device when you check that option in wifi settings Feb 23 21:25:48 canadiancow|work, how does your productivity not lack chatting here all day? Feb 23 21:25:49 i have a ListView with an ArrayAdapter, the data populating this is an array of objects..... I have a button outside the listView I'm trying to make it add another item to the array, so should I be using ArrayList for the data instead of a regular array of objects? Feb 23 21:25:59 michaelnovakjr: im just that awesome Feb 23 21:26:02 :) Feb 23 21:26:23 michaelnovakjr: I guess that depends on what your point of reference is :p Feb 23 21:26:24 if anyone is interested http://www.canalys.com/newsroom/android-apps-are-too-expensive Feb 23 21:26:43 SimonVT, that is true, we don't get to see his code :) Feb 23 21:26:44 canadiancow|work, yes I know but the kindle doesn't have that setting exposed Feb 23 21:27:04 etuleu, don't most devices do this..... Feb 23 21:27:06 oh so you want to fix this on your own device? Feb 23 21:27:13 michaelnovakjr: [16:25:42] as does every device when you check that option in wifi settings Feb 23 21:27:28 canadiancow|work, no, I want to maybe provide a setting that will drain more battery but keep a wake lock Feb 23 21:27:31 so you don't go offline Feb 23 21:27:37 yes! Feb 23 21:27:40 michaelnovakjr, most devices have this setting exposed Feb 23 21:27:41 a drain more batter option! Feb 23 21:27:47 +1 Feb 23 21:27:54 a wakelock will work Feb 23 21:27:55 g00s: I've already done that. I've inherited multiple projects that have absolutely no unit tests, huge amounts of public statics and singletons. That doesn't mean I'm going to ignore utilizing a Singleton pattern when it makes code more maintainable, rather than less. Feb 23 21:28:02 just make sure you get the one that keeps wifi active Feb 23 21:28:04 I know this sounds terrible but do you have any other solution? Feb 23 21:28:42 I was wondering if I could launch an intent to that settings page to see if it exists :) Feb 23 21:28:51 is there such an intent? Feb 23 21:28:56 drain ALL the battery! Feb 23 21:29:12 evancharlton, I will also have a setting of how fast to drain it Feb 23 21:29:32 lol Feb 23 21:29:39 I am confused Feb 23 21:29:46 etuleu: There's a WifiLock or something Feb 23 21:29:47 michaelnovakjr, jk Feb 23 21:30:02 etuleu: http://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock.html Feb 23 21:30:13 I deal with a lot of...let's call them junior developers who read StackOverflow or whatever blog and think that they understand architecture well enough to make sweeping changes to applications because "globals are bad" or "everything should be written in Python" Feb 23 21:30:18 etuleu, lov has great Googling skills :) Feb 23 21:30:31 MalRD: lol Feb 23 21:30:40 michaelnovakjr, my question was not which lock to aquire, but if you guys have any other solutions to this problem Feb 23 21:30:52 Bah, fell for the trap.. Trying to set textview text to an int Feb 23 21:30:54 michaelnovakjr: it takes a lot of effort top open d.android.com and type "Wakelock" Feb 23 21:30:56 etuleu, why are you keeping wifi awake? Feb 23 21:30:59 * p_l is forever cursed with making sure if the person mentioning Python is talking about language or compiler Feb 23 21:31:08 because I need to get push notifications from my server Feb 23 21:31:10 lov, that's why they pay you the big bucks Feb 23 21:31:12 etuleu: There's likely no other solution. Feb 23 21:31:22 michaelnovakjr: I'm paid in audiobooks ._. Feb 23 21:31:22 etuleu, have you thought about actual push notifications? Feb 23 21:31:25 lov, the wifi lock only works if used with a partial cpu lock Feb 23 21:31:32 michaelnovakjr, have you used a kindle fire? Feb 23 21:31:37 it doesn't have c2dm Feb 23 21:31:39 michaelnovakjr: push notifications don't work if there's no network connection :P Feb 23 21:31:52 michaelnovakjr: he's got a point. When the screen locks, the device might shut off the wifi for quite some time Feb 23 21:31:54 lol etuleu that's a lot of effort for a crap device Feb 23 21:32:02 :| Feb 23 21:32:06 lov, right, but c2dm handles that Feb 23 21:32:06 michaelnovakjr, are you serious? it's the best sold android tablet Feb 23 21:32:10 lol Feb 23 21:32:14 They removed advanced wifi settings? Feb 23 21:32:14 michaelnovakjr: handles.... what? Feb 23 21:32:18 mgj: am I correct that IntentService adds the tasks to a single queue, or does it spawn a thread for each task? Feb 23 21:32:21 SimonVT, yes! Feb 23 21:32:22 p_l: In the case of the developer I was thinking of, language, because he "doesn't believe in the JVM" Feb 23 21:32:22 lov, it wakes up Feb 23 21:32:29 michaelnovakjr: wakes up what, the wifi? Feb 23 21:32:29 etuleu: That's fucked :p Feb 23 21:32:34 yea :) Feb 23 21:32:35 michaelnovakjr: the problem is that there is NO NETWORK CONNECTION, PERIOD. Feb 23 21:32:57 also, the device is an amazon device WITHOUT Google, and i'm 90% certain it doesn't have c2dm Feb 23 21:32:58 problem solved then Feb 23 21:32:59 lov, the next kindle will likely have 3G, but until then - drain battery mode Feb 23 21:33:05 bl4ckcomb, you should read the docs, i dont recall the details of IntentService. Sorry Feb 23 21:33:05 lov, right the kindle fire doesn't Feb 23 21:33:16 lov: only 90%? Feb 23 21:33:23 actually I ran some tests and the drainage is not too bad at all Feb 23 21:33:25 canadiancow|work: over 9000% certain Feb 23 21:33:31 :) Feb 23 21:33:33 thats better Feb 23 21:33:49 mgj: that's what I interpret from the docs, but just wanted to be sure. anyway, thanks for the help Feb 23 21:33:59 np Feb 23 21:34:16 etuleu, why keep it alive all the time? can't you schedule a polling service? Feb 23 21:34:47 bl4ckcomb: Pretty sure the intentservice docs mention this Feb 23 21:35:08 michaelnovakjr, it's a messenger app, I need messages to be real-time Feb 23 21:35:45 etuleu, I guess long polling is your only option then Feb 23 21:36:20 hey Feb 23 21:36:23 michaelnovakjr, yea sounds like it Feb 23 21:36:49 what is that decides if a button will be as big as the buttontext... Feb 23 21:36:54 I have a kindle fire here, such a crap device Feb 23 21:36:59 or as big as standard size?? Feb 23 21:37:04 JakeWharton hows the database going? Feb 23 21:37:44 michaelnovakjr, yes but it's cheap Feb 23 21:48:11 next 10 days in az: sunny in the 70s :( so boring Feb 23 21:49:21 anyone going to mwc? Feb 23 21:53:37 mxc < mwc Feb 23 21:53:48 mxc > mwc, rather. :( Feb 23 22:00:25 have the design guidelines changed, or have they been updated, since they originally came out ? Feb 23 22:06:28 now that we've talked about singletons, time to move on to the for loop ! http://news.ycombinator.com/item?id=3625710 Feb 23 22:06:44 Hooray, my IntPreference works Feb 23 22:07:56 Hi, I tried to know either if a view is set (like with View = new View(this); ) but it doesn't seems to work Feb 23 22:08:01 i did this Feb 23 22:08:14 if(border[j].equals(null)) Feb 23 22:08:14 border[j] = new TextView(this); Feb 23 22:08:42 but I have NullPointerException if it wasn't st Feb 23 22:08:44 set* Feb 23 22:09:01 does someone know why it doesn't work ? Feb 23 22:09:03 Walui: it might be time to learn java Feb 23 22:09:13 You're calling a method on a null pointer.. Feb 23 22:09:48 :/ I see Feb 23 22:10:06 so how could I know if it is null ? Feb 23 22:10:36 Uh, == Feb 23 22:14:07 ok it worked, I tried it but it didn't do what I wanted, probably missed something Feb 23 22:14:13 Thanks SimonVT Feb 23 22:15:18 g00s, good read thanks for the link! Feb 23 22:15:49 and how do we refresh a view ? I tried with ivalidate as I found on google but it doesn't seems to work Feb 23 22:15:53 I really hope for some Scala (and why not Haskell) support from the android team Feb 23 22:15:55 Walui: seriously, please learn java first. Feb 23 22:16:19 etuleu: perhaps some Obj-C support too! Feb 23 22:16:40 lol Feb 23 22:16:59 lov: I just tried this because == null didn't work well Feb 23 22:17:11 lol Feb 23 22:17:52 lov, why not it might make the transition easier for those ios devs :) Feb 23 22:19:04 etuleu: then after that we can add support for Visual Basic Feb 23 22:19:30 I was going in a different direction but you kinda missed the point Feb 23 22:19:36 no, you kind of did :P Feb 23 22:19:48 Scala > Java Feb 23 22:20:04 etuleu: patches welcome! Feb 23 22:20:17 patches to what? Feb 23 22:20:25 aosp Feb 23 22:20:32 if you want better scala support for Android, feel free to contribute it Feb 23 22:20:35 source.android.com Feb 23 22:20:40 are you working on the android team? Feb 23 22:21:02 He's fixing the android team as we speak. Feb 23 22:21:07 Lots of work ahead of him, though. Feb 23 22:21:26 heh Feb 23 22:22:16 lov, unfortunately my job is not writing SDK's in other languages Feb 23 22:22:39 truly Feb 23 22:23:06 what's an instrumented apk build? Feb 23 22:23:10 ok I'm just trolling this is not useful at all :) Feb 23 22:23:11 i.e. why would I want to do that Feb 23 22:23:13 etuleu: The misfortune this fact has invoked upon you is truly saddening. Feb 23 22:23:20 pfn: unit testing Feb 23 22:23:28 hmm, ok Feb 23 22:23:31 pfn: I'd imagine it times things, and shows call graphs or something? Feb 23 22:23:52 wondering since it needs this emma jar thing... Feb 23 22:24:00 emma is code coverage Feb 23 22:24:05 * pfn is writing his own sbt plugin to build android apps Feb 23 22:24:22 so I'm looking at what each task does and incorporating it into my plugin Feb 23 22:46:24 HI all, can you help me please? i'm trying to download android sdk for linux Os, but it gives a connection reset http://dl.google.com/android/android-sdk_r16-linux.tgz Feb 23 22:47:13 how do you guys set up your gitignore to ignore bin/ but include bin/proguard ? Feb 23 22:47:59 BenLadden: works for me - your connection alright ? Feb 23 22:48:20 bankai_, yes, it's alright Feb 23 22:48:22 g00s, I ignore bin/* Feb 23 22:48:47 g00s, actually in the file it is just bin/ Feb 23 22:48:54 bankai_, still connection was reset Feb 23 22:49:35 michaelnovakjr: do you use proguard ? i want to include the generated proguard mappings in bin/proguard Feb 23 22:49:40 Can't you just ignore bin/ and !bin/proguard/ ? Feb 23 22:50:05 bin/* maybe Feb 23 22:50:40 SimonVT: apparently it does not work Feb 23 22:51:05 BenLadden: connection reset at what stage? Feb 23 22:51:13 BenLadden: I'm downloading the first few MB Feb 23 22:51:33 lov, can i make a screen shot ? Feb 23 22:51:49 g00s, ah Feb 23 22:52:15 BenLadden: I don't think it would improve anything. I was asking, are you able to download any of the tgz, or is it cut off immediately? Feb 23 22:52:21 g00s: Works fine here Feb 23 22:52:31 wut Feb 23 22:52:42 BenLadden: if you are cut off immediately, it is possible that something is wrong with your network, or your ISP is preventing you from downloading the file. Feb 23 22:52:46 bin/* !bin/proguard/ Feb 23 22:52:55 g00s, I can't read today :/ Feb 23 22:53:09 SimonVT: ok, so you used bin/* rather then bin/ Feb 23 22:53:16 lov, yes you are right Feb 23 22:53:42 lov, can you please upload it for me somewhere? Feb 23 22:56:02 BenLadden: that file is just an installer. You'll just have the same problem. Feb 23 22:56:16 I recommend figuring out how to overcome that initial hurdle. Feb 23 22:56:29 It may be that your ISP is blocking all ssl connections, or performing a MITM attack when unable. Feb 23 22:56:35 s/unable/able/ Feb 23 22:57:47 lov, i found another way Feb 23 22:58:38 lov, is it possible to install android dev tools on eclipse? Feb 23 22:58:47 s/on/from Feb 23 22:59:54 BenLadden: you didn't. You found the eclipse plugin that uses the android dev tools that you have already installed. Feb 23 23:00:17 BenLadden: use a proxy, or use a VPN. Feb 23 23:01:35 lov, i'll try Feb 23 23:03:49 for some reason, it takes an eternity to launch my app from eclipse Feb 23 23:04:14 i wonder if it's because i'm including a lot of libraries; i have five in the project Feb 23 23:04:29 Escherial, if the debugger is attaching it can be slow Feb 23 23:05:37 Escherial: window -> preferences, android -> build, change it to verbose. The dexing is not performed until you launch, so that you don't go nuts every time you rebuild Feb 23 23:07:05 lov, yikes Feb 23 23:07:22 dexing isn't really that painful Feb 23 23:08:01 i never dex my apps Feb 23 23:08:03 its too painfulk Feb 23 23:08:19 dexing isnt what takes long Feb 23 23:08:23 its the fracking resource packing Feb 23 23:09:13 lov: ah, i figured it was dexing that was taking the most time, as those extra jars are awfully large... Feb 23 23:09:39 michaelnovakjr: aha Feb 23 23:09:40 ahahaha Feb 23 23:09:42 ahahahahahahahahaha Feb 23 23:09:47 oh, that's sweet. Feb 23 23:09:50 yes, yes it is. Feb 23 23:09:59 so, should i disable "skip packaging and dexing until export or launch" in the hopes of making launching snappier, or will it be painful? :| Feb 23 23:10:00 lol how long does it take you? Feb 23 23:10:08 too fucking long. Feb 23 23:10:13 at least 30 seconds Feb 23 23:10:17 jesus Feb 23 23:10:20 this is what happens when your app is large. Feb 23 23:10:28 my build is ~20 seconds total Feb 23 23:10:30 30 seconds? lucky Feb 23 23:10:36 this is also why NOT performing these final stages is a wonderful timesaver. Feb 23 23:10:37 mine is like 5 minutes from clean to apk Feb 23 23:10:47 canadiancow|work: oh no, I'm not talking about clean. Feb 23 23:10:59 I'm talking about having build automatically enabled, everythin g is in a stable state, and hitting run. Feb 23 23:11:02 yeah, wow, having it do it in the background is killing my performance and making my laptop loud Feb 23 23:11:42 Escherial: do not disable that step unless you really want packaging and dexing to run when you do normal development. This is normally only relevant if you're doing something that only fails at that stage and you're trying to debug that build error. Feb 23 23:12:01 lov: aha, that makes sense Feb 23 23:12:10 * michaelnovakjr enjoys his quick builds :) Feb 23 23:13:06 Anything less than a half hour feels super-snappy to me. Feb 23 23:14:38 how can i put a copyright symbol in strings.xml? "©" gives me an error saying "The entity 'copy' was referenced, but not declared." Feb 23 23:14:57 numerical? Feb 23 23:15:19 i.e. © Feb 23 23:15:26 named entities are html only Feb 23 23:15:52 (not entirely true= Feb 23 23:16:03 (but see http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML ) Feb 23 23:16:37 interesting Feb 23 23:17:17 i've just copied/pasted a © char directly into the xml for now, which seems to work (encoding=utf-8). poor practice? Feb 23 23:17:51 what's the appropriate flag for disabling a bur behind on an activity/dialog? Feb 23 23:19:07 tophyr, I don't see anything wrong with that Feb 23 23:19:18 in my book, entity references are when you cannot use a sensible encoding Feb 23 23:19:47 cool, that makes sense to me. why set the encoding if you're not going to use it. Feb 23 23:24:11 is there a way to disable the blur behind on dialogs? or even activities with transparent backgrounds Feb 23 23:26:04 faint545: I think that's just a style, and you can change styles Feb 23 23:30:56 hi how do i "start" or "call up" a dialog named ...in my case dialogtest Feb 23 23:31:10 showDialog(dialogtest); ? Feb 23 23:31:51 executeAction("start my dialogtest dialog"); Feb 23 23:32:24 Android.doMyReadingForMe("SHOW DIALOGG!"); Feb 23 23:32:38 http://developer.android.com/resources/faq/commontasks.html Feb 23 23:32:58 lol Feb 23 23:33:29 someone shoudl write a method that just takes an english sentence Feb 23 23:33:30 and does that Feb 23 23:33:32 no matter what it is Feb 23 23:33:48 executeCommand("show a racing game"); Feb 23 23:33:53 dont spend months developing a game Feb 23 23:33:53 very nice of you Feb 23 23:33:55 just one line! Feb 23 23:36:12 https://www.google.com/search?tbm=isch&hl=en&source=hp&biw=1680&bih=893&q=show+a+racing+game&gbv=2&oq=show+a+racing+game&aq=f&aqi=&aql=&gs_sm=3&gs_upl=972l2618l0l2697l18l17l0l9l0l1l145l945l1.7l8l0 Feb 23 23:36:16 canadiancow|work: I'm pretty sure RoboGuice is trying to evolve to allow for development purely with annotations Feb 23 23:36:26 nice Feb 23 23:36:36 no Feb 23 23:36:38 that would be hell Feb 23 23:36:38 executeCommand("build an angry birds competitor") Feb 23 23:36:40 not what i meant lov Feb 23 23:36:52 but i guess thats the problem with compiled languages Feb 23 23:36:56 they do what i say, not what i mean ;) Feb 23 23:37:12 hwrd|work: that would execute the same code path as executeCommand("build another boring game that will fail") Feb 23 23:37:20 lol Feb 23 23:37:28 angry birds with friends, anyone? Feb 23 23:37:34 evancharlton: ^ Feb 23 23:37:39 angry friends Feb 23 23:37:42 evancharlton: angry birds with friends would work. Feb 23 23:37:42 I already have em Feb 23 23:37:57 hwrd|work: its mine...you cant take it Feb 23 23:38:07 canadiancow|work: command already executed Feb 23 23:38:09 sorry Feb 23 23:38:22 you cant use the "with friends" trademark :( Feb 23 23:38:24 executeCommand("build angry birds with friends by hwrd|work") Feb 23 23:38:39 or the "angry birds" trademark for that matter Feb 23 23:38:46 irate avians Feb 23 23:39:09 "with fiends" is probably ok though, right > Feb 23 23:39:16 friendly birds Feb 23 23:39:22 I should make Words With Enemies which only lets you play insulting words Feb 23 23:39:25 g00s: i can sure as hell use it :P Feb 23 23:39:41 What if i just make an app that's called "with friends" Feb 23 23:39:47 I don't think that would infringe on the trademark. Feb 23 23:40:03 you can think whatever you want; it's up for a court to make the ruling :) Feb 23 23:40:16 zynga has moar lawyers than you Feb 23 23:40:21 evancharlton: psh. Courts love me. I'll just get barack to fist bump me Feb 23 23:40:32 moar lawyers != victory Feb 23 23:40:42 http://www.groklaw.net/article.php?story=20120223073144912 Feb 23 23:41:37 hwrd|work: good thing the executive branch isn't the judicial branch Feb 23 23:41:42 POLITICS, HOW DO THEY WORK?! Feb 23 23:41:59 lolol Feb 23 23:42:02 evancharlton: I think that if Barack asked the courts to make a ruling, they'd follow it. Feb 23 23:42:10 I sure as hell hope not Feb 23 23:42:21 since that's why we have three branches of government and all that Feb 23 23:42:27 checks and balances, homie Feb 23 23:42:31 Do you think the branches are seriously that independent? Feb 23 23:42:39 If you do, then your thinking is flawed. Feb 23 23:42:50 yawn Feb 23 23:42:51 im hungry Feb 23 23:42:53 evancharlton: do checks and balances matter when everyone is bought ? Feb 23 23:42:55 I don't want to turn this into #android-american-politics, but yes Feb 23 23:42:57 Government usually does what it wants, whether it's legislated or not. Feb 23 23:43:05 o canada! Feb 23 23:43:24 we need a cow for prez Feb 23 23:43:31 hiliary clinton! Feb 23 23:43:34 lol Feb 23 23:46:39 looks interesting http://www.amazon.com/Creative-Destruction-Medicine-Digital-Revolution/dp/0465025501 Feb 23 23:46:55 vaguely applies to android / mobile Feb 23 23:47:19 i think there was an article today in the nytimes about health apps, etc Feb 23 23:48:30 Hello all Feb 23 23:48:45 My app is finally out for Beta Invite. www.todomapr.com. Let me know what you guys think. Feb 23 23:50:07 QubeZ: what did you use to build the website ? Feb 23 23:50:26 g00s: my business partner / web developer did that... its wordpress Feb 23 23:50:35 cool Feb 23 23:50:49 is that what you were asking? Feb 23 23:50:50 man, i wish wordpress wasn't php Feb 23 23:51:04 QubeZ: yeah, thanks Feb 23 23:51:11 g00s: me too dude, i wish it was Wicket Feb 23 23:51:12 =) Feb 23 23:51:20 :) Feb 23 23:51:50 I'm trying to build up some steam for this app, its completely free with a paid web service (optional w/ more features) available next month. Feb 23 23:52:00 I'm not sure how to go about getting it reviewed on a visible site Feb 23 23:53:03 payola Feb 23 23:59:02 there is so much weird results for payola in google Feb 23 23:59:06 whats the "official site"? Feb 24 00:00:21 lol Feb 24 00:00:51 qubez: I was somewhat joking http://www.thefreedictionary.com/payola Feb 24 00:00:54 or is that a concept? Feb 24 00:00:56 QubeZ, there's really no site you just go to for it Feb 24 00:01:17 oh sorry, im foreign. See I don't get stuff like that. Feb 24 00:01:52 QubeZ, you can try and email bloggers, but it depends. Not every app gets reviewed. Feb 24 00:01:56 qubez: no problem... that's why I posted the link since it is basically u.s. slang Feb 24 00:02:04 gotcha Feb 24 00:02:11 I'm in U.S. but Indian Feb 24 00:02:17 Never heard of that phrase. Feb 24 00:02:58 This is interesting what Google did with Admob, minimum bids for campaigns are now 0.01 Feb 24 00:03:20 I guess they figure people will rush in when they see how cheap it is and drive the prices up Feb 24 00:03:34 JakeWharton, got permission to import ABS. :-) Feb 24 00:03:42 I've got a one cent ad campaign going...they take forever to approve campaigns though... Feb 24 00:04:06 Ologn, have you used AdMob before? Feb 24 00:04:54 michaelnovakjr: Yes. Google moved bid minimums to 0.01 as of two weeks ago. Feb 24 00:05:16 michaenovakjr: You were at that Android meeting at Google last month, right? Feb 24 00:05:35 Ologn, yep, I run it Feb 24 00:05:36 anyone point me to where i can find imgdiff? Feb 24 00:05:47 Does anybody know if it is possible to style the Search Widget (sdk 3 >)? Feb 24 00:05:50 I want to make it wider. Feb 24 00:06:26 michaelnovakjr: Cool. They meet in bars on Wednesday nights, which can be a tough night for me, but I try to go. Feb 24 00:06:49 Ologn, yea I don't get to make it out to many of those Feb 24 00:06:58 JakeWharton: email should be going out tonight for the people that subscribed to the To Do Mapr list. Sorry about last night. Feb 24 00:09:35 michaelnovakjr: where is that event? Feb 24 00:10:55 brx_, usually Google New York Feb 24 00:11:06 ahh Feb 24 00:11:15 do you hear of such events in the UK for android devs? Feb 24 00:11:45 brx_: there was a global one recently Feb 24 00:12:12 brx_, i'm not sure, there probably is a developer group out there Feb 24 00:12:45 ok, ill keep looking :] Feb 24 00:13:02 try meetup.com Feb 24 00:13:14 ok thanks Feb 24 00:13:34 np Feb 24 00:15:07 wow seems there is one coming up in my city (found on meetup.com) Feb 24 00:15:09 cheers Feb 24 00:15:45 * Jug6ernaut knows this is a #java question Feb 24 00:16:01 but with an inputstream with the .skip does the data actually get downloaded? Feb 24 00:16:05 brx_, meetup.com is great for that stuff Feb 24 00:16:30 ive searched many times before and found nothing, site bookmarked Feb 24 00:27:19 Jug6ernaut: yes, almost certainly Feb 24 00:27:29 unless your stream allows for random seeking Feb 24 00:30:43 evancharlton yea thats what i figured :S Feb 24 00:35:07 http://www.kickstarter.com/projects/108684420/node-a-modular-handheld-powerhouse-of-sensors Feb 24 00:35:10 ooh, that sounds cool Feb 24 00:36:35 $175 though, steep Feb 24 00:48:19 I wonder, does distcc work with compiling android/aosp? Feb 24 00:48:42 I can't get this Moto Droid phone to show up on my Windows dev machine... anyone have any ideas? I feel like maybe I'm forgetting something... I've installed the OEM drivers from Motorola already Feb 24 00:49:29 drezel: enable usb debugging? Feb 24 00:49:40 aye, I turned on usb debugging already Feb 24 00:50:00 uhh, except it doesn't have the icon in the notification tray Feb 24 00:50:06 but i see it checked in the settings Feb 24 00:50:48 it /is/ plugged in, right? Feb 24 00:51:03 it sure is. the led is lit up Feb 24 00:51:43 Windows even recognizes it -- I can go to my system tray and click Eject Devices and it lists "Motorola A855" Feb 24 00:53:19 hi, i need to set the layout_height to fill_parent, 'ive done the change to scaletype using this: img.SetScaleType(ImageView.ScaleType.CenterCrop); .. but i cant' find any info about the layout changes... Feb 24 00:53:49 someone can help me? thx! Feb 24 00:54:30 so can you get gps location from an intent? Feb 24 00:54:51 nm Feb 24 00:54:54 i jsut thought of that Feb 24 00:54:57 ill check it out Feb 24 01:05:09 drezel: Have you tried turning it off and on again? Feb 24 01:08:54 i tried rebooting my computer... Feb 24 01:08:57 but not the phone Feb 24 01:09:08 i actually have 2 of the exact same phone, neither one is working Feb 24 01:10:05 bartoloni: what are you trying to accomplish? Feb 24 01:10:35 I've no idea, then. I've plugged in a OG Droid, Droid 4, and Razr Maxx over the past few days and they all worked with the latest driver update. Feb 24 01:11:07 evancharlton i have some issues to enlarge small-images on large-x tablets Feb 24 01:11:48 without losing the xy 1:1 Feb 24 01:15:15 fuck i need a way to change the LVL response for ONE app in a market account without gaining access to the entire market account :( Feb 24 01:17:25 io2012 Feb 24 01:18:12 LVL is based on your market account as a whole and not a per app basis? Feb 24 01:24:12 SharedPreferences says: "Note: currently this class does not support use across multiple processes. This will be added later." Does this mean I can't use it in my activity & remote service? ie data saved in one won't be located in the other? Feb 24 01:24:19 Does anyone know how to either uninstall the android default music player on an emulator or remove the unique key from my form of the app on Eclipse so I can run it as a different app? Feb 24 01:24:58 vadi2: if your service is in a different process then no, you cannot use SharedPreference Feb 24 01:25:18 sucks, it was pretty easy to work with. what's the next best thing? Feb 24 01:26:49 hrmm i don't understand? because my widget is using sharepreferences and the app is using it too, it's how the widget is few the settings it neeeds to fulfil the user expectation…. Feb 24 01:27:48 although to be honest, although i know my widget is running as part of the launcher app, i'm not quite sure how it all works i must admit, just that shared preferences do still seem to work accross my app and it's widget Feb 24 01:29:45 Can anyone recommend a good cheap android phone I can get used on ebay for like $100? Feb 24 01:29:49 Is it? I'll give it a try anyway to see what happens. Feb 24 01:31:07 ok different question, screw that dumb Moto Droid :) back to my Nexus One Feb 24 01:31:53 I want to create a timer to do something a few seconds later if some condition is true in my background thread... but I get the error "Can't create handler inside thread that has not called Looper.prepare()" Feb 24 01:32:12 so, whats the correct way to make a timer from a background thread? I was using a Handler and a Runnable Feb 24 01:33:16 vadi2: are you refering to a widget when you say remote service? Feb 24 01:33:27 no, I'm referring to a remote Service Feb 24 01:33:41 as in... a Service, not an Activity Feb 24 01:34:00 vadi2: ok i really can't say then. but ultimately isn't sharedpreferences just a file? Feb 24 01:34:17 hopefully Feb 24 01:35:12 vadi2: the only thing to worry about is sync issues since it is a file Feb 24 01:35:22 Yeah. Feb 24 01:35:43 i don't know if concurrent access can throw errors, but best to pull and save in the same action when ever you are just trying to save Feb 24 01:36:33 data/data/YOUR_PACKAGE_NAME/shared_prefs/YOUR_PACKAGE_NAME_preferences.xml Feb 24 01:36:55 as long as its the same package... Feb 24 01:37:25 anyone else using tools 17? seems pretty decent Feb 24 01:37:28 android tools are getting fancy Feb 24 01:38:25 adt? Eclipse says 16 is latest Feb 24 01:41:10 its a preview Feb 24 01:41:21 16 is latest, 17 is in beta, you can get it, i'm tempted because of the lint doing the check for incompatible calls to min-sdk function Feb 24 01:58:33 Hey. Any idea why I the listfragment content isnt being displayed? http://paste.pocoo.org/show/555880/ Feb 24 02:02:22 bleh, I just used Thread.sleep() from my background thread instead of a handler/runnable. hooray for overthinking things Feb 24 02:09:09 pigsnowball: that actually found an interesting one Feb 24 02:09:13 we had a custom view Feb 24 02:09:24 it allowed user input Feb 24 02:09:27 and someone had put in a boolean isDirty() Feb 24 02:09:34 to indicate if any data had changed Feb 24 02:09:43 except in api 11, View gained a boolean isDirty() method Feb 24 02:09:44 :P Feb 24 02:09:51 LOL! Feb 24 02:10:16 im surprised that didnt fuck everything Feb 24 02:10:24 but lint thought i was calling some new method Feb 24 02:10:32 so i just renamed it, which solved all the "problems" Feb 24 02:10:37 but now im going through fixing other shit Feb 24 02:10:58 well… it would only be a potential problem on devices that were api 11 and above.... Feb 24 02:11:07 and how much it was a problem.... Feb 24 02:11:29 also forgive me i wasn't around when java went to 6 Feb 24 02:11:46 would it not require an @Override annotation to impact the parent class? Feb 24 02:12:24 no annotations dont affect runtime Feb 24 02:12:43 are you supposed to use SparseArray for everything? o.O Feb 24 02:12:43 oh… sorry newb question, what are those annotations anyway? Feb 24 02:12:46 pure doco? Feb 24 02:12:50 basically Feb 24 02:12:58 like i have mine set to give a warning if you forget an @Override Feb 24 02:13:01 oh… i thought it was an optimisation lol Feb 24 02:13:05 so it makes it very obvious you're overriding something Feb 24 02:13:18 oh wait SparseArray when we have integers..i get it Feb 24 02:13:36 i thought it was a weird "optimisation" considering it would easily break new code if the function wasn't virtual without the annotation Feb 24 02:19:19 in Java methods are always virtual Feb 24 02:19:28 (except private ones) Feb 24 02:26:36 JakeWharton, when do you take off in your sketchy van? Feb 24 02:33:58 hi room, i need help using BaseAdapter i cannot click on one item http://pastebin.com/RXLXbA0Z Feb 24 02:34:08 is v.setClickable( true ); not on the right place`? Feb 24 02:35:27 romainguy, this is your ListAdapter, i am using there, how can i make the items clickable? Feb 24 02:35:44 they are already clickable... Feb 24 02:35:56 just override onListItemClicked Feb 24 02:36:03 I think it's called that anyway Feb 24 02:36:14 you are using one WebView per list item??? Feb 24 02:36:15 wtf Feb 24 02:36:47 lol; Feb 24 02:37:25 whats wrong with this? Feb 24 02:37:34 I think he's using them to load images when he should be downloading them to a cache Feb 24 02:37:49 and loading them into an imageview Feb 24 02:38:14 right, this is only a temporary solution Feb 24 02:43:06 regardless Feb 24 02:43:12 just override http://developer.android.com/reference/android/app/ListActivity.html#onListItemClick(android.widget.ListView, android.view.View, int, long) Feb 24 02:43:16 in the activity Feb 24 02:43:25 Is it fairly common practice to add anonymous button listener in to the activity that calls it? Feb 24 02:43:26 and the views will be clickable Feb 24 02:43:50 pinballwizard I hope so, I do it all the fricking time Feb 24 02:45:38 heh t0mless, do you add the listern as it's own method to the activity class or inside the oncreate though? Feb 24 02:46:03 depends on how intricate the listener is Feb 24 02:46:17 i have already overridden it http://pastebin.com/aFnkL6FM Feb 24 02:47:21 and it's not being called? Feb 24 02:47:27 no Feb 24 02:47:49 not for this adapter Feb 24 02:48:05 woot, my sbt plugin is alive Feb 24 02:48:06 you don't need the v.setClickable() call Feb 24 02:48:20 ok Feb 24 02:48:31 t0mless: So if you just have a one off, like 3 or 4 buttons on a page and each one launches a new activity, you'll just go ahead and use the listeners in oncreate? Makes sense. Just didn't want to end up with unmaintainable (ugly) code at the end. Feb 24 02:48:40 i have added it lateron, it didn't work without either Feb 24 02:49:52 romainguy: do you maybe have an idea, why this is not clickable ? Feb 24 02:50:58 where do you set the adapter? Feb 24 02:51:49 holy hell so many lint warnings :( Feb 24 02:51:56 line 408 of the second file Feb 24 02:51:57 oh I see, from the asynctask Feb 24 02:52:58 your child views might be stealing the clicks somewhere Feb 24 02:53:54 i don't have a sim card in my n1 right now, i'm able to use the browser over my wifi, but when i try to connect to the market it says "No Connection". is a sim required to connect to the market? Feb 24 02:53:57 hmm ok, sounds interesting, do i need the parent param in getView? Feb 24 02:54:13 neekers, no Feb 24 02:54:29 hmm. wonder why i'm getting this message... Feb 24 02:54:58 neekers: try restarting the app Feb 24 02:55:02 how about the market website from the browser Feb 24 02:55:20 let me try Feb 24 02:55:30 neekers, and try launching market again Feb 24 02:58:46 i was able to get to the market with the browser Feb 24 02:58:55 rebooting the device Feb 24 02:59:11 i want to purchase an app. Feb 24 02:59:46 darnit, same thing **** ENDING LOGGING AT Fri Feb 24 02:59:58 2012