**** BEGIN LOGGING AT Fri Jun 22 02:59:59 2012 Jun 22 03:00:06 your mom is null ! Jun 22 03:00:15 AWWWWWWWWWWWWWWWWWW SNAP Jun 22 03:01:11 drpenguin: i hope you apply to google Jun 22 03:01:21 whys that? Jun 22 03:01:36 because it sounds like you would enjoy it Jun 22 03:02:09 oh heh, well yeah it would be. I love working with Android.. but I love my current job too, so id be happy either way Jun 22 03:02:21 google is fun Jun 22 03:03:27 p_l: you work there? Jun 22 03:03:49 mdwright: according to my recruiter I barely missed the mark on programming questions Jun 22 03:03:58 p_l: ah, that's too bad Jun 22 03:04:12 but I got a tour of Dublin SRE offices Jun 22 03:04:43 can't see settings button for livewallpaper -> https://bitbucket.org/derekverlee/soundcloud-live-wallpaper/src/32c80c8daad2/app Jun 22 03:04:54 Shaven Yak is a cool place :) Jun 22 03:05:06 (or was it Shaved Yak?) Jun 22 03:06:02 The Shaven Yak Jun 22 03:06:22 yeah Jun 22 03:07:30 the flight simulator was also nice, even if the engine controls were definitely for piston props, while I prefer Jets Jun 22 03:09:25 definitely a nice place to work. And pay was also nice Jun 22 03:11:07 I hate xml Jun 22 03:11:18 whats wrong with xml? Jun 22 03:11:31 drpenguin: ... a lot. let's not start on that ;) Jun 22 03:11:45 Okay... Jun 22 03:12:05 99 things wrong with xml Jun 22 03:12:15 right now its that I suspect it for the bug I'm having Jun 22 03:12:26 But there's no validation warnings, js lint, runtime problems Jun 22 03:12:28 just not working Jun 22 03:12:38 #android-br Jun 22 03:12:38 Settings button doesn't light up. Jun 22 03:12:52 s/light up/appear Jun 22 03:17:29 so far Android development has not disappointed me Jun 22 03:17:33 I've done iOS for a few years Jun 22 03:17:36 on and off Jun 22 03:17:55 once I sort out this Scala bit I'll be happy camper Jun 22 03:17:57 anyone knows where on can find good android devs? Jun 22 03:18:07 look no further :P Jun 22 03:18:07 freelance that is Jun 22 03:18:17 well I am not allowed to advertise :) Jun 22 03:18:31 so I was wondering if there is an android channel Jun 22 03:18:40 for finding freelancers Jun 22 03:18:45 there is not Jun 22 03:19:01 there should be :) Jun 22 03:19:16 well it's certainly not this one Jun 22 03:19:20 you're welcome to try and start one Jun 22 03:20:06 ugh the camera is awful on this Galaxy Tab II ... Jun 22 03:20:39 craigs list Jun 22 03:21:29 :D Jun 22 03:21:50 when I went to buy this device for development I told the kid at Best Buy to learn Android… hire him in 6 months Jun 22 03:22:11 although I told him Android was easier to learn but iOS was more fun ;) Jun 22 03:22:48 he was saying "I was thinking about learning networking or app development… which should I do?" Jun 22 03:23:00 networking?! who does that anymore? are schools still pushing that? Jun 22 03:23:31 "networking" is not a viable career for the average kid anymore Jun 22 03:24:06 I told him to learn to code because then when he does learn networking or IT admin stuff he'd be 10X more effective. Jun 22 03:25:19 jcromartie: I had to take a networking class Jun 22 03:26:00 shiii... I'm stuck. what should I check out? I can't get the app to register that there is a prefernces screen for the livewallpaper I'm building. Jun 22 03:26:31 drpenguin: I did a few semesters at our county "career and tech" center doing A+ cert and Cisco cert prep work Jun 22 03:26:32 its going to be something like an uppercase letter in the xml Jun 22 03:26:44 it was fun but the class itself was total BS Jun 22 03:26:55 jcromartie: oh yeah? I didnt do uch for A+ cert.. just grabbed a book, skimmed it,a nd tok my tests Jun 22 03:27:02 most of the time we just poked around the school network with Linux on floppies Jun 22 03:27:03 :) Jun 22 03:27:16 Linux on floppies? Oh God. Jun 22 03:27:26 i used linux on floppies Jun 22 03:27:34 slackware was 12 floppies when i first tried it Jun 22 03:27:44 :) Jun 22 03:27:47 Man do I feel young Jun 22 03:27:57 that or not nearly attuned to linux as I felt I was Jun 22 03:28:28 nah man, *one* floppy Jun 22 03:28:29 t Jun 22 03:28:30 ha Jun 22 03:28:31 t w Jun 22 03:28:31 a Jun 22 03:28:32 that was the shiz Jun 22 03:28:35 Trinux Jun 22 03:29:08 sniffing, scanning, poking, prodding Jun 22 03:29:25 You sure you were using linux? sounds like you got abducted Jun 22 03:32:49 we'd get on one of the switches and sniff out kids downloading MP3s and stuff, and then kill their connections Jun 22 03:38:20 g00s: I still use slackware Jun 22 03:40:00 can anybody shed some light on how Google+ lays out their app to have a menu button in what looks like the status area (not familiar with the terminology) Jun 22 03:41:10 jcromartie: isn't it ABS with an overflow menu? Jun 22 03:41:27 what's ABS? Jun 22 03:42:42 actionbarsherlock Jun 22 03:43:23 jcromartie: a type of cheap plastic Jun 22 03:44:10 ah ha Jun 22 03:44:32 this looks good Jun 22 03:48:10 hm Jun 22 04:06:24 ok deep breath Jun 22 04:06:31 guess what Jun 22 04:06:35 the problem was Jun 22 04:18:30 the reason I hate XML is because it gets in the way of programming Jun 22 04:18:43 it gets in the way of accomplishing things. Jun 22 04:18:59 So does IRC. Jun 22 04:32:17 <_Auron_> well this is great Jun 22 04:32:34 <_Auron_> my mobo fried last week so I've had to re-setup everything Jun 22 04:33:02 <_Auron_> and I can't compile my android project. says there's an error, but there's no output of what error it is, and the only sign I have is an exclamation point next to the project name in the workspace Jun 22 04:33:15 <_Auron_> project->clean doesn't help, I reinstalled all the SDK and ADT correctly Jun 22 04:34:19 <_Auron_> ah wait, I think I found what's wrong Jun 22 04:35:22 its probably a library thing Jun 22 04:35:37 <_Auron_> yeah, it wasn't seeing my game engine's .jar, so I had to point it in the right spot Jun 22 04:36:14 yeah, its the kind of thing that drives you crazy the first time you see it Jun 22 04:36:30 the one that got me for ages was my dev. cert had expired Jun 22 04:36:38 there was zero indication that that was the case :( Jun 22 04:37:02 I think intellij is much smarter about those sorts of things Jun 22 04:37:10 don't the rules say you have to make a dev cert which is valid for 20 years or something? Jun 22 04:37:19 that's for your real cert Jun 22 04:37:29 the default one it generates for dev is 1 year Jun 22 04:37:30 oh, you mean debug cert Jun 22 04:37:34 right, sorry Jun 22 04:37:36 rather than dev(eloper) cert Jun 22 04:37:42 :P Jun 22 04:39:05 if I had a clue where the 'common tasks' page had gone, I'd point you at where it talks about debug certs... but I've no idea where it is now Jun 22 04:41:38 the issue for me was that eclipse was telling me there was a problem with the project Jun 22 04:41:44 <_Auron_> yeah the debug cert is crap Jun 22 04:41:47 had the red !, but couldn't tell me anything else Jun 22 04:41:53 <_Auron_> after the first year I went nuts trying to figure out how to fix that Jun 22 04:41:58 <_Auron_> yeah Jun 22 04:42:01 <_Auron_> that's what happened to me Jun 22 04:42:11 it's super easy to fix, just gotta figure out that's what happened Jun 22 04:42:12 <_Auron_> it did a popup without even trying, saying that it had an error before I could try to compile Jun 22 04:42:42 <_Auron_> so I went to project properties after noticing my .jar wasn't in the file list under the project, and of course there was a red x in the project properties menu :P Jun 22 05:05:38 <_Auron_> okay, now another problem Jun 22 05:06:06 <_Auron_> my app crashes when it runs in the emulator and on my phone, with: 06-22 00:05:40.402: E/AndroidRuntime(25187): Caused by: java.lang.ClassNotFoundException: com.dotdroid.Stroids2.main in loader dalvik.system.PathClassLoader[/data/app/com.dotdroid.Stroids2-1.apk] Jun 22 05:14:22 _Auron_: a] is the class public b] if it's an activity is it declared in the manifest? Jun 22 05:14:36 <_Auron_> yes and yes, and I just fixed the problem Jun 22 05:14:42 <_Auron_> had to do with my game engine's jar again Jun 22 05:14:43 and what was it? Jun 22 05:15:08 care to tell us more details? Jun 22 05:15:32 <_Auron_> it wasn't selected in 'order and export' tab under Java Build Path in the project properties Jun 22 05:15:43 <_Auron_> once I did that and did a project clean, it ran without a problem Jun 22 05:15:58 <_Auron_> the little things, oy vey Jun 22 05:16:22 ok Jun 22 05:56:50 Does Eclipse and/or the ADT have a hotkey to terminate the current debug session and return to the editing perspective? Jun 22 06:06:00 hello. is it possible programatically get the datum and time from a SQL server or a Windows PC in Android? Jun 22 06:11:21 Rintano: Yes. Jun 22 06:13:55 hm. casting context as activity (the context is an activity for sure) and starting a new activity for results in another class works Jun 22 06:14:15 but im not getting the results back to the main activity which holds the context Jun 22 06:15:07 id need to rewrite a lot of code for a different type of implementation Jun 22 06:21:44 Fjornir: and how? :) Jun 22 06:24:16 Rintano: ...picking the protocol you intend to use would certainly be a start, don't you think? Jun 22 06:29:03 How am I supposed to add multiple child views to a custom Dialog element? I'm using statsDialog.addContentView(ll, new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT)); Jun 22 06:29:42 but I get this mess http://i.imgur.com/SDSWO.png Jun 22 06:31:39 I'm adding "ll", which is a horizontal LinearLayout created dynamically Jun 22 06:32:00 and what's in your linearlayout? Jun 22 06:32:14 Let me paste it on a thing Jun 22 06:32:47 private void displayPercentages(PollItem result) { ArrayList answerOptions = result.getAnswerOptions(); Dialog statsDialog = new Dialog(Poll.this); statsDialog.setContentView(R.layout.stats_dialog); statsDialog.setTitle(getResources().getString(R.string.statsDialog_title)); statsDialog.setCanceledOnTouchOutside(true); statsDialog.setO Jun 22 06:32:56 http://pastebin.com/geHgyxQS Jun 22 06:33:15 uh. I may have pasted the entire method in irc there. Sorry about that, if so Jun 22 06:33:27 there's no need to specify the weight sum btw Jun 22 06:33:37 also, you could just inflate an XML, it's a lot easier Jun 22 06:34:04 You did indeed paste, alas. Are you certain that you intend to WRAP_CONTENT, JavaDog? Jun 22 06:34:05 Yeah I guess that would be easier Jun 22 06:34:14 anyway Jun 22 06:34:20 instead of doing a bunch of addContentView Jun 22 06:34:29 create an outer, vertical, LinearLayout Jun 22 06:34:36 add your "ll" in the loop in that vertical layout Jun 22 06:34:44 then add the vertical layout to the dialog Jun 22 06:34:58 Ah, okay Jun 22 06:35:49 romainguy: Do programmatic changes to the xml layout take effect immediately or do I need to request an update afterwards? Jun 22 06:36:03 Fjornir: what do you mean? Jun 22 06:36:28 if you do addView() you don't need to call requestLayout or anything afterwards Jun 22 06:36:32 for example Jun 22 06:36:35 romainguy: If your program changes the xml layout does the onscreen display update immediately or do you need to ask the API for some sort of redraw? Jun 22 06:36:49 an app cannot change the xml layout at runtime Jun 22 06:37:23 but if you modify the views that are currently on screen, changes will be reflected automatically Jun 22 06:37:28 as long as you use public APIs that is Jun 22 06:37:38 unless you're animating a listview, then you might need to call requestLayout :p Jun 22 06:38:31 wabz: hmm no Jun 22 06:38:37 or you are doing something really weird Jun 22 06:38:47 I don't really know. I put a bug in: http://code.google.com/p/android/issues/detail?id=33424 Jun 22 06:38:56 yeah I read your bug Jun 22 06:39:00 ah Jun 22 06:39:13 it would be useful if you specified what version of Android causes the issue Jun 22 06:39:15 on what device Jun 22 06:39:26 I did Jun 22 06:39:34 my bad Jun 22 06:39:55 but I'm sure I left out something valuable, I haven't submitted a bug before Jun 22 06:40:03 no it's great Jun 22 06:40:57 gaz`: if you are around, here is your chance to get your 6 mos worth of struggle with oom errors & bitmaps solved :) Jun 22 06:41:25 I was thinking about that bug when I was cycling home yesterday actually g00s Jun 22 06:41:40 and decided that that's basically how android/java work in general Jun 22 06:41:50 there's no guarantee as to when your memory is going to be released Jun 22 06:42:05 I've been ahving the same problems Jun 22 06:42:18 that's what happens when you have a GC Jun 22 06:42:23 I think unless the system is holding onto the bitmap unecessarily, it's probably not a bug Jun 22 06:42:26 right Jun 22 06:42:58 yeah … i just felt bad for gaz` because its been a problem for a really long time for him Jun 22 06:43:13 and it sounds like its ruining his life practically Jun 22 06:43:23 Your solution worked great romainguy_, thanks Jun 22 06:43:33 yw Jun 22 06:44:58 I guess he'll either have to find another way to work with his bitmaps, or wait for devices with double the ram ;) Jun 22 06:45:14 How big are these bitmaps? Jun 22 06:45:30 I think he said he was loading in a bitmap that ultimately used 4 megs Jun 22 06:46:00 but was swapping them in/out or something Jun 22 06:46:15 and they weren't being garbage collected as he needed them to be Jun 22 06:49:29 That's annoying. Does the debugger offer any facility for checking reference counts and/or who is holding references to an object? (<---- fairly new to Android ) Jun 22 07:05:07 Is anybody up? I'm look to retrieve the artwork of the currently playing music. Can I point MediaMetadataRetriever to use the music as my data source? Jun 22 07:08:51 the intent, creats a new instance of the receiving class Jun 22 07:09:54 derekv: sorry, didnt really understand that Jun 22 07:10:18 there's no intents invloved in MediaMetadataRetriever right? Jun 22 07:10:36 f2prateek, sorry I wasn't really answering your question Jun 22 07:10:41 It was more a mumble to myself Jun 22 07:10:54 derekv: lol k Jun 22 07:11:46 I have to reformulate what I was doing Jun 22 08:03:54 What's the proper logic to keep from getting a NoSuchElementException when stepping through an Iterable data structure? Jun 22 08:05:20 Is there any possibility to sort the error reports in the google play developer console on app-version? Jun 22 08:06:02 I just want to see error for my latest version and don't want to go through all Jun 22 08:22:02 hi.. if i get a message like this: 06-22 10:20:40.265: D/RequestQueue(4171): setProxyEnabled=true Jun 22 08:22:10 fucking eclipse! Jun 22 08:22:16 ok, i have to manually type the message form the log Jun 22 08:22:32 Out of memory: Heap Size ... Allocated ... Bitmap ... Jun 22 08:22:38 what's the meaning of the three values? Jun 22 08:22:48 is the Heap the application heap or the system "heap"? Jun 22 08:23:00 and what about the Allocated and Bitmap values? Jun 22 08:23:10 is Bitmap the size of the executable? Jun 22 08:24:26 Well, "Out of Memory" would indicate to me that you're trying to load a huge bitmap into memory and there isn't enough on your phone or emulator Jun 22 08:24:50 There isn't enough allocated, anyway Jun 22 08:25:29 I believe you can change how much is allocated... but perhaps you should compress the image resource Jun 22 08:28:04 JavaDog: i doubt that the "bitmap" field in the message has anything to do with images.. but i'm not sure.. Jun 22 08:29:37 http://developer.android.com/reference/android/graphics/Bitmap.html Jun 22 08:29:48 yeh, i do know the Bitmap class :D Jun 22 08:30:10 Why wouldn't it have to do with images? A bitmap is an image format. Jun 22 08:30:38 can you copy the stack trace? Jun 22 08:30:41 yeah, that's also why system images are not images :D Jun 22 08:30:54 that's why i ask because i would have to guess. Jun 22 08:30:56 you are guesing too :D Jun 22 08:30:59 guessing Jun 22 08:31:32 A system image? Like a nandroid backup? Jun 22 08:31:41 yeah, or if you pull an image of your hd Jun 22 08:31:50 technical terms are sometimes not obvious Jun 22 08:31:52 that's why i ask Jun 22 08:32:01 do you have a reference that confirms your guess? Jun 22 08:32:15 Put your stack trace on pastebin.com Jun 22 08:32:23 Can't help unless we know what's going on Jun 22 08:32:38 has anyone gotten any external nfc reader to work fine with android? Jun 22 08:33:02 In eclipse (on the logcat panel), click the little floppy drive button to save it to a file Jun 22 08:34:57 sadly eclipse is not nice.. Jun 22 08:35:03 let's se if i can get it from adb logcat Jun 22 08:35:43 ok, i will have to retrigger it Jun 22 08:36:34 this button doesn't work for you? http://i.imgur.com/lbwzQ.png Jun 22 08:37:33 http://pastesite.com/38504 Jun 22 08:38:02 using logcat directly is less error prone than eclipse ;D Jun 22 08:38:36 looks like it's crashing on your line 265 in FreispielAPI.java Jun 22 08:38:50 Out of memory: Heap Size=7815KB, Allocated=5962KB, Bitmap Size=16764KB Jun 22 08:38:51 yeah Jun 22 08:38:58 no shit, sherlock :D Jun 22 08:39:31 so what's going on there? You're running an AsyncTask soing some network stuff? Jun 22 08:40:02 also, is this an emulator? Jun 22 08:40:13 JavaDog: yes.. see my original question about the fields in the Out of Memory message Jun 22 08:40:20 that's what i'm interested inm Jun 22 08:40:40 i know how to debug using stack traces, etc.. all i want to know is the semantics of the fields in the Out of Memory message Jun 22 08:42:01 for me it sounds like "heap was 7,8mb - alocated another 5,9mb but still not enough for 16,7mb bitmap" Jun 22 08:42:18 not entirely sure what that is. My guess would be, Bitmap is the amount of memory space the system has allocated for images Jun 22 08:42:38 If you edit your emulator you can change "Device ram size" and "Max VM application heap size", those may fix it Jun 22 08:43:04 anyone know if mediaplayer caches stuff while its streaming? Jun 22 08:43:40 so we all are guessing :D Jun 22 08:43:51 i wonder what reference docs to read to find out Jun 22 08:45:26 may be relevant http://stackoverflow.com/questions/3037027/android-outofmemoryerror-bitmap-size-exceeds-vm-budget-with-no-reason-i-can-se Jun 22 08:50:46 * Ge0rG has seen OOM errors as well in his jabber app. no bitmap handling in there Jun 22 08:52:33 ok, thanks for the link.. reading.. Jun 22 08:57:19 we only decode the bitmap to a scaled size.. (700 x 700 max) Jun 22 08:57:49 using the decoder to first get the bounds, calculate target size to keep aspect ration and preserve these max values and then decode directly to that size.. Jun 22 08:57:57 there's never an image of 16mb involved :d Jun 22 08:59:00 try changing the source bitmap to see if it changes anything? Perhaps you're still loading the source into memory without realizing it? Jun 22 08:59:11 By that I mean, compress the source to be really tiny Jun 22 08:59:52 trying to setting inPurgable and inInputShareable to true.. Jun 22 09:12:45 Which method can I use to translate view before api 11? I'd like a setTranslationX :) Jun 22 09:14:56 TranslationAnimation Jun 22 09:16:26 JakeWharton: TranslateAnimation with "from" and "to" with the same value? Jun 22 09:16:36 I had to do that also for Alpha Jun 22 09:20:11 does anyone know of an alternative for the SearchView on pre honeycomb devices (not the search dialog though). Basically looking for a replacement that looks and acts the same and offers the same programming interface. Jun 22 09:24:34 sup Jun 22 09:24:45 day4: 4 downloads only... Jun 22 09:26:13 mobilegamelabs: only bad things happen quickly Jun 22 09:31:40 g00s: agree... Jun 22 09:41:03 accepted payload ... master -> master (forced update) =* Jun 22 09:42:08 hahaha wow... bitbucket gets confused if you do that Jun 22 09:57:56 I want to put up my android project on github. What are the files that I can exclude? Jun 22 10:02:23 rrjois: google android .gitignore Jun 22 10:02:44 g00s, thanks :) Jun 22 10:08:50 soooo androids mediaplayer doesn't support caching of streamed video data? that's nice Jun 22 10:10:00 not having destructors and RAII makes things complicated :d Jun 22 10:10:23 i think i might just try the Qt port to android again :D Jun 22 10:10:46 c++ offers so many more ways to shoot oneself in the foot.. but that's raw power to do what one wants :D Jun 22 10:28:28 hello, I am about to get an cheap chinese tablet for dev. Jun 22 10:28:39 does someone know if I can easily get it running without drivers? Jun 22 10:31:36 ok, btw: i know why we got that Out of memory error Jun 22 10:31:47 in the end it was related to a bitmap though it crashed somewhere else :D Jun 22 10:32:11 if you use BitmapFactory.Options.inJustDEcodeBounds or what it's called Jun 22 10:32:30 then the resulting image sizes are written to outWidth and outheight and not the rect that you pass in Jun 22 10:42:12 nass Jun 22 10:42:13 hi Jun 22 10:42:25 Hey all Jun 22 10:42:31 kill -10 doesn't work, how can i dump the heap? Jun 22 10:42:38 of specific proces Jun 22 10:43:02 sha0coder: connnect with ddms, there's an option for that Jun 22 10:43:12 there's also gdb-server binary Jun 22 10:43:37 gdb-server ? Jun 22 10:44:07 ddms doesn't list processes :/ Jun 22 10:45:10 sha0coder: are you trying to dump heap of non-android process? Jun 22 10:45:57 p_l, no, is a dalvik app Jun 22 10:46:03 p_l is a normal app Jun 22 10:47:07 anyone know how i can make mediaplayer cache data? Jun 22 10:47:07 Is there a way to have my app delete all of it's existing Shared Preferences on a version update? Jun 22 10:47:53 p_l does exist any tool for dump heap? in hprof format? Jun 22 10:47:58 i coded a tool with ptrace() Jun 22 10:48:01 but is not hprof format Jun 22 10:48:16 sha0coder: ddms does it, but something is borked if it doesn't list the process Jun 22 10:48:35 i will download again the sot Jun 22 10:48:36 soft Jun 22 10:49:46 sha0coder: you might need to a) check configuration b) root the phone and run adb server (the part on the phone) in root mode Jun 22 10:54:12 p_l is in root mode Jun 22 10:54:26 configuration? Jun 22 11:14:24 hello Jun 22 11:14:34 would I have trouble getting adb to work with a chinese unknown tablet? Jun 22 11:14:37 no drivers available Jun 22 11:23:01 mi6_x3m: try it, and if it works it works… otherwise do you really need to support Chinese unknown tablets? :) Jun 22 11:49:17 jcromartie: no but i want to dev on one Jun 22 12:05:50 are there any other profilers than traceview? Jun 22 12:06:20 it's very limiting Jun 22 12:07:21 looks like it's sampling which is fine, but the data presentation isn't very handy Jun 22 12:21:18 Hi all! Jun 22 12:22:49 I have a camera app, but I think I don't release the Camera correctly with onPause. I used some example code, but every now and then it crashes and the default android camera app even fails starting up if I try that one as a test Jun 22 12:24:58 hello Jun 22 12:25:03 So I actually managed to break the camera service Jun 22 12:27:59 i need my application to get login credentials from user and storing them in preferences, in order to not ask again them in future openings. so the matter is that i have this activity, that checks preferences and if some fields don't exist launches activity to ask credentials (with a startactivityforresult), while goes normally if preferences fields exist. Jun 22 12:28:58 the problem is that in case preferences don-t exist the main activity should stop a moment and wait for results Jun 22 12:29:49 i cannot put the code to be executed in onActivityResult callback, cause in case preferences exist the activity to ask credentials is not launched. Jun 22 12:30:02 any suggestions how i can solve? :) Jun 22 12:33:49 what would need to be done to get the logcat in ADT to behve nice with more than one device? Jun 22 12:36:14 tapas: perhaps.... export ANDROID_SERIAL= Jun 22 12:42:22 meh Jun 22 12:42:36 they have updated the whole dev site Jun 22 12:42:59 then they still use samples with deprecated methods and classes :/ Jun 22 12:43:35 "they" in those cases are two different groups of people :P Jun 22 13:00:51 Is my Proguard trying to package up the svn metadata from my project? Caused by: java.util.zip.ZipException: duplicate entry: .svn/all-wcprops Jun 22 13:01:08 Sure looks like it :P Jun 22 13:01:40 These are hidden folders - how do I tell proguard to ignore it? shouldn't it ignore them anyway - i've had no problems with other projects Jun 22 13:02:19 Not sure, I haven't used svn or proguard in a while. Jun 22 13:10:26 I have the following style: http://pastebin.com/DGxEZjqq and I'm trying to access the attributes like this: http://pastebin.com/BL2RwAkZ but textColorResource always comes up as -1 and I have no idea why. Jun 22 13:13:46 com.android.commands.sendbug.SendBug <- anybody know anything about this? is it possible to write a custom bug-report catching app? Jun 22 13:14:24 (On a Galaxy Nexus when you push VOL UP & VOL DOWN & Power, a stack trace is dumped and it is then passed to gmail / drop box etc etc Jun 22 13:14:35 I want to write my own handler, but I can't seem to find any reference to com.android.commands.sendbug.SendBug :$ Jun 22 13:15:02 * Ge0rG is really wondering, how google wallet is performing nfc tag emulation Jun 22 13:16:40 Ge0rG: my understanding is that it is just 'writing' out data Jun 22 13:18:21 feesh: it needs to behave like a creditcard tag to please POS terminals, but there is no API for that in the SDK Jun 22 13:22:31 I'm trying to add a search for the data present in some ListActivity using the SearchView that is in the ActionBar and my app crashes because the search query is not present in the Intent. I think this is so because the searchable activity is the same with the activity that displays initiality the data. I use the same activity for displaying data and for search is this ok? ComponentName cn = new ComponentName(this, MyActivity_.class); Jun 22 13:23:00 this is the same as MyActivity Jun 22 13:23:40 because I want the user to see first all the data and then when he presses the search in the action bar he can input some search query and then the results are displayed in the same MyActivity Jun 22 13:27:16 Here is the code in onCreateOptionsMenu() method: SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE); ComponentName cn = new ComponentName(this, MyActivity.class); SearchableInfo info = searchManager.getSearchableInfo(cn); searchView.setSearchableInfo(info); Jun 22 13:33:14 sup Jun 22 13:36:34 Any Gnu tools for android itself? Like Cd,make etc Jun 22 13:37:45 you can get busybox. You could crosscompile a toolchain, it wouldn't be pretty. Pretty sure it's been done tho. Jun 22 13:38:33 i am looking to do some android development Jun 22 13:39:24 On Jun 22 13:39:33 On the phone itself Jun 22 13:40:00 what's the point? Jun 22 13:40:01 :) Jun 22 13:40:02 There are various circumstances why i can't do it on Pc right noe Jun 22 13:40:08 now* Jun 22 13:40:35 I can imagine writing down ideas for features or fixes but coding... not on my Samsung Gio at least... Jun 22 13:41:08 I bet eclipse would run wonderfully ;) Jun 22 13:41:25 Hi, has anyone noticed that Eclipse will randomly decide that @overrides are errors and should be removed - even when they're not errors?! Jun 22 13:41:27 More like native code Jun 22 13:41:39 I am not really interested in Java Jun 22 13:42:35 Except perhaps for a GUI perhaps Jun 22 13:42:45 Damn...double perhaps Jun 22 13:43:23 diki: there are some howtos to install a full-fledged linux distro on the SD card on rooted phones Jun 22 13:43:39 diki: what about http://code.google.com/p/android-scripting/ ? Jun 22 13:43:57 there's also an ide that runs on android decives Jun 22 13:44:13 https://play.google.com/store/apps/details?id=com.aide.ui&hl=en Jun 22 13:44:56 it's nice because when you code punctuations and other hard to reach symbols are not that important I heard Jun 22 13:45:02 there is also https://play.google.com/store/apps/details?id=com.spartacusrex.spartacuside Jun 22 13:47:24 This is bizzare - have 2 projects in eclipse - the exact same class appears in both. In one project there's no errors, in the other it complains that a function must override a superclass method (which it is). Bug report time I guess :-) Jun 22 13:48:23 I'd first check build classpath and stuff like that ;) Jun 22 13:48:48 and other trivial cases (like typo) Jun 22 13:49:36 mitch0: Yes, I've checked for typos, but the whole class was cut'n'pasted from the other project (I'll be modifying it later) so at the moment it's the same code... hmm... Jun 22 13:50:39 did you modify the package line? Jun 22 13:51:13 Hi all, I'm trying to scale a bitmap using: bitmap = Bitmap.createScaledBitmap(bitmap, width, height, true) | and the result seems to be returning -1 for the width and height Jun 22 13:51:28 Ge0rG: can't Jun 22 13:51:38 can I not assign to the same bitmap I"m modifying? Jun 22 13:51:39 It probably requires ne y Jun 22 13:51:43 mitch0: Ah, found it - for some reason the new project is using Java 1.5, and the old one (and every other one I've written) uses 1.6 Jun 22 13:51:52 Me to download a huge Linux os Jun 22 13:52:00 My 3g is slow Jun 22 13:52:25 mitch0: That's pretty weird, as the IDE is using 1.6, so that should be the default really. Meh ;-) Jun 22 13:53:01 Smashcat: welcome to eclipse Jun 22 13:53:25 where shit makes no sense, and sometimes you have to delete your errors before your code compiles Jun 22 13:53:35 hey Smashcat, did you figure out enableForegroundDispatch() for nfc yesterday? Jun 22 13:53:39 feesh: heh, yeah - I'd love £10 for every time I've had to remove the R.class frmo the import list... Jun 22 13:54:00 you'd have many tens I'm sure Jun 22 13:54:05 disable static imports? Jun 22 13:54:10 diki: connectbot to ssh into a vps with the sdk, then Jun 22 13:54:37 Ge0rG: also not possible Jun 22 13:54:42 Ge0rG: No, in the end I just check to see how the app is launched (manually or via a tag read) and start another activity. Jun 22 13:54:47 Vps means money Jun 22 13:54:57 now all I need is to obtain com.android.nfc.permission.NFCEE_ADMIN permission... Jun 22 13:55:11 * feesh hugs Ge0rG Jun 22 13:55:21 feesh: huh? Jun 22 13:58:24 just ... Jun 22 13:58:27 feel sorry for you Jun 22 13:59:16 feesh: yeah. I feel sorry as well. not much else I can do about it, as it seems Jun 22 14:00:23 * Ge0rG wonders how the google engineers can claim with a straight face that they are not allowing access for UX reasons Jun 22 14:02:25 If you want a Loader to be aware of changes to it's data, do you need to write a ContentProvider for that data? Jun 22 14:03:36 I was hoping to just use a SQLiteOpenHelper with a custom Loader that didn't need a URI, but I'm not sure how to make it aware of changes to the data Jun 22 14:03:58 without that URI Jun 22 14:06:46 Rich787: you could fire a private broadcast whenever your data changes... Jun 22 14:07:09 however, that does not scale very well Jun 22 14:12:59 Can anyone with a Galaxy S3 help me test my live wallpaper? Jun 22 14:15:47 Rich787: just make up a URI? Jun 22 14:34:16 evancharlton: Sorry, disconnected for a sec. Can you make a URI up like that? I'm not very familiar with how the URI stuff works :/ That's part of the reason why I avoided making a content provider to begin with hehe Jun 22 14:34:54 Rich787: sure, just make up whatever scheme makes sense for you. content://com.rich787.app/custom/my.data/record/5 Jun 22 14:35:23 oh alright. I guess it's simpler than I thought. :/ Jun 22 14:42:19 It looks like there is definitely a bug in the Android Browser/WebView/webchromeclient. Jun 22 14:42:53 When a webview is playing a video, and moves to a different page, the video loads again and plays in the background of the second page. Jun 22 14:43:45 The second page has no video element at all, and yet the webchromeclient still picks up the video stream from the last page and plays in the background. Jun 22 14:44:22 If the page it is going to has a video element, the webchromeclient will not play the last video, but will play the correct video. Jun 22 14:44:37 So this only happens if we are going to a page without a video tag. Jun 22 15:10:04 xat is boss.... Jun 22 15:12:03 Aye, ctate you busy? Jun 22 15:12:57 Anybody who has developed a app before here? Like anybody here who isn't afk? Jun 22 15:13:19 meh. android wifi is a pita sometimes. AP kicks androit at 15:13, the device reassociates at 17:03 Jun 22 15:13:36 (after I turn on the screen) Jun 22 15:13:36 Dangit: I think most of the people here have developed an app... if you've got a question, ask it Jun 22 15:14:39 lol, I didn't see anybody talking that's why I ask. Jun 22 15:14:56 "Ask your question, don't ask to ask" - it's right there in the topic Jun 22 15:15:00 Ge0rG: one issue I've encountered on multiple devices is the switch from wifi to mobile taking several minutes. Jun 22 15:15:24 HDroid: minutes is ok, but the device was offline for several hours Jun 22 15:15:27 In the meantime it will simply have no mobile network... happens quite often when I walk out the house and decide to look something up when I'm a few minutes out. Jun 22 15:15:36 how is one supposed to implement a jabber client under such conditions? Jun 22 15:15:43 Ge0rG: oh that's quite nasty Jun 22 15:16:00 happens every some days.. I thought it was a bug in my app, but it isnt Jun 22 15:16:07 must be a bug in cm7 Jun 22 15:16:27 argh Jun 22 15:16:45 if nothing has a wifi lock it will disconnect Jun 22 15:16:47 I was wondering If I want to add a couple multiple choice questions too my app, would it go in XML or Java. I wasn't sure how to put it in either... Jun 22 15:17:46 Dangit: the texts should definitely go in XML... but the logic belongs in Java.. unless you're using some sort of questionnaire framework. Jun 22 15:17:50 wongk: it may do so if it switches to mobile Jun 22 15:17:59 wongk: however, the device does not notice being disconnected Jun 22 15:18:10 wow, um, vague question? Jun 22 15:18:13 also, I have set wifi to be permanently enabled Jun 22 15:18:20 Yes, vague question :) Jun 22 15:19:02 ah, then the does sound like a platform issue Jun 22 15:19:29 sounds like a #cyanogenmod question Jun 22 15:20:03 so I'd show the text. in xml, add a id to them, then in java i would if statements to show the "correct Jun 22 15:20:07 "Correc" or Wrong" Jun 22 15:20:11 Leeds: indeed, but my experience with asking technical questions on #cyanogenmod was rather mixed. anyway, I was just complaining, not asking for a fix Jun 22 15:20:12 Dangit: seriously... random vague question without context? Jun 22 15:20:50 Have any of you used mini-itx for testing purpose ? Jun 22 15:21:11 bsilwal: for testing Android apps??? Jun 22 15:21:20 yes just wondering Jun 22 15:21:21 * Leeds wonders if this week has gone into silly time Jun 22 15:21:38 you wonder if anyone has used a PC form factor for testing Android apps? Jun 22 15:21:40 Oh wow, google broke ALL developer.android.com links in google. You'd figure they know enough about SEO to 301 them. Jun 22 15:22:05 that's pretty awesome Jun 22 15:22:12 HDroid: the reference stuff still works, AFAICS Jun 22 15:22:38 i know it sounds silly, but it would be more funny if anyone is using android emulator in android pc Jun 22 15:22:42 I was looking for the Form Stuff tutorial. Jun 22 15:23:25 Leeds: lol good one Jun 22 15:23:33 Android x86 is quite iffy, still, I'd sooner use one of those $50 Chinese "smart tv" boxes, they're mostly ARM-based. Jun 22 15:23:34 er... it would be more funny if anyone is using one of the standard development tools than a PC form factor? Jun 22 15:23:37 AFA ICS Jun 22 15:23:47 weird... Jun 22 15:24:23 HDroid: the ones that are used to break aha? Jun 22 15:24:42 Sha* Jun 22 15:24:58 Heh possibly, haven't heard about that. Jun 22 15:25:08 huh? Jun 22 15:26:00 Every Tv in China is basically a bruteforce capable device Jun 22 15:26:23 Or so i read Jun 22 15:26:51 for breaking western dvb-s encryption? Jun 22 15:26:58 Dangit: it's a bit more complicated than that... but still it's basic stuff. Layouts go in XML, texts go in XML, they're connected by Java code. Jun 22 15:27:40 is there a part in Configuration which can be used to keep Landscape apart from Seascape ? Jun 22 15:28:15 I need to store some additional data (sort string) for every contact in the phone. Is this possible? Jun 22 15:28:22 *short string Jun 22 15:29:09 xa0c: if you find a way, let me know please :) Jun 22 15:30:44 well, I have no time for research (as always), If it cant be googled in 10 mins, than I shoud create some kind of local storage, where key id contact ID and value is my value. But I'm not sure what happend when some contact will be removed. Jun 22 15:31:05 *key id = key is Jun 22 15:31:21 Usually when you want to do something and there is no way...then you are probably doing it wrong Jun 22 15:31:29 xa0c: local storage is probably the way to go; contact removal should be possible to detect; reset of all contacts would freak up your db though Jun 22 15:31:56 diki: well. may be there is a way. that is why I'm asking first :) Jun 22 15:31:56 diki: you must be really experienced with this kind of things Jun 22 15:32:29 Ge0rG: it comes with trial and error Jun 22 15:32:56 diki: for you it is trial and error, for others it is trial and success :P Jun 22 15:33:26 for me: trial, trial, trial... :) Jun 22 15:33:51 * Ge0rG needs to extend the call log with additional information that is to be shown in the log. now _that_ is complicated Jun 22 15:34:04 Right about now i have two applications for Pc that didn't fail Jun 22 15:34:18 One is called TempSecure Jun 22 15:35:23 It was written using AMD's ADL library Jun 22 15:36:38 It monitors my yous for overheating and since it was written with an API in mind it isn't like the other available programs Jun 22 15:36:47 Ge0rG: looks like that is the answer for me: http://stackoverflow.com/questions/1954650/how-to-add-custom-data-field-in-contacts-in-android-2-0 Jun 22 15:36:52 My GPUs Jun 22 15:36:52 will try it later Jun 22 15:37:11 miner? ;) Jun 22 15:37:21 Hegel Jun 22 15:37:30 Hehe Jun 22 15:37:31 Yes Jun 22 15:38:44 I sold my farm a couple of month ago. Because it's summer. And it's hot. Jun 22 15:38:58 Hello people. Jun 22 15:39:03 Where is a nice place to find Android developers for a full-time position in Palo Alto? Jun 22 15:39:55 xa0c: price is not what it used to be Jun 22 15:40:01 mentel: not here Jun 22 15:40:32 I remember when i found 2 blocks in a week with my 5850 and price was 30 Uss Jun 22 15:40:46 Usd * Jun 22 15:41:27 Well. Looks like I'm just not ready to live in sauna. Jun 22 15:41:41 wongk: Yes, I know. I was looking for a website to post the offer. Jun 22 15:41:54 There was one night i woke up from the intense heat Jun 22 15:42:02 I was not feeling good Jun 22 15:42:14 I quickly jumped in the cold shower Jun 22 15:42:32 mentel: monster, career builder, indeed, stack overflow, glassdoor, off topic Jun 22 15:42:56 wongk: thanks. Jun 22 15:43:52 I just stick with litecoins for now Jun 22 15:43:52 mentel: craigslist Jun 22 15:44:30 Ologn: good. Haven't thought of them. Thanks! Jun 22 15:45:39 xa0c: diki: what in the world are you two talking about Jun 22 15:46:03 disconnected Jun 22 15:46:09 Bitcoin Jun 22 15:46:32 Can't believe you've never heard of it Jun 22 15:47:47 Two questions: If I was making more than one multiple choice question, would each need a seperate activity or can I just use if statements in java? Jun 22 15:48:16 Dangit: You can probably use one Activity Jun 22 15:50:56 I've got a little problem with copying files in Android. Code looks something like this: http://pastebin.com/3jH2hic2 Jun 22 15:51:05 It works perfectly well in Android 2.x Jun 22 15:51:55 but in 4.x I get IOExceptions: "EBUSY (Device or resource busy)" Jun 22 15:52:03 anyone got an idea how to fix this? Jun 22 15:52:27 (it's the same on both emulator and device btw.) Jun 22 15:53:27 ptreitler: surely that depends on what the files are? Jun 22 15:55:03 Leeds: The files are small image files Jun 22 15:55:35 and where are they? Jun 22 15:55:46 on the SD card Jun 22 15:55:58 do you have permission to write to the SD card? Jun 22 15:56:14 yes Jun 22 15:56:35 As I said, it works on Android 2.x, but not on 4.x Jun 22 15:57:55 so you're copying from the SD card to the SD card? Jun 22 15:58:07 yes Jun 22 15:59:03 and presumably you're using getExternalFOO to find the right directory, and to check that it's available? Jun 22 15:59:32 I have installed app which has just one service on my phone. In its onCreate method I have added log statements. I do not see any output in logcat from those statements. how do I verify that my service is launched ? Jun 22 16:00:20 If I implement Holo theme into my app will it implemented even to android version before 3.0? Because I know 3.0 is when google first implemented the holographic theme? orry for all the noobish question... Jun 22 16:00:35 ptreitler: as per http://developer.android.com/guide/topics/data/data-storage.html#filesExternal Jun 22 16:01:48 Leeds: Yes, I checked that Jun 22 16:02:07 Only on app startup though, not right before copying Jun 22 16:04:03 Dangit: No, the Holo theme does not exist on pre-honeycomb devices. Jun 22 16:05:58 Aah... Jun 22 16:06:53 Hello, I'm trying to resize a LinearLayout which contains LinearLayouts which contain Fragments. I want to make the Fragments disappear or appear. Jun 22 16:07:21 Im stuck on LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(30, 30); Jun 22 16:07:21 findViewById(R.id.detail_linear_layout).setLayoutParams(params); Jun 22 16:08:52 getting some 06-09 10:08:16.384: E/AndroidRuntime(936): java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams Jun 22 16:14:34 The layoutparams has to be the one defined in the parent viewgroup Jun 22 16:14:41 outsmartin: ((LinearLayout) findViewById(..)).setLayoutParams(..) Jun 22 16:14:49 and/or move to ViewGroup.LayoutParams Jun 22 16:15:42 What's the best way to connect an android app to a remote sql server? Jun 22 16:15:59 http? Jun 22 16:17:59 stoicmania, i'd set up a web service and make http requests to it Jun 22 16:20:24 shlumph, up until now I've been doing http requests and using PHP to send JSON data back; is there a better way of doing it? Jun 22 16:21:38 Whats the best way to make my app layout ajust to differente screen sizes and portrait/landscape in Android 2.2? For landscape i'm using layout-land, but how to ajust to the screen size? Jun 22 16:21:57 Uh, match_parent? Jun 22 16:22:33 Or do you mean layout-small, -normal, -large, etc? Jun 22 16:22:51 i'm not a professional android developer, but that's exactly what i've done. then i just parse the JSON with stuff from org.json.* Jun 22 16:23:29 stoicmania, the great thing about setting up the web service is that your other applications besides android can access it as well Jun 22 16:23:57 SimonVT, yes, small and large. The app is for two different Tablets, 7'' and 10''. Jun 22 16:24:11 That's probably large and xlarge Jun 22 16:24:14 Yeah, the way I'm doing it I need to be able to put things from my app into a database and then be able to modify it from the web later Jun 22 16:24:22 ...and then view it in a different app, haha Jun 22 16:24:41 I really do not understand why UITextField dosn't have properties for the insets Jun 22 16:24:48 Look it up on the dev page in which order the qualifiers are supposed to be Jun 22 16:24:55 i'd say that that works out perfectly then Jun 22 16:25:52 can one see if can answer the question I have here http://stackoverflow.com/questions/11154213/android-getlaskknownlocation-null#comment14625873_11154213 Jun 22 16:26:06 shlumph: really? why? Jun 22 16:26:10 its about locationlistener Jun 22 16:27:48 SimonVT, i'll take a look. Thaks Jun 22 16:27:52 Thanks* Jun 22 16:28:16 rasmusth, i was addressing using a web service to access a remote DB from different kinds of apps Jun 22 16:29:32 arh Jun 22 16:29:51 yeh, I mean why shouldnt that work well Jun 22 16:31:30 there aren't any cool themes I can use for 2.2 && below Jun 22 16:31:31 ? Jun 22 16:32:42 evancharlton: still get the same exception, when i use FrameLayout.LayoutParams it works but i cant use params.weight = then Jun 22 16:32:51 i dont understand this Jun 22 16:33:05 06-09 10:38:46.614: E/AndroidRuntime(1030): at android.widget.FrameLayout.onLayout(FrameLayout.java:288) Jun 22 16:33:06 06-09 10:38:46.614: E/AndroidRuntime(1030): java.lang.ClassCastException: android.widget.LinearLayout$LayoutParams Jun 22 16:33:27 where ist the FrameLayout coming from Jun 22 16:33:40 does the FileObserver work with root? Jun 22 16:35:13 outsmartin: layoutparams tells the PARENT of the view how to layout the view Jun 22 16:35:21 So your linearlayouts parent is a framelayout Jun 22 16:35:30 Framelayouts don't have weight Jun 22 16:36:15 how could i change the weight then? Jun 22 16:36:40 Depends what weight you're trying to change Jun 22 16:36:49 The one you're setting layoutparams on definitely don't have a weight Jun 22 16:37:43 Its child views might have Jun 22 16:37:52 But then you should be setting layoutparams on those Jun 22 16:37:56 detail_linear_layout is the id of the LinearLayout i want to change Jun 22 16:38:33 Well, its parent is a framelayout. it doesn't have a weight. Jun 22 16:39:56 in my main.xml there is a LinearLayout which contains the fragment Jun 22 16:51:47 is there a website that houses android ui components that do not come with the sdk? Jun 22 16:52:22 so i'm trying to write a chat feature into an app that will allow users to chat with scrap yard owners with questions. we will set up each yard with a server to host their chat server most likely, unless it isn't needed. i'm trying to decide on which technology to use for this. i considered xmpp but it doesn't seem suited for this. Jun 22 16:52:26 snooplsm_: github :P Jun 22 16:53:14 wongk: an index of these things Jun 22 16:53:32 snooplsm_: google :P Jun 22 16:53:44 wongk++ Jun 22 16:53:47 two in a row! Jun 22 16:53:51 /ignore wongk Jun 22 16:53:55 * wongk score Jun 22 16:54:17 an index crafted by humans and doesnt have a google + button Jun 22 16:54:38 bing? Jun 22 16:54:48 lol Jun 22 16:57:18 LiveChat? :) Jun 22 16:57:30 snooplsm_: what are you looking for? Jun 22 16:58:34 looking for a hub (that isn't github) that provides an index (not google) of the custom components people have made with photos of them in operation (not bing). Jun 22 16:58:42 I suppose I may write my own. Jun 22 16:59:27 or at least index the ones i have found Jun 22 16:59:36 snooplsm_: ah ok.. i thought yuo were looking for some specific widget Jun 22 17:00:38 snooplsm_: that would be a cool site, there isn't one now Jun 22 17:02:49 Ok, I'm about to rage quit. I am having a hard time understanding how runnables and threads work, and how they work with the android UI. I have a button that starts tracking me via GPS. I want this to happen until I press the button again. Can someone PLEASE help me out here? Code: http://pastebin.com/nBCQqTii Jun 22 17:04:25 ninjai: an asynctask is not really suitable for this Jun 22 17:04:46 since there's no clear defined task here Jun 22 17:05:23 ninjai: asynctask is more of a convenience class for the 'do this in the background and notify me once you're done' pattern Jun 22 17:05:41 well that makes sense then, why i cant get it to work Jun 22 17:05:53 what should I be doing instead? Jun 22 17:05:54 What are you trying to do Jun 22 17:06:11 when you click the button register a listener Jun 22 17:06:12 SimonVT, I want a text view to be updated with text every 10 seconds or so Jun 22 17:06:18 this could be your activity for example Jun 22 17:06:26 Hi, what might prevent my module from being included in a build of Android? Jun 22 17:06:26 Ok, so Jun 22 17:06:28 there is a listener on it Jun 22 17:06:33 Don't touch the ui from doInBackground Jun 22 17:06:52 ninjai: erm, what I'd do is create a subclass of thread Jun 22 17:06:53 ok Jun 22 17:06:54 the interface for the listener defines a functin when a new reading comes in Jun 22 17:07:11 in that function do runOnUiThread(new Runnable() { ...}) Jun 22 17:07:16 which updates the UI thread.. Jun 22 17:07:20 if that is even nessecary Jun 22 17:07:22 why do you need a thread for this purpose? Jun 22 17:07:34 i don't remember whether the location update function is called in the UI thread already Jun 22 17:07:35 is there some blocking operation going on? Jun 22 17:07:38 I don't know, that's just what I have found out from googling :S Jun 22 17:07:43 wongk: I don't know Jun 22 17:07:52 I'm assuming there is since he's talking about threads :) Jun 22 17:07:56 ninjai: i'll hack up a mininmal example for you :D Jun 22 17:08:01 [bored] Jun 22 17:08:14 View.postDelayed or Handler.postDelyaed Jun 22 17:08:17 thank tapas :). maybe I'm diving into things that aren't needed, I don't know Jun 22 17:08:22 but if you're just querying a locationprovider Jun 22 17:08:32 then idd, you shouldn't need to do this at all Jun 22 17:08:47 maybe read this first: http://developer.android.com/guide/topics/location/strategies.html Jun 22 17:08:52 MDijkstra, how would I go about querying it on a periodic basis then Jun 22 17:09:12 yu don't Jun 22 17:09:23 the location provider will call your callback Jun 22 17:09:32 the users will be able to choose which scrap yard to connect to and i need the chat log to show up for the room when the user enters. Jun 22 17:09:34 you can influence the frequency somewhat.. Jun 22 17:09:49 anybody anybody. Jun 22 17:10:32 gah. Jun 22 17:10:35 so i'm trying to write a chat feature into an app that will allow users to chat with scrap yard owners with questions. we will set up each yard with a server to host their chat server most likely, unless it isn't needed. i'm trying to decide on which technology to use for this. i considered xmpp but it doesn't seem suited for this. Jun 22 17:11:02 moonlightcheese: sounds like the backend doesn't really matter Jun 22 17:11:22 it could just append to a text file on the backend, as long as it worked Jun 22 17:11:33 i love a good backend Jun 22 17:11:37 that sounds like something my boss would write... Jun 22 17:11:47 for O(1000) clients, I doubt it matters much. Jun 22 17:12:03 but XMPP seems reasonable if you don't want to reinvent any wheels Jun 22 17:12:27 probably not, but i'd like the experience of using an existing technology, and yes, avoid inventing wheels. Jun 22 17:12:48 especially rock wheels with jagged edges. Jun 22 17:13:34 tapas, if I can make it update when the location provider finds a new location that's even better. I didn't know I could do that. My location provider is in a separate class than the activity Jun 22 17:19:40 Why is the app busybox so popular? Jun 22 17:20:17 it provides the core unix tools in a tiny package Jun 22 17:20:24 Because it gives you access to many more unix tools th... ^ Jun 22 17:20:37 So...only devs use android? Jun 22 17:20:41 ninjai: http://pastesite.com/38526 Jun 22 17:20:44 minimal example Jun 22 17:20:49 What? Jun 22 17:21:18 Well the majority of Unix useslrs are developers Jun 22 17:21:25 Users* Jun 22 17:21:29 hah Jun 22 17:21:42 And the app busybox has a million downloads Jun 22 17:21:46 Busybox being popular != All users are developers Jun 22 17:21:47 Or more Jun 22 17:21:57 i'm going to have to dispute your research on that one Jun 22 17:22:01 thanks tapas, but how can I do this if my location listener is in another class in which my view creates? Jun 22 17:22:11 So why then? Jun 22 17:22:17 ... Jun 22 17:22:27 What does busybox do for them that they cant with other apps? Jun 22 17:22:40 ninjai: put it into a service and use notifications? Jun 22 17:22:55 ninjai: erm, broadcasts Jun 22 17:23:06 tapas, my location listener class is a service, which my activity creates Jun 22 17:23:21 chained callbacks Jun 22 17:23:40 ok Jun 22 17:26:43 I have a rom (eng build) where superuser does not work. The error message in logcat is "EPIPE Broken pipe". Does anyone know, why? Jun 22 17:27:02 #android-root Jun 22 17:27:15 thanks! Jun 22 17:35:32 I wanted to implement multiple choice questions into my app, should I make a java class for both the question and the answer or would one java file do? Jun 22 17:36:51 Dangit: it depends on how much modeling you want to do, I suppose. Jun 22 17:37:11 i think you can do one then just load the other xml within the java file Jun 22 17:37:42 Dangit, do you know the difference between a class and an instance? Jun 22 17:38:00 yeah Jun 22 17:39:06 What up? Jun 22 17:39:29 chillin, dawg Jun 22 17:39:33 word to your mother Jun 22 17:39:39 Yeah someone in here Jun 22 17:40:11 #android is dead even though it says there's peeps Jun 22 17:40:38 too many just lurk Jun 22 17:41:33 lol Jun 22 17:41:47 Yep. Don't know why in some of these channels, not like anything good drops here Jun 22 17:42:31 So what u guys do as far as android goes. Jun 22 17:42:41 i think people may worry about talking or asking questions because they think its too simple and stuff Jun 22 17:43:06 lol i'm learning atm just made my first mini app which is just a counter but its all fun :) Jun 22 17:43:20 Nah, as long as its not asked over and over Jun 22 17:44:32 Cool. Learning too. But haven't messed with apps yet. Mostly roms kernels and building from source. Jun 22 17:44:55 Have successfully synced and built about 5 times Jun 22 17:44:59 i would have thought after that doing some java would come easy to you Jun 22 17:45:44 Google Play - Web Search finds my applications just fine. However, on the device I can search for them. What determines what I can search on? Jun 22 17:45:55 s/can/can't/ Jun 22 17:46:06 building is different from writing code Jun 22 17:46:16 litewait, device compatibility, region, carrier Jun 22 17:46:32 lovely Jun 22 17:46:38 Ok, this is confusing :/ Jun 22 17:46:57 Well just getting started. Actually learning java when I can. But yeah, haven't messed with the code much, just all the other stuff and bug reporting Jun 22 17:48:00 yeh its all good fun i'm just trying to take it slowly because last time i just went too fast and just didn't actually remember anything i had learnt Jun 22 17:48:42 Yeah reminds me of my high school calculus class. Lol Jun 22 17:49:41 yeh well i'm uk and currently sitting my a levels and taken further maths and some of the stuff you really do have to sit down and learn 3 times Jun 22 17:50:27 i'm doing stuff for university too deadline is in 4h Jun 22 17:50:48 Agreed Jun 22 17:50:58 lol that reminds me i have a 2000 word essay on internal combustion in for the 4th too :( Jun 22 17:52:27 So what did u make ur first app with? Jun 22 17:52:53 what do you mean? Jun 22 17:54:10 Well what ide did u use? Or what steps did u take to get there? Jun 22 17:54:45 using eclipse, and i followed thenewboston tutorials on youtube they were just amazing Jun 22 17:55:00 anyways sorry guys i gotta make a move got RL to worry about :( Jun 22 17:55:01 Cool Jun 22 17:55:23 Newboston tutorials? Jun 22 17:55:28 Gotta link? Jun 22 17:55:57 does anyone know the dp sizing for a status bar notification icon in android 2.2-? Jun 22 17:55:59 http://developer.android.com/guide/practices/ui_guidelines/icon_design_status_bar.html#icon1 Jun 22 17:56:05 this just says 25x25 px but that doesn't help... Jun 22 17:56:09 says to make it at 25x25 px Jun 22 17:56:16 is it the same as the 2.3 guidelines or the 4.0 guidelines maybe? Jun 22 17:56:25 i feel like it would be _closest_ to 2.3, but those aren't square dimens Jun 22 17:56:56 Rockmaninoff: doesn't answer your question directly, but you may find this useful: http://code.google.com/p/android-ui-utils/ Jun 22 17:57:03 especially the android asset studio Jun 22 17:58:00 Rockmaninoff: That page explains it quite well Jun 22 17:58:53 thanks guys Jun 22 17:59:19 that's a pretty awesome little tool. Jun 22 17:59:50 it really is Jun 22 17:59:53 especially for solo devs Jun 22 18:03:09 how can i execute a C/C++ executable from a Java Android application? Jun 22 18:03:50 Later guys gonna check that out Jun 22 18:04:11 There's a NDK available which allows you to write native code. Jun 22 18:04:31 You can create a library and call code from your Java app Jun 22 18:04:42 jfrantz: http://developer.android.com/reference/java/lang/Process.html Jun 22 18:05:33 BoxyK: is building a process that way the same as using Runtime.getRuntime().exec() ? I have tried that way and it didn't seem to be working. Jun 22 18:06:25 BoxyK: also, if I start a process from within my application, will it show up if I do a "ps" from the adb shell Jun 22 18:07:59 jfrantz: I am also not an expert in NDK development.. Jun 22 18:08:15 regarding the ps command, I guess so Jun 22 18:10:04 I guess you see something like com.[developer].[appname] (i.e. the package name) Jun 22 18:13:43 possible quad-core HTC phone in the works Jun 22 18:13:52 jfrantz: maybe you want to read this: http://developer.android.com/tools/sdk/ndk/index.html Jun 22 18:13:52 that's a lot of cores for a phone :P Jun 22 18:14:30 isn't the SGS3 quad-core? Jun 22 18:14:49 BoxyK: yeah, I have already cross compiled the executable for android using the NDK's toolchain fairly extensively, it's now trying to start the executable from an android app that's giving me trouble Jun 22 18:15:00 is it> Jun 22 18:15:02 ? Jun 22 18:15:31 Dual core 1.5GHz processor & 2GB of RAM Jun 22 18:15:34 at least on big red Jun 22 18:15:37 oh, ok... then you're an expert then ;-) Jun 22 18:15:55 then then. Jun 22 18:16:18 sry Jun 22 18:16:31 you better be. Jun 22 18:16:56 jfrantz: did you not find my link useful? Jun 22 18:21:11 hello, can someone explain how to automate the testing of a certain procedure in my blackjack app? Jun 22 18:21:35 basically i want 4 buttons to press themselves until a certain condition (card combination) is met Jun 22 18:21:35 the buttons are: 5$ bet button, deal button, stand button, play again button Jun 22 18:21:35 the combination is: blackjack for players, first card ace for dealer Jun 22 18:21:35 at that point the player is asked if he wants insurance Jun 22 18:21:35 that's when i want the testing to stop Jun 22 18:21:36 is this possible? Jun 22 18:21:36 if yes how to do it? Jun 22 18:21:48 jfrantz: put it in your resources, copy it to your application directory during boot. Beware, Process.exec isn't known for being stable on android Jun 22 18:22:35 jfrantz: which if I recall is due to the vm doing some other stuff after it initiates the fork which has a chance of crapping its pants. you can get around it by writing your own native wrapper to do fork/exec and mess with file descriptors Jun 22 18:23:04 jfrantz: better is if you can run your code as a library and map it with JNI directly. If you're porting existing code and can't/won't make changes, that may be more trouble than its worth. Jun 22 18:25:22 hey dragorn :) Jun 22 18:30:02 I installed busybox Jun 22 18:30:09 But beats me where the terminal ia Jun 22 18:30:14 is* Jun 22 18:32:32 wongk: thanks for your link but the problem is that simply running it as a process, assuming it was already on the device (and that i knew its location) wasn't working Jun 22 18:33:19 jfrantz: do you have any more information about the problem? Jun 22 18:33:57 dragorn: it's a binary that i just want to run Jun 22 18:35:17 Recommend me a terminal Jun 22 18:35:28 terminal Jun 22 18:35:46 sorry, "terminal emulator" Jun 22 18:36:14 urxvt Jun 22 18:38:32 for what? Jun 22 18:38:36 android? connectbot Jun 22 18:39:04 Wait, ConnectBot can be a terminal emulator? Jun 22 18:39:14 sure, tell it to connect to local Jun 22 18:39:16 you get a shell Jun 22 18:39:21 in a terminal Jun 22 18:39:30 Interesting. I'd never done that. Jun 22 18:39:36 wongkK: i have a button that calls runtime.exec() on the binary, which i have pushed to a specific location using adb. when i press the button, nothing happens and no process shows up when i do "ps" from the adb shell Jun 22 18:40:04 wongk: exceptions are thrown either though Jun 22 18:40:54 did you try using the Process class? Jun 22 18:41:15 I'm trying to make a context menu on a listactivity's listview but because of focus problems my custom list item row doesn't capture long click's and the context menu fails to appear. See list row: http://pastebin.com/4r5BepDb I'ved tried to use android:focusable="false" but without success, also tried android:descendantFocusability="blocksDescendants", same problem... any ideas on what is going on here and how can I make the context menu appear ? Jun 22 18:42:30 basically i want 4 buttons to press themselves until a certain condition (card combination) is met Jun 22 18:42:30 the buttons are: 5$ bet button, deal button, stand button, play again button Jun 22 18:42:30 the combination is: blackjack for players, first card ace for dealer Jun 22 18:42:30 at that point the player is asked if he wants insurance Jun 22 18:42:31 that's when i want the testing to stop Jun 22 18:42:31 is this possible? Jun 22 18:42:31 if yes how to do it? Jun 22 18:42:42 I have registerForContextMenu(getListView()); on onCreate() and the menus look as follows: http://pastebin.com/XzdTss3V Jun 22 18:42:44 can someone explain how to automate the testing of a certain procedure in my blackjack app? Jun 22 18:43:01 i already posted the procedure Jun 22 18:43:23 hi, is it possible for an activty themes as dialog to have the action bar? Jun 22 18:44:18 f2prateek: are you using ActionBarSherlock? Jun 22 18:45:40 Rockmaninoff: no Jun 22 18:45:53 Rockmaninoff: is it possible with ABS? Jun 22 18:45:57 doubtful. Jun 22 18:46:04 well Jun 22 18:46:21 Dialogs don't have actionbars Jun 22 18:46:43 yeah Jun 22 18:46:47 just doesn't really seem like a use case Jun 22 18:46:58 do you want a Dialog-styled Activity? Jun 22 18:47:07 that appears to float and has margins etc. Jun 22 18:47:09 ? Jun 22 18:47:36 Rockmaninoff: yeah, its coz i'm using the dialogwhen large theme for when on tablets, coz making it use the full screen just wastes a lot of space Jun 22 18:47:43 SimonVT: thanks Jun 22 18:48:23 f2prateek: you could probably do something with getWindow() and setting margins Jun 22 18:48:40 s/probably/maybe Jun 22 18:49:03 and maybe there are attributes in styles.xml that you can override to show the action bar Jun 22 18:49:17 what happens when you call getActionBar().show()? Jun 22 18:49:22 Rockmaninoff: so just the regualr devicedefault theme and manipulate the margins? Jun 22 18:49:33 it could work but i don't know Jun 22 18:49:57 it's somewhat common to have an Activity style that has the parent="Dialog" Jun 22 18:50:04 not sure if it's frowned upon or not Jun 22 18:50:23 so using that i wonder if it's possible to override things to show the ActionBar or to somehow call the ActionBar.show() method Jun 22 18:50:24 dunno Jun 22 18:51:10 actionbar.show() just crashes with nullpointerexception Jun 22 18:51:15 Showing your app as a dialog cus it doesn't look good on tablets sounds like a crap solution Jun 22 18:51:20 Should rather just make your app look good Jun 22 18:51:36 oh i totally agree with SimonVT i didn't read that part correctly Jun 22 18:51:39 ==SimonVT Jun 22 18:52:54 i actually got the idea from the stock clock for that, coz thats what it does Jun 22 18:53:51 it really depends on what your app is doing Jun 22 18:54:38 there are legitimate use cases for Theme_Holo_DialogWhenLarge and its relatives Jun 22 18:54:55 setting alarms, or e.g. adding calendar entries, makes sense in a dialog Jun 22 18:55:06 Doing it "cus your app doesn't look good on tablets" doesn't make sense Jun 22 18:55:22 for transitory things that make sense *as dialogs*, but which on small screens work better as full-view activities Jun 22 18:55:40 you might think of it as "fullscreen when small" instead of "dialog when large" :) Jun 22 18:55:43 but thats exactly what the app is doing, setting alarms. what i meant by it doesnt look good on tablets, is that theres is a lot fo wasted space if i theme it as devicedefault Jun 22 18:56:12 f2prateek: that is definitely a sort of use case where the DialogWhenLarge themes are worth a look Jun 22 18:56:40 (instead of just making it a dialog on all devices) Jun 22 18:57:33 Is there 'make' for android? Jun 22 18:57:43 ant Jun 22 18:57:45 sort of Jun 22 18:57:57 ctate: thats why I was using that :). but on tablets(when it is a dialog), it hides the action bar. the only workaround is to show it as three buttons on button of the dialog, but i feel it would be better in the action bar. Jun 22 18:58:03 the SDK provides ant-based building, since that is what integrates best with Eclipse etc Jun 22 18:58:22 the Android platform build itself is make-based, but it a considerable pain to use for SDK-type app development :) Jun 22 18:58:39 For android itself Jun 22 18:58:49 Much like busybox tools Jun 22 18:59:01 f2prateek: hmm. there are variants that do/don't hide the action bar, aren't there? Jun 22 18:59:12 Theme.Holo.DialogWhenLarge vs Theme.Holo.DialogWhenLarge.NoActionBar Jun 22 18:59:59 I'm just using Theme.DeviceDefault.DialogWhenLarge, no action bar is shown Jun 22 19:01:03 so use Holo Jun 22 19:01:25 Also when I say for android then i do mean for the os than windows ask Jun 22 19:01:49 Word prediction fail... Jun 22 19:01:51 diki: do you mean to run *on* an Android device, or to run on a desktop for purpose fo building Android software? Jun 22 19:01:58 diki: if you decide to port it, yes. You'd have to port a complete toolchain however. Jun 22 19:02:22 if you mean running make on a device, then if busybox doesnt supply it, i don't know of anyone else who might Jun 22 19:02:26 and you're on your own re porting Jun 22 19:02:43 there's a few for-pay toolchains in the market Jun 22 19:02:48 haven't bothered looking at them Jun 22 19:03:02 there's also AIDE if you want to do actual android dev, on an android. Not sure I want to, but it's cool I can Jun 22 19:04:10 ctate: obviously for android Jun 22 19:04:16 To run ON android Jun 22 19:04:17 f2prateek: offhand i don't know what's up with the action bar. you might ask JakeWharton if he has any insights; i believe he's played with that stuff a lot Jun 22 19:04:28 catching up Jun 22 19:04:41 diki: not obvious. :) but yeah, what i said: i don't think there is any readily-available 'make' hosted on Android. Jun 22 19:05:08 Interesting Jun 22 19:05:08 JakeWharton: DialogWhenLarge vs the action bar, basically Jun 22 19:05:25 We have gcc and various Gnu utils but no make Jun 22 19:05:32 crazy Jun 22 19:05:55 I think its probably what SimonVT said, actionbar is unavailable for dialogs. i tried android:Theme.Holo.DialogWhenLarge, didnt work either Jun 22 19:06:06 i mean, it's already pretty crazy to run gcc and dex on devices, but wanting to have 'make' isn't any crazier than that :) Jun 22 19:06:26 f2prateek: interesting Jun 22 19:06:28 yeah the dialog/action bar support is odd Jun 22 19:06:40 it's there but it doesn't seem to be used and/or enabled for use Jun 22 19:06:45 it does make one wonder why there's a .NoActionBar variant of the theme Jun 22 19:06:47 if ... right Jun 22 19:07:02 how is robolectric? Jun 22 19:07:07 f2prateek: out of curiosity, what SDK version are you targetting? Jun 22 19:07:11 15 Jun 22 19:07:13 derekv: a useful pain in the ass Jun 22 19:07:19 minimum is 14 Jun 22 19:07:27 JakeWharton, =/ Jun 22 19:08:06 https://gist.github.com/2974555 thats my layout xml, i still dont manage to change the weight of the detailfragment at runtime Jun 22 19:08:59 ctate: thanks for your help, i guess i could use a custom action view to anchor the popup, i just htought there would be an in built item for it Jun 22 19:09:46 looks like ms made some headway into speech recognition using neural networks; a field i dinked with for a while but thought its been long since dead Jun 22 19:11:54 ctate: i think that d.android.com site rendering problem was because i had Roboto condensed on my machine, but not the others :| Jun 22 19:12:33 g00s: ... yeah, if you do that you're gonna have a bad time Jun 22 19:12:48 i think they're still tweaking, too Jun 22 19:17:41 Anyone knows why registerForContextMenu(getListView()) doesn't work for my listactivity that use a custom list row and custom arrayadapter ? Jun 22 19:17:49 *uses Jun 22 19:22:33 evancharlton: https://gist.github.com/2974555 could you take a look? i still didnt figure out how to resize this or change the weight Jun 22 19:24:27 How do you guys propose i build without make? Jun 22 19:24:51 diki: ... build what? Jun 22 19:25:26 Anything Jun 22 19:25:36 Pcfre,libxml2 Jun 22 19:25:41 Pcre * Jun 22 19:25:45 and why would you do that? Jun 22 19:25:46 Vanitygen Jun 22 19:25:52 Why not? Jun 22 19:26:05 because make is the standard, supported by the ndk Jun 22 19:26:32 ctate: so are you going to be on Maps Coordinate soon :P creepy. Jun 22 19:26:51 alankila: for android man Jun 22 19:27:30 * alankila raises another quizzical eyebrow Jun 22 19:27:38 some day questions just don't make any sense Jun 22 19:27:57 android man? Jun 22 19:28:00 Hehe Jun 22 19:28:07 But i mean what i say Jun 22 19:28:11 Pardon my ignorant question, but is there any way to basically set the contentView of an Activity to a fragment, without having to define a layout? If I just have a very simple single fragment UI? Jun 22 19:28:22 NM - figured it out. :) Jun 22 19:28:24 I am going to build directly on Android Jun 22 19:28:31 Chronax: I suppose you can always instantiate some viewgroup manually as the root view Jun 22 19:28:43 not even a ViewGroup Jun 22 19:28:52 any View will do Jun 22 19:28:57 oh right Jun 22 19:30:02 diki: I see. Maybe your questions make some tiny bit of sense after all. Except for the whole idea that you want to build things on android. Mostly just don't have the environment to do the job -- or if you can squeeze in c compiler, and all the headers, then why can't you have make? Jun 22 19:30:38 I guess eventually android might become self-hosting though Jun 22 19:30:54 I'm writing an app to take pictures automatically. I have this problem where it crashes when I try to lock the screen. I want to set it up to keep taking pictures while lock'd. What do I need to know to accomplish this? Jun 22 19:31:13 alankila, there's already an android IDE to develope and build android apps for android on android. Jun 22 19:31:14 diki: again: you have to port the entire toolchain. Port make while you're at it. This will be a large, prolonged undertaking. Jun 22 19:31:43 aarcane: I know. But it's a somewhat narrower problem in scope than having for instance the full build environment and a cross-compiling one at that Jun 22 19:31:53 because APK files might include x86 binaries too nowadays Jun 22 19:32:47 alankila, check out if you can installa build environment if you install one of the kernel-sharing linux distros. Jun 22 19:33:24 yes, if you can chroot or something you can run in a full linux environment with toolchains. Not really relevant to android at that point tho. Jun 22 19:34:10 but it's a starting point (and possibly an essential component) to a working, self-sufficient android builds android environment., Jun 22 19:35:19 I suppose, but the build requirements for ICS pretty much mean you're not going to be building android on android Jun 22 19:35:27 unless your android is effectively a very beefy PC already Jun 22 19:35:44 *sigh* blackberry brings an nfc tag emulation API, why doesn't android :/ Jun 22 19:37:01 dragorn, I don't know... if I was on a desert island with nothing but a USB port in the side of a palm tree from which I can power my device, I would totally build ICS on my phone if it meant I could be saved. Jun 22 19:37:04 dragorn: we might get laptops running android too. IMHO that would be a more interesting path forwards than say chromeos Jun 22 19:37:29 alankila, I have two netbooks that run android. Jun 22 19:37:46 aarcane: do your netbooks have touchscreens? Jun 22 19:37:56 anyway just saying that the capability of android system could well be sufficient for self-hosting Jun 22 19:38:00 but the software is not there Jun 22 19:38:07 Ge0rG, only one of them sadly. Jun 22 19:38:26 aarcane: is android even remotely usable on the other? Jun 22 19:38:53 Ge0rG, yes actually. Aside from some performance & driver issues, it's very usable. Jun 22 19:39:23 hm... maybe I should try it on my old asus 701 Jun 22 19:39:46 Ge0rG, use the live boot media, and give it a try. Jun 22 19:40:44 Ge0rG, for now, it's fun to do for a giggle and as proof of concept. It's usable but slow. I'm waiting for the android-x86 project to advance to the point that they're putting out more generalized builds. Jun 22 19:41:20 aarcane: thanks, I'll try. (the only reason for not to do it sooner was my spare time) Jun 22 19:42:13 hm... isos... need a tool to convert that to usb, won't i? Jun 22 19:42:41 I think they have a guide. They used to at least. Jun 22 19:44:03 ah, unetbootin or lili Jun 22 20:05:09 what do you think guys http://j.mp/KDzjLU Jun 22 20:05:37 cool! Jun 22 20:05:39 what is it? Jun 22 20:05:49 a voxel spaceship Jun 22 20:06:11 cool, looked like BSG Jun 22 20:06:12 a portal2 map oh wait Jun 22 20:06:50 here's what some other guy did with the same editor http://astralexistence.deviantart.com/#/d4kxyml Jun 22 20:08:23 My app is crashing with a ClassNotFoundException for a custom Application class that I have. The class is there… I'm looking at it, and my android:name links to it with an explicit full classpath. Any clue how to figure out what the class loader's malfunction is? Jun 22 20:09:58 ctate: i was going to use this http://code.google.com/p/little-fluffy-location-library/ … but they want you to extend the Application class. I remember that was discouraged, although its been a while … i don't remember why. for this case, do you think its ok ? Jun 22 20:17:01 extending Application is fine Jun 22 20:17:19 thanks evancharlton Jun 22 20:17:53 it makes hackbod sad but enh Jun 22 20:19:28 i remember it was discouraged for stuffing global state (vs singleton); i could not remember if the reason was technical or philosophical Jun 22 20:19:57 philosophical mostly Jun 22 20:20:26 * wongk extends Application proudly Jun 22 20:20:32 here it is in the shiva editor http://j.mp/KDAOtE Jun 22 20:20:37 probably fucked up UVs Jun 22 20:21:00 thanks ctate Jun 22 20:22:53 I'm writing an app to take pictures automatically. I have this problem where it crashes when I try to lock the screen. I want to set it up to keep taking pictures while lock'd. What do I need to know to accomplish this? Jun 22 20:24:07 Hey all. Does anyone foresee anything going horribly wrong if I call System.exi() in a service running on a separate process from my app? Jun 22 20:26:16 yes. Jun 22 20:26:30 that is not how android applications work. Jun 22 20:27:10 in other words: why would you want to do that? Jun 22 20:27:46 good question. I call native code that breaks after the first time it's called. It works if I run it on a separate process every time Jun 22 20:27:58 it is very unlikely that I will be able to fix the native code. Jun 22 20:28:14 it is very unlikely that your application will be a resounding success Jun 22 20:28:30 haha Jun 22 20:28:59 are there any resources I can read about the drawbacks to this approach? Jun 22 20:29:10 suggest you concentrate your efforts on squashing the bug instead of trying to implement PROCESS-LEVEL HACKS to go around it. Jun 22 20:29:34 if the OS knows that the service is formally stopped by the time you have it commit seppuku, this won't actually be that bad in practice Jun 22 20:30:02 maraz: it's often infeasible to get your fancy library vendors to fix their code, especially not on YOUR shipping schedule instead of theirs. Jun 22 20:30:14 ah. that may well be. Jun 22 20:30:37 solution: don't buy black boxes ;) Jun 22 20:31:07 black boxes are fine, just buy working ones :-p Jun 22 20:31:36 you guys are right on the money :P Jun 22 20:31:57 I have to say that it's not much good if it's open source when practically nobody is around to fix it anyway Jun 22 20:32:18 but then again, at least it's more possible to fix it Jun 22 20:32:28 well, i guess the even the adamant developer will have to succumb to the odd $100 coinflip here and there Jun 22 20:32:35 -the Jun 22 20:32:39 I just wish the equation "open source = works" was far stronger than it is. Jun 22 20:33:00 heh Jun 22 20:33:35 open source is a bit like the golden rule; everyone thinks it's a great idea and that everyone should commit to it, but in actuality, nobody really gives a damn. Jun 22 20:33:36 that has always been a problem with opensource Jun 22 20:34:49 It seems that some people have the idea that FOSS proponents say 'each and _every_ piece of FOSS is awesome!'. Jun 22 20:35:07 There's awesome FOSS, there's awesome proprietary software. Jun 22 20:35:40 afaict there is very little FOSS that is competitive with its proprietary equivalents Jun 22 20:36:08 https://gist.github.com/2974555 thats my layout xml, i still dont manage to change the weight of the detailfragment at runtime Jun 22 20:36:18 ctate: Android? /me ducks Jun 22 20:36:19 (which is unfortunate but kind of understandable) Jun 22 20:36:27 evancharlton: i'd not-so-humbly include that in the list :) Jun 22 20:36:39 Apache Jun 22 20:36:49 make :) Jun 22 20:36:57 yes, my conclusion is that open source software suffers the "long tail of suck" phenomenom Jun 22 20:37:03 alankila: yes Jun 22 20:37:05 there are a handful of great open source project, and then that sea of suck Jun 22 20:37:07 the tail is so very long Jun 22 20:37:21 it's not even the long tail Jun 22 20:37:33 it's that there are just almost no really awesome OSS products Jun 22 20:37:38 It's good that languages are usually open source. Jun 22 20:37:45 and the ones that exist are biased strongly towards developer tools Jun 22 20:37:57 Are we talking consumer market or any? Jun 22 20:38:07 any Jun 22 20:38:14 Because it appears to me that debian or FreeBSD make great servers. Jun 22 20:38:16 unix Jun 22 20:38:20 but note that "consumer market" is the biggest one Jun 22 20:38:31 True Jun 22 20:38:38 everyone has unix Jun 22 20:38:40 there are more iphones than linux machines :) Jun 22 20:38:41 ctate: the histogram of oss quality looks like (from great to shit): |_______________________________________________ Jun 22 20:38:49 and that line keeps going Jun 22 20:38:49 evancharlton: exactly Jun 22 20:38:50 on routers or modems or printers Jun 22 20:38:58 ctate: in othe words, a very long tail :) Jun 22 20:39:05 preceded by a cliff :) Jun 22 20:39:07 yep Jun 22 20:39:11 Hmmm, I think I like open source media (video) players more. MPC-HC on Windows for example with ffmpeg and whatnot. Jun 22 20:39:23 on linux side, I often wish that people just picked some very few things they think they can do well and keep working, and concentrated on making something Not Suck from user point of view even if that meant throwing 99 % of current software overboard Jun 22 20:39:32 word Jun 22 20:39:34 because the legacy and being compatible with everything weighs it all down so depressingly Jun 22 20:39:49 i keep waiting for them to write a good replacement for X :) Jun 22 20:40:15 wayland at least looks like it throws away whole bunch of layers Jun 22 20:40:53 maybe if we could educate people about how proper graphics and sound stacks should look like -- largely the message is "copy whatever OS X is doing" -- then perhaps some kind of minimum bar of quality could be reached. Jun 22 20:41:12 wayland as i understand it is about the rendering model Jun 22 20:41:21 as opposed to doing something about the data / input model, where the problems are Jun 22 20:41:22 Isn't Ubuntu trying hard to copy OS X? When I used 12.04 for a bit, it surely felt like it. Jun 22 20:41:34 ctate: really? I have no idea what you even mean by data model. Jun 22 20:41:51 and the input thing is explicitly going to get thrown away too, at least whatever X is doing with it because there will be no X Jun 22 20:41:57 how is input managed? how is clipboard data managed? Jun 22 20:42:10 OS X is awesomesauce! Jun 22 20:42:16 that all falls under X's bailiwick Jun 22 20:42:29 Is the problem the money? Or lacking project management/usability engineering? Jun 22 20:42:55 ctate: I imagine the applications open the input devices directly. I confess I don't really know, but if you start from the viewpoint that there's no X process to manage it and that applications are supposed to do virtually the entire work themselves, then I guess it's libraries and direct talking with kernel and gpu Jun 22 20:42:59 kakazza: successful projects have people who care deeply about making them happen, and do the work of driving that Jun 22 20:43:03 sigh… pretty much every class in my manifest is triggering a class not found exception. The classes are all there… I'm at a loss for how to debug this. Anyone have any ideas? Jun 22 20:43:04 most OSS software projects are managed by hobbyist programmers Jun 22 20:43:04 With Ubuntu, you used to be able to just move the mouse and click and be on another workspace Jun 22 20:43:29 kakazza: almost all really successful OSS projects are ones that have been backed by companies with a direct interest in the outcomes Jun 22 20:43:36 kakazza: the problem is desperate lack of engineering resources Jun 22 20:43:41 Hmm, isn't the Linux kernel pretty successful in that regard? Linus is _very_ dedicated. Jun 22 20:43:46 Now you have to move the mouse, click, then move the mouse and click again. So I just do Control-Alt-Arrow now. It was a pain to re-learn Jun 22 20:44:22 I always wondererd that, since OSS projects (can) have potentially much more contributers. Jun 22 20:44:50 kakazza: see above re people who care deeply about making them happen; also note that various companies have invested directly in making the linux kernel work well in ways that they care about (intel, ibm, etc) Jun 22 20:45:00 i think the trend is less icons, bigger icons and more table friendly. I don't know who copied who, but new Windows, Ubuntu, and Apple look similar (compared to any older version) Jun 22 20:45:02 kakazza: only projects with some kind of successful company about them seem to be able to hire full-time people that do serious work and they usually have some specific user-related goals to meet Jun 22 20:45:10 "lots of contributors" != successful :) Jun 22 20:46:13 I just wish Windows had native virtual desktops. Jun 22 20:46:42 kakazza: i dont know about win7, but xp had powertools Jun 22 20:46:43 Spaces (even though they removed the grid layout in Lion, doh) and whateveritscalledonubuntu is just so useful. Jun 22 20:46:57 it was a feature the devs added and wanted, but didnt make the cut into production Jun 22 20:48:32 ive never really used win7, so i dont know if they have a similar powertool extension Jun 22 20:49:12 anyway I'd have much more positive impression of linux if I could even get the fonts to look alright on it Jun 22 20:49:12 what if virtual desktops are too much for average user? (all people here in a *-dev channel are not average) Jun 22 20:49:33 people understand stuff like sRGB surface composing when you explain it to them, but that doesn't translate into anybody doing anything Jun 22 20:49:49 SuD: average user probably isnt going to press ctrl+alt+arrow Jun 22 20:49:59 I need to detect if after a rotation the handheld is landscape, portrait or seascape (note the latter, so Configuration#orientation is pointless) Jun 22 20:50:22 for a massive percentage of people clipboard is: right click -> copy, right click -> paste Jun 22 20:50:24 if we ever get beautiful font rendering on linux, I think it will be purely because world changes away from sRGB eventually and then the lowest common denominator design happens to compose reasonably from font rendering point of view. Jun 22 20:50:48 alankila: Ah, you're the one who is trying to get that patch into linux, right? Or a pacakge? Jun 22 20:51:05 kakazza: what patch? I have a pixman hack for sRGB surfaces right now Jun 22 20:51:20 pixman, right. Jun 22 20:51:23 I'm hoping it makes it in, because at least after that there is *capability* for doing it, even if nobody uses it yet Jun 22 20:51:39 after that begins the next phase of the operation, convincing fuckton of people why they should care Jun 22 20:51:40 pixman is what exactly? Jun 22 20:51:46 maybe ive just been using linux for too long and am immune to the fonts, but to me, fonts look no different or better on os x Jun 22 20:51:59 it is the chief rendering library used by X server and also hardware accelerated where possible Jun 22 20:52:13 birbeck: immune it is. Jun 22 20:52:29 birbeck: http://bel.fi/~alankila/pixman/fontscol.png Jun 22 20:52:37 my patch on top, typical linux result on bottom Jun 22 20:52:43 With the 'Ubuntu' font it got better. But I still like OS X and Windows fonts better. Linux fonts always appear toylike to me :x Jun 22 20:52:46 it's an experiment designed to showcase what sRGB surfaces get you Jun 22 20:53:11 sRGB is what exactly? Jun 22 20:53:15 they get you physically meaningful alpha blending Jun 22 20:53:24 alankila: they both look like crap, though i like the bottom better Jun 22 20:53:28 sRGB is the standard by which most consumer displays operate, or approximate Jun 22 20:53:47 it depends though, for web reading the bottom is better, for code, the top is better Jun 22 20:53:52 birbeck: liking it is not the point. The bottom shows a darkening artifact which is the heart of the problem. Jun 22 20:53:58 though neither has very good anti-aliasing Jun 22 20:54:42 The anti-aliasing is subject of the glyph definition and the quality of freetype when rasterizing it. It may not be correct -- I hope it is the computed correctly by freetype. Jun 22 20:54:48 that's a corner case though, that color combination is intended to produce "eye cancer" Jun 22 20:55:03 that color combination is designed to show why sRGB matters Jun 22 20:55:09 you get rid of the dark artifacts around font edges Jun 22 20:55:38 the top edges of the text on top looks white Jun 22 20:55:47 so it appears to have the same problem, just reversed Jun 22 20:55:58 it looks like this when white-on-black: http://bel.fi/~alankila/pixman/badlcd-cairofixed.png Jun 22 20:56:28 the top looks better there Jun 22 20:56:31 birbeck: maybe you are not viewing the demo in precisely sRGB display Jun 22 20:56:53 does it have to do with sub pixel rendering? Jun 22 20:56:56 if the top looks white or something you may have poorly calibrated display or have the wrong viewing angle Jun 22 20:57:07 alankila: whatever the crap display is on this macbook pro Jun 22 20:57:07 haha, smart move clipboard. don't make use of the new gpu accel stuff that only 1% of devices have ;-) Jun 22 20:57:11 flipboard* Jun 22 20:57:26 In the b/w one, top looks easier on the eyes because lines seem thicker. Jun 22 20:57:33 birbeck: well, macbooks are supposed to be more or less perfect. At least my experience indicates that they reproduce sRGB very faithfully if you have the right viewing angle Jun 22 20:57:44 OS X has color management support. Jun 22 20:57:51 i dont use os x though Jun 22 20:58:28 birbeck: oh. Well, then you are probably missing out on the color management. The colorsync stuff is required to get the sRGB look Jun 22 20:58:53 the top text has a lot of artifacts in the b/w one Jun 22 20:59:18 I see no artifacts personally. I see a beautiful, even white text, where the bottom one is colored and way, way too dark, especially on the small sizes Jun 22 20:59:24 bottom sample looks purple to me Jun 22 21:00:05 on my 30" there is some discoloration of the bottom samples in the really small font sizes Jun 22 21:00:12 anyway, these are designed to showcase the difference between sRGB-aware composing and default composing in starkest possible light. Jun 22 21:00:31 that the difference is not larger is one of the problems I am facing when trying to explain people why they should care Jun 22 21:00:38 though it remains readable whereas the top doesnt Jun 22 21:01:22 Well, top is clearly much better Jun 22 21:01:25 how does any of this relate to android though? Jun 22 21:01:33 I'm trying to get runtime.exec working but I can't seem to make it run even ls, any ideas (http://pastebin.com/X9wDtdr9)? Jun 22 21:01:48 it doesn't. We were just chatting about linux in general and my personal lament is the lack of finesse with linux programs Jun 22 21:02:03 android is linux :) Jun 22 21:02:20 I am trying to at least get OS X -like font rendering *possible* on linux, as OS X does the sRGB aware composing stuff, as does Windows Jun 22 21:02:41 that is one of the big reasons i never bought an original iphone, the linux based android os was due out soon Jun 22 21:02:45 and in fact I've been able to see that OS X does not have perfect font rendering in terms of sRGB correctness -- or possibly they have some altogether different design goal Jun 22 21:02:53 I have some rendering tests with OS X that shows artifacts Jun 22 21:03:15 fonts don't just look bad in linux; there are definitely differences in the way Chrome and Safari render text (and seeing the 2 side by side with "retina" displays shows this too) and my Kindle for Mac eReader renders many fonts terribly - presumably something with Qt Jun 22 21:03:57 g00s: interesting. I'll conduct some tests. Jun 22 21:04:07 well to someone like me that is not a font snob, fonts in linux are no different than fonts in any other os Jun 22 21:04:39 birbeck: for a while, i think freetype did not use font hinting, and they looked terrible Jun 22 21:04:45 anyone Jun 22 21:04:45 ? Jun 22 21:04:46 but i think that was years ago Jun 22 21:04:49 birbeck: with a side-by-side comparison, most people will see the difference, especially in windows Jun 22 21:04:51 g00s: yeah, that was in the 90's Jun 22 21:05:16 I agree. Safari renders my artifact test better than Chrome does Jun 22 21:05:24 XFree86 and Gnome 1 Jun 22 21:05:25 Doesn't Chrome render to a canvas or so? Jun 22 21:05:33 well that is curious. Probably fucked up alpha blending by not using component alpha Jun 22 21:05:39 in pixman terms Jun 22 21:05:55 http://www.anandtech.com/show/6002/chrome-canary-fixes-rendering-issue-with-retina-macbook-pro Jun 22 21:06:07 alankila: not being an expert, i heard it was something along the lines of safari using native font rendering routines, while chrome renders to some canvas using something else Jun 22 21:06:24 g00s: yes. I'm inclined to agree. Correct font rendering is tricky. Jun 22 21:06:46 g00s: Chrome uses Skia Jun 22 21:06:51 (also used by Android) Jun 22 21:06:52 but I can see certain types of darkening artifacts which remind me of the linux rendering results except not halfway as horrible when chrome draws some colored text images Jun 22 21:07:42 safari results are not bugged the same way though, in fact this indicates that I will change browser right now. Jun 22 21:07:58 and I thought it was OS X font rendering that had the bug. Jun 22 21:09:41 http://bel.fi/~alankila/lcd/lcdosx.png is what the rendering looks on chrome Jun 22 21:10:02 the bottom is chrome, you can see dark smudges in the sample text, another similar anticolor test as the red-blue thing I had before Jun 22 21:10:10 but these dark smudges do vanish in safari entirely Jun 22 21:10:19 top is? Jun 22 21:10:24 as i understand it, it's because the OS is lying to the apps about the screen resolution Jun 22 21:10:30 Is there a way to tell when the soft keyboard comes on and off the screen? Jun 22 21:10:32 top is my javascript algorithm which does component alpha blending Jun 22 21:10:58 ctate: Yeah, I heard so. Jun 22 21:11:00 ctate: on the new retinas? Jun 22 21:11:07 But games detect the real resolution Jun 22 21:11:07 I proved to myself that I know what I'm talking about by implementing the "perfect" algorithm first in javascript and then testing the various systems for their implementation quality Jun 22 21:11:12 on the retina-display devices & computers Jun 22 21:11:26 new API needed to see the true resolution Jun 22 21:11:45 http://bel.fi/~alankila/lcd/lcd.png is an older and slightly buggy version with linux and windows side by side Jun 22 21:11:50 unless you run windows :) Jun 22 21:11:56 you can see that linux font rendering is simply terrible compared to the competition Jun 22 21:12:15 colored and smudgy. Not a good result. Jun 22 21:12:15 is there an event that can be registered for for when the value of Display.getRotation(); changes Jun 22 21:12:24 alankila: http://images.anandtech.com/doci/6002/Screen%20Shot%202012-06-12%20at%206.11.10%20PM.png Jun 22 21:12:36 Question: how to fetch rows from a content provider in batches? Jun 22 21:12:37 chrome, chrome canary, safari Jun 22 21:12:42 I'm exceeding the 1MB limit Jun 22 21:12:58 is there a way to add a LIMIT clause to the query? Jun 22 21:13:05 Guys, are there any good refactoring / code cleanup tools for Android / Eclipse? I'd love to know which classes / Activities / Strings / resources aren't being used anywhere, etc... Jun 22 21:13:12 Chronax: Lint Jun 22 21:13:19 Right. Jun 22 21:13:21 Thanks, evancharlton Jun 22 21:13:25 and IntelliJ Jun 22 21:13:27 does anyone know what "key not found. key=[group-visible]" logcat warning means? I'm working with contacts, but dont do anything with 'group-visible' thing. Jun 22 21:14:01 g00s: it looks a bit strange that the font weights seem so much lighter in the experimental chrome Jun 22 21:14:10 http://www.anandtech.com/show/5998/macbook-pro-retina-display-analysis 'You'll notice that OS X doesn't, by default, expose the Retina Display's native 2880 x 1800 resolution anywhere in the standard, user-facing elements of the OS.' Jun 22 21:14:33 subjectivly I don't think that is correct, the weight appears clearly different. Jun 22 21:14:44 romainguy: Do you personally use IntelliJ? Jun 22 21:14:53 kakazza: at work and at home yes Jun 22 21:15:12 chiuki: if the cp supports it, you pass it as a Uri parameter Jun 22 21:15:15 Is the transition from Eclipse to IntelliJ hard? Jun 22 21:15:49 I switched to IDEA after first 2 weeks of codind in Eclipse Jun 22 21:15:53 g00s: example? Jun 22 21:15:56 coding* Jun 22 21:16:28 g00s: also, how do I know if the content provider supports it? Jun 22 21:16:37 but then again, IDK. Pretty strange. Jun 22 21:16:44 What are the main benefits? The ADT has come a long way and are tools like DDMS and others available in IDEA? Jun 22 21:17:05 ddms is a part of sdk, you can run it in any time Jun 22 21:17:38 chiuki: you don't unfortunately. presumably this is not your provider. if it does not support it, you can put the limit clause on the sort clause :/ Jun 22 21:17:49 Argh... I wish there were a way to have certain fields hide when the virtual keyboard comes up (non-hacky way)... Jun 22 21:17:54 g00s: actually I wrote the content provider myself Jun 22 21:18:28 I sort of like the middle text more. It looks more readable to me. Could it be that the way safari deals with retina is designed to preserve the earlier font shapes more accurately -- hinting -- while the chrome design renders the glyphs more accurately Jun 22 21:18:50 oh, then it should be easy - but i'm surprised about the error you are getting. a long time ago, i knew that cursor windows were limited to 1mb - but thought that if you reached that, you are in trouble. i *thought* later that the shuffling is all managed under the hood Jun 22 21:18:54 alankila: note that they use two different types of antialiasing too Jun 22 21:19:14 alankila: at least on the screenshot; Safari uses colored subpixel aa, while Chrome sticks to gray aa Jun 22 21:19:22 g00s: oh I get it: I need to do something in the query() function Jun 22 21:19:29 g00s: of my content provider Jun 22 21:19:49 romainguy: that is at least partially true Jun 22 21:19:56 I see both. This is even weirder. What the fuck. Jun 22 21:20:01 chiuki: yeah, it should read the Uri query parameter "limit" and append it to the query or something Jun 22 21:20:10 the grey breadtext at bottom looks gray-antialiased, the black is subpixel Jun 22 21:20:14 g00s: gotcha. thx! Jun 22 21:20:18 alankila: I'm talking about Chrome Canary Jun 22 21:20:37 alankila: oh yeah you're right Jun 22 21:20:54 romainguy: yes. Looks like this work is not finished yet Jun 22 21:21:03 because this result is rather unexpected Jun 22 21:21:07 that's really weird Jun 22 21:22:45 anyway maybe skia doesn't do component-alpha OVER operations when drawing text Jun 22 21:22:53 it had some kind of gamma correction, I checked it once earlier Jun 22 21:23:12 but if it uses a single alpha per pixel then that would be where it goes wrong Jun 22 21:23:20 because when you do subpixel text you need separate alpha per component Jun 22 21:23:57 Skia has gamma correction Jun 22 21:24:07 with pixman, you have src, mask and destination surfaces, all which are separate. In my pixman demo I use sRGB surface and sRGB destination masked by linear-light component alpha mask Jun 22 21:24:36 the freetype lcd-filtered text is direclty used as the mask Jun 22 21:24:38 and Skia doesn't do alpha per component Jun 22 21:24:41 (at least that I know of) Jun 22 21:25:02 the alpha channel of the freetype mask is ignored, and instead alpha is taken from the RGB values as generated by freetype Jun 22 21:25:26 Btw, will the Google I/O 2012 App be open sourced like the last one? Jun 22 21:25:31 (there's a screwy function in cairo that does the conversion from freetype bitmaps to ARGB bitmap) Jun 22 21:25:41 I want to know what Google did to backport the Actionbar. Jun 22 21:25:51 kakazza: I believe it uses ABS Jun 22 21:26:04 That's what I was wondering. Jun 22 21:26:10 Will it be open sourced? Jun 22 21:26:49 from the play page Jun 22 21:26:51 "Source code for the app will be available soon at http://code.google.com/p/iosched" Jun 22 21:28:29 i'm still not sure how to handle abs & froyo; if i follow the icon guidelines and my ab icons are #ffffff @ 80% transparency, when they are put in the options menu panel they are essentially white on white and look terrible Jun 22 21:28:58 i guess this is not a problem with GB since its options menu panel is black Jun 22 21:29:55 i also can't find a way to change the froyo options menu panel color myself; even if i could it seems like a bad idea Jun 22 21:30:14 i noticed iosched has the same issue, so i'm guessing there is no resolution Jun 22 21:30:21 Thanks Jun 22 21:30:57 g00s: does using light theme vs dark theme make a difference? Jun 22 21:31:14 i mean, obviously the forward-looking path is to just drop froyo Jun 22 21:31:16 sigh Jun 22 21:31:30 i would be dropping my phone :P Jun 22 21:31:36 lol Jun 22 21:31:40 yeah, i wish i could say minsdk = 14 Jun 22 21:31:44 but froyo is so two years ago Jun 22 21:32:07 I wish minsdk=14 was possible without leaving 80% of the market behind. Jun 22 21:32:08 yeah Jun 22 21:32:42 i dropped my phone display side down from knee high on to solid brick floor (dunno the correct word) Jun 22 21:32:50 expected cracked hell Jun 22 21:32:55 ok, well, i'll just leave it, assuming fewer and fewer people will see it Jun 22 21:32:55 BUT NOTHING! Jun 22 21:32:59 not even a scratch Jun 22 21:33:05 thank god for gorilla glass Jun 22 21:33:21 sounsd like guerilla gorilla glass advertisement Jun 22 21:33:41 Yeah, we also try to support Froyo as much as possible. But sometimes it's just not economic. Jun 22 21:33:58 Ravenheart: well, that's because there was no piercing damage Jun 22 21:34:04 just saying it really worked :) Jun 22 21:34:36 Has anyone ever tried that write your own app AIDE? do you think this app is sufficient enough to figure out how create something that will record from both cameras on the phone? Jun 22 21:34:59 slie: I doubt you can connect to two cameras at once Jun 22 21:35:25 Well I guess i'de like to figure out why and understand it i guess Jun 22 21:35:41 can I register a event on for a change of rotation on the main Display (not onConfigurationChanged as that doesn' Jun 22 21:35:53 t seem to get fired for landscape to seascape) Jun 22 21:53:44 slie: http://stackoverflow.com/questions/7215230/using-both-cameras-on-android-fail-to-connect-to-camera-service Jun 22 22:07:21 if a user is allowing mock locations, is there a way for me to disable this within my app? Jun 22 22:13:09 I hope not Jun 22 22:14:45 yeah, i don't think you can tell from the app Jun 22 22:16:14 evancharlton: why not? Jun 22 22:16:55 recommendation for grocery list app that can be shared and edited via the web? Jun 22 22:17:10 maybe the milk one Jun 22 22:18:06 i'm quite the fan of tomorrow.do Jun 22 22:18:55 i use google drive for my shopping list Jun 22 22:19:10 i share the doc with my wife, so we both have access to it all the time Jun 22 22:19:17 i just eat out every night Jun 22 22:19:23 i actually use my brain for my shopping list :) Jun 22 22:19:29 personal chef Jun 22 22:19:31 problem solved Jun 22 22:19:41 shopping list doesnt mean grocery list, but there is a small section for groceries Jun 22 22:19:48 its mainly coke, beer, tequila... Jun 22 22:20:13 actually, bacon, bacon, and bacon Jun 22 22:20:20 I need to cross motorcycle, jacket, gloves, boots off the shopping list Jun 22 22:20:33 JakeWharton: ha ha Jun 22 22:22:34 Bacon strips and bacon strips and bacon strips Jun 22 22:22:55 ctate: you wanna look at a webcore stack trace and let me know if i need to create a bug? Jun 22 22:22:57 there's a great indie ice cream shop in my town Jun 22 22:23:08 periodically they have "maple candied-bacon" Jun 22 22:23:12 Did they make ice before it was cool? Jun 22 22:23:13 it is the BOMB. Jun 22 22:23:31 birbeck: nah; go ahead and file the bug :) Jun 22 22:23:40 esp if you have a small repro case of content Jun 22 22:23:53 maple candied bacon … i'm trying to imagine Jun 22 22:23:56 * g00s head explodes Jun 22 22:24:04 dude Jun 22 22:24:07 so SO goo Jun 22 22:24:08 Whenever ctate says that I read it as 'I'll let that be a problem of the guys reading the bugtracker' Jun 22 22:24:08 d Jun 22 22:24:21 kakazza: i try to keep as far as possible from webkit :) Jun 22 22:24:27 haha Jun 22 22:24:52 kakazza: i always take that as file a bug that no one will ever see Jun 22 22:25:03 g00s: That's one of the things I deactivated pretty quickly. s/.../…/ Jun 22 22:25:15 The elipsis just doesn't feel right :x Jun 22 22:25:23 birbeck: bah, that isn't fair Jun 22 22:25:28 we have maple bacon donuts sometimes at work Jun 22 22:25:39 although some product areas are better than others w.r.t. reading the external bug db Jun 22 22:25:41 and at the Dessert Bash at AnDevCon we had them Jun 22 22:25:44 freaking delicious Jun 22 22:25:51 ctate: looking at the number of issues filed vs resolved and the age of a lot of them, its quite fair Jun 22 22:26:14 there's a lot of noise and duplication in the db, too; plus there's a lot of stale stuff that is obsolete or even fixed but not noted Jun 22 22:26:15 I found the Android Bugtracker pretty responsive. Not in the bug-fixing sense, but in regard to deduplication, acknowledging and so on. Jun 22 22:26:22 i agree it isn't a great situation, don't misunderstand me Jun 22 22:27:01 Some bugs, like the multi-line-ellipsized textview just boggle my mind. Jun 22 22:27:06 i reported a market production bug to you once and it was fixed in like 2 hours.. now thats a good status quo Jun 22 22:27:29 kakazza: heh, thats been there forever Jun 22 22:27:43 It has Jun 22 22:27:45 http://code.google.com/p/android/issues/detail?id=2254 Jun 22 22:27:47 2009 Jun 22 22:28:43 so fix it and submit a patch? Jun 22 22:28:49 no u! Jun 22 22:28:51 ive had that one starred for about 2 Jun 22 22:29:05 i dont care if it gets fixed, so why would i do it Jun 22 22:29:54 On that note, I wonder how hard the review process is for third party patches. Jun 22 22:29:55 anyone tried to do android development on a chromebook? Jun 22 22:30:01 kakazza: what are you talking about? it's marked as fixed Jun 22 22:30:19 kakazza: if it's a bug fix (as opposed to a new feature/UI change), not hard Jun 22 22:30:42 romainguy: haha, nice one ;) Jun 22 22:31:14 Hello. Jun 22 22:31:41 okay see what i mean w.r.t. stale? :) Jun 22 22:31:46 :) Jun 22 22:32:06 hello Jun 22 22:32:06 :D Jun 22 22:32:18 romainguy: 4.1? Jun 22 22:32:24 FutureRelease Jun 22 22:32:34 romainguy: couldn't find you last friday. not sure if you came or not. it was PACKED Jun 22 22:32:44 No SMS reading APIs in Android :-/ Jun 22 22:32:49 Ok, but it's already patched, right? Jun 22 22:32:50 JakeWharton: I missed it, I was stuck with work stuff Jun 22 22:33:07 Thanks for clarifying. Jun 22 22:33:26 Do all alternate SMS apps use the unofficial/undocumented ContentProvider? Jun 22 22:33:40 aviraldg: or email reading apis, right? Jun 22 22:33:58 ctate: what? Jun 22 22:34:26 lol @ http://code.google.com/p/android/issues/detail?id=33525 Jun 22 22:34:33 you can get an intent when an SMS comes in Jun 22 22:34:40 ==canadiancow Jun 22 22:34:49 stop equalling me! Jun 22 22:34:53 haha, birbeck Jun 22 22:35:38 at least that one is for triage and they didnt come here with the question :) Jun 22 22:35:59 birbeck: there are many bugs like that one still open Jun 22 22:36:33 Does Android receive many external patches? Jun 22 22:36:45 yep Jun 22 22:36:47 one sec Jun 22 22:37:30 lol, just got email from romainguy closing that issue Jun 22 22:37:35 good grief yes Jun 22 22:37:49 look at the AOSP logs; hundreds of patches a month Jun 22 22:38:24 kakazza: http://twitter.com/jbqueru/status/212729259008069632 Jun 22 22:39:03 Oh wow Jun 22 22:39:16 Do you require test cases with the patches? Jun 22 22:39:21 not always Jun 22 22:39:22 sometimes Jun 22 22:39:35 canadiancow: Wow, thanks. Looks like it'll work just fine for me :) Jun 22 22:39:40 Any stats on code coverage? Jun 22 22:39:52 wat Jun 22 22:40:47 kakazza: you've got the source; run your own stats? :) Jun 22 22:40:55 nuuuu Jun 22 22:40:57 Are there any good design patterns for implementing an action bar, and what nav items should be shown for each fragment? I'm thinking about implementing a half-assed observer pattern to notify fragments to update the actionbar actions when they're loaded... Thoughts? Jun 22 22:41:15 Is there a better pattern that people use? Jun 22 22:41:22 invalidateOptionsMenu() Jun 22 22:42:09 But what if I need to add custom views and things in some cases? Jun 22 22:42:10 will trigger a menu re-creation Jun 22 22:42:24 And then I just override the menu creation in each fragment? Jun 22 22:42:38 Sometimes I want to set the actionbar title, and/or add a custom view in some fragments... Jun 22 22:42:41 well, your fragments shouldn't be modifying the action bar since it's window-level UI Jun 22 22:42:50 Still, feels a little hacky that there's an API for sending/writing messages, but not one for receiving/reading them... Jun 22 22:42:53 Ahh, I see. Jun 22 22:42:56 This is all kinda new to me. Jun 22 22:43:04 whereas a fragment is purely a management container around a View Jun 22 22:43:06 or dialog Jun 22 22:43:16 can anyone recommend a snippert/guide/tutorial for actionbar+viewpager? I'm struggeling with the orientation change, i basicly don't want anything special to happen, but my viewpager contents disappear etc. Jun 22 22:43:19 Yeah, but depending on the fragment that's displayed, there may be different actions, right? Jun 22 22:43:53 dark3n: does your view pager have an ID in the layout? Jun 22 22:44:14 like android:id="@+id/pager" ? Jun 22 22:44:16 yes Jun 22 22:44:21 yes Jun 22 22:44:23 also, your question has nothing to do with the action bar Jun 22 22:44:27 http://actionbarsherlock.com/ Jun 22 22:44:55 and ActionBarSherlock won't solve your problem since it doesn't contain fragments or ViewPager Jun 22 22:46:45 it seems like the viewpager gets recreated on orientation change, because the Fragment activity who owns it gets recreated, and thus it resets the app, and i still have no clue why the viewpager content is no longer visible Jun 22 22:46:46 JakeWharton: First time here. I <3 ActionBarSherlock and ViewPagerIndicator. You're awesome, btw! Jun 22 22:46:58 hmmm Jun 22 22:47:02 i find the whole fragment/viewpager buisness confusing ;( Jun 22 22:47:07 i was just about to ask whether you were using fragments or just views in the pager Jun 22 22:47:19 Fragments Jun 22 22:47:52 well that's a complex interaction so it's hard to tell exactly what could be causing your problem without seeing code Jun 22 22:48:10 So... is there a good pattern for modifying the actions / custom views / title in an ActionBar when different fragments are shown / hidden? Jun 22 22:48:53 And is it a really bad idea to have my fragments update the actionbar? Jun 22 22:48:56 JakeWharton, i oriented myself at this snippet http://graetzer.org/ Jun 22 22:49:14 What does "content is no longer visible" mean? No fragments are added to the viewpager? Are your fragments losing state? Jun 22 22:49:21 http://viewpagerindicator.com/ am I the only one not seeing pictures for Line and Underline indicator? (If there's supposed to be any) Jun 22 22:49:34 i never added them Jun 22 22:49:41 the website is open source, feel free Jun 22 22:49:42 :) Jun 22 22:50:21 Can't add the fancy fading effects :x Jun 22 22:50:50 Chronax: ideally your activity would manage the action bar and act as a state-machine for what fragments are displayed based on your configuration (e.g., phone->one pane, tablet->two pane) Jun 22 22:50:52 can anyone explain how the heck admob works? I have had my first app with ads out for a while, and it says "estimated earnings $4", well, now what? How can I get the $4? Jun 22 22:51:11 fragments modifying the action bar directly creates a very hard dependency on the way you can structure and display them Jun 22 22:51:24 a fragment should not modify or touch ANYTHING outside of the view or dialog that it manages Jun 22 22:51:56 you can use an event bus or callbacks to the parent activity through an interface it provides to communicate Jun 22 22:52:01 ninjai: You can't. Jun 22 22:52:17 But the fragment has to modify the state, no? Jun 22 22:52:24 aviraldg, how does it work then? Jun 22 22:52:25 There's a limit ($200 or something) which you must cross before any payments are made. Jun 22 22:52:30 oh Jun 22 22:52:35 thats lame Jun 22 22:52:43 so ifi never reach $200 I never get paid? Jun 22 22:52:48 what state? Jun 22 22:52:50 Yep. Jun 22 22:52:52 JakeWharton: examples? Or apps doing it that way? Jun 22 22:53:03 Even I have $4 sitting around :P Jun 22 22:53:04 um, Pay with Square :D Jun 22 22:53:04 interesting.. Jun 22 22:53:10 You mentioned the Activity acts as a state machine. What modifies the state. Jun 22 22:53:12 Is that OSS? Jun 22 22:53:18 hell no Jun 22 22:53:36 kakazza: when you click on a button, that button somehow gets relayed to the activity which acts on it Jun 22 22:53:44 like changing the action bar title and replacing a fragment Jun 22 22:54:13 JakeWharton: But that could get kind of spaghetti like, right? Lots of if statements and things to determine which fragment is displayed, and update the ActionBar stuff accordingly? Jun 22 22:54:19 Is that really how people do it? Jun 22 22:54:33 we use a state machine Jun 22 22:57:44 i have a Service that's partially a state machine Jun 22 22:58:21 it's like any other tool, just know when to use it Jun 22 22:59:12 hm isn't there a simple way to achieve what android:configChanges="orientation" does ? For a fragmentactivity.. Jun 22 22:59:50 simple is overrated Jun 22 23:00:04 something that is easy to understand :P ? Jun 22 23:00:19 man this learn android development book is boring Jun 22 23:00:37 makes it so hard to learn Jun 22 23:01:37 I'm writing an app to take pictures automatically. I have this problem where it crashes when I try to lock the screen. I want to set it up to keep taking pictures while lock'd. What do I need to know to accomplish this? Currently everything is in the main Activity Jun 22 23:06:06 hi! Jun 22 23:06:40 well, autojoin setted, hope I don't die on the intent to make some software :) Jun 22 23:09:17 aarcane: the first thing you need to know is that your activity is paused when it is not in the foreground Jun 22 23:09:34 and that trying to modify any of its views is bad news Jun 22 23:10:36 aviraldg: go on? Jun 22 23:10:41 load && show data? Jun 22 23:11:03 aarcane: you also need to know that the phone will go to sleep when the screen turns off Jun 22 23:11:51 ok Jun 22 23:11:57 wongk-home, So I need to un-pause my activity, and wake the phone up, while keeping the screen locked. Jun 22 23:12:14 you cannot unpause your activity Jun 22 23:12:25 Dangit_: Use a ListView, create a Layout (in XML) and a ListAdapter. Jun 22 23:12:55 an activity is not the right place for a process that you want to run continually Jun 22 23:13:26 so the listview is goig to being graphic, whats the questions and answers are going to show on Jun 22 23:13:39 and listadapter is where i put the logic? Jun 22 23:13:44 Hmm. But I can't figure out how to run the camera from anything but anj activity Jun 22 23:14:13 i have no idea, i've never interacted with it Jun 22 23:14:33 I would need a service, right? Jun 22 23:14:47 that would be the most obvious choice Jun 22 23:15:06 Is there anything better you can recommend ? Jun 22 23:15:39 no, Service is designed that this kind of thing Jun 22 23:47:42 is there a list of all @android:drawable/ that i could use? Jun 22 23:48:10 oops, that was supposed to be @android: drawable/ Jun 22 23:54:24 f2prateek: download DrawablePreviewActivity Jun 22 23:55:19 or search on android.R.drawable Jun 22 23:55:20 wongk-home: cool, thanks Jun 23 00:03:50 is there a better countdown timer than CountdownTimer? Something that has an onCancel and preferably a pause/resume, and "read remaining time" element Jun 23 00:03:55 or method Jun 23 00:15:48 Why would getSupportFragmentManager().findFragmentByTag() not return a fragment after screen-rotation? Jun 23 00:16:09 I can find it without problem, I rotate, and I attempt to find it again in onCreate(), and it's gone. Jun 23 00:16:51 i would speculate that in onCreate is hasn't been re-created yet Jun 23 00:17:27 it does appear back on the screen? Jun 23 00:17:38 No, it doesn't. Jun 23 00:17:41 oh Jun 23 00:17:48 well thats odd Jun 23 00:17:50 I'm doing something pretty complex where I need to manually add the fragment to a pager adapter. Jun 23 00:17:52 But whatever. Jun 23 00:18:06 I'm trying to find it in onCreate(), but it's always returning null -- despite using an identical tag. Jun 23 00:18:15 is it in the fragment stack Jun 23 00:18:19 originally Jun 23 00:18:37 Well, yes. Jun 23 00:18:46 I can get it in onSaveInstanceState() no problem, using the tag. Jun 23 00:18:51 I tried it for debugging purposes. Jun 23 00:19:02 So then I try to grab it in onCreate again on Activity recreation, and it's null. Jun 23 00:19:09 it hasn't died yet at that point Jun 23 00:20:18 man, why did they make the text on d.android.com #fff Jun 23 00:20:28 i've only used fragments for dialogs, but they've always been automagically recreated Jun 23 00:20:39 err, #444 Jun 23 00:34:02 so a new constructor was added to LinearLayout in API11, I'm extending the class and added all the constructors from super class. On GB, I'm getting cases where the activity dies and dalvikvm gives an 'unable to find method' message Jun 23 00:34:41 what would the proper way to keep all the constructors and avoid this, or is there any danger of removing the problem constructor? Jun 23 00:35:58 do you use the constructor? Jun 23 00:38:25 any GPLv2 experts around here, im wondering how TitaniumBackup includes Busybox without posting source Jun 23 00:38:34 wongk-home: i don't create instances of the class directly, it's only used in xml Jun 23 00:38:49 AlCapwn: then remove it Jun 23 00:39:40 TitaniumBackup doesn't include busybox Jun 23 00:39:47 unless i missed that change Jun 23 00:39:48 ok, will try that Jun 23 00:40:04 Jug6ernaut: by not modifying the source at all, they can get around it by posting link to original project Jun 23 00:40:30 wongk-home in its apk there is a busybox.mips, busybox.x86, busybox.arma... Jun 23 00:40:46 Jug6ernaut: also, they are *NOT* required to post or publish source, but they *ARE* required to *provide* the source *ON* *DEMAND* Jun 23 00:40:51 p_l so if i do the same i can get around posting source of my application? Jun 23 00:41:03 Jug6ernaut: depends on linking Jun 23 00:41:17 can you explain Jun 23 00:41:28 for a long time it wasn't included Jun 23 00:41:35 busybox in TitaniumBackup is not linked in, just a GPLv2 program that is part of the distribution (but doesn't share source nor object code) Jun 23 00:41:46 wongk-home: it was part of Donate version Jun 23 00:42:03 huh Jun 23 00:42:11 i have the donate version :P Jun 23 00:42:27 p_l so i would need to provide link to busybox project and use it AS_IS, no modifications? Jun 23 00:42:33 but i did use the non-pro version for a while Jun 23 00:42:38 wongk-home: at least for last two years a small busybox-based environment is included Jun 23 00:43:43 Jug6ernaut: to be specific, you'd need to avoid linking your non-gpl2-compatible code, and only provide source for busybox on demand... but simply guiding users to busybox project should be enough, maybe with info about compilation options Jun 23 00:43:51 How hard is it to unlock time-expiring apps? (Swype) Jun 23 00:44:08 p_l k Jun 23 00:44:10 thanks Jun 23 00:44:16 CoJaBo: usually easy. Won't tell you how, though - bit targeted, isn't it? :P Jun 23 00:44:41 p_l: Hm? Jun 23 00:45:18 we're not going to tell you how to h4x0r swype Jun 23 00:45:36 Any ideas on what to do then? :/ Jun 23 00:45:44 buy it Jun 23 00:45:47 i have an idea :) Jun 23 00:46:01 Its not offered for sale; its free, they're just discontinuing it Jun 23 00:46:13 they never released that damn thing? Jun 23 00:46:43 Well, they released.... something, but its a rewrite with half the features an twice the bugs. Jun 23 00:46:59 i believe swiftkey has swyping Jun 23 00:47:17 Some company bought Swype and some other keyboard, mashed them together, then released that as "Swype Beta" Jun 23 00:47:32 I want to keep using the version I have now, but its time-expired Jun 23 00:48:35 Is there any way to do this? :/ Jun 23 00:49:11 decompile it, update the time experation check, recompile Jun 23 00:49:23 ynot Jun 23 00:49:26 get in beta Jun 23 00:49:32 that's all the hints i'll give, because i'm off for the night :P Jun 23 00:49:59 Jug6ernaut: I have the 3.0 beta; I want to keep it, but they are discontinuing it. Jun 23 00:50:10 o lol Jun 23 00:50:15 y u like 3? Jun 23 00:50:26 Because.. it works? Jun 23 00:50:40 * Jug6ernaut has newest beta Jun 23 00:50:42 works fine to me Jun 23 00:51:47 Jug6ernaut: The editing keyboard is gone. Support for adding commands (words with arbitrary symbols) is gone. Support for ConnectBot is gone. Jun 23 00:52:10 ah Jun 23 00:52:14 Hapatic feedback is gone. Jun 23 00:52:24 Its completely useless to me. Jun 23 00:52:32 im pretty sure hapetic feedback is not gone lol Jun 23 00:52:47 Even the few minutes I tried it, it was an absolutely frustrating experiance. Jun 23 00:53:00 Jug6ernaut: Its GONE, for all intents and purposes :/ Jun 23 00:53:21 It buzzes, hard when a key is touched, but the long-press feedback is gone Jun 23 00:53:49 It used to click on tap and on long press, so you knew what you were fricking doing. No more. Jun 23 00:54:13 AFAICT, its not even Swype, its some other Nuaunce product rebranded as Swype Jun 23 00:56:08 I wonder how hard it is to write an Android keyboard.... Jun 23 01:05:52 romainguy: if you're there, maybe you can ask the d.android.com suite designers to change the text color to at least #333 like the rest of google website i see; #444 is too light Jun 23 01:05:57 :) Jun 23 01:06:50 or even #222. consistency ! :S Jun 23 01:11:57 any idea as to how I can get this into my app? http://benpickles.github.com/peity/ Jun 23 01:12:12 ha Jun 23 01:12:21 i was just looking at that yesterday Jun 23 01:12:33 the need for it arose last night Jun 23 01:12:35 and today I saw it Jun 23 01:13:04 I have an activity where I show data about a server machine, stuff like mounted filesystems, processes, etc.. Jun 23 01:13:22 hey...can't AChartEngine do that stuff? :o Jun 23 01:14:31 yeah. Jun 23 01:14:43 i would avoid androidplot Jun 23 01:15:06 most of them are crap Jun 23 01:15:14 AChartEngine barely fit the bill back then Jun 23 01:16:03 yeah, its probably a lot of work making a nice charting engine Jun 23 01:18:48 i would like to write a view container like the tile thing on wp8; where you can add a tile and change the size and the view adapts my showing more or less information Jun 23 01:19:04 i've found a few cases already for this as information radiator kind of thing Jun 23 01:19:11 I would like to conquer the universe Jun 23 01:19:18 ! Jun 23 01:19:29 i think our cat has already begun planning that Jun 23 01:19:41 I think I'm going to nab nagdroid for use in my own app, lul Jun 23 01:20:15 also GPLv3, win Jun 23 01:24:33 on the other hand, it's only a little bit of work to just draw chart that suits your needs Jun 23 01:24:54 because it's not especially hard to draw a box, some grid, and then a few labels and lines Jun 23 01:25:07 totals around 50 lines of code, depending on how fancy you need Jun 23 01:25:39 for some reason all the chart engines are megabytes of shit Jun 23 01:25:42 yeah, i'll probably do that/ Jun 23 01:25:52 stupid question: can you put a view below the split action bar? In case you're curious this is just to keep ads at the bottom Jun 23 01:25:52 they have to be infinitely customizable Jun 23 01:26:21 i'm not so good with gestures for scrolling the chart Jun 23 01:26:42 jayd16: don't use ads; problem solved ! Jun 23 01:27:27 lol @ nagdroid, if you've installed for the first time and you go to Menu > Refresh, it crashes Jun 23 02:22:11 Hm; apperently Smali is what I need.. Jun 23 02:32:23 ...except there doesn't seem to be a whole lot at all in the way of documentation :/ **** ENDING LOGGING AT Sat Jun 23 02:59:58 2012