**** BEGIN LOGGING AT Fri Nov 23 02:59:57 2007 Nov 23 04:30:23 can i install android on a sprint pds phone Nov 23 04:30:30 hTC mogul Nov 23 05:47:12 Hello Nov 23 06:00:16 Hi Nov 23 06:01:33 hi, anyone is thinking to use android on console game like NDS? Nov 23 06:02:10 seems stupid Nov 23 06:02:24 what would the purpose be? Nov 23 06:18:39 :D Nov 23 06:29:49 did you guys see the zaTelnet folks produced their telnet client for Android? Nov 23 06:29:54 kind of a test, but still, really cool Nov 23 06:58:16 alright, time for the hard part... Nov 23 06:58:24 writing a background Service Nov 23 07:41:55 bidibidibidi - what's up, Buck Nov 23 07:57:40 http://news.zdnet.co.uk/communications/0,1000000085,39291001,00.htm Nov 23 07:57:51 In the SDK, there is a scripting engine that allows remote test scripts to be run on the emulator on a phone. Nov 23 07:57:57 you guys know what that refers to? Nov 23 07:59:16 the adb? Nov 23 07:59:19 adb shell? Nov 23 07:59:54 ah yeah, that must be it Nov 23 09:04:51 Hmm, services are kind of complex to implement :) Nov 23 10:20:18 mornin Nov 23 10:24:17 hi Nov 23 10:40:11 jasta: don't have to be ;) I just got one running, and its hardly 100 lines of code including the manifest xml and the intent receiver to have it launch at startup Nov 23 10:40:31 Tomasu: I need my service to communicate with my GUI Activity. Nov 23 10:41:08 And I don't mean I need my Activity to talk to the service, I specifically mean the other way around. Nov 23 10:41:14 depends on how you want to do it, a Local Service is simple, you get to use the BinderNative class. Nov 23 10:41:19 The service should notify my GUI, when it is running, what it is doing. Nov 23 10:42:06 mine is pretty simple, all I need is for the service to notify the user that something has happened. Nov 23 10:42:14 the service and the gui are fairly separate Nov 23 10:42:22 that's essentially what i need to. how did you implement that? Nov 23 10:42:29 too* Nov 23 10:42:36 played with the NotificationManager Nov 23 10:42:44 I even get a nice little icon in the top tray Nov 23 10:42:45 :D Nov 23 10:42:46 oh, the user. Nov 23 10:42:49 not the GUI activity. Nov 23 10:42:56 nevermind, that's not what i need :) Nov 23 10:43:00 yeah, i was going to say, that doesn't sound like what you need :) Nov 23 10:43:33 also, if i want to establish a repeating alarm for my application, and have an intentfilter fired off, which starts my service to do some work, how would i do that persistently? Nov 23 10:43:41 wait, why cant you just launch an intent? Nov 23 10:43:57 obviously i don't want the Activity to be involved at all. the service should happen whether the user has opened the Activity or not. Nov 23 10:43:58 have your gui handle it, and you get notified Nov 23 10:44:54 Tomasu: That seems a little heavy for what I'm trying to do. Essentially, the service is downloading something periodically. It needs to inform the GUI of its progress so that the user can watch it, if he so wishes. Nov 23 10:45:10 using an intent isnt all that heavy Nov 23 10:45:18 Opening the Activity will watch the progress of the Service. Nov 23 10:45:19 its how the rest of android works Nov 23 10:45:37 and it makes it so the gui doesnt have to be running... Nov 23 10:45:47 that's also why it's not appropriate... Nov 23 10:45:56 how so? Nov 23 10:45:57 if the Activity that monitors the Service is not open, it should not open up. Nov 23 10:46:23 It is the user's prerogative to open the Activity to watch how the Service is doing. Nov 23 10:46:26 eh, I suppose, what youre describing seems a little "off" Nov 23 10:46:48 then yeah, you just get to use some idl then Nov 23 10:46:55 then bindService Nov 23 10:47:01 no, not at all. imagine you have implemented a download manager or something. the download should be going in a Service, since the GUI could be closed and it should still keep going. Nov 23 10:47:13 when you open the GUI, it should show you the progress that the Service is making. Nov 23 10:47:22 Im doing an RSS reader, all the data the gui needs is in the db ;) Nov 23 10:47:31 Tomasu: I'm also doing an RSS reader. Nov 23 10:47:33 so it doesnt need updates.. Nov 23 10:47:52 And mine does need updates. Nov 23 10:48:04 The refresh progress in mine will be shown to the user, when it is happening. Nov 23 10:48:38 I don't see that as being overly usefull in an embeded device ;D Nov 23 10:48:38 it'll be shown in the form of a intermediate progressbar showing next to the channel being refreshed. Nov 23 10:48:51 I might add it later, who knows. Nov 23 10:48:57 I'm just adding things a step at a time. Nov 23 10:49:06 Tomasu: me too, and this is my last step. Nov 23 10:49:11 :) Nov 23 10:49:27 perhaps you would like to see my source? :) Nov 23 10:49:28 well, this is my "last" step to get it to actually update feeds... Nov 23 10:49:37 mine already does update feeds hehe Nov 23 10:49:38 but theres still some more polishing to be done after Nov 23 10:50:36 All I need to do now is to get my Service to check if a feeds ttl is up, and then wham, create a Feed class, and it handles the db update.. Nov 23 10:50:37 did you choose to use a WebView to view feeds btw? Nov 23 10:50:50 Ill have the option. some feeds need it. Nov 23 10:51:03 for now its a simple custom view. Nov 23 10:51:41 all it really needs is a if(want_web_view) { content = new WebView... } instead of new TextView ;D Nov 23 10:52:14 eventually i plan to have a pre-parser that will be capable of natively handling a small set of HTML tags on its own and formatting them into a special TextView, otherwise it'll fallback to a WebView. Nov 23 10:52:23 ja Nov 23 10:52:32 so that feeds that do stupid shit like add a single

