Skip to content

Instantly share code, notes, and snippets.

@cullen-tsering
Created October 31, 2014 21:40
Show Gist options
  • Save cullen-tsering/c80f3e044d1a4eeb9f8c to your computer and use it in GitHub Desktop.
Save cullen-tsering/c80f3e044d1a4eeb9f8c to your computer and use it in GitHub Desktop.
Xamarin App
using System;
using Android.App;
using Android.Runtime;
using Android.Util;
namespace VelocityTab
{
[Application]
public class App : Application
{
readonly string _logTagApplication="App";
public App (IntPtr javaReference, JniHandleOwnership transfer)
{
Log.Info (_logTagApplication, "Application called");
}
public override void OnCreate()
{
Android.Util.Log.Info (_logTagApplication, "OnCreate called");
base.OnCreate ();
}
public override void OnConfigurationChanged (Android.Content.Res.Configuration newConfig)
{
Android.Util.Log.Info (_logTagApplication, "Configuration changed");
base.OnConfigurationChanged (newConfig);
}
public override void OnLowMemory ()
{
Android.Util.Log.Info (_logTagApplication, "Uh oh, the memory is running low");
base.OnLowMemory ();
}
public override void OnTerminate ()
{
Android.Util.Log.Info (_logTagApplication, "Terminated");
base.OnTerminate ();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment