public final void onLoadFinished(Loader loader, Object obj) { Cursor cursor = (Cursor) obj; EsAccount esaccount = EsAccountsData.getActiveAccount(this); if (esaccount == null) finish(); if (cursor != null && cursor.moveToFirst()) startActivity(Intents.getPostCommentsActivityIntent(this, esaccount, cursor.getString(0))); finish(); }
protected void onCreate(Bundle bundle) { super.onCreate(bundle); Uri uri = getIntent().getData(); if (uri == null) finish(); if (EsAccountsData.getActiveAccount(this) == null) finish(); Bundle bundle1 = new Bundle(); bundle1.putParcelable("stream_item_uri", uri); getSupportLoaderManager().initLoader(0, bundle1, this); }