**** BEGIN LOGGING AT Tue Feb 19 02:59:56 2008 Feb 19 04:49:40 does the Android SDK include an emulator for running Android? Feb 19 04:51:55 slango: yes it does **** ENDING LOGGING AT Tue Feb 19 05:51:58 2008 **** BEGIN LOGGING AT Tue Feb 19 05:52:15 2008 Feb 19 06:03:26 when do we expect to see phones actually running android? Feb 19 06:03:56 and trust me, I get that it is purely speculative at this point Feb 19 06:04:02 I'm just very intrigued Feb 19 06:06:15 expected july 2008 Feb 19 06:06:59 muthu: where did you get that date? Feb 19 06:16:53 romainguy___: i know where Feb 19 06:17:04 and its not a pretty place Feb 19 06:17:04 duey: where? :) Feb 19 06:17:41 :) Feb 19 06:17:49 what are you talking about? Feb 19 06:17:53 lol Feb 19 06:17:59 nevermind Feb 19 06:25:40 where duey? Feb 19 06:26:07 romain: information from the blogosphere Feb 19 06:26:14 not from you guys though Feb 19 06:26:25 ah Feb 19 06:26:28 must be true then :) Feb 19 06:26:34 yup :) Feb 19 06:28:04 just read a nice article from paul graham Feb 19 06:28:26 bear with me now: Feb 19 06:28:34 simple solutions - 1 Feb 19 06:28:41 to overlooked problems - 2 Feb 19 06:28:48 that needs to be solved - 3 Feb 19 06:28:59 and deliver informally - 4 Feb 19 06:29:04 with crude version 1 Feb 19 06:29:10 then iterate rapidly - 6 Feb 19 06:29:22 there you have it Feb 19 06:29:46 with crude version 1 - this is the 5th step Feb 19 06:30:11 and paul cites reddit as an example Feb 19 06:48:41 i generated a file from a .aidl but then i removed the generated .java file and it wasnt recreasted Feb 19 06:49:01 even though the eclipse console says it has been regenerated Feb 19 06:56:03 hey romainguy Feb 19 06:56:05 quick question Feb 19 06:56:12 any idea why an .aidl to .java is not being regenerated? Feb 19 06:56:21 i'm using the ADT plugin on linux Feb 19 06:56:33 like i delted the IX.java and resave IX.aidl Feb 19 06:56:53 in the Console i see it says it's regenerating but it actually doesn't create the file Feb 19 06:57:14 if you make changes to the java file.. is it regenerating? Feb 19 06:57:20 nope Feb 19 06:57:34 when is it generating then? Feb 19 06:57:43 i dont know, when i first created the project Feb 19 06:57:46 now i have delete the .java Feb 19 06:57:51 and resave the .aidl and it doesnt create again Feb 19 06:58:08 can this be done through ant? Feb 19 06:59:18 ok i'm duing a rebuild (using clean) Feb 19 06:59:24 still nothing :( Feb 19 07:01:09 how can i rebuild it from the command-line ? Feb 19 07:03:03 oh what a piece of shit Feb 19 07:03:08 whoever wrote the aidl tool should be shot Feb 19 07:03:18 it doesn't accept /* */ comments Feb 19 07:03:34 i mean if you're gonna accept java keywords like interface and package Feb 19 07:03:38 wtf cant you accept comments Feb 19 07:03:42 it regenerates now Feb 19 07:04:32 hehe Feb 19 07:07:21 surprising comments are not allowed Feb 19 07:08:08 very, it has been noted and logged Feb 19 07:10:50 apparently // works Feb 19 07:11:02 woah Feb 19 07:11:18 someone got lazy parsing multi-line /* */ Feb 19 07:11:26 it's only a few lines more of code Feb 19 07:11:27 !! Feb 19 07:11:36 the got into the mobile thinking Feb 19 07:11:46 yeah lol Feb 19 07:11:59 may be binary commenting :) Feb 19 08:42:20 anyone have some sample code that plays a midi in android? Feb 19 08:42:32 my code that didn't work in the first place is crashing the emulator in m5 Feb 19 09:11:03 did the emulator exit or hangs? Feb 19 09:11:45 the app exits, looking at the log shows a linux style stacktrace Feb 19 14:04:02 chomchom: Just answering your mail, may take some moments... :) Feb 19 15:01:40 chomchom: You got mail Feb 19 15:19:19 is google that good as avinash says ? Feb 19 15:19:47 not says.. pure worship ;) Feb 19 15:53:33 how many awards will there be for this $10 Million? Feb 19 15:53:59 50 x $25k Feb 19 15:54:02 plus Feb 19 15:54:17 10 x $175, 10 x $275 or something Feb 19 15:54:23 k on each of those also Feb 19 15:54:45 but 50 winners total Feb 19 16:03:21 in round 1 right? Feb 19 16:06:23 yeah, and round 1 winners are eligable for round 2 judging Feb 19 16:38:59 I am all about that Feb 19 16:45:00 does android support a horizontal viewing mode yet? Feb 19 16:52:22 slango: HVGA-L? Feb 19 16:53:47 zhobbs, ? Feb 19 16:54:11 that is the landscape touchscreen emulator Feb 19 16:54:59 zhobbs, where do I get that? Feb 19 16:55:32 it's included in sdk, in eclipse Run -> Open Run dialog, then you can select skin under emulator tab Feb 19 16:56:48 emulator -skin HVGA-L Feb 19 16:57:12 muthu, yeah, I just figured that out for myself Feb 19 16:57:36 zhobbs, I haven't set up Eclipse to use the Android plugin yet Feb 19 16:57:39 but thanks Feb 19 16:58:47 emulator help gives all possible options Feb 19 16:59:05 muthu, yeah. I just wasn't considering that being a function of a skin Feb 19 16:59:14 true Feb 19 16:59:27 a bit confusing Feb 19 16:59:43 I'd love to see the default skin with an option to go to landscape mode Feb 19 17:00:28 yeah a toggle would be great Feb 19 17:01:45 also, I'd love to see the browser focus on an element the way the iPhone does Feb 19 17:01:48 that is brilliant Feb 19 17:04:26 that could be patented though Feb 19 17:05:23 patents suck... Feb 19 17:05:35 unless their yours Feb 19 17:05:47 they're* Feb 19 17:10:27 I bet someone is working on solitaire already, huh? Feb 19 17:26:45 probably 1 person, not more ;) Feb 19 18:42:29 is there any good way to reduce the time it takes to boot the emulator? Feb 19 18:42:39 maybe bypass the boot screens altogether? Feb 19 18:42:51 newegg.com + $$$ Feb 19 18:43:07 zhobbs, ? Feb 19 18:43:18 upgrade your computer :) Feb 19 18:43:29 slango: also, don't close the emulator Feb 19 18:43:38 you don't have to boot it if you don't close it Feb 19 18:44:13 zhobbs, eclipse will keep using the same instance? Feb 19 18:44:22 yep Feb 19 18:44:25 neato Feb 19 19:18:25 You can even close Eclipse, is will (in most cases :D ) reuse the still runnign emulator. Feb 19 19:18:53 yeah, sometimes it will bother you that it doesn't know the params for the emulator, but will still work Feb 19 19:20:13 since m5 LogCat became a really shy Cat, redeeming its service even more often... :( Feb 19 19:23:19 Anyone knows if the SDK will support resource-subfolders somewhen ? Feb 19 19:53:19 anybody seen any decent GTalk examples with the new API? Specifically using the IRosterListener? Feb 19 20:00:22 I wrote some Hecl code to send messages Feb 19 20:00:44 but I didn't use that... that gives you updates regarding your online buddies? Feb 19 20:01:02 emulator doesn't support HSDPA network Feb 19 20:01:08 if i select it in eclipse's run dialog Feb 19 20:01:10 it croaks Feb 19 20:01:11 fyo Feb 19 20:01:12 fyo Feb 19 20:01:14 *fyi Feb 19 20:05:12 davidw: yeah, i'm looking to replace code I had before that got the ROSTER_OR_PRESENCE_CHANGE intent that is no longer available Feb 19 20:05:58 in the M5 notes it suggests that you can use the IRosterListener but I'm struggling with how it should actually be configured so that I'm notified when roster/presence changes occur. Feb 19 20:06:54 not nearly as much fun figuring out this stuff the second time. Feb 19 20:12:16 yea Feb 19 20:12:17 agre Feb 19 20:12:31 intent makes more sense for a roseter change Feb 19 20:12:36 yet another interface Feb 19 20:12:44 and another lovely Stub.asInterface(..) -- which i love Feb 19 20:12:55 but it needs to stabilize fast Feb 19 20:13:23 I find the intents kind of clunky for fine-grained things Feb 19 20:13:30 but it is odd to have multiple ways of doing things Feb 19 20:13:46 definitely Feb 19 20:14:12 well, i guess this is why we're getting paid the big bucks.....oh wait.... Feb 19 20:14:39 heh Feb 19 20:25:35 hey plusminus Feb 19 20:25:47 you are stuck in irc now? Feb 19 20:25:58 hey plusminus, great site btw, enjoy some of the tutorials and comments :D Feb 19 20:26:10 :) thanks Feb 19 20:26:16 the meeting yesterday was interesting Feb 19 20:26:42 we were like 10 and noone really knew about android Feb 19 20:26:49 I been online here all day Feb 19 20:26:50 hehe Feb 19 20:26:52 but there were 3 guys from truphone Feb 19 20:27:31 one was the research director for truphone Feb 19 20:27:42 never heard from "truphone". @ browsing truphone.com..... Feb 19 20:27:49 so it is quite interesting to see the interest within companies Feb 19 20:27:55 I used it on my nokia Feb 19 20:27:58 Truphone routes your mobile calls via the internet. That means free mobile calls to other Truphone users & very cheap calls to anyone else. Feb 19 20:28:07 more or less Feb 19 20:28:11 sounds good Feb 19 20:28:31 afaik they want to invest into truphone Feb 19 20:28:44 nokia ? Feb 19 20:29:11 I have truphone on my nokia e65 Feb 19 20:29:25 into android I meant previously Feb 19 20:29:32 ok Feb 19 20:30:42 hows the andand (tomtom) going? Feb 19 20:31:41 a bit stuck, because of the problems with GeoCoding (have done on my own,but why further reinvent the wheel) and the Bundle.putExtras Problem Feb 19 20:32:23 my guess is that google wants to enable their local search on google map Feb 19 20:32:36 addind real addresses to loc/lat via user input Feb 19 20:32:58 that is what the GeoCoder should do, instead of returning null Feb 19 20:33:01 and maybe adding its business aim (restaurant shop etc...) Feb 19 20:33:20 well I guess they intend to build up their db via android Feb 19 20:33:31 so i decided to do the "Settings"-Stuff but funnily TabHost-Stuff dies not work when setting themes o_O Feb 19 20:33:31 I have not played with it yet Feb 19 20:33:46 good luck ^^ Feb 19 20:33:52 hehe Feb 19 20:34:10 is TabHost not depreciated? Feb 19 20:34:27 no more Feb 19 20:34:35 since m5 Feb 19 20:34:45 it works fine, except with themes... Feb 19 20:34:46 ok, does it still work with intent per tab Feb 19 20:35:01 ? Feb 19 20:35:16 well in previosu version you could add an intent to a tab Feb 19 20:35:32 dunno Feb 19 20:35:33 instead of creating the views for all child views of the tabhost Feb 19 20:35:37 not used that Feb 19 20:35:55 kind of view on 1 tab, edit second, etc... Feb 19 20:36:13 I ll have to look into it, I ve been quite busy with work Feb 19 20:36:32 ^^ me too, a lot of writing these days. Feb 19 20:37:23 I want to continue working on my navigation-app, but I hate doing silly workarounds =( Feb 19 20:38:08 yes me 2, it is like you know it will be fixed in the next version Feb 19 20:38:18 so should I waste time or should I wait Feb 19 20:38:31 exactly ^^ Feb 19 20:38:50 somehow I'm fearing all the UI-Adaptinds to touch/keyboard; landscape/portrait; QVGA/HVGA in the very end of the development process :( Feb 19 20:39:32 but that is future ^^ Feb 19 20:41:37 well I met a guy yesterday who was really interested in the UI and 3d type of UI Feb 19 20:41:55 so I am sure there is room for UI libs on top of the openGL or similar Feb 19 20:42:05 food is here, ttyl Feb 19 20:42:40 yes of course. But imo there should be a general look and feel.. Feb 19 20:43:16 :) what does one say here: "Eat well." ? Feb 19 20:48:45 plusminus, what might an android say? 'MAY YOUR NUTRIENT INTAKE BE SUCCESSFUL!' ? Feb 19 21:05:13 zhobbs: you there ? Feb 19 21:09:03 yay, lunar eclipse tomorrow Feb 19 21:09:18 i'll be there... Feb 19 21:21:17 davidw: obviously :) Feb 19 21:21:38 I'm no native English speaker.. Feb 19 21:23:05 I could have said "N' guden!" ^^ Feb 19 21:24:23 Aloha Feb 19 21:24:44 plusminus: are you ion im? Feb 19 21:24:56 jap Feb 19 21:25:10 but on telephone (girlfriend ;) ) Feb 19 21:25:43 * davidw is tired of the XMPP dude Feb 19 21:25:55 I mean are you on instant messaging! Feb 19 21:26:18 have you got msn messanger? Feb 19 21:31:30 or skype? Feb 19 21:32:13 looks like he's right here on irc Feb 19 21:41:28 hmm Feb 19 21:49:52 hehe, that's so cool Feb 19 21:50:08 one of our Internet connections just went down and the network just switched all its routing automatically :) Feb 19 21:50:35 i wrote a few scripts to do some magic with the routing table :) Feb 19 21:55:21 cool Feb 19 21:58:57 run bgp? :) Feb 19 22:06:20 hehe no Feb 19 22:06:38 it's more crude than that Feb 19 22:07:30 we just have shorewall in multi-provider mode with a little daemon script i wrote that performs network tests periodically and triggers shorewall rule changes if it finds something. Feb 19 22:08:27 dual WAN connections is sweet. i am seriously thinking about doing this at home by getting both Qwest and Comcast. Feb 19 22:09:02 you can take advantage of the concurrency in a couple of really great, practical ways. bittorrent, for example, can be made to utilize both circuits together. Feb 19 22:09:36 gaming would be nice too, since you could trigger a change to move all traffic to one circuit and get excellent latency for games. Feb 19 22:11:22 very true Feb 19 23:21:16 hi romainguy* Feb 19 23:21:24 hello Feb 19 23:21:29 err, oh. nevermind :) Feb 19 23:21:40 romainguy is still undercover? Feb 19 23:22:21 mike1o: always :) Feb 19 23:23:44 speaking of which... we should make an app for undercover agents Feb 19 23:25:36 yea but it shouldn't win Feb 19 23:25:41 voice/data encryption Feb 19 23:25:43 steganography Feb 19 23:25:43 etc. Feb 19 23:25:51 gov't would own you prior to check award Feb 19 23:26:19 voice encryption would be cool Feb 19 23:26:31 if we'd do it no one would know Feb 19 23:31:28 absolutely, but then they wouldn't be able to wiretap us :( Feb 19 23:32:00 voice encryption that is a brilliant idea Feb 19 23:32:18 I tryed to make an ASCII art camera Feb 19 23:32:40 but it took up a bit to much resource so I had to give and work on something a bit more useful Feb 19 23:33:00 oh nice Feb 19 23:33:03 voice recognition + text to speech = voice encryption that takes what you say and translate it to code that sounds like small talk Feb 19 23:33:03 did it have color and all? Feb 19 23:33:20 perfect zhobbs Feb 19 23:33:25 less traffic Feb 19 23:33:30 do it over sms or data even Feb 19 23:33:47 too bad no provider in the US supports gsm data calls Feb 19 23:34:37 well not really, I was trying to translate an image into the ascii and that already ate up all the resources. There is some code - from processing - that I tried to port Feb 19 23:36:07 I also check if it was possible to call C code Feb 19 23:36:19 there is some example out there but very basica Feb 19 23:36:20 basic Feb 19 23:39:24 ./quit Feb 19 23:42:26 lol Feb 20 00:09:24 quit is an executable Feb 20 00:18:23 bye Feb 20 00:18:33 nighty Feb 20 00:28:35 There has been a lot of people giving google grief about the SDK change, was speaking with a few developers today who were really annoyed, whats everyones thoughts on it? Feb 20 00:28:57 They believed that the SDK was in no finished state for a commercial release Feb 20 00:29:12 i filed a bug yesterday, even the tools are not mature yet Feb 20 00:29:16 I don't agree mind you, they chose to take the hit of early adoption Feb 20 00:29:18 not to talk about the APIs themselves Feb 20 00:29:30 i think they should be more upfront about its instability and volatility Feb 20 00:29:55 I think its worth the trade off, but I would really really like to see even a short term road map Feb 20 00:30:09 i would like to see a UI style guide. Feb 20 00:30:35 Yeah that would be good, what do you mean by a style guide? Feb 20 00:31:54 Because they haven't decided on the UI elements yet, so what would they guide? Feb 20 00:32:36 recommended minimum font sizes, layout styles, etc. This latest SDK seems to be trying to enforce some styles (e.g. big huge buttons/text) but I'm worried that I'm going to spend time to accomodate the layout and then just have it change again Feb 20 00:32:58 Me too Feb 20 00:33:02 my annoyance is having to continually redo existing code Feb 20 00:33:14 continually = more than once :-P Feb 20 00:34:52 Yeah moving ahead, companies are not going to like taking constant hits in development without some sort of forewarning. If there was a place where it said 'expected changes to the next release' then we could prepare a little ahead of time Feb 20 00:35:49 Agreed. FWIW, I have no problem with Google doing whatever they want to do; it is their platform after all. However, I have to look at working on this versus porting to a more stable platform (e.g. iphone/blackberry) and determining which is really worth my time. Feb 20 00:36:39 not knowing what's on the roadmap however, does make it difficult to know which areas to stay away from. Feb 20 00:38:58 well so far skicson only once right Feb 20 00:39:01 one change :D Feb 20 00:39:39 skicson: did you find that it was difficult to update your code from m3 to m5? Feb 20 00:39:52 jasta: very much so. I'm still not there. Feb 20 00:40:01 what are you struggling with? Feb 20 00:40:12 you must have a lot of code! Feb 20 00:41:00 $classcount = ? Feb 20 00:41:06 even if you have a lot, many of the changes are pretty easy to search/replace. i didn't find any of the changes required any great concentration on my part to support. Feb 20 00:41:14 jasta: working today on fixing xmpp Feb 20 00:41:26 trust me, I can do search/replace. Feb 20 00:41:38 xmpp is piece of cake Feb 20 00:41:42 but roster listener Feb 20 00:41:43 intent Feb 20 00:41:45 has gone away Feb 20 00:42:25 skicson: It just seems like you're overreacting a bit. Feb 20 00:42:38 classcount is roughly about 100 classes. Feb 20 00:42:50 too much Feb 20 00:43:06 thats a sweeping judgement f00f! Feb 20 00:43:17 he might have built word! Feb 20 00:43:20 jasta: I would agree with you if my code had been easier to port. Feb 20 00:43:23 :-) Feb 20 00:43:41 rofl Feb 20 00:43:44 I didn't build Word but it does do a lot of things. Feb 20 00:43:51 okay, let me back down until i reach that many :D Feb 20 00:44:21 How many classes is everyone else standing at? Feb 20 00:45:32 My ADC project is about 6700 lines of code currently, with about half of that written in C. Feb 20 00:45:34 24 for one app here Feb 20 00:45:42 I'm actually at 52 including interfaces and two providers Feb 20 00:46:12 is that your server side that is in C yeah? Feb 20 00:46:16 yeah Feb 20 00:46:24 hardcore Feb 20 00:46:46 the server is complete, actually. it performs all of its necessary functions and is in the state i had wanted for the first round submission. Feb 20 00:47:20 i have about 25 here, goal will be to keep it below 30-40 Feb 20 00:47:22 so is the client that implements it. but there is a sophisticated music player component of my project that has hardly even been started yet. Feb 20 00:48:05 I'm starting to worry about getting my server up and running in time. Might just drop the functionality completely. Want to do a grails deploymen tas it looks pretty good and I'm a java developer but I like what ruby on rails gives you out the box Feb 20 00:51:16 just pre-cache all the server-side data on your phone Feb 20 00:52:41 Yeah it may come to that, but I was hoping to capture some of the charm of the full experience. I'm all about the charm :) Feb 20 00:53:33 yeah charm is always good :) Feb 20 00:53:39 i'll probably have a failover Feb 20 00:53:43 if it can't get to the HTTP server Feb 20 00:53:49 just say fsck it use local stuff Feb 20 00:54:32 Looking forward to tomorrow night. Again, if anyone is in Glasgow ,Scotalnd Feb 20 00:54:43 what's going down tomorrow? Feb 20 00:54:55 there will be a meeting at the Goat http://webdesign.meetup.com/133 Feb 20 00:55:52 oh okay Feb 20 00:56:01 doesn't sound too interesting Feb 20 00:56:12 ! nice Feb 20 00:56:22 yeah, but it'd be cool just to be in Scotland :-D Feb 20 00:56:32 Its the best meeting of its kind in Britain I bet Feb 20 00:57:22 Its web centric, not about really about web design. Its about all software development and IT that goes on within the 'cloud' of the web Feb 20 00:57:29 definitely Feb 20 00:57:38 oh ok chomchom Feb 20 00:57:44 i was hoping for something mobile related :D Feb 20 00:58:37 Its also marketed as a game development and mobile development meeting Feb 20 01:00:12 GDC is in SF this weekend Feb 20 01:00:16 cool Feb 20 01:00:30 very cool, are you going? Feb 20 01:01:04 I take it you mean the game developers conference? Feb 20 01:01:55 I went four years ago when it was held in London's big exhibition hall Feb 20 01:02:09 chomchom: i have a friend who's going, but i'm not much into games ;/ Feb 20 01:02:09 t was on at the same time as another few game conference thingies Feb 20 01:02:16 ah ok Feb 20 01:02:35 It was so fun for a few years, but then it got serious Feb 20 01:02:46 like all commercialized? Feb 20 01:02:54 I live two blocks from the GDC /o\ Feb 20 01:02:57 no, more businessy Feb 20 01:03:12 its a good thing I suppose but I had good times Feb 20 01:04:35 At the time I had a business that sold video games merchandise, we just kicked about and played games and got drunk with the developers and testers. Fun while making good contacts. Feb 20 01:04:58 yeah that's a worthwhile conference in my mind Feb 20 01:05:52 definitely, they charge a pretty penny to ensure the quality now. Feb 20 01:05:54 I wouldn't mind getting drunk with the developers eheh Feb 20 01:06:21 hey btw I can't load my app's png icon Feb 20 01:08:04 I won a skateboard from the Tony hawk competition, later on in the night one of the sony testers did a trick of a bench outside the pub, smashed the board in two and busted his leg. I crippled myself laughing Feb 20 01:08:53 rofl Feb 20 01:08:56 good times Feb 20 01:10:23 well, back in the day.... Feb 20 01:10:51 sweet... here come the war stories Feb 20 01:10:53 i remember HP creating a "Information Superhighway" at one of the first JavaOne conferences Feb 20 01:10:55 :-D Feb 20 01:11:49 oh REALLY Feb 20 01:12:10 what did it look like? :) Feb 20 01:12:20 yah. ridiculous. big. Feb 20 01:13:09 doomed to never catch on. Feb 20 01:13:29 then last year i was at a salesforce.com show where all sales people in the booth were all dressed up in john travolta white suits. they had a disco ball and everything. Feb 20 01:13:48 hah, another booth had fred flintstone. Feb 20 01:14:56 marketing is fun! Feb 20 01:15:15 yeah, it always involves so many girls in game development Feb 20 01:15:30 they know its the only time of year gamers see them. Feb 20 01:22:30 I've got an error that I don't really understand Feb 20 01:22:42 I'm using the Trackbuilder demo as a base Feb 20 01:23:06 yes chomchom Feb 20 01:23:10 and I'm trying to manuipulate the UI to redraw and ploy a point every 5 secs Feb 20 01:23:11 agree about the girls Feb 20 01:23:19 I'm using the new UIThreadUtilities Feb 20 01:23:30 and making a Thread as a paramater to it Feb 20 01:23:40 ERROR/AndroidRuntime(612): Uncaught handler: thread Main exiting due to uncaught exception Feb 20 01:23:40 ERROR/AndroidRuntime(612): java.lang.RuntimeException: Unable to start activity ComponentInfo{net.mobilefight.trackbuilder/net.mobilefight.trackbuilder.TrackBuilder}: java.lang.IllegalArgumentException: View android.policy.PhoneWindow$DecorView@400bf158 must be attached to a window Feb 20 01:23:40 ERROR/AndroidRuntime(612): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1758) Feb 20 01:24:58 UIThreadUtilities.runOnUIThread(this, new Thread() { Feb 20 01:24:58 int lat = 55846809; Feb 20 01:24:58 int longi = -4229920; Feb 20 01:24:58 public void run() { Feb 20 01:24:59 while (true) { Feb 20 01:24:59 Feb 20 01:25:01 Point tullisStreet = new Point(lat, longi); // 37.423157,-122.085008 Feb 20 01:25:03 TrackBuilder.this.myMapController.centerMapTo(tullisStreet, true); Feb 20 01:25:05 setPoint(); Feb 20 01:25:07 Feb 20 01:25:09 try { Feb 20 01:25:11 Thread.sleep(5000); Feb 20 01:25:13 } Feb 20 01:25:15 catch (InterruptedException e) { Feb 20 01:25:17 // do nothing Feb 20 01:25:19 } Feb 20 01:25:21 TrackBuilder.this.myMapView.invalidate(); Feb 20 01:25:23 lat = lat - 100; Feb 20 01:25:25 longi = longi - 200; Feb 20 01:25:26 trackbuilder aint compatible with M5 .... Feb 20 01:25:26 trackbuilder aint compatible with M5 .... Feb 20 01:25:27 trackbuilder aint compatible with M5 .... Feb 20 01:25:27 Feb 20 01:25:29 } Feb 20 01:25:31 } Feb 20 01:25:33 }); Feb 20 01:25:35 sorry, I should have used pastebin Feb 20 01:25:44 I've upgraded it Feb 20 01:25:50 ah Feb 20 01:25:55 it works fine now Feb 20 01:27:36 is anyone here using registerReceiver() successfully? I can't get it to fire off... Feb 20 01:28:03 yea pass an intentfilter and an intentreceiver Feb 20 01:28:04 to it Feb 20 01:28:04 chomchom: why are you passing a Thread to UIThreadUtilities?! Feb 20 01:28:05 There we go: http://pastebin.com/m344f11a7 Feb 20 01:28:39 Do I have to make a class that implements runnable then? Feb 20 01:29:02 nah Feb 20 01:29:07 just make a new Runnable() { } Feb 20 01:29:19 and a while true on the UI thread is a VERY VERY BAD IDEA Feb 20 01:29:31 just a class that implements IntentReceiver and does onReceiveIntent Feb 20 01:29:32 yeah obviously :) Feb 20 01:29:39 but that's not why it fails Feb 20 01:29:41 its just a quickie :) Feb 20 01:30:05 for this code to work you need to call it on a View that was added to a window Feb 20 01:30:07 No thats not fixed it, still the same stack trace Feb 20 01:30:14 i.e. you can do that only after onCreate() Feb 20 01:30:30 ah right, so I'll call it on the overlay Feb 20 01:30:57 are you calling that from a background thread? Feb 20 01:31:16 currently no Feb 20 01:31:23 then don't do this :) Feb 20 01:31:50 f00f-: yeah, that's what I'm doing...trying to register in onResume() and unregister in onPause() Feb 20 01:32:09 zhobbs: what's the problem? Feb 20 01:32:47 it's not working :) Not sure why, my IntentReceiver is an inner class of the running activity Feb 20 01:32:57 romainguy: If I call it from a background thread would that be ok? In the final implementation I'll be sure to make it thread safe. Feb 20 01:33:13 that's its purpose Feb 20 01:33:23 but the View you pass must be attached to its window Feb 20 01:33:26 i.e. be on screen Feb 20 01:33:56 romainguy: any advantage to using UIThreadUtilities over handlers? Feb 20 01:34:01 zhobbs: make sure your filter is correct, what can i say Feb 20 01:34:10 zhobbs: just avoids creating a Handler :) Feb 20 01:34:21 basically runOnUiThread() does this: Feb 20 01:34:36 if (isUiThread()) myRunnable.run() else view.post(myRunnable) Feb 20 01:35:08 note that UIThreadUilities is now called UiThreadUtilities and moved to a different package and two of its methods are now in View, so using will break in the next SDK :)) Feb 20 01:37:31 I still get the same error, does it matter that there is an extended overlay attached to the view's controller? Feb 20 01:40:07 It now looks like this: http://pastebin.com/m53c8069b Feb 20 01:41:20 where are you calling it from? Feb 20 01:41:22 and when? Feb 20 01:43:19 Sorry, you mentioned I needed to run it after the onCreate() .Thtas me rid of the error Feb 20 01:43:23 thx Feb 20 01:44:07 ^^ Feb 20 01:44:21 * romainguy wonders if he should remove that class Feb 20 01:53:19 hmmm, sorry Ierror is back, I am running it onStart(), is there a better place? Feb 20 01:53:46 chomchom: yes, from a worker thread Feb 20 01:53:53 onCreate() and onStart() are running on the UI thread Feb 20 01:54:00 so what you're doing is meaningless :) Feb 20 01:54:16 :) ok Feb 20 01:57:09 I normally don't curse a lot in my comments...but I feel it coming Feb 20 01:57:39 zhobbs: why? Feb 20 01:58:23 just sick and can't get this intentreceiver to work :) Feb 20 01:58:25 my R.java files got deleted somehow? how can I regenerate it? eclipse keeps giving me errors of "R.java can't be read" Feb 20 01:59:30 "The project was not built since R.java could not be read" I thought R.java was automatically generated? Feb 20 02:00:04 jtoy: just touch your main.xml or something Feb 20 02:00:15 last year I worked with a guy that was the only native english speaking member of a team of french, he was actually given the project to do himself, he ran all the comments through translators and could only find obscenities. Which is funny because he sat quietly for maybe three hours and then would just break down in a fit of angered swearing because it made no sense what so ever. Feb 20 02:00:45 chomchom: French never swear! Feb 20 02:02:28 that noam.habot is funny in android-developers Feb 20 02:02:48 ah, the 12 years old? Feb 20 02:02:51 yeah Feb 20 02:02:57 he's trying at least Feb 20 02:03:07 yeah man, what a super star Feb 20 02:03:12 you have to learn somehow :) Feb 20 02:03:22 yeah, I email back and forth trying to help...just gets too time consuming Feb 20 02:03:41 get him in here, it can be a team effort Feb 20 02:03:49 hehe Feb 20 02:05:04 hmm, touching main.xml doesn't fix the R.java error Feb 20 02:05:46 project clean, rebuild project, open/close project Feb 20 02:05:56 eclipse can be funny sometimes Feb 20 02:07:14 does anyone have a problem with eclipse refusing to cut and paste at times? Feb 20 02:07:43 are you using 3.3? Feb 20 02:07:57 nickfox: YES! Feb 20 02:08:12 * romainguy is glad he's not using Eclipse anymore :) Feb 20 02:08:21 drives me crazy...just every once in a while only half will copy, or none, etc Feb 20 02:09:08 yes, i'm using 3.3.1.1 Feb 20 02:09:14 The most annoying bug for me is on the mac when you open the context menus and then use the dpad to select a task, the context switches to the background so you have to use the mouse! Feb 20 02:09:41 romainguy: are you using intelliJ? Feb 20 02:09:47 chomchom: IntelliJ and NetBeans Feb 20 02:09:56 i can't deal with it, eclispe just is not as stable/user friendly as netbeans 6 Feb 20 02:10:31 how's android with intellij Feb 20 02:10:53 Kraln: there's no plugin Feb 20 02:11:08 but I work on the UI framework anyway, so I couldn't use the plugin if there was one Feb 20 02:11:25 (for all of you complaining about the emulator being slow to boot, I have to reboot it every time I make a change ;-) Feb 20 02:13:27 dang Feb 20 02:13:32 that would suck! Feb 20 02:13:44 but i can't even get my emulator to work Feb 20 02:13:50 i think i need to reinstall everything Feb 20 02:14:08 just get the red line of death Feb 20 02:19:41 duey: have you tried to remove your .android/ ? Feb 20 02:24:22 if I mv a file from the command line , what else do I need to do in ecplise? eclipse keeps referencing old filename even after cleaning and restarting ecplise Feb 20 02:27:18 you need to refresh the workspace Feb 20 02:29:58 how do you go about refreshing? Feb 20 02:30:10 F5? Feb 20 02:30:15 right click/refresh? Feb 20 02:30:18 I don't remember Feb 20 02:30:55 ah, I see thanks Feb 20 02:48:41 what, my tag bug got declined. Feb 20 02:48:44 * jasta throws his arms up again Feb 20 02:49:33 hehe **** ENDING LOGGING AT Wed Feb 20 02:59:57 2008