Skip to content

Instantly share code, notes, and snippets.

View kekemao00's full-sized avatar
🤗

Gavin.Mao kekemao00

🤗
View GitHub Profile
@kekemao00
kekemao00 / BasicInfiniteCompose.kt
Created September 5, 2023 15:55 — forked from rodrigomartind/BasicInfiniteCompose.kt
The Art of Small Animations in Android with Jetpack Compose
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.detectDragGestures
import androidx.compose.foundation.layout.Box
final String command = "HELO\n";
final UUID sppUuid = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
BluetoothAdapter.getDefaultAdapter();
if (btAdapter == null) {
sendLogMessage("Bluetooth adapter is not available.");
return;
}
sendLogMessage("Bluetooth adapter is found.");