// Path: java/anyremote/client/android/util/InfoMessage.java
// public class InfoMessage {
// 	public int id;
// 	public int stage;
// }
// 
// Path: java/anyremote/client/android/util/ProtocolMessage.java
// public class ProtocolMessage {
// 	public static final int FULL     = 0;
// 	public static final int FIRST    = 1;
// 	public static final int INTERMED = 2;
// 	public static final int LAST     = 3;
// 	
// 	public int id;
// 	public int stage;
// 	public Vector tokens;
// }


import android.view.KeyEvent;
import android.view.GestureDetector.OnGestureListener;
import android.view.GestureDetector;
import android.widget.TextView;
import anyremote.client.android.util.InfoMessage;
import anyremote.client.android.util.ProtocolMessage;
import anyremote.client.android.R;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;
				mailIntent.putExtra(Intent.EXTRA_TEXT, anyRemote.logData.toString());

				startActivity(Intent.createChooser(mailIntent, "Bug report"));
			}
		} else {
			if (command.equals(anyRemote.protocol.context.getString(R.string.back_item))) {
				command = "Back";  // avoid national alphabets
			}
			anyRemote.protocol.queueCommand(command);
		}
	}

	// Set(text,add,title,_text_)		3+text
	// Set(text,replace,title,_text_)	3+text
	// Set(text,fg|bg,r,g,b)		6
	// Set(text,font,small|medium|large)	3
	// Set(text,close[,clear])		2 or 3
	// Set(text,wrap,on|off)		3
	// Set(text,show)			2
	public void handleEvent(InfoMessage data) {
		
		log("handleEvent " + Dispatcher.cmdStr(data.id) + " " + data.stage);
		
		if (isLog) {
            if (data.id == Dispatcher.CMD_CLOSE) {
            	doFinish("");
            	return;
            }
	    }
	
// Path: java/anyremote/client/android/util/InfoMessage.java
// public class InfoMessage {
// 	public int id;
// 	public int stage;
// }
// 
// Path: java/anyremote/client/android/util/ProtocolMessage.java
// public class ProtocolMessage {
// 	public static final int FULL     = 0;
// 	public static final int FIRST    = 1;
// 	public static final int INTERMED = 2;
// 	public static final int LAST     = 3;
// 	
// 	public int id;
// 	public int stage;
// 	public Vector tokens;
// }


// Path: java/anyremote/client/android/TextScreen.java
import android.view.KeyEvent;
import android.view.GestureDetector.OnGestureListener;
import android.view.GestureDetector;
import android.widget.TextView;
import anyremote.client.android.util.InfoMessage;
import anyremote.client.android.util.ProtocolMessage;
import anyremote.client.android.R;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.ContextMenu;
import android.view.ContextMenu.ContextMenuInfo;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.view.View;

				mailIntent.putExtra(Intent.EXTRA_TEXT, anyRemote.logData.toString());

				startActivity(Intent.createChooser(mailIntent, "Bug report"));
			}
		} else {
			if (command.equals(anyRemote.protocol.context.getString(R.string.back_item))) {
				command = "Back";  // avoid national alphabets
			}
			anyRemote.protocol.queueCommand(command);
		}
	}

	// Set(text,add,title,_text_)		3+text
	// Set(text,replace,title,_text_)	3+text
	// Set(text,fg|bg,r,g,b)		6
	// Set(text,font,small|medium|large)	3
	// Set(text,close[,clear])		2 or 3
	// Set(text,wrap,on|off)		3
	// Set(text,show)			2
	public void handleEvent(InfoMessage data) {
		
		log("handleEvent " + Dispatcher.cmdStr(data.id) + " " + data.stage);
		
		if (isLog) {
            if (data.id == Dispatcher.CMD_CLOSE) {
            	doFinish("");
            	return;
            }
	    }
	
    	if (data.stage == ProtocolMessage.FULL || data.stage == ProtocolMessage.FIRST) {