**** BEGIN LOGGING AT Wed Apr 15 02:59:57 2009 Apr 15 03:40:05 how to read contact's email from app? Apr 15 04:14:18 anyone know why this would crash when i first run it? http://pastebin.com/m5fa92270 Apr 15 11:13:57 hey when i try to type in my text field the focus jumps to another widget any ideas? Apr 15 11:25:22 hi, is there a way to connect to a wpa2-enterprise wireless network without rooting my phone? Looking at google code, looks like this is supported but with no interface, so is there a workaround? Apr 15 11:48:34 shomon: Not right now. I was writing it, but haven't completed it :-) Apr 15 11:55:49 :) ok... So will it be in cupcake? Apr 15 11:56:06 I mean, the new firmware, if and when t-mobile decides to let us have it... Apr 15 12:09:28 I don't work for Google or anything. I'm just writing it because I use it. Maybe someone else will finish a version first. Apr 15 12:11:33 Maybe someone else will finish your version, if you show your work so far. Apr 15 13:00:11 hi, how to create top level window ..something similart phoneplus application does Apr 15 13:11:49 coderdroid: I've never seen the phoneplus app, but what I would consider a 'top level window' is called an Activity in Android Apr 15 13:11:50 http://developer.android.com/reference/android/app/Activity.html Apr 15 13:22:23 @maklar. Activity is not top level window. When you receive incomming call, your activity is obscured and the phonecall activity appears on the screen. Apr 15 13:22:58 coderdroid: I would consider it a 'top level' :) Apr 15 13:23:04 What you are probably looking for is a Toast in that case Apr 15 13:23:30 That will show up on top of everything Apr 15 13:24:06 Anyone have a problem where a broadcast is being picked up Apr 15 13:24:06 by an Intent multiple times? Apr 15 13:24:24 ya something similar to toast .. but the problem with toast is that u can not make it appear at desired locaiton and for desired duration. After certain time period it goes off Apr 15 13:24:32 *IntentReceiver Apr 15 13:24:59 did u ever checked this application called phoneplus ? Apr 15 13:25:11 no, do you have a link? Apr 15 13:25:27 it's awailable in android market as such Apr 15 13:25:41 phoneplusapps.com/ Apr 15 13:26:17 Is there a way to re-use an animation object? Apr 15 13:26:32 or do I have to re-create one per animation I want to do? Apr 15 13:27:20 coderdroid: unfortunately they don't have any screens of the app in action so I can't see what you are trying to do. From what I remember looking into it a couple months ago, you can determine both the location and the duration of a toast Apr 15 13:27:33 I could be wrong though, I didn't end up using it Apr 15 13:50:27 ldlework: Ah, you're back Apr 15 13:50:43 I did find something interesting Apr 15 13:51:05 for(int j = 0; j < queue.length(); j++) { Point p = queue.pop(); ... } Apr 15 13:51:20 pretty sure you're going to get about half way through your queue and then just stop when you do that Apr 15 13:51:29 you should probably have something more like Apr 15 13:51:44 Point p = null; while( (p = queue.pop()) != null ) { ... } Apr 15 13:51:48 @marklar let me post one screen shot for u Apr 15 13:53:58 @marklar check the screen shot at http://img12.imageshack.us/img12/2633/phoneplusscreenshot.png Apr 15 13:54:49 coderdroid: I'm not really sure how they did that, assuming those are buttons it can't be a Toast Apr 15 13:59:55 yeah ..that's my point.. what that in android using which you can create such top level windows Apr 15 14:14:10 hi all Apr 15 14:16:47 hi Apr 15 14:38:45 So, it looks like the security and locations setting screen has split into two parts in 1.5 Apr 15 14:38:59 is there a way to consistantly get the locations settings in both 1.1 and 1.5? Apr 15 14:47:52 is there a tool to dump a content provider to file? or I have to write one? Apr 15 14:48:01 (all records) Apr 15 15:34:06 alex Apr 15 15:34:50 that is a strange way to put it, but uh, alex to you too Apr 15 15:36:44 alex jaxta ext Apr 15 16:36:38 xavd: you around? trying to figure out this aidl issue... Apr 15 16:56:37 zhobbs: yes Apr 15 17:00:15 still getting those errors Apr 15 17:00:23 /home/zach/workspace/TuneWiki/android/trunk/src/com/tunewiki/lyricplayer/android/service/MPDStatus.aidl:2 interface com.tunewiki.lyricplayer.android.service.MPDStatus should be declared in a file called com/tunewiki/lyricplayer/android/service/com.aidl. Apr 15 17:01:40 grepped the error message (frameworks/base/tools/aidl/aidl.cpp), failing filename validation Apr 15 17:02:05 err Apr 15 17:02:17 oh Apr 15 17:02:43 almost like the whole package name is being passed in for name Apr 15 17:02:46 does your file contain "inferface com.tunewiki.lyricplayer.android.service.MPDStatus {" Apr 15 17:02:58 package com.tunewiki.lyricplayer.android.service; Apr 15 17:02:58 parcelable com.tunewiki.lyricplayer.android.service.MPDStatus; Apr 15 17:03:03 ^ aidl file Apr 15 17:03:09 oh Apr 15 17:03:19 try to remove the full package name from the parcelable line Apr 15 17:03:27 since you declare the package above it's not needed Apr 15 17:03:33 and I guess aidl doesn't properly handle it Apr 15 17:03:53 ahh Apr 15 17:03:55 just say "parcelable MPDStatus" Apr 15 17:04:54 previously, project.aidl had the full package name but it was fed to aidl has a different type of file (include file instead of passing aidl a folder to go look for independent files like this one) Apr 15 17:05:11 s/has/as/ Apr 15 17:06:14 gotcha Apr 15 17:06:56 did you see my email on the groups about issue when editing those parcelable file? Apr 15 17:07:37 yeah Apr 15 17:07:42 that's good to know too Apr 15 17:08:46 now I'm getting a eclipse "Problem Occurred" window: 'Building workspace' has encountered a problem. Errors during build Apr 15 17:09:09 under details "...Resource /TuneWiki/gen/com/tunewiki/lyricplayer/android' does not exist" Apr 15 17:11:25 xavd: ok, the rest is working though...I'm pretty close Apr 15 17:14:55 xavd: looks like the only one not working is 2 levels off the base package...it's complaining that the folder in gen doesn't exist Apr 15 17:15:16 if I create the folder structure for it it works Apr 15 17:15:20 (manually) Apr 15 17:15:40 so, that might be a bug Apr 15 17:17:22 zhobbs: was it the first time you finally compile the project? Apr 15 17:17:45 no, I commented out everything using that parcelable and it would build fine Apr 15 17:17:49 zhobbs: there's an issue the first time you upgrade from 0.8 where you have to clean your project to force create some folder in gen Apr 15 17:17:53 hmm Apr 15 17:18:12 seems like it was just because it was 2 levels off the base package instead of one Apr 15 17:18:17 oh wait so you have another aidl not working Apr 15 17:18:21 yeah Apr 15 17:18:24 they all worked Apr 15 17:18:27 except one Apr 15 17:18:39 is it a parcelable again? Apr 15 17:18:42 yeah Apr 15 17:18:48 can you paste it here? Apr 15 17:19:24 all the others where like /one_level/ the broken one was /one/two_levels Apr 15 17:19:36 yeah that really should have no impact :\ Apr 15 17:19:36 said that gen /one/ didn't exist Apr 15 17:19:38 k Apr 15 17:19:49 package com.tunewiki.lyricplayer.android.radio.shoutcast; Apr 15 17:19:49 parcelable ShoutCastStation; Apr 15 17:19:59 ^ aidl for one that I had to manual create folder Apr 15 17:20:01 let me try something similar Apr 15 17:21:17 oh my... Apr 15 17:21:17 :( Apr 15 17:21:22 wth? Apr 15 17:21:37 same for you? Apr 15 17:21:48 ok it's indeed not working. sorry :( Apr 15 17:22:24 no problem...at least I can build if I just mkdir manually Apr 15 17:35:39 zhobbs: ok I just fixed the problem. Thanks for finding it! :) Apr 15 17:36:16 no problem, thanks for the help Apr 15 17:36:45 the sad part of course, is that in this case, aidl doesn't actually generate a file (since it's a parcelable) and therefore the folder is not needed Apr 15 17:37:05 yeah, I noticed that Apr 15 17:37:36 /gen/ won't get deleted unless I clean right? Apr 15 17:37:47 we need to parse the file from the Eclipse builder to detect it's a parcelable so that we don't call aidl on it. Those file are only needed when generating java file from interface aidl files Apr 15 17:38:02 oh well. Our goal was to make ADT behave like Ant, and this should be good enough for this version Apr 15 17:38:04 correct Apr 15 17:48:18 wooo blog posts about new stuff in 1.5! Apr 15 17:48:20 starting with http://android-developers.blogspot.com/2009/04/ui-framework-changes-in-android-15.html Apr 15 17:50:17 Is there a way to run code when an application is installed or updated? Apr 15 17:51:10 it appears that Bitmap.getConfig is always returning null for me? Apr 15 17:51:21 Is this a known issue or am I doing it wrong? Apr 15 17:52:02 Acrion: just track that stuff yourself with SharedPreferences Apr 15 17:56:00 Acrion: i also said this on #android, but take a look at the broadcast intents defined as Intent.ACTION_PACKAGE_* Apr 15 18:02:25 xavd: I may have found another bug: File -> new android project, under "target" the checkboxes don't allow you to select multiple targets Apr 15 18:02:43 zhobbs: why would you want to target multiple version? Apr 15 18:03:02 you can only target one version (this defines which android.jar you're going to compile against) Apr 15 18:03:06 hmm, maybe I misunderstood Apr 15 18:03:11 ok Apr 15 18:03:23 what do you want to do exactly? (we may need to make things clearer) Apr 15 18:03:25 I thought for 1.5 + Google API's you'd check 1.5 and google apis Apr 15 18:03:30 sorry...misunderstood Apr 15 18:03:37 np :) Apr 15 18:11:39 Question about HTTP Posting. I'm usng HttpPost and HttpEntity to do a post request with a username and password and get back the XML (http://paste.ifies.org/458) Apr 15 18:12:03 I've managed to get as far as line 14 really, but i'm stuck what to do next to get an OutputStream Apr 15 18:12:26 can anyone help? Apr 15 18:17:18 nm, worked it out Apr 15 18:24:35 Thanks ctate, but it does not appear to be called on the project being modified. Apr 15 18:25:36 you want the app itself to take action when it is first installed? Apr 15 18:27:44 Right, it adds something to the notification bar on boot, but I want to do it when upgraded too. So a reboot isn't necessary to get it back. Apr 15 18:27:55 I don't want to add it each time the activity starts. Apr 15 18:35:43 zhobbs: I've no idea how shared preferences will help, can you elaborate? Apr 15 18:36:29 Acrion: when your app launches check a boolean preference like "run_before" with default as false Apr 15 18:36:38 then you know it's first time...and you set it true Apr 15 18:36:56 will it be reset each time the application updates? Apr 15 18:37:01 no Apr 15 18:37:18 and you can set something like last_ver_run, and compare that to the latest version, then you know you just updated Apr 15 18:37:41 it will be reset if they uninstall and reinstall...but that's probably ok Apr 15 18:37:44 hmm, that would help with updating from market at least. thanks Apr 15 18:38:12 the program shouldn't ever be reset by other means unless it crashes anyway. Apr 15 19:12:16 anyone seeing "Could not find Foo.apk" on projects upgraded to 1.5_pre? Apr 15 19:18:59 interesting that there's only a fancy window rotation animation for portrait -> landscape -> portrait (not the other way) Apr 15 19:19:13 erm, just landscape -> portrait Apr 15 19:19:33 * emmby is struggling with Android's threading model a bit Apr 15 19:19:58 I have an object of type Http, and it has a get() method. I use it for all of my http access. I would like get() to do the following: 1) attempt to retrieve the url. 2) if authentication is required, pop up an Activity to allow the user to enter credentials. 3) re-attempt the retrieval if necessary and return the result Apr 15 19:20:15 The problem is that get() can be called from all sorts of places, and it appears that it can't launch an activity and wait for the result without locking up the entire application. Apr 15 19:20:48 Is there a way I can have it launch the activity even though the current thread is paused waiting for the result from get()? Apr 15 19:21:03 emmby, read up on Handlers Apr 15 19:21:11 or AsyncTask in the new update Apr 15 19:21:52 will handlers fix this? It seems like the thread executing the processing loop is blocked, so even if i post a new runnable the handler won't be able to run it. Unless I'm mistaken Apr 15 19:22:39 emmby, you do the processing in a background thread and post a Message (back to the main thread) when you're done Apr 15 19:23:43 KNY, so i can start an activity in a background thread? Apr 15 19:23:52 emmby, no Apr 15 19:24:36 but you can post whether or not you need login and your activity can act appropriately Apr 15 19:24:51 i see Apr 15 19:25:48 yeah, i was hoping to avoid that. I have multiple activities that need to access my server, and I was hoping to keep the knowledge of how to authenticate in one place Apr 15 19:28:09 emmby: put the auth code into a library .jar and just call into it from each activity? Apr 15 19:28:17 no code duplication Apr 15 19:30:13 i'd still need to catch an AuthenticationException every time I call http.get(), and then run the Activity to collect username/password Apr 15 19:30:40 There might be a dozen or two places. Not the worst thing in the world, but it sure would be nice if i could just hide it away inside get() Apr 15 19:39:18 For the new Widgets, to get to my displayed Button (or whatever) i can only set things for it through the few methods of RemoteViews? No findViewById anymore? Apr 15 19:39:30 yep Apr 15 19:43:34 everytime you want to update a Widget does it have to reinflate and redraw everything? ie, are updates very expensive? Apr 15 19:49:17 so is 1.5 going into the G1's anytime soon? Apr 15 19:50:26 how is the Market going to handle the upgrade? Apr 15 19:50:51 not sure, but i have a feeling this upgrade will break some apps Apr 15 19:51:02 for example, if the G2 comes out before 1.5 hits the G1, will you be able to release multiple APK's for the same entry in the Market? Apr 15 19:51:50 hmm, i don't know if the apps will be hardware-specific Apr 15 19:52:31 interesting point tho, since other manufacturers are coming out with android phones by the end of the year Apr 15 20:01:39 khert, it should only break apps that are doing things they shouldn't be doing (reflection on private APIs and such) Apr 15 20:14:05 where do i set up OnClickListener in a widget? onUpdate or onEnabled? Apr 15 20:16:18 anytime you update you have to setup the onClick intents again Apr 15 20:16:23 so, onEnabled Apr 15 20:16:32 and IF you update, then set them up then also Apr 15 20:16:36 check out: Apr 15 20:16:40 http://android.git.kernel.org/?p=platform/packages/apps/Music.git;a=tree;f=src/com/android/music;h=e06ebe29e8cd14d2c10310205f13424f04e3563a;hb=HEAD Apr 15 20:16:46 MediaAppWidgetProvider Apr 15 20:16:56 ah ok Apr 15 20:16:58 thanks Apr 15 20:17:58 also thanks for the hint on the music widget, that may be very helpful :) Apr 15 20:22:48 Hey folks - might anyone know when we'll be able to order additional ADPs? That 1-order-per-account is a killer. Apr 15 21:15:59 I can't understand why EditText isn't supported in Widgets/RemoteViews Apr 15 21:16:14 doesn't seem like it could cause any security issues Apr 15 21:38:54 zhobbs: really? isn't that the thing in the search widget? Apr 15 21:39:40 buster: pretty sure search "widget" isn't a widget, just a feature of Launcher Apr 15 21:41:36 also, when my widget is a LinearLayout with a background color, can i change that color from my code? probably with setCharsequence and the methodname of Layout to set the background? i guess thats how the function works? :o Apr 15 21:45:01 buster: hmm, didn't even notice that method...that's interesting Apr 15 21:45:03 let me know if it works Apr 15 21:45:16 i am trying now :) Apr 15 21:47:08 meh, no. i somehow thought LinearLayout would have a method like setBackground(string) but no methods at all... mhhh Apr 15 21:49:13 buster: setInt with a resource id or color Apr 15 21:54:46 zhobbs: mhh, no. i'm lost. it's late. Apr 15 21:55:33 actually i don't quite get what i can use of those setXXX methods and what an corresponding methodname would be :p Apr 15 22:02:52 Does anyone know; If my app has activity A and activity B and activity B starts when you start the app, can I make it so when you hit back, on this first activity (B) that instead of going back to home, it goes to activity A? Apr 15 22:03:08 Convoluted question I know. Apr 15 22:03:11 ^.^ Apr 15 22:04:11 Activity A is a listview selection, Activity B is the actual running app. So I want the app to default to a selection and if you hit back, it returns to the menu instead of returning to home. Apr 15 22:04:31 you're not really returning to something Apr 15 22:04:33 As if it had actually gone Home -> A -> B -> A Apr 15 22:05:41 So you're saying just launch A when I detect back button in B Apr 15 22:12:15 er Apr 15 22:12:19 screw it I just wont default Apr 15 22:46:48 yeah, you're probably better off not trying to game the history stack Apr 16 00:21:28 So I'm extending a MyLocationOverlay so that I can use my own Bitmap for the "you are here" blip. What I'm having trouble with is figuring out how to draw the accuracy circle. Does anyone know how to convert the accuracy reading (in meters) into the sized radius we'd need for the zoom level the map is currently set to? Apr 16 01:01:42 <[cliff]> hi all Apr 16 01:02:43 howdy Apr 16 01:02:53 you missed most of the chatterboxes Apr 16 01:03:14 <[cliff]> how can I disable a tab? Apr 16 01:03:32 <[cliff]> can't find anything that gets me a reference to it Apr 16 01:05:35 no idea. setVisibility() perhaps? Apr 16 01:09:29 <[cliff]> I'd say setEnabled(false) but in order to be able to do that I need a reference to the tab and somehow I'm missing on how to get it Apr 16 01:10:05 what's the name of the class you're working with? Apr 16 01:11:07 (the view's class) Apr 16 01:13:48 <[cliff]> TabHost, TabActivity Apr 16 01:13:55 <[cliff]> and Views Apr 16 01:14:33 <[cliff]> judging by the docs, either TabHost or TabWidget should allow me to manipulate tabs but apparently not so Apr 16 01:14:53 <[cliff]> oh well, one more thing to check right on android's source code Apr 16 01:15:45 if your tabs are defined in your view xml, it seems like you should be able to set an id for each tab and reference it using findViewById Apr 16 01:16:31 oh, maybe not. hmm Apr 16 01:19:31 you're right, not obvious Apr 16 01:22:51 <[cliff]> yeah, TabWidget.getChildAt(tabIndex) seems to do it Apr 16 01:24:15 nice. i was looking in tabwidget but didn't see anything obvious and didn't poke around in the superclass methods. Apr 16 01:26:48 <[cliff]> having access to the source ends up saving some time :) Apr 16 01:27:31 :) ctate was saying that they're working on improving the release process so there'll be an official git tag when the cut the 1.5 final release. here's hoping Apr 16 01:28:03 <[cliff]> hmmm disabling the tab is possible but there are no GUI hints that they're disabled Apr 16 01:28:08 <[cliff]> a bit disappointing Apr 16 02:10:47 Anyone have any idea why my app wouldn't receive a call to onResume after opening an SMS and hitting the back button? Apr 16 02:16:46 Does anyone know if the new SDK 1.5 provides any direct MIDI access? I found the new JET support, but it doesn't even appear to allow changing the speed/BPM Apr 16 02:41:50 Anybody here yet who knows about 1.5 MIDI support? Apr 16 02:50:14 i hate asking but does anyone know of a current tutorial to stream MP3 files from a server to the android phone? **** ENDING LOGGING AT Thu Apr 16 02:59:57 2009