04 June 2014

Android Binder

Actor:

  • ServiceManager
  • ServiceProvider (class service)
  • ServiceUser (class activity, or any which call another service)


  1. SeriveManager mesti yg pertama start.
    Daftar dengan BinderDriver, guna handle 0.
  2. ServiceProvider bila start register dengan BinderDriver.
    Binder akan generate handle, eg 10.
    ServiceManager simpan nama service dan handle.
  3. Client akan guna handle 0 utk comunicate dengan ServiceManager.
    Client request base on service Name.
    ServiceManager akan beritahu no handle.
    Client talk using the handle through Binder


No comments:

Post a Comment

Terima kasih