Trick: Launch Wap Browser (SymbianUIQ)

xiaoxiao2021-03-06  31

Code snippet: void LaunchWapBrowserL (TDesC & aURL) {const TInt KWmlBrowserUid = 0x100066de; TUid aWebAppUid (TUid :: Uid (KWmlBrowserUid)); RApaLsSession session; session.Connect (); TApaAppInfo aInfo; session.GetAppInfo (aInfo, aWebAppUid); Capacommandline * CommandLine = Capacommandline :: newl ();

Cleanupstack :: Pushl (CommandLine); CommandLine-> setLibraryNamel; CommandLine-> setDocumentnamel (AURL); CommandLine-> setcommandl (EAPAcMandCreate);

Session.StartApp (* commandline); session.close (); cleanupstack :: popandDestroy (1);

}

转载请注明原文地址:https://www.9cbs.com/read-68574.html

New Post(0)