**** BEGIN LOGGING AT Sat Jul 25 02:59:57 2009 Jul 25 03:07:54 I really should have asked this here Jul 25 03:08:01 I have a googlemap, that I draw pins on Jul 25 03:08:08 now I want to draw a rectangle on it Jul 25 03:08:14 but I don't know how to get the canvas for draw(Canvas) Jul 25 03:08:20 I tried draw(new Canvas()) but got a really cool ecrash :( Jul 25 03:08:26 so, how do I get the correct canvas? Jul 25 03:08:32 oh, and here's the crash http://pastebin.com/m77eb6f2a Jul 25 04:06:57 I have a simple 8x40 gradient (created in gimp) that looks great in every desktop browser but looks terrible on android's dev phone 1 phone. It has obvious blocking about every 40 pixels. Any ideas on what I might be doing wrong? Jul 25 05:42:18 bla Jul 25 05:42:21 wow Jul 25 05:42:36 my nick, how did this happen. Jul 25 05:42:49 thats better Jul 25 11:45:10 <_KaiSoZ_> hi Jul 25 11:45:42 <_KaiSoZ_> has anybody ever used android irc app? Jul 25 11:59:12 _KaiSoZ_: I use connectbot to ssh to my machine running irssi Jul 25 13:51:26 <_KaiSoZ_> hi Jul 25 13:51:48 <_KaiSoZ_> i'm planning on creating an app in order to move a lego midstorm with the G1 movement sensor Jul 25 13:52:20 you fool, you'll kill us all! Jul 25 13:52:23 <_KaiSoZ_> i would create a .so file with the api to access the bluetooth (in fact, i already started...) and then a wraper in order to use it from java Jul 25 13:52:25 <_KaiSoZ_> xDDDDDDDDDD Jul 25 13:52:38 ohhh snap Jul 25 13:52:43 <_KaiSoZ_> actuallly, that's my plan Jul 25 13:52:43 NDKers in da house Jul 25 13:52:43 :X Jul 25 13:52:45 <_KaiSoZ_> hahaha Jul 25 13:52:47 <_KaiSoZ_> yes yes Jul 25 13:52:51 <_KaiSoZ_> that was my question Jul 25 13:53:04 <_KaiSoZ_> i started the develop before the ndk appeared Jul 25 13:53:06 now if only i could get my product build system working right..... Jul 25 13:53:25 <_KaiSoZ_> i don't know if actually the ndk would help me in some way or not.. Jul 25 13:53:32 <_KaiSoZ_> has anybody used it already? Jul 25 13:53:36 if you're making a native library .... Jul 25 13:53:40 <_KaiSoZ_> aha Jul 25 13:53:43 look and see what the ndk actually lets you do Jul 25 13:53:55 i doubt it will let you go that far, but it's a starting point Jul 25 13:54:08 since the purpose of the NDK is to make libraries that are accessable from dalvik Jul 25 13:54:34 <_KaiSoZ_> well, the only point i see so far (cause i didn't read the whole documentation) is the cross compiler (wich already built myself) Jul 25 13:54:44 <_KaiSoZ_> aha Jul 25 13:55:08 <_KaiSoZ_> well, i'm gonna read something, hang on a bit Jul 25 13:55:11 <_KaiSoZ_> :p Jul 25 14:00:14 <_KaiSoZ_> uff sorry actually i have to leave... Jul 25 14:00:17 <_KaiSoZ_> i'll come back later Jul 25 14:00:20 <_KaiSoZ_> c u! Jul 25 14:48:29 Hey Jul 25 14:49:56 I'm desperately trying to get a ListView to work with CheckedTextView items. I'm using a simple adapter and a row template that only consists of a CheckedTextView. How do I set the text of each item? (It's no possible through SimpleAdapter - it says "should be bound to boolean, not String") Jul 25 15:01:18 is File.exists() the cheapest way to tell if a file exists? Seems a bit heavy-handed to have to make a new File object if I just want to see if it exists Jul 25 15:16:39 Fortunately I found the solution! Thanks anyway. Jul 25 15:31:32 I have a TextView that I made clickable and focusable, but there's no visual indicator when there's focus on it. How would I go about doing it like Browser, so there's a border around the text? Jul 25 15:31:50 do I have to create a selection skin or is there one built-in? Jul 25 15:45:45 hi all, I want to build the current trunk. Can anyone tell me where I can find the 'lunch' binary? Jul 25 15:46:36 lunch binary? Jul 25 15:46:38 it's in the repo that you sync'd Jul 25 15:46:43 make sure you are in your repo dir Jul 25 15:46:48 and do . build/envsetup.sh Jul 25 15:46:58 like, say, you're in ~/mydroid Jul 25 15:47:16 ~/mydroid $ . build/envsetup.sh Jul 25 15:47:18 then Jul 25 15:47:22 ~/mydroid $ lunch Jul 25 15:47:23 will work Jul 25 15:47:54 Yuki: ok, thanks :-) Jul 25 15:48:12 don't worry, i'm only a few steps ahead of you Jul 25 15:48:21 i just built and deployed my first real hardware image Jul 25 15:48:22 :) Jul 25 15:48:47 Yuki: well, I actually did a couple of builds already, but with the old method. :-) Jul 25 15:49:06 eh Jul 25 15:49:10 i just jumped in Jul 25 15:49:24 i'm going to rip the android out of android and put X11 and real linux back in? :D Jul 25 15:50:30 Yuki: lol, ok, good luck with that Jul 25 15:50:37 going to install the Moblin UI? ;-) Jul 25 15:50:58 Moblin? No Jul 25 15:51:00 GPE or Opie Jul 25 15:51:12 Opie wouldn't require X, but it's good to have tinyx working anyway Jul 25 15:51:40 right, well, I'm curious whether you get any results :-) Jul 25 15:51:57 i don't see why I wouldn't :) Jul 25 15:52:06 it appears the display driver is just a standard framebuffer driver Jul 25 15:52:19 so any fbdev supporting application kit should work, and the touchscreen is supported on the kernel level, so... Jul 25 15:55:12 Yuki, ok :-) Jul 25 15:55:51 so, anyone an idea why I get this error: build/core/main.mk:450: *** No TARGET_CPU_ABI defined by board config: when I try to build Donut for Dream? Jul 25 15:56:18 have you defined TARGET_CPU_ABI in AndroidBoard or BoardConfig? (Whichever one it is) Jul 25 15:56:45 no, I didn't change anything Jul 25 16:01:23 Hi - is android development java only? Jul 25 16:01:35 Super_Cat_Frog, for the most part, yes Jul 25 16:01:56 no jython? Jul 25 16:01:57 there is a scripting environment you can use for python (and maybe some others) Jul 25 16:02:14 Yuki: I'm not sure that I should. Shouldn't that be done automatically when you follow the Building for Dream guide? Jul 25 16:02:21 Super_Cat_Frog, http://groups.google.com/group/android-developers/browse_thread/thread/b854a7c2e50966f6/24a6de5dfe6b20f5 Jul 25 16:02:30 thanks Jul 25 16:03:00 Anybody here using App Engine with Android? Jul 25 16:03:22 aVirulence, donut is new and crazy and might not have it set Jul 25 16:03:22 :P Jul 25 16:03:47 so, do you happen to know what I should set and where I should set it? ;-) Jul 25 16:04:01 hehe, 'new and crazy' Jul 25 16:04:09 no idea Jul 25 16:04:25 let me look at my cupcake tree Jul 25 16:22:52 Super_Cat_Frog: you can user scala Jul 25 16:22:58 -r Jul 25 16:29:14 hmm, i'll gander Jul 25 16:29:43 although if i could just get eclipse to work, i might give java a go Jul 25 16:29:54 ive used java before, didn't like it Jul 25 16:30:10 but if i can make shiney buttons on my phone to do something interesting, i'd put up with it Jul 25 16:30:56 im thinking along the lines of a python app on my desktop to listen on a port, list videos, play them with mplayer, and control mplayer with my phone ( pc is plugged into my tv ) Jul 25 16:31:10 probably a bit ambitious though Jul 25 16:35:48 Yuki: I'm guessing the board is msm7k? but I don't see where I should define that Jul 25 16:37:02 no clue, really Jul 25 17:07:26 hey guys Jul 25 17:12:13 i got an activity, in its layout there's a listview. in activitie's oncreate() i get a reference to the listview with findviewbyid(), create a listview adapter and do listview.setadapter(adapter). this line runs well, but after oncreate() i get a notfoundexception in resource.java ... Jul 25 17:23:25 I measured the events per second for the different SENSOR_DELAY_* values. In the ref. and books they are always sorted alphabetically, and you may think that SENSOR_DELAY_NORMAL is faster than SENSOR_DELAY_UI, this is not correct. Here is what I got: SENSOR_DELAY_NORMAL 5/s, SENSOR_DELAY_UI 13/s, SENSOR_DELAY_GAME 25/s, SENSOR_DELAY_FASTEST 50/s Jul 25 17:23:54 I used the compass for this Jul 25 17:25:15 if you run Lunch, in what file is the build information specified? Jul 25 17:53:30 Hi Jul 25 17:55:59 I was wondering can anybody help me out with this question? http://stackoverflow.com/questions/1182620/android-textview-in-view Jul 25 17:56:01 thanks Jul 25 17:59:27 Dawson78, do not cross-post questions between channels. They are separate channels for a reason Jul 25 18:00:27 ok then Jul 25 18:03:09 Dawson78: use a FrameLayout, all items in a FrameLayout are stacked upon each other Jul 25 18:03:18 cheers thanks Jul 25 18:04:32 that is something I missed in the reference material, there is a "Hello, Views" but not a "Hello, Layouts" (or is there?) Jul 25 18:04:53 not that I could find.. Jul 25 18:17:44 look at the ApiDemos project in the sdk, thats the best source for learning and seeing what android can Jul 25 18:41:41 do selectors in xml HAVE to be in a file for their own ? Jul 25 18:46:52 hey, i'm new to android... but i was wondering if it's normal that it takes approximate 3 min until the compiled code gets executed by the AVD Jul 25 18:47:27 nazguul81: yes Jul 25 18:48:36 i have 8 buttons whose backgroiundimages should change when pressing, when i wanna do it with electors i need 8 xml files ?? Jul 25 18:49:10 shashon - do you talk about an emulator or a real device ? Jul 25 18:49:24 nazguul81: what do you mean "electors"? Jul 25 18:49:36 selectors of course Jul 25 18:49:36 unfortunately the emulator Jul 25 18:49:44 just set android:background to the same xml stateful drawable Jul 25 18:49:56 do you restart the emu everytime ? it only takes me like 3 minutes when restarting Jul 25 18:50:21 jsharkey i dont understand Jul 25 18:50:38 same stateful drawable ? Jul 25 18:50:39 so you've defined the stateful button xml, right? Jul 25 18:50:55 what does stateful mean ? Jul 25 18:51:01 yah i'm restarting it... so does it mean i can keep it open? Jul 25 18:51:19 shahon, the emulator takes a while to boot up, you can keep it open Jul 25 18:51:19 yes you can keep it open and just start your app from eclipse again, if you use eclipse Jul 25 18:51:20 thought I have to close it everytime Jul 25 18:51:26 ah k... thx Jul 25 18:51:36 no, closing everytime is a pain ! Jul 25 18:51:37 ;) Jul 25 18:51:40 eclipse will just reinstall the app on device Jul 25 18:51:58 nazguul81: "stateful drawable" is just an xml in res/drawables that changes based on state (has a with multiple s) Jul 25 18:52:31 ah ok, yes. i have a button and an extra xml file holding a selector for it Jul 25 18:53:04 yep, so your multiple