Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User eshlomi's Avatar
    Join Date
    Aug 2005
    Posts
    8
    I'm trying to activate the Image Viewer using the following code:

    ( FileName initialized with the correct image path and full name )

    TInt32 imageViewId(0x101f4d90), firstID(1), SecondID(1);
    TVwsViewId id = TVwsViewId( TUid::Uid(imageViewId ), TUid::Uid(firstID) );
    TPtrC8 ptr8( ( TText8* )FileName.Ptr(), FileName.Size() );
    TRAPD(error1, (ActivateViewL( id , Uid::Uid( SecondID ), ptr8 ) ));
    The viewer is opened but the image is not displayed because the additional
    message parameters ( firstID, SecondID and the format of the image to view ) are not initialized corectlly.

    I have looked inside
    UTILIZING EXTERNAL APPLICATION VIEWS document and the image viewer
    message data is not documented


    Could any one knows what are the required data for the image viewer

  2. #2
    Registered User EranNoyman's Avatar
    Join Date
    Mar 2003
    Posts
    35
    Hi,

    I have the same problem. I tried to use the OpenFileEmbeddedL but it cause the 'Save' menu to disapear.

    Did you solve it?

    Thanks
    Eran

  3. #3
    Registered User eshlomi's Avatar
    Join Date
    Aug 2005
    Posts
    8
    Hello
    I have only managed to open the media gallery using the following code

    #define KMediaGalleryUID3 0x101f8599
    #define KMediaGalleryListViewUID 0x00000001
    #define KMediaGalleryCmdMoveFocusTo 0x00000002

    GoToMediaGalleryL()
    {
    // Gets viewId to Activate media Gallery view
    TVwsViewId id = TVwsViewId( TUid::Uid( KMediaGalleryUID3),
    TUid::Uid(KMediaGalleryListViewUID) );

    // Parse the file path name from the full image file name
    TParsePtrC parse( strImageFileName );
    TFileName rootPath( parse.DriveAndPath() );
    //Pass the 16-bit filename around in an 8-bit descriptor
    TPtrC8 ptr8( ( TText8* )rootPath.Ptr(), rootPath.Size() );
    TRAPD(error1, ActivateViewL( id , TUid::Uid( MediaGalleryCmdMoveFocusTo ), ptr8 ) );

    }


    But i couldn't find the exact id's and additional message string ( ptr8) to activate the image viewer
    So i still need help in this issue

Similar Threads

  1. problem to send Service Loading push message over 8310
    By alinesimon in forum Mobile Web Site Development
    Replies: 3
    Last Post: 2002-10-23, 07:08
  2. problem with 8310 to send a Service loading push message
    By Nokia_Archive in forum General Messaging
    Replies: 2
    Last Post: 2002-10-10, 08:38
  3. problem to send a service loading message push for 8310
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-05-06, 12:39
  4. Problem to send a service loading push message for 8310
    By alinesimon in forum General Messaging
    Replies: 1
    Last Post: 2002-05-06, 11:19
  5. Problem to send a service loadinfd push message for 8310
    By alinesimon in forum Smart Messaging
    Replies: 1
    Last Post: 2002-05-03, 10:49

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