Intent i=new Intent(Intent.ACTION_VIEW) i.setDataAndType(thisIsWhereYouPutYourUri, thisIsWhereYouPutTheMIMEType);
startActivity(i); If the path is an http:// or content:// URL, you can go with the simpler: startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(thisIsWhereYouPutYourURL))); On Wed, May 16, 2012 at 11:19 AM, dillipk <[email protected]> wrote: > Hi, > I have a string that contains metadata information and based on this > info, how does my app launch a relevant app by understanding this > metadata? > > > For example: > > If the string contains an URL , when I click a button, it should > automatically launch a Browser. If string has a link to audio file, > it should launch a media/audio player and start playing. In other the > launched Application should be metadata driven.. > > Any light on this would be great. > > Thanks, > DK > > -- > 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

