Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
How to retrieve S60 5th Edition device model name
S60 5th Edition
From S60 5th Edition onwards, devices also have a file named product.txt in the z:\resource\versions\ directory. It contains more detailed information about the device, in the following format:
The device model name can be read from this file z:\resource\versions\product.txt
for(TInt i=0; i<2; i++) // TFileText::Read() reads one line at a time and our model information is in the second line.
CAknInformationNote* note = new (ELeave) CAknInformationNote(ETrue);
The model name will be in this format: Model=5800 xPressMusic