Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Regular Contributor lokesh_kumar_s's Avatar
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432
    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
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    what is the 2nd application type ?

  3. #3
    Nokia Developer Champion savaj's Avatar
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034
    You can access it using CCommandLineArguments.

  4. #4
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by savaj View Post
    You can access it using CCommandLineArguments.
    only if it is a Console application

  5. #5
    Regular Contributor lokesh_kumar_s's Avatar
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432
    hi skumar_rao,
    2nd application type is also exe. it has user interface ,document class.
    Not console application

  6. #6
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    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 lokesh_kumar_s's Avatar
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432
    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
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    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 lokesh_kumar_s's Avatar
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432
    // 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
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    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 lokesh_kumar_s's Avatar
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432
    hi savaj,
    how can i see my application version .

  12. #12
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 lokesh_kumar_s's Avatar
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432
    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 lokesh_kumar_s's Avatar
    Join Date
    Jan 2009
    Location
    India,Karnataka
    Posts
    432
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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.

Page 1 of 2 12 LastLast

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 C++
    Replies: 6
    Last Post: 2007-06-05, 12:59
  5. Starting a Wap browser from an application
    By damsku in forum Symbian C++
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved