Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added general description of rule

...

Warning
titleUnder Construction
This guideline is under construction. 

 In this space, describe the overall rule.

The use of constants MODE_WORLD_READABLE and MODE_WORLD_WRITABLE is very dangerous and can cause security holes in applications.  Applications should use more formal mechanisms for interactions and communicating amongst each other.  These mechanisms include ContentProvider, BroadcastReceiver, and Service. 

  • ContentProvider: provides content to applications; used to share data amongst multiple applications
  • BroadcastReceiver: Broadcasts are sent when an event of interest occurs; applications may register to receive certain broadcasts; used as a messaging system amongst applications
  • Service: allows application to tell the system what it wants to do in the background and exposes some of its functionality to other applications 

Noncompliant Code Example

...