[android-developers] Re: Trouble With WebView

2011-03-07 Thread Dan
Inline reply ... On Mar 4, 6:05 pm, Miguel Morales therevolti...@gmail.com wrote: The way you posted your question I assumed you were in control of whatever server side media you were trying to launch. (i.e. 'my link') Yes, the android system is supposed to detect link type and launch the

[android-developers] Re: Trouble With WebView

2011-03-04 Thread Dan
I've thought about doing that but the URL to open is a query, not a standard file link as shown above. On Mar 4, 5:01 pm, Miguel Morales therevolti...@gmail.com wrote: Your best bet might be to implement a custom WebViewClient to catch a click on the mp3 link. Then override the load behavior

Re: [android-developers] Re: Trouble With WebView

2011-03-04 Thread Miguel Morales
I don't get it, what do you mean it's a query? On Fri, Mar 4, 2011 at 5:06 PM, Dan king...@gmail.com wrote: I've thought about doing that but the URL to open is a query, not a standard file link as shown above. On Mar 4, 5:01 pm, Miguel Morales therevolti...@gmail.com wrote: Your best bet

Re: [android-developers] Re: Trouble With WebView

2011-03-04 Thread Daniel Schultze
For example: http://www.google.com/?q=example+search . http://en.wikipedia.org/wiki/Query_string On Fri, Mar 4, 2011 at 5:15 PM, Miguel Morales therevolti...@gmail.comwrote: I don't get it, what do you mean it's a query? On Fri, Mar 4, 2011 at 5:06 PM, Dan king...@gmail.com wrote: I've

Re: [android-developers] Re: Trouble With WebView

2011-03-04 Thread Miguel Morales
Heh, i mean there's no difference that it's a query, you can easily detect that it's a link to a music file. You get a callback from the webview when it's about to load it, and you simply detect this url using some regular expression and override the behavior. On Fri, Mar 4, 2011 at 5:25 PM,

Re: [android-developers] Re: Trouble With WebView

2011-03-04 Thread Daniel Schultze
The query has no pattern to it as these are generated dynamically and could respond with anything. Analyzing the html resource isn't very practical. My big question is not the Browser meant to handle this? -Dan On Mar 4, 2011 5:33 PM, Miguel Morales therevolti...@gmail.com wrote: Heh, i mean

Re: [android-developers] Re: Trouble With WebView

2011-03-04 Thread Miguel Morales
The way you posted your question I assumed you were in control of whatever server side media you were trying to launch. (i.e. 'my link') Yes, the android system is supposed to detect link type and launch the proper application. However, I am not sure if it does it via mime-type or by parsing the