Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | Using webMethods Mobile Designer | Creating Mobile Application Projects | Coding a Mobile Application | Migrating to the New Run-Time Classes | Refactoring Access to Handlers
 
Refactoring Access to Handlers
The instance field was removed from all handlers. Every direct access to the instance field must be replaced with the getInstance() method.
*To refactor access to handlers
1. Replace AudioHandler.instance with AudioHandler.getInstance().
2. Replace CameraHandler.instance with CameraHandler.getInstance().
3. Replace ImageHandler.instance with ImageHandler.getInstance().
4. Replace TextHandler.instance with TextHandler.getInstance().
5. Replace ResourceHandler.instance with ResourceHandler.getInstance().