Skip to content

dev-bilal-azzam/IPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

server

AIDL Color Service Server

This project demonstrates Android IPC using AIDL.

The server app exposes a remote Android Service that can be accessed from another application.

The service generates and returns a random color using Binder communication.

What This Project Demonstrates

  • Android IPC (Inter-Process Communication)
  • AIDL basics
  • Bound Services
  • Cross-app communication
  • Binder communication

Flow

  1. Client app binds to the exported service.
  2. Client calls getColor() remotely.
  3. Server generates a random color.
  4. Color value is returned through Binder.

Important Notes

  • The service must be exported=true to allow external apps to bind.
  • Both apps must contain the exact same .aidl file.
  • The package inside the AIDL file must match exactly in both projects.
  • Use a fully qualified action name like:
com.devbilal.ipc.AidlColorService

instead of generic names.

  • The client app must be installed on the same device.
  • The server app must be installed before binding from the client app.
  • bindService() may silently fail if Android cannot discover the target app.
  • Logging inside onBind() and remote methods helps debugging Binder communication.

About

This application demonstrates Android IPC using AIDL by exposing a remote bound service. It provides a service that generates and returns a random color value to external client applications through Binder communication. The app acts as the service provider in a cross-process communication setup.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors