Heavyweight and lightweight windows
Heavyweight windows are Titanium windows that correspond directly to Android activities. It's possible to create Titanium windows that are "lightweight" and don't correspond to activities. You should think of them more like fullscreen views. When you create a Titanium window, the API makes a few checks to decide if it should be heavyweight; a window is heavyweight if:
- Any of these properties are set to either true or false:
- Or if the window's
windowSoftInputModeproperty is set to any of the Ti.UI.Android constants;
- Or if the
Services are "long running" app components that run without user interaction. You might use a service to periodically check a network resource or you play music while your app is in the background. Services are not separate threads or processes. They're not a way to offload work from your main application. You can create services by calling on Titanium's Ti.Android.Service module.