Refactor MyApplication
1. Change the base class of the MyApplication class from Application to MDApplication.
2. Add implements IMDApplicationListener into the class declaration and implement all methods.
3. Remove setAppCanvas() method. The project specific initialization logic can be added in the init() method. For detailed information, refer to Bind MyCanvas with MyApplication section.