**** BEGIN LOGGING AT Fri Apr 10 02:59:57 2009 Apr 10 03:10:07 evening all.. quick question, is row ID returned from sqlitedatabase.insert() the same as the primary key of that row? Apr 10 04:50:05 was trying to get user's phone number from telephony manager Apr 10 04:50:08 it returns null.. Apr 10 04:50:18 is there an alternate way to fetch user's own phone number? Apr 10 05:46:50 Alright Apr 10 05:46:52 noob question :) Apr 10 05:46:58 if anyones awake :p Apr 10 05:47:43 nope? Apr 10 06:00:05 development question? just ask Apr 10 06:01:38 aye, playing with the emulator Apr 10 06:01:46 however, for what I want it to do, I need it to be "online" Apr 10 06:01:59 trying to figure out how to make it "access" the wifi or what not? Apr 10 06:02:14 it seems to be having issues with it Apr 10 06:05:13 nm, I see what was wrong. Apr 10 06:07:35 was the gps timing out not the network :) Apr 10 07:51:05 alright, next dumb question, if anyone is alive :) Apr 10 07:51:19 if I want to spoof a network on the emulator -- how can I? (or can I?) Apr 10 12:40:34 #clojure Apr 10 12:40:37 doh Apr 10 12:53:15 I compiled the Contacts.apk and want to install it into my G1, but failed, it said "INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES", any ideas Apr 10 12:53:16 ? Apr 10 12:54:19 swR00T: in order to replace an app it has to be signed with the same key Apr 10 12:55:00 Since the one on your G1 is signed with a key yo udon't have, I'm not sure you'll be able to replace it Apr 10 12:59:36 yes, i tried to uninstall the contacts application, but can't Apr 10 13:00:04 is there any way i can replace the contacts application? Apr 10 13:11:45 why do you need to do that Apr 10 13:12:20 its not really a contacts app, its just a tab in the dialer Apr 10 13:13:36 i want to modify it, because it has bug Apr 10 13:13:45 what bug? Apr 10 13:14:07 you can rebuild it and have 2 and just point to the new one prbably Apr 10 13:14:27 oh, how can google do that? i remount the /system to rw, and then mv the Contact.apk out to sdcard, reboot, then move the file back, it can't be used! Apr 10 13:15:12 its not signed with the same cert i believe Apr 10 13:15:24 you mean I rebuild the phone and contact apk, delete the orig one, and make a link to the newly generated files? Apr 10 13:15:51 The whole point of apps are you can replace one with another, if they both serve the same intent. Apr 10 13:16:16 no, just make whatever that apk is Apr 10 13:16:26 If you have two apps that say "hey, I'm a dialer!" then you get a choice of which to use, and you can tell it you always want a given one. Apr 10 13:16:53 One of the videos from Google shows this exact situation. With the dialer, even. Apr 10 13:18:00 okay, so i think i can copy the contacts application, rename it into another application name(otherwise it will conflicts with the orig one), then install it. Apr 10 13:18:03 right? Apr 10 13:18:32 copy the source code, make the modification, change the app name, build, install into the G1 Apr 10 13:21:23 right Apr 10 13:21:32 change package names too Apr 10 13:23:03 chances are any instance where the contacts would pop up, itll give you the option to pick either app, new or old Apr 10 13:23:06 and you can set a default Apr 10 13:23:11 im curious though, whats the bug? Apr 10 13:23:36 the contacts makes wrong sort of chinese contacts Apr 10 13:23:38 name Apr 10 13:23:43 ah Apr 10 13:26:02 is it easy for me to use the eclipse to import the Phone and Contact application? or other easy ways? Apr 10 13:28:20 i havent tried i imagine its a bit of a pain Apr 10 13:28:28 i know messaging app was awful and i gave up Apr 10 13:28:41 cause the apps tend to use stuff thats not in the public sdk Apr 10 13:34:46 yes i think so Apr 10 13:34:56 maybe rewrite is better Apr 10 13:35:05 rewrite a simple but usable one Apr 10 16:57:28 Hmm, i after of hours of struggling with Eclipse, i decided to reinstall eclipe (and my jdk's), i finally got it working... So i got started with the tutorial, and all was good... i got to the 3rd exercise (Handling return button), and i had a small problem. So i tried to look at the solution source, but suddenly i started getting cannot be resolved errors about R and NotesDbAdapter on my source (And ctrl-shift-o does nothing) Apr 10 16:59:50 God? Zeus? Buddha? Someone... help? Apr 10 17:00:08 Juno? Apr 10 17:01:17 Joushou: what/ Apr 10 17:01:44 Getting cannot be resolved errors about NotesDbHelper and R in the NotePad tutorial Apr 10 17:02:07 Even though my code is identical to the supplied-and-working code :/ Apr 10 17:02:20 R isnt beind built for some reason Apr 10 17:02:48 That doesn't sound good to me... Apr 10 17:03:05 yeah :( Apr 10 17:03:08 the notepad tutorial sucks Apr 10 17:03:15 the notepad included with the sdk is better Apr 10 17:03:56 Well, i just needed something to start with to understand the concepts... but i'll look at that then... Apr 10 17:04:33 Just odd that 2 identical files gives different results... unless it gives errors based on the time-stamps :P Apr 10 17:04:47 "AHA! Time to annoy...! Apr 10 17:04:48 " Apr 10 17:04:59 But thanks anyway Apr 10 19:21:16 I'm having trouble with dx.. Apr 10 19:21:29 I have a jar that I tried to convert, but when I drop the new jar into my project, my classes aren't recognized Apr 10 19:27:06 ah hah, solution found. Just put the .jar in the assets/ directory Apr 10 19:45:37 Is there a way to get the stack trace from an exception on my phone? Apr 10 19:46:20 bdodson: adb logcat? Apr 10 19:46:41 nothing's showing up Apr 10 19:46:58 oh wait maybe I should check the main log :) Apr 10 19:46:58 hmm, never tried it with a G1, maybe its only for the emulator Apr 10 19:47:39 If you are debugging through eclipse you can set debuggable=true in the manifest to have the debugger connect to your phone Apr 10 19:48:36 yep, there it is =/ duh Apr 10 19:48:48 of course I have no clue what it means but that's another story Apr 10 19:48:48 bdodson: :) Apr 10 19:49:07 yeah, thats the fun part Apr 10 20:19:13 So my problem involves properties files in 3rd party jars Apr 10 20:19:29 anyone have a good reference for how to deal with that? There's an outstanding bug that seems somewhat helpful Apr 10 20:19:33 http://groups.google.com/group/android-developers/browse_thread/thread/f10e970aed37fbf7/d94692984b4dfeb9 Apr 10 20:20:15 http://code.google.com/p/android/issues/detail?id=173 Apr 10 21:27:11 I'm trying to read an xml file however all the example code i can find passes a stringreader to the setInput() function. how can I read an xml file in R.raw.xmlfile? Apr 10 21:40:24 phishinphree: don't you just use openRawResource("xmlfile") via your Resources object? Apr 10 21:41:00 that gives you an InputStream with the raw content of the resource Apr 10 22:38:54 is there a convenient way to rig up a mock locationprovider for testing purposes? googling "android mock locationprovider" doesn't seem to turn up much that works out of the box Apr 10 23:04:00 Anyone about that can help a noob? Apr 10 23:10:57 potentially, although doubtful :) Apr 10 23:15:18 i just dont understand how there are so many people in the room Apr 10 23:15:20 but noone here Apr 10 23:15:21 lol Apr 10 23:15:22 ah well Apr 10 23:15:43 okay Apr 10 23:15:51 tell me your issue again Apr 10 23:16:07 Nevermind. ive just C/P my files into a new project Apr 10 23:16:25 what i did was I created a new project from an existing one Apr 10 23:17:10 as per the tutorial's instructions Apr 10 23:17:22 and for some reason it was giving me a bunch of package names that contained errors Apr 11 01:04:36 useless channel Apr 11 01:04:43 this one? Apr 11 01:13:56 dude, have you ever been on irc before? Apr 11 01:34:21 my eclipse envrionment can't see any console messages now, any body encoutered such problem before? Apr 11 01:35:12 in the console window it's blank, and in the upper left corner there is a DDMS Apr 11 01:35:51 okay, i solved by clicking "choose selected console" button Apr 11 02:32:16 how do you go about changing which volume control is affected by default within an activity? Apr 11 02:32:32 i mean when the physical volume button is pressed. Apr 11 02:45:22 hey there Apr 11 02:45:53 is there a limit to the depth one can recurse? Apr 11 02:46:02 apart from the obvious memory one Apr 11 02:46:47 Just memory. Apr 11 02:46:59 thanks Apr 11 02:47:21 then I'm just using too much of it, even though it shouldn't really be THAT much Apr 11 02:47:24 If you're recursing more than twenty levels, or a really unpredictable depth, you probably want to rethink your algorithm. Apr 11 02:48:16 halley, yep. more than 20 level on a depth first maze algorithm I'm afraid Apr 11 02:48:35 I'll have to rewrite it without recursion then Apr 11 02:55:54 If I download the source, is there a way to just build the fastboot/adb/etc tools and not everything else easily? Apr 11 02:56:23 Wow, grammatically.. what I just said was a crime :( **** ENDING LOGGING AT Sat Apr 11 02:59:57 2009