Android: Bound Service or Singleton -


im creating offline chatbot , wondering if practice use bound service or singleton parsing/response engine?

service , singleton 2 different concepts.

we use singleton pattern initiate , use 1 instance only.

service component longer-running operation runs in background.

bound service:

a bound service server in client-server interface. service binds several applications or activities.

im creating offline chatbot ..

if think develop program talks other application, bear in mind on android, 1 process cannot access memory of process. offer use aidl (android interface definition language)


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -