예제 #1
0
 protected override void OnResume()
 {
     base.OnResume();
     HockeyLog.LogLevel = 2;
     CrashManager.Register(this, "2c7e569100194bafa2a30f5c648d44fe");
 }
예제 #2
0
 private void InitHockeyApp2()
 {
     CrashManager.Register(this, HOCKEYAPPID, new CrashListener());
 }
예제 #3
0
 protected override void OnResume()
 {
     base.OnResume();
     CrashManager.Register(this, AppSettings.HockeyAppId);
 }
 public void Register()
 {
     CrashManager.Register(Application.Context, hockeyAppId);
     MetricsManager.Register(Application.Context, Application, hockeyAppId);
     UpdateManager.Register(Application.Context, hockeyAppId);
 }
 protected override void OnResume()
 {
     base.OnResume();
     //HockyApp Integration
     CrashManager.Register(this, "657027db39d245e6942bac733a0d14cf");
 }
예제 #6
0
 protected override void OnResume()
 {
     base.OnResume();
     CrashManager.Register(this, "92b286817c9e445186a180e51625b6cc");
 }
예제 #7
0
 protected override void OnResume()
 {
     base.OnResume();
     CrashManager.Register(this, "db48f2e1dad14d83811e8834bb8940b3");
 }
예제 #8
0
 protected override void OnResume()
 {
     base.OnResume();
     HockeyLog.LogLevel = 2;
     CrashManager.Register(this, "760386e0bff149268f270f30fde3d6e4");
 }
예제 #9
0
        protected override void OnCreate(Bundle bundle)
        {
            try
            {
                ToolbarResource   = Resource.Layout.Toolbar;
                TabLayoutResource = Resource.Layout.Tabs;

                base.OnCreate(bundle);

                App.ScreenWidth  = (int)((int)Resources.DisplayMetrics.WidthPixels / Resources.DisplayMetrics.Density);                // real pixels
                App.ScreenHeight = (int)((int)Resources.DisplayMetrics.HeightPixels / Resources.DisplayMetrics.Density);               // real pixels

                // Required for proper Push notifications handling
                var setupSingleton = MvxAndroidSetupSingleton.EnsureSingletonAvailable(ApplicationContext);
                setupSingleton.EnsureInitialized();

                global::Xamarin.Forms.Forms.Init(this, bundle);
                Xamarin.FormsMaps.Init(this, bundle);
                GrialKit.Init(this, "Bullytect.Droid.GrialLicense");

                // Presenters Initialization
                global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle);

                // Xamarin.Auth CustomTabs Initialization/Customisation
                global::Xamarin.Auth.CustomTabsConfiguration.ActionLabel                = null;
                global::Xamarin.Auth.CustomTabsConfiguration.MenuItemTitle              = null;
                global::Xamarin.Auth.CustomTabsConfiguration.AreAnimationsUsed          = true;
                global::Xamarin.Auth.CustomTabsConfiguration.IsShowTitleUsed            = false;
                global::Xamarin.Auth.CustomTabsConfiguration.IsUrlBarHidingUsed         = false;
                global::Xamarin.Auth.CustomTabsConfiguration.IsCloseButtonIconUsed      = false;
                global::Xamarin.Auth.CustomTabsConfiguration.IsActionButtonUsed         = false;
                global::Xamarin.Auth.CustomTabsConfiguration.IsActionBarToolbarIconUsed = false;
                global::Xamarin.Auth.CustomTabsConfiguration.IsDefaultShareMenuItemUsed = false;

                global::Android.Graphics.Color color_xamarin_blue;
                color_xamarin_blue = new global::Android.Graphics.Color(0x34, 0x98, 0xdb);
                global::Xamarin.Auth.CustomTabsConfiguration.ToolbarColor = color_xamarin_blue;


                // ActivityFlags for tweaking closing of CustomTabs
                // please report findings!
                global::Xamarin.Auth.CustomTabsConfiguration.
                ActivityFlags =
                    global::Android.Content.ActivityFlags.NoHistory
                    |
                    global::Android.Content.ActivityFlags.SingleTop
                    |
                    global::Android.Content.ActivityFlags.NewTask
                ;

                global::Xamarin.Auth.CustomTabsConfiguration.IsWarmUpUsed   = true;
                global::Xamarin.Auth.CustomTabsConfiguration.IsPrefetchUsed = true;

                UserDialogs.Init(this);
                PullToRefreshLayoutRenderer.Init();
                XFGloss.Droid.Library.Init(this, bundle);
                //Initializing FFImageLoading
                CachedImageRenderer.Init();
                CarouselViewRenderer.Init();
                FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));

                LoadApplication(FormsApplication);
                FirebasePushNotificationManager.ProcessIntent(Intent);

                System.Diagnostics.Debug.WriteLine("Token: " + FirebaseInstanceId.Instance.Token);

                var starter = Mvx.Resolve <IMvxAppStart>();
                starter.Start();

                CrashManager.Register(this, "1a19190547c340aa9e7bf156aa5527ec");
                MetricsManager.Register(Application, "1a19190547c340aa9e7bf156aa5527ec");
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine("**BullTect LAUNCH EXCEPTION**\n\n" + e);
            }
        }
 public override void OnCreate()
 {
     Log.Debug(Tag, "SmartPrintScreen: OnCreate");
     base.OnCreate();
     CrashManager.Register(this, APIKeys.HockeyAppAndroid);
 }
