**** BEGIN LOGGING AT Sun Oct 05 02:59:57 2008 Oct 05 03:00:02 i don't have an iphone Oct 05 03:00:09 romainguy_: didnt say anything to the contrary. Oct 05 03:00:19 I didn't say you said the contrary :)) Oct 05 03:00:33 romainguy_: you probably saved more than that in terms of monthly costs + taxes. Oct 05 03:01:08 definitely Oct 05 03:01:22 especially since I switched my girlfriend's plan with m ine Oct 05 03:01:57 heh, well you live in SF, so you're over paying for basically everything already. Oct 05 03:02:06 that's true :) Oct 05 03:02:09 like gas and rent ^^ Oct 05 03:02:27 I was surprised to see how much more expensive gas is in SF compared to say, Arizona and Utah :) Oct 05 03:04:06 the T-Mobile employees in the store were pretty surprised to see a couple of G1 :)) Oct 05 03:04:28 hah i bet Oct 05 03:04:30 did you make them sign an NDA? Oct 05 03:04:35 lol Oct 05 03:04:47 well now the phone has been announced, so I don't have to hide it when I use it anymore :) Oct 05 03:04:48 well AZ and SLC dont have a 7 billion dollar State defecit. Oct 05 03:05:22 well AZ and UT... Oct 05 03:52:00 * ahaberlach yawns. Oct 05 03:52:07 http://drop.io/androidbackgrounds Oct 05 03:54:38 These backgrounds are 1280x1024... Bit silly Oct 05 03:54:46 why not offer them in the correct resolution? Oct 05 03:55:06 not sure why he had only that res Oct 05 03:55:49 guess its his desktop background Oct 05 03:56:26 got the android walking in snow.. looks nice Oct 05 03:58:31 cbeust: do you use linux? Oct 05 03:58:46 * ahaberlach spends some time working on Steve-bot 1.0 Oct 05 03:58:49 Yes, and also Mac and Windows Oct 05 03:58:58 which linux distro is the best? Oct 05 03:59:14 No clue :) Oct 05 03:59:26 hehe Oct 05 03:59:30 I use Linux as little as I can. We use Ubuntu at Google, I hear it's good Oct 05 03:59:36 Are we _trying_ to start a distro war in here? :) Oct 05 03:59:43 ubuntu breaks at the first update Oct 05 03:59:45 but basicall, I use an XTerm, Eclipse and Emacs, that's it Oct 05 03:59:56 * ahaberlach likes Ubuntu. used Redhat before that, Debian before that. Oct 05 04:00:12 ubuntu seems to the popular one Oct 05 04:00:32 In a related news, "Linux laptops returned 4x as often as Windows" Oct 05 04:00:47 * ahaberlach shrugs. Right now my main service computer is an Ubuntu slice at http://slicehost.com. My work machine is a Google-tweaked Ubuntu, but really all I do is run Firefox, Terminal windows, and Eclipse. :) Oct 05 04:01:13 linux cannot be mainstream Oct 05 04:01:20 with so much of little nagging issues Oct 05 04:01:24 No argument there. Oct 05 04:01:54 G1 emulator: http://tmobile.modeaondemand.com/htc/g1/ Oct 05 04:02:09 Adam, can you update the topic to point to the emulator? Oct 05 04:02:25 cbeust: what's that? Oct 05 04:02:31 Try it Oct 05 04:02:33 Flash emulator Oct 05 04:02:35 Very neat Oct 05 04:02:38 oh Oct 05 04:03:44 Sure Oct 05 04:04:23 Hmm. Looks like I cannot. Oct 05 04:04:31 I'm so disappointed in you. Oct 05 04:04:32 http://tmobile.modeaondemand.com/htc/g1/ Oct 05 04:04:50 Steve-bot LIVES! Oct 05 04:05:11 * ahaberlach can now programattically cause a servo to hit the menu button, in order to repeatedly wake a device and see what that does to battery life. Oct 05 04:05:32 You weren't kidding when you said "bit" Oct 05 04:05:34 bot* Oct 05 04:05:35 nice.. G1 Oct 05 04:06:31 gives a feel for G1 Oct 05 04:06:51 i use ubuntu Oct 05 04:07:05 fedora seems to be stable Oct 05 04:08:25 Can't help laughing when I see my friends still trying to get Linux to support proper sound and hibernation Oct 05 04:08:32 One release it works, the next it doesn't Oct 05 04:09:07 i like linux Oct 05 04:09:27 cbeust: true Oct 05 04:10:04 sound will be on/off for no reason when running emualtor Oct 05 04:10:07 gave up on that Oct 05 04:10:15 Oh yeah, don't bother with Linux for sound. I hear that it's ok on laptops but hibernation is a pain. Oct 05 04:10:19 wastrel: linux is good Oct 05 04:10:29 I'm fine with an OSX laptop and Linux on my servers. Oct 05 04:10:45 I like Linux like I would like a chainsaw Oct 05 04:10:47 The Linux workstation at work has a rather large team of people making it work, so it's not so bad. :) Oct 05 04:46:29 questionable mechanism Oct 05 04:46:55 I now have a "robot" set up that will, every 30 seconds, push a button on a phone for battery-life measurement reasons. Oct 05 04:47:20 Go me. Oct 05 04:51:34 robot Oct 05 04:54:53 GAH Oct 05 04:55:05 why are threads not dying when i tell them to .stop() during onStop() Oct 05 04:56:29 because stop() is not reliable Oct 05 04:56:32 that's not how you stop threads Oct 05 04:56:36 it's even deprectaed Oct 05 04:58:09 wow Oct 05 04:58:16 that St André packs a punch Oct 05 05:04:51 romainguy_: you ready for a very alpha apk? Oct 05 05:04:54 ;) Oct 05 05:04:59 shoot :) Oct 05 05:05:20 * umdk1d3 wipes and checks one more time to be sure Oct 05 05:09:57 umdk1d3: Post a message to a handler tied to the background threads asking them to quit Oct 05 05:10:27 hamdroid: there's no reason to use a Handler Oct 05 07:23:27 Is the usage of this drawables in my own app allowed? http://www.screaming-penguin.com/info/android_drawables/android_drawables.html Oct 05 07:24:13 only if they are in android.R.drawable Oct 05 07:24:21 if not, they are considered private APIs and you should not use them Oct 05 07:24:41 also, it's a bad idea to manually copy them in your app because you might get out of sync with our updates :) Oct 05 07:25:07 and some of these drawables are actually outdated/unused Oct 05 07:32:47 Ok. Thank you romainguy_ . Oct 05 07:32:57 Just found this site in some news about Android. Oct 05 07:41:01 any1 have a list of phones that r android compatable Oct 05 07:52:34 T-Mobile G1 :) Oct 05 07:53:23 hehe Oct 05 07:56:13 i have an existing Samsung phone that i wan convert over ;) Oct 05 07:57:12 well Oct 05 07:57:18 if the hardware meets the requirements Oct 05 07:57:22 and if you have all the drivers Oct 05 07:57:27 then sure :) Oct 05 07:57:37 (and if you have a way to reflash your phone :) Oct 05 07:58:51 hm... but this is an interesting question... is there any basic procedure? Oct 05 08:00:24 a kind of: first do this, and than do that? Oct 05 08:00:43 no, there's no such official procedure Oct 05 08:01:33 :( Oct 05 08:01:37 i dont mind flashin it Oct 05 08:02:33 as I said, your hardware must meet the basic requirements of Android Oct 05 08:02:37 and you need the appropriate drivers Oct 05 08:03:09 romainguy_: nothing official, but something with more explanatory notes than just "take this patch and patch the kernel and flash it" Oct 05 08:03:24 I have no idea Oct 05 08:03:31 I know how to flash a G1 and that's about it ^^ Oct 05 08:03:50 ok :-) Oct 05 08:05:45 ok, how do u reflash a G1? Oct 05 08:06:18 with the flashing tool :) Oct 05 08:07:06 lol :'| Oct 05 08:26:42 Talking about the IM app. Is there one contact list for all the messengers or do I have to step through the different accounts and their connected buddy lists ? Oct 05 10:56:41 hello everybody Oct 05 10:59:35 hello Acsia Oct 05 11:00:11 hi pjv, anybody working on instrumentation? Oct 05 11:02:33 don't know, but: http://code.google.com/android/reference/android/app/Instrumentation.html Oct 05 11:03:45 I ve been trying to set that up Oct 05 11:03:56 the onDestroy or onStart does not seem to be called Oct 05 11:04:03 while onCreate yes Oct 05 11:04:35 can't help you, sorry Oct 05 11:04:59 no worries Oct 05 11:05:13 been breaking my head on testing and instrumentation Oct 05 11:23:12 witam Oct 05 11:23:39 hi Oct 05 11:24:09 I wish I was Oct 05 11:24:53 is there sb who can programming on Android? Oct 05 11:25:34 yes Oct 05 11:26:19 Does anybod now if Android contains some mechanism to protect private data if the phone is stolen or you lost it some different way ? Oct 05 11:26:51 isn't it too hard? Oct 05 11:27:02 I dont know we carry more and more private things around but dont really protect them. Some encryption would be nice. Oct 05 11:27:26 well there is this kind of login mechanism to the phone which is quite cool Oct 05 11:27:31 gesture recognition Oct 05 11:27:34 yeah I know that bzt well Oct 05 11:27:48 not sure about encryption Oct 05 11:27:51 But thats no real security :P Oct 05 11:28:02 That like the PIN on normal mobiles. Oct 05 11:28:17 you know there is this app which would give you the location if you send an sms Oct 05 11:28:42 you could do further by destroying your data Oct 05 11:28:53 Yeah I know this kind of mechanisms. Just wanted to know if there is something integrated already :-) Oct 05 11:29:08 not as far as I know Oct 05 11:29:21 Just thought about this. We add mail, instant messaging, addresse, calendar etc etc on our upcoming devices. Oct 05 11:30:00 Just about everything private. So it should be protected effectifly protected. Oct 05 11:30:06 -protected Oct 05 11:30:06 I agree Oct 05 11:30:30 is there a version of android that can be installed on some existing phone besides g1? Oct 05 11:30:39 Perhaps romainguy_ knows something about that point. Oct 05 11:30:58 the sms idea is not to bad Oct 05 11:31:16 as soon you realize your phone is gone, you could potentially completely lock it down Oct 05 11:31:44 especially that you would receive the sms as soon as you turn the phone on Oct 05 11:32:26 it s quite painful to enter passwords each time as well Oct 05 11:32:33 especially if there is no keyboard Oct 05 11:32:42 so users will tend to save it Oct 05 11:38:17 Yeah thats true Oct 05 11:39:51 I would prefer some mechanism that encrypts the system after locking the screen. I dont bother about entering a password. But I think that encrypting the whole system would be too slow at the moment. Oct 05 11:51:26 anno^da: wouldn't using an ecrypted filesystem be a better idea? Oct 05 11:51:39 Yeah sure. Oct 05 11:51:48 That would be nice. Oct 05 16:59:07 hi, i am trying to run the helloworld example from android sdk, but i am not able to do this, i get this "Error generating final archive: keystore was tampered or password incorrect" from eclipse Oct 05 16:59:11 how can i resolve this? Oct 05 17:10:47 in 2 days after at least 20 hours here nobody answer me, is this just a parking channel? Oct 05 17:22:59 dob1: Hmm -- that's strange. Oct 05 17:23:04 Is this on Windows, OSX, or Linux? Oct 05 17:23:38 The "keystore" in question is used to sign your .apks. When the Eclipse plug-in is first run, it should generate some sample keys to use, and they're valid for a while (and if they had expired, you'd get a different message). Oct 05 17:23:52 I'm not sure why the system is having trouble reading the keystore, though. Oct 05 17:27:45 ahaberlach: i tried to reinstall all yesterday, now i found some info on a forum, the problems is (i think) the debug.keystore Oct 05 17:27:51 i deleted it and nothing works Oct 05 17:27:57 now i delete the project too Oct 05 17:28:01 and seems working Oct 05 17:28:24 but it's not good if i have to recreate the project on eclipse to get it working Oct 05 17:29:13 Yeah, that's kind of sucky. Oct 05 17:29:22 Although I'd like to know how you ended up with an invalid keystore. Oct 05 17:29:45 xavd would probably know best, but I'm not sure how active he is on the channel. Oct 05 17:30:00 if i read correct, but i am not sure of this, can be because i had gcj installed too, and it used it to create the keystore(?) Oct 05 17:30:03 can be? Oct 05 17:30:38 Possibly -- I only know the general stuff, but it sounds plausible that gcj's cert creating/signing stuff doesn't work cleanly with Eclipse. Oct 05 17:31:10 now seems working, but i am just a beginner, i don't know how to test it correct Oct 05 17:47:36 Does someone know if there is a possibility in Bazaar (bzr) to exclude some files from a branch? Oct 05 17:47:46 (like the R.java :) ) Oct 05 17:55:39 bzr ignore --help Oct 05 18:00:14 great thank you :-) Oct 05 18:03:35 Greetings. Oct 05 19:00:01 hello, does anyone know how to make a textview autoscroll when the data goes past the last line? Oct 05 20:15:00 gary| : Do you have it wrapped in a ScrollView? Oct 05 20:15:09 yes Oct 05 20:15:10 * ahaberlach really has no idea, but wanted to say something. :) Oct 05 20:15:18 heh Oct 05 20:15:41 i tried different methods, scrollTo(), new Scroller, then scrollTo Oct 05 20:16:03 with Scroller, it cuts of the text I scrolled from and I can't get back up Oct 05 20:16:19 s/get/scroll Oct 05 20:17:47 No idea, off the top of my head, and I'm not sure where to check for an example. Oct 05 20:19:40 you want text to scroll though Oct 05 20:19:43 is this a list item? Oct 05 20:19:52 you probably need to connect an onselected listener Oct 05 20:19:55 and tell it to scroll Oct 05 20:20:24 tell the child TextView to scroll Oct 05 20:20:27 it's a textview Oct 05 20:22:40 sigh, didnt get any dev done yesterday because my PC was broken :( Oct 05 20:22:45 SATA controller died :( Oct 05 20:23:56 RAID? Oct 05 20:24:12 nope Oct 05 20:26:00 mmm, enough for today me thinks Oct 05 20:26:48 laters Oct 05 20:27:38 heh, been thinking about doing RAID, reminds me I need to pull out the 500GB drive for backups. Oct 05 20:27:48 i do raid on an external server Oct 05 20:28:16 5 300GB drives Oct 05 20:28:40 hardware raid, with hot-swappable drives Oct 05 20:28:49 ya, I would consider that, but it'd only be useful for an outward facing server, but my upload speeds are terrible. Oct 05 20:29:12 i live in a house with 4 guys, so it's a community server Oct 05 20:29:16 though i own it Oct 05 20:29:22 also a viable scenario. Oct 05 20:33:20 I host my stuff at http://slicehost.com but maintain a local Samba server. Oct 05 20:33:39 I used to do a bunch of software RAID, but it was PITA so now I use rsnapshot to roll backups onto an external drive. Oct 05 20:33:59 http://www.rsnapshot.org/ Oct 05 20:34:38 is there any guidance on the recommended key alg. or key size for signing android apps? Oct 05 20:45:10 tomgibara: ive just used keytool+jarsign with defaults and it seemed to work Oct 05 20:47:20 umdk1d3: :) just working isn't good enough Oct 05 20:48:14 I want to know that I'm making the best choices, certificates and keys live a long time Oct 05 20:48:58 for example, what is the baseline compatibility for android devices? Oct 05 20:50:48 tomgibara: hmm, I didn't think about it either, but you're probably right...my cert expires in 6 months...does that mean that I'll have to change my cert in 6 months and the user will lose their data on updating my app Oct 05 20:52:18 zhobbs: It *might* mean that the user can't upgrade from the old version to the new one - that even though they have the same package, they will be regarded as incompatible apps (because the signature on the apk determines the process UID) Oct 05 20:52:44 yeah, that's scary.... Oct 05 20:52:57 I think it's probable Oct 05 20:55:19 so can you make them never expire? Oct 05 20:56:12 I don't know Oct 05 20:56:16 The one I'm using personally for my own small apps is set to expire in 30yrs, that should be long enough. Oct 05 20:56:33 1024bit RSA, fairly standard imo Oct 05 20:56:33 yeah Oct 05 20:56:52 I chose something basic on the assumption that it will be supported Oct 05 20:57:36 the problem is that I don't know enough to make good choices on my own, I need some guidance Oct 05 20:57:48 (and I speak as someone who's actually implemented some of these algorithms) Oct 05 21:07:34 I just tried it out, installing the same application with a consistent package and different cert is rejected (by the emulator anyway) Oct 05 21:07:56 i assume that market would show the error to a user, and allow them to uninstall the old version before reinstalling again Oct 05 21:08:19 (it might show "upgrade"/"uninstall" buttons) Oct 05 21:08:36 Perhaps, but the issue is with apps that persist state for that user, that state becomes inaccessible Oct 05 21:08:52 well in the case of an uninstall its wiped Oct 05 21:09:00 that's what I mean Oct 05 21:10:20 ive wondered about this: how many developers would find it useful to have a simple storage service (key->value pairs) that was synced to the cloud? automatically tied to the persons google acct Oct 05 21:10:52 as long as that data is lightweight, it seems like it would be valuable with minimal cost Oct 05 21:11:38 Yes something as simple as the SharedPreferences API would be enough Oct 05 21:12:54 and if they extended SharedPreferences under the hood, it could handle syncing logic without devs having to see it Oct 05 21:12:56 Several of these ideas are only really feasible when either its available as part of the standard libraries, or the apk infrastructure is good enough to support dependencies etc. Oct 05 21:13:21 standard libraries for sure Oct 05 21:13:43 another thing we had considered writing was a error dump helper Oct 05 21:13:44 The semantics of the SharedPreferences api are already consistent with asynchronous updates Oct 05 21:14:14 watching logcat for deadly errors from your app, then sending the log back to your app in a special intent Oct 05 21:14:15 You can't just throw everything into the standard libraries of the platform :) Oct 05 21:14:31 right, this second idea would be a separate package maybe Oct 05 21:14:41 it would just handle stack traces or soemthing Oct 05 21:14:54 i havent looked to see if an app can get full access to logcat data tho Oct 05 21:16:04 "slightly private information about what is happening on the device, but should never contain the user's private information. " Oct 05 21:16:19 and as long as we filter by PID or something it should be decent Oct 05 21:18:05 I haven't looked into that sort of possibility at all. Oct 05 21:20:58 I need some heap analysis tools...android's heap dumps don't work with jhat, jprobe, etc Oct 05 21:21:36 zhobbs: Still hunting? Oct 05 21:21:44 yeah Oct 05 21:25:28 http://www.tomgibara.com/android/pinpoint/ Oct 05 21:25:58 ^^ I'd be grateful if anyone with a device could tell me if actually works Oct 05 21:26:07 you're busy! Oct 05 21:26:19 :) just one of many Oct 05 21:26:34 I'm only just finding a bit of time to publish some of my work Oct 05 21:27:02 this one was an experiment in minimalism, so it's only small Oct 05 21:29:30 hello? Oct 05 21:29:54 anybody home? Oct 05 21:46:18 * ahaberlach installs pinpoint. Oct 05 21:47:49 * tomgibara thanks ahaberlach but reminds that SMSs may cost money to send and receive Oct 05 21:51:35 Hmm. No sign that the incoming SMS was handled by anything related to PinPoint. No GPS in-use indicator on. Oct 05 21:55:52 :( Not having a device, I'm not sure I can do anything until I do. But thanks for trying it Oct 05 21:56:19 I'll poke at it. Do you know if the 'locate' in the incoming SMS is case-sensitive? Oct 05 21:56:32 no, it's not case sensitive Oct 05 21:56:32 It's also possible I just didn't wait long enough, since it should be trying to get a GPS fix, and that takes a bit. Oct 05 21:56:47 (And this particular device was waiting to reboot for an update anyway) Oct 05 21:57:14 that should still show the GPS signal icon though, if it was trying to obtain the location? Oct 05 21:57:55 it does debug logging, under the tag "pinpoint" Oct 05 21:58:18 D/pinpoint( 327): Got SMS, continuing Oct 05 21:58:18 D/pinpoint( 327): Enabled, continuing Oct 05 21:58:18 D/pinpoint( 327): Pin set, continuing Oct 05 21:58:37 and it ends there? Oct 05 21:58:49 Ah, I didn't have the GPS turned on for this device (it's off by default) Oct 05 21:59:27 It should check for that and fall back to network triangulation Oct 05 21:59:53 is that supported on the devices? Oct 05 22:00:07 Yep Oct 05 22:00:24 basically it should process the list of location providers based on the user preferences, until it finds one thats enabled Oct 05 22:00:27 Although T-Mobile's 3G network is so new that we don't have it yet in all locations. Oct 05 22:00:54 It could might be a bug, the emulator only emulates GPS - it's never been tested with anything else Oct 05 22:05:13 ahaberlach: if the log doesn't contain "Locate found, continuing" it means that the "locate *PIN*" wasn't located in the SMS Oct 05 22:06:13 Ah, I never saw that, then. Oct 05 22:06:23 I'll double-check my PIN and resend. Oct 05 22:06:30 It's possible that receiving SMS messages isn't available to apps on the devices Oct 05 22:06:58 it works in the emulator, but the intent constants were pulled, so it's not clear if it's supported or not. Oct 05 22:07:32 it got the intent though... Oct 05 22:08:01 D/pinpoint( 327): Got SMS, continuing Oct 05 22:08:01 D/pinpoint( 327): Enabled, continuing Oct 05 22:08:01 D/pinpoint( 327): Pin set, continuing Oct 05 22:08:01 D/pinpoint( 327): Locate found, continuing Oct 05 22:08:01 D/pinpoint( 327): Origin present, continuing Oct 05 22:08:09 Aha! And the GPS indicator is now on. Oct 05 22:08:21 great! Oct 05 22:08:34 Either I mis-set my PIN or something got confused there. Oct 05 22:09:54 I think what's happened is that I've made a stupid error :) Oct 05 22:10:03 had you restarted the device? Oct 05 22:10:20 Yeah, I think so Oct 05 22:10:44 Ok, i just got a reply SMS saying "location unknown: Failed to obtain a location." Oct 05 22:11:18 The GPS, at least on my not-final-production device, is pretty unreliable indoors. You may want to arrange a fallback to network-based location, since it's much more reliable (if usually much less accurate) Oct 05 22:11:20 how long does it take to get a 'lock on' with GPS? Oct 05 22:11:34 30-40 seconds when standing under a blue sky. Oct 05 22:12:29 Okay, I have decent timeout on getting the location, but I think I'm not falling back when obtaining a location fails, only when the provider is not enabled. Oct 05 22:13:07 thanks, that was really useful, I'll make some adjustments Oct 05 22:13:35 No problem **** ENDING LOGGING AT Mon Oct 06 02:59:57 2008