×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2011
    Posts
    107

    Post Problem in creating flash(swf launcher app)

    I am creating a simple flash launcher app
    I want to hide icon of the app from FSW...
    I used the code
    HideApplicationFromFSW(ETrue);
    but it creates an exception
    Main [Thread id: 495] (Suspended : Exception - A data abort exception has occurred accessing 0x0.)
    [Unknown] at 0x78759776
    [Unknown] at 0x78b1c426
    [Unknown] at 0x825aa604

    can anybody help me on how to hide the app from FSW?

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2008
    Posts
    43

    Re: Problem in creating flash(swf launcher app)

    Hi, would it be possible to get more info about platform, SDK and so on? Also, what is the class your are calling the function (assuming AppUi)? A small code snippet would be great.
    Last edited by mimuurin; 2011-10-13 at 07:48.

  3. #3
    Registered User
    Join Date
    Jul 2011
    Posts
    107

    Re: Problem in creating flash(swf launcher app)

    sorry for late answer
    Code:
    CApaApplication* NewApplication()
    	{
    	return new CstubApplication;
    	}
    
    TInt E32Main()
    	{
    	return EikStart::RunApplication(NewApplication);
    	}
    
    CstubApplication::~CstubApplication()
    	{
    	if (iFlashLibrary.Handle())
    		{
    		iFlashLibrary.Close();
    		}
    	}
    
    const TUid KUidFlashStubApp =
    	{
    	0xe0000418
    	};
    _LIT(KStubFlashContent, "E:\\Data\\try\\try.swf");
    
    TUid CstubApplication::AppDllUid() const
    	{
    	return KUidFlashStubApp;
    	}
    
    CApaDocument* CstubApplication::CreateDocumentL()
    	{
    	TInt wgId = CEikonEnv::Static()->RootWin().Identifier();
    	 RWsSession session = CEikonEnv::Static()->WsSession();
    	 CApaWindowGroupName* wgName = CApaWindowGroupName::NewLC( session, wgId );
    	 wgName->SetHidden( ETrue );
    	 wgName->SetWindowGroupName( CEikonEnv::Static()->RootWin() );
    	 CleanupStack::PopAndDestroy(); // wgName
    	HideApplicationFromFSW(ETrue); //Error occurs here
    	config.iIsMMI = EFalse;
    	config.iIsStubApp = ETrue;
    	config.iContentFileName.Copy(KStubFlashContent);
    	config.iContentChecksum = 0;
    	config.iExtensions = NULL;
    	config.iReserved1 = NULL;
    	config.iReserved2 = 0;
    	if (!FlashStubsSupported())
    		{
    		User::Leave( KErrNotSupported);
    		}
    	return CreateFlashDocumentL(iFlashLibrary, this, config);
    	}

Similar Threads

  1. Replies: 2
    Last Post: 2011-04-28, 09:07
  2. Replies: 6
    Last Post: 2010-05-17, 22:35
  3. autostart - creating a launcher program
    By nire123 in forum Symbian
    Replies: 8
    Last Post: 2010-01-15, 08:21
  4. creating SWF Launcher for Flash Lite is easy now
    By chall3ng3r in forum Symbian
    Replies: 2
    Last Post: 2007-03-16, 13:26
  5. creating s60 2nd edition application launcher
    By puh_sk8@hotmail.com in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 2
    Last Post: 2007-01-09, 08:25

Posting Permissions

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