Code example for Intent

Methods: getBooleanExtragetDatagetExtrasgetStringExtra

0
        } else { 
            mQueryHandler.cancelOperation(QUERY_TOKEN);
        } 
 
        final Intent intent = getIntent();
        final Uri data = intent.getData();
 
        // Unpack scheme and target data from intent 
        String scheme = null;
        String ssp = null;
        if (data != null) {
            scheme = data.getScheme();
            ssp = data.getSchemeSpecificPart();
        } 
 
        // Build set of extras for possible use when creating contact 
        mCreateExtras = new Bundle();
        Bundle originalExtras = intent.getExtras();
        if (originalExtras != null) {
            mCreateExtras.putAll(originalExtras);
        } 
 
        // Read possible extra with specific title 
        mCreateDescrip = intent.getStringExtra(Intents.EXTRA_CREATE_DESCRIPTION);
        if (mCreateDescrip == null) {
            mCreateDescrip = ssp;
        } 
 
        // Allow caller to bypass dialog prompt 
        mCreateForce = intent.getBooleanExtra(Intents.EXTRA_FORCE_CREATE, false);
 
        // Handle specific query request 
        if (Constants.SCHEME_MAILTO.equals(scheme)) {
            mCreateExtras.putString(Intents.Insert.EMAIL, ssp);