[MainActivity] val deviceAddress = "00:00:00:00:00:00" // Replace with the address of your Bluetooth device val bluetoothAdapter: BluetoothAdapter? = BluetoothAdapter.getDefaultAdapter() // Check if device supports Bluetooth if (bluetoothAdapter == null) { // Device does not support Bluetooth } else { // Device supports Bluetooth // Check if Bluetooth is enabled on device if (!bluetoothAdapter.i..
// WebView 내에서 URL 로드를 처리하기 위한 WebViewClient 클래스 정의 private class MyWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { // 웹뷰 내에서 링크 클릭시 처리 if (url.startsWith("http:") || url.startsWith("https:")) { view.loadUrl(url); return false; } else { // 다른 URL 스키마에 대한 처리 Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); startAct..
[MainActivity] val deviceAddress = "00:00:00:00:00:00" // Replace with the address of your Bluetooth device val bluetoothAdapter: BluetoothAdapter? = BluetoothAdapter.getDefaultAdapter() // Check if device supports Bluetooth if (bluetoothAdapter == null) { // Device does not support Bluetooth } else { // Device supports Bluetooth // Check if Bluetooth is enabled on device if (!bluetoothAdapter.i..
[MainActivity] import android.bluetooth.BluetoothAdapter import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothSocket import java.io.IOException import java.util.* val deviceAddress = "00:00:00:00:00:00" // Replace with the address of your nano33iot device val uuid = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB") // UUID for serial communication var bluetoothSocket:..
[MainActivity] import android.bluetooth.BluetoothAdapter import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothSocket import java.io.IOException import java.util.* val deviceAddress = "00:00:00:00:00:00" // Replace with the address of your nano33iot device val uuid = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB") // UUID for serial communication var bluetoothSocket:..
[MainActivity] import android.bluetooth.BluetoothAdapter import android.bluetooth.BluetoothDevice val bluetoothAdapter: BluetoothAdapter? = BluetoothAdapter.getDefaultAdapter() // Check if device supports Bluetooth if (bluetoothAdapter == null) { // Device does not support Bluetooth } else { // Device supports Bluetooth // Check if Bluetooth is enabled on device if (!bluetoothAdapter.isEnabled) ..
- Total
- Today
- Yesterday
- Decorator
- 티스토리챌린지
- 빌리언트
- 둎
- image
- Innovation&Hurdles
- badp
- 심심풀이
- Innovations
- BSC
- 오블완
- Innovations&Hurdles
- bilient
- 전압
- 혁신과허들
- Video
- 전류
- 심심풀이치매방지기
- 치매방지
- 배프
- 치매
- 절연형
- DYOV
- arduino
- 아두이노
- Hurdles
- 혁신
- ServantClock
- 전압전류모니터링
- 허들
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |