**** BEGIN LOGGING AT Thu May 03 03:00:01 2012 May 03 03:27:51 FBI, stumped by pimp's Android pattern lock, serves warrant on Google May 03 03:27:53 god damn May 03 03:27:55 what a headline May 03 03:37:39 wouldn't they just use that doohicky that connects to pretty every phone and downloads the data ? May 03 03:39:40 hi all, I'm getting a "invalid cookie header" error in my activity which uses a HttpClient to make get calls. Does anyone have a solution for this? May 03 03:39:42 thanks May 03 03:45:04 git add -u May 03 03:45:07 just blew my mind May 03 03:45:21 i was doing like git ls-files -z | xargs git rm before May 03 03:51:59 i am stuck on an ndk issue. i have two shared libraries. One that i made and another that i linked. One is failing on the System.loadLibrary call. The other works fine. May 03 03:54:01 Let me try more detail. Specifically, I have created a liblua-5.1.4.so, which exists in my /libs/armeabi folder. i call a System.loadLibrary("lua-5.1.4"); which is failing. I also have my own libjunkpunk-wrapper.so in the same folder, which a System.loadLibrary("junkpunk-wrapper"); May 03 03:54:09 and it works fine May 03 03:54:53 i've checked and both are included in the apk May 03 03:57:34 Is it possible to have unique PendingIntents for the same intent? May 03 05:23:03 Hi, I have a ZTE tablet and I'm trying to connect it to my Debian laptop so I wrote my udev rule with the vendor ID. The tablet shows up in dmesg but I can't adb shell into it. What can I do? May 03 05:23:43 Aenigma: got USB debugging enabled on the tablet? do you get the notification on the tablet to show it sees the PC? May 03 05:24:38 Leeds: Yes, USB debugging is enabled. I don't get any indication of USB acknowledgement but I get a green light on it which signifies it is charging. May 03 05:24:51 try a different port and/or cable May 03 05:25:02 if you don't get the notification on the tablet, it doesn't matter what you do on the computer May 03 05:29:23 hey leeds May 03 05:30:58 i could use your help. I'm using this example code: http://www.kind-kristiansen.no/2011/android-handling-longpresslongclick-on-map-revisited/ at the bottom, theres a class Map that extends MapActivity. My app force closes on launch because of line 9. The exact error is "Caused by: java.lang.ClassCastException: com.google.android.maps.MapView cannot be cast to com.follow.me.MyCustomMapView" May 03 05:31:16 i don't understand why i cannot do that May 03 05:32:31 Leeds: can you help me out ? May 03 05:32:37 nope May 03 05:32:48 lunchtime May 03 05:34:07 Leeds: i tried different cables and ports but I'm not getting any results. Am I out of luck or something, then? May 03 05:40:08 what target android builds do you have installed? May 03 05:40:23 should I just install them all? May 03 05:41:26 Arghh. I can get my personal tablet and my phone working but not this ZTE one. What the hell. May 03 05:42:20 RustyShackleford: i do froyo, gb, and ics May 03 05:54:05 its advisable to stay away from making things static in android right? i seem to get mem leaks etc if i do so May 03 05:59:17 hi May 03 06:00:08 how do I get the width or height of a view? It is returning 0 and I read that you need to wait for onSizeChanged to get the dimensions but I can't wait for that long as I am setting the Bitmap for the view programmtically May 03 06:01:25 what is the proper way to terminate an application May 03 06:01:43 devslash: finish() May 03 06:01:49 thats what i thoguh May 03 06:01:59 take the battery out and burn it May 03 06:03:26 is there a way to get the dimension of a view programmatically? May 03 06:11:33 getMeasuredWidth() May 03 06:11:40 etc May 03 06:15:03 how difficult is it to play flac on android? May 03 06:16:44 what is flac? May 03 06:17:16 lossless audio May 03 06:17:33 (compression) May 03 06:18:28 RustyShackleford: don't you mean how easy is it? May 03 06:18:50 pragma-, that is good news then May 03 06:18:57 i asked because many players do not May 03 06:19:12 it's not listed as a supported format for my Motorola Razr either May 03 06:19:13 don't hate the player, hate the game May 03 06:19:27 very funny May 03 06:19:31 download a better player May 03 06:19:54 I think i'm going the programming my own route May 03 06:20:07 brilliant! May 03 06:21:31 how do i only hsow my own apps log messages from cli? i had a script for this but it got wiped during new android install, im sure there was a way without specifying a package name May 03 06:21:56 use the logcat filter May 03 06:22:04 yeh i want a command line window May 03 06:22:12 as logcat sometimes doesnt work well May 03 06:22:17 yeah, use the logcat commandline with the proper filter arguments May 03 06:22:21 ah yeh May 03 06:22:24 yeh May 03 06:22:26 i mean do u have an example of this :) May 03 06:22:32 i see adb -d logcat : *:S May 03 06:22:37 logcat -? May 03 06:22:39 but i dont want to enter package name my old script didnt May 03 06:22:49 ah May 03 06:22:53 well its gonna take 15 mins to fgure out May 03 06:22:57 how annoying it wiped my scripts May 03 06:23:18 "it" gets all the blame May 03 06:23:27 yeh May 03 06:23:30 it should May 03 06:23:31 yeh May 03 06:24:53 I like to include `-v time` May 03 06:28:10 so when you develop apps, what platforms do you develop for? May 03 06:28:23 android May 03 06:28:31 I realize this depends on what you are developing, so let's say a music player May 03 06:29:11 I just got my first android device, so i'm not sure how much the features differ from version to version May 03 06:30:20 its not a big deal but i have errors in my error log: main.xml Failed to find style mapViewStyle in current theme. my app works perfectly fine. is there anything i ought to do about this ? May 03 06:32:31 not if its working May 03 06:32:37 just search for where that is mentioned and remove May 03 06:32:50 I'm googling it. it seems to be a bug in eclipse May 03 06:37:26 t0mless: doesn't work, still returning 0 May 03 06:38:01 does it make sense to have an activity wiht no gui? i want a network sort of module and i thought i could reuse the lifecycle stuff, or maybe im being silly May 03 06:38:18 eh? May 03 06:38:19 what? May 03 06:38:31 gaz`: you can use a service or worker fragment May 03 06:38:32 Is the selection animation when you click on an item in a ListView available for use? (new items add to this list dynamically, and when they appear I want that animation to fire on the new one) May 03 06:38:39 t0mless: the suggestion you made doesn't work, getMeasuredWidth or Height doesn't work May 03 06:38:50 if you need something that hooks into the activity lifecycle, worker fragment works well May 03 06:38:50 im sticking with 2.1 for now May 03 06:39:00 ah May 03 06:39:06 gaz`: so ? May 03 06:39:08 im suprised ppl arent sticking to 2.1 May 03 06:39:13 i thought frags was new May 03 06:39:16 i stick to 2.2 May 03 06:39:31 see the compat lib - man, you've been living under a rock ! May 03 06:39:38 oh May 03 06:39:44 all this actionbarshelock stuff? May 03 06:39:49 yeh i kinda have been under a rock May 03 06:39:51 more like " d'oh " May 03 06:39:59 no, not abs May 03 06:40:14 http://developer.android.com/sdk/compatibility-library.html May 03 06:40:15 Tada May 03 06:40:36 aha May 03 06:40:45 not sure if its even worth it tho May 03 06:40:55 ( pen ): are you calling it before your view is laid out/measured? May 03 06:41:22 t0mless: I don't know, it should be. I am calling it after it is retrieved from the function findViewById May 03 06:41:35 call it after onCreate() ends May 03 06:41:41 and then you should be good May 03 06:41:57 t0mless: I need to set some values before the end of onCreate May 03 06:42:49 it can't be done in onSTart()? May 03 06:43:14 gaz`: Fragments are pretty awesome, I'd say it is worth it. May 03 06:43:55 t0mless: I think so, as long as I can get the view May 03 06:44:02 t0mless: that will work in onStart? May 03 06:44:22 you can get the view whenever you want May 03 06:45:43 Knossos i guess so, i went to a dev lab on them and i cant even remember what makes them so good :) May 03 06:50:27 t0mless: how do I override onStart? it doesn't seem to work in onStart either May 03 06:53:29 t0mless: ok, I think I overridden the method, but it doesn't work May 03 06:53:41 Views aren't measured until some time after onResume May 03 06:55:03 Is it possible to have unique PendingIntents for the same intent? May 03 06:55:30 isn't there like an onInflateFinsihed() callback? May 03 06:57:08 inflated doesn't necessarily mean measured :p May 03 07:03:04 so when can I call the method? May 03 07:04:44 after your views have been measured :) May 03 07:04:47 Is there no way to change an EditText's cursor color programatically? May 03 07:05:19 t0mless: how do I know? May 03 07:05:22 SimonVT: after onResume? i would think onStart May 03 07:05:25 t0mless: is there a callback somewhere? May 03 07:05:36 t0mless: onInfalteFinished? I don't know May 03 07:06:10 g00s: How so? May 03 07:06:32 the views are visible after onStart, so … May 03 07:06:48 all of the sizing metrics should be available then May 03 07:07:45 So it's as simple as just getting the size in onResume? May 03 07:07:54 i would think so May 03 07:08:10 g00s: is there any callback after onStart that I can call? I override onStart and call super onStart before adding my code, but I still can't get the measured width May 03 07:09:34 pen: get the size in onResume May 03 07:10:05 g00s: will that be called always? May 03 07:10:26 not *always* May 03 07:10:33 did you read the lifecycle docs ? May 03 07:10:35 :) May 03 07:10:45 g00s: yes, and I still can't get the width May 03 07:11:22 weird May 03 07:12:43 mental note: don't take vitamins after eating peanut butter May 03 07:15:46 g00s: is there other ways to get the dimension May 03 07:16:13 if i start an activity using startActivity how do i know when the activity ends ? May 03 07:16:24 you don't May 03 07:16:36 devslash: isFinishing() May 03 07:16:51 is that for the activity thats finishing ? May 03 07:17:05 because I need to detect when the calling activity resumes May 03 07:17:08 you can only know when the activity ends if you startActivityForResult May 03 07:17:14 devslash, that's easy, you have onResume May 03 07:17:25 i added a toast after startActivity but it isn't displayed May 03 07:18:18 devslash: please go read the lifecycle docs a couple more times May 03 07:18:40 once you startActivity, you've replaced your activity with the new one May 03 07:18:41 Also, make sure you call show() ;d May 03 07:19:09 Leeds: what phone are you using nowadays ? May 03 07:19:14 of course May 03 07:19:16 g00s: One X May 03 07:19:50 i'm still using my droid-1 :D May 03 07:20:04 * g00s prepares to be the butt of jokes May 03 07:20:22 hmm May 03 07:20:22 You've been for a long time :p May 03 07:20:35 :) May 03 07:20:39 uh, the One X has Sense May 03 07:20:54 i think HTC is kinda screwed May 03 07:20:56 dose android have support for something like html's Even Stream (http://goo.gl/rlEQd) or something similar? May 03 07:21:16 g00s does that look right to you ? May 03 07:21:19 http://pastebin.com/EDW8NU6D May 03 07:21:31 devslash: forgot show() May 03 07:21:43 hehe, how many people fuck that up May 03 07:21:49 doesn't lint have something for that now ? May 03 07:22:40 g00s: what context do i call show on May 03 07:23:02 I'm not seeing the toast message at all so its not getting called May 03 07:23:02 g00s: my One X has... less Sense - replacement lockscreen and launcher makes things tolerable May 03 07:23:02 g00s: Not until next ADT May 03 07:23:14 devslash: Toast.makeText().show() May 03 07:23:21 oh woops May 03 07:23:42 * SimonVT called it long ago :p May 03 07:24:58 One X looks pretty schnazzy May 03 07:27:48 it's pretty nice May 03 07:29:22 wtf is the logcat window in eclipse just broken May 03 07:29:26 rarely works May 03 07:33:04 g00s: ok that worked with 1 little quirk. when my app first loads, on resume is called May 03 07:33:29 when the app first loads May 03 07:37:11 hey May 03 07:37:21 how would you go about "darkening" the whole scene with canvas? May 03 07:37:32 Well, that's why you use startActivityForResult if you need a callback when returning from another activity May 03 07:37:34 I tried drawColor (also with the PorterDuff) but it's kinda slow May 03 07:38:08 fastest seems to be pure drawColor at end of drawing cycle with an appropriate alpha value but I still lose quite a load of FPS May 03 07:38:50 well I actually need a sort of color "overlay" more than just darkening May 03 07:41:49 im looking for some way to receiving streaming data (not media, plain text data) from an http server. Dose android support event stream, chunked data, or websockets? May 03 07:52:53 I'm getting an error in eclipse loadAndParseRClass failed to find class com.mypackagename. anyone know how to fix it '? May 03 08:11:28 I am creating an app where i need to show some locations on maps with pins on it.And when user taps on pin, it should show a popup dialog over the map pin to show some info about the location.Everything is working fine ,but when i zoom in /out map the popup dialog moves far / moves close from / to the pin.Can anyone tell me how can i make the popup dialog above the pin always even after zooming in /out the map? May 03 08:31:54 can anyone help me for the question i have posted above May 03 08:31:57 ? May 03 08:37:28 trying to add a project refernece in eclipse but i see no "add" button? May 03 08:40:03 where do library projects need to be before they come up in the list in properties->androd->libraries->add? May 03 08:41:45 In your workspace May 03 08:43:17 hmm i dont seeit May 03 08:43:37 Is is actually marked as a library project? May 03 08:43:50 yes May 03 08:43:57 its this https://github.com/johannilsson/android-actionbar/blob/master/README.md May 03 08:46:50 trying actionbarsherlock May 03 08:46:53 same tho nothing in the list May 03 08:46:54 how weird May 03 08:49:25 JakeWharton how do i use this ABS :) May 03 08:50:46 include the project, make your activities extend SherlockActivity, set the theme to Theme.Sherlock May 03 08:50:49 done May 03 08:52:54 trying to work out how to include the project May 03 08:53:26 mark it as a library project, addit May 03 08:53:34 maybe restart eclipse if it is bugging out on you May 03 08:54:09 well i made a new proj with library as src, i go into android->libary and tick "is library" ? May 03 08:55:09 hmm says manifest is missingi nabs May 03 08:55:30 confusing May 03 08:56:42 What kind of project did you make? May 03 08:57:08 android -> create new project from existing src May 03 08:57:14 Yes, you check "is library" if it's a library May 03 08:57:59 so i have to make a manifest for this or something? May 03 08:58:49 http://developer.android.com/guide/developing/projects/projects-eclipse.html#SettingUpLibraryProject May 03 08:59:12 shame there isnt just some docs May 03 08:59:14 that explain it properly May 03 08:59:40 i presume u just copy manifest from abs/library May 03 08:59:50 gaz`: Read above May 03 09:00:11 i dont get it May 03 09:00:19 why do i need to make a manifest surely thats part of this thing May 03 09:01:21 grr May 03 09:01:50 makes no sense May 03 09:01:59 prob not worth bothering with i assume May 03 09:03:26 ABS is one of the most useful libraries I've come across, so I would certainly try to get it to work if I were you. May 03 09:04:27 yeh May 03 09:04:35 its very difficult to work it out tho May 03 09:04:55 i did -> If you’re using the Eclipse Development Environment with the ADT plugin version 0.9.7 or greater you can include ActionBarSherlock as a library project. Create a new Android project in Eclipse using the library/ folder as the existing source. May 03 09:05:27 Very difficult? May 03 09:05:28 now what? it comes up with a project with a red cross says no manifest, i also dont understand this: Then, in your project properties, add the created project under the ‘Libraries’ section of the ‘Android’ category. - does it mean in the new project or the project i want to use it in? May 03 09:05:35 Create a project, I suppose you came that far May 03 09:05:39 Then check "is library" May 03 09:05:45 Success, you got a library project May 03 09:05:47 Now include it May 03 09:05:54 so it doesnt need a manifest? May 03 09:05:59 Sure it does May 03 09:06:02 You need to create the manifest file, as the Android docs suggest May 03 09:06:03 ABS also includes one May 03 09:06:12 so i copy theirs over into my new proj dir? May 03 09:06:53 If you failed to copy the manifest, sure May 03 09:07:06 well i made a new proj as it said May 03 09:07:08 hello. about one week ago, someone here did not recommend the use of timers, and suggested something iirc sounds like AlarmMessage, but i couldn't find it :/ May 03 09:07:13 so it mustnt have grabbed theirs May 03 09:07:27 ekh: What is your goal? May 03 09:07:54 Knossos: To call a specific method repeatedly every X May 03 09:08:06 For that I would use a Handler May 03 09:08:10 ekh: what is X, and what does the method do? May 03 09:08:29 calling something every hour is different from every 5 seconds May 03 09:08:31 man i could complete a rubics cube quicker than gettin this to work May 03 09:08:38 True, Leeds May 03 09:08:38 LeedsHK: Method does pull data off a webservice, and update the adapter, and X is every 5 seconds for example May 03 09:08:39 now needs 1pi 14.. ? May 03 09:08:49 api 14 May 03 09:08:53 can i just use 15? May 03 09:08:54 13.1414 May 03 09:09:23 ekh: you're going to pull from the 'net every 5 seconds? way to kill battery and run up to data caps May 03 09:09:24 that wasn't a very accurate pi :P May 03 09:09:58 LeedsHK: it is a prove of concept. May 03 09:10:08 proof* May 03 09:10:11 ekh: no excuse for doing dumb stuff May 03 09:10:14 ekh: Though I agree with Leeds, you would want a Handler for this purpose May 03 09:10:37 I'd also make sure you only ask for updates intelligently May 03 09:11:15 Sometimes you can know that you don't need to update and you can make sure that your App fires a request off in 5 minutes instead of 5 seconds. May 03 09:11:22 hmm, what are you suggesting then? something like notification push? May 03 09:11:53 If your webservice has a cache-for style return, for example. May 03 09:12:51 You could look into C2MD if you want to avoid constant polling. May 03 09:13:06 C2DM, even May 03 09:13:18 https://developers.google.com/android/c2dm/ May 03 09:13:45 That way your webservice can send a message to your device VIA google in order to tell your device it needs to update. May 03 09:14:13 sounds good May 03 09:14:25 but kinda way over the current requirements May 03 09:16:10 If it is a proof of concept to show investors or your boss that something is possible, then fine. But if you are going to make an App that updates every 5 seconds and put that into production you are going to have some angry users ;P May 03 09:16:50 yeah it is just proof of concept May 03 09:18:36 ekh: Example of Handler, from Android docs: http://developer.android.com/resources/articles/timed-ui-updates.html May 03 09:19:01 hmm the samples with abs dont import into eclipse either May 03 09:19:15 very nice :) May 03 09:19:35 i got abs into my project now trying to work out how to use it, i see project.proprties in the sample/demo dir too but eclipse says no proj found May 03 09:21:28 google is kidding me, no? May 03 09:21:39 no google market on the emulator May 03 09:21:47 I'm afraid I am not sure what is causing your problems gaz`. It was fairly simple to set up when I did it. May 03 09:21:57 and google play doesn;t play with the emulator if market is not intalled May 03 09:22:06 so how am i supposed to test stuff? :D May 03 09:22:22 Can you use a device to test?> May 03 09:22:25 were u able to import the example projects Knossos? May 03 09:22:35 I didn't try May 03 09:24:56 HMM May 03 09:25:02 now it cant find ay of the strings May 03 09:25:06 in the sample project May 03 09:25:24 Make sure it isnt doing something silly like importing android.R May 03 09:25:32 this is in the manifest May 03 09:26:04 i think this looks way too mad to use now May 03 09:27:50 i wonder what reasons there could be for play.google.com to find my app incompatible with my samsung pad.. May 03 09:27:52 May 03 09:27:55 why cant it find these May 03 09:28:11 it's android 2.2 and up May 03 09:28:21 minSdkVersion and targetSdkVersion is 8 May 03 09:28:56 just because i have all drawables in drawable/ and not separated into the different directories? May 03 09:29:10 it would be nice if google play gave a reason :D May 03 09:29:19 no tapas, that would just make lint grumpy May 03 09:31:30 interesting enough i could perfectly deploy it to the device during development.. May 03 09:31:48 hmm May 03 09:31:48 and also offering a direct link with the APK works fine to install to the device IIRC.. May 03 09:31:49 what a mess May 03 09:31:51 Hey guys.. I'm in process of designing an android application that will need to parse an xml to populate all of its fields. The xml file has about 1000 videos which are in their own parent sections. So I'd need to parse level by level I guess for speed. Am I right in thinking that I should just use the standard java XML(SAX)/DOM apis to do this? May 03 09:31:54 now getting class not found exceptions May 03 09:32:00 i wonder what logic google play uses to determine compatibility May 03 09:33:10 Timmaah1201: I would assume so May 03 09:33:59 abs samplesdont even work May 03 09:34:02 time to give up on it May 03 09:34:02 tapas: could you link me to it? on google play May 03 09:34:03 And it would be plausible to do something like that? I've not missed something obvious? It would be able to parse the parent xml nodes and populate them before the intro screen ended? May 03 09:35:28 Well you are going to have to parse it one way or another, I have no idea whether it will go before your intro screen ends. You could load the first N xml records to populate the screen initially and then update again after it has gone through all of the records. May 03 09:35:38 Timmaah1201: i might be wrong, but i think parsing is not the slowest part. network and building gui might be slower May 03 09:35:39 Knossos: sure May 03 09:35:59 cool, thanks guys May 03 09:36:00 That sounds about right miha May 03 09:36:03 Knossos: https://play.google.com/store/apps/details?id=uandi.Sita.app&feature=search_result#?t=W251bGwsMSwxLDEsInVhbmRpLlNpdGEuYXBwIl0. May 03 09:36:22 Knossos: probably i'm missing something obvious May 03 09:36:24 might be better to have some pre-coded parent names, and if theyre different change them otherwise parse all the children May 03 09:38:12 I can't see anything obvious that would be an issue May 03 09:38:49 ok got it going, im clueless with eclipse May 03 09:39:10 Good stuff gaz`, what did you miss? May 03 09:39:28 Knossos: yeah, me neither.. also google play simply gives no reason.. May 03 09:39:39 seems like some resources didnt copy for some reason May 03 09:39:46 we also deployed an update yesterday and again today and it doesn't show up either.. May 03 09:39:59 It may be a long shot, but have you banned any specific devices? May 03 09:39:59 i need to make a header/action bar that is sort of over the top of the content May 03 09:40:06 so when things scroll left and right they do so under it May 03 09:40:54 cool, thanks knossos, miha May 03 09:41:44 the method WifiInfo.getRssi() seems to return dbm value instead May 03 09:42:24 it seems google play is just a little overeager with checking for compatibility.. May 03 09:42:28 Knossos: That was a good example of Handler :) however, i've got a question. The author used the initial time to be System.currentTimeMillis() and then subtract it from SystemClock.uptimeMillis() May 03 09:42:30 it is a typo? May 03 09:42:41 maybe the dpi of the galaxy is just "too damn high" (tm) May 03 09:45:05 ah ok.. May 03 09:45:10 http://developer.android.com/guide/topics/manifest/supports-screens-element.html May 03 09:45:13 this might be it.. May 03 09:45:33 android:largeScreens *might* be the culprit May 03 09:46:36 ekh: I normally use this : h.sendEmptyMessageDelayed(what, delayMillis); May 03 09:47:10 If you are after 5 seconds, you would just supply a delay of 5000 and you are away. May 03 09:49:06 ah interesting.. when i target android 8 the android:xlargeScreens attribute is not available May 03 09:49:10 haha tapas i was googling and saw u get mentioned May 03 09:49:12 "Tapas" on the freenode #android-dev irc channel came with the following utility method: May 03 09:49:22 from - http://stackoverflow.com/questions/4336286/tiled-drawable-sometimes-stretches/5852198#5852198 May 03 09:49:24 tapas: Set the target high May 03 09:50:00 Knossos: the highest that i tested with? May 03 09:50:11 Well May 03 09:50:19 I guess it depends if you are using new features. May 03 09:50:33 no we aren't :D May 03 09:50:33 But I always set target to the highest and go backwards compatible with things like ABS May 03 09:50:39 android-8 all the way May 03 09:50:55 Knossos: I am still confused. That piece of line send the message "(int) what" to whom? May 03 09:51:41 gaz`: :D i'm more prominent on google as mista.tapas though.. lots of linux audio posts and stuff from me :D May 03 09:51:46 "what" is just a way to differentiate for what reason the handler is being called. If you only have one usage for the Handler you can just assign any integer you want. May 03 09:53:16 oh I get it. and execute what I want inside handMessage? May 03 09:53:34 Yeah May 03 09:53:44 great May 03 09:54:42 Ithought the whole point of ABS was to provide an action bar at the top that cna stay between activities, but it still dissapear and reappears May 03 09:55:18 No, the whole point of the actionbar is to provide relevant buttons for the task currently at hand May 03 09:55:32 That is my intepretation anyway May 03 09:55:53 http://developer.android.com/guide/topics/ui/actionbar.html May 03 09:55:58 so is there a way to make a bar at the top that is always there May 03 09:56:02 The gmail app for example has archive, mark as read, etc as buttons May 03 09:56:52 You can't have a view that persists between activities, you can recreate the view when you make the new activity. Or just have the same icons on the actionbar in both activities. May 03 09:56:52 Just use a single activity, then it'll always stay at the top May 03 09:57:11 i cant really do that SimonT May 03 09:57:16 ah its not possible May 03 09:57:28 as usual im trying to clone ios designs May 03 09:57:38 Doing it wrong is not supported May 03 09:57:46 You can use fragments gaz May 03 09:58:00 fragments can do that? May 03 09:58:00 Put your current activities into fragments that you can place in a single activity May 03 09:58:10 ah May 03 09:58:11 damn May 03 09:58:17 was trying to avoid fragments May 03 09:58:29 See my previous comment about how awesome fragments are ;P May 03 09:58:39 i just remember thinking, what a nightmare1 May 03 09:58:41 ! May 03 09:58:46 when i was at the google fragments dev lab May 03 09:59:02 You have to alter your thought patterns a bit when designing, but it works very well May 03 09:59:30 yeh May 03 09:59:35 gues ill have to get into them May 03 09:59:39 or maybe not May 03 09:59:43 just say sorry cant do that May 03 10:00:07 You will have to learn to use them sooner or later May 03 10:00:12 true May 03 10:00:23 just under some time constraints May 03 10:00:24 All new tools and features are based around fragments May 03 10:00:40 so i can do fragment stuff using abs right? May 03 10:00:46 yes May 03 10:00:48 even with low api like 2.1? May 03 10:00:55 even with 1.6, iirc May 03 10:01:00 ok cool May 03 10:01:32 hmm May 03 10:01:35 no examples of htis tho May 03 10:01:41 argh i need food i think May 03 10:05:53 Ok. I want to integrate with a PC, and adb is good, but I wouldn't want to require users to install the SDK or enable USB debugging. Any ideas? May 03 10:06:11 Does anyone have a nice maps pop-up balloon image (from the public domain)? May 03 10:06:26 "integrate" May 03 10:06:33 What does that mean? :) May 03 10:06:58 hey guys May 03 10:07:07 USB storage would also work for me, but the SD card can only be accessed by one or the other. May 03 10:07:32 why does eclipse refuse to acknonwledge projects now that i renstalled, it says that no projects exist in the api demos May 03 10:08:20 HDroid: I want to, at least, be able to send bits of text to the phone that I can process with an app. May 03 10:09:31 I'm considering using the net, but then I'll have to maintain a server for it, plus security issues arise. May 03 10:09:46 I don't see how you'd achieve that without some sort of companion app (or a web app). But it wouldn't be too hard to write one, based on sockets or a web service. May 03 10:10:37 gaz`: That's weird. Can you not navigate to them explicitly? May 03 10:11:37 HDroid: ok. It seems like it would be possible, though, to use USB. =\ May 03 10:11:46 HDroid: Thanks. May 03 10:12:03 rking: probably but not without an app and/or a driver May 03 10:12:58 adb somehow talks... I wonder how. May 03 10:14:43 rking: You can create a socket server on your phone May 03 10:15:01 Or you can create a server on the PC May 03 10:15:17 and connect between them as your would normally using sockets May 03 10:15:37 You could even just listen for UDP packets May 03 10:16:17 Knossos: How does the phone obtain an IP? May 03 10:16:58 From your wifi router, dhcp probably? May 03 10:18:09 Oh. Yeah... but wifi routers block comms between clients. =( May 03 10:18:54 Knossos: The wifi at my apartmemt does that, currently. May 03 10:18:55 Eh? May 03 10:19:12 You don't own the wifi? May 03 10:19:20 Communal wifi? May 03 10:19:29 No. Yes. May 03 10:19:39 Alright, then I have no idea. May 03 10:19:46 Hehe May 03 10:19:52 I imagine that you can do it over USB. However, I haven't ever tried. May 03 10:20:32 You can probably even establish a serial link. But it will need some sort of app on the PC. May 03 10:21:41 Well, I am moving, soon.. so I can then use WifiADB and such... but I'd still like a broader solution. May 03 10:22:43 HDroid: I really need to figure out what adb does. No driver needed. May 03 10:23:18 It's either plain USB serial or it has drivers included in the package. Plus you'll always have to enable USB debugging for it to work. May 03 10:23:23 strace time. May 03 10:24:37 HDroid: I could live with telling users: "Either use wifi, or enable USB debugging." May 03 10:25:27 In fact, maybe I should make them also get adb if they can't use wifi. May 03 10:26:05 Surely you cam download adb w/o requiring the whole SDK. May 03 10:26:18 s/cam/can May 03 10:26:20 Probably, isn't the source available? May 03 10:26:27 Yep. May 03 10:27:10 HDroid: Knossos: Thanks for hashing this out with me. May 03 10:28:06 No problem May 03 10:28:56 Oh yeah.. adb starts a daemon on the PC. May 03 10:28:56 incidentally, you could also allow users to connect directly with a server over the internet (even if that ip is actually your house) May 03 10:29:21 You would still require router access to send a port to your server, but that would mean you wouldnt need wifi (incase you have no wifi) May 03 10:30:53 Knossos: I am a bit hesitant to do anything but direct communication... I don't want the security holes. May 03 10:31:05 I'll describe my idea... May 03 10:31:29 The DeskSMS killer. <-- May 03 10:32:31 Let's turn it around... is there any requirement for this to not be in the browser? (security aside) May 03 10:32:52 I think I would be happy, initially, if I could use a desktop to type stuff that goes to the phone clipboatd. May 03 10:32:57 Security is easily done by something like parse.com May 03 10:33:15 HDroid: I don't think so. May 03 10:33:56 Anything involving the installation of a program or adb or local network requirements will probably put your killing spree to a halt quite quickly, the way I see it :) May 03 10:34:49 hehe May 03 10:35:28 Unless it is one option among several. May 03 10:37:35 My current plan is to hack something together that works for me. I could write a simple app that slurps the latest row of a sqlite table into the clipboard for v0.1 May 03 10:38:10 Then v0.2 could SMS it directly. May 03 10:38:50 Of course, that isn't really the challenge.. the challenge is to get that row in there in the first place :P May 03 10:39:35 v0.3 could explore other means of populating that table, like a connection to a parse.com thing (thanks for pointing that out) May 03 10:40:32 That's one possibility. The other side is, that parse.com has a very clean API and local caching, the way I see it, it's easier than dealing with sqlite. May 03 10:41:04 HDroid: I agree that is the problem for most users, but my DeskSMSs trial expires tomorrow, so I am Ok with v0.1 =) May 03 10:41:04 Also, you can quickly leverage parse.com's other features (like push messaging) to build up your product. May 03 10:41:33 HDroid: How does it push? May 03 10:41:48 "real" push I think. May 03 10:41:54 It's all API'd May 03 10:43:04 But pushing requires the phone to somehow be addressable. May 03 10:43:42 Yes, it probably registers a sync adapter and/or does some fancy reconnecting on certain intents. May 03 10:44:04 go to idnternet May 03 10:44:07 This is why I like services like parse.com... I don't want to even know how it works :) May 03 10:44:50 c2dm, push? May 03 10:46:03 Well, I am going to make this 100% free and OSS... so I'll have to emulate parse.com on my own. May 03 10:47:08 You can still make it rely on parse.com (though probably not a very good idea :) ), but if you add backend to the scope it's going to explode. May 03 10:47:19 vanson20121: Hrmm.. not finding that. May 03 10:49:52 HDroid: I am not super-eager to implement parse.com by hand, but I would if it meant DeskSMS bloodletting. May 03 10:51:01 I will not forgive how there is absolutely no indicator that DeskSMS is not free until after you install and register. May 03 10:52:21 JSONObject data = Jasonobject.getJSONObject("data"); how can i say "do this, but if there is no JsonObject to get, do something else" May 03 10:53:24 Jsonobject.tryToGetJSONObject("data").orGetJSONArray("items"); May 03 10:53:29 something like this May 03 10:53:39 there is a "has" isnt there? May 03 10:53:42 optJSONObject or something May 03 10:54:05 like if(jsonobject.has("blah")) { get... } May 03 10:55:22 Jasonobject.hat("data"); is lookinkg for an object named data? or is looking for everything with name data? May 03 10:55:46 ok, enabling largeScreen="true" didn't make the app compatible in the eyes of play.google.com May 03 10:56:12 it's totally possible to just pull the APK from our webserver and install it via the browser and it works great on the device in question May 03 10:56:19 wtf is google play thinking there? :D May 03 10:56:43 do i need to bump minSdkVersion to 9 just so i can say xlargeScreens="true" in the manifest?\ May 03 10:56:46 urks May 03 10:56:56 It's think "developer filtered out this device in his manifest, so lets not show it to users with that device" May 03 10:57:09 hi here May 03 10:57:48 SimonVT: it would be cool to know though what filter actually matched :D May 03 10:57:55 I have some question about GPS location and the norm used for the lon,lat. Somebody can tell me what is the norm of the data given by the GPS ? May 03 10:58:00 play.google.com just says "incompatible" May 03 10:58:58 What is a norm? May 03 10:59:05 tapas: Could you flood out a few dozen apps, with various manifests, and pinpoint it that way? May 03 10:59:22 eek, I wouldnt do that May 03 10:59:29 hehe May 03 10:59:29 HDroid, for example "the mercator projection" May 03 10:59:34 :D May 03 10:59:56 tapas, what was the name of your app again May 03 11:00:00 I'll check on my tablet May 03 11:00:08 https://play.google.com/store/apps/details?id=uandi.Sita.app&feature=search_result#?t=W251bGwsMSwyLDEsInVhbmRpLlNpdGEuYXBwIl0. May 03 11:00:08 Knossos: You can't easily pull them? May 03 11:00:21 Knossos: cool.. thanks :D May 03 11:00:36 No rking, you can't pull them once they are published May 03 11:00:50 You will end up with several unused apps on your dev screen May 03 11:00:54 That you cant delete May 03 11:01:41 mithrop: I'm not sure what you mean, but does this have that information? http://en.wikipedia.org/wiki/Geographic_coordinate_system May 03 11:01:53 I dont see it on google play May 03 11:01:59 I assume that means it isn't compatible May 03 11:03:08 knossos.. i suppose if you open that url in the browser on your tablet it says "incompatible"? May 03 11:03:16 the name of the app is just "Sita Tools" May 03 11:03:27 I searched for Sita Tools, it didn't show May 03 11:03:42 uandi.Sita.app is the fully qualified name May 03 11:03:43 ok.. May 03 11:03:54 Knossos: what kind of tablet is that? May 03 11:03:55 Ill check the link too May 03 11:04:01 Asus Transformer May 03 11:04:02 wow, gimp 2.8 is available :) May 03 11:04:18 HDroid, it's a good start. I am french so I have some difficulties to find the correct words :) So, I'm looking for the coordinate system used by the Android's GPS... Generally, Lon/Lat is a couple like (12.0123,21.321), but in my case, I have (4978.021,37.055)... So i don't really understand. May 03 11:04:49 Yes, device incompatible May 03 11:05:00 tapas: put your manifest on pastebin or something May 03 11:05:39 http://pastesite.com/35509 May 03 11:06:30 I would remove the supports-screens entirely May 03 11:06:51 Knossos: this is of the new version where we put in the supports-screen tags and the targetSdkVersion from 8 to 13 May 03 11:06:56 made no difference though.. May 03 11:07:07 I've never had that tag in any app of mine, works just fine May 03 11:07:10 What device doesn't it show up on? May 03 11:07:18 3.2 tablets.. May 03 11:07:20 tablets, it seems May 03 11:07:23 And I'd keep it.. Maybe add xlargeSCreens May 03 11:07:25 mine is 4.0.3 May 03 11:07:34 Well, you require the call permission May 03 11:07:37 xlargeScreens is only available from sdk level 9 on May 03 11:07:38 Not many tablets can call May 03 11:07:44 oooh :D May 03 11:07:46 Ah yes, that could be it May 03 11:07:47 oh man.. May 03 11:07:50 So? Compile against >= 9 May 03 11:08:51 mithrop: classes like GeoPoint use degrees * 1E6. May 03 11:09:16 Can be converted to decimal degrees by dividing by 1e6. May 03 11:09:36 Microdegrees they're called. May 03 11:09:44 It looks like your numbers could be that. May 03 11:10:12 Where did you get your numbers? May 03 11:10:26 hmm, is this permission actually required if one just uses an intent to call and not control the dialer oneself? May 03 11:10:40 ok. I didn't develop the app myself. These numbers are stored in a database populated by the app May 03 11:10:58 Do you have source access? May 03 11:11:14 At some point it should get converted back to a GeoPoint or Location instance. May 03 11:12:21 HDroid, I'll check right now May 03 11:16:33 Darn. I wonder why my attempt at a tether hotspt is getting stalled at the Obtaining IP step. =\ Trying both Wifi Tether Root and Cyanogenmod builtin, with both Linux and Windows clients. May 03 11:16:44 HDroid, I think developer uses Location ! May 03 11:18:56 ah ok, it seems for preloading the dialer with the phone number and leaving the final dial press to the user doesn't require the permission and is the much better solution anyways May 03 11:19:26 tapas: Sounds cool. May 03 11:19:49 Intent.ACTION_DIAL vs. Intent.ACTION_CALL May 03 11:20:04 i suppose it might still fail on a pad device :D May 03 11:20:13 but let's hope pad users won't press the phone button ;D\ May 03 11:20:30 HDroid, when I read the official API, I see this : "A class representing a geographic location sensed at a particular time (a "fix"). A location consists of a latitude and longitude, a UTC timestamp. and optionally information on altitude, speed, and bearing.". So, if my database doesn't have the "UTC" value, there is a big problem ?? May 03 11:20:34 maybe there's an exceptin to catch though.. May 03 11:21:06 and dammit OS X has ruined my UTF-8 encoding in some files again May 03 11:21:08 hate!!! :D May 03 11:21:29 MacRoman? - what millenium do we live in ffs? May 03 11:23:21 what or who is macroman? May 03 11:23:51 some weird ass apple specific encoding that is like the wasps of computers.. May 03 11:24:00 it only exists to f*ck things up :D May 03 11:24:12 mithrop: you don't need the time to convert a lat/lon to a location on a map. May 03 11:24:16 :P May 03 11:24:32 http://static.fjcdn.com/pictures/Wasp_e45706_742760.jpg May 03 11:24:57 HDroid, oh. So I don't really understand ^^ May 03 11:25:04 tapas: haha May 03 11:25:07 mithrop: what class is that? May 03 11:25:08 Location? May 03 11:25:22 HDroid, http://developer.android.com/reference/android/location/Location.html May 03 11:25:59 mithrop: location has a time so you can decide what to do based on age of the fix. May 03 11:26:27 oh. ok ... May 03 11:26:50 mithrop: if you build a location instance manually (for instance, to compare to a GPS-acquired fix), you don't need the time. May 03 11:27:25 It's only there so you can tell what the most recent location is (as there are multiple sources for GPS fixes) and decide which one to use. May 03 11:28:28 HDroid, oooh. Ok !! Thank you very much :) May 03 11:31:36 HDroid, I just talked to the original developer of the app. He told me to divide the values by 100. So I did it and now everything is ok. Do you have any ideas about this behovior ? May 03 11:31:40 *behavior May 03 11:32:58 "Why oh why" comes to mind :) May 03 11:33:48 I've seen normal degrees notation and microdegrees, never saw anything in between. May 03 11:34:03 But there must have been some reason. May 03 11:35:03 you need to convert them to "sexigesimal" if you want to see them as you expect May 03 11:35:18 HDroid, ok ^^ thank you anyway :) May 03 11:35:32 If this were my app, though, I would convert any input to either degrees or microdegrees right away and not let that sort of behavior propagate. May 03 11:35:56 I imagine these values come from some sort of legacy system, that's no reason to stretch the legacy to your app, though. May 03 11:36:31 HDroid, yes. We develop a more important project and this app is just a small part. May 03 11:54:11 Are there any good tutorials on how registration and authentication can happen between apps and servers? May 03 11:54:55 I want to write the server software in python, but I'm not really sure how to keep track of authenticated users and so forth.. May 03 11:55:41 i need to write a code to detect current android version in a android phone, how do i do that?? May 03 11:56:21 himansudas: use Build.VERSION_CODE May 03 11:57:05 cyrilmottier, thanks a lot :) May 03 11:58:58 I've read through the styles docs more than once and used them, but what I am not sure of is: when setting a style to the entire activity or application, is there a way to include a "class" that gets applied to each type of view, such as a button? May 03 11:59:09 instead of having to manually style each button May 03 12:00:19 kind of like how in css, you can use a selector? It seems you can only style attributes, and not specify that an attribute must be inside a certain element May 03 12:00:22 anyone know how i put ABS into overlay mode programatically? May 03 12:00:52 also if u use ABS do i have to declare in XML? seems i dont need to somehow May 03 12:00:58 i want to return an array into a scroll view , each row of an array on a line with the row being clickable so far i embeded a text view in a scrollview but i need to make like a seperation between each row returned, i want it to look like a contact list view May 03 12:01:02 any hints? May 03 12:01:52 ocx: why wouldn't you just use a listview May 03 12:02:10 is it scrollable? May 03 12:02:12 yes May 03 12:02:23 nice :) May 03 12:02:23 gaz`: Check the api for reference on how to do stuff: http://developer.android.com/reference/android/app/ActionBar.html May 03 12:02:30 and you have some seperations between rows? May 03 12:02:49 you get a small one by default, that I've never tried to tweak. I'm sure it can be done. May 03 12:02:56 you could use padding or margin, likely May 03 12:04:51 ok, in the abs source May 03 12:04:57 @style/MyDropDownListView May 03 12:05:03 How do I define that in my own code? May 03 12:05:15 I'd like to have a way of saying "apply this, to the foowidget" May 03 12:06:09 Isn't necessarily possible to do it in code May 03 12:06:16 how does it work in abs? May 03 12:06:35 does he handle them in his own custom views? May 03 12:06:43 why are the constants in abs' window class longs not ints... May 03 12:07:48 readme: Yes, ABS uses custom views May 03 12:08:10 so I can't have a way of saying "apply this style to that widget" unless I write a customview and traverse the AttributeSet myself? May 03 12:08:22 and my best course of action is to set the style attribute of each view in XML manually? May 03 12:08:37 damn i got so many questions about abs ;) May 03 12:09:05 readme: The dropdownlistview is inflated by ABS/the framework. You can't pass it a custom style May 03 12:09:16 It loads the style from the theme May 03 12:09:16 I'm just using it as an example May 03 12:09:18 one thing i really dont get is how it appears when i havent even specified in my xml May 03 12:09:29 I'm not actually even asking about ABS as much as how does ABS do xyz May 03 12:09:51 because it's one of the only examples I can think of that has a style that sets styles to attributes and then uses them to style a widget May 03 12:09:51 gaz`: It's ints so it can use method overloading May 03 12:10:02 so u just cast right May 03 12:10:09 Other way around May 03 12:10:21 Native requestWindowFeature takes ints May 03 12:10:29 getSupportActionBar().setDisplayOptions((int)Window.FEATURE_ACTION_BAR_OVERLAY); May 03 12:10:33 i did that May 03 12:10:33 But can't be overridden, so ABS can't catch the value May 03 12:10:56 ABS requestWindowFeature takes longs, so when you use the ABS constants, that method is called May 03 12:11:03 so if I wanted to set a global theme for my application, but then I didn't want that theme to apply to a certain class of buttons, I'd have to set style= on each button manually {y,n}? May 03 12:11:15 readme: yes May 03 12:11:43 bummer May 03 12:11:54 I'm going to think about that problem harder after I do my real work. May 03 12:11:56 SimonVT but this method takes int setDisplayOptions May 03 12:11:59 not longs May 03 12:12:03 clients don't care how many style= attrs there are :P May 03 12:12:27 thanks SimonVT May 03 12:13:16 gaz`: setDisplayOptions does not take FEATURE_ACTION_BAR_OVERLAY as a paramter May 03 12:13:29 It takes the DISPLAY_ constants in ActionBar May 03 12:13:35 oh May 03 12:13:59 hmm u sure? May 03 12:14:18 god i dont get any of this, im just trying to make something at the top thats transparent and sits above other stuff May 03 12:14:21 Hmm did you check the docs? May 03 12:14:26 i dont think i need an actionbar at all really thought it mightt be nice May 03 12:15:27 FEATURE_ constants are used with requestWindowFeature May 03 12:15:34 * readme set the noactionbar theme in the app he is developing.. mockups didn't have an actionbar in them :P May 03 12:16:30 * gaz` head explodes May 03 12:16:49 saw this on twitter yesterday http://tinyurl.com/8y3orkj May 03 12:17:24 so how do i make it in overlay mode.. May 03 12:17:26 :-x May 03 12:17:33 readme: nice May 03 12:17:39 even supports ABS May 03 12:17:44 im minutes away from tearing thi whole thing out and doing it the normal way May 03 12:17:48 14:15 FEATURE_ constants are used with requestWindowFeature May 03 12:17:54 i see no benefits at all from it TBH May 03 12:17:55 yeah :D May 03 12:17:57 Guess what method you gotta use May 03 12:18:06 that method doesnt exist May 03 12:18:16 It exists in activity May 03 12:18:24 but i want to call this on the actionbar May 03 12:18:28 not on the activity May 03 12:18:29 .. May 03 12:18:37 Yea, you should probably give up May 03 12:18:43 yeh May 03 12:18:45 pita May 03 12:19:11 ah u mean cause it extends abs etc May 03 12:19:15 man this is confusing May 03 12:19:44 No? May 03 12:20:00 I mean, no matter if you use ABS or the native implementation, FEATURE_ constants are used with requestWindowFeature May 03 12:20:04 SimonVT i thought you were SimonT the other day :( May 03 12:20:11 im not trying to do that tho May 03 12:20:18 im trying to make the AB in overlay mode May 03 12:20:27 I give up May 03 12:20:32 :D May 03 12:20:33 -dev-dev May 03 12:21:31 shame i got so many more annoying questions :) May 03 12:21:44 like i saw this done in xml thats fine but i dont even know where to specify it or if i have to May 03 12:21:48 how do i maek a listview work May 03 12:21:54 i put it in a scrollview May 03 12:21:57 canadiancow: just use actionbar sherlock May 03 12:22:01 duh May 03 12:22:01 but im getting out of memory May 03 12:22:18 so then i put a listview in a listview May 03 12:22:21 in a scrollview May 03 12:22:24 lol maybe if you weren't using a bloated stock rom you'd have memory left May 03 12:22:27 use modcyanogen May 03 12:22:53 but my roms on froyo...i dont want to downgrade to CM May 03 12:22:59 did u root? May 03 12:23:07 Guys, #android-root please May 03 12:23:09 no, that will hurt my baby May 03 12:23:17 o ok May 03 12:23:21 SimonVT, -dev-dev May 03 12:23:32 is empty May 03 12:23:43 #isEmpty() May 03 12:23:51 anyway - going to work May 03 12:23:53 bbiab May 03 12:26:02 cyrilmottier, System.getProperty("os.build.version.release")); gives me a null :( May 03 12:26:03 ?? May 03 12:30:37 himansudas: http://android-coding.blogspot.com/2011/02/get-android-os-info-from-androidosbuild.html May 03 12:30:53 it's case sensitive I guess May 03 12:31:11 or it's not a system propertu May 03 12:31:13 property May 03 12:31:16 just a constant May 03 12:31:33 anyway RTFM May 03 12:33:00 k setListAdapter(new ArrayAdapter what are these < > used for? May 03 12:33:04 May 03 12:33:08 never saw that in java May 03 12:33:31 aw May 03 12:33:35 those are for generics, ocx May 03 12:33:37 read about them May 03 12:33:49 what is their name May 03 12:33:50 ocx: http://www.oracle.com/technetwork/articles/javase/generics-136597.html May 03 12:33:52 ArrayAdapter<> can contain any type May 03 12:33:53 where can i read about them May 03 12:33:54 ocx: generics... May 03 12:33:56 ok thans May 03 12:34:05 * readme facepalm May 03 12:34:18 only relted to android May 03 12:34:19 ? May 03 12:34:23 ocx: no May 03 12:34:24 no, it's java May 03 12:34:29 ok i am reading thanks guys May 03 12:34:46 lol May 03 12:35:41 Snuffel, awesome, thanks a lot for the link :) May 03 12:35:53 himansudas: i googled that May 03 12:36:28 What's this google you speak of May 03 12:36:35 an oracle May 03 12:36:49 I don't think google likes oracles May 03 12:36:51 What's the oracle you speak of May 03 12:37:03 ahh dumping the whole idea of actionbar May 03 12:37:08 way too much to learn May 03 12:37:23 party like it's '10 May 03 12:38:01 i think all the fragments and actionBar stuff should be left til u really know whats going on May 03 12:38:11 WOAH HE'S DUMPING THE ACTIONBAR May 03 12:38:17 yep! May 03 12:38:19 its going!! May 03 12:38:19 omg May 03 12:38:27 * Snuffel waves May 03 12:38:28 very complex mess of craziness May 03 12:38:30 bye bye actionbar May 03 12:38:33 with poor docs all over May 03 12:38:40 I blame JakeWharton May 03 12:38:45 hehe May 03 12:39:01 im the sort of guy who still hasnt moved onto using generics May 03 12:39:05 or away from vectors :) May 03 12:39:11 Snuffel, u are awesome :D May 03 12:39:26 dude, you're the sort of guy who hasn't moved onto using long filenames May 03 12:39:37 haha well amiga always had them so im ok there May 03 12:39:39 :) May 03 12:39:59 really dont see why u cant just design the actionbar stuff in xml May 03 12:40:02 okay, you're the sort of guy who hasn't moved on from the amiga May 03 12:40:03 and use it as usual May 03 12:40:07 yep May 03 12:40:56 hehe May 03 12:41:22 i hate poor docs too May 03 12:42:01 i like spoon feeding docs May 03 12:42:05 that actually tell u what u want May 03 12:42:09 without trying to be smart :) May 03 12:42:11 java blows May 03 12:42:28 i seem to notice it more and more May 03 12:42:28 and i dont want much just a bloody butto nand some transparency May 03 12:42:29 i can make a comment about someone's mommy May 03 12:42:31 but I won't May 03 12:43:14 it is weekend yet May 03 12:43:19 uhm May 03 12:43:19 public void download(String url, ImageView imageView) { May 03 12:43:20 is it May 03 12:43:45 how many languages do u have to cast every param May 03 12:43:47 one day to go :( May 03 12:44:13 dominicdinada: how many dictionaries do you need to speak english May 03 12:44:28 snuffel plenty :) May 03 12:44:29 dominicdinada u shouldnt have to cast that often May 03 12:45:07 the point of having to cast anything everytime May 03 12:45:12 i work with oracle stuff and I keep casting oracle.jbo.domain.Date to java.util.Date or java.sql Date all the time May 03 12:45:25 should be a string unless casted otherwise May 03 12:45:38 not having to cast everything May 03 12:45:43 dominicdinada: do you mean cast, or declare type? May 03 12:46:01 are you coming from a dynamic or weak-typed language? May 03 12:46:08 i use both as the language May 03 12:46:10 php ! So much easier May 03 12:46:27 so much crappier! May 03 12:46:40 \o/ May 03 12:46:45 leeds yes php was last stop ironic its so much better since 5 May 03 12:47:02 it's inherently broken as 'designed' May 03 12:47:11 but lets not kid outselves java isnt high level either May 03 12:47:19 ourselves May 03 12:48:08 people see php as.... well php has got objects and all the rest now a good php writer would use classes and oop not sloopy procedural May 03 12:48:12 they're all high level May 03 12:48:29 java is quite high level May 03 12:48:32 don't confuse high level with object oriented May 03 12:48:50 My main language has been perl... the data structures in perl is so yummy, so easy to create really complex ones... and so easy to handle text parsing etc May 03 12:48:51 no python and ruby asm etc as defined are high level May 03 12:49:04 asm??? May 03 12:49:10 troll :-P May 03 12:49:14 assmebly May 03 12:49:14 yeah May 03 12:49:23 asm can be OO, right? :) May 03 12:49:40 no oop isnt hight level god php isnt highlevel May 03 12:49:45 nor java May 03 12:50:06 but point made having to tell java everythings datatype May 03 12:50:17 did you just say assembly is high level? May 03 12:50:33 everything in any language should be treated as a string unless otherwise noted May 03 12:50:39 wongk it isnt ? May 03 12:50:43 asm can be OO, right? or nothing compiled would ever be OO? :) May 03 12:50:49 we have different definitions of high level May 03 12:50:56 okay, there is nonsense here now May 03 12:51:04 so no point in me continuing this conversation May 03 12:51:34 * miha troll May 03 12:52:59 * miha happy to finally learn how to GLU.gluUnProject ..one little step for mankind, one giant leap for me :) May 03 12:53:08 :) May 03 12:53:16 small victories~ May 03 12:53:28 only big defeats May 03 12:53:59 funny how opengl tutorials arent really..detailed.. on this.. and half mention some framebuffer.. http://stackoverflow.com/questions/9906759/opengl-gluunproject-returns-wrong-coordinates answer here finally made sense May 03 12:54:04 * hackkitten shakes her paw at the skies~ May 03 12:54:09 hey hackkitten May 03 12:54:11 how's life May 03 12:54:16 hi Snuffel :) May 03 12:54:20 not too bad May 03 12:54:25 things are moving ahead slowly May 03 12:54:29 oh May 03 12:54:34 so no change in the passport yet? May 03 12:54:43 2 months left on that May 03 12:54:51 yay formalities May 03 12:54:57 I also defied one of the tenets of being a geek May 03 12:55:35 tenwhat? May 03 12:55:39 you washed? May 03 12:55:44 how to write app in php plz May 03 12:56:19 lol readme May 03 12:56:23 troll May 03 12:56:48 funny id say 90% of apps connect to a php backend tho May 03 12:57:07 Leeds > nah, got a gf May 03 12:57:26 hackkitten: oh, good work... me too :) May 03 12:57:26 hackkitten: i was going to say that! May 03 12:57:34 hackkitten: i didn't know you were into women May 03 12:58:03 * hackkitten is universally compatible May 03 12:58:10 hehe May 03 12:58:15 fully programmed in multiple techniques~ May 03 12:58:20 and fully functional~ May 03 12:58:25 * hackkitten tilts head May 03 12:58:28 meow ^-^ May 03 12:58:34 oh shit, i keep asking my self why I get a nullpointerexception when I don't do a return after creating an errormessage May 03 12:58:36 * hackkitten hi-paws Leeds May 03 12:58:37 nice goign May 03 12:58:41 * alankila hopes universal is rather human-centric May 03 12:58:47 cd /bac May 03 12:58:47 df May 03 12:58:49 argh May 03 12:59:05 wasn't ruby on rails a bust btw :) May 03 12:59:17 alankila > you don't discriminate against non-humans, do you? :< May 03 12:59:21 so, how bout that android May 03 12:59:25 is it possible to send html email with inline images? May 03 12:59:26 :P May 03 12:59:26 hackkitten: not cats May 03 12:59:30 if that's what you're worried about May 03 12:59:39 dominicdinada > most languages and frameworks are a bust, they just turn into zombies along with their followers May 03 12:59:40 elye: generally, or in Android? May 03 12:59:43 my neck if stiff May 03 12:59:44 is May 03 12:59:47 i need a holiday May 03 12:59:50 Leeds, android of course May 03 12:59:55 the universal truth of programming: everything is shit May 03 12:59:59 Snuffel > I give good massages~ May 03 13:00:01 stock email client May 03 13:00:15 alankila > except for your own code May 03 13:00:17 hackkitten: but you have a girlfriend! May 03 13:00:22 hackkitten: not as bad as the ruby on rails May 03 13:00:30 so much hype May 03 13:00:35 Snuffel > and? I didn't propose doing the nasty with you, did I? :P May 03 13:00:39 elye: as a user? May 03 13:00:42 wongk: dude you know android? May 03 13:00:44 hackkitten: yes you did May 03 13:00:49 dominicdinada > I'm still waiting for Java to die, TBH :< May 03 13:00:58 * hackkitten pokes Snuffel's lively imagination~ May 03 13:00:58 readme: yo dawg, i heard you like php May 03 13:01:07 :D May 03 13:01:10 hackkiitten lol May 03 13:01:11 wongk: yeah i'm working on port of android to php May 03 13:01:12 * hackkitten likes PHP May 03 13:01:15 hackkitten: nah, my own code is the most browniest and smelliest of them all May 03 13:01:18 hah May 03 13:01:21 :D May 03 13:01:22 same with all the php haters May 03 13:01:23 that is why I keep a strict policy to write as little of it as possible May 03 13:01:24 Leeds, no from application, via intent normally May 03 13:01:29 alankila > acceptance is good :3 May 03 13:01:49 who havent seen its worth in the 10 years they got frusterated or how about scala May 03 13:02:08 actually the 20 years next year its been around May 03 13:02:29 Leeds, so far I only succeeded in sending links ans attaching images, but no luck with inline images May 03 13:03:24 I detest PHP, but it has paid my bills for the past 4ish years - so I shouldn't be ungrateful May 03 13:03:39 someone actually sent me $150 today because I fixed his server over ssh. May 03 13:04:00 http://grooveshark.com/playlist/Tetris/70129952 May 03 13:04:03 (it was that or shoes, his website was selling shoes) May 03 13:04:09 i made a playlist May 03 13:04:17 php has lots of flaws and limitations but it has been around forever and evolved like microsoft lol :) May 03 13:05:26 elye: got to be honest, I don't know - I was just trying to clarify your question May 03 13:05:29 php is actually growing up. It's still miserably shitty language and piss-poor implementation, but the stupid early decisions at least are going away May 03 13:05:49 some of the code I've seen from the PHP codebase is so bad it is possibly the worst I've seen May 03 13:05:58 php is here to stay, unfortunately May 03 13:06:00 PHP beats JSP May 03 13:06:06 and VB.NET May 03 13:06:09 * hackkitten twitches~ May 03 13:06:17 alankila: and most ppl see old procedural code insteady of its growing force as a oop language May 03 13:06:23 congrats btw May 03 13:06:23 or ASP in VB.NET May 03 13:06:24 my problem is that there's an immense amount of unbelievably bad legacy php out there May 03 13:06:29 for instance they once struggled with integer overflow and tried to fix that by calculating string length using single-precision floating point... which is not accurate but to about 25 bits so if you allocated longer than 16 MB string, I guess you got some random almost that amount of memory for your string May 03 13:06:34 these guys are funny monkeys May 03 13:06:40 i wouldnt touch asp or vb.net ever May 03 13:06:44 ASP is so ugly, not touching it May 03 13:07:00 my next big project appears to be rewriting an existing ASP prototype in... well, in whatever I like, so it'll be python May 03 13:07:38 <3 python May 03 13:07:42 any what ever tried correct me on cast or define its typecast May 03 13:07:43 the guy who wrote that string allocator clearly had some trouble understanding C data types, because he wrote tests like if (value > MAX_INT) ... May 03 13:07:53 when value was int32 May 03 13:07:59 unsigned, I guess. Or hope. May 03 13:08:00 haha May 03 13:08:02 the first thing I may have to do is physically break the lock on one of the existing ASP hosts, then break the passwords on them May 03 13:08:06 * Jug6ernaut has never used python May 03 13:08:07 shouldnt have to typecast everything May 03 13:08:13 but i always hear ppl raving about it May 03 13:08:25 Python is still a toy language May 03 13:08:26 >.> May 03 13:08:34 Hi all May 03 13:08:36 * hackkitten hugs C/C++ and Ada May 03 13:08:36 :D May 03 13:08:41 is it possible to use generic arraylist with adapter? May 03 13:08:42 setListAdapter(new ArrayAdapter May 03 13:08:43 ? May 03 13:08:45 dominicdinada: type safety is good, because it forces errors to happen at compile time instead of runtime. May 03 13:08:46 hackkitten: I bet you wish your gf was called ADa! May 03 13:09:02 alankila > yup :( May 03 13:09:06 i'd rather have my code fail fast when I compile than 10 minutes later while I'm testing it. May 03 13:09:08 ocx: ArrayAdapter is already backed by an arraylist May 03 13:09:18 means? May 03 13:09:31 Meaning, the type you pass is the type the arraylist holds May 03 13:09:36 I've actually met a couple of girls called Ada in Hong Kong - locals have very random English names. I've been served a couple of times at the bank by a young lady called "Purple Rain Ho" May 03 13:09:48 so it is compatible May 03 13:09:55 ocx: think of <> as the english word "of" May 03 13:10:02 ocx: List = "List of Strings" May 03 13:10:08 readme so does verbose debuging level in a devel enviroment May 03 13:10:23 Leeds lol yeh, meet ppl all too often called rainbow, apple, ghost... May 03 13:10:27 new ArrayAdapter will make the list backing the adapter a List May 03 13:10:28 now you see that your ArrayAdapter of ArrayLists does not really make sense unless you actually want to make 2d array May 03 13:10:35 dominicdinada: i dont' see how that even relates to what I just said May 03 13:10:42 do you get compile time vs runtime? May 03 13:10:45 ArrayAdapter would make it List May 03 13:10:49 Which I guess is not what you want May 03 13:10:55 java forces u to tyecast... May 03 13:11:00 not only that, it should be ArrayAdapter> May 03 13:11:00 everything :/ May 03 13:11:14 because arraylist itself is generic type. May 03 13:11:18 Exactly May 03 13:11:39 Leeds: purple rain ho must be the best name ever May 03 13:12:07 alankila: she's working in a bank. it's on her namebadge! May 03 13:12:30 I hear that people who go to china learn quite well the attitude "because china". Whenever weird things happen, they just think "because china" and don't bat an eyelid May 03 13:12:47 reading that would be a "because china" moment for me. Although I haven't been there. May 03 13:12:56 the thing is i want to include an ArrayList in my adapter, you think it would be best to convert the arraylist -> string and then include string in the adapteR? May 03 13:13:04 but a serious question java doesnt know a bool of 0 is fasle and 1 is true ? May 03 13:13:08 ocx: argh, no, you keep on misunderstanding, I think May 03 13:13:15 ocx: the adapter is already based on an arraylist May 03 13:13:23 false* May 03 13:13:23 ocx: what you specify in <> is the type of element you want in that arraylist May 03 13:13:25 ahh ok May 03 13:13:29 ok got it May 03 13:13:55 dominicdinada: java does not implicitly convert integers to boolean, so you just write != 0 May 03 13:13:59 that's your C interpretation, then. May 03 13:14:03 no need for generics May 03 13:14:56 alankilla right which i dont get but im still learning java May 03 13:15:15 ocx: that *is* generics May 03 13:15:26 Foo May 03 13:15:38 ocx: yeah ... I'm pretty sure you'll get it. Just read the "<>" as "of" and it will help you to use it correctly May 03 13:15:49 ok May 03 13:16:11 there are other ways these things are used, though, and sometimes you have multiple types, and other monsters so it will fail eventually May 03 13:16:18 but you cover most use cases thinking of it this way May 03 13:17:12 * alankila predicts the first problem occurs with AsyncTask which requires specifying 3 types May 03 13:17:26 "of" makes no sense anymore at that point, because it's not a container May 03 13:17:53 Plus my favorite way to use that is AsyncTask May 03 13:18:03 * alankila gues he's a final kind of guy May 03 13:18:08 *guesses May 03 13:18:29 oh yes Void May 03 13:18:32 i love that :) May 03 13:18:49 public Void iLoveNulls(Void arg1, Void arg2) { ... return null; } May 03 13:19:27 useful May 03 13:19:55 you can still use this to select correct method at compile-time! just overload with different counts of nulls May 03 13:20:28 in fact I recommend writing your code with only defining one method called perform() and every time you need a method you just use one more null than last time May 03 13:21:04 also eschew use of spaces, and since the return values are nulls you can also chain things logically like perform(perform()) to perform 2 different methods May 03 13:21:31 There's a limit on how many methods you can make anyway, so it should be relatively simple to keep track of May 03 13:21:36 wait, I think I've drank too much tea today. May 03 13:22:09 I don't make sense to myself anymore either May 03 13:25:30 I mean, I bought bunch of interesting teas yesterday and when I went to bed last night I thought that it'll be lovely to wake up tomorrow so that I can try out a whole bunch of them. And I think I've drank 2 or 3 litres since the morning now. May 03 13:25:47 i hope it's green tea then May 03 13:25:55 oolongs and green tea May 03 13:26:07 i have been drinking kusmi green tea mint flavor all day May 03 13:29:57 green tea every morning, something barley-like every night May 03 13:30:35 I have kuradashi sencha which is some kind of aged green tea which is very smooth and light green in color May 03 13:30:54 hmm i have a relative layout with height set to wrap content which its doing fine, but if i add a textview and do layout align parent bottom, somehow the relative layouts height suddenly behaves as if ive set fill_parent, why is that May 03 13:31:12 taste is a bit like freshly cut grass or leaves, sort of herbal in nature. May 03 13:32:01 it will change if you brew it too long though, the first cup should be extracted in about 1 minute of brewing and temperatures have been specced fairly exactly too around 65 C May 03 13:32:21 making tea involves digital thermometers and stopwatches May 03 13:32:43 euh May 03 13:32:46 I have a deal with my gf - she makes me fresh tea every day and leaves it in the fridge for me - I like it cold - and I take her away regularly on holiday to interesting places... May 03 13:32:51 Analogue thermometers work as well. I've seen it with my own eyes. May 03 13:32:51 i just fill a tea egg and leave it in there all day May 03 13:32:54 and kettles made of light materials that do not alter water temperature too much when you pour it into the kettle for brewing May 03 13:33:13 riight May 03 13:33:22 drlaban: sure, but they're slow May 03 13:33:31 and I have a giant mug in which it gets cold when I don't drink fast enough May 03 13:33:40 so right now I am drinking cold kusmi tea May 03 13:33:56 Does this mean that only camera is required but autofocus is not ? May 03 13:34:32 I think it means you want a camera but it's optional May 03 13:34:32 gaz`: if I had to guess, I'd say if you want to put the textview at the bottom of the relativelayout, it's making the layout as tall as possible May 03 13:34:36 Stuff put in /res/drawable/, will they apply to all devices? May 03 13:34:42 xarxer: yes May 03 13:34:42 alankila: oh ok May 03 13:34:54 Leeds: thanks May 03 13:34:55 Leeds but why May 03 13:35:00 it shouldnt do that May 03 13:35:00 CVirus: there was some separate field for autofocus iirc May 03 13:35:22 gaz`: I did say it was a guess :) May 03 13:35:23 Are all programmers avid tea drinkers or is it just that I've not hung around with them before... Everybody else I know who program repeat "Gosh, I need coffee" every hour or so... May 03 13:35:27 alankila: http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions .. I don't understand the table May 03 13:35:41 alankila: oops .. I got it .. sorry May 03 13:35:46 drlaban: it's an attempt to not kill myself with coke zero May 03 13:35:52 drlaban: I'm actually sort of both, but I've switched 100% to tea last month May 03 13:35:52 makes no damn sense May 03 13:35:55 nothing does!!!! May 03 13:36:24 my current thing is with ginseng tea. May 03 13:36:45 i been drinking Sabbah Tea from the Borneo rain forrests May 03 13:36:46 It's sort of addictive and definitely a stimulant, maybe a lot like coffee but still different. May 03 13:36:50 Of course, coffee doesn't seem to be such a subject in alchemy as tea. So I guess it's a game of making the best tea that's mixed in there. May 03 13:37:05 picked it up in Borneo itself May 03 13:37:08 awesome May 03 13:37:21 drlaban: not really, but you generally want your tea to taste good and some of these come with very particular instructions. May 03 13:38:05 for instance oolong teas are specified to brew somewhere between 60 to 95 C depending on the specific type, with 1.5 % weight-percent of dry mass compared to amount of water, and 3 to 5 minutes of brewing time May 03 13:38:16 these things are spelt on the packages if you look for them May 03 13:38:26 I just buy oolong in a bottle from 7-11 :) May 03 13:38:30 well, if it's a good tea. May 03 13:38:55 finally got my damn IO reg May 03 13:38:58 I mean, what's the point of living in China if you can't easily get tea... May 03 13:39:29 the ginseng oolong I drink every morning is specced at 95 C which is actually quite a challenge to maintain for 3 minutes. I think you need to immerse your kettle into a boiling water bath to prevent temperature drop towards 80C by end of the brewing period May 03 13:39:45 anyway... #android-tea May 03 13:40:29 also if you don't brew it hot enough you don't get so much of that ginseng goodness into it :) so it's actually fairly important May 03 13:41:20 yeah, this is most off-topic. May 03 13:41:52 It's quite important to get the timing right when it comes to tea, as opposed to coffee. But I also just now realised that I have never let coffee stand and draw for about 3-5 minutes in the filter. Wonder how that'd taste... May 03 13:42:04 Alright, back to topic then. Anyone got an android question? May 03 13:43:04 Did we get back to normalcy? May 03 13:43:16 no such thing May 03 13:45:13 gayest. conversation. ever. May 03 13:46:20 tea is emasculating? May 03 13:46:59 no tea is gay May 03 13:47:28 I am not sure how tea can have sexuality May 03 13:48:25 I can define a custom xml namespace with the xmlns attribute of the root element of the layout, and I can then get those attributes from an AttributeSet, but HOW can I reference these attributes from a style? May 03 13:48:44 drlaban: taking your question seriously, you should maintain the coffee infusion at some temperature around 93 C if memory serves. I have no idea what is a suitable infusion period, but I imagine it's comparable to tea, so a few minutes May 03 13:49:26 it would be entirely possible to make coffee exactly like tea, provided you have a sieve good enough for the purpose. Now, end of this line of discussion. May 03 13:49:30 alankila: 75F May 03 13:49:56 er, 175F/~80C May 03 13:49:57 guys May 03 13:50:03 does anyone know the answer to my question May 03 13:50:05 readme: yourvalue May 03 13:50:19 Or on the view, yourCustomAttribute="yourvalue" May 03 13:50:21 SimonVT: I don't put "myNamespace:attr"? May 03 13:50:27 no May 03 13:50:28 how does it figure out my namespace? I've defined one using xmlns May 03 13:50:31 It's already in your namespace May 03 13:50:33 so I can't use that May 03 13:50:41 oh, ok. So defining my own namespace will get in the way May 03 13:50:52 Oh right, gotta prefix the namespace in views May 03 13:50:54 oGMo: okay, maybe I don't remember correctly. I am not sure if this would depend on roast or something. A serious coffee connoisseur would probably know all this stuff May 03 13:50:58 Not in styles May 03 13:51:02 oh cool May 03 13:51:04 hmm May 03 13:51:09 I'll play with that a bit, thanks May 03 13:51:41 alankila: depends on how you brew i believe, but i use an aeropress .. ~10 seconds at 175F, not hard, but some of the best-tasting coffee you'll find May 03 13:51:58 just the thing for early-morning or late-night or mid-day development ;) May 03 13:52:46 I have an alert dialog builder in my android app, that when you tap Yes, it finishes the current activity. However, this is causing a memory leak. How do I finish the current activity properly? May 03 13:52:54 oGMo: you use espresso-ground coffee? wikipedia gives 10 seconds as brewing time, so I'm going to take that as fairly fine particle size May 03 13:53:44 I have a cheap espresso machine here, as espresso-type coffee is generally what I like best May 03 13:53:50 roler: How are you finishing it now? A paste would be helpful. May 03 13:54:01 sure May 03 13:54:34 SimonVT: check this out http://lifeisimple.wordpress.com/2012/04/27/android-using-r-styleable/ May 03 13:54:58 looks like you can even define your own XML element May 03 13:55:03 so you don't have to type the full package name May 03 13:55:14 Yeah May 03 13:55:16 drlaban: http://pastebin.com/XrHKcm1g May 03 13:55:21 I do that a lot :P May 03 13:56:26 Oh wait May 03 13:56:28 xml element May 03 13:56:33 Never tried that May 03 13:56:50 perfect because I extended textview and added an attribute for custom typeface May 03 13:56:58 and now I don't have to type the full package for the rest of my life May 03 13:57:09 I doubt it'll work just like that May 03 13:57:53 And you're bound to use the full package unless you override onCreateView in Activity and manually handle parsing the xml element May 03 13:57:59 Hey guys … I'm considering replacing one of my ListViews with a ScrollView, but I'm pretty heavily invested in a custom array adapter which is currently backing my ListView May 03 13:58:22 Btw, that's actually a nice trick :p May 03 13:58:31 do you guys have any tips on how best to transition to a ScrollView but keep the majority of the logic in my custom array adapter in tact? May 03 13:58:37 roler: Looking through it right now, comparing with a Dialog of my own, can't see the immediate problem on comparison. May 03 13:58:43 Override onCreateView and check if it's a textview being inflated. If it is, apply a typeface May 03 13:58:47 Custom font everywhere! May 03 13:58:53 SimonVT: I did that once for runtime internationalization May 03 13:59:10 but yeah, that's a good last resort May 03 13:59:19 I am really hopeful about this blog article, though. May 03 13:59:40 drlaban: yea it's weird. this is what it says : 05-03 06:59:26.458: E/WindowManager(24200): at android.app.Dialog.show(Dialog.java:278) May 03 13:59:46 readme: He can define his own xml attributes cus he has his own parser May 03 13:59:57 not quite... May 03 14:00:07 drlaban: QuestionActivity has a leaked window May 03 14:00:15 and the app progressively gets slower if you keep doing it May 03 14:02:53 dialogfragment all the way May 03 14:03:41 hmm May 03 14:03:50 it's easy to just stick your own attrs in without your own parser. May 03 14:03:57 but I suppose you mean elements May 03 14:05:30 Yeah, the attributes are simply passed to your view May 03 14:06:45 roler: Here's my DialogBuilder code: http://pastebin.com/55ZUmprM May 03 14:07:50 hmm May 03 14:10:13 is there documentation on , because if there is I can't find it May 03 14:13:08 Not much May 03 14:13:31 I don't understand what the name= is supposed to be May 03 14:13:56 In that tag? May 03 14:14:04 basically I am using declare stylable, because I *think* it will allow me to use my own attributes in a style, correct? May 03 14:14:10 yeah May 03 14:17:47 declare-styleable defines a set of attributes. It is usually named after where it's used May 03 14:17:58 like or something May 03 14:18:05 mhmm, that's what I've done May 03 14:18:13 I couldn't get it to work with a namespace though, I had to ditch that. May 03 14:18:45 now I am wondering, since I'm not using a namespace, what do I do with AttributeSet_getAttributeValue(namespace, name) May 03 14:20:11 tried null and empty string already, of course. May 03 14:20:26 Not sure what your question is exactly :P May 03 14:20:43 How do I reference an attribute from the AttributeSet when it does not have a namespace? May 03 14:21:18 Are you setting the attribute directly on the view? May 03 14:21:42 I'm getting the attribute set from the View's (Context,AttributeSet) constructor when it is inflated from XML by the framework May 03 14:21:50 I'm setting the attribute in XML, but in the style May 03 14:23:38 http://developer.android.com/reference/android/content/Context.html#obtainStyledAttributes(android.util.AttributeSet, int[], int, int) May 03 14:23:42 You'd use this in code May 03 14:23:50 ah, I see May 03 14:23:57 brilliant, thanks May 03 14:24:02 https://github.com/SimonVT/android-numberpicker/blob/master/library/src/net/simonvt/widget/NumberPicker.java#L542 May 03 14:30:31 \o/ style is now working to pick a font from /assets! May 03 14:30:49 I'll push the code later since I wager others will want it and I will credit you for your help :) May 03 14:30:52 is it possible to only define one streching direction in a 9patch? May 03 14:31:04 and if yes, how? May 03 14:31:17 yes, only put a pixel on the left or top depending on whether you wanted horizontal or vertical stretch. May 03 14:31:50 except reverse those last two. left will give you vertical stretch, top will give you horizontal. May 03 14:31:51 readme: that resulted in pretty weird behaviour when i tried it May 03 14:32:28 i'm afraid that's as deep of knowledge as I have to offer on 9patches May 03 14:32:49 what was "weird" May 03 14:33:59 readme: the image i am using has a border on the right side, when i use the 1px technique, the border disappears completly May 03 14:34:14 except if i provide a vertical strech point May 03 14:34:33 but i can't do that since the border is very irregular May 03 14:37:38 At the bottom in the second code-example in this post they use "public static astract class": http://tinyurl.com/cvlgbd8 May 03 14:37:40 Is that possible? May 03 14:37:53 no May 03 14:38:01 astract is not a valid modifier May 03 14:38:04 it must be "abstract" May 03 14:38:13 other than that, i dont see why not May 03 14:38:24 Of course I mean abstract.. May 03 14:38:45 Eclipse says: Illegal modifier for the local class LocationResult; only abstract or final is permitted May 03 14:39:35 I don't think you can have a static abstract class May 03 14:39:39 that doesn't make any sense May 03 14:40:06 and that should be an interface, anyway ... May 03 14:40:48 == evancharlton May 03 14:41:40 oh, this is an abstatct inner class May 03 14:41:48 yeah May 03 14:41:54 that's odd May 03 14:42:19 this definitely seems like it should be an interface May 03 14:45:27 evancharlton, yes you can May 03 14:45:38 why couldn you have static abstract? May 03 14:45:44 you dont make any sense! May 03 14:45:48 :P May 03 14:46:06 static here is used to tell the inner class is not associated to it parent class May 03 14:46:39 "associated" probably isn't the word you're looking for :P May 03 14:46:54 canadiancow|work: ah, right you are May 03 14:47:02 :D May 03 14:47:16 I still stand by my assertion that it should be an interface, in that particular example May 03 14:47:38 i do not disagree May 03 14:47:43 unless the intention was to expand it later May 03 14:48:01 and you want to avoid people using "implements Whatever" and then having to change it May 03 14:51:56 did any of you noticed the weird behavior of a SAX DefaultHandler when running in a Junit test vs running on Android: in Junit the qname attribute is set on android the name May 03 14:52:24 (method "startElement") May 03 14:52:33 siyb: you've got to put a pixel on the border as well May 03 14:52:43 any ideas what can be the cause of this? they both run on the same static xml file May 03 14:52:47 siyb: whereever you put a black pixel, that defines the "content area" and that region is stretched May 03 14:54:14 in git, is there any way to find the "newest" version of a file between branches? May 03 14:54:30 like if branch X has commits A and B, branch Y has A B C, branch Z has B C D May 03 14:54:38 id want it to point out that Y and Z are both the newest May 03 15:04:41 canadiancow: git log --all $file should show point you the commit SHA for the newest one, which you can checkout May 03 15:04:56 but there isn't "one" newest May 03 15:04:57 and use git branch --contains SHA May 03 15:05:18 they are sorted by date afaik May 03 15:05:22 thats not waht iwant May 03 15:05:34 i want to ensure i have all commits that have gone into that file May 03 15:07:39 wait, what? "Google cancelled a recent purchase from your store. Reason: Took too long to deliver" May 03 15:08:08 Sheesh, don't be so slow at delivering then May 03 15:11:39 SimonVT: the user needs to upgrade his data plan if it is delivering too slowly. May 03 15:14:29 just got my first payout yesterday :) May 03 15:14:34 $19.47 May 03 15:14:43 congrats May 03 15:14:48 readme: Cool. =) May 03 15:14:53 feelsgoodman May 03 15:15:20 readme: bankin, saving for that new lambo? May 03 15:15:28 ;) May 03 15:23:41 readme: the payout from android play? from advertisement? May 03 15:27:33 You made $0.02 an hour, congrats! :P May 03 15:28:03 pennies make dollars May 03 15:28:18 <`z> if you continue this May 03 15:28:29 <`z> very soon you'll have billions and trillions of dollars of moneh May 03 15:28:44 Ge0rG: I've had that happen to me before, when I purchased an app from the web and told it to install it on my tablet May 03 15:28:58 of course my tablet was turned off and I forgot about it for several days... May 03 15:32:38 If I have an upper and lower limit of longitude and latitude, can I find the names of cities within that range with some API tools? May 03 15:33:19 thats not part of android May 03 15:33:27 youd need an external api May 03 15:33:50 Okay.. Is there any way I can find "nearby" cities? May 03 15:34:43 look at a map? May 03 15:53:05 xarxer: May 03 15:53:06 A class for handling geocoding and reverse geocoding. Geocoding is the process of transforming a street address or other description of a location into a (latitude, longitude) coordinate. Reverse geocoding is the process of transforming a (latitude, longitude) coordinate into a (partial) address. The amount of detail in a reverse geocoded location description may vary, for example one might contain the full street address of the closest building, whi May 03 15:53:12 damnit... May 03 15:53:14 xarxer: http://developer.android.com/reference/android/location/Geocoder.html May 03 16:07:05 today is one of the happiest days of my life May 03 16:07:06 :D May 03 16:07:41 There is a very good reference application for UI patterns, anyone knows about it? I am just wondering if there is a website that offers the same May 03 16:07:57 AndroidUIPatterns May 03 16:08:11 http://d.android.com/design ? May 03 16:08:11 canadiancow|work: why? May 03 16:08:23 im workin gon something ive wanted to do for like 8 months May 03 16:08:31 makin words with friends better :) May 03 16:08:38 =o that's awesome. May 03 16:09:42 I will be looking forward to trying the next release May 03 16:09:46 I remember finding it a bit cumbersome May 03 16:09:49 this wont be in the next release May 03 16:12:14 http://www.pcworld.com/article/254909/xamarin_has_ported_android_from_java_to_c.html May 03 16:12:25 link slug fail :P May 03 16:12:40 but yeah, cool as hell May 03 16:14:05 i'm really impressed that they actually wrote a C# to java translator to do it, that apparently can keep up with changes. May 03 16:15:52 is it really that much faster? May 03 16:16:52 can anyone give me a tip on how to add a selection window (like the one you get when you want to crop an image) on a surfaceview? I made one myself with no inside, only a border, but the inside is displayed as white May 03 16:17:37 Graphics applications will run faster with Mono and C# than they do with Dalvik and Java," said de Icaza. May 03 16:17:50 that sounds like something google should look into, then May 03 16:18:10 it is possible, but a few benchmark results of doing something cpu-intensive would be welcome May 03 16:18:49 yeah May 03 16:19:10 well thats the other thing May 03 16:19:28 "mono can calculate pi faster than dalvik" would not be a useful result of a benchmark May 03 16:19:31 how can it help real apps May 03 16:20:07 one uses some large array of tests which stress the various aspects of the compilers and runtimes until you arrive at some kind of picture of performance that is correct to within some reasonable accuracy May 03 16:20:19 canadiancow|work: if your app is not made for calculating pi, you are doing it wrong! May 03 16:21:05 branchy code, integer math, floating point math, memory pressure and contested threading seem like the sort of things to try to me. May 03 16:21:19 Does anyone know where the temporary files go during building a module? May 03 16:21:31 but still May 03 16:21:36 how many android apps max out the cpu? May 03 16:21:41 I added -pg to the LOCAL_CFLAGS of a module, but I don't know where the gmon.out file is May 03 16:21:42 s/android apps/well written android apps/ May 03 16:22:01 none May 03 16:22:05 mine is! May 03 16:22:12 then it's not a well written app :( May 03 16:22:15 the primary trouble with the "dalvik is slower than C#" argument is that both languages are likely to still be much slower than C May 03 16:22:20 readme: benchmark testing apps :P May 03 16:22:26 but of course any speedup you can get for free is welcome May 03 16:22:30 Amphoras: reasonable point May 03 16:22:39 readme: just a unoptimized library I'm using; for decoding binary over audio transmissions... May 03 16:22:47 FPU math in java is so meh. May 03 16:23:06 Ge0rG: well, hopefully you'll fix it :D May 03 16:23:35 and whatever the icaza guy talks, the fact of the matter seems to be that mono hasn't been doing too well. It did not become the platform to write next-gen linux apps in, and it lost its corporate support. Apparently it's profitable enough to run this sort of company for a few years at least, and I've seen a few mono deployments too, so obviously it's not dead. May 03 16:23:52 but does anyone have some solid figures about the status of the mono runtime... I stopped paying attention to it years ago May 03 16:24:01 readme: if you have some time and knowledge of signal processing, just submit pull requests to https://github.com/sivantoledo/javAX25 May 03 16:24:13 readme: otherwise, I'm sticking to what is there. May 03 16:25:08 Ge0rG: where do you get the signal from May 03 16:25:23 readme: from the microphone May 03 16:25:38 readme: http://en.wikipedia.org/wiki/AFSK#Audio_FSK May 03 16:26:08 that's pretty cool :) May 03 16:26:40 If there was a sample audio file to play with, then I would definitely at least compile it and take a look May 03 16:26:45 readme: its even cooler to see what you can do out of it: http://aprsdroid.org/ May 03 16:27:18 for this to be useful, you need to own a ham radio, right May 03 16:27:54 readme: yeah, pretty much. or at least a receiver capable to tune to 145mhz May 03 16:28:18 scala :D May 03 16:28:20 readme: recently, there was also a CB-APRS initiative May 03 16:28:56 Ge0rG: did you run your code with traceview? May 03 16:29:52 readme: nope, not yet May 03 16:30:21 * Ge0rG is currently 120% busy-loaded May 03 16:30:26 with non-android stuff :( May 03 16:30:54 yeah I'm busy 100% too, but obviously I find time to blow here May 03 16:31:18 looks like a lot of string tokenization stuff is used to read the packets in TNCInteface.java, getAPRSPacket() May 03 16:32:26 i wrote a CPU monitor class parses /proc/stat, first I did it that way, with strings. It was slow, and used about 30% of the cpu time just to run. I rewrote it to only look at the byte stream and not create any unnecessary strings using a state machine and it was a lot faster. May 03 16:32:40 readme: from that lib, I'm only using the Afsk1200Demodulator.java and related code May 03 16:34:18 how would I combine multiple textview objects into one layout? May 03 16:34:27 readme: as I said, it is basically floating-point signal processing in java code; something you can only optimize by making it native or by making it fixed-point math May 03 16:34:38 I can see some optimizations already May 03 16:34:45 unless the compiler is doing them, but I'm not sure May 03 16:35:05 addSamplesPrivate multiplies 2.0 * PI a bunch of times when it could just store the result May 03 16:35:06 readme: I know I can run that code on my G1 with JNI turned on, at around 80% cpu load. May 03 16:35:29 eh, s/JNI/JIT/ May 03 16:35:47 without JIT, I'm getting audio buffer overruns May 03 16:36:36 how do you turn on JIT =O May 03 16:37:08 readme: CM5 May 03 16:37:08 anyway I think you are right: just write that function in C and use the NDK. May 03 16:37:35 readme: I've had a native solution before, it was using like 10-15% cpu time, but it had an inferior algorithm May 03 16:37:53 readme: so it only decoded like 50% of the packets of the javAX25 code May 03 16:39:47 if you get a chance you should ask tachyondev about this May 03 16:39:51 he did this for a living, before May 03 16:42:44 readme: signal processing? May 03 16:45:06 what exactly is AUTHENTICATION_FAILED in C2DM? May 03 16:45:16 the docs dont match the problems people have reported May 03 16:47:44 http://www.gizmodo.co.uk/2012/05/real-lasers-on-actual-sharks/ ????? May 03 16:48:45 I found when I set up C2DM that it can get kind of tricky when there are multiple google accounts involved. Dunno if that might have anything to do with it. May 03 16:52:21 Hello world keeps crashing in the emulator on 4.0.3 and on my 4.0.3 phone. May 03 16:53:53 I'm specifically interested in learning how to get data from your contacts. Can someone point me to a site that helps with that? I'm trying to map my contacts. It may have been done already but I want to learn how to do it myself but having a bit of a problem starting. May 03 16:57:02 Ge0rG: yeah May 03 16:58:00 shouldn't you make hello world run before you move on to the contacts issue May 03 16:58:27 get the stacktrace from show->view->android->logcat May 03 16:58:56 "but I'm having a bit of problem starting" May 03 16:59:16 that's the problem part May 03 17:00:31 Poohba, do you know any java? May 03 17:01:05 rymate1234: no. May 03 17:01:21 well, might help to learn java first :3 May 03 17:03:20 yeah, it is a prereq, not optional. May 03 17:03:56 or some other JVM language, at least :> May 03 17:09:35 http://pastebin.com/dwsNUNXr May 03 17:09:55 Hi all. At the devconsole I see this message: Your Registration to Google Play is still being processed. I registered (and paid) over a month ago. What could it be? May 03 17:09:55 I'm using eclipse and I got that from the logcat tab May 03 17:10:20 What did you pay for? May 03 17:10:53 ... to register? May 03 17:11:37 Does this violate network on main? http://www.wikihow.com/Execute-HTTP-POST-Requests-in-Android It seems much simpler than other solutions I've found. May 03 17:12:03 freecandy: that site gives no useful information May 03 17:12:14 it's like 3 lines of code surrounded by a ton of ads and other crap May 03 17:13:57 Poohba, canadiancow|work: I think I did, but I might be wrong May 03 17:14:13 timing, i really dont know May 03 17:14:24 i mean i was saying you paid to register May 03 17:14:28 im not sure what Poohba was asking May 03 17:14:34 you have to pay $25 to register May 03 17:14:40 if you did that, i dont know why your account isnt active May 03 17:19:16 what the heck does "violate network on main" mean? May 03 17:24:36 I meant would it throw a networkonmainthread exception. It seems that the fancier snippets of code do stuff that looks like they're avoiding it. May 03 17:25:05 freecandy: you should avoid it yes. but that error can be disabled. May 03 17:25:15 disable the error and die May 03 17:25:52 what? it is only f*cking up the UX... nothing bad in there! :P May 03 17:26:13 http://stackoverflow.com/questions/4821845/honycomb-and-defaulthttpclient/ "for testing only" *cough* May 03 17:26:57 why don't you just do networking on a background thread May 03 17:27:13 JakeWharton: well i try to. just like to have options. May 03 17:27:27 * Ge0rG especially likes "HonyComb" May 03 17:27:42 networking on the main thread is never an option May 03 17:27:49 well i found thread by googling exception i got. and it had answer i needed. :$ May 03 17:28:06 in fact, they should build a giant hand into the Eclipse ADT plugin that reaches out an punches you in the face if you do it May 03 17:28:27 JakeWharton: You are absolutely right, Sir. May 03 17:28:29 JakeWharton: LOL :D May 03 17:28:56 which reminds me: I need to rewrite my jabber client backend to run completely in a separate thread with message passing between it and the service May 03 17:29:01 isnt that a critical error in lint by default? May 03 17:30:35 Jake: I want to, but don't know how. There seem to be various ways of doing that. I read snippets on SO and don't know which parts are necessary for my problem and which were designed to accomplish somebody else's problem. May 03 17:32:00 freecandy: read a tutorial like this one http://www.vogella.com/articles/AndroidPerformance/article.html#concurrency May 03 17:33:23 freecandy: if concept is completely new to you, perhaps also read http://docs.oracle.com/javase/tutorial/essential/concurrency/ May 03 17:34:33 Thanks! May 03 17:35:13 AsyncTask May 03 17:35:48 freecandy: yeah, learn AsyncTask, it is nicer that Thread/Handler May 03 17:39:25 freecandy: HandlerThread is also a very useful pattern. May 03 17:39:38 essentially the pattern is used when you have a queue of tasks you want to perform off the main thread May 03 17:39:45 usually persisting that worker thread for the lifetime of your app May 03 17:42:28 nah, just a couple one-shot http posts, very little data being exchanged. May 03 17:47:16 i've got a question to webview. On most devices it works, but on a few (ex. Android 2.3.6) it draws very strange. One example here: http://space.christofbuechi.ch/Andrina_false.png May 03 17:47:18 i mean the red bar on top, and the cuttet icons on the bottom. Does anybody know for what im searching ? I dont know, where the problem could be.. :( May 03 17:49:19 Ok my app is published but I made some changes to the description afterwards. How long does it take till the changes are visible? May 03 17:52:22 how can I tell a layout or view to take up as much space as possible, unless it starts to push another layout off the screen...? I have a scrollview and directly below it are some buttons. If the content in the scrollview gets too large, it pushes the buttons below it right off the screen :( May 03 17:52:47 layout_weight May 03 17:52:56 oh thats it? May 03 17:53:57 evancharlton, I made my scroll view wrap_content, and the below layout with my buttons I gave a layout_weight of 1 and it still happens. May 03 17:54:41 ninjai: use 0px instead of wrap_content and let layout_weight do it? May 03 17:54:55 ninjai: don't just guess and check :) May 03 17:56:57 * ninjai is confused May 03 17:57:51 ninjai: go google around for how to use layout_weight :) it's not that complicated May 03 17:58:00 spoiler alert: you put it on the wrong element May 03 17:58:27 I'm already googlin lol. okay, I'll check that too May 03 18:01:06 is it possible on an app with target sdk = 15 to show the support menu soft button instead of an action bar? May 03 18:01:43 i have an activity that is supposed to be full screen, but it has an options menu May 03 18:02:28 on my galaxy nexus with no menu button, it obviously needs access to the menu somehow May 03 18:02:50 but i dont want a bar shown on my nexus s that has a hardware menu button May 03 18:04:07 it isn't, birbeck May 03 18:04:14 set target <14 May 03 18:04:31 i dont want it down there for all activities, only this one May 03 18:04:44 birbeck: Then build a menu button on screen :P May 03 18:05:06 dont use an options menu then T_T May 03 18:05:12 or a traiditonal one* May 03 18:05:15 use an actionbar! May 03 18:05:30 Not sure that's possible, birbeck May 03 18:05:34 Sounds horrible as well :p May 03 18:05:38 i dont want an actionbar to appear on this screen at all May 03 18:05:39 birbeck: no May 03 18:06:05 you could do like Maps does and make you own, but that's super shitty IMO May 03 18:06:21 Idea: Overlay an actionbar with no icon and title, and use the overflow button ? May 03 18:06:33 100% transparent as well May 03 18:07:17 you'd lose touch-interaction below the actionbar May 03 18:07:29 well this menu will not be here in production, its just to get to the hidden app settings, so maybe ill just make it a context menu like we do on ios May 03 18:07:30 oh May 03 18:07:32 Ah well May 03 18:08:17 for purposes of doing demos and running in different environments we need the ability to change the login server client side May 03 18:08:36 i used to have that in a separate settings app sharing context, but that was ugly May 03 18:15:33 quite… i guess everyone is watching the sgs3 livestream? May 03 18:15:46 quiet even May 03 18:18:23 hi all, I'm trying to use a graph chart from http://android.arnodenhond.com/components, but because I'm quite new to android I'm struggling a bit. Basically in my activity I've got a few elements and I want to display the chart at the bottom of these elements. The graph works fine if I use setContentView(graphChart) but it replaces the whole screen. I have created a linearLayout element May 03 18:18:23 in which I want to display the graph but this doesn't work: GraphView graphView = new GraphView(this, values, "GraphViewDemo",horlabels, verlabels, GraphView.BAR); May 03 18:18:23 LinearLayout view = (LinearLayout) findViewById(R.id.graphView); May 03 18:18:23 ((Activity) view).setContentView(graphView); May 03 18:18:46 basically the last line May 03 18:19:12 how do i display the graphView view in my linearLayout element May 03 18:19:12 because a View is not an Activity? May 03 18:19:22 view.addView(graphView); May 03 18:20:11 ah.. i'll give it a go May 03 18:21:04 awesome! thanks a lot canadiancow|work :) May 03 18:23:41 who knows how to change the backgroundcolor of a ToggleButton? May 03 18:24:05 setBacground ? setBackgroundColor ? May 03 18:24:20 in the XML file. May 03 18:24:21 http://developer.android.com/reference/android/view/View.html#setBackgroundResource(int) May 03 18:24:24 you have to be joking :( May 03 18:24:27 custom Theme :) May 03 18:24:41 yo evancharlton May 03 18:24:43 spend 10 seconds looking at the docs, iSeeDeadPixels May 03 18:24:48 how do i start an activity from an activity May 03 18:24:50 i did : | May 03 18:24:56 there needs to be an obvious method May 03 18:25:00 like startAnActivity() May 03 18:25:14 iSeeDeadPixels: do you see the bolded text? like, right there? May 03 18:25:20 it says "Related XML Attributes" May 03 18:25:28 and under that: android:background May 03 18:25:31 with a handy hyperlink May 03 18:27:10 canadiancow|work: startActivity( new Intent(getApplicationContext(), YourActivity.class) ); May 03 18:27:20 you must be new here May 03 18:27:36 is it a hard work to program a messenger? i think the problem is the live notification May 03 18:27:50 why is that hard May 03 18:27:56 thats probably the easiest part May 03 18:28:04 vorwaerts, C2DM May 03 18:28:04 StyxLT: hm, I geta compiler error saying it can't resolve YourActivity. Are you sure that code is correct? May 03 18:28:18 hi all i have just touched Android for 2 days and i have been stuck on various parts when I am hurrying with my camera app May 03 18:28:29 evancharlton - yeah, it works for me May 03 18:28:36 I wish to put it on github and get collaborations May 03 18:28:45 canadiancow|work is there a harder part? May 03 18:28:47 but the project is for a client May 03 18:28:56 im realy new to android May 03 18:29:18 can I still put a project on github when I am going to sell to the client in the future May 03 18:29:18 evancharlton: don't forget to replace "YourActivity" with the activity name you want to start May 03 18:30:08 because i need some manpower May 03 18:30:10 Hello May 03 18:30:14 StyxLT: Wouldn't it be faster to use 'this' instead of getApplicationContext() May 03 18:30:28 i cant find a tutorial how to programm a simple messenger May 03 18:30:34 vanson20121: Well, you probably gotta ask your client if they want to pay you money to do an open source project May 03 18:30:39 BUT SIMONVT IF YOU DONT USE APPLICATIONCONTEXT IT WILL LEAK YOUR ACTIVITY May 03 18:30:43 How can I get the screen dimension in Android 2.3 and less? May 03 18:30:46 oh shi.. May 03 18:31:03 In API level 8 and up May 03 18:31:05 does java/android have a method to check if a string is null or empty May 03 18:31:16 http://www.h-online.com/security/news/item/Android-malware-opens-back-door-to-the-intranet-1567374.html May 03 18:31:26 TextUtils.isEmpty(..) May 03 18:31:35 ty May 03 18:31:45 looks like Kindle Fire sales are tanking May 03 18:31:58 Just us if(string == null || string == "") { /*code here */ } May 03 18:32:08 fail May 03 18:32:12 == with a string? May 03 18:32:12 Comparing strings with == May 03 18:32:19 what is this, amateur hour? May 03 18:32:40 string.equals("") May 03 18:32:46 "".equals(string) May 03 18:32:56 he already null checked, so doesn't matter :p May 03 18:33:03 but its good habit May 03 18:33:07 yeah May 03 18:33:07 always put the literal on the left May 03 18:33:16 anyway May 03 18:33:20 what i really wanted was a built in method May 03 18:33:28 and for that, SimonVT wins two internets May 03 18:33:39 and mad1231999 loses an internet for offering me an obvious solution that i clearly wanted to avoid May 03 18:33:52 Loses another for comparing strings with == May 03 18:34:08 i am bringing some obj-C style into android programming May 03 18:34:28 i produced AppDelegate.java May 03 18:34:30 im sure you could write an app with obj-c May 03 18:34:37 and RootActivity.java May 03 18:34:39 you could probably tweak the ndk toolchain to compile obj-c May 03 18:34:59 How can I get the screen dimension in API level 10? May 03 18:35:10 vanson20121: I see absolutely nothing going wrong with this plan. May 03 18:35:15 context.getResources().getDisplayMetrics().something May 03 18:35:19 "".equals(string) is bullshit May 03 18:35:22 its java May 03 18:35:46 ? May 03 18:35:51 what does that matter, birbeck ? May 03 18:36:26 why would string.equals("") ever be bad in java? May 03 18:36:34 If string is null May 03 18:36:37 == SimonVT May 03 18:36:45 yea... May 03 18:36:49 we had this discussion before May 03 18:37:11 some discussions are best forgotten May 03 18:37:15 * g00s clears scrollback May 03 18:37:23 [16:41:53] canadiancow|work, ah nice defensive programming May 03 18:37:23 [16:41:57] <@ctate> ==canadiancow|work is a good habit to get into May 03 18:37:24 [16:41:57] very solid coding there canadiancow|work May 03 18:37:27 that was the result of it May 03 18:37:27 g00s: lemme remind you May 03 18:37:30 (yes i kept that :)) May 03 18:37:50 tsk vanity :0 May 03 18:38:07 He even felt the need to tag some of us when he posted it on g+ May 03 18:38:25 TextUtils.isEmpty much? May 03 18:38:38 :P May 03 18:38:53 TextUtils.isEmpty(string.trim()) would also fail if null May 03 18:38:55 actually better would be CONSTANT.equals( string ) May 03 18:39:02 isEmpty wont trim May 03 18:39:09 so " " is false May 03 18:39:26 i don't care about trimming May 03 18:39:47 i almost always treat " " as empty May 03 18:39:50 i wrote a helper class to do gallery transition animation May 03 18:40:33 i afraid i am writing java the wrong way May 03 18:40:52 birbeck: I fail to see how you moving goalposts translates into simple defensive programming being bullshit. May 03 18:40:53 i feel like some sort of hacking android already May 03 18:41:07 Ok, my togglebutton just stopped working :s May 03 18:41:59 Cleaning Helped... May 03 18:42:09 http://pastie.org/3855236 May 03 18:43:03 its ugly because I cannot make these class methods static May 03 18:43:19 i still have to declare a new AnimatorCompanion() in order to use it May 03 18:43:37 otherwise it won't remember ViewAnimator May 03 18:43:48 but i still want to make it static May 03 18:45:10 when I turn "public" into "public Static " then the variable inside the bracket needs a "final" May 03 18:45:14 "Apple now earning 73% of global mobile profits with just 8.8% unit share". Samsung has 26%, holy crap. May 03 18:45:33 eventually making use of the final comes a nullpointerexception May 03 18:46:14 vanson20121: Yeah, don't keep static references to views May 03 18:46:55 commons-io has isBlank which will return true for " " May 03 18:47:07 i cant believe we're still talking about this May 03 18:47:19 silence cow May 03 18:47:21 i do what i want May 03 18:47:30 You aint the boss of me! May 03 18:47:39 vanson20121: a word of advice, do NOT make something final just because the compiler tells you to May 03 18:47:44 go figure out what "final" means May 03 18:48:52 also, make everything static too May 03 18:48:57 better safe than sorry May 03 18:49:03 static final for double safety May 03 18:49:08 final is a strange keyword. I know how it works. And i'd rather have const :P May 03 18:49:10 * pragma- nods knowingly. May 03 18:49:21 * pragma- is pro. May 03 18:49:22 and of course there were problems with what exactly const meant in C++ May 03 18:49:29 but it was much more useful May 03 18:49:39 final is needlessly verbose in 90% of cases May 03 18:49:52 final gives you super optimisations May 03 18:50:14 i gave it a try, marking every var final that i could, and it ridiculously bloated my code May 03 18:50:24 ya i know May 03 18:50:26 but it was super fast May 03 18:50:28 and i use it in lops and stuff May 03 18:50:31 loops May 03 18:50:42 you can't beat super May 03 18:51:03 i'd rather have a compiler that was smart enough to look at it and say, hey, thats never assigned again, so i can optimize it my self May 03 18:51:18 oh come on now, this is java May 03 19:00:44 wow, the Galaxy SIII is quad core May 03 19:00:57 is it an Exynos processor ? May 03 19:01:01 and will break as soon as you bend over May 03 19:01:12 and we all know how frequently you bend over May 03 19:01:49 it is an exynos. i heard something weird, like ones sold in the US are qualcomm but oters are Exynos May 03 19:02:22 Like other Samsung smartphones, the Galaxy S III features the company's custom TouchWiz user interface May 03 19:02:24 the suck May 03 19:02:58 I don't like the fact they've done away with the almost-square shape of the GSII May 03 19:03:09 there I fixed it http://dl.dropbox.com/u/60485425/s3fixed.png May 03 19:03:23 hehe May 03 19:03:26 still too curved ! May 03 19:03:55 thats not what she said May 03 19:04:34 Does their promotional photo really have the browser open to an iPad article? May 03 19:05:34 touchwiz on the s2 is so ugly May 03 19:05:45 especially with ics May 03 19:07:27 storkme_: True story. I'm loving my Galaxy Nexus :D May 03 19:08:42 I'm trying to set up https://github.com/jjoe64/GraphView library, however a static class GraphViewData is included in the same file as GraphView class and my activity cannot find it even though the file is included. Any ideas why? May 03 19:09:44 hmmmm.... May 03 19:10:06 does anyone have any idea how to put a border around a button? May 03 19:10:19 actually it's saying GraphViewData cannot be resolved to a type May 03 19:10:19 Make a background that has a border May 03 19:10:22 declare it a nation first. May 03 19:10:22 GN is quite nice May 03 19:10:26 then declare war on it May 03 19:12:40 Hello again folks May 03 19:27:14 SimonVT: i refactored the code for setting the font into a library project http://github.com/tom-dignan/nifty May 03 19:27:37 i'm going to include other features too, but for now it just allows you to set the font on buttons and textviews from a style May 03 19:27:48 provided that you use NiftyButton, and NiftyTextView May 03 19:28:09 I'd rather not write an activity base class, because then it'd conflict with other libs that use that strategy May 03 19:28:46 just unpacked the tar, changed permissions, and installed openjdk6, am getting this: Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3550 or swt-pi-gtk in swt.library.path, java.library.path or the jar file May 03 19:28:46 what am I missing? May 03 19:28:48 readme: what is this, and does it actually do anything? May 03 19:29:06 anuvrat: another reason not to use openjdk :> May 03 19:29:08 lov: it allows you to set the typeface on buttons and textviews in a style May 03 19:29:18 you can put your fonts in /assets and they just work May 03 19:29:23 anuvrat: use sun/oracle java please May 03 19:29:45 it's not much now, but I only worked on it for a little bit. May 03 19:33:39 Yay, you made your first custom attribute :p May 03 19:34:21 there will be more :) May 03 19:35:03 weird thing, I try to launch my application on the emulator and the launch fails because of a shared-lib dependency (com.google.maps); my project is not based on that platform nor is my emulator May 03 19:35:08 it launches on my phone just fine though May 03 19:36:56 Cus your phone has the maps library May 03 19:37:25 but I got this before attempting to boot on the phone May 03 19:37:30 no, no I didn't May 03 19:37:36 I did it after May 03 19:40:32 i'm wondering why amazon's kindle fire sales collapsed so rapidly, and what is going on with the regular kindle sales-wise May 03 19:40:54 4m units -> 750K units (/q) May 03 19:41:08 * Jug6ernaut isnt surprised by that May 03 19:41:18 g00s: Because the people that wanted them got them... May 03 19:41:45 Jonathan_Eyre: that means the market isn't growing May 03 19:41:47 :) May 03 19:41:53 == rocket science May 03 19:42:22 you are trying to measure growth over too short of a time period though May 03 19:42:29 g00s ofc the market isnt growing May 03 19:42:40 but i agree, it's probably not going anywhere :P May 03 19:42:42 economy is going ot shit lol May 03 19:42:44 epaper is much better May 03 19:42:50 readme yea it is May 03 19:42:52 They aren't hamburgers. The people that love them aren't buying more, they are USING them. May 03 19:44:33 so the SIII comes with 50GB of free dropbox May 03 19:44:47 i guess the HTC One comes with some free dropbox also May 03 19:44:59 * Jug6ernaut doesnt care tbh May 03 19:45:40 well i'm glad they did'n make a Samsung cloud May 03 19:45:45 :) May 03 19:45:50 lol May 03 19:46:04 otoh, they didn't use google drive May 03 19:46:35 Why would anyone use DropBox (or any cloud storage) for anything large? A few files maybe, but I'm not going to want to spend hours downloading my DVD isos from DropBox when I could just haul around a super lightweight SSD. May 03 19:46:36 I need to buy a galaxy nexus, an ICS tablet, a macbook pro, and an iphone. :( so much stuff May 03 19:46:51 I have a hard time using more than a few meg on cloud storage. May 03 19:47:01 sometimes people have a lot of small files. May 03 19:47:26 So you set up a new computer, and then wait for 50GB to download? May 03 19:47:36 Again, a hard drive makes more sense to me. May 03 19:47:52 a hard drive can't be shared with others over the internet without software: enter dropbox. May 03 19:48:00 it also can't be used in multiple places all at once May 03 19:48:18 almost everything I have in dropbox is there because its being shared with other people May 03 19:48:47 I keep the few files I share between work/home/device on DropBox, but I just don't have that many I need to keep in limbo. May 03 19:49:00 Ah, that's the key. You have "FRIENDS". May 03 19:49:14 yes, "friends" that pay me money for my code May 03 19:49:20 ;P May 03 19:49:44 * Jug6ernaut doesnt know about everyone else May 03 19:49:50 bwahah. So that's what pays your pro DropBox account. To each his own. May 03 19:49:54 but the sgs3 is disappointing May 03 19:50:02 tho i guess, not really, bc i expected it to be hehe May 03 19:50:14 Jonathan_Eyre: nah I think i'm under 2gb currently even with all the crap I have in there May 03 19:50:20 so I haven't paid them anything May 03 19:50:23 Nice. May 03 19:53:37 I want to send some stuff from my app to a server which in turn responds with a status code.. In the meantime I want to "block" the app and display a "Please wait" message.. What's that sort of function called? May 03 19:55:23 xarxen asynctask with a dialog, phone to server via http-php May 03 19:58:01 what is the best way to implement a sort of full screen ProgressDialog May 03 19:58:13 just extend dialog? and change the theme? May 03 19:58:46 obviously I could use an activity, but then I'd have to put all my background tasks in services when otherwise I'd just use a quick inner asynctask subclass. May 03 20:00:19 g00s: where are you getting your numbers May 03 20:00:53 lov: which numbers? kindle ? May 03 20:00:55 yeah May 03 20:01:02 from the amzn earnings report or what May 03 20:01:14 readme: why does it have to be fullscreen? May 03 20:01:15 http://www.idc.com/getdoc.jsp?containerId=prUS23466712 May 03 20:01:43 lov: eh, that seems to be how it is in the ios version. In the ios version, the page actually curls up to reveal the full screen waiting screen May 03 20:01:49 I think mostly for branding reasons May 03 20:01:54 the full screen will have a nice shiny logo May 03 20:02:35 g00s: they don't themselves reveal where the numbers come from, it's just a press release May 03 20:03:10 lov: that will have to do for now :) May 03 20:03:36 orly? May 03 20:03:46 do you have better data ? May 03 20:03:59 I won't say yes or no but I do work for an amazon subsidiary May 03 20:04:19 anyone knows a simple really easy class for a line chart? May 03 20:04:26 easy to use* May 03 20:04:40 StyxLT: well, there is androidplot and achartengine May 03 20:04:46 lineTo May 03 20:04:50 :) May 03 20:04:52 achartengine sucked the last time i tried it :) May 03 20:05:19 if all else fails you can use some existing HTML5 chart solution and stick it in a webview. May 03 20:05:42 or XSLT and XML :) May 03 20:06:36 i'm waiting for a newer color eInk Kindle DX May 03 20:06:44 * g00s would snap one up in a second May 03 20:09:29 anyone knows a step-by-step tutorial to create a line chart? all posts that i find on the interent just display the code i need to paste into an activity but nothing on how to import the libraries May 03 20:09:30 i have a few Kindle books, but haven't dived to deeply into the amazon silo. my experience is that they tend to be formatted very poorly. at least the photography ones i get. i think amzn will continue innovatting in paas & physical goods , but publishers will figure out a way to break free of their distribution channel for digital content sooner or later May 03 20:10:39 of course i have no data to back that up, just some of the latest grumblings of publishers, amzn, iBooks, etc May 03 20:11:02 * g00s should be an analyst :D May 03 20:13:14 "Floating videos: lets you resize videos and move them around on the display whilst they float atop other windows. Nice!" May 03 20:13:26 interesting May 03 20:13:37 i like the eye tracking though May 03 20:14:02 not too keen on the physical buttons May 03 20:16:02 g00s: what do you think about the facebook ipo May 03 20:16:29 not my area of speculation :) i think social is crap May 03 20:17:02 I don't like facebook either. Lousy website invades your privacy, helps you meet your fiancee, etc. May 03 20:17:58 if I was rich I'd short it for fun. May 03 20:18:27 if only they went public 2-3 years ago May 03 20:20:05 How do you create an activity that will be used as an intent? May 03 20:21:20 what May 03 20:21:28 can you rephrase that :S May 03 20:21:33 aren't intents used to show activities? May 03 20:21:56 an activity is not used "as an intent" May 03 20:22:06 you use an intent to tell the OS to start an activity May 03 20:22:24 Ok, but how to do get the data from the intent back to the original application? May 03 20:22:44 startactivityforresult May 03 20:23:02 or not for a result May 03 20:23:14 overlordpuppy: and it's not returned back to the original application May 03 20:23:24 it's returned back to the original activity May 03 20:23:36 (usually) May 03 20:24:20 and you dont get "data from the intent back" May 03 20:24:33 well when i take it out of context like that, you actually do May 03 20:24:34 an Intent describes a chunk of work that the caller wants to perform May 03 20:24:38 speaking of which i wantto create an activity that shows two different dialogfragments andretuens a result, just set the activity to be transparent? May 03 20:24:38 "i intend to process this thing!" May 03 20:24:52 Ok, for a minute, stop nit-picking at my choice of words. May 03 20:24:58 I didn't come on here to be belittled. May 03 20:25:02 I asked a simple question. May 03 20:25:03 startActivity() says "figure out who will best perform this intended chunk of work," and sets it going May 03 20:25:24 overlordpuppy: well, to be honest, your choice of words imply you don't understand android application fundamentals May 03 20:25:33 that's why everybody's nitpicking May 03 20:25:35 and they don't imply a solution May 03 20:25:44 if you ask how to put a purple hat on the moon May 03 20:25:48 people are going to question your question May 03 20:25:51 because it doesn't make sense May 03 20:26:38 You understood what I was trying to do, you just didn't want to outright say the solution. You don't have to be a dick on the internet, but apparently it's preferable. May 03 20:26:59 so you have two of your own activities (in one applicaiton) May 03 20:27:08 this is freenode afterall May 03 20:27:12 and you want one to start the other, where the user can do something, and the result is returned to the first? May 03 20:27:16 the short answer is that http://developer.android.com/guide/topics/fundamentals/activities.html explains this reasonably comprehensively, although perhaps not ideally May 03 20:27:25 damn ctate beat me to it May 03 20:27:29 Nevermind, I'll figure it out my my own. May 03 20:27:35 so start there, and then come by with questions afferwards May 03 20:27:46 and to all the rest of you besides overlordpuppy? chill out a bit, please? May 03 20:27:53 overlordpuppy, your question could have been taken in many different ways. i didn't meant o come off ass belittling. i'm learning anroid, too. May 03 20:32:12 Let me put this another way. I have an Activity that does some stuff to a file. I want it to give the file URI to the Activity which called it using an intent. May 03 20:32:37 overlordpuppy: intent.putExtra May 03 20:32:46 Thanks. May 03 20:32:46 err May 03 20:32:52 startActivityForResult May 03 20:32:56 and then onActivityResult May 03 20:36:24 So, in the second activity, the one that sends the uri, do I use setResult, then finish it? May 03 20:36:36 yeah May 03 20:37:21 iirc, you create an Intent to return May 03 20:37:33 then do something like: May 03 20:37:37 Is there any reason why Activity has a showDialog method, when a Dialog can be shown without it? It seems to me like a bad idea to tightly couple the logic of showing dialogs with Activity May 03 20:37:57 er May 03 20:38:01 returnIntent.putExtra("uri", someURI); May 03 20:38:12 setResult(RESULT_SUCCESS, returnIntent); May 03 20:38:16 I'm pretty sure that dialogs shouldn't be shown outside of the context of an activity May 03 20:38:35 I agree, but why does activity need a showDialog method May 03 20:38:38 I have an app constantly listening for location updates from the NETWORK_PROVIDER (30 secs, 100 meters). If the phone enters deep sleep, will my app stop receiving the location updates? May 03 20:38:55 if you dig into the internals, it allows the activity to manage the state of the dialog for when the activity gets recreated, etc May 03 20:39:08 it also allows for more elegant reuse of activities, etc May 03 20:39:10 ah ok, I will check it out May 03 20:39:16 the idea being that you implement onCreateDialog and onUpdateDialog May 03 20:39:21 and you don't have to keep all the references around yourself, etc May 03 20:40:05 k. Thanks for the help. Sorry everyone about being an ass. Bad day. I may have wrongly detected some hostility in statements made here earlier. Forgive me. May 03 20:40:28 np May 03 20:41:12 overlordpuppy: no worries May 03 20:45:41 lov: ok, I kind of see the point of it now. Thanks. May 03 20:45:57 * readme is going to make a DialogFactory and then delegate the creation of dialogs to it with a switch in onCreateDialog May 03 20:48:37 onCreateDialog is the worst concept ever May 03 20:48:37 ugh May 03 20:48:54 i call showDialog over here, i build the thing over there, then i handle the result over here May 03 20:49:00 put everything together! May 03 20:50:04 amen, sister May 03 20:50:13 I'm making my own more flexible kind of progressdialog that is fully styleable May 03 20:50:33 and it's going into my "nifty" library that lets you set typefaces on buttons and textviews from xml :) May 03 20:50:42 Dialg dialog = new Dialog(); int result = dialog.exec(); :P May 03 20:51:02 Object object = dialog.getObject(); May 03 20:51:21 what do you do with the object May 03 20:51:34 irrelevant May 03 20:51:48 object = object + 5; May 03 20:51:54 put that in too :) May 03 20:51:59 make sure to add 5 to the object. May 03 20:52:12 i'm just illustrating a paradgim here :P May 03 21:02:34 two new questions: in the Dialog documentation, many of the methods, like onCreatePanelView refer to "panels" -- what are they? and second, I am looking through the Dialog.java source and I don't see any calls to setContentView, but I do see delegate methods to it. If I don't see any call to setContentView() happening in Dialog, what is setting the view when I instantiate one? May 03 21:02:51 basically, I am looking for the appropriate way to specify my own root layout for a custom dialog. May 03 21:03:40 hi. can anyone shed some light on why google decided to LINK the RING and NOTIFICATION audio streams on ICS!? (changing the volume on one results in the same change on the other!!) May 03 21:03:53 voso, you can unlink them May 03 21:03:54 "because they wanted to" May 03 21:03:58 voso, like in every other version of android May 03 21:04:22 pfn: you can't in ICS, afaik May 03 21:04:26 if you can, please tell me how May 03 21:04:28 hm. thx for the quick reply. May 03 21:04:32 how? May 03 21:04:45 (can I unlink?) May 03 21:04:48 really, I remember seeing an option to set them separately May 03 21:05:05 maybe I was confused May 03 21:05:07 * pfn shrugs May 03 21:05:19 guess I'm wrong May 03 21:05:33 what is the point of having 2 different channels if they are linked? May 03 21:06:14 backward compatibility May 03 21:06:30 with ass-backward new features ;P May 03 21:06:54 so may I inquire again: why did google need to LINK them?? May 03 21:07:07 to make me suffer I suppose.. May 03 21:07:30 suffer I do. again. May 03 21:08:21 that is kind of an annoyance May 03 21:08:29 I usually set my notification volumes to 1/3 of the ringer, or something May 03 21:08:44 I wonder why I didnt read anything in the docs about it, when I have the feeling I read the AudioManager related docs in the past 2 days at least 10 times!!! May 03 21:09:05 i must be blind too. May 03 21:09:30 pfn: how do you do that if they are linked? - i am confused. May 03 21:09:53 I just haven't since I got ics May 03 21:10:01 Would I be correct if I thought that Dialog itself does not inflate any layout at all, or create any views? May 03 21:10:16 it seems like it just calls the WindowManager to do stuff with a Window May 03 21:10:25 I can't find any view inflating May 03 21:12:26 it definitely does May 03 21:12:30 :P May 03 21:13:10 how are themes applied to inflated layouts programmatically? May 03 21:14:40 I see some interesting stuff in ContextThemeWrapper, but I do not see how it links together May 03 21:15:00 "Set the base theme for this context. Note that this should be called before any views are instantiated in the Context (for example before calling setContentView(View) or inflate(int, ViewGroup))." bingo May 03 21:17:44 if anyone from google is listening here, PLEASE add a line to the documentation that says: RING stream volume is hardlinked with the NOTIFICATION stream volume!! Maybe you will save several hours time for the next unsuspecting arse like me.. thank you. May 03 21:19:07 voso: I'm sure that line will be added once it's true ... May 03 21:19:15 as it is, OEMs can unlink the two if they so choose. May 03 21:19:20 did that not become true in ICS? May 03 21:19:24 but yeah, that May 03 21:21:02 Is it possible to have a "forward reference" to a theme in a layout? May 03 21:21:34 forward reference? May 03 21:21:34 I'd like to define a layout that will later have a theme applied to it, but the user will never edit the layout himself. May 03 21:21:54 i.e. reference a theme that doesn't exist, then let the user of the library define it later May 03 21:22:23 I guess I could do it, but it would cause compile errors until the themes are edited May 03 21:23:27 <`teh1> hey is there a spec out there for google's C2DM ClientLogin script? im trying to figure out how to send notifications, but the account that i associated with the c2dm registration was not google account May 03 21:23:41 <`teh1> so i need to read the specs May 03 21:24:01 voso: that's true except for when it's not. May 03 21:24:15 voso: my phone, for example, doesn't have the two linked. May 03 21:25:04 mine is linked like a stink May 03 21:25:17 http://pastebin.com/bvyweJRC I am getting a fatal exception on a HttpPost in release mode, when it works flawlessly in debug mode. May 03 21:25:25 Does anyone else have this happen? May 03 21:26:09 Caused by: android.os.NetworkOnMainThreadException May 03 21:26:10 Apparently this line: HttpResponse response = httpclient.execute(httppost); May 03 21:26:21 Jonathan_Eyre: ^ if you can't guess what it is from that line... :) May 03 21:27:20 Aww what... May 03 21:29:06 what happens if i deinstall all the devices ssl certificates? will browsing https still work? May 03 21:29:44 snuy: hell if I know. May 03 21:30:40 Why wouldn't it throw that in debug mode? Pain. Love it. May 03 21:31:12 lov: so it won't work anymore? May 03 21:31:25 hey snuy May 03 21:31:30 when someone says "Hell if I know" May 03 21:31:34 what do you think that means?" May 03 21:31:39 Do you think that it means no? May 03 21:31:42 Do you think that it mens yes? May 03 21:31:47 or maybe it means "I have no idea" May 03 21:32:08 D) none of the above May 03 21:32:19 If you think it means "I have no idea", why would you ask a follow up question assuming that I actually had insight? May 03 21:32:20 I can just target a lower SDK and it will work, right? May 03 21:32:30 Jonathan_Eyre: no, and please don't do this. May 03 21:32:36 the solution is to fix your app May 03 21:32:47 http://developer.android.com/reference/android/os/StrictMode.html May 03 21:32:55 enable strict mode for debug releases May 03 21:33:33 I'm just so angry I didn't do it right the first time, and had no idea that was coming. [CHILL] May 03 21:34:02 anyone know why I would get different results from SimpleDateFormat.format(Date…) when using "America/New_York" vs "GMT-4 May 03 21:34:11 right now, NY is in GMT-4 because of DST May 03 21:35:07 what happens if you call startService with an intent action that nothin ghandles May 03 21:35:11 Does this mean sockets won't work either? May 03 21:35:38 pfn: I've worked out my 'bug' from yesterday. May 03 21:35:59 canadiancow|work: nothing happens, I would imagine. May 03 21:36:10 I have a HUGE section of code for streaming in SSLSockets. May 03 21:36:19 Jonathan_Eyre: no, it means that it won't work ON THE UI THREAD. May 03 21:36:26 yea lov i just tested it - exactly that May 03 21:36:26 pfn: https://groups.google.com/forum/?hl=en&fromgroups#!searchin/android-developers/pendingintent/android-developers/sZFghKMixDY/bF8RzQc_3vEJ was a solution if you're interested May 03 21:36:29 which you frankly shouldn't be doing anyway May 03 21:36:30 05-03 17:35:43.717: W/ActivityManager(223): Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTERRRR (has extras) }: not found May 03 21:36:49 im pretty sure the same thing for startActivity would throw an exception though May 03 21:36:51 Jonathan_Eyre: the solution is to use a service, another thread, an async task, anything but actually doing your networkign on the UI thread. May 03 21:39:00 vadi2, yes, the problem was pendingintent not onNewIntent May 03 21:39:46 pfn: tbh what I said was that even onNewIntent was displaying the same behavior, along with getExtras. May 03 22:02:43 ahhhh May 03 22:02:45 Anybody know why my jni library would stop working in release mode? May 03 22:02:51 May 03 22:02:57 that looks like what I was thinking of May 03 22:03:00 but is it May 03 22:04:13 Jonathan_Eyre, read your logs May 03 22:06:25 http://pastebin.com/SMCNLb4w May 03 22:25:44 i want to shoot myself in the face after using the java calendar stuff May 03 22:27:36 hah May 03 22:28:10 right now, NY is GMT-4. So why would i get different results when I use GMT-4 vs America/New_York ? May 03 22:28:22 (from SimpleDateFormat.format()) May 03 22:28:27 my head is spinning from trying to fully comprehend styleable attributes. May 03 22:28:37 there is so much that is not even documented. May 03 22:28:46 its not GMT-4 May 03 22:28:51 readme: just head into AOSP May 03 22:28:52 GMT is an hour off UTC right now May 03 22:28:56 JakeWharton: oh, i'm in it May 03 22:29:00 or something May 03 22:29:02 GMT isnt GMT May 03 22:29:08 because they observe DST May 03 22:29:12 that's pretty much where I learned everything I know about them May 03 22:29:39 they're a hard concept to explain May 03 22:29:39 I found a nice article by this guy http://staticallytyped.wordpress.com/2011/04/16/android-custom-xml-attributes-and-views/ too May 03 22:29:46 canadiancow: yes, Greenwhich is really GMT+1 now May 03 22:29:56 * g00s cries May 03 22:30:02 arg, Eclipse is now not showing me a layout preview. Why would it hide it and how can I get it back? May 03 22:30:04 just use UTC for everything May 03 22:30:06 I've got a custom styleable attribute working, but now i'm curious about the ?android:attr/* stuff May 03 22:30:15 I believe that's a 'reference' and I don't quite grok it yet May 03 22:30:26 it's a reference to a theme attribute's value May 03 22:30:48 so can I define something like that to allow a user to later style a layout without editing it? May 03 22:31:31 canadiancow: see, i get time from an external device, without TZ info. and they define a custom epoch (Jan 1 2000). so i have to do some maths :) May 03 22:31:49 ah May 03 22:31:58 the thing is, i thought SDF took into account DST offset when printing its time May 03 22:32:11 i gotta start packing May 03 22:32:14 partay weekend! May 03 22:32:35 yes, canadiancow runs as things get interesting with the Java time question ! May 03 22:32:48 anyone else left standing May 03 22:32:52 ? :) May 03 22:34:21 readme: yes May 03 22:34:31 they can change an attribute on their theme and it will be reflect by your layouts May 03 22:34:42 so I use it to assign an attribute value, to an attribute! May 03 22:34:46 I think I understand it May 03 22:34:51 yes May 03 22:34:54 man this is so cool May 03 22:35:01 I can't wait until I have time to waste playing with it May 03 22:35:06 but if you're using your own you don't prefix it with 'android:' May 03 22:35:10 just ?attr/myCoolThemeAttribute May 03 22:36:24 thank you for explaining that May 03 22:42:36 yeah i looked through the attribute stuff and got confused as shit May 03 22:42:47 or i would kinda figure it out and the following day be confused as shit again May 03 22:49:17 it's very powerful May 03 22:49:30 I've got ?attr/foo figured out and i'm using it to write a layout in advance in my library, which can then be styled in the project without touching the layout May 03 22:49:41 is there a way to specify defaults for any unstyled attributes? May 03 22:50:16 is it normal that device vendors distribute their source? i assume so because of the GPL? May 03 22:50:25 android isn't gpl May 03 22:50:27 it's apache May 03 22:50:32 hmm May 03 22:50:33 maybe linux source May 03 22:50:38 since that's GPL :) May 03 22:50:47 just downloading the source, they say the package is gpl3 May 03 22:51:01 nkuttler: that's the kernel source, which is distributed May 03 22:51:11 it's around 115 MB May 03 22:51:16 OEMs almost never distribute their changes to the framework (the java layer) May 03 22:52:13 yah, kernel only :| May 03 22:52:26 tar.bz2 in a zip.. May 03 22:52:47 oh well... would have been nice. their ICS release isn't exactly stable May 03 22:53:07 nice. everything +x as well May 03 22:53:51 the kernel isn't gpl3 either May 03 22:54:04 yeah, very odd all of this May 03 22:54:23 "This programs are free softwares: you can redistribute them and/or modify them under the terms of the GNU General Public License May 03 22:54:27 as published by the Free Software Foundation, either version 3 of the License, or any later version." oops May 03 22:54:34 nkuttler: quite a lot of GPL'ed code changed their licensing to keep *only* version 2 May 03 22:54:40 p_l: i know May 03 22:55:14 but they can't just re-license the kernel May 03 22:55:22 oh anyway.. May 03 22:55:56 the gpl is communist May 03 22:56:19 nkuttler: they didn't relicense it May 03 22:56:41 they just changed, quite a long time ago, the term of automatically including future GPL versions May 03 22:57:02 p_l: and the android kernel was forked before that? May 03 22:57:14 nkuttler: it was never forked May 03 22:57:25 see. so they can't distribute their source as gpl 3 May 03 22:57:26 some *parts* can be under GPL3 May 03 22:57:34 but the kernel itself is under GPL2 May 03 22:58:14 yeah, just their website is wrong May 03 23:00:22 i have an activity A that calls a broadcastreceiver B using a sticky intent (self defined), how do i get the callback in the activity when the sticky intent has changed May 03 23:00:25 ? May 03 23:00:45 activities do not call broadcastreceivers May 03 23:00:49 they send broadcasts :) May 03 23:01:11 technicality ;) May 03 23:01:23 an important one! May 03 23:01:31 the receiver runs *only* in response to someone calling sendBroadcast() May 03 23:01:44 so what exactly do you mean by "when the sticky intent has changed"? May 03 23:02:09 do you mean that an actual Intent instance has been fiddled with, but no new broadcast was performed? May 03 23:02:18 or do you mean that someone called sendStickyBroadcast() again? May 03 23:02:29 ctate: i was under the impression that the broadcast was async, is it sufficient to call registerReceiver after issuing the broadcast to read the modified intent? May 03 23:02:44 if the broadcast was sticky May 03 23:02:52 then when you call registerReceiver() with a matching filter May 03 23:03:13 the newly-registered receiver will be invoked once for each matching sticky Intent that has been sent to date May 03 23:03:30 i.e. you get to see what the most recent intent was, even if it was sent yesterday May 03 23:03:40 ctate: ahh ok, i see. thanks a lot ;) May 03 23:03:53 this is the "sticky" part :) May 03 23:04:02 Is it possible to create a namespace for my resource ids, like @android:id, except @my:id? May 03 23:04:40 yes May 03 23:05:31 well, rather, if it's in another package, you reference it by @pkg:id/foo no? May 03 23:05:48 pfn: it just uses the java package name? May 03 23:05:59 that's what I thought, yes May 03 23:06:02 ah May 03 23:06:09 I thought it used the xmlns attribute May 03 23:06:25 but wasn't sure of where to put it, anyway. May 03 23:06:31 no, xmlns is only used for custom attributes May 03 23:07:13 oh, ok May 03 23:12:33 nice, I crashed eclipse, force close :P May 03 23:12:49 readme May 03 23:12:51 thats not hard to do :P May 03 23:13:31 Heavy Spanking! May 03 23:14:30 [19:13:31] Heavy Spanking! May 03 23:14:30 [19:13:55] * ctate sets mode: +b *!*~spankbot@*.clppva.fios.verizon.net May 03 23:14:30 [19:13:55] * spankbot was kicked by ctate (spankbot) May 03 23:14:37 looks like the spanking was done by ctate May 03 23:14:40 he DID ask for it May 03 23:15:06 anyone know ehre theres a mailbox near me? :( May 03 23:15:37 <`teh1> canadiancow: did you try that dumpster out back? May 03 23:15:49 hello May 03 23:16:06 MOUNT AND UNMOUNT FILESYSTEMS May 03 23:16:07 Allows the app to mount and unmount filesystems for removable storage. May 03 23:16:09 are you fucking kidding me? May 03 23:16:12 https://play.google.com/store/apps/details?id=com.canadapost.android May 03 23:16:17 i notice that mipmapping runs way too slow on my old Droid phone, and works fine on the Bionic. I want to enable/disable that at runtime. What's a good way to check for the device being too slow? May 03 23:16:24 also REQUIRES ANDROID: May 03 23:16:24 2.1 - 3.2 May 03 23:16:52 canadiancow: I believe that's a systemOrSignature permission. It won't be granted when the application is installed May 03 23:17:01 lol May 03 23:17:19 regardless, there are other permissions preventing me from downloading it May 03 23:17:35 i have absolutely no idea where there is a mailbox near me May 03 23:17:40 theres an actual post office, but its closed May 03 23:18:05 my app crash with this error : android.view.WindowManager$BadTokenException: Unable to add window . the error come from this line : Intent notifIntent = new Intent(context.getApplicationContext(), AndroidLogin.class); I read that I need to replace getApplicationContext() with this but it s dont work. Any idea? May 03 23:18:23 streetview for the win! May 03 23:18:51 gridbag: maybe you could use the bogomips value from /proc/cpuinfo May 03 23:19:16 or perform some computation, and time it May 03 23:23:23 ctate: i think i still don't quit get it, would you mind telling me why payload is null? code snippet is pretty short: http://paste.geekosphere.org/remm May 03 23:24:16 ctate: the broadcastreceiver receives the broadcast correctly (fyi) May 03 23:25:27 the intent you get back from registerReceiver() is not the same Intent instance as the one passed to BroadcastReceiver.onReceive() May 03 23:25:30 it's a copy May 03 23:25:41 changes you make in onReceive() are not visible to the outside world May 03 23:26:18 otherwise there'd be all kinds of messes w.r.t. order of receivers, them mucking with the intent objects on the fly, etc May 03 23:26:40 the point is that you are given [a copy of] the Intent *as it was broadcast* May 03 23:26:44 not in some mangled post-receipt state May 03 23:27:18 so if you want to communicate from the receiver to the Activity, you just need to pick some other channel May 03 23:27:41 ok, that makes sense May 03 23:27:45 thanks May 03 23:37:45 <`teh1> hey yo May 03 23:40:56 anyone got an opinion on people rating their own apps? I've refrained, but if everyone is doing it, I might have to reconsider. May 03 23:42:21 ...and there sure are a lot of apps with few downloads and one 5-star rating. May 03 23:43:06 do it May 03 23:43:13 its still an opinion hehe May 03 23:45:08 yeah, felt a little weird about it, but I also think that if everyone else is doing it, why put myself at a disadvantage? May 03 23:45:28 because you believe its the right thing to do May 03 23:45:32 <`teh1> anyone know how long before a google ClientLogin token expires? May 03 23:45:39 well honestly i doubt 1 rating will make much a difference lol May 03 23:47:38 NNominatus, that's hard to argue with. May 03 23:48:02 I've made my decision, but I'll keep it a secret. May 03 23:51:23 And for my other question... Is there a book about Android development that really stands out? Something that gets into more advanced topics and is pretty up to date? May 03 23:54:41 is there any url where you can always grab the latest current sdk version? May 03 23:54:53 i.e: as it is for google earth http://dl.google.com/earth/client/current/GoogleEarthLinux.bin May 03 23:56:09 http://developer.android.com/sdk/index.html would work May 03 23:57:08 Hi May 03 23:57:20 xorgate, I'm making android-sdk for linux, and in my script I need an url which will always grab the latest sdk and later on it will unpack it to right location and blah blah May 03 23:57:49 I'm maintainer of one such script in Debian for Google Earth, so I was thinking of doing the same thing for Android SDK May 03 23:58:02 in watch file I would add http://developer.android.com/sdk/download.html?v=android-sdk-linux_x86-(.*)\.zip May 03 23:58:02 i think your best bet would be to check rXX May 03 23:58:19 yeh i guess May 03 23:58:22 but that leads to the page to download sdk and wget or curl don't accept that May 03 23:58:23 how hard/ if possible, is app to app communication May 03 23:58:43 mantas322 on 1 device? May 03 23:58:56 like maybe one app can do something, and others would be able to get info from it May 03 23:59:05 no multiple devices May 03 23:59:16 different users May 03 23:59:20 subscribe to one May 04 00:00:45 mantas322: read about ContentProviders May 04 00:00:47 i foudn this http://stackoverflow.com/questions/4638939/android-communication-between-two-applications May 04 00:00:58 and Intents May 04 00:01:06 okay, thanks May 04 00:01:57 use an Intent to pass small amounts of data, use ContentProvider to provide access to databases, etc. May 04 00:02:04 would broadcast recievers work for that? May 04 00:02:20 yes May 04 00:02:34 * Jug6ernaut says do that May 04 00:02:38 except a BroadcastReceiver doesn't communicate anything, it just *receives* May 04 00:02:46 you need Intents :) May 04 00:02:59 well ofc lol May 04 00:03:08 * Jug6ernaut says do that plus that May 04 00:03:09 :P May 04 00:03:13 side question May 04 00:03:35 what permissions would this requre May 04 00:03:38 just network? May 04 00:03:53 y would it need network? or did i miss part of a question May 04 00:04:06 nevermind May 04 00:04:11 im new to all these concepts May 04 00:04:16 but thanks guys May 04 00:04:37 broadcast recievers, intent, and contentproviders May 04 00:12:50 hi May 04 00:13:09 I know of android:noHistory, but is there one that like isn't a boolean, and allows me to choose how many activities can go infront of it before it destroys? like noHistory="2" May 04 00:13:22 anybody use ruby? May 04 00:19:13 no May 04 00:25:39 Is there any way to use startActivity and overridePendingTransition in a class that doesn't extend Activity? May 04 00:35:53 1. (inheritance) startActivity is defined in Context, so you can use it in any class that extends context. 2. (composition) You can also pass a reference to the context in a method's parameters, and call context.startActivity() May 04 00:37:50 are there any predefined animations I can use, say, to make a view slide on to the screen? May 04 00:38:04 I'm going to set the rootview's animation with android:layoutAnimation May 04 00:38:53 oh, @android:anim, tons of em. May 04 00:44:14 is "android:layoutAnimation" supposed to work if I set it on the root view of a Dialog's content view? May 04 00:46:58 on 3.2+ it will May 04 00:47:03 (probably) May 04 00:49:01 ah May 04 00:49:16 It's breaking on ICS, but I think it might be because I'm not passing it the right kind of animation May 04 00:49:23 anyway, I can't use it because I need 2.1+ May 04 00:49:27 or 2.2+ at worst. May 04 00:56:05 got it working :) May 04 00:56:24 wasn't sure if I could start the animation before setContentView, but, I can. May 04 01:09:02 I have a bunch of buttons that all have onClickListeners. I want to add a swiping gester to the whole screen, so I created a view that filled the screen, and set a onTouch listener on it. It works perfectly, but now my buttons don't respond (because the view is OVER them)... How could I create like a "invisible" view that fills the screen so I can add a ontouch listener, without disrupting the rest of the buttons. May 04 01:09:30 I tried adding the onTouch listener to my layout but that didn't seem to do anything. Plus I have a few different layouts nested inside on large relative layout May 04 01:15:14 ctate, you around? May 04 01:19:11 t0mless: barely May 04 01:19:12 what's up? May 04 01:19:23 just pondering something about the google backup stuff May 04 01:19:40 do tell May 04 01:19:59 http://developer.android.com/guide/topics/data/backup.html states that you shouldn't use BackupHelperAgent and BackupHelper classes if you're using a database May 04 01:20:03 wow May 04 01:20:06 Uri localUri = Uri.parse("android_secret_code://8255"); May 04 01:20:21 but why can't you use a BackupHelper that you write yourself for your SQL data? May 04 01:20:25 and use that? May 04 01:20:29 android secret codes ? May 04 01:20:52 you just need a context really, which you can pass in the constructor May 04 01:21:23 or is the BackupHelper created every time onRestoreEntity is called? May 04 01:21:51 instead of one instance of it being made and just re-called by the BackupAgentHelper May 04 01:21:58 t0mless: sigh. i didn't write a lot of that May 04 01:22:08 the key is that FileBackupHelper is not suitable for a database May 04 01:22:14 not that backup helpers in general are not May 04 01:22:21 Right, I get that part May 04 01:22:27 FileBackupHelper would back up the entire binary of hte .db on ever mutation, aughghghghg May 04 01:22:28 you'd have to roll your own BackupHelper May 04 01:22:33 or your own BackupAgent May 04 01:22:40 yea, I did BackupAgent May 04 01:22:47 but since I also wanted to backup shared prefs May 04 01:22:50 I was like... well shit May 04 01:22:51 pick whichever approach works for you May 04 01:22:54 yeah, no worries May 04 01:23:02 this would be easier to roll my own BackupHelper for the SQL data May 04 01:23:04 write somethign that more efficiently backs up deltas of database mutations May 04 01:23:06 and then off you go May 04 01:23:07 and use the built in prefs May 04 01:23:12 right May 04 01:23:34 i looked into writing a generic helper for database backups, but it turns out to be essentially insoluble May 04 01:23:38 but what I have works just as well really, just reads and restores using shared preferences May 04 01:23:53 the db really ought to be designed up front to track dirty/zombie records and use that information at backup time May 04 01:24:07 indeed May 04 01:24:16 and if it isn't, then you're basically SOL without other a priori knowledge of the semantics of the db May 04 01:24:39 think you can take a gander at this: http://blog.sleepybear.us/2012/05/do-that-back-up-thing.html May 04 01:24:43 i am tickled to death that you're doing incremental backups of yoru dbs :) May 04 01:24:44 when you have free time May 04 01:24:49 blog post I wrote about backup stuff May 04 01:25:06 yay thanks May 04 01:26:50 btw you can test even offline if you use 'bmgr' to select the local debugging transport rather than the google one May 04 01:26:58 just be sure to change it back when you're done :) May 04 01:27:06 this is probably not well documented at this point May 04 01:30:44 I have run into a problem. I animate my custom dialog in by calling an animation from an OnShowListener. This doesn't work for animating it out, with onDismissListener, or onCancelListener, and I think that's because the dialog is dismissed before the animation has a chance to play... What is the solution to this? May 04 01:31:28 t0mless: good read May 04 01:31:34 never had the need to backup stuff myself May 04 01:31:41 good to know though May 04 01:31:52 this is the cloud backup thing May 04 01:31:57 which is supernice for when people buy a new phone May 04 01:32:03 get your app automatically reinstalled May 04 01:32:04 yeah i've had a few apps do it May 04 01:32:05 *and* its data May 04 01:32:14 awesome user experience May 04 01:32:18 \o/ May 04 01:32:28 i should add that to mine May 04 01:33:05 JakeWharton did my last message go through on g+? ive been ahving serious problems sending this evenign May 04 01:33:16 canadiancow: it really honks me off that e.g. Rovio doesn't back up Angry Birds scores / progress May 04 01:33:28 hah May 04 01:33:31 iirc this is an explicit decision on their part. fie! May 04 01:33:35 zynga's is all on the server :) May 04 01:33:40 not at all May 04 01:33:45 haha, i was just going to mention Angry Birds May 04 01:33:47 HOWEVER May 04 01:34:06 adb backup -f angrybirdsspace.ab com.rovio.angrybirdsspace May 04 01:34:07 FTW May 04 01:34:07 :) May 04 01:34:46 true, but usually what necessitates it is out of the user's control (e.g., toilet, lake, rain, roller coaster, microwave, etc.) May 04 01:35:00 oh totally May 04 01:35:08 which is why ongoing cloud backup is very important May 04 01:35:10 and was first May 04 01:35:13 yea games piss me off May 04 01:35:23 going from nexus one to galaxy nexus, i stopped playing a bunch of games May 04 01:35:23 says the guy who works for Zynga May 04 01:35:26 because i lost all my progress May 04 01:35:30 LOL May 04 01:35:31 HEY May 04 01:35:36 im talking about specific stuff :( May 04 01:35:45 Where's My Water stores its data in some manner that causes it to not work across adb backup / adb restore on a different device May 04 01:35:52 effing Disney May 04 01:35:56 lol May 04 01:35:59 encrypted using IMEI i bet May 04 01:36:04 they must be hashing using the AndroidID or something May 04 01:36:04 yeah May 04 01:36:07 craptacular May 04 01:36:19 its hard to convince people that its a bad option May 04 01:36:33 REALLY honked off one of my orkers :) May 04 01:36:40 he kept filing bugs that adb restore wasn't working May 04 01:36:44 which honked me off :) May 04 01:36:45 LOL May 04 01:36:56 so you apktool'd that shit May 04 01:36:59 and saw what they were doing May 04 01:37:04 and then banned disney from the plays tore May 04 01:37:05 right? May 04 01:37:12 ... no? :) May 04 01:37:22 just watched the backup/restore, saw that it was pulling the files intact May 04 01:37:32 deduced that they were being silly May 04 01:37:32 how can i create an array of my custom class May 04 01:38:03 that can be dynamically expanded May 04 01:38:25 ArrayList May 04 01:38:31 arrayList.add() May 04 01:38:59 Uri.parse("android_secret_code://8255"); wtf is this lol May 04 01:39:43 canadiancow: that doesn't work May 04 01:40:08 pastebin May 04 01:40:29 ArrayList Row=ArrayList; May 04 01:40:33 no May 04 01:40:45 List = new ArrayList(); May 04 01:41:12 then .add(rowType) will work and .get(whatever) will return a Row May 04 01:41:55 eclipse is giving me a syntax error on the first > in List = new ArrayList(); May 04 01:42:11 er May 04 01:42:15 wow May 04 01:42:15 did you give it a variable name? May 04 01:42:17 ##java May 04 01:42:19 kthxbai May 04 01:42:21 haha May 04 01:42:28 #generics-for-fun-and-profit May 04 01:44:16 I'm thinking about writing a testing framework for Android May 04 01:44:48 Pretty much Robolectric with 100% less suck May 04 01:44:59 Ha May 04 01:45:38 so ive now been in a phone queue with air canada for 20 minutes May 04 01:45:45 im starting to think haggling the upgrade fee isnt worth it May 04 01:45:53 how much of a fee? May 04 01:46:05 $400 for a toronto->SF flight to go to executive class May 04 01:46:29 direct flight? May 04 01:46:54 yep May 04 01:47:25 nice, last time I did ottawa->toronto->denver->sf May 04 01:47:27 normally its an extra 950 or something May 04 01:47:30 it was fucking stupid May 04 01:47:48 i could have saved money driving to buffalo and flying through some other airport May 04 01:47:50 but fuck that May 04 01:47:54 i dont want a 12 hour trip :P May 04 01:47:58 actually... That might have been when I was flying in to reno May 04 01:48:19 and oddly, you can't fly direct to anywhere from reno May 04 01:48:38 I swear even if you were trying to do Reno to LAX they would transfer you through like texas or some shit May 04 01:48:47 most shit hole airport ever May 04 01:49:18 but easier to drive from reno back home to truckee than it is sacramento to truckee May 04 01:51:44 hrm May 04 01:51:57 canadiancow isn't on my g+ anymore May 04 01:54:31 can you expense it? May 04 01:54:35 @ canadiancow May 04 01:54:37 lol no May 04 01:54:41 this is a personal trip May 04 01:54:47 pfsh May 04 01:54:53 it's going to make you a better developer May 04 01:54:54 aren't you going for I/O? May 04 01:55:00 i got semi-promoted today though, so im expecting a large bonus ;) May 04 01:55:36 i am going for IO May 04 01:55:38 thats not tomorrow May 04 01:55:52 am I wrong to override dismiss in a Dialog subclass in order to allow an animation to complete before the dialog is dismissed, or is this a reasonable idea May 04 01:57:04 so you're going to SF twice this month canadiancow? May 04 01:57:18 oh wait May 04 01:57:22 IO was pushed back this year May 04 01:58:01 where is I/O? May 04 01:58:09 am I going to be able to get there reasonably easy? May 04 01:58:10 Moscone center May 04 01:58:15 Yes May 04 01:58:21 busses drop off right in front May 04 01:58:32 and pretty close to bart if I remember right May 04 01:58:46 yes May 04 01:58:49 but just like cab it May 04 01:58:57 even my hotel isnt that close May 04 01:59:05 hotels are fucking expensive that week May 04 01:59:16 hotels in SF are expensive all the time May 04 01:59:23 hostels are a bit cheaper May 04 01:59:25 theyre MORE expensive that weel May 04 01:59:37 but if you bring stuff you don't want stolen... May 04 01:59:43 you can sleep in my bed May 04 01:59:57 It must be tough to spoon a cow.... May 04 02:00:16 just rent a winnebago May 04 02:00:21 don't knock it until you try it May 04 02:00:30 JakeWharton it's like 4 blocks from powell st bart May 04 02:00:30 zynga's paying for my hotel... May 04 02:00:40 \o/ i made a dialog that can animate itself onDismiss May 04 02:00:42 t0mless: in which direction? May 04 02:00:47 i'm 4 blocks from powell bart May 04 02:00:50 south east May 04 02:01:05 stay in tenderloin, that part is nice May 04 02:01:19 http://maps.google.com/maps?q=moscone+center+747+Howard+St+San+Francisco,+CA+94103&z=16 May 04 02:01:24 Tender and juicy May 04 02:01:51 I live two blocks from Moscone Center May 04 02:01:53 hells. yes. May 04 02:03:32 now been on hold for 40 mins May 04 02:03:35 they really dont want my $ May 04 02:03:52 where's your intern? May 04 02:03:55 he should be doing this May 04 02:04:01 which one ;) May 04 02:04:07 all of them May 04 02:04:12 at home i imagine May 04 02:08:33 they wont budge on the price May 04 02:09:15 meh fuck it gotta try it once May 04 02:10:08 The proper way to get a lower rate is to call them up and ask for their retentions department and swear loudly and profusely and demand cancellation. May 04 02:10:27 lol May 04 02:10:33 my cell bill is 40/month May 04 02:10:36 theres no contract May 04 02:10:40 and i get unlimited everything May 04 02:10:47 Mine's $29.99 unlimited. May 04 02:11:07 you guys suck May 04 02:11:14 mine is $150 May 04 02:11:18 and it's not even unlimited May 04 02:11:24 unlimited EVERYHTING? May 04 02:11:24 of course, that is for two phones. May 04 02:12:11 http://www.windmobile.ca/en/Pages/Holiday-Miracle.aspx May 04 02:22:10 How do you kill a onTouchListener May 04 02:22:13 Like destroy it? May 04 02:22:33 set it to null May 04 02:22:37 stop referring to it May 04 02:22:45 the system will kill it once you no longer reference it May 04 02:23:38 Gotcha May 04 02:23:40 Thanks May 04 02:23:41 :D May 04 02:26:57 is the Google Maps API .jar generation done internally or is it part of AOSP somewhere? May 04 02:27:17 it would be really cool if the stubbed Maps API could be deployed to Maven central May 04 02:27:27 but for that I need javadoc and source jars as well May 04 02:27:38 its not open source May 04 02:28:22 i don't mean the whole lib May 04 02:28:28 just the stub'd .jar generation May 04 02:28:34 oh May 04 02:28:47 I set the variable to null but the onTouch listener was still "listening" May 04 02:29:18 probably because whatever you originally set it on held a reference to it May 04 02:29:21 you set it to null on the view too right? May 04 02:29:25 call setListener(null) on whatever May 04 02:29:33 ^ yea, that May 04 02:30:22 Oh May 04 02:30:31 My bad, I was declaring the variable as null May 04 02:30:34 The view variable May 04 02:31:22 hi all May 04 02:31:26 Hello May 04 02:33:00 my app based on webview with webkit 534.30 version and layout(css/js/html) is broken. Could I force webview render render web page with lower webkit version? My device is Galaxy Nexus Samsung May 04 02:33:23 or make a real app May 04 02:34:21 Pretty sure it's going to use whatever version of webkit is on the device May 04 02:34:42 fixing the browser instead of the webapp, :P May 04 02:36:35 so interestingly, cancel just calls dismiss, so to make a dialog animate on cancel, you need only to override dismiss May 04 02:36:37 readme: I think main problem is css rendering May 04 02:37:31 t0mless: real app is the best solution but now I'd to find temporary solution May 04 02:38:13 so fix your css May 04 02:40:00 ^ May 04 02:51:40 t0mless: do you know what links talk about css compatibility for webview version? May 04 02:52:15 w3schools.com May 04 02:52:21 lol w3schools May 04 02:52:23 I have some problems with android webview May 04 02:53:11 How can I force webview using lower version of webkit? May 04 02:53:22 why are you asking the same question from two different nicks May 04 02:54:10 that's like, "my app crashes on Windows 7, how can I run it on Windows 95 inside of Windows 7" May 04 02:54:12 answer is still the same, fix your css May 04 02:54:48 what you are experiencing is the evolution of the platform and the volatility of web standards May 04 02:55:31 your CSS can likely be improved to work perfectly fine everywhere **** ENDING LOGGING AT Fri May 04 02:59:59 2012