Skip to content

Instantly share code, notes, and snippets.

@olegoid
Created November 16, 2015 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olegoid/ab62bdc5e0fa7fc2a3dc to your computer and use it in GitHub Desktop.
Save olegoid/ab62bdc5e0fa7fc2a3dc to your computer and use it in GitHub Desktop.
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace App1
{
[Activity(Label = "App1", MainLauncher = true, Icon = "@drawable/icon")]
public class MainActivity : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
AsyncCallback callback = async delegate(IAsyncResult ar) {
string value = "some stuff here";
Console.WriteLine(value);
};
callback.Invoke(null);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment