**** BEGIN LOGGING AT Fri Jan 09 02:59:57 2009 Jan 09 03:17:13 Seems like enabling / disabling bluetooth involves a bit of a reflection hack: http://www.anddev.org/how_to_enable_-_disable_bluetooth-t3850.html Jan 09 03:20:38 I'm assuming bluetooth will be more accessible in cupcake? :-P Jan 09 05:37:21 Is it possible to change the style of a TextView at runtime? Jan 09 05:40:08 yes, but just to be sure, how do you mean? :) Jan 09 05:44:54 well, I have a style defined in styles.xml, and I want to switch the style of a textview to another defined style Jan 09 05:45:19 and i believe this should work, but it may require some voodoo. Jan 09 05:45:36 a better solution might be to just use a ViewSwitcher, however. Jan 09 05:46:00 hmm. perhaps there's an easier way of doing what I want.. I'm basically just wanting to make my textview appear "disabled" (ie, darker color than the default) Jan 09 05:46:25 have you tried setEnabled(false) and just styling that? :) Jan 09 05:47:13 Ah, that could be what I'm looking for :) Jan 09 05:47:21 I kept looking for "setDisabled" :-P Jan 09 06:02:38 ok, so now that I've set my text views to use setEnabled(false), how do I actually refer to the disabled state in my styles.xml? Jan 09 07:23:37 http://linuxdevices.com/news/NS8567251230.htm Jan 09 07:24:53 why does everyone seem to think phones need a keyboard? D-pad only thanks Jan 09 09:58:23 ja, hab dich gesehen Jan 09 09:58:37 whoops, wrong window :/ Jan 09 16:40:22 I'm trying to build a small app that uses intent-based tabs, I've looked online and i've followed the examples of several different tutorials, however, my program doesn't want to work... Can anyone see what I might be doing wrong? http://pastebin.com/m505618a9 Jan 09 17:35:31 ITechJunkie_work: you need to set a contentView in your TabActivity I think Jan 09 17:36:06 maybe there is a default one for TabActivity...not sure on that...but I always had a layout to use with the tabs Jan 09 17:37:34 ITechJunkie_work: nevermind....I looked at the TabActivity source it'll use com.android.internal.R.layout.tab_content if you don't specify Jan 09 18:16:14 anyone come across Prepare failed.: status=0xFFFFFFFC when working with the MediaPlayer? Jan 09 18:25:06 jt436: yes!!! Jan 09 18:25:34 but I won't be much help...because I don't know why I get it or what it means :) Jan 09 18:25:37 zhobbs_: did you find out the cause? Jan 09 18:25:39 oh ha Jan 09 18:25:59 i have only just started to see it Jan 09 18:26:48 I use MediaPlayer in my application and haven't ever seen that. Jan 09 18:27:13 I was getting it a lot while streaming remote mp3's in M5, actually had to cut remote streaming from my ADC entry because of it Jan 09 18:27:42 hmmm Jan 09 18:27:48 So does it only come up when streaming? Jan 09 18:28:07 it's an IOException right? Jan 09 18:28:14 zhobbs_: correct Jan 09 18:28:55 Then you get a MediaPlayer error when you call .start() Jan 09 18:29:06 Errpr (-38, 0) Jan 09 18:29:11 *Error Jan 09 18:30:16 I spent some time earlier this week trying to figure out those error codes...eventually just gave up Jan 09 18:30:29 setDataSource doesn't throw anything though which is a pain Jan 09 18:32:20 jt436: is it happening for local or remote media? Jan 09 18:33:17 zhobbs_: I download the media then play locally, so its not streaming Jan 09 18:34:51 zhobbs_: if I stream and you loose connection then it would be game over Jan 09 18:34:56 which would suck Jan 09 18:35:07 yeah Jan 09 18:37:28 back in 5, changing locations. will spend more time looking into it Jan 09 18:47:57 what are you trying to figure out zhobbs_? Jan 09 18:53:13 jasta: was trying to figure out the MediaPlayer errors like : Error(-17, 0) Jan 09 18:54:09 Oh jeez, voodoo science. Jan 09 18:54:30 I hate that fuckin' class so much :) Jan 09 18:56:45 zhobbs_: did you have any idea what may have caused it? Jan 09 18:57:23 jt436: my best guess was concurrent MediaPlayer instances stepping on each others' toes Jan 09 19:01:46 jasta: you seen "Prepare failed.: status=0xFFFFFFFC" from MediaPlayer? Jan 09 19:07:35 nope Jan 09 19:07:58 if it relates to multiple instances of the mediaplayer though, i don't utilize that functionality in my app Jan 09 19:08:02 i have a single mediaplayer instance Jan 09 19:26:18 zhobbs_: I've seen that error before Jan 09 19:44:31 famast: did you find a fix? Jan 09 19:55:41 jt436: Yes, but i can't recall what the issue was Jan 09 19:55:50 jt436: Are you trying to play video or audio? Jan 09 19:56:04 famast: audio Jan 09 19:56:31 jt436: mp3? Jan 09 19:56:45 famast: yes Jan 09 19:56:49 jt436: On a server or local resource? If local on the sdcard? Jan 09 19:57:13 famast: sd card at the moment Jan 09 19:57:55 maybe the URI is incorrect? what happens if you feed it a bogus URI Jan 09 19:58:14 I really hate MediaPlayer, its errors are impossible to recognize Jan 09 19:58:45 tell me about it Jan 09 20:00:31 jt436: Let me know if feeding a bogus URI gives you a diff error or not If its the same that might be the problem. Else maybe your calling start before its done preparing (if your using preparedAsync).. Jan 09 20:01:28 another issue is the mp3 might have too high of a bitrate, all though i've never run into that problem Jan 09 20:01:53 famast: thanks, i will take a look Jan 09 20:03:11 np, I've had my share of frustrations with the mp Jan 09 20:04:02 like calling stop when nothing is playing. It dont like that apparently. Why does it complain? Who really cares? If nothing is playing then just stop nothing! Problem solved! Jan 09 20:05:52 need to be able to find out the current state of the mp Jan 09 20:09:58 exactly Jan 09 20:14:43 hmm, URI is correct but the data appears to be corrupted Jan 09 20:14:58 just pulled it off the sdcard on the pc and it won't play Jan 09 20:16:28 ah smart! Jan 09 20:16:35 yea that happened to me before! Jan 09 20:16:37 * jt436 blames the server feeding the data Jan 09 20:28:05 * jasta screams and throws eclipse out the window Jan 09 20:28:12 i hate this piece of junk so much Jan 09 20:34:25 zhobbs_: appeared to be corrupt data Jan 09 20:34:48 hey at least its free Jan 09 20:35:15 jt436: makes sense Jan 09 20:47:16 hello ppl Jan 09 20:47:42 i got a problem Jan 09 20:52:45 i have my g1 connected to my cpu and its reading it but it wont run the app for some reason and the same goes for the emu Jan 09 20:52:48 [2009-01-09 20:22:58 - DeviceMonitor]Error reading jdwp list: EOF Jan 09 20:52:48 [2009-01-09 20:22:58 - DeviceMonitor]Connection Failure when starting to monitor device 'HT840GZ47844' : device (HT840GZ47844) request rejected: device offline Jan 09 20:53:48 have you enabled USB debugging? Jan 09 20:56:36 jt436, yeah Jan 09 20:56:42 fist thing Jan 09 20:56:49 first* Jan 09 20:57:11 [2009-01-09 20:22:58 - DeviceMonitor]Error reading jdwp list: EOF Jan 09 20:57:11 [2009-01-09 20:22:58 - DeviceMonitor]Connection Failure when starting to monitor device 'HT840GZ47844' : device (HT840GZ47844) request rejected: device offline Jan 09 20:57:18 thats the error Jan 09 20:57:30 can you connect to the device via the command line? Jan 09 20:57:40 ? Jan 09 20:57:44 ie adb shell Jan 09 20:57:45 whats the command Jan 09 20:57:56 adb devices will list the devices attached Jan 09 20:58:15 http://code.google.com/android/reference/adb.html Jan 09 21:11:49 jt436, eclipss reads it but same prob Jan 09 21:13:06 akuma55: what happened when you tried to access from teh command line? Jan 09 21:13:35 not sure Jan 09 21:13:54 aakuma55 what OS? vista? xp? Jan 09 21:14:01 xp Jan 09 21:14:35 have you installed android_usb_windows.zip ? Jan 09 21:14:49 yeah Jan 09 21:15:03 it was working untill last night Jan 09 21:15:37 rebooted everything 3 times : ) Jan 09 21:15:43 ? Jan 09 21:16:22 akuma55: Can you unplug your G1 and then try using just the emulator? Jan 09 21:37:27 is anyone using oAuth in their application? Jan 09 22:31:21 * gcinzh pokes his snout out from under an alpine rock and squints at the bright light. Jan 09 22:41:31 anyone awake yet? Jan 09 22:41:54 you mean still Jan 09 22:42:17 yea Jan 09 22:43:17 i'm trying to do basic http auth for an app, but i keep getting a 401, wondering if i have it right Jan 09 22:44:35 http://paste.ifies.org/217 Jan 09 22:50:24 i'd rather use oAuth, but haven't found any examples for android with 1.0 SDK Jan 09 22:54:31 digitalspaghetti, this might help -> http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientAuthentication.java Jan 09 22:55:49 yea joakime - however the problem is with the basic http auth, it's not great because every request needs authentication Jan 09 22:55:58 i'm gonna try go down the oAuth root Jan 09 22:56:31 ok. how about preemptive BASIC auth - http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientPreemptiveBasicAuthentication.java Jan 09 22:56:59 there's lots of examples and test code showing how to do most anything you can imagine on that subversion server. Jan 09 22:57:18 preemptive basic auth? Jan 09 22:57:41 There's also good example of how to do an auth listener and respond based on the auth type of the server (basic, digest, ntlm, kerberos, etc...) Jan 09 23:23:05 Are all ListPreferences only Strings? I should parse something into Integer manually? Jan 09 23:23:57 SharedPreferences.getInt() is tempting. :( Jan 09 23:58:32 how do I prevent wifi from disconnecting after the phone is locked for a while? Jan 09 23:59:02 (programatically) Jan 10 00:00:59 WifiManager.WifiLock Jan 10 00:01:23 WifiManager manager = (WifiManager) getSystemService(Context.WIFI_SERVICE); Jan 10 00:01:24 morgan: thanks Jan 10 00:01:33 wifilock = manager.createWifiLock(TAG); Jan 10 00:01:44 does that require extra permissions? Jan 10 00:01:48 (from the ConnectBot source) Jan 10 00:02:05 is Activity implementable? Jan 10 00:02:17 it might require Jan 10 00:02:21 Jan 10 00:02:22 as in can I get a class to extend another class and implement Activity? Jan 10 00:02:53 probably would be the other way around? Jan 10 00:03:00 digitalspaghetti: no Jan 10 00:03:07 Activity is not an interface Jan 10 00:03:13 ==morgan Jan 10 00:03:13 Interfaces are implementable, Classes are extendable Jan 10 00:03:41 you have to extend Activity Jan 10 00:04:38 i'm getting an error when i try to log into oAuth in my activity in Instrumentation.newActivity Jan 10 00:04:56 so i'm assuming there is some kind of permissiong error here Jan 10 00:05:44 what is the error? Jan 10 00:05:49 and what does the log say? Jan 10 00:08:04 http://paste.ifies.org/218 Jan 10 00:08:31 line 4 is where the debugger is Jan 10 00:08:46 top of the thread Jan 10 00:10:56 http://paste.ifies.org/219 is my code, line 88 Jan 10 00:14:01 not nearly enough context there, digitalspaghetti :) Jan 10 00:14:34 VerifyError makes it look like a problem with unresolved references or other bad-class issues Jan 10 00:18:26 digitalspaghetti: that looks like the ActivityManager's report of inability to launch your activity, possibly because Dalvik said it couldn't. The lead-up to that probably has some info on what actually failed. Jan 10 00:18:30 possibly, it's the oAuth library, so possibly got issues of compatibility Jan 10 00:19:25 The interesting part of the log is the several lines above the VerifyError Jan 10 00:19:45 ... where it failed to load the OAuthServiceProvider class, probably Jan 10 00:20:11 which threw, and your code didn't catch the exception so it threw out past your activity's onCreate(), so the ActivityManager reported an inability to launch your activity. Jan 10 00:20:41 Bottom line: include more of the log than you think you need to :-) Jan 10 00:20:52 especially before the actual exception dump :) Jan 10 00:21:28 http://paste.ifies.org/220 Jan 10 00:24:00 sorry, i am coming from more web dev/scripted languages such as python, i only picked up java at the weekend Jan 10 00:24:05 Yup, org.ifies.brightroid.BrightRoid tried to create a new net.oauth.OAuthServiceProvider, but the class couldn't be found. Jan 10 00:24:25 There's a slightly better error message for that in "cupcake". Jan 10 00:25:01 hmm, it's in my referenced libraries Jan 10 00:25:39 i did an earlier project with ksoap2 and that seemed to work fine Jan 10 00:25:56 although that was a jar i imported, this is compiled classes from the oAuth source Jan 10 00:26:36 do i need to further compile the classes into a jar file? Jan 10 00:31:20 digitalspaghetti: i don't get what you mean by "it's in my referenced libraries" if it hasn't been built into a .jar.... Jan 10 00:33:20 typically if a manifest says that means there's a "fooble.jar" that it will pull classes from. Jan 10 00:33:43 [err, android:name="fooble"] Jan 10 00:35:21 yea, creating the jar file worked Jan 10 00:40:22 noice, it's working good now :) getting back a request token Jan 10 00:44:56 funny, not quite what we ended up with w/ the G1: http://gizmodo.com/gadgets/google/android-ui-video-demo-shows-off-multitouch-google-maps-quake-321674.php Jan 10 00:50:33 I'm still happy w/ the G1 though Jan 10 00:50:56 still sad that multitouch didn't work out Jan 10 01:14:41 can anyone point me to an example of launching a browser window as an intent? I need to do it to authorise the app with oAuth Jan 10 01:15:00 i then need to pass back the auth key from it Jan 10 01:15:09 but i can only seem to find pre 1.0 examples Jan 10 01:18:12 oh i think i see Jan 10 01:19:20 isn't it in api demos? **** ENDING LOGGING AT Sat Jan 10 02:59:56 2009