×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    6

    Display web page in mobile application

    hello everybody


    i want to develop an application for mobile where in when the application starts the application will connect to web server and access a web page over there.the web page will contain images.i want the web page to be displayed in my application.how is this possible.i dont want it to do through web browser coz i need to pass the date and time of mobile phone as parameters to my web server.plz help

    thanx
    parth

  2. #2
    Regular Contributor
    Join Date
    Aug 2004
    Location
    Hyderabad-India
    Posts
    160

    Re: Display web page in mobile application

    Hi,

    I think you can call browser and still send the arguments(in your case date and time)
    to your server.But, I am not sure whether or not you can display the images etc kind of stuff in your application.

    I think the following code can help you, to call the browser and send the data and time to your server....



    TApaTaskList taskList(iEikonEnv->WsSession());
    TApaTask task = taskList.FindApp(KWmlBrowserUid);

    //declare and get date and time and then pass to the url(to your server) as arguments
    _LIT(KUrl,"www.yourwebsite.com/index.cgi?date=%d&time=%d",date,time);
    const TBuf<20> link(KUrl);

    if (task.Exists())
    {
    // If the browser is already running, send the url to load as a message
    HBufC8* param8 = HBufC8::NewLC(link.Length());
    param8->Des().Append(link);
    task.SendMessage(TUid::Uid(0), *param8);
    CleanupStack::PopAndDestroy(param8);
    }
    else
    {
    // If the browser is not already running, pass the present KUrl to the browser to load
    RApaLsSession appArcSession;
    User::LeaveIfError(appArcSession.Connect()); // connect to AppArc server
    TThreadId id;
    appArcSession.StartDocument(link, KWmlBrowserUid, id);
    appArcSession.Close();
    }


    regards,
    VVS.Naresh
    http://students.iiit.net/~satyanaresh/
    --

  3. #3
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    295

    Re: Display web page in mobile application

    Use Browser Control API if you can.

Similar Threads

  1. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  2. Mobile Podcasting - will it happen?
    By mobile monte in forum News and Announcements
    Replies: 0
    Last Post: 2006-09-22, 23:45
  3. display a popup from background application
    By alice77 in forum Symbian
    Replies: 1
    Last Post: 2006-01-31, 05:23
  4. problem in loading web page in emulator
    By kmsoomro in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-06-17, 16:56

Posting Permissions

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