Dependencies and Project Setup

To build MAF formatting-capable applications, add the com/sap/mobile/maf/tools/android/MAFFormatters (mafformatters.jar) library, and the mafformatters-res android library project file, to your project.

The android library includes:
  • CountryFormats.xml, which contains all the country and locale information for address and phone number formats.
  • Language files for the address fields, for example, the translations of “street”, ”city”, ”postal code”, and so on.

Also add sap/mobile/maf/tools/android/MAFLogger (maflogger.jar) to your Android project, as MAFFormatters rely on this logging facility.