All Projects → savepopulation → Live Tools

savepopulation / Live Tools

Licence: apache-2.0
Live-Tools is a library project which aims to convert some Android features to LiveData

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Live Tools

Farmos
farmOS: A web-based farm record keeping application.
Stars: ✭ 380 (+406.67%)
Mutual labels:  sensors
Room Assistant
Presence tracking and more for automation on the room-level
Stars: ✭ 764 (+918.67%)
Mutual labels:  sensors
Robond Kinematics Project
Robotic Arm Pick & Place using ROS, RViz, Gazebo, and KUKA KR210
Stars: ✭ 39 (-48%)
Mutual labels:  rotation
Smarthome
@skalavala 👍 Nothing But Smarthome Stuff! - By Mahasri Kalavala
Stars: ✭ 437 (+482.67%)
Mutual labels:  sensors
Onboard Sdk
DJI Onboard SDK Official Repository
Stars: ✭ 669 (+792%)
Mutual labels:  sensors
Ntc thermistor
[For Arduino and STM32] Library for working with a NTC thermistor.
Stars: ✭ 19 (-74.67%)
Mutual labels:  sensors
Handeye calib camodocal
Easy to use and accurate hand eye calibration which has been working reliably for years (2016-present) with kinect, kinectv2, rgbd cameras, optical trackers, and several robots including the ur5 and kuka iiwa.
Stars: ✭ 364 (+385.33%)
Mutual labels:  rotation
Audi connect ha
Adds an audi connect integration to home assistant
Stars: ✭ 63 (-16%)
Mutual labels:  sensors
Shiny
A Xamarin Framework for Backgrounding & Device Hardware Services (iOS, Android, UWP, Tizen, tvOS, watchOS, & more coming soon)
Stars: ✭ 763 (+917.33%)
Mutual labels:  sensors
Rverify.js
✅❎ A lightweight image rotation verification plugin.
Stars: ✭ 33 (-56%)
Mutual labels:  rotation
Ipmitool
An open-source tool for controlling IPMI-enabled systems
Stars: ✭ 460 (+513.33%)
Mutual labels:  sensors
Awesome Robotics
A curated list of awesome links and software libraries that are useful for robots.
Stars: ✭ 478 (+537.33%)
Mutual labels:  sensors
Chama
Python package for sensor placement optimization
Stars: ✭ 23 (-69.33%)
Mutual labels:  sensors
R3det tensorflow
Code for AAAI 2021 paper: R3Det: Refined Single-Stage Detector with Feature Refinement for Rotating Object
Stars: ✭ 434 (+478.67%)
Mutual labels:  rotation
Qcopterremotecontrol
遙控板 RemoteControl,使用 STM32F407VG / STM32F411CE
Stars: ✭ 40 (-46.67%)
Mutual labels:  sensors
Stats
macOS system monitor in your menu bar
Stars: ✭ 7,134 (+9412%)
Mutual labels:  sensors
Osx Cpu Temp
Outputs current CPU temperature for OSX
Stars: ✭ 802 (+969.33%)
Mutual labels:  sensors
React Native Amazing Cropper
Image cropper for react native using Animated API
Stars: ✭ 67 (-10.67%)
Mutual labels:  rotation
Metawear Sampleapp Android
Sample Android app showcasing the sensors available on the MetaMotion / MetaWear boards
Stars: ✭ 42 (-44%)
Mutual labels:  sensors
Mycodo
An environmental monitoring and regulation system
Stars: ✭ 936 (+1148%)
Mutual labels:  sensors

Live-Tools

Live-Tools is a library project which aims to convert some Android device features to LiveData.

Live Tool List

  • Live Orientation: Observe orientation changes
  • Live Location: Observe user location (fine and coarse location together)
  • Live Battery: Observe battery level, plug state, scale and percentage
  • Live Media Selector: Observe taken photo or selected media URI.
  • Live Video Frames: Fetch Frame List (bitmaps) of given video path.

Usage

live-orientation

Observes orientation change even if device is forced to portrait mode. It works based on sensors.

OrientationLiveData(this)
      .observe(this, Observer {
           it?.let {
               Toast.makeText(this, it.name, Toast.LENGTH_SHORT).show()
           }
      })

live-location

Observes location changes. It observers coarse and fine location internally. If user's GPS setting is disabled, live-location notifies you about this. If location permission is needed, live-location checks this internally and notifies you about this.

locationLiveData = LocationLiveData(this)
locationLiveData.observe(this,
        Observer {
            when (it?.status) {
                LocationData.Status.PERMISSION_REQUIRED -> // request permission. (it.permissionList)
                LocationData.Status.ENABLE_SETTINGS -> //enable location settings (it.resolvableApiException)
                LocationData.Status.LOCATION_SUCCESS -> // location is ready to use (it.location)
            }
        })

//Start observing
locationLiveData.start()

live-battery

Observes battery changes, state, scale, level and plug info.

BatteryLiveData(this)
                .observe(this, Observer {
                    it?.let {
                        Toast.makeText(this, "Status: " + it.status +
                                " Plug: " + it.plug +
                                " Level: " + it.level +
                                " Scale: " + it.scale +
                                " Percentage " + it.percentage, Toast.LENGTH_LONG).show()
                    }
})

live-media-selector

Observes picked camera or gallery image uri.

MediaSelectorLiveData(this)
      .observe(this, Observer {
                when (it?.status) {
                    MediaData.Status.MEDIA_SUCCESS -> { it.uri }
                    MediaData.Status.PERMISSION_REQUIRED -> { it.permissionList }
                    MediaData.Status.ERROR -> { it.exception }
                }
            })
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
      super.onActivityResult(requestCode, resultCode, data)
      mediaSelectorLiveData.onActivityResult(requestCode, resultCode, data)
}
mediaSelectorLiveData.openCamera()
mediaSelectorLiveData.openGallery()

Live Video Frames

Observes video frames as bitmap list.

val videoFramesLiveData = VideoFramesLiveData(this)
videoFramesLiveData.retrieveFrames(SAMPLE_VIDEO_PATH)
videoFramesLiveData.observe(this, Observer {
      when (it?.status) {
          VideoData.Status.PERMISSION_REQUIRED -> requestStorage(it.permissionList)
          VideoData.Status.SUCCESS -> "{Use Your VideoData (Video Duration, Video Frames as Bitmap, etc.)}")
      }
})

Live - Memory Usage

Observes memory changes info.

 MemoryInfoLiveData(this)
                .observe(this, Observer { memoryInfo ->
                    when (memoryInfo) {
                        is LiveResult.LiveValue<MemoryInfoData> -> handleMemoryInfo(memoryInfo.value)
                    }

                })

Dependency

maven { url 'https://jitpack.io' }
dependencies {
    implementation 'com.github.savepopulation:live-tools:v1.0.1'
}

Contributors:

Mert Şimşek
Efe Budak
Taylan Sabırcan
Aykut Asil
Oğulcan Uçarsu
Tolga Bolatcan

List of Apps using Live-Tools:

Phone Lab

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].