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.
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,
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
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
Solution found in one Nokia example
2004-08-04, 16:00#5
// 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
Re: How to Launch media gallery in the photo folder?
2007-09-07, 08:12#6