Code example for Activity

Methods: finishstartActivity

0
            mIntent = intent;
        } 
 
        public void onClick(DialogInterface dialog, int which) {
            if (mIntent != null) {
                mParent.startActivity(mIntent);
            } 
            mParent.finish();
        } 
    } 
 
    @Override 
    public void startSearch(String initialQuery, boolean selectInitialQuery, Bundle appSearchData,
            boolean globalSearch) {
        if (globalSearch) {
            super.startSearch(initialQuery, selectInitialQuery, appSearchData, globalSearch);
        } else { 
            ContactsSearchManager.startSearch(this, initialQuery);
        } 
    } 
Contextual code suggestions in your IDE  Get Codota for Java