Questions tagged [aidl]

Android Interface Definition Language is a special language that allows a server and a client to establish interface for Inter Process Communication (IPC).

AIDL - is a special language that allows a client and a server process to establish interface that can be used for Inter Process Communication. This interface is defined in the .aidl files. The syntax of the Android interface is similar to the syntax of Java interfaces but has several peculiarities. Aidl files are compiled into the Java files by a special aidl tool.

By default, for security reasons all applications in Android run with their own uid and in different processes. At the same time, so as Android is a mobile operating system it should provide abilities to maximize the reuse of components of the applications. Thus, the mechanisms for exchanging information have to be implemented. These mechanisms are called Inter Process Communication. For Android there was implemented a special IPC mechanism called Binder.

To communicate with each other Android process have to decompose the information into primitives that can be understood by Binder driver. This driver have to send these primitives to remote process and compose them there into the sent information. The process of decomposing and composing is difficult to write. Thus, OHA has proposed a special tool called aidl to facilitate this process.

Links:

  1. Android developers: aidl
  2. Remote methods and aidl
588 questions
-1
votes
1 answer

Run method in every 30 minutes from android remote service

I have a service which runs on remote process(via AIDL interface). It is a unstoppable service (which starts on boot complete and last until uninstalling the app). This service keep listening to UDP socket. I want to run function in this service in…
-1
votes
2 answers

how to update textview not from main thread?

I have two applications one is the service and one is the client the client is connected to the service application via AIDL . when the client receives data from the service I want it to display it in a textView, however I am unable to update the…
yanish
  • 257
  • 2
  • 15
-6
votes
1 answer

Can anybody tell me how to use AIDL or Interprocess communication in android?

I need information on aidl , messenger ie interprocess communication in android . an example is preferred . Thanks,
nilesh
  • 175
  • 1
  • 9
1 2 3
39
40