Mobile Application Development
Mobile Application Development
Development
Lab Class
Outline
• Installation and configuration (https://www.youtube.com/watch?v=8gc5z3aKc6k)
• Basic on android studio
• User interface design
• Notification and menu
• Configuration of Google map
• Working on google map
• Working on GPS
• Testing query providers using web service, http client and Json
• How to work on foreground service
• How to publish app
Programming Language: Kotlin
• Kotlin is a modern programming language that helps developers be
more productive.
• For example, Kotlin allows you to be more concise and write fewer
lines of code for the same functionality compared to other
programming languages.
• Apps that are built with Kotlin are also less likely to crash, resulting in
a more stable and robust app for users. Essentially, with Kotlin, you
can write better Android apps in a shorter amount of time.
• As a result, Kotlin is gaining momentum in the industry and is the
language that the majority of professional Android developers use.
What is Jetpack Compose?
• Jetpack Compose is a modern toolkit for building Android UIs.
Compose simplifies and accelerates UI development on Android with
less code, powerful tools, and intuitive Kotlin capabilities.
• With Compose, you can build your UI by defining a set of functions,
called composable functions, that take in data and describe UI
elements.
Lab Class-1
• @Composable: This annotation marks the function as a composable
function, which means it can be used to define UI components in
Jetpack Compose.
• Column: This is a layout composable that arranges its children in a
vertical sequence.
• Modifier = Modifier: This is used to modify the appearance and layout
of the Column.
• Padding is used in UI design to create space around elements,
ensuring they don’t touch or overlap with other elements.
Cont.
• In Android development, dp (density-independent
pixels) is a unit of measurement used to ensure
consistent sizing of UI elements across different screen
densities and resolutions.
• In Android development, sp (scale-independent pixels) is a unit of
measurement used for font sizes.
• Border Stroke is a class in Jetpack Compose used to define the width
and color of a border for a composable element.
Cont.
• @Preview annotation in Jetpack Compose is used to preview your
composable functions in Android Studio. This is particularly useful for
seeing how your UI elements will look without having to run the app
on an emulator or device.
• val emailState = remember { mutableStateOf("") }: This creates a
state variable emailState to hold the value of the email input. It is
initialized with an empty string.
• val passwordState = remember { mutableStateOf("") }: Similarly, this
creates a state variable passwordState to hold the value of the
password input, also initialized with an empty string.
Cont.
• OutlinedTextField: A composable function that creates a text input
field with an outlined border.