**** BEGIN LOGGING AT Thu Dec 18 02:59:56 2008 Dec 18 04:10:35 Hi all. I'm using the GridView to place images that are discrete units, programatically speaking, but should fit together. It works well. Now, I want to size those images so I fill the screen nicely. How can I get the dimensions the container wants to use, so I can know the size to set my images? Dec 18 10:19:36 hi Dec 18 18:42:50 is it possible to check if the view is still touched or the finger was released? Dec 18 18:45:39 touchlistener? Dec 18 18:45:52 theres a problem Dec 18 18:46:08 wait Dec 18 18:55:20 i have made "toggle buttons" with onDraw() {...drawRect()...} but onTouchlistener is called every time youre finger is moving on the screen..ofcourse...so the button changes its state even if youre moving the finger inside of the button-area Dec 18 18:55:59 isnt there a state or something? Dec 18 18:56:09 i know ive been able to track whether your finger stayed down or not Dec 18 18:56:27 if (event.getAction() == MotionEvent.ACTION_DOWN) Dec 18 18:56:27 Dec 18 18:56:33 check all the motion event types Dec 18 18:56:43 action_down, move, up Dec 18 18:57:34 i thaught ACTION_DOWN is sliding down on the screen?... Dec 18 18:57:43 no Dec 18 18:57:48 key/finger down Dec 18 18:57:51 you're thinking of action_move Dec 18 18:59:21 ok ok, i try that :) Dec 18 19:21:45 when i set the android:background of a ListView and then scroll the list it turns to a black background while scrolling.. is this a bug or what else do i have to set to circumvent this? (keep the initial color) Dec 18 19:21:58 i've seen that in many custombackground apps as well Dec 18 19:22:21 there is a cachecolor property Dec 18 19:22:34 is it posible to load cupcake into the emulator of G1 Dec 18 19:22:45 emulator or g1? 2 different animals Dec 18 19:22:51 cupcake builds an emulator image by default Dec 18 19:23:09 You should just be able to supply the resultant images to the emulator yes? Dec 18 19:23:33 i hope my question made sense Dec 18 19:23:39 Configure for emulator, build, type "emulator". Dec 18 19:24:30 so basically each compile creates an emulator? Dec 18 19:24:48 The emulator is built along with everything else. Dec 18 19:25:15 It's easier to just do it that way then try to treat it as a separate entity and shuffle disk images around. Dec 18 19:25:18 each compile creates an image for the emulator. (it creates the emulator also, along with all the other tools, but the point of the build is the image) Dec 18 19:26:40 ok, just an image for the emulator, i think i undestand--which makes more sense Dec 18 19:32:08 Could anyone help me out recognizing the GUI elements? http://falcon4ever.pcsx2.net/chatscreen.jpg <- i guess that 2 is a edit box and 3 a normal button. But is 1 a listview or a gridview (with an image (4))? and 5 is it something that groups the input field and the send button? Dec 18 19:32:24 I tried creating a similar interface in droiddraw but its kinda hard =/ Dec 18 19:35:23 just look in the source code for the app Dec 18 19:35:46 well isnt the gtalk source closed? Dec 18 19:35:59 oh i thought it was the messaging app Dec 18 19:36:18 the messaging app looks identical to me except for the watermark Dec 18 19:36:25 hmm Dec 18 19:37:21 hmm almost, the messaging one has some blue bar on the left Dec 18 19:38:15 the blue bar is part of the rows in the list view Dec 18 19:39:51 i gotta roll, but im sure others will help you Dec 18 19:41:20 i hope so :) Dec 18 19:41:27 bah he left :( Dec 18 19:45:33 Sigh. Dec 18 19:45:37 #include Dec 18 19:45:37 ? Dec 18 19:46:08 wchar.h:46: error: redeclaration of C++ built-in type 'wchar_t' Dec 18 19:46:28 you guys MUST be kidding here... Dec 18 19:46:58 hm. what build package are you using? SDK, current git head, ...? Dec 18 19:47:09 SDK from like a month ago Dec 18 19:47:16 i see that typedef enclosed in an #ifndef __cplusplus in the current sources Dec 18 19:47:17 aha Dec 18 19:47:22 ah. Dec 18 19:47:36 is there also a lovely comment in there about how using wchar is inherently broken and nonportable? ;) Dec 18 19:47:38 I suppose I really ought to update my source at some point Dec 18 19:47:50 ah, there's that one too. Dec 18 19:47:54 (there is in the head) Dec 18 19:47:55 grr. Dec 18 19:47:56 yeah. Dec 18 19:48:00 does swprintf just not exist then? Dec 18 19:48:09 basically C/C++'s wchar stuff is unusable Dec 18 19:48:21 for one thing it doesn't understand encodings Dec 18 19:48:34 ctate, those are words that I didn't want to hear today :\ Dec 18 19:48:53 oh dear sorry i accidentally ate all your candy Dec 18 19:49:14 since the version of swprintf in our code is "wcstombs the format string, run printf, run mbstowcs on the result" Dec 18 19:49:20 ... : ( Dec 18 19:49:34 meaning %ls doesn't work as it should Dec 18 19:49:38 does the String8 / String16 stuff help you out at all? Dec 18 19:49:39 what's the api for grabbing touch screen events? Dec 18 19:49:41 x, y Dec 18 19:49:42 meaning that instead of "circle" I get "c" Dec 18 19:49:53 "should" is a tricky word when it comes to printf and wchar Dec 18 19:50:01 yes, I know :\ Dec 18 19:50:08 let me look at String8 / String16 Dec 18 19:50:23 it's safest to assume that Android does not support wchars in anything like a standard form Dec 18 19:50:48 mmph Dec 18 19:50:48 String8 and String16 are 8-bit-char and 16-bit-char C++ classes for manipulating strings Dec 18 19:51:01 well, that's less than helpful as well. Dec 18 19:51:04 sigh Dec 18 19:51:24 all the resource data handling code uses String16, for example Dec 18 19:51:26 * vol converts his wchars to chars... : ( Dec 18 19:55:30 Hello Dec 18 19:55:59 Is there a TTS-Api available for Android? Dec 18 19:56:20 the one for the G1 is t-mobile's proprietary lib, so not really. Dec 18 19:56:24 iirc at least Dec 18 20:13:43 vol: you can probably find some stdc++ implementations that won't be horribly onerous to port in (for wchar) Dec 18 20:14:10 If you want C++ exceptions, well, that may be harder. Dec 18 20:14:24 fadden: I just want this to work ._. Dec 18 20:14:37 Step 1: stop using wchar. Dec 18 20:14:39 I just called wcstombs on the arg and stored that in a temp value Dec 18 20:14:52 and passed that to our wsnprintf Dec 18 20:14:58 our horrible wsnprintf Dec 18 20:14:59 yeah, ==fadden is unfortunately the ideal first step, but i gather you have a ton of legacy code that you're porting in? Dec 18 20:15:07 pretty much. Dec 18 20:15:18 the issue with our code is that it's pretty generalized, because we have a LOT of platforms Dec 18 20:15:19 i guess that's why they pay you the big bucks. Dec 18 20:15:49 (or not) Dec 18 20:15:56 Time for an "android portability layer", which I assume you already have the start of. :-) Dec 18 20:16:02 ha Dec 18 20:16:05 something like that Dec 18 20:16:10 mostly we have a unix portability layer Dec 18 20:16:15 which was actually designed for PSOS Dec 18 20:16:19 which is the platform of which we do not speak.... Dec 18 20:16:23 yikes Dec 18 20:16:33 suffice to say, we pretty much reimplement the wheel everywhere. Dec 18 20:16:41 What, no OpenVMS port? Dec 18 20:16:50 don't you start Dec 18 20:16:56 you don't happen to know a chap named David Given, do you? Dec 18 20:17:22 no, I don't believe I do Dec 18 20:17:31 the name sounds vaguely familiar though Dec 18 20:17:39 could be a mishearing of another name though Dec 18 20:17:42 (that is a nicely indirect way of trying to find out whether you work with the OTHER guy i know who is doing ports of lots of native code mobile stuff to Android) Dec 18 20:17:45 ok Dec 18 20:18:09 if that other guy is david given or has a david given on his team, no Dec 18 20:18:16 right Dec 18 20:18:51 once we get guidance on what we can and can't talk about with our ndk with google, I can give you a bit more info : ) Dec 18 20:19:02 yeah, i didn't want to ask you anything right out Dec 18 20:19:30 I can probably tell you and fadden (in private) who I work for, but not right here, and I'd rather wait for clarification before I do Dec 18 20:19:36 no worries Dec 18 20:21:31 Is there an androidy way of performing HTTP requests (I need to interact RESTfully with a web service)? Dec 18 20:22:44 the org.apache.http.* package is part of Android Dec 18 20:23:29 ctate: ah, okay, thanks =D Dec 18 20:31:41 so question... with selecting-text for copy... Dec 18 20:31:45 since you need to hold shift. Dec 18 20:31:52 how the heck will that work with touch-only devices? Dec 18 20:32:25 maybe select-some could be a context menu option when you touch-hold? Dec 18 20:47:55 smartass +1 Dec 18 20:58:00 does anyone have an idea of how long the Dev 1 takes to get to your home in U.S., for my case, I am in New York Dec 18 21:07:57 Does anyone know how long does Android Dev 1 shipping take? Dec 18 21:12:29 one month by camel Dec 18 21:13:21 two if by sea Dec 18 21:13:45 When I call getContentResolver().query on a content provider working with an SQLLite exception, I get an IllegalStateException (database created but not closed). Ack! Where should I close it in the onCreate of the OpenDatabaseHelper? Dec 18 21:29:35 i know this isn't android specific, but when I create a BasicHttpRequest(String method, String uri), is the uri the full URL I want to fecth (e.g. 'http://www.example.com/yams/taste/good.html')? Dec 19 01:40:13 when I run the HelloAndroid example from Eclipse, the emulator doesn't seem to actually run the Activity. it just says "ANDROID_" and I can't figure out why. this is on OSX, in case that matters. Dec 19 01:41:00 I just ran that on my Ubuntu box without problems Dec 19 01:41:31 let it run for a long time ? Dec 19 01:41:36 it should load the TextView right off, yes? Dec 19 01:41:53 how long are you letting it load ? Dec 19 01:41:54 cause mine runs like it's just the emulator with no application opening. Dec 19 01:42:06 hadn't counted. is it super slow? Dec 19 01:42:22 depends on how fast your computer is I guess Dec 19 01:42:27 give it a ridiculous amount of time and see if you get any further Dec 19 01:43:06 can do. time to get coffee, I guess. :) Dec 19 01:45:21 snlemons: run the emulator from a shell prompt and pass it this command-line option: -logcat "*:v" Dec 19 01:46:00 hm. it did finally load. whew. that's gonna make testing a pain, huh? Dec 19 01:46:22 might be faster to load it onto my phone, instead. :) Dec 19 01:46:39 it's slow because it's actually running the ARM asm code, in emulation. it's more reliable that way. Dec 19 01:46:54 and yes, testing on device is important and may be faster if you have a slow Mac. Dec 19 01:47:04 oh, I figured there was a reason. just inconvenient. Dec 19 01:47:23 the tradeoff is totally worth it, although this isn't as obvious from where you're sitting right now :) Dec 19 01:48:07 cool. well, thanks for the tips, folks. Dec 19 01:50:17 for whatever reason, i've noticed that it runs faster on subsequent runs .. Dec 19 01:50:22 the first time seems a lot slower Dec 19 01:50:38 interesting. it does seem to load faster now that I let it load all the way once. Dec 19 01:50:47 but then it appears to be quicker .. maybe cached? i have no idea wtf is going on Dec 19 01:50:51 the first time that a new OS build boots, it does a lot of one-time optimization etc of the dalvik bytecode Dec 19 01:51:03 well there you have it Dec 19 01:51:09 ctate with the knowledge Dec 19 01:51:11 when you buy a phone, it's already booted up once :) Dec 19 01:51:24 :) Dec 19 01:51:35 i don't have a phone :( Dec 19 01:52:04 anybody here running android on anything else than the g1? Dec 19 01:52:04 ew. my phone was with a user before me? I thought I was its first! Dec 19 01:52:16 :-) Dec 19 01:52:22 sloppy seconds :( Dec 19 01:53:26 exco: there's only one other Android phone right now, isn't there? Dec 19 01:53:52 it's at least partially working on some htc phones Dec 19 01:54:02 ah. didn't know that. cool. Dec 19 01:54:21 touch diamond would be a nice phone to get android running on Dec 19 01:55:03 oh, and apparently there already are some people on that - wow Dec 19 01:55:17 I ordered a Polaris some days ago ... android is "working" on it ... but will see how good once I get it Dec 19 01:56:45 what is a polaris ? Dec 19 01:58:02 http://wiki.xda-developers.com/images/HTC_Polaris.jpg Dec 19 01:58:04 ah, google is my friend .. Dec 19 01:58:18 looks like a nice phone Dec 19 01:58:21 how much did it cost you ? Dec 19 01:59:08 200€ Dec 19 01:59:39 not too bad Dec 19 01:59:51 i see a major problem with it though Dec 19 01:59:51 how much is the g1 dev phone in euros ? Dec 19 01:59:58 it's running windows :P Dec 19 02:00:23 zinx, i believe exco is going to try to remedy that situation and re-flash it ? Dec 19 02:00:39 indeed Dec 19 02:00:41 bpadalino: expect a bit less than 400EUR (including taxes, shipping, duties) Dec 19 02:00:54 wow Dec 19 02:00:58 that is pretty ridiculous Dec 19 02:01:18 i think it's 400USD .. europeans get screwed :( Dec 19 02:01:47 yes, it's $400 in the US. International shipping + EU taxes aren't cheap. Dec 19 02:02:25 I thought of getting the developer G1 - but the 100$ shipping were just too ridiculous Dec 19 02:03:07 the actual shipping is typically less than $50, the rest is taxes and duties... Dec 19 02:03:18 no need to reflash it ... you can put android/other linux' on the SD card and boot it from there Dec 19 02:03:40 * ttuttle wonders if it's ever cheaper to fly here and buy it locally. Dec 19 02:03:55 ttuttle: nope, definitely not. Dec 19 02:04:02 exco, oh really - sd booting, huh ? Dec 19 02:04:05 that's pretty slick! Dec 19 02:04:08 it would be cheaper to ask a friend to buy it for you and send it to you declared as a gift or sth Dec 19 02:04:11 jbq: What if you have one person do it fo -- oh wait, that's selling it. Dec 19 02:04:13 does the touch diamond do that too ? Dec 19 02:04:17 exco: Yeah. Dec 19 02:04:34 * ttuttle is willing to forward packages for anyone, provided you trust me. Dec 19 02:04:46 (ADP1's only, of course.) Dec 19 02:06:51 bpadalino: don't know about the Diamond's status, but you can boot "well sort of" boot some phones with various distro's http://handhelds.org/moin/moin.cgi/SupportedHandheldSummary Dec 19 02:07:04 thanks for the link Dec 19 02:07:06 very cool Dec 19 02:09:50 for running android on a Diamond I would keep an eye on this site http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux Dec 19 02:11:10 thanks Dec 19 02:38:43 I'm looking for recommendations regarding beginners coding tutorials. Anyone? Dec 19 02:44:40 http://www.devx.com/wireless/Article/39145/0/page/1 Dec 19 02:45:22 exco thanks Dec 19 02:46:18 np Dec 19 02:48:25 will take anyone elses as well. Dec 19 02:50:20 http://code.google.com/android/samples/ApiDemos/index.html **** ENDING LOGGING AT Fri Dec 19 02:59:57 2008