diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 397d855..fb38731 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -17,6 +17,7 @@ + \ No newline at end of file diff --git a/app/src/main/kotlin/jackall/moncalc/Const.kt b/app/src/main/kotlin/jackall/moncalc/Const.kt new file mode 100644 index 0000000..3e109f7 --- /dev/null +++ b/app/src/main/kotlin/jackall/moncalc/Const.kt @@ -0,0 +1,11 @@ +package jackall.moncalc + +/** + * Created by matsumoto_k on 2017/11/01. + */ +class Const { + companion object { + const val serviceChannelId = "mainService" + const val notificationId = 1 + } +} \ No newline at end of file diff --git a/app/src/main/kotlin/jackall/moncalc/service/MainService.kt b/app/src/main/kotlin/jackall/moncalc/service/MainService.kt new file mode 100644 index 0000000..d650697 --- /dev/null +++ b/app/src/main/kotlin/jackall/moncalc/service/MainService.kt @@ -0,0 +1,19 @@ +package jackall.moncalc.service + +import android.app.Service +import android.content.Intent +import android.os.IBinder + +/** + * Created by matsumoto_k on 2017/11/01. + */ +class MainService : Service() { + + override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { + return START_STICKY + } + + override fun onBind(intent: Intent?): IBinder? { + return null + } +} \ No newline at end of file