|
|
|
@ -7,7 +7,7 @@ using Android.OS; |
|
|
|
|
|
|
|
|
|
namespace XamarinMSSQL.Droid |
|
|
|
|
{ |
|
|
|
|
[Activity(Label = "XamarinMSSQL", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )] |
|
|
|
|
[Activity(Label = "XamarinMSSQL", Icon = "@drawable/icon_spellbook", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize )] |
|
|
|
|
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity |
|
|
|
|
{ |
|
|
|
|
protected override void OnCreate(Bundle savedInstanceState) |
|
|
|
@ -16,12 +16,16 @@ namespace XamarinMSSQL.Droid |
|
|
|
|
|
|
|
|
|
Xamarin.Essentials.Platform.Init(this, savedInstanceState); |
|
|
|
|
global::Xamarin.Forms.Forms.Init(this, savedInstanceState); |
|
|
|
|
ZXing.Net.Mobile.Forms.Android.Platform.Init(); |
|
|
|
|
LoadApplication(new App()); |
|
|
|
|
} |
|
|
|
|
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults) |
|
|
|
|
{ |
|
|
|
|
Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults); |
|
|
|
|
|
|
|
|
|
global::ZXing.Net.Mobile.Forms.Android.PermissionsHandler.OnRequestPermissionsResult(requestCode, permissions, grantResults); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
base.OnRequestPermissionsResult(requestCode, permissions, grantResults); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|