public class RightsActivity {
    private static final int LOCKED = 0x0;    
    private static final int ERROR = 0x1;
    private static final int IO_ERROR = 0x2;
    private static final int NOT_LOCKED = 0x3;
    
    private android.os.Handler rightsHandler;
    
    private void finish();
    public RightsActivity(){
        super();
        rightsHandler = new android.os.Handler(){
            public void handleMessage(android.os.Message msg){
                switch(msg.what){
                    case 0:
                        Toast.makeText("This application is locked to another device").show();
                        finish();
                        break;
                    case 1:
                        Toast.makeText("Error deteciting lock on device. Is network active?").show();
                        finish();
                        break;
                    case 2:
                        Toast.makeText("There was a problem with the network").show();
                        finish();
                        break;
                    case 3:
                        break;
                }
            }
        };
    }
}