**** BEGIN LOGGING AT Thu Feb 28 10:59:56 2008 Feb 28 11:01:03 +-: may be the button is hidden behind another view Feb 28 11:05:48 muthu: no its not it has something to do with onMeasure/measure or onLayout/layout... Feb 28 11:05:58 what I don't understand ... Feb 28 11:06:17 damn, with an open soruce this would have been a job within minutes... Feb 28 11:08:25 you haven't decompiled yet ;) Feb 28 11:08:51 no i haven't ... Feb 28 11:08:58 but i must admit the end results are not pretty Feb 28 11:09:01 but I like expressive names... Feb 28 11:09:03 ^^ Feb 28 11:09:14 true.. you can get some idea Feb 28 11:09:26 A extend B impmenents C,D{ Feb 28 11:09:37 i know Feb 28 11:09:40 terrible Feb 28 11:10:13 not that bad, i guess Feb 28 11:10:29 i don't think its obfuscated Feb 28 11:11:13 hm yes, but its to much effort for a small side idea ... Feb 28 11:12:54 damn.. side idea Feb 28 11:13:06 i'm yet to write anything on my main idea :) Feb 28 11:13:23 i'm stuck in coder's block Feb 28 11:13:46 android architecture diagram is interesting Feb 28 11:14:06 poor SurfaceManager is left alone in libraries Feb 28 11:14:27 while the other "Managers" are partying in ApplicationFramework island ;) Feb 28 12:22:33 does anyone tried importing openlayer map instead of google Feb 28 12:22:41 please help me Feb 28 12:22:44 for links Feb 28 12:39:56 anyone there to help Feb 28 12:40:00 reply me Feb 28 12:42:22 sandesh, is opelayer a google maps similar thing? Feb 28 12:43:40 ya its map for everyone http://openlayers.org/ Feb 28 12:43:45 mikelo Feb 28 12:45:08 cool Feb 28 12:46:10 got something mikelo Feb 28 12:51:44 anyone there Feb 28 13:23:13 plusminus: fantastic job with anddev.org Feb 28 13:23:54 anddev.org has become the defacto developer community Feb 28 13:24:09 android dev community that is Feb 28 13:24:55 so hats off to plusminus, from the android community in chennai we salute you :) Feb 28 13:50:52 hello muthu Feb 28 13:53:02 hi sandesh Feb 28 13:53:30 can u help me in importing openlayers map in android Feb 28 13:53:34 muthu Feb 28 13:53:45 yeah tell me Feb 28 13:53:45 instead of google Feb 28 13:54:07 i haven't done much of maps Feb 28 13:54:10 openlayers map in android instead of google Feb 28 13:54:12 but what exactly you need Feb 28 13:54:30 did you google? Feb 28 13:54:39 may be some body done it already Feb 28 13:54:44 google map is by default Feb 28 13:55:01 oh.. ok Feb 28 13:55:07 public class MapViewer extends MapActivity { Feb 28 13:55:07 @Override Feb 28 13:55:07 public void onCreate(Bundle icicle) { Feb 28 13:55:07 super.onCreate(icicle); Feb 28 13:55:08 setContentView(R.layout.main); Feb 28 13:55:10 } Feb 28 13:55:12 } Feb 28 13:55:19 this will give google Feb 28 13:55:29 correct Feb 28 13:55:35 but i m not finding library of openstreetmap Feb 28 13:56:09 com.google.android.maps library is for google which is there by default Feb 28 13:56:22 its not there Feb 28 13:56:35 no i m not getting any links Feb 28 13:56:38 probably its not supported yet Feb 28 13:56:53 why you want openlayers instead of gmaps? Feb 28 13:56:58 ya Feb 28 13:57:02 corect Feb 28 13:57:34 openlayers is free Feb 28 13:57:51 OpenLayers is Free Software, developed for and by the Open Source software community Feb 28 13:57:57 ok Feb 28 13:58:24 when the source code is released Feb 28 13:58:34 probably you'll find different libraries Feb 28 13:58:39 for now we're stuck with google Feb 28 13:58:54 http://openlayers.org/ Feb 28 13:59:08 i'll check it out.. thx Feb 28 13:59:13 any open map libraries u hav Feb 28 13:59:50 no Feb 28 14:00:08 can u plz check d site n tell me how to move on Feb 28 14:00:14 can you not use gmaps? Feb 28 14:00:20 atleast for now Feb 28 14:00:30 no Feb 28 14:00:42 i want to import openlayers map Feb 28 14:00:54 or openstreet map Feb 28 14:02:41 muthu Feb 28 14:03:00 yeah i'm checkin out the map Feb 28 14:03:20 its a javascript Feb 28 14:03:51 ya Feb 28 14:07:46 do you have any ideas? Feb 28 14:08:18 post it to the developer group Feb 28 14:09:30 any one here u know who is working on maps Feb 28 14:09:43 muthu Feb 28 14:11:59 only the ui guys hang out here Feb 28 14:12:00 afaik Feb 28 14:12:00 anddev.org - try it Feb 28 14:12:18 helloandroid.com Feb 28 14:16:53 ok muthu if u get any links please forward it to catchsandesh@gmail.com Feb 28 14:17:09 thanks Feb 28 14:17:16 thankyou somuch muthu Feb 28 14:17:29 sure Feb 28 15:23:31 Hi Feb 28 15:24:02 Anyone know when we can expect a commerically available phone to run Android on? Feb 28 15:42:01 2nd half of '08 Feb 28 15:59:48 Participants can win a washing-machine ;) : Feb 28 15:59:49 http://www.anddev.org/tmp/guia.png Feb 28 15:59:51 http://www.anddev.org/tmp/guib.png Feb 28 16:00:19 which looks more useful Feb 28 16:00:23 lol Feb 28 16:00:32 (in your opinion) Feb 28 16:00:58 things changed are the location of the zoom-buttons and the size of the lower-right info-box Feb 28 16:01:07 a Feb 28 16:01:39 [vote counted] :) Feb 28 16:02:18 :) Feb 28 16:05:15 you think that the location of the zoom buttons is better there ? Feb 28 16:07:43 yap Feb 28 16:08:39 b Feb 28 16:08:49 the zoom buttons look very inappropriate there. Feb 28 16:18:33 thx Feb 28 16:18:44 you mean the size or the 'look' ? Feb 28 16:18:51 the look Feb 28 16:19:13 ok, took them from tango-icon-theme ^^ (as always) Feb 28 16:19:32 yeah, I steal from them also Feb 28 16:19:59 ditto Feb 28 16:21:16 perhaps more like this ?: http://www.westmarineholiday.com/images/product_images/high_res/Garmin-Nuvi.jpg Feb 28 16:21:42 "transparent button style" Feb 28 16:21:45 i suppose, but still no. Feb 28 16:22:37 maybe just put a small zoom scroller on the left like real google maps Feb 28 16:23:44 hm... i think while driving its easier to handle just two buttons instead fo a slider Feb 28 16:23:55 probably Feb 28 16:23:57 ;) Feb 28 16:25:00 i sort of like the tap-to-zoom interface myself Feb 28 16:34:58 http://www.helloandroid.com/node/303 Feb 28 16:36:05 awesome, the alkaline trio vocalist started a new band Feb 28 16:36:34 i guess that's old news, but i just found out about it :) Feb 28 16:40:16 zhobbs: gah, wehre'd that come from? Feb 28 16:41:48 nice zach :) Feb 28 16:42:10 i want it :( Feb 28 16:44:43 that handest looks nice, actually Feb 28 16:45:13 fixed the bbc link Feb 28 16:45:29 not that there's anything there except the video Feb 28 16:47:56 nice vidoe Feb 28 16:48:07 it really exists! Feb 28 16:49:46 I never thought Android would running at such excellent performance! Feb 28 16:50:23 yeah, it doesn't run very smooth on my pc Feb 28 16:50:53 yes, but it highly depends on the pc you have... Feb 28 16:51:21 I need to upgrade Feb 28 17:09:28 hi, can some one help me pls? how is it possible to know if my service is running or not? i want to programm an application, it has 2 buttons, 1 button is for start service and the other one is for stop service...but its not neccesary that the stop service button is enabled if the service isnt running? can someone give me a hint please? thx Feb 28 17:10:45 googleandroidpro: you could have your service set a shared pref in onCreate and onDestroy Feb 28 17:10:56 or broadcast an intent Feb 28 17:13:42 shared preference, i dont know what that is => dont know how to create + dont know how to check this from the main app...... but i will search for it...or brodcast an intent? never heart but why not :-) thx maybe i find something that helps me Feb 28 17:14:28 googleandroidpro: either one would work...the boardcast intent would work better Feb 28 17:15:22 ok then i will try this first Feb 28 17:15:25 if you did shared prefs I guess you'd have to create a thread that would look and check for the change Feb 28 17:15:34 s/look/loop Feb 28 17:16:07 zhobss: any other way? Feb 28 17:16:39 muthu: probably :) Feb 28 17:16:50 like what? Feb 28 17:17:14 ipc? Feb 28 17:17:15 there's a way to get a list of running processes... Feb 28 17:17:25 oh ok Feb 28 17:17:54 but its a service in the background Feb 28 17:18:12 i cant see it as process in th ddms debug Feb 28 17:18:22 yeah, would probably still be in that list Feb 28 17:18:51 hmmm, can you see like the home app? Feb 28 17:19:01 really? Feb 28 17:19:19 the home app is shown there, but the service not Feb 28 17:19:41 oh, well that might not work then :) Feb 28 17:20:32 args :( thats what i wanted...hm...i mean i can add the service to an process, but its not neceassry...so there must be an other way Feb 28 17:21:19 see SharedPreferences Feb 28 17:21:20 maybe there is a list for the services too? Feb 28 17:21:37 yes i will do, thx Feb 28 18:04:16 yawn Feb 28 18:04:23 morning romain Feb 28 18:05:14 googleandroidpro: the best way is to implement your own notion of "running". Feb 28 18:05:19 re Feb 28 18:06:00 googleandroidpro: so that Android can start the service, and you can bind to it, but it has nothing to do until you invoke a method like startDoingSomething(), which you can attach an observer to (my designing an appropriate interface) Feb 28 18:06:23 that way you can determine the state of the service in a way that is meaningful to the type of behaviour it has, not just whether the process is alive or not (which is how Android sees it) Feb 28 18:07:44 (any google folks want to set me straight? *grin*) Feb 28 18:08:05 too busy reading engadget ;-) Feb 28 18:08:40 jasta: in your async example what happens with the client goes away and the service calls that interface? Feb 28 18:08:49 googleandroidpro: you won't even respond to the Service's onStart() call that way. it would still be a good ide ato respond to onStop, though :) Feb 28 18:09:15 zhobbs: the service will catch a DeadObjectException and remove the callback that the client registered. Feb 28 18:09:21 gotcha Feb 28 18:09:31 i mean, maybe it doesn't in the example, but that is what you are supposed to do :P Feb 28 18:09:42 however, the client should "go away" gracefully Feb 28 18:09:45 I'll have to see what I'm doing.. Feb 28 18:09:54 that is, onStop() should unregister the callback, then unbind. Feb 28 18:10:04 But the service doesn't require that, it is only a nicety. Feb 28 18:11:23 back....1 question? u see not the full nickname? googleandroidprogrammer...because iam definetly not a pro Feb 28 18:11:46 hehe, I thought you were bragging Feb 28 18:12:02 googleandroidpro: we see pro. Feb 28 18:12:02 your nick is stupid though, shorten it. Feb 28 18:12:09 ok lets change it :-) Feb 28 18:12:26 let's. Feb 28 18:15:00 ok, i found how to create a shared preference, thats done in the service, how can i check this from the activity? Feb 28 18:15:46 .getBoolean("SERVICE_RUNNING", false) or something Feb 28 18:16:00 no, don't freaking do that. Feb 28 18:16:01 god. Feb 28 18:16:07 hehe Feb 28 18:16:27 gap: are you binding to the service? Feb 28 18:16:33 no Feb 28 18:17:02 jasta: how would you do it if not binding? Feb 28 18:17:31 i already said, you implement a meaningful layer on top of whether or not the process is running. Feb 28 18:17:53 that is, you don't use the service's onStart() to make it do work, you implement an interface, bind to it, and invoke methods and ask about its progress or status. Feb 28 18:17:58 the main activity just starts the service with an button, service runs... now can stop activity, if now the activity is restarted, there should be another button to stop the service Feb 28 18:18:51 jasta: when you bind to it it will start it though Feb 28 18:18:58 he doesn't want it to always start it Feb 28 18:19:07 he wants the option to check it when it's not running Feb 28 18:19:29 ok more detail Feb 28 18:20:28 main activity should show 1 button, if the service runs it should be the "stop service" button and if the service is nit running it should be the "start service" button Feb 28 18:21:52 i understand that. Feb 28 18:22:04 remember that your service "running" is just, is the process alive? Feb 28 18:22:29 that information is insufficient to determine what your service is doing, how many times it has been asked to do that (services are threaded, remember), and all sorts of other information that you can't ignore. Feb 28 18:22:37 if you ignore this complexity, your service will be badly designed, counter-intuitive and hard to use. Feb 28 18:23:08 well, not really he just wants an on/off button...doesn't matter what it's doing Feb 28 18:23:13 it is very easy to implement an interface layer that you can bind to, ask it it do work, ask what it is currently doing, etc. Feb 28 18:23:37 zhobbs thats right Feb 28 18:24:48 bind service does not start the service Feb 28 18:25:03 okay the x.getSharedPreferences where is it connected to(whats the x)? Feb 28 18:25:06 muthu: yeah it does Feb 28 18:25:28 the docs says otherwise Feb 28 18:25:30 android00: a SharedPreferences object Feb 28 18:25:31 no, that's not right. Feb 28 18:25:45 he does care what it's doing: he cares whether there is an active thread of execution. Feb 28 18:26:02 Android will not answer that question for you. You have to produce an interface that can. Feb 28 18:26:03 so i need also an shared preferences object in the activity? Feb 28 18:26:31 this.getSharedPreferences Feb 28 18:26:38 Please, don't design it using shared preferences. Jesus. Feb 28 18:27:20 zhobbs: may be you are right Feb 28 18:28:09 jasta: it would work Feb 28 18:28:39 muthu: bindService can start it, but doesn't necessarily. Feb 28 18:28:59 zhobbs: Unless his service is implemented in a remote process. Feb 28 18:29:14 Which means that no other application could potentially make use of the service given this design. Feb 28 18:29:31 Not to mention that it's just a kludgey mess to abuse sharedpreferences for run-time state. Feb 28 18:29:37 android00: why are you not using the IBinder? Feb 28 18:29:55 I agress it's abuse of shared prefs :) Feb 28 18:30:00 agree* Feb 28 18:30:07 And for what reason? Feb 28 18:30:33 you need to poll for shared prefs Feb 28 18:30:44 It isn't less code, it isn't better designed, it isn't more extensible? Feb 28 18:31:11 ....so do something else? Feb 28 18:31:24 Another great point, shared preferences will be unable to alert the activity when it is finished running. Feb 28 18:31:31 android00: Yes, like I said, implement an interface to your service with callbacks. Feb 28 18:31:35 reason: it would work :) ...maybe it was my engineering degree that tells me if it works it's correct :) Feb 28 18:31:51 what :-) ? Feb 28 18:32:03 jasta: that would start the service though Feb 28 18:32:04 * jasta kills zhobbs Feb 28 18:32:09 they're, we're all safe. Feb 28 18:32:11 there* Feb 28 18:32:36 may be i'm missing something Feb 28 18:32:42 zhobbs: The service gets to decide it's own basis for "starting", you know. Feb 28 18:32:43 what's the problem with bindservice? Feb 28 18:32:55 zhobbs: onStart() can be ignored, actually. Feb 28 18:33:17 And all the threaded behaviour of the service can simply be implemented by invoking methods once the service has been "started" (but isn't performing working) Feb 28 18:33:26 muthu: he doesn't want to start the service to know if it's running Feb 28 18:33:45 hmmm Feb 28 18:33:56 That way, the process being alive or not is irrelevant to your application. Feb 28 18:34:20 The piece of information you really care about -- whether it's performing work - is well known to the application. Feb 28 18:35:09 why is this so complex? i only want a button, with start service or stop service, depending if the service is running Feb 28 18:35:44 something like if(service running){setContentView(a)}else{setContentView(b)} Feb 28 18:36:15 It isn't complex, zhobbs is just poisoning you. Feb 28 18:36:45 I have implemented it in my project quite reliably, and with not very much code. Feb 28 18:37:09 all you have to do is ignore onStart() in the service, implement an interface in AIDL that can alert the activity when it is performing work and when it is not. Feb 28 18:37:13 and then add a method to ask it to perform work. Feb 28 18:37:49 Then your activity can bind to the service, and say "Are you doing work?" ... "Yes? Ok, let me know when it's done." Feb 28 18:38:34 You can expand the complexity from there as much as you wish, and it will evolve gracefully. Feb 28 18:38:45 hm sounds good, but i have no clue what this means :-( or how to implement this Feb 28 18:39:16 android00: Then see the remote service example in ApiDemos. It is doing something like this, although not precisely what you are after. Feb 28 18:40:36 It's doing some slightly eccentric stuff, but the way it does it is relevant. Feb 28 18:40:47 The difference is that you'd want to implement an interafce like: Feb 28 18:41:16 MainService: doWork(); observeWork(WorkObserver o); Feb 28 18:41:47 WorkObserver: onBeginWork(); onWorkComplete(); Feb 28 18:42:33 android00: are you familiar with the concept of an observer in the general sense? you're basically just asking the service to let you know when something meaningful happens. Feb 28 18:42:51 WorkObserver? hm i will go through the api demos maybe there is something for me Feb 28 18:42:58 so the service would have to implement that. observeWork will add to the list of workobservers the service maintains. when something meaningful happens, it alerts them all. Feb 28 18:43:09 android00: Remote Service is the one for you. Trust me. Feb 28 18:43:25 It is not complicated, you just have to think about it for a minute. Feb 28 18:45:13 the advantage of this approach is that it's not totally stupid, and it expands gracefully as your service eventually becomes more meaningful. Feb 28 18:46:02 not to the main activity Feb 28 18:46:20 it just needs the check if service running and show a button Feb 28 18:47:34 and this approach can do that efficiently and intuitively. Feb 28 18:49:09 android00: I think what jasta is saying is don't bother with the button, just bind to the service when you need to use it Feb 28 18:52:09 yes thats true, but the main activity doesnt need to bind to it Feb 28 18:53:53 ok i just look at the remote service, but thats only 1 class? nothing to change in the service? Feb 28 18:55:31 android00: what you mean? Feb 28 18:57:10 zhobbs: well, he could have the button too, i wasn't really speaking to that at all. Feb 28 18:57:49 for example, my usage of this pattern has a "sync" button that is shown and clickable when the service isn't syncing, and it is hidden with a progress bar and a cancel button in its place when the service is synching. Feb 28 18:58:13 the activity can connect at any time, with the service in any state, and visualize the service appropriately to the user. Feb 28 18:58:16 yeah, so you would use async listener type of interface for that Feb 28 18:58:49 yes, which is what i described to him, and is absolutely the most appropriate interface when you nee dto visually respond to and control the service's behaviour. Feb 28 18:59:42 only prob is he doesn't want to have the service running Feb 28 18:59:46 it seems "complex" for simple tasks, but the reality is that this is a very robust relationship and must be treated as such. it can extend to any order of complexity, and is very pleasant to use. Feb 28 19:00:02 zhobbs: no, he is incorrectly associating "process is active" with "service is doing my work" Feb 28 19:00:50 he doesn't want the service to just start doing work when the activity comes in to check on what it is doing. Feb 28 19:01:09 but it doesn't matter if the process starts, or the service is constructed. so long as it's just constructed and sitting there it doesn't much matter to him. Feb 28 19:01:20 it will consume minimal resources, and will not automatically start any behaviour he doesn't wish it to start. Feb 28 19:01:37 yep Feb 28 19:01:39 then, the service's behaviour is controlled exclusively via his interface. if he wants it to do work, he binds and calls doWork. Feb 28 19:02:01 this replaces the onStart() paradigm, which is only useful for very simple services. Feb 28 19:02:16 a service that needs to cooperate tightly with an activity is not an example of a simple service. Feb 28 19:03:00 it is surely not obvious to him, but his service cooperates tightly with his activity if the activity must respond visually to its state and behaviour. Feb 28 19:03:01 that's what I've done when I use services also... Feb 28 19:03:34 if he uses sharedpreferences, he introduces a host of problems that are simply impossible to solve efficiently, and the service will be unable to expand gracefully to do more interesting work. Feb 28 19:03:55 and his activity will be unable to expand to show more useful state information. Feb 28 19:05:28 he can actually ignore onStart, doesn't need to implement it at all Feb 28 19:05:54 but should override onStop() still. Feb 28 19:06:14 onStop nuke any running threads, of course. Feb 28 19:07:49 onStop should* Feb 28 19:11:27 you should also call stopSelf() when you're definitely done doing work. when the activity finally disconnects, the service will perish. Feb 28 19:28:47 sorry, i meant onDestroy :) Feb 28 19:30:01 i just looking at the example but there is no IRemoteService ?? Feb 28 19:31:07 android00: that's a class that they defined Feb 28 19:32:02 android00: http://www.helloandroid.com/node/140 Feb 28 19:34:30 there should be IRemoteService.aidl actually Feb 28 19:34:44 hm...but where is it defined? not in the example... Feb 28 19:34:45 and there is. Feb 28 19:34:49 android00: Yes, it is. Feb 28 19:35:00 android00: probably in IRemoteService.aidl right? Feb 28 19:35:04 IRemoteService.aidl generates IRemoteService.java using their build tools (it will happen automatically for Eclipse) Feb 28 19:35:58 IRemoteService mService = null; is marked red at my eclipse... Feb 28 19:36:19 do you have the most recent Eclipse plugin? Feb 28 19:36:57 yeas everything is working Feb 28 19:37:18 are you certain? humor me and confirm inside of Eclipse. Feb 28 19:39:10 IRemoteService mService = null; is marked red at my eclipse... it says cannot be resolved and wants to create a class IRemoteService but its not in the exampl Feb 28 19:39:24 confirm that you have the most recent Eclipse plugin is what I asked, obviously. Feb 28 19:39:34 not confirm that you are getting a build error. ugh. Feb 28 19:39:49 I installed it this week... Feb 28 19:39:56 ADT 0.4.0 is the most recent, an earlier version will not work. Feb 28 19:40:21 how have you opened the project then? Feb 28 19:40:41 ? Feb 28 19:40:51 forget it dude. Feb 28 19:41:14 version 0.4.0.200802081635 Feb 28 19:41:31 that is the correct version. Feb 28 19:41:38 is there a file IRemoteService.java in that folder? Feb 28 19:43:21 opened the wrong java file...ok let me look at the right one Feb 28 19:44:12 android00: this is for M3, but kinda explains how to create a service: http://www.helloandroid.com/node/140 Feb 28 19:44:28 my service is still working Feb 28 19:48:56 but whats the IRemoteService??? cant find this there? Feb 28 19:49:47 IRemoteServer.aidl Feb 28 19:50:03 ? Feb 28 19:50:19 this guy is hopeless Feb 28 19:50:47 android00: in the apidemos samples, under app, there is a file called IRemoteService.aidl Feb 28 19:50:57 it generates IRemoteService.java Feb 28 19:51:05 are you really this dense man? Feb 28 19:53:28 sorry i have really no clue its like talking different languages... IRemoteService.aidl under app is no file .aidl Feb 28 19:54:01 did you try looking outside of eclipse? Feb 28 19:54:18 i am looking on google.com/android .... Feb 28 19:54:25 don't Feb 28 19:54:40 look at the $SDK/sames/ApiDemos/ Feb 28 19:54:50 $SDK/samples/ApiDemos/ Feb 28 19:55:35 load the ApiDemos project into eclipse: File -> New -> Android Project -> From existing source -> select ApiDemos Feb 28 19:55:42 hm ok there is the file...tz Feb 28 19:57:05 lol Feb 28 19:58:04 romainguy: hehe, reimplemented my alphabet separator with a binary search tree :) Feb 28 19:58:55 still requires that you scan the cursor though. Feb 28 19:59:04 thats look to complex... i do really need all this ? Feb 28 19:59:19 android00: what you need is complex. your assumption that it is simple is wrong. Feb 28 19:59:54 its not complex ist like if service is running do this.. .. Feb 28 19:59:56 that said, it's still very easy to manage that complexity with android. Feb 28 20:00:10 easy != complex Feb 28 20:00:15 android00: then give up? is that what you're wanting to hear? Feb 28 20:01:12 sheesh dude. Feb 28 20:02:22 no the problem its to high for me to understand all this things... I programm 3 days now...my things are working...but simply to test if service is running....thats above my horizon at the moment...and i only wnat to use for stupid buttons to enable/disable them Feb 28 20:03:08 i'm sorry but i just don't care if you find this too complex. i can't change the interface, i can only help explain it to you and i have done that already. Feb 28 20:03:44 send jasta to the hospital, use the SharedPrefs hack Feb 28 20:03:47 yeah I know and appreciate this! Feb 28 20:04:14 i'm fine with you using the sahredpreferences hack now. it's clear you aren't well suited for thinking. Feb 28 20:04:42 hack? Feb 28 20:04:46 exsqueeze me? Feb 28 20:04:55 i thought it was documented and supported :D Feb 28 20:05:30 yeah, they work fine...the way they're being used in this case is a hack :) Feb 28 20:07:21 f00f-: he's using sharedpreferences to communicate with a fucking service. Feb 28 20:07:31 insane Feb 28 20:07:32 haha Feb 28 20:07:33 hahahahahaha Feb 28 20:07:33 rofl Feb 28 20:07:34 * f00f- dies Feb 28 20:08:06 sorry, but that's certainly a hack Feb 28 20:08:08 agree on that :) Feb 28 20:08:23 at the moment i dont use anything, because I dont know how to do it....and I DONT WANT TO COMMUNICATE WITH THE SERVICE Feb 28 20:09:16 android00: if you don't want to use a ServiceConnection, i suggest using broadcastIntent() and a bunch of IntentReceiver's... much more pleasant imho Feb 28 20:09:40 as long as you're communicating with things in the same process (probably yes) Feb 28 20:09:47 haha...endless circle Feb 28 20:09:57 everyone says a different think Feb 28 20:10:03 k=g Feb 28 20:10:06 android00: trust me, this is the best Feb 28 20:10:30 f00f-: won't work, he just wants to know if it's running or not... Feb 28 20:10:53 okay, may not work Feb 28 20:10:59 rethink/rearchitect your application Feb 28 20:11:13 lol? Feb 28 20:11:14 unless you broadcast an intent to ask if it's running and it broadcasts an intent back :) (I'm just fucking with jasta now) Feb 28 20:11:54 hahah Feb 28 20:13:13 well you could do my EAGAIN/EWOULDBLOCK thing or do some pingback, but that's really lame Feb 28 20:13:28 why not start the service if it's not running? Feb 28 20:14:37 hehe, the original question from 3 hours ago: Feb 28 20:14:42 f00f-: that's what i said, and just implement an interface atop the service for managing if it's busy doing something or not Feb 28 20:14:53 android00 > hi, can some one help me pls? how is it possible to know if my service is running or not? i want to programm an application, it has 2 buttons, 1 button is for start service and the other one is for stop service...but its not neccesary that the stop service button is enabled if the service isnt running? can someone give me a hint please? thx Feb 28 20:14:55 but he is certain that is too complex for him Feb 28 20:14:57 i only want 1 button in the activity enabled; if the service is running => button1 if a service is not running ==> button2 enabled Feb 28 20:16:19 well then a ServceConnection is the best, since it'll tell you if it's running or not based on whether it connects or not Feb 28 20:16:30 that's all i got Feb 28 20:16:37 yeah, but that starts the service Feb 28 20:17:09 oh? i thought you explicitly start it with an intent, hmm Feb 28 20:19:12 ok i have importet the aidl files now it shows no error with IRemoteService... Feb 28 20:20:05 I kept getting an error today "println needs a message" when I would catch a DeadObjectException and then Log.e(foo,e.getMessage) Feb 28 20:26:47 computers are cool Feb 28 20:30:13 okay I dont get it working....you know everything...so what do I need to change: public class test extends Activity { public void onCreate(){setContenView(a); if (servicerunning) {Button1.enable}else {Buton2.enable }+ Listener on them (startService(...))}} public class test2 extends Service{what do I need to add to my code?} Feb 28 20:41:59 let me try another thing, I can do the right thing later when I am more familliar with android...is there a possibillity to check if a specific process (by name) is running? because then I can run the service in a different process Feb 28 20:44:43 android00: http://davanum.wordpress.com/2007/12/18/android-task-manager-primitive-prototype/ Feb 28 20:56:06 Hecl has an updated version of that:-) Feb 28 20:56:46 what does audio recording give you right now? can it actually grab sound from the microphone? Feb 28 20:58:18 davidw: Hecl sounds like it's really coming along Feb 28 20:58:52 well... in fits and spurts Feb 28 20:59:17 once I had the reflection code in place, all the other stuff is pretty easy, although the reflection stuff itself still needs work, I do that as it comes up Feb 28 21:02:22 yawn Feb 28 21:04:34 thank you all for helping me!...I will leave in a few minutes Feb 28 21:25:57 mornin Feb 28 21:26:13 just saw the video by andy rubin on blip, cool device :) Feb 28 21:26:20 ^^ Feb 28 21:26:25 are there any other device videos out? :) Feb 28 21:26:42 romainguy, dont tell me the video is ages old :) Feb 28 21:27:38 ah Feb 28 21:27:38 ok Feb 28 21:28:03 cutmasta: I won't say anything :) Feb 28 21:28:15 ok , hehe Feb 28 21:28:17 just that it should reassure you regarding the performance of Android on real hardware Feb 28 21:28:20 so if anybody want to see Feb 28 21:28:39 i blogged it on androidportal.com Feb 28 21:29:45 btw., is the mailing list down? Feb 28 21:29:56 * davidw wonders why the verb 'write', which has worked quite well for 1000 years, has been supplanted by 'blog' if it involves a web site Feb 28 21:30:02 i did not get any mail from the android group since 24h Feb 28 21:35:59 hmm...i looked at some examples and they use IActivityManager.TaskInfo but I cant use it => cannot be resolved to a type Feb 28 21:37:36 heh Feb 28 22:32:19 quick question: does each device running android have a unique identifier? Feb 28 22:32:35 like a MAC address or equiv? Feb 28 22:39:04 if you want a unique identifier, you could use the IMEI Feb 28 22:39:24 http://code.google.com/android/reference/android/telephony/TelephonyProperties.html Feb 28 22:39:47 jasonchen: thanks... reading now... Feb 28 22:41:04 sweet. :) thanks. Feb 28 22:44:20 IMEI is very useful :) Feb 28 22:46:42 aksyn: yeah, it solves a few problems to be sure. :) Feb 28 22:46:53 eighty: i said something? Feb 28 22:46:59 doh Feb 28 22:47:04 eighty: lol, you made my dock icon bounce ;) Feb 28 22:47:08 sorry, i meant jasta. sorry aksyn. ;) Feb 28 22:47:12 haha Feb 28 22:47:22 * aksyn shuffles back under his rock Feb 28 22:47:26 heh Feb 28 22:54:21 aksyn: ? Feb 28 22:54:35 hehe, sorry, couldn't resist ;0 Feb 28 22:54:41 jasta: bah Feb 28 22:54:43 oh boy, today's a slow day at work Feb 28 23:53:10 so... can an android device act as a client and a second android device act like a server? like a remote ContentProvider or something? Feb 28 23:53:51 errr... so in general, can two devices talk to each other directly? Feb 28 23:55:17 sorry if this is a stoopid question. :} Feb 28 23:57:09 * eighty finds an answer: http://code.google.com/android/toolbox/google-apis.html Feb 28 23:57:17 eighty: gtalk is the answer Feb 28 23:57:44 but they arent talking directly Feb 28 23:57:54 that true Feb 28 23:58:00 thats Feb 28 23:58:09 so can i send XML via gtalk Feb 28 23:58:37 * eighty wants to retract that question :} Feb 28 23:58:51 you might want to send a lighter format Feb 29 00:01:28 zhobbs: can you recommend a lighter format? or you mean just create a format that works? Feb 29 00:02:06 not really...some people were saying json, but I don't know anything about it Feb 29 00:02:45 eighty: not really. the parser will grok if you try to send a raw XML stanza over gtalk data Feb 29 00:03:07 eighty: in addition, it will grok if you try to send escaped XML either using entity escaping or CDATA sections Feb 29 00:03:17 f00f: grok bad. thanks for da tip. Feb 29 00:03:28 it really depends on how complex/hirearchical your data will be Feb 29 00:03:33 right Feb 29 00:03:45 i'm just sending comma-delimited key/value pairs right now, so it's pretty linear for now Feb 29 00:03:54 so i use the intent.putString("x", "y") Feb 29 00:03:54 i'm thinking RPC via gtalk :) Feb 29 00:03:56 or whatever it is called Feb 29 00:04:01 heh Feb 29 00:04:15 yeah, they don't support much except double, float, int, String i guess Feb 29 00:04:16 :D Feb 29 00:04:40 how does gtalk address the device you want to message? Feb 29 00:04:56 by their JID Feb 29 00:05:04 ie. Google Talk username Feb 29 00:05:08 * eighty hits head with had Feb 29 00:05:11 right :) Feb 29 00:05:17 (had == hand) Feb 29 00:05:30 if it's done correctly, you should be able to address specific instances too Feb 29 00:05:33 like a resource Feb 29 00:05:43 foo@gmail.com/home Feb 29 00:05:45 foo@gmail.com/work Feb 29 00:05:45 etc. Feb 29 00:06:11 whoa... like the data a ContentProvider exposes? Feb 29 00:06:28 not really, just specific Jabber resources Feb 29 00:06:32 oh Feb 29 00:06:35 right Feb 29 00:06:36 if a user is logged in from their phone and the home machine Feb 29 00:06:44 right right Feb 29 00:07:08 because, if it's implemented as other jabber/xmpp servers are, the resource with the highest priority (ie. the one that logged in most recently), will get hte messages Feb 29 00:07:21 so you might *need* to address a specific resource Feb 29 00:07:28 such as their android device for your app to work :D Feb 29 00:07:34 yep Feb 29 00:07:35 :) Feb 29 00:07:37 that's one thing people haven't really talked about yet Feb 29 00:08:10 but you're trying to expose ContentProviders over data messaging? Feb 29 00:08:28 i'm trying to see if that's possible, yeah Feb 29 00:08:49 that would be pretty cool Feb 29 00:08:52 i want a RemoteContentProvider that can "connect" to another device Feb 29 00:09:07 maybe you'd have to implement a generic ContentProvider using reflection ... Feb 29 00:09:25 * eighty thinking... Feb 29 00:09:36 actually reflection might not be supported on android Feb 29 00:10:20 will investigate Feb 29 00:31:37 does using jxta (https://jxta.dev.java.net) with android make sense? are they compatible? Feb 29 00:52:31 * eighty finds a group reference: http://groups.google.com/group/android-developers/browse_thread/thread/f6d11f9acea4d894/d9948f1b2ccfaf40?lnk=gst&q=jxta#d9948f1b2ccfaf40 **** BEGIN LOGGING AT Fri Feb 29 03:59:32 2008 Feb 29 04:39:21 re Feb 29 04:52:30 good morning Feb 29 05:54:01 hello goodmorning Feb 29 05:54:41 so did anyone tried importing any other maps in android other than google maps Feb 29 06:08:56 hey anybosy in maps or gis project????????????????????? Feb 29 06:09:11 anybody.... there Feb 29 07:25:03 hello Feb 29 07:25:17 answer me any developer in maps Feb 29 07:25:42 what does bindService() return? Feb 29 07:26:50 marvinalone: according to the documentation : "If you have successfully bound to the service, true is returned; false is returned if the connection is not made so you will not receive the service object." Feb 29 07:27:48 am I looking at the wrong documentation? Feb 29 07:28:05 http://code.google.com/android/reference/android/content/Context.html#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int) ? Feb 29 07:28:38 I was looking at the one for ApplicationContext Feb 29 07:28:47 it just implements this abstract method Feb 29 07:28:58 ah Feb 29 07:29:14 is there a way to get more detailed information when your bindService fails? Feb 29 07:30:18 marvinalone Feb 29 07:30:22 can u help me Feb 29 07:30:35 romainguy Feb 29 07:30:51 sandesh: i doubt it, since i know very little about this Feb 29 07:30:56 sandesh: i can try though Feb 29 07:31:23 romainguy seems to be advanced Feb 29 07:31:28 i m begineer in android Feb 29 07:31:44 want to import openlayer map in android Feb 29 07:31:57 i m having js library for openlayers Feb 29 07:32:38 does the android browser not execute javascript? Feb 29 07:33:39 i want to do it through application Feb 29 07:33:53 import android.os.Bundle; Feb 29 07:33:53 import com.google.android.maps.MapActivity; Feb 29 07:33:53 public class mapviewer extends MapActivity { Feb 29 07:33:53 /** Called when the activity is first created. */ Feb 29 07:33:53 @Override Feb 29 07:33:56 public void onCreate(Bundle icicle) { Feb 29 07:33:58 super.onCreate(icicle); Feb 29 07:34:00 setContentView(R.layout.main); Feb 29 07:34:02 } Feb 29 07:34:04 } Feb 29 07:34:08 this is default google map for android Feb 29 07:34:17 woha, there is probably a pastebin fir this stuff Feb 29 07:34:17 i want openlayer map instead Feb 29 07:34:49 pastebin? Feb 29 07:35:00 sandesh: romainguy seems to be advanced << I actually work on Android Feb 29 07:35:13 ok romainguy Feb 29 07:35:17 u worked on maps Feb 29 07:35:26 nope Feb 29 07:35:34 but can u help me Feb 29 07:35:37 sandesh: http://en.wikipedia.org/wiki/Pastebin Feb 29 07:35:47 sandesh: depends on what you need :) Feb 29 07:36:04 i m having js library with me of open layers Feb 29 07:36:38 i want to import openlayer map in android through application Feb 29 07:36:48 instead of google map Feb 29 07:38:33 sandesh: i know nothing about MapActivity, but i would guess that you can't do that. Chances are that there is a browser activity or view that you could use that can run your javascript Feb 29 07:42:01 romainguy_: so i'm a bit at a loss with this. bindActivity returns false and I have no idea why Feb 29 07:42:09 I don't know either :) Feb 29 07:43:18 romainguy_: where do i look to find out what's wrong? is there a different call i can make, or a list of common things that make bindService fail, or something like tyhat? Feb 29 07:46:53 marvinalone: You should ask your question on the mailing list Feb 29 07:49:15 ah, that's a good idea. i'll join there. Feb 29 07:49:27 sorry, I work on the UI toolkit :) Feb 29 07:50:44 ah, that's why jasta was all over you yesterday :-) Feb 29 07:51:51 marvinalone: ? Feb 29 07:53:28 i was lurking when you were talking to jasta about configuring the listview to show music in the right way Feb 29 07:54:21 ah yes Feb 29 07:54:34 either way, i got it fixed. evidently i suck at paying attention to sample xml Feb 29 07:55:24 ^^ **** ENDING LOGGING AT Fri Feb 29 10:59:56 2008