@Override public void onCreate(Bundle icicle) { super.onCreate(icicle); setTitle(getResources().getText(R.string.preferences)); if (b2evolution.DB == null) b2evolution.DB = new b2evolutionDB(this); if (b2evolution.currentBlog == null) { try { b2evolution.currentBlog = new Blog(b2evolution.DB.getLastBlogID(this), this); } catch (Exception e) { Toast.makeText(this, getResources().getText(R.string.blog_not_found), Toast.LENGTH_SHORT) .show(); finish(); } } displayAccounts(); }