Skip to content

Commit 5f52ed8

Browse files
committed
l1-s12 add android specific hello world
1 parent 44813bf commit 5f52ed8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

android-app/src/main/java/com/icerockdev/android_app/MainActivity.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class MainActivity : AppCompatActivity() {
99
override fun onCreate(savedInstanceState: Bundle?) {
1010
super.onCreate(savedInstanceState)
1111
setContentView(R.layout.activity_main)
12-
12+
1313
HelloWorld.print()
14+
AndroidHelloWorld.print()
1415
}
1516
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*
2+
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
import android.util.Log
6+
7+
object AndroidHelloWorld {
8+
fun print() {
9+
Log.v("MPP", "hello android world")
10+
}
11+
}

0 commit comments

Comments
 (0)