예제 #1
0
파일: LocalManager.cs 프로젝트: pictos/Opus
        /// <summary>
        /// Add a local item at the end of the queue.
        /// </summary>
        /// <param name="path"></param>
        public static void PlayLast(string path)
        {
            Intent intent = new Intent(Application.Context, typeof(MusicPlayer));

            intent.PutExtra("file", path);
            intent.SetAction("PlayLast");
            Application.Context.StartService(intent);
        }
 public void InstallLanguage()
 {
     Android.Content.Intent checkTTSIntent = new Android.Content.Intent();
     checkTTSIntent.SetAction(Android.Speech.Tts.TextToSpeech.Engine.ActionCheckTtsData);
     //StartActivityForResult(checkTTSIntent, NeedLang);
     //
     //protected override void OnActivityResult(int req, Result res, Intent data)
     //{
     //if (req == NeedLang)
     //{
     Android.Content.Intent installTTS = new Android.Content.Intent();
     installTTS.SetAction(Android.Speech.Tts.TextToSpeech.Engine.ActionInstallTtsData);
     //StartActivity(installTTS);
     //}
     //}
 }