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(); 
        Bundle bundle1 = new Bundle();
        bundle1.putParcelable("group_uri", uri);
        getSupportLoaderManager().initLoader(0, bundle1, this);
    } 
 
    public final Loader onCreateLoader(int i, Bundle bundle)
    { 
        return new EsCursorLoader(this, (Uri)bundle.getParcelable("group_uri"), new String[] {
            "sourceid" 
        }, null, null, null); 
    }