blob: c9769e45d97c48e0bbf2b0952e5cbf65d55d1e73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package mx.trackermap.TrackerMap.android.details
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import mx.trackermap.TrackerMap.android.databinding.DetailsActivityBinding
class DetailsActivity: AppCompatActivity() {
private var _binding: DetailsActivityBinding? = null
private val binding get() = _binding!!
companion object {
val DEVICE_ID_EXTRA = "device_id"
val ACTION_EXTRA = "action"
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
_binding = DetailsActivityBinding.inflate(layoutInflater)
setContentView(binding.root)
Log.d("DetailsActivity", "Device ID - ${intent.getIntExtra(DEVICE_ID_EXTRA, 0)}")
Log.d("DetailsActivity", "Device ID - ${intent.getSerializableExtra(ACTION_EXTRA)}")
}
override fun onDestroy() {
super.onDestroy()
_binding = null
}
}
|