@Override
 public void onCreate() {
   super.onCreate();
   ActiveAndroid.initialize(this);
   mObjectGraph = ObjectGraph.create();
   mObjectGraph.inject(this);
 }
  @Override
  public void onCreate() {
    super.onCreate();

    ActiveAndroid.initialize(this);

    sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
  }
  protected void initializeDB() {
    Configuration.Builder configurationBuilder = new Configuration.Builder(this);
    configurationBuilder.addModelClasses(Link.class);
    configurationBuilder.addModelClasses(FormResource.class);
    configurationBuilder.addModelClasses(EncounterType.class);
    configurationBuilder.addModelClasses(Encountercreate.class);
    configurationBuilder.addModelClasses(Obscreate.class);

    ActiveAndroid.initialize(configurationBuilder.create());
  }
Exemple #4
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    this.getWindow()
        .setFlags(
            WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.activity_home);

    ActiveAndroid.initialize(this);

    // Intent intent = new Intent(this,Home.class);
    // startActivity(intent);

  }
  public void onCreate() {
    super.onCreate();

    if (IS_FIRST_RUN) {
      File f = new File("/data/data/com.ensureaway/databases/ensureaway.db");
      f.delete();
      f = new File("/data/data/com.ensureaway/databases/ensureaway.db-journal");
      f.delete();
      f = new File(f.getParent());
      f.delete();
    }
    ActiveAndroid.initialize(this);
    IS_FIRST_RUN = new Select().from(RunLog.class).execute().size() == 0;
    mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
    mAdminName = new ComponentName(this, AdminReceiver.class);
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    this.getWindow()
        .setFlags(
            WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.activity_main);

    ActiveAndroid.initialize(this);

    Handler = new Handler();
    Handler.postDelayed(
        new Runnable() {
          @Override
          public void run() {

            Intent Intent = new Intent(MainActivity.this, Home.class);
            startActivity(Intent);
            finish();
          }
        },
        3000);
  }
Exemple #7
0
 public void onCreate() {
   super.onCreate();
   ActiveAndroid.initialize(this);
   courseService = new CourseService(this);
 }
 public StoreNewMachineItems(ActionBarActivity act, ViewPager pager) {
   ActiveAndroid.initialize(act);
   this.pager = pager;
   this.act = act;
 }