|
|
@@ -15,7 +15,6 @@ import android.view.MenuItem;
|
|
|
import android.view.View;
|
|
|
import android.widget.Button;
|
|
|
import android.widget.TextView;
|
|
|
-import android.widget.Toast;
|
|
|
|
|
|
import com.xzjmyk.pm.activity.R;
|
|
|
import com.xzjmyk.pm.activity.ui.MainActivity;
|
|
|
@@ -52,6 +51,7 @@ public class MyPedometerActivity extends BaseActivity implements Handler.Callbac
|
|
|
}
|
|
|
};
|
|
|
private Button close_step;
|
|
|
+ private Button open_step;
|
|
|
|
|
|
@Override
|
|
|
public boolean handleMessage(Message msg) {
|
|
|
@@ -89,12 +89,18 @@ public class MyPedometerActivity extends BaseActivity implements Handler.Callbac
|
|
|
super.onCreate(savedInstanceState);
|
|
|
setContentView(R.layout.activity_pedometer);
|
|
|
init();
|
|
|
- Toast.makeText(MyPedometerActivity.this, "您已开启UU运动,UU将记录您的运动步数并告知在通知栏", Toast.LENGTH_LONG).show();
|
|
|
|
|
|
}
|
|
|
private void init() {
|
|
|
text_step = (TextView) findViewById(R.id.text_step);
|
|
|
close_step = (Button) findViewById(R.id.close_uu_step_bt);
|
|
|
+ open_step = (Button) findViewById(R.id.open_uu_step_bt);
|
|
|
+ open_step.setOnClickListener(new View.OnClickListener() {
|
|
|
+ @Override
|
|
|
+ public void onClick(View v) {
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
delayHandler = new Handler(this);
|
|
|
|
|
|
close_step.setOnClickListener(new View.OnClickListener() {
|