Code example for FragmentActivity

Methods: finish, getIntent, getSupportLoaderManager, onCreate

0
    { 
    } 
 
    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);
    } 
 
    public final Loader onCreateLoader(int i, Bundle bundle)
    { 
        return new EsCursorLoader(this, (Uri)bundle.getParcelable("stream_item_uri"), STREAM_ITEMS_PROJECTION, null, null, null);
    }