**** BEGIN LOGGING AT Mon Jul 06 02:59:56 2009 Jul 06 03:01:31 you don't want to set window attributes in code in general. many of them will not take effect until after an initial screen has been presented to the user, causing a slight jarring effect. Jul 06 03:01:39 setting them through the theme, however, will not do this Jul 06 03:02:51 <_YOYO> i use LatinIME, after pressing a key, wait 3 or 4 seconds, then it gives a bubble, sometimes no bubble appears, finally it inputs a char into the textbox Jul 06 03:03:26 jasta: That works perfectly, and thanks for the advice ^^ Jul 06 03:11:44 <_YOYO> android double buffer needs driver's dma mechanism? Jul 06 03:19:34 Im trying to put an mp3 on my "sd" card (for testing) using: Jul 06 03:19:34 adb push "01 Graffiti Eyes.mp3" \sd.img Jul 06 03:19:34 but I get an error: "Read-only File System" Jul 06 03:20:29 any thoughts on pushing my data to the sd card? Jul 06 03:21:45 <_YOYO> adb remount Jul 06 03:22:05 same Jul 06 03:22:18 is my emu supposed to be up and running while doing this push? Jul 06 03:22:51 <_YOYO> run mount to see the fs is ro Jul 06 03:24:23 in adb or filesystem? I'm running Windows. Jul 06 03:25:30 <_YOYO> adb shell, then mount Jul 06 03:27:02 rootfs its the only ro Jul 06 03:29:20 <_YOYO> remount to rw Jul 06 03:29:58 ahh I got it... Jul 06 03:30:01 D:\android-sdk-windows-1.5_r2\tools>adb push "D:\android-sdk-windows-1.5_r2\tool Jul 06 03:30:01 s\01 Graffiti Eyes.mp3" /sdcard/song1.mp3 Jul 06 04:15:39 hey jasta - pm? Jul 06 04:24:50 is there a way to save the emu state so it doesn't take as long to boot? Jul 06 04:26:03 brombomb: just don't reboot it. Jul 06 04:26:36 there's no reason to unless you're doing framework development Jul 06 04:30:29 ahhh ok Jul 06 04:30:32 thanks Jul 06 05:38:43 Hey, does anyone here know if it's possible to unlock a AndroidG1 outside of the US? Jul 06 05:38:49 I'm in New Zealand atm Jul 06 05:39:28 I would prefer to not pay 600$ for a pre-unlocked phone ^_^ Jul 06 05:40:56 anyone alive in here? Jul 06 05:51:54 Tristan[]: call your US-based carrier and ask them Jul 06 05:51:59 tell them youre out of the country Jul 06 06:00:10 jasta: I don't have an Android yet, I live in New Zealand Jul 06 06:00:32 jasta: I'm looking into seeing if the phone can be unlocked to use here Jul 06 06:02:23 anyone knows why the gps icon doesn't go away after i quit my app? Jul 06 06:09:29 Tristan[]: the locked phones sold in the US and elsewhere are subsidized through a 2 year contract to bring the price down Jul 06 06:09:49 Tristan[]: that is just financing -- the actual phone is not any cheaper. Jul 06 06:10:13 so you have to pay full price if local carriers in new zealand won't subsidize it. Jul 06 07:41:52 hi Jul 06 07:46:49 is it possible for a searchable activity to be within a tab ? Jul 06 07:47:03 when I run search, I get an exception : is your activity displayed? Jul 06 07:54:59 anyone ? Jul 06 08:22:48 made my main activity call the searchmanager, everything is okay Jul 06 08:34:47 morning all, is it considered ok to catch exceptions ? or is it bad programming ? Jul 06 08:40:02 lame question from a java noob: how do you create an array which size can be extended later ? Jul 06 08:46:54 ArrayList Jul 06 08:46:56 .add Jul 06 08:47:00 to.Array() Jul 06 08:47:05 at the end Jul 06 08:47:21 or normal list Jul 06 08:47:24 not sure atm Jul 06 08:53:57 thanks Jul 06 08:55:19 how can I get a reference to the activity displayed in a Tab from my main activity which is displaying the tabwidget ? Jul 06 09:12:01 if I keep a reference to my TabSpec, and call setContent(this, OtherActivity.class) on it later on, nothing happens Jul 06 09:12:36 if I change to another tab, then I switch back to my original tabs, the OtherActivity is loaded there, but it's view is mangled with the old tab view Jul 06 09:14:57 any pointer? Jul 06 09:42:08 is there any other irc channels with developers awake ? :) Jul 06 09:42:26 perhaps #android Jul 06 09:42:42 i didnt even know you could embed an activity in a tab Jul 06 09:42:48 i assumed they were always fullscreen htings Jul 06 09:43:01 wmealing_: you can with new TabSpec.setContent() Jul 06 09:43:10 * wmealing_ reads Jul 06 09:43:33 nice Jul 06 09:43:47 give me a moment Jul 06 09:43:50 api demos uses it Jul 06 09:45:26 is the problem that its mangled Jul 06 09:46:24 ? Jul 06 09:47:42 not anymore, I changed my approach Jul 06 09:47:51 from my main activity (A) which displays the tabhost Jul 06 09:48:04 I'm trying to replace the content of one of the Tab Jul 06 09:48:16 so I'm trying to access the Activity running in this tab Jul 06 09:48:24 this is where I'm stuck Jul 06 09:48:53 oh Jul 06 09:48:55 hold on Jul 06 09:49:41 working ! Jul 06 09:49:45 winner ! Jul 06 09:49:54 but damn ugly :)) Jul 06 09:52:15 I'm doing mTabHost.getTabContentView.getChildAt(mTabHost.getCurrentTab()).getContext() Jul 06 09:52:29 which give me my activity from the tab Jul 06 10:00:20 <_Auron_> when you compile and run an app directly to a device, what kind of hook or link does it have to adb or the debugger when run right after a compile? (not in debug run, just regular) Jul 06 10:45:51 hi Jul 06 13:56:59 To game developers: IndieGameMusic.com now offers a list of latest additions in RSS form: http://indiegamemusic.com/gdrss.php Jul 06 14:30:59 hi can anyone help me, i am trying to disable the phone orientation stuff so when somebody rotates their fone in my app it doesnt screw everything up Jul 06 14:31:42 AndyArmstrong: you can force orentation in the AndroidManifest.xml Jul 06 14:31:48 orientation* Jul 06 14:32:55 oh wow Jul 06 14:33:00 any ideas what the line is Jul 06 14:33:08 that i need to add Jul 06 14:33:14 uh Jul 06 14:33:15 hold on Jul 06 14:33:34 cheers man Jul 06 14:33:38 AndyArmstrong: go to the applications tab Jul 06 14:33:44 application* Jul 06 14:33:57 applications tab Jul 06 14:34:09 in the android manifest Jul 06 14:34:42 i dont see that mate, am in themanifest view Jul 06 14:34:50 add uses permission or permission tree Jul 06 14:35:34 android:screenOrientation="portrait" Jul 06 14:35:39 well, thats what you need to add Jul 06 14:35:54 is that in the layout main.xml file Jul 06 14:35:56 or the manifest Jul 06 14:36:02 manifest Jul 06 14:36:20 android:label="@string/app_name" android:screenOrientation="portrait"> Jul 06 14:36:39 ahh right Jul 06 14:36:41 outstanding Jul 06 14:36:43 thanks mate Jul 06 14:37:31 np Jul 06 14:39:01 hmmm Jul 06 14:39:02 Jul 06 14:39:02 android:label="@string/app_name"> Jul 06 14:39:02 android:screenOrientation="portrait" Jul 06 14:39:02 Jul 06 14:39:03 Jul 06 14:39:05 Jul 06 14:39:07 Jul 06 14:39:09 Jul 06 14:39:11 Jul 06 14:39:12 argh abort Jul 06 14:39:13 abort Jul 06 14:39:13 thats what i have Jul 06 14:39:16 use a pastebin Jul 06 14:39:17 yet it still allows the screen to be orientated horizontal Jul 06 14:39:19 lmao sorry Jul 06 14:39:33 yeah uh Jul 06 14:39:37 android:label="@string/app_name"> Jul 06 14:39:39 see the > ? Jul 06 14:39:44 that means that closed the activity tab Jul 06 14:39:50 you should have gotten a compile error tbh Jul 06 14:39:57 oo ok Jul 06 14:40:01 put the on the next line Jul 06 14:40:15 wtf Jul 06 14:40:18 yeah, sec Jul 06 14:40:32 ever time a add a edittext in my widget it says problem loading widget Jul 06 14:40:36 every Jul 06 14:40:49 yaaay, thats it - thanks vol_ and AakashPatel ive been wanting that for ages and nobody knew! Jul 06 14:41:02 we knew ;D Jul 06 14:41:08 * AakashPatel is all knowing :D Jul 06 14:42:03 vol_: you know how to make it so that when i have an edittext field that it opens the number pad IME instaed of the full keyboard one? Jul 06 14:42:57 hit it with your dong, I dunno. Jul 06 14:43:15 lolll Jul 06 14:43:53 * AakashPatel dong smashed the phone Jul 06 14:44:02 damn son. Jul 06 14:45:57 wtf Jul 06 14:46:00 damn widget Jul 06 14:46:21 * AakashPatel wonders how the fuck the search widget works Jul 06 14:48:29 wtf....edittext isnt part of appwidget Jul 06 14:48:38 :| Jul 06 14:49:27 omg im so excited Jul 06 14:49:30 im releasing my app Jul 06 14:49:33 like in a couple of minutes! Jul 06 14:49:39 where can i get people to do reviews for me Jul 06 14:49:44 the intertubes Jul 06 14:49:56 alternately, wait for comments on the market from the dumbest people in the world Jul 06 14:50:05 I can take a look at the app if you want. Jul 06 14:50:07 intertubes is a joke right Jul 06 14:50:10 cheers, vol Jul 06 14:50:14 im releasing it on market for 0.99 Jul 06 14:50:16 it is a SERIES of intertubes. Jul 06 14:50:20 but how can i giv it to u Jul 06 14:50:26 just email me the apk Jul 06 14:50:28 for free, in order for u to giv it a rating + proper review Jul 06 14:50:33 oh Jul 06 14:50:36 but u cannot giv a reivew right? Jul 06 14:50:40 yeah no, I can't review it on the market w/o buying it Jul 06 14:50:44 I was just saying I can give it a look over Jul 06 14:50:46 dam thats a pest Jul 06 14:50:49 alright sure Jul 06 14:50:52 and let you know if I noticed something horrid Jul 06 14:50:53 ill email u it right now Jul 06 14:50:55 whats ur address Jul 06 14:51:05 sent by msg Jul 06 14:51:20 gimme gimme gimme Jul 06 14:51:25 lols Jul 06 14:52:54 bleh Jul 06 14:53:02 this widget idea isnt gonna be sucessful Jul 06 14:56:48 what idea Jul 06 14:59:54 I have a Dialog with a singleChoiceList, from onPrepareDialog, I'd like to make sure that the first item is checked Jul 06 15:00:11 and avoid the caching feature, where last picked up item get selected in a new dialog Jul 06 15:00:18 for object sizes, is "dp" the same as "dip"? I've seen both mentioned and seem to imply they do the same Jul 06 15:00:38 any neat way to do this ? I'm playing with hierarchyviewer to try to reach the checkboxes, but it seems pretty lame Jul 06 15:00:47 doc_savage: it's the same Jul 06 15:01:00 thanks didou :) Jul 06 15:01:10 The compiler accepts both "dip" and "dp", though "dp" is more consistent with "sp". Jul 06 15:01:20 http://developer.android.com/guide/topics/resources/available-resources.html Jul 06 15:03:01 cool, reading now, thx Jul 06 15:03:23 did anyone else get some email from this chinese company? Jul 06 15:03:40 about translating your app or some shit Jul 06 15:04:23 AakashPatel: I heard a bit about that a while ago, if you paste a bit of the email into google, there should be a google groups result with info ;) Jul 06 15:05:11 oka ylol Jul 06 15:05:27 Aakash, I got it Jul 06 15:05:39 is it legit? Jul 06 15:06:06 seems like I need my own layout for singleChoiceList Jul 06 15:06:11 from what I gathered, they're going to translate it anyway (if they haven't already), with or without your permission, but they're giving you the chance to agree - but I haven't received it myself, but I have no apps out yet Jul 06 15:06:45 i just ignored it Jul 06 15:07:13 This last email was rather detailed, "Just send us your strings.xml" was the gist of it. Jul 06 15:07:23 yea Jul 06 15:07:50 AakashPatel: yeah probably best, stuff I read seems to implied they'd already translated without permission, and then asked for permission from the authors, and they're selling the apps on their own private market Jul 06 15:07:52 which sounds harmless enough Jul 06 15:08:21 black market Jul 06 15:08:23 !!! Jul 06 15:08:24 although this could be a separate "firm" Jul 06 15:08:25 woo Jul 06 15:08:27 lol Jul 06 15:09:07 lol yeah, I wouldn't trust it myself, mostly because I can't read chinese so have no idea what would be going on over there Jul 06 15:11:56 by saying "yes" you're probably agreeing to give them a lot of money and/or give them permission to sell it Jul 06 15:13:47 * doc_savage is very confused with widget sizes/backgrounds Jul 06 15:27:20 morning romain Jul 06 15:50:13 stupid net Jul 06 15:52:52 did my question get sent b4 my net dropped? Jul 06 15:54:32 nope Jul 06 16:07:54 ugh... net keeps dropping Jul 06 16:08:12 BeBoo_: we didn't get your question Jul 06 16:10:58 sorry Jul 06 16:11:00 when using URLConnection, is there any way to see what code was returned from the server (like 200 means OK, 503 is Service Unavailable, etc) Jul 06 16:11:59 the reason i need this code is apparently the server I am scraping is having issues and returning "503 Service Unavailable" and i'd like to put up an error that the server is busy and to try later or something Jul 06 16:14:04 i'd kill myself if i had his connection Jul 06 16:14:14 BeBoo_: use HttpClient. Jul 06 16:14:26 our ISP is fixing it Jul 06 16:14:45 jasta: i'll look into that, thanks Jul 06 16:16:20 thats perfect, it throws a response exception if it's not 2xx Jul 06 16:16:40 trust me, you want HttpClient. Jul 06 16:25:27 seems a lot easier to use too... just .getText instead of using buffers and whatnot Jul 06 16:25:41 thanks =] Jul 06 16:26:02 err. getData() Jul 06 16:26:11 hi all. does anyone noticed a scoll list is really jerky when a background image is applied. any ideas on improving preformance ? Jul 06 16:26:45 my scroll is only jerky in the emulator Jul 06 16:27:02 with a bg image ? Jul 06 16:28:52 does anybody know how i can force close the software keyboard Jul 06 16:28:55 bgcolor Jul 06 16:30:00 hmm, i wonder why it takes a performance hit. Jul 06 16:30:05 jasta: i am getting "Cannot instantiate the type HttpConnection" Jul 06 16:37:10 is it possible to start a different activity from the launcher depending on internal state (i.e. a config variable)? Jul 06 16:42:58 BeBoo_: HttpClient, I said. Jul 06 16:43:12 Ge0rG: you can start an activity which "proxies". Jul 06 16:43:28 MainActivity's onCreate could decide to startActivity(...) and then finish(), for instance. Jul 06 16:43:43 Lots of apps do this, including Email, if you want a reference Jul 06 16:43:47 jasta: but it'd be a second activity on the stack? Jul 06 16:44:05 not if you finish the first. Jul 06 16:44:10 finish() removes the activity from the stack Jul 06 16:44:21 ah, ok Jul 06 16:44:23 jasta: i see what i did, sorry. I looked up httpclient and got stuff for apache's httpconnection. Jul 06 16:44:24 also, you can set it up so that the mainactivity launcher starts a new task to get away from the activity stack Jul 06 16:44:33 do some research into tasks if you want to get fancy Jul 06 16:45:06 morning san Jul 06 16:45:08 morning Jul 06 16:45:10 jasta: thanks for the hints Jul 06 16:45:11 i've given up on #android Jul 06 16:45:51 good call Jul 06 16:45:55 O.o Jul 06 16:46:14 indeed Jul 06 16:46:16 good weekend? Jul 06 16:46:22 not really :\ Jul 06 16:46:25 :( Jul 06 16:46:31 my girlfriend planned a trip for just the two of us and it was a disaster :) Jul 06 16:46:43 ruh roh Jul 06 16:47:03 buildin a firmware with squashfs support.. i wonder if 'auto' works to detect yaffs2/squashfs, w/ 'mount' in init.rc Jul 06 16:47:06 we were going to catch her cousins wedding so we went to Cannon Beach, OR but the 4th of july traffic was so bad it took 6 1/2 hours to get there Jul 06 16:47:11 so we missed the ceremony Jul 06 16:47:21 then my gf lost her purse somewhere Jul 06 16:47:23 never did find it Jul 06 16:47:42 and she had a company mastercard in her purse :\ Jul 06 16:48:04 then the hotel we were staying at sat night lost our reservation so we had to go to a different place that was almost twice as expensive Jul 06 16:48:13 despite that we had a confirmation number for the room! Jul 06 16:49:14 dumb question (still kinda new). it appears that HTTPClient isn't included in the JDK so I found them, put them into my project folder and added it to the build path as a class folder. DId i do that correct? Jul 06 16:50:47 BeBoo_: no, HttpClient is part of the android framework. Jul 06 16:50:53 are you using the ADT? Jul 06 16:50:59 * BeBoo_ nods Jul 06 16:51:07 then HttpClient resolves. Jul 06 16:51:29 ohh stupid me, i'm sorry Jul 06 16:52:19 hrm, it wants to import org.apache.http.client Jul 06 16:54:57 ok, back to square one... "Cannot instantiate the type HttpClient" on "HttpClient client = new HttpClient();" Jul 06 17:18:05 BeBoo_: use DefaultHttpClient Jul 06 17:38:27 is there something special i need to do in order to sop the gps locater when i exit my app? Jul 06 17:38:56 i am doing LocationManager.removeListener in onPause right now Jul 06 17:38:56 chouman82: switch gps on off? Jul 06 17:39:00 ah Jul 06 17:39:10 dont know :D Jul 06 17:39:14 is that not where yo uare suppose to do it? Jul 06 17:39:24 i exit the app and i see gps icon still on the top .. =( Jul 06 17:40:12 hi, I have a problem with my AIDL file. The documentation says this: "The parameters and return values can be of any type, even other AIDL-generated interfaces. However, it is important to note that you must import all non-built-in types, even if they are defined in the same package as your interface." However, if I try to import java.util.ArrayList, I get an error. Anyone an idea on what I'm doing wrong? Jul 06 17:48:12 am i missing any documentation? where are all the build in content:// URIs listed? Jul 06 17:48:59 *cough* cross post Jul 06 17:49:19 aVirulence: i am using a List in my aidl and i didn't import java.util.List Jul 06 17:54:21 chouman82: but it's an ArrayList, I know that List is built in AIDL Jul 06 17:55:20 It's actually an ArrayList, it should be possible to remap it to a List, right? Jul 06 18:04:58 AakashPatel: sorry Jul 06 18:12:19 is there any way I can emulate incoming push messages? Jul 06 18:14:40 sms? Jul 06 18:15:02 frez? Jul 06 18:15:05 yeah Jul 06 18:15:12 connect with telnet Jul 06 18:15:24 telnet localhost 5554 (for first emulator instance Jul 06 18:15:34 then type Jul 06 18:15:45 sms send Jul 06 18:17:43 hmm not sure if it's actually wap push I'm after.. Jul 06 18:18:11 what if I want the sender to come as a name Jul 06 18:18:26 like sender "google" Jul 06 18:18:34 you have to lookup the phonenumber in the contacts Jul 06 18:18:45 what are you developing? Jul 06 18:19:16 Well, every day I get push messages from work giving me some status updates Jul 06 18:19:26 and the sender is "aname" Jul 06 18:19:33 that's not stored in mye contact list Jul 06 18:19:57 and the messages keep coming up in the message list seperatly Jul 06 18:20:16 not sure if it's a android bug though Jul 06 18:20:42 but I'm looking in to it and checking if I can develop something that fixes it :) Jul 06 18:22:43 can anybody help me to force close the software keyboard programattically Jul 06 18:22:48 too bad, writing a widget for sms. thought you could help me with some points ;) Jul 06 18:22:56 hehe :) Jul 06 18:24:00 don't know if I can help, just starting to play around with it Jul 06 18:24:14 but it's wap push over sms I'm after.. Not sure how android handles them.. Jul 06 18:27:02 Hm, I'm getting an error in the generated Java class when I put a List in my AIDL file. Any ideas? Jul 06 18:27:10 not sure either Jul 06 18:27:12 can anybody help me to force close the software keyboard programattically Jul 06 18:27:20 but how the fuck can i debug a widget :/ Jul 06 18:28:31 the_alien: use the debugger? Jul 06 18:28:34 AndyArmstrong, I'm looking for the same thing Jul 06 18:29:44 romainguy_: good idea. haven't thought about that... i put a breakpoint into my code, launch the debug mode, but it never comes to the debugger. the plugin doen't connect to the emu, either. Jul 06 18:30:01 what process are you debugging? Jul 06 18:30:04 on hiding the virtual keyboard: http://osdir.com/ml/AndroidDevelopers/2009-06/msg00995.html Jul 06 18:30:07 and what part of the code are you trying to debug? Jul 06 18:30:09 it's a hack at best Jul 06 18:30:29 it's a terrible hack Jul 06 18:30:31 keep in mind many android devices won't have a physical keyboard Jul 06 18:31:56 does anyone know how to display an image over another image, eg. i want to superimpose a play button over an image that links to a video clip. Jul 06 18:33:44 romainguy_: i have a onReceive method and want to debug it. i tried to connect the debugger to the com.android.acore process, but it wont connect because there is no project for it Jul 06 18:34:09 why are you connecting to android.acore? that's not where your code runs Jul 06 18:35:09 thought android executes the widgets in the acore process Jul 06 18:35:28 where do i have to connect then? Jul 06 18:37:09 in whatever process your provider runs in Jul 06 18:37:24 ok... how should i know where it runs? Jul 06 18:37:25 the whole point of the current widgets API is that your code does not run in acore for security reasons Jul 06 18:37:37 looks at the list of processes, there should be one with your package name Jul 06 18:37:49 hm. then something is really wrong Jul 06 18:38:12 NOW Jul 06 18:38:25 restarting the emuator did the trick :D Jul 06 18:39:47 meanburrito: use framelayout or relativelayout Jul 06 18:41:25 anyone know why gps icon doesn't go away after i quit my app even though i put LocationManager.removeListener in onPause? Jul 06 18:41:46 Poke53281: I can't find much information on DefaultHttpClient but it seems to be similiar to HttpClient. I an trying to use HttpMethod and it wants to change it to HttpHead ? Jul 06 18:45:51 nevermind, i see... it's httpget Jul 06 18:55:18 with that example Queue29 is the editor meant to be the edit view field? Jul 06 19:08:46 what does this mean? Cannot allocate the member type AlertDialog.Builder using its compound name when qualified by an enclosing instance. The member type name is resolved relatively to the qualifying instance type Jul 06 19:09:11 nevermind, i'm a tard Jul 06 19:13:00 Does anyone have an idea why I get this error: writeBinderList(List) in the type Parcel is not applicable, in the generated Java class when I use List as a return type? Jul 06 19:13:40 in an AIDL file Jul 06 19:16:06 just curious, if you change to does the error go away? Jul 06 19:20:11 zhobbs: yeah it does Jul 06 19:21:05 hmm, possible it could be either a bug, or a limitation not made clear in the docs Jul 06 19:22:23 I'm guessing it's a limitation, but I'm starting to see all kinds of limitations either not in the docs, or I'm not reading them correctly.. Jul 06 19:23:02 for instance the docs say: "These parameters and return values can be of any type ...However, it is important to note that you must import all non-built-in types" however, I cannot import java.util.Hashtable or java.util.ArrayList Jul 06 19:29:09 zhobbs: I'm not getting an error if I change List to List Jul 06 19:29:42 why does PhoneNumberUtils#compare tell me, that "+49123456789" and "123456789" aren't the same? Jul 06 19:29:58 aVirulence: the docs on aidl aren't great Jul 06 19:31:41 i seem to be having trouble building an alertdialog inside a run(): Can't create handler inside thread that has not called Looper.prepare() Jul 06 19:32:12 BeBoo_: you must do that from the UI thread Jul 06 19:32:24 AsyncTask >>>>>>> Thread Jul 06 19:32:54 the_alien, how does it know your current country code scheme? magic? Jul 06 19:33:02 what if your local country code is +1? Jul 06 19:33:06 ahh ok Jul 06 19:33:26 KNY, sounds right... but how to do that? Jul 06 19:33:39 the_alien, depends on your requirements Jul 06 19:34:03 the_alien, if "good enough" is sufficient for you, then you could check if the longer one .endsWith() the shorter Jul 06 19:34:26 I got one question regarding the deleteIntent for notifications. I got two notifications (status bar icons) they are started with different ids. I have set both with a deleteIntent that is connected to one service. I have added a category to the intent in order to differentiate the two. Jul 06 19:34:59 Why is the service only called once ? Jul 06 19:35:01 KNY: how is it done in the dialer or the messages app? would to it "as good as possible" Jul 06 19:35:07 (when I clear the notifications) Jul 06 19:35:37 the_alien, look at the source; I don't know off the top of my head. Jul 06 19:38:56 anno^da_: might try messing with PendingIntent flags Jul 06 19:40:37 Hmm yeah I have done that but it didn't work. Jul 06 19:40:52 For the alarm manager it worked with the different catagories. Jul 06 19:41:11 But well it seems so that it does not for the notifications system. Jul 06 19:50:52 when you have multiple activities in an activity stack do you still bind/unbind for each one, or keep a static (possible singleton) Binder object around for use? Jul 06 19:51:08 that is, many activities using one service Jul 06 19:57:23 What is the newest repo branch, master? Jul 06 19:57:30 yes Jul 06 19:57:47 is there any advantage to using android-1.5r2 over master? Jul 06 19:57:56 it depends on what you are trying to do Jul 06 19:58:12 Just general customization/tweaking for personal use... Jul 06 19:58:24 then 1.5 since it's stable Jul 06 19:59:54 kk, thanks for the info Jul 06 20:15:41 is there any doc to view all available "content://" URIs? Jul 06 20:16:27 final Button button = (Button) findViewById(R.id.button_id); Jul 06 20:16:42 how is it gonna find the layout the button is in? if its a widget? Jul 06 20:17:02 (appwidget) Jul 06 20:44:03 KNY: can you help me finding the place where the message app looks up the name for the number? Jul 06 20:47:41 ComposeActivity or something Jul 06 20:58:19 Can someone confirm that it is not possible (with the APIs) to start an ongoing LED notification? (which doesn't stop when you slide down the status bar) Jul 06 21:40:38 Has anyone noticed issues with android prematurely trunkating strings? I've tried printing out some xml data to the log and Its being trunkated. I'm not sure wha the story is. Jul 06 21:41:40 meanburrito: you might have better luck writing to a log file on the sdcard Jul 06 21:44:22 jasonlee, I'm not sure it's simply the fault of the log though... my data is processed as if the remaider of the string actually did not exists Jul 06 21:44:25 *exist Jul 06 21:46:46 can you just use the java.net package with android Jul 06 21:46:49 ? Jul 06 21:47:24 is there a standard type of list divider to split up sections of lists like they do in Preferences or in the Market? Jul 06 21:47:30 shokora: yes http://developer.android.com/reference/java/net/package-summary.html Jul 06 21:48:15 Has anyone tried developing with Eclipse on Windows 7? Jul 06 21:49:45 Ill take that as a no lol Jul 06 21:50:24 try it, i guess Jul 06 21:51:18 So, I am able to run Eclipse fine, as well as install the Android Add-on on windows 7. However, upon attempting to run the application, I get the emulator to start, but the Application is never Installed and I can not find it on the emulator. Jul 06 21:51:40 ok thx f^x Jul 06 21:51:45 then i'm just doing something wrong ^.^ Jul 06 21:52:30 NateN: i had that happen occasionally, i just restarted the emulator and ran the app again Jul 06 21:52:52 shokora: what's your exact error? Jul 06 21:54:02 ok wait Jul 06 21:54:16 i'm probably doing things retarded but still Jul 06 21:55:05 http://asdf.pastebin.com/m4f3f184d Jul 06 21:55:32 http://asdf.pastebin.com/m7ef7b878 generated error Jul 06 21:57:03 weirdly, that stacktrace doesn't hit your code Jul 06 21:57:17 my thoughts exactly Jul 06 21:57:50 f^x: Does Eclipse/adb have issues running applications that have spaces in the path name? Jul 06 21:58:15 if you look at the exception in the debugger, does it have a cause? Jul 06 21:58:24 NateN: no idea Jul 06 22:00:08 wait, does the debugger even work for you, shokora? i googled ddmlib and apparently that is related to the debugger Jul 06 22:00:29 hrm Jul 06 22:00:46 maybe i just lack basic understanding of java, if i do it with a single port it doesn't crash Jul 06 22:03:44 hrm, the code works now, weird Jul 06 22:06:03 Hi. Is it possible to prepend a row to a SQLite table? Jul 06 22:12:20 aVirulence: if your sql depends on rows returning in a particular order, you're doing it wrong Jul 06 22:13:00 f^x: ok, I should probably sort the items manually then :-) Jul 06 22:13:39 yeah, sort by whatever relevant field you need them sorted by. if the field doesn't exist, add it. Jul 06 22:14:20 don't sort them in your code, you should be able to use ORDER BY to get them in the order you want Jul 06 22:14:48 does anyone know how to overlay two images on top of eachother? I want to put a play button on top of a thumbnail. Jul 06 22:15:02 meanburrito920_: just put them in the same place in the layout xml. Jul 06 22:15:31 f^x, I'm using a relativeLayout so I don't think that is an option. Jul 06 22:15:50 KNY: i found it :) Jul 06 22:16:00 no, you can put them both leftOf the same thing Jul 06 22:16:03 or whatever Jul 06 22:16:48 meanburrito920_: realtive layout is nearly the ONLY option ;) Jul 06 22:16:53 f^x oh, right. thanks Jul 06 22:16:57 hi Jul 06 22:17:00 hi Jul 06 22:22:03 meanburrito920_: FrameLayout may be a good choice. Jul 06 22:22:37 FrameLayout doesn't support much, but it does support gravity. So, one child can be centered while the other takes up the whole width and height of the frame layout Jul 06 22:22:43 this would achieve somethingl ike what you're looking for i think Jul 06 22:23:18 FrameLayout is basically a non-fluid layout which attempts to position each child independent of the others Jul 06 22:23:38 normally without gravity they all stick to the upper-left bounds, but you can use gravity to position certain widgets in other parts of the parent (center, right, bottom, etc) Jul 06 22:23:47 and i think it even supports margins too Jul 06 22:42:13 I'm having a small performance issue with a list containing a large number of items. Each row contains two views, a TextView for the text and an ImageView (aligned to the right) Jul 06 22:42:32 cappslocke, pastebin Jul 06 22:42:35 I'm curious if there are some guidelines to follow for this scenario that would help Jul 06 22:46:10 KNY: http://pastebin.com/d18418fe6 Jul 06 22:51:05 cappslocke, well, for starters, try using android:id="@android:id/list" for your ListView's ID Jul 06 22:51:16 how do i correctly use a handler within an AsyncTask? Jul 06 22:51:37 i want my AsyncTask to send messages to a handler while it's running Jul 06 22:51:40 kingkung, you don't Jul 06 22:51:46 use publishProgress() Jul 06 22:51:51 KNY: k, changing now Jul 06 22:52:26 does this mean my AsyncTask has to be an inner class of my activity? Jul 06 22:52:31 KNY: feel free to rip all that apart, that's code from a java newb posing as an android newb who's really C# :P Jul 06 22:53:05 cappslocke, :) Jul 06 22:53:23 kingkung, I've always seen it done as a static inner class Jul 06 22:53:49 okay Jul 06 22:53:59 thanks! Jul 06 22:54:15 cappslocke, I believe you could do away with the RelativeLayout and use drawableLeft on the TextView Jul 06 22:55:16 KNY: And that would be a performance gain? The list appears to render fine in the viewable section, but scrolling starts to jerk, especially when flicked quickly Jul 06 22:55:32 cappslocke, a bit. I believe your problems are coming from your Adapter though Jul 06 22:55:54 cappslocke, and your StandardView class; you don't need that Jul 06 22:56:10 KNY: I'm fine with a refactor, but as I understood it, in order to have a list whose rows are more complex than a string you have to build your own adapter Jul 06 22:56:17 cappslocke, look through the ApiDemos examples; they'll help a lot Jul 06 22:56:28 cappslocke, that's not necessarily true Jul 06 22:58:22 KNY: I'm looking more at BaseAdapter.getView() Jul 06 22:58:36 and the second parameter, convertView Jul 06 22:59:00 That may be a big gain-- do away with the StandardView all-together and re-use the convertVIew (if possible) for each row Jul 06 22:59:12 yep Jul 06 22:59:29 cast the convertView and reuse it Jul 06 22:59:35 instead of creating a new one every time Jul 06 22:59:40 I know a big problem is the fact I have to inflate every row, and I could never figure out how to avoid that Jul 06 22:59:51 I'm guessing Android will take care of that for me with convertView Jul 06 23:00:08 nice, reminds me of some UITableView stuff from the bit of iPhone work I had to do recently Jul 06 23:01:10 I know that it's long, but this talk by romainguy_ is very very good at explaining Android UI optimizations (including ListViews) http://code.google.com/events/io/sessions/TurboChargeUiAndroidFast.html Jul 06 23:04:26 Excellent, will have to look into that Jul 06 23:14:02 hi Jul 06 23:14:04 i have a problem, i want to add a picture from my database to a listview together with some values Jul 06 23:14:04 i managed to get the values into the listview Jul 06 23:14:04 but i can't get the picture into it, since it is BLOB Jul 06 23:14:04 i'm using a listAdapter with a array of strings Jul 06 23:14:05 but i can't add the picture as a string.. Jul 06 23:14:07 anyone knows how to do it? Jul 06 23:15:41 Lets make this place alive! Jul 06 23:15:45 :P Jul 06 23:15:57 lol Jul 06 23:16:11 pinaise, look into ViewBinder Jul 06 23:16:43 whats that for? Jul 06 23:17:36 http://d.android.com Jul 06 23:18:24 yeah saw it, thanx! Jul 06 23:28:41 hrm, I'm trying to fiond a good tutorial for clicking icons on a mapview Jul 06 23:28:49 anyone got any recommendations Jul 06 23:29:08 oh, for android 1.5, google is only throwing android 1.1 tutes Jul 06 23:32:55 http://learningandroid.org/tutorial/2009/03/location-based-services-part-i-creating-mapactivity-zoom Jul 06 23:33:14 ^unfortunately he stopped just before the tutorial I am looking for Jul 06 23:40:30 I'm having issues with strings getting truncated on me. The strings are coming out of a BLOB in the sqlite db, so if that has a size limit, then that may be an issue, but I'm talking in the range of 50 lines of xml here, so I can't imagine they would limit BLOB that much. Jul 06 23:55:33 meanburrito920_: whats the size of the blob Jul 06 23:56:03 SanMehat, thats what I'm trying to figure out Jul 06 23:56:16 meanburrito920_: well if you're the one putting it in the Db then you should know the size right? Jul 06 23:56:41 SanMehat, not the size of the data, the size of the field Jul 06 23:57:05 16:40:30 I'm having issues with strings getting truncated on me. The strings are coming out of a BLOB in the sqlite db, so if that has a size limit, Jul 06 23:57:44 right. I want to find out what the maximum size of the BLOB field is. Jul 06 23:58:16 not sure, but if you find out how much you're trying to write into the BLOB i'll bet it will be fairly telling Jul 07 00:08:03 http://www.sqlite.org/faq.html#q9 Jul 07 00:08:15 heh, didn't know that about SQLite Jul 07 00:11:16 If I am overriding SimpleOnGestureListener do I need to override every method? Jul 07 00:11:21 I assume that it's possible to start an Intent to open a YouTube video (assuming YouTube is installed on the phone)? Jul 07 00:11:25 or just the ones that I'm using? Jul 07 00:22:51 how do I update single fields in databases? Jul 07 00:30:16 Hey romainguy I just noticed you worked on the services.jar ....is there anyway you could tell me where the color for the time on the top right of the notification bar is in there? Jul 07 00:30:50 MianoSM, it isn't black? Jul 07 00:31:00 It is black, and I'd like to change it to white Jul 07 00:36:01 hi all, are you guys using the same keystore for different applications ? Jul 07 00:36:11 I am, yes Jul 07 00:36:26 (all applications that are mine, anyway. Clients obviously get a different one) Jul 07 00:36:45 KNY: Do you think it matters that the keystore is the same name as my first app ? Jul 07 00:37:04 no issues in still using it for other apps ? Jul 07 00:37:09 johnnyzen, shouldn't, no Jul 07 00:37:20 KNY: Cool :) Jul 07 00:38:21 hmm, what's causing my uncaught exception Jul 07 00:38:29 http://pastebin.com/m29092814 Jul 07 00:48:54 ItemizedOverlay.java:617? Jul 07 00:52:11 hmm Jul 07 00:52:21 ItemizedOverlay is a native class though Jul 07 00:52:53 b0nn, doesn't mean you're not passing the wrong information :) Jul 07 00:53:16 well, the exception is being thrown everytime I 'click' on the touchscreen Jul 07 01:01:22 b0nn, what are you clicking on? something you made? Jul 07 01:05:42 mattcofer: I have a mapview displayed Jul 07 01:06:04 but when I got to click on the screen to get the zoomview up, I get the exception Jul 07 01:06:15 pastebin? Jul 07 01:06:26 which file? Jul 07 01:06:32 the exception stack trace Jul 07 01:07:03 http://pastebin.com/m29092814 Jul 07 01:10:25 hrm Jul 07 01:10:32 it's related to the zoomcontrols Jul 07 01:11:19 or not Jul 07 01:14:27 I need some help with graphics. How do I update whats on the screen? Right now I have textview's in a linear layout, but its all static strings Jul 07 01:14:46 brombomb: findViewById() to get a Java reference Jul 07 01:14:59 b0nn: hmm yea i dont see anyhting zoomcontrol in there Jul 07 01:15:30 it's a prick to debug Jul 07 01:15:48 b0nn: did you find a tutorial online about adding zoom controls? Jul 07 01:15:54 couple Jul 07 01:16:06 jsharkey: what class is that in? Jul 07 01:16:24 http://pastebin.com/m32e58a14 Jul 07 01:16:31 brombomb: its under Activity, if you have a reference, or any ViewGroup has it Jul 07 01:16:33 somewhere in /that/ code Jul 07 01:16:37 b0nn: can you stop it in the debugger and find out what the null object it? Jul 07 01:16:42 *is Jul 07 01:16:47 f^x: its com.google code Jul 07 01:16:50 so no source Jul 07 01:17:01 you can still examine locals, right? Jul 07 01:17:38 jsharkey: thanks I'll look into it Jul 07 01:22:35 b0nn: one other thing, you may need to set bounds on the getDrawable() Jul 07 01:23:01 bounds? Jul 07 01:23:16 oh wait, boundCenterBottom already does it Jul 07 01:23:26 nvm Jul 07 01:23:30 lol, k Jul 07 01:24:32 I wonder... Jul 07 01:24:58 are there any markers added before you touch? Jul 07 01:25:05 heh Jul 07 01:25:09 my thoughts exactly Jul 07 01:25:25 I think populateMap is allowing 0 items to be added Jul 07 01:26:10 hmm, nope, that's not the issue Jul 07 01:40:00 hrm Jul 07 01:40:06 this is a bit frustrating Jul 07 01:54:14 found it Jul 07 01:54:28 well, found the region of code that is causing the issue Jul 07 01:54:40 updateMap() Jul 07 01:59:24 so, i've got this crazy "problem". whenever my application "starts", it goes through a complete app cycle, starting with onCreate... even if i just hit home and relaunch it =/ Jul 07 02:00:37 hmm, doesn't home kill it? Jul 07 02:00:51 call onStop, or onDestroy or something? Jul 07 02:01:03 shouldn't it just put it in the background? Jul 07 02:01:22 I'm no expert Jul 07 02:01:32 i mean, if it does, sure, that makes sense with what i'm seeing, but it seems kind of crazy maybe. Jul 07 02:01:45 but I could have sworn I read yesterday that putting an app into the bg was the same as calling onStop() Jul 07 02:02:43 do you override onResume()? Jul 07 02:02:44 which is fine. according to the flowchart, onStop() can lead either to the process being killed or onRestart being activated Jul 07 02:02:49 anyone know why the gps service doesn't seem to quit even though i put LocationManager.removeLIstener in onPause? Jul 07 02:02:50 i do! Jul 07 02:04:01 chouman82_: locationManager.removeUpdates(locationObserver); ? Jul 07 02:04:47 keylimes: I unno :D maybe add debug messages and see what is being called I guess Jul 07 02:10:05 mulla fulla!!! Jul 07 02:10:11 I found the problem Jul 07 02:10:30 it was as someone said, I was adding 0 length list to mapoverlay Jul 07 02:50:15 romainguy: i see what you mean about git conflicting unneccessarily Jul 07 02:50:20 it seems that it conflicts easily on whitespace errors Jul 07 02:57:38 Eight inches ... Nine, and still growing. His erection was now Jul 07 02:57:38 half as thick as his own wrist as -with a grunt of sexual ecstasy- he Jul 07 02:57:38 began to spurt enormous quantities of cum into Christa's throat. Jul 07 02:57:40 Greedily, she slurped and sucked on him as the tingle began to fade. Drop Jul 07 02:57:43 by drop, she tried to stem the stream, but enormous quantities spilled out Jul 07 02:57:45 from around her mouth. Nearly a minute passed, as Curt reached and Jul 07 02:57:48 exceeded ten inches. Still sucking down as much of his cum as she could, Jul 07 02:57:50 Christa squeezed his balls tightly, as if wringing every drop out of him. Jul 07 02:57:53 Spurting over her lips, face and hair, Curt's orgasm gradually subsided, Jul 07 02:57:55 leaving him still shaking with pleasure. Jul 07 02:58:04 orly? Jul 07 02:58:34 ....why does that happen here and in #android Jul 07 02:58:48 ive never seen trolling like that in any other channel Jul 07 03:00:05 probably always the same guy **** ENDING LOGGING AT Tue Jul 07 03:00:06 2009