Suche senden
Hochladen
夜子まま塾講義3(androidで電卓アプリを作る)
•
1 gefällt mir
•
7,382 views
Masafumi Terazono
Folgen
電卓アプリを題材にAndroidプロジェクトの作成からクラスの編集まで
Weniger lesen
Mehr lesen
Technologie
Business
Melden
Teilen
Melden
Teilen
1 von 33
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Actor Concurrency
Actor Concurrency
Alex Miller
Mobile Fest 2018. Александр Корин. Болеутоляющее
Mobile Fest 2018. Александр Корин. Болеутоляющее
MobileFest2018
Deterministic simulation testing
Deterministic simulation testing
FoundationDB
Promise: async programming hero
Promise: async programming hero
The Software House
Lo Mejor Del Pdc2008 El Futrode C#
Lo Mejor Del Pdc2008 El Futrode C#
Juan Pablo
자바스크립트 비동기 코드(Javascript asyncronous code)
자바스크립트 비동기 코드(Javascript asyncronous code)
Kongson Park
Max Koretskyi "Why are Angular and React so fast?"
Max Koretskyi "Why are Angular and React so fast?"
Fwdays
How Data Flow analysis works in a static code analyzer
How Data Flow analysis works in a static code analyzer
Andrey Karpov
Empfohlen
Actor Concurrency
Actor Concurrency
Alex Miller
Mobile Fest 2018. Александр Корин. Болеутоляющее
Mobile Fest 2018. Александр Корин. Болеутоляющее
MobileFest2018
Deterministic simulation testing
Deterministic simulation testing
FoundationDB
Promise: async programming hero
Promise: async programming hero
The Software House
Lo Mejor Del Pdc2008 El Futrode C#
Lo Mejor Del Pdc2008 El Futrode C#
Juan Pablo
자바스크립트 비동기 코드(Javascript asyncronous code)
자바스크립트 비동기 코드(Javascript asyncronous code)
Kongson Park
Max Koretskyi "Why are Angular and React so fast?"
Max Koretskyi "Why are Angular and React so fast?"
Fwdays
How Data Flow analysis works in a static code analyzer
How Data Flow analysis works in a static code analyzer
Andrey Karpov
Is your C# optimized
Is your C# optimized
Woody Pewitt
Encoder + decoder
Encoder + decoder
COMSATS Abbottabad
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
Microsoft Argentina y Uruguay [Official Space]
Let the type system be your friend
Let the type system be your friend
The Software House
Promises generatorscallbacks
Promises generatorscallbacks
Mike Frey
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
Dimitrios Platis
重構—改善既有程式的設計(chapter 9)
重構—改善既有程式的設計(chapter 9)
Chris Huang
Functional solid
Functional solid
Matt Stine
Es.next
Es.next
kevinsson
Functional JavaScript for everyone
Functional JavaScript for everyone
Bartek Witczak
追求Jdbc on oracle最佳性能?如何才好?
追求Jdbc on oracle最佳性能?如何才好?
maclean liu
Chapter 7 functions (c)
Chapter 7 functions (c)
hhliu
Developer Experience i TypeScript. Najbardziej ikoniczne duo
Developer Experience i TypeScript. Najbardziej ikoniczne duo
The Software House
Mutation Testing at BzhJUG
Mutation Testing at BzhJUG
STAMP Project
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
Alfonso Peletier
Async js - Nemetschek Presentaion @ HackBulgaria
Async js - Nemetschek Presentaion @ HackBulgaria
HackBulgaria
The Ring programming language version 1.5.1 book - Part 175 of 180
The Ring programming language version 1.5.1 book - Part 175 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.9 book - Part 99 of 210
The Ring programming language version 1.9 book - Part 99 of 210
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 85 of 196
The Ring programming language version 1.7 book - Part 85 of 196
Mahmoud Samir Fayed
Mutate and Test your Tests
Mutate and Test your Tests
STAMP Project
京都Gtugコンパチapi
京都Gtugコンパチapi
Masafumi Terazono
AndroidからWebサービスを使う
AndroidからWebサービスを使う
Masafumi Terazono
Weitere ähnliche Inhalte
Was ist angesagt?
Is your C# optimized
Is your C# optimized
Woody Pewitt
Encoder + decoder
Encoder + decoder
COMSATS Abbottabad
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
Microsoft Argentina y Uruguay [Official Space]
Let the type system be your friend
Let the type system be your friend
The Software House
Promises generatorscallbacks
Promises generatorscallbacks
Mike Frey
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
Dimitrios Platis
重構—改善既有程式的設計(chapter 9)
重構—改善既有程式的設計(chapter 9)
Chris Huang
Functional solid
Functional solid
Matt Stine
Es.next
Es.next
kevinsson
Functional JavaScript for everyone
Functional JavaScript for everyone
Bartek Witczak
追求Jdbc on oracle最佳性能?如何才好?
追求Jdbc on oracle最佳性能?如何才好?
maclean liu
Chapter 7 functions (c)
Chapter 7 functions (c)
hhliu
Developer Experience i TypeScript. Najbardziej ikoniczne duo
Developer Experience i TypeScript. Najbardziej ikoniczne duo
The Software House
Mutation Testing at BzhJUG
Mutation Testing at BzhJUG
STAMP Project
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
Alfonso Peletier
Async js - Nemetschek Presentaion @ HackBulgaria
Async js - Nemetschek Presentaion @ HackBulgaria
HackBulgaria
The Ring programming language version 1.5.1 book - Part 175 of 180
The Ring programming language version 1.5.1 book - Part 175 of 180
Mahmoud Samir Fayed
The Ring programming language version 1.9 book - Part 99 of 210
The Ring programming language version 1.9 book - Part 99 of 210
Mahmoud Samir Fayed
The Ring programming language version 1.7 book - Part 85 of 196
The Ring programming language version 1.7 book - Part 85 of 196
Mahmoud Samir Fayed
Mutate and Test your Tests
Mutate and Test your Tests
STAMP Project
Was ist angesagt?
(20)
Is your C# optimized
Is your C# optimized
Encoder + decoder
Encoder + decoder
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
(18.03.2009) Cumuy Invita - Iniciando el año conociendo nuevas tecnologías - ...
Let the type system be your friend
Let the type system be your friend
Promises generatorscallbacks
Promises generatorscallbacks
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
Writing SOLID C++ [gbgcpp meetup @ Zenseact]
重構—改善既有程式的設計(chapter 9)
重構—改善既有程式的設計(chapter 9)
Functional solid
Functional solid
Es.next
Es.next
Functional JavaScript for everyone
Functional JavaScript for everyone
追求Jdbc on oracle最佳性能?如何才好?
追求Jdbc on oracle最佳性能?如何才好?
Chapter 7 functions (c)
Chapter 7 functions (c)
Developer Experience i TypeScript. Najbardziej ikoniczne duo
Developer Experience i TypeScript. Najbardziej ikoniczne duo
Mutation Testing at BzhJUG
Mutation Testing at BzhJUG
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
TypeScript - All you ever wanted to know - Tech Talk by Epic Labs
Async js - Nemetschek Presentaion @ HackBulgaria
Async js - Nemetschek Presentaion @ HackBulgaria
The Ring programming language version 1.5.1 book - Part 175 of 180
The Ring programming language version 1.5.1 book - Part 175 of 180
The Ring programming language version 1.9 book - Part 99 of 210
The Ring programming language version 1.9 book - Part 99 of 210
The Ring programming language version 1.7 book - Part 85 of 196
The Ring programming language version 1.7 book - Part 85 of 196
Mutate and Test your Tests
Mutate and Test your Tests
Ähnlich wie 夜子まま塾講義3(androidで電卓アプリを作る)
京都Gtugコンパチapi
京都Gtugコンパチapi
Masafumi Terazono
AndroidからWebサービスを使う
AndroidからWebサービスを使う
Masafumi Terazono
Good code
Good code
Jane Prusakova
Andy lib解説
Andy lib解説
Masafumi Terazono
Vavr Java User Group Rheinland
Vavr Java User Group Rheinland
David Schmitz
Priming Java for Speed at Market Open
Priming Java for Speed at Market Open
Azul Systems Inc.
Imagine a world without mocks
Imagine a world without mocks
kenbot
L05if
L05if
Kgr Sushmitha
Exceptions irst
Exceptions irst
jkumaranc
JavaTalks: OOD principles
JavaTalks: OOD principles
stanislav bashkirtsev
C#, What Is Next?
C#, What Is Next?
Pieter Joost van de Sande
Whats new in_csharp4
Whats new in_csharp4
Abed Bukhari
Transaction is a monad
Transaction is a monad
Jarek Ratajski
Decision CAMP 2014 - Charles Forgy - Affecting rules performance
Decision CAMP 2014 - Charles Forgy - Affecting rules performance
Decision CAMP
Writing Good Tests
Writing Good Tests
Matteo Baglini
Software transactional memory. pure functional approach
Software transactional memory. pure functional approach
Alexander Granin
Hypercritical C++ Code Review
Hypercritical C++ Code Review
Andrey Karpov
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみた
Akira Maruoka
Chapter 2 Java Methods
Chapter 2 Java Methods
Khirulnizam Abd Rahman
Chapter 2 Method in Java OOP
Chapter 2 Method in Java OOP
Khirulnizam Abd Rahman
Ähnlich wie 夜子まま塾講義3(androidで電卓アプリを作る)
(20)
京都Gtugコンパチapi
京都Gtugコンパチapi
AndroidからWebサービスを使う
AndroidからWebサービスを使う
Good code
Good code
Andy lib解説
Andy lib解説
Vavr Java User Group Rheinland
Vavr Java User Group Rheinland
Priming Java for Speed at Market Open
Priming Java for Speed at Market Open
Imagine a world without mocks
Imagine a world without mocks
L05if
L05if
Exceptions irst
Exceptions irst
JavaTalks: OOD principles
JavaTalks: OOD principles
C#, What Is Next?
C#, What Is Next?
Whats new in_csharp4
Whats new in_csharp4
Transaction is a monad
Transaction is a monad
Decision CAMP 2014 - Charles Forgy - Affecting rules performance
Decision CAMP 2014 - Charles Forgy - Affecting rules performance
Writing Good Tests
Writing Good Tests
Software transactional memory. pure functional approach
Software transactional memory. pure functional approach
Hypercritical C++ Code Review
Hypercritical C++ Code Review
Chainer-Compiler 動かしてみた
Chainer-Compiler 動かしてみた
Chapter 2 Java Methods
Chapter 2 Java Methods
Chapter 2 Method in Java OOP
Chapter 2 Method in Java OOP
Mehr von Masafumi Terazono
初心者向けSpigot開発
初心者向けSpigot開発
Masafumi Terazono
Minecraft dayの報告
Minecraft dayの報告
Masafumi Terazono
BungeeCordeについて
BungeeCordeについて
Masafumi Terazono
Spongeについて
Spongeについて
Masafumi Terazono
Kobe.py 勉強会 minecraft piスライド
Kobe.py 勉強会 minecraft piスライド
Masafumi Terazono
Minecraftと連携するSlackちゃんという会話Botを作った話
Minecraftと連携するSlackちゃんという会話Botを作った話
Masafumi Terazono
初心者〜中級者 Android StudioによるAndroid勉強会資料(スライド)
初心者〜中級者 Android StudioによるAndroid勉強会資料(スライド)
Masafumi Terazono
夜子まま塾 2015年1月23日 進行用資料
夜子まま塾 2015年1月23日 進行用資料
Masafumi Terazono
Thetalaps
Thetalaps
Masafumi Terazono
Android wear勉強会2
Android wear勉強会2
Masafumi Terazono
夜子まま塾@鹿児島
夜子まま塾@鹿児島
Masafumi Terazono
セーラーソン振り返り
セーラーソン振り返り
Masafumi Terazono
関西Nfc lab勉強会 宣伝
関西Nfc lab勉強会 宣伝
Masafumi Terazono
関西支部 第二回 NFCLab勉強会
関西支部 第二回 NFCLab勉強会
Masafumi Terazono
日本Androidの会 中国支部資料
日本Androidの会 中国支部資料
Masafumi Terazono
Android+NFC 日本Androidの会神戸支部 勉強会
Android+NFC 日本Androidの会神戸支部 勉強会
Masafumi Terazono
関西支部Android勉強会(ロボットxnfc)
関西支部Android勉強会(ロボットxnfc)
Masafumi Terazono
関西Unity勉強会
関西Unity勉強会
Masafumi Terazono
夜子まま塾講義12(broadcast reciever)
夜子まま塾講義12(broadcast reciever)
Masafumi Terazono
夜子まま塾講義11(暗黙的intent)
夜子まま塾講義11(暗黙的intent)
Masafumi Terazono
Mehr von Masafumi Terazono
(20)
初心者向けSpigot開発
初心者向けSpigot開発
Minecraft dayの報告
Minecraft dayの報告
BungeeCordeについて
BungeeCordeについて
Spongeについて
Spongeについて
Kobe.py 勉強会 minecraft piスライド
Kobe.py 勉強会 minecraft piスライド
Minecraftと連携するSlackちゃんという会話Botを作った話
Minecraftと連携するSlackちゃんという会話Botを作った話
初心者〜中級者 Android StudioによるAndroid勉強会資料(スライド)
初心者〜中級者 Android StudioによるAndroid勉強会資料(スライド)
夜子まま塾 2015年1月23日 進行用資料
夜子まま塾 2015年1月23日 進行用資料
Thetalaps
Thetalaps
Android wear勉強会2
Android wear勉強会2
夜子まま塾@鹿児島
夜子まま塾@鹿児島
セーラーソン振り返り
セーラーソン振り返り
関西Nfc lab勉強会 宣伝
関西Nfc lab勉強会 宣伝
関西支部 第二回 NFCLab勉強会
関西支部 第二回 NFCLab勉強会
日本Androidの会 中国支部資料
日本Androidの会 中国支部資料
Android+NFC 日本Androidの会神戸支部 勉強会
Android+NFC 日本Androidの会神戸支部 勉強会
関西支部Android勉強会(ロボットxnfc)
関西支部Android勉強会(ロボットxnfc)
関西Unity勉強会
関西Unity勉強会
夜子まま塾講義12(broadcast reciever)
夜子まま塾講義12(broadcast reciever)
夜子まま塾講義11(暗黙的intent)
夜子まま塾講義11(暗黙的intent)
Kürzlich hochgeladen
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Jeffrey Haguewood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Juan lago vázquez
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
rafiqahmad00786416
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
apidays
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
Remote DBA Services
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
DianaGray10
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Bhuvaneswari Subramani
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
johnbeverley2021
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
The Digital Insurer
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Orbitshub
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Zilliz
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
Nanddeep Nachan
Kürzlich hochgeladen
(20)
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Elevate Developer Efficiency & build GenAI Application with Amazon Q
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
夜子まま塾講義3(androidで電卓アプリを作る)
1.
Now Loading. Please
Wait ... Re:Kayo-System Co.,Ltd. 2012 2 22
2.
Re:Kayo-System Co.,Ltd. 2012
2 22
3.
Re:Kayo-System Co.,Ltd. 2012
2 22
4.
Re:Kayo-System Co.,Ltd. 2012
2 22
5.
Re:Kayo-System Co.,Ltd. 2012
2 22
6.
Re:Kayo-System Co.,Ltd. 2012
2 22
7.
Re:Kayo-System Co.,Ltd. 2012
2 22
8.
Re:Kayo-System Co.,Ltd. 2012
2 22
9.
Re:Kayo-System Co.,Ltd. 2012
2 22
10.
Re:Kayo-System Co.,Ltd. 2012
2 22
11.
Re:Kayo-System Co.,Ltd. 2012
2 22
12.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> </LinearLayout> Re:Kayo-System Co.,Ltd. 2012 2 22
13.
Re:Kayo-System Co.,Ltd. 2012
2 22
14.
Re:Kayo-System Co.,Ltd. 2012
2 22
15.
Re:Kayo-System Co.,Ltd. 2012
2 22
16.
Re:Kayo-System Co.,Ltd. 2012
2 22
17.
Re:Kayo-System Co.,Ltd. 2012
2 22
18.
Re:Kayo-System Co.,Ltd. 2012
2 22
19.
package ykmjuku.android.sample.app;
public class Calculater { StringBuilder mInputNumber = new StringBuilder(); String mOperator; int mResult = 0; private boolean isNumber(String key) { try { Integer.parseInt(key); return true; } catch (NumberFormatException e) { } return false; } Re:Kayo-System Co.,Ltd. 2012 2 22
20.
private boolean isSupportedOperator(String
key) { if (key.equals("+")) { return true; } else if (key.equals("-")) { return true; } else if (key.equals("*")) { return true; } else if (key.equals("/")) { return true; } return false; } Re:Kayo-System Co.,Ltd. 2012 2 22
21.
private void doCalculation(String
ope) { if (ope.equals("+")) { mResult = mResult + Integer.parseInt(mInputNumber.toString()); } else if (ope.equals("-")) { mResult = mResult - Integer.parseInt(mInputNumber.toString()); } else if (ope.equals("*")) { mResult = mResult * Integer.parseInt(mInputNumber.toString()); } else if (ope.equals("/")) { mResult = mResult / Integer.parseInt(mInputNumber.toString()); } mInputNumber = new StringBuilder(); } Re:Kayo-System Co.,Ltd. 2012 2 22
22.
public String putInput(String
key) { if (isNumber(key)) { mInputNumber.append(key); return mInputNumber.toString(); } else if (isSupportedOperator(key)) { if (mOperator != null) { doCalculation(mOperator); mOperator = null; } else if (mInputNumber.length() > 0) { mResult = Integer.parseInt(mInputNumber.toString()); mInputNumber = new StringBuilder(); } mOperator = key; return mOperator; } else if (key.equals("=")) { if (mOperator != null) { doCalculation(mOperator); mOperator = null; } return Integer.toString(mResult); } else { // return null; } } } Re:Kayo-System Co.,Ltd. 2012 2 22
23.
(bit)
boolean 1 true/false FALSE char 16 0 FFFF 0 byte 8 -128 127 0 short 16 -32768 32767 0 int 32 0 long 64 0 float 32 0.0 double 64 0.0 Re:Kayo-System Co.,Ltd. 2012 2 22
24.
Re:Kayo-System Co.,Ltd. 2012
2 22
25.
Re:Kayo-System Co.,Ltd. 2012
2 22
26.
try {
Integer.parseInt(key); return true; } catch (NumberFormatException e) { } return false; Re:Kayo-System Co.,Ltd. 2012 2 22
27.
Ykmjuku002Activity
”OK” Re:Kayo-System Co.,Ltd. 2012 2 22
28.
package ykmjuku.android.sample.app;
import android.app.Activity; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class Ykmjuku002Activity extends Activity implements TextWatcher, OnClickListener { EditText mEditText1; TextView mTextView1; Button mButton1; Calculater mCalculater = new Calculater(); Re:Kayo-System Co.,Ltd. 2012 2 22
29.
/** Called when
the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mTextView1 = (TextView)findViewById(R.id.textView1); mEditText1 = (EditText)findViewById(R.id.editText1); mButton1 = (Button)findViewById(R.id.button1); mEditText1.addTextChangedListener(this); mButton1.setOnClickListener(this); } Re:Kayo-System Co.,Ltd. 2012 2 22
30.
public void afterTextChanged(Editable
s) { String input = s.toString(); Log.d("Ykmjuku002Activity", "input="+input); if(input.length()>0){ String dispText = mCalculater.putInput(input); if(dispText!=null){ mTextView1.setText(dispText); } s.clear(); } } public void beforeTextChanged(CharSequence s, int start, int count, int after) { // TODO Auto-generated method stub } public void onTextChanged(CharSequence s, int start, int before, int count) { // TODO Auto-generated method stub } Re:Kayo-System Co.,Ltd. 2012 2 22
31.
public void onClick(View
v) { String dispText = mCalculater.putInput("="); if(dispText!=null){ mTextView1.setText(dispText); } mEditText1.setText(null); } } Re:Kayo-System Co.,Ltd. 2012 2 22
32.
Re:Kayo-System Co.,Ltd. 2012
2 22
33.
Re:Kayo-System Co.,Ltd. 2012
2 22
Jetzt herunterladen