01-10-2012 01:36 AM
Hi,
I am working on a application which adds menu item to File explorer. I have used the below code and the menu item is getting added to all the folders in the device.
ApplicationMenuItemRepository amir = ApplicationMenuItemRepository.getInstance();
amir.addMenuItem(ApplicationMenuItemRepository.M
But I want the menu item to be visible only for images and document folders only. I have tried specifying multiple mime types but the application is considering only the first mime type given in the application. Below is the sample code which I have tried out:
Alernative 1 (separating mime types with comma):
ApplicationMenuItemRepository amir = ApplicationMenuItemRepository.getInstance();
amir.addMenuItem(ApplicationMenuItemRepository.ME
amir.addMenuItem(ApplicationMenuItemRepository.MEN
Alternative 2 (separating mime types with semicolon):
amir.addMenuItem(ApplicationMenuItemRepository.MEN
amir.addMenuItem(ApplicationMenuItemRepository.MEN
Alternative 3 (calling multiple addmenuItem methods):
amir.addMenuItem(ApplicationMenuItemRepository.MEN
amir.addMenuItem(ApplicationMenuItemRepository.MEN
amir.addMenuItem(ApplicationMenuItemRepository.MEN
amir.addMenuItem(ApplicationMenuItemRepository.MEN
Please let me know how to achieve this?
Thanks in advance,
Mamatha
01-11-2012 03:26 AM