**** BEGIN LOGGING AT Mon Mar 03 10:59:56 2008 Mar 03 11:00:03 it says that there is no activity name defined in androidmanifest.xml Mar 03 11:00:17 they are probably still m3 examples Mar 03 11:00:21 not updated to m5 Mar 03 11:00:44 so replace everything attribute it shows an error on with: Mar 03 11:00:49 android:name Mar 03 11:01:09 should i edit androidmanifest.xml manually or wait until they get updated? Mar 03 11:01:14 or right click on Project Android Tools->Fix Proj Properties Mar 03 11:01:46 Smoke_Screen: that works for the MAnifets too ? Mar 03 11:02:27 had a problem with project looking in wrong location for lib file Mar 03 11:02:50 thought he might be having a similar prob Mar 03 11:03:15 hm yes could also eb a part of the problem. Mar 03 11:04:08 Problem: I'm posting a message to a Handler with Delay like 5 seconds. Within these 5 seconds the Activity gets closed. Mar 03 11:04:18 plusminus: Cool we site y the way. will be registering Mar 03 11:04:18 So when the RUnnable gets executed I get an Exception like "Is your Activity still running?". Mar 03 11:05:28 :) funny that so much people know my name :D Mar 03 11:06:30 plusminus: Moderators are the Gods of the internet Mar 03 11:06:34 :) Mar 03 11:06:40 hehe Mar 03 11:06:51 should submit that to Jinx.com Mar 03 11:07:04 yes, would be fine :) Mar 03 11:07:17 © Smoke Screen 2008 Mar 03 11:07:35 ... what is the best way to kick that delayed Message out of the Handler? Mar 03 11:07:44 myHandler.removeCallbacks(myRunnable) ?? Mar 03 11:08:30 plusminus, have you used geonames.org? Mar 03 11:09:04 for what purpose? Mar 03 11:10:01 lat+long to real address Mar 03 11:10:03 hm their lookup seems really good and fast :) They got a XML-APi ? Mar 03 11:10:26 it looks interesting Mar 03 11:10:26 also address to lat/lng. what is more in my needs Mar 03 11:10:35 yes Mar 03 11:11:57 you can download their server with DB Mar 03 11:12:02 ha Mar 03 11:12:22 hm ^^ how big is the file ? Mar 03 11:12:48 you can choose by country Mar 03 11:13:04 looks quite neat Mar 03 11:13:23 I might try to port their java api to android Mar 03 11:13:29 3.5 MB for Germany only... Mar 03 11:13:53 and it is only Citynames not Streets Mar 03 11:14:20 17 Megs Unzipped ^^ Mar 03 11:14:42 it crashes NotePad, wohoo Mar 03 11:14:47 ha Mar 03 11:14:59 it usually does Mar 03 11:15:57 i know its not the right channel but do you mind troubleshooting my eclipse (i won't start up) Mar 03 11:16:13 i get the following error http://rafb.net/p/jA8Jd668.html Mar 03 11:16:25 you won't start up? have you tried coffee or the? Mar 03 11:16:41 red bull is good as well Mar 03 11:16:41 :D Mar 03 11:16:48 yeah, i'll try coffee Mar 03 11:17:03 I had a while ago Mar 03 11:17:15 you know, i'm always so tired in the morning Mar 03 11:17:33 I work in the mornings and night Mar 03 11:17:36 not in between Mar 03 11:17:37 romainguy: still there ? Mar 03 11:17:43 are you under ubuntu? Mar 03 11:17:54 no, arch linux Mar 03 11:18:11 I ve seen this error before, I think it is because you have installed another version of the JDK and system vs eclipse jdk seems to conflict Mar 03 11:18:23 or something of that sort Mar 03 11:18:54 hmm, that is the disadvantage of running a cutting edge distro Mar 03 11:19:29 check that your env is set correctly between the user, eclipse and system Mar 03 11:20:10 where is that configured? Mar 03 11:20:54 which java should give you your user's Mar 03 11:20:58 .bash Mar 03 11:21:45 and for eclipse I beleive it is in its installation directory, /usr/bin/eclipse Mar 03 11:22:29 I want a source control system, where I can input the music I listen to while programming Mar 03 11:22:51 I notice a lot of difference in my concentration Mar 03 11:24:04 like XP with wagner and design with a bit of jazz; and if I am getting close to a timeline I would use aphex twin or something Mar 03 11:39:22 I'm just reading of the new Intel "Atom" CPU with 1,8GHz and just 0,6-2,5 Watts TDP :) That would lead to a kind of powerful device Mar 03 11:46:37 do you know what protected DataRequestDispatcher getDispatcher() is used for? Mar 03 11:46:44 in MapActivity Mar 03 11:47:27 you can use it to query for DrivingDirections Mar 03 11:47:40 this.myDD = new DrivingDirection(from_pos, from_name, to_pos, to_name); Mar 03 11:47:44 this.getDispatcher().addDataRequest(this.myDD); Mar 03 11:48:45 is there any docs on it? Mar 03 11:48:59 don't think so Mar 03 11:49:07 so it would be to add the DrivingDirection to the map Mar 03 11:49:22 :) http://code.google.com/search/#p=android&q=DrivingDirection Mar 03 11:49:46 no it would just query for them. You'll have to overlay it yourself Mar 03 11:50:49 see: http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t826.html Mar 03 11:51:28 how did you even figure this one out :)? Mar 03 12:08:43 found some half working lines in the google-groups Mar 03 12:21:15 I can get rid of it :( : java.lang.RuntimeException: Error receiving broadcast null in org....IGPSMapActivity$MyLocationChangedIntentReceiver Mar 03 13:59:17 okay, I got my eclipse working again but I still have the same error with the tutorial execise files: No activity name defined in /home/lenni/NotepadCodeLab/Notepadv1/AndroidManifest.xml. Mar 03 14:36:38 i had a problem with the exercise folder from the tutorial but i fixed it by editing the AndroidManifest.xml Mar 03 14:36:54 i changed name:android to class. Mar 03 14:37:02 Does anybody know why Mar 03 15:16:42 i'm just going through the android tutorial #1 and after I entered the contents into the notepad_list.xml file it says that Mar 03 15:16:43 No resource identifier found for attribute 'id' in package 'android' Notepadv1/res/layout notepad_list.xml Mar 03 15:17:01 and the resources aren't added to R.java Mar 03 15:21:51 lenni_-_: in layout files you use android:id instead of just id now Mar 03 15:22:14 is that tutorial out of date? Mar 03 15:22:19 Not sure Mar 03 15:22:56 this is the line I copied into the xml file; > Mar 03 15:23:08 that looks ok Mar 03 15:23:20 missing a "/" Mar 03 15:23:35 where Mar 03 15:23:38 ? Mar 03 15:23:45 Mar 03 15:24:22 it doesn't end there; the xml tag goes on for a few more lines Mar 03 15:24:25 looks like the tutorial is up to date Mar 03 15:24:26 ahh ok Mar 03 15:24:44 just looked at the tutorial and it looks like it should be good to go for M5 Mar 03 15:25:38 my version number is rc37a-2 Mar 03 15:25:52 is that out of date? Mar 03 15:26:05 lenni_-_: yep Mar 03 15:26:08 need to upgrade Mar 03 15:26:16 cool, i'll do that now Mar 03 15:26:33 http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html Mar 03 15:26:39 there is a link to instructions on there Mar 03 16:03:51 http://phandroid.com/t-mobile-stabbing-google-in-the-back Mar 03 16:08:44 lets ban T-mobile Mar 03 16:09:06 I hope the first android phone gets unlocked fast Mar 03 16:09:08 or lets make our own provider Mar 03 16:09:17 cause I don't want to switch providers Mar 03 16:09:34 how does locking work? Mar 03 16:09:44 is it on the provider side? Mar 03 16:09:55 it's on the phone, but don't know anything about it Mar 03 16:10:23 well I am pretty sure you ll quickly see some hacks to go around it Mar 03 16:10:35 especially if the OS is open Mar 03 16:10:43 yeah, hopefully so Mar 03 16:10:50 it's on the phone, and is completely arbitrary. the phone has just been pre-programmed to only accept a particular network ID. Mar 03 16:11:12 if you insert a SIM card with a different network ID, it just arbitrarily refuses to work Mar 03 16:11:33 the unlock sequence is a sort of hack to avoid the permanence of this brain-dead technical approach. Mar 03 16:11:37 [17:08:58] or lets make our own provider < Do you have some money ? :) Mar 03 16:11:44 is there a boolean checkNID() in the docs? Mar 03 16:11:48 :) Mar 03 16:12:24 if Android phones are difficult to unlock, then we have a bigger problem. That means they are also difficult to hack, install 3rd party software, etc ;) Mar 03 16:12:47 unlock ? Mar 03 16:13:14 lock to a sim card Mar 03 16:13:15 That would tend to suggest that Android is not as open as we all thought, specifically this portion of the phone would need to be entirely closed source. Mar 03 16:13:20 Otherwise, you couldn't protect the unlock codes. Mar 03 16:13:39 I suppose so Mar 03 16:13:40 parts will be closed source i bet Mar 03 16:13:46 but why would you want to unlock it ? Mar 03 16:13:53 Aw man... is there any known problem with the mock-location-provider being fed from KML ? Mar 03 16:13:54 that would be up to the phone manufacturer Mar 03 16:13:58 just to switch provider ? Mar 03 16:14:03 yes Mar 03 16:14:11 edcba: Yes, to use a provider other than the one "owning" the phone. Mar 03 16:14:39 My guess, though, is that the OHA is going to pressure manufacturers to not even bother with locked phones. Mar 03 16:14:49 it is required by law here that provider provides you unlock codes when you fully bought the phone anyway Mar 03 16:14:55 The consumer trade-off will be that the phones don't come with a carrier subsidy Mar 03 16:14:56 plusminus: I've noticed problems with really large kml location files Mar 03 16:15:09 its plain silly to tie a phone to a provider Mar 03 16:15:15 edcba: where you at? Mar 03 16:15:20 here it's plain illegal :) Mar 03 16:15:26 muthu: Well, not so fast. Most people don't even know the "real" price of their phone. Mar 03 16:15:27 france Mar 03 16:15:46 here you can't tie hardware to a service Mar 03 16:15:51 hmmm.. i would rather buy it Mar 03 16:15:54 plusminus: really large kml files take a reallllly long time to process when you first launch the emulator Mar 03 16:16:04 plusminus: you can see it processing it in logcat Mar 03 16:16:05 ha the french. when is free getting into the mobile world? Mar 03 16:16:14 soon i hope :) Mar 03 16:16:30 but sill no news about 3G deal Mar 03 16:16:52 like 10 quid unlimited download on a 8Mb band? Mar 03 16:18:53 damn, my nick got owned... Mar 03 16:19:14 plusminus__: Freenode lets you register your nick and kill anyone who uses it Mar 03 16:19:40 plusminus is available Mar 03 16:19:47 hm... Mar 03 16:19:52 I should register it.. Mar 03 16:19:57 anyway Mar 03 16:20:03 I said I was requesting Updates to the Locationmanager with: this.myLocationManager.requestUpdates( Mar 03 16:20:31 but compared to a "hardcoded" gps-query the data is updated for 1 minute. It laggs behind o_O Mar 03 16:20:55 hardcoded means: "this.myLocation = myLocationManager.getCurrentLocation("gps");" Mar 03 16:21:36 thats leads to somewhat crazy behaviour ^^ Mar 03 16:25:13 the whole problem occurs just when I closed my app once before... Mar 03 16:25:46 So it feels like the LocationManager sends out position-updates that do not get fetched and pile up until I start my app again.. Mar 03 16:34:44 can you unregister for updates? Mar 03 16:34:55 probably need to unregister for updates in onPause Mar 03 16:37:40 so atom to power android, nice. Mar 03 16:39:41 * jasta may post his list widget to anddev.org as a tutorial Mar 03 16:39:51 that site seems to be extremely popular ;) Mar 03 16:41:38 andev.org rules Mar 03 16:41:52 i like the name Mar 03 16:46:09 just woken up? Mar 03 16:47:16 i bet romain rolls into work around 11 most day s;) Mar 03 16:47:27 jasta: I used to Mar 03 16:47:36 but my girl friend makes me wake up early :p Mar 03 16:47:54 hehe, mine too. but then i just go back to sleep ;P Mar 03 16:48:55 jasta: I still do that on the weekend :) Mar 03 16:51:01 i should go to work though. i've got a meeting at 10:30am. Mar 03 16:52:44 jasta: "jasta: that site seems to be extremely popular" :D Mar 03 16:52:59 i'm not sure i personally agree, but it is ;) Mar 03 16:53:13 :P Mar 03 16:53:52 zhobbs: Yes I'm calling unregisterReceiver in onFreeze, onStop and onDestroy Mar 03 16:54:06 also calling this.myLocationManager.removeUpdates(myLocationChangedIntent); in each Mar 03 16:54:15 ans setting the receiver to null. Mar 03 16:54:30 Ill put it to onPause() also... Mar 03 16:55:18 yeah, onPause() is when the activity loses focus, so that's the big one Mar 03 16:56:00 actually...onFreeze() should be called anytime onPause is called... Mar 03 16:56:16 which is kinda weird... Mar 03 16:57:05 ^^ yes thats weird.. onFreeze seems to exist to make us able to save data to the Bundle Mar 03 16:57:54 I have a cursor that has been finalized without asking my permission :) Mar 03 16:58:17 :D Mar 03 16:59:12 zhobbs: no improvement :( Mar 03 16:59:40 Error receiving broadcast null in ...MyActivity$MyLocationChangedIntentReceiver Mar 03 16:59:51 maybe because its an anonymous class ?? Mar 03 17:00:55 * plusminus__ frustrated Mar 03 17:01:59 * plusminus__ is very frustrated :( Mar 03 17:02:55 I'm pretty sure it is related to this Warning: Mar 03 17:03:00 WARN/ActivityManager(5973): Failure sending broadcast Intent { action=org.andnav.intent.LOCATION_CHANGED extras=Bundle[{location=Location[m...=null]}] } Mar 03 17:03:16 WARN/ActivityManager(5973): android.os.DeadObjectException Mar 03 17:03:18 that appears like 100x times Mar 03 17:03:45 plusminus: might be an android bug Mar 03 17:03:57 a bug in android? Mar 03 17:04:02 I don't believe you! Mar 03 17:04:04 :p Mar 03 17:04:04 impossible ;) Mar 03 17:05:16 romainguy: any idea ? May this be related to the fact that I'm using an anonymous Object? Mar 03 17:05:44 hm actually it is a private class.. but anyway o_O Mar 03 17:05:56 (non static) Mar 03 17:05:56 plusminus__: you could try to make it public static and see if that wrk Mar 03 17:05:59 works Mar 03 17:06:04 your listener is private? Mar 03 17:06:17 the receiver should be public Mar 03 17:06:19 but I know next to nothing about intents and receivers Mar 03 17:06:20 I think Mar 03 17:06:29 public abstract class IGPSMapActivity extends MapActivity{ Mar 03 17:06:33 ... Mar 03 17:06:34 class MyLocationChangedIntentReceiver extends IntentReceiver { Mar 03 17:06:58 its not "offered" in the MAnifest Mar 03 17:07:13 just in onResume: this.registerReceiver(this.myLocationChangedIntentReceiver, this.myIntentFilter); Mar 03 17:07:31 then you have to create an instance of that class right? ie, public MyLocationChangeIntentReceiver receiver = new MyLocation.. Mar 03 17:07:32 and in all "onXYZ" this.unregisterReceiver(this.myLocationChangedIntentReceiver); Mar 03 17:07:51 hmm Mar 03 17:07:51 yes in onResume(): this.myLocationChangedIntentReceiver = new MyLocationChangedIntentReceiver(); Mar 03 17:08:07 in Home I used private inner classes as intent receivers Mar 03 17:08:45 "onXYZ" = onFreeze / onPause / onStop / onDestroy :rolleyes: Mar 03 17:08:58 I feel like it is not my fault ^^ Mar 03 17:10:27 maybe I'll have a genious thought while eating... Mar 03 17:23:17 romainguy_: what would you improve about my alphabet widget btw? Mar 03 17:23:41 jasta: support drag Mar 03 17:23:48 in the bar? Mar 03 17:23:53 yes Mar 03 17:23:55 yeah, needs drag Mar 03 17:24:00 how the hell? does the iphone do this? Mar 03 17:24:02 so that you can jump from letter to letter quickly Mar 03 17:24:06 and needs to magnify or show which letter selected Mar 03 17:24:08 hmm let me check Mar 03 17:24:31 zhobbs: i thought about making it bold the letter that you are currently nearest to in the list view Mar 03 17:24:35 yeah iphone handles the drag Mar 03 17:24:41 son of a... Mar 03 17:25:07 drag is easy to handle Mar 03 17:25:13 the drag seems really hard to do right. you'd have to compute the number of rows in each section and map a virtual progress across the letter to support that Mar 03 17:25:40 because you wouldn't want it only to only start dragging once it crosses the boundary of a letter, you'd want it to react to each motion Mar 03 17:25:59 and then who knows how to handle empty letters Mar 03 17:26:03 how do you handle click currently? with onTouchEvent, or some kind of onClickEvent ? Mar 03 17:26:05 jasta: uh? Mar 03 17:26:14 zhobbs: just an onclicklistener Mar 03 17:26:23 for each letter? Mar 03 17:26:26 yeah Mar 03 17:26:30 gotcha Mar 03 17:26:31 jasta: I'm just saying you should do a selection change by listening to the MOVE touch events and not just clicks Mar 03 17:26:33 though i control the entire widget Mar 03 17:26:44 you'd have to handle onTouchEvent for the entire view Mar 03 17:26:49 I don't see how different it is from just reguar taps Mar 03 17:26:50 romainguy_: Right, but you'd have to know where to select based on the number of rows in each section Mar 03 17:27:04 jasta: it's just like clicking one letter Mar 03 17:27:17 so for example if the user taps E and moves to F, it would need to scroll with the same granularity that the touch screen supports Mar 03 17:27:28 no that's not what I'm saying Mar 03 17:27:44 otherwise it'll just jerk all over the place? Mar 03 17:27:45 I'm saying if user taps E and moves to F, selection should just jump to F Mar 03 17:27:57 that would look weird don't you think? Mar 03 17:28:11 that's how iPhone behaves and it works quite nicely actually Mar 03 17:28:20 the list view would seem to just jerk sudden even though the user is scrolling smoothly Mar 03 17:28:26 does the iPhone have that fling animation i wanted? :) Mar 03 17:28:39 when you jump to a letter? Mar 03 17:28:39 no Mar 03 17:28:44 really? Mar 03 17:28:51 that's not that surprising Mar 03 17:28:56 if you are on letter A Mar 03 17:28:58 and click letter Z Mar 03 17:29:17 would you really want to see an animation go on to scroll through the whole list? Mar 03 17:29:57 yes, it would scroll just like google maps does. the time of the animation is constant, so the speed adjusts itself based on the distance. Mar 03 17:30:11 if you go from A to Z, it would seem to shoot across the list very rapidly Mar 03 17:30:18 whereas if you go from E to F, it will be slow and smooth Mar 03 17:30:25 to make an animation not annoying it must last about less than 300ms Mar 03 17:30:25 giving you a sense of the size of the list Mar 03 17:30:38 it would have to fake scroll for that fast Mar 03 17:30:42 I'm not sure a scroll through say 2,000 items in less than 300ms would be visually effective Mar 03 17:30:44 couldn't load all those views Mar 03 17:31:03 true, a fake scroll might be the most effective Mar 03 17:31:03 zhobbs: it would just not show them al Mar 03 17:31:03 romainguy_: I agree Mar 03 17:31:07 all Mar 03 17:31:19 our animations are time based Mar 03 17:31:25 at 300ms, it would be jumping entire pages at a time Mar 03 17:31:49 if it takes 150ms to show the first 20 items then the next frame will show the middle items Mar 03 17:31:54 and then you'll see the last items Mar 03 17:32:34 isnt this how fling will work though? if you fling the list very hard, won't it scroll many items very quickly? Mar 03 17:32:44 that's how it works Mar 03 17:32:52 so what's the difference? Mar 03 17:32:59 but the fling is based on finger velocity and some friction parameters Mar 03 17:33:12 in practice the maximum velocity is not that high Mar 03 17:33:19 hmm Mar 03 17:33:29 a "hard" fling lets you scroll for instance a 100 items Mar 03 17:33:34 maybe compiz has just fried my brain Mar 03 17:33:44 (fake number, but it's not a high number) Mar 03 17:34:05 but as always with that kind of interaction the only thing to do is try it Mar 03 17:34:12 talking about it is meaningless :) Mar 03 17:34:17 i will try Mar 03 17:34:41 so thats your big complaint though? that i dont handle onmotionevent? Mar 03 17:34:50 yeah, and bold/make the text larger for selected :) Mar 03 17:35:05 yeah i had planned to do that one already. Mar 03 17:35:16 also, i want to change the font to one more blocky and square (though not mono) Mar 03 17:41:37 that's my stop Mar 03 18:04:10 at work :\ Mar 03 18:04:52 jasta: you keep irc open at home and vnc to your house? Mar 03 18:05:31 i use screen Mar 03 18:07:37 gotcha Mar 03 18:08:34 so, who should i talk to about getting a skateboarding android shirt/ :) Mar 03 18:08:44 dan morrill Mar 03 18:08:48 would be my guess Mar 03 18:09:14 I think he's not the one sitting around and packing shorts to boxes ^^ Mar 03 18:09:25 But if he agrees I'll take one too :) Mar 03 18:09:36 FYI it seems that I could solve the problem I described ~1 hour ago. Mar 03 18:09:51 made the private class a static one, that was it... Mar 03 18:10:28 I think my app deserves a app.minor++; Mar 03 18:11:37 private and static aren't exclusive, are you sure it wasn't just making it static that caused it to work? Mar 03 18:12:21 or if you were accessing it from the androidmanifest, removing private and keeping static would be fine. Mar 03 18:13:43 I meant: "I made it static >instead< of private(protected)" Mar 03 18:13:59 and no, I dodn't access it from Manifest Mar 03 18:14:27 that's what i meant though, static instead of private doesn't mean anything, they're not similar keywords. Mar 03 18:14:30 dammit, I don't express myself correctly.. Mar 03 18:14:37 let the code speak... Mar 03 18:14:43 now: static class MyLocationChangedIntentReceiver extends IntentReceiver { Mar 03 18:14:53 that simply means that the class is now package-private. Mar 03 18:14:54 instead of private. Mar 03 18:15:03 now: class MyLocationChangedIntentReceiver extends IntentReceiver { Mar 03 18:15:10 and now it's package-private and not static Mar 03 18:15:13 argh Mar 03 18:15:19 :) Mar 03 18:15:19 second one was "before". Mar 03 18:15:25 I should get some sleep! Mar 03 18:15:33 so you removed static? Mar 03 18:15:35 Or a message... :) Mar 03 18:15:40 both of those classes are package-private :) Mar 03 18:16:01 yes but now (first one) is static Mar 03 18:16:20 btw I should have said, that it is placed within a surrounding class Mar 03 18:16:29 public abstract class IGPSMapActivity extends MapActivity{ Mar 03 18:16:36 //... Mar 03 18:16:39 static class MyLocationChangedIntentReceiver extends IntentReceiver { Mar 03 18:16:42 // ... Mar 03 18:16:45 } Mar 03 18:16:46 } Mar 03 18:17:15 i know, because static would not be permissible otherwise ;) Mar 03 18:17:48 but still, that is a package-private class. private would have also worked if you were accessing it from IGPSMapActivity Mar 03 18:20:20 static in that context means that the declared class is to be instantiated separately from igpsmapactivity, as though it was in a separate file. Mar 03 18:27:26 1st ^^ you're right Mar 03 18:27:40 2nd yes just from inside of IGPSMapActivity Mar 03 18:28:03 3rd thats what it seems to need to work properly. Mar 03 18:28:25 you fixed your problem? Mar 03 18:32:10 seems to Mar 03 18:32:15 plusminus__: of course it does, why would the intentreceiver be tied to the instance of the activity? Mar 03 18:33:54 would anybody have an idea on how to add several overlay to a map from different intents? Mar 03 18:34:09 I mean the same intent but different intentReceiver Mar 03 18:34:33 so I would broadcast an intent to overlay the map, and each activity would add its own overlay Mar 03 18:35:15 I ve been struggling on the best practice. I take it that Overlay can not be bundled... Mar 03 18:36:29 jasta: Because it was noc accessed from outside world and always correctly unregistered. --> I thought ot would work. Mar 03 18:36:43 g2g Mar 03 18:47:08 acsia: all the receivers are in the same class? Mar 03 18:47:26 well no Mar 03 18:47:30 seems like you could just have a private overlaycontroller and add them Mar 03 18:47:31 I want to make it modular Mar 03 18:47:44 so I could add a 'module' Mar 03 18:48:11 well, the MapActivity will have focus right? Mar 03 18:48:23 yes Mar 03 18:48:50 so I could get the focus? Mar 03 18:49:38 so you're going to have services broadcasting the intents? Mar 03 18:49:53 yes Mar 03 18:50:14 you should probably just do an async interface instead Mar 03 18:50:36 this is more of a concept stage Mar 03 18:50:37 so your MapActivity binds to the service and then has an onOverlayAdd or onOverlayChange or something interface Mar 03 18:51:49 I was thinking about something similar Mar 03 18:52:33 I think I need to play around with it a bit Mar 03 19:39:57 jtoy: having some probs? :) Mar 03 19:50:36 Is there a way to intercept an SMS? I need an application that checks an SMS for security data before sending it through. Mar 03 19:51:41 you can create a receiver for the android.provider.Telephony.SMS_RECEIVED Mar 03 19:52:01 check zhobbs tutorial :) Mar 03 19:52:11 hehe, http://www.helloandroid.com/node/159 Mar 03 19:52:51 i think it fits perfectly with what you want to do Mar 03 19:53:09 Ill check, but what if there are multiple receivers, and I want to stop the rest of the receivers from recieving if the SMS doesn't check out? Mar 03 19:53:57 I've just read on the dev boards that something like this is 'sorta' possible, but I'm still puzzling through. Mar 03 19:54:43 (* loads the tutorial *) Mar 03 19:57:23 (* looks at it *) heh, that's exactly what I was trying to do, only with voice. I called it "Laaaaaase". Mar 03 19:58:22 Do you think people would rather communicate through text rather than voice? I'm noticing some interesting trends. Mar 03 19:59:29 short communications = text Mar 03 20:00:00 long = ... you guessed Mar 03 20:00:29 chaosvoyager: not sure how it's going to be handled with multiple receivers...not sure if google has figured that out yet Mar 03 20:00:36 don't know how it is in the us but here in france SMS is used a lot Mar 03 20:00:58 it's picking up a lot in the US Mar 03 20:01:29 we are still behind europe, but becoming more normal Mar 03 20:03:17 IM and l33t is pretty much the de facto way the under 20 set communicate at this point. Mar 03 20:04:01 What I find facinating is that l33t has more in common with Chinese pictographs that phonetically connected words. Mar 03 20:05:52 I wonder how the Chiinese use IM. Mar 03 20:06:51 l33t ? Mar 03 20:06:58 who here communicates in that? Mar 03 20:07:05 geeks in the 90's and early 00's did that Mar 03 20:07:33 i'd say facebook and IM more so than SMS, at least in the US Mar 03 20:12:48 Alright, not l33t. What are the collective set of acronyms people use to communicate via IM called? Mar 03 20:13:54 online speak or something Mar 03 20:13:57 netspeak Mar 03 20:13:59 idk Mar 03 20:14:25 not sur i tlk nrml in txt Mar 03 20:14:42 LOL Mar 03 20:14:50 that is just removing vowels Mar 03 20:14:56 there's a term Mar 03 20:14:56 haha, yeah I suck at it Mar 03 20:15:04 it was probably introduced in the late 90's Mar 03 20:15:18 16 year olg girls are the experts Mar 03 20:15:24 although the phrases have been around since early 90's of not 80's Mar 03 20:15:26 old* Mar 03 20:15:27 agreed Mar 03 20:16:52 Like open source, it just spontaneously emerged. Mar 03 20:16:58 heh Mar 03 20:18:08 I think most language happened that way, we just don't remenber :) Mar 03 20:18:55 yeah, the net and computers and stuff probably have a pretty big impact on language/speech...it's only been around 20 years so far Mar 03 20:25:44 This patent system will kill us all. Mar 03 20:27:20 i'll make sure it does Mar 03 20:27:44 0_0 Mar 03 21:09:25 yawn Mar 03 21:29:42 jasta: if you wanna put your tutorial on hello android I can contribute some :) Mar 03 21:31:06 hmm...gotta reboot router..brb Mar 03 21:32:16 hmm..didn't even disconnect Mar 03 21:32:56 It's like that call from the dead in that Twilight Zone ep. Mar 03 21:39:57 zhobbs: i just wasn't originally planning to make it a tutorial Mar 03 21:40:08 but perhaps i should. it's the first public example of a complex compound widget that i know of. Mar 03 21:40:48 jasta: yeah, the problem is the more complex the harder to document as a tutorial Mar 03 21:42:06 yeah, there's a flippin binary search tree in my widget :) Mar 03 21:42:23 I suppose I could write "Uhh, and skip over this 300 line block." :) Mar 03 21:42:27 yep Mar 03 21:42:49 maybe i'll implement onTouchEvent first Mar 03 21:42:58 or onMotionEvent, whatever it's called Mar 03 22:34:03 Who receives an onTouchEvent when multiple contact points happen at once? Mar 03 22:34:42 I have no way of testing that Mar 03 22:36:30 unless X would let me hook up another mouse and add a cursor? Mar 03 22:38:52 it'll depend on the hardware+drivers... current stuff tends to average the points Mar 03 22:39:01 so you end up with a touch somewhere in the middle Mar 03 22:40:52 I suspect a working 'averaging' algorithm was one of Apple's toughest challenges. Mar 03 22:41:33 well, the iphone is multitouch for zooming and stuff Mar 03 22:42:08 Well, it's technically multitouch for everything. Mar 03 22:42:30 Or can be. Mar 03 22:43:34 And you can do stuff like this: http://code.google.com/p/pocketguitar Mar 03 22:46:44 chaosvoyager: neat Mar 03 22:46:50 that's why I said the hardware is important... most TS hardware around just isn't capable of multitouch Mar 03 22:47:41 iphone seems like a nice solid piece of hardware... Mar 03 22:47:51 (shame about the software) Mar 03 22:47:56 missing the basic stuff like 3G and gps, but that's probably coming Mar 03 22:48:27 we'll just have to port android to it Mar 03 22:48:46 Lack of GPS is a deal breaker. I could deal without the 3G for now, but not the GPS. Mar 03 22:49:09 I want both! Mar 03 22:50:21 The only touch screen producer in the OHA uses tech like on the iPhone, what are they called, Synaptics? Mar 03 22:50:55 I want it all too, but I know what I can't live without :) Mar 03 22:52:34 I have a POS razr...so I'll be happy with anything Mar 03 22:52:56 I'm settling on my SE w880i until the fuss dies down Mar 03 22:53:16 can't be hassled with a phone that can't make calls... been there, done that Mar 03 22:54:14 Yes, strange that that feature is sometimes lacking. Mar 03 22:54:44 I think we'll be seeing something like that XPERIA X1 : http://www.engadgetmobile.com/2008/03/03/sony-ericsson-says-xperia-x1-is-still-on-track-for-this-year/ Mar 03 22:54:54 chaosvoyager: ;) I just won't use developer devices as personal phones Mar 03 22:55:33 zhobbs: *shudder* Mar 03 22:55:57 hehe, don't like that one? Mar 03 22:56:32 I saw the demo... the hardware is a tad too bulky for my tastes Mar 03 22:56:44 I like my smartphones smart, not big Mar 03 22:56:55 Stephmw: I find that confusing as I don't differentiate. All hardware to me is there to obey me. Mar 03 22:57:01 I want some resolution for useful web browsing Mar 03 22:57:32 chaosvoyager: I don't want a phone that weighs me down when I'm climbing overhangs :P Mar 03 22:57:55 Oh, that I understand. Mar 03 22:58:11 my god the 9120 was a brick and a half Mar 03 22:58:17 err Mar 03 22:58:19 9210 Mar 03 22:58:40 Ubuntu Mobile also needs a brick to run. Mar 03 22:59:06 yah - I'm unconvinced by trying to squeeze downwards Mar 03 22:59:11 but it's a noble effort Mar 03 23:00:31 One slick thing is the use of Clutter, which is yet another GUI framework, but a good one with bindings to pretty much everything. I evaluated it for a Python project. Mar 03 23:00:54 Oh? I need to take a look at that Mar 03 23:01:53 Uses JSON to define the layout. And I believe bindings too, but I may be mixing that up with JavaFX. Mar 03 23:02:18 I was impressed at least. Mar 03 23:04:59 er, 'event' bindings in the latter statement, 'language' bindings in the first. Mar 03 23:05:08 I hate generic words. Mar 03 23:27:01 errr... quick question: i'm running the ApiDemos sample on my emulator... App->Service->gtalk Data Message Sender example shows an error: "The default GTalk session cannot be found". Mar 03 23:27:13 is this expected? :\ Mar 03 23:30:54 * eighty stares blankly at the error Mar 03 23:36:48 eighty: xmpp is in the shits for m5 Mar 03 23:37:14 f00f: nooooooooooo Mar 03 23:37:29 (said like melo dramatic movie actor) Mar 03 23:37:36 :) Mar 03 23:37:38 sad but true Mar 03 23:37:41 in slow motion ;) Mar 03 23:37:45 i've dropped xmpp/gtalk support from my app Mar 03 23:37:53 how are you handling p2p? Mar 03 23:37:55 specifically data messaging is broken Mar 03 23:38:05 super-specifically, reception of data messages is borked Mar 03 23:38:15 filed a bug and i'm moving on Mar 03 23:38:18 * eighty smacks forehead Mar 03 23:38:31 * f00f- opens eyes wide open, gaping Mar 03 23:38:41 so p2p is borked. meh. Mar 03 23:38:50 worked in m3 Mar 03 23:38:54 but cursoradapter is ugly there Mar 03 23:39:02 garf. Mar 03 23:39:12 major shotdown for me Mar 03 23:39:22 but thankfully my app has other merits Mar 03 23:40:29 well it can only get better i suppose. i'm guessing p2p is android priority defcon 1 Mar 03 23:45:35 I wish I knew. Mar 03 23:46:16 I really have no idea where Google is driving this thing, and I don't think it's because of clever subterfuge on their part. Mar 03 23:46:38 free phone Mar 03 23:46:44 with ads on it Mar 03 23:46:59 no adblock Mar 03 23:47:45 Not so sure. Google got to where it is by being the only NOT annoying internet advertiser Mar 03 23:48:02 who said they needed to be annoying Mar 03 23:48:10 browse your sms Mar 03 23:48:15 context ads are down the bottom Mar 03 23:48:26 same as gmail Mar 03 23:49:18 Oh those. I was thinking ads instead of dialtone. Mar 03 23:49:42 Or ad ringtones. Mar 03 23:50:20 patents away Mar 03 23:52:20 Probably, but I've seen things....HORRIBLE things, when advertisers get ahold of open platforms. It's because of bastards like that that I can't use Flash everywhere, because people turn it off due to ads. Mar 04 00:05:28 f00f: i have 2 emulators runnings and sending messages back and forth. Mar 04 00:05:38 using gtalkservice Mar 04 00:05:49 eighty: data messages? Mar 04 00:05:57 errrr... Mar 04 00:06:01 text messages Mar 04 00:06:07 How much effort did that take? Mar 04 00:06:12 okay that probably works, but sadly not what i need :/ Mar 04 00:06:20 when you say data messages... did you mean sending objects of type not String? Mar 04 00:06:31 no i mean using sendDataMessage(jid, intent) Mar 04 00:06:55 the intent can have anything Mar 04 00:07:05 it sends it perfectly, just doesn't receve it Mar 04 00:07:09 i filed a bug Mar 04 00:07:10 GTalkSession.sendDataMessage(username, getIntentToSend()); Mar 04 00:07:18 their sample doesn't even work for m5 Mar 04 00:07:33 i'm using the ApiDemo sample from m5 Mar 04 00:07:47 do you receive an intent? Mar 04 00:07:50 yes. Mar 04 00:07:51 in the console, adb logcat Mar 04 00:08:14 mind pasting what you see? Mar 04 00:08:31 i tried the same thing yesterday and it would not receive Mar 04 00:09:17 one sec.... Mar 04 00:10:25 D/gtalkSrv( 543): [DataMsgProvider] parseExtension: got (question, would you like to eat green eggs and ham?) Mar 04 00:10:25 D/gtalkSrv( 543): [DataMsgProvider] parseExtension: got (poke, Hi, I am Sam.) Mar 04 00:10:25 I/GTalkServiceSample( 635): [GTalkDataMessageReceiver] onReceiveIntent: Got data message, action=android.intent.action.SAMPLE_GTALK_DATA_MESSAGE, poke=Hi, I am Sam., question=would you like to eat green eggs and ham? Mar 04 00:10:44 f00f: is that what you're looking for? Mar 04 00:10:52 last line Mar 04 00:10:55 yes Mar 04 00:11:12 i'll have to recheck it then Mar 04 00:12:34 for each emulator, i added and removed both gmail accounts in XMPP settings. i think this registers both JIDs in the XMPP database. or something like that. :| Mar 04 00:12:34 Can you access the ringtone in Android? Mar 04 00:12:36 chaosvoyager: haven Mar 04 00:12:39 't tried Mar 04 00:13:27 more info: http://groups.google.com/group/android-developers/browse_thread/thread/27f4083c2c550734/95934fbec9484d3a Mar 04 00:13:31 I'd expect you could, but I thought Android could do lots of things it couldn't. THX. Mar 04 00:13:37 eighty: i did it manually by editing im.db but maybe there is something weird with that Mar 04 00:14:02 i will take a look at it tonight Mar 04 00:15:19 how do you access im.db? Mar 04 00:17:24 it's in /data/data Mar 04 00:17:27 chaosvoyager: and yet, i think android is amazing. i think it's going to change the world. :) Mar 04 00:17:28 adb shell Mar 04 00:17:31 # sqlite3 im.db Mar 04 00:17:35 i forget the exact path Mar 04 00:17:47 f00f: trying... Mar 04 00:18:27 f00f: data/com.google.android.providers.im Mar 04 00:18:57 chaosvoyager: I'd expect you could, but I thought Android could do lots of things it couldn't. THX. << like what? Mar 04 00:19:09 yeah that's the one eighty Mar 04 00:19:19 Wow, ONE developer post on ringtones. Mar 04 00:19:33 chaosvoyager: chance to win :D Mar 04 00:20:10 Blah. I'll make more money using it as an application platform. Mar 04 00:20:39 romainguy: accessing the incomming and outgoing audio from calls. Mar 04 00:21:00 ah, that one :) Mar 04 00:21:16 I THINK I should be ablle to change the ringtone, but I haven't been able to verify that yet. Mar 04 00:22:27 I'm also unsure if I can intercept an incomming IM/SMS to check for security data, and then send it along to the application that normally handles it. Mar 04 00:22:45 and modify it? Mar 04 00:22:47 i doubt it Mar 04 00:23:12 Just read it, or delete it. Mar 04 00:24:52 romainguy: and from what you said before, view management needs to be sped up a little, but I'm still unsure it it will be enough. Does Android promise th have at least the same rendering spoeed as the iPhone? Mar 04 00:26:02 depends on your hardware Mar 04 00:27:09 Well, yes, I mean on essentially equivalent HW of course. Mar 04 00:28:49 I can't promise anything :) Mar 04 00:29:34 Yeah, I should have used a different term. Mar 04 00:30:06 is rendering speed a high priority for android Mar 04 00:30:37 I spent a large part of my time for the past few months just optimizing our view hierarchy Mar 04 00:32:55 what kind of speedup did the optimization show. worth the few months of work? Mar 04 00:33:31 several x speedup Mar 04 00:33:44 sweet Mar 04 00:37:35 Alright, here's one of my specific concerns: With the GUI I want to implement, I do lots of transforms on groups of widgets. Not only does this need to be fact, but the event firing areas change as well (both size and function). Mar 04 00:38:19 gtalkservice... so you send messages as Intent objects. can an Intent contain a custom data type? or a movie or picture or something? Mar 04 00:41:24 eighty: no just String and a few native types Mar 04 00:41:34 eighty: generic objects are not supported Mar 04 00:42:02 darn. thanks f00f... i guess JSON strings are the alternative Mar 04 00:42:03 you probably want to send heavy greasy binary content to a server first as a background operation Mar 04 00:42:23 Yikes, that's horrible. Mar 04 00:42:47 would you really want to clog up the XMPP connection with a huge file transfer? Mar 04 00:43:11 true... Mar 04 00:43:33 or maybe they multiplex things internally Mar 04 00:44:26 here's streaming media over a data connection... stream to a device? http://code.google.com/android/toolbox/apis/media.html Mar 04 00:44:46 that would be cool. :) Mar 04 00:45:45 err.. >_< fact=fast. Mar 04 01:27:52 Alright, the binary form of XML used in resources is WBXML, and XMLSerializer can write to it. Mar 04 01:28:48 chaosvoyager: is there a decoder so we can decode all those xml layout files in anroid.R Mar 04 01:28:56 zhobbs: there is Mar 04 01:29:00 it's been posted on the mailing lists Mar 04 01:29:10 it's probably not hard to write either Mar 04 01:29:15 As a matter of fact there is, it's called XMLPullParser :) Mar 04 01:29:51 ? Mar 04 01:30:02 that's just a regular XPP parser Mar 04 01:30:08 doesn't do binary unless they modded it Mar 04 01:30:18 But it reads the binary Resource files. Mar 04 01:30:51 ... Mar 04 01:31:01 Unless that's the Resource itself... Mar 04 01:33:24 romainguy_: can't find that post...was it recent? Mar 04 01:33:31 I believe so yes Mar 04 01:35:34 bad ass: http://www.it.usyd.edu.au/~massad/project-android.html Mar 04 01:36:05 blast, android.content.Resources does the reading, but what's this link... Mar 04 01:59:57 romainguy_: where are things like android.R.attr stored? Mar 04 02:00:11 in a file called attrs.xml Mar 04 02:00:22 I don't think it's bundled in android.jar though Mar 04 02:00:45 no it's not... Mar 04 02:02:21 but I'll find it :) Mar 04 02:04:38 Why are you looking for it? Mar 04 02:05:29 seems like there is a lot going on there to define styles and stuff Mar 04 02:05:50 everything from attrs.xml is in R.attr Mar 04 02:06:10 attrs.xml doesn't contain much information by itself Mar 04 02:07:26 is everything in R.attr come from attrs.xml? Mar 04 02:07:35 yep Mar 04 02:07:39 hmm Mar 04 02:08:47 I often go looking for things just because I'm curious, but if I haven't found it after a certain amount of time and effort I don't care anymore, but I still look for it just because I won't let it win. Mar 04 02:09:11 that's the spirit Mar 04 02:09:32 But fiends play nasty tricks on me by getting me to search for things that don't exist. Mar 04 02:14:35 You check the emulator's data? Mar 04 02:15:25 don't have time to get side tracked :( Mar 04 02:16:05 Ah :) Mar 04 02:17:32 I could spend all night decoding and reviewing those damn xml files.... Mar 04 02:17:39 or trying to really Mar 04 02:17:47 or I could be productive :( Mar 04 02:18:03 go with the latter. Mar 04 02:22:19 new sdk out Mar 04 02:22:38 wondered why jasonchen wanted op Mar 04 02:22:44 ^^ Mar 04 02:22:59 zhobbs: am I _that_ transparent :-) Mar 04 02:25:04 hmm, once change "1012640: Incorrect handling of BMP images." Mar 04 02:25:10 one change I mean Mar 04 02:25:33 rc14 to rc15? Mar 04 02:25:48 yep, just one bmp bug fix looks like Mar 04 02:25:59 thats kind of strange Mar 04 02:26:14 must have been a doozy Mar 04 02:27:02 jasta: you seen this: http://www.it.usyd.edu.au/~massad/project-android.html Mar 04 02:27:10 we were talking about that a few weeks back Mar 04 02:27:16 no? let me look Mar 04 02:27:38 niceee :) Mar 04 02:27:58 i knew someone would do this eventually Mar 04 02:28:18 only really seems to work with android.R.layout though, wouldn't go for drawable,style, etc Mar 04 02:28:24 IE still allows you to run scripts hidden in images, or rather doesn't allow you to not allow you. Mar 04 02:28:40 but maybe it can, didn't mess with it much Mar 04 02:28:49 zhobbs: still, this is great Mar 04 02:29:04 yeah, he's got a tar with all the android.R.layout files Mar 04 02:29:14 saw that Mar 04 02:29:47 heh, that's like months old now ain't it :) Mar 04 02:30:17 yeah, just found it :) Mar 04 02:30:39 yeah it was helpful for the TwoLinItemListView thingy Mar 04 02:30:47 or at least understanding the sample code Mar 04 02:31:00 i love how others do the work so we don'thave to Mar 04 02:31:06 open source mindset is great Mar 04 02:32:00 yeah, it's pretty amazing what gets done Mar 04 02:32:48 zhobbs: this guys code is terrible ;) Mar 04 02:33:43 XMLDump.java ? Mar 04 02:33:48 yeah Mar 04 02:34:16 it's a quick hack Mar 04 02:34:33 oh well Mar 04 02:34:33 wait Mar 04 02:34:35 this is cheating Mar 04 02:34:41 you're doing this at run-time Mar 04 02:34:44 rofl Mar 04 02:35:33 yeah, i would have preferred someone reverse engineered the format ;) Mar 04 02:35:38 it's using getXml() !!! Mar 04 02:35:41 jasta: yeah, me too Mar 04 02:35:51 yeah, it's just getting the pul parser from Resource Mar 04 02:35:55 jasta: isn't it just WbXML? Mar 04 02:35:56 but still, very useful Mar 04 02:36:21 romainguy_: That was my earlier suspicion, but it seems not to be. Or at least, it's not correct WbXML :) Mar 04 02:36:21 'file' it :) Mar 04 02:36:44 maybe it's in a different codepage Mar 04 02:36:45 the format looks very similar to WbXML, however, which is why i think reverse engineering it should be very simple Mar 04 02:37:10 jasta: you've tried a standard WbXML parser? Mar 04 02:37:14 Heh, Firefox threw an XML parsing error when I tried to read Android's media_controller.xml Mar 04 02:37:24 zhobbs: yeah, i've even tried looking at it with xxd Mar 04 02:37:32 chaosvoyager: the page says XMLDump does not produce valid XML yet Mar 04 02:37:35 there are odd differences, and i didn't bother to explore them Mar 04 02:37:51 Oh. Mar 04 02:38:25 right. Mar 04 02:39:07 DuH. Mar 04 02:41:47 So Resource files are sorta Android's equivalent of RAW files. Open but undocumented. Mar 04 02:50:40 SQLite DBs are fairly simple and small binary files, right? Mar 04 02:57:37 Before I embarras myself on the developer boards once again, does anyone know how I would change the ringtone? Mar 04 02:58:04 The systemm properties only seem to deal with volume and the like. Mar 04 03:04:20 can the emulator currently ring? Mar 04 03:05:41 Honestly, I hadn't even considered that. I just assumed it could. Can't it play audio files? Mar 04 03:06:38 yeah, can play audio... Mar 04 03:06:48 doesn't seem like it rings when calls are coming in Mar 04 03:07:00 *sigh* Mar 04 03:07:14 there goes that idea? Mar 04 03:08:31 No, this is a 'so much energy, so little progress' sigh. Mar 04 03:09:01 I can't get the new sdk and eclipse to talk Mar 04 03:09:32 Give them tiime, they have to get to know each other. Mar 04 03:10:05 I don't think they'll ever like each other though Mar 04 03:10:14 :) Mar 04 07:47:05 is there a simple way to get a concole-type view, without inout capabilites? Mar 04 07:47:33 like, a textview that scrolls horizontally and always keeps the last line in view? Mar 04 07:47:59 and by "inout Mar 04 07:48:03 i mean input **** ENDING LOGGING AT Tue Mar 04 10:59:57 2008