**** BEGIN LOGGING AT Thu Apr 05 02:59:58 2012 Apr 05 03:00:13 ron_frow_: tits means good, right ? Apr 05 03:00:36 and i think 'balls' was bad, if i recall Apr 05 03:00:45 yes Apr 05 03:00:48 :) Apr 05 03:00:50 do you like tits? Apr 05 03:00:58 hehe Apr 05 03:01:02 ok Apr 05 03:01:04 nuff said Apr 05 03:01:10 :D Apr 05 03:04:34 Has anybody had any success in porting Jetty HTTP client to Android? Apr 05 03:04:40 (The reason being, I want to use Bayeux client on Android, which has a hard dependency on org.eclipse.jetty.client.HttpClient and friends) Apr 05 03:05:09 someone needs the crap beaten out of them Apr 05 03:10:20 How would I go about creating a drawable with a repeating background image and rounded corners? Apr 05 03:11:34 How do I exclude a specific application (com.android.sharedstoragebackup) from a full backup? Apr 05 03:11:57 -noshared hasn't worked since 4.0.3 Apr 05 03:12:11 hello trying to setup action bar tabs but getting a null pointer in my onTabSelected (FragmentTransaction that is passed is null) and I tried what was mentioned here: http://stackoverflow.com/questions/8645549/null-fragmenttransaction-being-passed-to-tablistener-ontabselected but FragmentManager fragMgr = getSupportFragmentManager(); is an error. http://pastebin.com/bxA2UiVk Apr 05 03:16:08 ElevenSquard - drawable or 9pathc Apr 05 03:16:49 http://pastie.org/3730859 this service stopped sending any messages to the UI. I don't know what I changed, and eclipse/lint/etc. isn't showing any errors. Apr 05 03:21:17 I am using a drawable, but I cant seem to figure out how to do it. I can use a shape to get the rounded corners, or a bitmap to get the repeating image. But I cant use both. I'll google 9pathc Apr 05 03:21:36 9patch I assume. :) Apr 05 03:21:57 cooldman224: upgrade Apr 05 03:22:01 to 4.0.1 Apr 05 03:22:09 oh man, finally got Google to up my Places API key from 100k/day to 400k/day, w00t! Apr 05 03:22:21 or just do the transaction yourself Apr 05 03:24:57 jake I totally failed trying to get abs latest running in a new project Apr 05 03:26:54 JakeWharton, so the sbt plugin is working for you? Apr 05 03:27:06 yes Apr 05 03:27:13 cool Apr 05 03:27:13 i'm developing an app + Play Framework 2.0 webapp Apr 05 03:27:40 they share common shit so I didn't want to duplicate and I didn't want Maven + SBT Apr 05 03:27:51 it's a pretty cool build system Apr 05 03:28:01 I'm still not a huge fan of Scala but the build system is fan-freaking-tastic Apr 05 03:28:07 indeed Apr 05 03:28:25 scala > java Apr 05 03:28:33 movie time Apr 05 03:28:38 they're both JVM Apr 05 03:28:39 * JakeWharton shrugs Apr 05 03:28:40 * pfn & Apr 05 03:29:44 man why do sites even bother asking my age Apr 05 03:37:05 JakeWharton: upgraded to 4.0.1, no worko. still nullpointer and The method getSupportFragmentManager() is undefined for the type Drinks.TabListener Apr 05 03:37:20 you need an activity instance Apr 05 03:37:35 is your listener not an inner class or implemented on the activity? Apr 05 03:37:37 or fragment? Apr 05 03:37:41 how is play 2 coming along Apr 05 03:38:59 JakeWharton: listener is an inner private class Apr 05 03:39:13 of the sherlockactivity Apr 05 03:39:14 OutClass.this.getSupportFragmentManager() Apr 05 03:39:21 ron_frow_: it rocks Apr 05 03:39:46 very different from play1 but it's much more versitile Apr 05 03:39:51 better support no? Apr 05 03:39:56 now Apr 05 03:40:06 yeah Apr 05 03:40:08 and a lot more docs Apr 05 03:40:55 my problem was that all the modules werent working Apr 05 03:41:05 and big chunks of functionality were just missing all together Apr 05 03:42:17 Well shit. 9 Patch wont work. I need my background to repeat, not stretch Apr 05 03:42:34 JakeWharton: FragmentManager fragMgr = Drinks.this.getSupportFragmentManager(); still no go. http://pastebin.com/bxA2UiVk Apr 05 03:42:58 You're using a SherlockActivity Apr 05 03:43:04 SherlockActivity extends Activity Apr 05 03:43:13 Anyone have an idea of how to get a drawable that has a repeating background image and rounded corners? Apr 05 03:43:13 try SherlockFragmentActivity Apr 05 03:47:06 TileMode.REPEAT Apr 05 03:47:18 there's half your battle Apr 05 03:47:54 the other half? extend bitmap drawable, override onDraw, clip the canvas, call super.onDraw(canvas) Apr 05 03:48:37 ElevenSquard: What do you mean repeating background image? Apr 05 03:49:39 My ad views plummeted in Spain the day the general strike started, oh dear... Apr 05 03:49:40 Thanks Jake. I'll have to try that tomorrow. Seems complicated for what I thought should be a common thing. Apr 05 03:49:51 JakeWharton: that did it, thanks Apr 05 03:51:58 Ologn: Im trying to do this layout. http://www.elevensquared.com/Uploads/LifN6xfbFWXytmGvnVqg/layout%20-%20oUnIcZisV6QdUFVHvhWfw.png Apr 05 03:52:20 Specifically the header for the "Activities" section Apr 05 03:53:12 So I wanted to do a repeated background image with the diagonal lines/gradient bg, but round the top corners of it. Apr 05 03:53:28 Unless of course theres a better way to do it. Apr 05 03:55:40 ElevenSquard: I never had to do exactly that, but the last similar thing I had to do I used a nine-patch http://developer.android.com/guide/topics/graphics/2d-graphics.html Apr 05 03:56:14 Yeah, I just got done looking at that. Apparently it can only stretch..not repeat.So it doenst work for me Apr 05 03:56:37 I'll try JakeWharton's suggestion tomorrow. Thanks everyone for your time. Apr 05 04:13:21 note: sometimes your app won't work because you just need to manually uninstall it and restart eclipse apparently. Apr 05 04:18:17 so right now my only problem is that multiple copies of my one activity can live on top of each other. how can i make that not happen? Apr 05 04:22:22 singleTop="true" Apr 05 04:26:33 JakeWharton: thanks <3 i have the hardest part of this done. and i didn't know anything to speak of about java a few days ago :P Apr 05 04:42:36 I'd like the last item in my ListView to be centered horizontally and vertically according to how much space is left - how do I go about doing this? All I can get is to have it center horizontally and not vertically Apr 05 04:48:13 Hey, does anyone know how long the C2DM sign-up process usually takes? I tried to signup 6 days ago (and again 2 days ago) and haven't even received an e-mail acknowledging the fact that I've applied. Is that normal? Apr 05 04:48:25 probably Apr 05 04:48:30 it's more on the order of weeks most likely Apr 05 04:49:45 Mine took a day or two. If it persists not working Glass_Echidna, you can try to signup on a different email account with the same details. I did that and it worked instantaneously for me. Apr 05 04:50:55 Google really need to update the Google Eclipse plug-in. It can generate a Google App Engine app, GWT app, and C2DM ready Android app. But one of the steps in generating project asks you to sign-up for C2DM. It seems to indicate signing up is automatic cause it immediately expects you to enter in your account details and won't let you continue without them. Apr 05 04:51:42 Knossos: Did you use a regular Google account (gmail), or did you use Google apps etc? Apr 05 04:55:03 Firstly a regular account with all kinds of services enabled, and the second one was entirely fresh with nothing previously enabled. Apr 05 04:58:57 I hate that I can't click the chat to focus the text box... Apr 05 04:59:07 Are R IDs always going to be negative? Apr 05 05:00:10 Is it safe for me to differentiate a small integer value (e.g., 0-10,000) from a resource ID based on its sign? Apr 05 05:02:10 They all seem to start with 0x7F which should be 10001111by my math therefore making it negative when interpreted as an integer... Apr 05 05:02:35 er Apr 05 05:03:20 ... Apr 05 05:03:31 fail Apr 05 05:04:16 lets try this again, is it safe for me to differentiate an integer (that will be relatively small) from a resource ID by checking if it's greater than 0x7F000000 Apr 05 05:04:43 No way android related but does anyone know how to write a half bit adder? Apr 05 05:05:05 1b/2 + 1b/2 Apr 05 05:05:10 *rimshot* Apr 05 05:06:10 what for? Apr 05 05:08:25 School homework... Writing a scheme bit adder. Apr 05 05:11:15 JoeTheGuest, http://thalia.spec.gmu.edu/~pparis/classes/notes_101/node110.html Apr 05 05:11:27 I've seen that. Apr 05 05:31:13 does grid layout from the compat lib work well ? Apr 05 05:34:23 yes Apr 05 05:34:28 works as well as all the other backports Apr 05 05:34:42 grid layout is insanely simple Apr 05 05:34:58 it's a lovely widget Apr 05 05:35:07 :) Apr 05 05:35:27 using it can be tricky trying to learn just from the docs, but once you get the hang it's useful Apr 05 05:38:03 i need to decide when grid layout is better than relative layout. Apr 05 05:38:24 I think GridLayout is more meant to replace people doing nested LinearLayouts Apr 05 05:38:38 it exists on a similar plane as RelativeLayout Apr 05 05:38:55 ok. the first thing for me is to understand when it is appropriate to use Apr 05 05:39:04 A RelativeLayout obviously is much more flexible but at the cost of slower measurement time presumably Apr 05 05:39:06 yeah Apr 05 05:39:15 I haven't done much between Relative vs Grid Apr 05 05:45:48 i can't get used to 'google play', i think that name just absolutely fucking sucks Apr 05 05:46:42 just my opinion :) Apr 05 05:49:51 i'm glad nobody disagrees with me ;) Apr 05 05:50:23 it's branding Apr 05 05:50:33 it may suck, but a disjointed platform and experience is worse Apr 05 05:50:51 the unification is a smart move Apr 05 05:51:06 the actual name, not so much. no one will care in a year though Apr 05 05:51:25 was it ever disjointed? i never noticed any substantial changes Apr 05 05:51:46 except s/market/play Apr 05 05:55:15 g00s: Agreed. Android market just sounded so much better. But they added books and movies, so "android" never really fit anymore Apr 05 05:55:22 Google Play Books, Google Play Movies, Google Play Music, Google Play Market Apr 05 05:55:35 before it was Google Books, Google Movies, Google Music, Android Market Apr 05 05:55:45 *Google Play Store Apr 05 05:56:10 should have been google market books/movies/music/apps or something Apr 05 05:56:22 i'm still kind of confused about this. i use the ADT and when i create a test project, its a separate directory structure in my eclipse workspace. what is the best way to organize this in git ? i kinda want both projects in the same repo so they can be tagged together. i'm new to git also Apr 05 05:56:25 "play books" just sound daft Apr 05 05:56:39 g00s: subdirs under root Apr 05 05:57:04 fart-soundboard/ Apr 05 05:57:07 fard-soundboard-test/ Apr 05 05:57:18 i can't spell tonight Apr 05 05:57:38 we didn't even have any beer today so I haven't even been drinking Apr 05 05:58:07 JakeWharton: sure, but i don't think the adt is flexible enough to deviate from the workspace/projectX structure Apr 05 05:58:23 so its workspace/a , workspace/a-test Apr 05 05:58:40 what does it have to do with art? Apr 05 05:58:43 adt Apr 05 05:58:48 stupid fucking mac/colloqueyowuiewer Apr 05 05:59:03 i guess it has more to do with eclipse than the adt Apr 05 05:59:16 since each project, or subproject, is a top level dir in the workspace Apr 05 05:59:26 or maybe i'm just dumb tonight Apr 05 05:59:37 yeah they're just separate projects in eclipse Apr 05 05:59:42 and then you ref the original in test Apr 05 06:00:07 right, but physically they are stored as top level dirs in the workspace Apr 05 06:00:12 I like spell check but I do not like autocorrect Apr 05 06:00:14 yes Apr 05 06:00:47 so i can't really have workspace/a/code and workspace/a/test-stuff Apr 05 06:00:58 what's workspace? Apr 05 06:00:59 and go into workspace/a and say git add . Apr 05 06:01:07 your git repo name? Apr 05 06:01:08 eclipse workspace Apr 05 06:01:10 any books that explin android evelopment without using java? I keep trying to learn but there are no useful explinationf of how it works without using obscure code I'll never use Apr 05 06:01:26 oh Apr 05 06:01:33 I have never stored project in the workspace when using eclipse Apr 05 06:01:43 *when I used to use Apr 05 06:02:05 Prinny_Dood: nope. Apr 05 06:02:07 I always just stored my shit in ~/dev/ based on the project name Apr 05 06:02:19 and then however many "projects" under each project Apr 05 06:02:42 JakeWharton: but did you do this with the adt ? Apr 05 06:02:43 IDGAF about java. it's not useful to what I'm trying to do and does not help me understand android Apr 05 06:02:54 what are you trying to do? Apr 05 06:02:56 Prinny_Dood: try app inventor maybe Apr 05 06:03:13 g00s: they're still standard android projects Apr 05 06:03:45 ~/dev/farts/fart-app/ and ~/dev/farts/fart-test/ are both Android projects with standard directory layouts Apr 05 06:03:48 git repo is in ~/dev/farts/ Apr 05 06:03:53 write android programs. has nothing to do with java as far as trying to learn. Apr 05 06:04:20 the android api is in java, so yeah, it does have to do with java Apr 05 06:04:39 JakeWharton: ok, thx. i will try Apr 05 06:04:53 does not matter. contributes nothing to understanding Apr 05 06:04:56 Prinny_Dood wants to use basic for android dev Apr 05 06:05:42 no matter *what* I do I can never get MediaPlayer's onInfoListener to fire. ever ever ever. I've tried having the class implement it, i've tried creating a new OnInfoListener...I don't know what else to do :/ Apr 05 06:05:56 oh god if only, would have been done 2 days ago... Apr 05 06:06:46 You cannot do Android without Java Apr 05 06:07:16 people who use other things are either dumb (e.g., WebView + webapp, PhoneGap, etc.) or really smart (e.g., Scala, .NET) Apr 05 06:07:37 kivy, that python framework, is pretty nice Apr 05 06:07:41 99% of the documentation, tutorials, and existing projects are in Java Apr 05 06:07:53 you would do well to adhere to that convention if you want any help from the community or the internets Apr 05 06:08:10 sure you can, you don't need to learn useless backdated information out of context from current platform Apr 05 06:08:15 JakeWharton: or masochistic (Talk directly to android API via JNI objects) Apr 05 06:08:22 haha yes, or that Apr 05 06:08:46 but even using jni, you still can't get to stuff like content providers, if i recall Apr 05 06:09:15 i have a feeling uni is not in Prinny_Dood 's future Apr 05 06:09:18 *jni Apr 05 06:09:25 god damn colloquy autospell Apr 05 06:09:35 and i even have it turned off Apr 05 06:09:36 seriously Apr 05 06:10:40 What is wrong with PhoneGap? I've only had a cursory look because my current employer originally wanted me to use it. Apr 05 06:10:47 has anyone else ever used a MediaPlayer object and had onInfo do anything ever? Apr 05 06:11:18 It looks alright at the time, but I preferred to write it in Java. Apr 05 06:11:25 PhoneGap and Titanium are for companies who do not have the resources to dedicate to developing a proper Android application and it usually just makes people angry Apr 05 06:11:41 I dislike them, but I understand their appeal Apr 05 06:11:50 I had nothing but problems when I tried to use MediaPlayer Apr 05 06:12:00 does creating a handler cause it to run in it's own thread? or is that only if passing a looper to the constructor? Apr 05 06:12:07 (http://developer.android.com/reference/android/os/Handler.html) Apr 05 06:12:07 I actually suggested it at my last job simply because I was one of two programmers in the whole company and we could not dream of supporting multiple platforms (or even just one) Apr 05 06:13:51 I am the sole Android developer at my company. I have a feeling I will be expanding into iPhone development in the future. :[ Apr 05 06:14:04 jeppy: it does not automatically run on its own thread Apr 05 06:14:13 thats why there is HandlerThread :D Apr 05 06:16:39 ok, where was i Apr 05 06:16:49 in my pants Apr 05 06:17:01 JakeWharton: i thought that's where *I* was? Apr 05 06:17:07 hey-ooooo Apr 05 06:17:43 if i change my target OS version to GB and onInfo works I'll be very disappoint. Apr 05 06:17:55 jeppy, pass in a looper to put it on a new thread Apr 05 06:18:35 changing target/compilation will have zero effect on that Apr 05 06:19:33 JakeWharton: i didn't really figure it would but i'm running out of ideas. Apr 05 06:20:21 if I can't make this work, I'll have to poll metadata every 30 seconds or something and I'm not the biggest fan of that idea Apr 05 06:23:00 JakeWharton, if you're doing a play project, scala is like the best thing ever Apr 05 06:23:15 I still use mostly Java in the play app though Apr 05 06:23:57 I know, you resist it so much Apr 05 06:24:13 is there anywhere else you can suggest i look, or anytihng else i can do to try to get an answer? Apr 05 06:24:20 StackOverflow Apr 05 06:24:48 a handful of people have had the same problem it seems, but no answers Apr 05 06:24:49 I usually figure things out by digging through the source Apr 05 06:26:47 pfn: if you are using scala, is lift > play ? Apr 05 06:27:21 play is considerably easier than lift to work with Apr 05 06:27:28 as an alternate jam language, i'm more interested in clojure Apr 05 06:27:32 damn it Apr 05 06:27:35 J V M Apr 05 06:27:38 I haven't really worked with either Apr 05 06:27:49 if you like lisp, I guess Apr 05 06:27:54 :) Apr 05 06:28:07 its been a while since i used it, but i have fond memories Apr 05 06:28:29 rpn and parens don't make me happy Apr 05 06:28:55 its like the matrix, they disappear after a while and you see through it Apr 05 06:29:09 not to mention that it isn't as practical Apr 05 06:29:09 i award you two internets for that analogy Apr 05 06:29:21 hehe Apr 05 06:29:55 ah no wonder I was going blind Apr 05 06:30:03 how can i "edit" my tablelayout without reloading the activity? tl.requestLayout() doesn't seem to do anything :/ Apr 05 06:30:10 * pfn switches to night mode Apr 05 06:30:37 what's the keystroke to flip the macs colors? Apr 05 06:30:40 it's like 4 keys Apr 05 06:30:44 hehe, yeah Apr 05 06:30:56 oh yeah! Apr 05 06:30:57 the code is in the prefs pane Apr 05 06:30:59 no idea, don't have a mac Apr 05 06:31:08 control+option+command+8 Apr 05 06:31:16 but it seems to f up antialiasing Apr 05 06:31:19 of text Apr 05 06:31:25 yeah it does Apr 05 06:31:52 antialiasing probably still thinks it's using the normal colors Apr 05 06:31:59 i just turn the brightness down, switch to my dark theme in eclipse, and use f.lux Apr 05 06:34:27 g00s, interested in lift or play or something? Apr 05 06:34:34 play rocks Apr 05 06:34:57 seriously Apr 05 06:35:23 play is cool, dunno how well it scales as the codebase grows though, don't see many huge play setups Apr 05 06:35:49 I think it would scale much better than a traditional Java server due to its design Apr 05 06:36:29 None of that stupid Spring/Servlet bullshit Apr 05 06:37:12 its only bad because of thread per connection Apr 05 06:37:28 Are you sure about that? Apr 05 06:38:04 that's the only major performance hit it takes, mostly Apr 05 06:39:33 there are aspects that make it very tedious to work with though Apr 05 06:39:42 i thought play was evented Apr 05 06:39:52 I'm fairly certain it does not use 1:1 connection:thread Apr 05 06:40:06 I just found the following: In order to receive the respective callback associated with these listeners, applications are required to create MediaPlayer objects on a thread with its own Looper running (main UI thread by default has a Looper running). Apr 05 06:40:24 pfn: i don't have a use right now, but maybe soon. Apr 05 06:40:29 could this be my problem? the mediaplayer object is being created within a service that isn't being run in a separate thread. Apr 05 06:40:36 pfn: what do you find hard to work with? Apr 05 06:40:40 fuck MediaPlayer to hell and back Apr 05 06:40:50 I think 2.0 eliminated everything I disliked about it in general Apr 05 06:40:56 g00s: you got a better idea? :P Apr 05 06:40:57 1.0 was geared towards relational users Apr 05 06:41:00 er, 1.x Apr 05 06:41:08 JakeWharton, servlets, not play Apr 05 06:41:09 and Groovy templates sucked Apr 05 06:41:12 oh Apr 05 06:41:16 shit yeah servlets do that Apr 05 06:41:25 anyway, done walking the dogs Apr 05 06:41:32 * pfn & Apr 05 06:49:26 t0mless: are you around? have you been using androidplot ? Apr 05 06:57:57 I am having trouble learning something outside the contect of it's usefulness, nothing at all that teaches android starting with android instead of java? Apr 05 06:58:15 Android is Java Apr 05 06:58:42 but java makes no scence when trying to learn android Apr 05 06:59:02 Then spend a year learning Java first Apr 05 06:59:02 java makes no science! Apr 05 06:59:10 Science damn it! Apr 05 06:59:28 I don't care about java, only android Apr 05 06:59:36 Prinny_Dood: you can't learn android without learning java Apr 05 06:59:43 Prinny_Dood: you develop for android IN JAVA Apr 05 06:59:59 Android is a platform. Java is the language used. Apr 05 06:59:59 Prinny_Dood: maybe android isn't for you then Apr 05 07:00:05 Troll must be trolling Apr 05 07:00:06 That's like saying you want to learn iOS without Objective-C Apr 05 07:00:13 lol Apr 05 07:00:16 You want to breathe without air! Apr 05 07:00:25 You want to live without parents! Apr 05 07:00:29 This is blasphemy Apr 05 07:00:30 This is madness Apr 05 07:00:32 You want god to exist! Apr 05 07:00:58 I can't understand anything with java outside the context of what I see in android source Apr 05 07:01:13 Mikellip: yep Apr 05 07:01:22 Prinny_Dood: what is your background? what languages and platforms do you know ? Apr 05 07:01:23 yep yup yeap yelp Apr 05 07:01:33 I am not a programer Apr 05 07:01:44 well, maybe you should hire one then Apr 05 07:02:05 I don't want to be a programer, all I want to do is select my cell Apr 05 07:02:13 wut Apr 05 07:02:14 I don't have any money Apr 05 07:02:18 why would you need a programmer for the androids? umad? Apr 05 07:02:29 select your cell ? Apr 05 07:02:34 Troll is overtrolling, a good troll uses moderation Apr 05 07:02:35 :-D Apr 05 07:02:37 Learn Java, learn Android, make monies Apr 05 07:03:28 well, the first two anyhow Apr 05 07:03:32 XD Apr 05 07:04:09 android.telephony.cdma.CdmaCellLocation all I want to do is get and set info via this thing Apr 05 07:04:30 Android is Java <----- Android application is based on dalvik ..... Android is based on Linux Apr 05 07:04:35 you have messed them up Apr 05 07:04:52 start with that then work my way up to being able to use neighboring cell info to select from list Apr 05 07:05:03 So dalvik must be a completely different programming language? Apr 05 07:05:11 Dalvik is the VM Apr 05 07:05:14 Java is the language Apr 05 07:05:18 Linux is the kernel Apr 05 07:05:21 Android is the OS Apr 05 07:05:21 yep Apr 05 07:05:24 Prinny_Dood: uh Apr 05 07:05:27 I am the Jake Apr 05 07:05:35 first off, that class doesn't even work half the time Apr 05 07:05:44 and second, you can't 'set' your cell Apr 05 07:05:44 Android is an OS based on Linux ..... however all the application that you see on the screen with apk format Apr 05 07:05:47 are based on Java Apr 05 07:05:50 and dalvik VM Apr 05 07:05:52 the Jake, may you tell us humble newbies if ABS4 will ever support platform versions below 7? Apr 05 07:06:07 it will not Apr 05 07:06:23 cries are heard around the internets Apr 05 07:06:30 oh noes! Apr 05 07:06:35 great weeping and gnashing of teeth Apr 05 07:06:40 I cannot invest time in supporting API levels which at present are less than 1% of usage and require more than 1% of my efforts Apr 05 07:06:43 then what is CellLocationData(int, int, int) for? Apr 05 07:06:46 * Ge0rG throws his G1 at the wall and breaks out in tears Apr 05 07:07:03 every second that elapses in typing this sentence API 4's market share drops a fraction of a percent Apr 05 07:07:14 Prinny_Dood: d.android.com Apr 05 07:07:15 go away Apr 05 07:07:30 That's like saying you want to learn iOS without Objective-C Apr 05 07:07:45 it's easier to dev for iOS without Obj-C than it is to dev for Android without Java Apr 05 07:08:08 i think you still need obj-c for the guy though, right ? Apr 05 07:08:12 damn it ! Apr 05 07:08:14 G U I Apr 05 07:08:26 I'm not trying to troll, I'm just trying to learn. Java is not helping me learn how to make an android program Apr 05 07:08:30 The guy? Which guy? Steve? He is dead. Apr 05 07:08:44 Prinny_Dood: now you troll again :< Apr 05 07:08:49 haha Apr 05 07:08:51 Prinny_Dood: you are not trying to learn. you are trying to do something which requires skill, which you are not willing to acquire Apr 05 07:09:37 BOOM. drop some knowledge on ya Apr 05 07:10:04 I'm trying to learn but I'm not geting any useful info for making anroid programs, just stuff for java calls that are not used in android API Apr 05 07:10:14 lov? Apr 05 07:10:25 Good mornin' fellas, anyone know if there's a broadcast receiver or something for when someone turns on/off the speakerphone? Apr 05 07:10:35 haha, this is hilarious. i don't actually think he;s trolling, i think he is just intellectually handicapped Apr 05 07:11:00 hello Apr 05 07:11:06 awesome name pete Apr 05 07:11:08 this reminds me of that guy who wanted to program Android in forth Apr 05 07:11:27 so, after like 15 minutes Apr 05 07:11:45 i found the image to complete my "this is madness, this is blasphemy" set up Apr 05 07:11:46 http://i.imgur.com/i3Zud.jpg Apr 05 07:11:59 haha Apr 05 07:12:14 I got distracting spec'ing an API Apr 05 07:12:17 distracted Apr 05 07:12:24 DAMN YOU COLLOQUEOIUWEOIUW Apr 05 07:12:28 hello people :) Apr 05 07:12:29 CORRECT THAT, BITCH Apr 05 07:12:41 prinny_dood: there's a nice manual way of changing values in that class. walk a few miles further. Apr 05 07:12:56 change the value in AOSP then recompile the ROM Apr 05 07:13:08 you need a different ROM for each cell though Apr 05 07:13:35 does anyone know - is the best way for testing if the speakerphone is enabled by polling during a call, or is there a broadcast receiver for doing such? Apr 05 07:13:49 what is CellLocationData(int, int, int) used for if not to set your own info when between multiple towers? Apr 05 07:14:18 Prinny_Dood: do you seriously think, that a carrier's infrastructure just lets you choose what cell you are in ? Apr 05 07:14:25 I register BroadcastReceiver on an activity and I want to unregister it from another one. I got an exception that it can't be unregister Apr 05 07:14:26 are you fucking retarded ! Apr 05 07:14:35 do you know why ? Apr 05 07:15:03 not the carrier's infastructure Apr 05 07:15:12 android Apr 05 07:16:17 flashed phones often connect to the wrong tower, just want an app that will let you pick your own so *228 can work it's magic Apr 05 07:16:49 Should I use Service ? Apr 05 07:16:58 just carefully place a unicorn on the flashed phone Apr 05 07:17:39 and now that I've expressed my idea it will show up as a $5 app... Apr 05 07:17:48 Hahahaha Apr 05 07:18:02 I just pushed it to Google Play Market Android Store Apr 05 07:18:35 JakeWharton: you're going to make monies on this one Apr 05 07:18:46 * Ge0rG just bought it. Apr 05 07:19:38 It's called DoubleDueceOcho Apr 05 07:19:54 On sale for $4.99 Apr 05 07:20:01 JakeWharton: when i dial *228, does it connect me to Sparta ? Apr 05 07:20:07 haha Apr 05 07:26:36 wow, with such a collection of "helpul" individuals, I wonder why they would list this channel for help (now I'm trolling) Apr 05 07:28:08 we're aware Apr 05 07:28:15 I just wrote a sweet API Apr 05 07:28:18 can't wait to back it with an impl Apr 05 07:28:58 I need to go home Apr 05 07:29:03 15 hour work day Apr 05 07:29:10 "work" day Apr 05 07:29:15 you should, might make you less cranky Apr 05 07:29:23 baby neds his nap Apr 05 07:29:32 can I buy an 'e' Apr 05 07:30:33 Hi Apr 05 07:32:10 I want to know zoom concept, do you have any recommended document I can read Apr 05 07:32:41 Or the only way is to read the code Apr 05 07:33:35 jimmy_lo_chien_f: zoom concept? Apr 05 07:34:12 I am studying android.webkit.ZoomManager Apr 05 07:34:41 I don't under stand Most terms Apr 05 07:34:55 understand* Apr 05 07:35:13 have fun making fun of people on the internet assholes, I hope it brings joy to your miserable lives Apr 05 07:35:34 I have a pretty awesome life at the moment Apr 05 07:35:46 So if you hope it's more joyous, I thank you Apr 05 07:35:57 I thank you all Apr 05 07:35:58 like scale, level Apr 05 07:36:04 I'd like to especially thank the Academy Apr 05 07:36:08 and, of course, all the fans Apr 05 07:36:14 God is love Apr 05 07:36:31 jimmy_lo_chien_f: perhaps you should get a english dictionary then? Apr 05 07:36:33 Ima let you finish, but Beyonce had one of the best music videos of all time Apr 05 07:36:37 Ha Apr 05 07:36:49 heading home Apr 05 07:38:52 OK Apr 05 07:42:01 is there an adb binary available for mips-hosts? I want to connect my phone to an openwrt box :> Apr 05 07:53:11 lol lmao Apr 05 07:53:17 using openwrt for adb? Apr 05 07:53:42 hi h00s :) Apr 05 08:01:00 UnknownzD: yeah. I want to publish data from logcat on the internets without using a dedicated pc. Apr 05 08:01:48 (in theory, I can run the stuff directly on the phone, but then again, I need usb charging anyway Apr 05 08:06:05 morgan Apr 05 08:07:55 i am using a web view, but I am unable to set horizontal scrolling on Apr 05 08:08:17 the webpage is zoomed in and does show the whole website Apr 05 08:08:41 i have tried enabling the horizontal scrolling and zoom settings but they just don't show up Apr 05 08:08:46 any ideas why? Apr 05 08:11:43 wow not much going on in here Apr 05 08:22:11 is there an overview of the minimum cpu specs of the most-widely used android devices? Apr 05 08:23:26 Ge0rG what you you write an application on Android instead? Apr 05 08:25:54 UnknownzD: no. Apr 05 08:30:55 why don't you* Apr 05 08:31:02 UnknownzD: why should I? Apr 05 08:31:15 UnknownzD: my last two questions were completely unrelated to each other. Apr 05 08:32:27 is it possible to find reference in library? Apr 05 08:33:05 liek when you do ctrl+shift+g it will also search the android library for where it's referenced? Apr 05 08:33:09 is it better for performance to have a single background thread looping for work to do or to have it end and then spawn a new one for each task? Apr 05 08:33:45 only after the last one was finished though Apr 05 08:39:27 Hi, Are you able to retrieve other information besides longitude and latitude through gps location manager? e.g. city, toen, country etc.. Apr 05 08:39:39 town* Apr 05 08:40:05 t432: no, that is called geocoding and not in scope. google has API for that though Apr 05 08:40:29 http://developer.android.com/reference/android/location/Geocoder.html Apr 05 08:41:08 Needs google maps API though. Apr 05 08:41:13 I'd appreciate offline geocoding database, personally Apr 05 08:41:50 Ge0rG is adb source code in public? Apr 05 08:41:54 a country database would not be very large, although it might not be 100 % precise and there would be struggle with china about if tibet is supposed to be in there Apr 05 08:42:20 and a few guys would make funny posts about how google thinks they live in another country Apr 05 08:42:52 I dunno, coding entire country borders could be somewhat involved as far as storage is concerned. Apr 05 08:44:13 huh? Apr 05 08:44:17 no it wouldnt Apr 05 08:44:31 and that is a pointless feature. Apr 05 08:44:40 considering gps does that. Apr 05 08:44:47 What? Apr 05 08:45:05 Ahh we should just query the offline satellite then :P Apr 05 08:45:08 Can I use location manager for latitude/longitude co-ordinates then use geocoder to transform into actual street/city etc? or can the geocoder take care of both? Apr 05 08:45:19 e.g. long/lat retriveal and conversion? Apr 05 08:45:47 t432: the geocoder takes a lat/lon, you'll have to get that from the location manager. Apr 05 08:46:34 You mentioned something about Google Maps, how does that into the picture? Apr 05 08:46:44 come into* Apr 05 08:47:02 I dont think I need google maps... Apr 05 08:47:11 hi all Apr 05 08:47:14 unless im missing something. Apr 05 08:47:25 t432: it's somewhat peculiar, the Geocoder is an Android API but it doesn't actually do anything unless you include the maps API in your project, if I remember correctly. Apr 05 08:47:49 google api geolocates based on known wifi mac Apr 05 08:48:24 HDroid: If I understand correctly, to use geocoder I need to include maps api even though I dont use maps api directtly? Apr 05 08:48:36 t432: I think that is the case, yes. Apr 05 08:48:51 t432: if you want to be sure though, slap up a quick geocoder prototype. Apr 05 08:49:05 There may be a way to use google's geocoding API directly as well. Apr 05 08:49:07 and border distinction is done via GPS. Apr 05 08:49:14 Perhaps Geocoder internally relies on the maps api. Thx Apr 05 08:49:36 Yeah, it appears to be that way. Apr 05 08:50:09 https://developers.google.com/maps/documentation/geocoding/ there's a REST service as well, might be easier in your case to just query that (not sure about usage limitations, though) Apr 05 08:50:16 HDroid: the geo json can be queried directly Apr 05 08:50:22 * alankila assures people that gps does not give country codes Apr 05 08:50:34 you could also just use the webservice for geocoding Apr 05 08:51:02 alankila: that's what I thought :) Apr 05 08:51:03 it is only capable of determining your location to a point in space to a degree of accuracy. Apr 05 08:51:42 And additionally, AFAIK, pretty much everything in the maps API needs to be fed a lat/lon, it doesn't do its own location determination. Apr 05 08:51:59 alankila: gps is is tech utilized by some api that returns (at least USA) border data Apr 05 08:52:24 phokus: hm. Okay, but gps itself is passive. There is no dialogue between the receiver and the gps signal transmitter Apr 05 08:52:32 how do I know? some states dont use DST Apr 05 08:52:48 i enter one of those states and the time adjusts accordingly Apr 05 08:53:29 it might be by the gsm/cdma radio too maybe, if this is a phone Apr 05 08:53:58 twas a tablet in airplane mode Apr 05 08:54:43 interesting, but don't know how. GPS itself is not however capable of sending a different information to you based on your location because the satellites don't know anything about you. Apr 05 08:54:58 yah i know that much :P Apr 05 08:55:06 im saying android knows based on gps data Apr 05 08:55:11 (somehow) Apr 05 08:55:14 There's always going to be some database Apr 05 08:55:17 and afaik the metadata transmit rate in gps is very low, barely enough to send the satellite's orbit parameters (iirc) Apr 05 08:56:06 one of the reasons why it may take quite long time to get the first fix, apparently Apr 05 08:57:40 im not really claiming to be an authority on the subject, just that a few months ago i flew cross country with airplane mode on but gps and barometer and hall effect sensors enabled Apr 05 08:58:05 so i could watch the plane's positioning Apr 05 08:58:17 and as we crossed borders the clock changed Apr 05 09:00:01 gps metadata rate is 50 bits per second Apr 05 09:00:47 no wonder we have things like assisted gps that send the gps almanac and probably other stuff over whatever server on earth you got Apr 05 09:01:56 in fact you don't need the almanac if you have the orbit parameters. I suspect that's far more important in truth. Apr 05 09:03:04 Hi! Apr 05 09:03:15 phokus: that is interesting. I can only speculate that the device holds this database because it's common enough to happen. If it was android device, maybe we could find the location-to-state-to-dst mapping table. The US states are not that complicated graphs, geometrically speaking Apr 05 09:03:28 I need help on an Android test project. I just can not get it to run with ant. Apr 05 09:04:17 I have Android library A and B (B descends of A), an Android project P which uses B, and a test project T. Apr 05 09:04:34 you're likely correct Apr 05 09:04:53 just tossing in my experience for consideration Apr 05 09:04:59 as for the earlier topic Apr 05 09:05:30 but if I call the build.xml on T, it tells me "cannot find symbol" for many classes Apr 05 09:05:35 do I miss something here? Apr 05 09:05:57 do I have to reference the library projects in the test project, too? But that does not work for me, too... Apr 05 09:06:24 check out www.exploit-db.com/papers/15881/ Apr 05 09:06:59 * alankila looks up something called PASSIVE_PROVIDER in android Apr 05 09:07:39 nah, that's actually not it Apr 05 09:09:07 "Note: the Geocoding API may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions."- https://developers.google.com/maps/documentation/geocoding/ Apr 05 09:09:47 I don't require Map, any other alternatives out there? Apr 05 09:10:59 hmm, what's the diffference between the different support packages? Apr 05 09:11:07 v4 vs v7 and v13 Apr 05 09:11:50 tapas: works on v4+, v7+, v13+ Apr 05 09:11:58 or rather api4+, api7+, api13+ Apr 05 09:12:06 huh, they added v7 ? Apr 05 09:12:12 that was my first thought also Apr 05 09:12:12 used to just be v4 and v13 Apr 05 09:12:47 its opt-in of course (with a friendly, unterrifying verbiage a la google) but every so often, google will send it's mac address along with it's geo to a google db Apr 05 09:13:15 android will, not google. pardon my grammar. Apr 05 09:13:32 alankila: ok, that makes sense :D Apr 05 09:13:42 i'll use the v7 then, since we target api level 8 Apr 05 09:13:50 * alankila is glad for google to officially put 1.x to rest Apr 05 09:14:16 now if only they just removed all traces of api6 or earlier :-p Apr 05 09:14:50 wow, i think ive come across someone who actually knows what they're talking about Apr 05 09:15:05 * phokus takes a picture of alankila (pose!) Apr 05 09:15:21 err... wut? Apr 05 09:15:41 I can't see android-support-v7 though. I find v7-gridlayout thing Apr 05 09:16:21 alan: I'm an infosec engineer. Android's AOSP is ..uh..fucked..when it comes to security. Apr 05 09:16:54 and im just trying to find one person..just one..who actually cares Apr 05 09:18:04 I am rather curious. I haven't really been speaking from a security point of view here at all. Apr 05 09:18:12 so far I've come across rug-sweepers and complete idiots. Apr 05 09:18:48 everything google does is sort of terrifying, of course, but on the other hand digital access to realtime generated information that involve things like people and what they currently do is undeniably also a possibility for doing new things. Apr 05 09:19:03 I'm half convinced that it will be the future, simply because there's so much money in it and because average person doesn't give a fuck. Apr 05 09:19:33 consider kernel exploits. Apr 05 09:19:48 particularly the perm elevating sploits that rooters utilize Apr 05 09:19:52 as an ex-linux user, I've seen that fighting user apathy is impossible. They don't care about open source, and you can't fix that. Apr 05 09:21:13 well we have a problem with android that has existed ever since the 'separation' @ linux-2.6.32-9 Apr 05 09:22:23 new sploits, no patches, multiple arch's, impossible task Apr 05 09:22:43 okay, but my phone runs 3.0.8 Apr 05 09:23:25 but what about your attorneys phone? or your kids daycare supervisors phone? Apr 05 09:23:30 etc etc. Apr 05 09:23:32 are you sure that AOSP names any particular kernel version at all? Apr 05 09:23:59 no, im sure it does not Apr 05 09:24:21 so ... talking about AOSP and the kernel at the same time confuses me, unless your point is that AOSP should name a kernel and use the latest version and keep it patched? Apr 05 09:24:23 considering the arch and firmware-dependency Apr 05 09:24:27 phokus: what do you think is the most secure mobile OS ? Apr 05 09:25:01 phokus: btw, you may want to talk to Gambit- , he does some of this stuff Apr 05 09:25:26 g00s: different platforms have different pluses and minuses Apr 05 09:25:34 so i really cant say Apr 05 09:25:37 phokus: yes, I know that people who update kernels for phones have hard time because of the closed nature of the multiple components that must work for kernel to be updated. I've hung around on the cyanogenmod development channel to see that major problem is getting the drivers to cooperate after kernel changes. Apr 05 09:26:03 cm..ugh. Apr 05 09:26:08 did you know that after they patch a kernel Apr 05 09:26:12 they dont release the patch? Apr 05 09:26:17 go check out their resources Apr 05 09:26:20 and that's a huge amount of the problem, phones still being sort of non-standardized, non-commodity thingys, where innovation is still very rapid Apr 05 09:26:23 try to find a single one public Apr 05 09:27:00 I know that people have complained about that. I've not looked into it myself, though. Apr 05 09:27:11 g00s: i may go so far as to even say iOS is more secure than android Apr 05 09:27:17 to a significant degree Apr 05 09:27:59 i do remember reading that the code google added to the kernel had a higher defect density than the kernel itself Apr 05 09:28:13 alan: i grew up in the efnet scenester world Apr 05 09:28:24 and im having scary flashbacks of warez groups here Apr 05 09:29:25 phokus: agreement. There was always a kind of culture around early amiga demoscene, which I observed close enough to note, which has persisted to this day. It is the idea that you don't share any code if at all possible. Cool dudes guard their secrets of coolness. :-p Apr 05 09:29:42 recommend everyone who gives a shit (even 10% ) to google defcon 18 android pdf Apr 05 09:30:09 alan: yah but this here is os dev (and i am a demoscene NUT btw) Apr 05 09:31:00 my fav oldskool amiga demo was done by orange..used heavy raytracing..dont remember the name Apr 05 09:31:45 heh, this is good newbie material for how android apps are set up Apr 05 09:32:01 If I use google maps with geocoder than I am required to upgrade to api 15. Anyone have an alternative way to get city/town/country data? Apr 05 09:32:03 short and concise summary of the various classes and their roles. Google docwriters should take notice. Apr 05 09:33:56 alankila, the following year (last year) at defcon 19, an additional presentation was given Apr 05 09:34:04 with yet MORE vulns Apr 05 09:34:54 [OT] what would be the best dlna server app for android? Apr 05 09:35:19 i like bubble Apr 05 09:36:59 I admit the intent stuff is too open, with this presentation. An application should be restricted from sending or receiving intents from rest of the system by default. These attacks are not even surprising to me, sans the one that seems to say that you can actually trap all key presses with simple activity. I was under the impression that at least the home key would always work Apr 05 09:39:54 so A. we have the kernel fubar, B. we have all the intent manipulation and spawning vulns and C. im sitting at a hotel and my tablet is being waged war upon by mitm tool kiddies Apr 05 09:40:29 c is more of just something that pisses me off rather than a massive issue Apr 05 09:40:53 but honestly, if anyone is to take android seriously, these things must be addressed Apr 05 09:42:36 hi Apr 05 09:42:39 it could be addressed at future API level. I think removing read_logs permission entirely would be a start, and preventing receiving and sending intents outside application by default would go a long way in giving good isolation by default Apr 05 09:43:11 it is not apparent that read_logs is quite so dangerous, but it is true, there's too much potentially sensitive information spammed into the logs. Apr 05 09:43:29 Hey, could anyone tell me what is a textViewResourceId when using ArrayAdapters? Apr 05 09:43:32 Did the earlier Android Phones come with Maps? Apr 05 09:43:55 yes Apr 05 09:43:57 the kernel vulnerability issues are nothing you can do about from AOSP point of view. Apr 05 09:44:09 out of scope. Apr 05 09:44:30 then why I;m I being asked to upgrade to api level 15 to use the google api? Apr 05 09:44:41 Hey there! Apr 05 09:44:53 Is there a simple way to delete all the shared preferences of my app? (reset) Apr 05 09:44:56 ..anyone? Apr 05 09:45:21 UnbertKant: i found shared prefs pretty sticky. would persist between uninstall/reinstall Apr 05 09:45:35 hm, okay. Apr 05 09:45:48 but turns out client wanted all data written to SD card so i just wrote my own shared prefs class Apr 05 09:45:52 alankila, i agreee Apr 05 09:45:57 UnbertKant: settings->manage applications->clear data Apr 05 09:46:02 but the kernel vulns are a big f'ing deal.. Apr 05 09:46:05 the other big trouble is that applications that target earlier API levels than the first truly secure api level would have to be phased out, or google would have to break them after 1 or 2 years by just removing the permissions and if they aren't patched yet, then tough luck. It would be suicidal from platform point of view though Apr 05 09:46:10 security has no value to end user Apr 05 09:46:22 readme: that has never cleared for me. i know it doesn't make sense Apr 05 09:46:43 end users have expectation of security, but aren't willing to make any sacrifices to gain security. Apr 05 09:47:05 jasonmog: impossiblu Apr 05 09:47:19 i think it has something to do with eclipse and debugging Apr 05 09:47:24 I've written apps that have needed the settings cleared in order to be tested again and again Apr 05 09:47:47 Could anyone please tell me what is a textViewResourceId when using ArrayAdapters? Apr 05 09:47:48 i'm sure it works for distributed apps not being debugged Apr 05 09:47:52 such as: apps that use the settings to detect whether it's the first run Apr 05 09:48:35 what would happen if i try to write to the same file from 2 different threads? Apr 05 09:48:42 opened separately too Apr 05 09:48:49 will i get an exception or a corrupted file? Apr 05 09:49:25 yeah, conclusion: android is doomed from security point of view, no easy way out. If you made the perfect, secure sandbox today, it would still take at least 5 years before most apps would even target that Apr 05 09:49:48 hi all Apr 05 09:49:55 Are my messages not visible to anyone? Apr 05 09:50:20 is there a view when it is pressed it became bigger ... ? Apr 05 09:51:06 something like I have a TExtView ... with a text ... and when I press is it will be bigger with more info about the text Apr 05 09:52:05 you will have to code it Apr 05 09:52:16 hi readme Apr 05 09:52:19 hi Apr 05 09:52:23 you mean MyTextView ? Apr 05 09:52:29 that being said, the read_logs permission is just offensive, and it must go. If some alogcat apps break, so be it. Developers have laptops anyway, or whatever, or can hack their shit if they think that's what they want to do Apr 05 09:53:03 readme, and I'd like to have annimation when it will expand ... is it possible ? Apr 05 09:53:13 i dunno, sometimes you need to check logcat when you're on the move Apr 05 09:53:14 alankila: why does it have to go... the user will have to confirm the permission. Apr 05 09:53:20 it's so wonderful what this says: "low-level system logs can contain slightly private data", paraphrasing. Yet it got all, sms texts, lat/lon, contacts Apr 05 09:53:30 I'm new to using IRC. Seriously guys, a little help would be appreciated.. Apr 05 09:53:33 alankila: imo there are worse things than read logs, you can capture audio without notifying the user with RECORD_AUDIO. Apr 05 09:53:38 readme: because users are stupid and the description of READ_LOGS permission is *nowhere* near reality Apr 05 09:53:43 it is _wrong_, wrong, wrong. Apr 05 09:53:44 alankila: I have a use case where the only way to obtain certain information is from the logcat. Apr 05 09:53:54 Ge0rG: and your application should break Apr 05 09:54:12 from security point of view no application can be trusted to read logs except if you have rooted the shit, then you can do whatever you like, including this Apr 05 09:54:14 alankila: my users are obviously thinking differently about it. Apr 05 09:54:15 alankila: i for one am glad android does not take the treat users stupid for their own benefit approach Apr 05 09:54:48 I know my viewpoint is not popular, but the fact what android thinks READ_LOGS can do, and what it can in actuality do are so different that read_logs permission in this form is a bug Apr 05 09:54:56 readme: actually, it does. there is no way to access some internal APIs, unless you are signed by the system certificate. Apr 05 09:55:09 Ge0rG: ok, but not to an extreme Apr 05 09:55:48 read_logs effectively circumvents the entire privacy policy of the device because of the way debug information gets written into the logs from all applications. From security/privacy point of view it is a nightmare. Apr 05 09:55:59 my use case would require to inject / intercept some AT commands sent to the modem. and yes, I know it is insecure. And no, there is no proper way to do it in android. Apr 05 09:56:28 alankila: so any permission with potential security/privacy implications should be removed? wouldn't be much left then.. Apr 05 09:56:30 hmm, playing with the expandablelistview i have the following group item layout: http://pastesite.com/33925 Apr 05 09:56:35 appel1: let's not strawman Apr 05 09:56:40 alankila: app developers should better consider logcat as an insecure storage accessible to anyone, instead of dumping all their shit there. Apr 05 09:56:44 very few applications need read_logs. There's very little harm in just killing this permission. Apr 05 09:56:55 the view works ok, but the indicator to expand the child is written all over the text Apr 05 09:57:04 mmm I have a design question: I am using composition pattern to create the View . The Controller is the Activity.class . All the listeners have to be in the Controller ? Apr 05 09:57:04 Ge0rG: yes, but development realities ensure that sensitive info gets dumped there. It's inevitable. Apr 05 09:57:25 alankila: it would kill in-field-debugging for many many applications. Apr 05 09:57:37 adb logcat is just a major debugging tool. Few people have the restraint to only use Log.d for their messages and then turn debug off Apr 05 09:57:40 alankila: few applications need to directly call numbers, send sms, receive sms or display system level alerts either, should they be removed as well? Apr 05 09:57:48 alankila: "unfortunately, something on your phone broke my app, sorry, I can not do anything to help you." Apr 05 09:57:50 appel1: don't strawman Apr 05 09:57:56 read_logs is just a badly chosen permission. Apr 05 09:58:15 alankila: what's the point of removing just one thing? doen't make the sytem much more secure. Apr 05 09:58:18 Ge0rG: that is perfectly acceptable user-level error message. A phone can be connected to computer in debug mode to read the log. Apr 05 09:58:22 alankila: it is just a badly described permission. Apr 05 09:58:31 another little tidbit Apr 05 09:58:38 appel1: I'm telling you, log reading permissions as it currently stands leaks *everything*, pretty much. Apr 05 09:58:45 for example : I have a a textView that if it's clicked it expands . Then if it's clicked another time it change the behaviour of the application. In this case may I have the listener for the expanding in the Controller ?¿ Apr 05 09:58:52 alankila: oh, right. "dear user, please visit me at home so I can connect your phone to my PC to see what on your phone broke my app". Apr 05 09:58:57 koush's recovery doodad checks a single signature that i could collide using my laptop in 3 hours Apr 05 09:59:44 Ge0rG: there could be a system tool to read logs with very strict permissions, or a way to log latest error messages from all apps. Apr 05 10:00:02 All I need is that the application doesn't get raw access to this massive stream of privacy-violating data Apr 05 10:00:15 btw: when doing facebook integration. if oe has to have the FB-app secret in the app what's a good plan to store it? Apr 05 10:00:17 alankila: I don't disagree with you that it is a stupid permission, but is just one thing of many Apr 05 10:00:22 s/oe/one/ Apr 05 10:00:32 appel1: yes, but it's such a huge one. :-/ Apr 05 10:00:42 i guess putting it in some val/strings.xml file is a bad idea? Apr 05 10:01:41 setting a custom theme in my app is causing the action menu text to go black which doesn't show well on the dark background. what is the default style i should be inheriting from? Apr 05 10:02:24 my only style sets global text color to white Apr 05 10:02:42 alankila: unfortunately users don't care about privacy or security, and developers generally abuse things as much as possible Apr 05 10:04:45 appel1: yes, users are not willing to make sacrifices for security. I know that. Therefore it's best to not give them a choice, just teach them from start how things work around here. Apr 05 10:05:12 However, in case of android it's already spilt milk and by my estimate it would take at least 5 seconds to fix most of these security-related issues that the defcon 18 android paper mentions. It's all doable, but takes time. Apr 05 10:05:19 5 years, damnit Apr 05 10:05:22 alankila: sounds like you'd prefer the wp7 platform, a lot less room for devs to make security or privacy mistakes :) Apr 05 10:05:24 teaching users is always good. still, defining application permissions at application install is a failed security model. Apr 05 10:05:25 * alankila has no idea how he could write seconds Apr 05 10:08:05 what is the default android theme? Apr 05 10:08:25 jasonmog: version dependent afaik Apr 05 10:09:04 but shouldn't there be a reference theme which points to the appropriate one for the version? Apr 05 10:09:30 sorry, too clueless to understand android theming currently. :-/ Apr 05 10:10:18 I got the impression that it makes sense only from android 4.0 forwards Apr 05 10:10:30 for instance google requires that holo theme must always exist unchanged Apr 05 10:10:41 holo-dark Apr 05 10:11:22 only way to retheme is recompilation of the framework Apr 05 10:11:29 and you cant take that very far Apr 05 10:13:47 also, finding that getHeight() = 0 in onCreate() after setContentView() Apr 05 10:15:45 jasonmog: the view must have been measured/rendered first Apr 05 10:16:05 do i have to set an onMeasure/onRender listener or something? Apr 05 10:18:35 looks like a job for Timer.schedule()! Apr 05 10:21:14 Hi, since r17 i have issues with my projects that depend on .jar-files. They are placed in the "libs/" folder of the current project. It's like they are not included in the final apk, coz i have a NoClassDefFoundError when launching the app. Apr 05 10:21:52 the weird thing is that if i add my jar to the "libs"-folder of a libraryproject that my project depends on. Apr 05 10:22:03 it works perfectly without errors. Apr 05 10:22:08 jellenagels: hmm, you've marked the folder as being part of the build path? Apr 05 10:22:51 i didn't. Apr 05 10:23:00 also dislike calling the folder libs, that's what NDK uses when you build stuff Apr 05 10:23:11 * alankila uses "lib" instead, just like "src" Apr 05 10:23:18 no plural Apr 05 10:23:30 that's not what http://tools.android.com/recent/dealingwithdependenciesinandroidprojects says Apr 05 10:23:48 hm. Okay. Apr 05 10:23:53 in SDKConstants-file, the constant is also "libs". Apr 05 10:24:04 But I remember I tried using libs/foo.jar and it did not work, but worked after I switched to lib/foo.jar. :-/ Apr 05 10:24:14 no idea why. Never looked into it, didn't care Apr 05 10:24:15 Eclipse and Ant should both be adding all the .jars. Apr 05 10:24:46 also, the jars ARE included in the classpath when doing javac. Apr 05 10:24:53 by they aren't included during the dex-step :) Apr 05 10:25:00 so fine libs is official now Apr 05 10:25:06 I'll start using it, I guess. Apr 05 10:25:20 yesh. as of r16 i think Apr 05 10:26:27 any build/ant experts here? :) Apr 05 10:26:54 * alankila doesn't use non-ide build tools. Apr 05 10:27:02 * jellenagels does :) Apr 05 10:30:34 alankila: lib/ won't even work with sdk 17 any more Apr 05 10:30:48 your app will crash with class not found exception :) Apr 05 10:31:10 interesting. I have not built it for a month or so, maybe you are right Apr 05 10:34:26 IT'S ACTIONBARSHERLOCK TIME Apr 05 10:35:50 I had placed it manually on build path, so it still worked Apr 05 10:35:53 moving to libs anyway Apr 05 10:36:18 so it seems i have found the issue. Apr 05 10:36:34 somewhere some code must've gone lost between r16 en r17. Apr 05 10:37:08 inside the build.xml for building with ant. during the javac-step. the project's-jars are included. Apr 05 10:37:15 but during the dex-step, they aren't. Apr 05 10:37:27 and they are also not added inside the java-code. Apr 05 10:37:34 so prolly a bug here Apr 05 10:40:10 my theme inherits from light but overrides the action bar style to be dark (Holo) yet the action bar still shows as light (that's the bar at top right?) Apr 05 10:40:29 oh my, android 4.0.3 has deprecated a ton of stuff Apr 05 10:41:55 i suspect the light theme is setting individual action bar component styles rather than the action bar style Apr 05 10:44:48 oh god, preferences have gone all fragment in 4.0.3 Apr 05 10:45:03 ? Apr 05 10:45:06 hellaujah Apr 05 10:47:46 alankila: do you have a link to the list of deprecations? Apr 05 10:47:49 (or how do i find them) Apr 05 10:49:46 hrnt: no, I'm afraid not. I just come across tons of deprecated stuff when I happened to bump the project to 4.0.3 Apr 05 10:50:12 and preferenceactivity's addPreferencesFromResource is one of those... Apr 05 10:51:03 it seems that each preferencescreen is now to be reborn as a fragment Apr 05 10:52:39 how do I completely shut down my app (including service etc.)? Apr 05 10:55:25 UnbertKant: throw an uncaught exception ;) Apr 05 10:57:16 hrnt is there a more professional way? Or can I throw the exception with a message like "App resettet. Restart App to continue"? Apr 05 10:58:03 i don't think so Apr 05 10:58:09 please let me know if you find a way Apr 05 10:58:35 how do i reload an activity/content view so that a new theme is applied after setTheme()? Apr 05 11:04:25 Do not promote my application except in Google Play and in any Google-owned online or mobile properties. I understand that any changes to this preference may take sixty days to take effect. Apr 05 11:04:26 hm Apr 05 11:04:43 What does that mean, how could google possibly promote my app other than in google play or google products? :-) Apr 05 11:05:16 it could be displayed at various occasions Apr 05 11:05:27 videos, conferences, blogposts Apr 05 11:08:50 well, that's preferences transformed into fragments. Apr 05 11:09:03 not so hard once you get to doing it Apr 05 11:09:10 eurgh my project is getting wicked slow with now 5 library projects Apr 05 11:09:39 hi all Apr 05 11:09:50 someone here use eclipse on ubuntu ? It's terribly laggy here Apr 05 11:10:34 use a real development environment. Like windows. Apr 05 11:11:02 lol Apr 05 11:11:04 lvru: ಠ_ಠ Apr 05 11:11:20 just trolling Apr 05 11:11:26 aLeSD: have you tried turning it off and on again? Apr 05 11:11:33 keyboardsurfer, yes Apr 05 11:11:45 I changed the jdk to the officia sun 1.6 Apr 05 11:11:48 but nothing Apr 05 11:12:05 is there anything specific thats slow? Apr 05 11:12:09 after a while working it goes laggy ... and I have to restart the machine Apr 05 11:12:39 all eclipse is slow ... then all the graphics ... like move a window Apr 05 11:13:01 the cpu is to 20% ... so I don't realize where is the prob Apr 05 11:13:19 maybe the videcard device driver ? Apr 05 11:13:44 how much ram ? Apr 05 11:13:50 does the emulator is running ? Apr 05 11:14:03 Ivru, no Apr 05 11:14:10 I am working with a real device Apr 05 11:14:39 I am thinking in the video module cause I am using 2 display Apr 05 11:14:56 Mem: 4023500k total, 2979528k used, 1043972k free, 112636k buffers Apr 05 11:15:16 2 displays with ubuntu has always caused trouble for me Apr 05 11:15:39 I have it working fine, keyboardsurfer Apr 05 11:15:39 so I think that's the problem Apr 05 11:15:47 readme, nvidia ? Apr 05 11:15:50 ati Apr 05 11:16:03 but nvidia should work as well Apr 05 11:16:03 01:00.0 VGA compatible controller: ATI Technologies Inc M92 [Mobility Radeon HD 4500/5100 Series] Apr 05 11:16:09 that's what I have Apr 05 11:16:13 what driver are you using? Apr 05 11:16:26 ati driver for ubuntu use to be a pain in the ass Apr 05 11:16:35 i don't know if things are better now Apr 05 11:16:38 using the fglrx is a mistake Apr 05 11:16:40 you don't need it Apr 05 11:16:48 just a sec Apr 05 11:16:49 I can play 3d games with the regular radeon driver Apr 05 11:17:10 readme, I am not using the propetary driver Apr 05 11:17:18 aLeSD: good, so, are you using radeon? Apr 05 11:17:35 alex@saffo:~$ lsmod | grep radeon Apr 05 11:17:35 radeon 1016475 3 Apr 05 11:17:35 ttm 76805 1 radeon Apr 05 11:17:35 drm_kms_helper 42558 1 radeon Apr 05 11:17:35 drm 236290 5 radeon,ttm,drm_kms_helper Apr 05 11:17:36 i2c_algo_bit 13423 1 radeon Apr 05 11:17:46 aLeSD: so, what exactly was the problem? Apr 05 11:17:57 I will try the propetary ones Apr 05 11:18:00 nooo Apr 05 11:18:03 just pm, it's offtopic here Apr 05 11:18:05 just a try Apr 05 11:18:08 when it get laggy try the command top Apr 05 11:18:12 ok ... sorry Apr 05 11:18:13 trust me, i've been through hell and back with this stuff Apr 05 11:18:23 Ivru: done ... no info Apr 05 11:18:25 and see if something is greedy Apr 05 11:18:28 ok Apr 05 11:18:44 Ivru, my cpu is on 12% Apr 05 11:19:01 and ram/swap ? Apr 05 11:19:15 I don't think your video card has anything to do with this Apr 05 11:19:18 or the driver Apr 05 11:19:22 Oh dear, somebody is using ATI on Linux? I tried that, too. It was a painful waste of time. Apr 05 11:19:35 UnbertKant: not sure what you mean... works like a charm here :) Apr 05 11:19:37 my point UnbertKant Apr 05 11:19:51 * readme radeon4350 w/ multiple displays Apr 05 11:19:56 On my Ubuntu, my ATI Mobility Radeon caused a lot of troubles. Apr 05 11:20:03 oh, there will be troubles Apr 05 11:20:06 if you don't know what to do Apr 05 11:20:18 it took me a while to tame this beast Apr 05 11:20:25 I don't want to need to know what to do. Nvidia "just works" and that is how it should be. Apr 05 11:20:50 agreed, you should buy nvidia if you are getting a new card. Apr 05 11:26:27 I never expect to use any 3D application in Linux Apr 05 11:26:36 they are just for developement Apr 05 11:30:11 linux tries so hard to get rid of its "development-only" status. It's almost endearing if it wasn't so obvious that there isn't enough resources to actually pull such a change off Apr 05 11:30:55 so i'm using actionbarsherlock, i want to put an image directly under the actionbar so it appears to be a part of the actionbar, but there's some padding there between the actionbar and the top of my viewgrouop - how can I get rid of that? Apr 05 11:32:27 how/where does an expandable listview keep track of what's expanded? Apr 05 11:32:33 i've got an activity Apr 05 11:32:34 reboot see ya in propetary drivers Apr 05 11:33:00 with expandable listview, and i do findViewById in the onCreate, and set the adapter Apr 05 11:33:28 and when I rotate screen (and thus activity gets recreated) Apr 05 11:33:36 it keeps the expanded items expanded Apr 05 11:33:45 but I can't figure out how or why Apr 05 11:34:15 i would understand that there might be some intern magic happening if it was an ExpandableListActivity Apr 05 11:34:18 but that's not the case here Apr 05 11:34:32 it's just a normal activity Apr 05 11:34:35 it could save the information in its onSaveInstanceState Apr 05 11:34:41 view's have those as well Apr 05 11:34:46 -' Apr 05 11:35:03 Yeah, onCreate does have it as a parameter Apr 05 11:36:16 Hi all Apr 05 11:36:46 here I am Apr 05 11:37:50 ah I think I found it Apr 05 11:38:07 now I need to figure out why it won't work with another one though Apr 05 11:58:08 Does anyone know how long it usually takes for Google to respond to a counter-notification for a DMCA takedown request. We have removed the content that was in contention and we believe that everything is OK now. Apr 05 11:58:45 I've got an ExpandableListView with an implementation of a SimpleCursorTreeAdapter Apr 05 11:58:59 when I get an orientation change, the expanded items are collapsed again Apr 05 11:59:09 any1 got an idea on how to fix that? Apr 05 11:59:14 did you set an id for your expandable list view? Apr 05 11:59:28 and is it unique? Apr 05 11:59:40 (within the scope of the activity) Apr 05 12:00:02 I think so...? unless you're talking about a different ID, but I've set it in the xml Apr 05 12:00:10 with just @+id/blahblah Apr 05 12:00:28 and the ExpandableListView is in a fragment btw Apr 05 12:00:35 (SherlockFragment that is) Apr 05 12:02:45 Try giving that one view another id Apr 05 12:03:07 alowaniak: what cursor are you using? Apr 05 12:03:14 with setId() in the onStart or something of the fragment? Apr 05 12:03:19 i don't know if it matters, but maybe your group ids are wrong Apr 05 12:03:24 alowaniak: in the XML Apr 05 12:03:43 uhm well from a ContentProvider from a sqlitedatabase Apr 05 12:03:54 how do you mean different id in the xml? Apr 05 12:04:21 i assume that is what simonvt means Apr 05 12:04:37 well ye but how give it another id... Apr 05 12:04:58 If several views have the same ID, how is it to know which view to restore state for.. So, give it another id, just to be sure Apr 05 12:05:00 how would it matter... it's not like i use the same name on diff places Apr 05 12:05:05 Er, change the android:id attribute? Apr 05 12:05:49 alowaniak: do you have a _id column in your group cursor? Apr 05 12:06:07 well ye but the id is now "@+id/scanlist_fragment_expndLstTags" and I'm 100% sure there's no other view that uses that Apr 05 12:06:18 ye hrnt (otherwise i would get runtime exception iirc) Apr 05 12:06:26 alowaniak: and it is stable? Apr 05 12:06:37 (one group always has the same _id) Apr 05 12:07:19 uhm well ye i'm not changing anything in the database while rotating... so I would assume so Apr 05 12:09:53 alowaniak: i dunno if it matters, but is the expandable list view the root of your layout? Apr 05 12:10:51 nah a linear layout is (i've got an extra textview for if the list is empty) Apr 05 12:18:50 You are not creating a new fragment on orientation change, are you? Apr 05 12:21:08 well i barely know how that works, but afaict a new fragment gets created on orientation change yes (I did nothing more than a in the Activity's layout) Apr 05 12:21:22 can you paste your onCreate Apr 05 12:21:35 are you calling setContentView there with a layout that includes a fragment? Apr 05 12:21:37 Does the fragment have an id/tag? Apr 05 12:22:54 got android:id="@+id/scanlist_fragment" in the main's xml, so I would guess so ye Apr 05 12:22:56 and yes hrnt Apr 05 12:23:48 only doing setContentView(R.layout.scanlist) in onCreate (and that scanlist layout has nothing more than the ) Apr 05 12:24:09 alowaniak: does your have that android:id? Apr 05 12:24:13 ye Apr 05 12:24:20 i have no idea if it actually helps though Apr 05 12:25:07 How much diffrent is it writing a service then an activety-bested app? Apr 05 12:37:02 hmk i've got it working in a retarded way hrnt, SimonVT Apr 05 12:37:35 in the onSaveInstanceState (of Fragment) I put the ExpandableListView state into the bundle Apr 05 12:40:02 then in the onActivityCreated (of Fragment) I set the state again (but after re-setting the adapter) Apr 05 12:41:07 kinda makes sense that setting a new adapter makes a new List State I guess... Apr 05 12:41:41 but no idea how I could attach old adapter or anything when view has been remade without it making a new List state otherwise Apr 05 12:43:00 hmm i think i got an exception now though xD Apr 05 12:44:48 Hi, I received a message "Publisher closed input channel or an error occurred" Apr 05 12:45:27 Does it mean that server side of this channel has died Apr 05 12:48:56 hi ! Apr 05 12:50:47 hmmk that setting of the list state after new adapter gives me "random" exceptions about the cursor not being valid Apr 05 12:51:09 so i'm using actionbarsherlock, i want to put an image directly under the actionbar so it appears to be a part of the actionbar, but there's some padding there between the actionbar and the top of my viewgrouop - how can I get rid of that? Apr 05 12:56:40 I don't see any padding under the actionbar Apr 05 12:58:16 hmm Apr 05 13:00:24 yeah you're right, looks like it must be my 9patch Apr 05 13:01:02 I need to use basic authenitifacation but I must send different params from the ones in the Credentials class. How would I go about doing that? Apr 05 13:04:57 why checkInternetConnection() in AsyncTask (checked on emulator) always return TRUE even if the network is not avaible on the computer --- the code is here http://pastebin.com/S5YVPXfq Apr 05 13:05:02 ? Apr 05 13:05:52 because there's a valid local network connection. The emulator isn't supposed to know whether the containing computer can actually ping something or not Apr 05 13:06:12 it's the same thing as being connected to a wifi AP that doesn't actually have an internet connection Apr 05 13:13:08 maybe it's an actionbarsherlock bug - seems to work fine natively, not so fine using abs Apr 05 13:16:39 Make a test case and report it Apr 05 13:17:46 @lov: so how I can check properly state of the net Apr 05 13:17:51 ? Apr 05 13:19:23 you can have a dropshadow on text, but is there anyway to get an inner shadow to give depth to the text? Apr 05 13:19:23 kselos: define "properly" Apr 05 13:19:31 you could always try pinging some server and seeing if that works Apr 05 13:19:44 but really you should just assume that if you have valid network connection, everything is fine Apr 05 13:20:01 and catch exceptions when you try to do networking because the network WILL fail for various reasons even under the best of circumstances Apr 05 13:33:16 this is a part of the loading screen in my app and I must check something like network and other stuff to give user information about device status, before user can do anything in the app Apr 05 13:33:49 <_Lucretia_> shit, the new screen on my galaxy s is nowhere near as vibrant as the old one - anyone have any idea why? Apr 05 13:34:57 ok - I check this on my device Apr 05 13:37:16 kselos: and? Apr 05 13:37:29 kselos: look, if the device has a valid network connection, that's all the framework is going to report to you Apr 05 13:37:37 at that point, you should ASSUME that the network connection is fine Apr 05 13:37:53 you can tell the emulator to change what kind of network connection it has, for testing Apr 05 13:38:04 but you can't assume that if you have a "valid" network connection that it will always work Apr 05 13:38:11 this isn't something android specific, this is general to computers in general Apr 05 13:39:51 yep, I'm bad, it was a problem with my 9patch, not with ABS Apr 05 13:54:29 on the real device it works Apr 05 13:55:21 i check this every time when I run onResume method Apr 05 13:55:32 thx for advice Apr 05 13:56:03 was there something in tools r17 where your custom xml attributes are defined differently? Apr 05 13:56:06 i seem to recall something abou tit Apr 05 13:56:43 Yeah Apr 05 13:56:47 2 sec Apr 05 13:57:18 canadiancow|work: there should be Apr 05 13:57:24 ah Apr 05 13:57:24 It's just the namespace: xmlns:app="http://schemas.android.com/apk/res-auto" Apr 05 13:57:24 http://schemas.android.com/apk/res-auto Apr 05 13:57:26 yea Apr 05 13:57:27 ok thanks Apr 05 13:57:32 that's actually really useful for us Apr 05 13:57:36 because we're renaming the package :) Apr 05 13:57:57 It is indeed Apr 05 13:58:12 yeah, I could absolutely use this Apr 05 13:59:38 so my logitech revue works on the corporate network with a static ip Apr 05 13:59:49 must be something about the dhcp server that it doesnt like (but EVERY OTHER DEVICE is fine with) Apr 05 14:02:33 canadiancow, maybe the ip is out of the dhcp range Apr 05 14:13:57 <_Lucretia_> anyone know about this i9000 colour thing Apr 05 14:14:38 SO the trick to releasing the same code as a free and paid app is to create a library project and then create two new projects that reference it, correct? Apr 05 14:15:25 Hi in the directory structure should I place external libs like apache.commons.jar? Apr 05 14:15:35 hi Apr 05 14:15:36 Where in the directory structure should I place external libs like apache.commons.jar?* Apr 05 14:16:01 In libs/ Apr 05 14:17:00 Do you have to create it cause I dont see libs? Apr 05 14:18:18 I guess so.. Apr 05 14:19:04 Is there a way to tell if a device has can SMS or not? I want to warn the user if they don't have a device that can send a text. Apr 05 14:21:55 litewait: [MFMessageComposeViewController canSendText] ? Apr 05 14:22:11 hrnt: thanks. Apr 05 14:22:36 [10:02:33] canadiancow, maybe the ip is out of the dhcp range Apr 05 14:22:37 ??? Apr 05 14:22:57 litewait: erm, sorry Apr 05 14:23:02 * SimonVT slaps hrnt with an ipad Apr 05 14:23:06 :D Apr 05 14:23:12 at least i didn't give a blackberry suggestion Apr 05 14:23:45 canadiancow|work, some servers have limited ranges in which they can connect with clients, your static ip might be out of that range Apr 05 14:23:51 no Apr 05 14:23:54 it WORKS with a static ip Apr 05 14:23:57 well jumping back and forth I didn't think about your response :-) Apr 05 14:23:59 it does NOT work using dhcp Apr 05 14:24:08 but every other device on the network works fine with dhcp Apr 05 14:24:19 is there a way to add e-mail accounts programatically? does anyone know? Apr 05 14:24:46 litewait: you could see if the device has telephony... Apr 05 14:25:03 (if it has telephony, you're pretty much guaranteed SMS capabilities) Apr 05 14:25:09 lov: that works. thanks. Apr 05 14:27:11 canadiancow|work, I experience I had was similar, static ip only worked, because of this range problem Apr 05 14:27:18 the experience Apr 05 14:27:35 how can a dhcp server assign an ip outside the range of its subnet? Apr 05 14:27:48 that doesnt even make snese Apr 05 14:27:51 .. Apr 05 14:28:02 and why would this only be a problem with the revue Apr 05 14:29:08 I remember it having to do with the driver of my network card, for now I can't give you more ideas ;) Apr 05 14:30:41 hi all Apr 05 14:30:56 what is a good json server-side implementation, glassfish? Apr 05 14:31:42 I have no idea why you're asking that in #android-dev which deals with client-side things. Apr 05 14:32:24 because #java is sleeping Apr 05 14:33:03 anyone awake? :] Apr 05 14:33:16 trying to use ScaleGestureDetector for the first time and having a bit of an issue Apr 05 14:33:42 java server-side, iphone client-side ;) Apr 05 14:33:48 a good team ;) Apr 05 14:34:09 you're on the wrong channel mate Apr 05 14:34:25 php server-side, ANDROID client-side Apr 05 14:34:42 ouch :) Apr 05 14:42:49 haha Apr 05 14:42:59 ask in an android channel because ##java is quiet, seems legit :p Apr 05 14:43:24 yep Apr 05 14:47:59 k so i've got an ExpandableListView backed by an implementation of SimpleCursorTreeAdapter Apr 05 14:48:19 now when i rotate the screen i've got to reset the adapter right? because the ExpandableListView isn't going to remember it obv Apr 05 14:49:05 Try it and see? Apr 05 14:49:37 is there a way to add e-mail accounts programatically? does anyone know? Apr 05 14:51:11 dzan: add them ... to the account manager? Apr 05 14:51:30 evancharlton, will they load in the mail client automatically? Apr 05 14:51:37 i googled but couldn't find how to Apr 05 14:52:38 dzan: I'm trying to understand what you're asking for/about Apr 05 14:52:53 which mail client? Apr 05 14:53:34 evancharlton, I want to add data like username/passw/smtp server/pop3 server/.... with an app so that when a user opens the default mail client ( the android one, installed by default ) he doesn't need to configure it anymore Apr 05 14:55:33 so we had a crash in a production build, but no idea why it was happening. so i caught an exception, then threw a much more detailed exception with information that would allow us to determine the cause. except part of that information involved a call to a method not available in our minSdkVersion T_T Apr 05 14:55:41 so now it's still crashing in the same spot, but only on 2.2 :( Apr 05 14:55:59 Will i have to use an intent to store the device address and then convert that intent into a BluetoothDevice object ? Apr 05 14:58:27 if another app is brought to the foreground, is it _guaranteed_ that my activity will get onPause before this happens? Apr 05 14:58:44 i think i got the solution to my problem . i used mBluetoothAdapter.getRemoteDevice([string]addressOfSelectedDevice); Apr 05 15:00:05 Im extending LinearLayout, but want to add my own property that can be set in my XML layout. How would I go about doing that? Apr 05 15:00:07 http://phandroid.com/2012/04/05/skyhook-ceo-hints-at-non-google-experience-device-from-major-brand-coming-this-year/ Apr 05 15:00:11 "One thing the Kindle Fire has done is proven to manufacturers that launching an Android product without the final approval of Google can be a worthwhile endeavor." Apr 05 15:00:12 lol? Apr 05 15:00:28 yea, samsung should make something for $250, sell it for $200, and hope it works out Apr 05 15:00:37 haha Apr 05 15:00:57 I think what it's proven is that you can sell an android device as a loss leader instead of just as a cellphone Apr 05 15:01:58 it worked for amazon because they ... are amazon Apr 05 15:02:05 they already had a "good" app store Apr 05 15:02:37 hi, is there the sourcecode for the play market app available? Apr 05 15:02:47 no Apr 05 15:03:36 is there a way to customize the app installation process? Apr 05 15:03:55 snuy: what are you trying to do? Apr 05 15:04:21 i'd like to replace some of the dialogs in the default installation process Apr 05 15:04:51 no, you can't do that Apr 05 15:05:06 furthermore, that's probably a bad idea. Why do you want to do that? Apr 05 15:05:33 i'd have to modify the android source for that, right? Apr 05 15:06:00 yes Apr 05 15:06:11 once again, this sounds like a terrible idea Apr 05 15:07:28 do you know where i could start searching in the android source to find the code that handles the apk install routine? Apr 05 15:08:30 evancharlton, guessing you don't know? or didn't understand? Apr 05 15:09:43 dzan: hm? Apr 05 15:09:57 evancharlton: Apr 05 15:09:59 evancharlton, I want to add data like username/passw/smtp server/pop3 server/.... with an app so that when a user opens the default mail client ( the android one, installed by default ) he doesn't need to configure it anymore Apr 05 15:10:15 snuy: PackageManager Apr 05 15:10:33 dzan: I don't believe that's possible Apr 05 15:10:37 Anyone know of way to pass non-serializable objects to another activity? Apr 05 15:10:47 evancharlton, ok, thought so too Apr 05 15:10:57 Madhatt5r: make them Parcelable Apr 05 15:11:06 A few weeks ago I ran across a tutorial that was starting the activity though a static method declared not the activity but I can't remember the link. Apr 05 15:11:26 evancharlton: thx Apr 05 15:11:30 Madhatt5r: or use globals, but watch out for being resumed after your process gets killed Apr 05 15:11:31 I'll give it a shot thanks evancharlton Apr 05 15:12:25 dzan: the system email app has its own database with account information that your app would not have permission to Apr 05 15:13:33 A View Object is not Parcelable or Serializable is it. Apr 05 15:13:47 so unless the app has a content provider that supports adding an account, that wouldnt be possible Apr 05 15:13:49 Madhatt5r: .... don't pass a View between Activities Apr 05 15:13:58 Madhatt5r: period. Apr 05 15:14:53 You can pass the views state, and then restore it.. But not the view itself Apr 05 15:15:08 and even if you could, you shouldn't Apr 05 15:15:29 That as well Apr 05 15:15:50 * abaratican wonders if closing a socket on the main thread would be considered "networking on main thread" Apr 05 15:16:55 Hello. I downloaded a bunch of jars for a project and I'm trying to import them. Is there a way to link ant to see them? Thanks. Apr 05 15:17:08 Put them in libs/ Apr 05 15:20:22 They are in libs. Apr 05 15:20:38 refresh your project? Apr 05 15:21:04 I'm not using Eclipse. Apr 05 15:21:16 ant will automatically include any jars you put in libs/ Apr 05 15:21:52 hello, why is there no adbd.c file in the android source? only adb.c Apr 05 15:22:16 where is the daemon source code? Apr 05 15:22:20 p0ssum: why do you assume that adbd is the result of adbd.c? Apr 05 15:22:48 evancharlton: i don't know, i thought there is always a direct mapping of names Apr 05 15:23:13 Then how will I include them in the project? The jar file is called gsa-japi-src-1.3.jar but the docs for the jar said to import several files like "import net.sf.gsaapi.GSAClient;" Apr 05 15:23:36 evancharlton: are you familiar with the source structure? Apr 05 15:23:52 p0ssum: only at a high level; I don't know what all goes into adbd, sorry. Apr 05 15:23:57 best start digging Apr 05 15:24:22 evancharlton: so there isn't a direct mapping usually? i am used to gcc -o whatever whatever.c Apr 05 15:24:40 p0ssum: that's convention; there's no requirement of that Apr 05 15:25:23 ok, i just don't see why anybody would break with that convention Apr 05 15:26:20 adbd is most likely a number of source files Apr 05 15:27:03 wongk: is there a good reason for that? Apr 05 15:27:17 modularity, structure? Apr 05 15:27:34 good programming practice Apr 05 15:27:49 wongk: then why are the modules not named after it? i mean how would i find randomly named modules? Apr 05 15:27:55 .... Apr 05 15:27:57 adbd_module_x Apr 05 15:28:02 adbd_module_whatever Apr 05 15:28:06 lov: ? Apr 05 15:28:06 hey p0ssum you realize that most programs are made of more than one source file, right? Apr 05 15:28:08 this speculation is pointless Apr 05 15:28:20 lov: yeah but i would name them more consistently Apr 05 15:28:21 lov: impossible. Apr 05 15:28:28 what would you name those files then? Apr 05 15:28:36 adbd1.c, adbd2.c, adbd3.c, ... ? Apr 05 15:28:36 wongk: it was a question, not speculation Apr 05 15:28:53 * TheNumb concantenates sources into one file. Apr 05 15:28:55 lov: yes, just more meaningful module titles than natural numbers Apr 05 15:29:04 lov: as i said Apr 05 15:29:10 adbd_module_x .. Apr 05 15:29:13 you also realize that MODULES are usually made of more than one source file, right? Apr 05 15:29:27 p0ssum: you are porbably alone in that naming convention Apr 05 15:29:31 p0ssum: I bet if you started grepping Android.mk files it might help Apr 05 15:29:31 lov: doesn't invalidate the naming scheme i propose Apr 05 15:29:39 p0ssum: patches welcome. Apr 05 15:29:44 evancharlton: what is mk? Apr 05 15:29:49 ..... make. Apr 05 15:29:55 lolol. Apr 05 15:29:55 Any tips on ui designs for tablets? I.e., simply and elegantly differentiate between swiping screen gesture to drag object within the screen and swiping screen gesture to switch to a different screen, Apr 05 15:29:56 ah Apr 05 15:30:10 panda81: have you checked out the android design site? Apr 05 15:30:17 p0ssum: they define how each project in the tree is built Apr 05 15:30:23 they're just text files Apr 05 15:30:26 lov: where? Apr 05 15:30:39 http://developer.android.com/design/index.html Apr 05 15:30:42 evancharlton: like grep "adbd" *.mk? Apr 05 15:30:58 grep -R --include="*c" adb Apr 05 15:31:05 OHSHI Apr 05 15:31:24 p0ssum: use what lov gave you as a starting point Apr 05 15:31:43 lov: why not just grep -r adb *c? Apr 05 15:32:07 because that's not the same command Apr 05 15:32:21 my command says "Grep, recursively, include all files that end with c in your search." Apr 05 15:32:31 lov: yes it is Apr 05 15:32:32 your says "Grep, recursively, over all files ending with c in this directory" Apr 05 15:32:45 so any directories that don't end with c won't be included. Apr 05 15:32:49 lov: no it is recursive too Apr 05 15:32:52 you also won't be grepping ONLY on C files Apr 05 15:32:54 ah directories, lol Apr 05 15:32:54 look dude Apr 05 15:32:57 learn 2 shell script thx Apr 05 15:33:06 well i only want c FILES Apr 05 15:33:09 right. Apr 05 15:33:12 not c directories Apr 05 15:33:12 which is why you want my command Apr 05 15:33:13 lol Apr 05 15:33:15 ok Apr 05 15:33:19 because it says "Include only files that end with c" Apr 05 15:33:24 lol Apr 05 15:33:25 instead of yours Apr 05 15:33:34 it is effectively the same Apr 05 15:33:36 which says "grep recursively, starting in directories here that end in c, but include everything" Apr 05 15:33:39 no Apr 05 15:33:42 it is in no way the same Apr 05 15:33:45 unless you have no subdirectories Apr 05 15:33:58 well i want to know all file names that contain adb Apr 05 15:34:04 too Apr 05 15:34:06 so mine is better Apr 05 15:34:07 find . -iname '*adb*' Apr 05 15:34:15 How should I include jar files in a project? The jar file is called gsa-japi-src-1.3.jar but the docs for the jar said to import several files like "import net.sf.gsaapi.GSAClient;" Apr 05 15:34:32 lov: grep on directories filters directory contents aka file names and grep on files filters file contents Apr 05 15:34:42 ..... Apr 05 15:34:47 ok, do a little test for me Apr 05 15:34:50 make a directory called test Apr 05 15:34:54 make a subdir called sub Apr 05 15:34:58 and put some random c file in there Apr 05 15:35:01 then go into test, and run your command Apr 05 15:35:03 lemme know what you get back Apr 05 15:35:09 k so i've got an ExpandableListView backed by an implementation of SimpleCursorTreeAdapter Apr 05 15:35:10 sure Apr 05 15:35:19 now when i rotate the screen i've got to reset the adapter right? because the ExpandableListView isn't going to remember it obv Apr 05 15:35:28 Yes Apr 05 15:35:37 so when i reset the adapter, it's going to forget what was expanded Apr 05 15:35:40 make sure the file lives in your subdir, your subdir doesn't end with c, and you start outside the subdir. Apr 05 15:35:50 are you trying to solve this on ap hone Apr 05 15:35:57 or on a pc Apr 05 15:35:57 lov: can i name the subdir subc? Apr 05 15:36:00 no Apr 05 15:36:02 if on a pc; find ./ -name \*foo Apr 05 15:36:03 lol Apr 05 15:36:04 now i can workaround that by getting the list state, resetting the adapter and then set list state again Apr 05 15:36:04 ok you win Apr 05 15:36:19 OK LAWL I GUESS I WIN THEN CUZ I'M ACTUALLY RIGHT Apr 05 15:36:20 No, alowaniak Apr 05 15:36:23 but then the list is working on different cursors etc. which occasionally result in exceptions Apr 05 15:36:34 wat no SimonVT? Apr 05 15:36:48 Any View state is saved by the View, not the adapter Apr 05 15:36:54 i know SimonVT Apr 05 15:36:56 but Apr 05 15:36:59 when i do setAdapter Apr 05 15:37:10 it resets the mConnector which contains which was expanded ec Apr 05 15:38:14 so well i can workaround that with getting the state, setting adapter, setting state Apr 05 15:38:34 but then I sometimes get a "cursor cannot be invalid" or something like that Apr 05 15:38:52 So set the adapter before the framework restores state Apr 05 15:39:05 why is adbd (the binary) located in /sbin and why is adbd the only binary that is located in /sbin? Apr 05 15:39:34 well ye SimonVT although I got no idea how I could invoke anything on the listview before it's onRestorState thing is called Apr 05 15:39:48 however, either way Apr 05 15:39:51 i lose my old adapter Apr 05 15:39:53 thus create a new Apr 05 15:40:07 and then get an exception about the cursor not being valid sometimes Apr 05 15:40:12 Where are you setting your adapter Apr 05 15:40:14 if i make the adapter static (and thus only got one adapter) it seems to work without giving the exception Apr 05 15:40:32 uhm well now i am in the onActivityCreated Apr 05 15:40:42 Why not in onViewCreated Apr 05 15:40:51 hey guys any reaosn why when i copy paste some code in eclipse it pastes without formating? very annoying Apr 05 15:41:15 gaz`: press ctrl+shift+f after pasting Apr 05 15:41:34 oh didn't even know about that SimonVT Apr 05 15:41:43 Look, View is created > state is restored > you set adapter > state is lost .. You need View is created > you set adapter (no state to lose) > state is restored Apr 05 15:41:44 either way I don't think that would solve my cursor being invalid problem Apr 05 15:41:56 k Apr 05 15:42:07 You can set the adapter now, then change cursor later Apr 05 15:42:17 CursorAdapter does not need a Cursor when instantiated Apr 05 15:42:23 p0ssum wow nice, why does it need that, and does that format the entire file or just the bit ive pasted? Apr 05 15:43:13 gaz`: the command formats the entire file, it doesn't automatically format the pasted lines because not everbody might like that Apr 05 15:44:21 cool, its fine for me i like it, altho sometimes i haev my own custom formating so could be annoying :) Apr 05 15:44:23 hmm well I now set the adapter in the onViewCreated Apr 05 15:44:29 which indeed works Apr 05 15:44:30 but Apr 05 15:44:44 still got "this should only be called when the cursor is valid" error Apr 05 15:45:15 gaz`: yeah that's probably because it doesn't do it automatically. most people have their own little preferences that eclipse cannot possibly know. so it either lets you format the entire file according to some standard set of formatting rules, or it leaves it untouched Apr 05 15:45:16 Are you passing it an invalid cursor, or what are you saying? Apr 05 15:45:16 How should I include jar files in a project? The jar file is called gsa-japi-src-1.3.jar but the docs for the jar said to import several files like "import net.sf.gsaapi.GSAClient;" Apr 05 15:45:37 gaz`: you can edit the formatting rules in the eclipse settings though Apr 05 15:45:46 makes sense p0ssum, thought it was a bug for ages Apr 05 15:45:50 yeh Apr 05 15:46:17 fully_human: what do import statements have to do with the name of your jar file? Apr 05 15:46:20 well idunno SimonVT, i make a new instance of my adapter in the onViewCreated Apr 05 15:46:24 and in it's constructor Apr 05 15:46:45 alowaniak: its Apr 05 15:46:46 wongk: Not sure myself. Apr 05 15:46:47 i call super with null, but also do setGroupCursor(getContentResolver().blabhblah) Apr 05 15:46:55 srry p0ssum Apr 05 15:47:00 :D Apr 05 15:47:00 fully_human: do you not know what import statements are? Apr 05 15:47:30 Yes. Apr 05 15:47:42 alowaniak: Just create the Adapter once in onCreate, and then swap out cursors as they're ready Apr 05 15:47:46 fully_human: then you should know that there is not correlation Apr 05 15:47:53 And set it to the list in onViewCreated Apr 05 15:47:53 s/not/no Apr 05 15:49:05 Also, uh.. are you querying on the main thread? Apr 05 15:49:07 wongk: I thought there wasn't. :-\ Apr 05 15:49:17 ye ikno querying on main thread is bad Apr 05 15:49:27 but i wouldn't think that's causing the exception though? Apr 05 15:49:38 fully_human: so the question you are asking isn't really asking anything Apr 05 15:49:51 For some reason the stuff I try to use from the jar file (like GSAQuery) isn't recognized by ant. Apr 05 15:50:11 (I mean it can't be found). Apr 05 15:50:40 also i'm not sure if i understand what you mean exactly SimonVT, you don't mean have one instance of the Adapter all the time right? Apr 05 15:50:49 alowaniak: Are you calling getView manually or something? Apr 05 15:50:54 no Apr 05 15:51:17 No, I'm asking why ant isn't finding the classes contained in the jar file. Apr 05 15:51:28 Hi! I just bought a bluetooth headset with vibration capability. Is there some function to make the device vibrate, programmatically (not by receiving calls) thx Apr 05 15:51:31 ...and how to make it find the classes. Apr 05 15:51:47 Yes, I mean create the Adapter in onCreate.. Just once Apr 05 15:52:03 ofauchon_: by "device" do you mean your bluetooth headset? Apr 05 15:52:31 ofauchon_: Vibrator.vibrate() Apr 05 15:52:35 yeah , sorry .. I want the bluetooth device vibration. Apr 05 15:52:37 well with all the time i mean in between rotation changes etc SimonVT, unless I'm a retard; onCreate is called again on a rotation change Apr 05 15:52:46 Then no Apr 05 15:52:48 ofauchon_: Oops, nvm. Apr 05 15:52:56 For the lifetime of the fragment instance Apr 05 15:53:00 ye ok Apr 05 15:53:10 that's what i do though Apr 05 15:53:23 i think... :p Apr 05 15:53:25 Anyway Apr 05 15:53:26 in the onCreateView I make the adapter Apr 05 15:53:33 fully_human: put them in the right place and it will. Apr 05 15:53:39 Lose the View and create it there Apr 05 15:53:45 Only set the adapter in onCreateView Apr 05 15:53:56 moonlightcheese: I put them in lib/ I don't know how much more right I can get. Apr 05 15:53:59 fully_human: do you have something like: in your build.xml? Apr 05 15:54:16 wait, wat? Apr 05 15:54:33 wongk: Yes. Apr 05 15:54:35 fully_human: btw, it's "libs" Apr 05 15:54:57 wongk: That's what I meant. Sorry. ;-) They are in libs/ Apr 05 15:55:02 onCreate(...) { mAdapter = new SomeAdapter(...); } ... onCreateView(...) { mList,setAdapter(mAdapter) } Apr 05 15:55:10 they *should* be picked up, then Apr 05 15:55:20 er Apr 05 15:55:28 onViewCreated.. Apr 05 15:55:46 Both is fine Apr 05 15:55:48 really Apr 05 15:56:02 fully_human: you did import them, right? Apr 05 15:56:36 In the java file? Yes. Thought I couldn't do that, though. Apr 05 15:57:15 thought you couldn't? Apr 05 15:57:31 The exception you're seeing is only thrown if getView is called with no cursor present.. So something's wrong in your adapter if that's the case, since getCount will return 0 when there's no cursor Apr 05 15:57:56 fully_human: probably not; the headset's vibration is likely hardcoded within that device's firmware Apr 05 15:58:55 oh you're trying to control the vibrate on a bluetooth device? Apr 05 15:59:56 well i did getView() on the fragment to get the expandablelistview (to set the adapter) but I assume that's not the cause of any error right? Apr 05 16:00:18 no that's not it Apr 05 16:00:23 moonlightcheese: No. I'm using this library: http://gsa-japi.sourceforge.net/complete-tut.html Apr 05 16:00:36 Also note that the view returned from onCreateView is passed to onViewCreated Apr 05 16:00:58 yea i assumed so Apr 05 16:01:45 Im extending LinearLayout, but want to add my own property that can be set in my XML layout. How would I go about doing that? Apr 05 16:02:00 hmm again a cursor invalid... Is it because I'm doing setGroupCursor() in the adapter's constructor or something? Apr 05 16:03:04 fully_human: so what's the issue? Apr 05 16:04:44 moonlightcheese: Ant can't find the classes that I use from the API. Apr 05 16:04:48 No idea, alowaniak Apr 05 16:04:54 Check the stacktrace, see what's causing it Apr 05 16:05:43 uhm well the whole stacktrace is kinda long obv Apr 05 16:06:01 They usually are Apr 05 16:06:05 ElevenSquared: best answer i have for you is to grab ViewPagerIndicator off github and see how it is done there; only a few java files, all of which are relevant examples to this. Apr 05 16:06:10 i'll pastebin Apr 05 16:06:32 ElevenSquared: it's not hard to do, just you'll get a better answer by seeing it than having a lengthy answer here,. Apr 05 16:06:50 pastebin.com/RYspMp3r Apr 05 16:08:49 so ye, i dunno what the cause is exactly... apart from when it's doing the layout Apr 05 16:09:40 also not sure if i've told it clearly, but it happens randomish Apr 05 16:10:14 as in, sometimes it's working fine Apr 05 16:12:19 so what's the technical reason behind phones not charging during the bootloader phase? Apr 05 16:12:29 you need enough of a charge to get past that or you cant turn on the phone Apr 05 16:12:43 No idea, alowaniak Apr 05 16:12:52 :( Apr 05 16:13:07 tyvm for your help though Apr 05 16:14:15 canadiancow|work: I think that in bootloader mode they want to load as absolutely little code as possible Apr 05 16:14:23 but that's my completely unfounded belief Apr 05 16:17:53 mi è scomparso il cd /dvd Apr 05 16:20:53 evancharlton, i can understand that, but it causes problems Apr 05 16:21:00 like...it's plugged in - why do i have to wiat 5 minutes to get a decent charge Apr 05 16:21:01 :( Apr 05 16:22:13 who knows Apr 05 16:22:15 ask the OEM Apr 05 16:23:01 you work for moto, dont you? Apr 05 16:26:06 * evancharlton flexes Apr 05 16:26:18 who is moto? Apr 05 16:26:36 :( Apr 05 16:26:37 he's referring to motorola Apr 05 16:26:46 ah Apr 05 16:27:15 i would also kick evrybody who insults people by saying they work for motorola Apr 05 16:27:49 Yeah, that's just taking to too far Apr 05 16:29:18 k this thing says it has 29% battery Apr 05 16:29:20 think i can boot it yet? Apr 05 16:29:29 if i dont make it in, i have to start over Apr 05 16:29:58 why wouldn't 29% of battery be enough for booting? Apr 05 16:30:22 more like s/wouldn't/isn't/ Apr 05 16:30:22 unless your booting takes several hours Apr 05 16:30:51 well a typical phone battery lasts say 12 hours so 30% of that is 4 hours Apr 05 16:31:25 hey i got in! Apr 05 16:33:38 i thought you meant something cool like io Apr 05 16:34:00 well that too Apr 05 16:34:03 allegedly Apr 05 16:36:09 Apr 05 16:36:39 test Apr 05 16:36:40 Hello. I have launched a webview process from an SL4A script. I cannot seem to kill it now, and whenever I load SL4A I am presented the webview without ability to navigate away from it. Anyone know how to kill it? Apr 05 16:39:13 [12:36:08] ?? Apr 05 16:39:34 canadiancow|work: people that go to io arent cool… cause i didnt get in Apr 05 16:39:45 =\ Apr 05 16:47:02 Is it possible to specify an authority associate to a scheme in an desclared in manifest ? For example I want to handle audio/* mime-types for content://media/.... Uri but not all other possible content:// Uri. So here I would have to specify I'm only interested in the "media" scheme. Apr 05 16:49:12 ok found the answer...should be better at RTFM Apr 05 16:49:25 :) Apr 05 17:24:03 is there something in the audiorecord API to detect buffer overflows when recording? Apr 05 17:25:18 it is sitting between the keyboard and chair right now. Apr 05 17:26:02 I believe that if the buffer overflows, you won't get a warning. Apr 05 17:26:16 lov: you get an error in the logcat. Apr 05 17:26:28 programatically Apr 05 17:27:05 is there a way to get such a warning? I'm running computationally expensive processing on the audio, which is too much for first-gen androids Apr 05 17:27:25 and at the same time, there is no easy way to visualize the data to see buffer skips. Apr 05 17:34:51 Hello, I am semi new to android app dev. And am taking alot longer than i though on this project. How easy is it to convert a webapp to a android app? Apr 05 17:35:15 Is it more hassle than its worth and should i just stick to it and learn to code on android?\ Apr 05 17:35:45 Ge0rG: unfortunately, I'm not sure there is. You should probably create your own audiobuffer code that pulls from the actual audiobuffer, and handles warning you about potential overflows. Apr 05 17:36:22 moonunitzappa: it depends on what you mean by "convert". Technically, you could make an app that's nothing more than a webview pointing to your server. Practically, you'll usually want to do more. Apr 05 17:36:44 moonunitzappa: there are 3rd party libraries like phonegap that will try to let you write webapp code in a cross-platform manor but it may or may not be appropriate for you. Apr 05 17:36:58 if you're doing anything non-trivial, strongly consider writing a java/android version Apr 05 17:37:09 cool, was just reading up on phone gap Apr 05 17:37:12 yea super simple app Apr 05 17:37:29 just buttons pics andtext Apr 05 17:37:34 no DBs or anything Apr 05 17:37:40 phonegap is a great way to make a shitty app that runs on two platforms, poorly. Apr 05 17:38:01 ha Apr 05 17:38:19 ha yea alot of the internets has been saying that evancharlton Apr 05 17:38:48 lol, sounds great Apr 05 17:38:51 i must try it Apr 05 17:39:10 Ok so im prob just gonna stick to java Apr 05 17:39:54 also im using android sdk 2.1 Apr 05 17:40:15 If i use a higher vir would it be easier at all? or will the eclipse UI stil look the same? Apr 05 17:40:32 I kinda like the whole cheatsheet pallete thing, where i can drag and drop buttons Apr 05 17:40:57 I too am a fan of     Apr 05 17:41:05 moonunitzappa: you're really just specifying what api level you're compiling AGAINST. The ADT is separate from that. Apr 05 17:41:25 I'd strongly recommend that you point at the 4.0.3 sdk for compiling, and make sure that your minSdk and targetSdk values in the manifest are set appropriately Apr 05 17:41:55 ok Apr 05 17:44:22 hey, does anyone know why I can't view the "VM Heap" in the "Dalvik Debug Monitor"? The "Cause GC" button is grayed out and I don't see any data Apr 05 17:51:59 solved: http://stackoverflow.com/questions/3999087/how-to-enable-heap-updates-on-my-android-client. :) Apr 05 17:58:06 I'm going mad. Eclipse does not load the adt repository, says "read timed out" :/ Apr 05 18:02:13 hmmz, just seeking a confirmation: when using a sync adapter can it launch an activity when certain data is "synced" ? Apr 05 18:02:36 ( seems not strange on a code level but feels rather odd when one would just have an activity pop up ) Apr 05 18:03:11 probably not hard to do, but *WHY?* Apr 05 18:03:34 it would be terrible to have an activity pop up as the result of a sync Apr 05 18:03:36 I mean, we already have a lot of dumbfuckassholery in android apps... Apr 05 18:03:50 at the very most, you should show a notification Apr 05 18:05:22 p_l, pfn uhu ok, notification makes sense ofc :p Apr 05 18:05:36 dzan: and only when notification is needed Apr 05 18:05:41 (new data, etc.) Apr 05 18:05:44 uhu indeed Apr 05 18:06:01 thx Apr 05 18:09:29 only show a notification if it's something that should/must be addressed Apr 05 18:16:47 is it wrong that my model has a reference to the View ? Apr 05 18:17:02 pretty wrong Apr 05 18:17:08 shit Apr 05 18:17:41 ok ... I try to explain my problem ... it's difficult so I will try Apr 05 18:18:00 my view is a ListView with a CustomAdapter Apr 05 18:18:28 the model change the number of element of the ListView Apr 05 18:19:06 I can adapt the adapter to map the data of the model Apr 05 18:19:30 but how may I notify the adapter that the data changed by the View ? Apr 05 18:19:58 bad explanation ? Apr 05 18:20:04 i want to send a byte[] from a service to an activity, i've seen simple examples of using an IBinder for sending ints and such, but am unsure of the best approach for byte[] Apr 05 18:20:32 abaratican, what do you mean ? Apr 05 18:20:58 and maybe is better to use ArrayList Apr 05 18:21:08 my service is not within my application. Apr 05 18:21:15 and ? Apr 05 18:21:19 aidl Apr 05 18:22:18 lov are u alive ? Apr 05 18:22:27 aLeSD: adapter.notifyDataSetChanged() Apr 05 18:22:52 wongk, I know it ... but the Model have to call it Apr 05 18:23:02 define model Apr 05 18:23:08 ok Apr 05 18:23:29 the model is a chain of node ... that have ViewNode Apr 05 18:23:31 that's what an adater is Apr 05 18:23:37 man imgoing to be rich on android apps Apr 05 18:23:38 a model Apr 05 18:24:07 so the user add in the model ViewNode Apr 05 18:24:15 after I will get the android skd working. Apr 05 18:24:18 and the VievNode are the element of my ListView Apr 05 18:24:50 so the controller add the ViewNode to the model Apr 05 18:24:52 and .... Apr 05 18:24:54 shit Apr 05 18:24:55 did someone make an app where you fuck Apr 05 18:25:02 ? Apr 05 18:25:03 I see the solution Apr 05 18:25:13 aLeSD: this all sounds over-engineered to me Apr 05 18:25:18 yea Apr 05 18:25:28 the Controller notify the View Apr 05 18:25:40 working on upgrading my app to ICS/HC, is a content provider the new sqlite? Apr 05 18:26:12 100 bucks Apr 05 18:26:19 wongk, sure ... I was trying to make a simpli app to show the data from the sensors ...and I am building a framework Apr 05 18:26:21 :( Apr 05 18:26:54 aww Apr 05 18:26:56 but I think I will reuse it for every signal source Apr 05 18:27:42 wongk, is it good that Controller do stuff on Model and View Apr 05 18:27:44 ? Apr 05 18:28:00 that's the definition of a controller Apr 05 18:28:17 cooldman224, contentprovider has been around since 1.0 Apr 05 18:28:17 so in the and : the View will use an adapter that "map" elements of the Model Apr 05 18:28:48 the controller will add elements to the Model and notify the View that the number of elements has changed Apr 05 18:28:50 is it good ? Apr 05 18:28:59 pfn: yes but it seems android is taking the boot to sqlite Apr 05 18:29:10 references? Apr 05 18:29:22 http://www.androidpolice.com/2012/04/05/zynga-releases-scramble-with-friends-deluxe-for-0-99-removes-ads-and-lets-you-earn-tokens-twice-as-fast/ Apr 05 18:29:24 win Apr 05 18:29:28 contentproviders are terribly bound to sqlite Apr 05 18:29:37 http://www.mail-archive.com/android-developers@googlegroups.com/msg170103.html Apr 05 18:30:55 what is the best way to make listview section headers? Apr 05 18:30:58 the propper way? Apr 05 18:31:35 define "section headers" Apr 05 18:31:48 like what exactly are your sections Apr 05 18:32:34 like the ones in the preferences? Apr 05 18:33:34 janhouse: a custom adapter that returns a View for your section headers with whatever style you want Apr 05 18:34:43 cooldman224, nothing there says anything about getting rid of sqlite Apr 05 18:34:56 Google Play's Android developer console is still screwed up? Blech.. Apr 05 18:35:12 whats scrwed up? Apr 05 18:35:29 pfn: yeah but i want to use a cursorloader but cant with my sqlite, that seems silly to me Apr 05 18:36:00 what says you can't? Apr 05 18:36:00 how can I kill a webview subprocess? Apr 05 18:36:27 pfn: the api "A loader that queries the ContentResolver and returns a Cursor" Apr 05 18:36:38 canadiancow|work, the front page doesn't even come up normally, for hours... Apr 05 18:36:59 Ologn: works fine here Apr 05 18:37:08 Ologn mine does Apr 05 18:37:15 Been pretty unstable here Apr 05 18:37:23 Usable, but lots of errors Apr 05 18:37:52 SimonVT: Yaa, same with me. Apr 05 18:38:16 cooldman224, so use a superclass of it Apr 05 18:38:51 class java.lang.IncompatibleClassChangeError Msg: com.zynga.scramble.bgt.:73 (interface not implemented) Apr 05 18:38:53 how is that possible Apr 05 18:39:02 how can "interface not implemented" be a runtime error Apr 05 18:39:16 canadiancow|work, java 6 vs 5 Apr 05 18:40:22 I know java.sql did stuff like that, dunno about elsewhere Apr 05 18:41:02 wow i made huge mistake to removing android sdk Apr 05 18:41:09 it will take forever Apr 05 18:41:31 pfn: im not seeing your point Apr 05 18:42:04 cooldman224, you can use a loader, just not cursor loader Apr 05 18:42:41 that expects to work against a content provider I guess. Apr 05 18:43:08 has nothing to do with giving sqlite the boot Apr 05 18:44:03 make way for the Anroid Open Database Format (tm) Apr 05 18:44:30 we don't need you're stinking sqlite! Apr 05 18:45:25 pfn: guess ill start working on my content provider Apr 05 18:49:29 http://i.imgur.com/hwptE.jpg XD Apr 05 18:49:46 A wild g00s appears Apr 05 18:49:53 hehe Apr 05 18:50:16 a syncadapter is a 'pull' thing right? it's basically a callback called at a frequency which then pulls data from a online service right? it's not something pushed to ( C2DM ) Apr 05 18:50:28 herp Apr 05 18:51:03 http://cdn.iwastesomuchtime.com/3242012133443sfgdeg.jpeg Apr 05 18:51:31 hah Apr 05 19:01:33 aidl docs say it can send primitives... am i right to assume primitive arrays are included in the primitives? Apr 05 19:01:38 Zooklubba: partially true. It's not the smell itself, is the stink which happens when you use ridiculous amounts :> Apr 05 19:02:10 * pfn would assume that Apr 05 19:02:24 p_l, not sure if I have ever met someone that doesnt use ridiculous amounts :P Apr 05 19:02:46 Zooklubba: the others are probably unnoticeable ;) Apr 05 19:03:33 oh intellij.... why are you so awesome? Apr 05 19:03:35 I had some good idea when I typed the earlier mentioned statement but I lost my point. lol Apr 05 19:12:48 * abaratican wonders why intellij is awesome. Apr 05 19:13:32 Is there a way to use the Resource class to do something like findViewById(resource.getLayout(R.layout.some_layout));? Apr 05 19:14:02 Madhatt5r: .... what would that even do? Apr 05 19:14:07 waaaat Apr 05 19:14:11 because, uh, no. Apr 05 19:21:03 ... Backtrack 5 loaded as chroot on android phone Apr 05 19:21:08 now, that is an interesting Apr 05 19:21:10 *use Apr 05 19:23:47 what? Apr 05 19:24:41 pfn: a linux distro full of hacking tools :) Apr 05 19:24:54 its only 12 am and i reached the end of the internets already Apr 05 19:26:12 what format are google play books ? Apr 05 19:26:25 I see Apr 05 19:26:26 what a terrible name 'play books', ugh Apr 05 19:26:34 something proprietary Apr 05 19:27:13 or at least proprietary enough that you can't sideload books into play Apr 05 19:27:45 pfn: it's enough if it's ePub with DRM Apr 05 19:28:15 is it epub 3 ? Apr 05 19:28:31 i noticed google was on the epub 3 board Apr 05 19:28:41 p_l, so I take it your an axe guy :)? Apr 05 19:28:51 ;)* Apr 05 19:29:08 Zooklubba: I'm "whatever ended up in my supplies" guy Apr 05 19:29:13 heh Apr 05 19:29:30 the purpose is to not stink with sweat, not layer skunk-like smell on you Apr 05 19:30:34 yey http://www.bgr.com/2012/04/04/samsung-planning-mobile-ad-platform-to-rival-google-and-apple/ Apr 05 19:30:39 * g00s sighs Apr 05 19:30:53 word Apr 05 19:31:26 gah Apr 05 19:31:34 more remote android work coming in Apr 05 19:31:46 watch samsung place ads. watch samsubg sales number plummet. Apr 05 19:33:22 so for this app http://phandroid.com/2012/04/05/tasks-is-a-holo-themed-app-for-phones-and-tablets-compatible-with-android-2-2-devices-on-up/ Apr 05 19:33:34 probably used abs if you're gonna ask :p Apr 05 19:33:35 i wonder how they did the theme Apr 05 19:33:52 there is a backport Apr 05 19:33:55 but im not sure its a good idea Apr 05 19:33:57 is there a way to turn on pinch to zoom etc in a webview? Apr 05 19:34:06 https://github.com/ChristopheVersieux/HoloEverywhere Apr 05 19:34:08 i want my app to be consistent with the device's theme Apr 05 19:34:10 i wonder if its this Apr 05 19:34:14 so there isnt a OMG WTF IS THIS moment Apr 05 19:34:17 g00s: yes Apr 05 19:34:38 yeah, i'm not so sure its a good idea either. Apr 05 19:35:25 99c, I bought it Apr 05 19:35:28 don't know if I'll ever use it Apr 05 19:35:45 Nice selling point, "awesome". lol Apr 05 19:35:52 I am sure it is nice and all, just funny. Apr 05 19:36:50 OMG .. more remote android contracting work offers.. yeesh Apr 05 19:37:03 facebook, amazon.. shit be crazy Apr 05 19:37:23 "Skyhook Wireless CEO Ted Morgan recently revealed to Technology Review that Android manufacturers are starting to sour on Google’s control over Android and looking to Amazon as a model of how to successfully cut ties with the big G." … wonder if this is real or sour grapes Apr 05 19:37:25 hmm, facebook doesn't do their stuff in-house? interesting Apr 05 19:37:33 Hello - anyone maybe ran into problem like this: bash: /opt/android-sdk-linux/platform-tools/adb: No such file or directory - the adb is clearly there, buy bash wont launch it Apr 05 19:37:50 facebook's app sucks... Apr 05 19:38:10 ironhalik, not running on a current version of linux? Apr 05 19:38:18 ironhalik, you'll often get that if your linker is not compatible Apr 05 19:38:55 pfn: may it be caused by 64-bit linux? Apr 05 19:39:05 ironhalik, I guess it's possible Apr 05 19:39:07 ldd adb Apr 05 19:39:20 not a dynamic executable Apr 05 19:39:31 eh Apr 05 19:39:34 file adb Apr 05 19:39:51 adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, stripped Apr 05 19:40:10 I guess install the x86 userspace if you don't have it Apr 05 19:40:56 ok, Ill try that, thanx pfn Apr 05 19:44:17 canadiancow|work> i want my app to be consistent with the device's theme <- I want my apps to be pretty :p Apr 05 19:44:35 that's "pretty" subjective Apr 05 19:44:55 pun intended Apr 05 19:44:58 i want my apps to look like poorly ported iphone apps! Apr 05 19:45:12 Google already said no to "be consistent with pre-holo themes" with most their apps Apr 05 19:45:37 So there's no "OMG WTF IS THIS" Apr 05 19:46:05 said no to? Apr 05 19:46:11 where are they using holo on 2.3? Apr 05 19:46:15 pfn: i386 libs helped, thanks Apr 05 19:48:34 ugh, fucking gross. arsenic found in chicken Apr 05 19:48:52 for the uninitiated; arsenic causes stem cells to become cancerous Apr 05 19:49:03 just cook it properly Apr 05 19:49:04 Market is pretty ICS-y on 2.3 tbh Apr 05 19:49:35 Snuffel: you are joking right :D Apr 05 19:50:20 i have heard about this before, but it comes up again here http://www.nytimes.com/2012/04/05/opinion/kristof-arsenic-in-our-chicken.html?_r=1 Apr 05 19:50:42 :) Apr 05 19:50:54 i know all our chicken has some bactery Apr 05 19:51:00 that goes away when it's cooked Apr 05 19:52:14 arsenic != bacteria Apr 05 19:52:44 i know Apr 05 19:52:54 arsenic is not impressed by a little cooking Apr 05 19:55:29 its fine Apr 05 19:55:32 if you cook it, it's good Apr 05 19:55:36 that applies to everything Apr 05 19:56:05 sounds legit Apr 05 19:56:42 * g00s puts a cow in the pot Apr 05 19:56:57 damn it, get in there legs ! Apr 05 19:57:59 who maintains the maven repository for the android sdk jars? Apr 05 19:58:01 http://mvnrepository.com/artifact/com.google.android.tools Apr 05 19:58:39 xD Apr 05 19:59:10 "This is borne out in his device logs — over 40 percent of his sessions came from handsets running Android 4.0, despite Ice Cream Sandwich only accounting for 1.6 percent of devices as of a month or so ago. " Apr 05 19:59:21 http://www.theverge.com/2012/4/4/2926758/papermill-instapaper-android-users-less-willing-premium-apps Apr 05 19:59:37 too much free software on market Apr 05 19:59:44 makes people wanting to pay for a premium version very minimal Apr 05 19:59:53 damn race to the bottom economics Apr 05 19:59:53 anyone see http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=200739106754+ ? Apr 05 20:00:09 nice deal? Apr 05 20:00:11 pfn / g00s, maybe the app just sucks Apr 05 20:00:17 a lot of time i see shitty ios ports on android Apr 05 20:00:27 with half the features of the ios versions Apr 05 20:00:27 and devs bitching WHY DOES IT NOT SELL Apr 05 20:00:40 can you have a locationlistener listen for updates from both network and gps? Apr 05 20:00:44 jeppy, yes Apr 05 20:00:48 canadiancow|work: maybe, i thought his device logs were interesting though. maybe i should have just written off froyo and did targetSdk = 200 Apr 05 20:01:28 oh you're gonna make me read the whole thing Apr 05 20:01:38 One of the problems with a paid app... Apr 05 20:01:45 hehe, i pasted the relevant sentence :) Apr 05 20:01:53 ...is if you go by the Lean Startup ideas, which so many people do... Apr 05 20:02:09 over 40 percent of his sessions came from handsets running Android 4.0, despite Ice Cream Sandwich only accounting for 1.6 percent of devices as of a month or so ago Apr 05 20:02:10 dont buy it Apr 05 20:02:11 ...it takes months to write a premium app, and you have no idea how it will sell... Apr 05 20:02:27 40%? Apr 05 20:02:33 i have a geek app that only has 10% Apr 05 20:02:45 maybe CM9-themer has 40% on ics Apr 05 20:03:11 qicr is 20.8% 4.0.3 Apr 05 20:03:17 I have 13% ICS Apr 05 20:03:21 ...whereas with a free app you can do a "minimum viable product" in a week or two (or three, or four) and see whether the app is worth pursuing... Apr 05 20:03:29 and 3.68% 4.0 Apr 05 20:04:11 I almost have more 3.2 users than 2.2 Apr 05 20:04:27 but qicr's sample size is only ~1000 :-/ Apr 05 20:04:30 75% of my users use 1.5 Apr 05 20:04:36 13% vs 14.81% Apr 05 20:04:49 j/k thats a lie Apr 05 20:05:10 I have 29% ICS users on one of my apps Apr 05 20:05:41 Amphoras: just set minimum API level to maximum and have 100% ICS users Apr 05 20:06:15 alankila: could do yeah Apr 05 20:06:49 hi all Apr 05 20:06:59 Hah, think Google fixed some market console errors.. Few days ago 15% of my users were "Other" (even tho 2.1 - 4.0.3 all fit in the list above) Apr 05 20:07:02 Now it's 0.25% Apr 05 20:07:04 quest i had a emulator that had a red x by it and i deleted it but now i am not even able to create another how do i solve this error Apr 05 20:07:34 * pfn continues to wonder who publishes ddmlib and dx to maven Apr 05 20:08:37 http://code.google.com/p/android/issues/detail?id=4577 not google, apparently Apr 05 20:10:20 SimonVT: it will be broken again soon enough Apr 05 20:10:27 Oh, no doubt Apr 05 20:10:36 It's already failing consistently at loading my apps list Apr 05 20:22:14 How can I tell if my Activity was called by another activity that is waiting for a response, or if it was called by another means? Apr 05 20:22:57 ElevenSquared: you call startActivityForResult when you expect the called activity to return something and you handle the result in onActivityResult Apr 05 20:23:36 remember that in general activities are not "called", they're just started asynchronously Apr 05 20:23:57 QubeZ, I got that. How does the activity that you call know that something is expecting a result from it? Apr 05 20:24:08 i had a virtual device with a red x next to it that i deleted and now i cant make any new vds how can i fix this ? Apr 05 20:24:36 ElevenSquared: why not always provide a result? Apr 05 20:24:50 Maybe I'm thinkign about it the wrong way. Apr 05 20:24:55 how cooler can it be then having Froyo ? Apr 05 20:25:01 Basically, in my search activity, I need to know whether to return the search result, or pass the search result to the default activity that handles search results. Apr 05 20:25:34 pass different instructions in the Intent for the two cases Apr 05 20:26:05 i.e. have the caller say explicitly "i need a result btw" Apr 05 20:26:16 as opposed to trying to infer it in the callee Apr 05 20:26:16 nevermind that problem caused all my platforms to be wiped wow talk about another hour to load them all Apr 05 20:26:40 it is an interesting thing that ElevenSquared brought up... is there a flag that gets set if an activity starts with ForResult vs not? Apr 05 20:26:49 That makes sense. Thanks. Apr 05 20:27:05 I thought there would be, but maybe not. Apr 05 20:27:19 ElevenSquared: ya, that would make sense... maybe it will be implemented at some point Apr 05 20:27:34 meh ginger bread Apr 05 20:27:43 over 50 perent Apr 05 20:27:46 but Google did get back to me after 4 months about their Places API so, at least they're listening Apr 05 20:27:49 =) Apr 05 20:27:59 where the 4.00 version will be 50 procent please ? Apr 05 20:28:37 ElevenSquared: getCallingActivity() Apr 05 20:28:41 if it's null, they don't want a response Apr 05 20:28:49 if it's not, they do Apr 05 20:28:56 Awesome. Thanks. Apr 05 20:29:28 or you can go one stop further and use an extra Apr 05 20:29:36 then they can be explicit about it Apr 05 20:30:03 or just always act like they want a response since delivering a response to /dev/null doesn't hurt anything Apr 05 20:30:57 it sounds like you still need to know whether to launch another activity Apr 05 20:31:29 evancharlton: i still say it's better to make it part of the request semantics than to have the callee infer it Apr 05 20:31:46 ctate: depends on if you have callers in the field already or not :) Apr 05 20:32:04 oh sure if you're dealing with legacy code then ew Apr 05 20:32:23 if you're still designing it, i lean towards the explicit-request approach Apr 05 20:32:34 FWIW YMMV IANAL HTH HAND Apr 05 20:32:45 getBooleanExtra("wants_result", (getCallingActivity() != null)); <-- bam Apr 05 20:32:54 snap! Apr 05 20:33:25 noice Apr 05 20:34:15 If I have a FrameLayout covering a section of a layout, is there any simple way to listen for touch events which are _outside_ the FrameLayout? Apr 05 20:34:26 or you could make it a different action string altogether and certain other kinds of flexibility... there are many approaches! Apr 05 20:35:06 seanoshea: covering in what way? Apr 05 20:35:52 evancharlton … my FrameLayout is a child of an LinearLayout which contains a bunch of other views. When I show the FrameLayout, it covers some of the views of the parent LinearLayout, but not all of them Apr 05 20:36:32 evancharlton … so basically, I was wondering if there is an easy way of figuring out whether a touch event event happens _outside_ my framelayout Apr 05 20:36:48 because I'd like to close my FrameLayout if someone clicks outside of it Apr 05 20:36:57 four day week whoooooooooo Apr 05 20:37:26 Pretty sure there's still 7 days in a week Apr 05 20:37:46 most of the time Apr 05 20:44:51 can the emulator play youtube vids, got some sort of security error mentioning wake lock - do i need to add wakelock permissions or something Apr 05 20:54:08 gaz`: does the emulator come with youtube? Apr 05 20:54:25 evancharlton: afaik not Apr 05 20:55:31 gaz`: what's the exact message in the log when you tried to use a wakelock? Apr 05 20:55:52 ive added the wakelock permission now so its got past that Apr 05 20:55:55 * ctate | Any application using a WakeLock must request the android.permission.WAKE_LOCK permission in an element of the application's manifest. Apr 05 20:56:00 not really sureif should have, now hits a null pointer Apr 05 20:56:04 at the top of http://developer.android.com/reference/android/os/PowerManager.WakeLock.html Apr 05 20:56:14 cheers Apr 05 20:56:27 hits a null ptr on here String lVideoSchemeStr = lVideoIdUri.getScheme(); Apr 05 20:56:32 not to worry it works on device so should be ok.... Apr 05 20:56:58 so IVideoIdUri is null Apr 05 20:57:03 wherever that came from Apr 05 20:57:14 yeh thats weird, actually istole this class from : Apr 05 20:57:20 or is that an l instead of an I ? Apr 05 20:57:34 http://code.google.com/p/android-youtube-player/source/browse/trunk/OpenYouTubeActivity/src/com/keyes/youtube/OpenYouTubePlayerActivity.java?r=3 Apr 05 20:57:48 nah cause it works on device Apr 05 20:58:05 yeh it launches youtube app i gues si shouldnt use that as ppl might not have it Apr 05 20:58:45 gaz`: i edited the lib a bit because it was breaking for me Apr 05 20:58:53 thank god this app is almost done, got to do a few features and clean it up tomorrow then hopefully be done Apr 05 20:59:03 QubeZ ahh in what way did it break Apr 05 20:59:21 so I imported ABS and added it is a dependent project, but eclipse doesn't actually build the jar when I build it Apr 05 20:59:26 always tried to grab onto wifi for me -- i modified to not require that Apr 05 20:59:31 how useful Apr 05 20:59:42 aha could be doing that her eim on wifi constantly, not on 3g anymore Apr 05 21:00:00 you testing in emu? I never tried that -- just on devices Apr 05 21:00:10 i posted out in one of the comments, my jar Apr 05 21:00:31 yeh i decided to test everything on emu since client has mno real phone so thats what theyll see, emu needs wake_lock permission in manifest, then dies on that nul ptr above Apr 05 21:01:22 u got the new version anywhere QubeZ Apr 05 21:04:03 one major problem im having is that i have to load up some large maps (png) in the app and often it will crash with out of mem on nexus one Apr 05 21:04:21 back Apr 05 21:05:06 not really sure how to get aroudn that, added some GC() and kept the map static so its only loaded once but eery now and again if ive done lots in the app then go in it crashes with out of mem, bitmap grabbing to much ram basically Apr 05 21:05:30 gaz`: sec Apr 05 21:05:36 does anyone know why it is the jar or apk is only 'linked' when running the project in eclipse? Apr 05 21:07:02 gaz`: my jar is posted halfway down this thread; http://code.google.com/p/android-youtube-player/issues/detail?id=3&can=1 Apr 05 21:07:08 thanks Apr 05 21:07:35 OpenYouTubeActivity-1.2.jar Apr 05 21:07:36 ? Apr 05 21:08:21 ya or just download the java (next comment) into your already existing jar Apr 05 21:08:47 thats all I really edited, the OpenYouTubeActivity.java Apr 05 21:08:48 Aha Apr 05 21:08:49 awesome Apr 05 21:08:50 thanks Apr 05 21:08:58 I'd like to work on the project but the maintainer is m.i.a Apr 05 21:09:48 also do u know how to get it to launch the vid fullscreen Apr 05 21:09:53 with mine its got all the ifno below etc Apr 05 21:10:11 mine launches full screen.. landscape Apr 05 21:11:09 hmm i cant get it integrated into the code Apr 05 21:12:22 . Apr 05 21:16:08 is there an easy way in eclipse to determine the size of a botton in dp? Apr 05 21:17:14 QubeZ ah all this code is completely different to what im using really Apr 05 21:18:00 gaz`: try downloading the jar I attached instead and just import com.controlledsenility.android.youtube instead of the com.keyes... Apr 05 21:18:04 i guess i can integrate this then ur fixes Apr 05 21:18:10 ok Apr 05 21:18:23 anyone? Apr 05 21:20:13 john_doe_jr: what do you mean? If you set the button, you can set the size of it... so why do you need to determine the size? Apr 05 21:21:58 QubeZ: well, I can drop a button in a layout and then have it wrap_content but it doesn't show me the actual size of any button Apr 05 21:22:27 oh, brainfart Apr 05 21:23:10 QubeZ it works, but identically to code before Apr 05 21:23:14 so not fullscrene landscape et Apr 05 21:23:27 hmm, mine goes full screen Apr 05 21:23:57 wwonder how Apr 05 21:25:36 crashes on emu still too Apr 05 21:25:39 anyway im done for today Apr 05 21:25:55 Blech, hit Control-V to paste into Eclipse, hit Control-B instead, now doing a build all...I'll have to remove that shortcut... Apr 05 21:26:02 emu is a bad place to play youtube vids anyhow Apr 05 21:26:22 ah if i turn phone landscape it works Apr 05 21:26:29 i could force that in the xml i guess Apr 05 21:26:54 yeh QubeZ mostly for making a video of the app when im done Apr 05 21:27:18 gaz`: ya, in landscape it works fullscreen Apr 05 21:31:06 Ologn: Ctrl-V to paste in MS Communicator. Ctrl-Shift-V to start videochat. Apr 05 21:31:09 this is always a fun mistake Apr 05 21:31:28 android:screenOrientation="landscape" shoulddo it right Apr 05 21:31:34 make the activity always landscape i mean Apr 05 21:31:37 doesnt tho.. Apr 05 21:33:13 gaz`: .... whut? Apr 05 21:34:16 i mean in the amnifest if i add android:screenOrientation="landscape" - that should make that activity always landscape Apr 05 21:34:20 or do i need to add configchanges too Apr 05 21:34:33 hmm neither do it Apr 05 21:35:12 gaz`: for your youtube viewer activity you need to add configChanges="orientation" Apr 05 21:35:27 i think the library handles changes eleganty and thats why it says to do that Apr 05 21:36:32 hmm yeh has no effect here Apr 05 21:36:50 Apr 05 21:38:20 hi , quick question: when using minSdk=3 in android manifiest and compiling against 2.3.3 "target sdk = 9" what happnes to the higher API's when runninng on 1.5 ? Apr 05 21:38:46 They crash your app Apr 05 21:38:58 and if they are in the manifist ? Apr 05 21:39:00 natrix: i think lint will now warn you of this Apr 05 21:39:14 I'm getting an error on "super.onCreate(savedInstanceState);" randomly. It doesn't really point me anywhere though! Apr 05 21:39:32 Manifest, no issue Apr 05 21:39:33 when i say randomly i mean it doesn't always happen even following the same pattern to replicate it Apr 05 21:39:46 THANKS EVERYONE Apr 05 21:39:57 Fatal Exception Apr 05 21:40:11 afreq: logcat Apr 05 21:41:13 evancharlton: it's litterally a fatal exception that points to the line "super.onCreate(savedInstanceState);" in onCreate Apr 05 21:42:09 I have a service the first time I run it works fine. I close the VM I run a second time. The service starts but then sends system_proccess Signal (SIG) in my service (having more than 1 GB of free memory). What I can do?. THANKS Apr 05 21:42:26 afreq: literally, pastebin your stacktrace Apr 05 21:42:45 evancharlton: yeah two secs. just noticed: "java.lang.ArrayIndexOutOfBoundsException" Apr 05 21:43:06 evancharlton: or gtfo Apr 05 21:43:15 ping86: you mean you close the emulator? Apr 05 21:43:33 readme: yes Apr 05 21:43:48 ping86: when you say you have 1gb of free mem, do you mean your desktop has 1gb of free mem? Apr 05 21:43:58 or laptop, whatever Apr 05 21:44:04 No, in the emulator Apr 05 21:44:10 oh, that is odd Apr 05 21:44:30 afreq: always read your stacktraces ;) Apr 05 21:44:52 evancharlton: i still don't know what it is Apr 05 21:44:53 http://pastebin.com/7wjR67DX Apr 05 21:45:23 i put the word "REMOVED" in there to hide the app name. Apr 05 21:45:52 which i havn't Apr 05 21:46:10 com.f1.main.F1_12Activity.onCreate(REMOVEDActivity.java:16) Apr 05 21:46:18 whats on line 16 of F1_12Activity Apr 05 21:46:26 also lol @ removing the name Apr 05 21:47:01 afreq: You forgot to remove the name in the actual stack trace Apr 05 21:47:22 EVERYONE: I beat y'all to it Apr 05 21:47:49 afreq: lol at you Apr 05 21:47:55 afreq: haha i know i'm funny Apr 05 21:49:13 o.O Apr 05 21:49:16 I want to attach a setOnItemClickListener to a Spinner (or whatever is right) Apr 05 21:49:25 How can I pull out it's AdapterView to do that? Apr 05 21:49:33 The Spinner itself doesn't support it for some reason or the other. Apr 05 21:50:16 anyone? Apr 05 21:51:23 Or how can I react to a Spinner selecting a different item at all? Apr 05 21:51:26 ... vadi2 Apr 05 21:51:31 That's not how inheritance works Apr 05 21:51:40 Anyway, you want setOnItemSelectedListener Apr 05 21:51:53 why would "super.onCreate(savedInstanceState); " cause an out of bounds exception? Apr 05 21:51:54 I see Apr 05 21:52:22 afreq: wjat Apr 05 21:52:23 s Apr 05 21:52:31 SimonVT: Yeah now the bulb hit heh, okay Apr 05 21:52:40 err. what's the actual error stack crawl etc? including some logcat context before the actual stack dump. Apr 05 21:52:42 [17:52:22] <@ctate> afreq: wjat Apr 05 21:52:56 canadiancow|work: phear my mad fingerz Apr 05 21:53:01 err no Apr 05 21:53:07 it was more the "what" Apr 05 21:53:10 like "what" Apr 05 21:53:14 [17:47:49] afreq: lol at you Apr 05 21:53:30 wat Apr 05 21:53:38 afreq had beaten you all to the same punchline, only you seemed to have failed to grasp this Apr 05 21:53:44 like "and then with my other hand...." wat Apr 05 21:53:59 and was "ha ha i laugh at myself" quite reasonably i thought Apr 05 21:55:51 so whats with half the people here that i like using thier names as their nicks Apr 05 21:55:54 evancharlton JakeWharton_ Apr 05 21:56:00 SimonVT Apr 05 21:56:01 ctate Apr 05 21:56:10 i feel so left out Apr 05 21:56:12 michaelnovakjr Apr 05 21:56:22 haha Apr 05 21:56:49 You don't HAVE to be anonymous on the internet Apr 05 21:56:54 im not anonymous Apr 05 21:57:00 doenst mean i dont have a nick Apr 05 21:57:04 @ctate: ha yeah i laugh at myself! otherwise everyone else is extremely quick to laugh at me. If i laugh first it makes it awkward for them to laugh at me. But yeah things are normal before the crash! Apr 05 21:57:17 you're just calling yourself "canadiancow" instead of yoru real name "Oomogswoc" Apr 05 21:57:24 lol Apr 05 21:57:28 moO ? Apr 05 21:57:36 @ctate: I should say it happens when i hit power to "lock" then unlock Apr 05 21:57:40 http://www.youtube.com/watch?v=Y0cI7hxWwgU Apr 05 21:57:43 cows dont' have a terrific grasp of capitalization Apr 05 21:58:16 afreq: you could pastebin the error stack and your code [with the line numbers matching up] Apr 05 21:58:17 you dont' have a terrific grasp of where to use an apostrophe Apr 05 21:58:19 @cstate: i.e. so i am essentially testing the save state but nothing is going in there and nothing is being loaded from it. Apr 05 21:58:27 canadiancow|work: nor do you, apparently Apr 05 21:58:33 lol, cstate Apr 05 21:58:35 no "s" in "ctate" BTW Apr 05 21:58:45 c's tate Apr 05 21:58:54 lol? Apr 05 21:59:01 LOL Apr 05 21:59:05 had to read up Apr 05 21:59:10 ctate: i did mine intentionally Apr 05 21:59:15 oh cstate Apr 05 21:59:18 computer science tate Apr 05 21:59:26 it's less inaccurate than other variations Apr 05 21:59:29 @ctate: i know...my brain does it's own things. I can't pronounce some words properly for this same reason. Lazy brain. Apr 05 21:59:54 mmm, brains Apr 05 22:00:00 ctate: if I had a dime for every time someone spelled my first name "even" I'd be able to buy a hammer to beat them with Apr 05 22:00:09 ha ha Apr 05 22:00:18 i have a friend name John Cater Apr 05 22:00:22 even steven Apr 05 22:00:28 the recent movie "John Carter" has made his life a bit difficult Apr 05 22:00:31 with enough money left over to buy my way out of assault charges Apr 05 22:00:42 John Crater Apr 05 22:00:47 really can't pastebin any more cos there is nothing else to it. it's the generic line " super.onCreate(savedInstanceState); " Apr 05 22:00:55 afreq: Well, something is going wrong when it's trying to restore your fragments Apr 05 22:01:03 evencharlton, i think my tabcomplete is broken Apr 05 22:01:06 afreq: did you pastebin the stack crawl from the log? i missed you mentioning the URL if so... Apr 05 22:01:15 So you're probably doing strange stuff Apr 05 22:01:50 oh there it was Apr 05 22:01:58 ow, inside the compat lib Apr 05 22:03:14 SimonVT: hmm....weird stuff. I'm using actionbar (jake whatshisface version). first time i'm using fragments actually. two tabs each with a fragment. Apr 05 22:03:41 blargh, what the hell Apr 05 22:03:48 i thought this was fixed in gingerbread Apr 05 22:03:55 onActivityResult is being called before onStart Apr 05 22:05:22 SimonVT: i just checked. If i lock then unlock while on tab 1 no problems. but if i lock then unlock on tab two i get the crash so i guess there's something wrong in that fragment. just wish i could tell where. Apr 05 22:05:38 jasta: on what version? Apr 05 22:05:43 2.3.4 emulator Apr 05 22:05:49 Rather something wrong with the way you're managing them I'd guess Apr 05 22:07:25 SimonVT: I'm using the suggested way from the android site. I have a generic listener that both fragments create an instance of. Apr 05 22:07:55 This Fragment thing seems a bit "hacky" though. not my implementation just in general. Apr 05 22:08:45 jasta: is it returning a failure / cancel, or a successful result? Apr 05 22:08:50 ctate: i mean whatever, i worked around it with a simple handleStartRace() method but i was just surprised. i read somewhere that dianne fixed this. Apr 05 22:08:56 ctate: RESULT_OK is coming back Apr 05 22:08:59 hm ok Apr 05 22:09:02 yeah dunno Apr 05 22:09:06 possibly it was fixed after that Apr 05 22:09:08 * ctate shrugs. Apr 05 22:09:24 easily proven taht onActivityResult was called consistently before onStart, despite Dianne's assertion to the contrary Apr 05 22:09:54 I'm going for a "fresh air" break and when i get my i plan on pointing and swearing at my laptop. I wont get physical though. Apr 05 22:13:33 jasta: i saw that too, but on froyo Apr 05 22:14:47 it fucking makes things a mess when binding / unbinding to a service on onStart/onStop … you will get a result back, have to stuff it somewhere, wait for onStart to bind, and then when the serviceConnection gets finished pass the result to the service in my scenario, blargh, pile of crap Apr 05 22:17:31 g00s: yeah it's a very clumsy framework in practice. Apr 05 22:18:07 it's a great middleware library, but it doesn't go far enough to ease the final binding at a high level Apr 05 22:25:15 How long does a newly published app take to show up at play.google.com? Apr 05 22:25:29 And also in the Play Store on my phone? (Assuming the cache is cleared) Apr 05 22:25:45 can take an hor Apr 05 22:25:48 hour Apr 05 22:25:57 generally updates are visible in 5 minutes Apr 05 22:26:05 yes, you need a prostitute to publish apps Apr 05 22:26:12 best not f5 the whole time and go do something else Apr 05 22:26:15 it'll show up Apr 05 22:26:42 Ok, cool. Apr 05 22:26:45 Thanks. Apr 05 22:26:46 its taken like 15 minus for me generally Apr 05 22:26:50 minutes Apr 05 22:36:33 SimonVT: could it have something to do with not using "setRetainInstance" on the fragments? Apr 05 22:38:31 Wouldn't imagine so Apr 05 22:40:29 anybody know any common reasons why my app won't load on my phone any longer? Apr 05 22:41:47 Brian125: your phone just got tired of your app Apr 05 22:42:52 anyhow, try uninstalling it, and then try again Apr 05 22:42:56 SimonVT: do you think it's in my tab listener which handles the attaching and detaching of tabs? Apr 05 22:45:16 No idea Apr 05 22:45:54 Brian125: A total eclipse of the heart Apr 05 22:46:48 tried that g00s :( Apr 05 22:47:34 Brian125: do adb kill-server or whatever it is Apr 05 22:47:46 shut down eclips first Apr 05 22:47:53 reinstall your OS Apr 05 22:47:55 buy a new computer Apr 05 22:56:42 would anyone know why using ThreadPoolExecutor with LinkedBlockingQueue and coreSize=0 on android 1.6 not allow any threads to start? Apr 05 22:58:27 it works on 4.0.4 Apr 05 22:59:20 1.6? yikes Apr 05 22:59:27 that's so three years ago :( Apr 05 22:59:34 also. 0.7% of hte active installed base Apr 05 23:00:35 is the android market eventually going to allow for carrier filters for multiple apk support? Apr 05 23:00:35 it's for a library, otherwise I'd care less about 1.6 :P Apr 05 23:09:49 if it's for a library you should care even less! Apr 05 23:12:44 lov: sadly, libraries require even more compatibility :( Apr 05 23:20:30 only if you care enough to provide it Apr 05 23:20:47 feel free to say "sorry guys, we're just going to support API 5 and above from now on, here's the old version if you need it" Apr 05 23:21:01 I mean at some point it just gets painful and API 4 is, what, 0.5% of the devices now? Apr 05 23:22:27 lov: true Apr 05 23:22:47 i only so 2.0+ Apr 05 23:22:50 *do Apr 05 23:23:03 1.5 and 1.6 are only 1% Apr 05 23:23:16 yeah 1.5 was never really useful ever Apr 05 23:26:35 http://www.androidpolice.com/2012/04/04/redditor-creates-mock-up-of-facebook-for-ics-we-can-only-drool/ Apr 05 23:29:50 Did Ice Cream sandwich change anything regarding how a ListView handles touches? Apr 05 23:30:08 I'm testing on some 4.0 devices and noticing that for some reason taps don't register until I scroll the list. Apr 05 23:31:23 compared to what older version? Apr 05 23:31:27 2.3.3 Apr 05 23:32:06 so i think i'm going to say screw our < 2.3 users who will have 4 idle threads at all time and 2.3+ will use http://developer.android.com/reference/java/util/concurrent/ThreadPoolExecutor.html#allowCoreThreadTimeOut(boolean) :D Apr 05 23:32:50 Fallout2man: are you seeing it in the built-in apps, or just in yours? Apr 05 23:33:47 ctate: just mine, I hadn't really tested the built-in apps because I had to use a third party service (Perfecto Mobile) to test, since our company isn't big on buying actual hardware to use. Apr 05 23:34:05 ow Apr 05 23:35:23 Fallout2man: how do you like the Perfecto service ? Apr 05 23:35:58 g00s: It's okay, but it really sucks at handling any touch actions beyond simple taps. If I had to do anything with gestures I'd be screwed. I even have trouble releasing the lock screen on some devices. Apr 05 23:36:09 i'm in a situation where i may do contract work for a company, and i can't afford a bunch of phones to test. i need to work out how we are going to test things, service, buying hardware, who pays for it, etc Apr 05 23:36:24 ok, thats good to know Apr 05 23:36:57 g00s: But yeah, other than that it's pretty helpful. We use it for Android and Blackberry testing. Apr 05 23:37:15 isn't there one called apkudo or something Apr 05 23:37:27 yeah, thats it Apr 05 23:38:00 does anyone have experience doing video encoding/decoding on Android using OpenMAX IL on snapdragon chipsets? Apr 05 23:38:28 So if I'm developing for API layer 10, and want to restrict which menuitems are visible under certain circumstances. HOwever, I can't seem to change what's available except in onCreateMenu(). What are my options? Apr 05 23:38:52 onPrepareOptionsMenu Apr 05 23:38:52 cant you do soething like red/menu-v10 or something Apr 05 23:39:20 SimonVT: Ah. Right. Missed that, sorry. Thanks. Apr 05 23:39:29 g00s: Thanks for that info, Apkudo looks interesting. Might be a good way to automate testing. Apr 05 23:39:31 Fallout2man: does your app do dataset changes often, or something? Apr 05 23:39:40 taps are handled at somewhat deferred priority Apr 05 23:39:44 apkudo says they have every android device ever released Apr 05 23:39:45 That could be a real boon, although wouldn't replace Perfecto for "spot testing" of individual issues. Apr 05 23:39:48 That's a lot of devices Apr 05 23:39:52 and if a dataset comes along when there's a pending tap, that tap is *discarded* Apr 05 23:40:04 because it is probably going to tap the wrong thing now, becasue the dataset has changed Apr 05 23:40:13 ctate: I have a SQLite database that feeds a cursor which feeds the listview, the data only gets modified on download which is a very infrequent thing. Apr 05 23:40:36 i'd say dig hard into the exact timing & behavior of the adapter and the tap handling and so on Apr 05 23:40:41 interesting Apr 05 23:40:48 If you want to take a look it's on the App store. Priority Pass Apr 05 23:41:31 It has a Search screen with a list view, tapping each list item changes the query and launches a new activity with the same ListView fed by a different cursor with the new query. Apr 05 23:42:30 So you'll go from country -> airport -> lounge -> Lounge Details. Apr 05 23:42:40 With the last one being a separate type of activity. Apr 05 23:42:57 Anyhow, will check into the cursor, thanks! :) Apr 06 00:04:15 shit, the asset studio integration for the adt is hard coded to put icons in res/ Apr 06 00:04:44 damn it, there goes my plan to have res/drawable-* copied from my art directory Apr 06 00:06:33 Never tried it Apr 06 00:09:45 g00s, you can't make it go to bin/res? Apr 06 00:09:56 not the asset studio Apr 06 00:10:21 you cant really make it go to anything. it just assumes res/ Apr 06 00:12:35 If I set my gridview to wrap content, then I changed the amount of content in the gridview, would it cause my program to crash? Apr 06 00:12:59 readme, you here? Apr 06 00:13:14 Zacharias3690: That seems pretty easy to test Apr 06 00:13:30 lol tdub readmes are not people Apr 06 00:13:36 SimonVT: well I can't find where my error is coming from, and I'm not sure if that's it or not Apr 06 00:13:54 He helped me with my application. Apr 06 00:13:55 I'll post the error I get Apr 06 00:14:51 http://pastie.org/3736104 Apr 06 00:15:07 NullPointer Apr 06 00:15:25 Idk why I said that everyone can read. Apr 06 00:17:38 Blergh, ArrayAdapter Apr 06 00:18:29 should I use cursorAdapter instead? Apr 06 00:18:35 Google the error. I've seen it before, just never stayed around for the solution since, well, arrayadapter.. :p Apr 06 00:18:46 That really depends on if your data is a cursor Apr 06 00:19:11 well I get my data from cursors, just seemed like a lot of set up for cursoradapter when arrayadapter should do what I need it to Apr 06 00:19:45 btw, what should I google? just fatal nullpointerexception arrayadapter? Apr 06 00:20:08 NullPointerException and "at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:394)" I'd guess Apr 06 00:20:21 But yeah, I'd use a cursoradapter.. But that's just me Apr 06 00:20:48 SimonVT: are there something wrong with ArrayAdapters? Apr 06 00:24:01 I would only use it if the row is nothing more than a single TextView Apr 06 00:25:12 is it a hassle to use it if it's more complicated stuff? Apr 06 00:27:54 It basically offers no benefit with more complicated stuff, since you'll have to override getView.. The whole point of ArrayAdapter Apr 06 00:28:22 And it takes a minimum amount of effort to just extend BaseAdapter instead Apr 06 00:29:18 I saw using BaseAdapter as adding things other than text in Apr 06 00:31:50 ok, good to know Apr 06 01:02:03 How badly do people rage over long names of things? Like variables/ids/files Apr 06 01:02:28 the don't Apr 06 01:02:31 *they Apr 06 01:02:42 i mean, i guess somebody does, but a decent IDE will do completion for you Apr 06 01:02:47 plus, y'know, learn to type :) Apr 06 01:03:23 Well I just wanted to share my variable. Apr 06 01:03:26 lol Apr 06 01:03:31 I'm the type of person who doesn't care about length Apr 06 01:03:39 thisIsOneLongVariableName; Apr 06 01:03:46 I will describe the variable completetly, as were other people will just do x, y Apr 06 01:03:49 For example R.id.SetAsRingtoneDialog_b_DeleteNotification Apr 06 01:04:11 lawl ;O Apr 06 01:04:14 Makes it super easy to find though Apr 06 01:04:18 well, you've picked quite a verbose naming convention in your layouts Apr 06 01:04:24 lol Apr 06 01:04:36 SetAsRingtoneDialog is the class, b is the type of view (button_ and deletenotification is the actual name of it Apr 06 01:04:50 would anyone happen to know where i can get vectored images of the android version logos? Apr 06 01:04:52 I'd rage over the capital letters and lack of _ :p Apr 06 01:05:00 Lol Apr 06 01:05:10 rage! Apr 06 01:05:13 I make variables like shouldIBeShuttingDown Apr 06 01:05:14 CamelCase > underscores. Apr 06 01:05:16 Stuff like that Apr 06 01:05:23 Mainly becaue underscores arnt' eas easy to write. Apr 06 01:05:26 Or well, yeah, that's right Apr 06 01:05:29 ids are camel case Apr 06 01:05:42 T-Dub|DlolPics: I rage less about long names (I'm using Common Lisp, ffs), but CamelCase is fugly, and Java is overly verbose in *grammar* Apr 06 01:05:49 I usually do camelCase, but I did underscores so I can easily see it's a button/textview/imageview Apr 06 01:06:11 Haha I love camelCase :P Apr 06 01:06:21 I usually stay away from underscores Apr 06 01:06:30 I recently started naming private slots with _ in front, so when I use IDE to generate all the accessor crap I get something that looks sane Apr 06 01:06:43 Lol Apr 06 01:07:11 Oh, but p_l, any decent IDE like intellij wont include the m in getters/setters ;p Apr 06 01:07:28 what SimonVT said :)) Apr 06 01:07:45 SimonVT: actually, I'm using IntelliJ, and thus getting set_var and get_var Apr 06 01:07:49 :) Apr 06 01:08:02 Alt-Ins, "Setters and Getters" Apr 06 01:08:10 ;O Apr 06 01:08:25 IntelliJ 11.1 Apr 06 01:08:31 set_var()? Apr 06 01:08:32 gah Apr 06 01:08:43 What romainguy said :p Apr 06 01:08:47 romainguy: CamelCase doesn't scan well for me Apr 06 01:08:49 p_l: you can configure IntelliJ to tell it what prefix you want Apr 06 01:08:52 romainguy: is there an offical page with android version logo's to download? the branding guide doesnt have thetm Apr 06 01:08:55 *them Apr 06 01:09:05 and it will automatically add it or ignore it depending Apr 06 01:09:22 Napalm: no clue Apr 06 01:09:31 :( Apr 06 01:09:34 romainguy: good to know Apr 06 01:10:33 When an activity pauses, do all variable values save? Apr 06 01:10:46 Unless you finish() or memory is needed and onStop is called? Apr 06 01:12:06 being paused doesn't affect memory Apr 06 01:12:08 I think Pause just means your activity's handler loop isn't called Apr 06 01:12:19 it's just a notification that the OS is considering your activity to be in a new state Apr 06 01:14:30 Gotcha Apr 06 01:14:33 Thanks Apr 06 01:17:09 i just man an offical request to the google press office, lets home I can get them Apr 06 01:19:27 hi Apr 06 01:19:44 I'm having problems getting an android to work in ADB in a windows guest Linux host. Apr 06 01:19:49 can anyone help me? Apr 06 01:22:32 I would love to however not only do I not know, but I don't even know what you just said. Apr 06 01:23:18 funny when the ios guys think i am listening to music and cant hear them talking Apr 06 01:23:53 they are talking about how awesome ios 5 is with the notification center that they stole from android (in their own words) Apr 06 01:24:07 but that its ok cause its apple and it is so well implemented Apr 06 01:24:33 lol Apr 06 01:24:57 * p_l has studio monitor kind of headphones... switch off the music and you hear the outside *very* well Apr 06 01:25:17 matt just said "everything is derivative except when google does it" Apr 06 01:25:40 p_l: actually my playlist just ended Apr 06 01:25:55 AdamOutler: if you can run adb from your host execute: adb tcpip 5555 and, now in your windows guest execute adb connect phone.ip:5555 Apr 06 01:26:41 napalm i need USB connectivity. Apr 06 01:26:55 AdamOutler: then that depends on your VM Apr 06 01:27:06 Windows keeps giving a code 10 Apr 06 01:32:00 Hi guys, help me please - where I can download Russian documentation for Android SDK &Eclipse? Apr 06 01:32:27 I have http://pastebin.com/B8EdV5FH . The goal is to have new items show up on the displayed map without having to remove and add a new overlay. It's not possible with .update(); Googled and got little; any ideas here? Apr 06 01:34:09 p_l: studio monitor phones tend to have very good isolation Apr 06 01:34:17 *open* cans don't, of course Apr 06 01:34:17 a Apr 06 01:34:18 nd Apr 06 01:34:19 Apr 06 01:34:29 and DJ cans have like -30dB isolation Apr 06 01:35:11 hi all Apr 06 01:35:22 anyone familiar with 2.3.3 Widget development?? Apr 06 01:35:22 p_l: i use a pair of http://www.audio-technica.com/cms/headphones/7c784888146c212e/index.html at work Apr 06 01:35:48 I have been trying since past 3 weeks.I am not able to get the widget running. Apr 06 01:36:00 Followed tutorials from Android Dev,Vogella and newBouston Apr 06 01:36:11 posted in StackOverflow,XDA but no replies :( Apr 06 01:36:22 ctate: the thing is... mine get super-isolating the moment I put *anything* on Apr 06 01:36:27 Earlier I could'nt fix the NO LAUNCHER ACTIVITY problem. Apr 06 01:36:45 I fixed that.But now,after the configure activity,the main widget is not called Apr 06 01:36:45 that is, anything I play on them easily drowns outside at even very low volume Apr 06 01:36:51 (of course, there are better ones) Apr 06 01:37:06 DJ headphones are also ear protective devices ;) Apr 06 01:37:19 somebody help? Apr 06 01:37:24 * p_l had used a pair once Apr 06 01:38:08 any widget developer? Apr 06 01:38:25 Please send pm, who know where can get Russian documentation for developer kits Apr 06 01:39:27 Anyone knows why my widget doesnt come up after configuring? Apr 06 01:44:56 hello? Apr 06 01:45:17 we are not mind readers Apr 06 01:45:37 so my guess is no Apr 06 01:45:53 I will upload you my code? Apr 06 01:46:52 or someone has an example widget for 2.3.3 ? Apr 06 01:46:58 ibraleksey, there is no russian documentation Apr 06 01:47:07 Yes I did google, examples are available for 1.5 and 1.6 SDK only Apr 06 01:47:48 pfn - and not have translated versions? Apr 06 01:47:52 2.3.3 is still compatible with 1.5 and 1.6 apps Apr 06 01:48:01 I can read minds and I know exactly what he wants. Apr 06 01:48:22 He wants food and carnal pleasure. Apr 06 01:48:22 dil33pm, if you want help keep it public Apr 06 01:48:38 okay Apr 06 01:49:07 http://www.sendspace.com/file/1dpdjz Apr 06 01:49:12 thats my code. zipped Apr 06 01:49:18 I use these headphones http://wanderson75.net/wp-content/uploads/2011/07/X41_and_transmitter.jpg Apr 06 01:49:32 please someone check it Apr 06 01:49:38 I cant find anything on debug too. Apr 06 01:50:02 I know nothing about widgets sorry dil33pm Apr 06 01:50:20 I can tell the lot of you don't have jobs. How can I tell? Because you'd actually unzip some amateur's source project to look for a bug. Apr 06 01:50:34 I have a job Apr 06 01:50:35 :D Apr 06 01:50:45 Programming jobs. Apr 06 01:50:46 No, I have spent more than weeks behind tutorials Apr 06 01:50:57 Oh, no I'm a Test Tech Apr 06 01:51:01 it angers me that apple/google/amazon arent working with kickstarter to help developers give away their game to backers. Apr 06 01:51:02 and I did try to improvise on myself Apr 06 01:51:03 I can imagine it'd be exciting to look at some amateur's project if your daytime job was flipping burgers or cleaning bathrooms. Apr 06 01:51:06 why the fuck doesnt google get on that? Apr 06 01:51:17 but none worked Apr 06 01:51:24 they could garner so much good will and get so many people excited about android apps/games Apr 06 01:51:25 so i tried the exact code as in tutorials Apr 06 01:51:30 and even that dint work too!!! Apr 06 01:51:41 If that's the case you probably have a stupid error Apr 06 01:51:45 Like you are importing R.java Apr 06 01:51:49 Or some crazy shit like that Apr 06 01:51:50 no Apr 06 01:51:54 first time it was about Apr 06 01:51:59 No launcher activity Apr 06 01:52:01 It was an example, not a specific one. Apr 06 01:52:04 the app will only sync with the phone Apr 06 01:52:06 ya Apr 06 01:52:16 I fixed that error with a configure activity Apr 06 01:52:28 bt now,after configuring the widget, it doesnt Apr 06 01:52:36 bring up the AppWidgetProvider class Apr 06 01:52:43 the widget just closes up. Apr 06 01:52:50 *closes down Apr 06 01:53:17 am just trying to print a random number into textview in widget Apr 06 01:53:24 but the widget ain't running Apr 06 01:53:43 pragma you should be helping the starters. Apr 06 01:54:31 does anyone have the twitter accounts of googlers who work on the android team? Apr 06 01:54:39 its not that am too lazy to not to try by myself. I have put my effort. no forums are replying and stackoverflow Apr 06 01:54:59 doesnt gave the proper reply too Apr 06 01:55:14 I'm even newer to android then you, but my suggestion is to do two things. First don't give away your full source code (not because people will steel it, but because people don't want to go through it all) just pastebin the portion you are having problems with, and or ask StackOverflow.com Apr 06 01:55:33 svchost: why? Apr 06 01:55:51 steal* Apr 06 01:55:57 T-Dub am making a widget with just a textview and put a random no to it ... Apr 06 01:56:07 so its basically simple and less code Apr 06 01:56:12 i want to ask them to add a feature to allow developers to give their app away to select people thru the store, or at least work with kickstarter to allow them to do that Apr 06 01:56:23 they are missing a golden opportunity Apr 06 01:56:24 svchost: Twitter is not the place to do this Apr 06 01:56:28 i cant believe how stupid they are Apr 06 01:56:31 it amazes me Apr 06 01:56:39 how a company could be so blind Apr 06 01:56:46 to what is going on around them Apr 06 01:56:46 I learned something today :) Apr 06 01:56:47 Once again, people are more willing to view a link (pastebin) then to download a zip, unzip it, import it to eclipse/notepad/IDE, then look at every class even if it just one class/layout Apr 06 01:56:53 romainguy: do you work for google? Apr 06 01:57:00 svchost: I do Apr 06 01:57:08 but not on Play Apr 06 01:57:26 i just dont understand what your company is doing, romainguy Apr 06 01:57:48 they are working on making self driving cars, but they dont have time to add a feature that allows devs to give away apps to people without giving it for free to anyone? Apr 06 01:58:00 it seems like not a hard feature to add Apr 06 01:58:01 lol Apr 06 01:58:06 svchost: you are talking about different teams Apr 06 01:58:11 what if its a problem regarding the path or so? Apr 06 01:58:19 thats why i uploaded the whole zip Apr 06 01:58:38 thats not relevent romainguy, im not blaming you Apr 06 01:58:39 Is Messenger an efficient means for sending messages to a client a hundred times a second, or is there a more efficient means? LocalBroadcastManager, perhaps? Or is that less efficient? Apr 06 01:58:43 im blaming your company. Apr 06 01:58:48 Should I go NDK and set up a memory mapped file? Apr 06 01:59:03 svchost: I understand, and self driving cars are indeed not relevant :) Apr 06 01:59:07 can you give me a phone number, romainguy? i feel like this feature needs to be escalated.. its a GLARING flaw.. Apr 06 01:59:07 Where by "client" I mean serivce --> app Apr 06 01:59:08 pragma`: I think you might want to go with AIDL for that. Apr 06 01:59:17 svchost: http://b.android.com Apr 06 01:59:22 vadi2: As I understand it, AIDL and Messenger are essentially the same thing. Apr 06 01:59:29 i just dont believe they read that or care about it Apr 06 01:59:42 AIDL is just more explicit Apr 06 01:59:56 i want to make a personal pitch to the head of the android and/or google play team, lol Apr 06 02:00:08 That is, messenger implicitly uses AIDL Apr 06 02:01:01 they are missing a golden opportunity.. look at this shadowrun kickstarter.. its made 500k so far.. they couldve had the option to give away shadowrun on android, and taken a cut of the profits from it.. but since they dont have a way to do that, they are giving away PC only Apr 06 02:01:07 pragma`: Hm, could be. I use Messenger myself, and I'm happy with it's performance - but I haven't benchmarked it. In logs though it's prettty instantaneous Apr 06 02:01:21 Yeah, seems okay for me so far too. Apr 06 02:01:32 you know how many people would have kickstarters for android apps if they added that feature, romainguy? Apr 06 02:01:34 http://pastebin.com/tQLPnmfc Apr 06 02:01:38 the development interest would skyrocket Apr 06 02:01:40 here is my code. Apr 06 02:01:55 I think I still might go ahead and benchmark LocalBroadcasts and the other options. Apr 06 02:02:03 yea do something for starters... Apr 06 02:02:03 theyd have thousands more quality mobile apps.. they are foolish.. idk if they just dont realize it Apr 06 02:02:08 or if they are intentionally not doing it Apr 06 02:02:33 Google makes 500k every 17 seconds. Apr 06 02:02:33 http://code.google.com/p/android/issues/detail?id=2432&q=kickstarter&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars Apr 06 02:02:39 2009 and it still has not been addressed Apr 06 02:02:41 thats INSANE Apr 06 02:02:57 svchost: There are bigger issues that haven't been addressed in years. Apr 06 02:02:59 yeah, pragma`, if their app store were better than apples (its not, its shit compared to apples) they might crush apple even harder Apr 06 02:03:02 they just dont care to do better Apr 06 02:03:04 thats googles issue Apr 06 02:03:08 they just dont care to beat apple Apr 06 02:03:17 no there arent pragma Apr 06 02:03:26 that is the single biggest issue that plagues android at the moment Apr 06 02:03:36 * pragma` votes svchost for Google CEO. Apr 06 02:03:52 i cant think of a single issue that is more important.. name it.. Apr 06 02:04:00 bugs dont count Apr 06 02:06:09 svchost: so, you think Google doesn't have anything more important to do than to compete with Apple? Apr 06 02:07:10 Izhido: i dont think ANDROID has anything more important Apr 06 02:07:13 than to compete with apple Apr 06 02:07:21 this would be a game changer Apr 06 02:07:22 im telling you Apr 06 02:07:25 this would tip the scales Apr 06 02:07:42 it would revolutionize the android market and get developers excited about it Apr 06 02:07:46 Most of us who use android aren't really aware of Apple's existence. Apr 06 02:07:50 if they dont do it, amazon is probably going to eventually Apr 06 02:07:54 thats a load of crap pragma Apr 06 02:07:59 Not sure why you have such a boner for Apple. Apr 06 02:08:14 last time I looked, Android had more marketshare than Apple... Apr 06 02:08:29 android is 50%+ of the smartphone market, and you think most of those people dont know about the iphone? you are smoking the hardest crack ive ever seen in my life if you think thats true Apr 06 02:08:41 i dont.. i want google to crush apple Apr 06 02:08:59 Google has already assassinated Steve Jobs, what more do you want? Apr 06 02:09:01 A-HA! Apr 06 02:09:06 android does NOT have more app-store marketshare Apr 06 02:09:13 apple has more apps, and developers make more money Apr 06 02:09:14 so it all comes to this: you *want Apr 06 02:09:17 way more Apr 06 02:09:22 10 times more Apr 06 02:09:23 * Google to do something about Apple Apr 06 02:09:37 i want google to wise up Apr 06 02:09:41 wake up and smell the damn coffee Apr 06 02:09:55 Google has too much cocaine up its nose to smell much of anything anymore. Apr 06 02:09:59 IMO, Google is doing just fine as it is right now Apr 06 02:10:17 okay, you fucktard, lets just let google be complacent Apr 06 02:10:19 brilliant god damn idea Apr 06 02:10:27 svchost: keep it polite please Apr 06 02:10:28 instead of improving themselves and revolutionizing their shit Apr 06 02:10:29 Angry midget. Apr 06 02:10:36 let them just stagnate and die Apr 06 02:10:41 pragma`: that goes for you too :) Apr 06 02:10:44 google.. the next IBM Apr 06 02:10:45 awesome Apr 06 02:11:12 or even worse Apr 06 02:11:14 svchost: you have stock in Google? Apr 06 02:11:18 google.. the next yahoo Apr 06 02:11:22 i dont own any stock at all Apr 06 02:11:28 I still use Yahoo mail. Apr 06 02:11:31 in fact, i only have 2000 bucks in my 401k Apr 06 02:11:48 How to work SharedPreferences across processed properly? I'm committing in one, but the data that's coming up in another is stale Apr 06 02:11:53 *processes Apr 06 02:12:00 then, you must hate Apple with passion, don't you? Apr 06 02:12:05 vadi2: it doesn't work across processes, as documented Apr 06 02:12:26 Yeah except it sort of does until it tricks you like this. What to do now Apr 06 02:12:29 i admire apple for their innovation.. but i hate them for their policies Apr 06 02:12:37 vadi2: it's officially not supported Apr 06 02:12:39 their anti-consumer bullshit is why i hate apple Apr 06 02:12:51 something similar happens to me with Nintendo Apr 06 02:12:53 So don't be a consumer of apple products. Apr 06 02:12:54 What's the next best solution? It was pretty convenient to work with. Apr 06 02:12:57 Yay American freedom. Apr 06 02:13:03 im not a consumer of apple products Apr 06 02:13:09 vadi2: a content provider Apr 06 02:13:10 but i want google to dominate and have a superior app store Apr 06 02:13:13 Or, when does it commit? I could send the data back and forth using Messenger Apr 06 02:13:18 google has a VASTLY inferior app store Apr 06 02:13:23 But I'd like to check it from SharedPrefs at start and such Apr 06 02:13:26 they have maybe 20% as many good games Apr 06 02:13:28 I'm cursed, however, with the fact that I simply loooove Nintendo hardware Apr 06 02:13:34 and they could have twice as many good games as apple Apr 06 02:13:44 if they just did this kinda stuff Apr 06 02:14:30 svchost: well, from gaming perspective, other than file size and lack of "download on PC, install on phone", the store isn't that important. Apr 06 02:14:47 ? Apr 06 02:14:54 romainguy: is a contentprovider not overkill for a client<->service relationship? Apr 06 02:14:57 It's more the fact that Android, compared with iOS, is an eldritch creature like Shoggoth Apr 06 02:15:04 at least to many a desktop developer Apr 06 02:15:13 vadi2: if you already have a service why not use the service then? Apr 06 02:15:13 people want to get their games from the google store, get updates from the google store and have their 'purchase' saved on the google store Apr 06 02:15:29 romainguy: well I am! But I need the client to access the data in the service? Apr 06 02:15:37 whereas iOS applications are just simple, straightforward, OSX apps Apr 06 02:15:49 vadi2: just add methods to your service that the client can call? Apr 06 02:16:03 right now its IMPOSSIBLE to do that for stuff like the humble bundle, or for kickstarters Apr 06 02:16:10 or even just people wanting to give away their apps Apr 06 02:16:29 google could just make that feature and they'd be leaps and bounds ahead of apple Apr 06 02:16:34 I guess I can. I was going the way of service updating data & storing it in shared prefs, and the client a) reading from sharedprefs on start, and b) updating from sharedprefs when the service prompts it Apr 06 02:16:46 android could become synonymous with quality apps and games Apr 06 02:17:03 I'll translate everything to request data from the service then and that ought to work Apr 06 02:17:29 vadi2: yeah, because I want my phone thrashing the sdcard/internal sdcard while I'm using your app. Apr 06 02:17:53 svchost: given how some companies write code... I doubt that Apr 06 02:18:01 pragma`: Heh, what do you suggest Apr 06 02:18:31 yes, the promo codes etc. are important, but those actually mainly impact corporate purchases Apr 06 02:19:05 vadi2: I thought you said you were using Messengers Apr 06 02:19:29 Yeah, I am, though the data needs to be stored permanently anyway. Apr 06 02:19:43 So Messengers were just used to prompt the client to update from the sharedprefs data. Apr 06 02:20:09 just save the data onPause, and use messengers to send the data to the client Apr 06 02:20:35 use the sharedprefs in onpause/onresume/oncreate, and use messengers while the app is running Apr 06 02:21:47 I use the obj Object to pass a class containing my data, seems to work, and is probably more efficient than Bundles Apr 06 02:23:23 Hm, I've been using the shared prefs as my data structure to begin with, not to replicate things. I'll see if just committing it on the events will be enough. Apr 06 02:24:02 well, in my case, I'm doing communication about a hundred times a second Apr 06 02:24:39 (at worst case) Apr 06 02:27:45 Ah well, back to work Apr 06 02:41:12 Anyone here use ProgressBars? Apr 06 02:41:47 sure Apr 06 02:41:57 at least two and a half people do Apr 06 02:42:19 how do you use it? Apr 06 02:42:30 I assumed you create it, place it were you want, then on start you set the alpha to 0 Apr 06 02:42:43 Then when you want to "do loading" before the actual code you set the alpha to 255 Apr 06 02:42:48 and at the finish you set it back to 0 Apr 06 02:42:53 I did this, my app crashed. Apr 06 02:42:54 :| Apr 06 02:42:56 there's such a thing as setVisible Apr 06 02:43:01 Ah Apr 06 02:43:08 Does it take the range 0-255? Apr 06 02:43:13 Or is it true/false Apr 06 02:43:33 I like pork. Apr 06 02:46:34 And I dislike ItemizedOverlays that don't show new items on their map under .populate(). Apr 06 02:46:50 Hmm Apr 06 02:48:00 i'm trying to have a class somehow return a static array of Strings. I can do it with a loose String, but not an array. Any ideas how to do this? like MyClass.listOfStrings returns { "bla", "bla2" } Apr 06 02:49:11 xorgate: You mean you want to return a String[]? Apr 06 02:49:22 yeh but it's a constant Apr 06 02:49:31 xorgate: That does not change its type. Apr 06 02:49:35 so another class might ask what's inside that constant Apr 06 02:50:46 so i have a class which defines 2 classes inside it, A and B. I want A to ask B what the array is Apr 06 02:51:03 and this array never changes Apr 06 02:51:16 maybe i'm going at it wrong Apr 06 02:52:26 bah Apr 06 02:53:30 batos Apr 06 02:53:56 how much longer before ics is released for s2 damnit.. Apr 06 02:56:30 I especially like how kies updates nearly everytime I start it though :P Apr 06 02:59:19 kies is a pos **** ENDING LOGGING AT Fri Apr 06 03:00:00 2012