protected void onDestroy() { super.onDestroy(); try { if (this.databaseController.getIsOpenDatabase()) this.databaseController.closeConnection(); return; } catch (ActiveRecordException localActiveRecordException) { while (true) localActiveRecordException.printStackTrace(); } }
public void onCreate(Bundle paramBundle) { super.onCreate(paramBundle); requestWindowFeature(1); setContentView(R.layout.main); ((LinearLayout) findViewById(R.id.linearLayout)).setVisibility(View.GONE); verticalId = getIntent().getExtras().getString("vertical"); mySitesListView = ((ListView) findViewById(R.id.list_verticals)); titleTextView = ((TextView) findViewById(R.id.vertical_title)); actionActivity = ((TextView) findViewById(R.id.action_activity)); databaseController = new DatabaseController(getApplicationContext()); try { DatabaseController.initDatabase(); new GetSlideshowsTask(this, this.databaseController, this.verticalId).execute(new String[0]); return; } catch (ActiveRecordException localActiveRecordException) { while (true) localActiveRecordException.printStackTrace(); } }