Android.Media.MediaRecorder.SetLocation Method
Set and store the geodata (latitude and longitude) in the output file.

Syntax

[Android.Runtime.Register("setLocation", "(FF)V", "GetSetLocation_FFHandler")]
public virtual void SetLocation (float latitude, float longitude)

Parameters

latitude
latitude in degrees. Its value must be in the range [-90, 90].
longitude
longitude in degrees. Its value must be in the range [-180, 180].

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the given latitude or longitude is out of range.

Remarks

Set and store the geodata (latitude and longitude) in the output file. This method should be called before prepare(). The geodata is stored in udta box if the output format is OutputFormat.THREE_GPP or OutputFormat.MPEG_4, and is ignored for other output formats. The geodata is stored according to ISO-6709 standard.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14