Helping Symbian developers

Problem while displaying the arabic text

Hi,
I have tried to display the text in the arabic format using the class CCnvCharacterSetConverter. I have pasted the code below. Please let me know what is the problem .
TBuf8<128> aText;
aText.Copy(_L("\u0634\u0627\u062f\u062c\u0645\u0647\u0648\u0645\u0646"));
CCnvCharacterSetConverter* aCharacterSetConverter = CCnvCharacterSetConverter::NewL();
if (aCharacterSetConverter->PrepareToConvertToOrFromL(KCharacterSetIdentifierJavaConformantUtf8,CEikonEnv::Static()->FsSession()) != CCnvCharacterSetConverter::EAvailable)

Unit-testing framework for Symbian

I haven't posted to SymbianExample.com for a while for a reason. The reason is that I simply don't have enough energy for several projects. So I decided to focus as much as possible on my main project - Agile Software Development.

However, sometimes my interests intersect. Lately I've done a detailed and extensively commented example of applying the CppUTest unit-testing framework on Symbian platform (some Symbian-specific extensions included). Have a look and feel free to use.

Nokia on AdSense


Interesting ad I've noticed today. It looks like after announcing the change to an internet company Nokia started to actually try using the existing internet services.

Did you ever notice another Nokia text-link ads?

observing the flip open and flip close event in case of N93

Hi,

I wanted to observe the flip open and flip close event in case of N93.

I have tried with handling EEventCaseClosed, EEventCaseOpen events in HandleWsEventL().

Also i have tried by registering with EnableScreenChangeEvents().

iam handling flip evnets in Active object RunL().

if(iStatus == KErrNone)
{

TWsEvent e;

ws.GetEvent(e);

switch(e.Type())
{
case EEventCaseClosed:

case EEventCaseOpen:

}

and iam issueing the reqest like this.

ws.EventReady(&iStatus);
iMmcActive = observer;
SetActive();

My RunL() is getting called..

Flash Lite development

Unfortunately there are not too many Flash Lite resources on the web. Here is a short guide on the current web resources related to the Flash Lite development to save the "getting started" time.

  1. Adobe - Flash Lite Official Adobe site on Flash Lite. News, tools, SDKs

Blogging more, coding less

At the moment it is quite obvious that I am not able to create and publish code examples even every month and not too many people want to publish own code examples here.

Sometime soon I am going to change this site concept a little bit and transform it into more blog-like thing. There will be code examples still and everybody will be able to publish them here. However, I will also discuss the coding-related things here and will publish links to the most interesting code examples on the other sites. Certainly, everybody is very much welcome to do the same.

Application compatibility

Symbian operating system and Nokia's S60 based on Symbian are well known for breaking the binary compatibility here and there, changing constants and interfaces between the minor versions, etc. As Mika Raento puts it it "Nokia is completely schizophrenic when it comes to backward compatibility". Some interfaces are maintained with the help of various compatibility layers for a long time, while another interfaces sometimes are dropped or heavily re-engineered even within the same S60 version.

While it is definitely up to Nokia and Symbian when and how to change their interfaces, the big problem for the external developers in that the principles for maintaining or dropping the backwards compatibility are not known.

Sorting custom objects


Objects stored in RArray or RPointer array can be sorted basing on any properties you like. Everything you have to do is to define a comparison function to be passed to the Sort() routine.

Here is an example on how to sort the custom CPerson objects by the last name. Note the use of CompareC for taking into account the locale specifics, when comparing strings.

How to call 3rd Party API

I have an application developed on symbian c++. i want to call a 3rd party API for which i have included all the DLL and .h files provided by 3rd party vendor in coresponding directory .UDEB and Include .of symbian.

How can i call that 3rd party API ,please suggest me .I have the Pseudo
code for that ,i am confused in which directory/file of my project i have to include them(writethe code).

please suggest

Regard's
Dillip

Reading profile data in S60 3rd edition

Here's how you can read the current profile data in S60 3rd edition. The public central repository keys are defined in ProfileEngineSDKCRKeys.h. Mika Raento gives you a hint on how to access the hidden profile arguments.

As usual, find the compilable code example attached.

Syndicate content