// Path: src/at/zweng/bankomatinfos/ui/AboutDialogFragment.java
// public class AboutDialogFragment extends DialogFragment {
// 
// 	@Override
// 	public View onCreateView(LayoutInflater inflater, ViewGroup container,
// 			Bundle savedInstanceState) {
// 		View v = inflater.inflate(R.layout.fragment_about_dialog, container,
// 				false);
// 		getDialog().setTitle(R.string.about_dialog_title);
// 		TextView aboutText = (TextView) v.findViewById(R.id.creditDialog_text);
// 		aboutText.setTextColor(getResources().getColor(
// 				android.R.color.primary_text_light));
// 		aboutText.setText(getAboutDialogText(getActivity()));
// 		// close button
// 		Button close = (Button) v.findViewById(R.id.btnCreditDialogOk);
// 		close.setOnClickListener(new OnClickListener() {
// 			@Override
// 			public void onClick(View v) {
// 				// When button is clicked, dismiss this dialog
// 				AboutDialogFragment.this.dismiss();
// 			}
// 		});
// 		return v;
// 	}
// }
// 
// Path: src/at/zweng/bankomatinfos/ui/ChangelogDialogFragment.java
// public class ChangelogDialogFragment extends DialogFragment {
// 
// 	private static final String ARG_KEY_SHOW_FULL_CHANGELOG = "show_full_changelog";
// 	private boolean _showFullChangelog;
// 
// 	/**
// 	 * Static method for creating a new instance
// 	 * 
// 	 * @param fullChangelog
// 	 *            <code>true</code> if full changelog should be shown,
// 	 *            <code>false</code> if only last chaanges should be shown
// 	 * @return
// 	 */
// 	public static ChangelogDialogFragment newInstance(boolean fullChangelog) {
// 		ChangelogDialogFragment f = new ChangelogDialogFragment();
// 		Bundle args = new Bundle();
// 		args.putBoolean(ARG_KEY_SHOW_FULL_CHANGELOG, fullChangelog);
// 		f.setArguments(args);
// 		return f;
// 	}
// 
// 	@Override
// 	public void onCreate(Bundle savedInstanceState) {
// 		super.onCreate(savedInstanceState);
// 		if (getArguments() != null) {
// 			_showFullChangelog = getArguments().getBoolean(
// 					ARG_KEY_SHOW_FULL_CHANGELOG);
// 		} else {
// 			_showFullChangelog = true;
// 		}
// 	}
// 
// 	@Override
// 	public Dialog onCreateDialog(Bundle savedInstanceState) {
// 		if (_showFullChangelog) {
// 			return new ChangeLog(getActivity()).getFullLogDialog();
// 		} else {
// 			return new ChangeLog(getActivity()).getLogDialog();
// 		}
// 	}
// }


