Exemplo n.º 1
0
        public void PrepareApplication(BaseScreen baseActivity)
        {
            _baseActivity = baseActivity;

            RootPath = baseActivity.ApplicationContext.GetExternalFilesDir(null).AbsolutePath;
            Temp = Path.Combine(RootPath, "Temp");

            if (!Directory.Exists(RootPath))
                Directory.CreateDirectory(RootPath);

            string nomediaPath = Path.Combine(RootPath, ".nomedia");
            if (!File.Exists(nomediaPath))
                File.Create(nomediaPath);


            DeviceId = Android.Provider.Settings.Secure.GetString(Android.App.Application.Context.ContentResolver
                , Android.Provider.Settings.Secure.AndroidId);

            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            _javaExceptionsHandler = new JavaExceptionHandler();
            Java.Lang.Thread.DefaultUncaughtExceptionHandler = _javaExceptionsHandler;

            D.Init(BaseActivity.Resources.Configuration.Locale.Language);

            ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences(BaseActivity.BaseContext);
            var infobases = new InfobasesScreen(BaseActivity, prefs, StartApplication);
            infobases.Start();
        }
Exemplo n.º 2
0
        public void PrepareApplication(BaseScreen baseActivity)
        {
            _baseActivity = baseActivity;

            DeviceId = Android.Provider.Settings.Secure.GetString(Android.App.Application.Context.ContentResolver
                , Android.Provider.Settings.Secure.AndroidId);

            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;

            _javaExceptionsHandler = new JavaExceptionHandler();
            Java.Lang.Thread.DefaultUncaughtExceptionHandler = _javaExceptionsHandler;

            D.Init(_baseActivity.Resources.Configuration.Locale.Language);

            ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences(_baseActivity.BaseContext);
            var infobases = new InfobasesScreen(_baseActivity, prefs, StartApplication);
            infobases.Start();
        }
Exemplo n.º 3
0
        public ApplicationContext(BaseScreen baseActivity, Settings settings, System.Action loadComplete)
        {
            GlobalVariables = new Dictionary<string, object>();

            _baseActivity = baseActivity;
            _settings = settings;
            _loadComplete = loadComplete;

            LocationProvider = new GpsProvider(baseActivity);

            LocationTracker = new GPSTracker(baseActivity);

            GalleryProvider = new GalleryProvider(baseActivity);

            CameraProvider = new CameraProvider(baseActivity, this);

            DialogProvider = new DialogProvider(baseActivity, this);

            ClipboardProvider = new ClipboardProvider(baseActivity, this);

            Application.ApplicationContext.InitContext(this);
        }
Exemplo n.º 4
0
        public ApplicationContext(BaseScreen baseActivity, Settings settings, System.Action loadComplete)
        {
            GlobalVariables = new Dictionary <string, object>();

            _baseActivity = baseActivity;
            _settings     = settings;
            _loadComplete = loadComplete;

            LocationProvider = new GpsProvider(baseActivity);

            LocationTracker = new GPSTracker(baseActivity);

            GalleryProvider = new GalleryProvider(baseActivity);

            CameraProvider = new CameraProvider(baseActivity, this);

            DialogProvider = new DialogProvider(baseActivity, this);

            ClipboardProvider = new ClipboardProvider(baseActivity, this);

            Application.ApplicationContext.InitContext(this);
        }
Exemplo n.º 5
0
 public Screen(BaseScreen activity)
     : base(activity)
 {
 }
Exemplo n.º 6
0
 public ExceptionHandler(Settings settings, BaseScreen screen, AndroidApplicationContext context)
 {
     _settings = settings;
     _screen = screen;
     _context = context;
 }
Exemplo n.º 7
0
 public SwipeVerticalLayout(BaseScreen activity)
     : base(activity)
 {
 }
Exemplo n.º 8
0
 public ExceptionHandler(Settings settings, BaseScreen screen, ApplicationContext context)
 {
     _settings = settings;
     _screen   = screen;
     _context  = context;
 }
Exemplo n.º 9
0
 public HorizontalLayout(BaseScreen activity)
     : base(activity)
 {
 }
Exemplo n.º 10
0
 public SwipeHorizontalLayout(BaseScreen activity)
     : base(activity)
 {
     SupportedGesture = GestureType.Horizontal;
 }
Exemplo n.º 11
0
 public CustomFlipper(BaseScreen activity)
     : base(activity)
 {
     _activity = activity;
 }
Exemplo n.º 12
0
 public CustomFlipper(BaseScreen activity)
     : base(activity)
 {
     _activity = activity;
 }
Exemplo n.º 13
0
 public WebImage(BaseScreen activity)
     : base(activity)
 {
 }
Exemplo n.º 14
0
 public MemoEdit(BaseScreen activity)
     : base(activity)
 {
 }
Exemplo n.º 15
0
 public SubmitButton(BaseScreen activity)
     : base(activity)
 {
     Scope = string.Empty;
 }
Exemplo n.º 16
0
 public EditText(BaseScreen activity)
     : base(activity)
 {
 }
Exemplo n.º 17
0
 public DockLayout(BaseScreen activity)
     : base(activity)
 {
 }
Exemplo n.º 18
0
 public WebMapGoogle(BaseScreen activity)
     : base(activity)
 {
 }