battle programming a forum for elite programmers with extreme will power to sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share
 

 xamarin visual studio C# MGTOW app APK

Go down 
AuthorMessage
Admin
Admin
Admin

Posts : 127
Join date : 2011-08-01

xamarin visual studio C# MGTOW app APK Empty
PostSubject: xamarin visual studio C# MGTOW app APK   xamarin visual studio C# MGTOW app APK EmptyMon Oct 23, 2017 6:49 pm

Code:
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Android.Media;
using Android.Graphics;

namespace MGTOW
{
    [Activity(Label = "MGTOW", MainLauncher = true, Icon = "@drawable/MGTOW")]
    public class MainActivity : Activity
    {
        bool x = true;

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);
           
            MediaPlayer _myPlayer = MediaPlayer.Create(this, Resource.Raw.zimbabue);
            _myPlayer.Looping = true;
         

            _myPlayer.Start(); // to start song
            Button button = FindViewById<Button>(Resource.Id.MyButton);
           
            button.Click += delegate {
                if (x)
                {
                    http://_myPlayer.Pause();
                    _myPlayer.Stop();
                    _myPlayer.Prepare();
                    x = false;
                    button.Text = "play";
                }
                else
                {
                    _myPlayer.Start();
                    x = true;
                    button.Text = "pause";
                }
                };
        }
    }
}

see book :
https://www.yotamarker.com/t122-xamarin-c-2017-grimoir-the-book
for beginner information.

_________________
kurayami no kagi :TO:
Back to top Go down
View user profile http://yotamarker.forumotion.com
Admin
Admin
Admin

Posts : 127
Join date : 2011-08-01

xamarin visual studio C# MGTOW app APK Empty
PostSubject: Re: xamarin visual studio C# MGTOW app APK   xamarin visual studio C# MGTOW app APK EmptyMon Oct 23, 2017 7:01 pm



bwahaha!

_________________
kurayami no kagi :TO:
Back to top Go down
View user profile http://yotamarker.forumotion.com
Admin
Admin
Admin

Posts : 127
Join date : 2011-08-01

xamarin visual studio C# MGTOW app APK Empty
PostSubject: Re: xamarin visual studio C# MGTOW app APK   xamarin visual studio C# MGTOW app APK EmptyMon Oct 23, 2017 7:04 pm


_________________
kurayami no kagi :TO:
Back to top Go down
View user profile http://yotamarker.forumotion.com
 
xamarin visual studio C# MGTOW app APK
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
battle programmers alliance :: battle programming alliance :: battle programming-
Jump to: