on · 2015. 4. 22. · works on linux, mac, windows, ios, android, all desktop and all embedded...

18
On By, Sinny Kumari  (#ksinny, @ksinny)

Upload: others

Post on 14-Aug-2021

2 views

Category:

Documents


0 download

TRANSCRIPT

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

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

Why?●  Works on Linux, mac, windows, ios, android, all desktop and all embedded environment

●  Low­level access from a high­level common environment

●  Porting existing app like game, multimedia, etc to multiple desktop, console, or mobile platforms

● Saves time in development like UI, multi­threading,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

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

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
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
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

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

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

●  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● Set­up keystore to sign package● Build your application and foo.apk signed package 

generated (foo­signed.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

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
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

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

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

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

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

References

● http://www.qt.io/● http://doc.qt.io/qtcreator/creator­deploying­android.html

● http://doc.qt.io/qt­5/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

???

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

Thank You [email protected]