[Android] Volley
·
내맘대로/안드로이드
- implement volley library gradle - manifest permission internet - declare variable RequestQueue requestQueue; - onCreate requestQueue = Volley.newRequestQueue(MainActivity.this); - method private void getChatTime(final String uid) { StringRequest stringRequest = new StringRequest(Request.Method.POST, url, new Response.Listener() { @Override public void onResponse(String response) { System.out.p..
[Android] Radio Button
·
카테고리 없음
- declare variable RadioGroup radioGroup; RadioButton radioButton1; RadioButton radioButton2; RadioButton radioButton3; RadioButton radioButton4; - onCreate radioGroup = findViewById(R.id.radioGroup); radioButton1 = findViewById(R.id.radioButton2); radioButton2 = findViewById(R.id.radioButton3); radioButton3 = findViewById(R.id.radioButton3); radioButton4 = findViewById(R.id.radioButton4); radio..
Raspberry Pi 3b+ OS 설치 방법
·
내맘대로/아두이노
1.라즈베이파이 홈페이지 https://www.raspberrypi.org/downloads/raspbian/ 에서 Raspbian Buster with desktop and recommended softwoare 다운로드.zip 다운 2.라즈베이파이 부팅 OS를 만들어 줄 tool 설치 https://www.balena.io/etcher/ 3.sd카드에 부팅 os 만든 후 라즈베이 파이에 sd카드 넣기 4.hdmi, 키보드, 마우스 연결 5.부팅 되는지 테스트 6.언어는 us 유나이티드 스테이트를 해야 와이파이가 잘잡힘 참고 예제 https://codedosa.com/364 라즈베리파이 3 B+에 OS를 가장 손쉽게 설치하는 법 ( with 라즈비안 ) - 코드도사 라즈베리파이를 처음 구입하게 되면 내..
Volley API
·
프론트엔드
2013년 google IO 행사에서 공개된 API 안드로이드 앱에서 HTTP 통신을 좀 더 쉽게 구현하는게 목적 표준 라이브러리 API 아님 JSON 객체로 서버에 전송 첫번째파라미터 - 서버에 전송하는 요청 방식, HTTP method, GET or POST 두번째파라미터 -서버 주소 세번째파라미터 - 요청 데이터가 들어갈 객체 - JSONObject 객체로 만들고 데이터 넣음 그 다음 데이터 성공,오류 서버에 요청이 성공한다면 onResponse() 호출, 그 안에 리스너 메서드 호출 JsonObjectRequest 객체를 만들 때 메서드를 재정의 요청 파라미터, 헤더 설정 getParams() -HashMap 객체 반환 ㄱ 핵심 클래스 RequestQueue: 서버 요청자. 다른 Request 클..
[awsUbuntu18.04] php Log확인
·
내맘대로/서버
기준 awsUbuntu18.04 apm 설치 PHP에서 오류 로그 확인 하는 방법 $cd /var/log/apache2/error_log
[aws mysql] mysql timezone 설정
·
내맘대로/서버
cd /etc/mysql/mysql.conf.d sudo nano mysqld.cnf [mysqld] default-time-zone='+9:00' 저장 mysql 재실행 sudo service mysql restart 참고블로그 https://jootc.com/p/201905052779 MySQL(MariaDB) 서버 타임존 변경 및 확인 - JooTC MySQL MariaDB 서버 타임존 변경 MySQL을 사용하여 데이터를 삽입할 때, 타임스탬프의 값이 엉뚱하게 입력되는 경우가 있습니다. 데이터베이스의 시간대가 한국 시간대와 다르게 설정되어 있어 시간 상의 오류가 생긴 것처럼 보이는 것입니다. jootc.com