Created
October 31, 2014 21:40
-
-
Save cullen-tsering/c80f3e044d1a4eeb9f8c to your computer and use it in GitHub Desktop.
Xamarin App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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