You Are Here:

Community: Wiki

This page was last modified on 26 January 2009, at 07:07.

CS001282 - Obtaining product information in Flash Lite

From Forum Nokia Wiki



ID CS001282 Creation date January 26, 2009
Platform S60 5th Edition Tested on devices Nokia 5800 XpressMusic
Category Flash Lite Subcategory System information


Keywords (APIs, classes, methods, functions): Service.SysInfo, sysInfo.GetInfo()

Overview

This code snippet demonstrates how to check product information of the device using the SystemInfo Platform Service for Flash Lite supported from S60 5th Edition onwards.

Source

// Import Platform Service Interface
import com.nokia.lib.Service;
// Heading of the application
heading_txt.text = "Checking Product Id (Firmware Version)";
 
// Create new Service object which has SystemInfo Service data
var sysInfo = new Service("Service.SysInfo", "ISysInfo");
 
// Define input parameters
var inParams = {Entity:"Device", Key:"FirmwareVersion"};
 
// Retrieve information about a system attribute with a synchronous call
// Define result value
var outParams = sysInfo.GetInfo(inParams);
if (outParams.ErrorCode == 0) {
var systemData = outParams.ReturnValue;
var firmware = systemData.StringData;
text_txt.text = "Firmware version:\r"+firmware;
} else {
var errorId = outParam.ErrorCode;
text_txt.text = "Error: "+errorId;
}

Postconditions

All firmware details including the product name are displayed.

Example application

The following sample application has been tested in the Nokia 5800 XpressMusic (S60 5th Edition, Flash Lite 3.0).
File:FlashLite Checking Product Info.zip

See also

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fCS001254E5fE2dE5fCheckingE5fbatteryE5flevelE5finE5fFlashE5fE4citeX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZflashQ qfnZtopicQUqfnTopicZflashE5fliteQ qfnZtopicQUqfnTopicZhardwareQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qfnZuserE5ftagQSxhardwareX qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