**** BEGIN LOGGING AT Fri Jul 31 02:59:57 2009 Jul 31 03:08:25 How do u declare a drawable bitmap in XML? Jul 31 03:08:35 Titanium mobile is better than phonegap http://www.appcelerator.com/products/titanium-mobile/ Jul 31 03:10:46 So I'm getting this error in my output log (from ADB) when I try to access exchange - W/System.err( 294): java.lang.IllegalArgumentException: Illegal character in query at index 134: https://outlook.domain.com/Microsoft-Server-ActiveSync?User=firstname.lastname@domain.com&DeviceId=HTCAnd8945133a&DeviceType=HTC Magic when I try to access my exchange server (using cyanogen on a htc magic) Jul 31 03:11:24 i see what the proble mis really Jul 31 03:11:27 just not sure where to fix it Jul 31 03:12:16 Ah I see it Jul 31 03:12:17 build.prop Jul 31 03:12:50 is there any way to edit a file using adb shell? Jul 31 03:20:24 nano? Jul 31 03:25:25 theacolyte: adb pull and adb push are your best options, really Jul 31 03:25:47 nice Jul 31 03:25:54 I'm just having an issue with ro.product.model Jul 31 03:26:07 I set it from HTC Magic to HTC_Magic - and I can't update Jul 31 03:26:12 tells me incorrect digest Jul 31 03:26:36 weird stuff Jul 31 03:26:39 I haven't googled that one yet Jul 31 03:28:09 what tells you that? Jul 31 03:28:35 jast : HOW ARE YOU Jul 31 03:28:42 boot image Jul 31 03:28:44 jast a: HOW ARE YOU Jul 31 03:28:46 cyanogenmod 1.4 Jul 31 03:28:55 E:Wrong digest: Jul 31 03:28:57 system/build.prop Jul 31 03:33:35 I am cleaning up my app to be released on the market. What's the canonical way to indicate the license under which the code is released? I've stuck cut-and-paste's of the MIT license in my .xml and .java files, but I have .png's. Normally I'd just create a LICENSE and stick it in the top directory, but I wasn't sure if that was the Android Way. Thoughts? Jul 31 03:40:03 Just posted the same question to the "Other Coding-Problems" forum on anddev.org, can't hurt to have extra thoughts. Jul 31 04:03:51 i'm hainv nullpointer exceptions when trying to add elements to an array, and indexoutofbounds exceptions when trying to add to an arraylist. .. i'm using this.list[0] = tmp[1] which contains a string, and this.fileList.add(0, tmp[1]); .. Jul 31 04:04:14 What type is 'this'? Jul 31 04:04:50 a .. umm, an object? Jul 31 04:05:14 this translates into a Remote object Jul 31 04:05:18 If tmp is a String, this.list has to be a String[] right? Jul 31 04:05:26 ahh .. i see what you're asking Jul 31 04:05:37 list is a string and fileList is an arraylist Jul 31 04:05:49 What does "this.list = tmp[1]" do? Jul 31 04:05:50 string[] to be specific Jul 31 04:05:57 (assuming tmp is String[]) Jul 31 04:06:11 Heh. Okay, I'll let you finish. :-) Jul 31 04:06:13 umm .. lemme see Jul 31 04:07:13 type mismatch: cannot convert from String to String[] Jul 31 04:07:32 Yeah. this.list and tmp both have to be String[]'s for your original thing to work. Jul 31 04:09:03 but, no matter where i place my line of code, i get nullpointerexceptions .. even doing something like this.list[0] = "happy"; Jul 31 04:11:40 Wierd. And you're *sure* this.list is String[] ? (Is there typeof() in Java?) Jul 31 04:12:02 static String list[]; Jul 31 04:12:26 not static .. privcte Jul 31 04:12:30 Huh. (I write it String[] list but it shouldn't matter...) Jul 31 04:13:12 from main(), connect.list[0] = "happy" ; throws NPE, Jul 31 04:13:24 but connect.fileList.add(0, "happy"); actually works ... Jul 31 04:13:28 i'm soo lost !! Jul 31 04:13:30 Huh. Jul 31 04:15:11 and now .. for some reason , this.fileList.add(a, this.bug[1]); is working ... Jul 31 04:16:13 Hmm. Jul 31 04:16:18 Go with it. :-) Jul 31 04:16:36 hehe Jul 31 04:19:17 I'm right now trying to remember stupid String crap. The best way to convert "12:34:56.7890" to "12 deg 34 min 56.7890 sec N". I don't normally use Java so it's taking me a while to remember. Jul 31 04:21:54 well .. you could maybe use String tmp[] = holderString.splitt(":", 3), and then System.out.print (tmp[0] + " deg " + tmp[1] + " min " + tmp[2] " sec " + directionVariable); Jul 31 04:22:42 I'm trying concatenation and getting an exception. Jul 31 04:24:14 well, what i offered is all i got. anything beyond that is, well, beyond me. i only just started writing in java yesterday. Jul 31 04:25:00 Ahhh. The problem is with my 'cleverness' on the N/S choice. Jul 31 04:27:36 N/S? Jul 31 04:28:05 StringTokenizer? Jul 31 04:30:35 I went with String result = blah + ((chunks[0].startsWith("-")) ? "S" : "N"); Jul 31 04:30:38 Dunno why it didn't work. Jul 31 04:36:20 i think i know what my problem was ... my list of information doesn't contain a 0 element, it starts at one .. so i was trying to plaec an object into an uninitialized array at [1] , thus errors Jul 31 04:36:38 Ah. Jul 31 04:36:43 off-by-one sucks. Jul 31 04:36:45 String result = chunks[0] + '\u00B0' + chunks[1] + '\'' + chunks[2] + "\" " + ((chunks[0].startsWith("-")) ? "S" : "N"); Jul 31 04:36:48 That actually worked. Jul 31 04:37:03 I feel dirty checking for negative values by searching for a minus sign. :-) Jul 31 04:37:50 hehe .. Jul 31 04:38:13 got my stuff working, time for a cigarette .. good job on getting your's to work, too. Jul 31 04:54:54 whats up Jul 31 04:55:08 anyone running cyanongen 3.9.2 Jul 31 05:00:01 WWHOOO!O!!!!!! Jul 31 05:03:51 ok .. backend is done .. now it's time to dive into the android interface .. Jul 31 05:04:09 is 1.5 still the latest version? Jul 31 08:14:44 Is it possible to have an activity that is invisible but (a) it will be started by an Intent & (b) in its onCreate(..) method, it will do startActivityForResult(..) which opens up the Contact Picker. ? Jul 31 08:25:07 <_yoyo> how to use mmm to build android.policy.jar? Jul 31 08:26:05 Is it any new firmwares out for the HTC Hero yet? Jul 31 08:26:35 Jazz89: depends on your definition Jul 31 08:26:45 officially i think 1.5 is still it Jul 31 08:27:05 How can check what release version i got for 1.5 on my Hero? Jul 31 08:27:47 there is an entry in the options Jul 31 08:27:57 that shows you the revisions Jul 31 08:27:58 <_yoyo> after modidy MidWindowManager.java (frameworks/policy/mid/...), does it need to build to whole source code? Jul 31 08:28:26 it only says firmware version 1.5, but how can I see if it's the release 1 to 3? Jul 31 08:28:29 _yoyo: you probably want to avoid modifying it unless you really know what you're doing Jul 31 08:28:40 Software version? Jul 31 08:29:29 _yoyo: do you have the whole tree already built and flashed on a device/emulator? Jul 31 08:29:48 <_yoyo> jsharkey: yes, i do know, for example, i have added some debug info into MidWindowManager.java Jul 31 08:30:02 depending on the change, you may be able to get away with just an adb remount + sync Jul 31 08:30:53 <_yoyo> jsharkey: i myself have built the whole tree and flashed on my device too Jul 31 08:31:09 anyone? :P Jul 31 08:31:56 okay sweet, if you're just adding debugging code, then you should be good once you mmm framework/policies/base/mid Jul 31 08:32:07 then adb remount && adb shell stop && adb sync && adb shell start Jul 31 08:32:16 and watch logcat along the way Jul 31 08:32:25 <_yoyo> jsharkey: like framework/base/service/java, it can use mmm to build one xxx.jar. but for the framework/policy/mid, it use mmm not to build xxx.jar Jul 31 08:32:53 _yoyo: as long as you've lunch'ed correctly, adb sync should do the rest Jul 31 08:33:20 I only need to know how I can check what release version of 1.5 I got, so I maybe can install release 3 Jul 31 08:33:38 But I dont know how I can check that Jul 31 08:33:38 i havent mmm'ed policies directly, but it seems like you should be able to Jul 31 08:34:11 Jazz89: what build #? Jul 31 08:34:20 i think r2 is 148875 Jul 31 08:34:42 I got 146733 installed Jul 31 08:35:00 that sounds like it might be r1 Jul 31 08:35:13 K thanks Jul 31 08:35:32 So i download r3 and rename it to update.zip? Jul 31 08:35:52 Jazz89: im not sure if your AVDs will directly use the new r3 system.img Jul 31 08:36:15 Hmm.. Jul 31 08:36:42 actually, it should work, the avd only contains userdata.img Jul 31 08:37:24 So I do what I said, and then place it to the root of the SDCard? Jul 31 08:37:25 Jazz89: wait, you're talking about a hero? Jul 31 08:37:31 yea Jul 31 08:37:32 dont do this Jul 31 08:37:44 the SDK online is very different from the build on phones Jul 31 08:37:51 they are incompatible Jul 31 08:37:57 oh i see Jul 31 08:38:05 *you cant "flash" the emulator image onto a real device Jul 31 08:38:27 its meant only to be run on goldfish hardware (qemu emulator) Jul 31 08:38:35 So I saw an option on the phone that said something like "Download firmware automaticly", is that the only way? Jul 31 08:38:47 im not sure, i havent played with hero Jul 31 08:39:21 htc might know, or the carrier you obtained it through Jul 31 08:39:42 You mean the shop? Jul 31 08:41:16 I went to the htc.com support site, but I can't find the hero in the dropdown list.. it's maybe abit early to update Jul 31 08:41:31 <__yoyo> jsharkey: http://pastebin.com/m120eb2fe, you can see that Jul 31 08:42:14 __yoyo: it doesnt look like any errors? Jul 31 08:42:23 do you have a device running with adb working? Jul 31 08:43:48 <__yoyo> jsharkey: no error, but it doesn't generate xxx.jar which is installed into out/target/xxx directory Jul 31 08:44:16 <__yoyo> jsharkey: yes, i have a device like you say Jul 31 08:44:19 Any thoughts about when Donut will come? Jul 31 08:44:41 _yoyo: The mid policy is kind of fallen into disuse Jul 31 08:45:29 <__yoyo> kroot: eee701 use the mid policy Jul 31 08:45:35 Can a single DefaultHttpClient be shared by multiple threads ? I plan to stick it into an Application class as a static member. Jul 31 09:05:25 <_yoyo> in the onCreate() of one class derived from Activity, how to get the window attrs, like WindowManager.LayoutParams? Jul 31 09:07:28 <_yoyo> mVideoView = (VideoView) findViewById(R.id.surface_view), how to set the mVideoView to NOT_FULL_SCREEN? Jul 31 09:11:27 @yoyo getWindow() Jul 31 09:13:57 <_yoyo> ashitaka: how to get the window of mVideoView? Jul 31 09:15:33 http://www.htc.com/europe/product.aspx hero is there Jul 31 09:25:59 @yoyo mVideoView.getLayoutParams() Jul 31 10:43:55 <_garry> Any recommendations on a good entry-level developer book (or online-collection of how-to's and stuff) to android? Decent hands-on-stuff ... Jul 31 10:44:45 <_garry> I have some basic understanding of OO-programming, with some rusty C++ experience deep down in my brain somewhere ... Jul 31 10:47:54 I started at www.anddev.org, there are some good tutorials Jul 31 10:49:29 have you programmed Java, _garry ? Jul 31 10:50:25 <_garry> Not really ;) Jul 31 10:55:55 Gary|thinkpad: i bought a book called 'the busy coders guide to android development', its been good Jul 31 10:56:01 mm wrong person Jul 31 10:56:03 _garry: Jul 31 11:00:08 <_garry> Tnx ... Jul 31 11:00:19 there's a lot of good stuff in the official dev guide Jul 31 11:00:20 http://developer.android.com/guide/index.html Jul 31 11:00:57 and i've found the source code for the bundled apps a great resource Jul 31 11:01:34 http://android.git.kernel.org/ Jul 31 11:02:07 check out the apps under platform/packages/apps/ Jul 31 11:06:19 that book i mentioned is also available as an ebook with constant updates Jul 31 11:08:17 <_garry> guess I'll take a look at the sample version ... pretty big sample too with 150 pgs ... Jul 31 11:12:56 <_garry> well, seems a bit stripped in between, though ;) Jul 31 11:41:16 what is the difference between selecting and clicking an item in a listeview? Jul 31 11:41:48 ie AutocompleteTextView has a setOnItemSelectedListner and setOnItemClickListener Jul 31 11:43:17 and none of them fires.. Jul 31 11:45:29 nm, onItemClick fires Jul 31 12:17:06 Does exist a example in C++ to get a property set by setprop in .rc file ? Jul 31 12:31:05 hi, i like to make an application to stream a video from my computer via vlc to my G1 but am struggling. is there anybody who has experience with this or made it to work already? Jul 31 13:01:42 So..... Jul 31 13:02:39 Time to finally start looking into Android development. So tell me..... since I'm used to NetBeans, and have no experience with Eclipse whatsoever.... what should I do? Does anyone want to recommend me not using NetBeans for Android development? Jul 31 13:05:20 Hm, the plugin doesn't seem to be available for v6.7.1 anyway so.... Jul 31 13:06:04 yes, i want to recommend you to not use NetBeans ;) Jul 31 13:06:15 :-> Why? Jul 31 13:06:29 because the android plugin in eclipse makes life so much easier Jul 31 13:06:53 i'm used to intellij and using that for everything but android Jul 31 13:07:15 But there's a plugin for NetBeans as well. At least I found one online for v6.7, but doesn't seem to be available within NetBeans v6.7.1 Jul 31 13:08:17 * mr_lou scouts the channel for Android devs using NetBeans... Jul 31 13:08:23 Any such persons in here? Jul 31 13:08:58 birgerb, I do regret I didn't use Eclipse when I began learning JavaME. Then I wouldn't be in this mess now. Jul 31 13:09:11 hehe Jul 31 13:09:51 i don't find using different IDE's that big a deal anyway Jul 31 13:10:15 mkay, maybe it isn't a big a deal as I think. Jul 31 13:10:47 I did have a look at Eclipse some time ago. Remember it being a bit confusing. But oh well. I'll have another go. Jul 31 13:11:30 I basically hate eclipse.. it always fucks up your projects.. But it works pretty good for Android projects :) Jul 31 13:13:12 yeah ;) Jul 31 13:13:23 * Ge0rG is coding for android with git, vim and ant. Jul 31 13:13:31 :) Jul 31 13:13:49 a real masochis! ;) Jul 31 13:13:51 ,t Jul 31 13:14:36 birgerb: actually, it depends. having to click around all day and not having useful means of automatization is a kind of masochism too :P Jul 31 13:15:19 sure, but there's hotkeys you know :p Jul 31 13:15:37 I do know hotkeys too... Jul 31 13:15:57 i like rake instead ant http://github.com/jberkel/android-helloworld-rake/blob/64a9ab6c0b13341f96ec5cb585724b095e30205e/Rakefile Jul 31 13:16:03 however. everbody gets what s/he deserves. Jul 31 13:17:01 yep :) Jul 31 13:18:40 anyone used last.fm api on android? Jul 31 13:38:32 Hello Do you know how to use ndk on macbook, for me I have an error at the start of installation Jul 31 13:54:58 ludovic__perrier: doesn't the script tell you what could be wrong? Jul 31 14:12:35 Flixi, Hello, 2 sec I see Jul 31 14:13:20 I'm pretty sure it should do that Jul 31 14:16:16 Hm Jul 31 14:16:27 ok, when I execute ./build/host-setup.sh I have this error: Jul 31 14:16:59 ld: library not found for -lcrt1.10.5.o Jul 31 14:17:35 I see on the web that is mac library but I don't find solution... Jul 31 14:17:58 Ok Eclipse isn't impressing me so far. Jul 31 14:18:30 Can't seem to install the Android plugin. Says it requires another plugin, org.eclipse.gef - which I can't find anywhere? Jul 31 14:18:35 mr_lou: frustrated all ready? Jul 31 14:18:59 Flixi, Wouldn't call it frustrated (yet) ;-) Jul 31 14:19:05 Flixi, Slightly annoyed. ;-) Jul 31 14:19:17 mr_lou: Have you tried following the guide step by step :) Jul 31 14:19:28 Flixi, I believe that's what I'm doing yes. Jul 31 14:19:52 I believe you won't need any additional plugins then.. :) Jul 31 14:20:06 But it won't let me install ADT. Jul 31 14:20:07 Requested operation cannot be performed because it would invalidate the current configuration. See details for more information. Jul 31 14:20:07 Android Development Tools (0.9.1.v200905011822-1621) requires plug-in "org.eclipse.gef". Jul 31 14:20:24 That's what I get. Jul 31 14:20:56 just grab latest eclipse 3.5 java edition Jul 31 14:21:04 and install plugin via eclipse update manager Jul 31 14:21:09 did that yesterday, works fine Jul 31 14:21:27 I got to agree.. it's really easy :) Jul 31 14:21:34 I used the Ubuntu repository install... maybe that wasn't the way. Jul 31 14:21:58 v3.2.2 it says Jul 31 14:22:17 If I know ubuntu right it shouldn't make a difference.. except the link you have to include in the software update site is a bit different Jul 31 14:22:25 Flixi, have you seen my error? Jul 31 14:22:55 Yes I saw it, I'm just trying to do the install again Jul 31 14:23:16 the ubuntu repository i think installs 3.2, I couldn't get the plug in set up with that version either Jul 31 14:23:21 I had to go get 3.5 Jul 31 14:23:23 ok, thanks Jul 31 14:23:26 Taht works great for me Jul 31 14:23:26 Ah Jul 31 14:23:35 Yea see that now. Needs v3.3. or later. Jul 31 14:24:08 * mr_lou uninstalls Eclipse again. Jul 31 14:26:41 ludovic__perrier: I had no problems at all.. :( downloaded the package, moved it to Applications, unpacked it and renamed it to android-ndk, moved to the that folder, and wrote ./build/host-setup.sh Jul 31 14:26:56 resulting in a "Host setup complete." :) Jul 31 14:27:36 * mr_lou downloads v3.5 Jul 31 14:27:49 ok I'll try Jul 31 14:28:20 And I didn't need root privileges or anything.. Jul 31 14:34:52 That's better. :-) Jul 31 14:35:54 Flixi, no, same error I think it's environment problem, what's need to preparation of ndk (gcc...) Jul 31 14:36:39 It's only a guess, but maybe you need to install the xtools first? Jul 31 14:36:59 uh, maybe I asked in the wrong room :) Jul 31 14:37:06 I was in #android, but had an app SDK question Jul 31 14:37:09 I have do it with xcode install Jul 31 14:37:14 is this a better room to ask? Jul 31 14:37:32 millenomi: you can try :) Jul 31 14:38:02 ah, answer to that question: GCC, autotools etc are in the Xcode Tools, so they need to be installed anyway to do any serious development. Jul 31 14:38:05 the question is Jul 31 14:38:24 porting an iPhone app to Android. I have the equivalent of a "compound control" as the Android docs put it Jul 31 14:38:36 this control has a set of children but they're just for display Jul 31 14:38:39 purposes Jul 31 14:38:51 (children = Views) Jul 31 14:38:54 ludovic__perrier: how fare did you get? try look at this: http://www.pastebin.ca/1513789 Jul 31 14:39:26 I was having the superview handle events on the iPhone. what is the right way to approach the problem in Android? I was looking at onInterceptTouchEvent(), but maybe I'm off track. Jul 31 14:40:44 millenomi: I'm very interested in hearing about your experiences porting.. I expect to port my app from android to iphone os soon.. Jul 31 14:41:09 I'll share if they're good :) Jul 31 14:41:16 or useful or something. Jul 31 14:41:24 Grand :) Jul 31 14:44:24 millenomi: I hope someone will correct me if I'm wrong, but as I understand your problem. You got different views = different intents. If you want some event handling only one place I think you need to create a service there will notify your intents about the event. Jul 31 14:44:33 er Jul 31 14:44:35 not exactly Jul 31 14:44:36 mmm Jul 31 14:44:38 VIDEO EXPLAINATION! Jul 31 14:44:43 http://infinite-labs.net/mover Jul 31 14:44:51 :) Jul 31 14:44:53 I'm trying to recreate the slide control you see in that video. Jul 31 14:45:25 I need the whole slide to respond to events, but I was going to implement the parts (backdrop, image, label) with subviews. Jul 31 14:45:50 is this the right approach? if so, how do I handle events without subviews getting in the way? Jul 31 14:47:22 No idea sorry.. :( The app looks fancy and very iphonish.. Jul 31 14:47:40 No way of changing basic black font color in Eclipse? :-( Jul 31 14:48:55 mr_lou: properties, general, appearance :) Jul 31 14:49:28 Been there, and changed all black colors to green, but nothing changes the basic font color. Jul 31 14:50:41 Well, not Properties. It's under Preferences. Jul 31 14:52:16 :) same same.. Jul 31 14:53:29 But still doesn't seem possible. Jul 31 14:53:37 A lot of other colors can be changed though. Jul 31 14:56:45 agree, I can even chance the font and size, but not the color.. Jul 31 14:57:16 but to be honest I have never thought about changing the color :) Jul 31 14:57:59 Well I need to. Jul 31 14:58:43 So I can't use Eclipse because of this little detail. Jul 31 14:59:04 Still not frustrated. Just slightly annoyed. Jul 31 14:59:17 :p Jul 31 14:59:18 Will have to try developing with NetBeans then. Jul 31 14:59:42 can I ask why it's so important the text is green and not black? Jul 31 15:00:16 its gotta be a bug, when you change the text font and color from black, it goes back to the orignial color Jul 31 15:00:37 Because I need to use a black background. Have some eye-problems. No bright lights. Jul 31 15:00:49 I see Jul 31 15:01:05 NetBeans has nice options there. Jul 31 15:01:57 you want something that looks like http://drnicwilliams.com/wp-content/uploads/2006/08/radrails-with-textmate-theme.png Jul 31 15:02:55 Exactly, but even with the other white backgrounds gone too. ;-) And they are gone in Eclipse too (and NetBeans), so I just need to be able to change the default #222222 coloured basic text to some other colour. Jul 31 15:04:49 mr_lou: I found it :) Jul 31 15:05:05 Really? Jul 31 15:05:06 mr_lou: Java > Editor > Syntax Coloring preferences. Jul 31 15:05:17 same place, but you need to go to the java settings :) Jul 31 15:05:20 Hmm... I was in there as well... didn't seem to have any effect. Jul 31 15:05:26 * mr_lou reopens to try again Jul 31 15:05:34 if you insist.. and chance all colors it will Jul 31 15:05:39 mine is red right now :( Jul 31 15:06:11 the one called "Other" changed most of my black to red Jul 31 15:06:22 but think you will need to spend a lot of time before you got it as you want Jul 31 15:06:45 Ah, no I wasn't in there. Jul 31 15:06:52 * mr_lou changes colors.... :-> Jul 31 15:07:04 I don't mind. Jul 31 15:07:08 I did that in NetBeans as well. Jul 31 15:07:56 Indeed that helped. Jul 31 15:07:59 :) Jul 31 15:08:04 And it seems to be enough to change Other and Brackets. Jul 31 15:08:13 At least for now. Jul 31 15:08:15 Nice Jul 31 15:08:17 Thanks Flixi Jul 31 15:09:16 no problem.. Think this is the most productive I have been all day... and only one hour before I can go home for a weeks vacation :) Jul 31 15:10:38 lol Jul 31 15:10:54 Well, operators and static methods needs to be changed too. But that's it I think. Jul 31 15:11:07 * mr_lou continues his HelloAndroid adventure. Jul 31 15:11:34 best of luck on your adventure.. ;) Jul 31 15:12:16 :-> Jul 31 15:25:07 hey, when using google maps, how do i get the gps to work Jul 31 15:25:14 sending incoming calls etc from eclipse ddms view works Jul 31 15:25:21 but i cant send manual long and lat Jul 31 15:25:42 or i can, but nothing seems to happen Jul 31 15:25:49 pressing "my location" in the maps app and then pressing "send" for long+lat in ddms Jul 31 15:28:31 oh i see you found the option Jul 31 15:28:38 I got pulled away with work Jul 31 15:30:12 hey guys - can anyone point me to a good beginners open gl es tutorial Jul 31 15:30:15 i cannot find one using google! Jul 31 15:33:02 there is an online book you can get calledpro android Jul 31 15:33:38 http://www.dbebooks.biz/ebooks/computers__internet/11220-pro-android.html Jul 31 15:33:46 ooo! Jul 31 15:34:33 sweet Jul 31 15:34:33 so this should take me thru using open gl etc with android Jul 31 15:34:35 if you create an account there you can download it from there Jul 31 15:35:01 yeah am downloading now Jul 31 15:35:11 about 40 pages or so worth in chapter 10 Jul 31 15:35:21 can anyone tell me roughy how much can you expect to pay on a generic shirt like say a Oneill one in the US ? Jul 31 15:35:50 says it covers voice recognition - as far as im aware my htc magic *uk* doesnt support voice recognitiion Jul 31 15:35:52 chapter 10 Programming 3d Grahpics with Open GL Jul 31 15:36:29 how od you like the magic Jul 31 15:36:42 I think don't think I want a device with out a hardware keyboard Jul 31 15:40:24 i like the magic a lot Jul 31 15:40:29 think its really snazzy Jul 31 15:40:47 thas cool Jul 31 15:40:53 thats cool rathe Jul 31 15:40:55 rather Jul 31 15:45:53 hmm, using the console and geo fix works fine Jul 31 15:45:55 but not via eclipse + ddms Jul 31 15:48:56 deekjx must admit i like the way this book as has been written Jul 31 15:49:05 does it have any other especially good chapters? Jul 31 15:51:58 Where did you find the download? I followed the link, and created a user.. But can't find the download button Jul 31 15:52:30 i haven;t read it Jul 31 15:53:02 it's beyond the scope of what I know right now. I'm a beginner but was pooling lots of resources Jul 31 15:53:49 It being free, helps its cause though :-) You loose nothing but time if you don't like it. Jul 31 15:55:24 deekjx: can you please describe where the download button/link is located on the page? Jul 31 15:56:25 you have to create an acount first, then you got scroll down to under the adds but above the comments Jul 31 15:56:49 the first comment acctually Jul 31 15:57:31 Oh.. okay, got it :) very suspect to put the download in comments Jul 31 15:57:59 i didnt make an account actually Jul 31 15:58:08 i just clicked around and found a download buttn Jul 31 15:58:13 yeah it is ckind of suspect Jul 31 15:58:20 http://www.dbebooks.biz/ebooks/computers__internet/11220-pro-android.html Jul 31 15:58:23 scroll down Jul 31 15:58:24 first link Jul 31 15:58:27 oh, cool, i didn't knwo you could see the comment without it Jul 31 15:58:47 roight am off out Jul 31 15:58:49 speak to yall later! Jul 31 16:01:27 *sigh* Jul 31 16:01:33 'nother question! Jul 31 16:01:55 I'm trying to instantiate a number of views via View.inflate(). the XML specifies a custom class -- why does it always return a LinearLayout instead? Jul 31 16:02:19 XML: ... with Class extends RelativeLayout Jul 31 16:03:23 what m i doin rong? Jul 31 16:03:32 emm Jul 31 16:03:38 i can haz noobness. Jul 31 16:03:46 does ur element have android:layout_toRightOf="id" etc Jul 31 16:03:53 or does it have associations to do with linear layouts... Jul 31 16:04:20 I have a subview in the RelativeLayout subclass that has a layout_belowWhatsitsname="id" Jul 31 16:04:25 i keep seeing refferences online for opening a Email intent like this in 1.1 Intent.createChooser(sendIntent, "Email:") , but it seems to be removed in 1.5 , can anyone confirm ? Jul 31 16:05:04 posting the XML... Jul 31 16:05:22 ok Jul 31 16:05:27 i dont know if i can help tbh Jul 31 16:05:29 but ill take a look Jul 31 16:05:35 * millenomi pasted http://pastie.textmate.org/private/jsxutru5ncodyjjvtmm6w Jul 31 16:05:41 no, wait, no layout_belowness. Jul 31 16:05:44 valexa yeah i dont recognise that api Jul 31 16:06:28 millenomi that xml has on relative layout android lines in it at all... Jul 31 16:06:32 no wonder its coming out as linear layout Jul 31 16:06:47 net.infinitelabs.mover.ui.SlideView extends RelativeLayout Jul 31 16:07:08 ok... Jul 31 16:07:11 so you need ot od like Jul 31 16:07:34 baring in mind that relative views are only calculated in one passing or something, i never get relative right Jul 31 16:07:51 always use absolute lol Jul 31 16:07:56 i have to go Jul 31 16:07:56 ciao Jul 31 16:08:03 I'm just baffled by the fact that it's not returning an instance of my custom subclass is all. Jul 31 16:12:53 worked around by assigning an ID to the slide view and using findViewById(). :) Jul 31 16:13:06 didn't expect my view to be inflated wrappe. Jul 31 16:13:09 *wrapped. Jul 31 16:13:10 it still works , i just needed to also specify something like : sendIntent.setType("text/plain"); Jul 31 16:14:01 :) Jul 31 16:14:19 the choser handler is smart enough to chose the senders based on the type of the data , so the type is required Jul 31 16:18:10 yayness Jul 31 16:18:16 I got to my target for today Jul 31 16:18:27 less pain than I expected (still quite a bit tho) Jul 31 16:27:54 mmm Jul 31 16:27:58 must say Jul 31 16:28:10 it didn't take much more effort than the iPhone side of things, comparatively speaking. Jul 31 16:29:13 I mean: I got from nil to Having a View Onscreen The Way I Wanted It more or less in the same timeframe. Jul 31 16:29:27 (also Receiving Events The Way I Wanted It) Jul 31 16:29:44 (To) Jul 31 16:30:19 nice Jul 31 16:31:06 I'm working on learning java and the android at the same time. I finally got my app to function fairly well, I need to add and eula and work on signing it Jul 31 17:05:43 Hi, all. I have a project I'm working on where I want to make use of the features from AudioTrack, but I want to be able to use MP3s, etc. What is the recommended way to convert compressed to PCM data? Reading docs, it looks like the decode method is private in MediaPlayer, so some people have included the decoder open source libs, but that seems really inefficient; if anything, it would be better to use a general library. Jul 31 17:06:03 romainguy: you there? Jul 31 17:06:29 romainguy: i think i have found a bug in Launcher in cupcake. pretty serious, but wanted to run it by you to see if it was already known. Jul 31 17:09:23 jasta: sure, what is it? Jul 31 17:10:21 it seems that if an app in the marketplace changes the name of the activity which has the MAIN/LAUNCHER intent-filter changes, when the package upgrades through the market the Launcher will still fire the old Intent to start it Jul 31 17:10:32 it's been fixed Jul 31 17:10:32 upon failure, will say "The application is not installed." Jul 31 17:10:35 that's what i thought. Jul 31 17:10:42 backported to cupcake? Jul 31 17:10:45 no Jul 31 17:10:49 oh :) Jul 31 17:11:05 will it be? or are you guys waiting for donut? Jul 31 17:11:12 no it won't be Jul 31 17:11:22 ok, thanks Jul 31 17:33:06 romainguy: will that also apply to shortcuts? Jul 31 18:14:55 hey guys - am making an open gl app - does anybody know how to get the specific co-ordinates of a finger press on the phone? Jul 31 18:17:51 ... Jul 31 18:18:22 OnTouch... Jul 31 18:20:04 yep jst found it Jul 31 18:20:06 awesomeness Jul 31 18:20:44 is it possiuble to have an opengl view and a say...textview on screen at he same time? Jul 31 18:22:38 AndyArmstrong: yes Jul 31 18:38:36 which website do you use to share the screenshot? Jul 31 18:59:32 in one of the videos on android's site there is a guy takling about making a game named "replica island". Did this ever get released anywhere? I can't find any other references to it Jul 31 19:01:10 or any other good, similar examples? Jul 31 19:12:11 anyone know if is possible to align something to bottom of the screen on a relative layout ? Jul 31 19:14:50 hi Jul 31 19:23:24 i have a silly eclipse question/problem, when i run the app, i have chosen to choose the emulator, thus "Android Device Chooser" Dialog is opened. however, it got stretched itself somehow and i am not able to see the "OK" button but only "Cancel" button. The "Android Device Chooser" Dialog won't let me resize its size also. So I am stuck with Tab guessing the "OK" button. http://s3.amazonaws.com/scrnshots.com/screenshots/185622/screenshot-3_png Jul 31 19:23:42 ah... i cannot even see the "Cancel" button now Jul 31 19:24:14 can't your window manager resize the window from the left border? Jul 31 19:24:33 i don't know how you got there though Jul 31 19:24:34 xavd, no Jul 31 19:24:46 yeh, i wish, i knew Jul 31 19:25:13 i am just wondering why eclipse won't let me resize the window Jul 31 19:26:20 looking at the code, it's a non resizable dialog Jul 31 19:26:26 but it really shouldn't bethat wide Jul 31 19:27:13 it's supposed to adapt to the content, and from the screenshot you don't actually have any content forcing the window size to be this wide Jul 31 19:27:44 what's your OS/window manager? Jul 31 19:27:54 Mac OS X Jul 31 19:28:05 oh sorry Jul 31 19:28:07 >_< Jul 31 19:28:08 wrong window Jul 31 19:28:12 Maybe the status is actually "online " :-) Jul 31 19:28:14 gnome Jul 31 19:28:20 hehe that was for aunn1 Jul 31 19:28:24 you should be able to alt+drag the window, aunn1 Jul 31 19:28:29 kroot: hehe yeah maybe Jul 31 19:28:29 is that Ubuntu? Jul 31 19:28:39 yeh Jul 31 19:28:48 xavd: Which version of Eclipse are you using? Jul 31 19:28:59 3.3/3.4/3.5 :) Jul 31 19:29:08 All of them have the same problem? Jul 31 19:29:17 I tried on mac, but I'll switch to linux to try Jul 31 19:29:31 kroot: no, I've never seen that on any combo of Eclipse/OS Jul 31 19:29:36 I didn't have it on 3.5-Mac/Cocoa/x86 Jul 31 19:29:37 so what i notice is that "Launch Android Virtual Device", its headlines get stretched each time, now i am not even seeing the cancel button Jul 31 19:29:42 3.5 Jul 31 19:29:56 and I test all the one we offically support Jul 31 19:29:57 Er, sorry, I'm meaning to ask aunn1 Jul 31 19:30:07 aunn1: You might want to try 3.4, I suppose. Jul 31 19:30:14 it should work on 3.5 Jul 31 19:30:42 but I haven't tried 3.5/ubuntu. I'll ask someone Jul 31 19:31:02 xavd: Really? Good to know. I hear complaints from developers about 3.5 + Android Jul 31 19:31:10 sigh... i recently have issues with 3.4 and spent the whole morning to set up this new environment Jul 31 19:31:15 xavd: Is there a page up somewhere with tested combinations? Jul 31 19:31:30 aunn1: Well, xavd would know better than I. Jul 31 19:31:45 kroot: haven't had a problem, but I haven't tested 0.9.1 Jul 31 19:39:34 http://s3.amazonaws.com/scrnshots.com/screenshots/185626/screenshot-4_png so if you look at "Launch a new Android Virtual Device" table you will see that the headers get stretched Jul 31 19:40:14 aunn1, that happens to me too Jul 31 19:40:17 annoying Jul 31 19:40:29 did u find the fix? Jul 31 19:40:34 KNY: a/s/l.. I mean OS/eclipse version/etc Jul 31 19:40:37 yeah, just ignore it :) Jul 31 19:40:56 well, i can't cause i need to choose between emulators Jul 31 19:41:00 kroot, ubuntu 9.04/3.4/1.5_r2 (though it started with 1.5_r1) Jul 31 19:41:12 aunn1, double-click on it Jul 31 19:41:20 3.5 1.5_r3 Jul 31 19:41:22 aunn1, or just hit enter Jul 31 19:41:34 aunn1: And you're using Ubuntu as well? Jul 31 19:41:42 yes, he is Jul 31 19:41:56 yeh, don't let the IE confuse u ;) Jul 31 19:41:56 So you guys both have nice features like unzipping certain files will root your box.. :-) Jul 31 19:42:13 kroot, I like to live on the edge Jul 31 19:42:49 hmm... double click Jul 31 19:43:20 aunn1: hmm wow that's really strange Jul 31 19:43:55 it used to be that restart eclipse would fix it, but that stopped working Jul 31 19:43:58 and I stopped caring Jul 31 19:44:31 yeh, i have restarted the eclipse and it doesn't go away Jul 31 19:45:15 KNY, thx for the the dbl-click advice, i should have known that after using computer for so long .... :D Jul 31 19:45:40 still, the android eclipse plug in team should take a look into it Jul 31 19:45:54 it's so annoying Jul 31 19:46:46 aunn1: I am the android eclipse plug-in team Jul 31 19:46:50 and I'm looking at it right now :) Jul 31 19:46:58 oh thx. :D Jul 31 19:47:01 :) Jul 31 19:47:11 (well I'm not the whole team) Jul 31 19:47:12 xavd rules :) Jul 31 19:47:20 heh glad i didn't whine too ugly :D Jul 31 19:47:21 hi Jul 31 19:47:29 hehe Jul 31 19:47:31 He's just 1.5 persons on the team. Jul 31 19:47:47 our qa quys just confirmed they've never seen this either Jul 31 19:48:06 xavd, let me know anything i can be of help Jul 31 19:48:31 has anyone been successful at getting Geocoder#getFromLocation working? Jul 31 19:48:45 xavd, really? I just figured it was a known issue haha Jul 31 19:49:15 i keep getting returned a zero length List Jul 31 19:49:49 KNY: first time I see this. you said you were running ubuntu 9? Jul 31 19:50:04 xavd, yes, 9.04, though it used to happen on 8.10 as well Jul 31 19:50:42 ah ok, I just upgraded my box to 8 and reinstalling stuff now. I'll let you know in a bit if I see it Jul 31 19:51:13 xavd, it took a bit for it to show up. Eventually, you'll go to run it and just get that huge dialog Jul 31 19:51:19 we (finally) have a lab with more versions of linux now, so it'll be easier to test different versions too Jul 31 19:51:28 I should point out that resizing also doesn't work--it just adds scroll bars to the dialog :) Jul 31 19:51:30 ah ok, good to know it's not always Jul 31 19:51:43 xavd, why do you guys test on super old versions of ubuntu? Jul 31 19:51:44 hehe that's (kinda) funny Jul 31 19:52:14 KNY: just took us a while to get a lab setup with standard versions of linux, instead of our internal custom distrib :( Jul 31 19:52:28 ah Jul 31 19:52:45 we have remote labs, but it's not too useful when you need to connect usb devices to them. so we had to setup something from scratch Jul 31 19:53:40 xavd, I take it back--seems that you can't even resize it anymore (alt+middle click) Jul 31 19:53:47 xavd, ah Jul 31 19:54:44 any help with Geocoder#getFromLocation from anyone? Jul 31 19:54:51 ok, giving it a last try restarting the eclipse, the problem still exist Jul 31 19:55:17 so i will just wait from xavd for further info, for now, i will just dbl click Jul 31 19:55:29 aunn1, enter also works Jul 31 19:55:29 aunn1: double click on your choice for now, I'll see if I can get this fixed for the next version. sorry :( Jul 31 19:55:56 (btw, thanks KNY for the double click info, I had completely forgotten about it :)) Jul 31 19:56:03 no problem :) Jul 31 19:57:17 xavd, where does it write its config files? I wouldn't mind poking around a bit Jul 31 19:58:03 what config files? for adt, we use the default eclipse storage, so it's somewhere in your workspace under .metadata Jul 31 19:58:17 ok, no worry, xavd, glad that u know and working on it. let me know if i can help you collect some forensic stuff on my box Jul 31 19:58:21 all that's there is version.ini or something. I'll look around more though Jul 31 19:58:26 KNY: Maybe try transferring that metadata to a fresh VM instance to see if it gets messed up again Jul 31 19:59:43 oh wait, duh, hidden folders :) Jul 31 20:02:06 kroot, xavd, confirmed (copying .metadata to a new workspace persists the issue) Jul 31 20:02:51 hmm Jul 31 20:03:17 could you send me your .metada folder? Jul 31 20:03:19 yay repro Jul 31 20:03:41 go teamwork :-P Jul 31 20:03:58 Hi there, anyone got success trying this fix? : http://groups.google.com/group/android-developers/browse_thread/thread/726ea864e89985ec/3699fbb71d34a1b7?pli=1 Jul 31 20:03:58 xavd, also confirmed that a new workspace doesn't have the problem :) Jul 31 20:04:17 xavd, sure. Is there anything personally identifiable that I should strip out? Jul 31 20:04:42 it's a good question. do you have other projects in your workspace? Jul 31 20:04:46 yes Jul 31 20:05:41 hmm Jul 31 20:05:47 oh xavd, I should point out that I'm on 64-bit ubuntu. I don't know if aunn1 is or not Jul 31 20:05:47 wait a bit, trying to reproduce it first. Jul 31 20:06:06 yes, I am on 64 bit too Jul 31 20:11:41 i look into .log file for personally identifiable stuff. i only find projects name and username from the path , don't know if i should look into any other places Jul 31 20:16:59 well I can't seem to reproduce it so far (ubuntu 8, eclipse 3.4, adt 0.9.1) Jul 31 20:17:08 going to install 3.5 Jul 31 20:19:27 anyone can help me with this -> http://www.anddev.org/viewtopic.php?p=24987#24987 ? Jul 31 20:23:01 xavd, removing the two android files in .metadata/.plugins/org.eclipse.core.runtime/.settings/ had no effect on the size of the dialog :/ Jul 31 20:24:30 hmm, i sent my emulator a sms with a nordic character 'ä' Jul 31 20:24:38 and the whole messager bugged out and turned into kanjis Jul 31 20:24:54 KNY: those are just the preferences for the plugin, so they have no impact on the size of the dialog Jul 31 20:25:11 we don't even have code to keep the location/size of that particular dialog Jul 31 20:25:16 any suggestions on things I can check? Jul 31 20:25:16 ah Jul 31 20:25:31 I mean it's definitely something stored in .metadata Jul 31 20:25:57 yeah I'm going through the folder to see if anything jumps at me Jul 31 20:26:56 KNY: what about stuff in the org.eclipse.jdt directories Jul 31 20:27:06 or org.eclipse.ui, I guess Jul 31 20:27:20 I looked in there and there wasn't anything special Jul 31 20:28:23 oh wait we do store the width of the table columns Jul 31 20:28:41 yeh, that's what i am about to mention Jul 31 20:29:01 yeah, that's why I thought those two files I mentioned earlier might be relevant Jul 31 20:29:07 but they didn't seem to have an effect Jul 31 20:29:13 the width of the table columns get stretched and i buttons get lost Jul 31 20:29:18 yeah that's where the values would be stored Jul 31 20:29:52 yawn Jul 31 20:30:29 /coffee jasta Jul 31 20:32:15 hmm ok, so the column widths of the top table are stored but not the bottom ones Jul 31 20:32:33 xavd, the bottom one is the one that's huge for me Jul 31 20:32:59 I resize the top one, then close the window. reopen the dialog, it's bigger (to accomodate for it). make the column smaller, close/reopn, the dialog is still big even though no column/table need all the space for it Jul 31 20:33:45 yeah that's because the 2nd table resize the columns to match the width of the dialog, but it's the top table that seems to make the dialog big the first time Jul 31 20:33:48 the bottom one doesn't remember the size Jul 31 20:34:01 it just stretches Jul 31 20:34:04 xavd, it's somewhere in .metadata/.plugins/org.eclipse.core.runtime/.settings Jul 31 20:34:06 yup Jul 31 20:34:10 I just renamed the folder, opened eclipse, and it works Jul 31 20:34:13 * KNY starts diffing Jul 31 20:37:03 * KNY gets close Jul 31 20:39:03 anyone has a idea where is the graphic for the middle bottom button , cant find it in the sdk ...!? Jul 31 20:39:07 xavd, it's this setting: deviceChooser.state=19537 Jul 31 20:39:27 valexa, middle bottom button? Jul 31 20:39:31 KNY: filename? Jul 31 20:39:48 xavd, .metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.adt.prefs Jul 31 20:40:13 oh Jul 31 20:40:14 hmm Jul 31 20:40:19 I don't see it in my prefs Jul 31 20:40:23 add it Jul 31 20:40:32 well, close eclipse, add it, and then start eclipse Jul 31 20:40:45 I also have this one: deviceChooser.serial=219 Jul 31 20:41:02 deviceChooser.serial=132 Jul 31 20:41:02 deviceChooser.state=1765 Jul 31 20:41:04 oh it's because eclipse wrote it only when I closed it Jul 31 20:41:05 those are the only two (aside from the SDK location) that are uncommented in my file Jul 31 20:41:13 xavd, yeah Jul 31 20:41:22 so yeah these are the columns width that we save Jul 31 20:41:34 I don't know how they got to be this big Jul 31 20:41:35 xavd, I have more, but I commented them out Jul 31 20:41:41 middle bottom button .. the android button , the one that opens the tray with icons Jul 31 20:41:42 but they aren't obnoxiously huge :) Jul 31 20:41:46 yeah all deviceChooser.* are the columns Jul 31 20:41:51 valexa, look at SlidingDrawer Jul 31 20:41:55 xavd, yeah Jul 31 20:42:52 the dialog size is also stored somewhere else. because I can get to a point where resizing the columns to be small, the dialog stay at the same width when I close/reopen it Jul 31 20:42:55 xavd, it grows by 18px every time I quit eclipse Jul 31 20:43:00 so somewhere eclipse stores, somehow, the dialog size Jul 31 20:43:05 ah Jul 31 20:43:13 what does? the column? Jul 31 20:43:15 or the dialog? Jul 31 20:43:39 the value of deviceChooser.state Jul 31 20:43:44 everything else remains the same Jul 31 20:43:45 wtf Jul 31 20:43:58 let me try Jul 31 20:44:31 and sorry, that 18px should just be "grows by 18" since I shouldn't assume that they're pixels :) Jul 31 20:45:22 xavd, oops, let me clarify that: every time I *open the dialog*, the value of deviceChooser.state += 18 Jul 31 20:45:26 KNY, how do u get the number? Jul 31 20:45:42 aunn1, check .metadata/.plugins/org.eclipse.core.runtime/.settings/com.android.ide.eclipse.adt.prefs Jul 31 20:45:42 ah... i thought u have a very good eyes Jul 31 20:45:47 haha Jul 31 20:45:51 to see the pixel different :D Jul 31 20:46:02 differences Jul 31 20:46:24 so aunn1 there's your fix: close eclipse and set that value to 50 and then open eclipse :) Jul 31 20:46:43 thx KNY! that's awesome debugging Jul 31 20:47:13 aunn1, that wasn't very good debugging. That was more of stumbling around in the dark until I stubbed my toe on the answer :) Jul 31 20:47:19 ok I have the same thing, but I need to quit eclipse to have it be stored in the file Jul 31 20:47:20 yeh, i have commented out the two lines and it gets back to its default size Jul 31 20:47:53 xavd, yeah, so do I. If I open eclipse, open the dialog twice, and quit eclipse, the value will then increase by 36 Jul 31 20:48:49 ah ok Jul 31 20:49:17 well I can figure this out now, just need to (re)setup my linux box for Eclipse dev Jul 31 20:49:20 thanks a lot KNY ! Jul 31 20:49:21 so now I'll hand it over to you to do the hard work of figuring out why that magic number of 18 is there :) Jul 31 20:49:23 nah, u wave ur hand in dark guessing (an intuitive guess) where u r, that require skill ;) Jul 31 20:49:35 xavd, no problem Jul 31 20:49:54 I'm guessing 18 is the size of the scrollbar on the side and that the table or the viewer that encapsulate it does something stupid about it Jul 31 20:50:14 xavd, I don't have any vertical scrollbars showing but yeah, it's probably something like that Jul 31 20:50:21 and since SWT behave slighly different on all the platform, we never saw it (devs are on windows or mac) Jul 31 20:50:46 xavd, ah. I suppose a short-term fix would be to just not save that column's width :) Jul 31 20:50:56 hehe yeah Jul 31 20:52:08 or if(deviceChooser.state > screen.width){ deviceChooser.state = DEFAULT_WIDTH; } Jul 31 20:52:10 heh Jul 31 20:52:55 well I should test the sum of all the columns :) Jul 31 20:53:05 but I need to understand the different behavior of the table anyway Jul 31 20:53:16 we've seen different behavior if you add a checkbox to them already Jul 31 20:53:43 linux puts the checkbox in the first column (and counts it for its width), but macos puts it before the first column with not access to it (or its width) Jul 31 20:53:47 the joy of SWT... Jul 31 20:54:04 heh Jul 31 20:55:31 xavd, for what it's worth, I just took a screenshot and my scrollbars are 15px wide Jul 31 20:57:39 is there some class that defines icons etc used by the default android layouts etc? Jul 31 20:58:00 KNY: hmm Jul 31 20:58:23 deebo, android.R :) Jul 31 20:58:25 deebo: not some class but android.R.drawable.* has id for them Jul 31 20:58:35 ok, thanks Jul 31 20:58:39 you can reference them in your XML with @android:drawable/... Jul 31 20:59:28 what about custom themes, like the hero has, can these references be "trusted"? :) Jul 31 21:00:22 well there's no custom SDK for the hero, so you can't have access to them. and if you could it wouldn't be in android.R (or it would be breaking android and not be considered compatible) Jul 31 21:01:05 so they define their own stuff instead of having a personalized version of android.R? Jul 31 21:03:15 well at this point it's probably all private resources. unless they release an SDK it doesn't matter how they did it Jul 31 21:32:39 Yay, https://review.source.android.com/10910 Jul 31 21:36:27 kroot: what's the size of libFLAC? Jul 31 21:36:52 romainguy_: trade secret... Jul 31 21:36:54 wait, hold on Jul 31 21:37:06 that's important if we are to accept this patch... Jul 31 21:38:35 It's 203k right now. I can try to trim the fat off of it. I put it in ARM mode initially, but I haven't measured performance. Jul 31 21:41:42 166k in thumb mode Jul 31 21:41:55 Hello everybody Jul 31 21:43:51 is there any video player app i can run on the emulator? Jul 31 21:48:34 romainguy_: Most of the library size is due to the metadata part of it, so I could probably get it below 100k by putting in some strategic #defines Jul 31 21:50:49 200kB argh Jul 31 21:51:17 113kB now. Jul 31 21:51:52 still too much for Dream :) Jul 31 21:52:07 What would be the target? 0kB? :-) Jul 31 21:52:12 my Dream has a 90MB /system :P Jul 31 21:52:14 -200 kB Jul 31 21:52:46 So you're saying I have to go around to other libraries with a cup and beg.. Jul 31 21:53:07 spare bytes... spare bytes... Jul 31 21:53:39 romainguy_: I had an idea for resources to compress their usage without destroying the ability to index into them. Jul 31 21:53:53 romainguy_: that would probably save megabytes Jul 31 21:54:02 huh? Jul 31 21:54:09 we barely have megabytes of resources :) Jul 31 21:54:26 squashfs would roughly half the amount of space taken Jul 31 21:54:38 but google isn't open to read-only /system, i know Jul 31 21:54:46 romainguy_: I don't know. UTF-16 takes up a lot of space. Jul 31 21:55:22 I'll try it and see what happens. Jul 31 21:55:25 fwiw cramfs also significantly reduces /system size Jul 31 21:55:27 zinx: squashfs rocks :) Jul 31 21:55:42 but i wasn't able to get cramfs to boot, and squashfs isn't in 2.6.27 stock :x Jul 31 21:57:33 rw aufs[ro squashfs] Jul 31 21:59:45 romainguy_: It seems like it might save about 300k on the Settings.apk alone, but that's the generic build that probably includes several languages Jul 31 22:00:21 o_O Jul 31 22:00:27 i'm surprised zip doesn't handle it better Jul 31 22:00:48 zip handles stuff like that just fine, but... Jul 31 22:00:52 916708 Stored 916708 0% 07-31-09 05:28 8b8641f0 resources.arsc Jul 31 22:01:00 :O Jul 31 22:01:01 hmm where to stick mp3 files so tha tthe music app finds them? Jul 31 22:01:27 deebo, anywhere on the SD card Jul 31 22:01:39 i put a few in the root, but the music app is empty Jul 31 22:01:56 zinx: I think it's like that so it can index directly into the zip file to get the resource data Jul 31 22:06:35 mm restart of the emulator worked Jul 31 22:07:09 deebo, you have to force it to scan. Unmounting and remounting the SD card will do that Jul 31 22:07:27 or if you're adding them programmatically, use MediaScannerConnection or whatever it's called Jul 31 22:07:51 no adb command to remount sdcard Jul 31 22:08:56 then just use adb shell reboot ;-) Jul 31 22:35:35 3 Jul 31 22:37:49 Is it possible to get the normal android skin for htc hero? Jul 31 22:39:41 or is it possible to disable the htc sense ui? Jul 31 22:47:11 Jazz89: no, they did asset replacement at the framework level Jul 31 22:59:12 oh Jul 31 22:59:23 i found something call home switcher, thanks anyways Jul 31 23:15:40 hmm no ant build script generated with the latest sdk? Jul 31 23:16:54 anyone know of any charting widgets in the toolkit/sdk? Jul 31 23:17:19 orthopteroid, http://code.google.com/p/achartengine/ Jul 31 23:18:17 woot! love ya! Jul 31 23:18:37 <-- contributor :) Jul 31 23:21:29 Hello all, I have a quick question. When you call 'startService' for a local service, is that done asynchronously? So you can't rely on calling it's interface immediately? Jul 31 23:22:25 correct Jul 31 23:22:51 hrm Jul 31 23:23:08 also, you can't call its interface at all if you just startService(); you have to bind to it in order to get the call interface object Jul 31 23:23:46 at the very least the service has to have its code loaded, its context set up, its onCreate() method called, etc before you can call into it Jul 31 23:23:53 that all happens asynchronously Jul 31 23:23:53 Well, I was treating it as a singleton, and setting that statis variable in the onCreate method Jul 31 23:24:36 oh, if you want to make direct calls onto the object you can do it that way, sure Jul 31 23:25:09 but it still gets started asynchronously; you don't have any particular time guarantee about when the service comes up (or even if it comes up at all, technically) Jul 31 23:25:51 So, could I somehow call a method on that object before onCreate has been called, which modifies a data member? For example some setter? Jul 31 23:26:05 on what object? :) Jul 31 23:26:17 the Service object is created asynchronously as well Jul 31 23:26:28 when your call to startService() returns, it probably hasn't been created yet Jul 31 23:26:52 What happens if I say use the traditional singleton model, and return a new object when getInstance is called? Will that create an onject seperate from the one being constructed automatically by calling startService? Jul 31 23:27:15 yes Jul 31 23:27:31 actually hmm Jul 31 23:28:08 yeah, probably. when you call startService(), the framework creates a new object directly via the class loader Jul 31 23:28:57 Hrm, so I couldn't get an instance of that Service object right away then, just to populate an internal data model Jul 31 23:29:05 correct; it doesn't exist yet. Jul 31 23:29:13 why the hurry? Jul 31 23:29:43 have the service add itself to the model in its onCreate() Jul 31 23:29:54 (for example) Jul 31 23:30:27 Well, it's a network service, and I want to perform a transaction on start of the application. So I was hoping I could queue up transactions so that when the service finally starts, it can just start processing the queue Jul 31 23:31:22 keep the queue data structure accessible to the service class Jul 31 23:31:35 (for example) Jul 31 23:32:14 but in general that's kind of messy; you shouldn't mix "do this on launch" with an ongoing transaction queue Jul 31 23:32:33 unless you're prepared to deal with lifetime issues / data loss / etc Jul 31 23:32:57 Yep, the network needs to be a service and run in a background thread Jul 31 23:33:12 what i'd do myself is bind the service first thing, and not do any enqueueing until the bind came back Jul 31 23:33:30 and then make the enqueue operation part of the binder interface Jul 31 23:33:39 Can you explain the bind functionality to me? What is it's purpose? Jul 31 23:34:13 the purpose of binding to a service is to get a call interface to it even if it's in a different process Jul 31 23:34:33 implicitly, this also tells you that the service is alive and can be invoked on. Jul 31 23:34:39 I see Jul 31 23:34:46 you should read the Service documentation Jul 31 23:36:07 http://developer.android.com/guide/topics/fundamentals.html#servlife and all the specifics linked from there Jul 31 23:36:35 so, my options are A. Wait for it to be created and then perform the download when i get notified of creation, or B. have the queue be external to the service somehow and when it finishes loading up then access that queue to see if it needs processing...? Jul 31 23:36:50 basically, yeah Jul 31 23:37:02 Okay, I think I have enough info Jul 31 23:37:08 Thanks for all the help Jul 31 23:37:11 np Jul 31 23:38:53 does anyone know when the adc2 submission site will go live? Jul 31 23:47:13 hey guys! Jul 31 23:47:33 i am new to opengl on android - and im wondering wahts best way of adding a new line on screen Jul 31 23:47:36 so i have an even listener Jul 31 23:47:42 and wana draw where the touch even happens Jul 31 23:47:51 do i have a - addLine method in the renderer class? Jul 31 23:47:56 is that the best way? Jul 31 23:48:05 which i call and pass the location of the touch event? Aug 01 00:17:38 ... Aug 01 00:17:39 anyone Aug 01 00:24:55 could somebody plz show me the open gl for a straight line.. Aug 01 00:30:53 ............. Aug 01 01:19:09 AndyArmstrong1: http://developer.android.com/reference/android/graphics/Canvas.html Aug 01 01:19:30 AndyArmstrong1: http://pastebin.com/mcf56edc Aug 01 02:06:02 romainguy_: How about 64k? Aug 01 02:54:08 kroot, I don't see why that shouldn't be enough for anyone **** ENDING LOGGING AT Sat Aug 01 02:59:58 2009