**** BEGIN LOGGING AT Sat May 23 02:59:57 2009 May 23 04:03:05 any idea what the license is on the android icons? May 23 04:03:26 cc-by, IIRC. one sec, there was a link.. May 23 04:03:58 http://www.android.com/branding.html May 23 04:04:38 does Intent.ACTION_SEND go through the Gmail app or Email app? May 23 04:12:04 mmmulani, you should ask for a preference May 23 04:12:08 Intent.createChooser() or something May 23 04:13:20 KNY: thanks, right now I'm looking through the browser source for their implementation :P May 23 04:27:20 ERROR Error: No resource found that matches the given name (at 'icon' with value '@android:drawable/ic_menu_preference'). any idea ? May 23 04:30:21 is there a class to check if there is internet connection with the device? May 23 04:32:00 or is there a way to achieve that May 23 04:32:25 hunterp, preferences* May 23 04:34:55 KNY: ?? May 23 04:35:07 preferences what ? May 23 04:35:19 @android:drawable/ic_menu_preferences May 23 04:35:21 note the plural May 23 04:36:51 KNY: again, thx a billion May 23 04:39:13 ah, this should do it, http://developer.android.com/reference/android/net/ConnectivityManager.html May 23 05:36:13 anyone knows where is the source code of the default youtube apk on android.git.kernel.org? May 23 06:03:06 ziyong: I think the youtube app is proprietary May 23 06:03:26 Anyone up for testing this widget http://www.binaryiris.com/node/28 ? May 23 06:03:55 skyPhyr: thanks, i saw its in the partner folder which cannot be accessed May 23 06:04:02 "/ May 23 06:04:08 ziyong: ahhh :) May 23 07:11:32 * jasta wonders how exactly is SQLiteDatabase#yieldIfContented useful May 23 07:11:56 it pretty much explodes the transaction contract May 23 08:02:10 hello May 23 08:02:50 i want to use the "clipboard" for copy a string May 23 08:03:06 how make this in java code with android? May 23 10:40:36 how can i access the internal drawables of android? I need to get the default SeekBar Thumb? May 23 10:41:15 Hey there. May 23 10:43:39 I'm trying to create an online game with android. Unfortunately, when I try to connect to the server, the server gets a StreamCorruptedException of invalid type "AC". The weird thing is that I tested the client part as a seperate java program and it worked. Is there some special thing I have to do with android 1.5? May 23 10:50:44 Who is everybody? May 23 10:53:10 Err, I mean where is everybody? May 23 11:01:07 Are you people really not saying anything or is there something wrong with my client? May 23 11:06:46 guest324758325: be patient May 23 11:12:28 Yeah, I just realized that it is now 7am in the USA. :( May 23 11:12:57 The world should be flat so we could all live in the same time zone May 23 12:07:03 Does anyone know about "parcelable"? May 23 12:07:48 why can't I read an object that was sent from android to a normal server through an object-stream? May 23 12:13:58 wow, what a long nickname :o May 23 13:19:01 anyone fooled around with Browser.sendString() May 23 13:19:11 it seems really powerful but weird in the way it works May 23 13:27:12 ahh, so it works reliable if not called during onCreate May 23 13:39:47 why is reading the input stream of a process so slow/delayed? May 23 13:56:13 ezome, what do you mean? May 23 13:57:53 KNY, thanks for the mail btw :) May 23 13:58:10 sammyF, haha, no problem. I hope you get it figured out May 23 13:58:16 looks like my applause/firework/offtune fanfare file is a bit too big for soundpool May 23 13:58:36 I'll just decrease the sampling rate. it's not like hte G1 has stellar speakers anyway ;) May 23 13:58:59 your app is giant, by the way. 2.5 MB? That would take forever to download on edge May 23 13:59:09 (which I'm on) May 23 13:59:17 KNY: yeah :/ that's the backgrounds May 23 13:59:39 why are they so big? the display is only 320x480 or something May 23 13:59:44 yep May 23 13:59:46 exactly ;) May 23 13:59:54 how many do you have? May 23 14:00:00 11 ;) May 23 14:00:16 and they are all full screen May 23 14:00:27 should have thought of that before I started seriously May 23 14:00:57 and only do them like I did the last one : white background, not much details May 23 14:01:47 hmm May 23 14:01:51 but the thing is : each level consists of 2 bitmaps May 23 14:01:55 KNY: found out just the shell command was slow because of one param... however it was quite ok in term of speed at the adb shell May 23 14:02:09 one is the one you see, which is really just colour and doesn't actually impact on the game May 23 14:02:18 sammyF, yeah May 23 14:02:32 and the other one is the collision/slope/ extra stuff bitmap May 23 14:02:32 the _collision.png versions? May 23 14:02:50 the collision ones are small though May 23 14:02:55 yeah May 23 14:03:01 which game? can i have a look? May 23 14:03:01 less than 20K May 23 14:03:16 the color ones ... well ... up to 300 :/ May 23 14:03:24 ezome: there's a demo available May 23 14:03:29 under casual May 23 14:03:37 whats the title? May 23 14:03:38 just check by date. It should be the first one May 23 14:03:40 called Pin It May 23 14:04:06 got it May 23 14:04:06 sammyF, save them as JPG. I just re-saved lvl6_color.png as lvl6_color.jpg and the filesize went from 140.0 KB to 19.2 KB May 23 14:04:29 why do u got prevent phone from sleeping permission? May 23 14:04:33 * sammyF looks for a wall to bang his head against May 23 14:04:38 ezome, because it's a game May 23 14:04:51 ezone, because the whole game is played using the accelerometers May 23 14:05:17 i made a game too... but the is a way to keep the screen on without that May 23 14:05:18 ezome: if I don't prevent sleep, as no key is ever used, the screen goes black while you're playing May 23 14:05:19 sammyF, basically anything that's rich graphics like your _color.png files would be better off as .jpg May 23 14:05:35 do wakelocks require a permission? May 23 14:05:36 KNY: yeah. don't ask me what I thought May 23 14:05:45 KNY: yes. afaik it does May 23 14:06:04 yep but you don't need a wakelock imho... gotta look at my code May 23 14:06:53 this is why I make nerdy games with minimal graphics :) May 23 14:06:57 KNY: SurfaceHolder.setScreenOn works without permission May 23 14:07:07 KNY, next one ill have minimal gfx ;) May 23 14:07:15 ezome, interesting. May 23 14:07:19 * KNY heads off to the docs May 23 14:07:25 :) May 23 14:07:45 ezome: uhhh... nice May 23 14:07:58 god damn it, who created this buggy ass autocomplete search bar for developer.android.com? May 23 14:08:00 sucks so bad May 23 14:08:04 ezome: but does it keep the phone from actually going to sleep? May 23 14:09:39 sammy: i think so but can't say for sure May 23 14:10:36 KNY: on occasion, please shoot me May 23 14:10:41 755.5KB :P May 23 14:10:45 haha May 23 14:10:48 excellent! May 23 14:11:03 sammyF, now fix the sound bug and you've got a great 1.1.0 update May 23 14:11:11 my download didn't even start yet :( May 23 14:11:45 ezome, just get it from cyrket and install with ADB :) May 23 14:12:35 oh man, looks like he password-protected downloading the APKs May 23 14:12:44 you can download download files at cyrket? thought its just a browser May 23 14:13:10 ezome, there used to be a way, though it was a bit tricky May 23 14:14:03 go to an application, right-click on the icon -> view image -> take the last section of the URL (looks like "-1692520651183102058"), and go to http://cyrket.com/apk/-1692520651183102058 May 23 14:14:04 done May 23 14:14:09 (well, used to be) May 23 14:14:11 if you wanna try my game too look for zilch May 23 14:15:14 while we're at it.. May 23 14:15:18 <-- Ghost May 23 14:16:34 ezome, I like your L&F May 23 14:16:37 (http://img90.imageshack.us/my.php?image=screenshotigz.png&via=tfrog) May 23 14:16:38 hmm ... I'm on wifi, and my download of Zilch didn't start yet neither May 23 14:16:49 the Market has been sucking with downloads lately May 23 14:16:56 whats l&f? May 23 14:17:01 ezome, look & feel May 23 14:17:05 thx :) May 23 14:17:34 KNY, why internet access? May 23 14:17:37 mostly based on free work of deviantartists May 23 14:17:38 ad-paid? May 23 14:17:44 sammyF, no May 23 14:17:51 sammyF, you need to be able to download dictionaries May 23 14:18:00 ah.. k May 23 14:19:10 sammy: nice physics May 23 14:19:18 ezome: completely fake May 23 14:19:20 did you write them yourself? May 23 14:19:21 well .. 90% fake ;) May 23 14:19:26 yep May 23 14:19:41 sammyF, what's fake about it? May 23 14:20:02 I intended to use Box2D, and the results would have been nice, but the game doesn't work without the appropriate framerate May 23 14:20:15 KNY, you don't prefer to know what's NOT fake? that's shorter May 23 14:20:15 ah May 23 14:20:16 coz i was looking for a physics engine for shaking my dice... but none of them is optimized for android May 23 14:20:41 KNY: I actually use newtonian physics to compute the velocity May 23 14:20:42 sammyF, no, I mean how did you fake physics? is it just "close enough" physics? May 23 14:21:09 yep, it's "realistic enough that people will feel they know how stuff will react" physics May 23 14:21:39 the "slope" effect is really just based on the color of the pixel on the collisionmap underneath the ball's center May 23 14:22:26 depending on the amount of red, blue, green (or in the case of yellow a combination of red and green depending on the relation between the two), I add velocity in a certain direction May 23 14:23:00 ah, that explains why they roll a bit goofy sometimes May 23 14:23:07 the collision is well .. more a "does it look good" thing. I tried a few values by which to decrease the speed and took the one I prefered May 23 14:23:55 this game is hard as shit, by the way May 23 14:24:04 and the ball collision is 20 or so iterations of moving the balls apart until they don't overlap anymore. doesn't work 100% of the time, especially when all 3 balls are involved, but more iterations would have killed the FPS May 23 14:24:25 KNY: ask me .. I had to finish it a few times from lvl1 to lvl11 ;) May 23 14:24:48 sammyF, haha, I would have just written a dummy physics engine May 23 14:24:53 which pulled the balls to the holes May 23 14:25:06 (or just placed them there) May 23 14:25:11 yeah, but I wanted the woosh effect when you're on the edge of the holes ;) May 23 14:25:25 ah May 23 14:25:55 when a ball is on the edge, it kind of gravitates toward the hole, but if it has too much speed it will just alter its course (that's where the idea with the slope thing came from) May 23 14:25:55 sammyF: i like it... its just a bit laggy sometimes May 23 14:27:11 ezome: yep. that's basically the reason why the balls CAN get stuck a bit. I just don't have the time or horsepower to resolve very complex collisions :( May 23 14:27:21 at least not with *my* level of mathematics ;) May 23 14:28:11 yeah not with mine either... gave you 5* anyway :)... brb May 23 14:28:22 thanks ezome :) May 23 14:28:36 KNY: how come the french dictionary is so much bigger than the rest? May 23 14:28:45 (except for unabridged english) May 23 14:28:50 sammyF, simple: more words May 23 14:29:13 but you're either US American or british, aren't you? May 23 14:29:18 american May 23 14:29:38 actually, I'll restart : how come you even have french at all in there???? ;) May 23 14:29:55 not that I mind. I'm french so it's a pleasant surprise ;) May 23 14:30:29 sammyF, because finding good word lists is incredibly difficult and I found a french one. and once you find one, it's a very simple matter to create a database from it, so... why not? May 23 14:30:32 romainguy, you here? (or anyone else from the UI/whatever devs) May 23 14:30:33 :) May 23 14:30:40 tauno, what's your question? May 23 14:31:13 sammyF, if you know of a reduced/better french word list, please let me know May 23 14:31:15 if I scroll over an editText that has .setError() set, then when is the error indicator supposed to be removed? it seems quite random for me atm May 23 14:31:38 hmm ... KNY, downloaded the french dictionarry, and now it seems to be stalled at 100% May 23 14:31:54 sammyF, it's unzipping May 23 14:31:56 give it a second May 23 14:32:08 ahh .. k May 23 14:32:23 (unless you've already given it several, in which case, get me a stack trace, haha) May 23 14:32:29 pressed BACK too early then. crashed but came back to the main activity May 23 14:33:41 can you get me a logcat? May 23 14:33:44 ezome: very nice transition at the start May 23 14:33:53 just /msg it to me if you get one May 23 14:33:54 KNY: one sec. May 23 14:34:13 just the first few lines is fine May 23 14:34:30 I'll try to replicate it May 23 14:37:33 sigh May 23 14:37:39 worked this time May 23 14:37:42 :/ May 23 14:39:16 very nice one KNY btw :) May 23 14:39:28 even if I nearl ylost against the computer on easy :P May 23 14:39:54 haha May 23 14:40:10 easy is actually not that easy, because it just plays randomly May 23 14:40:45 I'm still working on the "perfect" opponent--it's tough to do because this game is very computationally intensive and the phone just can't do it properly May 23 14:44:10 KNY: I noticed that. writing for a mobile phone is mostly about trying to optimize your code May 23 14:44:21 definitely May 23 14:46:15 ezome: I kind of like your game, but if I may make a suggestion : add a definition of "score" in the rules. I'm not familiar with the game and I'm slightly at a loss May 23 14:47:11 ezome: but apart from that, it's really professional :) May 23 14:51:29 gave Ghost and Zilch 5 stars. they definitely both deserve it :) May 23 14:55:07 thx :) May 23 14:55:33 thanks May 23 14:55:36 ezome: reading about the scoring set at wikipedia at the moment ;) May 23 14:55:37 sammy: press menu->scoring or sth. like that May 23 14:55:44 I'm not sure if I can rate the full version of your app, sammyF. Let me check May 23 14:55:57 KNY: you probably can't May 23 14:56:46 KNY: but thanks anyway :) May 23 14:56:51 I can if I buy it May 23 14:57:07 buy,rate,return ;) May 23 14:57:17 ezome, it's $0.99 May 23 14:57:20 I think I'll be alright May 23 14:57:28 oh right no return then May 23 14:58:21 ezome: oh .. maybe I should make the price higher then May 23 14:58:22 mine is about 2.50... guess you should return it ;) May 23 14:58:43 ezome: I'd actually do it, if I had access to paid apps ;) May 23 14:59:06 where u from? May 23 14:59:08 haha May 23 14:59:30 sammyF, go to a bar and have one-fifth of a beer on me ;) May 23 14:59:33 ezome: I live in the carribeans. Bought my G1 in germany while I was there a month or so ago May 23 14:59:56 KNY: 1 dollar is nearly a full beer actually ;) May 23 15:00:04 wow May 23 15:00:08 but you only get $0.70 May 23 15:00:11 KNY: everything but alcohol is expensive here ... alcohol on the other hand ... May 23 15:00:32 thanks :) May 23 15:00:41 sammy: where have you been in germany? May 23 15:00:43 no problem May 23 15:00:54 got the best rum very cheaplly around here too. too bad the stuff is vicious and deceitful May 23 15:01:40 the first glas is tough, and then it gets easier and easier, until by the night's end you're only able to crawl on all 4 May 23 15:01:40 :) May 23 15:01:55 sounds like a good night May 23 15:02:58 KNY: depends ... my kid's mom was here in ebruary, and she didn't realize how much she had drunk (after complaining on the first gulp that it was too strong). She ended up with a monster hangoover in bed for two days ;) May 23 15:03:13 haha May 23 15:03:35 it's less a "good night" than a "what happened in the last 4 hours" night ;) May 23 15:03:58 but world class rum nevertheless. you wouldn't see anybody publicly buying Baccardi around here ;) May 23 15:08:57 anyway .. off for now. cya later May 23 15:26:32 ad2p++ May 23 15:42:01 anyone know where the api demo showing an animated gif in a movie is? May 23 15:51:54 how can i set the background-color of a seekbar? May 23 15:52:15 there's some setColor(int) ... static color constants? May 23 15:52:25 i'd like to set some rgb-value ... May 23 15:52:44 mefiX: Color.rgb(int red, int green, int blue); May 23 15:53:14 great thx May 23 16:08:16 is it possible to generate a drawable that is a rectangle with some solid color? May 23 16:32:00 mefiX: ColorDrawable? May 23 16:33:47 mmmulani: yup, thx! May 23 16:35:01 i would like to change the color of a SeekBar (the bar that represents the current progress, not the bg), somehow this doesn't work May 23 17:40:46 Application question, I have a PreferenceActivity then want to start a subactivity with no joy. May 23 17:40:57 is there another way to do this ? May 23 17:44:49 I dont think I can set to start a subactivity on click May 23 17:45:23 wmealing_: yes, you can. there's nothing in your way. May 23 17:46:27 nothing is impossible, at zombo.com May 23 17:46:48 what im saying is that there's nothing different about that than starting a regular activity May 23 17:47:20 the PreferenceActivity doesn't seem to have a startActivityForResult or startSubActivity May 23 17:47:28 i'll try again May 23 17:48:56 http://dpaste.com/47009/ May 23 17:49:23 line 49 works May 23 17:49:29 line 50, does not May 23 17:52:09 the Context is being passed in from a PreferenceActivity May 23 17:52:21 in the constructor, not sure if thats the right way to do it or not May 23 17:56:27 hai May 23 17:57:01 is it possible to set the values oa a xml file not final ? May 23 17:57:33 you mean change them in the program ? May 23 17:58:15 download values from the net and save it then there May 23 17:59:11 i'd imagine not, as I believe they are compiled May 23 17:59:25 i think the xml files go through some sought of compile step before put into the package May 23 17:59:36 wmealing_: is your vpnc frontend compilable already? :> May 23 17:59:57 Ge0rG, its getting there.. i only have after hours to work on it May 23 18:00:17 Ge0rG, its taken me longer to do this damned GUI then the C port May 23 18:00:48 http://img145.imageshack.us/my.php?image=devicen.png&via=tfrog May 23 18:00:58 wmealing_: thats not uncommon May 23 18:01:32 doesn't help that i'm working on it at 2 am either. May 23 18:01:51 Ge0rG, any idea about my question above ? May 23 18:03:21 wmealing_: sorry, I'm really new to android coding. I'm just trying to compile your code: http://pastebin.ca/1432179 May 23 18:04:00 ah, put an icon.png in your drawable directory May 23 18:04:09 must not have checked that in May 23 18:04:20 it has changed a bit since that last check in May 23 18:04:30 res/drawable/icon.png May 23 18:05:42 can mail you one if need be. May 23 18:05:52 the code on my machine is really, not ready to be checked in May 23 18:05:52 wmealing_: yeah, its missing in the repository. could you just commit it? May 23 18:06:00 Ge0rG, can try. May 23 18:06:01 wmealing_: svn ci res/drawable/icon.png May 23 18:08:03 one moment. May 23 18:10:52 done May 23 18:11:11 the version you are trying is very far behind what i have here. May 23 18:11:27 the way i'm doing it there feels, clumsy May 23 18:11:36 as an applet May 23 18:12:31 release early, release often ;) May 23 18:12:44 as soon as it compiles, commit to svn May 23 18:12:46 hah May 23 18:13:13 is it sdk 1.1 or 1.5 code? May 23 18:13:21 1.5 although nothing 1.5 specific May 23 18:14:04 why is the v1.5 SDK so much smaller than 1.0r2 May 23 18:14:24 hm. my 1.5 sdk download was >140mbytes May 23 18:16:23 how long are you coding android/java? May 23 18:17:08 wmealing_: is there a way to bind the vpnc startup to a certain wifi network? May 23 18:17:24 * wmealing_ thinks May 23 18:17:31 yes, there probably is May 23 18:17:41 cesar6000, who are you talking to May 23 18:17:52 does 1.5 have auto-updating yet or do we have to check app version number ourself? May 23 18:18:08 all of you ^^ May 23 18:18:40 * Ge0rG started coding java in 2000. does that count anything? May 23 18:19:10 3 weeks on the java. maybe 3 before that on the c May 23 18:19:39 9years sound very impressive May 23 18:20:16 cesar6000: it sounds good. but I had only two small projects during all that time. :P May 23 18:21:45 you could keep all you knowledge ? May 23 18:22:20 i think after 1 month, of doing nothing, i would have forgotten everthing May 23 18:26:39 cesar6000: programming languages are all the same anyway May 23 18:26:51 all ones and zeros May 23 18:26:56 some fail at making it easy though May 23 18:27:36 Ge0rG, if you do a co' shortly.. you'll see the new version May 23 18:28:47 wmealing_: oops. would you be so kind to remove the bin/ directory from the source tree again? May 23 18:29:15 * wmealing_ dreams of a make clean May 23 18:29:54 yeah, that's really missing May 23 18:30:08 do you hear us, android devs? May 23 18:30:55 i could probably/should probably learn ant May 23 18:31:00 and make a target for it May 23 18:31:12 but thats yet another part of the ecosystem i dont really want to care about May 23 19:15:29 i have an attribute called progressDrawable="@drawable/..." on a SeekBar in some layout.xml. It has an effect, but i can't find this attribute in the documentation: http://developer.android.com/reference/android/widget/SeekBar.html May 23 19:16:43 so does anybody know to which getter/setter this attribute is connected to? May 23 19:47:53 Hello, guys! I need help... I installed on my g1 Adp1.5 firmware. And my accelerometer doesn`t works now. What can I do with it? May 23 19:59:56 Ekze-Mozart: which ADP1 1.5 firmware did you install? May 23 20:01:22 zinx a installed latest firmfare from official htc site May 23 20:02:01 hmm May 23 20:02:24 do the orientation sensors (apart from compass) work? May 23 20:03:08 hm... no, all applcations that can use acceleremeter doesn`t work correctly May 23 20:03:23 can you describe "doesn't work correctly"? May 23 20:03:37 do they get faulty readings? do they crash? May 23 20:03:54 does something else happen? :/ May 23 20:04:00 no, all works correctly without issues May 23 20:04:31 for examle in labyrinth application the ball can`t move May 23 20:05:08 you probably need to calibrate it May 23 20:05:09 and if I push "calibrate" button, nothing else happened May 23 20:05:19 that's not the right kind of calibration ;) May 23 20:05:30 open up one of the apps and turn the phone over several times in each direction May 23 20:06:04 ammm... what is "one of the apps"? May 23 20:07:40 I used calibrate module in "labyrinth" application May 23 20:08:21 any app that uses the compass/accelerometer/orientation sensor May 23 20:08:22 earlier when I used RC33 firmware on my phone all works good.. May 23 20:11:11 I reinstalled all firmware again... and It doesn`t works. And now I don`t know what can I do. May 23 20:11:45 Maybe it`s drivers probmlem... But if it`s right... I don`t know :( May 23 20:12:07 it's not a driver problem, the driver just needs to calibrate itself, and i told you how to do that May 23 20:15:39 and what application choose better? May 23 20:19:01 mefiX: in case you're still looking: http://developer.android.com/reference/android/R.styleable.html#ProgressBar May 23 20:53:57 I have a linear layout with 4 textviews that I am using for a listadapter. What would cause all 4 textviews to display on a single line and how can I fix it? May 23 21:08:11 i think i figured it out May 23 21:38:19 if I'm creating a service to, say, check a website for updates every X minutes, how do I control how often it checks? May 23 21:59:51 romainguy_, is AsyncTask applicable for a Service or should I just use a Thread for that? Or can I just do my long-running task directly on the same thread as onStart() ? May 23 23:53:09 good evening jt436 May 23 23:53:19 hey sammyF May 23 23:53:28 any progress with those bugs? May 23 23:53:52 yep .. fixed May 23 23:54:31 the guilty lines had a nice comment " // sanity check" before them. as I told KNY : I must have been drunk at the time ;) May 23 23:54:49 that carribean rum, eh? May 23 23:55:25 KNY: more likely carribean beer or, even more probable, caffeine intoxication ;) May 23 23:55:50 haha May 23 23:56:10 * sammyF is member of "diet coke anonymous" :P May 23 23:59:15 Dumb question, but with a Linear layout, how do I set the elements to be centered horizontally? May 24 00:00:31 * _Auron_ is trying to figure out why coloring a square-shaped pair of triangles in openGL|ES makes them look like 4 different shaded triangles May 24 00:02:18 svm_invictvs: I didn't need that yet, but did you check in the ApiDemos? May 24 00:02:25 http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/view/index.html May 24 00:06:11 anybody ever wondered how it comes that the search engine on the market is as bad as it is, considering it's supposed to be google? May 24 00:08:22 <_Auron_> this is so weird O_o May 24 00:10:23 <_Auron_> http://img39.imageshack.us/img39/5391/funkysquares.jpg May 24 00:11:25 Auron, you didn't invert vertices? May 24 00:11:35 <_Auron_> ? May 24 00:12:43 it looks like (if you number the vertices 1, 2, 3 and 4 in clockwork order), you're doing face 1 = 1,2,4 (which would be okay) and then face 2 would be 1, 2,3 May 24 00:13:07 which would create that or ... actually, 1, 3, 4 May 24 00:13:50 <_Auron_> want to see my code? May 24 00:13:55 shoot May 24 00:14:19 not that I did openGL stuff in the last ... hmm .. 15 years or something, but well ;) May 24 00:14:27 <_Auron_> actually I think it's alpha causing it, as without alpha it looks normal May 24 00:15:20 <_Auron_> http://rafb.net/p/4MMAgu51.html May 24 00:15:37 _Auron_: bear in mind that all the 3D stuff I did in the last years was done using Ogre3d, so my experience with openGL directly is very limited May 24 00:15:40 <_Auron_> being rendered in orthographical May 24 00:15:43 <_Auron_> ah May 24 00:19:14 <_Auron_> any idea? heh May 24 00:19:50 astonishingly, yeah . maybe May 24 00:20:15 at the end you have a line gl.glFrontFace( GL10.GL_CW) May 24 00:20:33 does that tell openGL that your vertices are in CW order? May 24 00:20:59 <_Auron_> yeah May 24 00:21:13 cause, if I'm not mistaken, your second face is Anti clockwise May 24 00:21:50 actually, the first one too May 24 00:21:51 <_Auron_> topleft, topright, bottomright? I think that's clockwise. May 24 00:23:13 -(width/2.0f), -(height/2.0f) is top left? May 24 00:23:34 <_Auron_> 0,0 is at topleft and 480,320 is bottomright May 24 00:23:47 <_Auron_> even if I set it to CCW it displays exactly the same May 24 00:24:43 _Auron_: ah ... inverted coord system to what i know, sorry .. oh well, was an idea :/ May 24 00:25:50 <_Auron_> with textured sprites as long as alpha is at 1.0f it looks completely normal, but if I do alpha I get that weird 4 triangle issue May 24 00:26:12 _Auron_: I told you my knowledge of OpenGL was minimal ;) May 24 00:26:15 <_Auron_> hehe May 24 00:27:06 * sammyF is reminded why he used Ogre in the first place ;) May 24 00:28:25 <_Auron_> well it doesn't do that in openGL w/ C++, I've coded in openGL Before May 24 00:28:36 <_Auron_> I think it has to do with openGL|ES or the hardware or something, I didn't ever have this issue May 24 00:29:23 <_Auron_> this happens both on-device and on the emu; my SDK/emu is 1.1 and my phone is 1.5, so that isn't the case either May 24 00:29:49 _Auron_: what order are you doing the vertices in? May 24 00:29:56 <_Auron_> clockwise May 24 00:29:59 _Auron_: and which primitive are you using? May 24 00:30:09 <_Auron_> primitive? May 24 00:30:33 triangles, triangle strip, triangle fan, quads, quad strip, etc etc :P May 24 00:30:40 though i don't know if OpenGL ES supports all those May 24 00:30:48 <_Auron_> strip May 24 00:30:54 <_Auron_> see http://rafb.net/p/4MMAgu51.html May 24 00:31:58 that is not how you do a triangle strip May 24 00:32:10 you only need 5 verts May 24 00:32:31 also, if you're using typical OpenGL coords, i do believe that's CCW, just so you know (but that doesn't matter if you don't have culling enabled) May 24 00:32:48 <_Auron_> ahhh May 24 00:32:52 the verts you're using would be ok for GL_TRIANGLES May 24 00:33:23 <_Auron_> well my viewport and orthographical settings are based for 0,0 at topleft May 24 00:33:44 weird :/ May 24 00:34:28 <_Auron_> also I'm not sure if this is normal, but the output is constantly flickering on and off May 24 00:34:47 <_Auron_> as if the screen is continously being cleared and redrawn May 24 00:34:58 <_Auron_> but my code only updates once per second (right now, anyways) May 24 00:35:01 it doesn't do that when you do it right :/ May 24 00:35:28 <_Auron_> ah, so it's because of the incorrect triangle strip usage? May 24 00:35:49 no, it sounds like you're either not using double buffering, or aren't swapping the buffers and are drawing to the front one May 24 00:35:50 the flicker sounds like double buffering May 24 00:36:05 or aren't clearing the back buffer before drawing to it May 24 00:37:34 <_Auron_> unless the GLSurfaceView is automatically drawing/clearing on its own and I'm not overriding it May 24 00:40:09 <_Auron_> this is my drawing bit: http://rafb.net/p/v3ieFg88.html May 24 00:43:10 you need to draw every frame May 24 00:43:19 sorry. May 24 00:44:00 it flips the buffers even if you don't draw a frame May 24 00:44:30 <_Auron_> oh,. May 24 00:45:08 there may be a way to slow it down, but i don't know how to properly do so off-hand May 24 00:45:19 <_Auron_> or manually control it? May 24 00:45:22 <_Auron_> I'd prefer that. May 24 00:50:10 <_Auron_> well drawing every frame works now, I can look into controlling it later May 24 00:50:16 <_Auron_> thanks May 24 00:50:53 Does anyone know of a simple tutorial on starting an activity which returns data? I found the android development example a bit difficult to follow. I was able to start an activity, which did not return a value. But when I tried to start one which returned a value I received an error message. May 24 00:53:19 i want to have two textviews on the same line in a linear layout. I have the one using android:layout_gravity="right" but it's getting pushed to the next line May 24 00:53:29 i have them both with widths of "wrap_content" as well May 24 00:54:41 <_Auron_> zinx: now there is a bug I have right now I do need to eventually fix, probably because I'm not handling it correctly; if I exit the program by hitting home (which I don't think actually exits), and try to run/go back to the program again, the screen is black and doesn't do anything May 24 00:55:09 <_Auron_> any suggestions? May 24 01:02:23 _Auron_: do you initialize your view's contents in somewhere other than onCreate? May 24 01:03:00 <_Auron_> yeah, in surfaceCreated May 24 01:03:11 <_Auron_> I'm guessing that's wrong then? :P May 24 01:03:17 hmmmm May 24 01:03:53 what happens if you switch orientation while your activity is running? May 24 01:04:24 <_Auron_> I don't know actually, I set it to landscape mode. May 24 01:05:30 <_Auron_> but in the name of debugging, I can change it to switch with the accelerometer.. *goes to edit his manifest* May 24 01:07:26 <_Auron_> it still works fine May 24 01:12:14 mmmulani: everything gets destroyed, then onResume is called afaik May 24 01:12:43 oh .. you were asking _Auron_ .. Sorry :) May 24 01:30:28 _Auron_: hmmmm May 24 01:30:42 have you managed to fix the problem yet? May 24 01:30:50 sorry, I was on an android that died :P May 24 01:49:26 hi May 24 01:49:58 when I open/closethe keyboard, my app restarts.. can I do something to stop that? May 24 01:50:29 I don't mind if the screen turns, but having it reset is not good May 24 01:51:40 calamari: that's part of the definition of how android works. So I'm afraid you can't change it May 24 01:52:21 skyPhyr: so it's by design that my app basically is killed and reopened? May 24 01:52:32 calamari: if you bundle things up and make your long-term data persist in the right locations it should appear the it was a continous session May 24 01:52:36 calamari: yep - exactly May 24 01:52:52 weird May 24 01:53:01 okay thanks for the explanation :) May 24 01:53:07 calamari: on the plus side this means that once you've designed your app to handle this you're getting the backgrounding to free up resources for free May 24 01:53:30 np :D May 24 02:05:25 pawbie, you're fetching the wrong object May 24 02:05:39 <_Auron_> mmmulani: no May 24 02:05:41 assign an ID to the LinearLayout you want to add the GLSurfaceView to and then fetch that May 24 02:05:56 <_Auron_> calamari: that's part of the definition of how android works. So I'm afraid you can't change it <-- untrue May 24 02:06:01 hmm? findViewById(R.layout.main) is wrong? May 24 02:06:08 yes May 24 02:06:36 _Auron_: put a Log call in surfaceCreated to see if it gets called after you return to the activity from pressing home May 24 02:06:41 _Auron_: it's not? Guess I misread the docs - what should be done? May 24 02:06:56 getCurrentFocus() after setContentView() ? May 24 02:07:20 <_Auron_> use android:configChanges="keyboardHidden" in xml under activity May 24 02:07:25 pawbie, what on earth are you trying to do? May 24 02:07:28 _Auron_: and do you mean when it changes orientation it can't be changed? or you can make it ignore the keyboard May 24 02:07:33 pawbie, pastebin your main.xml May 24 02:07:36 Fail at programming, it seems. May 24 02:07:38 http://pastebin.ca/ May 24 02:07:45 pawbie, seems that way, a little :) May 24 02:07:48 KNY: It's the default layout from a new project. Nothing special. May 24 02:08:04 _Auron_: ahhh ok - but when the OS changes orientation it always restarts right? May 24 02:08:04 <_Auron_> I believe it ignores the keyboard. May 24 02:08:08 pawbie, is this your first app? May 24 02:08:15 <_Auron_> I don't think so May 24 02:08:26 skyPhyr, under almost circumstances, yes May 24 02:08:28 <_Auron_> apps can change orientation, lol. android IRC does it May 24 02:08:41 KNY: Not really, but it's the first time I've had to try to shove a View into a UI because the SDK didn't support defining it in XML. May 24 02:08:44 _Auron_, they're completely torn down and rebuilt when the orientation changes May 24 02:08:44 <_Auron_> doesn't restart the app May 24 02:08:56 <_Auron_> oh May 24 02:08:59 <_Auron_> hrm May 24 02:09:01 _Auron_, yes, it does. You just don't notice :) May 24 02:09:31 pawbie, you need to assign an android:id to the LinearLayout you want to add to, and then fetch that ID instead of just R.layout.main May 24 02:09:36 pawbie, if you pastebin I can show you May 24 02:13:10 _Auron_: check to see if onSaveInstanceState is called May 24 02:13:26 _Auron_: you could probably use onSave and onRestore to fix the surface May 24 02:15:16 _Auron_, sorry, I haven't been following closely: what are you trying to rebuild? May 24 02:20:11 does Android understand OTF fonts? May 24 02:29:21 <_Auron_> KNY: my openGL surface, I suppose May 24 02:29:47 blaaah. Defined But R.id.myLayout doesn't exist... May 24 02:30:19 _Auron_: GLSurfaceView in 1.5 has a default onChange, etc. May 24 02:31:08 <_Auron_> I'm not coding with 1.5 May 24 02:31:33 _Auron_: Check the Triangle example on Developer. There's a GLSurfaceView (or GLView? One or the other) with the correct methods in it. May 24 02:32:09 <_Auron_> I'm using that actually May 24 02:32:36 <_Auron_> hmm May 24 02:33:18 _Auron_: what is the issue? May 24 02:34:01 * sammyF answers his own question : the answer is "no" May 24 02:34:17 <_Auron_> jt436: whenever I leave my program and go back to it, the screen is just black May 24 02:34:25 <_Auron_> it stops getting updated May 24 02:34:43 do you restart your thread? May 24 02:35:51 pawbie: it's @+id/myLayout May 24 02:36:53 er, ya, I missed the @ here, but it's in the code. May 24 02:37:22 android:id="@+id/mylayout" May 24 02:37:29 Building says R.id.mylayout doesn't exist. May 24 02:47:28 bleh, I even created a default LinearLayout with the UI builder, and it still tells me R.id.LinearLayout01 doesn't exist. May 24 02:48:29 pawbie, are you using the right R? May 24 02:48:36 (the one from your project, not android.R) May 24 02:48:48 pawbie: do you have any errors shown in your code? May 24 02:48:53 The same R I loaded R.layout.main with. May 24 02:48:57 if there are, R won't be built until you resolve them May 24 02:49:01 pawbie, that doesn't mean it's the right one May 24 02:49:09 I mean, errors apart from the R.whatever does not exist May 24 02:49:14 Ok, the same R the default project loads R.layout.main with. May 24 02:49:15 <_Auron_> under my activity: protected void onResume() { super.onResume(); mGLView.onResume(); } May 24 02:51:53 pawbie: try "android.R.id.mylayout" instead of "R.id.mylayout" May 24 02:52:28 Negative. May 24 02:52:52 I thought I remembered seeing a tutorial that showed how to set up different views for portrait and landscape orientation... anyone know of this? May 24 02:54:16 This can't be this difficult. I head over to res/layout/main.xml, hit the Outline view, press the plus sign, add a LinearLayout, it assigns it the default id of LinearLayout01... May 24 02:54:22 r.id.LinearLayout01 should exist, no? May 24 02:56:36 pawbie: tv = (TextView) findViewById(R.id.status); May 24 02:57:01 calamari, you put your landscape views in res/layout-land/ instead of res/layout/ May 24 02:57:35 calamari: ? May 24 02:57:46 KNY: thanks.. and is there a way to tell the orientation so that I can call setContentView ? May 24 02:57:57 pawbie: sorry, I probably don't know how to help lol May 24 02:58:33 calamari, it's automagic May 24 02:59:11 KNY: so setContentView(R.layout.main); will automatically work for both? May 24 02:59:14 yes May 24 02:59:25 okay thanks May 24 02:59:29 no problem **** ENDING LOGGING AT Sun May 24 02:59:57 2009