**** BEGIN LOGGING AT Sat Dec 01 02:59:57 2007 Dec 01 07:32:07 swooty, adding this to my autojoin list :) Dec 01 12:10:15 <[AD]Turbo> hi all Dec 01 12:45:36 how can I get byte[] data ? Dec 01 12:48:03 I used getBytes(String) but it says it's undefined for the type EditText Dec 01 12:48:19 what should I do? Dec 01 13:14:31 no one can help? Dec 01 16:00:26 hi Dec 01 16:30:21 anyone know of a way to change the time in the emulator? it's off by one hour for me Dec 01 16:30:36 I'm guessing it has to do with Daylight saving time? Dec 01 16:32:13 or perhaps it's GMT since it's GMT+1 here Dec 01 16:34:31 nice nickname AIDS Dec 01 16:34:41 * AIDS kills Dec 01 16:34:45 protect yourself Dec 01 16:34:47 http://www.youtube.com/watch?v=piChUkmYjVI&feature=related Dec 01 16:34:56 National AIDS day! Dec 01 16:34:57 YouTube - "Everyone has aids" LEASE from Team America, World Police Dec 01 16:35:10 s/National/WORLD Dec 01 16:35:12 I've got nothing to worry about Dec 01 16:35:19 :( Dec 01 16:37:19 pool is closed? Dec 01 16:50:10 crap, I messed up the date even more Dec 01 16:50:35 back in the seventies now Dec 01 17:25:42 bah, I just don't understand how the emu can get the systems time wrong Dec 01 17:25:53 shouldn't be possible to mess that up Dec 01 18:14:44 when I press run in eclipse android won't run my app... but rather loads the emulator's main screen Dec 01 18:15:46 try running it again while the emulator is running Dec 01 18:16:28 xbit, so I should start the emulator from the console? Dec 01 18:18:22 worx!! Dec 01 19:08:15 hi Dec 01 19:08:46 where does the gsm encoding take place in a phone? hidden in the hardware, or in the software? Dec 01 21:36:52 sweet, it's snowing at my house :) Dec 01 21:41:38 jasta: where are you located? Dec 01 21:44:20 Lede: seattle, wa. Dec 01 21:44:58 oh ok Dec 01 21:55:42 Does anyone know what the best approach would be to determine if a particular View inside a ScrollView is visible? Specifically, I want triggers for when it scrolls totally out of view, or comes partially in view. Dec 01 21:55:48 s/or/and/ Dec 01 21:56:53 My first thought was to extend ScrollView, specifically hooking into computeScroll() to determine if the mScrollY position is beyond the height of the view i care about (which is at at the top). Dec 01 21:57:20 but computeScroll() seems to be fired very often (about 20 times for a single user-initiated scroll) so it doesn't seem like an efficient place to perform this check. Dec 01 22:02:02 i thought that maybe onLayout might be a sensible hook too, but I'm not sure if I can rely on mScrollY being updated at that time. Dec 01 22:02:57 jasta: what about http://code.google.com/android/reference/android/view/View.html#onScrollChanged(int,%20int,%20int,%20int) Dec 01 22:05:11 oh, that does seem more appropriate. Dec 01 22:06:59 Good Morning/Afternoon/night Dec 01 22:07:04 evening Dec 01 22:07:07 ;) Dec 01 22:07:11 ;P Dec 01 22:07:13 How goes? Dec 01 22:07:18 good, hacking away Dec 01 22:07:27 :) Dec 01 22:09:24 romainguy: onScrollChanged doesn't seem to get called in my extended ScrollView? Dec 01 22:11:40 the base ScrollView doesn't implement onScrollChanged, so I don;t think it uses it Dec 01 22:11:43 *don't Dec 01 22:12:39 computeScroll() does definitely seem to work, it's just that I'll need to be very efficient about my test because it is called so much. Dec 01 22:15:10 in other news, I finally got my sectioned entries list working nicely for my feed reader :) Dec 01 22:15:36 have any screenshots? Dec 01 22:15:36 grats :) Dec 01 22:16:27 I can make some Dec 01 22:19:18 700mhz spectrum bid on monday! Dec 01 22:19:53 http://flickr.com/photos/11517864@N07/2078402743/ Dec 01 22:20:00 http://flickr.com/photos/11517864@N07/2079191722/in/photostream/ Dec 01 22:21:09 * AIDS makes a mess in his pants Dec 01 22:21:24 i want a sexy phone, running android, on 700mhz spectrum.... tomorrow Dec 01 22:21:48 Luniv: Hmm, how'd you make the day (yesterday, thursday, etc) extend all the way to the edge of the screen? Dec 01 22:21:54 I'm running into this strange implicit margin problem. Dec 01 22:22:36 Luniv: love the last news item, "exploding cell phone battery kills" Dec 01 22:22:44 changed the list selector, and gave the item a background Dec 01 22:22:53 LOL Dec 01 22:22:58 I didn't even see that Dec 01 22:23:02 Luniv: oh hehe. that's lame :) Dec 01 22:23:17 i'm thinking about just waiting for Google to fix that particular idiocy. Dec 01 22:23:24 yeah I agree Dec 01 22:23:34 but I got tired of looking at the 10px margins Dec 01 22:23:41 if ever Dec 01 22:23:42 hehe yeah, they're unsightly :) Dec 01 22:23:56 also, are you Yesterday, Thursday, etc labels part of the list itself, but just set to non-selectable? Dec 01 22:24:11 your* Dec 01 22:24:17 for the moment, part of the list and set to non-selectable Dec 01 22:24:35 I'm working on making them collapse their associated sections right now Dec 01 22:27:36 I suppose we could always extend the ListView and implement onMeasure, since that's where it's adding in the selector padding Dec 01 22:30:26 you guys dont like the selector img hack? lol Dec 01 22:31:03 it feels dirty :p Dec 01 22:31:34 heh... well, in an alpha release... everything gets a bit messy, no? Dec 01 22:31:47 that's true Dec 01 22:31:51 but still! Dec 01 22:31:54 hehe Dec 01 22:35:03 I'm curious as what's going to be changed/fixed/added in the next release of the SDK though Dec 01 22:35:07 should be interesting Dec 01 22:35:17 * Nescio agrees Dec 01 22:38:04 though I'm really really hoping they fix the emulator bug with vista where if you put the computer to sleep with it running, it kills your network when you wake it up :S Dec 01 22:38:21 ouch Dec 01 22:38:32 *network connection Dec 01 22:38:44 ...on vista... and on that bug ;P Dec 01 22:39:08 lol Dec 01 22:39:58 * Luniv half agrees Dec 01 23:02:06 so is anyone using content providers internally, or are you just using a database directly? Dec 01 23:02:17 i am. Dec 01 23:02:40 my rss reader app exposes itself "correctly" with ContentProviders and meaningful Intent actions. Dec 01 23:03:26 I'm doing that at moment too, but I'm finding it constricting for some internal actions Dec 01 23:04:20 just wondering how hard it would be to use both at the same time without having things getting in the way of each other Dec 01 23:06:46 using both is sort of an internal admission that your application has an advantage of other applications. Dec 01 23:06:54 and? Dec 01 23:07:01 I dont see that as an issue ;P Dec 01 23:07:02 a bit against the grain from Android. Dec 01 23:07:17 s/of/over/ Dec 01 23:07:28 well, I could do it using intents and so forth Dec 01 23:07:35 Nescio: Your application should not offer generalized data that is in any way limited than your own internal requirements. Dec 01 23:07:51 but it'd be alot more efficent if I went directly to the DB for some things Dec 01 23:07:55 Imagine if the contacts app held data that it didn't expose via ContentProvider's. Or had a more efficient way to do something that you could not replicate. Dec 01 23:08:05 I dont believe that's proper... Dec 01 23:08:07 Luniv: Then your ContentProvider is not well designed. Dec 01 23:08:31 maybe Dec 01 23:08:34 I will provide my data, as I see fit... but some parts are particular to my app, and will remain so Dec 01 23:08:39 it was the first thing I did lol Dec 01 23:09:16 Nescio: that is not what Luniv is talking about. he is talking about exposing data in one way, and using it internally in a different way, such that his internal usage is much more efficient than is possible externally. Dec 01 23:09:32 ah, ic Dec 01 23:10:01 yeah, lets say whe have 3 tables, feeds, entries and categories Dec 01 23:10:20 There is no good reason to do something that way. If the ContentProvider mechanics are such that they limit efficiency, then specific points should be brought up with Google and eventually the platform community to resolve. Dec 01 23:10:26 Rather than working around them in a less flexible way. Dec 01 23:11:05 Luniv: The ContentURI input is completely flexible btw. You do not need to restrict yourself to any particular URL mechanics. Dec 01 23:11:24 and you can construct special queries for each of any unlimited number of URI forms you wish to create. Dec 01 23:11:52 I'm chewing on it right now actually Dec 01 23:12:01 kinda thinking out loud ;) Dec 01 23:12:05 that said, you could offer multiple ways to use your ContentProvider. one that is inefficient but simple, and another that is efficient and perhaps less general. Dec 01 23:12:23 that is how i am implementing my usage. Dec 01 23:12:28 I see Dec 01 23:12:44 that is far better than directly accessing your tables for any reason. Dec 01 23:15:02 man, it is really coming down outside. almost an inch now :) Dec 01 23:15:14 nice, same here Dec 01 23:16:09 only have 2-3 cm from last week up here Dec 01 23:16:19 cold though :( Dec 01 23:28:40 oh - hehe, I meant rain... i wish we got snow down here Dec 01 23:29:18 lol, I'd rather rain Dec 01 23:29:30 don't have to shovel rain... Dec 01 23:30:36 hehe true. Dec 01 23:31:26 stopped snowing :\ Dec 02 00:27:14 hmm, i do not understand addIntentOptions apparently. Dec 02 00:27:18 i just cant make this silly thing work Dec 02 00:32:06 oh, stupid typo in the intent-filter :\ Dec 02 01:48:48 Nescio: i'm uploading my repository to google code right now. Dec 02 01:52:56 hmm, it's really slow for some reason. Dec 02 01:53:04 Happens :-) Dec 02 01:53:18 i'm using svnsync and it's taking like 30-40 seconds per revision. Dec 02 01:53:28 jasta: cool :) I'll be sure to check it out Dec 02 01:53:40 Nescio: http://android-rss.googlecode.com/ when it finally uploads... Dec 02 01:57:59 jasta: do you know about the rome library? Dec 02 01:58:02 jasta: looks very nice!! Dec 02 01:59:11 Luniv: No, although I did look at a few open source RSS libraries in Java and ultimately chose to write my own for efficiency purposes. Too many of them wanted to parse the document structure into a tree, which is way outside of practical for a mobile device. Dec 02 02:00:20 ugh, svnsync is still running. Dec 02 02:00:27 ah, was just curious. It's what I'm using at the moment, since it let me worry about implmenting the rest of a RSS feed reader instead Dec 02 02:02:43 Luniv: Yeah, I thought about doing that as well to just get that stuff out of the way quickly, but then I just decided not to lock myself into a pattern that i couldn't ultimately keep. Dec 02 02:03:40 fair enough. Just wanted to bring it to your attention if you didn't know about it :) Dec 02 02:03:53 looks pretty cool though :) Dec 02 02:04:47 how do you set the padding on the selector jasta? Dec 02 02:05:42 haavi: what do you mean? Dec 02 02:05:57 in the first picture it's smaller than than the standard padding for selectors Dec 02 02:06:04 isn't it? Dec 02 02:06:07 You mean that stupid margin bug I was referring to earlier? I never did figure that out, I just left it there :\ Dec 02 02:06:41 haavi: I don't think so. Every view you see in the screenshots is a custom XML layout though, even when its as simple as a ListActivity. Dec 02 02:06:49 ok Dec 02 02:06:51 so it lost the "default" padding in some cases, I think. Dec 02 02:07:18 Ok, the subversion repository is finally updated. Dec 02 02:07:35 when I set the padding on my rows the selector always overlaps the rows by a few pixels Dec 02 02:08:01 there is definitely some type of bug somewhere regarding the selector margins. i just can't figure out exactly how to tame it. Dec 02 02:08:09 perhaps we should start a thread and report it formally? Dec 02 02:08:25 yea, I dunno if it's a bug though Dec 02 02:08:51 the ListView takes the greater of the the list's or the list selector's padding for the left & right margins Dec 02 02:08:56 AFAIK Dec 02 02:09:32 so if you use the default selector, you're automatically getting 10 px on the sides Dec 02 02:09:33 top and bottom too I suppose then Dec 02 02:11:06 perhaps it's still there though in the first pic and it's only hard to see because you have a smaller top and bottom padding for the rows to begin with Dec 02 02:11:52 but if you give the rows different colors for even/odd colors you can definately see that the selector overlaps Dec 02 02:12:29 who knows, i'm honestly ignoring that crud until later :) Dec 02 02:12:52 looks nice jasta, I'm gonna download it and try it out Dec 02 02:14:17 it's a pity copy & paste doesn't work from OS to emu though Dec 02 02:15:51 haavi: no kidding ;) Dec 02 02:18:39 god I'd kill for that lol Dec 02 02:18:59 some of these feed urls are a pain to type >< Dec 02 02:20:07 i actually thought about releasing the project with a "defualt database" of 4 or 5 feeds so that people could play around without needing to type them in :) Dec 02 02:20:53 heh Dec 02 02:21:07 i still might do that, actually :) Dec 02 02:21:27 eventually, it'd be nice to have some sort of blogroll support or built-in feeds to pick from, but who knows. Dec 02 02:21:42 i don't know that this project will hold my attention long enough to get to that point :) Dec 02 02:22:06 hehe Dec 02 02:22:41 or be able to import feeds from a OPML file Dec 02 02:23:25 OPML is blogrolling, isn't it? Dec 02 02:25:07 yeah Dec 02 02:25:47 not really? isn't a blogroll just a list of favourite blogs? OPML is a xml format for distributing such lists Dec 02 02:25:51 though I've also read of using it to export feeds for a reader to subscribe to Dec 02 02:25:53 =) Dec 02 02:26:04 whatever :) Dec 02 02:26:09 ie google reader can import feeds from it Dec 02 02:27:24 isn't googlereader builtin to the api? Dec 02 02:30:20 which API? Dec 02 02:30:43 *sdk Dec 02 02:31:57 I don't think so... Dec 02 02:32:02 I know gdata is though Dec 02 02:33:07 there's a provider named SubscribedFeeds in android.providers though, so maybe it'll be showing up later? Dec 02 02:33:20 yea, that's what I meant Dec 02 02:33:48 yeah, probably. i actually only wrote an RSS reader because it was really easy. i just wanted to learn the platform with a simple throw-away type app. Dec 02 02:34:04 yup, I know... just sayin Dec 02 02:35:06 I figure all of Google's APIs will be accessible through Android eventually Dec 02 02:35:15 wouldn't that make sense? Dec 02 02:35:16 * Nescio agreed Dec 02 02:35:35 yeah, every online service google has will eventually find its way onto Android, without a doubt :) Dec 02 02:36:03 my thought, though, is that some of them will suck and should be replaced by better, community-driven applications :) Dec 02 02:36:16 haha, agree on that to Dec 02 02:36:18 too* Dec 02 02:36:34 for example, i want more e-mail choices for my phone than gmail :) Dec 02 02:36:39 replaced or rewritten Dec 02 02:36:43 and more calendar backends than google calendar :) Dec 02 02:36:44 or added to Dec 02 02:37:12 google docs and spreadsheets minified might be cool, though ;) Dec 02 02:37:27 well, if we google screws up with the RSS reader there's probably going to be 30 million replacements for it, heh Dec 02 02:37:29 a calendar that integrates with gcal shouldn't be so hard to write Dec 02 02:38:23 Luniv: hehe, yes. but the coolest part is taht nearly everything will have more than one application satisfying the requirement. open source handles philosophical differences very well :) Dec 02 02:38:56 yeah Dec 02 02:39:10 it'll be interesting to see how it all shakes out Dec 02 02:41:24 yess, indeed Dec 02 02:42:34 the problem I have with google doing applications for all their services is that it makes it hard to think of something to do, other then something like a game :s Dec 02 02:43:23 Luniv: Hmm, not really. Dec 02 02:43:25 haha - yea, I did have to rethink thingss once I saw the api... gotta think pretty big to gain that wow factor Dec 02 02:43:29 Just do what you think Google will do, but just do it better. Dec 02 02:43:29 ;) Dec 02 02:44:14 lol Dec 02 02:44:35 * Luniv breaks out the Red Bull Dec 02 02:45:57 there are certain applications they have admitted to not implementing though Dec 02 02:46:00 or at least, theyve suggested it. Dec 02 02:50:16 one app i'd love to see is a well-done (key word!) rdp client. Dec 02 02:50:24 rdp and vnc, might as well roll them together. Dec 02 02:50:43 so that IT admins can actually do work on Windows systems while away from their computer. Dec 02 02:50:58 it's a tricky problem to solve on such a limited device, but so is web browsing. Dec 02 02:51:04 and that one gets solved reasonably well. Dec 02 02:51:17 don't see why that wouldn't work through the browser already? Dec 02 02:51:29 servers like UltraVNC has a web interface too Dec 02 02:51:59 it would be cool to have it as an app though, I agree Dec 02 02:53:29 haavi: the point is that webkit does not have sufficient specialization to make this possible well. Dec 02 02:53:47 that's probably true yeah Dec 02 02:53:54 the point is not to just produce a port of rdesktop or xvncviewer for Android, but rather rethink the problem completely and solve it using existing protocols (rdp and vnc) Dec 02 02:53:58 but not just emulate an existing client. Dec 02 02:54:07 intelligent scaling and input management is critical. Dec 02 02:54:12 yea I get what you mean Dec 02 02:54:34 and if you were going to implement that all in java, why not do it natively instead of doing it in a java applet for webkit? :) Dec 02 02:54:55 I dunno, I was just saying that it might already be possible Dec 02 02:55:25 nvm me, I'm tired Dec 02 02:55:26 anyone know what tombstones are? Dec 02 02:55:50 pizza? Dec 02 02:55:57 grave markers? Dec 02 02:56:02 pointers to corpses? Dec 02 02:56:18 "Oh no! This one isn't properly cast! The horror! The horror!" Dec 02 02:56:26 in android :p Dec 02 02:56:39 oh, then, no. Sorry. I'm new :) Dec 02 02:56:48 heh Dec 02 02:56:59 All I've done so far is the Hello, Android app, and it's been *ages* since I coded Java, so I'm basically looking at relearning everything :) Dec 02 02:57:21 I figured they were core dumps (that what the two on my FS look like) Dec 02 02:58:17 what an amusing name for code turds Dec 02 02:58:18 but the SubscribedFeed provider has a field named "feed_uses_tombstones" Dec 02 02:58:28 * Luniv scratches his head, puzzled Dec 02 02:58:39 that's awesome Dec 02 02:58:43 http://en.wikipedia.org/wiki/Tombstone_%28programming%29 Dec 02 02:59:37 hrmm Dec 02 02:59:41 interesting **** ENDING LOGGING AT Sun Dec 02 02:59:56 2007