**** BEGIN LOGGING AT Tue Nov 20 02:59:57 2007 Nov 20 03:15:19 teehee, this just really tickles me. Nov 20 03:16:00 I just have to share... Nov 20 03:19:09 lol Nov 20 03:45:37 http://jasta.dyndns.org/android-rss.jpg Nov 20 03:45:38 hehe Nov 20 03:46:14 zomg i know ur codes Nov 20 03:46:35 for some reason, my window manager borders got cut off when i took a screenshot, oh wel. Nov 20 03:46:38 well* Nov 20 03:46:59 duey: uhh, you'll know them much better when i open access to the cvs repository at the end of the week. Nov 20 03:47:19 lol Nov 20 03:47:29 jasta: can u give me that link to the symbian article? Nov 20 03:47:48 from the preview it sounds like symbian is crying Nov 20 03:47:49 i'm just amused by the irony of testing my Android RSS reader and i randomly found that :) Nov 20 03:48:05 everyone is crying. the news is all negative against Android from all the people who desperately need it to fail :) Nov 20 03:48:11 indeed Nov 20 03:48:15 i think its great Nov 20 03:48:31 me too. the response was so sudden that it just makes you chuckle. Nov 20 03:48:52 days after google makes an announcement, all of the competitors come out of the woodwork saying "no, no, ignore them, ignore them please!!!!!" :) Nov 20 03:49:07 anyway, it's on smartphonethoughts.com, you should be able to find it. Nov 20 03:50:08 duey: i'm planning to release this RSS reader app as a kind of tutorial. Nov 20 03:50:33 for what a complete, functional app looks like. Nov 20 03:50:47 gotta start working on notifications and stuff now. Nov 20 03:50:56 and a background service that downloads new posts every hour Nov 20 03:51:01 instead of making the user click "refresh" like they do now Nov 20 03:51:30 you could probably get webkit to do all the work for you Nov 20 03:51:44 all what work? Nov 20 03:51:52 gui display Nov 20 03:51:59 for the entire app? that's ridiculous. Nov 20 03:52:04 what is this, an iphone? Nov 20 03:52:05 is it really? Nov 20 03:52:09 yes, it's totally ridiculous. Nov 20 03:52:26 and yes Nov 20 03:52:29 its an iphone clone Nov 20 03:52:30 from top to bottom Nov 20 03:52:36 webkit? Nov 20 03:52:39 iphone uses webkit Nov 20 03:52:43 it even has iphone icons! Nov 20 03:52:53 linux? the iphone uses linux. open source? the iphone is open source. oh yeah, i see your point now. Nov 20 03:53:26 iphone is darwin/bsd Nov 20 03:54:02 i refuse to be bated by your obvious trolling, sir. Nov 20 03:54:11 lol Nov 20 03:54:12 back to writing software on this wonderful, open platform. Nov 20 03:55:05 it isn't true, it can't be! I CANT HEAR YOU!! Nov 20 04:02:17 hehe Nov 20 04:02:23 duey, biut you cannot run native code on android Nov 20 04:03:22 duey, what is the relationship between webkit and java UI? Nov 20 04:30:13 I set up eclipse and android at home at it's running fine. I've tried to set it up at work, and when I run a project, it runs the emulator - but doesnt push the application to it. While the emulator is running I tried "adb shell" and it says - *daemon not running* error:no device. I tried doing an "adb kill-server". I've also tried following suggestions from this thread: http://groups.google.com/g Nov 20 04:30:15 roup/android-developers/browse_thread/thread/4f460845bb7d5747/94d01ab9e0d252bf?lnk=gst& but no go! Does anyone know what else i might check? Nov 20 04:31:29 (ive also done "reset adb" from the ddms menu in eclipse) Nov 20 04:40:00 and done a little jig. Nov 20 04:40:06 for good luck. Nov 20 04:49:30 mrspeaker: which eclipse version? Nov 20 04:51:31 eclipse version 3.3.1.1 - with the m3-rc22a version of the sdk. When i set this up the first time it was with the orignial version of the sdk, which I later updated. now I have just used the new version of the sdk. If that makes any difference! Nov 20 04:53:21 also, my work machine is "locked down" more than my home machine... is there anything that might be blocking the eclipse talking to the emulator? Nov 20 04:53:55 good question Nov 20 04:59:09 i think i read about issues with certain launch configurations, but i cant find it anymore Nov 20 04:59:19 ever tried the DDMS view? Nov 20 05:05:34 yeah - thats where I did the "reset adb" command from (I have to do that sometimes on my other machine when it doesnt push the app). i think its a sign anyway - the your're-really-not-supposed-to-be-doing-this-at-work sign. Nov 20 05:06:21 nothing in the log? Nov 20 05:19:25 hmmm... no not a thing? how do I get it logging?! Nov 20 05:20:27 actually - when I hit run, a console window pops up briefly and says "Ping not..." and that's all I can read before the window closes ;) Nov 20 05:22:37 you want to open the logcat eclipse view Nov 20 05:31:26 http://www.blinkerfluid.org/logcat.jpg Nov 20 05:31:37 that's what it should look like Nov 20 05:33:54 hmmm my DDMS view has no entries - no "devices", nothing in processes, file expplorer, logcat... it's just blank. Nov 20 05:36:09 but the emulator launches? Nov 20 05:39:02 yeah - emulator launches to the home screen, but the app isn't pushed to it. Nov 20 05:40:36 strange Nov 20 05:44:50 i think i must have a blocked port or some-such... time to search the docs! Nov 20 05:44:59 good morning Nov 20 05:45:42 mrspeaker: good luck :) Nov 20 05:45:48 Zoolooc: good morning Nov 20 06:04:10 mrspeaker: should be tcp port 5555 the emu is listening on Nov 20 06:44:23 eh, going home where it works real-good. Thanks for all your help though gang! Nov 20 08:36:28 morning Nov 20 09:00:04 ehlo Nov 20 11:25:26 anyone know what these inflateParams are? Nov 20 11:28:42 dammit, I want source code:-/ Nov 20 11:32:58 you *can't* handle source code. Nov 20 11:34:59 hahah Nov 20 11:35:25 "You want the source code? You can't HANDLE the source code!" Nov 20 11:51:07 Morning all :-) Nov 20 11:51:35 morning Dralspire Nov 20 11:51:48 morning Nov 20 13:23:45 Dralspire, i just updated the board i mentioned some days ago Nov 20 13:24:00 yay :-) Nov 20 13:24:03 wanna register? :) Nov 20 13:24:10 let's take a look :-) Nov 20 13:24:24 and share the link with the channel :-) Nov 20 13:24:37 http://forum.android-portal.com/ Nov 20 13:24:39 :) Nov 20 13:24:56 yay orange :-) (I like orange :D) Nov 20 13:24:58 i have to link it to the main page Nov 20 13:25:02 me too Dralspire Nov 20 13:29:33 It's good you got it set up :-) Nov 20 13:50:25 sorry for the double post to all who read the developers mailing list Nov 20 14:13:47 is jythonc working with Dalvik? Nov 20 14:13:56 jython you mean Nov 20 14:14:18 it should work, but it wouldn't support all android's api Nov 20 14:14:20 gpolo nop, the bytecode compiler of jython Nov 20 14:14:50 to use the bytecode compiler you used something like.. jython, right ? Nov 20 14:15:11 the command is jythonc, yes Nov 20 14:15:16 i know what is the command Nov 20 14:15:30 but what provides it ? Nov 20 14:15:32 it is jython Nov 20 14:15:36 ok, im not continuing with this Nov 20 14:15:41 as i understand the bytcode of dalvik is not compatible with suns, right? Nov 20 14:15:51 android has a tool called dx Nov 20 14:15:57 that converts java bytecode to dalvik Nov 20 14:16:06 gpolo ah okay, thanks! Nov 20 15:20:06 Hello everyone :) Nov 20 15:20:13 Hi hi :-) Nov 20 15:20:51 I wish I could stay home all day.. Between the groups and IRC, I just had like an hours worth of reading to do >.< Nov 20 15:21:07 now I'm late for werks... Nov 20 15:21:10 :-) Nov 20 15:21:15 heh, cya Nov 20 15:31:14 hi all, any google/android devs in the room? Nov 20 15:37:17 dims: I can see at least one Nov 20 15:51:10 dims! Nov 20 15:51:21 you still working on web service security? Nov 20 16:02:07 Essington: sometimes :) Nov 20 16:03:51 Essington: So, how are you doing? What have u been upto :) Nov 20 16:04:12 dims: I've been working with GWT Nov 20 16:04:39 and a bit with bouncy castle openpgp stuff Nov 20 16:04:55 separate projects Nov 20 17:16:14 Hi, does someone know the number of people working at Google for Android (i.e developers) ? Nov 20 17:17:05 That would be interesting to know. Nov 20 17:17:15 is it for a study ? Nov 20 17:17:27 Heard that they're around 50 at Trolltech working on Qtopia Nov 20 17:17:42 woah Nov 20 17:17:56 50?? Nov 20 17:20:16 Lede: http://lists.openmoko.org/pipermail/openmoko-devel/2007-November/001704.html Nov 20 17:20:40 I remembered wrong, it wasn't 50 at Trolltech, 50 developers Nov 20 17:20:56 So don't quote me on that first thing ;) Nov 20 17:23:42 hm Nov 20 17:25:27 why arnt there more frequent updates on the official android blog anyway, like adressing problems and what is being worked on Nov 20 17:26:03 because then they wouldnt get any real work done Nov 20 17:26:42 hehe Nov 20 17:27:15 :) Nov 20 17:27:53 they cant even ship a updated version of adb in a new package Nov 20 17:27:56 >_> Nov 20 17:28:09 "-version now shows version number" uh yeah right Nov 20 17:28:32 And someone know when Android project has started? Nov 20 17:29:06 edu, 12.11.2007 Nov 20 17:29:22 google acquired the company in 2005 Nov 20 17:31:13 no no, the date when the team Android group started... does someone know? Nov 20 17:31:14 I mean, I'd like to know more info about Android Team... Nov 20 17:31:34 Lede: thanks 2005 Nov 20 17:32:09 edu: i check the wikipedia article, so you might find more useful information there Nov 20 17:32:16 s/check/checked Nov 20 17:32:31 Lede: thks Nov 20 17:38:14 hmmm. Nov 20 18:50:09 * morrildl is back Nov 20 18:50:40 morrildl: hello Nov 20 18:52:12 morrildl: not a major problem, but the adb shipped with android_sdk_linux_m3-rc22a is the same one as in android_sdk_linux_m3-rc20a, according to the release notes of the newer it should have a minor change (adb -version should return version number) Nov 20 18:53:01 morrildl: i have one more question, are there plans for supporting .svg files? Nov 20 18:53:07 :> Nov 20 18:55:29 version doesn't seem to work does it... oh well Nov 20 18:56:54 Lede: interesting, thanks for letting me know Nov 20 18:57:51 Lede: not currently. It should be possible to build an SVG engine using the Android/SGL primitives, but there are no current plans to do so (we don't have any use cases for it yet) Nov 20 18:58:36 i hope you find use cases for it :) Nov 20 18:58:37 morrildl, I have one I've been thinking about some... you have all these XML attribute names that parallel a bunch of Java methods. Wouldn't it be cool to simply use the xml attributes? setAttr(String name, value) where value could be various types Nov 20 18:58:50 it would be handy for me at least:-) Nov 20 19:00:19 davidw: I'm not sure I follow, can you give an example? Nov 20 19:00:28 hi Nov 20 19:01:08 anybody knows how can i get the current user home path? Nov 20 19:01:33 morrildl, ok, for instance, TextView: android:capitalize setInputMethod(InputMethod) or android:height setHeight(int) Nov 20 19:01:59 morrildl, I was contemplating the possibility of utilizing the xml attribute names from Java Nov 20 19:03:24 nobody? Nov 20 19:03:38 are "layouts" similar to "content panes" or "panels" Nov 20 19:04:37 yeap Nov 20 19:04:43 or form, containers Nov 20 19:04:46 :P Nov 20 19:05:50 hmm.. i wish there was a simple guide explaining how the hierarchy should be set up (with pictures) Nov 20 19:06:14 im very visual. reading through the code isnt all that exciting to me Nov 20 19:06:51 ViaToR_SG: why do you need it? Nov 20 19:07:45 davidw: I guess I still don't understand your use case. It sounds like you're already using Android's XML-based layout... How would you use SVG in that scenario? Nov 20 19:08:09 morrildl, svg is someone else's question Nov 20 19:08:23 davidw: ah, that would explain my confusion :) Nov 20 19:08:51 morrildl: i'm making a open final dialog and I would add a home button Nov 20 19:08:55 then... Nov 20 19:09:06 I need user home path Nov 20 19:09:11 I try System.getProperty("user.dir") Nov 20 19:09:14 but not working Nov 20 19:09:14 ViaToR_SG: there is no concept of a user home path Nov 20 19:09:22 each application has its own user ID Nov 20 19:09:36 e Nov 20 19:09:53 Also, in general applications will not be able to access the entire filesystem but instead only a tree they own Nov 20 19:10:18 For instance, eventually you probably won't be able to access files in / Nov 20 19:10:28 As I recall, those access restrictions aren't all implemented yet though Nov 20 19:10:46 the path /sdcard will be an exception, of course Nov 20 19:11:44 the final access restrictions policy hasn't yet been decided. I think it may come eventually end up just being permissions-based: that is, /sdcard will be world-readable and probably world-writable so all apps will be able to access it. Otherwise applications will probably only have permission to see their own files Nov 20 19:12:24 mmm... and if i would save my pictures or mp3 in native memory??? Nov 20 19:12:32 I cant? Nov 20 19:12:52 ViaToR_SG: you can, but they will be stored in a particular application's tree Nov 20 19:13:31 If you connect an Android device to a PC, it will appear as a USB mass storage device, but that will only allow you to access the contents of the external storage (e.g. SD card) Nov 20 19:13:39 ... ok then... the home path of this case... I suposse that its app path Nov 20 19:13:55 Users won't be able to drag/drop files onto the built-in memory, in other words Nov 20 19:14:07 right Nov 20 19:14:23 thx :) Nov 20 19:14:43 ViaToR_SG: you probably want /data/app/ Nov 20 19:14:56 specifically, /data/app/ Nov 20 19:15:13 oops, sorry Nov 20 19:15:25 I meant /data/data/ Nov 20 19:15:34 /data/app is for .apk files that are installed Nov 20 19:15:47 /data/data/* is for application data. For instance if you create a SQLite database the files get stored there Nov 20 19:17:22 i need to store mp3 files... Nov 20 19:17:52 but the "." application path is "/" xD Nov 20 19:20:11 hi Nov 20 19:20:22 ViaToR_SG: you should be able to access /data/data/ Nov 20 19:22:50 yes i know... but i would do some more raltive... I want not scpecificate "/data/app/myapp/"... I would something like ".", init... Nov 20 19:23:12 but ".", nows, link to root Nov 20 19:23:21 ViaToR_SG: okay -- I'll mention that to the folks working on the filesystem stuff Nov 20 19:26:33 how do I view the "title_editor" layout in the NotePad application? I dont see any place to edit a title Nov 20 19:26:42 thx morrildl :) Nov 20 19:28:07 d03boy: the title_editor.xml file contains an EditText field? Nov 20 19:28:33 ya, and a button.. Nov 20 19:30:37 I like how the adb package install thing kicks you out of your running app - that's handy to eliminate one extra step when debugging/reloading Nov 20 19:30:57 davidw: yeah :) Nov 20 19:31:20 I like how overwriting a package doesn't require a lengthy reboot, unlike some platforms! :) Nov 20 19:31:28 * orrc glowers at the BlackBerry Nov 20 19:31:39 BB is poopy Nov 20 19:32:33 it is indeed. if only I could work write android applications instead! Nov 20 19:35:21 er, work *writing* android apps Nov 20 19:36:24 * Dralspire giggles Nov 20 19:37:02 morrildl: can you say how simulating SMS is going to work? Nov 20 19:44:40 ViaToR_SG: see the method Nov 20 19:44:49 ViaToR_SG: see the method Context.getFileStreamPath(String) Nov 20 19:45:09 That will return you a File object which you should be able to use to figure out the directory name Nov 20 19:45:38 It's a little bit of a kludge, because it seems like there should be a method to just request that directory name straight up, but for now that should get you running in a reasonably "standard" way Nov 20 19:46:30 orrc: what do you mean by "simulating"? Nov 20 19:47:36 morrildl: simulating SMS messages to/from the device, since the emulator doesn't have GSM access Nov 20 19:48:47 orrc: let me check into that Nov 20 19:49:10 thanks! Nov 20 19:49:44 well... I'm using /data/app + AppName now... works tmp Nov 20 19:57:10 evening Nov 20 19:57:52 guardian: evenin' Nov 20 20:07:02 orrc: currently there's no way to do that, but we are working on it now Nov 20 20:09:21 morrildl: ah ok, I didn't think it was possible just now; I was just curious as to how it's planned to work. thanks for checking into it. Nov 20 20:14:29 morrildl what is your function at google if i may ask, are you directly involved with android? Nov 20 20:16:49 oh wait, woops Nov 20 20:16:52 you are Dan Morrill Nov 20 20:16:53 ._O Nov 20 20:17:11 * Lede bows Nov 20 20:18:35 Lede: right :) Nov 20 20:19:18 * Dralspire giggles Nov 20 20:26:50 wow, 108 users Nov 20 20:26:59 Does anyone how I can style the text I pass to a ListAdapter? Nov 20 20:27:47 I've got to make the text spannable somehow, but in the faq it says you do that by using setText and the flag TextView.BufferType.SPANNABLE Nov 20 20:27:57 morrildl: 107 ;) Nov 20 20:28:15 univac: eh, it was less than a 1% change, so it doesn't matter ;) Nov 20 20:28:29 ;-) Nov 20 20:28:41 haavi: are you referring to the per-row text? Nov 20 20:28:48 yes Nov 20 20:29:02 what are you trying to span? Nov 20 20:29:21 the text I pass to my ListAdapter Nov 20 20:29:28 the ArrayList Nov 20 20:29:41 right, but span across what? Nov 20 20:29:46 Are you using a TableLayout...? Nov 20 20:30:28 ListView Nov 20 20:31:26 ListAdapter adapter = new ArrayAdapter(this, Nov 20 20:31:26 R.layout.project_row, Nov 20 20:31:26 projectNames); Nov 20 20:31:26 setListAdapter(adapter); Nov 20 20:31:43 I need to style the text in projectNames somehow Nov 20 20:32:24 haavi: right, that's generally what you do in your project_row.xml file Nov 20 20:32:32 project_row is a TextView Nov 20 20:32:43 then there's nothing to span Nov 20 20:32:56 yeah but I have to do it programatically because what I have to style depends on certain criterias Nov 20 20:33:04 haavi: ahh Nov 20 20:33:13 Then you'll need to subclass ListAdapter and build in your own logic Nov 20 20:33:24 ok.. Nov 20 20:33:35 The ListAdapters generally just map names from data you provide to XML id-s in the layout Nov 20 20:34:01 it's a simple one-to-one mapping, so if you need more sophisticated styling as you describe, you'll need to handle it yourself Nov 20 20:34:29 yeah so I have to extend ListAdapter and then override getView? Nov 20 20:34:41 haavi: that sounds right, yes Nov 20 20:34:42 or how does it set up the views for each row? Nov 20 20:34:54 getView should be called once for each row Nov 20 20:34:55 let me check Nov 20 20:35:43 haavi: yes, that looks right Nov 20 20:35:52 ok I'll try Nov 20 20:35:56 thanks alot Nov 20 20:36:12 np! Nov 20 21:43:22 this faq wasn't in the faq I was reading: where are the phones? Nov 20 21:43:59 nowhere Nov 20 21:44:12 non-existant Nov 20 21:44:13 Nada Nov 20 21:44:16 yet =) Nov 20 21:44:23 ok Nov 20 21:44:48 release early release often software first Nov 20 21:46:37 agile Nov 20 21:46:49 heh Nov 20 21:47:10 wow that must suck having an alias with such a common programming word Nov 20 21:48:22 /nick android Nov 20 21:48:24 it wasn't quite as common when I began using it but it's always nice to hear none-the-less Nov 20 21:48:36 lol Nov 20 21:48:38 :D Nov 20 21:55:20 does anybody know if there's a way to control transitions between Activities? Nov 20 21:55:42 for example, when you first start your main Activity, it sort of fades and zooms in Nov 20 21:56:21 is there a way to control that yourself? so you could create an iPod-esque slide transition between screens etc. Nov 20 22:07:48 morrildl, do you have any idea what sort of Map one should pass to a widget's constructor? new Button(Context, AttributeSet, Map) Nov 20 22:08:09 or is that just something that's impossible to hijack for one's own purposes... Nov 20 22:08:43 is that a java.util.Map or is that a GPS map? Nov 20 22:08:50 java.util.Map Nov 20 22:09:31 surely it doesn't matter, otherwise the constructor would require a specific Map implementation? Nov 20 22:09:56 I think he's asking what the map should contain, not the implmeemntatino Nov 20 22:11:02 yeah.... it's not documented much, other than to say that it's basically used to create stuff from XML Nov 20 22:11:05 ah, ok Nov 20 22:12:40 public Button(Context context, AttributeSet attrs, Map inflateParams) Nov 20 22:12:54 i think its for the icon? Nov 20 22:12:56 maybe Nov 20 22:14:17 "Additional run-time inflation parameters." says the docs. not so handy :) Nov 20 22:15:18 the WidgetInflate docs expand on that a bit saying, "Currently, this parameter is only intended to be used internally by Android." Nov 20 22:15:28 inflateParams Optional map of additional attribute name/value pairs to apply to the root element. Can be null. Currently, this parameter is only intended to be used internally by Android. Nov 20 22:15:49 http://code.google.com/android/reference/android/view/ViewInflate.html Nov 20 22:16:48 davidw: the process of building an in-memory representation of a layout defined in XML is known as "inflating" the layout Nov 20 22:16:49 aha, that's a little bit more info at least Nov 20 22:17:15 * d03boy insists someone write that down Nov 20 22:17:30 The various layout parameters from the XML (like width and height and so on) need to get passed to the in-memory object Nov 20 22:17:36 That's basically what that Map is for Nov 20 22:17:41 you could probably use it, but I wouldn't bother Nov 20 22:17:52 you sure that's not what the AttributeSet is for? Nov 20 22:18:00 lol Nov 20 22:18:22 well, they're both used, I think Nov 20 22:18:35 I'm just not sure what each one does Nov 20 22:18:41 So, is there any way to reuse an Activity or improve efficiency of layout and view construction? Nov 20 22:19:03 Imagine an app that shows an activity listing entries, and when you click on an enry, it shows the entry text as a separate Activity;. Nov 20 22:19:19 then, the user presses back, which destroys the activity, and moves down one entry in the list, then picks another. Nov 20 22:19:40 here we go again, creates a new activity instance of the same type with all the same controls, but different data. Nov 20 22:20:18 and your having efficiency problems with that? Nov 20 22:20:27 duey: Yes, try creating a WebView in the Activity. Nov 20 22:20:41 can you reuse a the webview? Nov 20 22:20:56 When you expect that the user will close and open the same Activity class with a different instance 10 or 20 times in a given session, it seems really wasteful. Nov 20 22:21:10 duey: That's what I'm asking: can you reuse the Activity it belongs to? Nov 20 22:21:11 sure but thats what garbage collection is for :o) Nov 20 22:21:24 duey: No, that's not what Garbage Collection is for. Nov 20 22:21:27 heh Nov 20 22:21:42 GC is for the re-use of resources, not data. Nov 20 22:21:54 i was meaning reuse the webkit object in your acitvities Nov 20 22:21:57 in this case, you want to re-use substrate data underneath the views and activity. Nov 20 22:22:24 davidw: okay Nov 20 22:22:34 davidw: yeah I had them backwards -- attr is the XML attributes Nov 20 22:22:35 duey: How would you do that? You can't pass a View to an Activity, and you can't permit an Activity to store data in memory after it is destroyed (onDestroy() is called) Nov 20 22:22:37 I was going to say that the Activity would remain on the history stack, but since you're explicitly closing it, I don't know what happens internally Nov 20 22:22:39 layoutParams is system-level stuff Nov 20 22:22:50 orrc: What happens internally is that it is destroyed, completely. Nov 20 22:22:56 currently the only thing it's used for is telling the layout engine where the status bar is Nov 20 22:23:12 when you press back on an activity at the end of the history stack, onDestroy() gets called right away. Nov 20 22:23:39 so as the user goes down in the list, opening and closing Activity's, they end up wasting a lot of cycles re-doing the same exact layout over and over. Nov 20 22:23:41 jasta: right, ok. which sucks given that it's in the same, active process Nov 20 22:23:49 morrildl, really? I thought that that's where all the xml attributes got fed into the java code in order to set up a widget/view/something... that was my "mental model" at least Nov 20 22:24:02 orrc: Perhaps this is something Google needs to rethink about the Application Lifecycle? Nov 20 22:24:04 davidw: that is the attrs Nov 20 22:24:19 davidw: system-level layout properties are in layoutParams Nov 20 22:24:49 orrc: It seems like perhaps there should be a way to allow you to re-use an Activity and just change out it's data, not it's layout/view. Nov 20 22:24:59 But that would need to be implemented by the Window Manager. The app can't affect that. Nov 20 22:25:01 jasta: I though OnPause() is called when yo go back? Nov 20 22:25:06 thought* Nov 20 22:25:09 duey: No, onPause() is called when you go forward. Nov 20 22:25:16 jasta: it's not that simple, unfortunately Nov 20 22:25:22 oh right Nov 20 22:25:34 morrildl, aha... mmmm so they're sort of an override? Nov 20 22:25:37 morrildl: Trust me, I know. But it is a solvable problem, and an important optimization to be made. Nov 20 22:25:44 an Activity may or may not be a separate process in a given context. More to the point, it has to be prepared to be both in the same process as the caller, as well as its own process Nov 20 22:26:19 morrildl: What would need to be implemented is a way for the Window Manager to allow stale Activity's to persist when they are not in the history stack anywhere, and expose a new set of mechanics to reuse it's data with a new Intent(). Nov 20 22:26:20 jasta: this complicates the prospect of reusing activity instances Nov 20 22:26:35 morrildl: I don't think it's impossible, or even implausible. Nov 20 22:27:07 I didn't say it was impossible, or implausible, just that it's more complicated Nov 20 22:27:12 (aside) this is all rather complex... if carriers ever implement unlimited data plans on a wide scale, javascript web apps are going to clean up, just as they're starting to do with low-hanging desktop fruit:-) Nov 20 22:27:24 What would need to be implemented is an onReuse and onDiscard. onDiscard() would be an intermediate step that happens before onDestroy(). onReuse() would supercede onCreate() in some cases. Nov 20 22:27:57 the complicated part is that the Intent underneath the Activity would change. Nov 20 22:28:14 so any cursors and things would need to be invalidated. but the application developer can and should manage that in the onDiscard() and onReuse() calls. Nov 20 22:28:27 jasta: a hidden performance issue there is that maintaining the cache of Activities itself consumes memory Nov 20 22:28:52 morrildl: Yes, which is why an application would need a mechanism to request this behaviour. Nov 20 22:28:54 jasta: what are you specifically doing that is causing performance issues? Nov 20 22:29:03 to say, startActivity(..., yes_I_want_this_one_to_stick); Nov 20 22:29:15 and a way to say finish(..., nuke_all_my_stickies); Nov 20 22:29:18 jasta: it could also be a flag on the Intent Nov 20 22:29:47 morrildl: yes, the implementation specifics are open to a lot of extra discussion. Nov 20 22:30:04 bye all Nov 20 22:30:39 morrildl: I have an RSS reader app I am writing (to learn, mostly), and the transition from the RSSPostList activity to the RSSPostView activity is a common step. RSSPostView must implemented a WebView since most RSS posts include images and extra HTML gunk. Nov 20 22:30:50 brb, 1s, sorry. Nov 20 22:32:40 back. Nov 20 22:32:46 morrildl: must implement, I mean. Nov 20 22:33:11 jasta: are you constructing your layout from code, or from XML? Nov 20 22:33:20 the one including the WebView I mean Nov 20 22:33:28 morrildl: From XML, in this case. Nov 20 22:33:58 the performance hit I see is that the Activity opens, showing the "rest" of the layout which is not in the WebView, then the WebView appears some time later. Nov 20 22:34:08 so is the expensive operation creating the webview? Nov 20 22:34:19 It certainly seems to be. Nov 20 22:34:24 jasta: what content are you feeding the WebView? Nov 20 22:35:17 this is a bit of a hack, but couldn't you put init the webview in a static class and then add that webview to the layout? Nov 20 22:35:24 morrildl: The text of an RSS feed post, which is usually a couple of paragraphs with an inline'd in some cases, other cases it is like

