Baysafe - Baysafe App Built Using Kotlin

Related tags

App baysafe
Overview

Baysafe

Features

  1. Detects unsafe locations in the user's route either via Push Notifications or shown in map.
  2. Select and mark an area it as unsafe.
  3. S.O.S. button on clicking which the userโ€™s location would be shared with users.

Tech Stack

  • Native Android Kotlin
  • UI/UX - Figma OR Adobe XD
  • Google Places SDK
  • Navigation
  • View Mode
  • Live Data
  • Data Store Preferences
  • Data Binding
  • Coroutines
  • Retrofit

Working

  • The core of the app is the Google-Places SDK. A user can create a geofence, with a selected radius(in the range of 1km-10km) to mark it as unsafe. Once marked unsafe, a red region forms around the geofence.
  • The corresponding Latitude and Longitude and radius gets stored in an object of class GeofenceDetails, as well as gets uploaded to the Firebase Realtime-Database.

Activating the Geofence

The data is actually the longitude and latitude of the region, and radius of the Geofence. This is how the geofence is activated:
val geofence = Geofence.Builder()
                .setRequestId(position.toString())
                .setCircularRegion(
                    location.latitude,
                    location.longitude,
                    radius
                )
                .setExpirationDuration(Geofence.NEVER_EXPIRE)
                .setTransitionTypes(
                    Geofence.GEOFENCE_TRANSITION_ENTER or Geofence.GEOFENCE_TRANSITION_EXIT or Geofence.GEOFENCE_TRANSITION_DWELL
                )

Uploading the data

The following snippet of code is used to add the selected region to firebase
fun addGeofence(location: LatLng, radius: Double) {
        //Upload on Firebase
        DataDetails.geofencesList.clear()
        val model= GeofenceDetails2(location.latitude,location.longitude,radius.toDouble())
        val uniqueID = mDatabaseRef.push().key

        if (uniqueID != null) {
            mDatabaseRef.child(uniqueID).setValue(model).addOnSuccessListener {
                Log.d("SharedViewModel", "Geofence successfully added")
            }
        }
    }
You might also like...
A simple movie app, built using leanback.
A simple movie app, built using leanback.

leancorn A simple movie app using Leanback ๐ŸŽฅ Demo Kapture.2021-10-10.at.16.02.48.mp4 ๐Ÿ‘จ๐Ÿฝโ€๐Ÿ’ป Tech Stack What? How? Architecture MVVM Navigation Jetpa

A wallpaper app Built with MVVM clean architecture using pixabay api
A wallpaper app Built with MVVM clean architecture using pixabay api

wallpaper get your API key at pixabay in order to test the APP! This project demonstrates the use of jetpack compose and modularization. it is complet

A blogging mobile application built with Kotlin using MVC design pattern and Take some advantage of Jetpack , View & Data Binding It's a mimic for Tumblr application , But a little prettier than him ๐Ÿ˜‰
A blogging mobile application built with Kotlin using MVC design pattern and Take some advantage of Jetpack , View & Data Binding It's a mimic for Tumblr application , But a little prettier than him ๐Ÿ˜‰

A blogging mobile application built with Kotlin using MVC design pattern and Take some advantage of Jetpack , View & Data Binding It's a mimic for Tum

CMPLR-Native - A blogging mobile application built with Kotlin using MVC design pattern and Take some advantage of Jetpack , View & Data Binding A simple NewsApp built using Jetpack Compose, MVVM Architecture, Dagger Hilt and Kotlin Flow
A simple NewsApp built using Jetpack Compose, MVVM Architecture, Dagger Hilt and Kotlin Flow

NewsApp is simple App which uses NewsAPI to get top headlines for country you live in or you can search for a specific news. Focus of this app is to d

Meme-Sharing-App - Meme Sharing App Built With Kotlin
Meme-Sharing-App - Meme Sharing App Built With Kotlin

'Meme Share' is an android application by virtue of which the user can view and

