**** BEGIN LOGGING AT Sun Aug 02 02:59:57 2009 Aug 02 03:00:09 wtf Aug 02 03:00:15 eclipse keep hitting a breakpoint Aug 02 03:00:17 but there is none set Aug 02 03:00:18 :s Aug 02 03:00:57 any ideas? Aug 02 03:01:18 project -> clean Aug 02 03:01:31 always the first step Aug 02 03:01:42 restart eclipse, etc Aug 02 03:02:08 and make sure you aren't hiding the margin that shows the breakpoints Aug 02 03:02:31 it aint there Aug 02 03:02:35 I can set it Aug 02 03:02:54 and the dot shows, but unsetting it removes the dot, but still it hits a breakpoint (its on a return m_something;) Aug 02 03:03:28 SinnerG, you sure it's not an exception? Aug 02 03:03:32 hit F8 Aug 02 03:03:54 when it hits it? Aug 02 03:04:08 yes Aug 02 03:04:16 it just continues then Aug 02 03:04:24 interesting Aug 02 03:16:04 any1 know where i can find the oAuth lib for android ? Aug 02 03:17:03 i tried download the oAuth java jar, but i cannot manage to get it working Aug 02 03:17:29 w00t just 'finished' (again..) my text drawing for opengl es :P Aug 02 03:17:52 you can setText() and it'll free the allocated res @ opengl and make a new one with the new text Aug 02 03:18:09 in my engine I can reuse the texture obj since it reuses it :) Aug 02 03:19:05 also has support for 'effects' that stack Aug 02 03:19:10 like a shadow Aug 02 05:06:59 if I have two different applications providing the same activity, android will ask me which activity i want to use to complete the action, and give me the option to save my choice and use it next time by default. how can I reset this default choice? Aug 02 05:12:07 mikem`: in settings there is a place Aug 02 05:12:52 mikem`, settings -> applications -> manage applications -> select the app -> reset defaults or something Aug 02 05:12:54 when you look at an app's details, there is a "reset defaults" Aug 02 05:13:04 <-- winner!@ Aug 02 05:13:08 lol Aug 02 05:13:11 :) Aug 02 05:14:05 jsharkey, KNY: yep, found it :) thanks Aug 02 05:18:36 hmm...why not: The method setItems(List) in the type TextListScroller is not applicable for the arguments (List) Aug 02 05:19:23 ahh, changed to setItems(List arg) insteal Aug 02 05:19:25 instead* Aug 02 05:20:10 though it seems like List should work Aug 02 05:24:14 zhobbs_, change it to List Aug 02 05:24:21 that might not be the exact syntax, but it's close Aug 02 05:24:55 KNY: thanks, that works Aug 02 05:28:34 Would it be entirely too difficult to set up an MID version of Android for my G1 as I no longer use it as a cellphone? Aug 02 05:29:47 Xase, can't you just hose your APN settings? Aug 02 05:30:05 or take the sim out Aug 02 05:30:41 ... I did, but I want to remove unnecessary applications, and processes. Aug 02 05:30:56 Such as the dialer, and the bluetooth. Aug 02 05:31:14 you'd have to build a custom ROM for that. Also, why no bluetooth? A2DP ftw Aug 02 05:31:27 I have nothing in my house supporting bluetooth. Aug 02 05:32:03 I know i'd have to build a custom rom for that, but what difficulty would that entail, or would it just mean removing components from a stock build and just recompiling? Aug 02 05:32:31 no idea, try asking on android-porting Aug 02 05:32:32 I'm trying to jump from newb, to overboard/overload here... I want my eyes swimming with code I don't understand. Aug 02 05:32:34 Alright. Aug 02 05:32:42 Thanks for the pointers KNY :D Aug 02 05:34:41 I did not locate a android-porting channel. Aug 02 05:36:04 someone in xda-devs may know something though. Aug 02 05:38:03 Xase, it's a Google Group Aug 02 05:38:12 http://groups.google.com/group/android-porting Aug 02 05:40:20 =/ hm. Ok. Aug 02 05:40:24 Looking... Aug 02 05:41:17 since you really aren't porting that might not be the correct place Aug 02 05:41:37 there are probably some tutorials out there for building a G1 image and flashing it Aug 02 05:41:38 That's what I thought. Aug 02 05:41:58 Yeah, I am googling for them but coming out at dead ends, but could be my search terms Aug 02 05:42:12 though unless you do something special you'll lose the google apps (Maps, Gmail) Aug 02 05:42:12 zhobbs_, whenever people ask that sort of question on android-developers, they get told that custom image questions belong on android-porting Aug 02 05:42:15 JF posts info about his build setup, might look into that Aug 02 05:42:25 KNY: gotcha Aug 02 05:44:00 Xase: http://andblogs.net/2009/05/jfv151-images-are-out/ Aug 02 05:44:12 there is a link there for his build environment, might be useful Aug 02 05:44:30 KNY: not to be impertinent, but might I ask why? Aug 02 05:44:53 Xase, because it's the closest group for what you want to do? Aug 02 05:45:22 making a android-custom-builds google group would be pretty useless Aug 02 05:45:29 android-porting is pretty darn close Aug 02 05:45:42 ... Ah... I guess. That's kind of awakward though, as I'm not really... porting to anything new. But I see your point, sorry to be a hassle. Aug 02 05:46:57 Thank you as well zhobbs_ for pointing me in the direction of that link. Aug 02 05:47:06 Xase: either way, the questions aren't relevant to android-developers Aug 02 05:49:45 =/ Aug 02 05:49:50 Yah I see your point. Aug 02 05:49:55 I apologize. Aug 02 05:50:08 But thank you for being gentlemen about the situation rather than jerks. Aug 02 05:50:26 :) Aug 02 06:39:11 is there a way to make it so i don't have to enter my password into eclipse every time i want to make a debug build? Aug 02 06:58:49 elprespufferfish: I've never had to do that Aug 02 06:58:59 maybe you should just delete the debug keystore and let it create another Aug 02 08:15:24 anybody have a problem with getScrollY() always returning 0? Aug 02 08:16:43 elprespufferfish: what kind of view? Aug 02 08:16:47 listview Aug 02 08:17:06 It's a listactivity and i'm calling this.getListView().getScrollY() Aug 02 08:20:06 hmm thats probably because listview handles scrolling differently than a normal View Aug 02 08:20:13 im not sure that it exposes the exact x/y Aug 02 08:20:23 what are you trying to use it for? Aug 02 08:20:29 to maintain the position Aug 02 08:20:58 it should be persisting that on its own through onSaveInstanceState() Aug 02 08:22:22 it isnt :( Aug 02 08:25:00 why not save it through Adapter.getItemId() for ListView.getFirstVisiblePosition()? Aug 02 08:26:35 because i didn't know about them :D Aug 02 08:26:53 hmm im trying to figure out how to restore it Aug 02 08:27:08 theres requestChildFocus, but that might not work Aug 02 08:28:46 elprespufferfish: when/how are you losing the position in the list? Aug 02 08:29:07 i click an item in the list Aug 02 08:29:13 it starts an activity Aug 02 08:29:14 i click back Aug 02 08:29:30 hmm, where are you creating and setting the adapter? (oncreate?) Aug 02 08:29:40 onresume Aug 02 08:31:16 are you running teh query directly, or through a handler? Aug 02 08:31:31 i'm calling setListAdapter directly Aug 02 08:32:10 is that resetting it? Aug 02 08:32:18 aha! Aug 02 08:32:26 the issue is that onRestoreInstanceState() is run before onResume() Aug 02 08:32:30 i need to call that because some of the items may have changed in the subactivity Aug 02 08:32:35 which means the list state is lost before the adapter is there Aug 02 08:32:59 the right way to handle it is to write the list state on your own and keep it around to apply once the query is finished Aug 02 08:33:12 lemme find an example Aug 02 08:33:22 that's what i was trying to do Aug 02 08:33:29 or do you mean state in a broader sense Aug 02 08:33:53 lets use Contacts as an example Aug 02 08:34:02 heres the code where it stores the list position state: http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=blob;f=src/com/android/contacts/ContactsListActivity.java;hb=cupcake#l682 Aug 02 08:34:26 and here's where it finally restores the state: http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=blob;f=src/com/android/contacts/ContactsListActivity.java;hb=cupcake#l682 Aug 02 08:35:08 its kept locally in mListState because otherwise onRestoreInstantState() doesn't have the prepared ListView Aug 02 08:35:30 (Contacts does the same thing and triggers the query from onResume()) Aug 02 08:35:36 i see Aug 02 08:41:04 this is sorta confusing Aug 02 08:47:00 http://i26.tinypic.com/sxzu3t.png <= I've set no breakpoint there, still it triggers on there :s Aug 02 08:50:59 jsharkey, im trying that method, but it's saying i can't pass a parceable to onRestoreInstanceState Aug 02 08:55:00 you're sure you're passing it to ListView.onRestoreInstanceState? Aug 02 09:01:13 no :( forgot to send it to the listview Aug 02 09:03:38 it works! Aug 02 09:03:40 many thanks! Aug 02 09:09:27 Isn't it wrong to call getHolder() in the constructor of the SurfaceView class? I was tought that you shouldn't attempt to get anything from an object that hasn't been constructed yet - which I assume i can't have been, since we're in the constructor at the time. Aug 02 09:10:59 Looks weird to me to do so. Aug 02 09:11:51 To me it would be more logical to put it in the SurfaceCreated method. Aug 02 09:15:31 hello ! Aug 02 09:15:57 I'm calling startActivityForResult(intent, code); // code > 0 Aug 02 09:16:15 but OnActivityResult never gets called in my class, any idea ? Aug 02 09:34:06 anyone with a HTC Hero here ? Aug 02 11:58:46 any1 know where i can find the oAuth lib for android ? Aug 02 11:58:53 i tried download the oAuth java jar, but i cannot manage to get it working Aug 02 12:31:43 can tween animations be applied to single views purely through xml, or is code needed? Aug 02 13:02:58 <|MikeYV|> Hi all Aug 02 13:05:06 hi Aug 02 13:11:36 eww, i never thought i would get back to java Aug 02 13:11:45 it's the only choice for android apps? Aug 02 13:12:00 <_Auron_> for the most part, yes. Aug 02 13:12:22 it's a limited subset of the full java 1.6 ? Aug 02 13:13:03 Ramosa: a subset with extentions Aug 02 13:13:34 and it works like J2EE, where you have to do config after config? Aug 02 13:14:18 There is some xml configuration whcih gets translated at build, and UI and other resources are best done in xml, evne if they can be done programatically Aug 02 13:14:47 any of you got a hero yet? Aug 02 13:15:09 Ramosa: J2EE for that matter, no longer requires all the XML that you seem to recall, even if it's still availible to override annotations in code Aug 02 13:15:43 i had hoped they'd go for python, as google is pretty keen on that :) Aug 02 13:17:26 Ramosa: In theory, I beileve you can use jpython to write android apps, assuming jpython generates classes and doesn't expect to poke at the bytecode after compilation Aug 02 13:17:39 Ramosa: Somoene has no doubt already tried and blogged about this Aug 02 13:17:46 jython Aug 02 13:17:59 * wlfshmn shrugs Aug 02 13:18:03 I don't use the stuff Aug 02 13:18:19 a mix of two languages doesn't sound like a good idea to me either :) Aug 02 13:19:00 i'm trying to sum up all smartphones... which has the highest level language? i think palm pre yes? Aug 02 13:19:06 IT wouldn't be my choice either, but it was relevant to your earlier statement Aug 02 13:19:31 I've not worked with pre, so I wouldn't know. Aug 02 13:19:43 i think it uses javascript Aug 02 13:20:51 I would put js and java on the same order of abstraction. js just typically gets placed closer to the client, but that doesnt' change the nature of the language Aug 02 13:21:37 any1 know where i can find the oAuth lib for android ? Aug 02 13:21:44 i tried download the oAuth java jar, but i cannot manage to get it working Aug 02 13:27:27 If any of you have the Google Dev phone, is it also usable as your main cell phone? Aug 02 13:27:43 It's just an HTC Dream, right? Aug 02 13:28:26 to start developing apps I need Android SDK, Eclipse+ADT .. anything else? Aug 02 13:30:12 sioraiocht: I use my dev phone as my daily phone at it works fine Aug 02 13:30:32 Hello, can any1 see me :P Aug 02 13:30:49 i have include an 3rd party jar file, how can i use it's classes ? Aug 02 13:30:58 sioraiocht: I wouldn't know if there is a US-specific hassle with it though Aug 02 13:31:13 Ramosa: nope Aug 02 13:31:41 wlfshmn: Well, I'm in the UK Aug 02 13:31:56 MikeYV: We see you, but apparently noone knows the answer to your question. Aug 02 13:32:08 wlfshmn: I just wanted to make sure that the battery life, esp, was as good as a regular phone, i.e. it wasn't designed to be tethered all the time Aug 02 13:32:18 sioraiocht: I'm in .se, at it works well for me Aug 02 13:32:23 wlfshmn: thanks =) Aug 02 13:32:25 wlfshmn: didn't you ever included an 3rd party jar ? Aug 02 13:33:03 sioraiocht: battery life could alwayts be better, but then again, I ask a lot of the phone Aug 02 13:33:39 MikeYV: no, I'm a begginer myself and have not had the need. You will need an android-prepared library though, as android doesn't contian all classes a random 3rd party library might link to Aug 02 13:34:06 ok Aug 02 13:34:47 In a related thread, there is any new phone slated for release with a QWERTY keyboard? Or is the G1 still it? Aug 02 13:35:53 I havn't seen any other querty phone sin my news feed, but I expect they will come sooner or later Aug 02 13:36:24 I hope so, I detest on-screen keyboards... Aug 02 13:37:33 I'm not a great fan either, but I think this is largely a matter of gettig use to it Aug 02 13:39:24 Perhaps...maybe I'll fiddle with an HTC Hero and decide Aug 02 13:41:37 I find that as I get older, I more frequently need to force myself to participate in things I thing are wierd or odd, to see what I'm missing ,) Aug 02 13:42:06 wlfshmn: haha Aug 02 13:42:19 were I to ignore all such things, I would risk missing out on the odd instance where my gut instincts weren't on the level ;) Aug 02 13:42:40 wlfshmn: I still don't think I will ever participate in e.g. a Miley Cyrus concernt Aug 02 13:42:42 *concert Aug 02 13:43:12 well, that is a bit differnt ;) Aug 02 14:41:47 Hi, all. I have a producer/consumer implementation where the producer gets data from an audio file and the consumer writes it to an AudioTrack. There's a function where I seek to an arbitrary point in the file, but when this function is invoked, there's a delay between when it's called and when the track goes to that point. I think what's happening is the AudioTrack has its own buffer, but I'm not sure. If that's the case, how Aug 02 14:41:47 can I clear that buffer? Aug 02 14:50:34 hmm, if threads other than the ui thread cant touch a ProgressBar, how am i supposed to modify it from my thread Aug 02 14:51:30 deebo, either use an AsyncTask or use handlers Aug 02 14:52:30 also, Toasts i create and .show() from a thread dont work :/ Aug 02 14:56:22 arf Aug 02 14:57:04 arf :/ Aug 02 14:58:40 guess ill transform this runnable into an asynctask Aug 02 14:58:49 asynctask++ Aug 02 14:59:51 which is sad since this runnable already works, altho it cant pop up messages, invalidate views or do anything smart actually Aug 02 15:07:06 KNY: For a similar problem, I have a Service set up. One of the interfaces is "How far into the file are you" and another is "How big is the file." Is that a reasonable solution? Aug 02 15:07:30 (I changed it to a service when I kept getting multiple MediaPlayers instantiated when changing to Landscape mode, since the Activity is reallocated.) Aug 02 15:08:00 Poeir, couldn't you just call MediaPlayer.release() when the activity is rotated? or make it static and just pass it through the rotation Aug 02 15:08:56 KNY: Well, that seemed like more caretaking. So now the Service deals solely with the Media operations: Loading a file, segmenting it off (the main feature I'm adding), skipping sections that are active, etc., while the Activity just sends signals. Aug 02 15:09:18 it's like 30 lines, but whatever floats your boat :) Aug 02 15:09:53 I think I've ruined testability through other aspects of my design, though. Aug 02 15:10:34 Right now I'm trying to strike the right balance between circular buffer size. Too small, and playback gets choppy. Too big, and there's a delay between seeks. Aug 02 15:11:43 Any idea what the overhead on Thread.sleep is? (Incidentally, while Tasks/Activities aren't thread-safe, are Services? If not, I have some serious refactoring to do. Again.) Aug 02 15:14:15 aaah now it works perfectly Aug 02 15:15:53 sweet Aug 02 15:26:50 anyoen dealt with ItemizedOverlays? Aug 02 15:27:07 im adding items to one in a thread and it randomly crashes when the view is invalidated and redrawn Aug 02 15:27:47 Views aren't thread-safe. That sounds like your general problem. Aug 02 15:28:29 hmpf Aug 02 15:28:50 i really want the items to appear as theyre found from the data i provide, not all at once Aug 02 15:29:26 Isn't that another AsyncTask? Aug 02 15:29:57 the asynctask gets a ref to the overlay and then adds items to it and invalidates the mapview so it gets redrawn Aug 02 15:30:08 it works ~randomly :) Aug 02 15:30:40 Well, that's not good. I don't know. Like I said, I just implemented my stuff as a service. I have a poller that updates the UI as needed. Probably *not* the way to do it at all. Aug 02 15:31:09 this is not production quality anyhow, im just doing this to get familiar with stuff :) Aug 02 15:31:14 but crashing is still not acceptable Aug 02 15:32:56 Yeah, that's pretty much where mine is. I keep tearing it apart and putting it back together. Aug 02 15:33:12 Right now I have a bug where an audio file stops playing when it gets *near* the end. It's annoying to debug. Aug 02 15:34:46 hmpf i guess its the overlay crashing at some point, has to be Aug 02 15:34:56 And apparently occasional skipping is being caused by the garbage collector. Aug 02 15:36:05 cant find info in the docs of ItemizedOverlay on how to properly update its internal data Aug 02 15:41:00 now it works, i had to synchronize the draw method Aug 02 15:41:05 which brings it down to a crawl :) Aug 02 15:42:29 What happens to Log.d/Log.e lines when not run in debug mode? Are they completely ignored, or are they just a noop? In other words, if I put statements in there, will they slow down the actual running speed? Aug 02 15:43:26 MikeYV: In eclipse you right click on the project, go to Build Path then Add External Libraries. Then browse to your external jar files. Aug 02 15:52:54 man its slow, guess ill just limit the results :) Aug 02 15:53:16 but atleast done now, guess the next step is to make it properly Aug 02 16:01:03 I was under the impression that "./adb logcat com.example.performalong.MusicSectionPlayer$Buffer$Consumer" would only print things with that tag, but I'm seeing output from the Producer, too. How can I only show things tagged "com.example.performalong.MusicSectionPlayer$Buffer$Producer"? Aug 02 16:03:11 is that really your tag? Aug 02 16:03:30 that's crazy. Aug 02 16:03:58 Well, assuming you're on Linux I would pipe the output into grep and have that search for the tag. That's what I do Aug 02 16:05:16 just click on the down arrow in the right corner of the LogCat window in eclipse and select "Create filter" Aug 02 16:05:46 so you can filter by tag, pid and loglevel, or any combination of those.. Aug 02 16:14:58 whaledawg: I put "Log.d(this.getClass().getName(), 'debug text')" in for my tags. Aug 02 16:15:05 Er, for my debug statements. Aug 02 16:15:25 birgerb: But I want to look at Producer in one window and Consumer in the other. Something weird is happening with their interaction. Aug 02 16:19:49 ok, then you need to do something else i guess Aug 02 16:20:13 you can create two filters but you can't see them simultaneously Aug 02 16:21:09 ah, yes you can, if you create a new window :) Aug 02 16:58:59 Can someone figure out whats wrong with my textview? http://pastebin.com/d279ebf53 Aug 02 16:59:36 Whenever it goes to the function it crashes Aug 02 17:00:11 you never call setScoreTextView Aug 02 17:00:15 ? Aug 02 17:03:00 good point... Aug 02 17:03:46 you probably don't want to actually replace the entire textview either Aug 02 17:03:54 just the value of it i guess Aug 02 17:04:05 Can i have multiple textviews? Aug 02 17:04:12 yes Aug 02 17:05:31 Sweet! The refactoring *definitely* lets me add the feature I was refactoring for! Now I just have to fix the new, associated bugs. Aug 02 17:08:32 Im trying to create another textview that outputs different values Aug 02 17:13:28 hooray it works :) Aug 02 17:18:37 Minty: wii :) Aug 02 17:39:19 Hey, I am a android beginner, and I struggle with 2 errors I get: 1) Failed to find provider info for com.google.settings 2)Couldn't get connection factory client. It happens when I try to run small map view app. Do you have a clue? Aug 02 17:52:59 hi guys, whats the easiest way to fill a bitmap with transparent pixels that overwrite whats there? Aug 02 17:53:27 i thought drawColor(Color.TRANSPARENT); would work.. but i still get the trails from previous frames Aug 02 17:58:39 probably drawing transparent means you draw nothing above what was there before Aug 02 17:58:41 you could try setting the alpha value to 255 mayb ? Aug 02 17:59:41 255 is completely opaque Aug 02 17:59:56 values in the middle are used for translucent or semitransparent colors Aug 02 18:00:03 0-255 Aug 02 18:00:14 ill give it a go.. seems strange to provide that constant if it essentially does nothing Aug 02 18:11:10 i cant get this to work Aug 02 18:14:17 i have ended up using bitmap.eraseColor(Color.TRANSPARENT); Aug 02 18:14:18 works a treat Aug 02 18:41:25 Does android come with any utilities for dealing with a cartesian coordinate system, e.g. for defining shapes, detecting collisions, etc..? Aug 02 18:42:22 or do I need to write my own :) Aug 02 18:44:11 savid: android.graphics.* Aug 02 18:44:47 cool, thanks Aug 02 18:55:03 Hmm, I'm surprised that the graphics.Point class has methods for calculating the length from 0,0 but not the distance between another point :-p Aug 02 18:56:55 Looks like it used to have a lot more functionality, I wonder why it was stripped down? http://lampwww.epfl.ch/~linuxsoft/android/android-m3-rc22a/docs/reference/android/graphics/Point.html Aug 02 19:30:00 *sigh* Aug 02 19:30:07 i broke my preproduction sapphire :( Aug 02 19:30:45 fell in the lake yesterday and now the radio has some strange problems, the display flickers often, and the touch screen doesnt work at all Aug 02 19:37:01 Doing some reception tests at the local park? Aug 02 19:45:39 Hey everyone. Do any terminal messages get displayed under the splash screen? Aug 02 20:20:25 hi all Aug 02 20:22:45 I've just ported a Quake 3 level viewer to Android. Do you think it could be interesting to make it available ? Aug 02 20:23:26 Hmm, I'm not sure if android.graphics can do what I need. I'm writing a fairly basic game in which I have some PNG images with a distinct shape whose region I want to define using a polygon (set of points). I want to be able to detect if the polygon contains a given point. Also can't find a built-in way to calculate the distance between two android.graphics.Points (seems like there should be a method for this, however easy it is to Aug 02 20:23:27 replicate) Aug 02 20:25:16 guillaum1, what do you mean by "viewer"? Like in 3D? Aug 02 20:26:18 savid: the maths for distance between two points is easy enough that it probably wouldn't be worth implementing a function specially Aug 02 20:26:29 that's my theory on it, anyway Aug 02 20:27:44 PSquid, easy yes, but I don't see how it's not worth implementing a method for it.. it seems like it actually used to be in Android (rc22?) http://lampwww.epfl.ch/~linuxsoft/android/android-m3-rc22a/docs/reference/android/graphics/Point.html Aug 02 20:27:45 savid: currenlty you can't play. You can just navigate through the maps like in 3D level editors Aug 02 20:28:08 PSquid, there's a lot of other useful point functions in there too.. why would they have been taken out? Aug 02 20:28:32 guillaum1, Yeah, if anything it'd be cool just to show the capabilities of the device Aug 02 20:28:49 Market has a serious lack of good 3D apps Aug 02 20:29:21 savid: now that *is* weird Aug 02 20:29:32 PSquid, I know?! Aug 02 20:29:38 I can understand why they wouldn't bother implementing at all Aug 02 20:29:52 but implementing and then removing seems odd Aug 02 20:29:58 savid: you know, it would have taken you less time to write a method to calculate the distance between two points than it took you to complain about it here :) Aug 02 20:30:47 romainguy, I already did :-P I generally spend more time making sure my code is as clean as possible than I do implementing it Aug 02 20:31:15 romainguy: it's still a little odd that there *was* such a function in the api, but it's gone missing Aug 02 20:31:32 romainguy, and I'm not necessarily complaining, I'm really just curious at this point Aug 02 20:31:55 because we cleaned up the API Aug 02 20:32:02 I've already subclassed point and added stuff in that I need. I just want to know that I'm not doing work that I don't need to Aug 02 20:32:04 and the old point class was not what we wanted Aug 02 20:32:14 interesting Aug 02 20:33:14 savid: ok thanks, will do. I thought maybe it would not be so interesting because of this previous effort : http://androidandme.com/2009/04/news/auriga3d-brings-quake-3-to-android/ Aug 02 20:36:26 romainguy: I don't happen to have the old docs, unfortunately, but would I be right in guessing that the distance method was already gone (from documentation, at least) by Android 1.0 (i.e., the first "what's documented is guaranteed not to be removed" API)? Aug 02 20:36:39 yes it was Aug 02 20:36:53 it's a VERY bad idea to look at pre-1.0 documentations Aug 02 20:36:57 many APIs changed Aug 02 20:37:00 in that case, it's not so odd that it disappeared Aug 02 20:37:11 * PSquid is no longer baffled Aug 02 20:44:48 hmm i managed to crash the main activity with my app aparently Aug 02 20:45:41 nope, the emulator killed all the dalvikvm processes Aug 02 21:10:45 argh, this layout_height error is driving me crazy Aug 02 21:14:06 Is there a way to more or less automatically scale a layout to the dimensions of the screen if it's default layout would expand beyond the viewable Aug 02 21:15:02 wlfshmn: which layout are you using? Aug 02 21:15:29 currently it's a tablelayout, but I'm flexible ;) Aug 02 21:16:04 wlfshmn: you could use a scrollview Aug 02 21:16:37 kroot: Indeed, this is what I want to avoid though. What I have ia field of ImageButtons, and shrinking them is acceptable, wheras scrolling would be less pleasant Aug 02 21:17:42 wlfshmn: The default class will only shrink to a size that's usable with a finger, I think Aug 02 21:18:24 They grow to fit the image material in question however, and while I could alter the graphics I use, that wouldn't be a very universal solution Aug 02 21:25:58 you can use a linearlayout with a weight of 1.0 Aug 02 21:26:11 :) Aug 02 21:30:08 Ok, so I'm still trying to figure out how to define polygons for use in collision detection. I've found graphics.Region, which seems to have the methods I need, but can't seem to figure out how to specify the actual points that make up that region (seems I can only make a rectangle?) Aug 02 21:30:50 collision detection with polygons is hard :) Aug 02 21:31:13 jsharkey, are you saying that region can't be anything but a rectangle? Aug 02 21:31:14 a Region is just a collection of rectangles Aug 02 21:31:16 try Path Aug 02 21:31:56 hello Aug 02 21:32:02 Tripitaka here :-) Aug 02 21:32:37 romainguy, looks like I could use Region.setPath() -- not sure what "clip" is, though... Aug 02 21:33:16 oh yeah that would do it Aug 02 21:33:55 as for the clip, just make it as big or bigger than the path bounds Aug 02 21:36:34 * wlfshmn remembers why he tends to avoid UIs Aug 02 21:59:43 say i wanted to use an external library which takes a path to an image file String as one of its arguments. I put this file into res/drawable/somefile.png. What path would i have to use inside my application to have the library find the file? Aug 02 22:00:05 just pass the resource id Aug 02 22:00:34 along with the context Aug 02 22:11:18 romainguy: Can you give me more detail on that? my library only has a method that wants the path to an image file as an argument Aug 02 22:24:11 anybody know what to do about No package identifier when getting value for resource number 0x7f060001 Aug 02 23:08:44 I'm trying out the Canvas draw stuff, but can't seem to get it to work. I'm able to use drawBitmap and it works fine, though drawRectangle doesn't seem to work: http://java.pastebin.com/m2e3fbdf5 Aug 02 23:10:24 Basically, the bitmap shows up but I don't see the expected 50x50 rectangle. Aug 02 23:15:01 (this is on a SurfaceView, btw) Aug 02 23:24:42 wow, I'm a moron... I just created a 0x0 pixel square. Aug 02 23:25:14 hehe Aug 02 23:31:25 http://i29.tinypic.com/28iuoet.png <= got circles to work :) Aug 02 23:31:34 WHO can live without circles :P Aug 02 23:32:31 w00t! Aug 02 23:32:36 sorry, wrong window Aug 02 23:32:56 no! you cannot take it back now! :P Aug 02 23:33:12 Hi, all... hoping someone can help. I've got a fresh install of Ubuntu 9.04 (64 bit) and cannot for the life of me get the 1.5 R3 SDK to work properly. Keeps telling me "no such file or directory" when I try to run adb. Doesn't matter how I do it or where it is... I have confirmed everything is in fact in the right place. I have not explicitly done anything with Java yet. Does Ubuntu not come with Java? Does adb require Java. I am Aug 02 23:40:47 nexsoftware: you need to run adb as root Aug 02 23:41:13 ./adb kill-server first.. then run adb devices as root Aug 02 23:42:00 why do you have to run adb as root? Aug 02 23:42:04 i've always run it as my user Aug 02 23:42:05 adb its propably not in his PATH Aug 02 23:42:14 no idea Aug 02 23:42:31 I just ran into the same issue last night tis all Aug 02 23:42:43 running it as root fixed it Aug 02 23:42:53 check your $PATH Aug 02 23:42:56 I saw some page with some additional setup for ubuntu tho Aug 02 23:43:03 nah.. nothing path related, trust me Aug 02 23:43:24 i meant nexsoftware Aug 02 23:44:14 oh.. yeah, his 'no such file or directory' is all path Aug 02 23:44:22 ./adb will work Aug 02 23:48:19 path is OK Aug 02 23:48:28 evening - is there anyone free i can have a chat about open gl es with please Aug 02 23:49:02 on the android Aug 02 23:49:18 AndyArmstrong, /topic Aug 02 23:49:24 huh? Aug 02 23:49:27 I even going directly to the folder doesn't work Aug 02 23:49:31 'just ask' Aug 02 23:49:32 its not offtopic... Aug 02 23:49:33 oh i c Aug 02 23:49:45 will try running as root :) Aug 02 23:50:10 well - i am trying to make a very simple 'paint' app and am struggeling to work out how to do this and structure it correctly in android - was wondering if somebody could walk me through the basics of it Aug 02 23:50:49 AndyArmstrong, type "/topic #android-dev" and hit enter Aug 02 23:51:19 he knows it now kny :P Aug 02 23:51:23 and then read what shows up--specifically this part: "Got a question? Just ask!" :) Aug 02 23:51:37 yes thansk KNY your always so pleasant arent u - SinnerG helped with that Aug 02 23:51:42 ive now asked the question Aug 02 23:51:49 AndyArmstrong: there is a simple painterapp demo in ApiDemos source Aug 02 23:51:56 well I'm not sure if opengl is good for a paint app Aug 02 23:52:30 how would u do it? Aug 02 23:52:52 just using normal skia should work fine Aug 02 23:53:00 skia? Aug 02 23:53:02 Canvas+Paint Aug 02 23:53:07 canvas.... Aug 02 23:53:14 u talkin javax? Aug 02 23:53:17 skia is the 2d graphics library that ships with android Aug 02 23:53:21 oh Aug 02 23:53:23 never even heard of it Aug 02 23:53:26 any tutorials for it? Aug 02 23:54:51 http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/TouchPaint.html Aug 02 23:56:07 oh shit! Aug 02 23:56:10 wow Aug 02 23:57:14 thats fuckin ace man Aug 02 23:57:16 cheers Aug 02 23:57:18 ur awesome! Aug 02 23:57:45 http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/graphics/index.html is a good resource in genereal before searching forums Aug 02 23:57:59 hmm I can now draw textures / lines / circles / ellipses / rectangles and I'm thinking now how to group draws Aug 02 23:58:21 I have 2 ideas: 1 is to have a predefined set of 'max' layers and per layer I try to group draws Aug 02 23:58:54 2nd idea: I group all draws who are following up eachother Aug 02 23:58:57 s/genereal/general ^^ Aug 02 23:59:00 lianj are the things under Open gl es open gl only tho... seems confusing because that example is under that category Aug 02 23:59:08 aka circle/circle/cricle/rectangle would become 3circles/ractangle 'drawing 'oder Aug 02 23:59:40 GL SurfaceView is opengl es Aug 02 23:59:42 I'm using it Aug 02 23:59:51 http://i29.tinypic.com/28iuoet.png Aug 03 00:00:31 AndyArmstrong: build the apidemos.apk and take a look at them, then dive down into their code. this helped me alot Aug 03 00:01:12 yeah examples ftw :) Aug 03 00:01:34 but dont stare blind on them - you still have to make it happen :P Aug 03 00:02:09 ApiDemos.apk more entertaining than most market apps ;D Aug 03 00:30:22 I'm looking at how to rotate a PNG image that I've added to the canvas. I've looked at LunarLander for how it rotates the lander, but seems kind of odd -- it rotates the entire canvas (not the lander image itself). How does that actually accomplish rotating the lander without rotating everything else on the canvas? Aug 03 00:32:08 <_Auron_> savid: You'd have to do a canvas.push() and canvas.pop() Aug 03 00:32:15 <_Auron_> if I remember correctly Aug 03 00:32:32 <_Auron_> I haven't dealt with the canvas since I jumped into the openGL hole Aug 03 00:32:42 yeah, something along those line Aug 03 00:32:44 lines Aug 03 00:33:49 <_Auron_> KNY: I just knocked an item off my to-do list. 4 more things to do, 2 of them involve sfx and gameplay music Aug 03 00:34:03 nice Aug 03 00:34:43 _Auron_, well kudos for doing 3D work :-) we need more of those! Aug 03 00:35:43 . o O ( isn't Stroids 2D? ) Aug 03 00:37:37 yeah savid I'm using opengl es as well.. for 2D :P Aug 03 00:38:15 oh heh guess I didn't even think about that. Do you get better performance using opengl for 2D? Aug 03 00:38:40 I wouldnt know for sure - dont own a real device yet :P Aug 03 00:39:02 ow come on circle.. fall down! Aug 03 00:39:14 (testing box2D physics) Aug 03 00:39:14 :P Aug 03 00:39:36 currently it just sticks there Aug 03 00:40:04 box2d ndk? Aug 03 00:40:54 http://www.4feets.com/2009/03/2d-physics-on-android-using-box2d/ Aug 03 00:41:37 just for a test though.. since I'm not planning to really use it yet :P Aug 03 00:43:29 SinnerG: http://groups.google.com/group/android-ndk/browse_thread/thread/10f2e02c5d6857cb there is a apk with both jbox2d and ndk in one app to compare them nicely Aug 03 00:44:13 what is ndk? Aug 03 00:44:36 SinnerG: looks like jbox2d is unusable on android in terms of speed Aug 03 00:44:37 Ok, so I'm reading the docs for Canvas.Rotate(), it says: "Preconcat the current matrix with the specified rotation.". What does that even mean?? Aug 03 00:44:40 It might have well said "When you do this you'll be wearing gold-plated diapers" Aug 03 00:45:55 well lianj its more as a test :P Aug 03 00:46:17 savid: it does exactly what it says it does Aug 03 00:48:06 romainguy, I know, I was just joking around -- it's just looks funny to a newbie ;-) Aug 03 00:58:11 would be nice if null.equals() worked in java.... Aug 03 01:02:37 romainguy what does that actually mean Aug 03 01:16:10 <_Auron_> oh heh guess I didn't even think about that. Do you get better performance using opengl for 2D? <-- it's hardware accelerated; yes. Aug 03 01:17:30 _Auron_, what's the learning curve on using OpenGL for 2D? Tough? Aug 03 01:23:19 depends on what you want it to do and at what fps :P Aug 03 01:24:05 zhobbs_, that's why you do "foo".equals(str) Aug 03 01:25:28 KNY: yep. but if you have foo and bar you have to do a null check Aug 03 01:25:36 yes Aug 03 01:25:54 and there's extra work, because if they're both null then they equal too Aug 03 01:26:11 zhobbs_, you could use String.intern() and do foo == bar Aug 03 01:26:46 but that doesn't help with nulls :) Aug 03 01:29:15 <_Auron_> savid: when I release my game engine, it'd be extraordinarily easy. Aug 03 01:29:29 _Auron_, heh, cool :) Aug 03 01:31:24 <_Auron_> a few excerpts from my game: atlas = new imgData( gl, context, texture, R.drawable.atlas ); ship = new Sprite( atlas, 96.0f, 0.0f, 32.0f, 32.0f, 32.0f, 32.0f ); Entity.draw( Image.ship, 22.0f, 0.0f ); Aug 03 01:31:26 Got RemoteException sending setActive(false) notification to pid 1337 <= 1337 exception :P Aug 03 01:47:49 <_Auron_> savid: about as simple as the above Aug 03 01:52:45 whaledawg, ping Aug 03 02:39:20 KNY I'll ping your face with my fist!!!! Aug 03 02:39:25 wait what? Aug 03 02:40:07 whaledawg, did you get my /msg from the other day? Aug 03 02:40:28 yeah but you were gone Aug 03 02:40:57 I was talking about recieving messages from GV without using the SMS system on the phone Aug 03 02:41:11 bypass it so getting them is free as well Aug 03 02:41:35 sure, just turn it off in your google voice settings Aug 03 02:41:54 ?? Aug 03 02:42:06 http://google.com/voice/#settings Aug 03 02:42:24 hit Edit under your mobile phone, and turn off "Receive SMS on this phone" Aug 03 02:44:16 ok Aug 03 02:44:19 I found that Aug 03 02:44:48 so will GV tell me when I recieve an SMS to Google Voice now? Aug 03 02:45:07 yes, it will check every $foo minutes Aug 03 02:45:14 $foo is defined in your GV settings Aug 03 02:46:08 gaah Aug 03 02:46:12 been loking for an hour : my error : Aug 03 02:46:14 X = (int)x; Aug 03 02:46:14 X = (int)y; Aug 03 02:46:15 see it? Aug 03 02:47:13 KNY you should have a button that does that from GV and let people know Aug 03 02:47:18 SinnerG: d'oh, that's embarassingly obvious when just looking at those 2 lines Aug 03 02:47:25 whaledawg, err, you can Aug 03 02:47:26 you need to idiot proof this stuff for the idiots ;) Aug 03 02:47:35 whaledawg, settings -> forwarding phones -> pick your phone -> turn it off ... Aug 03 02:48:20 yes psquid, thats what makes it hurt ;p Aug 03 02:48:27 is it possible to prevent the regular voicemail icon from showing if you have the tmobile voicemail app? Aug 03 02:49:32 <_yoyo> how to specify the right-bottom position for a view? such as layout_alignParentRight and layout_alignParentBottom Aug 03 02:49:35 can you call ppl through java AND send 'numbers' to it? Aug 03 02:49:57 SinnerG, you mean DTMF tones? Aug 03 02:50:17 yeah I guess Aug 03 02:50:19 like in menu's Aug 03 02:50:35 yes Aug 03 02:50:55 any info on that somewhere? :) Aug 03 02:50:58 just send the ACTION_CALL intent with the number and pauses and numbers Aug 03 02:51:00 d.android.com Aug 03 02:57:22 question: I can startActicityForResult and my onActivityResult will get called but how do I get data into the Intent it returns? **** ENDING LOGGING AT Mon Aug 03 02:59:57 2009