click here!

at the footer. Nov 20 22:35:25 s/put/ Nov 20 22:36:01 jasta: do you have the content local, or are you issuing a network request for it? Nov 20 22:36:57 morrildl: I can send you my application, if you'd like to see for yourself. Nov 20 22:36:57 i though tRSS feeds were xml Nov 20 22:37:24 morrildl: specifically, i've been testing with SmartphoneThoughts.com and Slashdot.org's RSS feeds. if you want to pull up a lynx -source http://rss.slashdot.org/SlashDot/slashdot you can see some examples of the type of content I'm loading into the WebView. Nov 20 22:37:57 d03boy: the RSS container is XML, but jasta is just displaying the contents of individual posts, which can be anything, but typically HTML Nov 20 22:38:02 jasta: that would be very helpful actually Nov 20 22:38:05 I am also "wrapping" the WebView in an ... Nov 20 22:42:04 welcome back, all :) Nov 20 22:42:12 (you didn't miss anything) Nov 20 22:42:15 morrildl: Network kind of bumped me off. Nov 20 22:42:55 morrildl: Did you get my message about also permitting the WebView to have a "transparent" (none) background so that it can blend more consistently with the theme's background? Nov 20 22:43:13 it's default background is white, without regard to the parent's theme or background. Nov 20 22:43:43 jasta_: last thing I saw before everyone split was you saying "I am also "wrapping" the WebView in an ..." Nov 20 22:45:02 hrm... why wouldn't it find R.layout.main Nov 20 22:45:18 jasta: nope :( Nov 20 22:45:28 morrildl: It is not possible? Nov 20 22:45:35 davidw: missing R.java? Nov 20 22:45:36 jasta: no, I meant I didn't see your message Nov 20 22:45:48 morrildl: Oh, well I basically repeated it. I want a transparent background on the WebView :) Nov 20 22:45:51 duey, nope, that's definitely there Nov 20 22:45:54 gotcha Nov 20 22:46:02 TextView's, for example, do not have a background by default. The theme's background is drawn. Nov 20 22:46:13 davidw: need to import it if its in a different package Nov 20 22:46:25 same package:-/ Nov 20 22:46:26 jasta: so, one thing re: WebViews is that we are working on startup time in general -- it's rather heavyweight Nov 20 22:46:28 :\ Nov 20 22:47:05 I'll enter the Activity-reuse issue as a feature-request, but we'll probably have ot wait for additional use cases before any action happens on it, since WebView should be improving Nov 20 22:47:11 morrildl: That said, it is still sensible to consider the importance of re-using Activity's :) Nov 20 22:47:22 jasta: indeed :) Nov 20 22:47:36 It should be possible, but may not make it in in the near future Nov 20 22:47:54 jasta: I'll also enter the WebView background thing Nov 20 22:48:27 morrildl: Thank you. Nov 20 22:48:41 I had one other issue I was queueing up for a Google engineer, hmm. Nov 20 22:48:43 What was it... :) Nov 20 22:49:41 maybe you should write a program that stores yoru questions so you dont forget them Nov 20 22:50:00 d03boy: that would actually make a pretty cool Android app Nov 20 22:50:13 * morrildl would also use it to record movies to add to his Netflix queue :P Nov 20 22:50:13 does R.* go away at some point? Nov 20 22:50:18 a brain reader then ? Nov 20 22:50:23 I can never remember them when I actually sit down to enter them Nov 20 22:50:28 davidw: yeah i think when it gets regenterated Nov 20 22:50:41 duey, I mean in the app's life cycle Nov 20 22:50:43 morrildl, happens to all of us :) Nov 20 22:50:53 oh right Nov 20 22:51:04 morrildl: So, I had a question about the Android challenge actually. Nov 20 22:51:45 morrildl: How does the pay-out work for open-source projects that have many contributors? Does Google resolve who receives the money based on an investigation into the project? Nov 20 22:51:54 Or is it up to the project to somehow resolve that and inform Google? Nov 20 22:55:34 jasta: great question, but I don't know the answer :) Nov 20 22:55:47 We will be hashing out those details soon, and will do a public announcement of it. Nov 20 22:56:02 I intend to sign up for the Android developer challenge as a side-effect. I am not working on Android because I want to make money, but since google is already in the business of paying for worthwhile contributions to their platform, I would like to be considered. Nov 20 23:00:48 I'm just working on Android so I can get laid Nov 20 23:01:30 Lame. Nov 20 23:01:57 what are you going to write for the challenge jasta? Nov 20 23:02:05 morrildl: There? Nov 20 23:02:15 jasta: yeah Nov 20 23:02:18 that was a netsplit and a half Nov 20 23:02:38 morrildl: I also am curious if Google engineers (and Open Handset members) are participating in the Google Groups discussion regularly? Nov 20 23:03:18 jasta: yeah, we're definitely active there Nov 20 23:03:53 haavi: It depends on what Google is planning to do, and how well they're planning to do it. Nov 20 23:04:19 Originally I had my sights on groupware. A big project to implement messaging and calendar integration. Nov 20 23:04:51 But, if Google proves sufficiently capable of that project on their own, I will let them have it :) Nov 20 23:05:10 * jasta squints and evil-eyes Google Nov 20 23:05:20 lol Nov 20 23:05:33 im doing a solo project too Nov 20 23:05:45 jsut going to submit my honours project Nov 20 23:06:23 morrildl: So, should I reintroduce this topic on the Google Groups list? Nov 20 23:06:42 award payment specifics, that is. Assuming that Google will participate or at least read it :) Nov 20 23:07:07 This is absurd. FreeNode, cut it out. Nov 20 23:08:46 jasta, there's a specific one for the contest now Nov 20 23:08:53 davidw: I know that. Nov 20 23:08:56 jasta: sure, go for it Nov 20 23:09:06 I have been away for a few days and am jsut catching up on stuff Nov 20 23:09:25 duey: My other idea I'd like to tackle assuming that Google is going to take care of the groupware suite is pretty cool, actually. Nov 20 23:10:02 I want to write a media playing library of sorts (not necessarily the player itself, but i'll do a proof-of-concept if necessary) that essentially allows you to map a playlist from a remote location and intelligently cache and download content to play on demand. Nov 20 23:10:31 so let's say you buy a 2GB storage card, and you've got 6GB of music on your desktop. You could see your full desktop playlist on your phone, press to play a song, have it queued for download, cache, and playback. Nov 20 23:10:40 next time you try to play that song, or the same playlist, it will use the cache. Nov 20 23:11:10 What i want is a real device to test with :S Nov 20 23:11:16 but the cache will be an intelligent approach similar to Squid's which holds onto the most popular items at the cost of others. Nov 20 23:11:40 duey: I hear the Treo700 or 750 or something has the same radio chip that Android currently needs. Also, Linux runs on Treo's. Nov 20 23:11:51 I bet it is feasible to install the firmware there, although you will almost certainly brick your Treo :) Nov 20 23:12:00 not to concerned about calling people Nov 20 23:12:03 need a functional camera Nov 20 23:12:34 and hopefully my request for an increased resolution on cameras will accepted Nov 20 23:13:20 also, after i finish my RSS reader, i might take a look at implementing a package repository/management system for Android. Nov 20 23:13:31 I saw some people posting in the Google Groups discussion, but their ambition seemed way far off. Nov 20 23:13:46 I used to do Debian package management, OTOH. :) Nov 20 23:14:04 jasta: oh, I hadn't seen that post. I was thinking before it would be a cool (and very useful) concept Nov 20 23:14:21 orrc: Yeah, something like Ubuntu's "Add/Remove software" utility. Nov 20 23:14:33 Organized into logical categories and what-not. It'd be super-easy to do, too. Nov 20 23:14:53 yeah, with dependency resolution and all that sort of magic? if android apps get that complicated, that is :) Nov 20 23:15:00 orrc: Of course. Nov 20 23:15:12 how about an application that uses MapView and the LocationProvider to place other nearby devices on the map that you then could send messages to using xmpp? Nov 20 23:15:18 wouldn't that be possible? Nov 20 23:15:28 yeah thats possible Nov 20 23:15:31 but scary! Nov 20 23:15:43 I suspect that Android will get that complicated. An open platform is what people have been waiting for. A ton of my buddies used to work with mobile software until they finally just had enough and moved onto other things because the industry couldn't keep up with innovation. Nov 20 23:15:51 morrildl: what was the number and timeframe in our number of IRC users bet? Nov 20 23:16:00 you could have a friends list so that only a selected few devices showed up Nov 20 23:16:00 (you said you wrote it down ;-) Nov 20 23:16:21 haavi: I'm not sure how you'd know the other users' XMPP names? Nov 20 23:16:45 haavi: I guess users could have the option to advertise their location via XMPP Nov 20 23:16:49 Once real phones come out, I'd be excited to write a "I See You!" app that "tracks" bluetooth traffic it picks up from day to day, and notifies you of phone devices you seem to be near a lot. Nov 20 23:17:07 like let's say you pass by the same guy on the freeway lots of mornings, or ride the bus with the same dude but don't realize it. Nov 20 23:17:17 lol Nov 20 23:17:22 jasta: interesting! Nov 20 23:17:24 your phone would just sit there picking up bluetooth chatter remembering "who" it sees :) Nov 20 23:17:31 bbl lunch Nov 20 23:18:06 * morrildl specifically recalls not betting against rwhitby ;) Nov 20 23:18:21 lol Nov 20 23:20:02 Nov 06 10:05:08 #openmoko has 319 people right now, I predict #android will hit 500 within three months. Nov 20 23:20:02 Nov 06 10:05:18 * morrildl makes note of that. Nov 20 23:20:24 Hmm - we're behind schedule. Nov 20 23:20:56 I can't remember how I actually found this room. :) is it advertised somewhere? Nov 20 23:21:24 it's magic Nov 20 23:23:02 orrc, is this channel already listed on androidwiki.com? Nov 20 23:23:36 * Dralspire goes check Nov 20 23:23:48 Dralspire: doesn't look like it Nov 20 23:24:18 hehe to the editor :D Nov 20 23:24:55 oh noes, my doggie is blocking me with a lick-attack :D Nov 20 23:27:13 you should use a Handler for that Nov 20 23:27:22 lol Nov 20 23:29:58 is there any other way to call this than "chat.freenode.net #android"? Nov 20 23:30:31 #android on Freenode.net Nov 20 23:30:37 Dralspire: "#android on Freenode"? Nov 20 23:30:56 Dralspire: or some clients support the URI scheme: irc://chat.freenode.net/android Nov 20 23:31:16 Yeah, I was more hoping http://chat.freenode.net/android or something until I get to put in PJIRC :D Nov 20 23:34:11 the android kit doesn't support that though;-) Nov 20 23:36:35 * Dralspire giggles Nov 20 23:49:13 ok, it barfs when I try and feed Button something that implements AttributeSet Nov 20 23:58:39 I really want to see the source code:-) Nov 21 00:06:22 yep...as far as I can tell, it's google's code blowing chunks, but sans sources, I can't tell:-( Nov 21 00:19:21 davidw: why are you trying to use that constructor at all? Nov 21 00:19:36 morrildl, so that I can create widgets from Hecl Nov 21 00:19:51 button -height 343 -width 34343 -text "blah blah" Nov 21 00:20:25 the alternative involves hacking around with reflection Nov 21 00:22:19 davidw: Ahh, interesting Nov 21 00:22:19 plus, at this point I'm simply curious:-) Nov 21 00:27:03 I'm going to send an email to the devel list as it's rather late here Nov 21 00:28:32 * nbd wonders if the code is going to be released before the first phone hits the market Nov 21 00:31:09 * rwhitby doubts it. Nov 21 00:31:34 Vendors joining an alliance require some commercial benefit out of doing so. Nov 21 00:34:58 http://code.google.com/p/android/downloads/list Nov 21 00:35:03 some source code.. Nov 21 00:35:10 but i assume you wan't android.jar Nov 21 00:35:29 i want the build system that puts together the filesystem, kernel and java stuff Nov 21 00:35:32 ;) Nov 21 00:35:50 gnu make? Nov 21 00:35:50 lol Nov 21 00:36:39 no, the stuff that uses gnu make :P Nov 21 00:36:48 or is written in makefile syntax :P Nov 21 00:39:08 and then translated to their own internal makefile bytecode?;-) Nov 21 00:40:40 * nbd hacks build systems for fun and profit ... or something like that Nov 21 01:14:27 I am still having an issue of eclipse not pushing the app to the emulator. Adb says "Daemon still not running. error: no device. If I run "emulator -verbose" I can see that it is listening on port 5559. I can telnet to that port while the emulator is running and it connects. But if I use adb I just get the "daemon still not running" issue. Does anyone know how I can tell what port adb uses... Nov 21 01:14:28 ...by default? Nov 21 01:34:10 lol ok, still fiddling with it, but I'm gonna add a web gateway to this chat here at Android Wiki asap :D Nov 21 02:01:34 Hmm, do I really have to manage my position in a list with onPause/onFreeze? Nov 21 02:01:47 even if I extend a ListActivity? Nov 21 02:06:52 i mean, it seems to be that way. my app loses it's list position all the time. Nov 21 02:15:45 * jasta scratches his head Nov 21 02:15:48 this can't be right, wth. Nov 21 02:25:35 this platform has wonky bugs :) Nov 21 02:27:43 that it does Nov 21 02:27:56 this is a good read: http://www.oreillynet.com/onjava/blog/2007/11/android_first_impressions.html Nov 21 02:28:34 best line: "I am pretty sure my Checkbox doesn’t need scroll setting" Nov 21 02:29:59 oh well. at least they understand release early, release often :) Nov 21 02:33:21 heh **** ENDING LOGGING AT Wed Nov 21 02:59:56 2007