Application Migration Guide - Bada C++ Application with Bada 2.0 to OSP-Compatible Tizen Application
Total Page:16
File Type:pdf, Size:1020Kb
Application Migration Guide - bada C++ Application with bada 2.0 to OSP-compatible Tizen Application Except as noted, this content - excluding the Code Examples - is licensed under Creative Commons Attribution 3.0 and all of the Code Examples contained herein are licensed under Flora 1.0. For details, see the Content License. Application Migration Guide - bada C++ Application with bada 2.0 to OSP-compatible Tizen Application Table of Contents 1. Converting a bada Application to OSP-compatible Tizen Application ........ 5 1.1. System Migration ...................................................................................................................... 7 1.1.1. Case Sensitivity ........................................................................................................ 7 1.1.2. enum Type Size ........................................................................................................ 7 1.1.3. wchar_t Type Size ................................................................................................. 7 1.1.4. Member Variable Initialization .................................................................................. 7 1.1.5. malloc() Allocation ................................................................................................ 7 1.1.6. Strong Two Phase Construction Mechanism Check ................................................ 7 1.1.7. Pure Virtual Method Implementation ........................................................................ 8 1.1.8. LLVM Compiler ......................................................................................................... 8 1.1.9. Application Installation Location ............................................................................... 8 1.1.10. Rapid Development Support ............................................................................ 8 1.1.11. Application Installation Location ....................................................................... 8 1.2. File Management Migration ...................................................................................................... 8 1.3. UI Migration .............................................................................................................................. 8 1.3.1. Supporting the HD Resolution .................................................................................. 8 1.3.2. Handling Hardware Menu and Back Keys ............................................................. 11 1.3.3. Drawing UI Controls ............................................................................................... 14 1.3.4. Handling UI Control Changes ................................................................................. 14 1.3.5. Handling Font Changes .......................................................................................... 17 1.3.6. Theme .................................................................................................................... 17 1.3.7. Application Icons .................................................................................................... 18 1.4. Feature Migration .................................................................................................................... 18 1.4.1. Server APIs ............................................................................................................ 18 1.4.2. App ......................................................................................................................... 18 1.4.3. Ad Controls ............................................................................................................. 19 1.4.4. Commerce .............................................................................................................. 19 1.4.5. Content - Database Synchronization ..................................................................... 19 1.4.6. Graphics ................................................................................................................. 19 1.4.7. Io ............................................................................................................................. 19 1.4.8. Locations ................................................................................................................ 21 1.4.9. Media ...................................................................................................................... 21 1.4.10. Messaging ...................................................................................................... 22 Except as noted, this content - excluding the Code Examples - is licensed under Creative Commons Attribution 3.0 and all of the Code Examples contained herein are licensed under Flora 1.0. For details, see the Content License. 2| Page Application Migration Guide - bada C++ Application with bada 2.0 to OSP-compatible Tizen Application 1.4.11. Network ........................................................................................................... 22 1.4.12. Security ........................................................................................................... 22 1.4.13. Social .............................................................................................................. 22 1.4.14. System ............................................................................................................ 24 1.4.15. UI .................................................................................................................... 24 1.4.16. Uix ................................................................................................................... 25 Appendix A. Automatic Changes by the Converting Tool .............................. 26 A.1. Icon Size ................................................................................................................................. 26 A.2. Manifest File Change .............................................................................................................. 26 A.3. Resource Directory Changes ................................................................................................. 26 A.4. Header File Name Changes ................................................................................................... 26 A.5. Tizen Namespace ................................................................................................................... 27 Appendix B. Removed APIs............................................................................... 29 Except as noted, this content - excluding the Code Examples - is licensed under Creative Commons Attribution 3.0 and all of the Code Examples contained herein are licensed under Flora 1.0. For details, see the Content License. 3| Page Application Migration Guide - bada C++ Application with bada 2.0 to OSP-compatible Tizen Application Overview This document is a guide on how to efficiently migrate your bada C++ applications to OSP-compatible applications in Tizen. To develop a Tizen native application, you must use the Tizen SDK that supports Tizen native APIs. Note: The OSP-compatible Tizen application is created by converting a bada application using the migration tool in Tizen with the OSP-compatible mode option. The conversion with the OSP-compatible mode option requires less effort than a conversion to a Tizen native application without the OSP-compatible mode option. Though the converted application can run in the Tizen device, some newly-supported Tizen features cannot be used. The legacy bada API version 2.0 is called ‘bada 2.0’. The bada C++ applications can be migrated to Tizen native applications as follows: bada C++ application with bada 1.x to OSP-compatible Tizen application bada C++ application with bada 2.0 to OSP-compatible Tizen application bada C++ application with bada 2.0 to Tizen native application This guide describes how to migrate the bada application with bada 2.0 to the Tizen native application that is compatible with OSP. For the other migration options, see the guides under the ‘tizen-sdk/documentation’ folder after installing the migration tool add-on SDK. To run your existing bada C++ application on a Tizen device, you must convert your application project to a Tizen native project with the migration tool and rebuild it. Except as noted, this content - excluding the Code Examples - is licensed under Creative Commons Attribution 3.0 and all of the Code Examples contained herein are licensed under Flora 1.0. For details, see the Content License. 4| Page Application Migration Guide - bada C++ Application with bada 2.0 to OSP-compatible Tizen Application 1. Converting a bada Application to OSP-compatible Tizen Application You can convert your existing bada C++ application with bada 2.0 to an OSP-compatibleTizen native application, and the migrated application runs on a Tizen device. However, note that some newly-supported Tizen features cannot be used in the OSP-compatible Tizen application. For more information on converting to Tizen native applications without the OSP compatible mode, see Application Migration Guide - bada Cpp App with bada 2.0 to Tizen Native App.pdf. Due to the binary incompatibility, to run your existing bada C++ application project in the Tizen SDK, the migration tool is used to convert your bada C++ application project to a Tizen native application project. To convert a bada C++ application project: 1. In the IDE, select File > Import > Tizen > Import bada Project and click Next. 2. Select your existing