**** BEGIN LOGGING AT Wed Mar 07 02:59:58 2012 Mar 07 03:00:36 my playbook app got rejected Mar 07 03:00:36 grr Mar 07 03:00:47 why? Mar 07 03:00:55 ah some bollocks about it crashing :) Mar 07 03:00:56 welcome to the club Mar 07 03:01:06 mine got rejected because of google maps not supported Mar 07 03:01:07 and some nonsense because i used the "playbook" Mar 07 03:01:11 for the android market? Mar 07 03:01:11 what kind of tests do they do? Mar 07 03:01:31 for bb app world Mar 07 03:01:34 dunno Mar 07 03:01:36 QubeZ: what were you using instead? Mar 07 03:01:39 just play around with it i guess Mar 07 03:01:48 i wanna say hey send me some shit from logcat dont just say "it crashes" Mar 07 03:02:01 readme: instead? I use Google Maps API in my app Mar 07 03:02:05 so it got rejected Mar 07 03:02:15 rim are arses Mar 07 03:02:27 still not as hard getting on App World as it is on OVI Mar 07 03:02:34 QubeZ: last time I pushed an app to the market it didn't seem like there was a review process, how does it work? Mar 07 03:02:48 readme not market - Blackberry App World Mar 07 03:02:56 readme: this was rejected for the playbook RIM Market Mar 07 03:03:03 ohh phew Mar 07 03:03:03 there is some compatibility test they run Mar 07 03:03:11 screw RIM Mar 07 03:03:12 i have many apps on there alread bt only for BB Mar 07 03:03:18 I've heard too many bad things about RIM Mar 07 03:03:20 readme: https://bdsc.webapps.blackberry.com/android/bpaa/ Mar 07 03:03:23 ya screw RIM Mar 07 03:03:28 i tried once, rejected... said fuck it Mar 07 03:03:32 worst thing about rim is blackberry dev Mar 07 03:03:36 To Do Mapr will live on Google Play tomorrow night :) Mar 07 03:03:40 so comical it hruts, im suprisedthey got any apps at all Mar 07 03:04:58 gaz`, if you end up figuring out why it crashes and get it approved, you still get the free playbook Mar 07 03:05:05 yeh! Mar 07 03:05:08 ill try spend some time Mar 07 03:05:21 veryhard without the device tho Mar 07 03:05:27 Does the Eclipse object inspector always take 47 decades to populate or is something wrong with mah stuff? Mar 07 03:05:27 as long as the original submittion was in the giveaway promotion period Mar 07 03:05:29 guess illjust tyr make it crash on my android tab Mar 07 03:05:34 gaz` tehre is a simulator, but it sucks Mar 07 03:05:41 yeh i triedit, slow and NASTY Mar 07 03:05:45 yea Mar 07 03:05:50 my app didnt even run properly on it Mar 07 03:05:56 mine got approved, they should be shipping my playbook soon Mar 07 03:05:59 only know it works as i sent it to someone with aplaybook Mar 07 03:06:18 issue is you can't connect to it with adb Mar 07 03:06:19 im sick of all these competitions Mar 07 03:06:22 oh you get a playbook for putting an app out there? i was just trying to get more exposure Mar 07 03:06:26 i keep getting into final and winning nothing Mar 07 03:06:31 so you have to put like aLogcat on it Mar 07 03:06:48 no adb thats so lame1 Mar 07 03:06:49 ! Mar 07 03:06:54 QubeZ yea, if it was submittied before march 3rd Mar 07 03:06:58 you can trust rim to do everything wrong Mar 07 03:07:05 i think they extended the deadlien t0mless Mar 07 03:07:09 to march 12th or something Mar 07 03:07:14 that was the extension Mar 07 03:07:19 it was orginally feb 17th Mar 07 03:07:21 another one tho i think Mar 07 03:07:25 lol Mar 07 03:07:28 oh maybe im wrong Mar 07 03:07:31 too many playbooks Mar 07 03:07:32 but i dont think so Mar 07 03:07:32 well like all big companies... they do things right, right up until they get too big to control it... then they do things wrong.... then they die off Mar 07 03:07:35 thats life Mar 07 03:07:38 i got mine in then saw the extension liek an hr later Mar 07 03:07:55 yeh Mar 07 03:09:26 readme: you're Tom Dignan? Mar 07 03:09:48 from stackoverflow answers like a billino times? Mar 07 03:10:31 im gonna get into unity3d soon Mar 07 03:10:35 looks nice Mar 07 03:12:52 lol, the humble bundle activate device code: FUC3 Mar 07 03:13:34 my virgin eyes Mar 07 03:13:48 anyone know of a free tool to transcribe a wav file? Mar 07 03:14:05 When I modify my assets, relaunch via eclipse, and updated assets are not included in the new apk - whose fault is it? Mar 07 03:14:25 canadiancow: I am not sure if it can do what you want it to do, but WP 7's Phone SDK includes a sound file manip tool Mar 07 03:14:45 i want voice recogntion for the whole file Mar 07 03:14:49 i want it to spit out a text file Mar 07 03:14:53 OHHH wait transcription Mar 07 03:14:58 sorry I had a brain fart Mar 07 03:15:12 there isn't a google voice api for that? Mar 07 03:15:14 DrPenguin: oh the stench. Mar 07 03:15:30 canadiancow: http://www.nch.com.au/scribe/index.html Mar 07 03:15:39 no Mar 07 03:15:40 i tried that Mar 07 03:15:43 thinking the same thing as you Mar 07 03:15:47 it just plays teh file Mar 07 03:15:49 so you can type Mar 07 03:15:49 T_T Mar 07 03:15:57 boo Mar 07 03:16:09 Thats f'ing dumb Mar 07 03:16:10 isn't there a google API for voice recognition though? Mar 07 03:16:27 I read that some app was using it... Mar 07 03:16:31 fak what was that Mar 07 03:18:09 t0mless: android.speech has speech recognition apis Mar 07 03:18:47 canadiancow you know, you could speak / sing the wav file using one of those apis :P Mar 07 03:19:00 ugh Mar 07 03:19:09 nevermind i'll just tkae 7 minutes of my life to listen to it Mar 07 03:19:13 and try to find what i want Mar 07 03:19:19 This was something different, it took your voice and then sent it to a google server to get processed Mar 07 03:19:20 its a recording of a phone call i had earlier Mar 07 03:19:28 lol Mar 07 03:20:03 t0mless: I believe that is what google voice recognition does. It won't work without a network connection. Mar 07 03:20:40 well, if there is a public api, and if it's as good as the google voice voicemail transcription you probably won't get what you're looking for anyway Mar 07 03:27:42 gaz` anything you think i should do to prepare for a dev lab? Mar 07 03:28:18 no :p Mar 07 03:29:24 I have ActivityA >> startActivityForResult(ActivityC) -> ActivityC >> putExtra("STRING", some not null value). When ActivityA goes to get those values, the extras are null. I do the same thing with ActivityB in place of C, and it works. Is my intent not getting passed as I think or is there something I have to do when making multiple activity calls from a single Activity? Mar 07 03:29:59 did you use setResult() in ActivityC? Mar 07 03:30:19 I did. Mar 07 03:30:45 and you used the method signature with the code and intent? Mar 07 03:30:57 Yep. Mar 07 03:31:08 Show us your code Mar 07 03:31:15 and you're looking for the intent result in onActivityResult()? Mar 07 03:32:06 Yeah. Mar 07 03:32:27 MalRD: show us the code (per DrPenguin) Mar 07 03:32:34 show us what works and show us what doesn't Mar 07 03:41:38 http://pastebin.com/KrhVUYUV The first method is the onActivityResult in ActivityA. case(0) gets called properly when ActivityB returns. It then starts the intent for ActivityC. When the onButtonClick() method runs, the data is correct (and the result Intent has the correct data). Once it gets to case(1), though, the extras are null. Mar 07 03:45:43 and now that I look at it, I'm retarded. Mar 07 03:46:38 lol what did you do Mar 07 03:47:21 Failed to read my log messages. Mar 07 03:47:29 DERP Mar 07 03:47:31 03-06 22:15:07.815: W/Bundle(762): Key TEST_DATA expected String but value was a android.text.SpannableString. The default value was returned. Mar 07 03:47:55 oh yeah, you wanna invoke .toString() Mar 07 03:49:12 canadiancow - just to get the right version of the sdk going on your lappy i guess, last one i spent the whole thing trying to get eclipse to work Mar 07 03:49:33 lol Mar 07 03:52:22 that one is kinda obvious because they tell you what versions will be required for the code lab etc Mar 07 03:53:09 You'd think i've been coding long enough to check ends of lines for ; when soemthing isn't working -_- Mar 07 03:53:15 stupid csss Mar 07 03:53:20 - one s Mar 07 03:55:28 gaz` / wabz: Mar 07 03:55:28 Android SDK installed on your laptop - http://developer.android.com/sdk/index.html Mar 07 03:55:29 Development environment set up (Eclipse or your favorite IDE) Mar 07 03:55:29 An existing Android application for phone or tablet (provide package name) OR wireframes and requirements for an optimized TV application. If only coming with wireframes, at least one of the developers(s) should have some former Android experience. Mar 07 03:55:34 not very specific Mar 07 03:55:35 :P Mar 07 03:56:14 aka if you can't dev for android get your ass out of google tv dev and go write an android app Mar 07 03:57:14 Oh, failing at simple tasks reminded me: Lint told me to replace my LinearLayout > ImageView & TextView with a single TextView using an android:drawable, but that drawable isn't scaling to fix the TextView. halpbrainplz Mar 07 03:57:32 hmm the details of what sdk etc was in the confirmation email after they'd confirmed registration Mar 07 03:57:40 but that sounds like a different developer lab Mar 07 03:58:05 the one I was at last month was mostly about actionbar in the end Mar 07 03:58:22 the code lab part of it anyway Mar 07 04:00:52 No ideas about having the android:drawableLeft scale to fix the TextView height? Mar 07 04:04:06 anyone know why when i call setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); I get .IllegalArgumentException: View not attached to window manager - its a TabActivity Mar 07 04:05:39 oh seems to be because im using a dialog.. hmm Mar 07 04:48:35 hi, how do i access widgets within a resource (like R.layout.main)? Mar 07 04:49:12 mathstuf: once you inflate that view, findViewById will do it Mar 07 04:50:15 you might want to pull the code out of the layout into its own file, too Mar 07 04:50:24 then you can include it in the file with "" Mar 07 04:54:17 readme: is there an example of that somewhere? Mar 07 04:59:21 mathstuf: yeah http://www.curious-creature.org/2009/02/25/android-layout-trick-2-include-to-reuse/ Mar 07 05:16:25 is there like a terminal on android Mar 07 05:16:33 perform bash cmds etc Mar 07 05:16:35 yeah, go onto Play Mar 07 05:16:37 and look Mar 07 05:17:09 Play? Mar 07 05:17:14 yeah, what was Market Mar 07 05:17:26 on an app Mar 07 05:17:31 oh* Mar 07 05:17:31 hahaha nice to see you've picked up the new terminology so quickly :) Mar 07 05:18:05 ive been seeing Google Play news all over the place but just ignored it Mar 07 05:18:33 also google stole my idea Mar 07 05:18:44 eh? Mar 07 05:19:29 my online web based app retailer, where you dont need a market app to install other apps Mar 07 05:20:01 I fail to see how they stole it, unless this is an idea you implemented, or marketed, etc etc Mar 07 05:20:29 no, i talked about it months ago in here :P Mar 07 05:20:42 right.. but Google has had it for more than "months" Mar 07 05:21:12 not persay Mar 07 05:21:26 either way, they didnt steal your idea :P Mar 07 05:22:41 they're ever watching in here Mar 07 05:23:03 Do you really think Google is going to troll an irc for ideas Mar 07 05:23:25 of course, its the people who make up google Mar 07 05:23:41 * DrPenguin sighs. Mar 07 05:28:24 if your idea is so great, dont come on irc and mention it. Patent it, build it out, make money. Mar 07 05:39:05 hey guys Mar 07 05:39:10 yes? Mar 07 05:39:17 just launched my app https://play.google.com/store/apps/details?id=com.pandalaser Mar 07 05:39:18 :) Mar 07 05:39:36 only in US, can you guys view it? Mar 07 05:39:42 (not free) Mar 07 05:39:54 i viewed it Mar 07 05:40:11 PANDA! Mar 07 05:40:17 I Looked, not compatible with my phone and im in canada, but i saw it. Mar 07 05:40:34 heheh thanks DrPenguin! Mar 07 05:40:41 thx a lot Saban Mar 07 05:41:10 I'm still a lil bewildered by Android Market changes today Mar 07 05:41:26 seems like Google is focusing on games Mar 07 05:42:43 play is a dumb name Mar 07 05:42:47 why not market :/ Mar 07 05:43:16 it's a horrid name Mar 07 05:43:24 no u Mar 07 05:43:29 STFU COW Mar 07 05:43:32 What is googles marketing tactic here? I dont see the gimmick Mar 07 05:43:35 so i sent your resume to zynga, JakeWharton Mar 07 05:43:39 wut Mar 07 05:43:44 i didnt have all your details, so i just made some stuffu p Mar 07 05:43:45 who wants to be productive when they can play? Mar 07 05:43:50 you were in the circus from 2004-2009 ok? Mar 07 05:44:08 i'm not canadian Mar 07 05:44:20 i know Mar 07 05:44:23 canadiancow: highlighting farming background would help? Mar 07 05:44:25 you're circusian Mar 07 05:44:26 ;) Mar 07 05:44:43 i dont think farmville is the biggest game anymore Mar 07 05:44:50 pretty sure words with friends is king Mar 07 05:45:10 also poker Mar 07 05:45:13 JakeWharton did you see my new game? :) https://play.google.com/store/apps/details?id=com.zynga.scramble Mar 07 05:45:20 im pretty sure poker has nowhere near the users of wwf Mar 07 05:45:41 I DONT GET IT. THERES NO EGGS Mar 07 05:45:48 lol Mar 07 05:46:01 WHAT IS THIS TOM FOOLERY Mar 07 05:46:35 damn Mar 07 05:47:06 I hate this play nonsense Mar 07 05:47:25 but seems like games make money? Mar 07 05:47:37 you know what I hate? whenever I think about android I get hungry Mar 07 05:47:43 Android is feeding my obesity Mar 07 05:56:27 was wondering why it was taking weeks for a new google market front page on my phone Mar 07 05:56:34 official superbowl apps for 2 weeks ~_~ Mar 07 05:57:50 uih oh installing oregon trail: settler Mar 07 06:01:14 I dont know how the market games categories break down on your guys android devices, but the categories on mine need some work Mar 07 06:01:21 wru RPG category Mar 07 06:03:21 Hah, start up oregon trail. This game is not compatible with your device Mar 07 06:06:36 good to see ICS has made it's way to a total of 1.6% of devices Mar 07 06:06:47 really Mar 07 06:06:49 when S Mar 07 06:06:52 S2 Mar 07 06:07:18 * p_l suspects mods being major reason for increased ICS share ;) Mar 07 06:07:30 so those android stencils might be useful in 4-5 more years ;) Mar 07 06:08:08 Are there any decent strategy games on android? Mar 07 06:08:25 p_l: I reckon the % of people putting custom roms on their devices is tiny Mar 07 06:11:01 When I modify my assets, relaunch via eclipse, and updated assets are not included in the new apk - whose fault is it? Mar 07 06:11:18 vadi2: always clean Mar 07 06:11:48 eclipse doesn't even have a shortcut for that Mar 07 06:12:06 if you've modified image files locally or somethying you can probably just right click -> refresh for it to work properly Mar 07 06:14:08 hmm my device just updated to google play Mar 07 06:15:12 except I still have the "Market" icon and when I press it "This application is not installed on your phone" Mar 07 06:15:16 nice... Mar 07 06:15:25 Same. Mar 07 06:15:55 can't even find Play Mar 07 06:16:09 Ownnnned Mar 07 06:16:17 yeah it's not there in Applications at all Mar 07 06:16:28 mine was there Mar 07 06:16:37 the only reason I knew whats because it told me some apps needed updating and then made me agree to the terms again and called itself Google Play Mar 07 06:16:38 reboot the phone, thats what I had to do Mar 07 06:16:39 looked just like market, just little android face got the play icon Mar 07 06:16:55 wabz yea, mine did that too Mar 07 06:17:08 when I agreed it downloaded like 2 updates, then stopped Mar 07 06:17:18 I guess because then it finished downloading the new play app Mar 07 06:17:29 and then it was in my apps menu Mar 07 06:17:44 is there a way to send a LinearLayout (for example) in an Intent? Mar 07 06:18:07 ewww no Mar 07 06:18:14 well I mean Mar 07 06:18:18 hmm Mar 07 06:18:19 I suppose it's "possible" Mar 07 06:18:23 but why would you do that? Mar 07 06:18:25 you probably just want to send its id? Mar 07 06:18:37 I wan't my activity to be able to display a view sent to it Mar 07 06:18:45 send the id... Mar 07 06:18:52 a view that's created dynamically? Mar 07 06:18:57 yes Mar 07 06:19:00 oh Mar 07 06:19:01 heh Mar 07 06:19:10 possibly from another app Mar 07 06:19:24 Yea.. that's probably not going to work Mar 07 06:19:25 hmm this sounds too broad Mar 07 06:19:37 if views use drawables from other packages you probably won't get access to them Mar 07 06:20:27 I wonder if they have a new tablet market app Mar 07 06:20:28 for play Mar 07 06:20:40 mine doesnt look any different Mar 07 06:20:54 I think I can just accept a hashmap for now Mar 07 06:21:15 it's just to display a list of name value pairs Mar 07 06:21:22 well I know when market gets updated, sometimes the tablet version does not Mar 07 06:21:39 they might just be doing it in segments like they did before with the metro update Mar 07 06:21:50 my phone hasnt updated either, although its a hacked ICS Mar 07 06:22:20 im running the hacked ICS on an incredible but its my dev phone Mar 07 06:22:26 my razr still has gingerbread :( Mar 07 06:22:37 can I expose styles? I'm new to trying to work with other apps Mar 07 06:23:09 I have hacked ICS on my Bionic Mar 07 06:24:08 but I still use my Droid X as a "phone" Mar 07 06:28:08 his Jobs-ness once commented, people who love software like to build their own hardware Mar 07 06:28:25 I sure dont.. I hate hardware Mar 07 06:28:59 anyone know how to make a table layout show the lines? Mar 07 06:29:09 DrPenguin: well ... it's a bit subjective there ~ do you like building your own kernel etc? Mar 07 06:29:20 google play keeps timing out Mar 07 06:29:38 gaz` give them a border? Mar 07 06:29:42 shipit: as much as I do enjoy manipulating the kernel, I dont have the experience necessary to build my own custom kernel and have it work Mar 07 06:29:43 who the hell came up with "Play" Mar 07 06:29:47 t0mless how tho? Mar 07 06:29:57 i want each cell to be defined by a line Mar 07 06:30:05 theres no border=1 in android Mar 07 06:30:45 DrPenguin: true but once you have the source code, you can tweak the code to do what you want it to do Mar 07 06:30:59 shipit: yeah.. but like I clearly said, it comes down to experience Mar 07 06:31:30 my first custom kernel wouldnt boot on me because I was missing drivers that I had no idea I needed, was trying to make a stripped kernel that only had what I needed Mar 07 06:31:46 gaz` you can create a 9 patch border and apply that to the background Mar 07 06:31:57 aha yes i was gonna look into that actually thx Mar 07 06:32:03 just cant be arsed messing with 9patches Mar 07 06:32:20 ... ok, everything can be pirated Mar 07 06:32:29 * p_l just found mainframe OS on torrents Mar 07 06:32:38 DrPenguin: it took me some time but learning to hand build the kernel and the entire linux OS from scratch was quite rewarding and endearing Mar 07 06:33:32 :) Mar 07 06:33:33 DrPenguin: in fact, knowing that every piece of software was optimized for the very CPU, io drivers etc kicks ass Mar 07 06:33:53 shipit: maybe if I had the time I would, but just alone with school, I am doing 2 engire groups worth of coding because my group members are lazy and inept coders. then combining that with my other homework and work, I have 0 time to myself Mar 07 06:34:49 DrPenguin: ah. But whenever you can find time, I'd encourage you to walk that path Mar 07 06:35:25 shipit: I would like to, I find lower level programming like kernel manipulation to be quite intriguing, its kind of why I am making C my primary language, so Ic an do that cool kid stuff Mar 07 06:36:55 DrPenguin: that's why I find tremendous opportunity w Android. Without knowing lot of low level stuff, you can in effect compose a system from ground up and use Java to make the hardware do dedicated tasks Mar 07 06:37:10 but def master C Mar 07 06:37:33 but learn multiple *different* languages too Mar 07 06:37:56 C is just a portable assembler and can be really broken choice if your code grows big Mar 07 06:38:25 p_l: oh for sure, I can do a decent number of languages atm (C/C++, Java, Python, Bash) but thats no where near a useful level Mar 07 06:38:41 hey guys Mar 07 06:38:54 how do you run a main() method in eclipse? Mar 07 06:39:08 chups: what? that doesnt sound like android Mar 07 06:39:09 theres a script i'd like to test Mar 07 06:39:25 and it doesnt need me to compile the entire android app Mar 07 06:39:35 aaand Python and Bash are only midly differing, while Java gobbles syntax and differs little from C, while C++ is unholy cancer on top of C... I was talking *different* ;) Mar 07 06:39:52 DrPenguin Mar 07 06:39:53 p_l: how about tickle? ^^ Mar 07 06:40:01 I once took VHDL - it was awesome Mar 07 06:40:07 tickle? You mean TCL? :) Mar 07 06:40:12 yeah! tickle! Mar 07 06:40:13 when you code in android and you want to test out if a certain script is working Mar 07 06:40:17 what do you do? Mar 07 06:40:26 chups: what do you mean by "script"? Mar 07 06:40:31 mmm Mar 07 06:40:37 like you want to try out a regex Mar 07 06:40:38 shipit: I still need to sit down and get into grokking VHDL...there's a cpu/mobo project few years overdue Mar 07 06:40:47 DrPenguin: ok, TCL is ... weirder ;) Mar 07 06:40:56 chups: then... make some dummy routine to test it? Mar 07 06:41:02 i dont get this 9patch editor at all Mar 07 06:41:03 yeaps Mar 07 06:41:07 how do you do it? Mar 07 06:41:13 you go unit testing right away? Mar 07 06:41:19 p_l: I highly recommend it! lot of fun because there's no concept of concurrency, its all signals and slots Mar 07 06:41:24 p_l: im just learning it for quick bs-ee stuff. I need to redo a GUI for work and I figured TCL was nice to make some dummy prototype Mar 07 06:41:29 so its always concurrent Mar 07 06:41:49 chups: what? unit test? why would you unit test this Mar 07 06:42:07 just make up some dummybs code that can be used to test what you want Mar 07 06:42:40 eureka! Mar 07 06:42:43 i'll use maven Mar 07 06:42:49 http://stackoverflow.com/questions/1089285/maven-run-project Mar 07 06:43:13 thanks DrPenguin Mar 07 06:43:20 thanks? I didnt do anything Mar 07 06:43:32 >_>; Mar 07 06:45:04 DrPenguin: be wary of the fact that in TCL, everything is a command which is basically a lookup in command table... Mar 07 06:45:43 p_l: yeah I know that, does it matter? like I said, im just using this to make a prototype gui, it doesnt have to function, just look like what I am thinking of Mar 07 06:46:06 ... an hour ago I expected to cobble together MVS3.8j somehow, now I'm looking at getting z/OS in 6h o_O Mar 07 06:49:48 anyone else use github pages for creating webpages? Mar 07 06:51:54 t0mless works nice! thx Mar 07 06:52:39 can I do an AsyncTask in widget? Mar 07 06:52:47 gaz`: Are you a GIMP user? Mar 07 06:53:11 greymalkin only in the privacy of my own basement (no windows+photoshop :) Mar 07 06:53:42 Too bad. I've got a Script-Fu that I put together that makes 9-patch and 3-way scaling a breeze Mar 07 06:53:53 sweet Mar 07 06:54:00 yeh only used gimp once Mar 07 06:55:17 greymalkin I wouldn't mind seeing said script Mar 07 06:55:31 t0mless: https://github.com/greyson/GIMP-scripts Mar 07 06:55:46 (I had it queued up to give to gaz` anyway) Mar 07 06:56:21 :-) Mar 07 06:56:33 last time i wrote a script for a paint programwoul have been personal paint + Arexx Mar 07 06:56:39 The important thing to remember (to get all the sizes right) is to set the "useless" DPI setting that you can find in the "Scale Image" dialog to 480 Mar 07 06:57:23 hm, the more I think about Play, "Google" was the most original name they came up with, it's all downhill since then ... Mar 07 06:57:57 shipit: Google is supposedly a typo... Mar 07 06:58:11 says the one who calls himseldf 'shipit' Mar 07 06:58:29 p_l: it's a riff on Googol Mar 07 06:58:33 that is, one of the investors was in hurry and wrote Google instead of the name they said (which was Googol, I think) Mar 07 06:58:53 on a cheque for half a million, iirc ;) Mar 07 06:59:19 Yeah, that about covers the cost of the re-incorporation ;) Mar 07 07:01:17 looks like there are varying versions of that myth but definitely the last min change of plans checks out Mar 07 07:01:17 http://graphics.stanford.edu/~dk/google_name_origin.html Mar 07 07:01:29 Wikipedia says differently Mar 07 07:03:18 I remember when I first heard of "Google", it reminded me of Carl Sagan's Cosmos episode Mar 07 07:04:24 1997 Jesus Mar 07 07:04:27 theyve come so far eh Mar 07 07:07:23 i was writing my first commercial game back then Mar 07 07:07:30 and failing my exams almost because of it Mar 07 07:07:31 :) Mar 07 07:08:31 "stop messing around doing useless things like making games and study!!" Mar 07 07:08:33 hehe Mar 07 07:09:05 lolz Mar 07 07:09:10 gaz`: I take it from the implicit sarcasm that it turned out not to be a waste of time? Mar 07 07:09:33 yeh well it taught me computers coding and game dev :) which is how i live now Mar 07 07:09:42 not off physics, biology or german that i was studying! Mar 07 07:10:08 infact theyre making a movie of my game LOL.. well its a movie based on a game of the same name and mines the only one to exist Mar 07 07:10:18 Nothing like actually trying to code something that takes more than a week... I learned next to nothing in school except some words Mar 07 07:10:19 altho some unreleased wii game takes the credit on some sites :) Mar 07 07:11:13 game dev is the reason why i got into programming in the first place Mar 07 07:12:27 anyone noticed that in a table even if u centre both ways its not actually centred properly Mar 07 07:12:36 looks a bit messy ;-/ Mar 07 07:12:44 I wouldn't still underestimate physics and maths Mar 07 07:12:53 TableView? Or html Mar 07 07:13:29 oh actually i mean a textview infact Mar 07 07:13:39 vavirta true and i still suck at them Mar 07 07:13:49 yeah, me too Mar 07 07:14:30 Got pretty excited when in one course the topic was regular languages Mar 07 07:14:39 just a cratch from the top though Mar 07 07:14:48 as opposed to what Mar 07 07:17:58 I wish the android layout methodology were in more UI toolkits; it's about the only platform where I've been able to make something look just the way I wanted it to. Mar 07 07:18:13 wow Mar 07 07:18:17 im the opposite ;) Mar 07 07:18:25 Sorry, I'm talking too much tonight. Mar 07 07:18:52 been coding like 17 hrs now Mar 07 07:18:54 grr Mar 07 07:18:56 crunch Mar 07 07:20:55 someone tried to add me to steam earlier... pakerfeldt maybe? Mar 07 07:21:59 gaz`: And as far as the "center both ways" how are you doing that? Mar 07 07:22:16 centre vertical andhorizontal Mar 07 07:22:23 seems to be a few pixels out, ill show u a grab in a sec Mar 07 07:23:38 have a padding / margin set somewhere Mar 07 07:23:40 ? Mar 07 07:24:00 hmm ddms is hiding agani Mar 07 07:24:02 t0mless: ehm, no? Mar 07 07:24:16 no Mar 07 07:24:41 hey guys i have a question. how do i request su and then use a terminal command with the su authority? Mar 07 07:25:08 pakerfeldt sorry... guess I'll look through my logs Mar 07 07:25:08 tsukasa_: root your device Mar 07 07:25:16 but pretty sure they added the wrong person, whoever it was Mar 07 07:25:27 because I never got their request Mar 07 07:25:30 ali__: i mean programmatically Mar 07 07:25:51 t0mless: I barely know what you're talking about ;) Mar 07 07:26:03 here's my code http://pastebin.com/QVQY5vCH Mar 07 07:26:03 is showing an alert dialog from a widget the same as from an activity? I want to allow user to enter some information via widget view tap Mar 07 07:26:10 ahh it was someone else with a p name that's not in here anymore Mar 07 07:26:12 like the FB / Twitter widgets do Mar 07 07:26:13 my bad :) Mar 07 07:26:25 the su request is working but the later commands don't run as root Mar 07 07:26:40 from code you have to use the same process Mar 07 07:26:58 t0mless: me? Mar 07 07:27:00 QubeZ: I don't think so, You probably want to use an activity with the "Dialog" theme. Mar 07 07:27:06 greymalkin: ok Mar 07 07:27:19 i think i might have seen a stackoverflow on that awhile ago Mar 07 07:27:20 QubeZ no Mar 07 07:27:28 that was for tsukasa_ Mar 07 07:27:35 QubeZ: http://stackoverflow.com/questions/1979369/android-activity-as-a-dialog Mar 07 07:27:38 weird, i can't seem to get my extra from a widget into an activity Mar 07 07:27:45 t0mless: isn't that what my code is doing? Mar 07 07:27:57 t0mless: i'm not releasing or resetting the process variable Mar 07 07:28:09 I didn't look at your code Mar 07 07:28:13 so I have no idea Mar 07 07:28:18 t0mless: http://pastebin.com/QVQY5vCH Mar 07 07:29:10 you're resetting the process in the second call Mar 07 07:29:58 you have to use the output stream of the process Mar 07 07:30:11 http://muzikant-android.blogspot.com/2011/02/how-to-get-root-access-and-execute.html Mar 07 07:30:13 l2google Mar 07 07:31:38 thanks t0mless Mar 07 07:31:41 much appreciated Mar 07 07:32:18 not sure why you're trying to destroy all permissions on google voice though Mar 07 07:33:25 http://dl.dropbox.com/u/4194619/table.png if you look here for example at 33.3 theres more space to the right than the left Mar 07 07:34:06 are you sure you don't have a padding or margin set on your textviews? Mar 07 07:34:12 or table rows Mar 07 07:35:00 doesnt appear to be anything like that no Mar 07 07:35:10 you should be able to just put @android:gravity="center" on all your table rows Mar 07 07:35:32 im using center_vertical|center_horizontal Mar 07 07:35:42 that would be the same Mar 07 07:35:54 Yuck. Mar 07 07:36:01 yeh Mar 07 07:36:05 ive noticed tis for yrs Mar 07 07:36:11 makes it look messy Mar 07 07:36:12 And... android:gravity="center" -- right? Mar 07 07:36:21 you could do it as @android:layout_gravity="center" on all your textviews instead Mar 07 07:36:38 same result Mar 07 07:37:05 no idea then :-/ Mar 07 07:37:25 yeh v weird Mar 07 07:37:29 some sort of bug Mar 07 07:38:26 could be something with the TableLayout you can set Mar 07 07:38:27 gaz`: what's layout_width? Mar 07 07:38:47 i think this is the layout height Mar 07 07:38:48 fill parent Mar 07 07:38:55 could be somethign to do with weight maybe?? Mar 07 07:39:06 weight only works for linear layouts Mar 07 07:39:12 ivan\ height why? Mar 07 07:39:17 Ivru Mar 07 07:39:25 yeh theyr ein a linlayout Mar 07 07:39:31 .... why? Mar 07 07:39:58 gaz`: don't know :) answering shipit Mar 07 07:40:06 t0mless erm Mar 07 07:40:13 not sure im hooked on linear layout Mar 07 07:40:26 so each cell is a linear layout? Mar 07 07:40:33 How are the apps written that use more than one language such as java and c? Do they have to switch between different ide? How do you manage that? Mar 07 07:40:34 no each row of the cell Mar 07 07:40:43 yea... that's pointless Mar 07 07:40:44 each row of the table sorry Mar 07 07:40:51 not sure if it is Mar 07 07:40:52 maybe Mar 07 07:41:08 also, add android:gravity=center to your textviews Mar 07 07:41:31 so they will put the text in the center of their view that is filling the parent/being split Mar 07 07:42:32 yeh ive done that Mar 07 07:42:59 maybe an odd number of pixels or somethign when it splits it up Mar 07 07:43:04 so it happens.. ? Mar 07 07:43:11 pastebin your table layout xml Mar 07 07:43:17 ok Mar 07 07:43:22 but ill get a proper ripping Mar 07 07:43:26 i always do when i paste code Mar 07 07:43:27 :) Mar 07 07:43:31 pastebin Mar 07 07:43:33 not here Mar 07 07:43:42 or do you mean from your company Mar 07 07:43:52 no i mean in here Mar 07 07:44:24 http://pastebin.com/WVBppX49 Mar 07 07:44:50 no doubt the use of 2 linear layouts will get some abuse flying my way ;) Mar 07 07:44:57 That's not a table layout... Mar 07 07:45:12 yeh no its not thats a single row Mar 07 07:45:26 you adding rows dynamically? Mar 07 07:45:30 yes Mar 07 07:45:56 you do have redundant linear layouts... Mar 07 07:46:05 yeh i noticed that when i pasted Mar 07 07:46:23 your weights aren't the same... Mar 07 07:46:31 sort of reusing code i did long time ago when i sucked, i still suck now so i have to still reuse it Mar 07 07:46:42 yeh i dont quite get weight but i had to do it like that to allow things to fit Mar 07 07:46:56 i dont want them all exactly same width really Mar 07 07:47:10 yo gaz` your LinearLayout's orientation is horizontal, so the layout_widths of members should be set to 0 for layout_weight to work Mar 07 07:47:18 0dp Mar 07 07:47:29 you should just use TableRow as the parent Mar 07 07:47:30 yeh but wont they all have same width then? Mar 07 07:47:39 get rid of those linear layouts Mar 07 07:47:59 end result will look the same tho right t0mless? Mar 07 07:48:07 gaz`: no, using the layout_weight, the widths will be computed to distribute across parent's width Mar 07 07:48:20 if you set the correct stretchColumns and shrinkColums and padding Mar 07 07:48:21 yea Mar 07 07:48:37 change the textviews to not have weight and be wrap content Mar 07 07:48:43 bah i can't get this damn dialog to launch from widget Mar 07 07:48:45 give them some padding Mar 07 07:48:49 created activity and set Theme.Dialog Mar 07 07:48:57 ill do some tweaking cheers Mar 07 07:49:04 altho its been a long day, i should do that next time ;) Mar 07 07:49:18 im happy with how it looks apart from the text isnt perfectly centred Mar 07 07:50:51 i do have one problem tho, ill show an image to explain it Mar 07 07:51:40 http://dl.dropbox.com/u/4194619/howto.png Mar 07 07:52:05 trying to work out how to do that - ive got the layout perfect apart from im not sure how to have the "H" above the M and % like that Mar 07 07:52:27 you can set how many colums an element spans Mar 07 07:52:34 I forget the exact xml attribute though Mar 07 07:52:38 spanColumns maybe Mar 07 07:52:53 hmm even with the way ive done it? Mar 07 07:52:57 or does it involve redoing it? Mar 07 07:53:29 would have to look closer at your full table layout Mar 07 07:55:28 yeh Mar 07 07:55:33 no idea how to do it really Mar 07 07:55:44 taken hours to get to this point Mar 07 07:55:52 maybe use the new gridlayout Mar 07 07:55:56 layout_columnSpan Mar 07 07:57:16 bugger Mar 07 07:57:19 hope i dont have to redo this Mar 07 07:57:31 you can do that display in a table layout Mar 07 07:58:03 yeh prob a smarter move Mar 07 08:03:03 hey, how do i find out if the layout phase has been done? Mar 07 08:03:11 i want to call myTextView.getLayout() Mar 07 08:03:16 but it keeps getting null Mar 07 08:05:41 now eclipse isnt repaiting the xml properly in the editor Mar 07 08:05:42 grr Mar 07 08:06:15 real men build their ui using vim Mar 07 08:06:22 :p Mar 07 08:06:50 t0mless haha i did it, using way too many linear layouts tho Mar 07 08:07:46 I used to enjoy html so id expect to be a natural at this but i aint Mar 07 08:09:14 Ivru: I do Mar 07 08:10:40 herp? Mar 07 08:12:03 gaz`: Is the background 9-patch? I think the content line might be off. Mar 07 08:12:12 Ivru: http://xkcd.com/378/ Mar 07 08:12:15 :P Mar 07 08:12:20 dandaman, lots of herp indeed Mar 07 08:12:39 I have an intercept and a desire cdma running ics and an epic running htc sense all sitting on my desk right now Mar 07 08:13:10 and none of them have camera working to take a pic of it Mar 07 08:13:11 -_- Mar 07 08:13:17 vavirta: didn't know this one. Very nice :) Mar 07 08:13:20 how do i tell whether the layout phase of an activity has been completed? Mar 07 08:14:19 dandaman: You might be looking for 'onResume' Mar 07 08:15:11 greymalkin: will i be able to set on click listeners and addView to a tableRow in there? Mar 07 08:15:18 or since the layout phase is over it'll be too late? Mar 07 08:16:44 dandaman: You can do that in anything from onCreate to onResume -- just make sure the 'setContentView' has been called (usually the second line in 'onCreate' Mar 07 08:17:14 It might help to read up a bit more on the activity lifecycle. Mar 07 08:17:28 can u set fill_parent pragramatically? Mar 07 08:17:57 gaz`: yes, of course Mar 07 08:18:07 how do you do it Mar 07 08:18:13 gaz`: Yeah, but you have to use the LayoutParams from the containing class. Mar 07 08:18:30 greymalkin: no need to set the width or height Mar 07 08:18:38 these parameters are members of the base LayoutParams class Mar 07 08:18:40 aha ViewGroup.LayoutParams.FILL_PARENT Mar 07 08:18:55 gaz`: Could you post the background.png (or, hopefully background.9.png) from the table we were looking at. Mar 07 08:19:14 i have a 9 patch for each cell Mar 07 08:19:17 is that what u mean Mar 07 08:19:58 romainguy_: They still need to be set on the containing instance, rather than the field itself, though. Mar 07 08:20:01 gaz`: Yeah. Mar 07 08:20:11 just one of them should do. Mar 07 08:20:33 greymalkin: no Mar 07 08:20:51 http://dl.dropbox.com/u/4194619/darkgreycell.9.png Mar 07 08:20:53 if you have a View B child of a ViewGroup A Mar 07 08:21:09 you can just call B.getLayoutParams().width = MATCH_PARENT Mar 07 08:21:09 *facepalm* Sorry... yeah, I got confused. Mar 07 08:21:18 (and don't forget to call requestLayout() on B) Mar 07 08:21:35 yeah it's a bit confusing Mar 07 08:21:41 I wish we had made this API a little better Mar 07 08:21:59 Not really, just late, and I've been working on a BlackBerry application for the last few weeks. Mar 07 08:22:12 bb... = nightmare Mar 07 08:22:26 gaz`: ^^ Understatement. Mar 07 08:22:42 im seriously suprised they even have any apps Mar 07 08:22:55 Especially when they want to be compatible back to 4.5 ... I had to write my own gradient background. Mar 07 08:23:08 yeh im turning down bb jobs now Mar 07 08:23:24 Note that that was on top of the abstraction library I have to even give me a background in the first place. Mar 07 08:23:29 serious issues.. one of the worst is the 64k class limit Mar 07 08:23:46 and the weird 64k chunk limit thingy Mar 07 08:24:05 it becomes quite random getting an app to compile Mar 07 08:24:20 gaz`: bb-ant-tools is my best friend ever. Mar 07 08:24:48 I've been able to make it tolerable, even compiling for different versions in the same command. Mar 07 08:24:53 But... OT. Mar 07 08:25:02 You must be a sad person greymalkin :p Mar 07 08:25:23 arg ive lost that window that shows u the views u have in eclipse Mar 07 08:25:42 yeh i think i use bb-ant-tools too, i have some severely elaborate scriptign stuff to automate lots of builds Mar 07 08:25:58 greymalkin: https://gist.github.com/1991912 am i doing that right? my addViewMoreButton function calls getLayout() but it's still returning null Mar 07 08:26:40 dandaman: Nope, the lines are perfectly backwards. Mar 07 08:26:48 anyone know how to get the window back in eclipse that shows what things youve added like linearlayout etc, Mar 07 08:26:50 super, then setContent, then addView Mar 07 08:27:06 hahaha Mar 07 08:28:07 gaz`: It sounds painful, but it really gets easier if you edit the XML directly, then use eclipse as a preview agent. Mar 07 08:28:15 now ive lost another, damn i hate eclipse Mar 07 08:28:19 gaz Mar 07 08:28:21 Yes. Mar 07 08:28:28 it's the 9-patch that's screwing up your centering Mar 07 08:28:40 gimme a moment. Mar 07 08:28:46 it is?? Mar 07 08:28:52 weird Mar 07 08:29:34 great Mar 07 08:29:40 right as im ready to test this change and go to bed Mar 07 08:29:42 adb shits out Mar 07 08:30:45 oh because ive used a white line on either side greymalkin? Mar 07 08:30:57 the lines dont look thicker than 1 pixel tho Mar 07 08:31:40 greymalkin: damnit still getting a nullpointer exception Mar 07 08:31:59 gaz` Try this http://www.foosoft.us/~greyson/darkgreycell.9.png Mar 07 08:32:37 myTextView.getLayout().getLineCount() Mar 07 08:32:42 is giving me a nullpointer exception Mar 07 08:32:49 Y U NULL! Mar 07 08:32:59 thx greymalkin will try in a sec Mar 07 08:33:19 myText.getLineCount() Mar 07 08:33:53 dandaman: Sorry I didn't notice before... this should all be in 'onCreate' Mar 07 08:34:04 wtf Mar 07 08:34:05 google play Mar 07 08:34:08 (obviously changing the super.onResume() to super.onCreate() Mar 07 08:34:33 Does anyone else not like the sound of that? I feel like the name trivializes the applications in the market which are not necessarily for "play" Mar 07 08:34:36 greymalkin: same problem was happening when the call was in oncreate Mar 07 08:34:52 Mikellip: that keeps returning 0 Mar 07 08:35:13 dandaman: findViewById called after setContentView? Mar 07 08:35:38 readme i know what u mean, sounds great for games but maybe not for serious apps Mar 07 08:35:38 dandaman: You could also be using an id that isn't in that view. Mar 07 08:36:10 dandaman: paste your code, that line isn't your problem Mar 07 08:36:26 dandaman: your textview if probably not defined Mar 07 08:36:37 is* Mar 07 08:37:50 Mikellip: ok, here it goes Mar 07 08:38:28 wtf com.android.ddmlib.SyncException: Too many open files Mar 07 08:38:43 here's the java file Mar 07 08:38:46 https://gist.github.com/1991977 Mar 07 08:39:15 https://gist.github.com/1991986 Mar 07 08:39:20 is the xml file for the layout Mar 07 08:40:37 i have to quit n reload eclipse like 15 times a day Mar 07 08:41:13 gaz`: use intelli j idea :-) Mar 07 08:41:46 ^ this Mar 07 08:41:47 yeh im using it for one project Mar 07 08:41:49 seems nice Mar 07 08:41:58 but i need at least some gui editor Mar 07 08:42:07 just edit the xml Mar 07 08:42:16 the gui layout editors suck Mar 07 08:42:20 i prefer not to ;) Mar 07 08:42:21 gaz`: that thing blows anyways Mar 07 08:42:21 true Mar 07 08:42:22 they insert stupid things Mar 07 08:42:57 gaz`: t0mless is right, there is no layout editor that will satisfy Mar 07 08:43:03 editing XML is the only way Mar 07 08:43:15 You can autocomplete it anyway, it doesn't take that long. Mar 07 08:43:21 yeh, altho mattise satisfies nicely for swing Mar 07 08:43:43 it makes me look forward to gui design Mar 07 08:43:44 dandaman: you need to figure out why your TextView doesn't get set properly, when it gets passed it has no reference to an actual TextView. Can't really be much else... Mar 07 08:43:45 and intellij can import eclipse projects Mar 07 08:43:57 so there is no reason why you don't switch it over if you already have both installed Mar 07 08:44:10 gaz`: imo the design phase should not happen in the IDE.. it might as well be done in a mockup tool like pencil, balsamiq, or a vector program like inkscape Mar 07 08:44:11 Mikellip: k lemme getText on it to see Mar 07 08:44:30 but I don't doubt that tool you mentioned is superior to what we have Mar 07 08:44:55 dandaman: it's probably one of the setContentViews you use that removes it when you try to define the desc TextView Mar 07 08:45:04 http://code.google.com/p/android-ui-utils/ Mar 07 08:45:22 dandaman: once you use a view it's no longer a part of you won't be able to findViewById for the desc TextView Mar 07 08:45:34 dandaman: it's my guess without testing or reading too much :) Mar 07 08:46:16 Mikellip: nope the textView gettext shows the text i set it too Mar 07 08:46:19 readme that would rock if it exported xml Mar 07 08:46:54 which tool Mar 07 08:47:00 dandaman: ok, hmm Mar 07 08:47:02 pencil? Mar 07 08:47:34 Mikellip: i just want to be able to tell if the text in my textview is long enough to be ellipsized :( Mar 07 08:47:36 that last link u sent Mar 07 08:47:40 dandaman: are you sure the textview is being drawn before getLineCount? Mar 07 08:47:47 hence the isEllipsized function, but if you have a better idea of how to do it im all ears Mar 07 08:47:50 http://pencil.evolus.vn/en-US/Home.aspx Mar 07 08:48:00 Mikellip: thats why i asked about the layout phase Mar 07 08:48:01 dandaman: because you need to draw it before using getLineCount... Mar 07 08:48:13 dandaman: missed that Mar 07 08:48:14 and greymalkin told me i should put it in the onresume Mar 07 08:48:21 which i did Mar 07 08:48:25 but then i was having the same issues Mar 07 08:48:44 dandaman: that's the problem then, it doesn't get drawn Mar 07 08:49:14 but i see the text Mar 07 08:49:18 when the layout comes up Mar 07 08:49:22 why is the third level on arel wars impossible Mar 07 08:49:26 err when the activity comes up Mar 07 08:51:15 dandaman: hmm, that's ackward, I'm out of ideas :-( Mar 07 08:51:36 yes, i must go suicide now Mar 07 08:51:39 i have shamed my people Mar 07 08:51:40 hahaha Mar 07 08:51:54 ok, 17 hours of coding today Mar 07 08:51:55 when you set the Theme.Dialog, is there a way to tell it no title bar? Mar 07 08:51:56 time to take a break Mar 07 08:52:53 dandaman: you could try onStart() perhaps Mar 07 08:53:45 i dunno Mar 07 08:53:57 do you have any idea how to tell if a textview is going to be ellipsized Mar 07 08:53:58 ? Mar 07 08:54:18 maybe figure out a way to tell how many characters it will be able to hold given the maxLines setting Mar 07 08:55:05 dandaman same here.. Mar 07 08:55:08 silly Mar 07 08:56:31 did 36hrs once Mar 07 08:56:35 now that was silly Mar 07 08:58:08 I did 36 hours, once. In 6502. I remember being really proud of how clever some bit of it was, and it took me weeks to figure out how it worked after that. Mar 07 08:58:44 36 hours is insane Mar 07 08:58:53 i would have the worst migraine ever by that point Mar 07 08:58:55 hehe Gumboot Mar 07 08:59:31 greymalkin - hey thanks man that worked, care to explain how i can do it with my other ones Mar 07 08:59:36 it centres perfectly Mar 07 08:59:40 flourescent lights really hurt Mar 07 08:59:44 I just switched to my incandescent Mar 07 08:59:46 much better Mar 07 08:59:57 yeh i been using flux, *amazing* the difference it makes Mar 07 09:00:04 yeah I've got redshift here Mar 07 09:00:05 Banned in Europe! Mar 07 09:00:06 i can barely look at a normal screen during the night now Mar 07 09:00:11 flux doesn't work on multi-monitor setups in linux Mar 07 09:00:16 redshift is basically a fork of it Mar 07 09:00:17 :D Mar 07 09:00:19 Well, halogens and unfrosted are still allowed. Mar 07 09:00:22 nice Mar 07 09:00:27 anyway it's the best Mar 07 09:00:39 best program made for desktop in a long time Mar 07 09:01:02 yeh til u do some video editing with it running, or image editing Mar 07 09:01:13 can someone help update to ICS Mar 07 09:01:19 fortunately todays design work was in only one color :D Mar 07 09:02:32 gaz`, made that mistake 2 days ago Mar 07 09:02:45 whoops Mar 07 09:02:57 i have an asus eeepad transformer and havent gotten ICS yet, i cant do the system firmware update because it says no firware found Mar 07 09:03:01 they all came out very blue Mar 07 09:03:35 hehehe Mar 07 09:03:49 yeh so bloody annoying Mar 07 09:03:57 flux should detect photoshop ro something and warn u Mar 07 09:04:08 that'd be nice Mar 07 09:04:30 greymalkin yeh! i just copied your little 9patch and its working on my others, its clear im not quite getting 9patches yet :) Mar 07 09:06:49 gaz`: No problem... I was looking for the site that made it clear to me, but I can't seem to locate it now. Mar 07 09:07:32 yeh, id like to know about other things that support it and tricks it can do etc Mar 07 09:07:34 But... the intersection of the right and bottom borders determine where content gets put. Without those, I guess it was inferring that the repeating section (top and left) was also the content section. Mar 07 09:08:02 cool Mar 07 09:08:06 ill do some more research Mar 07 09:08:08 9 patch rocks Mar 07 09:08:11 teehee Mar 07 09:08:25 weird how no one uses animated png Mar 07 09:08:59 That's controversial. Mar 07 09:09:21 is there a way to update via .zip in airdroid? Mar 07 09:09:30 Regarded as a dirty hack by a lot of people, and it wasn't as high-tech as MNG. Mar 07 09:11:16 That said, I tried to make some video out of MNG, because it really was the best design for the job, and nothing could play it because everything was coded to assume it was a small animated image. Mar 07 09:11:37 gaz`: basically the black pixels on the top and left of the 9patch define the regions in which it is able to stretch Mar 07 09:12:02 I have made a tool for making 9-patch-images: http://draw9patch.com/ :) Mar 07 09:12:41 it's really simple and make you understand how it works Mar 07 09:13:03 Kannibal: pretty nice Mar 07 09:13:42 i wouldn't use it though, because it wouldn't fit into my workflow easily enough... there are serious problems with the regular draw9patch tool, try maximizing it and clicking a menu item (it won't work) Mar 07 09:13:59 if it could be more easy to fit into my workflow, I would use it Mar 07 09:14:06 really, I'd love if gimp or inkscape had a plugin Mar 07 09:14:18 hehehe Mar 07 09:14:24 drounse: #android-root might be able to help you, but you'd be going outside of official channels that way. Mar 07 09:15:09 Gumboot well it doesnt need to be rooted because asus came out with the update, but they have been having trouble with the devices actually updating Mar 07 09:15:39 drounse: Well, it sounds like you may regret trying to force the update when the vendor doesn't think it's going to work. Mar 07 09:16:26 Gumboot it is going to work, i just dont have an sd card reader on my computer, asus has put the firmware download on their website Mar 07 09:17:13 Gumboot basically my question is, can you update with airdroid if i put the update in the right folder? Mar 07 09:18:05 drounse: You should be able to use your device as a card reader. Maybe by tapping on the USB icon and saying that's what you want to do. Mar 07 09:18:16 This is a developer channel, anyway. Maybe #android would be better. Mar 07 09:18:55 Gumboot i am running ubuntu, getting it to mount is the hardest thing, snd no one answered me on any other android related channel Mar 07 09:19:08 plus you guys are devs youd know best Mar 07 09:19:50 morning chaps Mar 07 09:20:00 The -root crowd probably know how to do what you want to do, even if you don't intend to root the device. Mar 07 09:20:00 Kannibal great work on that site! Mar 07 09:20:30 thanks, it is still not finished, i want to make som marging between the image and the black lines Mar 07 09:20:38 :-) Mar 07 09:20:49 try drag and drop and icon or something to the site :) Mar 07 09:20:49 u do sites for others too? Mar 07 09:20:55 yes Mar 07 09:21:06 supposed to be doing one for a restaurant Mar 07 09:21:13 be nice to outsrc, depending on prices :) Mar 07 09:21:20 allright, cool :) Mar 07 09:22:01 u do php too? Mar 07 09:22:15 yepp, alot! :) Mar 07 09:22:16 ive got some great ideas for drupal modules but my php is utterly disgraceful Mar 07 09:22:16 php r easy Mar 07 09:22:58 if i had cash id get em all made Mar 07 09:23:13 i do html, php, C#, obj-c, flash Mar 07 09:23:55 and java of course! :D Mar 07 09:24:02 hehe Mar 07 09:24:14 i got a list of langs as long as my arm but i forgot them all :) Mar 07 09:24:17 Kannibal: What country/state are you in? Mar 07 09:24:23 looks good on the cv and nice for keywords to bring ppl in Mar 07 09:24:33 id only claim to be good at java really Mar 07 09:24:33 stockholm, sweden Mar 07 09:25:20 sweden makes the best sweets Mar 07 09:25:22 extra geek points if you know brainfuck Mar 07 09:25:42 swedes rawk Mar 07 09:25:53 i;m confused by the PreferenceActivity docs. Mar 07 09:26:59 i extended PreferenceActivity in a class: http://pastesite.com/32449 Mar 07 09:27:29 you don't want to use setContentView Mar 07 09:27:43 you want to use addPreferencesFromResource() I think Mar 07 09:28:01 oh ok.. Mar 07 09:28:32 the docs got updated to support the new PreferenceFragment and Headers Mar 07 09:28:38 but those only work on 3.0+ Mar 07 09:28:51 yes.. Mar 07 09:28:55 we target api level 8 Mar 07 09:29:11 so you want addPreferencesFromHeaders(); Mar 07 09:29:17 er Mar 07 09:29:20 Resource Mar 07 09:29:22 not Headers Mar 07 09:30:00 hmmm Mar 07 09:33:08 very confusing docs :D or maybe i just need to read moar Mar 07 09:33:39 i find all the docs confusing Mar 07 09:33:48 i tend to find the tutorials done by others easier to grasp Mar 07 09:34:08 maybe googlers are all super smart :) Mar 07 09:35:32 its ok when you get your head around what its doing Mar 07 09:35:37 but for newbies it is pretty tough Mar 07 09:35:40 i always wanted to write a book about coding java that makes it extremely easy to grasp, but it wouldnt be easy to keep it simple Mar 07 09:42:33 gaz, try head first java Mar 07 09:43:04 ooow, misread you sorry bout that Mar 07 09:43:17 ok, this kinda works now.. i can select from my values.. but the preferences screen doesn't show the selected entry Mar 07 09:43:44 chups i learned with java for students, nice book Mar 07 09:43:49 http://pastesite.com/32451 Mar 07 09:44:38 here's the relevant entries from strings.xml Mar 07 09:44:41 http://pastesite.com/32452 Mar 07 09:46:45 oh, the list displays the title and not the current selection :D Mar 07 09:46:47 ok.. Mar 07 09:47:25 how come you're using @+arrat Mar 07 09:47:28 @+array Mar 07 09:47:32 surely its just @array Mar 07 09:48:03 you use + when creating an instance I.E an ID (@+id/test makes an ID, @id/test references it) Mar 07 09:48:24 CallumTaylor: oh ok.. Mar 07 09:49:31 CallumTaylor: @+id works to make references too Mar 07 09:49:37 yeah Mar 07 09:50:17 gaz: try head first, if you want to write something you need to at least look at it Mar 07 09:50:25 I'm looking into using tabs for the new action bar but it seems the content has to be a Fragment, which seems kinda limited to me. It means i can't Mar 07 09:50:49 have tabs with multiple Fragments Mar 07 09:52:44 No, FragmentInception is not allowed Mar 07 09:53:47 t0mless: Yeah. Does it not mean that if you use tabs you lose the benefits of fragments. Mar 07 09:53:57 how do you directly reply to someone in IRC? Mar 07 09:54:09 afreq: I guess you could put a fragment into a fragment into a fragment Mar 07 09:54:14 whoa, this is deep Mar 07 09:54:31 No FragmentCeption!! Mar 07 09:54:41 haha Mar 07 09:54:49 but, in general you only want fragments if you're going to rearrange them Mar 07 09:55:02 as the tabs are usually part of the rearranging, it doesn't make a lot of sense imo Mar 07 09:55:19 *rearrange them on different devices/screen sizes Mar 07 09:56:13 MDijkstra: I do want to rearrange them. Maybe i've not used actionbar enough but have you seen the shakespeare example? It's not unreasonable to want that setup within a tab so that on smaller screens/portrait mode that the extra imformation is loaded through a fragment Mar 07 09:56:29 woah bad sentence. sorry. Mar 07 09:56:45 well, that makes sense Mar 07 09:57:31 I guess, can't you build a hierarchy of fragments? Mar 07 09:57:34 haven't actually tried Mar 07 09:59:43 Hey guys i got a very strange problem in an AsyncTask... Mar 07 09:59:44 I am doing http requests in an AsyncTask - but i do that in an while(isBusy) loop, so that the requests get done every second. But now sometimes - totally randomly - the AsyncTask just stops doing anything - i dont get any requests on my server anymore... What can that be? Mar 07 09:59:47 MDijkstra: Yeah i've found a way to use multiple fragments inside a tab. However, it's mainly controlled programatically so i'm not getting the benefit of setting it up using layout files. Mar 07 10:00:09 afreq: also you're probably depending on undefined behavior then Mar 07 10:00:40 kazoooka: application died, phone crashed, network error, bug in asynctask caused exception ... Mar 07 10:00:58 MDijkstra: Yeah it seems like a work around. its really like they just didn't think if you used tabs you'd want multiple fragments. Mar 07 10:01:24 nothing like that - application is still running, the googletv device is still running, i get no exceptions and the network is up Mar 07 10:01:31 afreq: are the layouts to be rendered in each of the tabs similar? Mar 07 10:02:10 afreq: ie, instead of having one fragment per tab, have one fragment configuration and switch it out when a tab is pressed Mar 07 10:02:20 hey guys! is it possible to change the ip and port of the wifi adapter to certain values in an app? Mar 07 10:02:32 kazoooka: well work out where the asynctask stalled then Mar 07 10:02:40 wifi adapter? ip? port? Mar 07 10:02:46 O_o Mar 07 10:02:51 #android-root Mar 07 10:03:03 and I guess you don't understand IP very well Mar 07 10:03:08 *I'm guessing Mar 07 10:03:14 MDijkstra: Hmm i think i get you...but i don't get you. Let me try figure out what you mean. Mar 07 10:03:37 afreq: well, right now you're essentially swapping out the entire layout whenever you switch tabs Mar 07 10:03:37 The strange thing - when i debug its no problem at all, requests are done every second - also when i let the app run overnight - for hours there is no problem, but sometimes a few minutes no requests are done.... how should i check that asynctask ?^^ Mar 07 10:03:39 i simply want to change the ip address of the wifi adapter to 1.2.3.4 when i start my app. is this possible? Mar 07 10:03:50 afreq: or, a fragment container, I should say Mar 07 10:04:14 afreq: what if you simply make the tabs buttons and do a FragmentTransaction each time one is pressed Mar 07 10:05:03 nevermind... Mar 07 10:06:05 MDijkstra: I think i have that already...sort of. http://pastebin.com/VGVBsvMj Mar 07 10:06:54 how can i move a .zip folder to my root folder? Mar 07 10:07:02 MDijkstra: Each tab has it's own listener which assigns a fragment to one of the corresponding frames. Mar 07 10:07:05 afreq: ah, yeah Mar 07 10:09:03 MDijkstra: I think there is a way to say "if this is in the view, do this, else do this" but that means manually controlling fragments and such. I think i need to reconsider this application design. Mar 07 10:09:11 afreq: can't you simply modify google's fragmentpager for your own purposes, btw? Mar 07 10:09:41 is it possible for an activity to finish before showing any views? Mar 07 10:09:56 sorry, I'm not that familiar with the fragments system or the actionbar Mar 07 10:11:23 MDijkstra: Ok thanks for your help. I hadn't actually seen the FragmentPager...i'm thinking it must use a flipper of some sort but seems like it might be of use. Mar 07 10:12:47 Hello all. Mar 07 10:12:57 morning Mar 07 10:13:15 Can I specify a component to be extracted for IME, not just the text field? Mar 07 10:13:32 I have a list, and want to display the list row when editing, not just the text view. Mar 07 10:15:48 tapas: Yeah, in my experience, any 'finish' called before onResume will result in a no-show activity. I think this is even a pattern used to help choose activities for different versions of the OS in the same app. Mar 07 10:45:52 I am looking at different architectures so my app can use the same session when connecting to a server throughout the app Mar 07 10:45:53  Mar 07 10:46:22 my problem is that the remoteServerAdapter class will be closed when changing activities Mar 07 10:46:36 try making it static Mar 07 10:46:45 or have a super class that overrides activity with it in Mar 07 10:46:53 yeah that was going to be my question Mar 07 10:47:24 is static the best way or would it make sense to stored the session name and session id in shared preferences and load them in with the constructor? Mar 07 10:47:43 if its going to be available throughout the whole app, id make it static Mar 07 10:48:03 ok Mar 07 10:48:53 I have a lack of knowledge then. Where would I instantiate the class? Mar 07 10:49:10 so are all of your child classes extending Activity? Mar 07 10:49:39 for the UI yes Mar 07 10:49:54 ok then, make a new class and call it something like MyActivity and extend Activity Mar 07 10:50:05 then in your child classes, change it from extending Activity to MyActivity Mar 07 10:50:22 now what ever is in MyActivity, all your sub classes will have access to it Mar 07 10:51:09 ah ok Mar 07 10:51:23 thanks a lot I will try that Mar 07 10:51:28 np Mar 07 10:54:54 hi, would it be possible to do Google license check from native code? my goal would be to interwine the license check with some important calculations so that removing the license check would be difficult... Mar 07 10:58:51 CallumTaylor: I can't assign the class as static Mar 07 10:58:57 I get a compile error Mar 07 10:58:58 Illegal modifier for the class RemoteServerAdapter; only public, abstract & final are permitted Mar 07 10:59:06 Nyksy: what makes you think it would be difficult to remove? Mar 07 10:59:08 no you dont make the class static Mar 07 10:59:11 you make the instance of the class static Mar 07 10:59:43 ah ok Mar 07 10:59:48 that makes more sense Mar 07 10:59:49 so inside your MyActivity class you have an object say 'serverObject' you do 'public static ServerObject myServerObject' Mar 07 10:59:55 yeah Mar 07 10:59:59 I understand now Mar 07 11:00:05 then all the activities extending MyActivity will have access to that Mar 07 11:00:07 ;) Mar 07 11:00:38 pragma_: well at least more difficult than removing it from dalvik bytecode :) Mar 07 11:02:24 CallumTaylor: hmmm I have just thought of a couple of problems, I have different activities, map activities, list activities and activites, plus services that all will need access to the server object. So I wouldn't be able to make a super class that they can all use Mar 07 11:02:34 hmm Mar 07 11:02:56 hi Mar 07 11:03:02 tricky one Mar 07 11:03:08 Gumboot: re:android button, ah i get what you mean now, the android pins from MWC. Mar 07 11:03:15 I'm testing the android:textColorHighlight option, but I can't see any effect, why ? Mar 07 11:03:25 I think I will try saving the session details and loading them into the class every time it is initialized Mar 07 11:03:35 ok Mar 07 11:03:47 your help is much appreciated tho Mar 07 11:03:48 there might be another way you can get access to it Mar 07 11:03:53 yeah? Mar 07 11:03:53 its a bit of a mind fuck, but it might work Mar 07 11:03:59 haha Mar 07 11:04:00 go on Mar 07 11:04:09 so you make a variable in you main class called "self" Mar 07 11:04:22 so if you class was called "MainView" it would be "public static MainView self;" Mar 07 11:04:29 then in your onCreate method, set "self" to "this" Mar 07 11:04:44 then you can access it via "MainView.self.whateverobject" Mar 07 11:04:58 from different activities? Mar 07 11:05:01 yeah Mar 07 11:05:04 Err, don't do that Mar 07 11:05:10 but what if the main activity is killed? Mar 07 11:05:14 its a bit hacky Mar 07 11:05:18 well you make it static Mar 07 11:05:26 DEFINITELY don't do that Mar 07 11:05:33 That is a terrible idea CallumTaylor Mar 07 11:05:35 idk any other way then Mar 07 11:05:38 lols Mar 07 11:05:41 SimonVT: yeah I wasn't liking that idea Mar 07 11:06:03 I will give my idea ago, thanks again Mar 07 11:06:10 i think the only other way would be to pass the object to your other activity via bundle or something Mar 07 11:06:16 Why don't you just have an app class? Mar 07 11:06:33 Depending on what you're doing, use a singleton or a service or something Mar 07 11:06:37 It's the class that extends activity Mar 07 11:06:40 already suggested he have a super class extending activity Mar 07 11:06:47 but he has map activities and list activities Mar 07 11:06:54 use the one that extends application then Mar 07 11:07:13 how would you use that in your activity classes though Mar 07 11:07:40 you can get a handle to it via the activity Mar 07 11:07:40 How would extending a base activity help.. Each started activity is a new instance Mar 07 11:07:57 not if you have a static member Mar 07 11:08:13 You don't need to extend a base class to use a static Mar 07 11:09:00 public class MWC2012_App extends Application Mar 07 11:09:22 then in your manifest you stick in the application tag the name of that activity Mar 07 11:09:35 bah not activity, damn my fingers Mar 07 11:09:41 that application class Mar 07 11:09:56 oh sweet Mar 07 11:09:58 never knew that Mar 07 11:10:04 that will help me so much for future projects Mar 07 11:10:12 i must write a blog post on that Mar 07 11:10:16 then you just call getapplication Mar 07 11:11:05 http://developer.android.com/reference/android/app/Application.html for the reading Mar 07 11:11:38 It's what we use for our crash reporting tool Mar 07 11:11:44 Someone know what the best practice is to do http requests? Mar 07 11:12:00 i use my own REST class from my library Mar 07 11:12:03 hi Mar 07 11:12:06 http://developer.android.com/reference/android/net/http/AndroidHttpClient.html Mar 07 11:12:08 do I have to flash the recovery also if I want to test out my just compiled image? Mar 07 11:13:01 woot, finally got my layout perfect, only took 8 hrs :-x Mar 07 11:13:16 Does anyone know if there is any way to map a string of the form "sound_effect" to "R.raw.sound_effect" ? I guess it could be done with Java introspection ? Mar 07 11:13:23 Does it work on the note gaz`? Mar 07 11:14:18 note? galaxy note? Mar 07 11:14:32 i want to test on my htc flyer but my drunken friends wrecked the usb cable last week Mar 07 11:15:05 seriously need to replace it altho its a cable ive never seen before, could be standard now tho i thought the nexus one cable was obscure but its basically mainstream now Mar 07 11:15:06 kill them! Mar 07 11:15:35 indeed Mar 07 11:15:41 cable was all twisted and burned! Mar 07 11:15:41 Extmicro cable? Mar 07 11:15:50 i mean how the hell does that happen after a few beers Mar 07 11:16:02 you twist it up and set light to it Mar 07 11:16:02 maybe, im losing tough with cables these days Mar 07 11:16:06 hehe Mar 07 11:16:09 xroberx: Resources.getIdentifier Mar 07 11:16:20 Or, simply create your own hashmap at compile time Mar 07 11:16:41 but yeh some good work today :).. really need that cable hehe Mar 07 11:17:03 http://blog.callumtaylor.net/archives/126 Mar 07 11:17:07 o: anything i missed? Mar 07 11:17:45 yeh Mar 07 11:17:48 some examples Mar 07 11:17:53 i dont quite get it ;) Mar 07 11:17:59 okay ill add one in Mar 07 11:18:12 That's the gist of it really Mar 07 11:18:20 a link to the application class document would be nice Mar 07 11:18:26 SimonVT: thank you very much sir Mar 07 11:18:30 ok Mar 07 11:19:04 maybe some reference love for who told you it :P Mar 07 11:19:15 :P i didnt think a name would be enough Mar 07 11:19:17 nice blog tho Mar 07 11:19:18 you got a site? Mar 07 11:19:26 Nothing Android related no Mar 07 11:19:35 doesnt have to be android related Mar 07 11:19:54 dazcorp.co.uk it is then Mar 07 11:19:55 ive got android forums on my site but the spammers are the only ppl using em Mar 07 11:20:17 although a link to my gplus mebbe Mar 07 11:20:22 do they have decent urls yet? Mar 07 11:20:52 dont think so Mar 07 11:20:58 whats ur name on g+ Dark-Side Mar 07 11:21:04 ill add ya Mar 07 11:21:08 https://plus.google.com/103712551745434839608 Mar 07 11:21:10 o.o Mar 07 11:21:16 that work? Mar 07 11:21:22 yes Mar 07 11:21:26 coolio Mar 07 11:21:32 want me to use that? Mar 07 11:21:35 u got quite a few ppl i know Mar 07 11:21:48 i spy leeds romainguy jason hsu! Mar 07 11:21:57 All the cool kids Mar 07 11:22:04 yeh Mar 07 11:22:07 i know em in real life Mar 07 11:22:11 well not spoke to romain Mar 07 11:22:16 but other 2 i have :) Mar 07 11:22:29 i never get picked for tickets :( Mar 07 11:22:40 always get the short straw and other people get to go instead Mar 07 11:22:46 yeh Mar 07 11:22:51 i get into them things fine Mar 07 11:22:57 but i never WIN anything Mar 07 11:23:06 always get to last stage and no further Mar 07 11:23:21 I'm hardly going to pay my own money for tickets Mar 07 11:23:29 added u Mar 07 11:23:31 im gareth murfin Mar 07 11:23:57 Done and Done Mar 07 11:24:01 :-) Mar 07 11:24:07 im almost out of space Mar 07 11:24:13 sucks how u can only add 5k ppl Mar 07 11:24:26 google have been busy even g+ looks diff today Mar 07 11:24:32 Social networking by geek standards Mar 07 11:24:43 ur english Dark-Side? Mar 07 11:24:43 "nobody has more than 5000 people they like" Mar 07 11:24:50 I am indeed Mar 07 11:24:53 hehe Mar 07 11:24:56 u dont look it Mar 07 11:25:03 somehow u look like canadian or usa Mar 07 11:25:03 >.> Mar 07 11:25:15 alright Mar 07 11:25:15 Fat+Beard=Lumberjack Mar 07 11:25:19 added an example Mar 07 11:25:22 ah that could be it Mar 07 11:25:24 and references etc Mar 07 11:25:44 perfect CallumTaylor Mar 07 11:26:12 nice one CallumTaylor Mar 07 11:26:15 ^^ Mar 07 11:26:26 this is the most useful thing ive found out tbh Mar 07 11:26:37 buuut Mar 07 11:26:48 couldnt u just do MyApplication.mySecretPassword Mar 07 11:26:54 without any xml jiggery pokery Mar 07 11:27:08 thats the point in extending application Mar 07 11:27:11 where u from dark, from newcastle here :) Mar 07 11:27:14 It works better for complex objects Mar 07 11:27:15 its in the scope of all of the activities Mar 07 11:27:20 Essex Mar 07 11:27:28 but isnt any public static variable? Mar 07 11:27:32 ahh an essex man Mar 07 11:27:46 doesnt have to be static in the application Mar 07 11:27:55 aha ok Mar 07 11:28:09 cant see it being useful yet but maybe Mar 07 11:28:27 We use it for initalising the crash reporter Mar 07 11:28:45 ill be using it for statistic manager Mar 07 11:28:48 or database manager Mar 07 11:29:19 think thats normally where you set up google analystics too Mar 07 11:30:25 prob tiem to stop coding, done 21 hrs Mar 07 11:30:33 shame i wanted to get it all completed.. Mar 07 11:31:27 theres never a time to stop coding Mar 07 11:31:38 im sick and confused Mar 07 11:31:41 :-) Mar 07 11:31:43 and tired Mar 07 11:31:46 Lunch time is normally a good time imo Mar 07 11:31:50 and in need of bneer Mar 07 11:31:52 beer Mar 07 11:31:55 or hometime Mar 07 11:36:55 Hmm my +1's dont want to work Mar 07 11:40:45 hi all, I don't know how to write a login to a site in an android app, is there some tutorial? Mar 07 11:42:59 best thing i would do is to write an api that returns json Mar 07 11:42:59 time for some pretzel m&ms Mar 07 11:43:15 then using HttpConnection to call to it and handle the response Mar 07 11:43:28 yeh i was messing with json today, was a breeze to parse compared to anythign else Mar 07 11:43:41 i fucking love JSON Mar 07 11:43:45 we use it for EVERYTHING at work Mar 07 11:43:55 latest app uses every freakin single thing u can imagine to return data Mar 07 11:44:06 lol Mar 07 11:44:07 its insane, rss, csv, json, xml, etc Mar 07 11:45:00 * p_l is conflicted between ASN.1 and Protocol Buffers when it comes to talking to things that aren't JavaScript Mar 07 11:45:18 CallumTaylor: thank you, is there a tutorial about it? I never used it Mar 07 11:45:38 not that i have found, mostly done it from experiance Mar 07 11:46:00 best thing to do is to search for how to make a login script api Mar 07 11:46:15 ok Mar 07 11:46:19 then after search for how to call scripts using HttpConnection in android Mar 07 11:48:39 gaz`: you can use a regular USB cable with the Flyer Mar 07 11:49:36 really?? Mar 07 11:49:39 loooks weird Mar 07 11:50:02 Is the weird one charging too? Mar 07 11:50:45 it is weird, but regular cables fit as well Mar 07 11:50:49 might not charge as fast Mar 07 11:51:35 oh w00tski Mar 07 11:51:37 gonna try Mar 07 11:51:39 how do you get a ProgressDialog to use the default theme? i.e. holo on an ics device, whatever on a different device Mar 07 11:52:05 my charger one is fine, it wouldnt charge quick enoiugh with originasl cable anyway ran out faster than charged Mar 07 11:57:39 Leeds doesnt seem to fit Mar 07 11:58:29 I fit just fine Mar 07 11:59:18 also, the Flyer takes microUSB just fine as well Mar 07 11:59:21 Sure about that? Mar 07 11:59:40 I just plugged my SGSII charging cable into my Flyer Mar 07 11:59:56 and now I must go away from IRC to play games... Mar 07 12:00:03 What games Mar 07 12:00:04 ? Mar 07 12:00:13 angry birds? :P Mar 07 12:00:18 oh shit yeh Mar 07 12:00:24 weird as Mar 07 12:00:47 never had an android device that actually stays plugged in tho, if someone sneezes 4 miles awya it disconnects Mar 07 12:00:53 hello guys Mar 07 12:01:03 hi Mar 07 12:01:29 is it true that task killer can make my battrye life worse Mar 07 12:01:31 all mine so far has stayed plugged in even when moving it around Mar 07 12:01:37 miracle Mar 07 12:01:46 mine constantly plugs and unplugs itself Mar 07 12:01:46 on my tablet the USB port came unsoldered Mar 07 12:01:52 i got to virtually pray to get it to stay connected Mar 07 12:02:02 I took it apart safely though, I'm going to resolder it and superglue it after Mar 07 12:02:20 after successfully compiling and flashing that image I have no gmail in "accounts and sync" and there is no market. Where should I read about this? Mar 07 12:02:21 i did rough up the edges a bit, but it's kind of a beater anyway. Mar 07 12:02:27 awesome my app looks great on tab Mar 07 12:02:54 quite refreshing after coding j2me for 11 yrs Mar 07 12:03:15 Janhouse: flash or otherwise install the gapps package as well Mar 07 12:03:16 wow Mar 07 12:03:55 kosaidpo: task killers can do worse than that Mar 07 12:04:22 imagine your app is killed while it's writing data to its database or to the sdcard Mar 07 12:04:37 Pragmaso no need to use it ? Mar 07 12:05:36 This channel is mostly for discussing development. You might want to try #android Mar 07 12:07:22 bloody love this tablet Mar 07 12:07:35 * pragma_ regards gaz` with disdain Mar 07 12:08:24 id literally rather have an htc flyer than an ipad Mar 07 12:08:33 Xoooooooom Mar 07 12:08:40 altho im gonna try code again for iphone soon Mar 07 12:08:48 using J2ME :-D Mar 07 12:09:24 there's J2ME for android too (commercial stuff, was included in some phones from Samsung as a general APK) Mar 07 12:09:38 wow Mar 07 12:09:39 cool Mar 07 12:09:45 yeh im gonna be using CodeNameOne Mar 07 12:09:58 the sequel to LWUIT, looks pretty rocking, im on the private beta Mar 07 12:11:15 you can write an app in j2me and use the *decent* gui editor, then send it to the cloud and itll make a version for all platforms, amazing, if it works well its basically one of my fave things in computing :) Mar 07 12:13:22 Apple will be seething Mar 07 12:13:27 but its all legit Mar 07 12:13:42 maybe they will forget their silly hatred of java now anyway now jobsie is gone Mar 07 12:14:06 gaz`: java is permitted again Mar 07 12:14:13 what!!? Mar 07 12:14:29 Dark-Side: Pin! That's the word. Mar 07 12:14:33 gaz`: it was mainly done to spur Adobe CS release Mar 07 12:14:56 p_l - but theres no actual solution right, i mean u cant currently write java and run it, its just theoretically now been "unbanned"? Mar 07 12:15:16 I have strong feeling that Apple is trying to attack anyone doing multi-platform instead of being exclusive to their walled garden Mar 07 12:15:34 (the new Mac AppStore rules are... idiotic by design) Mar 07 12:15:47 Java's not worth building in. Nobody uses Java anymore. It's this big heavyweight ball and chain Mar 07 12:15:52 gaz`: you can by including runtime Mar 07 12:16:08 gaz`: java is heavily used, just less for GUIs Mar 07 12:16:10 gaz`: atleast in Finland alot of big stuff is being written in java EE Mar 07 12:16:11 p_l anyone done it yet? Mar 07 12:16:25 vavirta: everywhere, not just finland Mar 07 12:16:26 bad ass big stuff web things Mar 07 12:16:30 yeh i was quoting steve jobs, i personally adore java - altho lots of coders rip me for it Mar 07 12:16:32 and EJB3 is pretty nice Mar 07 12:16:37 yeah, but I don't have experience but just for finland :P Mar 07 12:16:47 java could be a lot better Mar 07 12:16:48 "You don’t want your phone to be an open platform. You need it to work when you need it to work. Cingular doesn’t want to see their West Coast network go down because some application messed u" Mar 07 12:16:54 So, after compiling the ICS for my Nexus S, I have no google sync and market. How can I fix it? Mar 07 12:17:01 gaz`: I like JVM, although it's not my favourite, hate Java the language though Mar 07 12:17:06 Jangal: #android-root Mar 07 12:17:14 Jangal: you need to grab a package of GApps Mar 07 12:17:26 look on cyanogenmod website Mar 07 12:17:43 so is there a jvm that runs on iphone etc? Mar 07 12:17:56 gaz`: you know what is funny? That argument about network going down is utter lie Mar 07 12:18:11 p_l - clearly its the most ridiculous thing ive read in years Mar 07 12:18:27 if it was possible to write an iOS app that could do so, iOS devices would be banned in most of EU Mar 07 12:18:40 how could any app bring down a network Mar 07 12:18:51 its like he has a knee jerk reaction to java and other stuff Mar 07 12:18:56 gaz`: oh, it is possible. Just not in the part available to iOS Mar 07 12:19:01 and obj-c is lame Mar 07 12:19:07 *baseband* can do shit with networks Mar 07 12:19:13 how is that possible i dont get it, its like saying a pc app can crash and brign down the net Mar 07 12:19:20 that's why you have to get it licensed Mar 07 12:19:49 gaz`: if the network is on shared medium (radio is one), you can Mar 07 12:20:08 still dont get it ;) Mar 07 12:20:33 Ethernet these days uses switched mode nearly exclusively, to the point you nearly never get collisions, but if you had hubs instead of switches, you can bring down the whole net Mar 07 12:20:55 by just spamming it Mar 07 12:20:57 http://pastebin.com/dBJkmHC2 <--- can i "cut off" the fractional part" in the to.String allready? any idea? Mar 07 12:21:09 p_l like ddos or something Mar 07 12:21:10 ? Mar 07 12:21:31 gaz`: well, to be fair GSM/UMTS are less robust than the internet Mar 07 12:21:34 Surfer2010 probably yes, why not try it Mar 07 12:21:35 gaz`: yes, as well as spamming incorrect data etc. on various channels, causing lockups Mar 07 12:21:43 gaz`: because they place more trust in the devices Mar 07 12:21:49 MDijkstra: anything on radio is less robust than a switched network Mar 07 12:22:04 p_l: true enough, but GSM in particular is very broken Mar 07 12:22:06 Surfer2010 often toString() is same as doing +"" Mar 07 12:22:07 s/radio/shared broadcast-only medium/ Mar 07 12:22:20 Still not very likly to bring down anything other than your local cells though Mar 07 12:22:39 Dark-Side: yes, but enough to interfere with, for example, calling 112 Mar 07 12:22:50 What you really need is a massive phone! Mar 07 12:22:51 gaz: and how would you write it then? .f2 ? Mar 07 12:22:52 damn my bloody artist is calling, he wants cash i got none :-x Mar 07 12:22:58 p_l: so there's some truth in that statement, it's just inaccurate because most phones enforce a rigorous radio/application split Mar 07 12:23:14 MDijkstra: except Symbian Mar 07 12:23:33 Surfer2010 f2? maybe just String percentageString = ""+format(myDouble); would work Mar 07 12:23:33 Yes well thankfully nobody writes apps for Symbian Mar 07 12:23:36 yeah, and most of those protections aren't bulletproff either Mar 07 12:23:45 *proof Mar 07 12:23:47 symbian is a nightmare Mar 07 12:23:55 * Dark-Side looks behind him at all the symbian developers Mar 07 12:24:07 lol symbian Mar 07 12:24:10 i doubt theres more than 5 symbian devs in here Mar 07 12:24:12 ..lol Mar 07 12:24:21 but this is kind the kind of bullshit the Grubers of the world spout Mar 07 12:24:22 lol symbian Mar 07 12:24:22 another one i cant believe they even got so many apps made Mar 07 12:24:27 MDijkstra: actually, except for overwriting radio firmware on a phone with unlocked bootrom, it's usually quite hard to damage it Mar 07 12:24:29 we've got... all of them? i think Mar 07 12:24:37 nokia's new phone, HEY LETS USE SYMBIAN! Mar 07 12:24:41 errrrr no. Mar 07 12:24:45 MDijkstra: s/Grubers/Goebbels/ you mean ? ;) Mar 07 12:24:49 p_l: well, I own a lot of devices where I know it's possible Mar 07 12:24:50 yeah :) Mar 07 12:24:58 p_l: my old motorola milestone, for example Mar 07 12:25:10 android is nice and all but its still not that much nicer than symbian imho Mar 07 12:25:22 Nokia don't have any symbian developers anymore Mar 07 12:25:23 cause Gruber was this funny pacifistic gay wehrmacht tank officer ;) Mar 07 12:25:26 i was expecting a decent OS that u can basically do cool stuff on Mar 07 12:25:32 but still doesnt exist.. Mar 07 12:25:50 MDijkstra: how could you interfere with baseband on it? Mar 07 12:25:52 they need to stick with WP7 Mar 07 12:26:00 what we need is AmigaOS on a phone Mar 07 12:26:03 :-D Mar 07 12:26:05 :D Mar 07 12:26:09 gaz`: no, we don't Mar 07 12:26:16 thats what i want Mar 07 12:26:17 last thing we need is more OSes Mar 07 12:26:17 WP7 is too expensive CallumTaylor Mar 07 12:26:20 p_l: there were some exploits in the baseband that allowed you to inject code into the BP Mar 07 12:26:21 BeOS Mar 07 12:26:24 its so nice thoygh Mar 07 12:26:28 it's time for a comeback Mar 07 12:26:28 i have a lumia 800 and i fucking love it Mar 07 12:26:31 such a great phone Mar 07 12:26:42 Yeah but you don't live in Africa Mar 07 12:26:45 my N1 almost gets tossed off my balcony daily Mar 07 12:26:47 gaz`: yeah, I couldn't install any application on such phone, thanks to it being wide open for any app Mar 07 12:26:49 true Mar 07 12:26:54 and my clients took back all the good phones they gave me Mar 07 12:27:00 Which is a massive market for handsets Mar 07 12:27:27 Zider: fuck no BeOS. No C++ APIs allowed ;) Mar 07 12:27:41 ;P Mar 07 12:28:29 though its microkernel beats the shit out of the bastard son of Mach in OSX/iOS Mar 07 12:30:37 CallumTaylor: I was given a Lumia 800 by Nokia... sold it a few days later Mar 07 12:30:46 why? Mar 07 12:30:49 its a great phone Mar 07 12:30:52 Leeds how did u manage that u jammy git Mar 07 12:31:04 firstly, no it's not a great phone - it's a midlevel phone running an obscure OS Mar 07 12:31:21 i love wp7 Mar 07 12:31:25 c# rawx Mar 07 12:31:29 just because its nothing like any other phone Mar 07 12:31:32 secondly, because my Galaxy Nexus was stolen two days after getting the Nokia, and the funds from selling it were put towards a replacement Mar 07 12:31:36 microsoft have really upped themselves with metro Mar 07 12:31:48 s/upped/topped/ Mar 07 12:32:13 it just shows that microsoft can make good products Mar 07 12:32:20 its still really imature as an OS Mar 07 12:32:25 but so was IOS when it first came out Mar 07 12:32:47 yeah, the problem with that is Mar 07 12:32:50 I'm personally not a fan of Metro, in the same way that I despise the Ribbon in Office products Mar 07 12:32:56 they don't get to perfect it for 3 years Mar 07 12:33:01 like Apple had the chance to Mar 07 12:34:35 Metro is way better than WM6.5 Mar 07 12:34:45 i still have a HTC Touch2 hidden in my underwear drawer Mar 07 12:34:49 2.8" screen Mar 07 12:34:52 yes, and losing one eye is better than losing both Mar 07 12:34:53 before i got my gnex Mar 07 12:36:31 Leeds is so thought provoking on irc, shame hes not like that down the pub :) Mar 07 12:36:51 how can i get a frame/line arround a Table in the xml file Mar 07 12:37:01 wahey i asked that easlier Mar 07 12:37:17 you can use a 9patch png in each cell to get lines, thats what i did Mar 07 12:37:40 there was 2 answers on stackoverflow too Mar 07 12:37:46 but more painful i think Mar 07 12:38:33 been at pc too logn i feel ill.. Mar 07 12:38:49 gaz`: I prescribe beer Mar 07 12:39:20 yeh i need it baaaad Mar 07 12:39:40 morning to all! Mar 07 12:41:25 does anyone have a good resources that explains clearly why services should be stopped when they've completed their current task? Mar 07 12:47:04 appel1: dunno the URL, but the android memory cleanup code picks services last Mar 07 12:47:08 or almost last Mar 07 12:47:30 appel1: so if you start many unnecessary services, you're holding on to memory that you really don't need Mar 07 12:47:47 MDijkstra: that argument unfortunately does not work on some devs Mar 07 12:48:06 yeah, well, if they want to write badly behaved software Mar 07 12:48:18 there's not much I can do Mar 07 12:48:22 true Mar 07 12:48:54 that's the only reason why you stop/start services as needed Mar 07 12:49:48 maybe battery conserve... Mar 07 12:50:45 appel1: I think MDijkstra's point is probably all anyone should need to hear... It's memory. The service doesn't DO anything unless you make it do something. It will sit there and hog RAM. Mar 07 12:52:51 if you need something to show the person, just paste the log. Mar 07 12:53:29 that argument didn't work on the devs for Spotify, Flickr, DoggCatcher and a few more :) Mar 07 12:53:52 Are you sure their services aren't doing any work? Mar 07 12:54:08 maybe send ddms screenshot... Mar 07 12:54:41 I think the "as needed" part meant "If you're not doing any work" Mar 07 12:56:15 speaking of work... Mar 07 12:57:02 overrated... :D Mar 07 12:58:25 Services are still killed before Applications Mar 07 12:59:41 p_l: no Mar 07 13:00:02 p_l: except for processes with a activity or service in the foreground Mar 07 13:01:12 appel1: the order of importance (the latter, the quicker killed) is iirc Foreground Application, Background Application, Providers, Services (or Services before providers), ..., empty app Mar 07 13:01:49 empty app is application without any active contexts (neither services nor activities) Mar 07 13:02:19 p_l: http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html#Lifecycle Mar 07 13:02:47 p_l: foreground process, visible process, service process, background process, empty process Mar 07 13:03:49 the actual list is slightly longer (that is, what is used by the memory reclaim task) Mar 07 13:04:44 p_l: since some don't even understand the simplified version I doubt the complete implementation would help ;) Mar 07 13:05:32 haha Mar 07 13:06:13 I believe some devs, *especially* when it comes to embedded stuff, should get compulsory courses where they have to work with very memory-limited systems :> Mar 07 13:09:43 would be nice if services were forced to show a status icon whenever they're running so that users can see what's going on better. like the flickr app that start everytime an sms is received for no other reason than dev laziness. Mar 07 13:12:22 foreground services are forced to show a status icon Mar 07 13:13:05 appel1: it would be nice if more devs knew about disabling/enabling components... Mar 07 13:13:55 p_l: yes Mar 07 13:14:27 p_l: and got it right, which seems very difficult for the dropbox devs :) Mar 07 13:14:57 hii Mar 07 13:15:38 im have this return from my JSON object: "/Date(1321867151710)/" Mar 07 13:16:04 i know how to convert it to a Date object.. Mar 07 13:16:15 appel1: still, I think I'll start by getting a better language to write in... ;) Mar 07 13:16:59 but how can i edit a json object in java directly? before deserializing it to a java object?? Mar 07 13:17:04 p_l: what language would that be? Mar 07 13:17:22 hi Mar 07 13:17:38 dannyD_: well, it's string before it's java object, and sadly strings in java are immutable, so I recommend just allowing the desrialization to happen, then manipulate the object trees. Mar 07 13:17:46 appel1: something less wordy than java Mar 07 13:18:05 i am thinking on developing android apps and need some general info about it Mar 07 13:18:25 is there a way of an app listening for hardware buttons even when in the background? Mar 07 13:19:04 what is the programming language used? Mar 07 13:19:22 Pro_Saud, http://d.android.com Mar 07 13:19:27 we aren't an answering service Mar 07 13:19:56 alankila i was thinking of building up a new string of the json.toString(), and replace the 'Date(1212..)' with a correct Date object format..kind of lame though! Mar 07 13:20:20 michaelnovakjr: where can i find an answering service Mar 07 13:20:48 Pro_Saud, don't be an ass Mar 07 13:21:00 dannyD_: I actually don't know a whole lot about the android's json abstraction. Mar 07 13:21:26 alankila what do you mean 'allowing the desrialization to happen, then manipulate the object trees.' ? do you mean, make it a java object then hammer on it? Mar 07 13:21:27 dannyD_: I imagine the object trees are set up as pointers that reference the pieces of the original json input string Mar 07 13:21:47 michaelnovakjr: i am just trying to find out before getting deeper if am going to develop on android Mar 07 13:21:51 so you have all the data in memory once, then object tree is built that represents this data and uses this string's characters for the values Mar 07 13:22:16 Pro_Saud, the developer website has all your answers. Most people with half a brain would start there. Mar 07 13:22:23 and then if you have done this parsing then you should be able to just update the object, and when reserializing it will build a copy that has the updated stuff -- it should be about as efficient as it can be. Mar 07 13:22:32 best thing to do is to go through the setup tutorial on the developer docs Mar 07 13:22:44 then download the example app from there and have a play around Mar 07 13:22:47 dannyD_: but yes, that is what I meant parse it, manipulate it, reserialize it. Why not do this? Mar 07 13:22:48 alankila another word for object trees? Mar 07 13:23:20 dannyD_: object hierarchy? :-p Mar 07 13:23:31 you know, what you get when you parse the json from string? Mar 07 13:23:33 ok :-/ Mar 07 13:23:44 an object Mar 07 13:24:16 alankila user = gson.fromJson(responceString, UserItem.class); Mar 07 13:24:27 sure, which references other objects. I just do not see why you don't want to do this, but if you want to, sure you can write a simple parser of your own that changes only a part of the json string. Mar 07 13:26:51 anyone know how to fix " Unable to open sync connection!" such an annoying bug Mar 07 13:27:29 or " com.android.ddmlib.SyncException: Too many open files" Mar 07 13:27:44 alankila oki, ill try to see if i can do what you said..thanks" Mar 07 13:27:45 " Mar 07 13:27:47 ! Mar 07 13:28:11 michaelnovakjr: thank you, please note that i have a lot of hard time life and i went to the dev site before coming here and sorry if bothered you Mar 07 13:31:51 CallumTaylor: disable and re-enable usb debuging on the device Mar 07 13:32:07 its so god damn annoying Mar 07 13:34:08 hackkiten is famous https://plus.google.com/114822401067576646327/posts/SKMQYjDTJV6 Mar 07 13:44:13 whats the best method after onCreate to get the height of a view Mar 07 13:44:23 anybody have a Galaxy Note or Desire HD? Mar 07 13:44:36 because obviously the layout isnt inflated in onCreate, ive tried onWindowFocusChange, but it doesnt get called when I go back into the view (im using a tabbing system) Mar 07 13:44:55 i need to use a method thats in the activity lifecycle that will always get called on activity creation Mar 07 13:45:53 CallumTaylor: consider using onStart? Mar 07 13:46:09 is that called after the layout has been fully inflated? Mar 07 13:46:33 yes, it should be Mar 07 13:46:41 ok ill give it a go Mar 07 13:46:57 hm, no my view's height is still returning 0 Mar 07 13:47:52 onResume does the same Mar 07 13:48:07 is it possible that your view's height is actually 0? :P Mar 07 13:48:11 nope Mar 07 13:48:20 it works in the onWindowFocusChanged Mar 07 13:48:24 but because im using tabbing system Mar 07 13:48:29 it doesnt get called when i go back to the tab Mar 07 13:48:32 .... oh. Mar 07 13:48:34 you're using tabs. Mar 07 13:48:38 gl w/ that :| Mar 07 13:48:43 ikr >.< Mar 07 13:48:44 (strongly consider using fragments) Mar 07 13:49:00 CallumTaylor: are you using fragments for your tabs? Mar 07 13:49:07 no, activities Mar 07 13:49:12 well use fragments Mar 07 13:49:26 its makes life way easier Mar 07 13:49:27 what benifits do i get Mar 07 13:49:43 cause I use a custom tabbing system I wrote, not the standard tab control Mar 07 13:49:51 you dont have to deal with opening/closing activities, its all in the same context Mar 07 13:50:14 tabs are also kind of deprecated at this point, and they'll only get harder to deal with Mar 07 13:50:20 fragments will also help you transition nicely to tablet sized layouts Mar 07 13:50:27 yeah Mar 07 13:50:45 i.e. on tablets display A next to B, otherwise just display B Mar 07 13:50:46 viewpager would be better than tabs Mar 07 13:50:55 depending on your application Mar 07 13:50:55 so how are fragments controlled, using buttons? Mar 07 13:51:00 o.O Mar 07 13:51:02 cant use view pager Mar 07 13:51:17 there is a fragment tabview example source Mar 07 13:51:18 CallumTaylor: take a look at the fragments documentation and tutorials Mar 07 13:51:28 it'll explain what fragments are, how they work, and how you can use them Mar 07 13:51:30 i use fragment tab view in my app Mar 07 13:51:43 it's a good amount of extra work to get started, but once you're going there's dividends in what you can actually do Mar 07 13:51:53 ive used fragments in a previous project, but i did using a view pager, and buttons which you could use to control which page is active Mar 07 13:52:08 anything can control the fragments Mar 07 13:52:09 but cant do that in this project Mar 07 13:52:20 tabhost/view, buttons, whatever Mar 07 13:53:18 http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/FragmentTabs.html Mar 07 13:54:01 :) Mar 07 13:54:06 thanks Mar 07 13:54:22 ill need to figgure out how I can work this in my library, weather I can change it or if I have to rewrite it all Mar 07 13:54:39 oh wait Mar 07 13:54:43 this would work nicely Mar 07 13:54:46 ;) Mar 07 13:54:52 if all you do is Fragment.instantiate Mar 07 13:54:56 to create the activity Mar 07 13:55:17 why do you need to create an activity Mar 07 13:55:24 i meant fragment Mar 07 13:55:28 ah :) Mar 07 13:55:40 thanks Mar 07 13:56:04 there are a few ways to do this Mar 07 13:56:07 but that is one example Mar 07 13:56:13 yeah Mar 07 13:56:19 i can see this working with my current tab control Mar 07 13:56:32 i have an on tabchangelistener i can use to detect the tab press Mar 07 13:56:41 yup Mar 07 13:56:59 the only other thing i needed to do was add a reloadtab in case you are overriding orientation or drawing or something Mar 07 13:57:06 and need to force the fragment to reload Mar 07 13:57:12 ok Mar 07 13:57:18 luckily all the apps I make are always portrait Mar 07 13:57:25 must be nice :P Mar 07 13:57:25 heathen Mar 07 13:57:29 ^^ Mar 07 13:57:59 damnit .. now that i made a free version of my app Mar 07 13:58:15 im finding all the problems that the people were refunding for and not reporting Mar 07 13:58:25 which app have you made? Mar 07 13:58:27 Who has a desire HD or Galaxy Note? Mar 07 13:58:28 best thing about free apps Mar 07 13:58:30 is the feed back Mar 07 13:58:32 yeah Mar 07 13:58:33 https://play.google.com/store/apps/details?id=com.djtachyon.android.VirtualTurntableFree Mar 07 13:58:37 there is the free version Mar 07 13:58:44 just released yesterday Mar 07 13:58:50 sweet Mar 07 13:58:52 ill download it Mar 07 13:59:04 gmorning all Mar 07 13:59:10 hola Mar 07 13:59:16 https://play.google.com/store/apps/details?id=com.cube.rca Mar 07 13:59:20 who translates those descriptions? Mar 07 13:59:22 this is the biggest one i've made Mar 07 13:59:29 biggest client Mar 07 13:59:32 CallumTaylor: cool.. rate me good and/or give me stack trace :P Mar 07 13:59:38 i will :P Mar 07 13:59:42 oh nice Mar 07 13:59:51 yeah I worked on the HBO android app Mar 07 13:59:56 nice Mar 07 13:59:58 and consulted on the Avis app Mar 07 14:00:10 not proud of that HBO app Mar 07 14:00:22 but i was brought on 75% of the way through to get it working Mar 07 14:00:26 because it was a disaster Mar 07 14:00:32 damn Mar 07 14:00:34 I also specs out all the streaming video codecs Mar 07 14:00:47 https://play.google.com/store/apps/details?id=com.hbo.android.activity Mar 07 14:01:25 none of the graphics/assets scale over 480x800 >_> Mar 07 14:01:28 how tough was streaming Mar 07 14:01:44 well it was just a matter of nailing down the formats Mar 07 14:01:49 i might need to do it for a starcraft casting stream Mar 07 14:02:04 they use Twitch TV for their streaming, im hopeing they have an API Mar 07 14:02:31 ended up going with 4 different qualities, 2 different resolutions, and sticking with progressive download H.264 for most compatibility Mar 07 14:02:42 im pretty proud of the quality we squeezed out of it Mar 07 14:02:48 this is a pretty cool app Mar 07 14:02:55 only thing thats annoying is the ad Mar 07 14:02:58 it blocks the whole UI Mar 07 14:02:58 haha Mar 07 14:03:00 hell yeah Mar 07 14:03:03 lol Mar 07 14:03:14 and it takes a long time to load the ad sometimes Mar 07 14:03:14 my competitors actually disable some functionality in theirs Mar 07 14:03:19 yeah well thats the point Mar 07 14:03:20 so its suck until it finishes Mar 07 14:03:21 nagware Mar 07 14:03:32 atm the ad hasent even loaded Mar 07 14:03:44 yeah im thinking of putting a timer in there Mar 07 14:03:49 i would Mar 07 14:03:51 but other than that Mar 07 14:03:53 really cool app Mar 07 14:04:06 yeah ive been slogging through NDK work for months on that app Mar 07 14:04:19 im afraid to touch the NDK Mar 07 14:04:22 looks so tedious Mar 07 14:04:29 it is Mar 07 14:04:32 ported 5 C/C++ LGPL libraries to Android NDK/ARM Mar 07 14:04:34 ndk itself isnt so bad Mar 07 14:04:35 jni Mar 07 14:04:37 boo Mar 07 14:04:40 yeah JNI is a bastard Mar 07 14:04:45 yeah i guess its just setting it up Mar 07 14:04:47 that will be a bitch Mar 07 14:04:53 in terms of code its fine Mar 07 14:04:59 its actually pretty easy apart from the JNI Mar 07 14:05:04 its just like 4x the work to integrate with c++ Mar 07 14:05:42 reviered Mar 07 14:05:42 yeah def Mar 07 14:05:46 reviwed* Mar 07 14:05:49 thanks man Mar 07 14:05:51 c++ itself aint a big deal Mar 07 14:05:55 also a bug Mar 07 14:05:59 cant press back button to exit app Mar 07 14:06:18 nope Mar 07 14:06:28 if you are in the middle of a performance you dont want to accidentally do that Mar 07 14:06:34 oh thats a good idea for a feature to remove in the free version Mar 07 14:06:37 is there anyway to exit the app then? Mar 07 14:06:40 menu Mar 07 14:06:47 ah Mar 07 14:06:50 menu ->quit Mar 07 14:06:51 Hello! Mar 07 14:06:52 fair enough Mar 07 14:07:00 im trying to make it professionally unusable for the free ver Mar 07 14:07:03 well you could have back to close the app Mar 07 14:07:08 but it will still run the background right?> Mar 07 14:07:11 if its a service Mar 07 14:07:21 Maybe this is a stupid question, but how do I make child elements of expandable lists clickable? Mar 07 14:07:40 I wrote a onChildClick method for the list items, but it doesn't work :/ Mar 07 14:07:42 CallumTaylor: I could, but again you dont want to be accidentally leaving the app Mar 07 14:07:45 I mean it doesn't get called. Mar 07 14:07:47 CallumTaylor: during a live performance Mar 07 14:07:56 DJTachyon: you can have a dialog that says, are you sure you want to exit Mar 07 14:08:03 I do that in all my apps Mar 07 14:08:05 CallumTaylor: true enough Mar 07 14:08:18 CallumTaylor: with a disable feature right? Mar 07 14:08:23 CallumTaylor: wish i could do that with the home button <_< Mar 07 14:08:31 yeah could do Mar 07 14:11:05 ugh i need to import the google fragment jar library to use fragments dont i Mar 07 14:11:25 latest sdk versions Mar 07 14:11:28 or compat lib Mar 07 14:11:40 honestly I dont know why they bother putting it anywhere BUT the compat lib Mar 07 14:11:55 yeah i used the support jar before Mar 07 14:11:59 anyone who wants to make their app remotely portable is gonna want to use the compat lib vs the latest Mar 07 14:12:12 and using compat lib requires designing the app a bit differently Mar 07 14:12:47 Is it possible to use AR technology and place an image in front of a monument? Mar 07 14:13:06 nzee: uh, probably, but that's kind of on you to design and implement. Mar 07 14:13:11 Hey. in my app I need to do a lot of things like having buttons light up, having them change a lot of times within the same activity and layout. There are around 50+ images ( 25, all with one that is for inactive or lit up ). I want to try to do this efficiently, or I could perhaps have a loading screen before. Currently, it seems to load pretty fast and doesn't seem like a problem, but I'm sure I'm not doing it e Mar 07 14:13:11 storing them in arrays of ImageViews, and then storing the images in arrays of ints, and then each time I want to change it's calling ImageView.setImageSrc(int);, and then calling it again to change back. Is there a recommended more efficient way to do that? Mar 07 14:13:50 NutterzUK: I'm not really sure what you're asking. Mar 07 14:14:05 lov, I agree. What parameters do you think I should have in order to place an image right there? Mar 07 14:14:24 I guess how costly is it storing huge arrays of images and changing the image on buttons / imageViews Mar 07 14:14:33 uh Mar 07 14:14:50 why are you actually storing the images Mar 07 14:14:52 ok, so, couple things. Mar 07 14:14:53 nzee: most AR either uses a tag which the camera picks up to know exactly where something is Mar 07 14:14:56 1) Consider using these: http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList Mar 07 14:15:03 nzee: or it uses gps location + tilt sensors Mar 07 14:15:27 Ah, this looks really handy ( reading ) Mar 07 14:15:35 This looks like exactly what I was looking for, something like this. Mar 07 14:15:37 2) You're probably not hitting efficiency limits by calling setImageResource a bunch Mar 07 14:15:41 but yeah Mar 07 14:15:52 just use a statelist and set the images as enabled or disabled or whatever Mar 07 14:16:04 dragorn, I cant use a tag as its in real world. I will have to use gps. I wanted to know what else will be required apart from gps data? Mar 07 14:16:05 I think its interesting seeing how people approach problems Mar 07 14:16:10 if that's not acceptable, consider http://developer.android.com/guide/topics/resources/drawable-resource.html#LevelList Mar 07 14:16:14 Yeah, I didn't think it was too bad as it's running ok on the emulator and on my device, i'm just wanting to double check because I don't want to kill peoples battiers / cause it to lag etc Mar 07 14:16:29 I am actively trying to better my knowlege of c++ and looking at the sort of questions people ask about c++, I am amazed Mar 07 14:16:35 NutterzUK: premature optimization.... Mar 07 14:16:47 Yes, probably Mar 07 14:16:51 Thanks lov, that's a huge help Mar 07 14:16:54 np. Mar 07 14:17:21 just make sure you don't keep static references to the imageviews or bitmaps or anything so that you don't leak contexts/activities Mar 07 14:17:37 It's a dissertation project, my tutor for it was my programming lecture and seemed to like making things as efficient as possible, so I just know some things will cause alarm bells for him, and it's always nice to do things the best way too. Mar 07 14:17:52 how do you clean up static references? Mar 07 14:17:55 to avoid leaks Mar 07 14:18:05 statelistdrawable is the right way to do that Mar 07 14:18:11 the best way is not to use them in the first place if you can Mar 07 14:18:24 if you need, you can subclass a button and add additional states etc Mar 07 14:18:42 http://developer.android.com/resources/articles/avoiding-memory-leaks.html Mar 07 14:18:56 lov read it, practice it, still fall short =0 Mar 07 14:19:03 :< Mar 07 14:19:20 I think in the course of developing android apps... its VERY likely that people will end up leaking contexts Mar 07 14:19:29 will it matter? probably not in most peoples cases Mar 07 14:19:45 google sets you up for failure =) Mar 07 14:19:46 ron_frown: code everything with fragments :P Mar 07 14:19:51 thanks lov, that's a huge help with those links. Sometimes it's knowing what to look for. I wasn't really sure exactly what I needed to be looking for, statelist is certainly good for some of the things i'm doing. Mar 07 14:19:59 ron_frown: so you only have one context Mar 07 14:20:02 DJTachyon - honestly my experience is that thats even worse Mar 07 14:20:02 :P Mar 07 14:20:05 dragorn, Is it difficult to work on AR stuff in Android? Mar 07 14:20:22 because the lifecycle of the fragments can exist outside the context of an activity Mar 07 14:20:57 I mean thats kind of the point... but theres a potential for wasting a lot of mem Mar 07 14:21:32 so if i use a fragment, how do i attach that to the tab view, do I get the view from the fragment and add it to a container or something? Mar 07 14:21:44 what? Mar 07 14:21:58 fragments can be included declaratively in layouts Mar 07 14:22:03 CallumTaylor: isnt that in the example? Mar 07 14:22:11 or can be stuck in a placeholder via a fragment transaction Mar 07 14:22:18 so in the example they're using a FragmentTransaction to add the gragment Mar 07 14:22:23 ah Mar 07 14:22:23 ok Mar 07 14:22:29 CallumTaylor: there are some other ways Mar 07 14:22:33 nzee: never done it. I know there are products that do it, so, it's not impossible Mar 07 14:22:36 CallumTaylor: i do it a bit different Mar 07 14:22:45 i just need to figure out how to get the fragmentmanager from the activity Mar 07 14:22:54 dragorn, Ok cool Mar 07 14:22:55 mTabManager.addTab( mTabHost.newTabSpec("player").setIndicator(mResources.getString(R.string.tabs_player), mResources.getDrawable(R.drawable.ic_tab_player)), PlayerFragment.class, null); Mar 07 14:23:08 oh balls Mar 07 14:23:14 stock tab control is absolute hot mess Mar 07 14:23:19 thats how i use it Mar 07 14:23:28 thats why I wrote my own tab system Mar 07 14:23:43 where did i reference this methodology from Mar 07 14:23:47 i cant even remember Mar 07 14:24:26 http://youtu.be/gJABLsZHO4U?hd=1 Mar 07 14:24:28 same here Mar 07 14:24:34 thats how it should have been done in the first place Mar 07 14:24:39 http://developer.android.com/reference/android/app/TabActivity.html Mar 07 14:24:41 ah Mar 07 14:24:48 it shows the fragment method in there Mar 07 14:25:01 i basically copied and pasted out of that implementation Mar 07 14:25:14 and added the reload tab because i override the orientation/config changes Mar 07 14:25:22 right Mar 07 14:26:02 it works awesome for me because i bind the service to the one root fragmentactivity and reference it with getActivity() Mar 07 14:26:07 in all the fragments Mar 07 14:26:23 yeah i can do that with my current system Mar 07 14:26:27 i just call getParent() Mar 07 14:26:48 not to mention the fragment animations are cute :) Mar 07 14:27:03 do fragment animations actually work both directions now? =) Mar 07 14:27:03 https://github.com/scruffyfox/X-Library/blob/master/src/x/ui/XUITabHost.java Mar 07 14:27:10 i made this like 8 months ago heh Mar 07 14:27:38 then you got https://github.com/scruffyfox/X-Library/blob/master/src/x/ui/XUITabjava Mar 07 14:27:42 then you got https://github.com/scruffyfox/X-Library/blob/master/src/x/ui/XUITab.java Mar 07 14:28:20 cool Mar 07 14:28:53 i may need to write another one for fragments then Mar 07 14:29:00 how do I make a dialogfragment with a custom view to be of maximum width? match_parent isn't working Mar 07 14:29:10 hahah Mar 07 14:29:11 veeti: max width of the screen? Mar 07 14:29:18 i dont think i can use this current system with fragments because fragments need fragment activity, and my tab uses tabactivity Mar 07 14:29:19 something like that Mar 07 14:29:41 veeti I've had that very problem, I havent been able to put my finger on what the solution actually is Mar 07 14:29:50 heh ive had a few workarounds Mar 07 14:29:51 https://github.com/scruffyfox/X-Library/blob/master/src/x/lib/Dimension.java Mar 07 14:29:58 all my dialogs are dialogfragments in my app Mar 07 14:30:00 use this, then call getScreenWidth() Mar 07 14:30:02 but seems like when I wrap the existing layout in a another layout Mar 07 14:30:02 and set it to that Mar 07 14:30:04 eg, linear Mar 07 14:30:08 or frame it works Mar 07 14:30:11 but then you have to do it in code Mar 07 14:30:30 set an internal layout of the dialog to screensize Mar 07 14:30:59 I'll try your suggestions, thanks Mar 07 14:31:37 or if you need it to be full screen Mar 07 14:31:41 why not launch an activity Mar 07 14:31:50 fragmentactivity Mar 07 14:32:07 and return results Mar 07 14:34:01 ugh we landed a contract this week that means im not going to see the light of day until the fall Mar 07 14:34:10 * DJTachyon is a sad panda Mar 07 14:34:37 So anybody have a Desire HD or Galaxy Note? Mar 07 14:35:03 nope Mar 07 14:35:08 grrr Mar 07 14:35:13 these bugs are buggin me Mar 07 14:36:29 how do i cast a class as a Fragment Mar 07 14:36:50 doing Fragment1.class says its invalid because an instance of 'com.x.x.fragment1' Mar 07 14:39:58 ah nvm Mar 07 14:40:06 i need to instatiate it using Fragment Mar 07 14:41:15 these bugs are buggin me << haha Mar 07 14:43:14 :P Mar 07 14:49:31 hey question Mar 07 14:49:43 how do i programmatically do the equivalent of pm disable Mar 07 14:51:57 packagemanager component disabling Mar 07 14:52:18 http://stackoverflow.com/questions/5624470/enable-and-disable-a-broadcast-receiver Mar 07 14:52:22 tsukasa_: you...don't? Mar 07 14:52:32 unless you're root Mar 07 14:52:33 it only works for your app though Mar 07 14:53:24 MDijkstra: i'm root lol Mar 07 14:53:37 can someone help me with something (seemingly) quite simple i am doing wrong? Mar 07 14:53:47 http://pastebin.com/DGTpdjJy Mar 07 14:54:07 whats the problem Mar 07 14:54:12 if I run it with 60 seconds as input, it will give me 318.XX weeks , 2.7 days, 23.9 hours and 59.X mins, and 60 seconds - any ideas? Mar 07 14:54:46 try doing 352.0? Mar 07 14:54:55 it may be messing up because of type conversions Mar 07 14:54:55 mikedg: do you know of a version that will work for not your app? if you're root obv Mar 07 14:54:59 really common problem Mar 07 14:55:04 aha... Mar 07 14:55:12 so like 60.0, 24.0, 7.0 Mar 07 14:55:19 will try Mar 07 14:55:24 tsukasa_: just use pm on the command lines Mar 07 14:55:38 Insayne: Your parameter is seconds, yet you set sec to seconds % 60 ? Mar 07 14:55:41 same way youd run any other root command Mar 07 14:55:49 this isnt the correct channel for this iscussio though Mar 07 14:55:56 ugh, thats already something SimonVT Mar 07 14:55:57 hello Mar 07 14:56:03 Insayne: minutes = seconds / 60 Mar 07 14:56:10 hour = minutes / 60 Mar 07 14:56:13 where's this 352 from? Mar 07 14:56:14 days = hour / 24 Mar 07 14:56:23 weeks = days / 7 Mar 07 14:56:33 grrr i need a gal note Mar 07 14:56:52 Insayne: just replace all your * with / Mar 07 14:57:06 Insayne: use integers, not floats. Mar 07 14:57:13 but I want floats Mar 07 14:57:14 heh Mar 07 14:57:16 .... Mar 07 14:57:21 as a result Mar 07 14:57:21 o_o Mar 07 14:57:22 oh gosh it's double :( Mar 07 14:57:24 well then you're going to have 2.7 hours or whatever Mar 07 14:57:28 and yes Mar 07 14:57:38 % is mod Mar 07 14:57:38 you need integers to use modulo Mar 07 14:57:44 so it will return the remainder of a division Mar 07 14:57:44 ok Mar 07 14:57:45 how do i change selection of a cursor of a cursorloader? i would like to filter query result by typing part of something into edittext. Mar 07 14:58:08 i have attached TextWatcher to my edittext, and put something like that into ontextchanged http://wklej.org/id/704025/ Mar 07 14:58:14 but nothing happens when i type Mar 07 15:00:02 im gonna go over to int Mar 07 15:00:17 * DJTachyon snickers Mar 07 15:00:58 dont use int for division Mar 07 15:01:50 I'm trying to set android:padding="5dp" to a linear layout, but it has no effect, do you understand why ? Mar 07 15:02:18 try 100dp Mar 07 15:03:19 modulus operator works fine for floats in java btw Mar 07 15:04:21 mod modulo modulus Mar 07 15:04:42 Insayne: OK I came up with http://pastebin.com/Jx6yb0NT but it'll probably require some fixes in the tests, I assumed C-like implicit cast-to-bool Mar 07 15:04:44 mikedg: with 100 dp, I get a big mess Mar 07 15:04:58 so 5dp is doing something :) maybe the default is 5dp Mar 07 15:05:23 GALAXY NOTE Mar 07 15:05:58 mikedg: thanks :) Mar 07 15:06:16 np Mar 07 15:09:42 how can i block HVGA devices in my manifest? Mar 07 15:10:22 i think you can only do it for densities Mar 07 15:12:00 http://developer.android.com/guide/topics/manifest/supports-screens-element.html#requiresSmallest Mar 07 15:13:23 I'm trying android:textColorHighlight="#ff00ff" in a text view, but I can't see anything changing in the text style, did I miss something ? Mar 07 15:16:08 How can I enable all RadioButtons within a RadioGroup? Mar 07 15:16:26 (some have been previously disabled) Mar 07 15:16:42 haha Mar 07 15:16:49 someone just left a review for my DJ app that it is slow Mar 07 15:16:52 the opposite of how you disabled them Mar 07 15:17:12 of course they failed to mention that they are using a 600MHz HVGA cricket device Mar 07 15:17:24 i hate having to develop for HTC Wildfire... Mar 07 15:17:33 but you'll be suprised the % of users with one... Mar 07 15:17:39 it is a ZTE X500 Mar 07 15:17:47 CallumTaylor: because it's hot Mar 07 15:17:53 i fucking hate the wildfire Mar 07 15:17:57 makes all my apps look so shit Mar 07 15:18:06 mikedg: drop it like its hot .. from the 45th floor of our building Mar 07 15:18:10 haha Mar 07 15:18:25 more qvga devices are coming out Mar 07 15:18:31 WHAT Mar 07 15:18:32 QVGA Mar 07 15:18:33 BULLSHIT Mar 07 15:18:36 Moto Charm FTL Mar 07 15:18:51 My Moto Q was hot .. in 2007 Mar 07 15:18:52 you can develop an app for me once android for Touch2 comes out Mar 07 15:19:04 mikedg: clever. I was hoping that I could make a single call on the RadioGroup vs. each RadioButton. Mar 07 15:20:00 ejb: yeah, i'm clever when i'm high drunk on watermelon vodka Mar 07 15:20:56 mikedg: pass that watermelon over here Mar 07 15:24:18 mikedg: yeah you totally can't call pm disable from within an app Mar 07 15:24:24 mikedg: it blocks it Mar 07 15:24:53 mikedg: noted Mar 07 15:25:02 sure you can Mar 07 15:25:07 did you call SU? Mar 07 15:25:14 how do i get the activity class from an intent object? Mar 07 15:25:18 yep. ill pastebin Mar 07 15:25:18 and then pm disable in the same process? Mar 07 15:25:22 ok paste bin Mar 07 15:26:02 hrm, is there no simple function to convert seconds into time in java ? Mar 07 15:26:04 mikedg: http://pastebin.com/b5FKMV9U Mar 07 15:26:10 datetime in python equivalent even Mar 07 15:26:25 are you on a rooted phone? Mar 07 15:26:31 yep Mar 07 15:26:49 it gets su just fine i can id and get the result of it Mar 07 15:26:58 http://unity3d.com/mobile/ free android + ios license today Mar 07 15:27:17 until 8 of april Mar 07 15:27:18 ... Mar 07 15:27:28 what do the results say Mar 07 15:27:30 oh april, thought march :) Mar 07 15:27:35 well free anyhow Mar 07 15:27:36 id:0 gid:0 Mar 07 15:27:39 lol unity Mar 07 15:28:28 yawn Mar 07 15:29:23 how do i get cls from intent? Mar 07 15:34:28 How do I go about installing my development version of my app on my device? Mar 07 15:34:42 you on windows? Mar 07 15:34:54 'ant debug' Mar 07 15:36:03 ipad Mar 07 15:36:09 greetings all, is there an easier way to get Tabs to "swipe" than to use a page adapter? Mar 07 15:36:12 is mine Mar 07 15:36:24 paradoxx: just use a page adapter Mar 07 15:36:37 With the tabs referencing fragments Mar 07 15:36:51 DJTachyon, Do you know of a good tutorial that explains Page adapters? Mar 07 15:36:51 fragment view pager yes Mar 07 15:37:16 http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabsPager.html Mar 07 15:38:26 DJTachyon, Thanks m8. Will look through it Mar 07 15:38:52 np Mar 07 15:39:13 paradoxx: remember to use the support library Mar 07 15:41:07 it's hard to get or find nice shadow effect on text, does someone have some suggestions ? Mar 07 15:42:57 has anyone successfully used fragment transitions? Mar 07 15:44:09 canadiancow|gtv: yes? Mar 07 15:44:17 in the support lib? Mar 07 15:44:25 canadiancow|gtv: you mean more than the built in ones? Mar 07 15:44:29 yes Mar 07 15:44:33 canadiancow|gtv: oh no Mar 07 15:44:36 lol Mar 07 15:44:54 maxagaz: you mean in a graphics editor? Mar 07 15:45:00 like im trying to do a custom animation Mar 07 15:45:03 like, say, scale to 0 Mar 07 15:45:05 or alpha to 0 Mar 07 15:45:08 and it just isnt working Mar 07 15:45:11 hmm Mar 07 15:45:25 yeah most i do is ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE); Mar 07 15:45:27 DJTachyon: actually, I'd like to have the same text effect as there is on the iphone Mar 07 15:45:38 maxagaz: the door is over there Mar 07 15:45:42 DJTachyon, i'll look at that Mar 07 15:45:53 DJTachyon: what do you mean ? Mar 07 15:46:13 maxagaz: android is not iphone .. but you dont like the built in text shadowing? Mar 07 15:46:32 canadiancow|gtv: Most I did was use some sliding animations from the framework.. but they don't stick through configuration change Mar 07 15:46:39 nah im using setCustomAnimations(int enter, int exit) Mar 07 15:46:46 and it just does not work Mar 07 15:46:59 DJTachyon: maybe I'm not setting it the proper way Mar 07 15:47:00 http://developer.android.com/reference/android/widget/TextView.html#attr_android:shadowColor Mar 07 15:47:46 yay Mar 07 15:47:49 tabbing with fragments Mar 07 15:47:58 i should commit this Mar 07 15:48:53 :) Mar 07 15:49:07 DJTachyon, How can I get access to the underlying layouts used? Mar 07 15:49:07 CallumTaylor: I'm on linux Mar 07 15:49:25 oh man Mar 07 15:49:29 devrel just said android is fragmented Mar 07 15:49:33 paradoxx: eh? Mar 07 15:49:37 hm, not sure how to install the drivers for android devices Mar 07 15:49:50 canadiancow|gtv: he's clearly talking about fragments Mar 07 15:49:53 no Mar 07 15:49:59 hes talking about google tv versions Mar 07 15:50:05 "it will be fragmented, but not as bad as phones" Mar 07 15:50:05 I have like 20 fragments.. That's very fragmented Mar 07 15:50:39 all they needed to do was to have a sepereate layer for manufactureres, then control the base OS versioning themselves Mar 07 15:50:55 then google roll out system updates while t he manufactuerer rolls out UI updates Mar 07 15:51:28 DJTachyon, For the swipe fragment file you sent me Mar 07 15:51:41 hey all Mar 07 15:51:49 i want to learn how to fix my phone, can anybody help me? :P Mar 07 15:51:56 paradoxx: access the layout? not sure what you are asking Mar 07 15:52:12 swingn00b, if you're not sure as to how to fix the bugs Mar 07 15:52:35 CallumTaylor: so I need a special driver to load apps onto my phone? Mar 07 15:52:42 then it's best not to do so because there's a chance of softbricking Mar 07 15:52:49 DJTachyon, I found it. I manipulted the url to get to the "../res" folder Mar 07 15:52:52 especially if you're using it as your main phone Mar 07 15:53:00 well to connect it to your computer to deploy apps from Eclipse Mar 07 15:53:03 you don't want a brick when you're going off for some important stuff Mar 07 15:53:14 ejb: you need adb! :P Mar 07 15:53:29 zhongfu, i agree Mar 07 15:53:39 but idgaf abt my phone, nothing too important Mar 07 15:53:45 i love learning more than using the god-damn thing Mar 07 15:53:54 swingn00b, if i were you Mar 07 15:54:01 i'd probably just get ics for the fun of it and try it out Mar 07 15:54:07 then revert to a nandroid of cm7 Mar 07 15:54:12 and stay there for a bit Mar 07 15:54:37 haha! :) Mar 07 15:54:41 fair enough Mar 07 15:54:58 nandroids of both Mar 07 15:55:02 so i can switch anytime i want Mar 07 15:55:24 fuck, it's midnight Mar 07 15:55:26 gotta sleep bye Mar 07 15:55:39 cya dudes Mar 07 15:55:40 beer time Mar 07 15:55:43 yyyyaayy Mar 07 15:55:48 gaz`: ... Mar 07 15:56:07 I'm trying to pretend working 'till 17:30. 30min left Mar 07 15:56:07 zhongfu, bye, thanks Mar 07 15:56:22 any of you guys have desire HD or Galaxy Note? Mar 07 15:57:04 he said android is fragmented again Mar 07 15:57:26 DJTachyon, only galaxy nexus, sorry Mar 07 15:57:34 yeah we all have Galaxy Nexuses Mar 07 15:57:39 my app works awesome on that Mar 07 15:57:46 but people are reporting issues with Desire HD and Galaxy Note Mar 07 15:58:17 k Mar 07 15:58:24 i get this install_parse_failed_inconsistent_certificates for no reason sometimes. Mar 07 15:58:31 the best i've got is a highly accessible galaxy note display set Mar 07 15:58:39 over at my telco's store Mar 07 15:58:53 i just ran the debug app yesterday, added some code today and tried to debug on the same device. Mar 07 15:58:55 yeah im about ready to walk in with my laptop to the AT&T store Mar 07 15:58:56 wtf? Mar 07 15:59:17 my laptop isnt exactly stealth though >_> Mar 07 15:59:39 moonlightcheese: you developed on two different computers. Mar 07 15:59:47 i didn't. Mar 07 15:59:51 right now, they only have iPad/iPhone, Galaxy Note, Galaxy Tab 10.1 and 7.7, Huawei MediaPad, Galaxy S2, HTC Flyer, LG Optimus Sol, Galaxy Ace, another random LG phone and Xperia Play Mar 07 15:59:55 o_O Mar 07 16:00:08 moonlightcheese: that's what the error comes from; different signatures for different apps. Mar 07 16:00:08 every once in a while i get this error for no reason. Mar 07 16:00:11 i don't get it. Mar 07 16:00:15 DJTachyon, just run ubuntu on it Mar 07 16:00:25 on your phone Mar 07 16:00:31 oh wait.. Mar 07 16:00:33 you can't :/ Mar 07 16:00:34 yea i know, i usually see it when trying to install a debug version over a release version, but that's not the case here. Mar 07 16:00:35 wait Mar 07 16:00:37 you can Mar 07 16:00:41 o_o Mar 07 16:00:42 and it's all developed on this machine. Mar 07 16:00:43 adb for ARM devices Mar 07 16:00:59 moonlightcheese: is it possible that your debug cert expired and a new one was created? Mar 07 16:01:04 ill just root it in the store and do adb over wifi Mar 07 16:01:22 and sit in starbucks next door Mar 07 16:01:43 lol DJTachyon Mar 07 16:02:11 just stick a usb <-> usb cable from gnex to gnote Mar 07 16:02:15 adb on arm Mar 07 16:02:16 no idea. Mar 07 16:02:30 DJTachyon: I found the way to make nice shadow effect, even much better than on the iphone :-) Mar 07 16:02:38 nor any idea how to find out. Mar 07 16:02:38 maxagaz: sweet Mar 07 16:02:55 zhongfu: that sounds cool Mar 07 16:03:01 zhongfu: need a mini to mini cable tho Mar 07 16:03:20 DJTachyon, i saw a micro male -> normal female Mar 07 16:03:25 cool shit Mar 07 16:03:32 micro male -> normal female Mar 07 16:03:37 don't suppose anyone knows a better way of learning about the market "api" than tcpdump & wireshark? Mar 07 16:03:38 normal male -> micro male Mar 07 16:04:31 You'd need a usb host mode cable for one end, or a usb host port on the device Mar 07 16:04:35 wongk: if you mean the networking api that market on device uses to talk to google, that's correct, because it's proprietary and undocumented. Mar 07 16:05:08 well.. you can connect mice and keyboards to gnex Mar 07 16:05:12 at least someone has done a good part of the work for me with: https://github.com/jberkel/android-market-api Mar 07 16:05:30 i'm pretty sure that if i bring my 15" laptop into my telco's store and connect it to the gnote there Mar 07 16:05:32 no one would mine Mar 07 16:08:38 debug.keystore: Date modified: 3/7/2012 Mar 07 16:09:00 is there a way to make a debug key that'll expire in, say, 50 years? Mar 07 16:09:37 you could probably create your own and just replace debug.keystore with it Mar 07 16:09:51 never tried Mar 07 16:11:55 http://developer.android.com/guide/publishing/app-signing.html#debugmode Mar 07 16:15:19 wow my free app has already made $2 on admob in a day Mar 07 16:15:31 and it only had 500 downloads Mar 07 16:15:40 nice Mar 07 16:15:53 $2 Mar 07 16:15:55 time to retire, eh? Mar 07 16:15:57 now to get 1 million downloads Mar 07 16:16:01 i work at an agency and we make iphone/android apps Mar 07 16:16:11 we did a free iphone app for a client, its had nearly 3m downloads Mar 07 16:16:20 we made a paid app for ourselves, its had under 200 downloads Mar 07 16:16:24 in the same time Mar 07 16:16:39 the boobs are on the free one ? Mar 07 16:17:00 huh? lol Mar 07 16:17:11 so Google Play. Mar 07 16:17:20 what... the hell? Mar 07 16:17:21 such a retarded name Mar 07 16:17:31 seriously should have been 'google market' or something Mar 07 16:18:01 yeah my paid version is pulling in $50-$70 a day right now Mar 07 16:18:12 so with the free advertizing from the free nagware Mar 07 16:18:17 extra bug reporting Mar 07 16:18:19 and ad income Mar 07 16:18:22 i think its win win Mar 07 16:18:48 so normally in an activity you can call 'findViewById' where ever you want Mar 07 16:18:54 whats the equivilant in Fragment? Mar 07 16:19:04 v.findViewById? Mar 07 16:19:07 do i have to do getParent().findViewById ever time? Mar 07 16:19:13 or store the inflated view in a global var Mar 07 16:19:18 you need to find is on the inflated view Mar 07 16:19:44 so i should store the view in a global variable Mar 07 16:19:47 onCreateView Mar 07 16:19:51 yeah Mar 07 16:19:59 but i have methods outside there which does what ever Mar 07 16:20:02 View v = inflate(layout) Mar 07 16:20:10 yeah so ill have to make v a global variable Mar 07 16:20:11 v.findbyid Mar 07 16:20:14 so i can access it from any method Mar 07 16:20:26 or make the other things global Mar 07 16:20:30 thats what i do Mar 07 16:20:34 what do you mean Mar 07 16:20:41 textviews, layouts, etc make them global in the class Mar 07 16:20:47 meh Mar 07 16:20:47 and assign them in the createview Mar 07 16:20:52 bit of a ball ache Mar 07 16:21:05 but ill comply Mar 07 16:21:08 lol Mar 07 16:21:15 fragments are a pain in the beginning Mar 07 16:21:17 but totally worth it Mar 07 16:21:28 ill probably end up writing my own super class for fragment with this methods implemented Mar 07 16:21:30 class members, not global :P Mar 07 16:21:31 so say I have a TextView in a layout, and it has like android:id="@+id/name" or whatever, and on that same layout i want to have another TextView that has the same info as that one, can I only set it once or do I have to use two separate views or? Mar 07 16:21:43 getView() Mar 07 16:21:54 you can set an id more than once in a view Mar 07 16:22:12 but then you have to change the scope to its local parent if you want to find individual elements Mar 07 16:22:52 i write superclasses for my fragments like for getting resources or the service binding or for setting dialog themes, etc Mar 07 16:23:03 yeah Mar 07 16:23:18 superclasses eh Mar 07 16:23:27 tights and a cape Mar 07 16:23:36 to the arcade! Mar 07 16:26:15 Am I adding the library in the wrong way? http://pastebin.com/ Mar 07 16:26:17 oops Mar 07 16:26:22 Can you guys give my app a whirl and see if MP3's load properly on your devices? https://play.google.com/store/apps/details?id=com.djtachyon.android.VirtualTurntableFree Mar 07 16:26:24 lol Mar 07 16:26:30 here is the link http://pastebin.com/QbeCCrdB Mar 07 16:26:39 worked fine for my S2 Mar 07 16:27:06 CallumTaylor: that was an S2? right on Mar 07 16:27:29 ya Mar 07 16:28:11 I should make the paid app $0.99 for you guys today :P Mar 07 16:28:17 So lets say there's a website that had a form that had a text input where you input your name (i.e John), can I programatically go about filling in that form and submitting via https? What would I use to do this, anyone know any tuts off-hand? Mar 07 16:28:52 for submitting, look at HttpConnection Mar 07 16:29:19 ok so my original problem where my view's height was returning 0 Mar 07 16:29:40 what method should I use which is called after the view has been inflated and the height is returned? Mar 07 16:29:41 in fragments Mar 07 16:29:48 ssl man Mar 07 16:29:51 CallumTaylor: Isn't this more modern? http://developer.android.com/reference/android/net/http/AndroidHttpClient.html Mar 07 16:29:56 or that Mar 07 16:30:02 in principle: is it possible to overwrite a complete directory with another one by using File.renameTo() Mar 07 16:30:04 i personally use my own client Mar 07 16:30:05 ? Mar 07 16:30:20 will take a look, thanks Mar 07 16:30:22 CallumTaylor: what do you mean what should you call? Mar 07 16:30:22 https://github.com/scruffyfox/X-Library/blob/master/src/x/lib/AsyncHttpClient.java Mar 07 16:30:36 so ive got the oncreateview method which is fine Mar 07 16:30:49 but when i try get the height of a view, it returns 0, obviously because the view hasnt inflated to the screen yet Mar 07 16:30:59 which view gets called after it has been inflated and the height is set Mar 07 16:31:03 method* Mar 07 16:31:28 CallumTaylor: why do you need it? Mar 07 16:31:55 because of the app im making, i need to dynamically handle the scroll of a container and stuff, it gets complicated Mar 07 16:32:01 Wow, debugging on my phone is a dream! Goodbye sluggish emulator! Mar 07 16:32:09 but i need to initiate the first view in a scroll view by offsetting by its height Mar 07 16:32:16 o_o Mar 07 16:32:31 yeah its a bit of a head fuck Mar 07 16:32:47 but i just need to know what method i can use where calling view.getHeight() doesnt return 0 Mar 07 16:32:48 my gut reaction is that there must be a better way Mar 07 16:33:41 hm Mar 07 16:33:49 Should probably just subclass scrollview Mar 07 16:33:50 i could use the view.post(runnable) method Mar 07 16:34:02 override onactivitycreated() ? Mar 07 16:34:06 i might have to Mar 07 16:34:09 sec ill try it Mar 07 16:34:34 view.post may work fine too Mar 07 16:34:44 ive resorted to some nasty stuff Mar 07 16:34:47 nope onactivitycreated still returns 0 Mar 07 16:34:50 but post returns it fine Mar 07 16:34:55 yeah thats probably fine Mar 07 16:34:55 but annoying, but i guess it;ll have to do Mar 07 16:35:22 oh well, thanks anywya Mar 07 16:35:25 yeah i have a nasty asynctask for switching tabs Mar 07 16:35:28 CallumTaylor: thanks Mar 07 16:35:56 because if you try to switch while a transaction is in progress it will freak out Mar 07 16:36:09 and my overriding orientation and high speed switching was pissing it off Mar 07 16:36:14 hi, what tool do you guys recommend for using Scala ? Mar 07 16:36:24 so setCurrentTabByTag is in an asynctask Mar 07 16:36:27 what for digitalkiwi? Mar 07 16:36:38 lol Mar 07 16:36:42 i hate writing hacky code Mar 07 16:36:47 makes me feel unclean Mar 07 16:36:54 yeah ferreal Mar 07 16:40:13 This is vague but I'm having trouble changing the message in an AlertDialog Mar 07 16:40:35 ejb: .setMessage()? Mar 07 16:40:39 How do I make the tabs in a tab widget "small" but still have the widget itself fill the whole screen? Mar 07 16:40:46 I setup 3 AlertDialogs in onCreateDialog then change the message in 2 of them in onPrepareDialog Mar 07 16:40:53 paradoxx: override the tab style Mar 07 16:40:59 paradoxx: that sounds like quite the paradox Mar 07 16:41:04 But one of the messages isn't showing. In fact, no message will show. Mar 07 16:41:18 evancharlton, :P Mar 07 16:41:21 ejb: you're doing it wrong Mar 07 16:41:24 DJTachyon: yes, I use setMessage with a string from a bundle Mar 07 16:41:28 DJTachyon: ? Mar 07 16:42:32 before renaming a directory with renameTo, do i have to make sure that the target directory does not exist? Mar 07 16:42:39 hmm Mar 07 16:42:45 my scrollview inside my fragment is really laggy Mar 07 16:42:49 the api docs is so very sparse on details of the semantics.. Mar 07 16:43:03 yeah, sure it might fail for all kinds of reasons, but how to make sure it doesn't? :D Mar 07 16:43:15 CallumTaylor: are you reusing the views? Mar 07 16:43:21 shouldent be Mar 07 16:43:23 oh Mar 07 16:43:27 not the views in the scroll view Mar 07 16:43:27 CallumTaylor: should be :P Mar 07 16:43:30 its just layed out Mar 07 16:43:33 in xml Mar 07 16:43:44 CallumTaylor: using a custom adapter and view holders? Mar 07 16:43:51 CallumTaylor: and lazy loading images? Mar 07 16:43:55 really not practical for what im doing Mar 07 16:44:00 and did you turn Hardware Acceleration on? Mar 07 16:44:31 it's really difficult to make updating data in the external storage atomic Mar 07 16:45:41 CallumTaylor: sounds like you need a custom listview instead of a scrollview.. Mar 07 16:45:55 nvm its just my imagination Mar 07 16:45:57 DJTachyon: How am I doing it wrong? Mar 07 16:46:00 i did a straight comparison Mar 07 16:46:07 ejb: no idea, dont have enough info Mar 07 16:48:15 DJTachyon you have twitter? Mar 07 16:52:41 DJTachyon: How can you say that I'm doing it wrong then? Mar 07 16:53:50 what is with tech companies serving lunch so damn early Mar 07 16:53:54 I create my dialogs in onCreateDialog then customize then in onPrepateDialog... like the docs suggest. Mar 07 16:55:12 How do you get the parent of a view and then remove the view from the parent Mar 07 16:55:33 I have tried getParent() but there is no method to remove the view Mar 07 16:56:39 hide it? Mar 07 16:57:10 no i need to remove it Mar 07 16:57:14 why? :o Mar 07 16:57:15 getParent and cast to view Mar 07 16:57:20 or to viewgroup Mar 07 16:57:23 then you can remove Mar 07 16:57:33 view#setvisibility(GONE) has worked fine to me Mar 07 16:57:37 what if getparent isnt a view? Mar 07 16:57:42 can't do that getparent returns a Viewparent Mar 07 16:57:45 I think I didn't properly understood the problem Mar 07 16:57:54 cast to view :) Mar 07 16:58:03 i believe i did that once.. Mar 07 16:58:49 hi Mar 07 16:59:00 if i cast i will get class cast expcetion http://developer.android.com/reference/android/view/ViewParent.html Mar 07 16:59:26 nvm, got it. Have to set an initial message. Mar 07 16:59:43 gsingh: yeah, view doesn't implement viewparent Mar 07 16:59:47 optionally inform the view of its parent beforehand placing something in the tag Mar 07 17:00:55 xorgate: I don't quite follow... Mar 07 17:01:02 Next issue... I have a Textview with maxLines=5, scrollbars="vertical". The scroll bar appears when needed but the text disappears when I tap and drag, then reappears when I let go. What am I missing? Mar 07 17:01:34 this is so stupid Mar 07 17:01:49 other peoples code which looks exactly the same can call pm enable/disable from code Mar 07 17:01:56 gsingh surely somewhere, somewhen, is the information what the view's parent is. store this on the view with setTag Mar 07 17:02:07 ejb: try on a different device or emulator and see if ur results are the same Mar 07 17:02:46 gsingh: it does it on the emulator and my nexus Mar 07 17:06:08 gsingh if you know it's a linearlayout you can cast to linearlayout for example Mar 07 17:06:26 ejb: are u sure ur not hidding ur view somewhere via View.gone or view.invsible Mar 07 17:06:49 * tsukasa_ hits head against keyboard Mar 07 17:08:02 god i fucking hate eclipse Mar 07 17:08:17 CallumTaylor use IDEA it's a lot nicer Mar 07 17:08:28 i cant, been using eclipse for too long Mar 07 17:08:39 i have library projects and such which i dont want to risk breaking by portin it Mar 07 17:08:41 porting it Mar 07 17:09:01 gsingh: I'm pretty sure. I'm just doing this TextView.setMovementMethod(new ScrollingMovementMethod()) Mar 07 17:09:22 CallumTaylor you can always give it a try Mar 07 17:09:31 yeah ive got it installed Mar 07 17:09:34 eclipse does suck Mar 07 17:09:40 maybe when we move office at the end of the month ill try porting everything over Mar 07 17:11:11 hi, could anyone tell me how to make a ListView with an ArrayAdapter obey WRAP_CONTENT on its width? - it seems to keep stretching on the whole width of the screen.. thx.. Mar 07 17:11:46 you need to tell the rows to wrap_content Mar 07 17:11:55 otherwise they just do as they please Mar 07 17:12:06 xorgate: thx, i already have that. jsut a simple TextView is my row. Mar 07 17:12:41 i think the problem is that the listview doesnt know how wide it should be since this differs per row Mar 07 17:13:11 yes, i was thinking the ArrayAdapter populates the rows only after the LV measures itself?? Mar 07 17:13:23 but that is just wierd.. Mar 07 17:13:41 in fact i think the listview gets the first 3 rows and uses those to decide a width Mar 07 17:13:45 makes LV useless for me.. there has to be a 'proper workaround'.. Mar 07 17:13:58 ejb: my suggestion would be to reverse engineer your problem by stripping down your implementation and then adding back your methods, data etc. Mar 07 17:14:06 why would you want the listview to have an undertermined width? Mar 07 17:14:10 its hard to say what it could be Mar 07 17:14:19 gsingh: ok, thank you Mar 07 17:14:23 im trying to use it in a popupWindow. Mar 07 17:14:44 with the LV my popupWindow stretches on the whole scr.. ;( Mar 07 17:15:07 a hardcoded vertical linearlayout displays as expected.. Mar 07 17:16:32 voso: if your listview is in xml make sure that its layout_width is set to wrap_content. if creating dynamically make sure to set your layouparams to wrap_content Mar 07 17:16:36 is the list view the root view of the alert dialog? Mar 07 17:17:46 gsingh: thx for joining in.. I already have wrap_content on _every view in that hierarchy.. Mar 07 17:17:55 voso: make sure parent view width is also wrap_content Mar 07 17:18:15 is it created dynamically or via xml? Mar 07 17:18:37 DrPenguin: thx too.. the LV is a child of a vertical LinearLayout, which gets inflated into a PopupWindow, not Dialog.. Mar 07 17:18:56 PopupWindow? what other "PopupWindows" are there besides dialogs Mar 07 17:19:05 inflated via XML, then tried dynamically. behaves the same. Mar 07 17:19:16 OH WOW thats an actual class Mar 07 17:19:29 http://developer.android.com/reference/android/widget/PopupWindow.html Mar 07 17:19:36 thats an awesome class! ;) Mar 07 17:20:07 whats the diff between that and a dialog? Mar 07 17:20:26 voso: try removing the title bar alltogether in Dialog and alertDialog the title bar will stretch the view to a fixed size Mar 07 17:21:13 nono, again: if I remove the LV from the layout, and put in a couple of TextViews, all is fine. the window does not stretch.. Mar 07 17:21:20 so the culprit must be the LV Mar 07 17:21:59 besides, my popupWindow does not have a title Mar 07 17:22:36 also, if I set a fixed width on the LV, all is fine.. Mar 07 17:22:58 the darn thing just seems to ignore wrap_content.. ;( Mar 07 17:23:36 I hate when basic stuff like this takes up hours to figure out.. ;((( Mar 07 17:23:54 hate. hate. hate.. Mar 07 17:25:15 so wait, what can a Popup Window do that a custom Dialog cant do? Mar 07 17:25:48 anchor itself to a reference view.. Mar 07 17:25:50 Cause in the past, I stuck a ListView into a Dialog and it worked just fine Mar 07 17:25:53 pretty handy.. Mar 07 17:26:59 when you want little context menus next to stuff your users press/longpress.. Mar 07 17:27:23 whats handy about it? I dont see limitations in Dialog that would cause me to want to use a Popup Window Mar 07 17:27:38 I wonder if there will ever be a day when making Tabs in android is obvious and clean Mar 07 17:27:53 afreq: it is now? Leveraging Fragments and ActionBar makes it a snap Mar 07 17:28:54 DrPenguin: I'm using ActionBar just now...it seems to be a bit "hacky" to get it done. Plus i want fragments in each tab not just a fragment. Mar 07 17:29:34 is there a way to get a log of what's happening on boot Mar 07 17:29:38 afreq: well I would think the ony way to do that would be to embed fragments in fragments, but I believe it was pfn who pointed that out, thats frowned upon Mar 07 17:29:49 torchie: yeah, logcat should have boot logs in it Mar 07 17:30:00 real time? Mar 07 17:30:15 DrPenguin: Hence my original statement. I wonder if there will ever be a time when Tabs in android is obvious and clean. Mar 07 17:30:27 torchie: ehh, close enough? obviously there is gonna be some delay, because logging isnt the firs tthing brought up Mar 07 17:30:31 ah Mar 07 17:30:35 afreq: they *are* clean, they just arent clean to *you* Mar 07 17:30:45 well I usppose not ridiculously real time but just as the boot's happening Mar 07 17:30:48 I'm in a boot loop heh Mar 07 17:30:58 Before Fragmetns and Actionbar, you had TabActivity, which could only have one item per tab anyway, so. Mar 07 17:31:03 Dudes. Is there any way to add views to a ViewPager dynamically or WITHOUT an adapter? I'd like to be able to use the .addView(View v) on the ViewPager directly, but it doesn't seem to work. For now, I'm using the recommendation here: http://groups.google.com/group/android-developers/browse_thread/thread/482ebd0511512763?pli=1 But that re-creates a new Adapter every time you add a View, and that seems very inneficient. Mar 07 17:31:22 torchie: custom rom eh? the first thing one can usuall do is wipe dalvik / cache, but consult your roms help info first, may also need to reflash Mar 07 17:31:43 reflashed, wiped system, reinstalled, rekerneled, wiped dalvik cache Mar 07 17:31:44 nothing Mar 07 17:31:44 Chronax: no Mar 07 17:31:55 edited the default.prop back to default values... Mar 07 17:31:57 how can I define my application as a "car mode" application? one that's supposed to launch when my phone is in a card dock? Mar 07 17:32:04 torchie: can you restore the phone back to factory and get it happy again? Mar 07 17:32:18 trying to avoid that Mar 07 17:32:24 DrPenguin: You're right in that sense. The new tabs work in much the same way as the old ones aesthetically...but there's not an actual gain in using fragments. e.g. making a tabbed application for a large screen it might be desirable to use multiple fragments within a tab Mar 07 17:32:30 ninjai: that would be phone dependent I would think, my phone doesnt have a car mode for example Mar 07 17:32:38 what's happening in logcat during the boot loop is: Mar 07 17:32:43 afreq: on the contrary, there is a benefit to fragments Mar 07 17:32:53 I/AudioPolicyService( 1385): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy) Mar 07 17:33:04 DrPenguin, once you have carhome.apk, any time you put your phone in a car dock it launches. I would think there's some trigger in android because android can tell waht style of dock you're in. Mar 07 17:33:19 DrPenguin: Yes. I guess my argument is...why didn't they think about having multiple fragments inside each tab. Mar 07 17:33:21 ninjai: what is this carhome.apk, is this on play? Mar 07 17:33:31 afreq: because that doesnt make sense Mar 07 17:34:01 SimonVT: Thanks for the quick response. Is there anything I can be doing to make this more efficient? IE: Not re-creating the Adapter for the addition of new pages? Mar 07 17:34:05 DrPenguin: Please explain why. I'm thinking take the Shakespeare example. Why doesn't it make sense to have that functioning under one tab? Mar 07 17:34:19 DrPenguin, it was built into android at some point. My nexus one had it. It was a google official app that is/was on the market. I used to use it on my nexus one Mar 07 17:34:33 Chronax: Modify the adapter to allow adding views on demand Mar 07 17:34:41 ah Mar 07 17:34:44 "bad heap size parameters Mar 07 17:35:15 ninjai: so hwo does this know its in a car? Mar 07 17:35:27 can't get gps signal uheheh Mar 07 17:35:28 :D Mar 07 17:35:46 DrPenguin: I think it does make sense to use multiple fragments inside a tab but if i'm missing something please point it out cos it's driving me insane. Mar 07 17:36:01 SimonVT: Yeah, I thought about that. Adding something like an addView() method to the Adapter? Mar 07 17:36:25 Chronax: Sure Mar 07 17:36:35 afreq: because in order to support that, your now making the Activity/Fragment structure infinitely more complex Mar 07 17:37:00 afreq: you would either now have to Bind ANOTHER fragment activity into that tab (which kills the point of fragments) or bind fragments into fragments (again, frowned upon) Mar 07 17:38:05 Also, if your leveraging ViewPager, that now becomes more infinitely complex because now get operations (to get the fragment to draw) is no longer a O(1) operation Mar 07 17:38:48 hiya Mar 07 17:38:58 DrPenguin: Which is why in my opinion a tab shouldn't contain a fragment as it's primary component. It should contain a ViewGroup in which fragments can be added. That way you can use Fragments in the traditional manner, only inside a tab. Mar 07 17:39:04 smali puzzle anyone ? Mar 07 17:39:10 when I adb push that's all I have to do for the files on device to be edited right? Mar 07 17:39:19 basically all I m lookin to do is have the same line call Mar 07 17:39:27 if-ne v0, v1, :cond_2b Mar 07 17:39:34 if-ne v0, v1, :cond_8d Mar 07 17:39:45 afreq: well Im sure you can do that, without ActionBar, just leverage TabHost Mar 07 17:40:26 DrPenguin: If you are using a large screen that uses tabs in the action bar you can't have layout that varies using the benefits of fragments for small screens. Mar 07 17:40:40 DrPenguin: Yeah going to the TabHost involves using the "hack" Mar 07 17:40:56 what hack is this? Mar 07 17:41:04 Can we never use "leverage" outside of meetings where we try to impress stupid people? Thanks. Mar 07 17:41:06 Just because its not what you think it should be, doesnt mean its a hack Mar 07 17:41:54 BOOM Mar 07 17:41:55 FIX Mar 07 17:43:34 DrPenguin, because of the dock Mar 07 17:43:56 ninjai: which that means its phone dependent... Mar 07 17:44:00 not all phones support docks Mar 07 17:44:09 oh Mar 07 17:45:11 DrPenguin, I found this: http://developer.android.com/reference/android/content/Intent.html ctrl+f for car dock Mar 07 17:45:15 DrPenguin: It is listed as a "hack" in the android documentation Mar 07 17:45:23 afreq: link me to that Mar 07 17:45:51 ninjai: yeah.. but that doesnt refute my point Mar 07 17:46:02 DrPenguin, I know, jsut showing you :) Mar 07 17:47:05 DrPenguin, I guess my question now is.. you know how when you click on say, an HTML file and a list of browsers will show up? How can I do this is I insert my phone into a dock, and have my car dock application pop up? Mar 07 17:47:42 ninjai: well that, how most apps work is it looks for a default action, if there is none, then usually itl present you with a list of actions you can take Mar 07 17:49:03 DrPenguin, so I'd have to provide what my applications default action is? Where do I look to learn about that? Mar 07 17:49:51 ninjai: well I dont know if you should provide one, because what if that action isnt available on the phone? I think you should let the user decide, but maybe if the one ou want is there, say this is the recommended action Mar 07 17:50:35 DrPenguin, ok thanks Mar 07 17:53:19 hey, whats the best practice when it comes to picking a build target? If I'm targeting 2.1 and I ensure that I'm not calling any methods that aren't available, should I still build off the latest SDK? Mar 07 17:53:51 i build for 2.2 Mar 07 17:55:50 jayd16: i support 2.2 (8) but build with 15 Mar 07 17:56:50 how does fragments scale when i put my app in landscape Mar 07 17:57:00 cause when i change it, the widths of the views are the same as if they were portrait Mar 07 17:57:31 wongk: ah ok, cool, good to know. I was just wondering if that would get me into trouble. Thanks Mar 07 17:57:46 jayd16: it can if you're not careful Mar 07 17:58:26 jayd16: if you don't use anything from a later SDK, there may be no benefit to you to do that Mar 07 17:58:47 Can a fragment contain another fragment? Mar 07 17:58:53 wongk: ah, true. It wont give you specific warnings. Think I can set eclipse up to warn me correctly? Mar 07 17:59:37 i don't believe that is posisble Mar 07 17:59:45 paradoxx: its not recommended Mar 07 17:59:45 wongk: I mainly want to add a couple code branches so I can not crash when people turn on GPU acceleration. Mar 07 18:00:19 you should always test on your lowest support platform, anyway Mar 07 18:00:40 Next version of ADT will warn you if you use new APIs Mar 07 18:01:06 SimonVT: based on the minimum version in the manifest? Mar 07 18:01:18 Yea Mar 07 18:01:20 nice Mar 07 18:03:13 i would like to write a DOM document to xml file in android 2.1, can anyone recommend an external library? Mar 07 18:03:52 my fragments dont seem to be detatching from the view Mar 07 18:04:03 do i have to call view.removeViewsInLayout() aswell? Mar 07 18:04:10 weeee got my revue :) Mar 07 18:05:37 I have a activity that has two sections. One is a listfragment view and the other fragment which contains a tab widget. The tabs are each fragments. The alternative would be to elevate the tabs to the actionbar but I'd need the tabs to be centered(and on a second row). Mar 07 18:05:44 Is that possible Mar 07 18:05:46 So iPad event is now live. Bets on iPad 2S or iPad 3? :P Mar 07 18:06:30 CallumTaylor: Find me on G+ Mar 07 18:06:41 plbelanger: iPad HD Mar 07 18:06:45 whats ya name Mar 07 18:06:48 plbelanger: iPad with beats by Doctor Dre Mar 07 18:06:51 hahaha Mar 07 18:06:59 beatsPad Mar 07 18:07:05 should i just search for DJTachyon Mar 07 18:07:09 https://plus.google.com/100541221646766109329/posts Mar 07 18:07:14 ta Mar 07 18:07:19 62m iOS devices last quarter they say Mar 07 18:07:52 tiny compared to worldwide Android sales Mar 07 18:08:05 canadiancow|gtv: congratulations, now go make an app noone will ever use Mar 07 18:08:12 :D Mar 07 18:08:29 i was going to but someone already made it Mar 07 18:08:50 god found a bug in mu tabhost class Mar 07 18:08:56 it doesnt remember the current tab on orientation change Mar 07 18:08:57 :s Mar 07 18:09:06 I dont think thats a bug.. Mar 07 18:09:20 When orientation changes, without handling it, the activity is destroyed and recreated from scratch Mar 07 18:09:26 i have my own tab host Mar 07 18:09:34 yeah its a bug where my class should handle it but it doesnt Mar 07 18:09:34 are you handling orientation changes? Mar 07 18:09:39 not manually Mar 07 18:09:41 store the current tab in onPause Mar 07 18:09:46 oh Mar 07 18:09:48 or onSaveInstanceState, etc... Mar 07 18:09:51 CallumTaylor: what do you mean not manually, you either are or you arent Mar 07 18:09:54 does the standard tab do that aswell? Mar 07 18:10:10 not manually handling orientation change Mar 07 18:10:18 does that example store the current tab on savedistancestate? Mar 07 18:10:34 cant remember Mar 07 18:10:35 CallumTaylor: repeatnig myself: you either ARE or your ARENT Mar 07 18:10:45 well i guess im not then Mar 07 18:10:52 then thats why, its not a bug Mar 07 18:11:23 is that expected behaviour on the standard tabhost then Mar 07 18:11:33 that you have to handle the orientation yourself to save the current tab Mar 07 18:11:36 its expected behavior in any Android Activity, period Mar 07 18:11:46 no im talking about tabhost Mar 07 18:11:50 a configuration change like orientation DESTROYS the activity Mar 07 18:11:53 dude, it doesnt matter Mar 07 18:11:54 i know the activity gets destroyed when you change the orientation Mar 07 18:12:07 lol new appletv...who uses that thing Mar 07 18:12:09 well if the activity is destroyed, whatcha think happens to the tabhost? Mar 07 18:12:21 plbelanger: better question: Who uses GoogleTV? Mar 07 18:12:30 well that too Mar 07 18:12:31 well i dont know, thats what im asking, does the tabhost handle it or do i have to in the orientation change Mar 07 18:12:33 ;) Mar 07 18:12:43 CallumTaylor: there is no tabhost when the activity is destroyed Mar 07 18:12:43 CallumTaylor: that example handles it Mar 07 18:12:53 tabhost does not handle orientation change Mar 07 18:12:57 ok thats all you had to say Mar 07 18:12:58 tabactivity does Mar 07 18:12:59 thanks simon Mar 07 18:13:11 CallumTaylor: it passes the current tab into the onsavedinstancestate Mar 07 18:13:16 *sigh* was it really necessary to say? it should be bloody obvious Mar 07 18:13:20 so there is a bug in mu custom tabactivity i need to fix then Mar 07 18:13:23 my* Mar 07 18:13:57 I don't know anyone who uses either Apple or Google TV Mar 07 18:14:11 plbelanger: I used it for a door stop Mar 07 18:14:13 my cousin uses Apple TV, I dont see the point in either, but I dont really watch TV Mar 07 18:14:16 DrPenguin: Well, most views do save state Mar 07 18:14:19 anyway home time Mar 07 18:14:22 see you guys tomorrow Mar 07 18:14:23 lol Mar 07 18:14:54 SimonVT: does that matter if your no handling a config change though? how does android know to restore from state unless you tell it to Mar 07 18:15:01 thats been my experience atleast Mar 07 18:15:55 DrPenguin: Well, there's a reason Views have onSaveInstanceState. It works like saving state in Activities Mar 07 18:16:05 apple tv is great for the porn Mar 07 18:16:13 e.g. listview uses it for saving scroll position, or selected rows Mar 07 18:16:16 SimonVT: yeah, but my point is, if your not using them, then theres no restoration Mar 07 18:16:19 (not sure about the last) Mar 07 18:17:04 DrPenguin: No, but his question was whether TabHost handled saving state. TabHost is a view, so it's a valid question.. tho he could just have checked source Mar 07 18:17:05 15.4m ipads q4...so is that good in the tablet world..? Mar 07 18:17:19 plbelanger: its bettter than pcs! Mar 07 18:17:24 heh Mar 07 18:17:37 I actually just got a Revue the other day. They're super cheap now but its an odd beast. Feels more like a dev box than a finished A/V product. The issue is its too complicated for anyone over 30 and anyone under 30 doesn't watch cable like that… /my two cents Mar 07 18:17:40 they actually just said that... " Mar 07 18:17:41 why isnt steve jobs doing this Mar 07 18:17:42 "That's more iPads than any PC manufacturer sold PCs. HP sold 15.1 million PCs total in that same ​quarter, though we're not sure of the source of these numbers." Mar 07 18:17:48 what is this "revue"? Mar 07 18:17:55 google tv Mar 07 18:17:59 oh Mar 07 18:17:59 GoogleTv Mar 07 18:18:13 they should call it the playbox Mar 07 18:18:18 lol Mar 07 18:18:36 then, you can play play on the playbox to play things Mar 07 18:19:06 engadgets liveblog doesnt suck Mar 07 18:19:26 nice try, engadget. Mar 07 18:19:42 watching engadgets live blog as well...not bad Mar 07 18:19:48 the new ipad is so upgraded they are clalling it the ipad 4 Mar 07 18:19:48 omg Mar 07 18:21:18 wonder if the reality distortion field will hold up without steve jobs Mar 07 18:21:20 Apple trolling android tablets Mar 07 18:21:41 "This is a key reason why momentum on iPad continues to build and the competitive tablets aren't gaining traction." Mar 07 18:22:50 is this #apple? Mar 07 18:22:54 nah Mar 07 18:22:59 iPad event Mar 07 18:23:05 lol Mar 07 18:23:33 I can't tell the difference between new and old one from photos Mar 07 18:23:42 oh ok retina display Mar 07 18:25:11 2048 x 1536 Mar 07 18:25:14 display Mar 07 18:26:01 Hawkee: How is your mIRC script coming along? Mar 07 18:26:37 Is it possible to have two different xml layout files, that contain the same id's, but different layout positions, and then just use setContentView() to dynamically change my layout based on user preferences in the onCreate() method?? Mar 07 18:27:01 yes Mar 07 18:27:28 oh so new ipad is quad core Mar 07 18:27:46 cool, i hope they release an android ide for it Mar 07 18:27:58 hmm Mar 07 18:28:06 plbelanger: #apple? Mar 07 18:28:33 I'm gonna unfollow gizmodo.. Spamming up my twitter feed ;| Mar 07 18:29:28 i bricked my google tv Mar 07 18:29:34 along with another person Mar 07 18:29:38 how? Mar 07 18:29:39 UPDATING DO NOT UNPLUG DEVICE Mar 07 18:29:40 power failed Mar 07 18:29:41 haha Mar 07 18:29:42 For the navigation tabs on in the action bar. Is it possible to force some of the tabs to a second row and some in the action bar? Mar 07 18:30:18 paradoxx: anying is possible Mar 07 18:30:25 :) Mar 07 18:30:28 How easy is it? Mar 07 18:30:42 there is no second row unless you are talking about the one at the bottom Mar 07 18:30:53 split action bar Mar 07 18:31:26 and the actionbar tabs automatically go to nested tabs on smaller devices Mar 07 18:31:32 yep Mar 07 18:31:44 I'm building a tablet application Mar 07 18:33:46 DJTachyon, So there is no way to specify that the split actionbar be enforced? Mar 07 18:34:00 paradoxx: im not sure i understand what you are trying to do Mar 07 18:35:02 DJTachyon, Give me a sec to post a screenshot Mar 07 18:35:07 paradoxx: but basically no, you cant force it on tablets i dont think Mar 07 18:35:18 paradoxx: will have to just make a custom view most likely Mar 07 18:39:06 hey I'd like to let the user enter a timerange. Is there a better way than customizing a TimePickerDialog for this? Mar 07 18:39:42 DJTachyon, This is the screen shot https://docs.google.com/open?id=0B42h01tdlhUydjlaVnRYX19Ra3VMejc4em5SVDBFdw Mar 07 18:40:05 paradoxx: what is your goal? Mar 07 18:40:08 I'm trying to figure out the best way to implement the Tabs in the middle (i.e "Charts, Reports Articles" Mar 07 18:40:20 viewpager dude Mar 07 18:40:38 Just make custom tabs out of a few textviews Mar 07 18:41:08 SimonVT, Talk to me? Mar 07 18:41:12 Yes Mar 07 18:41:35 And then onClick do the fragment transaction? Mar 07 18:41:37 viewpager would be so much cooler Mar 07 18:41:45 Yep Mar 07 18:41:50 swipe between tabs Mar 07 18:42:00 But the larger layout out about a fragment beside the the viewpager? Mar 07 18:42:07 I'm not sure I completely understand it Mar 07 18:42:33 well im assuming all these views are already fragments Mar 07 18:42:40 yep Mar 07 18:42:51 have you looked at http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabsPager.html Mar 07 18:43:19 Yep Mar 07 18:43:23 Have the tabs open Mar 07 18:43:39 I guess it isn't super clear what exactly the "viewpager" is Mar 07 18:43:43 I see the layout Mar 07 18:44:36 paradoxx: well if you have the layout and the code, not sure what you are missing Mar 07 18:44:41 tell you what Mar 07 18:44:52 mikedg: yes, an android IDE for iOS... Mar 07 18:44:58 http://code.google.com/p/iosched/ Mar 07 18:45:07 mattyohe: why would they make that? Mar 07 18:45:09 paradoxx: go check their code out Mar 07 18:45:35 DrPenguin: We do what we can because we must Mar 07 18:45:49 DrPenguin: they wouldn't, but mikedg wanted them to Mar 07 18:45:55 for some reason Mar 07 18:45:57 doesnt make much sense Mar 07 18:46:42 DrPenguin: right, it sounds pretty stupid :) Mar 07 18:46:59 yes it does Mar 07 18:47:05 the ipad3 has a ridiculous resolution Mar 07 18:47:11 greater than any laptop ive seen Mar 07 18:47:12 yup Mar 07 18:47:17 fuck apple pissed me off Mar 07 18:47:20 preorders start today Mar 07 18:47:24 canadiancow|gtv: why? Mar 07 18:47:24 apple poop Mar 07 18:47:28 LOOK AT THIS APP ON THE SAMSUNG - IT ISNT OPTIMIZED FOR TABLETS Mar 07 18:47:31 THATS WHY IPAD IS BETTER Mar 07 18:47:32 ... Mar 07 18:47:40 did they seriously say that? Mar 07 18:47:42 yes Mar 07 18:47:51 LOOK AT IT ON THE IPAD Mar 07 18:47:53 SO MUCH NICER Mar 07 18:47:54 nothing is better, everythis is the same and all that matters is sales Mar 07 18:47:59 * DrPenguin adds another reason why not to buy an apple product, or samsung :P Mar 07 18:48:02 well, it IS "nicer" Mar 07 18:48:13 nicer is subjective Mar 07 18:48:18 more pixels, faster etc Mar 07 18:48:28 it's a product, there are many products Mar 07 18:48:28 Watch out canadiancow|gtv, next thing you know, they will say they are innovating by adding a quad core proc (when we have had that alread) Mar 07 18:48:36 every time they mention a competitor by name it means they're scared... Mar 07 18:48:39 that's definitely... better in the majority opinion Mar 07 18:48:51 not nearly the case Mar 07 18:49:18 phones are better than tablets Mar 07 18:49:32 that's...subjective Mar 07 18:49:42 not sure what that means Mar 07 18:49:47 beepers are better than cellphones Mar 07 18:49:47 but OKAY Mar 07 18:49:47 DJTachyon, kk. Will take a look at it Mar 07 18:49:56 heh, beepers Mar 07 18:49:59 PAGERS Mar 07 18:50:31 sales are better than no sales Mar 07 18:50:54 what? Mar 07 18:53:16 I don't care whether it's an iPhone, Blackberry, Blueberry, StarTac or an Android. As long as people buy my apps it's all gravy. Mar 07 18:55:08 Hi! Could someone help me with dynamically created layouts? Mar 07 18:55:33 shy away from that, prefer xml as much as possible. What do you have in mind though? Mar 07 18:57:20 I would like to create the whole layout programmatically, creating and dimensioning its child views accordingly to the available space. However, I can't get the width and the height from within onCreate() because the layout still has to be drawn and getWidth or getHeight always return zero. Mar 07 18:58:21 That sounds like a horrible idea, good luck with that Mar 07 18:58:23 use weight's in the xml, or just use the DashboardLayout class from Google IO 2011. Mar 07 18:58:39 I'll give it a look, thanks Mar 07 18:59:11 IPAD3 WILL STILL BE MADE BY SLAVES BUT THEY WILL BE FREE RANGE SLAVES AND MAYBE ORGANIC I THINK Mar 07 19:00:05 all of our products are made by slaves Mar 07 19:00:07 Anything made in China, South America, and any other relatively third world nation is more or less slave labor Mar 07 19:00:32 minimum wage in Mexico is $4.16 per day, not per hour Mar 07 19:00:36 even stuff made in the USA can potentially be made by slaves Mar 07 19:00:39 rigel: lolz Mar 07 19:00:59 cf. Saipan, Tom DeLay, Jack Abramoff, etc Mar 07 19:01:01 also: prisons Mar 07 19:24:55 where is everyone? out buying ipad3's? Mar 07 19:25:14 new name is ipad Mar 07 19:26:03 it's ipad1? Mar 07 19:26:19 meh Mar 07 19:26:26 is Asus shipping Infinitys yet? Mar 07 19:28:12 Im surprised Cnet isnt blowing up with ipad stuff Mar 07 19:28:51 DrPenguin: there's not really much to report on Mar 07 19:29:00 oGMo: and has that stopped Cnet in the past? Mar 07 19:29:02 everyone is probably busy hackying on code Mar 07 19:29:06 DrPenguin: ok fair point :) Mar 07 19:29:17 -y Mar 07 19:33:58 I have two layout files: "mouse_pad_left" and "mouse_pad_right" which contain the same exact id's for the same elements, the only thing being different is which side the toolbar is on. Now in the onCreate() method I have the app check user preferences to see which side they want the toolbar on, and then calls setContentView() with either xml file depending on the user preference. The layout switching works as expected, however, I am no longer able to Mar 07 19:33:58 receive any touch events! Any ideas? Mar 07 19:36:24 dlaroche: after you call setContentView, you need to call findViewByid, setClickListener, etc. all over again Mar 07 19:39:06 i do Mar 07 19:39:38 I have the layout check at the top of the onCreate() right below the super call Mar 07 19:40:51 ... Mar 07 19:40:58 i know right Mar 07 19:41:03 grrr.... Mar 07 19:41:07 dlaroche: pastebin some code Mar 07 19:41:08 please pastebin the relevant code Mar 07 19:41:13 alright Mar 07 19:41:18 $5 on "you didn't actually set new listeners after calling setContentView" Mar 07 19:41:20 https://store.unity3d.com/products free game engine until April Mar 07 19:41:39 yeah, I'd love to play with it but I just don't have the time : ( Mar 07 19:41:58 .net ;/ Mar 07 19:42:06 just C# Mar 07 19:42:11 and you can use a couple other languages iirc Mar 07 19:42:16 (oh you mean the editor) Mar 07 19:42:17 oh right but still Mar 07 19:42:21 http://pastebin.com/vXLi9R53 Mar 07 19:42:40 free untl april 8, does that mean if I dl it now, after april 8 I wont be able to use it anymore withot pay? Mar 07 19:42:41 hahaha Mar 07 19:42:46 winner winner chicken dinner Mar 07 19:42:52 hey dlaroche where DO you call setContentView Mar 07 19:43:00 oh shoot Mar 07 19:43:01 you're aware that setContentView is commented out, right? Mar 07 19:43:01 just a sec Mar 07 19:43:26 this should crash unless you're calling setContentView in there Mar 07 19:43:47 here is the updated code: http://pastebin.com/iyUtLaf1 Mar 07 19:45:08 it all seems correct to me, and the app runs, and changes the layout as expected, but it stopped sending events when I added the second layout, and the preference code Mar 07 19:45:34 drpenguin: i think its an unlimited lisecene Mar 07 19:45:45 so if you get it now, you'll still be able to use it Mar 07 19:45:58 MysT_DooM: Im gonna pick them up now then, for iOS too since I have an OS X vm.. :D Mar 07 19:46:57 Anybody have a good answer for this question? http://stackoverflow.com/questions/6890704/serial-execution-of-multiple-asynctasks I've been Googling for hours. Mar 07 19:47:04 Basically, I need to execute a bunch of AsyncTasks in order. Mar 07 19:47:19 sooo Mar 07 19:47:26 dlaroche: I notice that you have if { ... } else if { ... } Mar 07 19:47:30 but no else { ... } Mar 07 19:47:35 omg Mar 07 19:47:41 the google tv remote app cannot be installed in canada Mar 07 19:47:41 T_T Mar 07 19:47:47 hahaha Mar 07 19:48:00 probably not the problem but worth a look Mar 07 19:48:02 Chronax: how is this order determied? order as in the order they are fired off? Mar 07 19:48:10 man what a pain Mar 07 19:48:11 Chronax: consider just having a threadpool and using a handler or something Mar 07 19:48:11 Sure. Mar 07 19:48:15 lov: I will check it real quick Mar 07 19:48:18 Chronax: asynctasks are just a convenient shortcut for handling UI updates Mar 07 19:48:20 i finally got my app into jenkins Mar 07 19:48:25 Yeah, problem is I'm trying to recycle some old code. Mar 07 19:48:27 canadiancow|gtv: Isn't it google holding the event? Mar 07 19:48:32 yes SimonVT Mar 07 19:48:36 you still cant buy the devices here Mar 07 19:48:48 someone in the US wanna send me the remote app apk? :) Mar 07 19:48:50 Chronax: you need some concurrency protection then, know about Semaphores or Synchronized ? Mar 07 19:49:02 Might work. Mar 07 19:49:21 Trying to figure out how to wed a Serial Executor to the asynctask, to no avail. Mar 07 19:49:22 lov: same results Mar 07 19:49:32 what remote app apk? Mar 07 19:49:34 dlaroche: right, it'd be a strange NPE :P Mar 07 19:49:38 dlaroche: but I'm curious Mar 07 19:49:43 does it work correctly the first time and then not after that? Mar 07 19:49:51 DJTachyon, SimonVT Thank you m8s. I figured out my problem with viewpager. Mar 07 19:49:53 what happens if you just uncomment that setContentView and ignore the left/right stuff Mar 07 19:49:53 no, i checked that too Mar 07 19:50:12 Chronax: so this Serial Executor, it basically triggers a Thread, waits til thats done, then schedules the next one? Mar 07 19:50:21 paradoxx: right on Mar 07 19:50:22 Exactly. Mar 07 19:50:33 Chronax: well that sounds like it should work right.. Mar 07 19:50:39 dlaroche: attach the debugger, inspect the elements, see what the deal is with their listeners. Mar 07 19:50:43 Right, but I can't figure out how to wire that up. Mar 07 19:50:48 lov: the minute I remove the preference check and use a single layout file everything works fine....im stumped Mar 07 19:51:02 alright I will give that a shot Mar 07 19:52:50 :D Mar 07 19:53:42 https://github.com/android/platform_frameworks_base/blob/master/core/java/android/os/AsyncTask.java Mar 07 19:53:48 Looks like I should be able to do it somehow... Mar 07 19:54:05 Chronax: im curious as to that how it will work, if a SCheduledExecutor takes a Runnable, not an Async, unless you spawn the Async inside the Executor Mar 07 19:54:30 lov: buddy I was calling the layout code twice, both in onCreate(), and onResume() and when I removed the check from onResume() the listeners work!! thanks Mar 07 19:58:48 dlaroche: $5 please Mar 07 19:59:36 lov: if we made that kind of money answering questions I would stop programming....lol Mar 07 19:59:51 I'm getting the error "Can't convert dimension" on the follow layout http://pastebin.com/X2ibTLWM for android 2.3 but not on any devices (3.0+). Any ideas? Mar 07 20:01:17 android:layout_marginTop="?android:attr/actionBarSize" Mar 07 20:01:22 Doesn't exist on 2.3 Mar 07 20:02:00 Oh. Mar 07 20:02:01 Hmm Mar 07 20:02:12 Even with the compatibility library? Mar 07 20:02:22 Can I overlay a solid transparent color on my ImageButton when it is being clicked? Mar 07 20:02:24 There's no actionbar in the compat library Mar 07 20:02:35 And it doesn't add framework attributes Mar 07 20:07:27 SimonVT, Thank m8. Solved the problem. Mar 07 20:19:35 Really! Mar 07 20:19:48 This has to be common... Making an ImageButton darker when its pressed... Mar 07 20:21:23 hey anyone around Mar 07 20:21:40 i'm trying to read from a datainputstream and am having problems with it not throwing errors like it should Mar 07 20:23:22 Using a selector as a color: NumberFormatException: unable to parse 'res/color/dark_select_tint.xml' as integer Mar 07 20:25:25 hi, what's the best way to associate a file to open with the element of a listview? and how can i open the i-th element ?i mean, if i get the int position = 2 from the onclick method, is there a way to call the file named 2.png? Mar 07 20:25:36 dont do that Mar 07 20:26:36 explodes: overlay, not so much. Mar 07 20:26:56 explodes: buttons are just textviews which have a nice statelist drawable as their background Mar 07 20:27:14 textviews are just buttons without the extra logic Mar 07 20:27:34 so for the pressed state, in the background drawable, can I possibly use an image AND a color overlay? Mar 07 20:27:44 extra logic being 3 constructors :p Mar 07 20:31:41 Well, is there some reason I cannot use this as a color: http://pastie.org/3543721 ? Mar 07 20:31:56 Its "not parsing as an integer!" Mar 07 20:33:23 Somebody please :S Mar 07 20:33:35 Think its interesting to see, Apple claims their A5 is 2x the Tegra 3 Mar 07 20:33:36 I've been looking at this for 40 minutes now Mar 07 20:33:45 I need another set of eyes Mar 07 20:34:22 explodes: which one is it complaining on? id say the latter 2? those are incomplete colors from what I understand Mar 07 20:35:25 It just outright says: 03-07 13:35:04.893: E/AndroidRuntime(8873): Caused by: java.lang.NumberFormatException: unable to parse 'res/color/dark_select_tint.xml' as integer Mar 07 20:35:36 I changed them to more "conventional" formats, but it still fails. Mar 07 20:35:46 explodes: then we need to see your code, and your complete bt Mar 07 20:35:59 bt? Mar 07 20:36:19 herro, i have a textview that i do getLayout() on and it is returning null Mar 07 20:36:26 back trace? does no1 use these terms? Mar 07 20:36:29 I assume this is because the layout phase hasn't been done yet Mar 07 20:36:36 >_< Mar 07 20:36:40 DrPenguin: calling it now Mar 07 20:36:41 how do i tell if the layout phase has been done Mar 07 20:36:49 This is the ImageButton xml: http://pastie.org/3543755 Mar 07 20:36:50 Integer.parseInt("res/color/dark_select_tint.xml"); Mar 07 20:36:54 I tried doing this on onResume and i was still get nullpointer exceptions Mar 07 20:37:01 lov: that would be fantastic Mar 07 20:37:04 dandaman: if this.getWidth() != 0 Mar 07 20:37:12 explodes: dude not the xml, the actual code Mar 07 20:37:23 There is no "code" Mar 07 20:37:28 It is simply all XML Mar 07 20:37:32 what do you mean theres no code? Mar 07 20:37:42 whatever, what about the entire back trace Mar 07 20:37:46 in my activity, I have this.setContentView(R.layout.home); Mar 07 20:37:54 explodes: well that's just going to always return 0 where i have it, where in my code is a safe place to call my function where getlayout wont be null Mar 07 20:38:32 http://pastie.org/3543769 Mar 07 20:38:50 dandaman, i dunno then! Mar 07 20:38:59 @ DrPenguin That is the full stack trace Mar 07 20:39:47 Guess it doesn't take a selector then Mar 07 20:40:06 DrPenguin: HomeScreenActivity: http://pastie.org/3543778 Mar 07 20:40:25 Doesnt make sense to, looking at the docs, it says it takes #color values, a selector doesnt correspond to that Mar 07 20:40:43 explodes: what do you do in your layout. line 57, specifically. Mar 07 20:41:04 hrnt: its probably the android:tint line Mar 07 20:41:21 Line 57: If I cannot use tint, what CAN I use? Mar 07 20:41:31 ah, i didn't see the XML paste Mar 07 20:41:45 explodes: you can use tint, but you probably cant use a selector Mar 07 20:41:45 I have tried to make a selector for the ImageButton's background... Mar 07 20:41:59 tint will tint it Always, though Mar 07 20:42:08 android:tint expects a number for a color Mar 07 20:42:51 android:tint="@color/some_cream" works just fine, as some_cream is defined in strings.xml Mar 07 20:43:04 However, the button is always creamed. Mar 07 20:43:07 right... and what does that resolve to? Mar 07 20:43:14 (that sounds wrong, just saying) Mar 07 20:43:16 #ffffff46 Mar 07 20:43:24 OK guess what? Thats an integer Mar 07 20:43:30 Yes, I understand that. Mar 07 20:43:39 so.. I dont see what the problem is here Mar 07 20:43:40 I apparently cannot use a selector for tint. Mar 07 20:43:46 * DrPenguin face palms* Mar 07 20:43:47 explodes: how have you defined dark_select_tint? Mar 07 20:43:59 does anyone happen to know if an arduino mega adk can be hooked up to an asus transformer prime? Mar 07 20:44:16 hrnt: http://pastie.org/3543721 Mar 07 20:44:18 I need that Jackie Chan Meme picture on speed dial Mar 07 20:44:48 how is the snapdragon s4 getting better benchmarks than the tegra 3? Mar 07 20:44:51 I NO UNDASTAN Mar 07 20:44:56 DrPenguin: That point was covered 5 minutes ago: SimonVT: Guess it doesn't take a selector then Mar 07 20:45:02 DrPenguin: I am trying to move forward Mar 07 20:45:09 explodes: YEAH I know, thats why I am face palming Mar 07 20:45:34 So, like I said, there has to be a way to do what I want to, but without tint. Mar 07 20:45:51 And I suggested a selector for the android:background property Mar 07 20:45:52 explodes: oooooooooooooooooooor, you dont use a selector, because thats not what is supposed to be used Mar 07 20:46:18 DrPenguin: If I use a straight up color, it colors the button in all states. Mar 07 20:46:28 * in android:tint Mar 07 20:46:33 So, tint is out. Mar 07 20:46:33 explodes: thats why you need to dynamically set the color in CODE not in xml Mar 07 20:47:06 DrPenguin: So i need some on touch listeners... Mar 07 20:47:12 uhh Mar 07 20:47:13 no Mar 07 20:47:15 onClick Mar 07 20:47:28 Ok.. Mar 07 20:47:32 Ill try it Mar 07 20:48:28 Perhaps someone today can answer this...Lint told me to replace my LinearLayout > ImageView & TextView with a single TextView using an android:drawable, but that drawable isn't scaling to fit the TextView like the ImageView scales to the LinearLayout does. Any way to fix this? Mar 07 20:48:42 MalRD: ignore lint :P Mar 07 20:50:37 if you need more options than textview offers, you just ignore lint. The check is there cus in most cases it's sufficient to just use a compound drawable Mar 07 20:50:37 MalRD: In preferences, you can change what lint marks as errors or warnings Mar 07 20:51:14 DrPenguin: explodes: Yeah, I know; I ignore Lint daily. Just wanted to see if there was a TextView:drawable param I as missing. Mar 07 20:51:46 I actually have a question, is there any cute tutorial out there for making a List view thatl ooks nice with lined up column headers? cant get mine to look spiffy Mar 07 20:52:21 lined up column headers? Mar 07 20:52:40 yeah so, the textof that column is lined up with its header and thus, with its siblings Mar 07 20:52:44 and not allllll over the place Mar 07 20:53:00 Oooh, like a tableview, just in a listview Mar 07 20:53:17 yeah Mar 07 20:53:33 No, never seen such a thing :p Mar 07 20:53:42 lameasaurus rex Mar 07 20:54:07 Guys, who is familar with c2dm? Mar 07 20:54:08 I'd imagine you'd have to do some lame stuff like compute and hardcode all widths Mar 07 20:54:26 What would be a good way to navigate back and forth in activities A, B, C and D, and be able to go to A from any acitivity sending a result (and executing an A callback, if possible)? Mar 07 20:54:26 thats what I am doing right now unfortunately Mar 07 20:54:46 bitkiller: make A your hub activity? Mar 07 20:54:50 What is the "speed" of sending a c2dm message? (so sending it to google, not receiving it).. Mar 07 20:55:12 I notice that it takes about 2 seconds for one message to be delivery to google.. Mar 07 20:55:39 is this normal behaviour? Mar 07 20:56:28 I have no idea, but seems reasonable Mar 07 20:57:02 really? Mar 07 20:57:05 DrPenguin, something like that...in fact a the "entry point" for C is B and for D is C...the exit for B is A, for C would be A and B, and for D would be A and C Mar 07 20:57:26 bitkiller: so, your Application is more than 2 levels deep activity wise Mar 07 20:57:53 DrPenguin: It worked in code, http://pastie.org/3543899 The only downside to this is that you cannot press and hold on the button and have it stay in the down-state. Mar 07 20:58:05 But if I have a 200k limit per day to send, it's taken 200000 messages * 2 seconds / 3600 seconds per hour = 111 hours processing time Mar 07 20:58:06 bitkiller: I think what you would have to do is fire off an intent to go back to A, and then dump the Activity stack Mar 07 20:58:35 sounds weird to me.. Mar 07 20:58:39 ToFra: I believe most apps have several users Mar 07 20:59:03 how do you mean? Mar 07 20:59:06 explodes: well a simple tap wont do that, you need to enable that functionality Mar 07 20:59:21 DrPenguin, yeh...I'm doing exactly that, but I would enjoy to have the callback executed in A...something like onActivityResult Mar 07 21:00:13 Because I need to sent a message to all my users of my app.. it's about 10k users. Means 10k messages which will take about 5,5 hours.. Mar 07 21:00:15 bitkiller: yeah from what I understand that wont work unless you either "A": cascade back to A from D (or C) setting the activity result and immediately finishing, or have a 2 Level Activity hierarchy, ging from A to B, A to C, or A to D Mar 07 21:00:53 Oh, I thought you meant 2 seconds from you initated the request til it ended up on the device Mar 07 21:01:33 no, I don't mean receiving it.. 2 seconds is fine for receiving it :-) Mar 07 21:02:00 But it's sending the messages to https://android.apis.google.com/c2dm/send Mar 07 21:02:16 no idea Mar 07 21:03:24 explodes: http://stackoverflow.com/questions/5077020/how-to-make-an-android-imagebutton-object-switch-images Mar 07 21:05:19 I can't find anything on google.. Mar 07 21:06:50 DrPenguin: I'm trying to avoid extra resources Mar 07 21:07:11 My last app was 14.62 MB and 90% of the reviews were "too big-uninstalled" Mar 07 21:07:19 On the topic of Lint, how important is it to provide descriptions of each and every image? Mar 07 21:07:43 It tells me I need to, then tells me to add the description to the strings.xml... *sigh* Mar 07 21:07:44 I'd think that it would be easier to overlay a transparency layer onto an image, but whatever Mar 07 21:07:47 Is there a good reason? Mar 07 21:07:50 explodes: ok.. well what kinda app is this? most apps ARE bigger than 14 megs Mar 07 21:08:05 com.podpro.skiutah Mar 07 21:08:27 It was an update to podpro's old broken ass cheap-o version Mar 07 21:08:27 NutterzUK: People with bad sight can get the description read out to them Mar 07 21:08:48 Like alt tags I guess? Mar 07 21:10:35 Quick question, does the onPostExecute() run on the UI thread of AsyncTask? Mar 07 21:11:04 explodes: if people are REALLY gonna complain based on file size, most of them are moronic unless they are still uisng a G1 or something Mar 07 21:11:06 Gah Mar 07 21:11:20 I need to remove the close button on the emulator Mar 07 21:12:07 DrPenguin: Its a bunch of people who spent all of their money on ski resorts and snowboarding equipment, not phones Mar 07 21:12:28 explodes: so? its not like phones these days have only 100MB for apps Mar 07 21:12:29 The iphone version has no complaints about filesize, though. Mar 07 21:12:41 I dunno, I'm not them. Mar 07 21:12:50 But this next app targets the same audience. Mar 07 21:12:59 explodes: why dont you do what they ask then, allow for push to SD card Mar 07 21:13:11 How do you allow that? Mar 07 21:13:14 hey guys quick question Mar 07 21:13:16 http://stackoverflow.com/questions/6391902/how-to-start-an-application-on-startup Mar 07 21:13:17 Is it just a permission? Mar 07 21:13:20 explodes: google it? Mar 07 21:13:30 i'm looking at this article and it sort of makes sense but not really Mar 07 21:13:48 * g00s yawns. new iPad is kinda boring, but with nice display. question is, will any new android tablet compete with the iPad 2 @ $100 less Mar 07 21:13:49 do i put the receiver in the same class file as everything else? Mar 07 21:14:07 tsukasa_: first off, .hack ftw, second off, its simple.. you tell your app to respond to a Boot Completed. Then some guy in your App will catch that Signal and fire off what you need to do Mar 07 21:14:33 its all there really Mar 07 21:15:12 DrPenguin: it still needs a MySystemService class right? Mar 07 21:15:25 tsukasa_: just read the article, its there Mar 07 21:21:02 hi everybody! Mar 07 21:21:22 is it possible to get the requestcode in the subactivity? Mar 07 21:22:24 why do you need the request code? Mar 07 21:22:29 the subactivity is called by different buttons. the subactivity does basicly the same, but with different parameters depending on the pressed button Mar 07 21:22:33 no, but you could just pass it in as an extra Mar 07 21:22:47 s/could/should/ Mar 07 21:23:12 ok Mar 07 21:23:17 what a pitty Mar 07 21:23:22 thank you! Mar 07 21:24:54 have shared preferences changed? Mar 07 21:25:36 the example here: http://developer.android.com/reference/android/app/Activity.html under CalendarActivity doesn't work in my app... it doesn't like the line: SharedPreferences mPrefs = getSharedPreferences(); Mar 07 21:29:26 anyone work with android source code? Mar 07 21:29:44 I'm trying to remove the default apps in android build Mar 07 21:29:55 where should I look Mar 07 21:30:09 You should look in #android-root Mar 07 21:30:25 do they give stuff out at GTUG's too? Mar 07 21:30:38 DammitJim: Try and follow the link to getSharedPreferences just above the example Mar 07 21:31:47 thanks Mar 07 21:33:39 SimonVT, yeah, I changed it to use getSharedPreferences(String name, int i) and that worked Mar 07 21:34:04 but I wonder what kind of example that is... also, maybe this has changed for the newer APIs? I know it used to work before Mar 07 21:34:11 DrPenguin, I think i can solve my problem by using FLAG_ACTIVITY_CLEAR_TOP | FLAG_ACTIVITY_SINGLE_TOP, and using the onNewIntent callback Mar 07 21:34:30 bitkiller: which is what I told you to do just wihtout specifically saying what flags to use Mar 07 21:35:16 DrPenguin, Well, thanks Mar 07 21:37:31 How can I stop LogCat from auto-pausing? Mar 07 21:37:56 It's behavior is kind of unpredictable and annoying. Mar 07 21:39:17 Good news then, logcat doesn't pause Mar 07 21:41:53 interesting nfc keyboard http://www.gizmag.com/one2touch-nfc-keyboard/21705/ Mar 07 21:43:55 g00s: I dont think id be able to type with that Mar 07 21:46:54 any of you guys remember the problem with the system monitor I had? the one that plots the output of commands like "ps aux | awk '{print $3/4}'"? Mar 07 21:47:06 is it really necessary to provide ldpi resources for an app? Mar 07 21:47:15 it plots them on a graph-like thing using a chart engine? for memory and cpu consumption Mar 07 21:47:24 and the thread was randomly dying off Mar 07 21:47:27 i don't even know of any Android phone with ldpi Mar 07 21:47:35 well it turns out it needed system.gc() Mar 07 21:47:38 lul Mar 07 21:48:32 Afzal: probably not, it's up to you. Mar 07 21:48:41 k loke Mar 07 21:48:44 lov* Mar 07 21:48:55 tab in xchat fails me most of the times :( Mar 07 21:50:17 Ohoy! I have a textfile with about 11,000 lines (3ish mb). Would it be possible to load all the lines into an array and use it as an arrayadapter for autocomplete? When i tried it, it would take ages to load and even longer to display suggestions :/ Mar 07 21:50:31 am i doing it wrong or is the file just too large? Mar 07 21:51:31 er Mar 07 21:51:38 an arrayadapter is probably the wrong thing for this Mar 07 21:51:45 That sounds REALLY bad Mar 07 21:51:53 it IS Mar 07 21:51:59 what would be a better way to do it? Mar 07 21:52:09 well, how are you doing autocomplete in the first place? Mar 07 21:52:21 uhhhhhhhhh, why do you need 11k lines for possible suggestions all in 1 shot? Mar 07 21:52:32 KaosK: you'd probably want to use a Trie or something Mar 07 21:52:37 locations for a weather thingy Mar 07 21:54:13 hmm. Mar 07 21:54:26 well you can definitely segment that Mar 07 21:54:27 you're using an AutoCompleteTextView? Mar 07 21:54:34 yeah Mar 07 21:54:37 it's possible that you'll want to actually create your own class Mar 07 21:54:39 the idea of a Tree is a great idea Mar 07 21:54:46 DrPenguin: a Trie, not a Tree Mar 07 21:54:56 OHHH a Trie, yeah yeah even better Mar 07 21:54:57 Is it possible to have some kind of listener on a service (not using broadcast)? Mar 07 21:55:08 code1: yes, absolutely Mar 07 21:55:17 crud I barely touched that Data Structure in my Data Structs class Mar 07 21:55:21 a Trie.. hmm ill look into it :) Mar 07 21:55:27 hey lov Mar 07 21:55:44 KaosK: what I'm assuming happens with this class is that it sets the filter string, and then iterates over all entries in the array adapter and compares. Mar 07 21:55:51 this involves 11k string compares Mar 07 21:55:56 which is, decidedly, nonoptimal. Mar 07 21:55:58 yeah that hurts Mar 07 21:56:21 KaosK: these 11k entries are locations are they not? Mar 07 21:56:34 yes, names and longitudes/latitudes and some other info Mar 07 21:56:42 I'm looking into the service thing and trying to rewrite a class as a service. I have an Activity that is registered to it as a listener for events Mar 07 21:57:05 KaosK: you should seriously try to organize them into things like Continent or Region or someting so you can drastically reduce the number of entries that will be parsed at one time Mar 07 21:57:32 Obviously want to keep that connection when the activity starts it as a service - is binding the way to go or is there a simpler way? Mar 07 21:57:37 hmm, actually Mar 07 21:57:51 KaosK: instead of rewriting the textview, you might want to try making your own adapter Mar 07 21:57:58 all you need to do is set it as filterable and implement the content there Mar 07 21:59:05 heck, you might just be able to subclass ArrayAdapter and override the filtering behavior to be more appropriate Mar 07 21:59:30 (when the adapter is created, create some sort of mapping into the sorted array to keep track of where the characters are stored, etc) Mar 07 22:02:48 thanks, ill have a look into that Mar 07 22:04:03 lov: is binding the only way? Mar 07 22:04:35 iPhoto is $5 … when is google going to start making some good software like this for android? Mar 07 22:05:00 code1: the only way for what? Mar 07 22:05:02 they need more killer apps besides gMail Mar 07 22:05:10 and maps Mar 07 22:05:19 and google auth Mar 07 22:05:38 and market? Mar 07 22:05:39 lov: (21:54:56) code1: Is it possible to have some kind of listener on a service (not using broadcast)? Mar 07 22:06:02 .... right Mar 07 22:06:08 lov: play! Mar 07 22:06:15 store Mar 07 22:06:17 so yeah you'd want to bind to a service to register a listener, etc Mar 07 22:06:21 SimonVT: oh who cares Mar 07 22:06:22 you guys reall gotta start usig the right terminology darnit! Mar 07 22:06:26 haha Mar 07 22:06:42 lov: so I need to bind Mar 07 22:07:18 code1: .... most likely yes. Mar 07 22:07:32 if the service lives in the same process and you call startService you probably don't have to explicitly bind Mar 07 22:07:37 but you probably ought to Mar 07 22:08:12 code1: http://developer.android.com/guide/topics/fundamentals/bound-services.html Mar 07 22:08:20 take a look at http://developer.android.com/guide/topics/fundamentals/bound-services.html#Binder Mar 07 22:09:19 yeah I did look through that was just wondering if there was a simpler way of just attaching a listerner but I guess not. Mar 07 22:10:10 do Fragments persist across a screen rotate? Or are they all destroyed with the activity? Mar 07 22:11:31 Depends if you retain them Mar 07 22:11:38 setRetainInstance(true) Mar 07 22:11:39 lov: I guess I could use a Service singleton method - that could work? Mar 07 22:13:18 code1: down this road lies leaked contexts Mar 07 22:14:03 lov: could you explain / give an example? Mar 07 22:14:24 code1: I assume you're going to keep a reference of the Service, which is a context. Mar 07 22:14:38 this means that if the service is ever ended, you're still going to keep a static reference to it Mar 07 22:14:49 this is generally A Bad Thing. Mar 07 22:15:07 (tm) Mar 07 22:15:33 Honestly, binding isn't that hard. Mar 07 22:15:36 lov: I see, so when the service is ended it won't be GC because there is a reference to it? Mar 07 22:15:39 yes. Mar 07 22:16:39 What naming convention do people prefer on Android for class member variables? "myObject", "_myObject", "mMyObject"? In case of the first, how do you name method parameters? The same way, then use this.myObject to reference the class member variable in the same method? Mar 07 22:16:51 ok, I have a good look at binding. What generally happens when an activity is reloaded and needs to access the service that is already running? Mar 07 22:17:14 skfax: mMyObject Mar 07 22:18:04 you rebind to the already running service. Mar 07 22:18:11 skfax: m is the convention used in the platform source Mar 07 22:18:12 services are designed to have 0 or more connections simultaniously connected. Mar 07 22:18:27 as long as the service was started with startService, it will continue running Mar 07 22:18:47 SimonVT, evancharlton: thanks :) I'll stick to that convention then Mar 07 22:18:55 do you need to id the service or just create the same intent and it matches up? Mar 07 22:19:12 yes, the same intent should start the same service. Mar 07 22:19:20 it always will if you use a classname for the service Mar 07 22:20:09 so if you create the same intent (using classname), android says "wait a minute there's already a service running for that" and uses it? Mar 07 22:21:06 If I have an activity whose state changes, and I want to update several Fragments contained in a FragmentPager, what is the best way to do that? Mar 07 22:21:24 I'm having trouble when I create a List of my Fragments in the activies onCreate() Mar 07 22:22:29 My balls often get in the way of my attainment of a comfortable sitting position. Mar 07 22:23:43 I don't like the idea of prefixing member variables with mXXX - seems kinda pointless Mar 07 22:23:44 cutting them off would be pragmatic Mar 07 22:23:47 code1: yes Mar 07 22:23:50 code1: so don't do it Mar 07 22:23:59 it's the retarded version of hungarian notation Mar 07 22:24:03 alankila: I don't Mar 07 22:24:17 lov: thanks Mar 07 22:24:22 for the guys who don't have text editors capable of showing members differently from local variables I guess Mar 07 22:25:10 alankila: yeah I suppose it's more useful there - or just use 'this' Mar 07 22:25:21 nah, not big on code that can be omitted Mar 07 22:25:27 this.foo = foo the only special case to me Mar 07 22:25:40 same Mar 07 22:25:49 even more commonly I just put a _ before the local variable name where it conflicts Mar 07 22:26:02 yuck! ;) Mar 07 22:26:11 better than Foo.this.foo :-p Mar 07 22:26:12 pragma_: you could have an inguinal hernia. watch our, you can get gangrene of your nuts ! Mar 07 22:26:36 Foo.this.foo? Mar 07 22:26:41 * alankila has seen a picture of gangrene on the nuts. Don't make me link it. Mar 07 22:26:46 hmm Mar 07 22:26:56 g00s: that is a big assumption. he may not have nuts... :) Mar 07 22:27:01 Log.d("frag", "type set to " + t); Mar 07 22:27:01 hehe Mar 07 22:27:22 oh internet, the worst and the best thing to have ever happened, simultaneously. Mar 07 22:28:26 lol too true Mar 07 22:28:36 Blue Waffles. Mar 07 22:28:38 it could also be scrotal lymphedema Mar 07 22:28:51 pragma_: is this you ? http://www.thesun.co.uk/sol/homepage/news/3879480/Man-with-giant-testicles-needs-1million-op.html Mar 07 22:29:19 pragma_: haha blue waffles would be the female equivalent! Mar 07 22:29:33 is that edible? can you cut off his balls and feed an impoverish country? Mar 07 22:30:39 what the hell is happening in here Mar 07 22:31:13 it's an urban legend and not recognized by the medical community. Mar 07 22:31:14 evancharlton: we seem to have gone WTF Mar 07 22:31:27 specifically, reddit.com/r/WTF Mar 07 22:31:45 irc.freenode.net/android-dev/WTF Mar 07 22:33:51 for people using unity 3d http://news.ycombinator.com/item?id=3675191 Mar 07 22:35:24 okay enough of the WTF Mar 07 22:35:31 don't make me pull this channel over Mar 07 22:35:52 * g00s sees blinking lights in the rearview mirror. Mar 07 22:36:01 * Gumboot finds himself checking this channel at an odd moment. Mar 07 22:36:16 don't lie you have a highlight set on "ctate" just in case Mar 07 22:36:26 >:) Mar 07 22:36:43 ctate: see what happens when you go away for long periods of time > Mar 07 22:36:51 you need to hang out here more often Mar 07 22:36:53 XD Mar 07 22:37:17 No, it's a highlight on WTF. Hardly ever fires, mind you. Mar 07 22:37:31 Gumboot: have you ever looked at the code that's posted here? Mar 07 22:37:37 it would trigger every couple of minutes Mar 07 22:37:57 http://instantrimshot.com/ Mar 07 22:38:04 I have never seen code posted here. Mar 07 22:38:23 * pragma_ checks /lastlog http and notes no pastebin, ideone, codepad, pastesite pastes. Mar 07 22:38:39 Oh snap, evancharlton Mar 07 22:39:03 * g00s is pretty happy that his 3rd gen iPod touch, which he purchased at the same time as his droid-1, received iOS 5.1 Mar 07 22:39:21 pragma_: Well, I just flooded my screen with /last pastebin Mar 07 22:39:42 Get a bigger buffer. Mar 07 22:40:43 It wouldn't really surprise me if the majority of the people asking questions here are teenagers without any knowledge of programming who think they can produce cool cell-phone app by copying/pasting stuff from tutorials and blogs. Mar 07 22:40:55 That's what I do! Mar 07 22:41:05 pragma_: that sums up most of the development methodology I've seen, even amongst "professionals" Mar 07 22:41:15 pragma_: please send me the codes Mar 07 22:41:15 But I have an extra trick I use. Mar 07 22:41:27 After I paste it in, I mash the keyboard until the ... you've all heard it before. Mar 07 22:42:18 kinda gross dude. Mar 07 22:42:27 cat-like typing detected Mar 07 22:43:01 how do i tell adb logcat to use the emulator and not my phone? "adb logcat emulator-5554" doesn't work Mar 07 22:43:05 ctate: That's a good point. I could use a cat for some portion of my development cycle. Mar 07 22:43:23 apoc: if you do "adb devices" it will tell you the identifer of every device + emulator that is currently attached Mar 07 22:43:29 I just need a plugin for Eclipse which detects when all the syntax errors have gone away and then builds and deploys the code. Mar 07 22:43:42 Well, it's always building. I guess just deploys it. Mar 07 22:43:42 then you can do e.g. "adb -s 3630101A0C6900EC logcat" Mar 07 22:43:43 ctate: yeah there two Mar 07 22:43:45 to tell it when one to use Mar 07 22:44:07 ctate: ahh yea works thanks Mar 07 22:44:14 of course it works, silly :) Mar 07 22:44:26 i myself define aliases for "adb -s WHATEVER" for each of the devices i routinely use Mar 07 22:44:29 sure :D Mar 07 22:44:36 * Gumboot wonders if cats have a better chance than monkeys at producing great works. Mar 07 22:44:49 ctate: thats a good practice yeah Mar 07 22:44:50 so "nsadb" runs adb specifically against my development Nexus S, etc. Mar 07 22:44:58 ctate: adb -e logcat just picks the emulator, iirc Mar 07 22:45:11 doesn't scale when there's mroe than one running emulator instance, but yeah Mar 07 22:45:28 fortunately, the emulator doesn't scale beyond one running emulator instance! Mar 07 22:45:31 * evancharlton ducks Mar 07 22:45:42 you'll still need the -s WHATEVER if you want to specify a device *instead* of the running emulator Mar 07 22:45:58 ctate: adb -d Mar 07 22:46:00 BAM Mar 07 22:46:10 oh fine just make things EASY why don't you Mar 07 22:46:18 you think EVERYONE should be able to write android code? sheesh. :) Mar 07 22:46:25 ctate: thankfully, some far lazier engineer than myself has touched this code before me Mar 07 22:46:39 can i do this in eclipse aswell? select what device the logcat window is showing i mean Mar 07 22:46:58 apoc: i have no idea; i've never really used the SDK-based toolset :) Mar 07 22:47:10 i imagine you can Mar 07 22:48:18 ctate: a while back i asked if there were any examples of using the backup agent with sqlite db, you mentioned the settings app - do you know of any other examples ? Mar 07 22:48:35 not offhand Mar 07 22:48:40 ok, thx Mar 07 22:48:47 np Mar 07 22:59:58 how do I get kernel for OMAP? Mar 07 23:00:01 source code Mar 07 23:00:45 Linaro have those, don't they? Mar 07 23:00:51 oh you lying sonofabitch Amazon app store Mar 07 23:01:02 "Notifications: disabled" Mar 07 23:01:05 boom, notification in the bar Mar 07 23:01:36 actually I am working with new hardware but wanted to look at OMAP as reference. Mar 07 23:01:58 linaro.org? Mar 07 23:02:32 When the user pushes 'search', I want to save his query and actually perform it. Each action has its own AsyncTask. Should I chain them up (ie, save, then search), or should I just start the both at the same time ? Mar 07 23:02:45 *them Mar 07 23:03:43 Subodh: Yeah. Maybe git.linaro.org. Mar 07 23:11:01 what's the difference between the target version and the min sdk version in the manifest file? Mar 07 23:11:16 hello, remember me? :P Mar 07 23:11:47 I mean, I get what the 'difference' is, but why is it giving me a warning if the minsdk version is lower than the target? Isn't that supposed to be how it works? Mar 07 23:11:51 heya duo_ :) Mar 07 23:12:13 ender|x: It is, which is why the warning is removed in the next version of the ADT Mar 07 23:12:24 ah Mar 07 23:12:31 ender|x: hi ;] Mar 07 23:12:35 k, cool. Mar 07 23:12:59 im struggling with this problem: how can i change query of initialised cursorloader? Mar 07 23:13:00 'target' is which API level you want to be able to call from your code Mar 07 23:13:19 what i want to do is to filter listview according to some edittext value Mar 07 23:13:21 min sdk version is the lowest API level at which you're claiming that you'll run successfully Mar 07 23:14:10 so, that doesn't necessarily mean it *will* run at that level though. right? Mar 07 23:14:33 duo_: I've been struggling with cursorloader crap all day. hehe Mar 07 23:15:29 ender|x: err, what do you mean? if you say minSdkVersion=8 (froyo) but then you crash on Froyo devices because your app calls new-in-Gingerbread methods, then you've done something wrong and deserve all the 1-star Market reviews you get Mar 07 23:15:56 ender|x: my first approach was to get cursorloader instance by id, and then setSelectionArgs on it. but nothing happens when i do it. should i , dunno , create new cursorloader, and replace old one ? Mar 07 23:17:24 cstate, I'm not shooting for the market. this is an internal app. I've never done anything with android before. I'm the only one here that knows java, so I got stuck with the job. Mar 07 23:17:36 sad, I know... Mar 07 23:18:02 ender|x: hey, sounds just like my situtation :D Mar 07 23:18:09 hehe Mar 07 23:18:42 the easiest thing of course is to set target = the lowest Android version you know you'll be running on Mar 07 23:18:48 and just set minsdk to the same thing Mar 07 23:18:51 * Gumboot wonders if Subodh had any luck. Mar 07 23:18:58 "builds for froyo; runs on froyo and up" Mar 07 23:19:00 ctate: i keep min = target = 8 Mar 07 23:19:06 exactly Mar 07 23:21:11 * g00s is looking forward to the new adt 17 lint feature concerning minsdk / targetsdk Mar 07 23:22:15 ah, ok. Mar 07 23:25:15 ender|x: You don't need to know Java to code in Java. I'd never written a line of code in Java six months ago, but it takes no time to bang stuff out. Mar 07 23:25:33 If you don't want the job, try that argument. Mar 07 23:26:23 Gumboot: sounds like you're probably writing some high-quality code Mar 07 23:26:29 srs Mar 07 23:26:39 evancharlton: It's just a shim. Mar 07 23:26:42 You don't need to know spanish to speak spanish either Mar 07 23:26:48 There are no big ideas in Java that make it hard to get your head around. Mar 07 23:27:46 Thank god the ADT 17 preview fixed library project s and the designer window... Mar 07 23:28:59 I would like to make tabs like in BatteryDrain or ColorDict, I guess they've used Fragment, but how to do it ? Mar 07 23:29:08 * Gumboot notes that he describes both his Java and C++ experience as 'cursory' in his CV. Mar 07 23:29:12 I probably no more C++ than that. Mar 07 23:29:16 erk! Mar 07 23:29:18 s/no/know/ Mar 07 23:29:43 cursory? Mar 07 23:29:47 that's pretty not so good Mar 07 23:30:10 Yeah. Probably more negative than I need to be about it. Mar 07 23:30:24 C++ is _massive_. I don't know half of it. Mar 07 23:31:28 Maybe I do know half of it. Mar 07 23:31:33 How much is half of C++? Mar 07 23:31:53 mm, functional code is kinda sexy Mar 07 23:32:18 well, it depends on what you mean by half-of-it Mar 07 23:32:24 too bad functional languages aren't :) Mar 07 23:32:34 I am confident that I know more C++ than a lot of people who claim to know C++, but I still wouldn't like to go far beyond 'cursory'. Mar 07 23:32:47 ctate, they're much more sexy than java, any of them :p Mar 07 23:32:58 only if you like eyebleeding Mar 07 23:33:04 i mean, Haskell? oh please. Mar 07 23:33:17 eyebleeding might be sexy. There are fetish sites, I'm sure. Mar 07 23:33:29 compact code is usually sexy Mar 07 23:33:30 * pfn just wrote his own implementation for generating TR.scala Mar 07 23:33:30 So presumably there are functional language fetish sites, too. Mar 07 23:33:34 haskell most definitely leads to compact code Mar 07 23:33:36 Wait... is this channel meant to be worksafe? Mar 07 23:33:39 https://github.com/pfn/android-sdk-plugin/blob/master/src/tasks.scala#L36 Mar 07 23:34:01 so one might say there can be haskell code that is sexy. i agree, for simple problems Mar 07 23:34:02 gzip leads to compact code too. Mar 07 23:34:15 true, but haskell code can still be readable Mar 07 23:34:20 quite readable actually Mar 07 23:34:36 haskell is readable if you know all the commonly used functions in-depth Mar 07 23:34:44 it's just as soon as you use pretty much any kind of library at all, everything goes downhill Mar 07 23:34:48 -:, <*> <$> etc. Mar 07 23:35:21 well, as soon as you want to do any sort of I/O Mar 07 23:35:27 Whenever I say I know a language, I usually mean that I can look at a sample of code and have a good idea what it does. It works in most languages...then there's Perlgex. Mar 07 23:35:37 as soon as you say "monad" you might as well switch to a useful language :) Mar 07 23:35:47 well, haskell is pure... Mar 07 23:35:50 ctate: I thought that was the beauty of functional languages. They didn't have to deal with the ugliness of the real world, where I and O are connected. Mar 07 23:35:53 you have to maintain state through monads Mar 07 23:36:12 Gumboot: yeap, that's where most of its use to me stops Mar 07 23:36:16 or pretend that state doesn't exist Mar 07 23:36:32 * pfn can't wrap his mind around it Mar 07 23:36:37 well, another great use is how it is appreciated by teachers here. that's definitely a pre. Mar 07 23:36:57 I saw a slide that rocked my world, today. The first mention of state machines that made a compelling case (to me) for state machine views of code. Mar 07 23:38:45 That was on parallelising code through specific markup. Mar 07 23:38:55 * pfn has never really written a state machine Mar 07 23:38:57 at least not intentionally Mar 07 23:38:59 * Gumboot pines for a world without powerpoint all the same. Mar 07 23:39:12 Well, everything is. It's just a question of whether you want to model it that way. Mar 07 23:39:15 And I never have. Mar 07 23:43:20 I'm probably prejudiced by the childhood trauma of having to clean up someone's code after seeing them try to draw a state machine for a keyboard scanner, actually. Mar 07 23:45:29 i used android's hierarchical state machine class with much success :) Mar 07 23:47:38 g00s: which class is that? Mar 07 23:48:50 evancharlton: StateMachine Mar 07 23:49:00 it used to be called HierarchicalStateMachine i think Mar 07 23:49:52 not a public API? Mar 07 23:50:02 no. its self contained though Mar 07 23:50:15 i just coped it out Mar 07 23:50:20 ah, I was wondering why I couldn't find it :) Mar 07 23:58:20 why do widgets go unclickable after orientation change? I looked on stackoverflow but those answers dont appear correct... most only have +1. Mar 07 23:59:01 works just fine until I change orient... not sure if I need android:configChange flag but again, not sure where to put it since the widget is not really and activity Mar 07 23:59:04 as defined in the manifest Mar 08 00:00:07 I can't find my database: http://pastebin.com/Xy5qwXNT Mar 08 00:00:27 Guys, I need to download a bunch of images serially and update a ViewPager with them. Right now I'm trying to use an ExecutorService, which I'm invoking for each getView() in the adapter, but it's not really working. Any ideas? Mar 08 00:01:17 JeroenDL why are you looking in a subdirectory of databases? Mar 08 00:01:34 ya, why in ../databases/competition? Mar 08 00:01:42 it should be in /databases Mar 08 00:01:54 that's what I tried first, but that doesn't contain a .db file Mar 08 00:02:17 what is your constant DATABASE_NAME Mar 08 00:02:24 JeroenDL: jump out back to root / then back in... if you reinstalled and still in the directory then that path doesn't exist anymore Mar 08 00:02:26 "competition" Mar 08 00:02:28 and can fool you Mar 08 00:02:43 I'm working from root Mar 08 00:02:44 the fact it has no extention is your own fault then Mar 08 00:02:57 it needs to be competition.db Mar 08 00:03:07 or just realize that competition is the db file Mar 08 00:03:22 and stop trying to use it as a directory Mar 08 00:03:28 I tried loading 'competition' (sqlite3 data/data/.../competition) but that gives me an error Mar 08 00:03:44 error: link_image[1963]: 28026 could not load needed library 'libncurses.so' for 'sqlite3' (load_library[1105]: Library 'libncurses.so' not found)CANNOT LINK EXECUTABLE Mar 08 00:03:47 if you do ls -l data/data/package.name/databases what do you git Mar 08 00:04:07 404 Mar 08 00:04:09 again, no the files fault Mar 08 00:04:17 404? wtf Mar 08 00:04:21 wait, wrong terminal :D Mar 08 00:04:41 -rw-rw---- 1 app_95 app_95 5120 Mar 8 00:58 competition Mar 08 00:04:51 see, not a directory Mar 08 00:05:03 the libncurses.so has nothing to do with your file Mar 08 00:05:12 your sqlite3 is mezzzzzed up Mar 08 00:05:14 so... sqlite3 is broken ? Mar 08 00:05:15 hmm Mar 08 00:05:22 this on a device or emulator? Mar 08 00:05:25 device Mar 08 00:05:31 and how did you get sqlite3 on there? Mar 08 00:05:36 most don't come with it Mar 08 00:05:52 aha... It worked on my transformer, but maybe my GS2 doesn't have it ... Mar 08 00:06:08 How do I get it on there ? Mar 08 00:06:22 download it and push it to your device Mar 08 00:06:25 it might be included in busybox, but not sure... but again... how did you get it on there in the first place? Mar 08 00:06:37 because the sqlite3 binary is there it seems Mar 08 00:07:05 I've flashed this phone a lot, so maybe I had busy box on it once and then flashed over it (without wipe) and now its all messed up? Mar 08 00:07:15 How the f-word is it possible that ArrayDeque can't be found in java.util in my Eclipse instance? Mar 08 00:07:36 just kidding, it's not included in busybox Mar 08 00:07:40 I've tried updating the Java build path to include 1.5 and 1.6 - no luck. Mar 08 00:07:41 WTF? Mar 08 00:08:23 what api level Chronax? Mar 08 00:08:36 your target api that is Mar 08 00:08:53 1.6 apis are not available in 2.0 Mar 08 00:09:13 my transformer has sqlite3. Maybe it comes with HC? Mar 08 00:09:29 it's not a API thing, it's a device thing Mar 08 00:09:50 you running a custom rom on it JeroenDL? Mar 08 00:10:08 yes, on both Mar 08 00:10:12 the rom must have it Mar 08 00:10:24 the android documentation doesn't really say you need anything special Mar 08 00:10:37 (http://developer.android.com/guide/developing/tools/sqlite3.html) Mar 08 00:10:44 sqlite3 binary isn't included in the api Mar 08 00:10:48 it's on the emulator Mar 08 00:10:57 but it not included in the frameworks as far as I know Mar 08 00:11:33 so if I didn't do "repo init -U ... --mirror" in the beginning, then I can't add --mirror as an option later on, right? Mar 08 00:11:53 why do you need --mirror Mar 08 00:14:22 Can I pull sqlite3 from my transformer and push it to my GS2, or will that not work ? Mar 08 00:14:29 maybe Mar 08 00:14:32 try it and see Mar 08 00:16:59 i can't get the avd up and running. i'm brand new and on ubuntu. getting this error: Emulator] PANIC: Could not open: /home/adam/.android/avd/4-0-3.ini Mar 08 00:17:23 seems like it can't open /home/adam/.android/avd/4-0-3.ini Mar 08 00:17:52 i sudo'd eclipse, why else might it not be able to open it? Mar 08 00:18:04 Okay, different question. Is it possible to change the thread pool size for an AsyncTask? Mar 08 00:20:00 How can I remove the title bar in the graphical layout view in Eclipse? It hid it on one of my layouts, but haven't got a clue how. Mar 08 00:20:30 hi to all, does anybody can help me with Ksoap2? Mar 08 00:21:10 i have a problem with managing session cookies in .Net services Mar 08 00:21:20 Oh, there it is. Goddamn notXMLoptions. Mar 08 00:21:35 evancharlton: ADT appears to not be creating an ini file Mar 08 00:23:15 Push & pull sqlite3 didnt work Mar 08 00:24:04 pfn: just looking at the android "Downloading the source tree" Mar 08 00:24:14 * pfn doesn't recall needing to --mirror Mar 08 00:32:13 can some one help me with .net cookies manage? Mar 08 00:34:54 so frustrated... one of my widgets works fine when orientatino of the phone changes. The other widget loses ability to click on buttons. Mar 08 00:36:04 Daniel_g: please don't just randomly /msg people; if people had help to give, they'd let you know :) Mar 08 00:36:21 00:20:30 < Daniel_g> hi to all, does anybody can help me with Ksoap2? Mar 08 00:36:32 Wait... there's that run-time substitution of methods in Java. Is that a big idea? Mar 08 00:36:41 What cookie mmanger are you using Dan? Mar 08 00:37:59 what runtime substitution of methods Mar 08 00:38:50 Daniel_g: Not sure if it'll help, but here's some ksoap2/.net code. Last time I messed with that stuff was five years ago. http://www.blackberryforums.com/developer-forum/107187-nullpointerexception-ksoap2.html#post758836 Mar 08 00:39:29 my rom should have sqlite, so I'm trying a full wipe Mar 08 00:39:48 hey can someone take a look at my manifest and see if you can spot some obvious problems with it and services: http://pastebin.com/xqDQHqhG Mar 08 00:40:12 pfn: Umm... it came up in a discussion about JIT optimisations. The problem of not being able to inline everything (or at least, being ready to undo it) because some classes might be substituted. Mar 08 00:40:16 tsukasa_: that's ... not a helpful description of your problem Mar 08 00:40:19 I assumed it was a big idea I hadn't got my head around. Mar 08 00:40:34 I don't know if it's a language thing or a platform thing or what. Mar 08 00:40:40 evancharlton: i'm trying to get services to work and they aren't starting. not really sure how else to debug it Mar 08 00:40:52 evancharlton: i assume i just have something pointing wrong Mar 08 00:40:54 Gumboot, well, if stuff isn't final, it can't be inlined Mar 08 00:41:02 tsukasa_: well for starters fix your indenting Mar 08 00:41:07 it's impossible to read Mar 08 00:41:13 pfn: Yes. Because...? Mar 08 00:41:19 Gumboot, because all methods are virtual Mar 08 00:41:20 second: crap goes inside of Mar 08 00:41:46 That in itself isn't a reason. Mar 08 00:41:57 There has to be a consequence, not simply an attribute. Mar 08 00:43:09 evancharlton: http://pastebin.com/AztTY7jW Mar 08 00:43:48 I mean, there are obviously cases where it's impossible, but there are cases where you should expect to have visibility of everything that matters and at that point you should be able to see that it's safe. Mar 08 00:43:52 But, evidently, you can't. Mar 08 00:45:10 Well... you can, as I said, but you have to be ready to throw it away. Mar 08 00:45:46 tsukasa_: 19:45 < evancharlton> second: crap goes inside of Mar 08 00:46:48 * Gumboot struggles to think of a worked example of each. Mar 08 00:47:59 evancharlton: alright i just moved everything into , reran the whole thing and rebooted. nothing Mar 08 00:48:11 tsukasa_: make sure you have run your UI activity from Launcher at least once before trying to test the boot-completed broadcast receiver Mar 08 00:48:13 pfn: Perhaps I should check my assumption that what I was told was true. Mar 08 00:48:28 on sufficiently new versions of Android, apps don't get broadcasts until they've explicitly been run by the user at least once Mar 08 00:48:45 ctate: that's not for apps that were adb-installed, no? Mar 08 00:48:52 it may be; i don't know. Mar 08 00:49:11 to be safe make sure to bring up the activity from launcher before rebooting to test the boot-completed receiver Mar 08 00:49:22 also remember to look at logcat to see what's actually happening Mar 08 00:49:27 That is; perhaps I should confirm that there is a way to change underlying methods called by a class other than by extending that class and overriding those methods. Mar 08 00:49:43 Is there a way to change underlying methods called by a class other than by extending that class and overriding those methods? Mar 08 00:50:00 at install time, at reboot time, and after boot -- also remember that you can look at the set of the N most recent broadcasts sent by the system via adb dumpsys Mar 08 00:50:55 Gumboot: not as far as i know Mar 08 00:51:43 ctate: Nothing in the line of unloading the class and loading a different implementation of that class? Mar 08 00:52:03 not on android in that case Mar 08 00:52:16 Hm. Mar 08 00:52:35 the jvm has hot-code replacement stuff, but realistically, it shouldn't prevent jit optimizations Mar 08 00:52:35 * Gumboot adds it to the "suspicious things he's heard" pile. Mar 08 00:52:48 I hate people, and am not really a team player... where would be a good place to find a software job Mar 08 00:52:56 users, y u no upgrade to newer version of my app? Mar 08 00:53:00 ron_frown: Your garden shed. Mar 08 00:53:05 ron_frown, somewhere you can be an individual contributor Mar 08 00:53:08 ron_frown, short term contracts Mar 08 00:53:13 (unless dev console is a lying backlogged delayed piece of crap, which it probably is) Mar 08 00:53:26 Pragma, yeah its probably that Mar 08 00:53:28 pfn actually that sounds like its right on the money for me Mar 08 00:53:41 pfn: I think hot code replacement was probably precisely the thing that was being discussed, then. Mar 08 00:54:17 Gumboot, you don't get hot-code swap on android, though Mar 08 00:54:20 * pfn shrugs Mar 08 00:54:27 Yeah. It was a more general Java thing. Mar 08 00:54:54 Having asserted that there were no big ideas in Java, I did eventually realise there was something I was a bit iffy on which I knew existed. Mar 08 00:55:02 I don't suppose code replacement is actually a big idea, though. Mar 08 00:55:11 I seem to find myself in the same position in every job I end up in... knowledgable and a leader... but then people that are my superiors seem to hold me down Mar 08 00:55:22 sick of all the god damn polotics Mar 08 00:55:56 If you don't mind being a leader, you could work where I am. Mar 08 00:55:59 contracting and running your own biz Mar 08 00:56:01 freelance contracting Mar 08 00:56:04 pfn Mar 08 00:56:07 basically the answers to that situation Mar 08 00:56:08 quiet pfn, i'm talking here. Mar 08 00:56:11 that has crossed my mind as well Mar 08 00:56:35 I like being a leader, I know whats going on, I know whats gonna work and whats not Mar 08 00:56:43 and when i am wrong, I have no problem admitting it Mar 08 00:56:43 another option would be to give your superior sexual favors Mar 08 00:56:50 Well maybe I can cash in, here. Mar 08 00:56:52 What country are you in? Mar 08 00:56:57 Gumboot usa Mar 08 00:57:09 Hm. Mar 08 00:57:12 where is Gumboot, USA? Mar 08 00:57:33 pragma_: They have crazy placenames. I bet it can be found. Mar 08 00:57:36 java.lang.NoSuchMethodError: android.support.v4.app.Fragment.setMenuVisibility Mar 08 00:57:37 indeed Mar 08 00:57:39 at com.hanhuy.android.irc.MainActivity$$anonfun$pageChanged$2.apply$mcVI$sp(MainActivity.scala:355) Mar 08 00:57:43 * pfn still wonders how he ever got such an exception Mar 08 00:57:52 (crash report from a user) Mar 08 00:57:57 y u no use telnet for irc? Mar 08 00:58:08 shit like my coworker who never even looked at android prior to about 2mo ago is setting guidelines about UI shit Mar 08 00:58:15 nothing more aggrivating than that shit Mar 08 00:58:18 seems impossible, especially since it's bundled Mar 08 00:58:27 I really wish error reports would include device and version Mar 08 00:58:33 so I can tell if it's some fucked up rom or something Mar 08 00:58:44 pfn considered rolling in acra Mar 08 00:58:45 ? Mar 08 00:58:57 not yet, no Mar 08 00:59:03 lulz, I ignored the UI guidelines for icons and created my own colorful graphics with my own ideas about shadowing and lights Mar 08 00:59:27 pfn I find it more convenient to not use google docs side of it, but it works well Mar 08 00:59:43 I'll consider looking at it sometime, right now, don't wanna roll it in Mar 08 00:59:50 and logs EXTENSIVE amounts of data (well you pick and choose what you want) Mar 08 00:59:52 understood Mar 08 00:59:59 not really a big deal Mar 08 01:00:04 it's an isolated crash report Mar 08 01:00:08 that I've never seen happen before Mar 08 01:00:15 and should never be able to happen Mar 08 01:00:20 nsme on an included library Mar 08 01:00:47 pfn: could be someone with an xda special janktacular custom system image Mar 08 01:00:58 it's ludicrous how inept a lot of that crowd is Mar 08 01:01:05 hqhq Mar 08 01:01:06 ctate, they are completely inept Mar 08 01:01:20 they don't know what they're doing, they just twiddle a few bits and pray that it works Mar 08 01:01:25 yeah Mar 08 01:01:29 total cargo cult Mar 08 01:01:34 I kind of wonder where I got my system image on my MIPS tablet. Mar 08 01:01:35 ctate, but why would that result in an nsme on Fragment.setMenuVis in the support lib, though Mar 08 01:01:50 But MIPS themselves promised me Renderscript support in 4.0.3, so I took what I could find. Mar 08 01:01:53 that is pretty weird, pfn Mar 08 01:01:56 They PROMISED! Mar 08 01:02:02 there are a lot of things people depend on as a part of the os that they absolutely shouldnt Mar 08 01:02:03 Gumboot: addict. ;) Mar 08 01:02:26 ctate: Hook me up, man! I need another fix. Mar 08 01:02:37 yeah, but MIPS? Mar 08 01:02:45 It was fifty quid! Mar 08 01:02:50 1988 called. They want their IBM RT back. Mar 08 01:03:04 Why on earth is it so hard to make an AsyncTask execute serially? Mar 08 01:03:10 I like to collect different processors. Mar 08 01:03:22 chronax because the point of it is asyncrhonously Mar 08 01:03:25 I wanted to see where Ingenic were at, and (professionally) I wanted to see where MIPS were at. Mar 08 01:03:31 You know... for obvious reasons. Mar 08 01:03:34 you mean execute async tasks from within synchronous methods? Mar 08 01:03:34 Hi, can some one help we with google maps? ive got this error "NoClassDefFound". Mar 08 01:03:42 Chronax, just for your happiness, asynctasks are serial by default in ics+ Mar 08 01:03:43 But it turned out I couldn't get my renderscript stuff going. Very disappointing. Mar 08 01:03:48 Yeah, I dig that, but what if I need to execute stuff in background threads in order, 1 at a time. Mar 08 01:03:51 Chronax: define "serially"? Mar 08 01:03:57 oh I get what you are saying Mar 08 01:04:00 Right, but of course I'm targeting API level 8. Mar 08 01:04:04 ah, MULTIPLE async tasks, to run serially? Mar 08 01:04:09 Exactly. Mar 08 01:04:09 chain em Mar 08 01:04:11 with callbacks Mar 08 01:04:13 not ideal Mar 08 01:04:13 ctate, yeah, I still disagree with the ics api change :p Mar 08 01:04:25 To download n images serially, and update the UI when they're complete. Mar 08 01:04:29 asynctasks should not run serially, damnit Mar 08 01:04:31 that's just lame Mar 08 01:04:33 chain them with callbacks, or explicitly specify serial ordering, or instead use a HandlerThread and post work to it. Mar 08 01:04:40 I'm using a ViewPager with an AsyncTask. Each getView(View v) fires off an AsyncTask. Mar 08 01:04:41 what ctate said Mar 08 01:04:44 Trouble is, they all update at once. Mar 08 01:04:47 or just use a single asynctask that does multiple steps Mar 08 01:04:48 oh Mar 08 01:04:55 shit build something that fires em off Mar 08 01:04:56 Chronax, you're doing it wrong Mar 08 01:04:56 IE: IT spins up a new thread for each view, and they all appear. Mar 08 01:04:58 a few at a time Mar 08 01:05:03 Thanks, pfn. ;) Mar 08 01:05:08 This is not my code. Mar 08 01:05:10 threading is hard... Mar 08 01:05:11 I'm trying to fix it. Mar 08 01:05:17 Chronax, then whomever's code it is is doing it wrong Mar 08 01:05:19 It's a little tricky. Mar 08 01:05:23 I'm starting to think that threading is wrong. Mar 08 01:05:38 Actually, it worked fine -- but now I added higher res photos, so the performance / UX sucks. Mar 08 01:05:39 * Gumboot waits to see if that's controversial. Mar 08 01:05:59 threading can't be wrong with the rise in multi-core processors Mar 08 01:06:09 Can you guys point me at any chained AsyncTask kinds of examples? I've been Googling for hours to no avail. Trying to use an ExecutorService with a Runnable now, but I know it's not safe to update the UI from the runnable, so... Mar 08 01:06:13 pfn: That's precisely why I'm asserting that it's wrong, actually. Mar 08 01:06:27 Although there's a semantic problem, there. Mar 08 01:06:32 Chronax, uh, create a bunch of runnables and pass them to your asynctask Mar 08 01:06:39 run each runnable in sequence Mar 08 01:06:47 pfn: Again, using a ViewPager, so I can't create a bunch of runnables here. Mar 08 01:06:52 sure you can Mar 08 01:07:04 Iyeah thats an idea Chronax Mar 08 01:07:09 That would work perfectly, but I'm stuck using getView() Mar 08 01:07:26 as well, an asynctask is not the ideal model for this Mar 08 01:07:28 The problem is the shared memory space. I'm not sure that software necessarily gets use from that which justifies the hassle it causes multi-core memory coherency systems. Mar 08 01:07:31 use a handlerthread as ctate mentioned Mar 08 01:07:41 man Mar 08 01:07:51 post a runnable to the handlerthread Mar 08 01:08:02 post ui updates to the main handler Mar 08 01:08:05 easypeasy Mar 08 01:08:09 * Gumboot wonders if it's getting controversial, yet. Mar 08 01:08:32 t = new HandlerThread(); t.start(); h = new Handler(t.getLooper()); Mar 08 01:08:46 I create a handler in a nunit test and pass it into shared lib and handler never gets called back Mar 08 01:08:49 any ideas on that one? Mar 08 01:08:53 uiHandler = new Handler(Looper.getMainLooper()) Mar 08 01:09:14 handler.post({ my background thread; uiHandler.post({ shit to do when it's done})}) Mar 08 01:09:14 Actually; perhaps Java could be the kick-off point for approaching the problem from the other direction altogether. Mar 08 01:09:14 yeah, lemme repeat the recommendation to use a HandlerThread Mar 08 01:09:20 pfn: And then I'd post runnables into that handler's message queue? Mar 08 01:09:25 * Gumboot adds it to his list of research projects. Mar 08 01:09:26 Chronax, yes Mar 08 01:09:31 Righteous. Mar 08 01:10:06 But wait. Mar 08 01:10:07 Looper/Handler is a crazy useful pattern in Android Mar 08 01:10:12 Won't that just do the exact same thing? Mar 08 01:10:20 IE: It won't wait for 1 thread to complete before starting the next... Mar 08 01:10:21 AsyncTask is fine for isolated one-off background work Mar 08 01:10:25 Exactly. Mar 08 01:10:31 Chronax, what do you think the meaning of "serial execution" is Mar 08 01:10:39 Exactly! Mar 08 01:10:39 but for *anything* more sophisticated you should use a more appropriate tool Mar 08 01:10:40 that's what you asked for Mar 08 01:10:48 you didn't like the way AsyncTask did it Mar 08 01:10:56 so what are you asking for Mar 08 01:11:04 Chronax, oh, it will wait Mar 08 01:11:09 It will? Mar 08 01:11:09 Chronax, that's what a handler does Mar 08 01:11:10 Okay. Mar 08 01:11:12 process one message at a time Mar 08 01:11:13 Bitchin'. Mar 08 01:11:17 Chronax: yeah, i thought you *wanted* it to finish the first thing before going on to the second. Mar 08 01:11:23 I do! Mar 08 01:11:23 Looper/Handler does that. Mar 08 01:11:25 ctate, misread Mar 08 01:11:29 roger that Mar 08 01:11:33 Thanks guys. Mar 08 01:11:50 serial execution ftl Mar 08 01:11:59 (for async tasks) Mar 08 01:12:04 note that of course the things on your HandlerThread and stuff on your "main" looper thread can and will run concurrently Mar 08 01:12:09 But won't this also block the UI thread then? Mar 08 01:12:12 which is the point of HandlerThread :) Mar 08 01:12:40 Chronax, no Mar 08 01:12:50 Chronax, that's why you post to uiHandler when your runnable block is done Mar 08 01:12:54 with a runnable that updates ui Mar 08 01:12:57 So... 2 handlers? Mar 08 01:13:05 yes, as I indicated above Mar 08 01:13:06 okay hang on Mar 08 01:13:13 I typed exactly what you needed Mar 08 01:13:17 except for the java garbage boilerplate Mar 08 01:13:18 ctate: that pm I sent you hours ago was meant as a query on whether it's acceptable to pm you, by the way. Mar 08 01:14:08 hm, Looper/Handler are not discussed in our overview docs Mar 08 01:14:21 Gumboot: heh, missed it; sorry. yes PM ok now that you've asked : ) Mar 08 01:14:40 Chronax: your app has one thread of execution called the "main" thread or "UI" thread Mar 08 01:14:52 that thread is associated with a Looper [see the docs on that] Mar 08 01:15:01 romainguy_ alluded to the possibility of multiple ui threads in the future Mar 08 01:15:05 * pfn wonders how that would be handled Mar 08 01:15:24 it's already possible Mar 08 01:15:25 a Looper is a message/work queue bound to a particular thread Mar 08 01:15:31 you can have several UI threads in a single process Mar 08 01:15:41 your app can easily create *additiona* threads that have associated Loopers Mar 08 01:15:56 romainguy_, how would that work? what is the behavior of Looper.getMainLooper in that case? Mar 08 01:16:00 so that you can run work on those threads independently of (and concurrently with) work that is happening on the main/UI thread Mar 08 01:16:24 HandlerThread is an Android class that makes it dirt simple to set up new looper/handler threads for this purpose Mar 08 01:16:29 the end. Mar 08 01:16:33 romainguy_, or is this handled on a per-activity basis or something Mar 08 01:16:45 Right, I know that ctate -- and I'm cool on the Looper, too. Mar 08 01:17:12 Chronax: okay, great. i was really redundant because i coudn't know what gaps i might need to fill in, and because the peanut gallery here might not have the same background as you. Mar 08 01:17:13 What I don't understand is PFN's earlier example, which involved HandlerThread, Handler, and another Handler that hooks up the UI's main Looper. Mar 08 01:17:29 what about it don't you understand Mar 08 01:17:34 Chronax: okay, that gets to what exactly is the relationship between Looper and Handler Mar 08 01:17:36 Do I really need all 3 of those? Mar 08 01:17:41 yes Mar 08 01:17:43 the Looper is the thread and message/work queue Mar 08 01:17:50 Handler + HandlerThread = background processing worker Mar 08 01:17:55 Handler + MainLooper = UI thread Mar 08 01:17:59 a single Looper can be fed work/messages by *any number* of Handlers Mar 08 01:18:17 Aha. Mar 08 01:18:18 Okay. Mar 08 01:18:18 you post to Handler+HandlerThread to do background work serially Mar 08 01:18:20 Jeez. Mar 08 01:18:22 multiplexed onto the Looper thread Mar 08 01:18:23 Handler + MainLooper to update UI Mar 08 01:18:36 Is there a good example of these 3 somewhere? Mar 08 01:18:42 each message is tagged with which Handler it was obtained from, and for handling is dispatched back to that Handler instance Mar 08 01:19:12 when you want to construct a Handler instance you can point it at whatever Looper you want it to run its work on Mar 08 01:19:24 by default, if you don't specify, it runs on your app's main/UI thread Mar 08 01:19:26 Chronax, from earlier example, h.post(runnable { sleep(10000); uiHandler.post(runnable { Toast...."I'm done".show() })}) Mar 08 01:19:36 Chronax, translate into proper java Mar 08 01:19:40 heh, right. Mar 08 01:19:48 Chronax, the thread will sleep for 10 seconds, and the ui will show a toast 10 seconds later Mar 08 01:19:55 is there some HandlerThread stuff in API Demos? Mar 08 01:20:03 replace the 10s sleep with real work Mar 08 01:20:52 hm i guess not Mar 08 01:20:56 Hrm... Thansk for all the help here, guys. Wish there was a complete example of these parts somewhere. Mar 08 01:20:57 (re API Demos) Mar 08 01:21:13 * pfn uses abstractions to make handlers piss easy to work with Mar 08 01:21:20 Chronax: there are lots of examples in the platform source, but i don't know of any offhand in the SDK or other random dev-facing stuff Mar 08 01:21:31 Can I do uiHandler.post() from a BACKGROUND thread's runnable? Mar 08 01:21:36 Chronax, of course Mar 08 01:21:43 Chronax, that's exactly what I just showed you Mar 08 01:21:51 Mother of God. Mar 08 01:22:03 it's actually rather simple Mar 08 01:22:06 and hugely useful Mar 08 01:22:12 Why don't I only need the UIHandler, and the Background thread? Mar 08 01:22:17 think of Handler as somewhat related to java.awt.EventQueue if you're familiar with java UI Mar 08 01:22:20 I don't think I see where the class HandlerThread comes into play. Mar 08 01:22:25 Chronax, because work on the UI handler /blocks/ UI Mar 08 01:22:50 HandlerThread is a convenience for creating a new thread that is a Looper, and a Handler that performs its work on that new Looper thread. Mar 08 01:22:54 Chronax, ui handler = ui thread Mar 08 01:22:55 But I'd create a Handler for the UI's looper, and post Background messages into IT's queue. Mar 08 01:23:11 Right? Mar 08 01:23:14 Don't I just need: Mar 08 01:23:14 it's slightly irritating to bring up a new thread and turn it into a Looper the direct way Mar 08 01:23:15 Chronax, if you post messages into the ui, it won't be background Mar 08 01:23:23 ==pfn Mar 08 01:23:24 HandlerThread doesn't create a handler Mar 08 01:23:25 Standby. Going to pastebin stome stuff. :) Mar 08 01:23:28 it just generates a Looper Mar 08 01:23:35 I guess an elaborate API Demo would help. Mar 08 01:23:39 Handler for the UI thread => runs its work in the foreground, serialized with all other UI-thread work. Mar 08 01:24:32 So I have this half-baked theory of critical chain analysis being applied to events passed between threads... Mar 08 01:24:41 pfn: okay yeah i see that now. it just makes it dirt easy to set up a new thread that is a Looper, and provides a getLooper() method so you can trivially point a Handler instance at it. Mar 08 01:25:00 http://pastebin.com/UHfEmVL9 Mar 08 01:25:04 In order to generate a mapping between stimulus and response, and to determine, on that path, what it is that takes all the time. Mar 08 01:25:34 Is that available fully-baked in any form outside of my head? Mar 08 01:25:43 Does that pastebin illustrate my question? Mar 08 01:25:51 IE, where can I safely do ImageView.setImage()? Mar 08 01:25:57 Chronax, http://pastie.org/3545378 Mar 08 01:26:25 that's generally how it'd work, just translate to java Mar 08 01:26:26 Chronax: uiHandler, in your code, runs its work on the main/UI thread. Mar 08 01:26:44 so you just post a message or runnable with uiHandler, and it runs on the UI thread. boom. Mar 08 01:26:46 pfn: Is this pseudo-code? Mar 08 01:26:48 Jeez. Mar 08 01:26:57 How do I know when the BG thread is done? Mar 08 01:26:57 Chronax, it's scala Mar 08 01:27:02 Ahh... Mar 08 01:27:10 pfn: good god don't throw scala into this Mar 08 01:27:12 Chronax, if you wrote this: Mar 08 01:27:17 poor lad is confused enough as is :) Mar 08 01:27:20 main() { sleep(1000); printf("foo") } Mar 08 01:27:27 why does printf need to know that sleep is done? Mar 08 01:27:28 That's happening on the UI thread. Mar 08 01:27:42 I dig. Mar 08 01:27:47 I don't like nesting of git repos in aosp -- this stuff is confusing me :( Mar 08 01:27:50 Chronax, so same question, why does the UI thread need to know that BG thread is done? Mar 08 01:28:06 It doesn't? Mar 08 01:28:13 hi to all, does anybody can help me with Ksoap2? Mar 08 01:28:14 uiHandler.post( new Runnable() { public void run() { /* this runs on the main thread */ } } ); Mar 08 01:28:21 Chronax, you execute run() { sleep(10gigaseconds); uiHandler.post(run() { Toast... }) } Mar 08 01:28:28 Chronax, does that execute sequentially? Mar 08 01:28:45 ctate, it compiles :p Mar 08 01:28:46 shurane: they aren't nested; they're separate Mar 08 01:28:47 Sure. Mar 08 01:29:00 10giga seconds O.o; Mar 08 01:29:05 Chronax, so, by reason, does the uiHandler.post occur after sleep(10gigaseconds)? Mar 08 01:29:17 Very good example. Mar 08 01:29:18 Thank you. Mar 08 01:29:22 Still a bit confused. Mar 08 01:29:22 shurane: it's for a couple of reasons, one of which is that there's something like 4 million lines of code in Android. you dont' want to have to grind through all of that for all work. :) Mar 08 01:29:28 Going to forge ahead and pastebin in a few minutes. Mar 08 01:29:51 shurane, because having a gajillion files in a single git repo is a recipe for pain Mar 08 01:30:02 what about git submodules vs. repo though Mar 08 01:30:09 I've wondered about that myself, not knowing submodules well at all Mar 08 01:30:48 I think its frustrating having to go to each module to commit changes Mar 08 01:30:50 hm actually Mar 08 01:30:51 submodules can be a pain Mar 08 01:30:56 linux kernel is 8 million lines? Mar 08 01:30:57 but other than that I can see value in keeping them separate Mar 08 01:31:07 i forget why we didn't use submodules; there was some good reason Mar 08 01:31:08 ron_frown, repo hides that fact from you Mar 08 01:31:12 they're sort of broken, iirc Mar 08 01:31:14 because they suck Mar 08 01:31:26 check out another branch, add a submodule Mar 08 01:31:27 commit that Mar 08 01:31:28 submodules seem to not be as fully-featured as repo in my brief overview of them Mar 08 01:31:30 can you use repo to make a local commit? Mar 08 01:31:35 ron_frown, of course Mar 08 01:31:38 ron_frown, they're all git repos Mar 08 01:31:39 then switch to another, and there's that folder! Mar 08 01:31:40 sure Mar 08 01:31:41 it's all just git Mar 08 01:31:47 git commit everywhere Mar 08 01:31:51 the 'repo' part only comes into play when you sync or upload to gerrit or whatever Mar 08 01:31:59 thats what I am saying Mar 08 01:32:05 repo is convenient for making a branch across all the git repos Mar 08 01:32:06 because they all origininated in diff git repos Mar 08 01:32:08 I think I should set my nightly system maintenance cron job to run earlier so that I'm reminded, earlier, to go to bed. Mar 08 01:32:09 for submitting a patch Mar 08 01:32:20 although if you are ever going to sync or upload or whatever, you're better off using 'repo branch' and 'repo rebase' and so on rather than direct 'git branch' and 'git rebase' etc Mar 08 01:32:20 I make some changes in frameworks/base Mar 08 01:32:27 some in packages/apps/Settings Mar 08 01:32:28 etc Mar 08 01:32:35 I just want to commit everything =) Mar 08 01:32:49 yeah you have to run 'git commit' in each place Mar 08 01:32:57 cos they're different git packages Mar 08 01:32:57 thats what I have been doing Mar 08 01:33:10 i don't even know whether there's a "repo commit" :) Mar 08 01:33:17 probably not Mar 08 01:33:21 doesn't appear to be Mar 08 01:33:26 don't remember how stuff was committed Mar 08 01:33:31 I only ever tried submitting a patch once... Mar 08 01:34:11 huh, what's this android.el ... there's an emacs mode? Mar 08 01:34:28 ics got ethernet support like half implemented Mar 08 01:34:28 wtf Mar 08 01:34:34 wonder why they even bothered with that much Mar 08 01:34:42 probably contributed by GoogleTV or a partner Mar 08 01:34:43 Okay, pfn. Mar 08 01:34:44 http://pastie.org/3545405 Mar 08 01:34:45 WTF? Mar 08 01:34:51 WTF! Mar 08 01:34:56 basically the only good it is is dhcp only Mar 08 01:35:05 and you can keep track of the data usage Mar 08 01:35:11 no configuration UI for it that I can see Mar 08 01:35:21 Chronax: note that you're calling it "backgroundRunnable" but you're running it on the foreground main/UI thread, not the background HandlerThread. Mar 08 01:35:30 Chronax, no, you're doing it wrong Mar 08 01:35:38 handler.post(backgroundRunnable) Mar 08 01:35:48 Chronax, imageview.setImage goes in a *separate* uiRunnable Mar 08 01:35:54 That's what I thought. Mar 08 01:35:56 pfn: http://www.catonmat.net/blog/wp-content/uploads/2008/12/john-mccarthy-programming-completely-wrong.jpg Mar 08 01:35:57 So I create 2 runnables. Mar 08 01:35:59 you call uiHandler.post(uiRunnable) *after* download image Mar 08 01:36:10 And I post them both to the handler's message queue? Mar 08 01:36:15 The BG, and the one that updates the UI? Mar 08 01:36:23 Chronax, no, one to the bg handler, one to the ui handler Mar 08 01:36:25 that dude looks exactly like my grandfather Mar 08 01:36:25 handlers' Mar 08 01:36:27 not handler's Mar 08 01:36:35 But then won't they be out of sync? Mar 08 01:36:45 ron_frown: that dude, created LISP Mar 08 01:36:45 IE: Image downloads, but the other one tries to update with the image? Mar 08 01:37:09 Any suggestions on where to hook into the ant build system to run a different proguard.cfg on release builds? Mar 08 01:37:20 (to strip out logging calls) Mar 08 01:37:30 If the background thread downloads the image, and the UI runnable updates the UI, how do I execute them in order if they're using 2 different handlers? Mar 08 01:37:39 Chronax, http://pastie.org/3545417 Mar 08 01:38:05 Chronax, one executes after another Mar 08 01:38:16 Aha! Mar 08 01:38:24 So I post the message INSIDE this guy's runnable. Mar 08 01:38:30 correct Mar 08 01:38:30 Let me try one more time and paste again. Mar 08 01:38:39 Thanks a lot, btw. I owe you guys an Anchor Steam. Mar 08 01:38:40 that's where the knowledge is that it's done Mar 08 01:38:47 so that's where you post the next piece of work Mar 08 01:38:55 wyvern`, hah... hook into is a mild term ;-) Mar 08 01:38:59 and you post it to *execute* wherever is appropriate Mar 08 01:39:05 pfn: not rape too hard?? :) Mar 08 01:39:22 or "not get blown away when I update to r17" ? Mar 08 01:39:38 wyvern`, some of it would need some merging for r17 Mar 08 01:40:21 Chronax: btw, by defaut a HandlerThread runs at normal foreground thread priority Mar 08 01:40:22 wyvern`, I usually copy/paste large portions of build.xml sdk_home/tools/ant/build.xml into local_build.xml Mar 08 01:40:33 wyvern`, and then in my project's build.xml Mar 08 01:40:33 if you want it to actually run at a background thread priority, you need to do that yourself Mar 08 01:40:38 :( Mar 08 01:40:39 wyvern`, then start overriding targets Mar 08 01:40:42 yeah Mar 08 01:40:46 i was hoping to avoid that but if I must... Mar 08 01:40:50 wyvern`, simple answer, don't use ant... Mar 08 01:40:59 what you do is override onLooperPrepared() in your HandlerThread subclass, and call Process.setThreadPriority(...) from there. Mar 08 01:41:07 there are maven and sbt plugins for building android projects Mar 08 01:41:26 yeah, i could try again with maven i suppose. it was a PITA because I didn't have an artifact repo set up but i could just make one Mar 08 01:41:41 wyvern`, you can try my sbt plugin if you're bored ;-) Mar 08 01:41:46 i will. link? Mar 08 01:41:54 https://github.com/pfn/android-sdk-plugin Mar 08 01:42:04 i'll try that tomorrow Mar 08 01:42:15 basically install sbt by downloading sbt-launch.jar; echo "java -jar sbt-launch.jar "$@"" > sbt Mar 08 01:42:16 Is this closer? Mar 08 01:42:17 http://pastie.org/3545444 Mar 08 01:42:31 to get sbt, then git clone my plugin; and sbt publish-local... follow the rest of the readme Mar 08 01:42:46 wyvern`, although, not super easy in my config right now either, but it's something I can make a patch for... Mar 08 01:43:02 i'll give it a shot and let you know how it goes Mar 08 01:43:20 Chronax: that'll do it Mar 08 01:43:22 wyvern`, anyway, if the project builds with ant, it should transparently work with my sbt plugin Mar 08 01:43:29 with 3 lines of configuration Mar 08 01:43:48 You guys rule. Mar 08 01:43:50 Thanks a lot. Mar 08 01:43:59 echo 'addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "0.1.0")' > project/plugins.sbt Mar 08 01:44:10 Also, why does the HandlerThread need a name in its constructor Mar 08 01:44:12 ? Mar 08 01:44:15 Can I just give it anything? Mar 08 01:44:16 echo "seq(androidBuildSettings:_*)" > build.sbt Mar 08 01:44:33 Chronax, the name is just for debugging purposes Mar 08 01:44:41 also for stack traces when it crashes Mar 08 01:44:55 which is a debugging purpose, I suppose Mar 08 01:45:53 Inevitable. :) Mar 08 01:50:11 right Mar 08 01:50:19 that's the thread name as displayed in 'ps' etc Mar 08 01:50:37 just the string passed to the Thread(String) ctor Mar 08 01:51:43 I'm on Xfce, and I have no idea how to flip the emulator Mar 08 01:51:47 Ctrl + F11 doesn't work Mar 08 01:51:53 is RelativeLayout not allowed in widget? Mar 08 01:52:02 why is android sdk so awesome :( Mar 08 01:52:07 i gotta get some sleep, gotta stop working Mar 08 01:52:20 * toxicFork commits 15 files Mar 08 01:52:23 then do it Mar 08 01:52:28 yeah... gonna sleep now. Mar 08 01:53:11 oh also for sqlite and pragma foreign keys, you should turn it on every time you open the database (learned it the hard way) Mar 08 01:53:26 wat Mar 08 01:53:42 was asking about this in this channel some time ago Mar 08 01:53:45 figured it out etc. Mar 08 01:53:46 oh Mar 08 01:53:48 too sleepy to make sense Mar 08 02:00:14 It works! Mar 08 02:00:18 You guys rule harder than the Roman Empire. Mar 08 02:00:48 iron fists our specialty. Mar 08 02:11:15 is there a syntax to set BLACK color to this, maybe something like perhaps: tvComment.setTextColor(R.BLACK); Mar 08 02:11:16 ? Mar 08 02:12:52 maxagaz: i think tvComment.setTextColor(Color.BLACK); should work Mar 08 02:12:54 maxagaz: maybe using the Constants from the Color class? Mar 08 02:13:37 that or id imagine you could give it a hexadecimal value Mar 08 02:13:48 apoc: thanks, that's what I was looking for Mar 08 02:16:12 my widget will become unresponsive (unresponsive to clicks) when the phone changes orientation... i wasn't able to find any real solutions on stackoverflow, anyone encounter this before? Mar 08 02:16:39 QubeZ: maybe you needto handle orientation changes? Mar 08 02:19:02 DrPenguin: well true, possibly, i guess since I just ran into this issue... I can't be 100% certain it was working before. Mar 08 02:20:02 hi to all, does anybody can help me with Ksoap2? Mar 08 02:20:09 i go into my app and back out then it works again... because I am calling update on all my widgets. I am also doing this within the widget provider code too but doesn't appear to be doing anything. Mar 08 02:20:35 QubeZ: maybe monitor logcat when you do an orientation change? could be getting a non fatal exception Mar 08 02:25:52 hi Mar 08 02:25:58 i have a question:) Mar 08 02:26:21 * ctate | Ask your question, don't ask to ask Mar 08 02:26:25 ... from the channel topic :) Mar 08 02:27:07 du -sh ~/home/tools/android-sdk-linux/add-ons/ Mar 08 02:27:07 2.6G /home/jack/home/tools/android-sdk-linux/add-ons/ Mar 08 02:27:25 can add-ones on linux be copied to windows env? Mar 08 02:27:43 can addones on linux work on window? Mar 08 02:28:00 i do not myself know what is in the add-ons Mar 08 02:28:28 ctate: im looking in my addons, some things include addon-google_apis, the intel x86 system image... they look platform agnostic Mar 08 02:28:55 hi ctate! Mar 08 02:29:11 devrel at devlab were telling people to use multiapk Mar 08 02:29:21 hell Mar 08 02:29:24 best thing since sliced bread Mar 08 02:29:39 ctate can add-ones on linux be copied to windows env? Mar 08 02:29:54 jameslor: what are the add-ons? Mar 08 02:29:57 jameslor: whats stopping you from just downloading them again? Mar 08 02:30:36 i myself would just install the SDK on the windows box straight out Mar 08 02:34:23 DrPenguin dude, the network sucks, may take days to download that sdk, Mar 08 02:34:46 days? what are you on dialup? Mar 08 02:36:01 hell Mar 08 02:36:29 just want to know if i can reuse addones from another pc Mar 08 02:36:40 google is a hell Mar 08 02:37:05 jameslor: well, like I said, they DONT look platform / architecture dependent.. so I cant see why not Mar 08 02:37:20 such update method is for anxious on bugs:( Mar 08 02:48:25 hey guys, what do you use for sending android logs to a server? **** ENDING LOGGING AT Thu Mar 08 02:59:58 2012