(FRONT) FRONT (2025)

Global objects with references to all application services

This is my way tp create application level ServiceLocatorReference block with references to all application services and can visible from each activity.

Each my Android service (this is example of my WebRTC service) I split to two part Starter and



and WebRTC service body.



In my application I made common service locator what contains all my service reference.



And all my service started from Activity asynchronously and service reference stored in ServiceLocator.



And than each next Activity get global accessible object of my application.



And receive reference to each my service (including WebRTC service)



Also instead full test I have add small checking service workability in each handler, for example look to Simple HTTP service or Simple key-value service with Local Storage or Cryptographic local storage key-value service




AndroidMosaic context:



Comments ( )
Link to this page: http://www.vb-net.com/AndroidMosaic/Index21.htm
< THANKS ME>