**** BEGIN LOGGING AT Thu Jul 05 02:59:58 2012 Jul 05 03:00:07 I could put linux on my laptop Jul 05 03:00:16 but I probably won't do that either Jul 05 03:00:24 t0mless: 4.0.3 Jul 05 03:01:07 holy hell http://www.youtube.com/watch?v=h8ePUYp6HPU&feature=player_detailpage#t=235s Jul 05 03:01:12 hopefully this x86 will be much faster Jul 05 03:01:18 *hopefully* Jul 05 03:01:59 wabz: CANT. WAIT. for my nexus 7 Jul 05 03:02:14 i think the best android tablets are yet to come Jul 05 03:02:21 i suspect real high quaity ones near the end of the year Jul 05 03:04:33 i think i got it =) Jul 05 03:09:41 ok got it working with x86 ….*much* better Jul 05 03:10:56 i haven't done anything but at least i feel somewhat accomplished for getting that working on this mac Jul 05 03:16:46 omg Jul 05 03:16:56 x86 image with gpu acceleration is sooo fast Jul 05 03:17:00 its a world of a difference Jul 05 03:17:03 butter smooth Jul 05 03:17:03 Technodrome: Yep :) Jul 05 03:17:18 feels amazing Jul 05 03:17:22 and i haven't even done anything Jul 05 03:17:28 The Nexus 7 is a great tablet Jul 05 03:17:41 yeah, seems like the best to come out yet Jul 05 03:17:43 higher dpi screen Jul 05 03:18:19 I feel like a drug addict going through widthdraw waiting for my 7.. Jul 05 03:18:23 dunno y Jul 05 03:18:50 Quick question, can you have a notification not have a PendingIntent? Jul 05 03:18:59 Like, it just goes away when pressed? Jul 05 03:19:06 penguin: You cant have with draw if you havent had it. :) Jul 05 03:19:27 X-suriV: its Cyclic Jul 05 03:19:29 >_>; Jul 05 03:20:14 will one be able to sideload apps onto the 7 through USB access? Jul 05 03:20:21 yes Jul 05 03:20:33 you can sideload onto pretty much everything with usb access, cant you? Jul 05 03:20:41 canadiancow: depends on the device Jul 05 03:20:49 AT&T blocked sideloading for awhile Jul 05 03:20:52 ive never seen one that didnt support adb Jul 05 03:21:28 i have no clue how people used the old arm emulator with no gpu emulation Jul 05 03:21:45 Technodrome: the older images werent that bad to use Jul 05 03:22:02 4.1 with no gpu emulation and no x86 is slow Jul 05 03:22:05 then again, I used them on an i5 and now i7 box Jul 05 03:22:05 super slow on this machine Jul 05 03:22:29 i've been wanting to buy the macbok retina but holding off until everything is owrked out Jul 05 03:22:32 Technodrome: if you turn on GPU emulation and use the 4.1 image, it isn't too bad Jul 05 03:22:44 most of the performance issues are GPU related Jul 05 03:23:01 mdwright: yeah the gpu helps alot i noticed when i enabled but i did notice the x86 to have a faster boot time Jul 05 03:23:34 i like ios still and wp but i love the cross platform ness of android dev Jul 05 03:23:45 Yeah, boot time should be faster, but hopefully youdon't boot all that often Jul 05 03:23:48 :) Jul 05 03:24:38 when my app gets more serious i will just use my phone Jul 05 03:24:46 but now setup like this, its good to i think Jul 05 03:25:00 I prefer to use my phone for as much as possible, but the emulator is nice to use when you don't have that size device Jul 05 03:25:13 for instance: if you want your app to work on the Nexus 7 but don't have one yet :) Jul 05 03:25:55 i wonder if you could actually use the emulataor now with gpu accleration for game dev Jul 05 03:26:13 Technodrome: the hardest part about that is that you won't be able to interact with the game like your players will Jul 05 03:26:52 Plus performance will be much better on your desktop than your device. etc. etc. Jul 05 03:26:58 yes but just for checking around hehe Jul 05 03:27:02 oh? Jul 05 03:27:04 you can use it to make sure it *looks* okay, but you really want to develop games on devices still Jul 05 03:27:10 i was thinking that the device would be better still Jul 05 03:27:23 even performance wise i thought Jul 05 03:27:36 Quite possibly not with GPU Emulation and KVM/HAXM :) Jul 05 03:28:08 thats how i have it now …yeah, really snappy Jul 05 03:28:11 and this is an intel core 2 duo Jul 05 03:28:15 :\ Jul 05 03:29:15 im not doing a game, just an app but you know Jul 05 03:29:24 Yep Jul 05 03:29:26 t0mless: were you the guy who wished the Android acceleration workedo n linux? or was it someone else.. Jul 05 03:29:48 well i got some learning to do now! Jul 05 03:30:08 will be a rough week i assume but hopefully should get better Jul 05 03:31:49 anyway, for anyone who is interested in Accelerated performance with the x86 android images on linux.. http://software.intel.com/en-us/blogs/2012/03/12/how-to-start-intel-hardware-assisted-virtualization-hypervisor-on-linux-to-speed-up-intel-android-x86-gingerbread-emulator/ Jul 05 03:36:19 how long you guys been doing android dev? Jul 05 03:36:28 over a year on and off Jul 05 03:36:37 got anything in the store? Jul 05 03:36:46 yeah, 2 lousy apps that Id rather not share >_>; Jul 05 03:37:06 bad graphics? Jul 05 03:37:15 bad overall Jul 05 03:37:19 i find thats the biggest issues with many android apps Jul 05 03:37:52 im not even close to being a "skilled" programmer, so I had no business releasing it Jul 05 03:38:12 im doing something rather simple, but i have a heavy design background Jul 05 03:39:19 what are you doing, Technodrome ? Jul 05 03:39:39 just a simple app right now, and something more serious a bit later Jul 05 03:39:47 *nod* Jul 05 03:39:48 i worked on a somewhat popular ios app, and got paid pretty well there Jul 05 03:39:49 drpenguin I wish it worked with AMD-V on windows Jul 05 03:39:54 I've only really made simple apps Jul 05 03:40:06 so im trying to do something by myself completely so i don't loose out on 600k again :) Jul 05 03:40:13 t0mless: ahh.. thats right Jul 05 03:40:17 ouch Jul 05 03:40:17 t0mless: GO INTEL! :D Jul 05 03:40:28 Intel is expensive Jul 05 03:40:32 AMD is cheap Jul 05 03:40:40 you get what you pay for Jul 05 03:40:45 Indeed Jul 05 03:41:10 but it runs pretty damn well otherwise Jul 05 03:41:18 I am and forever will be married to intel Jul 05 03:41:32 Oh yeah definitely, AMD does work well, no complaints against it Jul 05 03:41:35 intels just my #1 gal pal Jul 05 03:42:17 so do you guys work on anything rather cool at all? Jul 05 03:42:42 I do at my job.. but that isnt android :P Jul 05 03:43:29 not sure I'd call it cool, but practical Jul 05 03:43:29 the only thing I've made really so far is a wage calculator for the UK Jul 05 03:43:33 all the people who did cool stuff are chillin right now :) Jul 05 03:43:40 almost no one at the last android open went on irc Jul 05 03:43:52 leslie: wage calculator? Jul 05 03:44:08 https://play.google.com/store/apps/details?id=us.sleepybear.android.mpgcalcpro Jul 05 03:44:22 you put in your pre-tax wage, student loan stuff, etc and it calculates how much money you take home each month after deductions Jul 05 03:44:46 charge for it? Jul 05 03:45:00 I haven't put it up yet, it's a bit of a mess. but I guess I could clean it up Jul 05 03:45:42 put a few more UK specific financial features in it ….let me skin it with a beautiful UI, sell it for 2.99, and make 700k off it :) Jul 05 03:45:54 most android apps have super bad grahpics Jul 05 03:46:00 i mean worse than programmer art Jul 05 03:46:12 I've noticed Jul 05 03:46:17 like i wonder why people even bother Jul 05 03:46:23 UI is everything Jul 05 03:46:27 hopefully people will start paying attention to the style guide Jul 05 03:46:33 hence what gave me so much motivation here Jul 05 03:46:42 i love creating beautiful polished UI's Jul 05 03:47:50 what bothers me is how difficult it is to find tablet specific apps on the market Jul 05 03:48:04 or even tablet optimized Jul 05 03:48:23 I've been meaning to make a tablet layout for my app Jul 05 03:48:42 just converted all my activities to fragments, so now I just need to make a tablet activity and layout the fragments Jul 05 03:48:57 what kind of app is it? Jul 05 03:49:05 leslie: the tablet market isn't that *huge* yet with android i don't think but i think it will be Jul 05 03:49:09 https://play.google.com/store/apps/details?id=us.sleepybear.android.mpgcalcpro Jul 05 03:49:27 Is it just me or does this document (https://developers.google.com/drive/integrate-android-ui) tell nothing about how to access the Google Drive API through Android? Is it really just for MIME Type opening? Or am I missing something? Jul 05 03:49:30 Technodrome: it's not, no. but Kindle Fire is pretty popular Jul 05 03:49:38 is that android? Jul 05 03:49:40 yea Jul 05 03:49:43 it's Android-ish Jul 05 03:49:44 a modified 2.3 Jul 05 03:49:47 ah Jul 05 03:49:48 well Jul 05 03:50:00 im just sticking to phones for now Jul 05 03:50:01 it doesn't have Google Play, and it's not called Android. but it can run Android apps Jul 05 03:50:14 assuming they have their own store right? Jul 05 03:50:18 yeah Jul 05 03:50:25 how is volume in there? Jul 05 03:50:34 they don't release figures Jul 05 03:50:42 hmm Jul 05 03:51:06 i see Jul 05 03:51:06 "Fifty-four per cent of all Android tablets are Amazon Kindle Fires, according to research from ComScore." Jul 05 03:51:17 yeah i mean Jul 05 03:51:30 well i think it will go down as the actual android tablets get more popular Jul 05 03:51:37 a few cheap tablets with real high dpi screens == game Jul 05 03:51:58 the Nexus 7 looks interesting to me Jul 05 03:52:18 I tried to order it, but it rejected my card, and I won't be in the US much longer. so I may have to wait for a UK release. Jul 05 03:53:45 nexus 7 is neat, but i just don't have a need for a tablet i don't think Jul 05 03:53:53 galaxy nexus + linux powered netbook Jul 05 03:53:59 maybe if i didn't have the netbook Jul 05 03:54:02 but i use it to code, so... Jul 05 03:54:13 leslie: leavin the us? :( Jul 05 03:54:28 I'm just visiting. Jul 05 03:54:34 where at? Jul 05 03:54:40 Seattle Jul 05 03:54:51 i live in the southeast Jul 05 03:54:57 ahh. CA? Jul 05 03:54:57 its nice down here :) Jul 05 03:55:06 thats southwest :) Jul 05 03:55:25 I wouldn't mind visiting there. I just need to sort out my finances Jul 05 03:55:33 Miami Florida Jul 05 03:55:42 oh, I see Jul 05 03:56:00 i see quite a few UK tourist here and there Jul 05 03:56:10 but far more spaniards and french tourist Jul 05 03:56:19 why's that? Jul 05 03:56:21 pboos u there? Jul 05 03:56:40 leslie: no idea :P Jul 05 03:57:04 I'm here for another month. so I'll be missing the olympics, but it's not like I could afford tickets anyway Jul 05 03:58:11 my parents have tickets... for the trampolining :) Jul 05 03:58:33 ooh Jul 05 03:58:55 i want to travel a little bit to Jul 05 03:59:02 still haven't been to nyc Jul 05 03:59:18 and so some more traveling on the west coast Jul 05 03:59:29 although i'm not such a fan of seattle and all that Jul 05 04:00:07 why's that? Jul 05 04:00:21 well it has a stereotype as a very depressing part of the US Jul 05 04:00:48 if its true or not is another question hehe Jul 05 04:01:09 The weather is typically crap. but I'm from London, so it's about what I'm used to. Jul 05 04:01:17 almost as wet as yorkshire! Jul 05 04:01:22 i've heard its a similar weather Jul 05 04:01:27 like, the rest of the US seems to have a heatwave right now. It's 18 C here Jul 05 04:01:43 insane Jul 05 04:01:54 its a vancouver like weather Jul 05 04:02:06 and vancouver is branded as the tropical part of canada :) Jul 05 04:02:10 Question, how does one interpret a log file ? Jul 05 04:02:31 Pardon? Jul 05 04:02:38 samthewildone: as in, read it? Jul 05 04:02:42 or understand it? Jul 05 04:02:45 Or is the log file mainly used for developers who actually developed the program. Jul 05 04:02:45 What do you mean by interpret? Jul 05 04:02:47 both Jul 05 04:02:51 understand it Jul 05 04:03:03 it's mostly for the developer's benefit Jul 05 04:03:07 it will only show what the apps want it to show Jul 05 04:03:09 leslie: try the southern us next time hehe much better weather overall Jul 05 04:03:11 what an odd question Jul 05 04:03:11 I see like bits of code and stuff but... not at the level of a professional programmer. Jul 05 04:03:12 so yea, it's mostly for the devs Jul 05 04:03:20 I figured. Jul 05 04:03:24 hello room. Jul 05 04:04:01 I might pop down to San Diego later this month Jul 05 04:04:03 samthewildone: who else would it be for? Jul 05 04:04:12 monkeys Jul 05 04:04:22 I swear I thought they were for monkeys. Jul 05 04:04:24 i have an old android phone os 1.5 and would like to manually install an apk in it and cant figure out how. Jul 05 04:04:25 no, monkeys don't read the logs Jul 05 04:04:27 san diego doesn't really get hot either, thats sorta a weird city hehe Jul 05 04:04:36 but its very good weather year round there Jul 05 04:04:38 jerry_l: push it via adb Jul 05 04:04:56 jerry_l: it also depends what kind of app your trying to install. Jul 05 04:04:57 samthewildone: http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey() Jul 05 04:05:11 would be better to just install it with adb rather than push and then open it on the device Jul 05 04:05:13 Sometimes the minSDK wasn't 1.5 Jul 05 04:05:24 jerry_l adb install somepackage.apk Jul 05 04:05:26 its a calculator that i wrote, but my phone android market does not work. Jul 05 04:06:03 hook up your device via usb or adb wifi, and do adb install package.apk Jul 05 04:06:10 what SDK did you use in the first place ? Jul 05 04:07:06 2.2 for a simple calculator no problems with my tablet copy to SD card and run. but my antiqe phone other issue. Jul 05 04:08:06 i is a test box radials and button + - * / = Jul 05 04:08:15 text box not test Jul 05 04:08:22 2.2 apk wont work on a 1.5 phone Jul 05 04:08:38 not even if it is simple plus and minus. Jul 05 04:08:54 yes Jul 05 04:09:02 i cant upgrade because tmobile no longer offers the 1.8 google OS Jul 05 04:09:14 you need a new phone to install newer apps Jul 05 04:09:20 :( Jul 05 04:09:25 most devs just support froyo and newer Jul 05 04:09:34 jerry_l: what phone model is it? Jul 05 04:09:36 :( :( Jul 05 04:09:38 1.8? Jul 05 04:10:07 It's 4.0 or bust for me. Jul 05 04:10:16 samsung behold 2 sgh-t939 google OS 1.5 Jul 05 04:10:22 all you suckas on older versions can kiss my behind! :-P Jul 05 04:10:29 really, HorizonXP ? you exclude 90% of phones? :p Jul 05 04:10:39 Leeds: I'm pretty sure that method should just always return true :) Jul 05 04:10:43 2.1 + Jul 05 04:10:49 leslie: requiring NFC support already does that for me. Jul 05 04:11:02 ahh, true. although, NFC support was in Gingerbread. Jul 05 04:11:13 mdwright: you're thinking of the different - but related - isUserAnIdiot() Jul 05 04:11:30 I think the Nexus S was the only phone that had it though Jul 05 04:11:30 leslie: let's not talk about that abomination of NFC support that was there. Jul 05 04:12:59 well my girlfriend says time to go to sleep. thanks i will look into the "push it via adb" & "would be better to just install it with adb rather than push" Jul 05 04:13:14 An internal error occurred during: "rebuild". Jul 05 04:13:14 assertion failed: Jul 05 04:13:40 lol Jul 05 04:13:46 gf = your mom? Jul 05 04:14:03 thanks for everyonews help i will continue to attempt to crash my phone after work tommarrow. :) Jul 05 04:14:09 lol Jul 05 04:15:00 nahh.. im like 35 and my gf lives with me and says i play on the comp to much. Jul 05 04:15:11 jerry_l: ditto Jul 05 04:15:14 lol Jul 05 04:15:21 unless she's gonna sex you up Jul 05 04:15:28 and i have to get up at 4:30 am to go to work until 6pm. Jul 05 04:15:31 i wouldn't listen to what she "tells" you to do Jul 05 04:15:35 that, not so ditto Jul 05 04:15:36 no comment Jul 05 04:15:47 |) Jul 05 04:15:50 that's just my opinion tho Jul 05 04:16:04 :-X Jul 05 04:16:28 non android pidgin... Jul 05 04:16:38 night everyone... Jul 05 04:16:43 night Jul 05 04:17:08 leeds if i can i will be back here tommarrow..... Jul 05 04:20:47 t0mless: was that mpg calculator your app? Jul 05 04:22:02 Yea Jul 05 04:22:07 If I have a thread running an "endless" while loop, what is the cleanest way to quit the loop and close the thread? Jul 05 04:22:18 i am doing ocr app but i dont have real device only testing it on avd.. problem is that avd does not have camera as i try to take pic and then do ocr... anyone know some app with source code that just load some image from project....? Jul 05 04:22:31 t0mless: how is it selling? how are your graphics? Jul 05 04:22:38 lasserix: redesign Jul 05 04:22:52 graphics are kinda bleh, but i'm in the middle of a redesign Jul 05 04:23:06 t0mless: whats the name of the app? Jul 05 04:23:13 MPG Calc Jul 05 04:23:28 I think it's actually MPG Calculator Ad-Free/Lite Jul 05 04:23:33 lasserix: volatile boolean that you check in the thread or something Jul 05 04:23:34 jth1? Jul 05 04:24:03 or sleepybear apps? Jul 05 04:24:10 sleepybear apps Jul 05 04:24:14 if I wanted to access web-based APIs, how might I do that? Jul 05 04:24:32 leslie: thanks, and to close the thread what is the recomended method call? I've seen that .join is deprecated Jul 05 04:24:39 cyberrog: now here again. was out for lunch Jul 05 04:24:43 HorizonXP: erm... by making an HTTP request and handling the result? Jul 05 04:25:07 Leeds: sure. what library? Jul 05 04:25:11 lasserix: just have a variable that the thread checks periodically to see if it should quit. Jul 05 04:25:15 Angel07: launch the gallery intent instead of the camera intent Jul 05 04:25:28 Leeds: just need a pointer so I can search for docs Jul 05 04:25:29 ive made an OCR application before Jul 05 04:25:59 HorizonXP: http://android-developers.blogspot.hk/2011/09/androids-http-clients.html Jul 05 04:26:03 HorizonXP: AndroidHttpClient Jul 05 04:26:25 HorizonXP: Also, relevant talk from this year's IO: https://developers.google.com/events/io/sessions/gooio2012/121/ Jul 05 04:26:53 mdwright: lol that's super relevant, thanks Jul 05 04:26:57 Leeds: thanks :) Jul 05 04:26:58 t0mless: I hate that your app has 1-star ratings from users wanting international units...instead of just sending you requests to add the feature *sigh* Jul 05 04:27:15 I had less than 5-star review from a user stating they loved my app but it doesn't do something specific to their needs Jul 05 04:27:27 eSatsu thx, do you maybe know some link with example/source code for simple ocr app with gallery instead of camera? Jul 05 04:27:29 annoying Jul 05 04:27:30 QubeZ: at least whenever we get to reply to comments, we'll be able to... reply to comments Jul 05 04:27:38 ya drying for that feature Jul 05 04:27:44 Angel07: do you have the camera intent code done Jul 05 04:27:58 leslie: thanks, I don't know why I thought it couldn't be so simple as that Jul 05 04:28:02 launching the gallery intent is pretty much the same Jul 05 04:28:08 When running my application via avd do I have to restart my emulator to have the updated code running ? Jul 05 04:28:18 lasserix: just make sure you mark the variable you check as volatile Jul 05 04:28:19 i have no code at hand right now but its trivial Jul 05 04:28:30 how are oyu doing the OCR though, using some library or what? Jul 05 04:28:32 Just added some lines to my code. Or do I have to do the whole process over again ? Jul 05 04:29:17 no, you don't need to restart the emulator Jul 05 04:29:37 do you restart your computer every time you install a new piece of software? (do not answer if you use Windows) Jul 05 04:30:06 yes! Jul 05 04:30:14 well, I don't Jul 05 04:30:19 my tablet crashes Jul 05 04:30:20 :( Jul 05 04:30:43 * doc|home had his tablet crash part-way/after doing an update to apps last night Jul 05 04:31:15 angel07: but anyway basically you just do Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(intent.ACTION_GET_CONTENT); startActivityForResult(intent, CAMERACODE); Jul 05 04:31:44 and then do the same as youd do wit hthe camera intent Jul 05 04:32:30 overwrite onActivityResult and on requestcode == CAMERACODE launch the OCR activity or however youre planning on doing that Jul 05 04:32:46 Anyone have a good suggestion for resource/book/advice on someone who has ASM/C/C++ and wants to start tinkering on the android platform? Jul 05 04:32:48 mdwright: watching the vid now, looks like the Google Client LIbrary is the way to go for accessing generic web APIs Jul 05 04:32:50 eSatsu i am trying many examples... this app is what almost everyone recommends http://code.google.com/p/mezzofanti/ ... thank you very much for your help... Jul 05 04:33:33 SnakesAndStuff: I'm not sure those two things go together Jul 05 04:33:58 doc|home: Don't go together as in too much of a leap without enough intermediate material? Jul 05 04:34:20 SnakesAndStuff: well, java's fairly different to those Jul 05 04:34:21 oh ok Jul 05 04:34:29 what i did back in 2010 Jul 05 04:34:34 HorizonXP: I actually haven't gotten around to watching that talk yet :) The client libs are pretty nice, though I usually end up just wrapping all of my API interactions in a custom client class that just uses AndroidHttpClient directly Jul 05 04:34:37 i was running a remote server where i did the OCR Jul 05 04:34:54 and the translation etc Jul 05 04:34:56 SnakesAndStuff: I'd just start out reading the dev guide on the android site. If you know those then you should be able to pick it up for the most part. Jul 05 04:35:07 funny, it was much faster that way Jul 05 04:35:14 doc|home: Thanks. Jul 05 04:35:17 mdwright: i might have to do that, since the service i'm using doesn't use OAuth or anything. Instead, they distribute and use client SSL certs. Jul 05 04:35:39 HorizonXP: ah, yeah, you probably will Jul 05 04:35:50 The http libs are pretty awful :( Jul 05 04:36:10 But the AndroidHttpClient tries to get rid of *some* of the awfulness Jul 05 04:36:34 mdwright: did you read the blog post I pointed HorizonXP at? Jul 05 04:39:28 Leeds: I did. Unfortunately, I try to target Froyo with most of my apps still. Jul 05 04:40:05 Though since HorizonXP is targetting 4.0 you're right that he's better of using HttpURLConnection. Jul 05 04:40:10 *off Jul 05 05:14:15 holy crap on a poo stick Jul 05 05:14:27 talk about crappy error messages Jul 05 05:14:50 NetworkOnMainThreadException Jul 05 05:15:15 only saw that when I did a try/catch. prior to that, it just printed a stacktrace that didn't have that exception Jul 05 05:33:48 does google release any like phone mocks to use in ps/illi etc ? Jul 05 05:34:36 Technodrome: all of the stencils, etc. that have been released can be found here: http://developer.android.com/design/downloads/index.html Jul 05 05:35:18 The design team said at I/O they're working on more and should be out soon Jul 05 05:36:05 would like an actual official phone stencil Jul 05 05:38:29 mdwright: what do you work on? Jul 05 05:41:19 stupid question but what res do most of you develop phone applications for first? Jul 05 05:42:56 Technodrome: I'm an intern on the dev tools team. If you saw the tools talk where they demoed the new device stuff in ADT and the emulator, that's what I'm working on Jul 05 05:43:22 Last year I was an intern on the partners team (worked on Monkey, MonkeyRunner, and a bunch of internal things) Jul 05 05:43:26 oh sounds pretty cool! Jul 05 05:43:44 I love it here :) Jul 05 05:44:09 i was really just a contractor doing web based stuff, did ios app with a few others and made a ton , so i was like ok maybe there is something here :) Jul 05 05:44:27 and im a vector artist, so even i can at least get this android api down decently, i should be good! Jul 05 05:46:20 Technodrome: regarding your question about device resolutions, I *highly* recommend watching this talk: https://developers.google.com/events/io/sessions/gooio2012/115/ Jul 05 05:46:36 one of our developers talks about how he designs for Android in Photoshop Jul 05 05:46:38 so much to catch up on mdwright Jul 05 05:46:55 mdwright: i'm a fireworks evangelist in every single way! Jul 05 05:47:15 bitmap world but yet everything is vectors , what is there not to like :) Jul 05 05:47:20 Yeah, that's one of the best talks to watch though, especially from someone new. It covers our dev tools (Tor is on my team), our design guidelines / tools, and a lot of the thought process when designing :) Jul 05 05:47:34 Technodrome: I used to be a big fireworks fan, but it's been awhile since I did any design work :) Jul 05 05:47:48 oh man, i sooo love fireworks :) Jul 05 05:47:51 people just don't know! Jul 05 05:48:08 adobes own team uses it for most of their art work these days (hard to believe, really hard) Jul 05 05:48:09 I'm using Pixelmator these days Jul 05 05:48:18 but I don't do much design work, just the odd mockup Jul 05 05:48:28 pixelmator is cool but just to many things to miss Jul 05 05:48:34 There is a lot missing, that's true Jul 05 05:48:53 i want things to stay in vector as long as possible Jul 05 05:48:55 But the price was much nicer on my wallet. I may work at Google during the summer, but I'm still a college student the rest of the year :) Jul 05 05:49:26 i never got to do anything cool like that, this is my first free time period in 7 years Jul 05 05:49:31 been working full time since then Jul 05 05:50:24 Yeah, most years I work part time and am a CS/Math student full-time Jul 05 05:50:28 and then work full-time in the summer Jul 05 05:50:29 so i got a few weeks to get the basics of android down and maybe put together a simple app with hopes of better and better ones Jul 05 05:50:35 Sounds like fun :) Jul 05 05:50:57 i did an ios app with 4 others and it sold pretty well Jul 05 05:51:16 of course split 4 ways it wasn't that good but still compareable to a year salary working as a software developer Jul 05 05:51:28 That's pretty nice Jul 05 05:51:32 and honestly i pretty much did most of it :) Jul 05 05:51:40 2 of them did a little and me and another guy did most Jul 05 05:51:44 Ouch. So you should hurry up and get some great apps out! :) Jul 05 05:51:48 and he even sorta got lazy with it Jul 05 05:52:42 its all about UI ….i keep hearing how your chances are so small of making it etc etc, as a whole its very true. But though most apps don't have good UI's or function good ….or a horrible combo of both. Jul 05 05:53:06 if you have a well designed app UI wise , great presentation and branding, and it functions good in execution, your chances seem "not to bad" Jul 05 05:53:13 at least thats how it is in the ios world atm Jul 05 05:54:17 Yep Jul 05 05:54:21 that's basically how it is Jul 05 05:55:35 Alright, it's probably time for me to head home. I may be on later. Best of luck Technodrome! Jul 05 05:56:51 yep thanks for the help mdwright Jul 05 06:38:59 so, i want this image (http://imgur.com/p7ixY) to show up in full screen, horizontal Jul 05 06:39:03 I've done that... Jul 05 06:39:10 However, it looks pretty crappy Jul 05 06:39:27 What do I need to do to make sure that this image shows up in good quality on most devices? Jul 05 06:45:31 jessicajames > displaying it in what? Often you have to enable dithering manually on Android Jul 05 06:46:05 a full screen activity Jul 05 06:49:44 jessicajames: are you creating a bitmap or just linking it in by the layout tool? Jul 05 06:50:29 if you are just linking it in use photoshop to resize it to the screen size. thats the kind of image that won't scale down good without bicubic filtering. Jul 05 07:02:17 does google at all release numbers of copies sold? Jul 05 07:02:37 copies of? Jul 05 07:05:07 Technodrome: they have adoption rates, but they're approximate Jul 05 07:05:18 android's not sold Jul 05 07:05:39 sorry apps sold Jul 05 07:07:05 Technodrome: no idea but if the apps are sorted by volume and if few apps in their blog give rough numbers you can estimate the others Jul 05 07:07:27 actually i see google play does show a range of units sold Jul 05 07:07:30 pretty cool Jul 05 07:07:46 do I have to set android:exported="true" on my BOOT_COMPLETED receiver? Jul 05 07:12:15 Lint is complaing about the receiver not needing permissions but from what I've read... BOOT_COMPLETE needs to have android:exported="true" Jul 05 07:22:27 What is the best way to get debug logs for an application running on a device? Does android create any persisted logs? or we have to do it manually Jul 05 07:23:30 jahid: adb logcat Jul 05 07:23:32 or adb bugreport Jul 05 07:23:52 you can also press a key combo (usually power + volume up or volume down) to capture a bugreport on the external storage Jul 05 07:27:24 What occurs this to happen? http://pastebin.com/v7KFM4HW Jul 05 07:28:36 romainguy_, so adb can get the log from the time when device was not connected? or it just collects logs from when its connected? Jul 05 07:28:57 the device keeps a rotating buffer Jul 05 07:29:02 adb can dump the buffer Jul 05 07:29:10 so if you're lucky, your logs are still in the buffer Jul 05 07:29:28 romainguy_, thanks Jul 05 07:29:37 finally repro'd the launcher bug i've been talking about Jul 05 07:29:40 caught it on video Jul 05 07:32:08 hi, is there a list of fonts available on all android devices to be found somewhere? Jul 05 07:32:23 i.e. the subset that is available on every device.. Jul 05 07:33:17 it's very limited. i haven't seen a full list Jul 05 07:37:50 JakeWharton, is it possible to theme the buttons of an alertdialog in API 10? Jul 05 07:37:54 JakeWharton: i guess i cannot count on Arial being available? Jul 05 07:38:03 [client request] Jul 05 07:38:06 tapas: most certainly no Jul 05 07:38:10 you would have to include it yourself Jul 05 07:38:10 In an activity, if I call new something(), which is a canvas, and in something() I call newsomething(), which is another canvas, how can I add the canvas to the activity? Jul 05 07:38:33 royale1223: no, not really. it would be much easier to provide your own dialog View (and styles) Jul 05 07:39:22 JakeWharton, thank you. Jul 05 07:39:27 JakeWharton: ok, that's what i figured.. thanks for the adffirmation Jul 05 07:39:46 speaking of, the new AlertDialog on JB changes button size based on size of text. Anyone know how that's done? Jul 05 07:41:33 JakeWharton: layouts? Jul 05 07:42:19 'magic' Jul 05 07:43:06 aka sufficiently advanced layouts Jul 05 07:44:04 I didn't bother decompiling because I don't care enough and the AOSP push isn't far off. Certain dialogs seem to give a much larger width to the "positive" button in dialogs. Jul 05 07:44:37 I'd tell you if I wasn't too lazy to reach for my KVM switch Jul 05 07:45:34 you are on holiday Jul 05 07:45:42 that too Jul 05 07:45:43 or at least, i hope you are with the rest of your team Jul 05 07:46:08 which I'll probably spend working on the stuff I never have time to work on at work Jul 05 07:46:53 That's what I'm doing. Finally got your ViewServer in our development builds so we can use hierarchy viewer on any device. Jul 05 07:47:07 what resolution do you guys use for phone apps? Jul 05 07:47:33 There are no concrete resolutions. You should write your apps in a responsive manner so that they scale to any resolution. Jul 05 07:47:46 It's very similar to web development Jul 05 07:48:22 You can bucket devices into high-level categories to make it easier (and so you only have to provide a few layouts) like phone, 7" tablet, and 10" tablet Jul 05 07:48:36 or desktop when users don't make your app fullscreen ;-) Jul 05 07:50:12 worth reading Dianne's comments about the N7 for a little insight Jul 05 07:50:44 Leeds: also for the last comment Jul 05 07:51:18 from Lucian? Jul 05 07:51:22 yeah Jul 05 07:51:39 JakeWharton: this is just for my design mocks Jul 05 07:51:47 Technodrome: https://plus.google.com/u/0/105051985738280261832/posts/6eWwQvFGLV8 Jul 05 07:51:49 i need something pixel for my canvas Jul 05 07:52:09 and since i'm just targeting phones yeah Jul 05 07:52:21 Technodrome: common resolutions are 800x480, 1280x800 and 1280x720, but then there's the density problem :) Jul 05 07:52:34 for phones? Jul 05 07:52:37 they go that high? Jul 05 07:52:45 Galaxy Nexus is 1280x720 for instance Jul 05 07:53:02 my phone has 320x480 resolution ;) Jul 05 07:53:04 this is just for my mocks Jul 05 07:53:10 s2 here Jul 05 07:53:14 do we consider 480x320 to be dead now? Jul 05 07:53:29 Zharf: could be worse... 320x240 :) Jul 05 07:53:29 why would we Jul 05 07:53:36 Leeds, my previous phone had that Jul 05 07:53:40 and I loved both of them Jul 05 07:53:47 pretty sure samsung is still pumping out lower end phones with quite low res Jul 05 07:53:50 hey Jul 05 07:53:53 which are not unpopular Jul 05 07:54:01 I absolutely hate the bigger ones mainly because the phones are TOO BIG TO HOLD Jul 05 07:54:07 and don't have good hardware keyboards Jul 05 07:54:15 soo? what size should i make my mocks? Jul 05 07:54:19 I've just temporarily dropped back (due to a dropped phone) from 1280x800 to 800x480, and it's *really* noticeable Jul 05 07:54:28 Technodrome: 800x480 or 1280x800 Jul 05 07:54:45 1280 is quite wide hmm Jul 05 07:54:50 is the Galaxy S2 800x480? Jul 05 07:54:55 Leeds, I don't mind bigger resolutions, as long as the physical size of the phone doesn't get any larger than the one I have currently Jul 05 07:54:59 (xperia mini pro) Jul 05 07:55:06 Leeds: phones are 720 not 800 usually Jul 05 07:55:08 luyang: yes Jul 05 07:55:15 if you're doing mocks do them in the same way you would do web mocks Jul 05 07:55:21 so 800x480 for my phone mock seems good Jul 05 07:55:24 pick a resolution but realize that it will need to be adaptable Jul 05 07:55:26 i mean how do games handle this? Jul 05 07:55:26 Leeds: ok thanks cool… so that is ldpi? Jul 05 07:55:29 do they scale? Jul 05 07:55:31 romainguy_: ah, yes, sorry... also, my currently-dead-screen phone has the insane on-screen menu button Jul 05 07:55:32 so how to create a galaxy s2 emulator Jul 05 07:55:50 Technodrome: they do Jul 05 07:56:01 do they use different graphics? Jul 05 07:56:07 or scale on demand? Jul 05 07:56:10 Usually not Jul 05 07:56:14 Most games use OpenGL Jul 05 07:56:19 which gives you scaling "for free" Jul 05 07:56:30 how is it for free? Jul 05 07:56:43 for standard apps you would normally supply 2 or 3 densities for your assets Jul 05 07:56:47 (mdpi, hdpi, xhdpi) Jul 05 07:56:58 i need to read on this Jul 05 07:57:00 FRAGMEN... sorry Jul 05 07:57:09 but im just mocking them up right now ….and i need a realistic canvas Jul 05 07:57:23 Leeds: well according to Ars Technica resolution independence happened thanks to the Retina Display revolution Jul 05 07:57:32 Technodrome: 800x480 or 1280x800 Jul 05 07:57:34 one sec Jul 05 07:58:00 romainguy_: and according to wired, the N7 only runs in portrait mode :) Jul 05 07:58:06 that is landscape correct romainguy ? Jul 05 07:58:07 Leeds: :) Jul 05 07:58:26 Technodrome: er 1280x720 sorry Jul 05 07:58:28 of course, if I could *buy* one... :( Jul 05 07:58:31 and no, phones are usually landscape Jul 05 07:58:37 er portrait Jul 05 07:58:43 but you should also mock for landscape Jul 05 07:58:44 how is that portrait? Jul 05 07:58:46 oh Jul 05 07:59:07 obviously designing in 1280x720 isn't going to work hehe Jul 05 07:59:13 * Zharf hates portrait mode Jul 05 07:59:14 there aren't many slider keyboard phones left nowadays... the main use for landscape on phones, I think Jul 05 07:59:19 i need something that is realistic of a size of a screen Jul 05 07:59:19 Technodrome: why? Jul 05 07:59:22 on my screen Jul 05 07:59:37 thats the same res as my computer right here almost :) Jul 05 07:59:40 1280x900 here Jul 05 07:59:52 Technodrome: that is the resolution of the phone screen - but the phone is *much* higher density than your monitor Jul 05 07:59:55 http://developer.android.com/about/dashboards/index.html << distribution of the various screen sizes Jul 05 07:59:56 the 8gb N7 is AUD$250, 1 Australian dollar = 1.0267 U.S. dollars Jul 05 07:59:58 hard to create something that looks realistic Jul 05 08:00:01 yes for sure Leeds Jul 05 08:00:08 Leeds, I really hope they won't die out, otherwise I'll revert back to non-smartphone Jul 05 08:00:10 does anyone know how to reenable tooltips in ADT's logcat? Jul 05 08:00:12 Technodrome: 1280x720 is usually 320 dpi Jul 05 08:00:16 since i'm designing in vector i willl design by just what it looks right here Jul 05 08:00:18 so i don't need to scroll like a madman to inspect log messages? Jul 05 08:00:19 and your monitor is likely around 96 dpi Jul 05 08:00:25 do the math Jul 05 08:00:31 tapas: learn to filter Jul 05 08:01:17 Leeds: i do filter.. Jul 05 08:01:27 then filter more :) Jul 05 08:01:29 i get it romainguy but again im using vector here Jul 05 08:01:34 Leeds: also: your answer does not adress my question. learn to read :d Jul 05 08:01:35 i can resize however i want Jul 05 08:01:41 I' Jul 05 08:01:48 and learn to write :D Jul 05 08:01:56 I've got no idea what tooltips have to do with scrolling your log... also, I don't use ADT Jul 05 08:02:16 i have to scroll the log window *sideways* to read the log messages in full Jul 05 08:02:26 romainguy: how do you do mocks? Jul 05 08:02:40 with tooltips i just hovered.. these have been removed in version 20 or so.. Jul 05 08:02:41 hah, sideways :D Jul 05 08:02:43 Technodrome: Photoshop Jul 05 08:02:48 what size do you use? Jul 05 08:02:53 Technodrome: 1280x720 Jul 05 08:03:16 Technodrome: http://developer.android.com/design/downloads/index.html Jul 05 08:03:34 romainguy: you can design something for a phone with that high of a res representing it on your screen? Jul 05 08:03:47 Technodrome: what's the problem with that? Jul 05 08:04:25 again thats my entire screen here :) Jul 05 08:04:33 I can't help you with that ^^ Jul 05 08:04:47 and it would be huge on any screen honestly Jul 05 08:04:51 well not any Jul 05 08:05:09 since im doing all vector it really doesn't matter i guess Jul 05 08:05:10 but yeah Jul 05 08:05:17 if you say so :0 Jul 05 08:05:51 so when you design a phone UI, its ok for it to be all super huge for you? Jul 05 08:06:01 but it won't be Jul 05 08:06:06 how would it not? Jul 05 08:06:07 on the phone it will have a normal size Jul 05 08:06:12 yes Jul 05 08:06:13 of course Jul 05 08:06:18 but the comfort of designing i mean Jul 05 08:06:21 there's a $65/month deal with charter internet 100mb/s download and 5mb/s upload. is that a good deal? Jul 05 08:06:27 you have to think in "dips" not "pixels" Jul 05 08:06:43 if you want to get a feel of what it will look like on a device, zoom out Jul 05 08:06:59 zooming out of course can pixelate Jul 05 08:07:01 but yes Jul 05 08:07:05 i will just suck it up i guess Jul 05 08:08:08 sorry for interrupting .. can you guys take a look at my question posted on stackoverflow http://stackoverflow.com/questions/9100445/suppress-layout-animation-on-one-child-view Jul 05 08:08:09 s2 is 480x800 Jul 05 08:08:20 i guess thats a good point to design for Jul 05 08:08:27 and i can scale up and down a bit Jul 05 08:08:37 if you want to design for last year's phones rather than this year's, sure ;) Jul 05 08:09:10 most poeple i would say are still using these? correct? Jul 05 08:09:11 it's probably a better idea to target the highest resolution and only scale down Jul 05 08:09:21 again i can scale up …i will make it look good on all Jul 05 08:09:22 Technodrome: look at the link I sent you Jul 05 08:09:29 it shows the repartition of screen sizes Jul 05 08:09:29 i won't be able to test the large ones with hardware though Jul 05 08:09:49 do i need to change the dpi, or when desiging keep it 72 dpi? Jul 05 08:11:07 im guessing it doesn't matter here Jul 05 08:11:17 probably should keep monitor native? Jul 05 08:11:48 sry for the questions, the iphone was easier to mock for :P Jul 05 08:12:12 Technodrome: it's not different Jul 05 08:12:29 The android emulator is causing my Mac to get kernel panic (crash) Jul 05 08:14:59 woops, damn apple Jul 05 08:15:19 I think the kernel is messing with non user mode or similar :P Jul 05 08:15:22 I mean emulator Jul 05 08:15:43 Have you tried creating a new image? Jul 05 08:16:01 I could try that Jul 05 08:16:24 The image might of gotten corrupted somehow? Worth a go anyway :) Jul 05 08:16:55 maybe it's because I am trying to play audio on the emulator… and soundflower on mac Jul 05 08:16:56 dunno Jul 05 08:17:39 Hmm.. Does it crash at the point where the app makes a sound then? Jul 05 08:18:14 no I haven't got that far that I can hear sound :P Jul 05 08:18:25 but reading this and it seems interesting although old http://code.google.com/p/android/issues/detail?id=19099 Jul 05 08:18:56 That's weird.. Jul 05 08:19:12 what's the KP log say ? Jul 05 08:19:45 i assume OS X writes a core when it does a panic Jul 05 08:19:57 anyone knows the debug.keystore 's password? Jul 05 08:20:12 which is located on ~/.android/debug.keystore Jul 05 08:20:12 bankai_: maybe.. well I have a crash log Jul 05 08:21:17 oh man, eclipse really likes to destroy xml files :D Jul 05 08:21:50 Keystore name: "debug.keystore" Keystore password: "android" Key alias: "androiddebugkey" Key password: "android" CN: "CN=Android Debug,O=Android,C=US" Jul 05 08:22:36 zipoboy, thanks. but did you figure that the output is a sha1 digest, wehre as the google map api requires md5 Jul 05 08:23:05 jahid: why aren't you using a real keystore then? Jul 05 08:23:47 jahid keytool -list -alias androiddebugkey \ Jul 05 08:23:47 -keystore .keystore \ Jul 05 08:23:47 -storepass android -keypass android Jul 05 08:23:47 Leeds, what do you mean by real keystore? if you mean my own one, then there is. that is also showing sha1, so i tried to check what it shows for debut.keystore. and its same Jul 05 08:24:16 no idea about maps stuff Jul 05 08:24:22 ok Jul 05 08:24:35 jahid: https://developers.google.com/maps/documentation/android/mapkey#getdebugfingerprint Jul 05 08:25:06 luyang, saw that, but doesnt say anythying about sha1 and md5 Jul 05 08:25:53 jahid what problem do you have with the mapsapi key? Jul 05 08:26:05 i just did it myself, i can probably help ya :) Jul 05 08:26:45 Aeefire, trying to generate a new map api key. so i need the md5 of my certificate. but when i try to get my md5 digest for my certificate. it generates sha1 digest, but not md5 digest Jul 05 08:27:26 have you entered the right parameters to your commandline O.o Jul 05 08:27:30 its something like Jul 05 08:27:35 keytool -list .. Jul 05 08:27:38 Aeefire, yes Jul 05 08:28:11 jahid: have you tried to insert the output of that command into the xml as maps api key? Jul 05 08:28:19 that's really strange. and creating a new keystore is a problem? Jul 05 08:28:55 romainguy: portrait first when you do design or landscape first? Jul 05 08:28:59 luyang, i am one step behind, trying to generate md5 to get api key Jul 05 08:29:23 Aeefire, no jdk1.7 is the problem. it uses sha1 by default when generating digest Jul 05 08:29:26 i will check with 1.6 Jul 05 08:29:40 i can upload you my keytool if you want. Jul 05 08:29:52 nah, thanks Jul 05 08:29:58 kk. Jul 05 08:30:05 Aeefire, thanks Jul 05 08:35:07 hmmm begin developing or more coffee? :P Jul 05 08:35:27 coffee wins Jul 05 08:35:53 and stupid funmails from colleagues.. Jul 05 08:36:35 did the "multiple layout" preview display in the designer (for different screen sizes, languages) demoed at I/O not make it into the currently available tools yet, or am I just not finding it ? Jul 05 08:37:43 * Aeefire couldn't attend I/O :( f*ck stupid money :) Jul 05 08:38:55 thats too bad ! the swag definitely paid for the ticket, and the ticket was paid on corporate expense, so ... ;) Jul 05 08:38:59 Aeefire: it's all on YouTub Jul 05 08:39:04 YouTube Jul 05 08:39:37 I've downloaded them all, be sure (atleast the droid sessions) :) still no time / motivation to see them all :P just watched the keynotes yet. Jul 05 08:41:53 Chainfire hehe gz :P hopefully for me too at some point ;D Jul 05 08:43:24 make some good selling apps and we'll see you there next year ;) Jul 05 08:44:54 Haha ye... trying to. But in three months I am going to study computer sciences at university, so that will probably cut my time for developing down a bit. hehe. However, I'll try ;) Jul 05 08:45:19 abuse projects you can fill in yourself to make Android apps Jul 05 08:45:23 seems a lot of students do Jul 05 08:46:43 I already abused android for my graduation. but it was my first project, worked for it like half a year and it is basically a bunch of shi* ;) It would need a total overhaul to be ready to publish. Dunno if I am really going to do this Jul 05 08:47:07 anyway, the project got an A++ ;) Jul 05 08:47:10 I'm not sure where I read it Jul 05 08:47:39 ...that students abuse their projects to make android apps? :p Jul 05 08:47:44 but it seems most apps are like that :P Jul 05 08:48:12 hahahhaha.. but i don't want to start with a... not "very nice" app :P Jul 05 08:48:15 not most good apps... but a lot of stuff comes out needing a lot of polish Jul 05 08:48:28 to jump to web, did you see Twitter when it launched ? Jul 05 08:49:38 Nah not really, but at least i saw some other webpages "develop" over the time.. and yes you are right. Not everything is perfect at the beginning. That's not what I am trying but yes... I wouldn't feel comfortable with launching this bunch of shi* :P Jul 05 08:50:14 haha, well you know best yourself of course. But don't hold yourself back because it isn't "perfect". Jul 05 08:51:35 hehe I am trying :) Thanks. Jul 05 08:56:31 I'm setting layout animation to list view (my items are dropping down). In list view I have a header that I don’t what to animate. How can I suppress animation on my header? Jul 05 08:59:06 Aeefire: what was the app? Jul 05 08:59:47 lasserix some depot managing for e.g. craftsman or else Jul 05 09:07:11 anyone here using an android phone? If you are here and are, could you do a favor and send yourself an SMS with "~hey\whats\up" and tell me if it shows correctly? Jul 05 09:10:50 X-suriV: nothing out of the ordinary here. Jul 05 09:10:52 Could someone help me here with video recording without preview / from service? Jul 05 09:11:00 trash: It worked fine? Jul 05 09:11:06 Yes Jul 05 09:11:23 weird.. on the emulator sendng that text from one emulator to the other, the special characters dont work Jul 05 09:16:36 there must be something about the emulator's design that causes that then. As when sent from DDMS, works fine, and now your test, works fine Jul 05 09:16:40 so must be bug in emulator Jul 05 09:17:25 Could be.. I tested on a One X, though.. maybe HTC fixed it. Jul 05 09:17:30 Don't have any stock devices. Jul 05 09:19:03 hmm, can i tell lint to check the declared avtivites in the manifest for their being in the right place? Jul 05 09:19:41 s/their/them/ Jul 05 09:21:35 also: what does the manifest offer that reflection wouldn't offer, too? i come from a c++ background where all you need to get a program running is int main() { } ;D Jul 05 09:22:10 so the whole android packaging appears to me to be very bloaty, redundant and thus error prone.. Jul 05 09:22:41 Heh what?? Jul 05 09:24:00 take a look at the amount of code generated by either the android create package tool or eclipse new project tool.. Jul 05 09:24:24 and it's all boilerplate.. Jul 05 09:24:31 tapas: it only generates a manifest and a base Activity Jul 05 09:24:34 that's all you nee Jul 05 09:24:36 need Jul 05 09:25:19 there's more code because an activity includes user interface, since activity can't be a command-line program Jul 05 09:25:54 What, this platform generates a User Interface??? How preposterous! Jul 05 09:26:28 #include int main(int i, char *v[]) { QApplication app(i, v); w = QMainWindow(); return app.exec(); } Jul 05 09:26:31 ;D Jul 05 09:26:51 anyways, i'm interested in the real reasons for the verbosity being nessecary Jul 05 09:26:57 class MyActivity extends Activity { public void onCreate() { }} Jul 05 09:27:02 + the entry in the manifest Jul 05 09:27:05 as ather gui toolkits/app frameworks manage with muuuuch less boilerplate Jul 05 09:27:13 Anyway, someone help me trick android to let me record video without visible surfaceview Jul 05 09:27:16 except the android manifest lets you do so much work Jul 05 09:27:19 and an entry in the manifest for every activity you add Jul 05 09:27:20 s/work/more Jul 05 09:27:26 tapas: For C++ what do you use? WinForms? WPF? Jul 05 09:27:42 he just mentioned QT Jul 05 09:27:44 X-suriV: i use WxWidgets, Qt, GTK, back inthe days some Win32API Jul 05 09:27:46 specify the title/icon, add support for intents and navigation, declare content providers to export to other apps, etc. Jul 05 09:27:58 Android provides a UI toolkit + an application framework Jul 05 09:28:21 (you can actually run apps that only have a main() method if you invoke Dalvik from the shell :) Jul 05 09:28:23 tapas: Coding a GUI in straight win32 api was very time consuming...you could use Petzolds book on the matter as a murder weapon because it was so heavy Jul 05 09:28:48 X-suriV: yes, win32api was hell :D Jul 05 09:29:12 thats why Im glad that GUI editors like WinForm came around.....makes it so much easier Jul 05 09:29:45 i just wonder if there's a good technical reason to make the manifest nessecary Jul 05 09:29:54 Gah Jul 05 09:29:54 what I just said tapas Jul 05 09:29:55 optional: cool, great, everything that helps the user Jul 05 09:30:09 tapas: securities and permissions Jul 05 09:30:14 and that too Jul 05 09:30:29 and when your app becomes complex it's actually nice to see all the components in a single place Jul 05 09:31:37 and besides a terribly verbose language (java) to hack in one has to additionally maintain redundant stuff in an even more verbose language (xml) ;D Jul 05 09:33:09 This always surprises me. In the time you've been ranting you could have made real money. Instead of trolling java and android. Jul 05 09:33:09 trolling is a coping mechanism used by self hating chatters to attempt to cause as much external misery as they feel inside Jul 05 09:33:20 hmm, i guess it should be possible to generate the manifest using reflection and some smart logic.. so the redundancy gets manageable Jul 05 09:33:35 Oh yes, because the redundancy is soooo unmanageable. Jul 05 09:34:23 don't get defensive, please :D i love android as a platform, but i am nonetheless interested in the reasons for its perceived shortcomings.. :D Jul 05 09:34:49 I just read https://developer.android.com/design/building-blocks/tabs.html about the two types of tabs. Jul 05 09:34:51 it's not about being defensive Jul 05 09:35:04 I think my tabs fit into the 'Fixed Tabs' category, however, some text is just too long in some languages. What is the usual solution for this problem? singleLine=true? Jul 05 09:35:04 but you simply ignore a lot of things to make your point :) Jul 05 09:35:25 Android apps rarely have a single entry point and that's why a "main()" is not enough Jul 05 09:35:31 romainguy_: i saw your point about permissions, etc.. i didn't see a technical argument for having a separate file to maintain there though.. Jul 05 09:35:36 tapas: you know what's redundant? C/C++ header files :P Jul 05 09:35:58 tapas: the other way to do it would be to spread out all this information throughout various classes in the code base Jul 05 09:36:00 tapas: where do you suggest they should be put then? Jul 05 09:36:02 making it hard to maintain Jul 05 09:36:09 and inefficient for the package manager to process at install time Jul 05 09:36:30 it also lets app stores discover that information easily to present it to the user (esp. permissions) Jul 05 09:37:14 i agree that permission handling this way does have some merits.. Jul 05 09:37:23 I think the manifest is really nice, you want to use the internet? One line and you can use it and the appstores know you want it Jul 05 09:37:31 you should also look into all the things you can declare in the manifest beyond permissions Jul 05 09:37:39 we've actually thought about using annotations on activities Jul 05 09:37:55 but it can become quickly messy too as soon as you want to handle several types of intents, mime types, etc. Jul 05 09:37:59 or meta data Jul 05 09:38:00 yeah, we use it for stuff on activities, too, like configChanges, orientation, etc.. Jul 05 09:38:12 tapas: not just that but intent filters for instance Jul 05 09:38:18 or services Jul 05 09:38:24 content providers Jul 05 09:38:27 etc. Jul 05 09:38:48 I am not saying the manifest is perfect, far from it Jul 05 09:39:00 but it scales pretty well for complex apps Jul 05 09:39:05 hm, this kind of reminds me of an interesting problem I had Jul 05 09:39:18 I have a support library project defining a couple of activities Jul 05 09:39:25 that are used in a few apps Jul 05 09:39:26 and some of the shortcomings of this approach (adding an entry for each new activity) is easily addressed by the tools (ADT) Jul 05 09:39:34 manifest-like files are used all over the place. Wordpress themes, javascript packages, etc. Jul 05 09:39:47 BlackIce_: .NET uses manifests too I believe Jul 05 09:39:54 now, I want to subclass one of these activities (the launcher entry point activity, because I need to do a license check for this particular app) Jul 05 09:40:00 hello all, I have a little question. is there a way to use getApplicationContext within a static function? Jul 05 09:40:11 anyway, good night :) Jul 05 09:40:18 nn Jul 05 09:40:21 or a way to get the context in a static function? Jul 05 09:40:33 thepoosh: yes, pass it as an argument Jul 05 09:40:39 to the static function Jul 05 09:40:40 romainguy_: especially with complex apps it gets kinda annoying to have to maintain an entry for each activity.. Jul 05 09:40:54 I'm calling this static function from a different static function Jul 05 09:40:55 anyways, i'm coming out of this discussion smarter than before.. so thanks for your insights.. Jul 05 09:41:04 which is called from a deifferent function Jul 05 09:41:09 thepoosh: why is the function static in the first placE? Jul 05 09:41:13 if you need a context Jul 05 09:41:23 and btw: i am getting payed at my job for researching my work environment, too.. so this is part of it :D Jul 05 09:41:53 MDijkstra: I'm using a server calling class that is purly static Jul 05 09:41:59 thepoosh: ie, the instance is usually meant to be the context Jul 05 09:42:11 a server calling class? Jul 05 09:42:21 romainguy_: oh and about the ADT tools for managing the redundant part. my being triggered to come here and rant a little was due to ADT destroying parts of my manifest when moving some activities to other packages :D Jul 05 09:42:24 I have in my app lots of server requests Jul 05 09:42:27 tapas: annoying is way better then less-transparent "magic" Jul 05 09:42:43 I use static functions that are called from my different AsyncTasks Jul 05 09:42:55 thepoosh: then don't do that Jul 05 09:42:58 and I've seen way worse XML config-like files than the manifest tbh, it's quite readable and small Jul 05 09:43:10 BlackIce_: that might be a good point actually, once it is established that the alternative less redundant routes involve non-obvious magic nessecarily Jul 05 09:43:11 thepoosh: create an object to hold the handling methods Jul 05 09:43:11 MDijkstra: why not? Jul 05 09:43:24 thepoosh: because of the problem you've now run into Jul 05 09:43:45 :S Jul 05 09:43:53 this is wierd Jul 05 09:43:54 hello all, a dumb question. How to access developer console in d.android.com? I can't find it anymore Jul 05 09:44:13 thepoosh: no, it makes perfect sense, you're trying to do something for which you require access to instance state Jul 05 09:44:18 from a class/static method Jul 05 09:44:28 MDijkstra: are you aware of a different static way to test for internet connection existence? Jul 05 09:44:42 thepoosh: why do you want them to be static so badly? Jul 05 09:44:57 I don;t want to re-write the hole class Jul 05 09:45:02 yeah, well... Jul 05 09:45:04 to many changes in the whole app Jul 05 09:45:13 all the function calls Jul 05 09:45:19 it's just a matter of Jul 05 09:45:31 I actually should start working with singleton instead of static Jul 05 09:45:37 SomeClass.someHandler() Jul 05 09:45:48 mHandler.someHandler() Jul 05 09:46:02 where mHandler=new HandlerClass(this) Jul 05 09:46:06 where this is the context Jul 05 09:46:11 huge pain in my ass Jul 05 09:46:28 to be honest, you're blaming the framework for not designing this properly Jul 05 09:46:33 then running into a brick wall Jul 05 09:46:38 :D Jul 05 09:46:40 anyway, good luck Jul 05 09:46:43 thepoosh: Eclipse's refactoring tools are quite nice and you could setup the class in your base activity class or something like that Jul 05 09:46:57 MDijkstra: Dijkstra's algorithm? :P Jul 05 09:47:00 MDijkstra: STOP RUINING MY FEELING SORRY FOR MYSELF!! Jul 05 09:47:11 X-suriV: my last name :p Jul 05 09:47:23 not the smartest choice as an irc nick, perhaps Jul 05 09:47:33 lol Jul 05 09:47:45 Don't worry, half of NL is called Dijkstra :P Jul 05 09:47:51 MDijkstra: are you related? Jul 05 09:47:56 probably not Jul 05 09:48:05 hmmmm Jul 05 09:48:09 as TheTrash said, half of the dutch have the dijkstra family name Jul 05 09:48:18 thats wierd Jul 05 09:48:29 well, I have a pretty unique last name Jul 05 09:48:39 Every one of them, a genius! Jul 05 09:48:43 (not poosh) Jul 05 09:48:47 ur last name is a uuid Jul 05 09:48:48 lol Jul 05 09:49:10 ixc: not exactly, I have some relatives Jul 05 09:49:14 but close enough Jul 05 10:08:11 How could I find out what a specific error code means? For example, when MediaRecorder returns: "start failed: -2147483648" Jul 05 10:12:38 Mikk36|work: I don't know but I found media player error codes here https://github.com/android/platform_external_opencore/blob/master/pvmi/pvmf/include/pvmf_return_codes.h Jul 05 10:14:23 that "-1" seems also nice, just a general failure Jul 05 10:14:51 But where does that number come from then, if it's not defined there Jul 05 10:15:26 well -1 is 0xFFFFFFF in twos complement Jul 05 10:16:44 "in twos complement"? Jul 05 10:18:54 Binary, do you read it? Jul 05 10:19:09 yeah, i get that it's hex Jul 05 10:19:54 The binary representation of -1 is 0xFFFFFFFF Jul 05 10:19:56 https://en.wikipedia.org/wiki/Two's_complement Jul 05 10:20:10 See the table. (even though 8 bit, it applies to 32bit aswell) Jul 05 10:20:33 But let me read your question thoroughly first :D Jul 05 10:21:06 at lest it's not IEEE 754 Jul 05 10:21:34 I understand that the error number is the lowest of 32bit signed numbers Jul 05 10:22:33 What exactly returned this error? Jul 05 10:22:34 -1 is still weird Jul 05 10:22:42 "start failed: -2147483648" Jul 05 10:22:44 MediaRecorder is a class, I doubt it returns anything. Jul 05 10:22:55 that appears in logcat Jul 05 10:23:06 the way i usually did errors was by bit flipping and then #define SUCCESS 0 Jul 05 10:23:51 then you can say #define BATMAN_NOT_FOUND 0x02 and then just say if (BATMAN_NOT_FOUND & my_err) ... Jul 05 10:24:44 good day Jul 05 10:24:56 I eventually found out that I had not previously released the MediaRecorder properly, which caused the error to pop up, but i'd still like to know what that number exactly means Jul 05 10:25:12 or maybe find a source where other possible errors might be written Jul 05 10:25:39 or if it's not directly defined, how that number is made up Jul 05 10:30:22 Let's see, the number you encountered is 0x80000000 Jul 05 10:30:29 yeah Jul 05 10:40:22 "0x80000000 (-2147483648) represents minimum value for signed integers for 32-bit machine" http://www.crazyengineers.com/community/threads/what-does-0x80000000-represent.6579/ Jul 05 10:40:51 Mikk36|work: Hmm, I couldn't find it in the MediaRecorder implementation. Jul 05 10:43:41 http://www.youtube.com/watch?v=8UVNT4wvIGY Jul 05 10:43:48 one year since the upload :P Jul 05 10:43:56 sorry for off topic Jul 05 10:44:30 Mikk36|work: http://androidxref.com/2.3.6/xref/frameworks/base/media/libmedia/mediarecorder.cpp#462 Jul 05 10:44:32 This one maybe Jul 05 10:46:39 http://androidxref.com/2.3.6/xref/frameworks/base/include/utils/Errors.h Jul 05 10:46:43 that's the list Jul 05 10:46:50 http://androidxref.com/2.3.6/s?refs=UNKNOWN_ERROR&project=frameworks = 0x80000000 Jul 05 10:47:02 UNKNOWN_ERROR Jul 05 10:47:45 Yeah, but I don't see MediaRecorder::start() returning UNKNOWN_ERROR Jul 05 10:48:06 seems to be set in http://androidxref.com/2.3.6/xref/frameworks/base/media/libmedia/mediarecorder.cpp#MediaRecorder::http://androidxref.com/2.3.6/s?refs=reset&project=frameworks() and http://androidxref.com/2.3.6/xref/frameworks/base/media/libmedia/mediarecorder.cpp#MediaRecorder::http://androidxref.com/2.3.6/s?refs=close&project=frameworks() Jul 05 10:48:18 it's set in reset and close Jul 05 10:48:27 those links from browser are killing me Jul 05 10:48:37 so if it calls reset() it is set Jul 05 10:49:04 But start() doesn't call reset() Jul 05 10:49:14 And we're lookng at line 460, no? Jul 05 10:49:35 mm Jul 05 10:50:14 was there an error text? Jul 05 10:50:39 just a sec, i'll recreate the error :) Jul 05 10:50:41 ok Jul 05 10:53:30 https://dl.dropbox.com/u/81066738/Mikk/start_failed.txt Jul 05 10:55:05 I would do a wild guess that the error comes from http://androidxref.com/2.3.6/xref/frameworks/base/media/libmedia/mediaplayer.cpp Jul 05 10:55:20 mediaplayer? Jul 05 10:55:47 #include Jul 05 10:56:03 Just a sidenote, I'm on 4.0.4 Jul 05 10:56:04 it includes its header anyway Jul 05 10:57:30 luyang cool vid Jul 05 10:57:41 And all this messing around to get the video recorder to perform at full performance :P Jul 05 10:57:44 is there a nullpointerexc lurking? Jul 05 10:58:07 uncaught exception (group=0x2b4e61f8) Jul 05 10:58:28 The error went away when I released previous MediaRecorder prior to creating a new one Jul 05 10:58:29 probably not Jul 05 10:58:38 now i wish i could sing luyang Jul 05 10:58:44 you solved it? Jul 05 10:58:50 But to find out that I had to release it through such an odd error is fun Jul 05 10:58:51 gaz`: :) Jul 05 10:59:01 yeah, I managed to do it a bit ago Jul 05 10:59:01 true Jul 05 10:59:33 All this trouble to get some extra performance by killing the surfaceview after the recording starts Jul 05 10:59:49 extra performance -> to get stable 30fps instead of fluctuating and averaging 22fps Jul 05 11:00:35 and that bad performance comes from the garbage collector cleaning up behind the video preview Jul 05 11:00:58 so killing the surface solves the performance hit :P Jul 05 11:01:30 What's shown on the SurfaceView? Jul 05 11:01:43 The live stream of the video? Jul 05 11:02:19 yeah, it's a requirement of Android Jul 05 11:02:27 One has to show the preview of the recorded video Jul 05 11:02:33 without it it won't start recording Jul 05 11:02:44 So i give it a preview window and let it start recording Jul 05 11:02:54 and right after it starts i kill the preview surface Jul 05 11:03:09 I don't need the preview when it records in my car Jul 05 11:03:19 Ah, I see. Jul 05 11:03:25 How do you kill the surface? Jul 05 11:03:34 make it's visibility "GONE" Jul 05 11:03:49 surface fires the surfaceDestroyed event :) Jul 05 11:03:57 Ah, nice Jul 05 11:04:31 bad thing is, I haven't figured out a way to create a new working surface from a Service Jul 05 11:04:42 so I can only record once in a service Jul 05 11:04:55 How do other camera apps do it? I'm sure _some_ can get 30fps without doing that? Jul 05 11:05:10 propably a decent version of a rom Jul 05 11:05:21 I'm on CM9, which isn't all that good yet on my phone :) Jul 05 11:05:24 it's improving Jul 05 11:05:59 Any talented guys here can answer this? http://stackoverflow.com/questions/11271469/ssl-session-not-being-reused-in-android-webview Jul 05 11:06:11 it has a bounty too :D Jul 05 11:14:26 Help Jul 05 11:14:35 Bight: shoot Jul 05 11:15:08 How do I make create a searchview programmatically Jul 05 11:15:57 I was using someones searchperformlistener so searchvciew works on 2.x Jul 05 11:16:19 I'm guessing I cant use menu actions anymore Jul 05 11:16:49 i have this new method "public void performSearch(String query) {" i wanted to set it up Jul 05 11:18:35 is there a Cursor wrapper that i can use to sync access to the cursor Jul 05 11:18:36 ? Jul 05 11:18:42 thread-safe wise Jul 05 11:18:59 luyang: you there? Jul 05 11:19:16 yes Jul 05 11:19:42 can you help with my issue? Jul 05 11:20:09 not at the top of my head but I can try to help you Jul 05 11:22:20 thanks luyang :) only started making music a week ago hehe Jul 05 11:22:52 gaz`: you're welcome. Making music huh? Sounds great. I bought a Zoom H2n last week. Jul 05 11:23:08 yeh im making my own album of music/visuals Jul 05 11:23:22 Can anyone tell me how to make webview control to reuse the ssl session? Jul 05 11:23:25 all videos using particle engines :) whats a zoom h2n? Jul 05 11:23:37 Its making handshakes every time!! Jul 05 11:24:28 gaz`: it's a portable mic with (I think) 5 mics for surround recording and good quality etc Jul 05 11:25:52 gaz`: http://www.youtube.com/watch?v=iTthJI0rDnk is a parody of the song I previously posted by accident Jul 05 11:26:59 I have an issue with a NullPointerException, but I'm sure there are no null values http://pastie.org/private/en30jdoumi4rxda8bwdh4a Jul 05 11:27:17 Line 24 is the exception line Jul 05 11:27:56 Stepping through until that line both the object I'm calling and the object I'm using as a parameter exist Jul 05 11:27:56 Knossos: Jul 05 11:28:10 Knossos: you there? Jul 05 11:30:02 (Added the exception to the paste) Jul 05 11:30:26 shame u cant get compile errors for xml issues Jul 05 11:31:07 luyang cool Jul 05 11:31:37 gaz`: you mean this? http://v.26vv.cn/s_sp_d_sina_d-d/v/b/79745570-1649608703.html Jul 05 11:31:57 http://www.youtube.com/watch?v=iTthJI0rDnk <— non chinese lol Jul 05 11:32:24 haha yeh Jul 05 11:32:53 I can watch it over and over and it is funny every time Jul 05 11:33:16 luyang my last "tune" and video :) http://www.youtube.com/watch?v=H429FCXIG2g&list=PL5CE0E6692563CE5C&index=3&feature=plpp_video Jul 05 11:33:48 that's one crazy head you have there Jul 05 11:33:55 yeh!! Jul 05 11:34:02 very cool eh Jul 05 11:34:10 yea Jul 05 11:35:10 using trapcode particular and after effects Jul 05 11:35:36 i appear to be obsessed with particle engines Jul 05 11:35:44 especially those which can react to music Jul 05 11:37:08 Why does the ICS emulator look pixelated? Is it something to do with pixel density? Jul 05 11:38:29 any way for make a cropped bitmap without load full bitmap? with bitmapfactory.options looks i cant select area Jul 05 11:41:15 ixc: there is a method for decoding regoins of a bitmap without fully loaded the bitmap if that is what you are looking for Jul 05 11:42:10 ixc: BitmapRegionDecoder Jul 05 11:42:15 thanks, i check it Jul 05 11:44:16 its looks thats i need, only problem is api level 10 :) Jul 05 11:46:08 funny you should say that, i think i remember romainguy responding to someone in a so post who said what you said, you can just copy the method into your app from the source Jul 05 11:46:30 it is not so complicated a function Jul 05 11:48:30 thats im try do some minute ago :) Jul 05 11:48:50 http://stackoverflow.com/questions/4815192/is-it-possible-to-chop-a-bitmap-to-small-pieces-without-loading-the-entire-thing Jul 05 11:48:59 here is that u say Jul 05 11:49:00 :) Jul 05 11:49:14 is there a way to pre-allocate memory for say 9 bigish bitmaps ? Jul 05 11:49:36 ixc: goodluck! Jul 05 11:49:44 I have an activity that will generate an in-memory arraylist of 9 bitmaps each @ 1920x1080 Jul 05 11:49:47 lasserix: thanks :) and for point too :) Jul 05 11:49:59 trying to speed that up by avoiding gc Jul 05 11:50:02 any ideas? Jul 05 11:50:35 codefriar: what u need do with bitmap? u can generate sample size with it if u no need full image Jul 05 11:50:57 like i do screen size from image, and when user zoom, i wanna crop selected area Jul 05 11:51:05 thats why i need this BitmapRegionDecoder Jul 05 11:51:25 ixc, unfortunately the method in question is mediaMetaDataRetriever's .getFrameAtTime() which will return the entire frame, in this case 1920x1080 Jul 05 11:53:49 no idea for MediaMetadataRetriever's getframeattime, sorry Jul 05 11:56:59 Hi Jul 05 11:57:41 I'm looking at bunch of lint errors telling me that handlers should be declared static Jul 05 11:58:05 anybody can help me put a bufferedreader into a array' Jul 05 11:58:28 how can I use handler as static? I can't get it Jul 05 11:58:30 asdf Jul 05 12:05:28 yhpark: is your handler an inner class? Jul 05 12:05:46 just member varable Jul 05 12:05:55 of some Activity class Jul 05 12:06:12 so what is the best practice? Jul 05 12:07:10 I thought Handler should be used when some works done on another thread and some works has to be done on ui thread Jul 05 12:08:21 http://stackoverflow.com/a/11336822/898056 Jul 05 12:08:27 What I've just found Jul 05 12:08:31 which is very weird Jul 05 12:09:13 what is the exact warning Jul 05 12:10:57 wongk: It says "This Handler class should be static or leaks might occur" Jul 05 12:11:22 and you are not subclassing handler? Jul 05 12:12:00 yes I'm subclassing Jul 05 12:12:11 ok so back to my original question Jul 05 12:12:19 [08:05] yhpark: is your handler an inner class? Jul 05 12:14:18 wongk: well it's like new Handler() { @Override public void handleMessage() { ... } } Jul 05 12:14:38 so, yes Jul 05 12:14:56 do you know what it means to make a nested class static? Jul 05 12:15:05 I didn't know it's called inner class Jul 05 12:15:12 yes Jul 05 12:15:23 that's what the warning wants you to do Jul 05 12:16:02 but how can I change to static inner class when I have to make some changes to what outer class have (Activity) Jul 05 12:17:48 it seems that you need a weak reference to the activity Jul 05 12:18:40 well I want to know if it's best practice Jul 05 12:19:00 lint would seem to suggest so Jul 05 12:19:16 Why does my ICS emulator look pixelated? Is it something to do with pixel density? Jul 05 12:20:31 ? lint seems not suggesting anything.. Jul 05 12:20:57 lint suggests that a handler that references an activity may cause a memory leak Jul 05 12:21:40 Is there a reason PreferenceGroup would get a null preference manager while I'm trying to add a Preference to a PreferenceCategory? Jul 05 12:21:57 At least that seems to be what's happening http://pastie.org/private/en30jdoumi4rxda8bwdh4a Jul 05 12:22:01 yes but it's not telling me to use WeakReference, right? Jul 05 12:22:22 it's telling you to not reference the activity... Jul 05 12:22:39 using a weak reference accomodates that Jul 05 12:22:56 hmm Jul 05 12:23:38 yeah WeakReference might be a solution Jul 05 12:23:39 .. Jul 05 12:38:28 is there a way to see the URL an app uses Jul 05 12:38:33 for streaming radio Jul 05 12:39:43 yes I read that homophobes might be gay Jul 05 12:40:51 anyway, so is tcpdump the way to go? Jul 05 12:41:12 charles Jul 05 12:42:08 havchr: what Jul 05 12:43:21 luyang: it's an app. Jul 05 12:43:27 oh ok Jul 05 12:44:01 link? Jul 05 12:50:24 Does anyone else have problems with the emulator looking pixelated? Jul 05 12:51:30 is it scaled, maybe? Jul 05 12:52:02 no, I've tried different scaling but same result Jul 05 12:52:15 screenshot? Jul 05 12:53:05 ok will tak one. btw this is only on ICS (240 density), 2.1 looks fine Jul 05 12:58:29 ahh, AVD is so flakey, having problems getting it started... Jul 05 12:58:42 takes some time :) Jul 05 13:00:31 Is there a way to play .asx on Android? Jul 05 13:00:36 stream music Jul 05 13:02:28 luyang: probably not natively... I imagine any of the ffmpeg-based players can play it, though. Jul 05 13:02:52 If you mean in your own app, then I'm guessing you'll have to roll your own ffmpeg-based player. Jul 05 13:03:24 TheTrash: ok good to know I'm thinking of svn checkout http://aacplayer-android.googlecode.com/svn/trunk/ aacplayer-android-read-only Jul 05 13:03:48 http://aacplayer-android.googlecode.com/svn/trunk/jni/ ffmpeg-based Jul 05 13:03:54 tes thank you Jul 05 13:04:01 yes seems to mach my link ;P Jul 05 13:04:03 match Jul 05 13:04:11 Hey I was trying to use the google maps I had added the internet and maps in Androidmanifest.xml Jul 05 13:04:21 Oh I guess you already saw it was ffmpeg-based :P Jul 05 13:04:21 but when I am trying import com.google.android.maps.MapView; Jul 05 13:04:30 then its not able to resolve it Jul 05 13:04:38 Mikk36|work: hmm I think it's something to do with the GPU emulation. I turned it off as it wouldn't start it seems to load fine with no pixelation! :/ Jul 05 13:05:09 TheTrash: yes I googled aac android and found it Jul 05 13:06:35 niteshnarayanlal: did you set the Build SDK to Google APIs? Jul 05 13:07:09 yeap Jul 05 13:09:22 niteshnarayanlal: are you in Eclipse? Jul 05 13:09:29 yeap Jul 05 13:09:50 DOes it show "Google APIs" somewhere in the project explorer? Jul 05 13:12:44 TheTrash: I use a rtsp:// link instead which works Jul 05 13:12:54 Oh, interesting Jul 05 13:13:10 not the http link in the asx file but a different link Jul 05 13:13:22 hello Jul 05 13:14:07 i know its not good programming practice. but what will happen if i keep calling getWritableDatabase(), but dont call close? Jul 05 13:17:33 are string resources global (within R, obviously) or can they be namspaced based on activity or something? Jul 05 13:17:43 Global Jul 05 13:18:22 does that not becom annoying in resoucse heavy apps (noob alert!)? Jul 05 13:18:40 It does, sometimes. Jul 05 13:18:49 I "namespace" a lot in my variable names. Jul 05 13:18:59 thanks. At least I understand how it works Jul 05 13:19:12 yeah, I guess you can do that. Jul 05 13:20:05 TheTrash, internet problem Jul 05 13:20:15 no there is nothing as such under project Jul 05 13:20:19 although in with that method, JS - or even bash - is namespacable Jul 05 13:20:39 niteshnarayanlal: hm something wrong then Jul 05 13:20:46 is there any way to wake up the phone when installing an app onto it form eclipse? Jul 05 13:20:53 unlock the screen etc Jul 05 13:21:08 Try right click on the project > Android > fix project properties, then a project > clean Jul 05 13:21:36 TheTrash, yeah but not sure what Jul 05 13:21:45 as I have installed Google APIs Jul 05 13:22:01 mbrevda: well, you're comparing languages to a framework... but it is annoying, and the fact that you can't use subdirs as well. Jul 05 13:22:42 And here I though being so modern Android was all thought out Jul 05 13:22:43 * mbrevda learns. Jul 05 13:22:50 My layout dir is full of layout_*, listrow_*, etc Jul 05 13:23:14 It's not a bad system, apart from the lack of namespacing. Jul 05 13:24:13 it looks ok (at least so far). I'm not complaining, btw. Just learning Jul 05 13:24:36 It's ok to complain, there's a lot to complain about, actually :P Jul 05 13:25:10 hey - dont spoil the new kid just yet :) Jul 05 13:31:14 I recently did an emulator build and am trying to play a video on it. Jul 05 13:31:24 I'm having trouble finding a video it can play. Jul 05 13:31:39 Anyone know what formats / clips it might support? Jul 05 13:44:37 TheTrash, I had added the jar file from build path Jul 05 13:44:45 but still not able to import the class Jul 05 13:45:09 Don't do that Jul 05 13:45:15 Did you do what I suggested? Jul 05 13:48:47 TheTrash, yeap Jul 05 13:49:18 but the thing is , the problem is still there Jul 05 13:50:27 Project Properties > Android what does that say? Jul 05 13:51:58 TheTrash, I think I am getting your question correctly Jul 05 13:52:05 it shows the project build target Jul 05 13:52:15 Yes, what is it? :P Jul 05 13:52:24 and I am developing for Android 4.1 Jul 05 13:52:45 there is a label with Android+Google APIs Jul 05 13:52:52 If it says "Android 4.1" then it's not set right, it has to say Google APIs. Jul 05 13:53:09 The one that's selected, anyhow. Jul 05 13:57:08 hi Jul 05 14:00:15 I have a ListView and some buttons in the ListViewItem. when I click the button the button should be unvisible. but when I scroll down to the listview other buttons on listViewItems are gets in visible too. how can I fix it? Jul 05 14:02:33 vudu: you have to manage button visibility state somewhere and update it in getView(). ListView does weird things to optimize performance, this is a consequence. Jul 05 14:02:42 TheTrash, thanks ,that was the problem Jul 05 14:04:07 TheTrash: so I have to keep a list to hold the buttons invisible is that right? Jul 05 14:04:21 vudu: basically, in your getView, do if(conditionButtonVisible){ button.setVisibility(View.VISIBLE) } else { buttonSetVisibility(View.GONE) } and on buttonpress, mutate the object in your item list instead of the view. Jul 05 14:04:27 did you know you cant do a gtalk video call on at&t ? Jul 05 14:04:35 niteshnarayanlal: oh, good Jul 05 14:05:52 att is good for something? Jul 05 14:06:03 it fucking blokcs it Jul 05 14:06:14 o CANT Jul 05 14:06:15 haha Jul 05 14:06:42 Hey, if you get intimidated by having choice.. Jul 05 14:06:44 do they have there own video chat or smt? Jul 05 14:07:18 not on the galaxy nexus Jul 05 14:07:42 well galaxy nexus isnt a "supported" device :P Jul 05 14:07:50 nether is my galaxy note hehe Jul 05 14:07:57 i thgouth galaxy nexus was google's way of telling carriers to gtfo Jul 05 14:08:24 & blocking gtalk video is att's way of saying the same :P Jul 05 14:08:30 but yes it is Jul 05 14:09:07 everyone should just encrypt everything and send it all over port 443 Jul 05 14:09:09 then no one can do anything Jul 05 14:09:28 TheTrash: I am trying to figure out the conditionButtonVisible part. how would I know that? Jul 05 14:09:31 lol Jul 05 14:09:44 canadiancow|work i wish Jul 05 14:10:07 att does dpi Jul 05 14:10:09 lame Jul 05 14:10:11 epic Jul 05 14:10:12 lame Jul 05 14:10:53 vudu: well, something is keeping the condition... either your "business objects", i.e. the items in your listview, or if not, you'll have to keep them somewhere (possibly a List or something). Jul 05 14:11:49 TheTrash: thank you very much Jul 05 14:11:53 vudu: say you have a "mark" button, then it becomes obvious: your objects will have a private boolean isMarked, and you can just set that. Jul 05 14:26:49 Is it appropriate to have a list of a complex datasource as underlying data for a view adapter? Jul 05 14:27:17 like List Jul 05 14:32:59 Does anyone know how to display a dialog from a Service, over whatever app that is currently on the foreground? (I know it's not recommended, no need to remind me :-) ) Jul 05 14:35:54 Hi. I want to drawText to a canvas, but the text shall exactly fit a given Rect. How can I do it? What I found is paint.measureText, but this gives me only the width. Can someone point me in the right direction? Jul 05 14:37:48 If I set a Textsize of 50, does this mean the Text is 50 pixels hight? No matter what Font is used? Jul 05 14:40:24 hthg_: That's kinda what notifications are for Jul 05 14:40:53 fornext: you'll need to use FontMetrics to determine how large a font will draw given a particular size. Jul 05 14:41:04 SimonVT: I know, but I want to show a popup, like the "Low Battery" popup Jul 05 14:42:24 if your font size would be too large, make it smaller and try again. Jul 05 14:42:36 lov, is this just for android, or works with a java canvas too? Jul 05 14:42:43 I don't think that there's a method that will actually give you the appropriate font size to use for a string for a certain width Jul 05 14:42:54 I have no idea what Java's canvas does, sorry. Jul 05 14:43:24 hthg_: Rather think about what the user wants Jul 05 14:43:33 Your app is one amongst, sometimes, several hundred Jul 05 14:43:36 It's not that important Jul 05 14:43:53 hthg_: use the notification bar! Jul 05 14:44:07 oh someone already said that Jul 05 14:44:48 SimonVT, luyang: I would also go for just the notification, but my employer wants the popup Jul 05 14:44:49 hthg_: you should PROBABLY use a notification. Jul 05 14:45:01 If, for whatever reason, you choose not to, you can always start an Activity, or a Dialog THEMED activity Jul 05 14:45:02 lov: I'm already using a notification, but it's not enough Jul 05 14:45:22 enough for what? Jul 05 14:45:29 shit that pops in my face gets uninstalled promptly Jul 05 14:45:34 hthg_: have you tried to convince your employer that this is a bad idea? Jul 05 14:45:34 Tell me the app so I can 1star it as soon as you publish :p Jul 05 14:45:53 or, my favorite, start an Activity with a Theme of Translucent.NoStatusBar, and have it show a dialog. Have dismissing the dialog finish the activity. Jul 05 14:45:59 Bam, AlertDialog. Jul 05 14:46:06 lov: I like Jul 05 14:46:38 lov: I'll try that, thanks! Jul 05 14:46:56 you're welcome. Jul 05 14:47:01 Again, STRONGLY consider what you're doing. Jul 05 14:47:07 Interrupting the user is never viewed favorably. Jul 05 14:47:12 can someone help me with DialogFragment? For some reason my onSaveIntanceState is never called Jul 05 14:47:17 The only reason you should do this is if the user explicitly asks for you to do it. Jul 05 14:47:23 it used to work fine, but something has broken it Jul 05 14:47:29 otherwise, you're likely to see poor reviews and low install rates. Jul 05 14:47:33 I'm using the compatibility lib Jul 05 14:47:38 the scenario I'm working on is that the user won't be able to do anything useful anyways Jul 05 14:47:45 ... Jul 05 14:47:50 ok, just tell us. Jul 05 14:47:54 What exactly are you showing the dialog for? Jul 05 14:47:59 haxxor Jul 05 14:48:01 If it's an advertisement, please get out. Jul 05 14:48:20 User is about to tap a button. You interrupt and put up a dialog box with a button on it, that ends up right over the button the user was going to tap. The user taps your button instead. People *hate* that. Jul 05 14:48:27 mobile internet, but no active product to access the internet Jul 05 14:48:27 I'm using the DialogFragment to use AlertDialog via onCreateDialog() Jul 05 14:48:43 ..... huh? Jul 05 14:48:57 hthg_: that message can still be in the notification bar Jul 05 14:48:58 are you just telling the user "hey I can't do something because there's no connectivity"? Jul 05 14:49:00 the user sees the connection is up, but can't access the internet Jul 05 14:49:04 the dialog shows fine but onSaveInstanceState gets never called when I rotate phone Jul 05 14:49:05 because that's EXACTLY what a notification is for. Jul 05 14:49:23 also the dialog is "lost" after rotate Jul 05 14:49:34 not created again Jul 05 14:49:37 yes I think you(r boss) got the wrong idea about the android user experience dialogs vs notifications Jul 05 14:49:43 i agree Jul 05 14:49:54 so refuse to do it Jul 05 14:49:55 but that's the way it goes Jul 05 14:50:00 have some integrity mate Jul 05 14:50:07 can't afford it Jul 05 14:50:10 I would refuse Jul 05 14:50:13 So user is playing an offline game, loses internet connectivity, and your app interrupts the game? Jul 05 14:50:18 good thing you don't work for his company I guess Jul 05 14:50:24 I would quit Jul 05 14:50:38 bosses with such bad judgement Jul 05 14:50:39 when I dismiss a ProgressDialog, the dialog goes away, but the screen behind it is dim and no longer responds to UI events. any ideas? it seems like the ProgressDialog is not fully going away... Jul 05 14:50:43 Tell your boss that the product will get terrible reviews if you do it that way Jul 05 14:50:57 hey guys i was testing texture repeating on an android device and it worked fine, but then i tried on a tablet and it started clamping instead of repeating. any idea why? Jul 05 14:50:59 PeteS: you're probably blocking the UI thread... Jul 05 14:51:00 SimonVT: yes, that's what it would be like Jul 05 14:51:09 (hint: use an AsyncTask or something to do your background action in a background thread) Jul 05 14:51:14 Your boss should be happy you tell him that people will hate it… If he doesn't care he has issues Jul 05 14:51:14 PeteS: Make sure you use showDialog/dismissDialog OR, and this is recommended, DialogFragment Jul 05 14:51:15 lov: it's all happening in an AsyncTask Jul 05 14:51:20 orly? Jul 05 14:51:21 And do your stuff from the ui thread Jul 05 14:51:22 The companies stock will suffer due to poor sales, and he will lose his bonus Jul 05 14:51:31 Mojito: it's an optimistic view of the world. Jul 05 14:51:34 lov: yup. when I dismiss it, I'm doing it from onPostExecute Jul 05 14:52:00 PeteS: strange. Offhand, I don't know. Does it pause on the dismiss method, or can you continue after that? Jul 05 14:52:05 do you know what the next UI event in the handler would be? Jul 05 14:52:06 Well, thanks! I'll see if this works Jul 05 14:52:35 hthg_: Hopefully you don't have a lot of users :p Jul 05 14:52:43 exactly… Jul 05 14:53:00 it feels like a malicious app Jul 05 14:53:06 I doubt it's malicious Jul 05 14:53:16 it's just probably poorly planned by design, if there even is a design team Jul 05 14:53:24 regardless, I doubt that "people will hate it" is going to affect anything they do Jul 05 14:53:25 yeah I guess you're right Jul 05 14:53:28 lov: I'll try some more to trace what it's doing after the dismiss… but as far as I know it shouldn't do anything, the task should finish and die, and I should get back to the rest of the app. as it is now I have to restart the whole thing to get out of it Jul 05 14:53:41 Facebook decided to start changing people's contact emails randomly. Jul 05 14:53:47 People are not deleting their facebook accounts en maasse. Jul 05 14:53:49 *masse Jul 05 14:54:06 PeteS: yeah, that's really strange. It seems like something is blocking your UI thread. Jul 05 14:54:07 Facebook also put 2 extra icons in your app drawer Jul 05 14:54:09 Oh, know what. Jul 05 14:54:10 They quickly changed that :p Jul 05 14:54:19 PeteS: attach the debugger, when your app hangs, pause the UI thread and see what's going on Jul 05 14:54:36 lov: ah yes, thanks Jul 05 14:55:03 * lov shrugs Jul 05 14:59:37 What if people are on mobile network, it will cost money to share and play shared maps. Maybe I should make a setting to only allow online if on wifi. Or do you think users should be aware of this themselves? Jul 05 15:00:39 Huh? Jul 05 15:01:01 hmm Jul 05 15:01:06 is it possible to write an intent filter handling ACTION_SEND for mime-type "text/plain" for all http hosts *except* www.youtube.com ? Jul 05 15:01:14 modern android is supposed to manage users' data limits and they can disable data on mobile if they need to. Jul 05 15:01:24 Ah, okay Jul 05 15:01:25 Kake_Fisk: yes, you should probably display a confirm dialog if you're going to be using a lot of data. Jul 05 15:01:31 lov, thx. Fontmetrics helps. Jul 05 15:01:39 it doesn't do harm to *warn* people about it, I agree. Jul 05 15:01:39 It's not going to be a lot. It's very little, I think Jul 05 15:01:40 that said, it really depends on what "a lot" of data is. Jul 05 15:01:49 How much of the storage does Android take up on a tablet, before I install any apps? Jul 05 15:01:57 42 Jul 05 15:02:09 Mojito: it is bread-boxed size Jul 05 15:02:16 *bread-box sized Jul 05 15:02:56 But I'll add a little warning then Jul 05 15:02:58 Nexus7 16GB costs $50 more than 8GB, which is expensive for 8GB difference Jul 05 15:04:26 so buy the 8GB. Jul 05 15:04:46 I am trying to figure how much useful memory I get Jul 05 15:04:53 probably 6+ GB Jul 05 15:05:01 maybe 7+? Jul 05 15:05:10 it's probably a split between data and internal sd region Jul 05 15:05:11 I don't have a nexus 7 so I can't tell you Jul 05 15:05:28 Oh, so there is some additional storage where Jelly Bean sits? Jul 05 15:05:47 no Jul 05 15:05:49 but I don't expect android itself to use even 500 MB Jul 05 15:06:05 Really, it is that small? I dodn't know that Jul 05 15:06:16 holy seizure Jul 05 15:06:25 if you look at cyanogenmod's (compressed) distributions of ICS, they are around 120 MB and decompress to 2-3x that Jul 05 15:06:34 my jelly bean galaxy nexus just started strobing multi colors all over the UI Jul 05 15:06:43 Unless JB is somehow incredibly fatter than ICS, I'd expect similar values Jul 05 15:06:55 VJTachyon: did you enable the "show display updates" feature in settings? Jul 05 15:07:03 i didnt think so Jul 05 15:07:28 it enabled it itself Jul 05 15:07:36 i was only in the dev options Jul 05 15:07:50 Party mode Jul 05 15:07:52 but you say that option is now enabled? Jul 05 15:09:59 no it wasnt Jul 05 15:10:04 and i rebooted and it still wasnt Jul 05 15:10:08 but it wasnt strobing anymore Jul 05 15:10:10 very odd Jul 05 15:10:26 should have linked it up to a projector VJTachyon, see if the club goers enjoy Jul 05 15:10:29 make takes around 500 MB before android build starts Jul 05 15:10:45 heh Jul 05 15:10:52 :) Jul 05 15:11:36 then u could crack it open and circuit bend it live Jul 05 15:11:50 but at least it's make done properly. Single process, builds the whole damn thing. Jul 05 15:11:53 whilst tapping away on a gameboy sampler Jul 05 15:12:01 unfortunately dependencies could still be more comprehensive... Jul 05 15:12:34 Hello all. Anyone familiar with Maven? I built my application using "mvn package" successfully. But when I was trying to execute my application, I got "ClassNotFoundException". What could be the problem? Jul 05 15:13:07 do you have some lib to add as dependency ? Jul 05 15:13:27 kevinlu310: I'm going to go out on a limb and say that some class file was not found. Jul 05 15:13:41 it might help if you would at least tell which class file it was Jul 05 15:13:47 is it possible to specify an intent filter handling ACTION_SEND for mime-type "text/plain" without any associated Uri ? Jul 05 15:13:50 don t really know how to do this with maven and android but typically, a ClassNotFoundException with android is that you depend on a lib and forget to package it with your app Jul 05 15:18:48 alankila: I'm trying to use a Cassandra client called hector. The error message is "java.lang.ClassNotFoundException: me.prettyprint.hector.api.Serializer". I guess I should import the hector library correctly when executing my app. But why it could be built but failed at execution? Thanks a lot. Jul 05 15:19:13 well, I'm going to guess that the Serializer class never made it into your APK Jul 05 15:19:18 Should I use HTTPClient if I want to get content of a website? Jul 05 15:19:55 and in java, the build and runtime environment differ, so it's not a surprise that you can build but not run Jul 05 15:19:59 hmm, i must be doing somehting stupid.. for (String fileName : productsDir.list()) { ... } vs. for (File productDir : productsDir.listFiles()) { ...} Jul 05 15:20:09 the former returns 162 strings as expected Jul 05 15:20:13 the latter only a single file Jul 05 15:20:29 i rechecked the docs of both functions.. Jul 05 15:20:38 tapas: hm. Shouldn't happen. :-/ Jul 05 15:20:40 this only happens in the emulator, and not on the real device.. Jul 05 15:20:59 it works great on the real device.. Jul 05 15:21:07 i pulled out hair about this rechecking my code :D Jul 05 15:21:39 out of interest, what file does the listFiles find? Jul 05 15:21:40 i tried to write a small test case package but in that one it works as expected.. Jul 05 15:21:47 the first one created.. Jul 05 15:22:06 it's actually directories which denote the product id Jul 05 15:22:09 it finds 5/ Jul 05 15:22:49 I imagine the underlying OS picture is that both list and listFiles are based on same readdir() so I really have no idea why they would act different Jul 05 15:23:01 alankila: my thoughts exactly Jul 05 15:23:27 i'll try one more thing.. Jul 05 15:23:38 and please do prove me that it's not some iteration bug, write to log producstDir.listFiles().length Jul 05 15:24:08 nah, sometimes just talking about it helps.. Jul 05 15:24:40 i commented out the code in the loop to add to the catalog singleton in the listFiles() case and now it runs through. i must be handling some exception silently.. Jul 05 15:26:47 I'm trying to get the duration of the animation on a sliding drawer so I can make another animation take the same amount of time... but every view in the SlidingDrawer (handle, content, and the SlidingDrawer itself) all return null when I do a getAnimation() Jul 05 15:27:09 anyone know if this is possible? Jul 05 15:29:00 alankila: it was my bug in the end :D Jul 05 15:29:20 Good day. Jul 05 15:29:30 thanks for your insistence on disbelieving it's an android bug :D Jul 05 15:29:41 s/on// Jul 05 15:30:54 Hello. Jul 05 15:31:59 I'm trying to use ActionBarSherlock, but the app crashes instantly (Unable to instantiate activity), so I guess I made an error. I set it up like this (Eclipse): com_actionbarsherlock as a library project built for Android 4.0, referencing support4 as external jar, and a separate test project that uses the library project, is build for 4.0.3, has minSDK = 7 and has just one sherlockActivity that just has the default setContentView(R.layout.main). W Jul 05 15:31:59 hat did I miss? Jul 05 15:32:22 I am experiencing alot of problems currently, where my application takes ages to start up. The default launcher icon shows up next to the app's name(like in any other application), even though I HAVE changed the launcher icon. It stays like this for about 5 seconds. Then, suddenly, it works. Jul 05 15:32:54 mad1231999 did you try uninstalling your app? Jul 05 15:33:12 No. I can try that... 2 sec. Jul 05 15:35:16 People hates a lot of permissions. So is INTERNET and NETWORK_STATE okay? Jul 05 15:35:43 Do people really read the permissions? I'd say it depends on the app. Jul 05 15:35:45 alankila: thanks. So how can I specify my runtime environment? should I use "-cp ...some.jar" that include the Serializer class to run my app? Jul 05 15:36:14 kevinlu310: nah, impossible on android. It just has to be decompressed somehow into the dex Jul 05 15:36:48 A lot of apps use GPS and such for statistics or something :S Jul 05 15:36:50 Kake_Fisk: If you need them, sure.. Jul 05 15:36:55 aight Jul 05 15:36:55 People who install an SSH client might be irritated by address book access, people who install a fart app might not. Jul 05 15:36:56 Any permissions is okay if you need them Jul 05 15:37:00 so I am reading about ActionBarSherlock Jul 05 15:37:03 UnbertKant: Do you think it can have something to do with the fact that I am using the emulator right now? Jul 05 15:37:10 and by "older devices" it means those running 3.0 Jul 05 15:37:13 not 2.3 Jul 05 15:37:13 r Jul 05 15:37:14 ight? Jul 05 15:37:23 jcromartie: It means <4.0 Jul 05 15:37:27 And soon, <4.1 Jul 05 15:37:28 3 is tablet, I think Jul 05 15:37:30 alankila: I'm not developing an android app. Just something for regular computer. Sorry for the confusion. Jul 05 15:37:31 Down to 2.1 Jul 05 15:37:33 but it says I must target API level 11 Jul 05 15:37:36 which is 3.0 Jul 05 15:37:39 mad1231999 yes, the emulator has some weird behaviour. Try it in a new AVD. Jul 05 15:37:39 You must target api14 Jul 05 15:37:56 It doesn't say your minsdkversion must be 14 Jul 05 15:38:09 Your minsdkversion can be >= 7 Jul 05 15:38:21 I'm getting dalvik errors when trying ActionBarSherlock. What gives? :( Jul 05 15:38:52 oh OK, well the FAQ is confusing Jul 05 15:38:54 "Targetting API level 11 or newer is required" Jul 05 15:39:01 kevinlu310: hmm, well in that case the -cp with jar that has the class is the right thing to do Jul 05 15:39:19 but "targeting x or newer" does not mean the minimum API level... Jul 05 15:39:20 Ah right Jul 05 15:39:23 I means build target Jul 05 15:39:26 meant* Jul 05 15:39:32 targetSdkVersion is a different attribute Jul 05 15:39:42 bah i disconnected right when that got fun Jul 05 15:40:06 if i had a dollar for every time soemone didnt know the difference between the build target, minSdkVersion, and targetSdkVersion... Jul 05 15:40:14 so strange :D it seems the JSON library on the real devices did a coercion from "0" to false, while the one on the emulator didn't :D Jul 05 15:40:19 Okay, in my ActionBarSherlock app, I get ClassNotFoundException on the main activity, because the dalvik system classpath loader can't build it. Hm. Jul 05 15:40:20 You'd have earned 1 dollar today Jul 05 15:41:22 canadiancow: you'd have a few bucks, eh Jul 05 15:41:30 i'd be rich :) Jul 05 15:42:36 minSdkVersion is fairly obvious Jul 05 15:42:45 the build target is for the highest level apis you use in your app Jul 05 15:43:00 targetSdkVersion is a little more complicated, but generally, setting it to the build target gives reasonable results Jul 05 15:43:01 OK so I should probably target 4.0 Jul 05 15:43:10 You should Jul 05 15:43:13 maxSdkVersion is for trolling people who live in the future. Jul 05 15:43:13 trolling is a coping mechanism used by self hating chatters to attempt to cause as much external misery as they feel inside Jul 05 15:43:13 guys, im making a webview app, and i have a small issue, when i use the default browser and select a input field, if the keyboard is going to go over the field the page is move acording that you can read the field while type. On my webview this does not happen, is there a option to enable it? Jul 05 15:43:29 what is trolling Jul 05 15:43:31 Mainly because that gets rid of the annoying compat menu button on e.g. gnexus Jul 05 15:43:35 is that guy a bot Jul 05 15:44:13 I'm trying to follow the directions here, but I don't see the support package in the SDK manager http://developer.android.com/tools/extras/support-library.html#Downloading Jul 05 15:44:22 Can't get ActionBarSherlock to work, what could cause the dalvik class builder to fail? Jul 05 15:45:02 jcromartie: Keep looking, it's there Jul 05 15:45:03 Could someone explain the difference between DialogFragments and Normal Dialogs? Jul 05 15:45:14 DialogFragments are Fragments Jul 05 15:45:16 SimonVT: where would it be, sorted by API level? Jul 05 15:45:17 Dialogs are not Jul 05 15:45:19 A DialogFragment is a normal Dialog, managed by the fragmentmanager Jul 05 15:45:22 jcromartie: extras Jul 05 15:45:31 DialogFragments dont have to be displayed as dialogs Jul 05 15:45:33 but they can be Jul 05 15:45:42 so like the purchase screen in the play store is a full screen on phones Jul 05 15:45:42 That too Jul 05 15:45:44 but a dialog on tablets Jul 05 15:45:58 gotcha Jul 05 15:45:59 SimonVT: this is what I see http://i.imgur.com/xL1R7.png Jul 05 15:46:07 ty Jul 05 15:46:10 so update it jcromartie Jul 05 15:46:15 update ALL the things Jul 05 15:46:45 ^ Jul 05 15:46:51 Update your tools Jul 05 15:46:53 that will make the support library show up? Jul 05 15:47:00 weird Jul 05 15:47:05 I thought the support library was an old thing Jul 05 15:47:24 well theres something else screwed with that screenshot Jul 05 15:47:33 but update the tools first, then we can diagnose the issue Jul 05 15:49:12 27 seconds left Jul 05 15:49:14 10 seconds later Jul 05 15:49:17 28 seconds left Jul 05 15:49:18 :) Jul 05 15:49:50 f it interests you and you work with JSON: Jul 05 15:49:52 http://pastesite.com/39171 Jul 05 15:50:00 this gives an exception on android 4.1 emulators Jul 05 15:50:11 but not on 2.2 devices like HTC desire Jul 05 15:50:18 what's the exception Jul 05 15:50:24 07-05 17:49:24.518: W/System.err(623): org.json.JSONException: Value 0 at foo of type java.lang.String cannot be converted to boolean Jul 05 15:50:38 which is perfectly ok Jul 05 15:50:40 id call that a 2.2 bug Jul 05 15:50:41 :P Jul 05 15:50:42 and the right behaviour.. Jul 05 15:50:43 I think json standard is no quotes around the value Jul 05 15:50:46 if its an int Jul 05 15:50:49 or numeric Jul 05 15:50:50 yep. it's a 2.2 bug which masked a bug in my code :D Jul 05 15:51:03 i wonder if we'll have any issues like that Jul 05 15:51:37 http://json.org/ Jul 05 15:51:46 implies string values are enclosed in qhotes Jul 05 15:51:51 and numerics are not Jul 05 15:52:18 ron_frown, we're not saying the exception is wrong Jul 05 15:52:20 just that android behaviour has changed Jul 05 15:52:27 yeah Jul 05 15:52:33 shit gets more strict =) Jul 05 15:52:48 basically the thing was broke in the first place and your code that should have broke before, didnt =) Jul 05 15:52:54 JakeWharton, any idea what could cause a dalvik exception when trying to use ActionBarSherlock? I created a new project, build against 4.0.3, that uses the com_actionbarsherlock project, which is build against 4.0 and references the support4 as external jar? I'm afraid I missed something, but I don't know what. Jul 05 15:53:24 yes, my code was broken, but it was masked by the android looseness :D Jul 05 15:53:57 albeit the docs are a bit loose, too: "Returns the value mapped by name if it exists and is a boolean or can be coerced to a boolean." Jul 05 15:54:03 what coercion rules exactly? Jul 05 15:54:24 still not seeing the Support Library Jul 05 15:54:30 you can use "true" or "false" or 0 or 1 Jul 05 15:54:50 tapas stick to standards and things SHOULD continue to work =) Jul 05 15:54:55 i swear to fucking god Jul 05 15:54:56 http://www.appleinsider.com/articles/12/07/05/apple_interested_in_dual_mode_wireless_wired_headset_for_iphone.html Jul 05 15:55:03 i used to own a headset like that Jul 05 15:55:10 ron_frown: yeah, sadly i don't have too much influence on the data source :D Jul 05 15:55:16 anyone know of an opensource app that allows the user to change theme in preferences? Jul 05 15:55:31 do I need to install 4.0 SDK first? Jul 05 15:55:33 Kenji you pretty much need rom support for that Jul 05 15:55:41 or are you saying theme for THEIR app Jul 05 15:55:52 ron_frown: their app ofc Jul 05 15:56:08 like change from a dark theme to a light Jul 05 15:56:11 dunno Jul 05 15:56:25 Kenji: look up subsonic Jul 05 15:56:34 isnt subsonic a bit different Jul 05 15:56:54 code is on sourceforge, has light and dark theme choice Jul 05 15:57:05 ah ok Jul 05 15:57:14 Just set the theme before super.onCreate Jul 05 15:58:15 in the meantime, time to report airpush for spamming me Jul 05 15:58:28 1star the app Jul 05 15:58:35 #1 awesome feature of JB Jul 05 15:58:40 hmm, what did I miss, irssi says I lost a highlight Jul 05 15:58:44 See which app made the notification Jul 05 15:58:48 yeah, they're pretty much on notice Jul 05 15:58:48 SimonVT: ye that is not the problem, getting all the activities in the stack to change theme after the preference changes was Jul 05 15:58:51 And disable notifications completely for an app Jul 05 15:59:09 Kenji: You need to recreate all your activities Jul 05 16:00:16 Easy solution is just clearing the stack and starting the first activity Jul 05 16:01:18 SimonVT one kinda annoying thing is the gps notification Jul 05 16:01:19 ye, it was what i was doing, wanted to see if anyone had a better solution. Jul 05 16:01:30 i liked it better just in the status bar Jul 05 16:01:33 but you cant get rid of the notif Jul 05 16:01:38 and its always at the top of the list Jul 05 16:01:45 like OH GEE YOU MEAN THE GPS IS ON WHEN IM USING NAVIGATION? OK THANKS Jul 05 16:03:30 Leeds: seems like subsonic solved it the easy way, not allowing you to change the theme other then in the main activity Jul 05 16:03:58 I didn't say it did anything clever, just that it did it :) Jul 05 16:04:31 UnbertKant: The app loads very slowly on a device too. Jul 05 16:05:30 hey Everyone Jul 05 16:07:24 how do you see the backside of a plane in opengl es 2.0 on android? i tried changing the normals but it won't work.. Jul 05 16:09:20 Something obvious wrong with this? if (content.indexOf(4) == 0x1) Jul 05 16:09:32 wtf is content Jul 05 16:09:46 ohh, wait. I can't do this anyways Jul 05 16:09:50 a string Jul 05 16:09:58 indexOf actually searches Jul 05 16:10:21 yea what are you trying to do Jul 05 16:10:32 do you want charAt(4) ? Jul 05 16:10:37 Probably Jul 05 16:11:16 Yay, it worked :D Jul 05 16:11:18 Thanks Jul 05 16:22:52 does the canvas object work with its own bitmap or is the canvas a type of bitmap? Jul 05 16:23:22 nope Jul 05 16:23:28 canvas is actually an abstraction layer Jul 05 16:23:41 a bitmap CAN back it, but that's not necessarily the case Jul 05 16:23:43 (it almost certainly is) Jul 05 16:24:24 http://developer.android.com/guide/topics/graphics/2d-graphics.html#draw-with-canvas Jul 05 16:24:39 does anyone know why opening a HttpsURLConnection to a URL would through a FileNotFoundException when I try to do getInputStream()? Jul 05 16:24:51 the same code works with other URLs, just this particular one Jul 05 16:25:00 https://remote.mintchipchallenge.com/ Jul 05 16:25:53 it's returning a 403 for me, which is presumably being translated into a FileNotFound? Jul 05 16:26:10 that's 404 Jul 05 16:26:16 ^^ Jul 05 16:26:20 i believe 403 is bad request Jul 05 16:26:21 404 Jul 05 16:26:23 ya Jul 05 16:26:25 well, 403 is because it requires client SSL certs Jul 05 16:26:37 well, yes, 403 is Forbidden - but it doesn't necessarily have to map 1:1 between HTTP responses and exceptions Jul 05 16:26:47 HorizonXP: if you get an exception trying to do getInputStream, put getErrorStream in your catch and try to read that. Jul 05 16:26:47 lov: thanks. Jul 05 16:26:48 which, presumably, i've set up, but i haven't been able to get far enough to test that yet. Jul 05 16:26:55 mmm... Mint Choc Chip :) Jul 05 16:27:47 HorizonXP: I saw that in the log and before it was a permission problem. in that case it was the manifest file needing a permission. does yours have web access permission? Jul 05 16:28:05 Droido: yeah, i added INTERNET permission. Jul 05 16:28:42 HorizonXP: do you have it working with other sites which need client certs? Jul 05 16:28:59 because if not, that seems an obvious point of complexity... Jul 05 16:29:00 so what is the error? Jul 05 16:29:55 Leeds: i don't know of any other sites that need client certs that I can test with. Jul 05 16:30:14 wongk: it's throwing a filenotfound exception, but i'm not clear what's causing it Jul 05 16:30:20 got some research and trial&error ahead of you then, I'd guess Jul 05 16:30:27 it could very well be due to the "lack" of client cert Jul 05 16:30:37 but like i said, I thought I added it Jul 05 16:30:54 it's throwing an exception? Jul 05 16:30:54 oooh Jul 05 16:31:00 wongk: yes Jul 05 16:31:05 but lov's suggestion was good Jul 05 16:31:18 i see what's happening now Jul 05 16:31:36 when I do getInputStream, that's assuming there wasn't a 404 or 403 error or whatever Jul 05 16:31:42 but apparently, there is a 403 error Jul 05 16:31:52 so it doesn't fill getInputStream with anything Jul 05 16:31:53 always check the status code Jul 05 16:32:04 I love LOVE the point in a project when you realize the 3rd party code isnt going to work and you'd be better off re-writing from scratch =( Jul 05 16:32:06 which is why it throws FileNotFound Jul 05 16:32:12 Man if I ever meet this guy from India who messed up this code, I'm going to smack him with garbage. Jul 05 16:32:22 wongk: can I check it before I call getInputStream? Jul 05 16:32:31 certainly Jul 05 16:32:33 i.e. immediately after openConnection? Jul 05 16:32:49 ok, somehow, late last night, that didn't seem obvious Jul 05 16:32:52 but it should've been Jul 05 16:32:54 i've always used HtpClient, though Jul 05 16:33:15 so i can't say what you need to call, specifically Jul 05 16:33:35 wongk: http://android-developers.blogspot.hk/2011/09/androids-http-clients.html Jul 05 16:33:43 that link says to use Http(s)URLConnection Jul 05 16:33:48 i'm aware Jul 05 16:33:51 unless HttpClient is higher-level Jul 05 16:33:55 ? Jul 05 16:34:04 no, not really Jul 05 16:34:09 httpclient let you do more lowlevel custom shit Jul 05 16:34:12 but is a HUGE pos Jul 05 16:34:31 the API is very... interesting, to say the least Jul 05 16:35:56 Hi, I have rooted my TF101 running ics Jul 05 16:36:10 now I wanna install my app it says failed to copy 'WiFiSiteSurvey.apk' to '/data/local/tmp/WiFiSiteSurvey.apk': Not a directory Jul 05 16:36:20 d4gg3r: #android-root? Jul 05 16:36:39 HorizonXP, it is also a dev question Jul 05 16:36:53 maybe I should install the app the other way? Jul 05 16:37:46 yes, probably. Jul 05 16:37:51 you should use adb install Jul 05 16:38:16 if you want to muck around with installing things to the root partition, #android-root Jul 05 16:39:29 no i just wana run my app using eclipse Jul 05 16:39:44 and it says /data/local/tmp is not a directory Jul 05 16:39:46 !!! Jul 05 16:39:53 are you clicking the run button in eclipse? Jul 05 16:39:59 are you running a stock rom or someone's kanged up shit? Jul 05 16:40:06 yeah how are you trying to install the app Jul 05 16:40:07 try restarting the device Jul 05 16:40:21 verify that you have any space free Jul 05 16:41:23 have an activity with a bitmap class which extends view. the activity oncreate sets contentview to the class. will ondraw in the class now be called instead of ondraw in the activity? Jul 05 16:41:26 lov, I have tried run button and adb install Jul 05 16:42:11 lov, there is free space, rebooting... Jul 05 16:48:16 anyone know where in ABS i need to be looking to change the theming of progressdialogs (the ones NOT in the actionbar itself)? I'm looking to change the text color of the progressdialog message Jul 05 16:48:39 JakeWharton, if you're around, you mght be able to answer this :) Jul 05 16:48:49 You shouldn't be looking in ABS for anything not ABS related Jul 05 16:52:00 good point. im actually using holoeverywhere but using the Theme.HoloEverywhereLight.Sherlock and thought that ABS actually did some stuff to get ICS style progressdialogs and that thats where it was coming from Jul 05 16:52:06 maybe im missing something here.. Jul 05 16:52:26 ABS does nothing but actionbar Jul 05 16:53:30 hmm ok Jul 05 16:54:15 any ideas what attribute im looking for then in holoeverywhere that would setting the color of the message in the progressdialog? Jul 05 16:54:24 would be* Jul 05 16:54:41 no idea Jul 05 16:55:41 i think it might actually just be using textColorPrimary and the related attributes Jul 05 16:55:46 might just need to override that Jul 05 16:56:19 I have a dynamically instanciated? bitmap that is passed to a canvas instanciated with the bitmap as a parameter. still there? Jul 05 16:57:00 anyone know if moving an app to SD doesn't allow for boot_completed notifications to work? Jul 05 16:57:05 or just widgets only? Jul 05 16:57:16 the ondraw function draws the bitmap if it is not null. I see http://developer.android.com/reference/android/widget/ImageView.ScaleType.html and need a push in a direction. Jul 05 16:57:31 Might work, might not Jul 05 16:57:31 in order to scale the bitmap in the view. Jul 05 16:57:42 I'd bet on not Jul 05 16:57:45 SimonVT: for me? Jul 05 16:57:49 Yes Jul 05 16:57:53 sorry to talk in the middle of the conversation. Jul 05 16:57:59 SimonVT: hmm how lame Jul 05 16:58:12 so I can see why some apps like to do managers do not allow to move to SD Jul 05 16:58:59 I've got a RelativeLayout, with two TextViews. I want one below the other, but both the be vertically centered. How can I achieve this? Jul 05 16:59:42 you could put them in a vertical LinearLayout and then vertically center that in your RelativeLayout Jul 05 16:59:47 ejcweb, they cant both be vertically centered in the parent but also one below the other... Jul 05 16:59:55 to display a large image in a view do you scale the actual pixels or does the system just do it for you with a certain setting? my images are created dynamically and the views too I believe. Jul 05 17:00:41 luxurymode: I mean vertically centered when considered together. Is that possible? Jul 05 17:00:59 yes, then what tnzr said Jul 05 17:01:08 center the linear layout in the parent Jul 05 17:01:12 and place the two textviews in there Jul 05 17:01:30 make the width and height of the LinearLayout set to match_parent Jul 05 17:01:35 err sorry Jul 05 17:01:36 or center a relative layout inside your RL Jul 05 17:01:36 wrap_content Jul 05 17:01:51 tnzr, eh? no wrap_content Jul 05 17:01:52 right Jul 05 17:01:57 sorry, reflex :) Jul 05 17:02:01 lol Jul 05 17:03:44 Have you tried gravity? Jul 05 17:08:49 luxurymode: This is what I've got now (http://pastebin.com/2Sm68zbZ), incorporating a LinearLayout. It doesn't work though - the LinearLayout definitely isn't aligned to the right of the ImageView. Jul 05 17:12:42 http://developer.android.com/reference/javax/net/ssl/X509KeyManager.html Jul 05 17:12:53 for X509KeyManager, how do I know what alias I need to use? Jul 05 17:12:55 ejcweb, dont use align_right Jul 05 17:12:58 use rightOf Jul 05 17:13:08 for clientAliases. Jul 05 17:15:09 here is my code that I'm using to add in additional key stores for SSL Jul 05 17:15:13 http://pastebin.com/5fLpFey8 Jul 05 17:16:11 and i create the SSLSocketFactory using this: http://pastebin.com/Uhg1PNv2 Jul 05 17:16:36 and apply it to my HttpsURLConnection urlConnection with this line: urlConnection.setSSLSocketFactory(createAdditionalCertsSSLSocketFactory()); Jul 05 17:16:52 but... how do I tell it to use the client cert that I've loaded? Jul 05 17:17:01 should it be doing so automagically? Jul 05 17:17:13 on Firefox/Chrome on my desktop, it doesn't, it asks me Jul 05 17:17:19 so I presume it's similar here. Jul 05 17:22:01 has anyone used client-side SSL certificates here in their apps? Jul 05 17:34:34 anybody have any experience in passing ArrayList to different activities? Jul 05 17:34:51 mstp: yes, using Parcelable Jul 05 17:35:19 How do i make the arraylist parcelable Jul 05 17:36:32 let me find the tutorial I used, it was very easy Jul 05 17:37:10 http://shri.blog.kraya.co.uk/2010/04/26/android-parcel-data-to-pass-between-activities-using-parcelable-classes/ Jul 05 17:37:29 mstp: http://developer.android.com/reference/android/os/Bundle.html#putParcelableArrayList(java.lang.String, java.util.ArrayList) Jul 05 17:37:41 you literally provide the arraylist to the bundle Jul 05 17:38:02 @Qubez how ironic just found that link on google i'll take a look Jul 05 17:38:58 I have a custom class GeocodedCoordinates but I have a List of objects from that class that I send to another activity using Parcelable Jul 05 17:39:01 pretty easy stuff Jul 05 17:39:28 my main query with this is my arraylist is created in an Overlay class how can this be an Overlay and Parcelable class? Jul 05 17:40:18 ignore that I see parcelable is implemented not an extension Jul 05 17:40:55 right, not extends but implements Jul 05 17:42:23 dest.writeString(strValue); Jul 05 17:42:38 in reference to that line do I write as a Geopoint? Jul 05 17:42:45 is that even possible Jul 05 17:43:10 or convert the geopoint into an integer first Jul 05 17:43:55 Caan somebody help me put a bufferedreader into array, I'm stuck . Jul 05 17:44:42 mstp: I'm assuming since you do not have a custom class you can just put your GeoPoint ArrayList into the Bundle as lov pointed out Jul 05 17:45:19 my implemetnatino is a lil different because I have ArrayList... where GeocodedCoordinates are my custom class (int lat, int lng .... members) Jul 05 17:46:00 ahhh i see but GeoPoints cannot be adapted straight into a list I seem to find? Jul 05 17:46:09 so I do my dest.writeString(name); dest.writeDouble(lat); dest.writeDouble(lng); // then I have an array of my custom objects that I send to another activity via parcelable Jul 05 17:46:31 Salutation. Jul 05 17:47:15 mstp: I'm not sure how to do what you're asking for (exactly) but it should be easier than what I've done -- that article is geared more towards custom implementation. Although you could technically, create a GeocodedCoordinates class yourself and only have lat / lng then impelment parcelable in there to dest.writeDouble(lat); dest.writeDouble(lng)... Jul 05 17:47:20 know what I mean? Jul 05 17:47:30 Much thanks to Android Devs , please look at this issue | http://code.google.com/p/android/issues/detail?id=32363 Jul 05 17:47:50 then passing it is as simple as: Intent i = new Intent(this, YourClass.class); i.putParcelable.... Jul 05 17:48:54 Qubez: Yeah i understand what you mean, basically I have a class that when user taps on a map a geopoint is created and added to an array, I want a button to show a list of said geopoints in the array. However if I load the list class obviously the array clears so I need to send the array in an intent and then put the array into a list Jul 05 17:49:42 I have yet to find a way of sending the geopoints and displaying them in a list Jul 05 17:49:51 I presume they must be converted to strings Jul 05 17:50:06 I do this in To Do Mapr -- well except I dont show a list, I actually show the locations on a map Jul 05 17:50:26 mstp: you want to show the user the actual lat/lng in a list? Jul 05 17:51:04 first thing you just need to get done is implement that Parcelable in your class -- once you get that, you can just create your ArrayList then pass it in an intent and extract it on the other side Jul 05 17:51:11 Qubez: Yeah essentially the user is creating a route so I want to show lat/lng in a list Jul 05 17:51:32 how can I set up a keyboard shortcut for "Run As > Android Application" Jul 05 17:51:38 (in Eclipse) Jul 05 17:52:01 Qubez: is the Arraylist of ? Jul 05 17:52:28 mstp: personally, I'd create my own custom class if I were you -- for now it can only contain double lat and doube lng. In the future, if you need to add more data into your object then you can just modify that. Jul 05 17:52:56 mstp: well mine is ArrayList ... note that my GeocodedCoordinates is a custom class. I dont use GeoPoint Jul 05 17:53:25 my GeocordinatedCoordinates class has name, vicinity, lat, lng etc.. because I am using it for Google Places data storage (temporarily) while the user selects the location they want Jul 05 17:53:28 Qubez: I will look into doing that but then how do you display/draw on overlay without having GeoPoints? Jul 05 17:53:43 <_ohm> how long does it take for an app on google play to update? Jul 05 17:53:58 _ohm: between 1 hour and 10 years Jul 05 17:53:58 using geopoints for overlays is very slow Jul 05 17:53:58 mstp: QuebeZ problem is similar to mines; can you help me? Jul 05 17:54:08 _ohm: inclusive Jul 05 17:54:17 mstp: I want too put a bufferedreader into array, I'm stuck . Jul 05 17:54:31 aolin: a faster alternative? Jul 05 17:54:35 <_ohm> lov, thanks, would you say it's closure to 1 hour though Jul 05 17:54:35 I'd use geopoints for the corners only Jul 05 17:54:37 mstp: on my map where I actually need to show it on the map... I extract the bundle I parcelable'd over then create a new GeoPoint(lat, lng) -- the lat/lng are from my parcel Jul 05 17:54:42 Brigh: why in the world would you want to do this? Jul 05 17:54:44 Brigh: Sorry I have no idea Jul 05 17:54:44 then scale the rest accordingly Jul 05 17:54:45 I'm literally dumbfounded Jul 05 17:55:00 Brigh: I think you have that backwards -- I'm helping mstp :) Jul 05 17:55:03 Brigh: do you mean that you want to read FROM the bufferedreader's contents INTO an array? Jul 05 17:55:07 mstp: let me show you a piece of code Jul 05 17:55:16 lov: yeah Jul 05 17:55:27 Qubez: yes that would be great thanks. Jul 05 17:55:31 so i can put into a listview Jul 05 17:55:33 Brigh: http://developer.android.com/reference/java/io/BufferedReader.html#read(char[], int, int) Jul 05 17:56:58 mstp: http://pastebin.com/k5Rhsxjy Jul 05 17:57:09 thats in my target Activity -- where I get my bundle and pull out what I need Jul 05 17:57:59 just to give you an example of how I reconstruct the GeoPoint... since my custom class has lat, lng, name, vicinity etc... all of which I need but I use the lat/lng specifically to create a GeoPoint to feed into my Overlay Jul 05 17:59:08 Qubez: Yes that makes sense, but I'm now confused as to if I am over complicating what I am trying to do Jul 05 17:59:53 Qubez: there must be a simple way to bundle an arraylist of GeoPoints Jul 05 18:00:02 mstp: possibly, I mean if you just need lat lng (not like my custom stuff), then you should just be able to Parcelable your ArrayList ... but as I mentioned earlier, I've never done this simple approach Jul 05 18:00:34 I implemented custom stuff, but I'd highly look into that if I were you because if your design changes and you need to pass in more than just your GeoPoint (lag/lng) then you're rewriting/creating a custom class anyhow. Jul 05 18:00:50 thats why I went custom because my needs may change and if they do, I just plug in more data into my already existing class Jul 05 18:01:52 Qubez: Yes it would make sense to create custom it's just my app has a looped draw that creates a stroke line from each point to form a route and I'm unsure if performance would be bad if every time a user taps the point has to be sent/recieved from another class Jul 05 18:01:54 did you guys know that it's very bad practice to override Activity.onSaveInstanceState without calling super ? Jul 05 18:02:14 it breaks completely DialogFragment Jul 05 18:02:27 did not know, wasted a whole working day Jul 05 18:02:32 Yep, we knew that Jul 05 18:02:35 shit. Jul 05 18:03:04 I just wish there was a panic when doing that Jul 05 18:03:12 like for onStart etc Jul 05 18:03:13 isn't that the general knowledge? That when you override something... most likely you need to call super? Jul 05 18:03:15 lov: I'm trying to find a example on how too use it Jul 05 18:04:00 QubeZ: well atleast it's not an universal pattern Jul 05 18:04:03 If you don't know what the parent implementation does, you probably shouldn't override without calling super Jul 05 18:04:11 Brigh: I don't understand what you don't get. The docs explain exactly what it does. Jul 05 18:04:12 I mean on other platforms the overridables are just stubs Jul 05 18:04:24 Are you trying to read each line of something into an array which you can then use for a ListView? Jul 05 18:04:28 mstp: Again, I do a very similar thing in To Do Mapr where I draw an optimal path for the route a user needs to complete their tasks. I have code that takes each lat/lng pair, gets the kml route from Google then I put that into a XML Doc until I iterate through it all. Then, at the end I fire off an ASyncTask to itertate through the Doc and draw the polylines. Jul 05 18:04:30 is there any way to see the contents of an ArrayList whilt running an app in eclipse? Jul 05 18:04:32 if so, why not use readLine() instead? Jul 05 18:04:43 SimonVT: yeah somehow I assumed it does nothing Jul 05 18:04:48 Brigh: this is a general "How do I program" question; if you're not sure how to do this, I'd recommend learning fundamental programming, not Android. Jul 05 18:05:01 lov: im not asking that Jul 05 18:05:27 Brigh: so what don't you understand? What are you trying to do, and what's the block? Jul 05 18:05:29 Back. excuse me my awful connection .. any replies to the issue i posted ! Jul 05 18:06:02 lov: I just didn't learn I/O stuff that much when I was learning java Jul 05 18:06:06 sm1: lost your question, please re-post Jul 05 18:06:42 QubeZ: sure thanks , my issue at http://code.google.com/p/android/issues/detail?id=32363 Jul 05 18:06:57 Qubez: just took a look at To Do Mapr and looks very impressive somewhat similar to some aspects of what I want to achieve Jul 05 18:07:03 sm1: Not app dev related, ask in #android Jul 05 18:07:39 SimonVT: thanks , i'll do that . Jul 05 18:08:06 how can I tell if my BKS key store was loaded correctly? Jul 05 18:10:12 Qubez: Thanks a lot for your help, much appreciated. Have to run right now but I'll be sure to have a look at my fundamentals and look to implement custom Array Jul 05 18:11:21 Am thinking about rooting my device , is this the right method ! http://www.androidauthority.com/xperia-s-unlock-bootloader-82532/ Jul 05 18:11:32 sm1: again wront channel, try #android-root Jul 05 18:11:38 sm1: go to #android-root Jul 05 18:11:48 sm1: if you're not developing applications, this is the wrong channel for you. Jul 05 18:12:54 Excuse me , i apologise . Jul 05 18:13:49 quick update on my battle with ProgressDialog. I dismiss/cancel/hide it, it goes away, screen is still dim. I have an onKey listener attached to the dialog, and when I hit that key, it fires every time. the dialog is supposed to have been dismissed. so… I am very confused about how I am supposed to kill this thing if .dismiss and .cancel don't destroy the dialog... Jul 05 18:15:42 PeteS: doing something wrong if .dismiss doesnt work Jul 05 18:15:54 I'm sure everybody said that already :) Jul 05 18:16:28 aolin: that's always the presumption, isn't it :-| I really, truly feel like a dialog should not be able to exist in a state where it can't be dismissed. maybe that's overly presumptuous of me Jul 05 18:17:04 It can ? Jul 05 18:17:15 I'm using progress dialogs that cannot be dismissed Jul 05 18:17:19 what is the name of the function? object? to display a status such as 'file stored in ...' over the view? Jul 05 18:17:25 but dismiss() always works Jul 05 18:17:37 back button doesn't Jul 05 18:17:37 You shouldn't be calling .dismiss()/.cancel() Jul 05 18:17:55 SimonVT: oh? how do I get rid of it, then? Jul 05 18:18:00 I'm sure they're fine. Jul 05 18:18:10 SimonVT: why not? Jul 05 18:18:31 Because you should use showDialog/dismissDialog | dialogfragment ;/ Jul 05 18:18:37 pish tosh. Jul 05 18:18:48 petes: mProgressDialog = new ProgressDialog(context); Jul 05 18:18:48 mProgressDialog.setIndeterminate(true); Jul 05 18:18:49 mProgressDialog.setCancelable(false); Jul 05 18:18:55 tosh.0? Jul 05 18:18:56 pastebin please ._. Jul 05 18:19:14 SimonVT: that's fair in most cases. Jul 05 18:19:19 use that in onCreate() or so... then mProgressDialog.show() shows it and mProgressDialog.dismiss() hides it Jul 05 18:19:24 and it cannot be cancelled Jul 05 18:19:48 aolin: you're assuming that he's got one progress dialog that will ever be used. Jul 05 18:19:59 SimonVT is right, he should be using showDialog/dismissDialog if possible. Jul 05 18:19:59 lov: it can be reused Jul 05 18:20:07 lov: just setMessage Jul 05 18:20:52 showDialog is deprecated, current way is DialogFragment Jul 05 18:21:04 exists in support lib Jul 05 18:21:24 bit overkill for progress dialog... Jul 05 18:22:36 unless you want the user to be able to rotate their phone Jul 05 18:22:59 JakeWharton: true Jul 05 18:23:14 Yeah, but who does that anyway Jul 05 18:23:27 i'd prefer they didn't ;) Jul 05 18:23:28 anyways I'd use DialogFragment Jul 05 18:23:38 is Loader in the support lib too? Jul 05 18:23:43 Yes Jul 05 18:23:58 so the swapCursor thing is also available? Jul 05 18:24:33 Yes Jul 05 18:25:04 what are the limits of the webView.loadUrl("javascript:…") approach? Jul 05 18:26:08 SimonVT: that's just excellent… So I should be able to follo Reto Meiers Android 4 book and use similar code and it will still work on Android 1.6 and up? Jul 05 18:26:23 weird Jul 05 18:26:41 I have no idea what code he uses, but if it's Loaders/CursorAdapters, then yes Jul 05 18:27:12 so I ordered a nexus 7 on the day they announced it...they did a pending charge on my credit card, but now a new charge popped up yesterday for the exact same amount, but it says "GOOGLE *HEROCRAFT LTD"...anyone ever see this? Jul 05 18:28:36 quote from tmobile website " Android 2.3 (Gingerbread) OS Android 2.3 (Gingerbread) - The newest version of Android Operating System." Jul 05 18:28:39 you bought the Nexus 7 game by Herocraft for $200. :) Jul 05 18:28:47 SimonVT: he implements LoaderManager.LoaderCallbacks and public void onLoadFinished(Loader loader, Cursor cursor) { adapter.swapCursor(cursor); } Jul 05 18:28:47 public void onLoaderReset(Loader loader) { adapter.swapCursor(null); } Jul 05 18:28:59 stuff like that Jul 05 18:30:38 http://www.whatsthatcharge.com/GOOGLE-HEROCRAFT-LTD-GOOGLE-COM-CH-CA Jul 05 18:30:45 nobody knows? Jul 05 18:33:01 so apparently, I suck at Java Jul 05 18:33:16 Hello there HorizonXP Jul 05 18:33:42 can someone explain to me why this code doesn't work as expected? http://pastebin.com/a7rW68iM Jul 05 18:33:53 specifically, that if (retVal != null) statement Jul 05 18:34:07 jcromartie: did you get that on your statement too? Jul 05 18:34:21 tnzr: no, just some (un)helpful googling Jul 05 18:34:24 if/when that km.chooseCl... funciton actually returns a value, it doesn't enter that if statement Jul 05 18:34:45 HorizonXP: so retVal is not null, but it's null…? what? Jul 05 18:34:53 I wonder if it's just some error, it's the exact same price as my Nexus order, but also no new transactions are showing in google Wallet Jul 05 18:35:15 jcromartie: so km.chooseClientAlias returns null if it doesn't find anything, or a String if it does Jul 05 18:35:15 i saw HeroCraft had a July 4 sale on four of their games Jul 05 18:35:19 jcromartie: Herocraft makes a few games Jul 05 18:35:32 so if I find something, I want to return it Jul 05 18:35:32 jcromartie: my assumption is either in app billing, or you bought one of their games Jul 05 18:35:35 So odd problem but on an HTC Thunderbolt running Gingerbread (2.3.4) I am having virtual keyboard issues. My AutoCompleteTextView when tapped on does not display the virtual keyboard. It's there and can be tapped on to input text but it's completely invisible. Any idea what might be causing this? It's not a problem on any other devices I've tested. Jul 05 18:35:39 lov: not me Jul 05 18:35:46 but if after iterating through everything, I find nothing, then return null Jul 05 18:35:47 jcromartie: someone with your CC then, report it stolen :> Jul 05 18:35:58 HorizonXP: right that code makes sense Jul 05 18:36:11 HorizonXP: so what is it doing that you don't understand Jul 05 18:36:13 yeah, that's what I thought. Jul 05 18:36:22 HorizonXP: have you debugged it and seen that it actually returns something non-null? Jul 05 18:36:41 luyang, jcromartie yes, chooseClientAlias is returning a string. Jul 05 18:36:43 put a breakpoint and you'll see it probably never is non-null Jul 05 18:36:53 a String can have a value of null Jul 05 18:37:13 HorizonXP: this isn't Haskell :) Jul 05 18:37:45 although I wish it were Scala or Clojure ... Jul 05 18:38:03 HorizonXP: I guarantee you, retVal is always null Jul 05 18:38:04 HorizonXP: docs for the method says Returns: the alias name for the desired key, or null if there are no matches. Jul 05 18:38:12 There's probably simply no matches Jul 05 18:38:14 nope it is non-null Jul 05 18:38:18 "1310000000040926 remote mintchip client (developer challenge)" Jul 05 18:38:25 HorizonXP: that's the value? Jul 05 18:38:28 that's the string I get back, I'm seeing it in the debugger. Jul 05 18:38:35 I'm not THAT dense. :-P Jul 05 18:38:37 print it out in the loop Jul 05 18:38:42 ok Jul 05 18:38:59 and that matches the alias I put into my keystore Jul 05 18:39:06 so that part is working Jul 05 18:39:17 but it's still failing the conditional. Jul 05 18:39:40 is it something silly where i have to do retVal.equals(null) ? Jul 05 18:39:46 NO Jul 05 18:40:00 I mean it is a local variable and it is either null or not null Jul 05 18:40:18 you check if it's not null and that is enough… so it must be null always Jul 05 18:40:18 right Jul 05 18:40:41 I can do a System.out.println if you don't believe me :P Jul 05 18:41:08 do it Jul 05 18:41:13 FINALLY! i am in lebanon! I have been trying to login for the last 6 hours Jul 05 18:41:40 HorizonXP: OR it is non-null and you simply don't handle it properly outside this method Jul 05 18:41:42 we are without internet because of the intercontinental cable Jul 05 18:42:44 hello! I'm trying to dynamically show and dismiss a dialog, but somehow it won't dismiss. http://pastebin.com/gCtPJ4Dw -> line 99 ... the log at line 98 shows up correctly though... thanks Jul 05 18:42:58 luyang: but while debugging, the return retVal line is never reached Jul 05 18:43:08 exception? Jul 05 18:43:09 HorizonXP: for one thing, you should always use {} around conditional blocks Jul 05 18:43:23 HorizonXP: are you running that code EXACTLY? Jul 05 18:43:24 HorizonXP: or is your code and byte-code out of sync somehow? Jul 05 18:43:29 jcromartie: shouldn't be required, but let's try adding {} Jul 05 18:43:32 HorizonXP: or are you adding a logging line before return? Jul 05 18:43:41 I second using {} always Jul 05 18:45:33 * alankila wonders if the single-statement-without-{} exists only to allow writing '} else if (...) {' Jul 05 18:45:47 rather than } else { if (...) { ... } } Jul 05 18:46:08 The synatx says 'a block'. A single statement *is* a block. Jul 05 18:46:15 wtf Jul 05 18:46:20 alankila: no the single statements exist from the times where people actually wrote minimalistic c code Jul 05 18:46:22 so adding { } obviously did nothing Jul 05 18:46:25 But it is less ambiguuos to always put the {} in Jul 05 18:46:26 a lot of people who say 'use {}' always make the exception for "else if" Jul 05 18:46:31 bytecode and code isn't out of sync Jul 05 18:46:46 i'm trying retVal.equals Jul 05 18:46:48 alankila: I would not do that since that can be confusing too in many ways Jul 05 18:46:50 I prefer the indentation languages myself, but given the rules of Java, always use the {} Jul 05 18:46:53 bc. this is ridiculous Jul 05 18:46:53 HorizonXP: don't do that Jul 05 18:47:05 Is there way to get AVD 4.0 with tablet skin and virtual keyboard? Jul 05 18:47:07 HorizonXP: that will give you a NPE if it's null Jul 05 18:47:11 Mojito: intentation languages doesn't work well in print when you switch page Jul 05 18:47:12 Mojito: pass Jul 05 18:47:20 I'am using WXGA800 skin Jul 05 18:47:26 HorizonXP: so log retVal inside the loop Jul 05 18:47:28 Mojito: that was a python joke by the way. Jul 05 18:47:44 jcromartie: guessing System.out.println isn't what you mean Jul 05 18:47:49 * HorizonXP is new to Android. Jul 05 18:47:53 HorizonXP: Log.d Jul 05 18:48:02 HorizonXP: sysout works too Jul 05 18:48:08 anyone notice weird encoding issues with android-async-http ? Jul 05 18:48:13 ArGGu^^: it should already launch as tablet Jul 05 18:48:14 luyang: that gave me an NPE before. Jul 05 18:48:22 my utf8 strings definitely aren't encocded properly Jul 05 18:48:22 HorizonXP: what did Jul 05 18:48:32 System.out.println(retVal) Jul 05 18:48:34 funktronic: have you url-encoded URLs? Jul 05 18:48:38 whew, finally. showDialog() and dismissDialog() did it. thank you everyone (lov, SimonVT, aolin)! Jul 05 18:48:40 elegos that depends on skin Jul 05 18:48:41 retVal is null sometimes Jul 05 18:48:45 elegos: no it's in the JSONObject Jul 05 18:48:54 but it's supposed to iterate through the for loop until it either isn't null Jul 05 18:48:58 or just doesn't find anything. Jul 05 18:48:58 It is as tablet now, but I need to get the virtual keyboard Jul 05 18:49:03 ArGGu^^: it depends on the resolution... try to manually set it to 1280 x 800 Jul 05 18:49:36 funktronic: it's a server response problem then, or you haven't configured JSONObject to use UTF-8 Jul 05 18:49:55 I'm trying to dynamically show and dismiss a dialog, but somehow it won't dismiss. http://pastebin.com/gCtPJ4Dw -> line 99 ... the log at line 98 shows up correctly though... thanks Jul 05 18:50:28 jcromartie: Log.d also throws an NPE Jul 05 18:50:48 elegos I can get It to tablet mode with WXGA800 skin, but I need to get virtual keyboard to work with also Jul 05 18:50:53 Log.d what, how are you doing it? Jul 05 18:51:19 ArGGu^^: are you talking about the standard Android keyboard? What's wrong with it? Jul 05 18:51:28 jcromartie: i had it outside the if (!=null) Jul 05 18:51:39 just put it inside now, and now it seems to be printing the string. Jul 05 18:51:48 HorizonXP: Log.d("MyApp", String.format("retVal = %s", retVal)) Jul 05 18:51:53 OK so you've got it Jul 05 18:51:56 then the return is called Jul 05 18:52:59 elegos It used physical keyboard even I set from android setting physical keyboard off, but I setted the resolution manually to 1280x720 and physical keyboard off and it works now, don't know why it won't work with WXGA800 Jul 05 18:53:08 no, for some reason, that return null; is still called. Jul 05 18:53:20 hello! I'm trying to dynamically show and dismiss a dialog, but somehow it won't dismiss. http://pastebin.com/gCtPJ4Dw -> line 99 ... the log at line 98 shows up correctly though... thanks Jul 05 18:53:21 HorizonXP: I don't believe it Jul 05 18:53:45 What's the best way to update an activity from an IntentService Jul 05 18:53:47 yeah i'm wiling to bet it's me Jul 05 18:53:54 let me paste the code Jul 05 18:54:36 HorizonXP: I think maybe the method is called multiple times and the last time it returns null? Jul 05 18:54:41 what is the temporary dialog called which tells the path something was saved for instance? Jul 05 18:55:10 Does anyone know if Android counts sleeping threads in your process as active? And keep the CPU spun up for them? Jul 05 18:55:14 unless there is some weird case where return doesn't work from a for-each loop that I've never heard of... Jul 05 18:55:21 Droido: what are you talking about? Jul 05 18:55:31 Droido: do you mean the Toast? Jul 05 18:55:52 elegos you are trying dismiss DownloadProgressDialog? If you why you have this.dismiss? Jul 05 18:55:57 i save an image to disk and want to pop up a message with "saved to path..." and have it go away after a second. is that toast? Jul 05 18:56:00 HorizonXP: BTW you should be able to step through OR use print debugging to verify *exactly* the execution of your method Jul 05 18:56:07 HorizonXP: don't be left guessing Jul 05 18:56:10 *If you are Jul 05 18:56:14 ArGGu^^: 'cause "this" is the instance of DownloadProgressDialog... Jul 05 18:56:17 better yet, don't make us guess Jul 05 18:56:20 HorizonXP: I could potentially take a look over e.g. TeamViewer Jul 05 18:56:30 http://pastebin.com/5fLpFey8 Jul 05 18:56:32 HorizonXP: but you should be OK just stepping with a debugger Jul 05 18:56:32 cool thanks http://developer.android.com/guide/topics/ui/notifiers/toasts.html Jul 05 18:56:33 elegos sorry did not read whole code Jul 05 18:56:33 Droido: yes Jul 05 18:56:43 that's the entire class. I've been stepping through with the debugger Jul 05 18:56:58 that's what raised my concern, because return retVal was never being executed. Jul 05 18:57:23 HorizonXP: the method you invoke has the same name as the calling method name? Jul 05 18:57:37 anyway, with that Log.d statement, i get 2 values printed: null, and the value I pasted before Jul 05 18:58:01 the function is only run once, and it seems the for loop has 2 iterations, 1 for each printout Jul 05 18:58:15 HorizonXP: i think maybe you have some weird recursion since that method you call from has the same name as the method you call Jul 05 18:58:23 luyang: I would guess so? I just filled in the scaffolding that Eclipse gave me. Jul 05 18:58:33 A > B >(returns non null) B > returns null? Jul 05 18:58:38 btw the DownloadProgressDialog will return FALSE to isShown... somehow.. Jul 05 18:58:47 HorizonXP: that's what I guess happens Jul 05 18:59:02 hrm... Jul 05 18:59:09 I am guessing wildly now Jul 05 18:59:12 you should debug Jul 05 18:59:22 i don't think so tho Jul 05 18:59:32 because none of the objects are of type AdditionalKeyStoresManager Jul 05 18:59:59 HorizonXP: have you considered doing a Control-Shift-F? Jul 05 19:00:13 oh maybe it's the narrow paste Jul 05 19:00:13 err.. what's that? Jul 05 19:00:20 auto formatter Jul 05 19:00:39 makes it easier to see the code flow Jul 05 19:00:55 like your method names have more indentation than method content Jul 05 19:00:56 just Ctrl-A then Ctrl-Shift-F ? Jul 05 19:01:04 no control-shift-f Jul 05 19:01:16 or control-a control-shift-i Jul 05 19:01:34 the former is auto-format, the latter is indentation Jul 05 19:01:52 uhh... Ctrl-A selects all the text in the document. Jul 05 19:02:09 Source-menu Format Jul 05 19:02:25 http://pastebin.com/5fLpFey8 Jul 05 19:02:27 updated it Jul 05 19:03:13 who calls AdditionalKeyStoresSSLSocketFactory ? Jul 05 19:04:15 luyang: this code http://pastebin.com/Uhg1PNv2 Jul 05 19:04:36 which is then called by this: urlConnection.setSSLSocketFactory(createAdditionalCertsSSLSocketFactory()); Jul 05 19:05:35 So I've got a WebView that loads an HTML file from my assets folder, and it loads a JavaScript file. All goes well… but I want to call a JS function after the page loads. Jul 05 19:05:36 https://gist.github.com/31f00531819e03b03662 Jul 05 19:06:02 but loadArticle is called (and fails) before the html loads the page's JavaScript file Jul 05 19:06:12 so how do I make those happen in the right order? Jul 05 19:06:25 I guess it tries to load asynchronously Jul 05 19:07:58 HorizonXP: is there a reason why you don't debug the code? Jul 05 19:08:47 luyang: then what am I doing with the debugger, stepping through it line-by-line? Jul 05 19:08:50 it's impossible to have all the variables in my head and try to figure out any weird behavior without actually stepping through the code Jul 05 19:09:09 i am stepping through it... Jul 05 19:09:19 ok what happens when you do that Jul 05 19:09:59 return retVal is never called Jul 05 19:10:00 how do i get rogain with monixidle..:-| Jul 05 19:10:04 only return null is Jul 05 19:10:30 my hair is 8" and i am tired of it and it has to be 10" to donate to love for locks. Jul 05 19:11:41 HorizonXP: so you're looking at the stack, and retVal has a value, and you're on "if (retVal != null)", and you step the debugger, and it goes RIGHT OVER IT? Jul 05 19:11:57 jcromartie: yes that is exactly what happens Jul 05 19:12:10 HorizonXP: in that case, you accidentally the whole Java and you need to throw away your computer and get a new one Jul 05 19:12:20 lol Jul 05 19:12:27 again, I'm not saying Java's at fault. Jul 05 19:12:30 that is literally beyond belief Jul 05 19:12:35 I'm clearly doing something wrong. Jul 05 19:12:42 I just don't know what. Jul 05 19:13:07 jcromartie: "too stupid to own a computer" kind of joke in real life lol http://www.snopes.com/humor/business/wordperfect.asp Jul 05 19:13:15 HorizonXP: no but if you want I can debug it over teamviewer Jul 05 19:13:29 I think you might have multiple calls to the same method name thing Jul 05 19:13:35 and that the variable gets nulled Jul 05 19:13:37 OR Jul 05 19:13:39 it is always null Jul 05 19:13:49 OR you don't handle the variable result properly outside the method Jul 05 19:13:51 So odd problem but on an HTC Thunderbolt running Gingerbread (2.3.4) I am having virtual keyboard issues. My AutoCompleteTextView when tapped on does not display the virtual keyboard. It's there and can be tapped on to input text but it's completely invisible. Any idea what might be causing this? It's not a problem on any other devices I've tested. Jul 05 19:14:03 Anyone know of any HTC thunderbolt specific issues like this? Jul 05 19:14:14 luyang: let's do teamviewer Jul 05 19:14:18 HorizonXP: ok cool Jul 05 19:14:19 how about a super efficient webserver.... an android phone.... Jul 05 19:14:30 I think it's going to be something stupidly obvious Jul 05 19:14:46 HorizonXP: ID pass? Jul 05 19:14:54 It is not certain I will find it lol Jul 05 19:16:02 this will be fun =) Jul 05 19:20:35 If I have an image that is larger than a device's screen, how can I make the image scrollable by touch? I've googled around for tutorials and looked at some but I'm not quite understanding it.. Jul 05 19:21:01 Hm just dump it in a scrollview? Jul 05 19:21:17 put the imageview inside a scrollview? Jul 05 19:21:37 You say put, I say dump. Jul 05 19:21:48 trash dump Jul 05 19:21:50 ;) Jul 05 19:21:59 I guess it's my nature :P Jul 05 19:23:01 I've got a stupid problem. I'm trying to load an asset from res/raw with the following code: "InputStream ins = Resources.openRawResource(R.raw.whitenoise);" I get the following error: "Cannot make a static reference to the non-static method openRawResource(int) from the type Resources". This error indicates to me that ins is static, but it's not. Jul 05 19:23:26 um Jul 05 19:23:27 no Jul 05 19:23:34 it means openRawResource is not static Jul 05 19:23:38 so you need an instance of Resources Jul 05 19:23:45 not the class object Jul 05 19:24:05 ah. That makes more sense. brb Jul 05 19:25:01 InputStream ins = new Resources.openRawResource(R.raw.whitenoise); ? Jul 05 19:25:39 if you have to provide iphone and android support for a new app, would you use a multi-platform framework such as phonegap or another or would you use a native development on both ? Jul 05 19:25:54 what is the app Jul 05 19:25:55 InputStream ins; ins = new InputStream? Jul 05 19:26:05 Droido please stop Jul 05 19:26:50 canadiancow|work, thanks, friendly canadian friend. I've got it working now Jul 05 19:27:02 r0ver: for that I figure it is a performance issue. someone with sales experience in the matter told me that the customer never understands performance and always wants phonegap/titanium. My opinion is to go with that if it is possible to make with them. Jul 05 19:27:23 in other words if it scrolls like crap the customer will be happy. Jul 05 19:27:37 elegos I have not never used LoadManager, but does it run in own thread? If it does are you sure you can modify UI from it? Jul 05 19:27:42 vs. paying thousands more for it to scroll smooth. Jul 05 19:27:49 com.android.ide.eclipse.adt.feature.group 20.0.0.v201206242043-391819) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found << that i get if i try to install https://dl-ssl.google.com/android/eclipse/ in eclipse any idea about that? Jul 05 19:28:05 I tried phonegap and it took 1 second to highlight the button and defaulted to an ugly orange color. Jul 05 19:28:13 ArGGu^^: dismiss() is thread-safe Jul 05 19:28:21 btw I solved using another solution Jul 05 19:28:23 * luyang can confirm that Eclipse magically skips the if statement evaluation Jul 05 19:28:27 ok Jul 05 19:29:59 I'm wondering if it's got to do with the phone making some magic code changes which is not reflected over the debug session… it is weird stuff which reminds me of remote debugging tomcat where the execution can jump if the code is out of sync Jul 05 19:33:23 luyang: Possibly related: https://code.google.com/p/android/issues/detail?id=34193 Jul 05 19:34:01 no Jul 05 19:34:03 thats not a bug Jul 05 19:34:06 its not actually doing what he says Jul 05 19:37:10 mdwright: yes there seems to be some old zombie Jul 05 19:37:13 in the device Jul 05 19:37:20 I stopped it in the DDMS devices view Jul 05 19:37:25 and now it goes into the if statement Jul 05 19:37:43 there was like a zombie old version of the activity which was reused Jul 05 19:38:09 mission completed Jul 05 19:38:09 ;) Jul 05 19:38:56 thank you :) Jul 05 19:39:00 You're welcome! Jul 05 19:39:20 that was a fun one Jul 05 19:39:26 yes kinda Jul 05 19:39:43 it's not that uncommon with similar things when you remote debug tomcat with an old jar version Jul 05 19:39:45 frustratingly fun Jul 05 19:39:48 the best kind of fun Jul 05 19:39:54 well it was fun to solve it Jul 05 19:40:12 and to finally see it enter the if statement Jul 05 19:40:18 and see you write "WTF" Jul 05 19:40:21 that was funny Jul 05 19:44:43 lol Jul 05 19:44:51 yeah, i was actually LOLing. Jul 05 19:45:26 i believe it is actually LingOL Jul 05 19:46:39 Java-byte-code-discrepancy-during-debug-session-fun Jul 05 19:47:18 LingOLberry Jul 05 19:47:27 I have an activity, and on that i have one image to make it like a splash screen. Its working, but the problem is, it seems like there is some padding on each side, anyone knows why this happening? Jul 05 19:48:06 how can I refresh the views in a ListView even when the ArrayAdapter content hasnt changed? Jul 05 19:48:39 .notifydatasetinvalidate notifydatasetchanged Jul 05 19:49:48 i think a better question is why would you bother Jul 05 19:49:53 theres nothing to refresh if the adapter hasnt changed Jul 05 19:50:00 hehe Jul 05 19:50:25 that....is a good question Jul 05 19:52:11 I never really understood Handler Jul 05 19:53:12 * Jug6ernaut resists sarcastic answer Jul 05 19:53:17 Do y'all agree this is the best way to send back updates to UI from an IntentService? http://stackoverflow.com/questions/7871521/how-to-collect-info-from-intentservice-and-update-android-ui Jul 05 19:54:10 not really Jul 05 19:54:14 no? Jul 05 19:54:18 good! Jul 05 19:54:20 so what's better Jul 05 19:54:24 idk why you would need a messenger Jul 05 19:54:36 that's what I was thinking too… just pass the handler? Jul 05 19:54:37 i shoul dprobably figure out wtf an intentservice is Jul 05 19:54:42 luyang: anyhow, if you /are/ going to go that way , look at the iosched 2011 code to see how they did it Jul 05 19:55:03 g00s: good idea Jul 05 19:55:08 canadicancow|work :o Jul 05 19:55:15 i know what a service is Jul 05 19:55:18 and what an intent is Jul 05 19:55:20 so i can take a guess Jul 05 19:55:20 :P Jul 05 19:55:23 its a just a background service that runs until it has nothing else to do and closes itself Jul 05 19:55:28 yes Jul 05 19:55:30 it's good Jul 05 19:55:59 Is there a difference between @id/... and @+id/... ? i.e. the plus (+) sign? Jul 05 19:56:17 yep Jul 05 19:56:34 yes Jul 05 19:56:35 one your adding an id other your referencing it Jul 05 19:56:37 code1: @+id will create the id if it doesn't exist yet Jul 05 19:56:38 one references an id, the other creates one Jul 05 19:56:48 ohai lov Jul 05 19:56:55 hi2u Jul 05 19:57:32 So android:id="@id/times" is incorrect usage? Jul 05 19:57:46 code1: it depends Jul 05 19:57:59 if you're *creating* an id, then you want @+id Jul 05 19:58:42 So does that example do? Jul 05 20:02:00 If android:id="@id/times" is incorrect usage what does it do? Jul 05 20:02:31 is = isn't Jul 05 20:02:32 what does `android:id="@id/times"` do? It tells it to reference the existing id R.id.times Jul 05 20:02:50 simply, use + when creating and no + when referencing Jul 05 20:03:13 id+ also works for referencing Jul 05 20:03:23 but it's better practice to omit it Jul 05 20:03:24 But unless you've created it elsewhere, that doesn't exist, so you want android:id="@+id/times" Jul 05 20:04:11 code1: The docs detail it here: http://developer.android.com/guide/topics/ui/declaring-layout.html#attributes Jul 05 20:04:37 Ok thanks. I'm trying to switch some LinearLayouts to Relative and so I need to create an id for pretty much all views. Jul 05 20:04:53 Right Jul 05 20:05:01 romainguy_: got my tiling thing working really nicely Jul 05 20:05:05 i think i will open source this Jul 05 20:05:15 So id's are global not local to the specific layout? Jul 05 20:05:34 open source ftw Jul 05 20:05:40 code1: the id's _value_ is global, which is just an integer. Jul 05 20:05:56 code1: the id is, however, non-unique. so for example multiple different layouts or even views within the same layout can have the same id. Jul 05 20:06:01 Actually I guess I could reuse ids? Jul 05 20:06:02 this is not unusual or unexpected in any way Jul 05 20:06:46 this fact can be exploited to avoid particularly stupid behaviour like having label1 input1, label2 input2, etc sets of controls Jul 05 20:07:22 code1: have you tried the eclipse context menu "change layout" on the layout xml file to have it changed automatically?? Jul 05 20:07:43 jasta: what was the tiling project you were working on ? Jul 05 20:07:56 luyang: no you mean automatically convert from one to another? Jul 05 20:08:12 yeah Jul 05 20:08:31 but I still think you might have to declare the ids first but not sure Jul 05 20:08:32 luyang: no I'll look into that thanks. Jul 05 20:08:39 ok Jul 05 20:08:50 np Jul 05 20:09:06 jasta: wouldn't having the same id multiple times in the same layout cause problems? Jul 05 20:09:17 what do you think of GCM? I am currently migrating from C2DM to GCM and I believe it is easier to work with Jul 05 20:10:00 it looks pretty similar Jul 05 20:10:03 except no limits Jul 05 20:10:06 and easier to sign up Jul 05 20:10:22 i couldnt get the default gcm server to run on my server Jul 05 20:10:28 it would deploy but not start Jul 05 20:11:09 no limits is crazy, crazy awesome Jul 05 20:11:16 oh yeah? hmmm...C2DM still got a few months ahead of it...hopefully more documentation will come along Jul 05 20:11:37 no limits is really really good Jul 05 20:11:52 agreed Jul 05 20:12:01 Ok just read the docs: "An ID need not be unique throughout the entire tree..." however I assume calling findViewById will cause problems if there is more than one view with the same ID? Jul 05 20:12:01 I love the fact that you can send multiple notifications in one call now Jul 05 20:12:06 * Jug6ernaut has already thought of updating one of his apps to take advantage Jul 05 20:12:19 futhong yea i had been waiting for that also Jul 05 20:12:25 code1: no, if you think findViewById as merely a recursive search Jul 05 20:12:28 think of* Jul 05 20:12:57 g00s: yes, this is a general purpose tiling solution for rendering large or slow-to-raster graphics Jul 05 20:13:09 Jug6ernaut: Is your server .NET? I do believe that we need more documentation for .NET servers out there Jul 05 20:13:11 currently the only major feature missing is threading Jul 05 20:13:15 jasta: not sure what you mean. Jul 05 20:13:35 server .net? its just a linux server running apache lol Jul 05 20:13:40 It shouldn't matter what your server is for GCM, you're just POSTing to the GCM instances Jul 05 20:13:48 jasta ur working on the tiling? Jul 05 20:14:22 mdwright yea, i ether compiled wrong(idk how) or my server is configured wrong, which is probably the case Jul 05 20:14:29 meant server side language lol Jul 05 20:14:44 the default war' run fine, but the gcm war no go Jul 05 20:14:48 futhong ah Jul 05 20:15:34 anyone used samsung GS3 toolkit? Jul 05 20:15:37 Jug6ernaut: so what msg are you getting back from your requests? Jul 05 20:15:50 I have an activity, and on that i have one image to make it like a splash screen. Its working, but the problem is, it seems like there is some padding on each side, anyone knows why this happening? Jul 05 20:16:19 futhong the war' wont start Jul 05 20:16:43 Jug6ernaut: oh Jul 05 20:18:16 * Jug6ernaut blames canadiancow|work Jul 05 20:18:33 wat Jul 05 20:20:49 code1: findViewById iterates through the view tree, and once it finds a view that has the specified id, it returns that immediately.. It simply doesn't know if more views have that id Jul 05 20:21:07 ~finally got client SSL certs working :D Jul 05 20:21:53 SimonVT: So it would cause problems then? Jul 05 20:22:08 Depends how you define problems Jul 05 20:22:08 or would calling it again get the next one? Jul 05 20:22:14 no Jul 05 20:22:20 it would get the same one Jul 05 20:22:23 assuming the hierarchy has not changede Jul 05 20:22:26 You might not get the views you expect if several have the same id Jul 05 20:22:47 Right, so having the same id is not a good idea Jul 05 20:22:50 i am calling an intent to bring up another activity in my main activity's onCreate(). However the main activity is continuing to call its own onResume() and onStart() in the background. How can prevent this? Jul 05 20:23:12 It's not a good idea for some cases Jul 05 20:23:17 For others it's a great idea Jul 05 20:23:23 Like different layouts for port and land Jul 05 20:23:26 what cases? Jul 05 20:24:03 But they would be in difference files? Jul 05 20:24:08 different Jul 05 20:24:15 Yea Jul 05 20:24:18 Also, listviews Jul 05 20:24:29 Then it's kinda forced to have several views with the same id Jul 05 20:24:33 I was talking about same ids in the same file Jul 05 20:25:08 It probably doesn't make sense to do it then Jul 05 20:25:37 even in different files Jul 05 20:25:38 right Jul 05 20:25:52 im fucking sick of highlighting R.id.title and getting >9000 "open in ________.xml" options Jul 05 20:26:34 pfft, quit whining Jul 05 20:27:03 lol, stop whining ;) Jul 05 20:27:40 what's the best way to present a photo gallery on Android Jul 05 20:28:13 jcromartie: what are you trying to do? Jul 05 20:28:48 present photos from an RSS feed, in a grid, that you can tap to go full-screen Jul 05 20:28:59 I have a class that extends a view and overrides ondraw to draw a bitmap. want to scale the bitmap is it possible to extend the class from ImageView to get the scaling functions? Jul 05 20:29:18 2cm square previews, as many as will fit in the screen size? Jul 05 20:29:32 .5 cm space between Jul 05 20:30:08 basically, Mojito Jul 05 20:30:35 So tablet owners get to see more of the thumbnails without scrolling Jul 05 20:31:04 jcromartie: you might want to take a look at jsharkey's talk from I/O and the corresponding code Jul 05 20:31:29 http://code.google.com/p/iogallery/ and https://developers.google.com/events/io/sessions/gooio2012/103/ Jul 05 20:31:44 looks like GridView is a good starting place Jul 05 20:31:53 if I start an activity in another activity's onCreate(), will the root activity continue with onStart() and onResume() before the new activity is presented? Jul 05 20:33:06 that looks great thanks Jul 05 20:33:54 lk16: depending on how slow ActivityManager is, possibly, though unlikely. Jul 05 20:34:18 lk16: if you do "startActivity(i); finish();" however, it will finish running onCreate and then onDestroy Jul 05 20:36:02 finally found some time for Romain's I/O talk Jul 05 20:36:23 lov: ah, ok. I'd like to not leave it to chance though. I am calling an activity on the first running of the app on the phone, and I don't want the rest of the main activity to run until the spawned activity calls finish() Jul 05 20:36:42 is there a better pattern for this sort of behavior? Jul 05 20:36:57 lk16: onActivityResult Jul 05 20:37:01 Hmm, RelativeLayout: if I have a TextView next to an EditView, how do I center them both horizontally, side by side? Jul 05 20:37:54 lk16: http://developer.android.com/reference/android/app/Activity.html#StartingActivities Jul 05 20:39:48 lk16: you can't really do this. Jul 05 20:40:10 lk16: if you're concerned, use a trampoline or something. A calls B w/ startActivityForResult, and then either starts C or finishes based on the result. Jul 05 20:40:58 ah, that sounds good Jul 05 20:41:03 thank you Jul 05 20:42:18 Hey Jul 05 20:42:35 Is it possible somehow to manually focus the camera to some specific distance? Jul 05 20:43:19 continuous video autofocus doesn't cut it because it keeps refocusing too often with vibration Jul 05 20:43:49 and infinite is too far away, making most objects a bit blurry Jul 05 20:43:59 distance, not exactly Jul 05 20:44:03 but focal length, yes Jul 05 20:44:18 ok, that would suit too, since i can manually find the sweetspot Jul 05 20:44:39 But how would I specify that? Jul 05 20:44:44 i just dropped in here. since its the dev chan, i assume you are talking about programming it? Jul 05 20:44:59 manually setting the focal length Jul 05 20:45:04 focus point Jul 05 20:45:20 right but are you programming a camera app or asking for a way to do it with stock Jul 05 20:45:30 you saw the whole text by me anyway Jul 05 20:45:35 because, stock camera cant afaik Jul 05 20:45:44 oh okay Jul 05 20:45:47 i have my own app Jul 05 20:46:05 so access to everything that the camera api can do Jul 05 20:46:11 ah okay Jul 05 20:46:21 or whatever extra hacks are available Jul 05 20:46:22 yeah i dont know Jul 05 20:46:32 my guess is it would be a hack of sorts Jul 05 20:46:39 since i doubt they exposed that in the api Jul 05 20:47:17 currently, while the car is standing still, it's all fine Jul 05 20:47:31 but when driving, the road vibrations get through and start to confuse the autofocus system Jul 05 20:48:05 right, so you want manual focus. which again, im sure its possible because ive seen mods to the camera that change lowlevel things Jul 05 20:48:16 And it decides to focus on your reflection in the window Jul 05 20:48:22 i just dont know exactly how to accomplish it since ive never looked at that code Jul 05 20:48:27 the window? hahah Jul 05 20:48:27 no, it just tries to refocus Jul 05 20:48:50 thinking it has lost the focus because of minute vibrations Jul 05 20:49:16 not visible in the video when setting it to "infinite", but apparently big enough to confuse the camera Jul 05 20:49:34 hmm, iosched 2012 code is still not online :/ Jul 05 20:49:47 I've got a question about native threads -- not sure if this is the right place. But I'm wondering just what happens when you have a service/process running without wake lock and then the user turns off the screen. Do the native threads stop or what happens to the state of the CPU? Does it go into reduced power mode? Jul 05 20:49:52 hmmm, i would try disabling the accelerometer just to see if its vibrations in the video feed or accel based detection Jul 05 20:50:07 i know it isnt as good a solution as finding manual focus Jul 05 20:50:15 hwrd|work: the cpu stops entirely unless something forces it to keep running Jul 05 20:50:18 but it might be a decent workaround Jul 05 20:50:25 g00s: everyone at google is off Jul 05 20:50:26 assuming you have touch to focus ability Jul 05 20:50:28 give them more than two days Jul 05 20:50:37 alankila: Ok. So even sleeping threads don't' take up memory/CPU power? Jul 05 20:50:52 it's not like the app was anything revolutionary Jul 05 20:51:09 eh. memory is still occupied even if the cpu is gone, I imagine. It must cost something to keep its state. Jul 05 20:51:14 They take a tiny piece of memory Jul 05 20:51:15 JakeWharton: is google on annual leave? post i/o reward? Jul 05 20:51:19 and sleeping threads use no cpu whether cpu is ticking or not Jul 05 20:51:28 luyang: Independence day Jul 05 20:51:38 ah! Jul 05 20:51:45 that was yesterday! Jul 05 20:51:47 good movie too though Jul 05 20:51:49 touch to focus? um Jul 05 20:51:49 yes Jul 05 20:52:12 i'd prefer not having to set anything other than pressing "start recording" Jul 05 20:52:20 so people in the us only get 13 paid annual leave days? Jul 05 20:52:24 in sweden we get 30 Jul 05 20:52:40 that would depend on the employer, not the country Jul 05 20:52:44 luyang: last year I had about a whole month, accrued Jul 05 20:53:01 true… that's why I am curious, if it is common to get much more than 13 Jul 05 20:53:07 luyang: of course, I didn't use them, and so when I left the job, there went a full month's salary worth of benefits down the drain Jul 05 20:53:16 JakeWharton, there are laws here that make it compulsory for the companies to provide 30 days of leave days Jul 05 20:53:21 jcromartie: you didn't get it "in money"? Jul 05 20:53:25 luyang: nope Jul 05 20:53:40 i get 10 stat holidays and 15 vacation days Jul 05 20:53:41 oh… in Sweden we get it as extra money Jul 05 20:53:45 usually start off with 2 weeks paid vaca, but once you work for the same company for 5-10 years, could increase to 3 or 4 weeks Jul 05 20:53:56 luyang: basically, they kept the workload/staff balanced so nobody could take off Jul 05 20:54:00 luyang: always a crisis Jul 05 20:54:10 jcromartie: those bastards :/ Jul 05 20:54:18 luyang, that is optional and upon agreement with the company? Jul 05 20:54:25 I don't like always crisis. I like to focus on positive energy and get shit done Jul 05 20:54:29 luyang: yeah, in different states, you may get paid for it since it's basically wages Jul 05 20:54:39 but not in DC Jul 05 20:54:45 mikk36: yeah I think we have 20 days minimum leave in Sweden each year that you *have* to take out Jul 05 20:55:05 I could move to the US if I got 30 paid days off there too :P Jul 05 20:55:18 i wasn't talking about the US :) Jul 05 20:55:25 a bit east of you Jul 05 20:55:30 Russki? Jul 05 20:55:34 estonia Jul 05 20:55:39 ok Jul 05 20:55:54 similar stuff regarding that, i guess Jul 05 20:56:07 I operate under the belief that you should be working somewhere that things like that don't matter. Jul 05 20:56:37 luyang: you get 1 week here (5 days) :P Jul 05 20:56:44 luyang: if you are lucky Jul 05 20:56:57 JakeWharton, you dont want vacation? Jul 05 20:56:59 :) Jul 05 20:57:00 hi there.. i have a java class that i made a save() method on, want it to serialize itself and write it to storage.. opening a FileOutputStream requires a Context.. is there a way to get my Context within the java class? Jul 05 20:57:11 i'm a newb so i'm even having trouble figuring out exactly what to google Jul 05 20:57:14 i take vacation when i need it Jul 05 20:57:35 today, we are off, but I am working because I don't need it off Jul 05 20:57:39 -commas Jul 05 20:57:51 JakeWharton: that's good though… when you're really tired you take time off… like in the police movies… ("you look like you need some time off") Jul 05 20:58:42 but in Sweden we believe it is healthy to "charge your batteries" and revitalize and go down in stress levels and catch up with life outside work and enjoy the nature… it's too dark during winter so we need it I guess Jul 05 20:58:45 yea canadian laws dont really allow that kind of stuff Jul 05 20:59:00 ddavis: a few options... pass it in the class' constructor, or pass it in the save() method as an argument. Jul 05 20:59:02 employees are required by law to have a certain amount of vacation time Jul 05 21:00:31 TheTrash: duh.. thanks.. constructor one would be perfect, didn't think of keeping it from the start... thanks much Jul 05 21:01:03 hm, or maybe is it trying to add some stabilisation to the mix Jul 05 21:01:19 i don't seem to get any odd behaviour in the middle of the screen Jul 05 21:01:35 guess i have to check over the camera parameters tomorrow Jul 05 21:02:44 on vacation: http://dilbert.com/strips/comic/2008-06-26/ Jul 05 21:05:09 how would I specify a parameter to my default activity through the manifest file? Jul 05 21:05:41 g00s, if i had a manager like that, i'd quit Jul 05 21:05:44 i.e. my default activity is just an instance of a generic activity that I use for several other activities, but with different runtime configuration Jul 05 21:05:44 or ask for a transfer Jul 05 21:05:47 s/ask for/demand/ Jul 05 21:06:32 jcromartie: the entry in the manifest can have this http://developer.android.com/guide/topics/manifest/meta-data-element.html Jul 05 21:06:37 is that what you are looking for ? Jul 05 21:06:45 g00s: perfect Jul 05 21:08:31 i think im dying Jul 05 21:08:39 i cant make it through a day without a LONG nap or a redbull Jul 05 21:08:51 lol Jul 05 21:09:25 * Jug6ernaut doesnt know why only old ppl and kids get naps Jul 05 21:09:36 Is there a reason why I can't paste a value in the strings.xml editor Jul 05 21:09:42 it just wipes out the name when I paste Jul 05 21:09:42 WTF Jul 05 21:09:48 lol Jul 05 21:10:05 has anyone found a slide-in/fly-in menu implementation that works well with ActionBarSherlock? Jul 05 21:10:09 canadiancow|work: now is a good time to nap, since ron_frown just arrived Jul 05 21:10:11 just editing the XML now… no porblems Jul 05 21:10:18 i cant nap Jul 05 21:10:19 im at work Jul 05 21:10:25 so i grabbed a redbull Jul 05 21:10:29 cow <3 bull Jul 05 21:10:39 "i cant make it through a day without a LONG nap or a redbull" I feel just like that... Jul 05 21:10:52 canadiancow|work: you have to work that http://twentytwowords.com/2012/03/08/how-to-sneak-a-nap-at-work-using-a-stack-of-boxes/ Jul 05 21:10:58 WTF, when I pasted in the strings editor, it actually dumped the pasted text into the beginning of the strings.xml file itself Jul 05 21:11:02 like before the im normally ok Jul 05 21:11:38 but this week has been death Jul 05 21:11:44 either i fail at jet lag Jul 05 21:11:46 or im sick Jul 05 21:12:16 I know the feeling… Try changing food, sleep, work, exercise patterns Jul 05 21:12:33 exercise pattern... Jul 05 21:12:37 is lack there of a pattern? Jul 05 21:12:49 it is like empty string Jul 05 21:13:01 * Jug6ernaut sees the light Jul 05 21:14:30 the last time ireally exercised, i threw up halfway through Jul 05 21:14:37 i may have also been hungover Jul 05 21:14:42 lmao Jul 05 21:15:00 canadiancow|work: yes too much sitting in front of computer can kill the strongest Jul 05 21:15:15 what doesnt kill you makes you stronger Jul 05 21:15:17 i dislike when people abbreviate "count" to "cnt" Jul 05 21:15:21 because i always read it as "cunt" Jul 05 21:15:23 so the strongest get stronger? Jul 05 21:15:33 lmao Jul 05 21:15:57 you have to be really lazy to abbreviate a 5 letter word :\ Jul 05 21:16:01 lol Jul 05 21:16:01 google now keeps telling me traffic home Jul 05 21:16:07 i never drive home Jul 05 21:16:09 STOP IT Jul 05 21:16:13 :) I see your point... but it's also pretty hard to read. I really don't see why saving 2 characters is worth that. Jul 05 21:16:26 g00s: can I associate the metadata with the default/main intent filter only? Jul 05 21:16:31 canadiancow|work: what are you running jb on ? Jul 05 21:16:32 it's actually considered really bad practice to remove single letters in short words Jul 05 21:16:41 Well I agree 100% Jul 05 21:16:43 right now? galaxy nexus Jul 05 21:16:48 i.e. I just want to give this Activity a default URL when the app is launched from android.intent.action.MAIN Jul 05 21:17:08 canadiancow|work what do you mean by "right now" Jul 05 21:17:14 Would this be the place to ask for help with compiling a kernel for android, or no? Jul 05 21:17:18 what else have u run it on? Jul 05 21:18:23 I think I'm architecting this completely wrong Jul 05 21:18:30 yurilebbie: #android-root Jul 05 21:18:56 bankai_: okay, thank you Jul 05 21:19:32 so i see all these apps that are like $2 and have 50k-100k downloads Jul 05 21:19:35 yurilebbie: and do everyone a favour and turn off your scripts Jul 05 21:19:37 and then i think "wow this guy's doing well" Jul 05 21:19:41 then i realize it's their only app Jul 05 21:19:52 and it's been out for a year already Jul 05 21:19:57 canadiancow|work: I'll take that and a dayjob any time. Jul 05 21:20:11 bankai_: what do you mean? Jul 05 21:20:13 well...in this case, there is no "and a dayjob" Jul 05 21:20:15 * Jug6ernaut wishes he had 50k-100k downloads Jul 05 21:20:34 How do I get the KeyboardView for an EditText? Jul 05 21:20:47 my best app had over 100k Jul 05 21:20:54 paid? Jul 05 21:20:55 the best app ive ever worked on had a lot more than that though Jul 05 21:20:58 no Jul 05 21:20:58 I need to try and figure out what is causing this issue with the HTC thunderbolt, and I'm thinking I might just need to try messing with the view directly if that's possible. Jul 05 21:20:58 If you're working full time on an app and not getting better downloads, you're doing it wrong. Jul 05 21:21:14 i had > 100k on one of mine, b4 google toke it down xD Jul 05 21:21:19 same Jul 05 21:21:23 Jug6ernaut: oh oops, why? Jul 05 21:21:24 are you just copying my story Jul 05 21:21:32 but i put mine back up though Jul 05 21:21:32 lol i wish Jul 05 21:21:36 :) Jul 05 21:21:37 bankai_: if you mean that you think i am a script kid then i am not, just trying to see if a kernel that is in development works better than the stock cm9 one, just G++ is giving me troubles Jul 05 21:21:46 it's good though that Android developers aren't giving up and moving to do iPhone development… I hope that Android developers can make as much in the future Jul 05 21:21:48 so did i, hasnt done as well tho, not to be surprised tho. Jul 05 21:22:03 TheTrash aparently EA doesnt like it when ppl use "tetris" in there app titles? who knew? :P Jul 05 21:22:04 same :( Jul 05 21:22:08 LOL Jul 05 21:22:12 Jug6ernaut: ahh I remember that. Jul 05 21:22:22 Jug6ernaut: can't you rename? Jul 05 21:22:28 o i did Jul 05 21:22:37 but i cant think of a good one...like at all... Jul 05 21:22:41 they actually told you what the problem was? Jul 05 21:22:47 they just told me "your app violates a content policy" Jul 05 21:22:53 and i was like "wtf" Jul 05 21:23:02 I wonder if the market search engine is actually smart enough to match tetris to "brick game". Jul 05 21:23:02 and i spoke with roman nurik at i/o and he started talking about porn Jul 05 21:23:20 they removed it and then attached a letter or something listing apps with "tetris" in there title that got removed, pretty sure EA requested it Jul 05 21:23:28 haha Jul 05 21:23:49 I woudlnt even try to buld a tetris clone Jul 05 21:24:01 ron_frown wasnt a tetris clone ;) Jul 05 21:24:16 not directly anyways, live wallpaper Jul 05 21:24:21 lots of controversy about tetris Jul 05 21:24:28 its interesting though... im surprised that isnt fair use Jul 05 21:24:29 its like fucking with apple and its products Jul 05 21:24:32 they WILL come after you Jul 05 21:24:39 lol yea Jul 05 21:24:42 is there a way to change the datasource of a MediaPlayer object by resourceid? Jul 05 21:24:49 every time i've reported something at zynga, our legal department has said "it's fair use" Jul 05 21:25:01 canadiancow|work well the game is, just not the name, name is trademarked Jul 05 21:25:16 we trademark our names Jul 05 21:25:23 but im sure you can find a Words With Friends Cheater Jul 05 21:25:27 or Words With Friends Helper Jul 05 21:25:28 etc Jul 05 21:25:31 yea Jul 05 21:25:32 idk Jul 05 21:25:35 I think companies just figure they have enough lawyers and money it doesnt matter Jul 05 21:25:42 maybe the world/ea/google doesnt like me lol Jul 05 21:25:43 lol Jul 05 21:25:49 what about Jugtris Jul 05 21:25:55 lol Jul 05 21:26:13 jug tits? Jul 05 21:26:13 at my old work, I noticed that they put a bunch of artistic artwork up on the wall, and one of the pictures was actually a nazi propaganda poster Jul 05 21:26:30 Arbeit Macht Frei? Jul 05 21:26:33 I'm not jewish or anything, but figured.. .someone was bound to be offended Jul 05 21:26:38 wtf lol Jul 05 21:26:42 yea Jul 05 21:26:48 canadiancow|work lol Jul 05 21:26:53 anyway, I told someone and they said they'd take care of it, but the art dude put up a big stink Jul 05 21:26:54 the-tris … did you mean tetris? Jul 05 21:26:56 * Jug6ernaut needs to update that app Jul 05 21:27:00 told the hr lady who was jewish and man Jul 05 21:27:04 she was surprised and pissed Jul 05 21:27:19 reminds me of when we were acquired Jul 05 21:27:25 a black hr lady was up here Jul 05 21:27:30 we were in some session Jul 05 21:27:35 the presenter siad something Jul 05 21:27:41 and a friend of mine said "now THAT is a white person problem" Jul 05 21:27:55 hr did not approve Jul 05 21:28:17 did your friend realize the hr person was present? Jul 05 21:28:19 lol Jul 05 21:28:23 she was behind him Jul 05 21:28:28 I can imagine Jul 05 21:28:33 so now we say "first world problem" Jul 05 21:28:35 wooopsie lol Jul 05 21:29:16 http://stackoverflow.com/questions/11336283/gcm-for-suspended-chat-sessions does anybody have any thoughts on this? (it's a bit long to ask directly in here) Jul 05 21:29:53 I feel dumb asking this, but I think I found a class that will help me with my problem but dont' know how to use it... The class is here: http://goo.gl/HRl7v Jul 05 21:30:08 Am I supposed to declare the new ScrollableImageView in my main class? Jul 05 21:30:23 where ever u need to use it Jul 05 21:30:46 Stew-a: it makes me think about Google Talk. Sometimes the statuses aren't updated until I refresh it and people go away when I open their chat boxes etc. Perhaps you need to accept some kind of behavior like that which is on demand? Jul 05 21:31:02 yea Jul 05 21:31:05 * Jug6ernaut is about to opensource his first bit of code Jul 05 21:31:12 when someone sends a message, send the gcm and demand an ACK immediately Jul 05 21:31:19 if you dont receive it, they're offline Jul 05 21:31:50 luyang: not a behaviour i noticed, but i figured since google talk was running under similar restrictions that somebody might know what they do about it, but if they don't have a solution then i guess there probably isn't one Jul 05 21:32:20 well you're basically asking for the client to send a message after the device turns off :P Jul 05 21:32:31 like "hey im offline - stop sending me stuff" Jul 05 21:32:33 Stew-a: I think it is an optimization thing that it shows the last known Presense (status) until it refreshes Jul 05 21:33:30 Stew-a: it's subtle but I have noticed such behavior. I have even seen people online in my Talk client when I didn't have a connection Jul 05 21:33:50 arnt xmpp servers supposed to do this stuff automatically... Jul 05 21:34:19 Jug6ernaut: xmpp servers weren't designed with 'hanging up and waiting for a server push' in mind last time i checked Jul 05 21:34:43 Jug6ernaut: congrats! Jul 05 21:34:57 on? Jul 05 21:35:01 anyway, i guess the most reasonable course would be pings in the region of every 1 hour, and expecting immediate responses from GCM tickles Jul 05 21:35:02 open sourcing code Jul 05 21:35:12 o lol thx :D Jul 05 21:35:32 its pretty small, but i couldnt find it anywhere(maybe bc it was so simple idk lol) Jul 05 21:36:20 well if helps at least one other person then it was worth it Jul 05 21:36:31 Why is setting up a scrollable imagview such a pita in android!!? Jul 05 21:36:35 agreed Jul 05 21:36:46 its not? Jul 05 21:36:46 why would u want a scrollable imageview? Jul 05 21:36:52 just put it in a scrollview :S Jul 05 21:36:55 ^^^ Jul 05 21:37:32 And put that scrollview in a listview Jul 05 21:37:41 * canadiancow|work sighs Jul 05 21:37:41 :o Jul 05 21:37:50 yo dawg, i heard you like scrolling Jul 05 21:38:09 Isn't this the source code for the 2012 I/O app? http://code.google.com/p/iosched/ Jul 05 21:38:16 ah no it isn't Jul 05 21:38:18 no? Jul 05 21:38:20 I must be blind or tired Jul 05 21:38:21 LOL Jul 05 21:38:33 that Coming soon was too bold Jul 05 21:38:35 Bold text is so hard to see Jul 05 21:38:38 yeah Jul 05 21:38:39 k fuck this im getting nothing done at work... time to work form home Jul 05 21:39:29 thats like the most unbold bold text ive ever seen Jul 05 21:41:17 luyang: lasts commits are with 2011 date Jul 05 21:41:33 r0ver: yes I know 0:-P Jul 05 21:41:51 it just said 2012 so many times on that page Jul 05 21:41:52 lol Jul 05 21:42:20 getting lazy Jul 05 21:42:27 i wonder if 2012 version used gdm Jul 05 21:42:38 gcm, sorry Jul 05 21:42:40 let's hope so Jul 05 21:42:54 how useful is that gui designer thing or what not in the ADT for eclipse? Jul 05 21:43:10 its pretty useful Jul 05 21:43:20 Technodrome: yes it has become a lot better Jul 05 21:43:21 i mean how complex can you make ui's with that thing? Jul 05 21:43:26 not nearly as good as the interface builder for ios, but it works, and is getting better Jul 05 21:43:44 im sorta viewing that thing as dreamweaver :) Jul 05 21:43:52 maybe the wrong impression Jul 05 21:43:53 lol thats like asking how comples of a program can you make, how ever far u want to go Jul 05 21:44:31 * Jug6ernaut perfers elegance > complexity Jul 05 21:45:52 "Beautiful is better than ugly.", " Simple is better than complex." and " Complex is better than complicated." :D Jul 05 21:45:56 Technodrome: that's a good impression because dreamviewer ui designer sucked last time I tried to use it Jul 05 21:46:23 Technodrome: the bad thing about dreamweaver is that it renders things "almost" like in a browser, but not really actually Jul 05 21:47:35 it has live view and stuff now , but thats not the same as their true live editor Jul 05 21:48:16 Technodrome: I watched this and wow'ed! http://www.youtube.com/watch?v=Erd2k6EKxCQ Jul 05 21:49:54 im on day 2 of android dev luyang :) Jul 05 21:50:42 Technodrome: yes then watch that video and dream away ;) Jul 05 21:50:47 ok I see what you mean Jul 05 21:51:19 how can i crease the size of my console output? i'm using iTerm and printlns seem to be pretty limited…im not anywhere near java's output limit Jul 05 21:52:27 are you talking about scrollback ? Jul 05 21:52:50 no just calls to println seem to not print the entire thing Jul 05 21:53:03 gets cut off before i reach the end of printing some json or whatever Jul 05 21:57:12 I... think I'm done outsourcing to India. Jul 05 21:57:37 i've got a sqlite database wich contains playtimes of bands playing on festivals. i want to write kind of a background service that will alert me when a band that is in the favorites table is about to play in say 15 minutes. how can i do this? beginner here Jul 05 21:57:57 Is there a way to return a filedescriptor of a raw resource? all I can seem to get is an assetfiledescriptor Jul 05 21:58:03 dfq: since you already know the time, best way is to set an alarm. Jul 05 21:58:19 TheTrash: any hints? Jul 05 21:58:27 Yes, set an alarm :P Jul 05 21:58:43 oh theres a class for that? Jul 05 21:59:02 AlarmManager Jul 05 21:59:02 wow ive searched async tasks, bg services but I never thought of alarm Jul 05 22:02:53 is there any way to get around apps like adfree? Jul 05 22:05:34 <[deXter]> ninjai, Yes, don't use known ad servers Jul 05 22:05:59 <[deXter]> ninjai, Or you could use IP addresses instead of hostnames Jul 05 22:06:10 how about detect it and nag the user 200% about that fact? Jul 05 22:06:23 [deXter], if I'm using admob, how can I determine which servers it uses? Jul 05 22:07:23 <[deXter]> ninjai, in that case, what SuD said. Jul 05 22:07:40 haha alrighty Jul 05 22:07:47 <[deXter]> http://code.google.com/p/adfree-detector/wiki/AdFreeDetectorUsage Jul 05 22:07:58 nice thanks Jul 05 22:08:13 the virus/antivirus race reincarnated again Jul 05 22:08:18 <[deXter]> :) Jul 05 22:11:12 http://pastebin.com/vMS9mUm3 on line 25 i set my edit text to be unfocusable, but if a user chooses a different spinner item i want the edittext to be editable Jul 05 22:11:33 so yeah eclipse is really the only thing to use for android Jul 05 22:11:42 the xml editor stuff is just to useful Jul 05 22:12:24 don't tell lies Jul 05 22:12:48 whereever i stick the etPrice.setFocusable(true);, it seems to ignore it Jul 05 22:15:55 anybody here familiar with SL4A scripting? Jul 05 22:17:16 SavageSimian: if you have questions, just ask. we'll answer if we can. Jul 05 22:18:35 mdwright - i just asked one. so far, no response... ;) Jul 05 22:19:26 Mine was a response, just maybe not the one you were looking for Jul 05 22:19:27 :) Jul 05 22:22:00 anyway, i'm new to android dev in general but thought i'd give python scripting a shot. i d/l'd and installed pythonforandroid_r5 (?) with no problem. but it appears that the website for sl4a is saying that the sl4a app needs to be installed and then py4android is installed on top of that. i don't see where it might have installed the sl4a framework so was wondering if i need to uninstall Jul 05 22:22:00 and install sl4a first? Jul 05 22:24:41 You should just be able to install sl4a and have it work Jul 05 22:25:13 ok. i'll give it a shot. t. Jul 05 22:26:11 sure thing. if you have issues then uninstall pythonforandroid and install it *through* SL4A (directions: http://code.google.com/p/android-scripting/wiki/InstallingInterpreters ) Jul 05 22:26:15 but I don't think you need to Jul 05 22:26:47 yea. i read that. it's what gave me the impression sl4a needed to be installed first... Jul 05 22:28:23 if I'm writing a class, how can I access Context objects like getString( R.string.mystore_password ) without an Activity? Jul 05 22:31:43 are linearlayout and relativelayout the only two ways to build a layout for an activity? Jul 05 22:31:53 or rather the only *building blocks* Jul 05 22:31:55 you might have to pass the Context or Activity into your constructor Jul 05 22:32:41 Mavvok: There are others, notably GridLayout Jul 05 22:32:47 http://www.businessinsider.com/google-now-better-than-siri-2012-7 Jul 05 22:32:59 Mavvok: GridLayout, FrameLayout, any view or viewgroup Jul 05 22:33:12 Mavvok: http://developer.android.com/reference/android/view/ViewGroup.html Jul 05 22:33:32 cool, thanks guys :) Jul 05 22:37:44 This is off topic, but does anyone know if there is a minimal interface irc client for windows? Jul 05 22:38:10 irssi Jul 05 22:38:29 wongk-home: perfect thanks! Jul 05 22:38:55 lasserix: minimal? telnet ! Jul 05 22:39:15 http://oreilly.com/pub/h/1963 Jul 05 22:39:17 * g00s runs Jul 05 22:39:25 and on the other end you'd probably be running... irssi :P Jul 05 22:39:54 oh, hah Jul 05 22:39:56 I'm a big fan of irssi + tmux Jul 05 22:40:54 this is pretty interesting: http://www.businessinsider.com/linked-revenue-facebook-2012-7 Jul 05 22:44:20 Didn't they release some report that ~>40% of the fooboo userbase were not actual people? Jul 05 22:45:29 wouldn't surprise me Jul 05 22:45:42 there's tons of companies and other organizations on there Jul 05 22:55:09 Any recommendations for libraries that do leader boards and/or achievements? Jul 05 23:14:29 JakeWharton: do you know, is it slow to lookup preferences? should you not get a value from preferences in a getView? Jul 05 23:14:39 it's slow Jul 05 23:15:08 so it's not like a simple map lookup or soemthing like that Jul 05 23:15:47 no, hits the file system Jul 05 23:19:46 ah i see Jul 05 23:21:35 I'm building a socket backed application. I only want one instance of the socket class running. Is it better to use custom events to communicate with the socket class, or use a Singleton pattern and create a .getInstance() method? Jul 05 23:22:10 another quick question, if you have a drawable that is used in each item in a listview, is it better to load it into a bitmap in the code then assign that bitmap to each item instead of doing view.setImageResource(R.drawable.image) for each new list item? Jul 05 23:22:50 setBitmap is considerably less resource-intensive. Jul 05 23:23:30 and you can use the same bitmap object for every item without problems? Jul 05 23:23:33 I usually set up some sort of cache that has bitmaps. Jul 05 23:23:35 Yeah Jul 05 23:23:41 cool thanks Jul 05 23:24:09 Kenji: Do you mean SharedPreferences? Jul 05 23:24:23 ja Jul 05 23:24:28 yeah* Jul 05 23:24:49 It's a map lookup Jul 05 23:25:09 sounds like swedish Jul 05 23:25:10 SimonVT: you mean the entire thing is loaded in memory in advance? Jul 05 23:25:13 When you first call getSharedPreferences they are all loaded into memory Jul 05 23:25:24 Interesting Jul 05 23:25:26 Yes Jul 05 23:25:43 It even caches the preferences if you dereference the sharedpreference Jul 05 23:25:56 So next getSharedPreference is just a map lookup as well Jul 05 23:26:33 Also why you should use Editor.apply() instead of Editor.commit() on api9+ Jul 05 23:26:47 It simply updates the preference map in memory, and commits to disk async Jul 05 23:26:51 anyone know of an audio player for android that can play things at 2x speed? Jul 05 23:27:04 Whereas with commit you have to wait for it to write to disc Jul 05 23:27:15 ok, so then you don't you save alot by cashing the value in a local variable then. Just normal variable lookup vs map lookup Jul 05 23:27:28 caching* Jul 05 23:29:14 I cache it anyway Jul 05 23:30:25 hmm, anything in the framework that call tell you what size screen youre running on? Jul 05 23:30:54 not the width/height/density, but the size (small,normal,large,x-large) Jul 05 23:31:26 There is, yeah Jul 05 23:31:28 I forgot where Jul 05 23:31:39 Just a sec Jul 05 23:32:35 http://developer.android.com/reference/android/content/res/Configuration.html#screenLayout Jul 05 23:33:43 Can even do screenLayout & SCREENLAYOUT_SIZE_MASK >= SCREENLAYOUT_SIZE_LARGE for large and xlarge Jul 05 23:34:24 ah, i forgot about config... thanks Jul 05 23:34:30 huh, i have a boolean member on my activity that seems to be getting set to false between the activity being paused and resumed Jul 05 23:34:51 will AccountManager always return verified accounts, or should i run a check with oAuth or something>? Jul 05 23:36:07 it typically gives you an auth token, it's up to your service to verify the token Jul 05 23:40:56 what the shit Jul 05 23:44:34 is the activity being recreated? Jul 05 23:46:06 i know what the problem is Jul 05 23:46:11 it is being created a 2nd time Jul 05 23:46:17 so there are actually 2 Jul 05 23:47:38 need food Jul 05 23:48:17 hi guys -- small question: I built an app that works rather well usually but once I use a task killer to kill it, and then start the app again - it force closes. Then if I start the app again it works fine. What I wanted to ask is - what happens when I kill a task? when later on I go back to the app - will it try to go back to the activity I was in before, or will it start from scratch? Jul 05 23:48:43 Techdeck: task illers dont terminate apps cleanly Jul 05 23:48:57 so what happens there? Jul 05 23:49:00 meaning, apps that are terminated, in this sense abnormally, they dont get a chance to do any cleanup routines Jul 05 23:49:24 but is there a chance it skips the first activity and goes back to the activity I was in before? Jul 05 23:49:48 I'm on android 2.3 by the way Jul 05 23:49:52 Honesty man, because this is abnormal termination, behavior may or may not be undefined Jul 05 23:50:15 so back to designing for android, how is your guys graphics setups? Jul 05 23:50:17 hmmm, interesting... I wonder if I'll run 'force close' will it be the same Jul 05 23:50:19 lemme check Jul 05 23:50:30 do yoou do full PSD mocks? or create images / styles on the fly? Jul 05 23:52:00 drpenguin - you're right. When I just force close it, it seems to work fine. But still, any ideas how can I somehow (maybe cleanup on startup) fix it? Jul 05 23:52:22 Read the stack trace Jul 05 23:52:23 hello everyone Jul 05 23:52:43 Well, it depends on your app doesnt it? you need to see whats going on there Jul 05 23:53:17 Task killers shouldn't usually cause fc's, there's probably an underlying issue with your app that could be trigger by something else Jul 05 23:53:30 If you an I both wrote C programs that did things and had to do cleanups, and both of them received SIGTERMs, what may happen will be different, and what needs to be done would be different (obviously here, Signal Handler for SIGTERM) Jul 05 23:53:40 oh there is, but it's weird - I have no other way of reproducing it other than killing the app Jul 05 23:53:49 is it common to have a tablet version as well as a phone version of an app, or both? Jul 05 23:54:02 drpenguin, what I meant is - is there a way to cleanup manually? Jul 05 23:54:15 Techdeck: you need to find out whats broke before you fix it dont ya champ? Jul 05 23:54:25 drpenguin, I know whats broke, but not sure why it happens Jul 05 23:54:33 let me try and drill down a little with you guys Jul 05 23:54:35 Technodrome: the correct method is *usually* to have different layouts in a single app, unless the functionality differs a lot between tablets and phones Jul 05 23:55:09 Leeds: which means some huge images (file size wise) to be able to scale all the way down Jul 05 23:55:38 which means you need to try to be intelligent and not waste space with huge images, yes :) Jul 05 23:55:39 I have 2 activities: 1) FirstActivity 2) MainDisplayActivity -- first activity is obviously the first one to run. After it does some nifty things and sets up a few static variables in another class, it loads MainDisplayActivity. This process seems to work fine when not using a task killer. Somehow after I kill the app and start it again, those static variables I defined no longer exist Jul 05 23:55:55 and it seems as if they weren't initialized in FirstActivity (as if MainDisplayActivity loaded without FirstActivity) Jul 05 23:56:18 Why would they exist? Jul 05 23:56:21 Techdeck: The same exact behavior happens if the system reclaims your process Jul 05 23:56:26 Your processes memory space was destroyed Jul 05 23:56:27 You should handle those cases Jul 05 23:56:33 Leeds: can you use something that is not pixel based? like svg or something? Jul 05 23:56:34 Or you're gonna have a bad time Jul 05 23:56:43 Leeds: that way it really wouldn't matter Jul 05 23:56:54 SimonVT what do you mean the system reclaims my process? Jul 05 23:56:56 If you need to pass variables to an activity, do so in the intent Jul 05 23:57:05 ah Jul 05 23:57:06 Techdeck: If some other app needs the memory your app is using Jul 05 23:57:10 Your app will be killed Jul 05 23:57:12 can I pass anything? even just classes? Jul 05 23:57:17 (through an intent) Jul 05 23:57:27 Then user opens your app again, and it crashes cus of the exact same issue Jul 05 23:58:00 ok - and how does passing it in an intent instead of static variable fix it? Jul 05 23:58:36 The same intent is passed to your activity when it's reopened Jul 05 23:58:42 ah Jul 05 23:58:46 that makes sense Jul 05 23:58:56 thanks a lot SimonVT and drpenguin - you've been very helpful Jul 06 00:00:08 Technodrome: you can use things like shapes and 9patches... Jul 06 00:00:26 if you care about bitmaps: https://plus.google.com/111962077049890418486/posts/Ytar76F56y5 Jul 06 00:01:29 thanks romainguy Jul 06 00:04:08 By the way, is it impossible for Google to devout some of its immense resources and temporarily work with major carriers to update the android os versions? Nipping fragmentation in the butt as it were. Jul 06 00:05:25 I understand the carriers might want to bloat the installed os as much as possible, but at least they could be using > 3.0 etc Jul 06 00:05:32 They should rather use their immense resources to stop carrier modifications altogether Jul 06 00:09:51 they should use their immense resources to tell VZW FU Jul 06 00:09:57 so that we can get timely updates to the GN Jul 06 00:10:01 one step at a time Jul 06 00:11:51 romainguy_: Good post :) It's always nice when you android people post technical posts on g+, usually leads to interesting discussions afterwards Jul 06 00:12:32 Hey, anyone here have an Incredible or have experience with them? I'm very confused, not sure what's going on with my dev phone right now. Jul 06 00:13:48 Tried to do a nandroid earlier - it failed (I think I didn't have enough room on my SD card), and now my phone won't boot - not even into recovery. It just vibrates 5 times and flashes the notification LED. Jul 06 00:13:54 i'd rather technical stuff just stayed on d.android.com Jul 06 00:14:40 SimonVT: this one of course opened with a rather… hmmm… not so interesting comment Jul 06 00:14:41 If I'm in the wrong channel for this sort of thing please direct me elsewhere - just figured you guys might know something about it. Jul 06 00:15:04 romainguy_: I can only see the comment by you, was it deleted? Jul 06 00:15:15 SimonVT: apparently :) Jul 06 00:15:28 he just said "Froyo uses 565" Jul 06 00:16:02 I've tried flashing back to stock from HBOOT - same problem. I'm at my wit's end here. Jul 06 00:16:36 g00s: It's faster to do a g+ post. It also gives them a feel for where developers are left confused. Should something like this ever make it to d.android.com, that's a great resource Jul 06 00:17:04 i think d.android.com should have some sort of page rating / feedback mechanism instead Jul 06 00:17:13 so if id like to use their gmail account for my back-end services, i would get the auth token from AccountManager then authenticate it with google? Jul 06 00:17:14 'did you find this page useful?' Jul 06 00:17:32 there's a +1 at the bottom Jul 06 00:17:42 g00s: when we write articles that people like/find useful, they then become articles on d.android.com Jul 06 00:17:57 also, you're welcome Jul 06 00:18:18 (I'm on vacation right now :p) Jul 06 00:18:26 who said Froyo uses 565? Jul 06 00:18:31 io was hard on you? :p Jul 06 00:18:44 SimonVT: Google gave us today and tomorrow for the 4th of July Jul 06 00:18:50 JakeWharton: some dude Jul 06 00:18:57 stiltzkin: some quick googling turns up http://forum.xda-developers.com/showthread.php?t=1110865 Jul 06 00:18:58 i just had a bug report about action bar drawables being banded on pre-GB and suggested setting the pixel format to 8888 Jul 06 00:19:01 JakeWharton: which is in a way true, but my post links to another article I wrote on the topic Jul 06 00:19:11 565, color distribution? Jul 06 00:19:18 JakeWharton: http://www.curious-creature.org/2010/12/08/bitmap-quality-banding-and-dithering/ Jul 06 00:19:23 pfn: yes Jul 06 00:19:25 ok Jul 06 00:19:27 mdwright, already read that thread - it only works if you can get the phone booted. The fastboot commands do nothing for me. Jul 06 00:19:39 stiltzkin: You should go to #android-root Jul 06 00:19:46 Or find cyanogenmod's channel or something Jul 06 00:19:52 SimonVT, already asked over there, there's no activity Jul 06 00:20:14 There generally isnt activity there.. but we dont troubleshoot customizations here Jul 06 00:20:23 drpenguin, I understand, no problem. Jul 06 00:21:19 it's not even a customization though - it won't boot on stock, which is what has me concerned. I'll ask elsewhere though, no prob. Jul 06 00:22:32 I cannot get enough super-technical posts like this Jul 06 00:22:37 so useful and informative Jul 06 00:22:38 d.android.com doesn't even have +1 on many pages Jul 06 00:22:48 exhibit a: http://developer.android.com/reference/android/view/View.html Jul 06 00:23:15 those are javadocs Jul 06 00:23:19 I'm not sure there'd be a point to giving javadocs a +1... Jul 06 00:23:26 "Did you find this class useful? Let us know!" Jul 06 00:23:33 Maybe g00s *really* likes View? Jul 06 00:25:02 apparently Jul 06 00:25:28 har har Jul 06 00:25:29 Personally, I cant get enough of Spinners Jul 06 00:25:36 I have pictures of them posted all over my room Jul 06 00:25:57 I dream of 4444 pixels trying to kill me Jul 06 00:26:19 romainguy_: I dream of X comming after me >_>; Jul 06 00:26:24 s/dream/dreams/ Jul 06 00:27:13 wait.. I was right the first time.. Jul 06 00:27:21 if there is +1 i think there should be =1 Jul 06 00:27:22 -1 Jul 06 00:27:44 :) Jul 06 00:28:04 and if i +1 a page and then it gets changed to crap, what then ? Jul 06 00:28:15 you un-plus it Jul 06 00:28:18 Then we get to ridicule you for liking crap Jul 06 00:28:22 that too Jul 06 00:28:22 same goes for "likes", linking, tweeting, etc. Jul 06 00:28:35 that's kind of how the web works really :p Jul 06 00:28:35 Thats like.. if you liked a page, and then they added 30 My Little Pony pictures to it Jul 06 00:29:45 hi, i just released my first app a few days ago. according to google play almost all android devices ar compatible, so endusers can see the app in google play. but when they try to install the app, the installation fails because of some mythical "missing feature". but the devices dont say which feature it is. the only that is required in the manifest is "android.hardware.touchscreen". i googled a lot in the last days Jul 06 00:29:47 can anybody give me a pointer about what to do in this situation? Jul 06 00:30:13 hugos: what app? Jul 06 00:30:20 without boying avery android device and test it manually Jul 06 00:30:29 id=com.wacken Jul 06 00:30:50 Wait.. the app fails DURING installation? Jul 06 00:31:01 Thats.. weird.. if the user is missing a feature, it should be filtered out of play Jul 06 00:31:09 thats what the people say Jul 06 00:31:32 some have an older version and can't update because of the missing feature Jul 06 00:31:48 Are they using custom roms? Jul 06 00:31:49 but i removed feature requirements withe the last updates Jul 06 00:32:49 probably not, someone with a custom reom would know that it could be his rom and would not complain about the app Jul 06 00:32:57 Hah Jul 06 00:33:04 Yeah, that's not how it works Jul 06 00:33:20 Most people with custom roms are clueless Jul 06 00:33:23 hugos: you poor man, dude, ive sen people rip on apps that dont include a CHANGE LOG Jul 06 00:33:38 hugos: custom rom is not a problem. installed in on CyanogenMod and worked Jul 06 00:33:58 ONE custom roms has no issues installing it Jul 06 00:34:10 Now, go test the 9000+ others Jul 06 00:34:14 SimonVT: okay okay :D Jul 06 00:34:26 SimonVT: and CM is probably one of the roms that made the best job :) Jul 06 00:34:59 hugos: it's showing you have a ton of uses-features, in your manifest Jul 06 00:35:09 when i look at the comments it is notebal tha people with the same devices have the problem Jul 06 00:35:11 SimonVT: most people using custom roms might know how to find out why they can't install the app ;-) Jul 06 00:35:28 romainguy_: but isn't +1 mostly a signal to the search engine so that it shows up higher in rankings? i don't get what that has to do with providing feedback on a page still. Jul 06 00:35:42 hugos: http://pastebin.com/ukq2k1R5 Jul 06 00:35:49 hugos: did you try it installing in different emulators? Jul 06 00:35:56 I would guess it's maybe some of the specialized camera stuff Jul 06 00:36:22 g00s: if we see 256,000 +1s on a tutorial but only 2 on another one, maybe that second tutorial sucks? Jul 06 00:36:25 oh, those are not required though Jul 06 00:36:28 pboos: Trust me, they don't Jul 06 00:36:32 @JesusFreke: but only one of the feature is actually required Jul 06 00:36:33 didn't notice that :) Jul 06 00:36:37 yea, just noticed Jul 06 00:36:47 i never had any problem with the emulator Jul 06 00:36:58 romainguy_: maybe, but how do you know? maybe nobody needed it. how do you know if it was genuinely not informative ? Jul 06 00:37:01 SimonVT: okay. in that case more than i thought are using custom roms. but that actually makes me happy :) Jul 06 00:37:45 g00s: that's always the problem with any form of feedback Jul 06 00:38:52 4.1 still doesnt have song metadata transfer over avrcp :( Jul 06 00:38:55 CM10 here i come... Jul 06 00:39:17 nice post romainguy_ Jul 06 00:39:20 https://github.com/CyanogenMod/android_frameworks_base/commit/9d105961ac85d81d5354e4634bec12adeddccff6#libs/hwui/LayerRenderer.cpp << this is the kind of patches that I wish CM would contribute back :(( Jul 06 00:39:33 pboos: Millions use them, millions don't know what they're doing Jul 06 00:39:33 (we fixed this bug internally as well, but it would have been nice if only one of us did it) Jul 06 00:39:40 I had interesting issues with bitmap formats when getting them to work nicely with ffmpeg Jul 06 00:39:56 (mainly due to my misunderstanding) Jul 06 00:39:57 does CM not contribute much back? Jul 06 00:40:11 romainguy_: :| i'm sure google can hire somebody that knows about qualitative research to make a good mechanism on the site Jul 06 00:40:42 SimonVT: like most computer users Jul 06 00:40:51 Eeeexactly Jul 06 00:42:19 hugos: so you say sometimes the same phone installs the app, sometimes it does give error? did the users say which phone? Jul 06 00:43:08 all of the one-starcomments come from one of these phones: Samsung Galaxy S (GT-I9000) LGE Optimus 2X (p990) HTC Desire (bravo) Motorola Defy (umts_jordan) HTC Wildfire (buzz) Jul 06 00:43:13 I just cried a little bit Jul 06 00:43:15 https://github.com/CyanogenMod/android_frameworks_base/commit/29d4d9388e1813d19a6fbacb6a29a7ea20ceecac#commitcomment-1545009 Jul 06 00:43:37 and some of the people who cantacted me via email have one of these as well Jul 06 00:44:53 romainguy_: Ouch. Do you regularly follow the CM guys to see what they're patching or are you just taking a one-time stroll through their history? Jul 06 00:45:25 JakeWharton: I don't have the time, unfortunately, to follow what they're doing Jul 06 00:45:30 but on a LGE LG-P990 (p990_262-xx) it seem to be fine Jul 06 00:45:32 romainguy_: ouch, yes that one hurts.. Jul 06 00:45:33 but I try to take a peek from time to time Jul 06 00:46:18 cyanogen: if you're around, let me know Jul 06 00:47:34 hugos: hmm.. difficult.. will try with one special device i have here.. btw, you speak german i guess, right? Jul 06 00:47:37 sorry for the next line because it will sound very marketing/corporate of me but... Jul 06 00:47:42 damn, I love the Nexus 7 Jul 06 00:47:43 :) Jul 06 00:47:55 romainguy_: i wish i could order one ;-) Jul 06 00:47:56 yes, german Jul 06 00:47:57 romainguy_: im dying here :( I want mine now Jul 06 00:48:06 im still not sold Jul 06 00:48:07 pboos: and I wish you could Jul 06 00:48:10 its too big for my pocket Jul 06 00:48:15 therefore id prefer a laptop Jul 06 00:48:17 :) Jul 06 00:48:27 canadiancow|work: it fits in my back pocket Jul 06 00:48:32 "fits" Jul 06 00:48:32 haha wow Jul 06 00:48:42 US pockets are bigger because they're measured in inches not puny little centimeters Jul 06 00:48:43 Kinda disappointed you didn't release a 10" tablet ;d Jul 06 00:48:43 canadiancow|work: seriously Jul 06 00:48:48 I have a nook tablet which "fits" in some of my pockets too Jul 06 00:48:51 it's actually quite a common sight at the office these days :p Jul 06 00:48:55 Probably gonna buy an asus transformer Jul 06 00:49:11 wabz: I said *back* pocket :) Jul 06 00:49:14 i saw no 7 inch tablets when i was there Jul 06 00:49:19 this must be canadiancow then: http://techcrunch.com/2012/07/05/is-this-a-thing-a-business-man-carries-ipad-in-his-pants-through-grand-central-station/ Jul 06 00:49:36 a guy at our office does that JakeWharton Jul 06 00:49:37 maybe he has back problems Jul 06 00:49:44 Omg Jul 06 00:49:46 or maybe he likes smelly tablets Jul 06 00:49:48 his ipad must smell like ass Jul 06 00:49:58 iWipe Jul 06 00:49:58 my sketching app manages to create this kind of thing http://www.youtube.com/watch?v=QjykIeVQaDo now Jul 06 00:50:31 may be he it is turned on anfd it keeps his back warm Jul 06 00:51:03 hugos: Process com.lookout:InstallReceiver (pid 1348) has died. Jul 06 00:51:13 SimonVT: Personally, I think both 10 and 7 inch tablets have their uses.. I like my xoom for typing notes and stuff.. but its not ergonomic to hold Jul 06 00:51:15 hugos: irgendwie hatte mein phone auch probleme :D Jul 06 00:51:21 romainguy_: you appear to know a bit about the graphics layer in Android. I had a question a while back that I never fully solved. I need to get an app name into topAppWindowChanged(), can you give me any pointers? I got back to the WindowTokens which didn't provide it and so I went all the way back and started adding the name to various things that get passed down but it was not turning out well :( Jul 06 00:51:23 Thats why I am SOOOOOOOOO STOKED!! over nexus 7 Jul 06 00:51:36 hugos: no wait.. it got installed correctly though. Jul 06 00:51:38 drpenguin: Yeah, it's all about personal preferences Jul 06 00:51:44 I tried several 10" tablets (including iPad) and I never used them much, but I use my Nexus 7 all the time Jul 06 00:51:52 it's good to have choice :) Jul 06 00:51:54 Having used both, I want a 10" Jul 06 00:51:57 romainguy_: I hate you >< Jul 06 00:52:01 romainguy, i'll give you that one :) Jul 06 00:52:09 choice is best Jul 06 00:52:21 i mean right now i have an iphone 4s sitting beside a galaxy nexus, and the 4s is just.... tiny Jul 06 00:52:24 O HAI HD VIDEO Jul 06 00:52:33 Method: this has nothing to do with the graphics stack :) Also, I don't know what topAppWindowChanged() is Jul 06 00:52:40 hugos: you use an assets folder, from what i see, right? Jul 06 00:52:49 canadiancow|work: but 3.5" or whatever is the PERFECT size Jul 06 00:52:51 thats correct Jul 06 00:52:55 oh yea :) Jul 06 00:53:04 im tempted to throw in a "that's what she said" Jul 06 00:53:12 You poor guy Jul 06 00:53:15 romainguy_: sorry, I lumped window manager in there, it is how the status bar gets a notification that it needs to turn on the legacy menu button Jul 06 00:53:18 canadiancow|work: the proof being the millions of people who bought a Galaxy Note… oh wait Jul 06 00:53:19 On the subject of tablets, I find it interesting that Apple is now swirling about with the idea of a smaller iPad Jul 06 00:53:22 hugos: never used them, but see some people do. so i guess that can't be the problem.. Jul 06 00:53:35 romainguy_: that thing is way to freakin big Jul 06 00:53:38 galaxy note is pretty extreme Jul 06 00:53:41 but i know a guy who has one Jul 06 00:53:44 and he loves it Jul 06 00:53:48 it is big Jul 06 00:53:52 why carry a GN and an N7 when you can just get a note :P Jul 06 00:53:55 Question: it seems like a good pattern is to hold a reference to an action mode in your activity but ActionMode.Callback has the ActionMode passed into all its lifecycle methods. Would it be wrong to keep a reference to the ActionMode in the Callback? Jul 06 00:53:56 I think even the SGS2 skyrocket is huge.. I love my Atrix 2, 4.2inch, it fits great in my hand Jul 06 00:53:56 but I met a bunch of people who love it Jul 06 00:54:00 go to HK, or TW or soemthing, EVERYONE has the galaxy note Jul 06 00:54:06 I have one, I love it Jul 06 00:54:24 (the marketing over there is very different to what I see in other regions) Jul 06 00:54:47 the main reason I like it is because it's fairly useful for browsing Jul 06 00:54:48 hugos: sorry. somehow i can't find the problem with my few phones i have here.. Jul 06 00:55:02 and I use the s-pen/note stuff way more than I thought I would Jul 06 00:55:16 jayd16: I hold references to it when I need it outside the callback Jul 06 00:55:18 seeing that assets were introduced with api level 1 i don't think that they cause any problems Jul 06 00:55:29 hugos: would help to see a logcat from one of those phones that had problems Jul 06 00:55:41 hugos: yeah.. i do not thing that is a problem either Jul 06 00:56:05 (my next door neighbour works for device integration @ vodafone aus, who says the note has osld far more than they were expecting) Jul 06 00:56:17 i think i need to get hold of one of these phones Jul 06 00:56:52 SimonVT: does it make a difference? Jul 06 00:57:01 the n7 got really good reviews Jul 06 00:57:02 its devastating though Jul 06 00:57:25 hugos: do you know what devices are affected? Jul 06 00:57:36 g00s: yeah, the complaints I saw agains it, atleast for me, dont matter.. mainly the storage space, back facing camera, and non rotatable home screen Jul 06 00:57:47 romainguy_: mainly: Samsung Galaxy S (GT-I9000) LGE Optimus 2X (p990) HTC Desire (bravo) Motorola Defy (umts_jordan)HTC Wildfire (buzz) Jul 06 00:57:49 jayd16: Not really, no Jul 06 00:58:04 drpenguin: I really don't miss the back camera Jul 06 00:58:10 it's not like this thing replaces my phone or my camera Jul 06 00:58:11 SimonVT: ah ok, just thought I'd check. Thanks! Jul 06 00:58:14 SimonVT: about 10" rumors http://www.geek.com/articles/gadgets/google-nexus-10-tablet-coming-soon-2012071/ Jul 06 00:58:21 hugos: what features do you request? Jul 06 00:58:30 romainguy_: i never use my camera honestly.. and, I think youd look rather silly taking a picture with a tablet Jul 06 00:58:39 romainguy_: android.hardware.touchscreen Jul 06 00:58:56 romainguy_: is the only required feature Jul 06 00:59:06 but it's required by default Jul 06 00:59:21 it's there so you can say required="false" Jul 06 00:59:24 for GTV mostly Jul 06 00:59:26 romainguy_: from the manifest of hugos: http://pastebin.com/ukq2k1R5 Jul 06 00:59:29 I would suggest you remove it Jul 06 00:59:31 romainguy_: so basicly i don't require anything Jul 06 00:59:57 i could even go down to android.hardware.faketouch Jul 06 01:01:08 hugos: one other uses you have: Jul 06 01:01:23 that one is also false by default Jul 06 01:01:40 all the camera and location features should also be false by default Jul 06 01:01:42 so no need to specify them Jul 06 01:01:44 romainguy_: okay.. i see he has a receiver without intent-filter, that should not be the problem, right? just guessing wild :D Jul 06 01:02:04 romainguy_: yes they are all false Jul 06 01:02:04 pboos: what problem? Jul 06 01:02:20 romainguy_: the one hugos has, that it can't install the app on some devices Jul 06 01:02:27 romainguy_ pboos: i tried to write down everything explicitly Jul 06 01:02:34 what I mean is that none of these features need to be in the manifest Jul 06 01:02:42 hugos: no worry, i decompiled the app and looking at the manifest ;-) Jul 06 01:03:04 romainguy_: they are not in his file. but i look at the decompiled one. that is why they are in there. Jul 06 01:03:06 pboos: thought so Jul 06 01:03:11 pboos: ok I get it Jul 06 01:03:20 hugos: that is why i as well see, that you have 6 providers ;-) Jul 06 01:05:02 pboos: dont know if this is good or bad style, as i sad, its my first app and there are very few good design guids for android development Jul 06 01:05:27 hugos: not sure if it is bad. i have never used that many. but i do not see why that should be bad :) Jul 06 01:05:50 pboos: its basycly one for each independent main feature of the app Jul 06 01:06:00 romainguy_: still around ? Jul 06 01:06:10 hugos: btw.. the broadcast receiver in your manifest has no intent-filter. is that on purpose? Jul 06 01:07:54 pboos: yes, because it is called explicitly from a pendingintent Jul 06 01:13:10 hugos: seems like before the update it worked (according to comments) Jul 06 01:13:25 hugos: "Kann das update nicht installieren, weil anscheinend bestimmte rechte auf meinem lg optimus speed nicht verfügbar sind... ansonsten alles wunderbar" Jul 06 01:14:07 hugos: what did you do in the update? or is it too much that you did in there to explain? Jul 06 01:14:18 pboos: ja, aber ich habe mit den updates immer weniger features gefordert, dasverwundert mich ja so sehr Jul 06 01:14:48 pboos: just some minor bug fixes Jul 06 01:15:03 hugos: komisch. weniger features sollte ja nicht schlecht sein. welche features hast du raus genommen? Jul 06 01:15:43 pboos: hab den location und camerkram auf optional gesetzt Jul 06 01:15:55 Yeeeah, english Jul 06 01:15:59 pboos: und auch small screens reingenommen Jul 06 01:16:06 SimonVT: sorry Jul 06 01:16:13 SimonVT: sorry :) Jul 06 01:16:49 hugos: so location and camera put to optional. small screens added.. hmm. wonder why that should break it. Jul 06 01:16:53 just said that i removed the location andcamera requirements in one of the last updates Jul 06 01:17:08 and after that update, people had problem updating/installing the app Jul 06 01:18:06 pboos: and i removed an unneccessary use-permission Jul 06 01:18:13 how to display videos in webkit webview for embedded videos ? Jul 06 01:19:10 hugos: btw.. you are working late i guess. or better early? :D Jul 06 01:19:29 hugos: use-permission should not make a problem. since that would only make a problem while running the app.. not while installing. Jul 06 01:20:12 droidbuster: you can use a standard link to a youtube video or flash player but you have to anable the plugins mWebView.getSettings().setPluginsEnabled(true); Jul 06 01:20:40 pboos: not working right now, just trying to find out what to do next Jul 06 01:20:51 pboos: but im gooing to sleep soon Jul 06 01:21:09 hugos: thank you i saw nothing in the documentation for that Jul 06 01:22:45 droidbuster: make sure you don't +1 the WebView page then Jul 06 01:22:49 oh wait , uh Jul 06 01:23:51 g00s: ^^ i wont i mean i am sure the setplugins is there but i was spec... looking for videos Jul 06 01:24:57 so, im off for today , maybe i';ll have a brain wave while i'm sleeping, good night Jul 06 01:25:15 hugos thanks and good night Jul 06 01:34:27 sup all Jul 06 01:35:46 hey QubeZ Jul 06 01:35:54 dup d. peng Jul 06 01:36:00 wtf did i just type Jul 06 01:36:09 sup drpenguin -- is what I meant Jul 06 01:36:13 I think my Rapper name Jul 06 01:36:14 d peng :) Jul 06 01:36:23 D PENG IN DA HOUZE Jul 06 01:36:44 fo reelz Jul 06 01:36:50 fuck i hate my iphone now Jul 06 01:37:05 lolyouuseiphonethatscute Jul 06 01:37:10 :( Jul 06 01:37:10 but in all seriousness, aww Jul 06 01:37:17 moving back to my RAZR now Jul 06 01:37:40 now that it finally got ICS -- the same week JB was announced (-1 to Moto) Jul 06 01:38:05 how the hell did setShowAsAction make it into MenuItem without returning the current instance like every other method in the interface Jul 06 01:38:24 JakeWharton: why dont you work at Google by now? Jul 06 01:38:27 im puzzled Jul 06 01:38:32 I have a better job :) Jul 06 01:38:34 QubeZ: yeah, thats going to be depressing when my Atrix 2 gets upgraded to ICS in Q3 Jul 06 01:38:35 the platform could really use you Jul 06 01:38:50 one of the examples in an io video uses != for a string comparison Jul 06 01:38:53 drpenguin: i will never get a moto phone ever again Jul 06 01:38:56 JakeWharton: ouch, yeah that one is bad... Jul 06 01:39:03 canadiancow|work: what language? Jul 06 01:39:07 QubeZ: why? I love my trix 2! so much better than my samsung phones Jul 06 01:39:08 QubeZ: I may end up there someday. Who knows. Jul 06 01:39:12 canadiancow|work: also, if you know what you're doing, it works in Java :) Jul 06 01:39:12 JakeWharton: really? nice Jul 06 01:39:23 drpenguin: so late in upgrading... its annoying Jul 06 01:39:31 http://youtu.be/YmCqJlzIUXs?t=24m57s Jul 06 01:39:38 im pretty sure this is java Jul 06 01:39:39 QubeZ: meh, I put more blame on the Carriers than Moto Jul 06 01:39:50 my Xoom got updated to ICS super quick, and its wifi Jul 06 01:40:00 hmm Jul 06 01:40:05 canadiancow|work: WTF? Jul 06 01:40:19 canadiancow|work: the trick here is that all the string might be interned Jul 06 01:40:29 in which case it's perfectly valid although they should have left a comment Jul 06 01:40:49 anyhow, for a 2d board game... cocos2d or ?? Jul 06 01:40:49 so where can i preorder some of these Google Glasses Jul 06 01:40:52 i dont get it Jul 06 01:40:56 but i'll trust you :) Jul 06 01:41:06 romainguy_: the String is in a tomb? Jul 06 01:41:11 do all Google employees get the google glasses for free? Jul 06 01:41:17 Pff. No Jul 06 01:41:25 QubeZ: SDL! I dunno Jul 06 01:41:54 canadiancow|work: see String.intern() Jul 06 01:42:11 literal strings in your source are interned automatically Jul 06 01:42:28 so if you write String s1 = "foo"; String s2 = "foo"; then s1 == s2 will always work Jul 06 01:42:35 SDL? hmm Jul 06 01:42:36 ah Jul 06 01:42:37 interesting Jul 06 01:42:44 using newString("foo") would defeat interning Jul 06 01:42:54 (it's actually why this constructor is sometimes used) Jul 06 01:43:16 anyway, .equals() starts by doing an == check anyway so... Jul 06 01:43:19 QubeZ: I dunno how useful it is to you. I just started using it to do video games on Linux, and its cute Jul 06 01:43:25 C/C++ library Jul 06 01:43:47 im only halfway through this presentation and i havent learned anything useful (for me) yet Jul 06 01:43:57 s/only/already/ Jul 06 01:44:43 are you doing anything with media codecs ? Jul 06 01:44:50 personally? no Jul 06 01:44:55 zynga? maybe Jul 06 01:45:05 im watching everything Jul 06 01:45:14 just to see if anything jumps out as "OH SHIT WE SHOULD DO THAT" Jul 06 01:46:25 so whats the rules on creating board games in Android that already exist? As long as you name it something else (ala Zynga) then you're fine? Jul 06 01:46:34 ianal Jul 06 01:46:54 QubeZ: Create monopoly, but call it "OWN ALL THE THINGS!" Jul 06 01:47:07 hehe Jul 06 01:47:10 im not sure monopoloy could even trademark that name like that Jul 06 01:47:16 because its a game where you create a monopoly Jul 06 01:47:19 like its a noun Jul 06 01:47:20 no im serious, there is a game (obscure game) that I"d like to write Jul 06 01:47:23 I would suggest you simply didn't try Jul 06 01:47:24 just in case :) Jul 06 01:47:25 Pay all the rent? :( Jul 06 01:47:28 but its fun and haven't seen it in Android yet Jul 06 01:47:42 or get in touch with the authors of the board game Jul 06 01:47:44 or the publisher Jul 06 01:48:02 ok Jul 06 01:49:25 romainguy, so did that gpu accelerated onAnimationEnd() fix for calling back on the main thread get into JB? Jul 06 01:49:40 yes Jul 06 01:49:52 well it was always called on the main thread Jul 06 01:49:55 just not at the right time Jul 06 01:50:12 ah ok Jul 06 01:50:28 now i just have to wait until no one's on ICS anymore for me to care about the fix :) Jul 06 01:52:58 or i do another one of those if (SDK_INT >= ICS && SDK_INT <= ICS_MR1) ... Jul 06 01:54:42 luckily i have never had to do that; but i have been very lucky so far Jul 06 01:55:08 there was something with honeycomb's volume dialog window thing that required that Jul 06 01:55:15 it changed in 3.0, and then again in 4.0 Jul 06 01:55:21 in a way that required a hack on JUST honeycomb Jul 06 01:55:36 i wish hc didn't exist for the most part :P Jul 06 01:55:43 lol Jul 06 01:55:55 3.2 isnt bad i dont think Jul 06 01:55:56 OH Jul 06 01:55:59 my revue got updated to 3.2 Jul 06 01:56:01 without fucking telling me Jul 06 01:56:13 so? Jul 06 01:56:28 i dont like things updating themselves Jul 06 01:56:50 what's to wish about hc not existing Jul 06 01:56:50 yeah, i like to let other people like JakeWharton update first to see how things went Jul 06 01:56:57 lol Jul 06 01:57:04 but uh... i think 3.0 is like 2.0 Jul 06 01:57:08 and 3.1 is like 2.0.1 Jul 06 01:57:13 and then 3.2 is like 2.1 Jul 06 01:57:16 finally "ready" Jul 06 01:58:11 what's ICS then in your magical arbitrary versioning scheme? Jul 06 01:58:24 a different version? Jul 06 01:58:27 there were three api levels in eclair Jul 06 01:58:29 and three in honeycomb Jul 06 01:58:36 and the first one of each sucked Jul 06 01:58:40 and i think the seocnd one did too :P Jul 06 01:59:10 2.3 was the first usable version of Android where I didn't want to stab my eyes repeatedly Jul 06 01:59:15 4.1 is the second Jul 06 01:59:48 what about 4.0? Jul 06 01:59:54 oh romainguy so while my GN with JB is pretty awesome with all the vsync stuff, for just dragging stuff around and it appearing faster, it still doesnt appear as fast as my iphone 4s with ios6. any idea what part of the hardware/os is lagging here? Jul 06 01:59:58 4.0 was extremely close Jul 06 02:00:10 but everything's better with butter Jul 06 02:00:39 canadiancow|work: the hardware/os is fine Jul 06 02:00:42 apps do too much work Jul 06 02:00:44 have too many views Jul 06 02:00:45 etc. Jul 06 02:00:49 optimize your shit :) Jul 06 02:00:53 im just on the launcher dragging the screens Jul 06 02:00:53 :P Jul 06 02:01:05 app widgets Jul 06 02:01:20 also, as usual, Android does a lot more stuff than iOS Jul 06 02:01:20 i had the "whats that song" Jul 06 02:01:25 more processes running, wallpaper moving, etc. Jul 06 02:01:31 ok so that's the issue then? just more stuff running? Jul 06 02:01:39 not necessarily Jul 06 02:01:43 but it makes things harder Jul 06 02:02:13 yea android doesnt seem to follow my finger quite as closely when i quickly drag between screens Jul 06 02:02:19 like i REALLY have to look to notice Jul 06 02:02:25 so its WAY better Jul 06 02:02:35 but i know im going to have this discussion with my ios friends soon :P Jul 06 02:03:04 the touch screen hardware might not be as good Jul 06 02:03:19 the touch latency should be at 5 or 6 frames on Android Jul 06 02:03:30 I believe it's at 4 on iOS Jul 06 02:03:38 did you ever see that video where they did some comparisons of new touch technology? Jul 06 02:03:43 no Jul 06 02:04:14 canadiancow|work: do you mean in-cell touchscreen ? Jul 06 02:05:20 http://www.youtube.com/watch?feature=player_embedded&v=vOvQCPLkPt4 Jul 06 02:05:22 i think that's it romainguy Jul 06 02:07:37 they start with like a 50ms latency (~4 frames?) and get it down to 1ms Jul 06 02:12:40 good day Jul 06 02:13:42 not really... its a lil hot Jul 06 02:15:37 QubeZ: where you located? Jul 06 02:15:49 Minnesota Jul 06 02:16:05 was 101 on 4th July -- didn't even go see fireworks Jul 06 02:19:05 101... what are these strange units you speak in Jul 06 02:19:14 101 F Jul 06 02:19:44 yea i had to go convert it :P Jul 06 02:19:47 it'll be that hot here tomorrow :( Jul 06 02:19:56 craziness Jul 06 02:24:18 im gettin a free upgrade, what should i replace my old desire with? Jul 06 02:24:46 gnex Jul 06 02:25:17 k Jul 06 02:25:19 are they still being sold in US? Jul 06 02:25:28 rumours are they'll be back in a week Jul 06 02:25:33 but he didnt say he was in the US :P Jul 06 02:25:58 his IP says he is Jul 06 02:26:18 so does mine when im at work Jul 06 02:26:29 fyi: im not at work right now Jul 06 02:26:38 heh Jul 06 02:27:11 im trying to run the arm build of tcpdump on my device, i always get "permission denied", im rooted though why is this? Jul 06 02:28:04 I'm trying to get a MediaPLayer object to switch songs upon completion of the last one. I keep getting this error when I try to set the new data source: 07-05 22:26:56.505: E/MediaPlayer(1255): setDataSource called in state 16 Jul 06 02:28:10 anyone doing something cool they would like to share? Jul 06 02:28:35 brx: Do you have the proper permissions in your manifest? Jul 06 02:28:53 Technodrome, i'm watching google i/o presentations from youtube on my google tv Jul 06 02:29:00 im not actually running it with Rutime.exec(), im just trying it from command line X-suriV Jul 06 02:29:14 canadiancow|work: prf, the cool way is to use a Nexus 7 and a Q Jul 06 02:29:15 just in terminal Jul 06 02:29:23 canadiancow|work: working on an application etc etc? Jul 06 02:29:29 romainguy_ thats what i dont understand Jul 06 02:29:40 i have an android device that plugs into my home theatre/tv. it's a logitech revue Jul 06 02:29:43 canadiancow|work ur still @ work? Jul 06 02:29:48 Jug6ernaut im on my work laptop Jul 06 02:29:49 im working Jul 06 02:29:51 im not at work Jul 06 02:30:01 ah Jul 06 02:31:24 im watching the accessibility talk right now Jul 06 02:31:32 i wonder how difficult it would be to allow blind people to play words with friends Jul 06 02:32:27 only one way to find out Jul 06 02:32:33 * JakeWharton stabs out canadiancow|work's eyes Jul 06 02:32:34 heh Jul 06 02:34:51 canadiancow|work: not very difficult Jul 06 02:35:24 JakeWharton haha Jul 06 02:35:42 are sighted people getting sick of words w/ friends canadiancow|work ? :P Jul 06 02:35:48 not at all Jul 06 02:40:50 is "Bollocks" a valid word if I change my locale to English (UK) Jul 06 02:40:54 ? Jul 06 02:41:01 lol Jul 06 02:41:10 I think its Bullocks Jul 06 02:41:14 no? Jul 06 02:41:17 probably Jul 06 02:41:31 sorry I ruined your joke JakeWharton Jul 06 02:41:43 proof why I get beaten at word with friends :( Jul 06 02:42:21 My sister thought a good idea for a game would be Words with Enemies... you invite people you dont like to challenge you in games so you can talk shit without feeling bad Jul 06 02:42:46 I'd play that Jul 06 02:43:15 I don't actually play words with friends but the self-deprecating humor loses it punch without it Jul 06 02:43:18 I like how when I want to make an iOS app, I just use the latest SDK. Jul 06 02:43:28 you should be doing the same on Android Jul 06 02:43:50 JakeWharton: except I have to jump through tons of hoops Jul 06 02:43:58 jcromartie: like what? Jul 06 02:44:10 not really… you have to be doing something serious for backwards compatibility to be a problem Jul 06 02:44:11 its easy to just update the sdk then targetSdkVersion in your manifest...boom! Jul 06 02:44:39 getting the Support Library, using different packages, using ActionBarSherlock (nice lib, BTW), being very selective with features Jul 06 02:44:50 it's not the SDKs fault really, I blame device makers for being douchenozzles Jul 06 02:45:17 but basically, I have to develop for 2.3 Jul 06 02:45:20 iOS is nice, sure... but they have it easy with one one or two device support Jul 06 02:45:52 Well that's a fundamental problem with the differences in distribution mechanisms. Apple has control of the full vertical and can push things on their users. Google can focus solely on the OS and a few devices and then let OEMs do whatever they want (including fighting the carriers themselves) Jul 06 02:46:00 yeah Jul 06 02:46:02 I know Jul 06 02:46:22 I'm just still not sure about how it works out Jul 06 02:46:27 apple is great if you want a 3.5" screen Jul 06 02:46:31 or an 8.9" screen Jul 06 02:46:34 or whatever it is Jul 06 02:46:44 iPhone 5 will be killer though Jul 06 02:46:49 i know Jul 06 02:46:52 SIRI TWO POINT OH Jul 06 02:46:59 I just read today that Apple will release a 7" tablet and therefore Android is dead Jul 06 02:47:02 although Google Now rocks Jul 06 02:47:12 I like my 7" Galaxy 2, except that to get a decent UI I need to root it, which I haven't done, because apparently I need some special TFTP or whatnot Jul 06 02:47:16 romainguy, me too Jul 06 02:47:22 when you get laid off, come apply to zynga Jul 06 02:47:27 i'll put in a good word for you Jul 06 02:47:41 and Samsung thinks I want their app store, book store, music store, chat program, etc. Jul 06 02:47:42 nothing beats iPhone/iPad display though Jul 06 02:47:56 dear device manufacturers: NOBODY wants your shitty apps. Nobody. Ever. Jul 06 02:48:03 galaxy nexus display is the same density as iphone Jul 06 02:48:04 jcromartie: +1 Jul 06 02:48:08 but bigger Jul 06 02:48:12 iPhone 5 will be killer though << nothing has been announced? Or are you just assumin Jul 06 02:48:17 assuming* Jul 06 02:48:22 bigger = better. if you were from the US you would know that canadiancow|work Jul 06 02:48:37 i do know that Jul 06 02:48:40 especially Texas Jul 06 02:48:41 well in this case it is Jul 06 02:48:42 lol Jul 06 02:48:42 Shano56: assumption but it will happen Jul 06 02:48:57 did you think that about the 4S? Jul 06 02:49:05 it took a year just to get a minor spec bump Jul 06 02:49:23 not bashing, but I'm not holding my breath Jul 06 02:49:29 Shano56: *nod* Jul 06 02:49:30 have you seen ios6 though? Jul 06 02:49:37 no it's the white iPhone 5 on Verizon that will kill Android Jul 06 02:49:39 its like "oh well we nerfed maps. and yea. that's about it." Jul 06 02:50:11 gaah speaking of which Jul 06 02:50:15 I dunno. I'm not expecting anything revolutionary, but we will see Jul 06 02:50:18 the Mac App Store is filled with iOS apps Jul 06 02:50:20 it sucks :( Jul 06 02:50:22 "siri, when is the bus leaving?" "here is an app you can download for that: " Jul 06 02:50:34 I guess it doesn't really matter, since I won't be buying it, but it's always fun to watch Jul 06 02:50:36 ya, Siri is horrible Jul 06 02:50:36 there are no transit directions in toronto in apple maps Jul 06 02:50:45 their "navigation" is lolz Jul 06 02:50:53 no 3d up here Jul 06 02:50:55 no street view Jul 06 02:51:00 its better in SF Jul 06 02:51:00 canadiancow|work: it's revolutionary Jul 06 02:51:04 but in toronto, it's ... yea Jul 06 02:51:04 that Jul 06 02:51:06 :P Jul 06 02:51:12 well your point of view is from Canada... so it sucks, naturally :) Jul 06 02:51:22 google maps rocks up here Jul 06 02:51:29 cant buy music, but maps works Jul 06 02:52:02 they changed everything, again, again. Jul 06 02:53:45 at least with J2ME there were no fanboys :) Jul 06 02:53:54 lol Jul 06 02:54:00 im a "fanboy" Jul 06 02:54:03 but i can see where apple is better Jul 06 02:54:18 well no matter how I feel about iOS vs Android SDK, at least I don't have to force-quit Eclipse twice a day Jul 06 02:54:18 Apple is better at some things, Android at others Jul 06 02:54:21 users have the choice Jul 06 02:54:23 competition is good Jul 06 02:54:32 I just wish people would stop being so @!$ insane about the whole thing Jul 06 02:54:50 jcromartie: youre right, you have to force quit XCode instead Jul 06 02:55:01 romainguy_: But the things I buy define me and make me worthwhile! Jul 06 02:55:07 QubeZ: that was the joke... Jul 06 02:55:13 QubeZ: I'm glad you got it. Jul 06 02:55:16 I just started developing iOS, its nice... I do love it... but XCode -- where the autoformat really? Jul 06 02:55:26 hopefully the windows tablet will be able to stand up a while Jul 06 02:55:36 I was surprised that Apple made Xcode more "casual" Jul 06 02:55:41 I installed a new Mac OS X machine Jul 06 02:55:45 I love the Apple v Google OS war. I just wish software patents weren't the new instruments :( Jul 06 02:55:48 and Xcode doesn't install command line tools anymore Jul 06 02:55:52 i hate eclipse with a passion. but xcode? fuck. Jul 06 02:55:57 it's an extra optional download buried in settings Jul 06 02:56:11 romainguy: most of them are actually already there Jul 06 02:56:19 canadiancow|work: after years of hearing how awesome Xcode was, I was shocked by how not good it actually is. I guess when it's all you have... Jul 06 02:56:23 to make pretty GUI's in iOS, so much easier Jul 06 02:56:27 i mean, really pretty Jul 06 02:56:31 romainguy_: and the switch was to support Homebrew Jul 06 02:56:34 QubeZ: you love objc? Jul 06 02:56:36 crazyzzzyzyzy Jul 06 02:56:42 objc isn't too bad Jul 06 02:56:46 I like ObjC Jul 06 02:56:50 i picked it up pretty quickly Jul 06 02:56:53 i much prefer readable languages Jul 06 02:56:56 real dynamic dispatch is nice to have Jul 06 02:56:57 Qubez that's half of apple's appeal Jul 06 02:57:04 Objective-C is pretty awful to write and read Jul 06 02:57:08 c# and java both are very readable Jul 06 02:57:09 to me Jul 06 02:57:15 yes it is JakeWharton Jul 06 02:57:25 JakeWharton: I'd rather write ObjC than Java, but I'd rather write Scala than either Jul 06 02:57:29 i cant get over obj-c naming conventions Jul 06 02:57:34 I like Objective-C Jul 06 02:57:45 but I'm weirded out by the fact that many of the core APIs are in C Jul 06 02:57:46 I like python as far as write-ability and readability go Jul 06 02:57:52 jcromartie: how do you feel that the scala creators don't even care about the language anymoe? :) Jul 06 02:58:00 so you get this weird mix and match of languages Jul 06 02:58:01 well, actually, I'd rather use Clojure Jul 06 02:58:05 jcromartie: I like a lot of what Scala has but it is way to cryptic Jul 06 02:58:08 *too Jul 06 02:58:08 but Clojure doesn't work so well on Scala Jul 06 02:58:12 Ruby! Jul 06 02:58:12 I mean on Android Jul 06 02:58:16 Scala works better on Android Jul 06 02:58:27 except for that 2MB lib you have to bundle Jul 06 02:59:16 no issues with java Jul 06 02:59:19 its a quite easy language Jul 06 02:59:23 Ruboto, RubyMotion… those are nice Jul 06 02:59:39 Java can be verbose, but sometimes the verbosity adds clarity to what's being done Jul 06 02:59:42 but if your trying to impress your inner self, yes haskell scala closjure is easier to do that Jul 06 02:59:42 but you are still just using the same SDK with more gotchas Jul 06 02:59:43 i think im a horrible person Jul 06 02:59:54 JakeWharton: it has the advantage of being very easy to maintain **** ENDING LOGGING AT Fri Jul 06 02:59:58 2012