분류 전체보기
-
Delegate, Event, ActionC#/기초 2021. 12. 14. 17:10
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication42 { public delegate void MyEventHandler(string message); class Publisher { public event MyEventHandler Active; public void DoActive(int number) { if (number % 10 == 0) Active("Active!" + number); else Console.WriteLine(number); } } class Subscriber { st..
-
wifi 신호세기Python/Raspberry Pi 2021. 12. 1. 12:15
sudo iw wlan0 scan|grep -E 'SSID|signal' -30dbm > -60dbm
-
-
-
buildFeatures ErrorAndroid/깡샘_코틀린 2021. 11. 29. 09:39
buildFeatures { viewBinding = true } 자동 코드완성기능을 사용할시 buildFeatures( viewBinding = true ) 중괄호가 아닌 소괄호로 묶여서 sync Error 발생 Cannot set the value of read-only property 'viewBinding' for extension 'android' of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension
-
SystemClockAndroid/깡샘_코틀린 2021. 11. 4. 17:46
Android는 다음과 같이 현재 시간, 경과 시간을 가져오는 API를 제공합니다. System.currentTimeMillis() SystemClock.elapsedRealtime() SystemClock.uptimeMillis() 각각의 API를 소개하고 차이점에 대해서 알아보겠습니다. System.currentTimeMillis() 현재 시각을 UTC(1970년 1월 1일이 0인 시간)의 millisecond로 리턴합니다. 디바이스에 설정된 현재 시각을 기준으로 리턴하기 때문에, 네트워크가 연결되어 시각이 변경되거나 위도(Time zone)가 변경되어 UTC가 변경될 수 있습니다. 그렇기 때문에, 시간의 차이를 계산할 때 적합하지 않습니다. 물론 짧은 간격으로 사용한다면 문제가 될 가능성이 거의 없..
-
07-3 binding syntax errorAndroid/깡샘_코틀린 2021. 11. 4. 14:02
class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val binding = ActivityMainBinding.inflate(layoutInflater) setContentView(binding.root) binding.button.setOnClickListener { binding.button.visibility = View.INVISIBLE // binding. 추가 binding.imageView.visibility = View.VISIBLE } binding.imageView.setOnClickListener { b..
-
개인정보방침Test기타자료 2021. 11. 1. 16:26
('kis'이하 'kis')은(는) 「개인정보 보호법」 제30조에 따라 정보주체의 개인정보를 보호하고 이와 관련한 고충을 신속하고 원활하게 처리할 수 있도록 하기 위하여 다음과 같이 개인정보 처리방침을 수립·공개합니다. ○ 이 개인정보처리방침은 2021년 1월 1부터 적용됩니다. 제1조(개인정보의 처리 목적) ('kis'이하 'kis')은(는) 다음의 목적을 위하여 개인정보를 처리합니다. 처리하고 있는 개인정보는 다음의 목적 이외의 용도로는 이용되지 않으며 이용 목적이 변경되는 경우에는 「개인정보 보호법」 제18조에 따라 별도의 동의를 받는 등 필요한 조치를 이행할 예정입니다. 제2조(개인정보의 처리 및 보유 기간) ① 은(는) 법령에 따른 개인정보 보유·이용기간 또..