Last active
November 2, 2016 22:03
-
-
Save Smaths/6b1c7909ca779697e28aee4b48352013 to your computer and use it in GitHub Desktop.
Xam.Media Help
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.Reflection; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
using Android.App; | |
// General Information about an assembly is controlled through the following | |
// set of attributes. Change these attribute values to modify the information | |
// associated with an assembly. | |
[assembly: AssemblyTitle("AppName.Droid")] | |
[assembly: AssemblyDescription("")] | |
[assembly: AssemblyConfiguration("")] | |
[assembly: AssemblyCompany("")] | |
[assembly: AssemblyProduct("AppName.Droid")] | |
[assembly: AssemblyCopyright("Copyright © 2014")] | |
[assembly: AssemblyTrademark("")] | |
[assembly: AssemblyCulture("")] | |
[assembly: ComVisible(false)] | |
// Version information for an assembly consists of the following four values: | |
// | |
// Major Version | |
// Minor Version | |
// Build Number | |
// Revision | |
// | |
// You can specify all the values or you can default the Build and Revision Numbers | |
// by using the '*' as shown below: | |
// [assembly: AssemblyVersion("1.0.*")] | |
[assembly: AssemblyVersion("1.0.0.0")] | |
[assembly: AssemblyFileVersion("1.0.0.0")] | |
// Add some common permissions, these can be removed if not needed | |
[assembly: UsesPermission(Android.Manifest.Permission.Internet)] | |
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] | |
#if DEBUG | |
[assembly: Application(Debuggable = true)] | |
#else | |
[assembly: Application(Debuggable = false)] | |
#endif |
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.Content.PM; | |
using Android.Runtime; | |
using Android.Views; | |
using Android.Widget; | |
using Android.OS; | |
namespace AppName.Droid | |
{ | |
[Activity(Label = "Forms", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] | |
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity | |
{ | |
protected override void OnCreate(Bundle bundle) | |
{ | |
base.OnCreate(bundle); | |
global::Xamarin.Forms.Forms.Init(this, bundle); | |
LoadApplication(new 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.OS; | |
using Android.Runtime; | |
using Plugin.CurrentActivity; | |
namespace AppName.Droid | |
{ | |
//You can specify additional application information in this attribute | |
public class MainApplication : Application, Application.IActivityLifecycleCallbacks | |
{ | |
public MainApplication(IntPtr handle, JniHandleOwnership transer) | |
:base(handle, transer) | |
{ | |
} | |
public override void OnCreate() | |
{ | |
base.OnCreate(); | |
RegisterActivityLifecycleCallbacks(this); | |
//A great place to initialize Xamarin.Insights and Dependency Services! | |
} | |
public override void OnTerminate() | |
{ | |
base.OnTerminate(); | |
UnregisterActivityLifecycleCallbacks(this); | |
} | |
public void OnActivityCreated(Activity activity, Bundle savedInstanceState) | |
{ | |
CrossCurrentActivity.Current.Activity = activity; | |
} | |
public void OnActivityDestroyed(Activity activity) | |
{ | |
} | |
public void OnActivityPaused(Activity activity) | |
{ | |
} | |
public void OnActivityResumed(Activity activity) | |
{ | |
CrossCurrentActivity.Current.Activity = activity; | |
} | |
public void OnActivitySaveInstanceState(Activity activity, Bundle outState) | |
{ | |
} | |
public void OnActivityStarted(Activity activity) | |
{ | |
CrossCurrentActivity.Current.Activity = activity; | |
} | |
public void OnActivityStopped(Activity activity) | |
{ | |
} | |
} | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="Acr.DeviceInfo" version="3.2.3" targetFramework="MonoAndroid60" /> | |
<package id="Plugin.CurrentActivity" version="1.0.1" targetFramework="MonoAndroid60" /> | |
<package id="Plugin.Permissions" version="1.1.3" targetFramework="MonoAndroid60" /> | |
<package id="sqlite-net-pcl" version="1.1.2" targetFramework="MonoAndroid60" /> | |
<package id="SQLitePCL.bundle_green" version="0.9.2" targetFramework="MonoAndroid60" /> | |
<package id="SQLitePCL.plugin.sqlite3.android" version="0.9.2" targetFramework="MonoAndroid60" /> | |
<package id="SQLitePCL.raw" version="0.9.2" targetFramework="MonoAndroid60" /> | |
<package id="Xam.Plugin.Media" version="2.1.2" targetFramework="MonoAndroid60" /> | |
<package id="Xam.Plugins.Settings" version="2.5.1.0" targetFramework="MonoAndroid60" /> | |
<package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="MonoAndroid60" /> | |
<package id="Xamarin.Android.Support.Design" version="23.3.0" targetFramework="MonoAndroid60" /> | |
<package id="Xamarin.Android.Support.v4" version="23.3.0" targetFramework="MonoAndroid60" /> | |
<package id="Xamarin.Android.Support.v7.AppCompat" version="23.3.0" targetFramework="MonoAndroid60" /> | |
<package id="Xamarin.Android.Support.v7.CardView" version="23.3.0" targetFramework="MonoAndroid60" /> | |
<package id="Xamarin.Android.Support.v7.MediaRouter" version="23.3.0" targetFramework="MonoAndroid60" /> | |
<package id="Xamarin.Android.Support.v7.RecyclerView" version="23.3.0" targetFramework="MonoAndroid60" /> | |
<package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="MonoAndroid60" /> | |
<package id="Xamarin.Forms" version="2.3.2.127" targetFramework="MonoAndroid60" /> | |
</packages> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment