Artificial intelligent assistant

Geofenceの結果を受け取る方法について教えてください。 Geofence Geofence < onNewIntentGeofence GeofenceIntent onNewIntentIntentService onNewIntent GeofenceIntent if IntentService ReceiveTransitionsIntentService.java MainActivity.javapendingIntent Intent intent = new Intent(self, MainActivity.class); Intent intent = new Intent(self, ReceiveTransitionsIntentService.class); ReceiveTransitionsIntentService.javaonHandleIntent AndroidManifest.xml android:name=".ReceiveTransitionsIntentService" android:exported="false" > Geofence

`Intent``Action`

`Action`


private static final String ACTION_GEOFENCE_UPDATE = "intent.action.GEOFENCE_UPDATE";


`Intent`


if (ACTION_GEOFENCE_UPDATE.equals(intent.getAction())) {
// Geofence
}


`Intent`


Intent intent = new Intent();
intent.setAction(ACTION_GEOFENCE_UPDATE);

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 24c2b1db04cd59f90b95fbdf5950b7dd