You need to sign in or sign up before continuing.
Commit f89c234f authored by liuyang's avatar liuyang

APK图片抓取识别及轮播流地址抓取, 分离service和界面,避免程序在后台被杀

#BYLSERVER-1438
parent 800f67e4
......@@ -178,6 +178,9 @@ class MainActivity : AppCompatActivity(), IAppBaseCallback {
val intent = Intent(Constants.ACTION_LOCAL_SERVICE)
intent.putExtra(Constants.KEY_CMD, Constants.CMD_START)
sendBroadcast(intent)
Toast.makeText(this, "开始执行监播任务,本应用转至后台", Toast.LENGTH_SHORT).show()
finish()
}
private fun stopRobot() {
......
......@@ -48,7 +48,7 @@ class BylRobotService: Service(), IAppBaseCallback {
super.onCreate()
FtpManager.instance.start()
initBroadcast()
requestAppList()
// requestAppList()
}
private fun initBroadcast() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment