The android widget works in the same process as the application

I want to create a related service for my application and would like it to be available for the widget, which will be used in the future if I want to create it. To decide whether to use Messenger or extend Binder, I need to know if the widget and its corresponding application will work in one process?

thanks

David

+6
source share
1 answer

Yes. Unless you specify otherwise in the manifest (using android:process="..." ), all application components (widget providers, services, actions, broadcast receivers) work in one process, use the same virtual machine and work in one and the same memory space.

+6
source

Source: https://habr.com/ru/post/917981/


All Articles