Code example for PendingIntent

Methods: getIntentSender

0
            // must be on the activity stack of the application. 
            try { 
                // This implements the method call: 
                // mActivity.startIntentSender(pendingIntent.getIntentSender(), 
                //     intent, 0, 0, 0); 
                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) {
                Log.e(TAG, "error starting activity", e); //$NON-NLS-1$
            } 
        } else { 
            // This is on Android version 1.6. The in-app buy page activity must be on its 
            // own separate activity stack instead of on the activity stack of 
            // the application. 
            try { 
                pendingIntent.send(mActivity, 0 /* code */, intent);
            } catch (CanceledException e) {