Android Inter Process Communication

If two applications need to share resources but cannot get granted permissions, it is possible to define an inter-process communication (IPC) message. To support IPC, an interface is needed to serve as a bridge between applications.This is provided by the Android Interface Definition Language (AIDL).

Defining AIDL is similar to a Java interface. In fact, it can be easily done in Eclipse by creating a new Java interface, and after the definitions are complete, changing the suffix of the file from .java to .aidl.

The data types that AIDL currently supports are

■ Java primitives that include int, boolean, float

■ CharSequence

■ Other AIDL-generated interfaces

■ Custom classes that implement the Parcelable protocol and are passed by value

Character Building Thought Power

Character Building Thought Power

Character-Building Thought Power by Ralph Waldo Trine. Ralph draws a distinct line between bad and good habits. In this book, every effort is made by the writer to explain what comprises good habits and why every one needs it early in life. It draws the conclusion that habits nurtured in early life concretize into impulses in future for the good or bad of the subject.

Get My Free Ebook

Post a comment