**** BEGIN LOGGING AT Sun May 24 02:59:57 2009 May 24 03:02:00 Awesome. Restoring main.xml from another default "Hello, World" project tells me I can't resolve R.layout.main now. May 24 03:02:06 * _Auron_ hums.. May 24 03:02:16 pawbie, you're doing something else wrong May 24 03:02:45 Copying in the default main.xml and not being able to resolve R.layout.main makes me think there's something else going on here. May 24 03:03:08 pawbie, can you check whether any R is imported in your import section? May 24 03:03:22 <_Auron_> when my activity resumes, it tells the glview to resume, which tells the glthread to resume, which does nofify(); May 24 03:03:28 <_Auron_> is there anything else that's supposed to be done? May 24 03:04:13 pawbie, clean your project May 24 03:04:41 It works now. Completely recreated a new project and just cut and paste the old project into it. May 24 03:04:48 Figure that one out. May 24 03:05:12 sammyF: There was no import for android.R or similar. May 24 03:05:32 I wonder which icon I should use for a start / stop menu item May 24 03:06:41 pawbie: that's how it should be actually. I just had it one that it was importing R from android and it was screwingg a lot ofthings majorly May 24 03:07:05 * sammyF is going to kill his cat someday May 24 03:07:11 sammyF: Ya, that's how it was. I'm guessing there has to be something wrong with either this instance of eclipse, the android SDK, or the planets were aligned wrong. May 24 03:07:33 The exact same code is now working 100% when pasted into a brand new project. Same main.xml, same GLTest.java, same everything. May 24 03:08:09 pawbie: Eclipse can be irritating at times May 24 03:08:53 sammyF: irritating, you mean like eventually using all my memory so my machine grinds to a halt? May 24 03:10:35 calamari: more "irritating by doing stuff in the background you never (knowingly) asked it to do" May 24 03:11:28 sammyF: I guess this is what javaOS would have been like :) May 24 03:14:25 after some time it's really not that bad though May 24 03:14:42 and I used to hate java May 24 03:16:38 ....can has C++ now please? May 24 03:17:50 <_Auron_> sammyF: same May 24 03:18:18 <_Auron_> I just wish I could fix this problem.. someone said to use onSaveInstanceState? May 24 03:19:28 _Auron_: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); May 24 03:19:46 sammyF: you've already killed the cat if you put him in that box with plutonium May 24 03:20:35 skyPhyr: nah .. as long as I don't actually LOOK in it, it's okay :P May 24 03:20:49 :D May 24 03:20:51 skyPhyr: I wonder how long that applies if I don't start actually FEEDING the cat though :P May 24 03:21:28 I don't believe Schrodinger addressed when noise stops coming from the box May 24 03:21:53 <_Auron_> pawbie: I already have that May 24 03:22:06 <_Auron_> wasn't sure if you meant somewhere else as well May 24 03:22:35 should put a box label Schodinger's cat in a time capsule with a label - do not open. May 24 03:22:46 skyPhyr: that's an idea ;) May 24 03:22:53 pawbie: sure, just write a backend for gcc :) May 24 03:23:10 _Auron_: Do you have a Renderer with onSurfaceChanged() defined? May 24 03:24:33 <_Auron_> GLSurfaceView.java has surfaceChanged(), but not onSurfaceChange() May 24 03:25:09 <_Auron_> .... hm May 24 03:25:14 _Auron_: I think you need onSurfaceChanged() and onSurfaceCreated().... May 24 03:26:00 If I had to guess, you're never recreating your GLView when the program is backgrounded or restarted. But I don't know anything, I can't even make resource ID's.. ;) May 24 03:26:06 <_Auron_> er actually, that's not under renderer in GLSurfaceView.java May 24 03:26:17 <_Auron_> wait, May 24 03:26:39 <_Auron_> it has surfaceCreated() and sizeChanged() May 24 03:28:00 Pretty sure they need to override the on* methods. May 24 03:29:03 <_Auron_> ¯\(°_o)/¯ May 24 03:32:51 The theme thing in the UI editor doesn't seem to work. How do you disable the Title bar for the app? May 24 03:35:06 aha, requestWindowFeature()... May 24 03:36:50 do that in the theme May 24 03:36:57 doing it via requestWindowFeature is not as nice May 24 03:37:10 romainguy: How? The Theme drop down in the UI editor doesn't seem to have any effect. May 24 03:37:27 the drop down is for preview May 24 03:37:31 the theme is set in the manifest May 24 03:39:22 I see... But the Browse button gives me a blank dialog. May 24 03:39:28 has anyone else noticed a huge memory leak when using the WYSIWYG editor? May 24 03:39:49 pawbie: just add the theme in the XML May 24 03:39:58 if I even let it open (not use it), xorg will eventually consume vast amounts of RAM (multiple gigs) May 24 03:40:29 romainguy: Ah, ok. I thought there might be predefined ones. May 24 03:40:35 there are predefined ones May 24 03:40:51 just look at the samples or search on the Android Google groups May 24 03:43:51 romainguy: sorry to bother you too, but is it known that the trackball seriously screws up the Orientation sensor? May 24 03:44:03 the trackball? May 24 03:44:10 wth are you talking about? May 24 03:44:27 well .. actually it's not a google problem but a T-mobile one May 24 03:44:42 what are you talking about? May 24 03:44:44 sammyF, how does one reproduce this? May 24 03:44:59 on the G1, if you roll the trackball, the orientation sensor registers stron movements May 24 03:45:28 wow, he's right May 24 03:45:30 KNY: get the labyrinth light game for example, put it on a table, and then roll the trackball fast upward with a finger May 24 03:45:32 <_Auron_> pawbie: the on* methods are from 1.5 and included in the 1.5 sdk... May 24 03:45:40 <_Auron_> under android.opengl May 24 03:45:42 sammyF, I can dupe it with pin it May 24 03:45:49 KNY: the ball will start flying all over the level May 24 03:46:10 that's really weird May 24 03:46:18 KNY: yeah, but as I wrote it, I wasn't sure it wasn't something I'd screwed up. that's why I tried it with labyrinth May 24 03:46:23 _Auron_: Oh. I started this project prior to 1.4, and the on* methods were in the Google Cube project. May 24 03:46:29 * _Auron_ blinks May 24 03:47:11 KNY: I don't know if it's just hte vibration, or whether the rolling causes some weird magnetic effect which screws up with teh sensors though May 24 03:47:11 <_Auron_> hmm May 24 03:47:14 <_Auron_> wtf then o.O May 24 03:47:40 sammyF, it doesn't seem to be vibration May 24 03:48:18 <_Auron_> where the hell did I get my GLSurfaceView.java then o.O May 24 03:48:20 really weird. May 24 03:48:35 KNY, the speaker does the same thing btw ;) May 24 03:48:43 <_Auron_> my code is based off the triangle one May 24 03:48:53 sammyF, it sets off the accelerometers? May 24 03:49:19 KNY, try it in pinit. if you tap the screen as soon as you finish a level, the next level should be loaded before the whole offkey fanfare ends. May 24 03:49:22 watch the balls fly ;) May 24 03:49:48 I've never finished a levl May 24 03:49:51 level* May 24 03:50:04 at least I have a good excuse if people commain that I don't have any music in my game ;) May 24 03:50:09 haha May 24 03:50:10 KNY: tss ;) May 24 03:50:11 <_Auron_> damnit, google took it off May 24 03:50:33 if I buy an app, rate it, and then get a refund, does the rating stick? May 24 03:50:40 <_Auron_> I got it from the sample code they have but they rewrote all the code they have and just import android.opengl.GLSurfaceView May 24 03:50:56 <_Auron_> well I guess since everyone is getting 1.5 now/soon, might as well switch. May 24 03:51:50 romainguy, sammyF, it's extremely noticeable in the "Bubble" app May 24 03:52:05 don't touch the trackball then ^^ May 24 03:52:11 haha May 24 03:52:51 good find though, sammyF. Have you written it up on b.android.com ? May 24 03:53:26 KNY: you can report it on b.android.com but there's nothing we can do about it May 24 03:53:33 if it's hardware... May 24 03:53:51 romainguy: yeah .. sorry. realized the moment I asked you ;) May 24 03:53:53 romainguy, is there a b.t-mobile.com? May 24 03:54:00 KNY: ask T-Mobile or HTC May 24 03:54:13 T-Mobile has support forums May 24 03:54:25 romainguy, not that I'm disagreeing with you, but I can pretty much guarantee they'd say "tell Google/Android" :) May 24 03:54:49 we still cannot do much about it :) May 24 03:56:00 well, it's not guaranteed that it's a hardware issue May 24 03:56:15 what, poking through driver code doesn't sound like fun? May 24 03:56:56 KNY, romainguy: a good one is also to try playing music while you're using an application which uses the sensors ;) May 24 03:57:13 sammyF: ? May 24 03:57:21 just tried it in labyrinth .. the ball *dances* :) May 24 03:57:24 romainguy, it messes with the accelerometers as well May 24 03:57:28 ah May 24 03:57:28 could make for some fun application though May 24 03:58:21 this is weird May 24 03:58:26 what a strange bug/defect May 24 03:59:56 a speaker is just a big magnet May 24 04:00:06 KNY: well ... I guess the sensors use some magnetic field measurement ... what romainguy said :) May 24 04:00:23 right, I understand all of that May 24 04:00:31 but it's strange that it wasn't noticed May 24 04:00:49 maybe it was, but they decided it wasn't a big deal May 24 04:00:58 the trackball one is stranger than the speaker, IMO May 24 04:01:36 KNY: I only noticed because my game relies completely on the sensors, and somebody I was showing it tried to use the trackball May 24 04:01:47 heh May 24 04:02:24 KNY: ask HTC :) May 24 04:02:30 on the other hand, one could write a funky visualizer May 24 04:02:47 no need to analyse the music ... just use the sensor's input to create movement ;) May 24 04:03:10 sammyF, of course, you'd have to have the device completely still May 24 04:03:57 "Something is wrong with my display; it goes dark after a few minutes of inactivity but my device is still powered on. What is happening? " May 24 04:04:02 KNY, from what I've seen, the magnetic field of the speaker anihilates any other value ;) May 24 04:04:03 that's one of HTC's top FAQs? May 24 04:04:55 sammyF, when I was testing with Bubble, it was neat because you could tell which direction the speaker was from the accelerometer May 24 04:05:03 because the bubble was always pulled in the same direction May 24 04:05:31 hehe May 24 04:08:55 <_Auron_> what the hell?! May 24 04:09:05 <_Auron_> why is 1.5's SDK package different? May 24 04:10:21 <_Auron_> do I have to completely redo eclipse now? May 24 04:10:22 <_Auron_> omfg May 24 04:10:33 _Auron_, you need the new ADT May 24 04:10:40 it's not the end of the world May 24 04:11:27 <_Auron_> the new ADT? May 24 04:11:41 <_Auron_> isn't it in the SDK? May 24 04:11:43 there's a new ADT plugin for eclipse May 24 04:11:47 no, they're separate downloads May 24 04:11:51 read the documentation May 24 04:12:04 <_Auron_> oh nm May 24 04:13:49 <_Auron_> I completely forgot I even did that stuff when I started May 24 04:13:54 <_Auron_> which was over a month ago May 24 04:14:52 <_Auron_> thanks May 24 04:23:50 Hello there! May 24 04:24:00 yo May 24 04:24:17 I need help :( May 24 04:24:42 Whenever I try to send a serialized object from android to a server the server gets a StreamCorruptedException: invalid type AC May 24 04:24:58 I have troubles finding out what that means. I couldn't find anything online. May 24 04:25:06 guest4728: first of all, and because it's late here and I'm getting cranky, try /nick YOUR_CHOOSEN_NICKNAME :) May 24 04:25:08 <_Auron_> okay so I have 1.5 and it requires on*, but it's still doing the same thing May 24 04:25:14 <_Auron_> on* methods I mean May 24 04:25:27 <_Auron_> and I figured this'd be the case May 24 04:25:47 iforgotmypwd: way better ;) May 24 04:25:53 :D May 24 04:26:26 Well, I think that my problem has something to do with android; When I use the same code to send something from a normal java app to the server it works. May 24 04:26:39 So, is there a special trick to send serialized objects from android to a java app? May 24 04:28:04 iforgotmypwd: sorry. I'm completely unknowledgeable in this area :/ May 24 04:29:55 <_Auron_> pawbie: using 1.5's built-in GLSurfaceView and renamed my methods, but it's still doing the same thing May 24 04:30:41 Hm. Do you know of any other ways to send objects from android to a server and back? My understanding is that Remote Method Invocation is not included, so the only other way that came to my mind was sockets and serialized objects. :-/ May 24 04:32:25 _Auron_: I dunno :\ May 24 04:32:35 <_Auron_> hum :| May 24 04:32:50 <_Auron_> it's not important until I'm done with my game, but it still troubles me. May 24 04:35:36 what layout or method do I use to overlay a button over other layouts? May 24 04:35:43 FrameLayout May 24 04:37:49 ty May 24 04:40:02 Is there a style for full screen? May 24 04:40:15 Isn't it fullscreen by default? May 24 04:40:30 full screen is default May 24 04:41:01 hm. I thought fullscreen included removing the notification bar/clock. May 24 04:41:22 pawbie: yes there is May 24 04:44:51 can I modify compile settings somewhere? May 24 04:45:14 romainguy: ...what is it? May 24 04:45:36 pawbie: dude, http://www.google.com/search?client=safari&rls=en-us&q=android+full+screen+theme&ie=UTF-8&oe=UTF-8 May 24 04:47:18 eek May 24 04:48:48 Has ANYONE succeeded in sending serialised objects from android to a java app (server)? May 24 04:52:01 And what is "type: AC" (for objects)? May 24 04:52:24 Could it be possible that android and normal java use incompatible serializations? May 24 04:52:50 iforgotmypwd: I think you might be out of luck at that time of day :/ May 24 04:53:09 iforgotmypwd, serialized Strings, sure ;) May 24 04:55:09 Hmpf. I just hope I don't have to devise a codec that turns objects into base64 strings so I can send them... May 24 04:55:21 KNY: want to see a good sign that one should java be java and go to sleep May 24 04:55:23 http://pastebin.com/d37dd3ea8 May 24 04:55:33 should "let" even May 24 04:55:48 Cool, first five pages of Google search results just show me how to use a predefined theme rather than the item name of the fullscreen layout attribute. Whatever. May 24 04:55:54 sammF: Unfortunately I live in Australia, so when I came to your chat last night it was 5 am in the morning. And now its morning here and all you guys are asleep already... :-/ May 24 04:56:05 sammyF, haha, seems like those loops might have trouble terminating.. May 24 04:56:10 iforgotmypwd: or should be asleep ;) May 24 04:56:34 KNY: nah. terminating is the least of their problems. they just don't run for a very long time ;) May 24 04:56:37 iforgotmypwd, perhaps the android-developers Google Group would be better for you May 24 04:56:59 Thank you very much, I'll check that out. May 24 04:56:59 sammyF, err, yeah May 24 04:57:02 perhaps I should get to bed, too May 24 04:57:14 lol May 24 04:57:58 Alright, thank you for trying to help me. Bye everyone! May 24 04:58:23 iforgotmypwd: really sorry. i just don't know anything about servers and serialization, especially not in java :( May 24 04:59:14 fixing the loops and I'm off too May 24 04:59:57 For the record, it's android:WindowFullscreen May 24 05:00:06 er, lowercase 'w' May 24 05:00:18 no that's not the theme May 24 05:00:23 that's the attribtue to use in your theme May 24 05:00:26 but there's a built-in theme May 24 05:00:44 android:theme="@android:style/Theme.NoTitleBar.Fullscreen" May 24 05:00:55 that you can find in the first result of the google search I just gave you May 24 05:02:57 My mistake, I asked for a style instead of a style attribute. It's solved. May 24 05:09:21 night everybody May 24 05:24:26 using frame layout to try float a button above a few other layouts (table and scrollview) but it keeps getting buried May 24 05:24:31 the button does May 24 05:24:44 any idea how to unbury the button? May 24 05:48:26 buried? May 24 05:58:31 I take it that HorizontalScrollView is not present in 1.1? May 24 06:06:40 it's 1.5 only May 24 06:33:26 romainguy: is there anything I can do in 1.1 to duplicate it? May 24 06:33:37 copy the source code May 24 06:34:13 sure, why not? :) worth a try May 24 06:34:17 thanks May 24 06:46:16 I passed the context from a PreferenceActivity to a preference, in the preference's onclick I can't seem start a subactivity, it doesn't find the method May 24 06:46:23 am I doing something stupid/wrong May 24 06:47:41 isn't the getappcontext() not enough? May 24 06:50:30 tried that. May 24 06:50:55 http://dpaste.com/47120/ May 24 06:51:14 line 46, i'd like to start a subactivity May 24 06:52:19 what's the error? May 24 06:52:51 one moment May 24 06:54:01 http://dpaste.com/47124/ May 24 06:54:08 cannot find symbol May 24 06:54:54 have you defined 'c' May 24 06:55:25 right above it. May 24 06:55:26 is there a startsubactivity anywhere? May 24 06:55:38 http://dpaste.com/47120/ May 24 06:55:58 no, i thought it was startactivity only.. may be i'm wrong May 24 06:56:10 i'm pretty sure i used this about 2 months ago May 24 06:56:23 essentially i want to get some basic return data from an activity. May 24 06:56:32 startactivityforresult May 24 06:56:39 mmm May 24 06:57:38 http://developer.android.com/reference/android/app/Activity.html#startActivityForResult(android.content.Intent,%20int) May 24 06:58:59 testing. May 24 07:06:52 same error.. cant resolve the name May 24 07:07:10 cannot find symbol May 24 07:07:22 symbol : method startActivityForResult(android.content.Intent,int) May 24 07:08:10 make sure you get the appropriate context May 24 07:13:53 what is the appropriate context ? May 24 07:15:29 you can pass the activity as the context May 24 07:16:35 when you create the intent ? May 24 07:18:55 muthu_, i'm sorry for these simple questions, im' trying hard to pay attention. May 24 07:19:27 within an activity, you can start other activities May 24 07:19:48 or pass the activity around, but i'm not sure if that's the right design May 24 07:21:30 muthu_, i'm just interested in having it work May 24 07:27:04 my this is frustrating. May 24 07:28:04 why don't you do the startactivity block in your preferenceactivity? May 24 07:29:16 it is my understanding that i need to call startActivityForResult so that I can get the return value from the activity. May 24 07:29:30 yes May 24 07:29:35 but you do that from an activity May 24 07:29:39 not from a view May 24 07:29:46 ok May 24 07:29:58 all activity related code must be inside another activity May 24 07:30:23 * wmealing_ thinks May 24 07:30:39 now you are tinkering activities from view May 24 07:30:49 so the appropriate context is not available May 24 07:31:27 i would keep the startactivityforresult code block in the preferenceactivity and not in preference May 24 07:32:42 muthu_, this may take a while. May 24 07:44:35 its always more stupider than it has to be. May 24 07:56:47 yawn May 24 08:00:59 muthu_, i think that did it May 24 08:01:05 your assistance is appreciated. May 24 08:01:21 glad it helped May 24 08:01:27 yo jasta May 24 08:01:30 what's up? May 24 08:15:08 Is the SUBSYSTEM value 'usb' for Ubuntu 9.10? May 24 08:15:36 I'm trying to figure out if udev is not finding my device because of mass storage or if my SUBSYSTEM value is wrong. May 24 08:42:11 hi, when I try and run an old 1.2 app on 1.5 eclipse I get "r cannot be resolved" - do I need to delete my "gen" directory? May 24 08:42:36 1.2? :) May 24 08:42:47 but yeah, delete any R.java you have May 24 08:42:53 or in Eclipse to a clean build May 24 08:43:47 sorry, numbering confusion May 24 08:44:17 how do I do a clean build? May 24 08:44:53 "failed to find a compatible avd"... May 24 08:44:54 look in the menus May 24 08:45:32 muthu_, do you know why the context (even though its passed in, and obtained via getcontext() is incorrect ? May 24 08:45:41 ok thanks May 24 09:23:32 anyone used jetcreator.py May 24 09:23:35 ? May 24 09:23:42 I can't find it you see. May 24 09:41:07 how long is Toast.LENGTH_LONG? is it defined anywhere in the documentation? I can't seem to find it :( May 24 09:46:08 * wmealing_ uses his grep fu May 24 09:46:23 Rexxars, where are you reading it May 24 09:47:24 Rexxars, LENGTH__LONG seems very.... unintuitive for a name. May 24 09:48:39 http://developer.android.com/reference/android/widget/Toast.html#LENGTH_LONG May 24 09:48:44 public static final int LENGTH_LONG = 1; May 24 09:48:59 * Show the view or text notification for a long period of time. This time May 24 09:49:00 * could be user-definable. May 24 09:49:00 * @see #setDuration May 24 09:49:13 LENGTH_SHORT is 0.. but it's longer than 0 seconds long :p May 24 09:49:29 i dont imagine the number has a unit May 24 09:49:50 well, it must be defined somewhere how long "long" means... 3 seconds? 5 seconds? May 24 09:50:03 do a getDuration() perhaps ? May 24 09:50:32 that still only gives me the constant, not the actual length in milliseconds May 24 09:50:52 guess I'll try to time it manually, heh May 24 09:51:21 the constant of 1 ? May 24 09:51:46 looking to see what else sets it May 24 09:52:10 hmm May 24 09:52:17 dateutils uses a similar constant May 24 09:52:24 in regards to printing out a long or a short string May 24 09:52:41 i .. think May 24 10:49:23 i guess it is meant to indicate something designed by the platform implementators May 24 10:57:32 how can i modify the xml-attribute "progressDrawable" of a SeekBar via Code? (-> http://developer.android.com/reference/android/R.styleable.html#ProgressBar_progressDrawable ) May 24 12:02:38 this is driving me insance, trying to do simple animation of imageviews contained in a gridview May 24 12:27:04 can one instantiate components in an activity without declaring them in the xml-file? i would like to make a dynamic list of TextViews in an Activity? May 24 12:28:05 oh as i am thinking about it.. this might not work because it may not be possible to draw a TextView within a SeekBar May 24 12:34:04 yes, you can generate views at runtime and add them to a container May 24 12:36:10 all the cool kids do it May 24 12:57:13 hey guys, anyone know is there are any tools to project the screen from the g1 to the computer through USB May 24 12:57:25 not looking for screen shot, more like live feed May 24 12:57:42 to be used for demo of an app May 24 14:48:25 ziyong: use the emulator May 24 14:49:54 soulreaper: he wants to get the video from a G1 though, not run the code through an emulator May 24 14:50:23 my question: is there a scaletype to fit to the parent's width? May 24 14:55:33 ? May 24 14:56:09 soulreaper: I do not intend to use the emulator, the demo needs to feed live camera inputs May 24 15:02:04 hi May 24 15:03:40 hey May 24 15:33:43 is there a sample somewhere on how to use the sensors in 1.5?? May 24 15:35:56 mmmulani, define "scaletype" ? May 24 15:36:11 sammyF, look in the demos provided with the sdk May 24 15:37:53 wmealing: well ... you'll notice that the old "sensors" sample isn't there anymore May 24 15:41:22 ./samples/ApiDemos/src/com/example/android/apis/os/Sensors.java <-- not that ? May 24 15:41:40 platforms/android-1.5/samples/ApiDemos/src/com/example/android/apis/os/Sensors.java May 24 15:42:02 I dont have the old sdk handy, so I can't say really. May 24 15:42:48 wmealing: hmm .. just noticed that there is a 1.5_r2 SDK out May 24 15:43:04 oh.. May 24 15:43:12 should probably snarf that. May 24 15:43:42 wmealing: weirdly, the SDK I downloaded didn't seem to have the samples in it, so I went by the website which doesn't have the sourcecode of os/sensors.java May 24 15:43:51 http://developer.android.com/guide/samples/ApiDemos/index.html May 24 15:44:05 actually, it doesn't have the os samples at all ;) May 24 15:44:18 getting r2 now May 24 15:44:24 which one are you running ? May 24 15:44:39 /home/sammy/Android/android-sdk-linux_x86-1.5_r1 May 24 15:44:42 at the moment May 24 15:44:45 ok, i was running pre May 24 15:44:48 i should probably update May 24 15:44:55 not even r1 May 24 15:45:17 /usr/local/android-sdk-linux_x86-1.5_pre/platforms/android-1.5 May 24 15:45:38 yep May 24 15:45:47 I hope r2 has the sensor sample in it. May 24 15:46:05 my SDK directory doesn't even have a sample directory in it May 24 15:46:28 add-ons docs documentation.html platforms RELEASE_NOTES.html tools May 24 15:46:30 wmealing_: ImageView.ScaleType May 24 15:48:21 I need to decode HTML entities (and I'm new to java).. any tips? :) May 24 15:48:46 Rexxars: you mean the type you find in get requests? May 24 15:49:08 well, in ISO-8859-1 encoded pages.. I'm talking " and the like May 24 15:49:46 Rexxars: I think URLEncoder.encode does the encoding May 24 15:49:50 let me see if I can find a decoder May 24 15:50:02 Rexxars: http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLDecoder.html May 24 15:50:31 oh no, that does it into %[hex] May 24 15:50:51 some op should update the topic May 24 15:51:25 I'm not looking for URL decoding but rather HTML entities (I believe thats the proper name for them?) May 24 15:52:00 Rexxars: yeah, I've found one here May 24 15:52:01 http://mindprod.com/products1.html#ENTITIES May 24 15:55:20 thanks, does seem a bit overkill, this thing is enormous May 24 15:56:40 ahaah May 24 15:56:48 it'd probably be better to use your own search/replace May 24 15:57:36 yeah, just might be May 24 16:35:10 http://pastebin.com/d34b23e3e May 24 16:35:31 I doubt you could write anything less optimal May 24 16:35:40 lol :) May 24 16:41:45 do gestures work in the emulator ? May 24 16:52:02 hi... I'm having real trouble coming up with a working udev rule for debian unstable. May 24 16:52:29 my current attempt is SUBSYSTEM=="usb", ENV{PRODUCT}="bb4/c02/*", NAME:="android", OWNER:="myname", MODE:="0666" May 24 16:52:55 the rules mentioned in the android sdk docs don't work, neither does any rule I find on the web May 24 16:59:09 hey im from germany and i want to sell apps on the android market but im not sure about taxing and all these things May 24 17:00:06 cesar9: hello, is not the vat 19% in DE? May 24 17:00:16 yes May 24 17:00:45 i believe that if someone purchases from a country with no VAT, it will not be taxed May 24 17:00:54 yup, 19% for luxury items (such as chocolate and computer software, I think) May 24 17:01:24 but must i registrate a company? May 24 17:01:29 however, if it is purchased from a county that uses vat, then that vat rate applies May 24 17:02:42 not too sure cesar9 i think when you sign up as an and devel you may be guided thru some extra steps since your from a vat country May 24 17:03:07 and i believe they will set everything up from there May 24 17:03:38 cesar9: interesting question. I never thought about that. I doubt that you have to register a trade (Gewerbe anmelden) just for selling software, but I really don't know. May 24 17:06:52 because for an merchant checkout account you have to specify your TIN May 24 17:08:42 cesar9: I believe you can trade under your own name (like freelancing), but you'll have to sort tax, VAT etc. yourself with your local authorities, it might be worth finding an accountant May 24 17:09:18 wouldn't that be your "Steuernummer" which everyone has, as opposed to the "Umsatzsteuer-Id" which only companies have? May 24 17:10:21 but it's probably best to ask a tax consultant about that... or simply the authorities May 24 17:11:11 if you earn money by selling stuff, you certainly have to pay taxes for it in germany, I'm quite sure of that ;-} May 24 17:16:42 ok ... but how? :) May 24 17:18:31 i think if i ask a civil servant, about such "high tech" stuff i just get stupid answers May 24 18:01:00 how can I make a framelayout stay on top of other layouts? I've tried nesting the other layouts within it...but they still bury it May 24 18:14:42 is any channel op online right now? May 24 18:14:56 how can I make a framelayout stay on top of other layouts? I've tried nesting the other layouts within it...but they still bury it May 24 19:40:48 how do I add txt to an imagebutton? May 24 19:41:15 is there a direct way to do so, or just use a textview? May 24 19:43:14 nwisman: what about using a button with the background as the image? May 24 19:43:44 oh wait, I think this would replace all the drawables May 24 19:44:24 right now I'm using a imagebutton with background set to a transparent .png May 24 19:44:32 maybe I should add some text to my trans layer May 24 19:44:46 but that's not very "maintainable" May 24 19:48:04 I'm just going to stick a text view beneath each button and call it good May 24 19:54:58 If I stick a TextView overtop of a GLSurfaceView.... is that going to affect performance? May 24 20:32:16 dont suppose anyone has written a threaded image downloader which updates a given imageview when done? and wants to share their code with me ;) May 24 20:38:24 ok... I was totally dyslexic and overlooked that the udev rules file had to end in ".rules" which I read as "-rules" May 24 21:20:43 Hi exist someware a "opengrok" (XREF) Server from android.git.kernel.org? Any URL May 24 21:21:23 does anybody know what the "security update" for 1.5 fixes that was deployed OTA in uk and germany (at least)? May 24 21:45:47 I'm getting a RejectedExecutionException when spawning a number of UserTasks, what's the best way to avoid this? I assume this is because I'm launching too many at once.. May 24 21:48:33 Rexxars: in your loop, send the thread to sleep for a delay, Thread.sleep(500) = wait half a sec before next spawn, that's the java way, not sure if android has a more androidy way May 24 21:49:33 ok, I'll look into it May 24 21:49:39 thanks :) May 24 21:49:43 :) May 24 22:40:48 hmm ... does the T-Mobile G1 register touch pressure at all? May 24 22:43:17 sammyF: whats the problem? May 24 22:43:40 ezome: not sure. might be a problem with my code. I'll check that first :) May 24 22:44:05 just noticed that there is a pressure field in touchevents May 24 22:44:31 and I wasn't aware that the G1 could actually register pressure May 24 22:44:32 nope.. didnt use it yet May 24 22:46:02 so what pressure values do you get? May 24 22:48:36 one sec. dumping them May 24 22:49:19 hmm.. 0.10xxxxx when not touching May 24 22:49:40 i tried it too in my game... i get good values on adp1 May 24 22:49:51 0.45xxxxxx before I remember that I can't get a new G1 around here May 24 22:50:07 between 0.1-0.4 May 24 22:50:50 hehe i stopped at 0.4 before i remebered its price May 24 22:50:51 yep May 24 22:51:13 looks fine to me May 24 22:51:16 docs sayt between 0 and 1, but on the G1 it seems more like 0.1-0.4 May 24 22:51:30 the difference between light touch and pressure isn't THAT big sadly May 24 22:51:41 I'll have to write a calibration screen for that May 24 22:52:35 I wrote 0.5 as threshold in my code, which is why I didn't register any "press" May 24 22:52:48 or do some automated calibration starting at 0.0-0.4 and expanding the range when you get bigger calues May 24 22:53:19 actually it's not really useable May 24 22:53:36 the values vary wildly between middle of the screen and corners May 24 22:54:11 are you at another game? May 24 22:54:18 ezome: yep May 24 22:54:38 ezome: looks good so far May 24 22:54:59 if I get a way to use the pressure thingy I should be finished by the end of the week May 24 22:55:08 ... and then I might actually rest a bit ;) May 24 22:55:09 nice... drop me a note when there is a beta May 24 22:55:20 sure thing :) May 24 22:55:31 sent you my email as pm May 24 22:56:38 ahh .. Konstanz May 24 22:56:39 nice May 24 22:56:49 you know that place? May 24 22:56:50 big nifty lake :) May 24 22:56:57 yep :) May 24 22:57:00 ezome: I lived for 22 years in Munich ; May 24 22:57:02 ;) May 24 22:57:11 that's not THAT far away May 24 22:57:27 ah bavaria... yep i know... i lived for 20 years in stuttgart May 24 22:57:37 and my bro was an avid windsurfer back in the 80s/early 90s May 24 22:57:51 so he was often sailing regatas on the lake May 24 22:57:55 cool May 24 22:58:42 I heard it was crazy warm today in Germany? May 24 22:59:01 my Kid's mom said something like 34 degrees in Heidelberg May 24 22:59:34 yep its pretty hot... not a good time to write code but i'm on my next project too May 24 22:59:54 ezome: do it like me ... May 24 23:00:06 getting rum? May 24 23:00:10 ezome: live in the carribeans, where it NEVER gets over 32 degrees, and code in a room with an AC ;) May 24 23:00:28 nifty 27 degrees in here ;) May 24 23:01:17 the AC is really mostly to protect the electronic stuff though May 24 23:01:42 you really starting to make me jealous ;) May 24 23:01:47 the average life of a notebook is around 6 month May 24 23:02:24 DVD-R and CD-R start to look like remnants from an atomic war around 10 months after you unpacked them May 24 23:02:37 argh May 24 23:02:56 and computer cases all have a nice brownish colour in it, along with the grit that's particularly good for CPU fans ;) May 24 23:03:22 ;) May 24 23:03:59 99% humidity, salty-air and the heat really get to electronics and reflective coatings like nothing else May 24 23:06:45 any channel mod on right now? May 24 23:06:57 channel Op even ;) May 24 23:09:27 the channel topic should be updated, if any op is listening. 1.5_r2 is the current version May 24 23:09:59 r2 is out? May 24 23:10:09 yep May 24 23:10:16 only noticed by chance today May 24 23:10:22 any noteable improvements? May 24 23:10:51 not that I'm aware of May 24 23:10:58 but I didn't check the changelog May 24 23:11:13 hmm May 24 23:11:24 I wonder why I don't have any samples folder though May 24 23:11:36 that's why I downloaded it in the first place May 24 23:11:48 just one security patch as far as i see May 24 23:12:04 oh .. samples are in android-sdk-linux_x86-1.5_r2/platforms/android-1.5/samples May 24 23:12:06 sigh May 24 23:12:56 the release notes are for 1.1_r1 May 24 23:13:29 almost no difference anyway May 24 23:13:34 yep May 24 23:14:29 still .. Someone might want to update the "release_notes.html" file ;) May 24 23:15:20 looks like a pretty hasty update May 24 23:16:58 gotta go... getting early over here. good night May 24 23:17:13 nighty May 24 23:41:21 hmm, has anyone heard of any sort of service that would basically just connect to a port back on the connecting host? May 24 23:41:26 to verify that it is open to the public internet May 24 23:41:50 i'm hoping for some sort of validation pass to see if UPnP actually worked to open up the port to the outside world May 24 23:43:48 i wonder if any of those firewall test web sites might offer some sort of web service to invoke them May 24 23:46:38 istr there is a web-triggered nmap somewhere May 24 23:47:12 what i'm really looking for is a reliable service that can be invoked programmatically (as in, through a web service or something similar) May 24 23:47:40 the ultimate purpose being a utility to my users so they can see when the server is likely not reachable from the outside May 24 23:52:49 jasta: maybe you want to have a look at the STUN protocol, maybe this can help you, not sure. May 24 23:53:27 jasta: it is used for voip, to check what kind of NAT firewall is between the client and the server. May 24 23:53:45 this is not useful to me. May 24 23:54:09 merely detecting my environment is insufficient to show that i can route packets from the public internet to a specific machine. May 24 23:54:45 I don't know how STUN works, but maybe it is doing tests that do what you need. and there are public STUN servers. May 24 23:55:17 i doubt that May 24 23:55:35 i might just buy cheap hosting space and provide a solution myself May 24 23:56:02 shouldn't be too hard to implement well May 25 00:11:58 I have a question regarding the vibrator May 25 00:12:58 should work, right? May 25 00:12:59 http://pastebin.com/d22bf9d44 May 25 00:17:51 sammyF: yes it should May 25 00:18:26 jt436: yeah. just checked in the morse vibrator sample. they do it exactly the same way May 25 00:18:32 ... weird May 25 00:18:55 change mContext.VIBRATOR_SERVICE to Context.VIBRATOR_SERVICE May 25 00:20:41 nope May 25 00:20:48 no sexual arousing happening May 25 00:20:49 :/ May 25 00:22:17 did you add the persmission to your manifest? May 25 00:22:19 May 25 00:22:19 May 25 00:22:27 that was what I was just thinking about .. May 25 00:22:32 "does it need a permission" ;) May 25 00:22:51 yes May 25 00:23:45 jt436: thanks a lot again :) May 25 00:23:55 np ;) May 25 00:24:08 now to lower the time it vibrates again ;) May 25 00:24:17 I set it to 10secs tobe sure it didn't vibrate ;) May 25 00:25:06 jt436: btw. I don't think you were there yesterday May 25 00:25:16 but did you ever try to play music while using the sensors? May 25 00:25:45 if so, just forget about it :) May 25 00:27:00 i have May 25 00:28:26 whenever I'm finished with the current game, I'll write a nice music visualizer May 25 00:28:40 it will only check the sensors and move to that ;) May 25 00:29:11 way faster than doing fourier transformations on the sound output ;= May 25 00:36:00 anyone have a problem where the device selector gets continually wider in eclipse? May 25 00:36:22 squalus: nope. not anymore. now it spans both screens and doesn't get any wider May 25 00:36:41 ;) May 25 00:36:57 my ok/cancel buttons are now cruzing off the right hand of the second screen tho May 25 00:37:08 I've only got a little 'ok' left May 25 00:39:37 hmm .. I have neither of them. but can still access the X to close the window and double clicking on the configuration I want works May 25 00:40:16 squalus: running linux btw, so that might be the reason why I have a different config than you May 25 00:40:35 same here May 25 00:41:23 hope they fix that jobby May 25 00:41:31 yeah clicking the run config works May 25 00:41:39 close enough tnx May 25 00:42:08 but yeah, it's just stupid May 25 00:43:20 yeah it acts a bit retarded May 25 00:48:44 hmm ... more a java question, but : if I create an array with "int[] myArray = new int[10];" is it initialized in any way, or does it contain random data (if at all)? May 25 00:49:29 sammyF: it's alright for primitive data types such as int May 25 00:49:42 but for more complex objects you need to initialize them (a for loop will suffice) May 25 00:50:22 int's go to 0 and objects to null by default no? May 25 00:50:37 I think they go to null May 25 00:50:40 mmmulani: nah. it's really just ints that I need in this case. but speed is of the essence, and if I can just not initialize the array manually, I'll be gaining a lot of speed May 25 00:50:55 you ints will be 0 sammyF May 25 00:50:59 *your May 25 00:51:10 jt436: mmmulani: thanks :) May 25 00:51:19 not a problem May 25 00:51:22 I'm really still new to Java May 25 00:51:49 still good form to initialize your vars etc and so on May 25 00:52:50 sammyF: keep in mind that local variables do not get a default value. May 25 00:53:02 yep. but in this case I'm doing a depth first search of something labyrinth-like on each iteration, and that would mean initializing them everytime. May 25 00:53:24 sammyF: in your example, they are initialized either way. May 25 00:53:43 so the cost of initialization is paid regardless of what you do. May 25 00:54:18 jasta: well . if I initialize them afterward in a for loop, that would slow things down even more May 25 00:54:42 there is no reason to if you intend them to all be set to 0. May 25 00:55:51 i do not agree with squalus that it is good form to initialize variables to their default values when that value is guaranteed by the language. May 25 00:56:24 yes. that's the idea. I just need to store some information to speed things up. basically, the labyrinth can be looping, and If I know that I've already been somewhere I can just ignore the field May 25 00:57:09 in C++ I'd do it manually obviously, but this is java, and it's supposed to be more ~lenient~ in cases like this May 25 00:58:30 thanks again. back to the algorythm. if it runs, my game is actually finished (well ... apart for the UI, gfx and sound assets, preferences, levels, and most of the game really ;) May 25 00:59:30 ha May 25 01:00:50 knowing myself, I guess I'll befighting against losint interest ;) Once the actual "tough part" is done, the rest always feels like a waste of time ;) May 25 01:04:37 well maybe if you spent less time babbling about it on IRC you could actually finish May 25 01:04:49 jasta: probably ;) May 25 01:05:03 jasta: helps me thinking though May 25 01:15:51 I found an interesting behavior May 25 01:16:21 squalus: ? May 25 01:16:37 if I do an aidl bind in a BroadcastReceiver.. it doesn't throw an exception but sometimes doesn't work May 25 01:17:11 so I created a class who's job was to do that binding in the constructor and then call through it in a public function.. I pass the constructor my Context May 25 01:17:19 and if I do it that way I get May 25 01:17:24 java.lang.RuntimeException: Unable to start receiver com.appadillo.android.peapod.ConnectivityActionDelayReceiver: android.content.ReceiverCallNotAllowedException: IntentReceiver components are not allowed to bind to services May 25 01:17:47 but if I do it right in the BroadcastReceiver class I don't get an exception May 25 01:17:53 (but it doesn't work very reliably) May 25 01:19:55 anywho.. any advice for calling into a service from a BroadcastReceiver? May 25 01:19:59 particularly an alarm May 25 01:20:53 if you think the service is running for sure you can use peekService May 25 01:21:09 but if you need to start the service then you must fire an intent to do so and let the service handle your action May 25 01:21:58 the service will be running :) May 25 01:22:40 so peek service and then a handler maybe? May 25 01:22:52 what's a handler going to do for you? May 25 01:23:08 I need to ask the service to doStuff() May 25 01:23:20 so what's a handler going to do for you? May 25 01:23:37 oh.. I can just call in May 25 01:26:15 kinda hope that someday aidl, handlers and whatever else can be cooked down to one api so that activities don't have so many entry points May 25 01:27:05 squalus: i don't think you have the foggiest clue what Handlers do. May 25 01:27:27 callback mechanism? May 25 01:29:09 No. Handler is a way to schedule and handle messages on a thread. It is central to the UI framework to allow you to synchronize onto the main thread May 25 01:30:09 so generally useful with UI threads only? May 25 01:30:19 no, but it is central to the UI framework. May 25 01:30:26 it is useful anywhere you need to synchronize events onto the main thread. May 25 01:31:04 k I've used it to tell my ui thread to redraw this or that in other parts of my program May 25 01:31:26 why wouldn't it be useful for asking my service to perform some task? May 25 01:31:58 because that makes no sense. May 25 01:32:36 k instead I should consider ... ? May 25 01:33:13 using intents or AIDL. i don't understand how you think Handler will let you communicate with a service from a broadcast receiver May 25 01:33:56 aidl has proven unreliable from a broadcast receiver May 25 01:34:12 that's because you don't understand what environment broadcast receivers operate in. May 25 01:34:15 the binding doesn't seem to happen in time most of the time May 25 01:34:19 as i said, if you are sure that the service is running, you may use peekService May 25 01:34:32 but i doubt that you can be sure its running because you clearly don't ahve any idea how any of this stuff works May 25 01:35:20 generally, BroadcastReceiver's use Intents to communicate with other components. May 25 01:35:39 if I knew how this works would I be asking for help? May 25 01:36:18 you can just issue an intent with a specific action for your service to perform. May 25 01:36:33 and handle it conditionally in the services onStart May 25 01:36:36 this is a common pattern that google uses May 25 01:36:55 the broadcastreceiver wont be able to receive or handle the result of course, but that shouldnt be part of your design anyway May 25 01:37:09 k that's fine May 25 01:37:29 so even with a persistant service, intents will be handled in onStart? May 25 01:38:09 yes, onStart may be called multiple times in a service. onCreate would have been called only once. May 25 01:38:24 k I understand now, thank you May 25 01:38:34 onStart is a misnomer in services. it is merely there to capture received intents. May 25 01:38:51 makes a lot more sense now that you explain that May 25 01:39:19 by the way, persistent services are very inefficient and should be used sparingly. May 25 01:39:30 only in very specific cases would you need one. May 25 01:39:45 in this case I use it to download files in the background May 25 01:40:05 that would not be a persistent service. May 25 01:40:08 but I intend to shut it back down when everything's wrapped May 25 01:40:15 for instance, it would die when you are done downloading your files. May 25 01:40:29 right, so how then during a broadcastreceiver could you guarantee the service was running? May 25 01:41:19 the service created the receiver May 25 01:41:42 and won't be disabled until called by it.. in the logic of the program May 25 01:41:56 created it? if the intent receiver has been defined within the service, you wouldnt need to communicate with the service at all. May 25 01:42:02 I had issues with the downloads dying off if the user navigated away from the program in the same process as the UI May 25 01:42:07 since you have access to the services object implicitly May 25 01:44:44 I create the BroadcastReceiver in it's own class but I can certainly pass 'this' in May 25 01:46:44 if you manage the references correctly then that certainly will be the most efficient solution May 25 01:47:10 It receives a network change event and creates an alarm intent for 5 seconds later to let things settle.. otherwise I get my download fail exception just after the network switch notification.. thread.sleep didn't help here May 25 01:47:26 but I'm pretty sure I can pass along the whole way May 25 01:47:40 you don't need to "let things settle" after you are notified that a network is connected. May 25 01:47:46 your diagnosis is incorrect. May 25 01:48:17 my download attempt doesn't throw an exception until just after I receive the notification May 25 01:48:28 Any tips on the following? I have some wavefront .obj files that I want to include in my project. Should I XMLize them into Resources, or just dump them into Assets? May 25 01:48:59 squalus: i am doing something similar as you in my application. trust me, you need not "wait" after you receive a network connected intent. May 25 01:49:44 well.. I could spawn a separate download thread before the initial one fails but I'll need to manage the symmantics around file locking if I do May 25 01:50:30 you just say the most random things that make me think you and i aren't even having the same conversation. May 25 01:50:49 anyway, if you'd like to see how i've solved this very same problem, look here: May 25 01:50:54 http://code.google.com/p/five/source/browse/trunk/android-client/src/org/devtcg/five/music/service/PlaylistService.java May 25 01:51:12 http://code.google.com/p/five/source/browse/trunk/android-client/src/org/devtcg/five/music/util/streaming/DownloadManager.java May 25 01:51:42 this solution was derived from looking at Google's own DownloadProvider, which is an even more sophisticated solution to this problem. May 25 02:03:18 thanks May 25 02:04:01 your knowledge and condescending attitude are both without equal May 25 02:04:37 still... thanks May 25 02:05:28 DownloadProvider might even be public now. in Android 1.0/1.1, the class was not made available as part of the API May 25 02:05:31 but that might have changed in cupcake May 25 02:05:46 it is a general purpose HTTP downloading service May 25 02:05:54 that would be.. ideal May 25 02:05:56 and it is very sophisticated. mind-boggling so. May 25 02:06:27 anyway, you should probably look into whether that is available as part of the API now. May 25 02:06:37 i dont see an @hide on the class, and it is marked public, so ... May 25 02:08:04 doesn't seem to appear in the api docs yet May 25 02:08:39 i forgot who wrote this, maybe jbq. you should ask him. May 25 02:08:54 I'll have a look at your example for starters though.. I'm a beginner May 25 02:09:08 We should have a free backup program for SMS/MMS ->> Gmail May 25 02:12:20 kferdous: Make it! May 25 02:54:06 jasta: jbq wrote the download manager stuff May 25 02:58:45 romainguy: are you a channel op? May 25 02:59:11 romainguy: the diff between r1 and r2 is probably not that important, but the channel topic should probably be updated May 25 02:59:36 we'll update on Monday May 25 02:59:54 er Tuesday **** ENDING LOGGING AT Mon May 25 02:59:57 2009