迁移探路模块和tanlulib代码至此
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.zhidao.roadcondition.receiver
|
||||
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.util.Log
|
||||
import com.zhidao.roadcondition.service.MainService
|
||||
|
||||
class ShareRoadReceiver : BroadcastReceiver() {
|
||||
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
Log.d("MainService", "ShareRoadReceiver ------> intent.action = " + intent.action)
|
||||
if (intent.action == "com.zhidao.share.roadcondition.action") {
|
||||
var type = intent.getStringExtra("type")
|
||||
Log.d("MainService", "ShareRoadReceiver type ----> $type")
|
||||
MainService.launchService(context, type)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user