**** BEGIN LOGGING AT Fri Jul 06 02:59:58 2012 Jul 06 03:00:01 but the guy in the accessibility talk just said osmething about a deaf-blind user turning on a light Jul 06 03:00:07 and i laughed Jul 06 03:00:12 because why would a blind person need a light Jul 06 03:00:15 lift made scala popular pretty much Jul 06 03:00:24 canadiancow|work: because there's someone else in the room? Jul 06 03:00:35 then why cant that person hunt around for the light switch? Jul 06 03:00:41 rather than the person who cant see it, and doesnt need it Jul 06 03:00:49 because he's a good host? Jul 06 03:00:51 geez, shut up :0 Jul 06 03:00:58 and the lift guy said he no longer recommends scala Jul 06 03:01:21 canadiancow: person needs to take a profile pic and their camera doesn't have a flash Jul 06 03:01:39 what material did you guys use to learn the android sdk? Jul 06 03:01:43 im using multiple things Jul 06 03:01:53 heh, i love what Steve Yegge said about Scala Jul 06 03:01:53 Technodrome: a spec that i had to implement, and d.android.com :P Jul 06 03:01:59 a lot of trial-and-error, d.android.com, and everything and anything on GitHub Jul 06 03:02:10 Technodrome: just read all of the docs. then do it again. simple, really Jul 06 03:02:10 ;) Jul 06 03:02:18 Yeah, a LOT of trial-and-error :p Jul 06 03:02:19 Mostly errors Jul 06 03:02:37 well i can do basic stuff now…..for my simple app, almost there Jul 06 03:03:01 but animations seem like somethng that is not all to standard , so many different ways of doing it Jul 06 03:03:05 I'm a big fan of Go, personally. I've written some Scala and I find its type system too smart for its own good occasionally. And it's incredibly easy to generate a whole bunch of short-lived objects without much code. Jul 06 03:03:26 Technodrome: the new animation framework greatly simplifies animating things Jul 06 03:03:41 im worried about the source material honestly Jul 06 03:03:43 any reason why http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#JELLY_BEAN is grayed out? Jul 06 03:03:54 i usually do about 20 frames for a 1 second animation Jul 06 03:04:05 pboos: you have < API 16 selected as your target SDK Jul 06 03:04:11 in android to fit large screens and then scale it down, it would be pretttty huge files Jul 06 03:04:16 Meh, JakeWharton typed faster Jul 06 03:04:23 canadiancow|cow: along romainguy's being a good host, what if the blind person were video chatting? Jul 06 03:04:25 unless there is some kind of svg animations? Jul 06 03:04:31 in the left navigational frame directly to the right of "Android APIs" Jul 06 03:04:41 lasserix, deaf-blind Jul 06 03:04:43 JakeWharton: ooh.. i forgot i once set it :D you are right. that is actually a nice feature! sweet :) Jul 06 03:05:23 Technodrome: what's the issue with animations? Jul 06 03:05:50 so, excuse my slightly off-topic chat if you could, but have any of you tried intellij IDEA for android. How did it compare to eclipse? Jul 06 03:05:58 yes Jul 06 03:06:01 doc|home: that's what I use every day Jul 06 03:06:07 it's soooo much nicer Jul 06 03:06:11 granted I work on the platform itself and not on apps... Jul 06 03:06:12 ^ Jul 06 03:06:13 great :) mind if I ask why? Jul 06 03:06:25 even just a quick rough guide Jul 06 03:06:27 it is far more intelligent about the relationship between things Jul 06 03:06:34 doc|home: it's hard to answer this question without writing pages and pages about it Jul 06 03:06:40 so basically, what JakeWharton said Jul 06 03:06:48 ok, that's good enough for me :) thanks Jul 06 03:06:51 romainguy: what is the source material, what format does it have to be? Jul 06 03:06:52 it has pretty much the same features as Eclipse Jul 06 03:07:02 every feature is just slightly better and sometimes a lot smarter Jul 06 03:07:08 * doc|home nods Jul 06 03:07:11 one example I love: I can go to drawable-mdpi/thing.png and rename it to thing2.png and it will automatically update the other drawables in drawable-hdpi and drawable-xhdpi as well as updating any R.drawable references in code. Jul 06 03:07:12 Technodrome: er what? Jul 06 03:07:16 dat autocomplete Jul 06 03:07:29 romainguy: huge png sprite sheets? i mean how do people do it ? Jul 06 03:07:39 SimonVT: heh Jul 06 03:07:50 JakeWharton: my favorite example was when IntelliJ told me that writing paddingLeft += marginTop was probably a bug Jul 06 03:07:51 any drawbacks? Jul 06 03:08:07 Depends. Do you use the gui layout editor? :p Jul 06 03:08:12 romainguy_: o.O Jul 06 03:08:12 Technodrome: if you animate sprites, just create several separate frames as PNGs Jul 06 03:08:20 SimonVT: me? Jul 06 03:08:20 IntelliJ 12 EAP has a layout editor apparently Jul 06 03:08:24 SimonVT: I'm just getting started Jul 06 03:08:24 doc|home: Yeah Jul 06 03:08:30 Technodrome: for other animations (scale, translate, rotation, etc.), use code or XML descriptors Jul 06 03:08:37 SimonVT: picking tools, setting up a dev env, etc Jul 06 03:08:41 JakeWharton: it's based on their Swing editor which was pretty good Jul 06 03:08:41 romainguy: yes, so a standard sprite sheet, but to accomodate for tablets to phones you would need some huge file size Jul 06 03:08:46 Ah Jul 06 03:08:52 Technodrome: no, separate files Jul 06 03:09:04 When is Version 2 of the Android developer console going in I wonder Jul 06 03:09:06 but we avoid frame animations as much as possible Jul 06 03:09:20 Good to know. I know a lot of people still rely on the UI editor and that prevented them from switching. Jul 06 03:09:24 even so, say i do 20 fps, thats going to a ton of files? Jul 06 03:09:32 JakeWharton: they also reuse the libraries we create for ADT Jul 06 03:09:33 Well, I guess eclipse has some better wizards.. And the layout editor Jul 06 03:09:45 Technodrome: 20 files for 1 second exactly :) Jul 06 03:09:52 romainguy_: yeah that's how I figured they got the preview pane in for 11 Jul 06 03:09:52 huh? Jul 06 03:09:55 Never used either Jul 06 03:09:59 good to know it's easily reusable like that Jul 06 03:10:15 romainguy: im clueless on how android people do this :) Jul 06 03:10:22 Technodrome: I just told you Jul 06 03:10:30 so a file for every frame? Jul 06 03:10:40 thanks for the answers! Jul 06 03:10:43 if you are doing frames-based animations yes Jul 06 03:10:46 *but* Jul 06 03:10:49 you should avoid doing it this way Jul 06 03:10:53 that could get huge quick Jul 06 03:10:58 how do you suggest then romainguy Jul 06 03:11:03 it depends on your animation Jul 06 03:11:10 do the animation in code? Jul 06 03:11:17 or with XML animation descriptors Jul 06 03:11:19 like I said earlier Jul 06 03:11:27 but once again, it depends on what you are trying to animate Jul 06 03:11:28 is that what they are called? Jul 06 03:11:31 sorry never heard of them Jul 06 03:12:02 Technodrome: read this http://developer.android.com/guide/topics/graphics/overview.html Jul 06 03:12:09 yeah frame based animations just won't work i guess for this kind of stuff Jul 06 03:15:44 thank you romainguy Jul 06 03:16:09 dumb question but my app saved some files to /sdcard, and i can see them in ASTRO File Manager Jul 06 03:16:15 I moved them into Download Jul 06 03:16:25 but when I connect my phone to my PC, I don't see the files. Jul 06 03:16:33 they're .ecn extension Jul 06 03:24:09 nevermind, Dropbox to the rescue. Jul 06 03:26:56 in http://developer.android.com/reference/android/media/MediaRecorder.AudioSource.html#DEFAULT what is the DEFAULT audio source?? Jul 06 03:38:32 http://pastebin.com/MBet9TWW any help? Jul 06 03:42:09 so anyone use the Fluffy Location library? If I have a Broadcast Receiver, separate class... when I receive the update in that, how do I get the updated location in my Activity that needs the lat/lng? Jul 06 03:43:46 I love that library's name Jul 06 03:45:25 hmm wait, i think i found it.. although it says "You can also create a LocationInfo object at anytime, and it will have the latest location info within it"... but why do you need to create your own BroadcastReceiver listening for their action? Jul 06 03:46:07 romainguy_: when the ANR dialog is up your ViewServer recursively spits onConnectionErrors to logcat Jul 06 03:46:17 not recursively, infinitely loop-ly Jul 06 03:46:31 damnit Jul 06 03:47:18 not ANR, application crash dialog. (this was a total communication fail) Jul 06 03:50:17 is it possible to play the audio that a mic captures through headphones in real time? Jul 06 04:02:54 how do i add a view below webview ? Jul 06 04:03:11 the same way as below any other view? Jul 06 04:04:12 http://pastebin.com/25RAdKAQ Jul 06 04:04:31 canadiancow: not working for my views http://pastebin.com/25RAdKAQ Jul 06 04:04:43 also neither is my progressbar color :( Jul 06 04:07:08 i love adding features to an app and shrinking the overall apk size Jul 06 04:07:11 its a beautiful thing Jul 06 04:07:23 is your webviews layout_height crowding out its linear layout parent? Jul 06 04:08:42 also, make top level linearlayout a relativelayout and position above and below Jul 06 04:10:23 lasserix: http://pastebin.com/25RAdKAQ Jul 06 04:10:31 there is my layout as of now Jul 06 04:13:23 one sec Jul 06 04:13:28 lasserix: ok Jul 06 04:17:22 droidbuster: Jul 06 04:17:41 use a relative layout as the root, afix each child in it's preferred location Jul 06 04:17:41 yes Jul 06 04:17:51 for example: http://pastebin.com/8MAXEsyZ Jul 06 04:17:59 lasserix: ok thank you i will give it a try Jul 06 04:18:11 the tabs are all out of align, and i deleted the gravities you may have to add them back in Jul 06 04:18:27 but i believe that is what you want Jul 06 04:19:28 also i dont know what you are going to put in the relativelayout at the bottom of the screen, but you can just use the same parameters from the "top" part views Jul 06 04:19:38 and avoid using that relative layout altogether Jul 06 04:19:54 that button at the bottom i added just as a test to see if the webview would still crowd it out Jul 06 04:22:19 lasserix: i see that i just had a problem with the linearlayout Relatives are not my strong suit Jul 06 04:23:48 romainguy has a good post on the subject of optimal layout design if you google, but idea is want to minimize instances of viewgroups (linear, relative, etc) particularly embedded in other viewgroups Jul 06 04:24:10 so relativelayout is simplest way to arrange the kind of thing you are setting up Jul 06 04:24:53 lasserix: that makes sense again thank you for your help Jul 06 04:26:07 no problem good luck! Jul 06 04:32:01 The one that works off the current master is 'flashfix-early' and the one that works off your current master is 'flashfix' Jul 06 04:32:06 oops Jul 06 04:34:30 hello! I am trying to find a way to play .flv videos in my app. I searched on the web for this and found couple of options - which use web view and http://www.platipus.nl/flvplayer/download/1.0/FLVPlayer.swf to play the videos. But I couldn't get it to work. Is there a recommended/standard way to play .flv videos? Jul 06 04:42:42 hello everyone Jul 06 04:44:14 I would like to communicate with a remote sql database via my android app. Does anyone know of a framework to do this with? or do i have to fall back on native java sockets? Jul 06 04:44:28 I appreciate any help in advance Jul 06 04:55:30 anyone? Jul 06 04:55:52 you have no way to expose the database via a web service? Jul 06 04:56:18 that is what i plan on doing and in fact the only way give nthe database is remote Jul 06 04:56:44 see in the enterprise java world...spring would handle at that nitty gritty Jul 06 04:57:08 so then you'd just need to consume the web service using http/https in java. Whats the problem? Jul 06 04:57:08 but I have no knowledge of how I could accomplish the same thing on an android app.. Jul 06 04:57:50 if thats the only way then I don't mind. I just figured there might be a framework out there so I didnt have to re invent the wheel Jul 06 04:58:28 there is Restlet for android Jul 06 05:00:01 QubeZ: android-developers.blogspot.jp/2011/09/androids-http-clients.html Jul 06 05:00:20 QubeZ: for communicating with your server over HTTP/HTTPS Jul 06 05:00:31 im not the one looking Jul 06 05:00:44 ups :D replace that with hamo__ ;-) Jul 06 05:00:55 thanks guys will take a look Jul 06 05:02:05 i have to do some rest stuff soon, i think i am going to use jarjar to repackage the latest stable apache httpclient , so i can have consistent behavior across all versions of android. well, in theory. Jul 06 05:03:21 i wonder if anyone else is doing that? Jul 06 05:04:51 somebody is Jul 06 05:05:37 thanks JakeWharton , i had a doubt ;) Jul 06 05:06:14 I dont get this Fluffy location lib... I force update, I refresh (both are lib's methods) and I keep getting large neg numbers for my lat/lng until about 10 mins later (broadcast) Jul 06 05:06:22 i want to get latest as soon as I get into my activity Jul 06 05:06:23 but in all seriousness, if anyone here is doing that I would love to hear about it Jul 06 05:07:23 hear about what? Jul 06 05:07:26 it works Jul 06 05:08:00 why do you want apache httpclient? Jul 06 05:11:27 wabz: so i can use the same library for all versions of android Jul 06 05:11:36 and get the same behavior Jul 06 05:12:10 as in, you want to support <= froyo? Jul 06 05:12:11 unless for some reason httpclient 4.2.1 would work differently on GB than ICS, which i would not see why Jul 06 05:12:30 wabz: yes Jul 06 05:12:56 fun :) Jul 06 05:14:01 android is FUN !!! Jul 06 05:14:16 yes, a busybox for autistics Jul 06 05:15:20 it's a pure java lib. if you include it in your own package then it will always work the same. Jul 06 05:17:05 JakeWharton: would the classloader grab the httpclient version that I bundle, or the native one? i thought the native one Jul 06 05:17:20 but you're jarjar-ing it Jul 06 05:17:35 yes, so that should solve that Jul 06 05:17:44 now I guess my bigger problem is implementing the backend database with a web interface Jul 06 05:17:46 :P Jul 06 05:17:49 jooq Jul 06 05:24:37 get drunk and watch a movie or back port SearchView... Jul 06 05:24:50 decisions, decisions… Jul 06 05:27:26 JakeWharton: get drunk and back port SearchView Jul 06 05:27:34 that could end badly :) Jul 06 05:28:11 If I need to send/receive data from a web service, is AsyncTask likely the best way to go? Jul 06 05:28:23 so is google drive api v2 out yet? And if so where are we supposed to find it? Jul 06 05:28:24 HorizonXP: thats two diff things you're talking about Jul 06 05:28:37 the issue is that I need to get the actual return value, so I'm using the .get() function Jul 06 05:28:38 HorizonXP: probably not Jul 06 05:28:41 HorizonXP: you use ASyncTask to run things on another thread (manage them easily) Jul 06 05:28:49 so it kinda defeats the purpose of AsyncTask :/ Jul 06 05:28:50 AsyncTask is for short, one-time operations Jul 06 05:29:00 ^^ Jul 06 05:29:29 like file loading while showing a spinny thing (what I use ASyncTask for..) Jul 06 05:29:42 define one-time? I query Places API via ASyncTask when user clicks on the items each time... is there something wrong with that? Jul 06 05:30:07 "each time" Jul 06 05:30:27 QubeZ: I think ASyncTask is for when you need to jump out of the UI thread for a second and do something in another thread, then come back relatively soon Jul 06 05:30:32 you probably want something a bit more robust that will allow concurrent operations Jul 06 05:31:09 hmm.. Jul 06 05:31:11 but anyway-- Drive API... v2... out? Docs seem to suggest it is. Jul 06 05:32:22 guess no one knows. Jul 06 05:33:31 http://code.google.com/p/google-api-java-client/wiki/APIs#Drive_API Jul 06 05:34:28 JakeWharton: thanks Jul 06 05:43:00 why doesnt installing my application create a shortcut into the application menu Jul 06 05:43:05 iirc it did that automatically before Jul 06 05:48:09 wth http://www.theverge.com/2012/7/5/3140251/amazon-smartphone-rumor-bloomberg Jul 06 05:49:52 the amazon appstore app is fugly.. Jul 06 05:53:01 and then of course there is FB , who wants their own phone also :| Jul 06 05:53:32 and then of course there is FB , who wants their own phone also :| << probably one of the 900million jackasses on there Jul 06 05:53:33 :p Jul 06 05:53:48 hehe Jul 06 05:53:56 man this fluffy location lib is sweet Jul 06 05:54:01 reminds me of the "In Hell… the mechanics are French the police are German Jul 06 05:54:01 the chefs are British the lovers are drunk zealots and everything is organized by the Italians. Jul 06 05:54:29 Shano56: hmm ? Jul 06 05:54:33 im just not sure why i'm getting my broadcast receiver called as often as it is being called -- instead of every 15 mins.. its some random interval and my location is not changing Jul 06 05:54:49 hmm what? Jul 06 05:54:51 ohh Jul 06 05:54:57 i read youre statement wrong Jul 06 05:54:59 my bad :p Jul 06 06:04:25 How can I make the phone unlock and wake up on application launch? Jul 06 06:08:17 http://developer.android.com/tools/testing/activity_testing.html#UnlockDevice http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SHOW_WHEN_LOCKED Jul 06 06:09:33 Thanks Jul 06 06:28:08 Camera focus modes fixed vs infinite Jul 06 06:28:17 To me it appears that they're the same Jul 06 06:28:20 at least on my phone Jul 06 06:28:24 Is this common? Jul 06 06:29:04 I'm using this : https://gist.github.com/3058391 For my List items. But the imageview (iv_post_photo) looks stretched downwards and the image is set at the center of the view. What I'm trying to achieve is, the image should not lose its aspect ratio so, the imageview should expand downwards to properly fit the image. Can someone help me out to fix this? Jul 06 06:33:37 romainguy_: ^^ Can you? Jul 06 06:43:30 napster: http://stackoverflow.com/questions/8232608/fit-image-into-imageview-keep-aspect-ratio-and-then-resize-imageview-to-image-d Jul 06 06:54:10 edwinkcw: Yes, I just came across it and AdjustViewBounds just did the job. Thank You/ Jul 06 07:06:15 I'm going to write a web app that searches AOSP for @hide annotations and does git blame on them. Jul 06 07:12:53 JakeWharton: that's mean Jul 06 07:13:41 I mean I understand why you do it… it just makes my life much harder :) Jul 06 07:14:07 this could apply to all private and package private APIs Jul 06 07:15:10 those don't affect me as much since I'm usually wholesale copying things over Jul 06 07:15:29 but they're fundamentally the same I guess Jul 06 07:22:11 I actually wish you could @hide things in library projects Jul 06 07:22:40 can sombody tell me why every 1 uses private String TAG = "...."; Jul 06 07:22:50 because it gets inlined Jul 06 07:23:01 so it's faster than a call to getClass().getSimpleName() every time you log something Jul 06 07:23:19 in the debug but does`nt it mem intence? Jul 06 07:23:21 it also lets you control what the Log tag is for the entire file in one place Jul 06 07:23:32 uh, what? Jul 06 07:23:53 I mean does it not use memory in the app? Jul 06 07:24:30 Not really, no. A few bytes. Jul 06 07:24:49 ah oke thanks Jul 06 07:25:08 JakeWharton: euhm do you know somthing about ddms? Jul 06 07:25:24 I do. Jul 06 07:25:57 i try to use the network stats but i get a error with the xt_gui what can i do Jul 06 07:27:12 That I do not know. Sounds like a problem with whatever windowing library ddms is using. Jul 06 07:27:21 DDMS problem reading xt_qtaguid network <-- Jul 06 07:27:52 i did try to look it up in google but no luck :S Jul 06 07:28:29 Are you using an ICS device? Jul 06 07:28:59 euhm its a standard emulator Jul 06 07:29:49 I feel like I remember hearing network stats do not work on emulators. Jul 06 07:30:24 damn Jul 06 07:30:59 i need to know why my expandablelist is using traffic when im scrolling Jul 06 07:31:20 Probably because whatever is in your getView method is triggering network calls. Jul 06 07:32:40 but how is it possible when i call it in a other view and send a list to that view Jul 06 07:33:35 can i resolve it with a async task so you dont have it in the same thread? Jul 06 07:33:47 does sombody know how to change the dropdown background in actionbar when pressing menu icon in ICS? Jul 06 07:38:21 do you guys agree that mobile dev is so much more fun than web dev? Jul 06 07:39:22 Technodrome: i'd agree with that Jul 06 07:39:36 just much more exciting Jul 06 07:40:29 also, there is no CSS to deal with Jul 06 07:42:01 Kannibal: its specified in a style which is defined on one of the theme attributes Jul 06 07:42:30 JakeWharton: yea, just trying to figure out what attribute it is :) Jul 06 07:42:32 I realize that's incredibly generic, but I don't remember offhand what it's called. Jul 06 07:43:08 currently got this: Jul 06 07:43:08 Jul 06 07:43:08 Jul 06 07:43:31 but that only change the color of the actionbar not the dropdown Jul 06 07:43:42 looks like it's an internal attr Jul 06 07:43:51 listPopupWindowStyle Jul 06 07:44:25 er, popupMenuStyle is public though Jul 06 07:46:13 looks like popupWidowStyle is used Jul 06 07:46:27 in MenuPopupHelper first line of tryShow method Jul 06 07:47:14 and that baby is public: http://developer.android.com/reference/android/R.attr.html#popupWindowStyle Jul 06 07:47:41 hello! I'm building a dictaphone app. Most of it is done, and now I want some kind of VU/level/peak meter (like the ones found on mixers etc) indicating the amount of sound registered by the microphone. Currently, I only show this information as the integer value I get from polling the AudioRecord. My initial thought was to have some kind of image which I resize based on the amplitude value. My question: how would I do this? wh Jul 06 07:48:16 JakeWharton: thanks i will try that… not sure about how the xml shoult look like. Jul 06 07:48:45 dreidrik, as a start, maybe you can try out a progress bar Jul 06 07:49:34 define your own android:popupMenuStyle in the theme with your own style that extends from Widget.Holo.PopupMenu and changes the background Jul 06 07:49:46 and it's popupMenuStyle not popupWindowStyle as I kept saying above Jul 06 07:49:49 EPG: not a bad idea! I'll give that a try :) Jul 06 07:50:39 the only benefit i can think of in using an image would be something colored Jul 06 07:50:49 but resizing this would look ugly Jul 06 07:51:46 romainguy: hate that word ....css Jul 06 07:51:51 Kannibal: and because of figuring that out I can now reply to two people's emails which have been sitting in my inbox Jul 06 07:51:57 so thanks! Jul 06 07:53:03 JakeWharton: hehe, thats great, but it is still not my own color.. Jul 06 07:53:03 is this right? Jul 06 07:53:03 Jul 06 07:53:03 Jul 06 07:53:29 EPG: there's some requirements of how the thing should look which I never mentioned. But I'll start with trying to make a vertical progress bar and then customize the looks. Thank you! :) Jul 06 07:53:35 looks right. also, please don't paste into the chat. use a service like pastebin.com Jul 06 07:54:37 ok, sorry. but it wont work anyway :( Jul 06 07:54:39 and if the code sucks you could try http://hatepaste.com/post/ Jul 06 07:56:09 wtf, is the HTC desire the only phone where the oem enabled WAL for sqlite ? Jul 06 07:56:50 where does OpenResourceIdResult live? Jul 06 07:57:13 outside of frameworks/base/core/ ? Jul 06 07:58:41 Ah, nvm. It's an inner-class. Jul 06 07:59:04 If a thread is running and instantiating new float arrays with a combined total length of 6000, every second or so, this is good time for pool? Jul 06 08:02:46 lasserix: maybe. you can look at how Handler/Message implement a simple pool; there are a few internal framework classes that you can copy also Jul 06 08:03:00 you will probably have to benchmark to decide for yourself Jul 06 08:03:22 or just reuse the arrays Jul 06 08:06:13 I want a Neo4J subset on Android Jul 06 08:06:53 JakeWharton: got it working now. thanks you! Jul 06 08:06:59 Kannibal: what was the problem? Jul 06 08:07:05 or the fix, rather Jul 06 08:07:33 I changed