**** BEGIN LOGGING AT Wed Apr 11 02:59:58 2012 Apr 11 03:00:54 yeah we do that in Pay with Square by launching you to the root activity and then starting another to create the backstack Apr 11 03:05:25 "pay with square"? Apr 11 03:05:39 lol Apr 11 03:06:11 what is that, retard-speak for "credit card"? Apr 11 03:06:44 that's an app name Apr 11 03:07:18 * pragma- imagines a drooling invalid saying "I pay with square" as it hands over its credit card to the cashier. Apr 11 03:07:29 you use your name Apr 11 03:07:35 anyone have a form name or something to point me to, to record android market income in a tax return? Apr 11 03:07:47 im still new at doing them in general -_- Apr 11 03:07:54 lol, taxes. Apr 11 03:08:01 yea Apr 11 03:08:03 just let them audit you. Apr 11 03:08:07 it's easier. Apr 11 03:08:23 pragma-: https://squareup.com/pay-with-square Apr 11 03:08:30 do it Apr 11 03:08:49 pragma-: whats the hard way? Apr 11 03:08:51 yeah, I don't want Square recording my purchases for marketing purposes, thanks. Apr 11 03:08:54 =P Apr 11 03:09:38 pragma-: you are dumb Apr 11 03:09:38 CEnnis91: you could use a pencil and paper. Apr 11 03:09:49 JakeWharton: that's a horrible thing to say to me. Apr 11 03:10:07 blasphemy! they dont exist anymore Apr 11 03:10:58 if we had a page like that, with the iphone and android phones displaying next toeachother Apr 11 03:11:08 we'd get an email from apple telling us to remove the android references Apr 11 03:11:45 the screens are so photoshopped Apr 11 03:11:47 it's pathetic Apr 11 03:12:47 hello, i'm installing the android sdk. i'm stuck at the tools/android program: what is it supposed to do? Apr 11 03:12:50 How do I get my buttons to match ICS style? Right now they're just big grey buttons and they're ugly. :( Apr 11 03:13:08 Yeah, nice website square has: http://imgbin.org/images/7668.PNG Apr 11 03:13:19 total fail without javascript turned on Apr 11 03:13:40 I upgraded my ADT, and now I have BuildConfig.java inside my gen. The problem is R.java won't automatically rebuild, it's just disappeared. Anyone else experience this? Apr 11 03:14:30 remind me to insult jake with that screenshot when he come sback Apr 11 03:17:48 T-Dub|DlolPics: sounds like you a) don't know what you're doing, as usual; b) don't know how to create an intelligent nickname; c) are probably an idiot. Apr 11 03:18:12 T-Dub|DlolPics: here's a pro-tip: stop clicking random buttons on your IDE. Apr 11 03:18:43 pragma-, what benefit do you gain from insulting people? Apr 11 03:19:22 For your information this has all been caused by intergrading AdMob, due to the api level required for it's features, not my lack of knowledge on Eclipse Apr 11 03:20:37 Hey, when you bind a service and send a message. Is it ok for the Service to hold onto the "Reply" Handler for later use? Apr 11 03:22:14 T-Dub|DlolPics: a) don't use admob; b) don't put ads in your app; c) see a and b Apr 11 03:23:03 (now hopefully you'll be stuck in an infinite loop; good riddence) Apr 11 03:23:14 If you weren't such a narcissistic I would take your advice into consideration, until then I shall scrap them without hesitation. I appreciate the time you took to type it out though. Apr 11 03:23:17 damn pragma is so smart im glad he spends his valuable time spreading knowledge on this chatroom Apr 11 03:23:29 T-Dub|DlolPics: nice fallacy. Apr 11 03:23:51 JakeWharton: nice website square has: http://imgbin.org/images/7668.PNG Apr 11 03:24:00 That comment is only proving my point. Apr 11 03:24:01 can i donate to your cause? Apr 11 03:24:25 pragma-: i can do that with any website too Apr 11 03:24:34 JakeWharton: do it to http://google.com Apr 11 03:24:49 curl http://google.com Apr 11 03:24:53 done Apr 11 03:25:15 pics or it didn't happen Apr 11 03:25:23 too lazy Apr 11 03:25:31 I am still a winrar. Apr 11 03:25:46 if you say so Apr 11 03:25:54 quite observant Apr 11 03:26:16 if you say so Apr 11 03:26:29 oops, I broke it Apr 11 03:26:34 * pragma- whacks JakeWharton. Apr 11 03:26:47 seems to be stuck. Apr 11 03:26:54 in overdrive Apr 11 03:26:59 if you say so Apr 11 03:28:13 fload: it's nice to get some appreciation around here Apr 11 03:28:30 < fload> damn pragma is so smart im glad he spends his valuable time spreading knowledge on this chatroom Apr 11 03:28:37 * pragma- screencaps. Apr 11 03:29:04 np Apr 11 03:29:59 I showed my mom. She shed a tear. Apr 11 03:34:18 I currently have a few Dialog boxes pre-built and displayed throughout the application. But the Alert box is under the dialogs. Is it possible to pull it to the front? Apr 11 03:49:41 Is there any way for me to determine (and fetch) the UI thread from an arbitrary thread? Apr 11 03:49:53 that is, I will not know whether I am on the UI thread or another Apr 11 03:51:19 I have a webview in my app that will load a page, but then all the text dissapears. I have no idea why, as I've used webviews many times before. Does anyone have any idea what's going on with it or how to fix it? Apr 11 03:55:38 cr5315 try debugger and step through it with a few breakpoints to narrow down your error Apr 11 04:19:45 JakeWharton, http://developer.android.com/reference/android/os/Looper.html#getMainLooper() Apr 11 04:26:53 that's it Apr 11 04:27:06 thanks Apr 11 04:27:08 been a long day Apr 11 04:29:09 too bad many hours await Apr 11 04:29:14 i should just go back to work so i can focus Apr 11 04:29:35 and so I can have massive monitors Apr 11 04:51:20 is there an easy way to supply a custom executor for AsyncTasks pre-HC? Apr 11 04:51:31 or am I better of implementing my own simpler version of AsyncTask with Runnables Apr 11 04:54:28 JakeWharton, there is no api to specify the executor for asynctasks pre-hc Apr 11 04:55:19 well I was thinking that I could write a proxy between executor and asynctask for that Apr 11 04:55:28 but my use case only leverages about 20% of what AsyncTask does anyways Apr 11 04:55:36 better of with some good 'ol fashioned threading Apr 11 04:55:39 *off Apr 11 04:55:50 I've always just used a thread and a handler. Apr 11 05:02:37 yeah I have a threadfactory Apr 11 05:02:40 halfway there already Apr 11 05:02:52 i'm thinking too far ahead Apr 11 05:56:29 Does anyone know if its more difficult to support multiple resolutions with the NDK than with the SDK? Apr 11 05:57:00 *multiple screen resolutions/devices etc etc Apr 11 05:57:05 I will counter your question with a question. Besides "Running things in C++" is anything easier using the NDK over the SDK? Apr 11 06:01:16 JakeWharton: That was my inital thought. Good that I got a second opinion. Apr 11 06:30:49 damn it, anyone managed to get picasa galleries integrated into their app nicely? Apr 11 06:33:39 After setting a background, one of the things I want to show up onscreen no longer shows up. Is there an easy way to diff variables by line while running two different versions of the program, so I can see that at line 39 of whatever, some boolean came back as false instead of true? Apr 11 06:34:53 FUck Apr 11 06:34:55 http://slackstack.com/archives/17870/funny-gif-cat-punches-dog Apr 11 06:40:13 what's the best way to have a view that lets clicks go through (pass to its parent)? Apr 11 06:50:50 for what purpose? Apr 11 06:51:10 like a selector on a list view item? Apr 11 06:51:23 Hi, when publishing app to Google Play, is it 50years or 25years requirement of sign validity? Apr 11 06:52:04 "A validity period of more than 25 years is recommended." Apr 11 06:52:11 I've notice that the docs say it should be 25, but we receive an error msg said it must be 50years. Apr 11 06:52:14 "If you plan to publish your application(s) on Google Play, note that a validity period ending after 22 October 2033 is a requirement. You can not upload an application if it is signed with a key whose validity expires before that date." Apr 11 06:52:26 backwards compatibility will kill it in before 4 years Apr 11 06:52:38 it seems that the doc is not giving the correct number (50)? Apr 11 06:58:03 Hmm anyone know picasa? do u need to be authorised just to view galleries? Apr 11 07:00:21 depends of the gallery Apr 11 07:02:42 its just a public one Apr 11 07:02:51 but im getting forbidden, 403 Apr 11 07:03:09 and my authorisation token is empty so i thin kthats why Apr 11 07:03:21 but surely i dont have to pass gmail details to view a public gallery using their api Apr 11 07:10:25 JakeWharton, I was being dumb because I had a click listener on a imageview so I wasn't getting the highlighting of the background Apr 11 07:10:48 there's an XML attribute for that Apr 11 07:10:52 inheritChildStates or something Apr 11 07:10:54 I'm abusing android:background="?attr/selectableItemBackground" on everything Apr 11 07:10:57 this girl is 500 years old: http://i.imgur.com/36o6f.jpg Apr 11 07:10:58 haha Apr 11 07:11:00 :) Apr 11 07:11:03 frozen from the Incan Empire Apr 11 07:11:09 sorry, know offtopic, but pic was incredible Apr 11 07:11:09 IntelliJ's autocomplete usually saves me Apr 11 07:11:14 i never remember the name of the attribute Apr 11 07:11:23 eclipse is stupid and doesn't autofill that Apr 11 07:11:32 it's the hardest thing to type Apr 11 07:11:40 Anyone compiling AOSP here? Apr 11 07:12:16 EmoBoii are you cute? Apr 11 07:13:28 zamboni wtf dude Apr 11 07:13:43 but no I am not lol Apr 11 07:14:06 yes you are Apr 11 07:14:17 Okay..... Apr 11 07:14:28 Is it because I asked a stupid question? Apr 11 07:14:29 lol Apr 11 07:14:45 my ex-boyfriend looked like an emo boy Apr 11 07:14:56 and was cute Apr 11 07:15:14 LOL wtf no it's just my username Apr 11 07:15:14 lol Apr 11 07:15:36 sit next to me Apr 11 07:15:55 :O Apr 11 07:16:17 ? Apr 11 07:16:32 please stop acting so weird Apr 11 07:17:33 Has anyone published any apk to the GPlay? What is the validity period of your certificate? Apr 11 07:18:41 hoangtran, why not just generate a cert with some huge validity? Apr 11 07:20:04 that's what I'm doing now, it's just a minutes, the problem is that I'm not the one responsible for actually performing the publishing process, so I just want to make sure the apk I create is a valid apk for Google Play Apr 11 07:21:54 make it for 1000 years Apr 11 07:22:57 @Jake: :), I've seen advice that states 10000 Apr 11 07:23:46 Fairly certain Android and Google Play in its current form will not exist in 2033 Apr 11 07:23:56 so you're probably fine with anything over 25 Apr 11 07:24:49 by then we'll all be on BlackBerries and mocking people who use the antiquated Android OS 29.4.2 Apr 11 07:24:53 Yeah, I'll pay 25$ for an account for myself, I don't have access to my company account. Apr 11 07:25:48 BB? I thought it's gonna die. Miss my BB7290 Apr 11 07:26:28 it will die Apr 11 07:26:36 but it'll be reborn in 2028 Apr 11 07:26:49 and by 2033 everyone will be using it and making fun of Google Apr 11 07:26:51 Apr 11 07:27:05 er.. sound like sci-fi fiction .. Apr 11 07:34:37 ATM Machine Apr 11 07:41:56 yo. what's the current gcc version in the latest ndk? Apr 11 07:43:32 What do you put in the fields "First & Last Name" when creating the cert for your company to sign the .apk? The boss's name, the contact person, or your name? Apr 11 07:44:12 leave it blank Apr 11 07:45:20 o.O, I didn't know it's possible Apr 11 07:46:19 what is the thread overhead on Android Apr 11 07:46:34 I'm using a ThreadPoolExecutor for some tasks Apr 11 07:46:49 was hoping to have it scale from 1 up to 5 based on queue demands Apr 11 07:47:05 but would it be bad for the 5 threads to always be hanging around idle? Apr 11 07:53:58 JakeWharton: this is a mobile device with a limited battery supply, not a enterprise server Apr 11 07:54:07 keep it simple Apr 11 07:54:21 I figured it out Apr 11 07:54:26 allowCoreThreadTimeOut(true); Apr 11 07:54:33 ##java figured it out, you mean Apr 11 07:54:56 no they clarified a point about expansion Apr 11 07:55:07 i figured out how to allow the core threads to be destroyed when not in use Apr 11 07:58:50 now I just need a custom Queue Apr 11 07:58:58 but that's a job for tomorrow Jake Apr 11 07:59:54 wuss Apr 11 08:00:21 JakeWharton: look in DDMS at how many threads we have in our processes :(( Apr 11 08:00:36 I wouldn't worry too much about having a few idle threads around Apr 11 08:01:30 as long as they are not busywaiting... Apr 11 08:01:52 :) Apr 11 08:02:18 which reminds me. I still need some way to detect audio buffer overruns programmatically, before I can ship that code. Apr 11 08:03:14 I'll have to do some tests to see. Usually once the queue is empty there won't be any activity until a major UI event occurs (e.g., new activity, fragment swap) so the cost of spinning up a few new threads wouldn't be noticed. I was just thinking about memory. This is going to be a library (of course) so I want to reduce any potential impact on the implementing apps. Apr 11 08:03:43 JakeWharton: you could always GC your pool after a while Apr 11 08:03:46 "GC" Apr 11 08:04:02 pff Apr 11 08:04:12 The timeout on ThreadPoolExecutor should do that automatically if I find an appropriate value Apr 11 08:04:33 2 seconds or so perhaps Apr 11 08:04:36 good point, I forgot TPE could do it Apr 11 08:05:02 it's exactly what AsyncTask does Apr 11 08:05:29 Yeah I modeled some of the behavior from AsyncTask Apr 11 08:05:56 I just needed a better executor and a queue that I can manage order with a high and low priority Apr 11 08:06:22 java.util.PriorityQueue? :) Apr 11 08:07:14 Possibly. There's only two priorities so I thought I could just write my own that fronts two queues or something since that seemed like it might be overkill Apr 11 08:07:30 I never trust myself writing new code ^^ Apr 11 08:07:59 This has been reassuring statements with an Android framework engineer... Apr 11 08:08:04 tune in next week Apr 11 08:08:44 (but I totally agree) Apr 11 08:09:28 what do i need to put in target_id in the /tools/android program when i'm creating a project? Apr 11 08:09:29 Ususally the core Java or Guava are my go-to places for people-who-are-a-lot-smarter-than-me-doing-what-I-need code Apr 11 08:09:50 android-10 ? Apr 11 08:10:05 JakeWharton: me too :p Apr 11 08:10:19 JakeWharton: and crazybob (if he still writes code) Apr 11 08:10:52 every now and then he does. some mind-boggling stuff Apr 11 08:11:17 he likes to solve peoples programming interview questions in insane ways Apr 11 08:11:46 sounds like him alright :) Apr 11 08:16:51 hi all Apr 11 08:26:22 hi all Apr 11 08:27:40 I want to know how to play a pre-recorded audio during voice call in android ? i explored a lot and i found tht its not possible to inject media stream into call stream , but still has anyone come across any solution to this or any other alternative ? Apr 11 08:38:05 please see this for a question http://stackoverflow.com/questions/10078210/play-recorded-sound-during-voice-call-using-ndk-or-third-party-apis Apr 11 08:40:55 xtream: it seems like you have already been told repeatedly that it is not possible, and have exhausted unconventional solutions Apr 11 08:41:12 I am not sure what else to tell you Apr 11 08:42:10 if this many users have not found a way to do it by now, then it is likely not going to happen. if it does, using unconventional methods, I doubt it would work consistently on different devices Apr 11 08:43:49 root66: i got it what you are saying , but has anyone know about any third party api , using which we can achieve this ? Apr 11 08:48:27 where are pref stored? Apr 11 08:48:30 in the system Apr 11 08:48:47 <[deXter]> /data Apr 11 08:49:11 where exactly Apr 11 08:49:27 that is like saying "in /" Apr 11 08:49:27 hi Apr 11 08:49:38 <[deXter]> I'm not sure Apr 11 08:49:46 ok Apr 11 08:49:48 <[deXter]> Shouldn't be hard to search for a .db file in /data Apr 11 08:50:00 its /data/data ;) Apr 11 08:50:06 why db file? o0 Apr 11 08:50:21 <[deXter]> Well depends on what preferences exactly are you talking about Apr 11 08:50:28 I already have a Google OAuth token that validates OK with the google service...but now I would like to use that token to open a web page inside WebView that will use that token, so the user doesn't need to login with the service, but is authenticated automatically with the oauth token Apr 11 08:50:30 <[deXter]> if its a per app setting, then yes it's /data/data Apr 11 08:50:44 any ideas how to do that, I didn't find and webview functions that could do that Apr 11 08:50:44 okay :) Apr 11 08:51:30 what's stored in /data/data/ / lib * Apr 11 08:52:04 jni files I think Apr 11 08:52:06 <[deXter]> Um, the libraries Apr 11 08:52:13 <[deXter]> ie the .so files Apr 11 08:52:51 okay, thanks :) Apr 11 08:55:11 what would cause eclipse to not show any of my xmls as guis for editing Apr 11 08:56:15 @dominic: bugs ;) Apr 11 08:56:34 try open it with "Open With" option Apr 11 08:56:42 no over 5 projects none of them show Apr 11 08:56:54 xtream: the only way you will be able to pipe sound into the phonecall is with a 1/8" adapter plugged in Apr 11 08:57:01 and for a fact last bootup all was well Apr 11 08:57:49 have you updated all to r18 Apr 11 08:58:27 I notice that all the "Layout editor" now have "Legacy" prefix Apr 11 08:59:15 nope tried all the different open withs i know 4 of the 5 flawless Apr 11 09:00:49 when they open i notice alot of the defaults not selected like local, theme, day or night etc and they all default to 2.7inch now Apr 11 09:01:27 root66: wht is 1/8'' adapter and how it works with android ? Apr 11 09:02:26 afaik, the headphone jack has 3 channels. output left/right, and mic input Apr 11 09:02:37 they make AV cables that have red white and yellow that fit the jack Apr 11 09:03:52 but being able to communicate and still use that rig would require a.) for the audio cables to be connected to a speaker of some sort, and b.) the input source has a mic input (such as a kareoke machine) Apr 11 09:04:51 basically you need a way to combine mic input with the audio you are piping in so youc an still talk Apr 11 09:05:00 a small mixer of some sort would do it Apr 11 09:06:23 with splitters, you could rig the whole thing to operate from a headset, but you still have wires and a mixer of some sort Apr 11 09:06:45 hell you might even find a headset that already has an aux audio input Apr 11 09:07:11 in which case you just plug in your source and go Apr 11 09:08:18 root66 : so eventually whosoever will gonna use my app needs that aux audio handset ? Apr 11 09:09:17 look, there is no way to pipe audio directly into the call without some kind of additional hardware Apr 11 09:09:21 I don't know how I can make that any more clear Apr 11 09:09:38 @dominic: I've seen this sometimes. Not since I upgrade to r18. Try editing the config in General/Editors/File Associations. Btw, I use IntelliJ IDEA :) Apr 11 09:09:39 the headphone/mic jack are the only way Apr 11 09:10:25 Hello Apr 11 09:11:04 Can anyone help me find out how i can add a carousel (swipe to flip between views) in android? Apr 11 09:12:18 rakan: I think you want ViewFlipper Apr 11 09:13:49 rakan, ViewPager in the compat lib is better than Flipper Apr 11 09:13:59 root66: am currently trying it out... i had to use some code for gestures and stuff like that. However, the experience doesn't seem like the one used in the current google play app Apr 11 09:14:28 alex_PP: i did download the extra package but whenever am adding the viewpager to my layout it gives me a class not found error... the Jar file was also added to my build path Apr 11 09:16:32 root66: so i dont need to do any changes in android app right ? Apr 11 09:19:08 rakan, tried FragmentActivity, not Activity? Apr 11 09:19:29 alex_PP: nope,,, will give it a try now Apr 11 09:23:33 hmm picasa api is driving me nuts Apr 11 09:30:21 http://robotoole.com/blog/wp/android-gallery-convertview-is-always-null/ <-- fo' real? Apr 11 09:31:38 yes for real Apr 11 09:31:40 since 1.0 Apr 11 09:31:47 oh okay Apr 11 09:31:50 we don't have an ETA for a fix at this time Apr 11 09:32:00 i'll just create my own View[] and use that in the adapter Apr 11 09:35:00 Hi. I get unsatisfied linker errors, but no details about it (I think) http://pastebin.com/fk4FHm1z Apr 11 09:35:31 makes sense to me Apr 11 09:35:33 failed to link libmain.so Apr 11 09:35:39 yes, but why? Apr 11 09:35:49 apparently it's not there Apr 11 09:35:55 it's in the same dir as libSDL2.so Apr 11 09:36:09 in lowercase? Apr 11 09:36:15 it's linux you kno Apr 11 09:36:16 w Apr 11 09:36:17 yes. "libmain.so" Apr 11 09:37:02 with the console, it's there in /data/data/com... Apr 11 09:37:52 good size, same rwx as libSDL2 Apr 11 09:37:59 weird Apr 11 09:38:24 could it be that it requires another library to run? Apr 11 09:38:26 have you tried turning it off and on again? Apr 11 09:38:34 the emulator? Apr 11 09:38:42 sure Apr 11 09:41:07 still Apr 11 09:41:38 xtream: how the hell should I know? I have never seen the app or the code it uses Apr 11 09:41:43 maybe the "...15 more" shows details? Apr 11 09:41:48 you asked how to pipe sound in, and I told you the only way Apr 11 09:41:57 period Apr 11 09:46:34 oh. libSDL2 is compiled with another ndk version Apr 11 09:46:59 oh you did it wrong!! Apr 11 09:47:00 :) Apr 11 09:52:46 hopefully Apr 11 09:53:58 nope. still Apr 11 09:56:23 hi! can I somehow handle what happens when a SeekBar is clicked myself? so that when it is clicked, the only code that gets executed is mine. eg if that code is {}-empty, the SeekBar doesn't change Apr 11 09:56:56 anyone has ant build file that has signing target? Apr 11 09:57:39 I'm also interested in changing other ways of interacting with the SeekBar Apr 11 10:03:20 hi Apr 11 10:14:56 if i must have a background service which have to accepts some connections, where i should put the while loop, for the accept() ? onCreate() ? Apr 11 10:18:26 rendar: absolutely not. You must never block the UI thread. Apr 11 10:18:40 you can start a Thread to listen for something, maybe. Apr 11 10:19:54 rendar: and if you wish to start listening something during onCreate, you will want to stop this thread in onDestroy. Apr 11 10:30:22 root66 : i checked it in a local hardware store , they dont have any convertor which converts audio + mic into one input .. :) go to find something online Apr 11 10:34:05 just wasted 9 hrs on picasa stuff Apr 11 10:34:10 its virtually impossible Apr 11 10:34:16 especially with out of memory errors all over Apr 11 10:37:47 is there a way to read the removed sms? Apr 11 10:42:23 hi. i'm trying to fix an android app i inherited. it's troubled by a lot of crunching code in the ui which it uses startService(..) to execute. However, if I wrap this in a separate thread, the ui still becomes unresponsive while it's working and I get an "app not responding .. force close or wait" dialog. my question is, could it for some reason execute code in the ui thread after all? or is it possible that the background thread eats up so ma Apr 11 10:42:39 alankila: thanks, is what i guessed :) Apr 11 10:44:11 how to force the number of elements on the screen in GaleryView ? Apr 11 10:56:00 anyone ? Apr 11 10:56:54 what do you guys prefer to use when implementing an actionbar? Apr 11 10:57:16 i know google just released actionbarcompat Apr 11 10:57:24 but it still isn't as mature as actionbarsherlock Apr 11 10:57:33 although there are problems with actionbarsherlock Apr 11 10:57:46 i.e. no overflow in ICS Apr 11 10:57:55 http://groups.google.com/group/actionbarsherlock/browse_thread/thread/e9bc776886d25198 Apr 11 10:57:55 How is that a problem Apr 11 10:57:57 hmmm.. Apr 11 10:57:59 That's the native behavior Apr 11 10:57:59 any ideas? Apr 11 10:58:03 How Google made the ActionBar Apr 11 10:58:24 i'm not pointing out a problem or anything Apr 11 10:58:25 The same will happen with actionbarcompat, since it proxies to the native implementation on HC+ Apr 11 10:58:39 so you use ActionBarCompat? Apr 11 10:58:44 No Apr 11 10:58:48 I use ABS Apr 11 10:58:54 i'm asking what's common Apr 11 10:58:56 hmmm.. Apr 11 10:58:59 okay.. Apr 11 10:59:06 any problems you've encountered? Apr 11 10:59:26 ABC will never be as mature as ABS. ABC is simply a sample on how to use the native implementation on platforms that support it, and fall back to a compat implementation on those that don't Apr 11 11:00:19 okay.. Apr 11 11:00:23 hmmm Apr 11 11:00:27 something's eluded me for a while Apr 11 11:00:33 i use Action Bar Scott too Apr 11 11:00:46 it's that line separator in between menus in the actionbar Apr 11 11:00:49 is that an image? Apr 11 11:01:03 or a rendered view with special types of shadows and a white line? Apr 11 11:01:26 action bar scott * googling Apr 11 11:01:36 chups: it's a joke Apr 11 11:01:40 :P Apr 11 11:01:44 LOL Apr 11 11:01:55 don't get the reference Apr 11 11:01:59 haha Apr 11 11:02:58 is there a way to do the double action bar thing when the screen is in portrait mode? (Tablets) Apr 11 11:03:10 you know, like force it... Apr 11 11:03:40 would really not like to do configuration changes listener thingie... Apr 11 11:04:45 chups: It's just a divider drawn by the viewgroup Apr 11 11:24:13 interesting stuff (security) http://leviathansecurity.com/blog/archives/17-Zero-Permission-Android-Applications.html Apr 11 11:26:33 g00s: no surprises there Apr 11 11:26:51 that is quite interesting Apr 11 11:27:17 g00s: and since most users blindly accepts all permissions anyway what is available with no permissions doesn't really matter Apr 11 11:27:29 heh, indeed Apr 11 11:28:18 g00s: but it would be nice if the sandbox for android apps didn't leak so much, but it's probably to late for that now Apr 11 11:31:57 my neighbor works at adobe; it was interesting to hear the inside scoop of how their developers feel about android Apr 11 11:32:08 of course, we could say plenty of things about adobe too XD XD Apr 11 11:32:37 Hi all Apr 11 11:33:50 g00s: yeah, their flash updater on windows hasn't worked reliably since day one so I'd give them an incompetence rating of 9 out of 10 Apr 11 11:34:22 hah, well it was interesting to hear that most of the work is outsourced now Apr 11 11:34:35 all core technologies Apr 11 11:35:04 g00s: interesting Apr 11 11:35:25 the transition took about 10 years Apr 11 11:37:34 I have view.loadUrl("file:///android_asset/about.html") which works fine. To reference another asset, I used More but I get an error: The webpage at file:///android_asset//android_asset/m.html might be temporarily down bla bla - Any idea how to reference it correctly? /m.html tries to load file:///android_asset//m.html and file:///android_asset/m.html tries to load file:///android_asset//android_asset/m.html Apr 11 11:38:33 aleb: You need to set the base URL Apr 11 11:39:24 Ah, no Apr 11 11:39:37 That is only if you are loading html from a string. Apr 11 11:40:09 you could try ./m.html Apr 11 11:40:24 let me try Apr 11 11:45:25 Knossos, I think it's the custom URL resolver I'm using, I'll fix that. Apr 11 11:47:53 is it possible to monitor network connections with ddms ? Apr 11 11:58:10 anyone know how to double the action bar ? so that tabs are below action bar ? Apr 11 12:32:33 hello Apr 11 12:39:43 it still won't load my main.so file. Does this help: http://pastebin.com/hSJDd0fQ Apr 11 12:42:22 Has anyone noticed clicking, or audio artifacts when calling AudioRecord.stop() or AudioRecord.release()? Apr 11 12:43:47 why my eclipse suddendly wants to debug everytime when I run application? i dont hit debug button. it worked before. Apr 11 12:44:00 somehow it thinks run == debug Apr 11 12:47:09 i tried to change stuff from preferences but no luck Apr 11 12:53:40 hi Apr 11 12:54:44 yo Apr 11 12:54:52 i got it fixed Apr 11 12:54:58 does anyone have any experience with openglES in android ? how many poligons do you use in your 3d models ? Is 7500 triangles fine for most phones if i expect a frame rate of 25fps ? Apr 11 12:57:54 crap i did not get it fixed Apr 11 12:59:10 aah now i got it Apr 11 12:59:15 had stupid breakpoints Apr 11 12:59:31 and setting for always debug mode when breakpoints Apr 11 13:06:21 yo canadiancow i heard your boss is getting stalked Apr 11 13:06:45 so Apr 11 13:07:01 anybody know how to get write permission to the external SD card on 3.2 and up? Apr 11 13:07:08 WRITE_MEDIA_STORAGE is not being granted Apr 11 13:07:32 WRITE_EXTERNAL_STORAGE Apr 11 13:07:35 No matter what my Gui Xml editor accross many different projects isnt loading correctly it wont render the main.xml..... there are no errors Can someone give me a hand figuring that problem out ? Apr 11 13:07:52 pardom> yeah, that only works for internal storage ;) Apr 11 13:07:52 there must have been many people whom have had this problem Apr 11 13:08:17 :| I think you're mistaken http://developer.android.com/reference/android/Manifest.permission.html#WRITE_EXTERNAL_STORAGE Apr 11 13:08:26 pardom> I'm not. Apr 11 13:09:08 there is now also "media storage", the external SD card needs that permission to get the right group for writing Apr 11 13:09:10 WRITE_MEDIA_STORAGE is not even a constant, where are you seeing that? Apr 11 13:09:13 but the permission itself is protected Apr 11 13:09:47 resulting that on a number of tablets, 3rd party apps cannot write to external storage at all Apr 11 13:10:11 Anybody ? Apr 11 13:11:27 Chainfire: I assume you've already looked at the source? There's two groups sdcard_rw and media_rw Apr 11 13:11:43 Hi. I have a service (which run within the phone process). This service is supose to answer and hangup calls. Answer call works fine, but when i try to use telephonyservice.endcall(); i get an error telling me that the method will deadlock if called from the main thread. I have tried to wrap the telephonyService.endcall() in a new thread, but i get the same error. Any idea on how i can use this method without causing deadlock? Apr 11 13:11:57 pardom> yes, it seems to be impossible to get media_rw group Apr 11 13:12:13 I still don't understand why WRITE_EXTERNAL_STORAGE wouldn't work. Apr 11 13:12:22 because that grants only sdcard_rw Apr 11 13:12:58 which on dual storage (internal storage and external sd card) devices refers to internal storage only, while the external sd card has media_rw Apr 11 13:13:00 seems like a poor implementation by manufacturers to me Apr 11 13:14:21 you need to use WRITE_EXTERNAL_STORAGE. Apr 11 13:14:29 Don't complain when things aren't working because you don't want to do them correctly. Apr 11 13:14:32 * Chainfire repeats that that does not actually work Apr 11 13:15:04 some pastie code would help Apr 11 13:15:05 oh? Apr 11 13:15:11 * lov re-reads Apr 11 13:15:24 where are you trying to store content? Are you using the Environment methods? Apr 11 13:15:29 what device is this? Apr 11 13:15:38 I suppose Chainfire is talking about devices which has both external storage, and a sd card Apr 11 13:15:49 SimonVT> correct Apr 11 13:15:57 lov> I'm testing this on a SGT 7.7 Apr 11 13:16:07 but some Googling has revealed that a number of Honeycomb devices have this issue Apr 11 13:16:41 glorious samsung. Apr 11 13:16:45 hmph Apr 11 13:16:50 and glorious toshiba Apr 11 13:16:52 EXTERNAL_STORAGE should be valid for all user visible usb storage Apr 11 13:16:53 and glorious asus Apr 11 13:16:57 and glorious, hmm, every manufacturer ? Apr 11 13:17:00 so if that's not working, that's odd. Apr 11 13:17:12 What Environment calls are giving you locations that you can't write to? Apr 11 13:17:51 I'm not using Environment to get sdcard location, because that is completely useless on multi-external-storage devices Apr 11 13:18:11 ...... ah. Apr 11 13:18:12 but Environment *would* return /mnt/sdcard Apr 11 13:18:21 the current folder is /mnt/sdcard/extStorages/SdCard Apr 11 13:18:44 it's a shame you can't just tell customers with such broken devices that multiple external storage devices isn't supported by android :\ Apr 11 13:18:58 exactly Apr 11 13:19:12 Yeah, multiple storage points is a pain. I ended up looking through all storage points reported by df for a valid location for our app to use Apr 11 13:19:19 that said, I do default to the partition on Environment.getExternalStorage Apr 11 13:19:21 Good morning all. Being relatively new to android development, I have a best-practices question. I need to on-boot, after SD card recources are ready, perform an operation. There are of course intents to listen for BOOT_COMPLETE and SD_READY but is there a preferred approach for detecting that a particular SD_READY intent has occurred as a result of a reboot, or because the user un-mounted and re-mounted it? The approach I was goin Apr 11 13:19:22 take was to set a preferences flag, but is there a preferred approach? Apr 11 13:19:46 lov> I like to offer the choice, and autodetect etc - which isnt a problem Apr 11 13:19:55 but now I can't seem to friggin' write to the area Apr 11 13:20:01 Right. Apr 11 13:20:02 Guys, I wrote this class. It woks great, but on some devices there is an audible clicking when recording stops. Could it be a problem with my code, or with the native implementation of AudioRecord? http://www.michaelpardo.com/2012/03/recording-audio-streams/ Apr 11 13:20:32 We've had multiple-external-storage devies since Android 2.0, it's completely retarded that by 3.2 it _still_ isn't properly supported. Apr 11 13:20:35 The problem is that if you're just picking hardcoded paths, etc, there's no guarantee that anything will work correctly. Apr 11 13:20:52 Right, well, the problem is that multiple storage isn't something that the Android team drove. It's something that the manufacturers just kind of DID. Apr 11 13:21:04 and that makes a difference, how ? Apr 11 13:21:06 lov: it is retarted that manufacturers added it to their devices Apr 11 13:21:10 .... Apr 11 13:21:21 WTF cares what the Google team wants? It's about what the customers want, and the customers want more storage, and thus manufacturers give more storage Apr 11 13:21:32 well, no. Apr 11 13:21:35 The customers want more storage Apr 11 13:21:40 but the manufacturers are giving MULTIPLE STORAGE POINTS Apr 11 13:21:42 instead of MORE STORAGE. Apr 11 13:21:58 they give an X number of builtin storage, and extendable storage Apr 11 13:22:03 it is the ideal solution Apr 11 13:22:04 Chainfire: then they could've added more storage insteaded of creating the broken mess we have now Apr 11 13:22:07 no, it's really not Apr 11 13:22:13 because now you have TWO places you can possibly write your external storage Apr 11 13:22:20 and now, as a developer, you need to figure out which one to use Apr 11 13:22:28 or you need to offload that decision onto the user who doesn't give a fuck Apr 11 13:22:45 thats my point - the user *does* give a fuck Apr 11 13:22:50 additionally, because there's no official APIs, that means that the actual results are not predictable Apr 11 13:22:53 no Apr 11 13:22:54 CM users give a fuck Apr 11 13:22:58 end users don't even know what storage is Apr 11 13:23:09 else they would not insert an SD card in the first place, and there would only be one choice, so no problem :) Apr 11 13:23:14 hahaha Apr 11 13:23:15 dude Apr 11 13:23:22 the devices come with the sd cards preinsterted Apr 11 13:23:25 *pre-inserted Apr 11 13:23:32 maybe in your neck of the woods Apr 11 13:23:35 o_O Apr 11 13:23:44 by which you mean "the civilized world" yes I suppose so? Apr 11 13:23:45 O.o Apr 11 13:23:50 I've *never* had an SD card preinstalled in my phone Apr 11 13:23:54 hahaha whaaaaat Apr 11 13:23:56 and I've purchased abuot 100 smartphones Apr 11 13:23:57 where the fuck are you from Apr 11 13:24:01 With regard to external sorage, you'd think support could be achieved by returning a list when Environment.getExternalStorage is checked in list context, and a string when in string context, where the string would return the 'default' device Apr 11 13:24:13 Netherlands Apr 11 13:24:15 where the carrier/manufacturer would skimp out on a $10 storage point on a $600 phone Apr 11 13:24:22 ok, in the US, this never ever happens Apr 11 13:24:25 right Apr 11 13:24:28 so here's something Apr 11 13:24:33 and the US market is dramatically larger than the netherlands market Apr 11 13:24:36 Ive always had SD in mine (Germany, UK). But they have always been shitty cards. Apr 11 13:24:36 the US is not the world, and your assumptions do not work for the rest of us Apr 11 13:24:51 while true, the US is one of the largest markets Apr 11 13:24:53 Chainfire: nice work with SuperSU Apr 11 13:25:00 always had a SD card in mine (uk) Apr 11 13:25:02 Napalm> thx Apr 11 13:25:07 so it's reasonable to assume that if you're writing an app, a US user is going to be using it Apr 11 13:25:13 look Apr 11 13:25:17 regardless Apr 11 13:25:27 *my* customers care about where shit is stored Apr 11 13:25:27 I've literally never come across a device which had an external storage point and didn't actually have it filled, even with a super cheapo card Apr 11 13:25:35 cause I generate lots of GB's of data Apr 11 13:25:52 and the devices have had support for this for years Apr 11 13:26:06 alright, well, if you don't use the visible apis there's no guarantee of what will happen. The only guarantee is what CTS promises. Apr 11 13:26:10 that Google (and you?) still acts like it doesn't exist is just plain stupid. Apr 11 13:26:37 Chainfire: I'm genuinely curious about what kind of api interface you'd write for this. Apr 11 13:27:04 arg, the android compatibility library should have PreferenceFragment in it Apr 11 13:27:19 now i have to go pull it out of the android source myself Apr 11 13:29:01 Chainfire: please ensure that the implementation is rigorous, and now counts for multiple removable storage points, non-removable storage points, ways to query for them, a way to determine the DEFAULT storage point to use (which the user can override) Apr 11 13:29:25 lov> whats so hard about that Apr 11 13:29:44 nothing, right? Feel free to write it, and submit it to AOSP. Apr 11 13:29:59 that doesnt help the problem I'm having now Apr 11 13:30:07 so your solution is to just complain? Apr 11 13:30:15 which is that I still cant write to external SD card, which my customers need, and they'll blame both me and Android for it :) Apr 11 13:30:25 lov> no, my solution was to come here and ask if there was any solution Apr 11 13:30:33 to be fair they'll probably blame you, not android Apr 11 13:30:34 ok, so back to THAT question Apr 11 13:30:53 what's the situation with the actual file permissions? Apr 11 13:31:01 Chainfire: tell them to blame the manufacturer of their device ;) Apr 11 13:31:05 is that other storage point mounted under some other permissions scheme? Apr 11 13:31:17 yes it uses media_rw instead of sdcard_rw Apr 11 13:31:19 What apps do you know about that CAN write to it? Is it only the built-in camera? Apr 11 13:31:21 as user/group Apr 11 13:31:30 all embedded apps can write to it Apr 11 13:31:40 so only systemOrSignature? Apr 11 13:31:40 because android.permission.WRITE_MEDIA_STORAGE is granted to all platform apps Apr 11 13:31:56 yup Apr 11 13:32:14 so it's literally impossible for you to do this, because the manufacturer decided to create a "hidden" storage point that only they can access. Apr 11 13:32:38 I'm not sure how this is an android problem instead of a manufacturer problem. There are other devices with multiple storage points that don't create special permissions to hide them. Apr 11 13:32:41 again, multiple manufacturers have the exact same problems Apr 11 13:32:58 that is what makes me believe Google has had something to do with it Apr 11 13:33:22 Chainfire: why can't multiple manufacturers do the same stupid thing? Apr 11 13:33:30 Why are you so convinced google wants to provide a special method for only manufacturers to have access to their pretty princess storage? Apr 11 13:33:33 They're MANUFACTURERS Apr 11 13:33:43 they're a synonym for "short sighted stupid decisions and breaking compatability" Apr 11 13:34:24 well, it's possible they all made the same mistake, I would just call it unlikely the all make the exact same mistake, with exactly the same permissions and exactly the same solution for root users Apr 11 13:34:24 so where's the GPU acceleration hidden for AVDs? Apr 11 13:34:29 that's just not likely Apr 11 13:34:44 Chainfire: pull AOSP down, look for "media_rw" in there, see if you can find anything there. Apr 11 13:34:46 Chainfire: why not? one did it first and the others copied it Apr 11 13:34:49 ^^ Apr 11 13:35:33 Chainfire: and they might not consider it a mistake, perhaps they think it is a feature that makes life simpler for them Apr 11 13:36:08 ^^ Apr 11 13:36:20 "Users can use the camera now, even when they fill up storage! GENIUS!" Apr 11 13:36:46 I seriously doubt that there's some grand google conspiracy. Remember Hanlon's razor. Apr 11 13:37:32 great that you trust Google so much Apr 11 13:37:35 * Chainfire doesn't Apr 11 13:37:47 oh dear Apr 11 13:37:50 android_filesystem_config.h Apr 11 13:37:58 "media_rw" Apr 11 13:38:46 Chainfire: and it is used for what in aosp? Apr 11 13:38:46 ok, so take a look at whats going on there. Apr 11 13:40:34 ah Apr 11 13:40:44 ./system/vold/Volume.cpp- // For secondary external storage we keep things locked up. Apr 11 13:40:44 ./system/vold/Volume.cpp: gid = AID_MEDIA_RW; Apr 11 13:40:51 still not by design? Apr 11 13:41:09 ok, well done colombo Apr 11 13:41:17 you've discovered the conspiracy of MEDIA_RW Apr 11 13:41:28 Chainfire: then you have your answer for your customers :) Apr 11 13:41:39 bring it up during office hours, ask what's going on and how you can get at it Apr 11 13:41:42 or contact a dev rel Apr 11 13:44:27 guess that'll have to do Apr 11 13:44:36 but thanks for the hostility either way ;) Apr 11 13:45:48 that's what irc is all about yo Apr 11 13:47:37 wowza finally got my picasa module going, after like 12 hours Apr 11 13:50:51 In other news, perforce continues to make me rage. Apr 11 13:51:02 hehe Apr 11 13:54:58 I have a best-practices question. I need to on-boot, after SD card recources are ready, perform an operation. There are of course intents to listen for BOOT_COMPLETE and SD_READY but is there a preferred approach for detecting that a particular SD_READY intent has occurred as a result of a reboot, or because the user un-mounted and re-mounted it? The approach I was going to take was to set a preferences flag, but is there a preferr Apr 11 13:54:58 approach? Apr 11 13:55:17 yeah, there's no good answer here. Apr 11 13:55:33 ok, that was my thnking Apr 11 13:55:43 I just hate setting a ton o stupid preerence flegs Apr 11 13:55:50 er flags Apr 11 13:55:51 well, you don't have to set a bunch Apr 11 13:55:57 2 Apr 11 13:56:01 not even 2. Apr 11 13:56:07 You only need one. Apr 11 13:56:18 Have a receiver that handles both the BOOT_COMPLETE and SD_READY intents. Apr 11 13:56:39 I have to handle the condition of user wants my service started on-boot, and service is running when they unmount the SD card Apr 11 13:57:11 when you get the BOOT_COMPLETE intent, check whether the SD card is ready for use via Environment. If it is, great. Set "not_run" to false. If it's not, set "not_run" to true. When your SD_READY intent comes in, check whether "not_run" is true. If it is, perform the action, and set it to false. Apr 11 13:57:22 in order to etermine whether it's an on-boot restart, or an unmount/remount case where restart depens upon previous on/of state Apr 11 13:57:28 right right right right right Apr 11 13:57:29 stop Apr 11 13:57:32 this is solved. Apr 11 13:57:37 see what I wrote. Apr 11 13:57:42 up,up, down,down Apr 11 13:57:44 yup. thanks Apr 11 13:58:00 you either perform your action in the BOOT_COMPLETE receiver or the SD_READY receiver, but once you've performed the action you set your preference to false. Apr 11 13:58:15 if you're not ready in the BOOT_COMPLETE receiver, don't run the action, set the pref to true. Apr 11 13:58:40 yeah, still aggrevating there isn't a more elegant way to do it Apr 11 13:59:37 Is there a good argument for creating the secondary intent filter on the fly, rather than in the manifest? Apr 11 13:59:47 I don't think there is... Apr 11 14:00:03 don't bother. Apr 11 14:00:06 this is extremely simple as is Apr 11 14:00:20 perhaps I'm over-engineering it Apr 11 14:00:23 you are. Apr 11 14:00:40 ty Apr 11 14:00:50 yw <3 Apr 11 14:02:33 i was just wondering whats the most common naming convention for ids? I was using camelcase, but most people seem to use something like this: R.id.foo_bar Apr 11 14:02:51 whatever you want big fella Apr 11 14:03:27 I use cLIFF cASE Apr 11 14:03:47 eww Apr 11 14:04:04 thats what she said Apr 11 14:04:13 lol ok Apr 11 14:04:21 she said that to u? sad story... Apr 11 14:04:52 whats the best way to get a phone's screen showing on a tv Apr 11 14:04:56 the tv is fully featured Apr 11 14:05:00 and has a logitech revue connected Apr 11 14:05:17 canadiancow|work: get a video camera Apr 11 14:05:18 canadiancow|work: I like AirPlay Apr 11 14:05:22 One other question, Is there an intent I can listen for to et a few seconds to finish writing a file PRIOR to MEDIA_UNMOUNTED? Apr 11 14:05:26 AirPlay is awesome Apr 11 14:05:38 hdmi cable Apr 11 14:05:40 canadiancow|work realtime? Apr 11 14:05:40 I like USB to S cable converters Apr 11 14:06:06 hillct: why would that even be possible? Apr 11 14:06:20 hillct: look in the Environment class, you'll get a warning when the storage is about to unmount Apr 11 14:06:24 evancharlton: look in the Environment class :P Apr 11 14:06:27 evancharlton, we are going back to the future! Apr 11 14:06:31 it won't be a few seconds though, it might be like 100ms Apr 11 14:06:34 Jug6ernaut: yes Apr 11 14:06:38 evancharlton: user has requested to unmount their SD card, "let this be your warnding, applicaitons" Apr 11 14:06:39 evancharlton: ... not helpful Apr 11 14:06:42 lov: yeah, a few seconds was my point :) Apr 11 14:06:47 canadiancow|work what device Apr 11 14:06:52 most support hdmi out these days Apr 11 14:06:57 also, if the user just pulls the SD card, you're not going to be notified Apr 11 14:07:04 sure you are Apr 11 14:07:11 wasnt that the point of the door on the g1? Apr 11 14:07:25 and the push in? when you push it in, thats the warning Apr 11 14:07:26 mikedg: oh, yeah, lots of people still have G1s :P Apr 11 14:07:32 hmm... Apr 11 14:07:32 evancharlton: that's certainly true, but I was hoping to at least elegantly handle a sotware unmount event Apr 11 14:07:34 then you pull out and the sd card card explodes all over Apr 11 14:07:36 evancharlton: actually! Apr 11 14:07:43 evancharlton: in the G1, there was a warning when you opened the little cover Apr 11 14:07:52 lov: 10:08 < evancharlton> mikedg: oh, yeah, lots of people still have G1s :P Apr 11 14:07:56 oh shut it :| Apr 11 14:08:01 anyway, I don't even see that stuff in Environment Apr 11 14:08:03 i still have a g1 Apr 11 14:08:05 it might have just been silently removed :P Apr 11 14:08:08 I doubt it Apr 11 14:08:11 at one time it was by far the most popular android phone Apr 11 14:08:23 mikedg: yeah, almost 100% of users had it!! Apr 11 14:08:23 ofc Apr 11 14:08:26 when it was the only one Apr 11 14:08:31 hmm Apr 11 14:08:32 http://developer.android.com/reference/android/content/Intent.html#ACTION_MEDIA_EJECT Apr 11 14:08:46 mikedg: at one time it was the ONLY android phone Apr 11 14:09:01 lol, evancharlton beat me to it Apr 11 14:09:06 is there a quick way to find out how often a string appears within a larger string? Apr 11 14:09:07 does anyone actually listen for ACTION_MEDIA_ERECT? Apr 11 14:09:12 no Apr 11 14:09:13 gaz: guess Apr 11 14:09:30 hehe Apr 11 14:09:32 no then Apr 11 14:09:32 I want all my media to be erect Apr 11 14:09:53 Gaz`: .indexOf(..) until it returns -1 ...? Apr 11 14:10:00 hehe Apr 11 14:10:01 erect Apr 11 14:10:02 yeh i guess so Apr 11 14:10:04 cheers Apr 11 14:10:17 Gaz`: is there a quick way to find out if you actually think about a question before you ask it? Apr 11 14:10:25 lov: no Apr 11 14:10:34 shit Apr 11 14:10:45 well i looked into it, thought maybe some of u gurus knew something cool :) Apr 11 14:11:00 Gaz`: I just told you Apr 11 14:11:02 oh, yeah, you just use String.doMyJobForMe() Apr 11 14:11:22 yeh evancharlton i guess thats what ill do Apr 11 14:11:26 * Jug6ernaut loves that function Apr 11 14:11:47 android.provider.Telephony; is the same as telephony now right ? Apr 11 14:13:06 [10:06:47] canadiancow|work what device Apr 11 14:13:16 yea we're probably going to end up doing it that way Apr 11 14:13:21 but we have like 6 demos from 6 people Apr 11 14:13:27 all for a product with the same package name Apr 11 14:13:30 all signed with debug keys Apr 11 14:13:41 so it would have been nice to just be able to mirror shit easily :) Apr 11 14:14:04 write an iphone version Apr 11 14:14:07 and just demo it using airplay Apr 11 14:14:09 problem solved Apr 11 14:14:46 and you get the bonus of supporting a more popular platform Apr 11 14:15:39 Has anyone worked with the Mono development toolset which aparently compiles to both iPhone and Android targets? Apr 11 14:16:00 It's not at all clear how complete it is... Apr 11 14:16:09 from what I can tell Apr 11 14:16:40 Soon enough people will do most stuff in HTML5 anyways to make portable apps...? :-P Apr 11 14:16:49 yeah Apr 11 14:17:01 the cross-platform libraries that promise to do things quickly and simply usually do things poorly and slowly. Apr 11 14:17:06 Mikellip: with everything looking and behaving like ios apps :\ Apr 11 14:28:38 Good morning everyone. Apr 11 14:29:29 is there any other xml gui editor that anybody uses besides eclipse ? Apr 11 14:31:21 mikedg why u mad? Apr 11 14:31:23 :( Apr 11 14:39:39 so where's the GPU acceleration hidden for AVDs? :) Apr 11 14:39:46 can I get an JNIEnv pointer somehow? Apr 11 14:40:05 you get one in any native JNI function... Apr 11 14:40:25 yes. But my framework (SDL) hides it from me Apr 11 14:41:19 Hrm... the onUpgrade() method of my database contains a very long running operation Apr 11 14:41:38 It is causing my ContentProvider to throw an ANR. Any suggestions what I can do? :| Apr 11 14:41:56 design better Apr 11 14:42:18 Heh Apr 11 14:44:09 if you're using content provider + cursorloader, shouldn't it just be in the background? Apr 11 14:45:10 I'm fairly certain I'm doing some incorrect design. Can't pinpoint it, though. Apr 11 14:45:38 The onCreate of ContentProvider does say not to do any long running operation or it'll slow down the application startup Apr 11 14:46:38 in DDMS file exporer, my /data directory looks empty, why would that be... Apr 11 14:51:50 do i need root to view /data? Apr 11 14:51:58 so.... Apr 11 14:52:12 the emulator GPU support, it was never mentioned whether it supports linux explicitly or not so i just assumed yes Apr 11 14:52:16 looks like no? Apr 11 14:52:17 Wavesonics: yes. Apr 11 14:52:38 still slow as balls over here... Apr 11 14:54:19 Did you enable it, jasta ? Apr 11 14:54:28 SimonVT: how is it enabled? Apr 11 14:54:48 oh with -gpu on? Apr 11 14:54:56 yep Apr 11 14:54:58 yeah that definitely made it fast. why isn't that a default? Apr 11 14:55:07 as you said that i was actually booting it up with -gpu on to test Apr 11 14:55:13 color me surprised that this was needed. Apr 11 14:55:14 Cus it crashes on a lot of computers Apr 11 14:55:22 Mine included :( Apr 11 14:55:32 damn... Apr 11 14:55:42 hmm, fonts look hideous Apr 11 14:55:44 I am replacing my phone, and i want to back upn this stupid app Apr 11 14:59:01 Wavesonics: cool story bro. #android-root, titanium backup Apr 11 14:59:36 lov, I have to sned this phone back, will have to pay for it if it's rooted since it's being replaced under warranty Apr 11 14:59:47 WELP! Apr 11 14:59:56 :P Apr 11 15:00:01 you could root it, pull the app, and replace it with stock Apr 11 15:00:10 ya not worth it Apr 11 15:00:13 ooooor you could just take the hit of not backing up your save games or whatever Apr 11 15:00:17 thx for the thoughts though Apr 11 15:00:24 ya Apr 11 15:00:34 it's a work out app im going to lose history in Apr 11 15:00:36 not a big deal Apr 11 15:00:43 idk why it doesnt provide a backup option Apr 11 15:01:42 how do I set the image for my app? ie the image that shows among applications? Apr 11 15:01:50 it's kind of ridiculous you need root to back things up properly on Android Apr 11 15:02:08 mrBG: set the icon for your Application in the manifest, set the icon for your Activity. Apr 11 15:04:58 Wavesonics: if you're comfortable with linux in general Apr 11 15:05:19 Wavesonics: just root it with zergrush, go in with shell, back it up, done. It won't modify the phone. Apr 11 15:05:53 dragorn, then what, factory reset after root? Apr 11 15:07:00 "getting root" isn't the same as "keeping root". Usually you'd exploit, then load su, superuser.apk, etc. Don't do that. Just exploit to root over adb shell, dump out your settings files, and reboot. The exploit is transient unless you install suid-root stuff to keep access. Apr 11 15:07:17 If you're not comfortable w/ linux shell stuff though it's probably goign to be a big hassle Apr 11 15:08:35 dragorn, ah i got ya, no im comfortable w\ it. was thinking of unlocking the bootloader, flashing an image w\ root Apr 11 15:08:55 that's highly invasive when you can jsut do somethign like zergrush, which almost every device is vulnerable to Apr 11 15:09:16 Wavesonics: unlocking your bootloader will do a FDR Apr 11 15:09:27 true Apr 11 15:20:35 mikedg: lol @ g+ comment Apr 11 15:22:44 you know guys Apr 11 15:22:48 i wonder if IRC is ever going to die Apr 11 15:23:20 eventually, everything goes away Apr 11 15:23:20 are there any other public free real-time chat systems that allow 711 people in a room? Apr 11 15:23:46 it justs eems to be an enigma in the technical world Apr 11 15:23:55 yeah Apr 11 15:24:01 I can see a future where IRC outlives HTTP, for example. Apr 11 15:24:06 and that is really saying something Apr 11 15:24:07 what gets me about IRC is that it's basically unchanged Apr 11 15:24:08 lol Apr 11 15:24:31 the last major change to IRC was NickServ and ChanServ Apr 11 15:24:47 but those are... extensions Apr 11 15:24:50 IRC is still the same Apr 11 15:24:54 right Apr 11 15:25:01 that's my point Apr 11 15:25:07 <`z> evancharlton, those are services Apr 11 15:25:12 <`z> just addons Apr 11 15:25:14 SIGH Apr 11 15:25:17 you guys are morons Apr 11 15:25:26 I WAS CLARIFYING IT FOR OTHERS Apr 11 15:25:29 `z is trollin Apr 11 15:25:34 !addquote you guys are morons Apr 11 15:25:41 <`z> are you trying to say that IRCds come with *Serv by default? Apr 11 15:25:48 yes Apr 11 15:25:50 the obviously do Apr 11 15:25:53 it's in the protocol Apr 11 15:25:55 <`z> no, they don't Apr 11 15:25:56 <`z> they Apr 11 15:25:57 <`z> don't Apr 11 15:25:59 ermph Apr 11 15:26:00 T_T Apr 11 15:26:06 evancharlton can i have +v before you +m Apr 11 15:26:10 `z: you're too easy Apr 11 15:26:22 <`z> the IRCd is just the daemon Apr 11 15:26:27 ive never ran accross one that does, but I have never ran a kiddie ircD Apr 11 15:26:27 `z: he was obviously trolling you. older than IRC itself is trolling IRC (wait, what?) Apr 11 15:26:28 <`z> you have to run an additional services process Apr 11 15:26:44 `z: yes, we know. Apr 11 15:26:58 <`z> but IRCds don't come with services by default. Apr 11 15:27:01 <`z> that is all Apr 11 15:27:07 +v Apr 11 15:27:16 evancharlton: i mean really, fire is starting to come against HTTP that makes me think it could conceivably be replaced (maybe by HTTP 2, maybe not). give it say 10 years... Apr 11 15:27:25 but in 10 years, do I think IRC will still be here just like it is now? oh yeah. Apr 11 15:27:37 anyone remember taht visual IRC client Apr 11 15:27:40 from microsoft? Apr 11 15:27:41 <`z> evancharlton, most popular ircds* Apr 11 15:27:45 <`z> like unrealircd Apr 11 15:27:48 ... Apr 11 15:27:50 `z stfu Apr 11 15:27:53 <`z> i haven't seen any ircds which come with services by default Apr 11 15:27:54 jasta: at this point, I'm scared of what changes they'd make to HTTP. It'd probably be like HDCP Apr 11 15:27:56 no keep raging Apr 11 15:28:00 i want more +b Apr 11 15:28:04 +v Apr 11 15:28:20 evancharlton: seriously? Google's SPDY for example is hardly scary. Apr 11 15:28:24 it's an obvious idea that's a long time coming... Apr 11 15:28:34 jasta: yeah Apr 11 15:28:48 <`z> well... apparently you don't want to listen, so i'll just stfu Apr 11 15:28:49 Microsoft S&M is kinda scary Apr 11 15:28:58 <`z> MICROSOFT BOB AT YOUR SERVICE Apr 11 15:29:07 `z: no, you're just bitching about dumb shit that we already know. Apr 11 15:29:11 <`z> mhm Apr 11 15:29:17 Microsoft is kinda scary Apr 11 15:29:22 `z: again, do you not know you were being messed with? Apr 11 15:29:29 <`z> Microsoft is kinda scary Apr 11 15:29:44 jasta: and actually isn't new nor was started by Google (SPDY) Apr 11 15:30:08 no large companies start anything... they wait for small groups to build something nice then buy them Apr 11 15:30:26 now that's a hell of a blanket statement Apr 11 15:30:31 evancharlton: actually, HDCP-related bits were done in JS APIs, on influence from Netflix and similar Apr 11 15:31:24 QubeZ: well you know, even if that were generally true, a lot of times big companies are there to incubate fragile ideas and mature them. a very important step in technology. Apr 11 15:31:56 jasta: *nod* I didn't mean to imply that big companies are useless... but they become "big" through acquisitions. Apr 11 15:32:27 QubeZ: pretty sure that Amazon is doing some pretty awesome stuff and not just buying it off other people Apr 11 15:33:13 evancharlton: you still in the bay area? Apr 11 15:33:18 jasta: yep Apr 11 15:33:26 i'll be there in a couple weekends Apr 11 15:33:37 yeah? when? Apr 11 15:33:42 hang on ill priv you the details Apr 11 15:33:45 k Apr 11 15:40:35 anyone using WebSockets in their apps? looking for a good/the best library Apr 11 15:40:58 Rockmaninoff: no, but i'm interested in what you find; i've been considering it Apr 11 15:41:21 Rockmaninoff: i may end up counting on firefox/chrome though since I'd really rather target a browser layer Apr 11 15:41:33 yeah Apr 11 15:41:48 Autobahn and UnittWebSocket look promising Apr 11 15:41:59 UnittWebSocket even has maven compatibility Apr 11 15:49:03 interesting. opening OI File Manager with emulator GPU acceleration enabled crashes the emulator reproducibly Apr 11 15:49:20 brains fried just done 20 hr coding sesh Apr 11 15:49:32 got quite a lot done, would have been way more if picasa didnt annoy me Apr 11 15:53:29 Wonder if anyone know where I can find a list of "styles" I can customise, for example android:windowBackground, is there a large list anywhere of what each one is and what it does? Apr 11 15:53:44 you know what's annoying with logcat? Apr 11 15:53:50 it "supports" regular expressions Apr 11 15:53:55 but it parses htem as you type Apr 11 15:53:59 so you type a [ Apr 11 15:54:02 and it dies Apr 11 15:54:33 gggggggg Apr 11 15:54:43 wait Apr 11 15:54:46 mitchellj: Look up the docs for android.R.attr Apr 11 15:54:52 what do you mean it parses them as you type Apr 11 15:54:55 where are you typing Apr 11 15:54:59 the logcat filter Apr 11 15:55:00 do you mean within eclipse? Apr 11 15:55:01 oh ok Apr 11 15:55:02 yea Apr 11 15:55:04 ty SimonVT Apr 11 15:55:07 so if iwant text:[A-Z]{8,16} Apr 11 15:55:10 yeah, that thing is just fucked up Apr 11 15:55:16 it crashes after every character between [ and Z Apr 11 15:55:19 every time a fucking process emits a log, it IMMEDIATELY grabs focus Apr 11 15:55:21 and then again between { and 16 Apr 11 15:55:43 and if you have an actual filter on a process, it sets the filter to THAT PROCESS Apr 11 15:55:49 meaning that it's infuriating trying to use it, and I just use the command line Apr 11 15:59:47 lov: ... you know you can turn off the focus-stealing, right? Apr 11 16:01:35 when I read an article about android security, I get a bit mad, because it's usually alarmist FUD Apr 11 16:01:47 is there a spinner or something i can put inside a view? Apr 11 16:01:55 in this case, his discovery that the browser can be used without INTERNET permission is about 2 years late, but whatever Apr 11 16:01:59 i dont want a dialog or anything. just something inside my view. Apr 11 16:02:04 something besides a gif. Apr 11 16:02:06 http://leviathansecurity.com/blog/archives/17-Zero-Permission-Android-Applications.html Apr 11 16:03:02 "Secondly, I can fetch the /data/system/packages.list file to determine what apps are currently installed on the device." Apr 11 16:03:08 ..... or you could use PackageManager, you yutz. Apr 11 16:03:14 test Apr 11 16:03:30 Gotta get those pageviews, readme Apr 11 16:05:35 Can someone explain to me what an AbsSeekBar is? compared to ProgressBar or SeekBar, which I do know Apr 11 16:05:57 lov: "On linux, I can list /usr/bin!" Apr 11 16:06:01 SECURITY HOLE! Apr 11 16:06:10 there was no explanation on the reference page Apr 11 16:07:15 okay, this is embarrassing.... Upon trying to run a handler to change scenes with an AndEngine app, it closes the app and returns to launcher Apr 11 16:07:21 no error message or any other output Apr 11 16:07:23 Just a class with common logic for SeekBar and RatingBar, judging from the documentation Apr 11 16:07:29 the app isn't running after this Apr 11 16:07:31 any more jabs I can add here? http://news.ycombinator.com/item?id=3828159 Apr 11 16:10:13 is it possible to send data to an application via usb (mobile in debug mode of course) from an external app? (using the SDK of course) The action should preferably start the target application as well if it's not running Apr 11 16:10:20 I'm trying to implement a "try the level on your device" functionality to my level editor (standard java app) Apr 11 16:16:44 Almindor, kinda Apr 11 16:16:53 Almindor, you can adb push to send files to it Apr 11 16:17:03 Almindor, and you can use adb shell am start to launch an activity Apr 11 16:17:17 dunno how you'll get args using am start, though Apr 11 16:17:23 hey pfn Apr 11 16:17:54 pfn: you can pass arguments as extras for the intent :> Apr 11 16:18:03 in MCC design the View can't modify the data, isn't it ? Apr 11 16:18:07 lov, not with am start, though Apr 11 16:18:16 Napalm, morning Apr 11 16:18:22 s/MCC/MCV Apr 11 16:18:38 hmm well I guess I could save the file and make the game delete it on use (so it's a one-time test trip) Apr 11 16:18:43 but I think it can filter the data Apr 11 16:18:51 aLeSD: MVC Apr 11 16:18:56 :) Apr 11 16:19:04 rock ! Apr 11 16:24:54 pfn: orly? Because I've used am start to do just that. Apr 11 16:25:07 start an Activity: am start [-D] [-W] Apr 11 16:25:13 specifications include these flags: Apr 11 16:25:21 [-e|--es ...] Apr 11 16:25:26 [--esn ...] Apr 11 16:25:27 ah, didn't see that Apr 11 16:25:31 [--ez ...] Apr 11 16:25:31 etc Apr 11 16:25:44 I could potentially push the whole level (it's like 2kb max size JSON string) Apr 11 16:25:48 yeah Apr 11 16:25:56 use adb push to push the file onto the device somewhere Apr 11 16:26:03 then adb shell am start, and give it the location of the file as an arg Apr 11 16:26:06 and then --es with path Apr 11 16:26:08 yeh Apr 11 16:26:09 thanks Apr 11 16:26:12 np Apr 11 16:38:42 Can someone explain to me what an AbsSeekBar is? compared to ProgressBar or SeekBar, which I do know Apr 11 16:39:08 joel135, the docs explain what absseekbar is Apr 11 16:39:55 how can i make a notification "removable" (android 4+) Apr 11 16:40:09 same as in android 1.0+ Apr 11 16:41:16 pfn: what docs? I've read http://developer.android.com/reference/android/widget/AbsSeekBar.html, but still I don't get it. Apr 11 16:42:23 pfn : this is? Apr 11 16:42:58 joel135: Known Direct Subclasses RatingBar, SeekBar Apr 11 16:43:03 everythingWorks, notifications are removable if they're not an ongoing task Apr 11 16:43:10 It's an abstract super class for those two Apr 11 16:43:15 Probably containing common logic Apr 11 16:43:30 And it IS a ProgressBar Apr 11 16:43:37 The docs also tells you that Apr 11 16:44:18 kkk Apr 11 16:44:39 SimonVT: does abstract mean I can't use it like any other view, just writing in an xml? Apr 11 16:45:06 [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] Apr 11 16:45:07 man Apr 11 16:45:12 and they say java is ugly... Apr 11 16:45:15 or verbose Apr 11 16:45:18 abstract means you gotta google how to java Apr 11 16:46:45 SimonVT: thanks for clarifying that Apr 11 16:49:23 I need to expose the context just for use in a jUnit TestCase. Should I just extend Application put a static accessor for the context there? Apr 11 16:49:51 I'm not using activities or services. This is a vanilla case but it uses composition at one point to read a file from res/raw which needs the context. Apr 11 16:49:55 i just have a static application instance Apr 11 16:50:06 readme: Activity context = new Activity(); Apr 11 16:50:16 there's a junit test runner on-device? Apr 11 16:50:21 JakeWharton: for real =O just like that? Apr 11 16:50:30 pfn: you can run plain tests, yeah. Just subclass TestCase Apr 11 16:50:41 so you're running on device? Apr 11 16:50:48 Yes, it will run on the device. Apr 11 16:51:07 do you use robolectric? Apr 11 16:51:28 I don't Apr 11 16:51:37 lets you run em on your machine. i'm gonna try it soon Apr 11 16:51:38 Im currently coding a settings screen which looks like this: http://dl.dropbox.com/u/6559846/act.PNG Apr 11 16:51:45 hey guys, what kickstarter shit have you funded? Apr 11 16:51:46 but it should look more like this: http://dl.dropbox.com/u/6559846/act2.PNG Apr 11 16:51:57 mikedg: nothing, but that new watch looks sweet Apr 11 16:52:14 the pebble Apr 11 16:52:25 Robolectric is great until you run into something they glossed over Apr 11 16:52:27 which is A LOT Apr 11 16:52:32 yeah, i was thinking about funding the $250+ one Apr 11 16:52:45 $235 Apr 11 16:53:00 in Robolectric the ShadowActivity maintains a view and so does the TestWindow, but not in the same way Apr 11 16:53:14 so if you do any interaction with the Window in your code you'll get NPEs everywhere Apr 11 16:53:16 mikedg: if I had extra money i'd definitely fund it.. especially since you're really just buying a watch :) Apr 11 16:53:20 it looks solid Apr 11 16:53:37 JakeWharton is too technical? Apr 11 16:53:40 ah Apr 11 16:53:52 :( Apr 11 16:54:24 the whole thing looks a bit too "android 2.1" and not 4.0 Apr 11 16:54:56 are you running it on Android 4.0? Apr 11 16:55:15 yes Apr 11 16:55:19 are you using Holo? Apr 11 16:55:26 "no" Apr 11 16:55:32 ^_^ Apr 11 16:55:58 Wtf, g+ Apr 11 16:55:58 well Apr 11 16:56:08 I still want it to look good at 2.1 devices Apr 11 16:56:12 What's with the alignment Apr 11 16:56:17 the theme definition is :