battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.

battle programmers allianceLog in

battle programming a forum for elite programmers with extreme will power to sharpen their skills

descriptionxamarin visual studio C# MGTOW app APK Emptyxamarin visual studio C# MGTOW app APK

more_horiz

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 admin

descriptionxamarin visual studio C# MGTOW app APK EmptyRe: xamarin visual studio C# MGTOW app APK

more_horiz


bwahaha!

_________________
kurayami no kagi admin

descriptionxamarin visual studio C# MGTOW app APK EmptyRe: xamarin visual studio C# MGTOW app APK

more_horiz
liked the app ?

buy me a cup of tea :
https://www.yotamarker.com/t121-support-the-project-of-solving-artificial-general-intelligence

_________________
kurayami no kagi admin
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum