**** BEGIN LOGGING AT Sun Mar 23 02:59:56 2008 Mar 23 03:06:33 does anyone know how to change your applications icon? I replaced the icon.png in /drawable but it didn't seem to do anything Mar 23 03:09:10 you can specify it in with android:icon="@drawable/whatever" Mar 23 03:10:59 yea I have @drawable/icon and the image is icon.png Mar 23 03:11:17 I'm wondering if for some reason it is using the old icon because the name hasn't changed Mar 23 03:11:49 yeah, dunno...I'm sure if you change it it'll work Mar 23 03:12:04 yea that was the issue it seems Mar 23 03:12:05 i noticed sometimes it takes awhile for changes in images to take effect Mar 23 04:41:44 is it possible to open the options menu on application startup? Mar 23 04:43:09 I was looking at Activity.openOptionsMenu() but I'm not sure where it is appropriate to call it Mar 23 06:16:02 :( no MapActivity demo? Mar 23 06:24:06 hmm, i wonder where Android's attributes are defined? as in, ?android:attr/textAppearanceLarge Mar 23 06:37:38 Point() - Constructs a Point with the given latitude and longitude, measured in microdegrees (degrees * 1E6). Mar 23 06:38:24 are these expected lat/lon values the same as Location.getLatitude() * 0x1E6 ? Mar 23 06:42:32 ah got it ... that isn't a hex value :P Mar 23 06:46:34 hola androiders Mar 23 06:47:27 hello Mar 23 06:48:10 anything new jasta ? Mar 23 06:48:19 so, is this media player thing your main app? Mar 23 06:48:26 yes Mar 23 06:51:48 So, are we going to see things like NES emulators for android? Mar 23 06:51:55 like the one that exists for the hacked iphone Mar 23 06:52:05 hey Smoke_Screen Mar 23 06:52:16 i don't see why not, especially since there are quite a few open source NES emulators that run on Linux Mar 23 06:52:28 but i don't think they're in java, does that matter Mar 23 06:52:29 ? Mar 23 06:52:34 why would it? Mar 23 06:53:02 i don't know what sort of access you have to the phone, does everyone have root? Mar 23 06:53:03 all you'd have to do is write some glue between java and the nes engine and UI. Mar 23 06:53:33 I don't understand how the whole android api works yet, and what sort of "glue" that would take Mar 23 06:53:34 howzit Mar 23 06:53:43 rhett_: Not much. Mar 23 06:53:54 Hey Smoke_Screen are you working on a app for he contest? Mar 23 06:54:09 jasta, do you know if there is a way to open the options menu when you first startup your application? Mar 23 06:54:20 rhet_: not gonna have my app ready Mar 23 06:54:25 raidfive: No, sorry. Mar 23 06:54:32 no prob Mar 23 06:54:40 that's a shame Smoke_Screen , maybe you can submit a best effort Mar 23 06:54:44 developing an app for my Final Year project Mar 23 06:55:06 I'd really like to see google award money to people developing libraries to help apps Mar 23 06:55:38 I'm developing a BitTorrent library, I'd love some money :) Mar 23 06:55:56 i doubt a bittorrent library would win even on its merit. Mar 23 06:56:08 why jasonchen ? Mar 23 06:56:11 oops jasta Mar 23 06:56:11 it's pretty trivial, and not especially innovative as they are looking for. Mar 23 06:56:21 true Mar 23 06:56:52 i don't know what kind of innovation they are looking for, but I really have not seen any android apps yet that are too impressive Mar 23 06:57:03 the skypop stuff on youtube is kinda neat Mar 23 06:57:28 kinda obvious though Mar 23 06:57:46 hey qik.com looks impressive Mar 23 06:58:03 rhett_: i would assume that most folks working on the ADC are not intending to release any public details of their project until at least round 1 is over. Mar 23 06:58:20 video streaming from mobile to the web, that's qik! Mar 23 07:00:21 yeah, that's kiind of nerveracking, I assume the competition will be much stiffer for round 2, but it would be nice to know how many decent apps there already are Mar 23 07:00:41 definitely more than 50 Mar 23 07:00:52 i'm seeing a lot of cool apps around me Mar 23 07:00:56 all worthy of winning Mar 23 07:01:05 Basically, my app just uses the standard view widgets, and I'm interacting with the content list, etc. Mar 23 07:01:30 I'm figuring out how to do the subactivity stuff tonight make the back button work correctly Mar 23 07:01:54 yeah, it would be nice to be around that kind of environement muthu, are you working at a company where people are developing stuff? Mar 23 07:02:05 "contact list" Mar 23 07:02:35 rhett.. yes we are developing apps for android Mar 23 07:02:54 the stuff on http://www.anddev.org/ is not too impressive visually Mar 23 07:04:29 That's because the site is designed as a collection of small tutorials and examples, not as a generall useful, distributale product. Mar 23 07:04:39 distributable* Mar 23 07:05:48 why do all the demos on youtube have a different android ui than the sdk? Mar 23 07:06:28 the video I was just watching was posted about a month ago so it doesn't seem like it is an outdated version of the os Mar 23 07:06:29 The SDK and UI have changed over time; most significantly from M3 to M5. Mar 23 07:06:42 raidfive: Where is the video? Mar 23 07:06:49 how long ago was M5 released? I started with M5 Mar 23 07:07:06 http://www.youtube.com/watch?v=1oZGbR71lDk Mar 23 07:07:28 that is definitely M3. Mar 23 07:07:31 also, they show a camera application which isn't present in the sdk Mar 23 07:07:42 raidfive: Google has much code that they have not released. Much. Mar 23 07:08:01 I am still looking to hire a short term consultant to help us, if anyone know an android developer with some free time Mar 23 07:08:13 is that just because the code isn't ready yet? or what? Mar 23 07:08:37 raidfive: Probably. But perhaps they also are not wanting to spill all their secrets just yet. Mar 23 07:09:18 I guess ... but a camera application isn't too secret :) Mar 23 07:22:00 i would suspect that nearly every app they write will tie into their online services in some way Mar 23 07:22:14 so they may have quite a few innovative tricks in every application you previously thought to be plain and boring. Mar 23 07:22:27 for example, maybe the camera app integrates nicely with picasaweb? Mar 23 07:40:51 lately i've been getting very curious how android styles things. specifically, where are the attrs and styles.xml files for the framework? Mar 23 07:41:03 i want to design my own TabWidget style, but I have no idea what TabWidget's default style is. Mar 23 07:42:10 I know that it's ?android:attr/tabWidgetStyle, but how was that defined? what attributes are possible and how would i extend them? Mar 23 07:42:17 or write my own entirely taht satisfies? hmm. Mar 23 07:43:49 i suspect that the definitions in our own applications would be through res/values/styles.xml, but why can't i find that information in Android's distribution for the base frameworK? Mar 23 07:47:11 i would expect it to be in /system/framework/framework-res.apk, but it isnt Mar 23 07:47:26 jasta: is there a styles.xml Mar 23 07:47:32 no, i cant find one Mar 23 07:47:35 and have been looking quite a lot Mar 23 07:48:12 yeah for a progress bar for example, you'll have to set vertical/horz style Mar 23 07:48:54 i'll look at R.styleable Mar 23 07:49:04 i am wondering if perhaps this resources.arsc format contains the magic. Mar 23 07:49:17 yeah.. that should be the one Mar 23 07:49:24 easy way to test is uppose. *extracting ApiDemos.apk* Mar 23 07:49:53 hope they make the xml's public at the very least Mar 23 07:50:00 Yup, sure enough. Mar 23 07:50:06 had a nice lunch btw :) Mar 23 07:50:37 I wonder how difficult it would be to reverse engineer the resources.arsc format now. Mar 23 07:50:56 you can do it jasta! Mar 23 07:51:06 work some perl magic Mar 23 07:51:47 I'm curious if it's similar to the format I already reversed Mar 23 07:51:56 which took only about 6 hours to fully discover Mar 23 07:52:25 i wonder why they are not making the xml's public Mar 23 07:52:32 yeah, that's really stupid. Mar 23 07:52:45 agree Mar 23 07:52:45 it's so hard to figure out how they are doing things. Mar 23 07:53:07 yeah.. and we know its in the docs Mar 23 07:53:19 the next time you can't see it.. very tough to navigate Mar 23 07:55:03 i like the style system, and would like to take advantage of it well to reduce code size and improve reusability, but it is hard to do so when it is so mysterious :) Mar 23 07:55:23 anyway, there's no doubt about it. this information is defined in resources.arsc Mar 23 07:55:33 cool Mar 23 07:56:36 that said, i do not initially recognize this format *at all* Mar 23 07:59:25 it's kind of a big file Mar 23 07:59:57 I may take a crack at this tomorrow. Mar 23 08:00:03 This would be very useful information to have. Mar 23 08:00:25 will be useful Mar 23 08:01:08 I had the thought to investigate this when I decided to use TabHost/TabWidget to implement some part of my music player interface but I don't really want the semantics of the TabWidget as it's being utilized currently. Mar 23 08:01:11 hm, how can i unit-test something that requires a Context to be passed in? Mar 23 08:01:21 I want more of a bottom row of buttons to switch my views, like the iPhone's music app Mar 23 08:01:36 they don't seem to have public constructors, and the testcase runs in its own world separate from the app Mar 23 08:01:37 tabhost is complicated Mar 23 08:01:38 thedaniel`: Instrumentation is an option, though I have not looked into it myself. Mar 23 08:01:42 jasta: thx Mar 23 08:01:42 i would not use them Mar 23 08:01:53 muthu: What's complicated about it? Mar 23 08:02:12 its just that.. doesn't naturally fit into the android design Mar 23 08:02:21 afaik the tab activity is broken Mar 23 08:02:23 Seems to fit quite well for me? Mar 23 08:02:44 if you can have separate activities working though Mar 23 08:02:54 the activitygroup concept is a bit weird at first, but not hard to get your head around. Mar 23 08:03:38 anyway, i think its appropriate to re-use this, and it looks like i could make it suit my purposes by merely extending TabWidget and using a different default style. Mar 23 08:03:53 but i have no idea how to define the style ;P Mar 23 08:03:58 so, ...here i go ;) Mar 23 08:06:07 what tab style are you talking about? Mar 23 08:06:23 the default style of the TabWidget. ?android:attr/tabWidgetStyle Mar 23 08:08:13 there's not tabwidgetstyle Mar 23 08:08:27 there's a tab selector, tab color Mar 23 08:08:29 Yes there is Mar 23 08:08:46 where you see it? Mar 23 08:08:49 it's defined in android.R.attr.tabWidgetStyle, and it's the default style for the TabWidget. Mar 23 08:09:37 oh yeah Mar 23 08:13:08 i guess tabselector and tabcolor are the two attrs you can set Mar 23 08:15:20 but that still doesn't tell you what the default style is. Mar 23 08:16:56 hmm.. that's coming from R and we don't have the source Mar 23 08:17:14 ok.. we are back to where we started Mar 23 08:18:24 i'm looking at the resources.arsc format now ;) Mar 23 08:18:30 i am going to tackle this tomorrow Mar 23 08:18:35 ok Mar 23 08:18:42 it's starting to reveal itself already. i can see the string table and the basic layout is the same... Mar 23 08:18:47 i'm not sure where i got the progress bar style from Mar 23 08:18:57 very similar.. but was able to get the style values Mar 23 08:19:09 the only bit that looks different is the actual format of the document (which might make it pretty tough to figure out, unfortunately) Mar 23 08:20:36 what immediately strikes me as odd is that every document in values/ (strings, ids, attrs, etc) all are contained in the same string table. Mar 23 08:20:49 but there is clearly a separate string table elsewhere Mar 23 08:20:56 so this format must be capable of specifying multiple documents in one Mar 23 08:21:37 oh wait a minute Mar 23 08:21:49 and every single one of them has at the root. Mar 23 08:22:19 i bet you anything that this is just an arbitrary namespacing. Mar 23 08:22:39 i should test if you can put your strings in arrays and styles in colors, etc. Mar 23 08:22:42 and it'd still work Mar 23 08:22:56 i guess it will Mar 23 08:25:23 so i wonder if this is just one big document then. Mar 23 08:26:52 well, i should get to bed. family shiz in the morning. Mar 23 08:30:01 sleep well jasta Mar 23 10:44:34 Is there a way to get list of tables oin SQLite db? Mar 23 10:45:33 mihoshi, if you're connected to the database, I assume it's whatever the standard sqlite query is, something like show tables; Mar 23 10:47:02 ERROR/AndroidRuntime(1861): Caused by: android.database.sqlite.SQLiteException: no such table: show, while compiling: SELECT COUNT(*) FROM (show tables) Mar 23 10:47:30 I used: cursor = db.rawQuery("show tables;", null); Mar 23 10:53:47 "show tables" is not working in adb sqlite either :/ Mar 23 10:54:10 "show tables;" -> SQL error: near "show": syntax error Mar 23 10:56:22 Oh, show tables is not available in sqlite at all. Mar 23 10:56:43 SELECT name FROM SQLITE_MASTER where type=’table’ gives the list of tables :) Mar 23 10:58:16 there you go :) Mar 23 13:32:37 it's funny, things I think will take half a day to code take one hour, and things I think will take 10 minutes to code take an hour and a half :p Mar 23 18:43:22 hi Mar 23 18:44:47 i saw android demo video from youtube and a machine used to presention seems to be LG ks20. Mar 23 18:46:45 is it ks20? because im wondered its possible to install linux on ks20. Mar 23 18:48:55 url? Mar 23 18:52:29 haavi: http://www.youtube.com/watch?v=oHg5SJYRHA0 Mar 23 18:54:44 it's a bit thicker then the iphone Mar 23 19:02:19 than :) Mar 23 19:03:22 sorry mom Mar 23 19:04:27 no worries, *pulls chin* Mar 23 21:12:39 does anyone know if people will be using these devices without touchscreen? Mar 23 21:12:56 if using a touch screen, will it require a stylus? Mar 23 23:40:23 man, i am struggling with a strange concurrency problem in my service. this sucks. Mar 23 23:40:33 i did not realize the complexity of the binder threads at first :) Mar 23 23:44:17 i am having to go back and redesign quite a lot of this code ;P Mar 23 23:45:31 erlang & actor style concurrency +1 Mar 23 23:48:27 one thing that is still puzzling me, though, is why Thread.join is pausing the app with 100% cpu utilization here? Mar 23 23:49:25 the thread appears to die, but join never returns. Mar 23 23:49:38 there were numerous concurrency errors on my part, but most of those should be fixed now Mar 23 23:49:48 or rather, all of them should be. Mar 23 23:51:06 sure enough, i just attached to it. the thread its waiting on is dead, but it's still stuck in join. Mar 24 00:16:10 wow, just a simple logic error :) Mar 24 00:29:32 man. it's a pain to get images to look right with a black background and white background Mar 24 00:56:01 i'm being really stupid today Mar 24 00:56:06 i should just quit and go do something else :) Mar 24 01:46:49 anyone found anyway to modify the TabWidget in such a way that it displays an icon only on the selected tab? Mar 24 01:49:28 tmcneal: I'm actually doing that right now. Mar 24 01:49:42 Using a more custom view instead of their default label/icon thing. Mar 24 01:49:50 i'll post a simple demo when i'm done Mar 24 01:50:19 Good call. I'd appreciate that as well. Mar 24 01:50:29 sa-weet. thanks jasta Mar 24 01:57:54 i'm also not going to use their selector drawable Mar 24 01:58:05 anyway, i should be done in the next hour or so Mar 24 02:03:32 * jasta is not quite sure why TabActivity is still deprecated though. Mar 24 02:06:58 some guy from google said it was an oversight Mar 24 02:07:18 in response to the same question on one of the android groups Mar 24 02:07:21 what? Mar 24 02:07:39 it shouldn't still be depreciated Mar 24 02:07:44 deprecated* Mar 24 02:07:59 oh, do you have that post handy? Mar 24 02:08:08 i'd really prefer to use it in my demo (and in my real code) Mar 24 02:08:11 http://groups.google.com/group/android-developers/browse_thread/thread/61976a6a2d86673d Mar 24 02:08:20 i think hackbod is from google Mar 24 02:08:35 yeah, she is Mar 24 02:19:22 hmm. TabHost is a FrameLayout, but that doesnt seem right at all. Mar 24 02:19:37 it should be a LinearLayout, I'd think. That way, you could specify the tabcontent inside it as a FrameLayout with layout_weight="1" **** ENDING LOGGING AT Mon Mar 24 02:59:57 2008