**** BEGIN LOGGING AT Wed Feb 15 02:59:57 2012 Feb 15 03:00:24 relative layout Feb 15 03:00:29 or gridlayout backport Feb 15 03:00:47 or vertical linearlayout inside a horizontal linearlayout Feb 15 03:00:55 but flatter hierarchy is better Feb 15 03:00:57 so they say Feb 15 03:01:20 +1 Relative layout Feb 15 03:01:39 super easy to learn to use and can make your layouts so much easier to make Feb 15 03:01:47 instead of these crazy nexted linear layouts Feb 15 03:02:23 nested* Feb 15 03:02:54 can Theme.Holo.Light.DarkActionBar be used in conjunction with an overlay action bar? Feb 15 03:03:14 I'm thinking no Feb 15 03:04:59 Nevermind. Chair to keyboard interface issue. Feb 15 03:14:13 why does the holo dialog not wrap around its children its always too large? Feb 15 03:14:38 when I apply the regular dialog theme this is not a problem, is there any work around for this? Feb 15 03:19:45 pics Feb 15 03:19:50 it's probably by design Feb 15 03:20:18 so i can get a hexstring from an int with .toHexString() but how to get an int from that string? Feb 15 03:23:37 parseInt takes a base Feb 15 03:23:38 ah Integer.valueOf( bla, 16 ) Feb 15 03:23:46 same thing Feb 15 03:23:47 :) Feb 15 03:29:34 Hey guys Feb 15 03:29:54 Having the issue with debug time-outs, any ideas on how to fix this... Feb 15 03:30:07 I have tried restarting adb and unplugging my phone etc.. Feb 15 03:32:51 Anyone? Feb 15 03:33:31 restart eclipse Feb 15 03:33:41 or w/e ur ide is Feb 15 03:33:48 I have been Feb 15 03:33:56 eclipse does very strange things sometimes Feb 15 03:33:58 Also, is it common for eclipse to crash when you click debug? Feb 15 03:34:05 no... Feb 15 03:34:06 Happens at least 3 times a day for me Feb 15 03:34:11 If not more... Feb 15 03:35:19 are u sure u have latest jdk/jre adt plugin sdk and eclipse version? Feb 15 03:35:35 Yup Feb 15 03:35:57 Reinstall eclipse. I have been having a lot of issues with Indigo Feb 15 03:36:04 I just installed Helio Classic to play it safe Feb 15 03:36:05 Also, everytime I USB debug, it says uploading appname.apk and then 10 seconds later, it says time, launch canceled.. whyis this Feb 15 03:36:13 indigo has issues use helios Feb 15 03:36:50 oops Feb 15 03:36:59 my mistake helios is the older version Feb 15 03:37:22 Whats the big difference with helios and indigo? Feb 15 03:37:44 Also, are you using eclipse classic? Feb 15 03:37:46 indigo is newer version Feb 15 03:37:51 One worked for me and one didn't. I was having crashes, error messages, and just general problems with ADT Feb 15 03:37:58 and yes indigo is newer Feb 15 03:38:29 So Eclipse Classic Helios is reccommended for Android development it sounds like? Feb 15 03:38:33 I never once had issues with Helios C. so I just went back to that and it solved all of my problems Feb 15 03:38:41 I hate there versioning convention or anyone that does that Feb 15 03:38:59 honeycomb, ice cream sandwich wtf... just say 3.0 4.0 Feb 15 03:39:29 I like how Android and Debian version their products.. It makes me smile every time Feb 15 03:39:41 And it keeps me wondering Feb 15 03:40:20 Snwspeckle: i dont use the classic version Feb 15 03:40:30 What do you use? Feb 15 03:42:45 eclipse for java EE developers Feb 15 03:42:46 nearly every product has codenames Feb 15 03:43:02 although the recommended is eclipse classic Feb 15 03:43:04 Android, Ubuntu, and Eclipse all use theirs more publicly than others Feb 15 03:43:23 they all still have underlying versions though Feb 15 03:43:23 I still hate it Feb 15 03:43:48 well talking about version numbers in everyday speech is lame Feb 15 03:43:55 codenames make you sound less nerdy Feb 15 03:44:08 So what is really new in Indigo that Helios didn't have? Feb 15 03:44:09 JakeWharton: Sometimes. Feb 15 03:45:25 depends on your preference i guess Feb 15 03:46:00 Snwspeckle did you follow the android dev guide for installing the sdk? Feb 15 03:46:09 http://developer.android.com/sdk/installing.html Feb 15 03:46:09 Snwspeckle: "What's New-" http://bit.ly/ltWj5V Feb 15 03:46:51 Indeed and thanks Feb 15 03:47:06 Snwspeckle: you can try netbeans the UI is way better in my opinion and netbeans is alot less buggy Feb 15 03:47:16 but it is not officially supported Feb 15 03:47:53 I would rather prefer eclipse, its easier to navigate Feb 15 03:48:13 ^ I would agree with that. I got it working but the emulators loaded sooooo slow Feb 15 03:48:26 use actuall devices. Feb 15 03:48:30 Sorry, meant to agree with Gsingh Feb 15 03:48:46 And so do I, but at the time I was on campus and used emulators on my laptop Feb 15 03:49:11 Snwspeckle: what was your error msg when you try to debug? Feb 15 03:49:11 Going from Netbeans to Eclipse is torture to me Feb 15 03:49:20 haha same here Feb 15 03:49:29 i was like wtf is this shit Feb 15 03:49:33 timeouts, all the time Feb 15 03:49:57 I didn't mind eclipse, but IntelliJ is working pretty well for me Feb 15 03:50:23 can you post the actuall error u get? Feb 15 03:50:42 I mean timeout msg Feb 15 03:51:06 t0mless: Never tried it.. Seems really lightweight Feb 15 03:51:09 Dont Feb 15 03:51:17 JakeWharton Feb 15 03:51:18 really? Feb 15 03:51:20 valentines day? Feb 15 03:51:24 wut? Feb 15 03:51:25 you gonna beep me Feb 15 03:51:32 ALL CODE NO SLEEP Feb 15 03:51:40 s/sleep/something else in a bed/ Feb 15 03:51:44 eat? Feb 15 03:51:51 watch tv? Feb 15 03:51:56 code? Feb 15 03:51:56 Don't you love when your ISP downgrades your internet on "accident", I am going to blow the receiver box outside my house in flames tomorrow... Feb 15 03:52:09 I should be getting 30mb download, I am getting 1 mb... Feb 15 03:52:47 are u sure something isnt hung up in ur router or modem somewhere? Feb 15 03:53:10 I had that issue so I did the normal unplug/plug thing Feb 15 03:53:26 I am on my 11th modem dude, its the ISP, terrible service at its finest... Feb 15 03:53:52 what isp? Feb 15 03:53:54 3 BBB reports I guess doesn't convince them that something is fucked up Feb 15 03:53:57 Windstream... Feb 15 03:54:11 lol sounds like some local crap Feb 15 03:54:16 It is Feb 15 03:54:25 I'm with comcast although its nothing to brag about Feb 15 03:54:27 burmat, you have it to!? Feb 15 03:54:53 upgrade to t3 Feb 15 03:54:54 Snwspeckle: No. But I have heard stories Feb 15 03:55:13 Its either they have really bad service or one of my neighbors is downloading some extreme porn :P Feb 15 03:55:22 I just like to link to these every now and again: http://www.speedtest.net/result/1760473052.png Feb 15 03:56:02 I have a pile of modems in my office and when the truck comes around to offer service, I go up to their house and show them a picture of my scenario after 1 year; they shut the door on the salesman :P Feb 15 03:57:21 http://www.speedtest.net/result/1773820373.png............................ Feb 15 03:57:21 so JakeWharton what did you want? Feb 15 03:57:27 i forget Feb 15 03:57:30 any bugs? Feb 15 03:57:43 I pay for 30mb down and i get nearly 2 mb... Feb 15 03:58:00 JakeWharton i havent used it Feb 15 03:58:01 lol Feb 15 03:58:02 i cann ow Feb 15 03:58:07 gf is being antisocial :( Feb 15 03:58:08 i'm about to RC Feb 15 03:58:14 i say that as im on irc Feb 15 03:58:14 small claims court Feb 15 03:58:15 lol Feb 15 03:58:24 so don't bother unless I can fix them in about 6 seconds Feb 15 03:58:43 well i still want a working build on my phone :P Feb 15 03:59:14 i need to get this out before midnight EST so ignoring you all for now Feb 15 03:59:14 can you appease my cow? Feb 15 03:59:19 it hasn't changed Feb 15 03:59:25 lib has Feb 15 03:59:28 oh ok Feb 15 03:59:29 :) Feb 15 03:59:37 I pay (around US$31) for gigabit and get... well, about half that at peak, but I'm not really complaining Feb 15 03:59:37 current 4.0-wip is RC1 Feb 15 03:59:47 making change log and updating beta site now Feb 15 04:00:20 Leeds, Thats a great price. I'm paying ~$40 for 23 down 2 up Feb 15 04:00:30 supposed to be 30 down 3 up Feb 15 04:00:34 burmat: it is a great price, yes... Feb 15 04:02:58 lol JakeWharton i made a new build Feb 15 04:02:59 and its like Feb 15 04:03:00 retarded Feb 15 04:03:06 its the stripped down version i made for you :P Feb 15 04:03:13 oh Feb 15 04:03:14 haha Feb 15 04:04:50 come on work :) Feb 15 04:04:53 :D Feb 15 04:04:54 <3333 Feb 15 04:05:32 bed, night all Feb 15 04:08:57 JakeWharton i just emailed you a build Feb 15 04:09:02 you can see how awesome ABS makes it :) Feb 15 04:14:03 will check soon Feb 15 04:14:05 releasing Feb 15 04:14:21 yep no probs Feb 15 04:15:02 JakeWharton: you don't have a simple shell script for that? :P Feb 15 04:15:58 it's a beta/release candidate release Feb 15 04:16:01 so it's manual Feb 15 04:16:18 otherwise it'd be 'mvn release:prepare release:perform' and walk away Feb 15 04:16:35 if only I could get a maven plugin that updated the APKs on the Android market Feb 15 04:16:41 I would have to do absolutely nothing Feb 15 04:18:19 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.8:checkstyle (default) on project sample-demos: An error has occurred in Checkstyle report generation. Failed during checkstyle execution: There are 4 checkstyle errors. -> [Help 1] Feb 15 04:18:21 doh! Feb 15 04:19:44 trailing spaces :-x Feb 15 04:19:50 nothing like failing a build for some trailing spaces Feb 15 04:20:00 heh Feb 15 04:20:03 tbh, i'd like that Feb 15 04:20:10 we have style guidelines that some people dont follow Feb 15 04:20:17 although that guy's had quite a few talking-tos lately Feb 15 04:20:25 haha Feb 15 04:20:30 my other guy at work is like that Feb 15 04:20:44 no spaces between if/for and opening parenthesis Feb 15 04:20:45 drives me nuts Feb 15 04:20:57 we pretty much use the default eclipse formatter Feb 15 04:21:03 which pretty much matches android style guidelines Feb 15 04:21:11 the problem is like Feb 15 04:21:12 ugh Feb 15 04:21:12 for(blah) // >.> Feb 15 04:21:18 even within zynga, shit varies Feb 15 04:21:29 if (x)\n{ vs if (x) { Feb 15 04:21:37 yeah jyou can see multiple styles in AOSP all over the place like that Feb 15 04:22:03 with friends android vs dream zoo android...it's night and day Feb 15 04:22:14 fields are mWhatever vs _whatever Feb 15 04:22:26 braces on same/new line Feb 15 04:22:41 ew leading underscore Feb 15 04:22:48 speaking of which Feb 15 04:22:48 https://market.android.com/details?id=com.zynga.dreamzoo Feb 15 04:22:50 :):):) Feb 15 04:22:56 it's got 1000 ratings Feb 15 04:22:57 more crap by you? Feb 15 04:22:57 holy fuck Feb 15 04:22:58 wait, you work at zynga? Can you add wqords to the WWF database? :P Feb 15 04:23:08 i didnt work on dreamzoo Feb 15 04:23:09 haha Feb 15 04:23:12 but i know a lot of people who did Feb 15 04:23:17 wow Feb 15 04:23:18 SeligArkin: i CAN Feb 15 04:23:20 the icon is total herp derp Feb 15 04:23:24 LOL Feb 15 04:23:31 cool Feb 15 04:23:35 SeligArkin if you have ACTUAL words that arent in there, send me a list Feb 15 04:23:56 we had to remove some racial slurs recently Feb 15 04:24:00 i didnt even know they were racial slurs Feb 15 04:24:29 canadiancow: I'll try and remember to write them down, my dad is obsessed with it all of the sudden, he keeps bitching about random words that aren't in there. :P Feb 15 04:24:36 heh Feb 15 04:25:01 * SeligArkin disconnected from facespace awhile ago. :P Feb 15 04:31:43 $ nslookup beta.abs.io Feb 15 04:31:43 Server: 192.168.1.1 Feb 15 04:31:43 Address: 192.168.1.1#53 Feb 15 04:31:43 ** server can't find beta.abs.io: FORMERR Feb 15 04:31:49 wut?! Feb 15 04:32:28 lol Feb 15 04:32:53 PS C:\Users\Scott> nslookup beta.abs.io Feb 15 04:32:53 Server: DD-WRT Feb 15 04:32:53 Address: 192.168.1.1 Feb 15 04:32:53 Non-authoritative answer: Feb 15 04:32:53 Name: beta.abs.io Feb 15 04:32:53 Address: 207.97.227.245 Feb 15 04:33:01 stupid verizon Feb 15 04:36:50 will getAbsolutePath() always return a string ending in the fileseperator? like "/bla/" instead of "/bla" Feb 15 04:38:04 In any case, for those interested: ActionBarSherlock v4.0 RC1 has just been released @ http://beta.abs.io Feb 15 04:40:07 huzzah, will try it out Feb 15 05:07:09 now what... Feb 15 05:07:18 guess i have to start documenting crap :( Feb 15 05:07:35 canadiancow, make documentation Feb 15 05:13:30 night all Feb 15 05:16:23 lol JakeWharton Feb 15 05:16:24 gnight Feb 15 05:19:55 if I sign my apk with my real key and distribute it from my website, do users still need to enable Unknown Sources? Feb 15 05:28:26 yes Feb 15 06:46:45 Hello buddies! Couldn't someone help me? Well, I'm making 2nd app with building listview form large string-array resource file. And this is second time we get same problem. Feb 15 06:46:58 Any recommendations on setting up a download of an APK using random url's? Feb 15 06:47:01 i.e. one per use Feb 15 06:47:03 user Feb 15 06:47:07 It works great on any cell except 2.2 ones, it doesnt crash it only returns to previous screen. Feb 15 06:47:39 In the current application I even retrieve the string array and put only paginated 10 in the listview. What could be this problem? Feb 15 06:48:37 Also, this is OK if the string array contains like no more than 200 items, but when its like 700 it behave as I explained before Feb 15 06:49:29 First client told me to forget this problem since it's not a problem when other cells load it fine, but current one makes me to fix it. I know I could go other ways, but I don't have any idea why is it so. Feb 15 07:05:07 i start an asynctask, can it be that the calling activity gets killed before the thread is done? Feb 15 07:05:21 That is possible, yes Feb 15 07:05:54 cause i use the Context in the asynctask, this could become invalid? Feb 15 07:06:07 Correct Feb 15 07:06:11 hmf Feb 15 07:06:45 you could try using an asyncTaskLoader Feb 15 07:06:57 they use callbacks that you can set in the activity Feb 15 07:07:12 so if the activity is null, the callback just doesn't get called Feb 15 07:07:39 I think jasta also made a version of asyncTask that uses callbacks and softreferences to help prevent that situtation Feb 15 07:08:02 there is also BetterAsyncTask made by... someone, don't remember who, but it is slightly confusing to use Feb 15 07:08:45 but it also uses softreferences to allow an activity to re-establish it's link with an asynctask Feb 15 07:09:14 hm Feb 15 07:09:36 i reckon i could call cancel() in onDestroy maybe Feb 15 07:09:47 that would take care of my problem i think Feb 15 07:10:19 just besure your task supports cancelling Feb 15 07:10:32 by checking isCancelled() while loading to see if you should stop Feb 15 07:12:35 is it possible to start Intent (Navigation app) from web? Making a webapp Feb 15 07:13:32 is there a way to provide an apk file to a user via web that will install but they cannot actually save? Feb 15 07:13:43 some way to stream the contents and install, mimicking the market Feb 15 07:15:01 whats the purpose of it anyway , but no actually its not possible Feb 15 07:15:42 Well, I am releasing a beta version of my app via the website and its via invitation i.e. they like us on FB and provide an email, they get an email from our mailing list with a link to download/install the app. Feb 15 07:15:52 QubeZ you probably can Feb 15 07:15:54 Mainly, I wanted to find the best way to secure the app so people cannot distribute it Feb 15 07:16:04 I built my own app distribution framework Feb 15 07:16:13 I download first because its just a safer bet in general Feb 15 07:16:35 This is just for a beta release so I'm not *that* worried about it, but it would be nice to make as many people follow the path to download i.e. like us on FB, provide email, download the app Feb 15 07:17:07 Basically you cannot secure it, as soon as you have a user who knows how to do stuff, they can extract the apk Feb 15 07:18:15 ok, then the 2nd way I want to try is use some type of randomly generated one-time use link so they cannot share that link with others Feb 15 07:18:30 i dont want one user registering then sending the file to 10 ppl for example Feb 15 07:19:00 well ok, but they could get the file with the one-time link and post it in a forum uploaded to another hoster Feb 15 07:19:11 QubeZ unless you have some sort of license validation in your app, can't really prevent that Feb 15 07:19:43 ktwo: ya Feb 15 07:19:49 t0mless: ok, i wont lose any more sleep on this Feb 15 07:19:50 especially if you're just sending them the .apk file Feb 15 07:20:01 yea, thats probably the only solution , register + server-side activation or something similar that wouldmake it much harder Feb 15 07:20:08 but also may annoy "real" beta testers Feb 15 07:20:17 but even if you put it up onto the market, any rooted user could get the apk after it installs Feb 15 07:20:43 ktwo: yea, i was thining to have some type of activation code but at the same time, I want to make it easier for the users that are actually following the rules (process to register then download) Feb 15 07:20:57 so I think I'll just ditch the security model for this beta period Feb 15 07:21:23 I mean the app will be free anyhow, monetizing later via web service but I just wanted to keep the user base small for beta to control the testing process Feb 15 07:21:48 www.todomapr.com Feb 15 07:22:21 Full site should be ready in a few days, I'm excited :) Feb 15 07:57:38 hi Feb 15 07:57:56 i love relative layouts Feb 15 07:57:59 they are so... relative Feb 15 07:58:24 #coolStoryBro Feb 15 08:21:33 hello, I have a broadcast receiver that launches at boot. is there any way to run it without having to reboot everytime? Feb 15 08:22:10 add an intent to it's intent filter that you call from somewhere Feb 15 08:22:46 hmm Feb 15 08:37:30 http://phandroid.com/2012/02/15/acer-announces-android-4-0-release-timing-for-iconia-tab-a500/ Feb 15 08:37:32 sweeeeet Feb 15 08:39:54 well acer never makes anything worthwhile so why bother Feb 15 08:40:56 both my acer monitors, my gf's acer laptop, and my acer a500 all work wonderfully Feb 15 08:40:59 so I would disagree Feb 15 08:42:27 cheap pieces of crap :p Feb 15 08:43:09 but then.. so are all consumer products Feb 15 08:43:13 You can have your opinion, even if it's wrong Feb 15 08:43:40 consumera just don't seem to care about quality anymore Feb 15 08:43:50 consumers* Feb 15 08:44:15 of course not, why would they ? They expect that stuff breaks after 2 - 3 years so you consume more by buying new stuff Feb 15 08:44:50 they shouldn't expwct that thouh Feb 15 08:45:38 i'm going to bed before I get in a pissing match of how I support Acer and their products Feb 15 08:45:53 there's no reason a laptop shouldn't stay in prime condition at least 5 years and then only wear would be on the storage Feb 15 08:46:17 and keyboard/touchpad Feb 15 08:46:42 but they are still easily replaceable Feb 15 08:46:47 true Feb 15 08:46:59 well, usually is. Feb 15 08:47:30 printers are really the worst offenders Feb 15 08:48:04 it's cheaper to get a new one than refill the ink... wtf is that all about Feb 15 08:48:05 I have a b/w HP Laserjet 6MP. never fails. :D Feb 15 08:48:14 old parallell port one Feb 15 08:48:25 sweet Feb 15 08:48:37 I don't have a printer Feb 15 08:48:41 got it free from my moms job, plus 4 toners Feb 15 08:50:14 aaaanyhoo.. back to coding. :) Feb 15 08:50:23 I hope the consumer industries collapse soon Feb 15 08:50:33 noooo Feb 15 08:50:35 :) Feb 15 08:52:04 coding... I was supposed to be at work two hours ago but instead I've been on the bus for two hours traveling all around the city... :E Feb 15 08:52:12 I am at work. :D Feb 15 08:53:35 me too :p Feb 15 08:55:52 I'm supposed to make an android app for work, that's how I ended up here Feb 15 08:56:08 then a PHP project popped up and I never got around to it.. :P Feb 15 08:56:27 I kinda wish there was an android project at work for once Feb 15 08:56:34 <_Lewellyn> is there a good tutorial aimed at non-technical people for how to get logcat output to a developer requesting it? :/ Feb 15 08:56:45 I don't. I don't know the first thing about java development. :P Feb 15 08:56:50 wouldn't have to deal with the current piece of crap client Feb 15 08:56:51 <_Lewellyn> even better, a windows logcat gui :) Feb 15 08:58:02 Zharf: what kind of client? Feb 15 08:59:00 one with no money but something to make my superiors make his bidding Feb 15 08:59:13 oh I thought you meant like a client program Feb 15 08:59:18 :) Feb 15 08:59:53 well.. my "client" IS my superior. ;) Feb 15 09:08:18 hello Feb 15 09:08:48 guess who bought an s2 from sprint 'epic 4g'.. wanting nfc Feb 15 09:08:56 and sourly dissapointed Feb 15 09:09:22 is there a chance the s2 has the chip that isnt enabled? Feb 15 09:14:20 peceiver, are there actually real-world scenarios where youd need NFC? Feb 15 09:14:53 are we talking about nfc Feb 15 09:14:59 near field communications? Feb 15 09:15:33 and yes, im a developer with multiple projects with NFC. Feb 15 09:16:01 ... had to do some running to catch the bus and my droid decided to take a snowdive Feb 15 09:16:12 seems to work... Feb 15 09:16:52 does anyone know how to change the text color of a button when it is touched? Feb 15 09:17:03 ktwo: some stores around here is starting with NFC payment apparently Feb 15 09:17:21 all of them will. Feb 15 09:17:24 its the future Feb 15 09:17:48 carrying a credit card will be like carrying around coins Feb 15 09:17:49 i personally wont use it until i can still pay with cash or CC Feb 15 09:17:51 NFC payment?? Feb 15 09:18:10 not Near Future Currently ;) Feb 15 09:18:12 I prefer the card.. it has no battery that can run out. :P Feb 15 09:18:22 I really wonder if NFC payment is any more sophisticated right now than just transmitting your CC number+validity Feb 15 09:18:48 and i really wonder why sprint took the nfc out of the s2 Feb 15 09:18:49 future - yes but if we are serious, you wont need it, thats why probably sprint decided to not support it, and yes the hardware is in fact not there Feb 15 09:18:54 *as far as i know Feb 15 09:18:57 and how Feb 15 09:19:12 shit, did they just disable it? should I keep this device and root it? Feb 15 09:19:52 Samsung apparently removed the NFC Feb 15 09:20:08 or postponed it Feb 15 09:20:13 link Feb 15 09:20:15 peceiver: I think its not there in the hardware, except for korean sgs2. or so Feb 15 09:20:31 eh no, my SGS2 has it Feb 15 09:20:38 European Feb 15 09:21:03 maybe a couple slipped thru before they stopped it Feb 15 09:21:07 ktwo ty Feb 15 09:21:24 got a pick of your cell back Feb 15 09:22:02 "a pick of your cell"? Feb 15 09:22:24 pic Feb 15 09:22:40 im comparing the sprint us and european s2 Feb 15 09:23:00 if the hardware is there then its worth keeping and enabling myself. Feb 15 09:23:23 else im returning this paper weight Feb 15 09:23:44 haha Feb 15 09:23:50 send it to me! Feb 15 09:23:55 I don't care about nfc Feb 15 09:24:15 sure Feb 15 09:24:15 ss is too wide to be used as a phone Feb 15 09:24:19 you wont see just by looking at the back of the phone, i cant make a pic of it now XD hehe its the only cam i have with me now^^ Feb 15 09:24:20 sgs even Feb 15 09:24:25 too squarer Feb 15 09:24:30 but look up on google it is the default S2 Feb 15 09:24:38 that's why I chose sg3 Feb 15 09:24:41 http://www.mobiflip.de/samsung-galaxy-s-ii-in-seinen-einzelteilen/ here someone has disassembled it Feb 15 09:24:45 and the NFC chip is a separate one Feb 15 09:27:20 if only sg3 had hardware keyboard and slightly more powerful hardware, it'd be perfect for me... but since I got this for free it's good enough for now Feb 15 09:27:36 excellent dev phone though I think Feb 15 09:28:09 I hate those hardware keyboards.. and to think I actually wanted that rather than a touchscreen just a year ago.. Feb 15 09:28:11 low specs and small screen makes one do better decisions when developing imo ;) Feb 15 09:29:37 if I have my soft keyboard up on this icb, I have 5 lines left of which three are irssi topic, channel list andtyping line :) Feb 15 09:29:57 that is why I sould rather have hw keyboard Feb 15 09:30:06 icb? Feb 15 09:30:17 irssi connectbot Feb 15 09:30:29 mmmkay Feb 15 09:31:16 hm, I wonder if my phone company also removes specs from the phones Feb 15 09:40:55 is it possible to have an array list that stores 2 values per item? (ie, name and id for each contact) Feb 15 09:41:24 my goal is to display that list using a listview afterwards Feb 15 09:41:32 store them in java objects Feb 15 09:41:32 Akuma: either put Map in there Feb 15 09:41:37 or, the nicer solution Feb 15 09:41:42 Akuma: why not make a small model class and then have an array of those? Feb 15 09:41:49 make a model class Contact containing the id and name Feb 15 09:41:52 NameValuePair maybe? http://docs.oracle.com/javase/1.5.0/docs/api/org/omg/DynamicAny/NameValuePair.html Feb 15 09:41:59 or that Feb 15 09:42:14 I'll look into those Feb 15 09:42:17 thanks a lot Feb 15 09:42:18 hi. can someone here tell me which accelerometer is in the google g1? Feb 15 09:43:00 wasn't it bma150? Feb 15 09:43:49 I don't know. I don't have access to the G1 atm so I can't check. Feb 15 09:44:52 It seems to be in the htc hero Feb 15 09:47:00 ok seems to be the AK8976A Feb 15 09:51:29 I was thinking about creating a popupmenu anchored to an imageview, but since thta is api 11+ I have to rethink - is a floating context menu the way to go perhaps? Feb 15 09:53:25 for 11+ the contextual actionbar would be the way to go Feb 15 09:55:34 I want to avoid going 11+ actually, aim is to keep it at API level 7 Feb 15 09:56:23 weird how such a basic thing can be 11+ hrmph :) Feb 15 09:56:35 I want to find out which method in my C code is taking largest time.. is there any profiler for C (native code) ? Feb 15 09:56:54 http://www.cs.utah.edu/dept/old/texinfo/as/gprof_toc.html Feb 15 09:57:10 or any of the other links Feb 15 09:57:36 MDijkstra: does it work for Android application also? Feb 15 09:57:54 sure Feb 15 09:57:59 Oh.. cool Feb 15 09:58:00 might take some time setting up Feb 15 09:58:17 but I don't see why it wouldn't work Feb 15 10:03:45 argh Feb 15 10:03:54 why does git with eclipse have to be so painfull Feb 15 10:04:01 * iivvoo doesn't get why eclipse refuses to pull Feb 15 10:04:31 most graphical git tools are painful Feb 15 10:04:33 * fpillet doesn't get why people stick with Eclipse when IntelliJ IDEA is free and so much better Feb 15 10:04:42 how is it better? Feb 15 10:05:05 its new and improved, less filling. Feb 15 10:05:16 Much faster, less cluttered, easier to manipulate Feb 15 10:05:27 Eclipse is a bloated IDE and slow as mollasses Feb 15 10:05:34 except for the 'faster' bit those are all fairly subjective Feb 15 10:05:50 and you lose the nice ADT stuff such as the layout editor Feb 15 10:06:09 ah yes right … although I don't need it much, so I'm biased on this front Feb 15 10:06:45 On all other fronts I find IntelliJ outstanding. Their smart completion mechanism seems to know about everything android (including when editing manifest, etc) Feb 15 10:07:14 And on OS X at least, it's much faster than Eclipse. I don't know about other platforms Feb 15 10:07:36 eclipse is pretty sluggish on my laptop, but meh Feb 15 10:07:45 that's a mac though Feb 15 10:08:06 I imagine it'd be fast enough on a faster laptop Feb 15 10:08:24 if it were up to me I'd use vim + command line Feb 15 10:08:31 I work on a loaded MacPro, and Eclipse is slow there Feb 15 10:08:37 but eclipse is just easier for someone who's not too fluent with java/android Feb 15 10:08:48 everything is slow on macs Feb 15 10:08:52 wrong Feb 15 10:08:57 iivvoo: to be honest I'd probably hate vim for android development Feb 15 10:08:59 Eclipse is slow Feb 15 10:09:08 iphoto is slow, firefox is slow Feb 15 10:09:10 eclipse on my macbook pro with 8G ram and ssd drive is fairly fast... Feb 15 10:09:15 but then I "only" have 4gb ram Feb 15 10:09:16 Chrome flies Feb 15 10:09:27 But then I have 14Gb RAM :-) Feb 15 10:09:30 "fairly" with 8gb and ssd :) Feb 15 10:09:37 14GB ? Feb 15 10:09:39 yes Feb 15 10:09:44 not 16?, how goes that? Feb 15 10:09:45 iivvoo: you lose the on-the-fly java checking, you lose the intelligent tab completion, you lose the export wizards, etc etc Feb 15 10:09:53 iivvoo: I'd probably be half as productive Feb 15 10:09:56 stuff is snappy on my ubuntu c2d 4gb laptop Feb 15 10:10:05 MDijkstra, exactly Feb 15 10:10:11 MDijkstra, it works for me when developing python Feb 15 10:10:15 not when developing java Feb 15 10:10:21 My MacPro came with 2GB (I don't buy my ram from Apple, too expensive) then I added 4GB, then 8 Feb 15 10:10:34 ahh the symmetry :( Feb 15 10:10:34 * iivvoo is now using viPlugin which is actually pretty good Feb 15 10:10:41 *symmetrie Feb 15 10:10:43 iivvoo: that's because python relies less on those things (ie, you can't really do a lot of static checking, names are easier to remember) Feb 15 10:10:43 and then 32 and thhen... Feb 15 10:10:45 (It's a 2008 machine, at the time 2GB was the base standard) Feb 15 10:11:16 iivvoo: but I think using anything other than a full-blown IDE for writing java is madness Feb 15 10:11:26 just my opinion, though Feb 15 10:11:30 MDijkstra, exactly and eclipse helps me out a lot with all the checks in cases where I'd otherwise be uploading faulty code to the vm Feb 15 10:11:51 * iivvoo used to be a java programmer by profession in 1999 Feb 15 10:11:53 Well 14GB is fine for my use - I routinely have IntelliJ (for Android), AppCode and Xcode (for iOS dev) opened + a couple Parallels VM (one Windows, one Linux) Feb 15 10:12:04 back then jdk 1.1 was state of the art, and easy to fully memorize Feb 15 10:12:07 and a bunch of other apps. That's why I need that much ram Feb 15 10:12:31 didn't need no stinking IDE back then Feb 15 10:13:16 my main gripe with eclipse is the fact that its community process is so geared towards big companies Feb 15 10:13:28 iivvoo: I used to use VIM a lot back in the days I was working mainly on Linux. Was fun, but for the kind of complex stuff we have to do today, I'm more productive with an IDE Feb 15 10:13:29 it's near impossible to get patches accepted as a single contributor Feb 15 10:13:38 with all the disclaimers you have to sign etc Feb 15 10:15:09 and frankly, IntelliJ is so good for Java dev (and they are in the process of making an IDE that's as good for iOS dev, with their new AppCode) that it'd be stupid to work with a simple text editor, even if it has a lot of extensions Feb 15 10:15:50 well it's not that difficult to make a product better than xcode4 Feb 15 10:16:00 heh Feb 15 10:16:24 itunes connect is having issues again as well Feb 15 10:16:26 gah Feb 15 10:16:27 Xcode 4 has nice features. It doesn't crash on me that much (I hear a lot of people complaining) Feb 15 10:16:35 MDijkstra: you need to change your thinking. xcode4 is just in beta and we developers are just beta testers... Feb 15 10:16:53 fpillet: it does, if those features worked right I'd be very happy with it Feb 15 10:16:53 But I find AppCode 1.5 EAP very compelling. These days I do most of my work on the iOS version of our product in AppCode Feb 15 10:17:03 the GUI certainly is a big improvement Feb 15 10:17:19 compared to xcode 3's multi-monitor layout Feb 15 10:18:18 MDijkstra: some of the features in Xcode are very good. In particular, static analysis with the in-code display Feb 15 10:18:25 yep Feb 15 10:18:33 I remember how I tried to write C# on mono with just vim as my editor Feb 15 10:18:52 AppCode is still a bit slow to update variables when step-tracing in the debugger Feb 15 10:18:54 fpillet: I also really like instruments Feb 15 10:19:00 suffice to say, it took like hours to write 10 lines of code because manually having to look up everything from incomplete mono docs was most shitty programming experience of my lifetime Feb 15 10:19:10 Instruments is the greatest tool since since the toaster was invented :-) Feb 15 10:19:31 fpillet: but my problem is generally that these features are almost all buggy, untested and incomplete Feb 15 10:19:50 MDijkstra: I find Instruments to work pretty well Feb 15 10:20:37 fpillet: interface builder beachballs when moving interface elements, the git integration hardly works, library projects break, static code analysis doesn't process your dependencies correctly, categories aren't included correctly from libs, classes aren't included from libs if they're not referenced from code Feb 15 10:20:42 and that's just from the top of my head Feb 15 10:20:57 I agree, there's a lot of issues Feb 15 10:21:10 then there's the disaster that is code signing Feb 15 10:21:18 ohhh yeah, code signing hell Feb 15 10:21:35 This has improved a lot lately with Xcode being able to pull provisioning profiles directly Feb 15 10:21:47 yeah, although I can't use that Feb 15 10:21:55 Now there are some features in Xcode I'm waiting for AppCode to implement. I use Schemes extensively Feb 15 10:22:01 since I work for two companies, each with its own iOS account Feb 15 10:22:15 xcode can pull one, and then it will erase the other's profiles Feb 15 10:22:31 (we have 14 OEM builds + 3 different builds for ourselves, and schemes help a lot -- on Android I had to go with handcrafted Ant build files) Feb 15 10:22:43 schemes are cool and I find the new archive stuff pretty useful Feb 15 10:22:52 but I still have to get a usable ad hoc build out of it Feb 15 10:23:03 AdHoc works fine for us Feb 15 10:23:15 We use it (with TestFlight) for beta testing Feb 15 10:23:24 testflight ftw Feb 15 10:25:02 what happens if you're using slf4j when you obtain a Logger in your code doing like LoggerFactory.getLogger(MyClass.class) but your code is obfuscated? presumably the class/package names are liable to change which could make your logging configuration kinda useless? Feb 15 10:25:41 ahh logging Feb 15 10:25:54 and behold, xcode has thrown away my provisioning profiles again ;p Feb 15 10:25:57 First thing I did when porting to Android was port my iOS/OS X logger Feb 15 10:26:17 MDijkstra: I call this "code signing hell day". Nightmares Feb 15 10:26:27 sounds sensible, the one thing java needs is more logging frameworks Feb 15 10:26:59 storkme: we have a complex app, I developed NSLogger because I needed something more powerful. It's invaluable, and I use it quite a lot on Android Feb 15 10:27:22 There are a zillion loggers, what makes the difference is the viewer I developed Feb 15 10:27:37 storkme: https://github.com/fpillet/NSLogger Feb 15 10:28:00 Our product routinely outputs thousands log entries, just at startup Feb 15 10:28:27 Digging through this volume of logs with most loggers is too time consuming Feb 15 10:28:44 speed is also likely to be an issue Feb 15 10:28:47 yup Feb 15 10:29:07 that's where NSLogger comes handy. I haven't yet matched the iOS logger speed on Android, but it's not really optimized yet Feb 15 10:29:15 what's wrong with writing an adapter for say, slf4j? Feb 15 10:29:16 (i think they call it an endpoint, actually) Feb 15 10:30:59 fpillet: how long did it take you to write nslogger? Feb 15 10:31:03 storkme: I have quite specific needs. Need to be able to log images and binary data Feb 15 10:31:32 and in version 2.0 I'll be adding value probes that can provide a synthetic display (i.e. memory consumption indicators) and graphs, if I have the time Feb 15 10:31:42 fair enough Feb 15 10:31:48 I need all this, and live to see my app running Feb 15 10:32:10 neekers: which part ? iOS client, android client, OS X desktop viewer? Feb 15 10:32:19 heh Feb 15 10:32:28 i guess the downside of a generic solution is you're usually going to sacrifice some speed Feb 15 10:32:30 the whole thing Feb 15 10:32:37 I'm not sure exactly. When I developed it, I think I just took a couple months off to work on it Feb 15 10:33:10 ahh, cool. i want to do the same thing for a project i have in mind but i have to much work now to do so Feb 15 10:33:21 if i have a bottom bar with varying buttons is it "better" codepractice to build one xml with all buttons and hide some depending on activity or just use a different xml every time? Feb 15 10:33:41 The viewer is the killer feature actually Feb 15 10:33:53 it does look pretty nice Feb 15 10:34:11 I've seen people write adapters for other logging frameworks on iOS, I heard of someone who wrote a ruby bridge Feb 15 10:35:02 Originally, this was designed to be a tool to monitor the internal states of our product. I ended up making it generic and open source Feb 15 10:35:30 what product? Feb 15 10:36:08 It's a home automation control product Feb 15 10:37:04 who was it here that was working on something similar, it wasn't you. SimonVT maybe? Feb 15 10:37:04 (of sorts, "home automation" is a gross simplificaton of what it does) Feb 15 10:37:18 Huh? Feb 15 10:37:26 i guess not... :) Feb 15 10:37:38 it was somebody here Feb 15 10:37:39 I think I wanted to do my own logging Feb 15 10:37:42 Never got around to it Feb 15 10:38:07 The one feature of my logger that doesn't work well yet on Android is automatically finding the desktop viewer via Bonjour Feb 15 10:38:24 JmDNS is a half-assed implementation of Bonjour. Fails every other run Feb 15 10:38:34 Haven't found the time to fix it yet Feb 15 10:39:59 But for some things, NSLogger has been tremendous. Since it connects live to the viewer, I could use it to debug and issue with a customer running the product on a boat, over a 3G connection, the product was connecting to my viewer here and I could see the internals of the app while the guy was using it on the boat. Quite fun :-) Feb 15 10:40:29 holde: you could put the shared buttons into a separate xml Feb 15 10:40:35 holde: and include them when needed Feb 15 10:40:57 holde: that or follow the android design guide and use the actionbar Feb 15 10:41:55 i have an AssetManager from Context.getAssets(). I then call .open() on it to get an InputStream. Can i close() the assetmanager now? Or do i need to wait until i've read the file Feb 15 10:42:10 i'm pre 3.0 and had problems with ABcompat Feb 15 10:42:56 but i probably will take the include approach Feb 15 10:43:15 layout_width can't be defined in an style? Feb 15 10:44:32 It can Feb 15 10:44:59 eclipse gives me an unhelpful error Feb 15 10:45:07 heh Feb 15 10:46:28 You know a lot about styles, neekers ? Feb 15 10:46:44 probably not more than you Feb 15 10:46:52 :| Feb 15 10:46:56 Just too lazy to test it Feb 15 10:47:12 If I have SomeStyle.SomeChild with parent="SomeOtherStyle" .. Does it still inherit from SomeStyle? Feb 15 10:47:27 SimonVT: have you seen g00s in the past couple of days? Feb 15 10:47:42 Hm, don't believe so Feb 15 10:47:48 Maybe the design guidelines finally broke him Feb 15 10:48:34 hmm, multiple inheritance of styles? Feb 15 10:48:44 Yeah, I'm thinking the answer is no Feb 15 10:48:51 yeah... Feb 15 10:49:07 It'd lead to all kinds of crazy stuff Feb 15 10:49:09 i would have to run a little test also Feb 15 10:49:17 yeah, it would Feb 15 10:49:30 Like parent with multiple inheritance with multiple inheritance with multiple inheritance with multiple inheritance Feb 15 10:49:40 Stupid question : will there be some Android 2.x new release done? Feb 15 10:49:59 nope Feb 15 10:50:18 google's version number scheme really doesn't lend itself to that, either Feb 15 10:50:39 At most there'd be bugfixes to gingerbread Feb 15 10:50:42 at most Feb 15 10:50:54 that's mean there is no interest in backporting features to 2.x Feb 15 10:51:23 yannj_fr: why would you want to? Feb 15 10:51:42 neekers : HLS support in player Feb 15 10:52:01 HLS? Feb 15 10:52:23 neekers : e.g HTTP Live Streaming is available from 3.1 , but only v.2 Feb 15 10:52:29 oh Feb 15 10:52:38 ahh Feb 15 10:52:39 even given that they'd push an update Feb 15 10:52:47 most people wouldn't receive it anyway Feb 15 10:53:07 so it seems unlikely that you'd be able to depend on this as a feature on 2.x devices Feb 15 10:53:18 until 4.x sees wide adoption Feb 15 10:53:21 * neekers has been tasked by a client to write a sencha touch app... Feb 15 10:53:22 MDijkstra: I can understand, I think backport is easy to do, but if no interest... Feb 15 10:53:49 yannj_fr: even if they do that, you still have 40 manufacturers pushing such an update Feb 15 10:54:02 anybody here use sencha touch and have anything to say about it? Feb 15 10:54:03 yannj_fr: before such a new API is of actual use Feb 15 10:54:53 yannj_fr: most device makers will rather focus on getting ICS running Feb 15 10:54:57 since that is new and sexy Feb 15 10:55:01 Tss, neekers. We make apps, not webpages :p Feb 15 10:55:08 MDijkstra : yes, manufacters are slow... I wonder if it could be possible to upgrade the player by the mean of apk Feb 15 10:55:17 yannj_fr: yeah, you probably could Feb 15 10:55:20 fairly easily Feb 15 10:55:53 whether the new player's dependencies will work on 2.x is another question, though Feb 15 10:56:10 you mean NuPlayer? Feb 15 10:56:10 * iivvoo is trying to manipulate a taken picture with a 2500x1500something resolution Feb 15 10:56:16 SimonVT: trust me when i say i feel the same as you. with all my heart. but the fact of the matter is a lot of serious companies are wanting mobile web app in addition to native and in a lot of cases, it really does make sense. Feb 15 10:56:21 no, the built-in android player Feb 15 10:56:25 requires some tweaking not to get immedialte out-of-memory errors Feb 15 10:56:30 I have no idea what nuplayer is Feb 15 10:56:49 but I wonder if you should be able to assume that a picture taken on your phone in whatever supported resolution can always be handled Feb 15 10:56:56 The android music player isn't updated through market.. and it's most likely signed with the manufacturers own key Feb 15 10:57:03 of if I should just play save and restrict to X Mpixels Feb 15 10:57:05 So you'd still have to get manufacturers to supply an update Feb 15 10:57:14 NuPlayer is a new implementation in android player when >= 4, looks like an extension to stagefright Feb 15 10:57:21 ah Feb 15 10:57:21 s/save/safe Feb 15 10:57:49 neekers: yeah ;| it just makes me sad Feb 15 10:58:02 MDijkstra: if you look at the player code, it just look to be ... dirty Feb 15 10:58:39 SimonVT: what's a company supposed to do if they need to build lots of crappy little apps for ios, android, blackberry and wm7? Feb 15 10:59:38 I'd much rather have they just did a webpage and kept is as such Feb 15 11:00:34 but they may also want a presense in the app stores Feb 15 11:01:04 I know ;/ Feb 15 11:02:24 well, i'm trying to keep an open mind right now, but if this client starts to see me as the cross-platform app go to guy then we will be parting ways... (i think) Feb 15 11:02:52 <- pro at inkscape.. Made vector images of the non-holo ic_menu from the framework I use.. Finally I can follow ICS styling :p Feb 15 11:03:00 i just don't want to lose my ios/android native skills that i have spent years acquiring Feb 15 11:03:32 neekers: everyone will be using BB10, WP8 and WebOS by the end of next year anyway - iOS and Android are just fads Feb 15 11:03:43 heh Feb 15 11:04:12 Leeds: this is truly a fast changing environment Feb 15 11:04:19 hi, I'm trying to send jpeg compressed camera preview images over the network, and I'm getting distorted images (the colors are bad and the image is scrambled)... it looks like the width and height are wrong when compressing Feb 15 11:04:23 The truth is, you never know :p Feb 15 11:05:09 any ideas for how to fix this? Feb 15 11:09:11 landa_: in your app, are you hardcoding the image width and height anywhere? Feb 15 11:10:42 neekers: I'm setting the preview width and height to be the values returned from a surface getOptimalPreviewSize Feb 15 11:14:39 I have two AutoCompleteTextView and do it http://pastebin.com/QyCpCd5y Feb 15 11:14:39 Why do I have a drop down menu is presented only in the second AutoCompleteTextView? Feb 15 11:22:45 I'm trying to send an email through an app i'm writing, but the only way i seem to be able to do it is call the GMail app and have the user click send. Is there a way to do this or do i have to write my own SMTP client to fire off the email ? Feb 15 11:27:44 http://www.w3.org/TR/emma/#s1 Feb 15 11:33:13 what's the deal with front-facing camera's and android 2.2? Feb 15 11:34:17 "what's the deal" ? ^^ Feb 15 11:34:30 can i nest includes? Feb 15 11:34:48 I somewhat understand front-facing (or multiple, in general) camera's are not supported on 2.2 Feb 15 11:34:49 i get a runrimeexception "layout_width" missing. :/ Feb 15 11:35:04 at least not with additional device-specific support Feb 15 11:35:36 yea it has to be device-specific Feb 15 11:38:07 THe thing I hate about eclipse, is how it stores too many settings in the workspace Feb 15 11:38:21 forces me to reset things all the time Feb 15 11:38:37 I'd like to move one of the layout-views I've got further back.. as in, I want another element to be above it (liek with z-index in HTML/CSS) Feb 15 11:40:03 BankZ: dont use eclipse then Feb 15 11:40:04 :D Feb 15 11:40:21 Hi, I often see code snippets where people have a member for the LayoutInflater, why would you want to do that (storing it in a member) and using that instead of just calling View.inflate() directly? Feb 15 11:40:36 relativelayout/framelayout basically has a z-index.. The later a view is added, the higher on the z-axis Feb 15 11:41:32 SimonVT: yes, but say I want to make changes to the z-index of a view, in an already loaded relativelayout with its childs and whatnot? Feb 15 11:42:02 I'm into developing an application which facilitates offline browsing. People download websites and browse them later. Where should I start from? Can someone spare a few moments to discuss the feasibility? Feb 15 11:42:51 XeruX: bringChildToFront is the only thing that comes to mind Feb 15 11:43:46 certainly feasible napster Feb 15 11:44:25 Knossos: ok, if I save the response HTML to a file, can I use, say a webview to view it later? Feb 15 11:44:40 Yep, but all the images etc will be broken Feb 15 11:45:09 Knossos: What if I traverse through the response document for src attributes and down load them too? Feb 15 11:45:18 will that work? Feb 15 11:45:23 I would hash the name of every linked file (images, etc), and cache them, change the src="" in the HTML to link to the hashed files. Feb 15 11:45:50 hmm, 'hash' means Feb 15 11:46:13 http://en.wikipedia.org/wiki/Hash_function Feb 15 11:46:21 sure Feb 15 11:46:26 A quick hash function is fine, such as md5. Feb 15 11:46:36 hmm Feb 15 11:47:00 Example of Java MD5 hashing: http://www.spiration.co.uk/post/1199/Java-md5-example-with-MessageDigest Feb 15 11:47:06 how to chache them? Store it locally to SD or some... Feb 15 11:47:24 Yeah, locally to sd. Create a folder for your app, then sub folders for websites. Feb 15 11:47:33 hmm Feb 15 11:47:57 Thanks a lot Knossos :) Feb 15 11:47:59 I wouldn't cache it internally because it may end up taking up a lot of space Feb 15 11:48:07 (lots of images, etc) Feb 15 11:48:11 No problem :) Feb 15 11:48:12 hmm, yes Feb 15 11:48:21 what can do on the other hand Feb 15 11:48:23 ? Feb 15 11:48:26 http://pastebin.com/7yhbFg7R can someone see, why android wants me to have layout_width somewhere in the XML? Feb 15 11:48:27 Use the SD card Feb 15 11:48:48 There is SD (external) storage, and Internal storage Feb 15 11:48:48 Knossos: ok Feb 15 11:49:03 hello, I'm having some issues with displaying some unicode info on a textview: the text appears as \u00fa1 Feb 15 11:49:04 Is there some class which will reliably send some http request? Like, i'm in the tunnel, or in airplane mode, and when I get online again, it will send it? Feb 15 11:49:13 Knossos: ok, I just got confused about outside the device :) Feb 15 11:50:44 Knossos: Also, can I create intents to browsers with these files? Feb 15 11:50:50 Yep Feb 15 11:50:54 hmm Feb 15 11:51:11 file:///mnt/sdcard/app/website/index.html Feb 15 11:51:20 hmm, ok Feb 15 11:51:58 That isn't the proper way to do it, though. You need to replace the /mnt/sdcard/ with the Android function to return the path to external storage Feb 15 11:52:08 Can't remember it off hand Feb 15 11:52:44 Knossos: http://stackoverflow.com/questions/3004515/android-sending-an-intent-to-browser-to-open-specific-url Feb 15 11:52:54 these guys discuss about live urls Feb 15 11:52:54 yup Feb 15 11:54:27 intent.setDataAndType(Uri.parse("file:///mnt/sdcard/Music"), "*/*"); Feb 15 11:54:31 Knossos: ^^ Feb 15 11:54:42 they use the same way you have suggested Feb 15 11:55:38 Knossos: OK got the exact thread : http://stackoverflow.com/questions/7009452/how-to-launch-browser-to-open-local-file Feb 15 11:56:31 why not put it in your local storage Feb 15 11:56:36 and set WORLD_READABLE? Feb 15 11:57:34 MDijkstra: We were just discussing about implementing a offline web-browser Feb 15 11:58:25 ah Feb 15 12:11:02 I have an AutocompleteTextView.. if someones typing its currently the way that the autocompletion process is fired with every character above the threshold. Feb 15 12:11:02 What I want is to wait a certain amount of time or alternatively "till the user stops typing" Feb 15 12:12:48 any thoughts on that ? Feb 15 12:15:30 DashCC: You can use android:searchSuggestThreshold to limit the number of characters typed before the results process. Feb 15 12:15:59 yes, I know that.. but thats not really enough. I make calls to an API for Suggestions Feb 15 12:16:13 and I dont want to fire them frequently Feb 15 12:44:57 sry for repost, but can someone see why this wouldnt work? http://pastebin.com/7yhbFg7R Feb 15 12:45:11 works perfectly fine when i don't use includes, but put everything in the main.xml Feb 15 12:45:42 is not properly used? Feb 15 12:46:09 logcat tells me that there is layout_width missing Feb 15 12:46:11 somewhere... Feb 15 12:46:46 Binary XML file line #2: You must supply a layout_width attribute. Feb 15 12:50:33 Anyone have a link to a good tutorial on how to design for different screen sizes? Feb 15 12:51:45 The android developer site has very good coverage on that Feb 15 12:51:48 JustSighDudes, haven't you seen this http://developer.android.com/guide/practices/screens_support.html? Feb 15 12:54:15 Hi. How do I suppress ANR while the thread is suspended due to a breakpoint? Feb 15 12:55:48 Breakpoints shouldn't trigger ANRs Feb 15 12:56:15 They do for me for some reason. Feb 15 12:56:33 I'm using jdb, tried jswat same thing. Feb 15 12:58:58 Dunno, I just use whatever is in eclipse/intellij Feb 15 13:02:23 hello, I am wondering what View is used to show this popup with the radiobuttons here -> http://dl.dropbox.com/u/3439087/balloon01.png Feb 15 13:02:44 I think its the same as they used in google docs -> http://dl.dropbox.com/u/3439087/popup.png Feb 15 13:03:01 but which ListView/Dialog/View can i use for this? Feb 15 13:05:35 Krob: http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/ Feb 15 13:06:52 adneal|away: thank you!!! I have been looking for this too :-) Feb 15 13:07:04 thanks adneal|away ! Feb 15 13:07:20 Hard to find a good description of it - popupmenu is too high API level... Feb 15 13:55:08 pfk Feb 15 13:57:59 : Feb 15 14:00:13 im new to actionbarsherlock, I wrote a few lines : http://pastebin.com/DJGjvwxg the action bar is showing fine on 3.0+ but not on my 2.3 phone Feb 15 14:02:17 Using Theme.Sherlock? Extending the right activity? Feb 15 14:02:27 what wehat Feb 15 14:03:03 ARM programming is not 10 times easier than windows ? Feb 15 14:03:17 Sicp: yep, extending the right activity but not the theme :) will look at that thanks Feb 15 14:03:18 windows=32/64 bit Feb 15 14:03:24 wow, completion fail Feb 15 14:03:30 sorry :( Feb 15 14:03:58 WHO DARE SAY MY NAME! Feb 15 14:04:01 Sicp just joined Feb 15 14:04:04 yea ok lol Feb 15 14:04:06 it happens Feb 15 14:04:44 Estragon Feb 15 14:15:33 :q Feb 15 14:22:34 im just trying to write a String to a file.. Feb 15 14:22:53 y u so unintuitive Feb 15 14:36:11 xorgate: PrintWriter pw = new PrintWriter(new FileOutputStream(f)); pw.println(str); pw.close; Feb 15 14:45:29 Greeting all. Can someone point me to a good tutorial on fragments and building tablet applications? Feb 15 14:47:32 I have an image drawable selector that I'm using for an ImageView that I use as a button (could have used an ImageButton with it as well, doesn't matter) Feb 15 14:47:40 but now I want to rotate the image depending on the device orientation Feb 15 14:47:51 I can rotate individual resources but not multi-states one like this Feb 15 14:47:53 http://developer.android.com/guide/topics/fundamentals/fragments.html Feb 15 14:48:09 anyone have an idea how to do this? Feb 15 14:48:30 setImageState might be what I need, but it lacks all documentation Feb 15 14:49:48 so large apps have the WiFi icon displayed intheir description, and it warns you when you download them if youre not on wifi - anyone know what the cutoff size is for this? Feb 15 14:49:50 is it 25MB? Feb 15 14:51:52 hi guys, wich is more hardware accelerated ? canvas or opengl? Feb 15 14:52:08 probably opengl Feb 15 14:53:24 xorgate: so for ephicient graphics need to use opengl, do you know any good opengl library? i dont want to use the low level opengl... Feb 15 14:54:04 does board games usually use canvas then maybe? Feb 15 14:54:32 I have never done game/graphics programming but some day I may try it out.. Feb 15 14:55:24 i dont get it why canvas is not just a lib and method of using opengl... Feb 15 14:55:54 lov cheers works like a charm :0 Feb 15 14:56:23 As of android 3, canvas is HW accelerated if you set it in your manifest. As of android 4, this is always on, is my understanding. Feb 15 14:56:34 Mikellip: you can do board games with canvas Feb 15 14:57:44 bryanl: ok, OpenGL I know of but never heard of "Canvas" before, other than the meaning of the word hehe ;-) Feb 15 14:58:20 Mikellip: for example html5 uses canvas for graphics and animations in websites Feb 15 14:58:33 Mikellip: you could just animate views Feb 15 14:58:47 and that canvas can be hw accelerated, depends on own hw Feb 15 14:59:12 or you could draw directly on a SurfaceView Feb 15 14:59:45 bryanl: yea, and probably not getting more than 10fps Feb 15 14:59:53 because its software Feb 15 15:00:14 norbi: my disclaimer is explicit through the inclusion of *could* Feb 15 15:00:28 bryanl: oh, animate views?? I have only completed one app so far so I am very new - just loading/setting data from/to a web API and a login function/activity... so that's as far as my knowledge go :-) Feb 15 15:00:34 norbi: in other ways ymmv Feb 15 15:00:35 bryanl: i dont understand that Feb 15 15:00:43 in other words Feb 15 15:00:58 norbi: could != should Feb 15 15:02:41 bryanl: yea, you can make that, for a simple animation, like an intro menu or smth Feb 15 15:03:09 Mikellip: so how are you making the login system for it? Feb 15 15:03:42 Mikellip: are you handelling sessions or smth?? Feb 15 15:04:12 Mikellip: canvas on android is a 2d vector drawing system which is used for animation and for the UI as a whole, and is accelerated on android 3 and 4. It's also the name of the 2d vector HTML5 element, which uses a slightly different API which is more or less a direct descendent of display postscript, which is the same API as the cairo lib Feb 15 15:04:32 Mikellip: so you've got lots of opportunities to be confused Feb 15 15:05:19 dragorn: :)) Feb 15 15:06:12 dragorn: haha, ty for the information :-) Feb 15 15:06:16 i think that more simple is to say that canvas is the place where you can make more graphics think, drawing api Feb 15 15:06:24 thing* Feb 15 15:07:03 norbi: I made a login system by first validating the supplied password and then the API responds with a long token that is used in subsequent calls in next activity Feb 15 15:07:12 shapes, lines, colors, images ... moving them, rotating, animating Feb 15 15:07:56 Mikellip: thats nice, but not safe? Feb 15 15:08:29 are you using some kind of secured protocoll for login? Feb 15 15:08:42 ssl? https? dunno Feb 15 15:08:50 norbi: it's done over HTTPS Feb 15 15:09:32 norbi: and there no gain in trying to sniff the key and do actions for someone else, other than just being rude (:-D) Feb 15 15:09:56 im asking because im doing the same thing, and yed dunno how android handles sessions and those things Feb 15 15:10:19 but i dont need much security because im getting just open data, not from the admin Feb 15 15:10:31 Hi all Feb 15 15:10:40 I'm sure there's other ways ...this was the easiest way for me, and it feels safe enough Feb 15 15:11:15 * norbi vawes Feb 15 15:11:43 * norbi waves ;-) Feb 15 15:13:26 what is opengl "ES" ? Feb 15 15:13:34 what is the ES part? Feb 15 15:14:12 mobile version Feb 15 15:14:17 embedded systems Feb 15 15:14:21 ^^^ Feb 15 15:15:03 aaah, man im low Feb 15 15:15:15 ^^ Feb 15 15:15:50 someone put me out of my misery and please tell me what the lower case "m" means in front of variables Feb 15 15:15:58 eg. mProjection Feb 15 15:16:02 member tihihi Feb 15 15:16:05 eg. mSelectionClause Feb 15 15:16:26 member variable? like instance variable Feb 15 15:16:35 yes Feb 15 15:17:35 how much do people adhere to this? i've used java a lot and only started to encounter it in android….? Feb 15 15:17:47 im guessing its some hungarian notation layover? Feb 15 15:18:36 I use it Feb 15 15:18:41 I'd guess most android developers use it Feb 15 15:19:44 hrmm it's definitely a convention for the android source… fair enough http://source.android.com/source/code-style.html#follow-field-naming-conventions Feb 15 15:20:15 i use it. seems like most developers use that convention. Feb 15 15:22:11 * Jug6ernaut kinda does Feb 15 15:23:56 +1 for the conventions Feb 15 15:24:33 heh SimonVT you'd be surprised Feb 15 15:24:47 zynga excluded then :p Feb 15 15:24:47 i know a certain game that was just released that uses _fieldName Feb 15 15:24:58 zynga with friends (android) uses it Feb 15 15:25:09 zynga Feb 15 15:25:10 bla Feb 15 15:25:12 s/it/mFieldName/ Feb 15 15:26:14 how are apps like https://market.android.com/details?id=net.hoopajoo.android.SoftKeys&hl=en Feb 15 15:26:17 drawing shit to the screen? Feb 15 15:27:53 https://market.android.com/details?id=opotech.virtualbuttonbartrial better example Feb 15 15:27:59 Jug6ernaut: DISPLAY SYSTEM-LEVEL ALERTS Feb 15 15:28:20 o Feb 15 15:28:21 interesting Feb 15 15:28:32 [10:25:11] bla Feb 15 15:28:33 :( Feb 15 15:29:02 u work for zynga? Feb 15 15:29:09 u work? Feb 15 15:29:18 xD Feb 15 15:29:23 yes Feb 15 15:29:58 lolol ^_^ Feb 15 15:30:43 u mad? Feb 15 15:30:45 /join #playbook-dev Feb 15 15:30:48 whoops Feb 15 15:30:51 nope Feb 15 15:30:52 not gonna do it Feb 15 15:30:57 don't even pretend like I am Feb 15 15:31:01 that should have worked Feb 15 15:31:14 well it didn't. Feb 15 15:31:32 i blame it on you then lov Feb 15 15:31:46 welp Feb 15 15:32:35 that is embarrassing Feb 15 15:32:43 caught entering a playbook-dev channel :) Feb 15 15:32:53 could be worse Feb 15 15:33:00 lol Feb 15 15:33:05 /join #windowsmobile5-dev Feb 15 15:33:10 /join #maemo-dev Feb 15 15:33:11 oh shi Feb 15 15:33:17 hm Feb 15 15:33:33 I would consider them all equal Feb 15 15:33:33 just for a free playbook Feb 15 15:33:41 join #osx-dev Feb 15 15:33:47 :o Feb 15 15:33:51 >:( Feb 15 15:33:53 I've had it with osx Feb 15 15:34:00 love osx Feb 15 15:34:02 Massive memory issues lately Feb 15 15:34:11 if it takes me an hour to get a free playbook Feb 15 15:34:11 it may not be worth my time Feb 15 15:34:12 rim had a horrible submission process for the original playbook offer Feb 15 15:34:14 mikedg: +1 on your g+ share Feb 15 15:34:15 dunivan not as much as osx loves you Feb 15 15:34:22 thanks simon Feb 15 15:34:27 canadiancow|work, if I had to walk across the room for one it would be too much time Feb 15 15:34:40 it runs flash well Feb 15 15:34:42 lol Feb 15 15:34:44 and it feels good in your hand Feb 15 15:35:02 and you could probably get laid by offering it to a drunk girl at 1am for a quickie Feb 15 15:35:09 lol Feb 15 15:35:16 you could be right about that Feb 15 15:35:52 throw up a screenshot of angry birds and pull up pinterest and tell her its a tiny ipad Feb 15 15:36:08 mikedg: It's not soon before custom roms are going to cause all kinds of hell if they keep adding stuff like this Feb 15 15:36:38 i like these cool features, but stop fucking making it so easy for twats to install the google apps Feb 15 15:37:12 if xda had a policy of , no tutorials for getting google apps and rom manager took google apps away i wouldnt care Feb 15 15:37:13 where's hackborn's comment? Feb 15 15:37:21 ctrl+f hackborn Feb 15 15:37:25 i did... Feb 15 15:37:31 >:( Feb 15 15:37:37 go to the original post plz Feb 15 15:37:39 canadiancow|work: On steve kondiks share of the post Feb 15 15:37:47 or rather steve kondik's share Feb 15 15:37:50 do you know guys anything about andengines license? Feb 15 15:37:52 oh duh Feb 15 15:37:59 yes norbi Feb 15 15:38:01 come to #AndEngine Feb 15 15:38:03 i didnt realize it was kondiks share Feb 15 15:38:04 my bad Feb 15 15:38:37 https://plus.google.com/100275307499530023476/posts/ViCME1bb8F6 Feb 15 15:39:21 ya got it Feb 15 15:39:21 thanks Feb 15 15:39:40 canadiancow|work: im in there Feb 15 15:41:10 "By installing this different ROM, the user should understand that what they are doing to their device is not supported at all and that they cannot expect applications to work as well as they would in an unmodified device." Feb 15 15:41:12 yeeah.. Feb 15 15:41:22 oh ho Feb 15 15:41:28 users reading disclaimers and warnings Feb 15 15:41:29 that's rich Feb 15 15:41:38 1 STAR APP DISAPPEARED WHEN I CHANGED USERS Feb 15 15:41:48 1 STAR APP WON'T DOWNLOAD FROM MARKET DEVS FIX YOUR APP PLZ Feb 15 15:42:34 that's a pretty heavy smackdown from hackborn Feb 15 15:42:45 yeah it is Feb 15 15:43:39 thats pretty cool mikedg Feb 15 15:43:55 eplewis89: compiling? Feb 15 15:44:11 She has a point tho Feb 15 15:44:47 well what about it would break apps? Feb 15 15:44:52 like i havent looked into it at all Feb 15 15:44:53 but im curious Feb 15 15:44:57 she seems to think nothing would work Feb 15 15:45:00 but gave no examples Feb 15 15:45:27 it's not that nothing would work, but that stuff would break randomly and unpredictably - from a user point of view Feb 15 15:45:46 like what? Feb 15 15:45:59 does it not effectively give you multiple NORMAL screens in your XLARGE screen? Feb 15 15:46:04 so youd get the phone layout of an app? Feb 15 15:47:02 the immediate thing which comes to mind would be ogl/video stuff Feb 15 15:47:21 ideally Feb 15 15:47:40 is it possible to replace the system wide uncaught exeption handler? Feb 15 15:47:57 by modifying the platform sourcr Feb 15 15:48:11 without doing that ;) Feb 15 15:48:35 nope Feb 15 15:48:43 that'd be a security risk Feb 15 15:48:45 obviously Feb 15 15:49:19 anything worht being awesome is Feb 15 15:49:22 I don't know what kind of quality control CM has, but if they keep diverging from AOSP, they're going to need it Feb 15 15:50:13 SimonVT: it's said in the comments that they do pass CTS - but the reasonable point is made that CTS applies to hardware/software combos, and since CM has no stock hardware, there's no way for them to be certified Feb 15 15:51:52 Each officially supported phone has a maintainer. Feb 15 15:52:03 the maintainer could put the build/hardware combo to the CTS test Feb 15 15:52:19 yeah, in practice though, CM is often quite buggy ime Feb 15 15:52:29 which is different from OEM devices how? Feb 15 15:52:43 lov: would anyone listen if the hardware vendor wasn't involved? Feb 15 15:53:02 "We decided to log all of your keystrokes as a feature. I hope that you enjoy this feature!" Feb 15 15:53:14 "What do you mean it's a problem to log all of the user's keystrokes in a publicly visible log? I don't understand!" Feb 15 15:53:17 s0itf Feb 15 15:53:28 cant find free android open source games Feb 15 15:53:38 make your own, you're in #android-dev Feb 15 15:53:41 alternately, get out :> Feb 15 15:53:53 i want to see how ADK SDK emu compiler works Feb 15 15:54:08 lov: well, if the manufacturer adds a lot of fail to their devices, then yeah Feb 15 15:54:19 MDijkstra: s/if // Feb 15 15:54:19 FBI KLM BBC KGB what? Feb 15 15:54:23 s/, then yeah// Feb 15 15:54:27 lov: yeah, was just about to say Feb 15 15:54:29 almost all do Feb 15 15:55:21 for what it's worth, my gnex is *almost* unacceptably unreliable - in particular, the gapps crash and leave the market half-working, gmail not pushing, etc. Feb 15 15:55:47 that, and the hard - like battery-removing because holding down power doesn't work hard - crashes when *searching* in gmaps... Feb 15 15:55:53 it's not just OEMs :) Feb 15 15:56:22 Leeds: still on 4.0.1? :) Feb 15 15:56:48 the fact that the GNex doesn't have a hard reset button combo is a huge PITA Feb 15 15:56:56 removing the battery door is a pain Feb 15 15:56:59 4.0.2 - as of last week... I didn't want to mention the fact that updates for my phone are delayed because I dared to buy it in a Chinese-speaking place Feb 15 15:57:18 you can flash a yakju build Feb 15 15:57:21 then you'll get updates from google Feb 15 15:57:27 but the maguro is still on 4.0.2 Feb 15 15:57:30 where's api 15? Feb 15 15:57:35 you'll need to unlock to do that right? Feb 15 15:57:43 yea, then you can relock Feb 15 15:57:48 yeah Feb 15 15:57:52 just don't want to wipe /data Feb 15 15:58:00 yeah, what MDijkstra said Feb 15 15:58:00 so I'll need to use that root exploit Feb 15 15:58:01 use adb backup/restore Feb 15 15:58:07 ah Feb 15 15:58:12 it works great Feb 15 15:58:12 hey Feb 15 15:58:18 theres a root exploit? Feb 15 15:58:18 didn't know that Feb 15 15:58:21 yeah Feb 15 15:58:23 I flashed yakju as soon as I got mine :p Feb 15 15:58:25 I'm trying to use an image asset in StreamItems.COMMENTS Feb 15 15:58:26 finally bitches Feb 15 15:58:35 based on the local root discovered in the kernel a while back Feb 15 15:58:36 android doc says it allows html just as StreamItems.TEXT Feb 15 15:58:51 which in turns says allows html like fromHtml Feb 15 15:59:04 I'm currently using this line: http://pastie.org/private/stl81h1fsu9b6ibaxrymw Feb 15 15:59:12 but I only get cyan squares instead of images Feb 15 15:59:27 now the fromhtml doc says to use an imagegetter for images Feb 15 15:59:42 but how do i use that for StreamItems.COMMENTS? Feb 15 16:00:14 I can't give values.put an additional parameter, so where should I declare the imagegetter? Feb 15 16:00:19 or is there another way around it? Feb 15 16:07:30 mots: just so you know, that ringing silence means "nobody actually knows the answer, but we're going to drop the mostly-offtopic conversation in case anyone else does" Feb 15 16:08:27 anyone know why I get a scrambled image when I try to convert the camera's preview NV21 images using YuvImage? Feb 15 16:11:15 when does a tablelayout make sense? is it better already when i only have a 3x2 grid (realized with linearlayouts)? Feb 15 16:12:31 When you need a table-like structure :p it makes sure the columns in each row are just as wide iirc Feb 15 16:12:47 + it's probably faster to layout its children than nested linearlayouts Feb 15 16:19:07 average of 14 downloads/day for an app is good/medium/low ? Feb 15 16:19:20 (its 1.99 €) Feb 15 16:19:44 it's low. so low, in fact, that you should just give me the money Feb 15 16:20:01 lol, seriously, is that low? Feb 15 16:20:12 depends what it is Feb 15 16:20:15 and what the market is Feb 15 16:20:20 and how much time you put into it Feb 15 16:20:24 and what your expectationos are Feb 15 16:20:24 rendar: what # are you expecting? Feb 15 16:20:27 you should relaly be asking yourself Feb 15 16:20:54 well i don't know, a friend of mine done it Feb 15 16:20:55 14/day for a 2 Euro app seems ... reasonable Feb 15 16:20:59 can i start with java and later convert to android Feb 15 16:21:02 I wont buy anything priced in Euros for example Feb 15 16:21:06 if you're expecting 1M downloads it'll take awhile. if it's just a little project with limited scope and audience, whatever Feb 15 16:21:15 And neither will most US consumers Feb 15 16:21:36 rendar: don't forget to convert it to iOS to rake in some serious dough. Or something. Feb 15 16:21:55 really Cpudan80? Feb 15 16:21:55 shurane: haah Feb 15 16:21:58 i'll buy any currency Feb 15 16:22:23 well, its only for italian consumers Feb 15 16:22:32 Doesn't market always show in your local currency now anyway, since you're required to enter it? Feb 15 16:24:03 canadiancow|work: I'll look for something priced in USD. If it's a US company pricing in Euros to take advantage of Euro/US exchange rate I wont buy it Feb 15 16:24:34 oh Feb 15 16:24:35 Obviously if I were expecting the thing to be in Euros (ie. some app that maybe only worked in Europe somehow) then it'd be different Feb 15 16:24:52 canadiancow|work: If I really need it and it's priced in Euros, I'll buy it Feb 15 16:25:15 also nobody except Cpudan80 cares about the currency Feb 15 16:25:57 ^ Feb 15 16:26:58 Does anyone know if its possible to set a variable/property at runtime through adb? Feb 15 16:29:15 hwrd_work: what kind of property? Feb 15 16:29:25 -Just testing if I am already register- Feb 15 16:29:30 Good =) Feb 15 16:29:47 evancharlton: A property that might let me turn logging on or off. Feb 15 16:30:07 evancharlton: just something i can read through a class at runtime. Feb 15 16:30:12 hwrd_work: well you can set log.tag.YourTag NONE I think Feb 15 16:30:13 *read from a class Feb 15 16:30:24 hwrd_work: oh something like that? not that I know of Feb 15 16:31:42 btn.setLayoutParams(new LayoutParams(width, height, x, y)); Feb 15 16:31:59 It says I have to specifie Feb 15 16:32:06 widht height x and y Feb 15 16:32:11 But I have already Feb 15 16:32:12 said Feb 15 16:32:27 int width=100, (...) Feb 15 16:32:36 Does any1 know Feb 15 16:32:44 How can I fix this...? Feb 15 16:32:49 Tope: hey, can you please use full sentences instead of speaking like william shatner? Feb 15 16:33:05 lots of short Feb 15 16:33:07 lines Feb 15 16:33:08 helps Feb 15 16:33:09 no one Feb 15 16:33:14 Sorry :S Feb 15 16:33:15 lol Feb 15 16:33:28 heh Feb 15 16:33:45 But do you know how can I fix it? Feb 15 16:33:46 it is kind of annoying... Feb 15 16:33:49 Tope: I don't really understand your poblem. maybe I joined late… Did you post a code sample? Feb 15 16:33:53 but Feb 15 16:33:55 evancharlton Feb 15 16:33:55 if Feb 15 16:33:56 you Feb 15 16:33:56 type Feb 15 16:33:57 Yes I did Feb 15 16:33:58 like this Feb 15 16:33:59 then Feb 15 16:34:04 How would you ensure that a progressDialog is shown at least for some time. Like 1 second Feb 15 16:34:05 others can Feb 15 16:34:07 read Feb 15 16:34:09 before you Feb 15 16:34:10 finish Feb 15 16:34:10 writing Feb 15 16:34:19 btn.setLayoutParams(new LayoutParams(50, 50, 50, 50)); Feb 15 16:34:19 and i do feel like shatner :) Feb 15 16:34:36 canadiancow|work: it's all the fun of IRC combined with the order of Google Wave! Feb 15 16:34:42 hahaha Feb 15 16:34:51 :D Feb 15 16:35:07 DashCC, you will need to delay the thread that your processing task sits on for a second Feb 15 16:35:14 DashCC: System.currentTimeMillis at the start of your background method, then again at the end, then Thread.sleep for 1s - the delta. Feb 15 16:35:15 DashCC: show it, and then just delay the dismissal Feb 15 16:35:27 i sort of remember google wave Feb 15 16:35:31 i got an invite at io 2010 Feb 15 16:35:36 and it was discontinued before io 2011 Feb 15 16:35:47 DashCC: if you can just delay the dismiss for 1second, you can guarantee that the dialog is shown for at least 1 second. Feb 15 16:35:48 I used it for playing sudoku.. that's about it Feb 15 16:36:15 canadiancow|work: I thought Google wave crashed already. Feb 15 16:36:31 hwrd_work: well yeah, Im trying that. But the spinner's not spinning if I do that :D Feb 15 16:37:17 DashCC: You are not doing the sleep on the ui thread, right? Feb 15 16:37:42 well.. yes Feb 15 16:37:47 ha Feb 15 16:38:13 Ok I have found the solution Feb 15 16:38:19 I have to, dont i ? SimonVT Feb 15 16:39:06 No :o Feb 15 16:39:29 if you block the UI thread, nothing else can happen there.. Like drawing a spinner Feb 15 16:39:34 otherwise it wouldnt make sense. What does the UI Thread (where the progessDialog is showing) care if some other thread is sleeping Feb 15 16:39:57 hello Feb 15 16:40:34 Didn't you just say you were doing Thread.sleep on the UI thread? :F Feb 15 16:40:54 yes, but if I do the sleep on some other Thread - it wouldnt make sense Feb 15 16:41:25 sigh Feb 15 16:41:27 hey DashCC Feb 15 16:41:35 do the sleep in the background method in your async task Feb 15 16:41:37 that's not the ui thread. Feb 15 16:41:48 11:35:23 < lov> DashCC: System.currentTimeMillis at the start of your background method, then again at the end, then Thread.sleep for 1s - the delta. Feb 15 16:41:53 anyone know what the android emulator camera test pattern looks like? it looks like a white screen on my emulator, but i think it's supposed to be a checkered pattern. Feb 15 16:42:49 I am trying to program a button to when I press it it chages position... Feb 15 16:43:03 But is not working Feb 15 16:43:33 My app is started by android.nfc.action.TECH_DISCOVERED and android.intent.action.MAIN. Any way those 2 intents(?) to use the same thing? Feb 15 16:43:40 because it basuacally starts the same. Feb 15 16:43:47 Ecplise is saying that I didnt define my variabules Feb 15 16:43:55 moto is upgrading the xoom 2 to ICS in Q3 Feb 15 16:43:56 ice Feb 15 16:43:59 nice* Feb 15 16:44:03 And I had.... Feb 15 16:44:05 Oo Feb 15 16:44:27 I have added the Intent.FLAG_ACTIVITY_SINGLE_TOP but only the UI is single. Feb 15 16:44:39 Let me check something, I actually did that before asking here but just got a grey screen.. maybe it was lagging back then Feb 15 16:44:40 For example, I have a timer there and it then has 2 timers. Feb 15 16:44:42 i have a problem with an easy listview... some elements exit from the space and are half cutted... Feb 15 16:45:02 lawl canadiancow|work ;| Feb 15 16:45:03 damn. Feb 15 16:45:07 it was lagging. Feb 15 16:45:09 That's lazy Feb 15 16:45:11 Thanks lov Feb 15 16:45:17 fucking photoshop http://www.amazon.com/Give-Me-All-Your-Luvin/dp/B0076DE6YU/ref=sr_1_1?ie=UTF8&qid=1329324297&sr=8-1 Feb 15 16:45:37 SimonVT: how does it take that long to update it Feb 15 16:45:40 xoom 1 got it in like 2 days Feb 15 16:46:02 n wi Feb 15 16:46:20 * Jug6ernaut <3's his xoom Feb 15 16:47:02 canadiancow|work zynga is in canada? Feb 15 16:47:36 there's an office in toronto Feb 15 16:47:42 ah Feb 15 16:47:56 zynga is in US Feb 15 16:49:59 i dont think he was asking out of curiosity about the company Feb 15 16:50:00 :P Feb 15 16:50:37 ^^ Feb 15 16:51:35 JakeWharton: I'm not sure if I've found an ABS bug or not, but I have a SurfaceView that takes up the bottom part of the screen, and it /appears/ as though it's drawing on top of the menu that appears when you hit the menu button on the phone. Feb 15 16:51:53 http://img835.imageshack.us/img835/4779/91475677.png <-- Can some1 help to fix this??? Feb 15 16:51:54 lies Feb 15 16:51:57 phones dont have menu buttons Feb 15 16:52:19 no tope Feb 15 16:52:20 whats the error Feb 15 16:52:30 I see that SurfaceViews have Z ordering, but I don't know if the menu is provided by ABS or Android, so I don't know how to proceed. Feb 15 16:52:44 Tope, ur importing the wrong layoutParams Feb 15 16:52:57 Damn... Feb 15 16:53:02 * Jug6ernaut toke the touch controls away form his galaxy nexus Feb 15 16:53:05 full screen ftw Feb 15 16:53:17 So witch should I import? Feb 15 16:53:27 which ever its asking for ;) Feb 15 16:53:30 (seriously tho) Feb 15 16:53:44 there are two Feb 15 16:53:58 Wait, did you just post a /screenshot/ of your IDE instead of pasting the error message?? O.o Feb 15 16:54:09 hehe Feb 15 16:54:14 wraithguard01: yes. yes he did. Feb 15 16:54:17 ಠ_ಠ Feb 15 16:54:31 wraithguard01 how long have u waited to use that face? Feb 15 16:54:41 Jug6ernut and which I must import? Feb 15 16:55:03 Oh, I use it frequently in other places. lol Feb 15 16:55:13 Tope mouse over .setLayoutParams, it will tell u Feb 15 16:55:17 lol Feb 15 16:55:22 ive never seen that 1 b4 Feb 15 16:55:31 Tope: we need to see the error. Feb 15 16:55:39 as in the error message. Feb 15 16:55:53 Tope: It depends what kind of ViewGroup the View is in Feb 15 16:56:01 If it's in a LinearLayout, use LinearLayout.LayoutParams Feb 15 16:56:05 nullpuppy: Isn't the problem obvious? There's a red squiggly line. Feb 15 16:56:07 Tahts the problem Jug6ernaut it just shows me this one Oo Feb 15 16:56:11 if it's in a RelativeLayout, you can probably guess what to use Feb 15 16:56:14 wraithguard01: oh! right! Feb 15 16:56:41 Also, the error is displayed at the bottom you nubs ;/ Feb 15 16:56:52 Jug6ernaut: http://knowyourmeme.com/memes/%E0%B2%A0%E0%B2%A0-look-of-disapproval Feb 15 16:57:00 SimonVT: huh. so it is :D Feb 15 16:57:01 hehe Feb 15 16:57:21 haha Feb 15 16:57:24 well no one uses eclipse for any serious work anyway so how are we supposed to know! ;) Feb 15 16:57:28 Ho thanks a lot Feb 15 16:57:40 I don't use eclipse either :p Feb 15 16:57:41 it's early, I haven't had my coffee yet, therefore I'm not awake y et. Feb 15 16:57:50 Hum... Feb 15 16:58:01 Maybe I should try upgrade ADK... Feb 15 16:58:17 just open the problems window or whatever it's called Feb 15 16:58:26 * Jug6ernaut must be weird for using eclipse :| Feb 15 16:59:28 freenode forced me to change my nick when I started gettingtoo many questions about that stupid ide because my original nick was eclipser :E Feb 15 17:00:01 I WAS THERE FIRST Feb 15 17:01:01 http://img802.imageshack.us/img802/6883/41018051.png I cannot import LinerLayout... :S Is there any way to fix this? Feb 15 17:01:48 Tope: A) Why did you paste a screenshot of all things? B) I don't see you even trying to import LinearLayout. Feb 15 17:02:14 I have already tried... thats the point... Feb 15 17:02:18 If you are trying to import LinerLayout, it is LinearLayout Feb 15 17:02:26 >_< Feb 15 17:02:36 Tope: cool story bro. Come back when you have an actual question then I guess. Feb 15 17:02:55 Tope: Try typing this LinearLayout ll;, then press CTRL-SHIFT-o Feb 15 17:03:21 Incidentally, I like that TravisLovesBacon. Feb 15 17:04:03 learn the language and the ide before doing android stuff Feb 15 17:05:29 Thank you Knossos :) Feb 15 17:05:43 I think it is probably working now... Feb 15 17:06:03 I am going to test it... Feb 15 17:06:26 Not working :S Feb 15 17:06:53 It looks like you need to do some homework. Feb 15 17:07:05 Have a search on google for basic Android tutorials Feb 15 17:08:00 maybe some actual basic programming too Feb 15 17:08:52 Knossos: s/basic Android/basic Java Feb 15 17:09:24 I am still learning java :S Feb 15 17:09:47 I can tell. Feb 15 17:09:55 Start with java, not android. Feb 15 17:10:25 Tope: http://docs.oracle.com/javase/tutorial/java/index.html Feb 15 17:10:31 http://docs.oracle.com/javase/tutorial/essential/index.html Feb 15 17:10:34 start with those Feb 15 17:10:36 Tope: try Head First Java, its a really good book for learning Java Feb 15 17:10:38 learn Java before anything else. Feb 15 17:10:39 I have program robots in java but this is completly diferent... Feb 15 17:10:41 I think java is a poor language to learn when starting out... Feb 15 17:10:57 Zharf: thus begins the holy war >_< Feb 15 17:11:55 Zharf: problem with different languages is, you might be ruined for life.. or at least a long period of time. If you started with PHP for example Feb 15 17:12:05 well my point is that it's super annoying to write bava without the help of an IDE and that makes it easy to ignore things you don't understand fully Feb 15 17:12:15 Tope: You're obviously not well versed enough, because you're asking how to fix a compile error. Feb 15 17:12:45 I am still not sure which is my problem... :S Feb 15 17:12:45 java... sorry... typing on android keyboard ;) Feb 15 17:13:10 Tope: pastebin the code and the error that you are getting. Feb 15 17:13:14 DO NOT GIVE US A SCREENSHOT Feb 15 17:13:20 Ok Feb 15 17:13:43 package com.memecenter; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.ViewGroup.LayoutParams; import android.widget.Button; public class Menuprin extends Activity{ Button desc; @Override protected void onCreate(Bundle TravisLovesBacon) { // TODO Auto-generated method stub super.onCreate(TravisLovesBacon); setContentView(R.layout.menuprinc); desc = (Button) fi Feb 15 17:13:59 dont be mad at him, hes new :) Feb 15 17:14:06 I find it ironic that he's writing "Meme Center" and didn't get the hint when I posted a look of disapproval. Feb 15 17:14:10 Description Resource Path Location Type The constructor ViewGroup.LayoutParams(int, int, int, int) is undefined Menuprin.java /Meme Center/src/com/memecenter line 28 Java Problem Feb 15 17:14:16 Tope: Use a paste bin Feb 15 17:14:29 http://pastebin.com/ Feb 15 17:15:05 http://pastebin.com/Mun3bUWK Feb 15 17:15:11 Here it is =) Feb 15 17:15:40 So, you're trying to use a non-existant method Feb 15 17:15:45 Now what are you trying to accomplish? Feb 15 17:15:48 This one is the xml: http://pastebin.com/uBwnf8kB Feb 15 17:16:33 Error: Type The constructor ViewGroup.LayoutParams(int, int, int, int) is undefined Menuprin.java Feb 15 17:16:43 Line28 Feb 15 17:16:44 hi. Is there away to increase the jvm memory size? I get outofmem exception when allocating two 64 megs arrays, though the device tells me mem free is 350+ megs Feb 15 17:17:11 Tope: It has nothing to do with the XML, it's that you're using a method that doesn't exist Feb 15 17:17:22 Look in LayoutParams and see which method you want Feb 15 17:17:48 panda81: If I'm not mistaken, you're app's memory usage is hard capped, and you can't do anything about that Feb 15 17:18:20 wraithguard01: capped by whom? Feb 15 17:18:42 panda81: Android Feb 15 17:19:31 wraithguard01: What I am trying to do is when I press a button it just moves to a another location... Feb 15 17:19:54 wraithguard01: what should I search to find if that's indeed the case? Feb 15 17:20:08 panda81: the default heap size is set at the device's compile time Feb 15 17:20:12 i.e. the manufacturer sets the max size Feb 15 17:20:16 it's generally 32MB Feb 15 17:20:30 now, that said, if you use JNI and start doing mallocs from native memory, you MAY not be bound by this. Feb 15 17:20:42 It can be anywhere from 16MB on old devices to 48+ on new Feb 15 17:20:49 what devices had 16MB? Feb 15 17:20:54 Tope: Ok, but the problem is a compile error, not a usage error. Just pick the right method. Look in LayoutParams documentation Feb 15 17:21:15 lov: g1 I believe? :p Feb 15 17:21:21 lov: You mean each time 'new' is called, the max size is typically 32mb? Feb 15 17:21:27 panda81: no Feb 15 17:21:34 panda81: you have a total of 32MB for your app, period. Feb 15 17:21:38 as in for all of your memory Feb 15 17:21:44 not per instanciation of an object Feb 15 17:21:47 wraithguard01 so you mean I need to import the right package right? Feb 15 17:21:56 pretend the device has 32MB (or however much the jvm heap size is set to) Feb 15 17:22:26 panda81: don't forget; you're writing apps for a mobile phone, even though some of them have the specs to be tiny laptops Feb 15 17:22:30 You need to use the right method, wherever that is. If you define public void blah(int i), then use blah(1, 3), it's a compile error. This is basic java, not android or any library specific problem Feb 15 17:22:47 lov: Well, I work with a new device with 1 gig of ram that came out recently Feb 15 17:23:36 I am found the solution Feb 15 17:23:45 Thank you avery1 Feb 15 17:23:48 *every1 Feb 15 17:24:09 No problem, a friend of bacon is a friend of mine. Feb 15 17:24:14 I am trying to apply a background color to my title area of my dialog but it does not work. Any suggestions? Feb 15 17:24:15 http://pastebin.com/d1mxLJNb Feb 15 17:24:25 lov: first alloc of 44 megs successful. The next line allocating an additional 24 megs I get outofmem. Feb 15 17:24:35 My GN has 64MB heap Feb 15 17:25:10 is that java heap that's 64mb? Does it differ from the device's manufacturer's advertised ram size? Feb 15 17:25:38 if an app acquires a full wake lock, and then the user turns off the screen, does the wake lock persist? Feb 15 17:25:53 panda81: That's how much is available to your application Feb 15 17:26:30 SimonVT: is that # documented for most devices? I have a Galaxy Tab 8.9 Feb 15 17:26:32 hi all Feb 15 17:27:17 panda81: the device has X amount of ram. Your app may use Y of it at a time Feb 15 17:27:56 lov: For my device, X is 1 gig as advertised. How do I find out Y? Feb 15 17:28:25 Hello all Feb 15 17:28:28 panda81: http://stackoverflow.com/questions/2131947/android-memory-allocation this might be helpful Feb 15 17:28:34 I THINK that there's something you can query at runtime for Y Feb 15 17:29:03 Runtime.getRuntime().maxMemory() is what I used to check Feb 15 17:29:08 R.id.edit_text_out what can i type instead of "id"? Feb 15 17:29:41 panda81: take a look in http://developer.android.com/reference/android/os/Debug.html Feb 15 17:29:48 and/or what SimonVT said Feb 15 17:30:02 Al3xX90: I'm not sure what you're asking. Feb 15 17:30:10 andre_pl: is it a partial wakelock? Feb 15 17:30:12 andre_pl: if so, yes. Feb 15 17:30:30 andre_pl: actually the wakelock should persist in all cases but the screen bright wakelocks can be overridden by the user iirc Feb 15 17:30:41 although when the screen comes back on the wakelock remains in force Feb 15 17:30:43 SimonVT: hehe, did tried your suggestion. Got 67108864. That's tiny Feb 15 17:31:04 panda81: that's actually quite a bit; most phones are closer to 48 or even 32 Feb 15 17:31:13 panda81: don't forget; you're doing mobile development. Feb 15 17:31:16 lov: I've tried both partial and full and i have the same problem with both... when my the internet connection on the tablet is lost, it refuses to come back until the screen comes on, at which point it connects instantly. Feb 15 17:31:17 you have resource constraints. Feb 15 17:31:32 andre_pl: that's different though. Feb 15 17:31:43 andre_pl: partial wakelocks keep the CPU on. the other wakelocks keep the screen on. Feb 15 17:31:55 neither of them mention the network, though the network shouldn't be cutting out when the screen is turned off. Feb 15 17:32:06 lov: I just find this very different from expectations since the device has 1 gig of ram total. 67megs? That's 6% of the device's capability Feb 15 17:32:08 you might want to run adb shell dumpsys power and see what locks are present. Feb 15 17:32:13 mOutEditText = (EditText) findViewById(R.id.edit_text_out) the "id" near edit is an error what can i type instead of it? Feb 15 17:32:21 panda81: this is android. each process has a heap limit. This is how it has been from the beginning. Feb 15 17:32:34 anyone? Feb 15 17:32:35 panda81: if you REALLY need more memory, consider using remote processes and/or malloc from native code Feb 15 17:32:36 lov: it doesn't, thats whats strange. it will stay connected for DAYS until the connection disappears, (ie bad signal area) at whichpoint it will lose the connection and never come back until the screen comes on Feb 15 17:32:56 andre_pl: that could just be something strange with your tablet. Feb 15 17:33:04 andre_pl: if this is a wifi connection, consider looking at wifi locks Feb 15 17:33:21 Al3xX90: you're probably referencing Android.os.R or something Feb 15 17:33:23 lov: ok I'll work with and accept what Android java restricts for now. Feb 15 17:33:29 maybe Feb 15 17:33:30 Al3xX90: and/or your autogenerated R file doesn't have any ids Feb 15 17:33:34 Al3xX90: clean and rebuild your project Feb 15 17:33:40 lov: its actually 5/12 tablets so far that have done it now, and all always on 3g (wifi disabled) Feb 15 17:33:57 Al3xX90: double check that you actually have android:id="@+id/edit_text_out" in an xml layout Feb 15 17:34:05 andre_pl: hmph Feb 15 17:34:15 andre_pl: I don't know how you would tell the device to keep the data connection open, sorry Feb 15 17:35:15 andre_pl: most tablets actually don't have cell data connections, so it could just be a shitty hackjob by the OEM Feb 15 17:35:37 lov: its certainly tricky, and its not normal behaviour, usually about 8-9/12 will regain their connection just fine Feb 15 17:36:50 * lov shrugs Feb 15 17:36:56 sorry, I don't know what to suggest here :( Feb 15 17:36:59 Hello World! Feb 15 17:37:11 no problems, just taking a shot :P Feb 15 17:37:20 I have a puzzle Feb 15 17:38:51 lov: no it isn't it is a java file Feb 15 17:39:04 Al3xX90: what is a java file? Your xml layout? Feb 15 17:39:16 Al3xX90: R.java is an autogenerated file that's created based on your xml content in the /res dir Feb 15 17:39:34 Al3xX90: if none of your xml content actually has an id of edit_text_out, your R.java file wont' contain id.edit_text_out Feb 15 17:39:55 http://ideone.com/H9KQ7 Feb 15 17:40:05 I think there's an error Feb 15 17:40:35 cause I coult use the SensorThreadHandler before it is created Feb 15 17:40:39 is it ? Feb 15 17:41:07 so how is the right way to let the main thread wait for the hndler creation ? Feb 15 17:41:35 ..... huh? Feb 15 17:42:06 ok, you want to wait until the m_sensorThreadHandler is created? Feb 15 17:42:32 yes . Feb 15 17:42:40 don't forget that Looper.loop will block until the thread is effectively ended. Feb 15 17:42:50 Hoping is not a prob for the UI thread Feb 15 17:42:58 ok hmm Feb 15 17:42:58 the file is BluetoothChat.java from Bluetooth chat from android site Feb 15 17:43:01 you'll have to excuse me for jumping in after not reading the entire convo, but i'm thinking you might want to look into HandlerThread? Feb 15 17:43:03 let me try changing this and giving you a new pastebin. Feb 15 17:43:23 oh neat Feb 15 17:43:34 lov I am sending something like tahis to end the thread : m_sensorThreadHandler.getLooper().quit(); Feb 15 17:43:38 had to deal with that recently Feb 15 17:43:39 much simpler Feb 15 17:43:53 yeah, definitely. Feb 15 17:44:08 aLeSD: use a HandlerThread, subclass it to do something on that callback Feb 15 17:44:20 aLeSD: use a semaphore or something to block in the main thread until it's done Feb 15 17:44:33 http://developer.android.com/reference/java/util/concurrent/Semaphore.html Feb 15 17:44:44 a semaphore initialized to 0 Feb 15 17:44:56 no Feb 15 17:44:58 wrong Feb 15 17:45:11 :| Feb 15 17:45:17 not to 0 Feb 15 17:45:18 and/or read a book on java multithreading / concurrency Feb 15 17:46:02 lvo I think I know how concurrency works... I use it usually in C/C++ Feb 15 17:46:33 aLeSD: java multithreading can be a little tricky. Just read up on how synchronized works and what you're actually locking on when you use it. Feb 15 17:46:36 but I hve to read that book Feb 15 17:55:12 Hey so where do I start reading to learn about how make "light" updates? Feb 15 17:55:24 Or am I disillusioned, and that is not even possible... Feb 15 17:56:09 You know, if you only change an image, just have the update replace the old image and put in the new, instead of requiring a new APK Feb 15 17:56:29 that's not currently possible Feb 15 17:56:37 the apk needs to be digitally signed Feb 15 17:56:45 so you can't just put out patches without putting out a whole new apk Feb 15 17:56:53 Ah gotcha. Was it ever possible? Feb 15 17:57:00 if you're concerned about overly large amounts of resources, consider downloading it after the fact Feb 15 17:57:03 I don't believe it ever was. Feb 15 17:57:11 you might be thinking of people hacking things into existing apks Feb 15 17:57:33 Downloading the resources is one hell of an idea... Feb 15 17:57:49 depends on how large your apk/resources are Feb 15 17:57:58 15 MB . . . Feb 15 17:58:01 Astro has multiple APKs for different functionality Feb 15 17:58:07 that's not THAT bad. Feb 15 17:58:15 you could put them all in the initial APK and have your own patch/overlay system Feb 15 17:58:16 is that all the resources for all the densities/etc? Feb 15 17:58:22 fairly trivially Feb 15 17:58:32 bear in mind that you can actually build multiple apks, one for each resource density, as a flag now Feb 15 17:58:35 Most of the comments from the OLD version (before everything was completely redone) is that it was TOO HUGE for the phone, and they had to uninstall. Feb 15 17:58:53 explodes: depending on the phones that's not unreasonable Feb 15 17:59:14 Well, there is a tablet version and a mobile phone version, built into one. Feb 15 17:59:26 People are very easy to give 1 star rating for the smallest things though Feb 15 17:59:38 yep Feb 15 17:59:42 avg 3.5 from the old version... Feb 15 18:00:00 but thats just an average Feb 15 18:00:05 explodes: you have a couple options. Feb 15 18:00:27 A) because market accepts multiple apks for the same app now, you can make multiple builds for different densities/configurations/etc Feb 15 18:00:34 then upload them and the size individually becomes much smaller Feb 15 18:00:40 B) make multiple packagenames, and have an "HD" version Feb 15 18:00:55 C) Have the resources downloaded after the app is installed, handle serving the files yourself Feb 15 18:00:57 q, I have a GLSurfaceView that has an animation with 5 objects in it that uses 6 textures. One texture is the "frame" around each object, and each of the other five is for each respective object's content. What I have been doing is using glTexImage2D in onDrawFrame but this devastates my performance. I have heard hints online that this is not the way to go, but no actual suggestions for how to switch between textures mid-render. All of the Feb 15 18:00:57 Bitmaps can be loaded in onSurfaceCreated, if that helps Feb 15 18:01:11 Hi Feb 15 18:01:31 D) Have the resources in a different application, have both apps share the same signature, live in the same shared space, etc. May not be feasible if you already shipped. Feb 15 18:02:02 I didn't notice the hit until I added the final objects, but now the animation skips... for what is a *very* simple animation of 8 quads Feb 15 18:02:11 err 10 quads Feb 15 18:02:13 how hard is it to create an app that will take RSS/XML data & display it in a simple format? i have never created an android app before, but would like to play around with doing one for a friend...my background is web dev Feb 15 18:02:23 If two apps have the same signature, can you access the other packages (i.e. import com.foo.resourceapk.R ) Feb 15 18:02:25 james541: bwuh? load your textures and bind the one you want to draw? Feb 15 18:03:02 w3bg33k: Easy as all hell, although there is a minor learning curve. Feb 15 18:03:07 oGmo: how? all of the tutorials have found bind and call glTexImage2D in the render method Feb 15 18:03:14 james541: there's also multitexturing but i forget if GLES supports that, if you're trying to overlay things on the same mesh Feb 15 18:03:39 oGmo: I know it's the "wrong way" but I have no examples of the "right way" Feb 15 18:03:40 explodes - can you recommend a tutorial? Feb 15 18:03:43 james541: I haven't done gl in a long time, but I Think the idea is that you load your textures into GL memory, which gives you a reference, and then you use that reference at render time to set what the active bitmap is Feb 15 18:03:54 Is there anyone here developing the android platform, but is here on an unofficial basis? Feb 15 18:03:55 lov: right Feb 15 18:03:59 that is my goal Feb 15 18:04:00 james541: texImage2D _loads_ a texture into the slot you allocated with glGenTextures Feb 15 18:04:04 I just need some example code Feb 15 18:04:09 explodes: there are a few people here who are here on an "official" basis Feb 15 18:04:11 no you don't Feb 15 18:04:14 oh? Feb 15 18:04:23 they may or may not be ops Feb 15 18:04:26 (I do not work for google this is not me) Feb 15 18:04:32 just load your textures, then glBindTexture every time you want to switch Feb 15 18:04:38 hmm Feb 15 18:04:38 w3bg33k: I don't have a real recommendation but this will cover the basics: http://developer.android.com/resources/tutorials/hello-world.html Feb 15 18:04:51 is that calling glBindTexture on the index of the array of texture identifiers? Feb 15 18:04:58 @oGMo Feb 15 18:05:02 I can give that a shot Feb 15 18:05:05 w3bg33k: when you say web dev, do you have any java experience Feb 15 18:05:12 or really experience with anything aside from C#? Feb 15 18:05:13 er Feb 15 18:05:14 php? Feb 15 18:05:24 My girlfriend lost her phone yesterday, so being able to remotely install Plan B was a total life saver. Feb 15 18:05:25 (also, Java is not Javascript) Feb 15 18:05:28 lov - no, just classic asp/php Feb 15 18:05:34 w3bg33k: know any OO? Feb 15 18:05:41 lov . Perfect ... seems HandlerThread create the loop in the cotructor so I can create the handler outside without sinconization Feb 15 18:05:44 thanks Feb 15 18:05:52 james541: well the content of the index, which is the "texture name", not the index itself of course Feb 15 18:05:53 lov - i know some php oo within frameworks Feb 15 18:05:56 w3bg33k: http://docs.oracle.com/javase/tutorial/java/index.html and http://docs.oracle.com/javase/tutorial/essential/index.html Feb 15 18:06:01 learning Java is step 0 Feb 15 18:06:09 once you have a handle on Java, start learning Android Feb 15 18:06:33 explodes did you just troll? i just looked that up... Feb 15 18:06:35 * aLeSD C++11x is better Feb 15 18:06:35 bear in mind that Java lives and breathes OO, so you really have to have a decent grasp on it. Feb 15 18:06:42 eplewis89: not at all. Feb 15 18:06:48 link? Feb 15 18:06:50 heey guys Feb 15 18:06:59 eplewis89: I think that it's the name of an app as well :P Feb 15 18:07:00 oGmo: ok, that sounds like a decent way to go, but all of the tutorials the actually generate a texture, bind it, and then use it only show how to do it for one texture Feb 15 18:07:03 eplewis89: https://market.android.com/details?id=com.lookout.labs.planb Feb 15 18:07:04 but yeah that's kind of funny in another context Feb 15 18:07:10 eplewis89: oh hahah Feb 15 18:07:16 I just need an example that uses more than one, even just two textures would be fine Feb 15 18:07:22 thats funny Feb 15 18:07:32 oh it's lookout security. Feb 15 18:07:48 lov ... I have something to ask you about design Feb 15 18:08:25 james541: right. instead of doing one, glGenTextures for a number of them. ideally, you'll want to be able to load them on demand, because video memory is limited. also, one big texture map is possibly better than multiple small textures Feb 15 18:08:33 * Aeefire has a question and waves with his hands to get attention Feb 15 18:08:34 :D Feb 15 18:08:45 james541: you can select a subset of the texture with your uv coords iirc Feb 15 18:08:58 Activity starts the Service, the Service startsForward , send notification, if the user push the notification the Activity is started. is it ok ? Feb 15 18:09:00 Aeefire: Just ask bro Feb 15 18:09:07 aLeSD: probably Feb 15 18:09:11 oGMo, was thinking about doing that would it be ok for 5 256x256 textures? Feb 15 18:09:15 that's the best way to do 2D sprite stuff at least, when you hit 3D it's a bit different i think Feb 15 18:09:18 * aLeSD is pro Feb 15 18:09:27 james541: no idea .. depends on what you're doing Feb 15 18:09:30 and the device Feb 15 18:09:34 aLeSD: it's a totally valid design and it's what a lot of people do. Just consider the implications of what will happen and you'll be fine :P Feb 15 18:09:41 fair enough Feb 15 18:09:43 memory is limited and you can't tell how much until you fail to load a texture i think Feb 15 18:09:54 I'd like to try the GenTexture approach first Feb 15 18:10:04 although at the moment all of the textures fit, the animation is just slow Feb 15 18:10:16 james541: if you're doing 2D, texture maps are actually a lot easier Feb 15 18:10:17 and really sluggish to respond to user input Feb 15 18:10:24 load once and forget Feb 15 18:10:29 i got a little problem: i am handing over some strings to some default mail application with an Intent.ACTION_SEND .. works pretty fine. However, I'd need some formatting of this: I need tables. I tried it w/ Html.fromHTML() but yeah, everything seems to work except tables :) any suggestions on how to create tables in such emails? :P Feb 15 18:10:32 well it's a 3D animation of 2D textures Feb 15 18:10:42 if that makes sense Feb 15 18:11:26 is this something that works the same between OpenGL and OpenGL ES? that might help my googling quite a bit Feb 15 18:11:42 What classes should I use to move something around the screen when I touch it? I'll have an image that I want to move from left to right or vice-versa when I tap the screen. Feb 15 18:11:57 dansul : TouchListener Feb 15 18:12:40 GL is fairly similar either way, ES is just simpler/limited .. you can always use a portable engine if you want portability Feb 15 18:12:42 Ok Feb 15 18:13:27 dansul: and probably this: http://developer.android.com/guide/topics/ui/drag-drop.html Feb 15 18:13:34 don't have any experience with it however Feb 15 18:13:36 sorry :D Feb 15 18:13:55 oGmo: do I use glActiveTexture to switch between textures that have been loaded? Feb 15 18:13:57 I'll look into it, thanks Feb 15 18:14:02 mid render? Feb 15 18:14:29 no suggestions to my problem? :) Feb 15 18:14:46 james541: glBindTexture i believe Feb 15 18:15:18 ok, thanks will give it a shot Feb 15 18:16:04 james541: glActiveTexture might also Feb 15 18:18:09 anyone know what the checkerboard pattern looks like on the emulator camera? Feb 15 18:18:20 is it greyscale? Feb 15 18:19:32 if the device goes out of memory it stops all the application or the single components ? Feb 15 18:19:38 mmm fool question Feb 15 18:20:15 http://www.securityweek.com/android-malware-increased-3325-percent-seven-months-says-juniper-networks -- they don't seem to mention whether these apps were from alternative markets. curious. Feb 15 18:20:46 why does this code : http://pastebin.com/1zBqZJ6J after a configuration change shows a progressdrawable instead of the listfragment ? Feb 15 18:22:11 Cus your fragment is a ListFragment and you're not adding the adapter after a configuration change? Feb 15 18:22:59 SimonVT: im adding the adapter (just removed the line before pasting the code) Feb 15 18:23:31 Well, listfragment shows an indeterminate progress bar until the adapter is set Feb 15 18:23:59 ok, thanks Feb 15 18:24:38 naaarf Feb 15 18:24:44 i hate it when noone knows an answer to my question Feb 15 18:24:51 and i can't figure it out :> Feb 15 18:40:13 oGMo: it worked! generated all of the textures in onSurfaceCreated, and just switched between them with glBindTexture, and now things are faster than they were when I was just using one texture! thank you so much! Feb 15 18:43:10 james541: np Feb 15 18:45:31 How do I do a reverse forward (i.e., to allow an app running on the phone to access a server running on the computer)? Feb 15 18:46:34 what is the preferred audio clip format for soundbytes in an app? Feb 15 18:47:06 i would really appreciate some answers :) http://forum.xda-developers.com/showthread.php?t=1498752 Feb 15 18:55:06 Do I have to use OAuth 2.0 authentication to use the google books API, or can I use the Android account manager? The Android Account Manager is not listed as a method of authentication of the google books api site. Feb 15 18:56:36 the account manager should be oauth Feb 15 18:57:19 hmm, anyone know what version of android the majority of handsets on the market suppport? i'm considering going with 2.3.3 as my base version Feb 15 18:57:45 Anyone know whether it's possible to add styling to an include tag in xml? Basically, I'd like to be able to do something like: http://stackoverflow.com/questions/6795676/possible-to-override-apply-style-in-layout-included-with-include-tag Feb 15 18:58:05 Is there no way to do this? Feb 15 18:59:53 CoJaBo: adb forward? Feb 15 19:00:16 Escherial: http://developer.android.com/resources/dashboard/platform-versions.html Feb 15 19:00:19 CoJaBo: dont use adb Feb 15 19:00:22 tada Feb 15 19:00:34 lov: extremely helpful, thanks :) Feb 15 19:00:41 yeah, CoJaBo, if it's on your network can you just give it the IP of your server? :P Feb 15 19:01:12 mikedg: What do I use then? Feb 15 19:01:28 what are your requirements? Feb 15 19:01:35 infrared, tcp/ip, audio Feb 15 19:02:27 mikedg: I have an app running on the phone, that expects to connect to port 11311 on the computer. I have no other means to network the two other than USB. Feb 15 19:03:23 has anyone an idea about Intent.ACTION_SEND -way of creating emails? and especially formatting them Feb 15 19:03:29 cojabo what about wireless adb Feb 15 19:03:38 wireless adb? Feb 15 19:04:22 I'm not sure that would help Feb 15 19:06:44 http://www.businessweek.com/technology/android-may-be-losing-ground-in-the-app-war-02142012.html Feb 15 19:07:07 Aeefire: its pretty easy … plenty of examples on the interwebs Feb 15 19:07:15 a little more tricky to add attachents Feb 15 19:07:34 g00s, i could also read that as "fewer android developers are including flurry in their apps than a year ago" Feb 15 19:07:47 canadiancow|work: except appcel;aerator reported the same thing Feb 15 19:08:07 whats that Feb 15 19:08:24 appcelerator, sorry … not even lion's autocorrect could fix that one :D Feb 15 19:09:31 hm, how does Flurry do in comparison to google analytics? Feb 15 19:09:56 g00s yeah i got it working with html.fromhtml ... but i couldn't get tables in there Feb 15 19:10:07 any idea how to achieve that tables are displayed in the mail? Feb 15 19:10:23 Aeefire: what is your mime type ? Feb 15 19:10:36 plain/text Feb 15 19:10:39 well :) Feb 15 19:11:18 i tried it with html Feb 15 19:11:25 to change the mime type to html Feb 15 19:11:35 but it just did the same as with plain/text Feb 15 19:11:48 g00s what is appcelerator Feb 15 19:11:54 no tables shown Feb 15 19:12:12 canadiancow|work: :) Feb 15 19:12:12 they offer an alaytics suite too? Feb 15 19:12:22 and some kind of sdk Feb 15 19:12:41 i just dont think its reasonable for something like that to say "ANDORID IS FAILING BECAUSE ANDORID DEVS ARE NOT USING OUR PRODUCT" Feb 15 19:13:06 ANDROID IS FAILING BECAUSE OUR AV SOFTWARE IS DETECTING MORE MALWARE EVEN THOUGH LESS IS ACTUALLY ON THE MARKET Feb 15 19:14:09 g00s any idea? Feb 15 19:14:11 hello, I'm having some issues with displaying some unicode info on a textview: the text appears as \u00fa1; I've tried using Html.fromhtml().toString with no success Feb 15 19:14:24 i hope google really amps up the sort of analytics u can see in the market developer site Feb 15 19:14:35 can i somehow change the order edittexts get selected when i press ENTER on the keyboard? Feb 15 19:15:03 Wavesonics: or makes google analytics for android suck less Feb 15 19:15:09 yessss Feb 15 19:15:10 with their latest update, i had to remove it from my app Feb 15 19:15:17 becuase after 15 minutes, i still had no idea how to use it Feb 15 19:15:25 and it wasnt giving me enough to make it worthwhile Feb 15 19:15:29 Aeefire: not sure then, presumably your email client renders html fine Feb 15 19:15:41 i used gmail Feb 15 19:16:12 as i said plain/text was working fine with html.fromhtml(), just the tables weren't used Feb 15 19:17:47 Why do not I see device name along with stack trace of crash in my app? Feb 15 19:17:50 g00s, been gone a few days eh Feb 15 19:17:56 vivekm, I wonder the same Feb 15 19:17:59 I want to know which foo device was that Feb 15 19:18:05 pfn: me too :) Feb 15 19:18:10 oh, yes i was :D Feb 15 19:18:14 indeed Feb 15 19:18:38 i was out hiking in the tondo national forest Feb 15 19:18:39 @pfn, I found the answer today I was looking so badly 2 days back. Feb 15 19:18:44 *tonto Feb 15 19:19:06 so how do we stop proguard from obfuscating an unsed function of nested class Feb 15 19:19:41 I tried all combinations and quit that day but found it today --- to use $ before nested class name instead of common-sensical '.' Feb 15 19:19:42 :D Feb 15 19:20:40 vivekm, oh, that's obvious Feb 15 19:20:41 Is there any way to get the the parent dialog in a button's on click listener? Feb 15 19:21:09 @pfn, ok ;) Feb 15 19:21:11 I want to dismiss the dialog when you press a button -- but I cant figure out how to get the parent dialog ... Feb 15 19:21:40 vivekm, if you would have clearly asked that here the other day, you would have gotten a working answer back Feb 15 19:31:37 Hi! Does anyone know a quick way to test the light sensor in my device? Is there some console command that returns its value? Feb 15 19:32:24 use your hand Feb 15 19:32:27 ha Feb 15 19:32:36 Svetlana_: find a sensor app, see what it says Feb 15 19:32:40 alternately, write your own Feb 15 19:32:48 I don't know if there's a command line method Feb 15 19:32:50 I strongly doubt that there is Feb 15 19:33:01 lov: Do you know any? I'm not an app programmer, wouldn't know where to start. Feb 15 19:34:13 then why are you here ._. Feb 15 19:34:51 I did a quick search for "Light sensor" Feb 15 19:34:53 https://market.android.com/details?id=com.fenicesoftware.lightsensor Feb 15 19:34:56 this was the first result Feb 15 19:35:35 lov: because if I asked in #android, they'd send me here. Feb 15 19:35:55 Svetlana_: logtits or gtfo Feb 15 19:38:02 a little crude bro Feb 15 19:38:17 Svetlana_: use that app (or others), see how it works. Feb 15 19:38:25 If you feel like learning development, start at d.android.com Feb 15 19:38:32 will do, thanks. Feb 15 19:39:42 im a crude asshole :/ Feb 15 19:40:19 can i somehow change the order edittexts get selected on enter? Feb 15 19:40:35 geez haha just reading back after a meeting, it can get quite rough in here. Feb 15 19:41:09 eplewis89: thats what she said Feb 15 19:41:27 holde you can set the focus order in xml Feb 15 19:41:32 holde: Tried nextFocus* ? Feb 15 19:41:37 yea, that's the one Feb 15 19:41:55 oh cool thx Feb 15 19:42:17 which reminds me I need to update that for my new layouts Feb 15 19:42:21 checked the doc, but reading the nextfocus description seemd wrong Feb 15 19:42:40 yup, it's giving me no value. the sensor must be broken Feb 15 19:42:41 fuck Feb 15 19:42:53 it's nextfocusdown, right? Feb 15 19:43:00 uhm "enter" Feb 15 19:44:18 System.currentTimeMillis() VS Calendar.getInstance().getTimeInMillis() same? Feb 15 19:45:14 holde the nextFoucsUp/Down/Left/Right/Forward are used to set what comes focused when using like a d-pad or trackball Feb 15 19:45:35 mhh, so no "enter"? Feb 15 19:45:37 but I believe enter key uses focus forewar Feb 15 19:45:42 forward Feb 15 19:45:42 ah ic Feb 15 19:45:44 i'll test Feb 15 19:45:45 but Feb 15 19:46:10 you should set the nextFocus for the other directions as well to support trackball/dpad movement Feb 15 19:46:22 fuck other devices ;P Feb 15 19:46:35 well, i have a trackball, so i may do that Feb 15 19:46:51 but isn't the value supposed to be the id? Feb 15 19:47:32 the docs say System.currentTimeMillis() souldn't be used for setting timeouts, so what should I use? Calendar.getInstance().getTimeInMillis() ? Feb 15 19:47:40 yea Feb 15 19:47:41 Wavesonics: System.currentTimeMillis is quicker Feb 15 19:47:43 they do the same thing. Feb 15 19:47:53 it's recommended not to use it for timeouts because of time zone changes Feb 15 19:47:55 use uptime instead Feb 15 19:48:54 huh, currenttimemillis is immune to timezone changes Feb 15 19:49:19 lov, so AlarmManager.set( RTC ) says it wants the trigger time in "wall clock time in UTC" so how can I get that w\o timezone? Feb 15 19:49:28 It's a utc value Feb 15 19:49:39 anyone happen to know how to make the debugger in eclipse actually break on the offending line rather than somewhere inside android? Feb 15 19:49:55 pfn, docs say System.currentTimeMillis() is NOT immunce to tz changes Feb 15 19:50:17 in this case, the exception's occurring in an onclick handler for a button; logcat reports the actual source of the error, but the debugger never seems to be able to get there once an exception is thrown Feb 15 19:50:21 java's Date i guess? Feb 15 19:50:43 that sounds broken vs java Feb 15 19:51:34 Svetlana_ what phone do you have? Feb 15 19:51:54 motorola milestone 2, just got it back from having its camera fixed Feb 15 19:51:56 pfn, huh ya... parse this: "Returns the current system time in milliseconds since January 1, 1970 00:00:00 UTC. This method shouldn't be used for measuring timeouts or other elapsed time measurements, as changing the system time can affect the results. Feb 15 19:51:57 " Feb 15 19:52:01 i guess i'll have to take it back for the light sensor.. Feb 15 19:52:03 Wavesonics: you want to use the alarm manager? Feb 15 19:52:19 lov, yup Feb 15 19:52:32 http://developer.android.com/reference/android/app/AlarmManager.html#ELAPSED_REALTIME Feb 15 19:52:34 Wavesonics, that means clock skew Feb 15 19:52:35 use that Feb 15 19:52:38 Svetlana_ Feb 15 19:52:43 oh Feb 15 19:52:43 and/or http://developer.android.com/reference/android/app/AlarmManager.html#ELAPSED_REALTIME_WAKEUP Feb 15 19:52:44 derp Feb 15 19:52:48 It is immune to timezone changes Feb 15 19:52:51 what? Feb 15 19:52:54 which light sensor are you talking about? Feb 15 19:53:01 the one on the front of the phone? Feb 15 19:53:05 hhhmmm Feb 15 19:53:05 the.. only one in a motorola milestone 2? Feb 15 19:53:17 you mean the proximity sensor? Feb 15 19:53:24 the one that locks the phone when you hold it to your ear? Feb 15 19:53:24 Wavesonics, don't do timing based on it, but it is an actual wall clock time Feb 15 19:53:24 nnnnno i mean the light sensor Feb 15 19:53:37 pfn: System.currentTimeMillis is the wall clock, same as unix. Feb 15 19:53:46 correct Feb 15 19:53:47 if the user changes the time, that will also change. Feb 15 19:53:52 it shouldn't be affected by TZ, etc. Feb 15 19:53:53 pm me your email Feb 15 19:53:58 the one that sets the screen's brightness according to ambient light Feb 15 19:54:07 what for? Feb 15 19:54:09 i have a small app for you that you can run to test it Feb 15 19:54:21 i just tested it with two different apps Feb 15 19:54:25 they return no value Feb 15 19:54:33 all the other sensors are fine Feb 15 19:54:36 Svetlana_: the proximity sensor is not the same as the light sensor. Feb 15 19:54:45 lov: i know that. Feb 15 19:54:56 which is why i know the proximity sensor is working fine. Feb 15 19:54:59 oh misread Feb 15 19:55:00 and the light sensor isn't. Feb 15 19:55:12 Svetlana_: light sensor for use with the camera or in general? Feb 15 19:55:22 it's possible that the light sensor that the camera uses isn't exposed to android for your phone Feb 15 19:55:49 the ambient light sensor for use with changing the screen's brightness according to ambient light Feb 15 19:55:55 it's just not responding at all Feb 15 19:55:57 Wavesonics, it simply means you can't reliably use it for any long-term timing because the user may change the time Feb 15 19:55:59 * lov shrugs Feb 15 19:56:11 Wavesonics, e.g., how long has it been between my last message; don't use system.currenttimemillis to do it Feb 15 19:56:14 if it's not returning any values, the hardware may in fact be broken. Feb 15 19:56:21 because it'll be inaccurate if I change the clock Feb 15 19:56:22 So.. what repo is the com.android.common package in? :p Feb 15 19:56:31 SimonVT, frameworks/base Feb 15 19:56:32 pfn, lov, got it now thanks Feb 15 19:56:52 SimonVT, hmm, or not Feb 15 19:56:55 pfn: I checked, isn't there Feb 15 19:57:06 SimonVT, frameworks/ex Feb 15 19:57:17 locate com/android/common Feb 15 19:57:43 aha Feb 15 19:58:21 Yay, thanks Feb 15 19:59:25 hello, what would be a good way to extract a substring from a string for which I only have a start marker, but for which I need the contents after that marker (ie. blabla\u00afblabla\u00cgblkabla, I want to extract \u00af and \u00cg and use the data "00af" and "00cg") Feb 15 20:00:00 "string".substring("string".indexOf("s")) Feb 15 20:00:02 basically I need to do a replacement in my string to get unicode working fron \u00ab to « Feb 15 20:00:32 "string".substring("string".indexOf("s") + "s".length() - 1) Feb 15 20:00:43 depending on what you need Feb 15 20:02:52 hi guy's i want to play a .caf file in android . How should i do it programatically ? Feb 15 20:03:52 If anybody got any idea , plez let me know Feb 15 20:05:04 google probably has an idea for you Feb 15 20:05:48 but i didn't found any.. Feb 15 20:06:59 then you gotta figure out how to do it yourself Feb 15 20:07:13 or somebody here's done it before, pfn Feb 15 20:07:16 that's why he's asking Feb 15 20:07:23 so if you don't know, maybe somebody else does........... Feb 15 20:08:44 if google doesn't know Feb 15 20:08:45 well i had tried and i am trying and will cotinue ....anyways thanks for ur suggestions Feb 15 20:08:46 no one here knows Feb 15 20:08:46 :p Feb 15 20:08:58 ok Feb 15 20:09:51 simple answer: figure out how to decode it into a format that is playable by android Feb 15 20:10:34 https://market.android.com/details?id=eu.chainfire.dslrcontroller <---- holy shit chainfire Feb 15 20:10:58 awesome Feb 15 20:12:00 that app is awesome Feb 15 20:12:02 can someone help me set up sdk and ndk on netbeans? Feb 15 20:12:26 ok will try this too. Thanks pfn. Feb 15 20:12:42 please? Feb 15 20:13:11 oh on linux (kubuntu) Feb 15 20:13:18 p_l, that is a /great/ application of the usb support in android Feb 15 20:13:49 can addview fails sometimes? Feb 15 20:16:57 pfn: some of the apps by those guys make my jaw fall to the ground everytime Feb 15 20:17:15 sure, but if it really "fails" logcat would probably show something Feb 15 20:17:25 what else has chainfire made? Feb 15 20:17:45 waltercool unless you're doing something silly like using a try/catch with an empty catch block Feb 15 20:18:05 or adding view to a linear layout that places it off screen Feb 15 20:20:33 pfn: dynamic OpenGL translator Feb 15 20:21:12 so an application supporting only nvidia GPU (in Tegra2) can run for example on SGX Feb 15 20:22:15 can someone help me setup android sdk and ndk on netbeans please? Feb 15 20:22:42 woops, didn't mean to spam the channel with that...meant to go elsewhere, sorry Feb 15 20:22:59 heh, where else would that go.... Feb 15 20:23:12 #devnull Feb 15 20:24:15 i was gonna ask the regular android channel...which i had just opened Feb 15 20:24:26 psh, they don't know anything! Feb 15 20:24:28 http://kenai.com/projects/nbandroid/ Feb 15 20:24:36 you using that oneadvent? Feb 15 20:25:01 wow, that project by chain fire looks really nice. Feb 15 20:25:04 not yet :) Feb 15 20:25:05 it sure does Feb 15 20:25:08 too bad Idon't have a dslr Feb 15 20:25:14 I have a bunch of nice canon L glass Feb 15 20:25:22 canon's software for apple sucks balls, maybe his is better :D Feb 15 20:25:24 * t0mless has canon DSLR Feb 15 20:25:26 well, not so much anymore, since I sold most of it off Feb 15 20:25:35 I only have a 17-35L and 70-200L left Feb 15 20:25:47 and a 50mm prime for everything in between Feb 15 20:26:09 So everyone would recommend eclipse helios vs Indigo right? Feb 15 20:26:20 oneadvent that page has install help as well Feb 15 20:26:25 Snwspeckle: IntelliJ ;) Feb 15 20:26:59 I am also likeing IntelliJ more than ecplise Feb 15 20:27:06 t0mless: is this for linux? Feb 15 20:27:17 I was considering IntelliJ, how well is IntelliJ with PHP? Feb 15 20:27:21 it's multiplatform. Feb 15 20:27:25 t0mless: still looking Feb 15 20:27:32 php... yeccch Feb 15 20:27:33 oneadvent I believe it's multiplatform Feb 15 20:27:54 i don't use IDEA at professional work, but i've seen people who are using it on daily basis. Feb 15 20:27:58 How is the interface vs eclipse? Android is there an actual Android plugin? Feb 15 20:27:59 and it looked great Feb 15 20:28:42 t0mless: do you by any chance use canon DPP on mac ? Feb 15 20:28:43 intellij is awesommme Feb 15 20:28:53 i stated using it a few weeks ago Feb 15 20:29:01 ^_^ indeed Feb 15 20:29:01 Don't have a mac g00s, so no :) Feb 15 20:29:22 mikedg_: ah, see. That's what I've been saying for quite some time :-) Feb 15 20:29:49 Which IntelliJ version is best? Feb 15 20:30:01 The newest oO Feb 15 20:30:02 newest Feb 15 20:30:05 Get the free Community Edition for android development Feb 15 20:30:24 Why would I want the ultimate edition? Feb 15 20:30:26 im contemplating buying a full license if i can get my job to spring for it Feb 15 20:30:34 Snwspeckle: if you do more than whats in the free version Feb 15 20:30:36 t0mless: is 6.9.1 ok for 7.1? Feb 15 20:30:38 the javascript support is amazing Feb 15 20:30:49 oneadvent I have no idea what you're talking about Feb 15 20:31:00 PHP doesn't work with the free version? Feb 15 20:31:17 nope, they do have heaper versions, phpstorm Feb 15 20:31:19 there is a chart of what's not supported in free version Feb 15 20:31:20 and webstorm Feb 15 20:31:21 mikedg_: I didn't need the ultimate edition, but it's so good I bought their AppCode and WebStorm products, they're great. Feb 15 20:31:29 t0mless i installed the "repo" and it only gives me the option of 6.9 and 6.9.1 but i am running 7.1 Feb 15 20:31:39 fpillet: yeah, im pretty sure i want either webstorm or this Feb 15 20:31:58 i just kinda feel, why spend have the money on webstorm when i can get a shitload more Feb 15 20:32:09 i just love the stupid open directory feature in webstorm Feb 15 20:32:09 right Feb 15 20:32:14 oneadvent I don't use kubuntu or netbeans, so you're on your own. I only know of the plugin's existance Feb 15 20:32:30 oneadvent you should just use intellij :-) Feb 15 20:32:44 So what is really different about Eclipse and IntelliJ, because Eclipse is officially supported for Android Feb 15 20:32:56 Snwspeckle: thats the big difference :) Feb 15 20:33:21 p_l downloading intelliJ now ^_^ Feb 15 20:33:42 Isn't Indigo causing severe crashes with Android though? It is for me at least.. Feb 15 20:33:45 IntelliJ's perforce intergration is better than eclipse Feb 15 20:33:48 does that incorporate ndk too? Feb 15 20:33:59 Webview doesn't allows https? Feb 15 20:34:08 never used ndk, but maybe some of these other guys have Feb 15 20:34:29 Snwspeckle i've beeh having some problems with indigo, i specifically remember us talking about this yesterday Feb 15 20:34:29 t0mless, seems like it's a problem with layout redimension... fill_parent it's not working fine... Feb 15 20:34:32 I do some native code but just use command line to compile Feb 15 20:34:35 been* Feb 15 20:34:43 Not tried with the IDE itself Feb 15 20:34:45 woah this wants to be paid for Feb 15 20:34:46 hello, I'm running into a strange problem: I have a string like this parsed from some html result: "unicode string\u00f1". Now when I do a String.replaceAll("\\\\", "\\") on it, I get and ArrayIndexOutOfBoundsException Feb 15 20:34:47 t0mless, I will check it and I told you Feb 15 20:35:02 oneadvent not the community edition. Feb 15 20:35:08 same probem when I try to do a substring on it Feb 15 20:35:08 I am just considering to switch to IntelliJ but I cannot afford a license, and I need to be able to develop in multiple languages in the same IDE. Feb 15 20:35:18 it's not getting pas that character Feb 15 20:36:01 * p_l doesn't really see a need for IDE-style program outside of Java, so... Feb 15 20:36:16 ^ pretty much Feb 15 20:36:31 Web development though? Feb 15 20:36:34 PHP + AJAX, CSS.. Feb 15 20:36:53 t0mless, seems fixed if I change fill_parent to wrap_content , why a fill_parent could be redimensioned? Feb 15 20:37:09 waltercool I have no idea what you're saying Feb 15 20:37:35 or even what you're doing and what you're expecting it to do Feb 15 20:38:44 Snwspeckle: I don't use PHP, and I have no need for IDEs in rest of my code... maybe will try what IntelliJ has for Ruby and Javascript one day Feb 15 20:38:54 I had a linearlayout filled with images, linearlayout with fill_parent on horizontal (linearlayout inside listview), but seems like some items of listview are with a "fill_parent" "not filling" correctly the space Feb 15 20:39:24 just gonna download the git Feb 15 20:39:30 Hmm, well I think I am going to stick to Eclipse for now, also how do I get the content assist to work so when I am typing, it automatically brings up suggestions> Feb 15 20:39:49 ctrl+space Feb 15 20:40:49 But how do I set it so it auto-pops up when I am typing, I prefer that method more Feb 15 20:41:48 Snwspeckle: IntelliJ by default will wait for you to stop typing, iirc. Feb 15 20:41:58 Which makes sense for more experienced programmers, I think Feb 15 20:42:18 I would prefer it when I am programming, I am a LOT younger than all of you :P Feb 15 20:42:37 Snwspeckle: for web development, you may want to try c9.io Feb 15 20:42:39 Snwspeckle: doubtful... Feb 15 20:42:44 it's pretty slick Feb 15 20:43:05 otoh, I *do* feel much older than my 22.8 years Feb 15 20:43:08 p_l: Intellij suggests stuff as you type Feb 15 20:43:21 SimonVT: It might be my settings, then :) Feb 15 20:43:33 p_l: yes you can configure the delay Feb 15 20:43:37 Pretty sure I didn't change any settings to get it to do that :p Feb 15 20:43:59 So what do I need to set in eclipse to suggest stuff for me as I type? Feb 15 20:44:12 yell at it? Feb 15 20:44:18 or I might simply not notice it. When I need it, I usually deliberately hit C-space Feb 15 20:44:23 I wish :P Eclipse doesn't have Siri yet :P Feb 15 20:44:42 I'm sure that if it did, you wouldn't get your command results the same day Feb 15 20:45:06 I would probably get locations on the best area to see an eclipse Feb 15 20:45:21 or a stacktrace caused by OOM Feb 15 20:46:08 p_l: in IntelliJ Preferences, IDE Settings > Editor > Code Completion Feb 15 20:46:23 What about eclipse fpillet? Feb 15 20:46:29 Dunno Feb 15 20:46:43 I don't use Eclipse. I tried, it sucked, it was slow, it was ugly. Feb 15 20:46:52 fpillet: I'm pretty happy with IntelliJ :) Feb 15 20:46:59 is it possibl to get around/catch the ClassNotFoundException for MapActivity on devices with no gmaps installed? Feb 15 20:47:09 i'll be happy if i can make a working copy of tvhguide Feb 15 20:47:14 that is my entire goal Feb 15 20:47:15 Still find SLIME nicer most of the time Feb 15 20:47:21 Ge0rG: catch (ClassNotFoundException e) ? Feb 15 20:47:37 SimonVT: except you can not catch it in the loader. Feb 15 20:47:52 so what should my auto activation delay be? I have it set to 200 ms atm.. Feb 15 20:47:59 Reflection? :p Feb 15 20:48:34 Mine is at 50 Feb 15 20:49:25 After like 10 seconds, it still wont show anything.. Feb 15 20:49:43 SimonVT: probably the only way to do it. I'm just not sure how Feb 15 20:50:37 Snwspeckle eclipse will only show suggestions automatically for certain things Feb 15 20:50:46 That's dumb :( Feb 15 20:50:57 sigh i hope this works Feb 15 20:51:01 if you want to look for methods to override you have to use ctrl+space Feb 15 20:51:09 Ge0rG, um... you're kinda screwed, register it in manifest, check to see if MapActivity will load prior to launching your activity Feb 15 20:51:21 so you have a StubActivity Feb 15 20:51:34 If I type public void for example, nothing gives suggestions, I have to hit CTRL + Space, how do I make it pop up automatically? Feb 15 20:51:53 yea, eclipse doesn't suggest for that Feb 15 20:51:54 pfn: my stub activity already references my own MapAct which is a MapActivity subclass... Feb 15 20:51:58 inside it, you do try { Class.forName("...MapActivity") } ...; if yes, startActivity(SomeWithMapsActivity) Feb 15 20:52:08 mew, yeah. Feb 15 20:52:09 eww Feb 15 20:52:14 otherwise, you startActivity(SomeWithoutMapsActivity) Feb 15 20:52:23 is cell broadcast a feature that can be turned on through an app or is it something that is required through the firmware of the handset? Feb 15 20:52:24 no elegant solution? Feb 15 20:52:29 Doesn't google maps have some intent to check if it's available? Feb 15 20:52:39 Ge0rG you can make two apks Feb 15 20:52:40 Ge0rG, how much more elegant can you expect Feb 15 20:52:41 wait so what devices dont have the google maps lib? Feb 15 20:52:46 one for Maps support, one for without Feb 15 20:52:47 SimonVT: market blocks your app from installation on non-gmaps devices Feb 15 20:52:54 canadiancow|work, any non-cts android device Feb 15 20:53:00 canadiancow|work: there is a bunch of lowcost tablets Feb 15 20:53:03 Oh Feb 15 20:53:08 So.. what's the issue? :p Feb 15 20:53:10 ok but if your app is distributed through the android market... Feb 15 20:53:13 Ge0rG, the alternative solution is multi-apk Feb 15 20:53:22 do all cts devices have the maps lib? Feb 15 20:53:24 pfn: alright Feb 15 20:53:31 still can't open it with that Feb 15 20:53:39 canadiancow|work, people that have market enabler, I suppose Feb 15 20:53:47 oneadvent still can't open what with what? Feb 15 20:53:52 but if you have market enabler, it seems unlikely to not also have google apis Feb 15 20:54:10 im actually about to hit this issue in my app Feb 15 20:54:15 i added a mapview Feb 15 20:54:17 is there a way to compile ABS to a jar and put that jar in the libs folder to build with ant? right now ive got it working if i put the ABS source in my libs/ folder Feb 15 20:54:19 well i want to build tvhguide: https://github.com/john-tornblom/TVHGuide Feb 15 20:54:19 Ge0rG, is this for your aprs thing? Feb 15 20:54:22 but id like the rest of the app to be usable if you dont have maps Feb 15 20:54:34 that has been my goal...can't seem to get anything to build it Feb 15 20:54:44 canadiancow|work, the best answer is to use a webview + js I bet ;-) Feb 15 20:54:45 smoak you can link it as a library project anywhere and still build with ant Feb 15 20:54:45 smoak: Just use android library projects? :F Feb 15 20:54:57 pfn its not as good for some stuff Feb 15 20:55:07 * pfn shrugs Feb 15 20:55:14 oneadvent build with command line Feb 15 20:55:16 mapactivity requires fragments Feb 15 20:55:17 it gives me 94 errors Feb 15 20:55:17 which is lame Feb 15 20:55:21 er Feb 15 20:55:22 doesn't work with Feb 15 20:55:40 maps api needs some serious tlc Feb 15 20:55:42 pfn: yes it is Feb 15 20:55:46 oneadvent using ndk-build? Feb 15 20:55:57 pfn: so far I'm still targeting sdk 8, so no fragments Feb 15 20:56:11 idk how to :( I downloaded it Feb 15 20:56:14 support api.. ? Feb 15 20:56:17 yeah, i guess if its working dont fix it :P was just hoping to have a small jar to check in instead of the whole source tree...oh well Feb 15 20:56:25 Ge0rG, there are fragments back to 1.6 Feb 15 20:56:43 yeah, but why bother with fragments if you aren't gonna be on a tablet... Feb 15 20:56:53 hh Feb 15 20:56:53 better Feb 15 20:56:58 * pfn doesn't see any real good reason for the most part Feb 15 20:57:00 pfn, i have a mapactivity working with fragments :) Feb 15 20:57:01 i use fragments heavily for my non-tablet app Feb 15 20:57:01 ABS <3 Feb 15 20:57:19 <3 fragments :p Feb 15 20:57:20 why bother using custom views? just draw everything on one big canvas Feb 15 20:57:22 fragments and a UI redesign are on my TODO written in big bold letters. unfortunately, -ENOTIME Feb 15 20:58:03 i mean i have gotten android sdk up and happy on eclipse and netbeans and intelliJ Feb 15 20:58:05 g00s, what does it buy you? Feb 15 20:58:20 but that's easy, getting this project to build...not so much, keeps saying R is missing Feb 15 20:58:29 pfn: reusable ui components Feb 15 20:58:38 you get reusable ui components in Views already Feb 15 20:58:54 sure if you feel like writing your own View objects all the time Feb 15 20:59:04 as opposed to writing your on fragment objects all the time? Feb 15 20:59:07 or overriding some a layout Feb 15 20:59:13 storkme, extend ViewGroup, inflate a layout, done Feb 15 20:59:19 yea Feb 15 20:59:26 oneadvent R will be generated when you build, or I know you can force intelliJ to regenerate R, or you can use ant to build it Feb 15 20:59:29 i agree with pfn on this, but im still on the pro-fragment side of the issue :P Feb 15 20:59:37 i agree, it allowed for better modularity. you don't need fragments all the time, but i thought in places where reusable components hooked into the lifecycle, it helped from reuse perspective Feb 15 20:59:47 well i tried the force in intelliJ but it still comes up with that error Feb 15 20:59:51 how do i build it with ant Feb 15 20:59:52 and then I could write some sort of api for managing the views I have loaded Feb 15 21:00:01 with what error? Feb 15 21:00:04 addView, removeView... Feb 15 21:00:04 .. or I could just use the ones android already wrote Feb 15 21:00:18 that there is no r$array.class Feb 15 21:00:25 pfn: storing views by tag etc, simulating lifecycle, handling loading/unloading from memory Feb 15 21:00:27 and no r$attr.class Feb 15 21:00:29 etc Feb 15 21:00:30 right click the project and say rebuild R... Feb 15 21:00:51 storkme, encapsulating instance state is useful... lifecycle... not so much Feb 15 21:00:54 that is what i did. it says regenerate Feb 15 21:00:59 but still same errors Feb 15 21:01:20 pfn: maybe on simple views Feb 15 21:01:45 probably because I haven't extended my own viewgroup in the last couple of years... Feb 15 21:01:53 maybe I misremember how painful it really is Feb 15 21:02:09 oneadvent I don't have any experience with ndk so not sure how to build it using intelliJ or command line, but if it's not even letting you rebuild R.java you're doing something wrong in intellij Feb 15 21:02:11 anyway, I use fragments because I want my layouts functional on both tablet and phone Feb 15 21:02:12 or have it setup wrong Feb 15 21:02:15 oh, i didn't know views had onsave/onrestore Feb 15 21:02:37 well it doesn't say no that it wont make it, just does it's thing then i try and build and it fails Feb 15 21:02:45 storkme, they don't Feb 15 21:02:49 just as a matter of style, is it better to have a separate project for my tests in eclipse (going with android's project wizard recommendation), or should it be a subdir? in a prior project, one of the devs made it a subdir and that seemed to work nicely w/soure control, etc. Feb 15 21:03:04 http://developer.android.com/reference/android/view/View.html#onRestoreInstanceState(android.os.Parcelable) ? Feb 15 21:03:07 pfn they do Feb 15 21:03:22 don't see one named in the classes Feb 15 21:03:42 there's some SaveEnabled stuff and dispatchSave... dunno if that's the same Feb 15 21:03:57 hmm, I guess there is an onSave Feb 15 21:04:02 dunno what it's since, though Feb 15 21:04:08 I wish javap could somehow come up with that info Feb 15 21:04:18 Since forever Feb 15 21:04:21 I should write a bisecting tool to figure out what api levels apis become available Feb 15 21:04:23 the site says api 1 Feb 15 21:04:25 The framework has always saved view state Feb 15 21:04:31 yeah, I'm not reading the website Feb 15 21:04:36 I usually use javap to look at classes Feb 15 21:05:08 [pfnguyen@galactica0 ~]$ androidp android.view.View | grep onSave protected android.os.Parcelable onSaveInstanceState(); Feb 15 21:05:11 i thought you had to restore state and stuff manually? Feb 15 21:05:18 well it shows an r.java under gen Feb 15 21:05:20 so it is there Feb 15 21:05:26 oneadvent, remove it, build again Feb 15 21:05:39 storkme, there's no retain instance like in fragments Feb 15 21:05:47 and man, retain instance causes me more problems than it solves... Feb 15 21:05:53 likewise Feb 15 21:06:08 the place where it's most useful in my irc client, it ends up being worthless Feb 15 21:06:44 pfn: removed the gen directory, it re-put it there but i have the same errors Feb 15 21:06:56 oneadvent, then you haven't defined any in xml yet Feb 15 21:07:10 (mostly because I allow switching themes) Feb 15 21:07:31 so switch theme => retain instance'd fragment ui resources are all mixed, old + new theme => all fucked up Feb 15 21:07:51 pfn: there's an eclipse plugin that will emit compile warnings if you use an api which is newer than your minSdk level Feb 15 21:08:02 oneadvent I can build that project fine... Feb 15 21:08:15 pfn: can you link me to what I should be doing? Feb 15 21:08:30 t0mless: can you zip it and send it to me? what did you use to build it? Feb 15 21:08:36 ant Feb 15 21:08:51 oneadvent, d.android.com Feb 15 21:09:05 lov, that would be nice, I don't use eclipse though... oh well Feb 15 21:09:18 has anyone here integrated their android app with pachube ? Feb 15 21:09:26 some day, I'll write a tool to bisect through all the android.jar's and find when apis are added and removed Feb 15 21:09:37 or iterate starting from android-1 Feb 15 21:10:04 It's commented in the classes isn't it Feb 15 21:10:14 SimonVT, using some programmatic, like javap Feb 15 21:10:28 or rather, tool-based Feb 15 21:10:40 make-your-own-tool-based :p Feb 15 21:11:04 i get build fail btw Feb 15 21:11:05 Also, wtf: http://pastebin.com/NKbnh8q8 Feb 15 21:11:06 yeah, that's what I said Feb 15 21:11:10 13:09 some day, I'll write a tool to bisect through all the android.jar's and find when apis are added and removed Feb 15 21:11:23 oneadvent you need to be more specific Feb 15 21:11:53 "/home/oneadvent/source/TVHGuide/build.xml:37: Cannot find /home/oneadvent/source/TVHGuide/${sdk.dir}/tools/ant/pre_setup.xml imported from /home/oneadvent/source/TVHGuide/build.xml" Feb 15 21:12:20 oneadvent, android update project -p . Feb 15 21:12:53 pfn: i'm sorry i do not understand Feb 15 21:13:18 run that command in the project root dir Feb 15 21:13:23 delete build.xml first Feb 15 21:13:41 ok Feb 15 21:14:49 Error: The project either has no target set or the target is invalid. Feb 15 21:14:52 that is what i get Feb 15 21:15:18 add -t android-15 Feb 15 21:15:34 mymymy. its really not that easy to get the name of the currently set value of a ListPreference Feb 15 21:16:06 Hi, I often see code snippets where people have a member for the LayoutInflater, why would you want to do that (storing it in a member) and using that instead of just calling View.inflate() directly? Feb 15 21:16:23 Error: Target id 'android-15' is not valid. Use 'android list targets' to get the target ids. Feb 15 21:16:29 sorry i'm getting so many errors :( Feb 15 21:16:44 .. download api15 in the sdk Feb 15 21:19:31 Hello. Does anyone know how to move a view to the right of the parent view programatically? There is little documentation on that. Feb 15 21:19:39 SimonVT still workin on it Feb 15 21:20:13 Matt_von_Mises: via layoutparams (code equivelant for layout_ xml tags) Feb 15 21:21:28 SimonVT, I've only seen that done for height and width. Feb 15 21:22:35 well i installed android 4.0.4 Feb 15 21:22:38 Anything layout_ is done with layoutparams in code Feb 15 21:22:49 woot that did that Feb 15 21:23:41 yea! i got a build release Feb 15 21:24:58 I can only find LayoutParams(width, height) Feb 15 21:25:16 Can't Webview show https? Feb 15 21:25:35 Matt_von_Mises: Check the docs for YourParentViewGroup.LayoutParams Feb 15 21:31:27 but it doesn't work on my phone :( Feb 15 21:34:29 oneadvent, then specify a version that does work on your phone Feb 15 21:37:08 yea i'm working on reproducing the success right now Feb 15 21:38:12 seems i have to run the project in intellij first or i can't build it Feb 15 21:40:40 can't seem to duplicate it Feb 15 21:43:43 that one I sent you doesn't work? Feb 15 21:44:52 no, but i am on 2.3.3 Feb 15 21:45:02 and i think i figured out why i can't duplicate...stupid mistake Feb 15 21:45:26 doesn't really matter what you're on as long as the minSdk is set low enough Feb 15 21:45:43 hmm idk it didn't work though. Feb 15 21:45:55 just said install unsuccessful Feb 15 21:45:56 what's logcat say? Feb 15 21:46:33 how do i view logs on phone? Feb 15 21:46:45 adb logcat Feb 15 21:47:15 ah well i do not have a cord to go to pc right now...i've been just emailin the apk to myself and grabbing it that way Feb 15 21:47:24 hmmm Feb 15 21:47:37 is your phone rooted? Feb 15 21:47:42 yea Feb 15 21:47:55 you have a shell app? Feb 15 21:48:02 yes Feb 15 21:49:10 SimonVT: Thanks, figured I could use android.widget.FrameLayout.LayoutParams with the FrameLayout. It has a gravity field. Feb 15 21:49:22 exactly :) Feb 15 21:49:26 hmm... trying to remember shell commands to set the adbd to listening in tcpip mode Feb 15 21:49:47 Just download adb wireless Feb 15 21:50:02 i'm just gonna email terminal output Feb 15 21:50:05 gimme a sec Feb 15 21:50:34 setprop service.adb.tcp.port 5555 Feb 15 21:50:37 stop adbd Feb 15 21:50:41 start adbd Feb 15 21:50:52 am i doing that on my phone? Feb 15 21:50:58 yea Feb 15 21:51:01 as root Feb 15 21:51:09 if you don't have # prompt type su first Feb 15 21:51:16 my app has a library dependency on viewpagerindicator but when i build and install my app with ant and open the app i get android.view.InflateException: Binary XML file line #7: Error inflating class com.viewpagerindicator.TitlePageIndicator Feb 15 21:51:51 then on your desktop do adb connect :5555 Feb 15 21:53:20 oneadvent are you getting the issue when trying to install your "release build" on your device after installing that one I sent you? Feb 15 21:54:01 i get that with the one you sent as well as the ones i made Feb 15 21:54:33 and you don't already have a version of the app installed? Feb 15 21:54:51 i do have a version installed now Feb 15 21:54:57 that would be why Feb 15 21:55:04 where did you get that version? Feb 15 21:55:14 i got it from the dev about a month ago Feb 15 21:55:25 but i wanted to change something about it Feb 15 21:55:29 signed with different keys Feb 15 21:55:36 so it won't let you re-install Feb 15 21:55:45 howcome URLUtils.isURLValid returns 'true' for a url like 'asdasdhttp://test' ? Feb 15 21:55:47 is there a java function that allows me to lowercase a string? Feb 15 21:55:52 you have to compeltely uninstall and reinstall the new apk Feb 15 21:56:10 oh i see Feb 15 21:56:28 though with your experience, I'd be wary about changing ANYTHING Feb 15 21:56:34 as you'll probably break it Feb 15 21:56:53 gemidjy: because that URL *is* valid Feb 15 21:57:23 gemidjy: for service asdasdhttp with host 'test' ;) Feb 15 21:57:33 that is a nifty trick with the logcat btw Feb 15 21:58:13 wifi adb is win. Feb 15 21:58:57 yea uninstalling and reinstalling worked Feb 15 21:59:04 that is freaking cool still with the log cat Feb 15 21:59:05 i love it Feb 15 21:59:49 you can uninstall/install stuff with adb too Feb 15 22:00:08 Akuma: I'm pretty sure that String has a toLower method or something Feb 15 22:00:14 foo = foo.toLower(); Feb 15 22:00:22 (don't forget that Strings are immutable) Feb 15 22:00:22 yea i have used adb lots of times, just never over wifi Feb 15 22:00:25 lov: yea, I found it Feb 15 22:00:27 thanks :) Feb 15 22:01:18 p_l: idea on how to validate only "domain dot something" domains? Feb 15 22:01:49 p_l: might be, http:// or https:// {domain.com} Feb 15 22:02:17 use RegEx? Feb 15 22:02:41 t0mless: wanted to use Android mechanism for that :) Feb 15 22:02:56 hmm well installed but doesnt' work right...could be cause it is debug? i'll try a release candiate. he uses ndk for this, do i need to do something special for that/ Feb 15 22:03:03 lov the startForegrant has to be called by the inner thread ? Feb 15 22:03:14 or everywhere inside the Service code ? Feb 15 22:03:16 aLeSD: it shouldn't matter what thread calls it Feb 15 22:03:21 oneadvent check logcat as to why it's not working Feb 15 22:03:43 oneadvent and using the debug version vs a release build would be the same Feb 15 22:03:51 oneadvent: look at adb logcat, see if anything shows out. Feb 15 22:04:03 unless you mean you're using debug branch of code Feb 15 22:04:16 but from that github site you had before, there was only one branch Feb 15 22:04:21 well i'm also clearing app memory Feb 15 22:04:56 gemidjy: there should be some clas of URLs, that lets you get specific components out... then check the host with regex Feb 15 22:05:07 mind you, 'test' is a perfectly valid internet host Feb 15 22:05:44 pretty much the only hostname I can honestly expect to *not* work is '.' (that is, just a single dot) Feb 15 22:06:08 ... Feb 15 22:06:20 it exists and works >_> (in a way) Feb 15 22:06:47 Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/me/tvhguide/TVHPlayer; Feb 15 22:06:51 does a looper doing nothing use CPU ? Feb 15 22:06:53 that looks like the error Feb 15 22:07:21 aLeSD: not raelly Feb 15 22:07:22 *really Feb 15 22:07:24 I think it's stopped on a semaphore Feb 15 22:07:30 Hey Feb 15 22:07:40 Im wondering if any of you guys can help me out with something Feb 15 22:07:41 oneadvent: well, that's caused by the error Feb 15 22:07:50 oneadvent: look back a little futher, see why TVHPlayer couldn't be created. Feb 15 22:07:59 (are you using APIs that don't exist yet for your phone?) Feb 15 22:08:02 I've got a gird view tied to an ImageAdapter, and when I rotate the phone the images displayed in the gridView go all out of order Feb 15 22:08:07 lov I am thinking to start my thread on the SErvice creating ... then register sensor on the handler later Feb 15 22:08:19 so in the meanwhile the thread do nothing Feb 15 22:08:19 aLeSD: sure whatever good luck Feb 15 22:08:19 Even though the resource ID I am using for the image is the correct ID # Feb 15 22:08:24 lol Feb 15 22:08:43 Starting: Intent { cmp=org.me.tvhguide/.PlaybackActivity (has extras) } from pid 25883 Feb 15 22:08:46 that is one line up Feb 15 22:08:54 Displayed org.me.tvhguide/.ProgrammeListActivity: +354ms Feb 15 22:08:57 that is one more up Feb 15 22:09:13 the apps idea is to display channel information then you click play and it plays it Feb 15 22:09:15 p_l thx :) Feb 15 22:09:17 might be a ndk biuld issue Feb 15 22:09:34 * aLeSD wants work in google Feb 15 22:09:51 oneadvent: that's not in logcat. Feb 15 22:09:52 well i know it requires ndk Feb 15 22:09:53 look in logcat. Feb 15 22:09:59 lov: it is so Feb 15 22:10:21 lov: i was skipping the first part: 02-15 16:06:06.169 1417 1579 I ActivityManager: Feb 15 22:10:23 oneadvent: pastebin your logs, please, especially parts that mention TVHPlayer Feb 15 22:10:27 because i didn't figure it would matter Feb 15 22:10:31 ok will do :) Feb 15 22:10:45 UnsatisfiedLinkError was caused by something else Feb 15 22:10:56 and that something else is 99% of the time an api that doesn't exist which you're trying to reference in that class Feb 15 22:11:05 http://paste2.org/p/1905403 Feb 15 22:11:11 Chainfire: I was tempted sometimes to disassemble some of it, to check if it could be usable to add OES_EGL_image extension to binary drivers ;) Feb 15 22:11:11 that is the log Feb 15 22:11:24 i killed off the log right after force close so it is almost at the bottom Feb 15 22:11:27 people figuring stuff doesn't matter makes it so hard to help... Feb 15 22:11:32 Chainfire: did you do all of the graphics & artwork yourself ? Feb 15 22:11:34 might be some others in there but that was the one from the release canidate Feb 15 22:11:41 oneadvent: look at the stacktrace Feb 15 22:11:46 in particular, go to the bottom where it says "Caused by" Feb 15 22:11:55 Caused by: java.lang.UnsatisfiedLinkError: Couldn't load tvhplayer: findLibrary returned null Feb 15 22:12:03 p_l that sounds familiar Feb 15 22:12:09 Caused by: java.lang.UnsatisfiedLinkError: Couldn't load tvhplayer: findLibrary returned null Feb 15 22:12:23 g00s no... I usually have other people do the graphics/artwork Feb 15 22:12:30 of course, motoblur is just SHITTING all over your logs Feb 15 22:12:34 Chainfire: yeah, drivers are big stopper in gettig 2.3 on my phone Feb 15 22:12:34 so it's hard to read what's actually happening Feb 15 22:12:37 I take an hour just drawing a stickfigure Feb 15 22:12:42 lol i know i know, but i like a few of the things Feb 15 22:12:50 or whoever made the RESTMusicService and HTSPConnection tags Feb 15 22:13:07 i think those are subsonic Feb 15 22:13:20 i'm not playing anything right now Feb 15 22:13:30 * Chainfire goes on vacation, waves. Feb 15 22:14:04 cya Feb 15 22:14:12 yeah. Feb 15 22:14:14 doesn't matter Feb 15 22:14:17 motoblur SHITS on your logs. Feb 15 22:14:24 lol :) Feb 15 22:14:26 adb logcat dalvikvm:V *:F Feb 15 22:14:33 try that, see if you notice anything relevant Feb 15 22:14:35 well i killed it off right at the right ime Feb 15 22:14:39 Chainfire: which camera are you taking on vacation ? Feb 15 22:14:42 in particular dalvikvm not being able to load the library for some reason Feb 15 22:16:20 http://paste2.org/p/1905409 Feb 15 22:16:24 that is the log Feb 15 22:16:31 again killed it almost directly after force close Feb 15 22:16:40 but it looks like the same stuff from before Feb 15 22:17:04 Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lorg/me/tvhguide/TVHPlayer; Feb 15 22:17:10 line 642 Feb 15 22:17:33 and 643 are relevant to this attempt 644-650 aren't Feb 15 22:17:37 (i guess) Feb 15 22:18:11 Humm. Feb 15 22:18:18 It doesn't show anything at all about trying to load your lib Feb 15 22:18:25 attach the debugger, set a breakpoint on where you call loadlibrary Feb 15 22:18:29 double check the string that you're passing in Feb 15 22:18:37 also, double check that you're actually packaging the lib Feb 15 22:18:48 :( Feb 15 22:18:53 i do not know how to do any of that Feb 15 22:19:04 Are you able to change the look of an "edit text". The one I have is simply a line with the edges slight raised (looks like a box without the top half)? Feb 15 22:19:16 looking for something like http://www.bomgar.com/docs/content/mcgeneratedpopups/popup_1670383158.htm Feb 15 22:19:16 oneadvent: you're using eclise? Feb 15 22:19:30 no i have it though, but i can never get them to build in ide's Feb 15 22:19:34 oh hmm Feb 15 22:19:42 I don't know how to get the debugger to attach and run from the command line, I'm sorry Feb 15 22:20:01 Emit a log statement at that point with the String you're passing, I guess Feb 15 22:20:09 also unzip the apk and verify that it has the .so you want in there Feb 15 22:21:14 hmmm Feb 15 22:21:16 Eclipse, y u no refresh when I said refresh :( Feb 15 22:21:19 Yea, probably something to do with ndk-build Feb 15 22:21:29 yeah, in fact Feb 15 22:21:37 just go to your libs dir, verify that the .so files are where they ought to e Feb 15 22:21:45 *ought to be Feb 15 22:22:09 also, if the libs are incompatible (i.e. you're running an x86 device, you've built arm libs) that might cause problems. Feb 15 22:22:22 hmm lemme look there Feb 15 22:22:24 Are there any custom gui builders? dont like the look of the edit text - I need a box Feb 15 22:22:33 libs is empty Feb 15 22:22:41 yeah, that's the root problem Feb 15 22:22:54 i tried to run ndk build but i get Android NDK: Please define the NDK_PROJECT_PATH variable to point to it. Feb 15 22:23:01 .... Feb 15 22:23:02 >_< Feb 15 22:23:05 fixing to google it Feb 15 22:23:08 well there's your problem hoss. Feb 15 22:23:15 hoss Feb 15 22:23:17 where u from Feb 15 22:23:22 the internet Feb 15 22:23:23 man, you need to read the howto on using the ndk... Feb 15 22:23:23 u are in a lower us state Feb 15 22:23:24 population yuo Feb 15 22:23:29 that is a southern thing Feb 15 22:23:31 shut your mouth. Feb 15 22:23:38 Bonanza = win. Feb 15 22:23:55 i never heard it till i moved to florida Feb 15 22:23:56 Hoss was a character on Bonanza western that was actually based where I'm from, in california/nevada Feb 15 22:24:02 oh yea Feb 15 22:24:51 anyhoo, ndk-build is just a shell script. Take a look at what it is and what it expects. Feb 15 22:25:02 yea i'm lookin Feb 15 22:26:22 :) Feb 15 22:26:27 i think i'm making progress Feb 15 22:26:37 i got ndk to run Feb 15 22:26:59 with warnings Feb 15 22:29:27 i used to get a lot of warnings on other software he wrote...something about he uses a different version of gcc than i do Feb 15 22:31:41 anyone ever gone to the android dev office hour hangout before? Feb 15 22:32:32 canadiancow|work: I've spectated on several Feb 15 22:32:52 whats the best way to get a question answered? Feb 15 22:33:01 live Feb 15 22:33:02 i typed mine into the chat but it seems to be getting ignored in favour of moderator Feb 15 22:33:06 yeah Feb 15 22:33:13 so i should just interrupt everyone? :P Feb 15 22:33:16 oh wiat Feb 15 22:33:17 heres mine Feb 15 22:33:18 :D Feb 15 22:33:18 hrm... I can't even get the ndk-build to work, just keeps saying C:\Android\android-ndk\prebuilt\windows\bin\make.exe: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x420942) Feb 15 22:33:20 moderator ~= live >>>>>>>>>>>>>>>>>>>>>>>>> typed chat Feb 15 22:33:27 canadiancow|work: they'll ask you to speak :) Feb 15 22:34:25 how can I spectate on the hangout? Feb 15 22:34:54 hmm i'm on linux...my problem was not running from correct directory Feb 15 22:35:08 i would assume you need gcc install (or whatever the windows equivilant is) Feb 15 22:35:23 oooo I don't think I reinstalled cygwin Feb 15 22:35:44 ah that'll do it Feb 15 22:35:50 meh im satisified with the answer Feb 15 22:36:47 wraithguard01, i need a demo project for that Feb 15 22:37:12 JakeWharton: Oh, sorry, I figured it out. I made a bad assumption, and made an ass out of me. Feb 15 22:37:18 haha Feb 15 22:37:32 I assumed the menu was being drawn behind it, in reality I was eating the menu keypress Feb 15 22:37:35 i should come up with a list of real quesitons for one of these hangouts Feb 15 22:37:36 not a problem. i do it probably 10 times as frequently Feb 15 22:37:52 Does ABS handle drawing that menu, btw? Feb 15 22:38:05 which? Feb 15 22:38:17 if you force the overflow action item it draws a custom overflow menu Feb 15 22:38:25 otherwise it proxies to the native options menu Feb 15 22:38:29 and on 4.0+ everything is native Feb 15 22:38:37 on a 2.2 phone Feb 15 22:39:01 by default it goes to the normal options menu Feb 15 22:39:14 about the hangout, do all the answers get published on moderator too - or do i have to watch the video ? Feb 15 22:39:17 you can force an on-screen overflow item using a theme attribute (or the .ForceOverflow) themes Feb 15 22:39:19 oh. ok. well, that's neither here nor there anymore Feb 15 22:39:32 errm, i meant office hours Feb 15 22:39:39 dang back to install errors Feb 15 22:45:02 heh, looks like moderator is getting overloaded :) Feb 15 22:45:04 i'm trying to install it but i get an install parse failed no certs Feb 15 22:45:30 but i uninstalled the old one Feb 15 22:45:41 y u no sign your apk Feb 15 22:45:50 idk how to sign an apk Feb 15 22:45:55 lol BRAND new to this Feb 15 22:45:58 you need a key Feb 15 22:46:10 i am the keymaster Feb 15 22:46:10 look at d.android.com Feb 15 22:46:18 i'm there a loookin Feb 15 22:46:20 I am the gatekeeper. Feb 15 22:46:39 wow, gay keymaster luvvin' comin' up Feb 15 22:46:41 oh i can just use debug and no one cares Feb 15 22:46:42 g00s i think you need to watch the vid Feb 15 22:46:48 cause not all quesitons are asked on mod Feb 15 22:46:53 oh Feb 15 22:47:05 oneadvent correct, though the debug key does expire sooner Feb 15 22:47:25 well i want to make a change to it anyway. Feb 15 22:47:28 i have some video issues Feb 15 22:47:34 so if i can build it, i can change it Feb 15 22:47:37 it would be great if afterwards there was a list of questions asked, and their answers to read - don't really want to watch the video to see the answer from 1 or 2 questions i have no idea if they were answered anyhow Feb 15 22:47:41 and then i'll figure out that signing stuff Feb 15 22:48:12 Failure [INSTALL_FAILED_ALREADY_EXISTS] Feb 15 22:48:13 :( Feb 15 22:48:42 again Feb 15 22:48:44 different key Feb 15 22:48:47 have to uninstall Feb 15 22:48:54 i thought i did Feb 15 22:48:56 lemme look Feb 15 22:48:57 your debug key is different than my debug key Feb 15 22:49:08 adb uninstall org.me.tvhguide Feb 15 22:49:12 well look at that just hiding Feb 15 22:49:25 i found it Feb 15 22:49:30 just hiding there under applications Feb 15 22:50:31 g00s, yeah, I hate video/podcasts about technical stuff... transcripts > * Feb 15 22:50:49 wohoo! it built and ran Feb 15 22:50:52 finallly! Feb 15 22:51:00 good god i dread changing the thing i want to Feb 15 22:51:13 + i need to write down that cool wifi adb thing Feb 15 22:51:14 what is it you're trying to change? Feb 15 22:51:57 well when the video comes up he tries to keep aspect ratio instead of filling screen. which is cool, however it seems like it does it twice. So i want to change it to always fill the screen Feb 15 22:52:05 cause right now they are scrunched together Feb 15 22:52:45 i'd rather fill screen and be distorted that way than it be squooshed Feb 15 22:52:47 i'm trying to build a database singleton class and i have a thread class that performs updates/inserts defined as an inner class of the singleton, i can't create an instance: "not an enclosing class". i assume there's some better way to do this that i don't understand. Feb 15 22:53:06 by can't create an instance, i mean i can't instantiate the thread. Feb 15 22:53:27 i learned a lot today, and for that i thank you all Feb 15 22:53:44 moonlightcheese: why not use a ContentProvider? Feb 15 22:54:10 moonlightcheese, no, it's because you cannot instantiate an inner class without the outer class, unless the inner is static Feb 15 22:54:41 pfn: it makes sense, i just need to find a way around it. Feb 15 22:55:18 moonlightcheese, well, if you have an instance of the outer class, then you do new outer.Inner(...) Feb 15 22:55:20 a static thread can't be instantiated and probably wouldn't do what i'm after. Feb 15 22:55:24 moonlightcheese, otherwise, make Inner static Feb 15 22:55:54 * pfn shrugs Feb 15 22:56:00 otherwise, your design is wrong Feb 15 22:56:06 i guess it kinda is. Feb 15 22:56:19 i wish i had more experience with Java... Feb 15 22:56:33 * pfn still needs to find a reason to implement a content provider... Feb 15 22:56:54 speaking of conttent providers Feb 15 22:56:55 I guess I need to write an app that'll share data with another process, or something Feb 15 22:57:18 if I want to use a action provider in the action bar Feb 15 22:57:26 does it have to be backed by a content provider? Feb 15 22:57:52 or can I create the action provider class and have it access my db direct? Feb 15 22:58:24 * pfn wants a good app for reading ref docs on the phone... Feb 15 22:58:34 d.android.com renders like crap in the honeycomb browser Feb 15 22:58:56 action provider is just a callback mechanism Feb 15 23:00:00 however you back it is up to you Feb 15 23:00:17 the share action provider is quite complex but there is a simple example in the Api docs which just shoots off an intent to the settings activity Feb 15 23:00:55 hrm Feb 15 23:01:10 and ABS4.0 supports ActionProviders back to 2.1, yes JakeWharton? Feb 15 23:02:11 cool. i just created a method in the singleton that spawns the threads when it's called. so i can just grab the singleton instance and call that method. no statics necessary. Feb 15 23:03:04 yezzir Feb 15 23:03:04 also, can an ActionProvider be in a sub menu? Feb 15 23:03:11 yes Feb 15 23:03:15 Bitchin Feb 15 23:03:20 that's part of the API docs example Feb 15 23:03:23 registered Feb 15 23:03:27 YES ^^ Feb 15 23:03:30 LIKE A BOSS Feb 15 23:03:39 lol Feb 15 23:04:00 time to get ABS4.0 RC1 I guess Feb 15 23:04:16 I can't remember if I got the last one from git or just zip file... Feb 15 23:04:26 *choir of angels* Feb 15 23:04:48 the support-lib jar didn't change so just pull from 4.0-wip if you did git Feb 15 23:05:07 I think I just have 3.x from a zip Feb 15 23:05:18 if i change the text of a textview, how can i "refresh" the current activity which has the textview in its layout? Feb 15 23:05:18 is that going to fuck up my current setup in intelliJ? Feb 15 23:05:37 if you change the text it will automatically invalidate itself and cause a redraw Feb 15 23:05:43 uh Feb 15 23:05:55 no it does not... Feb 15 23:06:09 because 4.0 doesn't include support lib source, it has it as a jar right? Feb 15 23:06:14 t0mless, yes Feb 15 23:06:22 just update to rc1, add .jar, change some imports Feb 15 23:06:25 should be good Feb 15 23:06:30 blarg Feb 15 23:07:27 should I add the lib to the ABS libs/ or to my project libs/ ? Feb 15 23:07:41 project Feb 15 23:07:43 easier to update later Feb 15 23:07:48 i start a subactivity and in "onActivityResult" the text of the textview is changed, but does not appear Feb 15 23:08:44 ... Feb 15 23:09:02 how do you know the text has changed? Feb 15 23:09:02 chris_cross: pastebin? Feb 15 23:09:38 chris_cross: I guarantee you that the internal text of the TextView is what's displayed Feb 15 23:09:41 i do it with aTextView.setText("newText") Feb 15 23:09:45 something is probably setting it back Feb 15 23:10:00 hm ok Feb 15 23:10:18 the textview is in a xml file Feb 15 23:10:25 or maybe you're setting the text on a different textview than the one you're looking at Feb 15 23:11:13 more likely, your activity's lifecycle is messed up Feb 15 23:11:24 and you're setting it to some kind of default text in onResume() or something Feb 15 23:11:41 is there a built in drawable for the light blue background that's shown in gmail etc when you select a list item? Feb 15 23:12:56 JakeWharton what does the export checkmark indicate in the IntelliJ Dependencies tab? Feb 15 23:13:14 not sure Feb 15 23:13:23 haven't used intellij for a few months unfortunately Feb 15 23:13:29 not knowing it well enough was slowing me down Feb 15 23:15:22 what have you been using if no intellij? Feb 15 23:15:42 sublime text + eclipse Feb 15 23:15:43 any of the other IDEs? Feb 15 23:16:03 with sublime + eclipse? Feb 15 23:16:06 er Feb 15 23:16:07 why both Feb 15 23:16:15 because eclipse is slow and crappy Feb 15 23:16:28 and sublime text lets me do things a real editor should Feb 15 23:16:33 which eclipse is not Feb 15 23:16:40 right, if I have a text editor I like (which I do) then I forgo the IDE, which I do as well Feb 15 23:16:43 why use both Feb 15 23:16:58 i use eclipse for refactoring and live error-highlighting Feb 15 23:17:05 and running the apps on AVDs Feb 15 23:17:24 hrm Feb 15 23:17:39 [aapt] H:\Android\P4Android\ActionBarSherlock\library\res\values-v14\abs__themes.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'. Feb 15 23:17:49 compile with 4.0 Feb 15 23:17:58 I thought I was Feb 15 23:18:10 t0mless, @android:style/Theme Feb 15 23:18:23 oh Feb 15 23:18:27 nevermind Feb 15 23:18:45 JakeWharton the project.properties included in your zip file puts 13 Feb 15 23:18:47 -_- Feb 15 23:19:14 noes Feb 15 23:19:24 https://github.com/JakeWharton/ActionBarSherlock/blob/4.0-wip/library/project.properties Feb 15 23:19:39 hrm Feb 15 23:19:44 it must not have overwritten for some reason Feb 15 23:22:09 which imports do I need to fix? Feb 15 23:22:16 the textview and its text is defined in xml, can i change the text of this textview in my activity (for example by pushing a button)? Feb 15 23:22:48 anything in android.support.v4.* that's not part of the official support lib is now in com.actionbarsherlock.* Feb 15 23:23:35 ahh Feb 15 23:23:37 so like ActionBar Feb 15 23:23:52 yep Feb 15 23:23:56 menu things Feb 15 23:24:14 chris_cross: textview1.SetText("Your Text"); Feb 15 23:24:39 burmat: i did this, but the old text was displayed Feb 15 23:25:03 chris_cross: You are using a button to change this text? Feb 15 23:25:51 no Feb 15 23:26:15 its done in "onActivityResult(requestCode, resultCode, data)" Feb 15 23:26:45 cause i'm using a subactivity Feb 15 23:26:55 chris_cross: is it generating an error or is it just not working Feb 15 23:28:09 just not working. ecplise doesnt show any error Feb 15 23:28:29 you either have a reference to the wrong text view, or the text is being reset after you set it Feb 15 23:28:46 where are you keeping a reference to the text view? Feb 15 23:28:52 in a static variable? Feb 15 23:29:09 I was going to say, possibly it is being changed without you seeing it Feb 15 23:29:37 no, a public variable Feb 15 23:30:18 can you pastebin your code please Feb 15 23:30:33 the entire first activity's class Feb 15 23:30:45 what about the preference stuff? Feb 15 23:30:48 or at the very least, the property declarations, the oncreate and the onactivityresult Feb 15 23:30:48 did that change? Feb 15 23:30:55 SherlockPreferenceActivity Feb 15 23:30:59 no fragment/loader support in it Feb 15 23:31:17 Yea, but the one i'm using is in android.support.v4.app Feb 15 23:31:28 com.actionbarsherlock.app Feb 15 23:31:41 must need new pref plugin -_- Feb 15 23:31:48 it's built in Feb 15 23:31:51 to the core Feb 15 23:31:53 oh Feb 15 23:31:57 so I need to delete the old one Feb 15 23:32:21 *to The Core, staring Hilary Swank Feb 15 23:32:36 public class StartseiteActivity extends Activity { Feb 15 23:32:36 /** Called when the activity is first created. */ Feb 15 23:32:36 public ArrayList weckSchemaList = new ArrayList(); Feb 15 23:32:36 final int resultCode = 1; Feb 15 23:32:37 @Override Feb 15 23:32:37 public void onCreate(Bundle savedInstanceState) { Feb 15 23:32:38 super.onCreate(savedInstanceState); Feb 15 23:32:38 setContentView(R.layout.startseite_anzeigen); Feb 15 23:32:39 setTitle(R.string.startseiteanzeigen_titel); Feb 15 23:32:39 Button buttonNeuesSchema = (Button) findViewById(R.id.button_neuesschema); Feb 15 23:32:41 PASTEBIN Feb 15 23:32:43 DOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOM Feb 15 23:32:59 let us remember chris_cross Feb 15 23:32:59 Please use a pastebin :> Feb 15 23:33:09 for he died valiently Feb 15 23:33:15 -e+a Feb 15 23:33:18 ups :D Feb 15 23:33:38 he wasn't with us long, but in the time we had he touched the hearts of us all Feb 15 23:34:13 we can only hope he'll be enjoying eternity in the giant pastebin in the sky Feb 15 23:34:28 JakeWharton: HAHAHAHA Feb 15 23:34:47 he'll make ya jump jump Feb 15 23:35:50 stop laughing at the noob ^^ Feb 15 23:36:25 NEVAR Feb 15 23:37:01 http://dl.dropbox.com/u/3573503/dienewbie.jpg Feb 15 23:37:53 hrm... now the indeterminite progress bar in the AB isn't going away when it's supposed to Feb 15 23:39:05 JakeWharton: lmao Feb 15 23:39:11 ahh, need to use setSupportIndeterminite.... Feb 15 23:39:24 migration guide will come soon Feb 15 23:39:46 i'm trying to fix a bug in the compatibility menu/action bar handling Feb 15 23:40:01 edge cases, but rears its head often when using fragments since they invalidate the menu very frequently Feb 15 23:40:17 which makes it not an edge case by definition i guess Feb 15 23:40:24 ok, i got a link ^^ Feb 15 23:40:47 http://pastebin.com/cPhaj5yz Feb 15 23:41:15 was this the right way? Feb 15 23:41:18 so if I have ab menu items added from a fragment, it makes it explode? Feb 15 23:41:21 Declare you textview in onCreate Feb 15 23:41:35 t0mless, only if you're doing a lot of shuffling (e.g., ViewPager) Feb 15 23:41:36 reference* your textview in onCreate Feb 15 23:41:55 everyday i'm shuffling... Feb 15 23:42:00 Declare: Public Textview t; Feb 15 23:42:17 chris_cross: yes, that is how to pastebin. Feb 15 23:42:23 onCreate: t = (TextView)findViewById(R.....) Feb 15 23:42:37 the way he's doing it should work... Feb 15 23:42:44 onActivity: t.setText("..."); Feb 15 23:42:58 ok, i try Feb 15 23:42:59 as long as that id is in his layout Feb 15 23:43:33 it would NPE if it wasn't Feb 15 23:43:44 good point Feb 15 23:45:17 http://pastebin.com/gqjFzXqJ Feb 15 23:45:38 Not working? Feb 15 23:45:39 need MOAR TEA Feb 15 23:45:39 but doesn't work yet Feb 15 23:45:44 JakeWharton did you not release an RC? Feb 15 23:45:56 social media Feb 15 23:45:57 use it Feb 15 23:46:06 c'mon Feb 15 23:46:08 C'MON Feb 15 23:46:11 lolz Feb 15 23:46:11 i just saw you on G+ Feb 15 23:46:14 i stalked you Feb 15 23:46:21 you were in the hangout Feb 15 23:46:30 i'm in ur pcs Feb 15 23:46:36 you must not be in the "following" circle Feb 15 23:46:37 watchin ur browser Feb 15 23:46:54 just the "Outcasts" circle Feb 15 23:47:03 me JakeWharton? Feb 15 23:47:24 http://beta.abs.io/ Feb 15 23:47:27 no, not you Feb 15 23:47:33 ... Feb 15 23:47:56 chris_cross: and your sure your "if" statment is being satisfied correct? Feb 15 23:48:07 i was in the hangout Feb 15 23:48:39 yeah i saw you Feb 15 23:48:45 i was going to join but i have no camera nor mic Feb 15 23:48:56 if (requestCode == resultCode) <-- probably not true Feb 15 23:49:01 i disabled my cam and mic :p Feb 15 23:49:01 You code is correct.. I should have worked the first time. Use logcat to print requestCode and resultCode and make sure they match. Feb 15 23:49:12 sry for typos Feb 15 23:49:37 or move you setText outside the if statement and just check to see if it changes Feb 15 23:49:43 request code is used to know what activity was started and result code is used to know the result Feb 15 23:50:01 Activity.RESULT_OK != 1 I don't think Feb 15 23:50:13 yeah, that int resultCode = 1 shouldn't be there either Feb 15 23:50:22 agree Feb 15 23:51:05 you want something more like... private static final int ACTIVITY_SOMETHING = RESULT_FIRST_USER + 1; Feb 15 23:51:15 startActivityForResult(i, ACTIVITY_SOMETHING) Feb 15 23:51:17 oh fuck Feb 15 23:51:20 ... Feb 15 23:51:27 if you change your if statement to if(resultCode == Activity.RESULT_OK) Feb 15 23:51:31 it will probably work Feb 15 23:51:41 ^ Feb 15 23:51:41 and if you're using setResult in your activity that you call Feb 15 23:51:44 stupid me Feb 15 23:52:13 but it was kind of copy from a tutorial... Feb 15 23:53:15 er.. disgregard what I said, RESULT_FIRST_USER is for results :P Feb 15 23:54:18 Does anyone know how to prevent push notifications from showing when the app is running? (urbanairship if that helps) Feb 15 23:56:59 JakeWharton, if i wanted to teach some noobs about andorid layouts, you have anything you think should be included? Feb 15 23:57:22 don't use urbanairship? Feb 15 23:57:27 +1 Feb 15 23:57:36 or airpush Feb 15 23:58:07 uninstall all apps that use urbanairship or airpush and give them 1 star ratings Feb 15 23:58:16 ok, something other is going wrong, too Feb 15 23:58:26 does regular c2dm do that too? Feb 15 23:58:28 canadiancow just make sure they understand RelativeLayout >>>>>>> nested LinearLayouts Feb 15 23:58:31 repaste Feb 15 23:58:37 t0mless, already have that :P Feb 15 23:58:42 grantland: c2dm sends an intent that you can do whatever you want with Feb 15 23:58:49 grantland, c2dm does not directly result in user-visible stuff Feb 15 23:59:05 but that's something for tomorrow. thank you very much for supporting me!! Feb 15 23:59:14 synic pfn ah i'd just show notifications myself. i see Feb 16 00:00:08 thanks! Feb 16 00:00:26 gaaaaaahh Feb 16 00:00:29 DIAF LDPI Feb 16 00:00:54 ? Feb 16 00:01:01 oh Feb 16 00:01:09 are there actually ldpi devices out there Feb 16 00:01:12 like i know google SAYS there are Feb 16 00:01:15 but are there really? Feb 16 00:01:17 https://github.com/JakeWharton/ActionBarSherlock/issues/275 Feb 16 00:01:31 HTC Wildfire and Orange Barcelona apparently Feb 16 00:01:46 Wildfire is ldp ? Feb 16 00:01:53 [19:01:46] Wildfire is ldp ? Feb 16 00:01:55 this Feb 16 00:02:08 oh wow it is Feb 16 00:02:10 holy Feb 16 00:02:10 fucking Feb 16 00:02:12 hell Feb 16 00:02:26 * canadiancow vomits on HTC Feb 16 00:02:31 agree Feb 16 00:02:37 canadiancow, fix that bug Feb 16 00:02:40 isn't the wildfire gone? Feb 16 00:02:40 htc is not doing very well, actually Feb 16 00:02:54 they're focusing too much on the stupid ass beats by dre bs Feb 16 00:02:57 JakeWharton, you get (or will soon get) PAID to work on abs Feb 16 00:03:04 they used to be amazing, and now their phones are shit Feb 16 00:03:08 i get paid to work on * With Friends Feb 16 00:03:12 they are getting owned by samsung (high end) and ZTE & Co on the low end shit Feb 16 00:03:17 * == Crap Feb 16 00:03:28 :( Feb 16 00:03:33 i thought * was some sort of hole Feb 16 00:03:41 haha Feb 16 00:03:55 [A-Z][a-z]* With Friends Feb 16 00:03:56 better? Feb 16 00:03:56 * p_l remembers that when he actually went hunting for headphones, DRE was kind of laughinstock Feb 16 00:04:30 Crap still satisfies that regex Feb 16 00:04:41 so does an empty string Feb 16 00:04:49 [A-BD-Z][a-z]* Feb 16 00:04:53 p_l: i've always like sennheiser headphones Feb 16 00:05:00 haha Feb 16 00:05:00 * pfn waits for ultimate ears triple.fi's hit $100 again Feb 16 00:05:10 i better hope i never work on an android version of Chess Feb 16 00:05:37 so when can i buy a google io ticket Feb 16 00:05:39 can't beat those for $100 when they're on sale Feb 16 00:05:40 im getting antsy Feb 16 00:05:42 canadiancow, ditto Feb 16 00:05:50 already halfway through the month and no word Feb 16 00:06:03 did the dashboard update yet? Feb 16 00:06:26 nop[e Feb 16 00:06:37 what dashboard? Feb 16 00:06:44 device dashboard Feb 16 00:06:52 oh Feb 16 00:06:53 i guess it won't update today since today is the last day in the cycle Feb 16 00:06:56 thought you were talking about io Feb 16 00:09:10 APP Y U NO RESPOND PROPERY ლ(ಠ益ಠ)ლ Feb 16 00:14:09 jesus i just screwed something up completely. Feb 16 00:14:37 i'm spawning threads for db transactions, but they somehow lose their member variables. Feb 16 00:14:58 moonlightcheese, should probably look at the books thinking in java and java concurrency in practice Feb 16 00:15:27 http://www.osnews.com/story/25616/Motorola_s_ICS_schedule_highlights_Android_s_biggest_weakness Feb 16 00:15:57 If the company Google just bought can't even update its phones properly, what can we expect from the rest? Feb 16 00:16:02 lost all respect for the article Feb 16 00:16:21 that has nothing to do with Android really Feb 16 00:16:27 http://www.zdnet.com/blog/bott/judge-rules-that-targeting-android-for-destruction-is-legally-ok/4520 Feb 16 00:16:54 what kinda headline is that Feb 16 00:17:16 lol Feb 16 00:17:21 if thats not patent misuse Feb 16 00:17:23 then what the fuck is Feb 16 00:17:31 i think patents are great Feb 16 00:17:34 even software patents Feb 16 00:17:36 i really believe we need them Feb 16 00:17:47 but not until the patent system is torn the fuck down Feb 16 00:17:49 and rebuilt Feb 16 00:17:54 wow Feb 16 00:18:06 i toughed it out and went another paragraph or two in the OSNews article Feb 16 00:18:15 i mean Feb 16 00:18:20 clueless would be a compliment to this person Feb 16 00:18:55 (bool)(http://www.osnews.com/story/25616/Motorola_s_ICS_schedule_highlights_Android_s_biggest_weakness) == false Feb 16 00:21:07 JakeWharton: ClassCastException Feb 16 00:21:24 this is kinda warped. i can see the values coming into the parser just fine, the instantiated thread is populated with the ContentValues and table name to edit, and then when the run() method of the thread is called, the values are null... Feb 16 00:21:36 correction, just the ContentValues are null. Feb 16 00:21:41 the table name is still there. Feb 16 00:21:49 wth? Feb 16 00:22:08 oh. Feb 16 00:22:12 it's because i'm an idiot. Feb 16 00:22:17 cv.clear(); Feb 16 00:22:19 i actually didn't think the osnews article was that bad. it was emotionally charged but I didn't see any false claims Feb 16 00:22:37 wel Feb 16 00:22:38 l Feb 16 00:22:51 Google is not an OEM Feb 16 00:23:03 canadiancow … did you see CombatCow ? Feb 16 00:23:05 Nexus phones are google-branded. Feb 16 00:23:06 they will be soon Feb 16 00:23:15 yes g00s Feb 16 00:23:18 we had a fight Feb 16 00:23:19 i won Feb 16 00:23:21 kamoricks, the GN says samsung on it Feb 16 00:23:22 haha Feb 16 00:23:24 comparison against WP7 and iOS instantly false Feb 16 00:23:34 wp7 i dont know enough about Feb 16 00:23:36 but ios... Feb 16 00:23:38 lol Feb 16 00:24:08 canadiancow|work, last I heard, MS imposes strict control on the OS Feb 16 00:24:10 is the reason people don't like Urban Airship because of PushService? Feb 16 00:24:33 they basically take any OEM out of the equation and move them above the OS release rather than below Feb 16 00:24:45 with is urban airship Feb 16 00:24:50 *wth Feb 16 00:24:54 oh, fross Feb 16 00:24:55 JakeWharton: they actually have it tight enough that they can expect kernel from one device to run on another, afaik, and at most you'd lose camera or radio, I think Feb 16 00:24:57 damn it ! Feb 16 00:24:58 an Airpush thing Feb 16 00:25:01 a push provider Feb 16 00:25:02 fucking lion autocomplete die Feb 16 00:25:14 JakeWharton: cause they specify exact chips to use Feb 16 00:25:24 JakeWharton i think google needs to do something like that Feb 16 00:25:30 urbanairship is a push service that provides an SDK and web service to send push notifications Feb 16 00:25:34 has anyone here had experience with urban airship? Feb 16 00:25:36 canadiancow|work, if only to shut people up Feb 16 00:25:39 for both iOS and Android g00s Feb 16 00:25:43 or to make sure people get updates Feb 16 00:25:47 a client was asking me about it recently Feb 16 00:25:49 why cant it work like windows on a desktop pc? Feb 16 00:25:50 do push notifications violate the android market tos ? Feb 16 00:25:54 i guess not Feb 16 00:25:55 OEMs make the fucking OS Feb 16 00:25:58 microsoft releases updates Feb 16 00:25:59 np Feb 16 00:26:03 and you can go and get a new version Feb 16 00:26:04 no Feb 16 00:26:12 as long as you can find drivers Feb 16 00:26:15 nope, but it looked like t0mless and pfn didn't like UA…? Feb 16 00:26:23 need to get shit done Feb 16 00:26:24 canadiancow|work: my personal suggestion was to introduce a better separation, with a HAL and Android layer Feb 16 00:26:33 and a way to update them separately Feb 16 00:26:36 +1 Feb 16 00:26:36 pfn, t0mless: why dont you like urban airship? Feb 16 00:26:58 question: user starts app, service starts and is bound to app, user goes to activity B (default start activity) which extends activity A (a base activity for service calls/etc). when user navigates quits from B, i call android.os.Process.killProcess(android.os.Process.myPid()); and the app exits normally. now when the user navigates to activity C, from activity B, the user quits, calling the same lines, but rather than exiting Feb 16 00:26:59 normally, the app exits and restarts. how can i exit the app normally from activity C (mind you both B and C extend A) Feb 16 00:27:32 ugh i love typing on caffeine, typos galore. Feb 16 00:27:41 :) Feb 16 00:27:58 any ideas? Feb 16 00:28:21 t0mless, pfn: any insight to why you guys didn't like UrbanAirship? Feb 16 00:28:25 neekers, I assumed it was similar to airpush Feb 16 00:28:32 ahh Feb 16 00:28:33 maybe not, didn't really look Feb 16 00:28:36 eplewis89: drop reliance on killProces Feb 16 00:28:52 what should i call? i tried finish() and system.exit(0) Feb 16 00:28:56 pfn: lol UrbanAirship is just for normal push notifications, they aren't ads Feb 16 00:29:10 i didnt realize urban airship was for android, i thought it was just a wrapper for ios push notifications. thats how they started... Feb 16 00:29:16 oh wait, urban airship is different than what i thought it was. i thought it pushed adds to the notification manager Feb 16 00:29:21 I could have sworn UrbanAirship was for ads Feb 16 00:29:21 problem is when i call any of those, the app restarts Feb 16 00:29:28 g00s: nope, that's just airpush Feb 16 00:29:33 hello Feb 16 00:29:35 UrbanAirship does Android push now too Feb 16 00:29:42 but why use urbanairship over c2dm? Feb 16 00:29:44 eplewis89: if you need, use Activity/Service specific calls to signal that the object is "dead" (.finish() I think was it), so the app container will be marked "empty application" and as such first in queue to be removed by OS Feb 16 00:29:45 ahh, that must be new Feb 16 00:30:01 t0mless, probably for people that are used to ios, a unified api for both isn't a bad thing Feb 16 00:30:04 t0mless: my guess is that if you have a cross platform app it could be useful Feb 16 00:30:05 eplewis89: otherwise your application restarts due to system internals :) Feb 16 00:30:20 t0mless: simple for fast iterations, don't have to worry about getting servers signed and whatnot. also it's one stop place for both our Android and iOS apps Feb 16 00:30:21 hrm, thanks p_l, i'll try something. Feb 16 00:30:21 do someone uses opengl ES? I get strange result with my app.. Feb 16 00:30:39 grantland: so what issues are you having? Feb 16 00:30:40 eplewis89: killProcess is more for "rebooting" an unruly app rather than stopping it Feb 16 00:30:58 might move to c2dm later on, but it requires servers being verified (i think) and other stuff it's easier to not worry about in the beginning Feb 16 00:31:15 I have accomplished literally nothing today Feb 16 00:31:17 ah, ok, well regardless i need to kill the process if the user exits (otherwise the service continues running in the bkgd) Feb 16 00:31:25 t0mless: me too Feb 16 00:31:31 * pfn fixed a bug today, yay Feb 16 00:31:40 need to put together a tiny preso Feb 16 00:31:45 i just woke up Feb 16 00:31:51 * pfn has impress just sitting there on a blank slide... Feb 16 00:31:55 eplewis89 have your service kill itself if there is nothing bound to it, or stop it in onDestroy of your activity/app Feb 16 00:31:55 eplewis89: modify the service to stop itself Feb 16 00:31:56 i got the whole night ahead of me... Feb 16 00:32:09 grantland: so what issues are you having with urban airship? Feb 16 00:32:25 t0mless, i can't do that, the service needs to continue running in the background Feb 16 00:32:50 * g00s disables colloquy auto spell shit, hopefully his messages will make slightly more sense … slightly Feb 16 00:32:58 I thought you just said you want it to stop Feb 16 00:33:14 and when the user backgrounds the app, the system unbinds the service from the app itself. i can't have the service stop running when the user leaves the app, only when the user quits Feb 16 00:33:44 quitting and backgrounding the app are 2 different things, the service needs to be persistent unless the user explicitly quits the app Feb 16 00:33:49 neekers: just wondering if there was a way to not show a notification when a push is received if the app is already running Feb 16 00:33:53 so have your quit menu option or whatever stop the service... Feb 16 00:34:05 i do that haha. Feb 16 00:34:07 ahh Feb 16 00:34:26 the point is, if i'm in a sub-activity, just 1 level down from the main activity, and i quit the app, the app restarts Feb 16 00:34:30 grantland: you aren't by any chance working on a hunting app, are you? Feb 16 00:34:42 neekers: no…? haha why's that? Feb 16 00:35:04 i'm calling finish on the activity that all the activities extend. Feb 16 00:35:47 I guess that's not totally true, I did update my project to use ABS4.0 Feb 16 00:36:11 grantland: was just discussing urban airship this week with a friend who was having problems with it. was wondering if you might be the developer working on my friends app Feb 16 00:36:17 so I haven't accomplished nothing..... Feb 16 00:36:19 just very little Feb 16 00:36:48 neekers: ah, that would be funny Feb 16 00:41:59 GAH (ノಠ益ಠ)ノ彡┻━┻ Feb 16 00:42:05 it's not working >.< Feb 16 00:47:36 ok, woke up at the crack of 3pm, time to get something to eat Feb 16 00:48:17 i forgot my wallet today, therefore i have had nothing to eat but oatmeal >.> Feb 16 00:48:31 luckily i have an hour left of work Feb 16 01:00:27 Hello, I get strange things using opengl. it's like part of the gl commands are not properly sent to hardware. when i step through the function I get the proper result and when it runs fullspeed nothing happens. very weird .I use FBOs and draw texture to alter a texture. Has someone experienced this kind of things? Feb 16 01:12:43 Anyone have a clue what might be causing a severe UI performance decrease after intense I/O operations by an app? Feb 16 01:13:00 garbage collection? Feb 16 01:13:08 This is a purely 2D application, just views & widgets. Feb 16 01:13:22 Sorry, should mention....it's permanent until the app is killed. Feb 16 01:13:37 memory leak somewhere? Feb 16 01:13:47 have you tried profiling? Feb 16 01:14:29 Haven't done proper profiling...no major change in heap size afterward Feb 16 01:15:17 The really curious thing is that if I add little delays to the I/O, e.g., sleep 1ms after each of 1,000 copy operations, it won't trigger the behavior ever. Feb 16 01:16:36 Other curious thing: only seeing it on Honeycomb tablets..have a Transformer and a Xoom, both do it. GNex+Droid 1/2/3/4 don't do it. Feb 16 01:17:45 And the mega I/O operation is just as fast run a second time. Feb 16 01:19:32 And I shouldn't really say it "degrades" performance...it's not in any way gradual. Before the I/O operation everything is perfect, after it all UI operations have a 1-3 second lag. Feb 16 01:19:56 And doing the I/O 10x won't cause that lag time to increase...it's always the same 1-3 seconds once it "breaks". Feb 16 01:21:28 then a possible bug in HC that you're triggering Feb 16 01:22:33 Tempted to try an ICS ROM on this Xoom and see if that alleviates it...as much as I like to keep my test devices on official OEM builds. Feb 16 01:24:21 The only thing "special" I'm doing is creating a fairly good number of named pipes (but each pipe only exists for a short time). Feb 16 01:24:57 And of course *none* of the i/o work is being done on the UI thread. Feb 16 01:32:20 do you *need* to use multiple named pipes? Feb 16 01:32:44 and anyway, measure, measure, measure. Also known as profiling :) Feb 16 01:33:26 yea, use ddms and profile that bitch Feb 16 01:33:34 see where that time is being spent Feb 16 01:33:43 maybe even other stuff Feb 16 01:33:50 any ideas why text disappears from buttons in vertical view when I use background image? (.9.png) Feb 16 01:34:14 you can trace native stuff (including android support code) thanks to gdbserver that is included in image Feb 16 01:34:22 though you might need to root Feb 16 01:34:54 haha Feb 16 01:34:57 https://market.android.com/details?id=com.v1_4.BFC70ED44DA26C4AE2D2615E.com&feature=search_result Feb 16 01:35:00 what a pile of shit Feb 16 01:35:12 i keep finding these "apps" Feb 16 01:35:12 :) Feb 16 01:36:05 browsing the android market will kill brain cells Feb 16 01:36:07 how does it have that many installs what? Feb 16 01:36:39 it probably doesn't count people who got rid of it... Feb 16 01:37:04 romainguy had something to make ddms work on devices I thought... maybe that was just hieracrchy viewer though Feb 16 01:37:17 yeah, it was for hierarchyviewer Feb 16 01:38:46 you can enable methodProfiling in code though Feb 16 01:39:11 then just have it dump the hprof file to sdcard or if you're root put it in internal storage and adb pull it Feb 16 01:46:44 Cna someone give me a hand with figuring out why my emulator freezes everytime I try to run the HelloAndroid app? Feb 16 01:47:13 freezes or app crashes/give ANR? Feb 16 01:49:10 because I bet logcat can give you a hand in figuring out what's wrong Feb 16 01:56:35 ffs, text disappears from buttons when using Nine-patch drawables as background Feb 16 01:57:42 are you including content area in your 9patch? Feb 16 01:59:10 t0mless, seems like the problem is with that http://pastebin.com/sdveAFRR Feb 16 01:59:15 not the image itself. Feb 16 01:59:26 lets see the image Feb 16 01:59:45 no, the image works, making it using that .xml doesnt Feb 16 01:59:48 it then breaks stuff Feb 16 02:00:21 but what is the propper way of setting button theme to use some hover and pressed background? Feb 16 02:00:24 why are you repeating one state twice? Feb 16 02:00:40 oh wait, read it wrong Feb 16 02:02:14 but if you use the 9patch on the button directly it works? Feb 16 02:02:59 either 9patch that is, hover.9.png and inactive.9.png? Feb 16 02:03:11 should say both* Feb 16 02:04:13 t0mless, yeah, directly using it works Feb 16 02:04:50 so that selector is borked... do you have that .xml in drawable/ and reference it properly? Feb 16 02:05:41 t0mless, yes. Feb 16 02:05:46 the xml works Feb 16 02:06:05 because it sets the background and changes it when I press the button Feb 16 02:06:10 but the text is gone Feb 16 02:06:32 appears only in landscape mode and not centered Feb 16 02:06:48 so... the xml itself is incorrect. Feb 16 02:07:08 maybe, but it could still be your 9patches Feb 16 02:08:18 no Feb 16 02:08:20 they work Feb 16 02:08:23 and I tried others Feb 16 02:08:25 found on the web Feb 16 02:08:35 it is the xml Feb 16 02:11:08 p_l & t0mless ... thanks, taking a look now. Feb 16 02:12:08 and yes to multiple named pipes, need to execute a sequence of commands in a single shell process and I want to precisely capture output and error streams from each command. Feb 16 02:26:58 ah Feb 16 02:27:25 why named, then? You can do so with execve, pipe and dup anyway? Feb 16 02:45:31 p_l Everything has to be executed through a shell for which I only get stdin/stdout/stderr streams...needs to be able to run through su Feb 16 02:45:43 ah Feb 16 02:46:44 I'm primarily using the named pipes to block until a command has closed its output/err streams Feb 16 02:47:46 does it have to use onCreate when changing from protrait to landscape and vice versa? Feb 16 02:48:14 Janhouse: you can handle rotation events yourself Feb 16 02:48:35 android:configChanges="keyboardHidden|orientation" in your Feb 16 02:49:14 and what does that do? Feb 16 02:50:15 prevents onCreate() from being invoked in orientation changes (and if keyboard is opened on slider phones) Feb 16 02:50:35 If you need to update the layout for the changed orientation, override onConfigurationChanged() in your activity class. Feb 16 02:51:18 great, this is awesome :) Feb 16 02:51:21 thx Feb 16 02:51:41 adding this to my "must read" list :D Feb 16 02:51:46 the documentation is great but massive. Feb 16 02:52:50 SE live view for 20€ http://www.amazon.de/Ericsson-LiveView-externe-Bluetooth-Display/dp/B00477X6DA/ref=sr_1_1?ie=UTF8&qid=1329359850&sr=8-1 Feb 16 02:53:16 no prob Feb 16 02:55:40 aaand what is the best place to store some session state (like what button was pressed last time)? Feb 16 02:56:05 Bundle? Feb 16 02:56:06 in preferences or some better place? Feb 16 02:57:19 saveInstanceState? **** ENDING LOGGING AT Thu Feb 16 02:59:57 2012