**** BEGIN LOGGING AT Sun Jan 27 02:59:57 2008 Jan 27 09:04:46 anyone around? Jan 27 09:04:54 yes. Jan 27 09:05:26 is it discussed in the docs where an applications table creation code should be? I cant seem to find that information Jan 27 09:07:01 what do you mean by "table creation" Jan 27 09:07:02 ? Jan 27 09:08:20 so my application needs some sqlite tables to store data, I'm not sure how to have my tables created so I can start putting data in them Jan 27 09:08:44 use a content provider. the documentation discusses this in great detail. Jan 27 09:09:24 yeah, I was planning on writing one yet as the data doesnt need to be shared, thanks jastA Jan 27 09:09:55 then just use a sqlite database. again, well covered in the documentation. Jan 27 09:11:22 ok, thanks again Jan 27 09:33:55 hmm, I see how to create a database, but I still don't see where it discusses where and when the database should be created Jan 27 09:40:18 anywhere you want. Jan 27 10:12:41 wow Jan 27 10:12:43 http://en.naughtyholiday.com/?id=ccd96c2a9da025e729843fc43b9bfec8 Jan 27 10:19:00 wt Jan 27 10:19:01 wtf Jan 27 10:21:22 a really intelligent spamming method Jan 27 10:29:25 how does one know what activities from other applications they can interact with? Jan 27 15:18:40 how do I use two cursors in one listadapter? Jan 27 15:28:17 I have a cursor and I want the first N elements of it to be shown in R.layout.one and the sencond N elements to be shown in R.layout.two ... how the hell do I do this? Jan 27 18:00:48 normally, onDraw is called if one does an invalidate, right? Jan 27 18:01:01 I can't seem to get my view to redraw: http://pastebin.ca/875102 Jan 27 18:42:25 Mathiasdm: SurfaceView works differently Jan 27 18:43:05 so if I use View, it'll work? Jan 27 18:43:07 * Mathiasdm tries Jan 27 18:43:29 It should Jan 27 18:59:29 ugh, the menu won't appear, so I don't know if using View is making any difference :p Jan 27 18:59:36 but thanks for the help! Jan 27 19:31:33 okay, so it doesn't work :p Jan 27 19:32:21 but it does seem to be doing something, since the emulator's using the processor all the way Jan 27 19:33:53 Mathiasdm: have you checked taht your View has the right dimension ? Jan 27 19:35:18 Mathiasdm: What exactly do you see? Jan 27 19:35:30 a white screen Jan 27 19:35:46 Have you tried to put a Log statement in onDraw()? Jan 27 19:36:17 no, I'm afraid my skills are rather limited :$ Jan 27 19:37:21 Argh Jan 27 19:37:26 My whole source tree is corrupted Jan 27 19:37:27 /o\ Jan 27 19:38:19 ouch Jan 27 19:39:23 * romainguy___ is glad he checked in everything he was working on on Friday Jan 27 20:10:40 romainguy_: does that checkin include an nio fix? ;) Jan 27 20:16:11 winner03: I work on the UI toolkit Jan 27 21:54:15 romainguy___: you three? Jan 27 22:17:24 nevermind, actually :) Jan 27 22:40:10 jasta: ? Jan 27 22:41:07 it was nothing, i was just fiddling with that progress bar thing we discussed a while ago. Jan 27 22:41:11 i figured it out though :) Jan 27 22:41:40 actually though, i had a few questions for morrildl, i wonder if you could answer... Jan 27 22:42:04 I can try Jan 27 22:42:27 i found what i consider a critical bug in Android's DOM parser. is that implementation particular to Android, or was it taken from another project? Jan 27 22:42:39 i was surprised not to find apache's Xerces included for the DOM parser. Jan 27 22:43:15 I don't know where our parser comes from Jan 27 22:43:27 it looks to be in the package android.xml.parsers Jan 27 22:43:35 and Xerces is probably way too big Jan 27 22:43:43 I remember some very large jar files in Xerces Jan 27 22:43:48 yeah, perhaps. Jan 27 22:44:26 but the parser you guys provided doesn't seem to support CDATA. Jan 27 22:44:48 I've seen your bug report Jan 27 22:45:15 in order to proceed with my project, i was forced to patch libsyncml to not use CDATA, which is very bad ;) Jan 27 22:47:13 oh, and do you know anything about debugging remote services (running in a separate process from the rest of the deployed application) Jan 27 22:47:48 The Eclipse plugin seems to only know how to attach to the main process. Jan 27 22:48:10 I can't find any options anywhere to manually or otherwise attach to all processes within an application, or even a specific one. Jan 27 22:49:44 You can only attach to one process Jan 27 22:50:03 Can't you just attach to the process that contains your service? Jan 27 22:50:29 Sure, but how? The Eclipse plugin doesn't seem to expose any of this. Jan 27 22:51:30 have you tried running ddms? Jan 27 22:51:55 No, but DDMS and the Eclipse plugin are mutually exclusive aren't they? Jan 27 22:52:08 I have no idea, I never used the Eclipse plugin Jan 27 22:52:26 It is possible to run DDMS and still attach Eclipse's (or in my case IntelliJ's) debugger Jan 27 22:52:50 Hmm, I will look into it then. Jan 27 22:53:42 Thanks. Jan 27 23:33:18 can I attach two cursors to one adapter? Jan 27 23:51:43 mike1o: for waht purpose? Jan 27 23:52:39 jasta, I need to be able to change textview properties on runtime... Jan 27 23:52:44 *in Jan 27 23:53:02 what does that have to do with two cursors? Jan 27 23:53:57 one way I figured out I could do this was by dividing the cursor in two separate ones so each could be mapped to a corresponding textview Jan 27 23:55:54 huh? Jan 27 23:56:28 you've really lost me. you mean you have multiple textviews on each row? are they backed by a single logical data source? Jan 27 23:57:49 one data source, but divided into two categories Jan 27 23:58:31 then why would you want multiple cursors? btw, Cursor is an abstract class, it doesn't necessarily refer to a database cursor. you could even extend a cursor with your own screwy logic to satisfy multiple, unrelated data sources. Jan 28 00:01:30 btw, could I send parameters to the xml layout? Jan 28 00:02:13 what do you mean send them? via what? Jan 28 00:02:30 jasta, that's the road Ill be embarking... extending cursors and/or adapter Jan 28 00:02:31 s Jan 28 00:03:01 I mean like change "variables" in xml layouts from Java...? Jan 28 00:03:11 the adapter would probably be more sensible to extend than the cursor, unless this logic goes all the way to your content provider. Jan 28 00:03:19 mike1o: what variables? Jan 28 00:03:40 jasta, that's what I though xml layouts are static aren't they... Jan 28 00:04:06 yes, quite. they are literally compiled into your application. Jan 28 00:04:49 but they inflate to become the layout that they describe, though. that layout can be manipulated. Jan 28 00:04:57 I guess extending classes is the only way to go :( more work Jan 28 00:05:09 yes, programming is unfortunately work. Jan 28 00:05:21 so I can manipulate them in runtime? Jan 28 00:05:45 well, not the files of course. Jan 28 00:05:56 do you understand the relationship between the UI and the XML layout files? Jan 28 00:06:24 but can I manipulate a view that im using in the creation of a listadapter? Jan 28 00:06:46 Yes, to the extend that said view allows. Jan 28 00:06:50 extent* Jan 28 00:07:27 Isn't that obvious though? You can, for example, change a TextView's text at runtime. That is not manipulating the XML layout, though. Jan 28 00:09:44 yes but what about when I feed it to the simplecursoradapter(int view, ...)? Jan 28 00:09:57 as myview.getID() Jan 28 00:10:25 what? The id that you specify to SimpleCursorAdapter() is merely used to fetch the layout and inflate it at runtime. Jan 28 00:10:32 There is no magic happening there. Jan 28 00:11:30 ok so I can't change that on runtime Jan 28 00:11:47 can't change *WHAT*? Jan 28 00:12:59 the textview Jan 28 00:13:12 what about it? it's text? Jan 28 00:13:28 sure Jan 28 00:13:35 yes, you can change the text at runtime. Jan 28 00:15:42 frankly, i don't understand why you would assume that you could not. if you can give me a more concrete example of precisely what you are trying to accomplish i can probably assist you better. Jan 28 00:23:45 I am querying twice a ContentURI... in return I have two data sets... I want to map them into two different textviews with different styles Jan 28 00:24:25 two different textviews per row? Jan 28 00:24:58 well... not really Jan 28 00:25:06 one for each data set Jan 28 00:25:19 you understand that list adapters are for lists, right? :) Jan 28 00:25:21 for each row of each data set Jan 28 00:25:57 aren't they something like dynamic (autoupdating) lists? Jan 28 00:26:17 eheh Jan 28 00:26:23 list adapters are simply an interface to manipulate rows of a list. they are not magical, and you are making them magical. Jan 28 00:26:37 rather, you are trying to make them magical, and failing. Jan 28 00:27:09 exactly Jan 28 00:27:20 but again, you need to express yourself more concretely or i cannot help you. your abstractions are broken and clearly incomplete. Jan 28 00:29:05 brb Jan 28 00:29:12 well no, bbl :) Jan 28 00:58:57 where do I find android java sources? Jan 28 00:59:12 you don't, because they are not available. Jan 28 00:59:22 oh :) **** ENDING LOGGING AT Mon Jan 28 02:59:57 2008