Code example for ArrayDeque

Methods: addLast

0
		EventStruct(String eventName, String EventValue)
		{ 
			Event = new BasicNameValuePair(eventName, EventValue);
			LocalTime = new BasicNameValuePair("TimeStamp", DateFormat.getDateTimeInstance().format(new Date()));
			Time = new BasicNameValuePair("Time", Long.toString(System.currentTimeMillis()));
			mLogStack.addLast(eventName + ";" + EventValue);
			mLogStack.addLast("TimeStamp" + ";" + DateFormat.getDateTimeInstance().format(new Date()));
			mLogStack.addLast("Time" + ";" + Long.toString(System.currentTimeMillis()));
		} 
	} 
	 
	/** 
	 *  
	 * Class for sending logs to the server 
	 * 
	 */ 
	class RequestTask extends Thread
	{ 
		private List<NameValuePair> mPostParams = new ArrayList<NameValuePair>();
		private boolean mRun = true;