×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    34

    How can set wallpaper by program?

    Hi!
    I want to know the way to set wallpaper by my program.

    Thank you.
    Mobile Software Developer

    C++ for Symbian OS S60 2nd/3rd Edition SDK

    Multimedia Process

  2. #2
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: How can set wallpaper by program?

    you may need to reverse engg commonengine.lib you would be able to use CSharedDataI class.

    probably this link tell you how to use CSharedDataI

    http://mikie.iki.fi/lxr/source/Conte...LogView.cpp?v4

    and also do search this forum using this class name.

    Priju

  3. #3
    Super Contributor
    Join Date
    Jun 2006
    Location
    Moscow, Russia
    Posts
    803

    Re: How can set wallpaper by program?

    Hi,

    AknsWallpaperUtils class should be used for it. Check this thread:
    http://discussion.forum.nokia.com/fo...WallpaperUtils
    Regards,
    ivey

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    34

    Re: How can set wallpaper by program?

    Thank you for Forum Nokia Champions help!

    I found CSharedDataI class, but what do i do now?

    How to use CSharedDataI class?

    Help me step and step detaily!

    Please tell me ! Is that true ?

    "SharedDataClient must be replace to CSharedDataI in the following code. "
    /*
    - SharedDataClient.h
    - Calypso\SharedDataKeys.h
    - Calypso\SystemWarningLevels.hrh
    The Calypso directory isn't used in Sendo,
    the files are found in the /epoc32/include/ dir, but you need to copy to the
    /epoc32/include/Calypso folder on the SDK you're using.

    Need to link to CommonEngine.lib.
    */

    #include <SharedDataClient.h>
    _LIT(kIdleImgKey, "IdleImg");//This keys must be used like here?
    _LIT(kIdleIndexKey, "IdleIndex");
    _LIT(kDimIndexKey, "DimIndex");
    _LIT(kIdlePathKey, "IdlePath");
    _LIT(kIdlePathValueKey, "c:\\system\\data\\backgroundimage.mbm");

    void CMyClass::UpdateWallpaper()
    {
    RSharedDataClient c;
    User::LeaveIfError(c.Connect());

    const TUid idleUid = {0x10005a32};
    if(c.Assign(idleUid)==KErrNone)
    {
    c.SetInt(kIdleImgKey, 1);
    c.SetInt(kIdleIndexKey, 0);
    c.SetInt(kDimIndexKey, 1);
    c.SetString(kIdlePathKey, kIdlePathValueKey);
    }

    c.Close();
    }
    Thank you!
    Mobile Software Developer

    C++ for Symbian OS S60 2nd/3rd Edition SDK

    Multimedia Process

  5. #5
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: How can set wallpaper by program?

    Did u try what Ivey has suggested, as i have not worked with CSharedDataI im not able to give a explanation.

Similar Threads

  1. When can you set the screensaver's Refresh Timer Value?
    By azhrei in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2008-08-23, 10:12
  2. Set Wallpaper
    By geekzy in forum Mobile Java Media (Graphics & Sounds)
    Replies: 10
    Last Post: 2006-09-26, 08:51
  3. Set the program not to close
    By kennykf in forum Symbian
    Replies: 1
    Last Post: 2006-03-07, 18:39
  4. Replies: 0
    Last Post: 2006-01-20, 06:53
  5. how to set the wallpaper to full screen?
    By dodoro in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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