×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    1

    Widgets: Which plist format?

    I encountered problems getting some sample widgets to install in the FP2 SDK emulator. The "Hello World" example which came with the SDK installed ok, but the Chinese Horoscope example from the "Getting_Started_with_Nokia_Web_Widget_Development_v1_0_en.zip" did not.

    I noticed that the key and DTD names were different between them. Hello World looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Nokia//DTD PLIST 1.0//EN" "http://www.nokia.com/NOKIA_COM_1/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>BundleDisplayName</key>
    <string>Hello-World</string>
    <key>BundleIdentifier</key>
    <string>com.nokia.widget.helloworld</string>
    <key>BundleName</key>
    <string>hello-world</string>
    <key>BundleShortVersionString</key>
    <string>1.00</string>
    <key>BundleVersion</key>
    <string>1.00</string>
    <key>MainHTML</key>
    <string>index.html</string>
    </dict>
    </plist>

    Horoscope looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Nokia//DTD PLIST 1.0//EN" "http://www.nokia.com/NOKIA_COM_1/DTDs/plist-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>DisplayName</key>
    <string>Chinese Horoscope</string>
    <key>Identifier</key>
    <string>com.nokia.forum.widget.horoscope</string>
    <key>MainHTML</key>
    <string>horoscope.html</string>
    </dict>
    </plist>

    Trying to install Horoscope.wgz with this Info.plist yields this message in the emulator: "Unable to install. Feature not supported."

    By changing the key names in the Info.plist for Horoscope to line up with Hello World (i.e. prefixing "Bundle" to DisplayName and Identifier key names and adding BundleName and Bundle*Version pairs), I was able to get it to install and run. But the documentation describes the key names as per the orignal Horoscope example. So I'm a bit confused. Which is right going forward?

    I've looked through the release notes and searched the forum for info on this without success. If I'm missing something obvious, please let me know.

    Also, will it be possible to place widgets on the idle screen at some point in the future?

    Thanks.

    John

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Posts
    115

    Re: Widgets: Which plist format?

    John,

    Are you using some pre beta -release of the SDK?

    The Horoscope example uses the 'final' plist format, which is supported by the S60 3rd FP2 Beta Emulator and the WRT implementations in concrete devices.

    The plist format used by the HelloWorld example you mentioned is deprecated.

    cheers,
    petro

Similar Threads

  1. UI widgets in svg format?
    By digitalmonkey in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2007-02-14, 00:46
  2. faulty phone number format after synchronizing my Nokia 6210 with OutlookXP
    By ricvilla in forum PC Suite API and PC Connectivity SDK
    Replies: 3
    Last Post: 2006-12-28, 16:20
  3. ????????Convert Date format
    By mehulgarnara in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-04-15, 07:34
  4. Nokia6600 vs TYPE_USHORT_565_RGB Pixel Format..
    By Niall in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2003-09-16, 12:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×