**** BEGIN LOGGING AT Sun Feb 15 02:59:59 2009 Feb 15 05:56:56 Hello? Feb 15 05:58:56 Android SDK keeps crashing Eclipse after i added some external jars to my project. One of the tools spams the console with some message about inner classes. Feb 15 05:59:46 I don't suppose someone here has an idea? Feb 15 06:04:47 what's the message? Feb 15 06:05:19 Lemme see if i can find it. Feb 15 06:08:36 Warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribut. This class was probably produced by a broken compiler. Feb 15 06:10:14 I added NekoHTML and Xerces to my project and that's when this started happening. Feb 15 06:12:35 No idea - about the only hunch that raises for me is JDK version. Were those jars created with a newer JDK than you're using, maybe? Feb 15 06:13:21 I'm using jdk 6.12 (x64) Feb 15 06:13:34 hm. Doesn't get much newer than that... Feb 15 06:13:47 Yeah. :-( Feb 15 06:14:04 Is it causing actual problems? It says it's a warning... Feb 15 06:14:35 Yeah. The SDK spams the log with 'em until eclipse crashes. Feb 15 06:15:06 My environment was working before i added those library references. Feb 15 06:16:08 I'm pretty green when it comes to Android. I only just got my dev environment set up today. Feb 15 06:16:20 I'd pull them and try adding them to eclipse a different way. Feb 15 06:16:59 Okay. I can do that. Feb 15 06:17:08 Thank you. Feb 15 06:17:46 how did you add the jars the first time? Feb 15 06:19:26 Right clicked on referenced libraries -> build path -> configure build path -> add external jars Feb 15 06:24:39 The dev docs for Android say that I can also put them in a folder in my project and add them as libraries. Feb 15 06:26:25 you're adding Xerces to your app? Feb 15 06:27:24 Yeah. Feb 15 06:27:30 Required by Neko. Feb 15 06:27:33 :-( Feb 15 06:27:46 argh Feb 15 06:27:50 have you seen teh size of Xerces? Feb 15 06:29:01 No. I'm used to developing for desktops. Not used to portable device programming. Feb 15 06:29:51 Maybe I'm designing my app wrong. Feb 15 06:30:16 I would really advise you against bundling NekoHTML and Xerces Feb 15 06:30:23 let me check something Feb 15 06:30:29 Okay. Feb 15 06:31:17 Yeah. The jar is over one meg. Didn't think about that. Feb 15 06:31:43 to give you an idea the entire OS + all standard apps weighs 70 MB Feb 15 06:32:15 Yeah. I got JesusFrekes OS loaded. Feb 15 06:32:38 I don't know what modifications he made Feb 15 06:32:49 and I don't care :) I care about what most users out there have :p Feb 15 06:32:50 Some nice. Some meh. Feb 15 06:33:03 Well, may I pick your brain? Feb 15 06:33:20 Yup. You have to. Feb 15 06:35:11 What I'm really trying to do is write a better g-mail app. AFAIK, there isn't an API for g-mail. Feb 15 06:35:19 ouch Feb 15 06:35:23 good luck with that :) Feb 15 06:35:36 Yeah. I know. Feb 15 06:36:09 I'm just really frustrated with the current one. Feb 15 06:37:01 why? Feb 15 06:37:10 I think it's possible. Gonna be a lot harder without Neko though. And quite fragile, since it relies on screen scraping. Feb 15 06:37:21 Gmail changes all the time :( Feb 15 06:37:26 (the site) Feb 15 06:37:34 Yeah. Feb 15 06:37:41 I know. Feb 15 06:37:45 so what's wrong with the Gmail app? Feb 15 06:38:11 It's missing many features you get through the web client. Feb 15 06:38:15 like what? Feb 15 06:38:29 Features you can't even access through the phone browser. Feb 15 06:38:40 like what? Feb 15 06:38:44 Well, send as, for one. Feb 15 06:39:16 file bugs :) Feb 15 06:39:16 http://code.google.com/p/android/issues/list Feb 15 06:39:37 I use my phone for work, too... and I can't be replying to work e-mails from my gmail account. Feb 15 06:40:02 It also doesn't respect my reply rules, either. Feb 15 06:40:04 so what do your work emails do on your gmail account? :) Feb 15 06:41:07 I have gmail pull my work emails in via pop 3 so i can get them on my phone, 'cause all the current exchange clients for android suck. Feb 15 06:41:33 Admittedly, part of it was that calendar via imap sucks, but still... Feb 15 06:42:45 I work on the infastructure team at my job, and having my work e-mail on my phone is critical. Feb 15 06:43:20 why don't you use the IMAP client then? Feb 15 06:45:23 Initially, I moved away from IMAP becuase IMAP calendar sucked. Now that I realize that all non-exchange based calendars are going to have issues, I might go back to IMAP. I guess I thought I was close after learning about all these cool gmail features. Feb 15 06:45:51 I didn't expect them not to be available on my phone, since it's all made by Google. Feb 15 06:46:53 it's just Android 1.0 :) Feb 15 06:47:46 Yeah. It's awesome, don't get me wrong. And I know what development is like, done that for plent of years. Feb 15 06:48:13 I just hate getting made fun of by co-worke Feb 15 06:48:21 rs with iphones. Feb 15 06:48:31 :-P Feb 15 06:49:33 And now with all the patent stuff with Apple, people are wondering if the Android user experience will get the chance to mature. Feb 15 06:57:18 Thanks for your help romainguy. Feb 15 06:58:11 why are they making fun of you? Feb 15 06:58:22 because it takes 20 seconds to switch between their Email and IM? Feb 15 06:58:44 I've never had someone with an iphone not be impressed with a 10 second overview of android. Feb 15 06:58:50 Even the unlock screen is fricken cool Feb 15 06:59:15 No RDP client, no Exchange client, no multi-touch support (although my JesuseFreke os has a hack for that) Feb 15 06:59:24 heh, yeah, free chat, multitasking, cut and paste, youtube, Feb 15 06:59:35 I heard that G licensed Exchange last week. Feb 15 06:59:44 Woot! Feb 15 06:59:54 yeah heard about some active sync exchange of info Feb 15 07:00:03 Through the European non-compete stuff, MS has to license technologies over a certain threshold of installbase. Feb 15 07:00:06 * romainguy_ is getting tired of hearing about multitouch Feb 15 07:00:20 microsoft wants to play nice since google is competition for apple Feb 15 07:00:43 heh, yeah, I have it on the g1 for web browsing which is where I'd use it most anyways Feb 15 07:00:48 spikebike: Hey man, you don't gotta sell me on the G1. I love it. Feb 15 07:00:49 kind of, They have WinMo 6.5 coming soon, and plans for a WM 7 Feb 15 07:01:19 Talking to Feb 15 07:01:35 Apple fanbois can be hard though. Feb 15 07:03:03 I didnt realize the iphone wasn't able to multitask. Now I have ammo for Tuesday. Feb 15 07:03:35 yeah you start and stop apps every time Feb 15 07:03:41 that's why I stopped using my iPhone actually Feb 15 07:03:55 trying to use IM + Browser + Email at the same time was driving me *nuts* Feb 15 07:05:03 Wow. Yeah... this is the first smartphone I've ever owned. I had no idea. Feb 15 07:07:17 Oh yeah, I remember the other reason I can't use IMAP. Our company doesnt expose SMTP and when I use gmails SMTP server, it uses my gmail address whenever I reply to an email. Feb 15 07:07:40 Airstorm777: same here. Android email is read-only, essentially Feb 15 07:08:09 And third party exchange apps don't work for me, since our exchange server is RSA-SecurId locked. Feb 15 07:08:23 WM works, iphone works. Android = no love =( Feb 15 07:08:45 Which is a testament to how much I like this phone. I don't carry my iphone or my WM anymore even though I can't send corporate emails... Feb 15 07:08:55 Yeah. That's why I was trying to write my own gmail app. Feb 15 07:08:55 hey, Android is not even 4 months old :p Feb 15 07:09:24 I can actually do what I need to for corporate from gmail... just not from my phone. Feb 15 07:10:01 actually I think rc33 greatly improves the email app Feb 15 07:10:07 it's not so readonly anymore Feb 15 07:10:18 Even the browser blocks it. Although maybe I could get to it from Steel if I wanted to sacrifice usability. Feb 15 07:10:40 Steel is built on the same engine Feb 15 07:10:46 romainguy_: 4 months is like 2 years in mobile technology. Slackers....tsk tsk. Feb 15 07:10:59 rsteckler: go look at cupcake :p Feb 15 07:11:25 romainguy: Yeah, but steel uses desktop browser user agent strings if you let it. Feb 15 07:11:29 I know. I'm just giving you a hard time...We all know how hard you guys work, and we're all impressed with how far you've come. Feb 15 07:11:56 Do you guys know what the lead time is between uploading to market, and the application appearing for download? Feb 15 07:12:04 n o iea Feb 15 07:12:13 was it a paid app? Feb 15 07:12:20 I'd like to be watching my server when people start downloading the app to make sure they don't kill the server, etc. Feb 15 07:12:24 no - a free app. Feb 15 07:12:27 (for now) Feb 15 07:13:51 Even a ballpark figure? minutes? hours? days? Feb 15 12:59:15 Hi, I am writing an application and I'm wondering if I should include some kind of eula, or disclaimer. And I'm curious what people in here think about it. Feb 15 12:59:52 personally, i'm going to give the benefit of the doubt and not use drm or a eula to start with Feb 15 13:00:33 balachmar: wouldn't do it if i were you Feb 15 13:00:39 balachmar: there's no real point Feb 15 13:00:50 balachmar: also, i have yet to see any other apps on the market that do that Feb 15 13:00:54 Well, I wasn't thinking about drm yet Feb 15 13:00:55 either of you have any mapview experience? Feb 15 13:01:04 I have seen an app with a eula Feb 15 13:01:06 just leave it. nobody reads them anyway, and their enforcability is dubious Feb 15 13:01:48 Yes, but I do want people to know that "they use it on their own risk" And not bother me if something goes wrong Feb 15 13:02:19 heh Feb 15 13:02:34 an you think they won't bother you because of a eula? Feb 15 13:02:35 Not that I write bad code or something Feb 15 13:02:51 i would agree that nobody is going to change their behavior because of a eula Feb 15 13:03:01 nah, but then it is something like I told you not to bother me. It is better than I didn't... Feb 15 13:03:18 but you slowed down and annoyed everyone else who didn't bother you, who just wanted to use your app Feb 15 13:03:33 TD: That actually is a good point Feb 15 13:03:33 startup time is really critical for software. it's why microsoft put so much effort into making IE and Word start fast Feb 15 13:03:49 but they dont Feb 15 13:03:52 having your app be up, running and usable in 500ms vs 5 seconds is actually a pretty big deal Feb 15 13:03:55 they start like fecking molasses Feb 15 13:04:14 relative to the competition they're pretty good :-) or at least used to be. i haven't used them for a few years Feb 15 13:04:17 But my app is for emergency purposes and I guess I have to make it known that the app does depend on network being available to work Feb 15 13:04:25 i think that should be obvious to the user ? Feb 15 13:04:33 i mean, why would they read that, instead of just intuit it from what the app does? Feb 15 13:04:36 android users can be pretty dumb Feb 15 13:04:45 dumb users don't read EULAs anyway Feb 15 13:04:49 so it makes no difference :) Feb 15 13:04:53 perhaps if it is an emergency app, it should have a disclaimer Feb 15 13:04:56 not a eula Feb 15 13:05:05 Well it does, because then you can say I tried to inform you Feb 15 13:05:31 Well a disclaimer then, but I could write the disclaimer in the market or in the app itself. Feb 15 13:05:45 I guess in the market they *can* read it before they install it. Feb 15 13:05:59 right Feb 15 13:06:15 i mean, putting up a 2 line message is ok, if you really want to do that. but not a giant legal agreement Feb 15 13:06:27 Maybe that is the best way, to inform them before installing. And if they choose not to read the description of the program, then I did try to tell them. Feb 15 13:06:52 sounds good to me Feb 15 13:07:20 TD: No I don't want to do that! Just something like this app depends on network being available and location stuff to work correctly (or something like that) Feb 15 13:07:29 ok, cool Feb 15 13:07:55 It is the sort of thing I would like to see as well. Feb 15 13:09:21 Now for something completely different. One of the things I really miss on the android system is PDF viewers. Do you guys think that adobe will be bringing one out? Or that there is going to be a good OSS pdf reader for android? Feb 15 13:09:58 Because I have found a few project, but none of them are really active or distributing beta's (or alphas even) Feb 15 13:13:52 hmm Feb 15 13:14:02 will adobe bring one out - probably not Feb 15 13:14:07 never say never Feb 15 13:14:37 there's a PDF viewer built into google docs Feb 15 13:14:49 so i guess google could easily refactor that into a web app usable from android and iphone Feb 15 13:17:39 TD: I don't really like that PDF to HTML thing. It messes thing up quite badly sometimes, especially with pictures on the backgrouind and stuff Feb 15 13:17:52 actually the docs one is pretty good. it handles images properly Feb 15 13:17:58 it's not the same one used in web search afaik Feb 15 13:18:06 it was updated a month or two back Feb 15 13:18:10 very nice now Feb 15 13:18:10 try uploading a couple of pdfs to docs.google.com and see what i mean Feb 15 13:18:43 hi all Feb 15 13:19:39 hi Feb 15 13:19:48 That is not the same thing as mailing it to yourself and viewing from the gmail app on the phone, right? Feb 15 13:20:35 one little question by esses after some days of peace (for you). is there a way to associate with uninstalling app action from g1 some code? (for example some code that deletes dirs created on the sd card) Feb 15 13:21:24 my app creates a dir on the sd and if the user uninstall it I want that the dir will Feb 15 13:21:36 I want to delete this dir. Feb 15 13:22:51 esses: And what if the user has put something else in there? Feb 15 13:23:10 what? Feb 15 13:23:11 i think there may be an intent you can handle Feb 15 13:23:24 but not sure when it's broadcast - before or after the uninstallation Feb 15 13:25:06 esses: assume that the user has put some other stuff like pictures or movies in that directory you created. And wants to save them (after removal of your program) I think you should ask before you remove the directories Feb 15 13:26:35 it is an user problem, if they put something into a dir created by ann app that they are uninstalling I need only to put a message like "Attention all the contents of will be deleted. Continue uninstalling or quit?" Feb 15 13:28:35 esses: That is exactly what I meant: Or let them uninstall but not remove dir. Feb 15 13:30:51 no I can't do it. no remove n o uninstall Feb 15 13:35:13 the problem is that I have to code a service, something that runs in background forever until the app is uninstalled. Right? Feb 15 13:37:23 esses: I think not, I thought that programs could "sign up" to catch certain intents, like the browser app catches the url intent Feb 15 13:39:35 yeah Feb 15 13:42:37 So I have to register my app to receive the broadcast of the uninstaller Feb 15 13:43:10 or a friend of my app that do the same. Feb 15 13:43:24 myAppFriend.apk :-) Feb 15 13:45:54 I guess it should be yourApp itself :) Feb 15 13:47:37 yes if it has the time to catch the message before to be uninstalled. Feb 15 13:48:06 However I try with my app at first and then let you know :-) Feb 15 13:48:21 thanks for your help Feb 15 13:49:12 your selcome! please let us know :) Feb 15 13:51:40 Does anybody know if requesting permission for android.permission.ACCESS_ASSISTED_GPS would get me a quicker GPS location than just: android.permission.ACCESS_FINE_LOCATION Feb 15 14:01:26 not sure Feb 15 14:01:29 try it ? :-) Feb 15 14:01:48 btw, does does anyone have a facebook account and a min to help test my facebook profile photo sync app? Feb 15 14:04:00 sorry no facebook Feb 15 14:04:28 yes I have one Feb 15 14:06:01 want to try it? Feb 15 14:06:15 it just matches your phone book with your facebook friends, and copies their profile photos across Feb 15 14:06:32 not that useful today, but it makes the phone feel more like home :) i'm hoping facebook allow sync of more useful information in future. Feb 15 14:06:53 there's a barcode you can scan here: Feb 15 14:06:54 http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl=http%3A%2F%2Ffbsync.plan99.net%2FFacebookSync.apk Feb 15 14:07:13 or this is the direct url - fbsync.plan99.net/FacebookSync.apk Feb 15 14:07:26 i can try it only on the emu Feb 15 14:07:52 that's ok. any testing right now is good. i think i tested it pretty well, but i only have one account Feb 15 14:17:40 doesn't work :-( Feb 15 14:18:37 no photos retrieved Feb 15 14:18:51 but there is a friend of mine with 7 photos Feb 15 14:22:22 I hope it is useful info for you TD, now I restart coding :-) Feb 15 14:22:59 what was their name in facebook and in your phone book, if you don't mind me asking> Feb 15 14:23:14 it doesn't understand diminutives like "charlie" == "charles" yet. maybe that's the reason? Feb 15 14:25:01 i can help TD Feb 15 14:25:05 i have fb Feb 15 14:25:09 TD: how do you create those barcodes? Those are cool, I want one for my contact info Feb 15 14:25:15 happy to test any facebook apps Feb 15 14:25:41 NetStorm84: cool. let me know if it works for you. it tries to fuzzy match names in your phone book to facebook but of course it can't always do the match Feb 15 14:25:53 kk give me a sec Feb 15 14:25:55 balachmar: http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl= Feb 15 14:26:20 balachmar: http://createqrcode.appspot.com/ Feb 15 14:26:42 td I'm italian italian names are the easiest thing to parse :-) Feb 15 14:26:44 Because if I do that for contact info, Android should be able to recognise that right? Feb 15 14:26:58 the italian nick too Feb 15 14:27:04 balachmar: never tried it ... Feb 15 14:27:30 balachmar: try making one here and scanning it: http://qrcode.kaywa.com/ Feb 15 14:27:42 the nick of my friend is the same as his name Feb 15 14:27:45 esses: yeah, i want to make it work for everyone. but i need examples of name -> real name mappings Feb 15 14:27:46 what software ya use to scan it? Feb 15 14:27:52 NetStorm84: barcode scanner, in the market Feb 15 14:27:59 esses: they are identical? ok that's odd. Feb 15 14:28:08 esses: if you can send me your "adb logcat" output that'd be great Feb 15 14:29:11 Sorry I closed the emu so logcat disappeard Feb 15 14:29:21 ok. no worries Feb 15 14:29:24 I retry later Feb 15 14:29:35 And send you the logcat Feb 15 14:29:48 an error has occured during the sync do you have good reception here Feb 15 14:29:50 im on wifi Feb 15 14:30:06 it flicked through about 10 pix b4 the error Feb 15 14:30:21 ok. can you send me "adb logcat" output too? i need a better way to send error reports back to me Feb 15 14:30:31 about message of application manager. Feb 15 14:30:36 NetStorm84: you should at least see that those pics you saw go by are now in your contacts list ? Feb 15 14:30:48 not sure how i do that Feb 15 14:30:51 bear with me Feb 15 14:30:51 ah ok Feb 15 14:30:55 it's an sdk tool Feb 15 14:31:06 td why don't you save the logcat into a file and send you with email (you can code it with few lines of code) Feb 15 14:31:07 you should be able to restart the sync. it'll pick up where it left off, i think Feb 15 14:31:30 Broadcast Action: An existing application package has been removed from the device. The data contains the name of the package. The package that is being installed does not receive this Intent. Feb 15 14:31:33 esses: that might be a good idea yeah. really that should be a framework service. Feb 15 14:31:43 no started from the start Feb 15 14:31:46 ok Feb 15 14:31:56 then same error Feb 15 14:31:57 I hope the package is being uninstalled yes Feb 15 14:32:01 the same one? at the same place? Feb 15 14:32:22 that's interesting. suggests that there's an issue with that specific photo URL Feb 15 14:32:30 not sure ill run it again Feb 15 14:32:34 NetStorm84: do you have the SDK? Feb 15 14:32:36 td but your app is a webview that load a site ? Feb 15 14:32:46 you developed Feb 15 14:32:51 esses: for the login page yes. it's required by facebook. the rest of the sync doesn't use it Feb 15 14:33:08 yes fails on my friend Zak Beard every time Feb 15 14:33:37 can you point me to the docs you use for interfacing with facebook api Feb 15 14:33:44 developer.facebook.com Feb 15 14:34:01 okay Feb 15 14:34:04 thanks Feb 15 14:34:15 did you use javascript? Feb 15 14:34:24 javascript api Feb 15 14:34:39 NetStorm84: did it say anything else? there should have been an extra message in brackets after the "do you have wifi" message? Feb 15 14:34:46 DEBUG/SyncManager(51): failed sync operation authority: contacts account: netstorm1984@gmail.com extras: [upload=true ] syncSource: 1 when: 44333511 delay: 30000 key: {authority: contacts account: netstorm1984@gmail.com extras: [upload=true ]} rowId: 1 Feb 15 14:35:12 esses: i use javascript with facebook connect to obtain a session key, and then use direct HTTP from my program to do the rest Feb 15 14:35:46 NetStorm84: ok, so you have adb, cool. there should be lots of output, an exception trace Feb 15 14:35:47 okay your info will be more useful for a future app :-) Feb 15 14:36:13 no i have a stock g1 Feb 15 14:36:26 NetStorm84: if you could pastebin that or email it to me (mike@plan99.net) that'd be appreciated. yeah you can use adb logcat on a stock g1 Feb 15 14:36:31 you don't need a special phone Feb 15 14:36:36 just a USB cable and the SDK Feb 15 14:36:44 so send you the entire log? Feb 15 14:36:48 from ddms? Feb 15 14:36:56 yes please. that'd be great. Feb 15 14:37:09 the "adb logcat" command can be run from the command shell. if you're on windows it might be easier to use ddms yeah Feb 15 14:37:57 but if you run eclipse you can see it into ide Feb 15 14:38:01 This is the url you need to generate a 2D code wth contact info that barcode scanner recognises Feb 15 14:38:02 http://zxing.appspot.com/generator/ Feb 15 14:38:14 ah ha Feb 15 14:38:20 balachmar: great Feb 15 14:38:56 u have mail Feb 15 14:40:17 TD: It is soo cool. Put it on your business card and people with a G1 can very easily put your info in their phone! Feb 15 14:41:21 NetStorm84: hmm, is there an "event.log.tag" file as well? i never used DDMS export Feb 15 14:41:41 yea there is Feb 15 14:41:45 ill email that too Feb 15 14:42:21 sent Feb 15 14:43:53 thanks Feb 15 14:45:23 hmmm Feb 15 14:45:46 i think this is the wrong stuff. i really need the "logcat" output, or a "bug report" (adb bugreport). this seems to be purely the tagged core log Feb 15 14:46:04 something like "adb bugreport >bugreport.txt" in a command line would work Feb 15 14:46:18 k ill try it Feb 15 14:47:12 balachmar: http://bit.ly/tanepiper :) Feb 15 14:47:26 i did that last night actually Feb 15 14:48:20 ghe ghe, with the same website? Feb 15 14:51:28 ok found the logcat Feb 15 14:51:54 how do i save to file, something like adb logcat >> log.txt Feb 15 14:51:57 ?? Feb 15 14:53:28 NetStorm84: yeah. one > Feb 15 14:54:40 ok got it ill send it over Feb 15 14:54:47 W/System.err( 1751): java.lang.NullPointerException thats seems to be the error though Feb 15 14:55:13 thanks. i'll take a look. Feb 15 14:55:35 ok sent Feb 15 14:56:46 fascinating, thanks Feb 15 14:56:49 this is invaluable Feb 15 14:56:54 also TD, i got a Barry in my phone book Feb 15 14:57:05 but its put the pic of a diff barry from my fb Feb 15 14:57:24 heh Feb 15 14:57:41 but other than those 2 probs lol seems like a good app! Feb 15 14:57:42 yes. that has happened to me too. do you think when there are two possibilities, it should do nothing, or just guess ? Feb 15 14:57:50 maybe ask Feb 15 14:58:06 que them up and then notify Feb 15 14:58:07 yeah. i'm trying to make it as automatic as possible, so it can run in the background (eg overnight). Feb 15 14:58:14 yea Feb 15 14:58:15 but in some cases that isn't going to work Feb 15 14:58:25 so let it do it, store the duoplicates Feb 15 14:58:29 then when its done Feb 15 14:58:39 notify there were duplicates Feb 15 14:58:47 then they can go through them 1 by 1 Feb 15 14:58:53 and select what to do Feb 15 14:59:18 i wonder .... do you interact with the "right" barry on facebook more often than the wrong barry? i'm just wondering if i can try and rank people in order of how often you, eg, write on their wall or something Feb 15 14:59:48 the bary on my fb isnt even on my phone, cos dont really talk to himk Feb 15 15:00:05 and the one on my phone isnt on fb lol Feb 15 15:00:20 ah ha Feb 15 15:00:25 oh, lol Feb 15 15:00:28 yeah Feb 15 15:00:30 no way to win then Feb 15 15:00:54 definately a good app though! keep at it Feb 15 15:00:55 so you have one barry in your phone book, and one barry on facebook, but they are not the same person. i don't think i can get this right :/ Feb 15 15:00:57 thanks! Feb 15 15:00:58 btw Feb 15 15:01:01 i think i see what the bug is Feb 15 15:01:06 good! Feb 15 15:01:13 do you have contacts in your phone book with no name, by any chance? Feb 15 15:01:17 just numbers? Feb 15 15:01:33 not that i can see Feb 15 15:01:42 but theere is one without a number Feb 15 15:01:51 hmmm. ok. that should be fine. Feb 15 15:01:57 which is me lol, just have my email Feb 15 15:02:04 basically it died because the phones contact list gave it a person record that didn't have a name. Feb 15 15:02:08 i didn't think this was possible, but apparently it is Feb 15 15:02:24 i'll add some more error handling in this area of code and try to figure out how that might happen. Feb 15 15:02:27 thanks! this testing is invaluable. Feb 15 15:03:08 if it means i get to download a good app at the end off it, im all for it Feb 15 15:04:34 yep. i have to decide how to handle the case of mismatched/duplicate identities, but might punt on that for v1. you could fix it just by adding barrys second name, or the first letter of his second name, to the phone book contact. anyway, i hope to have it uploaded to the market in a week or two, after more testing Feb 15 15:05:15 u gonna b charging for it? or not made that descion yet? Feb 15 15:05:19 it'll be free Feb 15 15:05:22 might open source it too Feb 15 15:05:23 cool Feb 15 15:05:29 figure other people might as well learn from my mistakes :-) Feb 15 15:05:34 thatll b nice Feb 15 15:05:42 im trying to learn all this Feb 15 15:05:46 got one app on the market Feb 15 15:06:12 wanna make it better but java is hard compared to vb what im used to Feb 15 15:06:41 heh Feb 15 15:06:47 you don't want to see c++ then :-) Feb 15 15:06:59 no thanks! lol Feb 15 15:07:08 but yeah. it's complicated. java is a simple language but the android API is quite difficult for beginners, i think. the lifecycle stuff is hard to get right even for experienced programmers Feb 15 15:07:23 (i work for google and it took me ages to get the details of the back button right in every case - still not sure i got all of them!) Feb 15 15:07:32 yea the syntax i dont really have a problem with its all the other crap Feb 15 15:08:02 u work on android? or another department Feb 15 15:08:05 yep. well i've gotta head out in a sec, watching movies at a friends place. but feel free to ask me any questions if you see me here again, i'd be happy to return the help Feb 15 15:08:10 nope, i work in the Maps server ops team Feb 15 15:08:21 nice! Feb 15 15:08:22 just doing this as a side project Feb 15 15:22:23 omg facebook chat seems to work in the browser noww Feb 15 15:23:00 but not very well Feb 15 15:31:07 netstorm84: what is the app you have on the market? Feb 15 15:31:20 BinHexOct Feb 15 15:31:37 wait I'm searching for it... Feb 15 15:31:44 how do i access shared preferences in an app from a PreferenceActivity? http://paste.ifies.org/355 - I set accessToken in another activity using app_preferences = PreferenceManager.getDefaultSharedPreferences(this); then putting accessToken in a SharedPreference editor Feb 15 15:31:57 but in the pref activity, accessToken is always empty Feb 15 15:32:58 category? Feb 15 15:33:05 tools Feb 15 15:35:51 do you have direct link to try it on the emu so i can see what do you want to improve? Feb 15 15:36:01 a direct link to apk Feb 15 15:37:20 ftp://www.expandedpolystyrenesupplies.co.uk/BinHexOct.apk Feb 15 15:37:30 ooops Feb 15 15:37:36 http://www.expandedpolystyrenesupplies.co.uk/ Feb 15 15:37:48 http://www.expandedpolystyrenesupplies.co.uk/BinHexOct.apk Feb 15 15:37:55 thats the right link lol ^^ Feb 15 15:39:12 okay, no viruses :-) Feb 15 15:39:17 think i might upload it to google code Feb 15 15:39:19 lol Feb 15 15:39:30 had someone interested in helping out with it Feb 15 15:41:24 I'm interested Feb 15 15:41:51 to see the code. Maybe you put zip insted of apk Feb 15 15:41:57 I changed it to apk Feb 15 15:43:09 ill upload it to google code now Feb 15 15:45:58 any idea how to upload to google code? lol Feb 15 15:47:56 is it possible to start an intend with an animation? Feb 15 15:52:47 netstorm84: I saw the app. Good. What do you want to improve? Feb 15 15:53:25 i want a slide up keypad with numbers 1-9 and letters A-F like the dialpad Feb 15 15:53:34 and maybe a binary looking bg pic Feb 15 15:54:12 for a binary background picture search for a free matrix style background Feb 15 15:56:33 then in the xml file of layout put into layout tag the attrib : android:background="@drawable/". Put your image into res/drawable Feb 15 15:59:31 for the slide I can't help you I have not coded yet this type of component. Give a look on anddev.org. There are a lot of useful android development snippets Feb 15 16:00:29 ok bg pic sounds easy enough Feb 15 16:00:31 thanks Feb 15 16:02:04 uploaded code Feb 15 16:02:04 http://code.google.com/p/binhexoct Feb 15 16:03:58 any recommendations on bg pic size? Feb 15 16:12:38 two sizes 320x480 and one 480x320 Feb 15 16:13:14 if you want to see the landscape and portrait correctly otherwise only one 320x480 for portrait mode Feb 15 16:13:57 can i pt both sizes in called binary.jpg? Feb 15 16:14:01 however when I have time I think about the slide I think it a good develiopment excercise Feb 15 16:14:03 :-) Feb 15 18:00:28 is it possible to run threads in a tabhost activity> Feb 15 18:00:29 ? Feb 15 18:01:11 i keep getting this: http://paste.ifies.org/356 when trying to do this: http://paste.ifies.org/357 Feb 15 18:49:06 digitalspaghetti: the OAUTH call seems unrelated to the tabhost err Feb 15 18:50:11 yea, i've just moved it into the activity i am calling insted Feb 15 18:51:14 the err looks like some part of the view is missing. all of the callstack is android internals Feb 15 18:51:30 thats not too helpful, i know :) Feb 15 18:56:07 $ /usr/local/ruby1.9/bin/irb Feb 15 18:56:07 irb(main):001:0> gem 'postgres' Feb 15 18:56:07 Gem::LoadError: Could not find RubyGem postgres (>= 0) Feb 15 18:56:27 $ /usr/local/ruby1.9/bin/gem list postgres-pr Feb 15 18:56:27 *** LOCAL GEMS *** Feb 15 18:56:27 postgres-pr (0.5.1) Feb 15 19:03:42 ah. progress. Feb 15 20:00:03 Handler.postDelayed() vs. Timer.schedule(TimerTask). Which is "better" on Android? Feb 15 20:10:14 Oh, and from a service (so it's not updating the UI - a background thread is fine) Feb 15 20:36:52 rsteckler: they're not better than each other, they have different purposes Feb 15 20:38:05 romainguy: I'm actually now looking at AlarmManager. Right now I have a service with a timerTask scheduled every n minutes. When the device is asleep, the service is suspended, and I certainly don't want to wake_lock to keep it running 24x7 Feb 15 20:38:19 you can run threads wherever you want Feb 15 20:38:23 Is AlarmManager the right way to partially wake the device to run a short task ? Feb 15 20:38:24 just don't modify the UI from these threads Feb 15 20:38:32 I'm in a non-ui area. Feb 15 20:39:21 oh oops I was answering "digitalspaghetti: is it possible to run threads in a tabhost activity>" Feb 15 20:39:26 anyway Feb 15 20:39:28 yeah AlarmManager is a good fit for that Feb 15 20:40:01 Ok, cool. That's where I ended up. I'm assuming Gmail uses alarmManager to check new mail? Feb 15 20:40:16 hey! short question: EditText -- OnKeyListener -- i catch keyCode 66 (enter) -- how can i prevent the app to add the enter to the box? Feb 15 20:40:42 metachris: returning true from the listener tells the system that you handled the keystroke. Feb 15 20:40:50 rsteckler: thanks a lot!! Feb 15 20:40:52 (Is that what you mean?) Feb 15 20:41:07 * metachris nods Feb 15 20:41:30 (y) cool -- thanks again :-) Feb 15 20:55:15 anyone know if kml is a webservice? Feb 15 21:00:59 kml is a file format for storing latitude/longitude Feb 15 21:12:42 Hi guys ! Feb 15 21:12:56 I know you are so so hapy I come back :-P Feb 15 21:13:02 happy Feb 15 21:41:42 hows things esses Feb 15 21:43:46 doea anyone know a tutorial on custom markers for maps? not as in marker graphic, but as in having text and an icon Feb 15 22:03:49 where is the list of column types for a sqlite database on android? Feb 15 22:05:22 donpdonp: http://www.sqlite.org/datatype3.html Feb 15 22:05:33 marklar: thanks. Feb 15 22:05:36 np Feb 15 22:06:23 just fyi, I don't think sqlite actually enforces the types Feb 15 22:08:21 yeah im using float and its happy even though 'real' seems to be the correct name Feb 15 22:08:58 'datetime' isnt even listed, but im using that too Feb 15 22:09:16 yup, I don't remember the specifics, but there was some oddness Feb 15 22:10:19 wow. that's flying fast and loose. Feb 15 22:11:21 keeps it interesting :) Feb 15 22:12:00 comparing a datetime to a boolean is not very intuitive. Feb 15 23:35:25 hi all Feb 15 23:35:36 I'm trying to use statfs Feb 15 23:35:49 to know the free space into sdcard Feb 15 23:36:07 but with big sd it doesn't work Feb 15 23:37:06 for example with an emulated 10GB sd the result of getAvailableBlocks()*getBlockSize()= about 1.800.000.000 Feb 15 23:37:34 I'm using a long value to store the result Feb 15 23:39:17 max value should be 9223372036854775807 Feb 15 23:39:39 i think it is enough tov sotre the freespace result Feb 15 23:39:49 any suggestions? Feb 15 23:41:01 a 7GB free space returns (on a phone) -651001856 Feb 15 23:41:11 something wrong but what? Feb 15 23:41:53 simply statfs method fails or I wrote bad code...ùThis is the problem... To be or not to be :-) Feb 15 23:54:07 esses: maybe you're printing an int - the float is getting converted to an int just before printing Feb 15 23:57:06 also are you doing myFloat = intA * intB? that is still integer multiplication. myFloat = (Float)intA * intB Feb 15 23:57:17 er, s/Float/Long Feb 15 23:59:09 how do you guys go about step about debugging failing test cases? Feb 15 23:59:24 erm, s/about step// Feb 16 00:01:28 Anyone know the time difference between uploading to market and the app showing up for download? Feb 16 00:02:19 rsteckler, is your app free? Feb 16 00:02:29 KNY: yea Feb 16 00:02:43 rsteckler, it used to be virtually immediate Feb 16 00:02:53 don't know about now (since the market changes) Feb 16 00:02:58 yea. Feb 16 00:03:07 I'm pretty sure that non-free apps aren't going to show up until next week Feb 16 00:03:53 rsteckler, what's the name of your app? Feb 16 00:04:32 KNY: It's not release yet. It's here, though: http://www.mybuzzdroid.com/smf/index.php/topic,2.0.html Feb 16 00:04:48 I'm testing right now - I have ~40 users on the server right now Feb 16 00:04:56 ah. well, unless they've changed something, it's right away Feb 16 00:04:57 (From androidCommunity). Feb 16 00:05:00 cool. Feb 16 00:05:15 I want to make sure I'm around when people start downloading it so I can keep an eye on the server. Feb 16 00:05:25 Make sure everything is working smoothly, etc Feb 16 00:05:48 ah Feb 16 00:18:50 but the two statfs methods returns int so lonh=int*int is correct Feb 16 00:19:43 then i wrote Long.toString(i) so where is the bug Feb 16 00:19:46 ? Feb 16 00:20:36 i need to print 10.000.000.000 long contains more than this vaue I use the Long class to print the string. what else? Feb 16 00:23:44 esses: you could look into BigInteger, maybe Feb 16 00:26:24 I've already made it waiting your suggestions nothing :-( the result is the same for a 10GB sd is about 1.800.000.000 Feb 16 00:27:29 Can someone try it on his emu? I'll send him the code Feb 16 00:28:14 I need someone with at least more than 2GB free Feb 16 00:29:25 with long freeSpace=1800.000.000 Feb 16 00:29:45 with java.math.bigInteger freeSpace=1800.000.000 Feb 16 00:29:49 :-) Feb 16 00:30:40 it was a good thing if the toString truncates the value but It's only in my dream I think Feb 16 00:33:38 in italy we write the sound of a crying little little children "uheee, uheeee". Now I'm thinking asbout Uheeeee Feb 16 00:39:48 "fsChecking.getA...ailableBlocks()"= 2554998 Feb 16 00:39:48 "fsChecking.getBlockSize()"= 4096 Feb 16 00:39:48 freeSpace 1875337216 Feb 16 00:40:29 2554998 for 10GB is OKAY? Feb 16 00:41:35 the only thing is to change to getFreeBlocks() Feb 16 00:41:43 on the sd maybe I can do this Feb 16 00:45:19 the same result. Maybe a limitation of statfs with partition > 2GB Feb 16 00:45:21 ? Feb 16 01:00:57 wohooo! I just published to the market. Feb 16 01:01:21 That "small little weekend project" sure took a lot longer than I planned on... Feb 16 02:00:22 rsteckler, neat. If I had a use for it, I'd install it ;) Feb 16 02:00:56 let's hope I don't ever become that dependent on up-to-the-minute updates, haha Feb 16 02:03:33 kny =) Kinda funny actually, I started it as a small java app to ping the fedex site to check if my Adp1 was delivered yet... Feb 16 02:03:45 I was dying to know the minute it got here ... Feb 16 02:03:49 haha Feb 16 02:04:45 anyone know what version of HttpClient Android ships with? Feb 16 02:08:56 I love how some people in the Market comments write "forecloses" instead of "force closes" Feb 16 02:11:03 5 seconds after I published I got a "first" comment. At least he five starred it... Feb 16 02:12:45 They were probably just excited it wasn't another flashlight app Feb 16 02:13:06 What is your app? Feb 16 02:18:25 Buzz something Feb 16 02:18:35 MyBuzzDroid Feb 16 02:28:53 Haha, don't know what your own application is called? Feb 16 02:29:33 Arg, nevermind, misread the flow. Feb 16 02:32:41 haha, yeah, sorry Feb 16 02:35:51 my server is getting hammered. Feb 16 02:36:01 737 signups so far Feb 16 02:36:09 I was thinking maybe 100 the first day Feb 16 02:36:14 It's only been an hour Feb 16 02:36:50 it's pretty surprising how many people watch the market at any given time Feb 16 02:36:59 seriously. Feb 16 02:37:14 For an "unpopular" phone, there sure are a ton of peopl. Feb 16 02:37:29 And apparently, from the comments on market, I win the gayest application icon. W00T! Feb 16 02:38:20 rsteckler, I saw that, haha Feb 16 02:40:10 Guess I need to hire an artist =) Feb 16 02:40:24 Cuz now that I look at him, with his little fairy wings, he is kind of gay looking... Feb 16 02:40:26 * rsteckler shrugs Feb 16 02:41:54 I'm stuck in the very early (as you'll see from my question) development portion of my app Feb 16 02:42:10 I added, or tried to add, a list Feb 16 02:42:46 and it's in my main.xml Feb 16 02:42:53 but it doesn't show up Feb 16 02:43:02 do I have to add it to the canvas somehow in code too? Feb 16 02:44:22 rsteckler: feature idea: alerts for "prediction market" contracts Feb 16 02:44:38 rsteckler, I've got some graphic design friends that I repay with either beer or free website hosting Feb 16 02:44:41 rsteckler: for example, intrade.com Feb 16 02:44:42 they do all my graphic work Feb 16 02:45:27 rsteckler, you should open your notification API so we (users) could say "watch this XML file for notifications" and we could create custom notifications Feb 16 02:45:48 and obviously, host the XML (or whatever) on our own servers Feb 16 02:46:19 rsteckler: web sites up/down would be another possibility, just hook into one of the website monitoring services Feb 16 02:46:46 mfisch_home, why stop there? do ping/ftp/smtp/pop/etc service monitoring Feb 16 02:47:27 KNY: yep Feb 16 02:47:41 KNY: I'd love to know when my VOIP goes out too Feb 16 02:48:01 so can anyone tell me what the basic steps I need to take to get this list in my app? Feb 16 02:48:02 (see my previous suggestion of an open notification system) Feb 16 02:48:24 KNY: I suggested this one last week: http://pmsbuddy.com/ Feb 16 02:49:42 mfisch_home, that could be handy for keeping me out of trouble with the lady ;) Feb 16 02:49:50 KNY: exactly! Feb 16 02:50:21 mfisch_home, re: your ListView question, are you trying to make the whole activity a list or have an embedded one? Feb 16 02:50:42 rsteckler: there are also lots of new GPS monitors for "families" and what not. Howabout an alert when your daughter gets within 50 feet of her boyfriends house (for example) Feb 16 02:50:59 KNY: whole activity, you mean the whole screen? If that's it, then no Feb 16 02:51:12 mfisch_home, yeah, like... Contacts for example Feb 16 02:51:31 okay, let me see if I can come up with an example Feb 16 02:51:36 KNY: I have a button on the bottom, then the list above it Feb 16 02:51:43 or, in theory I have it Feb 16 02:51:54 KNY: eventually, yea - I'd love to open up the notification system and let other devs send whatever they want through it. It's a very rich way to tell people an app is updated, etc Feb 16 02:52:18 KNY: Do you have some examples of their design work? Perhaps I could work something out with them... Feb 16 02:52:36 rsteckler, yeah, send me a /msg Feb 16 02:52:45 mfisch_home: Absolutely. I like the GPS idea. I could use it when the wife is almost home ;) Feb 16 02:53:06 rsteckler: exactly! it could send your mistress a text alert! (HIDE HIDE HIDE!) Feb 16 02:53:24 mfisch_home, something like this? (except in reverse) http://svn.evancharlton.com/wsvn/Mileage/trunk/res/layout/history.xml Feb 16 02:53:34 mfisch_home: I've also looked at the website alert. I'm running nagios3 monitoring on my box and some alerts from that would be nice. Feb 16 02:54:33 KNY: this is what I have now: http://pastebin.com/m2570f9f2 Feb 16 02:55:33 now my Button I have to "retrieve" in the code so that I can attach a listener to it Feb 16 02:57:35 mfisch_home, I think your problem might be the wrap_content/wrap_content on the ListView Feb 16 02:57:51 you should be doing a fill_parent/fill_parent and then set a layout_weight on the button Feb 16 02:57:57 also, AbsoluteLayout? booooo Feb 16 02:58:07 KNY: default in eclipse AFAIK Feb 16 02:58:35 try copying the source I sent you and switching things around Feb 16 02:58:42 I don't recommend the WYSIWYG editor Feb 16 02:59:21 KNY: I'm editing the XML, but AbsoluteLayout was either the eclipse default or this fancypants layout editor I downloaded did it ;) **** ENDING LOGGING AT Mon Feb 16 02:59:58 2009