Professional Documents
Culture Documents
CS436 - Mobile Application Development: Dr. Usman Khan Durrani
CS436 - Mobile Application Development: Dr. Usman Khan Durrani
Application
Development
DR. USMAN KHAN DURRANI
PHD. RMIT UNIVERSITY – MELBOURNE AUSTRALIA
3
C++ Data Types
4
Java Data Types
5
C++ Operators
6
Java Operators
7
C++ vs Java Hello World
1.#include <iostream> 1.class Simple{
2.using namespace std; 2. public static void main(String args[])
3.int main() { 3. {
4. cout << "Hello C++ Programming"; 4. System.out.println("Hello Java");
5. return 0; 5. }
6.} 6.}
8
Conditional Statement - Java
1./Java Program to demonstate the use of if statement.
2.public class IfExample {
3. public static void main(String[] args) {
4. //defining an 'age' variable
5. int age=20;
6. //checking the age
7. if(age>18){
8. System.out.print("Age is greater than 18");
9. }
10. }
11.}
9
Loops in Java – For Loop
1.//Java Program to demonstrate the example of for loop
2.//which prints table of 1
3.public class ForExample {
4. public static void main(String[] args) {
5. //Code of Java for loop
6. for(int i=1;i<=10;i++){
7. System.out.println(i);
8. }
9. }
10.}
10
Loops in Java – While Loop
1.public class WhileExample {
2. public static void main(String[] args) {
3. int i=1;
4. while(i<=10){
5. System.out.println(i);
6. i++;
7. }
8. }
9.}
11
Classes and Objects in Java
1.class Student{
2. //defining fields
3. int id;//field or data member or instance variable
4. String name;
5. //creating main method inside the Student class
6. public static void main(String args[]){
7. //Creating an object or instance
8. Student s1=new Student();//creating an object of Student
9. //Printing values of the object
10. System.out.println(s1.id);//accessing member through reference variable
11. System.out.println(s1.name);
12. }
13.}
12
Interested to learn Java
more…
https://www.javatpoint.com/java-tutorial
Learn and Practice at the
same time
13
Week 1b:
Introducing
Mobile Systems
Week 1a – Mobile Computing
The mobile web and the normal web
should be the same web
The web is accessed using desktop
computers, portables, ultra-books, pads,
tablets, smartphones and cell phones
The websites you develop need to be
accessible to all these devices
15
The Mobile Ecosystem
The mobile ecosystem consists of
mobile devices
• That are personal
• That act as companions
• That are easy to use
• That are connected
16
Mobile Categories
Mobile devices can loosely be divided into classes:
Low end phones: have small screens, limited memory and basic
applications, e.g., camera and music player
17
Mobile Knowledge
The following factors are important for working with mobile devices:-
Display resolution:
◦ Low end – 128x160 to 128x128 pixels
◦ Mid to high end – 176x208 to 240x320 pixels
◦ Smartphones – 240x480 to 640x960 pixels
◦ Tablets – iPad 768x1024 pixels, Galaxy Tab 600x1024 pixels
18
Mobile Knowledge - cont.
Physical Dimensions: To really compare the display
quality we need to take into account the physical size of
the display, the resolution in pixels, the pixels per inch
(ppi) and the colour capability of the device
19
Mobile Knowledge - cont.
Input methods include numeric keypads,
alphanumeric keypads, virtual screen-based
keypads, touch and multi-touch support,
external keypads, handwriting and voice
recognition systems
20
Brands and Models
Apple
The 1st iPhone was unveiled in 2007. It revolutionised
the marketplace as:
In 2007 Apple released the iPad which set the gold standard for
tablet devices
All Apple devices run a version of iOS using Cocoa Touch and
Objective C
21
Brands and Models – cont.
Nokia
Nokia had the largest market share but lost its place to Android phones in 2011. Nokia has
a well-developed OS called Symbian
BlackBerry
Research in Motion (RIM) is the Canadian manufacturer of the popular Blackberry mobile
device. Primarily used by corporate firms as it has good security and enterprise features
Samsung
This Korean manufacturer of phone has the 2nd largest market share after Nokia. Samsung
supports native devices, devices based on Symbian, Android and Windows OS.
Smartphones and tablets use Symbian, Android or the Windows Mobile OS
22
Platforms
iOS (formerly iPhone
OS) is a mobile operating
system created and
developed by Apple Inc.
23
Platforms – cont.
Android is a mobile operating
system based on a modified
version of the Linux
kernel and other open-
source software, designed
primarily
for touchscreen mobile
devices such
as smartphones and tablets.
24
Platforms – cont.
Symbian is a discontinued mobile
operating system (OS) and computing
platform designed for smartphones.
Symbian was originally developed as
a proprietary software OS for PDAs in
1998 by the Symbian Ltd. consortium.
Symbian was used by many major
mobile phone brands,
like Samsung, Motorola, Sony
Ericsson, and above all by Nokia.
25
Platforms – cont.
Windows Mobile is a
discontinued family of mobile operating
systems developed
by Microsoft for smartphones and pers
onal digital assistants.
26
Mobile Apps
Mobile Apps can be:
Web Apps – websites using HTML5, CSS and JavaScript
Native Apps – written in Java or Objective C and using
native device API’s
Hybrid Apps – use HTML but wrapped in a container and
able to use native device features
27
Week 1c: Introducing
Android Application
Development
Android Version
Android comes in a number of versions, the most common being
Android 2.2 (2010) and Android 4.0 (2011), Android
Marshmallow 6.0 (2015), Android Pie 9.0 (2020)
29
Android Version
30
Android Version
31
Android Architecture
APPLICATIONS
APPLICATION
FRAMEWORK
ANDROID
LIBRARIES RUNTIME
LINUX KERNEL
32
Many core Android system components
Android Architecture and services, such as ART and HAL, are
built from native code that require native
libraries written in C and C++. The Android
platform provides Java framework APIs to
expose the functionality of some of these
native libraries to apps.
34
Questions
EMAIL:
[email protected]
K
35