00:01.07 | *** join/#android tauren (n=tauren@pool-72-90-102-62.ptldor.fios.verizon.net) |
00:11.30 | *** join/#android pombreda (n=pombreda@c-67-180-198-25.hsd1.ca.comcast.net) |
00:28.04 | *** join/#android yango (n=yango@unaffiliated/yango) |
00:28.39 | jasta | romainguy_: have you guys thought about adding some padding short-hand like CSS does? |
00:28.53 | jasta | so you could specify padding="top right bottom left" or padding="top/bottom left/right" |
00:33.41 | zhobbs | or margin="t r b l" |
00:34.33 | f00f- | whatäs the differe |
00:35.27 | zhobbs | margin is space between view1 and it's neighbors, padding is the padded space inside view1 |
00:35.38 | zhobbs | you can really see the different with a button |
00:35.56 | jasta | i think he meant, isn't that obvious? :) |
00:36.06 | f00f- | so you want linearlayout's padding with relativelayout's left/right/bottm/up stuff |
00:36.27 | jasta | f00f-: no, he's just projecting that if padding had that, so should margin. |
00:36.39 | jasta | which to me seems obvious |
00:36.47 | f00f- | ok |
00:47.51 | *** join/#android morrildl (n=chatzill@76-217-210-185.lightspeed.sntcca.sbcglobal.net) |
00:48.42 | acsia | is it possible to get the cursor from within a contentobserver? |
00:49.40 | jasta | no, you'd need to extend it if you needed that for some reason. |
00:52.09 | acsia | well I want to log my insert/update/delete method from my contentProvider |
00:52.33 | acsia | so I am wondering the best way to do so |
00:52.43 | jasta | uhm, the best way would be to log them. |
00:53.00 | jasta | i would place that logging in the insert, update, and delete methods myself. |
00:53.21 | acsia | well I am not sure about the ContentProvider itself |
00:53.29 | acsia | it will be dynamic |
00:53.42 | acsia | I am writing some kind of pluggable system |
00:53.59 | acsia | so I need to execute some code just before the insert - for instance - returns |
00:55.50 | acsia | I could create my method and enforce the fact that each plugin needs to call my method within the interface but it is just a bit to intrusif... |
00:56.08 | jasta | you have no choice but to do it in the provider... |
00:56.39 | acsia | well I could create byte code injection :) but at the same time just a bit less then 2 weeks... |
00:58.06 | acsia | have you tried the SyncAdapter? |
00:58.13 | acsia | It might be a good choice here actually |
00:59.51 | *** join/#android inZane- (i=nemo@dslb-084-058-002-212.pools.arcor-ip.net) |
01:18.33 | *** join/#android pombreda (n=pombreda@c-67-180-198-25.hsd1.ca.comcast.net) |
01:47.02 | *** join/#android matt_c (n=mcroydon@137.147.45.66.cm.sunflower.com) |
01:54.03 | *** join/#android The_PHP_Jedi (n=ThePHPJe@unaffiliated/thephpjedi/x-000002) |
02:21.47 | *** join/#android yakischloba (n=jake@c-24-17-53-185.hsd1.mn.comcast.net) |
02:31.16 | *** join/#android michael (n=nov@ool-18ba6e83.dyn.optonline.net) |
02:31.43 | michael | hey there |
02:33.25 | *** part/#android michael (n=nov@ool-18ba6e83.dyn.optonline.net) |
02:33.59 | *** join/#android michaelnovakjr (n=nov@ool-18ba6e83.dyn.optonline.net) |
02:34.14 | michaelnovakjr | hey there |
02:40.26 | michaelnovakjr | anyone work with xmlrpc services with android yet? |
03:04.57 | *** join/#android bkpavan (n=pavan@ool-18e45c92.dyn.optonline.net) |
03:05.34 | *** join/#android Dan_U (n=Dan@72-173-63-190.cust.wildblue.net) |
03:12.28 | *** join/#android jtoy (n=jtoy@121.32.170.75) |
03:22.49 | *** mode/#android [+o morrildl] by ChanServ |
03:22.56 | *** topic/#android by morrildl -> Google I/O and Android: http://code.google.com/events/io/ I, for one, welcome our new robotic overlords. |
03:23.18 | jtoy | is it correct that you currently can't know what the incoming call phone number is when i call occurs? |
03:23.57 | morrildl | jtoy: unfortunately, I believe that is the case |
03:24.15 | jtoy | that sucks |
03:24.20 | morrildl | THat's on the feature request list, and that reminds me that I need to track that down |
03:25.36 | jtoy | morrildl: can yo usend me the ticket/link if you find it? |
03:25.38 | *** join/#android muthu (n=sara@59.92.4.86) |
03:25.54 | morrildl | jtoy yeah, will do |
03:25.57 | michaelnovakjr | anyone working with xmlrpc services? |
03:26.10 | jtoy | thx |
03:37.38 | jtoy | is it possible to have a screen popup on incoming calls? |
03:46.57 | *** join/#android Dralspire (n=dralspir@199-96.126-70.tampabay.res.rr.com) |
03:49.13 | *** join/#android rch850 (n=rch850@c220090.ppp.asahi-net.or.jp) |
03:50.35 | *** join/#android monitox (i=ircap@adsl-135-234.click.com.py) |
03:50.48 | monitox | Oo |
03:51.02 | *** part/#android monitox (i=ircap@adsl-135-234.click.com.py) |
04:38.36 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) |
04:40.48 | jtoy | my friend is using a bundle as a hashtable, does that seem reasonable to you guys? |
04:41.24 | jasta | it can be thought of an associative array that holds parcelable objects only. |
04:45.33 | jtoy | i told him it seems pretty wasteful to me, but i dont really know if thats true |
04:46.07 | jasta | how do you mean? can you elaborate on how he is using it? |
04:48.01 | *** join/#android duey (n=Nick@203.96.223.40) |
04:48.28 | jtoy | 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) |
04:49.09 | romainguy | jtoy: HashMap is usually what's used for this |
04:49.52 | jtoy | romainguy: so I should let him use a bundle or tell him he is crazy? |
04:49.57 | jasta | A Bundle would be unnecessarily restrictive for this purpose. Best to use a HashMap as romain suggested. |
04:50.15 | romainguy | jtoy: Bundle just has a narrower API |
04:50.21 | romainguy | it's less flexible than HashMap |
04:51.07 | jtoy | ok, we'll use hashmap then |
04:51.20 | jasta | jtoy: It is also imprecise, which would confuse anyone reading your code. |
04:54.49 | jtoy | so far there are many different things i am liking/disliking between using android/iphone and ruby web backend |
04:56.26 | jasta | Great? |
04:56.40 | jtoy | haha, great |
04:57.47 | duey | i/o looks cool |
04:58.09 | jasta | yeah, i registered to go. my buddy lives down there so i figured it's a good excuse to go visit. |
04:58.38 | duey | :o |
04:58.48 | duey | pitty i live many miles away |
04:59.12 | jasta | i live in Seattle, which is not very far relatively speaking. |
04:59.31 | jasta | i was just in California last weekend too. quick 2 hour flight. |
05:02.56 | jtoy | i/o? |
05:12.37 | romainguy | sweet |
05:12.39 | romainguy | Lightroom 2.0 |
05:15.36 | jasta | ponders the efficiency of local services |
05:15.55 | *** join/#android hoopla (n=mark@lycaon.cs.csubak.edu) |
05:16.44 | jasta | are parcelables written/read in a local service instance or is memory shared in that case? |
05:19.22 | jtoy | is it possible to use a Toast in an IntentReceiver? |
05:20.42 | jasta | unlikely; but, should you? |
05:21.17 | jtoy | IntentReceiver doesn't inherit from Context, so I cant seem to figure out how to use a Toast here |
05:22.00 | jtoy | 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 |
05:23.44 | jasta | why would you want to do that? |
05:23.51 | *** join/#android pandora-- (n=pandora@cpe-76-172-208-63.socal.res.rr.com) |
05:24.04 | jasta | a toast would be very annoying to happen when a call comes in |
05:24.46 | B0jangles | mmm...toast |
05:25.14 | jtoy | 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 |
05:26.00 | jasta | that information would be much better used to either block the call, or to add to contact information on the incoming call view itself. |
05:26.04 | duey | marketers call cell phones now? |
05:26.14 | jtoy | they do here |
05:27.30 | jtoy | 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 |
05:27.58 | jasta | again, should *not* be displayed in a toast. |
05:28.10 | jtoy | anyway, how is the proper way for me to be able to display something from an intentreceiver? |
05:28.16 | jasta | you would replace (or extend) the view being shown. |
05:28.28 | jasta | the incoming call screen. |
05:28.47 | jasta | that may be difficult using the current SDK, but that does not make using a Toast the right approach. |
05:28.59 | jtoy | ok, replacing/extending is fine, i didnt know you could extend though |
05:30.49 | jtoy | well, if its not really possible now, then temporarily for the contest, i think a toast is better than nothing |
05:44.28 | *** join/#android cutmasta (n=cutmasta@62.225.134.181) |
06:16.03 | *** join/#android davidw (n=davidw@chello212186016224.tirol.surfer.at) |
06:22.37 | *** join/#android vniles (n=vniles@203.193.154.146) |
06:24.37 | *** join/#android Beryllium (n=berylliu@S01060018f8f93bda.gv.shawcable.net) |
06:25.12 | *** join/#android eton (n=eton@ppp-58-8-211-215.revip2.asianet.co.th) |
06:40.21 | davidw | 'morning |
06:42.50 | cutmasta | mornin |
07:10.08 | *** join/#android tlockney (n=tlockney@70-59-129-252.ptld.qwest.net) |
07:15.46 | *** join/#android Mathiasdm (n=Mathias@78-22-5-158.access.telenet.be) |
07:32.07 | *** join/#android niket (n=niket@c-76-28-174-245.hsd1.wa.comcast.net) |
07:33.31 | niket | 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 |
07:33.46 | niket | for android apps |
07:34.18 | niket | I want to monitor memory when my app runs |
07:44.01 | *** join/#android zoolooc (n=lucian@nrbg-4dbfa509.pool.einsundeins.de) |
07:44.14 | niket | is anybody there to help me out? |
07:52.07 | davidw | niket, I think there might be something in the docs.... |
07:52.12 | davidw | I don't recall offhand though |
07:52.38 | niket | thanks david....which docs I can look into |
07:59.27 | *** join/#android rch850_ (n=rch850@c220090.ppp.asahi-net.or.jp) |
08:01.54 | *** join/#android ruxpin (n=pkunk@195.148.225.17) |
08:16.15 | niket | 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 |
08:16.23 | niket | I want to monitor memory when my app runs |
08:16.28 | niket | is anybody there to help me out? |
08:16.56 | davidw | niket, try googling for it... |
08:17.08 | davidw | look at the archives of the android dev mailing list too |
08:17.20 | niket | I tried but didn't get any... |
08:19.20 | davidw | no idea then... |
08:19.26 | davidw | damn I wish the sources were available:-( |
08:36.07 | *** join/#android muthu (n=sara@59.92.10.43) |
08:50.42 | *** join/#android eton (n=eton@ppp-58-8-211-215.revip2.asianet.co.th) |
09:00.00 | *** join/#android acsia (n=acsia@host86-161-119-76.range86-161.btcentralplus.com) |
09:04.38 | *** part/#android muthu (n=sara@59.92.10.43) |
09:10.51 | *** join/#android AhtiK (n=ahti@194.204.31.19) |
10:33.36 | *** join/#android mypapit (n=mypapit@pdpc/supporter/active/mypapit) |
11:30.16 | *** join/#android Mathiasdm (n=Mathias@78-22-5-158.access.telenet.be) |
11:43.18 | *** join/#android sandesh (n=sandesh@122.169.57.211) |
11:44.08 | sandesh | hey can anyone tell me about tagging on maps in android |
11:45.44 | *** join/#android sandesh (n=sandesh@122.169.57.211) |
11:46.02 | sandesh | hello |
11:47.52 | sandesh | anyone |
11:52.25 | sandesh | anyone in layers here |
11:53.27 | acsia | sandesh what do you need |
12:00.25 | *** join/#android cutmasta_ (n=cutmasta@62.225.134.181) |
12:07.52 | *** join/#android o3u (n=slim@modemcable095.170-70-69.mc.videotron.ca) |
12:16.21 | sandesh | acsia |
12:16.25 | sandesh | u there |
12:16.51 | sandesh | i want to tag my track |
12:17.09 | sandesh | add some tag to track |
12:18.25 | acsia | what do you mean tag? |
12:18.31 | acsia | overlay you mean? |
12:18.41 | sandesh | also want to mark a track it is just moving its not drawing a track |
12:18.41 | sandesh | acsia: |
12:19.37 | *** join/#android eton (n=eton@ppp-58-8-93-120.revip2.asianet.co.th) |
12:19.51 | acsia | you need to create an overlay, there is a lot of exemple out there |
12:19.52 | acsia | http://www.anddev.org/viewforum.php?f=18 |
12:20.19 | *** join/#android yeonhoo (n=yeonhoo@200.203.253.121) |
12:23.42 | sandesh | tag means layering text on map |
12:24.00 | zhobbs | sandesh: you use the Overlay class to create text/image overlays |
12:24.13 | sandesh | any examples |
12:24.23 | zhobbs | I think acsia just linked to one |
12:24.27 | sandesh | ok |
12:29.56 | *** join/#android krau (n=cktakaha@200.184.118.132) |
12:53.59 | *** join/#android jtoy (n=jtoy@125.31.234.200) |
13:00.40 | *** join/#android bilboed-tp (n=bilboed@89.129.157.41) |
13:21.26 | *** part/#android vniles (n=vniles@203.193.154.146) |
13:23.06 | *** join/#android matt_c (n=mcroydon@gozur.sunflowerbroadband.com) |
13:47.11 | davidw | any idea why an imageview gets 'overwritten' by a textview that follows it? |
13:51.24 | AhtiK | I guess it's pretty likely that m5-rc15 is the latest SDK we see before the April14 deadline, right? |
13:55.09 | *** join/#android mluser-work (n=mluser-w@208.178.12.226) |
14:03.31 | acsia | probably |
14:04.09 | acsia | in a ContentProvider, I don't see update working |
14:04.10 | acsia | ... |
14:04.26 | acsia | any ideas? I put a log in the update function but never seems to be callsed |
14:04.28 | acsia | called |
14:04.51 | acsia | I am not going crazy by saying that a commitUpdate will call the update function in contentProvider? |
14:14.11 | *** join/#android aksyn (n=aksyn@78.86.127.226) |
14:16.40 | *** join/#android notjohn (n=notjohn@216.68.73.132) |
14:24.09 | *** join/#android eton (n=eton@ppp-58-8-211-215.revip2.asianet.co.th) |
14:25.17 | *** join/#android Adys (n=Adys@APoitiers-257-1-68-132.w86-205.abo.wanadoo.fr) |
14:29.34 | *** join/#android morrildl (n=chatzill@nat/google/x-0cb2fdb81ec48615) |
14:30.46 | *** join/#android yakischloba (n=jake@c-24-17-53-185.hsd1.mn.comcast.net) |
14:33.39 | *** join/#android f00f- (i=f00f@virusexperts.com) |
14:34.54 | acsia | when is update called within a ContentProvider? |
14:42.10 | *** join/#android Kuja (n=Kuja@fsustudent.frostburg.edu) |
14:45.36 | *** join/#android morrildl_ (n=chatzill@nat/google/x-fefb6c089fb4ebb5) |
14:55.50 | acsia | Can anybody help? I am really struggling on this... willl commitUpdates call update in the content provider? |
14:56.03 | jasta | acsia: when a cursor's updates are committed, or mContent.update is called. |
14:56.41 | jasta | actually, commitUpdates may not call update. In fact, it probably doesn't. |
14:56.47 | acsia | then I think I am going mental |
14:56.49 | jasta | You could easily test, however. |
14:56.52 | acsia | it does not look like it |
14:57.18 | acsia | well I put Log.i("MyLog", "update"); first line of updae in contentProvider and it is never called |
14:57.39 | acsia | but then I don t see the usage of update in ContentProvider |
14:57.51 | *** join/#android The_PHP_Jedi (n=ThePHPJe@unaffiliated/thephpjedi/x-000002) |
14:57.56 | acsia | and the doc seems to point that it should be used to update the Cursor |
14:58.19 | acsia | how would I then access the data just before it is being saved back to the db? |
15:00.00 | jasta | well, have you tested for sure that update is not invoked? |
15:00.53 | jasta | it would be a simple thing to test, I'd think. |
15:01.03 | acsia | yes |
15:01.15 | acsia | the update and delete don't work as it seems |
15:01.34 | jasta | then i suppose your only option would be to extend a cursor and return that from query. |
15:01.43 | acsia | as you said, I put a log in both the update and delete and none is called whenever I update or delete a row |
15:01.52 | acsia | arf |
15:02.06 | acsia | I want to cry |
15:02.47 | jasta | why? is extending a cursor hard for you? |
15:03.35 | B0jangles | are you sure the log is working? |
15:03.47 | B0jangles | have you tried just setting a breakpoint? |
15:03.54 | *** join/#android mike1o (n=mike@87.8.37.126) |
15:04.08 | jasta | yeah, I am actually suspicious that your technique is flawed as well. I think that commitUpdates calls update on the ContentProvider. |
15:04.13 | jasta | but I have not confirmed it. |
15:04.31 | mike1o | wasn't the new sdk supposed to come out today? |
15:04.55 | jasta | today, April 2nd? ;) |
15:07.04 | acsia | a breakpoint crashed my app... |
15:07.11 | B0jangles | ? |
15:08.02 | acsia | let me try again |
15:08.12 | jasta | If you are using Eclipse, close the variables view in the debug perspective. |
15:08.23 | jasta | There is a bug in JWDP that can cause that to happen. |
15:09.22 | acsia | 3rd try then thx |
15:09.56 | acsia | nope |
15:10.07 | B0jangles | it crashes? |
15:10.10 | jasta | how so does it crash your app? what does adb logcat say? |
15:10.12 | acsia | yes |
15:10.46 | jasta | (btw, i'm not sure i believe that you closed the variables view) |
15:11.02 | *** join/#android Kraln (n=Kuja@fsustudent.frostburg.edu) |
15:11.13 | acsia | haha I did yes but the log seems to indicate some issues with ParcelFileDescriptor |
15:11.18 | acsia | I am using it so save files |
15:11.29 | acsia | let me try with a very simple app |
15:11.41 | jasta | again, how does it crash your app? |
15:12.24 | jasta | do you understand my question? |
15:12.54 | acsia | it closes my application |
15:13.01 | acsia | in the log I have APP DEATH |
15:13.15 | jasta | any fatal signal? |
15:13.18 | acsia | WIN DEATH |
15:13.39 | jasta | use adb logcat on the command-line. do you see your app receiving SIGSEGV? |
15:13.39 | acsia | sigfault |
15:13.41 | acsia | INFO/DEBUG(494): signal 11 (SIGSEGV), fault addr deadd00d |
15:13.53 | jasta | yes, then are you *sure* you disabled the variables view? |
15:14.09 | acsia | well I closed the window for sure |
15:14.31 | jasta | then i cannot say. |
15:14.51 | sandesh | hey can anyone answer me this java.lang.reflect.constructor eroor |
15:15.11 | jasta | acsia: http://code.google.com/p/android/issues/detail?id=501 -- that's why i ask. |
15:15.15 | acsia | but it seems not related, I mean the crash seems to come from the parcel creator |
15:16.23 | jasta | why do you say that? |
15:16.23 | B0jangles | UPS man keeps unplugging the computer |
15:16.24 | *** join/#android matt_c (n=mcroydon@gozur.sunflowerbroadband.com) |
15:16.24 | B0jangles | sorry, couldn't resist |
15:16.32 | mike1o | jasta, could it be friday then? |
15:18.11 | acsia | ERROR/dalvikvm(1379): HeapWorker is wedged: 16561ms spent inside Landroid/os/ParcelFileDescriptor$AutoCloseInputStream;.finalize()V |
15:18.23 | acsia | that is the last error before the fault |
15:18.39 | jasta | ahh yes, that does seem unrelated. |
15:18.47 | acsia | but I did a tr |
15:19.03 | jasta | mike1o: I'm saying, what evidence do you have to suggest that a release was going to be made the day after April Fools? :) |
15:19.17 | acsia | y on a edit which does not involve the file descriptor and update does not seem to be called |
15:19.23 | mike1o | jasta, maybe this is the April Fool |
15:19.33 | jasta | 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. |
15:20.03 | mike1o | jasta, I just heard a week ago that a new release was coming out in a week :) totally unofficial though |
15:20.10 | *** join/#android tmarble (n=tmarble@user-38q4et6.cable.mindspring.com) |
15:20.15 | jasta | Right, and where did they hear it? :) |
15:20.32 | B0jangles | thinks jasta made it up |
15:20.41 | mike1o | eheh |
15:20.45 | jasta | Sort of :) |
15:20.57 | Kraln | I've heard this too |
15:21.01 | Kraln | maybe they meant m15? |
15:21.09 | zhobbs | thinks next release will be after the 14th...but who knows |
15:21.58 | jasta | 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. |
15:22.50 | zhobbs | yeah, I could see that...just a bug fix release to make the ADC judging/testing go smoother |
15:23.03 | mike1o | similar to what I heard |
15:23.07 | zhobbs | except that we already wrote our apps to work around the bugs |
15:23.30 | B0jangles | heh, yeah, I have comments pointing to a bunch of bug reports |
15:24.02 | mike1o | we have? |
15:24.17 | B0jangles | lol |
15:24.17 | jasta | I personally have just ignored a lot of the bugs; not worked around them. |
15:24.29 | acsia | I just close my eyes |
15:24.32 | B0jangles | I've had to work around a lot of GPS bugs |
15:24.42 | Kraln | B0jangles: gps bugs such as? |
15:25.16 | B0jangles | for instance, one of the GPS functions throws an exception every time you call it |
15:25.16 | B0jangles | I forget which one offhand |
15:25.18 | mike1o | gotta work around my bugs :) |
15:25.27 | B0jangles | so I still call it, but it's in a try/catch block |
15:25.31 | B0jangles | with my workaround in the catch |
15:25.43 | *** join/#android morrildl (n=chatzill@nat/google/x-6621ad047a34ccda) |
15:26.15 | B0jangles | I figure that way, if they fix it, it'll work |
15:26.21 | B0jangles | if they don't fix it, it'll work |
15:26.47 | Kraln | which one? I'm curious because I'm hitting walls on gps |
15:27.09 | B0jangles | hang on, I'll look |
15:27.30 | *** join/#android michaelnovakjr (n=nov@204.141.14.140) |
15:27.53 | B0jangles | http://code.google.com/p/android/issues/detail?id=462&can=4&colspec=ID%20Type%20Version%20Security%20Status%20Owner%20Summary |
15:28.28 | Kraln | bah, seriously? :| |
15:28.31 | Kraln | fixes code |
15:28.35 | B0jangles | lol |
15:37.09 | acsia | I might try another approach, how about contentObserver. that seems to work on updates but then I don t have the Uri... |
15:38.44 | *** part/#android zoolooc (n=lucian@nrbg-4dbfa509.pool.einsundeins.de) |
15:40.00 | jasta | content observers primarily exist to facilitate refreshing the UI. it would not be a good place to track granular changes. |
15:40.14 | jasta | an extended cursor would be more than capable, i am not sure why you avoid that approach. |
15:40.42 | jasta | also, i still think update() is fired when commitUpdates is called. |
15:41.03 | jasta | I would demonstrate that to be true, but I can't be bothered right now :) |
15:42.19 | michaelnovakjr | hey jasta are you working with web services? |
15:42.39 | jasta | no |
15:43.13 | *** join/#android muthu (n=sara@59.92.10.43) |
15:43.22 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) |
15:43.55 | jasta | acsia: Looking at SQLiteCursor.java, however, I suspect that extending a cursor would be your only way. But it should be very easy. |
15:44.32 | jasta | you could easily just override deleteRow and commitUpdates. |
15:44.57 | acsia | the problem is that I want to create a pluggable framework so I am creating an interface to ContentProvider |
15:45.19 | acsia | Creating a cursor will be more intrusif |
15:45.34 | jasta | right but, i'm looking at the code right now, it won't call the content provider. |
15:45.44 | jasta | perhaps your only option then is to file a feature request and wait. |
15:45.45 | acsia | but I ll find a way I guess, there are a couple of ways but the update method seemed the obvious one |
15:46.05 | acsia | I dont really understand the role of update then on ContentProvider |
15:46.23 | jasta | for updates performed without a cursor. |
15:47.04 | acsia | yes |
15:47.12 | acsia | well.. |
15:47.34 | acsia | I ll grab a tea and attach the idea differently then |
15:47.42 | acsia | it s a bit of pain thought |
15:47.55 | acsia | for instance the delete does not 'work' either |
15:48.13 | acsia | and I save files so I would like to delete all files corresponding to a uri |
15:48.28 | acsia | instead of doing it each time I get a cursor and I delete it... |
15:48.31 | acsia | oh well |
16:06.48 | *** join/#android yakischloba (n=jake@rnkfoods.com) |
16:19.14 | acsia | jasta: I ll create my own cursor... |
16:19.22 | acsia | the tea is speaking |
16:19.31 | *** join/#android unumm (n=elpresid@pD9E780D2.dip0.t-ipconnect.de) |
16:23.50 | jasta | all you'd have to do is extend and override 2 functions. should be very simple. |
16:35.58 | acsia | a well I don t have access to the uri within a cursor... |
16:36.11 | acsia | so ContentResolver.update(uri....) |
16:36.15 | acsia | can not be used |
16:36.43 | jasta | uhm, what is wrong with your brain today? :) |
16:37.16 | jasta | class MyCursor extends Cursor { public MyCursor(Uri uri, ...) { super(...); mUri = uri; } ... |
16:37.53 | acsia | hahahaha |
16:38.04 | jasta | what? |
16:38.04 | acsia | I think I need to stop for a bit :) |
16:38.09 | jasta | yeah, me too. |
16:38.20 | *** join/#android illustir (n=alper@5356AB7B.cable.casema.nl) |
16:45.57 | bilboed-tp | shooting himself in the foot while trying to teach autotools how to use the arm-linux-gnueabi toolchain |
16:50.08 | davidw | damn |
16:50.12 | davidw | it's snowing.... |
16:50.51 | davidw | using autotools is as painful as shooting yourself in numerous body parts |
16:50.58 | bilboed-tp | no |
16:51.18 | bilboed-tp | trying to teach it this retarded android no-it-is-not-open framework is painful |
16:52.19 | bilboed-tp | s/framework/system/ |
16:52.40 | bilboed-tp | *sigh* |
17:00.40 | *** join/#android pandora-- (n=neil@66.238.50.126.ptr.us.xo.net) |
17:03.48 | *** join/#android rangen (i=rangen@keskuskomitea.org) [NETSPLIT VICTIM] |
17:03.56 | *** join/#android visit0r (i=visit0r@movietron.fi) |
17:04.04 | *** join/#android o3u (n=slim@modemcable095.170-70-69.mc.videotron.ca) [NETSPLIT VICTIM] |
17:04.14 | *** join/#android The_PHP_Jedi (n=ThePHPJe@66.50.225.172) |
17:04.43 | *** join/#android Mathiasdm (n=Mathias@78-22-5-158.access.telenet.be) |
17:05.22 | *** join/#android Adys (n=Adys@APoitiers-257-1-68-132.w86-205.abo.wanadoo.fr) |
17:11.52 | *** join/#android illustir (n=alper@5356AB7B.cable.casema.nl) |
17:14.34 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) [NETSPLIT VICTIM] |
17:14.55 | *** join/#android Smoke_Screen (n=Smoke@dsl-245-226-22.telkomadsl.co.za) |
17:15.30 | Smoke_Screen | Hi all, have a few questions: |
17:16.12 | Smoke_Screen | 1. Are there any Unit Testing Frameworks that can be used with Android and its development |
17:17.21 | Smoke_Screen | 2. Can Javadoc or similar app be used with Android development (I am assuming yes as it's still Java thats being programmed in) |
17:18.53 | Smoke_Screen | 3. Are there any documents with technical specs for Android yet along the lines of number of simultaneous TCP connections etc |
17:23.44 | muthu | Smoke: have you looked at instrumentation? |
17:25.10 | acsia | smoke: http://code.google.com/android/reference/junit/framework/package-summary.html |
17:25.29 | acsia | not sure if it works all the way as I heard people having issues |
17:25.38 | acsia | secondly javadoc yes, annotation no |
17:26.00 | acsia | for the third question well not really as it will probably be more hardware related then software (limitation that is) |
17:27.20 | *** join/#android pombreda (n=pombreda@dsl017-042-218.sfo1.dsl.speakeasy.net) |
17:30.59 | Smoke_Screen | 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 |
17:32.09 | Smoke_Screen | So for 3 does that mean the emulator should be able to do most things a PC does |
17:32.35 | Smoke_Screen | for the network connection at least |
17:32.53 | Smoke_Screen | and whatever speed like 3G you choose |
17:33.36 | *** join/#android michaelnovakjr (n=nov@204.141.14.140) |
17:34.18 | Smoke_Screen | muthu: Sorry not too sure where instrumentation is in the documentation |
17:52.45 | *** join/#android Kuja (n=Kuja@c-71-61-229-105.hsd1.md.comcast.net) |
17:57.22 | acsia | smoke: more or less yes |
17:57.47 | acsia | search instrumentation in the google code page and there is a bit of information |
17:59.05 | Kuja | is it normal for socket to return null if you feed it a dotted ip address? |
17:59.17 | Kuja | it doesn't throw an exception - just returns null |
18:02.55 | *** join/#android haavi (i=haavi@c83-254-98-251.bredband.comhem.se) |
18:04.50 | *** join/#android matt_c (n=mcroydon@gozur.sunflowerbroadband.com) |
18:08.34 | zhobbs | morrildl: will the judges have mp3 files to test media players? |
18:22.04 | acsia | in a content observer what is the role of the handler? |
18:22.07 | acsia | anybody knows? |
18:33.40 | *** join/#android dims (n=dims@nat/ibm/x-ad327efd66e23cdb) |
19:04.09 | *** join/#android cybereagle (n=cybereag@unaffiliated/cybereagle) |
19:08.36 | *** join/#android soulreaper (n=soul@Xaad1.x.pppool.de) |
19:08.50 | *** join/#android Dralspire2 (n=dralspir@unaffiliated/dralspire) |
19:21.05 | *** part/#android muthu (n=sara@59.92.10.43) |
19:40.37 | *** join/#android bugsy101 (n=nirvana@157.252.136.19) |
19:57.27 | *** join/#android dpino (n=dpino@cm135183.red83-165.mundo-r.com) |
19:57.58 | *** join/#android matt_c (n=mcroydon@gozur.sunflowerbroadband.com) |
20:05.19 | *** join/#android winksaville (n=chatzill@70.91.206.233) |
20:33.18 | *** join/#android bladezor (n=bladezor@c-98-196-112-154.hsd1.tx.comcast.net) |
21:37.50 | *** join/#android dims (n=dims@c-66-31-154-33.hsd1.ma.comcast.net) |
21:42.48 | *** join/#android davanum (n=dims@c-66-31-154-33.hsd1.ma.comcast.net) |
21:42.56 | *** join/#android inZane-_ (i=nemo@dslb-084-058-029-167.pools.arcor-ip.net) |
21:43.09 | jasta | i just had an interesting idea |
21:43.16 | jasta | it would be really great if the emulator could simulate power draw / battery life |
21:43.37 | jasta | dalvik could actually do this reasonably well, by simply observing instructions |
21:44.00 | *** join/#android haavi (i=haavi@c83-254-98-251.bredband.comhem.se) [NETSPLIT VICTIM] |
21:44.00 | *** join/#android pandora-- (n=neil@66.238.50.126.ptr.us.xo.net) [NETSPLIT VICTIM] |
21:44.00 | *** join/#android eton (n=eton@ppp-58-8-211-215.revip2.asianet.co.th) [NETSPLIT VICTIM] |
21:44.00 | *** join/#android krau (n=cktakaha@200.184.118.132) |
21:44.00 | *** join/#android Beryllium (n=berylliu@S01060018f8f93bda.gv.shawcable.net) [NETSPLIT VICTIM] |
21:44.00 | *** join/#android rwhitby (n=rwhitby@nslu2-linux/rwhitby) |
21:44.00 | *** join/#android ArteK (n=ArteK@82.177.19.205) |
21:44.00 | *** join/#android poffy (n=poffy@c-98-199-135-173.hsd1.tx.comcast.net) |
21:44.00 | *** join/#android foysavas (n=foysavas@pool-68-163-207-237.bos.east.verizon.net) [NETSPLIT VICTIM] |
21:44.00 | *** join/#android Raven_coda (n=wtg@64.50.35.215) |
21:44.00 | *** join/#android erik_ (n=erik@gw.sbg.se) |
21:44.00 | *** join/#android mihoshi (n=Tylor@unas-226.interra.ru) [NETSPLIT VICTIM] |
21:44.04 | jasta | but it would be much cooler to implement it at the kernel layer. |
21:45.11 | acsia | well you potentially could |
21:45.26 | acsia | somebody managed a native helloworld |
21:45.36 | B0jangles | for using GPS, are there any other relevant permissions than ACCESS_LOCATION, ACCESS_GPS, ACCESS_ASSISTED_GPS, and ACCESS_CELL_ID? |
21:45.37 | jasta | yes, many people. |
21:45.54 | *** join/#android inZane-__ (i=nemo@dslb-084-058-049-029.pools.arcor-ip.net) |
21:46.24 | B0jangles | getFromLocation always throws an IOException for me...I just want to make sure it's not my fault |
21:46.32 | B0jangles | I think I have all of the necessary permissions set |
21:47.28 | acsia | IOException is probably not related to permissions |
21:47.32 | B0jangles | okay |
21:47.37 | acsia | well you would see it in the log |
21:47.48 | B0jangles | oh, does it log it/ |
21:47.49 | B0jangles | ? |
21:47.53 | B0jangles | i'll look |
21:56.00 | raidfive | B0jangles, it almost seems like the mock file the Geocoder class is looking for doesn't exist for some reason |
21:56.21 | B0jangles | raidfive: maybe we're supposed to create it? |
21:56.41 | B0jangles | raidfive: I think you're probably right |
21:57.19 | raidfive | /data/misc/location/geodb |
21:57.23 | raidfive | that is the default file |
21:57.46 | raidfive | if the emulator can't find it, it will toss that IOException |
21:58.17 | B0jangles | how do you load it into the emulator? |
21:58.42 | raidfive | do you not have that file in the os file system? |
21:58.58 | raidfive | do you know how to check? |
21:59.03 | B0jangles | I've no idea |
21:59.05 | B0jangles | nope |
21:59.13 | raidfive | are you using the eclipse plugin? |
21:59.15 | B0jangles | yeah |
21:59.27 | raidfive | switch to the DDMS perspective |
21:59.44 | B0jangles | okay |
21:59.51 | B0jangles | oh |
21:59.53 | B0jangles | heh ;-) |
21:59.58 | raidfive | File Explorer :) |
22:00.15 | B0jangles | I do have a geodb file |
22:00.22 | raidfive | strange |
22:00.33 | B0jangles | how do I see what's in it? |
22:00.51 | B0jangles | I don't seem to be able to open the file or anything |
22:00.58 | raidfive | in the upper right hand corner there is an icon to pull the selected file from the os |
22:01.05 | raidfive | as well as push a file |
22:01.13 | B0jangles | ah hah! |
22:01.39 | raidfive | I edited that file with my own locations and pushed it back to the file system recently |
22:01.41 | *** join/#android inZane- (i=nemo@dslb-084-058-028-140.pools.arcor-ip.net) |
22:01.42 | raidfive | works fine |
22:01.59 | raidfive | but I'm still not sure about the IOException you are getting |
22:02.05 | raidfive | latest sdk? |
22:02.10 | B0jangles | yes, latest sdk |
22:02.51 | B0jangles | you're using getFromLocation? |
22:03.22 | raidfive | getFromLocationName() actually |
22:03.37 | B0jangles | I wonder if getFromLocationName works, but getFromLocation doesn't... |
22:04.15 | raidfive | it is possible ... checked the issue list lately? |
22:05.21 | B0jangles | Well, there's a bug report, but I'm the one that made it ;-) |
22:05.21 | B0jangles | hasn't been approved yet, though |
22:06.53 | raidfive | hmm yea, I see another bug listed for getFromLocation() also |
22:07.02 | raidfive | but that is a different situation |
22:07.05 | B0jangles | URL? |
22:07.35 | *** join/#android inZane-_ (i=nemo@dslb-084-058-055-024.pools.arcor-ip.net) |
22:07.35 | raidfive | http://code.google.com/p/android/issues/detail?id=427 |
22:07.48 | raidfive | not the same issue though |
22:08.01 | raidfive | but it does look like that method is borked :) |
22:08.02 | B0jangles | huh. but apparently it's not throwing an exception |
22:08.43 | B0jangles | I wonder if it's because I've put it in a clas |
22:08.46 | B0jangles | *class |
22:09.02 | B0jangles | do I need to pass it a context somehow or something? |
22:09.31 | raidfive | want to link your code via pastie or something for me? |
22:09.58 | B0jangles | what's the site people use for that? |
22:10.17 | B0jangles | oh pastebin |
22:10.19 | B0jangles | hang on |
22:10.47 | raidfive | there are multiple ones |
22:11.33 | B0jangles | here you go: http://pastebin.com/d20af8da9 |
22:14.08 | *** join/#android duey (n=duey@203-190-208-12.innovationwaikato.co.nz) |
22:18.27 | raidfive | nothing is standing out |
22:18.33 | B0jangles | yeah ;-) |
22:18.38 | B0jangles | tx for looking, though |
22:19.08 | raidfive | hopefully someone responds to your bug report soon |
22:19.15 | B0jangles | I hope so |
22:24.24 | *** join/#android pandora-- (n=neil@66.238.50.126.ptr.us.xo.net) |
22:24.24 | *** join/#android eton (n=eton@ppp-58-8-211-215.revip2.asianet.co.th) |
22:24.24 | *** join/#android krau (n=cktakaha@200.184.118.132) |
22:25.04 | *** join/#android Beryllium (n=berylliu@S01060018f8f93bda.gv.shawcable.net) |
22:25.04 | *** join/#android rwhitby (n=rwhitby@nslu2-linux/rwhitby) |
22:25.04 | *** join/#android ArteK (n=ArteK@82.177.19.205) |
22:25.04 | *** join/#android poffy (n=poffy@c-98-199-135-173.hsd1.tx.comcast.net) |
22:25.04 | *** join/#android foysavas (n=foysavas@pool-68-163-207-237.bos.east.verizon.net) |
22:25.04 | *** join/#android Raven_coda (n=wtg@64.50.35.215) |
22:25.04 | *** join/#android erik_ (n=erik@gw.sbg.se) |
22:25.04 | *** join/#android mihoshi (n=Tylor@unas-226.interra.ru) |
22:31.28 | *** join/#android SR71-Blackbird (n=nirvana@unaffiliated/sr71-blackbird) |
22:51.28 | *** join/#android Kruton_Yessara (n=kruton@24-148-7-189.snb-bsr1.chi-snb.il.cable.rcn.com) |
22:57.45 | *** part/#android Kruton_Yessara (n=kruton@24-148-7-189.snb-bsr1.chi-snb.il.cable.rcn.com) |
23:31.45 | *** join/#android Yeggstry (n=mind@cpc1-rdng14-0-0-cust946.winn.cable.ntl.com) |
23:45.07 | *** join/#android Yeggstry (n=mind@cpc1-rdng14-0-0-cust946.winn.cable.ntl.com) |
23:51.34 | acsia | B0jangles: check http://androforge.net/gf/project/androlib/scmsvn/?action=browse&path=%2Ftrunk%2Fsrc%2Fnet%2Fandroforge%2Fwidget%2FLocationDialog.java&view=markup |