Alternative Menus in Android's Native Email Application


Last Updated:

  1. Tasneem

    Tasneem New Member This Topic's Starter

    Joined:
    Feb 25, 2010
    Messages:
    3
    Likes Received:
    0
    Hi,
    I am a Newbie in android and i wanted to add a menu option in native email app in android . I have used intent filters but i am not successful in achieving it.
    Actuaaly i want to a menu option to the native mail application in Android.. so that my activity / app can be launced on clicking that option. This feature has been successfully achieved in Blackberry and even in android for gallery application.
    On android i have achieved it by using intent filters.
    <activity android:name=".DisplayAlternativeMenu"
    android:theme="@android:style/Theme.NoTitleBar">
    <intent-filter android:label="My Activity">
    <action android:name="android.intent.action.SEND"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.ALTERNATIVE"/>
    <data android:mimeType="image/*" />
    </intent-filter>
    /activity>
    This basically display an menu item"My Activity" when u press share in Gallery. and clicking on that launches my activity
    But unfortunately it didn't work for Email Application.
    Looks like the pair of action & mimetype i am specifying is not correct.
    Can you please tell me which action & which mimetype should be used. Also if there are any permission required,what are they?

    My aim is to add an alternative menu while pressing menu in Compose Email(When a mail is composed) of the native email application


    Thanks
    Tasneem
     

    Advertisement
  2. alostpacket

    alostpacket Over Macho Grande? VIP Member

    Joined:
    Nov 29, 2009
    Messages:
    7,978
    Likes Received:
    3,603
    I dont think you can change menus in another app unless you fully replace that app, no?

    At least I hope not.
     
  3. Tasneem

    Tasneem New Member This Topic's Starter

    Joined:
    Feb 25, 2010
    Messages:
    3
    Likes Received:
    0
    Hello,
    Thanks for the input. But I think Android has provided this feature (with the help of intent filter) to add our menu item to other applications. We tried to add Alternative Menu Item in Gallery>share menu option and we were successful but are not able to add a menu item to Email application. Is it possible to add an alternative menu item to Email application. Its our requirement. Is there any other alternative method to achieve it?
     
  4. alostpacket

    alostpacket Over Macho Grande? VIP Member

    Joined:
    Nov 29, 2009
    Messages:
    7,978
    Likes Received:
    3,603
    I get what you're saying but you seem to be asking two different questions. However, I will answer the more likely question as the other seems to be a language barrier thing.

    From the Docs:

    also:

    I don't think the compose email activity would send an implicit intent you could hook into, rather it will send it's own internal intent to it's own send service.
     
  5. Tasneem

    Tasneem New Member This Topic's Starter

    Joined:
    Feb 25, 2010
    Messages:
    3
    Likes Received:
    0
    Hello,
    Thanks for the information shared by you. But my problem has not yet been resolved. Actually, we are able to add the alternative menu item at various places in Gallery, contacts, Browser but are not able to add it in compose section of email form. Please help us in resolving this issue.

    Thanks
    Tasneem
     
  6. android.k

    android.k New Member

    Joined:
    Jun 15, 2011
    Messages:
    2
    Likes Received:
    0
    Hi Tasneem,

    I am also looking exactly for the same requirement (adding alternative menu to email application). Please let me know if you could achieve this.
    Also can you pls help me in adding menu item to browser (i need the mime type to be specified).
    I could add my menu item to Gallery (under share) and Contacts and now want for email and browser tooo.

    Please help...

    Thanks,
    Mamatha
     
  7. mail2vijayan

    mail2vijayan New Member

    Joined:
    Jun 3, 2010
    Messages:
    3
    Likes Received:
    0
    Hi..

    Even I want to know something of this sort..

    But in my case, I don't want to create an alternate menu. instead, I just want to add one item in the Menu in SMS (messaging) application.

    ex:-
    When I open the message to read from Inbox folder,
    The menu displays Forward, Reply, Delete, Move to,... options.
    along with this I want to add one more option of my own.

    Is this possible?

    Hope to get a reply.


    regards,
    Vijayan
     

Share This Page

Loading...