System Programming/Android
[Android/Java] 날씨 api
Demo 0. api 등록 https://openweathermap.org/api 1. 가입 2. my api key에서 key 복사 3. 맘에 드는 api 쓰면 된다. 1. 구성 dependency permission network-security-config activity layout Dependency 추가 implementation 'com.android.volley:volley:1.1.1' AndroidManifest.xml MainActivity.java package com.example.recyclerview; import android.media.MediaPlayer; import android.os.Bundle; import android.os.CountDownTimer; import..
[Android/Java] 타이머
Demo 구성 activity layout MainActivity.java package com.example.recyclerview; import android.media.MediaPlayer; import android.os.Bundle; import android.os.CountDownTimer; import android.view.View; import android.widget.Button; import android.widget.SeekBar; import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { privat..
[Android/Java] File stream 외부 Storage에 글 읽고 쓰기
Demo MainActivity.java package com.example.recyclerview; import android.os.Bundle; import android.os.Environment; import android.speech.tts.TextToSpeech; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.ImageButton; import android.widget.TextView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import java..
[Android/Java] Text To Speech
Demo MainActivity.java package com.example.recyclerview; import android.os.Bundle; import android.speech.tts.TextToSpeech; import android.view.View; import android.widget.EditText; import android.widget.ImageButton; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import java.util.Locale; public class MainActivity extends AppCompatActivity { private TextToSpeech tts;..
[Android/Java] 음성인식 해서 글로 변환
Demo MainActivity.java package com.example.recyclerview; import android.content.ActivityNotFoundException; import android.content.Intent; import android.os.Bundle; import android.speech.RecognizerIntent; import android.view.View; import android.widget.ImageButton; import android.widget.TextView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import java.util.ArrayL..
[Android/Java] Sdcard에 이미지 다운로드
Demo MainActivity.java package com.example.recyclerview; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; import android.os.Bundle; import android.os.Environment; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import java.io.Bu..
[Android/Java] Image download using AsyncTask
Demo AndroidManifest.xml MainActivity.java package com.example.recyclerview; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.AsyncTask; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; import java.io.BufferedInput..
[Android/Java] bitmap 예제(00)
MainActivity.java package com.example.runnighorse; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); this..
[Android/Java] Media player(local storage)
MainActivity.java package com.example.recyclerview; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.content.Intent; import android.media.MediaPlayer; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.CheckBox; import andr..