Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does an android widget run in the same process as it's app

I want to create a bound service for my app and would like it to be available for a widget to use in the future should i decide to create one. In order to decide whether to use a Messenger or extend Binder i need to know whether a widget and its corresponding app run in the same process?

like image 613
user648462 Avatar asked Jun 13 '12 14:06

user648462


1 Answers

Yes. Unless you specify otherwise in the manifest (using android:process="..."), all components of an application (widget providers, services, activities, broadcast receivers) run in the same process, use the same Virtual Machine and run in the same memory space.

like image 189
David Wasser Avatar answered Oct 21 '22 07:10

David Wasser