react native gps foreground service - android, kotlin (1)

react native 에서 gps 트래킹을 해야한다. 앱이 백그라운드에 있어도 동작하도록 네이티브 모듈을 만드는 것만 해도 많이 안하다보니 까다로운데 gps + 서비스 동작을 해야한다니. 기본으로 돌아가기로 했다. 일단 안드로이드 앱에서 GPS 트래킹하는 코드부터 시도해보았다. ### MainActivity.kt ``` package com.example.gpstracker import android.annotation.SuppressLint import android.content.Context import android.content.pm.PackageManager import android.location.LocationListener import android.location.LocationManager import android.os.Bundle import android.util.Log import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material3.Button import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.core.app.ActivityCompat import com.example.gpstracker.ui.theme.GpsTrackerTheme val T

How to install apache tomcat on linux (ubuntu)

You can install tomcat using wget

1. Copy the download link from apache tomcat website :

















I clicked tomcat 9 because I'll use that version.

















Then, you can see this page.

Choose mirrors site in green box; you can install faster if you choose appropriate mirror site. Usually, It is the good choice that choosing company which is located in your country.

Next, right click and copy that link in red box. You can install zip or tar.gz. It doesn't matter, you can choose one. I chose zip file.

2. On your command line

input : wget LINK

like below picture



3. unzip the file



if you download tar.gz, you can unzip this command : tar -xvzf [file name]



4. Finally, you can execute tomcat like that.

댓글

이 블로그의 인기 게시물

Operating System Concept

카카오 내비 리엑트 네이티브 모듈 만들기 ft.코틀린

Operating System Concepts 9th