Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Regular Contributor heroist's Avatar
    Join Date
    Jun 2006
    Posts
    129
    I would like to add bookmark to browser in s60 3rd.Anyone can help me how to implement it?

  2. #2
    Super Contributor Paul.Todd's Avatar
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644
    Use the favourites API (RFavouritesDb)

  3. #3
    Regular Contributor heroist's Avatar
    Join Date
    Jun 2006
    Posts
    129
    _LIT( KBookmarkDbFile,"c:\\Favourites\\BrowserBookmarks\\Favourites.db");
    RFavouritesDb favoris;
    RFavouritesSession fSession;
    User::LeaveIfError(fSession.Connect());
    User::LeaveIfError(favoris.Open(fSession,KBookmarkDbFile));

    CFavouritesItem *favorisItem = CFavouritesItem::NewLC();
    favorisItem->SetType(CFavouritesItem::EItem);
    favorisItem->SetNameL(_L("Test") );
    favorisItem->SetUrlL(_L("http://www.google.com"));
    favoris.Add(*favorisItem, ETrue);
    favoris.Commit();

    CleanupStack::PopAndDestroy();

    my code is here

    but i can not working

    error code is KErrBadName

    please help me

  4. #4
    Super Contributor Paul.Todd's Avatar
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644
    Where is the error occuring

  5. #5
    Regular Contributor heroist's Avatar
    Join Date
    Jun 2006
    Posts
    129
    User::LeaveIfError(favoris.Open(fSession,KBookmarkDbFile));

    error code is -28

  6. #6
    Regular Contributor heroist's Avatar
    Join Date
    Jun 2006
    Posts
    129
    i am solution these problem when i change the KBookmarkDbFile.

    now i having a new problem

    the error appear e appearing at

    favoris.Commit();

    the error code -291

  7. #7
    Registered User laa-laa's Avatar
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    You'll need to Begin() a database transaction before you can Commit() it.

    Lauri

  8. #8
    Regular Contributor heroist's Avatar
    Join Date
    Jun 2006
    Posts
    129
    _LIT( KBookmarkDbFile,"browserbookmarks");
    RFavouritesDb favoris;
    RFavouritesSession fSession;

    //TFavouritesWapAp Faccess;
    //Faccess.SetDefault();

    User::LeaveIfError(fSession.Connect());
    User::LeaveIfError(favoris.Open(fSession,KBookmarkDbFile));

    CFavouritesItem *favorisItem = CFavouritesItem::NewLC();

    //favoris.Begin(ETrue);

    favorisItem->SetType(CFavouritesItem::EItem);
    favorisItem->SetNameL(_L("HelloTest") );
    favorisItem->SetUrlL(_L("http://www.google.com"));
    //favorisItem->SetWapAp(Faccess);

    favoris.Add(*favorisItem, ETrue);
    //favoris.Commit();

    fSession.Close();
    CleanupStack::PopAndDestroy();



    After running the application,it have no responding.

    I can't find error.

    please tell me what's wrong with me

  9. #9
    Regular Contributor qiangsir's Avatar
    Join Date
    Apr 2005
    Posts
    213
    favorisItem->SetParentFolder(-1);
    favorisItem->SetType(CFavouritesItem::EItem);
    favorisItem->SetNameL(_L("HelloTest") );
    favorisItem->SetUrlL(_L("http://www.google.com"));

  10. #10
    Registered User riussi's Avatar
    Join Date
    Jul 2004
    Posts
    7
    How can I add a bookmark to the new Browser NG on the 3rd edition devices? With these examples I can add bookmarks allright but they only appear on the old browser which is now called Services. Is it just a matter of locating the correct place of the browser ng bookmarks or do I need to do more?

  11. #11

  12. #12
    Registered User beldarjay's Avatar
    Join Date
    Jan 2007
    Posts
    1
    I want to know how to send bookmark on mobile by GSM modem using AT command via com port on nokia mobiles ?
    I can send it when it received it look like configuration message and not able to open it.
    Which port number should be used? How?

  13. #13
    Regular Contributor ajsanchez's Avatar
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329
    Hi riussi,

    did you find a solution? I'm trying also do the same.

    Thanks in advance.

  14. #14
    Registered User clawler's Avatar
    Join Date
    Nov 2006
    Posts
    3
    Quote Originally Posted by Paul.Todd
    This issue seems to extend beyond E Series devices. At least N73 and N80 also.

    Is there still no way to retrieve bookmarks made in the "Web" browser?

  15. #15
    Regular Contributor ajsanchez's Avatar
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329
    Hi

    it's also documented on tech lib http://www.forum.nokia.com/document/...er_for_S60.htm

    It seems that there is no workaround...

    Bye

Page 1 of 2 12 LastLast

Similar Threads

  1. How to push a bookmark to phones?
    By Stormen in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2005-11-04, 13:22
  2. 'Bookmark has no address' - failing web connection
    By Ujjwal Bhaskar in forum General Development Questions
    Replies: 1
    Last Post: 2005-08-19, 09:45
  3. How to Add a bookmark to web browser's setting in s60?
    By redglove in forum Mobile Web Site Development
    Replies: 0
    Last Post: 2005-02-17, 06:23
  4. WAP Bookmark
    By ashrafcm in forum Smart Messaging
    Replies: 1
    Last Post: 2002-12-17, 08:51
  5. 7650 browser setting and bookmark setting via OTA
    By hsinyee in forum Smart Messaging
    Replies: 3
    Last Post: 2002-12-13, 09:29

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