**** BEGIN LOGGING AT Sun Jul 01 02:59:59 2012 Jul 01 03:00:56 hello Jul 01 03:01:50 I have 2 libraries. first one compiles (its static) second one (shared) tries to include the first one, but it seems to be ignored LOCAL_STATIC_LIBRARIES doesnt affect anything (dummy values arent raising errors) Jul 01 03:06:29 @Sergey What does your Android.mk look like? Jul 01 03:07:53 http://pastebin.com/Q3iiquPk Jul 01 03:08:26 as you see, I have attempted to include library (KL) many ways, but none seem to work Jul 01 03:12:36 Sergey83: what's the Android.mk look like for the static lib? Jul 01 03:13:23 http://pastebin.com/q3Sj8DeJ Jul 01 03:15:13 why is it libKL.so, that's not a static library Jul 01 03:15:15 Sergey83: LOCAL_STATIC_LIBRARIES := KL Jul 01 03:16:02 shouldnt ndk-build throw an error if it cant find lib? Jul 01 03:16:33 hmm Jul 01 03:17:16 Sergey83: did that solve your problem? Jul 01 03:17:23 Only if it is actually used Jul 01 03:17:35 trying, hang on guys. thanks btw Jul 01 03:18:03 Otherwise it silently fails that it couldn't find the file and throws no errors when trying to link Jul 01 03:27:02 when I build my static library, it doesnt create anything. all it prints is 3 rf -f lines Jul 01 03:28:38 Sergey83: check your LOCAL_SRC_FILES line, it has a slash at the beginning when it shouldn't Jul 01 03:28:54 I'd recommend using KL_PATH for it, since that's what it looks like you want Jul 01 03:29:11 but if I compile it as shared library, it works Jul 01 03:29:22 when switching to static, its doesnt generate anything Jul 01 03:33:45 Sergey83: the build system only builds static libs if there's something that depends on them, iirc Jul 01 03:33:53 so make sure the dependency is setup right, or it won't have any output Jul 01 03:35:18 Guys, am I missing something here? http://pastebin.com/QKkJ1TZn I'm just trying to update a row, but apparently the row doesn't get updated. Jul 01 03:36:15 Sergey83: if you want to test it, add a shared library below it that does nothing but depend on your static lib Jul 01 03:36:18 and try building that Jul 01 03:37:43 mdwright: adding second library below, seems to trigger the build (it outputs something). will try to get to compile now Jul 01 03:37:50 Sergey83: cool Jul 01 03:38:21 I need to run and grab dinner, so I'll be back in a bit Jul 01 03:38:48 link to related question that might be of help: http://stackoverflow.com/a/5811861 Jul 01 03:39:22 mdwright: thanks a lot. have a great dinner!:) Jul 01 03:39:47 oh, is there a way to specify which folder the library is coming from? Jul 01 03:40:15 jessicajames: are you closing the cursor? Jul 01 03:40:40 mdwright, yes. one sec, i'll post the method that calls it Jul 01 03:41:05 hello. Jul 01 03:41:10 jessicajames: I need to run to dinner, but I'd recommend looking at this SO question: http://stackoverflow.com/questions/6982663/android-database-sqlite-sqlitedatabase-rawquery-is-not-updating-a-datetime-col Jul 01 03:41:21 can someone please port the galaxy s 3's ext4 support to galaxy s 2 Jul 01 03:41:25 sorry Jul 01 03:41:27 exfat support Jul 01 03:41:38 mdwright, thank you. i'll look into it Jul 01 03:42:17 jessicajames: also consider using the update helper method if possible Jul 01 03:42:53 and selectionArgs if it isn't Jul 01 03:43:04 (the second parameter in the rawQuery call) Jul 01 03:43:21 Shamisen: you'll have to ask Samsung for that Jul 01 03:51:38 mdwright, i'm still a little confused.. Here's the function I was talking about: http://pastebin.com/KHew3QPT Jul 01 03:51:41 ..when you have time Jul 01 03:51:55 Also, I'm trying to figure out how to use .update() .. Jul 01 03:58:29 romainguy_ ? :D Jul 01 04:29:52 jessicajames_: try this instead https://gist.github.com/3026816 Jul 01 04:37:39 jessicajames_: let me know if that works for you Jul 01 07:06:13 Is it possible to say say exactly when to close a toast message? Jul 01 07:06:19 like, on an event close it? Jul 01 07:07:14 no, there is only short or long Jul 01 07:09:33 damn Jul 01 07:19:49 Onions: just style a view using the toast style and overlay it in your view hierarchy or show it in a window Jul 01 07:25:33 I'm connecting to my android a device that connected throw USB host. If I send to the device a msg (from my android) Im expecting replay using onDataReceived. I've done it all using a class and it seems that after the function in the class that need to send the msg is over the connection is closed and I'm not getting anything in onDataReceived as I've had expected. anyone knows why it Jul 01 07:25:33 should happen? Jul 01 07:39:13 you know you've been coding too long on your phone when it goes from 20% battery to full >.> Jul 01 07:44:14 no such thing as too long Jul 01 07:44:39 +1 Jul 01 07:48:47 anyone read this book on android ui stuff ? http://www.peachpit.com/store/product.aspx?isbn=0321814584 …'m mostly interested in chapters 7-10 & 12 Jul 01 07:50:02 i have a bunch of custom controls and stuff to make :| Jul 01 07:57:27 g00s: I doubt you need a book for that Jul 01 07:59:41 romainguy_: oh, i'm terrible at the lower level ui stuff. for example, looking at the code for the old froyo music player drag and drop playlist reordering - i get completely lost. i need to do a few things like that Jul 01 08:01:29 romainguy_: btw, have you done anything with led lighting for photography ? Jul 01 08:02:25 yes Jul 01 08:03:50 i was looking at this, but wanted to find something focusing more on led lighting http://www.amazon.com/Sketching-Light-Illustrated-Possibilities-Voices/dp/0321700902 Jul 01 08:05:04 you use books too much :p Jul 01 08:05:23 hehe :) Jul 01 08:05:32 i'm pretty isolated. its the medium that works best for me Jul 01 08:05:46 just go out and take photos Jul 01 08:05:49 that's how you'll learn Jul 01 08:08:13 one of the biggest challenges i have been having is getting the correct hyperfocal distance with my p&s. i've been trying to get nice depth of fields, but something inevitably winds up blurry (either foreground or background) … the camera manual focus system does not have a a good depth of field scale Jul 01 08:08:37 I never use hyperfocal unless I have a fixed focal, manual only lens Jul 01 08:08:46 it's rarely worth the trouble Jul 01 08:09:11 romainguy_: so do you just kinda focus 1/3 of the way between the nearest and furthest thing you want in focus ? Jul 01 08:09:18 no Jul 01 08:09:29 I just use AF on something far Jul 01 08:10:09 If I rm -rf an AOSP git repository will repo sync safely bring it back? Jul 01 08:10:24 my external/valgrind repository is borked Jul 01 08:11:14 romainguy_: oh - when i try that with a small aperture , to get the max dof - even at 28 mm (best my camera will do) something winds up fuzzy. i like getting stuff from about 1m - infinity. i often look for some subject to have in the foreground Jul 01 08:11:51 you'll get diffraction if your aperture is too small anyway Jul 01 08:11:57 you worry too much Jul 01 08:12:15 hehe Jul 01 08:12:29 let me find my last disaster Jul 01 08:16:23 Hi, could anyone upload repo script to pastebin? Jul 01 08:17:41 it's hosted on s.android.com? is it not working? Jul 01 08:18:24 JakeWharton: how borked? you may have to remove it from .repo/projects/external as well Jul 01 08:18:25 JakeWharton, Let me see, Google bring me to 404 pages Jul 01 08:19:03 curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > repo Jul 01 08:19:07 works for me Jul 01 08:19:59 Me as well. Jul 01 08:20:45 mdwright: it wasn't reporting itself on a branch and had changed files. no matter how many "git reset --hard" and "git checkout --" commands would undo the changes. I rm -rf'd all the folders, did a fetch, and then checked out the master branch Jul 01 08:21:20 JakeWharton: so you're good now? Jul 01 08:21:57 romainguy_: oh well. i think i wound up deleting it. it was a worse version of this, which is uh, watever. http://imgur.com/P2tVR … so there is a cactus in the fg and the mountain in the bg; i was trying to get everyting in focus. in this one, they both seem soft. btw … this was about 15 minutes before i got pummeled by a dust storm Jul 01 08:21:58 Yeah I seem to be. sync completed without erroring Jul 01 08:22:11 http://source.android.com/source/initializing.html This page needs to be updated Jul 01 08:23:59 romainguy_: everything has been dead here for years; its a terrible drought. no greens :( Jul 01 08:24:23 * pfn always wants to go for the largest aperture possible Jul 01 08:24:30 everything in focus looks so... snapshot-ty Jul 01 08:25:11 g00s: the fun thing is that P&S cameras give you much more depth of field than larger sensors :0 Jul 01 08:25:42 that's because they have crappy, slow lenses :p Jul 01 08:25:53 romainguy_: yeah even when you don't want it :P Jul 01 08:25:54 it's because of the sensor size too Jul 01 08:26:00 and smaller sensors have an effectively narrower field of view Jul 01 08:26:02 and it looks like framework/support.git isn't getting any love anymore Jul 01 08:26:09 rather... hmm, that doesn't make sense Jul 01 08:26:17 narrower field of view should result in more blur, or something Jul 01 08:28:10 a smaller sensor makes a lens effectively longer in focal length... aperture sizes at longer focal lengths have a more pronounced effect, in terms of blur... I thought Jul 01 08:32:58 pfn: have you been shooting lately ? Jul 01 08:33:10 haven't in a few years Jul 01 08:33:21 haven't in more than 5 years Jul 01 08:33:26 since I finally gave up on film Jul 01 08:33:32 :O Jul 01 08:33:35 * pfn still has a box of provia 100f in the freezer Jul 01 08:33:50 what kinds of things did you like to capture ? Jul 01 08:34:05 (landscape, street, etc) Jul 01 08:34:20 all sorts of random things, landscapes, skylines, multiple exposures, etc. Jul 01 08:35:19 yeah … i'm very depressed about landscape here in az. i've been here since 1995; and there has been a lot of development. also a lot of pollution these days even at the grand canyon (from CA) Jul 01 08:35:33 a smaller sensor in itself doesn't give you deeper depth of field, but because of how it affects the field of view, you effectively get more depth of field for the same image Jul 01 08:35:43 (for the same aperture) Jul 01 08:36:00 right, I thought it was the inverse relationship Jul 01 08:36:14 that's why you don't get nice shallow dof with phone cameras Jul 01 08:36:32 I thought it was because they all had a shoddy terribly slow lens Jul 01 08:37:13 that plus short focal lengths Jul 01 08:39:20 * g00s wonders whatever happened to InVisage's QuantumFilm image sensors for phones Jul 01 08:39:35 I'm seeing very strange launcher behavior on Jelly Bean Jul 01 08:39:47 explain? Jul 01 08:40:25 g00s: they were in the press a few weeks ago Jul 01 08:40:35 i'll be on the center screen, navigate in an app for a while, press home and observe the first screen (as in all the way to the left). then when I go to swipe to move to the right it jumps to the fourth screen (that is, one right of center) Jul 01 08:40:56 haven't noticed that... Jul 01 08:40:56 hmm I've never seen this bug on JB Jul 01 08:41:07 what device? Jul 01 08:41:14 Galaxy Nexus Jul 01 08:41:23 the one from I/O? Jul 01 08:41:38 i can never reproduce and it only happens intermittently Jul 01 08:41:38 yes Jul 01 08:41:48 weird Jul 01 08:41:59 well this is not the final ROM for JB Jul 01 08:42:07 is hierarchy viewer enabled on this phone Jul 01 08:42:19 check your build type Jul 01 08:43:12 hmmm, define build type Jul 01 08:43:33 the yakju thing? Jul 01 08:43:44 does it say userdebug or eng anywhere? Jul 01 08:44:44 not that I can see Jul 01 08:45:12 then no Jul 01 08:46:16 that's a shame, i love looking at other app's hierarchies Jul 01 08:46:39 guess i'll have to custom ROM or try to build my own image Jul 01 08:47:36 Any idea on if the G+ app uses window/decorview magic to slide to the right when the ribbon menu is open or if it just embeds their own look-a-like action bar? Jul 01 08:48:27 awww what happened to the jelly bean flicking in the easter egg?? Jul 01 08:48:43 killed in the second OTA :( Jul 01 08:49:44 JakeWharton: it's their own actionbar :(( Jul 01 08:49:52 you can tell by weird, slightly different behaviors Jul 01 08:51:34 yeah I thought so. it's a shame they had to go that route for the sole purpose of creating that interaction Jul 01 08:51:52 yeah Jul 01 08:52:01 I also hate that you can't slide to open/close the menu Jul 01 08:57:01 i have some pretty strong opinions on the pattern as a whole Jul 01 08:58:40 JakeWharton: it reminds me of the animation demo I wrote for Honeycomb http://www.curious-creature.org/2011/02/18/android-3-0-animations-demo/ Jul 01 08:59:02 hell yeah. DeckLayout FTW Jul 01 08:59:06 ^^ Jul 01 08:59:17 I used that for our internal people directory app Jul 01 08:59:17 I should turn that demo into a real app some day Jul 01 08:59:31 hi Jul 01 08:59:48 romainguy: any details yet on the new app encryption thing? i've been told it will be using asec like move to sd Jul 01 08:59:56 yeah you should. i show it to people all the time at work Jul 01 09:00:05 i should try it on JB to see the buttery goodness Jul 01 09:00:18 good idea actually Jul 01 09:00:32 especially on N7 Jul 01 09:00:35 nx5: no clue Jul 01 09:01:36 I'm asking because some of us might rely on reading the apk for copy protection, and depending on how it is, it might not allow us to do that properly anymore Jul 01 09:02:24 JakeWharton: I'd love to have time to work on an app again Jul 01 09:02:25 Jul 01 09:04:21 i'm starting to work on my app again after about 5 mos; when i take that long off and come back to it i often want to rewrite it :P Jul 01 09:04:26 looks like there's some problems with hardware accel forced on but it looks quite buttery and fluid Jul 01 09:04:39 yeah i can only imagine the craziness that is your life at the great Goog Jul 01 09:04:55 the results are certainly spectacular though Jul 01 09:05:11 the app was written with hw accel on Jul 01 09:05:14 so it should work Jul 01 09:05:18 unless I effed up in JB Jul 01 09:05:40 romainguy_: what parts of JB did you work on ? i thought you were doing the stock camera app among other things ... Jul 01 09:05:51 I never worked on the camera app Jul 01 09:05:57 I'm tech lead for the UI toolkit Jul 01 09:05:59 when I show/hide the photo list it doesn't come back visually Jul 01 09:06:07 ah, ok Jul 01 09:06:09 it's there and reappears when you click on a photo Jul 01 09:06:10 and main engineer on the hardware accelerated rendering pipeline for our 2D library Jul 01 09:06:57 and the shadows for the subsequent child views appear in their destination locations when the animation starts Jul 01 09:08:01 i'd send a patch, but social coding on google code isn't very fun Jul 01 09:08:22 oh weird Jul 01 09:08:31 I must have messed up an invalidate somewhere in the app Jul 01 09:08:33 testing now Jul 01 09:09:24 oh yeah DeckLayout is wrong Jul 01 09:13:16 Is it possible to install nvidia or ati drivers from their website on x86? Jul 01 09:13:27 Does android use X windows? Jul 01 09:13:59 I'm downloading the source code to build a custom kernel for my driver. Jul 01 09:17:49 JakeWharton: I know why the shadows are broken Jul 01 09:21:20 hey, anyone implemented GCM in thier app yet? Jul 01 09:23:35 romainguy_: was there supposed to be widget design guidelines in d.android.com / design ? Jul 01 09:24:58 romainguy_: what was it? we had a similar problem in the card reader app and I can't remember what was changed to fix it Jul 01 09:25:09 i remember hearing about it around 6 mos ago, i guess it never happened Jul 01 09:25:32 or i can't find it Jul 01 09:25:34 JakeWharton: as of 4.1, calling setX() (or alpha, y, etc.) on a child does not redraw the parent anymore Jul 01 09:25:40 the shadows are drawn by the parent Jul 01 09:25:58 so the fix is to invalidate() the parent on every animation update for the child Jul 01 09:26:07 the bug with the list seems to be related to hardware layers Jul 01 09:34:03 definitely a hardware layer bug Jul 01 09:34:04 fuck Jul 01 09:37:54 well I know what I'm doing first thing on Monday Jul 01 09:37:55 crap Jul 01 09:39:37 :/ Jul 01 09:39:43 4.1.1 Jul 01 09:41:51 .... Jul 01 09:55:50 in this interview with the google glasses guy; Steve Lee says "It’s my expectation that in three to five years it will actually look unusual and awkward when we view someone holding an object in their hand and looking down at it. Wearable computing will become the norm." Jul 01 09:56:32 well, if it has a good lense it is ok Jul 01 09:56:51 actually better than ok, when we get older we cannot look at small close screens Jul 01 09:57:04 heh, i'm at that point already :P Jul 01 09:57:17 * g00s is waiting for the Nexus 14" Jul 01 09:57:36 lol Jul 01 09:57:38 but if the glasses have the adequate lenses, even customized lenses like normal glasses Jul 01 09:58:10 the problem is: can you use it in a way that you only see the content and not what's behind? Jul 01 09:58:44 also: there will be a model for both eyes? thins are seen better with both (not to mention 3D capability) Jul 01 09:59:35 any problems with juno and android? Jul 01 10:00:33 i don't think so. but once i heard the adt was using the 3.x compat layer, and there was nothing too interesting in juno anyhow, i decided to just use 3.8 Jul 01 10:01:11 the i/o session showed teh adt with Juno Jul 01 10:01:25 i'll switch when the website says "juno or higher" Jul 01 10:01:39 ok - like being on the latest :) Jul 01 10:01:51 I just download some code and getting a odd problem Jul 01 10:01:53 not with eclipse i don't :P Jul 01 10:03:16 IntelliJ is the latest version of Eclipse/ADT Jul 01 10:03:35 *ADT Plugin Jul 01 10:04:16 FATAL EXCEPTION: main Jul 01 10:04:16 java.lang.NoClassDefFoundError: org/acra/ACRA Jul 01 10:04:32 I think I got a jacked up reference Jul 01 10:05:03 yeah, that seems like operator error :P Jul 01 10:05:25 i downloaded the code from github Jul 01 10:05:29 hrm Jul 01 10:05:44 any ideas of what to look at? Jul 01 10:06:41 did you put the jar in libs/ and add it to your classpath ? Jul 01 10:07:15 s/and add it to your classpath// Jul 01 10:07:19 They are in the libs and they show up under Java Build path Jul 01 10:07:22 so, I think so Jul 01 10:07:26 im gonna readd one Jul 01 10:08:09 hey, anyone have some experience with GCM? I'm getting this error: MyActivity has leaked IntentReceiver com.google.android.gcm.GCMBroadcastReceiver Jul 01 10:08:54 same problem Jul 01 10:10:33 SimonVT: i had to add it to the build path Jul 01 10:10:37 you didn't ? Jul 01 10:10:38 other ideas what could cause that? Jul 01 10:14:08 g00s: Since a few versions ago ADT automatically adds everything in libs/ Jul 01 10:14:25 huh, weird. i still have to add it Jul 01 10:14:26 People get issues when the begin adding to build path manually Jul 01 10:14:45 oh , i did skip 19 tho. i last used 18 Jul 01 10:15:31 oops, thatwas the sdk. oh well, anyhow, the instructions for the support lib still say add it to the classpath Jul 01 10:15:59 it's a feature of the ADT plugin for Eclipse, not the version of the SDK Jul 01 10:26:08 Downloading kernel: 6% (33MB/541MB) Jul 01 10:26:21 WTF??? 500M kernel? Jul 01 10:26:30 no, 500MB git repo Jul 01 10:26:44 ah Jul 01 10:26:54 um, kernel sources *are* big Jul 01 10:27:28 I have a tablet, and I'm trying to install either android or active plasma Jul 01 10:27:51 android x86 kernel does not have the right drivers Jul 01 10:28:20 for my tablet Jul 01 10:28:53 well this sucks, if i want to pass a command line parameter to an app on my launcher i have to edit the fucking bundle ? lamesauce ! Jul 01 10:32:09 I have an issue with achartengine. I can't figure out how to avoid a Concurrent Modification on the Series Data other than doing it in the UI thread, and my app is already running slowly. How can I get around this? Jul 01 10:35:06 the problem occurs when zooming or panning the chart, as the data is accessed by achartengine library, and "may" be accessed at the same time by my update code (in a timer). Jul 01 10:35:53 Do it on the ui thread. That's what it's there for. Doing stuff that affects the ui Jul 01 10:42:00 I think I found a regression in Jelly Bean Jul 01 10:43:02 damn, I cant figure out this problem and its stopping all my fun :( Jul 01 10:45:45 yep, damn :( Jul 01 10:52:29 I keep getting this stupid error: Jul 01 10:52:32 err Jul 01 10:52:44 java.lang.NoClassDefFoundError: org.acra.ACRA Jul 01 10:53:19 my venture into open source has not started well :( Jul 01 10:55:28 the bug i just filed was #34000 exactly Jul 01 10:58:25 what jdk should I be using with juno? maybe thats my problem? Jul 01 10:59:11 I have jdk1.6.0_25 Jul 01 11:01:06 that will be OK Jul 01 11:01:46 btw, 25 is pretty old :P Jul 01 11:02:51 im downloading jdk-6u33-windows-i586.exe Jul 01 11:03:03 hopeing that fixes me Jul 01 11:03:09 nah, i doubt it Jul 01 11:03:53 well, something is jacked Jul 01 11:04:09 and if you have no clue, you gota just start trying shit :( Jul 01 11:05:19 it seems like something is jacked with my class path Jul 01 11:05:26 The ACRA jar is not in your project class path Jul 01 11:07:14 I have this: Jul 01 11:08:09 folder needs to be 'libs' Jul 01 11:08:12 not 'lib' Jul 01 11:08:39 its 'lib' on disk Jul 01 11:08:53 yes, it needs to be 'libs' Jul 01 11:09:04 ok, I will change it everywhere Jul 01 11:09:47 this is an open source project, figured it would at least run Jul 01 11:13:29 same error Jul 01 11:14:32 If I press the back button on my phone, it goes back to the previous activity (in this circumstance) - When the previous activity opens, it is opened at the state it was left at. How can I make it go back to a 'new' state of the activity? Jul 01 11:16:00 any other ideas on what could cause it? Jul 01 11:17:15 im gonna try a different version of ecliplse Jul 01 11:18:09 android~ Jul 01 11:26:34 lets see if it works in indigo Jul 01 11:28:53 heh, eclipse 3.8 is just called 3.8 - no fancy name Jul 01 11:29:38 Im still using 3.7.2 Jul 01 11:30:35 weirdly, when i installed the jdt in 3.8 it grabbed from Juno :| Jul 01 11:35:42 This seems like an odd error: Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please use Android Tools > Fix Project Properties. Jul 01 11:38:19 g00s is it worth to switch? :P Jul 01 11:38:24 (from 3.7.2 -> 3.8) Jul 01 11:38:28 i doubt it Jul 01 11:38:35 i can't even tell the difference Jul 01 11:39:32 http://stackoverflow.com/questions/6997190/eclipse-3-8-whats-the-difference-from-3-7 Jul 01 11:39:36 i'm still confused Jul 01 11:41:51 Hi, i have a 101 question.. when i Instantiate an ArrayAdapter, i pass in context and a textviewresourceid (this, android.R.layout.simple_list_item_1) but i don't really understand the resourceid since it doesn't exist in my layout Jul 01 11:44:18 not in yours, but in android's, hence android.R Jul 01 11:44:42 ahh of course Jul 01 11:49:58 OK, I think I figure dit out Jul 01 11:51:47 g00s okay! Jul 01 11:52:33 even my 3.7.2 has java 7 support Jul 01 11:53:00 (auto completion, recognition) Jul 01 11:53:20 any issues in using Eclipse Juno with ADT20? I'm setting up environment for my father... Jul 01 12:01:04 p_l|backup: your did will be doing android dev :O ? Jul 01 12:01:10 *dad Jul 01 12:01:17 g00s: *maybe* Jul 01 12:01:22 and not for market Jul 01 12:01:32 another 101 question. http://pastebin.com/fwfGRsny how can i set a spinner onitemselected to be like my button onclicklistener? Jul 01 12:01:56 but in addition to his SGS2, he is getting TF700 this tuesday and there's a distinct lack of certain types of apps he wants to use on it Jul 01 12:03:07 p_l|backup: what is he looking for ? Jul 01 12:03:11 looks like part of my problem was eclipse was missing "Android Support Library" Jul 01 12:03:13 odd Jul 01 12:03:21 g00s: aviation-related stuff Jul 01 12:03:39 and the dude had it Lib rather than Libs Jul 01 12:03:42 there's some awesome software for iPad, but for various reasons he went with Android after all Jul 01 12:03:48 like flight sims, or stuff you use in the cockpit ? Jul 01 12:04:26 g00s: maps, data, planning, meteo, etc. Jul 01 12:04:33 all the stuff a pilot might want Jul 01 12:04:40 for flight sim... there's X-Plane for android ;) Jul 01 12:05:22 yeah, i would think the iPad would have been better. did he see this ? http://www.naviatorapp.com/ Jul 01 12:07:14 hmmm... havent's seen this one, at least not recently Jul 01 12:07:32 hey guyz Jul 01 12:08:31 g00s: it seems however to be concentrated on FAA data... which of course isn't relevant in Poland Jul 01 12:08:59 details :/ Jul 01 12:09:19 g00s: important ones Jul 01 12:10:14 well, i guess that means he will have to fly in the us them Jul 01 12:10:23 :) Jul 01 12:10:42 Naviator doesn't have a timeline for European charts Jul 01 12:11:06 Jeppsen charts would be awesome Jul 01 12:13:45 maybe I'll sit down and write one while I have access to machine that is fast enough Jul 01 12:13:57 tricky with copyrights :/ Jul 01 12:29:07 is any linux user getting the max-user-freq and opengles error with the emulator? Jul 01 12:30:33 Foxandxss: max-user-freq is an old thing. read mplayer manual for more info ;) Jul 01 12:31:06 opengles... I got it running with horrible effects and speed, but I have intel gm Jul 01 12:31:09 *gma Jul 01 12:34:54 p_l|backup: yup, I saw that is an old thing (but my arch with latest kernel still have it), anyway I get that warning and the cpu usage was 100%, I deleted all avds and the new one seems to work using less cpu Jul 01 12:34:59 so, not bad Jul 01 12:35:54 Foxandxss: the timing thing is easily fixed, no idea how it might help (probably intricate timings somewhere in emulator) Jul 01 12:37:10 guys Jul 01 12:37:18 when are people going to start porting sgs3 things to the sgs2 Jul 01 12:37:49 they are doing that already Jul 01 12:40:44 i have an open source project, and i use crittercism where would be the best place to store the api key if i don't want to commit it. But still allow ppl to fork and run the project(so i can't be just an uncomitted file) Jul 01 12:41:40 Kenji: unless you use obfuscation, the api key is retrievable from the binary anyways.. Jul 01 12:42:17 tapas: ye it's not about hiding it. It's just that i don't want to get crash reports from ppl that forked the project Jul 01 12:44:19 Kenji: use Ant to place the api key by text replacement from a file with properties that isn't part of the repo Jul 01 12:45:24 can i do that with the eclipse build? would be easier then setting up ant just for this Jul 01 12:46:09 maybe - I have no idea Jul 01 12:46:22 I don't really use eclipse Jul 01 12:48:38 hmm think eclipse uses ant to build doesn't it, so i guess i can Jul 01 12:49:41 Kenji: it uses, but it does its own magic in calling it Jul 01 12:56:11 Kenji: maybe ask in #eclipse on how to go about it.. Jul 01 12:57:16 Kenji: http://stackoverflow.com/questions/6758685/auto-increment-version-code-in-android-app Jul 01 12:57:28 Kenji: if you are on linux just use a shell script that calls sed with Jul 01 12:57:58 sed -s 's/CRITTERISM_API_KEY/3745638763856873/g' your_file.java Jul 01 12:58:02 tapas: ye that is the problem, i am not on linux:P Jul 01 12:58:20 that is why i am trying to do it with ant Jul 01 12:58:24 Kenji: that is indeed a problem.. Jul 01 12:58:30 os x? Jul 01 12:58:52 windows Jul 01 12:58:56 oh gawd Jul 01 12:58:59 :D Jul 01 12:59:00 the horror :D Jul 01 12:59:36 cba to reboot between gaming and programming Jul 01 12:59:54 well, install zygwin Jul 01 12:59:57 cygwin Jul 01 13:00:02 set up your paths right.. Jul 01 13:00:12 and use the power of a real OS (albeit slightly crippled) Jul 01 13:00:13 gitbash has sed i see Jul 01 13:00:18 that can work Jul 01 13:00:40 Kenji: then for the rest refer to answer #25 in the link i posted Jul 01 13:00:56 [about integrating the custom executable into the build process in eclipse] Jul 01 13:05:11 that looks like i might work Jul 01 13:05:23 a lot of work just to hide an api key :P but what can you do Jul 01 13:06:07 isn't the api additionally bound to some check of the package name or something? Jul 01 13:06:23 so if someone forks, changes the package name, shouldn't it just fail Jul 01 13:06:35 if they just use the same api key Jul 01 13:07:05 dont think so no, all you need is Crittercism.init(getApplicationContext(), "key"); in the launcher activity Jul 01 13:07:35 that is why it becomes a problem if ppl fork it, since it is now commit to the repository Jul 01 13:08:37 and even if it was bound to package name, most forks doesn't change the package Jul 01 13:12:31 Kenji: they should though, since you get into all kinds of trouble with two packages with the same package name and e.g. different signatures, etc.. Jul 01 13:12:46 but good to know if i ever use crittercism Jul 01 13:14:09 ye but if they fork the project then they don't use my build version, so it doesn't conflict since they just install theirs Jul 01 13:18:44 i guess really, a much simpler solution to this, would be to just create a new file that can hold the key, and then to commit a dummy version of the file to the repository, and keep a private on in my system Jul 01 13:19:53 Kenji: yeah, usi gitignore :D Jul 01 13:20:12 never commit and push the change that sets the API key Jul 01 13:20:32 ye that will be much simpler then to start writing exe programs that edit code Jul 01 13:20:51 just a java file with a single static string member which is "" in the repo Jul 01 13:21:20 i can even just to a android resource file, like a string file Jul 01 13:21:26 true.. Jul 01 13:33:48 in my app, i have an object, in the objects toString i want to do a getResources(), how do i reference the android resource file? Jul 01 13:35:45 tapas: so apparently you can't ignore files you are already tracking, have to use git update-index --assume-unchanged Jul 01 13:36:44 I'm connecting to my android a device that connected throw USB host. If I send to the device a msg (from my android) Im expecting replay using onDataReceived. I've done it all using a class and it seems that after the function in the class that need to send the msg is over the connection is closed and I'm not getting anything in onDataReceived as I've had expected. anyone knows why it Jul 01 13:36:44 should happen? Jul 01 13:38:31 JaredCE: only a child of context can access the resources, so then the object has to have a reference to a context, like an activity Jul 01 13:38:51 oo Jul 01 13:40:25 JaredCE i would suggest you attach that string to the object only once Jul 01 13:41:04 Kenji: good to know Jul 01 13:41:36 xorgate, do you have an example how i might do it, or a link to documentation Jul 01 13:42:51 JaredCE thinking about it i might not have said something very smart.. if you go that route, in your activity's onCreate, fetch the string using getString( resID ) and put it in a membervalue on your object Jul 01 13:43:12 but as said, you need to have a valid context (which you do, inside your activity) Jul 01 13:43:45 yeah that makes sense to me Jul 01 14:00:29 hmm, no more tooltips for log entries with the new ADT? Jul 01 14:00:40 annoying to have to scroll ;D Jul 01 14:04:19 hi, is it possible to have the nfc service polling all the time (even when my device is locked/screen off) so I can read nfc tags all the time? Jul 01 14:39:52 I have my main UI and then i have a service. I want to communicate something from UI --> service. is the right thing to do setup a handler? Jul 01 14:42:49 http://stackoverflow.com/questions/4908267/communicate-with-activity-from-service-localservice-android-best-practices Jul 01 15:08:13 my SO qn is suffering from lack of views: http://bit.ly/OTKDGy Can anyone with good idea about non touch mode behavior and tabhost help? Jul 01 15:10:46 if I add my google account to a android VM, will it start syncing everything and add the device to the market? Because I need to test some stuff that requires a google account but I don't want all that to happen Jul 01 15:12:44 JakeWharton: so is the issue fixed then? Jul 01 15:14:52 heisenmink, you can decide if account is synced or not by going to settings -> accounts & sync Jul 01 15:15:32 vivekm, thanks Jul 01 15:16:03 ... ADT20 fail Jul 01 15:16:58 so, I decided to give eclipse a spin, seeing that on powerful machine even the emulator didn't lag so much (with GPU support on) Jul 01 15:17:24 Eclipse refuses to create Android project because ADT has hardcoded reference to support library v8 Jul 01 15:31:46 is there a shortcut at eclipse to comment the selected code ? eclipse-android-question :P :P :P Jul 01 15:38:24 ancanta: CTRL+/ Jul 01 15:38:41 or cmd+shift+7 as it may be on OS X Jul 01 15:38:56 I imagine the / character is what is targeted, though Jul 01 15:38:57 ctrl+/ thx :) Jul 01 15:39:08 easy to remember also because // is a quoting. Jul 01 15:39:29 also this new eclipse is odd Jul 01 15:39:36 4.2 looks totally different than it used to Jul 01 15:40:33 what's impressive though is that it starts with the JDK 1.7 on OS X if you have it installed and supports lion fullscreen properly Jul 01 15:40:44 still Helios here alankila Jul 01 15:41:19 I haven't tried any real programming with it yet because I'm sort of on holiday and only installed it yesterday Jul 01 15:48:17 JakeWharton: you got a few shoutouts at I/O :P and grats on the job with Square Jul 01 15:58:00 Could someone tell me how can I get my hands on an Accessory Development Kit? Jul 01 15:58:01 stupid question, what's a good book for android-dev? Im new so I don't reaaaaaaaally care about android 4 books because the 2 android 4 books I saw they kinda sucks. Im already a rails developer with Java knowledge Jul 01 15:58:18 hey guys Jul 01 15:58:49 got a little problem here at my place :P Jul 01 15:59:48 I am using an Intent with Extras to call an activity, if the extras are the right, this activity calls another intent (the camera), however although i have tried extras.clear() and extras.remove() - everytime the old extras still get read after a configuration change Jul 01 16:00:47 someone an idea on how to handle this `? Jul 01 16:01:04 Foxandxss: d.android.com Jul 01 16:02:39 jab416171|Cloud: something more complex than that Jul 01 16:07:36 ... wtf, ADT? Jul 01 16:08:14 okay, does anyone else has the issue where ADT (v20) refuses to create a project because it can't find support lib v4 version 8? Jul 01 16:08:40 nor does it let you add fragments in graphical designer without it, even if your minSdk is set to 11? Jul 01 16:12:16 if you make a layout-sw600dp folder does 2.3 devices handle that? aka ignore it Jul 01 16:20:13 is it easy to use my phone (xperia) and view everything in my pc (thats happening on my phone screen) as if it was an emulator? Jul 01 16:27:13 how I love it when this.dismiss() causes a NullPointerException Jul 01 16:28:23 mobile8: interactive or just plain video streaming? Jul 01 16:29:25 hello Jul 01 16:30:26 is it possible to show a different UI depending on the android version running on a phone ? I e.g. whant to use the nice design stuff from android 4 (action bar, ?) but i want my app to run on older apps as well Jul 01 16:33:31 Pinas: yes Jul 01 16:33:51 read the resource provisioning guide and backward compatibility guide Jul 01 16:35:00 ok thank you Jul 01 16:39:30 hello Jul 01 16:48:13 xertoz: interactive Jul 01 16:50:22 are evil Jul 01 16:51:58 why? Jul 01 16:53:40 they are difficult to write and understand for complex need Jul 01 16:55:49 mobile8: that's very difficult. Jul 01 16:57:17 bubbleguuum: example? Jul 01 16:57:30 xertoz: how come Jul 01 16:58:04 xertoz: so when i need to test my apps, i can just better copy them through USB to my smartphone Jul 01 17:03:52 i'm trying to run a test app project i just created, but i see no Run -> Run As option Jul 01 17:03:55 where can i find this? Jul 01 17:12:24 bubbleguuum what is difficult to write and [...] ? Jul 01 17:13:48 mobile8: new to app development? the IDE handles all transfers and installations for you Jul 01 17:14:18 oh, also I got the remote control thingie backwards Jul 01 17:14:26 but no, that's not possible neither Jul 01 17:14:45 just use the emulator if you want on-screen development & the phone for physical testing Jul 01 17:14:59 Is there a way to get gmail and market place on a avd? Jul 01 17:15:08 (eclipse runs your project the same way on the phone as if with the emulator) Jul 01 17:15:13 BankZ: yes. Not officially Jul 01 17:15:24 p_l|backup: how? Jul 01 17:16:23 you need to load them yourself into avd's /system partition Jul 01 17:16:35 you can find google apps on the net Jul 01 17:16:43 xertoz: yes new Jul 01 17:17:19 xertoz: ok, but how can i then compile and run this simple hello world project? Jul 01 17:18:39 ok, ill look around Jul 01 17:19:13 next question, should I be able to type in an avd using my computers keyboard? Jul 01 17:19:34 yes Jul 01 17:19:35 yes Jul 01 17:19:43 yes Jul 01 17:19:44 xertoz: i'd like to have this app show up in the emulator Jul 01 17:20:54 WHen I type it doesnt do anything Jul 01 17:21:13 I have to use my mouse on the avd's keyboard Jul 01 17:29:23 so was day 3 sessions at IO recorded? Jul 01 17:30:00 hope so since they where not streamed Jul 01 17:30:06 in AsyncTask, doInBackground(String... urls) is the (String... urls) actual code? what does the ... mean? or is that to be replaced with a variable Jul 01 17:30:22 jab416171|Cloud: thanks! Jul 01 17:30:30 jrockjiggz: varargs Jul 01 17:31:03 JakeWharton: thanks Jul 01 17:31:18 xertoz: sorry nvm Jul 01 17:50:38 what's the best build sdk that I should use now to build android apps with? Jul 01 17:50:46 Android 4.1 (API 16) right? Jul 01 17:51:08 and which is the minimum required SDK (API 8: Android 2.2) right? Jul 01 17:54:47 specify the minimum that suits your target demographic Jul 01 17:55:33 i don't really know Jul 01 17:55:45 8 is a safe choice usually Jul 01 17:57:09 3.0 for tablets and 2.1 for phones Jul 01 17:57:49 does google play accepts apps that only contain a service? Jul 01 17:57:51 :E Jul 01 17:58:32 It accepts any app Jul 01 17:58:33 ok Jul 01 17:58:42 droidbuster: you develop apps? Jul 01 17:58:44 there's no such things as tablets and phones anymore Jul 01 17:58:48 that's really bad advice Jul 01 17:58:54 But your app wont run on newer devices unless there's an activity for the user to launch Jul 01 17:59:03 mobile8 yes Jul 01 17:59:11 SimonVT, the idea is to have other apps that use the service Jul 01 17:59:21 Zharf, that works fine Jul 01 17:59:23 or possibly connect a similar service on a computer Jul 01 17:59:25 ok, thanks Jul 01 17:59:58 mobile8, yes Jul 01 18:00:06 I just tend to get these stupid ideas in my head like "oh they might not allow that..." :p Jul 01 18:01:41 droidbuster: how do you usually test apps? Jul 01 18:01:51 droidbuster: on an emulator? Jul 01 18:01:53 or your phone Jul 01 18:01:54 emulator and multiple devices Jul 01 18:02:33 i have a droid a electrify an mesmerize and a Transformer Tablet but i have not worked with any tablet apps at all yet Jul 01 18:02:48 droidbuster: do you ever use your devices through usb/ attached to your desktop? Jul 01 18:03:08 yes i do brb Jul 01 18:05:08 droidbuster: any tutorial how i can best use that Jul 01 18:08:12 mobile8 : http://developer.android.com/tools/device.html Jul 01 18:17:25 ok Jul 01 18:18:21 mobile8, sorry i was on the phone what do you mean tutorial on using your device to test with you just set your device for usb debugging and plug it in when running eclipse and it runs perfectly Jul 01 18:33:21 is there an app that rsync a folder when connected to a defined set of wifi networks? Jul 01 18:33:35 I see that new versions of ADT doesnt put the (not dropbox) Jul 01 18:35:52 Utopiah: don't know of one... could write one, though Jul 01 18:35:56 hi Jul 01 18:36:01 what is the div equivalent in android Jul 01 18:36:09 if I just want a box to set a background in… is that even possible? Jul 01 18:36:24 I want to put in a list item and make it a specific size Jul 01 18:37:12 frame layout? does that even make sense? Jul 01 18:37:36 or do I use a text view w/ no text...? Jul 01 18:37:48 p_l|backup: maybe https://play.google.com/store/apps/details?id=eu.kowalczuk.rsync4android is enough, checking Jul 01 18:39:45 looks nice but no conditions on networks Jul 01 18:41:53 ah found it, shape drawable Jul 01 18:42:54 guess with https://play.google.com/store/apps/details?id=net.andvari.android.wificonnection should be good Jul 01 18:44:44 Utopiah: Tasker probably can Jul 01 18:45:02 yes seems so, not familiar with that yet, thanks Jul 01 18:51:19 I'd like to know how I can control my android device from the desktop Jul 01 18:52:21 ssh? Jul 01 18:55:00 mobile8: airDroid Jul 01 18:56:19 Does anyone here know how can I get my hands on an Accessory Development Kit? Jul 01 19:15:07 so Jul 01 19:15:16 I made a custom view that simply has a RectShape Jul 01 19:15:23 if I put in a list item my app crashes Jul 01 19:15:51 no real error message, but stack trace shows it happens when measuring view width/ height Jul 01 19:16:09 I tried setBounds… am I doing it wrong? Jul 01 19:16:18 example is straight from android reference so... Jul 01 19:16:36 youre doing it wrong, yes Jul 01 19:16:43 did you make an adapter Jul 01 19:17:27 yeah, this was an app I previously made Jul 01 19:17:39 it worked, just trying to add a simple square on the left side of the list item Jul 01 19:17:46 paste view xml and adapter please Jul 01 19:18:57 this is the xml for the list item: http://pastie.org/4183406 Jul 01 19:19:06 java for view: http://pastie.org/4183407 Jul 01 19:19:20 java for adapter Jul 01 19:19:20 http://pastie.org/4183408 Jul 01 19:19:22 is there an app settings feature that I can use to set/read persistent key-value pairs? for ex. a string denoting server location Jul 01 19:19:34 xorgate: ^^ and thanks in advanced Jul 01 19:19:40 adnvance* Jul 01 19:19:43 advance* wow Jul 01 19:20:46 im sure your stopcolorview could use some layoutsettings, being in a relative layout Jul 01 19:21:17 Does anyone here know how can I get my hands on an Accessory Development Kit? Jul 01 19:22:03 xorgate: I'm not sure what that means… is there a ref for that? Jul 01 19:22:08 convertView = inflater.inflate(R.layout.stop_list_item, null); Jul 01 19:22:17 not null, parent Jul 01 19:23:12 .inflate( id, parent, false ) is what i use Jul 01 19:23:34 xorgate: gotcha, I'm not too familiar with android made this a couple years ago, going to lookup ref for that Jul 01 19:23:52 Anyone here use getInclination to get a device's orientation? I'm seeing strange jitter when rotation the phone about its y-axis. Jul 01 19:26:03 ricky_rozay you can use SharedPreferences Jul 01 19:27:37 Should dialogs be used for user input... so if a user selects an option on my spinner, a dialog pops up asking them to input 2 numbers in to 2 EditTexts within the dialog? Jul 01 19:27:37 xorgate: thank you!!! Jul 01 19:27:52 youre welcome :0 Jul 01 19:28:12 JaredCE: dialogs should be as rare an unobtrusive as possible Jul 01 19:34:36 so when you have a drawable in android and set bounds Jul 01 19:34:43 is that relative to the parent view? or absolute? Jul 01 19:36:08 xorgate: perfect, thanks! Jul 01 19:39:05 jab416171|Cloud, for my usecase would you suggest either modifying my existing activity, or taking them to a new activity? Jul 01 19:39:46 what do you need from the user, and how often do you want them to input this data? Jul 01 19:40:46 i need 2 numbers from them, and it would only be invoked if they selected one specific choice on my spinner Jul 01 19:41:14 then that sounds like it would be fine for that one case Jul 01 19:41:30 cool Jul 01 19:41:34 generally, dialogs are meant to alert / warn the user, not necessarily ask for input Jul 01 20:01:12 Have anyone tried to compile mainstream kernel instead of android one? Jul 01 20:06:26 greeting Jul 01 20:07:15 ok i'm new to andriod i'm loving it... hava question Jul 01 20:07:32 okay! new problem Jul 01 20:07:37 kindof Jul 01 20:08:03 i have a galaxy s vibrant was wonder if i can install the firmware for galaxy 3 on it Jul 01 20:08:08 for the view here: http://pastie.org/4183608 Jul 01 20:08:17 if I set layout_height to fill_parent it doesn't show up Jul 01 20:08:24 but if I set it to 20dp it does Jul 01 20:08:26 using Odin Jul 01 20:08:35 How do I get it to show w/ height view_parent? Jul 01 20:08:41 I mean height of its parent Jul 01 20:11:12 can it be done Jul 01 20:11:38 sh3llbac: good q, have you checked out xda developers? Jul 01 20:11:49 yep i'm there right now Jul 01 20:12:17 searching Jul 01 20:12:36 did a post too Jul 01 20:13:08 for some reason I cant type into a avd, I gota use its soft keyboard and my mouse Jul 01 20:13:10 ideas? Jul 01 20:15:02 does anyone else here kind of hate android… or is it just me? Jul 01 20:18:17 I doubt it Jul 01 20:18:35 Programming with an API is not for everyone. Jul 01 20:18:37 but I do think it's not a fine job by any means Jul 01 20:19:46 any ideas on my problem? Jul 01 20:20:21 I think I've seen that problem before but I never spend much time on avds, so I just use the soft kb Jul 01 20:21:08 that sucks Jul 01 20:23:28 Hey guys Jul 01 20:23:28 MontyCarleau: I program with plenty of APIs, it's just that most of them are not crappy ;) Jul 01 20:24:50 I'm trying to do a simply Paint like app, where I draw with my finger. I followed the sample codes around the net, for some wierd reason I get the y axis to be a few mm lower from where I actually touched (x axis is fine)... any ideas ? I've wasted half a day for this Jul 01 20:24:53 BankZ: if you're on eclipse, go to your avd manager, select your avd, and click the edit button. Add a new hardware property, look for "keyboard support." Add it and set it to yes. Restart avd Jul 01 20:30:33 k will stop hating on android, it's not *that* bad Jul 01 20:30:48 of the opinion that html and css would be so much sweeter though Jul 01 20:30:53 give me a nice div anyday Jul 01 20:31:27 i have a galaxy s vibrant was wonder if i can install the firmware for galaxy 3 on it Jul 01 20:32:35 bindService(dllService, dllServiceConnection, Context.BIND_AUTO_CREATE); <-- this should connect dllServiceConnection to the instance dllService intent, right? Jul 01 20:33:00 no one know the answer to my question huh Jul 01 20:33:32 sh3llbac: you can, but it won't boot Jul 01 20:33:58 dllServiceConnection will set a variable to the IBinder service (casting it)... but still it will be null, for some reason... Jul 01 20:34:19 i c Jul 01 20:34:33 elegos thanks Jul 01 20:36:14 sh3libac: it's like you try to install a washing machine's firmware on a hair dryer Jul 01 20:36:24 completely different electronics Jul 01 20:37:01 lol Jul 01 20:37:03 bice i c Jul 01 20:37:11 was think it was like Jul 01 20:37:25 windows me to windows xp 7 8 etc .. Jul 01 20:37:33 :) Jul 01 20:37:50 but installing roms is the way to do it right Jul 01 20:40:24 ibash, funny statement, dom is the definition of a crappy api Jul 01 20:41:26 pfn: but it's also more or less familiar / has a lot of common solutions; but I see your point Jul 01 20:42:25 any api is familiar if you use it Jul 01 20:44:04 pfn: true, you're right Jul 01 20:46:44 ibash: Anyway, there are webviews if you'd like to keep your divs. Jul 01 20:47:40 I have a weird issue. I added java jdk to windows system path, but at the command if I type 'javac.exe' it says not found. but if I type 'path' i can see it there.. if I go to the actual directory, and try javac.exe is works Jul 01 20:48:32 (LinearLayout.LayoutParams) myLinearLayout.getLayoutParams(); <-- myLinearLayout is defined as LinearLayout inside a RelativeLayout... but android fails saying that a RelativeLayout$LayoutParams can't be casted to LinearLayout$LayoutParams... wtf? Jul 01 20:48:55 Can some1 plz help me... Jul 01 20:49:08 I'm doing a simple paint application when you draw with your finger Jul 01 20:49:16 layout params are respective to the parent view Jul 01 20:49:30 JakeWharton: how to pickup their own? Jul 01 20:49:33 they control how a view is positioned inside the parent and therefore of a type from the parent Jul 01 20:49:40 only when I get the Y axis I'm getting an offset because of the bars on the top side of the app Jul 01 20:49:42 ahh ok Jul 01 20:49:46 nm, fixed it. i had a space =| Jul 01 20:49:48 allright, thanks JakeWharton Jul 01 20:49:56 (notafication bar and application name bar) Jul 01 20:50:18 JakeWharton: now that I think about it, it makes even sense :) Jul 01 20:52:03 Does anyone here know how can I get my hands on an Accessory Development Kit? Jul 01 20:54:52 Hey, I where should I store thumbnails so they don't show up in picture applications? Jul 01 20:55:25 Ikee: search eBay for: ioio Jul 01 20:55:39 sorry, wrong person Jul 01 20:55:48 VistaPOWA: search eBay for: ioio Jul 01 20:55:52 add a .nomedia file Jul 01 20:56:18 or store them in your application's local directories rather than the SD card Jul 01 20:56:55 I was referencing to the demo unit that was given out at Google I/O Jul 01 20:56:55 Ah so a ./myfolder/.nomedia ? Jul 01 20:57:24 yes Jul 01 20:58:19 VistaPOWA: oh, sorry. Jul 01 20:58:47 JakeWharton: Thanks alot! Jul 01 21:03:23 hi androiders Jul 01 21:03:47 why my tablet OrientationSensor gives diferent data than phone ? Jul 01 21:03:59 i'm doing a simulator Jul 01 21:04:14 and i need to the detect a centered device Jul 01 21:04:25 sha0coder: the api demos have a sensor demo, do you get different results with that ? Jul 01 21:13:13 it looks like none of my views are able to be found via id Jul 01 21:13:26 does that happen if you have duplicate ids or...? Jul 01 21:13:28 wtf? Jul 01 21:13:34 I have no duplicate ids :/ Jul 01 21:14:06 did you set the content view ? are you searching through the correct parent ? Jul 01 21:15:28 yep, I had a working app didn't change any of the java source Jul 01 21:15:31 only some xml Jul 01 21:15:36 clean Jul 01 21:15:40 and even if I change the xml back it's... Jul 01 21:15:43 broken still Jul 01 21:15:51 I'm not using eclipse Jul 01 21:16:01 ant clean :) Jul 01 21:16:15 thanks Jul 01 21:16:18 wil ltry Jul 01 21:16:18 no idea then Jul 01 21:16:50 thanks @g00s that did it Jul 01 21:20:01 g00s, i will try Jul 01 21:20:48 g00s, in the table,the azimuth is the phone's pich Jul 01 21:20:51 *pitch Jul 01 21:31:27 hmm i updated my android sdk stuff, and now when i open eclipse i get the message "this android sdk requires android developer toolkit version 20.0.0 or above. vurrent version is 18.0.0.v201203301...." Jul 01 21:31:56 then asks me to check for updates and suggests it can't find any Jul 01 21:33:12 but then when i go to about eclipse and check install details, it says the android dvevelopment tools i'm running is 20.0.0 Jul 01 21:38:10 you need to update the SDK tools as well Jul 01 21:38:14 through the SDK Manager Jul 01 21:39:49 I've realized I am unable to set a variable I am pulling from a resource (bools.xml) as static, is there another way to make it so all child methods in a parent class can read the variable? Currently I am defining the variable in the parent Activity class but then setting it's value inside each child method that needs to read from it, this seems kind of redundant. Jul 01 21:41:41 you need a context to read resources Jul 01 21:42:07 http://docs.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html -- yuck Jul 01 21:42:34 also, the example of how it's done currently has an unnecessary if (br != null) test that makes these guys look like absolute amatuers... Jul 01 21:42:41 amateurs* Jul 01 21:42:49 for shame guys Jul 01 21:42:56 that's a gross API Jul 01 21:43:34 there's also syntax for catch (IOException | FileNotFoundException) ... Jul 01 21:43:48 it' slike what is this fucking perl? that syntax is extremely kludgy. Jul 01 21:44:53 I have seen that one Jul 01 21:55:27 could be worse Jul 01 21:58:51 * p_l|backup meanwhile ponders updating to 2.3 Jul 01 21:59:07 there are rumours of working camera driver after all Jul 01 22:09:40 JakeWharton, So I have read into Context and it's use with global variables, am I right in thinking I just need to create a singletone for my variables? Or have I read into this wrong... Jul 01 22:25:46 float f = a; //valid Jul 01 22:26:09 i thought floats had to be numbers? 1.5f Jul 01 22:26:42 oh nevermind.. Jul 01 22:26:47 i read wrong Jul 01 22:32:29 the new notification wrappers take a Notification.Builder? WTF? Jul 01 22:32:40 and there's no compat impl with stubs on pre-JB Jul 01 22:32:52 le sigh Jul 01 22:36:04 can't even contribute ones back since the support lib git repo hasn't been updated since r7 Jul 01 22:37:19 this is why we can't have nice things :( Jul 01 22:39:22 JakeWharton, my SDK is up to date though Jul 01 22:42:17 that's of no use to me Jul 01 22:43:38 JakeWharton, thats in reply to you suggesting I need to update the SDK tools Jul 01 22:43:45 oh Jul 01 22:43:50 that was a long while ago :) Jul 01 22:44:01 yeah i know, watched an episode of game of thrones in between Jul 01 22:44:04 my bad Jul 01 22:44:34 No worries. Winter is coming, after all. Jul 01 22:44:44 :P Jul 01 22:45:26 would it because i haven't downloaded the 4.1 SDK platform, i'm on 4.0.3 Jul 01 22:48:01 no, if you updated the eclipse plugin and updated the tools through the SDK Manager everything should be happy with each other Jul 01 22:48:29 i'm not an Eclipse user, however, so I'm not sure i'll be able to offer anything else resembling help Jul 01 22:48:38 at least not on this subject Jul 01 22:48:49 thats ok, i'll uninstall and reinstall eclipse if need be Jul 01 22:49:02 when are google going to give us their own IDE Jul 01 22:49:39 I use IntelliJ IDEA and it's unlikely that I could ever go back to Eclipse Jul 01 22:50:14 anyone got an idea how i can use an attribute that only exits after v11 as a value for a layout background, without duplicating the layout file Jul 01 22:50:21 ahh got it working now, no idea why it was playing hooky Jul 01 22:51:14 Kenji: what do you mean? Jul 01 22:51:27 attribute for a layout background? isn't there only one? Jul 01 22:53:03 JakeWharton: i have a list element with a linearlayout that has android:background="?android:attr/activatedBackgroundIndicator". but that attribute only exits post v11. So can i use a fallback on previous version without creating a copy of the layout file just to change 1 attribute Jul 01 22:53:43 ah, i see. theme attribute. Jul 01 22:54:10 well a duplicate layout is likely the easiest but I can understand why you wouldn't want to do that Jul 01 22:54:51 you could also set it programmatically by reading the value of the attribute from the theme on HC+ Jul 01 22:55:17 you could create a custom theme attribute which you set to your fallback in values/themes.xml and to that attribute on values-v11/themes.xml Jul 01 22:55:36 you could do styles Jul 01 22:55:41 that's probably the easiest Jul 01 22:55:46 1s Jul 01 22:56:39 was trying to do the theme thing, but just keept getting reference is not a drawable error, even though i linked it right to a drawable Jul 01 22:58:11 http://pastebin.com/S56YR0jj Jul 01 22:58:51 you can put your fallback in the values/styles.xml version if you have one Jul 01 22:59:52 well the best would have been for the background to be set only on v11, and not set to anything pre that Jul 01 23:00:29 that's the behavior of what's in the paste Jul 01 23:00:46 does setting the style like that override other style attributes? or only the item specified Jul 01 23:00:58 ah ok, that sounds perfect then Jul 01 23:01:43 it only sets the specified items Jul 01 23:05:29 btw, should themes be defined in styles.xml or themes.xml? Jul 01 23:05:45 what is the convention? Jul 01 23:05:58 it doesn't matter, but themes.xml is convention Jul 01 23:06:15 cheers Jul 01 23:14:31 JakeWharton: that worked awesome Jul 01 23:14:58 been trying to make this attr stuff that romain mentioned in Multi-Versioning Android User Interfaces at io for like 2 hours now :P Jul 01 23:18:49 you can do some very cool stuff with that system Jul 01 23:18:51 for sure Jul 01 23:25:37 hi, i have a linear layout which uses the buttonbar style, and a button which is styled to fit equally in the linearlayout. If I do , the style is applied fine, but if I add the button manually via xml inflation, the style in't applied. Any ideas? Jul 01 23:30:40 Anyone know an RSS/XML parser implementation that doesn't suck Jul 01 23:35:10 Guys. I want to create lazy loadable listview, which could continue fling after reached end of current loaded data and new data part loaded. Well, I'm done with data loading, but cant image how to implement fling feature. Jul 01 23:35:55 An somewhat unusual question, I'm making a game which will send the information (Games won, games lost etc) to the servers but how could I make it so that users can't just get the url and abuse it? Jul 01 23:38:33 is there some kind of thing with escape sequences in SMS messaging? for example if I try to send the text q\UUV from one emulator to the other, the other emulator only recieves q\ Jul 01 23:39:19 megan: Depends on how secure you want it to be, I suppose. If you accompany the payload with a salted hash of the payload data it raises the bar on spoofing a fair bit. Not secure, but a big step towards. Jul 01 23:40:37 Hm, ok I'll take that advise Jul 01 23:41:03 SSL? since its used internally by you it won't need an expensive certificate Jul 01 23:42:30 hmm now that Im testing it seems nothing after a \ in an SMS is correctly displayed in an emulator.. If I send the text Android is awesome\Its true, the its true doesnt display it just shows e Jul 01 23:45:47 is this because of escape sequences of some kind? Jul 01 23:46:31 maybe \ is not part of the pdu format? Jul 01 23:46:49 are you using android.telephony.SmsMessage Jul 01 23:47:24 well I am testing this using the default messenger Jul 01 23:47:32 built into the emulator Jul 01 23:48:52 You may need to escape certain characters Jul 01 23:49:10 Have you tried escaping the backslash ala \\ Jul 01 23:49:19 Yep that didnt work either Jul 01 23:52:41 like "Hey\\whats up" doesn't work. Jul 01 23:52:55 Wait you are actually typing these into the emulator, and not using code? Jul 01 23:53:06 yes thats what I was saying Jul 01 23:53:13 using the default messenger application Jul 01 23:54:19 Probably an emulator bug in the application unless you can reproduce it in code or on a real device Jul 01 23:55:02 X-suriV: I can only say there were people before you with similar problem https://groups.google.com/forum/?fromgroups#!topic/android-developers/GOaxfc6Dw4c Jul 01 23:55:15 Was testing because Im creating an app that among other things can send and recieve encrypted SMSs, and some of the characters in the strings as a result of encryption can end up as \s Jul 01 23:55:32 try sending the message from the DDMS instead of from the emulator Jul 01 23:55:42 ah ok Jul 01 23:56:26 yeah it worked when sent via DDMS Jul 01 23:56:40 so is there a bug in the way the emulator sends text messages? Jul 01 23:57:29 X-suriV: it seems to do it differently according to that link I sent you Jul 01 23:57:31 above Jul 01 23:57:40 I dunno if you can debug the sms sending Jul 01 23:57:43 yeah.. maybe so. will make testing my app a pain Jul 01 23:57:43 into the android code Jul 01 23:58:06 so you need to create sms messages by hand? Jul 01 23:58:09 because even when I send an SMS programaticly from one emu to another, still has that "bug" Jul 01 23:58:16 ok Jul 01 23:58:26 Luyang: well in my code Im using the SMSmanager to send SMS's Jul 01 23:58:32 if I were you I'd check out if there are some encoding classes like that SmsMessage class Jul 01 23:58:37 ok Jul 01 23:59:25 Try it on a real device Jul 01 23:59:27 luyang: im basiclly using the same method that guy in the link is Jul 01 23:59:35 yeah thats what I am thinking too.. Jul 01 23:59:42 thanks for the link, makes sense Jul 02 00:01:15 X-suriV: how about checking http://www.java2s.com/Open-Source/Android/android-core/platform-sdk/com/android/ddmlib/EmulatorConsole.java.htm which *might* help Jul 02 00:01:25 control-f private boolean sendCommand(String command) { Jul 02 00:01:39 that might be how the ddms does it Jul 02 00:02:00 or not sure Jul 02 00:03:29 maybe encoding of string Jul 02 00:11:10 so it seems 3.8 is the best eclipse for adt 20 Jul 02 00:11:38 based on some fact checking and sleuthing in #eclipse :) Jul 02 00:15:37 I updated to 4.2 and having some minor issues Jul 02 00:15:50 what'd they say were the problems? Jul 02 00:16:56 the one I got is the strange hangup on having v8 of support library Jul 02 00:17:13 also, intellij still better when it comes to XML code hints Jul 02 00:18:03 BankZ: i have only heard of some random grumblings regarding 4.2; but i was confused about 3.7.2 and 3.8. seems like 3.8 is a strange beast - still has the 3.7 workbench but has JDT from Juno Jul 02 00:19:02 since the adt uses the 3.7 workbench apis, it probably works best with 3.7.2 or 3.8, although it works with 4.2 via the 3.7 workbench api compat layer Jul 02 00:19:33 so , 3.8 seems like the most stable 3.x and what the apis the ADT still natively use Jul 02 00:20:13 eclipse can be confusing with all these parts like equinox :| Jul 02 00:20:35 but eclipse is a platform, intelliJ is an ide Jul 02 00:23:01 p_l|backup: i really like the adt xml formatter Jul 02 00:23:21 does intellij have that ? Jul 02 00:24:46 About the only thing I "miss" from eclipse Jul 02 00:24:54 I just got into the habit of writing pretty xml to begin with instead Jul 02 00:25:01 :) Jul 02 00:26:35 g00s: dunno, it does good stuff with XML though Jul 02 00:28:17 the feature i'm going to like from the adt is the thing that previews your layout in a whole bunch of configurations simultaneously Jul 02 00:28:45 My Razr was recently upgraded to ICS and now I can no longer debug using it. 'adb logcat' sits at 'waiting for device'. I've upgrade android sdk, adb/eclipse still works with and older phone. Anyone see this lately? Jul 02 00:29:17 MarcN: does settings say debug is enabled ? Jul 02 00:29:48 does adb devices properly show your device? Jul 02 00:29:51 g00s, yes under developer tools Jul 02 00:30:32 SimonVT, no it does not. I'm using linux btw Jul 02 00:30:41 Well, fix that Jul 02 00:31:09 SimonVT, okay, any suggestions? Jul 02 00:31:18 None, I don't use linux Jul 02 00:33:03 Im a linux user, whats the problem? Jul 02 00:33:56 drpenguin, After my razr was upgraded to ICS, adb no longer sees it. Upgraded 'android sdk' etc. Plugging in older phone works fine. Jul 02 00:34:23 hmm.. I assume the razr is in development mode right? Jul 02 00:35:08 drpenguin, yup, System Preference->Developer Tools->USB debugging is checked Jul 02 00:35:33 the only thing I could think for you to do would be to use udevadm monitor, and see what udev is doing when it gets plugged in Jul 02 00:35:56 drpenguin, yeah thinking some table about 'this usb device is a phone' didn't get set right. Jul 02 00:36:05 drpenguin, just don't know where to look. Jul 02 00:36:15 drpenguin, pretty stock setup on ubuntu. Jul 02 00:36:27 Well.. for linux, all you do to do development is you add the rule (or add to the rule) a line for your device Jul 02 00:36:36 then reload udev Jul 02 00:37:00 can you pastebin your android.rules file? Jul 02 00:37:08 drpenguin: i noticed that d.android.com removed that info from the linux sdk install page Jul 02 00:37:16 seems like an oversight :P Jul 02 00:37:31 http://developer.android.com/sdk/installing/index.html Jul 02 00:37:42 g00s: Iono, ive always searched for the developing on a device page and then I eventually find the page that lists the udev rule stuff Jul 02 00:37:56 yeah but everything changed Jul 02 00:37:57 Ive never seen it in the linux sdk section Jul 02 00:38:01 oh I know Jul 02 00:38:11 drpenguin, where is this android.rules? udev thing? Jul 02 00:38:31 maybe try it as root first, if that works its a udev thing, right ? Jul 02 00:38:32 MarcN: /etc/udev/rules.d Jul 02 00:38:33 drpenguin, udevadm monitor sees the phone plug in/out. Jul 02 00:38:52 g00s: I just ran adb as user and I could see my moto xoom running ics Jul 02 00:38:54 drpenguin, no such file. Jul 02 00:39:28 MarcN: Hmm.. thats odd.. there should be an /etc/udev/rules.d directory.. what about /lib/udev? thats a nother, less commonly used one Jul 02 00:39:58 In fastboot recovery mode, my galaxy nexus just appears in device manager as android 1.0, when i try to install the drivers i tell it to look on my computer in the SAMSUNG/USB Drivers folder where it made like 25 folders, check use include subfolders, and it just says Windows could not find driver software for your device. -- wtf? This folder was made by the exe from http://www.samsung. Jul 02 00:39:58 com/us/support/owners/product/SCH-I515MSAVZW Jul 02 00:40:00 drpenguin, the directory is there, just not file named android.rules. Jul 02 00:40:04 g00s: but, even if this was an issue as root vs user, adb would still see something, it would just be a bunch of ????????????????/ Jul 02 00:40:16 MarcN: can you show me the contents of /etc/udev/rules.d? Jul 02 00:41:10 drpenguin, 10-vboxdrv.rules 70-persistent-cd.rules 70-persistent-net.rules README Jul 02 00:41:46 ok, add a file called 51-android.rules, add this line into it SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev", chmod a+r that file, then do udevadm control --reload-rules Jul 02 00:42:59 drpenguin, interestingly in the persistent-cd.rules there is a pci-id that matches my phone. Jul 02 00:43:02 ah fuck, here it is http://developer.android.com/tools/device.html Jul 02 00:43:12 g00s: yeah, ive always seen it in the devices section Jul 02 00:43:51 MarcN: Well, while that would technically work, the rule I posted above is a generic rule for all moto devices Jul 02 00:43:53 hi guys. running across a weird issue. adt is supposed to proguard on your behalf when you run your project from eclipse if you set up project.properties correctly, right? Jul 02 00:44:26 drpenguin, http://pastebin.com/N5ZURE4j Jul 02 00:44:53 MarcN: can you just do what I asked you to do please? Jul 02 00:45:00 beelzabub: i have no idea; i run proguard only during release builds, which i do from the command line Jul 02 00:45:29 the problem i'm running into is that we have a lot of libraries Jul 02 00:45:35 & we're hitting the opcode limit Jul 02 00:45:40 but only if we don't run proguard Jul 02 00:45:47 hooray for dex limits Jul 02 00:45:56 answer: cut down on the libraries Jul 02 00:45:58 heh Jul 02 00:45:59 holy crap beelzabub , wtf are you using ? Jul 02 00:46:11 so we have trove, guava, thrift Jul 02 00:46:16 some others we've been able to consolidate Jul 02 00:46:19 that doesn't sound like a lot Jul 02 00:46:27 + our own codebase isn't the tiniest Jul 02 00:46:36 guava is pretty big Jul 02 00:46:41 so right now we're manually proguarding trove Jul 02 00:46:59 trove is i think is generated in parts by a macro generator Jul 02 00:47:01 heh, if you're stuck having to proguard, might as well write your app in scala ;-) Jul 02 00:47:01 but this is a placebo that fixes it for a month Jul 02 00:47:05 drpenguin, I did -- create the file, chmod and restarted udev . adm devices don't show it Jul 02 00:47:19 & it's really annoying maitenance wise Jul 02 00:47:28 (i.e. to upgrade the library is more manual steps than just dropping it in) Jul 02 00:47:46 MarcN: weird, it sounds like Udev isnt doing what it is supposed to do when it gets the device.. maybe something went wrong with the update? Jul 02 00:47:56 What does adb show? Jul 02 00:47:58 also, our codebase is structured with JavaCommon, AndroidCommon, Application Jul 02 00:47:58 trove sounds like it's superfluous Jul 02 00:48:02 nope Jul 02 00:48:08 need it for performance reasons Jul 02 00:48:14 do you really? Jul 02 00:48:17 yup Jul 02 00:48:19 autoboxing ftl Jul 02 00:48:40 the other approach would be to re-write our performance critical pieces in native Jul 02 00:48:59 which we've done, but until adt20 it would have been even more painful to maintain Jul 02 00:49:10 beelzabub: you probably already know, but there are a *few* primitive containers in android Jul 02 00:49:11 so we dropped that plan for the time being Jul 02 00:49:18 drpenguin, adb devices shows no list. adb logcat just 'waiting for device' Jul 02 00:49:27 actually i don't. which ones? Jul 02 00:49:36 SparseArray is one Jul 02 00:49:36 well, don't get your hopes up - hold on Jul 02 00:49:58 love me some SparseBooleanArray Jul 02 00:49:58 MarcN: do you have another OS / Computer you can try? Just to rule out that its your etup Jul 02 00:50:03 s/etup/setup/ Jul 02 00:50:14 maybe - we don't use it only for maps Jul 02 00:50:15 beelzabub: stuff like http://developer.android.com/reference/android/util/LongSparseArray.html Jul 02 00:50:28 which is what all the sparse stuff seems to be implementing Jul 02 00:50:37 in fact the performance critical stuff isn't maps Jul 02 00:51:03 also, targetting API 8 Jul 02 00:51:06 drpenguin, strange thing is my original droid 2.3.x works just fine connected via adb. My kid is developing tonight. I'll see if his winbox sees my phone. Jul 02 00:51:28 MarcN: right, which is why I think its your phone Jul 02 00:51:41 too bad guava doesn't know about trove... save having to so tightly couple your code to trove constructors Jul 02 00:51:50 but I guess you can easily write your own factory methods Jul 02 00:51:58 not sure what you're referring to Jul 02 00:52:08 oh - like using trove with guava? Jul 02 00:52:09 Lists2, Maps, Sets, Iterators, etc. in guava Jul 02 00:52:12 meh - not important Jul 02 00:52:21 * pfn shrugs Jul 02 00:52:35 I always hate tightly coupling to a library that provides common functionality Jul 02 00:52:38 the trove stuff is typically limited to performance critical code so functional programming isn't a big concern Jul 02 00:53:07 anyways, really looking to solve the proguard issue Jul 02 00:53:26 so the common java code which isn't an android project exports trove & guava Jul 02 00:53:38 & then the android common code depends on the java common project Jul 02 00:54:06 are you generating a release build in eclipse? Jul 02 00:54:10 no Jul 02 00:54:10 proguard only runs on release builds Jul 02 00:54:12 never on debug builds Jul 02 00:54:20 same with the ant build Jul 02 00:54:22 is there a way to get it to run on debug builds? Jul 02 00:54:31 in adt, no Jul 02 00:54:38 in ant, some amount of build.xml customization, yes Jul 02 00:54:46 yeah - that's what we did for ant Jul 02 00:54:52 simple answer, always generate release builds Jul 02 00:54:53 i don't care about obfuscation Jul 02 00:54:58 i just need it to auto-strip all those symbols Jul 02 00:55:09 that's too slow development wise Jul 02 00:55:19 much faster to iterate by using eclipse's incremental compilation Jul 02 00:55:19 there's no speed difference 'tween debug and release builds Jul 02 00:55:31 other than having to run through proguard Jul 02 00:55:33 why not just strip it once into your own mini jar? Jul 02 00:55:40 that's what we're doing right now Jul 02 00:55:51 which gives us a month or so until we have to find the next library to do it for Jul 02 00:55:56 * pfn wishes he could just strip the scala libs once Jul 02 00:56:14 which makes it annoying when we run into it & a PITA to upgrade the libraries later Jul 02 00:56:30 well, you'll need to always run proguard with too many jars Jul 02 00:56:31 really? i've never had problems Jul 02 00:57:01 some people write android apps like they're java-ee apps Jul 02 00:57:04 hundreds of jars ;-) Jul 02 00:57:08 yeah Jul 02 00:57:18 you're gonna have a bad time :) Jul 02 00:57:23 our application alone is ~75k code Jul 02 00:57:29 75k code? Jul 02 00:57:31 that sounds small Jul 02 00:57:34 just the android part Jul 02 00:57:36 kloc, I assume Jul 02 00:57:39 he probably means lines Jul 02 00:57:42 kloc Jul 02 00:57:43 yeah Jul 02 00:57:57 not sure that's very large either to be honest Jul 02 00:58:08 cut down on extraneous libraries Jul 02 00:58:11 trove sounds overly large Jul 02 00:58:25 trove and guava are a big no-no as drop-in .jars Jul 02 00:58:32 hmm, only 2mb? Jul 02 00:58:38 that's not that big... Jul 02 00:58:45 trove is 2.5 Jul 02 00:58:51 I use guava... probably would really hate writing android/java without it Jul 02 00:58:53 guava is 1.6 Jul 02 00:59:14 * pfn must use java for his current project :-/ Jul 02 00:59:27 "cutting down" assumes that there's another option Jul 02 00:59:28 we just have a fork of guava where we rm -rf'd all the things Jul 02 00:59:29 2.2mb for trove, it seems Jul 02 00:59:37 ended up being 6 classes Jul 02 00:59:37 isnt this related to the number of referenced methods per dex file , not size ? Jul 02 00:59:39 * p_l|backup finally loading up 2.3 on his phone... bye bye 3D games, bye bye Camera Jul 02 00:59:42 Does anyone know how I can get the Accessory Development Kit (namely, the reference hardware)? The community seems very app oriented... Jul 02 00:59:43 yup Jul 02 00:59:47 g00s is correct Jul 02 00:59:54 but i think we all understand that Jul 02 00:59:56 Mirrored, there should be online vendors Jul 02 01:00:01 just using the size as a rough estimate Jul 02 01:00:05 g00s, same difference, really Jul 02 01:00:13 g00s, large jar typically correlates to large number of methods Jul 02 01:00:15 pfn, any idea where to look? I have budget for it Jul 02 01:00:19 i like people who pull in commons-lang for things like ToStringBuilder Jul 02 01:00:23 beelzabub: i guess you already saw techniques for splitting stuff into multiple dex files, although i am curious about it and have no idea how that would work Jul 02 01:00:25 Mirrored, dunno offhand, google should turn stuff up Jul 02 01:00:29 Mirrored: the vendors with ADK1.0 weren't to good, but it should be easy to build one yourself Jul 02 01:00:33 nope - what's this about multiple dex files? Jul 02 01:00:41 & all this is for android Jul 02 01:00:44 we have no issues with ant Jul 02 01:00:45 you can dynamically load code into your own classloaders Jul 02 01:00:50 beelzabub: http://code.google.com/p/android/issues/detail?id=7147#c6 Jul 02 01:01:02 but you're gonna have a terrible build Jul 02 01:01:04 then look at comment 12 Jul 02 01:01:07 and you'll have to deal with classloader hell Jul 02 01:01:13 yeah , ugh Jul 02 01:01:17 p_l|backup , got it, I'll get to that then Jul 02 01:01:18 there's a post about it on the android blog Jul 02 01:01:57 the new adk they gave away at IO is so awesome compared to last year's adk Jul 02 01:02:05 it's crazy looking Jul 02 01:02:10 i didn't realize it interfaced with the Q Jul 02 01:02:21 beelzabub, http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html Jul 02 01:02:37 yeah, i think we saw this last time we were looking at it.... Jul 02 01:02:46 but you'll require a very custom build Jul 02 01:02:50 and won't work with adt /anyway Jul 02 01:02:53 / Jul 02 01:03:02 On that note... does anyone know a good site for Consumer Electronics Hardware Development? Jul 02 01:03:03 i.e. ant builds only Jul 02 01:03:05 the problem is that it's for ant Jul 02 01:03:18 beelzabub, huh? Jul 02 01:03:25 yeah - we're looking at ADT. developer flow should not go through ant Jul 02 01:03:28 should stay in the IDE Jul 02 01:03:32 * pfn shrugs Jul 02 01:03:34 * pfn doesn't use adt Jul 02 01:03:35 ant builds are too cumbersome Jul 02 01:03:37 simple answer Jul 02 01:03:38 too slow Jul 02 01:05:03 if you wanna be able to stay in the ide, remove libraries Jul 02 01:05:08 drpenguin, so I tried my razr ICS on my son's windows env -- can't see ICS. he is one rev back for the adk tools. Interestingly his Droid X2 isn't seen by 'adb devices'. My trusty original droid *is* seen however. (And I have a copy of his game now;-) Jul 02 01:05:09 that's pretty much your only answer Jul 02 01:05:17 either that, or hack on adt so that it can run proguard in a debug release Jul 02 01:05:26 (or file a bug/feature request for it to do so) Jul 02 01:05:38 custom adt builds, gogo Jul 02 01:06:08 or, just use the ide for writing code and ant or something for generating apks Jul 02 01:07:00 MarcN: You are on windows.. so did you make sure that the developer drivers are installed? Jul 02 01:10:03 drpenguin, I walked over to my kid's laptop which runs windows. yes he has the windows usb drivers installed. It does see my OG droid. Jul 02 01:10:24 drpenguin, just not his droid x2 nor my razr Jul 02 01:10:31 MarcN: are there specific drivers you need for those devices? Jul 02 01:11:09 drpenguin, the X2, razr? don't know. Jul 02 01:11:22 MarcN: find out Jul 02 01:11:25 most likely Jul 02 01:11:55 knowing i need device drivers in windows is almost enough reason to dissuade me from ever using it for android dev; seems linux and os x are so much easier in that regard Jul 02 01:12:13 meh, one google, two clicks, and one download later and you're done Jul 02 01:12:14 just more shit provided by the oem to break Jul 02 01:12:35 g00s: yeah, ive always used Linux for development Jul 02 01:12:51 The only pain ive eve rhad is ubuntu wanting adb to run as root in order to let me manip devices Jul 02 01:13:33 for sammy devices don't you need usb drivers installed by kies ? Jul 02 01:13:49 drpenguin, the frustrating/strange thing is my original droid works on my ubuntu, kid's windows just fine. my razr used to work until the OTA upgrade to ICS. Ugh. Jul 02 01:14:27 g00s: by kies I am not sure, before they "changed" it (if they did) I could get the drivers without kies Jul 02 01:16:17 ... holy fuck GC_CONCURRENT Jul 02 01:16:21 Towards the end I just ended up using adb over tcp/ip, love it! Jul 02 01:25:59 why are the SDK's so slow to download? Jul 02 01:26:25 Ehh? they arent small Jul 02 01:26:33 how big are they? Jul 02 01:27:25 agargiulo: I have 6 platforms, summing a total of 619M, so ya figure thats around a good what 20 minutes on a good internet connection Jul 02 01:27:47 drpenguin: sounds about right Jul 02 01:28:26 I got the files from my school's super fast connection last time. you forget how slow 'normal' internet can be after that Jul 02 01:28:45 Dunno how fast is fast.. :P I have 25mbps here Jul 02 01:29:13 drpenguin: university connections can saturate existing wifi stuff... :P Jul 02 01:29:38 p_l|backup: oh I dunno.. Ive been to my university, just the crappy satellite campus Jul 02 01:29:45 or any university reall Jul 02 01:29:54 drpenguin: fast = http://speedtest.net/result/1491643185.png Jul 02 01:29:58 my uni has "crappy" twin 1Gbit links Jul 02 01:30:14 agargiulo: that is slow ;-) Jul 02 01:30:25 really? Jul 02 01:30:28 p_l|backup: i got 1Gbit at home ;-) Jul 02 01:30:33 agargiulo: lame Jul 02 01:30:43 agargiulo: yes, at least for japan :D Jul 02 01:31:01 well, for the US, it's amazing Jul 02 01:31:17 agargiulo: my last result measurement: http://speedtest.net/result/2034849062.png Jul 02 01:31:39 pboos: damn Jul 02 01:31:55 pboos: where in japan are ya ? Jul 02 01:31:56 current connection: http://www.speedtest.net/result/2040109911.png Jul 02 01:32:19 agargiulo: the only problem is. you only get that speed in japan and on good servers :( if going to the us, it is very low again :( Jul 02 01:32:27 Jeez, if I had speeds like that Id crap my pants while surfin the web Jul 02 01:32:28 true Jul 02 01:32:52 bankai_: Tokyo. working in shibuya, living 20min from Ikebukuro Jul 02 01:33:12 pboos: RIT mirrors a ton of stuff for linux and what not. so for getting a DVD iso, I get almost 100mbps Jul 02 01:33:15 pboos: i used to live near higashikurume Jul 02 01:33:16 pboos: well... those two 1Gbit links are connected to 40Gbit network, it's just that our links aren't updated Jul 02 01:33:21 when I'm on campus Jul 02 01:33:38 bankai_: really? close! i live in hibarigaoka! Jul 02 01:34:17 pboos: took me ages to be able to say that name. I dunno why, but i think it sounds cool Jul 02 01:34:19 agargiulo: yeah. for things that are mirrored here i get really good speed :) but rarely they have mirrors here. except linux stuff. Jul 02 01:34:25 maybe it's just the way they say it over the PA on the train Jul 02 01:34:36 bankai_: what did you do there? Jul 02 01:35:06 pboos: was on a working holiday, spent time in osaka, tokyo and nagano (worked in the snow field) Jul 02 01:35:34 Man, the selection on netflix has seriously gone to hell Jul 02 01:35:49 Eeep, my apologies, wrong window. Jul 02 01:36:11 There's always pirating Jul 02 01:39:04 bankai_: sounds like fun :) Jul 02 01:39:45 pboos: wish i could've stayed :( Jul 02 01:40:27 agargiulo: my friend and i worked at the lab when we started those mirrors :) Jul 02 01:40:40 SimonVT: yes, sad truth :(. I wish hollywood would make movies as easily accessible as pirates. Jul 02 01:40:59 bankai_: i believe you. i stayed :D living here for 2 years now Jul 02 02:44:41 why are the support library abstractions nested two layers? Jul 02 02:45:00 there's the implementations which implement an interface that are constructed based on API level and then they call into other classes Jul 02 02:45:16 the implementations themselves are static classes which means they're lazily loaded by the class loader Jul 02 02:52:46 because **** ENDING LOGGING AT Mon Jul 02 02:59:58 2012