**** BEGIN LOGGING AT Mon Mar 30 02:59:57 2009 Mar 30 03:52:21 hey what's the android id for list header? Mar 30 03:52:48 like android:id/empty is for empty view Mar 30 05:48:05 anyone know how to bring up the menu explicitly without pressing the menu button Mar 30 05:52:18 seabasstke: openOptionsMenu() Mar 30 05:53:56 great, thanks a lot Mar 30 14:41:46 I'm just getting started... Should i get eclipse for Java EE devs or for Java Devs? Mar 30 14:42:13 uh Mar 30 14:42:22 Eclipse classic or eclipse for java. You don't need EE. Mar 30 14:42:36 thanks =] Mar 30 14:42:37 EE is for webservers and java beans and such Mar 30 14:42:43 oh ok Mar 30 14:56:26 do i want the Java SE JDK? Mar 30 14:56:50 yes, probably Mar 30 14:57:24 * bilboed-pi wonders if anybody tried building the android system with llvm Mar 30 15:05:08 Some people on here may remember me bugging them about various things to do with accessing battery data and running background services recently. Well, the outcome is: https://secure.grepular.com/blog/index.php/2009/03/30/google-phone-battery-usage-graphing/ Mar 30 15:05:36 oh awesome Mar 30 15:05:44 so these are real time graphs of your phone's battery levels? Mar 30 15:05:51 .... this must kill your battery... Mar 30 15:06:16 They are real time yes. Well they're up to date as of about 15 minutes Mar 30 15:06:26 You can see how much it kills my battery by looking at the graphs ;) Mar 30 15:06:38 it's well within my tolerance Mar 30 15:06:42 I notice that they trend downward, confirming my hypothesis Mar 30 15:06:49 Heh Mar 30 15:07:14 mickeyc: what extended battery do you have? Mar 30 15:07:36 The downward trend is not that bad though considering. I don't know how it would compare to the trend if I uninstalled my app though Mar 30 15:07:58 zhobbs: The Innocell 2600 Mar 30 15:08:26 With the replacement back cover it increased the thickness of the phone by 5mm, but that only made it as thick as my previous phone anyway (The Nokia E90) Mar 30 15:09:24 The middle graph is good. it shows when I plugged my phone in to charge last night and when I unplugged it this morning to go to work, quite well Mar 30 15:10:29 mickeyc: is the extended battery worth it in your opinion? Mar 30 15:10:40 i tried to add the android plugin using the instructions on the android website and i get an error saying there is no repository at this location or something along those lines Mar 30 15:11:14 https://dl-ssl.google.com/android/eclipse/ Mar 30 15:11:18 http://dl-ssl.google.com/android/eclipse/ Mar 30 15:11:24 is that the url you are using? Mar 30 15:11:26 I don't have any hard figures, but it seems to make a big ifference. Hmmm. I could put the old battery in to see how that affects the graph Mar 30 15:11:29 yes, the first one Mar 30 15:11:36 try the second one, but that should work fine. Mar 30 15:12:01 you might want to try pointing your browser there to ensure it is reachable for you... Mar 30 15:12:14 hmm, actually, that 404s for me too :X Mar 30 15:12:26 mmhmm Mar 30 15:12:59 I'll put the old battery in tomorrow and leave it for 24 hours to see how it compares Mar 30 15:13:44 mickeyc: ahh...actually makes your phone thicker Mar 30 15:14:11 Yep. But I tend to wear combats with massive leg pockets so that's not an issue for me Mar 30 15:14:12 BeBoo_: Android is broken, come back later :D Mar 30 15:14:18 aww Mar 30 15:14:25 * BeBoo_ fails Mar 30 15:14:31 morrildl: android is broken :X Mar 30 15:14:48 dl-ssl.google.com/android/eclipse/ Mar 30 15:14:53 404s for both me and BeBoo_ Mar 30 15:15:44 isn't it supposed to 404? Mar 30 15:15:46 vol: it added it with the non-ssl url.. still 404s in teh browser but probably because there is no index document Mar 30 15:16:06 yeah, eclipse knows what file to grab there...the browser doesn't Mar 30 15:16:41 Alright, it's working in eclipse now? Mar 30 15:16:55 yes, using the non-ssl url.. the ssl url is broken Mar 30 15:20:43 why do I have the feeling I'm always recompiling the whole effin stack... Mar 30 15:25:33 vol: the directory index doesn't need to be public and can 404. /android/eclipse/site.xml is what Eclipse actually asks for Mar 30 15:25:59 morrildl: nevermind :D Mar 30 15:41:40 when building an app, is there a way to get eclipse to use my android instead of the emulator? Mar 30 15:43:56 what do you mean your android Mar 30 15:45:35 well, the emulator seems a little limited (can't test turning it, for example) and i'd like to load the program onto my android and debug it that way Mar 30 15:46:53 your android phone I assume? Mar 30 15:47:30 sorry, yes, my g1 Mar 30 15:47:35 http://developer.android.com/guide/developing/device.html Mar 30 15:47:47 thanks Mar 30 15:48:26 BeBoo_: When your phone is hooked up via usb, and you have debug on device enabled and you've put the drivers on your machine, you can specify which device you want to run on. Mar 30 15:49:03 BeBoo_, sure you can turn it in windowsland it's "ctrl + f12" Mar 30 15:49:39 ah, nevermind, you mean actual turning, not changing orientation Mar 30 15:54:06 ah, i must've turned the debug option off.. there we go =] Mar 30 16:14:47 hmmm, seems like children of Preference should implement all the constructors of Preference...it's hard to implement DialogPreference from code because only overrides the xml constructors Mar 30 16:15:53 I think it'll throw a NPE if you pass in null for the attrs Mar 30 16:23:27 guess I'm wrong -- passing null for attrs doesn't break anything Mar 30 16:39:23 :O Mar 30 16:39:41 the Italian version of youtube.com has a half-page-width ad for the G1. Mar 30 16:40:17 shot! http://b2.s3.p.quickshareit.com/files/screenshot_502c8015a46abf4b6.png Mar 30 16:40:57 * jasta rolls eyes Mar 30 16:52:43 hmm advertising is free for google Mar 30 16:56:30 radio dreyeckland ist auch nicht uninteressant Mar 30 17:05:43 Has anybody encountered the 'Interactive rebase already started' error when running 'repo sync' ? Mar 30 17:09:40 or rather... why on *earth* would repo want to do a git rebase ! Mar 30 17:23:53 * bilboed puts on Saxxon in order to fix POC/Android Mar 30 18:13:48 is there a simple way to get the root view of an Activity? just curious if there is a way without naming it... Mar 30 18:58:30 how do i send a string to the debug console? Mar 30 19:01:00 BeBoo_: What do you mean? Mar 30 19:01:08 How do you log things? Mar 30 19:02:05 correct, i want to test a function and i want to just put somethin in the log that says "user tapped blah" or something Mar 30 19:03:01 Look at the Log class Mar 30 19:03:18 http://developer.android.com/reference/android/util/Log.html Mar 30 19:03:34 great, thanks =] Mar 30 19:03:49 no problem Mar 30 19:28:26 if you have an Activity that is forcing an orientation is there any way to make an activity started by that one to act normally? Mar 30 19:30:57 you can't just set setPreferredOrientation? Mar 30 19:31:12 oh, sorry, I see what you mean Mar 30 19:31:48 yeah, act A is forced to be portrait...it launches act B which should not be forced one way or the other...but it does Mar 30 19:34:17 I think I could set a flag to make it a new task, but then I don't get the result Mar 30 19:34:17 zhobbs: how is B specifying its orientation? Mar 30 19:34:26 ctate: B doesn't specify Mar 30 19:34:34 A specifies in the manifest Mar 30 19:34:45 but B comes up in portrait even with the keyboard slid out? Mar 30 19:34:51 yeah Mar 30 19:37:30 hm. is B claiming to handle any configChanges? Mar 30 19:38:04 I haven't overridden that method to test -- but it is not configured to and does change orientations normally when launched from other activities Mar 30 19:38:07 (i expect not but never hurts to ask) Mar 30 19:38:15 hm Mar 30 19:38:27 something about the way it's being launched from A then? Mar 30 19:38:54 yeah Mar 30 19:39:19 the manifest for A has "android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden|keyboard"" Mar 30 19:39:59 as expected, yeah Mar 30 19:40:22 I'll check to see if onConfigChanged is being called on B Mar 30 19:40:47 i wouldn't expect it unless B also specifies android:configChanges=... Mar 30 19:43:08 yeah, it's being called Mar 30 19:43:15 and it's not set in the manifest Mar 30 19:43:39 hmmm Mar 30 19:43:56 so, it's inheriting it from the activity that started it Mar 30 19:44:10 it's not being called when you slide the keyboard open with B active? Mar 30 19:44:43 onConfigurationChange is being called when I slide it open...but it stays portrait Mar 30 19:44:59 huh Mar 30 19:45:14 hehe...guess I can manually change orientation Mar 30 19:45:36 is a puzzlement Mar 30 19:45:37 seems like there should be a launch flag to say "don't inherit my orientation" Mar 30 19:49:17 more to the point, there's a flag that means DO inherit the orientation of the thing under you Mar 30 19:49:33 what is that flag? Mar 30 19:50:39 ok, this is going to sound really dumb but how do i rename a file in eclipse? There isn't a rename option Mar 30 19:50:50 zhobbs: android:screenOrientation="behind" Mar 30 19:50:52 F2 Mar 30 19:51:15 Refactor -> rename also I think Mar 30 19:51:21 ah thanks =] Mar 30 19:52:14 ctate: that doesn't correspond to an Intent flag does it? Mar 30 19:52:22 no Mar 30 19:52:37 i didn't say it was a LAUNCH flag :) Mar 30 19:54:14 ahh, one thing in the docs for unspecified orientation "No preference specified: let the system decide the best orientation. This will either be the orientation selected by the activity below, or the user's preferred orientation if this activity is the bottom of a task. " Mar 30 19:54:18 that explains that... Mar 30 19:55:08 going to try to set the orientation to user and see what happens Mar 30 19:55:39 ahh, that did the trick Mar 30 19:56:50 aha! that explains it :) Mar 30 19:56:59 android:screenOrientation="user" forces user instead of behind Mar 30 19:57:01 whew, i was worried for a bit Mar 30 19:57:04 thanks :) Mar 30 19:57:13 np :) Mar 30 20:28:05 ctate: ping Mar 30 20:30:11 fadden: ping Mar 30 20:33:27 if i'm releasing an application through my own website does it need to be signed? Mar 30 20:33:47 it probably ought to be regardless. Mar 30 20:33:54 it's not hard to set up Mar 30 20:36:47 tbr: having a consistant cert will help with upgrades Mar 30 20:43:41 tbr: i dont think an apk will install unsigned Mar 30 20:44:20 it will install if signed as debug Mar 30 20:44:27 it just has to be signed as SOMETHING. Mar 30 20:44:38 marketplace won't accept apks signed as debug, though Mar 30 20:46:39 hmm, so i finally got fastboot working and installed the latest dev firmware from htc Mar 30 20:46:54 but my fav. tech site still kills the browser xD Mar 30 21:16:14 is there any way for an application to "eat" a broadcast so that other applications don't receive it Mar 30 21:17:55 tbr: if it's an ordered broadcast you can cancel it Mar 30 21:18:56 I have a user complaining that my application never gets an SMS_RECEIVED broadcast and he thinks chomp sms or sms popup could be causing it Mar 30 21:19:13 not sure if that one is ordered or not Mar 30 21:28:04 anyone know if it's possible to update your status in the IM app? Mar 30 21:29:27 tbr: I think that non-sticky broadcasts are consumed if you return true from your receiver Mar 30 21:29:31 I could be totally wrong though Mar 30 21:31:50 vol: not sure about that... Mar 30 21:38:54 vol: pong Mar 30 21:39:03 ctate: check your messages Mar 30 21:53:06 tbr: Have you tried installing those packages and seeing what happens on your own device? Mar 30 21:53:36 no, i don't own a G1 or test device. Mar 30 23:19:30 aw man, not a rickroll Mar 30 23:21:28 ctate: I love our developers too much for that. Mar 30 23:21:39 :D Mar 30 23:25:35 hello Mar 30 23:26:35 quick question if someone can answer Mar 30 23:28:20 anybody in the house Mar 30 23:29:04 i guess not Mar 30 23:29:07 later Mar 30 23:32:57 "quick" is not the right idea for this channel, goodfella :) Mar 30 23:32:58 what's up? Mar 30 23:34:54 IRC is Internet Relay Chat, not Instant Relay Chat :D Mar 30 23:36:48 * ctate wonders idly whether anyone still uses RELAY now that an internet version has become ubiquitous Mar 30 23:37:02 i'm very new to java and especially new to eclipse... i am getting an error: android.content.res.Resources$NotFoundException: Resource ID #0x7f070000 type #0x12 is not valid Mar 30 23:37:09 the debugger is coming up Mar 30 23:37:42 what resource are you loading, and how? your R.java may be out of date somehow Mar 30 23:38:01 yeah, that sounds like you wound up running code that is out of date with respect to your resource definitions Mar 30 23:38:36 well, i believe it's coming from: addPreferencesFromResource(R.id.preferences); Mar 30 23:38:52 because that's the only line that is there when i cause it Mar 30 23:39:07 under res, i have a folder called id and a file called preferences.xml Mar 30 23:39:15 oooo wait Mar 30 23:39:17 one sec Mar 30 23:40:01 nevermind, i'm sorry. i figured it out Mar 30 23:40:02 =] Mar 30 23:40:16 i had it as R.id.preferences but the preferences file was in xml Mar 30 23:40:17 -_- Mar 30 23:40:43 :) Mar 30 23:44:01 i'm still learning. the samples are great. I'm kind of combining them. =] Mar 31 00:48:47 semi-stupid question... are files in the same package automatically "imported" if that's the right word? Mar 31 01:01:32 yes Mar 31 01:03:29 romainguy_ quick question, trying to change icon.png in an app (not mine) i resign it but i get this error when trying to install [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION] Mar 31 01:03:33 and i deas? Mar 31 01:12:11 Hola Mar 31 01:12:41 Is this a more appropraite place to ask about app development than "#android" because some really irritating people frequent that channel. Mar 31 01:12:51 haha Mar 31 01:12:55 welcome to IRC =] Mar 31 01:12:58 lol Mar 31 01:13:01 I've been using IRC for years. Mar 31 01:13:06 I guess I shouldn't be surprised. Mar 31 01:13:10 i'm not Mar 31 01:13:23 altho, users on freenode are much more helpful than those on efnut Mar 31 01:13:50 i know absolutely nothing so don't expect me to answer anything ;p Mar 31 01:15:45 yeah, well efnet is abotu the same as Something Awful Mar 31 01:16:50 since i've already stated the obvious and i'm new... what would I put where the '...' is? http://pastebin.com/d3e2cced7 Mar 31 01:19:20 BeBoo_: I dunno. What's IrcConnection? Mar 31 01:19:24 Is it part of Android? Mar 31 01:19:32 no, it's a java class Mar 31 01:19:49 Well... Mar 31 01:20:00 I would assume there's something like a MessageListener interface Mar 31 01:20:01 i'm using an existing java classes and an trying to build on it Mar 31 01:20:10 Yeah, well, it's not an Android class Mar 31 01:20:27 http://j-sirc.googlecode.com/svn/trunk/java/src/com/sorcix/sirc/MessageListener.java Mar 31 01:20:32 new MessageListener() { public void methodImpl() { } } Mar 31 01:20:43 It's something like that I would assume. Mar 31 01:20:59 oh ok Mar 31 01:21:43 or createa new class taht implemetns that type. Mar 31 01:22:37 BeBoo_: I'd recommend.... new IrcAdaptor { } then you don't have to implement every single fracking method. Mar 31 01:23:41 misplaced construct Mar 31 01:23:59 ? Mar 31 01:24:12 addMessageListener( new IrcAdaptor { } ); ? Mar 31 01:24:17 addMessageListener( new IrcAdaptor() { } ); ? Mar 31 01:24:18 rather Mar 31 01:24:19 try that. Mar 31 01:24:31 be aware your'e creating class. Mar 31 01:25:06 will i need to place the code to handle the message in the { } ? Mar 31 01:25:53 this is what i'm going off of: http://code.google.com/p/j-sirc/wiki/QuickStart Mar 31 02:47:17 Hi guys Mar 31 02:47:39 I'm using the intent android.provider.MediaStore.RECORD_SOUND Mar 31 02:47:59 and i can save the audio in the sdcard.. Mar 31 02:48:38 but i don't know the uri when the file is saved... Mar 31 02:56:24 estivenrpo: you need to add it to the media db Mar 31 02:57:34 SoundRecorder does this by building a ContentValues describing the file it created, and adding it to the content resolver returned by getContentResolver(), Mar 31 02:59:31 estivenrpo: look at http://android.git.kernel.org/?p=platform/packages/apps/SoundRecorder.git;a=blob;f=src/com/android/soundrecorder/SoundRecorder.java;h=45eaa70c97a5094a96e4f96174e154aa99628850;hb=HEAD in the addToMediaDb() method **** ENDING LOGGING AT Tue Mar 31 02:59:57 2009