Skip to content

Instantly share code, notes, and snippets.

View DevPicon's full-sized avatar
🎯
Looking for new ways to improve my job

Armando Picón DevPicon

🎯
Looking for new ways to improve my job
View GitHub Profile
fun addDestinationOnMap(
googleMap: GoogleMap,
shopperLocation: Location,
destinationLocation: LatLng
) {
lifecycle.coroutineScope.launchWhenCreated {
googleMap.clear()
val latLngBounds = LatLngBounds.Builder()
@DevPicon
DevPicon / AdbCommands
Created August 9, 2023 18:39 — forked from ernestkamara/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@DevPicon
DevPicon / AdbCommands
Created August 9, 2023 18:39 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
package la.devpicon.android.composenavigationapplication
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
@DevPicon
DevPicon / CustomMode.kt
Created December 19, 2024 16:36
[Android] Custom Snackbar Demo
data class CustomMode(val mode: Mode, val name: String, val minValue: Int, val maxValue: Int)
enum class Mode {
ONE, TWO, THREE, UNDEFINED
}