Lesson 2: Types of Mobile Apps
Mobile applications are grouped into different types based on how they are built and how they run on devices.
1. Native Mobile Apps
- Built for one platform only
- Android → Java / Kotlin
- iOS → Swift
2. Web Apps
- Run in a browser
- No installation needed
- Limited device access
3. Cross-Platform Apps (Flutter)
- One codebase
- Runs on Android & iOS
- Fast development
Flutter Example Code
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Types of Mobile Apps'),
),
body: Center(
child: Text('Flutter is Cross-Platform'),
),
),
);
}
}