Code example for Stack

Methods: clear, push

0
	 * This will return a string of the current home path. 
	 * @return	the home directory 
	 */ 
	public ArrayList<String> getHomeDir(int root_type) {
		//This will eventually be placed as a settings item 
		mPathStack.clear();
		mPathStack.push("/");
		switch(root_type)
			{ 
			case ROOT_SDCARD:
				mPathStack.push(sdcardPath);
				break; 
				 
			case ROOT_USBHOST:
				mPathStack.push(usbPath);
				break; 
				 
			case ROOT_FLASH:
			default: 
				mPathStack.push(flashPath);
				break; 
				 
			}