DEVICES.XML file

I'm creating a spreadsheet with all the relevant info about all the target devices I'm developing for. Unfortunately, the UX Guide is not kept up to date and neither is the Compatible Devices web page. So I'm parsing the devices.xml file.

Three questions:

1. Is there an API method that'll return the Device ID or Name or Part_Number?

       <device family="rectangle-200x265" id="edge_520" name="Edge® 520" part_number="006-B2067-00">

2. The DF memory limit according to the simulator is 26.6kb. But the file says, for the Edge 520, it is 32.7kb. Which do I trust?

3. The display is 265x200. I'm not sure what the REGION coordinates are for, but is this a bug? y=329?

  • 1) Sys.getDeviceSettings().partNumber

    2) starting with CIQ2 devices, in the memory available, 4k is used by the VM.  So the total memory is 32k, but only 28k is available for the app itself. You'll see the same for all app types.  Also, 1k=1024 in these values, and not 1000.  Both 32k and 28k are correct depending on what you're looking at

    3) devices.xml is used for different things.  It's used when you build a .iq, as well as by the sim..  The regions stuff you posted is to indicate where things are in the simulator, and aren't for a real device.