**** BEGIN LOGGING AT Thu Aug 09 02:59:59 2012 Aug 09 03:14:16 Does anyone know about ANR keyDispatchingTimedOut Aug 09 03:14:33 I got a error report for that, that someone reported Aug 09 03:14:37 I don't quite get it Aug 09 03:26:36 ron_frown: is anyone on craigslist legit ? Aug 09 03:26:57 no Aug 09 03:26:59 not at all Aug 09 03:27:04 I've tried to sell a few itesm Aug 09 03:27:10 items and had TONS of people respond Aug 09 03:27:16 but nobody actually follows through =) Aug 09 03:27:19 i keep getting "is this for sale? i'll buy if you ship!" Aug 09 03:27:28 i'm like, yeah, if you ship cash first Aug 09 03:27:32 dumbasses Aug 09 03:28:24 I bought my car off craigslist lol Aug 09 03:29:49 g00s craigslist is only really good for local :/ , else it's just a waste Aug 09 03:34:00 jug6-n7: yeah, i'm doing local :) Aug 09 03:35:05 :) Aug 09 03:35:27 Gl! It can definitely be a pain Aug 09 03:35:47 cl is good for buying Aug 09 03:35:51 and hookers Aug 09 03:36:00 Lol Aug 09 03:36:15 note: you only ever rent front-row rugby players Aug 09 03:37:14 Did anyone's Developer console update for them today? Aug 09 03:37:53 Not mine Aug 09 03:38:10 Same Aug 09 03:38:13 fuuu google Aug 09 03:38:53 What it supposed to lol? Aug 09 03:39:11 I already for got what it even is Aug 09 03:39:57 I mean for like your app statistics Aug 09 03:39:59 Downloads/installs Aug 09 03:40:31 O no idea, I rarely check that stuff on desktop Aug 09 03:44:41 hm Aug 09 03:45:11 if i have a listview with rows and i want to add 0 to n amount of images on each row whats the best way to deal with it Aug 09 03:45:38 image/row height should be constant, but the padding between the images should change based on screen size / amount of images Aug 09 03:45:55 even going negative so that the images on the left go on top of the ones on the right Aug 09 04:05:39 freelancers, msg me Aug 09 04:06:07 thc: channel topic? Aug 09 04:06:37 yeah? what's wrong there? Aug 09 04:06:55 "Please don't advertise websites, jobs, or contracts" Aug 09 04:07:06 did I advertis something you little dumb? Aug 09 04:07:10 *e Aug 09 04:08:55 So, i want to open source one of my apps. Which files shoudl I stick on github from my eclipse project? just /src, /res, /assets and AndroidManifest.xml ? Aug 09 04:15:18 K17: you build with eclipse? Aug 09 04:16:17 yes Aug 09 04:16:30 hmm, not sure if there are any project files to include then Aug 09 04:17:57 do i have to import something or use the orientation class the way i use the color class? I'm trying to pass 'vertical' into setOrientation Aug 09 04:18:17 23:25 < ron_frown> I've tried to sell a few itesm Aug 09 04:18:38 sorry, mispaste.. trying to un-fullscreen putty Aug 09 04:18:55 i wouldn't need the project files though, would i? it would be fairly simple for someone to create their own project and dump my code into it, no? Aug 09 04:19:44 ok so lscpu reports 3.3ghz as my max but i7z says im running from 1.2 to 4.7 ish afterall Aug 09 04:19:48 phew! Aug 09 04:20:10 K17: should be, yeah... what's the app, anyway? Aug 09 04:21:01 it's nothing fancy~ https://play.google.com/store/apps/details?id=com.landonmanning.mediaplayer.celestiaradio Aug 09 04:21:45 erm... ponify? ;) Aug 09 04:21:49 LinearLayout.VERTICAL ... got it Aug 09 04:21:54 :* Aug 09 04:22:11 ponies, man. ponies. Aug 09 04:22:45 yeah, ponies Aug 09 04:23:35 well, more open source code is always good, anyway ;) Aug 09 04:24:24 I used to run the radio station itself but have since handed it over. I decided to update the app to add some functionality i was in the middle of adding a few months ago. i've had a few people email me recently for help with android's streaming music because i've posted a handful of questions on stackoverflow, so i figure di'd just open it all up Aug 09 04:26:00 im starting to think any layout other than relative is a bad idea Aug 09 04:26:13 Also: LGE sucks at making ROMs Aug 09 04:26:18 mark4: then you're thinking wrong... Aug 09 04:26:39 Karai: good thoughts on opening rather than answering questions one at a time, yes Aug 09 04:26:43 leeds for anything other an a pure un-nested layout Aug 09 04:26:46 FrameLayout worked perfectly for my recent app update :P Aug 09 04:26:55 linear layout is fine till u start nesting layouts Aug 09 04:27:04 Karai: it can be a pain, i've been at it ~2-3 days now and still havent made a working image Aug 09 04:27:13 oh, sure - once you've got nesting going on, relativelayout is good Aug 09 04:27:32 clever: oh? I ha dno trouble with it once I decided to use it Aug 09 04:27:47 por ar eyou talking about LGE? Aug 09 04:27:58 Karai: i'm talking about compiling for a new device/target Aug 09 04:28:16 the pre-built images are close, but missing a few drivers Aug 09 04:28:18 clever: compiling the OS, or compiling an app? Aug 09 04:28:25 this is bloody #android-dev, as you bloody well know Aug 09 04:28:28 Leeds: the entire android system Aug 09 04:28:31 yeah Aug 09 04:28:47 was just commenting on this, its not easy, 09 01:26:13 < Karai> Also: LGE sucks at making ROMs Aug 09 04:28:54 I had an Optimus One and for some reason my phone was unable to prepare my mediaPlayer. Nothing I did to my app made it work. After rooting my phone and installing CM7, it worked flawlessly. Aug 09 04:29:14 breaking api's, woo! Aug 09 04:29:18 ^ Aug 09 04:29:25 Karai: the whole line of phones had the same breakage right? Aug 09 04:29:43 yes Aug 09 04:29:59 Karai, i LIKE cm7, would be better if it used GO launcher but im having extreme reservations about the go dev team. thne use airpush on go kbd and airpush pushes malware Aug 09 04:30:01 designing app for 2.3+, what http library should i be using? :) Aug 09 04:30:02 and porn Aug 09 04:30:22 i hope they do cm9 for the t-bolt Aug 09 04:31:06 i just picked up a nexus one from a friend, i was excited to have a nexus but now cm isn't going passed cm7.2 for the n1 :( Aug 09 04:32:43 mattvv: http://android-developers.blogspot.hk/2011/09/androids-http-clients.html "For Gingerbread and better, HttpURLConnection is the best choice" Aug 09 04:33:05 thanks for the link Leeds :) Aug 09 04:33:17 np Aug 09 04:34:42 Leeds: great post Aug 09 04:34:54 r0ver: not mine, but thanks anyway :) Aug 09 04:36:17 Leeds: is so easy to write a blog post today that i usually think is easier to write than detecting the good ones :D Aug 09 04:37:15 everybody should be reading the android-developers blog Aug 09 04:37:24 it's a pity it's a bit... sparse Aug 09 04:37:54 i find 99% of gooles docs to be boring and monotnonc and incomplete Aug 09 04:37:58 or rather Aug 09 04:38:27 they are complete if fyou read 4 things her. 20 things over there. and few more things in this otgher place and then read all of these things over here Aug 09 04:39:03 if u dont do that then ur going to get " <--- this much info related to what your trying to do when u need n"xxxxxxxxxxx" this much at a minumum Aug 09 04:39:22 are you trying to learn by reading reference docs? Aug 09 04:39:25 the docs are scatterbrained to say the least Aug 09 04:39:50 mark4: ive yet to find any docs on the core build system Aug 09 04:39:53 leeds i have about 5 books on android. i also skim thru and get thoroughly bored of android dos Aug 09 04:40:15 clever: #android-dev - get it? Aug 09 04:40:19 read countless tutorials that ALL come nowhere near what im trying to do most of the time Aug 09 04:40:48 why do u think im here suffering all your derrision for being a complete and utter noob Aug 09 04:40:56 mark4: well to be fair most of the questions you ask are non-standard and non-recommended ways of doing things Aug 09 04:40:57 only way im going to learn lol Aug 09 04:41:18 JakeSays, im a heretic i know Aug 09 04:41:37 and i DO listen to what u guys have to say Aug 09 04:41:54 i switched from nested linears to relative and dont regret it one iota Aug 09 04:43:20 what I love is the people who are trying to build multi-component, IPC-handling, network, foreground, background, OpenGL apps 2 days after first opening d.android.com Aug 09 04:44:31 leeds thats me Aug 09 04:45:04 Leeds: I think there's a page on that... Aug 09 04:45:09 i have an item at the top of my todo list that puts that to shame. port my linux direct threaded forth to android and write an FFI allowing access to alln the nice java goodies Aug 09 04:46:16 leeds i know im nub,. i know the way im doing thigs will be all wrong. but over time i can correct the wrongness. i always push to advanced mode and learn faster than doing endless hello world bs tutorials Aug 09 04:46:42 im only nub at java/android. Aug 09 04:46:49 heh Aug 09 04:46:52 ok and c++ too :) Aug 09 04:47:30 "I'd like to win an Olympic medal - I've never been on a bike before, but I learned to walk when I was very young, so I should be set for the national team, right?" Aug 09 04:48:11 mark4: seriously, that's fine - as long as you're not wasting other people's time trying to get help with stuff you haven't taken the time to understan Aug 09 04:48:57 leeds ive not asked a single question in here before spending at least 3 days fighting to find an answer that fits with what im trying to do Aug 09 04:49:13 the fact that im trying to do it wrong not withstanding.... Aug 09 04:49:28 i try. i fail. i ask for help. u show me im doing it all wrong.. . . Aug 09 04:49:33 I wasn't actually accusing you - I haven't noticed you doing that, unlike other people :) Aug 09 04:50:26 no i know... but at the samt time im admitting that while i might TRY find a way to do what im trying to do, a major percentage of the time your going to get frustratged with me simply because my way of trying is so fscked up Aug 09 04:50:31 due to nubness Aug 09 04:51:08 leeds if i spend 3 weeks trying the WRONG way thats the same as not trying at all in some peoples mind Aug 09 04:51:15 s Aug 09 04:51:50 there's nothing wrong with asking to be pointed in the right direction - the problem comes when people then ask to be led down the path step by step Aug 09 04:53:06 sometimes i need even that. go look at forth leeds. im probably more of an expert at forth than any of you guys are expert at java. the way of thinking forth ahd thinking java are sooooooo different that i sometimes have extreme difficulty Aug 09 04:53:15 Am aware that Android API 9 is obsolete by reading this thread --> http://stackoverflow.com/questions/8353503/why-is-android-api-level-9-obsolete . Was wondering if there's someplace more 'official' that states this. Thank you. Aug 09 04:53:16 I prefer not to look at forth Aug 09 04:53:34 i can write an assembler in forth for almost any processor in a couple of days then u7se that to write a direct threaded forth for that processor in about a week. Aug 09 04:53:48 java... hmmm... fun but im not that good yet :) Aug 09 04:54:19 im also somewhat slow. i know people who can write the assembler and forth in less than 24 hours for any processor at all Aug 09 04:54:28 also, I'd never claim to be an expert in Java Aug 09 04:54:30 some of the guys at forth inc amaze me Aug 09 04:54:38 aLearner: API 9 itself only has 0.3% of users, but API 9 and below are about 20% of users. See http://developer.android.com/about/dashboards/index.html Aug 09 04:54:41 what I am mainly an expert in is finding stuff in the Android docs - which is *not* hard Aug 09 04:55:26 leeds finding it and understanding it and connecting the disjointed dots... thats not something i can always do with ease Aug 09 04:55:39 then it's an important skill for you to learn Aug 09 04:55:39 specially when googles docs are all dry, boring and monotonic Aug 09 04:56:00 um... they're *reference* docs - they're not meant to be entertaining, imaginative, and exciting Aug 09 04:56:18 this isn't exactly 50 Shades of Android... Aug 09 04:56:19 have you watched the I/O videos? Aug 09 04:56:22 good reference docs are entertaining. imaginative and exciting Aug 09 04:56:28 ryanm: Thank you. I did look at the dashboard. Was wondering if there's some official documentation saying it's obsolete. I can't seem to find it online. The question I was asked is: How is API 8 NOT obsolete but API 9 is? Aug 09 04:56:29 its an aid to learning Aug 09 04:56:35 JakeWharton: you don't know what mikedg gets up to in his spare time... Aug 09 04:56:44 make it boring and u encourage the brain to reject it Aug 09 04:57:19 aLearner: because all API 9 devices have upgrades to API 10 Aug 09 04:57:25 ive watched a couple of them. theyh all come across as marketing pushes with just enough info to push "buy into this shit" and not enough info to make use of it Aug 09 04:58:15 then you're an idiot, frankly, who is rejecting really good in-depth training by the experts in the field Aug 09 04:58:33 +1 Aug 09 04:58:46 but, y'know, that's your choice Aug 09 04:59:06 leeds no. its not that im rejecting it. its that if its not presented in an interesting way its more difficult to learn. good documentation is interesting as much as it is informative Aug 09 04:59:11 googls docs are BORING as fuck Aug 09 04:59:16 whatever Aug 09 04:59:17 i have to PUSh thru them Aug 09 04:59:19 JakeWharton: OK. Thank you. Is there some documentation online that states this? Perhpas on d.android.com or something? Aug 09 04:59:20 enough moaning now Aug 09 04:59:34 broken record Aug 09 04:59:45 aLearner: I have no idea, sorry Aug 09 04:59:45 * Leeds wonders if Apple's docs are all produced by Pixar or something? Aug 09 05:00:19 I'd spend more time reading the Android docs if they had cute puppies in them Aug 09 05:00:24 "I see you're trying to write a mobile app. Would you like some help with that?" Aug 09 05:00:26 I was reading up on NSString the other day and it had just the best heartfelt moment at the end Aug 09 05:00:29 I don't blame the reference docs, they be doin' what they gotta do. But I might kick the designer of the IAB api in the nads though Aug 09 05:00:42 ryanm: you're aware of adb lolcat and hell? Aug 09 05:00:50 starting forth by leo brodie would be an excelent example of some well presented beginner documentation. tho its 20+ years out of date its SILL the first place i recommend a forth beginner turn Aug 09 05:00:53 'course I'd just be looking at the puppies, since the docs are pretty easily searchable to find what I need Aug 09 05:00:57 Google documentation is good compared to the reference documents I have to use for my game engine lmao Aug 09 05:01:08 Leeds: I've heard of adb lolcat, never of adb hell Aug 09 05:01:11 JakeWharton: No worries, thank you. I'm being asked: If API 9 is obsolete, surely API 8 is as well. I'm trying to make a convincing argument to the contrary. But I have no official documentation to back me up. :-) Aug 09 05:01:23 oh great, now my terminal is red Aug 09 05:01:32 oh there it does Aug 09 05:01:34 *goes Aug 09 05:01:37 heh Aug 09 05:01:41 aLearner: that depends on your definition of obsolete Aug 09 05:02:12 anything less than API 16 is obsolete in one view Aug 09 05:02:13 ryanm: also, of course, you know about the almost standard easter egg? Aug 09 05:02:37 JakeWharton: We're defining obsolete / deprecated roughly like this "In software, when we say that something is deprecated, we don’t mean that it doesn’t work or isn’t supported. It simply means that new applications should be written to the new version so that one day the old version can be removed without damaging the eco-system." Aug 09 05:03:25 JakeWharton: On of our apps is planned on being written in API 9 - I'm pushing for API 10. Aug 09 05:04:01 I mean, you're not really going to find any insane differences between the two Aug 09 05:04:05 once you've decided to drop 8, I'm not sure there's any significant difference between 9 and 10, unless you specifically need the stuff in 10 Aug 09 05:04:13 It's similar to API 14 and 15 Aug 09 05:05:17 API 8 is where all the fun ones start anyways Aug 09 05:05:22 after that it's mostly boring until you hit 3.2 Aug 09 05:06:00 Leeds, JakeWharton: Thanks. So it's cool if API 9 is used? I thought we should stick to either API 8 or API 10 - but not go with API 9. Aug 09 05:06:37 Leeds: https://github.com/karai17/celestia-radio-android :* Aug 09 05:06:46 aLearner: I think the point is that very very few users are running API 9 on their device Aug 09 05:06:50 aLearner: are you talking about for minSdkVersion or similar? Aug 09 05:07:39 Leeds: All right. That makes sense. Perhaps I should just stick with the dashboard and make my case this way. Thank you. Aug 09 05:07:49 ryanm: Yes, that too. Aug 09 05:08:27 I think I'm just going to go with the fact that a small fraction of users are running API 9. So, that should be case enough. Thank you for the discussion. It was really helpful. Aug 09 05:08:31 I've been targeting 9 ... looking at the logcat I see this: "Turning on JNI app bug workarounds for target SDK version 9...". Hrm. Aug 09 05:09:00 ideally you would be targeting the latest SDK Aug 09 05:10:18 yeah, I agree with Leeds, targetting API 9 is kinda pointless. short version: if you want 95% of users to be able to run your app, make minSdkVersion 8. If you're content with 20%, make it 10. Aug 09 05:10:24 Makes sense. Switching to latest, hopefully the minSdkVersion will warn me if I use anything too new Aug 09 05:10:36 and yeah, ideally targetSdkVersion = 16 Aug 09 05:10:56 SethR: if you use the lint tool it should Aug 09 05:11:54 ryanm: Cool. This is a great way of looking at it. Aug 09 05:12:50 sorry, 80%, not 20% Aug 09 05:13:37 this is what happens when I think about one thing while typing another. Aug 09 05:14:46 ryanm: What you wrote makes a lot of sense. :-) Thank you. Aug 09 05:17:54 heh my app is going to take more than 2 years to complete.... i dont think it matters what i target right now :) Aug 09 05:45:48 mark4: you have a weird obsession with Forth :) Aug 09 05:46:12 romainguy, chuck moore calls it THE software engineering solution Aug 09 05:46:14 i agree Aug 09 05:46:29 it has one major flaw though Aug 09 05:46:36 it will never be accepted by mainstream Aug 09 05:46:41 and it's forth rate Aug 09 05:46:56 a certain moustached individual had a flawed THE solution too Aug 09 05:47:08 ? Aug 09 05:47:16 fumanchu? :) Aug 09 05:47:19 hitler Aug 09 05:47:23 i know Aug 09 05:47:27 thats the FINAL solution Aug 09 05:47:30 not THe solution Aug 09 05:47:43 mark4: the problem is that every time you ask about something Android related here you end up explaining you could be writing a Forth interpreter instead Aug 09 05:47:54 it's not going to get you very far if you're trying to write an app ^^ Aug 09 05:48:03 romainguy, no. its not TOP of my todo Aug 09 05:48:07 its on it tho Aug 09 05:50:35 right now top of my todo list is to catch some z;s after reading some of my bible. too much JD makes me sleepy Aug 09 05:51:00 romainguy, forth is fun btw.... maybe even more fun than java :) Aug 09 05:51:12 Forth is a programming language Aug 09 05:51:16 none of them are fun, they're just tools Aug 09 05:51:26 some are better suited for particular tasks than others Aug 09 05:51:35 forth is fun. if u dont find programming fun u need to switch fields Aug 09 05:51:51 ive never found a task that forth does not excel at Aug 09 05:52:00 mark4: writing Android apps? Aug 09 05:52:03 not in over 25 years of using it Aug 09 05:52:15 ryanm,if i have my way yes Aug 09 05:52:21 just not yet Aug 09 05:53:13 Programming can be fun, the languages themselves are not Aug 09 05:53:32 The fun part is solving problems, not typing Java or C++ or whatever :) Aug 09 05:54:01 romainguy, learn forth. that will change ur mind. Aug 09 05:54:07 I have used Forth Aug 09 05:54:08 what, LOLCODE not funny? Aug 09 05:54:15 and many other languages Aug 09 05:54:24 mark4, how would it make doing anything useful even possible? Aug 09 05:54:37 bjorkintosh, ? Aug 09 05:54:39 but like I said, they're tools Aug 09 05:54:41 with forth. Aug 09 05:54:52 and Forth is just not useful to me for what I do Aug 09 05:54:56 i can just see the latest fart app on ios or android being written in ... forth? Aug 09 05:55:27 bjorkintosh, ask me again tomorrow. im tired, had too much jd and keep getting frustrated with my wifi tether dropping and never giving me full 4g rates Aug 09 05:55:52 wifi tether dropping. must be a bug. Aug 09 05:56:08 : fib 0 1 rot 1+ 1 do tuck + loop nip ; Aug 09 05:56:09 ftw Aug 09 05:56:18 right. Aug 09 05:56:22 everything is a global. Aug 09 05:56:31 no. its my cell tower dropping i think] Aug 09 05:56:44 anyway. i gotta log. im fscked lol Aug 09 05:56:46 nite :) Aug 09 05:57:13 fib does not an android app make! Aug 09 05:57:51 bjorkintosh: any language that lets you write a sort in fewer lines than Java or C++ is obviously better suited at *everything* :)))) Aug 09 05:57:54 Aug 09 05:58:06 riiight. Aug 09 05:58:33 i hate java far more than most, but there really aren't any good options for writing android apps. Aug 09 05:58:46 so i think it is pretty silly to suggest ... forth? Aug 09 05:59:02 why not whitespace? or brainf**? Aug 09 05:59:04 with the right ffi why not. Aug 09 05:59:18 hah. i thought you were asleep. Aug 09 05:59:25 you already said 'nite'. Aug 09 05:59:36 romainguy: android java will adopt java7 and java8 features? Aug 09 06:00:03 deebo: nothing's been announced Aug 09 06:00:31 well i guess you're in no hurry with oracles release pace Aug 09 06:02:28 enterprise and hurry are mutually exclusive, deebo! Aug 09 06:14:43 Good evening all. Can someone suggest why Eclipse reports that the resource referenced here doesn't exist when in fact it does appear in the generated R.java, and ic_menu_login.png exists in the three relevant drawables directories? menu.add(Menu.NONE, 1, 1, "Login").setIcon(android.R.drawable.ic_menu_login); Aug 09 06:15:19 hillct: you don't want android.R, you want your application's R class Aug 09 06:15:48 oh. Geez. It can't be that simple... :) Aug 09 06:15:55 and yet it almost certainly is Aug 09 06:16:35 ryanm: thanks Aug 09 06:38:55 hi! I want to track when an app is installed and I'm setting up an intent for com.android.vending.INSTALL_REFERRER Aug 09 06:39:43 however. this does not seem to happen… my listener is never woken up Aug 09 07:16:04 hey, i want to design my app in photoshop. To create XHDPI layout, what should my screen size and resolution be? (couldn't understand from the design guidlines page) Aug 09 07:16:38 hyotam: XHDPI doesn't tell you anything about screen size or resolution Aug 09 07:17:46 so.... what size should I design for? Aug 09 07:19:56 hyotam: screen sizes are small, normal, large, and xlarge Aug 09 07:20:32 hyotam: have a look at http://developer.android.com/about/dashboards/index.html#Screens Aug 09 07:21:57 cool stuff. the limiting thing now for mobile is batteries … http://www.gizmag.com/iron-air-battery/23646/ Aug 09 07:22:55 ryanm: but I dont need to make a different layout to each screen size, or do I? Aug 09 07:24:24 hyotam: you don't necessarily need to, no. have a look at http://developer.android.com/guide/practices/screens_support.html for more details Aug 09 07:24:56 okay thanks Aug 09 07:29:43 in the android sdk update manager, sort by repository is it only necessary to install the google APIs and android repositories... what will i be missing if i dont install all the LG/motorola/htc addons? Aug 09 07:32:25 tech1: nothing much, really, you'll just not have the manufacturer-specific tools Aug 09 07:32:31 I've never used them, personally Aug 09 07:33:25 iv wasted a lot of time trying to install this other crap at a dl speed of 50kb/s lol Aug 09 07:33:57 ill make a fresh sdk then and only install the google stuff.... is the intel atom x86 image important? Aug 09 07:34:00 is there any recommended literature for the platform outside of developer.android.com Aug 09 07:34:32 tech1: not really. There are some uses for it but you'd probably know if you needed it Aug 09 07:34:45 ok thanks Aug 09 07:36:15 preds: http://android-developers.blogspot.com/ is a good one, as are the Android Google I/O talks. This year's are at: https://developers.google.com/events/io/sessions#android Aug 09 07:36:43 thanks ryanm Aug 09 07:36:53 though the talks aren't exactly literature :-) Aug 09 07:37:05 as long as they're practical they're probably better :) Aug 09 07:37:12 holds my attention a bit longer Aug 09 07:37:16 they are indeed Aug 09 07:46:05 I've had a image converted to Base64 string (to be transfered to server via a WS call). Now I want to compress/zip either the Image bytes or the Base64 string so that bandwidth usage saved. Where should I put the compression code: compress the Image obj then do Base64, or do Base64 then apply compression to the string? Aug 09 07:47:16 why are you doing Base64 if you can then compress it? Aug 09 07:47:53 Is it possible to make a placeholder? I want two views to share the excact same position, one of them visiable at a time.. Aug 09 07:48:47 nvm, it was easier than I thought.. Aug 09 07:50:06 ryanm: because the whole images then need to be inside another bigger string (xml) Aug 09 07:50:57 can you have arbitrary bytes in the string? Aug 09 07:51:25 How can i redirect all the urls to open in my current webview ? Aug 09 07:51:44 I've read that it is safe to put base64 string in xml Aug 09 07:53:17 hoangtran: in that case you need to compress it then do base64, as if you base64 then compress you will not have a base64 string any more Aug 09 07:53:32 dragon_flam: you need a WebViewClient. see https://developer.android.com/guide/webapps/webview.html#HandlingNavigation Aug 09 07:54:25 ryanm: ah, good point, thank you. Aug 09 07:54:41 np Aug 09 07:56:34 btw, I get the byte array from the Bitmap object with this: b.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream); // b is my Bitmap obj Aug 09 07:58:15 does this .compress realy reduce the size, and if it does, will another compression (gzip for ex) help reducing the end result string? Aug 09 08:01:32 1) Yes, PNG compression will almost certainly reduce the size 2) Compressing it again is unlikely to help, as PNG is already compressed with DEFLATE (same algorithm as zlib) Aug 09 08:18:16 anyone have good reference links for using Android w/ robotics? I'm trying to take a peek at the subject to see if it interests me Aug 09 08:18:44 google for the adk Aug 09 08:18:48 sounds cool Aug 09 08:21:15 thanks Aug 09 08:25:53 ryanm: much thanks. Aug 09 08:29:11 <[emil]> hi, I was doing a simple image loading app using AsyncTask. It shows a Error opening file:no such file or directory(2) error. What exactly does it mean and what causes it? Aug 09 08:29:14 <[emil]> http://pastebin.com/LDiPVxFg Aug 09 08:31:37 growing tired of assigning IDs to all kinds of stuff all the time.. wouldn't it be cool if you could use an xpath-expression to adress an element in the XML definition of a view? Aug 09 08:33:24 <[emil]> I'll rephrase it I was doing a simple image loading app using AsyncTask. It shows a Error opening trace file:No such file or directory(2) error. What exactly does it mean and what causes it? I have enabled all the required permissions. Aug 09 08:33:36 <[emil]> http://pastebin.com/LDiPVxFg Aug 09 08:33:44 [emil]: your path is probably wrong Aug 09 08:34:18 <[emil]> tapas, I was downloading image from a url Aug 09 08:34:37 <[emil]> It is a small piece of code. Pls look into to Aug 09 08:34:43 <[emil]> *it Aug 09 08:35:17 [emil]: give us backtrace, please, too Aug 09 08:35:53 or try this: Aug 09 08:35:55 http://developer.android.com/reference/android/graphics/BitmapFactory.html#decodeStream%28java.io.InputStream,%20android.graphics.Rect,%20android.graphics.BitmapFactory.Options%29 Aug 09 08:36:14 http://imgur.com/jacoj <--- we even have it as topic! Aug 09 08:36:33 iv.setBitmapImage(ImageFactory.decodeStream(stream)) Aug 09 08:36:51 iv.setBitmapImage(ImageFactory.decodeStream(stream, null, null)) Aug 09 08:36:55 argh Aug 09 08:36:58 and BitmapFactory Aug 09 08:37:01 you get my drift Aug 09 08:40:47 <[emil]> is that the way to display images. I got my piece of code from http://stackoverflow.com/questions/3601775/display-image-from-url-sizing-and-screen-orientation-problems. and he doenst seem to have any problem with trace file Aug 09 08:42:25 <[emil]> tapas, is that the way to display images. I got my piece of code from http://stackoverflow.com/questions/3601775/display-image-from-url-sizing-and-screen-orientation-problems. and he doenst seem to have any problem with trace file Aug 09 08:50:03 [emil]: you didn't show us your trace yet Aug 09 08:51:32 <[emil]> tapas, sorry, by trace it meant the message displayed in the logCat rt? Aug 09 08:53:01 <[emil]> tapas, The error is cleared. I returned the Drawable from the doInBackground function instead of Object. It works fine now. :) Aug 09 09:02:53 Hey guys, I'm trying to make a Gallery widget using HorizontalScrollView since Gallery is deprecated.. Is anyone familiar with this widget? Aug 09 09:20:16 Omar: wow Gallery got depricated! Aug 09 09:20:26 yup = Aug 09 09:20:31 Looks like I have been away from Android for a long time Aug 09 09:21:07 yea its weird why such a widget would get deprecated =\ Aug 09 09:22:09 i did not like galary :P Aug 09 09:23:07 using adb to start an intent (e.g. adb shell am start -a android.intent.action.MAIN -n com.android.contacts/.ExportVCardActivity) which opens a confirmation dialog. any way to avoid that dialog and make it go directly? Aug 09 09:26:34 samael: must be an option with adb.. Aug 09 09:28:44 samael, dragon_flam: i think once you get bash 'adb shell' its just a normal shell command, so any gui confirmation you get on the device is out of adb's control Aug 09 09:28:49 get past* Aug 09 09:32:37 hi there Aug 09 09:33:04 ok, not a big problem, i can easily use a couple input keyevents to confirm automatically. Aug 09 09:33:05 hey guys! I need a Button to be enabled in order to retrieve onTouch Events but I also need it to be sometimes disabled so that the drawable states work correct. any suggestions how to get this working without introducing subclass of Button? Aug 09 09:34:46 but then, how can i know from adb that the called activity has been terminated? Aug 09 09:35:06 does anyone use Google Analytics in their apps ? I'm having a hard time trying to find where most of my downloads come from ? In traffic sources it shows a campaign called appcenter_ads with a medium of hyperlink and a source of go_launcher, could anyone help me please ? there is no information anywhere about this campaign Aug 09 09:35:48 hi Aug 09 09:36:45 hello I am getting this error - > Authentication error: Unable to respond to any of these challenges: {} Aug 09 09:36:51 & 401 status code Aug 09 09:36:58 how to solve this? Aug 09 09:37:30 http://stackoverflow.com/questions/6114455/authentication-error-when-using-httppost-with-defaulthttpclient-on-android?lq=1 Aug 09 09:37:31 I have checked this link Aug 09 09:37:42 but still facing the erro Aug 09 09:37:47 error Aug 09 09:38:30 Ehh Aug 09 09:38:38 Are you actually sending credentials, then? Aug 09 09:38:47 Yes Aug 09 09:38:59 I am sending Username & Password Aug 09 09:39:06 How? Aug 09 09:39:22 manit_android_am: but is that how the server expects you to authenticate? Aug 09 09:39:45 DefaultHttpClient client = new DefaultHttpClient(); Credentials creds = new UsernamePasswordCredentials("username", "password"); client.getCredentialsProvider().setCredentials(new AuthScope(AuthScope.ANY_HOST, AuthScope.ANY_PORT), creds); HttpPost post = new HttpPost(url); Aug 09 09:39:50 here is the code Aug 09 09:40:08 manit_android_am: I assume you don't actually use "username" and "password" when authenticating? Aug 09 09:40:15 hmm, what happens if you return "null" for getView() in a ListAdapter? Aug 09 09:41:15 Mavrik: try it? But I suspect it'll throw a nullpointer exception somewhere. Aug 09 09:41:28 I'm hunting a wierd corner case in my app :\ Aug 09 09:41:30 I have also have another app in Phonegap-Android - in that when I post ajax request , it works perfectly Aug 09 09:41:48 no need of username and password for phonegap with same server Aug 09 09:42:09 but Native Android Java gives 401 Aug 09 09:42:23 manit_android_am: no, it is the server that responds with 401 Aug 09 09:42:32 Yes Aug 09 09:42:50 It must not be sending the same request, then. Aug 09 09:43:23 the server gives 401 in case of Native Android Java code , but with phonegap android request the same server works perfectly Aug 09 09:43:48 http://stackoverflow.com/questions/11878896/authentication-error-unable-to-respond-to-any-of-these-challenges-android Aug 09 09:43:48 manit_android_am: obviously the same request is not sent then as HDroid wrote Aug 09 09:44:10 http://stackoverflow.com/questions/11878896/authentication-error-unable-to-respond-to-any-of-these-challenges-android this is the link on which I have posted my code Aug 09 09:44:37 appel1 : means? Aug 09 09:45:05 manit_android_am: you need to figure out what is different Aug 09 09:45:11 should I change request method? Aug 09 09:45:29 We don't know, what does the server need? Aug 09 09:45:45 Do whatever phonegap does :) Aug 09 09:47:23 Yes doing the same as per the phonegap request ... sending the same data using android JAVA ... but it gave 401 ... so I tried with username & password ... but still gives 401 Aug 09 09:47:28 Maybe it's a put? We don't know. Aug 09 09:48:00 but phonegap app works perfect , native android doesn't Aug 09 09:48:05 put? Aug 09 09:48:09 lets try that Aug 09 09:48:37 If you have the phonegap app's source, surely you know whether what http method it is supposed to use? Aug 09 09:48:57 Yes Aug 09 09:49:38 bah. android has chinese font for kanji's :( Aug 09 09:49:47 I am just simple doing ajax request with POST Aug 09 09:50:02 in phonegap. Aug 09 09:50:04 manit_android_am: have you looked at the reason phrase in the response? Aug 09 09:50:11 manit_android_am: perhaps that can give you a clue? Aug 09 09:51:16 manit_android_am: or does the response have any content? Just guessing since I don't know what Drupal does. Aug 09 09:51:18 No I haven't looked at it Aug 09 09:51:55 ok, in case anyone knows... I'm using Analytics in an Android application and I'm seeing a campaign that is unkown to me in the reports. Most of my downloads come from that campaign so I would like to know the origin. The campaign is called "appcenter_ads" Aug 09 09:52:40 Seems to me that when I set a onclicklistener, the button can be spammed and the listener-method executing is re-run. Can I fix this by defining it as synchronized? Aug 09 09:53:13 Nvm... Aug 09 09:53:28 no Aug 09 09:53:37 By searching on google I have found this official android link -> it suggest that developer should use HttpURLConnection for making http request , while I am using Apache HTTP Client ... http://android-developers.blogspot.in/2011/09/androids-http-clients.html Aug 09 09:53:48 Can use a static boolean variable to ignore clicks that are registered while my current listener-method is still executing... Aug 09 09:54:06 A better solution is welcomed... Aug 09 09:54:06 & some where I have found out that Apache client in Android is old version Aug 09 09:54:21 here is the link Aug 09 09:54:22 johanhar: just curious, why do you need this? Aug 09 09:54:23 http://dlinsin.blogspot.in/2009/08/http-basic-authentication-with-android.html Aug 09 09:55:02 HDroid: when I click the button, I do some I/O stuff that takes a while. Shouldnt be possible to spam the button Aug 09 09:55:14 So might be the problem with older version of httpclient Aug 09 09:55:41 johanhar: if it is some long-running request, it's probably an asynctask, what I would to is to set the onclicklistener to null on the button, then re-attach it when the task finishes. Aug 09 09:56:04 Maybe even disable the button graphically too, or replace it with a progress spinner even, to not confuse the user. Aug 09 09:56:15 disable it, smart, thanks :) Aug 09 09:56:19 HDroid: why don't you disable the button until the operation has finished ? Aug 09 09:56:38 I dont know why I didnt think of that...! Aug 09 09:56:41 :) Aug 09 09:56:42 :P Aug 09 09:57:27 johanhar: indeed, setEnabled(false) might work for your case. Aug 09 09:57:33 it did :) thanks Aug 09 10:00:59 Is there any ongoing issue with the developer console ? My statistics are frozen Aug 09 10:07:24 some people have mentioned that Aug 09 10:07:39 It seems to be updating quite slowly today, at least. Aug 09 10:21:43 hi Aug 09 10:23:18 Odd question.. but I have two fragments.. and on one of use a layout with a button. If I put the onClick event defined in the layout xml in the activity for the one fragment, it works on phones but not on tablets Aug 09 10:23:36 if I put the onClick method in the other activity, then the tablet finds it, but not the phone Aug 09 10:23:44 so the only solution working so far is to duplicate everything Aug 09 10:23:47 which is horrible Aug 09 10:23:53 so is there something Im missing? Aug 09 10:26:34 Guys need help on http://stackoverflow.com/questions/11881321/phonegap-application-does-not-run Aug 09 10:27:27 Untouchab1e, the onClick of both your activities your call a method of your fragment Aug 09 10:29:18 joel135: hmm? Aug 09 10:29:36 I define the onClick in the xml layout file Aug 09 10:29:38 Looks like the following function is used to check if a camera exists on an Android device: hasSystemFeature(FEATURE_CAMERA). What do I need to do to check for this while developing using the NDK? Thank you Aug 09 10:30:05 android:onClick="doStuff" Aug 09 10:30:56 and if I put doStuff(View v) in the list FragmentActivity, then it works fine on the phone but no on the tablet Aug 09 10:31:07 and if i put it in the detail FragmentActivity, it works fine on tablet but not phone Aug 09 10:31:28 giving me: java.lang.IllegalStateException: Could not find a method doStuff(View) Aug 09 10:31:33 Untouchab1e, you say you put doStuff() in only one of the Activities. try putting it in both Aug 09 10:31:41 joel135: yeah, that works fine Aug 09 10:31:45 but then I have to duplicate code Aug 09 10:31:57 which to me seems horrible Aug 09 10:32:31 so I reckoned there was a better way of resolving this Aug 09 10:32:34 Untouchab1e, that's why I suggested the doStuff() be just a "link" to the real deal in your fragment Aug 09 10:33:00 joel135: yeah, I guess thats the way to go then Aug 09 10:33:17 but its still seemingly uneccesary duplication of code Aug 09 10:33:39 Untouchab1e, don't use onClick=... then. setOnClickListener() instead Aug 09 10:34:06 but I enjoy onClick :P Aug 09 10:34:15 but yeah, valid point Aug 09 10:34:19 Untouchab1e, ok :P Aug 09 10:37:10 onClick in xml was introduced in Android 1.6, long before fragments, so I suppose thats where the issue stems from Aug 09 10:38:25 can anyone run a 200 kb apk on a real device and answer me a really small question? I'm having different results in the AVD Aug 09 10:38:25 Could I get some help with this: http://stackoverflow.com/questions/11881520/custom-dialog-constructor ? Thanks Aug 09 10:39:37 Omar: how about you explain what kind of differences you are experiencing Aug 09 10:39:42 Omar, I could run it Aug 09 10:39:58 Also, any idea why when I placed a txt file in assets it says invalid resource directory name? Aug 09 10:40:04 nvm Aug 09 10:40:07 I did clean project and it fixed Aug 09 10:42:21 trying to understand something here… i'm going off another's code to make a modified scrollview (extends HorizontalScrollView)… within that class, it's using the line RelativeLayout internalWrapper = new RelativeLayout(getContext());… does that mean i end up with a new RelativeLayout inside a HScrollView, or is my class actually a RelativeLayout? Aug 09 10:43:00 it seems to be adding the widgets to the RelativeLayout Aug 09 10:44:08 i can paste the entire class if needed, it's fairly short Aug 09 10:44:43 ultra-, do that Aug 09 10:45:00 http://pastebin.com/EFSpVBqx Aug 09 10:45:07 look at what it's doing in setFeatureItems Aug 09 10:45:28 it was actually using LinearLayout before this, i changed to RelativeLayout but i think it'll end up being a gridview Aug 09 10:46:36 i get the error "java.lang.IllegalStateException: ScrollView can host only one direct child" when i call setFeatureItems from my main activity… i'm passing an arraylist of buttons into it Aug 09 10:46:49 ultra-, I'm using that class right now haha Aug 09 10:46:53 :) Aug 09 10:47:08 johanhar: I would probably do what the first answer says: use ActivityName.this, if there's no need to use the dialog in other activities. Aug 09 10:47:16 IF there is... let me think about that :P Aug 09 10:47:18 i'm hoping to get this working so i can make a vertical one too, i need a grid scrollable in both directions Aug 09 10:47:29 and of course, a grid that snaps Aug 09 10:47:49 i haven't gotten to the gesture stuff yet… some is depracated but i'm just trying to get something on-screen Aug 09 10:51:23 ultra-, you end up with a RelativeLayout inside your HorizontalScrollView by the line addView(internalWrapper); Aug 09 10:52:36 indeed, each view inside the HSV is a RelativeLayout Aug 09 10:53:08 ok thanks… i'm not sure why the error, though… i want to end up with a GridView anyway, so perhaps changing to that will fix the problem Aug 09 10:53:27 The error explains itself Aug 09 10:53:32 mostly i'm trying to understand views and layouts and whatnot… i've read on it but it's still confusing to me Aug 09 10:53:33 ScrollView can only have one direct child Aug 09 10:53:50 So you put a viewgroup in it.. And add any other views to that Aug 09 10:54:18 that's what i don't get… i think it only has one child, the relativelayout, and that has multiple buttons on it Aug 09 10:54:19 Hi. Where can I learn more about android services? I mean the topic pages in the docs don't mention how to have services that run in separate processes and the caveats associated with them - I may be missing something, though Aug 09 10:54:33 one direct child, that is Aug 09 10:54:43 yati: http://developer.android.com/guide/components/services.html Aug 09 10:56:54 ultra-, are you trying to do something like this? http://pastebin.com/a1h5tK6B Aug 09 10:57:42 ultra-, one thing you did wrong was that you added another RelativeLayout on each call of setFeatureItems() Aug 09 10:58:05 ah, so that's where the error comes from… although i did only call it once Aug 09 10:58:23 HDroid: here you have my previous problem... http://stackoverflow.com/questions/11881520/custom-dialog-constructor Aug 09 10:58:41 joel135: i'll plug in your code when i have time later on today and see what happens Aug 09 10:59:02 so you're removing all views in order to make sure that it doesn't try to add multiple direct children to scrollview Aug 09 10:59:10 hscrollview, that is Aug 09 10:59:57 ultra-, I just thought set* = remove* + add* Aug 09 11:00:29 could be… perhaps when i modify this to be a GridView instead of a RelativeLayout it'll be fine Aug 09 11:01:37 if this modified HorizontalScrollView is nested inside a standard ScrollView object, should it be able to execute the snapping code when scrolled vertically? or do i need to find a way to override the parent ScrollView's gestures too? Aug 09 11:04:09 Omar: If I subclass IntentService, and do some network activities in onHandleIntent(). If the network goes away, I want to stopSelf() and quit. But is there a way for some part of my app to always to listen for when the network comes back? And is it true that Android can kill the service anytime? Aug 09 11:06:19 How do I access files from assets? File("assets/file.txt"); doesn't find the file Aug 09 11:06:53 HDroid: there is use for it from other activities :) Aug 09 11:11:27 Raziel, http://docs.xamarin.com/android/advanced_topics/using_android_assets Aug 09 11:12:06 Thanks Aug 09 11:13:40 yati: http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html Aug 09 11:26:01 how can i know how much memory does my app use Aug 09 11:26:35 its to mutch Aug 09 11:27:29 johanhar: one approach is... make an class that extends Activity and implements your interface. Aug 09 11:27:55 Then make your activities extend that class, and pass an instance of that class to your dialog's constructor. Aug 09 11:28:13 That way you'll have all methods from Activity and your extra ones. Aug 09 11:29:39 And it would be a context at the same time (because Activity extends Context) Aug 09 11:31:33 Smart Aug 09 11:31:36 Thanks ;) Aug 09 11:32:28 Hm I said "an class", I meant an abstract class :) Aug 09 11:32:40 That way you don't have to implement your interface yet. Aug 09 11:33:05 Looks like the following function is used to check if a camera exists on an Android device: hasSystemFeature(FEATURE_CAMERA). What do I need to do to check for this while developing using the NDK? Thank you. Aug 09 11:33:15 appel1: thanks. Also, say I want to send some pictures to the server (each picture is sent to a DB by the activity and then my IntentService is invoked). Suppose there are more than one images in the work queue of the service and the network goes away. From the docs, an IntentService isn't long running and terminates itself when it is done with a request. Suppose not even the main UI is... Aug 09 11:33:17 ...active now, and the IntentService is killed. But there still are images in the DB waiting to be sent. Who listens for the connectivity change event? Is there a better way of achieving what I want? Aug 09 11:36:41 yati: if you use a manifest registered broadcast receiver it will be invoked regardless of the state of your activies or services Aug 09 11:36:59 sup dogs Aug 09 11:37:01 yati: just remember to disable it when you are no longer interested in connection changes Aug 09 11:41:54 appel1: thanks :) would you recommend subclassing IntentService or a Service for this task? Aug 09 11:42:16 *I mean which one of those would you recommend? Aug 09 11:45:45 Is there a way to have a receiver declared in my maniofest that listens for language change on the phone? Aug 09 11:47:52 yati: might be easier with IntentService, depends on how you choose to handle the connection issue I guess Aug 09 11:50:13 I have a problem with having a ScrollView inside HorizontalScrollView Aug 09 11:50:21 anyone ever tried this? Aug 09 11:50:25 lapdis: according to the docs language changes would trigger a configuration change in your activity (the same as orientation changes) - so you could use that to check the before and after Configuration instances Aug 09 11:50:40 lapdis: LOCALE_CHANGED intent perhaps? Aug 09 11:56:01 appel1 thanks, there it was :) Aug 09 11:59:14 appel1: thanks :)) Aug 09 12:08:12 hello, anyone knows documents/webpages where I can learn about the architecture of Android (http://developer.android.com/about/index.html is a bit short) ??? Aug 09 12:08:47 I meant http://source.android.com/tech/index.html is a bit short :D Aug 09 12:10:45 handling large Bitmaps is so painful. There's always an OOM waiting for you even when you think you have seen it all... Aug 09 12:11:18 bubbleguuum: use the BitmapFactory options to only decode the size, determine a subsampling factor and tell the factory to subsample it Aug 09 12:11:23 one moment.. Aug 09 12:12:05 tapas: doing that and more already but still need to downscale large images even more Aug 09 12:12:16 http://pastesite.com/41235 Aug 09 12:12:41 a function that decodes an image such that it does not exceed the maximum sizes.. Aug 09 12:12:54 downscaling a photo below max screen width / height = bad for quality but it seems there is no choice on hi-res screens (tablets) Aug 09 12:13:45 decoding images a RBG565 helps (cuts memory usage in half compred to 8888) but is bad for quality Aug 09 12:14:14 well, if you know your image displayed size won't exceed a certain maximum size it's good to downsample to it in the decoder already.. Aug 09 12:15:28 I have a ScrollView inside HorizontalScrollView.. I keep getting ClassCastException.. If I remove the ScrollView everything works! Aug 09 12:15:46 Omar: stacktrace and code! Aug 09 12:16:54 tapas: http://stackoverflow.com/questions/11882602/classcastexception-after-adding-scrollview-inside-horizontalscrollview Aug 09 12:18:07 wel uhm Aug 09 12:18:22 you're passing framelayoutparameters to a linearlayout? Aug 09 12:18:54 hello, any email dev here? :) Aug 09 12:19:06 email developers? Aug 09 12:19:12 yes? Aug 09 12:19:13 sure I develop emails every now and then Aug 09 12:19:32 Omar: me, too Aug 09 12:19:33 oops Aug 09 12:19:40 Azmodan: me, too Aug 09 12:19:44 several per day Aug 09 12:19:45 well, i have this problem with a smartphone device, Samsung Galaxy S2, with ICS Aug 09 12:19:51 I wonder what an email developer is... Aug 09 12:20:01 lol Aug 09 12:20:04 obviously a person that developes emails Aug 09 12:20:09 it's mainly about @hotmail.com accounts.. Aug 09 12:20:10 like.. writing them Aug 09 12:20:19 oh but hotmail is deprecated Aug 09 12:20:25 tapas: suppose that you want to display an image of size iw x ih on a sw x sh screen. Ideally you want to compute the higher value of inSampleSize so the resulting downscale image w x h is greater than sw x sh (to preserver image quality). It looks like this scenario will always genrate OOM in some case. So you force to compute an inSampleSize giving an image of lower resolution than the Aug 09 12:20:26 screen Aug 09 12:20:59 Snuffle: well that was a problem too.. I changed that and I still have the same errors =\ Aug 09 12:21:04 bubbleguuum: hmm, i would assume that a device with a large screen should ship with sufficient memory to hold several full size images in RAM Aug 09 12:21:16 bubbleguuum: if not, then the device sucks.. Aug 09 12:22:05 well, i guess something is wrong with hotmail authentication.. Aug 09 12:22:21 Azmodan: wht are you doing? Aug 09 12:22:43 well, hotmail is M$, no? so i wouldn't be surprised if they abused otherwise honoured standard protocols Aug 09 12:23:36 tapas: for example, i use Messenger WithYou, it keeps on giving Authentication Error, when i use @hotmail.com accounts, but, when i use another account which isn't @hotmail.com it works fine Aug 09 12:23:50 and then that happens with IM Messenger, same error Aug 09 12:24:00 tapas: my Asus TF101 is unable to allocate a 1824x1368 32 bit images (nearly 10Mb) to display on a 1280x752 area. If I generate an image of 912x684 (eg inSample+1) it will work but the image is of lesser quality. If I generate a 1824x1368 16 bits image it will work too but you get banding in some cases. Aug 09 12:24:05 Azmodan: i'd assume hotmail to be broken then and move on.. Aug 09 12:24:44 bubbleguuum: "banding" as in aliasing? Aug 09 12:24:49 tapas: it worked well with mercury, so i'm just confused about the authentication issue Aug 09 12:24:59 tapas: and I'm no even talking about the ASus TF700 and its 1920x1200 screen (for which a 32 bit image is about 9Mb) Aug 09 12:25:17 i.e. image downscaling artifacts by virtue of not interpreting the image correctly? Aug 09 12:25:28 tapas: no: on subtle gradients (like a blue sky of a photo) you see artefacts Aug 09 12:25:45 other than that 16 bits is acceptable most of the time Aug 09 12:26:05 bubbleguuum: ah i missed the "16 bit" info :D Aug 09 12:26:32 bubbleguuum: different question: are you sure, you're not leaking images? Aug 09 12:26:59 the problem with handling large bitmaps is that it is not deterministic. You canot know if you can load an image before you try. Aug 09 12:27:18 bubbleguuum: it's the same for ALL resources on a computer system with limited resources Aug 09 12:27:26 thus hottible function catching OOM, calling System.GC() etc Aug 09 12:27:33 *horrible Aug 09 12:28:16 oh i should add "on a cmoputer system that shared resources between different processes" Aug 09 12:28:25 s/shared/shares/ Aug 09 12:28:30 I've had similar pains recently, my S3 enforces the 16MB heap whereas the S2 does not Aug 09 12:28:44 so stuff that runs fine on my S2 doesn't on the S3, which is ironic Aug 09 12:29:00 S3 enforces 16mb heap?!?! Aug 09 12:29:47 tapas: you'd think that a device with 1Gb ram could allocate a 10Mb bitmap.... I'm sure my old PC can. Aug 09 12:29:52 aolin, that's been my experience Aug 09 12:30:12 I wrote this live wallpaper that stores an animation as bitmaps in memory Aug 09 12:30:16 I'd think S3 has 48mb heap ? Aug 09 12:30:18 unpaidbill: not, if all memory is filled by other processes ;D Aug 09 12:30:23 unpaidbill: sorry Aug 09 12:30:27 hey, could I get some help? I am trying to use selection args for a Sql statement WHERE ID in (1,2,3,4,5). What's the correct syntax? Thanks Aug 09 12:30:31 bubbleguuum: not, if all memory is filled by other processes ;D Aug 09 12:30:37 works fine on my S2, not on the S3 which crashes due to heap size being > 16 Aug 09 12:30:41 (it's 18MB) Aug 09 12:30:54 ummm bitmaps are not stored in VM heap Aug 09 12:31:16 orly, where do they go? Aug 09 12:31:23 tapas: so there is no solution than to downscale some photos to a size lower than the screen. Or use 16 bits and live with artifacts Aug 09 12:31:25 they are stored in the native, and it's true that earlier OS versions do not enforce limits Aug 09 12:31:36 for bitmap usage Aug 09 12:31:50 S3 has 64MB heap Aug 09 12:32:03 bubbleguuum: did you make tests about how many full size pics you can hold in memory at once? Aug 09 12:32:09 bubbleguuum: i'm pretty sure it's more than one Aug 09 12:32:12 hrnt: ok I stand corrected Aug 09 12:32:20 bubbleguuum: if so, it's just a matter of resource deallocation Aug 09 12:32:24 which sucks in java Aug 09 12:32:25 I see, my mistake aolin Aug 09 12:32:33 tapas: ideally for a Gallery , you need 3 Aug 09 12:32:43 preds: do you call .recycle() to your bitmaps Aug 09 12:32:57 very very VERY important to do that when bitmap not used anymore Aug 09 12:32:57 I do not Aug 09 12:33:10 ot take a look Bitmap.recycle function Aug 09 12:33:11 ok Aug 09 12:33:16 will do Aug 09 12:33:34 I had to use that already on lowend 2.3 devices Aug 09 12:33:54 tapas: btw all of this is fine on a phone screen. It only gets problematic on larger tablet screens. Aug 09 12:33:58 GC is ignorant about Bitmaps Aug 09 12:34:15 well shit, I never read about this Aug 09 12:34:16 so you can easily run out of bitmap quota Aug 09 12:34:40 actually i thought it worked differently: Aug 09 12:34:50 it's public info but something google doesn't seem to be very proud of :D Aug 09 12:35:05 the last Bitmap that has a reference to a bitmap in ram that goes away releases the bitmap in ram Aug 09 12:35:16 so ... Aug 09 12:35:30 tapas: well it does not work like that Aug 09 12:35:57 most everything i have seen thus far with the android api/source code is utter crap Aug 09 12:36:02 e.g. let's say you create 3 instances of the Bitmap class and they reference the same bitmap in RAM.. once all these are GC'ed the bitmaps in the ram are free to get recycled Aug 09 12:36:17 Bitmap object allocates resources from VM side and from native side Aug 09 12:36:22 Let's display users super high res 10Mp photos in shitty resolution... Aug 09 12:36:49 so you can run out of resources on Native Side and GC is not deallocating the Bitmaps that unnecessarily take the resources Aug 09 12:36:56 bubbleguuum: what is the point of storing a photo in a higher resolution in memory than you can display on the screen? Aug 09 12:37:12 only way is to call .recycle() whenever you do not use a bitmap anymore Aug 09 12:37:17 from simple alert dialogs/prompts, to data adapters, to timers, to networking ... all crap Aug 09 12:37:40 appel1: it may be of a lower res than the original but still higher (oe equal) res than the screen Aug 09 12:37:47 aolin: http://developer.android.com/reference/android/graphics/Bitmap.html#recycle%28%29 Aug 09 12:37:55 it's obvious google android rushed to design of the android apis Aug 09 12:38:18 sysRPL: Sorry you feel that way. It sounds a bit more like "This doesn't work exactly like I'd like it to, therefor it is horrible" when you talk about your problems. Aug 09 12:38:20 aolin: quote: "This is an advanced call, and normally need not be called, since the normal GC process will free up this memory when there are no more references to this bitmap. " Aug 09 12:38:24 bubbleguuum: so you mean there are devices where you can't store a bitmap of the same resolution as the screen in memory? I find that hard to believe. Aug 09 12:38:31 lov: java isn't helping Aug 09 12:38:46 sysRPL: you're right. We should all be writing symbian or maemo. Aug 09 12:38:47 lov: the lack of delgates hurts in a big way Aug 09 12:38:47 tapas: I don't think that is accurate Aug 09 12:38:59 aolin: check the source :D Aug 09 12:39:18 appel1: for perf reason, images are scaled to a power of 2 which makes it slightly higher res than the screen (or lower if you go that route) Aug 09 12:39:19 tapas: you can use that to release the bitmap even if there ARE references Aug 09 12:39:33 aolin: that's true.. Aug 09 12:39:40 lov: have you delved much into the array adapter source code? Aug 09 12:39:48 aolin: yes, and that's the whole point of the function Aug 09 12:39:52 bubbleguuum: perf reason? you want to ensure it must always be rescaled before rendered? Aug 09 12:40:07 aolin: to free the RAM NOW, and not when the GC decided all references to it went away Aug 09 12:40:13 yeah, what is so wrong with adapters? Aug 09 12:40:13 ^^ Aug 09 12:40:19 tapas: but anyway my point is that if your garbage collector has queue of unreleased Bitmaps, it's really helpless when you actually want to allocate another Bitmap Aug 09 12:40:29 i can understand the hate for dialogs at least Aug 09 12:40:36 tapas: because it needs to flush first, but it never does it Aug 09 12:40:44 aolin: that is true.. and it might make your app work on some memory constrained devices.. Aug 09 12:40:44 appel1: it must be rescaled once before displaying it since thre is no way you have the memory to load that 5Kx5k photo Aug 09 12:41:03 sysRPL: What about it Aug 09 12:41:16 bubbleguuum: ffs, just load it at the correct resolution from the beginning, it is really easy to do Aug 09 12:41:30 tapas: yeah, this is the only way I can make my app (that deals with large bitmaps for viewing) work reliably Aug 09 12:41:39 aolin: recycle is just a little dangerous from an engineering point of view because exactly that: you have bitmap references around that dangle Aug 09 12:42:06 tapas: otherwise, in testing, there is always situation wherer garbage collector fails for release the bitmaps before I allocate new one Aug 09 12:42:17 aolin, so if the Bitmap memory isn't being dictated by the heap size, what is dictating it? Aug 09 12:42:31 tapas: yeah, I'm C/C++ programmer originally so I'm used to taking that kinds of "risks" :D Aug 09 12:42:38 aolin: so anyways: everytime we ran into OOM problems with bitmaps we resolved them by a] making sure we decode image not in their raw size b] making sure we didn't leak Bitmap references Aug 09 12:42:45 aolin: same here :D Aug 09 12:42:51 aolin: btw: c++ 11x is out :D Aug 09 12:42:53 appel1: rescaling to exact width / heigth is a lot slower than a power of 2. Aug 09 12:43:14 aolin: in C++ you have desrtuctors and RAII though which makes the resource management totally manageable Aug 09 12:43:35 aolin: i find garbage collected languages often problematic.. Aug 09 12:43:36 lov, it's a horrible design, very prone to errors ... notice the design repeats using mObjects vs mOriginalValues many places when he could just have a currentValues() function instead, peppers locks everywhere when the important methods could have been thread safe instead (meaning if you want to write an adapater you have to pepper locks palces as well) Aug 09 12:43:39 i could go on Aug 09 12:43:47 tapas: using recycle() is really ugly but I'm pretty sure I never had any references dangling. GC just did not catch up when it came to Bitmaps Aug 09 12:43:56 it's utter shit Aug 09 12:44:03 aolin: i'm not sure of that.. Aug 09 12:44:10 aolin: do you use inner classes for example? Aug 09 12:44:11 also I never have any crashes when using Recycle so that proves there are no references dangling :D Aug 09 12:44:15 sysRPL: is that a design problem or an implementation problem? Aug 09 12:44:15 aolin: i.e. nested classes.. Aug 09 12:44:27 aolin: no that proves that nothing dereferences the dangling references Aug 09 12:44:34 tapas: inner classes yeh, but I try to make them static when ever I can :) Aug 09 12:44:56 hrnt, it becaome my problem when i want to write my own adpater ... to customize something Aug 09 12:45:28 tapas: I still havent read my 11x :) Aug 09 12:45:33 tapas: need to catch up Aug 09 12:45:38 aolin: ok.. i'm pretty sure though that the image heap also just uses a reference counting scheme.. Aug 09 12:45:51 sysRPL: patches welcome. If you think you could write it better and more cleanly, feel free to submit at patch to AOSP. Aug 09 12:45:52 aolin: a draft is available online Aug 09 12:46:27 and the java lack of delegates and lambda really hurts ... a simple OnFilter delegate would be nice Aug 09 12:46:39 tapas: it does have reference counting, thats not the problem. problem is that the resources used by Bitmaps are in VM and in native. The VM side memory usage is very low, and GC thinks these objects do not matter much Aug 09 12:46:40 about the android api qualities: sadly there's points where encapsulation is broken and implementation details leak all over the place.. Aug 09 12:46:46 before fragments it was even worse.. Aug 09 12:46:55 tapas: problem of Bitmaps is the native side resource allocation Aug 09 12:46:55 the api is really really bad Aug 09 12:46:58 then all the side effects... Aug 09 12:47:05 tapas: and GC is helpless in managing that Aug 09 12:47:26 tapas: meaning that GC cannot guarrantee there are free resources just in time Aug 09 12:47:29 sysRPL: So are you just in this channel to bitch incessently? Because that's all I've seen at this point. Aug 09 12:47:32 lov: i have written tons of apis/tools/reusable components Aug 09 12:47:48 only way to guarrantee just in time is to call recycle :( Aug 09 12:47:49 lov: i've asked questions ... you haven't been paying attention Aug 09 12:47:58 oh no, I have been. Aug 09 12:48:02 You ask questions, we answer them Aug 09 12:48:06 aolin: from my understanding this should be equivalent in memory usage: Bitmap foo = ... ; foo.recycle; Bitmap bar = ... and { Bitmap foo = ... } GC(); Bitmap bar = ... Aug 09 12:48:07 and you say "NO! NO! This is not how I want it!" Aug 09 12:48:21 "Android is broken because it does not work exactly how I expect it to!" Aug 09 12:48:25 "What a horrible OS! What a horrible API!" Aug 09 12:48:38 aolin: in the second example the foo reference goes away. then triggering the GC should traverse all the way through to the native heap Aug 09 12:48:51 tapas: well yeah, if you call GC manually Aug 09 12:49:04 whats this? people QQing over the fact they can't use the sdk properly? Aug 09 12:49:13 lov, my questions was how can i display a dialog without passing the activity to every method call ... and then you proceed to tell me to place an activity in my method calls Aug 09 12:49:26 I have you several options. Aug 09 12:49:28 *gave Aug 09 12:49:33 you ignored each and every one of them. Aug 09 12:49:48 tapas: inherent problem is that GC does not know to run just before you allocate another bitmap. because it does not know about these native side resources Aug 09 12:50:03 aolin: yeah, my point being: you can achieve the same momory constraints with calling GC manually. no need to have dangling references.. Aug 09 12:50:13 tapas: I agree Aug 09 12:50:23 in that sense i would always prefere manually calling GC Aug 09 12:50:30 so.. now you guys have hashed that out :P Aug 09 12:50:50 if the Bitmap memory isn't dictated by the heap limit, what is the limit? Aug 09 12:50:54 tapas: I see how that can be better than calling recycle(). Aug 09 12:50:57 bubbleguuum: if that perf hit is worth it or not depends on what you're doing, if you are showing a lot of thumbnails that you cache in memory using exact dimensions might be better.. but regardless you don't have to load the full 5kx5k image Aug 09 12:51:08 aolin: actually i have to stand corrected: Aug 09 12:51:30 aolin: if you want to find errors with your resource management.. then it might make sense to test your assumptions using recycle() Aug 09 12:51:47 preds: there is a more vague concept of using resources at the native side. memory usage on native side is generally not regulated or enforced, but @bitmaps they are Aug 09 12:51:49 aolin: i.e. you assume you have no reference leaks.. then recycle() the image and see if the app crashes :D Aug 09 12:51:50 not sure what are the limits Aug 09 12:52:07 lov, consider these 2 designs? which is better? http://pastebin.com/dNWaCMDR Aug 09 12:52:59 tapas: maybe extending bitmap class with a counter in ctor/finalize() is better Aug 09 12:53:08 sysRPL: http://developer.android.com/tools/sdk/ndk/index.html Aug 09 12:53:20 write an adapter for whatever your favorite language is, hook into the .so files, go wild. Aug 09 12:53:32 lov, the api design is what is bad Aug 09 12:53:35 and java too Aug 09 12:53:39 you're right. Aug 09 12:53:42 Everything is wrong with android. Aug 09 12:53:48 Nothing is done correctly, whatsoever. Aug 09 12:53:54 Your way, and only your way, is the truly right way. Aug 09 12:54:13 I'm done arguing. You're right, languages have advanced in the last 20 years. Aug 09 12:54:25 There are closures, lambdas, and all sorts of wonderful things. Aug 09 12:54:32 Java is antiquated and has dramatic design problems which are now evident. Aug 09 12:54:33 oh, how I hate apps with annoying confirm dialogs when I press back.. Aug 09 12:54:48 sysRPL: I thought you gave up on Android dev Aug 09 12:54:50 aolin: maybe yeah. coming from a c++ background i find the price to pay for non-manual management too high most of the time.. Aug 09 12:54:52 sysRPL: the problem with the second approach is that you cannot "freeze" the application if it goes to background when the dialog is visible Aug 09 12:54:55 Use the NDK, write a layer so that your favorite language can compile to a .so, and stop complaining. Aug 09 12:54:59 aolin: especially this indeterministic behaviour :D Aug 09 12:55:24 hrnt: hrnt it's not a freeze ... there is a message loop in MessageDlg Aug 09 12:55:31 sysRPL: i know Aug 09 12:55:31 aolin: and not having destructors... grrrrr Aug 09 12:55:55 aolin: anyways, thanks for the discussion.. it was informative Aug 09 12:56:06 sysRPL: by freezing i mean "save the instance state, stop the activity" Aug 09 12:56:07 hrnt: and regarding te async nature of the android apis ... it's totally inconsistent Aug 09 12:56:12 sysRPL: basically serialize the application Aug 09 12:56:22 I'm just going to say this; if I see one more "Android is horrible, what a terrible API, what a terrible language, everything is terrible" I'm going to just ban you because you're being the total opposite of constructive and helpful. Aug 09 12:56:31 You've established this for all of us. Aug 09 12:56:36 Stop belaboring the point, or get out. Aug 09 12:56:51 hey, could someone PLEASE help? I am trying to use selection args for a Sql statement WHERE ID in (1,2,3,4,5). What's the correct syntax? Thanks Aug 09 12:57:00 hrnt: showing message does not freeze an application ... the message loop is free to call other other methods of the application Aug 09 12:57:12 sysRPL: that is why you don't have such dialogs in android (or iOS) - it is possible that the application needs to be killed and relaunched while the dialog is visible. Aug 09 12:57:14 appel1: I'm displaying photos some of them very high-res and huge, from http, the fastest as possible and with the highest quality as possible Aug 09 12:57:15 tapas: yep, nice one Aug 09 12:57:23 shad0w1e: that's it Aug 09 12:57:51 it's not working with selectionArgs Aug 09 12:58:13 hrnt: the same problem can happen when you are downloading something .... all the network code is not async by default Aug 09 12:58:27 it's all blocking Aug 09 12:58:38 sysRPL: yeah, that is a different argument Aug 09 12:58:40 AsyncTask sucks Aug 09 12:59:20 no it doesnt Aug 09 12:59:56 now in more recent versions of android we have AsyncTaskLoader which looks like a decent attempt to hide the crappiness of AsyncTask Aug 09 12:59:56 What I find is missing from Android is a lot of higher-level patterns, Asynctask is not bad but it's a very generic implementation and it would have been nice if Google made a few extensions for patterns that are used a lot. Aug 09 13:00:04 about time Aug 09 13:00:18 my argument is that the api is retarded ... in one place it forces you to write async dialog prompts and in the other hand it gives you blocking network apis by default Aug 09 13:01:32 my pet peeve about dialogs is the fact that they are pretty hard to implement correctly especially on older versions of android Aug 09 13:01:35 and then there is writing a timer to fire every x intervals and invoke a callback in th ui Aug 09 13:01:58 before fragments the "correct" way was to use Activity.onCreateDialog Aug 09 13:02:14 how do you pass arguments to that dialog, for example if you want to show a custom error message? Aug 09 13:02:20 well, on API levels before 8 you don't :P Aug 09 13:03:53 HDroid: CallumTaylor: the problem with plain asynctask is the fact that it doesn't follow the activity properly. Aug 09 13:04:14 even the examples ("painless threading", IIRC) conveniently ignore this fact Aug 09 13:04:15 its not supposed to.. its asynchronous to the UI thread Aug 09 13:04:20 that's the point Aug 09 13:04:24 => basically the example restarts the downloads if you rotate the screen Aug 09 13:04:29 does that make sense to you? Aug 09 13:04:32 Bah, AsyncTaskLoader still doesn't have a "what if this fails" scenario, it seems. Aug 09 13:04:35 if it followed the ui thread, it would be running on the ui thread Aug 09 13:04:52 make it static, or pass the reference to the activity again Aug 09 13:04:54 hrnt: I agree, those patterns are very tedious. Aug 09 13:05:19 so we have questions like these: http://stackoverflow.com/questions/8417885/android-fragments-retaining-an-asynctask-during-screen-rotation-or-configuratio Aug 09 13:06:28 What would be the best/simplest way to send an object between activities? Aug 09 13:06:40 Ahh, there's another one :) Aug 09 13:06:41 just google for "asynctask retain instance", it's depressing. Aug 09 13:07:02 The hideous "parcelable". Aug 09 13:07:09 its a thread, of course it will Aug 09 13:07:12 Raziel: parcelable, but it isn't simple Aug 09 13:07:35 and bit of tedium, since we're on the subject ;) Aug 09 13:07:44 s/and/another Aug 09 13:07:47 So should I look into that or use another way? I need to write stuff into an object in one activity then access the stuff in another Aug 09 13:07:59 Although I could write it when opening the second activity, that wouldn't be as good Aug 09 13:08:14 look into that, see if it fits your needs Aug 09 13:08:18 well, at least android is fixing those problems and we can use those solutions in lower api levels thanks to the support packages, so it isn't all that bad Aug 09 13:08:19 Raziel: there's a few alternatives.. if the number of fields is limited, you could just add them to the intent individually. Aug 09 13:08:26 so you get DialogFragments and Loaders Aug 09 13:08:48 A trick I often use is to use Jackson, serialize objects to json, put in intent, then deserialize in the other activity. Aug 09 13:09:01 Hmmm Aug 09 13:09:20 So would that be better than a parcel? Aug 09 13:09:22 There's a speed penalty, but it's often negligable. Aug 09 13:09:24 * Raziel is new at this. XD Aug 09 13:09:46 It's just easier to code... parcelable is quite fragile and has a lot of boilerplate. Aug 09 13:10:03 You do the stupid stuff that a computer is supposed to do for you. Aug 09 13:10:41 So how would I go doing that? Aug 09 13:10:47 I can probably google it but yah. Aug 09 13:10:59 I'm new at Java, by the way. :D Aug 09 13:11:42 in order to serialize to JSON, you're also going to need a 3rd part library Aug 09 13:12:21 Raziel, you can just have a class with static variables.. Aug 09 13:12:30 That shouldn't be a problem in itself, getting the library Aug 09 13:12:36 boing: rrrrrrr Aug 09 13:12:38 I'm not at all against 3rd party ibraries Aug 09 13:13:22 if all you want to share some complex object between different parts of your app, you can use a statis variable. Aug 09 13:13:47 itll satisfy most instances and you wont have to worry about putting stuff in bundles. Aug 09 13:13:52 bundles are more for primitive types. Aug 09 13:13:52 Basically, for jackson, you make a new ObjectMapper();, then mapper.writeValueAsString(someObject);, put the string into the intent, then on the other end, mapper.readValueAsString(string, someObject.class); Aug 09 13:14:08 HDroid: "rrrrrrr"? Aug 09 13:14:11 android does come with a JSON library Aug 09 13:14:12 boing: ugly Aug 09 13:14:36 sure, it doesn't have any fancy serialization features but you don't necessarily need them for simple things Aug 09 13:14:37 there's nothing wrong with it. Aug 09 13:14:37 Well I'm pretty sure my whole code is ugly since I'm new at this, but yeah Aug 09 13:14:39 It does but it doesn't do serializing. Aug 09 13:15:02 I.e. you might as well stick the stuff into an intent manually since you're going to process every node anyhow. Aug 09 13:15:55 boing: the scope and lifecycle of static fields doesn't match. Aug 09 13:16:09 I.e. you're going to have to maintain state. Aug 09 13:16:37 "Is this the value I just got from the previous activity or was this set 10 minutes ago by an old instance?" Aug 09 13:16:42 Also they're not garbage-collected. Aug 09 13:16:55 there is no lifecycle or scope Aug 09 13:16:57 Unless you null after consumption, but then you have another tedious pattern. Aug 09 13:17:06 boing: exactly. That is the problem. Aug 09 13:17:07 of a public class with a static variable Aug 09 13:17:13 using a static for this purpose is a brittle hack Aug 09 13:17:17 it doesnt have to be a problem Aug 09 13:17:21 boing: it is Aug 09 13:17:34 depends on your app/needs Aug 09 13:17:42 ive used both ways...bundles and static variables. Aug 09 13:18:30 Not a very compelling argument :P Aug 09 13:18:37 im not argueing. Aug 09 13:19:01 Raziel, read this: http://developer.android.com/guide/faq/framework.html Aug 09 13:19:24 "How do I pass data between Activities/Services within a single application?" -- will give you some choices. Aug 09 13:20:20 Mmmmk Aug 09 13:20:21 oh, nice reference Aug 09 13:20:39 Interesting, they don't even mention parcelable. Aug 09 13:20:57 i was just about to comment on that Aug 09 13:21:37 And they don't exactly offer a stateless alternative. Aug 09 13:23:20 the HashMap approach is interesting, given that it doesn't mention how to share the reference to the map :P Aug 09 13:23:46 I'm really baffled as to why they're not just including a reflection-based generics-compatible serialiation method in the Intent class. Aug 09 13:24:08 :) Aug 09 13:24:21 But in the meantime I'll do my own with Jackson :P Aug 09 13:24:33 isn't that what Serializable is Aug 09 13:25:05 Sure, it can be based on Serializable, though it's supposedly very slow. Aug 09 13:25:30 no slower than serializing to JSON Aug 09 13:25:33 it Aug 09 13:25:35 er Aug 09 13:25:43 it's slot because it uses reflection, im sure Aug 09 13:25:45 Not so sure about that. Aug 09 13:26:58 a serializable framework that didn't use reflection would remove that overhread, but then you'd be stuck manually serializing object members Aug 09 13:27:27 Raziel: i do agree with HDroid that static variables are not really a nice way to do it... but sometimes they do make sense... Aug 09 13:27:35 either way, when you're talking serizlizing one object, it's irrelevant Aug 09 13:28:09 Yes, but IMHO 1) the "reflection is slow"-argument lost its validity some time after we stopped using the G1 as a reference platform and 2) if reflection is slow, fix it, Google :) Aug 09 13:28:11 hello all Aug 09 13:28:38 Yes, I realize my way with Jackson is rather wasteful, but I've serialized some crazy things using that method and speed was never an issue. Aug 09 13:29:19 i found there were bugs with putSerializable() ... if you subclass ArrayList, for example: MyArrayList extends ArrayList ... and put your instance of MyArrayList into an intent using putSerializable()...when you get it in your new activity, it's an ArrayList, not MyArrayList...you cannot cast it to MyArrayList. Aug 09 13:29:50 I think Intents/bundles treat collections, etc., differently. dont think it really expects you to put custom objects in the bundles. Aug 09 13:29:56 any comments on this? Aug 09 13:30:00 boing: afaik that is fairly normal. The Parcelable API does not support every possible value type. Aug 09 13:30:31 All I can say is, I've never encountered anything that made Jackson fail to serialize / deserialize. Aug 09 13:30:43 well this is a very simple subclass...like, one simple method. Aug 09 13:30:50 boing: did you implement the serializable interface in MyArrayList? Aug 09 13:31:05 hrnt: yup Aug 09 13:31:09 Parcelable is so easy to use Aug 09 13:31:33 * Jug6ernaut could never get Parcelable to work so just went with serializable Aug 09 13:31:36 * Jug6ernaut must be fail Aug 09 13:31:59 Jug6ernaut: you should try to get it working (again) -- much faster Aug 09 13:32:37 QubeZ for my purposes its not really an issue tbh, but i should still get it working lol Aug 09 13:33:09 QubeZ: sure, it's not hard, it's just tedious, doing the stuff that reflection can do for you. Not to mention the ugly cast it requires. Aug 09 13:33:40 QubeZ: also, whenever you change your class layout, you have to change the parcelable part. Aug 09 13:33:57 ya, thats not a big deal at all Aug 09 13:34:00 few mins Aug 09 13:34:11 For a fart soundboard, maybe. Aug 09 13:34:33 It's boring and dangerous and partially non-refactor-safe. Aug 09 13:35:10 coming from C++, it's not hard to remember to update serialization methods :P Aug 09 13:39:28 any good ideas on having an autocomplete with an adapter that gets it's data from multiple sources? Aug 09 13:39:39 like phone's contacts but also some app specific stuff Aug 09 13:40:52 dazn: do you want to use cursors or arrays? Aug 09 13:43:39 brian_de, combination? Aug 09 13:44:05 dzan: do you have a license from Apple to do that? Aug 09 13:44:13 ^^ Aug 09 13:44:18 do i need that? :p Aug 09 13:44:35 this question is obsolete Aug 09 13:44:49 can I do multiple cursors? it would be a start.. Aug 09 13:44:56 like 2 different tables Aug 09 13:45:01 sure you can Aug 09 13:45:45 there is MergeCursor or CursorJoiner. maybe one can be of help Aug 09 13:46:32 great i'll look into that Aug 09 13:46:37 you might also try to just five your adapter two cursors and get the data from them Aug 09 13:46:49 -five +give Aug 09 13:47:11 would that be a better solution you think? can i still use the default cursoradapter? Aug 09 13:47:32 also what do you think would be the best solution for a combination of an array and a cursor? Aug 09 13:47:38 no, you would need your own subclass Aug 09 13:48:51 for feeding multiple cursors or for the combination of cursor & array Aug 09 13:48:59 same thing applies to a array-cursor combination i would say. you'd implement a subclass of cursoradapter and do your stuff there Aug 09 13:49:20 ok was my idea glad to have some confirmation :) Aug 09 13:49:37 i'd subclass Adapter directly Aug 09 13:49:55 yeah that might be better :) Aug 09 13:50:15 and then have a good look at the cursoradapter implementation ? :D Aug 09 13:50:19 ...or maybe listadapter Aug 09 13:51:30 basically you need only newView, bindView and getItem. no need to look too much into cursoradapter Aug 09 13:52:38 ok i'll figure it out :) thanks! Aug 09 13:52:55 ( thougth cursoradapter did some smart stuff to save on queries ) Aug 09 13:53:54 I'm trying to write tests for an object that creates and sends Notifications. After I build a Notification, setting the icon, title, content, etc., I don't see any methods for getting these values from the new Notification object (except for the icon). Anyone know of a solution to this? Aug 09 13:54:29 i think the database query is already done by the time the adapter is set up. as long as the content isnt changing ther is no new query. if you get an entry, the adapter is just jumping from position to position Aug 09 13:54:53 oh.. that's stupid Aug 09 13:55:00 if the result is 4000 hits Aug 09 13:55:10 for example Aug 09 13:55:38 If the result is 4000 hits, you might want to limit your query Aug 09 13:55:44 yeah, but the memory managemnt is happening in Cursor, not in the adapter Aug 09 13:55:57 ah ok that explains brian_de Aug 09 13:56:15 SimonVT, it isn't, was just an example Aug 09 13:57:26 but still you really might want to limit the query results. no one needs a 4k long list on a mobile device ;) Aug 09 13:57:34 how much would you pay for mikedg's next app? Aug 09 13:57:59 brian_de, the situation is more complicated :) Aug 09 13:58:10 I see :) Aug 09 13:58:16 mikedg: How much would you pay ME to use it? Aug 09 13:58:19 fyi ( if you care ): the autocomplete will always show 1 item of each class for the input Aug 09 13:58:42 there are like 6 classes Aug 09 13:59:00 say: fruits, animals, plants, beers, cars,.. Aug 09 13:59:08 so it shows 1 car, 1 fruit,.. for the input Aug 09 13:59:13 but those are stored in different locations Aug 09 14:00:06 mikedg: I will give you pocket lint. Aug 09 14:00:39 In one activity, if I press the home button I get this exception http://pastebin.com/e1LvVmcD I have absolutely no idea where should I look to solve this Aug 09 14:00:41 aah ok. so some kind of tree view ... i'd suggest to think about the autocompletion. maybe you can add a filter to limit it to certain classes, in case there are really a lot of result sets Aug 09 14:00:56 ...filter in terms of UI Aug 09 14:01:18 only 6 result sets so autocomplete is fine :) Aug 09 14:01:19 BlackYue: are you doing anything in onPause? Aug 09 14:01:23 most of the time only 4 will come up Aug 09 14:01:51 What exactly does Gallery is deprecated mean? does that mean that in JellyBean a Gallery wont work? Aug 09 14:02:07 Leeds: In this activity, no Aug 09 14:02:10 It means you probably shouldn't use it Aug 09 14:02:24 And they stopped updating it Aug 09 14:02:26 Hm I wonder... has anything that's been declared deprecated actually been removed? Aug 09 14:02:40 I've spent ~5 hours just to create a Gallery and still I got bugs Aug 09 14:02:41 BlackYue: hmm... onDestroy? onAnything? :) Aug 09 14:02:42 offcourse not Aug 09 14:02:55 BlackYue: are you using onSaveInstanceState? Aug 09 14:03:33 Leeds: onCreate, yes Aug 09 14:03:38 brian_de: Yes, I am Aug 09 14:03:52 obviously onCreate :) Aug 09 14:04:27 HDroid: a couple things were, I don't remember what they were but I remember it caused compilation problems for people when it disappeared from the public apis Aug 09 14:04:59 wongk, if one of the data sets is the android contacts then i'm better of extending the cursoradapter anyway right? Aug 09 14:05:15 Service.setForeground was removed Aug 09 14:05:21 ^^ Aug 09 14:05:57 Ahh yes, I remember that Aug 09 14:05:59 lots of stuff got taken out before 1.0 - people still get bitten finding old tutorials and example code Aug 09 14:13:45 Hmm.. I'm using HorizontalScrollView and I'm adding 600+ images to it.. will that cause memory problems to older phones? Aug 09 14:14:47 Omar: absolutely :) Aug 09 14:15:33 Omar: you should really use a design that at most shows like 3 images at a time (previous, current and next) and recycles the bitmaps as soon as they are out of view. Aug 09 14:15:35 you might be better off with a listadapter Aug 09 14:15:46 Omar: or just 2 if you only have 2 in view at a time Aug 09 14:16:42 the android list stuff does this automatically for you, so it's a good candidate although I'm not sure if listview can work horizontally Aug 09 14:17:12 That used to be Gallery but it's deprecated :O Aug 09 14:18:35 also applications can cheat by uploading images as textures to GPU, which usually has quite a lot of dedicated RAM for it. I guess 64 MB or more. Aug 09 14:19:17 after uploaded as a texture, the application is at liberty of disposing its own copies of the bitmap. Aug 09 14:19:44 http://stackoverflow.com/questions/3877040/how-can-i-make-a-horizontal-listview-in-android Aug 09 14:20:15 Omar: 600 images in a view is pretty crazy, i'd say you might have problems if you even add just 600 labels :P Aug 09 14:20:45 I like the rant. Aug 09 14:24:41 sheesh, are there any credit report monitoring services that dont absolutely suck?! Aug 09 14:25:33 luxurymode: yourself? :P Aug 09 14:26:35 unfortunately, i dont have any way of personally receiving updates from equifax, transunion, and experian Aug 09 14:27:19 without using a service* Aug 09 14:27:27 you mean in realtime, or at all? Aug 09 14:27:35 You can get a credit report from each, once a year Aug 09 14:28:14 https://www.annualcreditreport.com/cra/index.jsp Aug 09 14:28:34 yeah i mean realtime Aug 09 14:28:38 i know get one once a year Aug 09 14:28:53 good point though, thanks lov Aug 09 14:32:18 Is onResume called when I press the 'back' button to go to an activity? My app is crashing if I use the back button to get to a certain activity and I can't figure out why. Aug 09 14:33:19 urks. i wonder why shape ignores some rounded corners.. Aug 09 14:33:50 when used as background, this: http://pastesite.com/41246 gives me only bottom corners rounded Aug 09 14:34:04 deadmund: it is Aug 09 14:34:11 HDroid: ok Aug 09 14:35:11 deadmund: onResume is called whenever your app is brought to the foreground. Aug 09 14:35:24 lov: Ok thanks :) Aug 09 14:35:29 deadmund: this can happen when another app takes the foreground in your stack, and then you return to it Aug 09 14:35:40 it can also happen when you're temporarily paused, e.g. rotating the screen Aug 09 14:35:49 s/app/activity/ Aug 09 14:36:05 deadmund: http://developer.android.com/guide/components/activities.html#Lifecycle Aug 09 14:36:16 also, http://developer.android.com/training/basics/activity-lifecycle/index.html Aug 09 14:36:28 the activity lifecycle is a critical thing to learn Aug 09 14:37:44 actually i was stupid an edited the wrong file.. Aug 09 14:40:36 (600 images in a view).. I just tested it on 2.2 on the emulator and it ran ok Aug 09 14:40:48 also tested it on my Galaxy S.. Aug 09 14:41:09 How can I know how much RAM does my app use? Aug 09 14:42:44 Omar: a] reasoning b] measuring Aug 09 14:43:45 Omar: adb shell dumpsys meminfo Aug 09 14:43:58 tapas: I didnt get what u said :) Aug 09 14:45:12 time to make the Android Aug 09 14:46:36 Omar: by a] thinking about it or b] measuring it Aug 09 14:46:44 how do i measure it Aug 09 14:46:53 that was my question :) Aug 09 14:47:16 Omar: actually thinking about it is a good approach, too Aug 09 14:47:34 then one can measure and compare if one's reasoning has a flaw or one has errors in the program Aug 09 14:47:46 Omar: take a look at the DDMS perspecive in eclipse Aug 09 14:48:06 Omar: assuming you use eclipse.. Aug 09 14:48:45 10:43:50 < lov> Omar: adb shell dumpsys meminfo Aug 09 14:50:30 lov: http://pastebin.com/W8CFwDZq Aug 09 14:51:29 Omar: you're likely interested in the Heap areas. Aug 09 14:52:12 so 14 mb.. Aug 09 14:52:38 Heap size: 14 mb .. Heap Alloc: 11 mb.. Aug 09 14:53:01 How bad is this? Aug 09 14:53:06 i dont know, what device is it Aug 09 14:53:09 what's the heap limit Aug 09 14:53:20 if the limit is 64MB, its great Aug 09 14:53:24 if it's 16MB, it's not so great Aug 09 14:54:04 I intend to support all devices 2.2+ .. and this is only a small part of the final activity I'm going to have Aug 09 14:54:26 You'd have to request large heap to be safe anyhow, I guess. Aug 09 14:54:36 Hi! I've just discovered a strange actionbar behaviour on jellybean. Aug 09 14:54:38 This only happens with splitactionbar (in portrait), everything is ok in landscape. Aug 09 14:54:39 The issue: i have 4 actions with showAsAction=ifRoom, on GNex the latest one goes to oferflow. Aug 09 14:54:41 But! When i press overflow once, there is no that item. When i close it and press second time, it appears on the top. Close, press - nothing. Close, press again - it's in its place. And so on. Can anybody help? Aug 09 14:55:01 HDroid, never request large heap Aug 09 14:55:15 also that doesnt help 2.x Aug 09 14:55:17 Heh why not Aug 09 14:55:26 because you dont know what it's there for Aug 09 14:55:31 If you have 600 images and you have a damn good reason Aug 09 14:55:36 you shouldnt use things you dont understand Aug 09 14:55:46 and you need 600 in ram at the same time? Aug 09 14:55:51 I don't. Aug 09 14:55:59 Maybe Omar does. Aug 09 14:56:03 I DO.. only 1 image at a time Aug 09 14:56:12 fullscreen Aug 09 14:56:16 1 at a time Aug 09 14:56:18 that's not 600 a ta time Aug 09 14:56:27 Then please, write something that loads it on demand instead of keeping them all in RAM :P Aug 09 14:56:29 so a 720p image is going to take like 3MB of ram or something Aug 09 14:56:41 1280*720*4 Aug 09 14:57:00 I've written a custom BroadcastListener that listened to com.android.vending.INSTALL_REFERRER. it seems to be working if they use Google Play App, not when they use Google Play html page, and sometimes it doesn't fire even if it's installed in the play app. does anyone have "the definite guide to INSTALL_REFERRER"? Aug 09 14:57:18 the problem is when you have a listview, and you stick an image in every row, but rather than loading a 50x50 image, you load a 1280x720 image and scale it down Aug 09 14:57:24 so you have 10 720p images in ram Aug 09 14:57:48 no you don't Aug 09 14:57:51 they recycle Aug 09 14:57:57 ok just stop Aug 09 14:58:03 I'm using HorizontalScrollView Aug 09 14:58:04 dont interrupt me when you're wrong Aug 09 14:58:12 I lol'd Aug 09 14:58:20 hi SimonVT :) Aug 09 14:58:24 lol nvm I'm not starting an argument Aug 09 14:58:29 Hello canadiancow|work =) Aug 09 14:58:44 if you're going to be mad, be mad at the google dev console that hasn't updated in days! Aug 09 14:59:01 appel1: say I've configured a service to be run at intervals of x minutes using the AlarmManager, and it is running. At this point, one of the components or my app call startService() to invoke the very same service. What happens now? Aug 09 14:59:31 hmmm so whats the solution.. how can i not have 600 imageviews Aug 09 14:59:54 why can't you ? Aug 09 15:00:11 too much ram Aug 09 15:00:13 yati: the service onStartCommand will get invoked Aug 09 15:00:28 use a smaller image then Aug 09 15:00:44 you can probably go nine patch and go even smaller Aug 09 15:00:45 yati: http://developer.android.com/reference/android/app/Service.html#ServiceLifecycle Aug 09 15:00:56 Find something like a horizontal listview Aug 09 15:01:26 [10:59:31] hmmm so whats the solution.. how can i not have 600 imageviews Aug 09 15:01:30 O______________________O Aug 09 15:01:33 make less of them :( Aug 09 15:01:50 so it cant be done with HorizontalScrollView? Aug 09 15:01:58 No Aug 09 15:03:26 hey Aug 09 15:03:51 appel1: great, but in a different thread than the woken up service? or is the fresh intent queued up as normally happens when there's multiple calls to startService() Aug 09 15:03:55 so what do most Android apps do for notifications? I figure that a Service could just start on boot and poll some URL somewhere Aug 09 15:04:02 like an RSS feed Aug 09 15:04:34 jcromartie: you can poll, you can push... depends on the app Aug 09 15:04:34 jcromartie, i used C2DM for notifications Aug 09 15:04:37 yati: you mean if you use IntentService? Aug 09 15:04:43 jcromartie: use GCD or something Aug 09 15:04:47 appel1: yes :) Aug 09 15:04:47 GCM* Aug 09 15:04:50 er Aug 09 15:04:52 GCM Aug 09 15:04:55 >_< Aug 09 15:04:55 I should have mentioned Aug 09 15:05:06 Urban Airship is a mess… we use it on iOS but on Android it seem up in the air, since they have their custom Helium notification system, and are not supporting GCM yet and we are too late to sign up for C2DM Aug 09 15:05:07 its ok lov, i wont make fun of you for that :) Aug 09 15:05:19 yati: then onHandleIntent will get called once per call to startService Aug 09 15:05:34 yati: doesn't matter what called startService Aug 09 15:05:47 doesn't C2DM/GCM also have some pretty severe rate limits? Aug 09 15:05:52 Is GCM the new C2DM? Aug 09 15:06:01 hmm Aug 09 15:06:02 http://developer.android.com/guide/google/gcm/index.html Aug 09 15:06:08 says completely free and no quotas Aug 09 15:06:22 yeah, they loosened it up when they went 'production' Aug 09 15:06:22 appel1: I was just typing the question that would have yielded the last sentence :) Thanks a ton mate Aug 09 15:06:59 c2dm was inbeta for like 2 years Aug 09 15:07:02 gcm is teh awesome Aug 09 15:07:31 GCM seems nice Aug 09 15:07:32 yati: just to be clear, IntentService doesn't do anything in parallell. So the next call to onHandleIntent doesn't happen until you return from the current call to onHandleIntent. Aug 09 15:09:57 however the client can't run a GCM server Aug 09 15:10:00 we'd have to set it up ourselves Aug 09 15:10:02 and host it Aug 09 15:10:13 and charge them $500/month for it Aug 09 15:10:17 unless they're a big client Aug 09 15:10:21 in which case add a 0 Aug 09 15:10:21 for various reasons that won't work Aug 09 15:10:30 they are not able to easily just sign up for new tech... Aug 09 15:10:45 that's what you get when you work with the Iranian government Aug 09 15:11:26 ^^ Aug 09 15:11:40 jcromartie: you get to reinvent GCM Aug 09 15:11:50 Leeds: not Iranian Aug 09 15:11:57 appel1: Ahh. Okay, if due to low mem, Android decides to kill my service, when it does restart my service later, will it replay the same set of calls to handleIntent() as would have been there had it not been killed? I can return START_REDELIVER_INTENT from startService() to have it started with the last intent, but what about those which were never processed, but still were there? Aug 09 15:12:00 North Korean? Aug 09 15:12:14 we could conceivably host a GCM server that polls the client server for instructions Aug 09 15:12:17 estan los cubanos? Aug 09 15:12:20 I would say Syrian, but they're probably a bit busy to be putting together a push app right now Aug 09 15:12:27 since the client can put anything they want on their HTTP server Aug 09 15:13:17 jcromartie: as long as you handle parsing and error handling for them fucking up their server, yes, that'd be doable. Aug 09 15:14:29 I'm trying to get an authToken via AccountManager's getAuthToken() function using a callback, but the callback never executes. Why would that happen? Aug 09 15:17:05 yati: for IntentService you're not supposed to override onStartCommand but instead use setIntentRedelivery http://developer.android.com/reference/android/app/IntentService.html#setIntentRedelivery(boolean) Aug 09 15:17:23 I added only 3 images, and when I run "adb shell dumpsys ..." but I still get Heap Size:14.5 mb! Aug 09 15:18:07 yati: and as it says there, if enabled only the most recent intent is guaranteed to be redelivered Aug 09 15:18:19 Well, if they're 720p... ~3.5MB per image, gets you up at about 11MB. Aug 09 15:18:27 Add your regular app overhead heap. Aug 09 15:19:08 Conclusion: resize to fit or request large heap (if you're really targetting 720p tablets on 3.x and up). Aug 09 15:19:15 HDroid: Image Dimensions: 456x672 Aug 09 15:19:49 How many copies then :P Aug 09 15:20:12 3 imageviews Aug 09 15:20:38 Dunno then. Aug 09 15:20:44 ok, so the secret is: don't apply background shape attributes to fragments.. Aug 09 15:20:45 Not sure if any of that is prereserved memory. Aug 09 15:20:47 gnah Aug 09 15:20:54 i.e. the fragment tag Aug 09 15:20:55 That is not a cool secret! Aug 09 15:21:38 HDroid: indeed and it took me 5 hours to find it!! Aug 09 15:21:46 which i could have spent hacking database query code Aug 09 15:21:51 so not sure it's a win or a loss Aug 09 15:21:57 Haha good point Aug 09 15:23:07 I put 604 imageviews, and run MAT.. and I get this: http://i49.tinypic.com/v6451z.png Aug 09 15:23:19 so i'll wrap my fragments in framelayouts gnah Aug 09 15:23:37 does that mean my app uses only 6 mb? Aug 09 15:25:26 appel1: wow. it is becoming clearer and clearer in my head now :) *salutes your familiarity with the docs* Aug 09 15:26:16 Howdy - Got a general question. I'm doing some research on porting desktop applications to Android smartphones, and I was wondering if anybody had any suggestions for apps to look at that had already been ported from a desktop application rather than a web-based application or any books or websites that cater specifically for porting applications? Aug 09 15:28:41 GnomeKing: vlc, xbmc Aug 09 15:30:53 They are interesting examples, thanks spacepluk Aug 09 15:31:02 you're welcome Aug 09 15:31:13 Curious because they don't really seem to keep much of the interface styles from the desktop applications at all Aug 09 15:32:05 it makes sense if you think about it Aug 09 15:32:17 as they shouldn't Aug 09 15:32:29 don't approach it with a "port" mindset Aug 09 15:32:41 you'll probably end up with garbage if you do :P Aug 09 15:34:17 I've got an activity with a fragment (login form). Clicking the login button, calls back to the activity, which shows a progress dialog as a DialogFragment (not cancelable). If I press HOME and then resume the app, it shows the login fragment again; if I click BACK, it displays the original progress dialog fragment on top of the original login fragment. Any idea what I'm doing wrong? Any Aug 09 15:34:18 good resources (besides the Google documention) for Fragments? Aug 09 15:34:54 *grin* I know that - but I was sort of expecting them to have a similar look and feel to the desktop apps - VLC has very different styling to the desktop application. Aug 09 15:35:55 it's possible they just saw it as an opportunity to go a different (better?) direction? Aug 09 15:36:11 haven't used the app myself Aug 09 15:36:38 Of course - it's a perfect opportunity to go in a better direction - particularly one more suitable to the Android environment. Aug 09 15:36:44 See the winamp app for why you shouldn't really go for a similar look and feel Aug 09 15:37:01 It's horrible Aug 09 15:37:24 and the whole interaction model is different you don't have a keyboard and a mouse Aug 09 15:37:27 Winamp is horrible on the desktop though ;) Aug 09 15:38:02 true :p Aug 09 15:40:38 Perhaps a little context... I'm looking at "porting" a requirements capturing tool called OpenPF. It's based on Eclipse RCP and has a main editing window, surrounded by a set of panels with tools on. I'm looking at ways that we can "port" and improve aspects of the user interface, some of which seems to be trivial (and I think should give a smooth android experience) but I'm looking for examples of similar wo Aug 09 15:40:38 rk or recommendations for or against the sort of thing I'm looking at Aug 09 15:43:09 Hi, a while ago, I saw an alternative to the NDK that shipped with dbus header and eabi. But I can't find it anymore. I have to use dbus, there is no way around it Aug 09 15:54:03 how can I implement a slide effect in my activity? I mean, the user slides the current view to reveal a previously hidden content. Like the Youtube app Aug 09 15:54:34 BlackYue: you mean the menu thing? Aug 09 15:54:58 yes Aug 09 15:55:51 there's probably a library for it somewhere. haven't used any personally Aug 09 15:56:17 https://github.com/korovyansk/android-fb-like-slideout-navigation something like that maybe Aug 09 15:56:28 I'll check it.. thanks Aug 09 15:56:52 android.cyrilmottier.com has 3 articles explaining how to do it Aug 09 15:56:55 it's very easy Aug 09 15:58:27 ooh, nice Aug 09 16:18:04 is there a way to load a resource from a package not your own? Aug 09 16:19:23 hi, if i have a local Service binded in my application, in that service are networking operations done. i want to show a progress dialog in calling activity while the service is doing its work. What is the „best“ way to do this? Aug 09 16:24:53 how can I force a rerun of the media scanner? Aug 09 16:25:23 besides unmounting/remounting the SD card or rebooting? (adb is an option) Aug 09 16:26:07 An_Ony_Moose: i assume you mean in code? Aug 09 16:26:46 There's an app on the emulator which can force a scan Aug 09 16:26:48 Forgot what it's called Aug 09 16:26:56 there's several in the market Aug 09 16:27:17 play store... wtfever :P Aug 09 16:28:03 wongk SimonVT: I'd like an option in Settings or a command that can be run via adb shell. I don't like installing a bunch of apps I only need occasionally and cluttering up my menu Aug 09 16:28:19 wongk: no, I don't mean in code. Sorry I didn't make that clear Aug 09 16:28:35 remember, you're in #android-dev :P Aug 09 16:28:57 If I have a project that includes at the top level in the jni my C/C++ code that has the Java bindings. How can I specify include directories for various includes in that C code and the directories below it? Is there an ANdroid.mk file in each directory or just that top level Aug 09 16:29:14 i don't know about adb, but on the device the only way is to mount and unmount the sd card Aug 09 16:29:31 (or an app) Aug 09 16:29:31 ok then I'll just stick with that option. Thanks! Aug 09 16:32:09 I don't know, look at how one of those apps does it Aug 09 16:32:27 If it's an intent, you should be able to broadcast your own using adb Aug 09 16:32:33 it is an intent Aug 09 16:32:51 There you go Aug 09 16:32:59 you essentially broadcast that the external storage was mounted Aug 09 16:33:15 i didn't know you could do that with adb Aug 09 16:36:04 adb shell am broadcast or something like it Aug 09 16:37:36 PS, RE: cluttering up your menu, use GO launcher :P Aug 09 16:42:32 Good morning all. I've been looking or an example of intent:// class-specific URLs used to redirect from a webpage to a specific android activity. Does anyone have an example of this sort of interaction handy? Aug 09 16:43:28 wongk: doesn't really look much different from samsung's home application Aug 09 16:43:30 wongk: to me Aug 09 16:43:36 hillct: the evernote android sdk has an example of this Aug 09 16:43:45 An_Ony_Moose: it has folders Aug 09 16:44:19 wongk: I take it I can grab that off the evernote developer site? Thanks. Checking Aug 09 16:44:29 it's on github Aug 09 16:44:34 checkout HelloEDAM Aug 09 16:48:02 wongk: looking through it now. Thanks Aug 09 16:50:46 The docs are a little bit light -- but when I get an attribute from LayoutParameters programatically is that value in px or dp? Aug 09 16:50:58 px Aug 09 16:50:59 I defined it as dp in my XML, but I'm not entirely sure. Aug 09 16:51:04 ah, ok. Thanks Aug 09 16:53:38 px Aug 09 16:53:57 i thougt it was inches Aug 09 16:55:36 oh look my nexus 7 just crashed and rebooted :( Aug 09 16:56:21 hmm so did my galaxy nexus Aug 09 16:56:23 canadiancow|work: sounds resoundingly unsexy Aug 09 16:56:24 did i fuck up my app Aug 09 16:56:58 08-09 12:56:46.167: I/Choreographer(31199): Skipped 43 frames! The application may be doing too much work on its main thread. Aug 09 16:56:59 wat Aug 09 16:57:02 im not doing ANYTHING Aug 09 16:57:20 LOL Aug 09 16:57:21 lies Aug 09 16:57:22 wongk: looking at that sample code but not seeing the 'webpage launches activity' interaction. Perhaps I'm overlooking it or not looking in the right place Aug 09 16:57:30 this is a brand new app Aug 09 16:57:34 like im loading a freaking layout Aug 09 16:57:36 canadiancow|work: or something separate bothered choreographer Aug 09 16:57:37 and then launching another activity Aug 09 16:57:38 hillct: the AndroidManifest.xml is key Aug 09 16:58:18 I see the intent filters, but don't see an obviouc candiate Aug 09 16:58:48 the 2nd intent filter Aug 09 16:59:07 that's the activity launched by the browser Aug 09 16:59:34 is there are some instructions/manifest for building grouper/jb for nexus-7 available? Aug 09 16:59:36 Aug 09 16:59:40 where the API key is used as the scheme Aug 09 16:59:51 mysassyscheme://lolwtf Aug 09 16:59:55 any of you come across this before? http://pastebin.com/DES88cui Aug 09 17:00:34 Aug 09 17:02:01 The technique used there leaves the Evernote SDK open to man-in-the-middle attacks as a melicious app could intercept those intents Aug 09 17:02:40 they can't be "intercepted", but any application can listen to them, yes Aug 09 17:03:36 wtf am i doing Aug 09 17:03:45 being sad Aug 09 17:03:47 im getting ridiculous errors Aug 09 17:03:52 well, yes. Th use would be prompted to choose from possibly two or more apps, so if the melicious app was effectively named it could be selected by the user instead Aug 09 17:04:32 wongk: this is the same issue encountered here http://simpleprogrammer.com/2011/05/25/oauth-and-rest-in-android-part-1/ and described in a comment of that pae by Alexander Lucas near the bottom Aug 09 17:06:10 hillct: that's great, but you're limited by the browser Aug 09 17:06:21 you have to play by its rules Aug 09 17:07:02 wongk: will the android browser not attempt to homor a redirect using the intent:// schema? Aug 09 17:07:28 don't know what it will do, never used it Aug 09 17:07:33 nested weights FTW bite me lint! Aug 09 17:07:36 oh shit i was overflowing my activity stack :D Aug 09 17:07:54 overflowing the stack and not even doing anything, impressive Aug 09 17:08:03 how many activities did you have? Aug 09 17:09:08 wongk: well, I'll try it and let you know, but I can't seem to locate and docs of the method within the intent class that will enerate these class speciic URLs referenced in the comment Aug 09 17:09:27 is there api support for creating parameterized google searches? Aug 09 17:09:58 public void onCreate(Bundle b) {Intent i = new Intent(this, this.class); startActivity(i); } Aug 09 17:10:03 ;) Aug 09 17:10:40 freedomcaller: 2 activities Aug 09 17:10:45 but the layout was wrong Aug 09 17:10:55 activity A and B were both loading fragment A Aug 09 17:11:05 O_o never used fragments Aug 09 17:11:06 fragment A was saying "you're not logged in" nad launching actiivty B Aug 09 17:11:07 :) Aug 09 17:11:46 hillct: perhaps http://developer.android.com/reference/android/content/Intent.html#getData() ? Aug 09 17:11:49 so infanite activity launch? Aug 09 17:12:25 hah, i was right, you just used more steps :P Aug 09 17:14:18 wongk: could be. we shall see... Aug 09 17:17:07 wongk: http://developer.android.com/reference/android/content/Intent.html#toUri(int) Aug 09 17:17:47 ahh, i missed it because it returns a string :P Aug 09 17:18:15 so, create an intent referencing the target class,, call toUri, then use the result as the rediect for the web form (in my case oauth2 interaction) Aug 09 17:18:36 Hey there! Aug 09 17:18:39 im curious to know if it works Aug 09 17:18:47 I've got a weird problem. my device shows up when i do adb devices but in eclipse when I click on run console shows that its constantly trying to start adb server and doesn't load my app Aug 09 17:19:02 wongk: will keep you posted Aug 09 17:19:24 Is it possible to prevent tabs from moving up in the action bar on tablets? I always want to have two rows in the action bar, one with action items and below that the tabs. Aug 09 17:19:33 any idea how to fix this Aug 09 17:25:28 can anyone help me out ? Aug 09 17:26:47 nm Aug 09 17:28:45 LVL question: anybody knows why boolean result = mContext.bindService(Intent(ILicensingService.class.getName()), ...) from the LVL, would return false on some generic ICS tablets only o which Google Play is installed ? Aug 09 17:30:39 hello ... I'd like to access a resource string, as a string. basically: String s = findResourceById( R.string.mystring ); ... any way? I thought: TextView tv; tv.setText( R.string.app_name ); String s = (String)tv.getText(); Aug 09 17:30:45 which seems needlessly clunky. Aug 09 17:30:51 I've looked at: http://developer.android.com/guide/topics/resources/accessing-resources.html Aug 09 17:31:28 BrokenCog, getString(int resid) Aug 09 17:31:31 im working on a minSdkVersion="9" app :))))) Aug 09 17:31:36 lol Aug 09 17:31:52 dzan sheeesh ... okay, that was easy. thanks. Aug 09 17:32:10 I need a bit of help with compiling wifi modules :/ Aug 09 17:32:36 canadiancow|work: Why not 10 Aug 09 17:32:48 SimonVT: thats what i was wondering Aug 09 17:32:50 well for what im doing, i dont care about the difference Aug 09 17:32:51 lol Aug 09 17:32:55 but i guess i could make it 10 Aug 09 17:32:59 You might tomorrow Aug 09 17:33:08 and then i'll bump the minsdkversion :P Aug 09 17:33:17 Supporting 9 is more useless than supporting 4 :p Aug 09 17:33:26 just set it to 16 to be safe :) Aug 09 17:34:59 ok 10 Aug 09 17:34:59 fine Aug 09 17:35:00 you win Aug 09 17:35:09 =) Aug 09 17:35:13 Aug 09 17:35:47 set targetSdkVersion to 99 so it will be forward compatible for a long time to come Aug 09 17:36:45 lol Aug 09 17:37:24 Optimized for all future versions of Android Aug 09 17:39:10 Optimized to break on all future etc Aug 09 17:57:14 Can anybody tell me how to open the "path2gc" view that's listed here in mat? http://stackoverflow.com/questions/5855988/memory-leak-during-orientation-change-with-inner-class Aug 09 18:08:38 so, does the average Android app shop implement their own GCM server? it seems really simple Aug 09 18:08:49 I want to use a PHP/MySQL as server for my Android app. Is it feasible to implement a session/GUID in a MySQL database and manage user's data online from an app using e.g. HTTP or HTTPS? Aug 09 18:13:32 luyang: still here ? Aug 09 18:13:38 luyang: I have no idea. You should ask in #php or #mysql Aug 09 18:13:47 i did something like that Aug 09 18:14:01 hey lov I've got a problem that i can't figure out Aug 09 18:14:03 http://pastebin.com/dsLqWnRx Aug 09 18:14:14 You got dev problems I feel bad for you son Aug 09 18:14:20 I've got 99 problems but a dev ain't one Aug 09 18:14:29 when I try to load my settings activity the app crashes with the error in the paste bin. i have no idea what to do Aug 09 18:16:12 devslash: I have no idea. Does your settings activity have a switch? Aug 09 18:16:16 did you screw up configuring it? Aug 09 18:16:20 yes Aug 09 18:16:27 check. Aug 09 18:16:31 it does have a switch Aug 09 18:16:33 why ? Aug 09 18:16:52 at android.widget.Switch.jumpDrawablesToCurrentState(Switch.java:811) Aug 09 18:17:12 There's nothing custom to your particular app in the stacktrace, so it's possible that you screwed up your drawables for the switch. Aug 09 18:17:19 best I can guess Aug 09 18:17:57 is it just me or does the GCM sample code repo contain no code that handles device registration http://code.google.com/p/gcm/ Aug 09 18:18:03 devslash/lov yes I am here Aug 09 18:18:15 devslash what did you do Aug 09 18:19:18 lov: the question is how to manage android sessions and use a simple http server as app backend Aug 09 18:19:23 lov i had the xml with the switch in res/layout-v14 I thought that android uses the right layout automatically depending on the device you are on Aug 09 18:19:44 luyang: it's not really an android specific question; it's a webservice specific question. Aug 09 18:19:55 devslash: I'm sure you did Aug 09 18:19:59 lov: it's not Aug 09 18:20:06 lov is that correct ? Aug 09 18:20:09 and the sample code uses GCMRegistrar.setRegistrationId Aug 09 18:20:14 which does not seem to exist in docs Aug 09 18:20:42 lov it's not about web services it's about interfacing from android to backend servers other than app engine Aug 09 18:22:19 Is there something in Android as the late SOAP or REST search api? Aug 09 18:23:05 devslash: it's correct to put your resources in there Aug 09 18:23:11 devslash: I have NO IDEA why you're getting a stacktrace. Aug 09 18:23:15 I really don't Aug 09 18:23:17 I'm just guessing Aug 09 18:23:24 I just notice that it's NPE on that switch wrt drawables Aug 09 18:23:25 doesn't matter too much i just deleted it Aug 09 18:23:29 is it actually your switch? Who knows! Aug 09 18:24:44 http://vim-adventures.com/ Aug 09 18:24:59 heh Aug 09 18:34:04 man i've got a really strange case. I have a repeating background (xml files that specifies tile:repeat) and it works on everything but 2.3 devices: http://pastebin.com/yyevezAU Aug 09 18:34:12 can anyone see any glaring problems there? Aug 09 18:41:10 yes, the fact that tile="repeat" is broken on 2.3 devices :) Aug 09 18:41:56 well Aug 09 18:42:00 so Aug 09 18:42:04 it's broken *sometimes* Aug 09 18:42:15 bummer Aug 09 18:42:20 a stupid caching bug Aug 09 18:42:31 and easy workaround is to set the tile mode from code Aug 09 18:44:36 Can someone tell me how this guy was able to call getAuthToken() from his Activity? http://emuneee.com/2010/11/android-development-how-to-get-a-user-authentication-token-on-an-android-device/ Aug 09 18:44:54 If I try that I get "java.lang.IllegalStateException: calling this from your main thread can lead to deadlock" Aug 09 18:44:58 Wavesonics: https://github.com/JakeWharton/ActionBarSherlock/blob/master/samples/demos/src/com/actionbarsherlock/sample/demos/Styled.java#L34-44 Aug 09 18:45:56 uni4dfx: yeah, he wrote it in 2010, before that behavior was introduced Aug 09 18:46:17 JakeWharton, ha interesting, thanks! Aug 09 18:46:51 Who says he's calling it from the main thread Aug 09 18:47:34 Can anybody tell me how to open the "path2gc" view that's listed here in mat? http://stackoverflow.com/questions/5855988/memory-leak-during-orientation-change-with-inner-class Aug 09 18:47:54 that's true, in reading the article he doesn't provide context Aug 09 18:47:54 SimonVT well maybe he isn't. I realize the proper way to do it is to use a AccountManagerCallback, which unfortunately doesn't work for me either (it never gets executed) Aug 09 18:48:17 either way it would have been possible to do so in 2010 :P Aug 09 18:48:47 Yeah getAuthToken also throws 3 exceptions now Aug 09 18:49:00 impressive Aug 09 18:49:29 but not the one i'm getting Aug 09 18:51:58 Actually that isn't true. It's the getResult() function that does it, and causes all sorts of trouble Aug 09 18:58:19 wongk ah, but he was running it in the Activity, see "The activity is a reference to the Android activity in which the code is running." :) not that it matters anyway Aug 09 19:02:42 I have a really quick question regarding array lists. Does the .remove method shift indices of everything left to fill the spot? Aug 09 19:03:42 Paulcasals yes Aug 09 19:04:39 thank you Aug 09 19:07:03 Hi! In CF-Root, there are two .img files: recovery.img and cache.img. I think recovery.img flashes the recovery partition, but what about cache.img? What does it do? Aug 09 19:08:14 gkwhc: #android-root Aug 09 19:11:18 wongk: yes ived asked there, no response Aug 09 19:18:58 gkwhc It happens. They're not paid to be tech support, so if they happen to help you out it's their good will, not to mention they probably aren't reading the main channel 24/7. Just wait a bit or try again later. :) Aug 09 19:23:48 When you declare a setContentView(R.layout.main)....where is the R.layout.main file located? What package is it in? I know it's not in android.R....any ideas? Aug 09 19:24:44 it's generated Aug 09 19:24:51 the package is R.layout Aug 09 19:25:30 how do you force android to generate references in it's R.java file? Aug 09 19:25:39 I tried 'clean project' Aug 09 19:25:39 so I get the feeling that some Android folks are building their own GCM implementation while Urban Airship lags behind Aug 09 19:26:18 clean & build will force it to happen Aug 09 19:26:56 GCM? Aug 09 19:27:18 wongk-home: I don't see 'build' in eclipse...I do see clean though Aug 09 19:27:26 Google Cloud Messenger? Aug 09 19:27:27 it looks like it builds automatically Aug 09 19:28:26 yes Aug 09 19:28:30 sam: yeah that Aug 09 19:28:31 anyone had any issues with padding on background images on a nexus 7? Aug 09 19:29:34 john_doe_jr: that's a possibility Aug 09 19:29:45 i believe it's even the default Aug 09 19:42:01 The package is the one you set in your manifest Aug 09 19:42:47 a TableRow is a linearlayout right? Aug 09 19:42:54 yep Aug 09 19:43:10 so why is layout_weight="1" and layout_width="match_parent" on all cells in a row not doing what i'd expect Aug 09 19:43:15 all my cells are textviews that have a background set Aug 09 19:43:19 and the background is not stretching Aug 09 19:45:53 I have a newer android phone. I am reading that the action bar has replaced the options menu. Is there anyway to raise the options menu anyway? The emulator has a menu button which works but the physical phone I have does not have a menu button. Aug 09 19:48:18 deadmund: http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html Aug 09 19:49:20 wongk-home: the only way I can regenerate the R.java file is to open it up in intellij and choose force generating R.java Aug 09 19:49:42 your environment sounds f'd up Aug 09 19:50:02 lov: The app I'm developing does have an options menu (working code and all) but that special 'action overflow button' does not show up when I run it on this android 4.x phone. Aug 09 19:50:44 did you actually read that article? Aug 09 19:51:07 lov: I"m reading on. I see. Thank you. Aug 09 19:51:21 deadbeef Aug 09 19:52:54 i added a textview to my preferences activity screen and when I try to load the screen i get a fatal exception "Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class TextView" Aug 09 19:53:07 hello Aug 09 19:53:31 devslash: i dont think you are supposed to do that Aug 09 19:53:45 then how do i just add a text label ? Aug 09 19:54:03 modify the xml for your preferences Aug 09 19:54:07 i did Aug 09 19:54:13 thats whats causing the fatal error Aug 09 19:54:30 paste your shit somewher Aug 09 19:54:31 e Aug 09 19:54:56 http://pastebin.com/GZnQRaKf Aug 09 19:55:31 your entire shit Aug 09 19:55:34 .... Aug 09 19:55:37 yes, that. Aug 09 19:55:49 devslash: you want to use a Preference if you just want to display text. Aug 09 19:55:56 The preference doesn't need a key and doesn't need to actually do anything. Aug 09 19:56:05 i'm creating a simple drawing app that consist of a main screen with a single button that takes you to the drawing activity. The drawingactivity contains a costum viewclass for all the drawing. Now i want to be able to press my phones back button and go back to the main screen activity and then press the button on the main screen to continue drawing. However when returning to the drawing activity my view class is "restored" Aug 09 19:56:12 So how do i stop this from happening? Aug 09 19:56:16 http://stackoverflow.com/questions/5019834/android-admob-advert-in-preferenceactivity Aug 09 19:56:47 mikedg: huh? I'm not sure what you mean by "restored". Aug 09 19:57:04 er Aug 09 19:57:06 lov: i dont know what i mean either Aug 09 19:57:08 misterPants: ^^ Aug 09 19:57:22 restored as in everything that was drawn on the view is gone Aug 09 19:57:26 .... Aug 09 19:57:26 right Aug 09 19:57:30 because the activity was finished. Aug 09 19:57:33 yes Aug 09 19:57:38 thats the opposite of what most people call restored Aug 09 19:57:48 misterPants: you need to save it, and you need to restore your drawing Aug 09 19:57:48 lov ok i got it thanks Aug 09 19:57:49 yeah honestly Aug 09 19:57:53 misterPants: http://developer.android.com/training/basics/activity-lifecycle/index.html Aug 09 19:57:55 indeed Aug 09 19:57:56 read that Aug 09 19:57:56 thoroughly Aug 09 19:57:59 then come back Aug 09 19:58:11 misterPants: do whatever you would do if the user turned his phone off Aug 09 19:58:12 however i cannot find how to save a view Aug 09 19:58:13 and turned it back on Aug 09 19:58:22 only how to save variables and etc Aug 09 19:58:22 misterPants: dont be fucking retarded Aug 09 19:58:25 you save an image Aug 09 19:58:26 not a view Aug 09 19:58:34 save all your variables then Aug 09 19:58:39 well.. how should i know that :p Aug 09 19:58:52 if I wasn't on VNC I would quit in disgust Aug 09 19:59:03 misterPants: your view subclass needs to have methods to assist in saving/restoring state. Aug 09 19:59:08 because i found that it was suppose to save the bitmap since it is parsable however i've not be able to do so Aug 09 19:59:09 this seems like it would be self-evident Aug 09 19:59:11 I dont know how you can be a developer and not have an idea about images Aug 09 19:59:36 disgust! Aug 09 19:59:38 im going away Aug 09 19:59:40 pretend I quit Aug 09 19:59:50 parcelable is not for saving, serializable is Aug 09 19:59:54 ... is it someone who tried to serialize a bitmap... again? Aug 09 20:00:12 You should know that when exiting an app by pressing back, people don't expect state to be saved Aug 09 20:00:36 haha ofcourse i knew that i could save it to an image it just seemed... ineffective compared to beeing able to save variables to a bundle Aug 09 20:00:58 you won't be using a bundle in this case Aug 09 20:01:07 ok Aug 09 20:02:17 well this was actually really helpful, thanks! :) Aug 09 20:03:01 misterPants: serialization algorithms suck on images Aug 09 20:05:03 but while we're at it, what's good practice for saving views as images in terms of filepath. Is there some cool applocal directory i should save them in? Just saving it on the phone's SD-card sound like a crappy thing to do. Aug 09 20:05:12 app-local* Aug 09 20:05:21 misterPants: just don't save in root of sdcard Aug 09 20:05:37 though for app-specific storage, isn't there /sdcard/Android// ? Aug 09 20:05:40 getexternalfilesdir Aug 09 20:07:01 lets say i don't want the user to be able to accidentally delete some view by "cleaning" their SD-card Aug 09 20:07:17 Then you don't want to save it on the sdk card Aug 09 20:07:21 -k Aug 09 20:08:03 misterPants: http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir(java.lang.String) Aug 09 20:08:17 you can save it to internal memory, as long as your not saving like 100 images Aug 09 20:08:28 If you're concerned about the user destroying the whole SD card, you can always use getFilesDir instead of getExternalFilesDir Aug 09 20:08:37 just note that app private storage is usually much more limited in space than the SD card. Aug 09 20:09:16 lov: thanks for the link :) Aug 09 20:09:31 that was basically what i was asking for Aug 09 20:09:31 o Aug 09 20:10:10 well not basically... exactly Aug 09 20:14:12 lov i added an on click to my preference but it never gets triggereed Aug 09 20:16:04 is there a different way to implement an on click ? Aug 09 20:18:13 devslash, did you register a listener? Aug 09 20:18:48 i added implements OnPreferenceClickListener to the class declaration and overrode public boolean onPreferenceClick(Preference preference) { Aug 09 20:19:31 is that supposed to work ? Aug 09 20:19:56 ofc Aug 09 20:21:13 >_< Aug 09 20:21:15 to WHICH class Aug 09 20:21:19 to your entire preferencesactivity? Aug 09 20:21:26 yea Aug 09 20:21:39 did you actually register the class with that preference as a listener? Aug 09 20:21:49 class my class implements OnPreferenceClickListener \ Aug 09 20:22:07 that's not what I asked. Aug 09 20:22:28 i'm using abs and the compatibility lib, one of my activities is a viewpager, all of the activities have an actionbar, for somereason the actionbar in the viewpager activity is slightly lighter colored.. any idea what causes this? Aug 09 20:22:30 then what are you asking Aug 09 20:22:32 did you find the preferences on whom you want to click, and call myPreference.setOnPreferenceClickListener(this); Aug 09 20:22:35 gn8 & gl lov ;) Aug 09 20:22:48 you have merely implemented your activity as a listener Aug 09 20:22:56 you have not actually registered it to be informed of anything Aug 09 20:24:05 anyone got a few minutes to help a scrub with app inventor? Aug 09 20:24:19 ok Aug 09 20:24:54 trying to create a basic login app to a database, i built the visual side (buttons, and text boxes) now im looking to learn how to build the database, and allow / confirm logins Aug 09 20:25:05 but i cant seem to find any information on something like that as far as tutorials Aug 09 20:25:14 is app inventor even supported anymore? Aug 09 20:25:20 mit took it over Aug 09 20:25:26 beta.appinventor.mit.edu Aug 09 20:25:47 It seems to me that all the methods of a service class should be static. Since all the instances of the service should have the exact same methods. Thus, they should then be called statically. Aug 09 20:26:35 YoungGUN: well, I don't know how to tell you how to do it with app inventor. Aug 09 20:27:17 I want to develop a webcam security system. When the alarm goes off, how should I realize that? Typical client server architecture or are their fitting alternative which serves the battery a better solution? Aug 09 20:27:21 lov, well what would you suggest the best way for a scrub to start learning? Aug 09 20:27:31 outside of a easy visual way Aug 09 20:27:50 YoungGUN: if you're willing to learn java, http://developer.android.com/training/index.html Aug 09 20:28:07 platzhirsch: It depends on what your architecture is supposed to look like. Aug 09 20:28:08 platzhirsch: I've not used it, but http://developer.android.com/guide/google/gcm/index.html is probably what you want Aug 09 20:28:18 platzhirsch: do you want to use android phones as your webcams? or do you want your security system to inform the phone? Aug 09 20:28:21 if it's the latter, use GCM. Aug 09 20:28:31 or even SMS if you're frequently in areas w/o data Aug 09 20:28:36 lov: the latter one Aug 09 20:28:57 ah lovely, thanks for pointing out Aug 09 20:29:05 You definitely don't want a typical client/server architecture, because you'll spend all day polling for nothing. Aug 09 20:29:16 well, you don't want it to be constantly polling, anyway. Aug 09 20:29:25 When you get your GCM message, your app can spin up, query more info from the server, etc. Aug 09 20:30:22 lov: yeah that's what I was thinking too Aug 09 20:38:38 good day all Aug 09 20:39:14 can anybody help me with 1 question? Aug 09 20:40:25 how i can save picture from the web in any folder? Aug 09 20:42:14 use the url to get it over http Aug 09 20:42:32 Anyone familiar with writing Android plugins for PhoneGap? Aug 09 20:42:51 trying to figure out if anyone has heard of this.ctx being deprecated Aug 09 20:44:01 wongk thx for answer Aug 09 20:44:48 cbarrett1: you won't find many phonegap users here Aug 09 20:50:07 wongk: yeah, but over in #phonegap they recommended here :) Aug 09 20:50:36 does anyone have a GOOD textview that resizes its contents to be as large as possible without ellipsizing/overflowing Aug 09 20:50:45 I don't know why; it's a phonegap specific question. Aug 09 20:52:31 why do not working http://pastebin.com/c330NWDH this code? Aug 09 20:52:54 dont set wallpaper from url... Aug 09 20:53:41 zznob: any errors? Aug 09 20:54:01 dlaroche no Aug 09 20:54:17 is ParseSite an AsyncTask? Aug 09 20:54:19 simple not change wallpaper Aug 09 20:54:35 SimonVT yes Aug 09 20:54:45 You might want to wait for it to finish executing Aug 09 20:54:58 textview that resizes the text to fit...come on guys :( Aug 09 20:55:01 It has callbacks for that Aug 09 20:55:08 Google it, canadiancow|work Aug 09 20:55:09 Sheesh Aug 09 20:55:10 i have one Aug 09 20:55:12 but its not good enough Aug 09 20:55:15 and its the best i could find Aug 09 20:55:16 :P Aug 09 20:55:28 zznob: how are you getting "file" for decodeFile? Aug 09 20:55:35 So make a better one :P Aug 09 20:55:38 And opensource it Aug 09 20:55:50 i need it in an hour Aug 09 20:56:37 hi Aug 09 21:01:44 hi Aug 09 21:02:58 hi Aug 09 21:05:30 hi Aug 09 21:07:02 hi Aug 09 21:27:21 An error occurred while collecting items to be installed Aug 09 21:27:21 session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Aug 09 21:27:22 Comparison method violates its general contract! Aug 09 21:27:22 Comparison method violates its general contract! Aug 09 21:27:29 i keep getting this error trying to add the adt plugin to eclipse Aug 09 21:27:31 any thoughts? Aug 09 21:34:56 any here? Aug 09 21:41:12 anyone avaliable to help with eclipse? Aug 09 21:41:53 may be i can help Aug 09 21:42:36 An error occurred while collecting items to be installed Aug 09 21:42:37 session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Aug 09 21:42:37 Multiple problems occurred while downloading. Aug 09 21:42:37 Unable to write to repository: file:/C:/Users/Justin/Desktop/eclipse/eclipse/. Aug 09 21:42:37 Failed to create directory C:\Users\Justin\Desktop\eclipse\eclipse\plugins\org.eclipse.cdt.core.win32_5.2.0.201102110609. Aug 09 21:42:37 Unable to write to repository: file:/C:/Users/Justin/Desktop/eclipse/eclipse/. Aug 09 21:42:38 Failed to create directory C:\Users\Justin\Desktop\eclipse\eclipse\plugins\org.eclipse.cdt.core.win32_5.2.0.201102110609. Aug 09 21:42:41 YoungGUN: stop it! Aug 09 21:42:43 i keep getting this error while trying to install adt plugin Aug 09 21:43:05 read the topic, would ya - pastebin exists for a reason Aug 09 21:43:39 nothing in the topic talks about pastebin, but ill use it for anything over 3 lines i guess bankai, thanks Aug 09 21:43:48 windows 7? Aug 09 21:43:57 yessir zznob Aug 09 21:44:18 may be disable UAC? Aug 09 21:44:41 its been disabled :/ Aug 09 21:45:46 hmmm try to make dir in C:\Users\Justin\Desktop\eclipse\eclipse\plugins\ manual Aug 09 21:46:22 or try start eclipse as administrator Aug 09 21:49:45 okay trying now Aug 09 21:51:20 okay ran as administrator Aug 09 21:51:22 now ive got a new error Aug 09 21:52:09 http://pastebin.com/xgq0HrKm Aug 09 21:54:20 YoungGUN look this http://stackoverflow.com/questions/9544071/an-error-occurred-while-collecting-items-to-be-installed-access-is-denied Aug 09 21:57:41 thanks zznob working on that now Aug 09 21:58:19 YoungGUN you are welcome ;) Aug 09 22:01:56 http://www.liveleak.com/view?i=510_1344196881 Aug 09 22:03:15 lol Aug 09 22:03:20 seriously? this is hillarious Aug 09 22:05:48 you have to watch the entire thing :D Aug 09 22:08:42 Napalm: that's brilliant, sounds like dara obrien, an irish comedian Aug 09 22:11:46 haha Aug 09 22:11:49 that is not dara o brien Aug 09 22:11:54 im irish Aug 09 22:12:21 it's a guy who is in a cheap fake documentary/comedy called The Hardy Bucks... Aug 09 22:12:28 lol ah, I'm not (obviously) :) it was the way he got high pitched excited at times that made me think it was him Aug 09 22:12:37 haha Aug 09 22:13:43 stephen spielberg and tim henman...haha :D Aug 09 22:17:30 my app is nowhere to be found in the application list on my device Aug 09 22:17:32 but it's installed Aug 09 22:17:33 how do i stop my games zoom in / zoom out from running if the view is being updated? Aug 09 22:17:35 the icon is just missing Aug 09 22:17:48 the zoom operation does not share any code with the updating code Aug 09 22:18:23 right now im just setting a variable during update and then clearing it and busy waiting in the zoom operation... kinda bad Aug 09 22:21:22 jcromartie: could you pastebin your AndroidManifest.xml? that seems like the most likely candidate. Aug 09 22:21:53 uninstalled from Settings and reinstalled Aug 09 22:21:54 it's fine now Aug 09 22:21:58 ah, alright Aug 09 22:22:10 there are reasons android will prevent an app from appearing Aug 09 22:22:22 I'm an Android n00b, so I didn't think to look in Settings Aug 09 22:22:22 in the app list etc Aug 09 22:22:37 would adding a sychronized public do nothing method that both the update code and the zoom code call work? Aug 09 22:22:40 i cant really recall what/why...but there are some reasons... Aug 09 22:23:19 no that wont work :/ Aug 09 22:23:24 l440r, you don't need a NOP sync method. Aug 09 22:23:26 doc_savage: yea, im from the UK, i know who he is :) Aug 09 22:23:30 I440r: you really, really, need to learn java. You should use wait() and notify()/notifyAll() Aug 09 22:23:33 dammit how do i stall task A till task B completes? Aug 09 22:23:38 use a lock maybe? Aug 09 22:24:00 http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/locks/Lock.html Aug 09 22:24:00 or any of various other concurrency features intended to do exactly this sort of thing Aug 09 22:24:32 start here: http://docs.oracle.com/javase/tutorial/essential/concurrency/ ... you'll get sorted within 14 minutes of reading this. Aug 09 22:27:40 ive read that documentation and none of it gave me a clue about how to achieve this. their example of how to have a c++ and a c-- in a separate method does not fit my use case because my c++ and my c-- methods are in DIFFERENT CLASSES! Aug 09 22:28:10 I440r: I just told you how to do it. Do you know what wait() and notify() do? Aug 09 22:28:55 I440r: you can lock across classes Aug 09 22:28:58 ryanm i understand multi tasking. i know what a mutex is and i know what a critical section is... Aug 09 22:29:30 jcromartie: my map zoom operation is not performed within my map drawing class Aug 09 22:29:37 personally id stay away from wait and notify...if you can. Aug 09 22:29:38 and the zoom can interfear with the draw Aug 09 22:30:29 l440r: you need to firstly identify the two chunks of code that you do not want to run at the same time...then you need to use some form of locking mechanism to prevent this. i suggest using Lock. Aug 09 22:30:40 can your AsyncTask hold a reference to a next task to execute? Aug 09 22:30:44 boing: they are in different classes Aug 09 22:30:52 or are they created and started form different places? Aug 09 22:30:52 yeah Aug 09 22:30:54 ok Aug 09 22:31:03 l4404, that doesnt matter. share your instance of Lock. Aug 09 22:31:06 then I would just us a shared lock Aug 09 22:33:34 just find out some way to share the lock...i dont know your code so cannot suggest this. it's very easily possible. it might be a bit more difficult to do it elegantly, but it's very easy to do it in a quick fashion. Aug 09 22:34:32 well i already had a bool lock that i set and cleared and busy waited on. Aug 09 22:34:37 private final Lock lock = new ReentrantLock(); myClass.setLock(lock); myOtherClass.setLock(lock); // horrible way to do it, but will work Aug 09 22:34:46 so i just change the bool to a Lock etc etc Aug 09 22:35:07 sorry i wasnt following so i dont know what you were doing with bool. is your code long? put it on pastebin for me if u want. Aug 09 22:35:44 can't use a synchronized(var) block ? (i'm new to java, C coder mainly) Aug 09 22:35:45 no need now, and yes its LONG lol - i get how to do this. ty Aug 09 22:36:08 i looked for a way to syncrhonize variables. cant see any way to do that Aug 09 22:36:13 ok, i read back. your using a boolean and think it's a bit ugly...probably is, but it works :) ... Aug 09 22:36:30 it did work but busy wait == bad :) Aug 09 22:36:45 do you need the zoom to stop when update starts (assuming that's 2 differents thread) ? or just don't start when update is already running and vice-versa ? Aug 09 22:36:51 you could use Lock as i have suggested, or synchronised keyword Aug 09 22:37:24 anybody know roughly how long it takes from publishing an app for it to appear on the store? Aug 09 22:38:32 was looking at synchronized. tried to apply it to a variable was told could not do so. Aug 09 22:38:36 by my ide :) Aug 09 22:38:43 so either it couldnt be done or i was doing it wrong Aug 09 22:38:56 it can be done Aug 09 22:39:15 has to be an object tho Aug 09 22:39:19 not a primitive Aug 09 22:39:49 so not an int? Aug 09 22:39:54 is wht u mean Aug 09 22:39:58 Integer* Aug 09 22:39:59 yes Aug 09 22:40:01 not int Aug 09 22:40:10 you can even just use "Object" as a lock Aug 09 22:40:29 why do you need to lock btw ? Aug 09 22:40:56 unsigned_java: to prevent two chunks of code in two different classes executing at the same time. Aug 09 22:41:07 because when i adjust the zoom level during a display update the result is a bit screwy for 1 second Aug 09 22:41:40 im assuming the call to lock() isnt a busy wait internally :) Aug 09 22:41:58 on Lock? Aug 09 22:42:03 ya Aug 09 22:42:25 well no it's not Aug 09 22:42:39 well i assumed not but ive been wrong about those thigns before :) Aug 09 22:42:40 under the hood, it's just using synchronised, etc... Aug 09 22:43:13 ohhh, you were doing a while(myBoolean != true){ ... } Aug 09 22:43:20 i was :) Aug 09 22:43:21 and want to avoid that Aug 09 22:43:30 it was a kludge fix till i got the right way Aug 09 22:43:56 well yeah that's not great. you could put in a Thread.sleep(150); Aug 09 22:44:10 so it sleeps before checking again Aug 09 22:44:14 yea and that would still be wrong :) Aug 09 22:44:18 yup Aug 09 22:44:25 not nice. Aug 09 22:44:31 but less...CPU intensive probly Aug 09 22:44:39 can i have a look ? Aug 09 22:44:40 use a lock Aug 09 22:44:50 i avoid that sort of thing the way i avoid software timers... i use em till i get round to doing it right :) Aug 09 22:45:04 Lock myLock = new Reentrantlock() Aug 09 22:47:02 I440r: these are really better questions for #java, by the way Aug 09 22:47:49 ryanm except the people in #java are worse than the people in #debian when it comes to nubs Aug 09 22:51:06 join #mp3 Aug 09 22:51:39 oops Aug 09 22:54:36 Is there a "google search api"? If not what can you use in an Android app? Aug 09 22:55:42 it looks that it can happen, that the recovery key combination isn t working. so this has nothing to do with the user. a guy called system-something offendet me becouse this: Aug 09 22:55:48 http://androidforums.com/lg-mytouch-all-things-root/498043-nandroid-download.html Aug 09 22:55:55 http://androidforums.com/mytouch-all-things-root/480789-desperate-help-needed-accidentally-bricked-my-phone-cant-get-recovery-mode.html Aug 09 22:56:15 i hope this idiot is reading back-logs. for me this guy is an ashole Aug 09 22:56:17 end of msg Aug 09 22:58:05 dr_traktor: https://developers.google.com/custom-search/v1/overview (second result on google for "google search api") Aug 09 22:58:19 hello all Aug 09 22:58:32 will an ICS kernel boot JB without any modificaitons? Aug 09 22:58:33 ryanm, i appreciate it Aug 09 22:58:48 or are there bootclasspaths to change? Aug 09 22:59:34 ryanm, altought its not free and i think you can only use it in web applications Aug 09 22:59:37 jhonka232: #android-root for that question Aug 09 22:59:42 oh thx Aug 09 22:59:43 ok, to solve the problem. question: what is the to do, if the phone isn t loading in recovermode with the correct key-combination? Aug 09 23:00:44 rhpi: this really isn't the right channel for that, you could try asking in #android, or in #android-root if it's running a custom ROM Aug 09 23:01:12 nope atm it seems running the stock rom Aug 09 23:01:14 but thx Aug 09 23:01:56 rhpi: can you boot the device at all? if you can get an ADB connection, adb reboot recovery Aug 09 23:03:03 ryanm: yeap, its working normal Aug 09 23:03:16 the only thing what is working seems this recovery mode Aug 09 23:03:29 *isn t Aug 09 23:04:22 if you have the SDK installed, boot the device normally, then connect it via USB and run "adb reboot recovery" on the command line Aug 09 23:05:54 thank you run, but apologize i am bloody new to all this. i don t know if sdk is installed Aug 09 23:06:01 Can anyone tell me where can I find and example of a lazy listview with sections? Aug 09 23:06:39 ryanm i mean. sorry Aug 09 23:06:43 rhpi: have a look at http://developer.android.com/sdk/installing/index.html Aug 09 23:08:33 thank you. but i would prefer to make somehow i complete backup of the phone bevor i try something. therefore i need clear noob-compatibe instructions:) Aug 09 23:08:51 while installing adt pluging for eclipse, i keep having it restart at the same file trying to download/fetch / install it over and over Aug 09 23:09:28 i want to have a backup for recovery. or flash or whatever this is called under android Aug 09 23:12:17 rhpi: Are you running ICS or higher? Aug 09 23:12:50 well, unfortunately, you're still going to need to install the SDK either way, I suppose. Aug 09 23:12:53 nope, android 2.3.4 is on that phone Aug 09 23:13:12 surfideas: Can anyone tell me where can I find and example of a lazy listview with sections? Aug 09 23:13:46 unfortunately, Gingerbread doesn't have a built-in backup solution on stock that I know of, but you might have better luck in #android Aug 09 23:14:02 * doc_savage wonders if surfideas is stuck in an infinite loop Aug 09 23:14:35 Nobody can help me? Aug 09 23:15:08 surfideas: I don't know what you mean by the question. Aug 09 23:16:12 Implement lazy listviews with sections Aug 09 23:16:23 can anything bad happens to the phone, if i install that sdk and follow you advice, ryanm? Aug 09 23:16:31 restating the question verbatim does not make it clearer Aug 09 23:17:07 brick or something? as long as i have no backup, i am a little bit woried Aug 09 23:17:17 rhpi: I misunderstood what you wanted to do. I don't think you can easily do what you want to, though again, #android may know better than me. Aug 09 23:17:39 ok, thank you ryanm Aug 09 23:21:16 Who is the big android guru here? Aug 09 23:23:15 we're all ios gurus Aug 09 23:23:24 i think i few guys do some android Aug 09 23:23:43 JakeWharton: congrats on landing starbucks :P Aug 09 23:23:51 that's big time Aug 09 23:23:57 thanks, it was all me Aug 09 23:24:01 i know it was Aug 09 23:24:06 haha Aug 09 23:25:54 wongk-home: speak for yourself, I do Windows Phone dev Aug 09 23:25:59 I also prefer ios, but have now a android project in hands Aug 09 23:26:35 But nobody can help with: Where can I find and example of a lazy listview with sections? Aug 09 23:26:38 ryanm: what's that? Aug 09 23:26:41 ;) Aug 09 23:27:30 landing starbucks? tell me what u mean? Aug 09 23:27:43 http://www.nytimes.com/2012/08/08/technology/starbucks-and-square-to-team-up.html?_r=2&hpw Aug 09 23:28:42 damn, i didn't even know square was only 2 years old Aug 09 23:29:14 :D Aug 09 23:29:16 I seem to recall when they started Aug 09 23:29:24 iOS only Aug 09 23:29:31 congrats Jake... Aug 09 23:29:32 false Aug 09 23:29:34 share the wealth ;) Aug 09 23:29:48 Square's client launched on both iOS and Android on the same day Aug 09 23:29:49 heh Aug 09 23:30:18 JakeWharton: hmm? Haven't seen it on android back then Aug 09 23:30:32 OTOH, I was outside of marketing's target Aug 09 23:30:47 As far as I am concerned, square might just as well not exist Aug 09 23:31:09 (unless they cause others to pick it up) Aug 09 23:32:11 So many android gurus e none can help, where is the sentiment knowledge sharing? Aug 09 23:32:42 surfideas: how many levels deep is your list? Aug 09 23:32:51 surfideas: your question is far too specific. look up lazy loading and then look up grouped list views Aug 09 23:32:54 and then you combine the two Aug 09 23:33:04 3 sections Aug 09 23:33:22 3 levels or 3 sections with 2 levels? Aug 09 23:33:38 inception :| Aug 09 23:33:47 heh Aug 09 23:33:53 Now i am using https://github.com/thest1/LazyList Aug 09 23:33:58 get out of my dreams! Aug 09 23:34:07 But it hasnt header sections Aug 09 23:34:22 * Jug6ernaut is pretty sure recommend that a few days ago hehe Aug 09 23:34:32 wongk-home how do u know its ur dream we in? Aug 09 23:34:41 ExpandableListView has sections, but i can't tell you how to make it load lazily Aug 09 23:34:53 Jug6ernaut: touche Aug 09 23:35:04 lol Aug 09 23:35:12 * Jug6ernaut made his own expandablelistview Aug 09 23:35:15 not a very good one Aug 09 23:35:17 but it works hehe Aug 09 23:36:26 I dont need expandable sections Aug 09 23:36:49 Just sections with headers Aug 09 23:37:04 then just use ListViews and style your headers differently Aug 09 23:37:13 In conjuction with lazy loading of images Aug 09 23:37:55 ysolazy? Aug 09 23:39:56 Whats that? Aug 09 23:41:39 y so lazy? Aug 09 23:45:49 is there a way to dismiss an AlertDialog without having to new up a DialogInterface.OnclickListener and override onClick, etc? Aug 09 23:46:00 i mean if you just don't add anything, would it dismiss? Aug 09 23:46:06 before you answer that, let me try it out. :) Aug 10 00:14:59 I have a viewpager and a scrollview (containing a fragment) in a view. If I explicitly set layout_width to say, 400dp/600dp respectively, it looks fine. If I set the layout_widths to 0dp and do layout_weights to 1,2, the scrollview is *tiny* (maybe ~10dp), what might I be doing wrong? Aug 10 00:15:12 (the scrollview has fillViewPort=true) Aug 10 00:24:58 wabz: the property is fillViewport, not fillViewPort. that may be the issue Aug 10 00:28:51 ryanm: I just typed it incorrectly here :( Aug 10 00:33:54 why do devs keep making tower defence games? Aug 10 00:33:58 we dont have enough? Aug 10 00:34:16 grids are cool Aug 10 00:34:19 * doc_savage stops coding Aug 10 00:34:40 xorgate maybe im the only one who dont enjoy them Aug 10 00:38:34 I'm enjoying radiant defense at the moment... pretty much the same game as all the others, but well-done Aug 10 00:39:53 JakeWharton, there? Aug 10 00:40:02 no, but i'm over here Aug 10 00:40:09 may have found a bug, w\ ABS Aug 10 00:40:17 want to run it by u b4 i submit it though :P Aug 10 00:40:20 see if its just me Aug 10 00:40:28 wish I had a nickel for every time somebody said that :) Aug 10 00:40:32 haha Aug 10 00:40:38 Leeds, right, but do we need 10k of them? Aug 10 00:40:49 paste binning... Aug 10 00:40:50 better than fart apps... Aug 10 00:40:56 touche Aug 10 00:41:02 or soundboards... Aug 10 00:41:06 we do have that over iPhone Aug 10 00:41:17 idk how soundboards are even legal lol Aug 10 00:41:31 y doesnt ea get mad at them :\ Aug 10 00:44:50 JakeWharton, http://pastebin.com/R32ZTd56 Aug 10 00:45:11 on what APIs Aug 10 00:45:20 Android 4.1, ABS 4.1 Aug 10 00:45:28 that's the native action bar, native behavior Aug 10 00:45:44 oh Aug 10 00:45:45 ABS does almost nothing on API 14+ Aug 10 00:45:49 h/o Aug 10 00:45:54 Android 2.1, ABS 4.1 Aug 10 00:45:57 JakeWharton, saw a story on the news about Square yesterday. Looks neat :) Aug 10 00:45:57 srry Aug 10 00:46:10 had a different AVD up :P Aug 10 00:46:32 Wavesonics: what happens on API 14+? Aug 10 00:46:38 checking... Aug 10 00:46:40 themirror: yep, a lot of fun, but a lot of work ahead Aug 10 00:47:08 Yeah gl Aug 10 00:47:54 loading the AVD ... Aug 10 00:50:26 JakeWharton, Android 4.1 does NOT exhibit the behavior Aug 10 00:50:38 I wonder if 4.0 does Aug 10 00:51:14 checking... Aug 10 00:54:31 had to make a new AVD, v slow. Wish Intel would release more x86 images at different API levels Aug 10 00:58:45 JakeWharton, 4.0 DOES exhibit the behavor Aug 10 00:59:06 so that's why you see it pre-4.0 with ABS then Aug 10 00:59:17 since its sources are based on Android 4.0's code Aug 10 00:59:39 got ya Aug 10 01:00:21 well the work around is easy enough for now Aug 10 01:05:09 Wavesonics: i was getting the same error actually, but even on pre 4.0 Aug 10 01:08:25 ya, you'll see it on everything except 4.1 Aug 10 01:08:53 JakeWharton, does ABS use the native impl on 4.0? Aug 10 01:08:59 yes Aug 10 01:09:05 ah Aug 10 01:09:23 is there are some instructions/manifest available for building grouper/jb for nexus-7? Aug 10 01:09:37 btw, thx for the awesome lib. When i got to my new company it was the first thing I added to their project lol Aug 10 01:10:47 haha nice Aug 10 01:21:44 Wavesonics: oh i tested it a couple of weeks back and seemed to be getting it on 4.1 too, must have been using it wrong coz no error now :) Aug 10 01:46:00 Is there any Android designers in here or anybody that has experience in that area? What software do you use to design with? Photoshop, Illustrator, Inkscape? Aug 10 01:46:27 our designers use Photoshop/Illustrator/Firework Aug 10 01:46:52 romainguy: I take it they use mainly vector graphics? Aug 10 01:46:57 Microsoft Paint! Aug 10 01:47:09 depends Aug 10 01:47:11 they also use Blender Aug 10 01:47:17 (for app icons for instance) Aug 10 01:47:22 I see Aug 10 01:48:10 okay. I'm familiar with Photoshop, and a little Illustrator. Just trying to learn the design concepts and tricks so I can hopefully handle most of it on my own. Aug 10 01:48:34 Outsourcing sucks when your broke :) Aug 10 01:48:40 Photoshop is enough Aug 10 01:48:45 that's what I personally use Aug 10 01:48:45 thanks Aug 10 01:53:05 Anyone have a link for a tutorial on how to give an image multiple states? like longclick or hover type of thing. I'm not sure if I'm using the right terms. Hope someone will understand. Aug 10 01:53:51 EGamerHDK: this http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList ? Aug 10 01:54:03 Danke Aug 10 01:54:13 http://www.gersic.com/blog.php?id=56 Aug 10 01:54:57 ^EGamerHDK Aug 10 01:55:17 hi Aug 10 01:56:32 How can I animate the vertical scrolling of a ListVIew step-by-step with setSelectionFromTop() ? Aug 10 01:56:59 define animate Aug 10 01:57:40 define animate ? what does it means plz ? Aug 10 01:58:09 what kind of animation are you wanting? Aug 10 01:58:37 dlaroche: just a simple linear animation Aug 10 01:59:00 dlaroche: a translate animation soory :) Aug 10 02:00:31 firstdeveloper: this might help or point you in the right direction Aug 10 02:00:32 http://stackoverflow.com/questions/6880720/scrollbar-in-a-listview-customizing-it Aug 10 02:02:05 dlaroche: sorry, i haven't well explain what i want to do, i don't want to do stuff with the scrollBar :) Aug 10 02:03:16 dlaroche: I have a ListView containing Items. Each Item = 1 view + a part of the next view. and I want the listview to scrollBy one 1 item at a time Aug 10 02:04:17 firstdeveloper: that is more involved. I don't think you are going to find anyone in here to give you step-by-step instructions on how to perform this Aug 10 02:05:14 dlaroche: ha ok thanks anyway Aug 10 02:23:18 dlaroche: I search everywhere but I didn't find informations I need. Do you have any quick idea of how I could do this, or where to get info ? Thanks Aug 10 02:32:51 Hey all, I've got a bunch of activities which start and return values among themselves. What's the best way to let someone else put them into their app as components that doesn't involve me giving away source? To make them work as a jar, I had to remove all references to R resources and replace them with a Map which is built from a passed-in R class using reflection at runtime, and have empty extensions of those classes in th Aug 10 02:32:52 e project using them. It seems sketchy, anyone know of a better way? Aug 10 02:34:30 I have a ListView containing Items. Each Item = 1 view + a part of the next view. and I want the listview to scrollBy one 1 item at a time. any idea ? Aug 10 02:40:55 firstdeveloper: Sorry dude, I have no clue. Maybe look at the code for some project that load lists a few items at a time? It seems similar Aug 10 02:50:22 krang: ok thanks ;-) **** ENDING LOGGING AT Fri Aug 10 02:59:58 2012