Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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