Namespaces

Variants
Actions

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.

Activate contact group view

From Wiki
Jump to: navigation, search
Article Metadata
Article
Created: mayankkedia (12 May 2009)
Last edited: hamishwillee (30 May 2013)


The following example shows how to navigate to a chosen contact group view of the native contacts application. The CPbkViewState class can be used to pass parameters the phonebook application when launching the application with the symbian view launching mechanism.

The API was published in S60 1st Edition and has been deprecated in the 5th Edition.

Header file required:

#include <cpbkviewstate.h>

CPbkViewState link against library pbkview.lib so add following line to your .mmp file.

LIBRARY pbkview.lib

Add following lines in .cpp file.

CPbkViewState* pbkViewParam = CPbkViewState::NewLC();
pbkViewParam->SetFocusedContactId(/*Your group id*/);
 
// Package and return object in a buffer.
HBufC8* paramBuf = pbkViewParam->PackLC();
 
// Uid for Contacts application
const TUid appUid = {0x101f4cce};
 
// Activate the view
// 3 is the Contact Group Info View's ID
AppUi()->ActivateViewL(TVwsViewId(appUid, TUid::Uid(0x03)), CPbkViewState::Uid(), *paramBuf);
 
// Cleanup
CleanupStack::PopAndDestroy(2); // paramBuf, pbkViewParam

Added by - Mayank on 12/05/2009

Links

Create a contact group

This page was last modified on 30 May 2013, at 04:36.
66 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×