예제 #11
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            RequestWindowFeature(WindowFeatures.NoTitle);
            Window.AddFlags(WindowManagerFlags.KeepScreenOn);

            // Register the crash manager before Initializing the trace writer
            CrashManager.Register(this, Secret.HockeyappAppId);

            // Register to with the Update Manager
            UpdateManager.Register(this, Secret.HockeyappAppId);

            HockeyLog.LogLevel = 2;

            // Register user metics
            MetricsManager.Register(Application, Secret.HockeyappAppId);
            MetricsManager.EnableUserMetrics();

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            PharmacyTable = FindViewById <ListView>(Resource.Id.maPharmacyTable);
            View header = LayoutInflater.Inflate(Resource.Layout.PharmacyTableHeader, PharmacyTable, false);

            PharmacyTable.AddHeaderView(header);
            PharmacyTable.Clickable  = true;
            PharmacyTable.ItemClick += OnListItemClick;

            var profile = FindViewById <ImageView>(Resource.Id.maProfile);

            profile.Click += (sender, e) => {
                StartActivity(new Intent(this, typeof(ProfileActivity)));
            };

            var add = FindViewById <ImageView>(Resource.Id.maAdd);

            add.Click += (sender, e) => {
                StartActivity(new Intent(this, typeof(PharmacyActivity)));
            };

            var sync = FindViewById <ImageView>(Resource.Id.maSync);

            sync.Click += (sender, e) => {
                StartActivity(new Intent(this, typeof(SyncActivity)));
            };
            sync.LongClick += (sender, e) => {
                StartActivity(new Intent(this, typeof(LoadDataActivity)));
            };

            var lib = FindViewById <ImageView>(Resource.Id.maLibrary);

            lib.Click += (sender, e) => {
                StartActivity(new Intent(this, typeof(LibraryActivity)));
            };
            lib.LongClick += (sender, e) => {
                StartActivity(new Intent(this, typeof(TestDataActivity)));
            };

            var route = FindViewById <ImageView>(Resource.Id.maRoute);

            route.Click += (sender, e) => {
                StartActivity(new Intent(this, typeof(RouteActivity)));
            };

            var searchView = FindViewById <RelativeLayout>(Resource.Id.maSearchRL);

            searchView.Click += (sender, e) => {
                if (CurrentFocus != null)
                {
                    var imm = (InputMethodManager)GetSystemService(InputMethodService);
                    imm.HideSoftInputFromWindow(CurrentFocus.WindowToken, HideSoftInputFlags.None);
                }

                searchView.Visibility = ViewStates.Gone;
            };
            var search = FindViewById <ImageView>(Resource.Id.maSearch);

            search.Click += (sender, e) => {
                searchView.Visibility = ViewStates.Visible;
            };

            var searchSettings = FindViewById <ImageView>(Resource.Id.maSearchSettingsIV);

            searchSettings.Click += (sender, e) => {
                Toast.MakeText(this, "maSearchSettingsIV Clicked", ToastLength.Short).Show();
            };

            SearchInput = FindViewById <EditText>(Resource.Id.maSearchInput);
            SearchInput.AfterTextChanged += (sender, e) => {
                Search(e.Editable.ToString());
            };

            SearchTable            = FindViewById <ListView>(Resource.Id.maSearchTable);
            SearchTable.ItemClick += (sender, e) => {
                if (sender is ListView)
                {
                    var lv = ((ListView)sender);

                    var cb = e.View.FindViewById <CheckBox>(Resource.Id.sriIsCheckedCB);
                    cb.Checked = lv.IsItemChecked(e.Position);

                    //e.View.Selected = lv.IsItemChecked(e.Position);
                    //lv.SetItemChecked(e.Position, true);
                    if (lv.Adapter is SearchResultAdapter)
                    {
                        var adapter = (SearchResultAdapter)lv.Adapter;

                        var newList     = new List <Pharmacy>();
                        var sparseArray = lv.CheckedItemPositions;
                        for (var i = 0; i < sparseArray.Size(); i++)
                        {
                            if (sparseArray.ValueAt(i))
                            {
                                newList.Add(MainDatabase.GetEntity <Pharmacy>(adapter[sparseArray.KeyAt(i)].UUID));
                            }
                        }

                        RecreateAdapter(newList);
                    }
                }
            };
            SearchTable.ItemSelected += (sender, e) => {
                if (sender is ListView)
                {
                    var lv = ((ListView)sender);
                    if (lv.Adapter is SearchResultAdapter)
                    {
                        var adapter = (SearchResultAdapter)lv.Adapter;
                        var obj     = adapter[(int)e.Id];
                    }
                }
            };

            Filter        = FindViewById <ImageView>(Resource.Id.maFilter);
            Filter.Click += Filter_Click;

            Filter.LongClick += (sender, e) => {
                var fragmentTransaction = FragmentManager.BeginTransaction();
                var prev = FragmentManager.FindFragmentByTag(FilterDialog.TAG);
                if (prev != null)
                {
                    fragmentTransaction.Remove(prev);
                }
                fragmentTransaction.AddToBackStack(null);

                var filterDialog = new FilterDialog();
                filterDialog.Show(fragmentTransaction, FilterDialog.TAG);
                filterDialog.AfterSaved += (caller, arguments) => {
                    GetSharedPreferences(FilterDialog.C_FILTER_PREFS, FileCreationMode.Private)
                    .Edit()
                    .PutBoolean("IS_ON", true)
                    .Commit();

                    RecreateAdapter();
                    //Filter_Click(sender, e);
                };
            };

            var message = FindViewById <ImageView>(Resource.Id.maMessage);

            message.Click += (sender, e) => {
                var fragmentTransaction = FragmentManager.BeginTransaction();
                var prev = FragmentManager.FindFragmentByTag(MessageDialog.TAG);
                if (prev != null)
                {
                    fragmentTransaction.Remove(prev);
                }
                fragmentTransaction.AddToBackStack(null);

                var messageDialog = new MessageDialog();
                messageDialog.Show(fragmentTransaction, MessageDialog.TAG);
                messageDialog.AfterSaved += (caller, arguments) => {
                    Toast.MakeText(this, "Message saved", ToastLength.Short).Show();
                };
            };

            message.LongClick += (sender, e) => {
                StartActivity(new Intent(this, typeof(MessageActivity)));
            };

            FilterContent   = FindViewById <TextView>(Resource.Id.maFilterTV);
            AttendanceCount = FindViewById <TextView>(Resource.Id.maAttendanceCountTV);


            //LoginManager.Register(this, Secret.HockeyappAppId, LoginManager.LoginModeEmailOnly);
            //LoginManager.VerifyLogin(this, Intent);
            UpdateManager.Register(this, Secret.HockeyappAppId);
        }
