getBestNameForService

Finds the best name for an eMBMS streaming or file-download service, given a Context that specifies the user's preferred languages. If no language supported by the ServiceInfo is preferred by the user, this method will return null. If called while running on an SDK version prior to P, this method will return null.

Return

The best name to display to the user for the service, or null if nothing matches.

Parameters

context

An instance of Context from your user-facing app

serviceInfo