CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile...

17
CSCE 4623 - Mobile Programming Alexander Nelson August 26, 2019 University of Arkansas - Department of Computer Science and Computer Engineering

Transcript of CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile...

Page 1: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

CSCE 4623 - Mobile Programming

Alexander Nelson

August 26, 2019

University of Arkansas - Department of Computer Science and Computer Engineering

Page 2: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Warm-Up

Answer the online survey:

https://bit.ly/2Pelax6

1

Page 3: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Introduction

Page 4: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Why Mobile Programming?

1.43 Billion Smartphones sold in 20181

88% of mobile phones sold are Smartphones

Worldwide Android Smartphone market Share = 76%2

US: iOS = 56, Android 44%

Put simply, they are everywhere

1https://www.digitaltrends.com/mobile/

2018-smartphone-sales-decline-news/2Strategy Analytics

2

Page 5: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Why is Mobile Programming Challenging?

User InterfaceDesign

NetworkingWLAN and WPAN

OperatingSystems

Web andCloud Services

Built-InSensors

Limited HardwareResources

3

Page 6: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Designing User Interfaces

User InterfaceDesign

NetworkingWLAN and WPAN

OperatingSystems

Web andCloud Services

Built-InSensors

Limited HardwareResources

What are the challenges?

• How do you build the interface?

(Android: XML and Event Driven)

• How do you interact with the user?

• What about accessibility?

4

Page 7: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Networking

User InterfaceDesign

NetworkingWLAN and WPAN

OperatingSystems

Web andCloud Services

Built-InSensors

Limited HardwareResources

What are networking options?

• Wide area networks (WAN) e.g.

Cellular, Wi-Fi

• Wireless Local Area Networks

(WLAN) e.g. Wi-Fi

• Wireless Personal Area Networks

(WPAN) e.g. Bluetooth, ZigBee

5

Page 8: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Why do we need to know OS?

User InterfaceDesign

NetworkingWLAN and WPAN

OperatingSystems

Web andCloud Services

Built-InSensors

Limited HardwareResources

Example OS Calls

• Reading/writing files

• Interprocess Communication

• Threading

6

Page 9: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Accessing the Internet

User InterfaceDesign

NetworkingWLAN and WPAN

OperatingSystems

Web andCloud Services

Built-InSensors

Limited HardwareResources

Vast majority of applications need

access to the Internet

These communications are typically

standard interfaces

• Webservices (i.e. REST)

• Interfaces (e.g. HTML for

webpages)

• Other services (e.g. SSH, IMAP,

RDP)

7

Page 10: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Sensors enable new technological interaction

User InterfaceDesign

NetworkingWLAN and WPAN

OperatingSystems

Web andCloud Services

Built-InSensors

Limited HardwareResources

Enables pervasive computing at

personal scale

You are carrying these sensors in your

pocket:

• Cameras

• GPS

• Accelerometers

• Microphone

8

Page 11: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Phones are nearing traditional computing specs

User InterfaceDesign

NetworkingWLAN and WPAN

OperatingSystems

Web andCloud Services

Built-InSensors

Limited HardwareResources

Example Limitations

• Storage (≈ 64GB)

• CPU† (60% SC / (40-100) Task

dependent% MC vs. i7)

• RAM† (4 GB)

†Comparisons for iPhone XS

9

Page 12: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Phones are nearing traditional computing specs

User InterfaceDesign

NetworkingWLAN and WPAN

OperatingSystems

Web andCloud Services

Built-InSensors

Limited HardwareResources

Example Limitations

• Storage (≈ 64 − 512GB)

• CPU† (60% SC / (40-100) Task

dependent% MC vs. i7)

• RAM† (4 GB)

• Battery

†Comparisons for iPhone XS

10

Page 13: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

The biggest limitation is the condition of the

mobile user

There is a need for immediacy and abrupt

change

10

Page 14: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Typical phone specification (iPhone XS)

11

Page 15: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Course Administration

Page 16: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Course mechanics

Course Webpage:

sites.uark.edu/ahnelson/csce-4623-mobile-programming/

Syllabus is on the website.

Course Communication:

https://csce4623-uark.slack.com/

This slack channel is to be the primary mode of communication

12

Page 17: CSCE 4623 - Mobile Programmingcsce.uark.edu/~ahnelson/CSCE4623/lectures/lecture1.pdf · Why Mobile Programming? 1.43 Billion Smartphones sold in 20181 88% of mobile phones sold are

Homework - Due Friday by Midnight

Sign up on the Slack website

Use your UARK username as the slack username.

Download Android Studio

https://developer.android.com/studio/index.html

Video will be on the website by end of day Friday. Send screenshot

of android studio in direct message to my slack user (ahnelson)

5% of the first project grade.

13