AlarmInfo for Windows Mobile 5.0

Copyright (C) July 2005, 2006 by MobileRob.Com

Version Control:

1.0.0 - 8/02/05  4:53 PM - Fixed trailing characters on Alarm line 
 	  	         - Removed seconds
1.0.1 - 8/02/05  8:16 PM - Fixed handling of regional settings
1.0.2 - 4/03/06 11:23 AM - fixed Italian time issue (uses . not :)
1.0.3 - 8/22/06  9:00 PM - Windows Mobile 5.0 version
1.0.4 - 8/27/06 11:30 PM - Removed delay on return to homescreen
                         - Modified screen refresh to allow plugin to be first plugin
1.0.5 - 9/14/06  4:00 PM - Added b-border-width parm


Requires: Windows Mobile 5.0.

To install, copy AlarmInfo_ARM_WM5.CAB file to your Smartphone using Windows Explorer.  You can copy it to any folder on the Smartphone.  Once on the Smartphone, use the File Explorer on the Smartphone to execute the cab file.  This will install the plugin.  If you have a storage card, please install the plugin on the phone, not the storage card.

To place the plugin into a homescreen you are using, copy the following code into the .xml file or take one of the xml files that came with the phone and copy them to a new name and then add the code.  A sample has been included in the install files, and is called AlarmInfo.home.xml. It was designed for the Motorola Q (landscape 320x240), but can be adjusted to fit any screen.

          <!-- AlarmInfo Plugin -->
          <plugin clsid="{CE08C0D4-5D01-499b-A5DE-51D44B5B1D79}" text=" Alarm:"
              font-size="19" font-weight="bold" height="25">
          </plugin>

For example:

You can copy the AlarmInfo.home.xml from the \application data\home folder on the Smartphone to your desktop and edit it using NotePad to see what has been done.  I simply took the full.home.xml that is included on the phone, and made some minor changes.  Basically, you need to copy the above code to homescreen file.  Note that it was copied to the bottom of the file, just prior to the </home> command. Remember, you can do this to any homescreen xml file.  Also, I have suggested you put it at the bottom of the homescreen, however, you can put it inbetween two other plugins if you want to.

The text, font-size, font-weight, and height, are optional, and can be omitted.  However, I like the ability to change them if needed, depending on the layout of the other items on the homescreen I am using. You will also need to edit the top of the homescreen file and change the author, contacturl, and title.  The title is the most important change, since this is what will show up in the Homescreen setup view on your Smartphone, when assigning the homescreen file as your current homescreen.  I also removed the other languages to make the example easier.

If you edit your own file, make sure it gets put back into the \application data\home folder. Then go press the Start softkey, go to Settings, and then to Homescreen.  Your new homescreen should now be listed in the Home screen layout choices.  Select it, the press the Done softkey. Go back to the homescreen view, and you should see the Alarm: Off indicator (assuming there is no current alarm set).

To operate the plugin, highlight the Alarm status line, and press the Action key.  This will bring up a settings view to adjust the Alarm status and time.  When you press done, it will return to the home screen.

Please note, that if the plugin is the first active plugin on the homescreen, there might be some delay in changing the time to the new alarm time when you return to the homescreen from setting the alarm (note that this does not effect your ability to move the cursor on the homescreen immediately). Since the OS does not always refresh the homescreen when returning from a program, the plugin must force a refresh. If it takes longer than 15 seconds to set the alarm, the refresh will not occur, and will need to be done manually. To force a refresh manually, simply move the cursor down to the next plugin, and it will immediately refresh.
