**** BEGIN LOGGING AT Tue Jul 14 02:59:57 2009 Jul 14 04:24:54 So, I want to debug some tests inside of Eclipse. When I run from the command line, with /Developer/android-sdk-mac_x86-1.5_r2/tools/adb shell am instrument -e coverage true -w com.example.myapp.tests.required/android.test.InstrumentationTestRunner, it runs in under 2 seconds. When I run them in Eclipse, it takes something like four minutes. How can I debug these more painlessly? Jul 14 04:37:52 question: I figured out how to get the data I wanted into a cursor, then into a ListView via a cursor adaptor. Then I figured out how to add check boxes next to each item. But I can't for the life of me find out how to actually check off items. Every example is for a ListActivity and not a ListView Jul 14 04:38:08 I just want to check off items and then get an array of the checked ones. Jul 14 04:42:06 ListActivity is just an Activity which has a ListView in it. Jul 14 04:42:09 there's nothing else special about it Jul 14 04:42:22 so you should be able to adapt any example you've seen easily Jul 14 04:45:36 I could if I knew what I was doing ;) Jul 14 04:45:55 well your question is too strange for me to parse. Jul 14 04:46:36 I want to check off items in a listview Jul 14 04:47:06 so make a listview with a multi choice mode and use CheckedTextView's? Jul 14 04:47:18 s/with a/in/ Jul 14 04:48:10 you can call getCheckedItemPositions() to figure out which ones are checked Jul 14 04:48:22 I got that far, but that doesn't check the boxes. But I think I've figured it out now Jul 14 04:48:26 and manipulate with setItemChecked() Jul 14 04:50:08 you will need to check them with that method when the user clicks on one Jul 14 04:51:08 which you can detect with a listener set with setOnItemClickListener Jul 14 04:51:22 would be very straight forward... Jul 14 04:52:17 you can also detect with isItemChecked(pos) Jul 14 04:53:41 http://pastebin.com/d610babe4 Jul 14 04:53:53 it's not setting the items to checked :/ Jul 14 04:54:14 btw I've tried both true and false in setItemChecked Jul 14 04:54:26 actually, setItemChecked(..., false) doesn't work. Jul 14 04:54:40 or rather, setItemCHecked is buggy in a subtle way Jul 14 04:54:59 que? Jul 14 04:55:21 well first of all, setItemChecked(..., false) is asking that item to be _un_checked Jul 14 04:55:24 so you got your wish Jul 14 04:55:35 yeah but like I said, I tried it both ways Jul 14 04:55:48 second, setItemChecked(..., true) has a bug which will toggle the check mark on and off rather than forcing it true Jul 14 04:56:15 so you'll want logic like if (listView.isItemChecked(pos)) { listView.setItemChecked(pos, false); } else { ... true); } Jul 14 04:56:31 or i guess you could write that much more concisely :) Jul 14 04:56:51 also make sure that your listview children are of type CheckedTextView Jul 14 04:57:56 if you have simple layouts, use android.R.layout.simple_list_item_multiple_choice. Jul 14 04:58:18 if not, make sure you use I set that in the cursor adaptor Jul 14 04:58:37 then it works -- so you must not be telling me everything :) Jul 14 04:59:23 or your not telling me evertying Jul 14 04:59:57 well fair enough :) Jul 14 05:00:45 do I have to force a redraw of the list? Jul 14 05:01:12 no Jul 14 05:04:15 hey romain Jul 14 05:09:23 hey folks, I have a user reporting an issue with my app on Hero--what would you folks recommend I say/do? I have no way of testing it but since Hero is coming out soon I don't want to say "not supported" Jul 14 05:11:54 i recommend you try to fix it. Jul 14 05:12:08 but only if the user reporting it isn't a complete retard and can actually help you :) Jul 14 05:12:33 jasta, ahaha and I want a pony, too Jul 14 05:12:40 any real solutions? ;-) Jul 14 05:13:38 What's the issue? Jul 14 05:14:09 KNY: should be easy to fix if he's willing to cooperate with you Jul 14 05:14:13 whaledawg, no clue, just that it "doesn't work" Jul 14 05:14:17 that is, explore the problem interactively Jul 14 05:14:27 but if it's the type of user that says "doesn't work", then you ignore them Jul 14 05:14:34 because there's no way you'll ever get anything useful out of them Jul 14 05:14:37 trust me, i've tried so many times :) Jul 14 05:14:38 jasta, you have no idea the hissy-fits some users have thrown when I ask them to provide a log or something Jul 14 05:14:54 oh i'm sure i have a better idea than even you do :) Jul 14 05:14:56 "Why should I have to do that????? You're the developer!!!" Jul 14 05:14:56 haha Jul 14 05:15:02 then ask for a log Jul 14 05:15:06 and they'll go away Jul 14 05:15:08 haha Jul 14 05:15:37 wait, so they are from what country? Jul 14 05:15:53 no clue Jul 14 05:16:45 You could tell them that American law says they should ship you their phone for testing :D Jul 14 05:16:50 haha Jul 14 05:17:15 but even when it comes out, there will be other manufacturers that will customize Android (that's kind of the idea). How are we supposed to support all of them? Jul 14 05:18:42 KNY: well, if any of them break backwards compat they're doomed Jul 14 05:18:50 what's more likely, however, is that you misunderstood an API and abused it :) Jul 14 05:18:59 and you should be expected to not do that :) Jul 14 05:19:02 jasta, haha Jul 14 05:19:48 I'm not saying that I'm perfect, but that's pretty much the point. If I was, I'd sleep soundly knowing that no one would ever have any problems Jul 14 05:20:18 Actually, I'd just tell the guy you'd love to help but Hero isn't available here and if he would be so kind you can post a debug version for him that will send you the log files automatically. Jul 14 05:20:55 whaledawg, yeah, I sent a reply asking for more information but I was just making idle discussion while waiting for a reply Jul 14 05:22:10 KNY: yeah, I have the same problem with the Japanese phones.. Jul 14 05:23:07 kRutOn, what are you experiencing? Jul 14 05:23:33 Now that I think about it, it makes sense to have a debug version that automatically sends you the logs and instructions on how to install it posted Jul 14 05:23:36 "@neo486: AndroidキーボードのEnterキーとiWnnIMEのEnterキーは違うもの?" Jul 14 05:23:46 kRutOn, ahh Jul 14 05:23:55 Basically the Japanese users of ConnectBot are reporting that the Enter key doesn't work Jul 14 05:24:19 whaledawg, it's not usually a crash, it's typically "feature X doesn't work quite right all of the time" Jul 14 05:24:33 But difficult to get info on it.. Jul 14 05:24:37 Maybe it's due to timezone differences Jul 14 05:24:37 or "feature Y looks different on ROM Z" Jul 14 05:26:26 @jasta: It was choice mode. But I don't get that because this is my XML: Jul 14 05:26:30 android:layout_width="fill_parent" Jul 14 05:26:30 android:layout_height="fill_parent" Jul 14 05:26:30 android:id="@+id/the_list" Jul 14 05:26:30 android:choiceMode="multipleChoice" Jul 14 05:26:31 /> Jul 14 05:26:54 normally I'd yell at you for not using a pastebin but it's 1:30AM and I don't really care :) Jul 14 05:27:36 pfft, it's 5 lines Jul 14 05:27:42 I'd like to praise you. Jul 14 05:27:45 someone should make an xchat plugin which automatically creates a pastebin when you send a message that contains more than 2 newlines and replaces the outgoing message with the link :) Jul 14 05:27:47 now 6 lines, that's out of order Jul 14 05:28:44 6 lines is cause for war Jul 14 05:28:55 BANHAMMER Jul 14 05:29:07 but that looks like the listview mode should be multiple choice, right? Jul 14 05:38:27 Well, Bed time for me Jul 14 05:38:27 Good night all Jul 14 05:38:32 whoops, I mean Jul 14 05:38:39 http://pastebin.com/d610babe4 Jul 14 08:34:42 http://tinyurl.com/nkypfa Jul 14 10:13:58 morning all Jul 14 10:19:10 hi Jul 14 10:31:09 When i have used a mapview my GPS icon never gets removed, how do i stop the mapview when someone exits it? Jul 14 10:34:37 if you are using a mylocationoverlay, try calling the disableMyLocation() in the onPause method Jul 14 10:35:38 keny: thanks! Jul 14 10:51:16 has anyone tried opening a browser from their app? Jul 14 10:52:21 hey Jul 14 10:54:47 hey again andy Jul 14 10:57:42 hiya Matt____ Jul 14 10:58:02 i have written a sms callback receiver so when a text arrives it should run a bit of my code - however its not working Jul 14 10:58:06 can i get u to take a look at it? Jul 14 11:06:31 best bet is to put it in a pastebin for anyone and everyone to have a look at Jul 14 11:07:02 ahh => fixed it Jul 14 11:07:08 now i just need to get access to the message Jul 14 11:07:10 hmm Jul 14 11:07:24 ive seen a lot of code online for access sms Jul 14 11:07:31 however i dont ever seem to be able to find one which works out the box Jul 14 11:08:55 yeah i find that, but you'll get their eventually Jul 14 11:14:13 AndyArmstrong: you could try hacking the SmsPopup application (http://www.everythingandroid.net/) Jul 14 11:14:25 ahhha Jul 14 11:14:29 dont need it actually Jul 14 11:14:30 worked it out Jul 14 11:14:33 sweet Jul 14 11:14:34 love this Jul 14 11:14:39 guys Jul 14 11:14:43 if ive written an intent filter right Jul 14 11:14:47 and its like Jul 14 11:14:52 com.android.whatevertheheck Jul 14 11:14:59 and its for a broadcast receiver Jul 14 11:15:04 can i rename it within the xml Jul 14 11:15:17 i no u can do intent.setaction from within code of a new intent Jul 14 11:15:38 but if you are just catching a message can i rename the massive com.android.telephoney etc line to something i want Jul 14 11:25:27 Matt____ got completely disconnected there! Jul 14 11:25:38 the other thing ive been fighting horridly with is enabling bluetooth programatically Jul 14 11:25:40 how the heck is it done! Jul 14 11:31:32 anybody got any good links on how to use the tts stuff Jul 14 11:38:59 i am trying to use the TTS lib in my application however it throws this exepction 07-14 12:37:49.176: ERROR/AndroidRuntime(1245): java.lang.RuntimeException: Unable to start receiver com.android.driverwidget.WordWidget: android.content.ReceiverCallNotAllowedException: IntentReceiver components are not allowed to bind to services Jul 14 11:39:06 i am making a appwidget can anybody help Jul 14 11:45:02 .. Jul 14 11:52:33 ^_^ Jul 14 11:53:01 intent receiver components are not allowed to bind to service Jul 14 11:53:05 so what am i supposed to do... Jul 14 11:58:25 ? Jul 14 11:58:36 ... Jul 14 11:58:55 im not even asking it to bind to a service Jul 14 11:59:03 im just tryna make the tts work Jul 14 12:15:31 is there anybody here who can help me , i am trying to write an appwidget that uses the tts lib, however i keep getting strange exceptions Jul 14 12:16:35 how can I open a context menu on a short click? Jul 14 12:19:49 is there anybody here who can help me , i am trying to write an appwidget that uses the tts lib, however i keep getting strange exceptions Jul 14 12:26:34 <_Roman> Can anyone tell me how to delete an sqlite database that I have created in my application? Jul 14 12:26:41 is there anybody here who can help me , i am trying to write an appwidget that uses the tts lib, however i keep getting strange exceptions Jul 14 12:27:57 if im using the tts lib , do i need added to the manifest Jul 14 12:38:03 _Roman use the terminal to find the adb tool and it'll let you view the emulators file structue and then do rm Jul 14 12:38:30 is there a way of displaying a message above an overlay when the onTap method is called? Jul 14 12:38:42 <_Roman> Matt____: thanks, I was wanting to do it from within my application. Is that possible? Jul 14 12:38:59 probably but i wouldn't be able to tell you where sorry Jul 14 12:44:08 ok Jul 14 12:44:12 who's got the cisco client in the works Jul 14 12:46:39 anyone know of a good comprehensive tutorial on layouts? Jul 14 12:54:58 <_Roman> Matt____: are you just wanting to know how to show a popup dialog? Jul 14 12:56:49 no _Roman I wanted something like a toast but displayed above an overlay item rather than a static place on the screen Jul 14 12:57:09 <_Roman> ok, I don't know how to do that Jul 14 13:01:10 woohoo Jul 14 13:01:17 ircing from g1 Jul 14 13:04:49 heh I totally read that "urse-ing" Jul 14 13:05:58 now if i can remember the alt+space magic to get out of screen Jul 14 13:06:27 does anyone know if the camera auto-detects the orientation by default, or is that just the factory camera app? Jul 14 13:14:31 do i need to add something to the android manifest if im using the tts library - Jul 14 13:14:45 when i try to use it by making a new application context it reports error : 07-14 14:15:18.357: WARN/System.err(729): android.content.pm.PackageManager$NameNotFoundException: Application package com.google.tts not found Jul 14 13:20:09 ?? Jul 14 13:21:02 can anybody clarify why i get a name not found exception when i try to create my Tts object in this code Jul 14 13:21:02 http://pastebin.com/m5493168d Jul 14 13:21:10 is it because im missing a lilbrary line in the manifest Jul 14 13:23:29 if i add in it starts going INSTALL_FAILED_MISSING_SHARED_LIBRARY Jul 14 13:33:59 if i add in it starts going INSTALL_FAILED_MISSING_SHARED_LIBRARY Jul 14 13:36:56 .. Jul 14 13:39:02 how can I create a menu? not a context menu, not a options menu. just a menu that appears when I want it to appear. Jul 14 13:39:05 is this possible? Jul 14 13:39:35 in this case, I want it to appear on a single short click to a button. Jul 14 13:39:58 if i add in it starts going INSTALL_FAILED_MISSING_SHARED_LIBRARY Jul 14 13:40:31 I am searching on google since hours, but only find examples for a options menu and a context menu, but I don't find anything about just plain menus. Jul 14 13:41:38 options menu is the plain menu Jul 14 13:41:53 I am not even able to create a menu object, "Menu menu = new Menu();" results in "cannot instantiate the type Menu" Jul 14 13:42:11 zhobbs_: but this only appears when you click on the menu button. I want to have several menus, for each of my icons another one. Jul 14 13:42:32 and I dont want to have these icons, I want to have a list of items, like on submenus or on context menus. Jul 14 13:42:55 you are doing something that is non-standard for android, so you have to create this mechanism yourself Jul 14 13:43:22 zhobbs_: I know that this is not standard, so I try to just create a menu object, without waiting for someone pressing the menu-button. Jul 14 13:43:36 Gelb: a Menu object is passed in to you for onCreateOptionsMenu() Jul 14 13:43:43 you are supposed to populate that Menu object Jul 14 13:44:12 zhobbs_: I know, but how can I create a menu object and show it, without waiting for someone pressing the menu-button? Jul 14 13:44:23 you don't Jul 14 13:44:40 you might be able to dispatch a menu button press, but it sounds like you should come up with a different approach Jul 14 13:45:49 so... what I have to do is: wait for someone to press my icon, if this happens safe somewhere what was the last icon someone pressed, than dispatch a menu button press, so onCreateOptionsMenu is called. in onCreateOptionsMenu i check which of my icons was clicked last time, so I know which of my menus I should show? Jul 14 13:47:04 it's stupid to launch an options menu based on what icon you clicked Jul 14 13:47:23 why? Jul 14 13:47:36 because, the options menu is not supposed to be contextual Jul 14 13:47:51 thats how my interface will work: you click one of the icons in my new navigation-bar at the bottom of my application, and then you get a menu where you can select the right action. Jul 14 13:48:24 if you want to perform an action on a touched icon I would suggest a Dialog that presents the options Jul 14 13:49:51 I wish there would be anything like the "actionsheet" component on the iphone, that would be even better than a menu. Jul 14 13:49:59 but a menu is something that is at least close to that. Jul 14 13:50:47 zhobbs_: a dialog means, I have to implement everything a menu already has. I think I will do that, but its sad that it is not possible to just show a menu. Jul 14 13:50:54 inventing the wheel twice... Jul 14 13:52:21 at the moment everything is working so well. you do a long press on the icon, and a menu is shown. that is working really great. but it is a long press, thats the only thing i don't like at the moment. it is really strange that for making it work on a short press I have to reimplement the menu. Jul 14 14:07:02 is there a preferred way how to pass paramaters to subactivities? Jul 14 14:07:20 perhaps with .putExtra(key,value) Jul 14 14:07:37 would be nice if i could put a object into that intent Jul 14 14:07:52 since i have complex data to pass to sub activity Jul 14 14:12:21 cutmasta, you can pass a serializable object Jul 14 14:13:05 ok, thats correct, so there is no other way or preferred way to pass parameters to subactivity? Jul 14 14:13:19 does anybody have any experiance with the com.google.tts library Jul 14 14:13:22 i have a slight issue Jul 14 14:14:19 the tts speaks correctly whatever i have in the onInit callback for when the object has initliazed correctly. However thereafter just using myTts.speak("lalal",0,null); does not speak or do anything Jul 14 14:14:28 KNY: morning Jul 14 14:14:29 so it only speaks using the callback on the onInit command Jul 14 14:14:36 sup, SanMehat? Jul 14 14:14:49 how do i make it speak using the instance of TTs wherever and not just in the onInit section Jul 14 14:14:50 KNY: tired... sick.. but alive :) Jul 14 14:15:10 SanMehat, ahaah you need to stop working so hard. How goes the quitting smoking business? Jul 14 14:15:39 KNY: not so much Jul 14 14:16:05 I'm sorry to hear that Jul 14 14:16:49 shit happens Jul 14 14:16:50 :) Jul 14 14:25:04 is there something that provides thread safe locale stuff? like date formatters? Jul 14 14:29:28 Hello. Jul 14 14:29:41 I have created listview and a contextmenu Jul 14 14:29:57 Once a user clicks on contextmenu option, how to find out selected item from list view? Jul 14 14:35:52 Really should be simple, just can't find help resources: Anyone know how to open an image (in an ImageView) saved to the filesystem in a previous activity? (a hint at what to google would be just fine) Jul 14 14:37:04 deebo, SimpleDateFormat ? Jul 14 14:38:12 KNY: theres no provider that provides a localized version without me having to find out the locale etc? Jul 14 14:38:36 oh, I don't know, sorry Jul 14 15:01:49 anybody know where the android robot is Jul 14 15:01:53 I keep getting this Jul 14 15:03:10 Description Resource Path Location Type Jul 14 15:03:10 R.drawable.androidmarker cannot be resolved HelloMapView.java /HelloMapView/src/HelloMapView/testing line 36 Java Problem Jul 14 15:05:55 ctrl-shift-o :P Jul 14 15:07:06 I wish there was a keyboard shortcut for regulating brightness Jul 14 15:22:49 rlundy82-: BitmapFactory Jul 14 15:29:50 has anyone else noticed that Rogers doesn't obey the PhoneNumberUtils.PAUSE constant for inserting pauses into dialed numbers? Jul 14 15:29:57 they seem to require 'p' instead Jul 14 15:30:29 zhobbs_: thanks Jul 14 15:57:53 I was trying to do some simple opengl with android, but it seems like basic functions like glVertex2f are mossing? Jul 14 15:59:54 and i can't find anything online about it being gone Jul 14 16:00:41 bnovc in eclipse if you type . on a type or class if comes up with a list of available functions but also mentions some deprecated stuff Jul 14 16:01:12 i'm not using eclipse/have it setup Jul 14 16:01:24 hm perhas I had just imported the wrong thing Jul 14 16:01:44 er no, I don't see any reference to it Jul 14 16:02:46 I would recommend having a play with eclipse it does make development alot easier Jul 14 16:03:06 Matt____, try ctrl+space Jul 14 16:03:30 bnovc, android support OpenGL ES, not OpenGL Jul 14 16:03:32 vim has completion options, too, but the function just doesn't exist and i don't know much about opengl Jul 14 16:03:43 mdp: right...i wasn't sure what the equivalent was supposed to be Jul 14 16:03:55 cheers KNY but im on a mac and that messes around with spotlight lol Jul 14 16:03:59 bnovc, lots of examples on google. :) Jul 14 16:04:07 Matt____, ahh, you can remap it to something else Jul 14 16:04:47 tbh im happy just typing the . then getting it come up lol Jul 14 16:04:51 bnovc, switch that to use glVertexPointer. Jul 14 16:05:11 ok thanks... i guess i should be searching for opengl es specific tutorials Jul 14 16:06:13 bnovc, yeah, search on "glvertex opengl es"...it's a very common issue with porting opengl code. Jul 14 16:06:19 I see nokia has a tutorial as one of the top hits Jul 14 16:06:51 Does anyone know of a way I could launch the android maps app from within my app? Jul 14 16:07:07 ya i was just being dumb. I thought I was missing something else as I've never really done any opengl... es or not Jul 14 16:07:53 ahh, ok Jul 14 16:08:04 Matt____: launch the intent. Jul 14 16:08:32 ok right - back to my bluetooth problem, can anybody help me work out how to toggle the bluetooth on and off programatically Jul 14 16:08:51 all efforts i have of editing secure system values fail badly - and that is how the Settings.app does it, so i dnt know what steps to take next Jul 14 16:09:07 AndyArmstrong: shouldn't the user decide whether to do that? Jul 14 16:09:18 I managed it with the ACTION_WEB_SEARCH, where I could launch it to open a set website, but with maps I wanted to set directions for the maps app Jul 14 16:11:15 no cjb i want my app to do it Jul 14 16:11:20 becuase its part of the functionality, Jul 14 16:11:34 it makes sence and is convenaint - its also definitely possible Jul 14 16:11:50 just a complete lack of any documentation for it Jul 14 16:11:57 so im looking for some experianced user to help me find it! Jul 14 16:12:20 AndyArmstrong, why not look through Settings to see how they do it? Jul 14 16:13:31 just told u Jul 14 16:13:36 the method im using IS how they do it Jul 14 16:13:41 but its not available to coders Jul 14 16:13:49 cos it fails to write to the Secure table Jul 14 16:13:57 even with al the possible permissions requested Jul 14 16:14:10 AndyArmstrong, there are bluetooth toggle widgets, so it's definitely possible. Sounds like you'll have a fun time, then. Jul 14 16:19:02 Matt____: the google maps app is a bit of a black box Jul 14 16:19:10 you can do ACTION_VIEW on a geo uri Jul 14 16:20:56 cheers vol ill look into, im also looking at ACTION_SEARCH to see if I get pass it current location and end destination to try and get it to give directions but not sure Jul 14 16:21:10 but at least now I have somewhere to start Jul 14 16:30:31 Best Practices Question. I'm displaying an activity w/ a "take photo" button, you click the button, is it better to go to a new activity, or create a Surface on the fly? If new activity, what's the suggested method of transfering the image back to the first activity? Jul 14 16:30:54 when you click* Jul 14 16:34:11 rlundy the only way I have found around that sort of things is by using a singleton (static class) then starting the activity with startActivity for result it its done Jul 14 16:34:22 I would think new activity Jul 14 16:34:34 Bitmap is Parcelable, so you can pass it back in the result Jul 14 16:34:51 Can you? I thought it had to be an int variable to return? Jul 14 16:35:14 setResult(int resultCode, Intent data) Jul 14 16:35:22 stick the bitmap in the intent Jul 14 16:35:36 and you'll get it in onActivityResult() Jul 14 16:35:59 sweet Jul 14 16:36:06 thanks for that, and yeah thats how id do it Jul 14 16:50:15 is it possible to get the scroll position of a webview? Jul 14 16:52:48 Gelb: if not, you could probably extend it to get that information Jul 14 16:53:07 or use javascript... Jul 14 16:54:00 zhobbs_: erm... Jul 14 16:54:07 zhobbs_: there is a limit to how much data you can send through IPC Jul 14 16:54:11 and a large bitmap will hit it. Jul 14 16:54:52 that limit does not apply when you're communicating with your same process, but of course the intent mechanism is designed to transparently move between processes so this is something to consider in a design Jul 14 16:55:13 rlundy82-: you could use the built-in camera module which either returns a small bitmap or stores a jpg into a file Jul 14 16:55:46 jasta: is that true for Intents, or just service binders? Jul 14 16:56:01 you should return a URI to the bitmap Jul 14 16:56:09 (not having a limit if in the same process) Jul 14 16:56:37 zhobbs_: the limit is on the IPC mechanism, so if you try to shove a large bitmap through a parcel you'll hit it. Jul 14 16:57:16 * KNY stores a byte[50000000] in an Intent Jul 14 16:57:35 * Ge0rG stores KNY in a char[3] Jul 14 16:57:42 but this doesn't apply when you're using the IPC mechanism to communicate with your same process, since it won't actually try to deliver the data to the other process Jul 14 16:58:00 Ge0rG, that's why I chose this nick; light on memory Jul 14 16:58:18 I'm not greedy like all you char[5] people Jul 14 16:59:37 KNY: unfortunately, the irc protocol puts a spoke in your wheel. :KNY!n=evan@leonidas.kickersny.com is way longer than :Ge0rG!i=georg@op-co.de Jul 14 17:00:00 Ge0rG, :) Jul 14 17:01:08 is it possible to query the SQLite db directly with sql commands? Jul 14 17:01:19 * neonfreon blinks Jul 14 17:01:29 err.. yes Jul 14 17:01:33 frez: yes. "sqlite3 file.db" then run your commands Jul 14 17:01:58 thanks Jul 14 17:26:34 is there a onload overloaded method or something for a mapactivity Jul 14 17:26:46 I am trying to make a loading screen for the MapActivity Jul 14 17:26:49 any ideas? Jul 14 17:31:40 Matt____, zhobbs_ thanks Jul 14 18:02:22 hi all Jul 14 18:02:51 This post is kind of old: http://www.anddev.org/doing_http_post_with_android-t492.html Does it still represent the way to do an HTTP post in android? Jul 14 18:04:38 jsharkey: ping Jul 14 18:06:48 hi herriojr :) Jul 14 18:06:57 the_alien: hey Jul 14 18:07:34 had a look into the sources? Jul 14 18:07:51 yeah, it's not that complicated, easy to read ;) Jul 14 18:08:20 the_alien: yo Jul 14 18:08:31 the_alien: I have some pictures, and logcat for you if you want Jul 14 18:08:39 frez: always :) Jul 14 18:08:42 no, but as I was saying, my widget is having the same issue as yours...clicking the buttons fast kind of freezes up the button, so it doesn't work Jul 14 18:08:59 and eventually it will start working again Jul 14 18:09:36 herriojr: seems like it won't fire a new Broadcast if on is "on it's way" already Jul 14 18:10:08 the_alien: I can reproduce the error when I restart my phone Jul 14 18:10:16 if I kill the app and reload it, then it kind of works Jul 14 18:10:34 the_alien: nah, I've tested it with mine by putting in debug statements...the first one runs through, but thereafter it is kind of stuck and the broadcast isn't sent even though the previous one already completed Jul 14 18:13:07 herriojr: weird Jul 14 18:14:23 it takes a couple of seconds for it to get back to normal Jul 14 18:15:24 hmmm....is there a permission for sending email from a phone? I can't see one. Jul 14 18:15:33 internet? Jul 14 18:15:35 ;) Jul 14 18:16:22 herriojr: i guess the updateWidget just hasn't finished, so the new PendingIntent isn't bound to the buttons Jul 14 18:16:26 wild guess Jul 14 18:18:45 the_alien: I don't think that is it...the screen gets updated, and then I can't click the arrow anymore....if I wait a couple of seconds and then click it works again...one thing you'll notice is that the button isn't showing the "is being pressed" image when this is happening. Jul 14 18:25:47 herriojr: what is it you are developing? Jul 14 18:30:40 if i make the image view bigger, but not the actual image, does the image view is the clickable area or the image itself? Jul 14 18:44:00 If I give the user a list of contacts and they are checking off ones to invite, that would be a PICK activity, right? Jul 14 18:48:41 the_alien: so, if you make the ImageView bigger, if you use a nine-patch, it will stretch the image, but if not, it will just increase the clickable area Jul 14 18:48:53 the_alien: I have a couple things I'm developing actually Jul 14 18:49:10 nothing out yet, since we want to make sure everything is perfect before release Jul 14 18:49:52 no .9.png, it's just the forward backward buttons. increased the size of the image view by 2x to make the buttons better to hit Jul 14 18:50:08 a perfect... far from what i did i guess :D Jul 14 18:50:34 the_alien: well, you aim for perfect, but rarely ever achieve it, but as long as you aim for it, it should be good ;) Jul 14 18:51:06 how would I make a list footer? I've tried addFooter(), but that just throws a null pointer error Jul 14 18:51:24 herriojr: i know. working as a software developer for a few years now ;) Jul 14 18:52:59 here's a bug I found: http://pastebin.ca/1495004 Jul 14 18:53:46 herriojr, how is that a bug? Jul 14 18:53:51 well, a bug with Android Jul 14 18:54:06 the_alien: did you want to give me write access to your repository, or do you want me to submit patches to you Jul 14 18:54:12 not android, I was giving it to the_alien Jul 14 18:54:16 sorry :) Jul 14 18:54:30 ahh Jul 14 18:56:25 anyone know of a way to add a loading screen to a MapActivity? Jul 14 18:58:24 jasongornall: MapActivity? is that your own activity? Jul 14 18:58:46 no it is built in Jul 14 18:58:51 I want to create a loader screen Jul 14 18:58:53 I don't see it in the api list Jul 14 18:59:01 it is part of the google api Jul 14 18:59:07 I can't figure out how do you make application load another layout? Jul 14 18:59:10 Any tips Jul 14 18:59:20 com.google.android.maps.MapActivity Jul 14 19:00:33 EditAndroid edit = new EditAndroid(); i put this in main application class in put super.onCreate(savedInstanceState); Jul 14 19:00:33 setContentView(R.layout.edit); in oncreate method in edit class Jul 14 19:02:48 jasongornall: hmm, IDK, can you tell when whatever it is you are loading is done? Jul 14 19:04:13 haha that is exactly why I am posting Jul 14 19:04:17 I can't figure out how :) Jul 14 19:04:24 havn't u done the maps tutorial? lol Jul 14 19:04:29 hello mapview Jul 14 19:04:31 ah, so that's what you want to do Jul 14 19:04:35 no, I'm doing nothing with maps Jul 14 19:04:45 yuppers Jul 14 19:06:02 jasongornall, onCreate -> display loader, onStart -> close it ? Jul 14 19:06:21 exactly Jul 14 19:06:32 ohh wait Jul 14 19:06:35 thanks! Jul 14 19:08:18 herriojr: send me patches first :) Jul 14 19:08:36 np ;) Jul 14 19:08:38 can you inflate views which are not contained within your current layout? Jul 14 19:08:51 meanburrito920_: yes Jul 14 19:09:43 herriojr, because I am trying to inflate a footer view for use in my list activity, and it is inflating the view to a null value Jul 14 19:09:52 the footer view is in a different xml file Jul 14 19:10:04 never experienced that myself Jul 14 19:10:06 I'm using findByID Jul 14 19:10:14 but yeah, you can inflate to your hearts desire with layouts Jul 14 19:10:34 hm? Jul 14 19:10:50 herriojr, can you use relativeLayouts as footers? Jul 14 19:11:02 because addFooterView seems to only take a View Jul 14 19:11:11 but I want to have an icon and text Jul 14 19:11:13 meanburrito920_: a relativeLayout is a View Jul 14 19:11:27 herriojr, but It also fails to inflate :( Jul 14 19:11:31 meanburrito920_: look at its hierarchy Jul 14 19:11:35 *sigh* don't know how to make my widget better looking without need more space to add buttons and stuff Jul 14 19:11:52 herriojr, its the root layout of the xml file it is in Jul 14 19:12:12 the_alien: something I'd also suggest is making the time since your current time instead of the absolute time Jul 14 19:12:40 so like (3 days ago) instead of (July 11, 2009) Jul 14 19:12:48 you mean like "2 hours ago" and "Yesterday" Jul 14 19:12:55 the_alien: yes Jul 14 19:13:05 yeah Jul 14 19:13:33 meanburrito920_: I don't know exactly what you mean Jul 14 19:13:52 but i was talking about the layout. the people complain about to short images from users, or to small buttons, layout too big, etc Jul 14 19:14:17 had a look into the screenshots of the HTC widget. just the part that actually shows the image would be 4x3 Jul 14 19:14:19 MASSIVE Jul 14 19:14:34 yeah, I'm all for as small as possible Jul 14 19:14:38 I have an xml file, and all that is in it is a relative layout containing one text view and one image view. I want this layout to be the footer for a list view, but when I try and inflate it to set it as the footer, it throws null pointer errors Jul 14 19:14:58 I think you could probably get away with a smaller amount of space for the text, but you might want to try some user tests on that first Jul 14 19:15:22 meanburrito920_: can I get the error logs? Jul 14 19:15:44 meanburrito920_: maybe code w/ layout Jul 14 19:15:50 herriojr: thinking about doing another layout for 4x1 for those who like it short ;) Jul 14 19:16:03 the_alien: just have it as a configurable option :) Jul 14 19:16:15 thats the intention ;) Jul 14 19:16:30 after i fixed the remaining bugs. Jul 14 19:16:38 I'll submit a configuration screen for you after work Jul 14 19:16:38 do you own a g1 or a magic? Jul 14 19:16:44 the_alien: both Jul 14 19:16:51 tried it on the magic? Jul 14 19:17:04 the_alien: yeah, I use the magic as my main phone Jul 14 19:17:10 o really Jul 14 19:17:31 hm, frez had problems with contacts not being looked up and messages being empty Jul 14 19:17:39 don't get WHY Jul 14 19:18:13 cause all i do is a empty search in the sms/inbox Jul 14 19:18:18 I've delt a lot with contact stuff, so I can probably fix it for you Jul 14 19:18:21 *an Jul 14 19:18:34 but I have no issues with the contact lookup Jul 14 19:18:40 weird Jul 14 19:18:50 everything displays fine Jul 14 19:19:16 i should combine my two methods of looking up the contact Jul 14 19:19:19 anyways, I have some stuff I need to get done, so I'll talk to you later after work Jul 14 19:19:28 ok bye herriojr Jul 14 19:19:32 thanks for your support Jul 14 19:19:36 np ;) Jul 14 19:39:25 is there a easy way to throttle connection Jul 14 19:39:27 and test 56k Jul 14 19:39:34 and other slower connections Jul 14 19:39:41 jasongornall, you can do it with the emulator Jul 14 19:40:09 how? Jul 14 19:40:34 jasongornall, run configurations in eclipse Jul 14 19:40:41 ahhhh Jul 14 19:40:45 thanks! Jul 14 19:45:50 yawn Jul 14 19:46:10 long day, jasta ? Jul 14 19:47:37 If I wanted to simulate a slow connection Jul 14 19:47:44 would I lower Network latency Jul 14 19:47:47 or Network speed Jul 14 19:47:51 or both Jul 14 19:47:51 both Jul 14 19:48:36 I hate how long it takes for HttpClient to negotiate an SSL connection Jul 14 19:49:24 i agree. Jul 14 19:51:23 KNY: not really Jul 14 19:52:13 jasongornall: keep in mind that the throttling only works for public addresses. any of the local blocks (10.x, 172..., 192.168.x) won't throttle correctly Jul 14 20:05:41 is there a way to automate port forwarding to the emulator? i have two applications talking to each other, its annoying to use the emulator shell each time to open ports Jul 14 20:05:55 you can use adb Jul 14 20:06:13 and you can script adb to do it... Jul 14 20:06:26 that's what HierarchyViewer does btw Jul 14 20:08:03 In case anyone (like me) was waiting, full T&C for ADC2 have (finally) been posted: http://code.google.com/android/adc/adc2_terms.html Jul 14 20:08:18 argh of course :) thanks Jul 14 20:10:45 sigh, don't remind me :) Jul 14 20:12:49 this little bit of code is meant to call somebody - http://pastebin.com/me781fd5 Jul 14 20:12:54 or create a phone call Jul 14 20:13:02 obviously the third line is saying who to call Jul 14 20:13:07 however Jul 14 20:13:15 i would like something simpler - like enter a specific number here Jul 14 20:13:20 or an entry from the contact list Jul 14 20:14:52 so I asked this question early Jul 14 20:15:03 jasongornall my q? Jul 14 20:15:08 earlier* Jul 14 20:15:27 Is there a function that is like onLoad Jul 14 20:15:34 or onLoadedFromInternet Jul 14 20:15:34 oh Jul 14 20:15:38 AndyArmstrong, I don't see how it gets any simpler than that Jul 14 20:15:50 well, the third line is my issue Jul 14 20:15:59 cos this is taken off the net i dont quite understand what needs to go in here Jul 14 20:16:04 it needs to be a Uri reference Jul 14 20:16:10 probably to a phone book entry? Jul 14 20:16:14 but i dont see how to pick which one Jul 14 20:16:27 you query for it Jul 14 20:16:33 using a content resolver? Jul 14 20:16:36 could anyone help me with this error? Couldn't launch the emulator! Make sure the SDK directory is properly setup and the emulator is not missing. Jul 14 20:16:47 Ryan__ you need to point ur eclipse to it Jul 14 20:16:55 yeah it is under prefernces Jul 14 20:16:56 go to preferences, then android on the left Jul 14 20:17:22 my sdk location is set up Jul 14 20:17:30 i had this working before Jul 14 20:17:37 is it a new workspace? Jul 14 20:17:42 and then I recently ran the debug on a real phone Jul 14 20:17:42 u have to do it for every one Jul 14 20:17:45 and now it doesn't work Jul 14 20:18:29 and this is not a new workspace Jul 14 20:18:33 KNY - could i not just do setData("tel:07771330510"); Jul 14 20:18:53 AndyArmstrong, try it and see Jul 14 20:19:08 also, what is DIAL_ACTION ? Jul 14 20:19:55 i dont know - i am trying to make a phone call, which i believe this is how u do it Jul 14 20:20:03 ur meant to fire a DIAL_ACTION intent Jul 14 20:20:13 should it be com.android.intent.DIAL_ACTION? Jul 14 20:20:23 Intent.ACTION_DIAL or Intent.ACTION_CALL Jul 14 20:20:29 ok ty Jul 14 20:20:40 yeah setData(my exmaple) doesnt work, cos it needs to be a Uri Jul 14 20:20:53 but i dont understand how to get my Uri , you say query, but i dont know what or how to query Jul 14 20:24:00 says Intent.ACTION_DIAL could not be found Jul 14 20:24:03 no activity with that name Jul 14 20:24:10 do i need to declare it in the manifest Jul 14 20:24:10 ? Jul 14 20:24:22 is there a separate channel for this? Jul 14 20:26:08 kRutOn, for what? #android-beginners ? :) Jul 14 20:26:27 AndyArmstrong, no. That means you did it wrong. Jul 14 20:26:46 AndyArmstrong, you don't know how to get a Uri? Did you read the docs for Uri? Jul 14 20:27:46 that means i did it wrong, how many ways are there to get intent.setAction("Intent.ACTION_CALL"); Jul 14 20:27:47 wrong Jul 14 20:28:04 at least one, apparently Jul 14 20:28:15 have you thought that maybe Intent.ACTION_CALL is a string constant? Jul 14 20:28:25 intent.setAction(Intent.ACTION_CALL); Jul 14 20:28:47 man, I'm salty today. I blame this stupid bug. Jul 14 20:30:17 ahhh i see Jul 14 20:30:20 no i hadnt thought of that Jul 14 20:30:24 fixed the issue tho Jul 14 20:30:30 right so i looked up the docs for Uri Jul 14 20:30:39 i understand what a uri is Jul 14 20:30:51 but it didnt enlighten how i get hold of the uri object for a specific person! Jul 14 20:31:05 re: could i not just do setData("tel:07771330510"); Jul 14 20:31:13 you don't see any method on Uri that would help you with that? Jul 14 20:32:39 not really, Uri.Builder perhaps Jul 14 20:34:07 really? you don't see a way to parse that into a Uri? Jul 14 20:34:42 we are looking here right http://developer.android.com/reference/android/net/Uri.html#buildUpon() Jul 14 20:35:05 yes Jul 14 20:35:15 try looking through the method list Jul 14 20:35:49 fromParts("tel:","07771330510",null)? Jul 14 20:35:50 question: is there a way to hint android that an EditText is for email so the soft keyboard can facilitate the user for entering an email (like showing @ and .com buttons)? Jul 14 20:36:04 *sigh* why do all people think "shows messages on the home screen" means "you can reply to a message from the homescreen" and rate it bad :/ Jul 14 20:37:30 :P Jul 14 20:37:44 I rate it 5 stars alien :) Jul 14 20:37:53 maannj, do not crosspost your questions. Jul 14 20:38:25 frez: i made a version with catchall. would you mind being a beta tester? Jul 14 20:38:27 sorry but I just noticed the other has as twice as members here Jul 14 20:38:33 the_alien: sure thing Jul 14 20:38:33 AndyArmstrong, how the hell did you find fromParts() but not parse() ? Jul 14 20:38:39 lmao Jul 14 20:38:44 maannj, what does that have to do with anything? Jul 14 20:38:58 omfg lol Jul 14 20:39:01 #ubuntu has even more users--maybe you should go ask in there as well Jul 14 20:39:22 don't forget #eclipse ;) Jul 14 20:39:41 KNY: huh ? the other room is android too. it's just I chose the the wrong room ? Jul 14 20:40:10 maannj, no, it's that you cross-posted to both after you decided you had waited long enough in here Jul 14 20:40:20 sorry, cross-posted in a huge pet peeve of mine Jul 14 20:40:24 cross-posting* Jul 14 20:40:40 KNY: nope check times, I sent immediately after I noticed the other one is more active Jul 14 20:41:03 frez: mailed it Jul 14 20:41:13 either way, it's still the wrong channel. Number of users or activity have nothing to do with where you should ask your question Jul 14 20:41:25 the_alien: I'll install it right away Jul 14 20:41:27 frez: would be great if you try to reproduce your error Jul 14 20:41:51 will do Jul 14 20:42:42 ok, be back in 40 minutes Jul 14 20:42:49 + i'll Jul 14 20:52:44 riddle me this: http://pastebin.com/d2e3b743d why doesn't the button show up? Jul 14 20:53:19 whaledawg, because the ListView is taking up the entire parent like you told it to Jul 14 20:54:02 whaledawg, try setting layout_weight="1" on the ListView Jul 14 20:54:55 make sure to set the dimension along which weight is applied to 0dp as well. Jul 14 20:55:05 why the hell would it do what I told it to? ;) Jul 14 20:55:29 that worked perfect KNY, ty Jul 14 20:55:49 and notice I didn't cross post it Jul 14 20:56:07 except into #ubuntu but they have a lot of peeps in there Jul 14 20:56:44 whaledawg, yeah, I hope you got #freenode too Jul 14 20:56:56 jasta, why do you need to do that? Jul 14 20:57:49 KNY: it's an optimization which tells LinearLayout to never try to measure that child. Jul 14 20:57:56 measuring it is pointless Jul 14 20:58:09 jasta, interesting. Looks like I have some code that can be optimized then.. Jul 14 20:58:11 woohoo Jul 14 20:58:18 it's a very small optimization :) Jul 14 20:58:26 every bit counts, right? Jul 14 20:59:10 When I'm passing 'this' to imageadapter for gallery view how do i access array list from it? Jul 14 20:59:11 I'll fix it when I convert some of my nested linearlayouts (:x) to relativelayout Jul 14 20:59:25 As in I want to pass array list to image view Jul 14 21:23:09 blerg. I'm trying to get this thing running: http://www.anddev.org/doing_http_post_with_android-t492.html but some of the imports can't be resolved Jul 14 21:23:47 namely android.net.http.EventHandler; android.net.http.Headers; and android.net.http.RequestQueue; Jul 14 21:24:33 And since Google has trained me to be dependant on Eclipse I have no idea where to look to fix the problem Jul 14 21:25:21 :\ Jul 14 21:25:30 bear in mind that some of these may be a little out of date Jul 14 21:25:46 the nice thing about eclipse is that you can hit Ctrl-space on a classname and it will attempt to resolve it Jul 14 21:26:33 oh yeah, this is probably for like r0.9 or something Jul 14 21:26:38 jan 10 2008 Jul 14 21:26:43 hell this could be the earlier one Jul 14 21:27:02 http://developer.android.com/reference/packages.html Jul 14 21:28:13 hmm..according to that there's only SSLCertificate and it's helper in that package Jul 14 21:28:24 yeah, a lot has changed in the layout Jul 14 21:29:47 http://developer.android.com/reference/org/apache/http/client/methods/HttpPost.html Jul 14 21:29:50 I dunno, try that? Jul 14 21:30:03 where can I view the LinearLayout.java ? I don't know how to find it in git http://android.git.kernel.org/ Jul 14 21:30:30 alternately, http://www.anddev.org/http_post_connection_in_sdk-10-t2970.html Jul 14 21:30:32 in frameworks/base/core/java. Jul 14 21:30:44 looks like that's the updated tutorial Jul 14 21:32:50 thx Jul 14 21:36:44 The updated tutorial requires reading and thought Jul 14 21:36:48 I hate that :( Jul 14 21:39:04 I hear you can just put a TTS on it and set it for infinite repeat while you're sleeping Jul 14 21:39:28 Although you might wake up saying 'ommelette du fromage' Jul 14 21:39:48 -m Jul 14 21:43:29 :< Jul 14 21:43:39 non. Jul 14 21:47:44 anybody know all the language differences between java in android vs java in j2se? for example, java in android seems to allow nested interfaces and inner classes in methods. Jul 14 21:48:59 nivya: it's the same language Jul 14 21:49:05 Android uses the standard java compiler Jul 14 21:49:44 It's the same language, but some I think what he wants to know is what the difference is in libraries. Jul 14 21:50:18 It's confusing since the language/platform/library are all called Java Jul 14 21:51:48 romainguy - can you please advise me on turning on the bluetooth using code Jul 14 21:51:59 I have no idea on how to do that Jul 14 21:52:07 nobody does... Jul 14 21:58:17 anyone do their android development from the commandline? Jul 14 21:58:28 building the apk building from the commandline Jul 14 21:58:40 trying to figure how to get it running on an attached device Jul 14 22:00:17 ewon: just build it with ant or whatever you'd like and run adb install Jul 14 22:01:22 jasta: score, thanks Jul 14 22:13:28 if I want to use File.makeTempFile(), what should I put as the directory it stores it in? Jul 14 22:23:08 what is the best way to cache images from over the network? Jul 14 22:23:30 I was caching them as drawables for the longest time, but that cause numerous memory overflow issues Jul 14 22:23:52 so now I'm trying to store them as temp files on the hard disk, but that is proving to be quite slow. Jul 14 22:29:36 AndyArmstrong: Have you considered trying to contact the guys who put those free bluetooth switch apps up on the market? They could probably share their code freely Jul 14 22:34:58 whaledawg yeah probably should do it Jul 14 22:43:28 has anyone in here worked with CacheManager before and therefore knows what to put for the default headers in getCachedFile Jul 14 22:43:41 hmm, I've worked out that onLocationChanged(Location location) in ,my LocationObserver isn't being called :( Jul 14 22:44:42 onStatusChanged(String provider, int status, Bundle extras) is however Jul 14 22:53:59 hi its my first time Jul 14 22:57:44 so, i am running into a wierd error, can i just paste the exception here? Jul 14 23:00:19 Chanh_: probably better in a pastebin Jul 14 23:00:27 kk Jul 14 23:00:40 Chanh_: use pastebin Jul 14 23:03:45 I'm trying to use CacheManager, but for some reason it isnt creating its internal database. It claims that the init() method, which creates the internal db, should be handled by WebView, but I don't use WebView at all, so I'm a bit confused. Jul 14 23:05:43 how do I write something to the console while I'm testing? Jul 14 23:06:21 Log.d("myTag", debugMessage); Jul 14 23:06:30 oh nvm, you said console Jul 14 23:07:47 whaledawg, you dont log to the console Jul 14 23:08:01 you can log to a log file on the device and view it on the console with logcat though Jul 14 23:08:23 got to your android sdk, and in the tools/ folder, execute ./adb logcat Jul 14 23:08:35 or view it in eclipse, or ddms Jul 14 23:08:43 and it is effectively the same as tailing a log file Jul 14 23:08:49 or what zhobbs_ said Jul 14 23:08:52 so there's no way to write to console? Jul 14 23:08:57 not directly Jul 14 23:09:08 THIS PLACE IS A PRISON!!!! Jul 14 23:09:27 because you are saying "I want to take a device and have it write to the terminal of a completely seperate device/piece of hardware" Jul 14 23:09:31 it doesnt make sense Jul 14 23:09:37 whaledawg, how is it a prison? Jul 14 23:09:48 the emulator is its own device Jul 14 23:09:50 In eclipse, if you go to Window > Show View > Other > Android > Log Cat, it's pretty much a console that prints out whatever you put into Log.d(tag, message); Jul 14 23:10:10 mean: I'm mostly kidding Jul 14 23:10:29 but allowing me to write to console would allow me to see what was happening in real time Jul 14 23:10:38 it's just a way to speed up the process Jul 14 23:11:22 whaledawg LogCat acts as a console and will update in real time. Just use Log.d(tag, message) instead of System.out.println(message); Jul 14 23:12:50 whaledawg, if you want console, look at using adb, as per my earlier instructions :) Jul 14 23:12:56 it is effectively what you want Jul 14 23:12:58 try it Jul 14 23:13:22 One day I'll wean myself off eclipse and then I will Jul 14 23:13:46 I already feel the shame of someone who regularly types in something other than vim Jul 14 23:13:48 whaledawg, if you want eclipse, follow everyone elses instructions and use LogCat from inside eclipse Jul 14 23:14:06 whaledawg, you forgot emacs :) Jul 14 23:14:55 whaledawg, in the lower left hand corner of eclipse, there is a button that looks like a window with a plus on it. Jul 14 23:14:57 click on it Jul 14 23:15:06 I'll never forget emacs, it's like Macho Grande ;) Jul 14 23:15:07 then click the More... option, or whatever it says Jul 14 23:15:19 and then under Android select Logcat Jul 14 23:15:49 whaledawg, emacs is like heaven. not everyone gets there, bue those that do live in bliss Jul 14 23:16:03 perfect mean, thank you Jul 14 23:16:31 heaven may have better weather but the company is better in hell ;) Jul 14 23:17:18 gd it Jul 14 23:17:28 it was a stupid permission error Jul 14 23:19:51 So my problem is, when I try to pop open a dialog I get this error http://pastebin.com/d74fd5de9 Jul 14 23:20:30 i have tried 3 different ways to populate my spinner Jul 14 23:20:36 but for the life of me i cannot get it to work Jul 14 23:20:53 if anyone knows of a WORKING example on the net it would be great if you could provide a link Jul 14 23:20:59 what kind of spinner Jul 14 23:21:08 just a simple dropdown Jul 14 23:21:22 Does anyone know of an alternative to CacheManager? Jul 14 23:22:01 I have tried using adapters with xml, with a cursor filled from a database and just plain old .add("item1") Jul 14 23:22:04 nothing seems to work Jul 14 23:23:43 anyway, i have to head out for a bit but if anyone has a decent working example feel free to private message it to me, thanks Jul 14 23:41:07 hey, so dx --dump should be able to dump a classes.dex file, right? Jul 15 00:12:05 what does it mean if android throws an error saying I leaked PhoneWindow$DecorView, when this is an android property, and not even my code? Jul 15 00:22:19 did you get a reference to it? Jul 15 00:26:54 sounds like you're not properly closing a dialog or a popup window Jul 15 00:31:51 My activity spanws off a child thread to recieve network messages (using Handler). However, this child thread isn't killed when the activity is stopped, so when I restart the activity, another child thread is created and I get double the messages. How do I kill these child threads? Jul 15 00:32:29 sup Jul 15 00:32:35 oooo Jul 15 00:32:39 lol Jul 15 00:32:48 sounds like an annoying problem ive had in the past Jul 15 00:33:18 can you kill the activity in ondestroy? Jul 15 00:33:22 or have you tried? Jul 15 00:33:36 have the activity tell the thread that it's got to stop (through a properly synchronized shared variable), and have the thread check for that variable whenever it makes sense. Jul 15 00:33:56 hm i'll give that a try Jul 15 00:34:18 i don't know how to kill an activity though titefuzz, so i'll try the other suggestion first Jul 15 00:34:24 thread.stop? Jul 15 00:34:54 I use that kind of technique in the download manager, IIRC. Jul 15 00:34:56 although you problem may be to complex for a simple thread.stop Jul 15 00:35:02 your* Jul 15 00:35:11 oh yeah i tried that and it yells at me saying Deprecated Thread methods are not supported Jul 15 00:35:25 yeah don't use Thread.stop() Jul 15 00:35:35 yeah, thread.stop is dangerous (source of deadlocks if you kill a thread while it holds a lock) Jul 15 00:35:42 ah yeah Jul 15 00:37:22 what's the command for the child thread to stop itself Jul 15 00:38:18 I'd tend to try to make it return from its run() function, but that's just me. Jul 15 00:38:25 i see Jul 15 00:38:30 yay for volatile booleans :p Jul 15 00:39:00 Does Dalvik associate daemon threads with the activity that spawns them Jul 15 00:39:26 nope - dalvik doesn't know about activities. Jul 15 00:39:45 so daemon would only help when all the activities in a task stop Jul 15 00:40:39 it depends on what you want to do. Typically, if you have some background processing to do independently of the UI, you want to tie it to a service, not to activities. Jul 15 00:40:58 jbq: Are you in charge of backporting fixes from master to the various branches now or is it kind of spread around? Jul 15 00:41:09 I'm in charge. Jul 15 00:41:56 The buck stops here... er, there. Jul 15 00:42:00 jbq it worked thanks! Jul 15 00:42:07 so anyone a ble to help me out with populating a spinner view? Jul 15 00:42:21 Chanh_: no prob, glad I could help. Jul 15 00:43:04 kRutOn: right now I'm also trying to simplify the steps to build on dream. I'm tired of the complexity. Jul 15 00:43:10 jbq: Is there anything external contributors can do with gerrit to make your job easier? Tags.. Jul 15 00:43:36 Or do you just have to read the descriptions in each change Jul 15 00:44:07 kRutOn: well, my biggest issue is related to conflicts in OpenCORE. There's little chance that anyone other than packetVideo themselves can resolve that. Jul 15 00:44:09 And google Code issues <-> Gerrit mappings.. Jul 15 00:44:52 That'd be nice. We're missing some integration between gerrit and bug databases :( Jul 15 00:45:45 I don't know if Gerrit strives to be bug tracker agnostic. Jul 15 00:46:16 I just thought committed changes would be easier to scan if they had a [BUG], [ENH], etc. tags next to them Jul 15 00:46:22 The core probably wants to be, but if it's got a pluggable way for individual deployments to talk to a bug db, I guess that'd be fine. Jul 15 00:47:05 Anyway, I mostly trust that the reviewers did their job well, so I really get involved when there are merge conflicts. Jul 15 00:47:37 Yeah, I was just thinking about merging to branches Jul 15 00:48:27 I don't personally backport changes, actually. I try to only port forward, so I don't have to make those decisions. It's really up to reviewers to decide whether a change proposed in one codeline would make sense for an older one. Jul 15 00:48:48 we sometimes handpick changes back from open master to the current dev branch Jul 15 00:48:54 but it's more the exception than the rule Jul 15 00:49:28 Does that mostly still take place internally and get smashed into a generic message in git? Jul 15 00:49:35 I'm trying to make that process smoother (and easier for me, as I'm lazy), but I need buy-in from quite a few people. Jul 15 00:50:54 kRutOn: for my work, I try to preserve individual commits as much as I possibly can. Jul 15 00:51:10 (because git handles small commits much much better, as do humans) Jul 15 00:51:54 jbq: Do you have a blog that the community can connect with? I'd like to help where I can, but I might not catch the chatter on IRC. Jul 15 00:51:58 SNR low Jul 15 00:52:24 what? low SNR on IRC? Lies! Jul 15 00:52:33 (and it just got lower...) Jul 15 00:52:54 no blog at the moment, no. Once I catch up with a bunch of backlog and once the process gets cleared up, I might post a bit more on android-platform. Jul 15 00:55:36 Cool. Jul 15 00:57:26 Right now I'm keeping my head down making sure that the various codelines contain what they're supposed to (and I'm dealing with 6 codelines so it can get messy). Thanks $DEITY we're using git, so we can track merges back and forth between our internal server and the external one. Jul 15 01:11:58 jbq: ugh, i'm in my own merge hell :) Jul 15 01:12:07 trying to rebase as we discussed earlier Jul 15 01:12:38 ah, yeah. I can imagine it not being easy. Jul 15 01:21:29 Is there a way to cache the tiles for a MapView for some arbitrary area? i.e. specify how large of an area to cache map tiles for and at what location? Jul 15 01:28:10 (I'm new to IRC, so let me know if I'm asking the question correctly :)) Jul 15 01:28:36 torbinsky, you are, I just don't know the answer :) Someone else might, though Jul 15 01:28:48 okay, thanks Jul 15 01:28:52 torbinsky, you could also try the android-developers google group Jul 15 01:29:02 will do, thanks again Jul 15 01:38:04 torbinsky: I don't think you can change the cache parameters with any of the public API Jul 15 01:39:10 shoot, I had a feeling it might be something like that Jul 15 01:39:40 torbinsky: There's only preload() whcich loads the currently centered position Jul 15 01:39:46 .preLoad() Jul 15 01:40:14 kRutOn: it would be nice to specify an arbitrary area to cache for cases when data is not available (like traveling in low coverage areas) Jul 15 01:40:26 kRutOn: thanks though :) Jul 15 01:50:36 why is it that a binded service cannot print debug statements? Jul 15 01:50:55 nvm, I think someone did something stupid Jul 15 02:30:24 anyone tried passing arrays through parcelables? Jul 15 02:40:29 anyone know how to convert a byte[] to a File object without putting it on the file system? Jul 15 02:44:53 can somebody help me figure out why my theme isn't working? Jul 15 02:45:27 ive made a style with an android:textAppearance item that points to my style with parent @android:style/TextAppearance Jul 15 02:45:40 and that contains a textSize, textColor, and textStyle Jul 15 02:45:44 but it doesn't seem to be taking effect Jul 15 02:45:54 i set the style app wide in the manifest Jul 15 02:53:08 argh, typo! Jul 15 02:54:08 should the cache hint for my scrollview be the same color as the background? Jul 15 02:57:05 has anyone dealt with passing an aidl interface as a parameter of a function to another aidl? Jul 15 02:57:42 I'm essentially trying to allow a callback once the process completes, and for some reason, sometimes it isn't properly accessing the callback class Jul 15 02:57:58 well, crap, it's late, so I'm going home Jul 15 02:58:00 nvm Jul 15 02:58:03 I'll ask tomorrow **** ENDING LOGGING AT Wed Jul 15 02:59:57 2009