Code example for Intent

Methods: getLongExtra, getStringArrayExtra

0
		return Action.valueOf(split[split.length - 1]);
	} 
 
	private void getPurchaseInformation(Intent intent, int startId) {
		final String packageName = getPackageName();
		final long nonce = intent.getLongExtra(EXTRA_NONCE, 0);
		final String[] notifyIds = intent.getStringArrayExtra(EXTRA_NOTIFY_IDS);
		final GetPurchaseInformation request = new GetPurchaseInformation(packageName, startId, notifyIds);
		request.setNonce(nonce);
		runRequestOrQueue(request);
	} 
 
	@Override 
	public IBinder onBind(Intent intent) {
		return null; 
	} 
 
	public void onServiceConnected(ComponentName name, IBinder service) {
		mService = IMarketBillingService.Stub.asInterface(service);
		runPendingRequests(); 
	}