0% found this document useful (0 votes)
15 views44 pages

Last Minutes Preparations

The document provides an overview of mobile devices, their features, categories, and the history of mobile technology, including the evolution of Android. It discusses mobile programming, approaches to app development, and the Android platform's setup and project creation process. Additionally, it covers widgets, view hierarchy, and the importance of the AndroidManifest.xml file in app development.

Uploaded by

sujalpw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
15 views44 pages

Last Minutes Preparations

The document provides an overview of mobile devices, their features, categories, and the history of mobile technology, including the evolution of Android. It discusses mobile programming, approaches to app development, and the Android platform's setup and project creation process. Additionally, it covers widgets, view hierarchy, and the importance of the AndroidManifest.xml file in app development.

Uploaded by

sujalpw
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
Unit-1 Mobile Device and its Feature: ‘Amobile device refers to « handheld electronic device that is designed to be portable and used on the go. These devices have become an integral part of modem life, offering a wide range of features and functionalities. E.g. Tablets, e-readers, smartphones, PDAs and portable music player etc. Its features:- 1. Portable: Mobile devices are lightweight and compact, allowing users to carry them easily wherever they go, providing on-the-go access to essential tools and information, 2. Personal: Mobile devices can be customized with wallpapers, apps, and settings, reflecting individual preferences and creating a personalized connection. A mobile devices is absolutely personal. 3. Companion: Mobile devices offer constant access to communication, entertainment, and productivity tools, becoming reliable companions that assist users throughout their daily activities. Mobile Device ‘an be with us anytime. 4, Easy Usage: Mobile devices feature intuitive touchscreens and interfaces, making them user-friendly and accessible to people of varying levels of technological familiarity. 5. Connected Device: Mobile devices have intemet connectivity, enabling communication with other devices, access to online services, and the ability to link with a wide range of smart devices. Categories of Mobile Devices: 1. Mobile Phones: Mobile phones, also known as cell phones or feature phones, are devices primarily designed for voice communication. They offer basic text messaging, calling, and some limited internet connectivity. These devices often have physical keypads and smaller screens compared to smartphones, 2. low£nd Mobile Devices: Low-end mobile devices are basic phones that focus on essential ‘communication functions. They typically have simple interfaces, basic cameras, and limited app support. These devices are often used as backup phones or by individuals who prefer minimal features. 3. Mid-End Mobile Devices: Mid-end mobile devices are budget-friendly smartphones that offer a decent balance between performance and affordability. They come with moderate specifications, including better cameras, improved processors, and a wider range of apps compared to low-end devices, 4. High-End Mobile Devices: High-end mobile devices, commonly known as flagship smartphones, are premium devices that offer top-of-the-line specifications and features. They boast powerful processors, high-quality cameras, advanced display technology, and cutting-edge design. These devices are often at the forefront of technological innovation. 5. Smartphones: Smartphones are advanced mobile devices that offer not only voice calls and text messaging but also a wide range of computing capabilities. They provide access to the internet, support various apps for productivity, entertainment, anc communication. 6. Non-Phone Devices: Devices that aren't primarily used for voice calls, such as tablets, smartwatches, fitness trackers, and portable media players. Mobile Programming: Mobile programming is a set of processes and procedures involved in writing software for small, wireless ‘computing devices. Itis the act or process by which mobile apps are developed for mobile devices, such as personal digital assistants, enterprise digital assistants or mobile phones ‘Two dominant platforms in the modern smartphones market. One is the iOS platform from Apple Inc. The 10S platform is the operating system that powers Apples popular line of Phone smartphones. The second is android from google. The android OS is not only used by Google device but also by many OEMs to build their own smartphone and other smart devices. Language used for mobile programming languages ‘Android : Java, Kotlin, C#, Python ete IOS: Objectives-C, Swift ete History of Mobile Devices: 1. 1970s-1980s: Early experiments in wireless communication with car phones and handheld radio devices, 2. 1983: Motorola introduced the DynaTAC 8000X, the first commercial handheld mobile phone. 3. 1990s: Mobile phones became smaller and more affordable; Nokia's 1011 and text messaging gained popularity, 4. Late 1990s: Nokia's Communicator introduced basic computing features to mobile phones. 2007: Apple's iPhone redefined smartphones witha touchscreen interface and the App Store. 6. 2008-2009: Google's Android OS emerged as an alternctive to iOS, leading to diverse smartphone options. 7. 2010s: Smartphone market growth exploded with improved cameras, processing power, and connectivity. 8 2010s-2020s: Introduction of 4G and 5G technology for faster connectivity. 9 Smartwatches and Wearables: Rise of wearable devices like smartwatches and fitness trackers, 10. Foldable Phones: introduction of foldable smartphones for larger displays. 11. Aland Personal Assistants: Integration of voice assistants lke Siri, Google Assistant, and Alexa. 12. 2020s: Continued evolution with AR, VR, and Al technologies shaping the mobile landscape. Brands, Model and Platform of Mobile Devices: 1. Apple: + Brand: Apple ‘+ Models: Notable models include iPhone 13 Pro, Phone 13 Mini, and iPhone SE. ‘* Platform:i0S- Apple's proprietary mobile operating system. Known for its user-friendly interface, smooth performance, and tight integration with other Apple devices and services. 2. Nokia: Brand: Nokia ‘© Models: Iconic models from the past include Nokia 3310 (modern version) and Nokia 7.2, ‘+ Platform: Nokia's earlier phones used various proprietary operating systems. In recent years, many Nokia smartphones have adopted Android as their platform, offering a range of devices running on different versions of Android with a relatively pure Android experience. 3. BlackBerry: ‘© Brand: BlackBerry ‘+ Models: Notable models include BlackBerry Key? and BlackBerry Motion. ‘Platform: BlackBerry OS was the brand's proprietary operating system. However, mary recent BlackBerry smartphones have adopted the Android operating system, allowing users to enjoy BlackBerrys security features and productivity enhancements on Android devices. 4, Samsung: + Brand: Samsung ‘+ Models: Prominent models include Samsung Galaxy $21 Ultra, Samsung Galaxy AS2, and Samsung Galaxy Z Fold 3. ‘Platform: Samsung devices runon the Android operating system with Samsung's customized skin called One Ul. One Ul adds unique features and a distinct visual style to the Android experience. 5. Motorol + Brand: Motorola ‘+ Models: Noteworthy models include Motorola Moto 6 Power, Motorola Edge, and Motorola Rarr. ‘+ Platform: Motorola devices primarily run on the Android operating system, often offering a near- stock Android experience with minimal customization, emphasizing simplicity and speed. 6. 1G Mobile: * Brand: LG Mobile ‘= Models: Notable models include LS Velvet, LG Wing, and LG G8 Thing, ‘+ Platform: LG smartphones use the Android operating system, with G's custom user interface that provides additional features and a distinct design. 7. Android: ‘+ Platform: Android is an open-source mobile operating system developed by Google. It's used by many manufacturers and offers a customizable experience with a vast app ecosystem. 8 Windows Mobile (now Windows Phone}: = Brand: Microsoft ‘* Models: Devices like Windows Phone 8X by HTC, Lumia 950, and Lumia 1520, + Platform: Windows Phone was @ motile operating system developed by Microsoft. It offered a unique and visually appealing interface but smo longer actively developed or widely used, Approaches while Building Mobile App 1._ Native App Development: Native app development involves creating applications specifically for a particular platform, such as i0S or Android. Developers use platform-specific programming languages (Swift/Objective-C for i0S, Java/Kotlin for Android) and development tools. This approach offers the best performance and access to platform-specific features. 2. Cross-Platform Development: Cross-platform development allows creating applications that can run ‘on multiple platforms using a single codebase. Frameworks like React Native, Flutter, and Xamarin enable developers to write code once and deploy it across different platforms. This approach saves time and resources by sharing much of the codebase, but it may not provide the same level of performance and access to native features as native development. 3. Web App Development: Web app development involves creating applications accessible through a motile browser. Developers use web technologies like HTML, CSS, and JavaScript to build responsive and accessible apps. Web apps are platform-independent and can be accessed on various devices, but they may have limitations in terms of performance and access to device-specific features. 4, Progressive Web Apps (PWAs): PWAs are web applications that offer a hybrid experience between web and native apps. They use modern web technologies and can be accessed through browsers. PWAs can provide a more appulike experience, including offline capabilities and access to device features through APIs. Mobile Application Development Life cycle: ‘There are two interlinked core components of a mobile application 1. The mobile application “Front-End that resides on the mobile device 2. The services “Back-End” that supports the mobile front-end. The mobile front-end is the visual and interactive part of the application the user experiences. it usually resides on the device, or there is at least an icon representing the app that is visible on the home screen or is pinned in the application catalog of the device. The app can be downloaded from the platform app store, side loaded directly onto the device or can be reached through the device's browser. Regardless of what front end platform or development methodology is being used, delivering high quality mobile applications that delight and retain users requires reliable backend services. Backend development involves building the server-side components of the mobile app that handle data storage, processing, and communication with external services. It powers the app’s functionality and supports the frontend interactions. Unit -2 Android The Android platform is 2 mobile operating system developed by Google. It provides a comprehensive framework for building and running applications on various devices, including smartphones, tablets, smart Vs, and more. History and Version of Android: Android, developed by Google, is a mobile operating system that debuted in 2008 with Android 1.0. Subsequent versions were named after treats. Android 2.2 (Froyo) improved performance and added tethering. Android 4.0 (Ice Cream Sandwich) merged tablet and phone interfaces. Android 5.0 (Lollipop) introduced "Material Design.” Android 6.0 (Marshmallow) focused on app permissions and battery life. ‘Android 7.0 (Nouget) brought split-screen multitasking. Android 8.0 (Oreo) featured notification channels and Project Treble. Android 9 (Pie) introduced gesture navigation. Android 10 added a system-wide dark mode. Android 11 enhanced notifications and multitasking. Android 12 is expected with a visual refresh and privacy features, continuing Android's evolution, Environment Setup of Android: 41. Install JDK: Download and install the Java Development Kit (JDK). Set the JAVA_HOME environment variable. 2. Install Android Studio: Download and install Android Studio, the official IDE for Android development. 3. Open Android Studio: Launch Android Studio after installation. 4. Install SDK Components: Android Studio will prompt you to install the Android SDK components. Follow the prompts to download and install them. 5. Configure SDK Path: Android Studio might ask for the SDK location. If it doesn't auto-detect it, provide the path to the SDK location. 6. SetUp Emulator: Open AVD Manager in Android Studio. Create and set up Android Virtual Devices [emulators) for testing your apps. 7. Start Coding: Create a new Android project in Android Studio and begin coding your app using Java or Kotiin. 8. Test Your App: Run your app onan emulator or a physical Android device to test its functionality. Creating an Android Project 1 Open Android Studio: © Launch Android Studio after Start a New Android Project: ‘+ Click on "Start a new Android Studio project” on the main welcome screen, or go to File> New > New Project. Choose a Project Template: Select a template that suits your app's type. The mast common choices are "Empty Activity," "Basic Activity," "Tabbed Activity," etc. Choose one that matches your app's structure. Configure Your Project: Enter the "Name' of your project. + Choose a "Package name" for your app (usually in reverse comain format). + Selecta "Save location’ for your project. «Choose the programming language you want to use, either Java or Kotlin. Select Minimum API Level: + Choose the minimum Android version your app should support. This affects which features and devices your app can be used on. Add Activity: © Choose an "Activity Name" and a "Layout Name" for the initial screen of your app. The activity is where you'll start building your app's functionality. Customize Actvity: '* Customize the activity by selecting options related to the layout, navigation, and more. Finish Setup: + Click "Finish” to create your project. Android Studio will generate the necessary files and resources for your app. 's installed. Widgets and its Attribute: widgets are interactive Ul components that provide functionality and information directly on the home screen, lock screen, or within an app's user interface. Widgets can display data, allow user interaction, and offer quick access to app features without the need to open the app itself. > Button: The Button widget is used to create interactive buttons that users can click to trigger actions. 1. android:text: Specifies the text displayed on the button. 2. android:textSize: Sets the size of the button's text. > TextView: The TextView widget is used to display text on the screen, t's often used to show labels, descriptions, or other types of information. 1. android:text: Specifies the text content of the TextView. 2. android:textSize: Sets the size of the text. > EditText: The EditText widget is used to allow users to input text. It's commonly used for forms: 1. android:hint: Provides a hint or placeholder text to guide users. 2. android:inputType: Specifies the type of input allowed (text, number, email, etc.) > ImageView: The ImageView widget is used to display images or drawable on the screen. 1. android:scaleType: Controls how the image is scaled anc displayed within the Image View. > Checkbox: Checkbox is a specific type of two states button that can be either checked or unchecked. 1. android:accessibilityHeading: Whether or not this view is a heading for accessibility purposes. 2. android:accessiblityPaneTitie: The title this view should present to accessibility asa panetttle. > RadioButton: A radio button is atwo-state button that can be either checked or unchecked. When the radio button is unchecked, the user can press or click it to check it. However, contrary toa checkbox, a radio button cannot be unchecked by the user once checked. Attributes is same as checkbox. > Spinner: Itis a view that displays one child at a time and lets the user pick among them. The items in the spinner come from the String array or adapter associated with this view. 1. android:spinnerMode: Display the mode for the spinner options 2. android:entries: Used for loading string array. View Hierarchy With Example: ‘The view hierarchy refers to the structure of Ul elements that make up the user interface of an app. These UL elements, known as "Views," are organized in a tree-like structure, where each view can have child views. The root of this hierarchy is the top-level view, often referred to as the "root view.” Understanding the view hierarchy is essential for designing and manipulating the user interface effectively. > Root View: The LinearLayout is the root view. It acts as a container for all other views and arranges them vertically Child Views: The ImageView, EditText for the username, EditText for the password, and the Button are child views. They are contained within the Linearlayout and inhert its layout attributes. This view hierarchy defines the structure of the login screen. The LinearLayout organizes the Ul ‘components, ensuring they appear in the specified order and are aligned vertically. Understanding the view hierarchy is crucial for designing and positioning UI elements effectively in Android apps. <2xml versio "uth-8"2>

You might also like