@Override protected void onDestroy() { super.onDestroy(); endTime = new Date(); GetHtml.sendInfo2ServerByThread( Tool.getActivitydurationInfo2Server(this.getClass().getSimpleName(), startTime, endTime)); }
@Override public void onClick(View v) { switch (v.getId()) { case R.id.confirm_feedback_button: String title = title_edittext.getText().toString().trim(); String content = content_edittext.getText().toString().trim(); String contact = contact_edittext.getText().toString().trim(); Log.d("Send2Server", Tool.getfeedbackInfo2Server(title, content, contact)); GetHtml.sendInfo2ServerByThread(Tool.getfeedbackInfo2Server(title, content, contact)); break; } }