**** BEGIN LOGGING AT Thu Jul 23 02:59:57 2009 Jul 23 03:03:24 russellb yo Jul 23 03:07:54 Gaz: hey there. Jul 23 04:01:00 HI Jul 23 04:01:17 can someone code review my program something is buggy about Jul 23 04:02:11 http://pastebin.com/m4e6f062d Jul 23 04:02:30 I'm just getting into the android coding scene, so I probably won't be a help. but i'll try Jul 23 04:03:01 me to this is my first program i am trying to get it done by the end of the month for a competition Jul 23 04:05:48 whats the error? Jul 23 04:06:37 the browser pops up and it sy\uppose to send the user to a page but it doesn't Jul 23 04:06:48 that's what I was wondering Jul 23 04:06:52 using oauth protocal Jul 23 04:07:19 instead it downloads a file and the browser doesn't pop up Jul 23 04:08:14 what is the url? Jul 23 04:09:06 if it isn't a standard web url it wouldn't open as a browser page Jul 23 04:09:29 https://secure.cliqset.com/oauth/v1.0/accesstoken?oauth_token=553a422719e5ef99d5deeb0f4f041313&oauth_callback=oob Jul 23 04:10:19 its a json web service? Jul 23 04:10:45 rest Jul 23 04:10:51 i ithink i got it now Jul 23 04:11:14 ah, it redirects to a bin file which wouldn't load in the browser anyway Jul 23 04:11:36 doesn't seem to be a bug per se Jul 23 04:11:49 yeah i need the access file but i didnt notice what it was but thanks Jul 23 04:18:01 how i download content not usable by the phone Jul 23 04:24:08 how do you? or how did you? Jul 23 04:29:07 Is there the equivalent of an #ifdef DEBUG in Android? Jul 23 04:33:02 whaledawg: if (DBEUG) Jul 23 04:33:14 static final members are inlined by javac Jul 23 04:33:27 thus if your if statement becomes if (false), it does not get compild Jul 23 04:33:28 compiled Jul 23 04:40:23 well, technically it still gets compiled for the purposes of package size, the statement is just never executed Jul 23 04:43:34 JackMordal: no, the code does not get compiled Jul 23 04:43:47 *if* the boolean is false, static and final Jul 23 04:44:38 oh, smart compiler. Jul 23 04:44:46 it's not that smart :) Jul 23 04:45:09 lol Jul 23 04:45:22 for instance this: Jul 23 04:45:22 http://pastebin.com/m2f90e002 Jul 23 04:45:34 I'm not used to the static final variable Jul 23 04:45:46 creates this bytecode: Jul 23 04:45:46 http://pastebin.com/m191f4f9d Jul 23 04:45:47 thats good to know Jul 23 04:46:08 javap -c is your friend :) Jul 23 04:46:19 (outputs the pseudo bytecode of a given .class) Jul 23 04:47:31 I should have gotten into java a long time ago Jul 23 04:47:43 Do I even need that local_manifest.xml trick to compile for Dream anymore? Jul 23 04:48:20 jbq was fixing this Jul 23 04:48:42 Oh yeah, the manifest change isn't merged yet. Jul 23 04:48:50 I just merged it :) Jul 23 04:48:59 \o/ Jul 23 04:49:37 (will merge into donut and master tomorrow) Jul 23 04:52:07 i cant get a font to set using: font = Typeface.createFromAsset(getContext().getAssets(), "fonts/spaceage.ttf");paint.setTypeface(font); Jul 23 04:52:09 any ideas?? Jul 23 04:52:39 I don't know if subdirectories are supported Jul 23 04:52:49 Is there a way in the xml resources to have 2 strings with the same name, I tried seperating them into different files but that didn't work. I want a file of strings for popup1 and popup2 and each should have a title Jul 23 04:53:07 give them different names Jul 23 04:53:19 the names are unique across the application Jul 23 04:54:28 romainguy according to examples they are, tried without too and its not happening weird Jul 23 04:57:45 works for me... both in a subfolder and not Jul 23 04:59:51 jbq: external/icu4c git log is missing crucial information to recreate the package :-( Jul 23 05:00:19 it looks like fixes were backported, but hard to tell from which versions Jul 23 05:00:46 that was done outside of Google, so we don't have much history either :( Jul 23 05:01:02 no wonder no one touched it :-) Jul 23 05:01:10 For all I know it's based on 3.8.1 Jul 23 05:01:21 That's what it says, but it's significantly different. Jul 23 05:01:40 Yeah, I looked at the diff from upstream 3.8.1 and it's massive :( Jul 23 05:01:56 I'm just trying to go through it to figure out where the changes came from. Jul 23 05:02:07 I'm not an expert, I just helped some people dig through it, and we found that there was very little history to work with. Jul 23 05:16:13 hmmmm...it's grumbling at me that I need a string for the SharedPreferences.contains function but I'm using R.string.mystring Jul 23 05:16:29 and that works in another function that requires a string... Jul 23 05:16:38 is there anyone who could provide me with exemplary trace file? i would like to try out the trace viewer (because of a genuine interest in trace analysis) - the examples don't look complex enough to really make use of it :o Jul 23 05:17:39 oh no, the other function accepts a string or titleid Jul 23 05:22:05 whaledawg: r.string.mystring is an id for the string... use getResources().getString(R.string.mystring); Jul 23 05:26:47 I wish slacker.com would make an android app. I love their radio Jul 23 05:29:20 jbq: okay... I figured out all the stuff from before Oct 2008, so I should be good. Jul 23 05:29:23 I wish that the ellipsize function would respect my lines setting and not always truncate to two lines... Jul 23 05:29:41 jbq: It's all just backported fixes from 4.0 Jul 23 05:30:12 All the other stuff from then on is helpfully marked with android-changed Jul 23 05:37:20 how do I make a peice of data, that static final boolean we were talking about before, available to every class? Jul 23 05:37:43 makeit public? :) Jul 23 05:39:01 hi all anyone know how to remove the system update messages from the jf 1.5 build ? Jul 23 05:39:12 oh, I guess if it's static and public then everyone could see it if I reference the class. I'm still thinking in header files :E Jul 23 06:02:29 how do I get the activity from the context Jul 23 06:02:42 as in, I pass around the context and I want to call finish on it Jul 23 06:05:07 Cast your context to Activity then call finish... Jul 23 06:05:24 hmmm...that doesn't feel right Jul 23 06:05:44 YOU JAVAISTAS AND YOUR RECKLESS CASTING!!! YOU'LL BE THE END OF US ALL Jul 23 06:12:18 anyone else use sipdroid + gizmo + google voice for free calling over wifi Jul 23 06:14:22 nope Jul 23 06:15:37 I find it incredibly entertaining, also convienant consider I lost my job and probably won't be able to pay my phone bill Jul 23 06:16:43 makes sense... sorry to hear about your job btw Jul 23 06:17:35 currently I'm trying to lose weight to join the army. and in the mean time learn about android. I used to be a PHP wiz Jul 23 06:18:01 from that backround my biggest issue has been casting Jul 23 06:18:41 I wish layar was in the US Jul 23 06:19:02 casting will be the end of us all Jul 23 06:20:33 it absolutely confoudning to me. I've been reading java tutorials for like the last 6 hours or so. I've been out of the coding scene long enough I should review the basics Jul 23 06:21:30 sounds like fun... Jul 23 06:22:58 I've always been extremely self taught, sometimes I have a hard figuring out what I need to learn. Its like the "I don't know what I don't know" and I need to know it Jul 23 06:23:17 google fills in most of those gaps Jul 23 06:24:27 I am fully self taught... and I know what you mean. Jul 23 06:25:35 I spend a lot of time searching, but only when I need to do something I don't know how to do... Jul 23 06:27:50 my G1 often says there are four programs that have updates, when I select that notification. On the market my downloads activity, there are no programs that say they need updating. Any suggestions to fix that? Jul 23 06:28:07 other then a factory reset Jul 23 06:30:33 no clue, neither of my phones have that issue. have you cleared your market cache? Jul 23 06:30:46 good idea Jul 23 06:30:52 no I haven't Jul 23 06:46:24 great the java tutorial I've been reading a while doesn't cover casting Jul 23 06:46:29 back to searching Jul 23 06:46:43 its quite simple: ) Jul 23 06:47:40 I understand it a little. I just want to know whats going on when it happens. When would I ever need to cast in code I make Jul 23 06:48:40 whaledawgs example before was perfect... Jul 23 06:49:32 in android you cast... a LOT Jul 23 06:49:58 in the very little I've been specificly with views, I know lots of casting Jul 23 06:50:06 been reading* Jul 23 06:52:35 when you downcast. the variables that are declared in the subclasses are just set as null? Jul 23 06:52:39 to get a button from your layout... Button button = (Button) findViewById(R.id.button); Jul 23 06:54:10 android passes around a lot of generic classes that you need to cast... your code may not, but the core OS does Jul 23 06:54:14 it would really help me understand if I could see a before and after of all the values in an object when cast Jul 23 06:56:41 ah... I have only ever used managed code really, so ive never bothered to care to be honest Jul 23 06:59:36 I'm headed out... work in the morning. Jul 23 07:39:21 is there anyone who could provide me with exemplary trace file? i would like to try out the trace viewer (because of a genuine interest in trace analysis) - the examples don't look complex enough to really make use of it :o Jul 23 08:30:11 hi Jul 23 08:45:26 Hello SiO2 Jul 23 09:36:50 hehe, 2:40am and still coding Jul 23 09:37:05 damn it is 240 Jul 23 09:37:07 damn Jul 23 09:48:21 <_Auron_> 4:36am here Jul 23 09:48:52 <_Auron_> er Jul 23 09:48:56 <_Auron_> 4:48* Jul 23 10:28:21 hi, did someone try to link source code from another project in eclipse+adt? here apk is built, but it does not start because dalvik uses wrong name for linked classes. Jul 23 11:49:19 hi Jul 23 11:53:23 hi all, I have a ListPreference, whose default value should be an integer. How can I specify that in the xml file? Jul 23 12:03:33 is it even possible to define an integer value in the xml files? Jul 23 12:26:05 aVirulence: no Jul 23 12:26:15 aVirulence: this is an android bug :) Jul 23 12:26:29 aVirulence: http://code.google.com/p/android/issues/detail?id=2096 Jul 23 12:26:46 rzr: ok, thanks, I'll convert the string to an Integer in the code then Jul 23 12:27:01 btw help welcome about : http://code.google.com/p/android/issues/detail?id=2788 Jul 23 12:27:29 aVirulence: you can star thoses bug ;) Jul 23 12:30:56 any of you had a WindowManager$BadTokenException ? Jul 23 12:31:20 can i have a botton in a overlay over the map in a mapview and have the map behind blured untill the botton is pressed? Jul 23 12:31:55 Riceri: i think yes Jul 23 12:32:12 rzr: any howto or so you can point me to? :) Jul 23 12:34:12 Riceri: crawl my posts at http://www.anddev.org/viewtopic.php?p=24699#24699 Jul 23 12:34:33 rzr: Thanks! Jul 23 12:35:45 hello Jul 23 12:36:00 is there already a free turn by turn nav for google android? Jul 23 12:45:00 Droned: Not that I know of, and from what I've gathered from chatting to people and searching you can't launch google maps to give you the direcions Jul 23 13:20:00 where can I find information on the phone model an app is run on? Jul 23 13:22:07 how can I see the motherboard version on the htc magic? Jul 23 13:25:00 Droned, when you turn on your phone, hold the volume down button. Jul 23 13:27:26 ok thanks, and what is the best rom at the moment for the htc magic? Jul 23 13:27:33 have now the standard vodafone rom Jul 23 13:27:37 is he good enough? Jul 23 13:47:25 somebody? Jul 23 13:48:05 droned I dont know about the magic but I've been developing on the standard rom from t-mobile for the g1 Jul 23 13:51:49 Hi Droned: have you read the sapphire wiki? Jul 23 13:52:08 http://wiki.xda-developers.com/index.php?pagename=HTC_Sapphire_Hacking Jul 23 13:53:11 Can someone point me in the right direction of making a phone number (TextView) open the dialer when tapped? Jul 23 13:55:27 I see android.provider.Contacts.Intents.SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED Jul 23 13:55:38 Is that the intent I should use to open the dialer? Jul 23 14:08:59 kenleycapps you definately want to launch an intent, which one I don't know but just have a read of Intent on the developer.android.com and just try them out Jul 23 14:09:55 There is one page on there that lets you know what data to put in the Intent but I cant remember where it was . . . ill try find it Jul 23 14:10:35 http://developer.android.com/guide/appendix/g-app-intents.html Jul 23 14:11:15 Matt____, nice, thanks Jul 23 14:12:24 kenleycapps: no worries, I've been playing around intents for maps over last day or 2 Jul 23 14:13:39 Matt____, feh. I'll be addressing that probably this evening. Oh boy Jul 23 14:14:59 kenleycapps: well the maps intent can only handle you giving an lat, long or address to the map which centers on it, and you can control the zoom level, nothing else unfortunately :-( Jul 23 14:18:53 Matt____, oh? no custom icons? Jul 23 14:19:39 kenleycapps: nope not over the intent, you can add it in a MapView within your app Jul 23 14:19:57 Sorry, I was disconnected and could not follow the thread. What is the best rom at the moment for the htc magic? Jul 23 14:19:59 I have now the standard htc magic with vodafone rom Jul 23 14:20:42 If Im wrong though and you manage to launch an intent to achieve it, please let me know hee hee Jul 23 14:25:01 Well, just glancing at the MapView tutorial, it doesn't look overly difficult Jul 23 15:07:29 i can't a figure a way to get a Button object from a widget AppProvider, since it's not an activity. can you help me? Jul 23 15:14:43 oo kenleycapps the MapView isnt too bad when you get the hang of it, I was jus referring to launching an intent for the Maps app Jul 23 15:17:23 with an AppWidget, is it possible to set a different xml layout file? Jul 23 15:17:29 with code? Jul 23 15:32:04 any tips for controlling IME (soft keyboard) visibility and placement? Jul 23 15:32:49 i don't know how to get a Button object from a widget AppProvider, since it's not an activity. can you help me? Jul 23 15:47:10 ah...SDK 1.5 emulator does not have API Demo ? where and how can I get that on my emulator? Jul 23 15:48:16 you have to build and install it... Jul 23 15:49:31 it comes with the SDK Jul 23 15:49:36 just import it into eclipse Jul 23 15:49:44 nexsoftware: apk is not redistribuable ? Jul 23 15:49:59 ah ok. i think i did that with SDK 1.1 but i forget how i did it Jul 23 15:50:15 ok, let me go look for it then Jul 23 15:52:22 KNY can u give me the relative path of it in the SDK ? Jul 23 15:52:45 aunn, I don't remember Jul 23 15:52:45 nvm Jul 23 15:52:50 get it Jul 23 15:52:51 sdkroot/platforms/android-1.5/samples/ApiDemos/ Jul 23 15:52:55 yeh Jul 23 15:53:07 thx nexsoftware and KNY Jul 23 15:53:38 how do i connect to Live Android OS that i have installed on Virtual machine? Jul 23 15:53:58 it is redistributable Jul 23 15:54:55 smartfish, adb, and don't cross-post your questions. Jul 23 15:57:07 ok... i have installed OS on my virtual machine Jul 23 15:57:20 where do i find ADB Jul 23 15:57:21 ? Jul 23 15:57:21 smartfish, why is android OS in virtual machine in the first place, just curious since android support windows, linux and mac, all major platform Jul 23 15:58:04 just to try whether the OS works fine .. Jul 23 15:58:27 now i want to install an app on that OS .. how do i do it? Jul 23 15:58:48 how do i install .apk file in live OS Jul 23 15:59:28 i have heared of Connectbot.. but it itself is .apk file... :) Jul 23 16:00:04 is there anyone who has a working openvpn client yet? Jul 23 16:00:16 smartfish: You talking about the x86 port? Jul 23 16:00:33 i didnt get you.. Jul 23 16:01:41 you are running android itself in vm or you are running emulator in vm? Jul 23 16:04:54 andriod itself in VM Jul 23 16:05:02 not emulator... Jul 23 16:06:49 please help me, i can't find a simple answer to this. how do i capture a click event on a home widget button...? Jul 23 16:10:24 daliz: public boolean onKeyDown(int i, KeyEvent event) { Jul 23 16:10:39 if (i == KeyEvent.KEYCODE_HOME) { Jul 23 16:11:03 } Jul 23 16:11:27 return true; // propagate this keyevent } Jul 23 16:12:21 daliz : did you get that? Jul 23 16:13:16 i have sent you a function that can be used to catch HOME click event.. Jul 23 16:13:29 mmhm, thank you smartfish. but it's not what i need. Jul 23 16:13:58 i have a home widget with a single button drawn. i want to catch clicks on that button. Jul 23 16:13:59 you need to catch home click event? Jul 23 16:15:52 it's not simple because a widget is not an activity. Jul 23 16:16:02 so i can't use findviewbyid to get a resource. Jul 23 16:17:47 Ok. I have a widget of which I change the layout-file (with a RemoteViews). However, only the widgets of which values have changed are actually updated. Is there any way to update the other views as well? If not there doesn't seems to be a way to update the background of a RelativeLayout Jul 23 16:20:25 smartfish, live OS as in live CD type thing? Jul 23 16:20:43 or is the VM vmware stuff ? Jul 23 16:20:58 vmware.. Jul 23 16:21:18 i have installed live OS that is available on vmware Jul 23 16:21:21 if it is vmware stuff why not just get adb in the vmware vm Jul 23 16:21:38 how do i? Jul 23 16:22:19 get adb from sdk Jul 23 16:22:51 adb install myapp.apk Jul 23 16:23:55 see let me explain you.. i downloaded the live os iso file..installed this iso using vmware.. Jul 23 16:24:42 now on my machine there is machine(vmware) that has android os Jul 23 16:25:11 can u give me the link to info about that live iso thing? Jul 23 16:28:29 aunn: http://gadgets.softpedia.com/news/How-To-Run-Google-039-s-Android-OS-On-Your-Windows-PC-3897-01.html Jul 23 16:30:46 aunn: i am using the virtual machine method .. Jul 23 16:31:46 so, it is x86 port Jul 23 16:31:53 yes Jul 23 16:32:11 now did you get my question? Jul 23 16:32:32 you could also just use the emulator, if your just wanting to try it out Jul 23 16:32:55 no.. i need to install my app on that OS Jul 23 16:35:15 smartfish, this is the first time i see that, so .... Jul 23 16:35:30 well, in vmware, u can have usb connection Jul 23 16:35:40 yes.. so ..? Jul 23 16:35:46 so use that usb connection to connect to the android vm Jul 23 16:36:09 and install the app from ur native machine Jul 23 16:36:26 pls explain that in more detail... Jul 23 16:36:28 like we install stuff to our phone from pc over usb Jul 23 16:38:18 sounds like your making this a lot more difficult then it needs to be Jul 23 16:39:05 http://www.google.com/search?client=opera&rls=en&q=android+install+app+over+usb&sourceid=opera&ie=utf-8&oe=utf-8 Jul 23 16:39:23 don't know it will work, u have to give it a try urself Jul 23 16:39:33 what is the use of live os if we are not able to install apps Jul 23 16:40:03 if you really have to use the live OS, download the app Jul 23 16:40:05 u need to ask that question to developer Jul 23 16:40:21 via http Jul 23 16:40:38 and the browser downloads page will let you install it Jul 23 16:41:03 yes.. Jul 23 16:42:56 what is connectbot actually? .. can connectbot help? Jul 23 16:43:22 I think connectbot is a ssh client Jul 23 16:43:58 connectbot is itself an apk file.. Jul 23 16:43:59 it would help if you need to remotely log into a unix terminal Jul 23 16:44:55 connectbot available for windows? Jul 23 16:45:44 no, its only for android, but if you need an equivalent, that would be putty Jul 23 16:46:16 ahhh, putty is great Jul 23 16:46:33 oh yes.. so with putty can i log into android os? Jul 23 16:46:39 no Jul 23 16:46:56 this is way difficult.. man Jul 23 16:47:10 I agree. Jul 23 16:47:21 need some digging into this... Jul 23 16:47:38 i am sure somebody must have done this... Jul 23 16:47:53 what are you trying to do again? Jul 23 16:48:20 same installing my app onto OS.. Jul 23 16:48:22 :( Jul 23 16:49:14 if you have the source code. The ecplipse+adt puglin+emulator is really easy Jul 23 16:49:40 open the project, click run. it will open the emaulator install the app and run it for you Jul 23 16:49:53 yes i have done that Jul 23 16:50:05 but now i need to run it on live OS Jul 23 16:50:17 as aunn said earlier if you have a device you can connect it via usb and have the emulator isntall onto a device Jul 23 16:50:37 i do not have the device Jul 23 16:50:48 bummer Jul 23 16:50:59 :) Jul 23 16:51:00 when I want to root my htc magic Jul 23 16:51:15 I boot with the back + POWER key Jul 23 16:51:20 and hit the follow command Jul 23 16:51:31 fastboot boot img-recover.img Jul 23 16:51:43 but he stay saying < waiting for devices > Jul 23 16:51:46 then I would suggest putting the package somewhere on the net download it on the live OS and install it Jul 23 16:52:13 but will the apk file install directly? Jul 23 16:52:32 'install directly'? Jul 23 16:52:40 there is only one package installer Jul 23 16:52:47 it treats all packages the same Jul 23 16:53:07 ok.. Jul 23 16:53:10 make sure to check installing non market apps Jul 23 16:53:21 if the live OS needs that Jul 23 16:53:21 ill try wih the emulator.. Jul 23 16:54:02 I did it on my G1 with thetherbot Jul 23 16:54:07 tetherbot* Jul 23 16:54:14 ok.. Jul 23 16:54:26 the download/install Jul 23 16:54:36 ok.. Jul 23 16:57:12 hi, i have an galleryview and want to listen on item events.... onClick stops the slide-function to work... is there a trick doing that with onMotion? Jul 23 16:57:53 im imagin some functionality like in the market or youtube -app Jul 23 16:58:00 +e Jul 23 17:22:35 hmmm nobody worked with GalleryView? Jul 23 18:41:35 pretty much action in this channel Jul 23 18:45:12 shhh! Jul 23 18:45:17 you'll wake it up. Jul 23 18:47:38 About to run the android test suite with ICU 4.2.1 installed. Jul 23 18:49:45 Reading some of the comments made me chuckle. Jul 23 18:49:56 "In retrospect, this is a bit hacky" Jul 23 19:02:10 kRutOn: you have no idea :p Jul 23 19:08:13 i have an application, that looks perfekt when not in landscape orientation.... Jul 23 19:08:42 how do i get it to look that cool also in landscape orientation? Jul 23 19:09:10 create an alternative layout for landscape Jul 23 19:09:47 hmmm its just a gallery :-) Jul 23 19:09:52 or change your default layout to be less rigid and expand/shrink to different screen sizes.. Jul 23 19:10:32 okay Jul 23 19:12:54 i don't get use to the layout stuff... Jul 23 19:13:10 its more try and error for me Jul 23 19:14:10 normaly i'm coding php, this java stuff is pretty cool ;-), but a bit more tricky ... Jul 23 19:14:28 Hey! I come form php too. Jul 23 19:14:39 long time ago though Jul 23 19:14:42 finfin82: How are you specifying layouts? Jul 23 19:14:57 PHP didn't have all this casting BS Jul 23 19:15:05 :-D Jul 23 19:15:10 strong typing Jul 23 19:15:32 well its good and bad the same time... to dont get forced to define types Jul 23 19:16:23 The main difference from PHP is that you have to type really hard on your keyboard because Java is a strongly typed language Jul 23 19:16:29 kRutOn: the kind of content will get size and parent content inherits dimensions Jul 23 19:16:41 har har Jul 23 19:16:51 hehe Jul 23 19:17:01 i have to keep that in mind... Jul 23 19:17:20 but my colleges dont laugh about english jokes Jul 23 19:17:27 btw: sry for typing.... Jul 23 19:17:45 I've been working on getting my programs out of the browser for years. Now google wants me to go back to it. pfft Jul 23 19:17:51 its not my mothertong (how do you spell that?) Jul 23 19:18:24 hehe Jul 23 19:18:56 php is not that complex ... so its hard in the beginning to join java Jul 23 19:19:16 java.lang.UnsupportedOperationException: U_UNSUPPORTED_ERROR at com.ibm.icu4jni.text.NativeDecimalFormat.openDecimalFormatImpl(Native Method) Jul 23 19:19:20 whoops, forgot about icu4jni Jul 23 19:20:05 i just found out how to use my android for debuggin instead of the emu ;-) Jul 23 19:20:24 that is a pain in the ass on windows 7 Jul 23 19:20:35 ubuntu here ;-) Jul 23 19:20:39 easy as that Jul 23 19:20:53 i guess it would be pain on vista too Jul 23 19:21:05 yeah Jul 23 19:22:32 in a couple of month flash will come to the android... i cant understand why it wasnt planned for releas Jul 23 19:22:44 as youtube is one essential service Jul 23 19:23:17 it doesn't ask when you plug it in to install a driver like XP. it jsut installs whatever it thinks is most appropriate, so you have to uninstall usbmassstor and click the driver install balloon before it complete the install. which only takes about 2 seconds Jul 23 19:23:55 wow? really? Jul 23 19:24:11 i hate to be not root on my system ;-) Jul 23 19:24:19 finfin82: because it's a lot of work to do it right Jul 23 19:24:41 yet you use ubuntu, where root doesn't exist. You have to sudo everything Jul 23 19:24:46 ? Jul 23 19:24:52 yep Jul 23 19:25:00 but it is like beeing root Jul 23 19:25:01 I like fedora Jul 23 19:25:18 i mean, on windows... windows decides what the system does Jul 23 19:25:49 yep, its fun that way. "just think of it more as a ride" Jul 23 19:25:52 ... and what not ;-) like the driver stuff Jul 23 19:27:55 the documentation of java is still a problem to me Jul 23 19:28:11 unfornately the games I play are wrote in DX9. That and Aero is pretty damn cool on windows 7, but once google comes out with Chrome OS maybe the hardware support will shift to linux and just maybe some games Jul 23 19:28:17 in php you walk through the function docs... and get examples for each function Jul 23 19:28:35 YES PHP documentation is wonderful Jul 23 19:29:12 with a javadoc generated file ... ;-) its not that easy Jul 23 19:29:14 I found this pretty useful for covering all the basics Jul 23 19:29:15 http://java.sun.com/docs/books/tutorial/java/index.html Jul 23 19:29:29 Im almost tempted to just stick a webview in there and make all my apps just a webview to a php script Jul 23 19:30:14 ;-) Jul 23 19:30:23 i saw an video from google io Jul 23 19:30:36 the google webkit must be wonderful for that Jul 23 19:30:39 well that's how part of Gmail is implemented Jul 23 19:30:40 but Jul 23 19:30:52 it requires work if you want it to be fast and look like a native app Jul 23 19:31:09 gmail is google webkit ;-) Jul 23 19:31:25 no Jul 23 19:31:33 part of the Gmail app uses Webkit Jul 23 19:31:37 not all of it Jul 23 19:32:07 Hello, romainguy Jul 23 19:32:33 yea some other stuff of cause... but as i saw in the google io video (was about the new wave application) google webkit does all the compatibility stuff Jul 23 19:33:18 and it will cause that the whole stuff is workin on any browser, including android Jul 23 19:33:51 gmaps is pretty much complete webkit as he said Jul 23 19:34:20 have anybody here been to the google io? Jul 23 19:34:42 finfin82: fwiw I work on the Android team so believe me, Gmail is NOT entirely made of Webkit :) Jul 23 19:35:17 it was more or less just a guess after knowing the g-maps stuff Jul 23 19:35:20 ;-) Jul 23 19:35:30 what's the "g-maps" you're talking about? Jul 23 19:35:32 finfin82: The I/O demo was of the HTML5 client in a browser Jul 23 19:35:48 maybe you're confusing it with the mail client? Jul 23 19:36:08 romainguy__: i mean google maps ;-) Jul 23 19:36:44 kRutOn: there where many demos Jul 23 19:36:56 mom pls im looking for the video Jul 23 19:37:12 And it was probably romainguy_ doing the demo... Jul 23 19:37:32 cool Jul 23 19:38:40 http://www.youtube.com/watch?v=v_UyVmITiYQ this was the video i watched ... Jul 23 19:39:09 so it's not Gmail nor Google Maps but Google Wave :) Jul 23 19:40:16 yes... but in the video the wave developer said, that he was part of the google maps dev-team and tells, that webkit deals with many problem of compatibility and complexity Jul 23 19:40:27 thats all i wanted to say Jul 23 19:41:30 what just happened in here? Jul 23 19:41:36 hehe Jul 23 19:41:44 * KNY just /clears and pretends that the last few minutes didn't happen Jul 23 19:41:58 im pretty communicative Jul 23 19:42:12 oh i forgot to go on developing my android app Jul 23 19:43:12 i guess Google Wave will be the next gen smtp Jul 23 19:46:01 im so unhappy, that i have to deal with php all the time at work Jul 23 19:46:33 its a private projekt to work with java to develop my skills Jul 23 19:47:54 JackMordal: be happy that your last php contact is long ago Jul 23 19:51:43 I love php Jul 23 19:51:44 :D Jul 23 19:52:02 what kind of app are you making, finfin82 ? Jul 23 19:52:20 something like youtube Jul 23 19:52:26 but not that complex.... Jul 23 19:52:51 im working on building a wrapper to the existing flv content in the internet Jul 23 19:52:59 Oh OK cool Jul 23 19:53:06 anyone know when we will get flash support? Jul 23 19:53:53 in september?.... the hero will release with flash-support Jul 23 19:55:24 my understanding is that the Hero comes with Flash Lite Jul 23 19:55:36 What about the G1/Magic? Jul 23 19:55:43 ask Adobe :) Jul 23 19:55:56 ;-) Jul 23 19:56:22 they are porting it for all... when it will be released.... noone knows Jul 23 19:56:58 yeah, well if the hero has it, then it shouldn't be too far off for the others to get it. Jul 23 19:57:09 the Hero has Flash Lite Jul 23 19:57:10 romainguy__: flash lite will be enough to play flv Jul 23 19:57:25 I never said the contrary Jul 23 19:57:37 but Adobe also announced they're working on porting Flash 10 to Android Jul 23 19:58:11 hmm Jul 23 19:59:47 romainguy__: you are working for google? Jul 23 19:59:55 I am Jul 23 20:00:00 cool ;-) Jul 23 20:00:04 lucky guy Jul 23 20:00:20 hi, quick question, is there a faster xml parser then SAXParser? Jul 23 20:00:54 Keychar: SAXParser is pretty fast.... i know no other Jul 23 20:01:14 then I don't know what I'm doing wrong, it's very slow for me Jul 23 20:01:29 use traceview Jul 23 20:01:33 use DDMS' allocatrion tracker Jul 23 20:01:35 I'm using the XMLReader from the parser Jul 23 20:02:23 i fork the process of reading-part of the parser in an AsyncTask Jul 23 20:02:49 is there a single Webkit core used by all WebView's on the system? Jul 23 20:02:52 not just the reading.... the whole parsing process too Jul 23 20:03:15 zhobbs_: i doubt it Jul 23 20:03:33 jbq might know Jul 23 20:03:50 hmm, maybe a single instance per process or something Jul 23 20:03:57 romainguy: traceview? I found the DDMS, but no traceview Jul 23 20:04:04 traceview is part of the SDK Jul 23 20:04:09 it's our profiler Jul 23 20:07:40 in a twitterchannel of google android i read about new ability to do speak-search in google maps on android Jul 23 20:08:19 i have a htc/magic and have no speak-search option Jul 23 20:21:24 what time is it at your site? Jul 23 20:21:31 its 10:30pm here ;-) Jul 23 20:30:58 hola!! Jul 23 20:41:17 anyone online with experience using http? specifically httppost? Jul 23 20:42:02 I dont have much knowledge but a little experience from a recent project / java stuff, what you trying to do? sure someone will help you / point you in the right direction Jul 23 20:42:47 I've got it posting name value pairs, but I need to post picture as well. Jul 23 20:42:54 is there a easy way to do md5? Jul 23 20:43:06 and also Jul 23 20:43:10 I know there is a post type for that, but I don't know how to do it in android Jul 23 20:43:26 how can I find a md5 combination which will give me the last digit as a zero? Jul 23 20:43:36 you can't Jul 23 20:43:45 except by brute force Jul 23 20:43:56 yeah I have been trying lol Jul 23 20:44:06 I had a bug where the first 0 was cut off on my md5 Jul 23 20:44:20 and I just want to make sure it doesn't hold true for zeros at the end too Jul 23 20:45:37 Question: Can you set a TextView (or any kind of view) in the layout to not be shown by default? (The idea is that I'm not showing any of the view if certain backend logic evals to false) Jul 23 20:46:13 or conversely, i will ENABLE the TextView to be shown if the logic evals to true. Unfortunately the 'enabled' property doesn't do what i thought Jul 23 20:46:18 whaledawg that is one hell of a question, I have only read an image from a website into and image format on blackberry app (Done in Java) and that was done by reading in the bytes of data and then changing type to an image, I don't know if you would have to split the image into bytes to send it over post ?? Jul 23 20:46:41 kenleycapps you tried setting visibility to invisible?? Jul 23 20:47:21 Matt____, As with most questions I ask, I have found the answer immediately after asking it. =] Jul 23 20:47:26 But thanks, that was it Jul 23 20:47:48 Matt___ I can do it simply if I set the contetn_type to multipart-formdata, but doing that is the trick :D Jul 23 20:47:51 kenleycapps no worries, at my university we have a stuffed teddy bear we have to talk to with our problems lol Jul 23 20:48:17 Matt____, hah, yes. I've heard it termed as the rubber ducky effect Jul 23 20:48:36 whaledawg I can only try to help lol even if it doesn't help lol Jul 23 20:48:36 especially since Android totally redid their web stuff with cupcake so alot of the tutorials/data out there is old Jul 23 20:49:08 whaledawg I know that feeling all too well lol Jul 23 20:52:19 random Q. does anyone have a Google Wave account? Jul 23 20:53:18 I just got one today and cos I have no one to talk to its a little un eventful lol Jul 23 20:53:25 is there a way to accelerate the speed of a sqlite injection? I've found that that's my time hog Jul 23 20:53:32 nope, sorry Jul 23 20:53:38 I wish I did though Jul 23 20:54:11 :( Jul 23 20:54:36 JackMordal: Its still a long way to go before getting any kind of public release I'll tell you that now hee hee Jul 23 20:55:26 Keychar: is something else locking up the db? I played around with sqlite a long time ago but had no problem with it taking to long to read and / or write, although not sure what you mean by an sqlite injection Jul 23 20:57:00 I'm using the db.insert function when fetching data from a xml file, and appearently MyProvider.insert hogs a lot of my time Jul 23 20:57:17 I've e Jul 23 20:57:36 but it is definately inserting it after some time? also is this all happening in a seperate thread? Jul 23 20:57:37 oops, I've even tried to run it in a thread in the background, but it doesn't seem to help Jul 23 20:57:49 yes, it's inserting Jul 23 20:58:10 okies sounds a little odd tbh, how long is it taking? Jul 23 20:59:08 a couple of seconds for about 75 or so inserts Jul 23 20:59:36 * jbq returns and scrolls back. There was a question about WebKit and WebView. All WebViews use the exact same implementation of WebKit, but definitely separate instances in separate processes running as separate UIDs. Jul 23 21:00:02 it can take almost a half second per insert :S Jul 23 21:00:20 that sounds wrong Jul 23 21:00:29 erm . . . Im looking at my old code Jul 23 21:00:35 I dumped the database while inserting and it took way to long time Jul 23 21:01:54 for inputting a single database entry containing several variables(long, lat, date, . . . ) I put the variables into a ContentValues variable and insert that, Im assuming thats what your doing? Jul 23 21:02:04 indeed Jul 23 21:02:17 just for the record I have no idea if this is right, This is old old code Jul 23 21:02:59 and you override onCreate and onUpdate? Jul 23 21:03:14 gn8 guys Jul 23 21:03:29 11pm and another 12hrs day to go Jul 23 21:03:43 finfin82 gn8? Jul 23 21:04:02 Matt____: on which class? Jul 23 21:04:40 Keychar I have a DatabaseHelper class which extends SQLiteHelper, you got that? Jul 23 21:04:52 yep Jul 23 21:05:37 Can I take a peek at your code? otherwise Im out of ideas tbh Jul 23 21:05:48 is there any way I can force a thread to run in the background? it seems that the thread keeps running in the current thread if it doesn't take too much time Jul 23 21:06:23 are you calling thread.run() or thread.start()? Jul 23 21:06:29 run Jul 23 21:06:49 I'd love that help, but I'm afraid my employer would not like that Jul 23 21:06:54 oooo run it with .start() Jul 23 21:07:05 ooh, thanks Jul 23 21:07:26 no worries, but yeah .run() will run the thread on UI thread and .start() will run in background, I've learnt that by doing the same as you lol Jul 23 21:08:11 you saved me hours of debugging hours to come, thanks :) Jul 23 21:08:50 lol no worries, does that at least hide the problem of inserting your xml? is it def the db causing the time lapse, not the xml parsing? Jul 23 21:09:56 Im just throwing ideas out their now Jul 23 21:09:59 there* Jul 23 21:10:52 well, the xml parsing wastes a little bit time too Jul 23 21:10:56 I need to know the parent Jul 23 21:11:18 so I use a stack with two cache strings with parent and current tag, also current value Jul 23 21:11:55 that costs about 50% of my xml parse time, even though I don't fetch etc when it's now used Jul 23 21:13:30 I do think you sped up my code a lot though simply with the .start though :P Jul 23 21:13:34 thanks for that Jul 23 21:14:42 I dont know the best way of approaching this kind of problem to be honest, but if your loading the database entry during the xml fetching and parsing the database entry shouldn't take any time at all really, but no worries, just remember everything you been done in a background thread when it isn't updating the UI, you'll soon need to learn about Handlers, Messages and Runnables :-P Jul 23 21:23:41 yeah, but I'm pretty sure what I do is safe, I have a question about traceview though Jul 23 21:23:55 what does the self process in Children of a process mean? Jul 23 21:25:08 I have no idea, I've never played with traceview before Jul 23 21:25:46 these are not process Jul 23 21:25:55 self just means how much time is spent in the code of that method Jul 23 21:26:25 ok, thanks Jul 23 21:31:33 is it possible to convert text positions to display coordinates (TextView)? Jul 23 21:43:41 SQLiteStatement.native_execute takes up 22.4% of my code, is it just me or is that very much? Jul 23 21:44:01 22.4% of my runtime* Jul 23 21:55:16 Keychar: well optimize your queries :) Jul 23 21:55:26 add indices or whatever Jul 23 21:56:35 * Keychar is reading up on indices Jul 23 21:56:50 how do they speed it up? Jul 23 21:57:38 go read about SQL :) Jul 23 21:57:59 found a page Jul 23 21:58:04 looks promising, thanks Jul 23 21:58:52 You don't read about SQL to learn her secrets Jul 23 21:58:53 ahaa, my database is slow because I have UNIQUE data fields? Jul 23 21:59:08 you make love to SQL and she tells you her secrets to aleviate the shame Jul 23 21:59:44 ^^ Jul 23 22:08:51 jasta: couchdb or some kind of key/value db would be nice as alternative. android comes without orm, well i found tools/gwtorm.git.. have seen apps that handle their db migration between versions inside code and writing structs and queries allover themself for rather simple tasks Jul 23 22:17:12 are indices used automatically by .insert? Jul 23 22:19:32 right all Im off to sleep, good luck Keychar with your db probs, Im sure you'll fix it, night all Jul 23 22:35:43 Hi, I am trying to use Android SDK along with Eclipse in ArchLinux x86_64 and I get the following error: "Unknown error: " Jul 23 22:35:53 Could you help me narrow it down at least? Jul 23 22:36:35 run it from a console to get the output Jul 23 22:43:09 ok, apparently some files in tools directory had wrong permissions Jul 23 23:16:15 hi all, is it possible to add custom buttons to the incall menu ? Jul 23 23:34:49 johnnyzen: no you can't modify the incall screen Jul 23 23:36:01 hmmm. any ideas how I can launch an app whilst incall, with maybe 1-2 keypresses ? Jul 23 23:44:11 i haven't tried it myself but i think there is a listener/reciever on call state Jul 23 23:44:20 you might be able to do something with that Jul 23 23:45:19 http://developer.android.com/reference/android/telephony/PhoneStateListener.html Jul 23 23:49:04 johnnyzen, sure, hit Home and then hit your application's shortcut. Jul 24 00:41:59 quick question that I hope someone can answer: is the xml parser SAXParser.getXMLReader() asyncronized? Jul 24 00:44:05 because when I an synchronized(this) to both startElement and endElement my program works Jul 24 00:45:06 "All SAX interfaces are assumed to be synchronous" :S Jul 24 01:26:46 is there a free IRC app for android yet? Jul 24 01:28:19 yes Jul 24 01:30:17 would you recommend fIRC or DaraIRC? Jul 24 01:34:46 Never mind. How do you download an image thru a HttpClient? Jul 24 01:35:18 twilightwolf90, http://hc.apache.org/ Jul 24 01:46:31 Okay, if I have a HttpGet pointed at the url of an image, can I just take the HttpResponse (.getEntity().getContent()), run it thru BitmapFactory.decodeStream(), and assign it to a Bitmap? How can I display it through an ImageView, or would something else do better? Jul 24 01:59:58 Hello everyone Jul 24 02:01:49 I have a question about using SlidingDrawer. I want to intercept the BACK button when the SlidingDrawer is open in my activity. Do I intercept the onKeyDown in the slidingDrawer or the Activity class ? Jul 24 02:02:46 your choice Jul 24 02:04:56 Ok. I'll do it in the SlidingDrawer for now. Thanks romainguy. Jul 24 02:16:21 I can't think of what anime I've heard chihiro in Jul 24 02:16:29 errrrr brain strain Jul 24 02:17:43 ahh I googled it Jul 24 02:22:00 Spirited away Jul 24 02:53:27 Is there a quick article/reference on what launchModes are used for (re: Activity) ? **** ENDING LOGGING AT Fri Jul 24 02:59:57 2009