**** BEGIN LOGGING AT Mon Mar 10 09:59:57 2008 Mar 10 10:17:09 elimatta is cool! Mar 10 10:34:28 can some give me a tip on how to open the manifest editor? Mar 10 10:34:50 If i click on my manifest file i just opens the raw xml data. Mar 10 10:35:56 in eclipse that is. Mar 10 14:25:32 They arrived !!!!!!11111eleven Mar 10 14:25:47 plusminus_, wtf? Mar 10 14:26:09 ^^ tshirts Mar 10 14:26:20 ah Mar 10 14:26:24 android shirts or what? Mar 10 14:26:28 from MountainView Mar 10 14:26:32 jap Mar 10 14:26:45 how did you get them? paypal paid? Mar 10 14:27:06 no payment :) Mar 10 14:28:22 * plusminus_ wearing a Shirt, showing an pirate-android with a wooden leg ^^ Mar 10 14:29:22 plusminus_, did you get my query? Mar 10 14:29:37 yap Mar 10 14:37:59 morrildl, just emailed you ;) Mar 10 14:38:21 Hi All...If I have a SubActivity, how do I close it and return to my primary Activity? Mar 10 14:38:35 I can setResult(RESULT_OK); but it doesn't actually return to my main Activity Mar 10 14:38:41 cutmasta: O RLY Mar 10 14:38:48 I can call System.exit(0), but I don't think that's what I want... Mar 10 14:39:00 this.finish(); Mar 10 14:39:05 cutmasta: got it Mar 10 14:39:07 looking into it Mar 10 14:39:10 plusminus_: Ah, thanks Mar 10 14:39:14 morrildl, ok, Mar 10 14:39:27 Aetmos: http://www.anddev.org/subactivites_with_return_value_-_the_inputbox-t99.html Mar 10 14:39:55 Ah, awesome. Thanks plusminus_! Mar 10 14:40:03 np Mar 10 14:41:40 Great, that works perfectly ;-) Mar 10 14:42:33 morrildl, i mailed, because i did not find the bug in the issue tracker, perhaps its in your internal bugzilla Mar 10 14:42:54 cutmasta: well, when I asked the guy who owns it, he said it was already fixed :) Mar 10 14:42:58 apparently he was wrong Mar 10 14:44:34 morrildl, yes, it seems so :) Mar 10 15:08:06 I've been getting weird spam like this comment,lately...anyone else see stuff like it? http://journal.dedasys.com/articles/2008/03/09/bypassing-androids-resources#comments Mar 10 15:08:55 the comment is nonsense, but the page it links to isn't like 'viagra', porn or the usual suspects Mar 10 15:10:06 at least I think it's spam... it's just bizarre Mar 10 15:17:14 looks like spam Mar 10 15:17:35 polite spam, but spam nonetheless Mar 10 15:19:26 it's weird though, I mean wtf is it promoting? Mar 10 15:19:38 Probably just that person's lame-ass blog Mar 10 15:19:42 the thing it links to has no ads Mar 10 15:20:01 and no links to porn/viagra/whatever Mar 10 15:20:29 Yeah, it is an odd page to link to ;-) Mar 10 15:20:56 Does anybody have a particularly good way to layer one view on top of another...I just want to display a logged-in username in the upper-right corner of screen... Mar 10 15:23:33 RelativeLayout ? Mar 10 15:24:56 Hmm...I'll give it a try Mar 10 15:24:57 Thanks Mar 10 15:25:19 Following shows how to place buttons over a MapView: (Code: http://www.anddev.org/viewtopic.php?p=4590#4590 ) Mar 10 15:25:48 Result: http://www.anddev.org/images/tut/map/andnav/anim/anim.gif (see the upper corners für + and - ) Mar 10 15:25:52 Ah, I feel like an idiot. I swear I searched your site, but didn't turn anything up ;-) Mar 10 15:26:21 Many thanks for the great site Mar 10 15:27:12 yu're right, its not that easy to find stuff Mar 10 15:27:29 just if you know what you have to type as keywords Mar 10 15:27:50 but if you know them you usually have no problem :D Mar 10 15:27:59 heh, yeah ;-) Mar 10 16:03:18 hey im having problems setting up the windows environmental variables Mar 10 16:03:50 C:\SDK\android-sdk_m5-rc15_windows\; Mar 10 16:03:55 thats not doing it for me Mar 10 16:04:10 that and without the last backslash Mar 10 16:06:51 Well, is that where the SDK is located? Mar 10 16:08:56 * jasta goes on the hunt for any google folks Mar 10 16:09:13 i spent so much time hassling with MediaPlayer last night and now i'm pissed :) Mar 10 16:10:13 in light of it's many, many bugs, i think they need to show us how the streaming code *really* works so that we can implement it ourselves if need be. Mar 10 16:18:57 jasta: can't you just look at the code in the jar? Mar 10 16:31:25 if you like decompiled classed ;) Mar 10 16:32:16 pyronik Mar 10 16:32:38 pyronik, the PATH is C:\SDK\android-sdk_m5-rc15_windows\tools; .. you forgot the \tools Mar 10 16:46:39 Gizmo: imo not. As the Android.jar is not located in \tools. Mar 10 16:49:05 jasta, "its" - don't make us pull out bob the angry flower Mar 10 16:49:15 jasta, joking aside - you found more bugs in the mediaplayer stuff? Mar 10 17:03:47 davidw: yes, ugh. Mar 10 17:04:11 Aetmos: it's mostly written natively in C. Mar 10 17:05:59 davidw: I'm so frustrated. I don't think I will be able to implement my app as I have intended because of its severe brokenness. Mar 10 17:06:32 basically, the only use case that works with the MediaPlayer is an audio file on disk in its entirety. Mar 10 17:08:05 wo Mar 10 17:08:07 wow Mar 10 17:09:57 jasta: does streaming work? Mar 10 17:13:26 muthu: I'm sure their stupid intent-based streaming works just fine, but therein lies the problem: what the hell is that code doing and how can we replicate it on our own? Mar 10 17:13:43 My application needs to download and cache files it streams from the web. Mar 10 17:14:11 that works fine, right? Mar 10 17:14:42 what? i haven't tested but i'm sure they did. Mar 10 17:15:17 but that's not the point. i need to know how their streaming code actually works Mar 10 17:15:33 downloading and playing,instead of streaming *rolleyes* Mar 10 17:16:54 no, it doesn't. because playback of an incomplete file on disk causes the mediaplayer to treat the file as a snapshot in time Mar 10 17:17:10 as in, if it's 10% done and you start playing, it will stop at 10% of the file, despite it being 50% done or whatever at that time. Mar 10 17:17:38 downloading completely ;) Mar 10 17:18:17 great if you want to have just a short look into ^^ and so fast Mar 10 17:20:11 plusminus_: well of course downloading completely works because as i said, the use case that works is a file on disk. Mar 10 17:25:29 morrildl: *poke* Mar 10 17:26:07 jasta: did you look in the source? Mar 10 17:26:39 i haven't looked into streaming yet, playing the files from the disk for now Mar 10 17:27:09 but soon enough need to stream from the web Mar 10 17:28:46 muthu: you can't, most of it is natively written. Mar 10 17:28:55 oh sh Mar 10 17:29:05 muthu: if you want to stream from the web, fully handing control over to MediaPlayer, then you're fine. Mar 10 17:29:13 i understand Mar 10 17:29:16 if you need any kind of control or meaningful interaction, you're hosed. Mar 10 17:29:25 true, you need to cache Mar 10 17:29:29 exactly Mar 10 17:29:52 MediaPlayer was clearly designe dfor this Mar 10 17:29:57 setDataSource() lets you pass a file descriptor Mar 10 17:30:04 but it doesn't *work* to do so :) Mar 10 17:30:15 yeah probably a bug Mar 10 17:33:01 this is a very serious problem for me right now. i have no idea how i can implement what i need with the current SDK Mar 10 17:33:39 setDataSource (String) works Mar 10 17:34:03 public native void setDataSource(FileDescriptor filedescriptor, String s) Mar 10 17:34:16 haven't tested that method Mar 10 17:34:58 my only thought is to try to use the audio hardware directly, without the broken MediaPlayer. Mar 10 17:36:09 I don't really know too much about android development, but I can tell you that you're not hte only one annoyed with the broken file streaming, so I'm guessing it will be fixed once the android devs get some time Mar 10 17:36:10 /dev/audio ? Mar 10 17:36:24 or whatever? Mar 10 17:38:49 guess the native method has not been implemented yet Mar 10 17:39:18 Bonkers: you're probably right, but my app is a streaming music player sooooo, what choice do i have? :) Mar 10 17:39:28 it's not like this is a small part ;) Mar 10 17:40:04 jasta: you need to mock it up Mar 10 17:40:44 jasta: Have you tried the setDataSource(String) version? Mar 10 17:40:48 the javadoc says it accepts a URL Mar 10 17:41:24 or you just want to play a file that's partially downloaded locally? Mar 10 17:41:49 romainguy: the string version works only for the filepath Mar 10 17:41:49 romainguy: I don't have to, but that is the most logical design. Mar 10 17:42:57 romainguy: My curiousity is leading me to wonder if MediaPlayer's setDataSource(FileDescriptor, ...) method is not implemented correctly, how the hell does the startActivity() approach to streaming from the web work? Mar 10 17:43:19 How has Google implemented that streaming if the underlying system doesn't support it at all? Mar 10 17:43:37 jasta: where's the streaming example? Mar 10 17:44:09 i haven't seen anything for streaming yet Mar 10 17:44:27 hang on ill find it Mar 10 17:44:50 http://code.google.com/android/toolbox/apis/media.html Mar 10 17:44:53 see 'playing media via url' Mar 10 17:45:03 have you seen it in action? Mar 10 17:45:07 this approach is using a content uri and an activity Mar 10 17:45:17 no, but many times morrildl has asserted that it works. Mar 10 17:45:23 ha come on Mar 10 17:45:25 i will try it tonight, of course, but can't now. Mar 10 17:45:46 ok.. the word is streaming is broken Mar 10 17:46:17 really? well, i suppose that would be consistent with MediaPlayer.setDataSource(FileDescriptor, ...) being broken :) Mar 10 17:46:40 yup Mar 10 17:47:35 try also the string version as romainguy suggests Mar 10 17:47:39 can someone whip up a quick test and see that the activity approach works? Mar 10 17:47:45 muthu: The string version doesn't stream Mar 10 17:47:50 ok Mar 10 17:47:56 that is plainly obvious, i have my code using that right now Mar 10 17:48:08 ok.. let me test the intent version now Mar 10 17:48:16 setDataSource("/sdcard/tmp-streaming-file"); will play up to the duration computed at the time it was played. Mar 10 17:49:05 its the full duration of the file Mar 10 17:49:23 no, it's not. it computes the duration at the time of prepare() Mar 10 17:49:58 which is correct behaviour for that method, i'd say. however, in the absence of a working setDataSource(FileDescriptor, ...) implementation, it's not very useful behaviour :) Mar 10 17:50:17 right Mar 10 17:50:22 my assumption is that the FileDescriptor version is for streaming. Mar 10 17:50:28 yes Mar 10 17:50:29 although i might be wrong even still :) Mar 10 17:51:35 muthu: can you test the intent version for me? Mar 10 17:53:37 sure Mar 10 17:53:46 let me check it out Mar 10 17:54:00 thanks :) Mar 10 18:07:45 jasta: give me an http link for mp3 Mar 10 18:07:54 well, uhh Mar 10 18:08:03 hang on :) Mar 10 18:09:14 http://jasta.dyndns.org/android/test.mp3 Mar 10 18:09:20 ok Mar 10 18:11:13 i copied pasted the example code Mar 10 18:11:27 and? :) Mar 10 18:11:32 No Activity found to handle Intent Mar 10 18:11:38 that's what i thought Mar 10 18:11:57 Running DRM-check.... 33% Mar 10 18:12:02 Running DRM-check.... 66% Mar 10 18:12:05 Running DRM-check.... 100% Mar 10 18:12:07 failure !! Mar 10 18:12:08 ;) Mar 10 18:12:13 plusminus_: what? Mar 10 18:12:23 any permission, jasta? Mar 10 18:12:30 i'm in more copy/paste mood Mar 10 18:12:34 so debug for me ;) Mar 10 18:12:54 huh? what's to debug? Mar 10 18:12:58 E/AndroidRuntime( 933): android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.intent.action.VIEW type=audio/* } Mar 10 18:12:59 E/AndroidRuntime( 933): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1170) Mar 10 18:12:59 E Mar 10 18:13:19 nothing to debug, that very probably just means what they claim to be implemented isn't. Mar 10 18:13:30 hmmm Mar 10 18:13:59 unless you have to setType to something more meaningful? Mar 10 18:14:20 try setting it to audio/mpeg? Mar 10 18:14:21 its not a permission issue right? Mar 10 18:14:27 ok Mar 10 18:14:29 muthu: Doesn't seem to be? Mar 10 18:14:35 they don't mention that you need any permissions Mar 10 18:14:45 Uri myUrl = Uri.parse("http://jasta.dyndns.org/android/test.mp3"); Mar 10 18:14:45 Intent intent = new Intent(Intent.VIEW_ACTION, myUrl); Mar 10 18:14:45 intent.setType("audio/mpeg"); Mar 10 18:14:45 startActivity(intent); Mar 10 18:14:51 that's the code FYI Mar 10 18:15:25 still doesn't work with audio/mpeg? Mar 10 18:15:43 E/AndroidRuntime( 1002): android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.intent.action.VIEW type=audio/mpeg } Mar 10 18:15:51 yeah that's what i thought. Mar 10 18:16:08 i really want to talk to someone in the know about this Mar 10 18:16:14 let me check the permission Mar 10 18:16:18 can't seem to track down any google folks though Mar 10 18:16:32 muthu: what permissions? on my web server? those are fine. Mar 10 18:16:42 no for intents Mar 10 18:16:49 oh Mar 10 18:29:41 is gtalk supposed to be realistic in the last sdk? Mar 10 18:32:12 not really Mar 10 18:35:04 jasta, it's probably not really allowed, but have you tried to decompile that stuff, for your own edification? Mar 10 18:36:36 jasta: how big is the file? Mar 10 18:37:28 edumacation Mar 10 18:38:40 how are we supposed to test out a gtalk app? Mar 10 18:39:49 are incoming SMS already stored by Android itself ? Mar 10 18:40:45 mike1o, what do you mean? Mar 10 18:41:46 davidw, is gtalk supposed to be realistic in the last sdk? Mar 10 18:41:54 yeah Mar 10 18:42:02 ok Mar 10 18:42:25 accessing the inbox is not possible, so I am assuming the SMS do not get stored at all Mar 10 18:43:18 davidw, in this sdk Ive been having some presence detection problems... whereas with the previous one this didn't occur Mar 10 18:44:08 davidw: i have, but like i said, the mediaplayer is mostly implemeneted in C/C++. decompiling that would be agonizing. Mar 10 18:44:17 Is there a way to keep whitespace from being trimmed at the end of a string in strings.xml? Mar 10 18:44:44 muthu: about 7M Mar 10 18:47:58 jasta: so i tried setting the uri Mar 10 18:48:07 that did not throw an error Mar 10 18:48:53 mediaPlayer.setDataSource(myUrl.getPath()); Mar 10 18:49:03 jasta, oh, didn't catch that bit Mar 10 18:49:54 Oh my gosh !!! someone tried to do the following: Mar 10 18:50:00 .... [img]http://E:\untitled.JPG[/img] Mar 10 18:50:44 I'm sorry for that guy! Mar 10 18:50:45 :) Mar 10 18:54:19 anyone knows how to get he currently selected View ? Mar 10 18:55:15 ... the focused one Mar 10 18:57:19 getCurrentFocus()? Mar 10 18:59:16 plusminus_: keep in mind that touch mode won't really have a focused item. Mar 10 19:03:02 romainguy: the URL form for setDataSource doesn't work either. Mar 10 19:03:07 throws IOException Mar 10 19:04:00 it does seem to hit the server, tho. Mar 10 19:04:44 User-Agent: PVPLAYER 18.07.00.02? wth? :) Mar 10 19:06:11 whoa wait a minute. this thing is doing something entirely more strange. Mar 10 19:06:21 err, much more strange :P Mar 10 19:06:26 much stranger, maybe Mar 10 19:06:27 hehe Mar 10 19:07:30 it throws IOException, but keeps the connection open. Mar 10 19:08:31 then it proceeds to download the entire file Mar 10 19:08:40 (all after mp.prepare() has thrown IOException) Mar 10 19:10:55 psycho Mar 10 19:11:25 dinner time Mar 10 19:13:28 i guess it's just time to submit a bug Mar 10 19:20:08 i am really stuck here Mar 10 19:20:18 reading through all the bug reports and it looks like these things are just being ignored Mar 10 19:20:33 i dont know what options i have for the ADC here :\ Mar 10 19:20:47 i can't just leave it broken, even though it is clearly Android's fault. Mar 10 19:26:08 jasta: post something in the Developer group, and see if you get a response from a Google dev Mar 10 19:27:29 maybe i'll post a bug then post to android-challenge and just ask wtf i'm supposed to do :) Mar 10 19:28:09 I've had more luck getting responses in the various groups than the bug report form, but yeah, I'd post a bug too Mar 10 19:29:44 I can tell you that you're not going to get much of a response about the streaming bug right now Mar 10 20:01:56 i'm more hoping for a sensible work-around Mar 10 20:06:37 I haven't seen one Mar 10 20:10:32 jasta, fake it somehow? Mar 10 20:10:41 right...how? Mar 10 20:16:44 well it seems that prepareAsync has something to do with this. Mar 10 20:16:56 perhaps i'm getting somewhere here... Mar 10 20:18:11 i can get it to download like 7% of the file then it stops? :) Mar 10 20:18:21 OnBufferingUpdateListener seems to work correctly Mar 10 20:18:29 but then just mysteriously stops after 7% Mar 10 20:18:35 and mp.start() doesn't seem to work in any of that. Mar 10 20:19:37 Sigh. Mar 10 20:19:45 problem starting to play it Mar 10 20:20:01 ? Mar 10 20:20:57 jasta: Sry I was afk Mar 10 20:21:06 (related to the focus question) Mar 10 20:21:29 EditText can have focus (or is it called selection then ?) Mar 10 20:23:47 what focus question? Mar 10 20:23:57 mom Mar 10 20:24:03 what? Mar 10 20:24:15 mom = "moment" Mar 10 20:24:22 " anyone knows how to get he currently selected/focused View ?" Mar 10 20:24:30 i did not ask that question Mar 10 20:24:37 I did ;) Mar 10 20:24:43 k? :) Mar 10 20:25:33 may question is, how to determine the View that is currently selected/focused Mar 10 20:25:58 oh, i remember, i just told you that you need to be aware that touch mode doesn't have a focused item. Mar 10 20:26:06 jap Mar 10 20:26:08 so you may be walking yourself into a design that won't work. Mar 10 20:26:23 but otherwise, i dont know how to get the focus. Mar 10 20:26:37 ^^ but if I (actually not me) had a lot of EditTexts (which can get focused).. Mar 10 20:26:46 kk Mar 10 20:27:51 lol, my onErrorListener is called on this MediaPlayer test, and I get MEDIA_ERROR_UNKNOWN :) Mar 10 20:27:56 awesome Mar 10 20:28:26 i'm beginning to think i should just avoid the MediaPlayer entirely and figure out how to interact with the audio system directly Mar 10 20:28:43 or wait....................... Mar 10 20:30:42 this thing is really going to be good when we get to start hacking on it:-) Mar 10 20:38:27 plusminus_: wait for what? my application is a stremaing music player! Mar 10 20:43:36 ... or not ... Mar 10 20:44:17 what's it use in terms of the underlying audio system? Mar 10 20:45:28 davidw: looks like goldfish audio, which would be their own driver :) Mar 10 20:45:35 so maybe that's not an option Mar 10 20:45:42 i was hoping it'd be like ALSA or something hehe Mar 10 20:45:56 you could give it a wav to play and see what it sends out Mar 10 20:46:11 well i really dont want to go that route ;) Mar 10 20:46:25 in the change overview i see: Mar 10 20:46:26 something constant... a nice sine wave Mar 10 20:46:30 Added support for http streaming of MP4 media. Mar 10 20:46:40 which kind of tells me they added streaming of only 1 particular format? why? Mar 10 20:47:10 that makes no sense at all. ogg, for example, lends itself perfectly to streaming. there would be no extr awork to support that. Mar 10 20:47:20 mp3 not so much, but it can work of course. Mar 10 20:48:43 why don't you use what they recommend? instead of trying to prove a point and use Ogg :) Mar 10 20:53:10 f00f-: I'm not, MP3 doesn't work either. Mar 10 20:53:22 It seems nothing does, but judging from that comment on the changes overview, MP4 probably does. Mar 10 20:54:19 But that probalby doesn't work etiher ;) Mar 10 21:01:48 and even still, MP4 still wouldn't do what i want it seems. Mar 10 21:01:58 they seem to define streaming *VERY* narrowly, such that it can not work in any useful case. Mar 10 21:31:14 evening all Mar 10 21:43:47 re Mar 10 21:43:53 gonna have a nap and then do this android biz. Mar 10 22:14:39 net split Mar 10 22:16:45 * f00f- dies Mar 10 22:42:44 screw it, i'll work on other parts of my code tonight :) Mar 10 22:42:53 i'll just leave the MediaPlayer bits unfinished for now Mar 10 22:43:06 hopefully it will be permissible to submit with it not working because it's so freaking screwed right now Mar 10 22:46:21 jasta: can't you just make it play a dummy local mp3 file? Mar 10 23:10:13 romainguy: sure, but what does that do for me? Mar 10 23:10:27 so my entire music player can only play 1 dummy mp3? great, how cool. Mar 10 23:11:43 at least i can have it download to cache completely, then play. so you'll have to wait a long time to play a song for the first time. Mar 10 23:19:19 that is so freaking stupid though Mar 10 23:22:22 jasta: I meant for the contest Mar 10 23:43:17 poor jasta Mar 10 23:51:45 what are you whining about? mediaplayer? Mar 11 00:54:15 In the SQLite DB I have all my primary keys as _id so that I can take advantage of the cursors. Do they have to be _id or can then be something like _iAmAnId as long as they are prefixed by an underscore? Mar 11 01:01:26 chomchom: you can override CursorAdapter to change this behavior Mar 11 01:01:40 just replace the value of mRowIDColumn by the column index of your id column Mar 11 01:01:47 here is the default implementation: Mar 11 01:01:47 mRowIDColumn = cursorPresent ? c.getColumnIndexOrThrow("_id") : -1; Mar 11 01:02:20 ah Mar 11 01:02:24 thanks Mar 11 07:13:37 can you add an image to the window title bar of an activity? activity android:icon looks broken. Mar 11 08:52:13 anyone home? Mar 11 08:53:30 sorta, but not for long. Almost 5am on my end. Mar 11 08:53:42 i have a ScrollView that is initialized with one EditText in it, and I'd like to be able to myScroll.addView(myEditText) and have the new EditTexts appear at the end of the scroll, scrolling the existing scrollchildren if necessary. Right now what's happening is that the new EditTexts just get drawn on top of the old ones, and the scroll never expands Mar 11 08:53:53 is there another kind of view I should be looking at, or a layout param/ Mar 11 08:53:56 ? Mar 11 09:03:25 I think you have to append the text in the EditText, but I'm not sure how. ScrollView.addView() will layers views on top of each other like you're seeing. Mar 11 09:04:52 chaosvoyager: i don't really want to append the text in the same edittext, but rather create new ones - I suspect it's either a) the wrong kind of Layout or b) an essential xml attribute i'm missing on the child node Mar 11 09:07:39 are you talking about a list view with an edittext? Mar 11 09:07:51 Ah. In that case I'm pretty sure you'll need another ViewContainer to hold the EditTexts, and then put that in the ScrollView. Mar 11 09:12:15 muthu: a scrollview, but yeah Mar 11 09:12:32 chaosvoyager: thanks for the tip, i'll try that in the morning (2:20AM here and I have to be at work tomorrow) Mar 11 09:14:09 I think muthu hit closer to the target with ListView. I'm just not familiar with the more specific layouts. Mar 11 09:31:28 anyone know how cpu intensive a rotating an image is in android? Mar 11 09:38:29 jerkface03, why not just hold the phone at another angle?:-) Mar 11 09:39:20 :/ Mar 11 09:39:25 well, that's one option Mar 11 09:42:40 are you using the rotatedrawable? **** ENDING LOGGING AT Tue Mar 11 09:59:56 2008