Read more

won't require a full WebView (they're really heavy) Nov 23 10:52:45 considering my Feed class can handle doing that even now, it wont be hard.. Nov 23 10:52:47 but feeds that do more elaborate things i don't want to handle will load one up Nov 23 10:53:06 i'm interested to see your source. do you have it posted anywhere? Nov 23 10:53:10 nope. Nov 23 10:53:27 can you package it up or are you not developing this openly? Nov 23 10:53:34 not open at the moment. Nov 23 10:53:44 hmm, well, ok. Nov 23 10:53:44 undecided ;) Nov 23 10:54:21 i'd recommend opening it, unless you think an RSS reader is a particularly innovative application that you have uniquely thought of. Nov 23 10:54:25 do you think that? :) Nov 23 10:54:49 haha no. specially since google will have its own reader... Nov 23 10:54:55 yeah Nov 23 10:55:03 i'm only writing this one to learn the framework Nov 23 10:55:31 actually, have you figured out how to have your service run on an interval without the Activity scheduling this? Nov 23 10:55:32 Ill probably release source once it actually works up to my standards... Nov 23 10:55:48 it seems like the manifest should be able to specify somewhere that you've got an IntentFilter to fire on these events? Nov 23 10:55:51 you can setup a Receiver and an Alarm class... Nov 23 10:56:16 I dont actually plan to have the service actually die though Nov 23 10:56:27 Tomasu: Really? That seems very sloppy. Nov 23 10:56:39 I dont see why it should, its so light weight... Nov 23 10:56:51 and the icon can be up there in the tray showing status.. Nov 23 10:57:07 like "updating", "no new", "new items" Nov 23 10:57:13 just by the color or whatever. Nov 23 10:57:41 damn... an rss reader... you stole my brilliant idea! ;-) Nov 23 10:57:44 you kind of have to weigh build-up/tear-down time against the cost of managing the service. Nov 23 10:58:04 which, in this case, seems pretty easy to do, since the service will only be busy for several seconds at best every what, hour? Nov 23 10:58:28 depends, some people like to have more feeds, and have private feeds that update every few minutes. Nov 23 10:58:45 and then theres waiting to retry feeds that timedout Nov 23 10:58:45 no one is going to want their cell phone to engage the radio every few minutes. it will die in hours. Nov 23 10:59:09 no kidding, thats why its mostly for wifi mode, or when the radio is actually on. Nov 23 10:59:36 uhh, wi-fi mode is still using a radio? Nov 23 10:59:44 takes less power? Nov 23 11:00:04 yeah, but it still isn't wise to operate it on a 3 minute interval Nov 23 11:00:07 many people actually just keep connected.. Nov 23 11:00:23 for my app itd be up to the user to keep the use down ;) Nov 23 11:00:37 well maybe not. Nov 23 11:00:43 well, anyway, i'm really curious how i can specify this Alarm in the manifest. Nov 23 11:00:45 undecided on a few things. Nov 23 11:01:14 have you taken a look at the api samples? specifically the Alarm samples? Nov 23 11:01:22 yes, all of them. Nov 23 11:01:52 i understand how to create a repeating alarm, i just don't know how to specify that it should always be there, even when the phone reboots and the user does not open my app. Nov 23 11:03:05 obviously this service should persist. Nov 23 11:05:02 s Nov 23 11:05:03 oops Nov 23 11:07:08 I can't see an obvious way to get android itself to give you wake up calls, even if youre not running... Nov 23 11:07:29 seems like something for a wishlist.. Nov 23 11:07:43 actually, the documentation says precisely that this is possible. Nov 23 11:07:52 but i just don't know how it exposes the functionality just yet. Nov 23 11:08:09 where in the docs? Nov 23 11:08:16 anatomy of an app, intentreceiver. Nov 23 11:08:18 I seem to recall it, but I never managed to actually see how.. Nov 23 11:10:48 they obviously thought about this already. Nov 23 11:11:38 I dont recall seeing any ways to register intent recievers to happen every X seconds or minutes, just for specific existing Intents. Nov 23 11:11:44 like BOOT_COMPLETED Nov 23 11:11:57 *specific existing actions Nov 23 11:12:22 well i suppose BOOT_COMPLETED would be sufficient, since you could set up the AlarmManager then. Nov 23 11:12:30 pretty much Nov 23 11:13:31 now Im off to check to see the name for the radio enabled/disabled actions.. Nov 23 11:15:41 they actually say specifically that's what BOOT_COMPLETED is for :) Nov 23 11:16:55 there has to be some sort of setting in android to specify when its "ok" for apps to make network requests.. Nov 23 11:18:34 Im going to "try" and make my app sane, since data use is VERY expensive up here... Nov 23 11:20:24 ah found them Nov 23 11:20:46 android.intent.action.DATA_ACTIVITY and android.intent.action.DATA_STATE Nov 23 11:21:28 course the connection state is more usefull Nov 23 11:23:32 hmm, have my service launch when ever it sees data state, and update then if it can.. Nov 23 11:57:38 hi * Nov 23 12:11:36 = fanfani? Nov 23 12:11:43 f = fanfani? I meant Nov 23 12:13:00 hi davidw how are you ? Nov 23 12:13:17 davidw: yes (andreaf -> fanfani) Nov 23 12:13:22 ok Nov 23 12:13:33 busy hacking on android stuff:-) Nov 23 12:14:05 davidw: are you in italy or in US ? i'm in turin, and studying android too Nov 23 12:14:15 Innsbruck, Austria Nov 23 12:14:19 davidw: better j2me imho (ok starting a flameware) Nov 23 12:14:24 my wife is doing her post-doc here Nov 23 12:14:39 yeah? how so? Nov 23 12:15:08 davidw: yeah i'm programming in j2me now, is a quite simple model Nov 23 12:15:44 davidW: but i'm still try to understand the model behind android (xml, activites and so) Nov 23 12:16:15 it's a bit odd...but I think I like it Nov 23 12:16:29 I'm hoping the source code comes out soonish Nov 23 12:17:27 davidw: i have yo go (lunch) see you later Nov 23 12:17:39 later Nov 23 12:21:12 * Stephmw perks up Nov 23 12:21:19 love the irssi hilighting :) Nov 23 12:31:52 hello Nov 23 13:16:58 hi there :-) Nov 23 13:27:55 is it possible to simulate an incoming call and to trigger an event when someone calls me on my android? Nov 23 13:37:30 I don't know how you simulate an incoming call but to catch the event you can use an IntentReceiver Nov 23 13:40:26 haavi, thanks Nov 23 13:40:31 i will have a look Nov 23 13:40:48 i try to catch the incoming call event and to trigger an action with the incoming phone number Nov 23 13:41:06 want to store that number in my application for example Nov 23 13:46:28 doesn't the icoming call app store the numbers that have called the phone somewhere? Nov 23 13:50:39 haavi, i think i found a way to simulate a call Nov 23 13:51:01 how? Nov 23 13:51:07 start emulator with -console Nov 23 13:51:21 i meant, a second one Nov 23 13:51:32 telnet localhost 5554 Nov 23 13:51:46 "gsm call 02761 1337" Nov 23 13:52:17 hmm Nov 23 13:52:21 found it on the web Nov 23 13:52:27 i should test it Nov 23 13:52:32 before i post it :) Nov 23 13:56:22 seems to work Nov 23 14:09:32 yeez, installing telnet on vista takes forever Nov 23 14:10:13 cutmasta: http://code.google.com/android/reference/android/content/Intent.html#ANSWER_ACTION Nov 23 14:11:30 haavi, thx Nov 23 14:11:37 but no input Nov 23 14:11:40 like number Nov 23 14:14:05 gsm call works like you said :) Nov 23 14:14:07 cool Nov 23 14:29:31 http://code.google.com/android/reference/android/provider/CallLog.html Nov 23 14:29:45 you have to get the phone numbers via a content provider I think Nov 23 14:31:09 set up an intent filter for ANSWER Action and then use that provider to get the numbers Nov 23 14:31:11 haavi, i need the fon number Nov 23 14:31:30 at the moment when the call comes in Nov 23 14:32:29 yeah but I think you have to get them from the content provider Nov 23 14:32:54 that's the only way applications can share information with each other Nov 23 14:33:59 hm Nov 23 14:34:41 wouldnt the phone number be included in the Intent? I havent looked but i would think it would be Nov 23 14:38:42 hm maybe not according to the docs Nov 23 16:23:47 Hello, yesterday I've asked here how to make a menu that looks like API Demos menu. I tried to copy the code in my app and now I've it working. Now I would to create my own menu, with items that direct to different functions of my app but I'm still not understanding in which file put the menu items.. Nov 23 16:23:59 anyone knows? Nov 23 16:28:43 no one can help? Nov 23 16:29:06 Be patient, it's a semi-holiday in the US, so people are still rubbing their tummies :-) Nov 23 16:30:14 folks fyi - GTalk client - http://davanum.wordpress.com/2007/11/23/totally-unofficial-android-gtalk-client-sendreceive-xmpp-messages/ Nov 23 16:30:57 Dralspire, wasn't Thanksgiving Day yesterday..? Nov 23 16:31:51 Well, yeah, but today is a big sale in many stores, plus a lot of companies make today a holiday, so I wouldn't hold my breath for too many US people being at the PC :-) Nov 23 16:33:23 Dralspire, ok:) I'm not US resident Nov 23 16:35:54 it's a holiday in any case Nov 23 16:36:04 Dang, nobody told me :P Nov 23 17:31:02 So anyway, this entire talk of US residency reminds me, my citizenship application is coming up ... Now there is a winning application :P Nov 23 17:31:45 Dralspire, lol :) Nov 23 17:32:04 haha write that in Android :P Nov 23 18:26:23 Hey all. Nov 23 18:33:35 hi there Nov 23 18:35:35 That's up? Nov 23 18:35:39 What's up* Nov 23 18:41:18 Just come across Android a couple of days ago :) Seems pretty impressive so far Nov 23 18:42:09 It's all right, isn't it :-) Nov 23 18:45:49 Yeah, the sdk is quite fun as well. Nov 23 18:46:16 Is there any speculation when the first device(s) will be around? I need a new phone and I don't wanna go buy a WM device if this comes along a few months later Nov 23 18:46:24 mid next year Nov 23 18:47:07 damn. WM device for now it is then :( Nov 23 18:47:33 why dont you get a n95 then ? Nov 23 18:47:52 To be honest I'm not fond of it. Nov 23 18:48:08 I've used one twice, the last time I had it for a couple of days. Nov 23 18:48:43 The battery life is crud. Multimedia on it was great and the camera is awesome but beyond that it's over priced and not what I'm looking for. Nov 23 18:49:21 do you want a phone ? Nov 23 18:49:24 or n810 is good for you ? Nov 23 18:49:57 A phone preferably. Nov 23 18:50:19 I've been looking at the HTC S730 Nov 23 18:52:55 The n810 does look interesting though Nov 23 20:56:00 yawn Nov 23 20:57:02 has anyone here played assasin's creed yet/ Nov 23 21:32:25 is this an official google channel? Nov 23 21:32:36 if not, who admins it? Nov 23 21:34:12 google engineers hang around, so probably. Nov 23 21:39:10 kk sounds good Nov 23 21:42:17 How's your service coming jasta? Nov 23 21:43:41 not great, actually. Nov 23 21:43:55 i got it all hooked up to run at device boot and scheduled on an interval to do its work Nov 23 21:44:08 but i can't figure out a way to get the Service to notify the Activity of what it's doing. Nov 23 21:44:44 it seems that Android has a polling interface between Activity and Service classes. The Activity would need to periodically ask the Service what's going on, rather than letting the Service make announcements to listening Activity classes. Nov 23 21:49:15 might need to go post on the Google Groups asking for help... Nov 23 21:49:32 polling on a mobile device? in code done by google? I can't believe they'd use polling unless there was some very good reason some kind of event notification system wasn't possible. Nov 23 21:50:00 Traveler9: you're making too many assumptions about specifically what i mean. Nov 23 21:50:41 plus, it only seems that way since there are no ApiDemos that work the other way. Nov 23 21:50:49 ah - I see - missed the start of the conversation then... don't mind me... Nov 23 21:52:27 sorry about that, Nov 23 21:52:36 Can't you broadcast an intent? Nov 23 21:52:57 Nescio: that's what someone had suggested last night, but i just don't think that's appropriate. Nov 23 21:53:06 the intent infrastructure seems to heavy-weight for this type of IPC. Nov 23 21:53:40 the IBinder interfaces gives me an efficient IPC link between Service and Activity, and it seems that there should be some way to leverage that to have the service make requests to the activity, instead of only the other way around. Nov 23 21:54:03 so the activity could bindService() and just start getting blasted with messages indicating activity. Nov 23 21:54:17 hmm... Nov 23 21:54:59 Well, this is RSS, right? Nov 23 21:56:46 It seems that one would only need to poll the service like every 15mins... so, broadcasting an intent doesn't seem like that much overhead. Nov 23 21:56:53 Or am I missing something? Nov 23 21:59:12 I really haven't messed around with intents yet... so maybe I'm just naive Nov 23 21:59:32 this is interesting, i'm looking for a better way for a service to communicate back to an activity myself. i considerd some kind of callback but i dunno if that would work. i was gonna use Intents and benchmark it first Nov 23 22:04:15 an IntentReciever should do the trick imo Nov 23 22:05:59 feeds don't need to be updated that often anyway Nov 23 22:06:11 most feeds don't get updated more than once per hour anyway Nov 23 22:06:29 * Nescio *nod* Nov 23 22:07:25 yeah if its feeds it should be fine. mine is passing network data up, where a message could come in every few seconds potentially Nov 23 22:07:46 haavi: it's more being able to tell the user what the service is doing if it (the service) is active Nov 23 22:08:27 okay Nov 23 22:10:35 you could use Notifications inside the service itself for that Nov 23 22:11:59 cybereagle2: but you wouldn't want the service notifying the user every time it was performing an update, it'd just be nice to be able to display a little status message when the the Activity is up Nov 23 22:12:35 oops Nov 23 22:12:42 s/the the/the/ Nov 23 22:12:48 freaking tired Nov 23 22:14:41 well you could pass some shared variable, have to mutex it, but you could flag something in there the activity could check Nov 23 22:14:44 would be a lot more lightweight Nov 23 22:14:56 but it does sound like thats what broadcast intents are designed for Nov 23 22:17:30 I would just put a friggin refresh button somewhere that refreshed my feeds :) Nov 23 22:17:58 you gotta think of the "user experience" ;) Nov 23 22:18:23 if i randomly flash a bikini babeon the screen the user will have a great experience. give me my 25 thousand dollars Nov 23 22:18:24 ;) Nov 23 22:18:52 haha Nov 23 22:19:06 I'd put my vote on that app! Nov 23 22:19:23 LoL Nov 23 22:35:09 this is killing me not being able to look at the code, though :( Nov 23 22:35:20 i'd love to see how the IXmppService is implemented. Nov 23 22:36:54 yeah, i'm working on a similar set of services, so that would def help lol Nov 23 22:44:00 hi * Nov 23 22:44:04 hi Nov 23 22:44:37 perhaps an IntentReceiver is really the right way to do this. i'm just considered about the efficiency of this approach. Nov 23 22:47:54 well i know it feels wrong to make objects all the time, but it is built in to android, so it cant be that inefficient i would imagine Nov 23 22:54:49 err, i meant concerned* Nov 23 22:55:00 cybereagle: it just seems silly when i have an IPC interface established between client and service already Nov 23 22:55:13 why on earth wouldn't i be able to pass messages in both directions using that interface? Nov 23 22:56:21 jasta, yeah i find that a bit annoying also Nov 23 22:56:54 but they also have the whole late binding thing, so people could replace what responds to your Service events if they want Nov 23 22:57:03 so i guess they focus on the Intent mechanism rather than the ipc Nov 23 23:29:07 is there any specyfic thing i should do to be able to connect to internet ? Nov 23 23:29:28 disable your firewall Nov 23 23:29:42 i don't use firewall Nov 23 23:29:53 disable all network adaptors on the system except the one with internet access Nov 23 23:29:55 it sould seem calling close() on a socket doesnt create an IOException in this vm. guess i'll have to use nio Nov 23 23:30:23 ie. if you have wireless and ethernet, disable the one you aren't using Nov 23 23:31:07 tumdum: on windows that would be control panel > network connections > right click the one to disable and click disable Nov 23 23:31:24 tumdum: then restart the emulator and test the web brwser Nov 23 23:31:33 Traveler7: i don't use windows Nov 23 23:32:21 the same applies to the android emulator on all OS's tho appaantly - the linux fix is probably to just run ifdown on the other interfaces Nov 23 23:32:22 still no connection :/ Nov 23 23:32:22 linux? Nov 23 23:32:54 yes, but disabling all but one net. interface didn't help Nov 23 23:33:03 :( Nov 23 23:34:50 tumdumL is a proxy used on your connection? Nov 23 23:35:26 no, no proxy Nov 23 23:36:02 tumdum: apparantly proxy's need some special set up - there was a google groups post about it which had a few solutions suggested, which between them seemed to solve most peoples problems - can't find the post now tho. Nov 23 23:36:23 lol sometimes I nappy like a bear Nov 23 23:37:46 btw. are there any tutorials on using opengl in android? Nov 23 23:45:17 That's a good question actually. I don't think I have seen any yet. Nov 24 00:02:56 that's interesting - it seems that my emulator can't use dns. when i go to an ip adress everything works :| Nov 24 00:07:41 * Dralspire giggles Nov 24 00:11:15 tumtum: that would be an emulator OS problem or higher - the actual emulation conects the virtual machine at layer 2 or layer 3 Nov 24 00:12:23 tumdum, have you tried this: http://code.google.com/android/reference/emulator.html#troubleshooting ? Nov 24 00:15:26 haavi: that tip about dns is for osx Nov 24 00:15:45 yes Nov 24 00:16:04 switch OS! Nov 24 00:16:16 osx sux Nov 24 00:16:31 but its got troubleshooting Nov 24 00:16:50 i prefer linux over stupid osx Nov 24 00:16:53 :P Nov 24 00:17:50 .. Nov 24 00:18:03 ignorance Nov 24 00:20:56 been there, done that. i'm not stupid enough to use osx ;) Nov 24 00:32:12 lol if your fine with linux have it Nov 24 00:32:32 for my linux just is a royal pain Nov 24 00:32:43 good for command line though Nov 24 00:32:47 i use linux cli all the time **** ENDING LOGGING AT Sat Nov 24 02:59:57 2007