O'Reilly logo

Hello, Android, 4th Edition by Ed Burnette

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using a ContentProvider

In the Android security model (see the discussion in Safe and Secure), files written by one application cannot be read from or written to by any other application. Each program has its own Linux user ID and data directory (/data/data/packagename) and its own protected memory space. Android programs can communicate with each other in two ways:

  • Inter-Process Communication (IPC): One process declares an arbitrary API using the Android Interface Definition Language (AIDL) and the IBinder interface. Parameters are marshaled safely and efficiently between processes when the API is called. This advanced technique is used for remote procedure calls to a background Service thread. IPC, services, and binders are beyond the scope ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required