Today's

길을 나서지 않으면 그 길에서 만날 수 있는 사람을 만날 수 없다

반응형

geofence 3

안드로이드 앱 만들기 : triggeringGeofences 가 뭐지 ( geoFenceing)

지오펜싱 트리거 되는 위치의 명칭 표시 지오펜스 앱을 수정하면서 또 하나를 찾았습니다. 구현해 보고 싶었던 것은 지오펜싱에서 찾은 위치에 대한 알림을 구현할 때 현재 내가 도착한 위치가 어떤 것 때문에 표시가 되고 있는지 알고 싶다는 것입니다. 물론 잘 아시는 분들은 이미 찾으셨을리라고 생각이 되지만, 이제 구현을 해 가고 있는 분들을 위해서 기억을 남겨 두고자 합니다. import android.annotation.SuppressLint import android.app.NotificationChannel import android.app.NotificationManager import android.app.PendingIntent import android.content.BroadcastReceive..

안드로이드 앱 만들기 : geofencePendingIntent 에 대한 고찰

private val geofencePendingIntent: PendingIntent by lazy { val intent = Intent(this, GeofenceBroadcastReceiver::class.java) intent.action = ACTION_GEOFENCE_EVENT PendingIntent.getBroadcast(this, 0, intent, FLAG_MUTABLE) } 지오펜스는실제 지리적 영역에 대한 가상 경계 경계입니다.[1] 지오펜스는 동적으로 생성되거나(포인트 위치 주변의 반경에서와 같이) 미리 정의된 경계 세트(예: 스쿨 존 또는 이웃 경계)와 일치할 수 있습니다. 지오펜스의 사용은 지오펜싱이라고 하며 , 사용의 한 예는 지오펜스에 들어가거나 나가는 위치 기반 서비스 (..

안드로이드 앱 만들기 도전 3일차 geofences 을 활용한 앱

3일차는 쫌 그렇게 3번쨰 글 쓰기... 그 사이에 몇날이 흘렀다. 먼저 만들어진 앱을 볼까 ? geofence 는 실행을 등록하면 유효시간을 정하게 되어 있어서 등록할 때 특정 시간을 지정할 수 있도록 선언을 해 주어야 한다. mGeofenceList.add(new Geofence.Builder() .setRequestId(mapPOIItem.getItemName() + ":" + keywordBinding.editKeyword.getText().toString()) .setCircularRegion( mapPoint.getMapPointGeoCoord().latitude, mapPoint.getMapPointGeoCoord().longitude, spSetting.getInt("aroundArea",..

반응형