×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    8

    Image viewer app message document

    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
    Join Date
    Mar 2003
    Posts
    35

    Re: Image viewer app message document

    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
    Join Date
    Aug 2005
    Posts
    8

    Still need help with Image viewer app message document

    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 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
  2. 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
  3. 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
  4. 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
  •  
×