Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created November 13, 2019 19:25
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 rdelrosario/70b28c8e97dc590e9bf17a8651de7596 to your computer and use it in GitHub Desktop.
Save rdelrosario/70b28c8e97dc590e9bf17a8651de7596 to your computer and use it in GitHub Desktop.
using System;
using Android.App;
using Android.Runtime;
using Plugin.CurrentActivity;
namespace CustomMediaGallery.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