AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.LollipopUtil Class Reference

Static Public Member Functions

static String formatNumber (String number)
 

Detailed Description

Helper methods for calling APIs added in LOLLIPOP (5.0, API Level 21)

Author
Evan W. Patton (ewpat.nosp@m.ton@.nosp@m.mit.e.nosp@m.du)

Definition at line 18 of file LollipopUtil.java.

Member Function Documentation

◆ formatNumber()

static String com.google.appinventor.components.runtime.util.LollipopUtil.formatNumber ( String  number)
static

Format a phone number based on the number's country code, falling back to the format defined by the user's current locale. This is to replace calling PhoneNumberUtils#formatNumber(String), which was deprecated in the LOLLIPOP release.

See also
PhoneNumberUtils::formatNumber(String, String)
Parameters
numberThe phone number to be formatted
Returns
The phone number, formatted based on the country code or user's locale.

Definition at line 34 of file LollipopUtil.java.


The documentation for this class was generated from the following file: