×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432

    starting a new application

    hi,
    i started the new application using the following code

    const TInt KUid = 0xxxxxxxxx;
    TUid id( TUid::Uid( KUid ) );
    TUid msgapid(TUid::Uid( _UID3 ));


    TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
    TApaTask task = taskList.FindApp( id );

    if ( task.Exists() )
    {
    #if 1 //capabilities:SwEvent
    _LIT8(params,""); //capabilities:SwEvent
    task.SendMessage( msgapid, params); // Send a Uid to that will callback.
    task.BringToForeground();
    #else
    //Close
    EndTask(id,100);

    //Launch
    HBufC* param = HBufC::NewLC( 256 );
    param->Des().AppendNum(msgapid.iUid);
    RApaLsSession appArcSession;
    User::LeaveIfError(appArcSession.Connect()); // connect to AppArc server
    TThreadId idt;
    appArcSession.StartDocument( *param, TUid::Uid( KUid ), idt );
    appArcSession.Close();
    CleanupStack::PopAndDestroy(); // param
    #endif

    }else{

    //Launch
    HBufC* param = HBufC::NewLC( 256 );
    param->Des().AppendNum(msgapid.iUid);
    RApaLsSession appArcSession;
    User::LeaveIfError(appArcSession.Connect()); // connect to AppArc server
    TThreadId idt;
    appArcSession.StartDocument( *param, TUid::Uid( KUid ), idt );
    appArcSession.Close();
    CleanupStack::PopAndDestroy(); // param

    but i dont know how to access and use *param parameter in the new application.can any one please provide me the example of how can i access it and where can i access it

    thanks

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: starting a new application

    what is the 2nd application type ?

  3. #3
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: starting a new application

    You can access it using CCommandLineArguments.

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: starting a new application

    Quote Originally Posted by savaj View Post
    You can access it using CCommandLineArguments.
    only if it is a Console application

  5. #5
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432

    Re: starting a new application

    hi skumar_rao,
    2nd application type is also exe. it has user interface ,document class.
    Not console application

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: starting a new application

    Quote Originally Posted by lokesh_kumar_s View Post
    hi skumar_rao,
    2nd application type is also exe
    Not console application
    if it is not a .app then you can follow what savaj has suggested.

  7. #7
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432

    Re: starting a new application

    in .mmp file i see this
    TARGETTYPE exe
    but it is having

    SOURCE Example.cpp
    SOURCE ExampleApplication.cpp
    SOURCE ExampleAppView.cpp
    SOURCE ExampleAppUi.cpp
    SOURCE ExampleDocument.cpp

    how can access do you know any example.

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: starting a new application

    Quote Originally Posted by lokesh_kumar_s View Post
    in .mmp file i see this
    TARGETTYPE exe
    but it is having

    SOURCE Example.cpp
    SOURCE ExampleApplication.cpp
    SOURCE ExampleAppView.cpp
    SOURCE ExampleAppUi.cpp
    SOURCE ExampleDocument.cpp

    how can access do you know any example.
    can you show your Example.cpp. I doubt that it is not a v2.x application

    Note: That this is not right section for your problem. try using correct section in future.

  9. #9
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432

    Re: starting a new application

    // Copyright (c) 2006 Nokia Corporation.

    #include <eikstart.h>
    #include "S60UIExampleApplication.h"

    // Application creation function
    LOCAL_C CApaApplication* NewApplication()
    {
    return new CS60UIExampleApplication;
    }

    // Entry Point Function
    GLDEF_C TInt E32Main()
    {
    return EikStart::RunApplication( NewApplication );
    }
    it is version 2.x application . what is the problem

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: starting a new application

    Quote Originally Posted by lokesh_kumar_s View Post
    hi skumar_rao,
    2nd application type is also exe. it has user interface ,document class.
    Not console application
    Quote Originally Posted by lokesh_kumar_s View Post
    // Copyright (c) 2006 Nokia Corporation.

    #include <eikstart.h>
    #include "S60UIExampleApplication.h"

    // Application creation function
    LOCAL_C CApaApplication* NewApplication()
    {
    return new CS60UIExampleApplication;
    }

    // Entry Point Function
    GLDEF_C TInt E32Main()
    {
    return EikStart::RunApplication( NewApplication );
    }
    it is version 2.x application . what is the problem
    If it is a 2.x Application then should be a TARGETTYPE APP not a Exe.

  11. #11
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432

    Re: starting a new application

    hi savaj,
    how can i see my application version .

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: starting a new application

    If you mean the version you specify in the .pkg file, the required API is not part of the SDK-s.
    But you can always create a version number in the code as well, and update it manually or via some script.
    And it is also possible to install the .pkg file itself - for example into your private path -, then you can extract the version number from it.

  13. #13
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432

    Re: starting a new application

    i see this comment ;Supports Series 60 v 3.0 in pkg file is this is 3 version application if so, s kumar said that to post in another section. where do i need to post. can u please tell me how to start an new application in the 3 rd version of symbian

  14. #14
    Regular Contributor
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432

    Re: starting a new application

    atleast can you please tell me where can i post the thread.I am not getting any help.
    my question is simple how can i use the *param parameter in the new application.the new application Target type as specified in the mmp file is "exe" but it is having Application,ApplicationDocument,ApplicationUI,ApplicationView Classes,and is running fine.is this much information is not enough for deciding the version number.if it is not version 2 application then which version it is? how can i use *param in that version.if u know any code example simply redirect me to that it will also be helpful.please help me.

  15. #15
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: starting a new application

    You are probably reading an older Symbian/S60 book, or so.
    Starting from Symbian 9.0 / S60 3rd edition GUI applications also became .exe files, and the .app extension became deprecated.

    If you are really interested, it is possible to create applications which can be compiled on both the old and the new platforms.
    A sample .mmp file can be found here: http://discussion.forum.nokia.com/fo...ad.php?t=82674
    And the E32Xy methods are mentioned here: http://discussion.forum.nokia.com/fo...d.php?t=151944
    There should be more complete examples too, just they happened a long time ago, and the search engine does not really want to reveal them apparently.

Similar Threads

  1. Replies: 8
    Last Post: 2009-01-20, 13:47
  2. Starting an application in Symbian on external trigger
    By nital_shah in forum General Development Questions
    Replies: 3
    Last Post: 2008-06-19, 12:36
  3. Starting a hidden Icon Application in Symbian.
    By nital_shah in forum General Development Questions
    Replies: 3
    Last Post: 2008-06-18, 07:22
  4. starting application without clicking on icon
    By nabaparna in forum Symbian
    Replies: 6
    Last Post: 2007-06-05, 12:59
  5. Starting a Wap browser from an application
    By damsku in forum Symbian
    Replies: 13
    Last Post: 2006-08-21, 09:28

Posting Permissions

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