Inline reply ... On Mar 4, 6:05 pm, Miguel Morales <[email protected]> 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 > proper application. > However, I am not sure if it does it via mime-type or by parsing the file > extension. > In any case, sometimes it's finicky if you don't pass whatever app is > installed the right bundle data. > > was still not successful in having the music play. > > That's not very clear as to what happens when the app launches and fails to > play the link. > Have you verified you can play the link in the intended app normally? > Have you tried a different test device?
By that I mean: When the browser resends the Intent with the audio information the browser closes and I am returned to my application with no music being played. The link works in the Android Browser and on desktop Browsers. I have tested on two models of phones. > > If you had more control of the content, you could simply form a proper > bundle and pass it to the browser or youtube app via an intent which should > always handle that type of content. > > I have fairly limited control of the content. > > > > > > > > On Fri, Mar 4, 2011 at 5:53 PM, Daniel Schultze <[email protected]> wrote: > > 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 > > -- > ~ 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

