×

Discussion Board

Results 1 to 2 of 2

Threaded View

  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Location
    Ukraine
    Posts
    56

    How to show web browser to show internet page

    Hi there

    I found code and change it a little:
    Code:
    	const TInt KWebBrowserUid = 0x1020724D;
    	const TInt KWebBrowserUid6110Nav = 0x10008d39;
    	
    	TUid id( TUid::Uid( KWebBrowserUid ) );
    
    	TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
    	TApaTask task = taskList.FindApp( id );
    	if ( task.Exists() )
    	{
    		LOGTXT("Browser was opened. Send message");
    		HBufC8* param8 = HBufC8::NewLC( myUrl.Length() );
    	    param8->Des().Append( myUrl );
    	    task.SendMessage( TUid::Uid( 0 ), *param8 ); // Uid is not used
    	    CleanupStack::PopAndDestroy(); // param8
    	}
    	else
    	{
    		LOGTXT("Open browser was opened");
    		RApaLsSession appArcSession;
    		if(!appArcSession.Handle())
    			{
    			User::LeaveIfError(appArcSession.Connect()); // connect to AppArc server
    			}
    	     TThreadId id;
    	     TInt err = appArcSession.StartDocument( myUrl, TUid::Uid( KWebBrowserUid ), id );
    	     if (err!=KErrNone)
    	    	 {
    		     err = appArcSession.StartDocument( myUrl, TUid::Uid( KWebBrowserUid6110Nav ), id );
    		     if (err!=KErrNone)
    		    	 {
    		    	 LOGARG("Error in showPosition. Error[%d]", err);
    		    	 }
    	    	 }
    	     else 
    	    	 {
    	    	 LOGARG("Error in showPosition. Error[%d]", err);
    	    	 }
    
    	     appArcSession.Close();
    	}
    For symbian 9.x it works fine. I have tested it on E50 and 6110Navifator

    but this two phones have different web browser UIds
    and I need to have a solution for every Symbian phone

    Please,
    advice me how to recognize web browser uid or in general
    how to show a page if I have its link


    I would be glad for any suggestions.

    thank you in advance
    Last edited by sashaslonmailer; 2008-04-08 at 15:47.

Similar Threads

  1. Question about web browser
    By zhangwei_Nirvana in forum Symbian
    Replies: 1
    Last Post: 2008-03-28, 07:28
  2. Web Browser Padding Bug on Nokia 6260 Nokia 7610
    By brett_sheeran in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2007-01-29, 22:55
  3. problem in loading web page in emulator
    By kmsoomro in forum Symbian
    Replies: 0
    Last Post: 2004-06-17, 16:57

Posting Permissions

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