**** BEGIN LOGGING AT Fri Aug 14 02:59:57 2009 Aug 14 03:09:43 <_ala> what is the finite state machine about phone call? Aug 14 05:04:47 yawn Aug 14 05:54:45 How can I specify the fill color in my drawable in my background xml file? Aug 14 05:55:24 i try Aug 14 05:55:30 that does work Aug 14 05:59:57 * does not Aug 14 05:59:59 work Aug 14 06:05:35 maybe try android:background="#ff0000" Aug 14 06:06:03 ms1612: .. Aug 14 06:16:49 that does not work Aug 14 06:16:55 eiether Aug 14 06:26:51 android:shape="oval" Aug 14 06:26:52 android:background="#FF0000"> Aug 14 06:26:55 Aug 14 06:27:02 this can't be that hard. Aug 14 06:27:06 why that is not working... Aug 14 06:27:09 i don't get it... Aug 14 07:45:49 hi, when i have custom listView items without any background their text color is always white (well almost white), but when i set background, the text color when selected becomes black - where it is defined and how can i change it? Aug 14 07:47:52 you should not be controlling colors manually like this. Aug 14 07:48:01 if you want a white look, set your activity or application theme to Theme.Light Aug 14 07:48:24 otherwise, leave it alone. use android:textAppearance="?android:attr/textAppearanceLarge" (or Medium, or Small) to achieve different looks for text Aug 14 07:48:43 also, android:textColor="?android:attr/textColorPrimary" (or Secondary or Tertiary) Aug 14 07:49:13 thanks Jasta, textAppearance this is ut Aug 14 08:21:26 hi, i would like to know if it is possible to zomm and scroll into a big image ? Aug 14 08:21:33 any idea ? Aug 14 09:31:14 anyone wants to try out my pinball game? Aug 14 09:33:30 hi, i would like to know if it is possible to zomm and scroll into a big image ? Aug 14 09:51:47 is there AMPQ client for android ? Can I use RabbitMQ client library ? Aug 14 10:47:11 hi jasta Aug 14 11:45:01 Hey all, got a weird problem, I am playing around with a client server app, now on my Ubuntu machine I have a java program listening to port 4444, when the android app client tries to connect to that (ip 127.0.0.1) port 4444 it gets a connection refused, so Im guessing I need to forward the port, does anyone know how? Aug 14 11:46:00 I'm playing around with adb forwarding but not having any luck Aug 14 11:46:05 http://developer.android.com/guide/developing/tools/adb.html Aug 14 11:46:08 127.0.0.1 is localhost Aug 14 11:46:24 Are you doing this via USB? Aug 14 12:15:15 gaunt: the host loopback is 10.0.2.2 Aug 14 12:30:37 hey rejeser cheers for that, I started looking around about the loopback and found I could use the ip address from ifconfig and got it working :-) Aug 14 13:29:53 hello Aug 14 13:30:52 Hi Aug 14 13:31:37 Can anyone tell me what would be a good starting point for working with Android's OpenGL ES support? I'm totally new to 3D graphics Aug 14 13:31:51 how do i force an activity to be in landscape mode Aug 14 13:33:06 Andy: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); Aug 14 13:34:19 .. in your activity subclass Aug 14 13:36:52 stupid 16bit colour bullshit in android :( Aug 14 13:38:26 anyway to change that ? Aug 14 13:39:22 not if the hw youre loading your app on only supports it Aug 14 13:40:35 not here Aug 14 13:40:52 looks like to be something in android itself Aug 14 13:41:03 which applies the 656 dithering Aug 14 13:41:08 or 565 Aug 14 13:42:45 i dont think when i get a driver for the emulator which is 24bit Aug 14 13:42:47 it will work Aug 14 13:43:05 saw some threads on google groups about it Aug 14 13:43:43 but it doesnt matter unless your phone can do it Aug 14 13:46:41 i want it in the emulator Aug 14 13:46:47 i dont care about current phones really Aug 14 13:46:55 the archos supports 24bit fine Aug 14 13:46:59 whats the point then Aug 14 13:47:15 well either way i dont know how to do what you want Aug 14 13:47:17 but it seems useless Aug 14 13:47:34 well make the ui more smooth :) Aug 14 13:48:17 right but only in an emulator Aug 14 13:48:27 and the emulator's only purpose is to make it easier to develop for hw Aug 14 13:49:09 yes, thats why i want it on the emulator Aug 14 13:49:14 i dont have the hw 24/7 Aug 14 13:49:32 so you just want your emulator to look prettier than your phone? Aug 14 13:49:53 no Aug 14 13:49:55 its not a phone Aug 14 13:50:02 new device project Aug 14 13:50:02 oh Aug 14 13:50:05 bnvoc: he just wants to get 32bit working on the emulator.. right? Aug 14 13:50:08 24 even Aug 14 13:50:09 which has a 24bit display Aug 14 13:50:09 ya i forgot android was goign on non-phones Aug 14 13:50:29 * bnovc lives a too phone-centric dev life Aug 14 13:50:31 archos doesnt want to give the emulator build Aug 14 13:50:38 (its 7 levels deep to archos) Aug 14 13:50:53 7 different companies in between :( :( Aug 14 13:51:03 so i thought maybe faster to ask here for help :) Aug 14 13:51:30 now i understood that you can really swap display drivers to get 24bit support Aug 14 13:51:33 can't Aug 14 13:52:52 ..scroogey: My experience with this channel is that if i don't get an answer in like 5 mins , i give up Aug 14 13:53:06 .. and thats usually the case :) Aug 14 13:53:36 tried anddev.org? Aug 14 13:54:03 not yet :) Aug 14 13:54:44 thanks Aug 14 13:54:55 for now i will try to experiment with the dithering again Aug 14 13:55:01 anyone got experience with together with gradeients :/ Aug 14 13:55:39 I think the majority of this channel are actually from #android. It's rare to have any answer at all in this channel, and that's quite odd considering the amount of ppl in here Aug 14 13:57:23 oh bummer Aug 14 13:57:35 Amorgos: do you have experience with making skins? Aug 14 13:58:01 no sorry. Aug 14 13:58:18 either of you guys know about Windows/window tokens and how they're supposed to be passed around? Aug 14 13:58:18 cant seem to change the window size :) Aug 14 13:59:05 I'm not familiar with window tokens sorry Aug 14 13:59:34 seems like no one is Aug 14 14:00:48 I've not even heard of them! what are they supposed to do? Aug 14 14:00:50 not me sorry Aug 14 14:00:54 same here Aug 14 14:01:08 Amorgos: i'm not really that sure, but its something related to putting views into the screen Aug 14 14:01:26 i'm creating a LinearLayout, and its getting an empty window token for some reason which causes an exception Aug 14 14:01:40 i think its a bug passing around these window tokens in a non-ui process or something Aug 14 14:03:08 romainguy seemed to have an idea of what i was talking about yesterday but gave no hint about how to resolve the problem~ Aug 14 14:03:22 i dont think like the layout stuff Aug 14 14:04:16 its pretty convoluted Aug 14 14:04:17 always fighting with it Aug 14 14:04:24 The layout stuff is well thought out. i like it :) and the tool support is excellent Aug 14 14:04:32 ive spent about 6 hours trying to figure out how to fix this window token issue Aug 14 14:04:35 huge waste of time Aug 14 14:04:37 it sucks in eclipse :/ Aug 14 14:04:51 and theres 0 information online about it Aug 14 14:04:55 cante ven move elements Aug 14 14:04:56 and sparse comments Aug 14 14:05:32 bnvoc: so you're creating a simple LinearLayout, and you're getting an error/stacktrace? Aug 14 14:05:37 what does it say? Aug 14 14:05:57 Amorgos: http://groups.google.com/group/android-developers/browse_thread/thread/9e398520fff8bcb4/ca31d7835b9bfb61#ca31d7835b9bfb61 Aug 14 14:06:01 that exception Aug 14 14:06:33 getWindowToken() is returning null in my LinearLayout Aug 14 14:06:53 i think i'm just going to hack this out for now...going to see if i can override getWindowToken and just have it return something else Aug 14 14:07:12 what is TextView.java, what type of class is it? Aug 14 14:07:15 If I embed a ListView inside a TabActivity, how can I implement the onclick event? (onListItemClick is only available for ListActivity), please point me to the right direction Aug 14 14:10:09 Amorgos: thats a built in android thing Aug 14 14:10:10 its a View Aug 14 14:10:41 and you're trying to create a Dialog box from code inside a TextView? Aug 14 14:10:49 skyred: theres no tablistactivity or anything? Aug 14 14:10:54 (a subclass of textview) Aug 14 14:10:59 Amorgos: well not a Dialog but a PopupWindow Aug 14 14:11:01 pretty similar i'd suspect Aug 14 14:11:09 no not a subclass of textview Aug 14 14:11:13 TextView.java Aug 14 14:11:36 Maybe you should be creating PopupWindow's inside your Activity, not the code for TextView Aug 14 14:11:48 nope. i want it in textview Aug 14 14:11:50 bnovc, I don't think there is a TabListActivity Aug 14 14:12:02 Amorgos: i dont have an activity. i'm modifying the framework Aug 14 14:12:29 oh. Aug 14 14:13:03 why? Aug 14 14:13:11 cause my company wants me to? :\ Aug 14 14:13:19 customization! Aug 14 14:13:30 but if you modify the framework, then it won't work on everyone's phone! Aug 14 14:13:40 Amorgos: doesnt need to. we're making our own Aug 14 14:13:50 I see Aug 14 14:14:16 i'm compiling now, but i bet this awful hack will work: public IBinder getWindowToken() { return mTextView.getWindowToken(); } Aug 14 14:16:26 I think the google group you posted is for developers developing WITH the android framework, not modifying it Aug 14 14:16:36 oh. well is there a different one Aug 14 14:17:24 doesn't seem to be a google group for android framework developers. I'm sure they talk somewhere though! Aug 14 14:18:25 maybe Aug 14 14:18:27 not that i've found Aug 14 14:18:30 my awful hack worked Aug 14 14:18:33 i'm pretty sure this is a framework bug Aug 14 14:20:55 I noticed r3 or 1.5 has been released. Maybe fixed in that hopefully for you :) Aug 14 14:23:21 Amorgos: we already pulld it in i think Aug 14 14:32:36 i wonder if i should make a test case for this and submit a bug report Aug 14 14:32:51 it seems like google normally ignores bugs i report in other products at least Aug 14 14:44:41 hi all Aug 14 14:49:00 If I embed a ListView inside a TabActivity, how can I implement the onclick event for the ListView? (onListItemClick is only available for ListActivity), please point me to the right direction Aug 14 14:51:52 In my app I use a lot of cos and sin function from java.lang.Math but it's very slow do you know a better way to use cos and sin ? Aug 14 14:55:36 grump, i dont think there's a faster way Aug 14 14:56:23 all float/double operations are done in software Aug 14 14:56:31 since all android phones have no FPU Aug 14 14:56:36 (as far as i know) Aug 14 14:57:59 thx ante Aug 14 14:58:06 skyred: take a look at how listactivity does it Aug 14 14:58:18 skyred: or look at something like call history Aug 14 14:58:35 good call Aug 14 14:59:30 grump: if you do a bunch of calculations at once, maybe offload that to C? Aug 14 15:00:33 Does anyone know if you make a phone call, is it possible to open an app while still on the phone? Aug 14 15:00:44 bnovc: is it easy to call C from my adroid apps ? Aug 14 15:00:55 i haven't done it, but it sounds like it Aug 14 15:01:04 gauntface: i would assume so. try it out? Aug 14 15:01:26 ok thx bnovc Aug 14 15:01:46 bnovc I only have the emulator - need the android-dev phone to come back in stock Aug 14 15:03:29 grump: get the android ndk Aug 14 15:03:32 learn a bit of jni Aug 14 15:03:38 yes, it's possible, using methods marked "native" Aug 14 15:03:49 it's usually not desirable, given overhead with jni. Aug 14 15:04:22 It's surprising that there's not an integer math based version of sin/cos/etc. for android. Aug 14 15:04:43 that wouldn't be very useful Aug 14 15:05:01 I will test this before android.util.FloatMath Aug 14 15:05:05 call it "not very precise, but significantly faster math" Aug 14 15:06:04 grump, nice Aug 14 15:06:07 didnt know about that Aug 14 15:06:39 I discover this class just now :) Aug 14 15:09:18 Is it possible to build a layout like http://staticares.com/html-table.html on the android platform using XML? Aug 14 15:10:42 two linearlayouts Aug 14 15:11:37 how can you easily position something a specific x,y Aug 14 15:11:46 AbsoulteLayout seems to be depercated Aug 14 15:11:57 bnovc: I think I need a little more information if possible Aug 14 15:12:13 bnovc, I haven't found the source code for ListActivity by googling. do you happen to know the link? Aug 14 15:18:07 skyred: source.android.com and sync it to your machine and view it. dont know of one online Aug 14 15:18:37 scroogey: PopupWindow + showAtLocation works Aug 14 15:18:53 not sure if that fits your needs or other ways Aug 14 15:19:42 StaticAres: Aug 14 15:20:15 bnovc: Then i started the right way, thanks for your time. Aug 14 15:20:46 sure Aug 14 15:21:08 StaticAres: you may be able to do it with just a gridview or something, but not that i'm aware of Aug 14 15:21:13 i know very, very little about android Aug 14 15:22:06 bnovc: this does the job, so its good enough. First android project so optimization can wait. Aug 14 15:32:47 is there any way to fix the "Starting download" hang on the market? some trick to get it downloading? besides just trying again and again.. Aug 14 15:39:13 DarkFoxDK: none that I know of. Reset your device? Aug 14 15:39:43 ... I'm pretty sure that wont fix it.. Aug 14 15:39:55 DarkFoxDK: http://twitter.com/jbqueru/statuses/3309150336 Aug 14 15:40:44 I am already happily employed... and no way in hell am I moving to the US... Aug 14 15:41:38 twitter isn't loading. failwhale? Aug 14 15:43:02 ah, there we go. Aug 14 15:45:25 CA would be a nice place to live but too pricey! Aug 14 15:47:57 bnovc: you're paid accordingly... Aug 14 15:48:45 romainguy: it sounds fun, but I'm not an expert in massively multiplayer market server applications Aug 14 15:49:16 so everybody's always complaining and when we tell you we are hiring, nobody wants to try and help fix stuff Aug 14 15:49:19 that's not helpful guys :) Aug 14 15:49:37 heh. isn't that expected with opensource? Aug 14 15:49:38 romainguy: and here I thought patches were welcome Aug 14 15:49:46 they are Aug 14 15:49:48 if I could work at the NYC offices, that would be ideal for me Aug 14 15:49:50 but they're not coming either :p Aug 14 15:49:57 but my fiancee would literally stab me if I suggested we up and move to CA Aug 14 15:50:02 we have people working in NYC and Cambridge Aug 14 15:50:02 romainguy: i've read the $:work hours ratio at google isn't that high for the cost of living Aug 14 15:50:08 but i'm happy with my comfy job here Aug 14 15:50:10 romainguy: wait, cambridge is an option? Aug 14 15:50:22 hmm Aug 14 15:50:22 and the place i work is going to be pushing patches upstream soon anyway! Aug 14 15:50:37 also, you'd learn the terrible sham that is my level of actual development productivity Aug 14 15:51:20 true of many irc'ers Aug 14 15:51:45 i still seem to get more done than everyone else even wasting time on irc... maybe because i don't read engadget 5hr/day Aug 14 15:53:48 hey, that's important work too Aug 14 15:55:33 hi, has anyone some experience with StateListDrawable ? Aug 14 15:56:38 especially with conjunction with ColorFilter ? Aug 14 16:01:36 http://www.cyrket.com/search?q=shapewriter <- I like how they thought lowering the price a tiny bit and having a trial version will sell more of them... Aug 14 16:02:13 lets say i have 'source' 9patch drawable, its white - alpha enabled png. now depending on state i'd like to colorify it a bit using setcolor filter Aug 14 16:02:13 so i thought i could use stateListDrawable but somehow colorfilters are not applied Aug 14 16:07:56 hi everyone. I have a problem with custom views in Notifications. Can you help me? I want a notification with a progress bar and I have it now, but I'm not able to update its progress Aug 14 16:12:15 I want more or less the same behavior than the notification used in the Market app. I have tried to look for it in the git repository but I have not found it in there Aug 14 16:22:16 sinergics: doesn't the browser also do this when downloading a file? the source for that is available. Aug 14 16:22:56 ok, I haven't used the browser much... I didn't know it. Thanks for the info Aug 14 16:33:49 sinergics: you could periodically repost the notification to make it change its icon Aug 14 16:33:56 I don't know :\ Aug 14 16:34:52 according to the browser app it seems that you have to send a new notification in every update Aug 14 16:35:14 I'm working on it. When it works I'll tell you Aug 14 16:35:21 there you go Aug 14 16:54:49 yeah, it worked. I have had to send a new notificatioan each progressbar update. It seems a bug, doesn't it? Or it is implementended in this way for a reason...? Aug 14 16:57:11 sinergics: Notifications run in the system context. I'm sure that is the reason Aug 14 16:58:32 Ok. But it's a pity having to resend it each time... At least it works. Thank you guys Aug 14 17:27:37 So it's not safe to use the SQLiteOpenHelper in multiple threads, I guess? Aug 14 17:29:18 not entirely Aug 14 17:29:25 it usually tries keeping locks Aug 14 17:31:24 hm, you mean in the SQLiteDatabase class? Aug 14 17:32:37 Hello. Has anyone had some experience with OAuth-Signpost that might know what the cause of the following error is? "oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: Received authentication challenge is null" Aug 14 17:33:54 jsharkey: Oh, I see what you're saying. Aug 14 17:49:28 my application feels very unresponsive Aug 14 17:49:33 and its not exactly doing an awful lot Aug 14 17:49:40 its just some large bitmaps and some buttons Aug 14 17:49:47 yet half the button presses never seem to be pressed Aug 14 17:49:52 liek ill press them Aug 14 17:49:53 and they dont do nething Aug 14 17:49:59 eventually one of the keypress events will fire Aug 14 17:50:00 why is that Aug 14 17:50:15 you're tying up the UI thread? Aug 14 17:51:44 doin wot.. Aug 14 17:55:36 im only changing like a imageviews bitmap on press... Aug 14 17:55:41 how is that tying up the UI thread Aug 14 17:55:45 i mean its pretty appauling Aug 14 17:59:48 Question: I created a SimpleAdapter using a HashMap. I then set it as my ListActivity adapter. How can i set the listitem row id to be the "_id" key's value in the hashmap. Aug 14 18:41:32 Has someone already read Contact with all their phone numbers ? Aug 14 18:53:52 I am on Windows vista and want to install a sample application on my emulator. I am running as administrator. Aug 14 18:53:53 %ANDROID_HOME%adb -s 1_5_AVD-5554 install %ANDROID_SAMPLE_HOME%\HelloActivityUpdated\bin\HelloActivity-debug.apk Aug 14 18:53:55 error: device not found. Aug 14 18:53:56 What am I doing wrong? Aug 14 19:09:38 whats -s Aug 14 19:09:46 i think its just adb install Aug 14 19:25:54 I have a listview that takes a SimpleAdapter. I wan't the rowid to be passed to it, but it's not being set. Aug 14 19:26:01 how do I accomplish this? Aug 14 19:53:23 is there an utility application which lists the current tasks? Aug 14 19:54:12 I am having issue witht new_task and singleTop Aug 14 19:57:14 I use an app called "Task Manager for Root Users" Aug 14 19:57:21 not sure if that's what you want Aug 14 20:00:48 in android's context of activities and tasks Aug 14 20:11:41 menu -> application -> menu -> show active ? Aug 14 20:13:54 basically my issue follows: Activity A -> Activity B -> Browser -> (callback) Activity B Aug 14 20:14:25 Activity B is set as singleTop, I would suspect that the callback from the browser should return to the instantiated activity B but actually it creates a new instance of B Aug 14 20:14:31 which is problematic in my case Aug 14 20:14:59 I want a way to troubleshoot this but unsure on how to proceed Aug 14 20:18:39 thanks htc -.- ... When will they stop selling devices with almost no internal memory? http://androidandme.com/2009/08/news/t-mobile-g1-owners-dont-expect-any-future-android-updates/ Aug 14 20:27:53 DarkFoxDK, as soon as its possible to use the sdcard for applications, this is not much of a problem anymore Aug 14 20:28:33 I guess that's true... will still require a new SPL though (right?) Aug 14 20:41:08 Context.getString strips all the double-quotes from R.string.value, is it expected? how to retain the double quotes inside the string Aug 14 20:44:13 try " ? Aug 14 20:44:25 Double quote the string in your resource file and escape the embedded quotes Aug 14 20:44:42 "This is my string here, with some material \"quoted\" for context" Aug 14 20:45:05 it's possible you use "" instead of \", i forget Aug 14 20:45:54 ctate, pre-process the string isn't best for my case, since I regularly port data from remote server to R.string Aug 14 20:46:05 perl to the rescue? Aug 14 20:46:20 sorry :( Aug 14 20:47:13 ctate, there are single quotes and double quotes in the string, the string is actually a database dump Aug 14 20:48:24 aha, yeah, it's \" to escape the quotes Aug 14 20:48:32 single quotes probably won't need to be escaped Aug 14 20:48:40 (within a double-quoted string) Aug 14 20:49:00 this is also how you e.g. put spaces at the beginning or end of your string Aug 14 20:50:54 ctate, got it!! Aug 14 20:51:09 yay Aug 14 20:51:28 * bnovc is surprised it isn't " Aug 14 20:51:44 string resources != HTML Aug 14 20:51:59 the file is XML, right? Aug 14 20:52:03 XML != HTML Aug 14 20:52:17 yeah, it's xml at least more or less Aug 14 20:53:36 ctate, bnovc, I dump MySQL tables and store it as a R.string. Then create the tables in SQLite. I am wondering is there any better practice? Aug 14 20:54:22 i'm sure you could skip the intermediate step if youre just using some processing app in android Aug 14 20:54:29 and dont really need them as R.string's Aug 14 20:55:15 ctate: " is in the xml spec not just html Aug 14 20:55:22 doesnt really matter what gets parsed though as long as its something Aug 14 20:56:33 bnovc, I am not sure I understand the intermediate step you referred to. Could you explain a little bit? or is there a way that I can import database directly? Aug 14 20:57:08 are you making an app that you distribute, and with that app you have the strings in them? Aug 14 20:57:28 * bnovc doesn't know if you can distribute a db w/your app or not Aug 14 20:59:43 bnovc, yes, I have the app driven by pre-populated database. The data comes from MySQL database on a remote server. This version is for offline use, so the database needs to be ported into SQLite. Aug 14 21:00:44 I converted the data from MySQL database into string, and store it in R.string. So, at onCreate. I use StringTokenizer to populate the SQLite tables Aug 14 21:05:17 i would assume that android lets you pre-package a database with your app but maybe not? Aug 14 21:05:20 never tried Aug 14 21:07:16 bnovc, I found this http://stackoverflow.com/questions/513084/how-to-ship-an-android-application-with-a-database Aug 14 21:07:20 hi gus, I've got a problem trying to use SimpleCursorAdapter() I dont Understand how I can used with a cursor, someone can try to explain me in a different way? Aug 14 21:29:14 what's the best/most up to date book on android development right now? Aug 14 21:29:49 I'm looking at a few, in particular Pro Android, which is supposedly one of the few to cover 1.5 Aug 14 21:31:59 cliffstah: repo init -u git://android.git.kernel.org/platform/manifest.git -b donut ;) Aug 14 21:32:41 hmm not quite what I'm after Aug 14 21:42:02 So, I'm trying to build the android source tree, and am getting an error about the wrong java version. It says it needs 1.5 and that I have 1.6.0_14. I'm on ubuntu and am not sure how to use a different Java version. Any ideas? Aug 14 21:43:16 Also eclipse won't start, but I'm asking about that in #eclipse :) Aug 14 21:47:17 savid: yeah, uh Aug 14 21:47:47 ummmm.. yeah Aug 14 21:47:48 sudo update-java-alternatives -l Aug 14 21:48:06 you may also want to look into sudo update-alternatives Aug 14 21:48:13 ahh, I see Aug 14 21:48:21 what I did was write a simple shell script to update the alternatives for ALL of the contents of the jdk/bin directory Aug 14 21:48:50 which ended up being in /usr/lib/jvm/java-1.5.0-sun/jre/bin Aug 14 21:48:52 I forgot ubuntu had that update-alternatives thing :) Aug 14 21:49:08 er, /usr/lib/jvm/java-1.5.0-sun/bin rather Aug 14 21:49:23 I wonder if that's why eclipse wasn't starting... Aug 14 21:49:29 so, cd to there, for f in *; do sudo update-alternatives $f; done; Aug 14 21:49:34 hit "2" and "enter" a lot Aug 14 21:49:39 ah, ok Aug 14 21:49:48 bear in mind that this is probably a godawful way to do this Aug 14 21:49:50 but it's what I did Aug 14 21:49:53 so ymmv ^_^ Aug 14 21:50:02 cool. thanks! Aug 14 21:50:09 update-java-alternatives is probably your best bet tbqh Aug 14 22:01:53 or you could just download and extract java 1.5 from Sun and put it in your path. ;) Aug 14 22:05:33 i have been using java 1.6 64 bit, it's fine for me Aug 14 22:06:07 aunn: to build the android source? Aug 14 22:06:12 do i need 1.5 if i want to build the source tree ? Aug 14 22:06:30 yup Aug 14 22:06:38 hmmm ..... Aug 14 22:06:50 but savid can't even start his/her eclipse Aug 14 22:07:03 that is a serperate issue Aug 14 22:07:09 seperate* Aug 14 22:07:11 that might be different issue altogether Aug 14 22:07:23 ok, thx cretin45 Aug 14 22:07:28 Hi Aug 14 22:07:38 How are you ? Aug 14 22:07:39 i will keep in mind about that Aug 14 22:08:10 aunn, I swiched back to 1.5 and eclipse worked again Aug 14 22:08:19 how lunch an application via adb Aug 14 22:08:19 ? Aug 14 22:08:39 JacquesBH: you can use adb shell to call am to launch an application Aug 14 22:09:01 it's probably easier to just use adb install or adb install -r to (re)install your app, then pick it from the menu Aug 14 22:09:28 and how to use 'am' ? Aug 14 22:09:36 adb shell am start ??? Aug 14 22:09:40 srry, gtg, bbl Aug 14 22:09:43 am is a command-line program that exists on the phone Aug 14 22:09:53 ctate, yes I know Aug 14 22:09:59 but how to use it ? Aug 14 22:10:05 am start -D com.example.your_app ? Aug 14 22:10:18 I try Aug 14 22:11:04 i try : am start -S org.connectbot Aug 14 22:11:06 -D Aug 14 22:11:10 not -S Aug 14 22:11:23 but it does'nt Aug 14 22:11:47 -D means to start it for debugging Aug 14 22:11:58 ok Aug 14 22:12:13 i want to lunch the application like use the menu Aug 14 22:12:27 (sorry i'm a loose in english :D) Aug 14 22:12:32 what error message does it print? Aug 14 22:12:54 also, you can see all the command line options to 'am start' if you read the source code Aug 14 22:13:44 # am start -D org.connectbot Aug 14 22:13:44 Starting: Intent { action=android.intent.action.VIEW data=org.connectbot } Aug 14 22:13:44 Error: Activity not started, unable to resolve Intent { action=android.intent.action.VIEW data=org.connectbot flags=0x10000000 } Aug 14 22:14:05 ctate, yes i must to download the source code Aug 14 22:14:14 you can look at it online too of course Aug 14 22:14:19 JacquesBH: am start -a android.intent.action.MAIN -n org.connectbot/org.connectbot.HostListActivity Aug 14 22:14:33 kroot, ok I try this Aug 14 22:14:49 Yeah Aug 14 22:14:51 or shorter: am start -n org.connectbot/.HostListActivity Aug 14 22:14:54 Thanks kroot :) Aug 14 22:15:01 heh, i was about to say the latter format Aug 14 22:15:04 ok thanks Aug 14 22:15:29 ctate: I was just pasting from some debug script I had for my connectbot tree Aug 14 22:18:25 ctate where online can i get more infor about these tools since there is no man ? Aug 14 22:18:41 "Use the source, Luke." Aug 14 22:18:44 sorry :( Aug 14 22:18:45 JacquesBH: Why are you wanting to start ConnectBot from am? Aug 14 22:19:06 non it's just a test Aug 14 22:19:12 it's a random app :) Aug 14 22:19:31 ah, ok.. I was just curious since it's my app :-) Aug 14 22:19:38 i'm developping an application and I want to start a daemon Aug 14 22:19:50 kroot, connectbot is very fun :) Aug 14 22:19:58 I use it every days :) Aug 14 22:20:26 thx kroot Aug 14 22:20:53 (Galize is a friend who is developping the application with me) Aug 14 22:24:12 so, no suggestions for good Android dev books to read? Aug 14 22:25:21 my requirement is twofold, firstly to demystify some of the features like services for me, and secondly to help educate my extremely lazy colleague who's AS3 code I already have to tidy on a daily basis Aug 14 22:26:48 where is the source for am ? http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=core/java/android;h=4a4534b1d00293a8cc337d949946fe008ea1f984;hb=HEAD Aug 14 22:27:08 any known code (or docs) to create a contact selector? same as in the normal Mms application? Aug 14 22:29:28 anyone having success consuming resources under basic authentication? I've tried Authenticator and http://:@:/ both fail Aug 14 22:29:41 using HttpURLConnection Aug 14 22:33:20 bye i'm sleeping :p Aug 14 22:37:52 aunn: huh, which branch is that looking at? Aug 14 22:38:29 aunn: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;f=cmds/am;h=13697ba55c33c1a2c4156ffc765d87d315f7fb0c;hb=master Aug 14 22:39:30 ah , so it's in cmds of http://android.git.kernel.org/?p=platform/frameworks/base.git;a=tree;hb=HEAD Aug 14 22:39:36 thx ctate Aug 14 22:45:26 is there a way to force the parent to calculate the size of it's child immediately? (something like requestLayout()) Aug 14 22:46:02 yeah, forceLayout I suppose.. =) Aug 14 22:46:24 ctate: so, fyi, this system_server issue has finally motivated me to figure out how to build the platform Aug 14 22:46:38 my work here is done. ;) Aug 14 22:46:41 haha Aug 14 22:46:56 ugh, still doesn't happen immediately. Any ideas? Aug 14 22:47:27 i've managed to add enough new log() statements to figure out a clean, simple repro for the bug Aug 14 22:47:49 back to hacking to see if i can actually, i dunno, fix it Aug 14 22:49:04 ooh! you have a new repro? Aug 14 22:49:12 cos i didn't see the behavior. Aug 14 22:50:35 well Aug 14 22:50:53 relying on the problem to get bad enough to see increased system_server CPU usage is very crude, right? Aug 14 22:51:07 so i added additional logging to the callback for the heartbeat event Aug 14 22:51:08 well Aug 14 22:51:13 ah, i see Aug 14 22:51:20 because the tachycardia is a bug in its own right Aug 14 22:51:36 yeah Aug 14 22:51:49 so the log message includes SystemClock.uptimeMillis() in the output Aug 14 22:52:04 to give me a better-than-eyeball way of seeing how often the heartbeat is happening Aug 14 22:52:35 * ctate nods. Aug 14 22:52:45 bah, i just typed it all up in http://code.google.com/p/android/issues/detail?id=3453, last comment, if you're interested Aug 14 22:52:55 long story short, every time i launch google maps app, +1 heartbeat/sec Aug 14 22:53:08 but they never go away until i disable the provider entirely Aug 14 22:53:15 hunh! Aug 14 22:53:24 yeah, not good Aug 14 22:53:35 only with latitude enabled? Aug 14 22:53:38 no no Aug 14 22:53:42 that's with latitude disabled Aug 14 22:53:50 ah nice Aug 14 22:53:52 so it's just the active listener in google maps when the app is running Aug 14 22:54:31 also, if you allow the phone to go to sleep, then wake it up, while google maps is in the foreground... +1 heartbeat/sec Aug 14 22:55:03 what about if you explicitly sleep the phone with it in the foreground, then wake? same thing? Aug 14 22:55:09 let me try Aug 14 22:56:06 same thing Aug 14 22:56:09 kk Aug 14 22:56:23 gooooood data Aug 14 22:56:27 nice job Aug 14 22:57:51 blah blah data, after this much trouble (had to start with "build an ubuntu vm" to get this far), i want to come up with a patch :/ Aug 14 22:57:59 heh Aug 14 22:58:40 by "every time you launch Maps" you mean e.g. touch the icon, it runs; then hit Back to go back to home; repeat? Aug 14 22:58:46 yep Aug 14 22:58:49 noice Aug 14 22:59:10 what about if you use the Home key instead of Back? Aug 14 22:59:52 same thing Aug 14 23:01:03 k Aug 14 23:01:45 itp: priv msg? Aug 14 23:56:22 how can i add completion suggestions to a EditText element? Aug 14 23:56:37 or do i need a different element? Aug 15 01:16:49 df Aug 15 01:35:58 If I have a collection that I know will not contain more than 100 objects, is it preferable to use a simple array, or an ArrayList when optimal performance is required? Aug 15 01:39:50 Also curious about a simple array of 0-100 integers Aug 15 01:54:53 hello, I got a problem with a thread. Aug 15 01:55:21 When I press the home button and return to my app, it works. But if I were to press the back button afterwards and try returning again, I would not be able to start the thread again. Aug 15 01:55:37 Yet it would also not update its run() Aug 15 01:59:32 how do i the current activity to go back to the previous one? Aug 15 01:59:53 pressing home and back button is not the same, when you press back button, your app called onDestroy, i think Aug 15 02:00:48 aunn1, so if i call super.onDestroy manually, will it have the same effect? Aug 15 02:02:19 erikwt , i think so. in android, activities are stacked Aug 15 02:02:43 aunn1, thanks, ill give it a spin Aug 15 02:02:58 so if you want to go back to the previous one, you have to pop the current activity (back button and killed it) Aug 15 02:03:08 don't count on me tho ;) Aug 15 02:03:16 well, another thing to mention is that pressing the back button first and going back into the program will work just as fine as if I were to of pressed the home button first and then joined back in. Aug 15 02:03:36 The problem occurs when I press the opposite button, back -> return -> home -> crash Aug 15 02:04:39 RustedApple , you should look into http://developer.android.com/guide/topics/manifest/activity-element.html#lmode Aug 15 02:05:23 it depends on how you define your activity whether it is singleTask, singleTop and etc... imho Aug 15 02:05:46 aunn1, doesnt work :( Aug 15 02:06:03 aunn1, any onther idea? basicly what i want is to programmaticly press the back button Aug 15 02:07:01 not at the moment, i will drop it here if i run into one, srry Aug 15 02:07:13 k thanks Aug 15 02:07:17 hi in there Aug 15 02:07:31 how does it response anyway? Aug 15 02:07:43 Am I the online one having problems with the notepad samplecode? Aug 15 02:07:50 when u call the super.onDestroy Aug 15 02:08:31 he uses a long/null comparaison, which seems to be forbidden Aug 15 02:10:48 are you talking to me about the super.onDestroy? Aug 15 02:10:59 sorry, I got a bit muddled with the other conversation Aug 15 02:11:04 yes, Aug 15 02:11:56 oh sure. So I don't have a super.onDestroy. When I press back/home, onPause is called and in there, I do a join() to my thread. When I go back into the program, it calls surfaceCreated, at which point it starts the thread. Aug 15 02:13:04 now, it's at that point where the program will crash due to starting a thread that's already running, but which it's not really. Aug 15 02:14:09 The only thing consistent with this crash is that if I were to exit with the home button, the back button will crash it. If I exit with the back button first instead, the home button will crash. Aug 15 02:14:30 aunn1, its Activity.finish(), for future reference ;) **** ENDING LOGGING AT Sat Aug 15 02:59:59 2009