Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor Tanya's Avatar
    Join Date
    Nov 2006
    Location
    Rajkot
    Posts
    430
    Hi All of you

    I want to make auto start widget application, I know that how to close widget from widget application, but how to start that application after closed or after installation?

    Please if anybody knows about this concept tell me or if you have any idea to implement this than tell me.

    Regards,
    Tanya

  2. #2
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi Tanya,

    there is not an "autostart" feature for WRT widgets. Only exception is when a widget is added to homescreen: in this case, it'll start automatically as the device boots up.

    Anyway, to achieve your result, you most probably have to write a small Symbian C++ app, that embeds your widget, and that launches it when it's needed.

    Pit

  3. #3
    Regular Contributor Tanya's Avatar
    Join Date
    Nov 2006
    Location
    Rajkot
    Posts
    430
    Quote Originally Posted by jappit View Post
    Hi Tanya,

    there is not an "autostart" feature for WRT widgets. Only exception is when a widget is added to homescreen: in this case, it'll start automatically as the device boots up.

    Anyway, to achieve your result, you most probably have to write a small Symbian C++ app, that embeds your widget, and that launches it when it's needed.

    Pit
    Hi

    Thanks your suggestions, doing work second one, but get some problem.

    -Only exception is when a widget is added to homescreen: in this case, it'll start automatically as the device boots up.

    how to do this way, please tell me.

    -Anyway, to achieve your result, you most probably have to write a small Symbian C++ app, that embeds your widget, and that launches it when it's needed.

    Code:
    	SwiUI::RSWInstLauncher iLauncher; 
    	if (iLauncher.Connect() == KErrNone)
    	{
    	iLauncher.Install( path ); // path = widget(.wgz) application path
    	iLauncher.Close();
    	}
    I am able to install .WGZ file from symbian application,
    but do not able to open/launch/execute widget from symbian application.

    have you any idea?

    Regards,
    Tanya

  4. #4
    Regular Contributor Tanya's Avatar
    Join Date
    Nov 2006
    Location
    Rajkot
    Posts
    430
    Hi

    I tried following way also but not worked.
    Is there any mistake? Please tell me.

    Code:
    			TInt retCode = 0;
    			_LIT(KMyExeFile,"APIBridgeTest.wgz");
    			CApaCommandLine* cmdLine = CApaCommandLine::NewLC();
    			cmdLine->SetExecutableNameL(KMyExeFile);//*iAppList[aIndex]->iFullName);
    
    			cmdLine->SetCommandL(EApaCommandRun);
    			RApaLsSession ls;
    			User::LeaveIfError(ls.Connect());
    			retCode = ls.StartApp(*cmdLine);
    			//ls.Close();
    			CleanupStack::PopAndDestroy(cmdLine);
    Regards,
    Tanya

  5. #5
    Regular Contributor Tanya's Avatar
    Join Date
    Nov 2006
    Location
    Rajkot
    Posts
    430
    Hi

    Please if any body have any idea for start and close/stop widget application from Symbian application?????

    Please help me, I searched in Google also but do not get any solution but it's required for my application, please help me.

    Thank you in advance.
    Tanya

Similar Threads

  1. Auto Start Capability
    By nair.shanker in forum Symbian C++
    Replies: 21
    Last Post: 2009-11-17, 15:15
  2. Auto Start Java Midlet
    By vipin_nambiar in forum Mobile Java General
    Replies: 1
    Last Post: 2009-04-09, 14:38
  3. How to make my widget "verified"?
    By vitaly_repin in forum Widsets Development
    Replies: 8
    Last Post: 2008-12-01, 19:26
  4. Auto Start Problem
    By nair.shanker in forum Symbian C++
    Replies: 2
    Last Post: 2008-11-12, 08:53
  5. Auto start and Auto installation
    By sunithadevim in forum Symbian C++
    Replies: 8
    Last Post: 2008-02-07, 04:58

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