Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User priya83's Avatar
    Join Date
    Aug 2006
    Posts
    15
    In my appln..if i press connect option...the appln moves to background and a gif animation runs in the indicator pane..
    i need to keep that gif animation runnning always...even if i need to open other applications like "services"
    but it is getting hanged when i open any applications....
    this is the code i wrote for gif animation....

    In appui( ) class :

    SendToBackground();
    iGifAnimation = CGifAnimation::NewL(ClientRect());

    In gifanimation ( ) class:
    iMyWindowGroup = RWindowGroup(iCoeEnv->WsSession());
    User::LeaveIfError(iMyWindowGroup.Construct((TUint32)&iMyWindowGroup));

    iMyWindowGroup.SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront);
    iMyWindowGroup.EnableReceiptOfFocus(EFalse);
    CreateWindowL(&iMyWindowGroup);
    iViewer=CPAlbImageViewerBasic::NewL(this,TRect(TPoint(142,4),TSize(20,20)));
    iViewer->SetImageNameAndDisplaymodeL(KGif,EColor4K);
    iViewer->SetAnimationObserver(this,ETrue);

    iViewer->LoadImageL();
    if(iViewer->IsAnimation())
    iViewer->PlayAnimationL();
    Regards,
    Priya..

  2. #2
    Regular Contributor boumitran's Avatar
    Join Date
    Dec 2005
    Location
    Bangalore, India
    Posts
    90
    CPAlbImageViewerBasic is deprecated in higher version of Symbian OS.
    Try using CImageDecoder to decode the Image.

    Also, try

    CAknContextPane::SetPicture() for every frame given by CImageDecoder at proper intervals.
    Best Regards
    -Boumitran

  3. #3
    Registered User priya83's Avatar
    Join Date
    Aug 2006
    Posts
    15
    hi,
    i'm using series60 2nd edition fp2 only....Hope its not a pblm..
    Regards,
    Priya..

  4. #4
    Regular Contributor Gill's Avatar
    Join Date
    Feb 2007
    Posts
    52
    hi priya
    try this

    in ConstructL()
    {
    iGifFileDataprovider= new (ELeave) CICLAnimationDataProvider;
    iGifFileDataprovider->SetFileL(iFsSession,_L("C:\\sun.gif"));

    igifanimationconfig.iFlags = TAnimationConfig::ELoop;
    igifanimationconfig.iData = 10000;
    TPoint gifpoint = Position();
    iGifAnimatior = CBasicAnimation::NewL(iGifFileDataprovider,gifpoint,CEikonEnv::Static()->WsSession(),Window());
    iGifAnimatior->Start(igifanimationconfig);
    }

    and in draw()
    {
    iGifAnimatior->Draw(gc); }

Similar Threads

  1. Animation speed for a GIF file!
    By Den192 in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2009-01-14, 11:26
  2. gif animation problem
    By bojkar in forum Symbian C++
    Replies: 5
    Last Post: 2007-03-16, 09:04
  3. GIF Animation Background
    By kamalsinghania in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-11-17, 06:56
  4. Gif animation loop flag
    By jusav in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-06-27, 16:15
  5. Animated GIF for MMS Specifications
    By handtap in forum General Messaging
    Replies: 2
    Last Post: 2003-08-22, 09:46

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