	public void myClickHandler(View view) {
		switch (view.getId()) {
		case R.id.BacksideUpdaterButton:
			try {
				if (ALREADY_CHECKED == 0) {
					ALREADY_CHECKED = 1;
					textView.setText("");
					HttpClient client = new DefaultHttpClient();
					HttpGet request = new HttpGet(updateManifestUrl);
					HttpResponse response = client.execute(request);
					BufferedReader rd = new BufferedReader(new InputStreamReader(
							response.getEntity().getContent()));
					String line = rd.readLine();
					String[] separated = line.split(",");
					theDate = separated[0];
					theUrl = separated[1];
					theChangeLog = separated[2];
					theMD5 = separated[3];
					romName = separated[4];
					localFileName = "/download/"+romName;
					theFileSize = separated[5];
					upToDate = (Integer.parseInt(theDate) <  BUILD_DATE);
					String file = android.os.Environment.getExternalStorageDirectory().getPath() + localFileName;
					File f = new File(file);
					if (!upToDate) {
						if (f.exists()) {
							if (!checkFileSize(romName)){
								showCustomToast("The latest build is already downloaded\n\nClick the button to check the MD5 sum");
								textView.setText("Latest build is already downloaded.\n\nReady to check md5\n\nBe patient after clicking!");
								buttonTextView.setText("Check MD5 Now");
								ALREADY_CHECKED = 2;
							} else {
								showCustomToast("Download not yet complete\n\nCheck the notification dropdown\nfor download status.\n\nOr press back to exit the Updater,\ndelete the partially downloaded file,\nand restart Updater to try again.");
								textView.setText("Download not complete.\n\nCheck the notification dropdown\nand try again.\n\nIf you have an incomplete download,\ndelete the partially downloaded file,\nand try again.");
								buttonTextView.setText("Check Download Status");
								ALREADY_CHECKED = 2;
							}
						} else {
							textView.setText("Change Log "+theDate+"\n\n"+theChangeLog);
							showCustomToast("A new build is available:\n\nBACKside-IHO-VM670-"+theDate);
							buttonTextView.setText("Download Now");
						}
					} else {
						textView.setText("Current: "+BUILD_DATE+"\n\nAvailable: "+theDate+"\n\nCheck again later");
						buttonTextView.setText("Already Up To Date");
					}
				} else {
					if (ALREADY_CHECKED == 1){
						if(upToDate){
							System.exit(0);
						} else {
							ALREADY_CHECKED = 2;
							Intent downloadUpdate = new Intent(Intent.ACTION_VIEW);
							downloadUpdate.setData(Uri.parse(theUrl));
							startActivity(downloadUpdate);
							textView.setText("Wait for download to complete\n\nReboot into recovery\n\nWipe cache & dalvik cache\nThen flash the zip file");
							buttonTextView.setText("Check Download Status");
						}
					} else {
						downloadComplete = checkFileSize(romName);
						if (!(downloadComplete)) {
							if(checkMD5(theMD5, romName)){
								new AlertDialog.Builder(this)
								.setTitle("MD5 Verified!")
								.setIcon(R.drawable.download_complete_icon)
								.setMessage("Reboot into recovery,\nwipe cache & dalvik-cache,\nthen flash the zip file located\nin the download directory")
								.setPositiveButton("Reboot Recovery", new DialogInterface.OnClickListener() {
									public void onClick(DialogInterface dialog, int whichButton) {
										textView.setText("Rebooting into Recovery...");
										RebootCmd("reboot", "recovery");
									}
								})
								.setNegativeButton("Later", new DialogInterface.OnClickListener() {
									public void onClick(DialogInterface dialog, int whichButton) {
										textView.setText("Yummy Gingerbread!");
										System.exit(0);
										}
								}).show();
							} else {
								new AlertDialog.Builder(this)
								.setTitle("Download Error")
								.setIcon(R.drawable.md5_error)
								.setMessage("The downloaded file md5\n"+downloadMD5+"\ndoes not match the build\n"+theMD5+"\nTry downloading again!")
								.setPositiveButton("Download again", new DialogInterface.OnClickListener() {
									public void onClick(DialogInterface dialog, int whichButton) {
										ALREADY_CHECKED = 2;
										textView.setText("Wait for download to complete\n\nCheck the notification dropdown");
										buttonTextView.setText("Check Again");
										Intent downloadUpdate = new Intent(Intent.ACTION_VIEW);
										downloadUpdate.setData(Uri.parse(theUrl));
										startActivity(downloadUpdate);
										}
								})
								.setNegativeButton("Later", new DialogInterface.OnClickListener() {
										public void onClick(DialogInterface dialog, int whichButton) {
										textView.setText("Yummy Gingerbread!");
										System.exit(0);
										}
								}).show();
							}
						} else {
							ALREADY_CHECKED = 2;
							String file = android.os.Environment.getExternalStorageDirectory().getPath() + localFileName;
							File f = new File(file);
							if (f.exists()) {
								showCustomToast("Download not yet complete\n\nCheck the notification dropdown\nfor download status.\n\nOr press back to exit the Updater,\ndelete the partially downloaded file,\nand restart Updater to try again.");
							} else {
								ALREADY_CHECKED = 1;
								showCustomToast("Download has not started\n\nClick the button to try again now.");
								buttonTextView.setText("Download Now");
							}
						}
					}
				}
			}
			catch (Exception e) {
				System.out.println("Nay, did not work");
				textView.setText(e.getMessage());
				}
			break;
			}
		}

	public void myClickHandler(View view) {
		switch (view.getId()) {
		case R.id.BacksideUpdaterButton:
			try {
				if (ALREADY_CHECKED == 0) {
					ALREADY_CHECKED = 1;
					textView.setText("");
					HttpClient client = new DefaultHttpClient();
					HttpGet request = new HttpGet(updateManifestUrl);
					HttpResponse response = client.execute(request);
					BufferedReader rd = new BufferedReader(new InputStreamReader(
							response.getEntity().getContent()));
					String line = rd.readLine();
					String[] separated = line.split(",");
					theDate = separated[0];
					theUrl = separated[1];
					theChangeLog = separated[2];
					theMD5 = separated[3];
					romName = separated[4];
					localFileName = "/download/"+romName;
					theFileSize = separated[5];
					upToDate = (BUILD_DATE >= Integer.parseInt(theDate));
					String file = android.os.Environment.getExternalStorageDirectory().getPath() + localFileName;
					File f = new File(file);
					if (!upToDate) {
						if (f.exists()) {
							if (!checkFileSize(romName)){
								showCustomToast("The latest build is already downloaded\n\nClick the button to check the MD5 sum");
								textView.setText("Latest build is already downloaded.\n\nReady to check md5\n\nBe patient after clicking!");
								buttonTextView.setText("Check MD5 Now");
								ALREADY_CHECKED = 2;
							} else {
								showCustomToast("Download not yet complete\n\nCheck the notification dropdown\nfor download status.\n\nOr press back to exit the Updater,\ndelete the partially downloaded file,\nand restart Updater to try again.");
								textView.setText("Download not complete.\n\nCheck the notification dropdown\nand try again.\n\nIf you have an incomplete download,\ndelete the partially downloaded file,\nand try again.");
								buttonTextView.setText("Check Download Status");
								ALREADY_CHECKED = 2;
							}
						} else {
							textView.setText("Change Log "+theDate+"\n\n"+theChangeLog);
							showCustomToast("A new build is available:\n\nBACKside-IHO-VM670-"+theDate);
							buttonTextView.setText("Download Now");
						}
					} else {
						textView.setText("Current: "+BUILD_DATE+"\n\nAvailable: "+theDate+"\n\nCheck again later");
						buttonTextView.setText("Already Up To Date");
					}
				} else {
					if (ALREADY_CHECKED == 1){
						if(upToDate){
							System.exit(0);
						} else {
							ALREADY_CHECKED = 2;
							Intent downloadUpdate = new Intent(Intent.ACTION_VIEW);
							downloadUpdate.setData(Uri.parse(theUrl));
							startActivity(downloadUpdate);
							textView.setText("Wait for download to complete\n\nReboot into recovery\n\nWipe cache & dalvik cache\nThen flash the zip file");
							buttonTextView.setText("Check Download Status");
						}
					} else {
						downloadComplete = checkFileSize(romName);
						if (!(downloadComplete)) {
							if(checkMD5(theMD5, romName)){
								new AlertDialog.Builder(this)
								.setTitle("MD5 Verified!")
								.setIcon(R.drawable.download_complete_icon)
								.setMessage("Reboot into recovery,\nwipe cache & dalvik-cache,\nthen flash the zip file located\nin the download directory")
								.setPositiveButton("Reboot Recovery", new DialogInterface.OnClickListener() {
									public void onClick(DialogInterface dialog, int whichButton) {
										textView.setText("Rebooting into Recovery...");
										RebootCmd("reboot", "recovery");
									}
								})
								.setNegativeButton("Later", new DialogInterface.OnClickListener() {
									public void onClick(DialogInterface dialog, int whichButton) {
										textView.setText("Yummy Gingerbread!");
										System.exit(0);
										}
								}).show();
							} else {
								new AlertDialog.Builder(this)
								.setTitle("Download Error")
								.setIcon(R.drawable.md5_error)
								.setMessage("The downloaded file md5\n"+downloadMD5+"\ndoes not match the build\n"+theMD5+"\nTry downloading again!")
								.setPositiveButton("Download again", new DialogInterface.OnClickListener() {
									public void onClick(DialogInterface dialog, int whichButton) {
										ALREADY_CHECKED = 2;
										textView.setText("Wait for download to complete\n\nCheck the notification dropdown");
										buttonTextView.setText("Check Again");
										Intent downloadUpdate = new Intent(Intent.ACTION_VIEW);
										downloadUpdate.setData(Uri.parse(theUrl));
										startActivity(downloadUpdate);
										}
								})
								.setNegativeButton("Later", new DialogInterface.OnClickListener() {
										public void onClick(DialogInterface dialog, int whichButton) {
										textView.setText("Yummy Gingerbread!");
										System.exit(0);
										}
								}).show();
							}
						} else {
							ALREADY_CHECKED = 2;
							String file = android.os.Environment.getExternalStorageDirectory().getPath() + localFileName;
							File f = new File(file);
							if (f.exists()) {
								showCustomToast("Download not yet complete\n\nCheck the notification dropdown\nfor download status.\n\nOr press back to exit the Updater,\ndelete the partially downloaded file,\nand restart Updater to try again.");
							} else {
								ALREADY_CHECKED = 1;
								showCustomToast("Download has not started\n\nClick the button to try again now.");
								buttonTextView.setText("Download Now");
							}
						}
					}
				}
			}
			catch (Exception e) {
				System.out.println("Nay, did not work");
				textView.setText(e.getMessage());
				}
			break;
			}
		}
