java.lang.Object | |
↳ | android.text.format.Formatter |
Utility class to aid in formatting common values that are not covered
by the
Formatter
class in
java.util
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Formats a content size to be in the form of bytes, kilobytes, megabytes, etc
|
||||||||||
|
This method was deprecated
in API level 12.
Use
getHostAddress()
, which supports both IPv4 and
IPv6 addresses. This method does not support IPv6 addresses.
|
||||||||||
|
Like
formatFileSize(Context, long)
, but trying to generate shorter numbers
(showing fewer digits of precision).
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Formats a content size to be in the form of bytes, kilobytes, megabytes, etc
context | Context to use to load the localized units |
---|---|
number | size value to be formatted |
This method was deprecated
in API level 12.
Use
getHostAddress()
, which supports both IPv4 and
IPv6 addresses. This method does not support IPv6 addresses.
Returns a string in the canonical IPv4 format ###.###.###.### from a packed integer containing the IP address. The IPv4 address is expected to be in little-endian format (LSB first). That is, 0x01020304 will return "4.3.2.1".
Like
formatFileSize(Context, long)
, but trying to generate shorter numbers
(showing fewer digits of precision).