Tuesday, January 15, 2013

Configure today screen on Windows Mobile 6.5

The following provisioning xml will configure the today screen for Windows Mobile 6.5.  The key is to set enabled = 0 on anything you don't want to show.  The Order param starts at 1 (top of the screen ) and goes up by 1 for each position.  You can skip numbers without anything bad happening.  I use this to set what I don't want to display to high numbers so that they don't conflict with the items I do want to show.  Sample provisioning xml is below.  This will hide Getting Started, Bing, and My Today.  It sets the order high for them to get them out of our way.  It then sets device lock to display at the top of the screen followed by Tasks.  Use a remote registry editor to find the settings you want to change.

<wap-provisioningdoc>

<characteristic type="Registry">

  <characteristic type="HKLM\Software\Microsoft\Today">
    <parm name="Date" value="1" datatype="integer" />
  </characteristic>
 

  <characteristic type="HKLM\Software\Microsoft\Today\Items\Getting Started">
   <parm name="Enabled" value="0" datatype="boolean" />
   <parm name="Order" value="49" datatype="integer" />
  </characteristic>

  <characteristic type="HKLM\Software\Microsoft\Today\Items\Bing">
   <parm name="Enabled" value="0" datatype="boolean" />
   <parm name="Order" value="47" datatype="integer" />
  </characteristic>

   <characteristic type="HKLM\Software\Microsoft\Today\Items\My Today Item">
   <parm name="Enabled" value="0" datatype="boolean" />
   <parm name="Order" value="46" datatype="integer" />
  </characteristic>

  
  <characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;Device Lock&quot;">
   <parm name="Enabled" value="1" datatype="boolean" />
   <parm name="Order" value="1" datatype="integer" />
  </characteristic>
 
 
   <characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;Tasks&quot;">
   <parm name="Enabled" value="1" datatype="boolean" />
   <parm name="Order" value="2" datatype="integer" />
  </characteristic>
 
  
 
</characteristic>

</wap-provisioningdoc>

ATT XML Provisioning

I've been wrapped up in a major roll out of a Windows Mobile 6.5 device(Intermec CN50).  Hopefully it is slowing down and I can get back to some semi-regular posts.  I thought I would start off with some more of the xml provisioning files I had to write.  Here are the settings to get the device to connect to ATT gprs.

<wap-provisioningdoc>
  <characteristic type="CM_GPRSEntries">
    <characteristic type="ATT">
      <parm name="DestId"
      value="{ADB0B001-10B5-3F39-27C6-9742E785FCD4}" />
      <parm name="UserName" value="" />
      <parm name="Password" value="" />
      <parm name="Enabled" value="1" />
      <characteristic type="DevSpecificCellular">
        <parm name="GPRSInfoValid" value="1" />
        <parm name="GPRSInfoAccessPointName"
        value="wap.cingular" />
      </characteristic>
    </characteristic>
  </characteristic>
</wap-provisioningdoc>


I'm also using the following settings to stop the device from popping up the window asking if you want to automatically configure the device for the SIM card.  I'm not 100% sure which setting is required. I just kept doing registry dumps to see what changed every time I cold booted the device and configured it, but the following works either way.

 <wap-provisioningdoc>
  <characteristic type="Registry">
    <characteristic type="HKLM\Comm\AutoDataConfig">
      <parm name="LastIMSI" value="310410" datatype="string" />
    </characteristic>
    <characteristic type="HKLM\System\State\Shell\Notifications\{DDBD3B44-80B0-4B24-9DC4-839FEA6E559E}\4096">
      <parm name="TodaySK" value="Notification" datatype="string" />
    </characteristic>
    <characteristic type="HKLM\System\State\Shell\Notifications\Active">

      <parm name="CLSID"
      value="{DDBD3B44-80B0-4B24-9DC4-839FEA6E559E}"
      datatype="string" />
      <parm name="ID" value="1000" datatype="integer" />
    </characteristic>
  
  </characteristic>
</wap-provisioningdoc>