-
Extends your activity with "DetectionActivity"
-
Add below dependency in your app level build.gradle:-
implementation 'com.varunjain.android:devicefreefall:1.0.0'
-
Use the below snipet to get the free fall count in your activity:-
countViewModel.countRepo.observe(this, Observer { textView.text = "Total Fall Count ${it}" })
- Room Database
- GreenDao Event Bus
- Kotlin lifecycle extention
- Calculating distance from what height the device falls down.