nerdexam
CompTIA

ADR-001 · Question #102

To prevent a component from being publically accessible via Intents the developer can:

The correct answer is A. set the attribute android:exported=false in the manifest. See the full explanation below for the reasoning.

Question

To prevent a component from being publically accessible via Intents the developer can:

Options

  • Aset the attribute android:exported=false in the manifest.
  • Bdeclare the method as private in the Java source.
  • Csign the app because Android protects component access by verifying digital signatures.
  • Dadd an Intent Filter with the attribute of "private".

How the community answered

(43 responses)
  • A
    77% (33)
  • B
    14% (6)
  • C
    5% (2)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full ADR-001 Practice