**** BEGIN LOGGING AT Wed Apr 02 02:59:57 2008 Apr 02 03:23:18 is it correct that you currently can't know what the incoming call phone number is when i call occurs? Apr 02 03:23:57 jtoy: unfortunately, I believe that is the case Apr 02 03:24:15 that sucks Apr 02 03:24:20 THat's on the feature request list, and that reminds me that I need to track that down Apr 02 03:25:36 morrildl: can yo usend me the ticket/link if you find it? Apr 02 03:25:54 jtoy yeah, will do Apr 02 03:25:57 anyone working with xmlrpc services? Apr 02 03:26:10 thx Apr 02 03:37:38 is it possible to have a screen popup on incoming calls? Apr 02 03:50:48 Oo Apr 02 04:40:48 my friend is using a bundle as a hashtable, does that seem reasonable to you guys? Apr 02 04:41:24 it can be thought of an associative array that holds parcelable objects only. Apr 02 04:45:33 i told him it seems pretty wasteful to me, but i dont really know if thats true Apr 02 04:46:07 how do you mean? can you elaborate on how he is using it? Apr 02 04:48:28 he is using just like an associative array , as a lookup table as he is looping through contacts and phone numbers. why I thought it might be wasteful is because I thought bundle were jsut for passing data between activities/intents and so probably uses a lot of extra memory/overhead as opposed to some simpler associative array( which I dont know what one would use instead since we are both not very familiar with java) Apr 02 04:49:09 jtoy: HashMap is usually what's used for this Apr 02 04:49:52 romainguy: so I should let him use a bundle or tell him he is crazy? Apr 02 04:49:57 A Bundle would be unnecessarily restrictive for this purpose. Best to use a HashMap as romain suggested. Apr 02 04:50:15 jtoy: Bundle just has a narrower API Apr 02 04:50:21 it's less flexible than HashMap Apr 02 04:51:07 ok, we'll use hashmap then Apr 02 04:51:20 jtoy: It is also imprecise, which would confuse anyone reading your code. Apr 02 04:54:49 so far there are many different things i am liking/disliking between using android/iphone and ruby web backend Apr 02 04:56:26 Great? Apr 02 04:56:40 haha, great Apr 02 04:57:47 i/o looks cool Apr 02 04:58:09 yeah, i registered to go. my buddy lives down there so i figured it's a good excuse to go visit. Apr 02 04:58:38 :o Apr 02 04:58:48 pitty i live many miles away Apr 02 04:59:12 i live in Seattle, which is not very far relatively speaking. Apr 02 04:59:30 i was just in California last weekend too. quick 2 hour flight. Apr 02 05:02:56 i/o? Apr 02 05:12:37 sweet Apr 02 05:12:39 Lightroom 2.0 Apr 02 05:15:36 * jasta ponders the efficiency of local services Apr 02 05:16:44 are parcelables written/read in a local service instance or is memory shared in that case? Apr 02 05:19:22 is it possible to use a Toast in an IntentReceiver? Apr 02 05:20:41 unlikely; but, should you? Apr 02 05:21:17 IntentReceiver doesn't inherit from Context, so I cant seem to figure out how to use a Toast here Apr 02 05:22:00 jasta, I am trying to display a popup everytime a call comes in, how I have it setup is the intenetreceiver gets the notification then sends a popup Apr 02 05:23:44 why would you want to do that? Apr 02 05:24:04 a toast would be very annoying to happen when a call comes in Apr 02 05:24:46 mmm...toast Apr 02 05:25:14 there are many valid uses, for example, a quick check to a spam db that says "the incoming number is associated with spam/call marketers" or something like that Apr 02 05:26:00 that information would be much better used to either block the call, or to add to contact information on the incoming call view itself. Apr 02 05:26:04 marketers call cell phones now? Apr 02 05:26:14 they do here Apr 02 05:27:30 how about something like "the user is currently calling from NY" or something like that, there are some pieces of info someone would want to know about a live incoming call Apr 02 05:27:58 again, should *not* be displayed in a toast. Apr 02 05:28:10 anyway, how is the proper way for me to be able to display something from an intentreceiver? Apr 02 05:28:16 you would replace (or extend) the view being shown. Apr 02 05:28:28 the incoming call screen. Apr 02 05:28:47 that may be difficult using the current SDK, but that does not make using a Toast the right approach. Apr 02 05:28:59 ok, replacing/extending is fine, i didnt know you could extend though Apr 02 05:30:49 well, if its not really possible now, then temporarily for the contest, i think a toast is better than nothing Apr 02 06:40:21 'morning Apr 02 06:42:50 mornin Apr 02 07:33:31 Hi Andorid gurus !!!, does anyone know about any profiler or any API call to detect memory allocation, like total live objects, heap size, free size etc Apr 02 07:33:46 for android apps Apr 02 07:34:18 I want to monitor memory when my app runs Apr 02 07:44:14 is anybody there to help me out? Apr 02 07:52:07 niket, I think there might be something in the docs.... Apr 02 07:52:12 I don't recall offhand though Apr 02 07:52:38 thanks david....which docs I can look into Apr 02 08:16:15 Hi Andorid gurus !!!, does anyone know about any profiler or any API call to detect memory allocation, like total live objects, heap size, free size etc Apr 02 08:16:23 I want to monitor memory when my app runs Apr 02 08:16:28 is anybody there to help me out? Apr 02 08:16:56 niket, try googling for it... Apr 02 08:17:08 look at the archives of the android dev mailing list too Apr 02 08:17:20 I tried but didn't get any... Apr 02 08:19:20 no idea then... Apr 02 08:19:26 damn I wish the sources were available:-( Apr 02 11:44:08 hey can anyone tell me about tagging on maps in android Apr 02 11:46:02 hello Apr 02 11:47:52 anyone Apr 02 11:52:25 anyone in layers here Apr 02 11:53:27 sandesh what do you need Apr 02 12:16:21 acsia Apr 02 12:16:25 u there Apr 02 12:16:51 i want to tag my track Apr 02 12:17:09 add some tag to track Apr 02 12:18:25 what do you mean tag? Apr 02 12:18:31 overlay you mean? Apr 02 12:18:41 also want to mark a track it is just moving its not drawing a track Apr 02 12:18:41 acsia: Apr 02 12:19:51 you need to create an overlay, there is a lot of exemple out there Apr 02 12:19:52 http://www.anddev.org/viewforum.php?f=18 Apr 02 12:23:42 tag means layering text on map Apr 02 12:24:00 sandesh: you use the Overlay class to create text/image overlays Apr 02 12:24:13 any examples Apr 02 12:24:23 I think acsia just linked to one Apr 02 12:24:27 ok Apr 02 13:47:11 any idea why an imageview gets 'overwritten' by a textview that follows it? Apr 02 13:51:24 I guess it's pretty likely that m5-rc15 is the latest SDK we see before the April14 deadline, right? Apr 02 14:03:30 probably Apr 02 14:04:09 in a ContentProvider, I don't see update working Apr 02 14:04:10 ... Apr 02 14:04:26 any ideas? I put a log in the update function but never seems to be callsed Apr 02 14:04:28 called Apr 02 14:04:51 I am not going crazy by saying that a commitUpdate will call the update function in contentProvider? Apr 02 14:34:54 when is update called within a ContentProvider? Apr 02 14:55:50 Can anybody help? I am really struggling on this... willl commitUpdates call update in the content provider? Apr 02 14:56:03 acsia: when a cursor's updates are committed, or mContent.update is called. Apr 02 14:56:41 actually, commitUpdates may not call update. In fact, it probably doesn't. Apr 02 14:56:47 then I think I am going mental Apr 02 14:56:49 You could easily test, however. Apr 02 14:56:52 it does not look like it Apr 02 14:57:18 well I put Log.i("MyLog", "update"); first line of updae in contentProvider and it is never called Apr 02 14:57:39 but then I don t see the usage of update in ContentProvider Apr 02 14:57:56 and the doc seems to point that it should be used to update the Cursor Apr 02 14:58:19 how would I then access the data just before it is being saved back to the db? Apr 02 15:00:00 well, have you tested for sure that update is not invoked? Apr 02 15:00:53 it would be a simple thing to test, I'd think. Apr 02 15:01:03 yes Apr 02 15:01:15 the update and delete don't work as it seems Apr 02 15:01:34 then i suppose your only option would be to extend a cursor and return that from query. Apr 02 15:01:43 as you said, I put a log in both the update and delete and none is called whenever I update or delete a row Apr 02 15:01:52 arf Apr 02 15:02:06 I want to cry Apr 02 15:02:47 why? is extending a cursor hard for you? Apr 02 15:03:35 are you sure the log is working? Apr 02 15:03:47 have you tried just setting a breakpoint? Apr 02 15:04:08 yeah, I am actually suspicious that your technique is flawed as well. I think that commitUpdates calls update on the ContentProvider. Apr 02 15:04:13 but I have not confirmed it. Apr 02 15:04:31 wasn't the new sdk supposed to come out today? Apr 02 15:04:54 today, April 2nd? ;) Apr 02 15:07:04 a breakpoint crashed my app... Apr 02 15:07:11 ? Apr 02 15:08:02 let me try again Apr 02 15:08:12 If you are using Eclipse, close the variables view in the debug perspective. Apr 02 15:08:23 There is a bug in JWDP that can cause that to happen. Apr 02 15:09:22 3rd try then thx Apr 02 15:09:56 nope Apr 02 15:10:07 it crashes? Apr 02 15:10:10 how so does it crash your app? what does adb logcat say? Apr 02 15:10:12 yes Apr 02 15:10:46 (btw, i'm not sure i believe that you closed the variables view) Apr 02 15:11:13 haha I did yes but the log seems to indicate some issues with ParcelFileDescriptor Apr 02 15:11:18 I am using it so save files Apr 02 15:11:29 let me try with a very simple app Apr 02 15:11:41 again, how does it crash your app? Apr 02 15:12:24 do you understand my question? Apr 02 15:12:54 it closes my application Apr 02 15:13:01 in the log I have APP DEATH Apr 02 15:13:15 any fatal signal? Apr 02 15:13:18 WIN DEATH Apr 02 15:13:39 use adb logcat on the command-line. do you see your app receiving SIGSEGV? Apr 02 15:13:39 sigfault Apr 02 15:13:41 INFO/DEBUG(494): signal 11 (SIGSEGV), fault addr deadd00d Apr 02 15:13:53 yes, then are you *sure* you disabled the variables view? Apr 02 15:14:09 well I closed the window for sure Apr 02 15:14:31 then i cannot say. Apr 02 15:14:51 hey can anyone answer me this java.lang.reflect.constructor eroor Apr 02 15:15:11 acsia: http://code.google.com/p/android/issues/detail?id=501 -- that's why i ask. Apr 02 15:15:15 but it seems not related, I mean the crash seems to come from the parcel creator Apr 02 15:15:44 why do you say that? Apr 02 15:15:59 UPS man keeps unplugging the computer Apr 02 15:16:22 sorry, couldn't resist Apr 02 15:16:32 jasta, could it be friday then? Apr 02 15:18:11 ERROR/dalvikvm(1379): HeapWorker is wedged: 16561ms spent inside Landroid/os/ParcelFileDescriptor$AutoCloseInputStream;.finalize()V Apr 02 15:18:23 that is the last error before the fault Apr 02 15:18:39 ahh yes, that does seem unrelated. Apr 02 15:18:47 but I did a tr Apr 02 15:19:03 mike1o: I'm saying, what evidence do you have to suggest that a release was going to be made the day after April Fools? :) Apr 02 15:19:16 y on a edit which does not involve the file descriptor and update does not seem to be called Apr 02 15:19:23 jasta, maybe this is the April Fool Apr 02 15:19:33 Best I can tell, there have been only rumors that a release was coming before the challenge, none confirmed by Android engineers or developer advocates. Apr 02 15:20:02 jasta, I just heard a week ago that a new release was coming out in a week :) totally unofficial though Apr 02 15:20:15 Right, and where did they hear it? :) Apr 02 15:20:32 * B0jangles thinks jasta made it up Apr 02 15:20:41 eheh Apr 02 15:20:44 Sort of :) Apr 02 15:20:57 I've heard this too Apr 02 15:21:00 maybe they meant m15? Apr 02 15:21:09 * zhobbs thinks next release will be after the 14th...but who knows Apr 02 15:21:58 I had thought a release was coming, but Dan Morril has explained that even if one was coming, it would contain only bug fixes and such. Apr 02 15:22:50 yeah, I could see that...just a bug fix release to make the ADC judging/testing go smoother Apr 02 15:23:03 similar to what I heard Apr 02 15:23:07 except that we already wrote our apps to work around the bugs Apr 02 15:23:30 heh, yeah, I have comments pointing to a bunch of bug reports Apr 02 15:24:02 we have? Apr 02 15:24:17 lol Apr 02 15:24:17 I personally have just ignored a lot of the bugs; not worked around them. Apr 02 15:24:29 I just close my eyes Apr 02 15:24:32 I've had to work around a lot of GPS bugs Apr 02 15:24:42 B0jangles: gps bugs such as? Apr 02 15:25:10 for instance, one of the GPS functions throws an exception every time you call it Apr 02 15:25:14 I forget which one offhand Apr 02 15:25:18 gotta work around my bugs :) Apr 02 15:25:27 so I still call it, but it's in a try/catch block Apr 02 15:25:31 with my workaround in the catch Apr 02 15:26:15 I figure that way, if they fix it, it'll work Apr 02 15:26:21 if they don't fix it, it'll work Apr 02 15:26:46 which one? I'm curious because I'm hitting walls on gps Apr 02 15:27:09 hang on, I'll look Apr 02 15:27:53 http://code.google.com/p/android/issues/detail?id=462&can=4&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary Apr 02 15:28:28 bah, seriously? :| Apr 02 15:28:31 * Kraln fixes code Apr 02 15:28:35 lol Apr 02 15:37:09 I might try another approach, how about contentObserver. that seems to work on updates but then I don t have the Uri... Apr 02 15:40:00 content observers primarily exist to facilitate refreshing the UI. it would not be a good place to track granular changes. Apr 02 15:40:14 an extended cursor would be more than capable, i am not sure why you avoid that approach. Apr 02 15:40:42 also, i still think update() is fired when commitUpdates is called. Apr 02 15:41:03 I would demonstrate that to be true, but I can't be bothered right now :) Apr 02 15:42:19 hey jasta are you working with web services? Apr 02 15:42:39 no Apr 02 15:43:55 acsia: Looking at SQLiteCursor.java, however, I suspect that extending a cursor would be your only way. But it should be very easy. Apr 02 15:44:32 you could easily just override deleteRow and commitUpdates. Apr 02 15:44:57 the problem is that I want to create a pluggable framework so I am creating an interface to ContentProvider Apr 02 15:45:19 Creating a cursor will be more intrusif Apr 02 15:45:34 right but, i'm looking at the code right now, it won't call the content provider. Apr 02 15:45:44 perhaps your only option then is to file a feature request and wait. Apr 02 15:45:45 but I ll find a way I guess, there are a couple of ways but the update method seemed the obvious one Apr 02 15:46:05 I dont really understand the role of update then on ContentProvider Apr 02 15:46:23 for updates performed without a cursor. Apr 02 15:47:04 yes Apr 02 15:47:12 well.. Apr 02 15:47:34 I ll grab a tea and attach the idea differently then Apr 02 15:47:42 it s a bit of pain thought Apr 02 15:47:55 for instance the delete does not 'work' either Apr 02 15:48:13 and I save files so I would like to delete all files corresponding to a uri Apr 02 15:48:28 instead of doing it each time I get a cursor and I delete it... Apr 02 15:48:31 oh well Apr 02 16:19:14 jasta: I ll create my own cursor... Apr 02 16:19:22 the tea is speaking Apr 02 16:23:50 all you'd have to do is extend and override 2 functions. should be very simple. Apr 02 16:35:58 a well I don t have access to the uri within a cursor... Apr 02 16:36:11 so ContentResolver.update(uri....) Apr 02 16:36:15 can not be used Apr 02 16:36:43 uhm, what is wrong with your brain today? :) Apr 02 16:37:16 class MyCursor extends Cursor { public MyCursor(Uri uri, ...) { super(...); mUri = uri; } ... Apr 02 16:37:53 hahahaha Apr 02 16:38:04 what? Apr 02 16:38:04 I think I need to stop for a bit :) Apr 02 16:38:09 yeah, me too. Apr 02 16:45:57 * bilboed-tp shooting himself in the foot while trying to teach autotools how to use the arm-linux-gnueabi toolchain Apr 02 16:50:08 damn Apr 02 16:50:11 it's snowing.... Apr 02 16:50:51 using autotools is as painful as shooting yourself in numerous body parts Apr 02 16:50:58 no Apr 02 16:51:18 trying to teach it this retarded android no-it-is-not-open framework is painful Apr 02 16:52:19 s/framework/system/ Apr 02 16:52:20 bilboed-tp meant: trying to teach it this retarded android no-it-is-not-open system is painful Apr 02 16:52:40 *sigh* Apr 02 17:15:30 Hi all, have a few questions: Apr 02 17:16:12 1. Are there any Unit Testing Frameworks that can be used with Android and its development Apr 02 17:17:21 2. Can Javadoc or similar app be used with Android development (I am assuming yes as it's still Java thats being programmed in) Apr 02 17:18:53 3. Are there any documents with technical specs for Android yet along the lines of number of simultaneous TCP connections etc Apr 02 17:23:44 Smoke: have you looked at instrumentation? Apr 02 17:25:10 smoke: http://code.google.com/android/reference/junit/framework/package-summary.html Apr 02 17:25:29 not sure if it works all the way as I heard people having issues Apr 02 17:25:38 secondly javadoc yes, annotation no Apr 02 17:26:00 for the third question well not really as it will probably be more hardware related then software (limitation that is) Apr 02 17:30:59 thanks sorry for the irritating but its in the documentation questions but still working my way through it all but have a project proposal deadline coming up so needed the Cliff Notes Apr 02 17:32:09 So for 3 does that mean the emulator should be able to do most things a PC does Apr 02 17:32:35 for the network connection at least Apr 02 17:32:53 and whatever speed like 3G you choose Apr 02 17:34:18 muthu: Sorry not too sure where instrumentation is in the documentation Apr 02 17:57:22 smoke: more or less yes Apr 02 17:57:47 search instrumentation in the google code page and there is a bit of information Apr 02 17:59:05 is it normal for socket to return null if you feed it a dotted ip address? Apr 02 17:59:17 it doesn't throw an exception - just returns null Apr 02 18:08:34 morrildl: will the judges have mp3 files to test media players? Apr 02 18:22:04 in a content observer what is the role of the handler? Apr 02 18:22:07 anybody knows? Apr 02 21:43:09 i just had an interesting idea Apr 02 21:43:16 it would be really great if the emulator could simulate power draw / battery life Apr 02 21:43:37 dalvik could actually do this reasonably well, by simply observing instructions Apr 02 21:43:47 but it would be much cooler to implement it at the kernel layer. Apr 02 21:45:11 well you potentially could Apr 02 21:45:26 somebody managed a native helloworld Apr 02 21:45:36 for using GPS, are there any other relevant permissions than ACCESS_LOCATION, ACCESS_GPS, ACCESS_ASSISTED_GPS, and ACCESS_CELL_ID? Apr 02 21:45:37 yes, many people. Apr 02 21:46:24 getFromLocation always throws an IOException for me...I just want to make sure it's not my fault Apr 02 21:46:32 I think I have all of the necessary permissions set Apr 02 21:47:28 IOException is probably not related to permissions Apr 02 21:47:32 okay Apr 02 21:47:37 well you would see it in the log Apr 02 21:47:48 oh, does it log it/ Apr 02 21:47:49 ? Apr 02 21:47:53 i'll look Apr 02 21:56:00 B0jangles, it almost seems like the mock file the Geocoder class is looking for doesn't exist for some reason Apr 02 21:56:21 raidfive: maybe we're supposed to create it? Apr 02 21:56:41 raidfive: I think you're probably right Apr 02 21:57:19 /data/misc/location/geodb Apr 02 21:57:23 that is the default file Apr 02 21:57:46 if the emulator can't find it, it will toss that IOException Apr 02 21:58:17 how do you load it into the emulator? Apr 02 21:58:42 do you not have that file in the os file system? Apr 02 21:58:58 do you know how to check? Apr 02 21:59:03 I've no idea Apr 02 21:59:05 nope Apr 02 21:59:13 are you using the eclipse plugin? Apr 02 21:59:15 yeah Apr 02 21:59:27 switch to the DDMS perspective Apr 02 21:59:44 okay Apr 02 21:59:51 oh Apr 02 21:59:53 heh ;-) Apr 02 21:59:58 File Explorer :) Apr 02 22:00:15 I do have a geodb file Apr 02 22:00:22 strange Apr 02 22:00:32 how do I see what's in it? Apr 02 22:00:51 I don't seem to be able to open the file or anything Apr 02 22:00:58 in the upper right hand corner there is an icon to pull the selected file from the os Apr 02 22:01:05 as well as push a file Apr 02 22:01:13 ah hah! Apr 02 22:01:39 I edited that file with my own locations and pushed it back to the file system recently Apr 02 22:01:42 works fine Apr 02 22:01:59 but I'm still not sure about the IOException you are getting Apr 02 22:02:05 latest sdk? Apr 02 22:02:10 yes, latest sdk Apr 02 22:02:51 you're using getFromLocation? Apr 02 22:03:22 getFromLocationName() actually Apr 02 22:03:37 I wonder if getFromLocationName works, but getFromLocation doesn't... Apr 02 22:04:14 it is possible ... checked the issue list lately? Apr 02 22:04:35 Well, there's a bug report, but I'm the one that made it ;-) Apr 02 22:04:56 hasn't been approved yet, though Apr 02 22:06:53 hmm yea, I see another bug listed for getFromLocation() also Apr 02 22:07:02 but that is a different situation Apr 02 22:07:05 URL? Apr 02 22:07:35 http://code.google.com/p/android/issues/detail?id=427 Apr 02 22:07:48 not the same issue though Apr 02 22:08:01 but it does look like that method is borked :) Apr 02 22:08:02 huh. but apparently it's not throwing an exception Apr 02 22:08:43 I wonder if it's because I've put it in a clas Apr 02 22:08:46 *class Apr 02 22:09:02 do I need to pass it a context somehow or something? Apr 02 22:09:31 want to link your code via pastie or something for me? Apr 02 22:09:58 what's the site people use for that? Apr 02 22:10:17 oh pastebin Apr 02 22:10:19 hang on Apr 02 22:10:47 there are multiple ones Apr 02 22:11:33 here you go: http://pastebin.com/d20af8da9 Apr 02 22:18:27 nothing is standing out Apr 02 22:18:33 yeah ;-) Apr 02 22:18:38 tx for looking, though Apr 02 22:19:08 hopefully someone responds to your bug report soon Apr 02 22:19:15 I hope so Apr 02 23:51:34 B0jangles: check http://androforge.net/gf/project/androlib/scmsvn/?action=browse&path=%2Ftrunk%2Fsrc%2Fnet%2Fandroforge%2Fwidget%2FLocationDialog.java&view=markup Apr 03 01:19:51 soo... anyone know how to programatically set the layout_span of a View inside a TableRow? :) Apr 03 01:23:25 yes Apr 03 01:23:31 just use the TableRow.LayoutParams Apr 03 01:25:29 great, thanks romain **** ENDING LOGGING AT Thu Apr 03 02:59:57 2008