use the following code to get the user agent of the device.
iRepository= CRepository::NewLC(TUid::Uid(0x101f8731));
TBuf<255> tmp;
iRepository->Get(7, tmp);
iUserAgent = HBufC8::NewL(tmp.Length());
iUserAgent->Des().Copy(tmp);
The Purpose of this Blog is to spread the less known facts to the Mobile developers. If you want to post any article on the Blog please send it to me my email ID is skumar.mobiledev@gmail.com
2 comments:
On which devices have you tested this code? It doesn't work on 3.2 platform :(
Oh I already found the reason. On 3.2 devices I've tested, another key index should be used (5 instead of 7, for example)
Post a Comment