| | |
| | | package com.okgoincar.netUtls |
| | | |
| | | import android.content.Context |
| | | import android.content.Intent |
| | | import android.os.CountDownTimer |
| | | import android.os.Handler |
| | | import android.os.Looper |
| | |
| | | clickActionError(msg) |
| | | } |
| | | }) |
| | | } |
| | | |
| | | fun sendAudio(context: Context,s: String?) { |
| | | val intent = Intent() |
| | | intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK |
| | | intent.action = "com.wisdom.gps.action.tts" |
| | | intent.putExtra("msg", s) |
| | | context.sendBroadcast(intent) |
| | | } |
| | | |
| | | |
| | |
| | | val timer by lazy { |
| | | object : CountDownTimer(timeDown, 1000) { |
| | | override fun onFinish() { |
| | | click(0) |
| | | } |
| | | |
| | | override fun onTick(millisUntilFinished: Long) { |