**** BEGIN LOGGING AT Mon Apr 13 02:59:58 2009 Apr 13 03:46:54 question, is the android SDK enough to develop a fully functional application for the android platform, or would I actually need a phone runing android in order to do some final testing? Apr 13 04:00:28 final testing on the device is highly recommended Apr 13 04:02:16 muthu_: thanks, unfortunately i am unable to get ahold of a device in my country, they are not selling them here yet, also, does anybody use nebtenas to do android development? Apr 13 04:02:56 some use netbeans, majority use eclipse since the android team has an official eclipse plugin Apr 13 04:03:38 muthu_: yeah, that's what I've found out googling, Im just trying to figure out if there is a good plugin for netbeans Apr 13 04:04:21 non eclipse development, you should use the sdk tools directly Apr 13 04:06:11 shame, developing with netbeans is always easier, I guess I'll stick to android SDK Apr 13 06:17:02 yo dudes, anyone got any clues as to where the gui builder is for android in eclipse? Apr 13 11:26:49 How to get a list of all available fonts? Apr 13 11:31:08 is anybody here? Apr 13 11:52:20 hi all - looking at caching results in an sqlite db. Though they share a base type their structure is fairly different. Apr 13 11:52:41 Was wondering if I used a bundle and push it into a parcel is it possible to store that in a field of an sqlite db? Apr 13 11:52:55 the bundle should ensure that everything is flattened right? Apr 13 11:54:59 <[cliff]> hi all Apr 13 11:55:01 <[cliff]> i need to have an activity (message composer) that allows launching another activity (attach image) and when the latter is closed I have to reopen the 1st one with all the data it had plus the attachment. what is the best way to accomplish this on android? Apr 13 11:56:25 [cliff]: try startIntentForResults() Apr 13 11:57:42 startIntentForResult() sorry Apr 13 11:57:48 <[cliff]> skyPhyr: brilliant! thanks for pointing me in the right direction Apr 13 11:57:57 np :) Apr 13 11:59:30 [cliff] errr I'll try again - startActivityForResult() Apr 13 12:01:20 <[cliff]> np, I missed it in the docs but another pass through the activity fixed it :-) Apr 13 12:15:31 could someone verify this redirects rather than dls please? http://member.america.htc.com/download/web_materials/ADP/signed-dream_devphone-img-142608.zip Apr 13 12:28:09 skyPhyr: did you try downloading with Firefox? Apr 13 12:28:24 biafra - yeah - sure did Apr 13 12:28:30 tried konqueror too Apr 13 12:28:39 even wget messes it up Apr 13 12:28:42 skyPhyr: yes it redirects Apr 13 12:29:07 skyPhyr: you cannot use that link directly Apr 13 12:29:10 :( bugger - had this happen with some of their downloads before. Thanks for checking it out Apr 13 12:29:18 I used the link from on their page as well Apr 13 12:29:32 skyPhyr: one moment, please Apr 13 12:32:25 i can download it with FF3 Apr 13 12:32:28 on a mac Apr 13 12:32:31 at least Apr 13 12:33:12 skyPhyr: did you disable cookies or referers or javascript? Apr 13 12:34:02 possibly. Will check - though the 130444 and fastbook work at the moment. Would all be dead? Apr 13 12:34:26 skyPhyr: I don't know Apr 13 12:36:12 biafra: can't even find the setting so guess I haven't Apr 13 12:37:25 skyPhyr: if you really need it I can put it somewhere for you Apr 13 12:37:47 or does this dcc thingie work with my irc client? Apr 13 12:38:01 could always try :) Apr 13 12:38:08 thanks Apr 13 12:38:26 no idea if mine supports it Apr 13 12:38:45 hmm seems it doesn't Apr 13 12:38:56 thanks for the offer - will wait it out a bit and see if it starts working Apr 13 12:39:05 130444 didn't work then started working later Apr 13 12:39:09 so maybe I'll be lucky Apr 13 12:39:18 we'll see Apr 13 14:15:17 any of you using "adb -e shell am instrument -w your.package.here/android.test.InstrumentationTestRunner" to run tests? Apr 13 14:16:03 how do run them within a CI Server? how do you automatically detect the tests went fine, or had errors? Apr 13 14:18:13 CI server? Apr 13 14:18:19 continuous integration? Apr 13 14:18:49 vol: Yes. Continuous Integration Apr 13 14:18:50 is there a good page about android testing? I haven't found much. Apr 13 14:19:21 it would be nice if adb would exit with a non-zero value when there were errors Apr 13 14:19:32 biafra: I don't know, sorry. Apr 13 14:19:49 then I could mail the output to the developer Apr 13 14:20:06 biafra: what constitutes an error to adb? I would think connection issues, not unit tests Apr 13 14:20:27 you could always try screen scraping, but I know there's a way to do this within eclipse so there is likely a more elegant solution Apr 13 14:22:14 is it possible to have "am instrument" output things while running the tests? failing asserts show up. but it would be nice to be able to have other output too Apr 13 14:23:24 vol: is eclipse using a different TestRunner or is it interpreting the output of InstrumentationTestRunner? Apr 13 14:24:12 I am not using eclipse. so I do not know Apr 13 14:24:46 is it possible to have eclipse running the tests on the emulator/device? Apr 13 14:24:58 it is, but I'm afraid to say that I've forgotten how Apr 13 14:25:11 someone walked me through it at some point : ( Apr 13 14:25:15 but I've lost my notes Apr 13 14:25:39 presumably an ant script Apr 13 17:32:56 blau-mikeDG: anything I should know about setting up a ProgressBar in a Notification? Apr 13 17:33:29 I'm creating a RemoveViews with my package name and layout id Apr 13 17:33:45 and setting my Notification's contentView to be the RemoteViews object Apr 13 17:34:15 and using setProgressBar() on my RemoteViews Apr 13 18:39:18 I am having trouble with the Android Emulator: I just tried to run the hello world application on the android dev site and the emulator starts up but just hangs at the load screen, saying "ANDROID_" Apr 13 18:43:22 hmmm... the issue seems to be that it was taking a long time to start up. however, it threw an exception about the google maps api hanging, which seems strange since i wasnt using htat Apr 13 18:43:54 the first time you run the emulator it takes a very long time Apr 13 18:44:00 [as opposed to just a long time :) ] Apr 13 18:44:25 it's preflighting and validating all of the dex code in the entire system Apr 13 18:45:52 ctate: how fast does the emulator generally run for you? It's a bit laggy on my system Apr 13 18:46:12 it's heavily cpu bound Apr 13 18:46:58 so on my 2.66 GHz dual xeon Mac Pro, it runs roughly as fast as an actual device :) Apr 13 18:54:39 is there a way to get application resources if you don't have a Context object? Apr 13 18:55:21 static Resources.getResources() seems to only work for system (not app) resources Apr 13 18:57:57 emmby: where are you that you can't get a context somehow? Apr 13 18:58:15 i'm in the static initializer for a simple utility class Apr 13 18:58:48 i could conceivably make the util class members non-static, but that would be a bit hokey Apr 13 19:00:23 hmm Apr 13 19:00:38 you could always require a context as an argument to your methods Apr 13 19:00:48 you could also have an "init" method that has to be called first that accepts a context Apr 13 19:01:23 hmm Apr 13 19:03:05 okay, so all this util class does is map prices to ids. eg. "$"->1, "$$"->10, "$$$"->20, etc. Is it possible to store maps (rather than simple arrays) in android's .xml files? That would workaround this problem and be an even better solution Apr 13 19:03:53 right now i've got one array in arrays.xml called "price_names" and another called "price_values". It would be super cool to just have a "prices" map instead Apr 13 19:03:57 probably not, but you could always encode these things elsewhere Apr 13 19:04:14 rather than requiring an xml file, you could always have a flat file with your own format Apr 13 19:04:21 or you could just use your own xml parser Apr 13 19:05:09 okay. i think this is leading me to decide to just put this stuff into Java code instead. would have been nice to put in a config file, but more trouble than it's worth Apr 13 19:06:14 http://forums.somethingawful.com/showthread.php?threadid=3045033&pagenumber=1 Apr 13 19:06:17 argh Apr 13 19:06:21 that is not my clipboard Apr 13 19:06:30 effing synergy Apr 13 19:06:50 http://developer.android.com/reference/org/json/package-summary.html Apr 13 19:07:02 you might want to try just putting your stuff in a JSON file Apr 13 19:07:08 that would hash nicely for you Apr 13 19:07:24 well, not hash, but associative array Apr 13 19:07:47 not a bad trick, i'll keep that in mind Apr 13 19:08:38 presumably i can read files off the filesystem without needing a context? :) Apr 13 19:38:38 emmby: yeah, file system access is just plain old java.io.* etc Apr 13 19:38:57 or whatever from the JNI sie Apr 13 19:38:59 side Apr 13 19:39:12 thanks you guys Apr 13 19:39:36 |gals Apr 13 20:11:15 is there a tutorial on how to use a CursorAdapter? Or should I use a SimpleCursorAdapter? Apr 13 20:12:52 biafra_: if you can use the SimpleCursorAdapter then go for it Apr 13 20:13:13 if you're doing something more custom then implement CursorAdapter Apr 13 20:14:14 zhobbs: I'm migrating from a customized ArrayAdapter. but since the array is filled from a Cursor now. I guess I can go with a SimpleCursorAdapter Apr 13 20:15:07 biafra_: yeah, then SimpleCursorAdapter should work well for you Apr 13 20:30:21 got dlopen / dlsym / dlclose working Apr 13 20:36:34 hooray Apr 13 21:04:25 can anyone enlighten me on notifications an Activity can respond to when the onscreen keypad pops up (cupcake/master build)? Apr 13 21:04:59 I need to re-layout my activity to keep certain things visible--that the automatic scroll action doesn't do. Apr 13 21:05:44 um, you may not be able to do that, jseghers Apr 13 21:05:49 especially in landscape mode Apr 13 21:06:07 [try it and look at what happens to the layout] Apr 13 21:06:33 i don't know anything specifically, but i know there's some trickery in there to provide space for the input that may be incompatible with keeping other stuff on screen Apr 13 21:06:42 and yes, i realize this is an issue because of the need to provide context for the text input Apr 13 21:06:54 ctate: that's annoying... Apr 13 21:07:45 i do not disagree Apr 13 21:07:45 On the portrait mode it scrolls the screen up so the input box is visible... but I have context-sensitive information updated as input is provided :( Apr 13 21:08:56 ctate: is there any way of disabling the OSK? I guess I'll have to implement my own Apr 13 21:09:34 you can write your own input method, but i'm not sure whether it's hookable on a per-app basis Apr 13 21:10:25 ctate: OK, thanks.. that at least points me in a direction. Apr 13 21:18:42 jseghers: I would think that onConfigurationChange would be called Apr 13 21:18:48 jseghers: when the keyboard opens Apr 13 21:19:34 jseghers: http://developer.android.com/reference/android/app/Activity.html#onConfigurationChanged(android.content.res.Configuration) Apr 13 22:14:13 Does anyone know how I can retrieve a thumbnail from an image taken by the camera? Apr 13 22:25:31 Is there a proper way to do something when a user moves the map in MapView? I don't see anything like MapView.onMapMove() Apr 13 22:32:32 hi Apr 13 22:33:06 i'm looking for an architectural overview of android, something that elaborates on the patterns (if any) used, suggestions? Apr 13 22:33:30 The intro stuff on the website is pretty clear on that. Apr 13 22:33:34 Activities, Intents, etc. Apr 13 22:33:38 pretty much all of the documentation that exists is on the main website Apr 13 22:33:48 http://developer.android.com/ Apr 13 22:34:10 halley:, ctate: cmon i wouldnt risk being told the rtfm before actually getting all that stuff Apr 13 22:34:16 i already have all that Apr 13 22:34:24 ah, okay. you hadn't said. :) Apr 13 22:34:28 and like i said, that's about all there is. Apr 13 22:34:40 little-to-no specifically "Design Patterns" discussion. Apr 13 22:35:01 ctate: i know...sucks Apr 13 22:35:40 the core problem is that writing documentation takes a surprisingly long time, and all the engineers have been much too busy with the actual engineering to do so :( Apr 13 22:36:16 ctate: you're right Apr 13 22:36:35 and the javadoc type stuff is more important than design background at this stage, and only the engineers *can* create the documentation because they're the only ones with the knowledge/expertise Apr 13 22:36:44 but its not open if its got a high barrier to auditing it Apr 13 22:36:44 the schedule is a cruel mistress Apr 13 22:37:01 ctate: all valid points Apr 13 22:37:21 barrier? i think that's perhaps a bit strong. you can download all the code, after all. ;) Apr 13 22:37:37 your emoticon makes my point for me Apr 13 22:37:58 its harder to audit code without understanding the design philosophy (assuming there was one) Apr 13 22:38:42 there was, at least by components, but i would not be surprised to learn that the design was not approached using patterns vocabulary as the fundamental language of discourse Apr 13 22:38:58 especially at higher levels of abstraction Apr 13 22:39:42 ctate: i hope you're wrong Apr 13 22:40:20 * ctate works at Google on the Android project, btw. Apr 13 22:40:34 ctate: i still hope youre wrong Apr 13 22:40:37 heh Apr 13 22:40:47 what part do you work on Apr 13 22:40:49 ? Apr 13 22:40:59 the core framework Apr 13 22:41:17 * neruda has got a new best friend Apr 13 22:41:19 ha! Apr 13 22:41:34 * ctate starts practicing: "I can neither confirm nor deny that..." Apr 13 22:41:39 lol Apr 13 22:42:03 * neruda starts drafting response to restraining order Apr 13 22:45:41 ctate: am i s.o.l on a more specific architectural overview then? Apr 13 22:48:50 i suspect so, neruda. there *might* be some more information in the presentations that were done around the initial Android announcement in late 2007. Apr 13 22:49:56 ok thanks Apr 13 22:50:02 NOW GET BACK TO WORK!!! Apr 13 22:50:13 * neruda whips ctate Apr 13 22:50:51 oh my Apr 13 22:52:12 * ctate glances at neruda, then at the +o next to his own nick, then back at neruda. Apr 13 23:24:42 oh, btw ctate, do you know the release manager for android? anyway we can persuade them to make an official git tag when they cut the next public release? 1.1r1 didn't seem to have a tag, which made it hard to do source level debugging Apr 13 23:27:32 emmby: that stuff is definitely on the list of things to handle better in future releases Apr 13 23:27:45 nice Apr 13 23:27:49 we're migrating into git internally as well, which will REALLY help this sort of thing Apr 13 23:28:16 RM is one of those things that so often gets left behind inadvertently Apr 13 23:29:28 and there's a lot to it. yeah. Apr 13 23:33:25 ctate: so yeah, we'll change the chan topic here on #android-dev sicne it's about app development Apr 13 23:33:35 and leave it alone on #android since that's platform hackery so presumably people care less Apr 13 23:33:38 wooty woot woot Apr 14 00:06:43 anybody here charging taxes on their apps? Apr 14 00:07:45 it's messed up google doesn't tell you how to set up the tax info Apr 14 01:12:06 Does SimpleCursorAdapter support setTextFilterEnabled? Apr 14 02:03:03 from the new api section: Media framework * Raw audio recording and playback APIs Apr 14 02:04:10 ahh....maybe AudioTrack Apr 14 02:04:52 was looking for MediaPlayer.setDataSource( InputStream ) or something... **** ENDING LOGGING AT Tue Apr 14 02:59:57 2009