Articles & Information.

How do I tell if a phone has graphics markup or not?

Select a topic:

Choose from one of the topics below to browse other articles

Last updated by Ryan Miller on September 23, 2013 15:47

The user's device features are available in the headers currently. The client_features value of the X-MXit-Location header contains the long integer representation of his Client Features.  

0x1Forms0x100Play audio0x10000Custom emoticons
0x2File transfer0x200Encryption0x20000Alert profiles
0x4Camera0x400Voice recorder0x40000Extended markup (font size changes)
0x8Commands0x800Scalable vector graphics0x100000No gateways
0x10Send SMS0x1000Inline images0x200000No avatars
0x20Local file access0x2000Message markup0x400000Gaming
0x40Midp20x4000Vibes0x800000GamingUpdate
0x80Skins0x8000Select contact 0x20000000 Typing indication support

Markup should only be interpreted if the flags parameter of an incoming message has the following bit set: 0x200 - Message may contain markup. 
Therefore to check if he has Graphics Markup - check if the value 0x400000 (hex) is contained in his client_features (long int).