×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    1

    Question Problem closing application

    Hi,

    We're using FL4 on Symbian^3 and recently ported our app to E6 platform. App is packed in a WRT widget. While closing app we're using this code in FL4


    Code:
    btnExit.addEventListener(MouseEvent.CLICK, 
        function(e:MouseEvent):void {
            var u:URLRequest = new URLRequest("javascript:exitApp();");
            navigateToURL(u);
        }
    );
    exitApp() is defined in WRT side as follows:


    Code:
    function exitApp() {
    				if (confirm("Close App?")) {
    					window.close();
    				}
    			}
    Now, this works in C7 S^3, but not on E6. Does somebody know the problem or should we report a bug?

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2011
    Location
    bucharest
    Posts
    148

    Re: Problem closing application

    try call exitApp from JS and see if it works...

    anyway, I use this code to close WRT
    Code:
    	function killWRT(){
    		var WRT=window.open("", "_top");
    		WRT.close();
    	}

Similar Threads

  1. Closing an application
    By Cyr in forum Symbian Web Runtime
    Replies: 4
    Last Post: 2010-10-24, 20:35
  2. Closing Application notification???
    By emailatravi in forum Symbian C++
    Replies: 2
    Last Post: 2007-12-18, 05:44
  3. Application closing..!!!
    By techietintu in forum Symbian C++
    Replies: 4
    Last Post: 2007-01-23, 08:55
  4. closing of application
    By niwre in forum General Development Questions
    Replies: 0
    Last Post: 2005-04-04, 09:06
  5. Abruptly closing application
    By vishwas_dot_h in forum Mobile Java General
    Replies: 3
    Last Post: 2003-09-11, 08:10

Posting Permissions

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