SQLiteDatabase.SetLocale(Locale) Method

Definition

Sets the locale for this database.

[Android.Runtime.Register("setLocale", "(Ljava/util/Locale;)V", "GetSetLocale_Ljava_util_Locale_Handler")]
public virtual void SetLocale (Java.Util.Locale? locale);
[<Android.Runtime.Register("setLocale", "(Ljava/util/Locale;)V", "GetSetLocale_Ljava_util_Locale_Handler")>]
abstract member SetLocale : Java.Util.Locale -> unit
override this.SetLocale : Java.Util.Locale -> unit

Parameters

locale
Locale

The new locale.

Attributes

Exceptions

if the locale could not be set. The most common reason for this is that there is no collator available for the locale you requested. In this case the database remains unchanged.

Remarks

Sets the locale for this database. Does nothing if this database has the #NO_LOCALIZED_COLLATORS flag set or was opened read only.

Java documentation for android.database.sqlite.SQLiteDatabase.setLocale(java.util.Locale).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to