Ejemplo n.º 1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);

            mWork       = new Work(this);
            mAdditional = new Additional(this);

            Text_Title       = FindViewById <TextView>(Resource.Id.textView1);
            Text_Speech      = FindViewById <TextView>(Resource.Id.textView2);
            Text_Information = FindViewById <TextView>(Resource.Id.textView3);
            Text_Error       = FindViewById <TextView>(Resource.Id.textView4);
            image            = FindViewById <ImageView>(Resource.Id.imageView1);
            recButton        = FindViewById <Button>(Resource.Id.btnRecord);

            sr = SpeechRecognizer.CreateSpeechRecognizer(this);
            sr.SetRecognitionListener(this);


            recButton.Click += delegate
            {
                if (!RecordingOn)
                {
                    RecordingOn = true;
                    speech_recognition();
                }
            };
        }
Ejemplo n.º 2
0
 public Work(Context context)
 {
     this.context = context;
     mAdditional  = new Additional(context);
     mMusic       = new Music(context);
     mImage       = new Image(context);
 }
Ejemplo n.º 3
0
 public Image(Context context)
 {
     this.context = context;
     mAdditional  = new Additional(context);
 }
Ejemplo n.º 4
0
 public Music(Context context)
 {
     this.context = context;
     mAdditional  = new Additional(context);
 }