Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created November 20, 2019 22:46
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 icebeam7/f2b53b87035b662653fcd882e5e8266c to your computer and use it in GitHub Desktop.
Save icebeam7/f2b53b87035b662653fcd882e5e8266c to your computer and use it in GitHub Desktop.
DemoCamara: MainApplication.cs
using System;
using Android.App;
using Android.Runtime;
using Plugin.CurrentActivity;
namespace DemoCamara.Droid
{
#if DEBUG
[Application(Debuggable = true)]
#else
[Application(Debuggable = false)]
#endif
public class MainApplication : Application
{
public MainApplication(IntPtr handle, JniHandleOwnership transer)
: base(handle, transer)
{
}
public override void OnCreate()
{
base.OnCreate();
CrossCurrentActivity.Current.Init(this);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment