// Path: app/src/ee/ioc/phon/android/arvutaja/command/Command.java
// public interface Command {
// 
// 	Intent getIntent() throws CommandParseException;
// 
// 	/**
// 	 * <p>Returns a message that helps the user to resolve the situation
// 	 * where the command (intent) cannot be executed because the corresponding
// 	 * activity is not installed.</p>
// 	 *
// 	 * @return suggestion for an activity
// 	 */
// 	Uri getSuggestion();
// 
// 	String getCommand();
// 
// 	/**
// 	 * <p>Evaluates the expression and returns the result.
// 	 * This method can throw various exceptions.</p>
// 	 *
// 	 * @return evaluation of the expression that was given to the constructor
// 	 */
// 	Object getOut();
// 
// 
// 	/**
// 	 * @return resource ID of the message to show in the UI for this command.
// 	 */
// 	int getMessage();
// }
// 
// Path: app/src/ee/ioc/phon/android/arvutaja/command/CommandParseException.java
// public class CommandParseException extends Exception {
// 
// }
// 
// Path: app/src/ee/ioc/phon/android/arvutaja/command/CommandParser.java
// public class CommandParser {
// 
// 	public static Command getCommand(Context context, String command) throws CommandParseException {
// 		if (command == null) {
// 			throw new CommandParseException();
// 		}
// 
// 		// We check expressions first because some can be mistaken for URIs.
// 		if (Expr.isCommand(command))
// 			return new Expr(command);
// 
// 		// In case the command is a URI then we launch ACTION_VIEW.
// 		if (View.isCommand(command))
// 			return new View(command);
// 
// 		if (Alarm.isCommand(command))
// 			return new Alarm(command, context.getString(R.string.alarmExtraMessage));
// 
// 		if (WebSearch.isCommand(command))
// 			return new WebSearch(command);
// 
// 		if (Dial.isCommand(command))
// 			return new Dial(command);
// 
// 		if (Search.isCommand(command))
// 			return new Search(command);
// 
// 		if (Unitconv.isCommand(command))
// 			return new Unitconv(command);
// 
// 		if (Direction.isCommand(command))
// 			return new Direction(command);
// 
// 		return new DefaultCommand(command);
// 	}
// 
// }
// 
// Path: app/src/ee/ioc/phon/android/arvutaja/provider/Query.java
// public class Query {
// 
//     public static final class Columns implements BaseColumns {
// 
//         public static final Uri CONTENT_URI = Uri.parse("content://" +
//                 QueriesContentProvider.AUTHORITY +
//                 "/" +
//                 QueriesContentProvider.QUERIES_TABLE_NAME);
// 
//         public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.ee.ioc.phon.android.arvutaja";
// 
//         public static final String TIMESTAMP = "TIMESTAMP";
//         public static final String UTTERANCE = "UTTERANCE";
//         public static final String TRANSLATION = "TRANSLATION";
//         public static final String EVALUATION = "EVALUATION";
//         public static final String LANG = "LANG";
//         public static final String TARGET_LANG = "TARGET_LANG";
//         public static final String MESSAGE = "MESSAGE";
// 
//         private Columns() {
//         }
//     }
// }


