×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    5

    Setting Homescreen Shortcut Index on 5800

    Hi,

    I am developing an app for the Nokia 5800, and specifically investigating whether or not its possible to set where my app shortcut appears on the Homescreen.

    On the 5800 there are 3 possible Homescreen Themes: Shortcuts Bar, Basic and Contacts Bar.

    The Shortcuts Bar places 4 shortcuts across the top of the Homescreen, these being: "Messaging", "Skype", "Messenger", and "Email on 3" (as I am using a H3G-branded phone)

    I have successfully been able to programmatically place a shortcut to my app on the Homescreen using the following code:

    RApaLsSession ls;
    ls.Connect();

    TApaAppInfo appInfo;
    ls.GetAppInfo(appInfo,iAppUId);

    TFileName fileName;
    fileName.Append(appInfo.iCaption);
    fileName.TrimAll();
    fileName.Copy(KScApplicationStart);
    fileName.Append(KtxRemoveUniHex);
    fileName.AppendNum((TUint32)appInfo.iUid.iUid,EHex);

    const TUid KCRUidShortcutItems = { 0x10275104 };
    CRepository* repository = CRepository::NewLC(KCRUidShortcutItems);
    TInt err = repository->Set(0x1, fileName);

    This code places my app as the first shortcut (on the left-hand-side)

    What I now need to be able to do is the ability to specify where on the Homescreen my shortcut appears.

    Is there a way of doing this through the CRepository interface?

    Any help greatly appreciated.
    Cheers,
    Dave.

  2. #2
    Nokia Developer Champion
    Join Date
    May 2004
    Posts
    2,267

    Re: Setting Homescreen Shortcut Index on 5800

    Hi,

    If 0x1 is the first one then 0x2 must be the one next to it.

    Code:
    TInt err = repository->Set(pos, fileName); // pos can be 0x1, 0x2, ...
    The topic has been discussed a lot in the following thread

    "How to add a shortcut to the Standby screen?"
    http://www.forum.nokia.com/forum/sho...d.php?t=154969

    Some of the posts are in Chinese but all my posts are in English, for example the solutions.

    For S60 3rd Edition FP2 and later
    http://www.forum.nokia.com/forum/sho...13&postcount=9

    For S60 3rd Edition FP1
    http://www.forum.nokia.com/forum/sho...5&postcount=20
    http://www.forum.nokia.com/forum/sho...9&postcount=22

    Regards

    Ziteng Chen

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    5

    Re: Setting Homescreen Shortcut Index on 5800

    Hi Ziteng Chen,

    Yes, you are right. Not sure why I didnt try that myself
    It works perfectly!

    Thanks again!
    Dave.

Similar Threads

  1. video conversion setting for 5800 ?
    By gugaraj in forum Streaming and Video
    Replies: 1
    Last Post: 2010-01-15, 11:58
  2. Setting shortcut for the app
    By gpalvia in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-09-14, 10:21
  3. Replies: 1
    Last Post: 2009-08-14, 06:15
  4. Nokia 5800 homescreen issues
    By gtbarry in forum General Development Questions
    Replies: 7
    Last Post: 2009-06-23, 04:18
  5. How to get an index of 'Enumerated text popup setting Item'?
    By whasj35 in forum Symbian User Interface
    Replies: 7
    Last Post: 2009-06-18, 11:36

Posting Permissions

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