You Are Here:

Community: Wiki

This page was last modified on 7 October 2008, at 06:44.

Viral marketing with send to a friend

From Forum Nokia Wiki

The we:offset application allows consumers to offset the carbon footprint of their travel using their mobile device. The application includes a "share with a friend" feature accessed from the left soft key and used to allow consumers to encourage their friends to download the application. Here is the code behind that feature:

void CEcoFlyerContainerBase::ShareWithFriendsL()
{
CSendUi* sendUi = CSendUi::NewLC();
CMessageData* data = CMessageData::NewL();
CleanupStack::PushL( data );
HBufC* text = HBufC::NewLC( 512 );
text->Des().AppendFormat( *StringLoader::LoadLC( R_LOC_SMS_SHARING), &KEcoFlyerDownloadLink, &_L( "" ) );
CleanupStack::PopAndDestroy();
 
CRichText* richText = CRichText::NewL(
iEikonEnv->SystemParaFormatLayerL(), iEikonEnv->SystemCharFormatLayerL() );
CleanupStack::PushL( richText );
richText->InsertL( 0, text->Des() );
data->SetBodyTextL( richText );
sendUi->CreateAndSendMessageL( KUidMsgTypeSMS, data );
 
CleanupStack::PopAndDestroy( 4 );
}

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 
User Rating: qfnZuserE5FratingQNx1E2E0000X