Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kotlinでアプリ書いてみた

masaozi3
August 22, 2018

 Kotlinでアプリ書いてみた

Kotlinを書いてみたく、バーコードリーダーを使って書籍検索をするぞっていうアプリを書きました。
そのうちのバーコードリーダー部分のお話です。

masaozi3

August 22, 2018
Tweet

More Decks by masaozi3

Other Decks in Programming

Transcript

  1. t & 5BUB P ING 0 S 56 o :

    S N 1JBNG \ 1 Uj h a ISS - .MBRB & R 2 & && .74 21 U L P 8 STP
  2. • όʔίʔυͰ u • sy u b c • @

    ING /:4\ K Z X G - BB RTG I A 3 & && .74 21 U L P 8 STP
  3. • 4 0 u • sy u b y c

    • 3 GL 0 KR /:4\5BDKR N 6 SLIN 8 ETL \ G - BB RTG I A & ! 4 & && .74 21 U L P 8 STP
  4. • όʔίʔυͰ u • sy u b c • @

    ING /:4\ K Z X G - BB RTG I A 5 & && .74 21 U L P 8 STP
  5. 7 & && .74 21 U L P 8 STP

    • w m s n • 3 GL k s • TILE G BEL d i JNQMFNFOUBUJPODPNKPVSOFZBQQTJOHBOESPJEFNCFEEFE
  6. override fun onActivityResult(requestCode: Int, resultCode: Int, intent: Intent) { val

    scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, intent) if (scanResult == null) { return } else { val editText = findViewById<EditText>(R.id.editText) editText.setText(scanResult.contents) } } 9 & && .74 21 U L P 8 STP N/DSIUIS RTLS B P G
  7. override fun onActivityResult(requestCode: Int, resultCode: Int, intent: Intent) { val

    scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, intent) if (scanResult == null) { return } else { val editText = findViewById<EditText>(R.id.editText) editText.setText(scanResult.contents) } } k B s I 10 & && .74 21 U L P 8 STP N/DSIUIS RTLS B P G
  8. override fun onActivityResult(requestCode: Int, resultCode: Int, intent: Intent) { val

    scanResult = IntentIntegrator.parseActivityResult(requestCode, resultCode, intent) if (scanResult == null) { return } else { val editText = findViewById<EditText>(R.id.editText) editText.setText(scanResult.contents) } } B K gZ3 I 11 & && .74 21 U L P 8 STP N/DSIUIS RTLS B P G
  9. • j 4 0 u y • @ ING i

    jmm ly • p m • u p g G 15 & && .74 21 U L P 8 STP  B