**** BEGIN LOGGING AT Sun Feb 19 02:59:58 2012 Feb 19 03:01:46 who is david campbell Feb 19 03:01:48 anyone in here? Feb 19 03:02:20 wot Feb 19 03:03:03 nope, just you and the bots, canadiancow|work Feb 19 03:03:09 * SeligArkin botglare Feb 19 03:03:13 bots Feb 19 03:03:15 you're a bot Feb 19 03:03:24 Lies! I passes the turning test! Feb 19 03:03:31 See watch ~spins in a circle~ Feb 19 03:03:45 * SeligArkin gets dizzy and falls down Feb 19 03:03:54 See, I passed! Feb 19 03:04:47 Sorry, still a bit hyper. <.< Feb 19 03:07:51 turning...sigh Feb 19 03:09:20 Did I just make someone, er... turn in their grave? Feb 19 03:09:41 turing? Feb 19 03:10:36 i dont know if he actually thinks it's "turning" Feb 19 03:10:46 or if he's just trying to make stupid jokes Feb 19 03:25:03 Trying to find a good way to get a path to a temporary file I can pass to an IMAGE_CAPTURE intent for passing the image from the camera app to my app. The image won't actually be saved - I just want it once to send it over a network. I am currently using File.createTempFile but that just appears to create temporary files on the SD card root - are those every cleaned? I assume not, how would it know which are temporary files? Feb 19 03:25:30 Can I use internal storage somehow even though the camera application will be writing the file? Feb 19 03:26:24 Maybe I'm supposed to use Context.getDir() with MODE_WORLD_WRITABLE? Feb 19 03:26:49 ever*, not every :P Feb 19 03:33:03 i cant watch US tv anymore Feb 19 03:33:10 im so jealous of your fast food prices Feb 19 03:36:16 I just did the Notepad3 tutorial, and for some reason res/layout/note_edit.xml now shows an error. the problem is that layout_height and width don't seem to allow strings like "match_parent". Feb 19 03:36:27 what the fuck Feb 19 03:36:30 my tv's screensaver just came on Feb 19 03:36:35 I did not change this though, I just followed the tutorial faithfully, what could be wrong? Feb 19 03:36:37 i was fucking in the middle of watching Feb 19 03:36:57 it was trying to tell you to get off your arse and do something more useful Feb 19 03:37:44 Syzygy: match_parent was added in API 8, are you compiling against lower than that? Feb 19 03:37:52 so the important question is, do I get a a Note or an SII to replace my stolen GNex? Or do I wait for a bit, learn to love my ancient Magic again, and see what comes post-MWC? Feb 19 03:38:01 possibly, one second Feb 19 03:38:20 7... upgraded to 10 now, problem remains Feb 19 03:38:59 (and I "can't" go higher than 10) Feb 19 03:39:11 Is it only with match_parent or will fill_parent cause the same problem? Feb 19 03:39:27 or wrap_content, too Feb 19 03:39:36 I just changed a character, saved, changed it back and saved again. now it works. Feb 19 03:39:45 so eclipse just didn't update the error message. Feb 19 03:39:45 Does anyone know if its possible to get logcat output line by line? Feb 19 03:40:08 logcat | less? Feb 19 03:40:12 Ahh, cool. I love that error! Feb 19 03:40:46 Yeah, I have my reasons to dislike eclipse :/ Feb 19 03:41:49 Meh, it gets the job done… sometimes. I have just learned that when something really weird is happening to try restarting eclipse first. Feb 19 03:42:51 yeah, that's a good idea. Feb 19 03:43:15 Once I spend 2 hours debugging to find that eclipse wouldn't update the classfiles... Feb 19 03:44:14 so can anyone here recommend some good phone to consider if I wish to play around with custom kernel options and the like. err, a most compatible device as it were Feb 19 03:44:15 ? Feb 19 03:45:57 yeah, i've run into that same thing. You aren't alone. Feb 19 04:10:19 Oh man. Feb 19 04:10:26 Jake's ViewPageIndicator stuff is so hot. Feb 19 04:10:46 Just threw the CirclePageIndicator into a project I'm working on. Feb 19 04:33:13 Hello people. I use in my xml file to include another xml layout. Even though I am able to see the contents of it in the 'graphical layout' tab of Eclipse, when the app runs I see nothing at all. Feb 19 04:41:55 * pfn kicks getjar for being broken Feb 19 04:43:02 pfn: have you done anything with calculon? Feb 19 04:48:13 shemazle Feb 19 04:48:30 i just want log output to go to a stringbuilder one line at a time Feb 19 04:56:02 URGENT PROBLEM Feb 19 04:56:11 abd.exe makes my system sttuer Feb 19 04:56:13 stutter* Feb 19 04:56:19 ra4king: http://www.postsbuzz.com/wp-content/uploads/2012/02/Poor-Guy.gif Feb 19 04:56:32 pragma_: hahahaha i saw that before, hilarious XD Feb 19 04:57:03 well anyway, im on Windows 7 x64, and this problem seems to have just started today Feb 19 04:57:08 michaelnovakjr, never heard of it Feb 19 04:57:22 my mouse begins stuttering and any music i played stutters badly Feb 19 04:57:37 https://github.com/kaeppler/calculon Feb 19 04:57:38 that? Feb 19 04:57:51 ive pinpointed it to adb.exe because when i start eclipse, the stuttering begins, when i force close adb.exe the stuttering stops Feb 19 05:00:22 Anyone in here able to help me with java? Need to know how to go about this for my app, I am using this unzip class: http://pastebin.com/HbwugZZf and basically my app currently atm is a file browser and I'm trying to make it so when the user clicks on a .zip the file proceeds to unzip, however I'm not sure how to go about it. Thanks. Feb 19 05:01:11 PaulForde: and what exactly is wrong with your code? Feb 19 05:02:02 ra4king: well nothing that I know off,I just need to implement a way upon click that a file unzips, sorry for being stupid here but my java / android dev knowledge is quite limited Feb 19 05:02:25 ok so are you asking us to review your code? Feb 19 05:03:05 ra4king: asking if there is a way to detect when a user clicks on a .zip file it called that unzip class Feb 19 05:03:26 if(fileName.endsWith(".zip")) unzipit() Feb 19 05:03:42 thanks! Feb 19 05:03:54 heh Feb 19 05:04:45 so any help with my problem? Feb 19 05:04:51 adb.exe makes my system stutter Feb 19 05:04:57 anyone has ever heard of this problem? Feb 19 05:05:19 i can't use eclipse or i have to disable it until something is fixed Feb 19 05:06:17 ra4king: filename cannot be resolved =) ? Feb 19 05:06:41 replace that with the variable you use for the file name? Feb 19 05:06:52 derp, thanks again Feb 19 05:07:09 * ra4king facepalms and laughs :) Feb 19 05:07:29 thanks, I am usually the one helping the noobs :> Feb 19 05:07:38 but man, java is killing me here Feb 19 05:10:46 J2: oh hai Feb 19 05:11:03 hello Feb 19 05:17:15 ohai Feb 19 05:25:16 i have an imageview, i set its layout params to say 50,50. these values are being completly ignored...any idea why this might happen? Feb 19 05:28:52 Jug6ernaut: android doesn't like you Feb 19 05:29:00 i know that lol Feb 19 05:32:18 eclipse doesn't like you either Feb 19 06:01:09 ehllo Feb 19 06:01:23 i downloaded eclipse-for-java-DEV Feb 19 06:01:53 so i start programming in java and later ADK-SDK will automatically convert to apk ? Feb 19 06:11:13 yes Feb 19 06:15:09 no Feb 19 06:19:51 mo Feb 19 06:19:56 whjat do U do Feb 19 06:20:04 how do u program Feb 19 06:20:10 programming Feb 19 06:20:18 android apps games Feb 19 06:59:29 how can i make the text on a canvas.drawtext() be bold? Feb 19 06:59:38 Paint doesnt seem to have any options.. Feb 19 07:20:44 xorgate: get a bold font Feb 19 08:12:15 I am trying to manipulate some images to be smaller for use in animationdrawable since there was a memory error (trying to allocate more memory than allowed). Now when I run my code the picture gets kinda red in the simulator, anybody know why? My code: https://gist.github.com/1862570 Feb 19 08:33:07 i'm using proguard and google api's (tasks api) and getting all kinds of warnings Feb 19 08:33:21 i disable the warnings then export signed version works fine but i cannot sync with gtasks Feb 19 08:33:24 wtf Feb 19 09:10:25 where can i get android api source code? normally i look into the code while i am working on a libraray. for normal java development i use maven, which does the job of downloading source for me Feb 19 09:24:42 dealing with proguard and googleapi's is driving me nuts Feb 19 09:24:46 anyone have experience? Feb 19 09:24:55 i use the Tasks API but I can't export a signed ver of my app Feb 19 09:25:11 are you experienced? Feb 19 09:25:19 no Feb 19 09:39:23 i'm starting an activity for ACTION_VIEW with "geo:blabla". How can i check if anything will respond ? Feb 19 09:39:53 I think if nothing responds, you'll get an exception Feb 19 09:40:13 I'm actually catching ActivityNotFoundError (I think, need to look it up) in the emulator since it has no maps Feb 19 09:40:32 hmm i'll check that in the emu Feb 19 09:44:03 ActivityNotFoundException Feb 19 09:49:27 but my app kinda needs maps already to function at all Feb 19 09:49:33 cause i use the MapView Feb 19 09:49:51 well, there's maps the application and there's the google maps API Feb 19 09:52:48 iivvoo yeh but i need to start an emu that has the google apis Feb 19 10:06:19 iivvoo i solved it i think.. you have the isIntentAvailable from on d.android.com, and you check if the action_view with Uri.parse("geo:0,0") is available Feb 19 11:22:21 Hi, I often see code snippets where people have a member for the LayoutInflater, why would you want to do that (storing it in a member) and using that instead of just calling View.inflate() directly? I just read the article about View recycling and wondered why you'd keep a reference to the inflater. Feb 19 11:26:32 hello! Feb 19 11:27:19 hey guys Feb 19 11:27:29 i'm using api 8, but when i try to override onBackPressed the following error is displayed by eclipse: "onBackPressed cannot be resolved to a type" Feb 19 11:27:30 I started yesterday to learn android developement Feb 19 11:27:57 chris_cross: sounds like some kind of syntax error, it thinks that's a class name Feb 19 11:29:18 The method setOnClockListener(View.OnClickListener) is undefined for the type Button Feb 19 11:29:33 why can't I set an onclicklistener for a button? Feb 19 11:29:49 hm, i'm quite sure there is no syntax error Feb 19 11:30:09 Samwan: Because you're spelling it clock. Feb 19 11:30:30 what do you mean? Feb 19 11:30:41 setonCLOCKlistener Feb 19 11:30:43 u wrote Feb 19 11:30:48 fuck :D Feb 19 11:30:55 thanks Feb 19 11:30:58 I am an idiot Feb 19 11:31:02 an you must create a new onClickListener Feb 19 11:31:20 sorry, I started to learn that yesterday, now I feel quite a bit stupid Feb 19 11:31:21 :( Feb 19 11:31:35 don't worry Feb 19 11:32:23 public void onBackPressed(){ Feb 19 11:32:23 return; Feb 19 11:32:23 } Feb 19 11:33:19 that's the code, but where is the mistake? Feb 19 11:33:53 chris_cross: What does the compiler say? Feb 19 11:34:04 public void onBackPressed(){ Feb 19 11:34:04 return; Feb 19 11:34:04 } Feb 19 11:34:08 oh sorry Feb 19 11:34:19 also my next question is, where in the documentation can I find a list of methods to manipulate the XML Gui inside the Java Code? Feb 19 11:34:20 it says public void onBackPressed(){ Feb 19 11:34:21 return; Feb 19 11:34:21 } Feb 19 11:34:25 fuck Feb 19 11:34:26 something like a settext method Feb 19 11:34:40 onBackPressed cannot be resolved to a type Feb 19 11:34:40 sorry to ask so many questions Feb 19 11:34:44 Samwan: http://developer.android.com/reference/android/widget/TextView.html , with the rest of the documentation. Feb 19 11:35:10 chris_cross: dont directly paste code here, use a online paste tool like pastebin.com Feb 19 11:36:04 Estragon: i know, just thought it was ok for the few lines Feb 19 11:36:38 chris_cross: onBackPressed cannot be resolved to a type is more likely a syntax error Feb 19 11:37:01 pastebin your entire class ? Feb 19 11:37:12 ok, one moment Feb 19 11:38:30 http://pastebin.com/UiuUF5Hd Feb 19 11:39:26 chris_cross: your on back pressed is already on another method Feb 19 11:39:38 ?? Feb 19 11:39:39 it should be outside of onCreate Feb 19 11:39:49 :D Feb 19 11:39:51 ok ^^ Feb 19 11:40:05 ooouuuhhhh ^^ Feb 19 11:40:34 that hurts :D Feb 19 11:40:47 thanks alot Feb 19 11:48:45 what's CG version? Feb 19 12:01:29 Anyone tried this? http://www.innaworks.com/alchemo-for-android-java-me-j2me-to-android-porting/ Feb 19 12:03:53 Or this? http://www.metismo.com/crosscompiler.html Feb 19 12:05:48 Guys, I have app in which user can pick some photo from gallery or card. I need to save this choice into db? What should I store? Feb 19 12:05:54 url to image? Feb 19 12:15:04 Trudko: url, or a copy of the whole image. I suppose either will work. Feb 19 12:15:17 seems like url is good enough Feb 19 12:28:32 Hi Feb 19 12:29:27 I need a python reference for Android Feb 19 12:53:07 i have 2 apps using MapView. I have registered a release key for 1, do i need to register one for 2 also? Or can i just reuse Feb 19 13:13:31 hi guys! I've decided to use a WebView for certain elements in my app to share code with my website. any good docs on this? I want to enable 2-way communication, enable some sort of security so that not all app devs can just integrate this code in their apps and so on Feb 19 13:14:34 I figure I have to download the HTML first and integrate the WebView by passing the HTML as a string to it to enable 2-way communication Feb 19 13:14:44 that's the easy part Feb 19 13:15:03 I'm thinking more about how to prevent anyone from just creating a WebView in their app pointing to my server Feb 19 13:17:09 can i test somehow runtime if code is run on android ? Feb 19 13:17:37 I have a shared library where I'd like to use android.util.Log when it's run on android Feb 19 13:22:58 aolin could you rephrase that Feb 19 13:28:50 xorgate: I have a library which I use in web backend and android app. I'd like to use android.util.Log within that lib when ever it's run on Android Feb 19 13:29:19 is it possible without complex factory patterns ? Feb 19 13:31:27 aolin: that's what reflection is for Feb 19 13:56:54 Uh, probably it's better to ask here. I'm finding some troubles wen trying to use android annotations with MapActivity: I get a ClassNotFound exception, even though the file is generated in gen/, and everying works fine with a simple Activity. Someone with previous experience on that? Feb 19 14:05:19 please help is there any application through which i can view apk details like version etc, i dont want to rename apk to rar and then extract and again repack it Feb 19 14:07:54 hmm... apks are rars? Feb 19 14:08:51 jennie: look for something to parse the androidmanifest.xml Feb 19 14:08:59 I believe there is a tool for this in the sdk Feb 19 14:09:21 please tell me its name or any download link ? Feb 19 14:10:01 jennie: http://code.google.com/p/android-apktool/ Feb 19 14:10:07 (after a short google search) Feb 19 14:10:40 hi all Feb 19 14:11:00 can i use jax-ws lib in android ? Feb 19 14:11:11 and code generated with wsimport Feb 19 14:13:02 no one here ? Feb 19 14:13:04 :) Feb 19 14:13:11 thanks Estragon Feb 19 14:13:15 .ping Feb 19 14:13:37 No answer usually means noone knows Feb 19 14:14:01 maybe Feb 19 14:19:48 can i use jax-ws client code generateed with wsimport into android ? Feb 19 14:20:12 Xgamerz: why don't you try it and report back how it goes Feb 19 14:20:19 or see if the classes required by wsimport-generated crap exist Feb 19 14:20:39 afaik it doesn't work, or I see people trying to use things like ksoap2 on android Feb 19 14:20:47 alankila: i need just confirmation Feb 19 14:20:52 work or not Feb 19 14:21:17 if some one already tested Feb 19 14:21:19 last three times I encountered this awesomeness that is SOAP, I just fell back to constructing soap messages manually as strings and then using generic DocumentBuilder with namespaces enabled to parse it Feb 19 14:21:41 I tried ksoap2 once but was unable to convince it to generate functional soap messages Feb 19 14:22:12 emmm Feb 19 14:25:34 it seems that the consensus on the internet is that jax-ws is not supported. Feb 19 14:27:18 jax is xml parser? Feb 19 14:28:37 yes alankila :) Feb 19 14:29:06 jax is more like framework for dealing with xml on java Feb 19 14:29:19 it's pretty nice if xml is your thing Feb 19 14:29:28 or am I confusing it with jaxb now Feb 19 14:29:39 maybe they are the same project/thing Feb 19 15:04:44 hi, my service doesn't always receive a config changed event when I slide open the hard keyboard, what could cause this? Feb 19 15:19:34 is there any way to use my computer's internet on the phone through the USB? some app? Feb 19 15:20:42 like the opposite of tethering? Feb 19 15:22:10 if i want to change the color of a shape i probably have to build the full shape in java, right? Feb 19 15:24:24 i think you could apply some sort of filter but i don't really know how that works Feb 19 15:24:38 colour filter that is Feb 19 15:29:33 mh porterduff Feb 19 15:57:18 is there any way for the javascript in a webview to know it's actually being included in a webview? Feb 19 16:01:52 I have no idea why the socket would not connect...tried it out in a java standard program which works fine. http://pastebin.com/hH5DHMD5 Feb 19 16:08:29 are there known issues with notifyDataSetChanged() not being called on a SimpleCursorTreeAdapter on certain versions of android? Feb 19 16:09:20 it works on cyanogenmod, works on sgs2, fails on nexus1 Feb 19 16:17:37 the view is not updated despite calling notifyChange() on the content URI... :/ Feb 19 16:31:00 I guess nobody hear had a similar problem before? Feb 19 16:34:28 then it must be some corner case in my impl Feb 19 16:35:28 i m trying to call dotnet webservice SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); in this ligne i get java.net.SocketException: Permission denied Feb 19 16:39:36 Xgamerz: have internet permission? Feb 19 16:39:49 Xgamerz: add internet permission to your manifest Feb 19 16:39:51 i m trying to add it into maisfes Feb 19 16:39:53 fie Feb 19 16:40:05 file* Feb 19 16:40:11 thanks Feb 19 16:42:50 still same prob Feb 19 16:44:53 Hi all...My company use 802.1x Wireless on WPA2-Enterprise with PEAP MSChapV2 and I'm trying to connect our company's Samsung Galaxy Tab (on Android 2.1) to the Wireless Enterprise APs but I can't the Galaxy Tab to connect the Wireless AP. I always get this: COnnecting --> Authenticating --> (and immediately) Disconnected. This happens to all 30x Galaxy Tab. Why is this happening? Feb 19 16:45:06 http://pastebin.com/TiM6VXjp Feb 19 16:45:20 can anyone help me see why 802.1x PEAP fail please? Feb 19 16:45:35 WPA: Failed to get master session key from EAPOL state machines Feb 19 16:45:44 WPA: Key handshake aborted Feb 19 16:45:48 so any idea guys? Feb 19 16:51:33 so any idea guys? Feb 19 17:06:18 How can I make the soft keyboard appear automatically on a view (with a text field focused) Feb 19 17:19:04 Hello, i have a question related to obtaining android source code, am i in the right place? Feb 19 17:19:27 N1tr0g3n just ask Feb 19 17:19:35 you will be pointed in the right direction if its not Feb 19 17:20:28 ok, building Android requires JDK, I am on a Linux system, and i want to know if the build will be successful if i use openJDK instead of Sun's JDK Feb 19 17:21:02 android 4.x rejects builds with openjdk Feb 19 17:21:11 theoretically it should Feb 19 17:21:19 but I've only ever used suns Feb 19 17:21:37 Ok then, I'll guess I'll install Sun's JDK Feb 19 17:21:40 thank you Feb 19 17:27:07 Anyone using xmlvm? Feb 19 17:27:21 (www.xmlvm.org) Feb 19 17:27:52 Claims to be able to convert your bytecode into iphone source.... Feb 19 17:30:32 "catch java.net.SocketException: The operation timed out" when i call HttpTransportSE Feb 19 17:30:37 any idea ? Feb 19 17:30:44 androidHttpTransport.call(SOAP_ACTION, envelope); Feb 19 17:33:19 how are contentprovider changes notified, internally? Feb 19 17:40:19 hi guys. I want to place parts of my app in a WebView that resides at my remote website. while this works, how do I prevent anyone from creating a WebView in their apps and (mis)use my code? Feb 19 17:46:35 since when do governments work on sundays Feb 19 17:51:36 canadiancow: go back to canada Feb 19 17:52:46 ? Feb 19 18:11:57 does style get inherited to child views in xml? Feb 19 18:12:16 nope Feb 19 18:12:49 oh ok, ic, never noticed that edittexts have plain white background Feb 19 18:16:59 hmmm i need more storage =\ Feb 19 18:17:09 how much are hdd's these days Feb 19 18:17:20 its cheap! Feb 19 18:17:34 unless you are looking at solid state drives Feb 19 18:17:41 nah Feb 19 18:17:48 i currnetly have two 500GB's in RAID0 Feb 19 18:17:56 so i need at least 2x1TB Feb 19 18:18:25 wow, are you caching the internet or smt? Feb 19 18:18:28 considering a 2TB is 20% more than a 1TB... Feb 19 18:18:34 something like that Feb 19 18:18:45 guess ic ould just delete stuff too :P Feb 19 18:18:55 lol ye, i was gonna say :P Feb 19 18:19:08 im using an old sony vaoi for everything, dev, music, net Feb 19 18:19:12 never had a capacity issue Feb 19 18:19:23 just rubberband -delete :) Feb 19 18:19:29 this is mostly tv shows and movies Feb 19 18:20:21 i just stream all that Feb 19 18:20:34 mind u, movies are getting harder to find Feb 19 18:22:51 random, nodaddy.com resolves to locahost Feb 19 18:59:37 any reason why a view would ignore its layoutparams? Feb 19 19:03:51 http://www.zdnet.com/blog/mobile-news/android-tablets-are-doomed-without-a-single-os-version/6860 Feb 19 19:05:11 good article Feb 19 19:05:25 made my stomach hurt laughing at the author Feb 19 19:06:18 i'm starting to think the old adage for teachers needs to be applied to mainstream tech blogging. "Those who can, do. Those who can't, blog." Feb 19 19:06:36 don't android tablets already have a single os version.. ? Feb 19 19:06:54 haha JakeWharton Feb 19 19:06:55 So true Feb 19 19:07:03 i also liked the part where he described the android market as 'surviving' Feb 19 19:07:29 JakeWharton, no, people who can't teach P.E. blog -_- Feb 19 19:08:35 hi guys Feb 19 19:08:44 I was editing my layout/main.xml Feb 19 19:08:50 inside the wysiwyg editor Feb 19 19:09:00 now I am inside the code editor Feb 19 19:09:05 how can I switch back Feb 19 19:09:21 tabs at the bottom Feb 19 19:09:34 oh thanks Feb 19 19:09:41 unless your monitor is upside-down. then they're at the top Feb 19 19:09:43 sorry I started yesterday with that things :) Feb 19 19:10:02 would be awesome if I would be that guy of "familyguy" Feb 19 19:10:07 you know who I mean? :D Feb 19 19:10:10 unless you're a bat hanging from the ceiling with an upside-down monitor. then they're at the bottom Feb 19 19:10:13 JakeWharton: Did I fuck up, or did icons disappear in the actionbar on ICS with the 4.0 branch? Feb 19 19:10:55 not sure. been away since Friday with family stuff. Feb 19 19:10:58 just getting back into it now Feb 19 19:11:03 Alright :) Feb 19 19:11:04 freaking emails overflowing in my inbox Feb 19 19:11:06 * Samwan reads the documenation about how to make a grid layout Feb 19 19:11:23 haha Feb 19 19:11:33 Take a week of radio silence Feb 19 19:11:39 Is there ever a Non-Camera Version of Android Phone? Feb 19 19:11:50 probably Feb 19 19:12:01 but mostly, no Feb 19 19:12:13 how many tablets have cameras? Feb 19 19:12:28 ReGiStRaS, it's part of the compatibility paper afaik Feb 19 19:12:37 so there are no devices without cameras that have Google Market Feb 19 19:12:38 all the ones that matter do Feb 19 19:12:59 but you could probably find a device without one in the bowels of China with some kind of chinese market Feb 19 19:13:03 cameras on phones are useless Feb 19 19:13:08 (and with luck your family will buy those) Feb 19 19:13:49 gross over-generalizations like that are useless Feb 19 19:14:12 ReGiStRaS, what you really need to watch out for is devices without autofocus cameras Feb 19 19:14:29 for some reason Market filters apps that need camera on those devices unless you specifically state you don't need autofocus Feb 19 19:14:40 i stopped reading when i read "fragmentation problem" Feb 19 19:15:16 That's when I started reading. Feb 19 19:15:28 My job doesn't allow me to carry camera phones :( Feb 19 19:15:48 that's a problem then :\ Feb 19 19:18:01 well i do think that article has a point. if only most of phones and tablets got ICS upgrade soon and rest would be recycled... Feb 19 19:18:34 * Samwan thinks it would be nice, if we could style the XML gui via CSS Feb 19 19:18:39 i think majority still have 2.x Feb 19 19:18:44 SimonVT, does it happen on the samples? Feb 19 19:19:01 JavaScript & CSS for fancy-effects and design within android apps :> Feb 19 19:19:22 JakeWharton: I have no idea, I just did a git pull earlier and they disappeared. Haven't had time to check it out Feb 19 19:19:26 I can do that tho Feb 19 19:19:30 miha, there's practically no 4.0 devices (except for the G. Nexus and two or three tablets) out there Feb 19 19:19:36 if you pulled, you'll need a new support-lib plugin Feb 19 19:19:57 any reason why a view would ignore its layoutparams? Feb 19 19:20:23 SimonVT, if you have maven, just run 'mvn clean package' in the root and it'll be in plugins/support-lib/target Feb 19 19:20:47 everything pulls from central now so no manual setup is required for maven compilation Feb 19 19:20:57 I also copied over the updates support lib classes Feb 19 19:22:05 I think I figured out a way to depend on the binary support-lib Feb 19 19:22:08 that's my goal today Feb 19 19:23:37 Yeah, I saw Feb 19 19:23:40 That would be nice Feb 19 19:24:09 A lot less issues with new users Feb 19 19:24:22 definitely Feb 19 19:25:03 my only worry is that it would require extending from a SherlockFragment and if you're using a third-party lib that has its own class that extends directly from Fragment Feb 19 19:26:02 Mehh, there's no issue in the samples Feb 19 19:26:20 I'll see if I can reproduce Feb 19 19:33:36 hey folks, quick question. I have this one app that just acts as a countdown but eventually I want to have a widget and livewallpaper version (it's for a personal project) Feb 19 19:33:48 can I include both of these under one APK or do I have to do a seperate app of eacH? Feb 19 19:34:08 basically have app/widget/wallpaper all in one package? Feb 19 19:34:48 they can all be one Feb 19 19:34:54 JakeWharton: It fails when the menu icon is defined like this in xml: android:icon="?attr/actionItemIcon" Feb 19 19:35:24 JakeWharton: thanks man! so I guess then that all I got to do is put them into the manifest and they all come along for the ride? Feb 19 19:35:36 precisely Feb 19 19:38:00 hi, I have lots of experience with PHP and JAVASCRIPT , how hard for me will be to make an android app ? Feb 19 19:39:30 lots hard Feb 19 19:41:21 VictorCL: see a book about Java, such as http://www.mindview.net/Books/TIJ/ Feb 19 19:41:58 the development of iphone and android .. differs too much? Feb 19 19:42:06 is a complete different language .. or are both java ? Feb 19 19:42:32 VictorCL: you might want a 3rd party tool Feb 19 19:42:35 or IDE Feb 19 19:42:40 depending on what you want ti make Feb 19 19:42:48 they are much more like your current skill set Feb 19 19:42:54 and they do work on ios/android Feb 19 19:42:54 TheBunny: adobe air? Feb 19 19:43:09 no idea about the state of that Feb 19 19:43:22 me neither, but seen pc apps that use it Feb 19 19:43:29 http://www.anscamobile.com/corona/ Feb 19 19:43:29 ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); Feb 19 19:43:34 is a popular one Feb 19 19:43:34 always returns null for me ^_^ Feb 19 19:43:42 there severeal good ones for games also Feb 19 19:43:46 ANdi``, permissions? Feb 19 19:44:12 and then there is Feb 19 19:44:12 android.permission.ACCESS_NETWORK_STATE Feb 19 19:44:13 http://phonegap.com/ Feb 19 19:44:23 android.permission.INTERNET Feb 19 19:44:26 whihc is more geared towards web etc Feb 19 19:44:49 I was ask to make this app .. a client wants to make a site like app where people can log in and see some book routes of a city .. and can buy these things ... Feb 19 19:44:51 otherwise you need to learn java for android and ObjC for ios... Feb 19 19:45:14 or in the case of games most people use C/C++ engines that sit under those 2 languages Feb 19 19:45:23 but your really not at that skill level Feb 19 19:51:50 what's a large ldpi phone? Feb 19 19:51:51 er Feb 19 19:51:54 large hdpi* Feb 19 19:53:12 no ideas why getSystemService(Context.CONNECTIVITY_SERVICE) returns null ? Feb 19 19:54:21 hmmm doesn't look like there are any.. http://developer.android.com/resources/dashboard/screens.html Feb 19 19:54:28 i thought the original Galaxy Tab was large hdpi Feb 19 19:56:25 https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-snc7/427354_10150616567218360_290539813359_8908022_1865551768_n.jpg Feb 19 19:56:27 hmm, whis devices are "large" anyway? Galaxy Note? Feb 19 19:56:38 do you think in the near future , most app will be able to be done just in html5 ? Feb 19 19:56:44 or is it a good idea to learn java? Feb 19 19:57:05 define near Feb 19 19:57:10 define most apps Feb 19 19:57:19 define "your problem with java" Feb 19 19:57:34 :/ Feb 19 19:57:39 JakeWharton: Wasn't that a mistake? galaxy tab reporting itself as large hdpi Feb 19 19:57:57 define: flaucinaucinihilipification Feb 19 19:57:59 SimonVT: it was feature, since 2.x dont support anything larger? Feb 19 19:58:08 Yes it was a mistake Feb 19 19:58:21 it's actually an MDPI device but it pulls HDPI assets Feb 19 19:58:39 JakeWharton: wasnt it problem of screen resolution? Feb 19 19:58:43 mistake or deliberate by Samsung devs? Feb 19 20:01:03 the device is 1024x600 across 7" Feb 19 20:01:10 by my math that's 170dpi horizontally Feb 19 20:01:27 and 169 vertically Feb 19 20:01:56 mdpi: Medium-density (on traditional HVGA) screens; approximately 160dpi. Feb 19 20:01:56 hdpi: High-density screens; approximately 240dpi. Feb 19 20:03:16 You'd think they would have fixed that tbh Feb 19 20:03:27 JakeWharton: How 1024 across 7" is 170 dpi? Feb 19 20:03:55 it's diagonal Feb 19 20:04:03 JakeWharton: i thought it was because xlarge wasnt supported in 2.x? Feb 19 20:04:04 well, you use the pythagorean theorem to get the width and height of the screen in inches based on the ratio of the resolution (which assumes square pixels) Feb 19 20:04:11 but the DPI is given in vertical and horizontal Feb 19 20:04:13 xlarge screens are at least 960dp x 720dp Feb 19 20:04:13 large screens are at least 640dp x 480dp Feb 19 20:04:41 then you just divide the appropriate number of pixels along that side by the number of inches Feb 19 20:05:08 miha: It isn't xlarge tho Feb 19 20:05:13 SimonVT: hm Feb 19 20:05:13 which gives you ~170dpi on the long edge and ~169dpi on the short edge Feb 19 20:05:15 It's large Feb 19 20:05:25 xlarge was added in api 9 Feb 19 20:05:32 *8 Feb 19 20:05:44 * miha noob :) Feb 19 20:05:59 hey Feb 19 20:06:28 God damn old tablets :p Feb 19 20:06:32 seriously Feb 19 20:06:38 or phablets Feb 19 20:07:50 yeah... making 2.x tablets should be a criminal offense -_- Feb 19 20:07:53 alright kindle fire and nook touch are large-mdpi, old galaxy tab is large-hdpi Feb 19 20:07:58 anything else I should account for pre-3.0? Feb 19 20:08:25 archos Feb 19 20:08:34 i had a 101, it sucked Feb 19 20:08:40 Lenovo A1? Feb 19 20:08:41 they got plenty of 2.x tablets Feb 19 20:08:55 i know there's plenty, but most aren't worth accounting for Feb 19 20:09:01 anyone have experience with Google Tasks API and Proguard? I'm getting all kinds of reference errors and I've looked through so much stackoverflow help and proguard doc i.e. added the -includejars for my classes being used, used the Google help site to add the exceptions into Proguard but still I cannot export a signed version of my app while Tasks API libs are being used. Feb 19 20:09:08 they can deal with scaled or phone-sized resources Feb 19 20:09:19 Mavrik: not opensourcing 3.x was dirty Feb 19 20:09:41 yeah, but people are still churning out low-end 2.x tablets Feb 19 20:09:53 not open sourcing 3.x was smart Feb 19 20:10:01 and I've noticed that people around here are actually buying them because of dirt-cheap prices Feb 19 20:10:08 i don't want an OS written for a 10" xhdpi screen on phones Feb 19 20:10:24 i'm very happy with my...low end 3.2 tablet Feb 19 20:10:59 JakeWharton, are people that mod their ROMs so significant that you have to care about them? Feb 19 20:12:18 i care about everyone Feb 19 20:12:26 especially the people who are wrong Feb 19 20:12:52 We can't have people that are wrong on the internets. Feb 19 20:13:06 no one knows you're a dog Feb 19 20:13:10 on the Internets Feb 19 20:13:17 Duty calls! http://xkcd.com/386/ Feb 19 20:13:33 lul Feb 19 20:13:45 [15:07:53] alright kindle fire and nook touch are large-mdpi, old galaxy tab is large-hdpi Feb 19 20:13:47 no Feb 19 20:13:48 * Mavrik hides his Desire with ICS. Feb 19 20:13:51 the original galaxy tab was mdpi Feb 19 20:13:57 but its build.prop said it was hdpi Feb 19 20:14:12 i'm speaking in terms of the resource filtering Feb 19 20:14:18 ok Feb 19 20:14:20 [15:10:08] i don't want an OS written for a 10" xhdpi screen on phones Feb 19 20:14:20 which I assume references the defined DPI Feb 19 20:14:24 there are no 10" xhdpi o.O Feb 19 20:14:33 too bad Feb 19 20:14:38 2500x1500 Feb 19 20:14:43 * JakeWharton drools Feb 19 20:14:50 my phone is 160dpi Feb 19 20:14:54 interesting aspect ratio Feb 19 20:15:02 320x480 Feb 19 20:15:11 JakeWharton, do you know how much battery that would use :S Feb 19 20:15:21 it'd be worth it Feb 19 20:15:25 like...galaxy nexus is bad enough Feb 19 20:15:25 no Feb 19 20:15:25 not that much probably Feb 19 20:15:26 it isnt Feb 19 20:15:32 @JakeWharton, I got the dpi maths. that was easy. thx. :) Feb 19 20:15:36 screen is always ~70% of my battery drain on my gnex Feb 19 20:15:40 most battery use comes from backlight not the LCD itself Feb 19 20:15:51 give me a fucking phone that can last 16 hours with my usage Feb 19 20:15:53 well, unless you put those silly OLEDs on it Feb 19 20:16:01 agree Feb 19 20:16:02 i dont care if you need to make it 1cm thick instead of 7mm Feb 19 20:16:04 i'm getting extended bat for nexus Feb 19 20:16:15 friend has one and it's not bad at all Feb 19 20:16:25 anyone know where i can view OLD navteq maps? Feb 19 20:16:40 canadiancow, http://www.imdb.com/title/tt0088763/ Feb 19 20:16:45 there Feb 19 20:17:01 sigh Feb 19 20:17:26 you'll find phones that last 1 week on battery there too ;) Feb 19 20:18:49 Mavrik: ya, if the user is lame and has no friends to interact with Feb 19 20:19:27 hmm... that's an interesting statement to make in times of online communication Feb 19 20:22:45 heh Feb 19 20:31:26 canadiancow, https://github.com/JakeWharton/ActionBarSherlock/issues/292#issuecomment-4044899 Feb 19 20:34:24 JakeWharton i would not bother trying to make it work "properly" on the original galaxy tab Feb 19 20:34:31 because a true large hdpi device could come out Feb 19 20:34:34 and it would look shitty on that Feb 19 20:34:43 so do you want it to look good on devices that correctly advertise their specs Feb 19 20:34:47 canadiancow, any new device will fall under sw600dp though Feb 19 20:34:51 or devices that incorrectly advertise their specs Feb 19 20:34:53 only if its 3.2+ Feb 19 20:35:04 who the hell is going to release a large hdpi pre-3.2 device? Feb 19 20:35:07 amazon? Feb 19 20:35:11 ugh Feb 19 20:35:12 fuckers Feb 19 20:35:21 samsung is the only fucker here Feb 19 20:35:30 true :p Feb 19 20:35:33 they both are Feb 19 20:35:39 for now Feb 19 20:35:42 amazon didnt break the api, did they? Feb 19 20:35:51 no they're just causing true fragmentation on Android Feb 19 20:35:59 technically it's not android :P Feb 19 20:36:08 tell that to app developers Feb 19 20:36:10 to use the name "android" requires approval by google, does it not? Feb 19 20:36:17 hi, could I get any help on installing android sdk on Eclipse on my ubuntu? http://paste.ubuntu.com/849097/ Feb 19 20:36:21 what did amazon do that fragmented anything? Feb 19 20:36:28 as i said, [15:35:42] amazon didnt break the api, did they? Feb 19 20:36:36 samsung actually broke the api Feb 19 20:36:42 they created what will be a wildly popular platform based on a version of the OS from 1.5 years ago Feb 19 20:36:56 ok my main rebuttal to that Feb 19 20:37:03 is that they used the latest version of the source that was available Feb 19 20:37:08 there is no one to blame there but google Feb 19 20:37:09 any reason why a view would ignore its layoutparams? Feb 19 20:37:15 available publicly Feb 19 20:37:31 they could have partnered with Google and gotten access to HC and early-ICS like all the other OEMs Feb 19 20:38:00 thats not what open source is all about Feb 19 20:38:04 you partner with google if you want the market Feb 19 20:38:09 if you just want the OS, you use AOSP Feb 19 20:38:23 this is not amazon's fault at all Feb 19 20:38:32 then they're idiots for doing it with full knowledge that Google was overhauling both the API and visual look Feb 19 20:38:47 they're always overhauling everything Feb 19 20:38:55 should they wait for jelly bean ? Feb 19 20:39:05 at what point does stuff stop changing/improving Feb 19 20:39:09 API 4 through 10 was exactly the same Feb 19 20:39:20 amazon took the latest OS code and released a device Feb 19 20:39:32 "publicly available" Feb 19 20:39:33 whatever Feb 19 20:39:36 they did what they could Feb 19 20:39:41 barely Feb 19 20:39:49 the thing is crap Feb 19 20:39:51 i bet to get early access to HC/ICS, you had to agree to include the market and shit Feb 19 20:39:54 yet everyone will buy one because it's amazon Feb 19 20:40:08 so google should have made HC open source Feb 19 20:40:11 and this wouldnt have happened Feb 19 20:40:26 no Feb 19 20:40:29 ALSO Feb 19 20:40:33 you're assuming amazon wont update it to ICS Feb 19 20:40:33 then we'd be saturated with shitty HC phones Feb 19 20:40:47 not in a reasonable amount of time Feb 19 20:40:54 do you know that for a fact? Feb 19 20:41:01 i do Feb 19 20:41:07 i called Jeff Bezos yesterday Feb 19 20:41:09 everyone was going on and on about OH THE KINDLE FIRE IS RUNNING 2.1 AND THEYRE GOING TO RELEASE IT LIKE THAT Feb 19 20:41:18 then it came out running the latest AOSP code Feb 19 20:41:41 it was laughable actually Feb 19 20:41:59 because while all the people in this channel were talking about how shitty the unreleased product was because of that Feb 19 20:42:01 i had one in front of me Feb 19 20:42:03 in any case, what's wrong with large-hdpi being 56dp in portait and 48dp in landscape even if there is a new device Feb 19 20:42:10 i dont know Feb 19 20:42:14 what is it supposed to be Feb 19 20:42:33 anything over sw600dp is 56dp on ICS Feb 19 20:42:50 but large is right in the middle of that Feb 19 20:43:18 dunno man Feb 19 20:43:20 you know best Feb 19 20:43:21 so rather than condemning them to the regular 48dp/40dp we bump it up to 56dp/48dp since they're on a bigger screen Feb 19 20:43:30 Sounds fine tbh Feb 19 20:44:34 I doubt it'll cause issues, and if it does, deal with them then Feb 19 20:44:42 The user will probably never know the difference Feb 19 20:45:24 yeah Feb 19 20:45:58 on to the next bug Feb 19 20:46:17 I should file my bug Feb 19 20:46:23 hi, could I get any help on installing android sdk on Eclipse on my ubuntu? http://paste.ubuntu.com/849097/ Feb 19 20:46:24 :( Feb 19 20:46:34 ;D Feb 19 20:46:46 download it, unzip it, go to eclipse settings under Android and point it to the folder Feb 19 20:46:49 I want to pipe the output of logcat to a file at runtime, does anyone know if this is possible? Feb 19 20:47:34 oh that's ADT plugin Feb 19 20:47:38 dunno Feb 19 20:47:48 Hi all, I'm wondering if anyone could/would mind helping me with a updater-script for CWM Feb 19 20:47:51 hwrdprkns: logcat | tee file Feb 19 20:48:02 alex3305: #android-root or #Cyanogenmod Feb 19 20:48:07 sitic: I can do that at runtime? Feb 19 20:48:08 SimonVT, if by "file my bug" you mean "submit my pull request to fix a bug" I'll be all :))))) Feb 19 20:48:14 hwrdprkns: yes Feb 19 20:48:23 SimonVT, actually I know the problem Feb 19 20:48:28 canadiancow: Thanks, I was doubting which channel to join :) Feb 19 20:48:38 just do that command, it will display logcat and write it to file Feb 19 20:48:50 sitic: So... I just run the command logcat | /pathToFile/file.txt ? Feb 19 20:48:50 SimonVT, https://github.com/JakeWharton/ActionBarSherlock/blob/4.0-wip/library/src/com/actionbarsherlock/view/MenuInflater.java#L367-368 Feb 19 20:49:01 sitic: Am I understanding you correctly? Feb 19 20:49:09 JakeWharton: Yeah, I was thinking "file bug so you can fix" :p Or well, I'd probably look at it myself when I have time Feb 19 20:49:18 logcat | tee /pathToFile/file.txt ? Feb 19 20:49:23 logcat | tee /pathToFile/file.txt Feb 19 20:49:28 don't forget the tee Feb 19 20:49:39 looks like not using the TypedArray doesn't resolve pointers to other resources Feb 19 20:49:48 sitic: ah. ok. I'll give that a whirl. Thanks. Feb 19 20:50:01 is anyone here using Proguard with the new Google API's? This is just frustrating. I've been at this almost all night and this morning. Reference errors everywhere when trying to use Tasks API w/ Proguard. I even added all of the -libraryjar paths still no go. Feb 19 20:50:27 JakeWharton: Did you just make changes to it recently? Feb 19 20:50:38 i don't think so Feb 19 20:52:09 Something happened between 8 days ago and yesterday which broke it for me Feb 19 20:54:48 JakeWharton, know of anything like a "togglebutton" for an actionitem? Feb 19 20:54:54 like i just want a permanent pressed state Feb 19 20:55:33 canadiancow, add a listener to the item and change the icon on every press to reflect? Feb 19 20:55:54 so you want me to make a custom actionitem Feb 19 20:55:56 there's nothing really built-in Feb 19 20:56:01 werent you telling me to use existing libs? Feb 19 20:56:02 :P Feb 19 20:56:43 I meant a normal action item with an icon but you attach its own listener directly to the menu item and use that callback to toggle the icon between two states and then return true so normal activity-level callbacks don't fire Feb 19 20:58:14 well id rather make a reusable component out of it Feb 19 20:58:54 make it an action provider then Feb 19 20:59:02 can i do that? can i specify something other than "item" in the menu.xml? Feb 19 20:59:19 oh is ee Feb 19 20:59:42 https://github.com/JakeWharton/ActionBarSherlock/blob/4.0-wip/samples/demos/res/menu/settings_action_provider.xml Feb 19 20:59:55 https://github.com/JakeWharton/ActionBarSherlock/blob/4.0-wip/samples/demos/src/com/actionbarsherlock/sample/demos/ActionProviders.java Feb 19 21:00:05 yea when you said action provider i googled it :P Feb 19 21:00:07 but thanks :P Feb 19 21:00:22 that sample was pulled directly from API demos and imports changed Feb 19 21:00:25 worked like a charm :) Feb 19 21:01:20 SimonVT, http://nooooooooooooooo.com/ Feb 19 21:01:30 :P Feb 19 21:01:30 haha Feb 19 21:02:07 hmmm Feb 19 21:02:07 how do i make an actionprovider return the default actionview Feb 19 21:02:23 can't Feb 19 21:02:23 Pretty impressive how fast you responded :P Feb 19 21:02:41 default action view is just an ImageView and a Button wrapped in a LinearLayout Feb 19 21:03:06 fuck i dont want to customize this shit Feb 19 21:03:10 i just want a reference to the damn imageview Feb 19 21:04:16 oh wait Feb 19 21:04:19 i just return null and shit works Feb 19 21:05:31 ok how do i listen for clicks in the actionprovider :S Feb 19 21:05:47 I'm trying to remove the holo border under the action bar in abs, works fine with 4.0 but not on 2.3.3. http://pastebin.com/GkX7bCeK Feb 19 21:06:04 It simply has no effect. Feb 19 21:06:33 canadiancow, onPerformDefaultAction? Feb 19 21:07:22 pakerfeldt: use actionBarStyle for <4.0 Feb 19 21:07:35 android:actionBarStyle is 4.0+ Feb 19 21:08:01 o i c Feb 19 21:08:15 pakerfeldt, https://github.com/JakeWharton/ActionBarSherlock/blob/4.0-wip/samples/demos/res/values/themes.xml#files Feb 19 21:09:04 thank you guys! Feb 19 21:09:19 JakeWharton can i access the background of the view from the provider? Feb 19 21:09:34 no Feb 19 21:09:40 so...how do i toggle it Feb 19 21:09:48 your toggling the background? Feb 19 21:09:55 well i need to give some visual indication Feb 19 21:09:57 it's an on/off butotn Feb 19 21:10:01 isn't that what the icon is for? Feb 19 21:10:07 or ImageView Feb 19 21:10:22 ok, how do i get the imageview Feb 19 21:10:25 the background is what shows the blue for selection Feb 19 21:10:27 how do i change the icon Feb 19 21:10:30 etc etc Feb 19 21:10:33 hey JakeWharton , did you move already ? Feb 19 21:10:35 setIcon() Feb 19 21:10:39 g00s, next tuesday Feb 19 21:10:45 where is that a method? Feb 19 21:10:56 uh Feb 19 21:11:00 on MenuItem I guess Feb 19 21:11:03 JakeWharton: hope things go smoothly Feb 19 21:11:07 does the provider have access to the menuitem? Feb 19 21:11:24 g00s, haha thanks. me too. I still have a TON to pack Feb 19 21:11:28 how can I tell proguard to just not obfuscate any of my google api's classes (jars)? Feb 19 21:11:30 i'm a big procrastinator Feb 19 21:12:11 JakeWharton,21st or 28th? Feb 19 21:12:19 yeah, me too. i got rid of 5 truckloads of shit before i moved Feb 19 21:12:19 28th Feb 19 21:12:23 leave tuesday, get there friday Feb 19 21:12:26 FIVE TRUCKLOADS Feb 19 21:12:38 but moving 8 bookcases worth of books still sucked. Feb 19 21:12:39 i couldnt even fill up a mini-truck with my stuff :( Feb 19 21:12:52 canadiancow: i am getting to that point. hopefully , soon. stuff sucks Feb 19 21:13:13 well i was right out of school when zynga happened Feb 19 21:13:20 so i opted not to buy any more furniture until i moved Feb 19 21:13:25 now im buying more stuff Feb 19 21:13:27 :P Feb 19 21:13:29 5 truckloads = 5 pickup truckloads, not semis :D Feb 19 21:13:55 still getting rid of music equipment though Feb 19 21:14:08 ah Feb 19 21:14:15 JakeWharton, how do i get the MenuItem from the ActionProvider? Feb 19 21:22:07 ok JW nm im doing it differently Feb 19 21:22:14 g00s, where are you moving? Feb 19 21:22:46 wtf is this stupid toast that keeps saying "welcome back player 1234567890" Feb 19 21:22:57 well, i lost my home (apt) a month ago so i had to put stuff in storage. i will likely be moving again soon once i find work, hopefully seattle Feb 19 21:23:10 staying with a friend atm Feb 19 21:23:24 wanna work for zynga? Feb 19 21:24:26 canadiancow: wow, thats pretty amazing - but i'm still deciding what to do. thanks canadiancow Feb 19 21:25:01 wait wahts amazing? Feb 19 21:25:24 canadiancow: well, just taking me into consideration, i guess its not amazing, your a nice guy Feb 19 21:25:34 you're Feb 19 21:25:36 :p Feb 19 21:25:38 i'd recommend anyone with whom i regularly converse in this channel Feb 19 21:25:41 SimonVT: damn it Feb 19 21:25:50 if you're ever interested, apply through me though ;) Feb 19 21:25:58 canadiancow: thanks Feb 19 21:25:59 we have a seattle office, but it's more web than mobile Feb 19 21:28:22 there was an article a year ago about people who limit their possessions to 99 things; i am inspired by these folks Feb 19 21:28:30 its sort of a weird movement Feb 19 21:28:33 what does that mean though Feb 19 21:28:36 like i have spare car keys Feb 19 21:28:39 does that count? Feb 19 21:28:43 or like...a sock? Feb 19 21:28:55 * canadiancow names random things he can see Feb 19 21:29:06 they seem pretty liberal on what they call things. my guitar would be one thing, and my mbp would be another though Feb 19 21:29:22 canadiancow: don't your socks come in sets of 4 ? Feb 19 21:29:30 you would get to the limit pretty quickly Feb 19 21:29:32 well thats why im asking Feb 19 21:29:45 my monitor also has two cables Feb 19 21:29:47 and i have two monitors Feb 19 21:29:57 so is my dual-screen setup 1, 2, or 6 things Feb 19 21:30:01 or is "computer" 1 Feb 19 21:30:06 are there any better tricks for backwards compatibility on the screen size identifiers (layouts-sw600whatever) than duplicating two xml files in values-xlarge and values-sw600dp? Feb 19 21:30:14 yes veeti Feb 19 21:30:18 you can do some crazy magic Feb 19 21:30:19 :) Feb 19 21:30:27 i read it somewhere Feb 19 21:30:40 Crazy magic? Feb 19 21:30:44 i think it's as simple as having values/something-big.xml, and then in values-xlarge and values-sw600dp, you just it Feb 19 21:31:00 Ah Feb 19 21:31:11 Define resource links Feb 19 21:31:23 that's what i meant and it sort of sucks :p Feb 19 21:31:46 @layout/some_layout_tablet Feb 19 21:32:00 I put that in layout-sw600dp/xlarge, and _tablet xml in values Feb 19 21:32:02 err, layout Feb 19 21:32:05 fuck Feb 19 21:32:15 you could also say "i dont support tablets running < 3.2 Feb 19 21:32:16 Put that item in values, _tablet xml in /layout Feb 19 21:32:28 which, given the low penetration of honeycomb, and the fact that everything is getting upgraded to ICS, isnt the worst idea Feb 19 21:33:14 doesn't samsung have some galaxy tab they abandoned instantly that's on 3.0 or 3.1 Feb 19 21:33:45 I kinda hate that I support <3.0 tablets Feb 19 21:33:51 Or well, <3.2 Feb 19 21:36:11 veeti, no? the gtab 10.1 is getting ICS Feb 19 21:36:15 and i think it already has 3.2 Feb 19 21:36:23 except for teh one they gave to DEVELOPERS at io ~_~ Feb 19 21:36:27 although mine is running ICS Feb 19 21:36:34 http://en.wikipedia.org/wiki/Samsung_Galaxy_Tab_10.1 Feb 19 21:36:35 10.1V Feb 19 21:37:06 that page is out of date Feb 19 21:37:12 because i know for a fact they have released a 3.2 update Feb 19 21:37:16 for one of the models Feb 19 21:37:21 either way, they annoucned they're all getting ICS Feb 19 21:37:37 how do i clone a drawable Feb 19 21:38:18 hm Feb 19 21:38:27 nm Feb 19 21:38:34 either way 3.1 still has 1.4% (vs 1.9% for 3.2) so not doing 3.0 and 3.1 isn't an option yet Feb 19 21:38:43 sure it is Feb 19 21:38:55 you're talking about 1.5% of the market Feb 19 21:39:03 when EVERY 3.x device is going to get 4.x Feb 19 21:39:26 i'm not going to leave hundreds of users hanging for months until they get 4.0 Feb 19 21:39:37 16% of my users have HC Feb 19 21:39:57 SimonVT: hmm, thats interesting Feb 19 21:40:02 thats actually a good point SimonVT / veeti Feb 19 21:40:02 BORING Feb 19 21:40:04 what do YOUR users use Feb 19 21:40:10 >10% of my users are on ICS Feb 19 21:40:22 and less than 0.1% are on 3.x Feb 19 21:40:31 Only got 4% on ICS Feb 19 21:41:08 And about as many on 2.1 .. Can almost drop that :p Feb 19 21:41:09 targeting 3.2 is practically the same as targeting 3.0... Feb 19 21:41:12 SimonVT: you obviously have noob users Feb 19 21:41:24 pfn, not if you're looking at layout-sw600dp :P Feb 19 21:41:37 yeah, that's about the only change really Feb 19 21:41:52 proguard is such a pain, finally got it but damn Feb 19 21:42:03 I just wish proguard weren't so slow Feb 19 21:42:26 QubeZ: yeah, proguard is a fucking pain. and when shit does not work … Feb 19 21:42:26 slow? really? Feb 19 21:42:39 in terms of the android build process, proguard isnt even in my top 3 of slow Feb 19 21:42:39 :P Feb 19 21:42:39 is there an online tool to get the latE6 and longE6 of some location in degrees? i'm having trouble setting the center of a map on my country.. Feb 19 21:42:52 canadiancow, maybe if you don't run it on every build, sure Feb 19 21:42:55 Packagine resources is slow :p Feb 19 21:43:12 konam: (int) (degrees * 1E6) ... Feb 19 21:43:31 the thing i worry most about proguard is obfusicating and forgetting to check in the mapping files Feb 19 21:43:36 canadiancow i tried that but didn't put me on my country :S Feb 19 21:43:39 lol g00s Feb 19 21:44:15 It always fucks up my custom views Feb 19 21:44:22 * pfn just doesn't bother with obfuscating Feb 19 21:44:45 g00s: check what in the mapping files? Feb 19 21:44:49 no need to worry about losing the mapping files Feb 19 21:44:53 well you can run proguard without obfuscating Feb 19 21:44:54 QubeZ, obfuscated -> normal stacks Feb 19 21:44:57 you mean with each build, keeping a copy of the mapping? Feb 19 21:45:21 pfn: if you dont obfuscate, how do you protect your source code? Feb 19 21:45:21 QubeZ: in bin/proguard, mapping.txt and others Feb 19 21:45:35 QubeZ: Obfuscating doesn't protect your source Feb 19 21:45:37 QubeZ, 1, scala decompiles very ugly, 2, I don't really care Feb 19 21:45:46 SimonVT, it certainly does to some extent Feb 19 21:45:53 pfn: hehe Feb 19 21:45:53 think back to fall 2009 Feb 19 21:45:55 canadiancow: To some extent Feb 19 21:45:58 google launched the navigation service Feb 19 21:45:59 US only Feb 19 21:46:02 except there was a field in one class Feb 19 21:46:03 better than nothing Feb 19 21:46:04 a boolean Feb 19 21:46:05 But far from :p Feb 19 21:46:11 mAllowOutSideUsa = false; Feb 19 21:46:48 haha Feb 19 21:46:49 canadiancow, even without the variable name, one can see that it disables everything else and toggle it anyway Feb 19 21:47:03 but that requires more than searching for "allow" Feb 19 21:47:06 or "usa" Feb 19 21:47:17 obfusication is not helpful much if you are intending to prevent someone from making a change to your code to say get around a license; but i think its useful to prevent people from reusing stuff in borader terms (ripping off your code) Feb 19 21:47:18 ya so i like proguard, just a pain in the ass Feb 19 21:47:19 I mean you decompile, and see "if (...) return/doeverythingelse" bingo Feb 19 21:47:24 finally got my code to export signed with google api's Feb 19 21:47:28 reusing stuff in borader terms (ripping off your code) Feb 19 21:47:29 this Feb 19 21:47:50 * pfn can still rip off obfuscated code Feb 19 21:47:55 g00s: i keep track of all of my mappings etc.. from proguard via SVN, when I export a signed release... i just tag that release so i'll have a snapshot of that mapping in that time Feb 19 21:48:11 QubeZ: that sounds good Feb 19 21:50:03 ok fuck Feb 19 21:50:14 i have a Drawable that is based on a resource Feb 19 21:50:20 i want to get another SEPARATE copy of that Feb 19 21:50:26 so i can manipulate it without fucking the first Drawablwe Feb 19 21:50:37 Are there any performance disadvantages to using bundle.putSerializable() vs putParcelable()? Feb 19 21:50:44 parcelable is faster Feb 19 21:51:11 canadiancow: Google it! Feb 19 21:51:22 I AM Feb 19 21:51:54 hey Drakonite Feb 19 21:52:02 hey g00s Feb 19 21:53:22 Drakonite: what do people do out there when its too cold to grow corn ? Feb 19 21:55:05 * Drakonite shrugs Feb 19 21:55:33 :) Feb 19 21:56:05 BitmapFactory.decodeResource(getResources(), android.R.drawable.ic_menu_mylocation); gives me a different density's icon than ImageView#setImageResource(int)... why Feb 19 21:56:16 its like im getting the mdpi version Feb 19 21:56:38 is it a 9 patch by any chance ? Feb 19 21:57:07 i dont think so? Feb 19 21:57:20 it's a menu icon from the framework Feb 19 21:57:33 oh yeah, duh Feb 19 21:57:51 nah its not a 9patch Feb 19 21:58:29 wondering if its the same icon but with different padding / bounds Feb 19 21:58:57 maybe this is an ABS bug :P Feb 19 22:01:30 lets try with native actionbar! Feb 19 22:01:43 anh same shit Feb 19 22:01:45 nah* Feb 19 22:02:18 i vote os x lion LaunchPad worst desktop app evar Feb 19 22:02:33 I vote OSX worse desktop "app" ever Feb 19 22:02:34 i vote os x lion worst desktop os evar Feb 19 22:02:39 hehe Feb 19 22:02:43 <3 Drakonite Feb 19 22:02:45 canadiancow: high five! Feb 19 22:02:48 o/ Feb 19 22:03:20 canadiancow: do you use windows or linux ? Feb 19 22:03:26 windars Feb 19 22:03:29 Drakonite: wp8 will have native c++ development Feb 19 22:03:34 *native Feb 19 22:03:35 all of the above Feb 19 22:03:51 I'll be far more interested in wp8 than wp7 than Feb 19 22:04:07 this is weird Feb 19 22:04:11 my Bitmap is 64x64 Feb 19 22:04:17 but when i wrap it in a BitmapDrawable, it becomes 32x32 Feb 19 22:04:19 o.O Feb 19 22:04:45 is it getting scaled due to dpi? Feb 19 22:04:50 almost like inSampleSize > 1 ? Feb 19 22:05:05 the Bitmap knows it's 320dpi Feb 19 22:05:11 but why would a BitmapDrawable scale anything? Feb 19 22:05:16 is your screen 320dpi? Feb 19 22:05:18 thats supposed to be handled by the resource manager Feb 19 22:05:19 yes Feb 19 22:05:27 or half that, and it's getting scaled to match? Feb 19 22:05:29 resource manager should do the scaling before i even get the bitmap Feb 19 22:05:35 my screen is 320 Feb 19 22:05:59 mTargetDensity 160 Feb 19 22:06:00 default is 160, so the numbers are suspicious, like something thinks it needs scaling Feb 19 22:06:01 in BitmapDrawable Feb 19 22:06:02 wtf Feb 19 22:06:04 yep Feb 19 22:06:11 why does the BitmapDrawable think the target density is 160??? Feb 19 22:06:29 OH Feb 19 22:06:30 fuck my life Feb 19 22:06:36 BitmapDrawable(Bitmap bitmap) Feb 19 22:06:36 This constructor is deprecated. Use BitmapDrawable(Resources, Bitmap) to ensure that the drawable has correctly set its target density. Feb 19 22:06:59 why did eclipse not underline my deprecated constructor :S Feb 19 22:07:19 because it's eclipse? Feb 19 22:08:02 oh bee you ti ful :) Feb 19 22:08:13 JakeWharton JakeWharton it works and it looks purrrrdy Feb 19 22:12:46 <_Syzygy> OpenGL ES 1 or 2 for games? which is closer to OpenGl on pc? so i will only have to look at one guide. Feb 19 22:13:15 niether ;) Feb 19 22:13:33 _Syzygy: ES1 is fixed function open gl Feb 19 22:13:35 _Syzygy: GLES1 is a cleaned-up fixed pipeline. GLES2 is closer to shader-oriented approach with modern OpenGL Feb 19 22:13:44 like maybe open GL 1-2 on PC Feb 19 22:13:51 but on PC you can use GL 3-4 now Feb 19 22:13:58 and thats fully shader driven Feb 19 22:14:00 id use 2 Feb 19 22:14:07 <_Syzygy> ok, so i guess 2 then. Feb 19 22:14:10 ES2 is modern / shader driven Feb 19 22:14:15 2 sets your minSdkVersion to 8 though - so keep that in mind Feb 19 22:14:22 in practice both still work Feb 19 22:15:13 <_Syzygy> reaching over 90% with that, fine by me Feb 19 22:15:59 a lot of devices implement GLESv1 as a wrapper around GLESv2, so in some cases it can be faster Feb 19 22:17:22 _Syzygy, looking for an engine too? Feb 19 22:18:17 <_Syzygy> nope, right now it's a learning object, and sometimes in the future I'll have to do it without an engine for uni anyway Feb 19 22:18:24 <_Syzygy> *project Feb 19 22:18:28 can you hit 90%? doubt it Feb 19 22:18:36 ? Feb 19 22:18:49 what do you mean TheBunny Feb 19 22:18:57 90% of devices out there Feb 19 22:18:57 ? Feb 19 22:19:14 why do you think you cant hit that? Feb 19 22:19:14 <_Syzygy> theoretically, yes, practically, not even 0.1% Feb 19 22:22:45 just look at the devices and os version you want to hit Feb 19 22:23:20 anyhow using ES 1.1 I have 99% of the same GL code on mac/pc as in mobile Feb 19 22:23:26 in one of my game engines Feb 19 22:23:57 <_Syzygy> alright, but shouldn't it be similar for 2.0 as well? Feb 19 22:24:01 ES2 should be about the same except inside of actual shader code... Feb 19 22:24:37 BUT if you use PRAGMAS etc it can be easy to use 1 shader code base on all of them Feb 19 22:24:51 [2012-02-19 17:24:17 - CoverageMapper] Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Feb 19 22:24:53 sigh Feb 19 22:27:23 <_Syzygy> Alright, thanks guys. I'll use 2.0 for now. Feb 19 22:29:57 where are launcher shortcuts stored Feb 19 22:31:24 nm Feb 19 22:31:56 does an update to an app change its position in the search order? i doubt so (seems easily gamed) but wanted to check. Feb 19 22:36:29 I'm using ubuntu 11.10 and eclipse 3.7.1, and I'm having a hard time with building an android project Feb 19 22:36:43 aapt keeps crashing with OOM problems Feb 19 22:36:48 I have 2gigs of free memory Feb 19 22:37:01 where is sqlite3 supposed to be on the phone Feb 19 22:37:51 canadiancow, the code, or the db for your app? Feb 19 22:38:22 like iwant to run sqlite3 from adb Feb 19 22:38:24 from a shell Feb 19 22:38:29 and i know ive done it on other devices Feb 19 22:38:36 I don't know :/ Feb 19 22:38:53 have you checked /bin /usr/bin ? Feb 19 22:39:54 yep Feb 19 22:42:30 no whereis command? Feb 19 22:42:55 i wonder, if i took this, how much of android development i would forget. http://www.wired.com/magazine/2012/02/ff_forgettingpill/all/1 Feb 19 22:44:19 is there a way to have a edittext with a maxlength be as wide as it would be if it had maxlength charaters in it? Feb 19 22:49:33 OH FUCK TODAY IS SUNDAY Feb 19 22:50:14 which means the store thats 15 minutes away closes in 10 minutes Feb 19 22:50:17 instead of 70 minutes Feb 19 22:50:18 *sigh* Feb 19 22:50:48 <_Syzygy> "onSurfaceChanged() is called if the geometry of the GLSurfaceView changes, for example when the device's screen orientation changes." Feb 19 22:50:52 <_Syzygy> I'm not sure I understand. Feb 19 22:54:53 canadiancow, run? Feb 19 22:55:37 another store further away closes later Feb 19 22:55:39 i'll go there Feb 19 22:55:50 <_Syzygy> it's further away, go now Feb 19 22:58:10 <_Syzygy> I still don't understand what that line I pasted earlier means D: Feb 19 22:58:46 <_Syzygy> I think i'm starting to get it Feb 19 23:22:18 canadiancow, excellent! Feb 19 23:26:25 hi guys...how can I add my app to what ResolverActivity shows? Feb 19 23:27:03 I have added an intent filter to the manifest Feb 19 23:27:08 with scheme="http" Feb 19 23:27:34 and mimetype="*/*", but the browser doesn't show my app when opening a file Feb 19 23:28:19 ok, srsly... I only have1966 of 3848MB allocated and aapt is running out of memory Feb 19 23:28:51 left my earbuds next to the exhaust port of my laptop Feb 19 23:28:57 they're toasty in my ears Feb 19 23:29:02 feels strange Feb 19 23:29:47 on the up side, it might have killed some bacteria on them Feb 19 23:29:53 and that's ignoring the 4g of swap I have Feb 19 23:30:22 bankai_, doubtful. until around 140-160f it will help the bacteria grow faster :) Feb 19 23:30:34 * g00s is trying to use his mbw w/o a mouse , opting for the touchpad - and i have to say, this is the best touchpad i have ever used in a laptop. almost better than a mouse Feb 19 23:30:46 *mbp Feb 19 23:31:02 keyboard doesn't seem that great though :) Feb 19 23:31:13 i love these low travel keyboards Feb 19 23:31:26 i meant since you couldn't type mbp properly Feb 19 23:31:28 by far my favorate keyboards are on lenovos Feb 19 23:31:31 I've also concluded that the macbook's touchpad beats mouse Feb 19 23:31:31 haha Feb 19 23:31:53 I've not missed one of those damn devices because there's no way they will match what you can do on the touchpad Feb 19 23:32:33 * g00s remembers his first mouse with a rubber ball in it Feb 19 23:35:16 can anyone help me? :) Feb 19 23:35:47 depends on if you ask a question or not Feb 19 23:36:02 I had already asked it :D Feb 19 23:36:10 oh Feb 19 23:36:12 I'm trying to make the browser display my app in the Resolver list Feb 19 23:36:13 *scrolls* Feb 19 23:36:28 so I used mimetype:"*/*" and scheme:"https" Feb 19 23:36:42 but my app is not shown when I open an .obj file from a website Feb 19 23:38:13 faenil: you asked this yesterday, JakeWharton will have to scroll quite a bit Feb 19 23:38:22 nope Feb 19 23:38:29 few mins ago :) Feb 19 23:38:46 oops, my mistake Feb 19 23:38:49 ;) Feb 19 23:38:53 did you look at the browser's manifest? Feb 19 23:38:59 that should give you a good hint Feb 19 23:39:08 browser's? Feb 19 23:39:33 the built-in browser Feb 19 23:39:51 let's see Feb 19 23:40:19 https://github.com/android/platform_packages_apps_browser/blob/master/AndroidManifest.xml#L76-84 Feb 19 23:40:21 perhaps? Feb 19 23:40:23 mayhaps? Feb 19 23:40:24 perchance? Feb 19 23:40:33 yes already got there ;) Feb 19 23:41:13 I noticed that the Chrome browser doesn't seem to fire intents between redirects Feb 19 23:41:25 so if you follow a shortlink to a youtube video it won't prompt you to open it in the native app Feb 19 23:41:45 I need .obj .stl .ply .off .ctm Feb 19 23:42:23 did you call me a mofo Feb 19 23:42:25 and I'm using a similar thing in the manifest Feb 19 23:42:27 >.ctm Feb 19 23:43:18 JakeWharton: here's what I'm using Feb 19 23:43:18 http://pastebin.com/zBngUmJ2 Feb 19 23:43:22 are the hierarchy viewer time indicator (red, orange, green) "reliable"? Feb 19 23:43:38 JakeWharton: shouldn't that show my app in all http links? Feb 19 23:43:50 (where are other apps are shown) Feb 19 23:44:16 faenil, i have no idea Feb 19 23:44:24 never used filtering like that Feb 19 23:44:45 like I did, or like that generally? Feb 19 23:44:50 at all Feb 19 23:44:53 mmm ok Feb 19 23:45:03 just trying to point you in useful directions Feb 19 23:45:17 nothing looks wrong with that so I have no clue Feb 19 23:45:20 thanks Feb 19 23:46:02 I guess that adding mimeType:"*/*" and not adding it at all Feb 19 23:46:04 makes the difference Feb 19 23:49:04 JakeWharton: yes it seems it does make the difference... Feb 19 23:49:13 odd Feb 19 23:50:31 trying again with different syntax Feb 19 23:50:57 yeah it's not shown now Feb 19 23:50:59 ... Feb 19 23:51:21 I guess the meaning is "accept all files WITHOUT mimetype" and "accept all files WITH ANY mimetype" Feb 19 23:51:27 that's why it behaves differently Feb 19 23:51:51 holy crap I'm exhausted Feb 19 23:52:55 https://plus.google.com/100301252568537087423/posts/Hh3BroEA22e Feb 19 23:55:51 Am I allowed to change the ID of a view after it's attached to the hierarchy? Feb 19 23:57:47 hi Feb 19 23:59:07 I change the decor view's ID from android.R.id.content to View.NO_ID and then change the main FrameLayout in my view to have an ID of android.R.id.content Feb 19 23:59:45 whenever a fragment transaction is fired off on android.R.id.content it still attaches to the "old" content view rather than the "new" one Feb 20 00:00:31 I've got an ArrayList of HashMap items. Each HashMap item will contain data under the keys _id and name. From this, I'm trying to use SimpleAdapter to populate a Spinner. I need the _id since they're all unique IDs from a database table. How do I get SimpleAdapter to use this _id data from inside the HashMap? Feb 20 00:00:33 I know the window caches the decor view in an instance variable but FragmentManagerImpl just calls mActivity.findViewById() which pipes to getWindow().findViewById() which pipes to getDecorView().findViewById() which should fire it down the tree and NOT match directly Feb 20 00:01:03 im trying to fix the .classpath for the last android sources.... so i included the out/target/common/obj/JAVA_LIBRARIES/filterfw_intermediates/javalib.jar into libraries in the project properties.... but eclipse continues telling me "the import android.filterfw cannot be resolved"... does anyone can help me with this? Feb 20 00:02:12 or does anyone have an updated .classpath for the last git sources? Feb 20 00:02:21 Also, my Activity is using a custom Theme to change the color of TextView widgets, but it also affects the color of the spinner text. What can I do to avoid this? Feb 20 00:02:32 use your own layout for the spinner Feb 20 00:02:39 the default one is based on textColorPrimary Feb 20 00:03:26 this is my actual .classpath http://pastebin.com/NHwD5Tqf Feb 20 00:03:29 hi all Feb 20 00:03:45 i get SoapObject from webservice Feb 20 00:04:04 and i need to map the content with my local class Feb 20 00:04:20 any idea ? with reflection or add attribute to my class Feb 20 00:04:40 the content of webservice anyType Feb 20 00:05:20 anyType{Age=0; Name=Name 0; } Feb 20 00:06:12 JakeWharton: Should I also avoid using android.R.id.text1 for the "to" parameter which specifies the view for the single play column in "from"? Or is this ok to still use? Feb 20 00:06:15 and my local class Person { Name , Age } Feb 20 00:06:20 mmm guys Feb 20 00:06:26 what if the browser doesn't even ask Feb 20 00:06:33 with which app to open a particular file? Feb 20 00:06:41 (.ply) Feb 20 00:07:09 Jouva, you can still use that so long as your TextView uses that ID in your custom layout Feb 20 00:07:21 Ah ok. Feb 20 00:07:59 Ugh. Now I need to see how to recreate the spinner layout, don't I? Feb 20 00:09:50 JakeWharton: And also, am I missing something to make Spinner.getSelectedItemId() return the value from my HashMap's _id value instead of a 0-based incrementing number? Feb 20 00:10:36 it probably calls through to the adapter for that Feb 20 00:10:41 and you're using SimpleAdapter Feb 20 00:11:02 if you want better results make your own adapter that extends from Adapter and you can then return the proper field Feb 20 00:11:15 it's probably a method like getItemId(int index) that you can override Feb 20 00:12:23 Ohhh fff ok. I figured that _id was a standard (just like how ListAdapter prefers it) and that SimpleAdapter would pick up on it too Feb 20 00:29:35 is there any way for me to hook into the installDecor() call that occurs in the Window? Feb 20 00:29:44 to perform some operations at the same time? Feb 20 00:33:07 WTF. Feb 20 00:33:09 Guys. Feb 20 00:33:30 How do I store the selector in this example, and associate it with an ImageButton? Feb 20 00:33:34 http://developer.android.com/reference/android/widget/ImageButton.html Feb 20 00:33:50 I tried putting the whole in its own XML file, but that obviously doesn't work. Feb 20 00:34:57 Okay, nevermind. Eclipse is just being annoying. Feb 20 00:40:00 QUESTION: the WRITE_SMS permission implies sending them? Feb 20 00:41:20 no... SEND_SMS is sending Feb 20 00:41:44 ok Feb 20 00:41:52 and are you serious? "String BRICK Required to be able to disable the device (very dangerous!)." lol Feb 20 00:48:10 yeah, dont request that perm Feb 20 00:48:13 :-) Feb 20 00:49:14 Anyone know the name of the layout used in Google+ application? Feb 20 00:49:34 ListView? :p Feb 20 00:49:53 The one allowing it to slide right to new tab Feb 20 00:50:04 ViewPager Feb 20 00:50:13 its in the compatibility library Feb 20 00:50:19 I like how the scrollbar changes size depending on the size of the current row(s) visible Feb 20 00:50:36 you can page through views or even Fragments Feb 20 00:50:37 it looks like a caterpiller as you scroll up/down fast Feb 20 00:50:50 Is it in all versions of Android? Feb 20 00:51:10 just include the "Suppor Library" Feb 20 00:51:15 It's not in any version of Android, it's part of the compatibility library you can add to your project Feb 20 00:51:21 oh :) Feb 20 00:51:24 yeah, support library Feb 20 00:51:47 In eclipse you can add that to your build path with a right-click Feb 20 00:52:00 provided you've downloaded it with the SDK Manager Feb 20 00:52:33 I think if you right click the project -> android tools -> add support library (or similar) it will go and download the latest one whether you have it or not Feb 20 00:53:13 hmm they still call it "Compatability library" in that menu Feb 20 00:54:23 oh, gtk Feb 20 01:04:56 thank you Feb 20 01:05:27 Is there a way to launch the gallery app for selecting multiple images? Feb 20 01:05:37 use an intent i assume Feb 20 01:05:37 from my app, that is Feb 20 01:06:03 http://www.pocketmagic.net/?p=1707 Feb 20 01:06:50 I know that, it's what I'm doing now. The problem is that you can only select one image. Feb 20 01:07:20 very tedious when you want to select many. Feb 20 01:07:35 startActivityForResult(new Intent(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI), 1) Feb 20 01:07:56 excuse me for that. ignore it Feb 20 01:08:25 this is only thing i can find jA_cOp: http://vikaskanani.wordpress.com/2011/07/20/android-custom-image-gallery-with-checkbox-in-grid-to-select-multiple/ Feb 20 01:08:36 ya thanks, I found that one too Feb 20 01:08:48 ah okay Feb 20 01:09:33 I am launching a chooser atm, so the user can choose which app he/she wants to use for getting the image, I'd prefer if I didn't have to lose that flexibility Feb 20 01:10:07 So it'd be nice if there was a way to it with intents Feb 20 01:10:07 hm Feb 20 01:12:10 I think I might be able to do it the other way around, by letting the gallery app launch my app with the typical "share" button Feb 20 02:01:16 [18:22:18] canadiancow, excellent! Feb 20 02:01:21 any interest in seeing it? Feb 20 02:01:27 or you too busy with your seirously buggy lib ;) Feb 20 02:01:42 woah now Feb 20 02:01:47 let's tone down the hate Feb 20 02:02:01 there is no hate Feb 20 02:02:05 i mean...im using abs Feb 20 02:02:09 an alpha version, no less Feb 20 02:02:11 or is it RC now? Feb 20 02:02:17 i clearly think its awesome Feb 20 02:03:41 sure Feb 20 02:03:42 send it Feb 20 02:04:12 no more fugly togglebutton Feb 20 02:04:13 :) Feb 20 02:04:22 i think i broke my freebsd Feb 20 02:04:31 lol? Feb 20 02:04:44 i dunno Feb 20 02:04:46 ports isnt working Feb 20 02:07:05 maybe you should pay for it Feb 20 02:07:27 NonFreeBSD Feb 20 02:07:59 badumtss Feb 20 02:08:44 where's my resources in jars ADT?!? Feb 20 02:10:10 god i hate women Feb 20 02:10:15 "visitor parkign is at the north end" Feb 20 02:10:19 "north means nothing to me" Feb 20 02:10:20 ... Feb 20 02:10:24 HOW ELSE CAN I DESCRIBE IT Feb 20 02:10:44 LOOK TOWARDS SANTA CLAUS. THAT DIRECTION Feb 20 02:10:45 ~_~ Feb 20 02:10:56 lol Feb 20 02:10:58 haha Feb 20 02:11:13 "i don't know where the north side is" Feb 20 02:11:23 im tempted to respond with my santa claus comment...but id like some action tonight Feb 20 02:11:38 maybe she'll find it witty Feb 20 02:11:56 canadiancow I guess you also believe god gave women smaller feet so they can stand closer to the kitchen sink too :P Feb 20 02:12:03 i replied "it's the closest side to santa claus" Feb 20 02:12:15 no Feb 20 02:12:27 i just dont like when i cant use a fuckign direction to direct someone Feb 20 02:12:34 ITS ON THE SIDE WITH THE FIR TREES Feb 20 02:12:36 liek... Feb 20 02:12:43 FIR REAL Feb 20 02:13:10 cow, y u no use same key?!? Feb 20 02:13:10 lol just think the opposite wave your hands nod the head lots and pretend that its all being understood - they will find their way for sure - they always come home dont they :P Feb 20 02:13:44 actually Feb 20 02:13:46 it doesn't work at all Feb 20 02:13:49 did you sign this? Feb 20 02:14:09 yes? Feb 20 02:14:11 what doesnt work Feb 20 02:14:21 same build worked for someone else Feb 20 02:14:27 "there was a problem parsing the package" Feb 20 02:14:36 even uninstalled the old one Feb 20 02:14:36 it was CoverageMapper-release.apk right? Feb 20 02:14:40 yarr Feb 20 02:14:52 "Ok So I'll go see Santa claus instead then :P" Feb 20 02:15:00 [21:11:39] maybe she'll find it witty Feb 20 02:15:02 interesting Feb 20 02:15:06 troll'd Feb 20 02:15:22 now you say, "no need, I got all your presents right here" Feb 20 02:15:50 {(o_O)} Feb 20 02:15:57 for the record, she's a pilot Feb 20 02:16:01 and she doesnt understand "north" Feb 20 02:16:09 what airline? Feb 20 02:16:09 im actually scared rightn ow Feb 20 02:16:11 remind me to never fly Feb 20 02:16:18 lol Feb 20 02:16:22 no just ...what do you call it... recreational Feb 20 02:16:42 thats why we have GPS point and click Feb 20 02:18:03 hey guys... my fragment has a constructor that takes a string argument... in the constructor i call setArguments(args); where args is a bundle with the string argument set. i also have a no-args constructor which will be called by android when the fragment is recreated.. but getArguments() returns null here, even though i set its args in the other constructor.. what's going on? Feb 20 02:18:07 why is eclipse so full of fail? Feb 20 02:18:18 don't use contructors with fragments Feb 20 02:18:32 use the newInstance pattern Feb 20 02:18:33 JakeWharton md5 6d289ce44b37f6da26a733e2c9f007bc Feb 20 02:19:21 Is there any way for me to create a clickable area around icons? Feb 20 02:19:24 JakeWharton: what's the difference with using the newInstance pattern (calling setArguments after the constructor call) and calling setArguments inside the constructor? Feb 20 02:19:34 I have some icons that look nice, but the tappable area is too small. Feb 20 02:19:43 It's annoying to invoke the onClick event from them. Feb 20 02:19:56 Would be great if I could create a big area around the icon to make tappable. Feb 20 02:22:26 like an ImageButton with padding? Feb 20 02:24:26 JakeWharton: are the arguments available in the constructor when the fragment is recreated? Feb 20 02:25:26 <_Syzygy> http://developer.android.com/resources/tutorials/opengl/opengl-es20.html#draw-triangle .... so I have to write my shaders as Strings? Feb 20 02:25:48 <_Syzygy> is there another way? Feb 20 02:26:42 why is freebsd not liking me so much :( Feb 20 02:26:44 checking C++ compiler g++46 -march=corei7 -O2 -pipe -funroll-loops -msse4 -mcx16 -mpopcnt -msahf -march=corei7 -fno-strict-aliasing... no, program does not run Feb 20 02:26:44 configure: error: C++ compiler not available, see config.log for details Feb 20 02:27:08 Can I put padding around an ImageButton? Feb 20 02:27:26 im not sure "around" is the right term Feb 20 02:27:26 <_Syzygy> I don't see why not Chronax Feb 20 02:35:01 Anyone know where i can find a code template for viewpager ? Feb 20 02:38:17 Yes! Good night. Feb 20 02:39:50 damnit, I wanted to ask robinb why getjar wasn't working Feb 20 02:39:52 pos Feb 20 02:41:21 does a PreferenceCategory need a key? Feb 20 02:41:31 i am the keymaster Feb 20 02:41:48 NightmareApps, support lib has samples in the SDK folder Feb 20 02:42:01 I couldn't find it Feb 20 02:42:34 SDK/extras/android/support/v4/sample/ Feb 20 02:42:50 or something like that Feb 20 02:46:01 I couldn't find it Feb 20 02:46:03 woops Feb 20 02:46:05 v4 or v13 Feb 20 02:51:39 <_Syzygy> I'm a bit confused as to what USB driver I should choose to run my apps on my phone. Feb 20 02:51:50 <_Syzygy> Sony Vaio, Galaxy S II Feb 20 02:52:09 You're trying to use as a hardware emulator? Feb 20 02:52:20 <_Syzygy> I'm trying to run my apps on the hardware Feb 20 02:54:41 <_Syzygy> http://developer.android.com/sdk/oem-usb.html There's no sony option. Feb 20 02:54:54 <_Syzygy> or is it the phones manufacturer? Feb 20 02:57:18 sup Feb 20 02:57:40 so umm, I just wrote a guitar tab drawing class for someone on reddit Feb 20 02:57:43 he probably won't even notice Feb 20 02:58:05 http://www.reddit.com/r/androiddev/comments/pwcc7/guitarpiano_ui/c3sy4il Feb 20 02:58:08 maybe one of you will use it Feb 20 02:58:11 *nudge* Feb 20 02:59:05 <_Syzygy> can someone please help me find the right drivers? D: **** ENDING LOGGING AT Mon Feb 20 03:00:00 2012