Android Widget development

view story

http://stackoverflow.com – I am pretty new to android development. I have an app that reads from a usb to serial connection every second. The app then update the MainActivity's UI with the new data. My app also has a widget that is also updated with the new data as well. This works well however when the onDestroy() method is called the widget stops working. I have seen several apps where the widget continues to work and update even though the app has never been started. At least not to my knowledge. How is this done? I would like my widget to run and function without the app even running. Is this possible? UPD (HowTos)