Slide 39
Slide 39 text
39
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
class FooActivity: Activity {
override fun onCreate() {
doHoge()
doFuga()
}
override fun onDestroy() {
doHuga()
}
private fun doHoge() {
why.are = you.reading
the.fine.print()
if (theres.nothing) {
here.to(see)
}
}
private fun doFuga() {
db.hoge { result ->
if (result.isSuccessful) {
val builder = AlertDialog.Builder(this)
builder.setTitle(R.string.submit_dialog_title)
builder.setMessage(R.string.submit_dialog_message)
builder.setPositiveButton(R.string.ok) { p0, p1 ->
Logger.log(SubmitLog())
val message = R.string.submit_complete
Toast.makeText(this, message, Toast.LENGTH_LONG)
.show()
finish()
}
}
}
}
}
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
xx
class FooActivity: Activity {
override fun onCreate() {
doHoge()
doFuga()
}
override fun onDestroy() {
doHuga()
}
private fun doHoge() {
why.are = you.reading
the.fine.print()
if (theres.nothing) {
here.to(see)
}
}
private fun doFuga() {
db.hoge { result ->
if (result.isSuccessful) {
this.showDialog()
} else {
finish()
}
}
}
}