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

风格不统一 提交于 2019-12-21 04:29:28

问题


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?

Thanks

David


回答1:


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.



来源:https://stackoverflow.com/questions/11016944/does-an-android-widget-run-in-the-same-process-as-its-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!