**** BEGIN LOGGING AT Tue Mar 31 02:59:57 2009 Mar 31 03:00:14 mm , ok, Mar 31 03:00:16 thanks Mar 31 03:06:08 does anyonehere know how to develop for blackberry? Mar 31 09:35:35 hello everyone , i wanted to know if android has any web widgets like yahoo widgets . . . Mar 31 12:56:33 same rules apply as for Market in terms of signing AFAIK Mar 31 12:57:01 oh yeah.. nevermind, wrong spacetime again Mar 31 15:08:02 OpenGL question: I have a working project with an Activity showing some textured rectangles. However, when I use that Activity inside of a TabHost, it doesnt show textures anymore, but a white rectangle. Mar 31 15:08:20 How can I get the textures back? Mar 31 16:26:30 I'm trying to use FindViewById() and i am getting this: "Cannot make a static reference to the non-static method findViewById(int) from the type Activity" Mar 31 16:28:04 you are using Activity.findViewById(..) whereas you should just be using findViewById(..) in your Activity's instance methods Mar 31 16:30:38 does that make sense to you? Mar 31 16:30:52 ok. what i'm trying to basically do is append a TextView in the middle of another method. Mar 31 16:33:37 why don't you paste your code online somewhere and copy the link in here so we can better understand your situation and how you're using the method call incorrectly Mar 31 16:33:40 ok, i created a method in my activity instance... how do I call it? I tried just "appendLog(line);" but it says it's not a method in the class it's in Mar 31 16:33:59 how did you create the method? Mar 31 16:35:07 public void appendLog(String line) { Mar 31 16:35:22 it's under my: public class TestApp extends Activity { Mar 31 16:35:42 you should be able to say appendLog(line) then Mar 31 16:36:07 The method appendLog(String) is undefined for the type IrcConnection Mar 31 16:36:33 then appendLog is not being called within the TestApp class Mar 31 16:36:50 no, it's being called from within IrcConnection class Mar 31 16:36:59 thats what i'm a little confused on Mar 31 16:37:00 yea, you can't do that Mar 31 16:37:28 hrm... then how does one centralize a method that can be called from anywhere? Mar 31 16:37:52 centralize? Mar 31 16:37:53 you create the method as static Mar 31 16:37:59 ^^ Mar 31 16:38:12 BUT that might cause more problems because a static method can only use static variables Mar 31 16:38:20 not member variables Mar 31 16:38:33 ymmv ianal waico Mar 31 16:38:36 thats the problem i had as well.. Cannot make a static reference to the non-static field mText Mar 31 16:38:38 -_- Mar 31 16:39:08 and findViewById is non-static method Mar 31 16:39:22 correct Mar 31 16:39:30 you can always take the dark route of making a singleton Mar 31 16:39:35 what log is this that you are trying to write to? Mar 31 16:39:38 on which you can then call member variables Mar 31 16:40:13 well, i'm calling it a log... it's really not... it's a textview which will be a log Mar 31 16:40:33 basically, i want to append this textview (R.id.view3) from various method Mar 31 16:40:34 s Mar 31 16:44:47 mText = (TextView) findViewById(R.id.view3); mText.append(line+"\n"); Mar 31 16:54:49 fadden, morrildl: ping Mar 31 16:55:04 vol: ? Mar 31 16:55:18 pm Mar 31 16:57:36 is there a better way to write to a textview than finding it first? Mar 31 17:04:14 not really, you need a reference to it Mar 31 17:06:19 what if i did this: public TextView consoleLog; then under my OnCreate: consoleLog = (TextView)findViewById(R.id.view3); Mar 31 17:06:30 can i reference consoleLog anywhere else? Mar 31 17:06:58 uh, if you make it a member variable or find some way of accessing it, yes. Mar 31 17:07:20 if you make it static, it will be accessable to pretty much anyone, but in that road lies madness Mar 31 17:08:10 Where does the LOGV() output get stored/logged ? Mar 31 17:10:51 bilboed-pi: /dev/log, I think, or somewhere along those lines. Mar 31 17:11:00 will have a look Mar 31 17:11:34 jbq, looks like it has binary data in it Mar 31 17:12:18 ugh this static stuff is gonna get on my nerves Mar 31 17:47:36 HOla Mar 31 17:49:31 greetz Mar 31 17:49:56 sup Mar 31 18:18:09 Anyone have a link to the the android arm tool chain Mar 31 18:18:31 is there any way to get it apart from downloading the android source code Mar 31 18:18:44 im beind a proxy and repo wont work.... Mar 31 18:20:27 not as far as I know, sorry Mar 31 18:22:58 too bad they do not support http: in parallell to git: Mar 31 18:25:37 yeah, it's git only at present Mar 31 19:08:17 HOw long does the aproval process take for apps? Mar 31 19:12:36 there's no approval process Mar 31 19:13:59 0 seconds Mar 31 19:19:27 undefined Mar 31 19:20:05 If you need an approval process, I have a Vorgon-built application market you might like... Mar 31 19:20:41 er, Vogon Mar 31 19:29:53 does it read bad poetry? Mar 31 19:32:35 the worst Mar 31 19:33:38 excellent! Mar 31 19:34:05 bogon Mar 31 19:37:10 Google I/O -> "Android Lightning Talks" -> "... If you've done a cool hack involving Android ..." <--did they just say my name?! :P Mar 31 19:37:19 no Mar 31 19:37:21 oh.no.. they are talking about cool hacks :P Mar 31 19:37:23 you're forbidden :p Mar 31 19:38:35 ... Mar 31 19:38:39 anyway, I plan to attend "Turbo-charge your UI: How to make your Android UI fast and efficient" if somebody can find a way to send me over to the US :P I'll use a fake name ofcourse :P Mar 31 19:38:41 when is I/O? Mar 31 19:38:59 tauno: the talks are videoed Mar 31 19:39:11 bah, may 27th and in san fran too Mar 31 19:39:15 no NYC version : ( Mar 31 19:40:46 TD - shhh.. I better don't it to my boss :)) Mar 31 19:41:55 mention Mar 31 19:42:21 anyway, looking forward to it (be it on video or live) :) Mar 31 19:44:14 looking forward to the next romainguy blog entry :) Mar 31 19:45:43 me too. although i hope they migrate into the sdk docs at some point. Mar 31 19:45:53 there's a lot there that makes sense to document permanently. Mar 31 19:46:00 blogs are very transient Mar 31 19:46:04 contributions are welcome :) Mar 31 19:48:47 romainguy_: http://mpt.net.nz/archive/2008/08/01/free-software-usability Mar 31 19:48:49 see #3 Mar 31 19:49:14 except we're not talking about usability Mar 31 19:49:23 I would certainly not say this to a UX/UI designer :) Mar 31 19:49:31 but when it comes to adding stuff to the documentation... Mar 31 19:49:40 eh. Mar 31 19:49:40 Hey guys. Mar 31 19:50:01 I just tend to take umbrage at the "patches welcome" attitude, which implies "idgaf" Mar 31 19:50:34 no Mar 31 19:50:44 it implies that I'm already working way more than I should Mar 31 19:50:49 : ( Mar 31 19:50:54 and that open source projects go both ways Mar 31 19:51:59 anyone have any tips for having 2 different versions of one project on the market? (ie, lite and paid)? Mar 31 19:52:09 the package name needs to change right? Mar 31 19:52:32 cert can be the same? Mar 31 19:53:58 romainguy, can "outsiders" also contribute to the blog @ d.android.com? Mar 31 19:54:24 no idea but I don't think why it wouldn't be possibe Mar 31 19:54:26 possible Mar 31 19:54:31 er Mar 31 19:54:40 I don't see why it wouldn't be possible Mar 31 19:54:51 zhobbs: I'm pulling this out of my butt, but I think you just need to change the package name Mar 31 19:55:15 zhobbs: the signature is just on a per-developer basis, so you can have the same sig for multiple apps Mar 31 19:55:28 Even, I think same. Mar 31 19:55:47 vol: you're just parroting jeff atwood :P Mar 31 19:56:15 vol just got served! Mar 31 19:56:54 yeah, so there's no reason to keep the 2 version in separate branches (all the same except different package names and 1 constant flipped)...so any tips on how to build/branch? Mar 31 19:57:12 maybe I am, but I do find the "patches welcome" attitude abrasive. Mar 31 19:57:39 sorry for that Mar 31 19:57:42 but patches *are* welcome :) Mar 31 20:24:10 zhobbs_: yes, you will need different package names for lite and paid, the market back-end won't allow you to upload an application if it matches and existing package name. Mar 31 20:25:01 well it didn't last time i tried, it may have changed recently (doubtful) Mar 31 20:26:56 jt436: thanks...now just trying to figure out the best way to do that Mar 31 20:28:46 non automated approach: boolean flag, right click in eclipse and refactor class, update manifest or write an ant script ;) Mar 31 20:29:35 yeah, I probably need to write a script Mar 31 20:30:15 I changed the package name the other day of a branch (unrelated), and there are a lot of references to change (aidl, xml references to custom views, etc) Mar 31 20:30:42 custom xml namespaces...etc Mar 31 20:31:25 Did anyone try to do a voip client ? Mar 31 20:31:54 someone posted a voip client on xda forums (well a video that is) Mar 31 20:32:31 sipdroid one Mar 31 20:32:32 ? Mar 31 20:34:05 http://www.youtube.com/watch?v=b5Igo7brlRo Mar 31 20:34:08 http://forum.xda-developers.com/showthread.php?t=499327 Mar 31 20:34:43 Yeah, I saw that Mar 31 20:34:58 Guess he is using cupcake there Mar 31 20:35:17 according to SDK 1.1 we cannot record voice into buffer Mar 31 20:35:22 only to a file is possible. Mar 31 20:35:33 yea i understand smth like that Mar 31 20:35:40 only record to a file Mar 31 20:35:41 vol: i hear you. in cases like this i suspect the longer answer is "yes, we're aware that the documentation can and should be improved. we don't necessarily know what is most in need of work until we get feedback like this, which we appreciate. also, and very unfortunately, the engineers on Android write a lot of the docs themselves, and since the engineers have (ahem) not much in the way of time available for non-code work, docs work Mar 31 20:35:53 hm. i guess "longer" was not an understatement. Mar 31 20:36:50 sorry for writing a novel there Mar 31 20:38:05 you guys could use a librarian Mar 31 20:38:14 yes Mar 31 20:38:55 we do have some dedicated docs folks, iirc, but of course they're also swamped, and there's no escaping the need for the engineers who know the code to produce the documentation for that code Mar 31 20:39:04 are you familiar with Apple's "Inside Macintosh" documentation series? Mar 31 20:39:16 it's justly famous for being about the best platform API documentation ever produced Mar 31 20:39:36 many years after i learned to program the Mac i heard the story of how it came into existence Mar 31 20:39:48 Apple literally assigned a doc writer to ever single platform engineer Mar 31 20:40:05 who sat there with the engineer and wrote up the docs on whatever that engineer worked on Mar 31 20:40:09 (!!!) Mar 31 20:41:22 legend has it that some teams in some companies work in groups of 3 on the same code: one software engineer, one quality engineer, one tech writer. Mar 31 20:41:24 Counting the number of things Google is working, they should also consider some option like that. Mar 31 20:42:36 If there was a line of many many many good tech writers outside the building and willing to work for free, I'm sure we would do it. Mar 31 20:42:50 (or quality engineers) Mar 31 20:43:43 interns!! Mar 31 20:43:55 Who would love to work for Google ;) Mar 31 20:45:53 (for free) Mar 31 20:46:04 well, for food. Mar 31 20:46:08 it's Google, after all. Mar 31 20:46:11 (dumpster provided) Mar 31 20:46:26 ask him: http://www.html4.com/mime/jpg/Will_code_HTML_for_food.jpg Mar 31 20:46:47 vol: recycling and composting, if you please. Mar 31 20:46:56 indeed Mar 31 21:03:17 Is acquiring a lock particularly expensive in Dalvik? Mar 31 21:07:09 what kind of lock Mar 31 21:09:42 a simple lock? Mar 31 21:09:46 synchornized() Mar 31 21:09:50 monitor Mar 31 21:09:51 I guess Mar 31 21:10:09 oh Mar 31 21:10:13 not sure, not that bad anyway Mar 31 21:15:38 Yeah Mar 31 21:15:49 JLS says they have to be reentrant so double win Mar 31 21:15:50 hehe Mar 31 21:17:53 it isn't particularly expensive, but of course requiring no synchronization is preferred over having to use it Mar 31 21:18:06 that said, browse through the sources sometime :) Mar 31 21:55:49 ctate: I am a little bit. Mar 31 21:56:04 ctate: It's implementing a lib that requires synchronization even though the app using it doesn't require it. Mar 31 22:05:11 zhobbs, the problem is that interns are far from ideal technical writers. Mar 31 22:06:02 zhobbs, as a cynic I'd say that good technical writers are rather seldom and have usually quite a bit of job security ;) Mar 31 22:35:46 I'm having trouble figuring out how to use android.r.drawable.ic_popup_sync_* in an animated rotation, can someone point me in the right direction? Mar 31 22:35:46 does any one know what the unit of the rate argument in SensorManager.registerListener(SensorListener, int, int) is? Mar 31 22:36:59 I should probably specify that I'm not trying to rotate a single image, I'm trying to alternate between 6 different images which will provide a rotation effect Mar 31 22:43:56 the answer is I do not know for both questions. Mar 31 22:44:33 huh, the docs do not give the units for the rate. shame! Mar 31 22:45:06 the 'rate' argument is one of the SENSOR_DELAY_* constants Mar 31 22:45:50 Jake-Federico: (ping, i just answered your question :) ) Mar 31 22:48:09 yeah figured that out Mar 31 22:48:12 and then felt stupid Mar 31 22:48:13 :-p Mar 31 22:48:24 thanks for responding though Mar 31 22:49:01 the docs could be a bit more explicit though Mar 31 22:58:59 Notexc. Mar 31 22:59:05 stupid fingers. "Noted." Mar 31 23:40:37 hm... Mar 31 23:40:46 With Android's Rect class... Mar 31 23:40:52 positive y is down right? Mar 31 23:41:38 yeah Mar 31 23:45:44 hm Apr 01 00:40:06 ugh Apr 01 00:40:12 where is the android source code to Rect? Apr 01 00:41:38 in Rect.java of course :) Apr 01 00:41:40 * ctate ducks Apr 01 00:43:37 svm_invictvs: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=graphics/java/android/graphics/Rect.java;h=20053449c87ba5693c21a34e5bfaac9b3658e367;hb=HEAD Apr 01 01:30:02 who here uses streamfurious? Apr 01 02:07:20 My main activity is a tabactivity and the contents of the tabs load from the internet, because of this they it takes a few seconds to populate the data, during that time I would like to create a loading view and switch it when the data has finished loading. I have created a class which manages the loading icon (a subclass of view), my question is how do I alter the contents of the tab and change their views? Apr 01 02:07:53 I've tried to store the tabspec as a class variable and change it's contents once the data has been loaded, but I get overlay problems Apr 01 02:08:03 big paragraphs! lol Apr 01 02:08:06 sorry Apr 01 02:08:17 i felt I needed to explain it throughly Apr 01 02:08:24 probably went a little over board Apr 01 02:09:28 romainguy_, you around? I'm curious how you made this video: http://progx.org/users/Gfx/shelves/shelves.mov Apr 01 02:10:40 KNY: with a screen recorder? Apr 01 02:10:59 AakashPatel, but that's not the emulator, unless they changed it in head Apr 01 02:11:08 "head" being the git repo Apr 01 02:11:17 it has a mouse pointer? Apr 01 02:11:27 AakashPatel, the default one doesn't show a charging battery Apr 01 02:11:47 oh...so he's controling it with his comp? Apr 01 02:11:48 the phone? Apr 01 02:11:52 AakashPatel, I'm wondering if he has some special phone that lets him interact with it like the emulator Apr 01 02:12:03 O.O Apr 01 02:12:29 it might just be the new emulator since it has the on-screen keyboard Apr 01 02:12:42 but I figured I'd just ask him rather than guessing haha Apr 01 02:12:57 lol its funner guessing Apr 01 02:13:05 thats 1.5 for sure Apr 01 02:13:22 wesw02: you could View.invisible the webview until loaded? Apr 01 02:13:33 and have a loading message underneith it? Apr 01 02:14:03 that was my thought Apr 01 02:14:11 I wasn't sure it there was a better way to do it Apr 01 02:14:12 thats somewhat how ListActivity works--it hides the @android:id/list, allowing a @android:id/empty to show through until an adapter has items Apr 01 02:14:24 and ListActivity is used all over the place Apr 01 02:15:02 actually, you might consider putting the loading message as an overlay on top of the webview Apr 01 02:15:12 *so in front of the webview instead of behind Apr 01 02:15:18 with a nice 50% alpha background Apr 01 02:15:27 so users can still see stuff partially loaded in background Apr 01 02:16:01 oh like that Apr 01 02:16:24 I still have some reading to do, but that points me in the right directions Apr 01 02:16:25 thanks Apr 01 02:16:34 so one question then Apr 01 02:17:04 what do I set as the contents of the tab, the list view or the loading message? Apr 01 02:35:09 jsharkey, okay got it working, just need to tweak it some, thanks for the advice :) Apr 01 02:50:04 Does anyone know of an active project to run linux on the G1 (not on top of android) Apr 01 02:50:20 er what? Apr 01 02:50:28 android is on top of linux Apr 01 02:50:34 there's a port of debian Apr 01 02:50:42 it runs the linux kernel Apr 01 02:51:00 right, but the enviornment isn't the same as a standard linux system... it's not the full thing. Apr 01 02:51:30 debian? Apr 01 02:51:51 I know about that... but it runs on top of android. Apr 01 02:51:55 theres a standard linux system? Apr 01 02:51:58 no not on top Apr 01 02:52:06 it's real honest to god linux Apr 01 02:52:18 you can run ssh servers, apache, etc. Apr 01 02:52:32 think you may have to boot it from android... Apr 01 02:52:34 not sure tho Apr 01 02:52:59 You know, your right. It doesn't run on top. I have played around with it a lot and I should have known that. Apr 01 02:53:25 The problem is, android's gui consumes too much cpu power Apr 01 02:53:42 is there a way to lighten it up or just kill it temporarily? Apr 01 02:53:51 wish we could port Apr 01 02:53:55 navit to android Apr 01 02:53:56 :/ Apr 01 02:54:05 ITechJunkie: Android runs on top of a standard Linux kernel Apr 01 02:54:07 trying to get it working in debian on android Apr 01 02:54:18 suppose i could make some wrapper Apr 01 02:54:22 android stack is, from the app point of view, hardware -> linux -> davlik -> java Apr 01 02:54:22 that requires debian Apr 01 02:54:25 right? Apr 01 02:54:26 but that would suck Apr 01 02:54:44 djb: not entirely, no Apr 01 02:55:05 could you correct where I stray? Apr 01 02:55:06 djb: some of the hardware interaction is userspace Apr 01 02:55:17 zinx: yeah, is there a way to disable android's gui? Apr 01 02:55:43 I feel like i'm not effectively expressing my question... Apr 01 02:55:44 ITechJunkie: sure, check the recovery image Apr 01 02:55:51 zinx: so davlik comms directly with the hardware? Apr 01 02:55:55 ITechJunkie: it doesn't even have dalvik on it Apr 01 02:56:16 djb: the framework communicates with JNI stuff which loads the hardware interface libraries Apr 01 02:56:22 zinx: I'll do that Apr 01 02:56:31 djb: the camera, gps, radio, and i dunno what else is accessed that way Apr 01 02:56:48 interesting Apr 01 02:56:54 djb: the interface libraries access raw /dev/* stuff, and possibly other more evil things :/ Apr 01 02:57:04 the ones for the Dream are closed source Apr 01 02:57:05 seems like that should be integrated in to the os Apr 01 02:57:10 yeah there's some other software installed besides dalvik Apr 01 02:57:53 ITechJunkie: anyway, there's nothing stopping you from booting a standard distribution, except lack of appropriate graphics drivers if you want to run X or something Apr 01 02:58:19 wonder if the openmoko guys have done anything for htc phones Apr 01 02:59:00 I think their stack is a little more like a traditional linux distro Apr 01 02:59:06 i doubt the openmoko guys are interested in proprietary phones **** ENDING LOGGING AT Wed Apr 01 02:59:57 2009