×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    22

    wap browser not open

    hi all,
    I'm using this code to open wap browser from my application
    Code:
    void CMyAppUi::OpenUrl(TDesC &aUrl)
    	{
    	HBufC* param = HBufC::NewLC( 256 );
    	param->Des().Format( _L( "4 %S" ),&aUrl );
    
    	// Wap Browser's constants UId
    	const TInt KWmlBrowserUid = 0x10008D39;
    	TUid id( TUid::Uid( KWmlBrowserUid ) );
    
    	TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
    	TApaTask task = taskList.FindApp( id );
    	if ( task.Exists() )
    	{
    	     HBufC8* param8 = HBufC8::NewLC( param->Length() );
    	     param8->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( KWmlBrowserUid ), id );
    	     appArcSession.Close();
    	}
    	CleanupStack::PopAndDestroy(); // param
    	}
    It worked fine if browser is not open before.
    If browser is opened or running in background. it not work, nothing happen
    --
    Can some one experience this problem
    I'm using n95
    ---
    Thanks

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: wap browser not open

    Try adding SWEvent capability to your application.

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    22

    Re: wap browser not open

    Quote Originally Posted by symbianyucca View Post
    Try adding SWEvent capability to your application.
    Thankyou
    It worked

Similar Threads

  1. Replies: 6
    Last Post: 2009-05-29, 15:00
  2. Can I open the WAP Browser from a JME app?
    By mikemoore in forum Mobile Java General
    Replies: 22
    Last Post: 2009-03-18, 15:55
  3. How To Launch Application From WAP Browser When Browser URL Invoked
    By bhuvnesh1234 in forum Mobile Web Site Development
    Replies: 3
    Last Post: 2008-11-21, 18:57
  4. Replies: 2
    Last Post: 2003-05-26, 08:32
  5. How To Launch Application From WAP Browser?
    By bhuvnesh1234 in forum Symbian C++
    Replies: 0
    Last Post: 2003-02-27, 07:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •