**** BEGIN LOGGING AT Tue Aug 11 02:59:57 2009 Aug 11 03:00:39 no Aug 11 03:01:17 crap Aug 11 03:01:35 so things like Aug 11 03:01:37 java.awt.Color Aug 11 03:01:39 i cannot use Aug 11 03:02:41 http://d.android.com/reference/packages.html Aug 11 03:02:48 on the left. if it's there, you can use it Aug 11 03:03:25 shiiite Aug 11 03:03:27 ok Aug 11 03:04:28 was sure somebody was tlaking about using swing and awt in their app Aug 11 03:04:29 odd Aug 11 08:40:35 hi Aug 11 09:19:06 I'm using a implemented ContactListAdapter on a AutoCompleteTextView and try to use setOnItemSelectedListener on that, but it is not executed... the function onItemSelected is never called... Aug 11 09:26:37 this is my code: http://pastebin.com/m650d4ed3 Aug 11 09:30:49 I have no idea why setOnItemSelectedListener does not work on this AutoCompleteTextView Aug 11 09:53:28 Someone knows what causes the warning "Sample NOT READY" when using SoundPool? Aug 11 09:53:42 either android 1.1 and 1.5? Aug 11 09:54:52 <_Auron_> salentinux: what format are the sounds you're using? Aug 11 09:55:07 I tried with .mp3 and ogg Aug 11 09:55:14 <_Auron_> .mp3 has issues Aug 11 09:55:15 [ep] Aug 11 09:55:37 <_Auron_> ogg is your best bet, honestly Aug 11 09:55:54 <_Auron_> also make sure that you're loading your sounds at init and not right before trying to use them Aug 11 09:59:33 _Auron_: sorry but my internet key doesn't want to work today, my connection has gone down. What did you say? Aug 11 09:59:52 ogg is best choice? Aug 11 10:00:00 <_Auron_> yeah Aug 11 10:00:15 <_Auron_> and also make sure that you're loading your sounds at init and not right before trying to use them Aug 11 10:01:03 yes, i laod them when my game starts, but when i play one of them (always the same), the first 3/4 times soundpool doesn't play it Aug 11 10:01:11 and return sample not ready Aug 11 10:01:59 <_Auron_> soundpool has to decompress/decode the sound into raw data and then use that, and it decodes each sound in the order that you load them Aug 11 10:03:44 ok, i also tried to change the load order but always the same mp3/ogg file fails to play Aug 11 10:05:21 i load 10s sound but only one doesn't play. I have to change it with another one. But Why first 3/4 time it doesn't play and next all goes ok? Aug 11 10:05:47 <_Auron_> oh, what's the filesize of it? Aug 11 10:06:11 12k Aug 11 10:06:15 <_Auron_> hmm Aug 11 10:06:24 is it too large? Aug 11 10:06:36 <_Auron_> generally < 100k works fine, over 100k has issues Aug 11 10:06:44 <_Auron_> so no Aug 11 10:06:49 ok Aug 11 10:08:31 <_Auron_> but uh, 1.1 soundpool is almost entirely unstable, 1.5 ogg works next to perfect (although I'm having a Wake issue where soundpool object freezes my opengl app, haven't tracked that down yet) Aug 11 10:12:18 Yes, also my game (no opengl) sometimes freezes and i don't know why. Aug 11 10:14:00 <_Auron_> what happens before it freezes? Aug 11 10:14:24 nothing special Aug 11 10:14:36 <_Auron_> ? Aug 11 10:14:56 <_Auron_> so it happens at random without anything that could possible trigger it, ie button presses, resuming the app, anything? Aug 11 10:15:03 While I'm playing sometimes it freezes and stop responding Aug 11 10:15:16 yes Aug 11 10:15:22 <_Auron_> what does your log output say when it happens? Aug 11 10:17:35 I don't remember precisely, maybe message like ANR (APPlication not responding) or something of that. Anyway next time I'll save the log. Aug 11 10:18:19 <_Auron_> ANR is what you see on the screen; I mean debugging log (adb logcat) Aug 11 10:18:24 <_Auron_> tends to be more specific as to why it happened Aug 11 10:20:41 <_Auron_> anyhow I really need to sleep, but I wish you luck Aug 11 10:29:09 Thanks _Auron_, good night. I just wake up, here in italy :) Aug 11 10:30:54 Anyway, recently i refactored my game from surfaceview with lock and Unlock canvas to View with invalidate() called into draw(). From then, the game don't crash anymore, till now. Aug 11 10:39:01 from my component class, how can i fetch android attributes from XML documents? i tried a.getResourceId(android.R.attr.src, Integer.MIN_VALUE); where a is TypedArray retrieved from Context.obtainStyledAttributes Aug 11 11:05:05 What's the permission to disable standby? Aug 11 11:24:24 salentinux, android.permission.WAKE_LOCK Aug 11 11:38:24 hi, i'm trying to control the position on the screen of a view element. Basically, I want to pass to the view x and y coordinates at which it should appear. how can I do this? a search pointed me toward a RelativeLayout, but I can't find a way to control the children's positions by specifying coordinates Aug 11 11:46:28 mikem`_, i'm not sure if fixed xy layout is possible unless you create a custom Layout class Aug 11 11:52:21 hoerup: right. thinking out loud now, but would this work? have a parent view which contains a bunch of child views. the parent view overrides onLayout() and for each child, tells it exactly where to lay itself out with calls to child.layout(l, t, r, b) Aug 11 11:53:32 are you sure you want a fixed layout - these breaks quite easily Aug 11 11:54:23 well, it's not 100% fixed, it's calculated at runtime, and always bound within the screen resolution Aug 11 11:55:06 then why not use the existing ? Aug 11 11:55:30 is anyone already working with pgp on android? Aug 11 11:55:43 what do you mean? Aug 11 11:56:39 if someone already managed to use pgp encryption.. Aug 11 11:56:41 well, for instance use a linear layout and add some padding to your child views or a few invisible Views only fore creating extra space Aug 11 11:57:38 hoerup: not sure that'll work; what I'm after is dynamically positioning a dot on the screen somewhere... think of a dot moving across the map representing a car driving from one place to another Aug 11 11:58:12 so I caluclate or receive position updates from which I calculate the x,y coordinates I want the dot to appear on the screen Aug 11 11:58:16 so i can send encrypted emails using the public key mechanism Aug 11 11:58:35 ah some sort of overlay view Aug 11 12:05:37 mikem`_, apparently there is a deprecated AbsoluteLayout Aug 11 12:06:52 try that together with android:layout_x and android:layout_y Aug 11 12:57:55 Is it possible to recompile the Android SDK? (I need it for a non-standard architecture ...) Aug 11 13:02:12 how can i add custom jar files to the android? Aug 11 13:13:30 mcasadevall, http://source.android.com/download Aug 11 13:14:33 Someone knows, how to avoid standby mode? is there a permission to set? Aug 11 13:16:26 hoerup, I assume no one has built the SDK on ia64 ;-)? Aug 11 13:16:49 mcasadevall, I have no idea Aug 11 13:17:03 salentinux, android.os.PowerManager Aug 11 13:17:15 tnks hoerup Aug 11 13:25:15 Hi all Aug 11 13:25:52 is there some class for plotting data ? Aug 11 13:28:21 grump, i haven't seen one specially for android but you could fry JFreechart and see how it performs ?? Aug 11 13:28:32 s/fry/try/ Aug 11 13:29:19 it may be overkill ?? Aug 11 13:29:28 thx hoerup Aug 11 13:29:35 il will lokk at this Aug 11 13:29:43 s/il/I/ Aug 11 13:29:44 :) Aug 11 13:33:49 grump a quick google found this http://android.arnodenhond.com/graphview Aug 11 13:35:05 thx hoerup I think it's easier to use the JFreechart Aug 11 13:35:18 than * Aug 11 13:39:49 i got error: device not found Aug 11 13:40:33 this morning i could open shell, what happened? Aug 11 14:01:29 hoerup, I just test the graphview class, it's working fine for my debug purpose. Thx Aug 11 14:22:03 hey guys - how do i make a transparent button Aug 11 14:26:36 anyone Aug 11 14:31:49 guys Aug 11 14:31:53 how do i make a transparent button Aug 11 14:32:10 you just asked that Aug 11 14:33:12 yes.. Aug 11 14:35:13 for a spinner I've set a setOnItemSelectedListener and I'm using the onItemSelected void function. However when the layout is changed (phone rotate) this function is called again and overwrites other settings I took,.. How can I change that? Btw, the function is called onCreate as well... Aug 11 14:36:05 ah well Aug 11 14:36:08 did it myself Aug 11 14:36:13 AndyArmstrong, what a concept Aug 11 14:36:24 Phlogi, you'll have to reset the selected item of the spinner Aug 11 14:36:31 is it possible to remove an app that came with the rom? adb or command line? Aug 11 14:36:38 Whyvas, no Aug 11 14:36:44 KNY: how do I do that and where? Aug 11 14:37:08 Phlogi, you could use onSaveInstanceState to save the selected position and then reset it in onCreate Aug 11 14:38:39 KNY: ok I see... and when I do this the function is not called any longer? Aug 11 14:38:57 Phlogi, what? no, it's still called Aug 11 14:39:01 I mean the problem is that onItemSelected is called... while it should not.... Aug 11 14:39:28 because it sets a string on textView that another element can set as well... so when I rotate that information is lost :S Aug 11 14:39:32 I want to avoid just that Aug 11 14:40:07 Phlogi, when a rotation occurs, the entire activity is torn down and rebuilt. You will need to save any information that is needed to rebuild the state. Aug 11 14:40:15 any and all* Aug 11 14:41:05 KNY: thats weird, I don't have to do it for data in an EditText... and again, the problem is not that data is lost... more that another function is called again for no reason... Aug 11 14:42:32 it's not called for no reason. When the selection is changed, then the handler is called. Aug 11 14:42:44 when the state gets rebuilt, the selection gets reset. Aug 11 14:45:11 KNY: I see... I try to save this number now :) Aug 11 14:45:38 I use onSaveInstanceState and Restore... Aug 11 14:46:45 does not work (yet) :) Aug 11 14:47:55 I have the string in the restore function, but still its overwritten afterwards it seems... becaus that function is called later... how can fix that? Aug 11 14:48:52 is onCreate called on an orientation change? Aug 11 14:50:34 the function onItemSelected gets called again :S Aug 11 14:51:35 hmm ok onCreate is called on orientation change... is that normal? Aug 11 14:52:21 Phlogi, when a rotation occurs, the entire activity is torn down and rebuilt. Aug 11 14:52:59 KNY: :) hmm then I need a special case there because I'm calling seomthing like buildSpinner there Aug 11 14:57:14 why does this give me a NULL pointer exception? savedInstanceState.getString("phoneNumber")==null Aug 11 14:57:23 if that string does nto exist it should return NULL Aug 11 14:57:30 thats what the documentation says Aug 11 14:58:13 * Phlogi just found containsKey Aug 11 15:00:09 grr, also savedInstanceState.containsKey("phoneNumber") gives a null pointer error, wtf? Aug 11 15:00:47 seems like the whole savedInstanceState is null Aug 11 15:00:58 Phlogi, right, if there wasn't a savedInstanceState ... Aug 11 15:01:05 okai Aug 11 15:01:22 Ihope that it works now :) Aug 11 15:04:30 I wonder how I put my ArrayAdapter into the bundle Aug 11 15:10:31 hello Aug 11 15:15:40 hello guys Aug 11 15:25:56 what is in com.vending actually? Aug 11 15:27:36 Market data? Aug 11 15:29:43 ok, I get this weird message there Aug 11 15:29:58 com.android.vending.api.LocalAssetDatabase.buildPackageNameMap(): Multiple assets with package name Aug 11 15:30:02 a lot of times Aug 11 15:48:34 KNY: I'm still having an issue... this function onItemSelected on the spinner is still called, somewhere after the whole OnCreate takes places :S Aug 11 15:49:20 Phlogi, I don't know why you aren't getting this Aug 11 15:49:36 Phlogi, whenever the selection is changed, even programmatically, the handler will be called. Aug 11 15:49:40 KNY: its really weird... I'll guess I'll do an if in there Aug 11 15:50:05 KNY: looks likt that handler is called when the layout or something is created.... very late though Aug 11 15:50:24 Phlogi, because it's setting the position .. Aug 11 15:50:36 hmm yes maybe Aug 11 15:54:30 anyone 'ported' javax.naming to android? or has the source of a implementation of it? Aug 11 16:02:46 KNY: strange, now that problem just went away.... weird Aug 11 16:03:55 does anyone have an idea about ddms network debugging? currently as of android 1.5 that support is not yet added .Is that feature being currently developed? Aug 11 16:05:10 currently as of now the device connects to the ddms through USB and the emulator connects through TCP Aug 11 16:09:37 is there something like c's __LINE__ in android/java? Aug 11 16:11:46 Logcat does it somehow Aug 11 16:12:01 I'm assuming that it involves reflection of some type Aug 11 16:13:11 does any of you know about different latitude/longitude formats ? Aug 11 16:14:03 how to provide tcp support for ddms? Aug 11 16:14:36 i have some coordinats in utm/euref89 and i would like to have them in WGS84 as used in android.location.Location Aug 11 16:18:23 hoerup: i remember seeing a prog a while ago that could convert datums Aug 11 16:18:40 with enough googling, you could probably find some java code that does it and just use that Aug 11 16:20:43 perfinion, thanks i did try a couple of google's but datum was the key i needed Aug 11 16:21:04 hoerup: :D no prob Aug 11 16:38:52 Hey Aug 11 16:39:01 Why don't my updates get bumped to the top of the New apps Aug 11 16:39:06 but other people's do? Aug 11 16:40:19 ..? Aug 11 16:40:27 And what happens if I hit unpublish and then re-publish? Aug 11 16:41:44 stop trying to get your updates bumped. It shouldn't happen regardless, IMO Aug 11 16:42:45 Why? Aug 11 16:42:49 The market is so fucking awful Aug 11 16:42:54 There's no recommendation system Aug 11 16:43:06 so everything just gets flushed down Aug 11 16:43:09 r2wj: wait about a week between updates Aug 11 16:43:22 and then these fucking spammers like M-CITY or whatever just spam useless fucking 'calculators' and reference shit Aug 11 16:43:54 okay Aug 11 16:43:56 thanks lov Aug 11 16:44:34 they're dicks : ( Aug 11 16:44:42 I dunno what to say Aug 11 16:45:04 It's fucking ridiculous Aug 11 16:45:10 I feel like Google is giving developers no love Aug 11 16:45:15 Not even telling us policies Aug 11 16:45:21 not making any improvements to the market since 1.0 Aug 11 16:45:25 It's a fucking joke Aug 11 16:49:48 I feel like I'm punished for responding to my customer's feedback Aug 11 16:49:56 because now it's longer I have to wait before I can get a bump for my work Aug 11 16:50:03 if I was lazy and waited to fix the problem Aug 11 16:50:11 I could have gotten more views Aug 11 16:50:19 ha Aug 11 16:50:31 r2wj: I think a lot of people have complaints about market Aug 11 16:50:51 r2wj, Market is getting updated in donut/1.6 Aug 11 16:51:49 Hope so Aug 11 16:51:55 Soo many improvements needed Aug 11 16:52:01 Screenshots, recommendations Aug 11 16:52:06 Not hard stuff Aug 11 16:52:14 More than 325 characters, I hope Aug 11 16:52:14 api? Aug 11 16:52:22 How can you convince somebody to buy a 5.00 app Aug 11 16:52:24 i think there's a difference between new releases and the app just getting updated right? Aug 11 16:52:28 with 325 characters Aug 11 16:57:00 pixeladdikt: not really. Aug 11 16:57:01 r2wj what app? Aug 11 16:57:11 KNY: is it? Aug 11 16:57:14 apps in general Aug 11 16:57:43 lov, yeah Aug 11 16:57:52 jt436: aBTC Aug 11 16:58:01 http://www.cyrket.com/package/org.ale.abtc Aug 11 16:58:03 there should be a new release - categories - once they are in your app - the update can be in there - Aug 11 16:59:14 i just don't think there enough filters in the market - content needs to be more accessible for sure Aug 11 16:59:25 lov, Jul 25 20:39:50 KNY: the Market client is getting a big upgrade in Donut Aug 11 17:00:16 how would I get raw pixel access to a bitmap from a c++ app? Aug 11 17:00:36 i don't think there's an API for that Aug 11 17:00:42 maybe you should use a Surface instead Aug 11 17:00:44 it's not part of the NDK Aug 11 17:01:22 zinx: copying individual pixels to a surface is kind of slow.. Aug 11 17:01:27 i wonder how scummvm does it? Aug 11 17:01:31 then you're doing it wrong Aug 11 17:01:35 KNY: hooray Aug 11 17:01:38 Is there a guide for using the uses-library feature of the Manifest? Like how to make sure the library gets put on the device? Aug 11 17:02:00 or is that Android-only libraries? Aug 11 17:02:01 zinx: i'm porting an existing application that has a 320x240 buffer for the image data.. Aug 11 17:02:11 should be fast Aug 11 17:02:14 zinx: so i need to copy from there, to the screen Aug 11 17:02:21 zink: at 60 fps Aug 11 17:02:21 you definitely want a surface Aug 11 17:02:34 yes, it can easily do 60fps Aug 11 17:02:41 whether the rest of the app can or not is another question Aug 11 17:02:50 is this it? http://developer.android.com/reference/android/view/Surface.html Aug 11 17:02:57 you should also probably make the surface buffer where it draws Aug 11 17:03:04 rather than copying Aug 11 17:03:08 because copying it is going to be slow Aug 11 17:03:39 ludde: yeah, but you want to check SurfaceHolder as well, I think Aug 11 17:03:43 how do i get a pointer to the surface's buffer, though Aug 11 17:03:44 ok Aug 11 17:04:00 that may or may not be documented, i don't know off-hand :x Aug 11 17:04:09 i browsed through other source to see how it was done myself Aug 11 17:04:20 (before the NDK was released.. the NDK may have some easier interface) Aug 11 17:04:51 zink: which source did you browse through? Aug 11 17:04:59 i do not recall Aug 11 17:05:01 it's been a while Aug 11 17:05:43 alright Aug 11 17:07:25 it seems kinda hard Aug 11 17:07:41 I guess i could use Canvas.drawBitmap(int[] colors, int offset, int stride, int x, int y, int width, int height, boolean hasAlpha, Paint paint) Aug 11 17:07:48 native stuff is for more advanced developers :/ Aug 11 17:08:01 that's going to be extremely slow Aug 11 17:08:11 I just have to drawBitmap the dirty areas Aug 11 17:08:19 of my internal backbuffer Aug 11 17:08:21 perfinion, i found some c++ code that works fine - now I just have to port it Aug 11 17:08:35 which still sucks, but i don't see any other way. Aug 11 17:08:36 :) Aug 11 17:09:10 zink: i've written plenty of NDK/JNI code already, but i havn't really interfaced to the existing APIs all that much Aug 11 17:09:17 using a surface and drawing directly in to the surface buffer is the other way Aug 11 17:09:28 assuming i can get a pointer to the surface's buffer. Aug 11 17:09:43 i don't see how that would be possible through the java api Aug 11 17:10:14 or maybe there are more updated NDK headers that expose functionality that i don't have.. Aug 11 17:11:01 well, i don't know if it's officially supported, but it's certainly possible to do it Aug 11 17:11:06 i've done it :x Aug 11 17:11:40 zink: what header files did you use? Aug 11 17:12:19 android-ndk-preview-20090417-windows Aug 11 17:12:26 is what i have Aug 11 17:12:45 as i said, the NDK wasn't out at that point Aug 11 17:13:01 i used the AOSP tree Aug 11 17:13:04 ok Aug 11 17:14:08 zink: were you on google io? Aug 11 17:14:25 ludde, it's zinx with an x :) Aug 11 17:14:32 oops :p Aug 11 17:14:33 ludde: nope Aug 11 17:16:28 zinx: you have any idea where i could approximately find relevant code in the git repo? Aug 11 17:17:25 grep the .cpp files for Surface :x Aug 11 17:22:09 the NDK does not give you access to surfaces, etc. Aug 11 17:22:38 given the changes we're making in surfaces and surfaceflinger I would really advise you to not try to use these private APIs Aug 11 17:23:54 is there a way to make the list a spinner generates smaller? I mean more space effient? Aug 11 17:24:34 Phlogi, sure, just use a different layout Aug 11 17:24:49 KNY: for the prompt only? Aug 11 17:25:38 KNY: could you tell me how to do that please? Aug 11 17:26:22 Phlogi, setDropdownResource or something. Look at the docs. Aug 11 17:26:48 thanks! Aug 11 17:32:07 meh I didnt expect this Aug 11 17:32:11 stopid hashtable.. :p Aug 11 17:32:19 it created objects of ints :/ Aug 11 17:32:36 yay autoboxing Aug 11 17:32:42 use our SparseArray instead Aug 11 17:33:25 googling :p Aug 11 17:33:57 figured out how to use ddms Aug 11 17:34:03 thx 2 your blog post romainguy :P Aug 11 17:34:16 didnt knew ddms could be used to see allocations :p Aug 11 17:34:35 it's a nice tool :)) Aug 11 17:34:40 maybe you know a better solution for my problem Aug 11 17:34:50 I want to keep track of glenable/gldisable's Aug 11 17:35:06 aka so if I do glenable and its enabled already, it doesnt do the opengl call Aug 11 17:35:31 currently I used a hashtable with int/booleans Aug 11 17:35:40 use a SparseBooleanAray Aug 11 17:35:52 ow you have that as well? :p Aug 11 17:35:53 http://d.android.com/reference/android/util/SparseBooleanArray.html Aug 11 17:36:00 it's like a hashtable except it doesn't do allocations Aug 11 17:36:38 tyvm :) Aug 11 17:36:50 I think this alone should reduce my gc'ing alot :P Aug 11 17:38:52 Hi, are there any news on the Google Latitude API? Is there a way to interface with the latitude app to get latitude IDs of users I know? The API that is known till now needs a specific latitude ID to query geo status information (http://radar.oreilly.com/2009/05/googles-sneaky-launch-of-latitudes-location-sharing-api.html) Aug 11 17:49:18 thx already romainguy Aug 11 17:49:21 gc every 7sec Aug 11 17:49:31 my app feels alot more fluid now :P Aug 11 17:53:53 Anyone else agree that the emulator is a bit dodgy when it comes to socket programming? Aug 11 17:54:20 Sometimes it works, sometimes it dont Aug 11 17:56:22 ante_: works well for me Aug 11 17:56:41 ludde, I have a thread that handles sending and recieving Aug 11 17:56:50 and communicates with the main app through a handler Aug 11 17:57:20 sometimes i get no server response even though i am connected Aug 11 17:57:27 w00t Aug 11 17:57:32 1GC @ 20 sec :) Aug 11 17:57:52 looks like my 'recyclebin' class wasnt efficient at all ;p Aug 11 17:58:11 hi! Aug 11 17:58:19 just pondering if the server response finds its way back to the emulator Aug 11 17:58:21 :-P Aug 11 17:58:24 I'm almost there! hehe :) Aug 11 18:00:11 (stupid question) is it possible to publish an app for many countries? Aug 11 18:00:31 one more thing to optimize Aug 11 18:00:38 and I think the fps is stable :) Aug 11 18:00:39 SpeSGMD: the market lets you choose which countries to publish too Aug 11 18:00:42 to Aug 11 18:00:44 I'm about to join The android developers :) Aug 11 18:00:52 great Aug 11 18:00:59 and there is an option for "all current and future countries" Aug 11 18:01:12 yeah! Aug 11 18:01:23 thousands of clients out there then Aug 11 18:04:33 a technical question now: is it true that there's no listener for the builtInZoomControls of the MapView? Aug 11 18:04:57 ...so you'd have to implement your own layer with zoom buttons to manage it? Aug 11 18:16:21 could it be that for (Ball ball : Balls) leaks? Aug 11 18:17:19 gotta love my subliminal messages ;p Aug 11 18:17:30 for (int i = 0; i < Balls.size() ... Aug 11 18:17:30 :p Aug 11 18:55:34 This ought to be a simple question, but has the -avd argument for the emulator been replaced with something else? Aug 11 18:59:11 I ask because I just made an avd, and then when I try to start the emulator with the command: emulator -avd myavd, it says "unknown option: -avd" Aug 11 19:08:19 are you sure emulator is the right thing? Aug 11 19:08:27 type "which emulator" make sure it's the android emu for the right version Aug 11 19:22:29 so did my hello world following the example and the android emulator just sits at a screen that says Android Aug 11 19:24:28 it's booting Aug 11 19:26:29 man how long does that take it's been sitting there for like 10 min Aug 11 19:29:02 close the emulator and run one more time Aug 11 19:29:05 Cancel, close out and start again Aug 11 19:29:22 Queue29: did that a few times, is this a normal thing? Aug 11 19:29:34 if you're on an EEEPC, yea Aug 11 19:29:37 grrr Aug 11 19:29:42 yes eeepc Aug 11 19:29:50 wow, i guess good Aug 11 19:29:51 why is this normal? Aug 11 19:29:57 your computer sucks Aug 11 19:30:24 eeepc is not for development ... Aug 11 19:30:26 I'm on a mac by the way Aug 11 19:30:33 not a pc Aug 11 19:30:46 run adb logcat if you want to watch the boot progress Aug 11 19:30:50 to be sure its not stalled Aug 11 19:33:03 http://www.netmite.com/android/mydroid/system/core/include/cutils/log.h Aug 11 19:33:08 where do i find this file in the git repo? Aug 11 19:33:19 this is crazy you have to wait for this long boot every time you run debug?!? Aug 11 19:33:19 how can I import a sqlite table to my application database? Aug 11 19:33:50 Cancel, no, you don't have to restart the emulator every time Aug 11 19:34:05 the longest booting mobile vm ever Aug 11 19:34:08 Cancel, do you reboot your computer every time you recompile an application? Aug 11 19:34:15 the first run is also the longest Aug 11 19:34:20 KNY: do I kill the vm all the time win mobile, iphone , yes Aug 11 19:34:29 KNY: does it launch briskly and right away, yes Aug 11 19:34:37 iphone is a simulator, no? Aug 11 19:34:45 also, that's comparing chalk to cheese Aug 11 19:34:46 not here to argue with ya buddy Aug 11 19:35:01 sorry will have to pick fight with someone else, just trying to get into the android dev Aug 11 19:35:11 who said anything about picking a fight? Aug 11 19:35:33 it's supposed to be org.bluez, but eclipse isn't liking that Aug 11 19:36:07 Queue29: it came up quicker subsequent run, thanks Aug 11 19:36:36 err Aug 11 19:36:58 hi, does anyone know how to access the bluez api in android 1.5? Is it possible? Aug 11 19:37:10 Sentinel, do you see it documented on d.android.com ? Aug 11 19:37:32 KNY: not really Aug 11 19:37:38 Sentinel, then you can't use it :) Aug 11 19:37:48 that's a shame Aug 11 19:38:19 it seems like some people have managed to used it Aug 11 19:38:47 well managed to and should are very different Aug 11 19:39:11 what's anyone here's favorite android references sans web documentation? Aug 11 19:39:39 http://google.com/ Aug 11 19:39:41 can't beat it Aug 11 19:42:06 not google but your favorite book Aug 11 19:42:30 google aint' gonna tell me what your personal preference is Aug 11 19:42:48 and pretty sure I said sans web Aug 11 19:43:18 fair enough. Then I'll have to go with: null Aug 11 19:43:31 see that's an honest answer at least Aug 11 19:43:40 Cancel: to my knowledge, no reputable books exist on Android. Aug 11 19:43:45 another honest answer Aug 11 19:43:56 a few exist, and i have reviewd some of them: they are generally poor. Aug 11 19:44:16 it depends on your skill level Aug 11 19:44:32 i would not agree Aug 11 19:44:36 wrox has a book and oreilly does but was looking for someone here who might have perused either apress has one as well Aug 11 19:44:43 incorrect information is just as harmful to beginners as it is to experts :) Aug 11 19:44:48 like real opinion from real present developer Aug 11 19:44:49 if u r as good as jasta is, they are poor. but if u r as green as i am, they are pretty good :D Aug 11 19:45:00 aunn: which one did you get? Aug 11 19:45:22 Cancel: i strongly recommend Android source code as a reference, by the way. Aug 11 19:45:32 professional android book from wrox is good for experienced dev Aug 11 19:45:36 numerous applications written by Google that well embody Android best practices Aug 11 19:45:53 Cancel, i bought the oreilly book but I wasn't impressed Aug 11 19:45:57 i am too green, so, it's 'hello android' for me Aug 11 19:46:14 jasta: that's a given Aug 11 19:46:18 hello Aug 11 19:46:33 i'm fond of the wrox for learning and oreilly for reference Aug 11 19:46:41 still feeling out the apress guys Aug 11 19:47:07 it seems like the four authors behind the oreilly book didn't coordinate their efforts Aug 11 19:48:06 thanks for the notes Aug 11 19:48:16 do any of you currently have any paid apps in the marketplace? Aug 11 19:49:25 how about some of the ppl here are working on the android os itself? Aug 11 19:50:43 millenomi: u do android too eh? Aug 11 19:51:00 I work on anything that might be of interest. Aug 11 19:51:05 In what .git project would I find: media/AudioSystem.h Aug 11 19:52:10 ludde: learn to operate `find'. Aug 11 19:52:20 or google code search, whichever :) Aug 11 19:52:21 'chalk to cheese' kny, that's a bit harsh tho :D Aug 11 19:52:23 jasta: I don't have all of it checked out.. it doesn't support checking it out on windows. Aug 11 19:52:35 ludde: fine fine Aug 11 19:52:48 the 'repo' tool is not available for windows. Aug 11 19:52:55 aunn, how so? Aug 11 19:52:55 i know, im searching for you Aug 11 19:53:21 nah, let me not elborate :) Aug 11 19:53:30 am I supposed to add all those individual projects as includes with -I or is there a smarter way? Aug 11 19:53:53 aunn, you simply cannot compare the android emulator to the iphone simulator Aug 11 19:54:05 ludde: frameworks/base.git Aug 11 19:54:11 thanks Aug 11 19:54:11 ludde: i cant parse that last question? Aug 11 19:54:32 oh, ok, u r just comparing simulator and emulator only :D Aug 11 19:54:45 jasta: in my android.mk file, am I supposed to have tons of entries like this: -Igit/core/include -Igit/skia/include Aug 11 19:55:07 sure you can, you can compare anything you want Aug 11 19:55:47 you can even compare apples and oranges if you want Aug 11 19:56:12 ludde: perhaps.... Aug 11 19:56:17 ludde: depends where youre working :) Aug 11 19:56:31 not at google, anyway. Aug 11 19:56:57 i didnt mean where you were employed Aug 11 19:57:06 lol Aug 11 19:57:15 i sense that youre working outside of the android source tree, in which case yes you would need to do it that way Aug 11 19:57:19 if you are, no, for the most part you do not Aug 11 19:57:31 hm Aug 11 19:57:31 also if youre in the framework youre in a slightly different build environment Aug 11 19:57:36 i see. Aug 11 19:57:42 i'm using the ndk. Aug 11 19:58:09 hmm, haven't worked with the ndk yet, so i can't say for certain. Aug 11 19:58:23 it seems to work to do it this way, anyway Aug 11 19:58:24 how to get the filepath of a file under /res/raw? Aug 11 19:58:26 actually, iirc, the ndk specifies what headers you can rely on Aug 11 19:58:30 and which you must not Aug 11 19:58:36 skia probably isnt one of them Aug 11 19:58:49 I believe the ndk only exposes libc, libm, libz, and liblog Aug 11 19:59:00 probably not, but there seems to be no other way to get efficient framebuffer access from C++ Aug 11 19:59:04 if you need access to skia or what have you from then you should access it through the Java layer (which you can do from C/C++) Aug 11 19:59:20 ludde: but tahts because youre not supposed to have framebuffer access -- that's not how android works. Aug 11 19:59:31 jasta: but then my game won't work :) Aug 11 19:59:32 if you try to commondere resources from the platform your app will certainly not work correctly Aug 11 19:59:35 then too bad Aug 11 20:00:08 if your engine requires direct fb access you get to either give up or refactor to support doing things the android way Aug 11 20:00:17 all i need is basically a buffer to write directly into, and then a method dirty(int x, int y, int w, int h) to tell the system that I wrote into that region and it needs to be updated on the screen. Aug 11 20:00:59 im not going tow rite this app for you buddy Aug 11 20:01:02 just do some research Aug 11 20:01:12 i tried.. skia seems like the easiest choice.. Aug 11 20:01:27 i don't care if it only works on 1.5 Aug 11 20:01:30 using something you arent guaranteed is not the easist choice Aug 11 20:01:55 its not even an issue of backwards compatibility -- it's an issue of very poor documnetation and absolutely no support from google if you do it the wrong way Aug 11 20:02:05 so if you enjoy wasting your time making things way harder than they should be go for it Aug 11 20:02:10 i'll leave you at that Aug 11 20:04:41 Hi, I'm trying to restrict my game app to only use portrait orientation. I put android:orientation="vertical" in my layout, but it's still rotating to portrait when I flip the keyboard. I've also tried adding android:screenOrientation="portrait" to my AndroidManifest, but that didn't work either. What am I missing here? Aug 11 20:06:22 savid: you need to define the screenOrientation attribute inside an Activity in your manifest Aug 11 20:07:07 Ahh, ok. I had it on the application node Aug 11 20:07:44 anything like interface builder or winforms for this android or are we stuck with xml files Aug 11 20:07:53 sweet, that worked Aug 11 20:07:57 :) Aug 11 20:08:14 Cancel, http://www.droiddraw.org/ Aug 11 20:08:18 jasta: the java api of writing pixels is so horribly inefficient compared to C++ Aug 11 20:08:37 KNY: you are turning out to be alright Aug 11 20:08:51 Cancel, just wait until you get to know me ;-) Aug 11 20:10:16 Cancel , KNY is a nice person and very helpful Aug 11 20:10:23 haha Aug 11 20:10:37 I'll rule on that later Aug 11 20:10:38 * jt436 checks if aunn is KNY in disguise Aug 11 20:10:54 * KNY checks if aunn is a stalker Aug 11 20:11:04 this is a bullcrap way to design UI for sure Aug 11 20:11:43 what, xml layout? Aug 11 20:11:43 what, xml layout? Aug 11 20:11:54 urp Aug 11 20:12:05 Cancel, if you hate android development so much, go back to your iphone Aug 11 20:12:05 its a lot better than doing it in code... Aug 11 20:12:09 :P Aug 11 20:12:24 Queue29: I never mentioned hating anything and fyi don't know if I hate it yet Aug 11 20:12:31 when I get to hating I won't mince words I'll say it Aug 11 20:12:41 all you've done so far is whine and complain Aug 11 20:12:44 and I'm not a fanboy of any platform where things suck I say they suck where things excel I say they excel Aug 11 20:12:57 android layouts rule Aug 11 20:13:04 Queue29: then you haven't paid much attention as I've stated to everyone and everything I found most useful scroll up Aug 11 20:13:46 Queue29: don't put your hangups on me, thanks Aug 11 20:17:48 I have an Editable that has Selection.setSelection() called on it from all over. Is there a way to have a method fired whenever the cursor moves? Aug 11 20:18:52 * KNY thinks Cancel is a might bit testy Aug 11 20:19:29 * meanburrito920_ agrees Aug 11 20:21:57 Cancel, try the ADT plugin with Eclipse Aug 11 20:22:01 makes life easier.. Aug 11 20:22:31 atleast when it comes to UI design Aug 11 20:22:47 instead of typing everything by hand... Aug 11 20:24:00 ante_: thanks , useful information Aug 11 20:24:04 KNY: only when I'm around you Aug 11 20:24:14 KNY: I was fine up until I ran into you today ;) Aug 11 20:24:22 KNY: you just bring out the best in me man Aug 11 20:25:39 Cancel, you do any iphone development? Aug 11 20:25:53 ante_: yes, winmobile, j2me, etc, etc, Aug 11 20:26:01 just now dipping my toes in android Aug 11 20:26:13 K, heard about MonoTouch? Aug 11 20:26:27 not really Aug 11 20:26:30 enlighten me Aug 11 20:26:36 if you like C#/Java you should look into it Aug 11 20:26:49 I've abandoned mono on the desktop Aug 11 20:26:57 Lets you code in C# for IPhone Aug 11 20:27:30 I wouldn't even bother, i save c# for winmobile Aug 11 20:27:42 I like to go native whenver I can Aug 11 20:27:52 I'll file that away though might be useful some day, thanks Aug 11 20:28:10 http://www.mono-project.com/MonoTouch Aug 11 20:29:02 Check out the tutorials Aug 11 20:29:10 I'd use it any day over xcode Aug 11 20:29:10 ;) Aug 11 20:29:17 but... i cant afford an iphone atm, so... Aug 11 20:29:18 * ante_ shrugs Aug 11 20:31:15 ah pardon my noobness, which command do you use to do " (01:29:37 PM) ***ante_ shrugs " Aug 11 20:31:43 *** I don't think, i type like this Aug 11 20:31:59 /me Aug 11 20:32:08 ah thx, kny Aug 11 20:32:13 type: /me thinks ante rocks Aug 11 20:32:15 ;) Aug 11 20:32:24 * aunn See! KNY is helpful! Aug 11 20:32:49 ante_: i've forsaken mono uinstalled every vestige of it Aug 11 20:33:16 ante_: if you like mono though check out monodevelop Aug 11 20:33:16 Cancel, understood Aug 11 20:33:21 yeap, i use it Aug 11 20:33:42 Got a bunch of Windows Services and other stuff running on my server Aug 11 20:33:43 thanks to mon Aug 11 20:33:44 mono Aug 11 20:33:46 its awesome ;) Aug 11 20:33:50 anyway, time to sleep Aug 11 20:33:52 buh bye Aug 11 20:33:55 ante_: I was rewriting webvcr+ in mono and they couldn't get their act together, when they hid a few bug reports I was done with those guys Aug 11 20:34:14 that sucks, ttyl :) Aug 11 20:34:18 later Aug 11 20:36:59 i haven't really look into the ADT plugin for the XML UI Aug 11 20:38:39 xavd , can we get visual icons like droiddraw in ADT plugin ? Aug 11 20:39:46 aunn: it's on the list of things to do yes Aug 11 20:40:08 patches are welcome? :) Aug 11 20:40:14 sure they are :) Aug 11 20:40:22 oh , nice. thx. Aug 11 20:40:57 it's just a bit tricky because we don't hardcode anything. So I'd like to automatically generate the icons by creating/rendering all the possible views/widgets dynamically based on your configuration (themes,...) Aug 11 20:40:58 i wish, i could. i will later when i have more skill under my belt :) Aug 11 20:41:33 and honestly, making the layout editor actually usable is a bigger priority :) Aug 11 20:41:45 ok. Aug 11 20:42:08 xavd, do u use logcat in eclipse a lot? Aug 11 20:42:19 cause when i start using it in 1.1 Aug 11 20:42:34 well not a whole lot, but more than the command line version Aug 11 20:42:44 Gah.. my game is already getting laggy :-( Aug 11 20:42:54 imho, logcat in eclipse really pegged my cpu resources Aug 11 20:43:09 hmm really? Aug 11 20:43:09 since, i have run logcat in a separate terminal Aug 11 20:43:41 what kind of cpu do you have? I've never seen this (but I have a quad-core so that may hide the problem) Aug 11 20:43:44 well, i need two run 2 or 3 at the same time these days anyway Aug 11 20:44:18 :D , my cpu is a sigle core athlon 3800, i think Aug 11 20:44:54 I've wanted to redo that stupid panel for a while. maybe I'll eventually get to it Aug 11 20:44:58 but, it is fine, i don't have the problem after i start using logcat in terminal Aug 11 20:45:21 u mean, the elongated emulator chooser ? Aug 11 20:45:36 oh no I meant the logcat panel Aug 11 20:45:36 meh sux! Aug 11 20:45:42 i just signed up for he android dev access Aug 11 20:45:43 ok. Aug 11 20:45:45 with the wrong email gaaaah Aug 11 20:45:48 the elongated device chooser will be fixed for the next version Aug 11 20:45:54 cool Aug 11 20:46:05 and the windows title too, right? ;) Aug 11 20:46:17 and by fixed, I mean simplified so that the stupid SWT behavior on linux doesn't show up anymore :( Aug 11 20:46:24 waait Aug 11 20:46:26 I could cancel :) Aug 11 20:46:39 ah maybe. I filed a bug for our emulator guy and he said "great idea" . but he's really busy Aug 11 20:46:51 (it should be an easy fix though, maybe I'll do it myself) Aug 11 20:46:56 xavd, you mean the huge window? Aug 11 20:47:04 it's just swapping the string anyway Aug 11 20:47:06 KNY: yeah with the 18 pixel increase Aug 11 20:47:10 aunn: yeah Aug 11 20:47:10 xavd, yay! Aug 11 20:47:30 second bug you've fixed for me, xavd :-) Aug 11 20:47:49 KNY: so the column width increase comes automatically when the layout is first computed. It's really crappy, and there's no way to ignore it. Aug 11 20:48:09 KNY: "fixed" is exagerating in this case Aug 11 20:48:22 well, "made invisible to me"? Aug 11 20:48:39 I just removed the storage of the column width while I find a better solution (if I even have the time to go look into it again) Aug 11 20:48:45 ah Aug 11 20:48:46 yeah it won't happen again Aug 11 20:48:48 well, xavd, i think, i am fine if i don't see the issue anymore Aug 11 20:49:18 regardless, it's much appreciated Aug 11 20:49:21 for now, i have to go delete that entry when the chooser became really large Aug 11 20:49:25 gotta love the behavioral differences of SWT on mac/linux/windows... *sigh* Aug 11 20:49:40 yay SWT Aug 11 20:49:41 we appreciate ur effort xavd Aug 11 20:49:57 romainguy_: shut up Aug 11 20:50:02 haha Aug 11 20:50:15 xavd: I promise, next tool I write for the SDK won't be SWT Aug 11 20:50:16 :p Aug 11 20:50:39 :'( Aug 11 20:51:18 xavd, are you an SWT fan? Aug 11 20:51:26 KNY: not really Aug 11 20:51:31 I don't hate it either Aug 11 20:51:35 ah Aug 11 20:51:43 it just has too many quirks Aug 11 20:51:57 but if you want an Eclipse plug-in you don't really have a choice Aug 11 20:51:58 romainguy_ http://nopaste.com/p/a89BTsyZrb any clues? Aug 11 20:52:01 gotta love reinventing the wheel and winding up with a hexagon Aug 11 20:52:08 heh Aug 11 20:52:39 SinnerG: don't dereference a null pointer in your view? Aug 11 20:53:11 also since I'd rather not maintain a version of DDMS in swing and one in SWT for the plugin, well we try to do everything in SWT to simplify things Aug 11 20:53:21 (expect for the tools made by romainguy_ ....) Aug 11 20:53:32 haha Aug 11 20:53:34 what a jerk! Aug 11 20:53:38 would it be very hard to implement pgp on the android platform using the built-in encryption functionality? Aug 11 20:54:05 xavd: patches are welcome :) Aug 11 20:54:34 romainguy_: more like a rewrite if I even want to integrate draw9patch and hierarchyviewer in ADT ;) Aug 11 20:54:55 well Aug 11 20:54:59 big patches are welcome :p Aug 11 20:55:03 heh Aug 11 20:55:37 romainguy_: I went back through the stack trace Aug 11 20:55:42 it never enter my code Aug 11 20:55:58 it happens if I go to home and quickly go back to my app Aug 11 20:56:00 what's A2dSurfaceView?? Aug 11 20:56:03 if I wait 1sec it doesnt crash Aug 11 20:56:21 extends GLSurfaceView Aug 11 20:56:39 updateWindow isnt overriden Aug 11 20:56:47 then you're probably doing something wrong somewhere :p Aug 11 20:56:54 yes I figured that much ;p Aug 11 20:57:19 there Aug 11 20:57:25 I'm an android dev now :P Aug 11 20:57:29 paid the fee Aug 11 20:58:31 Anyone know where Android gets its default User-Agent string from? Aug 11 20:58:52 <_Auron_> SinnerG: you need to do android:launchMode="singleTask" and android:multiprocess="false" in your manifest for openGL apps Aug 11 20:59:21 certainly not Aug 11 20:59:24 <_Auron_> otherwise a second opengl renderer is attemptd to be made, which android can't handle and it simply stops working Aug 11 20:59:31 <_Auron_> attempted* Aug 11 21:00:14 xavd , would it be easier if u write some of the tools to be stand alone instead of eclipse plugin Aug 11 21:00:16 no I cleaned that up already manually Aug 11 21:00:24 but I have this now: http://nopaste.com/p/a89BTsyZrb Aug 11 21:00:31 it happens if I reopen my app 2 fast Aug 11 21:00:51 I stepped through all parts of the exception, but its not my code Aug 11 21:01:00 aunn: we try to make new tools architecture so that they can be 1. in eclipse 2. standalone 3. have their logic reused in other IDE Aug 11 21:01:12 aunn: it makes things complicated no matter what Aug 11 21:01:19 aka 'source not available' crap and such :P Aug 11 21:01:53 aunn: ddms is made of 3 jar file (ddmlib is the logic, ddmuilib is the SWT panels, and ddms.jar is the glue while the ddms plug-in provides a different glue) Aug 11 21:03:22 i see. i don't know if one can launch two logcat from eclipse if it can then all these processes are tied to eclipse and if eclipse get hosed everything goes down. now i am launching logcat in separate terminals, if eclipsed get hosed, only eclipse get killed Aug 11 21:03:45 why do you need to run 2 logcats? Aug 11 21:03:59 heh Aug 11 21:04:00 cause i am running two emulators Aug 11 21:04:09 (the problem with the logcat panel getting borked is another issue which I need to fix eventually) Aug 11 21:04:13 ah right Aug 11 21:04:15 and sometime more including my g1 :) Aug 11 21:04:32 yeah you can't have more than one, it's tied to the device selected in the device panel Aug 11 21:04:56 having more than one would be challenging for the UI but it would be nice for sure Aug 11 21:05:04 eclipse is so rigid, it won't let me separate the console from it Aug 11 21:05:21 that's why, i would suggest to have a standalone Aug 11 21:05:26 separate from eclipse Aug 11 21:05:42 DDMS? Aug 11 21:05:51 then it would be easier to integrate to other ide as well Aug 11 21:06:05 well we could certainly have that. The problem right now is that DDMS always attemps to connect to the devices and the VMs running on it s you can't have more than one ddms Aug 11 21:06:55 well receiving logcat from the devices is trivial. Integrating to other IDE is mostly a problem of UI, so if you need a SWT and a swing version no matter what Aug 11 21:08:35 ok, i don't know much about the under lying complexity, just chipping in my 2c Aug 11 21:09:48 aunn: just submitted (internally) the emulator window title fix for review :) Aug 11 21:09:58 ok , thx :) Aug 11 21:10:04 KNY: aunn thanks for the info, maybe see you later :) Aug 11 21:12:34 are there any common things i could strip out of my andriod to make the emulator boot faster Aug 11 21:12:48 i'm changing framework/base stuff, so I can't just install an apk, and it takes *so* long to test changes Aug 11 21:12:55 yep Aug 11 21:12:58 welcome to our world :) Aug 11 21:13:19 anyway Aug 11 21:13:21 you can use this: Aug 11 21:13:21 adb shell setprop dalvik.vm.dexopt-flags v=n Aug 11 21:13:37 it will prevent the re-dex-opt when you update framework.jar Aug 11 21:14:01 so i would run that once per emulator boot? Aug 11 21:14:19 just once per "flash" or cold boot Aug 11 21:14:29 i've been using "adb remount && adb shell stop && adb sync && adb shell start" to reload my changes Aug 11 21:14:38 though it doesn't seem any faster than just closing and reopening the emulator Aug 11 21:15:08 it is Aug 11 21:15:52 perhaps... my normal cycle of events this week has been to make a change, run those commands, get bored and change more things, and then forget what i was going to test, so i just reload them again Aug 11 21:15:53 romainguy_ DDMS in eclipse is fine (well, I have not used it as much as I view logcat yet). when I am talking about standalone, i mean all these little things (not really little), logcat, ddms, 9patch, xml plugin.... if we forced all on them into eclipse, eclipse process can become so bloated, so i am just suggesting, it would be nice to separate the process by making them standalone like chrome has separated process for each ta Aug 11 21:17:22 aunn: Eclipse doesn't allow to have a process per view/panel. The only way to do this would be really have different applications. And the whole point of the plugin is the integration where everything runs together Aug 11 21:17:33 but yes Eclipse can become bloated Aug 11 21:18:03 doesnt it start that way? ;) Aug 11 21:18:11 i see, heh Aug 11 21:18:33 bnovc: hehe yeah possibly depending on which version you're install Aug 11 21:18:51 (or independently for some people point of view ;)) Aug 11 21:19:18 eh, i don't use eclipse, so no specific version. just a general eclipse-trolling comment. Aug 11 21:19:33 aunn: but this is true that we need to have (most of ) the tools working as standalone for those who don't use eclipse Aug 11 21:19:38 people at work keep asking me eclipse questions expecting that i'm using it though Aug 11 21:19:46 if we could just ignore people who don't use eclipse, I'd be much happier ;) Aug 11 21:19:57 anyone knows why I get Unable to dlopen (...): cannot find library when i try to open a c++ .so file? Aug 11 21:20:02 xavd: now now! Aug 11 21:20:28 xavd, careful, you're treading on dangerous ground Aug 11 21:20:32 bnovc: well it just wouldn't be easier for me to not have to support 2 different development paths, that's all I'm saying :) Aug 11 21:20:36 xavd: if you'd just integrated it in vim, then everything would be perfect. Aug 11 21:20:41 xavd, how about make eclipse launch the stand alone as if it is part of eclipse ? Aug 11 21:20:58 bnovc: yeah right, then the emacs users will complain Aug 11 21:21:12 xavd, you can run vim inside emacs Aug 11 21:21:13 aunn: it wouldn't be as integrated. but we can do that for something yes Aug 11 21:21:15 xavd: emacs has a vim mode...might work Aug 11 21:21:16 I fail to see the problem :) Aug 11 21:21:18 exactly Aug 11 21:21:30 oh I see a problem or two Aug 11 21:21:40 I kinda like keeping my sanity for one ;) Aug 11 21:21:55 and vim has an easy mode! Aug 11 21:22:28 i almost caved and started using eclipse for some things though, so the android docs are so eclipse-centric Aug 11 21:22:48 i end up having random keys all over the files i work on if i dont use vim though Aug 11 21:22:59 really? we don't have that much doc to start with, so I'd think either way is about the same Aug 11 21:23:29 haha, that is very true Aug 11 21:24:01 is that eventually going to be remedied? Aug 11 21:24:12 yes, eventually Aug 11 21:24:53 not that it really matters much to me now that i already know most of the basics, except i'll have to yield less questions from coworkers Aug 11 21:26:17 going from qtopia to android i feel like i have exactly the opposite problems. qtopia was documented and coded horribly and android is coded well w/no docs Aug 11 21:26:55 bnovc: are you refering to the API docs or the tools docs (or both?) Aug 11 21:28:19 both... though I suppose API a little more Aug 11 21:43:33 Hi all, I'm trying to figure out how to reference and attach a handler to a button in a widget. When extending an Activity you would usually use findViewById to get the button and then set a handler using setOnClickListener. However, widgets don't inherit from Activity. Can anyone point me in the right direction? Aug 11 21:47:50 if eclipse doesn't allow separate process per panel/view, then launch another eclipse process for them? Aug 11 21:51:03 Ok, so I started my game based off of the lunar lander, and have since learned that drawing /everything/ on each frame is kindof a performance hog. The only question I have is that once I draw my "sprite" that is moving, how do I "undraw" it for the next frame? Aug 11 21:52:22 savid: redraw the part of the screen where the sprite was and where it is now. Aug 11 21:52:49 this is a well discussed topic overall, and is not android specific Aug 11 21:53:40 jasta, yeah, I suppose it is :-p The main thing I've read was this: http://www.rbgrn.net/content/54-getting-started-android-game-development Aug 11 21:54:13 jasta, and this is the first platform on which I've tried game development (aside from flash) Aug 11 21:54:28 so I'm having to learn some fairly new concepts Aug 11 21:54:32 you would benefit from picking up a book on game development in general Aug 11 21:54:36 and then apply what youve learned to android Aug 11 21:54:52 true Aug 11 21:55:11 any suggestions? ^_^ Aug 11 21:55:51 i have none, sorry. Aug 11 21:56:07 perhaps romainguy_ can suggest something to you. he is fairly adept at canvas manipulation :) Aug 11 22:31:25 android supports UTF-8 (according to docs), but when I do "random string".getBytes("UTF-8"); I get an UnsupportedEncodingException.... Aug 11 22:34:22 oh, maybe I have to try/catch it in a static block...ok, ignore me as you were doing :) Aug 11 22:41:06 /ignore herriojr Aug 11 22:42:34 i am working with GLSurfaceView, and i have two cubes displayed in the screen Aug 11 22:45:34 where gl.glRotatef(mAngle, 1, 1, 0); t.draw(gl); i use glRotatef to rotate it, the problem is i only want to totate one of them but they are both moving, its like one is rotatning, but the other is not. but it is moving in space to keep up with the other. so i guess question is how do i create totaly seperat instances of 3d cubes that i can rotate and move around independently ? Aug 11 22:45:58 it is like they get "glued" togather Aug 11 23:22:04 ugh... some ppl on the market should be disallowed from commenting... http://www.cyrket.com/package/com.google.clickin2dabeat ... what doesn't people understand about "beta" ? Aug 11 23:23:18 DarkFoxDK: probably should not have released it to the market that way Aug 11 23:23:29 you can release the app on google code or whatever Aug 11 23:24:06 jasta: not my app... just noting that some of the people commenting on the market are made of stupid -.- Aug 11 23:30:24 can't really make out of the end users... guess they are spoiled Aug 11 23:31:25 probably... Aug 11 23:31:58 and they are gonna vote in adc2! Aug 11 23:32:05 man, its going to be tough Aug 11 23:32:15 oh, the users are going to vote? Aug 11 23:32:16 CRAP Aug 11 23:32:21 * zinx switches to making a fart app instead Aug 11 23:32:26 haha Aug 11 23:32:41 you can see a lot of crappy apps winning this time, for sure Aug 11 23:33:21 i'm thinking of a social network 0_o Aug 11 23:33:29 oh wow... that'll be horrible Aug 11 23:34:15 adc1 had around 1800 apps.. this time it might be like 10000 apps Aug 11 23:35:19 all voted on by the people who leave market comments. Aug 11 23:35:43 muthu: we saw a lot of crappy apps win the ADC1 too Aug 11 23:35:48 in fact, almost exclusively crappy apps Aug 11 23:35:48 hehe Aug 11 23:35:59 in a way, yes Aug 11 23:36:08 coz they were more ideas than anything else Aug 11 23:36:08 where's enkin tho?... I want my enkin! Aug 11 23:36:19 enkin was bought by google Aug 11 23:36:24 oh? Aug 11 23:36:39 * DarkFoxDK starts poking Google with a stick to make them release something Aug 11 23:36:41 Does ddms have tcp support for remote debugging? Aug 11 23:36:57 aanrart: yes. click the process, connect to port 8700 Aug 11 23:38:48 jasta: In android cupcake release there was only support for connecting to the device through usb and emulator through Aug 11 23:38:51 local tcp Aug 11 23:39:26 jasta:Am I right? Aug 11 23:39:39 aanrart: you mean truly remote, as in over the phones radio? Aug 11 23:39:42 no, that is not possible. Aug 11 23:41:53 jasta:What I require is that the emulator/phone to be connected to ddms via tcp/ip.. Aug 11 23:42:14 im sure tehre's a way, but its not supported today Aug 11 23:43:06 normally, the dbeug works by ddms acting as a bridge between the host and device over usb Aug 11 23:43:20 for debugging, a local socket on port 8700 is listening for connections from a debugger, which proxy to the device and ultimately to the VM Aug 11 23:44:08 jasta:thanks Aug 12 00:23:37 how can i update the R.java class (let the raw files be added) without using eclipse? is there a command? Aug 12 00:23:57 Hi all! Does anyone know how to send notifications to an Android app, based on content update on a Web Site? I suppose what you send is something to the Android user and it's the app that creates trhe notification... Any ideas? Aug 12 00:25:36 jdavidandroid, you want to have an app check a website for updates, and then create a notification? Aug 12 00:27:40 ivantis, so that the app dies not have to continously check for possible changes... Is this possible at all? Aug 12 00:28:40 jdavidandroid, it's like the push issue: the server needs to keep the session open the entire time, since T-Mobile and other operators don't usually allow a remote to initiate the connection Aug 12 00:30:18 ivantis: then what about checking for updates lets say every 10 minutes? Aug 12 00:32:07 I think I've misendersatood the problem ^^ Aug 12 00:33:42 Yeah, that would work. Like twidroid, email, everything Aug 12 00:34:05 But the server couldn't alert the phone that there was a new update Aug 12 00:34:29 you can keep a connection open.. Aug 12 00:34:40 Actually.... you could have it go through SMS Aug 12 00:34:47 And have the app intercept it Aug 12 00:35:10 how does gmail work? Aug 12 00:35:21 muthu, that would be pretty straining on the server Aug 12 00:35:27 since I'm new to android dev, is it even possible to send that kind of remote signal (except with a mail/sms)?? Aug 12 00:35:33 ivantis: true Aug 12 00:35:37 that's how gmail works Aug 12 00:35:45 It is? Aug 12 00:35:48 yes Aug 12 00:36:03 I thought it was a real push kind of thing, but all the networks allowed gmail Aug 12 00:36:14 it's just an open socket Aug 12 00:36:26 yea that's what i heard Aug 12 00:36:44 guess if you host it on google appengine, then they'll scale it for you :) Aug 12 00:36:47 How does that android webserver work? Aug 12 00:37:34 android webserver? Aug 12 00:38:42 http://www.cyrket.com/package/com.tokasiki.android.webserver Aug 12 00:39:44 email them and ask? Aug 12 00:39:52 or pull it apart with baksmali Aug 12 00:40:03 KNY, Sounds interesting I'll search for some documentation about it, thanks! Aug 12 00:40:12 I'm using a custom drawable for some RadioButtons to make them look more like toggles. Works great using android:button to set the drawable. But the button text seems to be showing up behind the button image rather that on top of it. Any ideas why? Aug 12 00:40:38 Actually, I'm finding that it doesn't work unless you start a connection first Aug 12 00:41:07 yep, client has to initiate the connection and keep it open Aug 12 00:41:58 hmm.. morning tea, tasty! Aug 12 00:42:12 Anyone want to give that a try? I can set up something on my VPS for it Aug 12 00:42:19 2am's coffee: life saver Aug 12 00:42:25 Does twitter support push? Aug 12 00:42:38 seeme: lol Aug 12 00:42:51 Tea, coffee: bleah Aug 12 00:42:58 ivantis: twitter supports rest api Aug 12 00:43:12 Tea just tastes like watered down juice, and coffee is nasty Aug 12 00:43:12 they don't support persistent connections Aug 12 00:43:40 ivantis: so what's your favorite? Water ? :p Aug 12 00:43:47 tea & coffee - are the life juices Aug 12 00:44:10 seeme, I like juice or water. Or sometimes soda Aug 12 00:44:26 Hehe I was at a party a couple days ago they had a keg of root beer Aug 12 00:44:34 don't like coffe, just need caffeine... Aug 12 00:44:47 Uh... drink cola? Aug 12 00:45:11 too much sugar, geek, but a thin one Aug 12 00:45:11 Hehe I was at a party a couple days ago they had a keg of root beer Aug 12 00:45:12 that's awesome Aug 12 00:45:49 It was my uncle's 50th birthday Aug 12 00:49:25 KNY, it was nice until I drank too much. I doubt it has left my system entirely Aug 12 00:49:49 ivantis, I'd be lying if I said I wasn't jealous Aug 12 00:57:41 http://apiwiki.twitter.com/Streaming-API-Documentation Aug 12 00:57:54 Could that be done on android so that it would work on any network? Aug 12 00:58:56 sure, just open URLConnection and don't stop parsing Aug 12 01:10:23 KNY, how? Aug 12 01:10:53 ivantis, just like I said Aug 12 01:10:54 :) Aug 12 01:11:13 read the docs on URL and/or the SAX parser Aug 12 01:11:32 I am fail at android app building Aug 12 01:13:40 I'm only good at interpreted languages. Java with all its warnings and errors is too much for me Aug 12 01:13:56 java is an interpreted language Aug 12 01:15:11 heh Aug 12 01:29:58 Interpreted languages that aren't difficult Aug 12 01:31:39 :) Aug 12 01:31:48 926 active installs of URL Shortener! Aug 12 01:31:50 ivantis: ill make a lolcode interpreter for you if i hava some spare time Aug 12 01:45:02 does ListView ever recycle views while the original is still on the screen? Aug 12 02:10:38 KNY: the original what? Aug 12 02:11:12 romainguy_, sorry, I wasn't sure how to phrase that. Aug 12 02:11:17 so rows are recycled, right? Aug 12 02:11:18 I assume he means the views as in the rows that scroll out off screen Aug 12 02:11:40 KNY don't interupt me while I'm explaining you Aug 12 02:11:45 hahah Aug 12 02:11:46 KNY: yes Aug 12 02:12:19 right, but I'm seeing an issue where it seems like they're being reused, like rows 1-10 are all on-screen and I don't scroll, but row 4 is row 2, but recycled Aug 12 02:12:23 if that makes any sense at all Aug 12 02:12:47 that can happen Aug 12 02:13:24 what could cause it? more importantly, how can I stop it? Aug 12 02:13:29 well, they are recycled if you reuse the one that is passed in to the getView function, right? Aug 12 02:13:46 KNY: notify dataset change Aug 12 02:13:57 romainguy_, that will recycle the last view? Aug 12 02:14:00 (or something) Aug 12 02:15:48 or should i just RTFS? Aug 12 02:22:05 also, what's the difference between notifyDataSetChanged() and notifyDataSetInvalidated()? The docs for invalidated() are empty **** ENDING LOGGING AT Wed Aug 12 02:59:57 2009