Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8500353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:55:19+00:00 2026-06-11T00:55:19+00:00

I would like my app to appear in the list within gmail. This list

  • 0

I would like my app to appear in the list within gmail. This list comes up when I click the Preview button within the Gmail app.

I would like to know what entries need to be added in the intent filter?

Thanks for the help in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:55:21+00:00Added an answer on June 11, 2026 at 12:55 am

    Have a look at Intent Filters:
    http://developer.android.com/guide/components/intents-filters.html

    Specifically, I think you’ll find the Note Pad Example helpful:
    http://developer.android.com/guide/components/intents-filters.html#npex

    Personally, I had this same exact issue a few hours ago. I needed to open text files with my app. To do so, I had to add this to my manifest:

    <activity
        android:name=".(ActivityName)"
        android:label="@string/app_name"
        android:exported="true" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <intent-filter>
            <action android:name="com.google.android.apps.drive.DRIVE_OPEN" />
            <action android:name="android.intent.action.VIEW" />
            <action android:name="android.intent.action.EDIT" />
            <action android:name="android.intent.action.INSERT" />
            <category android:name="android.intent.category.DEFAULT" />
            <data android:mimeType="text/*" />
        </intent-filter>
    </activity>
    

    With just this, I was able to make my app appear in the list of available applications to open text files from Astro, and allow it to be launched.

    To make it actually handle opening the files, you need to add something like this to your onCreate in the activity:

    Intent intent = getIntent();
    Action action = intent.getAction();
    if (action.equals("com.google.android.apps.drive.DRIVE_OPEN")) {
        // Handle the intent from google drive...
    } else if (action.equals("android.intent.action.VIEW")) {
        // Handle the intent to view the file...
    } else // And so on...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know how to add my app to the list of
I would like to develop a MS paint like app for the iPhone. Could
I would like my app by default use the phone locale for localization. But
I'm creating a GUI and I would like an app that changes on based
For debugging purposes, I would like my app to log to a java.util.logging.SocketHandler. Here's,
I would like for my app to reset to standard settings if it crashed
I would like my iPhone app to be able to post a static message
I would like some of my preferences to have icons, like the Settings app.
I would like to make my app freeware, but if a user is willing
I would like to acces my app from another app. For instance, i would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.