Forum Xamarin.Android

play mp3

hello
i try below code to play mp3 with android os media player , but it not working
please help me...

Intent intent = new Intent(Intent.ActionView);
intent.SetDataAndType(Uri.Parse(t), "audio/*");
intent.SetFlags(ActivityFlags.ClearTop);
//StartActivity(intent);
StartService(intent);

Sign In or Register to comment.