Courses / Mobile Application Development (CDE-315) – BS CS 5th Semester
Week 1 Theory – Introduction and Importance of Mobile Applications; Mobile Application Development Platforms
Week 1 – Introduction to Mobile Applications and Platforms · 75 min read · 38 MCQs to check yourself
Native, web and hybrid mobile apps – the three kinds of mobile app
Native vs cross-platform apps (Bitrise)
1. What is a mobile application?
A mobile application (mobile app) is a software program designed to run on a mobile device – a smartphone, tablet, smartwatch or other handheld/wearable computer. Apps are usually small, task-focused programs (chat, banking, maps, games) that are downloaded from an app store (Google Play, Apple App Store) or run in the phone's web browser.
Mobile computing means using a portable computing device while moving, connected to a network through wireless technology (Wi-Fi, 4G/5G, Bluetooth).
| Term | Meaning |
|---|---|
| App | Short for application; a program that does a specific job for the user |
| Mobile OS | Operating system that manages a mobile device's hardware and runs apps – Android, iOS / iPadOS, HarmonyOS, (formerly Windows Phone, BlackBerry OS, Symbian) |
| App store | Official online marketplace to publish, search, download and update apps |
| SDK (Software Development Kit) | Libraries, tools, emulator and documentation needed to build apps for a platform (Android SDK, iOS SDK) |
| IDE (Integrated Development Environment) | Editor + compiler + debugger in one program – Android Studio (Android), Xcode (iOS) |
| API (Application Programming Interface) | A set of functions/classes an app calls to use a platform feature (camera, location, network) |
2. Why mobile applications are important
- Reach – there are more than 7 billion mobile subscriptions in the world and over 190 million cellular subscriptions in Pakistan; for most people the phone is the first and only computer.
- Always with the user – apps work anytime, anywhere; they can use location, camera, sensors and notifications, which desktop software cannot do as easily.
- Business – e-commerce (Daraz), ride hailing (Careem, inDrive, Yango), food delivery (foodpanda) and banking exist mainly as apps.
- Digital financial inclusion – mobile wallets such as JazzCash and Easypaisa, Raast payments and bank apps let people pay bills and transfer money without visiting a branch.
- Government services – e-governance apps (e.g. NADRA Pak ID, FBR Tax Asaan, Pakistan Citizen Portal, provincial e-Khidmat/Dastak style apps) bring services to citizens' phones.
- Education and health – learning apps, online classes, telemedicine (Sehat Kahani, Marham), fitness trackers.
- Careers – Android/iOS/Flutter developers are among the most demanded software jobs; freelancers earn by building apps for clients worldwide.
Common categories of apps
| Category | Examples |
|---|---|
| Communication & social | WhatsApp, Messenger, Instagram, TikTok |
| Productivity | Google Docs, MS Office, Calendar, Notes |
| Finance & m-commerce | JazzCash, Easypaisa, banking apps, Daraz |
| Navigation & travel | Google Maps, Careem, Waze |
| Entertainment & games | YouTube, Spotify, PUBG Mobile |
| Utility | Calculator, Flashlight, File manager |
| Education | Google Classroom, Duolingo, Khan Academy |
| Health & fitness | Step counters, Google Fit, telemedicine |
| Enterprise | Attendance, CRM, field-staff apps |
3. Characteristics (and limits) of mobile devices
Mobile devices are powerful but constrained compared with desktop computers. A good mobile developer always designs around these characteristics:
| Characteristic | What it means for the app |
|---|---|
| Small screen, many sizes | Layouts must adapt to phones, tablets, foldables, portrait & landscape |
| Touch input | Large tap targets (at least about 48 dp), gestures (tap, swipe, pinch) |
| Limited battery | Avoid unnecessary work, GPS and network use; work in the background only when needed |
| Limited memory (RAM) and storage | OS may kill background apps; keep memory use low |
| Variable network | Wi-Fi, 4G, 5G, weak or no signal – apps must handle offline and slow connections |
| Sensors | GPS, accelerometer, gyroscope, compass, camera, microphone, fingerprint, proximity |
| Personal & private | Contacts, photos, location – permissions and security are essential |
| Interruptions | Calls, notifications, user switching apps – the app must save and restore state |
4. Types of mobile apps
4.1 Native apps
Built for one platform using that platform's own language, SDK and IDE.
- Android: Kotlin (Google's preferred language) or Java, using Android Studio and the Android SDK.
- iOS: Swift (or older Objective-C), using Xcode and the iOS SDK (UIKit / SwiftUI).
Advantages: best performance, full access to device features (camera, sensors, Bluetooth), best look and feel, works offline, newest OS features first. Disadvantages: separate code (and often separate teams) for Android and iOS → higher cost and time.
4.2 Web apps (mobile websites and PWAs)
Websites built with HTML5, CSS and JavaScript that are designed for small screens and run in the mobile browser. Nothing is installed from a store.
- A Progressive Web App (PWA) is an advanced web app that can be "installed" to the home screen, work offline (using a service worker) and send push notifications.
Advantages: one code base for all devices, no store approval, instant updates, cheap. Disadvantages: needs a browser (and usually internet), limited hardware access, slower, not listed in stores (except some PWA cases), weaker on iOS.
4.3 Hybrid apps
Web code (HTML/CSS/JS) wrapped inside a native container that shows it in a WebView (an embedded browser component). Plugins give access to device features. Frameworks: Apache Cordova / PhoneGap, Ionic with Capacitor.
Advantages: one code base, installed from the app store, web developers can build apps. Disadvantages: performance and UI are not as smooth as native; depends on plugins.
4.4 Cross-platform (multi-platform) apps
A single code base compiled or rendered as a real app on both Android and iOS (and often web/desktop):
| Framework | Language | By |
|---|---|---|
| Flutter | Dart | Google – draws its own widgets with its rendering engine |
| React Native | JavaScript / TypeScript | Meta – uses real native UI components |
| .NET MAUI (successor of Xamarin) | C# | Microsoft |
| Kotlin Multiplatform (KMP) / Compose Multiplatform | Kotlin | JetBrains & Google – share business logic (and optionally UI) |
Advantages: one team, faster development, near-native performance. Disadvantages: larger app size, may wait for framework support of new OS features, some platform-specific code is still needed.
Comparison table
| Feature | Native | Web / PWA | Hybrid | Cross-platform |
|---|---|---|---|---|
| Code base | One per platform | One | One | One (mostly) |
| Performance | Best | Lowest | Medium | Near-native |
| Device access | Full | Limited | Through plugins | Almost full |
| Distribution | App store | URL / browser | App store | App store |
| Offline | Yes | Partly (PWA) | Yes | Yes |
| Cost | Highest | Lowest | Low | Medium |
5. Mobile application development platforms
A mobile development platform is the combination of operating system + programming language + SDK + IDE + app store used to build and distribute apps.
| Platform | OS company | Languages | IDE / tools | Store |
|---|---|---|---|---|
| Android | Google (open-source AOSP, Linux kernel) | Kotlin, Java, C/C++ (NDK) | Android Studio, Android SDK, Emulator, Gradle | Google Play (also Samsung Galaxy Store, Huawei AppGallery, sideloading APKs) |
| iOS / iPadOS | Apple (closed source) | Swift, Objective-C | Xcode (macOS only), iOS Simulator, TestFlight | Apple App Store |
| HarmonyOS | Huawei | ArkTS, Java (older) | DevEco Studio | Huawei AppGallery |
| Windows Phone / Windows 10 Mobile (discontinued) | Microsoft | C#, XAML | Visual Studio | Microsoft Store (support ended January 2020) |
| Web (PWA) | Open standards | HTML5, CSS, JavaScript | Any editor, browser dev tools | Browser |
Market share (approximate, worldwide): Android about 70–72 %, iOS about 27–29 %. In Pakistan Android is above 90 % because affordable Android phones dominate. Apple users spend more on apps, so many businesses build for both.
Android vs iOS at a glance
| Android | iOS | |
|---|---|---|
| Source | Open source (AOSP) | Closed source |
| Devices | Many manufacturers (Samsung, Xiaomi, Infinix, Tecno, Vivo, Oppo, Google Pixel) | Only Apple iPhone / iPad |
| Language | Kotlin / Java | Swift / Objective-C |
| IDE | Android Studio (Windows, macOS, Linux) | Xcode (macOS only) |
| Package file | APK / AAB (Android App Bundle) | IPA |
| Developer account | Google Play Console – one-time fee of USD 25 | Apple Developer Program – USD 99 per year |
| Sideloading | Allowed (install APK files) | Very restricted (EU alternative stores only) |
| Fragmentation | High (many versions & screen sizes) | Low |
6. Mobile app development lifecycle
- Idea & requirements – the problem, target users, features, platform choice.
- Planning – budget, timeline, native vs cross-platform decision.
- UI/UX design – wireframes, mock-ups and prototypes (Figma), following Material Design (Android) and Human Interface Guidelines (iOS).
- Development – front-end (screens), back-end (server, database, APIs), integration.
- Testing – on emulators and real devices: functional, UI, performance, battery, security, different screen sizes and OS versions.
- Deployment – sign the app, create store listing, publish to Google Play / App Store.
- Maintenance – bug fixes, updates for new OS versions, new features, user feedback and analytics.
7. Tools a mobile developer uses
- IDE: Android Studio (based on IntelliJ IDEA), Xcode, VS Code (Flutter/React Native).
- Build system: Gradle (Android), Xcode build system.
- Emulator / simulator: Android Emulator (AVD), iOS Simulator.
- Version control: Git + GitHub/GitLab.
- Design: Figma, Adobe XD.
- Back-end services: Firebase (authentication, Firestore database, cloud messaging), Supabase, your own REST APIs.
- Testing: JUnit, Espresso (Android UI tests), XCTest (iOS), Firebase Test Lab.
- AI assistants: Gemini in Android Studio, GitHub Copilot – they speed up coding but the developer must understand and test the code.
Short and long questions
1. What is mobile computing?
Model answer
Mobile computing is the use of portable computing devices (smartphones, tablets, laptops, wearables) while moving, connected to networks and the internet through wireless technologies such as Wi-Fi, 4G/5G and Bluetooth.
2. Give four reasons why mobile applications are important today.
Model answer
(1) Huge reach – billions of people use smartphones, often as their only computer. (2) Apps are always with the user and can use location, camera and notifications. (3) Businesses (e-commerce, ride hailing, banking) depend on apps to serve customers. (4) Governments, education and health services are delivered through apps (e.g. NADRA Pak ID, telemedicine).
3. Define a mobile application and give four examples from different categories.
Model answer
A mobile application is a software program designed to run on mobile devices such as smartphones and tablets, usually installed from an app store or used through the mobile browser. Examples: WhatsApp (communication), JazzCash (finance), Google Maps (navigation), Duolingo (education).
4. What is meant by fragmentation in Android?
Model answer
Fragmentation is the existence of many different Android versions, device manufacturers, screen sizes and hardware capabilities in use at the same time. Developers must test and design apps to work across all of them.
5. List four constraints of mobile devices that affect app design.
Model answer
(1) Small and varied screen sizes. (2) Limited battery life. (3) Limited RAM, CPU and storage compared to desktops. (4) Unreliable or slow network connectivity. Others: touch input and frequent interruptions.
6. Explain native, web, hybrid and cross-platform mobile apps with their advantages and disadvantages. Which approach would you recommend for a small startup and why?
Model answer
Native apps are developed for a single platform with its own language and SDK – Kotlin/Java with Android Studio for Android, Swift with Xcode for iOS. Advantages: best performance, full access to all device features (camera, sensors, Bluetooth), native look and feel, offline work, immediate use of new OS features. Disadvantages: separate code bases for each platform, higher development cost and time, need specialised developers.
Web apps are mobile-optimised websites written in HTML5, CSS and JavaScript that run in the browser. A Progressive Web App can be installed to the home screen and work offline using a service worker. Advantages: one code base for all devices, no store approval, instant updates, low cost. Disadvantages: limited hardware access, usually need internet, slower, not discovered through stores.
Hybrid apps use web code wrapped in a native container that renders it in a WebView (Cordova, Ionic/Capacitor). Advantages: single code base, installable from stores, web developers can build them, plugins provide device access. Disadvantages: lower performance and less smooth UI, dependence on plugins.
Cross-platform apps share one code base that runs as a real app on Android and iOS – Flutter (Dart), React Native (JavaScript), .NET MAUI (C#), Kotlin Multiplatform. Advantages: one team, faster development, near-native performance and look. Disadvantages: larger app size, waiting for framework support of new OS features, some platform-specific code still required.
Recommendation: a small startup with limited budget that must reach both Android and iOS users usually benefits from a cross-platform framework such as Flutter or React Native, because one team can deliver both apps quickly with near-native performance. If the app depends heavily on advanced hardware or must be extremely fast (e.g. a camera or AR app), native development is the better choice. In Pakistan, where Android exceeds 90 % share, starting with a native Android app is also a sensible low-cost option.
7. Name four cross-platform frameworks along with their languages.
Model answer
Flutter – Dart; React Native – JavaScript/TypeScript; .NET MAUI – C#; Kotlin Multiplatform / Compose Multiplatform – Kotlin.
8. What is a Progressive Web App (PWA)?
Model answer
A PWA is a web application that behaves like an installed app: it can be added to the home screen, works offline using a service worker that caches files, loads quickly and can send push notifications – all built with standard web technologies.
9. What is a hybrid app? Name two frameworks used to build hybrid apps.
Model answer
A hybrid app is built with web technologies (HTML, CSS, JavaScript) and packaged inside a native container that displays it in a WebView; plugins give access to device features and it is installed from app stores. Frameworks: Apache Cordova (PhoneGap) and Ionic with Capacitor.
10. Differentiate between native apps and web apps.
Model answer
Native apps are built for a specific platform with its own language and SDK (Kotlin/Java for Android, Swift for iOS), installed from an app store, have full device access and best performance. Web apps are websites built with HTML, CSS and JavaScript that run in the mobile browser, need no installation, use one code base for all devices but have limited device access and lower performance.
11. What is a mobile application development platform? Describe the Android and iOS platforms in detail and compare them in a table.
Model answer
A mobile application development platform is the complete set of operating system, programming languages, SDK, IDE, build/test tools and distribution store used to create and deliver apps for a mobile OS.
Android platform – developed by Google on the open-source Android Open Source Project (AOSP) with a Linux kernel. Apps are written in Kotlin (preferred) or Java, and C/C++ through the NDK. The Android SDK provides APIs; Android Studio (Windows, macOS, Linux) is the official IDE with the Android Emulator and the Gradle build system. Apps are packaged as APK files and published to Google Play as Android App Bundles (AAB) after paying a one-time USD 25 fee. Other stores (Samsung Galaxy Store, Huawei AppGallery) and sideloading are possible. Android runs on devices from many manufacturers, so fragmentation is high.
iOS platform – Apple's closed-source OS for iPhone (iPadOS for iPad), built on the Darwin/XNU kernel. Apps are written in Swift (or Objective-C) using UIKit or SwiftUI. Xcode (macOS only) includes the iOS SDK, Interface Builder and the iOS Simulator. Apps are packaged as IPA files, tested with TestFlight and published to the App Store after Apple's review; the developer program costs USD 99 per year. Few device models means low fragmentation.
| Point | Android | iOS |
|---|---|---|
| Owner / source | Google, open source | Apple, closed |
| Languages | Kotlin, Java | Swift, Objective-C |
| IDE | Android Studio (any OS) | Xcode (macOS) |
| Package | APK / AAB | IPA |
| Store & fee | Google Play, USD 25 once | App Store, USD 99/year |
| Devices | Many brands | Apple only |
| Fragmentation | High | Low |
| Sideloading | Allowed | Restricted |
Other platforms include Huawei's HarmonyOS (ArkTS, DevEco Studio) and the discontinued Windows 10 Mobile (support ended in January 2020). Web apps/PWAs form a platform-independent option based on open web standards.
12. Compare Android and iOS on any four points.
Model answer
(1) Source: Android is open source (AOSP); iOS is closed. (2) Language: Kotlin/Java vs Swift/Objective-C. (3) IDE: Android Studio on any OS vs Xcode on macOS only. (4) Distribution: Google Play (one-time USD 25 fee, sideloading allowed, APK/AAB) vs App Store (USD 99 per year, IPA, sideloading restricted). Also: Android runs on many manufacturers' devices (high fragmentation), iOS only on Apple devices.
13. What is a mobile application development platform? Give its components.
Model answer
It is the combination of tools and technologies used to build and distribute apps for a mobile OS: the operating system, programming language(s), SDK (libraries and APIs), IDE with emulator/debugger, build tools and the app store used for distribution. Example: Android = Android OS + Kotlin/Java + Android SDK + Android Studio + Google Play.
14. Explain the mobile application development lifecycle and the tools used at each stage.
Model answer
- Idea and requirements – define the problem, target users and features; study competitors; choose platforms. Tools: documents, surveys, user stories.
- Planning – estimate time and budget, choose native or cross-platform, plan milestones. Tools: Trello/Jira, Gantt charts.
- UI/UX design – create wireframes, mock-ups and clickable prototypes following Material Design (Android) and Human Interface Guidelines (iOS). Tools: Figma, Adobe XD.
- Development – write front-end screens and app logic, build back-end APIs and databases, integrate services. Tools: Android Studio, Xcode, VS Code; Kotlin, Swift, Dart; Gradle; Git/GitHub; Firebase or a REST back end.
- Testing – unit, UI, integration, performance, battery, security and compatibility testing on emulators and many real devices. Tools: JUnit, Espresso, XCTest, Android Emulator, iOS Simulator, Firebase Test Lab.
- Deployment – sign the app with a release key, prepare the store listing (icon, screenshots, description, privacy policy), upload the AAB/IPA and pass review. Tools: Google Play Console, App Store Connect, TestFlight.
- Maintenance – monitor crashes and reviews, fix bugs, update for new OS versions and store policies, add features. Tools: Firebase Crashlytics, Analytics, Play Console vitals.
15. List the stages of the mobile app development lifecycle.
Model answer
(1) Idea and requirement analysis, (2) planning, (3) UI/UX design (wireframes, prototypes), (4) development (front end and back end), (5) testing on emulators and real devices, (6) deployment to app stores, (7) maintenance and updates.
This lesson ends with a quiz of 38 MCQs. Open the lesson on PrepOasis to take it and save your progress.
Previous: Semester Project – Complex Computing Problem (brief, milestones and rubric) · Next: Week 1 Lab 1 – Install Android Studio and Create a "Hello World" Application
All lessons in Mobile Application Development (CDE-315) – BS CS 5th Semester