Code example for PendingIntent

Methods: getIntentSender

0
        if ( mStartIntentSender != null ) {
	 
			// Android 2.0+ 
            try { 
	 
                mStartIntentSenderArgs [ 0 ] = pendingIntent.getIntentSender ();
                mStartIntentSenderArgs [ 1 ] = intent;
                mStartIntentSenderArgs [ 2 ] = Integer.valueOf ( 0 );
                mStartIntentSenderArgs [ 3 ] = Integer.valueOf ( 0 );
                mStartIntentSenderArgs [ 4 ] = Integer.valueOf ( 0 );
                mStartIntentSender.invoke ( mActivity, mStartIntentSenderArgs );
            } catch ( Exception e ) {
	 
                MoaiLog.e ( "MoaiGoogleBillingPurchaseObserver startBuyPageActivity: error invoking intent sender", e );
            } 
        } else { 
	 
			// Android 1.6 
            try { 
	 
                pendingIntent.send ( mActivity, 0, intent );