import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.nio.ByteBuffer;
import java.security.InvalidParameterException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.Locale;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.DialogFragment;
import android.app.FragmentManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.text.Html;
import android.text.Spanned;
import android.util.Log;
import at.zweng.bankomatinfos.ui.AboutDialogFragment;
import at.zweng.bankomatinfos.ui.ChangelogDialogFragment;
import at.zweng.bankomatinfos2.R;

	 * @param hex
	 * @return
	 */
	public static String hex2Ascii(String hex) {
		hex.replaceAll(" ", "");
		StringBuilder output = new StringBuilder();
		for (int i = 0; i < hex.length(); i += 2) {
			String str = hex.substring(i, i + 2);
			output.append((char) Integer.parseInt(str, 16));
		}
		return output.toString();
	}

	/**
	 * The length of the returned array depends on the size of the int
	 * 
	 * @param value
	 * @return
	 */
	public static byte[] intToByteArray(int value) {
		ByteArrayOutputStream baos = new ByteArrayOutputStream();

		byte one = (byte) (value >>> 24);
		byte two = (byte) (value >>> 16);
		byte three = (byte) (value >>> 8);
		byte four = (byte) (value);

		boolean found = false;

		if (one > 0x00) {

// Path: src/at/zweng/bankomatinfos/ui/AboutDialogFragment.java
// public class AboutDialogFragment extends DialogFragment {
// 
// 	@Override
// 	public View onCreateView(LayoutInflater inflater, ViewGroup container,
// 			Bundle savedInstanceState) {
// 		View v = inflater.inflate(R.layout.fragment_about_dialog, container,
// 				false);
// 		getDialog().setTitle(R.string.about_dialog_title);
// 		TextView aboutText = (TextView) v.findViewById(R.id.creditDialog_text);
// 		aboutText.setTextColor(getResources().getColor(
// 				android.R.color.primary_text_light));
// 		aboutText.setText(getAboutDialogText(getActivity()));
// 		// close button
// 		Button close = (Button) v.findViewById(R.id.btnCreditDialogOk);
// 		close.setOnClickListener(new OnClickListener() {
// 			@Override
// 			public void onClick(View v) {
// 				// When button is clicked, dismiss this dialog
// 				AboutDialogFragment.this.dismiss();
// 			}
// 		});
// 		return v;
// 	}
// }
// 
// Path: src/at/zweng/bankomatinfos/ui/ChangelogDialogFragment.java
// public class ChangelogDialogFragment extends DialogFragment {
// 
// 	private static final String ARG_KEY_SHOW_FULL_CHANGELOG = "show_full_changelog";
// 	private boolean _showFullChangelog;
// 
// 	/**
// 	 * Static method for creating a new instance
// 	 * 
// 	 * @param fullChangelog
// 	 *            <code>true</code> if full changelog should be shown,
// 	 *            <code>false</code> if only last chaanges should be shown
// 	 * @return
// 	 */
// 	public static ChangelogDialogFragment newInstance(boolean fullChangelog) {
// 		ChangelogDialogFragment f = new ChangelogDialogFragment();
// 		Bundle args = new Bundle();
// 		args.putBoolean(ARG_KEY_SHOW_FULL_CHANGELOG, fullChangelog);
// 		f.setArguments(args);
// 		return f;
// 	}
// 
// 	@Override
// 	public void onCreate(Bundle savedInstanceState) {
// 		super.onCreate(savedInstanceState);
// 		if (getArguments() != null) {
// 			_showFullChangelog = getArguments().getBoolean(
// 					ARG_KEY_SHOW_FULL_CHANGELOG);
// 		} else {
// 			_showFullChangelog = true;
// 		}
// 	}
// 
// 	@Override
// 	public Dialog onCreateDialog(Bundle savedInstanceState) {
// 		if (_showFullChangelog) {
// 			return new ChangeLog(getActivity()).getFullLogDialog();
// 		} else {
// 			return new ChangeLog(getActivity()).getLogDialog();
// 		}
// 	}
// }


// Path: src/at/zweng/bankomatinfos/util/Utils.java
import java.io.ByteArrayOutputStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.nio.ByteBuffer;
import java.security.InvalidParameterException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.Locale;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.DialogFragment;
import android.app.FragmentManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.text.Html;
import android.text.Spanned;
import android.util.Log;
import at.zweng.bankomatinfos.ui.AboutDialogFragment;
import at.zweng.bankomatinfos.ui.ChangelogDialogFragment;
import at.zweng.bankomatinfos2.R;

	 * @param hex
	 * @return
	 */
	public static String hex2Ascii(String hex) {
		hex.replaceAll(" ", "");
		StringBuilder output = new StringBuilder();
		for (int i = 0; i < hex.length(); i += 2) {
			String str = hex.substring(i, i + 2);
			output.append((char) Integer.parseInt(str, 16));
		}
		return output.toString();
	}

	/**
	 * The length of the returned array depends on the size of the int
	 * 
	 * @param value
	 * @return
	 */
	public static byte[] intToByteArray(int value) {
		ByteArrayOutputStream baos = new ByteArrayOutputStream();

		byte one = (byte) (value >>> 24);
		byte two = (byte) (value >>> 16);
		byte three = (byte) (value >>> 8);
		byte four = (byte) (value);

		boolean found = false;

		if (one > 0x00) {

			baos.write(one);
