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 8529653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:04:48+00:00 2026-06-11T09:04:48+00:00

According to the Android docs Intent extra name must have a package prefix. I’ve

  • 0

According to the Android docs Intent extra name must have a package prefix. I’ve been using Intent extra names without prefixes for a long time and it seems like there is no chance of collision since what really matters is the Intent action being unique. So are the docs just wrong or am I missing something?

The docs for putExtra say:

Add extended data to the intent. The name must include a package prefix, for example the app com.android.contacts would use names like “com.android.contacts.ShowAll”.

  • 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-11T09:04:49+00:00Added an answer on June 11, 2026 at 9:04 am

    I believe the Android docs recommend using fully-qualified extras is to handle an uncommon edge case. The edge case is when you are:

    • Writing an Activity that can be started using a public Intent action such as Intent.ACTION_VIEW

    AND

    • For your own usage you want to be able to pass custom extras to the Activity described above without interfering with another Activity that is doing the exact same thing and might have extras with the same name but different meanings or format

    Phew, it all sounds very unlikely. If you aren’t handling public Intent actions then it still seems as though there is no need to fully-qualify your extras, but I guess it doesn’t hurt to do it all the time if you are the paranoid type.

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

Sidebar

Related Questions

I have an Android app that uses the AlarmService. According to the docs, I
have an Android app that uses the RECEIVE_BOOT_COMPLETED. According to the docs, I should
According to Android documentation, using the .getTime() method in the Android location will return
I have a problem concerning the width of a DialogPreference in Android. According to
According to http://learnandroid.blogspot.com/2008/01/run-android-application-from-command.html , you can send extra info to an android app with
Android: I am using following code to insert image into album According to description
Been doing some Android permission research and ran across an application that - according
I’m having trouble declaring my bitmap/drawable in appropriate xml According to convoluted android docs,
i have ever tried to texture the 3d cube in android using opengl es
According to the docs , using the CENTER attribute will not perform any scaling

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.