import android.widget.LinearLayout;
import android.widget.TextView;
import ee.ioc.phon.android.arvutaja.command.Command;
import ee.ioc.phon.android.arvutaja.command.CommandParseException;
import ee.ioc.phon.android.arvutaja.command.CommandParser;
import ee.ioc.phon.android.arvutaja.provider.Query;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.text.format.Time;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageButton;
						 */
					} else {
						// Otherwise show the internal evaluation
						tvEvaluation.setText(evaluation);
					}

					// Show a link to the external evaluator, or to the Play Store
					// if there is not external evaluator.
					final TextView tvView = (TextView) findViewById(R.id.tvView);
					String message = null;
					try {
						final Command command = CommandParser.getCommand(this, translation);
						final Intent intent = command.getIntent();
						if (getIntentActivities(intent).isEmpty()) {
							message = getString(R.string.errorIntentActivityNotPresent);
							llInterpretation.setOnClickListener(new OnClickListener() {
								@Override
								public void onClick(View v) {
									startForeignActivity(new Intent(Intent.ACTION_VIEW, command.getSuggestion()));
								}
							});
						} else {
							message = getString(command.getMessage());
							llInterpretation.setOnClickListener(new OnClickListener() {
								@Override
								public void onClick(View v) {
									startForeignActivity(intent);
								}
							});
						}
// Path: app/src/ee/ioc/phon/android/arvutaja/command/Command.java
// public interface Command {
// 
// 	Intent getIntent() throws CommandParseException;
// 
// 	/**
// 	 * <p>Returns a message that helps the user to resolve the situation
// 	 * where the command (intent) cannot be executed because the corresponding
// 	 * activity is not installed.</p>
// 	 *
// 	 * @return suggestion for an activity
// 	 */
// 	Uri getSuggestion();
// 
// 	String getCommand();
// 
// 	/**
// 	 * <p>Evaluates the expression and returns the result.
// 	 * This method can throw various exceptions.</p>
// 	 *
// 	 * @return evaluation of the expression that was given to the constructor
// 	 */
// 	Object getOut();
// 
// 
// 	/**
// 	 * @return resource ID of the message to show in the UI for this command.
// 	 */
// 	int getMessage();
// }
// 
// Path: app/src/ee/ioc/phon/android/arvutaja/command/CommandParseException.java
// public class CommandParseException extends Exception {
// 
// }
// 
// Path: app/src/ee/ioc/phon/android/arvutaja/command/CommandParser.java
// public class CommandParser {
// 
// 	public static Command getCommand(Context context, String command) throws CommandParseException {
// 		if (command == null) {
// 			throw new CommandParseException();
// 		}
// 
// 		// We check expressions first because some can be mistaken for URIs.
// 		if (Expr.isCommand(command))
// 			return new Expr(command);
// 
// 		// In case the command is a URI then we launch ACTION_VIEW.
// 		if (View.isCommand(command))
// 			return new View(command);
// 
// 		if (Alarm.isCommand(command))
// 			return new Alarm(command, context.getString(R.string.alarmExtraMessage));
// 
// 		if (WebSearch.isCommand(command))
// 			return new WebSearch(command);
// 
// 		if (Dial.isCommand(command))
// 			return new Dial(command);
// 
// 		if (Search.isCommand(command))
// 			return new Search(command);
// 
// 		if (Unitconv.isCommand(command))
// 			return new Unitconv(command);
// 
// 		if (Direction.isCommand(command))
// 			return new Direction(command);
// 
// 		return new DefaultCommand(command);
// 	}
// 
// }
// 
// Path: app/src/ee/ioc/phon/android/arvutaja/provider/Query.java
// public class Query {
// 
//     public static final class Columns implements BaseColumns {
// 
//         public static final Uri CONTENT_URI = Uri.parse("content://" +
//                 QueriesContentProvider.AUTHORITY +
//                 "/" +
//                 QueriesContentProvider.QUERIES_TABLE_NAME);
// 
//         public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.ee.ioc.phon.android.arvutaja";
// 
//         public static final String TIMESTAMP = "TIMESTAMP";
//         public static final String UTTERANCE = "UTTERANCE";
//         public static final String TRANSLATION = "TRANSLATION";
//         public static final String EVALUATION = "EVALUATION";
//         public static final String LANG = "LANG";
//         public static final String TARGET_LANG = "TARGET_LANG";
//         public static final String MESSAGE = "MESSAGE";
// 
//         private Columns() {
//         }
//     }
// }


// Path: app/src/ee/ioc/phon/android/arvutaja/ShowActivity.java
import android.widget.LinearLayout;
import android.widget.TextView;
import ee.ioc.phon.android.arvutaja.command.Command;
import ee.ioc.phon.android.arvutaja.command.CommandParseException;
import ee.ioc.phon.android.arvutaja.command.CommandParser;
import ee.ioc.phon.android.arvutaja.provider.Query;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.text.format.Time;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageButton;

						 */
					} else {
						// Otherwise show the internal evaluation
						tvEvaluation.setText(evaluation);
					}

					// Show a link to the external evaluator, or to the Play Store
					// if there is not external evaluator.
					final TextView tvView = (TextView) findViewById(R.id.tvView);
					String message = null;
					try {
						final Command command = CommandParser.getCommand(this, translation);
						final Intent intent = command.getIntent();
						if (getIntentActivities(intent).isEmpty()) {
							message = getString(R.string.errorIntentActivityNotPresent);
							llInterpretation.setOnClickListener(new OnClickListener() {
								@Override
								public void onClick(View v) {
									startForeignActivity(new Intent(Intent.ACTION_VIEW, command.getSuggestion()));
								}
							});
						} else {
							message = getString(command.getMessage());
							llInterpretation.setOnClickListener(new OnClickListener() {
								@Override
								public void onClick(View v) {
									startForeignActivity(intent);
								}
							});
						}
					} catch (CommandParseException e) {