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" <[email protected]> wrote:
> 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, Daniel Schultze <[email protected]> wrote:
>
>> 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 <[email protected]
>wrote:
>>
>>> I don't get it, what do you mean it's a query?
>>>
>>>
>>> On Fri, Mar 4, 2011 at 5:06 PM, Dan <[email protected]> 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 <[email protected]> wrote:
>>>> > Your best bet might be to implement a custom WebViewClient to catch a
>>>> click
>>>> > on the mp3 link.
>>>> > Then override the load behavior and use an intent to properly launch
>>>> > whatever you're trying to launch.
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > On Fri, Mar 4, 2011 at 4:49 PM, Dan <[email protected]> wrote:
>>>> > > Hello All,
>>>> >
>>>> > > I am using a WebView to display some media in my app but I cannot
>>>> seem
>>>> > > to make my link to an mp3 file launch the music player. After I
>>>> click
>>>> > > on the mp3 link the phone appears to open the Android Browser then
it
>>>> > > closes the browser and goes back to the application.
>>>> >
>>>> > > The following logs appear:
>>>> >
>>>> > > 03-04 16:40:43.495: INFO/ActivityManager(1102): Starting activity:
>>>> > > Intent { act=android.intent.action.VIEW
>>>> > > cat=[android.intent.category.BROWSABLE] dat=
>>>> http://myserver.com/mydir/
>>>> > > music.mp3 cmp=com.android.browser/.BrowserActivity (has extras) }
>>>> > > 03-04 16:40:46.971: INFO/ActivityManager(1102): Starting activity:
>>>> > > Intent { act=android.intent.action.VIEW dat=
>>>> http://myserver.com/mydir/
>>>> > > music.mp3 typ=audio/mpeg cmp=com.google.android.music/
>>>> > > com.android.music.StreamStarter }
>>>> >
>>>> > > This suggests that the phone is trying to open a music application.
I
>>>> > > have tried downloading an mp3 player which can handle mp3's from
the
>>>> > > internet but was still not successful in having the music play.
>>>> >
>>>> > > Is there a way to launch the music player app as intended?
>>>> >
>>>> > > -Dan
>>>> >
>>>> > > --
>>>> > > You received this message because you are subscribed to the Google
>>>> > > Groups "Android Developers" group.
>>>> > > To post to this group, send email to
>>>> [email protected]
>>>> > > To unsubscribe from this group, send email to
>>>> > > [email protected]
>>>> > > For more options, visit this group at
>>>> > >http://groups.google.com/group/android-developers?hl=en
>>>> >
>>>> > --
>>>> > ~ Jeremiah:9:23-24
>>>> > Android 2D MMORPG:
>>>> http://solrpg.com/http://www.youtube.com/user/revoltingx
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Android Developers" group.
>>>> To post to this group, send email to
[email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-developers?hl=en
>>>>
>>>
>>>
>>>
>>> --
>>> ~ Jeremiah:9:23-24
>>> Android 2D MMORPG: http://solrpg.com/
>>> http://www.youtube.com/user/revoltingx
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> ~ Jeremiah:9:23-24
> Android 2D MMORPG: http://solrpg.com/
http://www.youtube.com/user/revoltingx
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to