예제 #12
0
 protected override void OnResume()
 {
     base.OnResume();
     CrashManager.Register(this, appID, new MyCrashManagerListener());
 }
예제 #13
0
 protected override void OnResume()
 {
     base.OnResume();
     CrashManager.Register(this, "8271bb6c70fe48b4b04f4ad2a529a582");
 }
 /// <summary>
 /// Called when [resume].
 /// </summary>
 protected override void OnResume()
 {
     base.OnResume();
     CrashManager.Register(this, "7941bf481049476ca868b71fb4deadaa");
     MetricsManager.Register(Application, "7941bf481049476ca868b71fb4deadaa");
 }
예제 #15
0
        protected override void OnCreate(Bundle bundle)
        {
            FormsAppCompatActivity.ToolbarResource = Resource.Layout.toolbar;

            base.OnCreate(bundle);

            Window.AddFlags(WindowManagerFlags.Fullscreen);
            this.Window.DecorView.SystemUiVisibility = StatusBarVisibility.Hidden;

            if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
            {
                var statusBarHeightInfo = typeof(FormsAppCompatActivity).GetField("_statusBarHeight", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
                statusBarHeightInfo.SetValue(this, 0);
            }


            global::Xamarin.Forms.Forms.Init(this, bundle);

            Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();

            App.UIContext = this;
            LoadApplication(new App());

            instance = this;

            Toolbar toolbar = (Toolbar)FindViewById(Resource.Id.toolbar);

            SetSupportActionBar(toolbar);

            SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            SupportActionBar.SetHomeButtonEnabled(true);

            toolbar.SetNavigationIcon(Resource.Drawable.navmenu);

            try
            {
                // Register the crash manager before Initializing the trace writer
                CrashManager.Register(this, HOCKEYAPP_APPID);

                //Register to with the Update Manager
                //UpdateManager.Register(this, HOCKEYAPP_APPID);

                MetricsManager.Register(Application, HOCKEYAPP_APPID);
                MetricsManager.EnableUserMetrics();
            }
            catch (Exception e)
            {
                CreateAndShowDialog(e.Message, "Error");
            }
            try
            {
                // Check to ensure everything's setup right
                GcmClient.CheckDevice(this);
                GcmClient.CheckManifest(this);

                // Register for push notifications
                System.Diagnostics.Debug.WriteLine("Registering...");
                GcmClient.Register(this, PushHandlerBroadcastReceiver.SENDER_IDS);
            }
            catch (Java.Net.MalformedURLException)
            {
                CreateAndShowDialog("There was an error creating the client. Verify the URL.", "Error");
            }
            catch (Exception e)
            {
                CreateAndShowDialog(e.Message, "Error");
            }
        }
        /*
         *  public void OnBackStackChanged()
         *  {
         *      shouldDisplayHomeUp();
         *  }
         *
         * public  void shouldDisplayHomeUp()
         * {
         *  //Enable Up button only  if there are entries in the back stack
         *  bool canback = FragmentManager.BackStackEntryCount > 0;
         *  this.SupportActionBar?.SetDisplayHomeAsUpEnabled(canback);
         * }
         *
         * public override bool OnOptionsItemSelected(IMenuItem item)
         * {
         *  switch (item.ItemId)
         *  {
         *      // Respond to the action bar's Up/Home button
         *      case Android.Resource.Id.Home:
         *          NavUtils.NavigateUpFromSameTask(this);
         *          return true;
         *  }
         *  return base.OnOptionsItemSelected(item);
         * }
         * public override bool OnSupportNavigateUp()
         * {
         *  //This method is called when the up button is pressed. Just the pop back stack.
         *  FragmentManager.PopBackStack();
         *  return true;
         * }
         */

        //HockeyApp

        private void CheckForCrashes()
        {
            CrashManager.Register(this, APP_ID);
        }
예제 #17
0
 protected override void OnResume()
 {
     base.OnResume();
     CrashManager.Register(this, "4d2b087d950f45b393dfbfda7f2fa57e");
 }
예제 #18
0
 private void InitializeHockeyApp()
 {
     CrashManager.Register(this);
     MetricsManager.Register(Application);
 }
예제 #19
0
 public void EnableCrashReporting()
 {
     CrashManager.Register(this.ApplicationContext, "4f6a452f03e641e289ac097c81a3e3c4");
 }