From 1cc2c0f8319df86602da0ae1eed6456d4ff3b172 Mon Sep 17 00:00:00 2001 From: sjtufs Date: Fri, 30 Aug 2013 22:36:46 +0800 Subject: Deleted unused file --- .../src/com/macaroon/piztor/MainActivity.java | 133 --------------------- 1 file changed, 133 deletions(-) delete mode 100644 client/Piztor/src/com/macaroon/piztor/MainActivity.java diff --git a/client/Piztor/src/com/macaroon/piztor/MainActivity.java b/client/Piztor/src/com/macaroon/piztor/MainActivity.java deleted file mode 100644 index 483112d..0000000 --- a/client/Piztor/src/com/macaroon/piztor/MainActivity.java +++ /dev/null @@ -1,133 +0,0 @@ -package com.macaroon.piztor; - -import java.util.Vector; - -import android.app.Activity; -import android.os.Bundle; -import android.os.Handler; -import android.os.Message; -import android.view.Menu; -import android.view.View; - -public class MainActivity extends Activity { - public String token = ""; - public String uname = ""; - public int com; - public int sec; - public int step = 0; - Transam t; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - t = new Transam("192.168.1.171",2223,handler); - Thread thread = new Thread(t); - thread.start(); - - } - - Handler handler = new Handler() { - public void handleMessage(Message msg) { - switch (msg.what) { - case 0: - token = ((ResLogin) msg.obj ).t; - uname = ((ResLogin) msg.obj ).uinfo.username; - com = ((ResLogin) msg.obj ).uinfo.gid.company; - sec = ((ResLogin) msg.obj ).uinfo.gid.section; - System.out.println(com); - System.out.println(sec); - System.out.println(((ResLogin) msg.obj ).uinfo.sex); - for(int i=0;i<((ResLogin) msg.obj ).subscribeNumber;i++){ - System.out.println(((ResLogin) msg.obj ).sublist.get(i).company); - System.out.println(((ResLogin) msg.obj ).sublist.get(i).section); - } - System.out.println(token); - break; - case 2: - ResUserInfo r = (ResUserInfo) msg.obj ; - System.out.println(r.number); - for(int i=0;i ll = ((ResPushLocation)msg.obj).l; - for(int i=0;i