// Path: app/src/main/java/com/ubiqlog/core/ArchiveableCheck.java
// public class ArchiveableCheck {
// 	private IOManager ioman;
// 	private FileWriter writer;
// 	private String TAG = "ArchiveableCheck";
// 
// 	public void checkAllfile() {
// 		try {
// 			File dir = new File(Setting.LOG_FOLDER);
// 			if (dir.isDirectory()) {
// 				Log.e(TAG, "---------YES YES IT IS DIRECTORY");
// 				File archFile = new File(Setting.LOG_FOLDER + "/"+ Setting.ARCH_FILE);
// 				writer = new FileWriter(archFile, true);
// 				if (!archFile.exists()) {
// 					archFile.createNewFile();
// 				}
// 
// 				// writer.append(inArr.get(i) +
// 				// System.getProperty("line.separator"));
// 				File folder = new File(Setting.LOG_FOLDER);
// 				File[] listOfFiles = folder.listFiles();
// 				if (listOfFiles != null && listOfFiles.length > 0) {
// 					String[] fileNames = new String[listOfFiles.length];
// 					for (int i = 0; i < listOfFiles.length; i++) {
// 						String tmpName = listOfFiles[i].getName();
// 						if (!(tmpName.substring(tmpName.length() - 3,tmpName.length()).equalsIgnoreCase("txt") || 
// 								tmpName.substring(tmpName.length() - 3,tmpName.length()).equalsIgnoreCase("log"))) {
// 							String post = tmpName.substring(tmpName.length() - 3, tmpName.length());
// 							boolean ispreservable = false;
// 							for (int j = 0; j < Setting.PRESERVABLE.length; j++) {
// 								if (post.equalsIgnoreCase(Setting.PRESERVABLE[j])) {
// 									writer.append("file_name:"+ tmpName+ ", preservable:yes"+ System.getProperty("line.separator"));
// 									ispreservable = true;
// 									break;
// 								} else if (!(ispreservable)) {
// 									writer.append("file_name:"+ tmpName+ ", preservable:no"+ System.getProperty("line.separator"));
// 									break;
// 								}
// 							}
// 						}
// 					}
// 				}
// 				writer.flush();
// 				writer.close();
// 				writer = null;
// 			}
// 		} catch (IOException e) {
// 			// TODO Auto-generated catch block
// 			e.printStackTrace();
// 		}
// 	}
// }


import com.ubiqlog.core.ArchiveableCheck;
import android.content.Context;
import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TableLayout;
import android.widget.TextView;
			addView(man);
		}
	};
	
	DataManagementUI.OnClosedListener dataManagementClosed = new DataManagementUI.OnClosedListener() {
		
		//@Override
		public void onClosed() {
			LoadDefaultContent();			
		}
	};

	private View.OnClickListener btnNetworkListener = new View.OnClickListener() {
		public void onClick(View v) {
		NetworkSettingsUI man = new NetworkSettingsUI(ctx, networkSettingsClosed);
		    
			removeAllViews();
			man.setPadding(10, 10, 10, 10);
			addView(man);
		}
	};
	
	NetworkSettingsUI.OnClosedListener networkSettingsClosed = new NetworkSettingsUI.OnClosedListener() {
		public void onClosed() {
			LoadDefaultContent();			
		}
	};

	private View.OnClickListener btnArchiveListener = new View.OnClickListener() {
		public void onClick(View v) {
// Path: app/src/main/java/com/ubiqlog/core/ArchiveableCheck.java
// public class ArchiveableCheck {
// 	private IOManager ioman;
// 	private FileWriter writer;
// 	private String TAG = "ArchiveableCheck";
// 
// 	public void checkAllfile() {
// 		try {
// 			File dir = new File(Setting.LOG_FOLDER);
// 			if (dir.isDirectory()) {
// 				Log.e(TAG, "---------YES YES IT IS DIRECTORY");
// 				File archFile = new File(Setting.LOG_FOLDER + "/"+ Setting.ARCH_FILE);
// 				writer = new FileWriter(archFile, true);
// 				if (!archFile.exists()) {
// 					archFile.createNewFile();
// 				}
// 
// 				// writer.append(inArr.get(i) +
// 				// System.getProperty("line.separator"));
// 				File folder = new File(Setting.LOG_FOLDER);
// 				File[] listOfFiles = folder.listFiles();
// 				if (listOfFiles != null && listOfFiles.length > 0) {
// 					String[] fileNames = new String[listOfFiles.length];
// 					for (int i = 0; i < listOfFiles.length; i++) {
// 						String tmpName = listOfFiles[i].getName();
// 						if (!(tmpName.substring(tmpName.length() - 3,tmpName.length()).equalsIgnoreCase("txt") || 
// 								tmpName.substring(tmpName.length() - 3,tmpName.length()).equalsIgnoreCase("log"))) {
// 							String post = tmpName.substring(tmpName.length() - 3, tmpName.length());
// 							boolean ispreservable = false;
// 							for (int j = 0; j < Setting.PRESERVABLE.length; j++) {
// 								if (post.equalsIgnoreCase(Setting.PRESERVABLE[j])) {
// 									writer.append("file_name:"+ tmpName+ ", preservable:yes"+ System.getProperty("line.separator"));
// 									ispreservable = true;
// 									break;
// 								} else if (!(ispreservable)) {
// 									writer.append("file_name:"+ tmpName+ ", preservable:no"+ System.getProperty("line.separator"));
// 									break;
// 								}
// 							}
// 						}
// 					}
// 				}
// 				writer.flush();
// 				writer.close();
// 				writer = null;
// 			}
// 		} catch (IOException e) {
// 			// TODO Auto-generated catch block
// 			e.printStackTrace();
// 		}
// 	}
// }


// Path: app/src/main/java/com/ubiqlog/ui/SettingUI.java
import com.ubiqlog.core.ArchiveableCheck;
import android.content.Context;
import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.LinearLayout;
import android.widget.TableLayout;
import android.widget.TextView;

			addView(man);
		}
	};
	
	DataManagementUI.OnClosedListener dataManagementClosed = new DataManagementUI.OnClosedListener() {
		
		//@Override
		public void onClosed() {
			LoadDefaultContent();			
		}
	};

	private View.OnClickListener btnNetworkListener = new View.OnClickListener() {
		public void onClick(View v) {
		NetworkSettingsUI man = new NetworkSettingsUI(ctx, networkSettingsClosed);
		    
			removeAllViews();
			man.setPadding(10, 10, 10, 10);
			addView(man);
		}
	};
	
	NetworkSettingsUI.OnClosedListener networkSettingsClosed = new NetworkSettingsUI.OnClosedListener() {
		public void onClosed() {
			LoadDefaultContent();			
		}
	};

	private View.OnClickListener btnArchiveListener = new View.OnClickListener() {
		public void onClick(View v) {
			ArchiveableCheck arch = new ArchiveableCheck();