**** BEGIN LOGGING AT Mon May 11 02:59:57 2009 May 11 03:19:12 <_Auron_> is anyone in here not idle? May 11 03:22:32 no May 11 03:23:30 <_Auron_> heh May 11 03:23:43 <_Auron_> vol do you have any experience with openGL|ES? May 11 03:23:51 * vol hides May 11 03:24:00 I know that you can compile against the lib with C code May 11 03:24:09 but I barely know OGL and ES, forget it. May 11 03:24:44 <_Auron_> oh May 11 03:25:19 <_Auron_> I'm having an issue with the viewport not being changed correctly to my scree res values, so it bases translations and such in ortrographical view as if the screen's res was counted as -1.0f to 1.0f, horizontally and vertically May 11 03:25:36 <_Auron_> even though I'm setting it exactly the same as you would in OGL May 11 03:28:22 :( May 11 03:28:32 is this something that happens on rotation? May 11 03:36:06 OGL probs still? May 11 03:49:56 <_Auron_> yeah May 11 03:50:21 <_Auron_> size of output and camera are fine now, just having viewport value issues May 11 03:53:06 <_Auron_> gl.glViewport( 0, 0, 480, 320 ); \ gl.glMatrixMode( GL10.GL_PROJECTION ); \ GLU.gluOrtho2D( gl, 0.0f, 480.0f, 320.0f, 0.0f ); <-- I do this when I init my surface May 11 03:56:54 [Ayumi]: you here? May 11 03:58:04 whoops sorry wrong chat May 11 04:35:30 <_Auron|G1_> andrew did you say anything since I last spoke? May 11 05:25:28 i guess android doesn't like drawable with numbers as filenames May 11 05:25:29 * _Auron_ pokes AndrewLuecke May 11 05:26:05 Not realyly.. May 11 05:28:47 <_Auron_> AndrewLuecke: any idea about my viewport issue? May 11 05:29:16 that resource compile system thing might be neat but it doesnt exactly help with porting May 11 05:31:31 Don't you need to change the FOV or something? May 11 05:31:36 * AndrewLuecke can't remember May 11 05:31:46 Its always something I had to play with.. May 11 05:33:46 Anyway.. I only coded OGL 2 years ago, Unless I have done it regularly, things could get worse if I touch the code at the moment May 11 06:10:06 <_Auron_> AndrewLuecke: I don't think I need to even touch the FOV if I'm rendering in ortrographical May 11 06:10:28 lol May 11 06:10:38 yaeh.. ignore me.. May 11 06:10:40 lol May 11 06:10:42 <_Auron_> ? May 11 06:11:49 <_Auron_> when I did the same thing in openGL but in C++ w/ SDL on windows, all I did were the previously stated calls May 11 06:13:58 <_Auron_> also my triangles are displaying textures upside-down May 11 06:14:10 <_Auron_> but that might be because I'm doing CW instead of CCW, lemme fix that. May 11 06:16:41 Yeah.. the textures thing would be easy to fix. But yeah, I always sucked at FOV May 11 06:16:49 err.. Viewports and such May 11 06:16:53 * AndrewLuecke hates cameras May 11 06:17:11 * _Auron_ just wants the 3d units to perfectly corrospond to the screen's pixels :/ May 11 06:18:05 Checked your code against Nehe's site? (Although, that was YEARS ago now) May 11 06:18:12 <_Auron_> which I guess its technically doing now, and if openGL|ES just by default does it differently, I just may need to translate it. Guess I could translate the projection by 0.5f, 0.5f, 0.0f May 11 06:19:05 <_Auron_> AndrewLuecke: I have visual C++ 2008 express open with my 2d opengl game engine loaded, and I'm comparing THAT code May 11 06:19:13 ok May 11 06:19:15 <_Auron_> I used nehe's site as a guid to getting used to openGL, among a few other places May 11 06:19:34 yeah.. everyone did.. was just more interested if it was even still up May 11 06:19:44 anyway.. gotta finish this exam answers thing May 11 06:20:06 <_Auron_> nehe is still up, even has openGL|ES versions of the tutorials now, as of a few days ago May 11 06:20:38 bbs May 11 06:20:57 <_Auron_> well, that someone else made. they just linked to it May 11 06:20:57 <_Auron_> k May 11 06:25:21 <_Auron_> hmm. when I translate the worldview, y is in reverse. May 11 06:25:29 <_Auron_> so I guess the camera is actually upside-down May 11 06:27:23 opengl doesn't really have a "camera" May 11 06:37:16 <_Auron_> well, you know what I mean May 11 07:01:13 Hi all ;) anyone had any problems with shouldOverrideUrlLoading in 1.5? May 11 08:10:27 While initializing the text view I want to scroll it to the specified position May 11 08:10:55 Where should I call scrollTo method? May 11 08:12:13 I tried to call it in the onCreate and onResume May 11 08:12:23 but it doesn't scroll May 11 11:19:29 http://stackoverflow.com/questions/847664/where-to-save-pictures-on-android May 11 11:31:40 Hi all May 11 12:47:06 android.text.format.Formatter is gone in 1.5? its still in the docs May 11 13:42:17 I'm only getting two location updates in the emulator, no matter what values I set for mintime / mindistance ... pushing lat/lng with ddms ... any ideas why it stops after 2? May 11 14:03:30 Hi! May 11 14:04:57 My app starts the global sync (google calendar, contacts, mail) and I want to be informed when it's finished.... Is there a way to do that? The SDK doesn't help... May 11 14:05:18 maybe anyone here has a clue? May 11 14:36:03 so so close to toggle gps on cupcake May 11 14:41:38 does GPS take any power when the icon isn't up? May 11 14:42:24 shouldnt afaik May 11 15:07:24 elprespufferfish: no May 11 15:07:33 only uses power when actually requested May 11 15:39:58 does anyone happen to have an eclipse coding style file that reflects the requirements to submit code to the Android project? I'm just being lazy and don't have to have to reconfigure... May 11 16:09:28 Hello all, quick question about the default email app: I've used it to send messages using an imap server, but it has saved all my sent mail in a local folder called 'sent'. How do I get that mail into the 'sent mail' folder on the imap server. Hope you can help! May 11 16:16:31 herriojr: yep, there is a template May 11 16:16:51 in development/ide/eclipse/ May 11 16:17:42 or here http://android.git.kernel.org/?p=platform/development.git;a=tree;f=ide/eclipse;hb=cupcake May 11 16:24:31 morning jsharkey May 11 16:26:06 sharkfood May 11 16:26:15 lechuga! May 11 16:26:18 bbq! May 11 16:31:25 jasta_: morning :) May 11 16:31:35 jbq: iz back! =D May 11 16:31:41 heh May 11 16:32:49 hey jbq May 11 16:36:06 rooooar at toggle gps May 11 16:36:26 i somehow broke what was workingish this morning May 11 16:39:00 Hi -- where are the docs for MapView ? can't find it in the Reference May 11 16:45:22 ItemizedOverlay.onTap(int) just won't work for me....but ItemizedOverlay.onFocusedChangedListener is working... May 11 16:58:57 soreachilles, it's not part of Android so it's not in the Android docs anymore, you can find it here atm: http://code.google.com/android/add-ons/google-apis/reference/index.html May 11 16:59:13 nice, thanks much May 11 16:59:24 np May 11 18:04:18 and here comes the noob question of the day: I have 3 views LinearLayout(horizontal), Button and CheckBox. I'd want the checbox to go to the left side and the button to the right side of the screen with empty space between them (all the space that's left from the two views). How do I do that? :) May 11 18:05:34 actually that might not be the most basic question I have..I'm sure there was something other I wanted to ask :P May 11 18:31:16 tauno__: use a RelativeLayout, and align the button to the left of parent, checkbox to the right of parent, and both inner widgets would have wrap_content May 11 18:31:42 err other way around, checkbox on the left, etc :) May 11 18:32:18 jasta_, yeah thanks :) but can it be done with the linearlayout? May 11 18:32:30 just kidding - I'm going with relativelayout :) May 11 18:32:33 yes. May 11 18:32:45 it can? May 11 18:32:47 a linearlayout can do it by setting the gravity of each child May 11 18:33:17 gravity of the checkbox would be left, the other right May 11 18:33:25 sure about it? tried to set android:gravity to left for chebox and right for button May 11 18:33:31 jasta_: it will work only if all the children are in a vertical linearlayout May 11 18:33:42 oh, well nevermind then May 11 18:33:44 tauno__: he's talking about layout_gravity May 11 18:33:45 and that only changed the position of the contents of the checkbox/button to left/right May 11 18:33:50 ah ok May 11 18:33:51 but RelativeLayout is the right choice for this layout anyway May 11 18:33:56 confusing things here May 11 18:34:33 tauno__: android:gravity specifies a default gravity for all children of the layout, android:layout_gravity specifies a layout parameter on the current widget _FOR_ its parent to use. May 11 18:34:41 this is true of all layout_* parameters. May 11 18:34:46 is there a specific reason why relativelayout > linearlayout in this specific case? May 11 18:34:47 layout_ is a directive to the parent. May 11 18:35:14 tauno__: because the way you express this type of layout with RelativeLayout is more clear. May 11 18:35:27 jasta_, yeah, I see - have not developed much on android for the past 2 months so I forget basic things already :( May 11 18:35:31 RelativeLayout is the bomb May 11 18:37:49 is the memory/performance difference something that I should care/think about in this case (eg relative vs linear) or is it a minor issue (I guess minor but just in case) May 11 18:39:46 (would be awesome if there were some more common strings public under android.R.string.* like "Settings" for example) May 11 18:40:26 tauno__: i dont know, i have not analyzed the performance of these particular cases. you can look at the source code yourself id you'd like. May 11 18:41:27 yeah, sure :) May 11 18:41:32 Hi, I'm trying to downgrade from UK RC9 to RC7, it fills up the progress bar then reboots on its own but is still RC9. Any ideas why it's doing this, I don't see any errors. May 11 18:41:57 Ratty_, you might have more success in #android May 11 18:42:08 Nope :/ May 11 18:42:16 Ratty_: well you wont have success here in either case ;) May 11 18:42:19 ah ok, missed you there, sry May 11 18:42:34 :( May 11 18:43:37 tauno__: minimizing the depth of nesting in your layout is always worth being mindful of May 11 18:43:58 total number of views also matters, of course May 11 18:44:54 "but my layout is only 14 levels deep" May 11 18:47:21 tauno__: heh May 11 18:47:45 sry, bad joke May 11 18:50:58 i laughed :) May 11 18:55:30 is there any reason why onDestroy might not get called when i call finish() on a sub activity? May 11 18:56:00 it pooped May 11 18:57:37 its acually even worse than this... when i open the subactivity again onDestroy gets called but after onCreate May 11 18:59:23 arr.. questions question.. should a sign-in screen be (username/password/remembermecheckbox/signin button) a full activity or just a dialog on top of the main application view? confused.. can't decide :/ May 11 19:00:00 i'd say dialog May 11 19:00:22 do you really need to sign in every time? May 11 19:00:33 jsharkey: thanks May 11 19:00:52 curently I did it as a full activity but in this case about 60% of the screen is empty so I can't leave it like this May 11 19:01:04 tauno: add pretty colors May 11 19:01:34 blau-mikeDG, yes but this can be done in the background when username and password are saved May 11 19:01:35 and logos May 11 19:01:48 put it in a settings screen May 11 19:01:59 and show that when it first runs May 11 19:02:00 blau-mikeDG, colors don't change the fact that I'm wasting 60% of the screen May 11 19:02:01 like twidroid May 11 19:02:08 tauno, yes they do May 11 19:02:10 I hate that May 11 19:02:13 default colors are empty May 11 19:02:17 new colors are filled May 11 19:02:44 I think the way twidroid does it, is inhuman (if that's a word in english :P) May 11 19:03:18 i think it works great May 11 19:03:24 thats about the only thing about twidroid that i like May 11 19:03:24 lol May 11 19:04:05 like are they just using a long webview instead of a listview? May 11 19:04:11 yeah, presenting the user with a 30-settings settings page on first launch is really usable and not frightening at all to a casual user :) May 11 19:04:13 or is each item a webview May 11 19:04:28 tauno, well use a real preferences page May 11 19:04:38 instead of the hacked together crap they used May 11 19:05:38 I think I'm going the Dialog way - that's how Market etc does its login stuff May 11 19:06:23 romainguy_, can we get ui/ix design guidelines for it? :) May 11 19:19:53 so, in reference to cursors returned by ContentProviders, does it actually return the cursor object? I'm wondering if I can add some asynchronous processing inside the cursor May 11 19:20:09 before it is returned to the calling application May 11 19:20:49 jsharkey: ping (a different question than I have above) May 11 19:21:17 appwidget related May 11 19:24:32 Am i right that you can't post a runnable from a background thread to the main thread to start an activity? May 11 19:25:35 why can't you? May 11 19:25:44 just send it to a handler on the main thread May 11 19:26:11 if i call startActivity from the main thread it works, if i post the runnable from the main thread it works, if i post the runnable from a background thread it does not May 11 19:26:56 are you posting the runnable to the main thread? May 11 19:27:00 through a handler? May 11 19:27:00 works/works not means ... the sub activity is displayd but onDestroy is not called when i call finish May 11 19:27:06 yep May 11 19:27:19 the problem is not that its not displayed May 11 19:27:33 it not cleaned up properly May 11 19:27:51 if you have a handler on the main thread, and you post to that handler, and inside the runnable you call finish(), that should finish your activity May 11 19:28:39 i can't call finish inside the runnable... the runnable calls startActivity using an intent May 11 19:28:45 but I may be talking out of my ass May 11 19:28:58 I'd have to write some test code to try it out May 11 19:30:26 maybe the activity runs in the background thread for some reason... but i doubt thats even possible May 11 19:30:35 guess i have to do some more tests May 11 19:31:31 I would isolate it into a test application May 11 19:32:10 i don't want to wast that much time with it May 11 19:32:13 waste May 11 19:32:41 ok, well, if I get around to it, I'll try it out for you May 11 19:32:52 thanks May 11 19:38:13 anyone notice any problems with WebViewClient not firing shouldOverrideUrlLoading() for some redirects? May 11 20:24:01 i want to create a 3 by 3 box, white background w/ black border, that when i click on one it fills up grey and when i click on a grey-filled one, it goes back to white, what's the best way to go about this? May 11 20:24:20 3 by 3 so 9 boxes total May 11 20:26:52 does webview work with HTTS? May 11 20:33:39 is it possible to make it so a Cursor to a ContentProvider doesn't listen for updates to the provider? May 11 21:08:07 herriojr: unset the notification uri? May 11 21:10:02 or don't set it in the first place May 11 21:18:18 <_Auron|G1_> anyone know why orthographical rendering doesn't work in openGL|ES? May 11 21:18:39 <_Auron|G1_> or at least, show anything at all May 11 21:19:28 <_Auron|G1_> I set matrixmode to gl_projection and set the orthographic view, but when I render nothing shows May 11 21:29:32 huh.. just made my first attempt at using AutoCompleteTextView and SimpleCursorAdapter (with FilterQueryProvider) to do something fancy.. I'm pretty sure that I'll leak all kinds of stuff there but it seems to work for now May 11 21:30:15 do I have to manually close something if I use SQLiteOpenHelper.getReadableDatabase() and then do some querys on this? May 11 21:49:29 hey again May 11 21:51:19 does anyone know anything about setting the new software keyboard in 1.5? May 11 21:51:29 setting up, that is May 11 21:51:39 it seems incredibly obtuse May 11 21:51:55 according to the javadocs May 11 22:00:21 well, what do you mean by "setting up the keyboard"? May 11 22:00:30 i mean, end users basically don't have to do *anything*, right? May 11 22:02:09 you know, I've always been curious, how come they didn't make it so you can switch out the TabHost for a TabActivity? May 11 22:02:39 well, ctate, let me give you my situation May 11 22:03:05 EditText views can naturally be edited with the soft keyboard May 11 22:03:52 but what I need for my app is to have the soft keyboard work like the G1's software keyboard...give or take some functionality May 11 22:04:11 sorry, the G1's hardware keyboard May 11 22:04:58 up until now we've been relying on the hardware keyboard, and for various reasons we want to now only support the soft keyboard May 11 22:05:19 so if you're on a G1 and the user opens the keyboard on your app and starts typing, what happens? May 11 22:05:46 the screen won't reorient and won't accept key input May 11 22:05:53 ctate: do you know where the code which resolves the Configuration object's parameters to resource locations like res/drawable-finger-land? May 11 22:06:11 trying to look for some similar serialization to store cached versions of resources based on the current config May 11 22:06:38 jasta: that's an end of things i haven't worked on, sorry May 11 22:06:50 trying to grep but not getting far :) May 11 22:08:50 well, anyhow I was just wondering if anyone had delved into InputMethodManager or InputMethodService May 11 22:08:51 some stuff in base/tools/aapt/AaptAssets.cpp that looks like the opposite of what i want :) May 11 22:09:07 heh May 11 22:09:32 remember that a bunch of the resource handling code linked into aapt is also used verbatim on the device May 11 22:10:05 because thats the only in I've found on this so far, and it seems to be an enormous pain in the rear May 11 22:11:36 ohh, configuration implements hashCode(), i will just use that. May 11 22:12:43 nuts, nevermind, i cant use that, it includes things like keyboardHidden and such May 11 22:12:57 not a good idea anyway since it also includes locale and such May 11 22:12:59 ill do it manually :) May 11 22:14:38 howdy... using the location manager on gps, onLocationChanged only gets called twice, when pushing coords via emulator control & ddms.. no idea why it stops after 2 with no log output so I just wired my own thing to push coords to onLocationChanged... May 11 22:15:38 I'm not sure I'd go back to trying emulator control, but is there something tricky you have to setup for locationmanager with the emulator? it works for just 2 updates :) heh weird, I know.. May 11 22:16:17 When trying to flash a nandroid backup with fastboot It keeps saying < waiting for device> any ideas why ? May 11 22:17:57 Seems like its not communicating with my phone when its in fastboot mode. May 11 22:18:16 I had that issue at one point May 11 22:18:45 Im usint JF 1.5 adp and the google 1.5 sdk (the usb driver/adb/fastboot) May 11 22:18:45 Make sure that an up to date version of the ADB driver is installed May 11 22:18:58 hmm May 11 22:19:22 Prob some other mismatch May 11 22:19:32 Adp works May 11 22:19:38 just not fastboot May 11 22:19:56 I put the phone into fastbood using adb May 11 22:20:24 Sounds like the version of fastboot on the sdk doesnt like my phone?! May 11 22:20:37 hm May 11 22:20:55 did you update the radio firmware? May 11 22:21:01 I think so May 11 22:21:14 Ill check, any way to reboot from fastboot or take battery out? May 11 22:21:32 Its send, hangup, and menu May 11 22:21:36 all together May 11 22:21:50 ah nine one May 11 22:21:53 nice* May 11 22:22:27 Are you using the fastboot binary from the 1.5sdk? May 11 22:25:09 My Baseband is 2.22.19.26I May 11 22:27:33 hey google, what is up with this line of code: May 11 22:27:38 oh wow, so when you access a ContentProvider via a query, it stores all of the query in memory, right? May 11 22:27:45 String lengthString = lengthString = length < 0 ? "": android.text.format.Formatter.formatFileSize(activity, length); May 11 22:28:10 where's the code review when you need it May 11 22:28:34 I'm not google, but I don't see a problem with it May 11 22:28:47 ;) May 11 22:28:50 why double assign lengthString? May 11 22:28:59 someone's not paying attention to warnings May 11 22:29:08 I'm just being an ass May 11 22:29:10 don't mind me May 11 22:29:26 ah, sry, ass detector off today May 11 22:32:05 hey sry, budwaa, yeah that should be the right baseband May 11 22:32:16 odd May 11 22:40:16 question about clicking/touching hierarchies: I have a list view that uses CheckedTextView for its item list. Works great. If I replace the CheckedTextView with my own custom view (which has a CheckedTextView inside a couple of linearlayouts), my checkbox no longer toggles when I click the list item. What do I need to do to pass the clicks down to the CheckedTextView? May 11 22:40:53 I tried various combinations of android:clickable, onTouchEvent(..){return false;}, etc May 11 22:48:02 Good afternon! Is the Eclipse repository for the ADT plugin down? May 11 22:49:36 no, they inexplicably switch back and forth between the https and http servers May 11 22:49:59 so if one doesn't work try the other May 11 22:50:06 Ha! I see. I'll give it a shot. Thanks! May 11 22:50:41 Yep, using http instead of https did the trick. I appreciate the help! May 11 22:50:58 heh, no problem May 11 23:16:19 no takers on my click thru issue in ListView? my custom item view isn't passing the click down to its CheckedTextView May 11 23:55:49 hey, is there a list of the possible intents and uri's that the google apps have? May 11 23:56:05 like if i wanted to provide a link to a contact through a widget **** ENDING LOGGING AT Tue May 12 00:15:12 2009 **** BEGIN LOGGING AT Tue May 12 00:15:31 2009 May 12 00:17:44 Is there a way to set a media player to pause/stop playing if the activity is paused/destroyed? May 12 00:20:59 svm_invictvs: use a playing service. May 12 00:21:05 like the music player does May 12 00:22:02 jasta: Playing Service? May 12 00:22:13 a Service. which plays your media. May 12 00:22:43 LIke a daemon process? May 12 00:23:41 wahtever you want tot hink of it as. look at the music apps source code. May 12 00:25:52 jasta: I don't think I want a service. I want the media to stop playing, not persist through the activity May 12 00:27:15 oh, i misunderstood. May 12 00:27:26 if you want the mediaplayer to stop during onpause or ondestroy, simply do that. May 12 00:29:28 ah, okay May 12 00:29:37 I just was curious if there was some stuff to automatically do it. May 12 00:31:07 Is there a way to hook when the "back" button is pushed? May 12 00:32:16 I want an item to select a contact (or display their name), but I can't get a textview to centre the text vertically when I give it any height more than the text). Basically after a single row from a listview May 12 00:33:25 svm_invictvs - yeah - you can capture the back button - you can capture all of them except home May 12 00:35:23 http://developer.android.com/reference/android/view/View.OnKeyListener.html May 12 00:37:05 I see that, thanks! May 12 00:37:32 np May 12 00:38:51 it can change /dev/log from directory to socket device? May 12 00:49:45 Hm... May 12 00:49:46 http://rafb.net/p/t35Lu717.html May 12 00:50:23 With that I'm not able to open whatever URL I passed. May 12 00:50:37 DO I have to open a socket or something? May 12 00:50:43 Or perhaps have my app request a permission? May 12 01:05:23 Why can't I just make my process terminate when the activity is destroyed? May 12 01:05:27 Is that a really bad thing? May 12 01:12:44 the element with the + button above and - below used in the TimePicker - is it available separately? May 12 02:17:41 anyone interested in some opengl es tuts? May 12 02:21:20 I guess so May 12 02:25:50 i dont know if there is :) thats why im asking May 12 02:25:56 is there much out there now? May 12 02:26:53 like geared towards fps games May 12 02:31:24 I don't really know, haven't checked. May 12 02:31:39 there are a couple examples on in the api demos app May 12 02:31:54 really it's implied that you, the developer, will figure out what to do if you're going down the dark road of using opengl es May 12 02:32:08 the classes are pretty much just wrappers for OGL ES functions May 12 02:32:35 so it is assumed that you will pick up a book on OGL|ES and figure things out May 12 02:52:48 vol: thanks. i have a contact working on some in depth opengl guides and just trying to guage the demand May 12 02:54:21 I'm sure people would love to see them May 12 02:55:18 i know i would as a gamer. to see more advanced 3d games. May 12 02:59:06 i'm also sure that the graphics folks @ Android would love to see them May 12 02:59:27 i encourage you to try them out on the android-developer mailing list for feedback. **** ENDING LOGGING AT Tue May 12 02:59:57 2009