Android samples built using Jetpack Window Manager for foldable and dual-screen devices like Microsoft Surface Duo.

Jetpack Window Manager samples for dual-screen and foldable devices like Microsoft Surface Duo Android app samples that use Jetpack Window Manager to

Android Application built using MVVM + Retrofit + Hilt + Clean + Room to shown several movies from
Android Application built using MVVM + Retrofit + Hilt + Clean + Room to shown several movies from "The Movie DB" platform.

MovieHunter Android Application built using MVVM + Retrofit + Hilt + Clean + Room to shown several movies from "The Movie DB" platform. Contribution I

Mobile translation application built using android studio and java.
Mobile translation application built using android studio and java.

Translate I'm here when you need translation ๐Ÿ‘€ ๐Ÿ”จ Libraries used in the project : implementation 'com.google.mlkit:translate:16.1.2' implementation '

Releases(v1.0)
Owner
GeeksforGeeks Club KIIT
GeeksforGeeks Club KIIT
Tesla App Clone built in Kotlin, using Compose. The project was initially designed by Clinton using Flutter.

Tesla Tesla App Clone built in Kotlin, using Compose. The project was initially designed by Clinton using Flutter. We are keeping this repo as a singl

Juma Allan 4 Oct 4, 2022
To Do List App is built in Kotlin using Material 3, Data Binding, Navigation Component Graphs, Room persistence library, Kotlin coroutines, LiveData, Dagger Hilt, and Notifications following MVVM Architecture.

ToDoListApp ToDoList App demonstrates modern Android development with Hilt, Coroutines, LiveData, Jetpack (Room, ViewModel), and Material 3 Design bas

Naman Garg 10 Jan 8, 2023
An android app built using Kotlin following Multi-Module Clean Architecture MVVM

Notflix ??๏ธ Work In Progress ?? An android app built using Kotlin that consumes TMDB API to display current trending, upcoming and popular movies ?? a

Victor Kabata 290 Dec 30, 2022
Taskify - An app to manage your daily tasks and boost your productivity. Taskify is built using kotlin and follows all modern android Development practices and hence is a good learning resource for beginners

Taskify Taskify is an app to manage your daily tasks and boost your productivity Video Introduction ?? This is a small introduction video about Taskif

Vaibhav Jaiswal 101 Jan 4, 2023
Vaibhav Jaiswal 57 Jan 3, 2023
Wallum is a superfast โšก lightweight wallpaper app, built using Kotlin, Retrofit, MVVM, Paging 3, Hilt, and Navigation Components

Show some โค๏ธ and star the repo to show support for the project Wallum Android App Wallum is a super-fast ?? , lightweight wallpaper app built purely w

Aditya Verma 19 Dec 6, 2022
Android app which fetches a sample movies list to display. Built using Kotlin and latest Android tech stack, with an approach to clean architecture.

movies-sample-app This is an Android app which fetches a sample movies list to display. Built using Kotlin and latest Android tech stack, with an appr

Nadeem Ahmed 1 Oct 21, 2021
An android app built using Kotlin that consumes TMDB API to display current trending, upcoming and popular movies ๐Ÿฟ .

Flick An android app built using Kotlin that consumes TMDB API to display current trending, upcoming and popular movies ?? .It has been built followin

Kagiri Charles 8 Nov 29, 2022
Reddit App Built Using Kotlin

Reddit App Setup Build the project gets top post from reddit and displays different media(GIF.VIDEO,IMAGE). Enable user to add/remove a post to favour

Zalo Austine 0 Nov 17, 2021
Gender Checker app built using Kotlin, MVVM, Genderize.io API. Take this as a reference for MVVM and Genderize.io API ๐Ÿš€

Gender-Checker ?? Gender Checker app built using Kotlin, MVVM, Genderize.io API Enter a name and the app will guess the gender ?? โœจ Highligts: API : G

Jai Keerthick 0 Jan 5, 2022