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

  • Home
  • SEARCH
  • 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 8384289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:22:11+00:00 2026-06-09T17:22:11+00:00

I was looking at some lint errors and notice that there are two ways

  • 0

I was looking at some lint errors and notice that there are two ways to transition activities.

From what I learned from various internet sources I have always been assigning each activity in my manifest an intent-filter with an action name and then calling that with an intent to go to that activity.

However this has given me the: “Exported Activity does not require permission” lint error. Some have said this can be a weird issue and that it is better to go to (use the startActivity() method) by referring to the activity class. By calling the Class of the activity instead of an intent filter.

Can anyone attest to which way is better? However it does seem the way that does not prompt a lint error would be the better way…

Thanks!

  • 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-09T17:22:12+00:00Added an answer on June 9, 2026 at 5:22 pm

    The recommended approach is that an Activity should not have a registered <intent-filter> section in the manifest unless it is meant to be used by external apps. An example of this would be for viewing a particular document mime-type using something like an Intent action ACTION_VIEW. This is is basically an implicit Intent action.

    If your Activity classes are only meant to be used internally by your own app’s components then they should only be started using expiclit Intents for example…

    Intent myIntent = new Intent(this, MyActivity.class);
    

    In this case, the app component starting the Activity ‘knows’ what it wants to do and starts a specific Activity to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking at some c# code from open and closed source project i see that
Looking on some source code I've inherited, there's a snippet of code that calls
Looking for some help with optimising the query below. Seems to be two bottlenecks
I am looking some part of code that is supposed to get a single
Looking for some Regex help in Ruby. I have a string that is formated
Looking at some code I'm maintaining in System Verilog I see some signals that
Looking at some code I noticed that another dev had changed every instance of
Looking through some other SO questions, it appears that other people are having problems
Looking through some old company code, I came across a for loop that looks
Looking for some branching strategies for a situation that has come up for a

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.