Byte 0
3
4 . . .
MTF
Version Number
Header
of
Fields
3
1 Byte
1 Byte
Bytes
K + 1 . . .
File Contents 1
Variable Bytes
The following definitions apply to the Motorola Theme File (.mtf):
•
MTF Header – Contains the string "MTF"
•
Version – $ 10 represents 1.0, $ 11 represents 1.1, etc
•
Number of Fields – Denotes how many component files are inside the MTF file
•
File Size X – Size of file X in bytes. For example, $00000020 equals 32 bytes file size
•
Field Label X – Represents what type of component for the current file.
o 0 – Wallpaper
o 1 – Screensaver
o 2 – Incoming Ringtone
•
Filename X – Name of the file in UCS2 format. For example, "abc.def" is represented by $00 $61
$00 $62 $00 $63 $00 $2E $00 $64 $00 $65 $00 $66
•
Separator – Used to denture end of current filename X. Value is $00 $00
•
Checksum – Single byte addition from byte 0 to just before the checksum field. The last 2 bytes is
then the checksum. For example, if calculated checksum is $ 1204AB, then the checksum will be
$04AB
•
File Contents X – Actual file contents
Icon Specifications
N/A
NOTE: Some wireless networks limit the maximum size of a Theme download to 100 KB.
Developers are encouraged to keep their themes to this size or less. This size must also
include header information, which can be up to 500 bytes in size.
The following table describes the Motorola Theme File (.mtf):
File
... File
Field
Size
Size
Label
1
N
4
4
1
Bytes
Bytes
Byte
Filename
Separator ... Field
1
Variable
UCS
2 Bytes
2 Bytes
. . .
File Contents 1
Variable Bytes
Filename
Separator Checksum
Label
N
N
Variable
UCS
1
2 Bytes
2 Bytes
Byte
. . . k
2 Bytes