// 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) ..
BMS와 BDIY에서 각 노드 디바이스(Node device)의 상태를 확인하고 관리하기 위해 화면을 구성하는 방식에 대한 테스트 MainActivity MainActivity.jva activity_main.xml DeviceList cDeviceInfo.java DeviceListAdapter.java device_list.xml setOnClickListener DataList cDataInfo.java DataListAdapteer.java data_list.xml public class MainActivity extends AppCompatActivity { private ArrayList mDeviceList; private DeviceListAdapter mDeviceAdapter; priv..
- Total
- Today
- Yesterday
- Video
- bilient
- 혁신과허들
- 오블완
- image
- Innovations
- 치매
- 심심풀이
- 허들
- 배프
- BSC
- DYOV
- Decorator
- Hurdles
- Innovations&Hurdles
- arduino
- ServantClock
- 전압
- 빌리언트
- 전류
- 전압전류모니터링
- Innovation&Hurdles
- badp
- 둎
- 치매방지
- 혁신
- 심심풀이치매방지기
- 아두이노
- 티스토리챌린지
- 절연형
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |