员工管理系统
代码说明:
实现了登陆,注册,添加删除员工信息 public class MainActivity extends Activity { private EditText etName; private EditText etSalary; private EditText etAge; private RadioGroup radioGroup; private Handler handler=new Handler(){ public void handleMessage(android.os.Message msg) { switch (msg.what) { case HANDLER_ADD_EMP_SUCCESS: Toast.makeText(MainActivity.this, "恭喜,添加成功", Toast.LENGTH_SHORT).show(); //启动ListEmpActivity finish(); break; case HANDLER_ADD_EMP_FAIL: Toast.makeText(MainActivity.this, "恭喜,添加失败:"+msg.obj, Toast.LENGTH_SHORT).show(); break; } } }; public static final int HANDLER_ADD_EMP_SUCCESS=0; public static final int HANDLER_ADD_EMP_FAIL=1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); setViews();
下载说明:请别用迅雷下载,失败请重下,重下不扣分!