Code example for SparseIntArray

Methods: append, get

0
		int id = intent.getIntExtra("id", -1);
		String recipient = intent.getStringExtra("recipient");
		String body = intent.getStringExtra("body");
		if (id != -1 && getResultCode() == Activity.RESULT_OK)
		{ 
			SMSList.append(id, SMSList.get(id, 0) + 1);
			Log.i("SMSSentChecker",
					id + ": " + SMSList.get(id) + " out of " + intent.getIntExtra("size", 0));
			if (SMSList.get(id) >= intent.getIntExtra("size", 1))
			{ 
				manageSuccessfullySentSMS(id, recipient, body);
			} 
		} 
		else if (id != -1)
		{ 
			manageFailedSMSSending(id);
		} 
	} 
 
	/** 
	 * @param id