android.content
public
final
class
android.content.Formatter
Utility class to aid in formatting common values that are not covered
by the standard java.util.Formatter
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Public Methods
public
static
String
formatFileSize(Context context, long number)
Formats a content size to be in the form of bytes, kilobytes,
megabytes, etc
Parameters
context
| Context to use to load the localized units |
number
| size value to be formated |
Returns
- formated string with the number