**** BEGIN LOGGING AT Sat Jan 28 03:00:00 2012 Jan 28 03:02:14 pfn, looks like some folders on the /sdcard are causing this reboot :/ Jan 28 03:02:52 even listing them causes a boot and there's an I/O error on them when i ls them from the recovery O.o Jan 28 03:03:44 and of course...even going to "storage" reboots it >_< Jan 28 03:03:45 damn Jan 28 03:10:04 whoa...looks like the filesystem is corrupt :/ Jan 28 03:10:07 on the sdcard Jan 28 03:10:16 i wonder how that happened Jan 28 03:30:59 I'm not quit getting how to use AsyncTask Jan 28 03:31:13 *quite Jan 28 03:31:25 put your crap in doInBackground and then call (new MyAsyncTask()).execute(); Jan 28 03:32:42 what do i make doInBackground return? Jan 28 03:33:07 whatever you want Jan 28 03:33:36 android has no opinion on it, it doesn't care. It's for you. Jan 28 03:33:52 ahh ok Jan 28 03:37:37 what if i don't need params or progress items for mine tho? Jan 28 03:37:49 I'm trying to replace this Thread with a AsyncTask Jan 28 03:37:50 http://pastebin.com/37YZRqyT Jan 28 03:42:06 use the type Void and pass null Jan 28 03:44:28 I just want to make sure i'm going in the right direction..the main problem i'm having in that code is that the if else branch below the new Thread is executing before connectionHandler.executeLogin actually runs. therefore it isn't getting the right boolean value. Jan 28 03:44:35 so I should go with AsyncTask to fix this? Jan 28 03:44:49 I think all concurrency problems should use AsyncTask Jan 28 03:46:01 And yes, you seem to not really understand how to do threading based on this sample Jan 28 03:47:10 right, i have basic theoretical knowledge. but i've never done thread programming. besides some pthread stuff Jan 28 03:48:18 you don't really need to know thread programming to use AsyncTask Jan 28 03:48:37 AsyncTask is too nicely done to care about it Jan 28 04:00:58 pfn, I fixed it! :D the /data filesystem was corrupt, ran an e2fsck from recovery Jan 28 04:01:07 there were like 8 corrupted folders Jan 28 04:01:19 including /sdcard/data >_< Jan 28 04:05:04 here is my attempt at moving my code to a AsyncTask. http://pastebin.com/3VCQHak4 Jan 28 04:05:18 however, I think the Toast's are making it crash right now. Jan 28 04:05:35 yeah Jan 28 04:05:47 you can't do anything with the UI in the background thread Jan 28 04:05:55 show them in onPostExecute Jan 28 04:06:38 ahh alright. Jan 28 04:07:10 yeah so return something to onPostExecute from doInBackground and use that to show the relevant toast Jan 28 04:09:33 hello, I'm having some troubles getting a button with a drawable to bahve the way I want: It displays the background fine (on which are defined the states), but when clicked it doesn't change images Jan 28 04:11:43 Afzal: I keep reading that sentence and it's not clicking for some reason Jan 28 04:12:17 hmm...;well, i guess the "return something to onPostExecute from doInBackground" doesn't click ? Jan 28 04:14:54 right :@ Jan 28 04:16:04 erebel55, http://pastebin.com/bUFXfuDi Jan 28 04:16:25 basically, whatever you return from doInBackground is automatically the argument for onPostExecture Jan 28 04:16:36 onPostExecute* Jan 28 04:16:53 oh wow that makes sense now. :D Jan 28 04:17:09 thanks! Jan 28 04:22:17 is ics not in the android dev tools for eclipse yet? Jan 28 04:22:32 i'm running arch and have updated all the packages, but i'm still seeing gb Jan 28 04:22:53 i have android-sdk r16 Jan 28 04:24:10 yes it is Jan 28 04:24:40 what do you mean? It should whatever stuff you have in your platform folder in the sdk folder Jan 28 04:24:44 shows* Jan 28 04:25:02 ok Jan 28 04:25:08 i'm only seeing android-10 in there Jan 28 04:25:13 so i'm missing the actual ics package Jan 28 04:28:11 oh, i see the problem Jan 28 04:28:18 it's not updated through the package manager Jan 28 04:28:21 i have to manually install it Jan 28 04:28:33 Hey y'all. Let's say I have a gradient background image that looks great on a T-Mobile G2 in MDPI, but looks grainy on something like a Nook Color tablet. They're both MDPI, so the asset should look the same on both, right? Jan 28 04:28:51 Otherwise, what should I do to make it not look grainy on the larger (also MDPI) devices? Jan 28 04:28:51 hm i'm having problems in AsyncTask with bool and boolean. My executeLogin function returns boolean but AsyncTask can only work with bool? Jan 28 04:29:01 erebel55: No. Jan 28 04:30:05 VonRath: you have both of these devices to test on? Jan 28 04:30:17 or is this a report from a user? Jan 28 04:30:21 oh capatalized Boolean. sorry got it Jan 28 04:31:25 CQN: Yes. Jan 28 04:31:28 Is the G2 HDPI? Jan 28 04:31:32 Could the converse be the problem? Jan 28 04:33:10 do you have any other devices to test on? Jan 28 04:33:47 No, these are the only 2. Jan 28 04:33:56 It just look very grainy on the Nook Color, which obviously is much larger. Jan 28 04:34:03 But I thought both devices are MDPI. Jan 28 04:34:14 If they are both MDPI, it should look the same on both devices, right? Jan 28 04:34:19 Despite the varying screen sizes? Jan 28 04:34:53 yes! AsyncTask fixed it woot :D thanks guys Jan 28 04:35:14 VonRath: nook color isn't mdpi, it's mdpi-large Jan 28 04:35:49 So I should have separate assets for mdpi-large? Jan 28 04:36:11 is there a provision for that? Jan 28 04:36:17 isn't the nook color nonstandard android? Jan 28 04:36:26 like the kindle fire Jan 28 04:36:35 i'm not familiar with the nook Jan 28 04:37:30 i don't see anything for that Jan 28 04:37:35 mdpi-large, that is Jan 28 04:38:00 Let me rephrase my question. Jan 28 04:38:23 Should an asset render the same on devices with different screen-sizes but same DPI? Jan 28 04:38:52 well yes Jan 28 04:39:08 but apparently the nook doesn't report that info correctly: http://stackoverflow.com/questions/7488459/android-dpi-on-the-galaxy-tab-vs-the-nook Jan 28 04:39:28 Oh interesting. Jan 28 04:39:57 I just wrote a test to pull the DPI using getResources().getDisplayMetrics().density and it told me it was MDPI. Jan 28 04:40:00 Wonder if that's incorrect? Jan 28 04:40:10 that could be it Jan 28 04:40:34 i'm not sure how to remedy this sort of thing short of device-specific settings Jan 28 04:40:40 Right. Jan 28 04:41:08 Is it possible that the T-Mobile G2 is HDPI? I know I could Google this, or run the same test on my other device, but I'm being lazy. ;) Jan 28 04:41:43 why are you testing on a nook color anyway? it's not actually an android tablet, per se Jan 28 04:41:57 if it looks ok on the g2, then don't worry about it Jan 28 04:42:13 Yeah, I'm really only asking out of intellectual curiosity. Jan 28 04:42:49 this shouldn't come up if you put the app on the market Jan 28 04:43:22 Aha! Jan 28 04:43:38 The G2 _is_ HDPI, so it make sense that the assets look wonky on the Nook Color. Jan 28 04:45:01 hey guys Jan 28 04:45:55 i'm trying to save a picture in external storage. it fails when doing method mkdirs(). I beleive its because i don't have permission to create files. What do i add to the manifest file to allow file manipulation? Jan 28 04:46:06 I'm trying to save to the public directory Jan 28 04:46:12 how can I get the ant build system to not only install my app on the target system, but also to start itits main activity? Jan 28 04:46:24 (just like eclipse) Jan 28 04:47:19 sorry found it guys Jan 28 04:47:25 i should have looked at dev document closer Jan 28 04:56:18 https://market.android.com/details?id=com.spartacusrex.spartacuside&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5zcGFydGFjdXNyZXguc3BhcnRhY3VzaWRlIl0. what do you guys think of this? Jan 28 04:58:40 VonRath: did you try adding custom handling for the nook? Jan 28 05:02:56 No. Jan 28 05:03:13 Another question: Will an HDPI asset render grainily (sorry) on MDPI? Jan 28 05:04:16 so if i use an intent for camera and specify the URI to save the image. The intent received in the callback method would not have that filepath in the data key? Jan 28 05:04:40 VonRath, scaling down is usually a lot better than scaling up Jan 28 05:04:55 VonRath: shouldn't it be downscaled? Jan 28 05:04:56 i know i could try it , but i keep getting null pointer when i try to retreive that image from that intent. Jan 28 05:06:15 quick tip, anti-aliasing does not look good if image has been downscaled Jan 28 05:06:56 on a bitmap that is Jan 28 05:08:52 I'd think so. Jan 28 05:09:48 I know how to specify different assets for the different DPI levels (drawable-hdpi, drawable-mdpi), but how do I specify different assets for the different screen sizes? (small, normal, large, etc) Jan 28 05:10:16 Do I create subfolders in the drawable-mdpi and drawable-mdpi folders called like small, normal, large...? Jan 28 05:10:26 howdy Jan 28 05:10:33 stupid noob question Jan 28 05:10:38 but im trying to play with the sdk Jan 28 05:10:40 you should only be worrying about DPI Jan 28 05:10:44 using eclipse Jan 28 05:10:53 and im having trouble getting the "adt" plugin Jan 28 05:10:54 screen size is something that's the responsibility of the layouts to accomidate, usually Jan 28 05:10:57 is there a direct download Jan 28 05:11:26 VonRath: i don't think that's an official thing Jan 28 05:11:32 Huh, okay. Jan 28 05:11:33 people just came up with that terminology Jan 28 05:11:38 it is official Jan 28 05:11:41 lol Jan 28 05:11:43 small, normal, large, xlarge Jan 28 05:11:44 there you go Jan 28 05:11:44 Sorry to be beating a dead-horse here. Jan 28 05:11:47 Right. Jan 28 05:12:03 If i do EXTRA_OUTPUT to the intent action for camera. The intent object in the callback method does not have handle to the filename that was written to ? Jan 28 05:12:10 Let's say I have a tiny HDPI device and a huge HDPI device... should the gradient background images display identically on the 2, despite their different sizes? Jan 28 05:12:14 VonRath, those are *usually* for non-drawable assets Jan 28 05:12:31 oh background stuff Jan 28 05:12:45 well if you're doing a gradient you could do it in XML so it scales infinitely Jan 28 05:12:52 JakeWharton: And in that case, I _would_ create folders for the different sizes? Jan 28 05:13:00 Let's say I didn't do that. ;) Jan 28 05:13:06 you would add the classifiers to the folder Jan 28 05:13:13 drawable-hdpi-large Jan 28 05:13:15 etc. Jan 28 05:13:21 Theoretically it should scale correctly if it's the same DPI, right? Jan 28 05:13:26 Thanks, JakeWharton! Jan 28 05:13:45 IE: Again, large screen, small screen same DPI assets should render identically right? Jan 28 05:14:01 they'll take up the same amount of pixels Jan 28 05:14:19 they will be different sizes in relation to the screen size though Jan 28 05:14:55 Okay, what if I specify that the scaletype is such that it should populate the entire screen? Jan 28 05:15:50 well if you're doing that you probably don't need DPI-specific resources because it will be scaled anyways Jan 28 05:16:13 But it might look awful on different screen sizes, right? Jan 28 05:16:59 well, it depends Jan 28 05:17:08 Audible laughter. Jan 28 05:17:27 you can have a 4" mdpi screen and a 4" xhdpi screen Jan 28 05:17:42 Sure. Jan 28 05:17:45 but you can also have a 10" mdpi and a 10" hdpi, etc. Jan 28 05:17:53 i would just pick a couple buckets and make images for those Jan 28 05:17:58 no need to provide a ton of images Jan 28 05:18:14 What if I have a 4" HDPI and a 10" HDPI? Will the background image scale correctly and not look grainy on the larger device? Jan 28 05:18:16 if you're doing gradients, though, i would recommend doing XML drawables Jan 28 05:18:28 Definitely. I'm really just asking to better understand how this works. Jan 28 05:18:56 no, it will look grainy because its still being scaled up to 4x as many pixels Jan 28 05:19:17 the density only means that they have the same number of pixels per inch Jan 28 05:19:21 So, how do I fix that... assuming I'd love to do the wrong thing and use an image? Jan 28 05:19:26 ;) Jan 28 05:19:39 you're going to get banding on any scale operation Jan 28 05:20:13 Is there anything that can be done to specify an alternate resource for the larger screen? Jan 28 05:20:27 Not that I want to -- just curious. Jan 28 05:21:24 for Android 3.2+ there are better qualifiers that are content size driven that allow you to specify assets when there is so many device-independent pixels available Jan 28 05:21:33 you can use -large but you don't know the resolution without the DPI too Jan 28 05:21:48 So... short answer is "no?" Jan 28 05:21:52 it could be 800x480 and ugly or 1920x1080 and gorgeous Jan 28 05:22:10 but both are still 'large' or 'xlarge' screens Jan 28 05:22:24 App I just built has a pretty ugly splash screen with some gradients in it, and it looks awful on my Nook Color (I know I shouldn't be testing on a Nook Color), because it scales jaggedly. Jan 28 05:22:48 Looks great on most phones. Jan 28 05:22:57 So how do we resolve this? Jan 28 05:23:38 well, you could provide a better asset for a more specific qualifier to target the Nook Color Jan 28 05:23:49 you could even use the device ID to target only the Nook Color Jan 28 05:24:13 but that should be a last resort Jan 28 05:24:31 But what if it looks horrible on all larger tablets? Jan 28 05:24:41 Looks great on small screens, looks terrible on big screens. Jan 28 05:24:43 heh Jan 28 05:24:49 Feel like I owe you a case of beer at this point. Jan 28 05:25:49 guys if im using IMAGE_CAPTURE intent to get a picture... i use the EXTRA_OUTPUT. Do i have to keep track of the URI i save it so i can for example set a image view to be the bitmap of the image saved or does the data intent in the callback method have some feature to return the bitmap or the uri Jan 28 05:26:03 i would add -hdpi-large and -mdpi-large images then Jan 28 05:26:08 that should cover most tablets enough Jan 28 05:27:37 Cool, thanks a lot for the help with understanding this. Jan 28 05:28:00 If you're in or near SF I'd be glad to get some beer delivered to you next week. Jan 28 05:28:24 VonRath: SF? Jan 28 05:28:24 i'll be in SF on Monday for an interview :) but no beer is required Jan 28 05:28:55 asset management is the bread and butter of why Android rocks so I'm happy to make people more aware of how it works (or try to) Jan 28 05:28:56 JakeWharton: you are applying for android dev position ? Jan 28 05:29:00 ok any help for a noob who is getting timeout erros while trying to install adt in eclipse :) Jan 28 05:29:28 sileni, yeah someone contacted me a few weeks ago and I figured the timing was right Jan 28 05:29:42 DemonicMember, site might be down Jan 28 05:29:44 JakeWharton: nice. good luck :) Jan 28 05:29:45 are you using https or http? Jan 28 05:29:50 I feel like I mostly understand how it works -- but I've never thoroughly understood how to specifically target larger screen sizes. Jan 28 05:29:54 i turned off https just http Jan 28 05:30:04 JakeWharton: Yeah, good luck. Interviewing anywhere good? Jan 28 05:30:07 JakeWharton: dang you are going to rock that interview out of the water Jan 28 05:30:15 yeah been trying for 24 horus Jan 28 05:30:17 JakeWharton: Do we get to know where you're interviewing? Jan 28 05:30:18 guess ill give it a day or two Jan 28 05:30:45 Heh, no, sorry. But if I get hired you'll be more than welcome to know :) Jan 28 05:30:51 And thank you for the kind words Jan 28 05:30:58 JakeWharton: Is it a popular startup? Jan 28 05:31:03 Very Jan 28 05:31:12 TaskRabbit ? Jan 28 05:31:19 ;) Jan 28 05:31:31 does it have two o's two g's and l and an e in it ? Jan 28 05:31:31 Nope. I imagine we could be here all night guessing, though, there's so many Jan 28 05:31:37 heh Jan 28 05:32:11 JakeWharton: you should take my question as a interview question Jan 28 05:32:16 JakeWharton: it might come up i promise! Jan 28 05:32:28 So, just to be clear again, I can have a folder called drawable-hdpi-large for storing bigger versions of things like a splash resource? Jan 28 05:32:53 sileni, what was it? Jan 28 05:33:51 JakeWharton: so i'm using the camera intent ("IMAGE_CAPTURE") ... i pass it "EXTRA_OUTPUT" and a valid uri.. it saves the file fine but in the callback method im trying to use the data intent to set a bitmap in an imageview and im failing Jan 28 05:34:10 JakeWharton: does the data intent in the callback method have anyway of getting handle to the image saved? Jan 28 05:34:36 it should Jan 28 05:34:41 never used the camera myself though Jan 28 05:34:52 tons of apps do what you describe Jan 28 05:35:01 JakeWharton: Bitmap image = (Bitmap) data.getExtras().get("data"); doesn't work Jan 28 05:35:04 JakeWharton: oh ok Jan 28 05:35:07 What i describe? Jan 28 05:35:33 http://stackoverflow.com/a/6789827/132047 Jan 28 05:35:36 VonRath, yes Jan 28 05:35:44 sileni, link^^^ Jan 28 05:36:13 Thanks again. Jan 28 05:36:35 VonRath, http://developer.android.com/guide/topics/resources/providing-resources.html Jan 28 05:38:12 JakeWharton: ye i did what the second guy did and it didn't work Jan 28 05:38:47 what about the accepted answer? Jan 28 05:39:54 http://stackoverflow.com/a/4418602/132047 Jan 28 05:39:57 comments on that one Jan 28 05:42:18 ye i guess im running into that problem where it is null Jan 28 05:42:50 last comment gives solution Jan 28 05:44:22 JakeWharton: the keyboard|orientation solution? Jan 28 05:44:29 JakeWharton: or just keeping track of the filename myself Jan 28 05:45:23 filename Jan 28 05:47:59 JakeWharton: k thanks i will go that route Jan 28 05:48:09 JakeWharton: i hope you land that job, you are very nice for helping others! Jan 28 05:51:58 thank you! Jan 28 06:06:02 http://pastebin.com/w3Rg0RyL Jan 28 06:06:20 what am I doing wrong? If i remove "b0.setVisibility(..);" Jan 28 06:06:23 it works.. Jan 28 06:08:54 whats the error you are getting?... Jan 28 06:09:47 I suck at using debugger ._. Jan 28 06:11:43 can you pastebin your logcat? Jan 28 06:13:48 http://pastebin.com/eB1LRxZr Jan 28 06:16:07 thats just your console, logcat will be the one that looks like "andy" laying down Jan 28 06:17:59 I just copied it fromt he "logcat" tab.. :o Jan 28 06:18:15 i'll do this thing later, first will go learn how to use debugger :\ Jan 28 06:18:18 anyway, android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Jan 28 06:18:45 is the error related to that ^? ? Jan 28 06:21:50 it looks like it Jan 28 06:22:33 so, the "View.VISIBILE" may be crashing the app? Jan 28 06:23:50 Or, it means, i can't use the "b0" button here... Jan 28 06:27:35 you can't touch the UI from a background thread Jan 28 06:28:55 instead of creating a new thread try posting a runnable to the UI thread Jan 28 06:28:57 or using a handler Jan 28 06:30:37 umm... Jan 28 06:31:56 runOnUiThread(new Runnable() { public void run() { /* UI stuff */ } }); Jan 28 06:33:02 Cool... Jan 28 06:33:42 working, thanks. Is startingActivity a UI stuff too? :o Jan 28 06:33:56 startActivity* Jan 28 06:37:07 uh Jan 28 06:37:18 i don't think so Jan 28 06:37:24 never really tried Jan 28 06:37:43 and i'm unfamiliar with startActivity's implementation Jan 28 06:56:47 Thanks again, JakeWharton! Jan 28 06:56:56 Good luck at that interview. Jan 28 06:59:45 why do people insist on nesting fragments Jan 28 07:22:06 is it possible to have one edittext field be active for multiple views? more in a sense of, view1 can use edittextX, store the text, view2 opens edittextX and it be empty, click view1 and view1's text is back in edittextX ? does that make sense? Jan 28 08:15:16 What is a sensible way to organize my Eclipse Android projects? Jan 28 08:15:24 Do you guys make separate workspaces for each project? Jan 28 08:23:49 tree: no Jan 28 08:27:08 usually all in one workspace? Jan 28 09:43:32 hello all Jan 28 09:44:29 in my bindView() I am hiding/showing certain view's based on criteria I have set. However, when I am scrolling through the contents of the ListView, sometimes the data shows and sometimes it doesn't. Like one item shows no time, I leave the activyt and re-enter then it appears. I scroll around and it disappears. Jan 28 09:46:25 If you hide it, you have to show it again if needed Jan 28 09:46:58 based on criteria one of my items should always show the time.. when i scroll it shows at times and disappears at times. Jan 28 09:47:14 its all DB driven so the data is static Jan 28 09:48:30 Maybe some code Jan 28 10:09:20 hello there Jan 28 10:24:28 Hi guys, do you know if there's a way to add Google +1 support to mobile applications? Jan 28 10:25:01 stermi: there is an api Jan 28 10:25:16 Google+ api at the moment is read only Jan 28 10:25:27 your original question didn't state that Jan 28 10:25:42 that criteria so yes there's an api is the only answer to your question Jan 28 10:26:29 I asked if there was a way because at the moment the Google+ API is read only mode. So maybe someone tried to use a WebViw to add the +1 Jan 28 10:26:57 that's tricky and a little dirty but maybe it's a way to solve the problem Jan 28 10:27:05 *shrug* Jan 28 11:13:42 can anyone tell me why table were not created? it seems like my "oncreate" of SQLiteOpenHelper was never invoked Jan 28 11:14:09 is the "onCreate" only invoked when the database is created first time? Jan 28 11:32:48 if you published something in the market, for example com.mydomain.myapp as Packagename, is this Name for ever unchangeable? Jan 28 11:34:30 since you publish an APK it shouldn't be a problem Jan 28 11:34:46 you should be able to change package names ad-libitum Jan 28 11:36:39 well, I puplished for testing an app called com.mydomain.testapp. Now I want to have a new free com.mydomain-namespace. Jan 28 11:37:34 keep the name of the application and the name of the apk file the same and it should work Jan 28 11:38:08 or you remove your testapp from the market and publish the new app with your new namespace Jan 28 11:42:00 but isnt it still somewhere in the filestructur? Just hidden? Jan 28 11:43:11 I would like to include a shell-script in my Android application (As I would like the shell-script to function as a "backend" for some operations). how is the right way of doing that ? Jan 28 12:09:50 obviously you can only continue executing the code that depends on login after that thread is ready Jan 28 12:09:53 the correct code will use AsyncTask and write the code that deals with the login result in onPostExecute Jan 28 12:09:56 that way they are sequenced while main thread is free to respond to UI events Jan 28 12:09:59 in general terms android relies on a messages being sent between threads to handle cooperation. The UI thread can be notified at any time to do something by scheduling work for it in its message queue. However, asynctask hides all the details for you Jan 28 12:10:03 but if you need to do threading yourself, I strongly recommend trying some of these tried & true models such as producer-consumer which communicate by some BlockingQueue. These are easy to reason about, and android actually has something kinda like this which it calls IntentService. Jan 28 12:10:08 Also ExecutorService, which is what asynctask also relies on Jan 28 12:10:10 but in this case, forget about them. AsyncTask. Jan 28 12:10:26 yes, read the manual for asynctask Jan 28 12:10:28 better that than reinvent what it does, poorly Jan 28 12:10:31 also pay attention to the onProgressUpdate / publishProgress pair. Jan 28 12:10:34 you might not need it at this instance, but time comes when you will. Some guy was just yesterday reimplementing it. Jan 28 12:10:56 lack of antialiasing is even worse, though. It's mathematically true, at least. Jan 28 12:10:59 the larger issue is that downscaling algorithms we have ignore gamma correction during their operation, so they make things too dark. The actual downscaling process is otherwise a simple equal-area averaging (or that is one model to use for it) Jan 28 12:11:03 I have an idea about what a good scaling algorithm should do, but have not bothered to implement it yet. Jan 28 12:11:06 instead of square splotches of paint that are exactly 1 pixel wide and tall, I'd have overlapping smudges which are carefully placed so that equal-area averaging of the image still yields the original image. It would antialias naturally, and would preserve contrast better during minor scaling operations with high-frequency image data. Jan 28 12:11:17 There's no such scaletype. I imagine ImageView's width and height set to match_parent and scaleXY="fit" or something Jan 28 12:11:20 and you want only one asset, the highest resolution version of the image you got. Let android worry about scaling it. Jan 28 12:11:23 although do not go overboard with it. Make sure details are well visible in the highest resolution image but no more Jan 28 12:11:26 or was it scale="fitXY" Jan 28 12:11:28 anyway Jan 28 12:11:31 VonRath: 10" HDPI is probably something like 300 pixels per inch, so ... it's going to need around 2000 pixels to the larger dimension to have unique data per pixel. Jan 28 12:11:34 you should select the image's size according to size of the fundamental features in the image. That matters. Jan 28 12:11:37 there's no sense in generating a large but blurry source image. Android can make the same image from lower resolution version. Jan 28 12:11:46 downscaling is not supposed to look jagged, especially if the bitmap is filtered Jan 28 12:11:49 upscaling will produce jagged look because our image scaling algorithms are primitive and do not really try to preserve "information" in the image in undistorted way Jan 28 12:11:52 so they look at it as interpolation problem rather than as information content problem Jan 28 12:12:03 .... waaaaaaaaaall of text Jan 28 12:12:21 Note that this is not what a problem description Jan 28 12:12:23 Looks like use of UI objects outside main thread Jan 28 12:12:26 so you want to use AsyncTask, not Thread. Jan 28 12:12:28 Read up on it, it will servce you well. Jan 28 12:12:31 Dattz: also notice that you can use postDelayed and such methods on views to cause delayed execution of code Jan 28 12:12:34 no Threads are required for this kind of simple time delays. There's also the whole animation framework, also. Jan 28 12:12:37 Dattz: yes, I already told you. Jan 28 12:12:39 Use asynctask if you need to do something for a while and update views afterwards Jan 28 12:12:42 or use postDelayed or the animations framework for simpler things that don't actually imply background processing Jan 28 12:12:45 You can not use the view objects outside the ui thread. Jan 28 12:12:48 (technically inaccurate, as the exception's message says, but whatever. This is the only practical case that applies on android) Jan 28 12:12:51 me neither. I tend to use UI thread for everything except operations that actually can take a while to do Jan 28 12:40:07 after moving a module to another location and changing the packagename, the ressourcefile is still generating in the old directory. Any Ideas why? Jan 28 12:43:27 I have to correct, it is generated in the right directory but with the old package name. Jan 28 12:43:40 I cant find out why. Jan 28 12:47:42 did I just write some utter crap in here? I had some WEIRD bug in my fucking irc client Jan 28 12:48:07 I had system clock skewed off by some 7 hours, and fixing that caused my stupid client to flood all sorts of shit everyplace Jan 28 12:48:10 I don't get it. Jan 28 12:54:10 http://humorswitch.com/5335/meanwhile-in-iran/ Jan 28 12:54:51 in fact it was not skewed by 7 hours but 7 hours + 1 YEAR. Jesus. What on earth is going on with this virtualbox stuff, I have never had problems before except with this shit Jan 28 12:55:03 come March or so I'll definitely get rid of this piece of shit tech Jan 28 13:43:39 hi, what's replaced tabactivity? Jan 28 13:44:23 when compiling against 4, i see TabActivity is being marked as deprecated Jan 28 13:44:49 ViewPager or some such Jan 28 13:45:19 is that backwards compatible? Jan 28 13:46:42 ffs - "Note this class is currently under early design and development. The API will likely change in later updates of the compatibility library, requiring changes to the source code of apps when they are compiled against the newer version." Jan 28 13:47:02 ie, we've included alpha code for your enjoyment and deprecated the solid class Jan 28 14:00:57 oh and and and documented it! Jan 28 14:03:50 i think even all the goodness android brings, you're still looking to constantly update your app with new versions of android, and new devices Jan 28 14:12:13 thomasr2: http://developer.android.com/reference/android/app/TabActivity.html it says right here what you should do instead of using TabActivity Jan 28 14:16:33 how to set a textview's scrollbar from the right to the left side? Jan 28 14:22:27 anyone? Jan 28 14:32:53 hey folks. are there other projects like app inventor, which may be used to teach pupils smartphone development? Jan 28 14:35:58 Ge0rG: sure. a teacher who knows phone app development Jan 28 14:39:09 How to change the position of a TextView's Scrollbar from right to left side? Idk, how to use SCROLLBAR_POSITION_LEFT........... Jan 28 14:39:48 thomasr2: I suppose you are such a person? Or maybe you know such a teacher? Somebody who is able to teach UX, Java and Android principles to a group of high schoolers within three days? Jan 28 15:06:27 I would like to include a shell-script in my Android application (As I would like the shell-script to function as a "backend" for some operations). how is the right way of doing that ? Jan 28 15:47:43 hello Jan 28 15:47:48 * feesh throws down the gauntler Jan 28 15:47:59 * feesh also throws down his Inglish Dicshunary Jan 28 15:48:17 does anyone know how to get the position of a view relative to the top left of the screen? Jan 28 16:07:26 boom Jan 28 16:07:29 for those playing along at home Jan 28 16:07:32 getLocationInWindow Jan 28 16:12:06 and getLocationOnScreen Jan 28 16:19:55 are tablet screens considered xhdpi and xlarge? Jan 28 16:21:24 hi all Jan 28 16:22:41 is there any complete android sdk package around ? Jan 28 16:26:44 Im developing for froyo and up, but I don't want to include tablet support Jan 28 16:26:49 possible? Jan 28 16:35:29 Does the map api key have to be associated with the email used to publish the app? Jan 28 16:37:32 no Jan 28 16:37:44 thanks Jan 28 16:39:04 Im uploading my app, and I have enabled 12 permissions. It says that the user will be warned about all of them. Is this normal? Jan 28 16:39:16 yep lol Jan 28 16:40:12 Ok. I dont think it will literally prompt the user? Jan 28 16:40:31 its part of the confirmation process Jan 28 16:40:43 go intall any app and ital be after u click install Jan 28 16:53:21 Yay for optimizing old layout files Jan 28 16:53:32 4 viewgroups and 9 views could be made with 1 viewgroup and 3 views Jan 28 17:15:23 Can I add any layout as custom view to the Action Bar, or does it have to be for navigation? I would like to display some information there that is periodically updated. Jan 28 17:27:42 Is there a way to disable xlarge screens in api 8? Jan 28 17:28:06 it seems the only thing I can do is to use supports-screen, but that automatically reverts to compatibility mode. Jan 28 17:28:16 I dont want it to show up in the market place at all Jan 28 17:36:34 geestring, there are no xlarge in 8 Jan 28 17:36:42 it didnt exist until 9 Jan 28 17:36:47 and i think the first one released was 11 Jan 28 17:39:11 Hello. Does anyone know anything about the state of ecryptfs on Android? Jan 28 17:52:59 can anyone tell me the domains through which the admob ads are being retrieved Jan 28 17:53:07 i tried blocking m.admob.com and r.admob.com but its using some other domain i think Jan 28 17:53:15 the ads that are displayed inside apps8 Jan 28 17:53:17 apps* Jan 28 17:54:56 someone coming to the DroidCon? Jan 28 17:57:06 anyone knows from which domain, the admob (Google ads) are fetched ( and is it through http?) Jan 28 17:58:31 does any one know the domain from which admob ads for android (by Google shit!) are being fetched, like pagead2.googlesyndication.com for adsense, whats the domain for admob? Jan 28 17:59:05 They're from 127.0.0.1 Jan 28 17:59:26 simonvt? admobs are from 127.0.0.1? you serious? Jan 28 17:59:32 yes Jan 28 17:59:50 how come Jan 28 17:59:59 prakas: just pay for your apps instead. :p Jan 28 18:00:17 xertoz i have never paid for an app in my life, being a linux user Jan 28 18:00:22 Ask Google how you block the way they make money and are able to supply free services Jan 28 18:00:33 Hmm I'm a Linux user and I pay for apps. Jan 28 18:00:46 hey, I have Linux on some machines, too. Jan 28 18:00:48 i was thinking not to buy an android and i'd buy a linux with lxde instead of android Jan 28 18:01:09 but i ended up getting an android Jan 28 18:01:22 android is linux, duhh Jan 28 18:02:53 and there is no LXDE for mobile devices :) Jan 28 18:03:18 xertoz without a nonstandard java vm like openjdk and instead with a dalvik which makes things complicated Jan 28 18:03:20 Anyone know why I can't open and read from an emulator's sound card? Jan 28 18:03:30 Works fine on a device. Jan 28 18:04:45 Hello, I'm trying to create buttons dynamically by using image sets from a database for the selected and unselected states Jan 28 18:04:57 however I am not quite sure how to achieve this Jan 28 18:04:59 i dislike the disappearance of the familiar X button that we see in even LXDE ;) Jan 28 18:05:06 to close a window Jan 28 18:05:07 lol Jan 28 18:05:32 use a powerful 1Ghz processor to run only dalvik apps lol Jan 28 18:05:55 even a 233Mhz processor with a standard desktop environment is more usable Jan 28 18:07:11 I would normally use btn.setBackgroundResource when the xml resource is available, but this is not the case, as the images are taken directly from the database, so I don't have any selectior/item definition Jan 28 18:33:40 usiwireless? Jan 28 18:39:26 Hello, I'm trying to create buttons dynamically by using image sets from a database for the selected and unselected states Jan 28 18:39:28 however I am not quite sure how to achieve this Jan 28 18:39:32 I would normally use btn.setBackgroundResource when the xml resource is available, but this is not the case, as the images are taken directly from the database, so I don't have any selectior/item definition Jan 28 18:44:01 Akuma: stackoverflows website has a few things that might help but they are down for about a hour Jan 28 18:44:04 http://www.google.com/url?sa=t&rct=j&q=image%20outside%20of%20app%20android&source=web&cd=2&ved=0CDIQFjAB&url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F4304387%2Faccessing-an-image-outside-the-drawable-folder-in-android&ei=vEEkT8DRE-SL0QHFtM3SCA&usg=AFQjCNGj-o_yK_T30nbyDpcu8Ouevb-hsQ Jan 28 18:44:09 oops Jan 28 18:44:25 http://www.google.com/url?sa=t&rct=j&q=image%20outside%20of%20app%20android&source=web&cd=2&ved=0CDIQFjAB&url=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F4304387%2Faccessing-an-image-outside-the-drawable-folder-in-android&ei=vEEkT8DRE-SL0QHFtM3SCA&usg=AFQjCNGj-o_yK_T30nbyDpcu8Ouevb-hsQ Jan 28 18:44:30 dammit Jan 28 18:45:18 http://stackoverflow.com/questions/4304387/accessing-an-image-outside-the-drawable-folder-in-android Jan 28 18:46:39 Akuma, so just load it with a bitmap factory Jan 28 18:46:43 Thanks for the link. I have no problems accessing images outside of drawable or loading them from the db. My issue is actually creating a button with pressed and unpressed states based on the images I have on my db Jan 28 18:46:47 and setBackgroundDrawable Jan 28 18:46:53 <_Aries_> Hey guys, I was wondering if someone could direct me to a good website to learn how to create an app. Jan 28 18:46:56 create a new statelistdrawable programtically Jan 28 18:47:09 statelistdrawable Jan 28 18:47:23 that sounds like what I'm looking for Jan 28 18:47:28 _Aries_, d.android.com is the best -- read the dev guide Jan 28 18:47:37 <_Aries_> thanks! i will do that Jan 28 18:47:44 _Aries_, then read the android training resources and samples that come with the sdk Jan 28 18:47:54 <_Aries_> i have searched but there is not much on the net, I was direct to this channel Jan 28 18:48:03 _Aries_, do keep in mind that the samples are not very good examples of best practices Jan 28 18:48:15 I'll look into that Jan 28 18:48:17 thank you Jan 28 18:50:19 Im trying to publish my app, and it says 493 devices supported, but when I click Show Devices, it shows nothing. When I search specific devices like the nexus, I get no support. Jan 28 18:50:23 is this a bug? Jan 28 18:52:02 Depends, did you filter out the nexus? Jan 28 18:52:35 no. I didn't filter out anything. At least not knowingly Jan 28 18:53:02 Uses sdk, supports screen, permissions, anything like that in the manifest will filter devices Jan 28 18:53:07 are there other projects like app inventor, which may be used to teach pupils smartphone development? Jan 28 18:53:09 should I immediately get a list of supported devices when I click Show Devices? Jan 28 18:53:17 It can be slow at updating Jan 28 18:53:33 But yea, mine shows a list of devices immediately Jan 28 18:53:52 ok. Well mine has nothing but says supports over 493 devices. weird Jan 28 18:56:01 help Jan 28 19:00:54 sqlite doesnt support the "as" clause right? Jan 28 19:01:04 Pretty sure it does Jan 28 19:01:29 * Jug6ernaut could have sworn he had tried it Jan 28 19:01:33 * Jug6ernaut guesses he will try again hehe Jan 28 19:01:53 http://www.sqlite.org/syntaxdiagrams.html#result-column Jan 28 19:02:15 :S Jan 28 19:11:59 I would like to include a shell-script in my Android application (As I would like the shell-script to function as a "backend" for some operations). how is the right way of doing that ? Jan 28 19:15:58 looking for a recommendation. I have an activity that has a set of textviews and buttons at the top and then a listview at the bottom Jan 28 19:16:08 I want it all as one long layout that you can scroll up and down in Jan 28 19:16:25 but when I put the listview at the bottom of the linearlayout in the scrollview it doesn't show the whole listview Jan 28 19:36:16 Is 12 permissions a lot for an app? Jan 28 19:36:28 I'm trying to figure out if I can reduce it Jan 28 19:36:53 quite :) Jan 28 19:37:42 lol Jan 28 19:37:45 who cares Jan 28 19:37:48 * Jug6ernaut doesnt Jan 28 19:38:00 who honestly looks at permissions when they install an app xD Jan 28 19:38:59 there are some people who do Jan 28 19:39:33 i wouldnt think it would be many... Jan 28 19:39:41 i mean if u need the permissions u need them :\ Jan 28 19:39:44 but still yea 12 is alot haha Jan 28 19:41:17 ok I think I can take out a few of them :) Jan 28 19:41:31 I already published... I'd have to do an update? Jan 28 19:41:39 correct Jan 28 19:42:37 Hi - I'm doing some animation by writing to a canvas on a surface. All ok, except that the lockCanvas() method clears the canvas to black every frame, meaning I have to redraw a lot of the static parts of the UI. Is it possible to prevent lockCanvas() from clearing this buffer? Jan 28 19:42:41 It shouldnt take too long for my published app to show up on the marketplace? Jan 28 19:48:12 I've tried to use lockCanvas(Rect r) and specified a small rectangle at one corner of the canvas, but it still clears the whole canvas. Guess it could be a bug in the tablet's Android implementation but I can't test on another device at the moment Jan 28 19:48:49 geestring 30-hour Jan 28 19:49:14 ogl ftw Jan 28 19:57:03 [14:39:35] i mean if u need the permissions u need them :\ Jan 28 19:57:06 well thats not really true Jan 28 19:57:19 a lot of people will request stupid permissions because they dont know better ways of doing things Jan 28 19:57:32 i wont install games that require "READ PHONE STATE AND IDENTITY" Jan 28 19:57:42 there is no reason for a game to need my IMEI Jan 28 19:58:26 that being said, on iOS, if an app exists, it can do almost anything Jan 28 19:58:28 https://www.jailbreakingisnotacrime.org/ Jan 28 19:58:40 things like location services need special access, and push notifications Jan 28 19:58:42 but thats about it Jan 28 19:59:32 Doesn't zyngas apps request that permission? :p Jan 28 20:02:35 and im pushign back against that Jan 28 20:02:42 but there are zynga games i wont install Jan 28 20:02:43 :P Jan 28 20:04:54 Google should have made it more finegrained Jan 28 20:05:36 SimonVT, alot of stupid apps request that permission Jan 28 20:05:58 Ah I see - lockCanvas(Rect) is of no practical use then - it's exactly the same as calling lockCanvas() but restricts the area of the canvas you can change. How bizarre! Jan 28 20:06:11 Smashcat, performance. Jan 28 20:06:11 SimonVT, for that permission though, i think it's our ad provider Jan 28 20:06:14 we dont use it Jan 28 20:06:27 most ad sdks ive seen require it Jan 28 20:06:27 canadiancow, tell them to stop stealing users private data? :P Jan 28 20:06:53 Mavrik: Fair enough, but it clears the area you can't change to black?! So unless you want to view a smaller area of the screen, it's useless. Jan 28 20:07:04 canadiancow: I've seen ad providers that say "get this permission when using our sdk", but really they just check if the permission is there. If so, get imei. If not, generate an uuid Jan 28 20:07:14 really? Jan 28 20:07:22 Can't remember which, but yeah Jan 28 20:07:29 im really tempted to go test that out right now and see if nothing crashes :P Jan 28 20:07:46 but why do they even need a uuid Jan 28 20:07:52 if you have to login to play the game, use the damn username Jan 28 20:08:23 Smashcat, no, you use it to tell android you're only updating a part of canvas Jan 28 20:08:29 Heh, yeah Jan 28 20:08:34 Smashcat, which helps drawing performance Jan 28 20:08:48 Tbh, I have no problem with them wanting an uuid.. That permission is just a bit scary Jan 28 20:09:23 Smashcat, read the docs: lockCanvas() forces you to update WHOLE canvas. lockCanvas(Rect) doesn't. Jan 28 20:09:48 SimonVT, but you can generate a UUID Jan 28 20:09:55 i dont want a game knowing my IMEI Jan 28 20:10:00 theres a lot of scary shit you can do with an IMEI Jan 28 20:10:10 canadiancow, there was a time when UUID generation method didn't exist/work Jan 28 20:10:16 and almost always, they want to uniquely identify USERS Jan 28 20:10:21 of course, ad people want to tack you even if you reset your phone Jan 28 20:10:27 if i sell my phone, i dont want you gaining access to all my shit Jan 28 20:10:29 Mavrik: Well, lockCanvas(Rect) does require you to update the entire canvas unless you don't mind some of it being cleared to black I guess. Jan 28 20:10:36 Smashcat, no Jan 28 20:10:43 Smashcat, it requires you to update entire Rect Jan 28 20:11:54 Mavrik: hmm, that's not what I'm seeing, but I'll check again. Seems to me that it clears the whole canvas whenever it's called. Jan 28 20:12:45 What is a 'restricted' context? What does it mean? Jan 28 20:12:53 http://developer.android.com/reference/android/content/Context.html#isRestricted() Jan 28 20:13:12 a restricted context may disable specific features. For instance, a View associated with a restricted context would ignore particular XML attributes. Jan 28 20:13:34 con: yep, just saw it when following the link. Thanks! :D Jan 28 20:13:39 canadiancow* Jan 28 20:19:47 Mavrik: No, it definitely clears the entire canvas between unlockCanvasAndPost() and the next lockCanvas(Rect) on this tablet. It's no big deal, I can just redraw the whole UI every frame, even though there's only a small region changing between frames. Jan 28 20:22:28 canadiancow: https://github.com/mobfox/MobFox-Android-SDK/blob/master/sdk/src/com/mobfox/sdk/MobFoxView.java#L338 Jan 28 20:22:35 It was mobfox :p Jan 28 20:22:45 ok Jan 28 20:22:50 but they might all do that Jan 28 20:24:18 yeah Jan 28 20:24:50 They're rather smart about it as well, they even check for known fucked up ANDROID_ID's :p Jan 28 20:28:06 lol Jan 28 20:30:45 is it possible to reverse engineer a kernel? Jan 28 20:31:47 its only a matter of time and skill. Jan 28 20:31:47 or decompile a kernel? Jan 28 20:32:11 thanks. Jan 28 20:33:48 is there a channel that only discusses banned .apks? Jan 28 20:34:14 there was, but then it was banned. Jan 28 20:34:16 #banned-apks Jan 28 20:35:43 #barely-legal-apks Jan 28 20:36:33 #just-turned-18-apks Jan 28 20:36:51 #apks-with-low-self-esteem Jan 28 20:37:06 #apks-id-like-to-download Jan 28 20:37:51 hot. Jan 28 20:39:13 indeed Jan 28 20:52:14 Anyone know if this is a bug with the Eee Transformer tablet? I set the canvas clipRect(0,0,20,20); then draw a bitmap, then set the clipRect to (0,0,800,700) and check the canvas getClipBounds() and it returns "Rect(1160,50 - 1280,130)" Jan 28 20:52:28 try it on something else... Jan 28 20:52:54 Unfortunately left my phone at the office. Jan 28 20:53:02 * hackkitten does a kitteh smash~ (o/ Jan 28 20:53:12 so try it on an emu Jan 28 20:53:28 hahaha, yeah right :-) Jan 28 20:53:50 Takes the emulator about 10 minutes to start on this Jan 28 20:53:53 ok Jan 28 20:53:59 and youve been in here far longer than that Jan 28 20:54:20 You don't have to stare at the loading screen, you know Jan 28 20:54:24 You can keep coding Jan 28 20:55:16 Well the emulator is completely unusable for me. I don't even bother launching t any more. Jan 28 20:56:31 It does a good job of emulating an Android device, if that device were powered by an Intel 8008 with 128bytes of RAM. Jan 28 20:56:52 need moar cores ;) Jan 28 20:57:16 Mavrik: If only it used them - got 8 cores here. It only uses 1! :-) Jan 28 20:57:17 it's not a very convenient way to run an app Jan 28 20:57:20 but unusable? Jan 28 20:57:45 yeah... they really need to implement HW accelerated drawing to speed tha tup Jan 28 20:58:11 You're not going to get the performance of a real device, but for regular apps, it's perfectly usable for basic testing Jan 28 20:58:33 * Ge0rG wonders which android device has the most bang for the buck in EU, and runs cyanogenmod... Jan 28 20:58:42 MDijkstra: I don't know anyone (IRL) who develops for Android that actually uses the emulator. It's horrific. Jan 28 20:58:45 probably the galaxy s II Jan 28 20:58:49 right now Jan 28 20:59:01 Ge0rG, probably the SII or Nexus S Jan 28 20:59:06 depends on pricing Jan 28 20:59:07 er Jan 28 20:59:13 Galaxy Nexus, not Nexus S -_- Jan 28 20:59:25 GN is pretty expensive thou Jan 28 20:59:36 I'd prefer the SII if price was an issue Jan 28 20:59:37 Mavrik: I'm looking for a less expensive alternative... max 200eur :> Jan 28 20:59:42 MDijkstra, around here it carries the same price as SII Jan 28 20:59:45 Ge0rG, em Jan 28 20:59:56 Ge0rG, go grab another 200€ from somewhere? :P Jan 28 21:00:00 Mavrik: where is that? Jan 28 21:00:21 MDijkstra, SI... pretty much all carriers carry them for ~400€ with contact Jan 28 21:00:21 Mavrik: I need a dozen devices for a course. you want to donate 2400eur? Jan 28 21:00:36 Ge0rG, noone said Android development was cheap Jan 28 21:00:56 Mavrik: android development _is_ cheap. Jan 28 21:01:04 Smashcat > the emulator is okay for 2.x 2D apps... but only if you do not have a device :) Jan 28 21:02:06 Mavrik: I think you get a S2 for free with a 24-month 30 euro plan here Jan 28 21:02:40 which is for free, except that it costs 720eur... Jan 28 21:02:49 hackkitten: I don't think it's any good for anything. It runs at 1/2 the speed of my old original Google Nexus phone, on an 8 core 3.7ghz i7 with 24GB RAM ;-) Jan 28 21:02:56 MDijkstra, ah, rather cheap :) Here the "free S2" plans are like 36€/m + Jan 28 21:03:14 which annoys me since I don't need such an expensive plan :P Jan 28 21:03:34 Mavrik: buy an used phone from swappa? Jan 28 21:03:37 Smashcat, so you have a bucket full of devices to test layouts on? Jan 28 21:03:48 Mavrik: Yep. Jan 28 21:03:55 ew. Jan 28 21:04:06 Smashcat > as I said, if it's your only option ;) Jan 28 21:04:20 p_l, US based, useless Jan 28 21:04:21 Mavrik: it's nice, not "ew" ;-) Jan 28 21:04:35 Smashcat, I just prefer running 4 emulators to test layouts :D Jan 28 21:04:40 doesn't work on 3.x+ though :\ Jan 28 21:04:48 hackkitten: Maybe if they rewrote it in Javascript it'd be quicker - hehe Jan 28 21:04:56 Mavrik: ... most phones on swappa are in US, or are you outside US? Mind you, shipping costs ~20$ Jan 28 21:05:08 p_l, we're talking about prices in euros ;) Jan 28 21:05:12 right Jan 28 21:05:25 still, shippig to EU is $20 with USPS Jan 28 21:05:34 Mavrick: haha, running 4 of those horrible emulators at once - that's my idea of hell! Jan 28 21:05:35 p_l, buying anything from US means 1 month of waiting, paying alot of shipping + insurance costs and then getting +20% VAT on that full price Jan 28 21:05:38 mostly not worth it Jan 28 21:05:39 especially if you ship without the original box Jan 28 21:05:52 Smashcat, not really, they're all equally slow and each takes one core :P Jan 28 21:05:52 Mavrik: also, 10 days with USPS... Jan 28 21:05:55 Ge0rG: that depends, you do get a plan for that amount Jan 28 21:06:02 Mavrik: VAT is not paid on international Jan 28 21:06:08 Ge0rG: so 720 isn't accurate either, more like 300ish Jan 28 21:06:11 Mavrik: only on intra-EU Jan 28 21:06:18 p_l, huh? Jan 28 21:06:24 MDijkstra: its probably still a ripoff :P Jan 28 21:06:33 Smashcat > the addition of some JIT-love would help, but Google refuses to modernize the emulator :) Jan 28 21:06:38 p_l, recheck that fact ;) Jan 28 21:06:43 Mavrik: buying from USA you don't pay VAT. Also, Swappa has *used* phones, so no VAT anyway Jan 28 21:06:45 Ge0rG: I dunno, I bought my GN without a plan Jan 28 21:06:53 are there any cheap androids with >256mb ram and cm7 support? Jan 28 21:07:04 I just wish Google would release a simulator like the ones for iOS, or the old J2ME emulators for debugging, then the crap emulator could be used for final testing only Jan 28 21:07:06 Mavrik: if someone pulls VAT on you, you're gettig screwed :P Jan 28 21:07:13 Ge0rG: galaxy s 1 Jan 28 21:07:23 hackkitten, last time I checked google claimed that the emulator is slow because it does all graphics rendering on CPU Jan 28 21:07:39 Ge0rG: but I think I pay around 50 euro's extra compared to a carrier subsidized phone Jan 28 21:07:41 that's what also makes tablet emulators useless since rendering a 1280x800 screen with CPU is dog slow Jan 28 21:07:42 MDijkstra: still too expensive Jan 28 21:07:56 p_l, huh? All imports over 20€ get 20% VAT import charge Jan 28 21:07:56 Mavrik: there's work in progress for GPU emulation Jan 28 21:08:01 p_l, has nothing to do with US. Jan 28 21:08:05 The old J2ME phone emulators used to run blazingly fast even on my old Pentium 2, years ago. Now we have the fastest chips available for desktops that can barely run it at a usable speed. Jan 28 21:08:09 Ge0rG: you can't get a galaxy s for <200? Jan 28 21:08:11 surprises me Jan 28 21:08:12 maybe the samsung g5... but I'd rather have something larger Jan 28 21:08:12 Mavrik > that's only part of the story. The emulator does all CPU stuff in software without any hardware mapping or JIT Jan 28 21:08:16 Mavrik: that's not VAT, that's "import tax" Jan 28 21:08:16 MDijkstra: not a new one Jan 28 21:08:21 GPU emulation will be ass slow Jan 28 21:08:22 it's pretty much an interpreting emulator at this point Jan 28 21:08:34 hackkitten, true, but I think that's the smaller problem of the two Jan 28 21:08:36 TheBunny: GPU emulation = letting your GPU do the work Jan 28 21:08:44 MDijkstra: I need something available on the market, where I can get a proper invoice etc. Jan 28 21:08:53 ah ok Jan 28 21:08:54 p_l, no, it's VAT. Import tax is something else and it doesn't apply to my case unless buying stuff over 800€ ;) Jan 28 21:08:56 I'm pretty sure qemu does JIT (which is what the android emu is based on) Jan 28 21:08:58 thats what you meant Jan 28 21:09:00 it's still going to be very slow Jan 28 21:09:03 of course Jan 28 21:09:10 Mavrik: ... interesting country you got there Jan 28 21:09:12 MDijkstra > yup, and Google doesn't use said JIT module :) Jan 28 21:09:17 ah Jan 28 21:09:28 it's been an add-on for VB for ages Jan 28 21:09:37 IIRC it was/is proprietary Jan 28 21:09:45 which is why it wasn't commonly used Jan 28 21:09:46 hackkitten: you're mixing two different things Jan 28 21:09:55 QEmu *uses* JIT, in a limited form Jan 28 21:09:59 I think you mean the virtualization extension Jan 28 21:10:07 ie, x86 on x86 Jan 28 21:10:11 what you're talking about was virtualization tricks, which are specific to single architecture Jan 28 21:10:22 p_l, that's standard pretty much everywhere, whole EU etc. ;9 Jan 28 21:10:27 Mavrik: nope Jan 28 21:10:37 are there any apps out there that prohibit calling logcat? Jan 28 21:10:59 Mavrik: what is, VAT? Jan 28 21:11:02 or import tax? Jan 28 21:11:05 Mavrik: in fact, you can apply for tax return on the internal taxes in such cases Jan 28 21:11:12 (at least in most countries) Jan 28 21:11:38 VAT runs only internally (or in case of EU, between companies that have EU VAT ID) Jan 28 21:11:39 p_l, of course Jan 28 21:11:39 MDijkstra > yeah, the virtualization extension. It's been years since I last had to deal with it :) Jan 28 21:11:44 p_l, but then you have to pay local tax Jan 28 21:11:49 p_l, or else you're doing a tax fraud Jan 28 21:11:56 that's the whole point of tax returns Jan 28 21:12:15 you get returned tax from country you bought it from and then you pay local tax in country you brought it to Jan 28 21:12:39 in case of EU that's suspended for intra-EU purchases, but still holds for out-of-EU purchases Jan 28 21:12:53 hackkitten: but you obviously can't use that trick to speed up ARM on x86 Jan 28 21:12:59 MDijkstra, paying VAT when you buy stuff from outside EU Jan 28 21:13:06 oh, yeah Jan 28 21:13:39 hackkitten, virtualization extensions are practically useless for emulating ARM on x86 Jan 28 21:13:54 VTx etc. are made to make x86/x86 virtualization faster Jan 28 21:14:44 kqemu was about using segmentation tricks to run ring-0 code in ring-2 iirc Jan 28 21:15:06 but it doesn't really matter at all for emu performance Jan 28 21:15:17 software gl is going to be very slow regardless Jan 28 21:16:13 MDijkstra: unless it's accelerated by your hw Jan 28 21:16:31 which isn't that hard - there are GLES implementations that run on top of OpenGL Jan 28 21:16:36 yup Jan 28 21:16:43 that's what Google is working on lately it seems Jan 28 21:17:01 Mavrik: well,that's what -gpu option implies in latest emulator :P Jan 28 21:17:02 at least judging by the demo they showed on last I/O, where they showed HW-accelerated OpenGL on Android emulator Jan 28 21:17:15 also wouldn't mind an x86 emu instance for simple non-NDK testing Jan 28 21:17:16 it did run in separate window and needed console tricks to start back then though :D Jan 28 21:17:20 ie, what I do 95% of the time Jan 28 21:17:50 MDijkstra: I have a VMware running Honeycomb... Jan 28 21:18:05 MDijkstra, yeah, I'd love an x86 emulator just to test layouts and similar apps Jan 28 21:18:16 or just x86 android runtime like iOS emulator does Jan 28 21:18:33 MDijkstra > x86 compilation is what iOS and WP7 do for their simulators, IIRC Jan 28 21:18:52 yeah, iOS does for sure Jan 28 21:19:01 but they also link against native libs Jan 28 21:19:24 with the iOS sim I had a lot of issues with my third-party video codecs on OS X Jan 28 21:19:38 they'd prevent the movie player components from working Jan 28 21:19:54 MDijkstra, native libs? OS X or iOS libs? Jan 28 21:20:14 Mavrik: the iOS sim isn't virtualized at all, apps run as regular processes Jan 28 21:20:27 yeah I know that Jan 28 21:20:44 it just has a layer of "iOS" libraries which translate calls to OS X calls Jan 28 21:20:50 yeah Jan 28 21:20:52 that's why it's so fast... and so bad for testing :D Jan 28 21:21:11 and in the case of the qt framework they linked to the desktop version Jan 28 21:21:28 so if you had any third-party codecs installed on your OS X box (such as perian) Jan 28 21:21:34 it could completely mess up the sim Jan 28 21:21:45 ugh :D Jan 28 21:21:46 Hi Jan 28 21:22:11 MDijkstra, well, iOS SDK always was kinda buggy and badly put together Jan 28 21:22:19 Mavrik: same with the (old) keychain API Jan 28 21:22:27 I need to write two native applications, where one needs to check if the other is running, and if it does, read some integer value from it. Can you direct me how to do that, or refer me to the relevant documentation? Thanks Jan 28 21:22:35 they needed up to iOS5 to even add location emulaton support Jan 28 21:22:44 Mavrik: on the sim it uses the non-compatible OS X API vs the iOS API on device Jan 28 21:22:57 shlomy, ugh... I'd say the security model would try VERY hard to prevent that Jan 28 21:23:02 Mavrik: so if you were querying the keychain and wanted to test on the sim Jan 28 21:23:22 you'd need #ifdef TARGET(armv6) ... #else ... #endif Jan 28 21:23:24 Mavrik: Why? Can't processes in Android inter-communicate? Jan 28 21:23:30 around every keychain call Jan 28 21:24:08 Mavrik: Think that one of them is some database (in native code), and the other's a client Jan 28 21:24:22 shlomy, ah that, you need intents then Jan 28 21:24:31 shlomy, and content providers Jan 28 21:24:32 Mavrik: I'm not a fan of the iOS API's either, too much magic in the standard components Jan 28 21:24:34 Can I do this in native code? Jan 28 21:24:43 shlomy, I don't think so. Jan 28 21:24:45 wow, didn't know that iOS dev was that... weird :o Jan 28 21:25:11 MDijkstra, yeah, not to mention it's unstable, buggy and the documentation tries VERY HARD to deny it Jan 28 21:25:31 shlomy: you can call any java method using the JNI layer from native code, so you should be able to accomplish this Jan 28 21:25:37 I lost four days debugging reverse-geocoding API until I found a blog post in sewers of the internet explaining it's broken Jan 28 21:25:38 but it's going to get very, very verbose Jan 28 21:25:41 not weird… very fast Jan 28 21:25:48 your test apps run at native speed Jan 28 21:25:53 Mavrik: Well, I've seen some posts on the web how to use services (and the binder) in native code, except that I don't find the formal documentation on it and the examples are difficult to understand Jan 28 21:26:06 good for pre realdevice testing which you need to do anyhow on all platforms Jan 28 21:26:26 shlomy, as MDijkstra said, you'll probably have to call Java code which will take care of com. Jan 28 21:26:37 I could, for example, let one app create a file, that the other will read. But I also need the other to know if the first app is actually running or not. Jan 28 21:26:46 shlomy: why do you need them to be in native code? Jan 28 21:27:00 Because they are already written... Jan 28 21:27:08 They just never needed to communicate before Jan 28 21:27:09 shlomy, why do you have to know if it's running? Jan 28 21:27:20 is that the relevant piece of information or is it something else you're after? Jan 28 21:27:27 Because the app needs to work one way if it's running, and another way if it doesn't Jan 28 21:27:39 shlomy: the issue is that the NDK was really not meant to do entire general purpose apps in C or another language Jan 28 21:27:41 Mavrik: That's the relevant piece of information Jan 28 21:28:09 shlomy: it was meant to do two things, provide native libraries and since 2.3, provide game developers with the means to write their entire (one activity) app in C Jan 28 21:28:10 yeah, NDK was built to write pieces of software that need to be fast, but it's still meant as a supplement to Java code Jan 28 21:28:18 Mavrik: One of the apps is some sort of server (in native code). The other app can be a client, but can also work standalone (without a server). If the server is running, it must use it. Jan 28 21:28:50 shlomy: why not simply use the C API's? Jan 28 21:28:53 ie, unix sockets Jan 28 21:28:54 shlomy, usual Android pattern for this is to start the server if it's installed Jan 28 21:29:00 there's nothing to prevent you from doing so Jan 28 21:29:03 MDijkstra, does that work? Jan 28 21:29:09 I don't see why it wouldn't Jan 28 21:29:22 MDijkstra: It will use unix sockets, but it needs to know the port of the server Jan 28 21:29:53 there are a couple of ways you can let the two find eachother Jan 28 21:29:55 named pipe Jan 28 21:29:56 So this communication I am referring to is just the "bootstraping" Jan 28 21:30:01 creating the initial connection Jan 28 21:30:37 shouldn't be too hard, just make both apps look for a shared communication file Jan 28 21:30:44 ie, like very unix app does this Jan 28 21:30:46 MDijkstra, well... permissions. But I don't know enough unix programming to know how those work concerning unix sockets Jan 28 21:30:46 Ok. If the server creates a named pipe, and then crashes - and thne the client is started. Will the named pipe be gone? Jan 28 21:31:13 shlomy: I think you can also create unix sockets which are files, let me look it up Jan 28 21:31:38 MDijkstra: And another issue is where a native app is allowed to create files (or pipes?) Jan 28 21:31:38 shlomy, of course, you can open an actual socket as well Jan 28 21:31:51 like TCP socket Jan 28 21:31:53 Mavrik: Yes but it can't use a fixed port Jan 28 21:31:57 shlomy: sure it can Jan 28 21:31:59 why not? Jan 28 21:32:08 Because any port may be in use when the server starts Jan 28 21:32:19 shlomy: yeah, unix sockets are simply files Jan 28 21:32:29 It needs to either be configured by the user, or the server will need to iterate on a list of ports looking for a free one Jan 28 21:32:35 shlomy: ie, you bind to a file, the client opens this same file Jan 28 21:32:39 and you have a connection Jan 28 21:32:52 http://beej.us/guide/bgipc/output/html/multipage/unixsock.html Jan 28 21:32:55 Ok, and where can this file reside? Jan 28 21:32:58 (in android) Jan 28 21:33:13 wherever you want it to Jan 28 21:33:27 /tmp/ shared app storage (if your two apps share the same id) Jan 28 21:34:15 Ok, thanks, you've been very helpful Jan 28 21:34:18 I'll try that Jan 28 21:34:47 np Jan 28 21:39:13 Someone gave me another idea which seems simpler, but I am not sure it works in Android Jan 28 21:39:25 which? Jan 28 21:39:37 The server can create a file with the port number, and lock it (using flock or something) , then the client can read the file and check if it's locked. Jan 28 21:40:03 But does flock() work in Android? Jan 28 21:40:18 android is simply linux Jan 28 21:40:22 under the hood Jan 28 21:40:47 I don't see any reason why they would block that Jan 28 21:40:53 (and how they'd block that) Jan 28 21:41:31 Well, Android is not Linux, it just has the Linux kernel with some changes Jan 28 21:42:04 yes, and the linux kernel is responsible for stuff like unix domain sockets, flock Jan 28 21:42:44 I think the security system in Android adds some changes to the kernel (vs Linux), doesn't it? Jan 28 21:42:51 But I'll try that Jan 28 21:42:56 in terms of Dalvik? Jan 28 21:43:22 no, in terms of a syscall security layer Jan 28 21:43:27 but I don't think it does that Jan 28 21:43:36 haven't done any hardcore ndk development though Jan 28 21:44:30 MDijkstra, they can just remove the relevant headers :) Jan 28 21:44:51 ehm Jan 28 21:44:57 then you can simply do the syscall yourself Jan 28 21:45:09 which in the case of flock()/fcntl() isn't very hard Jan 28 21:45:19 point :) Jan 28 21:47:00 Well, thanks for your help... Jan 28 21:47:06 I will try these things tomorrow and see Jan 28 21:47:17 Is there documentation / forum for those things? Jan 28 21:47:22 So i can maybe post my findings? Jan 28 21:48:41 Gotta go now. Thanks again, and bye Jan 28 21:49:36 Sorry, just one more thing I forgot to ask... Jan 28 21:49:49 I'm maintaining a touch-screen driver in Android. Jan 28 21:50:07 In ICS, they've changed the multi-touch report protocol to match the Linux standard more or less. Jan 28 21:50:17 Anyone here with knowledge about this? Jan 28 21:50:33 not me, I've only worked on the button driver Jan 28 21:50:54 (ie, headset mic button support for a specific phone) Jan 28 21:51:23 Actually this might not be an android-specific issue, this may exist in Linux as well as they now have the same API Jan 28 21:51:29 So I can ask in a Linux forum Jan 28 21:53:42 hey guys Jan 28 21:57:16 i got a little question... I am pretty new to developing and didn't look into fragments / Actionbar very much yet. However, I am developing my little app for some time and with ICS I began to think... "that actionbar thingy is realy cool, i want that too - but only if i can implement it for preICS users too." so now i am reading through JakeWharton 's ActionBarSherlock . has anyone of you ever used that one? I am kinda nervous, because I'd Jan 28 21:57:16 have to adapt my whole app to it. Can you recommend it and does it work with HC / ICS too? I can't find anything about that in the internetz. ;/ Jan 28 21:57:52 Aeefire: set up git/another scm so you can easily go back if you mess stuff up Jan 28 21:57:56 and then just experiment Jan 28 21:58:20 best is to do the actionbar first, and then worry about fragments imo Jan 28 21:58:36 I did it the other way around and it caused a lot of headaches Jan 28 21:59:24 what I usually do these days: Jan 28 21:59:37 1) add actionbarcompat/actionbarsherlock Jan 28 21:59:56 2) convert the activities to use fragments Jan 28 21:59:58 what do you recommend ? the actionbarcompability package or actionbarsherlock? Jan 28 22:00:05 3) add tablet-specific fragment configurations Jan 28 22:00:21 mh Jan 28 22:00:24 sounds plausible Jan 28 22:00:57 I use this order because you have a fully functioning app between all the steps Jan 28 22:01:09 so you don't run into the 'oops, I broke my app halfway' problems Jan 28 22:01:39 at first i need to open up my "huge smart book" to read through ActionBars at first I guess. Jan 28 22:01:56 otherwise it won't make very much sense tu run through these tutorials if i don't understand the concept Jan 28 22:01:58 I dunno, I've always used actionbarcompat Jan 28 22:02:04 but I hear ABS is better Jan 28 22:02:28 hopefully, it's no problem that my book is about "honeycomb" (&actionbars) .. too old for ICS Jan 28 22:02:29 hm Jan 28 22:02:34 I'll try ABS then Jan 28 22:02:51 The concept is the same Jan 28 22:03:08 good Jan 28 22:03:46 thanks then Jan 28 22:03:51 got something to read Jan 28 22:03:52 hehe Jan 28 22:03:55 one thing to keep in mind when converting your activities to fragments Jan 28 22:03:58 ABS is imo the way to go. Offers the same API as the native implementation Jan 28 22:04:02 is not to use getActivity() Jan 28 22:04:07 `but? Jan 28 22:04:13 instead, implement a callback interface Jan 28 22:04:19 which you have the activity implement Jan 28 22:04:19 ....means? Jan 28 22:04:24 Eh, really depends what it's for :p Jan 28 22:04:30 sure Jan 28 22:04:58 Aeefire: well, say you have multiple activities using the same fragments Jan 28 22:04:59 Aeefire: MDijkstra is talking about this: http://developer.android.com/guide/topics/fundamentals/fragments.html#CommunicatingWithActivity Jan 28 22:05:20 ah yeah Jan 28 22:06:13 Aeefire: ie, sometimes you want to do different things depending on which fragment configuration is being used Jan 28 22:06:35 Aeefire: for example, on a phone you want to start a new activity, on a tablet you simply want to swap out the right pane Jan 28 22:06:42 MDijkstra the only thing i currently think/know that fragments are, are those multi-pane layouts, am i right? i don't know if it makes so much sense to explain that to me know. :) gotta first read through it and then ask you again :) Jan 28 22:06:47 now* Jan 28 22:06:51 ok :) Jan 28 22:07:04 thanks however :) Jan 28 22:07:06 I've been working on an app that has a database of latitudes and longitudes, but after looking at the Google Maps ToS (http://code.google.com/apis/maps/terms.html) I see it says "For example, you must not use the Content to create an independent database of “places.”", does anyone know if keeping a DB of points is violating that rule? Jan 28 22:07:13 Yeah, that might be a bit much for now Jan 28 22:07:21 Read up on the concepts of Fragments Jan 28 22:07:49 ActionBar at first. :) then i'll look up for some new graphics concept and then go to fragments Jan 28 22:08:05 still lots of work to do until I can publish it i guess Jan 28 22:08:06 hehe Jan 28 22:08:38 stevenspasbo: Keeping the lats/longs isn't the problem, it's storing the related information that's been collected by Google. If you're using it for non-commercial use though it may be ok Jan 28 22:09:21 stevenspasbo: I don't know if they mean 'database' in the technical sense of the word Jan 28 22:10:03 ie, they could refer to a service used to query the data Jan 28 22:10:13 didn't google maps go some kind of commercial? Jan 28 22:10:54 stevenspasbo: 'independent' is also key Jan 28 22:11:56 thanks for the answers everyone Jan 28 22:12:06 oh, IANAL :) Jan 28 22:12:07 however, thanks guys for your tipps, I guess I'll be here more often in the next time :) Jan 28 22:23:36 Is it possible to extract the system certificates from a ROM so I can sign my own utility application with them? Jan 28 22:27:17 mangoman2: (a) #android-root (b) signing is assymmetric, ie, you can't sign anything without the private key Jan 28 22:27:25 *asymmetric Jan 28 22:28:47 anyone here use ant to build android projects? Jan 28 22:29:35 Medjai, yeah what do you need help with? Jan 28 22:29:53 I'm having an issue building a project that has actionbarsherlock as it's library Jan 28 22:29:56 MKijkstra: so if I don't have access to the actual source of the rom, it's not possible? Jan 28 22:30:10 i've added it as a lib-project mangoman2 Jan 28 22:30:32 What's the command you're running to make your ant project/ Jan 28 22:30:39 ant debug Jan 28 22:30:48 not using any keys Jan 28 22:30:57 how did you generate the project? Jan 28 22:31:05 i want to just build using the debug key but i'm getting an issue with actionbar related errors Jan 28 22:31:09 android update project -p ./ -l actionbarsherlock ? Jan 28 22:31:09 as if it's not picking up some values Jan 28 22:31:27 correct Jan 28 22:31:36 What's the errors you are receiving? Jan 28 22:31:38 so if you look in the project properties it's there Jan 28 22:31:38 mangoman2: I don't know how the signing system works exactly, but no Jan 28 22:31:46 1 sec mangoman2 i'll pastebin it Jan 28 22:32:02 mangoman2: what's the point of using google's/device vendor's key? Jan 28 22:32:23 MDijkstra I need to run my application from the /system/app directory under the com.android.phone process. Jan 28 22:32:33 I'm assuming this isn't possible without being signed as the system. Jan 28 22:32:36 mangoman2: but generally these systems generate something called a keypair Jan 28 22:32:48 public key - on device, used to check the signatures Jan 28 22:32:53 I've got it working fine with CyanogenMod using their keys from their android_build repo, but I want to branch out to support otehr ROMS. Jan 28 22:32:59 private key - in google's safe, used to generate the signatures Jan 28 22:33:33 what you can do, is generate your own public/private keypair Jan 28 22:33:38 and resign everything with it Jan 28 22:33:45 mangoman2, http://pastebin.com/ag3Sz9jX Jan 28 22:33:53 but this gets rather complex Jan 28 22:34:21 I don't know how this particular implementation works though Jan 28 22:34:32 could be it just generates a random private key when building the rom Jan 28 22:34:51 Medjai: sorry, I have no idea. Do you need to do something in your xml files that use actionbarsherlock? I've never worked with it before. Jan 28 22:35:04 i shouldn't Jan 28 22:35:07 it builds fine on eclipse Jan 28 22:35:24 it's just weird why it cant find these values Jan 28 22:35:30 Hmm, I have no idea then, that's wierd. Jan 28 22:35:37 i guess it maybe related to actionbarsherlock Jan 28 22:35:45 i don't think it has anything to do with ant setup or project setup Jan 28 22:35:56 i just wanted to verify with anyone else Jan 28 22:36:00 but thanks though Jan 28 22:37:07 You could just check the abs library, see if they're there Jan 28 22:40:55 how do i reference this : "android:textAppearance="?android:attr/textAppearanceLarge" programmatically to set the textview text size? Jan 28 22:42:56 actually setTextSize will do the job ;) Jan 28 22:44:03 setTextAppearance(...) :p Jan 28 22:45:17 when did movies get so big Jan 28 22:45:19 i was looking at textTextAppearance, but i didn't understand how i'd reference that id Jan 28 22:45:19 theyre like 8GB Jan 28 22:45:48 android.R.attr.textAppearanceLarge I'd imagine Jan 28 22:45:56 canadiancow: Since we started watching HD movies :P Jan 28 22:46:01 speaking of Jan 28 22:46:12 is there an easy way to get a market-rented movie on my tv? Jan 28 22:46:15 without buying a google tv Jan 28 22:46:37 ahh ok thanks :) Jan 28 22:46:37 A phone with hdmi out! Jan 28 22:46:44 does galaxy nexus have that? Jan 28 22:46:53 There's a hdmi dock I think? Jan 28 22:46:54 galaxy tab 10.1 does, but id need some stupid proprietary adapter Jan 28 22:47:00 is it on sale yet? Jan 28 22:47:21 hm, no idea.. Just saw the youtube videos of them Jan 28 22:48:00 they need to get $100 google tv box out there Jan 28 22:48:14 until then, im going to keep not paying for movies/tv Jan 28 22:49:43 Meh, gonna buy a tablet before I think of gtv Jan 28 22:50:22 Besides, no gtv's for sale here :P Jan 28 22:50:26 id buy it if it was available in canada Jan 28 22:50:32 i still dont understand the developer lab Jan 28 22:50:33 like...wtf Jan 28 22:50:49 You can't buy them there? Jan 28 22:50:53 no Jan 28 22:51:00 Why the fuck are they holding a developer lab in toronto then :p Jan 28 22:51:08 i asked that when you sent me the link... Jan 28 22:51:13 oh Jan 28 22:51:19 :P Jan 28 22:51:29 My irc memory is very short :p Jan 28 22:51:51 add another gig Jan 28 22:52:18 Fully upgraded, just saving the rest for useful stuff :p Jan 28 22:54:43 im actually a little disappointed with my tv Jan 28 22:54:49 like...it's got "samsung smart hub" or something Jan 28 22:54:55 they should've stuck android in there instead Jan 28 22:55:11 Heh Jan 28 22:55:15 Nothing smart about my tv Jan 28 22:55:57 Doesn't even have DVB-C Jan 28 22:57:45 i dont even know what that means Jan 28 22:58:00 digital tv Jan 28 22:58:18 European thing I guess Jan 28 22:58:33 http://en.wikipedia.org/wiki/DVB-C Jan 28 22:58:40 DVB-C is for digital cable tv Jan 28 22:59:09 DVB-T is for digital antenna on the roof thing Jan 28 23:00:24 I got cable, but my tv can only do the dvb-t thing Jan 28 23:01:38 there's also DVB-S and DVB-S2 :) Jan 28 23:02:22 huh, just noticed ICS 4.0.3 builds for x86 Jan 28 23:02:26 There's a lot of them Jan 28 23:04:29 /msg NickServ identify pokemon Jan 28 23:04:43 yeah.. Jan 28 23:05:01 hi guys Jan 28 23:05:14 Hey pikachu Jan 28 23:06:20 hahaha Jan 28 23:07:55 i'm reading a book on which the author seems to explore the data store directoy of an app Jan 28 23:08:01 how can I do that? Jan 28 23:08:07 Root, or use the emulator Jan 28 23:08:21 i'm using an emulator Jan 28 23:08:33 i want to do it for the apps i'm debugging Jan 28 23:09:04 ddms > device > file explorer Jan 28 23:09:06 or adb shell Jan 28 23:10:08 ddms is graphical? Jan 28 23:10:11 test Jan 28 23:10:14 good afternoon everyone Jan 28 23:10:15 yes Jan 28 23:11:13 i'm just now learning android development. is this a good place to come to if i have questions? Jan 28 23:16:20 sure Jan 28 23:18:13 i tried to google "iphone" Jan 28 23:18:19 it autocompleted it to "iphone 5" Jan 28 23:18:26 which meant instead of useful links, i got rumour sites Jan 28 23:19:33 ^_^ Jan 28 23:20:44 i just saw someone comapring the GN to the 4S Jan 28 23:20:50 they said the 4S had better battery life Jan 28 23:20:56 bleh Jan 28 23:21:02 i use my iphone for work email Jan 28 23:21:04 nothing else Jan 28 23:21:04 at all Jan 28 23:21:12 its on a better network with stronger signals Jan 28 23:21:17 but it dies faster than my GN Jan 28 23:21:21 which i use for *everything* Jan 28 23:22:32 canadiancow: the difference between having a proper mechanism for background apps and not having one? Jan 28 23:22:42 dunno Jan 28 23:22:52 there are advantages to having an iphone over any android device Jan 28 23:22:58 and if people wanna bring those up in a discussion, fine Jan 28 23:23:14 but all the time i hear shit like "DONUT IS SO SHITTY AND IOS5 IS AWESOME" Jan 28 23:23:15 well no shit Jan 28 23:23:29 or "GALAXY NEXUS DOESNT HAVE SIRI" Jan 28 23:23:38 actually both of those are true, even if stupid Jan 28 23:23:49 haha Jan 28 23:23:50 but telling me the battery life...ugh Jan 28 23:23:51 just pisses me off Jan 28 23:24:06 im having strange luck with my credit card lately Jan 28 23:24:11 ordered a home theatre from best buy Jan 28 23:24:15 ive had it for like two weeks Jan 28 23:24:16 I stopped bothering, don't really care Jan 28 23:24:22 they still havent charged my credit card for it Jan 28 23:24:26 i had some work done on my car Jan 28 23:24:28 it was $565 Jan 28 23:24:32 they charged me $5.65 Jan 28 23:24:58 haha Jan 28 23:25:41 best buy can go fuck themselves Jan 28 23:25:44 but the place i took my car Jan 28 23:25:47 i like the guys there Jan 28 23:25:51 so i have to fix that issue Jan 28 23:25:57 Hey does anyone here have experience with the Bluetooth APIs? Jan 28 23:27:42 Trying to find out how difficult it would be to force voice call audio over A2DP to a "media only" bluetooth device Jan 28 23:27:52 oooo Jan 28 23:27:54 good luck with that Jan 28 23:28:10 yeah :/ Jan 28 23:28:12 id like that on my non-"media only" devices :P Jan 28 23:28:17 why should i get shitty mono quality Jan 28 23:28:47 your only chance of getting this to work would be changing the OS Jan 28 23:28:57 and even there, im not sure if the hardware would let you Jan 28 23:29:08 but there's no way an app would be allowed to reroute call audio Jan 28 23:29:11 Well, some guy managed to send media over the hands free profile, how would this be different? Jan 28 23:29:20 because call audio is protected :P Jan 28 23:29:46 even on a rooted device? Jan 28 23:29:57 at a hardware level Jan 28 23:29:59 Reroute it to the fbi! Jan 28 23:30:09 female body inspectors? Jan 28 23:30:18 lolol Jan 28 23:30:53 :/ Jan 28 23:33:30 It really sucks becuase my car bluetooth device only supports A2DP so when I get a call it just goes to the phone, npo speakerphone or anything :/ I may have to use tasker to make it sort of usable in the car, but the Galaxy Nexus speaker kind of sucks Jan 28 23:34:04 Tasker to activate speakerphone on receiving a call or something Jan 28 23:35:14 Canadiancow, do devices exist that are handsfree audio only(no mic)? Jan 28 23:35:28 they wouldnt have hfp or hsp Jan 28 23:35:30 just a2dp Jan 28 23:36:35 Is it plausible for someone to create a ROM that "unprotects" the phone audio? Jan 28 23:36:35 YES!!! My paper got accepted for the DroidCon !!!! Jan 28 23:36:36 wooooot Jan 28 23:36:50 that sounds like it would be a nice feature to be cooked in Jan 28 23:37:25 Natolx, maybe, but ive heard (from googlers in here) that it's protected at a hardware level most of the time Jan 28 23:37:30 gz mi6_x3m Jan 28 23:37:40 mi6_x3m: what's it about? Jan 28 23:37:49 MDijkstra: egrouse: tnx!!! Jan 28 23:37:52 im so excited Jan 28 23:37:58 it's on game dev Jan 28 23:37:59 :) Jan 28 23:38:04 wait I had a copy somewhere Jan 28 23:38:04 sweet man Jan 28 23:38:48 http://dl.dropbox.com/u/13798573/droidcon2012/paper.pdf Jan 28 23:38:48 this is it basically Jan 28 23:38:48 but the slides will be a bit more technical Jan 28 23:38:48 man im so excited I cant describe it Jan 28 23:40:00 my emulator-arm.exe keeps crashing. anyone know where i can find a log file for this Jan 28 23:40:31 it crashes before even loading the emulator screen Jan 28 23:41:26 I tried updating eclipse and now it will not start. Giving up trying to repair it. Does anyone know how to restore eclipse settings from a dead install? Jan 28 23:41:31 canadiancow, thanks for the info Jan 28 23:41:31 please help. Jan 28 23:44:41 advice to everyone: backup eclipse before attempring an automated install Jan 28 23:45:30 even better, don't rely on the shitty integrated install utility. completely reinstall for each update and import settings/workspace Jan 28 23:54:14 i need a way to get google music on my sound system Jan 28 23:54:14 fuck Jan 28 23:54:19 how hard is it to replicate an android app to iOS? Jan 28 23:54:35 joallard: if you're asking, then you have no idea, so im going to say "hard for you" Jan 28 23:55:01 joallard: also, depending on the type of the app, from moderately difficult to "just rewrite from scratch" Jan 28 23:55:07 good three-word answer Jan 28 23:55:22 assuming you want the end result to be of good/high quality Jan 28 23:56:00 I agree. What I had in mind was more of a "natively rewrite the app with the other in mind" Jan 28 23:57:06 Natolx: quite often the voice runs nearly completely separate path, though it might be possible on some to hack into the method used for HFP/HSP Jan 28 23:57:25 joallard: games have it IMHO easier, because you have more assets to reuse Jan 28 23:58:03 with many apps, you have to redo visual design if you want them to mesh with target environment Jan 28 23:58:19 p_l so sort of "hijacking" the stream from the HFP/HSP profile? Jan 28 23:58:35 i figured it out. relaunching the AVD and wiping the user data stopped the emulator from crashing. Jan 28 23:58:51 persistence pays off in the end Jan 28 23:59:07 Natolx: yes. Only possible if the BT chip doesn't just have two I2S ports, bypassing cpu Jan 28 23:59:16 Sure. I guess my question is more: is learning objective-c and iOS worth it or is it better just to outsource that to someone else? Jan 28 23:59:27 (I know I'm asking for wild assumptions) Jan 28 23:59:34 joallard: that question only you can answer Jan 29 00:00:00 I'd need to be you or get waaaytoo deep than I want at the moment to answer it well Jan 29 00:00:19 basically, think of whether the time spent will be worth it Jan 29 00:00:31 You're most probably right. Jan 29 00:00:33 p_l, I'm assuming to do this you would need to make the phone think that there was an HFP/HSP bluetooth device connected to the phone, would there even be a way to do this without the mic being recruited to the fake bluetooth device? Jan 29 00:04:31 p_l i just checked the chip in my phone(galaxy nexus) , the BroadcomBCM7405 and it apparently has "one I2S input port and one I2S output port, plus S/PDIF output" so that sounds promising in that regard Jan 29 00:04:34 never bad to learn a second language... but in my opinion its better to be good at one than mediocre at two Jan 29 00:08:42 Natolx: well, it's going to be difficult without root/kernel access, and would be unlikely to work across devices Jan 29 00:09:14 MDijkstra: would it work in all devices with the same chip? Jan 29 00:09:58 Natolx: no, because it'd depend on whether the phone audio is routed from the baseband to the CPU or not Jan 29 00:10:21 i dont think my home is wired well enough Jan 29 00:10:34 to play my music on my stereo, i have to "download all" in the google music manager Jan 29 00:10:36 copy to a flash drive Jan 29 00:10:39 and plug it into my receiver Jan 29 00:10:40 :( Jan 29 00:10:46 failhome Jan 29 00:10:47 I did some driver hacks for the motorola milestone/droid audio driver, and I'm pretty sure it's not possible there Jan 29 00:10:47 also: found out my tv wont play flac's Jan 29 00:10:51 not 100% though Jan 29 00:10:57 if it would play flac's, i could stream it to my tv, and from there to my receiver Jan 29 00:11:05 shoulda gone for a higher end receiver i suppose Jan 29 00:11:35 MDijkstra: Good to know. I really just wish A2DP would act exactly like the headphone jack like I was expecting... call audio goes fine through there *sigh* Jan 29 00:11:38 Natolx: could be that it's simply a requirement needed for device certification Jan 29 00:12:13 Natolx: just like the IMEI musn't be writable to the AP Jan 29 00:12:13 Natolx: having the output/input ports sounds very *un* promising Jan 29 00:12:22 *for the AP Jan 29 00:12:47 namely that it uses a physical audio route from modem Jan 29 00:12:54 :/ Jan 29 00:13:25 alright well looks like this isn't gonna happen, thanks for the help/info guys! Jan 29 00:13:35 I suggest looking at the kernel driver for the bcm chip Jan 29 00:13:37 I've been trying to find answers about this for weeks Jan 29 00:14:30 That'd be a little out of my league at this point MDijkstra :) Jan 29 00:18:27 Natolx: I don't know where you get the idea that the GN uses the BCM7405 btw Jan 29 00:18:54 it uses an OMAP4460 with the TWL6040 audio codec Jan 29 00:18:57 oh, he left Jan 29 00:22:26 How many users have Android devices? Jan 29 00:23:46 42? Jan 29 00:24:36 Hehe Jan 29 00:26:10 lots Jan 29 00:26:12 ! Jan 29 00:40:14 Does anyone know how facebook handle's their feed with their new app? is native or are we looking at a webview? thanks Jan 29 00:41:54 Anyone know why I can't read from the sound card in an emulator? Jan 29 01:59:55 hey Jan 29 02:04:09 ji Jan 29 02:04:11 hi Jan 29 02:20:59 hello Jan 29 02:21:22 so I have been farting around with the GLsurfaceview Jan 29 02:21:32 specifically the touchrotateactivity example Jan 29 02:21:34 very cool Jan 29 02:21:47 .. so, whats not cool then is that this link is broke. Jan 29 02:21:58 What's up? Anyone else notice this? Jan 29 02:22:01 developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/TouchRotateActivity.html Jan 29 02:23:53 Yo yo,. Jan 29 02:24:30 Does anyone have a good strategy for building dev. versions on a device where you want to actually use the non-dev versions? Jan 29 02:24:42 Just change the package name? Jan 29 02:24:49 (In the dev version)? Jan 29 02:53:34 hey all Jan 29 02:54:27 Yo Jan 29 02:56:03 I'm an android dev newb, but i've been programming several years in c/c++, very little java, but i'm learning quickly… What I need to know is the best View to use for my app. My content is purely bitmaps (.png). there are no user inputs or animations. one background image, and the others are "touchable" Jan 29 02:56:25 I keep seeing surface view as the best thing to use, but that's geared more towards animations Jan 29 02:56:45 Why not just Drawable? Jan 29 02:56:58 (I have never done what you are mentioning). Jan 29 02:56:59 Oh, oh. Jan 29 02:57:02 i have static images that change when tapped. Jan 29 02:57:02 You mean for the root view. Jan 29 02:57:10 yes Jan 29 02:57:13 You touch them in a specific place? Jan 29 02:57:31 Or anywhere? Jan 29 02:57:58 well, this first screen you can touch anywhere, which basically shows another screen that is a grid of other images, each one being a specific value Jan 29 02:58:21 It's a grid? Jan 29 02:58:22 you then select the image you want, and it is presented back on the first screen, slightly modified Jan 29 02:58:32 Any layout manager would probably work. Jan 29 02:58:33 not a grid in the sense of a widget or layout Jan 29 02:58:34 LinearLayout. Jan 29 02:59:04 hey folks, I'm trying to make my notification (executed via service) bring up the "parent" application but I'm not getting any love with starting the intent... Jan 29 02:59:25 I've created an intent filter in the parent activity (not the service, but the main activity) Jan 29 02:59:28 no love. Jan 29 02:59:32 any thoughts? Jan 29 02:59:46 i tried a linear layout, but i'm also having trouble making sure the images are scaled properly between device resolutions **** ENDING LOGGING AT Sun Jan 29 02:59:58 2012