Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Toast mToastText;
- private void DelayStartRecord(RecordArg mRecordArg){
- new CountDownTimer(10*1000, 500) {
- public void onTick(long millisUntilFinished) {
- String s="seconds remaining: " + millisUntilFinished / 1000;
- if(mToastText==null){
- mToastText = Toast.makeText(SplashActivity.this, "", Toast.LENGTH_SHORT);
- }
- if(millisUntilFinished>=1000) {
- mToastText.setText(s);
- mToastText.show();
- }else{
- mToastText.cancel();
- }
- }
- public void onFinish() {
- mMediaRecorder.start();
- }
- }.start();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement