battle programminga forum for elite programmerswith extreme will powerto sharpen theire skills
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in
Share | 
 

 xamarin visual studio C# MGTOW app APK

Go down 
AuthorMessage
Admin
Admin
avatar

Posts : 120
Join date : 2011-08-01

PostSubject: xamarin visual studio C# MGTOW app APK   Mon 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  _____    
Back to top Go down
View user profile http://yotamarker.forumotion.com
Admin
Admin
avatar

Posts : 120
Join date : 2011-08-01

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



bwahaha!

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

Posts : 120
Join date : 2011-08-01

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


_________________
kurayami no kagi  _____    
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
 Similar topics
-
» Setting Up Webdriver in Visual Studio
» making a selenium framework in eclipse(java environment). previously used visual studio.
» Visual aura seems to be repeating over and over...this is new!
» Yet another new visual aura
» Visual snow. Double & triple vision.They say it is 'optical migraine'

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