Monday, February 1, 2016
Open WAP browser automatically connect to the specified URL UIQ2.1 Nokia6708 under.
Open WAP browser UIQ2.1 Nokia6708 automatic connection to the specified URL.
Currently my code can be done, but does not automatically open the connection, so the trouble to help the individual.
If help is valid, it can consider the economic reward.
The following is my code:
void StartBrowser (const TDesC & amp; aUrl)
{
HBufC * param = HBufC :: NewLC (256);
param- & gt; Des () Append (_L ("4"));.
param- & gt; Des () Append (aUrl);.
TInt KUidQWebAppUid = 0x101ff7d4;
TUid id (TUid :: Uid (KUidQWebAppUid));
TApaTaskList taskList (CEikonEnv :: Static () - & gt; WsSession ());
TApaTask task = taskList.FindApp (id);
if (task.Exists ())
{
task.BringToForeground ();
HBufC8 * param8 = HBufC8 :: NewLC (param- & gt; Length ());
param8- & gt; Des () Append (* param);.
task.SendMessage (TUid :: Uid (0), * param8); // Uid is not used
CleanupStack :: PopAndDestroy (); // param8
}
else
{
RApaLsSession appArcSession;
User :: LeaveIfError (appArcSession.Connect ()); // connect to AppArc server
TThreadId id;
appArcSession.StartDocument (* param, TUid :: Uid (KUidQWebAppUid), id);
appArcSession.Close ();
}
CleanupStack :: PopAndDestroy (); // param
}
Reply:
Bangding
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment