**** BEGIN LOGGING AT Thu Feb 19 02:59:57 2009 Feb 19 03:00:38 I can't remember if I asked this before, but do I need to worry about concurrency in a ContentProvider, or does it handle it for me? Feb 19 03:02:05 it seems to give an error when I'm inserting on a separate thread than the thread querying Feb 19 03:05:17 [19:01] I can't remember if I asked this before, but do I need to worry about concurrency in a ContentProvider, or does it handle it for me? Feb 19 03:05:26 oops Feb 19 03:05:30 that was a mistake :) Feb 19 03:05:30 lol Feb 19 03:05:34 mocking me I see :) Feb 19 03:05:48 nope, just trying to get used to this piece of shit Mac mouse :) Feb 19 03:06:01 you got a might mouse too, huh? Feb 19 03:06:26 yeah, wait until the scroll ball gets crap caught under it Feb 19 03:21:34 so, when I call requestLayout(), it is going into my onBind and going into the correct code path, but it isn't displaying the view that it says it has Feb 19 03:23:24 I even tried sticking invalidate() after requestLayout, but the new view never gets display Feb 19 03:23:26 *displayed Feb 19 03:41:40 given an android-created SQLite database, is there a way to tell which version the database is? Feb 19 03:42:41 all I see in the android_metadata table is a column for locale Feb 19 03:44:16 do you mean the version of your created database? Feb 19 03:44:21 or the sqlite version? Feb 19 03:44:32 herriojr_, the created database Feb 19 03:44:41 for onUpgrade() Feb 19 03:44:57 KNY: use an SQLiteOpenHelper Feb 19 03:45:12 it will take care of checking versions, etc. for you Feb 19 03:45:18 herriojr_, I have one, but my app has an import/export feature Feb 19 03:45:39 and if you import an old database into an app that is new, it will not upgrade it, AFAIK Feb 19 03:46:14 are you talking about importing the schema or data? Feb 19 03:46:47 the equivalent of `cp backup.db current.db` Feb 19 03:46:54 ah ok Feb 19 03:47:20 hmm, the only thing I can think of doing is adding a table which contains the version Feb 19 03:47:29 beyond that, I can't help you on it Feb 19 03:47:44 sorry :-/ Feb 19 03:47:47 well, there's already android_metadata table that I could stick a version column in Feb 19 03:48:09 but that doesn't help on previous backups Feb 19 03:48:11 I don't know anything about those tables Feb 19 03:48:34 I opened the database in sqlitebrowser Feb 19 03:51:02 hi hi Feb 19 03:51:12 so much for mid-week, eh? Feb 19 03:51:18 its not mid week yet Feb 19 03:51:24 as I said, a simple fix would be to require a CREATE TABLE version(version AS INTEGER); Feb 19 03:51:26 what's mid-week? Feb 19 03:51:29 Friday Feb 19 03:51:36 ... Feb 19 03:51:40 KNY: but that's a hack Feb 19 03:51:49 ok, I made that up Feb 19 03:51:55 herriojr_, yeah, and still doesn't help legacy database exports Feb 19 03:52:05 lol Feb 19 03:52:51 herriojr_, I suppose what I should do is just check for the new schema that I need to support and add it if it's not there Feb 19 03:53:43 KNY: have fun comparing the schemas Feb 19 03:54:00 herriojr_, yeah, this should be boatloads of fun Feb 19 03:54:26 KNY: so you already have this out in the market? Feb 19 03:54:44 herriojr_, yes Feb 19 03:54:53 KNY: how many different database updates have you done? Feb 19 03:55:54 KNY: hopefully just one :) Feb 19 03:56:06 two, technically, but only one that's been used for a significant amount of time Feb 19 03:56:14 the first update was a long while ago Feb 19 03:56:49 KNY: I'm assuming you added columns to pre-existing tables? Feb 19 03:57:17 herriojr_, this is a major revision. I added a new table and more than a few columnds Feb 19 03:57:20 columns* Feb 19 03:57:28 I mean for the first two versions Feb 19 03:57:40 this current version, you can put the version table hack Feb 19 03:58:16 and for the previous two versions, check to see if they have the version table, if not, check to see if they have some column that differentiate those two old versions Feb 19 03:58:40 that way you can identify which it is Feb 19 03:58:49 and do the necessary upgrades Feb 19 04:00:41 and then you don't have to completely compare all of the schemas Feb 19 04:05:27 yeah Feb 19 04:20:50 romainguy: if you're on, is there a way to make sure one of the views in a list doesn't get put in the recycler? Feb 19 04:21:03 no Feb 19 04:22:10 ok Feb 19 04:23:04 I'd like it if I could :) Feb 19 04:23:11 no Feb 19 04:23:14 heh Feb 19 04:23:19 if you don't want to recycle, dont use listview Feb 19 04:23:42 yeah, I know :) Feb 19 04:56:13 Hm. I'd like to measure the width and height of a view in my activity as early as possible. It's 0 in onCreate, onStart and onResume. Is there an override I can use just before the activity is shown, when its measurements are available, but before it's visible? Feb 19 04:56:45 Is overriding onDraw the way to go here, even though I don't need to override any drawing behavior? Feb 19 04:57:39 rsteckler: yeah, the views aren't drawn until the end of the lifecycle Feb 19 04:57:44 or rather middle of it Feb 19 04:58:00 actually, now that I look, I don't have an onDraw in ativities... Feb 19 04:58:21 yeah, you don't draw an activity Feb 19 04:58:30 you'd have to get the info from your views Feb 19 04:59:28 there's another function in the lifecycle after it draws, but I think you have to be a system level app to use it Feb 19 04:59:45 rsteckler: you could extend your parent view Feb 19 05:00:20 k. I'll override the onDraw of the root view (linearLayout) and grab my measurements there, and pass them out to the activity where I need them. Feb 19 05:00:21 thanks Feb 19 05:10:11 such a complex hostname Feb 19 05:10:24 haha Feb 19 05:11:17 vhosts are fun Feb 19 05:30:02 anyone working on streaming windows media on android? Feb 19 05:57:21 android animation is sick, and so simple to do. Feb 19 05:57:32 well done, gGuys Feb 19 06:25:28 hey there, anyone using cupcake already? Feb 19 06:26:33 it's not quite ready :) Feb 19 06:26:44 i know ;) Feb 19 06:26:52 thats y im asking :D Feb 19 06:27:11 I want to know if the DevBuild is already stable Feb 19 06:27:36 the public one not really Feb 19 06:27:40 I mean you could use it Feb 19 06:27:52 but expect problems Feb 19 06:28:13 ok Feb 19 06:28:19 thx Feb 19 06:30:44 romainguy: hmm...getFirstVisiblePosition was removed from ListVIew? Feb 19 06:30:52 nope Feb 19 06:31:12 http://code.google.com/android/reference/android/widget/AdapterView.html#getFirstVisiblePosition() Feb 19 06:31:15 am i just being dense? i'm looking here: http://developer.android.com/reference/android/widget/ListView.html Feb 19 06:31:21 yes you are dense :) Feb 19 06:31:35 oh this new layout is stupid. it used to list me all the methods from inherited classes Feb 19 06:31:43 now theyre hidden so you cant search on it with the browser Feb 19 06:31:57 thats really stupid, why would they do that? Feb 19 06:32:22 I far prefer the new layout Feb 19 06:32:25 much more clear Feb 19 06:32:29 er, clearer Feb 19 06:32:48 why the frames? it looks so MSDN Feb 19 06:33:35 easier to navigate Feb 19 06:33:41 especially when you're used to Sun's javadocs Feb 19 06:33:47 i disagree -- too much wasted space Feb 19 06:33:53 wasted for what? Feb 19 06:33:59 you get quick access to classes and packages Feb 19 06:34:01 anyway Feb 19 06:34:05 the top frame is huge and provides little function. Feb 19 06:34:05 that's the way it is :p Feb 19 06:34:24 it really should list all the methods from inherited classes too, ugh Feb 19 06:34:38 it does Feb 19 06:34:43 just click [Expand] Feb 19 06:34:50 <-- used to javadocs and likes the new layout Feb 19 06:34:53 then i have to know which class defines the method Feb 19 06:34:59 thats not very helpful. Feb 19 06:35:01 no Feb 19 06:35:04 there's a button to expand all Feb 19 06:35:08 -button+link Feb 19 06:35:17 oh thats true Feb 19 06:35:28 but still, it used to just list them all so a quick search was possible. this is a regression. Feb 19 06:35:37 meh Feb 19 06:35:39 use your IDE :) Feb 19 06:35:46 gah i hate my ide too! :) Feb 19 06:36:09 use IntelliJ :p Feb 19 06:36:16 I'm sure T-Mobile can pay for a license ^^ Feb 19 06:36:24 i really am going to start trying some out some other IDEs Feb 19 06:36:35 i've officially concluded that Eclipse is crap :) Feb 19 06:36:41 yeah Feb 19 06:36:47 and now that we dont use the ADT, theres no reason to keep it Feb 19 06:36:54 IntelliJ is truly awesome Feb 19 06:37:08 there are more shortcuts to learn but when you know them it's quite impressive what it does Feb 19 06:37:19 and their code analysis is just wonderful Feb 19 06:37:31 like a couple of weeks ago Feb 19 06:37:37 I wrote something like this: Feb 19 06:37:44 int topPadding -= leftPadding; Feb 19 06:37:52 -int Feb 19 06:38:04 and IntelliJ told me I probably didn't want to subtract leftPadding from topPadding Feb 19 06:38:13 which is obviously a correct suggestion ^^ Feb 19 06:38:36 how did it do that? and also, doesnt that get annoying when its wrong? Feb 19 06:39:16 that's the thing Feb 19 06:39:19 it's very rarely wrong Feb 19 06:39:21 * jasta raises an eyebrow at make+intelligen.sh Feb 19 06:39:24 and you can always suppress warnings Feb 19 06:39:34 that script is broken in cupcake Feb 19 06:39:39 oh :) Feb 19 06:39:46 and how it did it, I guess it just looks for some patterns Feb 19 06:39:54 like if you call setSize(h, w) in Swing Feb 19 06:39:58 instead of setSize(w, h) Feb 19 06:40:07 works with x, y, right, bottom, etc. Feb 19 06:40:23 so do you do your builds from within IntelliJ? Feb 19 06:40:28 or do you still use command line? Feb 19 06:40:28 you can Feb 19 06:40:29 but I don't Feb 19 06:40:32 I just make Feb 19 06:40:42 some of my coworkers build from IntelliJ Feb 19 06:40:54 i really might try this out Feb 19 06:40:57 I usually setup a shortcut to a build script Feb 19 06:41:10 although im not sure how i'd feel if i fell in love with a non-free IDE :) Feb 19 06:41:12 for instance when I work on Shelves I have Ctrl-D wired to ant reinstall Feb 19 06:41:16 meh Feb 19 06:41:30 a good tool is always worth the price Feb 19 06:41:41 even if non-free (as in non-open) Feb 19 06:46:50 <_avatar> neat, i didn't know IntelliJ was free for open source projects. Feb 19 06:47:12 oh yeah Feb 19 06:47:14 they have that Feb 19 06:47:16 if they accept Feb 19 06:47:23 and you can use it only to work on that project :p Feb 19 06:49:37 <_avatar> i assume if jasta wanted to try it out he could probably get a license pretty easily for five Feb 19 06:50:15 really? interesting. Feb 19 06:50:16 or he could just get his employer to buy a license :) Feb 19 06:50:23 yeah im sure i could :) Feb 19 06:52:30 <_avatar> how's five coming along, anyway? close to a release yet? :) Feb 19 06:52:36 yes :) Feb 19 06:52:46 <_avatar> looking forward to it Feb 19 06:52:58 progress has slowed a fair bit due to my new job, but im just getting back into it Feb 19 06:54:37 hehe, wow. i can build the android source on my home machine _so_ much faster than my macbook pro at work :) Feb 19 06:55:03 the git tree or our internal tree? :) Feb 19 06:55:11 the git tree Feb 19 06:55:15 i dont have access to your internal stuff Feb 19 06:55:20 <_avatar> i'm still trying to figure out exactly what i want to do with my project. i think it's too specialized to release it in the market, and i don't think work will let me release it open source Feb 19 06:55:31 hmm I thought you guys had access to more Feb 19 06:55:33 ah well Feb 19 06:55:39 do you have the vendor/tmobile stuff? Feb 19 06:55:40 i thought that we would too Feb 19 06:55:44 romainguy: nope, still working on getting it Feb 19 06:55:57 let me know Feb 19 06:55:57 somehow our partners dont think we own that Feb 19 06:56:02 despite that we paid for it. idiots Feb 19 12:03:57 When installing the ADT in Eclipse, Eclipse says: No repository found at https://dl-ssl.google.com/android/eclipse/ -- Ideas? (Or perhaps a proper link even?) Feb 19 12:07:45 ok, without https but with plain http it works Feb 19 12:44:29 Is there a possibility to set a group of EditText views to the same text Color ? Feb 19 12:48:39 I'm doing something really silly it seems: "android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application" Feb 19 12:48:58 ..at least I know what I'm doing wrong this time :) Feb 19 12:51:05 wow, never seen this error until now : http://pastebin.com/d38c79742 :| Feb 19 12:51:53 i take it the text is too big for it :( Feb 19 12:59:25 wow I got Android to crash Feb 19 14:19:03 is there a quick way to just play a "beep"? :) Feb 19 14:25:54 found it - a new Notification with just notification.defaults = Notification.DEFAULT_SOUND; Feb 19 14:26:17 doenst seem to do anything else than just play a beep.. excellent Feb 19 15:48:50 Does anyone know for sure, is it ok to release applications written in Clojure on the paid Android-market? Or is there a rule that it has to be written in Java and not only compiled to Dalvik bytecode? Feb 19 15:50:41 Does anyone know for sure, is it ok to release applications written in Clojure on the paid Android-market? Or is there a rule that it has to be written in Java and not only compiled to Dalvik bytecode? Feb 19 15:51:23 when will scandinavian developers be able to charge for their apps? Feb 19 15:52:11 pilkarn, I don't think it will happen in the near future Feb 19 15:52:29 but it's just a guess :) Feb 19 15:52:59 pilkarn: nobody outside goog knows for sure i suppose Feb 19 15:53:18 but if by writing in clojure, you get a leg up over people who write in java, why not? Feb 19 15:54:26 and Google does not offer anything else than "We will also enable developers in Germany, Austria, Netherlands, France, and Spain to offer priced applications later this quarter. By the end of Q1 2009" currently.. Feb 19 15:56:09 I guess they are working on these countries first, where the G1/vodafone thingie is on sale Feb 19 15:59:30 yes makes sense Feb 19 16:00:09 ziyourenxiang: yes I think I get a leg up, can develop a lot faster. However I'm wonderin if there is a specific rule saying apps have to be written in Java. Feb 19 16:01:33 worst case - you re-jig clojure to output java source... since it is a lisp, should be doable :-) Feb 19 16:07:39 If your app works, and your apk is usable by other people, I don't think google really cares HOW you made it as long as it doesn't screw everyone up. Feb 19 16:19:10 vol: plus noone will check anyway right? Feb 19 16:19:22 no, how would they? Feb 19 16:19:23 How do i get in contact with Google support? Feb 19 16:19:41 pilkarn: 611 Feb 19 16:19:44 heh. Feb 19 16:20:17 vol: Don't know exactly how distribution works, is a def-xile not like a .class? its not something readable? Feb 19 16:21:21 ... Feb 19 16:21:30 pilkarn, as far as i know, no user has yet paid for an app via the google market place. mainly due to the fact that there are no apps with prices that show up yet on the market place. Feb 19 16:21:44 I don't know what a def-xile is. Feb 19 16:21:58 the upshot is that you put an apk on the marketplace Feb 19 16:22:56 vol, s/def-xile/dex-file/, I assume Feb 19 16:25:42 ah, that makes more sense. Feb 19 16:25:55 Yeah, dex files are not exactly class files, since dalvik isn't exactly java. Feb 19 16:34:47 joakime, depends on your definition of "user", someone here has made almost a dollar already on the market (google internal staff and some outside testers are buying/testing the market it seems) ;) Feb 19 16:35:22 tauno, ah. good point. the testing and QA cycle. Feb 19 16:35:58 tauno, where did you get this morsel of knowledge from? Feb 19 16:36:36 blau-MikeDG @ #android Feb 19 16:36:43 :P Feb 19 16:41:34 damn it, SQLite, why can't you rename columns? Feb 19 17:25:23 anyone working on streaming windows media on android? Feb 19 17:29:43 no Feb 19 17:31:24 that suks Feb 19 17:31:31 i am, looking for some help =) Feb 19 17:31:41 i don't think the hardware supports wmv Feb 19 17:31:44 granted, it will only work with the g1 Feb 19 17:32:04 the g1 does, and its perfect Feb 19 17:32:21 oh? hmm Feb 19 17:32:36 yeah Feb 19 17:32:56 im working on a streaming app right now, and stuck on the header for the asf file Feb 19 17:33:06 its almost correct, but a few bytes are wrong Feb 19 17:58:08 digitalspaghetti: i have a question about startElement... the uri should be the namespace right? ie: /channel/item/title Feb 19 17:58:30 startElement(String uri, ...) Feb 19 17:58:46 it doesn't seem to be working for me Feb 19 18:47:23 macpod: ? Feb 19 18:47:36 no, not url - it's the 3rd parameter in the function Feb 19 18:50:53 sorry, second paramter Feb 19 18:51:04 String localName Feb 19 19:18:51 romainguy: if you're on, I noticed that requestLayout does go back through onBind, but the display wasn't getting updated, what's the difference between this and invalidateViews? Or rather, what would cause requestLayout to not redisplay? Feb 19 19:21:42 I wanted to use requestLayout since you said it is more efficient than both notifyDataSetChanged and invalidateViews Feb 19 19:32:41 like I said, it depends what you're doing Feb 19 19:32:46 if you are changing the list data Feb 19 19:32:49 use notifyDatasetChanged Feb 19 19:35:00 I'm also changing a view at that point, not just the data, so I guess I'm stuck with invalidateViews Feb 19 19:35:37 uh? Feb 19 19:35:38 also, I have a ContentObserver in my adapter, when can I recognize my adapter is closing, so I can unregister my ContentObserver, or do I not have to worry about that? Feb 19 19:35:51 invalidateViews() tells ListView to redo all binding and layout Feb 19 19:36:00 and to scrape all optimizations (more or less) Feb 19 19:36:06 just use notifyDataSetChanged() Feb 19 19:36:10 kk Feb 19 19:36:13 herriojr: you have to unregister the observer Feb 19 19:36:16 if that will do it, I'll use that Feb 19 19:36:27 usually it's done with onDestroy() or onDetachedFromWindow() Feb 19 19:36:30 yes, but where in the adapter do I know that the adapter is being closed? Feb 19 19:36:36 you don't Feb 19 19:36:39 an adapter is not closed Feb 19 19:36:39 crap Feb 19 19:36:40 ok Feb 19 19:36:46 it's your job to manage its lifecycle Feb 19 19:37:36 I wanted to leave the ContentObserver in the adapter, since the Cursor is being created through a query inside the adapter Feb 19 19:38:00 doesn't matter Feb 19 19:38:07 ok Feb 19 19:38:07 you have to close cursors and unregister observers Feb 19 19:38:20 yup, ok Feb 19 19:41:06 so, when I set a cursor to an adapter, the adapter takes care of closing it, right? Feb 19 19:41:27 no Feb 19 19:41:37 hmm Feb 19 19:41:38 the adapter is just that, an adapter Feb 19 19:41:41 ok Feb 19 19:43:15 I never get exceptions/warnings when I don't close them after giving them to an adapter that I've seen, I'll have to verify that Feb 19 19:43:26 if you use managed queries, that's fine Feb 19 19:43:31 if not, you're screwed Feb 19 19:43:34 I'm not using those, though :) Feb 19 19:43:36 so I'm screwed Feb 19 19:43:44 I'll switch over Feb 19 19:51:59 romainguy: I really don't get a stack dump, though Feb 19 19:52:18 like when you close your app without closing a cursor Feb 19 19:55:29 you can call printStackTrace() on an exception object to get a stack trace of the point at which it was allocated Feb 19 19:56:29 ctate: I was saying that when I pass the cursor into an adapter and don't close it, I don't get a stack trace like I do if I open a cursor and leave it open without passing it into an adapter Feb 19 19:56:49 romainguy: thanks for the response to my bug ;) Feb 19 19:56:53 oh i see. the underlying code doesn't fail as hard :) Feb 19 19:57:01 romainguy: i had already figured it out though, ive modified SdkSetup/Android.mk to include with my builds Feb 19 19:57:05 :)) Feb 19 19:57:11 it's a very common issue Feb 19 19:57:16 still happens to us every now and then Feb 19 19:57:30 ctate: yeah, I guess I need to rethink how I think about adapters Feb 19 19:57:35 in general Feb 19 20:00:42 something like ActiveRecords for SQLite in android would be nice Feb 19 20:20:06 If I'd need to register a PhoneStateListener at boot and keep it always "registered", then a BroadCastReceivers onReceive() is the wrong place to register it? Feb 19 20:24:19 http://groups.google.com/group/android-developers/msg/bf19f451a10b3ff2 - Dianne said "This is really broken. Please read the documentation on broadcast Feb 19 20:24:20 receivers" Now I've read it multiple times but still don't see what exactly is badly broken :/ Feb 19 20:27:18 registering a PhoneStateListener is a one shot action - i'ts not asynchronous or something.. so this can't be the cause for the really broken thing(?) :) Feb 19 20:28:46 does the ImageView's imageUri allow jpg images? Feb 19 20:28:56 or is it just png? Feb 19 20:29:41 currently I'm doing exactly the same thing - registering the listener in onReceive() in a bootcomplete broadcastreceiver and as far as I can tell, everything is working - my listener is registered at boot and if there is some phone related activity going on later, my listener will be triggered. Feb 19 20:29:43 should do jpg/png/gif Feb 19 20:29:50 k thx Feb 19 20:30:16 so I don't see what's wrong doing it this way :( Feb 19 20:32:29 hey mpardo did you fix your problem? Feb 19 20:34:01 so, Cursor's also take care of unregistering Content Observers on it when it is closed, right? Feb 19 20:35:12 or nevermind, I'll look through the source more Feb 19 20:35:48 I was just assuming it did, since CursorAdapter also sets ContentObservers on the Cursor Feb 19 20:36:23 and the only way to clear the ContentObserver is to call changeCursor unless Cursor.close() takes care of unregistering the ContentObservers Feb 19 20:36:36 I'll just look through it some more Feb 19 20:38:28 i should know this already, but how do i turn on the loading icon in the title bar? Feb 19 20:38:47 the loading icon? Feb 19 20:40:21 there's a spinner that shows up in the title sometimes Feb 19 20:40:32 i've seen the code before but i dont remember where Feb 19 20:41:59 also, why wouldn't this work: imageView.setImageUri(Uri.parse("http://image.jpg")); Feb 19 20:44:55 because that's not a valid URI? Feb 19 20:45:04 unless there are some new TLDs i'm not aware of :P Feb 19 20:45:35 that's not the actual url Feb 19 20:45:51 the url is valid... i copy/pasted from debug Feb 19 20:46:24 maybe because it's s3? or does that not matter? Feb 19 20:46:56 and nvm about the "spinner" it's in the api demos Feb 19 21:25:28 is there a way to give an application permission for their ContentProvider to JOIN or directly query a table my database? Feb 19 21:25:34 *in Feb 19 21:27:06 I'm assuming not Feb 19 21:27:14 unless they have the same SharedUserId Feb 19 21:53:22 * jasta explodes trying to understand the android build system Feb 19 21:53:33 you should do what I did Feb 19 21:53:37 stop trying :) Feb 19 21:53:54 hehe Feb 19 21:54:09 i would like to, but i have a mission in here :) Feb 19 21:54:35 i just want to extend the htc dream product and like add some apps and some files to the build Feb 19 21:55:34 i understand product_copy_files and such, but how to make a simple extension of another prosduct and board is beyond me Feb 19 22:30:53 what i really dont understand is what causes BoardConfig.mk and Android.mk to be the make files that get run? something hardcoded that it just looks for these files in the same place as htc_dream.mk? Feb 19 22:34:09 jasta: It's in build/core/main.mk.. Feb 19 22:35:06 oh, so it is Feb 19 22:35:14 oh that clears up a LOT of things Feb 19 22:35:19 vendor/*$(TARGET_DEVICE)/... Feb 19 22:35:46 were you trying to make something under a different vendor with the same name? Feb 19 22:36:05 kind of. i was trying to extend vendor/htc/dream with vendor//foo Feb 19 22:36:34 mgrep is also yor frend, fyi. Feb 19 22:36:36 but i didnt understand what magic was necessary for BoardConfig.mk and Android.mk. now i see that i just need to include those files but have them include vendor/htc/dream/... Feb 19 22:37:56 thanks kRutOn Feb 19 22:38:38 np... and, yeah, jgrep, mgrep, resgrep are your friends Feb 19 22:39:05 sgrep Feb 19 22:39:07 so, to build the G1, are multiple vendor/ folders involved? Feb 19 22:39:14 i use sgrep more than the others put together Feb 19 22:39:14 there's one coming out called mindgrep that helps you remember stuff Feb 19 22:39:55 jasta: i wouldn't be surprised; there is vendor-provided stuff from both T-Mobile (MyFaves) and Google (Maps etc) for example Feb 19 22:40:18 but what about HTC? Feb 19 22:40:26 or is that stuff bundled in vendor/tmobile/? Feb 19 22:43:12 hmm, looking at chooseproduct i bet it is Feb 19 22:43:27 i bet there is a vendor/tmobile/g1/BoardConfig.mk, and not vendor/htc/dream/BoardConfig.mk Feb 19 22:44:11 or maybe the G1's BoardConfig.mk just includes anotehr one? Feb 20 02:05:45 hi all Feb 20 02:06:14 I'd like to hadle clicks in my surfaceview in my activity Feb 20 02:06:24 I made the activity implements OnClickListener Feb 20 02:06:34 but OnClick method is never called Feb 20 02:06:49 when I click the screen (with my mouse, I am using the emulator) Feb 20 02:07:01 what I am doing wrong? Feb 20 02:07:13 how do you set the click listener? Feb 20 02:07:59 mmmmmmmmmm romainguy _ I didnt Feb 20 02:08:07 I just implement the interface Feb 20 02:08:14 then it's not gonna work Feb 20 02:08:20 how can i fix it? Feb 20 02:08:29 you have to attach the listener to the view you want to listen to for clicks Feb 20 02:09:15 ho Feb 20 02:09:16 right Feb 20 02:09:45 could you point me some place to read about it or code example? Feb 20 02:10:24 look at the javadoc for View Feb 20 02:10:30 you'll see, it's pretty simple :) Feb 20 02:13:01 whenever someone says it's simple, it almost never is Feb 20 02:13:04 :) Feb 20 02:13:24 60% of the time, it works every time Feb 20 02:14:08 ok Feb 20 02:14:22 I have to call setOnClickListener and the View constructor Feb 20 02:14:26 here you go :) Feb 20 02:14:31 wich is the argument, the activity? Feb 20 02:14:40 the listener Feb 20 02:14:42 so yes, the activity Feb 20 02:14:54 ok... Feb 20 02:15:02 the class or the instance? Feb 20 02:16:30 the instance Feb 20 02:16:38 how can I get it? Feb 20 02:16:41 form attrs? Feb 20 02:16:45 uh? Feb 20 02:16:47 it's just this Feb 20 02:17:31 this? I am in the View code Feb 20 02:17:37 this is my View instance Feb 20 02:17:45 why are you in the view code? Feb 20 02:17:46 no my activity instance, as far as I can tell Feb 20 02:18:12 I am typing... setOnClickListener() in the View constructor Feb 20 02:18:17 wasnt that the idea? Feb 20 02:18:19 no Feb 20 02:18:24 ouch Feb 20 02:18:31 call that from the activity Feb 20 02:18:47 myView.set... ? Feb 20 02:19:10 yes Feb 20 02:19:30 here we go Feb 20 02:19:33 lets see if it works Feb 20 02:19:46 btw, thanks for your patient romainguy_ Feb 20 02:19:51 no pb :) Feb 20 02:19:59 it worked grat Feb 20 02:20:09 no my dice roll when I click the screen :D Feb 20 02:20:15 glad to hear that! Feb 20 02:21:50 antoher question about something it was very easy in pygame (my previous game dev platform) that I cant figure out here Feb 20 02:22:07 how can i get a solid color rect drawable? Feb 20 02:24:06 any idea? Feb 20 02:27:17 so at onClick you cant get the x,y postion of the click? You have to use OnTouch :( Feb 20 02:35:42 Juanjo-ar: and this makes sense when you consider onClick can be triggered by a DPAD or track ball Feb 20 02:35:57 only a touch can have position associated with it Feb 20 02:36:15 ok Feb 20 02:36:16 so Feb 20 02:36:44 to know the position of a onlongclick event I use ontouch and event.getdowntime, right jasta? Feb 20 02:37:12 just look at the source at how onlongclick is implemented in the first place. should give you a good idea what you should be doing Feb 20 02:53:28 thaks all Feb 20 02:53:30 good bye **** ENDING LOGGING AT Fri Feb 20 02:59:58 2009