getKeyFromResources

Retrieves the resource entry name corresponding to the provided string resource ID. The result is trimmed and null is returned if the resulting string is blank.

Return

The resource entry name as a string, or null if the result is blank.

Parameters

context

The context from which to retrieve the resources.

id

The resource ID of the string resource to retrieve.