**** BEGIN LOGGING AT Mon Mar 17 02:59:56 2008 Mar 17 05:55:20 Hi, anybody here know how change the MapView position? Mar 17 05:55:40 I am using addContentView(myMapView, new LayoutParams(50,50,100,100)) Mar 17 05:56:25 it just set the heigth and width, but the X and Y are not changed Mar 17 06:06:13 Hi Mar 17 06:07:10 does one here know abou MapView? Mar 17 06:13:01 is there one awake? Mar 17 06:13:30 i am, but i don't have an answer for you Mar 17 06:14:44 ok Mar 17 06:15:27 I guess that problem can be a android bug Mar 17 06:15:30 hm, have you guys used the eclipse plugin to load programs into the emulator? Mar 17 06:15:38 yep Mar 17 06:15:45 cause I am using the right method Mar 17 06:15:46 without rebooting the emulator each time? Mar 17 06:15:50 yep Mar 17 06:16:03 just keep the emulator running and hit the run button button in eclipse again Mar 17 06:16:11 it took me a while to figure that out Mar 17 06:16:16 How about debugging and stepping through the code? Mar 17 06:16:20 same step Mar 17 06:16:23 keep it running Mar 17 06:16:26 hit the debug run button Mar 17 06:16:29 yeah, half my problem is that I'm totally unfamiliar with eclipse as an editor. Mar 17 06:16:30 okay, then I must be doing something wrong. I'll have to investigate it later. Mar 17 06:17:00 just as long as I know it's possible :) Mar 17 06:17:06 what kind of project are you working on, jerkface03? Mar 17 06:17:17 networked twitch gaming stuff Mar 17 06:17:20 u? Mar 17 06:17:28 security and crypto stuff. Mar 17 06:17:33 nice Mar 17 06:17:37 hopefully Mar 17 06:17:47 mostly just exploratory meddling at the moment, naturally. Mar 17 06:19:24 what kind of network protocols are you using? Mar 17 06:19:34 I assume there's a full tcp/udp stack available? Mar 17 06:19:51 mostly udp Mar 17 06:19:56 it's for a class project Mar 17 06:20:10 ahh homework, how fun Mar 17 06:20:40 how are you planning on finding other people to play with? Mar 17 06:21:15 well, im planning on having a central server somewhere Mar 17 06:21:16 but Mar 17 06:21:25 just like you, right now im just doing some exploratory meddling Mar 17 06:21:45 how far in have you gotten? Mar 17 06:22:22 pretty far, all the core modules have been written up and tested somewhat Mar 17 06:27:32 and how has the android api stood up to actual use? Mar 17 06:27:50 it's pretty alright Mar 17 06:27:58 not too many major problems/ Mar 17 06:28:00 there are still a few things that haven't been implemented Mar 17 06:28:05 like the bluetooth stuff Mar 17 06:28:21 are you able to emulate sms messages and stuff? Mar 17 06:28:28 but no, no major problems. i've only noticed one major bug so far, which will probably be fixed in the next release Mar 17 06:28:35 what was ti? Mar 17 06:28:48 and if you bug romainguy enough he'll implement missing features for the next release Mar 17 06:28:54 as in my case with nio Mar 17 06:29:01 Gambit-: mediaplayer problems Mar 17 06:29:18 Gambit-: haven't played much with sms on android yet, so i wouldn't know Mar 17 06:29:38 hm, ok Mar 17 06:29:58 I seem to remember seeing that there wasn't any way of faking phone calls or other connectivity related stuff in the emulator yet. Mar 17 06:30:19 does it bridge the emulator internal interface to your external network interface? Mar 17 06:31:13 http://code.google.com/android/reference/emulator.html Mar 17 06:31:28 check out the telephony emulation section Mar 17 06:32:01 what, third and forth paragraphs? Mar 17 06:32:27 what? Mar 17 06:32:28 http://code.google.com/android/reference/emulator.html#telephony Mar 17 06:32:38 you can simulate sms/calling Mar 17 06:32:43 it tells you how Mar 17 06:32:50 ooh, missed that section when I was skimming. Mar 17 06:33:20 haha that's funny Mar 17 06:33:46 what's so funny about it? Mar 17 06:34:02 my screen was exactly the right size to not see all the text below the main screen. Mar 17 06:37:53 well that should be enough to get me started... Mar 17 06:38:14 you better get busy if you're hoping to make something in time for the challenge Mar 17 06:38:20 i think the cut off date is april 14th Mar 17 06:38:21 challenge? Mar 17 06:38:26 * Gambit- shrugs Mar 17 06:38:35 http://code.google.com/android/adc.html Mar 17 06:39:13 I doubt anything I'm thinking about would be sufficiently compelling to compete against anyone elses entry. Mar 17 06:39:31 plus, I can't commit to the time it'd take to get it to polish level. Mar 17 06:39:41 *shrug* you never know Mar 17 06:40:16 s'true :) Mar 17 06:43:11 anyways, off to bed, ta Mar 17 07:08:17 does anyone know if sqlite is the preferred way to store application settings such as a username/password? Mar 17 07:08:52 seems to be a bit much to use a database when I'm only storing this information Mar 17 07:17:20 raidfive: what about shared preferences? Mar 17 07:19:58 I glanced at that but wasn't sure exactly how it worked or if that was what I was looking for Mar 17 07:20:04 know of a code example using it? Mar 17 07:21:11 yeah sure Mar 17 07:21:25 ah found the google api demo Mar 17 07:22:12 SharedPreferences settings = getSharedPreferences Mar 17 07:22:12 ("ANY-NAME-HERE", 0); Mar 17 07:22:12 SharedPreferences.Editor editor = settings.edit(); Mar 17 07:22:12 editor.putString("title", selected.getTitle()); Mar 17 07:22:12 // Don't forget to commit your edits!!! Mar 17 07:22:13 editor.commit(); Mar 17 07:23:19 // Restore preferences Mar 17 07:23:19 final SharedPreferences settings = getSharedPreferences Mar 17 07:23:19 ("ANY-NAME-HERE", 0); Mar 17 07:23:19 String title = settings.getString("title", "Default Title Here.."); Mar 17 07:24:07 this is persistant? Mar 17 07:30:24 yes Mar 17 07:31:41 sigh, i'm getting sick now ;) Mar 17 07:32:53 thanks ... I just got over a cold :/ Mar 17 07:33:28 thanks? do you think irc channels are a sufficient medium to transmit viruses and bacteria? Mar 17 07:34:43 thanks for the code example! :) Mar 17 07:34:58 and you never know Mar 17 07:35:13 yes, in this case you do know. Mar 17 07:38:47 hey jasta, any luck with media? Mar 17 07:40:28 no, there's no luck to be had. Mar 17 07:40:41 it's simply an incomplete design, and cannot be made to work right. Mar 17 07:43:52 jasta: how to create an mpeg4 video? what's the best tool? Mar 17 07:44:10 my adc partner is hounding me, and i have no idea Mar 17 07:44:23 mencoder, of course. Mar 17 07:44:34 or transcode Mar 17 07:45:07 can you do it from quicktime? Mar 17 07:47:23 who knows / doubt it. Mar 17 07:47:58 ok Mar 17 07:48:21 i'm sure you can find some commercial tools to do this as well, if you're looking to avoid a small bit of reading. Mar 17 07:49:22 yup got an encouraging mail from my partner.. doing the exact same thing Mar 17 07:49:51 hope it works.. i'm getting distracted on this whole video thing and not able to make any real progress with code Mar 17 07:50:02 i have avoided the problem for now. Mar 17 07:50:09 onto more interesting things :) Mar 17 07:50:18 rock on :) Mar 17 07:55:06 OSGi on Android? woah - http://www.adon-line.de/kunden/prosystBlog/?p=24 Mar 17 08:24:56 yo Mar 17 08:31:58 yo yo Mar 17 08:32:11 whats up romain? Mar 17 08:32:59 tired Mar 17 08:33:05 late night hacking for the past three days Mar 17 08:33:23 ha.. that's what weekends do to you Mar 17 08:33:35 what? no drinking this weekend at all? Mar 17 08:33:36 except it's for work :) Mar 17 08:33:51 thanks for clarifying ;) Mar 17 08:34:07 i drank too much :) Mar 17 08:34:13 jasta: I did, yesterday afternoon; there was a St Patrick's parade in the street where I live Mar 17 08:34:21 but hey, deadlines... Mar 17 08:34:28 have you seen the celebration they do in Chicago? Mar 17 08:34:34 nope Mar 17 08:34:50 they dye the chicago river green Mar 17 08:34:57 what? Mar 17 08:35:02 really?? Mar 17 08:35:06 hang on, ill find a photo Mar 17 08:35:38 i thought the US rules were pretty strict in terms of polluting Mar 17 08:35:49 http://www.greenchicagoriver.com/ Mar 17 08:36:06 muthu: they may well (and probably do) use a non-toxic dye. Mar 17 08:38:05 i like any celebration that encourages you to drink from 8am Mar 17 08:45:18 muthu: i just looked it up, they use a vegetable dye that only works for a few hours. Mar 17 08:45:52 oh great Mar 17 08:48:59 prff Mar 17 08:50:44 well anyway Mar 17 08:50:51 i had a hell of a weekend, but didn't do a bit of work :) Mar 17 08:51:21 ditched and went snowboarding all day Friday, then went out with my buddy who just got back in town from NY. Mar 17 08:51:33 then threw a st patty's day party at my house last night Mar 17 08:52:03 and sat around all day today drinking loads of water and watching mythbusters Mar 17 08:52:11 great time :) Mar 17 08:53:08 man.. wonderful! Mar 17 08:54:28 yesterday there was a family get together.. so it went well for me Mar 17 08:54:35 i'm doing family stuff tomorrow Mar 17 08:54:40 and the delicious chicken biriyan!! Mar 17 08:54:47 we're Irish, so probably corn beef and cabbage at my brother's house or something Mar 17 08:54:54 grea Mar 17 08:54:58 great Mar 17 08:55:19 why the chicken biriyani turned out well was we hired a professional cook Mar 17 08:55:54 as for as biriyani.. chennai & hyderabad is the place to be Mar 17 08:56:04 jasta: have you tried biryani? Mar 17 08:56:40 nope, never even heard of it Mar 17 08:57:09 its a spicy mix of rice and chicken Mar 17 08:57:21 or lamb or beef Mar 17 08:57:52 try it next time Mar 17 08:58:02 next time what? Mar 17 08:58:22 if you ever go to a indian restaurant that is Mar 17 08:58:48 ahh, you know i have to be honest Mar 17 08:58:56 tell me Mar 17 08:59:04 indian food is quite delicious, but i have a really hard time detecting much difference between the various dishes and types of curry Mar 17 08:59:26 i mean really. there are like 30 things on the menu or so. of them, i'd say i could distinctly detect 5 or 6 :) Mar 17 08:59:29 true.. there's a lot of varieties Mar 17 08:59:59 yup.. there's many styles south, north, kashmiri, punjabi, hyderabadi Mar 17 09:00:02 so on and on Mar 17 09:00:26 it seems to break down into just three general categories: spicy curry, sweet curry, or something cooked in the tandoor oven :) Mar 17 09:00:50 basically down south is rice, north is nan, roti etc., Mar 17 09:01:02 the kebabs would be great Mar 17 09:01:55 most restuarants in america i've experienced push both rice and naan on you. Mar 17 09:02:38 which is fine, because they are delicious, and we are civil and eat with forks :) Mar 17 09:02:49 haha Mar 17 09:02:50 lol Mar 17 09:03:15 i'll say try two things.. biriyani & kebabs Mar 17 09:03:36 idly, dosa are the south indian delicacies Mar 17 09:05:37 i've had kebabs before of course, but those are not strongly associated with indian cuisine in the US. Mar 17 09:06:00 indian cusine is diverse just like the people Mar 17 09:06:01 lots of cultures have a similar concept, and even many others have similar combinations. Mar 17 09:06:56 every state has its own thing Mar 17 09:07:05 muthu: Is it? Not that I have studied it much, but I wouldn't say that Indian food is especially diverse :) Mar 17 09:07:11 In fact, it seems kind of narrow to me :) Mar 17 09:07:39 French cuisine, for example, I'd more generally regard as diverse. Mar 17 09:08:11 just take south indian food as an example Mar 17 09:08:47 i wouldn't argue about indian restaurants in US because.. they tend to stock only the select few items Mar 17 09:09:12 that's the problem Mar 17 09:10:38 lamb rogan josh, btw, is my favorite :) Mar 17 09:10:53 yeah.. good Mar 17 09:11:16 i try to imagine the indian restaurants in US and i can see your point about diversity Mar 17 09:11:27 its the same old boring stuff all over Mar 17 09:11:44 i will try biryani though. i do eat at indian restaurants quite often. Mar 17 09:12:07 tell me what irish food is good? Mar 17 09:12:37 Irish food is very simple, typically. You find a lot of things like just quality, simple stews, flavorful breads, etc. Mar 17 09:14:20 Not much to write home about, and that's obviously why it hasn't penetrated many other parts of the world. But, it's a food very well paired with a pint of Guiness :) Mar 17 09:14:57 great Mar 17 09:17:16 now, the Irish have a weird take on breakfast I will say that. Mar 17 09:17:36 jasta: it's because they live too close to the brits Mar 17 09:18:19 Shit like blood pudding is very popular there, which even my traditional Irish catholic father can't stand :) Mar 17 09:19:25 wow blood pudding.. man that must be tasty ;) Mar 17 09:19:42 Irish soda bread is very good though, and it's served everywhere for everything Mar 17 09:20:52 ok.. i'll try soda bread then Mar 17 09:21:28 The analogy would be Indian naan, so, it wouldn't make much sense to eat it on its own. Mar 17 09:22:06 what would be the side dish? Mar 17 09:22:16 i mean the accompaniments Mar 17 09:22:18 *everything* :) Mar 17 09:22:36 nearly every meal in Ireland has soda bread with it; breakfast, lunch, and dinner. Mar 17 09:23:24 and you think indian foods are not diverse.. come on! Mar 17 09:23:43 I don't think Irish food is diverse either. It's sort of backwards to me, really :) Mar 17 09:24:15 chinese/japanese i guess they are the diverse ones Mar 17 09:25:22 My typical died includes a lot more Thai food than anything else hehe. But I'm from Seattle, so that's not hard to imagine. Mar 17 09:25:36 wow thai food - delicious Mar 17 09:25:53 Yes, their cuisine is much more deserving of praise :) Mar 17 09:26:03 true.. i love it Mar 17 09:26:17 oh.. sorry mistaken it with vietnamese Mar 17 09:26:31 the one i remembered was vietnamese in atlanta Mar 17 09:26:37 does anyone know how I can find a files size? Mar 17 09:27:05 raidfive: You can use java.io.File Mar 17 09:27:12 I noticed we have to use ApplicationContext.openFileInput(filename) to open the file Mar 17 09:27:55 raidfive: you can also just get the path to that full pathname on disk. Mar 17 09:28:10 err, something like that. that sentence was jumbled :) Mar 17 09:28:46 ok thanks Mar 17 09:29:09 not that this is a recommended approach. Mar 17 09:30:06 muthu: oh boy, 2:30, bed time :) Mar 17 09:30:47 good night Mar 17 09:30:48 I should do the same Mar 17 09:30:49 :( Mar 17 09:30:58 STUPID ALPHA CHANNEL @!# Mar 17 09:31:24 sunday nights are hard to sleep early Mar 17 09:33:50 * duey blames the alpha channel too Mar 17 09:35:06 thanks :) Mar 17 09:36:14 RGB was jelous of CMYK because CMYK had 4 colours, so RGB created an imaginary colour and called it alpha Mar 17 09:37:02 and both RGB and CMYK are jealous of Lab's camel case Mar 17 09:37:20 so they turned on caps lock in protest? Mar 17 09:37:31 zzz time Mar 17 09:37:32 cya Mar 17 13:50:13 hello, anyone knows WAP? Mar 17 16:05:16 have there been any android vs iphone sdk comparisons yet? Mar 17 16:13:16 Zer0Her0, mmmm... nothing good, afaik Mar 17 16:14:54 yea i've seen some overview type blog posts Mar 17 16:15:54 but nothing really substantial, and i definately don't have the knowledge/background to know what to look for/how to compare. Mar 17 17:17:17 glad, my monday is over.. phew! Mar 17 17:17:36 mine is just starting :p Mar 17 17:22:09 have fun romain Mar 17 17:22:47 actually i did some work today.. since the #android was very quiet Mar 17 17:39:55 http://www.businesswire.com/portal/site/google/?ndmViewId=news_view&newsId=20080317005934&newsLang=en Mar 17 17:40:40 webtide port jetty to android - iJetty here i come.. Mar 17 17:45:35 how cool is that.. now you can write web applications to run on android Mar 17 17:51:19 does someone have an idea how to perform a sql join against the android contacts table?! Mar 17 18:30:10 inZane-_: It doesn't really work that way. Since your only means of interaction comes from a content uri and query parameters, you'll need to find a content uri that matches the type of query you're after. Mar 17 18:30:29 If one doesn't exist, then it represents an omission on Google's part, and should be filed as an issue/feature request. Mar 17 18:31:14 That said, you can of course 'join' the data yourself. For example, you could implement an adapter which can wrap multiple cursors and logically combine the data contained. Mar 17 18:31:29 Certainly a very tedious solution, but this is of course a work-around for an incomplete content provider design. Mar 17 18:32:03 Content providers are very difficult to design well. You must expose a great deal of functionality from an inherently inflexible design pattern. Hopefully the concept will evolve a bit from what it is today. Mar 17 18:47:35 jasta: i considered implementing an adapter. the way i do it now is to perform a query for every row. im not sure if an adapter will bring any performance improvements... Mar 17 20:05:00 inZane-_: like i said, there is likely a content uri that you can use which joins the things you are interested in. Mar 17 20:05:43 if not, yes, use an adapter. performing a query per row is very inefficient. Mar 17 20:07:57 hey romain Mar 17 22:39:37 hrm... it would be super handy to be able to set properties via the command line Mar 17 22:42:59 what properties? Mar 17 23:36:32 are there android capable phones already? Mar 17 23:36:45 will openmoko be one? Mar 17 23:39:42 not really Mar 17 23:39:52 if they choose to, sure Mar 17 23:39:54 romainguy, stuff like gsm.sim.line1.number Mar 17 23:43:42 Hi, how can i access the "address" field of contacts ? Mar 17 23:44:20 i've read on a forum that it's automatically converted into a location, is that the case? Mar 17 23:45:42 f00f-: any phone device in development? Mar 17 23:48:38 sleep time for me Mar 17 23:48:52 MrKeuner, no, just tin cans and string Mar 17 23:51:43 o3u: you can access the contact data through a ContentProvider Mar 17 23:52:14 http://code.google.com/android/devel/data/contentproviders.html Mar 17 23:52:59 MrKeuner: yep, deifnitely, can't really disclose publicly yet. sorry. Mar 17 23:53:08 Can I associate a 'value' to each row in a ListAdapter? Mar 17 23:53:43 tmcneal: you can extend an adapter and implement something like that. Mar 17 23:54:07 Like say I have a sqlite table that has two columns, 'name', and 'id'. And I want to display the 'name' of each row, but when the user clicks it I want it to return the 'id' of that row. Mar 17 23:54:11 hmm, ok. Mar 17 23:54:14 or, more efficiently but also more awkward, you could extend the cursor and add that data. Mar 17 23:54:42 tmcneal: Uhm, for that you would not do either, instead you'd just use a SimpleCursorAdapter. Mar 17 23:54:48 excellent Mar 17 23:55:17 SimpleCursorAdapter has a gotcha, though. It works very well for nearly all cases, but not all cases ;) Mar 17 23:55:18 i knew there'd be a simple way of doing it, just didn't know what it was :) Mar 17 23:55:25 haha oh boy. Mar 17 23:55:43 well my case is simple, it's nothing more than the name and id example i gave. so hopefully it works fine :) Mar 17 23:56:28 SimpleCursorAdapter (actually, CursorAdapter) automatically binds the list id to the Cursor's "_id" column. So, what you are after is actually very conveniently handed to you. Mar 17 23:56:47 f00f-: I guess you cannot disclose any time frame either? Mar 17 23:56:59 the _id column will be handed to you by value in the OnListItemClickListener Mar 17 23:57:05 only within the next 4 quarters :) Mar 17 23:57:22 btw, _id column hacks are horrible. Mar 17 23:58:48 f00f-: I can't say that I agree. It is simply a nicety consistently utilized in the system. There is no reason to depend on it. Mar 17 23:58:58 Or rather, no need to. Mar 18 00:00:10 so you love __hacks, gotcha. Mar 18 00:00:52 what's a "__hack"? You mean, namespacing in languages that don't have strong scoping? Mar 18 00:01:25 no, i mean hacks, undocumented features that are prevalent in android. Mar 18 00:02:06 By undocumented do you mean documented? Mar 18 00:02:25 file:///usr/local/lib/android/docs/reference/android/widget/CursorAdapter.html Mar 18 00:02:30 (you get the idea :) Mar 18 00:02:56 hi Mar 18 00:03:15 does anybody know what contentproviderproxy is used for? Mar 18 00:04:50 it's just the binder stub for the content provider system Mar 18 00:05:29 you don't need to interact with it directly, nor can you. Mar 18 00:05:40 ok thx Mar 18 00:06:47 tmcneal: i dont see anything about address field though Mar 18 00:07:02 i'm not especially sure why google calls them proxies, but you'll find that type of implementation all over for their services and IPC components. Mar 18 00:07:29 how does OSGi fit into the android picture? Mar 18 00:07:40 there is a talk at EclipseCon this week about OSGi and Android Mar 18 00:07:55 sweet Mar 18 00:08:13 OSGI is a good platform Mar 18 00:08:36 i know zero about it. care to educate me in android terminology? Mar 18 00:08:40 concise and very usable Mar 18 00:08:44 yeah sure Mar 18 00:08:59 basically its a package manager for a jvm Mar 18 00:09:12 the advantage is that you can load stuff in and out without a restart Mar 18 00:09:18 you load things in as plugin Mar 18 00:09:19 s Mar 18 00:09:20 for osgi there is a port on android Mar 18 00:09:25 https://opensource.luminis.net/confluence/display/SITE/OSGi+Android Mar 18 00:09:41 the great thing is that it leverages the existing technologies Mar 18 00:09:42 chomchom: so does it enforce a hierarchy? Mar 18 00:09:54 what about service/component/package discovery? Mar 18 00:09:55 there is not a hierarchy as such Mar 18 00:10:11 you see it uses a thing called 'buddy loading' Mar 18 00:10:20 where a buddy is a dependency Mar 18 00:10:24 oh i see Mar 18 00:10:46 a buddy can see the classes of a dependency somewhere further down the call hierarchy stack Mar 18 00:11:12 when you start OSGI it just waits for things to be loaded in to it Mar 18 00:11:47 they don't necesarilly have to be 'active' they are just available Mar 18 00:11:48 funny enought OSGI use the term bundle for plugins Mar 18 00:11:51 hmm, sounds of little use to a project where i have control of all the dependencies... Mar 18 00:12:01 when a buddy calls on it it activates the plugin Mar 18 00:12:02 acsia: agreed Mar 18 00:12:22 it uses jar files Manifests Mar 18 00:12:25 chomchom: so could you say androi'd Bundle/Intent/IntentReceiver/broadcastIntent(...) is an example of an OSGi-like system? Mar 18 00:12:36 definetly Mar 18 00:12:42 I see similarities Mar 18 00:13:02 OSGi seems like a behemoth, and i understand it's used by the eclipse framework? Mar 18 00:13:16 yeah eclipse uses it under the hood since 3.2 Mar 18 00:13:25 but OSGI is teeny tiny Mar 18 00:13:29 f00f-: check http://blog.luminis.nl/luminis/entry/osgi_on_google_android_using Mar 18 00:13:48 the example explains a bit Mar 18 00:14:05 you load the telnet bundle and then you use it Mar 18 00:14:15 Eclipse uses it to activate/deactivate plugins in the IDE without a restart Mar 18 00:14:16 it is not ported on m5 yet Mar 18 00:15:11 ah hm Mar 18 00:15:31 so you cannot dynamically unload classes in java? Mar 18 00:15:38 opposite of Class.forName ? Mar 18 00:15:43 o3u: maybe this is it: android.provider.Contacts.People.HOME_TYPE Mar 18 00:16:29 i know android.provider.Contacts.People.NOTES is notes and android.provider.Contacts.People.NAME is name.. in my program i left the setting of the other contact fields as a todo for now Mar 18 00:16:52 But OSGI also give a form of dependency injection/ ala reflection/hibernate with much more stringent control. Mar 18 00:17:13 ya Mar 18 00:17:27 awareness as well for other bundle of loading and unloading + security Mar 18 00:17:59 right Mar 18 00:18:04 context sep, etc. Mar 18 00:19:05 tmcneal: thx i'll try it, where did you find it listed? nor android nor the doc had it Mar 18 00:19:09 eclipse* Mar 18 00:20:46 nevermind, found it :) Mar 18 00:21:28 o3u: the docs are little misleading here. i found a few constants that all could reference the 'name' field for example, but the other ones didn't work for me Mar 18 00:21:35 i just did it by trial and error Mar 18 00:23:15 actually i found this: String POSTAL_LOCATION_LATITUDE/LONG.. in android.provider.Contacts.ContactMethods Mar 18 00:24:51 so you're trying to get the lat/long of a certain contact's address? Mar 18 00:26:06 I was trying to get the address, which is at CONTENT_POSTAL_ITEM_TYPE, but i've heard it's automatically converted to lat/long, i suspect that those are contained in the above variables Mar 18 00:27:24 oh ok Mar 18 00:27:31 sorry don't know anything about that. Mar 18 00:28:15 thanks chom Mar 18 00:31:30 <_avatar> is there any way to determine the amount of free space available on the currently mounted SD card? Mar 18 00:34:59 Not currently, no. Mar 18 00:35:19 However, if you are after this information for any other reason than to display it to the user, you're headed down the wrong path :) Mar 18 00:35:44 see what i mean? obvious shortcomings! Mar 18 00:36:23 <_avatar> why? i want to preflight a potentially long operation that writes data to the card -- i'd like to bail out early if there isn't enough space Mar 18 00:36:33 <_avatar> i mean, i understand that some other app could fill up the card in the mean time Mar 18 00:36:44 _avatar: You will bail out early, because a write operation will fail and throw an exception. Mar 18 00:36:44 <_avatar> but the preflight check would be useful in my case Mar 18 00:37:39 <_avatar> ok, so the write exception is thrown. is there a way to determine the error was caused by the disk being out of space? Mar 18 00:37:46 <_avatar> maybe it would be a good idea to tell the user that's why the operation failed Mar 18 00:38:05 <_avatar> :P Mar 18 00:38:11 Yes, however, the information your after is highly appropriate to access for purposes of reporting it to the user, as I said. Mar 18 00:38:16 you're* Mar 18 00:38:27 But you can't right now, :) Mar 18 00:39:35 <_avatar> oh well :( Mar 18 00:40:23 <_avatar> thanks for the info, though. now i won't have to spend any more time scouring the android docs Mar 18 00:42:12 It's probably an omission, and it might be worth filing a bug report even. Mar 18 00:48:56 hey what do I have to change in eclipse (I'm not familiar with it) so that I can browse into the android source in the debugger? Mar 18 00:49:13 Android source is not available, so nothing could be changed in Eclipse to do that. Mar 18 00:49:16 hm, for that matter, do I even have the android source? Mar 18 00:49:22 heh Mar 18 00:49:56 ah well. Mar 18 00:51:30 Gambit-: see JADclipse, it's a plugin that pulls up the source...don't know if it's useful for debugging though (not sure if line numbers match correctly?) Mar 18 00:51:54 * Gambit- looks between zhobbs and jasta, "source, or no source? Mar 18 00:52:03 Gambit-: sorry, decompiled source Mar 18 00:52:10 not the read source Mar 18 00:52:13 ahh okay Mar 18 00:52:14 real* Mar 18 00:54:02 hm... Mar 18 00:54:10 so I'm artificially creating a null pointer exception Mar 18 00:54:25 but it's not telling me where the exception is coming from. Mar 18 00:54:25 Gambit-: what's the stack trace? Mar 18 00:54:33 this is me learing eclipse, btw Mar 18 00:54:42 Gambit-: adb logcat ;) Mar 18 00:54:43 I'm just playing with the snake demo, atm. Mar 18 00:55:11 I'm looking at the logcat window Mar 18 00:55:21 and I'm running it under the debugger, more to the point Mar 18 00:55:54 In the breakpoint view you can click that little J! and add NullPointerException Mar 18 00:55:55 it shows me a thread, but the top entry is in ViewRoot.deliverKeyEvent, not in SnakeView.addRandomApple where I fiddled. Mar 18 00:56:00 the logcat window in the eclipse plugin is inferior to the command line invocation (adb logcat) Mar 18 00:56:03 it's too hard to read Mar 18 00:56:05 and it will break anytime there is a NPE Mar 18 00:56:55 thanks zhobbs, lemme try that. Mar 18 00:58:08 well it still shows the deliverKeyEvent as the top of the stack. Mar 18 00:58:48 this is in one of the google samples? Mar 18 00:59:47 yeah, snake view Mar 18 00:59:58 and you're not modifying it? Mar 18 01:00:10 I've just taken a Coordinate newCoord = null; and added a newCoord.x = 3; right after it. Mar 18 01:00:30 Modified to fail intentionally, just to get the hang of debugging in eclipse and make sure the environments functioning correctly. Mar 18 01:16:16 huh, well, ignoring that Mar 18 01:16:33 does the emulator actually have any kind of sms support program built into it right now? Mar 18 01:16:40 nope Mar 18 01:16:46 that explains a bit Mar 18 01:16:54 if I sms send from the console, will the events actually be caught? Mar 18 01:17:01 yep Mar 18 01:17:04 hm Mar 18 01:17:19 I tried using the api demo but it didn't seem to actually fire on new sms's. Mar 18 01:20:14 Gambit-: I've gotten it to work: http://www.helloandroid.com/node/159 Mar 18 01:27:44 romainguy: http://code.google.com/android/reference/android/content/ContentResolver.html#update(android.net.Uri,%20android.content.ContentValues,%20java.lang.String,%20java.lang.String[]) -- the documentation for the return value doesn't make any sense ;) Mar 18 01:28:15 i assume it should be the number of rows affected? :) Mar 18 01:30:21 I'd like to try these on real hardware, they run VERY slow (unusable) on the emulator: http://www.omnigsoft.com/Android/ADC/readme.html Mar 18 01:30:39 the emulator doesn't do any hardware excel Mar 18 01:30:47 zhobbs, noted, I guess the demo doesn't do what I thought it did. Mar 18 01:31:20 s/excel/accel **** ENDING LOGGING AT Tue Mar 18 02:59:57 2008