safeGlobalString

fun safeGlobalString(context: Context, key: String): String?

Safely reads a value from Settings.Global, swallowing any exception.

Return

The value, or null if unreadable.

Parameters

key

Global settings key.