Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 13:25, 31 December 2007.

How to send message to a specified application

From Forum Nokia Wiki

Header

#include <apacmdln.h>  
#include <apgcli.h>    
#include <apgtask.h>
#include <e32std.h>
#include <w32std.h>


Sending Custom message to a specified application

/*
 * @param  aApplicationUid :- Uid of the application to which the message needs to be send
 * @param  aExternalMessage:- A Message  to be sent to the  application
 */
// Sends message to the specified application
TInt SendingMessageToAppL( const TUid& aApplicationUid, const TDesC8& aExternalMessage )
{
   RWsSession windowSession;
   User::LeaveIfError( windowSession.Connect() );
 
   TApaTaskList apataskList( windowSession);
   TApaTask apatask = taskList.FindApp( aApplicationUid );
 
   const TUid KOpenCreateUid = { KUidApaMessageSwitchCreateFileValue };
   TInt pseudoCode = apatask.SendMessage( KOpenCreateUid ,aMessage );
   windowSession.Close(); 
 
   return pseudoCode;
}


Related Links

How to send particular Event to External application in Symbian

Related Discussions
Thread Thread Starter Forum Replies Last Post
Setting up SMS development environment alecswan Mobile Java Tools & SDKs 1 2005-02-03 16:25
Chinese Character Question? ElvinChong Multimodecards 1 2003-04-11 11:49
3650 (image can not be saved) mattsymor Bluetooth Technology 5 2003-12-07 09:37
NMSS 1.5 EAIF Emulator and X-Mms-Transaction-Id johnstlr General Messaging 2 2006-06-20 22:52
how to clear idle screen. symsta General Symbian C++ 4 2008-09-22 07:36
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZmessagingQ
     qfnZtopicQUqfnTopicZsmsQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX