Android Forums

Go Back   Android Forums > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
Reply
 
LinkBack Thread Tools Display Modes
Old 02-25-2010, 01:46 AM   #1
Junior Member
 
Join Date: Feb 2010
Posts: 1
Friends: 0
View Tasneem's Profile   View Tasneem's Photo Album   View Tasneem's Blog   View Social Groups
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
Tasneem is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Reply With Quote
Reply

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Android NDK ( Native code Debugging) santosh_1243 Android Development, Answers, Tutorials, and Code Snippets 2 03-12-2010 07:35 PM
Android email application nsnitya Android Games And Applications 0 10-26-2009 04:28 AM
Android web emulator lets you play with the menus Andor Android Chat 1 10-06-2008 08:01 AM
Android's future will see it branch out from cell phones MarkP Android Chat 0 09-23-2008 06:54 AM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 11:42 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2008 TalkAndroid.com. All rights reserved.