// Path: bst/src/main/java/ru/redsolution/bst/data/Debugger.java
// public class Debugger {
// 
// 	public static final boolean ENABLED;
// 
// 	private static Method _getApplicationInfo = null;
// 
// 	static {
// 		initCompatibility();
// 		ENABLED = (getApplicationInfo(BST.getInstance()).flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
// 	};
// 
// 	private static void initCompatibility() {
// 		try {
// 			_getApplicationInfo = Context.class.getMethod("getApplicationInfo",
// 					new Class[] {});
// 		} catch (NoSuchMethodException nsme) {
// 		}
// 	}
// 
// 	private static ApplicationInfo getApplicationInfo(Context context) {
// 		ApplicationInfo applicationInfo;
// 		if (_getApplicationInfo != null) {
// 			try {
// 				applicationInfo = (ApplicationInfo) _getApplicationInfo
// 						.invoke(context);
// 			} catch (InvocationTargetException e) {
// 				Throwable cause = e.getCause();
// 				if (cause instanceof RuntimeException) {
// 					throw (RuntimeException) cause;
// 				} else if (cause instanceof Error) {
// 					throw (Error) cause;
// 				} else {
// 					throw new RuntimeException(e);
// 				}
// 			} catch (IllegalAccessException ie) {
// 				throw new RuntimeException(ie);
// 			}
// 		} else {
// 			try {
// 				applicationInfo = context.getPackageManager()
// 						.getApplicationInfo(context.getPackageName(), 0);
// 			} catch (NameNotFoundException e) {
// 				applicationInfo = new ApplicationInfo();
// 				applicationInfo.flags = 0; // Disabled
// 			}
// 		}
// 		return applicationInfo;
// 	}
// 
// 	private Debugger() {
// 	}
// 
// }


import ru.redsolution.bst.R;
import ru.redsolution.bst.data.Debugger;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
/**
 * Copyright (c) 2013, Redsolution LTD. All rights reserved.
 *
 * This file is part of Barcode Scanner Terminal project;
 * you can redistribute it and/or modify it under the terms of
 *
 * Barcode Scanner Terminal is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License,
 * along with this program. If not, see http://www.gnu.org/licenses/.
 */
package ru.redsolution.bst.ui;


/**
 * О программе.
 * 
 * @author alexander.ivanov
 * 
 */
public class AboutActivity extends Activity implements OnClickListener {

	private static final long HIDER_DELAY = 3000;

	public static final String ACTION_WELLCOME_SCREEN = "WELLCOME_SCREEN";

	private static final String REDSOLUTION_URL = "http://www.redsolution.ru/nashi-proekty/moj-sklad";

	private final Runnable hider = new Runnable() {

		@Override
		public void run() {
			finish();
		}

	};

	private Handler handler;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
		handler = new Handler();
		findViewById(R.id.root).setOnClickListener(this);
		findViewById(R.id.redsolution).setOnClickListener(this);
		findViewById(R.id.debug_enabled).setVisibility(
// Path: bst/src/main/java/ru/redsolution/bst/data/Debugger.java
// public class Debugger {
// 
// 	public static final boolean ENABLED;
// 
// 	private static Method _getApplicationInfo = null;
// 
// 	static {
// 		initCompatibility();
// 		ENABLED = (getApplicationInfo(BST.getInstance()).flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
// 	};
// 
// 	private static void initCompatibility() {
// 		try {
// 			_getApplicationInfo = Context.class.getMethod("getApplicationInfo",
// 					new Class[] {});
// 		} catch (NoSuchMethodException nsme) {
// 		}
// 	}
// 
// 	private static ApplicationInfo getApplicationInfo(Context context) {
// 		ApplicationInfo applicationInfo;
// 		if (_getApplicationInfo != null) {
// 			try {
// 				applicationInfo = (ApplicationInfo) _getApplicationInfo
// 						.invoke(context);
// 			} catch (InvocationTargetException e) {
// 				Throwable cause = e.getCause();
// 				if (cause instanceof RuntimeException) {
// 					throw (RuntimeException) cause;
// 				} else if (cause instanceof Error) {
// 					throw (Error) cause;
// 				} else {
// 					throw new RuntimeException(e);
// 				}
// 			} catch (IllegalAccessException ie) {
// 				throw new RuntimeException(ie);
// 			}
// 		} else {
// 			try {
// 				applicationInfo = context.getPackageManager()
// 						.getApplicationInfo(context.getPackageName(), 0);
// 			} catch (NameNotFoundException e) {
// 				applicationInfo = new ApplicationInfo();
// 				applicationInfo.flags = 0; // Disabled
// 			}
// 		}
// 		return applicationInfo;
// 	}
// 
// 	private Debugger() {
// 	}
// 
// }


// Path: bst/src/main/java/ru/redsolution/bst/ui/AboutActivity.java
import ru.redsolution.bst.R;
import ru.redsolution.bst.data.Debugger;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;

/**
 * Copyright (c) 2013, Redsolution LTD. All rights reserved.
 *
 * This file is part of Barcode Scanner Terminal project;
 * you can redistribute it and/or modify it under the terms of
 *
 * Barcode Scanner Terminal is distributed in the hope that it will be
 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License,
 * along with this program. If not, see http://www.gnu.org/licenses/.
 */
package ru.redsolution.bst.ui;


/**
 * О программе.
 * 
 * @author alexander.ivanov
 * 
 */
public class AboutActivity extends Activity implements OnClickListener {

	private static final long HIDER_DELAY = 3000;

	public static final String ACTION_WELLCOME_SCREEN = "WELLCOME_SCREEN";

	private static final String REDSOLUTION_URL = "http://www.redsolution.ru/nashi-proekty/moj-sklad";

	private final Runnable hider = new Runnable() {

		@Override
		public void run() {
			finish();
		}

	};

	private Handler handler;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
		handler = new Handler();
		findViewById(R.id.root).setOnClickListener(this);
		findViewById(R.id.redsolution).setOnClickListener(this);
		findViewById(R.id.debug_enabled).setVisibility(
				Debugger.ENABLED ? View.VISIBLE : View.GONE);