**** BEGIN LOGGING AT Sun Feb 17 02:59:57 2008 Feb 17 03:02:16 okay Feb 17 06:56:03 anyone awake? Feb 17 06:58:06 yeah, who ain't? Feb 17 06:58:15 je ne veux pas traivailler Feb 17 06:58:44 je ne veux pas dejeuner! Feb 17 06:58:47 et puis je fume Feb 17 06:59:51 do you know if doing translate(x,y); and then translate(-x,-y); is best or to save the matrix, translate, do whatever you're gonna do, and then restore it? Feb 17 07:00:10 it's pretty much the same Feb 17 07:00:19 except the save/restore is safer Feb 17 07:01:07 safer, but slower? Feb 17 07:01:11 no Feb 17 07:01:17 safer and faster? Feb 17 07:01:25 safer and pretty much the same Feb 17 07:01:45 a saveLayer()/restore() is very expensive Feb 17 07:01:52 a save/restore is just a push/pop on a stack Feb 17 08:23:56 ? Feb 17 09:37:09 help /motd Feb 17 10:52:27 is the expectation that there will be 'consumer' devices on which you can put a hacked version of the android stack, like openmoko? Feb 17 10:52:52 or is it more likely to be installed in a 'tivoized' fashion, like the linux-powered phones today? Feb 17 10:58:04 I don't think that's entirely clear yet Feb 17 11:06:09 this neo freerunner thing by the openmoko guys runs on some samsung processor, so porting android to it would probably not be all that easy, right? **** ENDING LOGGING AT Sun Feb 17 11:45:51 2008 **** BEGIN LOGGING AT Sun Feb 17 11:46:14 2008 Feb 17 12:18:10 this thing was significantly changed, eh... Feb 17 13:00:23 Anybody know how to add a non selectable view in a listView using an adapter? Feb 17 13:00:43 I have been trying with public View newView(Context context, Cursor cursor, ViewGroup parent) Feb 17 13:00:59 trying to add it to the parent but it fsck up my views Feb 17 13:01:05 been trying this for days Feb 17 13:39:27 Isn't there a setFocusable(boolean) method? Feb 17 13:39:36 on the view? Feb 17 14:05:19 well the listAdapter has a isSelectable - returns true if it is not a separator Feb 17 14:05:34 now I am not sure how to add the separator dynamically to the listView Feb 17 15:21:23 can you have a linear layout above the tabbedView? And has anyone embedded the tabbed view yet? Feb 17 15:30:51 tabbed is obsolet AFAIK Feb 17 15:31:01 I would nto use tabbedVIew Feb 17 15:31:29 really? Thats a bit strange how its in the demos then Feb 17 15:32:12 which one is it in the demo Feb 17 15:33:04 if you try to instantiate a tabbedView in eclipse, it will tell you that you should not use it Feb 17 15:33:04 (just booting them up) Feb 17 15:33:28 TabbedView can use intents as tab and I beleive that s why they changed their mind Feb 17 15:34:18 I'm actually looking at the dialler Feb 17 15:34:21 it uses tabs Feb 17 15:34:43 are you talking about the tabHost? Feb 17 15:34:51 yeah maybe Feb 17 15:34:58 well there are plenty of ways Feb 17 15:35:09 just enquring before I feel the pain of implementation Feb 17 15:35:38 you should not use tab host AFAIk, I ve been building a tabbed system with ViewAnimator Feb 17 15:36:01 you create all your tabs within a viewAnimator in XML Feb 17 15:36:08 I meant tab views Feb 17 15:36:37 and then you just add a bottom View with several buttons which willl let you choose which child view you want from the view animator Feb 17 15:40:21 ok, that sounds abstract enough to safe guard against future sdk changes Feb 17 18:41:20 Just like to point out another problem, although its not a show stopper. Feb 17 18:41:42 I have two deployments of eclipse so that I can have both m3 and m5 demos to compare Feb 17 18:42:08 I have to have two deployments because the google plugin version needs to correspond with the release otherwise it complains Feb 17 18:43:47 When I boot up the emulator from within my m3 deployment of android in eclipse, when I have the other deployment with m5 installed open; The M5 deployment constantly tries and fails to connect to the emulator Feb 17 18:43:55 even when I have stopped it running Feb 17 18:44:16 which means you need to restart the m5 deployment. Not awful, just a feature to note. Feb 17 18:53:19 mornin Feb 17 18:53:40 :) Feb 17 19:02:31 morning Feb 17 20:41:18 Does plusminus hang in here? Feb 17 20:41:33 Or on any irc chats? Feb 17 20:42:33 I'd like to speak to him since he's done more than anyone in helping peeps get set up with good quick demos on anddev.org. Feb 17 20:56:36 haven't seen him in here Feb 17 20:56:48 Shame. Feb 17 20:57:10 I'll send him an email. Tell him he'd be in good company. Feb 17 21:19:19 romainguy_: is it possible to have a name appear in the icon list on the home screen that does not match the window title when the application opens? Feb 17 21:19:32 i would like to use a longer title for when the window actually opens Feb 17 21:19:53 jasta: just call setTitle() in onCreate() Feb 17 21:20:06 ahh, ok. Feb 17 21:20:06 you can even pass a resource ID Feb 17 21:25:30 that's cool that you guys use inotify to watch /data/app ;) Feb 17 21:36:30 hmm, there is a bit of leak there. Feb 17 21:36:46 setTitle only applies after all the UI's been built and applied to the screen. Feb 17 21:37:00 the window as it initially opens has the other title, set through AndroidManifest.xml Feb 17 21:37:38 jasta: there's lots of stuff like that Feb 17 21:38:02 well, hmm. Feb 17 21:38:12 i'll ignore it for now. Feb 17 21:38:13 how do you inflate a view from xml again? Feb 17 21:38:29 zhobbs: ViewInflate.inflate Feb 17 21:38:38 jasta: thanks Feb 17 21:39:13 you can get a ViewInflate reference a number of ways, too. Feb 17 21:39:25 not sure which is recommended, but i use the static method ViewInflate.from(this) Feb 17 21:40:20 my thought is that's just calling this.getSystemService(Context.INFLATE_SERVICE), though. Feb 17 21:41:34 just decompiled and yes, that is what it does. it does however throw an exception if getSystemService returns null which is an extra nicety. Feb 17 22:01:52 the default list separator doesn't shrink very well... Feb 17 22:08:20 romainguy_: I'm trying to replicate the look of in list view when I use android.R.layout.simple_list_item_1 with a simple adapter Feb 17 22:08:50 the default list view does not use separators but dividers Feb 17 22:09:15 if I inflate that xml and return it as the view in my adapter it doesn't have all the padding and stuff, how do I get that info? Feb 17 22:09:58 it should Feb 17 22:10:02 here is its source: Feb 17 22:10:02 android:id="@android:id/text1" Feb 17 22:10:03 android:layout_width="fill_parent" Feb 17 22:10:03 android:layout_height="?android:attr/listPreferredItemHeight" Feb 17 22:10:03 android:textAppearance="?android:attr/textAppearanceLarge" Feb 17 22:10:04 android:gravity="center_vertical" Feb 17 22:10:06 android:paddingLeft="27dip" Feb 17 22:11:36 I'm doing this in my adapter's getView(...), and it looks different than using a simple adapter Feb 17 22:11:42 ViewInflate vi = ViewInflate.from(mCtx); Feb 17 22:11:42 TextView txt = (TextView) vi.inflate(android.R.layout.simple_list_item_1, null, null); Feb 17 22:11:42 txt.setText(mItems.get(position)); Feb 17 22:11:42 return txt; Feb 17 23:13:56 is there a way to force the currently selected row to be highlighted in touch mode? Feb 17 23:25:26 hi Feb 17 23:25:40 can i start android on MSM6250? Feb 17 23:26:25 no idea Feb 17 23:27:35 gm.. Feb 17 23:28:01 android can be run only on MSM7k ? Feb 17 23:28:04 There is a plusminus in the room Feb 17 23:28:36 chomchom: you joined right after you said you were going to send email :) Feb 17 23:28:51 Actually, I did send an email Feb 17 23:29:41 ^^ hello Feb 17 23:30:33 Hello! Hey Man, did you get my email, I'm surprised not to have seen you in here before. Feb 17 23:30:52 i never knew of this irc-channel Feb 17 23:31:08 *shame on me* Feb 17 23:31:31 This is where the cool kids chill, right zhobbs? Feb 17 23:31:56 yeah, and the slackers Feb 17 23:32:17 Honestly man, good work in putting up so many demos. You've helped a lot of peeps get up and running from nothing. Feb 17 23:32:33 thanks :) Feb 17 23:32:53 currently writing a learners-"book"... Feb 17 23:33:04 actually just a pdf but we will see. Feb 17 23:33:48 anybody lising me? -) Feb 17 23:35:24 <--not familiar with portign android. Feb 17 23:36:35 Dreadddddd: what version of ARM does the arch you talking about have? Feb 17 23:37:25 zhobbs Quallcom MSM6250(A) Feb 17 23:37:27 ARM 9 Feb 17 23:37:47 I was thinking about a book as well, just for kudos. I think it was discussed briefly the other day and those that had written before wanted to put across that you would definetly be setting out to do it for the love rater than for any financial gain Feb 17 23:39:10 Dreadddddd: I believe that the binaries for the sdk are for ARM 5 Feb 17 23:39:32 Dreadddddd: http://benno.id.au/blog/2007/11/21/android-neo1973 Feb 17 23:43:46 zhobbs siemens sxg75.. Feb 17 23:43:53 http://forum.modopo.com/diskussionen-rund-ums-modding/t-19197-ef81-qc-bqs-firmware-analyzer/page28.html Feb 17 23:43:56 you just got mail with a preview Feb 17 23:44:07 of what has been done so far. Feb 17 23:44:50 plusminus: you going to sell it or give it? Feb 17 23:44:50 port android to any benq, siemens brew mobile.. Feb 17 23:44:58 give Feb 17 23:45:33 Excellent, I'll give it the once over on the train tomorrow. Feb 17 23:45:33 now we can rone any brew programs in oure devices! Feb 17 23:45:38 Dreadddddd: sorry, don't know anything about it...you could try androidport google group Feb 17 23:45:39 we hack quallcom-) Feb 17 23:46:02 If people like it, I (or maybe a "we") coudl make it more professional (my english is not goog enough for a printed book). Feb 17 23:46:29 bb Feb 17 23:46:35 bastards Feb 17 23:46:44 ^^ Feb 17 23:47:09 -_- Feb 17 23:51:18 plusminus: It's a good start, I'm sure others in here would be happy to give you some feedback. I've put it on my phone and I'll send you an email with comments once I've given it a read. Feb 17 23:51:49 Remember it is not finsihed at all or anything!! Feb 17 23:52:09 Thats cool Feb 17 23:54:24 First paragraphs are written by myself, between there is some info I cutted from Google about AndroidManifest, Resources and UI. Shortened and extra explained where I though it would be especially neccesary. I.e. added a small comparison from Android UI to Swing UI. Or XMLLaylout vs. HMTL-Code. Feb 17 23:54:53 All codes wil be syntax-highlited what is imo very useful! Feb 17 23:57:38 hey plusminus, you are becoming famous in the android world. How did the business week interview work out? Feb 17 23:58:27 From page ~35 my work starts, the tutorial-stuff... Up to now just the very basic stuff but as you know tutorials already exist on anddev and placing them to the pdf with some extra words around will not be that time-expensive. Feb 17 23:58:42 ^^ thx Feb 18 00:00:16 Had a few emails with a guy from the "Google Communications Team" who passed my contact-data to "the person" from businessweek. He said "she" got an extended deadline and after that i never heard sth again from "her" :( Feb 18 00:00:38 shame Feb 18 00:00:52 i was a bit pissed of ! Feb 18 00:00:59 I talked to that lady from business week, she didn't quote me or anything though Feb 18 00:01:06 or.. let's say frustrated Feb 18 00:01:17 =D Feb 18 00:01:39 stayed up half night awaitign a call and nothing Feb 18 00:01:48 doh Feb 18 00:02:08 Germany and USA are 7-10 hours difference Feb 18 00:02:19 1 am right now ^^ Feb 18 00:02:32 I am in UK Feb 18 00:02:51 I went to the android meetup in london last week Feb 18 00:02:59 at google's quarters Feb 18 00:03:03 CodeDays ? Feb 18 00:03:07 yes Feb 18 00:03:15 but it wasn't Feb 18 00:03:22 ? Feb 18 00:03:31 it was more of an introduction to the platform rather then looking into the code Feb 18 00:03:47 most people had just installed the sdk and never played with it Feb 18 00:03:54 so did not learn much Feb 18 00:04:10 but the interesting bits was that most people came from companies like siemens Feb 18 00:04:45 they porting their phones to android Feb 18 00:04:48 wasn't the London Code Days on 31 January ? Feb 18 00:05:00 or at least they are getting interested Feb 18 00:05:27 yes it was Feb 18 00:05:41 just though as you said "last week" Feb 18 00:05:45 kk Feb 18 00:06:01 you know I work from home Feb 18 00:06:12 and then I work some more on android from home Feb 18 00:06:22 my social life reached a new low lately Feb 18 00:06:29 ^^ Feb 18 00:06:52 forgetting the notion of time but yes it was the 31 Feb 18 00:07:12 had to learn for exams whole january and beginning of February.(ok I had a few tutorials ^^) Feb 18 00:07:27 it s carl btw nicked charroch on your forum Feb 18 00:07:42 I posted 1 or 2 notes Feb 18 00:07:57 I remember =) Feb 18 00:08:04 have you seen: Feb 18 00:08:05 http://www.anddev.org/andnav_-_android_map-routing-system-t740.html Feb 18 00:08:29 let me check Feb 18 00:08:38 btw they quoted anddev at the google meetup Feb 18 00:08:56 in London o_O Feb 18 00:09:35 that looks great! Feb 18 00:09:50 I have not played with the new sdk yet Feb 18 00:10:20 I noticed a lat/long to real address function Feb 18 00:10:36 doesn't work :rolleyes: Feb 18 00:10:41 *feeling_a_bit_proud_being_mentioned_on_the_codedays* :D Feb 18 00:11:03 ;) Feb 18 00:11:28 well you deserve it - you are helping out a lot of people including me Feb 18 00:11:42 would love to do more ^^ Feb 18 00:11:46 I wanted to create a very useless application Feb 18 00:11:52 btw issue on the new geocoding: Feb 18 00:11:53 http://groups.google.com/group/android-developers/browse_thread/thread/c14fa89fa1d3ffa1 Feb 18 00:13:25 arf Feb 18 00:13:41 there are some very annoying bugs Feb 18 00:13:51 have you played with listviews a bit by any chance? Feb 18 00:14:17 not since the new sdk Feb 18 00:14:39 some developers reported of a bug with the selector which si drawn to big Feb 18 00:14:56 I ve been trying in vain to add a separator to a cursor adapter depending on the 'goup by' statement given Feb 18 00:15:02 Default selector def draws too large Feb 18 00:15:22 ^^ Feb 18 00:15:31 for me is more of a customized listview with a separator Feb 18 00:16:04 there are a function on top of adapter which is isSeparator (int) but I can not add a separator Feb 18 00:16:31 I tried getting the parent and played with it entire day but just gave up and came up with very ugly solution Feb 18 00:17:19 anyone knows if there is a problem with BOOT_COMPLETED action since new SDK (someone asked on anddev) and I'm too tired to change my old example to new sdk ;) Feb 18 00:18:55 one should build a site that regroups components imo Feb 18 00:19:29 ? Feb 18 00:19:35 for basic components like a camera, sms receiver etc... I have a couple of dialogs as well that could be used accross many applications Feb 18 00:19:57 for instance I have one called LocationDialog Feb 18 00:20:20 that let you choose your provider, check the return value is a correct location and return the location to a message Feb 18 00:20:40 the locationprovider returns 0.0 at first - not sure if you noticed - when you boot up your phone Feb 18 00:20:42 yeah, I intend to speak about android at the Glasgow web centric meetup on wednesday Feb 18 00:20:49 quite looking forward to it Feb 18 00:21:00 there is one tomorrow in london Feb 18 00:21:05 I will probably go Feb 18 00:21:16 not 100% sure I can make it yet Feb 18 00:21:20 is it an actual Android group? Feb 18 00:21:31 let me get the link Feb 18 00:21:34 cheers Feb 18 00:21:42 acsia the locationprovider returns 0.0 at first Feb 18 00:21:45 yes i recognized Feb 18 00:21:53 (strange behaviour9 Feb 18 00:22:01 london android group on mettup Feb 18 00:22:03 meetup Feb 18 00:22:07 http://java.meetup.com/170/calendar/7240912/?gj=&a=nr1o_grp Feb 18 00:22:16 this is not an official thing, right ? Feb 18 00:22:19 I think it is because of the mockdata that begins with 0.0 Feb 18 00:22:20 no no Feb 18 00:22:28 just somebody who set it up Feb 18 00:22:35 sweet, wish I could attend Feb 18 00:22:53 but there is one guy from truphone on it so it could be interesting Feb 18 00:23:57 a month ago, I spent a weekend trying to make an ASCII camera Feb 18 00:24:01 haha Feb 18 00:24:13 London is just 1000km await, I'll take my private jet and visit you ;) Feb 18 00:24:22 I think I'll start one for Glasgow and then just tie it in with the other two loosley related meetups. Feb 18 00:25:28 well, I have a laptop, a mobile phone with 3g payed by my company and a webcam Feb 18 00:25:46 If anyone in here is in Scotland there will be a meeting on Wednesday that some android developers will be at. You would be very welcome to drop by. Feb 18 00:25:52 just broadcast from the pub Feb 18 00:26:14 you could. yes! that would be awesome Feb 18 00:26:30 Could do, tried it once before Feb 18 00:26:48 its pretty cool for most people but some people are too shy Feb 18 00:26:57 and its not really fair to impose on them Feb 18 00:27:29 you have at least one visitor ^^ Feb 18 00:27:32 sure but after a couple of beers... Feb 18 00:28:10 anyway I need some rest, nice to see some european activity on this channel... Feb 18 00:28:17 ttyl Feb 18 00:28:21 bye Feb 18 00:28:43 :P just didn't know of this place until I received that mail today ^^ Feb 18 00:29:58 Anyone try passing their code thru a bytecode optimizer before converting it to dalvikvm runnable bytecode? Feb 18 00:30:30 plusminus: It's a good thing you found out then. It's good for morale when you see loads of others developing away everyday on the platform you take so much interest in. Feb 18 00:31:11 jerkface03: do you mean using jode or jad? Feb 18 00:31:35 yes, but it is 1:30 am now I'll get some sleep and contiue writing tomorrow. Feb 18 00:31:43 Definitely will be back here! Feb 18 00:31:48 cu guys Feb 18 00:31:55 night Feb 18 00:32:01 chomchom: i'm talking about using proguard? Feb 18 00:32:51 interesting, never seen that before Feb 18 00:55:35 * zhobbs wonders how to change the text color on a progressdialog Feb 18 01:10:00 with the touchscreen there is no way to really "select" an item in a ListView but not click it is there? Feb 18 01:10:35 no, it doesn't seem so. Feb 18 01:10:42 There is a long hold option though Feb 18 02:23:05 why do interfaces always auto-import as foo.bar$interface in eclipse...is there a setting? Feb 18 02:24:39 not sure preferences > then type 'template' into the search Feb 18 02:30:07 theres a special null check syntax in java 6, does anyone know it? Feb 18 02:31:56 maybe I'm thinking of ruby Feb 18 02:44:11 it's pretty weak that AlertDialog.Builder.addItems() only works with static arrays Feb 18 02:44:42 cause the list dialog is kinda handy, but would like to use dynamic strings Feb 18 02:51:12 there's no way to create a resource that could be used be a resource id right? Feb 18 02:58:42 er what? Feb 18 02:58:50 hehe Feb 18 02:59:05 what do you call dynamic strings? Feb 18 02:59:56 one that is not predefined in res/values or something **** ENDING LOGGING AT Mon Feb 18 02:59:57 2008