×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    25

    How to Launch media gallery in the photo folder?

    Hello folks,

    I'm trying to launch the media gallery application in the "photo folder view" (i.e presenting the list of photos). I manage to launch the media gallery in the "folder view" (i.e. you see the list of folder : audio, video, photo) with the following code:
    const TUid galleryAppUid = {0x101f4d8f} ;
    const TUid KFolderView = {0x01};
    const TUid KPhotoView = TUid::Uid(1);
    ActivateViewL(TVwsViewId(galleryAppUid, FolderView), KPhotoView, _L8("C:\\Nokia\\Images\\"));
    Anyone knows how to launch it in another view (I tried several values for KFolderView and KPhotoView unsuccessfully)
    Thanks in advance for any advice.

    Stephanie

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    25

    Nokia support

    Could somebody from Nokia answer to this question, because from my understanding the issue is just missing documentation of IDs for launching the gallery application in the right view.
    Thanks in advance,

    Stephanie

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037
    Hi,

    I have the same problem, so I created CAknDoubleLargeListBox, after that I go through "nokia\images" directory scanning it for images. I make a thumbnail of each (thumbs created earlier are stored in "nokia\images_tn") and display with a name and date of image creation. There are of course functions for returning those folder names, so they are not hardcoded. This takes hour or two, but it is better than using some external bad documented view.
    Bye STeN

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    25
    Hi,

    I'm thinking of doing so but the problem is that I need all the feature of the gallery application, so I would prefer to launch the gallery application in the photo folder view instead of replicating all the code for each and every feature! Could Nokia support team help on that?
    Thanks in advance,

    Ste

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    25

    Solution found in one Nokia example

    Hello,

    I post the solution in case someone else is looking for. I have found it in the CameraApp example.

    void CCameraAppAppUi::GoToMediaGalleryL()
    {
    // iController->StartViewFinderL();

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

    TParsePtrC parse( iController->ImagePath() );

    TFileName rootPath( parse.DriveAndPath() );
    //Pass the 16-bit filename around in an 8-bit descriptor
    TPtrC8 ptr8( ( TText8* )rootPath.Ptr(), rootPath.Size() );
    ActivateViewL( id, TUid::Uid( KMediaGalleryCmdMoveFocusTo ), ptr8 );
    }
    with id having the following values:
    #define KMediaGalleryUID3 0x101f4d8f
    #define KMediaGalleryListViewUID 0x00000001
    #define KMediaGalleryCmdMoveFocusTo 0x00000001

  6. #6
    Registered User
    Join Date
    Sep 2007
    Posts
    29

    Re: How to Launch media gallery in the photo folder?

    hi ste,

    I am trying to implement a list which will have the images present in the gallery as icons. Is it possible

Posting Permissions

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