**** BEGIN LOGGING AT Tue Jan 31 02:59:58 2012 Jan 31 03:00:05 ah k Jan 31 03:00:13 yeh well you will run out of bullets etc, but yeh im trying to find a wya to makeit deeper in terms of enemies Jan 31 03:00:14 the graphics looked decent though Jan 31 03:00:23 but itll be a sort of adventure too with missions etc Jan 31 03:00:27 yeh theyre pretty awesome Jan 31 03:00:32 nice Jan 31 03:00:49 this is the first decent video, im actually applying for funding now Jan 31 03:00:50 good luck with it ^^ Jan 31 03:00:58 to make it into something deeper and more awesome Jan 31 03:01:25 thanks dude Jan 31 03:02:01 been working on it for ages, code din java Jan 31 03:02:21 cool, did you do the art? Jan 31 03:02:32 nope Jan 31 03:02:34 just code Jan 31 03:03:01 well, it's much better than I can do, that's for sure :P Jan 31 03:03:24 i think itll kick arse eventually Jan 31 03:03:33 you Aussie? Jan 31 03:03:36 english Jan 31 03:03:45 Gaz`: quite an impressive resume Jan 31 03:03:48 i bow Jan 31 03:03:54 cheers! Jan 31 03:03:54 that was gonna be my next guess, owing to your spelling of 'arse' Jan 31 03:04:04 i'm aussie ^^ Jan 31 03:04:09 ;) Jan 31 03:04:18 QubeZ, some quick linking there to find me hehe Jan 31 03:04:26 this stuff isn't easy to do and looks like you have a great skill at this part of development Jan 31 03:04:32 i admire that and applaud it Jan 31 03:04:40 yeh games is my major passion, Jan 31 03:04:42 thanks very much Jan 31 03:04:54 np Jan 31 03:05:41 yeh i beleived id be happy in games companies working on aaa titles Jan 31 03:05:44 i was wrong Jan 31 03:05:45 :) Jan 31 03:06:06 which games companies have you worked for? if any? Jan 31 03:06:13 rockstar north Jan 31 03:06:18 gta vice city Jan 31 03:06:23 oh wow, i love that game Jan 31 03:06:27 me too Jan 31 03:06:33 my favourite out of all of them ^^ Jan 31 03:07:29 mine too Jan 31 03:08:04 good onya, i envy your talent and your lifestyle lol Jan 31 03:08:29 too bad im broke Jan 31 03:08:30 lol Jan 31 03:08:38 bah! what's money? lol Jan 31 03:09:04 :) Jan 31 03:09:12 look at Jason Rohrer, indie game dev, his family lives off $14500 a year or something Jan 31 03:09:22 they're happy :) Jan 31 03:09:31 what did he make Jan 31 03:09:51 nothing massively popular, but some really 'out there'games Jan 31 03:10:02 http://hcsoftware.sourceforge.net/jason-rohrer/ Jan 31 03:10:05 yeh, id like to make a game ppl love Jan 31 03:10:40 and by make i mean design and develop Jan 31 03:10:49 from 0 lines of code to something special Jan 31 03:10:58 yeah, totally from scratch ^^ Jan 31 03:11:07 this game was done like that Jan 31 03:11:07 hola Jan 31 03:11:14 from an idea to this so far Jan 31 03:11:48 epic Jan 31 03:12:19 i spose there aren't that many zombie games on the apps market...at least not that I know of Jan 31 03:12:22 Hi... i want to try kickoff to develop some of android-apps, is there any url compiling what i need, such as... ide, how-to, tutorial, etc... (Yes i know d.android.com got such... but, feels like... too messy) Jan 31 03:12:37 not decent looking ones like this, this is ridiculous in termsof art Jan 31 03:13:02 developer.android.com is the best Jan 31 03:13:51 Ox41464b: it is standard java doc style, many other docs are the same Jan 31 03:15:02 Ox41464b: if you want to start development take some time to read http://developer.android.com/design/index.html, worth it Jan 31 03:15:11 i'm getting some really weird behaviour with LocalStorage in a WebView... I'm setting the directory to write to via WebSettings.setDatabasePath() to different directories for each piece of content i load. But only the first setting seems to 'stick'... when I subsequently create a second WebView, it silently uses the first WebView's data directory, unless I force-stop the app inbetween Jan 31 03:15:14 0x41464b: try the book "Hello Android", it's pretty good Jan 31 03:16:18 night dudes Jan 31 03:16:23 night Jan 31 03:16:33 night Jan 31 03:17:26 night? Jan 31 03:17:46 yeh i just spent hours drinking whisky and spamming facebook with my game Jan 31 03:17:48 bed now Jan 31 03:17:49 :) Jan 31 03:17:57 really was gonna sleep at 5am Jan 31 03:17:58 damn it Jan 31 03:18:06 that's your marketting done :P Jan 31 03:18:07 lol Jan 31 03:18:13 hehehe Jan 31 03:19:22 unlike Leeds who has to sit in the office and pretend to be working Jan 31 03:19:24 :-p Jan 31 03:19:47 and get a regular paycheque for my trouble :P Jan 31 03:19:52 git Jan 31 03:19:59 * Leeds notes that tomorrow is payday :D Jan 31 03:20:04 still fireworks going off like mad here Jan 31 03:20:07 damn u man Jan 31 03:20:19 I was off in Italy and the UK for new year Jan 31 03:20:32 fighting and grovelling for money owed to me Jan 31 03:20:32 considering a job in london Jan 31 03:20:35 nicee Jan 31 03:20:37 fun? Jan 31 03:20:38 much pizza and Nandos was consumed Jan 31 03:20:57 shame j2me isgetting neglected now Jan 31 03:21:07 id have to go and masquarade as an android coder Jan 31 03:21:20 yeah, except for the bit about my sister having a screaming row with her bf and splitting up with him while I was staying at her place Jan 31 03:21:28 ouch Jan 31 03:21:56 Italy was very cool Jan 31 03:22:01 Does the C++ WebCore get cached and reused by different WebView instances? Jan 31 03:22:10 ah bad weather was it :-x Jan 31 03:22:17 winter n all Jan 31 03:22:33 wish i was an iphone dev!! Jan 31 03:22:49 mainly okay, apart from one foggy night in Venice - which was quite spooky and fun anyway Jan 31 03:23:36 sw33t Jan 31 03:23:41 I have a lot of PHP to do this month :( Jan 31 03:23:49 yuck Jan 31 03:24:15 most exciting thing that happened to me over CNY was stopping a girl slash her wrists Jan 31 03:24:16 paycheque! Jan 31 03:24:26 oh, lovely... Jan 31 03:24:27 and getting a mighty deep cut in my palm for my efforts Jan 31 03:24:36 and no it wasnt my gf when i mentioned amigas Jan 31 03:24:44 heh Jan 31 03:24:55 yet the gf hated me for it Jan 31 03:25:01 jealous of the loom slicing her wrists Jan 31 03:25:02 did I mention, by the way, that I got gigabit fibre put in at home last month? :D Jan 31 03:25:04 perfect Jan 31 03:25:15 wowza nice, didnt realise HK had gotten above 56k Jan 31 03:25:17 ;) Jan 31 03:25:42 that must be silly downloads, whats max u had so far, in megabytes, Jan 31 03:25:53 getting like 1.5 megs here on a goodday Jan 31 03:25:54 hey, i get 10mbit on my phone, regularly Jan 31 03:26:01 oh yeh u said Jan 31 03:27:01 one download tool I use is showing an average over 10meg Jan 31 03:27:03 im guessing gigabit, is like 15 egabytes a sec from a good server Jan 31 03:27:08 jesus wept Jan 31 03:27:23 Android building question: Has anyone built Android 4.0.3 on OSX Lion? Jan 31 03:27:30 thats damn fine, how much? in gbp Jan 31 03:27:56 oh, just under 20 quid a month... :D :D Jan 31 03:28:01 perfect for l33ching Jan 31 03:28:06 Leeds: when I was in HK staying at my wife's mum's place they got 200mbit cable installed Jan 31 03:28:07 wow...... Jan 31 03:28:07 fucku! Jan 31 03:28:10 it was NUTS Jan 31 03:28:16 compared to what we have in .au Jan 31 03:28:16 20 quid... Jan 31 03:28:23 I pay like $80 USD for 3meg Jan 31 03:28:36 this was about $25usd, unlimited data Jan 31 03:28:42 well on that jealous note, best sleep.. Jan 31 03:28:48 that's what happens when you have that kind of population density I guess Jan 31 03:28:52 yeah, you sleep, me PHP Jan 31 03:28:52 gonna span ur fb Leeds Jan 31 03:29:02 Gaz`: I expect no less... Jan 31 03:29:21 :-) Jan 31 03:29:32 Leeds: you with pccw? Jan 31 03:29:34 wabz: had 8mbit before, contact came up for renewal, told the gf to ask if they could go faster, they said 100mbit, then when I asked for details they offered 1000 Jan 31 03:29:38 yeah, netvigator Jan 31 03:29:46 wifi *everywhere* Jan 31 03:30:27 it's genuinely fibre to my living room - the guy came and ran it through the conduits in my building down to the utilities room in the basement Jan 31 03:30:30 u got no excuse for not viewing in 720p fullscreens leedsie Jan 31 03:30:49 hk is way ahead of the curve Jan 31 03:30:54 Gaz`: I do at work - which is where I am now - stuck on 2mbit! It's like being back in the dark ages, or with my family in the UK Jan 31 03:31:08 lhehe Jan 31 03:31:49 I'll let it buffer while I do a bit of work Jan 31 03:31:59 :D Jan 31 03:48:29 can you pass a serialized object through a thread messenger? Jan 31 03:48:58 can I just the serialized object in a Bundle and then pass that using putData Jan 31 03:49:07 ^put Jan 31 03:51:34 ok....let me ask it like this then: how do you pass an object to a thread handler?? Jan 31 03:51:41 anyone convert regular long Date format to rfc3339? Jan 31 03:51:49 im trying to see if Android has a class to handle this, dont see it in Time or Date Jan 31 03:54:34 QubeZ: did you see http://developer.android.com/reference/android/text/format/Time.html#format3339(boolean) ? it converts from a string, but it might help Jan 31 03:55:13 looked at that and did Time test = new Time(); test.format3339(false) but I get 00's and 1970 Jan 31 03:55:25 not sure how to set the present time then output in 3339 format Jan 31 03:56:50 time.setToNow() ? Jan 31 03:57:11 test.setToNow() in your case? Jan 31 03:57:34 fuck, i need to put my glasses on Jan 31 03:57:35 Time has various setFoo() methods Jan 31 03:57:36 thanks man Jan 31 03:57:52 no worries ^^ Jan 31 03:57:59 Apparently what the docs of WebSettings.setDatabasePath() mean by 'once' is 'once for your entire process that uses libwebcore', rather than once per WebView... that makes it effectively random what setting you get depending on which area of your app uses a WebView first Jan 31 03:58:02 set(long millis) is handy for arbitrary times Jan 31 03:58:16 setToNow() then format3339 works Jan 31 03:58:25 woot Jan 31 03:58:27 now I can finish my implementation of Google Tasks integration Jan 31 04:26:24 does anyone have an lg esteem optimizer.apk? Jan 31 04:27:10 its on the market Jan 31 04:27:20 also, #android-root Jan 31 04:27:21 thanks Jan 31 04:31:44 how to run fast except booting time when the application runing in eclipse Jan 31 04:35:47 hey Jan 31 04:36:13 i wanted to implement an interface with value inputs, say sliders, whose values are transmitted live to another box in the same network Jan 31 04:36:22 which potocols / libraries would you use Jan 31 04:49:50 good night Jan 31 05:05:14 finally found the setting in my script to hide join/parts Jan 31 05:05:30 and set my irc font to roboto while I was at it :p Jan 31 05:08:17 * Hiraghm sighs Jan 31 05:08:31 http://www.youtube.com/watch?v=rOzXsqoJhtE Jan 31 05:08:37 that can make you happier :) Jan 31 05:08:57 I want my client to hide parts of people that haven't talked in the last like half hour Jan 31 05:09:11 I was using synchronize() in my view's onTouch, and often, when you'd leave the app and restart it, as soon as you touched the screen it would lock up Jan 31 05:09:13 or part/rejoin in a short amount of time Jan 31 05:09:22 I got rid of the synchronize, and it appears to work now Jan 31 05:09:30 * Hiraghm doesn't understand threads as well as he wished Jan 31 05:09:32 anyone used property animation with custom drawing in a surfaceview? Jan 31 05:09:41 property animation? Jan 31 05:09:49 http://developer.android.com/guide/topics/graphics/prop-animation.html Jan 31 05:10:27 no but that looks cool Jan 31 05:10:29 what api level is it? Jan 31 05:10:37 3.0+ Jan 31 05:10:40 that came with honeycomb Jan 31 05:10:55 but jakewharton backported it to... 1.0 I think Jan 31 05:11:39 It'd be nice to get its nonlinear counting Jan 31 05:11:44 acceleration Jan 31 05:12:00 and also the ability to poll it instead of having a thread spinning real fast counting Jan 31 05:14:00 what about changing the frame of the animation? Jan 31 05:14:08 rather than just position Jan 31 05:15:00 oh there you go. Drawable animation Jan 31 05:18:22 you can do non-linear stuff Jan 31 05:20:00 yup Jan 31 05:20:08 this must use reflection Jan 31 05:20:25 it appears to take a string foo and then call accessor setFoo() Jan 31 05:20:31 string "foo", that is Jan 31 05:29:55 This is sorta a silly question: If you are starting an Android project with some friends and will be using git, would it be better to separate the cloud portion of the program (Google App Engine) into a separate repo, or keep both cloud and android app in different directories in the same repo. Has anyone done this and felt pain either way? Jan 31 05:30:29 hi JakeWharton Jan 31 05:30:44 hello sir cow Jan 31 05:30:46 dxdt: I can think of no reason to separate them Jan 31 05:30:53 and it seems likely you'll have some shared files Jan 31 05:30:56 romainguy lov evancharlton inco9 is running a script that autoresponds to certain messages Jan 31 05:31:08 well that worked well Jan 31 05:31:13 [00:30:30] -inco9- This is how stupid you look: ☆♥★~ hi JakeWharton ~★♥☆󠁟 Jan 31 05:31:17 [00:30:57] -inco9- This is how stupid you look: ☆♥★~ romainguy lov evancharlton inco9 is running a script that autoresponds to certain messages ~★♥☆󠁟 Jan 31 05:31:21 haha Jan 31 05:31:21 fml Jan 31 05:31:26 yeah I noticed that too Jan 31 05:31:27 i got that too Jan 31 05:31:34 still getting it Jan 31 05:31:52 any op to ban? Jan 31 05:31:52 morrildl? Jan 31 05:32:05 who else has +o Jan 31 05:32:12 hrm Jan 31 05:32:28 ./ignore for now Jan 31 05:32:30 romainguy__ Jan 31 05:32:32 works wonders Jan 31 05:32:42 eh? Jan 31 05:32:51 lov Leeds both have +o I believe Jan 31 05:32:57 irc over cell Jan 31 05:33:02 sucks Jan 31 05:33:05 lol Jan 31 05:33:08 i think i mentioend lov already Jan 31 05:33:11 does Leeds have it too? Jan 31 05:33:19 i know a couple others with +o but they're not on Jan 31 05:33:22 JakeWharton, use a client that doesn't suck :) Jan 31 05:33:24 nor are they on skype Jan 31 05:33:48 oh Leeds, how i love thee Jan 31 05:33:50 pfn, i'm using my laptop Jan 31 05:34:06 JakeWharton, lame :p Jan 31 05:34:08 my list view was initialized with SimpleCursorAdapter. what is the best way to tell the list view to refresh/reload data from db? Jan 31 05:34:11 the problem is the stupid hotel charges $10/night Jan 31 05:34:17 it's 2012 bros, c'mon Jan 31 05:34:40 Leeds, /mode #android-dev +b *!*@027e63bd.bb.sky.com Jan 31 05:34:49 quick :( Jan 31 05:34:57 :(:( Jan 31 05:35:08 <3 Jan 31 05:35:12 FUCK OFF YOU STUPID CUNT Jan 31 05:35:17 kick too please ~_~ Jan 31 05:35:22 language :P Jan 31 05:35:27 keeps PMing too Jan 31 05:35:32 [00:35:09] -inco9- This is how stupid you look: ☆♥★~ <3 ~★♥☆󠁟 Jan 31 05:35:32 [00:35:12] FUCK OFF YOU STUPID CUNT Jan 31 05:35:32 [00:35:13] -inco9- This is how stupid you look: ☆♥★~ FUCK OFF YOU STUPID CUNT ~★♥☆󠁟 Jan 31 05:35:32 [00:35:17] kick too please ~_~ Jan 31 05:35:32 [00:35:18] * appel1 (~appel@93.94.208.158) Quit (Ping timeout: 248 seconds) Jan 31 05:35:33 [00:35:18] -inco9- This is how stupid you look: ☆♥★~ kick too please ~_~ ~★♥☆󠁟 Jan 31 05:35:43 forgive me Jan 31 05:35:45 but that shit is like Jan 31 05:35:46 wtf Jan 31 05:35:49 he's gone Jan 31 05:35:51 i know Jan 31 05:35:53 thank you <3 Jan 31 05:36:40 lol Jan 31 05:36:44 why does he hate you guys? Jan 31 05:37:04 do i have to set my adapter again? or there is a way to ask the list view to reload data? Jan 31 05:37:10 it's what I'm here for :) was trying to get my colleague to finish his moan about a client so I could deal with it Jan 31 05:41:32 wow, property animation is pretty simple Jan 31 05:48:06 i'm using a custom typeface on a textview, but one characters that have Jan 31 05:48:06 +both a caron and a raised apostrophe, the two diacritics print on type of Jan 31 05:48:06 +each other rather than one over the other Jan 31 05:48:26 does anyone know much about android and unicode 0x0313 Jan 31 05:51:00 was it this channel that someone spammed the string that causes xchat-2 to crash? Jan 31 05:53:33 strangely, im pretty sure that my issue is isolated to android, the same data with the same fonts on other systems displays fine Jan 31 05:54:37 i'm using unicode supported fonts for the glyphs i need, setting the TypeFace of a TextView. but the raised combiing comma doesn't display properly. any ideas? Jan 31 06:48:23 batos Jan 31 07:01:40 How can I write an library, that is useable for android and javaprojects? Jan 31 07:27:06 has android irda stack ? Jan 31 08:03:29 hi Jan 31 08:27:29 interesting... desire z logs all hardware keypresses to the system log, and if the phone crashes, the tell htc service tries to send this log to htc. safe and secure! Jan 31 08:32:16 I lost faith in HTC long long ago Jan 31 08:33:22 hmm, so you mean, somebody might see what text messages you have sent? like, they actually leave your phone? shocking. Jan 31 08:34:05 dependign on what you have setup on your phone, it may be sending messages in the raw to them anyway =) Jan 31 08:42:59 tml_: no, the log includes all hardware keypresses as gpio state changes Jan 31 08:43:28 even this message is saved Jan 31 08:54:29 Cool finally got my tablet controlling my pic with GUI buttons. Now I can go to sleep Jan 31 09:12:18 hello Jan 31 09:14:06 As far as i understood, on any android device, pressing the back button will end the activity (thus making no use of either processor nor memory) but pressing the home button will keep the application cached in background (thus making no use of processore but still using memory), is this correct ? Jan 31 09:14:46 Hi there Jan 31 09:15:11 How do i add a space in my string resource? (at beginning and end?) Jan 31 09:15:51 I am using the FingerPaint class from APIDemos for implementing the erase feature in canvas. Is there a way to avoid the black path being drawn in Erase mode? Jan 31 09:16:23 got it Jan 31 09:17:23 asterisk-Tester: as far as I know you are not correct Jan 31 09:17:47 Sorry got disconnected... here is my question again Jan 31 09:17:50 I am using the FingerPaint class from APIDemos for implementing the erase feature in canvas. Is there a way to avoid the black path being drawn in Erase mode? Jan 31 09:19:16 tml_: can u elaborate ur vewi Jan 31 09:19:19 asterisk-Tester: processes will generally always be cached Jan 31 09:19:19 view* Jan 31 09:19:51 appel1: so in either action the result is the same ? Jan 31 09:19:55 cahced process Jan 31 09:20:33 asterisk-Tester: yes, what changes is what happens when the user returns to the app Jan 31 09:21:12 appel1: what do u mean ? Jan 31 09:21:19 asterisk-Tester: why do you think you need to know in such great detail what happens to the process? Jan 31 09:22:35 tml_: i just need to know what r the diffrences between the home and back button Jan 31 09:23:00 then read the documentation on how you should handle them? Jan 31 09:23:08 to know if one is more battery friendly or not Jan 31 09:23:16 and don't bother with low-level implementation details like "processes" and "use of memory" Jan 31 09:23:39 asterisk-Tester: if your app is correctly implemented it shouldn't matter Jan 31 09:26:33 would that help a little? Jan 31 09:26:33 http://developer.android.com/guide/practices/ui_guidelines/activity_task_design.html#taking_over_back_key Jan 31 10:06:39 hi how can i create an intent that just opens an app in the state it has been left? (i want to use it for a notification to not have to create a seperate activity for handling the push notifications) Jan 31 10:27:56 I'm pretty new with Java, comming from Perl and a bit of C/C++, reading about Runnable and Thread now.. What is the main use of a runnable? I mean, a "Thread" got a run() method too? Why define a Runnable and then use thread.start instead of just defining a Thread with a run() method? Jan 31 10:28:05 Is that a stupid question :-D Jan 31 10:28:21 Reading here atm: http://www.javamex.com/tutorials/threads/ Jan 31 10:29:06 Runnable is the Interface Jan 31 10:29:33 see http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Runnable.html Jan 31 10:29:41 Thread implements the Runnable Interface Jan 31 10:30:07 and no, there are no stupid questions :-) Jan 31 10:30:10 just stupid answers! Jan 31 10:30:16 haha Jan 31 10:30:23 Hmm, so if I use a Thread only, with a run() defined... is there any difference?? Jan 31 10:30:45 no, but in an Android environment.. you might want to look at AsyncTask Jan 31 10:31:42 Ok so it's only different ways of using Threads then ...thank you! Yeah I have stumbled upon "AsyncTask", is that another implementation of Threads in android then? Jan 31 10:31:59 yes, its THE implementation you should use Jan 31 10:32:02 Oh Jan 31 10:32:06 dont start Threads on your own :-) Jan 31 10:32:12 Oh ok Jan 31 10:32:18 I'll look it up, TA :-) Jan 31 10:33:32 I started looking up Threading after seeing this: http://thenewboston.org/watch.php?cat=6&number=14 because this guy is running a "Thread" from the overidden onCreate Jan 31 10:33:59 oh and have a look at the different lifecycle methods of an AsyncTask, because there are some neat tricks you can do with the method called after the "main" asynctask method Jan 31 10:34:06 because its called from the UI Thread Jan 31 10:37:25 Thank you... it's confusing, Java, for a Perl guy... everything implements and extends to oblivion, while I'm left wondering "soo, what is best to use and what is the most correct/java-ish way to do this".. I'll get the hang of it eventually :-) Jan 31 10:37:27 well.. of course you can do it, but its not the Android way Jan 31 10:37:38 Ok ty :) Jan 31 10:37:54 Android will do most of the work regarding slippery slopes with Threads Jan 31 10:38:01 like value passing and stuff :) Jan 31 10:38:05 nice Jan 31 10:38:15 ugh is there a way to get rid of the padding above and below a button with a custom 9patch drawable background? I set the 9 patch margins to use the full button space, but there always seems to be padding inserted Jan 31 10:38:31 hehe, yeah well.. Java is pretty cool Jan 31 10:38:53 Was in your position too, I come from a PHP/JS background :-) Jan 31 10:39:05 Ah, yeah PHP is a lot like Perl Jan 31 10:40:57 When I go to the Android SDK Manager, I don't see that I have an option to install API 9 (2.3) -- and I certainly don't have it installed...What gives? I'm on Ubuntu 11.10 :-/ Jan 31 10:43:33 didn't they obsolete 9 or something and quickly replaced it with api level 10? Jan 31 10:44:19 appel1: Oh I see -- but now I have some dummy projects I was working on with API # 9 -- how do I port those projects to API # 10? :-/ Jan 31 10:44:38 appel1: I was going through the tutorials, actually Jan 31 10:44:49 aLearner: from eclipse? Jan 31 10:45:00 Nonninz: Yes, from Eclipse. Jan 31 10:45:22 aLearner: if so, just go in project properties -> android Jan 31 10:45:27 right click on a project and go to project properties, check out java build path - you can add another API there Jan 31 10:45:33 and check the api level 10 Jan 31 10:45:56 Mikellip: Thank you. Let me try that. Jan 31 10:46:05 Nonninz: Thank you. Will check that option out. Jan 31 10:47:59 Mikellip: OK. I did that but now I see --> "Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please use Android Tools > Fix Project Properties." But where do I find Android Tools? :-/ Jan 31 10:48:48 aLearner: right-click on the project Jan 31 10:48:53 Mikellip: Oh, got it! Jan 31 10:49:00 Nonninz: Thank you. I just now saw it! :-) Jan 31 10:49:01 aLearner: one of the last options Jan 31 10:49:09 Nonninz: Right. Thank you very much! Jan 31 10:49:22 aLearner: np :) Jan 31 10:50:58 is it possible to use the same email address different apps using C2DM? Jan 31 10:51:28 Nonninz: Things run fine but I get the following warning --> "Attribute minSdkVersion (9) is lower than the project target API level (10)". Is there a way to fix that? It seems to be an issue with the Manifest file Jan 31 10:52:29 aLearner: I always that that warning as well, I use the support jar so I am sure my manifest is corect Jan 31 10:52:35 aLearner: you can ignore that if you are just going with samples. By the way, just change the line in the manifest Jan 31 10:53:07 jiduvah: Cool. Jan 31 10:53:09 aLearner: open it as raw file, and change minSdkVersion to 10 Jan 31 10:53:47 Nonninz: So basically change "" to " - right? Jan 31 10:54:05 Nonninz: I wish there were some way to automatically fix those kinds of things! :-) Jan 31 10:54:53 aLearner: yes :) Jan 31 10:55:22 Nonninz: Cool. Thanks for all your help. It works like a charm now. Which SDK should I be using for my projects? Jan 31 10:55:39 Nonninz: I don't want this error to come back to haunt me. Jan 31 10:56:38 aLearner: well it depends. I guess you may want to use the one supported by your device Jan 31 10:57:32 I'd prefer to use the lowest possible for maximum compatibility - if I wanted to reach a broad audience.. but I am new too :-) Jan 31 10:57:50 Nonninz: I'm on 2.3.7 -- but I don't see that anywhere? Jan 31 10:57:57 aLearner: it depends mostly on whether you are developing on your own to learn or you are actually doing something to distribute Jan 31 10:58:24 aLearner: that is API 10 (2.3.3) Jan 31 10:58:35 Nonninz: For now I'm just developing on my own to learn. Just want to learn the best practices. :-) Jan 31 10:58:42 Nonninz: Oh I see - then why have it as 2.3.7? Jan 31 10:59:02 Nonninz: My phone is rooted and I installed Cyanogenmod on it - could that be the reason? Jan 31 10:59:54 getting tired of Alexified and r04r join/quit spam :< Jan 31 10:59:54 aLearner: then i'd go on api 10, with the compatibility package afterwards to learn also the new cool things of honeycomb and ICS like fragments & c Jan 31 11:01:05 aLearner: 2.3.3 and 2.3.7 are just a minor upgrade. They don't have a different API Jan 31 11:01:23 Nonninz: Cool. I chose API 10 which is 2.3.3. Cool. Jan 31 11:01:37 Nonninz: Thank you for the explanation. Jan 31 11:02:19 Nonninz: sometimes I want the target api to be higher than the min api so is there anyway to stop the warning in that case? Jan 31 11:02:22 Nonninz: I remember seeing a pie-chart once here that explains which API corresponds to which build -- like 2.3.3 is Gingerbread (I think) Jan 31 11:03:21 jiduvah: there MAY be some eclipse settings, but I don't really know it Jan 31 11:03:31 ok Jan 31 11:03:48 going for lunch now, bbl Jan 31 11:04:34 Nonninz: This is it! http://developer.android.com/resources/dashboard/platform-versions.html Jan 31 11:04:38 Nonninz: Bon appetit! Jan 31 11:15:17 Is it possible to have more than one of these lines if one is debugging on different phones? ---> SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev" Jan 31 11:16:22 guys, the import android.os.IHardwareService doesnt exist anymore? whats the alternative? thanks... Jan 31 11:25:24 guys, the import android.os.IHardwareService doesnt exist anymore? whats the alternative? thanks... Jan 31 11:37:50 Guys, will Android remember my ContentResolver.addPeriodicSync setting across reboots or do I have to set it on every system startup? Jan 31 11:42:31 An example is as follows. We have an Activity, and one reciver (BroadcastReceiver) initiated in the method Activity.onResume () and unregister in Activity.onPause(). When Activity is destroyed, eg by changing the device configuration is run - Activity.onPause () - unregisters here BroadcastReceiver - Activity.onDestroy(). Still, after the destroy method, BroadcastReceiver recive messages for already damaged Activity theory Jan 31 11:42:50 How do it can be concluded that the context (Activity) Method onReceive (Context context, Intent intent) is already destroyed, and should not receive Message? Jan 31 11:45:34 I integrated Google Analytics but downloading the EasyTracker.jar and extending Tracked List/Activity instead of normal List/Activity, created my account on google analytics.. but even though i run the application i see nothing there Jan 31 12:22:00 son of a bitch Jan 31 12:22:22 hellooo Jan 31 12:22:25 i have a question Jan 31 12:22:37 hi Jan 31 12:22:47 I want to make a game for my daughter and I am going to use images from http://www.freeimages.co.uk/ Jan 31 12:23:00 k Jan 31 12:23:06 would it be legal to do some in app billing if people want to see more images? Jan 31 12:23:27 not that I intend to sell but you never know Jan 31 12:23:55 they do not want you to redistribute them to other people Jan 31 12:23:59 i read the terms, it seems that you can do anything as long as you make a splash screen with credits Jan 31 12:24:06 thats a bit vague though since that would imply not using them publicly really Jan 31 12:24:16 You have to look at their terms and the license Jan 31 12:24:18 does anyone know the basic workflow of launcher2 application in Icecream Sandwich? Jan 31 12:24:20 i would say contact them Jan 31 12:24:27 anees_: workflow? Jan 31 12:24:33 mikedg: yeah thanks Jan 31 12:25:08 yes, I was going through the ICS code to see how the Views are generated for displaying the apps in Launcher Jan 31 12:25:17 the same goes for sounds Jan 31 12:25:30 I want to make something where a child taps an animal and hears the sound Jan 31 12:25:48 i am so not going to record the sounds myself :) Jan 31 12:26:01 I was not able to find out a part which handles the generation of new screens as the screen gets filled with new apps Jan 31 12:27:40 hmmm running apps shows my app with 42 mb, heap watcher shows it with 25 mb, is that cause of native shit? Jan 31 12:29:26 mikedg: what does adb shell dumpsys meminfo say? Jan 31 12:30:04 <`juice> www.ircsupport.org general HelpDesk Support news. Jan 31 12:30:41 what does it mean in java when you just have a { } in your class? Jan 31 12:30:47 is that shorthand for a default constructor? Jan 31 12:31:06 appel1: what should i be looking for there Jan 31 12:31:36 it's showing heapsize 33835 Jan 31 12:31:54 which is closer to what im seeing in the app running manager Jan 31 12:35:41 I am using EasyTracker.jar and having my List/Activity extend TrackedList/Activity and have put the UA-xxx-x in the strings but i see nothing on the google analytics page Jan 31 12:35:42 mikedg: isn't it PSS that the running apps view shows? Jan 31 12:36:28 ugh duh yeah Jan 31 12:36:30 thats exact Jan 31 12:36:36 i'm still not awake i guess 36794 Jan 31 12:41:11 yeah, i guess i def have a memory leak in my list somehow Jan 31 12:41:19 i think its loading drawables from package info or something :/ Jan 31 12:42:05 first month with a 2gig plan on tmobile and i hit my limit already Jan 31 12:42:09 30kbps now :( Jan 31 12:56:02 Anyone use any team repositories for eclipse here? Jan 31 13:04:07 you hit your limit at 2gig? Jan 31 13:04:11 wtf are you doing :D Jan 31 13:04:32 i didnt even use 200mb this month Jan 31 13:04:46 hi Jan 31 13:04:51 how to create a login page in android with sqlite Jan 31 13:05:28 how to create a login page in android with sqlite Jan 31 13:05:35 uhh Jan 31 13:05:37 wtf Jan 31 13:05:51 smknight: what are you doing :) Jan 31 13:06:03 hi anyone there Jan 31 13:06:11 messaging, facebook, ssh Jan 31 13:06:20 surfing Jan 31 13:06:29 smkknight : hi Jan 31 13:06:33 *browsing Jan 31 13:06:40 i dont know, evernote flipped its shit the past 2 days for some reason Jan 31 13:06:46 500 megs Jan 31 13:20:12 Hi! I have some devices which use text-to-speech output, each of them containing the 'svox' files on the Micro SD card. However, I now want to move these files to the internal phone storage and remove all Micro SD cards from the phones. Does anybody know how to achieve this? Jan 31 13:21:38 hi, is there a possibility to get the inputs from the 4th-pole of the stereo jack which many phones have? Jan 31 13:22:45 or does anyone know where to find the "api" used? it was nice to attach a custom mic if the 4th pole supports line-in which i guess it does Jan 31 13:23:29 but attaching additional 3 digital inputs was nice for many arduino-like things Jan 31 13:25:04 ah, found something http://www.george-smart.co.uk/wiki/HTC_Headphones#Component_Values Jan 31 13:25:29 cougarten: I dunno, some phones use it as a serial debug console Jan 31 13:25:53 MDijkstra, it's just a bunch of resistors triggered or else the mic resistance Jan 31 13:26:11 MDijkstra, i just found that out Jan 31 13:26:26 I've worked on the headset driver for the original droid Jan 31 13:26:40 kind of remembered that Jan 31 13:27:12 MDijkstra, so do you know if it is possible to get those values with an app or would i have to mod drivers? Jan 31 13:27:32 erm, even worse, some drivers are terrible Jan 31 13:27:37 MDijkstra, there are a few apps catching the hardware buttons of my phone at least Jan 31 13:27:38 and let button events fall through Jan 31 13:27:44 that's what I had to fix on the droid Jan 31 13:27:52 it didn't unmask the interrupt quickly enough Jan 31 13:28:03 (or use top/bottom half interrupt processing) Jan 31 13:28:14 haha ok, i will check if buttons work on my cyanogenmod after all Jan 31 13:29:51 so unless you're only working with a specific phone Jan 31 13:29:58 it's probably impractical Jan 31 13:30:47 MDijkstra, it would be for myself only, but i there seems to be no driver for the desire-z/g2 in cyanogenmod Jan 31 13:30:53 so to much hassle for me Jan 31 13:31:12 oh i was wrong, its working Jan 31 13:31:56 With the Gingerbread update samsung removed the "keep awake when plugged in" setting and now the screen keeps turning off while i debug my applications Jan 31 13:32:05 lawl! Jan 31 13:32:18 anyone knows if there is an adb command that forces the screen to be on? Jan 31 13:32:18 Nonninz: make an app that starts a service that aquires a wakelock :/ Jan 31 13:32:23 thats about as good as you are going to get Jan 31 13:32:26 I am rooted if it helps Jan 31 13:32:46 mikedg: oh, that's right Jan 31 13:32:46 are you sure it was removed and not moved? Jan 31 13:32:51 mikedg: thanks :) Jan 31 13:32:54 np Jan 31 13:33:07 modifying an AdapterViews child element while a scroll motion is going on causes the scroll event to be discarded, I guess because the child view is probably getting its onLayout called again.. is there any way around this? Jan 31 13:33:11 mikedg: I am not sure, but i cannot find it in display Jan 31 13:33:30 try dev settings? Jan 31 13:33:37 storkme: modify the adapter Jan 31 13:33:38 not the view Jan 31 13:33:48 mikedg: and in application -> development is not there anymore Jan 31 13:33:56 then i have to call notifyDataSetChanged, which also causes the scroll event to get discarded canadiancow Jan 31 13:34:10 canadiancow: care to take a look at my async loader for list adapters? Jan 31 13:34:21 i actually need to shower and go to work :P Jan 31 13:34:26 Nonninz: hahaha sob Jan 31 13:34:28 :( Jan 31 13:34:29 you dont need to work! Jan 31 13:34:34 i know Jan 31 13:34:38 but i need to GO there Jan 31 13:34:41 https://github.com/kaze0/async-loader anyone can peak if they desire Jan 31 13:34:43 Nonninz: I'm assuming that they still require you to remove the connection to toggle usb debugging. Jan 31 13:34:58 well at least it stopped waking me up when it finished charging in the middle of the night :P Jan 31 13:36:01 00:38:55 <@Leeds> it's what I'm here for :) was trying to get my colleague to finish his moan about a client so I could deal with it Jan 31 13:36:11 yow. Jan 31 13:36:18 i should put cyanogenmod or an ICS beta Jan 31 13:36:42 Nonninz: oh god beeping when it's done charging is the most annoying thing Jan 31 13:36:50 lov: hmm it looks like they don't, but i am not sure. Jan 31 13:36:57 "Yay I have a message! :D .... nope, it's just samsung being aholes." Jan 31 13:37:13 lov: lol true Jan 31 13:39:51 hi there Jan 31 13:40:22 is there to get all child elements from an element ? Jan 31 13:40:28 Jan 31 13:41:37 fleur: http://developer.android.com/reference/android/view/ViewGroup.html#getChildCount() http://developer.android.com/reference/android/view/ViewGroup.html#getChildAt(int) Jan 31 13:41:48 use recursion Jan 31 13:42:15 use recursion Jan 31 13:42:21 use recursion Jan 31 13:42:29 use recursion Jan 31 13:42:55 use recursion Jan 31 13:43:00 lov: thank you Jan 31 13:43:01 GOTO 10 Jan 31 13:43:17 fleur: np, no guarantees that this is what you want and/or that it'll work. Jan 31 13:44:08 it seems to be that, I kept bumping into xml functions while googling Jan 31 13:45:29 I'm having a strange problem, when my Galaxy S, goes to idle with 3G connection activated it stops calling my RTC_WAKEUP, but it don't happen when in wi-fi connection. I'm testing acquiring a PARTIAL_WAKELOCK and SCREEN_DIM_WAKELOCK, the problem continue with them also. Someone have any idea? Jan 31 13:45:33 "bumping into xml" sounds painful Jan 31 13:48:25 lov: have you ever seen the movie, Crank? Jan 31 13:53:12 mikedg: no, isn't that the one where jason statham keeps shocking himself with electricity or something? Jan 31 13:53:30 thats crank 2, but i figured less people know about that Jan 31 13:53:37 anyway i want to make an android game inspired by that Jan 31 13:53:46 but with a dog who has robot legs Jan 31 13:53:53 and opposable thumbs so he can use a gun Jan 31 13:54:03 and who looks like jason statham Jan 31 13:54:23 elyezer: that's strange. Jan 31 13:54:28 MDijkstra, at least the play/pause button will be really easy to use and implement. it's just a short of the 4th pole to ground. I can easily build a custom button like that (or even 4 to 3-pole adapter not to loose my stereo jack to the button) and than catch KEYCODE_MEDIA_PLAY_PAUSE Jan 31 13:54:45 yeah, again Jan 31 13:54:49 (: Jan 31 13:54:55 on some phones these will fall though if they come in rapid succession Jan 31 13:55:28 elyezer: you shouldn't need to acquire locks of any kind to use RTC_WAKEUP Jan 31 13:55:34 elyezer: can you test this code on another device? Jan 31 13:55:40 now mine was a motorola, and moto driver developers can't code Jan 31 13:55:48 haha Jan 31 13:55:49 so I dunno about HTC or samsung Jan 31 13:56:03 MDijkstra: it becomes an issue of "least worst" for cellphones :( Jan 31 13:56:11 At this point I think Samsung is the least worst Jan 31 13:56:36 elyezer: if you have a test case that works on devices that are not your samsung devices, submit to b.android.com. Jan 31 13:56:37 is there any doc summing up sleep modes? Jan 31 13:56:49 cougarten: that's an open ended question. Jan 31 13:57:25 lov, ok, than maybe: how deep may my phon sleep to still record audio or something Jan 31 13:57:41 cougarten: I'm assuming you'll need at least a partial wakelock Jan 31 13:57:53 that will keep the cpu awake while not making any demands on the screen. Jan 31 13:57:59 i see Jan 31 13:58:31 http://developer.android.com/reference/android/os/PowerManager.html Jan 31 13:58:33 lov, well as it is a personal app my cpu-govnor might keep energy consumpion down a little Jan 31 13:58:40 ty Jan 31 13:59:13 cougarten: your "cpu-governer" (which I'm assuming is a rooted 3rd party app) just overrides the default settings. Jan 31 13:59:32 you'll definitely sip power as you record audio, but it's not a lot Jan 31 13:59:38 the screen takes the most power, by far Jan 31 14:00:39 lov, good to hear. i might even squeeze what i need to record into heap Jan 31 14:00:56 or ram or what it is called Jan 31 14:01:03 .... Jan 31 14:01:09 or cache? Jan 31 14:01:12 O_o Jan 31 14:01:14 or cache :) Jan 31 14:01:19 cougarten: if you're recording more than a few seconds, you should stream to a file, just to be safe. Jan 31 14:01:52 you can look at how much data you'll use by making a couple of simple calculations Jan 31 14:01:59 lov, i will build a 5-10min ringbuffer and only save onTdemand Jan 31 14:02:11 ~on demand Jan 31 14:02:29 I have a Button. How to keep its aspect ratio on different resolutions without setting its size permanently to A x B pixels? Jan 31 14:02:36 i just have to see if there is a high level way of encoding without writing to a file Jan 31 14:02:43 er Jan 31 14:02:48 5-10 minutes, you probably want to write to a file. Jan 31 14:03:11 cougarten: calculate how much data you'll be pulling. Jan 31 14:03:13 lov, if its encodedit was way under 16mb Jan 31 14:03:29 i mean compresed, not encoded Jan 31 14:03:32 cougarten: but now you have the overhead of encoding on the fly, and the overhead of keeping that encoded audio around. Jan 31 14:03:46 right you are... Jan 31 14:04:00 Remember, you have 32MB of heap memory to play with. Jan 31 14:04:02 encoding is very expensive, cpu wise... Jan 31 14:04:02 that's for your WHOLE app. Jan 31 14:04:10 do i have to worry about my sd card if i overwrite my buffer all day long? Jan 31 14:04:21 cougarten: I don't know, do you? Jan 31 14:04:32 SD cards have a limited number of writes but that number is generally pretty high Jan 31 14:04:35 lov, depends on the file system Jan 31 14:05:02 i guess it is smart enough to shuffle the free space used Jan 31 14:05:10 napster: not quite sure what you mean Jan 31 14:05:17 but in general thats why you don't keep logs Jan 31 14:05:36 at least on solid-state Jan 31 14:05:50 I need help with option menues, I made my xml and put in the menu folder and did my oncreateoption menu call with menuInflater but its not commin up when I press the menu key Jan 31 14:06:05 cougarten: it depends on your use case I guess but I'd really recommend just writing the data and not worrying about it. Jan 31 14:06:09 am i missing something? there are no errors in eclipse Jan 31 14:06:13 Crizkuro: which API are you targeting? Jan 31 14:06:18 4.0 Jan 31 14:06:24 Crizkuro: pastebin your code Jan 31 14:06:32 kk one sec Jan 31 14:06:37 MDijkstra: I want to keep my button exact square. even though the parent layout make it scale, it should retain its square shape. But I cannot set its size to 100dip X 100dip to achieve this. Jan 31 14:06:54 is there any other way>? Jan 31 14:06:58 napster: seems you should fix your layout Jan 31 14:07:09 lov, i guess so too :). but regarding that 32mb... that was 3 minutes of wav at least :) don't need much space for the rest of the app Jan 31 14:07:10 MDijkstra: fix like? Jan 31 14:07:12 napster: or wrap the button in another LinearLayout Jan 31 14:07:17 napster: and center it in there Jan 31 14:07:28 thanks a lot to all of you Jan 31 14:07:29 ok MDijkstra ok let me try that Jan 31 14:07:40 lov: http://pastebin.com/DQ4rYGB6 Jan 31 14:07:43 napster: try dp Jan 31 14:07:47 http://stackoverflow.com/questions/2000892/whats-the-relationship-between-pixels-and-scaled-pixels Jan 31 14:07:50 cougarten: use adb shell dumpsys meminfo your.package.name, look how much memory you use idling. Jan 31 14:07:57 subtract that from 32MB Jan 31 14:08:06 then subtract another 2-3MB for wiggle room. Jan 31 14:08:07 will do :) Jan 31 14:08:10 that's how much space you'll ACTUALLY have. Jan 31 14:08:14 DashCC: it's a bit unclear if he means scale the button based on screen DPI Jan 31 14:08:19 or on total screen estate Jan 31 14:09:47 Crizkuro: that looks reasonable. What does your menu xml look like? Jan 31 14:09:52 Yes, MDijkstra Jan 31 14:09:59 Crizkuro: also, what API level are you working at? Jan 31 14:10:05 4.0 Jan 31 14:10:14 which is 14 Jan 31 14:10:17 I think Jan 31 14:10:47 Why does the Android browser work with my mobile webapp but my embedded WebView doesn't? (on Galaxy Nexus) . It works fine on my wife's Nexus S Jan 31 14:10:54 lov: http://pastebin.com/7YNTRePS Jan 31 14:11:12 well 15 Jan 31 14:11:15 4.0.3 Jan 31 14:11:26 menus as such are deprecated in HC Jan 31 14:11:37 try setting your targetSdk to 10 or so, see if the menu suddenly appears. Jan 31 14:11:51 for HC/ICS, you'll want to use the ActionBar Jan 31 14:11:52 kk one sec Jan 31 14:12:53 Crizkuro: http://stackoverflow.com/questions/9035272/displaying-menu-items-in-the-android-ics-action-bar Jan 31 14:13:23 If I start downloading a file on Android and have trouble with the connection, using the Apache HTTP library.. What would happen? Will the download abort after some timeout? Would that throw an IOException? Is it possible (and or likely) that I end up with a corrupt file? Jan 31 14:14:07 http timeout Jan 31 14:14:09 pehlert: ideally the framework will switch over the connection on your network change seamlessly. If not, you might get some sort of io exception Jan 31 14:14:26 it'll throw an http timeout exception of some kind Jan 31 14:14:28 you kind of need to define "trouble with the network" Jan 31 14:14:41 if your network is just timing out, you'll get a timeout exception Jan 31 14:14:53 just queue your http requests and re-add it to the queue if theres an exception Jan 31 14:15:09 (don't forget proper error handling for if this happens continuously....) Jan 31 14:15:21 (i.e. give up eventually) Jan 31 14:15:26 lov: Well for instance I lose my 3G connectivity or anything Jan 31 14:15:49 expect network issues to happen any time your performing post and get requests Jan 31 14:16:03 pehlert: you'll probably get an ioexception of some kind then. handle it. Jan 31 14:16:04 that will be my first time using actionbar how will that look in the app? Jan 31 14:16:19 deploying such features in the file I guarantee exceptions will occur and need to be handled gracefully Jan 31 14:16:23 Crizkuro: try it and see I guess. Read some of the HC/ICS docs about the action bar. Jan 31 14:16:30 Crizkuro: depends if you do it right ;-) Jan 31 14:18:04 i'll give it a try, but if i use actionbar cant i just get it to goto the settings activity? Jan 31 14:18:41 like swype right goes to settings activity Jan 31 14:18:45 lot, MrChyizPyiz: Okay, thanks for your help. It's safe for me to just abort the download in this case. I'm basically working on a self updater for my app and it happened on another phone (that I don't have access too right now) that the user got some sort of package unparsable error when the app tried to open the downloaded apk. I'm handling IOExceptions of any kind by just aborting and retrying later, but he somehow ended up with Jan 31 14:18:46 corrupt file which shouldn't have happened Jan 31 14:25:58 what's wrong with the Market updater? :) Jan 31 14:27:33 Has anyone ran into the "java.lang.IllegalArgumentException: No view found for id 0x7f090013 for fragment" error? I am trying to load a fragment into a container and I've successfully loaded this fragment before into another container, but I am getting the above now. Jan 31 14:27:47 The view does in fact exist. Jan 31 14:28:19 question: i have to Date objects with the same date. How do I test the equality? dateOne.equals(dateTwo) seems to return false Jan 31 14:28:28 s/to/two/ Jan 31 14:28:49 Date.getTime() == Date2.GetTime() Jan 31 14:28:56 developernotes: clean, restart xcode Jan 31 14:29:01 uninstall app from device/emu Jan 31 14:29:07 err Jan 31 14:29:08 generallee5686: they are two different instances Jan 31 14:29:09 xcode, lol Jan 31 14:29:12 eclipse Jan 31 14:29:21 MDijkstra: hmm, I did a reboot this morning. Jan 31 14:29:33 but the point to the same exact date Jan 31 14:29:34 I have this occasionally Jan 31 14:29:41 doing those 3 things always solves it Jan 31 14:30:08 Nonninz: Its not a static function, just do date1.getTime() == date2.getTime(), getTime returns a long Jan 31 14:30:11 at least: the first get written in json and then parsed back. their toString() is identical Jan 31 14:30:24 yeah, I am seeing the same on the device, I'll wipe the app and see if it causes a difference. I tried loading several different fragments I have, which have loaded successfully into other containers and I am getting the same error - pretty strange, caught me off guard. Jan 31 14:30:36 generallee5686: OH! sorry I misread Jan 31 14:30:44 Nonninz: don't date objects also encode time? Jan 31 14:30:50 yea Jan 31 14:30:55 generallee5686: thanks i'll try :) Jan 31 14:31:15 Nonninz: you just want to see if they are the same day? Jan 31 14:32:05 generallee5686: nope, the time up to the second Jan 31 14:32:24 can you parse json using android sdk ? Jan 31 14:32:26 Nonninz: that will compare up the millisecond Jan 31 14:32:36 I mean of course you can still code a json parser, but natively Jan 31 14:33:00 fleur: I use Gson Jan 31 14:33:16 fleur: it's a library Jan 31 14:33:42 generallee5686: it worked. thanks :) Jan 31 14:33:52 Nonninz: np Jan 31 14:33:56 fleur: there's a JSON parser built in Jan 31 14:34:03 Nonninz: I'll looked into that Jan 31 14:34:06 fleur: it's not a pull parser, however, it requires that you have the whole thing. Jan 31 14:34:10 lov: i think gingerbread and up Jan 31 14:34:23 fleur: http://developer.android.com/reference/org/json/JSONObject.html Jan 31 14:34:30 generallee5686: nope, API level 1. Jan 31 14:34:51 lov: I was just looking how to get things from http properly Jan 31 14:34:52 lov: oh i must be thinking when they basically integrated gson into the sdk Jan 31 14:36:13 fleur: fleur use an HttpURLConnection Jan 31 14:36:46 i'm an idiot. protip: don't try and do a code rollout when half your files are missing from version control. it probably wont work. Jan 31 14:36:47 Nonninz: if it's not too long, could you explain why you're using gson instead of org.json.JSONObject Jan 31 14:36:50 ? Jan 31 14:37:00 MDijkstra: I just removed the app from device and reinstalled, it still generates the same error, have you seen this before with fragments? Jan 31 14:37:10 nope, not really Jan 31 14:37:14 storkme: awesome job, well done Jan 31 14:37:28 have only written one app that uses fragments though Jan 31 14:38:06 has somebody of you ever written an own implementation of the Filter class ? Jan 31 14:38:20 In an ArrayAdapter context.. wtf is it there for ? Jan 31 14:38:47 Something definitely seems to be amuck, these fragments are loaded within tabs, and I can successfully load these fragments in the first tab if I navigate to them, attempting to do so in the second tab fails. Jan 31 14:38:49 "A filter constrains data with a filtering pattern." Jan 31 14:38:56 thx lov Jan 31 14:39:02 if you have a phone with a keyboard, open up the contacts app, and type a key. Jan 31 14:39:08 Your contacts are mysteriously filtered! Jan 31 14:40:10 DashCC: the point is that you can have your adapter set up a filter, and then invoke that filter to only get certain items. Jan 31 14:40:30 fleur: It wasn't really my decision Jan 31 14:41:40 fleur: by the way, with gson you can define a class having a field for every.... uh, "field" in your json object Jan 31 14:42:07 imagine I want to call an API which returns suggestions Jan 31 14:42:16 for an autocomplete field Jan 31 14:42:24 what do I need said Filter for ? Jan 31 14:42:36 and with new Gson().fromJson(json_string, yourclass.class) is the only call you'll need to parse your json object Jan 31 14:43:26 Nonninz: that's what I'm reading right now, and this particular feature seems interesting Jan 31 14:44:19 Is there a way to detect if the phone is in a state able to place a call? Jan 31 14:44:30 well anyway, lov, Nonninz thanks to both of you for your time, I can go back to my trials for some hours ;p Jan 31 14:48:28 ok so i went to the project properties and set the api target to 10 and when I try to run it in a 2.3.3 avd it fails sayin it requires api 15 Jan 31 14:49:04 DashCC: I don't know what exactly you're doing, but it sounds like you don't necessarily want to use an Adapter in that case. Jan 31 14:49:10 nvm I forgot the manifest must be changed Jan 31 14:49:13 well, you might. Jan 31 14:49:14 Crizkuro: you may need to lower also the minimum sdk requirement in the manifest Jan 31 14:49:23 :D Jan 31 14:49:25 Give the filter your partial word which you want to autocomplete Jan 31 14:49:28 What would you suggest ? Jan 31 14:49:28 have it do whatever it does Jan 31 14:49:35 it'll return the list of words which are valid Jan 31 14:49:42 have the filter notify that it's done Jan 31 14:49:55 the adapter now can iterate on that filter for those words and display them as appropriate to the adapterview Jan 31 14:49:59 * lov shrugs Jan 31 14:50:18 Crizkuro: don't change the target api, just set the targetSdk value in the manifest. Jan 31 14:50:21 yeah thats what I was trying to do. I was looking at a blog post and just wondering what the Filter was for.. because I couldnt quite wrap my head around it Jan 31 14:50:24 btw lov, even with api 10 its still not pulling up my menu Jan 31 14:50:25 oh how i love exchange... someone's reply to an email came in before that email Jan 31 14:50:32 Crizkuro: the minSdk value specifies the minimum level. the targetSdk value sets the compatibility api (i.e. the latest you tested at) Jan 31 14:50:52 Crizkuro: not sure what to suggest offhand. Jan 31 14:50:59 does anyone know a phone number for the android market people? Jan 31 14:51:08 Crizkuro: attach a debugger, see if the onCreateMenu method is ever called. Jan 31 14:51:15 Amphoras: I think they post their sales number. Jan 31 14:51:28 yeah it doesnt make since I know the code is right, but for some reason it will not open the menu Jan 31 14:51:29 MDijkstra: ty, it worked Jan 31 14:51:33 Amphoras: there's no "hey devs" number though, google is really shitty at communicating (though with the level of traffic they get they ahve to be) Jan 31 14:51:43 Crizkuro: attach a debugger, test your assumptions. Jan 31 14:51:51 If onCreateMenu or whatever isn't ever called, start there. Jan 31 14:51:52 does my menu need its own activity? is that the reason? Jan 31 14:51:55 no Jan 31 14:52:07 verify that onCreateMenu is called, first. Jan 31 14:52:10 erm Jan 31 14:52:14 oh crap its not called lol Jan 31 14:52:19 there you go. Jan 31 14:52:22 hahaha Jan 31 14:52:22 ive found google to be pretty good at communication Jan 31 14:52:28 lov: yeah i can understand that. they won't reply to my emails/tickets for over a month now, so trying to find another way to contact them Jan 31 14:52:31 jcase: it depends on what level you're working. Jan 31 14:52:33 anyway, thanks lov ;) Jan 31 14:52:35 I cant belive I miss something that simple Jan 31 14:52:38 i have a WebView with an html into the resources, which would be the more easy way to search a text string (and scroll to its position) into this WebView? does WebView have some function for that? Jan 31 14:52:45 jcase: if you're a total bro with the dev rels or something, they're pretty good. Jan 31 14:52:45 ty lov Jan 31 14:52:50 if you're j random jerkoff from market, GOOD LUCK. Jan 31 14:53:21 lol Jan 31 14:53:24 Amphoras: don't know what to suggest, sorry. bug a dev rel I guess. Jan 31 14:53:24 nick taken Jan 31 14:53:36 dev rel are useless Jan 31 14:53:37 lov: dev rel? Jan 31 14:53:39 they never reply Jan 31 14:53:40 ever Jan 31 14:53:40 canadiancow|work: only for you :> Jan 31 14:53:46 even when they hand you a business card Jan 31 14:53:48 and say "email me" Jan 31 14:53:49 canadiancow|work: morrildl is my bro Jan 31 14:53:56 and roman nurik is generally good Jan 31 14:53:57 Amphoras, write a well worded email, and send it to the correcet person Jan 31 14:54:00 roman doesnt reply Jan 31 14:54:04 be polite Jan 31 14:54:07 09:53:46 < lov> canadiancow|work: only for you :> Jan 31 14:54:11 ctate and evancharlton are quite nice though :) Jan 31 14:54:25 but they're not devrel Jan 31 14:54:27 ctate and evancharlton are also super bros. Jan 31 14:54:42 I've scared off romain though : ( Jan 31 14:54:46 lol Jan 31 14:54:50 i dont know them but ive only found one that didnt reply when i sent a specific query to them Jan 31 14:55:09 jcase i've found that no one replies Jan 31 14:55:11 period Jan 31 14:55:22 jcase: I have been. They sent me an email, and I replied, then they didn't respond. I sent another a week later, then tried sending a ticket through the help center another 2 weeks leter. Still have had no response Jan 31 14:55:23 HI A GIANT ANDROID IS ATTACKING THE TOWN gets ignored Jan 31 14:55:34 later* Jan 31 14:55:54 Amphoras, sent to the right person? Jan 31 14:55:59 lov: in other devices I've tested only in wi-fi networks, I've requested 3G plan for the other devices too., thanks for your help Jan 31 14:56:16 jcase: yes, the original email said "reply to me" and I did Jan 31 14:56:28 hmph Jan 31 14:56:44 Amphoras, app taken down? Jan 31 14:57:03 canadiancow|work: yes Jan 31 14:57:08 yea i wish you luck Jan 31 14:57:11 never got mine sorted out Jan 31 14:57:17 in the end i just republished it with a different package name Jan 31 14:57:23 canadiancow|work: resolved; working as coded. Jan 31 14:57:36 ? Jan 31 14:57:42 I couldn't see how it broke the part they said it did so I asked them to tell me what was wrong with it Jan 31 14:57:57 wait they actually told you why? Jan 31 14:58:03 mine said "it violates a content policy" Jan 31 14:58:04 canadiancow|work: next time you go to i/o, bring liquor and give it to the dev rel along with a love note and a rose, idk. Jan 31 14:58:24 canadiancow|work: not really, For specific details regarding this particular violation, please see the Spam and Placement in the Store section of our Content Policy. Jan 31 14:58:40 yea mine said "See our Content Policy" Jan 31 14:58:42 :P Jan 31 14:58:42 canadiancow|work: work app or personal app? Jan 31 14:58:42 if it's a work app sounds like you have lawyers for that :P Jan 31 14:58:45 personal Jan 31 14:58:46 canadiancow|work: I can't see how it breaks any of those points Jan 31 14:59:00 so one time my boss got some boss at google to make an engineer email me Jan 31 14:59:01 Is there a way to obtain only a partial stack trace (i.e. get the last N StackTraceElement) instead of getting the full stack trace on Thread.getStackTrace() ? Jan 31 14:59:09 the email concluded with "let me know if you have any questions" Jan 31 14:59:10 i replied Jan 31 14:59:12 never heard back Jan 31 14:59:20 fpillet: not really, you can filter out the results yourself manually. Jan 31 14:59:40 canadiancow|work: you need to start CCing :P Jan 31 14:59:41 I can see how they might think it broke one, but they won't even reply to say if it was that Jan 31 15:00:00 lov: I'm not trying to filter. I do a stack trace every time I log something, just to extract the method that called the log method. This is very expensive, I'm trying to find a lighter way to do it Jan 31 15:00:01 dear so and so, (ccs boss, boss's boss, your boss, your boss's boss) Jan 31 15:00:05 lov: everyone was cc'd Jan 31 15:00:16 canadiancow|work: they just don't like zynga I guess :> Jan 31 15:00:33 and what about me as an individual prior to being employed by zynga? Jan 31 15:00:33 lov: I write in a text file every time the alarm reach the timeout, but when the 3G connection is activated the alarm seems to not happen, that is very weird Jan 31 15:00:36 fpillet: yeah, that sucks. You pretty much don't have a choice here. Jan 31 15:00:51 hrm okay … I'll have a look at maybe the dalvik native interface Jan 31 15:01:05 hello Jan 31 15:01:07 canadiancow|work: canadians aren't real people :> Jan 31 15:01:16 fpillet: I don't think going to the jni will make this any faster. Jan 31 15:01:37 fpillet: adb shell dumpsys alarm Jan 31 15:01:38 unless native has a way to crawl the backtrace one by one. I just need to go up two levels Jan 31 15:02:02 fpillet: you should be able to pull the trace as an array of elements Jan 31 15:02:16 Not sure I made myself clear Jan 31 15:02:28 http://developer.android.com/reference/java/lang/Throwable.html#getStackTrace() Jan 31 15:02:34 that's about the best and only access you really get. Jan 31 15:02:45 it's not for Throwables actually Jan 31 15:02:49 it's for every log statement :-) Jan 31 15:02:49 so to get the stack trace, you throw an exception and get its stack trace and ...? Jan 31 15:03:00 fpillet: you'll need to throw an exception to get a stacktrace. Jan 31 15:03:02 No, Thread.getCurrentThread().getStackTrace() Jan 31 15:03:08 I don't believe that there's a regular "give me a stacktrace" method in java outside of this. Jan 31 15:03:08 oh, that's better Jan 31 15:03:16 fpillet: that actually just throws an exception and catches it :P Jan 31 15:03:18 I've seen that Jan 31 15:03:26 I'll look at the source code Jan 31 15:03:36 But this certainly slows down my logging by a large factor Jan 31 15:03:44 fpillet: yeah, I can understand. Jan 31 15:03:58 MDijkstra: renaming the container id seems to have solved the problem, not sure why that would be, but thought I'd share. Jan 31 15:03:59 fpillet: you might want to only do this for very important logging calls. Jan 31 15:04:30 lov: yes I added a switch to completely disable it Jan 31 15:04:45 But it's soooo convenient Jan 31 15:04:53 Hi... I have a problem building a native executable that uses boost. I get "undefined reference" issues for STL stuff at the link stage. It turns out that ndk-build puts the stdc++ library before boost on the link command - which leads to that problem. If I manually edit the link command and move the boost libraries in front of stdc++, it links fine. Is there a way to control this in the Android makefile? Jan 31 15:04:55 Thanks Jan 31 15:04:56 fpillet: peek into #java and see if they have an idea. Jan 31 15:05:02 but I'm pretty sure that you're stuck :( Jan 31 15:05:12 boost is for retards to get them to approximately normal speed. Jan 31 15:05:20 lov: this is used for this imgpaste.com/iQ7D.png Jan 31 15:05:22 oops Jan 31 15:05:25 http://imgpaste.com/iQ7D.png Jan 31 15:05:35 hmm, I think my chances of contacting them are pretty low: http://www.customerservicescoreboard.com/Google Jan 31 15:05:41 fpillet: yeah, I get what you're going for Jan 31 15:05:47 Each log entry has a handy header that shows where it originates from Jan 31 15:05:50 fpillet: c++ has some awful nice preproc macros for this Jan 31 15:06:03 sadly, java is kind of lacking here. Jan 31 15:06:08 :( Jan 31 15:06:20 Yeah that's what I use on the Obj-C side, macros make it easy with __FILE__ __LINE__ and __FUNCTION__ Jan 31 15:06:25 Anyone knows how to control the order of things in the ndk-build link command? Jan 31 15:06:33 fpillet: pop into #java, see if they have a suggestion on how to do this quickly, but I don't think that it exists. Jan 31 15:06:37 if it does exist, please let me know. Jan 31 15:06:44 The Java stacktrace is pretty comprehensive, but getting a full one at each log is killing performance Jan 31 15:06:53 I'd love to know about it myself, because my logging statements are filled with hardcoded classnames, etc. Jan 31 15:07:02 I'll look into the native side, maybe fiddling with Dalvik could help Jan 31 15:07:12 LoggerFactory.getLogger(FooClass.class). :-/ Jan 31 15:07:14 Hardcoded classnames?? Jan 31 15:07:24 fpillet: Log.i("Foo.bar: biz baz bar"); Jan 31 15:07:50 oh I see Jan 31 15:07:51 or Log.i(getClass().getName() + ".bar: biz baz bar") Jan 31 15:08:24 stupid chrome on OS X is stuck believing I am without network connection. Jan 31 15:08:26 *sigh* Jan 31 15:08:45 when using PendingIntent.getBroadcast(context, requestCode, intent, flags) is there any special flag that I need to use with AlarmManager RTC_WAKEUP? When my app has more than one alarm set, I must use different requestCode for each one? Jan 31 15:09:01 lov: https://github.com/fpillet/NSLogger/blob/master/Client%20Logger/Android/example/com/example/DroidLogger.java#L15 Jan 31 15:09:15 It's much more automated with a StackTraceElement Jan 31 15:09:22 fpillet: it's also much more slow :> Jan 31 15:09:29 oh yes Jan 31 15:09:45 fpillet: again, I definitely understand what you're doing, what you're asking, and what you want. Jan 31 15:09:52 I just don't have any good info for you :( Jan 31 15:09:56 Definitely … But the benefit of having deep logging everywhere in the product outweighs the slowdown Jan 31 15:09:58 and I'd love to have it myself. Jan 31 15:10:14 Anyway … If I solve this problem I'll be sure to let you know Jan 31 15:10:30 also, your naming style stinks; please use java conventions when using java :> Jan 31 15:10:52 (also, Droid is a VZW marketing term; please use AndroidLogger!) Jan 31 15:11:00 ((pet peeve) Jan 31 15:11:00 ) Jan 31 15:11:04 haha okay Jan 31 15:11:44 Actually the all caps method names are very specific to this class, because I use them like macros Jan 31 15:12:10 Only diff. with Obj-C is I need to add a test before the call Jan 31 15:12:39 if (Debug.D) Debug.L.LOG_MARK("checkpoint"); Jan 31 15:12:55 maybe not nice to read but very effective. Best I could come up within Java's constraints Jan 31 15:13:45 Why not just make Debug.L.LOG_MARK be a no-op unless Debug.D is true? Jan 31 15:13:56 how would I do this? Jan 31 15:14:07 two implementations? Jan 31 15:14:08 I assume this question is some kind of trap Jan 31 15:14:47 well, err. No. Why not just do if (Debug.D) in that implementation? And why LOG_ anyway? Why can't it be just Debug.L.mark("foo")? Jan 31 15:15:10 come to think of it, what's the point of the "L."? Jan 31 15:15:19 The L is an instance of the logging engine Jan 31 15:15:29 != null only in debug mode Jan 31 15:16:12 Is there any way to obtain a instance of ServiceState without setting up a PhoneStateListener? :S I just want to know current state, not what the state is changed to... Jan 31 15:16:22 if you're willing to take the overhead of a method call, let the instance always exist, and just let the call be a no-op if you're not in debug Jan 31 15:16:37 I'm not willing to take the overhead of a method call Jan 31 15:16:53 I want this to be completely wiped out in production builds Jan 31 15:16:58 JIT inlines method calls most likely. Java method calls are cheap. Jan 31 15:17:03 actually, looking at your syntax, I'm assuming that this is C++ or some variant Jan 31 15:17:06 why not just use macros here Jan 31 15:17:13 have a debug build and a regular build Jan 31 15:17:15 macros? in java? fun Jan 31 15:17:26 I have not looked deep enough I guess :-) Jan 31 15:17:28 oh nvm Jan 31 15:17:29 What might kill you is object allocation, so I think logger implementations should spend more effort in guaranteeing efficiency of the String that would be logged, except that log level was disabled and it wasn't logged after all Jan 31 15:17:35 I read alankila's statement as yours Jan 31 15:17:47 java does not have macros Jan 31 15:17:52 for instance, android is moronic and its Log.i() has no support for MessageFormat or String.format Jan 31 15:18:15 alankila: Log.i(String.format("foo %d", 5)); Jan 31 15:18:16 alankila: I can't affort not disabling my log statements. I use a LOT of them, really Jan 31 15:18:31 alankila: if you care enough, use varargs and make custom logging Jan 31 15:18:32 lov: yes, but that's bad. Assume you do Log.d and not Log.i Jan 31 15:18:39 So even if they don't spit out anything, there's a lot of work just for nothing in production Jan 31 15:18:41 usually not logged, string constructed anyway. Fail. Jan 31 15:18:45 fpillet: pass your .java thru the c preprocessor :P Jan 31 15:18:49 haha Jan 31 15:18:55 mitch0: +1 boss point Jan 31 15:19:15 or just ditch java and go native Jan 31 15:19:20 alankila: exactly. Sometimes I have complex assembly of log strings Jan 31 15:19:42 mitch0: I use the tools adapted to the platforms I'm running on. In this case, Java is okay, with some native code involved Jan 31 15:20:07 *shrug*. I'm sorta bored with java, hence I go native instead with a minimal glue Jan 31 15:20:08 I usually just delete all logging statements after I'm satisfied that something works, so I personally don't give a rat's ass about how logging is done, truly. Jan 31 15:20:17 for me they are a temporary scaffolding to be removed Jan 31 15:20:31 alankila: yeah we don't see things the same way I guess Jan 31 15:20:49 fuck it Jan 31 15:20:51 do it all in asm Jan 31 15:20:53 we'll do it live Jan 31 15:20:57 I have a large body of log info spit out by my code. Every time there's a single issue, I just run with logging on an filter out what I don't want to see Jan 31 15:21:26 It proved to be an extremely effective way to debug issues very quickly Jan 31 15:21:55 I bisect the error by adding one debug statement at key point to find out what the state was then (or a breakpoint, depending on what exactly is my environment. android debugging is pretty slow.) Jan 31 15:22:09 We have a complex product, hard to debug, so logging is fundamental to understand what's going on within the app Jan 31 15:22:37 Actually, this product is the primary reason why I wrote NSLogger Jan 31 15:22:39 yes, to paraphrase one annoying guy: complex products suck. If you build one, you suck. Jan 31 15:23:07 http://pastebin.com/8ahH4r9f is there anything wrong with that ? i get the exception although mobile is connected to the internet Jan 31 15:23:13 The guy was not only annoying, he was stupid Jan 31 15:23:22 sounds like crappy design Jan 31 15:23:25 he's steve yegge, but he said this of large products. Jan 31 15:23:29 a product can be complex due to its nature, yet be well architectured Jan 31 15:23:33 or large codebases. Jan 31 15:23:45 Your IDE is complex, yet it doesn't suck. A compiler is complex, yet it doesn't suck Jan 31 15:23:52 sure, sure, the division of accidental and incidental complexity is familiar to all Jan 31 15:24:09 umm... accidental and inherent rather Jan 31 15:24:09 fpillet: you think an IDE doesn't suck .. i don't think you're the best judge of well-architected ;) Jan 31 15:24:38 when using PendingIntent.getBroadcast(context, requestCode, intent, flags) is there any special flag that I need to use with AlarmManager RTC_WAKEUP? When my app has more than one alarm set, I must use different requestCode for each one? Jan 31 15:25:17 sometimes debug logging is a quick and easy way to solve something, but "i have a giant hairy ball of code that's hard to debug" is an entirely separate issue Jan 31 15:25:31 I'm not saying my code is hard to debug Jan 31 15:25:37 Actually my code is very nice to work with Jan 31 15:25:44 although I personally only want to play in a simple world where things aren't complex. I hate complexity in all forms. Often it's a business failure to have to deal with it, incompetent people specified product poorly and you're left solving an unsolvable problem and it's too late to tell people that you guys fucked up, because everything's signed and delivery dates have been set. Jan 31 15:25:52 The PRODUCT is harder to debug. Because of its nature Jan 31 15:25:58 * alankila has worked in such a job previously, where things were simple but moronic customer-facing people constantly screwed up Jan 31 15:27:32 yeah, it's hard being a genius Jan 31 15:27:41 tml_: perfect Jan 31 15:27:43 for instance, they would promise that we'd localize the "Browse..." text after an upload field that is constructed by the browser, or make alert dialogs look like the win32 dialogs their customers were used to seeing. All kinds of stupid shit like that, which any sane person would have guided the customer to not want, but they were only capable of nodding. Jan 31 15:27:57 I have lots of fun working on this product. But since it's so specific, we had to develop the tools to instrument the code with enough probes to "see" the app doing its work. There's nothing wrong with that. Jan 31 15:28:17 And over time, it proved INCREDIBLY useful Jan 31 15:28:41 Lots of people don't understand why, fair enough. Not my little logger has grown a user base of engineers that understand its value :-) Jan 31 15:28:47 s/Not/Now/ Jan 31 15:29:22 * evancharlton is wondering when he /joined #android-dev-circlejerk Jan 31 15:30:28 Anyway, I was not here to try and convince anyone, just looking for alternate solutions to this stack trace thing :-) Jan 31 15:30:48 fpillet: is it open source? Jan 31 15:30:53 The logger? yes Jan 31 15:31:04 Lots of people use it on iOS, and I ported it to Android too Jan 31 15:31:16 https://github.com/fpillet/NSLogger Jan 31 15:31:42 fpillet: thanks, I'll give it a look when I have time Jan 31 15:31:53 right now I am using the Ln class of Roboguice Jan 31 15:32:34 The selling point (if you will) of NSLogger is not so much the logging classes than the desktop viewer. Makes all the difference (this, and the ability to log images & binary data) Jan 31 15:33:00 anyone know what import I need for getActivity() i cant seem to find it on the dev site Jan 31 15:33:37 fpillet: oh, nice Jan 31 15:33:43 sure, using the logcat would not be very glamorous for binary data, and writing to files sucks. and I have a beef with how shitty the Log.x inteface is. Jan 31 15:33:45 Criz, do you have eclipse? Jan 31 15:33:51 yeah Jan 31 15:33:58 press ctrl + shift + o? Jan 31 15:34:02 it imports what you need Jan 31 15:34:03 because it doesn't have a String.format or MessageFormat.format support by default Jan 31 15:34:10 kk Jan 31 15:34:12 or hover with your mouse over the function and you can see what it needs too Jan 31 15:34:22 alankila: ... so wrap it and get on with your day? Jan 31 15:34:40 sure, but would be great for google folks to provide a bit more serious logging interface... Jan 31 15:35:22 string concatenation is a relatively poor practice and the Log.x interface encourages people to do it, and for Log.d that's pure overhead as soon as you no longer print them Jan 31 15:35:58 yeah eclise isnt importing anything, nor is it in guick fixes. Jan 31 15:36:22 alankila: it would be great if you'd submit a patch, bug, or feature request for a more serious logging interface... Jan 31 15:37:39 yeah, easy to complain, much nastier now that the API is sort of already set and there's already going to be problems with the natural version because of the overload that takes Exception or something, and prints that. Jan 31 15:38:07 Crizkuro: android.app.PendingIntent seems to be it Jan 31 15:38:32 Should probably be swapped around like Log.i(TAG, e, "message with formatting stuff", params); *sigh* Jan 31 15:39:30 otherwise you'll be struggling with the ambituigy between 1-exception argument being parameter to format, or a stack trace to be printed Jan 31 15:39:56 there's no reason there can't be overloads Jan 31 15:39:57 ty Mikellip, i tried that it didnt work Jan 31 15:40:07 i cam gonna try something else Jan 31 15:40:11 yes, but there might not be *good* overloads now Jan 31 15:40:33 #firstworldproblems Jan 31 15:41:22 I guess I complain do much. Jan 31 15:41:27 Roboguice's Ln class has a syntax just like that Jan 31 15:41:37 without the TAG Jan 31 15:42:02 that is automatically derived from the calling class (somehow) Jan 31 15:42:10 nope Jan 31 15:42:16 do=too, too. My brain doesn't seem to cooperate today. Maybe I should play some games and drink Jan 31 15:42:44 yep, it is. Class and line Jan 31 15:45:22 Sounds like it uses the stack trace trick. Jan 31 15:48:46 so does anyone know how to start an activity when defining a new Intent? Jan 31 15:49:07 Crizkuro: startActivity() ? Jan 31 15:49:11 lol Jan 31 15:49:26 only way to start an activity is through startActivity() Jan 31 15:49:27 maybe he has no "activity" :) Jan 31 15:49:28 it sont work in a defined intent Jan 31 15:49:50 Crizkuro: sure it can Jan 31 15:49:54 Jug6ernaut: yeah via context startActivity() and via activity it's startActivity/startActivityForResult Jan 31 15:49:55 ie you cant do Jan 31 15:49:56 Intent prefsIntent = new Intent(startActivity(new Intent(this, CalcComPreferenceActivity.class))); Jan 31 15:50:09 you'll need a context/activity Jan 31 15:50:09 what the hell is that monster? Jan 31 15:50:21 does startActivity return something? Jan 31 15:50:24 == alankila Jan 31 15:50:24 context.startActivity() or activity.startActivity() Jan 31 15:50:34 alankila: startActivityForResult() Jan 31 15:50:41 Crizkuro: I think you're not understanding what Intents are Jan 31 15:51:17 the async coding in android (sometimes) sucks very hard Jan 31 15:51:53 that line i posted was an example of what I was saying cant be done not what i am doing lol Jan 31 15:52:12 Crizkuro: this works perfect in an activity class Jan 31 15:52:25 what I need is the ability to name the intent that can start an activity Jan 31 15:52:35 Crizkuro: ... Jan 31 15:52:47 Crizkuro: Intent lolstart = new Intent(context, SomeClass.class); Jan 31 15:52:48 done Jan 31 15:52:52 i am very new to this btw Jan 31 15:53:10 a pointer is a pointer, a type ist a type, a context is a context :) Jan 31 15:53:21 this is true for basic, C, C++, Java, ... :) Jan 31 15:54:34 monsti not nessarly Jan 31 15:54:41 a activity is a context, a context is not an activity Jan 31 15:54:55 yeah - so a type is a type :) Jan 31 15:54:57 i am new to programming in general lol and i am learning as i go Jan 31 15:55:15 a typo is a type! Jan 31 15:55:20 lol Jan 31 15:56:11 any idea why a shape with a bitmap doesn't honor a 9patch? Jan 31 16:00:43 Crizkuro: Intent loggedin = new Intent("com.learning.app.LOGGEDIN"); and startActivity(loggedin); would be one way of starting another activity Jan 31 16:01:04 where com.learning.app.LOGGEDIN is defined in the manifest Jan 31 16:01:30 you need to go to the android site and read the basics really - don't skip it :) Jan 31 16:01:35 it clarifies a lot of these things Jan 31 16:01:42 and gives a lot of example for common tasks: Jan 31 16:01:59 http://developer.android.com/resources/faq/commontasks.html Jan 31 16:02:11 Hello guys? Is there any way to highlight certain dates on CalendarView? Jan 31 16:02:27 s/(example)/$1\\s/ Jan 31 16:02:34 :-DDD Jan 31 16:02:50 (Had to do that since everyone seems to love sed/perl search and replace here) Jan 31 16:07:27 How long does it take generally for a new activated APK to take hold? Jan 31 16:08:09 it has to propogate to all the servers Jan 31 16:08:16 so EVERYWHERE? id give it an hour Jan 31 16:08:26 Yeah, I figured there would probably be some backend legwork Jan 31 16:08:27 but if your client is connecting to the right place, then a few seconds Jan 31 16:23:31 keep getting java.net.UnknownHostException: Unable to resolve host "www.googleapis.com": No address associated with hostname Jan 31 16:23:42 any ideas...? Jan 31 16:23:54 looks like its a dud Jan 31 16:24:28 Got the permission? Jan 31 16:24:46 luxurymode: are you emulating on mac? Jan 31 16:26:52 nope Jan 31 16:26:57 on the galaxy nexus... Jan 31 16:27:17 SimonVT, hahah yup forgot to add to manifest. Jan 31 16:30:01 So the AccountManager lets you get authtokens very easily….problem is they seem damn near useless because as soon as you make a request with them… you get a "exceeded limit" from google Jan 31 16:43:17 Hi. Are the slides/documnts from this available? http://www.khronos.org/news/permalink/android-developer-day-at-gdc-introduces-you-to-android-2.3-gingerbread-audi Jan 31 16:45:08 fuck Jan 31 16:45:18 it was bad enough when people saw my tablet and asked "that's xhdpi, right?" Jan 31 16:45:22 now they're looking at my galaxy nexus Jan 31 16:45:26 and asking "that's xlarge, right?" Jan 31 16:45:47 yeah Jan 31 16:45:52 xlarge-xhdpi it is Jan 31 16:45:54 SO LARGE Jan 31 16:46:04 I'm not so sure about this buckets system Jan 31 16:46:14 when i show people my mp3 player they ask if it's a phone :) Jan 31 16:47:23 when i show people a nexus one Jan 31 16:47:24 or a nexus s Jan 31 16:47:26 or a galaxy nexus Jan 31 16:47:30 they say "OH YOU HAVE AN IPHONE!" Jan 31 16:47:35 and i say "stfu" Jan 31 16:47:54 lawl @ xlarge Jan 31 16:48:08 I attempted to explain this to my boss Jan 31 16:48:16 "what kind of iphone do you have? is that the google kind?" Jan 31 16:48:23 the difference between xhdpi and xlarge Jan 31 16:48:35 so I brought my galaxy tab 10.1 and galaxy nexus to work Jan 31 16:48:46 heh Jan 31 16:48:53 jrr never heard that Jan 31 16:49:09 MDijkstra i just... i cant keep explaining this Jan 31 16:49:12 yo Jan 31 16:49:15 so i wrote an email and sent it out to 50 people just now Jan 31 16:49:25 1dp = 0.00625 inches Jan 31 16:49:32 so i rewrote the screen size minumums in inches Jan 31 16:50:07 i thought 1 dp = 1 inch Jan 31 16:50:14 160dp = 1 inch Jan 31 16:50:16 100 Jan 31 16:50:19 canadiancow|work: especially because people who should know better really don't get this Jan 31 16:50:32 xlarge screens are at least 960dp x 720dp --> xlarge screens are at least 6" x 4.5" (7.5" diagonal) Jan 31 16:50:32 like graphic designers here Jan 31 16:50:41 dont get me started on graphics Jan 31 16:50:48 Anyway, those new swdp etc must really confuse them :p Jan 31 16:50:52 canadiancow|work: but arent xlarge, large, deprecated Jan 31 16:50:53 PSA: xlarge/large/small shouldn't be used Jan 31 16:50:57 yes Jan 31 16:51:06 PEESAH! Jan 31 16:51:08 ok so how do i support the 95% of devics out there Jan 31 16:51:11 it's a PEESAH from evan Jan 31 16:51:11 use -w800dp, -h540dp, -sw600dp, etc Jan 31 16:51:16 s/95/99 Jan 31 16:51:21 lol Jan 31 16:51:35 canadiancow|work: pretent android <3.2 does not exist Jan 31 16:51:43 and go out of business? :P Jan 31 16:51:47 yes! Jan 31 16:51:52 MDijkstra: it's even easier if you pretend that < API 15 doesn't exist Jan 31 16:51:59 at this stage, im not even willing to USE the new qualifiers Jan 31 16:52:00 I target API 16 Jan 31 16:52:08 at some point, we will switch to a hybrid approach Jan 31 16:52:17 but we're going to need more than a 1% market share Jan 31 16:52:37 canadiancow|work: or youll wait until competitors start doing it Jan 31 16:52:40 then steal their xml Jan 31 16:52:56 I'm doing app store codesign voodoo at the moment Jan 31 16:53:01 yep mikedg Jan 31 16:53:03 I'd much rather worry about qualifiers Jan 31 16:53:08 that's how i roll Jan 31 16:53:58 OT, but I seriously don't know wtf apple were thinking when they pushed xcode 4 out of the door Jan 31 16:54:02 what a disaster Jan 31 16:54:14 im surprised they dont call it iCode Jan 31 16:54:44 i have two phones. One rooted and one not. On the rooted phone, I can use the shell to do queries on sqlite database I am working on. Jan 31 16:55:06 The non-rooted phone will not allow me to use it. Do i need to supply a password? Jan 31 16:55:19 I did not create the database with any special permissions. Jan 31 16:55:26 davis: no, you need to supply root :) Jan 31 16:56:02 bummer, i wanted to preserve this phone as non-rooted since the other one already is Jan 31 16:56:28 davis: have a debug option to move the database to external storage or something, then Jan 31 16:56:43 Or, just use an emulator Jan 31 16:59:01 evancharlton, you weren't here earlier, but i said you were awesome Jan 31 17:09:35 woooo json http stream parser. Jan 31 17:09:47 parse directly to database. Jan 31 17:09:53 no more oom issues. Jan 31 17:10:00 i keep getting "a problem occurred while communicating with google servers" (it shows up on the device) when using AccountManager to get auth keys… anyone have any ideas? Jan 31 17:10:06 i use the emulator and sqlite, the problem is I like to sqlite3 the database via shell sometimes. Jan 31 17:10:32 i have tried the run-as method, but it seems that the problem is I don't have sqlite3 in my path. Jan 31 17:11:09 ive looked in /system/bin and I don't see the sqlite3 command. Jan 31 17:12:46 Is there a way to make a drawable such as a icon centered on a button, the only options i see are top, bottom, left, and right Jan 31 17:13:43 moonlightcheese, Jackson JSON processor? Jan 31 17:13:50 GSON. Jan 31 17:14:07 i'll have to check it out, thanks Jan 31 17:14:37 Gsingh: what? Jan 31 17:14:41 like an ImageButton? **** BEGIN LOGGING AT Tue Jan 31 17:23:32 2012 Jan 31 17:23:52 but the problem is i wont get the button behind my icon the button will be the image itself Jan 31 17:24:06 I want the button and the icon to be set infront of the button Jan 31 17:24:33 No, ImageButton has the button background Jan 31 17:25:23 SimonVT: Oh, ok well thats what im looking for the examples I saw implied it was just the image itself Jan 31 17:25:36 That's ImageView Jan 31 17:26:26 my model is a static collection that is updated via polling in the background, what would be the best way to notify views that the content has been updated? broadcasts? content provider? other? Jan 31 17:28:51 Since I cant use listview in a widget what options can I explore for mimicking a listview or some other scrolling functionality Jan 31 17:29:30 stackable widgets? Jan 31 17:30:17 http://developer.android.com/resources/samples/StackWidget/index.html Jan 31 17:30:19 every time i try to plug in my galaxy nexus, i get a huge shock Jan 31 17:30:37 SimonVT: thanks that did the trick Jan 31 17:30:45 i want to display either a table or a few linear layed textviews, the data is coming from sqlite3 Jan 31 17:30:46 birbeck: That's api11 just like listviews Jan 31 17:30:52 yeah Jan 31 17:31:00 which the user can scroll/tap through Jan 31 17:31:03 ok thanks Jan 31 17:31:14 but widgets cant have any scrollable container Jan 31 17:31:22 ahhhh Jan 31 17:31:23 api11 can Jan 31 17:31:36 standard widget for api10- and stack widgets for api11+ Jan 31 17:31:38 canadiancow: i saw the same problem on harry potter involving wands. you better send the phone to me.... Jan 31 17:31:50 canadiancow|work: like an electric shock? Jan 31 17:31:53 yes Jan 31 17:32:01 hi Jan 31 17:32:06 that's kindof bad... Jan 31 17:33:00 i love slectic shocks! Jan 31 17:33:04 birbeck: api11 supports listview and gridview as well.. not just stackview Jan 31 17:33:12 canadiancow|work: just phoned google, response was "android market doesn't have live support, email them" Jan 31 17:33:28 righto Jan 31 17:33:35 Amphoras: lol Jan 31 17:34:01 SimonVT: any input on my question? Jan 31 17:34:03 told her I had already 3 times, so she said just keep emailing them Jan 31 17:34:22 i really hate using custom broadcasts Jan 31 17:34:49 I'm trying to remove all the views of a LinearLayout (I tried removeAllViewsInLayout and invalidate), but when I put new content dynamically in this LinearLayout, the old content is still there. How to really remove it ? Jan 31 17:34:56 and a content provider is a pretty heavy approach, i also dont want to share the provider with other apps Jan 31 17:35:05 birbeck: I really have no idea :F Jan 31 17:35:21 bah, youre one of the smart ones Jan 31 17:35:42 :| Jan 31 17:38:30 For some reason, when first installed from the marketplace my app opens to a different screen than it normally does when you open the app from the icon. What setting would define this action? Jan 31 17:40:54 yea, SimonVT, you're one of the smart ones... :) Jan 31 17:41:22 That puts way too much pressure on me Jan 31 17:41:27 I'm not even a programmer Jan 31 17:41:54 thats what makes it worse Jan 31 17:42:08 SimonVT: where are my latest account comps? Jan 31 17:42:13 always showing up those who think they are... :) Jan 31 17:42:13 Does anyone know how to make an analog clock widget? I'm shit at programming, but could follow a tutorial. Jan 31 17:43:07 Why would my app open to the camera after install from the marketplace, when it should open to the first screen, and open the camera when you hit a button, it should never open straight to a camera, is there a setting that tells it what to open to after install from the market? or is there a setting to tell it what to open up to every time you open the app? Jan 31 17:43:07 IceBone: sounds like homework Jan 31 17:43:15 :/ Jan 31 17:43:36 I don't suppose there's a way to just unpack a preexisting apk, replace the drawables and repack? Jan 31 17:44:38 possible, but that would be cheating. Jan 31 17:45:21 Well, I'm a designer, I can't program to save my own life. Jan 31 17:45:35 canadiancow|work: why'd you say I was awesome? (sorry, just saw that) Jan 31 17:45:52 because you respond to people Jan 31 17:45:55 unlike devrel Jan 31 17:45:59 who just ignore emails Jan 31 17:46:02 and dont do their jobs Jan 31 17:46:07 I've made several designs for an analog clock widget, but can't make the apk or get someone to do it for me. :D Jan 31 17:46:11 canadiancow|work: send them an email ;-) Jan 31 17:46:37 I wish there were a good digital world clock widget.. Jan 31 17:47:03 Zider: sounds like you should make one Jan 31 17:47:13 evancharlton: if only I could.. Jan 31 17:47:38 what's stopping you? Jan 31 17:47:45 the ability to code Jan 31 17:47:49 bingo. Jan 31 17:48:06 Surely there are some devs who wish they could design or are looking for designers. It can't be just the other way around. Jan 31 17:48:16 IceBone, what do you mean bu designer Jan 31 17:48:21 by* Jan 31 17:48:24 Graphics. Jan 31 17:49:47 IceBone: i am Jan 31 17:50:11 but every time i look at what i actually want, i realize its going to cost me a small fortune Jan 31 17:50:16 :P Jan 31 17:53:05 ok so if I use a EditTextPreference in the code how do i turn its value into a double Jan 31 17:53:26 I can't remove views from a linear layout, can someone help me about it ? Jan 31 17:53:48 maxagaz: sure, but only if you can ask an answerable technical question. Jan 31 17:54:07 jasta: I asked it just above Jan 31 17:54:30 maxagaz: if you'll notice, jasta joined about 3 minutes ago Jan 31 17:54:31 "can someone help me?" is a question like any other and not technical in nature. Jan 31 17:54:54 Is it possible to highlight certain dates on Android's own CalendarView? Jan 31 17:54:55 jasta: sorry, I didn't notice you just arrived Jan 31 17:54:55 * jasta waves to evan Jan 31 17:55:12 jasta: I'm trying to remove all the views of a LinearLayout (I tried removeAllViewsInLayout and invalidate), but when I put new content dynamically in this LinearLayout, the old content is still there. How to really remove it ? Jan 31 17:55:13 yo jasta Jan 31 17:55:44 What determines the first activity to run in the app, it should be the Android Manifest shouldn't it? Why would the opening screen be different from when you click it in your applications, than from when you install it from the market? Jan 31 17:55:57 maxagaz: well, removing it does indeed remove the views. why tho are you calling the InLayout variant? are you actually in a layout? Jan 31 17:56:02 in a layout pass* Jan 31 17:56:12 jasta: also, when I do myLinearLayout.getChildCount(), I always get quite a few views in it Jan 31 17:57:15 As jasta hinted at, use removeAllViews Jan 31 17:57:50 jasta: yes, I'm in a main linear layout, and trying to remove the views of a sub linear layout Jan 31 17:58:17 maxagaz: InLayout actually means that you want to remove the views in the onMeasure or onLayout method flows Jan 31 17:58:51 hi all, I'm trying to create a program that read-writes information from a web-location for my personal use (I'm not too concerned with security for this project). can anyone recommend any guides/tutorials for learning to program with dynamic data stored on the web? Jan 31 17:58:58 but regardless, removeAllViews and removeAllViewsInLayout would both remove the items. can you show us your code so that we can check for silly mistakes? Jan 31 17:59:55 terriblesarcasm: You can use to open a specific activity from the Market "open". You can use for your regular main activity. Jan 31 18:00:22 jasta: okay, actually, when I do a getChildCount() after removeAllViews, I goes back to 0, but when I re-use it, the old content is back again Jan 31 18:00:39 maxagaz: that tells me plainly that you've got logic elsewhere adding them back again. Jan 31 18:02:35 I have an activity which sends an intent to an IntentService when it ends. The activity should not be started again before the service is done processing the intent. What would be a good mechanism to ensure this? Jan 31 18:03:58 Eh.. you want to stop the user from starting your activity while the intentservice is running? Jan 31 18:05:06 jasta: indeed. I found my mistake. thanks a lot! :) Jan 31 18:06:28 Well the period is very short. Basically the activity makes changes to SharedPreferences. When the activity ends I want the service to save these preferences to a contentprovider. So I want to keep the preferences from being changed just while this save occurs. The operation should be very fast, but I still want to ensure that the data isn't modified before the service is done. Jan 31 18:15:51 thanks skfax that's what I was looking for Jan 31 18:30:48 Hey, I need some opinion here. What is better/easier: write my app using for 4.0.3 and then adding porting it to older versions or start the development using older versions of the sdk? Jan 31 18:31:50 hstefan, start with older (like 2.2, no need to go older) and then once its all done, target 4.0.3 Jan 31 18:31:59 I have a quesiton, am trying to figure out what a distance in pixels dragged (from an onScroll-hooked drag gesture) maps to in a GLSurfaceView as far as the floating point value. That is to say, are 20px = 0.2f ? or something like that Jan 31 18:32:06 that way u dont accidentally use features taht dont exist in older versions Jan 31 18:32:29 I have a toroidal carousel that I am trying to rotate the proper amount, and that mapping is crucial to calculating how much to spin the carousel by Jan 31 18:32:36 so that it is interactive to the user Jan 31 18:32:58 but I've yet to find any good docs/stackoverflow examples/example code that covers this Jan 31 18:32:59 Anyone wanna help me out? I'm trying to find all the minimum audio sample rates for all the devices out there. It's very inconsistent and undocumented, and I'm hoping to make a reference for devs. Jan 31 18:33:13 I have a diagnostic app that will tell you the minimum sample rate. Jan 31 18:33:38 yay my first app is done!!!!! thanks to everyone here that have given me assistance throughout my learning process!!! Jan 31 18:33:41 hstefan, until you're more familar with the various api levels (i'm assuming you aren't based on your question), i agree with Wavesonics - set the build target to whatever you want your minium to be (2.1 or 2.2) Jan 31 18:33:51 http://www.michaelpardo.com/files/AudioDiagnostic.apk Jan 31 18:33:54 in iOS they can cheat by setting the matrix to match the dimensions of the known screensize, but this seems like it would be slow and error prone on Android, and it would force me to re-derive a bunch of annoying equations Jan 31 18:34:10 if you encounter a situation where you want to use a new api, protect it with: if (Build.VERSION.SDK_INT > Build.VERSION_CODES.WHATEVER_VERISON_HAS_THE_API) { newApi(); } Jan 31 18:34:20 any ideas? Jan 31 18:34:24 and at the end, set the target to at least 14 Jan 31 18:34:27 If you're interested in helping out, just pm your Hz to me Jan 31 18:34:53 2.1 is below 10% i say screw those ppl :P Jan 31 18:35:24 Hmm, ok! Thank you :) Jan 31 18:35:33 Wavesonics, i personally agree Jan 31 18:35:36 but depending on what you're writing Jan 31 18:35:43 ya Jan 31 18:35:44 an extra 6% can be nice Jan 31 18:36:09 I started with 2.1 year ago and now I'm pretty much commited to it :P Jan 31 18:36:15 james541: use whatever the android-gl version of "gluUnProject" is on the start and end points of the touch (or current position, whatever) to obtain points in 3d space Jan 31 18:36:19 it looks like by late spring 4.x should have a decent market share, looking forward to that b/c my app requires 4.0 :P Jan 31 18:36:20 maybe next major verson I'll drop 2.1 Jan 31 18:36:47 james541: then you can take the distance between those or use them directly. advantage of this over trying to calc a ratio is that it works no matter what your projection is Jan 31 18:36:51 I do get the start and end point from the touch event, so that might work Jan 31 18:36:56 aolin, the market can show u your user base break down, so u can see if its worth supporting 2.1 Jan 31 18:37:02 (I get them in pixels anyway) Jan 31 18:37:19 Or instead of PMing me you can put it in this google doc http://goo.gl/pUISn Jan 31 18:37:31 Well, in my case, since it's an academical app it should be fine if I use the 4.0.3 sdk... but I'll use this oportunity to learn how to support older versions, heh. Jan 31 18:37:58 james541: the ratio pixels:world isn't a constant unless you're dragging on a 3d-plane that is parallel to the real screen Jan 31 18:39:10 I hope my Defy will be able to run ICS someday, heh Jan 31 18:39:15 so just unproject from 2D to 3D and get the real answer. (You'll need depth values in addition to the xy, which you can get either by reading the depth buffer or by doing your own raycasting (from the ray through two unprojected points) or knowing some fact about your world.) Jan 31 18:39:19 that's the idea actually Jan 31 18:39:33 I was going to do the coordinate transformation myself with a bit of trig Jan 31 18:39:45 this is all generic GL stuff, not android -- I don't know raw android GL Jan 31 18:39:57 if their is an easier way I'm all ears, I'm sure an arcsin is expensive Jan 31 18:40:19 kpried: is this like what you meant? http://stackoverflow.com/questions/7437482/gluunproject-android-opengl-es-1-1-usage Jan 31 18:40:20 there's no trig, it's all linear algebra on the projection/modelview matrices that already exist Jan 31 18:40:45 if I have a double n1 = 5 and i want to make it .05 how do I do that n2 = .0 + n1? Jan 31 18:40:59 Hmm Jan 31 18:41:12 I'm controlling the motion of items in the carousel with an angle parameter, as I've parametrized the torus equation by said angle Jan 31 18:41:16 it works fine so far Jan 31 18:41:32 I just meant calculating the theta that the carousel needs to be spun for a drag Jan 31 18:41:59 If I set android:onClick via XML for my Fragment, it still tries to find the given method in the FragmentManager instead of the actual Fragment? Jan 31 18:42:10 james541: yes, that's that sort of thing... but that's evidently not a working sample :-) that says that depth isn't an available value, but you can take care of that yourself since you know the depth you said - but you'll have to convert from your known depth to z-buffer coordinates. it might actually be better to do it without unproject then Jan 31 18:42:11 so I was computing a projection from the screen as if it was an xy plane parallel to the torus to figure out the delta-theta Jan 31 18:42:30 Wavesonics: I don't have market breakdown as I haven't made a single Market release yet, sorry. Loooong project :/ Jan 31 18:42:40 Crizkuro: just divide by 100 Jan 31 18:42:47 aolin, ah Jan 31 18:42:52 hahaha I feel dub Jan 31 18:43:00 Crizkuro: but if you're describing your problem that way you're probably doing something else wrong Jan 31 18:43:01 kpreid ty Jan 31 18:43:06 pretty hard to swap platforms on a complex app, as my users expect pretty much same features as previous platform :/ Jan 31 18:43:11 well, by depth do you mean how far back from the screen the torus is? Jan 31 18:43:21 that I know (in world coordinates anyway) Jan 31 18:44:21 kpreid what it is i have a usser setting that I converted to a double, but i only want them to put in a simple number for their commision % and i want to convert that to a usable number for my algorithm Jan 31 18:45:15 if you're converting a percentage to a proportion, that is just dividing by 100, yes Jan 31 18:45:22 I have plenty of linear algebra background, the thing is I'm not just dragging the mesh/texture around I'm rotating the carousel, leaving it's center in place so I have to custom compute that delta. Which is fine, I figured out the math I need to compute the relevant delta theta the hard part was figuring out the pixel mapping so that I could convert the change in pixel distance to a change in world coordintate distance Jan 31 18:45:32 What is this [CHAR LIMIT="15"] in some strings.xml files? Jan 31 18:45:37 and other numbers, of course. Jan 31 18:45:41 which this might do? Jan 31 18:45:56 it's kind of confusing what the glUnproject is doing exactly Jan 31 18:46:09 is it just applying the inverse of the projection matrix to the view? Jan 31 18:46:12 kpreid ty again i cant believe I didnt remeber that Jan 31 18:46:18 (as in, the GL projection matrix) Jan 31 18:46:30 james541: gluUnProject takes a screen space [x,y,depth] point and turns it into a model space [x,y,z] point Jan 31 18:46:59 it inverts the computations that go from a gl vertex x,y,z to a screen pixel and depth buffer value Jan 31 18:47:10 ah ok, that makes sense, the only thing I don't get now is what is meant by "depth" in that context Jan 31 18:48:12 hm, " Microsoft program manger Vikram Sharma allegedly announced developers will be able to build future Windows Phone apps using C++ native coding" Jan 31 18:48:20 seems like what many have been waiting for Jan 31 18:48:59 james541: the value in the depth buffer. the distance (nonlinear) from the camera to the object. Jan 31 18:50:01 in world coordinates? or in pixels? I only know that value in world coordinates Jan 31 18:52:42 "in pixels" would be closer, but there's no actual pixels in that direction Jan 31 18:54:49 http://en.wikipedia.org/wiki/Z-buffering#Mathematics Jan 31 18:55:07 of course, assuming a 2d display, I was just asking if it was in a pixel-measure coordinate system. That makes sense, but the thing is that value is precisely the unbound variable I need to compute the change in coordinate system myself Jan 31 18:55:29 ...yeah, I think you're better off not using unproject :) Jan 31 18:55:48 unproject is more useful when you have a complex projection/angle or when you have depth buffer values Jan 31 18:56:40 hmm.... the thing is I am using a GL_DEPTH_TEST, does that imply that there is a depth buffer in use that is available and able to be read? Jan 31 18:56:58 the depth buffer exists, but you probably can't read it (per that SO Q you linked) Jan 31 18:57:01 I'm using it because the elements of the carousel have testures stacked on top of each other Jan 31 18:57:18 hmm... ok :( Jan 31 18:57:20 but, you don't want that anyway, right? you have a top view of a plane and you just use the distance to the plane? Jan 31 18:58:11 I do, because I need that distance to compute the theta offset from the point selected by the touch event Jan 31 18:58:35 you *do* or you *don't* know that distance already? Jan 31 18:58:38 picture a baby mobile being hung in front of you, so that when you swipe right/left it rotates to the right/left Jan 31 18:58:48 Oh, it's horizontal Jan 31 18:58:57 yeah Jan 31 18:58:59 I thought you said the surface was a parallel plane to the screen. Jan 31 18:59:16 well it is, depending on what you mean by parallel Jan 31 18:59:27 hehe Jan 31 18:59:41 You're looking face on at the side of the carousel, which is approximately a cylinder, no? Jan 31 18:59:55 well, sure that's a decent approximation, yeah Jan 31 19:00:01 ok, so here's what you do. Jan 31 19:00:29 1. use gluUnProject, twice, with two arbitrary values for depth (0 and 1 would be good). Jan 31 19:01:06 2. This gives you two points in 3D space, which define a line. That line is the line which is "everything that projects onto the screen point where the user touched". Jan 31 19:01:58 3. Perform a cylinder/line intersection test. Jan 31 19:02:23 is the line in pixels? Jan 31 19:02:25 4. Use the intersection point you found from step 3 as your touch point on the carousel. Jan 31 19:02:32 No, it's in world space. Jan 31 19:02:36 ah ok Jan 31 19:03:36 On the other hand, *just* might not be what you want. For example, if the user drags left past the carousel, then that touch point of course does not intersect the carousel. Jan 31 19:03:55 which can happen in landscape, actually Jan 31 19:04:37 So what you can do instead is: Instead of using the drag end point, use the touch start point plus a small amount (say 1 pixel) to compute a delta-theta, then multiply the drag distance by that. Jan 31 19:04:46 when i export mysql as xml file in phpmyadmin where does it save the xml file? Jan 31 19:05:00 again, the transform I've ripped apart mathwise I just need to know what the horizontal distance swiped is in world coordinates and how far the carousel is from the screen in pixels and I think I'd be good Jan 31 19:05:08 [account test, please ignore] Jan 31 19:05:45 right that's how I derived the transform Jan 31 19:05:53 well, you're done then :) Jan 31 19:06:18 the problem is I need to know that delta (horizontally) in world coordinates or I don't know how much delta theta comes out the other end of the transform Jan 31 19:06:21 does that make sense? Jan 31 19:06:35 as I said, unproject and collide two points, and use the distance between them Jan 31 19:07:34 ow, ok thinking about that for a sec, ouch Jan 31 19:08:21 really, we want to take the derivative, but this finite difference will do fine :) Jan 31 19:09:14 well I know how to compute the partial derivative of the toroid at whatever point I'd need Jan 31 19:09:45 as I designed the rotation equation myself and it's just an ellipsoid trajectory parametrized by theta Jan 31 19:10:02 might not be so computationally efficient though Jan 31 19:10:10 brx_: what does that have to do with Android? Jan 31 19:11:12 whaddaya mean computationally inefficient? an algebraically obtained derivative is still O(1) to compute Jan 31 19:11:23 * kpreid waves to evancharlton Jan 31 19:12:02 actually, couldn't I just glUnproject the start and end points of the touch in the onScroll event and then compute the horizontal distance between them in world space? Jan 31 19:12:18 similar approach to what you suggested but probably simpler Jan 31 19:12:20 yes, but you would need a depth value for both Jan 31 19:12:21 Hey. I'm trying to delete an AVD but the manager says it's already running, even though I can't see anything open. How can I kill that emulation? Jan 31 19:12:34 hstefan: open task manager and kill the process Jan 31 19:12:41 right but I know the depth in world coordinates, so I'd be good right? Jan 31 19:12:58 I'd just be able to do everything in world coordinates at that point, I think Jan 31 19:13:24 and agreed on the O(1), it's just whether that O(1) constant would be small enough to case the framerate to dip Jan 31 19:13:38 ok, you can do that, but it's an extra step to transform a world z coordinate to gluUnproject's input Jan 31 19:13:38 *to *not* cause the framerate to dip I mean Jan 31 19:13:55 the formula for that is in the WP Z-buffering article I linked; it's the one that has a range of [0,1] Jan 31 19:14:11 hmm, ok I'll read that Jan 31 19:14:50 missed that link, no wonder I was confused hehe Jan 31 19:14:53 ok one sec Jan 31 19:14:58 also, if you're worried about a few calculations reducing your frame rate (highly unlikely; math is cheap) then you probably want to use gluUnProject as little as possible - it's highly general and therefore expensive Jan 31 19:15:17 (it has to do either 2 matrix mults or a matrix inversion and mult, depending on how it's implemented) Jan 31 19:15:18 it would only be used twice per drag I think Jan 31 19:15:23 ooooh Jan 31 19:15:32 a matrix inversion can be slow oof Jan 31 19:15:50 well, only 4x4 Jan 31 19:15:51 I mean it's a four by four, but still Jan 31 19:15:53 yeah Jan 31 19:16:02 drezel: couldnt find any process related to android running, only adb Jan 31 19:16:03 er, if you want to do an interactive drag then you can't just use the start and end - you want to do it for every intermediate point, or it won't feel physical Jan 31 19:16:15 oh? Jan 31 19:16:38 what should I do for an interactive drag? Jan 31 19:16:38 james541: you can precompute your unproject matrix yourself and just do a single transform per update Jan 31 19:16:40 sure, just like scrolling (that's what this is, really) Jan 31 19:16:41 hstefan: for me they're called "emulator-arm.exe" Jan 31 19:17:05 the carousel should follow the user's finger, so those are calcs to be done on every frame/movement Jan 31 19:17:09 nothing like that here. I'm running linux btw Jan 31 19:17:10 I can't find working example to pass parameters from Activity to Service using Bundle. Many examples use getIntent-method but I can't find it in Service-class. Could somebody show me how to do this? Jan 31 19:18:08 well, will using onScroll in an onGestureListener give interactive scrolling? Jan 31 19:18:15 or am I using the wrong hook Jan 31 19:18:15 ? Jan 31 19:18:43 hstefan: might have to reboot >_< or logoff/logon Jan 31 19:18:51 I'm not a real android dev, you'll have to ask someone else :) (also I need to work on other stuff now) Jan 31 19:18:52 agreed @ gilead, but I don't know how to extract the unproject matrix so I can cache it, although I suppose I could go look at the glUnproject code, which is probably in C Jan 31 19:19:05 ok, thanks anyway kpreid Jan 31 19:19:23 james541: actually, unproject takes those mats as parameters, so you'd have to do that yourself anyway Jan 31 19:19:33 ask GL for them, multiply, invert. or whatever Jan 31 19:19:48 any example of using gluUnProject will have that Jan 31 19:19:54 ok Jan 31 19:20:38 Wtf, adb says there's no device connected Jan 31 19:20:57 get drivers? Jan 31 19:21:38 connect your device? Jan 31 19:21:41 No, I mean adb doesnt see the emulator as usual, even though I can't delete some device because it's running Jan 31 19:21:59 it might not be booted yet? Jan 31 19:22:16 http://abstrusegoose.com/strips/you_down_wit_OPC-yeah_you_know_me.png Jan 31 19:22:22 I'm not that stupid lol... Jan 31 19:22:36 james541: android.opengl.Matrix may be what you're looking for Jan 31 19:23:03 I'll take a look Jan 31 19:24:55 Ok, fixed deleting lock files. Jan 31 19:28:40 heh, I shared that yesterday too SimonVT Jan 31 19:28:49 Meh :p Jan 31 19:28:56 meh Jan 31 19:31:13 Does anyone have experience developing chat(not SMS) apps? I have issues with some users not getting messages while their phone is asleep Jan 31 19:32:00 I think some hardware manufacturers must disable some radio conn when the screen is off which is preventing messages from being received? Jan 31 19:32:28 drezel: not necessarily. Jan 31 19:32:32 i know my phone has a setting to disable data when screen is off Jan 31 19:32:33 drezel: you know about wakelocks? Jan 31 19:32:52 drezel: the phone stops Wi-fi and CPU, you need to acquire some locks. See PowerManager and WifiLock Jan 31 19:33:08 that said, c2dm might be a help here Jan 31 19:33:21 +1 c2dm Jan 31 19:33:56 c2dm would be the best solution Jan 31 19:34:04 Fragments are difficult, yet easy. Jan 31 19:34:11 n20: so profound. Jan 31 19:35:18 lov: I just started learning how to control them! :D Jan 31 19:35:50 dunning-kruger effect. Jan 31 19:36:11 n20: http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect <== you Jan 31 19:36:16 cumming-kegger effect Jan 31 19:36:48 abaratican: you're dumb Jan 31 19:37:42 pragma_: gross thx. Jan 31 19:38:00 I'm trying to connect to a PEAP/MSCHAPV2 network. I set phase2 authentication to mschapv2, but the configuration isn't retained once I hit save. I see (via google) that its a common problem, haven't come across anyone documenting a resolution. Jan 31 19:38:13 pragma_: yet my incompetence in the field of intelligence leads me to assess myself as smart! Jan 31 19:41:30 What is best, use AlarmManager or periodic Handler in my Service to get updates from my server? Jan 31 19:41:33 lol Jan 31 19:41:34 http://phandroid.s3.amazonaws.com/wp-content/uploads/2012/01/oldteam2-550x359.png Jan 31 19:41:41 abaratican: I'm illusionally superior?! Jan 31 19:41:54 considering waking up Jan 31 19:42:18 asd Jan 31 19:42:32 lov: sorry had to step away a sec.. no what can you tell me about wakelocks? Jan 31 19:42:48 i'm using c2dm already also Jan 31 19:42:55 and that works... most of the time Jan 31 19:43:20 drezel: ah Jan 31 19:43:28 elyezer: that's what i needd to know :O Jan 31 19:43:35 drezel when does c2dm not work? Jan 31 19:43:43 elyezer: AlarmManager Jan 31 19:43:48 elyezer: if the phone is sleeping your handler won't run. Jan 31 19:44:02 it seems c2dm lags sometimes is all, takes up to 5 min Jan 31 19:44:05 drezel: does the same issue happen for those users for gmail/gchat/etc? Jan 31 19:44:15 drezel: Oh, wanna share some C2DM experiences? I really wonder whether it's just me, but C2DM often stops working after a while although submitting a message to the Google servers still works flawlessly and returns the message id.. My app just doesn't receive it. Jan 31 19:44:26 lov: thank you Jan 31 19:44:52 I can run many alarm as I need or I have a limit? Jan 31 19:45:01 s/alarm/alarms Jan 31 19:45:05 drezel: Okay, that doesn't sound quite as bad as my experience.. So it might really be my fault, but I've checked this like a hundred times :D Jan 31 19:45:18 elyezer: as many as necessary. read the documentation. Jan 31 19:45:53 lov: i don't think my users are having the same issues with g-apps or they woulda said something. most report its just my app that has connectivity/updating issues Jan 31 19:46:04 I have spanned a string (put it in color red), but it doesn't work, does my TextView need some parameters to accept spanned strings ? Jan 31 19:46:25 I mean if I can schedule more than one in the same time, like one every 5 minutes, other every 10 minutes and other every 30 minutes for example Jan 31 19:48:07 drezel: not sure then. Jan 31 19:48:13 c2dm should wake up your app to deliver the message. Jan 31 19:48:27 neekers: meh Jan 31 19:48:31 :) Jan 31 19:49:17 I found my answer Jan 31 19:49:46 lov: dont worry about it, i think i just need to investigate wakelocks :) thanks for the input and feedback everyone Jan 31 19:51:05 drezel: well, I haven't really used C2DM. When you use C2DM, how are you getting your callbacks from the server? Jan 31 19:51:09 are you getting a broadcast intent? Jan 31 19:51:32 yes Jan 31 19:51:35 ok Jan 31 19:51:40 c2dm isn't really my problem Jan 31 19:52:00 it's keeping an open http connection to receive chat messages while the phone is sleeping Jan 31 19:52:00 You need to take a look at acquiring a partial wakelock when you get that broadcast, and then letting the service handle that wakelock Jan 31 19:52:11 tho im kinda concerned about battery life if i do that Jan 31 19:52:23 drezel: as long as the phone is able to sleep it's not an issue. Jan 31 19:52:36 hm ok Jan 31 19:52:50 Is there a way to make my cache files world readable?? I can't even read my own files from my cache... Jan 31 19:52:55 What the crap, B Jan 31 19:53:19 how to concatenate two spannables ? Jan 31 19:53:43 is there a way to detect a wheter the virtual keyboard is visible on a device? Jan 31 19:54:12 maxagaz, doesn't spannable have an interface to insert another spannable? Jan 31 19:55:40 yo dawg Jan 31 19:56:44 Gsingh: 3.0+, assuming a typical IME, yes with tricks. < 3.0, in portrait yes, in landscape no (due to a silly bug in android) Jan 31 19:58:10 What genius put "Share my location" in AndroIRC Jan 31 19:58:41 abaratican, Gsingh: There is a way that works in all Android versions, give me a sec to paste it Jan 31 19:59:17 pehlert: if you're referring to the adjustResize + SoftKeyboardDetectionLayout method, then it doesn't work in landscape prior to 3.0 due to adjustResize not being respected. Jan 31 19:59:26 pehlert: if you have another method I'm beyond all ears. Jan 31 19:59:40 I am developing for 2.2-3.0 Jan 31 20:01:50 Gsingh, abaratican: http://nopaste.info/aabdd7d2be.html .. Basically you create your own root view (you can just inherit from whatever layout you like and override the onMeasure method with this Jan 31 20:02:26 that won't work in landscape prior to 3.0 because adjustResize won't be respected Jan 31 20:02:42 and thus the IME will be on top of it, and it will be the same size it was without the IME Jan 31 20:02:47 pfn: I don't know Jan 31 20:03:16 abaratican: It works on my 2.3 device, I confirmed it a sec ago Jan 31 20:03:20 _if_ adjustresize is respected, then the view would be sized differently and that method would work.. but that pesky bug in landscape before 3.0 breaks it.. try it and see Jan 31 20:03:37 i have activity A->B->C->D->E->F. I'm on F and want to jump BACK to A, with the appropriate BACK transition animations. If I do the clear top thing, it has the "new activity" animation...is there a way to go back several levels in the stack? Jan 31 20:03:53 pehlert: maybe it was fixed in 2.3 then, /me checks Jan 31 20:04:00 pehlert: have you tried this on a 2.2 device? Jan 31 20:04:02 maxagaz, so go look and know Jan 31 20:04:08 canadiancow|work: start those activities for result, propagate the result all the way down Jan 31 20:04:51 canadiancow|work: Can't you override animations? Jan 31 20:05:01 abaratican: Okay, you could be right. I think my keyboard fills the entire screen with it's custom layout in landscape mode which is why I thought it worked Jan 31 20:05:10 pehlert: ah Jan 31 20:05:20 pehlert: btw, this approach _does_ rely upon adjustResize, right? Jan 31 20:05:31 canadiancow|work: http://developer.android.com/reference/android/app/Activity.html#overridePendingTransition(int, int) Jan 31 20:05:33 looks like it does, but verifying. Jan 31 20:06:18 abaratican: If you refer to windowSoftInputMode="adjustResize", no. It doesn't Jan 31 20:07:11 pehlert: oh so your activities don't need adjustResize? hmm.. guess I don't understand something about this approach then. Why would the actualHeight be any different if the IME just floats on top, though? Doesn't make sense to me without adjustResize Jan 31 20:07:17 abaratican: I at least never explicitly set it anywhere in my layout. But I'm far from a framework expert anyway Jan 31 20:07:22 SimonVT, but then you get other shit Jan 31 20:07:33 or is there an android.R.anim for it Jan 31 20:07:36 Other shit? ;/ Jan 31 20:07:40 I'll play with the code you provided anyhow, as my approach is slightly different. Jan 31 20:07:56 sorry someone overrode one with a custom animation, but it looks like ass on ICS Jan 31 20:08:00 becuase its a slide Jan 31 20:08:02 which ICS doesnt use Jan 31 20:08:03 holy shit, honeycomb finally got a market update Jan 31 20:08:06 thought it would never happen Jan 31 20:08:09 lol Jan 31 20:08:15 and tomo you'll get an ICS update :P Jan 31 20:08:27 yeahright, that ain't never gonna happen Jan 31 20:08:32 abaratican: Good luck :) Let me know if you find anything useful Jan 31 20:08:38 and damnit, it's still orientation locked Jan 31 20:08:39 wtf google Jan 31 20:08:41 seriously!! Jan 31 20:08:43 canadiancow|work: Just apply it on pre ICS then Jan 31 20:08:47 pfn: hehe Jan 31 20:08:53 i don't feel so bad being potrait only now Jan 31 20:08:57 XD Jan 31 20:08:59 goddamnit, market is the stupidest shit ever Jan 31 20:09:00 but that's making an assumption about something that could very easily change Jan 31 20:09:02 it's still landscape-locked Jan 31 20:09:10 is there not an android.R.anim.default_activity_finish Jan 31 20:09:18 g00s, on a phone app, not so terrible, on a tablet app, absolutely Jan 31 20:09:29 meh :p Jan 31 20:13:07 Anyone here have an HTC Sensation and feel like testing a device specific bug? Shouldn't take more than a minute or two. Jan 31 20:23:09 Anyone have any esperiance with and engine ? i want to turn "bounce" off when object falls, i am unable to locate it and when searching for it i get alot of resunse but they seem to not be what i need. what excactly should i search for ? Jan 31 20:34:19 could it be that URL.getContent() completely ignores my flight mode setting in android? Jan 31 20:34:28 in an avd that is Jan 31 20:34:37 trying to simulate there not being a data connection Jan 31 20:34:43 but I seem to receive data anyway Jan 31 20:35:22 probably, emulator is teh suck Jan 31 20:38:20 what's a good way to "disable" data? Jan 31 20:38:48 faraday cage Jan 31 20:39:07 Davy Crockett Jan 31 20:39:18 also, suprisingly, those anti-static bags that electronics come in Jan 31 20:39:25 they were remarkably well Jan 31 20:39:33 *work Jan 31 20:39:36 iivvoo, unplug your computer Jan 31 20:39:41 is there a good guide on using a ViewPager and indicating the title of the current "page" at the top? Jan 31 20:40:26 smoak, viewpagerindicator Jan 31 20:40:43 boy we sure arent being helpful today... Jan 31 20:40:53 Wavesonics, speak for yourself Jan 31 20:40:59 pfn: thanks ill look into that Jan 31 20:41:07 smoak, or just using a tab Jan 31 20:41:10 iivvoo, unplug your computer Jan 31 20:41:15 Wavesonics, it's an avd Jan 31 20:41:17 what do you expect Jan 31 20:41:38 unplug your lan cable, there you go, simulated loss of data connectivity Jan 31 20:42:23 hhmmm Jan 31 20:45:45 well Jan 31 20:45:51 there are some controls in ddms Jan 31 20:45:57 but again, no effect Jan 31 20:46:07 so disconnecting the laptop seemed indeed to be the best solution Jan 31 20:46:36 * pfn doesn't use an avd for development... Jan 31 20:48:39 hmm, the icon design guidelines say small/contextual icons should be 16dp - this is way to damn small. they give the example of the star next to a gmail message, that is /not/ 16 dp Jan 31 20:49:18 anomaly looks like a pretty decent game Jan 31 20:49:26 stupid video in market doesn't describe the game well at all though Jan 31 20:49:33 this humble bundle is pretty decent Jan 31 20:50:39 and the games work well on tablets, too Jan 31 20:55:16 damnit Jan 31 20:55:21 i just boguht osmos the other day Jan 31 20:57:17 mikedg, but market auto-updates, you don't get that with humble bundle Jan 31 20:57:28 mikedg, so buy the humble bundle, minus the amount you'd pay for osmos Jan 31 20:57:37 where can I find out about implementing the correct app life cycle? Jan 31 20:57:49 ahow984_, it's documented in Activity javadocs Jan 31 20:57:51 pfn: the FAQ says some games have auto-update features and the rest can be updated from the HB download page Jan 31 20:57:51 as in proper procedure onDestroy and onCreate etc Jan 31 20:58:06 How do you get the title string for a Preference inflated from xml? Jan 31 20:58:10 I'm trying to get the keyboard to popup on the launch of my screen. I've added android:focusable="true" to my EditText and a call to requestFocus. My EditText gets focus on launch, but does not launch the keyboard - is there a separate call for this? Jan 31 20:58:20 dr_traktor, store the string in strings.xml Jan 31 20:58:26 dr_traktor, rather than hard coded into the pref.xml Jan 31 20:58:49 pfn, that's all right, but once I did that how do I grab that string from within the Preference class? Jan 31 20:59:00 using context.getString Jan 31 20:59:19 hmm, the optical sqaure/full asset size ratio changed from .66 to .75 Jan 31 21:00:32 ty pfn Jan 31 21:01:07 question 2: I get an error when I run my app in the emulator about memory usage with bitmaps (can't remember exact error now) Jan 31 21:01:13 should I be worried about it? Jan 31 21:01:21 pfn, so I inflate a PreferencesActivity from an .xml file. How do I get the android:title string the way you can get an int? Like getAttributeIntValue but there is no such function as getAttributeStringValue. Jan 31 21:02:21 I'm animating a toggle button (inside a FrameLayout) and need to update the "hit area" afterwards. I have tried getting the LayoutParams and updating the margin but it doesn't have any effect. http://pastebin.com/mGhamehZ Jan 31 21:02:35 dr_traktor, dunno about what you're doing Jan 31 21:03:02 i couldn't explain it then, nevermind, ill keep looking, thanks for trying Jan 31 21:04:26 Isn't there an ultimate way of updating the hit area (pre honeycomb)? I can't find that much information on google. The ones I find pretty much says the LayoutParams need to be updated. Jan 31 21:06:25 Could someone please look at my spinner code and tell me why it's not populating from the cursor? I'm sure it's something stupid and simple, but I just can't see it. http://stackoverflow.com/questions/9085175/spinner-cursor-issues Jan 31 21:07:43 Carnivoris, don't getcount? Jan 31 21:07:56 pfn, so I'm wrinting a custom Preference that will be inflated from an xml file. What I want to do is to display the value of the preference either in the title or the summary. Now I can use placeholders in these strings but I don't know how can I grab them, substitute them and display them from the code of that CustomPreference class. Jan 31 21:08:09 does anyone have experience with ActionBarSherlock and maven? Jan 31 21:08:51 im getting a ton of errors after including the dependency in my pom.xml when trying to build Jan 31 21:09:30 pfn, okay, now I think I need to use getTitle() and setTitle() sorry for bothering. Jan 31 21:11:07 hello Jan 31 21:12:59 pfn: I just did that to make sure the cursor had data in it. Why would that harm anything? Jan 31 21:13:32 i have one question. I am running an emulator (port 5554) and if I run adb devices the emualtor is listed. I should be abole to connect to it via adb connect 127.0.0.1:5554 right ? Jan 31 21:14:16 Carnivoris, I dunno about cursors returned by sqlite, but getting a rowcount in other systems will consume all data Jan 31 21:14:55 Pinas: if the emulator is already listed, adb can already connect to it. Jan 31 21:15:14 I'm trying to use the following (http://pastie.org/3291356) to force the onscreen keyboard to launch, it is not forcing the keyboard to launch when I run the activity. Does anyone have any ideas? Jan 31 21:15:15 you should only need to bother with adb connect for wifi based ddms or something Jan 31 21:15:16 why would you need to adb connect Jan 31 21:15:26 Pinas: maybe you're thinking of adb shell? Jan 31 21:15:37 lov yes Jan 31 21:17:04 <3 wireless adb Jan 31 21:17:24 I don't turn my wifi on on my phone Jan 31 21:18:58 the zsmart extension cords sound interesting Jan 31 21:19:31 g00s, see, zsmart doesn't even have a product yet and their app is already in the market :p Jan 31 21:19:57 https://market.android.com/details?id=com.zmote.smartcord&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS56bW90ZS5zbWFydGNvcmQiXQ.. Jan 31 21:20:18 g00s, quit laggin' :p Jan 31 21:21:08 g00s' app is vaporware Jan 31 21:21:26 pfn: yeah, removing that getCount() line didn't do anything. The spinner is still empty. Jan 31 21:21:29 i'm a perfectionist Jan 31 21:21:32 they even do sound-based triggering... interesting Jan 31 21:21:41 i redid all of the star button icons today Jan 31 21:21:44 g00s, the rule to software is to release early and often Jan 31 21:21:49 yeah Jan 31 21:22:19 You're never going to finish your app anyway Jan 31 21:22:22 There's always new features Jan 31 21:22:26 once you get past the critical point, you're better off releasing Jan 31 21:22:36 unless you never plan on making money, and just want to continue doing it for fun... Jan 31 21:22:40 and not get any eyeballs Jan 31 21:22:42 oh, its all done now. i just have to pick a package name Jan 31 21:22:49 luv got it sry for the stupid question :) Jan 31 21:22:52 just finished my screenshots for the market Jan 31 21:24:56 hmm, so i am using a CheckBox as a 'favorites' star for list items. but its got a lot of padding to the right, presumably because of the text field, but my text is empty Jan 31 21:25:18 and so the icon is not sitting nicely in the view, its off to the left Jan 31 21:25:54 The checkmark extends a bit to the right of the box Jan 31 21:26:01 That's why Jan 31 21:26:09 the drawables were replaced Jan 31 21:26:17 Oh Jan 31 21:26:34 i think CheckBox is internally a compoundDrawable Jan 31 21:26:50 with a drawable + text, but i don't have text Jan 31 21:29:36 maybe time for negative margins Jan 31 21:33:48 g00s: nooooooooooooooooooooooooo Jan 31 21:33:53 hmm, I just realized I can plug my adk into my GN Jan 31 21:34:00 I wonder if there's something neat I can do with it Jan 31 21:34:02 * pfn ponders Jan 31 21:35:00 heh Jan 31 21:35:08 you can...control the servos? Jan 31 21:35:09 and the relays? Jan 31 21:35:11 and the leds? Jan 31 21:35:17 and read the temperature and light sensor data? Jan 31 21:35:17 that's not so neat... Jan 31 21:35:21 :D Jan 31 21:36:02 * pfn ponders which external battery pack to get from dealextreme Jan 31 21:36:06 http://www.dealextreme.com/p/6600mah-rechargeable-external-battery-with-usb-cable-silver-black-59886 Jan 31 21:36:09 this one sounds kinda good Jan 31 21:37:39 wow, 6 amp hours Jan 31 21:37:57 there's a few other models that look attractive Jan 31 21:38:00 but I like the dual outputs Jan 31 21:38:15 2A @ 5Vdc and .5A @ 5Vdc Jan 31 21:38:19 hmm, .5A is pretty shitty Jan 31 21:38:29 maybe I should cross that off my list Jan 31 21:38:41 pfn, have u seen the power bags? Jan 31 21:38:53 just get a car battery Jan 31 21:38:55 way better Jan 31 21:38:56 Wavesonics, no Jan 31 21:39:03 if only it were portable :p Jan 31 21:39:04 6000mAh battery built into backpacks or messenger bags: http://www.mypowerbag.com/ Jan 31 21:39:15 im thinking about getting one Jan 31 21:39:28 I wouldn't have high hopes for the bag portion of that product Jan 31 21:39:33 maybe they'll sell you the battery alone Jan 31 21:39:36 Wavesonics, I'd rather get a pack like the one I linked and then you don't have to use a specifi bag Jan 31 21:39:48 jrr, aparently they are really well designed bags for ppl w\ lots of gadgets Jan 31 21:39:57 if you want it "built-in", sew a basic pocket to hold the battery Jan 31 21:40:15 * pfn is really picky about backpacks... Jan 31 21:40:21 and messenger bags, hard to find one I really like Jan 31 21:40:44 pfn, ya, i'm trying to find one to replace my backpack for work Jan 31 21:41:13 just wear solar cells on your clothing :) Jan 31 21:41:31 solar cells don't deliver enough current to do anything in a timely manner Jan 31 21:41:52 http://www.dealextreme.com/p/usb-rechargeable-6000mah-emergency-power-battery-pack-w-led-usb-micro-usb-adapters-black-72662 Jan 31 21:41:55 maybe I'll order that one Jan 31 21:41:58 they operate desk calculators pretty well Jan 31 21:42:00 6000mah, and 1 2A output Jan 31 21:42:06 cheaper than the other one, too Jan 31 21:43:11 there was one i was looking at that you attached to your backpack Jan 31 21:44:07 Can I force Android to rerender a PreferenceActivity screen? Jan 31 21:44:20 Even though I'm using setValue() I can't see the title changing. Jan 31 21:44:21 o_O Jan 31 21:44:31 Hey. How can change the content of a linear layout based on the item selected on a spinner on the in the same screen? I mean, if I select one value, it should diplay certain widgets. Jan 31 21:44:33 Isn't it setTitle Jan 31 21:44:38 setTitle() Jan 31 21:44:41 (i'm not sure if I mad myself clear) Jan 31 21:45:49 http://www.dealextreme.com/p/rechargeable-3-7v-5000mah-emergency-mobile-power-charger-for-iphone-ipad-cell-phone-white-113786 Jan 31 21:45:57 5000mah with a 1A and 2A output... but it's pink, damnit Jan 31 21:46:44 hehe Jan 31 21:47:02 pfn: plastics spraypaint Jan 31 21:47:23 maybe I should get the $38 6000mah one Jan 31 21:47:27 I don't /really/ need 2 outputs Jan 31 21:47:34 pfn: just buy a UPS Jan 31 21:47:40 isn't dx usually total crap ? Jan 31 21:47:50 g00s, a lot of the stuff is Jan 31 21:47:52 hey guys Jan 31 21:47:55 i don't think i would by any lithium battery from them Jan 31 21:48:00 you know ICS' EditText box? Jan 31 21:48:09 how come I put a EditText and it shows up like old ones Jan 31 21:48:19 I dunno, can't go wrong with batteries, the problem would be in the charging circuitry Jan 31 21:48:29 i've heard of too many people getting 16850's from them that were bad Jan 31 21:48:48 those the rechargeable double-cr123a kinda thingamabobbers? Jan 31 21:49:00 kinda, yeah Jan 31 21:49:03 18650, yes Jan 31 21:49:10 oops, yeah Jan 31 21:49:13 not 16850, lysdexic fool Jan 31 21:49:13 :p Jan 31 21:49:18 XD Jan 31 21:49:46 But really how do you use setTitle() so that its effect will be visible immedately? Can it be done? Jan 31 21:49:57 and yeah, 18650 are like a double series cr123a Jan 31 21:50:04 speaking of cr123a, I need to order a bunch Jan 31 21:50:19 * pfn is running out of batteries for his flashlight Jan 31 21:50:27 rechargable Jan 31 21:50:29 ftw Jan 31 21:50:34 they are 18mm dia and 65mm long ;) 3.7-4.2v Jan 31 21:50:48 but usually a little longer with the protection pcb Jan 31 21:50:52 3.7v sounds a bit low... Jan 31 21:51:12 oh, i only get the protected ones for the flashlights i have Jan 31 21:51:38 speaking of flashlights, I wonder if fenix has any new hotness Jan 31 21:51:44 meh fenix Jan 31 21:51:50 zebralight sc600 ftw ! Jan 31 21:51:53 how do I run ICS with MapActivity Jan 31 21:53:11 hmm, H/M/L levels with 2 levels of brightness in each sounds awkward Jan 31 21:53:20 its awesome Jan 31 21:53:32 * pfn prefers the P2D-style light levels Jan 31 21:53:35 you have to double click to get the submode Jan 31 21:53:40 turbo/strobe and H/M/L normal mode Jan 31 21:53:51 does b.android.com track bugs for gapps, like com.android.gallery3d.provider? Jan 31 21:53:58 tophyr, no Jan 31 21:54:11 how can i report a bug for one of those apps? Jan 31 21:54:11 and it's a side switch not a tailcap switch? ftl Jan 31 21:54:20 tophyr, contact google support directly Jan 31 21:54:23 pfn: the fenix tk70 looks like a toilet plunger , doesn't it ? Jan 31 21:54:44 kk Jan 31 21:54:48 g00s, sure does, heh Jan 31 21:54:53 g00s: maybe it's a dalek plunger ;) Jan 31 21:54:59 hehe Jan 31 21:55:05 g00s, I personally like the pd32 (current light is a p2d) Jan 31 21:55:12 er Jan 31 21:55:16 nevermind, apparently, I have a pd30 Jan 31 21:55:17 heh Jan 31 21:55:33 yeah, i have had most of those , pd30, ld20, etc Jan 31 21:55:53 huh, side switch for strobe Jan 31 21:55:54 lame, again Jan 31 21:55:58 hmm.. there are quite a few support avenues.. any suggestions on where to look specifically? Jan 31 21:56:02 meh, stop trying to "innovate" bastards Jan 31 21:56:15 tophyr, depends on which gapp, go into the google support sites Jan 31 21:56:30 pfn: problem is , the xml-l emitter doesn't really work in the pd / ld form factor Jan 31 21:56:39 its diameter is too large Jan 31 21:57:39 indeed, I like the pd form factor Jan 31 21:57:45 possibly picasa? Gallery, really. i don't see anything android-related in the Picasa section Jan 31 21:57:47 and ~200 lumens is plenty for just about anything I need Jan 31 21:58:00 meh, stupid pd32 makes the strobe a 1 second press function... how is that useful... Jan 31 21:58:00 pfn: i have seem the ld20 at rei Jan 31 21:58:15 i used strobe to signal a rescue helicopter for someone Jan 31 21:58:20 worked well Jan 31 21:58:36 sos blinker works fine for that, too Jan 31 21:58:41 if you are surrounded by a lot of other light sources, you need something that blinks Jan 31 21:58:46 (for rescue) Jan 31 21:58:54 right, these lights have an sos blinker mode, too Jan 31 21:58:56 sos blinker + strobe Jan 31 21:59:38 right now i got rid of everything except an eagletac m2 and my zl sc600, zl H31, and h51 Jan 31 21:59:50 <3 zl ui Jan 31 21:59:57 I just keep my pd30 around Jan 31 22:00:08 I have no idea where my surefire 6pl went Jan 31 22:00:26 i also have a sc51, works incredibly well on a single AA. their regulators are very efficient Jan 31 22:00:35 never had a surefire Jan 31 22:00:52 surefires are too expensive for what you get... Jan 31 22:00:57 yeah Jan 31 22:01:47 hmm, actually, I guess the pd32 sounds interesting... Jan 31 22:02:02 mode switching is on the side and the tail button is now actually tactical/momentary Jan 31 22:02:13 so you can use tactical switching on strobe... that's pretty handy Jan 31 22:02:29 i used to have a lot of jetbeams but they kinda went to crap Jan 31 22:02:36 what is the difference between "item clicked" and "item selected"? related to ListView Jan 31 22:02:51 jahid, selected means it's checked, clicked means you tapped it Jan 31 22:02:52 pfn: http://www.jet-beam.com/links/pro/pa20.aspx Jan 31 22:03:17 pfn, there is no check box so that it can be selected Jan 31 22:03:35 jahid, that's a matter of display Jan 31 22:03:44 this is a silly question, but what's the best way to go about adding "optional" methods to an interface? should i just use an abstract class? Jan 31 22:03:45 g00s, interesting, seems a bit long Jan 31 22:04:03 either that or the handmodel is a lady Jan 31 22:04:13 oh, runs 2xAA, lame Jan 31 22:04:14 heh, they push their emitters harder Jan 31 22:04:17 pfn, in listview there are two methods "setOnItemClickListener" and another is "setOnItemSelectedListener". so confused which one is what Jan 31 22:04:22 they have the same form factors as fenix Jan 31 22:04:32 same as the LD32 Jan 31 22:04:32 their m1x was nice Jan 31 22:04:47 i'm writing an interface that defines a callback that my stream parser then makes calls on when it receives objects. i'd like to add methods that get called when it's starting and ending parsing, too, but i don't want the implementor to necessarily have to worry about these Jan 31 22:05:20 meh, it's best to use an abstract class, i suppose Jan 31 22:05:21 Escherial, define a 2nd interface that the implementer can choose to implement as well Jan 31 22:05:37 pfn: ah, that's not a bad idea :) Jan 31 22:05:46 if (listener instanceof EnhancedListener) { enhancedlistener.dispatchEnhancedMethods(...) } Jan 31 22:06:07 while i shy from instanceof, that makes some sense... Jan 31 22:06:30 instanceof is such a dirty little secret ;) Jan 31 22:06:42 * pfn shrugs Jan 31 22:06:43 many engineers think it's "poor practice", and in many ways it is, and yet ideally designed software will often use it. Jan 31 22:06:45 * pfn prefers pattern matching Jan 31 22:06:55 just like casts. Jan 31 22:06:58 jasta, well, the problem is java makes using it extremely clunky Jan 31 22:07:04 * Jug6ernaut uses instanceof Jan 31 22:07:09 but only one situation i think Jan 31 22:07:13 i use instanceof and sometimes visitor instead Jan 31 22:07:23 if there are a lot of instanceofs in a chain Jan 31 22:07:40 problem with visitor in java is exception tunneling Jan 31 22:07:53 * Jug6ernaut has never even heard of visitor Jan 31 22:08:00 g00s, I just prefer unchecked exceptions all around Jan 31 22:08:04 hehe Jan 31 22:08:05 don't need to tunnel nothin' Jan 31 22:08:17 java and their damn checked exeptions Jan 31 22:08:40 you can write jsr199 plugins to make checked exceptions become unchecked pretty easily ;-) Jan 31 22:09:15 it's a pity that eclipse/netbeans/idea don't do jsr199 natively Jan 31 22:11:47 fuggit, I'll order the 6600mah battery Jan 31 22:15:33 is instanceof faster than just calling .getLocalClassName() ? Jan 31 22:15:39 yes Jan 31 22:15:41 just curious Jan 31 22:15:47 cool Jan 31 22:15:52 um Jan 31 22:15:53 also Jan 31 22:16:02 the answer of course is onions Jan 31 22:16:03 new String() instanceof CharSequence == true Jan 31 22:16:15 canadiancow2: did you clone yourself? or grow another from lab meat ? Jan 31 22:16:22 oh wtf Jan 31 22:16:27 oh so instaceof works for all inherited classes Jan 31 22:16:30 lol Jan 31 22:16:35 drezel, that's what an instanceof test means Jan 31 22:16:46 i suppose so! Jan 31 22:16:54 hehe Jan 31 22:16:59 otherwise you could do (object.getClass() == Object.class) Jan 31 22:17:05 or something silly like that Jan 31 22:17:14 ya Jan 31 22:18:03 too bad the bigger dealextreme batteries don't do microusb Jan 31 22:20:30 hi Jan 31 22:20:34 does anyone know about http://stackoverflow.com/questions/8989622/does-ics-have-intent-to-connect-to-an-already-defined-vpn (question is basically in the url...) Jan 31 22:22:45 what are the chances of the next ipad being 320dpi? Jan 31 22:22:56 seems pretty high Jan 31 22:23:35 canadiancow|work w/e 4x the current res is Jan 31 22:23:44 (space @ least) Jan 31 22:23:55 2xheigh 2xwidth Jan 31 22:23:59 that would be 320 Jan 31 22:24:08 err, it's 160 now Jan 31 22:24:14 the transformer prime is already going to 1920x1200 Jan 31 22:24:22 what's that though...240? Jan 31 22:24:24 hdpi? Jan 31 22:24:27 samsung is gonna announce some higher res thing at mwc Jan 31 22:24:41 pfn yea thats what i heard Jan 31 22:24:42 supposedly 25nnx16mm Jan 31 22:24:43 i cant wait Jan 31 22:25:01 huh Jan 31 22:25:03 nn mm? Jan 31 22:25:03 I'd like to create a preference with a dynamic title. How do you make the system redraw the PreferenceActivity screen once that title changes? Jan 31 22:25:28 u shouldnt have to...just call preference.settitle() Jan 31 22:25:38 i "think" it should update it Jan 31 22:25:40 * Jug6ernaut could be wrong Jan 31 22:25:42 i dont think so tho Jan 31 22:25:51 Jug6ernaut, yes, well it's not updating it. Jan 31 22:25:59 Doin it wrong! Jan 31 22:26:12 are u sure u have the right prefernce instance? Jan 31 22:26:20 Jug6ernaut, double checking... Jan 31 22:26:53 dr_traktor: setTitle() will definitely update the text Jan 31 22:29:15 evancharlton, yes, something else is wrong, intriguing. Jan 31 22:29:28 lol Jan 31 22:35:59 Escherial, heh, I was bored, and was looking at how to easily dispatch to a listener in scala, in there, it'd be Option(listener) collect { case e: EnhancedListener => e.dispatchEnhancedEvent ... } Jan 31 22:36:34 of course, that's totally mixing the FP and imperative paradigm and I'd get shunned for doing that Jan 31 22:36:34 Is there some kind of way that, after margins, padding, and alignment, to find out exactly how many items can fit into a grid view? Jan 31 22:37:18 explodes: yes, but by inverting how you're thinking about the problem. Jan 31 22:37:25 think about it from the layout and measure pass point of view. Jan 31 22:37:59 what do you guys think of android phone that would let you safely mod it (without bricking), and have both guaranteed updates for 18 months and paid updates for future OS versions? Jan 31 22:38:14 jasta, so extend gridview and find out onMeasure? Jan 31 22:38:23 p_l, that's effectively the nexus phones... Jan 31 22:38:32 without paid updates Jan 31 22:38:43 explodes: no...extend its children Jan 31 22:39:00 Sure did that already Jan 31 22:39:09 ok, then you have your answer. Jan 31 22:39:21 pfn: well, with some more stuff in the official rom probably, especially in "bussiness" targeting phones Jan 31 22:39:25 Iterate through the views in the adapter to find average width and height? Jan 31 22:39:34 What about the gridview's verticalSpacing Jan 31 22:39:36 explodes: no... Jan 31 22:40:01 let's take a step back. explain precisely what your end goal is, not how you're trying to achieve it. Jan 31 22:40:08 pfn: personally, I'd like to find a radio chip that would cover all frequency bands and networks (CDMA2000, GSM, UMTS/HSPA, LTE, TD-SCDMA, TD-LTE) Jan 31 22:40:21 this is the A to B problem Jan 31 22:40:22 p_l: those aren't very hard to find Jan 31 22:40:32 p_l: the tricky part is catching the unicorn they're strapped to Jan 31 22:40:35 evancharlton: hahaha Jan 31 22:40:43 p_l, the rezound supposedly has a gsm radio in it... Jan 31 22:41:16 explodes: A to B? Jan 31 22:41:27 Problem B is that I have a PagedGalleryView with is a View with a GridView, and buttons to control the pages. The GridView is assigned a PagedViewListAdapter:BaseAdapter that cuts up the items in the adapter based on the current page Jan 31 22:41:50 anyone know if i can start a predefined VPN from within another application (llama/tasker etc), as this got way easier in ICS? Jan 31 22:42:00 "I need to do B, so tell me how to do X which will solve B even though the better solution would be to solve how to do A" Jan 31 22:42:05 Or something like that. Jan 31 22:42:12 nibbier, look in aosp source, see if there's an intent to support what you want Jan 31 22:42:16 * pfn assumes no Jan 31 22:42:16 your rambling lost me Jan 31 22:42:26 The scope of this problem is more than just "how do i find out how many items will show up in my grid view" Jan 31 22:43:20 I can resolve MY problems without explaining the whole scope if I know how to find that amount of items, but being the asker of the question, I chose to only ask the question instead of explaining everything... Jan 31 22:43:21 i knew that before you started explaining of course. Jan 31 22:43:37 Its a common problem with IRC Q&A in programming Jan 31 22:43:56 ok, apparently you don't want my help so i'll just go back to what i was doing Jan 31 22:44:00 No no Jan 31 22:44:16 I know what I'm saying sounds ..rude.. but I'm just trying to explain the A to B problem Jan 31 22:44:37 Using my example makes it sound like its targeted towards the whole situation Jan 31 22:44:44 If you know what I mean Jan 31 22:44:54 i understand what you mean, and i also understand that you're wasting both of our time. Jan 31 22:44:58 I have setRetainInstance set to true on my fragment, but when I perform a screen rotation I have an instance variable that is reset, any idea what would cause this? Jan 31 22:45:15 developernotes, that particular fragment didn't have retain instance set Jan 31 22:45:16 developernotes: are you resetting it somewhere? Jan 31 22:45:30 either you're setting it too late Jan 31 22:45:33 developernotes: note that various pieces of the lifecycle still get called Jan 31 22:45:34 or you're setting it false Jan 31 22:45:51 pfn: I set retainInstance in the constructor, it's in my base class. Jan 31 22:46:09 the only instance variables that might get cleared are ones that are in the fragment base class Jan 31 22:46:15 developernotes: set a breakpoint to trigger any time the value changes Jan 31 22:46:16 any other instances should be unaffected Jan 31 22:46:17 evancharlton: nope, it was just tracking the content of an EditText Jan 31 22:46:32 developernotes, then you're probably nulling the variable yourself Jan 31 22:46:53 is there any way to force recreating views if you use setRetainInstance? Jan 31 22:47:01 that's the problem I have with retaining instances Jan 31 22:47:25 I change the theme of my app, call recreate() and the app comes back with the new theme, except the fragments whose instance was retained, they come back with the old theme... Jan 31 22:47:48 I guess I could detach and re-attach, that might do it... Jan 31 22:50:56 evancharlton: hmmm, I only have one line where the variable is even set. It will have a value, I perform the screen rotation and another line that attempts to use that value shows it as null. Jan 31 22:51:13 developernotes, then that line sets it to null Jan 31 22:51:19 the retainInstance value is still true all the way through. Jan 31 22:51:38 developernotes: put a breakpoint on that line, see if it gets called Jan 31 22:51:47 this could be solved in like 20 seconds with a debugger :) Jan 31 22:51:50 pfn: no, I set a break point on the line and watched it, it only was assigned a actual value, a string in my case. Jan 31 22:52:02 e.g. if you do something like class fragment { var f = getActivity().getSomething; setRetainInstance(true) } Jan 31 22:52:09 the second time it runs, f will be null Jan 31 22:52:13 evancharlton: I did, but it didn't solve it. :-) Jan 31 22:52:37 developernotes, clearly, check to see if the fragment instance is the same Jan 31 22:52:44 additionally, ensure that you are not /creating/ a new fragment Jan 31 22:52:59 pfn: fair enough, I'll check that. Jan 31 22:53:24 i.e. fragment = manager.findFragmentByTag("my fragment tag"); if fragment == null; fragment = new fragment(); manager....add(fragment)... Jan 31 22:53:46 that's probably one of the biggest gotchas that caught me while I wasn't paying attention Jan 31 22:53:56 be very careful of everyplace where you create your fragments Jan 31 22:56:10 pfn: evancharlton: looks like my fragment was being created in the onCreate of the activity so it was creating it again on rotation. thanks for the pointers. Jan 31 22:56:25 indeed Jan 31 23:01:23 pfn: if you pick up a domain, do you also get both the .com/.org top levels to "reduce confusion" ? i'm still new at this Jan 31 23:01:36 wondering if i should just get one or the other Jan 31 23:01:44 g00s, I just take .com personally Jan 31 23:01:50 k, thx Jan 31 23:02:18 g00s, if you ever plan on going big with the domain, I imagine you would want to pick up .net and .org as well Jan 31 23:02:31 just to keep squatters and phishers from abusing your site Jan 31 23:02:31 ok Jan 31 23:02:39 s/site/name Jan 31 23:02:57 yeah, like google also bought google.org and google.net, etc? Jan 31 23:03:06 don't pay attention to pfn, he's just a troll Jan 31 23:03:52 there are almost no major websites that also bought the other domains to prevent squatters/abuse Jan 31 23:04:03 name one. Jan 31 23:04:57 you just named google already Jan 31 23:05:07 and there isn't google.org or google.net, numbnuts Jan 31 23:05:15 sarcasm > you Jan 31 23:05:16 uh Jan 31 23:05:19 ok Jan 31 23:05:41 pragma_: ...cool it. Jan 31 23:05:59 google.org and google.net are both owned by google Jan 31 23:06:09 ibm.net and ibm.org are both owned by ibm as well Jan 31 23:06:40 and as a NIC, godaddy owns their own .org and .net as well Jan 31 23:06:53 * pfn got suckered in by the troll :-/ Jan 31 23:07:15 * _Shurik_ wonders if there's google.gov Jan 31 23:07:26 _Shurik_: give it a few more years Jan 31 23:07:35 <_Shurik_> indeed Jan 31 23:07:51 <_Shurik_> although their profits weren't as good last quarter, so I don't know I don't know Jan 31 23:08:05 profits were still just as good Jan 31 23:08:12 the growth wasn't as much as expected Jan 31 23:08:33 <_Shurik_> see, gots to have growths Jan 31 23:08:37 as for comparing quarters, it's YoY Jan 31 23:08:44 <_Shurik_> or no .gov Jan 31 23:08:46 since profits are always seasonal Jan 31 23:10:03 I wish finance sites would allow plotting eps history to see growth... Jan 31 23:10:35 pfn: i think i took so long to choose a domain, one of the ones i wanted came up free again :D Jan 31 23:10:47 _Shurik_: it would have been gov.google Jan 31 23:10:51 g00s, heh Jan 31 23:11:03 g00s, snatch it up while you can Jan 31 23:11:08 so sites like board.gov.google, mtv.gov.google ;) Jan 31 23:11:25 assuming they want to use a google tld Jan 31 23:12:02 any SQLite users here? I'm trying to do a query on a column containing strings and one has a ":" char in it which threw an exception :( Jan 31 23:13:05 no sqlite users Jan 31 23:13:08 only mind readers Jan 31 23:13:36 hey those are good too... sometimes Jan 31 23:14:53 should i do a .rawQuery instead of a .query? documentation doesn't explain the difference Jan 31 23:15:22 oh bleh no that doesn't help based on the arguments Jan 31 23:16:22 since the menu button is getting dropped, what sort of alternative are we suppose to use for fullscreen stuff such as video players or when I'd like to use the entire screen for a list of items? Jan 31 23:16:39 screen space isnt something which is plenty in the first place Jan 31 23:19:47 drezel, you know, if you want help, you need to describe fully what is happening Jan 31 23:19:57 because contrary to what I said, there are no mindreaders Jan 31 23:21:22 oh sorry i figured i was on my own heh Jan 31 23:21:27 i'm getting this error Jan 31 23:21:32 pastebin everything Jan 31 23:21:54 uh hm Jan 31 23:21:59 ok Jan 31 23:24:11 im storing dates as ms since unix epoch, is there a way to use the SimpleCursorAdapter to display that as a datestring (e.g. 2012-01-31 15:42 ) Jan 31 23:24:48 smoak, wrap it with an object whose toString returns new Date(time).toString() Jan 31 23:25:21 but im getting back a Cursor from the db Jan 31 23:25:42 smoak, so extend simplecursoradapter Jan 31 23:25:52 change getView so that it sets the text appropriately Jan 31 23:26:15 ^ ^ yea, that's exactly what i did for that exact same problem Jan 31 23:26:38 ah gotcha, thanks Jan 31 23:29:11 hey guys. just a quick question and ive been looking around but have had no luck. Is there any way to call an intent to a pdf reader or something, and then hear back from that application (say adobe reader) when the user has turned a page or just get general knowlege about where the user is in the pdf? Jan 31 23:29:30 this is the sqlite error i'm getting after doing query()... http://pastebin.com/fd3BXLpj Jan 31 23:30:19 the ":" char in the message is getting interpreted as a query command of some sort... i need it to escape it or ignore it Jan 31 23:37:29 dreez_, i think you need the double quotes Jan 31 23:39:11 how so? i have no control over the contents of the message... Jan 31 23:39:31 dreez_, can you post the java code of that query? Jan 31 23:41:12 http://pastebin.com/BTgVQxrE Jan 31 23:42:23 this is the dirty solution: http://pastebin.com/index/BTgVQxrE Jan 31 23:43:02 it would be better if you use the android apis, you will get your strings escaped automatically Jan 31 23:44:21 sorry Jan 31 23:44:44 i dont see anything different in your paste.. and the url matches mine Jan 31 23:45:01 what are the android apis you speak of? SQLiteQueryBuilder? Jan 31 23:45:16 http://pastebin.com/VAV23L1K Jan 31 23:45:55 i didn't see the pastebin error, sorry it pretty late for me Jan 31 23:46:29 aha! SQLiteQueryBuilder.appendWhereEscapeString () looks deliciously tempting Jan 31 23:46:48 hehe np, appreciate any response :) Jan 31 23:47:36 ah, and i see what you did.. just surround it with a literal quote Jan 31 23:48:12 anyway, as you can see in the doc the 4° paramater of the query method is selectionArgs Jan 31 23:49:04 you can use like this: m_db.query(TABLE,null, NAME + " = ?". new String[]{"hi"}, null, ...) Jan 31 23:49:55 it will automatically escape you string. but if you have a lot of conditions in the where clause maybe you will write more readble code use sqlite query builder class Jan 31 23:50:30 wtf is message=deleted: deleted Jan 31 23:50:36 cool, so using ? with selectionArgs is kinda like a printF() with % it sounds like Jan 31 23:51:09 and yes, properly use the query call with placeholder args Jan 31 23:51:15 pfn, probably a violation of the first normal form :D Jan 31 23:51:21 pfn: it was a real message from a user, so i deleted the name and contents Jan 31 23:51:40 I have a listview however when my phone is in horizontal state I'd like to populate a gallery view instead, can anyone point me towards some information about this? Jan 31 23:51:41 dreez_, ahhh :) Jan 31 23:51:57 snot, use a different layout for -land Jan 31 23:52:35 pfn: so how do I deal with it java code wise, an if(horizontal) {... ? Jan 31 23:52:48 and a second adapter as well Jan 31 23:52:57 snot, depends, findViewById(R.id.whatever); do stuff based on return value Jan 31 23:53:06 is the option I'd consider taking Jan 31 23:53:23 if ListView, populate listview, if gridview, populate gridview, etc. Jan 31 23:53:56 hmmm... but since I cast that return value to a listview... how can I see what it actually is? Jan 31 23:54:07 snot, check instanceof before casting Jan 31 23:54:18 if view instanceof ListView cast to ListView Jan 31 23:54:51 ah good ol' instanceof again ;) Jan 31 23:55:29 no instanceof! use polymorphism :D Jan 31 23:55:41 * pfn would do Option(view) collect { case listview: ListView => doStuffWith(listview) } Jan 31 23:56:00 pfn: ok, can I use -land for drawables as well as layouts? Jan 31 23:56:09 and throw in case g: GalleryView => doStuffWith(g) Jan 31 23:56:12 snot, yes Jan 31 23:56:25 "tap to remove redeye" isnt working Jan 31 23:56:28 hm... does anyone know about tinyalsa? i'm trying to capture from pcm/microphone but pcm_is_ready() returns FALSE ... anyone knows how I could debug this? there's no alsactl util for android... could i somehow gain info about the card in my device? Jan 31 23:56:29 stupid galaxy nexus :( Jan 31 23:56:40 ok, so now I use polymorphism instead of instanceof? :) Jan 31 23:58:16 canadiancow: it doesn't work on canadians Jan 31 23:58:18 or cows Jan 31 23:58:36 sucks for google Jan 31 23:58:44 i was using it in a "why galaxy nexus can replace iphone" demo Jan 31 23:58:54 hehe Feb 01 00:00:01 i was reading today (possibly false, digitimes) that handset oems are waiting for iPhone 4s sales to cool off in 2q before introducing new devices, but it seems sketchy Feb 01 00:00:28 aren't the already cooled off? >_< everybody i know already has one Feb 01 00:02:02 i have one Feb 01 00:03:03 i was semi-interested in the iphone 4, but decided to hold off for a wp7 device like the lumia 900 Feb 01 00:04:37 have the design guidelines been updated since they were originally published ? Feb 01 00:05:00 there were a few sins of omission and commission Feb 01 00:07:27 pfn: I dont quite understand the syntax for option collect case... stuff you mention. can you point me towards some docs or give a more complete example? Feb 01 00:10:30 google released a previously closed android app a few days ago as open source, it was for viewing stars i think Feb 01 00:10:36 anyone remember what it was called ? Feb 01 00:11:01 g00s: google sky? Feb 01 00:11:07 ok, thx Feb 01 00:11:39 ok, i tracked it down to tinyalsa saying "Could not read from pcm stream: "cannot open device '/dev/snd/pcmC0D0c': Permission denied" ... and "android.permission.RECORD_AUDIO" doesn't change it Feb 01 00:11:52 does anyone know how I get my app running in the "audio" group? Feb 01 00:12:18 rigid: what are you trying to do? Feb 01 00:13:23 sky map Feb 01 00:13:25 nullpuppy: capture from pcm using tinyalsa Feb 01 00:13:37 snot, it's not java ;-) Feb 01 00:14:17 pfn: standardml? Feb 01 00:14:24 sml Feb 01 00:14:25 even Feb 01 00:14:26 snot, scala Feb 01 00:14:32 nullpuppy: pcm_open() succeeds but pcm_is_ready() fails... what I pasted above is from pcm_get_error() Feb 01 00:14:34 ehweee :) Feb 01 00:14:38 pfn: looks like its not possible :/ at least to with my knowledge Feb 01 00:14:47 pfn: looks a bit like sml too, damn uni! :) Feb 01 00:14:55 pfn: anyway thanks for the support Feb 01 00:14:59 snot, well, pattern matching is a common feature in functional languages Feb 01 00:15:14 pfn: and a nice one too Feb 01 00:15:16 snot, and I mention scala because it's entirely possible to use scala + android reasonably well Feb 01 00:15:56 * snot badly wishes that you could use just soemthing beside java on android Feb 01 00:16:02 snot, scala :p Feb 01 00:16:16 pfn: full gui support? Feb 01 00:16:21 clojure Feb 01 00:16:27 clojure is a bad choice for android Feb 01 00:16:28 very bad Feb 01 00:16:31 snot: it's a jvm language Feb 01 00:16:34 pfn: how come? Feb 01 00:16:41 gkatsev, it's a fully dynamic language Feb 01 00:16:48 which will run piss-poor on android Feb 01 00:16:51 dalvik Feb 01 00:16:59 gkatsev: so is jython (AFAIK) Feb 01 00:17:01 so it'll be slow untill android gets java7&8 stuff? Feb 01 00:17:09 gkatsev, pretty much Feb 01 00:17:10 is this sentence correct ? "it's the second month of the year, you should make the most of it" Feb 01 00:17:11 snot: yes, you could use jython too Feb 01 00:17:14 gkatsev, maybe even for well after then as well Feb 01 00:17:20 oops..wrong channel sorry Feb 01 00:17:24 but its also slow because of a lot of gc, i heard Feb 01 00:17:24 sh*t Feb 01 00:17:25 gkatsev: no, not really Feb 01 00:17:32 pfn: ok, but scala has some stuff that make it not has bad? Feb 01 00:17:48 gkatsev, scala is a fully static language, and no dynamic invocations, except in the case of duck typing Feb 01 00:17:52 which is pretty rare Feb 01 00:17:58 ah, right. Feb 01 00:18:02 I keep forgetting Feb 01 00:18:07 (i.e. completely unused by the standard library and most developers) Feb 01 00:18:23 right, makes sense Feb 01 00:18:48 snot: you can use any jvm language. some more easily and to better results than others Feb 01 00:19:04 that's about right Feb 01 00:19:07 but with dalvik, you're best off using a static language Feb 01 00:19:12 of which, there are very few on the jvm Feb 01 00:19:15 makes sense Feb 01 00:19:28 I think scala is the only real option for a static jvm language Feb 01 00:19:33 (outside of java, of course, duh) Feb 01 00:19:47 scala is great anyone, so, that's ok :) Feb 01 00:19:53 JesusFreke just writes dex directly Feb 01 00:19:56 like a boss Feb 01 00:20:11 that's no fun... for me Feb 01 00:20:58 6465780A30333500.... Feb 01 00:22:25 anyway, a little knowhow makes scala a pretty pleasant environment for developing android in Feb 01 00:22:33 android apps Feb 01 00:23:29 is there a way to compile android on android? Feb 01 00:23:43 not currently, no Feb 01 00:24:24 could an app implement something like that or probably not unless it sends it over to a server or something? Feb 01 00:24:55 rigid: I'm coming up pretty empty. Could be an NDK permission issue or something. Feb 01 00:25:05 gkatsev, I imagine it's possible, but a very slowprocess Feb 01 00:25:15 gkatsev, not fast enough to be practical Feb 01 00:25:26 yeah, I guess faster to send it to a server and have the server send back an apk Feb 01 00:25:58 nullpuppy: yep... it seems my ndk app isn't allowed to access /dev/dsp which is "chown system:audio" but I don't find a way to ask for that permission Feb 01 00:25:59 just ssh into a server, develop and build Feb 01 00:26:01 then download the apk Feb 01 00:26:07 that's what I do if I'm on my tablet by itself, heh Feb 01 00:26:20 ssh into my shell, code code code, ant debug; browse to http to download ak Feb 01 00:26:20 done Feb 01 00:26:22 heh Feb 01 00:26:23 apk Feb 01 00:26:24 simply adding RECORD_AUDIO permission to the AndroidManifest.xml doesn't seem to help Feb 01 00:26:45 yeah, I have my transformer, that's what I'm doing right now for various code, but dont have android set up for terminal building Feb 01 00:26:46 yep, because the apps are sandboxed, in a sense. Feb 01 00:26:50 hmm Feb 01 00:27:00 gkatsev, needing to use eclipse to develop is teh suck Feb 01 00:27:10 and the android.permissions looks to just affect java api access, not ndk stuff Feb 01 00:27:12 gkatsev, but if you have a standard android project, setting up ant to build is trivil Feb 01 00:27:13 intellij idea ftw :3 Feb 01 00:27:23 gkatsev, just android update project -t android-15 -p . Feb 01 00:27:27 and then you can ant all day long Feb 01 00:27:27 When registering to receive a notification for a broadcast, does that go on througought an apps life even after its dead? Feb 01 00:27:34 pfn: yeah, i'll probably figure out ant once I really need it Feb 01 00:27:54 so far just doing node.js over ssh Feb 01 00:28:16 rigid: I don't think you're going to be able to access /dev/dsp since you're neither system nor in the audio group Feb 01 00:29:48 evancharlton: can I somehow get into the audio group? or what would be an alternative to record audio from an NDK app? use JACK? Feb 01 00:31:00 oh, found the answer on stackoverflow... it seems i have to capture audio in java Feb 01 00:31:03 :-/ Feb 01 00:40:21 how does the phone map a ContactsContract.CommonDataKinds.Phone.TYPE_HOME to the string " Feb 01 00:40:23 Home" Feb 01 00:40:40 isn't TYPE_HOME a string "Home" ? Feb 01 00:40:48 no its an integer Feb 01 00:40:54 constant value 1 Feb 01 00:41:09 http://developer.android.com/reference/android/provider/ContactsContract.CommonDataKinds.Phone.html#TYPE_HOME Feb 01 00:42:14 * pfn shrugs Feb 01 00:43:56 How do I pass a short[] array to a JNI function? I've tried jshort[] but that's not right. Feb 01 00:45:34 Oh :D jshortArray Feb 01 00:46:03 after I git clone the msm sources, how do I make git populate the source files in that directory ? Feb 01 00:46:13 these are the kernel sources Feb 01 00:48:18 is there a way to make the intellij build more verbose? Feb 01 00:48:22 I can't seem to find the setting Feb 01 00:48:22 Anyone know what the default layout is for AlertDialogs? Feb 01 00:49:25 right now my Make process is sitting at Building Android package.... Feb 01 00:49:29 with the bar full Feb 01 00:57:26 AlertDialog probably uses some layout xml in your sdk install location Feb 01 00:57:40 Yeah. Feb 01 00:57:46 I think it's probably simple_list_item_1. Feb 01 00:58:03 It'd be nice to know, though. Feb 01 00:58:17 nope, simple_list_item_1 is for a 2 line listView Feb 01 00:58:28 I think that's simple_list_item_2. Feb 01 00:58:35 I'm looking at _1, and it's got 1 textview. Feb 01 00:58:41 android-sdk\platforms\android-8\data\res\layout\alert_dialog.xml perhaps? :D Feb 01 00:59:15 Nope. Feb 01 00:59:18 its in the same location for API 15 too Feb 01 00:59:42 That's the layout for the dialog itself. Feb 01 00:59:52 Oh, oops. Feb 01 00:59:54 I'm retarded. Feb 01 00:59:56 I asked the wrong question. Feb 01 01:00:01 heh Feb 01 01:00:05 i was about to say... Feb 01 01:00:14 I meant the layout for the list items when you use setItems. Feb 01 01:00:27 oh. yea, completely different Feb 01 01:00:43 what's setItems? for the multi choice list? Feb 01 01:01:17 Yeah Feb 01 01:01:36 try android.R.layout.simple_list_item_multiple_choice Feb 01 01:01:55 Well, it's not just for multiple choice. Feb 01 01:01:57 and then use android.R.id.text1 for the entry Feb 01 01:02:10 I think it's probably simple_list_item_1 if you have choice mode on CHOICE_NONE. Feb 01 01:02:15 Or CHOICE_MODE_NONE Feb 01 01:02:33 yes, a listview without multi choice selection is simple_list_item_1 Feb 01 01:02:40 odd that running sdk commands from the command line tells me java isn't in my path Feb 01 01:02:42 when it very much is Feb 01 01:02:52 i get that too Feb 01 01:03:04 You sure it's in your current user's path? Feb 01 01:03:09 Yup Feb 01 01:03:13 Sometimes I get that shit if I put it in the global path by accident. Feb 01 01:03:22 Or vice versa or something. Feb 01 01:07:50 how can i find the value of android.R.attr.listPreferredItemHeight? getResources().getDimension throws an exception when passed that identifier Feb 01 01:08:48 ah, nm, google to the rescue.. getTheme().resolveAttribute Feb 01 01:16:27 EditTexts in dialog don't automatically pull up a soft keyboard? Feb 01 01:22:53 test Feb 01 01:23:06 wow been long time since i used IRC Feb 01 01:24:10 hello Feb 01 01:24:15 hello Feb 01 01:24:27 i think we are the only 2 alive in here Feb 01 01:24:38 Hardly. Feb 01 01:24:49 great Feb 01 01:24:58 for an imageadapater, ie the one for the gallery tutorial, what would you have to use to make it start off with X image out of the array or drawable images? Feb 01 01:25:08 I want it to beoh wait Feb 01 01:25:16 so i have a question on a project im working on. anybody willing to point me in the right direction? Feb 01 01:25:17 oh wait, I think I know how I can fix this Feb 01 01:25:24 sup sab0tr0n Feb 01 01:25:51 sab0tr0n: The general rule in channels like this is that you just ask, and don't ask to ask. Feb 01 01:26:13 ok so i have this pitchpipe application im working on Feb 01 01:26:47 now i've been taking java classes for a few semisters now, so im somewhat ok on java, but what im looking to do is this: Feb 01 01:27:03 i have this image of a pitch pipe, its bascially a round circle with notes on it Feb 01 01:27:36 im trying to map each individual note as a "touch point" so that when the user touches that point, it plays a mp3 Feb 01 01:28:07 i have no idea how to do that. i currently have my app at the state where it has the image of the pitchpipe, and i have an ontouchlistener attached to the image Feb 01 01:28:24 it currently will display the x y coordinates to me in a toast window, but im not sure i should be approaching it that way Feb 01 01:29:31 is there a way to have it so only certain points of the image are touchable, and if those points are touched, the note plays? Feb 01 01:29:49 i can give you my project if you wish to see what im talking about Feb 01 01:30:57 I think you need an onTouchListener. Feb 01 01:31:01 Disclaimer: I have never used one. Feb 01 01:31:31 i have one mapped to the image. and the ontouchlistener works, but it listens for touches on the whole image Feb 01 01:31:41 i want to pinpoint certains spots on that image Feb 01 01:34:33 Sorry, I'm only half paying attention, I'm doing like 20 things right now Feb 01 01:34:41 no worries Feb 01 01:34:41 anyone familiar with RoboGuice that can assist me? i'm building a library project and injecting an Application object...it says the object is not null but then throws a NPE whenever i call _any_ method from it Feb 01 01:34:59 I think the information you want is here: http://developer.android.com/reference/android/view/MotionEvent.html Feb 01 01:35:04 It's the second argument to onTouch. Feb 01 01:35:17 Probably Axis_X, AXIS_Y or whatever. Feb 01 01:36:08 So then you can define some specific areas which trigger different events. Feb 01 01:36:47 http://developer.android.com/reference/android/view/MotionEvent.PointerCoords.html Feb 01 01:36:59 ill take a look thanks! Feb 01 01:37:08 There may be some kind of XML way of defining where things are or whatever on an image. Feb 01 01:37:09 Not sure. Feb 01 01:44:29 Rockmaninoff, just start by giving your source, and further describing your situation, e.g. are you using proguard Feb 01 01:45:02 pfn: one sec lemme pastie some stuff Feb 01 01:45:44 hey a recruiter from Audible/Amazon, what do you know Feb 01 01:45:47 and 3 more in a week Feb 01 01:45:51 ugh Feb 01 01:46:06 isnt' that a good thing Feb 01 01:46:14 * pfn hasn't seen any interesting recruiter emails in a while now Feb 01 01:47:06 Hi, I'm trying to build fbreader from source on Fedora and running into the https://github.com/geometer/FBReaderJ/issues/31 problem Feb 01 01:47:22 I wonder if (1) tthis is the right channel to ask on and (2) if so, where in what tree I should unzip jmdns.jar Feb 01 01:47:24 pfn and others here's the relevant code (2 classes, 1 application class, manifest) http://pastie.org/3292846 Feb 01 01:47:31 it gets through the first log statement fine Feb 01 01:47:35 (as in, it doesn't log it) Feb 01 01:47:49 then dies on the .getApplicationContext() Feb 01 01:47:54 and it will also die on .getResources() Feb 01 01:48:03 (i imagine it will die on _any_ call from the Application object Feb 01 01:48:05 ) Feb 01 01:48:21 Rockmaninoff, point out line numbers and your stack Feb 01 01:48:44 Rockmaninoff, and where's your DI configuration Feb 01 01:49:12 what is DI configuration pfn Feb 01 01:49:22 Rockmaninoff, how you specify @Inject works Feb 01 01:49:25 line 59 is where the error happens Feb 01 01:49:26 oh Feb 01 01:49:30 well...i might be missing that? Feb 01 01:50:00 what would i be looking for, is it a config file? i'm using IntelliJ fwiw Feb 01 01:50:07 I don't use guice, but I wouldn't guess that they use auto-wiring by default Feb 01 01:50:18 currently set up to import robojuice, guice, etc... Feb 01 01:50:28 hm Feb 01 01:53:09 so i'm curious how many in here still develop for 1.6 Feb 01 01:53:32 probably around 1.6% Feb 01 01:53:33 ;) Feb 01 01:53:52 ha Feb 01 01:54:07 I write libraries that are compatible with 1.6+ Feb 01 01:54:09 if that counts Feb 01 01:54:26 my only app can't run on 1.6. but that's only because it's a LWP :) Feb 01 01:57:12 i have been working on 2.1 and just noticed some bugs if i switch to 1.6.... feeling lazy though :) Feb 01 01:58:18 so move the minimum up to 2.1 Feb 01 01:59:35 yea, i was just curious what others were doing..... sounds like the same thing Feb 01 02:00:57 if I have some mutable data that I'm modifying in a background thread and want to synchronize it... is it the exact same if i add a synchronize block around the for..each statement vs adding the synchronize block around the work I'm doing inside the for loop? Feb 01 02:03:13 This is odd. Feb 01 02:03:27 Focus change listener toggles 3 times every time I focus on this EditText Feb 01 02:03:48 drezel, pretty much Feb 01 02:15:31 gone quiet Feb 01 02:17:51 how to do stretching detection in listview Feb 01 02:17:52 http://vimeo.com/35693267 Feb 01 02:18:09 I want to have such nice gesture to create a new item in listview Feb 01 02:22:29 that looks pretty neat Feb 01 02:23:36 edwinkcw, it's not something standard that you'll be able to do easily Feb 01 02:23:53 edwinkcw, you'll need to build those kind of views yourself with those behaviors Feb 01 02:25:24 pfn: just a dumb question, should I use listview here? is it better to create my own "list view"? let say a scroll view holding all object Feb 01 02:26:01 edwinkcw, you'd need to look at the implementation of listview and stuff to decide whether you can extend it or build something new Feb 01 02:26:39 pfn: ok, it sounds it is not easy Feb 01 02:26:48 anything great isn't easy Feb 01 02:28:07 pfn: haha, thanks Feb 01 02:28:32 or, if you're willing to forgo all of the UI platform stuff, just do it all in html Feb 01 02:28:43 eww Feb 01 02:28:55 since an app that looks like that really doesn't use any platform ui anyway Feb 01 02:29:42 * Jug6ernaut hates UI Feb 01 02:29:49 * Jug6ernaut is getting better @ it tho hehe Feb 01 02:30:07 every app ive made have been services lol Feb 01 02:31:09 pfn: then..the app is open sourced? Feb 01 02:31:29 just because it's html doesn't mean it has to be opensource Feb 01 02:31:45 lol Feb 01 02:32:46 pfn: but people can open the program and view the html.. Feb 01 02:33:18 edwinkcw, I'm not saying that you should make it a webpage Feb 01 02:33:26 and as for being in html means people can copy it Feb 01 02:33:33 pfn: ...then I don't get it Feb 01 02:33:38 do you see people copying gmail, or twitter because all their code is public Feb 01 02:33:51 edwinkcw, look at frameworks like phonegap Feb 01 02:35:11 pfn: one more dumb question as I am not familiar with phonegap. Can I implment the gesture feature using phonegap? Feb 01 02:35:41 I dunno, maybe Feb 01 02:36:00 pfn: ok thanks, let me read it Feb 01 02:38:57 pfn: I don't think phonegap can do multitouch... it is a webviw if I am right Feb 01 02:39:11 it is a webview Feb 01 02:39:18 and webviews do support multitouch Feb 01 02:39:34 pfn: but I handle zoom in zoom out? Feb 01 02:40:02 that's for you to figure out Feb 01 02:55:21 How does one use a cancelListener for Dialogs? **** ENDING LOGGING AT Wed Feb 01 02:59:57 2012