On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded...
Transcript of On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded...
![Page 1: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/1.jpg)
On
By,Sinny Kumari
(#ksinny, @ksinny)
![Page 2: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/2.jpg)
Why?● Works on Linux, mac, windows, ios, android, all desktop and all embedded environment
● Lowlevel access from a highlevel common environment
● Porting existing app like game, multimedia, etc to multiple desktop, console, or mobile platforms
● Saves time in development like UI, multithreading,Graphics, Networks
![Page 3: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/3.jpg)
Prerequisite
● Qt5 installerQt5 installer & run to install Qt Creator & run to install Qt Creator● The Android SDK ToolsThe Android SDK Tools● Android NDKAndroid NDK For native code language For native code language
(c/c++)(c/c++)● Apache Ant v1.8 or laterApache Ant v1.8 or later● Java SE Development Kit (JDK) v6 or laterJava SE Development Kit (JDK) v6 or later
![Page 4: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/4.jpg)
Setting up Environment
● Launch Qt Creator● Create new project and select Android instead of Desktop application
● Set up path for JDK, Android SDK and NDK location, Ant path. Later you can change through tools>options>Android
![Page 5: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/5.jpg)
![Page 6: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/6.jpg)
![Page 7: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/7.jpg)
Coding using Qt/QtQuick
Source code https://github.com/sinnykumari/Imgs
![Page 8: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/8.jpg)
Deploying and Publishing app to Google Play store
![Page 9: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/9.jpg)
● For quick deployment, enable USB debugging mode in mobile and connect your phone with computer using USB and run application in Qt creator
● Create Template ● Open AndroidManifest.xml and add needed
information● Setup keystore to sign package● Build your application and foo.apk signed package
generated (foosigned.apk)● Upload your .apk package and basic information like
screenshot, icons● Login to https://play.google.com/apps/publish
![Page 10: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/10.jpg)
Create template
![Page 11: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/11.jpg)
![Page 12: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/12.jpg)
Keystore Creation
![Page 13: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/13.jpg)
Demo
![Page 14: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/14.jpg)
Imgs App
![Page 15: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/15.jpg)
Qt 5 Everywhere App
![Page 16: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/16.jpg)
References
● http://www.qt.io/● http://doc.qt.io/qtcreator/creatordeployingandroid.html
● http://doc.qt.io/qt5/androidgs.html● Slide https://github.com/sinnykumari/slides/tree/master/conf.kde.in.2015
![Page 17: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/17.jpg)
???
![Page 18: On · 2015. 4. 22. · Works on Linux, mac, windows, ios, android, all desktop and all embedded environment Lowlevel access from a highlevel common environment Porting existing app](https://reader035.fdocuments.net/reader035/viewer/2022081623/613ee6e6c500cf75ab362f65/html5/thumbnails/18.jpg)
Thank You [email protected]